safeheron-api-sdk-python 1.1.15__tar.gz → 1.1.17__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 (23) hide show
  1. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/PKG-INFO +1 -1
  2. safeheron_api_sdk_python-1.1.17/safeheron_api_sdk_python/api/gas_api.py +21 -0
  3. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python/api/transaction_api.py +6 -0
  4. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python.egg-info/PKG-INFO +1 -1
  5. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python.egg-info/SOURCES.txt +1 -0
  6. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/setup.py +1 -1
  7. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/LICENSE +0 -0
  8. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/README.rst +0 -0
  9. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python/api/account_api.py +0 -0
  10. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python/api/coin_api.py +0 -0
  11. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python/api/mpc_sign_api.py +0 -0
  12. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python/api/tools_api.py +0 -0
  13. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python/api/web3_api.py +0 -0
  14. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python/api/webhook_api.py +0 -0
  15. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python/api/whitelist_api.py +0 -0
  16. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python/client.py +0 -0
  17. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python/cosigner/co_signer_converter.py +0 -0
  18. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python/tools.py +0 -0
  19. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python/webhook/webhook_converter.py +0 -0
  20. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python.egg-info/dependency_links.txt +0 -0
  21. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python.egg-info/requires.txt +0 -0
  22. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/safeheron_api_sdk_python.egg-info/top_level.txt +0 -0
  23. {safeheron_api_sdk_python-1.1.15 → safeheron_api_sdk_python-1.1.17}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: safeheron_api_sdk_python
3
- Version: 1.1.15
3
+ Version: 1.1.17
4
4
  Summary: Python for Safeheron API
5
5
  Home-page: https://github.com/Safeheron/safeheron-api-sdk-python
6
6
  Author: safeheron
@@ -0,0 +1,21 @@
1
+ from safeheron_api_sdk_python.client import *
2
+ class GasTransactionsGetByTxKeyRequest:
3
+ def __init__(self):
4
+ # Transaction key, obtained from transactions created via the Create a Transaction V3 API, App, or Web Console.
5
+ self.txKey = None
6
+
7
+
8
+ class GasApi:
9
+
10
+ def __init__(self, config):
11
+ self.api_client = Client(config)
12
+
13
+ # Retrieve Gas Balance
14
+ # Retrieve your Gas balance for the TRON energy rental service.
15
+ def gas_status(self):
16
+ return self.api_client.send_request(None, '/v1/gas/status')
17
+
18
+ # Retrieve Automatic Gas Records for Transactions
19
+ # 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.
20
+ def gas_transactions_ge_b_tx_key(self, request: GasTransactionsGetByTxKeyRequest):
21
+ return self.api_client.send_request(request, '/v1/gas/transactions/getByTxKey')
@@ -147,6 +147,9 @@ class CreateTransactionRequest:
147
147
  self.isRbf = None
148
148
  # The default setting for the parameter is [true]. This parameter determines whether a transaction can be created when the target address is a smart contract. If set to [false], a transaction can still be created for a contract address
149
149
  self.failOnContract = None
150
+ # Default value is true. When initiating and approving transactions, Safeheron assesses the destinationAddress for risk through its AML/KYT service provider. It then decides whether to permit the transaction based on this assessment. By default, if the destination address presents compliance risks, the system prohibits the transaction.
151
+ # If you fully understand the associated risks and still need to transfer funds to this address, you can explicitly set failOnAml to false. In this case, Safeheron will disregard the risk assessment results and allow the transaction to proceed.
152
+ self.failOnAml = None
150
153
  # Custom nonce
151
154
  self.nonce = None
152
155
  # Customizable sequence number on Aptos, similar to the nonce in the EVM.
@@ -210,6 +213,9 @@ class CreateTransactionsUTXOMultiDestRequest:
210
213
  self.destinationTag = None
211
214
  # Bitcoin enabled for RBF (Replace-by-fee is a protocol in the Bitcoin mempool that allows for the replacement of an unconfirmed transaction with another one)
212
215
  self.isRbf = None
216
+ # Default value is true. When initiating and approving transactions, Safeheron assesses the destinationAddress for risk through its AML/KYT service provider. It then decides whether to permit the transaction based on this assessment. By default, if the destination address presents compliance risks, the system prohibits the transaction.
217
+ # If you fully understand the associated risks and still need to transfer funds to this address, you can explicitly set failOnAml to false. In this case, Safeheron will disregard the risk assessment results and allow the transaction to proceed.
218
+ self.failOnAml = None
213
219
 
214
220
  def asDict(self):
215
221
  dict = self.__dict__
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: safeheron_api_sdk_python
3
- Version: 1.1.15
3
+ Version: 1.1.17
4
4
  Summary: Python for Safeheron API
5
5
  Home-page: https://github.com/Safeheron/safeheron-api-sdk-python
6
6
  Author: safeheron
@@ -10,6 +10,7 @@ safeheron_api_sdk_python.egg-info/requires.txt
10
10
  safeheron_api_sdk_python.egg-info/top_level.txt
11
11
  safeheron_api_sdk_python/api/account_api.py
12
12
  safeheron_api_sdk_python/api/coin_api.py
13
+ safeheron_api_sdk_python/api/gas_api.py
13
14
  safeheron_api_sdk_python/api/mpc_sign_api.py
14
15
  safeheron_api_sdk_python/api/tools_api.py
15
16
  safeheron_api_sdk_python/api/transaction_api.py
@@ -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.15',
6
+ version='1.1.17',
7
7
  description='Python for Safeheron API',
8
8
  long_description=long_description,
9
9
  author='safeheron',