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.1a13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6b6f9108657d3207eb6bb38f0bc5093cbdf4dae0c471c72ce856a1a76bb1ebc |
|
MD5 | a8e27bd41e51635a06c46911eca0330d |
|
BLAKE2b-256 | 57f6a9fb5a56adc326278d5813dbc29ba53b3b2dc85d00c6c0d289fb7f786efe |
Close
Hashes for marionette_predeployed-0.0.1a13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea139d8322875c1ee48c392737dc450d9d2a6c745394e61e2a271a26c2fe54e7 |
|
MD5 | df7291820979ef8321759bb2420703be |
|
BLAKE2b-256 | 1c38772ab61145962c314959203639ae2f47aa0e1978cc5c0ddc71c43e6ce541 |