eip712 0.3.2__tar.gz → 0.3.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {eip712-0.3.2 → eip712-0.3.4}/.github/workflows/docs.yaml +10 -5
- eip712-0.3.4/.github/workflows/prtitle.yaml +16 -0
- eip712-0.3.4/.github/workflows/publish.yaml +19 -0
- {eip712-0.3.2/eip712.egg-info → eip712-0.3.4}/PKG-INFO +4 -4
- {eip712-0.3.2 → eip712-0.3.4}/eip712/utils.py +4 -10
- eip712-0.3.4/eip712/version.py +24 -0
- {eip712-0.3.2 → eip712-0.3.4/eip712.egg-info}/PKG-INFO +4 -4
- {eip712-0.3.2 → eip712-0.3.4}/eip712.egg-info/SOURCES.txt +2 -0
- eip712-0.3.4/eip712.egg-info/requires.txt +4 -0
- eip712-0.3.4/eip712.egg-info/scm_file_list.json +43 -0
- eip712-0.3.4/eip712.egg-info/scm_version.json +8 -0
- {eip712-0.3.2 → eip712-0.3.4}/pyproject.toml +3 -3
- eip712-0.3.2/.github/workflows/prtitle.yaml +0 -17
- eip712-0.3.2/.github/workflows/publish.yaml +0 -21
- eip712-0.3.2/eip712/version.py +0 -34
- eip712-0.3.2/eip712.egg-info/requires.txt +0 -4
- {eip712-0.3.2 → eip712-0.3.4}/.github/ISSUE_TEMPLATE/bug.md +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/.github/ISSUE_TEMPLATE/feature.md +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/.github/ISSUE_TEMPLATE/work-item.md +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/.github/release-drafter.yml +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/.github/workflows/codeql.yaml +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/.github/workflows/commitlint.yaml +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/.github/workflows/draft.yaml +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/.github/workflows/test.yaml +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/.gitignore +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/.pre-commit-config.yaml +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/CONTRIBUTING.md +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/LICENSE +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/README.md +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/docs/_static/custom.css +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/docs/_static/custom.js +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/docs/_templates/layout.html +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/docs/conf.py +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/docs/favicon.ico +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/docs/index.rst +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/docs/logo.gif +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/docs/methoddocs/common.md +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/docs/methoddocs/messages.md +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/docs/userguides/quickstart.md +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/eip712/__init__.py +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/eip712/common.py +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/eip712/messages.py +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/eip712/py.typed +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/eip712.egg-info/dependency_links.txt +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/eip712.egg-info/top_level.txt +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/setup.cfg +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/tests/__init__.py +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/tests/conftest.py +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/tests/test_common.py +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/tests/test_fuzzing.py +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/tests/test_messages.py +0 -0
- {eip712-0.3.2 → eip712-0.3.4}/tests/test_utils.py +0 -0
|
@@ -24,13 +24,18 @@ jobs:
|
|
|
24
24
|
|
|
25
25
|
steps:
|
|
26
26
|
- uses: actions/checkout@v5
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
- name: Setup Python
|
|
29
|
+
uses: astral-sh/setup-uv@v7
|
|
30
|
+
with:
|
|
31
|
+
python-version: "3.10"
|
|
28
32
|
|
|
29
33
|
- name: Install Dependencies
|
|
30
|
-
run:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
run: uv sync --group docs
|
|
35
|
+
|
|
36
|
+
- name: Add venv to PATH
|
|
37
|
+
run: echo "${{ github.workspace }}/.venv/bin" >> $GITHUB_PATH
|
|
38
|
+
# NOTE: Otherwise the next action nukes the path when it starts
|
|
34
39
|
|
|
35
40
|
- name: Ape Docs
|
|
36
41
|
uses: apeworx/sphinx-ape@main
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
# Thin caller: release trigger + workflow filename stay here so PyPI
|
|
8
|
+
# Trusted Publishing (OIDC) still matches this repo's publish.yaml.
|
|
9
|
+
# Job body is the org composite action (reusable workflows are not
|
|
10
|
+
# supported by PyPI TP today — pypi/warehouse#11096).
|
|
11
|
+
# Merge ApeWorX/.github#4 before merging this PR.
|
|
12
|
+
jobs:
|
|
13
|
+
deploy:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
id-token: write
|
|
18
|
+
steps:
|
|
19
|
+
- uses: ApeWorX/.github/.github/actions/publish@main
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: eip712
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: eip712: Message classes for typed structured data hashing and signing in Ethereum
|
|
5
5
|
Author-email: "ApeWorX Ltd." <admin@apeworx.io>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -21,9 +21,9 @@ Requires-Python: <4,>=3.10
|
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
22
|
License-File: LICENSE
|
|
23
23
|
Requires-Dist: pydantic<3,>=2
|
|
24
|
-
Requires-Dist: eth-account<0.
|
|
25
|
-
Requires-Dist: eth-pydantic-types<0.3,>=0.2.
|
|
26
|
-
Requires-Dist: eth-utils<
|
|
24
|
+
Requires-Dist: eth-account<0.15,>=0.11.3
|
|
25
|
+
Requires-Dist: eth-pydantic-types<0.3,>=0.2.10
|
|
26
|
+
Requires-Dist: eth-utils<7,>=2.3.1
|
|
27
27
|
Dynamic: license-file
|
|
28
28
|
|
|
29
29
|
# Quick Start
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
from typing import
|
|
1
|
+
from typing import Any, TypeGuard, get_args, get_origin
|
|
2
2
|
|
|
3
3
|
from eth_pydantic_types import Address, HexBytes, abi
|
|
4
4
|
from pydantic import BaseModel
|
|
5
5
|
|
|
6
|
-
if TYPE_CHECKING:
|
|
7
|
-
# NOTE: Added to `typing` in 3.12
|
|
8
|
-
from typing_extensions import TypeAliasType
|
|
9
|
-
|
|
10
|
-
|
|
11
6
|
# NOTE: We support these type more "native" annotations
|
|
12
7
|
SUPPORTED_NONABI_TYPES = {
|
|
13
8
|
Address: "address",
|
|
14
9
|
HexBytes: "bytes",
|
|
15
10
|
bytes: "bytes",
|
|
16
11
|
str: "string",
|
|
12
|
+
bool: "bool",
|
|
17
13
|
}
|
|
18
14
|
|
|
19
15
|
|
|
20
|
-
def is_model_type(t: Any) ->
|
|
16
|
+
def is_model_type(t: Any) -> TypeGuard[type[BaseModel]]:
|
|
21
17
|
try:
|
|
22
18
|
return issubclass(t, BaseModel)
|
|
23
19
|
|
|
@@ -25,9 +21,7 @@ def is_model_type(t: Any) -> bool:
|
|
|
25
21
|
return False
|
|
26
22
|
|
|
27
23
|
|
|
28
|
-
def get_abi_type(
|
|
29
|
-
t: "type | TypeAliasType | tuple[type | TypeAliasType, Any, Any]",
|
|
30
|
-
) -> str:
|
|
24
|
+
def get_abi_type(t: Any) -> str:
|
|
31
25
|
if isinstance(t, tuple):
|
|
32
26
|
return get_abi_type(t[0])
|
|
33
27
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# file generated by vcs-versioning
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
__all__ = [
|
|
6
|
+
"__version__",
|
|
7
|
+
"__version_tuple__",
|
|
8
|
+
"version",
|
|
9
|
+
"version_tuple",
|
|
10
|
+
"__commit_id__",
|
|
11
|
+
"commit_id",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
version: str
|
|
15
|
+
__version__: str
|
|
16
|
+
__version_tuple__: tuple[int | str, ...]
|
|
17
|
+
version_tuple: tuple[int | str, ...]
|
|
18
|
+
commit_id: str | None
|
|
19
|
+
__commit_id__: str | None
|
|
20
|
+
|
|
21
|
+
__version__ = version = '0.3.4'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 3, 4)
|
|
23
|
+
|
|
24
|
+
__commit_id__ = commit_id = 'g6d3dd8861'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: eip712
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: eip712: Message classes for typed structured data hashing and signing in Ethereum
|
|
5
5
|
Author-email: "ApeWorX Ltd." <admin@apeworx.io>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -21,9 +21,9 @@ Requires-Python: <4,>=3.10
|
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
22
|
License-File: LICENSE
|
|
23
23
|
Requires-Dist: pydantic<3,>=2
|
|
24
|
-
Requires-Dist: eth-account<0.
|
|
25
|
-
Requires-Dist: eth-pydantic-types<0.3,>=0.2.
|
|
26
|
-
Requires-Dist: eth-utils<
|
|
24
|
+
Requires-Dist: eth-account<0.15,>=0.11.3
|
|
25
|
+
Requires-Dist: eth-pydantic-types<0.3,>=0.2.10
|
|
26
|
+
Requires-Dist: eth-utils<7,>=2.3.1
|
|
27
27
|
Dynamic: license-file
|
|
28
28
|
|
|
29
29
|
# Quick Start
|
|
@@ -36,6 +36,8 @@ eip712.egg-info/PKG-INFO
|
|
|
36
36
|
eip712.egg-info/SOURCES.txt
|
|
37
37
|
eip712.egg-info/dependency_links.txt
|
|
38
38
|
eip712.egg-info/requires.txt
|
|
39
|
+
eip712.egg-info/scm_file_list.json
|
|
40
|
+
eip712.egg-info/scm_version.json
|
|
39
41
|
eip712.egg-info/top_level.txt
|
|
40
42
|
tests/__init__.py
|
|
41
43
|
tests/conftest.py
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": [
|
|
3
|
+
".github/ISSUE_TEMPLATE/bug.md",
|
|
4
|
+
".github/ISSUE_TEMPLATE/feature.md",
|
|
5
|
+
".github/ISSUE_TEMPLATE/work-item.md",
|
|
6
|
+
".github/PULL_REQUEST_TEMPLATE.md",
|
|
7
|
+
".github/release-drafter.yml",
|
|
8
|
+
".github/workflows/codeql.yaml",
|
|
9
|
+
".github/workflows/commitlint.yaml",
|
|
10
|
+
".github/workflows/docs.yaml",
|
|
11
|
+
".github/workflows/draft.yaml",
|
|
12
|
+
".github/workflows/prtitle.yaml",
|
|
13
|
+
".github/workflows/publish.yaml",
|
|
14
|
+
".github/workflows/test.yaml",
|
|
15
|
+
".gitignore",
|
|
16
|
+
".pre-commit-config.yaml",
|
|
17
|
+
"CONTRIBUTING.md",
|
|
18
|
+
"LICENSE",
|
|
19
|
+
"README.md",
|
|
20
|
+
"docs/_static/custom.css",
|
|
21
|
+
"docs/_static/custom.js",
|
|
22
|
+
"docs/_templates/layout.html",
|
|
23
|
+
"docs/conf.py",
|
|
24
|
+
"docs/favicon.ico",
|
|
25
|
+
"docs/index.rst",
|
|
26
|
+
"docs/logo.gif",
|
|
27
|
+
"docs/methoddocs/common.md",
|
|
28
|
+
"docs/methoddocs/messages.md",
|
|
29
|
+
"docs/userguides/quickstart.md",
|
|
30
|
+
"eip712/__init__.py",
|
|
31
|
+
"eip712/common.py",
|
|
32
|
+
"eip712/messages.py",
|
|
33
|
+
"eip712/py.typed",
|
|
34
|
+
"eip712/utils.py",
|
|
35
|
+
"pyproject.toml",
|
|
36
|
+
"tests/__init__.py",
|
|
37
|
+
"tests/conftest.py",
|
|
38
|
+
"tests/test_common.py",
|
|
39
|
+
"tests/test_fuzzing.py",
|
|
40
|
+
"tests/test_messages.py",
|
|
41
|
+
"tests/test_utils.py"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -26,9 +26,9 @@ classifiers = [
|
|
|
26
26
|
requires-python = ">=3.10,<4"
|
|
27
27
|
dependencies = [
|
|
28
28
|
"pydantic>=2,<3", # NOTE: Peer of `eth-pydantic-types`
|
|
29
|
-
"eth-account>=0.11.3,<0.
|
|
30
|
-
"eth-pydantic-types>=0.2.
|
|
31
|
-
"eth-utils>=2.3.1,<
|
|
29
|
+
"eth-account>=0.11.3,<0.15",
|
|
30
|
+
"eth-pydantic-types>=0.2.10,<0.3",
|
|
31
|
+
"eth-utils>=2.3.1,<7",
|
|
32
32
|
]
|
|
33
33
|
|
|
34
34
|
[project.urls]
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
name: PR Title
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request_target:
|
|
5
|
-
types:
|
|
6
|
-
- opened
|
|
7
|
-
- edited
|
|
8
|
-
- synchronize
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
check:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
- uses: astral-sh/setup-uv@v7
|
|
16
|
-
- name: Check PR Title
|
|
17
|
-
run: uvx commitlint "${{ github.event.pull_request.title }}"
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
name: Release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types: [released]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
deploy:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
permissions:
|
|
11
|
-
id-token: write
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v5
|
|
14
|
-
|
|
15
|
-
- uses: astral-sh/setup-uv@v7
|
|
16
|
-
|
|
17
|
-
- name: Build Package
|
|
18
|
-
run: uv build
|
|
19
|
-
|
|
20
|
-
- name: Publish Package
|
|
21
|
-
uses: pypa/gh-action-pypi-publish@release/v1
|
eip712-0.3.2/eip712/version.py
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# file generated by setuptools-scm
|
|
2
|
-
# don't change, don't track in version control
|
|
3
|
-
|
|
4
|
-
__all__ = [
|
|
5
|
-
"__version__",
|
|
6
|
-
"__version_tuple__",
|
|
7
|
-
"version",
|
|
8
|
-
"version_tuple",
|
|
9
|
-
"__commit_id__",
|
|
10
|
-
"commit_id",
|
|
11
|
-
]
|
|
12
|
-
|
|
13
|
-
TYPE_CHECKING = False
|
|
14
|
-
if TYPE_CHECKING:
|
|
15
|
-
from typing import Tuple
|
|
16
|
-
from typing import Union
|
|
17
|
-
|
|
18
|
-
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
19
|
-
COMMIT_ID = Union[str, None]
|
|
20
|
-
else:
|
|
21
|
-
VERSION_TUPLE = object
|
|
22
|
-
COMMIT_ID = object
|
|
23
|
-
|
|
24
|
-
version: str
|
|
25
|
-
__version__: str
|
|
26
|
-
__version_tuple__: VERSION_TUPLE
|
|
27
|
-
version_tuple: VERSION_TUPLE
|
|
28
|
-
commit_id: COMMIT_ID
|
|
29
|
-
__commit_id__: COMMIT_ID
|
|
30
|
-
|
|
31
|
-
__version__ = version = '0.3.2'
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 3, 2)
|
|
33
|
-
|
|
34
|
-
__commit_id__ = commit_id = 'g5104707b8'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|