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.0a45.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81fd0552b68d18550baf02f30c855b15032dfcc1f4666e377090eddab3a3133a |
|
MD5 | 901a715f93b3291c8ab98bc21015ea4f |
|
BLAKE2b-256 | 267226c3dbe2f8baed4f9668d83502f54cd6940bce8dbc6c558666e4721b9598 |
Close
Hashes for marionette_predeployed-2.0.0a45-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65b3b3d89bad433c75792bde34495dce63595c2b4b699219be130e8b0b45e394 |
|
MD5 | 0294b12b8e483344fbeba10550c42827 |
|
BLAKE2b-256 | 40b74328b3b524293da16257cd70958081548928374f4b03ffdaba97e1b9ae6b |