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.0a31.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 282936a46c8d504df528057b3a0c26750a09d221ad0f3d33526a0fd5a185ad3c |
|
MD5 | 89d0c8f20261b7807b4e8d1c4aac8cf2 |
|
BLAKE2b-256 | 89b74ebb674547f317c1e5605265b148aa4a7eb8979de985b2955703c6181daa |
Close
Hashes for marionette_predeployed-1.0.0a31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73d4c252617f93186b7282063ffc333272e6dcb32b547a14d000afa61c8ec527 |
|
MD5 | 534f5bf65acb9e648bb932f6a0b10eaf |
|
BLAKE2b-256 | 66dd4779f67cdc8c06f10ca82c4611b31b8da1d2716c8932b83db44e63c080d1 |