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.0a20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 190ea56d2439624deff73c48d677a374deb8b97c3fc71cef561e243c7ed2f798 |
|
MD5 | c57fed6d1c45f21575ee1f1611715b53 |
|
BLAKE2b-256 | 413f086b52475c69761c2e98a13180ead246860faffdce0d268d2b4b02fb5e42 |
Close
Hashes for marionette_predeployed-2.0.0a20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 093a5cb9ee381771dca9cde513195a9afe9c2664bae923e292ac8218b9c24270 |
|
MD5 | baa544a90ebad0796ef88e2859a183fc |
|
BLAKE2b-256 | 97d3a96877b4eb84ef58d11415f5e47616823d6530cc7fbedd697a85711ce44a |