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.0a81.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b51b587227c0d87105c2e7256222ec31dcdb5a15fe97efc05b562e076d0b1cad |
|
MD5 | c71b6f755d002f4472a2179c72f080d3 |
|
BLAKE2b-256 | 820566c149c575f34b6cb9cef1003eeb2f9c25ad4df5eaa1d76d34f15445fe01 |
Close
Hashes for marionette_predeployed-2.0.0a81-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaee8ec1ad30d32bc33eb81e44ab50f75b5727f428b38e56dc78ed332b92d9c9 |
|
MD5 | d581ff3033760dd6bc7e263a2064fc55 |
|
BLAKE2b-256 | 579038e85719e3527da2ddf53181d29c87444e7edbd6e33ea51a0e227135a221 |