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.0a22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4909965fa0551e99a75640b7dfa4945446eae760f68b866bb1a53f072e37919 |
|
MD5 | 96bb090a6c27adc11a7b17d0933a2b7f |
|
BLAKE2b-256 | b9f01ae8813d42c7626d57cca116ddf0baacae587bd1342a5b506fd6c1730b1d |
Close
Hashes for marionette_predeployed-2.0.0a22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5d5918f871e75987f80302c10841c6147d34866a66be6327cebb9774f969091 |
|
MD5 | f97e21d41a8afb38cc3ebbf3e459f011 |
|
BLAKE2b-256 | 059a252b531c0d1b199f22522b41bb158188d4990327c03d04b73b2cfe6b13c1 |