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.0.0a16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3f4f58df261fb453ef7f1d1c73f5724b1b37f1393fe9e1dc74bc2e215e52a21 |
|
MD5 | b85c1c5ab257f3cd622f0b9f2a353811 |
|
BLAKE2b-256 | 86ad28154ca1f1fee647365a25efdf3b5520b194256dc28bc487ffdd727b0646 |
Close
Hashes for marionette_predeployed-1.0.0a16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84ee3e838eac20c7db344d7e8b0bc40084ef7d2dce94b056d07604f3db0127a8 |
|
MD5 | 601ba36faa8e170f538b9dc5b2d127b5 |
|
BLAKE2b-256 | 40984f2bd0aac581380ea720dee078b8d5fd23a14f1f8b8c3f14437a5ca4d4a4 |