uvd-x402-sdk 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.
Files changed (29) hide show
  1. {uvd_x402_sdk-0.3.2/src/uvd_x402_sdk.egg-info → uvd_x402_sdk-0.3.4}/PKG-INFO +15 -4
  2. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/README.md +13 -2
  3. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/pyproject.toml +2 -2
  4. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/__init__.py +1 -1
  5. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/networks/base.py +3 -2
  6. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/networks/evm.py +45 -10
  7. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4/src/uvd_x402_sdk.egg-info}/PKG-INFO +15 -4
  8. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/LICENSE +0 -0
  9. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/setup.cfg +0 -0
  10. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/client.py +0 -0
  11. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/config.py +0 -0
  12. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/decorators.py +0 -0
  13. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/exceptions.py +0 -0
  14. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/integrations/__init__.py +0 -0
  15. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/integrations/django_integration.py +0 -0
  16. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/integrations/fastapi_integration.py +0 -0
  17. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/integrations/flask_integration.py +0 -0
  18. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/integrations/lambda_integration.py +0 -0
  19. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/models.py +0 -0
  20. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/networks/__init__.py +0 -0
  21. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/networks/near.py +0 -0
  22. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/networks/solana.py +0 -0
  23. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/networks/stellar.py +0 -0
  24. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk/response.py +0 -0
  25. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk.egg-info/SOURCES.txt +0 -0
  26. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk.egg-info/dependency_links.txt +0 -0
  27. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk.egg-info/requires.txt +0 -0
  28. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/src/uvd_x402_sdk.egg-info/top_level.txt +0 -0
  29. {uvd_x402_sdk-0.3.2 → uvd_x402_sdk-0.3.4}/tests/test_client.py +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: uvd-x402-sdk
3
- Version: 0.3.2
4
- Summary: Python SDK for x402 payments - gasless crypto payments across 14 blockchains with multi-stablecoin support (USDC, EURC, AUSD, PYUSD)
3
+ Version: 0.3.4
4
+ Summary: Python SDK for x402 payments - gasless crypto payments across 14 blockchains with multi-stablecoin support (USDC, EURC, AUSD, PYUSD, USDT)
5
5
  Author-email: Ultravioleta DAO <dev@ultravioletadao.xyz>
6
6
  Project-URL: Homepage, https://github.com/UltravioletaDAO/uvd-x402-sdk-python
7
7
  Project-URL: Documentation, https://docs.ultravioletadao.xyz/x402-sdk
@@ -56,7 +56,7 @@ Accept **gasless stablecoin payments** across **14 blockchain networks** with a
56
56
  ## Features
57
57
 
58
58
  - **14 Networks**: EVM chains (Base, Ethereum, Polygon, etc.), SVM chains (Solana, Fogo), NEAR, and Stellar
59
- - **4 Stablecoins**: USDC, EURC, AUSD, PYUSD (EVM chains)
59
+ - **5 Stablecoins**: USDC, EURC, AUSD, PYUSD, USDT (EVM chains)
60
60
  - **x402 v1 & v2**: Full support for both protocol versions with auto-detection
61
61
  - **Framework Integrations**: Flask, FastAPI, Django, AWS Lambda
62
62
  - **Gasless Payments**: Users sign EIP-712/EIP-3009 authorizations, facilitator pays all network fees
@@ -102,6 +102,7 @@ print(f"Paid by {result.payer_address}, tx: {result.transaction_hash}")
102
102
  | EURC | Ethereum, Base, Avalanche | 6 |
103
103
  | AUSD | Ethereum, Arbitrum, Avalanche, Polygon, Monad | 6 |
104
104
  | PYUSD | Ethereum | 6 |
105
+ | USDT | Ethereum, Arbitrum, Optimism, Avalanche, Polygon | 6 |
105
106
 
106
107
  ## Installation
107
108
 
@@ -712,7 +713,7 @@ The same token may use **different EIP-712 domain names on different chains**. T
712
713
  |-------|----------|------|-----------|
713
714
  | EURC | `"Euro Coin"` | `"EURC"` | `"Euro Coin"` |
714
715
  | USDC | `"USD Coin"` | `"USD Coin"` | `"USD Coin"` |
715
- | AUSD | `"AUSD"` | N/A | `"AUSD"` |
716
+ | AUSD | `"Agora Dollar"` | N/A | `"Agora Dollar"` |
716
717
  | PYUSD | `"PayPal USD"` | N/A | N/A |
717
718
 
718
719
  **Important:** Always use `get_token_config()` to get the correct domain name. Never hardcode domain names.
@@ -926,6 +927,16 @@ MIT License - see LICENSE file.
926
927
 
927
928
  ## Changelog
928
929
 
930
+ ### v0.3.4 (2025-12-22)
931
+
932
+ - Added USDT support (USDT0 omnichain via LayerZero) on Ethereum, Arbitrum, Optimism, Avalanche, Polygon
933
+ - SDK now supports 5 stablecoins: USDC, EURC, AUSD, PYUSD, USDT
934
+
935
+ ### v0.3.3 (2025-12-22)
936
+
937
+ - Fixed EIP-712 domain names: AUSD uses "Agora Dollar" (not "Agora USD")
938
+ - Fixed EURC domain name on Ethereum/Avalanche: "Euro Coin" (not "EURC")
939
+
929
940
  ### v0.3.2 (2025-12-21)
930
941
 
931
942
  - Added critical implementation notes for multi-token support:
@@ -7,7 +7,7 @@ Accept **gasless stablecoin payments** across **14 blockchain networks** with a
7
7
  ## Features
8
8
 
9
9
  - **14 Networks**: EVM chains (Base, Ethereum, Polygon, etc.), SVM chains (Solana, Fogo), NEAR, and Stellar
10
- - **4 Stablecoins**: USDC, EURC, AUSD, PYUSD (EVM chains)
10
+ - **5 Stablecoins**: USDC, EURC, AUSD, PYUSD, USDT (EVM chains)
11
11
  - **x402 v1 & v2**: Full support for both protocol versions with auto-detection
12
12
  - **Framework Integrations**: Flask, FastAPI, Django, AWS Lambda
13
13
  - **Gasless Payments**: Users sign EIP-712/EIP-3009 authorizations, facilitator pays all network fees
@@ -53,6 +53,7 @@ print(f"Paid by {result.payer_address}, tx: {result.transaction_hash}")
53
53
  | EURC | Ethereum, Base, Avalanche | 6 |
54
54
  | AUSD | Ethereum, Arbitrum, Avalanche, Polygon, Monad | 6 |
55
55
  | PYUSD | Ethereum | 6 |
56
+ | USDT | Ethereum, Arbitrum, Optimism, Avalanche, Polygon | 6 |
56
57
 
57
58
  ## Installation
58
59
 
@@ -663,7 +664,7 @@ The same token may use **different EIP-712 domain names on different chains**. T
663
664
  |-------|----------|------|-----------|
664
665
  | EURC | `"Euro Coin"` | `"EURC"` | `"Euro Coin"` |
665
666
  | USDC | `"USD Coin"` | `"USD Coin"` | `"USD Coin"` |
666
- | AUSD | `"AUSD"` | N/A | `"AUSD"` |
667
+ | AUSD | `"Agora Dollar"` | N/A | `"Agora Dollar"` |
667
668
  | PYUSD | `"PayPal USD"` | N/A | N/A |
668
669
 
669
670
  **Important:** Always use `get_token_config()` to get the correct domain name. Never hardcode domain names.
@@ -877,6 +878,16 @@ MIT License - see LICENSE file.
877
878
 
878
879
  ## Changelog
879
880
 
881
+ ### v0.3.4 (2025-12-22)
882
+
883
+ - Added USDT support (USDT0 omnichain via LayerZero) on Ethereum, Arbitrum, Optimism, Avalanche, Polygon
884
+ - SDK now supports 5 stablecoins: USDC, EURC, AUSD, PYUSD, USDT
885
+
886
+ ### v0.3.3 (2025-12-22)
887
+
888
+ - Fixed EIP-712 domain names: AUSD uses "Agora Dollar" (not "Agora USD")
889
+ - Fixed EURC domain name on Ethereum/Avalanche: "Euro Coin" (not "EURC")
890
+
880
891
  ### v0.3.2 (2025-12-21)
881
892
 
882
893
  - Added critical implementation notes for multi-token support:
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "uvd-x402-sdk"
7
- version = "0.3.2"
8
- description = "Python SDK for x402 payments - gasless crypto payments across 14 blockchains with multi-stablecoin support (USDC, EURC, AUSD, PYUSD)"
7
+ version = "0.3.4"
8
+ description = "Python SDK for x402 payments - gasless crypto payments across 14 blockchains with multi-stablecoin support (USDC, EURC, AUSD, PYUSD, USDT)"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
11
11
  authors = [
@@ -37,7 +37,7 @@ Supported Networks (14 total):
37
37
  - Stellar (1): Stellar
38
38
  """
39
39
 
40
- __version__ = "0.3.2"
40
+ __version__ = "0.3.4"
41
41
  __author__ = "Ultravioleta DAO"
42
42
 
43
43
  from uvd_x402_sdk.client import X402Client
@@ -22,10 +22,11 @@ from typing import Dict, List, Literal, Optional, Any
22
22
  # - eurc: Euro Coin (Circle) - 6 decimals
23
23
  # - ausd: Agora USD (Agora Finance) - 6 decimals
24
24
  # - pyusd: PayPal USD (PayPal/Paxos) - 6 decimals
25
- TokenType = Literal["usdc", "eurc", "ausd", "pyusd"]
25
+ # - usdt: Tether USD (USDT0 omnichain via LayerZero) - 6 decimals
26
+ TokenType = Literal["usdc", "eurc", "ausd", "pyusd", "usdt"]
26
27
 
27
28
  # All supported token types
28
- ALL_TOKEN_TYPES: List[TokenType] = ["usdc", "eurc", "ausd", "pyusd"]
29
+ ALL_TOKEN_TYPES: List[TokenType] = ["usdc", "eurc", "ausd", "pyusd", "usdt"]
29
30
 
30
31
 
31
32
  @dataclass
@@ -13,6 +13,7 @@ Multi-token support:
13
13
  - EURC: Ethereum, Base, Avalanche (6 decimals)
14
14
  - AUSD: Ethereum, Arbitrum, Avalanche, Polygon, Monad (6 decimals)
15
15
  - PYUSD: Ethereum (6 decimals)
16
+ - USDT: Arbitrum, Optimism, Celo (6 decimals) - USDT0 omnichain via LayerZero
16
17
  """
17
18
 
18
19
  from uvd_x402_sdk.networks.base import (
@@ -76,13 +77,13 @@ ETHEREUM = NetworkConfig(
76
77
  "eurc": TokenConfig(
77
78
  address="0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c",
78
79
  decimals=6,
79
- name="EURC",
80
+ name="Euro Coin",
80
81
  version="2",
81
82
  ),
82
83
  "ausd": TokenConfig(
83
84
  address="0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a",
84
85
  decimals=6,
85
- name="Agora USD",
86
+ name="Agora Dollar",
86
87
  version="1",
87
88
  ),
88
89
  "pyusd": TokenConfig(
@@ -116,13 +117,13 @@ POLYGON = NetworkConfig(
116
117
  "ausd": TokenConfig(
117
118
  address="0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a",
118
119
  decimals=6,
119
- name="Agora USD",
120
+ name="Agora Dollar",
120
121
  version="1",
121
122
  ),
122
123
  },
123
124
  )
124
125
 
125
- # Arbitrum One - supports USDC, AUSD
126
+ # Arbitrum One - supports USDC, AUSD, USDT
126
127
  ARBITRUM = NetworkConfig(
127
128
  name="arbitrum",
128
129
  display_name="Arbitrum One",
@@ -144,13 +145,19 @@ ARBITRUM = NetworkConfig(
144
145
  "ausd": TokenConfig(
145
146
  address="0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a",
146
147
  decimals=6,
147
- name="Agora USD",
148
+ name="Agora Dollar",
149
+ version="1",
150
+ ),
151
+ "usdt": TokenConfig(
152
+ address="0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
153
+ decimals=6,
154
+ name="USD₮0",
148
155
  version="1",
149
156
  ),
150
157
  },
151
158
  )
152
159
 
153
- # Optimism
160
+ # Optimism - supports USDC, USDT
154
161
  OPTIMISM = NetworkConfig(
155
162
  name="optimism",
156
163
  display_name="Optimism",
@@ -162,6 +169,20 @@ OPTIMISM = NetworkConfig(
162
169
  usdc_domain_version="2",
163
170
  rpc_url="https://mainnet.optimism.io",
164
171
  enabled=True,
172
+ tokens={
173
+ "usdc": TokenConfig(
174
+ address="0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
175
+ decimals=6,
176
+ name="USD Coin",
177
+ version="2",
178
+ ),
179
+ "usdt": TokenConfig(
180
+ address="0x01bff41798a0bcf287b996046ca68b395dbc1071",
181
+ decimals=6,
182
+ name="USD₮0",
183
+ version="1",
184
+ ),
185
+ },
165
186
  )
166
187
 
167
188
  # Avalanche C-Chain - supports USDC, EURC, AUSD
@@ -186,19 +207,19 @@ AVALANCHE = NetworkConfig(
186
207
  "eurc": TokenConfig(
187
208
  address="0xC891EB4cbdEFf6e073e859e987815Ed1505c2ACD",
188
209
  decimals=6,
189
- name="EURC",
210
+ name="Euro Coin",
190
211
  version="2",
191
212
  ),
192
213
  "ausd": TokenConfig(
193
214
  address="0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a",
194
215
  decimals=6,
195
- name="Agora USD",
216
+ name="Agora Dollar",
196
217
  version="1",
197
218
  ),
198
219
  },
199
220
  )
200
221
 
201
- # Celo
222
+ # Celo - supports USDC, USDT
202
223
  # NOTE: Celo uses 'USDC' (not 'USD Coin') for EIP-712 domain name
203
224
  CELO = NetworkConfig(
204
225
  name="celo",
@@ -211,6 +232,20 @@ CELO = NetworkConfig(
211
232
  usdc_domain_version="2",
212
233
  rpc_url="https://forno.celo.org",
213
234
  enabled=True,
235
+ tokens={
236
+ "usdc": TokenConfig(
237
+ address="0xcebA9300f2b948710d2653dD7B07f33A8B32118C",
238
+ decimals=6,
239
+ name="USDC", # Celo uses "USDC" not "USD Coin"
240
+ version="2",
241
+ ),
242
+ "usdt": TokenConfig(
243
+ address="0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e",
244
+ decimals=6,
245
+ name="Tether USD", # Celo USDT uses "Tether USD"
246
+ version="1",
247
+ ),
248
+ },
214
249
  )
215
250
 
216
251
  # HyperEVM (Hyperliquid)
@@ -266,7 +301,7 @@ MONAD = NetworkConfig(
266
301
  "ausd": TokenConfig(
267
302
  address="0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a",
268
303
  decimals=6,
269
- name="Agora USD",
304
+ name="Agora Dollar",
270
305
  version="1",
271
306
  ),
272
307
  },
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: uvd-x402-sdk
3
- Version: 0.3.2
4
- Summary: Python SDK for x402 payments - gasless crypto payments across 14 blockchains with multi-stablecoin support (USDC, EURC, AUSD, PYUSD)
3
+ Version: 0.3.4
4
+ Summary: Python SDK for x402 payments - gasless crypto payments across 14 blockchains with multi-stablecoin support (USDC, EURC, AUSD, PYUSD, USDT)
5
5
  Author-email: Ultravioleta DAO <dev@ultravioletadao.xyz>
6
6
  Project-URL: Homepage, https://github.com/UltravioletaDAO/uvd-x402-sdk-python
7
7
  Project-URL: Documentation, https://docs.ultravioletadao.xyz/x402-sdk
@@ -56,7 +56,7 @@ Accept **gasless stablecoin payments** across **14 blockchain networks** with a
56
56
  ## Features
57
57
 
58
58
  - **14 Networks**: EVM chains (Base, Ethereum, Polygon, etc.), SVM chains (Solana, Fogo), NEAR, and Stellar
59
- - **4 Stablecoins**: USDC, EURC, AUSD, PYUSD (EVM chains)
59
+ - **5 Stablecoins**: USDC, EURC, AUSD, PYUSD, USDT (EVM chains)
60
60
  - **x402 v1 & v2**: Full support for both protocol versions with auto-detection
61
61
  - **Framework Integrations**: Flask, FastAPI, Django, AWS Lambda
62
62
  - **Gasless Payments**: Users sign EIP-712/EIP-3009 authorizations, facilitator pays all network fees
@@ -102,6 +102,7 @@ print(f"Paid by {result.payer_address}, tx: {result.transaction_hash}")
102
102
  | EURC | Ethereum, Base, Avalanche | 6 |
103
103
  | AUSD | Ethereum, Arbitrum, Avalanche, Polygon, Monad | 6 |
104
104
  | PYUSD | Ethereum | 6 |
105
+ | USDT | Ethereum, Arbitrum, Optimism, Avalanche, Polygon | 6 |
105
106
 
106
107
  ## Installation
107
108
 
@@ -712,7 +713,7 @@ The same token may use **different EIP-712 domain names on different chains**. T
712
713
  |-------|----------|------|-----------|
713
714
  | EURC | `"Euro Coin"` | `"EURC"` | `"Euro Coin"` |
714
715
  | USDC | `"USD Coin"` | `"USD Coin"` | `"USD Coin"` |
715
- | AUSD | `"AUSD"` | N/A | `"AUSD"` |
716
+ | AUSD | `"Agora Dollar"` | N/A | `"Agora Dollar"` |
716
717
  | PYUSD | `"PayPal USD"` | N/A | N/A |
717
718
 
718
719
  **Important:** Always use `get_token_config()` to get the correct domain name. Never hardcode domain names.
@@ -926,6 +927,16 @@ MIT License - see LICENSE file.
926
927
 
927
928
  ## Changelog
928
929
 
930
+ ### v0.3.4 (2025-12-22)
931
+
932
+ - Added USDT support (USDT0 omnichain via LayerZero) on Ethereum, Arbitrum, Optimism, Avalanche, Polygon
933
+ - SDK now supports 5 stablecoins: USDC, EURC, AUSD, PYUSD, USDT
934
+
935
+ ### v0.3.3 (2025-12-22)
936
+
937
+ - Fixed EIP-712 domain names: AUSD uses "Agora Dollar" (not "Agora USD")
938
+ - Fixed EURC domain name on Ethereum/Avalanche: "Euro Coin" (not "EURC")
939
+
929
940
  ### v0.3.2 (2025-12-21)
930
941
 
931
942
  - Added critical implementation notes for multi-token support:
File without changes
File without changes