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.0a14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cac8d031b6b3e45c03b7cd78a57da5fab7f3df79970506fb4c48771a49a83132 |
|
MD5 | c37489a39b9fe4abce589cf480ac5082 |
|
BLAKE2b-256 | 8d746b98c99998caa09a48594c9b27726d5d8281d1f48ee610e9f08eb8594514 |
Close
Hashes for marionette_predeployed-1.0.0a14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5079597f631c96f05020de417c216914e4ee4cf7293e4162b1f1de7123fda88d |
|
MD5 | c52b6acd78f3cde55928c1cb20f9fe99 |
|
BLAKE2b-256 | 25829645dd1371aafb77bf71617b0e132648bb1e50bd45b32a4c62ed06d81216 |