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.1.0a19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd6a83127beaff011ec3291a4f2c87b93ab16c66a4ff337d5912918b7da2c77c |
|
MD5 | 5f662d97412f1cb0774082384f7d4e43 |
|
BLAKE2b-256 | 977dad74de2d3fa7bd509effc6e3a36b8991979e508071af485763f6fa28ecc2 |
Close
Hashes for marionette_predeployed-1.1.0a19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0592c00222ae964370fdab1c21271358672797a55ef052d82c2b7d7de4e7de78 |
|
MD5 | cbe3380b397682c402b64a3db72beebe |
|
BLAKE2b-256 | 905ae633301e9c7acebaa71bce842fa49d4bf8a791e39e2469d1f775898cd6fc |