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.0a6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5aa530fd3a98e37039ea182f20c50950248a4c2126220ca0551ac95e246e7baa |
|
MD5 | d21d0831ae54579d7e010c299d83a1ce |
|
BLAKE2b-256 | ead25dd1610c7150ca004a318b6080d1b0bbb88e8f8c0790c0db21ba8c92a621 |
Close
Hashes for marionette_predeployed-2.0.0a6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4604aa97a32669823ca1d8da9b1922d11517ed9a54bb58b1d4d0c6a86038666 |
|
MD5 | 973738dbc1ae1f7a446b572918d604cd |
|
BLAKE2b-256 | 033c9fd45a1921551f13a5a2d9be1a52092675139ed4e09a3bfe5e141b7656a1 |