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.
- shadowPaySDK/types/EVMcheque.py +14 -5
- {shadowpaysdk-16.7.2025.257.dist-info → shadowpaysdk-16.7.2025.259.dist-info}/METADATA +1 -1
- {shadowpaysdk-16.7.2025.257.dist-info → shadowpaysdk-16.7.2025.259.dist-info}/RECORD +6 -6
- {shadowpaysdk-16.7.2025.257.dist-info → shadowpaysdk-16.7.2025.259.dist-info}/WHEEL +0 -0
- {shadowpaysdk-16.7.2025.257.dist-info → shadowpaysdk-16.7.2025.259.dist-info}/licenses/LICENSE +0 -0
- {shadowpaysdk-16.7.2025.257.dist-info → shadowpaysdk-16.7.2025.259.dist-info}/top_level.txt +0 -0
shadowPaySDK/types/EVMcheque.py
CHANGED
@@ -429,7 +429,11 @@ class Cheque:
|
|
429
429
|
address or self.address
|
430
430
|
).call()
|
431
431
|
|
432
|
-
return
|
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.
|
446
|
-
|
447
|
-
|
448
|
-
|
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:
|
@@ -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=
|
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.
|
13
|
-
shadowpaysdk-16.7.2025.
|
14
|
-
shadowpaysdk-16.7.2025.
|
15
|
-
shadowpaysdk-16.7.2025.
|
16
|
-
shadowpaysdk-16.7.2025.
|
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,,
|
File without changes
|
{shadowpaysdk-16.7.2025.257.dist-info → shadowpaysdk-16.7.2025.259.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|