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.1.0a4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec0f7dd2b0ee24b5e97a03f64e2b49a0e65fb3d38a635604f3446b358b6ae252 |
|
MD5 | 1a9b1e11f65fa4a92fdf6edef6158512 |
|
BLAKE2b-256 | 445f241fd801fd00004642eea683da549487117aa7d56723a283f5a618e1a942 |
Close
Hashes for marionette_predeployed-1.1.0a4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfda1d9961b58c1d1e6520e375ed06e7ed1c7e1292f509f8223a93d13ba985cf |
|
MD5 | 82f7c6e609af13c1910730f325e6e2a3 |
|
BLAKE2b-256 | 6f85bed43c947c0866da182fa16f1056731ee2cfe4f535e899c725f912888689 |