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

Built Distribution

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