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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d54d5bab84eda28d40b1bb8b18cbf34b6eda3e8486eb577c7e0b832920f21064 |
|
MD5 | d93cee687203224f4dd09b853d6e1b9a |
|
BLAKE2b-256 | 5322e5f6b7bec80c83d58c8ba450cb8bd8eb325e6b3fb83e222b047326a77d55 |
Close
Hashes for marionette_predeployed-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b28d0c0d8164ea860703500a3179973d1440c245f4b5a1bdfab8b70fb281b777 |
|
MD5 | 580f12e4e0e8558eb7d9614d4945cf4e |
|
BLAKE2b-256 | 8412d9060f96b8d2c42dfea947fd0b152cc20452279472891369aae1ff8bf0d2 |