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.0a18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 259fea0ab5c6d363e4c0f4df0974958bdf4e8381ebd69939405dd207e04f9359 |
|
MD5 | bd9b0f2724f0f82e4d3aa1966c5fa945 |
|
BLAKE2b-256 | 1d601f961c2d318b481e0aa170a014763ae3d9f7e4b45dc52a78b3b5abc0ccc2 |
Close
Hashes for marionette_predeployed-2.0.0a18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11df92274ffc06e083a3950f089140eb8b9e7aed93cb243aafd49c52d17be2a7 |
|
MD5 | 479021a64c92bbab01dfecf159ffbcc2 |
|
BLAKE2b-256 | 9e7cbdd60602edf334b77b5684576a51f327bd2339acee6b59ecdaadb4cd8517 |