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.0a89.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97d869a72a7a40c271c38e8915600f3efafc1de19c98206f99508c469caf50e9 |
|
MD5 | b107ab076e11134394c60b5a5f36d961 |
|
BLAKE2b-256 | 9cafb2349368966f3010612ed42c23fc8ea6ab98c0495542ed787f3c323b90e2 |
Close
Hashes for marionette_predeployed-2.0.0a89-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c39b56e66e83e643f7ce22c508200abc0f6758575172aa2fa3286faf3fd69ef |
|
MD5 | 2dd8f032f25c11da3fbd9637b544a03e |
|
BLAKE2b-256 | 1eb5679df6a05fa969c370438e9396039c7622bc3701588b5f0edb6914b28cb7 |