shadowPaySDK 16.7.2025.9__tar.gz → 16.7.2025.255__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.
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/PKG-INFO +1 -1
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/setup.py +1 -1
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK/const.py +6 -1
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK/types/EVMcheque.py +47 -2
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK.egg-info/PKG-INFO +1 -1
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/LICENSE +0 -0
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/README.md +0 -0
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/setup.cfg +0 -0
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK/__init__.py +0 -0
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK/interface/__init__.py +0 -0
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK/interface/erc20.py +0 -0
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK/interface/erc721.py +0 -0
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK/interface/sol.py +0 -0
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK/types/SOLcheque.py +0 -0
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK/types/__init__.py +0 -0
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK/utils/__init__.py +0 -0
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK/utils/utils.py +0 -0
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK.egg-info/SOURCES.txt +0 -0
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK.egg-info/dependency_links.txt +0 -0
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK.egg-info/requires.txt +0 -0
- {shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK.egg-info/top_level.txt +0 -0
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name='shadowPaySDK',
|
5
|
-
version='16.07.2025.
|
5
|
+
version='16.07.2025.255',
|
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',
|
@@ -32,7 +32,7 @@ __ERC20_ABI__ = json.loads("""[
|
|
32
32
|
|
33
33
|
__SHADOWPAY_CONTRACT_ADDRESS__ERC20__ = {
|
34
34
|
97: "0x5487C0DdCbD5465F26B446c6CAB88D8d6F7DF23b",
|
35
|
-
10143: "
|
35
|
+
10143: "0x1d856f2eA4738d1a89E27dbfc8950a4976Db41a5"
|
36
36
|
}
|
37
37
|
|
38
38
|
__SHADOWPAY_ABI__ERC20__= json.loads("""[
|
@@ -283,6 +283,11 @@ __SHADOWPAY_ABI__ERC20__= json.loads("""[
|
|
283
283
|
"internalType": "bytes32",
|
284
284
|
"name": "id",
|
285
285
|
"type": "bytes32"
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"internalType": "address",
|
289
|
+
"name": "from",
|
290
|
+
"type": "address"
|
286
291
|
}
|
287
292
|
],
|
288
293
|
"name": "getChequeInfo",
|
@@ -81,7 +81,7 @@ class Cheque:
|
|
81
81
|
|
82
82
|
def __convert__(self):
|
83
83
|
return self.w3.to_wei(self.amount, 'ether')
|
84
|
-
|
84
|
+
|
85
85
|
async def InitCheque(self, amount, receiver:list, private_key:Optional[str] = None):
|
86
86
|
if not isinstance(receiver,list):
|
87
87
|
raise ValueError("Receiver must be a list of addresses, [""0x1234...5678", "0x2345...6789""]")
|
@@ -409,8 +409,53 @@ class Cheque:
|
|
409
409
|
return self.contract.functions.getOwner().call()
|
410
410
|
async def getTreasery(self):
|
411
411
|
return self.contract.functions.getTreasery().call()
|
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)
|
421
|
+
if not cheque_id:
|
422
|
+
raise ValueError("Cheque ID is required")
|
423
|
+
if address:
|
424
|
+
address = Web3.to_checksum_address(address)
|
425
|
+
|
426
|
+
cheque_id_bytes32 = Web3.to_bytes(hexstr=cheque_id).rjust(32, b'\x00')
|
427
|
+
cheque_info = self.contract.functions.getChequeInfo(
|
428
|
+
cheque_id_bytes32,
|
429
|
+
address or self.address
|
430
|
+
).call()
|
431
|
+
|
432
|
+
return cheque_info
|
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
|
+
|
441
|
+
if not cheque_id:
|
442
|
+
raise ValueError("Cheque ID is required")
|
443
|
+
|
444
|
+
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
|
412
449
|
async def getSwaoDetail(self, cheque_id: str):
|
413
|
-
|
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')
|
414
459
|
s = self.contract.functions.getSwapDetail(cheque_id_bytes32).call()
|
415
460
|
return {
|
416
461
|
"tokenOut": s[0],
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{shadowpaysdk-16.7.2025.9 → shadowpaysdk-16.7.2025.255}/shadowPaySDK.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|