shadowPaySDK 16.7.2025.258__tar.gz → 16.7.2025.512__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.258 → shadowpaysdk-16.7.2025.512}/PKG-INFO +1 -1
  2. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/setup.py +1 -1
  3. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/shadowPaySDK/types/EVMcheque.py +13 -2
  4. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/shadowPaySDK.egg-info/PKG-INFO +1 -1
  5. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/LICENSE +0 -0
  6. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/README.md +0 -0
  7. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/setup.cfg +0 -0
  8. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/shadowPaySDK/__init__.py +0 -0
  9. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/shadowPaySDK/const.py +0 -0
  10. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/shadowPaySDK/interface/__init__.py +0 -0
  11. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/shadowPaySDK/interface/erc20.py +0 -0
  12. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/shadowPaySDK/interface/erc721.py +0 -0
  13. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/shadowPaySDK/interface/sol.py +0 -0
  14. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/shadowPaySDK/types/SOLcheque.py +0 -0
  15. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/shadowPaySDK/types/__init__.py +0 -0
  16. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/shadowPaySDK/utils/__init__.py +0 -0
  17. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/shadowPaySDK/utils/utils.py +0 -0
  18. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/shadowPaySDK.egg-info/SOURCES.txt +0 -0
  19. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/shadowPaySDK.egg-info/dependency_links.txt +0 -0
  20. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/shadowPaySDK.egg-info/requires.txt +0 -0
  21. {shadowpaysdk-16.7.2025.258 → shadowpaysdk-16.7.2025.512}/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.258
3
+ Version: 16.7.2025.512
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.258',
5
+ version='16.7.2025.512',
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,
@@ -443,7 +447,11 @@ class Cheque:
443
447
 
444
448
  cheque_id_bytes32 = Web3.to_bytes(hexstr=cheque_id).rjust(32, b'\x00')
445
449
  cheque_info = self.contract.functions.getTokenChequeDetail(cheque_id_bytes32).call()
446
- return cheque_info
450
+ return {
451
+ "sender": cheque_info[0],
452
+ "receivers": cheque_info[1],
453
+ "status": "claimed" if cheque_info[2] else "unclaimed",
454
+ }
447
455
  async def getSwaoDetail(self, cheque_id: str):
448
456
  # f = EVMcheque.getSwaoDetail(
449
457
  # cheque_id=chequeId,
@@ -458,6 +466,9 @@ class Cheque:
458
466
  return {
459
467
  "tokenOut": s[0],
460
468
  "amountOut": s[1],
469
+ "spender": s[2],
470
+ "receiver": s[3],
471
+ "status": "claimed" if s[4] else "unclaimed"
461
472
  }
462
473
 
463
474
  class NFTcheque:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shadowPaySDK
3
- Version: 16.7.2025.258
3
+ Version: 16.7.2025.512
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