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.0b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20e68b6a93e34640024fe19f43ebd697a0946e14e4c346b78316f9817a955fdd |
|
MD5 | f8bbaae3510b25f1e9e5561557278563 |
|
BLAKE2b-256 | aa07094e50cb7efd0ff01d9d0307823bac878fabe3149125c6151d59c164a816 |
Close
Hashes for marionette_predeployed-1.0.0b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70e4a2a1ae0de94937da2230fcaa2f78390e72f2cc48de9ec7ed8509aa64a157 |
|
MD5 | 96d58a770d35a88fffbf3e0f0829b431 |
|
BLAKE2b-256 | 9282a849412ca8babe3220d61369c5a359c0c9660b2bd1cb1722adae621200fe |