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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a139.tar.gz
Algorithm Hash digest
SHA256 7a3682133423bdef813e28614d5ce80dadd4633cc9f6f4d4150be2a1a29110c5
MD5 9deda1e89aa4648abaf73003964e41b3
BLAKE2b-256 407121474ce9c5b901ae4c8140132e19cb16f31399597bfc34bc65d559a48254

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a139-py3-none-any.whl
Algorithm Hash digest
SHA256 521a66d056d9f0ab73fce7a053431efd9c55cdc62d2db38a3b6aa2b24ff5ce2e
MD5 a503a293d16ded5d677460ed866efc27
BLAKE2b-256 cf79cad7b4432221bbff30e296a2d342319d66b1a133e80f7083fbcf54b23b2d

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