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.dev6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a9610f4fde3c63dff8c0c382107fd17f3f8bbf8ab7693bf0b9cf120f4b2890c |
|
MD5 | 6288ca015c474c28357926991e2628be |
|
BLAKE2b-256 | f62069e66b9919d39f905a586f7e3e1ee4d1002208dda0fcc3acd58cd5877b4a |
Close
Hashes for config_controller_predeployed-1.0.0.dev6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcecdf28dca21ef687d5a63a8848a739f21f32593496239aa4c01d2ec0d81092 |
|
MD5 | 439a4b77c7e2da891f8aec69e45f3cb6 |
|
BLAKE2b-256 | 9b33c72e64f4ab1f29431bfa52c29a88cea3e4402aca13c7b88acb145a7e7861 |