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.0a67.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28380f055149fd5234004426fe62b2431ed8f55ea71c1f36f2dbaee68c77267b |
|
MD5 | 7fc067aa04a14b12439890c28af1a6c8 |
|
BLAKE2b-256 | 4760133b5f498bf34dabc1a4383a3d21808e407546904bde55a4dd836d6281b6 |
Close
Hashes for marionette_predeployed-2.0.0a67-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0212e687b277f4a641bb596a6026439e1f11e2dbd240b7df4eb2a8175b06174c |
|
MD5 | 97b18ddb100d80cea260f36762398f7c |
|
BLAKE2b-256 | cff2a047d02e6c60962a0f2d27e46dc7e14e134798d14113092b92ec946a935c |