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.0a63.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7876139e1c47eec79fb4348ce5fa799baf95c02c962e9ea1e4322ae58c11bc49 |
|
MD5 | 6533240c6f99eb8862fcca7e53bb03e3 |
|
BLAKE2b-256 | a054a6fdb3efcf5c1f5961c5fa83d2e05bf8a82809d52959eba5a6f824bbb0b1 |
Close
Hashes for marionette_predeployed-2.0.0a63-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f84cffe7f54656a728046c044f402cff855310a5ffc2188946368f66c0200a0f |
|
MD5 | 6fbe6878bbd5ab52016e1aa0ef598f75 |
|
BLAKE2b-256 | 286149ec2fc67835fe84be55db1063233c944984c8a028d8f9c4008758126640 |