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-2.0.0a32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 353c035d5ffe6f0b83b4691eb44f35aebfc39355e0efa2037e7a7f67774b0fde |
|
MD5 | f9c2b316398f555d85e66a15841940fa |
|
BLAKE2b-256 | 2c6e2c14fb18fa480a561540f6e0ce864d636c605110c5e2d76db0162f40c3ab |
Close
Hashes for marionette_predeployed-2.0.0a32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa32896dfb91fd5f556fd863449ab49720be7a4eb8a7af30c119e5c9139d566f |
|
MD5 | 4eee1ad3122984ab173b1c2bed2fc1c3 |
|
BLAKE2b-256 | 88cec55c79445fab6cf136683526adbd2e75afa892e1f834ff3d14f6ae2a536b |