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.0a40.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5ce92686a03625e7c5b16eb3751dbbbc52c6173b6d347bafb118318a336ee9b |
|
MD5 | d550f6e203282fab0cc11b9b180153cd |
|
BLAKE2b-256 | bcfb00ea85ab79aa6523eed2d18689346cbf7194ad5676a575e4335eef447ce7 |
Close
Hashes for marionette_predeployed-2.0.0a40-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccfb591930b20015a6cf6bd3f9dd1398a268c148c1f6f45b17579e3f55ed9cf0 |
|
MD5 | 594f723865983df012941928f9b65382 |
|
BLAKE2b-256 | 3f52d8f165941da51b6e76ce3978178f450cd61de61b3e6cf072399c765640d1 |