shadowPaySDK 16.7.2025.256__tar.gz → 16.7.2025.257__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.256 → shadowpaysdk-16.7.2025.257}/PKG-INFO +1 -1
  2. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/setup.py +1 -1
  3. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/shadowPaySDK/types/EVMcheque.py +26 -3
  4. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/shadowPaySDK.egg-info/PKG-INFO +1 -1
  5. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/LICENSE +0 -0
  6. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/README.md +0 -0
  7. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/setup.cfg +0 -0
  8. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/shadowPaySDK/__init__.py +0 -0
  9. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/shadowPaySDK/const.py +0 -0
  10. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/shadowPaySDK/interface/__init__.py +0 -0
  11. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/shadowPaySDK/interface/erc20.py +0 -0
  12. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/shadowPaySDK/interface/erc721.py +0 -0
  13. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/shadowPaySDK/interface/sol.py +0 -0
  14. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/shadowPaySDK/types/SOLcheque.py +0 -0
  15. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/shadowPaySDK/types/__init__.py +0 -0
  16. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/shadowPaySDK/utils/__init__.py +0 -0
  17. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/shadowPaySDK/utils/utils.py +0 -0
  18. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/shadowPaySDK.egg-info/SOURCES.txt +0 -0
  19. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/shadowPaySDK.egg-info/dependency_links.txt +0 -0
  20. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/shadowPaySDK.egg-info/requires.txt +0 -0
  21. {shadowpaysdk-16.7.2025.256 → shadowpaysdk-16.7.2025.257}/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.256
3
+ Version: 16.7.2025.257
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.07.2025.256',
5
+ version='16.7.2025.257',
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',
@@ -410,19 +410,34 @@ 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(cheque_id_bytes32).call({
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
 
@@ -432,7 +447,15 @@ class Cheque:
432
447
  })
433
448
  return cheque_info
434
449
  async def getSwaoDetail(self, cheque_id: str):
435
- cheque_id_bytes32 = Web3.to_bytes(hexstr=cheque_id).rjust(32, b'\x00') # паддинг до bytes32
450
+ # f = EVMcheque.getSwaoDetail(
451
+ # cheque_id=chequeId,
452
+ # )
453
+ # f[0] - tokenOut address,
454
+ # f[1] - amountOut in wei,
455
+ # f[2] - spender,
456
+ # f[3] - receiver,
457
+ # f[4] - claimed
458
+ cheque_id_bytes32 = Web3.to_bytes(hexstr=cheque_id).rjust(32, b'\x00')
436
459
  s = self.contract.functions.getSwapDetail(cheque_id_bytes32).call()
437
460
  return {
438
461
  "tokenOut": s[0],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shadowPaySDK
3
- Version: 16.7.2025.256
3
+ Version: 16.7.2025.257
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