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.dev5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd9286d4dbff06c4a0f350459a8c0683b275eebd0f04c3f885d8f556a09612cd |
|
MD5 | 5d05066965bd7caec5a8a3a05a623c14 |
|
BLAKE2b-256 | 04a5b252a49584abdc78ea53effccb75c6611e83107c9f696524c5e122d086b6 |
Close
Hashes for config_controller_predeployed-1.0.0.dev5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26c50042634df4d540ae6f23bd6e41b0f8a8561d90aea4eba2df48ef53e83598 |
|
MD5 | 53c772ec9465cc5ebd540d548898b507 |
|
BLAKE2b-256 | 26cf870a78059c987915f8c83e2ee41375cac8295712238a9f3c8f39918038e0 |