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.1b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 640c80cd107414596d3cf75a46bfbe12dd796a92f2aa1290004350a02225c299 |
|
MD5 | 2ad40975ada376e2686c6ad3dc86863e |
|
BLAKE2b-256 | b81c3dcf4e67a567bfbaeb58419ac7ba1e8f10606f3a6e08c0b8352fa0edfe96 |
Close
Hashes for marionette_predeployed-0.0.1b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 747a3450dac008c2b5ee8810dfec860461e22499d617b568d99108beb1d64cb6 |
|
MD5 | 35e00f6ca6a9cfba224e0e0fa4b6e87c |
|
BLAKE2b-256 | f1060359fb5281295e454f29be4927b6ca574dad83316cd8477ba23a92cc8b27 |