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.1.0a6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | edbbbb4f27d98bb6b0268dc044696f738a60c36747f1055928afb9849bc9ed03 |
|
MD5 | 868f6aaec4d88bf596053bfa5db30501 |
|
BLAKE2b-256 | c3836499541f9419ed7fe066d0f5d59210956f01b218dedd0fd7633fa1577ee5 |
Close
Hashes for marionette_predeployed-1.1.0a6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a9d13a01a0ce9766f6e212fe7966d5fbeb838ff0b7b31114a5075a1a0608468 |
|
MD5 | f70e6cc9236a688bbf942d3047e2f133 |
|
BLAKE2b-256 | 4e52522e777e176b0fa9fd2f5b80641cb8c64763ae3ade0720c75f8899448ac0 |