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.1a25.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e861ff7dbfdab29b6a64790fb7ac5973ed0d7e8439cc81c75e3ec8b46d5e0630 |
|
MD5 | b08563a67128ba2930b6805f43ed20a9 |
|
BLAKE2b-256 | 945d44ee5fb961cde432fa17939d4719c25fb1fe85ba4598489ffd216d09a86e |
Close
Hashes for marionette_predeployed-0.0.1a25-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f48485a39fedcca909bbf96e2aad6defea9b4b5abe4d7ef9a9fe8f6d3e7556eb |
|
MD5 | 0dd7cae1847e17e9e027389f55023d74 |
|
BLAKE2b-256 | 6da18efa9e4074ad121532cd77e9f0faa50e7e02e872f2c20dacc5a3efddbdf5 |