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.1.0a27.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ce41eca9c1ef55c625f4854a4d26b33a7e8513b82faf18ae4867b6c07842a7b |
|
MD5 | e58ab1132568efcddebc9729747e8475 |
|
BLAKE2b-256 | ca9b1662b9ae8d63ea7b52fea774333e0e4dcfa4b452d3679ee488a96423570b |
Close
Hashes for marionette_predeployed-1.1.0a27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 774990833bda0e3437a9732fddecb878c9cfa2fa3433173caea14df01d451cff |
|
MD5 | 1f4a72fccf8fdbe7eeeae131f1088a2d |
|
BLAKE2b-256 | a3e2b00c01e7792e9465bab59ca6916f2459190ab9f612fc1c23ad59e6e39e0a |