Skip to main content

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,
        )
    }
}

Release files for marionette-predeployed 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for marionette-predeployed 1.0.0
File Size Uploaded
marionette-predeployed-1.0.0.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for marionette-predeployed 1.0.0
File Interpreter ABI Platform
marionette_predeployed-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.7 kB

Release files / marionette-predeployed-1.0.0.tar.gz

Download URL marionette-predeployed-1.0.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d54d5bab84eda28d40b1bb8b18cbf34b6eda3e8486eb577c7e0b832920f21064
BLAKE2b-256 checksum
How to use checksums
5322e5f6b7bec80c83d58c8ba450cb8bd8eb325e6b3fb83e222b047326a77d55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release files / marionette_predeployed-1.0.0-py3-none-any.whl

Download URL marionette_predeployed-1.0.0-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b28d0c0d8164ea860703500a3179973d1440c245f4b5a1bdfab8b70fb281b777
BLAKE2b-256 checksum
How to use checksums
8412d9060f96b8d2c42dfea947fd0b152cc20452279472891369aae1ff8bf0d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page