oneshot-python 0.2.1__tar.gz → 0.3.0__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.
- {oneshot_python-0.2.1 → oneshot_python-0.3.0}/PKG-INFO +1 -1
- {oneshot_python-0.2.1 → oneshot_python-0.3.0}/oneshot/client.py +6 -10
- {oneshot_python-0.2.1 → oneshot_python-0.3.0}/pyproject.toml +1 -1
- {oneshot_python-0.2.1 → oneshot_python-0.3.0}/.gitignore +0 -0
- {oneshot_python-0.2.1 → oneshot_python-0.3.0}/README.md +0 -0
- {oneshot_python-0.2.1 → oneshot_python-0.3.0}/oneshot/__init__.py +0 -0
- {oneshot_python-0.2.1 → oneshot_python-0.3.0}/oneshot/_errors.py +0 -0
- {oneshot_python-0.2.1 → oneshot_python-0.3.0}/oneshot/x402.py +0 -0
- {oneshot_python-0.2.1 → oneshot_python-0.3.0}/tests/__init__.py +0 -0
- {oneshot_python-0.2.1 → oneshot_python-0.3.0}/tests/test_x402.py +0 -0
|
@@ -25,19 +25,12 @@ from oneshot._errors import (
|
|
|
25
25
|
)
|
|
26
26
|
from oneshot.x402 import sign_payment_authorization
|
|
27
27
|
|
|
28
|
-
SDK_VERSION = "0.
|
|
28
|
+
SDK_VERSION = "0.3.0"
|
|
29
29
|
|
|
30
30
|
# ---------------------------------------------------------------------------
|
|
31
|
-
# Environment configuration
|
|
31
|
+
# Environment configuration
|
|
32
32
|
# ---------------------------------------------------------------------------
|
|
33
33
|
|
|
34
|
-
TEST_ENV = {
|
|
35
|
-
"base_url": "https://api-stg.oneshotagent.com",
|
|
36
|
-
"rpc_url": "https://sepolia.base.org",
|
|
37
|
-
"chain_id": 84532,
|
|
38
|
-
"usdc_address": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
|
|
39
|
-
}
|
|
40
|
-
|
|
41
34
|
PROD_ENV = {
|
|
42
35
|
"base_url": "https://win.oneshotagent.com",
|
|
43
36
|
"rpc_url": "https://mainnet.base.org",
|
|
@@ -45,6 +38,9 @@ PROD_ENV = {
|
|
|
45
38
|
"usdc_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
46
39
|
}
|
|
47
40
|
|
|
41
|
+
# Deprecated: staging is internal-only. TEST_ENV now aliases to PROD_ENV.
|
|
42
|
+
TEST_ENV = PROD_ENV
|
|
43
|
+
|
|
48
44
|
_POLL_INTERVAL = 2.0 # seconds
|
|
49
45
|
_MAX_POLL_RETRIES = 3
|
|
50
46
|
|
|
@@ -60,7 +56,7 @@ class OneShotClient:
|
|
|
60
56
|
self,
|
|
61
57
|
private_key: str,
|
|
62
58
|
*,
|
|
63
|
-
test_mode: bool =
|
|
59
|
+
test_mode: bool = False,
|
|
64
60
|
base_url: Optional[str] = None,
|
|
65
61
|
debug: bool = False,
|
|
66
62
|
) -> None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "oneshot-python"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.3.0"
|
|
4
4
|
description = "Core Python SDK for the OneShot API — HTTP client with x402 payment handling"
|
|
5
5
|
readme = {text = "Core Python SDK for the OneShot API", content-type = "text/plain"}
|
|
6
6
|
license = "MIT"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|