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-0.0.1a10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf98f359ea32b4d32ae3f9e63ad9dd5d38f5e7ffdfaf1e3c82e951eb41f5475d |
|
MD5 | 2ddb2bcf975c138c40888afb02cd2c16 |
|
BLAKE2b-256 | 82d50e477ac0d135b1105f1fad8a19e4fbc428074a40149c7ab08ee683362dce |
Close
Hashes for marionette_predeployed-0.0.1a10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee6fa3a865cc3144c4bade56121312da949d9bef70c3ae1e75b89a96abb1fee6 |
|
MD5 | 27be7ef3cd2c170e4274b2f1c70799b0 |
|
BLAKE2b-256 | 21f8786bb107f2ee44760ec7a4baeb479e4c03314dc97471267f90bc683bb935 |