shadowPaySDK 0.1.2__py3-none-any.whl → 0.2.1__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.
@@ -0,0 +1,8 @@
1
+ from .utils import parse_tx
2
+
3
+
4
+ __all__ = [
5
+ "parse_tx"
6
+ ]
7
+
8
+
@@ -0,0 +1,28 @@
1
+ import json
2
+ from typing import Optional, Union
3
+ from web3 import Web3
4
+
5
+
6
+
7
+
8
+ def parse_tx(tx):
9
+ """
10
+ Parses a transaction dictionary to extract relevant information.
11
+
12
+ Args:
13
+ tx (dict): The transaction dictionary.
14
+
15
+ Returns:
16
+ dict: A dictionary containing the parsed transaction details.
17
+ """
18
+ return {
19
+ "hash": tx.get("hash"),
20
+ "from": tx.get("from"),
21
+ "to": tx.get("to"),
22
+ "value": Web3.from_wei(tx.get("value", 0), 'ether'),
23
+ "gas": tx.get("gas"),
24
+ "gas_price": Web3.from_wei(tx.get("gasPrice", 0), 'gwei'),
25
+ "nonce": tx.get("nonce"),
26
+ "block_number": tx.get("blockNumber"),
27
+ "timestamp": tx.get("timestamp")
28
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shadowPaySDK
3
- Version: 0.1.2
3
+ Version: 0.2.1
4
4
  Summary: ShadowPay SDK for ERC20/ERC721 and P2P smart contract interaction
5
5
  Author: dazarius_
6
6
  Author-email: your@email.com
@@ -13,7 +13,10 @@ Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
14
  Requires-Dist: web3>=6.0.0
15
15
  Requires-Dist: requests>=2.28.0
16
- Requires-Dist: solana>=0.35.0
16
+ Requires-Dist: solana==0.36.7
17
+ Requires-Dist: anchorpy>=0.21.0
18
+ Requires-Dist: solders
19
+ Requires-Dist: httpx==0.28.1
17
20
  Dynamic: author
18
21
  Dynamic: author-email
19
22
  Dynamic: classifier
@@ -0,0 +1,17 @@
1
+ shadowPaySDK/__init__.py,sha256=f3O3u7UX-WTEuy1DPS6vQ8w672nzR1ZbVMu8hciqxM8,821
2
+ shadowPaySDK/api.py,sha256=cv5Z171cOh-Idi-lMA4AORzeGDPPrk8BCQ9e5V9MAaM,1461
3
+ shadowPaySDK/const.py,sha256=WC560zlT9MlG9QKlJb8Ww6ITfL4xR6vRH4kcGzVHFRI,9893
4
+ shadowPaySDK/interface/__init__.py,sha256=QceU3dWteSgwvMnR3JDVdmS8OgdRPjvl9JzRs7IsA74,152
5
+ shadowPaySDK/interface/erc20.py,sha256=rsdfjIrPNxC_xHbUT9FQbNhURdIqZHcylxTbskPHu1k,4453
6
+ shadowPaySDK/interface/erc721.py,sha256=4AlWfDjrvl85wFocnN93j-oM54kTsLLwv9SdtcLj4eM,3094
7
+ shadowPaySDK/interface/sol.py,sha256=xgJZsg4xE-_dRctGUW_mHuGj_o_0OlKNp4Gr7IXvTEc,5586
8
+ shadowPaySDK/types/EVMcheque.py,sha256=lmPvHlt-ERkaYx2DTYwGmbF_TI1B_ZTT3G_FIQPBm_o,12466
9
+ shadowPaySDK/types/SOLcheque.py,sha256=gmivsCK4hm_6pzQ9whPGuQ_f7qfcUfiJfQgb5ZsJYDo,884
10
+ shadowPaySDK/types/__init__.py,sha256=sG6pNZfKGvENXqsnv6MrQtKrJ898fAXkMvAZY1k1-Qg,97
11
+ shadowPaySDK/utils/__init__.py,sha256=aja3iYO4rT-ptMM-pzw0GRFTziBdXdcEi-4kE84zH64,61
12
+ shadowPaySDK/utils/utils.py,sha256=g4bGvLDdjhNGsAj1eaZnNWFNaiN-cVhhM-5PrnG5aIQ,720
13
+ shadowpaysdk-0.2.1.dist-info/licenses/LICENSE,sha256=EG13vNmyBfkG3oKj40oOYfUGLKko8OouU6PfO6MlAk4,1066
14
+ shadowpaysdk-0.2.1.dist-info/METADATA,sha256=oVHKTeuCSJ64v1EKXBhslX7U97X2VP68Cdgpn9LWwCw,868
15
+ shadowpaysdk-0.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
+ shadowpaysdk-0.2.1.dist-info/top_level.txt,sha256=RSJc73GEf31NMdZp9KovEduzfhm10eQ2t5GTZ44aN1U,13
17
+ shadowpaysdk-0.2.1.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- shadowPaySDK/__init__.py,sha256=d20g0T1i9s0OVrJbha-6da9872lvmBXybvC1_PMogfw,88
2
- shadowPaySDK/interface/__init__.py,sha256=VoHIdh3rbm1QRPO7_Qih07MthiLBht45fu3pBcMaV1o,102
3
- shadowPaySDK/interface/erc20.py,sha256=0aJp1FFXP2lb7gVOUFdxGAkiQASTnEcUFpZAcAw9O5c,4517
4
- shadowPaySDK/interface/erc721.py,sha256=4AlWfDjrvl85wFocnN93j-oM54kTsLLwv9SdtcLj4eM,3094
5
- shadowpaysdk-0.1.2.dist-info/licenses/LICENSE,sha256=EG13vNmyBfkG3oKj40oOYfUGLKko8OouU6PfO6MlAk4,1066
6
- shadowpaysdk-0.1.2.dist-info/METADATA,sha256=0wyvQoaD43c9kMXDcnj5EsqXDJB38SLgCGVViFXSIW0,784
7
- shadowpaysdk-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- shadowpaysdk-0.1.2.dist-info/top_level.txt,sha256=RSJc73GEf31NMdZp9KovEduzfhm10eQ2t5GTZ44aN1U,13
9
- shadowpaysdk-0.1.2.dist-info/RECORD,,