Metadata-Version: 2.1
Name: erc1820-predeployed
Version: 0.0.1a1
Summary: A tool for generating predeployed ERC1820Registry smart contract
Home-page: https://github.com/skalenetwork/erc1820-predeployed
Author: Vadim Yavorsky
Author-email: vadim@skalelabs.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# erc1820-predeployed

## Description

A tool for generating predeployed ERC1820Registry smart contract

## Installation

```console
pip install erc1820-predeployed
```

## Usage example

```python
from erc1820_predeployed import  ERC1820RegistryGenerator, ERC1820_REGISTRY_ADDRESS

erc1820_registry_generator = ERC1820RegistryGenerator()

genesis = {
    # genesis block parameters
    'alloc': {
        **erc1820_registry_generator.generate_allocation(
            contract_address=ERC1820_REGISTRY_ADDRESS
        )
    }
}

```
