Skip to main content

A tool for generating predeployed oracle smart contract

Project description

oracle-predeployed

Description

A tool for generating predeployed oracle smart contract

Installation

pip install oracle-predeployed

Usage example

from oracle_predeployed import  UpgradeableOracleUpgradeableGenerator, ORACLE_ADDRESS, ORACLE_IMPLEMENTATION_ADDRESS

OWNER_ADDRESS = '0xd200000000000000000000000000000000000000'
PROXY_ADMIN_ADDRESS = '0xd200000000000000000000000000000000000001'

oracle_generator = UpgradeableOracleUpgradeableGenerator()

genesis = {
    # genesis block parameters
    'alloc': {
        **oracle_generator.generate_allocation(
            contract_address=ORACLE_ADDRESS,
            implementation_address=ORACLE_IMPLEMENTATION_ADDRESS,
            schain_owner=OWNER_ADDRESS,
            proxy_admin_address=PROXY_ADMIN_ADDRESS
        )
    }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oracle-predeployed-1.0.0a2.tar.gz (12.2 kB view hashes)

Uploaded Source

Built Distribution

oracle_predeployed-1.0.0a2-py3-none-any.whl (14.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page