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.0a25.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ed0239b14666fc06ea9c4fd71810affdc1962ca206d582187318e22b40c3af3 |
|
MD5 | bad90a58e1ac8d674d95523fd951a74b |
|
BLAKE2b-256 | d2a24b3b750265d647ec72df9f83c89a2f9aca2d684883b7d97f2e5d16eef91d |
Close
Hashes for marionette_predeployed-1.1.0a25-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 340eb82f4ee5a5b0e720d9ca094a2e5937b721aaf26f1584be0ace64095f93f2 |
|
MD5 | a054d3acd362687563f08dd28cfb59cc |
|
BLAKE2b-256 | f73b62b92fcb70f452c78e4371b20d8403afb0e378813297a19274dc40d8f5a2 |