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.0a61.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0894ce345c818ad6ab8628486a77d15dd985465155d21ef55fdb4576f0afab5d |
|
MD5 | 7385bece409069998b35ccf5d5a2bd48 |
|
BLAKE2b-256 | fd6f5e53aa3c454f8889ba690b71a6608f87628c38e033d453a1c9939c67ba0d |
Close
Hashes for marionette_predeployed-2.0.0a61-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7e9e850a133e6b6af00fee7061e029fe094d1d9e932d805456a8265f6f71ad2 |
|
MD5 | 1044a302944388994b3944a75db8669d |
|
BLAKE2b-256 | 84430910b30ceff07955d001d3a0275250de4937abab68809130702c01f3cfd8 |