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.0a31.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | facf2e7ce4c5e00d0b65cdd9f085c48d13b8512d1e8085902fc38acbdd8e1132 |
|
MD5 | bdb4f013c8ff1043554f6c1cb4e63ed6 |
|
BLAKE2b-256 | 6c27df68692322350b789caab7cf2d945e0b6ce440bd26e9fc5cbb0c860b1bac |
Close
Hashes for marionette_predeployed-2.0.0a31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a555ec862a74a88e6495624203569093ebc595196e18b3324eafda475aec2be2 |
|
MD5 | 766df962f5db3a45072ef06a2d791650 |
|
BLAKE2b-256 | 64b677b3ecfe1457680d3ea63733ec27097b577e345914c2f7351c6d9462334c |