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.0a4.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file oracle_predeployed-1.0.0a4.tar.gz.

File metadata

  • Download URL: oracle_predeployed-1.0.0a4.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.20

File hashes

Hashes for oracle_predeployed-1.0.0a4.tar.gz
Algorithm Hash digest
SHA256 60afa0f3d199c03af10f3867bff2f6148ce63773834b1a96a3ab01cd880143d0
MD5 2b382d591aef949fdcdf25d9f1ca4520
BLAKE2b-256 6021717b332809510d83df5ae31d7111b51a878806472fe72c8fcddf7b02c400

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for oracle_predeployed-1.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 300b0a614de0a397898b116e649150633ef27aa88add1c3c6d4ecfdf83431332
MD5 87701d17ec08705a45bcaf1268eb0ae0
BLAKE2b-256 4e55d884f2bc175368a76d6de178f88bbbf25859531807786cf75709db1bbcde

See more details on using hashes here.

Supported by

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