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
File details
Details for the file marionette_predeployed-2.0.0a148.tar.gz
.
File metadata
- Download URL: marionette_predeployed-2.0.0a148.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba006beebc23b04b50901f9eff87ca6fc3a47f1a567f478a5f781edc90ba7800 |
|
MD5 | 2a646923cb1b6a68557d99c9280cb75c |
|
BLAKE2b-256 | 99187571126408395a63edd11cdbd82d12ac445e743b68b37c196985d5e6829d |
File details
Details for the file marionette_predeployed-2.0.0a148-py3-none-any.whl
.
File metadata
- Download URL: marionette_predeployed-2.0.0a148-py3-none-any.whl
- Upload date:
- Size: 26.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 815090b66bea2d25c10f8d89c89a0c2daa9663f5a6216cec23ea20a1db3bd895 |
|
MD5 | 77339873716b7eed7eb3f161c2b9fae4 |
|
BLAKE2b-256 | b055637afc8eb7fae413ba865e4cdcc4a23ff2ee1b1c82f92e7c7de942bf9d9d |