Metadata-Version: 2.1
Name: deployment-controller-predeployed
Version: 1.0.0.dev1
Summary: A tool for generating predeployed deployment controller smart contract
Home-page: https://github.com/skalenetwork/deploy-controller
Author: SKALE Labs
Author-email: support@skalelabs.com
License: UNKNOWN
Keywords: skale,predeployed
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3.7,<4
Description-Content-Type: text/markdown
Requires-Dist: predeployed-generator (==0.0.1a2)
Provides-Extra: dev
Requires-Dist: flake8 (==3.7.9) ; extra == 'dev'
Requires-Dist: twine (==3.1.1) ; extra == 'dev'
Requires-Dist: pytest (==6.2.5) ; extra == 'dev'
Provides-Extra: linter
Requires-Dist: flake8 (==3.7.9) ; extra == 'linter'

# deploy-controller-predeployed
## Description

A tool for generating predeployed deploy-controller smart contract

## Installation

```console
pip install deploy-controller-predeployed
```

## Usage example

```python
from deploy_controller_predeployed import  (UpgradeableDeployControllerGenerator, 
                                            DEPLOY_CONTROLLER_ADDRESS, 
                                            DEPLOY_CONTROLLER_IMPLEMENTATION_ADDRESS)

OWNER_ADDRESS = '0xd200000000000000000000000000000000000000'
PROXY_ADMIN_ADDRESS = '0xd200000000000000000000000000000000000001'
ALLOCATED_STORAGE = 1000000

filestorage_generator = UpgradeableDeployControllerGenerator()

genesis = {
    # genesis block parameters
    'alloc': {
        **filestorage_generator.generate_allocation(
            contract_address=DEPLOY_CONTROLLER_ADDRESS,
            implementation_address=DEPLOY_CONTROLLER_IMPLEMENTATION_ADDRESS,
            schain_owner=OWNER_ADDRESS,
            proxy_admin_address=PROXY_ADMIN_ADDRESS
        )
    }
}

```

