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
File details
Details for the file deployment-controller-predeployed-1.0.0.dev3.tar.gz
.
File metadata
- Download URL: deployment-controller-predeployed-1.0.0.dev3.tar.gz
- Upload date:
- Size: 21.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.8.2 requests/2.26.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ed588bef85d67f9a64f42e619c0d87eccb78538935605be111980435aec7785 |
|
MD5 | 9c015e5d1b3e56a795fc022776440171 |
|
BLAKE2b-256 | d826332bb8ed906d782a6186cd3652d19d8498fce52b21596cd5fcb8f8f13fee |
File details
Details for the file deployment_controller_predeployed-1.0.0.dev3-py3-none-any.whl
.
File metadata
- Download URL: deployment_controller_predeployed-1.0.0.dev3-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.8.2 requests/2.26.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a524eff98a7511b03fc67b811f2d97b899a58a1b45b604d0ac34816a49973818 |
|
MD5 | 70809621a7e4c2aecdf1362f9c490a08 |
|
BLAKE2b-256 | 7afd953215f4affcb963ee349b6ce63e04de5b0b138b49a8a5297e04bc6a24b6 |