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.1a8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d221cb87a24a0575c116e2a3867f9695ae1dcb4b45189da26aa107ee9ff76c1c |
|
MD5 | db8c71988c312bad8b93891b4c935a53 |
|
BLAKE2b-256 | 8705f06561cd162b15ffbcaa9342ecea410da4f536f99a98e84021f7b8b0faee |
Close
Hashes for marionette_predeployed-0.0.1a8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 634ae2c6e959703b706b6c462097528303d8e10d24440cf8512202701af0bd06 |
|
MD5 | 13b68265e94e206ff50d01bf816f9fea |
|
BLAKE2b-256 | e567b57bb8c4872dd7e03879785b542b1302fcc6814fb97034069f7f838c5f4b |