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-1.1.0a24.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bfa84fa2f9537ca302c02405ad12272eb3cc81c97b80a12937e91fd876f05b4 |
|
MD5 | 06a808bd8f39126a2e931ad6032bd175 |
|
BLAKE2b-256 | dc64afbe54afcd8e4555effcad726d3f039e993802e68e6b0de05f4256ee8f62 |
Close
Hashes for marionette_predeployed-1.1.0a24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa3990a888a7dfc46ddd87bfd7f49a51a9833440272796b8070e0e9603907d8d |
|
MD5 | a2565e7a4b2883c532c5755ec290d80d |
|
BLAKE2b-256 | b6052b914bb7cfae4c554766451b0ea59bd8231284d48f556112bf0f3bfd1894 |