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.1.0a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2809ec8a4776ae038568da315c74f50d96077fab4f0315975cb56b3c4ed906fc |
|
MD5 | 5bcaae57923b9ac7b9e9f7026835de9e |
|
BLAKE2b-256 | d5f19937461b7d5e77c3fe791c3c045cb019e07f7c32dcefc63f7a851b711993 |
Close
Hashes for marionette_predeployed-1.1.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdd0847da78aec4ed634c52e54b29a5decf7a4c2805426d0152746171efffc6e |
|
MD5 | e321b360c07d7919a45f813a52cc8736 |
|
BLAKE2b-256 | 8db25a6fc2fd74f60b65b43e201799eebf8dfb933a79cb73309233c4d0402995 |