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.0a78.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b891b6cb54716f8094851a28835b48db8c2597f5f6ec30902f67ce3440203184 |
|
MD5 | 7cda2da4b881453a106d5bf4161393c3 |
|
BLAKE2b-256 | 18ba3bde497e2efd755e80f681b3671f041f251f13e28aacf5fdf9f7a7c50205 |
Close
Hashes for marionette_predeployed-2.0.0a78-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ed5d3ec30c3051655d0237663b479cf40d7d44ada5627a37e10ee339101fada |
|
MD5 | 27637cbf088d256d4054fba365e23e96 |
|
BLAKE2b-256 | 835ff613072688cae423f0c815923ebbf483792409fcb29abed58194968f4377 |