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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a150.tar.gz
Algorithm Hash digest
SHA256 02329fd3c45294228aea8c3bea08bd1ab05857bfb12fe59f29d73d832e4eb0d3
MD5 34af34beabab524573671e713a314dbc
BLAKE2b-256 be153da50e6404381f5c586391c56ef16d5afc9d6a4e2a74762ccc7e4445d73e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a150-py3-none-any.whl
Algorithm Hash digest
SHA256 6aad2fc52d2363c52b9550a9726052a2afba4193294d3eefc1e6d0a104b744bb
MD5 1db645e3b969a7f5e87154215fccadae
BLAKE2b-256 d01c7508543ad214ce5bef16885c531fb2af653bb815d38085e87af1d78dabff

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