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.0a23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b265e0927e437c5a084a81b9bcce7af0fc88b1d034207fbd60dbcbe4feccee6 |
|
MD5 | 6029000280f8f0cfbe447c142a68ed01 |
|
BLAKE2b-256 | 9c10416ad270a8cf76495242e05353cb198f02d1b1ca3fafa9cce25f483b0e01 |
Close
Hashes for marionette_predeployed-1.0.0a23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2136cfe718a4a797784e24f5eba13a87d6120ea3d88add2c6e46aace607db39a |
|
MD5 | 2f58f9f59187d01c0a0f6a7266d373af |
|
BLAKE2b-256 | e1977ea2cb8b327dd715cca10734b95d7fed2546b87d2d1b874f5a5c2574ceea |