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

Built Distribution

File details

Details for the file marionette-predeployed-0.0.1.dev7396039426046930444.tar.gz.

File metadata

File hashes

Hashes for marionette-predeployed-0.0.1.dev7396039426046930444.tar.gz
Algorithm Hash digest
SHA256 a396b37d32668dc3864b892aacf730a6ebcb0541593230fc63b8c3591147bd96
MD5 aa743e2b558ac67f6c927381d3ca248d
BLAKE2b-256 75262627a54d6859a39106c8e5317cbbb71e36ae81ad90e4878df1ff55e0b41a

See more details on using hashes here.

File details

Details for the file marionette_predeployed-0.0.1.dev7396039426046930444-py3-none-any.whl.

File metadata

File hashes

Hashes for marionette_predeployed-0.0.1.dev7396039426046930444-py3-none-any.whl
Algorithm Hash digest
SHA256 c6d8d695dd0ebc021b6d6342e2f4cbcb5c7463ce722fd6b0db3ffca9f2b1762c
MD5 1f99c8e04a61b4ad3623a41b7fef3727
BLAKE2b-256 f9a6c9de2c3049f1a0356e5450d0e561af9b4e0a061eeaf69ff0ad4cdbcdde3a

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