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-0.0.1.dev7390832547085970485.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0db1edf9be5713d463a3c68e94aa5ea2973a33fcd62c6eda8b3df75bf06073f1 |
|
MD5 | 8860f0ff61b4d20d1f71ab7729c64cbd |
|
BLAKE2b-256 | cceb8a3f8103faa8d9b41075c1e7d0bc10850e9887d46c608875aa3f80c28510 |
Close
Hashes for marionette_predeployed-0.0.1.dev7390832547085970485-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a24d9c0229433d6c6eeca128c7198366638ecf147cbe7b9ddae86493d0e0bae |
|
MD5 | c07d8a20485e8ca47e340963343c8e6c |
|
BLAKE2b-256 | 1660b33bbdff2db4abd2b8f0b03a3e6d9541d52a0bc4b3756a4f46eee0e3b386 |