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-1.0.0a20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ed7ae4c3b9a52384749ac73abff07c3f3c1ba518c7504d6ed5ae669f85cc266 |
|
MD5 | 361d5f7c576bd03685693fd017802648 |
|
BLAKE2b-256 | 557472f29bde7fe4a7896a4c7daa2a91f2c46794b3b312934905f41245d53b24 |
Close
Hashes for marionette_predeployed-1.0.0a20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94c199e87f5a565d20ac809fa7107f588b45ffbb53f843d3f5e41142a359f8c3 |
|
MD5 | f720192ca0bc5f02d9ae027dd4e82826 |
|
BLAKE2b-256 | d2a382022fbdbf2906452e64dabe6ee967b2d4bbfff0476aecd326041d5b9ef0 |