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.1a9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36861474927d904ee0d6cf4156e0fd89d84f9fa61ae39e787178ea69b40431d0 |
|
MD5 | 384115f463b70c19b9992886bb61539b |
|
BLAKE2b-256 | 1ea36be9130af3782d5dc26fa48987c35bb67ee8713201675aa4a50a99c9c17f |
Close
Hashes for marionette_predeployed-0.0.1a9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9ab765d0b290eb9f44b6198b97f03fdc1ac412b6f2521f1bcd9ab38a91940fb |
|
MD5 | 56efba331ae42a1f77a5a071e28f5c0d |
|
BLAKE2b-256 | ce25708d65f457144a169a9c5719994a7439eca9918ab6f1cc21b68018ee6188 |