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.0a69.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ac20719aa6ce9ab3ab65f4b8f830708a2cfa1281a9720673b6752136fb1f1d0 |
|
MD5 | 17ad8da72c99c78a5d332b87622ae21c |
|
BLAKE2b-256 | 8169c11c4ba5804a60563fd5ce95bec6578c15988030d0803847775bb2f7a4d5 |
Close
Hashes for marionette_predeployed-2.0.0a69-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 754230b8d3bfdf5ebd8e864e99f7f7dfdf9a5546538859b9a0de2497a92fc254 |
|
MD5 | 8f467d3797f20146751147f14fb6d875 |
|
BLAKE2b-256 | a1f63ecab48beb9273edccbcc6055f89a8dbd7a7ac4e12bac8f7aece48a8097c |