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.2.0a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43a2ebc707295ed180ac21c02aa9a9f48572a619df8da30b1147f1619daf0fe7 |
|
MD5 | d0411bb8ff2a20ec980ed8523e510859 |
|
BLAKE2b-256 | 326641183d89cbaf382905713c68a17f762d90e1b63c4f1f3700cfc3611fabfb |
Close
Hashes for marionette_predeployed-1.2.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12f220fe91dc99cd07109f93e3fdd9e38a052ba27ea23d2d70eb1e74cc7a42f4 |
|
MD5 | 93dc1fac03a6ba1e0d48454cfcc4eca4 |
|
BLAKE2b-256 | 6c5731cedfc855c306d0a2a3ed0c4c5695f651b55f22041273ba34172f68fe1d |