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.0a35.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be4ff78d576128ec48cdec017c956c43e14783c6ba2eb5ac3f2b7a3f7b89dfac |
|
MD5 | d67956b65f32734bca3c42f705e864ff |
|
BLAKE2b-256 | c10ebf7b2d20e7254778d0366cc533a82af0f820bb55649fec90880a8527fc88 |
Close
Hashes for marionette_predeployed-2.0.0a35-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a833e9c36ae1ecb2034d2b090500a21eb93d762d5d1419a1904c7f2c1f303cfe |
|
MD5 | 5c42c09b5f1dfe6e40a8958d3fad9a31 |
|
BLAKE2b-256 | a376bba76572f9241398563d948333a6c14c6366b4a5b262958884e3e58d0fd0 |