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.0a34.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1002be72153009b433a8e65c808769e3127e7e1dc377b5c880def7754f68818b |
|
MD5 | 46aa32154f19224e5e50190842707cf4 |
|
BLAKE2b-256 | c82623245f232429a5368766ab1f8d341ea63082ba02b13e01645ccf638aa303 |
Close
Hashes for marionette_predeployed-2.0.0a34-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6159723131ddce7e47ba9a633d5b8c706baf0ba4967a27c2ea8c5bbd857a96e |
|
MD5 | a4fe665b62855583d36b67d3d721ee2a |
|
BLAKE2b-256 | 59a748ed1f79cd95f194cb40cfbd95b91bab24bed390057ef9084db75a873ab1 |