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.0a22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e6b2414f4cfea3e9d6c863b0e4eb1737cf59fce2224dad43ba5380be4dc77c3 |
|
MD5 | dfed10594e5304550ab787d0ce90b443 |
|
BLAKE2b-256 | f71308771765b755e0129305e2a9ef753ecf456e774ef71481f5d8981e179f69 |
Close
Hashes for marionette_predeployed-1.0.0a22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c20bbe54a06c123e8fcf929ac6717ea054220095b83e675d4d7cc0606604ff3c |
|
MD5 | 91c0cdf6a4a9f945f2a6ee45fd0d341a |
|
BLAKE2b-256 | f7187ee8771019c61e4f4019639a84149bd198efb58a8f842c14c22610fed5a0 |