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.1a16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f7583e33f1e24b21e05df300fddeb4e2f49e0f5cc41c0e9efcf494cf873ca88 |
|
MD5 | f77d6d5d80ec159ff49382cf5fa7ec8e |
|
BLAKE2b-256 | 7f8d5a3a4107d789fb92639be822fe8b88ff8ac4c37dce3886629412368a6369 |
Close
Hashes for marionette_predeployed-0.0.1a16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf90492b19c2372e908878970801a149ca8f4872e394eca81826398f6def989a |
|
MD5 | 00dff7466c65e1cf6a92451acac1d25d |
|
BLAKE2b-256 | 480f37d9549017b5d799ad409fceee853d4824f16968bbf603af0932ffd752d9 |