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-1.0.0a28.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5e665a526099b8d58fe3a042113997e2f8637cd70424f5f377d280d594df537 |
|
MD5 | 4e166179c2345bf994f6e5376d9f2d0e |
|
BLAKE2b-256 | a8fdc7b93f0c1b60a093cebaa4bfb7f4617a06245154f40d594d644466421369 |
Close
Hashes for marionette_predeployed-1.0.0a28-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc71cf6be18227526a0ae035a65513a4d2a5e1c87d8ab2d4c234eac3d6e20476 |
|
MD5 | 9266a2ec6d4d647e57f8699e2f855c4d |
|
BLAKE2b-256 | 86af90f1879debd86f7f3fe444189c8520e3c83d18ec8488d11b6176aa53b4b3 |