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.0a100.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fac6a49b5cc673af867e9ea5e084f999f21af090caf48b4c6d3d8ae61a533f03 |
|
MD5 | fc55eb53e8bff10390de2926b2f6950f |
|
BLAKE2b-256 | ac4d51e7c39c75a969a4fef71e55c0625f41ef5711831fcbb8e860c46c2b4bb6 |
Close
Hashes for marionette_predeployed-2.0.0a100-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09f67b2f3c87d852d074aad952929e7209db517ae164406d4c54e1631941a376 |
|
MD5 | 2ce864e157659bf3b937005922ad1f83 |
|
BLAKE2b-256 | 12fc35431eaa852b12e3bd1c6cfc888fc2139d67677af5f73fc16431ed5dcb2e |