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.1.dev6162747411847729950.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce2fff5cb8f629a207ea396e091ca0a32d8e3a99e2a2305485bd9d2caa4149dc |
|
MD5 | 622d07c336808236aeb337823981bb07 |
|
BLAKE2b-256 | b027c2af204a0622407941cf5304d5a1a35d1a3cca9d9609b4d04ec0e07ef7b5 |
Close
Hashes for marionette_predeployed-0.0.1.dev6162747411847729950-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b56c18bfcc65795053426347b46261db7d8da44a19d95dae776a59a3a90f3695 |
|
MD5 | 46a71237ece04cd3d7e53f660a7975b7 |
|
BLAKE2b-256 | 05dd2237312e6fdcf6702ab876c6a323628f0f34aa1da46e9ecfcb3e6bd9ee45 |