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.0a119.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1344a96bb616f3fc06585bc1d5145843755ba2377a49478dfd52d28d309e6de |
|
MD5 | d571de4df29e7a06c6dba059f6b14721 |
|
BLAKE2b-256 | 706b972f9c7b03568a21589550c44a38cdcd597e4f02c2fe9e11d8f8103f4f1d |
Close
Hashes for marionette_predeployed-2.0.0a119-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 336918764471161bcb7735cffaba14daf0e7c89996bddbe4aa1eb8e0d96cafca |
|
MD5 | 2753a5233307b92a68d742561cb5f382 |
|
BLAKE2b-256 | 0ffbe6df8c94e119c942507c52707a7ececcb68c17d05bd3ecc138a4665846d8 |