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-0.0.1.dev7662856598892160959.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eb6b03f74c0050a77d3f7a9a25fcb0c4352e30bd948a74102b49d1db8b476f2 |
|
MD5 | a662e23226f4d90a4d36527a87309567 |
|
BLAKE2b-256 | ecaffedb75130af91f4b5b32249e2c59b8e5a9cce927d899cd3c9410df329542 |
Close
Hashes for marionette_predeployed-0.0.1.dev7662856598892160959-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9b35895d116109a53bad262c4571fb46295d558463a72ae4355c86c738c55a4 |
|
MD5 | 889c25fb5df39cc6a609bfb91a8fa847 |
|
BLAKE2b-256 | 6f27b7b91d7badfd6eb53f13d14e9aa6f217cd4e9448892e9c1752edf1dadb3c |