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-1.0.0a35.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a125f9580a218addad225b38d4efb8ad0b3e477580de2d90673cba5956356f1 |
|
MD5 | 8042d0ca9a6ffe6723190782e476d1a8 |
|
BLAKE2b-256 | 071e9b29d7242f030eb5a2fa1f943285c1486785150870863b55a66f55c1d0f2 |
Close
Hashes for marionette_predeployed-1.0.0a35-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1011c5ec15319b64dcebc7dcb712d8e36e6d1087d32b61dddaaf7072772def6c |
|
MD5 | eb4d249e297c2ddd090ff5d99a46777c |
|
BLAKE2b-256 | ba77f40d588e93e583a7b7fb0486eace14ab9c2aca044848e41fdb843257deb5 |