shadowPaySDK 16.7.2025.256__py3-none-any.whl → 16.7.2025.258__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 +27 -6
- {shadowpaysdk-16.7.2025.256.dist-info → shadowpaysdk-16.7.2025.258.dist-info}/METADATA +1 -1
- {shadowpaysdk-16.7.2025.256.dist-info → shadowpaysdk-16.7.2025.258.dist-info}/RECORD +6 -6
- {shadowpaysdk-16.7.2025.256.dist-info → shadowpaysdk-16.7.2025.258.dist-info}/WHEEL +0 -0
- {shadowpaysdk-16.7.2025.256.dist-info → shadowpaysdk-16.7.2025.258.dist-info}/licenses/LICENSE +0 -0
- {shadowpaysdk-16.7.2025.256.dist-info → shadowpaysdk-16.7.2025.258.dist-info}/top_level.txt +0 -0
shadowPaySDK/types/EVMcheque.py
CHANGED
@@ -410,29 +410,50 @@ class Cheque:
|
|
410
410
|
async def getTreasery(self):
|
411
411
|
return self.contract.functions.getTreasery().call()
|
412
412
|
def getChequeInfo(self, cheque_id: str, address: Optional[str] = None):
|
413
|
+
###returns cheque info###
|
414
|
+
# s = EVMcheque.getChequeInfo(
|
415
|
+
# cheque_id=chequeId,
|
416
|
+
# address=address
|
417
|
+
# )
|
418
|
+
### cheque_amount = s[0] - amount of cheque in wei
|
419
|
+
### cheque_sender = s[1] - list of sender addresses
|
420
|
+
### cheque_status = s[2] - status of cheque (True - claimed, False - not claimed)
|
413
421
|
if not cheque_id:
|
414
422
|
raise ValueError("Cheque ID is required")
|
415
423
|
if address:
|
416
424
|
address = Web3.to_checksum_address(address)
|
417
425
|
|
418
426
|
cheque_id_bytes32 = Web3.to_bytes(hexstr=cheque_id).rjust(32, b'\x00')
|
419
|
-
cheque_info = self.contract.functions.getChequeInfo(
|
427
|
+
cheque_info = self.contract.functions.getChequeInfo(
|
420
428
|
cheque_id_bytes32,
|
421
429
|
address or self.address
|
430
|
+
).call()
|
422
431
|
|
423
|
-
})
|
424
432
|
return cheque_info
|
425
433
|
def getTokenChequeInfo(self, cheque_id: str):
|
434
|
+
# f = EVMcheque.getTokenChequeInfo(
|
435
|
+
# cheque_id=chequeId,
|
436
|
+
# )
|
437
|
+
### cheque_sender = s[0] - sender address
|
438
|
+
### cheque_amount = s[1] - receiver address
|
439
|
+
### cheque_status = s[2] - status of cheque (True - claimed, False - not claimed
|
440
|
+
|
426
441
|
if not cheque_id:
|
427
442
|
raise ValueError("Cheque ID is required")
|
428
443
|
|
429
444
|
cheque_id_bytes32 = Web3.to_bytes(hexstr=cheque_id).rjust(32, b'\x00')
|
430
|
-
cheque_info = self.contract.functions.
|
431
|
-
cheque_id_bytes32
|
432
|
-
})
|
445
|
+
cheque_info = self.contract.functions.getTokenChequeDetail(cheque_id_bytes32).call()
|
433
446
|
return cheque_info
|
434
447
|
async def getSwaoDetail(self, cheque_id: str):
|
435
|
-
|
448
|
+
# f = EVMcheque.getSwaoDetail(
|
449
|
+
# cheque_id=chequeId,
|
450
|
+
# )
|
451
|
+
# f[0] - tokenOut address,
|
452
|
+
# f[1] - amountOut in wei,
|
453
|
+
# f[2] - spender,
|
454
|
+
# f[3] - receiver,
|
455
|
+
# f[4] - claimed
|
456
|
+
cheque_id_bytes32 = Web3.to_bytes(hexstr=cheque_id).rjust(32, b'\x00')
|
436
457
|
s = self.contract.functions.getSwapDetail(cheque_id_bytes32).call()
|
437
458
|
return {
|
438
459
|
"tokenOut": s[0],
|
@@ -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=6YpBgBbjXOPoyljBU_2SmNyMc69_T8GT633darjvmF8,17487
|
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.258.dist-info/licenses/LICENSE,sha256=EG13vNmyBfkG3oKj40oOYfUGLKko8OouU6PfO6MlAk4,1066
|
13
|
+
shadowpaysdk-16.7.2025.258.dist-info/METADATA,sha256=p-P7DDpEQq5F6wakiwWVdQ1tWbE_0ouZQJvol55O14E,1047
|
14
|
+
shadowpaysdk-16.7.2025.258.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
15
|
+
shadowpaysdk-16.7.2025.258.dist-info/top_level.txt,sha256=RSJc73GEf31NMdZp9KovEduzfhm10eQ2t5GTZ44aN1U,13
|
16
|
+
shadowpaysdk-16.7.2025.258.dist-info/RECORD,,
|
File without changes
|
{shadowpaysdk-16.7.2025.256.dist-info → shadowpaysdk-16.7.2025.258.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|