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.1.dev7338274149392266833.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63cb236fea2af59cca6b90dd89d2b47ce9284a0810383512c542c2ebe62ea6ac |
|
MD5 | 5b42497aeb885079d3b5c43b920df6ef |
|
BLAKE2b-256 | 9f69fae62338456afaa847c4cb2efa47d0a792ec4840d19d7fdc2c3208ec3038 |
Close
Hashes for marionette_predeployed-0.0.1.dev7338274149392266833-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b7e138b7dd497cec28cc7ada5372d178b9e5fd1d7cb0b9b57e0cfb54deff548 |
|
MD5 | a9240453851850690eea75d6f8c7ef6a |
|
BLAKE2b-256 | 8700db9509aa776f282bebe3be5fe5cf64e9137c7ec051c8f2e2d4763525ccd5 |