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.0a88.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 891fde5b7e04a27889e0ca79112ab5bb44c6944acc202d5debb5255f294bb423 |
|
MD5 | fef15e698b549608a7cc0646591aa6b3 |
|
BLAKE2b-256 | 0e6b90e39ab1a4fc8705c1eead2a93a4f27e36ffbe3f1143ddc29f6e36e0acbf |
Close
Hashes for marionette_predeployed-2.0.0a88-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44e65a68b200fde0d3e52da4f1a133174660b33936b5209bbe65c098890fe402 |
|
MD5 | 15356ca5fa95844713b579f9f53957c6 |
|
BLAKE2b-256 | 1591d2191bbf467792719d55055d6d60fb18ad1c8bdf12348457c84f4bdad387 |