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-2.0.0a68.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c9db45f2394f9e380b15b48e14f05cc768b3d1fee3b945c8cbaf1215ff6eb6e |
|
MD5 | 1f532376cd7959ec256cfcd00d06750e |
|
BLAKE2b-256 | 990d839768ab23382767d43c5130c3afd45092c71427151ce587d60750ddf19a |
Close
Hashes for marionette_predeployed-2.0.0a68-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94fbc78ddd7368c72dfff27d0e2b09a96abf703daa259357c12d46172efb5a93 |
|
MD5 | b3fe00228c00e7d446ee6e59bc24ae95 |
|
BLAKE2b-256 | a121faf5c66754bed7365b5734bbcc1a885f46c179ad37373d0240606cd8e7bd |