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.1a35.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 577bb36bca0bc388e1ccc20431cf75e17a0d125a7d77649258c9a19b86e73ef3 |
|
MD5 | 07bfce2e4eba893e79d09801036562a0 |
|
BLAKE2b-256 | 2d6cefdfdc6b22656fbc8f593ace9265002241a5b9186289d5203cb61c3c1ab4 |
Close
Hashes for marionette_predeployed-0.0.1a35-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7502a7bef7db1178e0fe86ad34dbae1453f6e423a04ca36b98b72a92e710bb89 |
|
MD5 | 5ed02415d9a10cb7c9da99f33a4594b9 |
|
BLAKE2b-256 | b850f04f03fde2d971cb3f88370cd7641b5303be6445157adcd6dcda202ba39b |