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.1a33.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e4e39f1ee3f83772cc1fa823b0bee5063bb65a417e9d27b03815588ea8f0f96 |
|
MD5 | 61834caf4e5347d2d51f4ed361d26dc2 |
|
BLAKE2b-256 | a84f280d031f53023276f374c5b197f5f97f4bc6e858900aa31d4543f004f3a6 |
Close
Hashes for marionette_predeployed-0.0.1a33-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 391c2ede10aefa7522d7b736d0e08767164f6c0b334fffec0a48ca98f9f8f15e |
|
MD5 | 0fc1d8d5b079cf82b7562512f2325a6c |
|
BLAKE2b-256 | c1994ffe50478f0054c5e568c5eacd3cd0fcdf2a953295b5c7ec75b44ed71f85 |