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.1a36.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a0538a0de578f0f4d90088b8518b771219d55d5733fc616633260aaf439ac47 |
|
MD5 | c59f058228d4ee2bb01b838c78e12688 |
|
BLAKE2b-256 | e5965d03875ac16a22242f1470fcb665a23c78f5227ce06bbf449da2f315b7b1 |
Close
Hashes for marionette_predeployed-0.0.1a36-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd869f4530fb5f3910c5a00fe7b88072da0e24a510d97e9caf7446a904b00477 |
|
MD5 | c48b084f6c732ea6f2c79abd16c351f3 |
|
BLAKE2b-256 | fe6021a36d6149ea1762c8a0a78757521b1e2012bfa7378266e96ba60725e424 |