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-0.0.1a6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48f04e0a31960d140829720f40ab1106a5d48c797ada26ee9bd56851a4af7956 |
|
MD5 | 038398bb332aff1230ab1a57ff224cc4 |
|
BLAKE2b-256 | 97b1bc31abab83bcf6d279d4781a01717961cbad474a4b3303f9303844667fdf |
Close
Hashes for marionette_predeployed-0.0.1a6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20a967ec6d205370e3590adfd3e8c5fe207ad34a74a817a57fe9f54d56232e6f |
|
MD5 | 63e7c652b76cb12504c194e8227a8996 |
|
BLAKE2b-256 | 0f4fdda8d64984759fa93cc67197bd23ddfd961b36e7833b3127418b5b5ec3c4 |