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.1.0a23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92e9f39c450f46ece45a6a5d979d3901c805b8ccccd6476a7fdb986f8cf457e7 |
|
MD5 | a8463c04190e1a57a79395e1124b045f |
|
BLAKE2b-256 | 69be7c2af88ac813c0bf7d49f5965f82655d08a9b7f784815a3a12013aa03703 |
Close
Hashes for marionette_predeployed-1.1.0a23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea411d4e0e3a8d582c61f1f35856c10a81aca5565e3a99c7078bbf60c9066106 |
|
MD5 | 8cd45c31b4b204560f6302c8df415146 |
|
BLAKE2b-256 | b9f7e10fb1c0cac507735587456a5198fc1113b4ca9256a8138f51d778210635 |