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.1.0a30.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30860958e05484c7d197ab7f2ecaabac4947e02e554f72a7406b6151166bf952 |
|
MD5 | e06f354508f8d0ac21baa953e34b47e6 |
|
BLAKE2b-256 | 77904dd80c8bb860dd6499658aa0188117aba2d3eaee4e973d9a1aff7af228d9 |
Close
Hashes for marionette_predeployed-1.1.0a30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 099fec6fb30183bba0cf0b1e79d71a3d8925a68fec6c76c9e179deef50db5a34 |
|
MD5 | f93cdff9a54dab337559581f1471f7c0 |
|
BLAKE2b-256 | a37ae178f213a1886514714aaf0290069aa9c52951a13d92160ad9cfc0fe2beb |