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.0a26.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5293c292dbc52d7501e1abe37bf5d7ec9c90a90d203e91b45c77d51d96a5aa80 |
|
MD5 | 607d60138c55e62d1b99ceb355be2536 |
|
BLAKE2b-256 | 132e9b5db3a142012762f44f19684430abb08784d95d63a5ae4de2fdc6d35a7a |
Close
Hashes for marionette_predeployed-2.0.0a26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | def5d22e191caa2d919917bfe4f6a25528d20331866bdb8e7866141da81de4a0 |
|
MD5 | 3cffeb7eedfbb9164916a2a5172c5b70 |
|
BLAKE2b-256 | 991968000eb61a039ea5cce2be90524a11fc67f9aad9cbd81626f0994ac65800 |