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.0a22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fc5f0088443ce98d4b99deb3f34d26d4fdbc36f227b384cd512d1fd86646d81 |
|
MD5 | e628ccdf01a409316e98ea14fb5aaf6c |
|
BLAKE2b-256 | e04e48a9f59dfcb3be9cf73470e3ac68face971c0651f149c0423f6152620a59 |
Close
Hashes for marionette_predeployed-1.1.0a22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27ec88805c72be9581457d7c89a3e47fbb2c5b2776cc6818fc2b2095c3e84752 |
|
MD5 | 3ec1ce161637897ee07519d6702917e8 |
|
BLAKE2b-256 | dd187626a3c79b9f0134a42289e9c024509183803a28256b8c7d36ec0910995d |