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.0a1.tar.gz
(12.2 kB
view hashes)
Built Distribution
Close
Hashes for oracle-predeployed-1.0.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bba47ff1f06b0a6574bfb6eb433f30638b595c0e55038d7a7de18cc0e922e1d |
|
MD5 | ce192142dc85d46a57c619e83db0767a |
|
BLAKE2b-256 | ac1e0f3512c16d25b003371132dd31e429a1df40db64ce6e622f23fd046950f0 |
Close
Hashes for oracle_predeployed-1.0.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4444a3e5c9aa61a0e80ece13378472b6539a600493721d672d4d95c390207463 |
|
MD5 | 7ae5c4db10328f7013df8c5ec61cc3af |
|
BLAKE2b-256 | f8ecf752fb9d8cc90e44e42044f1424a6124892b7477396a63bbcac07b08462b |