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.1a22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4a78b32c02489515922125c09e5cf248f67ff85d1a1864eb3576d0aceccc322 |
|
MD5 | 4c4796fe2117841a0179fe6ac09fb65f |
|
BLAKE2b-256 | 1e7217661c0a6bbba31bf62175fa39ed9fa57b7582cc3f2628e5d4e847b2cec4 |
Close
Hashes for marionette_predeployed-0.0.1a22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 830c3c29050caa6bd86e510ce45ea92c2d856771eeca9e0824aba627dba544b3 |
|
MD5 | ccd9f7ff3f8091df27a1aaaf478bef69 |
|
BLAKE2b-256 | 254c6024feb5e8394513c872f3c6b65a943fb7fd61fedbbf2bdcf0ac73d8d726 |