shadowPaySDK 16.7.2025.257__tar.gz → 16.7.2025.259__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 (21) hide show
  1. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/PKG-INFO +1 -1
  2. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/setup.py +1 -1
  3. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/shadowPaySDK/types/EVMcheque.py +14 -5
  4. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/shadowPaySDK.egg-info/PKG-INFO +1 -1
  5. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/LICENSE +0 -0
  6. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/README.md +0 -0
  7. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/setup.cfg +0 -0
  8. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/shadowPaySDK/__init__.py +0 -0
  9. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/shadowPaySDK/const.py +0 -0
  10. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/shadowPaySDK/interface/__init__.py +0 -0
  11. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/shadowPaySDK/interface/erc20.py +0 -0
  12. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/shadowPaySDK/interface/erc721.py +0 -0
  13. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/shadowPaySDK/interface/sol.py +0 -0
  14. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/shadowPaySDK/types/SOLcheque.py +0 -0
  15. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/shadowPaySDK/types/__init__.py +0 -0
  16. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/shadowPaySDK/utils/__init__.py +0 -0
  17. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/shadowPaySDK/utils/utils.py +0 -0
  18. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/shadowPaySDK.egg-info/SOURCES.txt +0 -0
  19. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/shadowPaySDK.egg-info/dependency_links.txt +0 -0
  20. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/shadowPaySDK.egg-info/requires.txt +0 -0
  21. {shadowpaysdk-16.7.2025.257 → shadowpaysdk-16.7.2025.259}/shadowPaySDK.egg-info/top_level.txt +0 -0
@@ -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
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='shadowPaySDK',
5
- version='16.7.2025.257',
5
+ version='16.7.2025.259',
6
6
  description='ShadowPay SDK for ERC20/ERC721 and P2P smart contract interaction',
7
7
  long_description=open('README.md').read(),
8
8
  long_description_content_type='text/markdown',
@@ -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