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.0a2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 477cadb07ec168858fc63f2924dee243b9e90a19a77bf43c177a822694b03b68 |
|
MD5 | cc17906451fc9b08ca4bad916aff5a02 |
|
BLAKE2b-256 | eda4ce1f5ed8b60f78f8d95c5de3c11e1975b5180576d599d346c32b5bdfff60 |
Close
Hashes for marionette_predeployed-1.0.0a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a2568eff5fd312a51f24a87b89b7e77e6bda6c152f8b993cfd0558e12a1d4f2 |
|
MD5 | 9f8b2b3e026b79814b9b33161b304258 |
|
BLAKE2b-256 | fbf347848d187bc98bc4e5f7972146a991eef43b2b8f30d5961f1e6c6559e572 |