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.0a17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f38a1d2a9cb4ce6e75d7f35737679e68691dbd6cf54a80860173e1a8cb95d497 |
|
MD5 | ad75d1916286fbf3b7f780b25f6bbff1 |
|
BLAKE2b-256 | e63cbae548747c9bfdb1315a183f2a39f0ea2a345fa0d6dea23d145f65ab8e88 |
Close
Hashes for marionette_predeployed-2.0.0a17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8710b26f18a37580b344bb4da8546e7b29bcb804671dabd5f414748c3b0d778e |
|
MD5 | a7f759565eb3eef6442f232f3f2551e6 |
|
BLAKE2b-256 | 0ae9ac41d54459d31f7aa0dcf7b5b4340ac1c8ba76375ba13253e08c207db99c |