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.0.0a12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c82397d04ff50bc9682e6f12ee1abe9fe1eca3fceb41c54790c77788bd84b69e |
|
MD5 | 24b4e0e38632a07244b22b1681d30c4e |
|
BLAKE2b-256 | 1f9ed2f3680f1e07ce9266578c007704db8e49307e145e9c16e2692f3af1a5d0 |
Close
Hashes for marionette_predeployed-1.0.0a12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81cdc7c94eb21567072c17850e20e0e3a5840261dff9159b231e104811bafe75 |
|
MD5 | e30aa4c15475fd0a61009592c0232f91 |
|
BLAKE2b-256 | 278fd7292e969ce17118efa9e4da9c1dc8c0539ab14562140f8236a24b374456 |