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.0a109.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2f368bb33bd6c87620ced792e3801e0de6a6c55e3adacaa5db16d782e889866 |
|
MD5 | ee35d65fccf98e601793f73f7f7e9289 |
|
BLAKE2b-256 | 2a2fb92e9e6017c9df9969a5647550b153d81c480fc5591931f11b24f62fdcef |
Close
Hashes for marionette_predeployed-2.0.0a109-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a2e512a26106408b100acd9b71e317d122f1e9ffd72d80baf43b1d1d484b39e |
|
MD5 | a351343d6e588c076e2f307a4f32b433 |
|
BLAKE2b-256 | 35fac656c6bcbf2a7b84a13278d3ee43a903f2f884f405e0f9470ca82064ee77 |