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.1a34.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc9a69c4117340e1c6e9ca2807ef89039195a9f50437eee02aeac18c878b3e4b |
|
MD5 | cda2be7bc36cd19b12be163a0931a5b9 |
|
BLAKE2b-256 | 85d35963c833fca21daf6ae9eb8e142257954e11a449b7b07f0863da61bd4096 |
Close
Hashes for marionette_predeployed-0.0.1a34-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92da300f3806fe20db491db97fe970815d628676c1fb023297d2d5827fc8e1ba |
|
MD5 | 82b3eeb2d9fcb88ea7873228bcf3c89e |
|
BLAKE2b-256 | 8088cf035a0c75919c43d9f955635768b5876bcce593d521e1141540a204a686 |