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.1a5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2b25b90890212e97e2870aeee1ba27c5e1885a4bcaf1195f4ec2e715087ede4 |
|
MD5 | aba9f9ba915cd077c51ae6c71da983bc |
|
BLAKE2b-256 | 02b69f92e7e6397e73f26b1c954dfe9103ccf45ed3be651472c6449b4a100114 |
Close
Hashes for marionette_predeployed-0.0.1a5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34c4dd6cd1ef305e9532d3bd934998d268e2a8d2f6d49a23523c9acd1377f00b |
|
MD5 | e1d3320387b9438e63257eb0fd916d59 |
|
BLAKE2b-256 | 3af93f8d5c443ef9bd397c9c9adf749382ccacb48271aeb31c2fbebc47ea9570 |