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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a152.tar.gz
Algorithm Hash digest
SHA256 4fc0354662dc009edccf733b18c4c9b663c62358efa7e4ba34caea62429992c3
MD5 0d7e5273de0cddf6496fc050a3d76ff4
BLAKE2b-256 ef37c5af4145ad5096db423290eb13abec54456ab1f5e28f582dd9ab1d5f60c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a152-py3-none-any.whl
Algorithm Hash digest
SHA256 e7ae50115fa9e79ee5e74e47d24adca0e50c64a0de0bba0da60013289f730b80
MD5 46e36cadd377028fbeda8d541d8b7b68
BLAKE2b-256 92a2db0ee46163a8555b17b3af1cd26b852e1b4bb044c436ece9bab1808fbf9e

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