safeheron-api-sdk-python 1.1.8__tar.gz → 1.1.9__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.8 → safeheron_api_sdk_python-1.1.9}/PKG-INFO +1 -1
  2. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/safeheron_api_sdk_python/api/account_api.py +24 -2
  3. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/safeheron_api_sdk_python.egg-info/PKG-INFO +1 -1
  4. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/setup.py +1 -1
  5. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/LICENSE +0 -0
  6. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/README.rst +0 -0
  7. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/safeheron_api_sdk_python/api/coin_api.py +0 -0
  8. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/safeheron_api_sdk_python/api/mpc_sign_api.py +0 -0
  9. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/safeheron_api_sdk_python/api/transaction_api.py +0 -0
  10. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/safeheron_api_sdk_python/api/web3_api.py +0 -0
  11. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/safeheron_api_sdk_python/api/webhook_api.py +0 -0
  12. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/safeheron_api_sdk_python/api/whitelist_api.py +0 -0
  13. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/safeheron_api_sdk_python/client.py +0 -0
  14. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/safeheron_api_sdk_python/cosigner/co_signer_converter.py +0 -0
  15. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/safeheron_api_sdk_python/tools.py +0 -0
  16. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/safeheron_api_sdk_python/webhook/webhook_converter.py +0 -0
  17. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/safeheron_api_sdk_python.egg-info/SOURCES.txt +0 -0
  18. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/safeheron_api_sdk_python.egg-info/dependency_links.txt +0 -0
  19. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/safeheron_api_sdk_python.egg-info/requires.txt +0 -0
  20. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/safeheron_api_sdk_python.egg-info/top_level.txt +0 -0
  21. {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.9}/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.8
3
+ Version: 1.1.9
4
4
  Summary: Python for Safeheron API
5
5
  Home-page: https://github.com/Safeheron/safeheron-api-sdk-python
6
6
  Author: safeheron
@@ -87,6 +87,13 @@ class CreateAccountCoinRequest:
87
87
  # Account key
88
88
  self.accountKey = None
89
89
 
90
+ class CreateAccountCoinRequestV2:
91
+ def __init__(self):
92
+ # Coin key list, 20 array elements max
93
+ self.coinKeyList = None
94
+ # Account key
95
+ self.accountKey = None
96
+
90
97
 
91
98
  class BatchCreateAccountCoinRequest:
92
99
  def __init__(self):
@@ -114,6 +121,8 @@ class ListAccountCoinAddressRequest:
114
121
  self.coinKey = None
115
122
  # Account key
116
123
  self.accountKey = None
124
+ # Merchant unique business ID (100 characters max) when adding an address group
125
+ self.customerRefId = None
117
126
 
118
127
 
119
128
  class InfoAccountCoinAddressRequest:
@@ -140,6 +149,9 @@ class CreateAccountCoinAddressRequest:
140
149
  self.accountKey = None
141
150
  # Address group name, 30 characters max
142
151
  self.addressGroupName = None
152
+ # Merchant unique business ID (100 characters max)
153
+ # The customerRefId uniquely represents an address group. In the case of duplicate customerRefId values (for example, when resubmitting due to request timeouts or other errors), the data returned by the interface will remain consistent
154
+ self.customerRefId = None
143
155
 
144
156
 
145
157
  class BatchCreateAccountCoinUTXORequest:
@@ -194,12 +206,17 @@ class AccountApi:
194
206
  def batch_update_account_tag(self, request: BatchUpdateAccountTagRequest):
195
207
  return self.api_client.send_request(request, '/v1/account/batch/update/tag')
196
208
 
197
- # Add Coins to a Wallet Account
209
+ # Add Coins to a Wallet Account V1
198
210
  # Add a new coin to your wallet account, while generating the default address group for the added coin. Once successfully completed, it will return the address information of the newly created default address group. In case the added currency already exists within the account, it will promptly return the existing default address group information for that coin.
199
211
  # In a wallet account, UTXO-based cryptocurrencies can have multiple address groups, while other types of cryptocurrencies usually have only one. To check whether a particular cryptocurrency supports the addition of multiple address groups, simply check the 'isMultipleAddress' parameter through the Coin List.
200
212
  def create_account_coin(self, request: CreateAccountCoinRequest):
201
213
  return self.api_client.send_request(request, '/v1/account/coin/create')
202
214
 
215
+ # Add Coins to a Wallet Account V2
216
+ # Add a new coin to your wallet account, and it will generate address information for the added coin. If the added currency already exists within the account, it will promptly return the existing address information for that coin.
217
+ def create_account_coin_v2(self, request: CreateAccountCoinRequestV2):
218
+ return self.api_client.send_request(request, '/v2/account/coin/create')
219
+
203
220
  # Batch Add Coins to Wallet Accounts
204
221
  # Bulk addition of specified coins to designated wallet accounts. And, it creates a default address group for each coin and returns the address information contained within the newly created default address group. If a wallet account already contains the currency being added, the function will return the default address group data for that existing coin.
205
222
  #
@@ -228,11 +245,16 @@ class AccountApi:
228
245
  def rename_account_coin_address(self, request: RenameAccountCoinAddressRequest):
229
246
  return self.api_client.send_request(request, '/v1/account/coin/address/name')
230
247
 
231
- # Add Address Group for UTXO-Based Coin
248
+ # Add Address Group for UTXO-Based Coin V1
232
249
  # Add a new address group for UTXO-based cryptocurrencies under a wallet account. If the coin does not exist, it will be added first, followed by the new address group. The function will return the details of the added address(es).
233
250
  def create_account_coin_address(self, request: CreateAccountCoinAddressRequest):
234
251
  return self.api_client.send_request(request, '/v1/account/coin/address/create')
235
252
 
253
+ # Add Address Group for UTXOs V2
254
+ # Add a new address group for UTXO-based cryptocurrencies under a wallet account.If the coin has not been added to the wallet, it will be added automatically.
255
+ def create_account_coin_address_v2(self, request: CreateAccountCoinAddressRequest):
256
+ return self.api_client.send_request(request, '/v2/account/coin/address/create')
257
+
236
258
  # Batch Add Address Groups for UTXO-Based Coin
237
259
  # For UTXO-based coins in a wallet account, it is possible to add multiple address groups to the account in bulk by specifying the wallet account and the desired number of address groups. The function will return the details of the added address groups. If the specified coin does not exist in the account, it will be added first, followed by the addition of the corresponding number of address groups.
238
260
  def batch_create_account_coin_UTXO(self, request: BatchCreateAccountCoinUTXORequest):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: safeheron_api_sdk_python
3
- Version: 1.1.8
3
+ Version: 1.1.9
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.8',
6
+ version='1.1.9',
7
7
  description='Python for Safeheron API',
8
8
  long_description=long_description,
9
9
  author='safeheron',