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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a145.tar.gz
Algorithm Hash digest
SHA256 df30d18fdb844f7a8c4a5ab6a8750b7eea7a1c63eaaafd69b64cb02c773b2051
MD5 b22d4601ea31cdbbea3a93a0dd68db74
BLAKE2b-256 08d84b45b239068c3b666d821cb86fb0bbb018c71f57b61e419242cf4eff9bd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a145-py3-none-any.whl
Algorithm Hash digest
SHA256 e7bf26c15590b00e8d1961080452582635690a78041c8b1d3a6d4ff13ea83519
MD5 7aa28d0ebd19868360ccbbd3d16ed867
BLAKE2b-256 7f7dc0cb866062b8cc1dd1df511edf1cbc1e8941d5b4dff843d8006290784da9

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