A tool for generating predeployed config controller smart contract
Project description
config-controller-predeployed
Description
A tool for generating predeployed config-controller smart contract
Installation
pip install config-controller-predeployed
Usage example
from config_controller_predeployed import (UpgradeableConfigControllerGenerator,
CONFIG_CONTROLLER_ADDRESS,
CONFIG_CONTROLLER_IMPLEMENTATION_ADDRESS)
OWNER_ADDRESS = '0xd200000000000000000000000000000000000000'
PROXY_ADMIN_ADDRESS = '0xd200000000000000000000000000000000000001'
config_generator = UpgradeableConfigControllerGenerator()
genesis = {
# genesis block parameters
'alloc': {
**config_generator.generate_allocation(
contract_address=CONFIG_CONTROLLER_ADDRESS,
implementation_address=CONFIG_CONTROLLER_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
Built Distribution
Close
Hashes for config-controller-predeployed-1.0.0.dev4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e572ac251d98d974b1f7ab250d51a149c6dfd51f263c3880f076e93bfc268ff |
|
MD5 | 797f17c91cb4739d08de1a919d0128a5 |
|
BLAKE2b-256 | ee78985789f1f1d9f5bcf272e2a007a2846d7cfd9fe7b7d8bc400137339d3ded |
Close
Hashes for config_controller_predeployed-1.0.0.dev4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e27147d7bcfc9791d5256794128b212efd4ce5f3967dc7723089fbc077f74237 |
|
MD5 | bd94e6d570a95c9a5f0d061051cf5681 |
|
BLAKE2b-256 | 3b46686fc403aaa42c16e445b601a71114dfddf8c071de3236e213238c66f509 |