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-0.0.1.dev8486068623040977757.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c8331e1be57f9aadb8816fa784458ca01b37130229ac91d0ec2c31edc51a607 |
|
MD5 | dc5e8160b2064ce5832f42454b3bfd94 |
|
BLAKE2b-256 | def0a85fb856c724735e3ec50fab77da3642748e7f24f48d43c580c468fb6bd6 |
Close
Hashes for marionette_predeployed-0.0.1.dev8486068623040977757-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd2e182c33e414821107054e0fd3ce8fb5a7c0e3bb3c2344b7c6b8d029a4bddd |
|
MD5 | 8c9ab801594e60158328179de4903749 |
|
BLAKE2b-256 | c15930449fd2c58b96c43e040fc2d35f58ea18cf9b6d748acf383b7af602aceb |