shadowPaySDK 0.1.0__tar.gz → 0.1__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-0.1.0 → shadowpaysdk-0.1}/PKG-INFO +23 -7
- shadowpaysdk-0.1/README.md +21 -0
- {shadowpaysdk-0.1.0 → shadowpaysdk-0.1}/setup.py +11 -6
- shadowpaysdk-0.1/shadowPaySDK/__init__.py +27 -0
- shadowpaysdk-0.1/shadowPaySDK/const.py +639 -0
- shadowpaysdk-0.1/shadowPaySDK/interface/__init__.py +4 -0
- shadowpaysdk-0.1/shadowPaySDK/interface/erc20.py +120 -0
- shadowpaysdk-0.1/shadowPaySDK/interface/sol.py +225 -0
- shadowpaysdk-0.1/shadowPaySDK/types/EVMcheque.py +495 -0
- shadowpaysdk-0.1/shadowPaySDK/types/SOLcheque.py +282 -0
- shadowpaysdk-0.1/shadowPaySDK/types/__init__.py +4 -0
- shadowpaysdk-0.1/shadowPaySDK/utils/__init__.py +8 -0
- shadowpaysdk-0.1/shadowPaySDK/utils/utils.py +28 -0
- {shadowpaysdk-0.1.0 → shadowpaysdk-0.1}/shadowPaySDK.egg-info/PKG-INFO +23 -7
- {shadowpaysdk-0.1.0 → shadowpaysdk-0.1}/shadowPaySDK.egg-info/SOURCES.txt +8 -1
- shadowpaysdk-0.1/shadowPaySDK.egg-info/requires.txt +6 -0
- shadowpaysdk-0.1.0/README.md +0 -8
- shadowpaysdk-0.1.0/shadowPaySDK/__init__.py +0 -2
- shadowpaysdk-0.1.0/shadowPaySDK/interface/__init__.py +0 -0
- shadowpaysdk-0.1.0/shadowPaySDK/interface/erc20.py +0 -102
- shadowpaysdk-0.1.0/shadowPaySDK.egg-info/requires.txt +0 -3
- {shadowpaysdk-0.1.0 → shadowpaysdk-0.1}/LICENSE +0 -0
- {shadowpaysdk-0.1.0 → shadowpaysdk-0.1}/setup.cfg +0 -0
- {shadowpaysdk-0.1.0 → shadowpaysdk-0.1}/shadowPaySDK/interface/erc721.py +0 -0
- {shadowpaysdk-0.1.0 → shadowpaysdk-0.1}/shadowPaySDK.egg-info/dependency_links.txt +0 -0
- {shadowpaysdk-0.1.0 → shadowpaysdk-0.1}/shadowPaySDK.egg-info/top_level.txt +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: shadowPaySDK
|
3
|
-
Version: 0.1
|
3
|
+
Version: 0.1
|
4
4
|
Summary: ShadowPay SDK for ERC20/ERC721 and P2P smart contract interaction
|
5
|
-
Author:
|
6
|
-
Author-email:
|
5
|
+
Author: dazay
|
6
|
+
Author-email: shadowpay.protocol@gmail.com
|
7
7
|
License: MIT
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
9
9
|
Classifier: License :: OSI Approved :: MIT License
|
@@ -11,9 +11,12 @@ Classifier: Operating System :: OS Independent
|
|
11
11
|
Requires-Python: >=3.9
|
12
12
|
Description-Content-Type: text/markdown
|
13
13
|
License-File: LICENSE
|
14
|
-
Requires-Dist: web3
|
15
|
-
Requires-Dist: requests
|
16
|
-
Requires-Dist: solana
|
14
|
+
Requires-Dist: web3
|
15
|
+
Requires-Dist: requests
|
16
|
+
Requires-Dist: solana
|
17
|
+
Requires-Dist: anchorpy
|
18
|
+
Requires-Dist: solders
|
19
|
+
Requires-Dist: httpx==0.28.1
|
17
20
|
Dynamic: author
|
18
21
|
Dynamic: author-email
|
19
22
|
Dynamic: classifier
|
@@ -25,11 +28,24 @@ Dynamic: requires-dist
|
|
25
28
|
Dynamic: requires-python
|
26
29
|
Dynamic: summary
|
27
30
|
|
28
|
-
#
|
31
|
+
# shadowPaySdk
|
29
32
|
|
30
33
|
```bash
|
31
34
|
pip3 install shadowPaySDK
|
35
|
+
pip3 install --break-system-packages git+https://github.com/dazarius/SDK.git
|
32
36
|
```
|
37
|
+
```example to use cheque
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
import shadowPaySDK
|
44
|
+
|
45
|
+
|
46
|
+
EVMcheque = shadowPaySDK.Cheque(
|
47
|
+
retunrn_build_tx=True
|
48
|
+
)
|
33
49
|
|
34
50
|
|
35
51
|
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# shadowPaySdk
|
2
|
+
|
3
|
+
```bash
|
4
|
+
pip3 install shadowPaySDK
|
5
|
+
pip3 install --break-system-packages git+https://github.com/dazarius/SDK.git
|
6
|
+
```
|
7
|
+
```example to use cheque
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
import shadowPaySDK
|
14
|
+
|
15
|
+
|
16
|
+
EVMcheque = shadowPaySDK.Cheque(
|
17
|
+
retunrn_build_tx=True
|
18
|
+
)
|
19
|
+
|
20
|
+
|
21
|
+
|
@@ -2,12 +2,12 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name='shadowPaySDK',
|
5
|
-
version='0.1
|
5
|
+
version='0.1',
|
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',
|
9
|
-
author='
|
10
|
-
author_email='
|
9
|
+
author='dazay',
|
10
|
+
author_email='shadowpay.protocol@gmail.com',
|
11
11
|
license='MIT',
|
12
12
|
packages=find_packages(),
|
13
13
|
classifiers=[
|
@@ -16,9 +16,14 @@ setup(
|
|
16
16
|
'Operating System :: OS Independent',
|
17
17
|
],
|
18
18
|
install_requires=[
|
19
|
-
'web3
|
20
|
-
'requests
|
21
|
-
'solana
|
19
|
+
'web3',
|
20
|
+
'requests',
|
21
|
+
'solana',
|
22
|
+
'anchorpy',
|
23
|
+
|
24
|
+
'solders',
|
25
|
+
'httpx==0.28.1'
|
26
|
+
|
22
27
|
],
|
23
28
|
python_requires='>=3.9',
|
24
29
|
)
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import json
|
2
|
+
from shadowPaySDK.interface.erc20 import ERC20Token
|
3
|
+
from shadowPaySDK.interface.erc721 import ERC721Token
|
4
|
+
from shadowPaySDK.interface.sol import SOL as sol
|
5
|
+
from shadowPaySDK.types.EVMcheque import Cheque
|
6
|
+
from shadowPaySDK.types.SOLcheque import SOLCheque
|
7
|
+
from shadowPaySDK.const import __ERC20_ABI__, __SHADOWPAY_ABI__ERC20__,__ALLOW_CHAINS__, __SHADOWPAY_CONTRACT_ADDRESS__ERC20__
|
8
|
+
|
9
|
+
|
10
|
+
# from shadowPaySDK.utils import parse_tx as PARSE_TX
|
11
|
+
|
12
|
+
__all__ = [
|
13
|
+
"ERC20",
|
14
|
+
"ERC721",
|
15
|
+
"PARSE_TX",
|
16
|
+
"Cheque",
|
17
|
+
"SOLCheque",
|
18
|
+
"SOL",
|
19
|
+
"SolTokens",
|
20
|
+
"__SHADOWPAY_ABI__ERC20__",
|
21
|
+
"__ERC20_ABI__ ",
|
22
|
+
"create_cheque",
|
23
|
+
"get_my_cheques"
|
24
|
+
|
25
|
+
]
|
26
|
+
|
27
|
+
|