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.0a4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f04f7f703996afef19b0104b39a44bcae264b08b5e8f8363af1fa35dcdd02c3 |
|
MD5 | 5e646cd901a302ea111a4eca71bf5ada |
|
BLAKE2b-256 | 889c0690f342bba7b22476a13a55adc36c9c1bb42cbb75f5972017e02b39a3df |
Close
Hashes for marionette_predeployed-2.0.0a4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d3fb1f3d5bdcc8d3c462d7ab7d863f64e65a66c5a5af78dc4129eb3b94d28a9 |
|
MD5 | 2113c0cd5e231af420424888cc6ec410 |
|
BLAKE2b-256 | 0b4c046d7ebd101433b007287686f62fc4a10209c972b135da619d7dfef7d7e9 |