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.0a59.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40f52f285bad6d8eadae0154ac84ed32972c71efecac69c904caa3927d09b79f |
|
MD5 | 66d739f11074911de81e5320aacda24c |
|
BLAKE2b-256 | 5341f7b8810e6bd3cc66d1c6d758f3d40db9d7f2be6c2c9b88c7cd91de394436 |
Close
Hashes for marionette_predeployed-2.0.0a59-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32a4ad9221bce547313d4c09d119f3593e3e541fb55d6a205a80b1c519e4310f |
|
MD5 | 69909c62df4a7875657ad7b5e0175b59 |
|
BLAKE2b-256 | 6eacceda07d08411c4439df429409c14f9ed45a1945960c455ec9bae2a928878 |