Skip to main content

A tool for generating predeployed deployment controller smart contract

Project description

deploy-controller-predeployed

Description

A tool for generating predeployed deploy-controller smart contract

Installation

pip install deploy-controller-predeployed

Usage example

from deployment_controller_predeployed import  (UpgradeableDeploymentControllerGenerator, 
                                                DEPLOYMENT_CONTROLLER_ADDRESS, 
                                                DEPLOYMENT_CONTROLLER_IMPLEMENTATION_ADDRESS)

OWNER_ADDRESS = '0xd200000000000000000000000000000000000000'
PROXY_ADMIN_ADDRESS = '0xd200000000000000000000000000000000000001'

deployment_generator = UpgradeableDeploymentControllerGenerator()

genesis = {
    # genesis block parameters
    'alloc': {
        **deployment_generator.generate_allocation(
            contract_address=DEPLOYMENT_CONTROLLER_ADDRESS,
            implementation_address=DEPLOYMENT_CONTROLLER_IMPLEMENTATION_ADDRESS,
            schain_owner=OWNER_ADDRESS,
            proxy_admin_address=PROXY_ADMIN_ADDRESS
        )
    }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deployment-controller-predeployed-1.0.0.dev3.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file deployment-controller-predeployed-1.0.0.dev3.tar.gz.

File metadata

  • Download URL: deployment-controller-predeployed-1.0.0.dev3.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.8.2 requests/2.26.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for deployment-controller-predeployed-1.0.0.dev3.tar.gz
Algorithm Hash digest
SHA256 9ed588bef85d67f9a64f42e619c0d87eccb78538935605be111980435aec7785
MD5 9c015e5d1b3e56a795fc022776440171
BLAKE2b-256 d826332bb8ed906d782a6186cd3652d19d8498fce52b21596cd5fcb8f8f13fee

See more details on using hashes here.

File details

Details for the file deployment_controller_predeployed-1.0.0.dev3-py3-none-any.whl.

File metadata

File hashes

Hashes for deployment_controller_predeployed-1.0.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 a524eff98a7511b03fc67b811f2d97b899a58a1b45b604d0ac34816a49973818
MD5 70809621a7e4c2aecdf1362f9c490a08
BLAKE2b-256 7afd953215f4affcb963ee349b6ce63e04de5b0b138b49a8a5297e04bc6a24b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page