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.0a62.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ffdb29153f782906606cadaca6ec0f43fa096a3f53500caecea4b84aa1fc817 |
|
MD5 | d30b2576d2cc6bbee4024112d2fbb506 |
|
BLAKE2b-256 | 4431928a78038431a227ffd3861e95e7f807dbf0ad37558894a4756c551d1e1a |
Close
Hashes for marionette_predeployed-2.0.0a62-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be8fc114759821a0739591e8f19e178f201111ca765449a971e51aae295675be |
|
MD5 | cc5e6d021c4269ad54fe547fd075f234 |
|
BLAKE2b-256 | 1bd33b644165360db1e9d88812e81567041bd0647442538a34121c94ead2bfb5 |