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.0a24.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d34a0c6cfef54995629175b0d959843b3a1a3cc43dc8bfbae0c32a38056c05e4 |
|
MD5 | b676fb4de62e67e12b3bdbe99d7571a2 |
|
BLAKE2b-256 | 368c2d6dc9da62224309a8c6b11ab0d0aa047903693dc2d77ea59c383f9fe2b5 |
Close
Hashes for marionette_predeployed-2.0.0a24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e659a50950f4fa66139d5652e229049694105bfe7540f600dd2ea04f3dc88200 |
|
MD5 | cd23399015332da46fa8028c755a56c1 |
|
BLAKE2b-256 | 5d86c83678e76b634d78ee8eb1a5e38ce6dbd0179905801352c6ec1122feb231 |