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.dev8989320653802057995.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f760a9b3ee8872f524edeb93ef2965334dc9b6d7b099da6ff14877911cce679 |
|
MD5 | fbed00ea9077f118177076e83e0f29c1 |
|
BLAKE2b-256 | 0ac5bbd8c58b8114515ba1c3408ed25ea9981c0f89c7fd5aa72057986abef0a5 |
Close
Hashes for marionette_predeployed-0.0.1.dev8989320653802057995-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed2ac957443cd990e35c3e55d43316b7755b12f38dda572b3722c31c5681d477 |
|
MD5 | 52226eee5df8bdf927f262b4ea059c0f |
|
BLAKE2b-256 | a56996b7540ea5347b0741317d85b6934879c4e4647a06bfe63fa0bcf279c1d2 |