safeheron-api-sdk-python 1.1.8__tar.gz → 1.1.10__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.
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/PKG-INFO +1 -1
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python/api/account_api.py +24 -2
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python/api/transaction_api.py +12 -0
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python/api/web3_api.py +16 -0
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python.egg-info/PKG-INFO +1 -1
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/setup.py +1 -1
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/LICENSE +0 -0
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/README.rst +0 -0
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python/api/coin_api.py +0 -0
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python/api/mpc_sign_api.py +0 -0
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python/api/webhook_api.py +0 -0
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python/api/whitelist_api.py +0 -0
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python/client.py +0 -0
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python/cosigner/co_signer_converter.py +0 -0
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python/tools.py +0 -0
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python/webhook/webhook_converter.py +0 -0
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python.egg-info/SOURCES.txt +0 -0
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python.egg-info/dependency_links.txt +0 -0
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python.egg-info/requires.txt +0 -0
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python.egg-info/top_level.txt +0 -0
- {safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/setup.cfg +0 -0
|
@@ -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):
|
|
@@ -41,6 +41,12 @@ class ListTransactionsV1Request:
|
|
|
41
41
|
self.realDestinationAccountType = None
|
|
42
42
|
# Filter out custom transaction amounts, excluding transaction records below a certain amount specified in USD from the query results
|
|
43
43
|
self.hideSmallAmountUsd = None
|
|
44
|
+
# Filter transaction history by transaction direction:
|
|
45
|
+
# Default: Retrieve all types of transactions
|
|
46
|
+
# INFLOW: Retrieve inflows
|
|
47
|
+
# OUTFLOW: Retrieve outflows
|
|
48
|
+
# INTERNAL_TRANSFER: Retrieve internal transfers
|
|
49
|
+
self.transactionDirection = None
|
|
44
50
|
|
|
45
51
|
|
|
46
52
|
class ListTransactionsV2Request:
|
|
@@ -85,6 +91,12 @@ class ListTransactionsV2Request:
|
|
|
85
91
|
self.realDestinationAccountType = None
|
|
86
92
|
# Filter out custom transaction amounts, excluding transaction records below a certain amount specified in USD from the query results
|
|
87
93
|
self.hideSmallAmountUsd = None
|
|
94
|
+
# Filter transaction history by transaction direction:
|
|
95
|
+
# Default: Retrieve all types of transactions
|
|
96
|
+
# INFLOW: Retrieve inflows
|
|
97
|
+
# OUTFLOW: Retrieve outflows
|
|
98
|
+
# INTERNAL_TRANSFER: Retrieve internal transfers
|
|
99
|
+
self.transactionDirection = None
|
|
88
100
|
|
|
89
101
|
|
|
90
102
|
class CreateTransactionRequest:
|
|
@@ -49,6 +49,10 @@ class CreateWeb3EthSignRequest:
|
|
|
49
49
|
self.customerExt1 = None
|
|
50
50
|
# Merchant extended field (defined by merchant) shown to merchant (255 characters max)
|
|
51
51
|
self.customerExt2 = None
|
|
52
|
+
# Use custom network
|
|
53
|
+
# False: Use the network supported by Safeheron by default
|
|
54
|
+
# True: Use a custom network added through the Safeheron Browser Extension
|
|
55
|
+
self.useCustomNetwork = None
|
|
52
56
|
# Message Hash
|
|
53
57
|
self.messageHash = self.MessageHash()
|
|
54
58
|
|
|
@@ -77,6 +81,10 @@ class CreateWeb3PersonalSignRequest:
|
|
|
77
81
|
self.customerExt1 = None
|
|
78
82
|
# Merchant extended field (defined by merchant) shown to merchant (255 characters max)
|
|
79
83
|
self.customerExt2 = None
|
|
84
|
+
# Use custom network
|
|
85
|
+
# False: Use the network supported by Safeheron by default
|
|
86
|
+
# True: Use a custom network added through the Safeheron Browser Extension
|
|
87
|
+
self.useCustomNetwork = None
|
|
80
88
|
# Message Hash
|
|
81
89
|
self.message = self.Message()
|
|
82
90
|
|
|
@@ -105,6 +113,10 @@ class CreateWeb3EthSignTypedDataRequest:
|
|
|
105
113
|
self.customerExt1 = None
|
|
106
114
|
# Merchant extended field (defined by merchant) shown to merchant (255 characters max)
|
|
107
115
|
self.customerExt2 = None
|
|
116
|
+
# Use custom network
|
|
117
|
+
# False: Use the network supported by Safeheron by default
|
|
118
|
+
# True: Use a custom network added through the Safeheron Browser Extension
|
|
119
|
+
self.useCustomNetwork = None
|
|
108
120
|
# Message Hash
|
|
109
121
|
self.message = self.Message()
|
|
110
122
|
|
|
@@ -135,6 +147,10 @@ class CreateWeb3EthSignTransactionRequest:
|
|
|
135
147
|
self.customerExt1 = None
|
|
136
148
|
# Merchant extended field (defined by merchant) shown to merchant (255 characters max)
|
|
137
149
|
self.customerExt2 = None
|
|
150
|
+
# Use custom network
|
|
151
|
+
# False: Use the network supported by Safeheron by default
|
|
152
|
+
# True: Use a custom network added through the Safeheron Browser Extension
|
|
153
|
+
self.useCustomNetwork = None
|
|
138
154
|
# Transaction
|
|
139
155
|
self.transaction = self.Transaction()
|
|
140
156
|
|
|
@@ -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.
|
|
6
|
+
version='1.1.10',
|
|
7
7
|
description='Python for Safeheron API',
|
|
8
8
|
long_description=long_description,
|
|
9
9
|
author='safeheron',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{safeheron_api_sdk_python-1.1.8 → safeheron_api_sdk_python-1.1.10}/safeheron_api_sdk_python/tools.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|