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.1a23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5947ff63116563bc392f43ac8988e31160fa45b265319ee35b57ee54390f96c4 |
|
MD5 | 3ad1d39fe92fb5daf1a271469a7f12a9 |
|
BLAKE2b-256 | a43cf3f4aab90c7e8756225e8b2cf756323ac41980305b89a9b2f1d200e7c841 |
Close
Hashes for marionette_predeployed-0.0.1a23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecabdcae33f8f088cfb1b2301a5dd08751baef6cc8fea64d8433fc1cba7dbd4d |
|
MD5 | 0328efa2926799c3548230c29b55111a |
|
BLAKE2b-256 | 38b5756f6746a2dd32d2939c94d3f4b6ac00b9ded425ae99dd442dc735c82f4e |