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.0a114.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 602d7c5e013e0eb4cb3d35a8511e5f81fd35744eef113e0d8bb3db18cf66f640 |
|
MD5 | 467e1eeef8cca7a7cc3a92c3ab569cd7 |
|
BLAKE2b-256 | 048b2b14e961fb569f8ffe21b58b04d59dc23b0013bbd7cad556e60abd0d6e1f |
Close
Hashes for marionette_predeployed-2.0.0a114-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 376fe761181b9e6e8432f81d7f9fcdb6f249fcde7512ac975b5bfe127426f84e |
|
MD5 | 8b31e4b9b523550aaca49e8eadc8f8ce |
|
BLAKE2b-256 | 00d8684d9d242f02658ae3d762ffca06d018f99618a5baa7b4862fce3e012721 |