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.0a117.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f816e89f3f86aa2fab08136c27bdabd2226e78d7a66265104dd8766871bf33b6 |
|
MD5 | da8c2ddf86f0b11b50fdbf3e48605cc6 |
|
BLAKE2b-256 | 703fcd9ac150a3a37326365e0a0161e693b7e27bb1cb5dfc46a9d41d3988c446 |
Close
Hashes for marionette_predeployed-2.0.0a117-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef404759ce0049e599d9166bd3314a3373d9f8111df640b28f4cc94317ce1c31 |
|
MD5 | 5ac705d200c4bd4937119d065e4983a3 |
|
BLAKE2b-256 | 6e427d6726eb61b12cc4b63f9575c58c1f381b86420df9a76031bd435a77037e |