uvd-x402-sdk 0.5.4__py3-none-any.whl → 0.5.5__py3-none-any.whl

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.
uvd_x402_sdk/__init__.py CHANGED
@@ -42,7 +42,7 @@ Supported Networks (18 total):
42
42
  - Sui (2): Sui mainnet, Sui testnet
43
43
  """
44
44
 
45
- __version__ = "0.5.4"
45
+ __version__ = "0.5.5"
46
46
  __author__ = "Ultravioleta DAO"
47
47
 
48
48
  from uvd_x402_sdk.client import X402Client
@@ -7,6 +7,7 @@ This module supports Sui blockchain for x402 payments using sponsored transactio
7
7
 
8
8
  Supported Tokens:
9
9
  - USDC: Native Sui USDC
10
+ - AUSD: Agora USD (mainnet only)
10
11
 
11
12
  All Sui chains use the same payment flow:
12
13
  1. User creates a programmable transaction for token transfer
@@ -59,6 +60,9 @@ except ImportError:
59
60
  SUI_USDC_COIN_TYPE_MAINNET = "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"
60
61
  SUI_USDC_COIN_TYPE_TESTNET = "0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"
61
62
 
63
+ # AUSD (Agora USD) coin types on Sui
64
+ SUI_AUSD_COIN_TYPE_MAINNET = "0x2053d08c1e2bd02791056171aab0fd12bd7cd7efad2ab8f6b9c8902f14df2ff2::ausd::AUSD"
65
+
62
66
  # Sui Mainnet
63
67
  SUI = NetworkConfig(
64
68
  name="sui",
@@ -78,10 +82,18 @@ SUI = NetworkConfig(
78
82
  name="", # Not applicable for Sui
79
83
  version="",
80
84
  ),
85
+ "ausd": TokenConfig(
86
+ address=SUI_AUSD_COIN_TYPE_MAINNET,
87
+ decimals=6,
88
+ name="", # Not applicable for Sui
89
+ version="",
90
+ ),
81
91
  },
82
92
  extra_config={
83
93
  # Coin type for USDC (package::module::type format)
84
94
  "usdc_coin_type": SUI_USDC_COIN_TYPE_MAINNET,
95
+ # Coin type for AUSD (Agora USD)
96
+ "ausd_coin_type": SUI_AUSD_COIN_TYPE_MAINNET,
85
97
  # Fee payer (facilitator) address
86
98
  "fee_payer": SUI_FEE_PAYER_MAINNET,
87
99
  # Block explorer
@@ -345,6 +357,31 @@ def get_sui_usdc_coin_type(network_name: str = "sui") -> str:
345
357
  return SUI_USDC_COIN_TYPE_MAINNET
346
358
 
347
359
 
360
+ def get_sui_ausd_coin_type(network_name: str = "sui") -> Optional[str]:
361
+ """
362
+ Get the AUSD (Agora USD) coin type for a Sui network.
363
+
364
+ Note: AUSD is only available on Sui mainnet.
365
+
366
+ Args:
367
+ network_name: Network name ('sui', 'sui-mainnet', 'sui-testnet')
368
+
369
+ Returns:
370
+ AUSD coin type in package::module::type format, or None if not available
371
+
372
+ Example:
373
+ >>> get_sui_ausd_coin_type("sui")
374
+ '0x2053d08c1e2bd02791056171aab0fd12bd7cd7efad2ab8f6b9c8902f14df2ff2::ausd::AUSD'
375
+ >>> get_sui_ausd_coin_type("sui-testnet")
376
+ None
377
+ """
378
+ network_lower = network_name.lower()
379
+ # AUSD is only available on Sui mainnet
380
+ if "testnet" in network_lower:
381
+ return None
382
+ return SUI_AUSD_COIN_TYPE_MAINNET
383
+
384
+
348
385
  # =============================================================================
349
386
  # Sui Transaction Building Utilities (for reference)
350
387
  # =============================================================================
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: uvd-x402-sdk
3
- Version: 0.5.4
3
+ Version: 0.5.5
4
4
  Summary: Python SDK for x402 payments - gasless crypto payments across 18 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
@@ -1,4 +1,4 @@
1
- uvd_x402_sdk/__init__.py,sha256=PMSWL2YXzdKZR5Gq_JueGLE4QidfKTD9RqtSMprUyuc,6577
1
+ uvd_x402_sdk/__init__.py,sha256=mn1GGLPDTxhjVvgJqp04z8lAnGdGoElPM0b64LAGBFk,6577
2
2
  uvd_x402_sdk/client.py,sha256=QbK22DtC3HmvvCezphQ-UsYX468vKrIN-M_wF4pv9cM,18389
3
3
  uvd_x402_sdk/config.py,sha256=BNGnX2RwZ_ELIcSKU7RkwTUcln4LMFZdCwG1ptASKN8,8644
4
4
  uvd_x402_sdk/decorators.py,sha256=XJ7V4554hsa-AVDrizF1oKmeTysg5zlkQRcaeGBI73E,9767
@@ -18,9 +18,9 @@ uvd_x402_sdk/networks/evm.py,sha256=4IbeaMH2I1c9DYCijghys0qYNeL2Nl92IMKLwq-b0Zg,
18
18
  uvd_x402_sdk/networks/near.py,sha256=HMMWJr-Jckj3YQTbSXkavlJWZB7ZV8OQX0bq8DuVxIg,12990
19
19
  uvd_x402_sdk/networks/solana.py,sha256=GVUeh0O2W6f8Vbgoom2UQSGI8joZV68Pnpzhh87Bnqg,13640
20
20
  uvd_x402_sdk/networks/stellar.py,sha256=ZuF-crx41N9MxSsgf2kAy88fsM-xvDyXY_D2ND6M71Y,5142
21
- uvd_x402_sdk/networks/sui.py,sha256=klDXZ2gLnHlRt5qrv4_Vu7P2qof_WMwbv3mMfL0AQ34,11356
22
- uvd_x402_sdk-0.5.4.dist-info/LICENSE,sha256=OcLzB_iSgMbvk7b0dlyvleY_IbL2WUaPxvn1CHw2uAc,1073
23
- uvd_x402_sdk-0.5.4.dist-info/METADATA,sha256=oKeeArzQ44uDq5wyj3Q8LCKoJIf5mz-GfhAKRMXmf-w,36537
24
- uvd_x402_sdk-0.5.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
25
- uvd_x402_sdk-0.5.4.dist-info/top_level.txt,sha256=Exyjj_Kl7CDAGFMi72lT9oFPOYiRNZb3l8tr906mMmc,13
26
- uvd_x402_sdk-0.5.4.dist-info/RECORD,,
21
+ uvd_x402_sdk/networks/sui.py,sha256=vADFOC6Q8GcUWCjnx4f9C-uyegmR9uPlUiFRTQv_qJc,12578
22
+ uvd_x402_sdk-0.5.5.dist-info/LICENSE,sha256=OcLzB_iSgMbvk7b0dlyvleY_IbL2WUaPxvn1CHw2uAc,1073
23
+ uvd_x402_sdk-0.5.5.dist-info/METADATA,sha256=lyMKCBnLve4xUhk1MQQMEwvBZzPLQ1AX7wTKNgp1Jys,36537
24
+ uvd_x402_sdk-0.5.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
25
+ uvd_x402_sdk-0.5.5.dist-info/top_level.txt,sha256=Exyjj_Kl7CDAGFMi72lT9oFPOYiRNZb3l8tr906mMmc,13
26
+ uvd_x402_sdk-0.5.5.dist-info/RECORD,,