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.1a30.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28e08054fb6e5569e12b5f0260991d0eaa355be7453f3237687e9ec6e83d5260 |
|
MD5 | 45b73f3b63d876c0d37a5d01d713f8e5 |
|
BLAKE2b-256 | a0f44649932d60dce8e386251003bf0278d76b8dddab4732516b9dcb69101785 |
Close
Hashes for marionette_predeployed-0.0.1a30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99c357d328b1cdc86a2e6e4a39318a07f04c1b57a027590f965d37d8733d6f6a |
|
MD5 | 977f993fac25fbb38c227cf748c134ba |
|
BLAKE2b-256 | 4182f3e4762f87d40724f923eb57bc8647be3a988deb3b97a1c766f40209421c |