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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a149.tar.gz
Algorithm Hash digest
SHA256 2b6a6140f7c8bbc21362f3892fa617b157bbb7ceb3a3ffc7c22fba469d13404f
MD5 e70a15658615841f12fb1f35b9d03e67
BLAKE2b-256 47b293fb8358694c5248e34d32a9e8cd232639613fe36f332559c6eee914033e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a149-py3-none-any.whl
Algorithm Hash digest
SHA256 424999d3683ab70bde355739396b5d953ea08f5cb331a05ebbbb3403a82cac32
MD5 0d83c5511c9fdf21a3043094d532a82e
BLAKE2b-256 bbb2d4095537f309592aaad696e1df123358e73b73f1a42e1d0d7768d3316750

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