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.1a15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d493312bfd7339e5e8199c377b4b29379c02c0efd6dfac380ef29030c24a4a4 |
|
MD5 | 7cd4209895c417f54626e010ea25896b |
|
BLAKE2b-256 | e8e71c567bdea20d9a81e973567c6cad82bd468e1e8935188d1fc08b01e0a9ca |
Close
Hashes for marionette_predeployed-0.0.1a15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ac2cc5757ee3b5cda2994bfa37dc901d1ffb7325a680fa0af08754371a2912e |
|
MD5 | 505b2f3d8a662c9c1572cc60cadf6272 |
|
BLAKE2b-256 | 447bc2d10b964265bdcdbd004feccb25812ece197315bcec1c2a5cca7b75d771 |