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.0a101.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c50b70595ed1b01b1656de4653f02eb89ea24dea24e812c8c2a274715fc9ffb |
|
MD5 | e203ee95c5134e4511c73b63b471f6f2 |
|
BLAKE2b-256 | 20a38afed5ee517519966a5e8b0aa46d65124510ed165806d361d868b6226782 |
Close
Hashes for marionette_predeployed-2.0.0a101-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3405ceaf9cd1131d89ba342e55614bfefee12474a6b286335b813eab1772a7f8 |
|
MD5 | 12515116d20cad666ef6e90bd6df1c2a |
|
BLAKE2b-256 | b8368356b64c9e9f4116da101832b8ddfcf2a3575f08131ccdb981d807cc26dd |