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-1.0.0a8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67e67e2ce6446850d83cc9dfe06249669f2ecfb406b3b5cc1a5f9a6e64a05de4 |
|
MD5 | 10c4d1b5ab424a2559a09435e6655a54 |
|
BLAKE2b-256 | f9e937d7856c857d4fe561a09c862bf589d26c6868e531d580a67ea06734e0ca |
Close
Hashes for marionette_predeployed-1.0.0a8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53ed44efda4e22b69b844851ad6c04d8442054a771b10044f7d681464f80f2a1 |
|
MD5 | 0c64279c4ff8b718b35d461a91bc906e |
|
BLAKE2b-256 | 30e0db15eb18241e9563634011cbc33623927c041838cf01310214b4d1df2a65 |