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.0a17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea2538b4a46258c471f118191d38b7141d74c4f7225e36428a86b5459f3cdb10 |
|
MD5 | 43c535621769048afa256a724d1a84f4 |
|
BLAKE2b-256 | 9660940109aaeabde8a8f97a4b0aae8c00141c1cb61369d352d8bdd267fb1486 |
Close
Hashes for marionette_predeployed-1.1.0a17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c09db018bcf0f0e6365543a7e5a86795d8a479a2b6b11f213d8e3447e8d638c5 |
|
MD5 | bf26919135ce184d7bd1e55d1f9e4816 |
|
BLAKE2b-256 | 0cc7cf101efac2162d25764cbeb318da4e86360cea80cd6d4f4e23460908b99a |