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.0a116.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e235263839ddb0ce8217560a2a088360853f0c4e8ce8d9ba110f6f1e3d4e39f0 |
|
MD5 | c61ca28da699f5c1a45c1968e4eb8958 |
|
BLAKE2b-256 | f472429a77f0f2b34c647ef7809f216bd398f731dfd02dc8d60f4a78697857d7 |
Close
Hashes for marionette_predeployed-2.0.0a116-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4daeed7a53ba97e06204fc2fe4e101d2ad8308730263ca5cc181895571c28c96 |
|
MD5 | 417058a1ae97edeb829b671a16a36fbb |
|
BLAKE2b-256 | 6be5f352c87c3273e71e30a724ad466075fc59f555d32a563e3647e47f09ec31 |