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.1.dev4232873076550898117.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15e7bd7df741f5305df0ff1a215f93c3f06245ad1a472fb37788fee9691eda20 |
|
MD5 | f5a7c5475d69cbf61a4986dc8b0bca95 |
|
BLAKE2b-256 | c45d7f67415daf2dcc6dc9a234a64e80d665e7337c5393e5f3e2510526659b1e |
Close
Hashes for marionette_predeployed-0.0.1.dev4232873076550898117-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aed1e828cff67d6b08a41563352057b5541adc32103fec062cda38af0e88d914 |
|
MD5 | 07a16f17caf10ba1cb7b79f26b2b7193 |
|
BLAKE2b-256 | 28c5f400aa3fe9a3b82b2b954feeadc0d923801e36a5430507971371fafe6c3f |