A tool for generating predeployed deployment controller smart contract
Project description
deploy-controller-predeployed
Description
A tool for generating predeployed deploy-controller smart contract
Installation
pip install deploy-controller-predeployed
Usage example
from deployment_controller_predeployed import (UpgradeableDeploymentControllerGenerator,
DEPLOYMENT_CONTROLLER_ADDRESS,
DEPLOYMENT_CONTROLLER_IMPLEMENTATION_ADDRESS)
OWNER_ADDRESS = '0xd200000000000000000000000000000000000000'
PROXY_ADMIN_ADDRESS = '0xd200000000000000000000000000000000000001'
deployment_generator = UpgradeableDeploymentControllerGenerator()
genesis = {
# genesis block parameters
'alloc': {
**deployment_generator.generate_allocation(
contract_address=DEPLOYMENT_CONTROLLER_ADDRESS,
implementation_address=DEPLOYMENT_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 deployment-controller-predeployed-1.0.0.dev3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ed588bef85d67f9a64f42e619c0d87eccb78538935605be111980435aec7785 |
|
MD5 | 9c015e5d1b3e56a795fc022776440171 |
|
BLAKE2b-256 | d826332bb8ed906d782a6186cd3652d19d8498fce52b21596cd5fcb8f8f13fee |
Close
Hashes for deployment_controller_predeployed-1.0.0.dev3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a524eff98a7511b03fc67b811f2d97b899a58a1b45b604d0ac34816a49973818 |
|
MD5 | 70809621a7e4c2aecdf1362f9c490a08 |
|
BLAKE2b-256 | 7afd953215f4affcb963ee349b6ce63e04de5b0b138b49a8a5297e04bc6a24b6 |