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.0.0a32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a934e3ab6d3c77eafdee16de508d0d25c810de5c33bfee5b3c3af5941693df54 |
|
MD5 | 8b12086d648c10c1e05a86df7aeccf24 |
|
BLAKE2b-256 | ed034b7ba1cef671fcad5cc8b172e19d8263290531955508509ea5f2b2fbd658 |
Close
Hashes for marionette_predeployed-1.0.0a32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb654554b083f7b4580dcd86bfab0170e5d53bb31f6e1055eea56d046ad3943f |
|
MD5 | 85995ab21ba717f492f08ddb0ad598ff |
|
BLAKE2b-256 | c8647d21c1400e01e043c9528637eae050cbfb7194f1ab261fa2a15a92c73feb |