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.0a110.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d63d4a86f30aacb691f98af292e7c36427a5fcc8e4b7463d5917e40c9d194e5 |
|
MD5 | 9def713905775f9ac1773d15e4835e83 |
|
BLAKE2b-256 | 7903ae5a9aed1abfe1fa7c8eb484d9a7546aa6fdb4fe677dfba086af116ab6ce |
Close
Hashes for marionette_predeployed-2.0.0a110-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb70689b02899143f02ed7d132664c2ba2b23da26192f4de77f903be162f738e |
|
MD5 | 549624c05a24e2c4ac1ff6baf37157f4 |
|
BLAKE2b-256 | f62675d9544d1d451ed641a084a502ef89c0a5a3764cd6cf2309e2954d08a99e |