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.0b2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4481ea63fe91d1f56a03a3e6f07a8b1296acff4910f166eb7149f8374fb09e44 |
|
MD5 | 3cd444f1ce5326d2ea9b4c273f142d5d |
|
BLAKE2b-256 | 3b593c96cac75eb892bea3d323d71c85f05f8cde0f928b8f4a276d5df3999f9f |
Close
Hashes for marionette_predeployed-2.0.0b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b10b689a2d756527d91fda775ce7221fc744998bf53accb361ba1ab2071eee11 |
|
MD5 | 40826df4d2cd2b059e2c10efa28736a0 |
|
BLAKE2b-256 | bc6035719bf22b0ffa7cd9c695884bbf50df542105718c863ce7543867d5aa0b |