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.0.0a39.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 896d571b6308392e57953490c34d95b95293c009c4a0af4dc70141c3c7f88e30 |
|
MD5 | 8bd6cc242e143e375b78719f81aef9a9 |
|
BLAKE2b-256 | f6bc33e59559f32d0c8648e2658097be0072992adc4ebf81d7a47bcbfe8d8fb3 |
Close
Hashes for marionette_predeployed-1.0.0a39-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db26a4ce677b7578aad32269dac95c719b0855b41e602acda13e287c9ecc8d36 |
|
MD5 | b666a547546af1dd443b578acd8d5885 |
|
BLAKE2b-256 | b3a27a526b41f4e1eaf6f77982ba201f5f58c8d5abea87be9c934f7ef988641a |