@cobo/cobo-waas2 1.1.2 → 1.2.1
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/PreRequestScript.js +640 -0
- 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/AddressInfo.js +1 -1
- package/dist/model/AddressTransferDestination.js +3 -3
- package/dist/model/AddressTransferDestinationAccountOutput.js +2 -2
- package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +1 -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 +27 -2
- package/dist/model/ContractCallDestination.js +24 -3
- package/dist/model/ContractCallSource.js +41 -4
- package/dist/model/CreateSmartContractWalletParams.js +23 -2
- package/dist/model/CreateStakeActivity.js +14 -1
- package/dist/model/CreateStakeActivityExtra.js +57 -6
- package/dist/model/CreateTssRequestRequest.js +13 -0
- package/dist/model/CreateUnstakeActivity.js +13 -0
- package/dist/model/CreateWalletParams.js +51 -6
- package/dist/model/CreateWithdrawActivity.js +13 -0
- package/dist/model/CreatedWalletInfo.js +63 -6
- package/dist/model/EstimateFeeParams.js +37 -4
- package/dist/model/EstimateStakeFee.js +19 -1
- package/dist/model/EstimateUnstakeFee.js +18 -0
- package/dist/model/EstimateWithdrawFee.js +18 -0
- package/dist/model/EstimatedFee.js +65 -8
- package/dist/model/EvmContractCallDestination.js +1 -1
- 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 +65 -8
- package/dist/model/GetToken200Response.js +4 -4
- package/dist/model/KeyShareHolder.js +13 -0
- package/dist/model/ListAssetBalancesForExchangeWallet200Response.js +123 -0
- package/dist/model/ListExchanges200ResponseInner.js +122 -0
- package/dist/model/ListSupportedAssetsForExchange200Response.js +123 -0
- package/dist/model/MPCWalletInfo.js +26 -0
- package/dist/model/MessageSignDestination.js +37 -4
- package/dist/model/MessageSignSource.js +27 -2
- package/dist/model/PoolDetailsAllOfValidatorsInfo.js +20 -4
- package/dist/model/RefreshToken200Response.js +135 -0
- package/dist/model/RefreshTokenRequest.js +2 -2
- package/dist/model/SmartContractWalletInfo.js +23 -2
- package/dist/model/SmartContractWalletType.js +2 -2
- package/dist/model/StakingSource.js +41 -4
- package/dist/model/SubWalletAssetBalance.js +10 -10
- package/dist/model/TSSRequest.js +23 -1
- package/dist/model/TSSRequestWebhookEventData.js +263 -0
- 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 +112 -19
- package/dist/model/TransactionEvmContractDestination.js +1 -1
- package/dist/model/TransactionExchangeWalletSource.js +6 -6
- package/dist/model/TransactionFee.js +65 -8
- package/dist/model/TransactionMPCWalletSource.js +13 -0
- package/dist/model/TransactionRbfSource.js +27 -2
- package/dist/model/TransactionRequestFee.js +65 -8
- package/dist/model/TransactionResult.js +23 -2
- package/dist/model/TransactionSource.js +123 -16
- package/dist/model/TransactionSubStatus.js +5 -0
- 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 +8 -3
- package/dist/model/TransferDestination.js +43 -10
- package/dist/model/TransferParams.js +2 -2
- package/dist/model/TransferSource.js +76 -11
- package/dist/model/UpdateWalletParams.js +65 -8
- package/dist/model/WalletInfo.js +77 -8
- package/dist/model/WebhookEventData.js +84 -17
- package/dist/model/WebhookEventDataType.js +7 -2
- 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
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _ChainInfo = _interopRequireDefault(require("../model/ChainInfo"));
|
|
9
|
+
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
10
|
+
var _ExchangeId = _interopRequireDefault(require("../model/ExchangeId"));
|
|
11
|
+
var _ListAssetBalancesForExchangeWallet200Response = _interopRequireDefault(require("../model/ListAssetBalancesForExchangeWallet200Response"));
|
|
12
|
+
var _ListExchanges200ResponseInner = _interopRequireDefault(require("../model/ListExchanges200ResponseInner"));
|
|
13
|
+
var _ListSupportedAssetsForExchange200Response = _interopRequireDefault(require("../model/ListSupportedAssetsForExchange200Response"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
16
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
17
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
18
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
20
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
21
|
+
* Cobo Wallet as a Service 2.0
|
|
22
|
+
*
|
|
23
|
+
* Contact: support@cobo.com
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* WalletsExchangeWallet service.
|
|
32
|
+
* @module api/WalletsExchangeWalletApi
|
|
33
|
+
*/
|
|
34
|
+
var WalletsExchangeWalletApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new WalletsExchangeWalletApi.
|
|
37
|
+
* @alias module:api/WalletsExchangeWalletApi
|
|
38
|
+
* @class
|
|
39
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
40
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
41
|
+
*/
|
|
42
|
+
function WalletsExchangeWalletApi(apiClient) {
|
|
43
|
+
_classCallCheck(this, WalletsExchangeWalletApi);
|
|
44
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* List asset balances
|
|
49
|
+
* This operation retrieves the asset balances in a specified Exchange Wallet. You can filter the results by trading account type or asset ID.
|
|
50
|
+
* @param {String} wallet_id The wallet ID.
|
|
51
|
+
* @param {Object} opts Optional parameters
|
|
52
|
+
* @param {String} [trading_account_types] A list of trading account types, separated by comma. You can get the the supported trading account types of an exchange by calling [List supported exchanges](/v2/api-references/wallets--exchange-wallet/list-supported-exchanges).
|
|
53
|
+
* @param {String} [asset_ids] (This concept applies to Exchange Wallets only) A list of asset IDs, separated by comma. An asset ID is the unique identifier of the asset held within your linked exchange account.
|
|
54
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
55
|
+
* @param {String} [before] An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
|
|
56
|
+
* @param {String} [after] An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
|
|
57
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAssetBalancesForExchangeWallet200Response} and HTTP response
|
|
58
|
+
*/
|
|
59
|
+
return _createClass(WalletsExchangeWalletApi, [{
|
|
60
|
+
key: "listAssetBalancesForExchangeWalletWithHttpInfo",
|
|
61
|
+
value: function listAssetBalancesForExchangeWalletWithHttpInfo(wallet_id, opts) {
|
|
62
|
+
opts = opts || {};
|
|
63
|
+
var postBody = null;
|
|
64
|
+
if (postBody && postBody.toJSON) {
|
|
65
|
+
postBody = postBody.toJSON();
|
|
66
|
+
}
|
|
67
|
+
// verify the required parameter 'wallet_id' is set
|
|
68
|
+
if (wallet_id === undefined || wallet_id === null) {
|
|
69
|
+
throw new Error("Missing the required parameter 'wallet_id' when calling listAssetBalancesForExchangeWallet");
|
|
70
|
+
}
|
|
71
|
+
var pathParams = {
|
|
72
|
+
'wallet_id': wallet_id
|
|
73
|
+
};
|
|
74
|
+
var queryParams = {
|
|
75
|
+
'trading_account_types': opts['trading_account_types'],
|
|
76
|
+
'asset_ids': opts['asset_ids'],
|
|
77
|
+
'limit': opts['limit'],
|
|
78
|
+
'before': opts['before'],
|
|
79
|
+
'after': opts['after']
|
|
80
|
+
};
|
|
81
|
+
var headerParams = {};
|
|
82
|
+
var formParams = {};
|
|
83
|
+
var authNames = ['CoboAuth'];
|
|
84
|
+
var contentTypes = [];
|
|
85
|
+
var accepts = ['application/json'];
|
|
86
|
+
var returnType = _ListAssetBalancesForExchangeWallet200Response["default"];
|
|
87
|
+
return this.apiClient.callApi('/wallets/{wallet_id}/exchanges/assets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* List asset balances
|
|
92
|
+
* This operation retrieves the asset balances in a specified Exchange Wallet. You can filter the results by trading account type or asset ID.
|
|
93
|
+
* @param {String} wallet_id The wallet ID.
|
|
94
|
+
* @param {Object} opts Optional parameters
|
|
95
|
+
* @param {String} opts.trading_account_types A list of trading account types, separated by comma. You can get the the supported trading account types of an exchange by calling [List supported exchanges](/v2/api-references/wallets--exchange-wallet/list-supported-exchanges).
|
|
96
|
+
* @param {String} opts.asset_ids (This concept applies to Exchange Wallets only) A list of asset IDs, separated by comma. An asset ID is the unique identifier of the asset held within your linked exchange account.
|
|
97
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
98
|
+
* @param {String} opts.before An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
|
|
99
|
+
* @param {String} opts.after An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
|
|
100
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAssetBalancesForExchangeWallet200Response}
|
|
101
|
+
*/
|
|
102
|
+
}, {
|
|
103
|
+
key: "listAssetBalancesForExchangeWallet",
|
|
104
|
+
value: function listAssetBalancesForExchangeWallet(wallet_id, opts) {
|
|
105
|
+
return this.listAssetBalancesForExchangeWalletWithHttpInfo(wallet_id, opts).then(function (response_and_data) {
|
|
106
|
+
return response_and_data.data;
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* List supported exchanges
|
|
112
|
+
* This operation retrieves the information about the exchanges supported by Cobo's Exchange Wallets, including exchange IDs and trading account types.
|
|
113
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/ListExchanges200ResponseInner>} and HTTP response
|
|
114
|
+
*/
|
|
115
|
+
}, {
|
|
116
|
+
key: "listExchangesWithHttpInfo",
|
|
117
|
+
value: function listExchangesWithHttpInfo() {
|
|
118
|
+
var postBody = null;
|
|
119
|
+
if (postBody && postBody.toJSON) {
|
|
120
|
+
postBody = postBody.toJSON();
|
|
121
|
+
}
|
|
122
|
+
var pathParams = {};
|
|
123
|
+
var queryParams = {};
|
|
124
|
+
var headerParams = {};
|
|
125
|
+
var formParams = {};
|
|
126
|
+
var authNames = ['CoboAuth'];
|
|
127
|
+
var contentTypes = [];
|
|
128
|
+
var accepts = ['application/json'];
|
|
129
|
+
var returnType = [_ListExchanges200ResponseInner["default"]];
|
|
130
|
+
return this.apiClient.callApi('/wallets/exchanges', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* List supported exchanges
|
|
135
|
+
* This operation retrieves the information about the exchanges supported by Cobo's Exchange Wallets, including exchange IDs and trading account types.
|
|
136
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/ListExchanges200ResponseInner>}
|
|
137
|
+
*/
|
|
138
|
+
}, {
|
|
139
|
+
key: "listExchanges",
|
|
140
|
+
value: function listExchanges() {
|
|
141
|
+
return this.listExchangesWithHttpInfo().then(function (response_and_data) {
|
|
142
|
+
return response_and_data.data;
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* List supported assets
|
|
148
|
+
* This operation retrieves all the assets supported by a specified exchange.
|
|
149
|
+
* @param {module:model/ExchangeId} exchange_id The ID of the exchange. Possible values include: - `binance`: Binance. - `okx`: OKX. - `deribit`: Deribit. - `bybit`: Bybit. - `gate`: Gate.io - `bitget'`: Bitget
|
|
150
|
+
* @param {Object} opts Optional parameters
|
|
151
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
152
|
+
* @param {String} [before] An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
|
|
153
|
+
* @param {String} [after] An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
|
|
154
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListSupportedAssetsForExchange200Response} and HTTP response
|
|
155
|
+
*/
|
|
156
|
+
}, {
|
|
157
|
+
key: "listSupportedAssetsForExchangeWithHttpInfo",
|
|
158
|
+
value: function listSupportedAssetsForExchangeWithHttpInfo(exchange_id, opts) {
|
|
159
|
+
opts = opts || {};
|
|
160
|
+
var postBody = null;
|
|
161
|
+
if (postBody && postBody.toJSON) {
|
|
162
|
+
postBody = postBody.toJSON();
|
|
163
|
+
}
|
|
164
|
+
// verify the required parameter 'exchange_id' is set
|
|
165
|
+
if (exchange_id === undefined || exchange_id === null) {
|
|
166
|
+
throw new Error("Missing the required parameter 'exchange_id' when calling listSupportedAssetsForExchange");
|
|
167
|
+
}
|
|
168
|
+
var pathParams = {
|
|
169
|
+
'exchange_id': exchange_id
|
|
170
|
+
};
|
|
171
|
+
var queryParams = {
|
|
172
|
+
'limit': opts['limit'],
|
|
173
|
+
'before': opts['before'],
|
|
174
|
+
'after': opts['after']
|
|
175
|
+
};
|
|
176
|
+
var headerParams = {};
|
|
177
|
+
var formParams = {};
|
|
178
|
+
var authNames = ['CoboAuth'];
|
|
179
|
+
var contentTypes = [];
|
|
180
|
+
var accepts = ['application/json'];
|
|
181
|
+
var returnType = _ListSupportedAssetsForExchange200Response["default"];
|
|
182
|
+
return this.apiClient.callApi('/wallets/exchanges/{exchange_id}/assets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* List supported assets
|
|
187
|
+
* This operation retrieves all the assets supported by a specified exchange.
|
|
188
|
+
* @param {module:model/ExchangeId} exchange_id The ID of the exchange. Possible values include: - `binance`: Binance. - `okx`: OKX. - `deribit`: Deribit. - `bybit`: Bybit. - `gate`: Gate.io - `bitget'`: Bitget
|
|
189
|
+
* @param {Object} opts Optional parameters
|
|
190
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
191
|
+
* @param {String} opts.before An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
|
|
192
|
+
* @param {String} opts.after An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
|
|
193
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSupportedAssetsForExchange200Response}
|
|
194
|
+
*/
|
|
195
|
+
}, {
|
|
196
|
+
key: "listSupportedAssetsForExchange",
|
|
197
|
+
value: function listSupportedAssetsForExchange(exchange_id, opts) {
|
|
198
|
+
return this.listSupportedAssetsForExchangeWithHttpInfo(exchange_id, opts).then(function (response_and_data) {
|
|
199
|
+
return response_and_data.data;
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* List supported chains
|
|
205
|
+
* This operation retrieves all the chains supported by a specified exchange for a given asset. You can use this operation to confirm whether you can transfer an asset from or to your Exchange Wallet when using a specific chain.
|
|
206
|
+
* @param {module:model/ExchangeId} exchange_id The ID of the exchange. Possible values include: - `binance`: Binance. - `okx`: OKX. - `deribit`: Deribit. - `bybit`: Bybit. - `gate`: Gate.io - `bitget'`: Bitget
|
|
207
|
+
* @param {String} asset_id (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. You can get the ID of the assets supported by an exchanges by calling [List supported assets](/v2/api-references/wallets--exchange-wallet/list-supported-assets).
|
|
208
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/ChainInfo>} and HTTP response
|
|
209
|
+
*/
|
|
210
|
+
}, {
|
|
211
|
+
key: "listSupportedChainsForExchangeWithHttpInfo",
|
|
212
|
+
value: function listSupportedChainsForExchangeWithHttpInfo(exchange_id, asset_id) {
|
|
213
|
+
var postBody = null;
|
|
214
|
+
if (postBody && postBody.toJSON) {
|
|
215
|
+
postBody = postBody.toJSON();
|
|
216
|
+
}
|
|
217
|
+
// verify the required parameter 'exchange_id' is set
|
|
218
|
+
if (exchange_id === undefined || exchange_id === null) {
|
|
219
|
+
throw new Error("Missing the required parameter 'exchange_id' when calling listSupportedChainsForExchange");
|
|
220
|
+
}
|
|
221
|
+
// verify the required parameter 'asset_id' is set
|
|
222
|
+
if (asset_id === undefined || asset_id === null) {
|
|
223
|
+
throw new Error("Missing the required parameter 'asset_id' when calling listSupportedChainsForExchange");
|
|
224
|
+
}
|
|
225
|
+
var pathParams = {
|
|
226
|
+
'exchange_id': exchange_id,
|
|
227
|
+
'asset_id': asset_id
|
|
228
|
+
};
|
|
229
|
+
var queryParams = {};
|
|
230
|
+
var headerParams = {};
|
|
231
|
+
var formParams = {};
|
|
232
|
+
var authNames = ['CoboAuth'];
|
|
233
|
+
var contentTypes = [];
|
|
234
|
+
var accepts = ['application/json'];
|
|
235
|
+
var returnType = [_ChainInfo["default"]];
|
|
236
|
+
return this.apiClient.callApi('/wallets/exchanges/{exchange_id}/assets/{asset_id}/chains', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* List supported chains
|
|
241
|
+
* This operation retrieves all the chains supported by a specified exchange for a given asset. You can use this operation to confirm whether you can transfer an asset from or to your Exchange Wallet when using a specific chain.
|
|
242
|
+
* @param {module:model/ExchangeId} exchange_id The ID of the exchange. Possible values include: - `binance`: Binance. - `okx`: OKX. - `deribit`: Deribit. - `bybit`: Bybit. - `gate`: Gate.io - `bitget'`: Bitget
|
|
243
|
+
* @param {String} asset_id (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. You can get the ID of the assets supported by an exchanges by calling [List supported assets](/v2/api-references/wallets--exchange-wallet/list-supported-assets).
|
|
244
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/ChainInfo>}
|
|
245
|
+
*/
|
|
246
|
+
}, {
|
|
247
|
+
key: "listSupportedChainsForExchange",
|
|
248
|
+
value: function listSupportedChainsForExchange(exchange_id, asset_id) {
|
|
249
|
+
return this.listSupportedChainsForExchangeWithHttpInfo(exchange_id, asset_id).then(function (response_and_data) {
|
|
250
|
+
return response_and_data.data;
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
}]);
|
|
254
|
+
}();
|
|
@@ -160,7 +160,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
162
|
* Create project
|
|
163
|
-
* This operation creates a project. <
|
|
163
|
+
* This operation creates a project. <Note>This operation applies to MPC Wallets (User-Controlled Wallets) only.</Note>
|
|
164
164
|
* @param {Object} opts Optional parameters
|
|
165
165
|
* @param {module:model/CreateMpcProjectRequest} [CreateMpcProjectRequest] The request body to create a project.
|
|
166
166
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MPCProject} and HTTP response
|
|
@@ -186,7 +186,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* Create project
|
|
189
|
-
* This operation creates a project. <
|
|
189
|
+
* This operation creates a project. <Note>This operation applies to MPC Wallets (User-Controlled Wallets) only.</Note>
|
|
190
190
|
* @param {Object} opts Optional parameters
|
|
191
191
|
* @param {module:model/CreateMpcProjectRequest} opts.CreateMpcProjectRequest The request body to create a project.
|
|
192
192
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MPCProject}
|
|
@@ -393,7 +393,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
393
393
|
|
|
394
394
|
/**
|
|
395
395
|
* Get project information
|
|
396
|
-
* This operation retrieves detailed information about a project. <
|
|
396
|
+
* This operation retrieves detailed information about a project. <Note>This operation applies to MPC Wallets (User-Controlled Wallets) only.</Note>
|
|
397
397
|
* @param {String} project_id The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
398
398
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MPCProject} and HTTP response
|
|
399
399
|
*/
|
|
@@ -423,7 +423,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
423
423
|
|
|
424
424
|
/**
|
|
425
425
|
* Get project information
|
|
426
|
-
* This operation retrieves detailed information about a project. <
|
|
426
|
+
* This operation retrieves detailed information about a project. <Note>This operation applies to MPC Wallets (User-Controlled Wallets) only.</Note>
|
|
427
427
|
* @param {String} project_id The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
428
428
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MPCProject}
|
|
429
429
|
*/
|
|
@@ -628,7 +628,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
628
628
|
|
|
629
629
|
/**
|
|
630
630
|
* List all projects
|
|
631
|
-
* This operation retrieves a list of all projects. <
|
|
631
|
+
* This operation retrieves a list of all projects. <Note>This operation applies to MPC Wallets (User-Controlled Wallets) only.</Note>
|
|
632
632
|
* @param {Object} opts Optional parameters
|
|
633
633
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
634
634
|
* @param {String} [before] An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
|
|
@@ -660,7 +660,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
660
660
|
|
|
661
661
|
/**
|
|
662
662
|
* List all projects
|
|
663
|
-
* This operation retrieves a list of all projects. <
|
|
663
|
+
* This operation retrieves a list of all projects. <Note>This operation applies to MPC Wallets (User-Controlled Wallets) only.</Note>
|
|
664
664
|
* @param {Object} opts Optional parameters
|
|
665
665
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
666
666
|
* @param {String} opts.before An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
|
|
@@ -856,7 +856,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
856
856
|
|
|
857
857
|
/**
|
|
858
858
|
* Update project name
|
|
859
|
-
* This operation updates a project's name. <
|
|
859
|
+
* This operation updates a project's name. <Note>This operation applies to MPC Wallets (User-Controlled Wallets) only.</Note>
|
|
860
860
|
* @param {String} project_id The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
861
861
|
* @param {Object} opts Optional parameters
|
|
862
862
|
* @param {module:model/UpdateMpcProjectByIdRequest} [UpdateMpcProjectByIdRequest] The request body to update a project's name.
|
|
@@ -889,7 +889,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
889
889
|
|
|
890
890
|
/**
|
|
891
891
|
* Update project name
|
|
892
|
-
* This operation updates a project's name. <
|
|
892
|
+
* This operation updates a project's name. <Note>This operation applies to MPC Wallets (User-Controlled Wallets) only.</Note>
|
|
893
893
|
* @param {String} project_id The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
894
894
|
* @param {Object} opts Optional parameters
|
|
895
895
|
* @param {module:model/UpdateMpcProjectByIdRequest} opts.UpdateMpcProjectByIdRequest The request body to update a project's name.
|
package/dist/index.js
CHANGED
|
@@ -141,6 +141,18 @@ Object.defineProperty(exports, "CheckAddressValidity200Response", {
|
|
|
141
141
|
return _CheckAddressValidity200Response["default"];
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
|
+
Object.defineProperty(exports, "CheckAddressesValidity200ResponseInner", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function get() {
|
|
147
|
+
return _CheckAddressesValidity200ResponseInner["default"];
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "CheckLoopTransfers200ResponseInner", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function get() {
|
|
153
|
+
return _CheckLoopTransfers200ResponseInner["default"];
|
|
154
|
+
}
|
|
155
|
+
});
|
|
144
156
|
Object.defineProperty(exports, "CoboSafeDelegate", {
|
|
145
157
|
enumerable: true,
|
|
146
158
|
get: function get() {
|
|
@@ -609,6 +621,18 @@ Object.defineProperty(exports, "ListAddresses200Response", {
|
|
|
609
621
|
return _ListAddresses200Response["default"];
|
|
610
622
|
}
|
|
611
623
|
});
|
|
624
|
+
Object.defineProperty(exports, "ListAssetBalancesForExchangeWallet200Response", {
|
|
625
|
+
enumerable: true,
|
|
626
|
+
get: function get() {
|
|
627
|
+
return _ListAssetBalancesForExchangeWallet200Response["default"];
|
|
628
|
+
}
|
|
629
|
+
});
|
|
630
|
+
Object.defineProperty(exports, "ListExchanges200ResponseInner", {
|
|
631
|
+
enumerable: true,
|
|
632
|
+
get: function get() {
|
|
633
|
+
return _ListExchanges200ResponseInner["default"];
|
|
634
|
+
}
|
|
635
|
+
});
|
|
612
636
|
Object.defineProperty(exports, "ListKeyShareHolderGroups200Response", {
|
|
613
637
|
enumerable: true,
|
|
614
638
|
get: function get() {
|
|
@@ -627,6 +651,12 @@ Object.defineProperty(exports, "ListMpcVaults200Response", {
|
|
|
627
651
|
return _ListMpcVaults200Response["default"];
|
|
628
652
|
}
|
|
629
653
|
});
|
|
654
|
+
Object.defineProperty(exports, "ListSupportedAssetsForExchange200Response", {
|
|
655
|
+
enumerable: true,
|
|
656
|
+
get: function get() {
|
|
657
|
+
return _ListSupportedAssetsForExchange200Response["default"];
|
|
658
|
+
}
|
|
659
|
+
});
|
|
630
660
|
Object.defineProperty(exports, "ListSupportedChains200Response", {
|
|
631
661
|
enumerable: true,
|
|
632
662
|
get: function get() {
|
|
@@ -837,6 +867,12 @@ Object.defineProperty(exports, "PoolSummary", {
|
|
|
837
867
|
return _PoolSummary["default"];
|
|
838
868
|
}
|
|
839
869
|
});
|
|
870
|
+
Object.defineProperty(exports, "RefreshToken200Response", {
|
|
871
|
+
enumerable: true,
|
|
872
|
+
get: function get() {
|
|
873
|
+
return _RefreshToken200Response["default"];
|
|
874
|
+
}
|
|
875
|
+
});
|
|
840
876
|
Object.defineProperty(exports, "RefreshTokenRequest", {
|
|
841
877
|
enumerable: true,
|
|
842
878
|
get: function get() {
|
|
@@ -963,6 +999,12 @@ Object.defineProperty(exports, "TSSRequestType", {
|
|
|
963
999
|
return _TSSRequestType["default"];
|
|
964
1000
|
}
|
|
965
1001
|
});
|
|
1002
|
+
Object.defineProperty(exports, "TSSRequestWebhookEventData", {
|
|
1003
|
+
enumerable: true,
|
|
1004
|
+
get: function get() {
|
|
1005
|
+
return _TSSRequestWebhookEventData["default"];
|
|
1006
|
+
}
|
|
1007
|
+
});
|
|
966
1008
|
Object.defineProperty(exports, "TokenBalance", {
|
|
967
1009
|
enumerable: true,
|
|
968
1010
|
get: function get() {
|
|
@@ -1437,6 +1479,12 @@ Object.defineProperty(exports, "WalletsApi", {
|
|
|
1437
1479
|
return _WalletsApi["default"];
|
|
1438
1480
|
}
|
|
1439
1481
|
});
|
|
1482
|
+
Object.defineProperty(exports, "WalletsExchangeWalletApi", {
|
|
1483
|
+
enumerable: true,
|
|
1484
|
+
get: function get() {
|
|
1485
|
+
return _WalletsExchangeWalletApi["default"];
|
|
1486
|
+
}
|
|
1487
|
+
});
|
|
1440
1488
|
Object.defineProperty(exports, "WalletsMPCWalletsApi", {
|
|
1441
1489
|
enumerable: true,
|
|
1442
1490
|
get: function get() {
|
|
@@ -1515,6 +1563,8 @@ var _BaseEstimateStakingFee = _interopRequireDefault(require("./model/BaseEstima
|
|
|
1515
1563
|
var _BaseStakeExtra = _interopRequireDefault(require("./model/BaseStakeExtra"));
|
|
1516
1564
|
var _ChainInfo = _interopRequireDefault(require("./model/ChainInfo"));
|
|
1517
1565
|
var _CheckAddressValidity200Response = _interopRequireDefault(require("./model/CheckAddressValidity200Response"));
|
|
1566
|
+
var _CheckAddressesValidity200ResponseInner = _interopRequireDefault(require("./model/CheckAddressesValidity200ResponseInner"));
|
|
1567
|
+
var _CheckLoopTransfers200ResponseInner = _interopRequireDefault(require("./model/CheckLoopTransfers200ResponseInner"));
|
|
1518
1568
|
var _CoboSafeDelegate = _interopRequireDefault(require("./model/CoboSafeDelegate"));
|
|
1519
1569
|
var _CoboSafeDelegateType = _interopRequireDefault(require("./model/CoboSafeDelegateType"));
|
|
1520
1570
|
var _ContractCallDestination = _interopRequireDefault(require("./model/ContractCallDestination"));
|
|
@@ -1591,9 +1641,12 @@ var _KeyShareHolderGroupType = _interopRequireDefault(require("./model/KeyShareH
|
|
|
1591
1641
|
var _KeyShareHolderStatus = _interopRequireDefault(require("./model/KeyShareHolderStatus"));
|
|
1592
1642
|
var _KeyShareHolderType = _interopRequireDefault(require("./model/KeyShareHolderType"));
|
|
1593
1643
|
var _ListAddresses200Response = _interopRequireDefault(require("./model/ListAddresses200Response"));
|
|
1644
|
+
var _ListAssetBalancesForExchangeWallet200Response = _interopRequireDefault(require("./model/ListAssetBalancesForExchangeWallet200Response"));
|
|
1645
|
+
var _ListExchanges200ResponseInner = _interopRequireDefault(require("./model/ListExchanges200ResponseInner"));
|
|
1594
1646
|
var _ListKeyShareHolderGroups200Response = _interopRequireDefault(require("./model/ListKeyShareHolderGroups200Response"));
|
|
1595
1647
|
var _ListMpcProjects200Response = _interopRequireDefault(require("./model/ListMpcProjects200Response"));
|
|
1596
1648
|
var _ListMpcVaults200Response = _interopRequireDefault(require("./model/ListMpcVaults200Response"));
|
|
1649
|
+
var _ListSupportedAssetsForExchange200Response = _interopRequireDefault(require("./model/ListSupportedAssetsForExchange200Response"));
|
|
1597
1650
|
var _ListSupportedChains200Response = _interopRequireDefault(require("./model/ListSupportedChains200Response"));
|
|
1598
1651
|
var _ListSupportedTokens200Response = _interopRequireDefault(require("./model/ListSupportedTokens200Response"));
|
|
1599
1652
|
var _ListTokenBalancesForAddress200Response = _interopRequireDefault(require("./model/ListTokenBalancesForAddress200Response"));
|
|
@@ -1628,6 +1681,7 @@ var _Pagination = _interopRequireDefault(require("./model/Pagination"));
|
|
|
1628
1681
|
var _PoolDetails = _interopRequireDefault(require("./model/PoolDetails"));
|
|
1629
1682
|
var _PoolDetailsAllOfValidatorsInfo = _interopRequireDefault(require("./model/PoolDetailsAllOfValidatorsInfo"));
|
|
1630
1683
|
var _PoolSummary = _interopRequireDefault(require("./model/PoolSummary"));
|
|
1684
|
+
var _RefreshToken200Response = _interopRequireDefault(require("./model/RefreshToken200Response"));
|
|
1631
1685
|
var _RefreshTokenRequest = _interopRequireDefault(require("./model/RefreshTokenRequest"));
|
|
1632
1686
|
var _ReplaceType = _interopRequireDefault(require("./model/ReplaceType"));
|
|
1633
1687
|
var _RetryWebhookEventById201Response = _interopRequireDefault(require("./model/RetryWebhookEventById201Response"));
|
|
@@ -1649,6 +1703,7 @@ var _TSSGroups = _interopRequireDefault(require("./model/TSSGroups"));
|
|
|
1649
1703
|
var _TSSRequest = _interopRequireDefault(require("./model/TSSRequest"));
|
|
1650
1704
|
var _TSSRequestStatus = _interopRequireDefault(require("./model/TSSRequestStatus"));
|
|
1651
1705
|
var _TSSRequestType = _interopRequireDefault(require("./model/TSSRequestType"));
|
|
1706
|
+
var _TSSRequestWebhookEventData = _interopRequireDefault(require("./model/TSSRequestWebhookEventData"));
|
|
1652
1707
|
var _TokenBalance = _interopRequireDefault(require("./model/TokenBalance"));
|
|
1653
1708
|
var _TokenBalanceBalance = _interopRequireDefault(require("./model/TokenBalanceBalance"));
|
|
1654
1709
|
var _TokenInfo = _interopRequireDefault(require("./model/TokenInfo"));
|
|
@@ -1738,5 +1793,6 @@ var _DevelopersWebhooksApi = _interopRequireDefault(require("./api/DevelopersWeb
|
|
|
1738
1793
|
var _OAuthApi = _interopRequireDefault(require("./api/OAuthApi"));
|
|
1739
1794
|
var _TransactionsApi = _interopRequireDefault(require("./api/TransactionsApi"));
|
|
1740
1795
|
var _WalletsApi = _interopRequireDefault(require("./api/WalletsApi"));
|
|
1796
|
+
var _WalletsExchangeWalletApi = _interopRequireDefault(require("./api/WalletsExchangeWalletApi"));
|
|
1741
1797
|
var _WalletsMPCWalletsApi = _interopRequireDefault(require("./api/WalletsMPCWalletsApi"));
|
|
1742
1798
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -156,7 +156,7 @@ AddressInfo.prototype['chain_id'] = undefined;
|
|
|
156
156
|
AddressInfo.prototype['memo'] = undefined;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* The derivation path of the address. This property applies to MPC Wallets only.
|
|
159
|
+
* The derivation path of the address. This property applies to MPC Wallets only. To learn the meaning of each level in the path, see [Path levels](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#path-levels).
|
|
160
160
|
* @member {String} path
|
|
161
161
|
*/
|
|
162
162
|
AddressInfo.prototype['path'] = undefined;
|
|
@@ -34,7 +34,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
34
34
|
var AddressTransferDestination = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>AddressTransferDestination</code>.
|
|
37
|
-
* The information about the transaction destination type `Address`. Specify either the `account_output` property or the `utxo_outputs` property.
|
|
37
|
+
* The information about the transaction destination type `Address`. Specify either the `account_output` property or the `utxo_outputs` property. You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the `utxo_outputs` property to specify the destination addresses.
|
|
38
38
|
* @alias module:model/AddressTransferDestination
|
|
39
39
|
* @param destination_type {module:model/TransferDestinationType}
|
|
40
40
|
*/
|
|
@@ -171,13 +171,13 @@ AddressTransferDestination.prototype['utxo_outputs'] = undefined;
|
|
|
171
171
|
AddressTransferDestination.prototype['change_address'] = undefined;
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
|
-
* Whether the transaction request must be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must be executed as a Loop transfer. - `false`: The transaction request may not be executed as a Loop transfer.
|
|
174
|
+
* Whether the transaction request must be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must be executed as a Loop transfer. - `false`: The transaction request may not be executed as a Loop transfer. <Note>Please do not set both `force_internal` and `force_internal` as `true`.</Note>
|
|
175
175
|
* @member {Boolean} force_internal
|
|
176
176
|
*/
|
|
177
177
|
AddressTransferDestination.prototype['force_internal'] = undefined;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
|
-
* Whether the transaction request must not be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must not be executed as a Loop transfer. - `false`: The transaction request can be executed as a Loop transfer.
|
|
180
|
+
* Whether the transaction request must not be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must not be executed as a Loop transfer. - `false`: The transaction request can be executed as a Loop transfer. <Note>Please do not set both `force_internal` and `force_internal` as `true`.</Note>
|
|
181
181
|
* @member {Boolean} force_external
|
|
182
182
|
*/
|
|
183
183
|
AddressTransferDestination.prototype['force_external'] = undefined;
|
|
@@ -33,7 +33,7 @@ var AddressTransferDestinationAccountOutput = /*#__PURE__*/function () {
|
|
|
33
33
|
* Constructs a new <code>AddressTransferDestinationAccountOutput</code>.
|
|
34
34
|
* @alias module:model/AddressTransferDestinationAccountOutput
|
|
35
35
|
* @param address {String} The destination address.
|
|
36
|
-
* @param amount {String} The
|
|
36
|
+
* @param amount {String} The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
|
|
37
37
|
*/
|
|
38
38
|
function AddressTransferDestinationAccountOutput(address, amount) {
|
|
39
39
|
_classCallCheck(this, AddressTransferDestinationAccountOutput);
|
|
@@ -131,7 +131,7 @@ AddressTransferDestinationAccountOutput.prototype['address'] = undefined;
|
|
|
131
131
|
AddressTransferDestinationAccountOutput.prototype['memo'] = undefined;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
|
-
* The
|
|
134
|
+
* The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
|
|
135
135
|
* @member {String} amount
|
|
136
136
|
*/
|
|
137
137
|
AddressTransferDestinationAccountOutput.prototype['amount'] = undefined;
|
|
@@ -123,7 +123,7 @@ AddressTransferDestinationUtxoOutputsInner.RequiredProperties = ["address"];
|
|
|
123
123
|
AddressTransferDestinationUtxoOutputsInner.prototype['address'] = undefined;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
* The
|
|
126
|
+
* The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
|
|
127
127
|
* @member {String} amount
|
|
128
128
|
*/
|
|
129
129
|
AddressTransferDestinationUtxoOutputsInner.prototype['amount'] = undefined;
|
package/dist/model/AssetInfo.js
CHANGED
|
@@ -33,7 +33,7 @@ var AssetInfo = /*#__PURE__*/function () {
|
|
|
33
33
|
* Constructs a new <code>AssetInfo</code>.
|
|
34
34
|
* The asset information.
|
|
35
35
|
* @alias module:model/AssetInfo
|
|
36
|
-
* @param asset_id {String}
|
|
36
|
+
* @param asset_id {String} The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account.
|
|
37
37
|
*/
|
|
38
38
|
function AssetInfo(asset_id) {
|
|
39
39
|
_classCallCheck(this, AssetInfo);
|
|
@@ -125,7 +125,7 @@ var AssetInfo = /*#__PURE__*/function () {
|
|
|
125
125
|
AssetInfo.RequiredProperties = ["asset_id"];
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account.
|
|
129
129
|
* @member {String} asset_id
|
|
130
130
|
*/
|
|
131
131
|
AssetInfo.prototype['asset_id'] = undefined;
|
|
@@ -80,6 +80,9 @@ var BabylonStakeExtra = /*#__PURE__*/function () {
|
|
|
80
80
|
if (data.hasOwnProperty('stake_block_time')) {
|
|
81
81
|
obj['stake_block_time'] = _ApiClient["default"].convertToType(data['stake_block_time'], 'Number');
|
|
82
82
|
}
|
|
83
|
+
if (data.hasOwnProperty('only_sign')) {
|
|
84
|
+
obj['only_sign'] = _ApiClient["default"].convertToType(data['only_sign'], 'Boolean');
|
|
85
|
+
}
|
|
83
86
|
}
|
|
84
87
|
return obj;
|
|
85
88
|
}
|
|
@@ -134,6 +137,12 @@ BabylonStakeExtra.prototype['finality_provider_public_key'] = undefined;
|
|
|
134
137
|
*/
|
|
135
138
|
BabylonStakeExtra.prototype['stake_block_time'] = undefined;
|
|
136
139
|
|
|
140
|
+
/**
|
|
141
|
+
* Whether to only sign transactions. Default is `false`, if set to `true`, the transaction will not be submitted to the blockchain automatically. You can call `Broadcast transactions` to submit the transaction to the blockchain, Or you can find the signed raw_tx by `Get transaction information` and broadcast it yourself.
|
|
142
|
+
* @member {Boolean} only_sign
|
|
143
|
+
*/
|
|
144
|
+
BabylonStakeExtra.prototype['only_sign'] = undefined;
|
|
145
|
+
|
|
137
146
|
// Implement BaseStakeExtra interface:
|
|
138
147
|
/**
|
|
139
148
|
* @member {module:model/StakingPoolType} pool_type
|
|
@@ -32,7 +32,7 @@ var CheckAddressValidity200Response = /*#__PURE__*/function () {
|
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>CheckAddressValidity200Response</code>.
|
|
34
34
|
* @alias module:model/CheckAddressValidity200Response
|
|
35
|
-
* @param validity {Boolean} Whether the address is valid. - `true`: The address is valid. - `false`:
|
|
35
|
+
* @param validity {Boolean} Whether the address is valid. - `true`: The address is valid. - `false`: The address is invalid.
|
|
36
36
|
*/
|
|
37
37
|
function CheckAddressValidity200Response(validity) {
|
|
38
38
|
_classCallCheck(this, CheckAddressValidity200Response);
|
|
@@ -99,7 +99,7 @@ var CheckAddressValidity200Response = /*#__PURE__*/function () {
|
|
|
99
99
|
CheckAddressValidity200Response.RequiredProperties = ["validity"];
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
|
-
* Whether the address is valid. - `true`: The address is valid. - `false`:
|
|
102
|
+
* Whether the address is valid. - `true`: The address is valid. - `false`: The address is invalid.
|
|
103
103
|
* @member {Boolean} validity
|
|
104
104
|
*/
|
|
105
105
|
CheckAddressValidity200Response.prototype['validity'] = undefined;
|