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.0a8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3b5943d8c3e487449209915197c67b169d57543a1b6e27d0ba9056aa69eb585 |
|
MD5 | 3b82b99f524f534b66be93e5643337ef |
|
BLAKE2b-256 | 7a5faf0e498ded7cc2fe39cf034884f254e339795ffc70ea373be430f14dcc87 |
Close
Hashes for marionette_predeployed-1.1.0a8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41d581d0e46d9ffd836cebb279e3a16950c619910aa68861b0cfb20eded0959c |
|
MD5 | cfd6998e1cf04ec789edba7401d94ffb |
|
BLAKE2b-256 | 77ca29c16c09b351f7fcfa37e0de56c29bab01ca3aee4999b99b76f9535a5b67 |