@cobo/cobo-waas2 1.10.0 → 1.12.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 +31 -1
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +1 -1
- package/dist/api/DevelopersApi.js +3 -3
- package/dist/api/DevelopersWebhooksApi.js +8 -8
- package/dist/api/FeeStationApi.js +282 -0
- package/dist/api/StakingsApi.js +14 -14
- package/dist/api/SwapsApi.js +2 -2
- package/dist/api/TransactionsApi.js +69 -19
- package/dist/api/TravelRuleApi.js +4 -4
- package/dist/api/WalletsApi.js +77 -19
- package/dist/api/WalletsExchangeWalletApi.js +1 -1
- package/dist/api/WalletsMPCWalletsApi.js +19 -19
- package/dist/api/WalletsSmartContractWalletsApi.js +1 -1
- package/dist/index.js +175 -0
- package/dist/model/ActivityExtra.js +11 -0
- package/dist/model/AddressTransferDestination.js +1 -1
- package/dist/model/AddressesEventData.js +13 -3
- package/dist/model/BabylonStakingActivityDetailExtra.js +21 -0
- package/dist/model/BaseContractCallSource.js +1 -1
- package/dist/model/ChainInfo.js +2 -2
- package/dist/model/ChainsEventData.js +202 -0
- package/dist/model/ContractCallDestination.js +42 -8
- package/dist/model/ContractCallDestinationType.js +5 -0
- package/dist/model/ContractCallParams.js +3 -30
- package/dist/model/ContractCallSource.js +36 -8
- package/dist/model/ContractCallSourceType.js +5 -0
- package/dist/model/CreateBabylonAirdropRegistration201Response.js +1 -1
- package/dist/model/CreateBabylonStakingRegistration201Response.js +1 -1
- package/dist/model/CustodialTransferSource.js +1 -1
- package/dist/model/CustodialWeb3ContractCallSource.js +156 -0
- package/dist/model/CustodialWeb3MessageSignSource.js +136 -0
- package/dist/model/CustodialWeb3TransferSource.js +194 -0
- package/dist/model/EstimatedEvmEip1559FeeSlow.js +23 -0
- package/dist/model/EstimatedEvmLegacyFeeSlow.js +23 -0
- package/dist/model/ExtendedTokenInfo.js +3 -3
- package/dist/model/FeeReserved.js +87 -0
- package/dist/model/FeeStationTransactionType.js +61 -0
- package/dist/model/ListTransactionApprovalDetails200Response.js +107 -0
- package/dist/model/MPCVaultEventData.js +13 -3
- package/dist/model/MaxFeeAmount.js +1 -1
- package/dist/model/MessageSignSource.js +36 -8
- package/dist/model/MessageSignSourceType.js +5 -0
- package/dist/model/RefreshAddressBalancesByToken200Response.js +106 -0
- package/dist/model/RefreshAddressBalancesByTokenRequest.js +111 -0
- package/dist/model/SafeTxDecodedData.js +122 -0
- package/dist/model/SafeTxDecodedDataParameters.js +148 -0
- package/dist/model/SafeTxExtraData.js +339 -0
- package/dist/model/SafeTxSubTransaction.js +169 -0
- package/dist/model/SolContractCallAccount.js +133 -0
- package/dist/model/SolContractCallDestination.js +139 -0
- package/dist/model/SolContractCallInstruction.js +158 -0
- package/dist/model/TSSRequestWebhookEventData.js +13 -3
- package/dist/model/TokenInfo.js +2 -2
- package/dist/model/TokensEventData.js +202 -0
- package/dist/model/Transaction.js +29 -0
- package/dist/model/TransactionApprovalDetail.js +39 -0
- package/dist/model/TransactionCoboCategory.js +91 -0
- package/dist/model/TransactionCustodialWeb3WalletSource.js +194 -0
- package/dist/model/TransactionDestination.js +54 -8
- package/dist/model/TransactionDestinationType.js +5 -0
- package/dist/model/TransactionDetail.js +38 -0
- package/dist/model/TransactionDetails.js +38 -0
- package/dist/model/TransactionFee.js +1 -1
- package/dist/model/TransactionFixedFee.js +2 -2
- package/dist/model/TransactionFuelingInfo.js +101 -0
- package/dist/model/TransactionMessageSignEIP712Destination.js +29 -0
- package/dist/model/TransactionProcessType.js +61 -0
- package/dist/model/TransactionRequestFee.js +1 -1
- package/dist/model/TransactionRequestFixedFee.js +2 -2
- package/dist/model/TransactionRequestUtxoFee.js +5 -7
- package/dist/model/TransactionSelectedUtxo.js +26 -0
- package/dist/model/TransactionSolContractAccount.js +106 -0
- package/dist/model/TransactionSolContractDestination.js +137 -0
- package/dist/model/TransactionSolContractInstruction.js +134 -0
- package/dist/model/TransactionSource.js +36 -8
- package/dist/model/TransactionSourceType.js +5 -0
- package/dist/model/TransactionTokeApproval.js +3 -3
- package/dist/model/TransactionUserApprovalDetail.js +26 -0
- package/dist/model/TransactionWebhookEventData.js +51 -3
- package/dist/model/TransferParams.js +3 -30
- package/dist/model/TransferSource.js +36 -8
- package/dist/model/WalletInfoEventData.js +13 -3
- package/dist/model/WebhookEventData.js +91 -9
- package/dist/model/WebhookEventDataType.js +12 -2
- package/dist/model/WebhookEventType.js +30 -0
- package/docs/ActivityExtra.md +2 -0
- package/docs/AddressBooksApi.md +1 -1
- package/docs/AddressesEventData.md +5 -1
- package/docs/BabylonStakingActivityDetailExtra.md +2 -0
- package/docs/ChainInfo.md +1 -1
- package/docs/ChainsEventData.md +33 -0
- package/docs/ContractCallDestination.md +1 -0
- package/docs/ContractCallDestinationType.md +2 -0
- package/docs/ContractCallParams.md +1 -14
- package/docs/ContractCallSourceType.md +2 -0
- package/docs/CreateBabylonAirdropRegistration201Response.md +1 -1
- package/docs/CreateBabylonStakingRegistration201Response.md +1 -1
- package/docs/CustodialWeb3ContractCallSource.md +11 -0
- package/docs/CustodialWeb3MessageSignSource.md +11 -0
- package/docs/CustodialWeb3TransferSource.md +13 -0
- package/docs/DevelopersApi.md +3 -3
- package/docs/DevelopersWebhooksApi.md +8 -8
- package/docs/EstimatedEvmEip1559FeeSlow.md +1 -0
- package/docs/EstimatedEvmLegacyFeeSlow.md +1 -0
- package/docs/ExtendedTokenInfo.md +1 -1
- package/docs/FeeReserved.md +9 -0
- package/docs/FeeStationApi.md +260 -0
- package/docs/FeeStationTransactionType.md +12 -0
- package/docs/ListTransactionApprovalDetails200Response.md +9 -0
- package/docs/MPCVaultEventData.md +5 -1
- package/docs/MaxFeeAmount.md +1 -1
- package/docs/MessageSignSourceType.md +2 -0
- package/docs/RefreshAddressBalancesByToken200Response.md +9 -0
- package/docs/RefreshAddressBalancesByTokenRequest.md +9 -0
- package/docs/SafeTxDecodedData.md +10 -0
- package/docs/SafeTxDecodedDataParameters.md +12 -0
- package/docs/SafeTxExtraData.md +26 -0
- package/docs/SafeTxSubTransaction.md +15 -0
- package/docs/SolContractCallAccount.md +11 -0
- package/docs/SolContractCallDestination.md +10 -0
- package/docs/SolContractCallInstruction.md +11 -0
- package/docs/StakingsApi.md +13 -13
- package/docs/SwapsApi.md +2 -2
- package/docs/TSSRequestWebhookEventData.md +5 -1
- package/docs/TokenInfo.md +1 -1
- package/docs/TokensEventData.md +33 -0
- package/docs/Transaction.md +2 -0
- package/docs/TransactionApprovalDetail.md +3 -0
- package/docs/TransactionCoboCategory.md +24 -0
- package/docs/TransactionCustodialWeb3WalletSource.md +13 -0
- package/docs/TransactionDestination.md +3 -0
- package/docs/TransactionDestinationType.md +2 -0
- package/docs/TransactionDetail.md +2 -0
- package/docs/TransactionDetails.md +2 -0
- package/docs/TransactionFee.md +1 -1
- package/docs/TransactionFixedFee.md +1 -1
- package/docs/TransactionFuelingInfo.md +10 -0
- package/docs/TransactionMessageSignEIP712Destination.md +2 -0
- package/docs/TransactionProcessType.md +12 -0
- package/docs/TransactionRequestFee.md +2 -2
- package/docs/TransactionRequestFixedFee.md +1 -1
- package/docs/TransactionRequestUtxoFee.md +2 -2
- package/docs/TransactionSelectedUtxo.md +2 -0
- package/docs/TransactionSolContractAccount.md +11 -0
- package/docs/TransactionSolContractDestination.md +10 -0
- package/docs/TransactionSolContractInstruction.md +11 -0
- package/docs/TransactionSourceType.md +2 -0
- package/docs/TransactionTokeApproval.md +1 -1
- package/docs/TransactionUserApprovalDetail.md +2 -0
- package/docs/TransactionWebhookEventData.md +7 -1
- package/docs/TransactionsApi.md +74 -17
- package/docs/TransferParams.md +1 -14
- package/docs/TravelRuleApi.md +4 -4
- package/docs/WalletInfoEventData.md +5 -1
- package/docs/WalletsApi.md +73 -16
- package/docs/WalletsExchangeWalletApi.md +1 -1
- package/docs/WalletsMPCWalletsApi.md +19 -19
- package/docs/WalletsSmartContractWalletsApi.md +1 -1
- package/docs/WebhookEventData.md +9 -1
- package/docs/WebhookEventDataType.md +5 -1
- package/docs/WebhookEventType.md +12 -0
- package/package.json +1 -1
package/dist/api/StakingsApi.js
CHANGED
|
@@ -108,7 +108,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
110
|
* Register for Babylon Phase-2
|
|
111
|
-
* This operation initiates a Babylon Phase-2 registration request. Before calling this operation, please ensure the following: - The staking position is eligible for the Babylon Phase-2 and has not been registered. You can call the [List staking positions eligible for Babylon Phase-2](https://www.cobo.com/developers/v2/api-references/stakings/list-
|
|
111
|
+
* This operation initiates a Babylon Phase-2 registration request. Before calling this operation, please ensure the following: - The staking position is eligible for the Babylon Phase-2 and has not been registered. You can call the [List staking positions eligible for Babylon Phase-2](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions-eligible-for-babylon-phase-2) operation to check the registration status. - The Babylon address has enough asset to pay for the registration fee. - The Babylon address must be a Babylon address in an MPC Wallet in your organization. The system first checks whether the provided address is eligible for Phase-2. If eligible, it creates a unique registration ID, which can be used to track the status. The registration is processed asynchronously and may take some time to complete. It is recommended that you regularly call the [Get Babylon Phase-2 registration details](https://www.cobo.com/developers/v2/api-references/stakings/get-babylon-phase-2-registration-details) operation to check the status and handle registration accordingly. For more information, refer to [Babylon's official doc](https://github.com/babylonlabs-io/babylon/tree/main/docs).
|
|
112
112
|
* @param {Object} opts Optional parameters
|
|
113
113
|
* @param {module:model/CreateBabylonStakingRegistrationRequest} [CreateBabylonStakingRegistrationRequest] The request body to transit Babylon BTC staking to phase 2
|
|
114
114
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateBabylonStakingRegistration201Response} and HTTP response
|
|
@@ -134,7 +134,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
136
|
* Register for Babylon Phase-2
|
|
137
|
-
* This operation initiates a Babylon Phase-2 registration request. Before calling this operation, please ensure the following: - The staking position is eligible for the Babylon Phase-2 and has not been registered. You can call the [List staking positions eligible for Babylon Phase-2](https://www.cobo.com/developers/v2/api-references/stakings/list-
|
|
137
|
+
* This operation initiates a Babylon Phase-2 registration request. Before calling this operation, please ensure the following: - The staking position is eligible for the Babylon Phase-2 and has not been registered. You can call the [List staking positions eligible for Babylon Phase-2](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions-eligible-for-babylon-phase-2) operation to check the registration status. - The Babylon address has enough asset to pay for the registration fee. - The Babylon address must be a Babylon address in an MPC Wallet in your organization. The system first checks whether the provided address is eligible for Phase-2. If eligible, it creates a unique registration ID, which can be used to track the status. The registration is processed asynchronously and may take some time to complete. It is recommended that you regularly call the [Get Babylon Phase-2 registration details](https://www.cobo.com/developers/v2/api-references/stakings/get-babylon-phase-2-registration-details) operation to check the status and handle registration accordingly. For more information, refer to [Babylon's official doc](https://github.com/babylonlabs-io/babylon/tree/main/docs).
|
|
138
138
|
* @param {Object} opts Optional parameters
|
|
139
139
|
* @param {module:model/CreateBabylonStakingRegistrationRequest} opts.CreateBabylonStakingRegistrationRequest The request body to transit Babylon BTC staking to phase 2
|
|
140
140
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateBabylonStakingRegistration201Response}
|
|
@@ -166,7 +166,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
166
166
|
var queryParams = {};
|
|
167
167
|
var headerParams = {};
|
|
168
168
|
var formParams = {};
|
|
169
|
-
var authNames = ['OAuth2'];
|
|
169
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
170
170
|
var contentTypes = ['application/json'];
|
|
171
171
|
var accepts = ['application/json'];
|
|
172
172
|
var returnType = _CreateStakeActivity201Response["default"];
|
|
@@ -207,7 +207,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
207
207
|
var queryParams = {};
|
|
208
208
|
var headerParams = {};
|
|
209
209
|
var formParams = {};
|
|
210
|
-
var authNames = ['OAuth2'];
|
|
210
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
211
211
|
var contentTypes = ['application/json'];
|
|
212
212
|
var accepts = ['application/json'];
|
|
213
213
|
var returnType = _CreateStakeActivity201Response["default"];
|
|
@@ -248,7 +248,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
248
248
|
var queryParams = {};
|
|
249
249
|
var headerParams = {};
|
|
250
250
|
var formParams = {};
|
|
251
|
-
var authNames = ['OAuth2'];
|
|
251
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
252
252
|
var contentTypes = ['application/json'];
|
|
253
253
|
var accepts = ['application/json'];
|
|
254
254
|
var returnType = _CreateStakeActivity201Response["default"];
|
|
@@ -289,7 +289,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
289
289
|
var queryParams = {};
|
|
290
290
|
var headerParams = {};
|
|
291
291
|
var formParams = {};
|
|
292
|
-
var authNames = ['OAuth2'];
|
|
292
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
293
293
|
var contentTypes = ['application/json'];
|
|
294
294
|
var accepts = ['application/json'];
|
|
295
295
|
var returnType = _CreateStakeActivity201Response["default"];
|
|
@@ -422,7 +422,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
422
422
|
var queryParams = {};
|
|
423
423
|
var headerParams = {};
|
|
424
424
|
var formParams = {};
|
|
425
|
-
var authNames = ['OAuth2'];
|
|
425
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
426
426
|
var contentTypes = [];
|
|
427
427
|
var accepts = ['application/json'];
|
|
428
428
|
var returnType = _Activity["default"];
|
|
@@ -466,7 +466,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
466
466
|
var queryParams = {};
|
|
467
467
|
var headerParams = {};
|
|
468
468
|
var formParams = {};
|
|
469
|
-
var authNames = ['OAuth2'];
|
|
469
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
470
470
|
var contentTypes = [];
|
|
471
471
|
var accepts = ['application/json'];
|
|
472
472
|
var returnType = _Stakings["default"];
|
|
@@ -506,7 +506,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
506
506
|
var queryParams = {};
|
|
507
507
|
var headerParams = {};
|
|
508
508
|
var formParams = {};
|
|
509
|
-
var authNames = ['OAuth2'];
|
|
509
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
510
510
|
var contentTypes = ['application/json'];
|
|
511
511
|
var accepts = ['application/json'];
|
|
512
512
|
var returnType = _GetStakingEstimationFee201Response["default"];
|
|
@@ -547,7 +547,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
547
547
|
var queryParams = {};
|
|
548
548
|
var headerParams = {};
|
|
549
549
|
var formParams = {};
|
|
550
|
-
var authNames = ['OAuth2'];
|
|
550
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
551
551
|
var contentTypes = ['application/json'];
|
|
552
552
|
var accepts = ['application/json'];
|
|
553
553
|
var returnType = _EthStakeEstimatedFee["default"];
|
|
@@ -592,7 +592,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
592
592
|
var queryParams = {};
|
|
593
593
|
var headerParams = {};
|
|
594
594
|
var formParams = {};
|
|
595
|
-
var authNames = ['OAuth2'];
|
|
595
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
596
596
|
var contentTypes = [];
|
|
597
597
|
var accepts = ['application/json'];
|
|
598
598
|
var returnType = _PoolDetails["default"];
|
|
@@ -868,7 +868,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
868
868
|
};
|
|
869
869
|
var headerParams = {};
|
|
870
870
|
var formParams = {};
|
|
871
|
-
var authNames = ['OAuth2'];
|
|
871
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
872
872
|
var contentTypes = [];
|
|
873
873
|
var accepts = ['application/json'];
|
|
874
874
|
var returnType = _ListStakingActivities200Response["default"];
|
|
@@ -929,7 +929,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
929
929
|
};
|
|
930
930
|
var headerParams = {};
|
|
931
931
|
var formParams = {};
|
|
932
|
-
var authNames = ['OAuth2'];
|
|
932
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
933
933
|
var contentTypes = [];
|
|
934
934
|
var accepts = ['application/json'];
|
|
935
935
|
var returnType = _ListStakingPools200Response["default"];
|
|
@@ -988,7 +988,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
988
988
|
};
|
|
989
989
|
var headerParams = {};
|
|
990
990
|
var formParams = {};
|
|
991
|
-
var authNames = ['OAuth2'];
|
|
991
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
992
992
|
var contentTypes = [];
|
|
993
993
|
var accepts = ['application/json'];
|
|
994
994
|
var returnType = _ListStakings200Response["default"];
|
package/dist/api/SwapsApi.js
CHANGED
|
@@ -67,7 +67,7 @@ var SwapsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
67
67
|
var queryParams = {};
|
|
68
68
|
var headerParams = {};
|
|
69
69
|
var formParams = {};
|
|
70
|
-
var authNames = ['OAuth2'];
|
|
70
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
71
71
|
var contentTypes = ['application/json'];
|
|
72
72
|
var accepts = ['application/json'];
|
|
73
73
|
var returnType = _SwapActivity["default"];
|
|
@@ -109,7 +109,7 @@ var SwapsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
109
109
|
var queryParams = {};
|
|
110
110
|
var headerParams = {};
|
|
111
111
|
var formParams = {};
|
|
112
|
-
var authNames = ['OAuth2'];
|
|
112
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
113
113
|
var contentTypes = ['application/json'];
|
|
114
114
|
var accepts = ['application/json'];
|
|
115
115
|
var returnType = _CreateSwapQuote201Response["default"];
|
|
@@ -13,6 +13,7 @@ var _CreateTransferTransaction201Response = _interopRequireDefault(require("../m
|
|
|
13
13
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
14
14
|
var _EstimateFeeParams = _interopRequireDefault(require("../model/EstimateFeeParams"));
|
|
15
15
|
var _EstimatedFee = _interopRequireDefault(require("../model/EstimatedFee"));
|
|
16
|
+
var _ListTransactionApprovalDetails200Response = _interopRequireDefault(require("../model/ListTransactionApprovalDetails200Response"));
|
|
16
17
|
var _ListTransactions200Response = _interopRequireDefault(require("../model/ListTransactions200Response"));
|
|
17
18
|
var _MessageSignParams = _interopRequireDefault(require("../model/MessageSignParams"));
|
|
18
19
|
var _TransactionApprovalDetail = _interopRequireDefault(require("../model/TransactionApprovalDetail"));
|
|
@@ -72,7 +73,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
72
73
|
var queryParams = {};
|
|
73
74
|
var headerParams = {};
|
|
74
75
|
var formParams = {};
|
|
75
|
-
var authNames = ['OAuth2'];
|
|
76
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
76
77
|
var contentTypes = ['application/json'];
|
|
77
78
|
var accepts = ['application/json'];
|
|
78
79
|
var returnType = [_BroadcastSignedTransactions201ResponseInner["default"]];
|
|
@@ -117,7 +118,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
117
118
|
var queryParams = {};
|
|
118
119
|
var headerParams = {};
|
|
119
120
|
var formParams = {};
|
|
120
|
-
var authNames = ['OAuth2'];
|
|
121
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
121
122
|
var contentTypes = [];
|
|
122
123
|
var accepts = ['application/json'];
|
|
123
124
|
var returnType = _CreateTransferTransaction201Response["default"];
|
|
@@ -173,7 +174,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
173
174
|
};
|
|
174
175
|
var headerParams = {};
|
|
175
176
|
var formParams = {};
|
|
176
|
-
var authNames = ['OAuth2'];
|
|
177
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
177
178
|
var contentTypes = [];
|
|
178
179
|
var accepts = ['application/json'];
|
|
179
180
|
var returnType = [_CheckLoopTransfers200ResponseInner["default"]];
|
|
@@ -215,7 +216,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
215
216
|
var queryParams = {};
|
|
216
217
|
var headerParams = {};
|
|
217
218
|
var formParams = {};
|
|
218
|
-
var authNames = ['OAuth2'];
|
|
219
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
219
220
|
var contentTypes = ['application/json'];
|
|
220
221
|
var accepts = ['application/json'];
|
|
221
222
|
var returnType = _CreateTransferTransaction201Response["default"];
|
|
@@ -256,7 +257,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
256
257
|
var queryParams = {};
|
|
257
258
|
var headerParams = {};
|
|
258
259
|
var formParams = {};
|
|
259
|
-
var authNames = ['OAuth2'];
|
|
260
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
260
261
|
var contentTypes = ['application/json'];
|
|
261
262
|
var accepts = ['application/json'];
|
|
262
263
|
var returnType = _CreateTransferTransaction201Response["default"];
|
|
@@ -280,7 +281,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
280
281
|
|
|
281
282
|
/**
|
|
282
283
|
* Transfer token
|
|
283
|
-
* The operation transfers your assets from a wallet created on Cobo Portal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>If you make transfers from Custodial Wallets (Asset Wallets) and Exchange Wallets, do not set the fee-related properties, as they will not take effects.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source.
|
|
284
|
+
* The operation transfers your assets from a wallet created on Cobo Portal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>If you make transfers from Custodial Wallets (Asset Wallets) and Exchange Wallets, do not set the fee-related properties, as they will not take effects.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. To do this, you should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
|
|
284
285
|
* @param {Object} opts Optional parameters
|
|
285
286
|
* @param {module:model/TransferParams} [TransferParams] The request body to create a transfer transaction
|
|
286
287
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTransferTransaction201Response} and HTTP response
|
|
@@ -297,7 +298,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
297
298
|
var queryParams = {};
|
|
298
299
|
var headerParams = {};
|
|
299
300
|
var formParams = {};
|
|
300
|
-
var authNames = ['OAuth2'];
|
|
301
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
301
302
|
var contentTypes = ['application/json'];
|
|
302
303
|
var accepts = ['application/json'];
|
|
303
304
|
var returnType = _CreateTransferTransaction201Response["default"];
|
|
@@ -306,7 +307,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
306
307
|
|
|
307
308
|
/**
|
|
308
309
|
* Transfer token
|
|
309
|
-
* The operation transfers your assets from a wallet created on Cobo Portal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>If you make transfers from Custodial Wallets (Asset Wallets) and Exchange Wallets, do not set the fee-related properties, as they will not take effects.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source.
|
|
310
|
+
* The operation transfers your assets from a wallet created on Cobo Portal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>If you make transfers from Custodial Wallets (Asset Wallets) and Exchange Wallets, do not set the fee-related properties, as they will not take effects.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. To do this, you should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
|
|
310
311
|
* @param {Object} opts Optional parameters
|
|
311
312
|
* @param {module:model/TransferParams} opts.TransferParams The request body to create a transfer transaction
|
|
312
313
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTransferTransaction201Response}
|
|
@@ -345,7 +346,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
345
346
|
var queryParams = {};
|
|
346
347
|
var headerParams = {};
|
|
347
348
|
var formParams = {};
|
|
348
|
-
var authNames = ['OAuth2'];
|
|
349
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
349
350
|
var contentTypes = ['application/json'];
|
|
350
351
|
var accepts = ['application/json'];
|
|
351
352
|
var returnType = _CreateTransferTransaction201Response["default"];
|
|
@@ -387,7 +388,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
387
388
|
var queryParams = {};
|
|
388
389
|
var headerParams = {};
|
|
389
390
|
var formParams = {};
|
|
390
|
-
var authNames = ['OAuth2'];
|
|
391
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
391
392
|
var contentTypes = ['application/json'];
|
|
392
393
|
var accepts = ['application/json'];
|
|
393
394
|
var returnType = _EstimatedFee["default"];
|
|
@@ -411,7 +412,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
411
412
|
|
|
412
413
|
/**
|
|
413
414
|
* Get transaction approval details
|
|
414
|
-
* This operation retrieves approval
|
|
415
|
+
* This operation retrieves detailed approval information about a specified transaction.
|
|
415
416
|
* @param {String} transaction_id The transaction ID.
|
|
416
417
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TransactionApprovalDetail} and HTTP response
|
|
417
418
|
*/
|
|
@@ -432,7 +433,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
432
433
|
var queryParams = {};
|
|
433
434
|
var headerParams = {};
|
|
434
435
|
var formParams = {};
|
|
435
|
-
var authNames = ['CoboAuth'];
|
|
436
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
436
437
|
var contentTypes = [];
|
|
437
438
|
var accepts = ['application/json'];
|
|
438
439
|
var returnType = _TransactionApprovalDetail["default"];
|
|
@@ -441,7 +442,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
441
442
|
|
|
442
443
|
/**
|
|
443
444
|
* Get transaction approval details
|
|
444
|
-
* This operation retrieves approval
|
|
445
|
+
* This operation retrieves detailed approval information about a specified transaction.
|
|
445
446
|
* @param {String} transaction_id The transaction ID.
|
|
446
447
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TransactionApprovalDetail}
|
|
447
448
|
*/
|
|
@@ -476,7 +477,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
476
477
|
var queryParams = {};
|
|
477
478
|
var headerParams = {};
|
|
478
479
|
var formParams = {};
|
|
479
|
-
var authNames = ['OAuth2'];
|
|
480
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
480
481
|
var contentTypes = [];
|
|
481
482
|
var accepts = ['application/json'];
|
|
482
483
|
var returnType = _TransactionDetail["default"];
|
|
@@ -497,6 +498,52 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
497
498
|
});
|
|
498
499
|
}
|
|
499
500
|
|
|
501
|
+
/**
|
|
502
|
+
* List transaction approval details
|
|
503
|
+
* This operation retrieves detailed approval information for all transactions.
|
|
504
|
+
* @param {Object} opts Optional parameters
|
|
505
|
+
* @param {String} [transaction_ids] A list of transaction IDs, separated by comma.
|
|
506
|
+
* @param {String} [cobo_ids] A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
|
|
507
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTransactionApprovalDetails200Response} and HTTP response
|
|
508
|
+
*/
|
|
509
|
+
}, {
|
|
510
|
+
key: "listTransactionApprovalDetailsWithHttpInfo",
|
|
511
|
+
value: function listTransactionApprovalDetailsWithHttpInfo(opts) {
|
|
512
|
+
opts = opts || {};
|
|
513
|
+
var postBody = null;
|
|
514
|
+
if (postBody && postBody.toJSON) {
|
|
515
|
+
postBody = postBody.toJSON();
|
|
516
|
+
}
|
|
517
|
+
var pathParams = {};
|
|
518
|
+
var queryParams = {
|
|
519
|
+
'transaction_ids': opts['transaction_ids'],
|
|
520
|
+
'cobo_ids': opts['cobo_ids']
|
|
521
|
+
};
|
|
522
|
+
var headerParams = {};
|
|
523
|
+
var formParams = {};
|
|
524
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
525
|
+
var contentTypes = [];
|
|
526
|
+
var accepts = ['application/json'];
|
|
527
|
+
var returnType = _ListTransactionApprovalDetails200Response["default"];
|
|
528
|
+
return this.apiClient.callApi('/transactions/approval_details', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* List transaction approval details
|
|
533
|
+
* This operation retrieves detailed approval information for all transactions.
|
|
534
|
+
* @param {Object} opts Optional parameters
|
|
535
|
+
* @param {String} opts.transaction_ids A list of transaction IDs, separated by comma.
|
|
536
|
+
* @param {String} opts.cobo_ids A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
|
|
537
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTransactionApprovalDetails200Response}
|
|
538
|
+
*/
|
|
539
|
+
}, {
|
|
540
|
+
key: "listTransactionApprovalDetails",
|
|
541
|
+
value: function listTransactionApprovalDetails(opts) {
|
|
542
|
+
return this.listTransactionApprovalDetailsWithHttpInfo(opts).then(function (response_and_data) {
|
|
543
|
+
return response_and_data.data;
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
|
|
500
547
|
/**
|
|
501
548
|
* List all transactions
|
|
502
549
|
* This operation retrieves all the transactions under your organization. You can filter the results by request ID, Cobo ID, transaction ID, transaction hash, type, status, and timestamps. You can also paginate and sort your query results.
|
|
@@ -518,6 +565,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
518
565
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
519
566
|
* @param {String} [before] This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - 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 it to `infinity`, the last page of data is returned.
|
|
520
567
|
* @param {String} [after] This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - 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.
|
|
568
|
+
* @param {module:model/String} [direction = '')] The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order.
|
|
521
569
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTransactions200Response} and HTTP response
|
|
522
570
|
*/
|
|
523
571
|
}, {
|
|
@@ -546,11 +594,12 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
546
594
|
'max_created_timestamp': opts['max_created_timestamp'],
|
|
547
595
|
'limit': opts['limit'],
|
|
548
596
|
'before': opts['before'],
|
|
549
|
-
'after': opts['after']
|
|
597
|
+
'after': opts['after'],
|
|
598
|
+
'direction': opts['direction']
|
|
550
599
|
};
|
|
551
600
|
var headerParams = {};
|
|
552
601
|
var formParams = {};
|
|
553
|
-
var authNames = ['OAuth2'];
|
|
602
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
554
603
|
var contentTypes = [];
|
|
555
604
|
var accepts = ['application/json'];
|
|
556
605
|
var returnType = _ListTransactions200Response["default"];
|
|
@@ -578,6 +627,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
578
627
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
579
628
|
* @param {String} opts.before This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - 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 it to `infinity`, the last page of data is returned.
|
|
580
629
|
* @param {String} opts.after This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - 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.
|
|
630
|
+
* @param {module:model/String} opts.direction The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order. (default to '')
|
|
581
631
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTransactions200Response}
|
|
582
632
|
*/
|
|
583
633
|
}, {
|
|
@@ -614,7 +664,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
614
664
|
var queryParams = {};
|
|
615
665
|
var headerParams = {};
|
|
616
666
|
var formParams = {};
|
|
617
|
-
var authNames = ['OAuth2'];
|
|
667
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
618
668
|
var contentTypes = ['application/json'];
|
|
619
669
|
var accepts = ['application/json'];
|
|
620
670
|
var returnType = _CreateTransferTransaction201Response["default"];
|
|
@@ -660,7 +710,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
660
710
|
var queryParams = {};
|
|
661
711
|
var headerParams = {};
|
|
662
712
|
var formParams = {};
|
|
663
|
-
var authNames = ['CoboAuth'];
|
|
713
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
664
714
|
var contentTypes = [];
|
|
665
715
|
var accepts = ['application/json'];
|
|
666
716
|
var returnType = _CreateTransferTransaction201Response["default"];
|
|
@@ -707,7 +757,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
707
757
|
var queryParams = {};
|
|
708
758
|
var headerParams = {};
|
|
709
759
|
var formParams = {};
|
|
710
|
-
var authNames = ['OAuth2'];
|
|
760
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
711
761
|
var contentTypes = ['application/json'];
|
|
712
762
|
var accepts = ['application/json'];
|
|
713
763
|
var returnType = _CreateTransferTransaction201Response["default"];
|
|
@@ -73,7 +73,7 @@ var TravelRuleApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
73
73
|
};
|
|
74
74
|
var headerParams = {};
|
|
75
75
|
var formParams = {};
|
|
76
|
-
var authNames = ['OAuth2'];
|
|
76
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
77
77
|
var contentTypes = [];
|
|
78
78
|
var accepts = ['application/json'];
|
|
79
79
|
var returnType = _GetTransactionLimitation200Response["default"];
|
|
@@ -111,7 +111,7 @@ var TravelRuleApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
111
111
|
var queryParams = {};
|
|
112
112
|
var headerParams = {};
|
|
113
113
|
var formParams = {};
|
|
114
|
-
var authNames = ['OAuth2'];
|
|
114
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
115
115
|
var contentTypes = [];
|
|
116
116
|
var accepts = ['application/json'];
|
|
117
117
|
var returnType = [_ListSupportedCountries200ResponseInner["default"]];
|
|
@@ -150,7 +150,7 @@ var TravelRuleApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
150
150
|
var queryParams = {};
|
|
151
151
|
var headerParams = {};
|
|
152
152
|
var formParams = {};
|
|
153
|
-
var authNames = ['OAuth2'];
|
|
153
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
154
154
|
var contentTypes = ['application/json'];
|
|
155
155
|
var accepts = ['application/json'];
|
|
156
156
|
var returnType = _SubmitDepositTravelRuleInfo201Response["default"];
|
|
@@ -191,7 +191,7 @@ var TravelRuleApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
191
191
|
var queryParams = {};
|
|
192
192
|
var headerParams = {};
|
|
193
193
|
var formParams = {};
|
|
194
|
-
var authNames = ['OAuth2'];
|
|
194
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
195
195
|
var contentTypes = ['application/json'];
|
|
196
196
|
var accepts = ['application/json'];
|
|
197
197
|
var returnType = _SubmitDepositTravelRuleInfo201Response["default"];
|