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.0a104.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 296d42c895148eb4c8f3d7cef1b3510b9677aa0783d16b1a804f6d73542d9e2b |
|
MD5 | cb9240958a654fcbc24c80749f28deed |
|
BLAKE2b-256 | 1b7703c268a034e17d639e797b3a1d82fa63dcb0cfe5742ebd0bdfdc63a10e15 |
Close
Hashes for marionette_predeployed-2.0.0a104-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcd54915003134ff88d234c99fe443e6379560a44a5a70f4e3d93e19c38c69ac |
|
MD5 | 8626cb54fea17833c66a1ced2c7ba122 |
|
BLAKE2b-256 | b09ddc39b9587b6f34727ab19cf507970f3df89582dcad1ccacaf03c6290a202 |