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.0a3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cc23687a9e1fd6095871eaa259c0bfad4c44687d53cd19b60f58a4a89276fa8 |
|
MD5 | 3393d76b16c314717ea025ddc198fc19 |
|
BLAKE2b-256 | d7d8b2c2f78e73d47b07bbe9892f1dc45b27509249ea476402c65591542ada42 |
Close
Hashes for marionette_predeployed-2.0.0a3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4428c82b42d8a7db22d4f9e965f546b75d472dbd5eb8d6a554ab71c9104d8ee |
|
MD5 | b386009d64506feafb87264441164c89 |
|
BLAKE2b-256 | 89b4d7ec501eecf8c445d99a54ae185a52385b27436ffed9cd557d62164be7ea |