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.0a102.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8910b2710c5a381c3b607c691777d7f29e3a382815b73bff68723bf4de041751 |
|
MD5 | 238b023adc7bd5e483b5a6d2f565862c |
|
BLAKE2b-256 | e8b6828268cfcd21c0b38dac43275a7f5afb7e48d66a1eb824899860376d93de |
Close
Hashes for marionette_predeployed-2.0.0a102-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83110064896eaaedf12134f191f39a18ab2b353b19ffc4340140400c329bba0e |
|
MD5 | ee9491bc5c0a9952959c971b041acad4 |
|
BLAKE2b-256 | db3efc38340860eec9a6e877e4e4f8c9478529d21c02e669505f81bbc1b4f4fa |