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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file oracle-predeployed-1.0.0a2.tar.gz.

File metadata

  • Download URL: oracle-predeployed-1.0.0a2.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for oracle-predeployed-1.0.0a2.tar.gz
Algorithm Hash digest
SHA256 4c99564a3508d16f98f635124383c4f802d637700a4d0c032053f1db9db126f7
MD5 087e07c6be50d1347886b89d386da0c7
BLAKE2b-256 364305546357b5c174d141ec8243732c7436ded1a4a92ca3310cd229676f9ee6

See more details on using hashes here.

File details

Details for the file oracle_predeployed-1.0.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for oracle_predeployed-1.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 fbdd92076a7b9a3c129ab8dfec4e33973384f9060269a9876c682197a6d7ef7a
MD5 dc36c117f718e68fb2e64df40c5e5f9f
BLAKE2b-256 dc37612da8bf618db66d70558bf9ccb58da7917477f2a184bee53a3c237fcabd

See more details on using hashes here.

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