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.1a32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aeaac3908f13c13daadfebb41d55e6abdbd8fb63854140287d5906662fc62b15 |
|
MD5 | 18c9e320acd12a1fb69e58d306da0d25 |
|
BLAKE2b-256 | cf143448b8a6e4b05d2d8fec8299bdbb25597537ccffd81a3ceebe8af78704ae |
Close
Hashes for marionette_predeployed-0.0.1a32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06066ff0f3c2ffe01aed320cb35c4ada2b0bc5b26274793c011fbb4516ae933a |
|
MD5 | f118235245cd7c9ce0066a9925062bb8 |
|
BLAKE2b-256 | 296d58d881cacf155a59ca2a550f81ceafebedd2e46aedc813419a2c54606c26 |