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.1a29.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d24e6be1305cd2b1abd43f0b4b7dc6f85776beaff31bfef2f7f824ac860adad |
|
MD5 | 574f11095944086ffe091da6646d8eec |
|
BLAKE2b-256 | 57075014a78544b384fbe5e6c0a490ca4259a0f01ac0cf1975e41a77c9c98f5f |
Close
Hashes for marionette_predeployed-0.0.1a29-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ab0d586e24c15cbc2007477fe1dc13050de444bbe817cb4b28bbf4204eb69b8 |
|
MD5 | 6bf64c923c7050c6f8bb9572b738710d |
|
BLAKE2b-256 | b1c004d19b1866249e33a8c74a405fb4bf467b68c03539ec8e97c88a0797c85d |