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.0a120.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9e49bbd34af5674ef63edd098103fbec76a6234fb1469b834a1ca742dbdd1ee |
|
MD5 | f447a7755f9e19c6563078dccfdddd66 |
|
BLAKE2b-256 | eaf01b8d70e3eaac40eb2c6603e2e713854d58d0acd9adc09169402e2cd638cb |
Close
Hashes for marionette_predeployed-2.0.0a120-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 385cc56f08ec13d4017f02e4d29905897ee1b0ff284dec0c51eb417cad724103 |
|
MD5 | 1cec871a1064d427e7db8d2266e61396 |
|
BLAKE2b-256 | 10eafa55e413b54e0b723e0625d63e3bf246992770b43ad59cc1140f8b75e1a6 |