eip712-0.2.1
توضیحات
eip712: Message classes for typed structured data hashing and signing in Ethereum
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | eip712-0.2.1 |
| نام | eip712 |
| نسخه کتابخانه | 0.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | ApeWorX Ltd. |
| ایمیل نویسنده | admin@apeworx.io |
| آدرس صفحه اصلی | https://github.com/ApeWorX/eip712 |
| آدرس اینترنتی | https://pypi.org/project/eip712/ |
| مجوز | Apache-2.0 |
# Quick Start
Message classes for typed structured data hashing and signing in Ethereum.
See [EIP-712](https://eips.ethereum.org/EIPS/eip-712) for details.
## Dependencies
- [python3](https://www.python.org/downloads) version 3.7.2 or greater, python3-dev
## Installation
### via `pip`
You can install the latest release via [`pip`](https://pypi.org/project/pip/):
```bash
pip install eip712
```
### via `setuptools`
You can clone the repository and use [`setuptools`](https://github.com/pypa/setuptools) for the most up-to-date version:
```bash
git clone https://github.com/ApeWorX/eip712.git
cd eip712
python3 setup.py install
```
## Quick Usage
Define EIP-712 models:
```python
from eip712.messages import EIP712Message, EIP712Type
class Person(EIP712Type):
name: "string"
wallet: "address"
class Mail(EIP712Message):
_chainId_ = 1
_name_ = "Ether Mail"
_verifyingContract_ = "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"
_version_ = "1"
sender: Person
receiver: Person
```
نیازمندی
| مقدار | نام |
|---|---|
| <1,>=0.8.2 | dataclassy |
| <5,>=4.0.0 | eth-abi |
| <0.9,>=0.8.0 | eth-account |
| - | eth-hash[pycryptodome] |
| <4,>=3.3.0 | eth-typing |
| <3,>=2.1.0 | eth-utils |
| <1,>=0.3.0 | hexbytes |
| <8,>=6.0 | pytest |
| - | pytest-xdist |
| - | pytest-cov |
| <7,>=6.70.0 | hypothesis |
| <24,>=23.1.0 | black |
| <2,>=1.1.1 | mypy |
| - | types-setuptools |
| <7,>=6.0.0 | flake8 |
| <6,>=5.12.0 | isort |
| <0.8,>=0.7.16 | mdformat |
| <0.4,>=0.3.5 | mdformat-gfm |
| <0.5,>=0.4.1 | mdformat-frontmatter |
| <0.19,>=0.18.1 | myst-parser |
| <6,>=5.3.0 | Sphinx |
| <2,>=1.2.0 | sphinx-rtd-theme |
| >=0.7 | sphinxcontrib-napoleon |
| - | setuptools |
| - | wheel |
| - | twine |
| <3,>=2.42 | commitizen |
| - | pre-commit |
| - | pytest-watch |
| - | IPython |
| - | ipdb |
| <0.19,>=0.18.1 | myst-parser |
| <6,>=5.3.0 | Sphinx |
| <2,>=1.2.0 | sphinx-rtd-theme |
| >=0.7 | sphinxcontrib-napoleon |
| <24,>=23.1.0 | black |
| <2,>=1.1.1 | mypy |
| - | types-setuptools |
| <7,>=6.0.0 | flake8 |
| <6,>=5.12.0 | isort |
| <0.8,>=0.7.16 | mdformat |
| <0.4,>=0.3.5 | mdformat-gfm |
| <0.5,>=0.4.1 | mdformat-frontmatter |
| - | setuptools |
| - | wheel |
| - | twine |
| <8,>=6.0 | pytest |
| - | pytest-xdist |
| - | pytest-cov |
| <7,>=6.70.0 | hypothesis |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4 | Python |
نحوه نصب
نصب پکیج whl eip712-0.2.1:
pip install eip712-0.2.1.whl
نصب پکیج tar.gz eip712-0.2.1:
pip install eip712-0.2.1.tar.gz