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
Release history Release notifications | RSS feed
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.0a0.tar.gz
(11.5 kB
view hashes)
Built Distribution
Close
Hashes for oracle-predeployed-1.0.0a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec26e5f2cf905f480825e7b31c60d458e270d8d67eb371b1996a590d2c363c7f |
|
MD5 | 2366e4e4b1c0c5e6fe2d234d07035da5 |
|
BLAKE2b-256 | 1f216d2587d6c518b693a6f4d077e72e3f15a96914dcb24296e510d32f25a577 |
Close
Hashes for oracle_predeployed-1.0.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86d323bbbaf4f39d0ac27b6f382ea71ae5e650b0fad810771eac81a441e73663 |
|
MD5 | 9e9ee75f2ff229aa2a7fcf1616358f84 |
|
BLAKE2b-256 | 23458a198d5c8987cb828c0d6e07a7ef397e0fbbe8a687af08027f0e7ab562ed |