safeheron-api-sdk-python 1.1.23__tar.gz → 1.1.25__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 (26) hide show
  1. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/PKG-INFO +1 -1
  2. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python/api/coin_api.py +4 -0
  3. safeheron_api_sdk_python-1.1.25/safeheron_api_sdk_python/api/compliance_api.py +68 -0
  4. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python/api/gas_api.py +5 -1
  5. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python/api/whitelist_api.py +6 -0
  6. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python.egg-info/PKG-INFO +1 -1
  7. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/setup.py +1 -1
  8. safeheron_api_sdk_python-1.1.23/safeheron_api_sdk_python/api/compliance_api.py +0 -19
  9. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/LICENSE +0 -0
  10. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/README.rst +0 -0
  11. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python/api/account_api.py +0 -0
  12. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python/api/api_key_management_api.py +0 -0
  13. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python/api/mpc_sign_api.py +0 -0
  14. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python/api/tools_api.py +0 -0
  15. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python/api/transaction_api.py +0 -0
  16. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python/api/web3_api.py +0 -0
  17. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python/api/webhook_api.py +0 -0
  18. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python/client.py +0 -0
  19. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python/cosigner/co_signer_converter.py +0 -0
  20. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python/tools.py +0 -0
  21. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python/webhook/webhook_converter.py +0 -0
  22. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python.egg-info/SOURCES.txt +0 -0
  23. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python.egg-info/dependency_links.txt +0 -0
  24. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python.egg-info/requires.txt +0 -0
  25. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/safeheron_api_sdk_python.egg-info/top_level.txt +0 -0
  26. {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.25}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: safeheron_api_sdk_python
3
- Version: 1.1.23
3
+ Version: 1.1.25
4
4
  Summary: Python for Safeheron API
5
5
  Home-page: https://github.com/Safeheron/safeheron-api-sdk-python
6
6
  Author: safeheron
@@ -19,6 +19,10 @@ class CheckCoinAddressRequest:
19
19
  # True: verify
20
20
  # False: not verify
21
21
  self.checkAddressValid = None
22
+ # Verify if the Solana address is the Owner address (If no value is provided, 'false' by default)
23
+ # True: Verify
24
+ # False: Not verify
25
+ self.checkSolanaOwnerAddress = None
22
26
 
23
27
 
24
28
  class CoinBalanceSnapshotRequest:
@@ -0,0 +1,68 @@
1
+ from safeheron_api_sdk_python.client import *
2
+
3
+
4
+ class KytReportRequest:
5
+ def __init__(self):
6
+ # Transaction Key. Cannot be empty at the same time as customerRefId. If both are provided, txKey takes precedence
7
+ self.txKey = None
8
+ # Merchant unique business ID (100 characters max)
9
+ self.customerRefId = None
10
+
11
+
12
+ class CreateKyaScreeningRequest:
13
+ def __init__(self):
14
+ # On-chain address to screen (not limited to Safeheron addresses)
15
+ self.address = None
16
+ # Chain type. See "Retrieve Supported Networks & Providers" for valid values
17
+ self.chainType = None
18
+ # Blockchain network identifier. Required when providers contains MistTrack
19
+ self.network = None
20
+ # Screening providers — at least one, no duplicates, screened in parallel. Valid values: MistTrack, Elliptic, Chainalysis
21
+ self.providers = None
22
+
23
+
24
+ class KyaScreeningOneRequest:
25
+ def __init__(self):
26
+ # Screening request ID
27
+ self.screenId = None
28
+
29
+
30
+ class KyaScreeningOrderOneRequest:
31
+ def __init__(self):
32
+ # Screening order ID
33
+ self.screenOrderId = None
34
+
35
+
36
+ class KyaSupportedNetworksRequest:
37
+ def __init__(self):
38
+ pass
39
+
40
+
41
+ class ComplianceApi:
42
+
43
+ def __init__(self, config):
44
+ self.api_client = Client(config)
45
+
46
+ # Retrieve Transaction KYT Report
47
+ def kyt_report(self, request: KytReportRequest):
48
+ return self.api_client.send_request(request, '/v1/compliance/kyt/report')
49
+
50
+ # Create KYA Screening Request
51
+ # Initiates an address screening request against one or more AML providers in parallel
52
+ def create_kya_screening(self, request: CreateKyaScreeningRequest):
53
+ return self.api_client.send_request(request, '/v1/compliance/kya/screening/create')
54
+
55
+ # Retrieve KYA Screening Summary
56
+ # Returns the overall status and per-order results for a screening request
57
+ def kya_screening_one(self, request: KyaScreeningOneRequest):
58
+ return self.api_client.send_request(request, '/v1/compliance/kya/screening/one')
59
+
60
+ # Retrieve KYA Screening Order Details
61
+ # Returns the detailed result of a single provider screening order, including the raw provider payload
62
+ def kya_screening_order_one(self, request: KyaScreeningOrderOneRequest):
63
+ return self.api_client.send_request(request, '/v1/compliance/kya/screening/order/one')
64
+
65
+ # Retrieve Supported Networks & Providers
66
+ # Returns the list of blockchain networks and the AML providers that support each network
67
+ def kya_supported_networks(self):
68
+ return self.api_client.send_request(KyaSupportedNetworksRequest(), '/v1/compliance/kya/supportedNetworks')
@@ -21,7 +21,11 @@ class GasApi:
21
21
  def gas_status(self, request: GasStatusRequest):
22
22
  return self.api_client.send_request(request, '/v1/gas/status')
23
23
 
24
+ #@deprecated: This method has been abandoned, please use the gas_transactions_get_by_tx_key
25
+ def gas_transactions_ge_b_tx_key(self, request: GasTransactionsGetByTxKeyRequest):
26
+ return self.api_client.send_request(request, '/v1/gas/transactions/getByTxKey')
27
+
24
28
  # Retrieve Automatic Gas Records for Transactions
25
29
  # When the TRON energy rental service is enabled, Safeheron automatically tops up the required Gas fees for TRON network transactions. This API allows you to query the energy rental records used by a transaction. A single transaction may have multiple records. The actual Gas fee consumed by the transaction is the sum of all records with SUCCESS and FAILURE_GAS_CONSUMED statuses.
26
- def gas_transactions_ge_b_tx_key(self, request: GasTransactionsGetByTxKeyRequest):
30
+ def gas_transactions_get_by_tx_key(self, request: GasTransactionsGetByTxKeyRequest):
27
31
  return self.api_client.send_request(request, '/v1/gas/transactions/getByTxKey')
@@ -68,6 +68,8 @@ class CreateWhitelistRequest:
68
68
  # False: Visible by default
69
69
  # True: Invisible; the invisible whitelist can only be managed and used through the API, such as querying, modifying, and using the whitelist as the destination address when initiating transactions
70
70
  self.hiddenOnUI = None
71
+ # Note
72
+ self.note = None
71
73
 
72
74
 
73
75
  class CreateFromTransactionWhitelistRequest:
@@ -86,6 +88,8 @@ class CreateFromTransactionWhitelistRequest:
86
88
  # False: Visible by default
87
89
  # True: Invisible; the invisible whitelist can only be managed and used through the API, such as querying, modifying, and using the whitelist as the destination address when initiating transactions
88
90
  self.hiddenOnUI = None
91
+ # Note
92
+ self.note = None
89
93
 
90
94
 
91
95
  class EditWhitelistRequest:
@@ -102,6 +106,8 @@ class EditWhitelistRequest:
102
106
  self.memo = None
103
107
  # When the whitelist is involved in a transaction approval policy, modifications will result in the new whitelist being directly applied to the approval policy. False by default, meaning that when involved in a transaction approval policy, it will not be modified.
104
108
  self.force = None
109
+ # Note
110
+ self.note = None
105
111
 
106
112
 
107
113
  class DeleteWhitelistRequest:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: safeheron_api_sdk_python
3
- Version: 1.1.23
3
+ Version: 1.1.25
4
4
  Summary: Python for Safeheron API
5
5
  Home-page: https://github.com/Safeheron/safeheron-api-sdk-python
6
6
  Author: safeheron
@@ -3,7 +3,7 @@ from setuptools import find_packages
3
3
  with open("README.rst", "r") as f:
4
4
  long_description = f.read()
5
5
  setup(name='safeheron_api_sdk_python',
6
- version='1.1.23',
6
+ version='1.1.25',
7
7
  description='Python for Safeheron API',
8
8
  long_description=long_description,
9
9
  author='safeheron',
@@ -1,19 +0,0 @@
1
- from safeheron_api_sdk_python.client import *
2
-
3
-
4
- class KytReportRequest:
5
- def __init__(self):
6
- # Transaction Key. Cannot be empty at the same time as customerRefId. If both are provided, txKey takes precedence
7
- self.txKey = None
8
- # Merchant unique business ID (100 characters max)
9
- self.customerRefId = None
10
-
11
-
12
- class ComplianceApi:
13
-
14
- def __init__(self, config):
15
- self.api_client = Client(config)
16
-
17
- # Retrieve Transaction KYT Report
18
- def kyt_report(self, request: KytReportRequest):
19
- return self.api_client.send_request(request, '/v1/compliance/kyt/report')