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-0.0.1a18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e2c8cb5b378bf95ef9fca56f260e8a9ec32ce52bca5c341e64d03fbac12cbf6 |
|
MD5 | a90fcc3c3b8ea2a33b9f7b83502a728f |
|
BLAKE2b-256 | 70ba82351558ba4a4817ec3641698b7da27b06deead4372b7dcb621a7db849d7 |
Close
Hashes for marionette_predeployed-0.0.1a18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 923829bf382e9362ece3a8610bd691bcfa7f833f73bc34ddc148cb0be37a5506 |
|
MD5 | bc34458720bd0bb522c5a8639a7a2bb8 |
|
BLAKE2b-256 | 1c939a56ab41aebef2eeafeb7b4a1c74cd481ec03a40dcb09dd909bab6b9749f |