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.1a37.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90dce16c96bcd9d31c34b4cfddfe2aff4225ef848424592245d7371200b47c5c |
|
MD5 | d7bb24136337e7caa63f50704d0b20d4 |
|
BLAKE2b-256 | 5c03b00fef2b06726e7719b6d6e27b1876c1cad21c18ee5ac634d6b87bd382e9 |
Close
Hashes for marionette_predeployed-0.0.1a37-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96239b07ec281b6a912a28b5e21769d36dea12a1422bb0d6f24cea66fe3c1e65 |
|
MD5 | 4b6cbb03d78962da7dbc1457df692217 |
|
BLAKE2b-256 | fabfbab4af47a337fbd4a9c7899b5711195e99188f4b95ae1af4b2687d998d43 |