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.0a107.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00ae3235a42804acdcd569c9002425ea8881725c76bf1eda5186dd0dbf780b0d |
|
MD5 | ce57e6824814f5c210edfdcd1e43c274 |
|
BLAKE2b-256 | cce1332f3c102db7916653685c1731f0b697f4d17c5dc1b50d0b9ebcc75a5a4d |
Close
Hashes for marionette_predeployed-2.0.0a107-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fee04352b241c86f820d15c8069b3b6b44f7a5767c8f86395fb2ca774f959a0 |
|
MD5 | 74c77a5592aa59900ab723a3d01c3888 |
|
BLAKE2b-256 | 63127aff2c94d4e8b185a2744c20c7e687e996cb5eac2c9a46ec1209f7591599 |