safeheron-api-sdk-python 1.1.10__tar.gz → 1.1.12__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 (21) hide show
  1. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/PKG-INFO +1 -1
  2. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/safeheron_api_sdk_python/api/transaction_api.py +14 -0
  3. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/safeheron_api_sdk_python/api/whitelist_api.py +41 -3
  4. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/safeheron_api_sdk_python.egg-info/PKG-INFO +1 -1
  5. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/setup.py +1 -1
  6. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/LICENSE +0 -0
  7. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/README.rst +0 -0
  8. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/safeheron_api_sdk_python/api/account_api.py +0 -0
  9. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/safeheron_api_sdk_python/api/coin_api.py +0 -0
  10. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/safeheron_api_sdk_python/api/mpc_sign_api.py +0 -0
  11. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/safeheron_api_sdk_python/api/web3_api.py +0 -0
  12. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/safeheron_api_sdk_python/api/webhook_api.py +0 -0
  13. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/safeheron_api_sdk_python/client.py +0 -0
  14. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/safeheron_api_sdk_python/cosigner/co_signer_converter.py +0 -0
  15. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/safeheron_api_sdk_python/tools.py +0 -0
  16. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/safeheron_api_sdk_python/webhook/webhook_converter.py +0 -0
  17. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/safeheron_api_sdk_python.egg-info/SOURCES.txt +0 -0
  18. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/safeheron_api_sdk_python.egg-info/dependency_links.txt +0 -0
  19. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/safeheron_api_sdk_python.egg-info/requires.txt +0 -0
  20. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/safeheron_api_sdk_python.egg-info/top_level.txt +0 -0
  21. {safeheron_api_sdk_python-1.1.10 → safeheron_api_sdk_python-1.1.12}/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.10
3
+ Version: 1.1.12
4
4
  Summary: Python for Safeheron API
5
5
  Home-page: https://github.com/Safeheron/safeheron-api-sdk-python
6
6
  Author: safeheron
@@ -137,6 +137,10 @@ class CreateTransactionRequest:
137
137
  self.destinationAccountType = None
138
138
  # If the destinationAccountType is ONE_TIME_ADDRESS, then this field should have a value
139
139
  self.destinationAddress = None
140
+ # The memo (up to 100 characters) for the destination address, also known as a comment or tag. This parameter is valid for transactions on the following networks:
141
+ # TON: TON mainnet
142
+ # TON_TESTNET: TON testnet
143
+ self.memo = None
140
144
  # Destination Tag
141
145
  self.destinationTag = None
142
146
  # 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)
@@ -251,6 +255,11 @@ class OneTransactionsRequest:
251
255
  # Merchant unique business ID (100 characters max)
252
256
  self.customerRefId = None
253
257
 
258
+ class ApprovalDetailTransactionsRequest:
259
+ def __init__(self):
260
+ # Transaction key list within 20 transaction keys
261
+ self.txKeyList = None
262
+
254
263
 
255
264
  class TransactionsFeeRateRequest:
256
265
  def __init__(self):
@@ -357,6 +366,11 @@ class TransactionApi:
357
366
  def one_transactions(self, request: OneTransactionsRequest):
358
367
  return self.api_client.send_request(request, '/v1/transactions/one')
359
368
 
369
+ # Retrieve Transaction Approval Details
370
+ # Query approval details of a transaction. Exclusively for transactions using the new advanced transaction policy. Learn more about new advanced transaction policies.
371
+ def approval_detail_transactions(self, request: ApprovalDetailTransactionsRequest):
372
+ return self.api_client.send_request(request, '/v1/transactions/approvalDetail')
373
+
360
374
  # Estimate Transaction Fee
361
375
  # This interface provides users with an estimated range of transaction fee rates of a given cryptocurrency when creating or speeding up transactions.
362
376
  def transaction_fee_rate(self, request: TransactionsFeeRateRequest):
@@ -41,7 +41,6 @@ class OneWhitelistRequest:
41
41
  self.address = None
42
42
 
43
43
 
44
-
45
44
  class CreateWhitelistRequest:
46
45
  def __init__(self):
47
46
  # Whitelist unique name, 20 characters max
@@ -61,6 +60,33 @@ class CreateWhitelistRequest:
61
60
  self.chainType = None
62
61
  # Public blockchain address and the address format needs to meet the requirements of the chain
63
62
  self.address = None
63
+ # The memo (up to 20 characters) for the destination address, also known as a comment or tag. For the following networks, if a destination address memo was set initially, a memo matching the one in the transaction record must be provided
64
+ # TON: TON mainnet
65
+ # TON_TESTNET: TON testnet
66
+ self.memo = None
67
+ # Visibility status in Safeheron App and Web Console
68
+ # False: Visible by default
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
+ self.hiddenOnUI = None
71
+
72
+
73
+ class CreateFromTransactionWhitelistRequest:
74
+ def __init__(self):
75
+ # Whitelist unique name, 20 characters max
76
+ self.whitelistName = None
77
+ # Transaction key
78
+ self.txKey = None
79
+ # The destination address in the transaction record; case-sensitive
80
+ self.destinationAddress = None
81
+ # The memo (up to 20 characters) for the destination address, also known as a comment or tag. For the following networks, if a destination address memo was set initially, a memo matching the one in the transaction record must be provided
82
+ # TON: TON mainnet
83
+ # TON_TESTNET: TON testnet
84
+ self.memo = None
85
+ # Visibility status in Safeheron App and Web Console
86
+ # False: Visible by default
87
+ # 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
+ self.hiddenOnUI = None
89
+
64
90
 
65
91
  class EditWhitelistRequest:
66
92
  def __init__(self):
@@ -70,9 +96,14 @@ class EditWhitelistRequest:
70
96
  self.whitelistName = None
71
97
  # Public blockchain address and the address format needs to meet the requirements of the chain
72
98
  self.address = None
99
+ # The memo (up to 20 characters) for the destination address, also known as a comment or tag. For the following networks, if a destination address memo was set initially, a memo matching the one in the transaction record must be provided
100
+ # TON: TON mainnet
101
+ # TON_TESTNET: TON testnet
102
+ self.memo = None
73
103
  # 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.
74
104
  self.force = None
75
105
 
106
+
76
107
  class DeleteWhitelistRequest:
77
108
  def __init__(self):
78
109
  # Whitelist unique identifier
@@ -101,6 +132,15 @@ class WhitelistApi:
101
132
  def create_whitelist(self, request: CreateWhitelistRequest):
102
133
  return self.api_client.send_request(request, '/v1/whitelist/create')
103
134
 
135
+ # Create a Whitelist Based on a Transaction
136
+ # Whitelist the transaction's destination address when the transaction meets the following conditions:
137
+ #
138
+ # A transfer transaction from an asset wallet; Web3 wallet transactions or MPC Sign transactions are not supported.
139
+ # The transaction is in a completed state as COMPLETED.
140
+ # The transaction's destination address is a one-time address.
141
+ def create_from_transaction_whitelist(self, request: CreateFromTransactionWhitelistRequest):
142
+ return self.api_client.send_request(request, '/v1/whitelist/createFromTransaction')
143
+
104
144
  # Modify a Whitelist
105
145
  # Modify a whitelist based on its unique identifier. The whitelist only supports modifying its name and address; whitelists pending for approval cannot be modified. After modifying the whitelist, it needs to be reviewed and approved in the Safeheron App before it becomes effective. The approval details are as follows:
106
146
  # Admin approval: If a custom whitelist approval process is not set, it will become effective after being approved by the team admins according to the team's decision-making process.
@@ -112,5 +152,3 @@ class WhitelistApi:
112
152
  # To delete a whitelisted address, note that no approval is required for deletion. If a whitelisted address that is under approval is deleted, the approval task will also be automatically cancelled.
113
153
  def delete_whitelist(self, request: DeleteWhitelistRequest):
114
154
  return self.api_client.send_request(request, '/v1/whitelist/delete')
115
-
116
-
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: safeheron_api_sdk_python
3
- Version: 1.1.10
3
+ Version: 1.1.12
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.10',
6
+ version='1.1.12',
7
7
  description='Python for Safeheron API',
8
8
  long_description=long_description,
9
9
  author='safeheron',