@cobo/cobo-waas2 1.1.1 → 1.2.0
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.
- package/README.md +16 -3
- package/dist/ApiClient.js +1 -1
- package/dist/api/OAuthApi.js +16 -15
- package/dist/api/TransactionsApi.js +18 -18
- package/dist/api/WalletsApi.js +123 -12
- package/dist/api/WalletsExchangeWalletApi.js +254 -0
- package/dist/api/WalletsMPCWalletsApi.js +8 -8
- package/dist/index.js +56 -0
- package/dist/model/Activity.js +3 -1
- package/dist/model/AddressInfo.js +1 -1
- package/dist/model/AddressTransferDestination.js +6 -4
- package/dist/model/AddressTransferDestinationAccountOutput.js +2 -2
- package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +1 -1
- package/dist/model/AssetBalance.js +3 -1
- package/dist/model/AssetInfo.js +2 -2
- package/dist/model/BabylonStakeExtra.js +9 -0
- package/dist/model/CheckAddressValidity200Response.js +2 -2
- package/dist/model/CheckAddressesValidity200ResponseInner.js +121 -0
- package/dist/model/CheckLoopTransfers200ResponseInner.js +96 -0
- package/dist/model/CoboSafeDelegate.js +3 -3
- package/dist/model/ContractCallDestination.js +4 -4
- package/dist/model/ContractCallParams.js +9 -3
- package/dist/model/ContractCallSource.js +6 -6
- package/dist/model/CreateSafeWalletParams.js +3 -1
- package/dist/model/CreateSmartContractWalletParams.js +3 -3
- package/dist/model/CreateStakeActivity.js +23 -4
- package/dist/model/CreateStakeActivityExtra.js +15 -9
- package/dist/model/CreateTssRequestRequest.js +16 -1
- package/dist/model/CreateUnstakeActivity.js +16 -1
- package/dist/model/CreateWalletParams.js +9 -9
- package/dist/model/CreateWithdrawActivity.js +16 -1
- package/dist/model/CreatedWalletInfo.js +21 -9
- package/dist/model/EstimateContractCallFeeParams.js +6 -2
- package/dist/model/EstimateFeeParams.js +6 -6
- package/dist/model/EstimateStakeFee.js +28 -4
- package/dist/model/EstimateTransferFeeParams.js +6 -2
- package/dist/model/EstimateUnstakeFee.js +21 -1
- package/dist/model/EstimateWithdrawFee.js +21 -1
- package/dist/model/EstimatedEvmEip1559Fee.js +9 -3
- package/dist/model/EstimatedEvmLegacyFee.js +9 -3
- package/dist/model/EstimatedFee.js +12 -12
- package/dist/model/EstimatedUtxoFee.js +9 -3
- package/dist/model/EvmContractCallDestination.js +1 -1
- package/dist/model/EvmEip1559FeeRate.js +9 -3
- package/dist/model/EvmLegacyFeeRate.js +9 -3
- package/dist/model/ExchangeId.js +5 -0
- package/dist/model/ExchangeTransferDestination.js +16 -16
- package/dist/model/ExchangeTransferSource.js +14 -14
- package/dist/model/FeeRate.js +12 -12
- package/dist/model/GetToken200Response.js +4 -4
- package/dist/model/KeyShareHolder.js +13 -0
- package/dist/model/ListAddresses200Response.js +3 -1
- package/dist/model/ListAssetBalancesForExchangeWallet200Response.js +123 -0
- package/dist/model/ListExchanges200ResponseInner.js +122 -0
- package/dist/model/ListKeyShareHolderGroups200Response.js +3 -1
- package/dist/model/ListMpcProjects200Response.js +3 -1
- package/dist/model/ListMpcVaults200Response.js +3 -1
- package/dist/model/ListSupportedAssetsForExchange200Response.js +123 -0
- package/dist/model/ListSupportedChains200Response.js +3 -1
- package/dist/model/ListSupportedTokens200Response.js +3 -1
- package/dist/model/ListTokenBalancesForAddress200Response.js +3 -1
- package/dist/model/ListTransactions200Response.js +3 -1
- package/dist/model/ListTssRequests200Response.js +3 -1
- package/dist/model/ListUtxos200Response.js +3 -1
- package/dist/model/ListWallets200Response.js +3 -1
- package/dist/model/ListWebhookEndpoints200Response.js +3 -1
- package/dist/model/ListWebhookEventLogs200Response.js +3 -1
- package/dist/model/ListWebhookEvents200Response.js +3 -1
- package/dist/model/MPCWalletInfo.js +26 -0
- package/dist/model/MaxTransferableValue.js +3 -1
- package/dist/model/MessageSignDestination.js +6 -6
- package/dist/model/MessageSignParams.js +6 -2
- package/dist/model/MessageSignSource.js +3 -3
- package/dist/model/PoolDetailsAllOfValidatorsInfo.js +6 -6
- package/dist/model/RefreshToken200Response.js +135 -0
- package/dist/model/RefreshTokenRequest.js +2 -2
- package/dist/model/SafeContractCallSource.js +3 -1
- package/dist/model/SafeTransferSource.js +3 -1
- package/dist/model/SafeWallet.js +3 -1
- package/dist/model/SmartContractWalletInfo.js +3 -3
- package/dist/model/SmartContractWalletType.js +2 -2
- package/dist/model/StakingSource.js +6 -6
- package/dist/model/Stakings.js +3 -1
- package/dist/model/SubWalletAssetBalance.js +13 -11
- package/dist/model/TSSRequest.js +26 -2
- package/dist/model/TSSRequestWebhookEventData.js +263 -0
- package/dist/model/TokenBalance.js +3 -1
- package/dist/model/Transaction.js +21 -7
- package/dist/model/TransactionDepositFromWalletSource.js +6 -6
- package/dist/model/TransactionDepositToAddressDestination.js +2 -2
- package/dist/model/TransactionDepositToWalletDestination.js +9 -9
- package/dist/model/TransactionDestination.js +26 -26
- package/dist/model/TransactionDetail.js +21 -7
- package/dist/model/TransactionDetails.js +24 -8
- package/dist/model/TransactionEvmContractDestination.js +1 -1
- package/dist/model/TransactionExchangeWalletSource.js +6 -6
- package/dist/model/TransactionFee.js +12 -12
- package/dist/model/TransactionMPCWalletSource.js +13 -0
- package/dist/model/TransactionRbf.js +6 -2
- package/dist/model/TransactionRbfSource.js +3 -3
- package/dist/model/TransactionRequestFee.js +12 -12
- package/dist/model/TransactionResult.js +3 -3
- package/dist/model/TransactionSmartContractSafeWalletSource.js +3 -1
- package/dist/model/TransactionSource.js +29 -23
- package/dist/model/TransactionSubStatus.js +5 -0
- package/dist/model/TransactionTransferToAddressDestination.js +3 -1
- package/dist/model/TransactionTransferToAddressDestinationAccountOutput.js +1 -1
- package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +1 -1
- package/dist/model/TransactionTransferToWalletDestination.js +9 -9
- package/dist/model/TransactionWebhookEventData.js +29 -10
- package/dist/model/TransferDestination.js +12 -12
- package/dist/model/TransferParams.js +11 -5
- package/dist/model/TransferSource.js +15 -15
- package/dist/model/UpdateWalletParams.js +12 -12
- package/dist/model/UtxoFeeRate.js +9 -3
- package/dist/model/WalletInfo.js +24 -12
- package/dist/model/WebhookEvent.js +3 -1
- package/dist/model/WebhookEventData.js +52 -18
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventLog.js +3 -1
- package/dist/model/WebhookEventType.js +24 -4
- package/docs/AddressInfo.md +1 -1
- package/docs/AddressTransferDestination.md +2 -2
- package/docs/AddressTransferDestinationAccountOutput.md +1 -1
- package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -1
- package/docs/AssetInfo.md +1 -1
- package/docs/BabylonStakeExtra.md +1 -0
- package/docs/CheckAddressValidity200Response.md +1 -1
- package/docs/CheckAddressesValidity200ResponseInner.md +10 -0
- package/docs/CheckLoopTransfers200ResponseInner.md +10 -0
- package/docs/ContractCallDestination.md +1 -1
- package/docs/CreateStakeActivity.md +1 -0
- package/docs/CreateStakeActivityExtra.md +1 -0
- package/docs/CreateTssRequestRequest.md +1 -0
- package/docs/CreateUnstakeActivity.md +1 -0
- package/docs/CreateWithdrawActivity.md +1 -0
- package/docs/CreatedWalletInfo.md +2 -0
- package/docs/DevelopersWebhooksApi.md +78 -69
- package/docs/EstimateStakeFee.md +1 -0
- package/docs/EstimateUnstakeFee.md +1 -0
- package/docs/EstimateWithdrawFee.md +1 -0
- package/docs/EvmContractCallDestination.md +1 -1
- package/docs/ExchangeId.md +2 -0
- package/docs/ExchangeTransferDestination.md +2 -2
- package/docs/ExchangeTransferSource.md +1 -1
- package/docs/GetToken200Response.md +4 -4
- package/docs/KeyShareHolder.md +1 -0
- package/docs/ListAssetBalancesForExchangeWallet200Response.md +10 -0
- package/docs/ListExchanges200ResponseInner.md +10 -0
- package/docs/ListSupportedAssetsForExchange200Response.md +10 -0
- package/docs/MPCWalletInfo.md +2 -0
- package/docs/OAuthApi.md +26 -24
- package/docs/RefreshToken200Response.md +13 -0
- package/docs/RefreshTokenRequest.md +2 -2
- package/docs/SmartContractWalletType.md +1 -1
- package/docs/SubWalletAssetBalance.md +2 -2
- package/docs/TSSRequest.md +2 -0
- package/docs/TSSRequestWebhookEventData.md +29 -0
- package/docs/TransactionDepositFromWalletSource.md +1 -1
- package/docs/TransactionDepositToAddressDestination.md +1 -1
- package/docs/TransactionDepositToWalletDestination.md +2 -2
- package/docs/TransactionDestination.md +3 -3
- package/docs/TransactionEvmContractDestination.md +1 -1
- package/docs/TransactionExchangeWalletSource.md +1 -1
- package/docs/TransactionMPCWalletSource.md +1 -0
- package/docs/TransactionSource.md +2 -1
- package/docs/TransactionSubStatus.md +2 -0
- package/docs/TransactionTransferToAddressDestinationAccountOutput.md +1 -1
- package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +1 -1
- package/docs/TransactionTransferToWalletDestination.md +2 -2
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/TransactionsApi.md +98 -88
- package/docs/TransferDestination.md +4 -4
- package/docs/TransferParams.md +1 -1
- package/docs/TransferSource.md +1 -1
- package/docs/WalletInfo.md +2 -0
- package/docs/WalletsApi.md +316 -187
- package/docs/WalletsExchangeWalletApi.md +230 -0
- package/docs/WalletsMPCWalletsApi.md +153 -135
- package/docs/WebhookEventData.md +10 -5
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +12 -4
- package/package.json +1 -1
|
@@ -264,22 +264,30 @@ var TransactionDetails = /*#__PURE__*/function () {
|
|
|
264
264
|
// validate the optional field `source`
|
|
265
265
|
if (data['source']) {
|
|
266
266
|
// data not null
|
|
267
|
-
_TransactionSource["default"].validateJSON
|
|
267
|
+
if (!!_TransactionSource["default"].validateJSON) {
|
|
268
|
+
_TransactionSource["default"].validateJSON(data['source']);
|
|
269
|
+
}
|
|
268
270
|
}
|
|
269
271
|
// validate the optional field `destination`
|
|
270
272
|
if (data['destination']) {
|
|
271
273
|
// data not null
|
|
272
|
-
_TransactionDestination["default"].validateJSON
|
|
274
|
+
if (!!_TransactionDestination["default"].validateJSON) {
|
|
275
|
+
_TransactionDestination["default"].validateJSON(data['destination']);
|
|
276
|
+
}
|
|
273
277
|
}
|
|
274
278
|
// validate the optional field `result`
|
|
275
279
|
if (data['result']) {
|
|
276
280
|
// data not null
|
|
277
|
-
_TransactionResult["default"].validateJSON
|
|
281
|
+
if (!!_TransactionResult["default"].validateJSON) {
|
|
282
|
+
_TransactionResult["default"].validateJSON(data['result']);
|
|
283
|
+
}
|
|
278
284
|
}
|
|
279
285
|
// validate the optional field `fee`
|
|
280
286
|
if (data['fee']) {
|
|
281
287
|
// data not null
|
|
282
|
-
_TransactionRequestFee["default"].validateJSON
|
|
288
|
+
if (!!_TransactionRequestFee["default"].validateJSON) {
|
|
289
|
+
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
290
|
+
}
|
|
283
291
|
}
|
|
284
292
|
// ensure the json data is a string
|
|
285
293
|
if (data['initiator'] && !(typeof data['initiator'] === 'string' || data['initiator'] instanceof String)) {
|
|
@@ -292,17 +300,23 @@ var TransactionDetails = /*#__PURE__*/function () {
|
|
|
292
300
|
// validate the optional field `block_info`
|
|
293
301
|
if (data['block_info']) {
|
|
294
302
|
// data not null
|
|
295
|
-
_TransactionBlockInfo["default"].validateJSON
|
|
303
|
+
if (!!_TransactionBlockInfo["default"].validateJSON) {
|
|
304
|
+
_TransactionBlockInfo["default"].validateJSON(data['block_info']);
|
|
305
|
+
}
|
|
296
306
|
}
|
|
297
307
|
// validate the optional field `raw_tx_info`
|
|
298
308
|
if (data['raw_tx_info']) {
|
|
299
309
|
// data not null
|
|
300
|
-
_TransactionRawTxInfo["default"].validateJSON
|
|
310
|
+
if (!!_TransactionRawTxInfo["default"].validateJSON) {
|
|
311
|
+
_TransactionRawTxInfo["default"].validateJSON(data['raw_tx_info']);
|
|
312
|
+
}
|
|
301
313
|
}
|
|
302
314
|
// validate the optional field `replacement`
|
|
303
315
|
if (data['replacement']) {
|
|
304
316
|
// data not null
|
|
305
|
-
_TransactionReplacement["default"].validateJSON
|
|
317
|
+
if (!!_TransactionReplacement["default"].validateJSON) {
|
|
318
|
+
_TransactionReplacement["default"].validateJSON(data['replacement']);
|
|
319
|
+
}
|
|
306
320
|
}
|
|
307
321
|
// ensure the json data is an array
|
|
308
322
|
if (!Array.isArray(data['category'])) {
|
|
@@ -365,7 +379,9 @@ var TransactionDetails = /*#__PURE__*/function () {
|
|
|
365
379
|
// validate the optional field `token_approval`
|
|
366
380
|
if (data['token_approval']) {
|
|
367
381
|
// data not null
|
|
368
|
-
_TransactionTokeApproval["default"].validateJSON
|
|
382
|
+
if (!!_TransactionTokeApproval["default"].validateJSON) {
|
|
383
|
+
_TransactionTokeApproval["default"].validateJSON(data['token_approval']);
|
|
384
|
+
}
|
|
369
385
|
}
|
|
370
386
|
// ensure the json data is a string
|
|
371
387
|
if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
|
|
@@ -133,7 +133,7 @@ TransactionEvmContractDestination.prototype['destination_type'] = undefined;
|
|
|
133
133
|
TransactionEvmContractDestination.prototype['address'] = undefined;
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
|
-
* The
|
|
136
|
+
* The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
|
|
137
137
|
* @member {String} value
|
|
138
138
|
*/
|
|
139
139
|
TransactionEvmContractDestination.prototype['value'] = undefined;
|
|
@@ -78,8 +78,8 @@ var TransactionExchangeWalletSource = /*#__PURE__*/function () {
|
|
|
78
78
|
if (data.hasOwnProperty('wallet_id')) {
|
|
79
79
|
obj['wallet_id'] = _ApiClient["default"].convertToType(data['wallet_id'], 'String');
|
|
80
80
|
}
|
|
81
|
-
if (data.hasOwnProperty('
|
|
82
|
-
obj['
|
|
81
|
+
if (data.hasOwnProperty('trading_account_type')) {
|
|
82
|
+
obj['trading_account_type'] = _ApiClient["default"].convertToType(data['trading_account_type'], 'String');
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
return obj;
|
|
@@ -113,8 +113,8 @@ var TransactionExchangeWalletSource = /*#__PURE__*/function () {
|
|
|
113
113
|
throw new Error("Expected the field `wallet_id` to be a primitive type in the JSON string but got " + data['wallet_id']);
|
|
114
114
|
}
|
|
115
115
|
// ensure the json data is a string
|
|
116
|
-
if (data['
|
|
117
|
-
throw new Error("Expected the field `
|
|
116
|
+
if (data['trading_account_type'] && !(typeof data['trading_account_type'] === 'string' || data['trading_account_type'] instanceof String)) {
|
|
117
|
+
throw new Error("Expected the field `trading_account_type` to be a primitive type in the JSON string but got " + data['trading_account_type']);
|
|
118
118
|
}
|
|
119
119
|
return true;
|
|
120
120
|
}
|
|
@@ -140,7 +140,7 @@ TransactionExchangeWalletSource.prototype['wallet_id'] = undefined;
|
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
142
|
* The exchange trading account or a sub-wallet ID.
|
|
143
|
-
* @member {String}
|
|
143
|
+
* @member {String} trading_account_type
|
|
144
144
|
*/
|
|
145
|
-
TransactionExchangeWalletSource.prototype['
|
|
145
|
+
TransactionExchangeWalletSource.prototype['trading_account_type'] = undefined;
|
|
146
146
|
var _default = exports["default"] = TransactionExchangeWalletSource;
|
|
@@ -57,12 +57,12 @@ var TransactionFee = /*#__PURE__*/function () {
|
|
|
57
57
|
try {
|
|
58
58
|
if (instance instanceof _TransactionEvmEip1559Fee["default"]) {
|
|
59
59
|
this.actualInstance = instance;
|
|
60
|
-
} else if (_TransactionEvmEip1559Fee["default"].validateJSON(instance)) {
|
|
60
|
+
} else if (!!_TransactionEvmEip1559Fee["default"].validateJSON && _TransactionEvmEip1559Fee["default"].validateJSON(instance)) {
|
|
61
61
|
// plain JS object
|
|
62
62
|
// create TransactionEvmEip1559Fee from JS object
|
|
63
63
|
this.actualInstance = _TransactionEvmEip1559Fee["default"].constructFromObject(instance);
|
|
64
|
-
} else {
|
|
65
|
-
|
|
64
|
+
} else if (_TransactionEvmEip1559Fee["default"].constructFromObject(instance)) {
|
|
65
|
+
this.actualInstance = _TransactionEvmEip1559Fee["default"].constructFromObject(instance);
|
|
66
66
|
}
|
|
67
67
|
match++;
|
|
68
68
|
} catch (err) {
|
|
@@ -72,12 +72,12 @@ var TransactionFee = /*#__PURE__*/function () {
|
|
|
72
72
|
try {
|
|
73
73
|
if (instance instanceof _TransactionEvmLegacyFee["default"]) {
|
|
74
74
|
this.actualInstance = instance;
|
|
75
|
-
} else if (_TransactionEvmLegacyFee["default"].validateJSON(instance)) {
|
|
75
|
+
} else if (!!_TransactionEvmLegacyFee["default"].validateJSON && _TransactionEvmLegacyFee["default"].validateJSON(instance)) {
|
|
76
76
|
// plain JS object
|
|
77
77
|
// create TransactionEvmLegacyFee from JS object
|
|
78
78
|
this.actualInstance = _TransactionEvmLegacyFee["default"].constructFromObject(instance);
|
|
79
|
-
} else {
|
|
80
|
-
|
|
79
|
+
} else if (_TransactionEvmLegacyFee["default"].constructFromObject(instance)) {
|
|
80
|
+
this.actualInstance = _TransactionEvmLegacyFee["default"].constructFromObject(instance);
|
|
81
81
|
}
|
|
82
82
|
match++;
|
|
83
83
|
} catch (err) {
|
|
@@ -87,12 +87,12 @@ var TransactionFee = /*#__PURE__*/function () {
|
|
|
87
87
|
try {
|
|
88
88
|
if (instance instanceof _TransactionUtxoFee["default"]) {
|
|
89
89
|
this.actualInstance = instance;
|
|
90
|
-
} else if (_TransactionUtxoFee["default"].validateJSON(instance)) {
|
|
90
|
+
} else if (!!_TransactionUtxoFee["default"].validateJSON && _TransactionUtxoFee["default"].validateJSON(instance)) {
|
|
91
91
|
// plain JS object
|
|
92
92
|
// create TransactionUtxoFee from JS object
|
|
93
93
|
this.actualInstance = _TransactionUtxoFee["default"].constructFromObject(instance);
|
|
94
|
-
} else {
|
|
95
|
-
|
|
94
|
+
} else if (_TransactionUtxoFee["default"].constructFromObject(instance)) {
|
|
95
|
+
this.actualInstance = _TransactionUtxoFee["default"].constructFromObject(instance);
|
|
96
96
|
}
|
|
97
97
|
match++;
|
|
98
98
|
} catch (err) {
|
|
@@ -102,12 +102,12 @@ var TransactionFee = /*#__PURE__*/function () {
|
|
|
102
102
|
try {
|
|
103
103
|
if (instance instanceof _TransactionFixedFee["default"]) {
|
|
104
104
|
this.actualInstance = instance;
|
|
105
|
-
} else if (_TransactionFixedFee["default"].validateJSON(instance)) {
|
|
105
|
+
} else if (!!_TransactionFixedFee["default"].validateJSON && _TransactionFixedFee["default"].validateJSON(instance)) {
|
|
106
106
|
// plain JS object
|
|
107
107
|
// create TransactionFixedFee from JS object
|
|
108
108
|
this.actualInstance = _TransactionFixedFee["default"].constructFromObject(instance);
|
|
109
|
-
} else {
|
|
110
|
-
|
|
109
|
+
} else if (_TransactionFixedFee["default"].constructFromObject(instance)) {
|
|
110
|
+
this.actualInstance = _TransactionFixedFee["default"].constructFromObject(instance);
|
|
111
111
|
}
|
|
112
112
|
match++;
|
|
113
113
|
} catch (err) {
|
|
@@ -82,6 +82,9 @@ var TransactionMPCWalletSource = /*#__PURE__*/function () {
|
|
|
82
82
|
if (data.hasOwnProperty('excluded_utxos')) {
|
|
83
83
|
obj['excluded_utxos'] = _ApiClient["default"].convertToType(data['excluded_utxos'], [_TransactionUtxo["default"]]);
|
|
84
84
|
}
|
|
85
|
+
if (data.hasOwnProperty('signer_key_share_holder_group_id')) {
|
|
86
|
+
obj['signer_key_share_holder_group_id'] = _ApiClient["default"].convertToType(data['signer_key_share_holder_group_id'], 'String');
|
|
87
|
+
}
|
|
85
88
|
}
|
|
86
89
|
return obj;
|
|
87
90
|
}
|
|
@@ -159,6 +162,10 @@ var TransactionMPCWalletSource = /*#__PURE__*/function () {
|
|
|
159
162
|
}
|
|
160
163
|
;
|
|
161
164
|
}
|
|
165
|
+
// ensure the json data is a string
|
|
166
|
+
if (data['signer_key_share_holder_group_id'] && !(typeof data['signer_key_share_holder_group_id'] === 'string' || data['signer_key_share_holder_group_id'] instanceof String)) {
|
|
167
|
+
throw new Error("Expected the field `signer_key_share_holder_group_id` to be a primitive type in the JSON string but got " + data['signer_key_share_holder_group_id']);
|
|
168
|
+
}
|
|
162
169
|
return true;
|
|
163
170
|
}
|
|
164
171
|
}]);
|
|
@@ -191,4 +198,10 @@ TransactionMPCWalletSource.prototype['included_utxos'] = undefined;
|
|
|
191
198
|
* @member {Array.<module:model/TransactionUtxo>} excluded_utxos
|
|
192
199
|
*/
|
|
193
200
|
TransactionMPCWalletSource.prototype['excluded_utxos'] = undefined;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* The ID of the key share holder group that is selected to sign the transaction.
|
|
204
|
+
* @member {String} signer_key_share_holder_group_id
|
|
205
|
+
*/
|
|
206
|
+
TransactionMPCWalletSource.prototype['signer_key_share_holder_group_id'] = undefined;
|
|
194
207
|
var _default = exports["default"] = TransactionMPCWalletSource;
|
|
@@ -116,12 +116,16 @@ var TransactionRbf = /*#__PURE__*/function () {
|
|
|
116
116
|
// validate the optional field `fee`
|
|
117
117
|
if (data['fee']) {
|
|
118
118
|
// data not null
|
|
119
|
-
_TransactionRequestFee["default"].validateJSON
|
|
119
|
+
if (!!_TransactionRequestFee["default"].validateJSON) {
|
|
120
|
+
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
121
|
+
}
|
|
120
122
|
}
|
|
121
123
|
// validate the optional field `source`
|
|
122
124
|
if (data['source']) {
|
|
123
125
|
// data not null
|
|
124
|
-
_TransactionRbfSource["default"].validateJSON
|
|
126
|
+
if (!!_TransactionRbfSource["default"].validateJSON) {
|
|
127
|
+
_TransactionRbfSource["default"].validateJSON(data['source']);
|
|
128
|
+
}
|
|
125
129
|
}
|
|
126
130
|
// ensure the json data is an array
|
|
127
131
|
if (!Array.isArray(data['category_names'])) {
|
|
@@ -55,12 +55,12 @@ var TransactionRbfSource = /*#__PURE__*/function () {
|
|
|
55
55
|
try {
|
|
56
56
|
if (instance instanceof _MpcTransferSource["default"]) {
|
|
57
57
|
this.actualInstance = instance;
|
|
58
|
-
} else if (_MpcTransferSource["default"].validateJSON(instance)) {
|
|
58
|
+
} else if (!!_MpcTransferSource["default"].validateJSON && _MpcTransferSource["default"].validateJSON(instance)) {
|
|
59
59
|
// plain JS object
|
|
60
60
|
// create MpcTransferSource from JS object
|
|
61
61
|
this.actualInstance = _MpcTransferSource["default"].constructFromObject(instance);
|
|
62
|
-
} else {
|
|
63
|
-
|
|
62
|
+
} else if (_MpcTransferSource["default"].constructFromObject(instance)) {
|
|
63
|
+
this.actualInstance = _MpcTransferSource["default"].constructFromObject(instance);
|
|
64
64
|
}
|
|
65
65
|
match++;
|
|
66
66
|
} catch (err) {
|
|
@@ -57,12 +57,12 @@ var TransactionRequestFee = /*#__PURE__*/function () {
|
|
|
57
57
|
try {
|
|
58
58
|
if (instance instanceof _TransactionRequestFixedFee["default"]) {
|
|
59
59
|
this.actualInstance = instance;
|
|
60
|
-
} else if (_TransactionRequestFixedFee["default"].validateJSON(instance)) {
|
|
60
|
+
} else if (!!_TransactionRequestFixedFee["default"].validateJSON && _TransactionRequestFixedFee["default"].validateJSON(instance)) {
|
|
61
61
|
// plain JS object
|
|
62
62
|
// create TransactionRequestFixedFee from JS object
|
|
63
63
|
this.actualInstance = _TransactionRequestFixedFee["default"].constructFromObject(instance);
|
|
64
|
-
} else {
|
|
65
|
-
|
|
64
|
+
} else if (_TransactionRequestFixedFee["default"].constructFromObject(instance)) {
|
|
65
|
+
this.actualInstance = _TransactionRequestFixedFee["default"].constructFromObject(instance);
|
|
66
66
|
}
|
|
67
67
|
match++;
|
|
68
68
|
} catch (err) {
|
|
@@ -72,12 +72,12 @@ var TransactionRequestFee = /*#__PURE__*/function () {
|
|
|
72
72
|
try {
|
|
73
73
|
if (instance instanceof _TransactionRequestEvmEip1559Fee["default"]) {
|
|
74
74
|
this.actualInstance = instance;
|
|
75
|
-
} else if (_TransactionRequestEvmEip1559Fee["default"].validateJSON(instance)) {
|
|
75
|
+
} else if (!!_TransactionRequestEvmEip1559Fee["default"].validateJSON && _TransactionRequestEvmEip1559Fee["default"].validateJSON(instance)) {
|
|
76
76
|
// plain JS object
|
|
77
77
|
// create TransactionRequestEvmEip1559Fee from JS object
|
|
78
78
|
this.actualInstance = _TransactionRequestEvmEip1559Fee["default"].constructFromObject(instance);
|
|
79
|
-
} else {
|
|
80
|
-
|
|
79
|
+
} else if (_TransactionRequestEvmEip1559Fee["default"].constructFromObject(instance)) {
|
|
80
|
+
this.actualInstance = _TransactionRequestEvmEip1559Fee["default"].constructFromObject(instance);
|
|
81
81
|
}
|
|
82
82
|
match++;
|
|
83
83
|
} catch (err) {
|
|
@@ -87,12 +87,12 @@ var TransactionRequestFee = /*#__PURE__*/function () {
|
|
|
87
87
|
try {
|
|
88
88
|
if (instance instanceof _TransactionRequestEvmLegacyFee["default"]) {
|
|
89
89
|
this.actualInstance = instance;
|
|
90
|
-
} else if (_TransactionRequestEvmLegacyFee["default"].validateJSON(instance)) {
|
|
90
|
+
} else if (!!_TransactionRequestEvmLegacyFee["default"].validateJSON && _TransactionRequestEvmLegacyFee["default"].validateJSON(instance)) {
|
|
91
91
|
// plain JS object
|
|
92
92
|
// create TransactionRequestEvmLegacyFee from JS object
|
|
93
93
|
this.actualInstance = _TransactionRequestEvmLegacyFee["default"].constructFromObject(instance);
|
|
94
|
-
} else {
|
|
95
|
-
|
|
94
|
+
} else if (_TransactionRequestEvmLegacyFee["default"].constructFromObject(instance)) {
|
|
95
|
+
this.actualInstance = _TransactionRequestEvmLegacyFee["default"].constructFromObject(instance);
|
|
96
96
|
}
|
|
97
97
|
match++;
|
|
98
98
|
} catch (err) {
|
|
@@ -102,12 +102,12 @@ var TransactionRequestFee = /*#__PURE__*/function () {
|
|
|
102
102
|
try {
|
|
103
103
|
if (instance instanceof _TransactionRequestUtxoFee["default"]) {
|
|
104
104
|
this.actualInstance = instance;
|
|
105
|
-
} else if (_TransactionRequestUtxoFee["default"].validateJSON(instance)) {
|
|
105
|
+
} else if (!!_TransactionRequestUtxoFee["default"].validateJSON && _TransactionRequestUtxoFee["default"].validateJSON(instance)) {
|
|
106
106
|
// plain JS object
|
|
107
107
|
// create TransactionRequestUtxoFee from JS object
|
|
108
108
|
this.actualInstance = _TransactionRequestUtxoFee["default"].constructFromObject(instance);
|
|
109
|
-
} else {
|
|
110
|
-
|
|
109
|
+
} else if (_TransactionRequestUtxoFee["default"].constructFromObject(instance)) {
|
|
110
|
+
this.actualInstance = _TransactionRequestUtxoFee["default"].constructFromObject(instance);
|
|
111
111
|
}
|
|
112
112
|
match++;
|
|
113
113
|
} catch (err) {
|
|
@@ -54,12 +54,12 @@ var TransactionResult = /*#__PURE__*/function () {
|
|
|
54
54
|
try {
|
|
55
55
|
if (instance instanceof _TransactionSignatureResult["default"]) {
|
|
56
56
|
this.actualInstance = instance;
|
|
57
|
-
} else if (_TransactionSignatureResult["default"].validateJSON(instance)) {
|
|
57
|
+
} else if (!!_TransactionSignatureResult["default"].validateJSON && _TransactionSignatureResult["default"].validateJSON(instance)) {
|
|
58
58
|
// plain JS object
|
|
59
59
|
// create TransactionSignatureResult from JS object
|
|
60
60
|
this.actualInstance = _TransactionSignatureResult["default"].constructFromObject(instance);
|
|
61
|
-
} else {
|
|
62
|
-
|
|
61
|
+
} else if (_TransactionSignatureResult["default"].constructFromObject(instance)) {
|
|
62
|
+
this.actualInstance = _TransactionSignatureResult["default"].constructFromObject(instance);
|
|
63
63
|
}
|
|
64
64
|
match++;
|
|
65
65
|
} catch (err) {
|
|
@@ -121,7 +121,9 @@ var TransactionSmartContractSafeWalletSource = /*#__PURE__*/function () {
|
|
|
121
121
|
// validate the optional field `delegate`
|
|
122
122
|
if (data['delegate']) {
|
|
123
123
|
// data not null
|
|
124
|
-
_CoboSafeDelegate["default"].validateJSON
|
|
124
|
+
if (!!_CoboSafeDelegate["default"].validateJSON) {
|
|
125
|
+
_CoboSafeDelegate["default"].validateJSON(data['delegate']);
|
|
126
|
+
}
|
|
125
127
|
}
|
|
126
128
|
return true;
|
|
127
129
|
}
|
|
@@ -65,12 +65,12 @@ var TransactionSource = /*#__PURE__*/function () {
|
|
|
65
65
|
try {
|
|
66
66
|
if (instance instanceof _TransactionCustodialAssetWalletSource["default"]) {
|
|
67
67
|
this.actualInstance = instance;
|
|
68
|
-
} else if (_TransactionCustodialAssetWalletSource["default"].validateJSON(instance)) {
|
|
68
|
+
} else if (!!_TransactionCustodialAssetWalletSource["default"].validateJSON && _TransactionCustodialAssetWalletSource["default"].validateJSON(instance)) {
|
|
69
69
|
// plain JS object
|
|
70
70
|
// create TransactionCustodialAssetWalletSource from JS object
|
|
71
71
|
this.actualInstance = _TransactionCustodialAssetWalletSource["default"].constructFromObject(instance);
|
|
72
|
-
} else {
|
|
73
|
-
|
|
72
|
+
} else if (_TransactionCustodialAssetWalletSource["default"].constructFromObject(instance)) {
|
|
73
|
+
this.actualInstance = _TransactionCustodialAssetWalletSource["default"].constructFromObject(instance);
|
|
74
74
|
}
|
|
75
75
|
match++;
|
|
76
76
|
} catch (err) {
|
|
@@ -80,12 +80,12 @@ var TransactionSource = /*#__PURE__*/function () {
|
|
|
80
80
|
try {
|
|
81
81
|
if (instance instanceof _TransactionMPCWalletSource["default"]) {
|
|
82
82
|
this.actualInstance = instance;
|
|
83
|
-
} else if (_TransactionMPCWalletSource["default"].validateJSON(instance)) {
|
|
83
|
+
} else if (!!_TransactionMPCWalletSource["default"].validateJSON && _TransactionMPCWalletSource["default"].validateJSON(instance)) {
|
|
84
84
|
// plain JS object
|
|
85
85
|
// create TransactionMPCWalletSource from JS object
|
|
86
86
|
this.actualInstance = _TransactionMPCWalletSource["default"].constructFromObject(instance);
|
|
87
|
-
} else {
|
|
88
|
-
|
|
87
|
+
} else if (_TransactionMPCWalletSource["default"].constructFromObject(instance)) {
|
|
88
|
+
this.actualInstance = _TransactionMPCWalletSource["default"].constructFromObject(instance);
|
|
89
89
|
}
|
|
90
90
|
match++;
|
|
91
91
|
} catch (err) {
|
|
@@ -95,12 +95,12 @@ var TransactionSource = /*#__PURE__*/function () {
|
|
|
95
95
|
try {
|
|
96
96
|
if (instance instanceof _TransactionSmartContractSafeWalletSource["default"]) {
|
|
97
97
|
this.actualInstance = instance;
|
|
98
|
-
} else if (_TransactionSmartContractSafeWalletSource["default"].validateJSON(instance)) {
|
|
98
|
+
} else if (!!_TransactionSmartContractSafeWalletSource["default"].validateJSON && _TransactionSmartContractSafeWalletSource["default"].validateJSON(instance)) {
|
|
99
99
|
// plain JS object
|
|
100
100
|
// create TransactionSmartContractSafeWalletSource from JS object
|
|
101
101
|
this.actualInstance = _TransactionSmartContractSafeWalletSource["default"].constructFromObject(instance);
|
|
102
|
-
} else {
|
|
103
|
-
|
|
102
|
+
} else if (_TransactionSmartContractSafeWalletSource["default"].constructFromObject(instance)) {
|
|
103
|
+
this.actualInstance = _TransactionSmartContractSafeWalletSource["default"].constructFromObject(instance);
|
|
104
104
|
}
|
|
105
105
|
match++;
|
|
106
106
|
} catch (err) {
|
|
@@ -110,12 +110,12 @@ var TransactionSource = /*#__PURE__*/function () {
|
|
|
110
110
|
try {
|
|
111
111
|
if (instance instanceof _TransactionExchangeWalletSource["default"]) {
|
|
112
112
|
this.actualInstance = instance;
|
|
113
|
-
} else if (_TransactionExchangeWalletSource["default"].validateJSON(instance)) {
|
|
113
|
+
} else if (!!_TransactionExchangeWalletSource["default"].validateJSON && _TransactionExchangeWalletSource["default"].validateJSON(instance)) {
|
|
114
114
|
// plain JS object
|
|
115
115
|
// create TransactionExchangeWalletSource from JS object
|
|
116
116
|
this.actualInstance = _TransactionExchangeWalletSource["default"].constructFromObject(instance);
|
|
117
|
-
} else {
|
|
118
|
-
|
|
117
|
+
} else if (_TransactionExchangeWalletSource["default"].constructFromObject(instance)) {
|
|
118
|
+
this.actualInstance = _TransactionExchangeWalletSource["default"].constructFromObject(instance);
|
|
119
119
|
}
|
|
120
120
|
match++;
|
|
121
121
|
} catch (err) {
|
|
@@ -125,12 +125,12 @@ var TransactionSource = /*#__PURE__*/function () {
|
|
|
125
125
|
try {
|
|
126
126
|
if (instance instanceof _TransactionDepositFromAddressSource["default"]) {
|
|
127
127
|
this.actualInstance = instance;
|
|
128
|
-
} else if (_TransactionDepositFromAddressSource["default"].validateJSON(instance)) {
|
|
128
|
+
} else if (!!_TransactionDepositFromAddressSource["default"].validateJSON && _TransactionDepositFromAddressSource["default"].validateJSON(instance)) {
|
|
129
129
|
// plain JS object
|
|
130
130
|
// create TransactionDepositFromAddressSource from JS object
|
|
131
131
|
this.actualInstance = _TransactionDepositFromAddressSource["default"].constructFromObject(instance);
|
|
132
|
-
} else {
|
|
133
|
-
|
|
132
|
+
} else if (_TransactionDepositFromAddressSource["default"].constructFromObject(instance)) {
|
|
133
|
+
this.actualInstance = _TransactionDepositFromAddressSource["default"].constructFromObject(instance);
|
|
134
134
|
}
|
|
135
135
|
match++;
|
|
136
136
|
} catch (err) {
|
|
@@ -140,12 +140,12 @@ var TransactionSource = /*#__PURE__*/function () {
|
|
|
140
140
|
try {
|
|
141
141
|
if (instance instanceof _TransactionDepositFromWalletSource["default"]) {
|
|
142
142
|
this.actualInstance = instance;
|
|
143
|
-
} else if (_TransactionDepositFromWalletSource["default"].validateJSON(instance)) {
|
|
143
|
+
} else if (!!_TransactionDepositFromWalletSource["default"].validateJSON && _TransactionDepositFromWalletSource["default"].validateJSON(instance)) {
|
|
144
144
|
// plain JS object
|
|
145
145
|
// create TransactionDepositFromWalletSource from JS object
|
|
146
146
|
this.actualInstance = _TransactionDepositFromWalletSource["default"].constructFromObject(instance);
|
|
147
|
-
} else {
|
|
148
|
-
|
|
147
|
+
} else if (_TransactionDepositFromWalletSource["default"].constructFromObject(instance)) {
|
|
148
|
+
this.actualInstance = _TransactionDepositFromWalletSource["default"].constructFromObject(instance);
|
|
149
149
|
}
|
|
150
150
|
match++;
|
|
151
151
|
} catch (err) {
|
|
@@ -155,12 +155,12 @@ var TransactionSource = /*#__PURE__*/function () {
|
|
|
155
155
|
try {
|
|
156
156
|
if (instance instanceof _TransactionDepositFromLoopSource["default"]) {
|
|
157
157
|
this.actualInstance = instance;
|
|
158
|
-
} else if (_TransactionDepositFromLoopSource["default"].validateJSON(instance)) {
|
|
158
|
+
} else if (!!_TransactionDepositFromLoopSource["default"].validateJSON && _TransactionDepositFromLoopSource["default"].validateJSON(instance)) {
|
|
159
159
|
// plain JS object
|
|
160
160
|
// create TransactionDepositFromLoopSource from JS object
|
|
161
161
|
this.actualInstance = _TransactionDepositFromLoopSource["default"].constructFromObject(instance);
|
|
162
|
-
} else {
|
|
163
|
-
|
|
162
|
+
} else if (_TransactionDepositFromLoopSource["default"].constructFromObject(instance)) {
|
|
163
|
+
this.actualInstance = _TransactionDepositFromLoopSource["default"].constructFromObject(instance);
|
|
164
164
|
}
|
|
165
165
|
match++;
|
|
166
166
|
} catch (err) {
|
|
@@ -251,6 +251,12 @@ TransactionSource.prototype['included_utxos'] = undefined;
|
|
|
251
251
|
*/
|
|
252
252
|
TransactionSource.prototype['excluded_utxos'] = undefined;
|
|
253
253
|
|
|
254
|
+
/**
|
|
255
|
+
* The ID of the key share holder group that is selected to sign the transaction.
|
|
256
|
+
* @member {String} signer_key_share_holder_group_id
|
|
257
|
+
*/
|
|
258
|
+
TransactionSource.prototype['signer_key_share_holder_group_id'] = undefined;
|
|
259
|
+
|
|
254
260
|
/**
|
|
255
261
|
* @member {module:model/CoboSafeDelegate} delegate
|
|
256
262
|
*/
|
|
@@ -263,9 +269,9 @@ TransactionSource.prototype['exchange_id'] = undefined;
|
|
|
263
269
|
|
|
264
270
|
/**
|
|
265
271
|
* The exchange trading account or a sub-wallet ID.
|
|
266
|
-
* @member {String}
|
|
272
|
+
* @member {String} trading_account_type
|
|
267
273
|
*/
|
|
268
|
-
TransactionSource.prototype['
|
|
274
|
+
TransactionSource.prototype['trading_account_type'] = undefined;
|
|
269
275
|
|
|
270
276
|
/**
|
|
271
277
|
* @member {module:model/WalletType} wallet_type
|
|
@@ -100,6 +100,11 @@ var TransactionSubStatus = exports["default"] = /*#__PURE__*/function () {
|
|
|
100
100
|
* @const
|
|
101
101
|
*/
|
|
102
102
|
_defineProperty(this, "PendingWaitSigner", "PendingWaitSigner");
|
|
103
|
+
/**
|
|
104
|
+
* value: "PendingApprovalStart"
|
|
105
|
+
* @const
|
|
106
|
+
*/
|
|
107
|
+
_defineProperty(this, "PendingApprovalStart", "PendingApprovalStart");
|
|
103
108
|
/**
|
|
104
109
|
* value: "FailedBySigner"
|
|
105
110
|
* @const
|
|
@@ -114,7 +114,9 @@ var TransactionTransferToAddressDestination = /*#__PURE__*/function () {
|
|
|
114
114
|
}
|
|
115
115
|
if (data['account_output']) {
|
|
116
116
|
// data not null
|
|
117
|
-
_TransactionTransferToAddressDestinationAccountOutput["default"].validateJSON
|
|
117
|
+
if (!!_TransactionTransferToAddressDestinationAccountOutput["default"].validateJSON) {
|
|
118
|
+
_TransactionTransferToAddressDestinationAccountOutput["default"].validateJSON(data['account_output']);
|
|
119
|
+
}
|
|
118
120
|
}
|
|
119
121
|
if (data['utxo_outputs']) {
|
|
120
122
|
// data not null
|
|
@@ -106,7 +106,7 @@ TransactionTransferToAddressDestinationAccountOutput.prototype['address'] = unde
|
|
|
106
106
|
TransactionTransferToAddressDestinationAccountOutput.prototype['memo'] = undefined;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
* The
|
|
109
|
+
* The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
|
|
110
110
|
* @member {String} amount
|
|
111
111
|
*/
|
|
112
112
|
TransactionTransferToAddressDestinationAccountOutput.prototype['amount'] = undefined;
|
|
@@ -100,7 +100,7 @@ var TransactionTransferToAddressDestinationUtxoOutputsInner = /*#__PURE__*/funct
|
|
|
100
100
|
TransactionTransferToAddressDestinationUtxoOutputsInner.prototype['address'] = undefined;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
|
-
* The
|
|
103
|
+
* The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
|
|
104
104
|
* @member {String} amount
|
|
105
105
|
*/
|
|
106
106
|
TransactionTransferToAddressDestinationUtxoOutputsInner.prototype['amount'] = undefined;
|
|
@@ -37,7 +37,7 @@ var TransactionTransferToWalletDestination = /*#__PURE__*/function () {
|
|
|
37
37
|
* @alias module:model/TransactionTransferToWalletDestination
|
|
38
38
|
* @param destination_type {module:model/TransactionDestinationType}
|
|
39
39
|
* @param wallet_id {String} The wallet ID.
|
|
40
|
-
* @param amount {String} The
|
|
40
|
+
* @param amount {String} The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
|
|
41
41
|
*/
|
|
42
42
|
function TransactionTransferToWalletDestination(destination_type, wallet_id, amount) {
|
|
43
43
|
_classCallCheck(this, TransactionTransferToWalletDestination);
|
|
@@ -75,8 +75,8 @@ var TransactionTransferToWalletDestination = /*#__PURE__*/function () {
|
|
|
75
75
|
if (data.hasOwnProperty('wallet_id')) {
|
|
76
76
|
obj['wallet_id'] = _ApiClient["default"].convertToType(data['wallet_id'], 'String');
|
|
77
77
|
}
|
|
78
|
-
if (data.hasOwnProperty('
|
|
79
|
-
obj['
|
|
78
|
+
if (data.hasOwnProperty('trading_account_type')) {
|
|
79
|
+
obj['trading_account_type'] = _ApiClient["default"].convertToType(data['trading_account_type'], 'String');
|
|
80
80
|
}
|
|
81
81
|
if (data.hasOwnProperty('exchange_id')) {
|
|
82
82
|
obj['exchange_id'] = _ExchangeId["default"].constructFromObject(data['exchange_id']);
|
|
@@ -116,8 +116,8 @@ var TransactionTransferToWalletDestination = /*#__PURE__*/function () {
|
|
|
116
116
|
throw new Error("Expected the field `wallet_id` to be a primitive type in the JSON string but got " + data['wallet_id']);
|
|
117
117
|
}
|
|
118
118
|
// ensure the json data is a string
|
|
119
|
-
if (data['
|
|
120
|
-
throw new Error("Expected the field `
|
|
119
|
+
if (data['trading_account_type'] && !(typeof data['trading_account_type'] === 'string' || data['trading_account_type'] instanceof String)) {
|
|
120
|
+
throw new Error("Expected the field `trading_account_type` to be a primitive type in the JSON string but got " + data['trading_account_type']);
|
|
121
121
|
}
|
|
122
122
|
// ensure the json data is a string
|
|
123
123
|
if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
|
|
@@ -141,10 +141,10 @@ TransactionTransferToWalletDestination.prototype['destination_type'] = undefined
|
|
|
141
141
|
TransactionTransferToWalletDestination.prototype['wallet_id'] = undefined;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
|
-
* The
|
|
145
|
-
* @member {String}
|
|
144
|
+
* The trading account type.
|
|
145
|
+
* @member {String} trading_account_type
|
|
146
146
|
*/
|
|
147
|
-
TransactionTransferToWalletDestination.prototype['
|
|
147
|
+
TransactionTransferToWalletDestination.prototype['trading_account_type'] = undefined;
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* @member {module:model/ExchangeId} exchange_id
|
|
@@ -152,7 +152,7 @@ TransactionTransferToWalletDestination.prototype['sub_wallet_id'] = undefined;
|
|
|
152
152
|
TransactionTransferToWalletDestination.prototype['exchange_id'] = undefined;
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
|
-
* The
|
|
155
|
+
* The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
|
|
156
156
|
* @member {String} amount
|
|
157
157
|
*/
|
|
158
158
|
TransactionTransferToWalletDestination.prototype['amount'] = undefined;
|