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.0a18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45548bef1ed77197c032c0acaedad5288cb158b0fea4a0f707f75122dcaaa008 |
|
MD5 | 398c3429bb71785947f2b2ebf5add0e6 |
|
BLAKE2b-256 | 8d1be9ee1ceb895da2745023ac15f142e731e420f2f99fa603dbce5f5dda3970 |
Close
Hashes for marionette_predeployed-1.1.0a18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6baf8160819d210bf414224e4cdc900adcfb968590e466e1e438d1330f9fdf5f |
|
MD5 | 43f0be5b23458b683229137682d18306 |
|
BLAKE2b-256 | 71390bb8ba99fa69e161c6ed81727ed8747e6cc1709dabeed99c5ecf194c7448 |