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.1a28.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7de346b97ffc3236c2a7561e0f684ac75c45324c55dd1b27733d570b9942db12 |
|
MD5 | e958075b3ac7be1a129be9fdeccb14c0 |
|
BLAKE2b-256 | fb8663674a85dda5078ed346d0ef9c84460b6fa0fa796e4c8c5a31b3ea95ca34 |
Close
Hashes for marionette_predeployed-0.0.1a28-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aae771304cc15fa145acfb8d78b726067defcb8d45713b6d63aa947a2c340dac |
|
MD5 | 78146dae8559ce2352282f9f39693127 |
|
BLAKE2b-256 | ec3aff834b9face2e313d61c0599361211f59af669d43fd9890c768dfce1d9c1 |