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.0a40.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5af4b840d6e2b0c44b5cafefe6a659b80377c2f069db0a0f3571f89bbec1c966 |
|
MD5 | 47ae2a4433e20d3ccb289af037a0e315 |
|
BLAKE2b-256 | efaa7e0a6508b0ae31bd40d74e7b634fed625899595144368e0c6a9e10a5282d |
Close
Hashes for marionette_predeployed-1.0.0a40-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b42739d0d55abac9b0082863a17fcdeca688e5e5d0260cc8bc36504b2ffa5a4 |
|
MD5 | b913437abe01467f63151df6556c0788 |
|
BLAKE2b-256 | b5bed8a610bd1073fcb9e140b57b5933b9e25124ad48977b6e603d9dfcd8be74 |