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.0.0a3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b96260fc6ece40a9077ab0b2651adef792edaabae9834bd9efc235305e39565 |
|
MD5 | 91cebf2e7fedf0392f43727888c387a3 |
|
BLAKE2b-256 | 6fd44cba62d192b53b89a2b582a1ae5a149c3c681edfcf2ad467dfd27d938704 |
Close
Hashes for marionette_predeployed-1.0.0a3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b677ab9727913efd80bf10e632815dc7cac3fce87fb77ab45ea8e45437bc6c6 |
|
MD5 | fb334e9bf06151f09d47d460b7dfcedc |
|
BLAKE2b-256 | 66e7647f67b3282df315f1e350de4c5e9fcf6e502087f5d33b1198834d671d18 |