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.0a98.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72de6f146fa287ef7d010537750233aeeb64002c4460d139a65aa6f0c02c32d7 |
|
MD5 | ffdcdd13161670ce4d5ff3bd5e936228 |
|
BLAKE2b-256 | fbd84ba7bf8d2fb942985be578d08b50e9271e13ff0922ee5ebcd712a8b34068 |
Close
Hashes for marionette_predeployed-2.0.0a98-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36801e3db77be1018e36d8e0dfec04dd623696a74950ca2096e93aadeaa29187 |
|
MD5 | 13b2e8de0111668478f61c4de848b4ad |
|
BLAKE2b-256 | b215310aa0ca19b649711a48971a313f9674442af18b60fa675fee580cd39682 |