A tool for generating predeployed marionette smart contract
Project description
marionette-predeployed
Description
A tool for generating predeployed marionette smart contract
Installation
pip install marionette-predeployed
Usage example
from marionette_predeployed import UpgradeableMarionetteGenerator, MARIONETTE_ADDRESS, MARIONETTE_IMPLEMENTATION_ADDRESS
PROXY_ADMIN_ADDRESS = '0xd200000000000000000000000000000000000000'
MAINNET_OWNER_ADDRESS = '0xd200000000000000000000000000000000000001'
SCHAIN_OWNER_ADDRESS = '0xD200000000000000000000000000000000000002'
MESSAGE_PROXY_FOR_SCHAIN_ADDRESS = '0xd200000000000000000000000000000000000003'
marionette_generator = UpgradeableMarionetteGenerator()
genesis = {
# genesis block parameters
'alloc': {
**marionette_generator.generate_allocation(
contract_address=MARIONETTE_ADDRESS,
implementation_address=MARIONETTE_IMPLEMENTATION_ADDRESS,
proxy_admin_address=PROXY_ADMIN_ADDRESS,
schain_owner=MAINNET_OWNER_ADDRESS,
marionette=MARIONETTE_ADDRESS,
owner=SCHAIN_OWNER_ADDRESS,
ima=MESSAGE_PROXY_FOR_SCHAIN_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 marionette-predeployed-1.0.0a26.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c60ca9764828718fe6423ce0670be38025f5a5427b2ff495902a3456afaa9ce |
|
MD5 | a523280b99c4e4e1e254106702921973 |
|
BLAKE2b-256 | 3aff7f9344fba19283d7a08d5de32c9b3643605c66af1775ec7188808cd5ddd0 |
Close
Hashes for marionette_predeployed-1.0.0a26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0623469bd44e1ec132a09e3a6d34738e17dd17a80184aa8ca2c362892750c3a |
|
MD5 | 2048fd08e3d676375e0efc91062dc5a9 |
|
BLAKE2b-256 | f0da553750891f6e49c681dd57e219ab3319745207c82f90feeb07deb9c52573 |