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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a153.tar.gz
Algorithm Hash digest
SHA256 d94a44cc3dd4d40a58b166637d31288b954d8841e2df1cc5d886ff1590fcd26a
MD5 7859d9cc0043ff7a6d31e4fad2cf6225
BLAKE2b-256 539e1efeea70259e02db3c6089395c6e17935d9b5afc6b05df20a10c3900a10f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a153-py3-none-any.whl
Algorithm Hash digest
SHA256 2fa606da03ffc6f3aeae6de07e261c211d4eac1d1f7c45027c5214d256dd6b97
MD5 699bf720b456b22f35037d5ceb3877a3
BLAKE2b-256 92d8ec671460f217ea9cfbb805d13d9d7943c53d85ac92aa2ffb1015f23cb336

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