Skip to main content

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

marionette_predeployed-2.0.0a147.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file marionette_predeployed-2.0.0a147.tar.gz.

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a147.tar.gz
Algorithm Hash digest
SHA256 e4966779577ecb7eb274a9cc8331e0099cb1bfdb0f8e3b9e7d5359980aa7f34e
MD5 3eaf7395745b6d3eb633484d691a79a7
BLAKE2b-256 cbf2d617c35ee78ae5ac9e485cf48e93b2caa538051ed07d74bcb9780ec3bc7d

See more details on using hashes here.

File details

Details for the file marionette_predeployed-2.0.0a147-py3-none-any.whl.

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a147-py3-none-any.whl
Algorithm Hash digest
SHA256 aadae7127f938e6f27166cb08bdf4864433341e5ad2e9e265eb61383c01336c6
MD5 4586f8d6fc82300f0dc7afbbab1e11c9
BLAKE2b-256 ac987714b9f38529c83a72e0f3b01e0f1a74e2ce4cabeb7d080e760838c6a9fc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page