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

Uploaded Source

Built Distribution

marionette_predeployed-2.0.0a135-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a135.tar.gz
Algorithm Hash digest
SHA256 0bd31231db923ce93908391d1dc56fc5814bbdf382c9a09b400f0ec0f126faff
MD5 7335c67946b82dc53f41345e1d13971f
BLAKE2b-256 e6bf9bc369fe5d9ea5a1d5144ab339a2d976f4a5a3b71aa5f8af2a6ef9788ce6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for marionette_predeployed-2.0.0a135-py3-none-any.whl
Algorithm Hash digest
SHA256 782a15f8252507732a68e52559ff90136b4e2435960ca212cb8e4dc161f61df8
MD5 2b8ac35298feab932f5077c066cf7df5
BLAKE2b-256 afc83f8aac61d42e80825cc7c5d7d4cff913381f41b801153f628d492b595f9c

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