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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a142.tar.gz
Algorithm Hash digest
SHA256 b6fe7d9ae55828a22e38c19c73d4c42c90a6ed276f35e42e36233cc8404405ea
MD5 ece3d4ab3d3e7f0d9be306f666f29360
BLAKE2b-256 e2ce4c360a2062205ddf3d67ebb3f9d860746b078d09b1db767232714baf2628

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a142-py3-none-any.whl
Algorithm Hash digest
SHA256 1b18795431a404baab0cfdc825c91c07c74be605dfd577488906a3eb50002788
MD5 227344a52d2547a18456cf3008254ab5
BLAKE2b-256 4497c3205d289ed7c56f38a180fd942d0b43afe716709b51a5395a1588924e25

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