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.1a7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f3970e875174ea71cdb9435cdbc24b80e0473aa06850d1f1970dacccf0e0580 |
|
MD5 | 93e5a67f7fa8b576d2606d5e4d316036 |
|
BLAKE2b-256 | 9aa3b9e3661aaa166187fa860d4c3e297f8e9f256db6ef556ad14bc38b9a044f |
Close
Hashes for marionette_predeployed-0.0.1a7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a420b1f802b102510ece6c47698f53cfe2384155a601c42232f3ae9cc56d1c9 |
|
MD5 | 263a1bec888397fad7e305a49f75a3c8 |
|
BLAKE2b-256 | 774592355e24250598b461e42f1302b9510cf82cfeeb3d53d5e0e6437f59b93d |