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-0.0.1a26.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3685386113d33c61835723b742b787481f0ae68b77da2ed490c72fc890d18d6d |
|
MD5 | 129f82ebba8b851cee4307e0de268ab8 |
|
BLAKE2b-256 | b2545484ae97c50e1230e07b734f4c721be31b2f7e6413c198dd92c2f1467a18 |
Close
Hashes for marionette_predeployed-0.0.1a26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0795a74a04ff945e42be8e265a0f7cd23cae86c76106b777f2df8cd8222d9adb |
|
MD5 | 7b4d75cab49d06371631bcc6f794014e |
|
BLAKE2b-256 | 3b955a2a92f1cee8e888f435a39e94b71ead02eb6e77df9ec57ced7ad87b34ef |