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.0a10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6983de073ccf56a997cfa291808948eb7c1c7d340b45a55034ba2e05218f143a |
|
MD5 | 37866e6694b46ca5bf786aead9c62e76 |
|
BLAKE2b-256 | 63fce29fb04234d8a7856f7c4f330191f0e195fa9027b87b8124851fc0208cf9 |
Close
Hashes for marionette_predeployed-1.0.0a10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e8f6a9407537707f4c4101d69cd2796e2b75e0f6e1c44f3110c4b4629034368 |
|
MD5 | dddde8ec4d1589aaf8298eb8de8043a7 |
|
BLAKE2b-256 | 000e3f51d2a82f1e5bb95d927ed81d0bd190947a8300cb38035f635b5fcce37c |