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.0a140.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

marionette_predeployed-2.0.0a140-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a140.tar.gz
Algorithm Hash digest
SHA256 de7e6d5d1effaf8215bb67dd863fb0f6a67da5e6e812d1056b443d9c6e68c066
MD5 96d84efdaf4f60eb5f601d1feae4185c
BLAKE2b-256 7b492b5efaf159fb8d178b77b4bcdfabbba163b1d5918bc803e8a83e346b802d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a140-py3-none-any.whl
Algorithm Hash digest
SHA256 635da13ee771ccab1cb456928656b5b435dab070463b3c6af7bf4e652f3b01c6
MD5 c422a8af19a13e7e871f302fdad370d9
BLAKE2b-256 d3e971b1c63aecb7ac54de0e762e71b8c27af9a1be01371b37def79cbecf46d2

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