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.1.0a21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f17d51ff634beabc6edb02a924b64e596912f491114529b023414b2f1b5a6cda |
|
MD5 | af0e97a54b33ef78acf4cc01aeb7fe3a |
|
BLAKE2b-256 | fc2308e8c8bf539580e0826665180cf83e2027b79434e79164098b6151191b0e |
Close
Hashes for marionette_predeployed-1.1.0a21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccf3e329b0f19acc74bb511d3ac9cb69f0cfa5b82fb8dae57ee7156b588c62da |
|
MD5 | 4d2732e3a50b0e1e7a438e1c5418ef09 |
|
BLAKE2b-256 | c728e8154f1505cc55c578995b6db3e25e254238a073f1f8df1459f4b7a1d1d0 |