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.0a7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3122e42be992037c5919c8a71aedf89f7e326d8b7842af3bd22d2d9a7baa6df7 |
|
MD5 | 537f75550d55c2ef866e06baefa418a5 |
|
BLAKE2b-256 | 5460a04aa4788614ed8609af26d6f351cc57ea4736e3bb43294814d4e87b6165 |
Close
Hashes for marionette_predeployed-2.0.0a7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e1f8c316534f5f53f33f848479c16ba21b42e54d32e6b8b3bdeb3c4d40cfff0 |
|
MD5 | 191ba34e14a79860135e7563a4bed73f |
|
BLAKE2b-256 | 0e6a48166288e1f5a7a6a250ed85e966a2407f1c0b17c2801e04f187ca38859f |