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.0a124.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9830e8ece70f61ec63e53918b242a3b08aafbbe754654ff38489d160e902a152 |
|
MD5 | fa146a45a3dc431e973a90d90f9bfaf2 |
|
BLAKE2b-256 | 1f86c000c725b050affaced01091ce5fe50e70eb84b624eea004be6ab31544e5 |
Close
Hashes for marionette_predeployed-2.0.0a124-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e69111ec3ad0b9d9707d5720aa0e60fecd1d0e5885c59d0914841bea420c7470 |
|
MD5 | 66227f5686858b92ed485132d8a3c059 |
|
BLAKE2b-256 | 7e6ce6eaceecf9737886ac722322fd389493cbeb049a84eed22fb6da55d42400 |