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.0a23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 037b25daf52a2bcf16c040ff60822bf3481702894072f4814f97285f8c037414 |
|
MD5 | 3cdbdab87a4eb3d1435ef1d25b07586d |
|
BLAKE2b-256 | c083a926a4a21869272d4f8283119d948dd3aeb33859a410765e4f2f5ab43a4b |
Close
Hashes for marionette_predeployed-2.0.0a23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5cc2813dfbcc96003581c899661cdb82b400a7881de612f9a29f77fe45d776e |
|
MD5 | 3eb71a3da3ed5af99a613e5d764f1173 |
|
BLAKE2b-256 | d4209f3efbc97e302881eded31743d8a3b8978aa6e4ef3884499acad91e69dc0 |