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.0a3.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.0a3-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oracle_predeployed-1.0.0a3.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.0a3.tar.gz
Algorithm Hash digest
SHA256 80272ec35729892e924b69262dbc2fc949629f1bc3dfd029d861c5173dd5817c
MD5 51a2fc1096b80e0f4d5e0c53c7a7c484
BLAKE2b-256 5dabadcc195f889013bfecd44afddcf98ed740c6c92445f3c6271b28f7207cd4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for oracle_predeployed-1.0.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 787aff89f1a42c693b3f9faeada1a3af83518fa5d4d25411dd90602fd14b9fcd
MD5 c46f8bc13e0f4ff9e34b48a6633d2f7f
BLAKE2b-256 eecccd1c5352dc88ec6a12d2e4ec70f8fb0dca186fa636bb92f66e5ada309f39

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