shadowPaySDK 16.7.2025.257__py3-none-any.whl → 16.7.2025.259__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.
@@ -429,7 +429,11 @@ class Cheque:
429
429
  address or self.address
430
430
  ).call()
431
431
 
432
- return cheque_info
432
+ return {
433
+ "sender": cheque_info[0],
434
+ "receiver": cheque_info[1],
435
+ "status": "claimed" if cheque_info[2] else "unclaimed",
436
+ }
433
437
  def getTokenChequeInfo(self, cheque_id: str):
434
438
  # f = EVMcheque.getTokenChequeInfo(
435
439
  # cheque_id=chequeId,
@@ -442,10 +446,12 @@ class Cheque:
442
446
  raise ValueError("Cheque ID is required")
443
447
 
444
448
  cheque_id_bytes32 = Web3.to_bytes(hexstr=cheque_id).rjust(32, b'\x00')
445
- cheque_info = self.contract.functions.getTokenChequeInfo(cheque_id_bytes32).call({
446
- cheque_id_bytes32
447
- })
448
- return cheque_info
449
+ cheque_info = self.contract.functions.getTokenChequeDetail(cheque_id_bytes32).call()
450
+ return {
451
+ "sender": cheque_info[0],
452
+ "receivers": cheque_info[1],
453
+ "status": "claimed" if cheque_info[2] else "unclaimed",
454
+ }
449
455
  async def getSwaoDetail(self, cheque_id: str):
450
456
  # f = EVMcheque.getSwaoDetail(
451
457
  # cheque_id=chequeId,
@@ -460,6 +466,9 @@ class Cheque:
460
466
  return {
461
467
  "tokenOut": s[0],
462
468
  "amountOut": s[1],
469
+ "spender": s[2],
470
+ "receiver": s[3],
471
+ "claimed": "claimed" if s[4] else "unclaimed"
463
472
  }
464
473
 
465
474
  class NFTcheque:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shadowPaySDK
3
- Version: 16.7.2025.257
3
+ Version: 16.7.2025.259
4
4
  Summary: ShadowPay SDK for ERC20/ERC721 and P2P smart contract interaction
5
5
  Author: dazay
6
6
  Author-email: shadowpay.protocol@gmail.com
@@ -4,13 +4,13 @@ shadowPaySDK/interface/__init__.py,sha256=ggSZCV22udnzXm_Wv_3x6VN3hNIAEiwgwHZc2J
4
4
  shadowPaySDK/interface/erc20.py,sha256=zUTdwhf1hznSGxeEw0HsEFVf1nafHPcxj1X3djPczSo,4477
5
5
  shadowPaySDK/interface/erc721.py,sha256=4AlWfDjrvl85wFocnN93j-oM54kTsLLwv9SdtcLj4eM,3094
6
6
  shadowPaySDK/interface/sol.py,sha256=LsgwE8BzCstsVAxgcbKcYiXAORYMBHcQmNZdzsNkaLQ,7998
7
- shadowPaySDK/types/EVMcheque.py,sha256=8s0vqhTa_0waFpwqkica6fe4X4LLdrBJZINqPUdVuEs,17526
7
+ shadowPaySDK/types/EVMcheque.py,sha256=pWXKD8m1cTRPV0sPH1nJiUWxP92tOgdmWx9DCSZKMCs,17913
8
8
  shadowPaySDK/types/SOLcheque.py,sha256=ZzQgQXBerwa9lelbV8O6JBr1nevCAmJDxrdo8FtKT-4,11795
9
9
  shadowPaySDK/types/__init__.py,sha256=sG6pNZfKGvENXqsnv6MrQtKrJ898fAXkMvAZY1k1-Qg,97
10
10
  shadowPaySDK/utils/__init__.py,sha256=aja3iYO4rT-ptMM-pzw0GRFTziBdXdcEi-4kE84zH64,61
11
11
  shadowPaySDK/utils/utils.py,sha256=g4bGvLDdjhNGsAj1eaZnNWFNaiN-cVhhM-5PrnG5aIQ,720
12
- shadowpaysdk-16.7.2025.257.dist-info/licenses/LICENSE,sha256=EG13vNmyBfkG3oKj40oOYfUGLKko8OouU6PfO6MlAk4,1066
13
- shadowpaysdk-16.7.2025.257.dist-info/METADATA,sha256=yyPXkAGPGg8KhOc9bJlnh1W3s5Yk6MZ70OFyBGihoMk,1047
14
- shadowpaysdk-16.7.2025.257.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- shadowpaysdk-16.7.2025.257.dist-info/top_level.txt,sha256=RSJc73GEf31NMdZp9KovEduzfhm10eQ2t5GTZ44aN1U,13
16
- shadowpaysdk-16.7.2025.257.dist-info/RECORD,,
12
+ shadowpaysdk-16.7.2025.259.dist-info/licenses/LICENSE,sha256=EG13vNmyBfkG3oKj40oOYfUGLKko8OouU6PfO6MlAk4,1066
13
+ shadowpaysdk-16.7.2025.259.dist-info/METADATA,sha256=Kfg9Rd5Pu3S4mLZc0SSH6lNjJFWxP0TBTBY1_TNLuW8,1047
14
+ shadowpaysdk-16.7.2025.259.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ shadowpaysdk-16.7.2025.259.dist-info/top_level.txt,sha256=RSJc73GEf31NMdZp9KovEduzfhm10eQ2t5GTZ44aN1U,13
16
+ shadowpaysdk-16.7.2025.259.dist-info/RECORD,,