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.0a57.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36ba37447be477aa3de6e87f5a1329f1e62ef48cff0da5c29cfaefe14249e7b7 |
|
MD5 | 0fb31d9d8349421b542e171c69419f87 |
|
BLAKE2b-256 | 09af222979158958fb2a06c3fb6e32bca5d929e9b129fb564469e2fa03285f29 |
Close
Hashes for marionette_predeployed-2.0.0a57-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b37d6cbf92865dcad3450a63d08f0464a2fbd795bf09a119d86080dd6df87d83 |
|
MD5 | 3197ac7d86e97e6956f722e8d58464a3 |
|
BLAKE2b-256 | 24feee34c5ea2d939c0042bbd05f726a2c868b20a0616ce37f2804827104d060 |