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.0a10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 780df797ac12a607a18b278cd2b56364c1f19bb7c127c30ac452fd0fcdc75d4a |
|
MD5 | 18cf2e6e6fa9594f2040c225e7aebf69 |
|
BLAKE2b-256 | f0dbb930762a2dddc88fe15c0b8d148210d011f0050770669b555c661104114d |
Close
Hashes for marionette_predeployed-1.1.0a10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e119840ed792b48e71d01d60523a3bc37db005de5427d60576f25463ce40179 |
|
MD5 | 957a1100f8df5d6ec782b972d86bc467 |
|
BLAKE2b-256 | cbdad99b41ddeb81e4336c7035573f7fbe6729cb662c329f47ac25c46949875b |