grid402 2.5.1__tar.gz → 2.5.2__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.
- {grid402-2.5.1 → grid402-2.5.2}/PKG-INFO +1 -1
- {grid402-2.5.1 → grid402-2.5.2}/grid402/__init__.py +1 -1
- {grid402-2.5.1 → grid402-2.5.2}/grid402/client.py +1 -1
- {grid402-2.5.1 → grid402-2.5.2}/grid402.egg-info/PKG-INFO +1 -1
- {grid402-2.5.1 → grid402-2.5.2}/pyproject.toml +1 -1
- {grid402-2.5.1 → grid402-2.5.2}/tests/test_sdk.py +1 -1
- {grid402-2.5.1 → grid402-2.5.2}/LICENSE +0 -0
- {grid402-2.5.1 → grid402-2.5.2}/README.md +0 -0
- {grid402-2.5.1 → grid402-2.5.2}/grid402/agentkit.py +0 -0
- {grid402-2.5.1 → grid402-2.5.2}/grid402/exceptions.py +0 -0
- {grid402-2.5.1 → grid402-2.5.2}/grid402/models.py +0 -0
- {grid402-2.5.1 → grid402-2.5.2}/grid402/py.typed +0 -0
- {grid402-2.5.1 → grid402-2.5.2}/grid402.egg-info/SOURCES.txt +0 -0
- {grid402-2.5.1 → grid402-2.5.2}/grid402.egg-info/dependency_links.txt +0 -0
- {grid402-2.5.1 → grid402-2.5.2}/grid402.egg-info/requires.txt +0 -0
- {grid402-2.5.1 → grid402-2.5.2}/grid402.egg-info/top_level.txt +0 -0
- {grid402-2.5.1 → grid402-2.5.2}/setup.cfg +0 -0
- {grid402-2.5.1 → grid402-2.5.2}/tests/test_live_sandbox.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: grid402
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.2
|
|
4
4
|
Summary: SDK Python oficial do Grid402: Micropagamentos HTTP 402 na Base e Prova Criptografica de Oraculo para Agentes Autonomos e IA
|
|
5
5
|
Author-email: Grid402 Team <contato@grid402.online>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -39,7 +39,7 @@ def canonicalize_payload(data: Any) -> Any:
|
|
|
39
39
|
def compute_data_hash(data: Any) -> str:
|
|
40
40
|
"""Calcula o hash SHA-256 em hexadecimal prefixado com 0x do payload normalizado."""
|
|
41
41
|
clean = canonicalize_payload(data)
|
|
42
|
-
serialized = json.dumps(clean, separators=(",", ":"), sort_keys=True)
|
|
42
|
+
serialized = json.dumps(clean, separators=(",", ":"), sort_keys=True, ensure_ascii=False)
|
|
43
43
|
digest = hashlib.sha256(serialized.encode("utf-8")).hexdigest()
|
|
44
44
|
return f"0x{digest}"
|
|
45
45
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: grid402
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.2
|
|
4
4
|
Summary: SDK Python oficial do Grid402: Micropagamentos HTTP 402 na Base e Prova Criptografica de Oraculo para Agentes Autonomos e IA
|
|
5
5
|
Author-email: Grid402 Team <contato@grid402.online>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "grid402"
|
|
7
|
-
version = "2.5.
|
|
7
|
+
version = "2.5.2"
|
|
8
8
|
description = "SDK Python oficial do Grid402: Micropagamentos HTTP 402 na Base e Prova Criptografica de Oraculo para Agentes Autonomos e IA"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -76,7 +76,7 @@ class TestGrid402SDK(unittest.TestCase):
|
|
|
76
76
|
|
|
77
77
|
def test_version_and_exports(self) -> None:
|
|
78
78
|
"""Verifica versao semantica e exportacoes principais."""
|
|
79
|
-
self.assertEqual(__version__, "2.5.
|
|
79
|
+
self.assertEqual(__version__, "2.5.2")
|
|
80
80
|
self.assertTrue(issubclass(Grid402PaymentRequiredError, Grid402Error))
|
|
81
81
|
|
|
82
82
|
def test_pydantic_models(self) -> None:
|
|
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
|