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.0a74.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf065d1ce9a5cf8c5cfcfbf5fb7bb42a4709ae58476b56eb32f5ea29cf0aa550 |
|
MD5 | 346198102e35390efe48d5e95828aa94 |
|
BLAKE2b-256 | e8fc31091dc5d8775e3f8d4a29484a6200df34968655ee7b78e14d6251922f08 |
Close
Hashes for marionette_predeployed-2.0.0a74-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e135c92a3241972961b6f3ede25bf3aa47353d6779a65dcbc45646ef806acd1 |
|
MD5 | 7a5bc750f97a3b807c8246e4e61041e8 |
|
BLAKE2b-256 | b6fd218d638efd66f534fc3f43df5e87ecdd79a3fb67287ac86e8bb67bbfb37a |