@cobo/cobo-waas2 1.20.0 → 1.22.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 +60 -4
- package/dist/ApiClient.js +11 -2
- package/dist/PreRequestScript.js +2 -4
- package/dist/api/AutoSweepApi.js +289 -0
- package/dist/api/PaymentApi.js +386 -24
- package/dist/api/TokenizationApi.js +1024 -0
- package/dist/api/TransactionsApi.js +103 -2
- package/dist/api/WalletsApi.js +2 -2
- package/dist/crypto/ApiSigner.js +5 -1
- package/dist/index.js +175 -0
- package/dist/model/AddressesEventData.js +3 -3
- package/dist/model/ApprovalDetail.js +7 -7
- package/dist/model/AutoSweepTask.js +198 -0
- package/dist/model/AutoSweepTaskStatus.js +61 -0
- package/dist/model/BalanceUpdateInfoEventData.js +3 -3
- package/dist/model/ChainsEventData.js +3 -3
- package/dist/model/CreateAutoSweepTask.js +126 -0
- package/dist/model/CreateCryptoAddressRequest.js +138 -0
- package/dist/model/CreateCustodialWalletParams.js +9 -0
- package/dist/model/CreateExchangeWalletParams.js +14 -0
- package/dist/model/CreateMpcWalletParams.js +14 -0
- package/dist/model/CreatePaymentOrderRequest.js +5 -5
- package/dist/model/CreateSafeWalletParams.js +9 -0
- package/dist/model/CreateSettlement.js +27 -4
- package/dist/model/CreateSmartContractWalletParams.js +6 -0
- package/dist/model/CreateSweepToAddress.js +126 -0
- package/dist/model/CreateWalletParams.js +6 -0
- package/dist/model/CreatedWalletInfo.js +6 -0
- package/dist/model/CryptoAddress.js +12 -12
- package/dist/model/CustodialWalletInfo.js +9 -0
- package/dist/model/DeleteCryptoAddress201Response.js +110 -0
- package/dist/model/ExchangeWalletInfo.js +14 -0
- package/dist/model/ForcedSweep.js +9 -9
- package/dist/model/ForcedSweepRequest.js +8 -9
- package/dist/model/GetTokenizationAllowlistActivation200Response.js +107 -0
- package/dist/model/ListAutoSweepTask200Response.js +123 -0
- package/dist/model/ListMerchantBalances200Response.js +107 -0
- package/dist/model/ListPaymentWalletBalances200Response.js +107 -0
- package/dist/model/ListSettlementDetails200Response.js +123 -0
- package/dist/model/ListTokenizationBlocklistAddresses200Response.js +145 -0
- package/dist/model/ListWalletSweepToAddresses200Response.js +107 -0
- package/dist/model/MPCVaultEventData.js +3 -3
- package/dist/model/MPCWalletInfo.js +14 -0
- package/dist/model/MerchantBalance.js +201 -0
- package/dist/model/PaymentAddressUpdateEventData.js +13 -13
- package/dist/model/PaymentOrderEventData.js +3 -3
- package/dist/model/PaymentRefundEventData.js +3 -3
- package/dist/model/PaymentSettlementEvent.js +42 -3
- package/dist/model/PaymentTransactionEventData.js +6 -6
- package/dist/model/PaymentWalletBalance.js +177 -0
- package/dist/model/PspBalance.js +175 -0
- package/dist/model/ReceivedAmountPerAddress.js +126 -0
- package/dist/model/SafeWallet.js +9 -0
- package/dist/model/Settlement.js +27 -0
- package/dist/model/SettlementDetail.js +26 -0
- package/dist/model/SettlementInfo.js +7 -7
- package/dist/model/SmartContractWalletInfo.js +6 -0
- package/dist/model/SuspendedTokenEventData.js +3 -3
- package/dist/model/SweepToAddress.js +135 -0
- package/dist/model/SweepToAddressStatus.js +61 -0
- package/dist/model/TSSRequestWebhookEventData.js +3 -3
- package/dist/model/TokenListingEventData.js +3 -3
- package/dist/model/TokenizationActivityInfo.js +8 -4
- package/dist/model/TokenizationAllowlistActivationRequest.js +13 -0
- package/dist/model/TokenizationAllowlistAddressNote.js +4 -4
- package/dist/model/TokenizationAllowlistAddressesResponse.js +145 -0
- package/dist/model/TokenizationBlocklistAddressNote.js +4 -4
- package/dist/model/TokenizationBurnEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationBurnTokenParamsBurnsInner.js +4 -4
- package/dist/model/TokenizationBurnTokenRequest.js +13 -0
- package/dist/model/TokenizationContractCallEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationContractCallParamsData.js +43 -9
- package/dist/model/TokenizationContractCallRequest.js +13 -0
- package/dist/model/TokenizationContractCallType.js +5 -0
- package/dist/model/TokenizationERC20TokenParams.js +4 -4
- package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +6 -0
- package/dist/model/TokenizationEvmContractCallParams.js +2 -2
- package/dist/model/TokenizationIssueEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationIssueTokenParamsTokenParams.js +40 -12
- package/dist/model/TokenizationIssuedTokenRequest.js +14 -1
- package/dist/model/TokenizationMintEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationMintTokenRequest.js +13 -0
- package/dist/model/TokenizationMpcOperationSource.js +2 -2
- package/dist/model/TokenizationPauseEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationPauseTokenRequest.js +13 -0
- package/dist/model/TokenizationSOLTokenParams.js +173 -0
- package/dist/model/TokenizationSolContractCallParams.js +137 -0
- package/dist/model/TokenizationSolTokenPermissionParams.js +140 -0
- package/dist/model/TokenizationToggleAllowlistEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationTokenDetailInfo.js +6 -6
- package/dist/model/TokenizationTokenInfo.js +4 -4
- package/dist/model/TokenizationTokenOperationSource.js +1 -1
- package/dist/model/TokenizationTokenPermissionParams.js +1 -1
- package/dist/model/TokenizationTokenPermissionType.js +15 -0
- package/dist/model/TokenizationTokenStandard.js +5 -0
- package/dist/model/TokenizationUnpauseEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationUnpauseTokenRequest.js +13 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesParamsAddressesInner.js +1 -1
- package/dist/model/TokenizationUpdateAllowlistAddressesRequest.js +13 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesParamsAddressesInner.js +1 -1
- package/dist/model/TokenizationUpdateBlocklistAddressesRequest.js +13 -0
- package/dist/model/TokenizationWeb3OperationSource.js +2 -2
- package/dist/model/TokensEventData.js +3 -3
- package/dist/model/TopUpAddress.js +0 -1
- package/dist/model/TransactionWebhookEventData.js +3 -3
- package/dist/model/UpdateCustodialWalletParams.js +13 -6
- package/dist/model/UpdateMpcWalletParams.js +13 -6
- package/dist/model/UpdateTopUpAddress.js +3 -3
- package/dist/model/UpdateWalletParams.js +6 -0
- package/dist/model/WalletInfo.js +6 -0
- package/dist/model/WalletInfoEventData.js +3 -3
- package/dist/model/WebhookEventData.js +19 -7
- package/dist/model/WebhookEventDataType.js +2 -2
- package/docs/AddressesEventData.md +1 -1
- package/docs/ApprovalDetail.md +1 -1
- package/docs/AutoSweepApi.md +285 -0
- package/docs/AutoSweepTask.md +16 -0
- package/docs/AutoSweepTaskStatus.md +12 -0
- package/docs/BalanceUpdateInfoEventData.md +1 -1
- package/docs/ChainsEventData.md +1 -1
- package/docs/CreateAutoSweepTask.md +10 -0
- package/docs/CreateCryptoAddressRequest.md +11 -0
- package/docs/CreateCustodialWalletParams.md +1 -0
- package/docs/CreateExchangeWalletParams.md +1 -0
- package/docs/CreateMpcWalletParams.md +1 -0
- package/docs/CreatePaymentOrderRequest.md +3 -3
- package/docs/CreateSafeWalletParams.md +1 -0
- package/docs/CreateSettlement.md +1 -1
- package/docs/CreateSmartContractWalletParams.md +1 -0
- package/docs/CreateSweepToAddress.md +10 -0
- package/docs/CreateWalletParams.md +1 -0
- package/docs/CreatedWalletInfo.md +1 -0
- package/docs/CryptoAddress.md +1 -1
- package/docs/CustodialWalletInfo.md +1 -0
- package/docs/DeleteCryptoAddress201Response.md +9 -0
- package/docs/ExchangeWalletInfo.md +1 -0
- package/docs/ForcedSweep.md +7 -7
- package/docs/ForcedSweepRequest.md +4 -4
- package/docs/GetTokenizationAllowlistActivation200Response.md +9 -0
- package/docs/ListAutoSweepTask200Response.md +10 -0
- package/docs/ListMerchantBalances200Response.md +9 -0
- package/docs/ListPaymentWalletBalances200Response.md +9 -0
- package/docs/ListSettlementDetails200Response.md +10 -0
- package/docs/ListTokenizationBlocklistAddresses200Response.md +10 -0
- package/docs/ListWalletSweepToAddresses200Response.md +9 -0
- package/docs/MPCVaultEventData.md +1 -1
- package/docs/MPCWalletInfo.md +1 -0
- package/docs/MerchantBalance.md +16 -0
- package/docs/PaymentAddressUpdateEventData.md +6 -6
- package/docs/PaymentApi.md +403 -16
- package/docs/PaymentOrderEventData.md +1 -1
- package/docs/PaymentRefundEventData.md +1 -1
- package/docs/PaymentSettlementEvent.md +4 -1
- package/docs/PaymentTransactionEventData.md +4 -4
- package/docs/PaymentWalletBalance.md +14 -0
- package/docs/PspBalance.md +14 -0
- package/docs/ReceivedAmountPerAddress.md +10 -0
- package/docs/SafeWallet.md +1 -0
- package/docs/Settlement.md +3 -0
- package/docs/SettlementDetail.md +2 -0
- package/docs/SettlementInfo.md +6 -6
- package/docs/SmartContractWalletInfo.md +1 -0
- package/docs/SuspendedTokenEventData.md +1 -1
- package/docs/SweepToAddress.md +11 -0
- package/docs/SweepToAddressStatus.md +12 -0
- package/docs/TSSRequestWebhookEventData.md +1 -1
- package/docs/TokenListingEventData.md +1 -1
- package/docs/TokenizationActivityInfo.md +2 -2
- package/docs/TokenizationAllowlistActivationRequest.md +1 -0
- package/docs/TokenizationAllowlistAddressNote.md +3 -3
- package/docs/TokenizationAllowlistAddressesResponse.md +10 -0
- package/docs/TokenizationApi.md +1069 -0
- package/docs/TokenizationBlocklistAddressNote.md +3 -3
- package/docs/TokenizationBurnEstimateFeeParams.md +1 -0
- package/docs/TokenizationBurnTokenParamsBurnsInner.md +2 -2
- package/docs/TokenizationBurnTokenRequest.md +1 -0
- package/docs/TokenizationContractCallEstimateFeeParams.md +1 -0
- package/docs/TokenizationContractCallParamsData.md +2 -1
- package/docs/TokenizationContractCallRequest.md +1 -0
- package/docs/TokenizationContractCallType.md +2 -0
- package/docs/TokenizationERC20TokenParams.md +1 -1
- package/docs/TokenizationEstimateFeeRequestOperationParams.md +1 -0
- package/docs/TokenizationEvmContractCallParams.md +1 -1
- package/docs/TokenizationIssueEstimateFeeParams.md +1 -0
- package/docs/TokenizationIssueTokenParamsTokenParams.md +2 -2
- package/docs/TokenizationIssuedTokenRequest.md +2 -1
- package/docs/TokenizationMintEstimateFeeParams.md +1 -0
- package/docs/TokenizationMintTokenRequest.md +1 -0
- package/docs/TokenizationMpcOperationSource.md +1 -1
- package/docs/TokenizationPauseEstimateFeeParams.md +1 -0
- package/docs/TokenizationPauseTokenRequest.md +1 -0
- package/docs/TokenizationSOLTokenParams.md +14 -0
- package/docs/TokenizationSolContractCallParams.md +10 -0
- package/docs/TokenizationSolTokenPermissionParams.md +13 -0
- package/docs/TokenizationToggleAllowlistEstimateFeeParams.md +1 -0
- package/docs/TokenizationTokenDetailInfo.md +1 -1
- package/docs/TokenizationTokenInfo.md +1 -1
- package/docs/TokenizationTokenOperationSource.md +1 -1
- package/docs/TokenizationTokenPermissionType.md +6 -0
- package/docs/TokenizationTokenStandard.md +2 -0
- package/docs/TokenizationUnpauseEstimateFeeParams.md +1 -0
- package/docs/TokenizationUnpauseTokenRequest.md +1 -0
- package/docs/TokenizationUpdateAllowlistAddressesEstimateFeeParams.md +1 -0
- package/docs/TokenizationUpdateAllowlistAddressesParamsAddressesInner.md +1 -1
- package/docs/TokenizationUpdateAllowlistAddressesRequest.md +1 -0
- package/docs/TokenizationUpdateBlocklistAddressesEstimateFeeParams.md +1 -0
- package/docs/TokenizationUpdateBlocklistAddressesParamsAddressesInner.md +1 -1
- package/docs/TokenizationUpdateBlocklistAddressesRequest.md +1 -0
- package/docs/TokenizationWeb3OperationSource.md +1 -1
- package/docs/TokensEventData.md +1 -1
- package/docs/TransactionWebhookEventData.md +1 -1
- package/docs/TransactionsApi.md +113 -1
- package/docs/UpdateCustodialWalletParams.md +2 -1
- package/docs/UpdateMpcWalletParams.md +2 -1
- package/docs/UpdateTopUpAddress.md +1 -1
- package/docs/UpdateWalletParams.md +1 -0
- package/docs/WalletInfo.md +1 -0
- package/docs/WalletInfoEventData.md +1 -1
- package/docs/WalletsApi.md +1 -1
- package/docs/WebhookEventData.md +9 -7
- package/docs/WebhookEventDataType.md +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _ApprovalDetail = _interopRequireDefault(require("../model/ApprovalDetail"));
|
|
9
|
+
var _ApprovalTemplate = _interopRequireDefault(require("../model/ApprovalTemplate"));
|
|
8
10
|
var _BroadcastSignedTransactions201ResponseInner = _interopRequireDefault(require("../model/BroadcastSignedTransactions201ResponseInner"));
|
|
9
11
|
var _BroadcastSignedTransactionsRequest = _interopRequireDefault(require("../model/BroadcastSignedTransactionsRequest"));
|
|
10
12
|
var _CheckLoopTransfers200ResponseInner = _interopRequireDefault(require("../model/CheckLoopTransfers200ResponseInner"));
|
|
@@ -500,6 +502,55 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
500
502
|
});
|
|
501
503
|
}
|
|
502
504
|
|
|
505
|
+
/**
|
|
506
|
+
* List transaction approval details
|
|
507
|
+
* This operation retrieves detailed approval information for a specified transaction.
|
|
508
|
+
* @param {Object} opts Optional parameters
|
|
509
|
+
* @param {String} [transaction_ids] A list of transaction IDs, separated by comma.
|
|
510
|
+
* @param {String} [cobo_ids] A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
|
|
511
|
+
* @param {String} [request_ids] A list of request IDs, separated by comma.
|
|
512
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/ApprovalDetail>} and HTTP response
|
|
513
|
+
*/
|
|
514
|
+
}, {
|
|
515
|
+
key: "listApprovalDetailsWithHttpInfo",
|
|
516
|
+
value: function listApprovalDetailsWithHttpInfo(opts) {
|
|
517
|
+
opts = opts || {};
|
|
518
|
+
var postBody = null;
|
|
519
|
+
if (postBody && postBody.toJSON) {
|
|
520
|
+
postBody = postBody.toJSON();
|
|
521
|
+
}
|
|
522
|
+
var pathParams = {};
|
|
523
|
+
var queryParams = {
|
|
524
|
+
'transaction_ids': opts['transaction_ids'],
|
|
525
|
+
'cobo_ids': opts['cobo_ids'],
|
|
526
|
+
'request_ids': opts['request_ids']
|
|
527
|
+
};
|
|
528
|
+
var headerParams = {};
|
|
529
|
+
var formParams = {};
|
|
530
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
531
|
+
var contentTypes = [];
|
|
532
|
+
var accepts = ['application/json'];
|
|
533
|
+
var returnType = [_ApprovalDetail["default"]];
|
|
534
|
+
return this.apiClient.callApi('/transactions/approval/details', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* List transaction approval details
|
|
539
|
+
* This operation retrieves detailed approval information for a specified transaction.
|
|
540
|
+
* @param {Object} opts Optional parameters
|
|
541
|
+
* @param {String} opts.transaction_ids A list of transaction IDs, separated by comma.
|
|
542
|
+
* @param {String} opts.cobo_ids A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
|
|
543
|
+
* @param {String} opts.request_ids A list of request IDs, separated by comma.
|
|
544
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/ApprovalDetail>}
|
|
545
|
+
*/
|
|
546
|
+
}, {
|
|
547
|
+
key: "listApprovalDetails",
|
|
548
|
+
value: function listApprovalDetails(opts) {
|
|
549
|
+
return this.listApprovalDetailsWithHttpInfo(opts).then(function (response_and_data) {
|
|
550
|
+
return response_and_data.data;
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
|
|
503
554
|
/**
|
|
504
555
|
* List transaction approval details
|
|
505
556
|
* This operation retrieves detailed approval information for all transactions.
|
|
@@ -546,6 +597,56 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
546
597
|
});
|
|
547
598
|
}
|
|
548
599
|
|
|
600
|
+
/**
|
|
601
|
+
* list transaction templates
|
|
602
|
+
* This operation retrieves transaction templates based on the specified transaction type and template version. The response includes a list of templates that can be used for creating transactions approval message.
|
|
603
|
+
* @param {String} template_key The key of the transaction template to be used for creating a transaction approval message.
|
|
604
|
+
* @param {Object} opts Optional parameters
|
|
605
|
+
* @param {String} [template_version] The version of the template used for the transaction approval.
|
|
606
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/ApprovalTemplate>} and HTTP response
|
|
607
|
+
*/
|
|
608
|
+
}, {
|
|
609
|
+
key: "listTransactionTemplatesWithHttpInfo",
|
|
610
|
+
value: function listTransactionTemplatesWithHttpInfo(template_key, opts) {
|
|
611
|
+
opts = opts || {};
|
|
612
|
+
var postBody = null;
|
|
613
|
+
if (postBody && postBody.toJSON) {
|
|
614
|
+
postBody = postBody.toJSON();
|
|
615
|
+
}
|
|
616
|
+
// verify the required parameter 'template_key' is set
|
|
617
|
+
if (template_key === undefined || template_key === null) {
|
|
618
|
+
throw new Error("Missing the required parameter 'template_key' when calling listTransactionTemplates");
|
|
619
|
+
}
|
|
620
|
+
var pathParams = {};
|
|
621
|
+
var queryParams = {
|
|
622
|
+
'template_key': template_key,
|
|
623
|
+
'template_version': opts['template_version']
|
|
624
|
+
};
|
|
625
|
+
var headerParams = {};
|
|
626
|
+
var formParams = {};
|
|
627
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
628
|
+
var contentTypes = [];
|
|
629
|
+
var accepts = ['application/json'];
|
|
630
|
+
var returnType = [_ApprovalTemplate["default"]];
|
|
631
|
+
return this.apiClient.callApi('/transactions/templates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* list transaction templates
|
|
636
|
+
* This operation retrieves transaction templates based on the specified transaction type and template version. The response includes a list of templates that can be used for creating transactions approval message.
|
|
637
|
+
* @param {String} template_key The key of the transaction template to be used for creating a transaction approval message.
|
|
638
|
+
* @param {Object} opts Optional parameters
|
|
639
|
+
* @param {String} opts.template_version The version of the template used for the transaction approval.
|
|
640
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/ApprovalTemplate>}
|
|
641
|
+
*/
|
|
642
|
+
}, {
|
|
643
|
+
key: "listTransactionTemplates",
|
|
644
|
+
value: function listTransactionTemplates(template_key, opts) {
|
|
645
|
+
return this.listTransactionTemplatesWithHttpInfo(template_key, opts).then(function (response_and_data) {
|
|
646
|
+
return response_and_data.data;
|
|
647
|
+
});
|
|
648
|
+
}
|
|
649
|
+
|
|
549
650
|
/**
|
|
550
651
|
* List all transactions
|
|
551
652
|
* 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.
|
|
@@ -648,7 +749,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
648
749
|
|
|
649
750
|
/**
|
|
650
751
|
* Resend transaction
|
|
651
|
-
* This operation resends a specified transaction. Resending a transaction means retrying a previously failed transaction. For more details about resending a transaction, see [Resend a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#resend-a-transaction).
|
|
752
|
+
* This operation resends a specified transaction. Resending a transaction means retrying a previously failed transaction. For more details about resending a transaction, see [Resend a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#resend-a-transaction). Resending a transaction is a high‑risk operation. Ensure that the original transaction has not been broadcast to the blockchain, has already expired, and will never be confirmed. Otherwise, the same transaction may be confirmed on‑chain twice. <Note>This operation only applies to transactions from MPC Wallets in the SOL token.</Note>
|
|
652
753
|
* @param {String} transaction_id The transaction ID.
|
|
653
754
|
* @param {Object} opts Optional parameters
|
|
654
755
|
* @param {module:model/TransactionResend} [TransactionResend] The request body to resend transactions
|
|
@@ -681,7 +782,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
681
782
|
|
|
682
783
|
/**
|
|
683
784
|
* Resend transaction
|
|
684
|
-
* This operation resends a specified transaction. Resending a transaction means retrying a previously failed transaction. For more details about resending a transaction, see [Resend a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#resend-a-transaction).
|
|
785
|
+
* This operation resends a specified transaction. Resending a transaction means retrying a previously failed transaction. For more details about resending a transaction, see [Resend a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#resend-a-transaction). Resending a transaction is a high‑risk operation. Ensure that the original transaction has not been broadcast to the blockchain, has already expired, and will never be confirmed. Otherwise, the same transaction may be confirmed on‑chain twice. <Note>This operation only applies to transactions from MPC Wallets in the SOL token.</Note>
|
|
685
786
|
* @param {String} transaction_id The transaction ID.
|
|
686
787
|
* @param {Object} opts Optional parameters
|
|
687
788
|
* @param {module:model/TransactionResend} opts.TransactionResend The request body to resend transactions
|
package/dist/api/WalletsApi.js
CHANGED
|
@@ -497,7 +497,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
497
497
|
|
|
498
498
|
/**
|
|
499
499
|
* Get maximum transferable value
|
|
500
|
-
* This operation retrieves the maximum amount that you can transfer from a wallet or a specified wallet address, along with the corresponding transaction fee. You must specify `to_address` in your query because it affects the transaction fee. <Note>This operation is applicable to Custodial Wallets and MPC Wallets only.</Note>
|
|
500
|
+
* <Warning>This operation is planned for deprecation. We recommend using [Estimate maximum transferable value](https://www.cobo.com/developers/v2/api-references/wallets/estimate-maximum-transferable-value) instead.</Warning> This operation retrieves the maximum amount that you can transfer from a wallet or a specified wallet address, along with the corresponding transaction fee. You must specify `to_address` in your query because it affects the transaction fee. <Note>This operation is applicable to Custodial Wallets and MPC Wallets only.</Note>
|
|
501
501
|
* @param {String} wallet_id The wallet ID.
|
|
502
502
|
* @param {String} token_id The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
|
|
503
503
|
* @param {String} fee_rate The fee rate in sats/vByte or gas price in wei.
|
|
@@ -550,7 +550,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
550
550
|
|
|
551
551
|
/**
|
|
552
552
|
* Get maximum transferable value
|
|
553
|
-
* This operation retrieves the maximum amount that you can transfer from a wallet or a specified wallet address, along with the corresponding transaction fee. You must specify `to_address` in your query because it affects the transaction fee. <Note>This operation is applicable to Custodial Wallets and MPC Wallets only.</Note>
|
|
553
|
+
* <Warning>This operation is planned for deprecation. We recommend using [Estimate maximum transferable value](https://www.cobo.com/developers/v2/api-references/wallets/estimate-maximum-transferable-value) instead.</Warning> This operation retrieves the maximum amount that you can transfer from a wallet or a specified wallet address, along with the corresponding transaction fee. You must specify `to_address` in your query because it affects the transaction fee. <Note>This operation is applicable to Custodial Wallets and MPC Wallets only.</Note>
|
|
554
554
|
* @param {String} wallet_id The wallet ID.
|
|
555
555
|
* @param {String} token_id The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
|
|
556
556
|
* @param {String} fee_rate The fee rate in sats/vByte or gas price in wei.
|
package/dist/crypto/ApiSigner.js
CHANGED
|
@@ -15,15 +15,19 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
15
15
|
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); }
|
|
16
16
|
var ApiSigner = exports["default"] = /*#__PURE__*/function () {
|
|
17
17
|
function ApiSigner(privateKey) {
|
|
18
|
+
var isDebug = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
18
19
|
_classCallCheck(this, ApiSigner);
|
|
19
20
|
this.privateKey = privateKey;
|
|
21
|
+
this.isDebug = isDebug;
|
|
20
22
|
}
|
|
21
23
|
return _createClass(ApiSigner, [{
|
|
22
24
|
key: "generateHeaders",
|
|
23
25
|
value: function generateHeaders(path, method, body, queryString) {
|
|
24
26
|
var nonce = String(new Date().getTime());
|
|
25
27
|
var strToSign = [method, path, nonce, queryString, body ? JSON.stringify(body) : ''].join('|');
|
|
26
|
-
|
|
28
|
+
if (this.isDebug) {
|
|
29
|
+
console.log("strToSign:", strToSign);
|
|
30
|
+
}
|
|
27
31
|
var hash2String = CryptoJS.SHA256(CryptoJS.SHA256(strToSign)).toString(CryptoJS.enc.Hex);
|
|
28
32
|
return {
|
|
29
33
|
'BIZ-API-KEY': this.getPublicKey(this.privateKey),
|
package/dist/index.js
CHANGED
|
@@ -261,6 +261,24 @@ Object.defineProperty(exports, "AutoFuelType", {
|
|
|
261
261
|
return _AutoFuelType["default"];
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
|
+
Object.defineProperty(exports, "AutoSweepApi", {
|
|
265
|
+
enumerable: true,
|
|
266
|
+
get: function get() {
|
|
267
|
+
return _AutoSweepApi["default"];
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
Object.defineProperty(exports, "AutoSweepTask", {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
get: function get() {
|
|
273
|
+
return _AutoSweepTask["default"];
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
Object.defineProperty(exports, "AutoSweepTaskStatus", {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function get() {
|
|
279
|
+
return _AutoSweepTaskStatus["default"];
|
|
280
|
+
}
|
|
281
|
+
});
|
|
264
282
|
Object.defineProperty(exports, "BTCBIP137MessageSignDestination", {
|
|
265
283
|
enumerable: true,
|
|
266
284
|
get: function get() {
|
|
@@ -561,6 +579,12 @@ Object.defineProperty(exports, "CreateApprovalRequest201Response", {
|
|
|
561
579
|
return _CreateApprovalRequest201Response["default"];
|
|
562
580
|
}
|
|
563
581
|
});
|
|
582
|
+
Object.defineProperty(exports, "CreateAutoSweepTask", {
|
|
583
|
+
enumerable: true,
|
|
584
|
+
get: function get() {
|
|
585
|
+
return _CreateAutoSweepTask["default"];
|
|
586
|
+
}
|
|
587
|
+
});
|
|
564
588
|
Object.defineProperty(exports, "CreateBabylonAirdropRegistration201Response", {
|
|
565
589
|
enumerable: true,
|
|
566
590
|
get: function get() {
|
|
@@ -597,6 +621,12 @@ Object.defineProperty(exports, "CreateClaimActivityRequest", {
|
|
|
597
621
|
return _CreateClaimActivityRequest["default"];
|
|
598
622
|
}
|
|
599
623
|
});
|
|
624
|
+
Object.defineProperty(exports, "CreateCryptoAddressRequest", {
|
|
625
|
+
enumerable: true,
|
|
626
|
+
get: function get() {
|
|
627
|
+
return _CreateCryptoAddressRequest["default"];
|
|
628
|
+
}
|
|
629
|
+
});
|
|
600
630
|
Object.defineProperty(exports, "CreateCustodialWalletParams", {
|
|
601
631
|
enumerable: true,
|
|
602
632
|
get: function get() {
|
|
@@ -717,6 +747,12 @@ Object.defineProperty(exports, "CreateStakeActivityRequest", {
|
|
|
717
747
|
return _CreateStakeActivityRequest["default"];
|
|
718
748
|
}
|
|
719
749
|
});
|
|
750
|
+
Object.defineProperty(exports, "CreateSweepToAddress", {
|
|
751
|
+
enumerable: true,
|
|
752
|
+
get: function get() {
|
|
753
|
+
return _CreateSweepToAddress["default"];
|
|
754
|
+
}
|
|
755
|
+
});
|
|
720
756
|
Object.defineProperty(exports, "CreateTokenListingRequest201Response", {
|
|
721
757
|
enumerable: true,
|
|
722
758
|
get: function get() {
|
|
@@ -837,6 +873,12 @@ Object.defineProperty(exports, "CustodialWeb3TransferSource", {
|
|
|
837
873
|
return _CustodialWeb3TransferSource["default"];
|
|
838
874
|
}
|
|
839
875
|
});
|
|
876
|
+
Object.defineProperty(exports, "DeleteCryptoAddress201Response", {
|
|
877
|
+
enumerable: true,
|
|
878
|
+
get: function get() {
|
|
879
|
+
return _DeleteCryptoAddress201Response["default"];
|
|
880
|
+
}
|
|
881
|
+
});
|
|
840
882
|
Object.defineProperty(exports, "DeleteGuardPubkey201Response", {
|
|
841
883
|
enumerable: true,
|
|
842
884
|
get: function get() {
|
|
@@ -1293,6 +1335,12 @@ Object.defineProperty(exports, "GetToken4XXResponse", {
|
|
|
1293
1335
|
return _GetToken4XXResponse["default"];
|
|
1294
1336
|
}
|
|
1295
1337
|
});
|
|
1338
|
+
Object.defineProperty(exports, "GetTokenizationAllowlistActivation200Response", {
|
|
1339
|
+
enumerable: true,
|
|
1340
|
+
get: function get() {
|
|
1341
|
+
return _GetTokenizationAllowlistActivation200Response["default"];
|
|
1342
|
+
}
|
|
1343
|
+
});
|
|
1296
1344
|
Object.defineProperty(exports, "GetTransactionLimitation200Response", {
|
|
1297
1345
|
enumerable: true,
|
|
1298
1346
|
get: function get() {
|
|
@@ -1395,6 +1443,12 @@ Object.defineProperty(exports, "ListAssetBalancesForExchangeWallet200Response",
|
|
|
1395
1443
|
return _ListAssetBalancesForExchangeWallet200Response["default"];
|
|
1396
1444
|
}
|
|
1397
1445
|
});
|
|
1446
|
+
Object.defineProperty(exports, "ListAutoSweepTask200Response", {
|
|
1447
|
+
enumerable: true,
|
|
1448
|
+
get: function get() {
|
|
1449
|
+
return _ListAutoSweepTask200Response["default"];
|
|
1450
|
+
}
|
|
1451
|
+
});
|
|
1398
1452
|
Object.defineProperty(exports, "ListBabylonAirdropRegistrations200Response", {
|
|
1399
1453
|
enumerable: true,
|
|
1400
1454
|
get: function get() {
|
|
@@ -1455,6 +1509,12 @@ Object.defineProperty(exports, "ListKeyShareHolders200Response", {
|
|
|
1455
1509
|
return _ListKeyShareHolders200Response["default"];
|
|
1456
1510
|
}
|
|
1457
1511
|
});
|
|
1512
|
+
Object.defineProperty(exports, "ListMerchantBalances200Response", {
|
|
1513
|
+
enumerable: true,
|
|
1514
|
+
get: function get() {
|
|
1515
|
+
return _ListMerchantBalances200Response["default"];
|
|
1516
|
+
}
|
|
1517
|
+
});
|
|
1458
1518
|
Object.defineProperty(exports, "ListMerchants200Response", {
|
|
1459
1519
|
enumerable: true,
|
|
1460
1520
|
get: function get() {
|
|
@@ -1479,6 +1539,18 @@ Object.defineProperty(exports, "ListPaymentOrders200Response", {
|
|
|
1479
1539
|
return _ListPaymentOrders200Response["default"];
|
|
1480
1540
|
}
|
|
1481
1541
|
});
|
|
1542
|
+
Object.defineProperty(exports, "ListPaymentWalletBalances200Response", {
|
|
1543
|
+
enumerable: true,
|
|
1544
|
+
get: function get() {
|
|
1545
|
+
return _ListPaymentWalletBalances200Response["default"];
|
|
1546
|
+
}
|
|
1547
|
+
});
|
|
1548
|
+
Object.defineProperty(exports, "ListSettlementDetails200Response", {
|
|
1549
|
+
enumerable: true,
|
|
1550
|
+
get: function get() {
|
|
1551
|
+
return _ListSettlementDetails200Response["default"];
|
|
1552
|
+
}
|
|
1553
|
+
});
|
|
1482
1554
|
Object.defineProperty(exports, "ListSettlementRequests200Response", {
|
|
1483
1555
|
enumerable: true,
|
|
1484
1556
|
get: function get() {
|
|
@@ -1551,6 +1623,12 @@ Object.defineProperty(exports, "ListTokenListingRequests200Response", {
|
|
|
1551
1623
|
return _ListTokenListingRequests200Response["default"];
|
|
1552
1624
|
}
|
|
1553
1625
|
});
|
|
1626
|
+
Object.defineProperty(exports, "ListTokenizationBlocklistAddresses200Response", {
|
|
1627
|
+
enumerable: true,
|
|
1628
|
+
get: function get() {
|
|
1629
|
+
return _ListTokenizationBlocklistAddresses200Response["default"];
|
|
1630
|
+
}
|
|
1631
|
+
});
|
|
1554
1632
|
Object.defineProperty(exports, "ListTopUpPayers200Response", {
|
|
1555
1633
|
enumerable: true,
|
|
1556
1634
|
get: function get() {
|
|
@@ -1587,6 +1665,12 @@ Object.defineProperty(exports, "ListUtxos200Response", {
|
|
|
1587
1665
|
return _ListUtxos200Response["default"];
|
|
1588
1666
|
}
|
|
1589
1667
|
});
|
|
1668
|
+
Object.defineProperty(exports, "ListWalletSweepToAddresses200Response", {
|
|
1669
|
+
enumerable: true,
|
|
1670
|
+
get: function get() {
|
|
1671
|
+
return _ListWalletSweepToAddresses200Response["default"];
|
|
1672
|
+
}
|
|
1673
|
+
});
|
|
1590
1674
|
Object.defineProperty(exports, "ListWallets200Response", {
|
|
1591
1675
|
enumerable: true,
|
|
1592
1676
|
get: function get() {
|
|
@@ -1689,6 +1773,12 @@ Object.defineProperty(exports, "Merchant", {
|
|
|
1689
1773
|
return _Merchant["default"];
|
|
1690
1774
|
}
|
|
1691
1775
|
});
|
|
1776
|
+
Object.defineProperty(exports, "MerchantBalance", {
|
|
1777
|
+
enumerable: true,
|
|
1778
|
+
get: function get() {
|
|
1779
|
+
return _MerchantBalance["default"];
|
|
1780
|
+
}
|
|
1781
|
+
});
|
|
1692
1782
|
Object.defineProperty(exports, "MessageSignDestination", {
|
|
1693
1783
|
enumerable: true,
|
|
1694
1784
|
get: function get() {
|
|
@@ -1833,6 +1923,12 @@ Object.defineProperty(exports, "PaymentTransactionEventData", {
|
|
|
1833
1923
|
return _PaymentTransactionEventData["default"];
|
|
1834
1924
|
}
|
|
1835
1925
|
});
|
|
1926
|
+
Object.defineProperty(exports, "PaymentWalletBalance", {
|
|
1927
|
+
enumerable: true,
|
|
1928
|
+
get: function get() {
|
|
1929
|
+
return _PaymentWalletBalance["default"];
|
|
1930
|
+
}
|
|
1931
|
+
});
|
|
1836
1932
|
Object.defineProperty(exports, "PayoutChannel", {
|
|
1837
1933
|
enumerable: true,
|
|
1838
1934
|
get: function get() {
|
|
@@ -1899,6 +1995,12 @@ Object.defineProperty(exports, "PrimeBrokerApi", {
|
|
|
1899
1995
|
return _PrimeBrokerApi["default"];
|
|
1900
1996
|
}
|
|
1901
1997
|
});
|
|
1998
|
+
Object.defineProperty(exports, "PspBalance", {
|
|
1999
|
+
enumerable: true,
|
|
2000
|
+
get: function get() {
|
|
2001
|
+
return _PspBalance["default"];
|
|
2002
|
+
}
|
|
2003
|
+
});
|
|
1902
2004
|
Object.defineProperty(exports, "QueryApprovalStatement200Response", {
|
|
1903
2005
|
enumerable: true,
|
|
1904
2006
|
get: function get() {
|
|
@@ -1923,6 +2025,12 @@ Object.defineProperty(exports, "RawMessageSignDestination", {
|
|
|
1923
2025
|
return _RawMessageSignDestination["default"];
|
|
1924
2026
|
}
|
|
1925
2027
|
});
|
|
2028
|
+
Object.defineProperty(exports, "ReceivedAmountPerAddress", {
|
|
2029
|
+
enumerable: true,
|
|
2030
|
+
get: function get() {
|
|
2031
|
+
return _ReceivedAmountPerAddress["default"];
|
|
2032
|
+
}
|
|
2033
|
+
});
|
|
1926
2034
|
Object.defineProperty(exports, "RefreshAddressBalancesByToken200Response", {
|
|
1927
2035
|
enumerable: true,
|
|
1928
2036
|
get: function get() {
|
|
@@ -2343,6 +2451,18 @@ Object.defineProperty(exports, "SwapType", {
|
|
|
2343
2451
|
return _SwapType["default"];
|
|
2344
2452
|
}
|
|
2345
2453
|
});
|
|
2454
|
+
Object.defineProperty(exports, "SweepToAddress", {
|
|
2455
|
+
enumerable: true,
|
|
2456
|
+
get: function get() {
|
|
2457
|
+
return _SweepToAddress["default"];
|
|
2458
|
+
}
|
|
2459
|
+
});
|
|
2460
|
+
Object.defineProperty(exports, "SweepToAddressStatus", {
|
|
2461
|
+
enumerable: true,
|
|
2462
|
+
get: function get() {
|
|
2463
|
+
return _SweepToAddressStatus["default"];
|
|
2464
|
+
}
|
|
2465
|
+
});
|
|
2346
2466
|
Object.defineProperty(exports, "TSSBaseRequestEventData", {
|
|
2347
2467
|
enumerable: true,
|
|
2348
2468
|
get: function get() {
|
|
@@ -2661,6 +2781,18 @@ Object.defineProperty(exports, "TokenizationAllowlistAddressNote", {
|
|
|
2661
2781
|
return _TokenizationAllowlistAddressNote["default"];
|
|
2662
2782
|
}
|
|
2663
2783
|
});
|
|
2784
|
+
Object.defineProperty(exports, "TokenizationAllowlistAddressesResponse", {
|
|
2785
|
+
enumerable: true,
|
|
2786
|
+
get: function get() {
|
|
2787
|
+
return _TokenizationAllowlistAddressesResponse["default"];
|
|
2788
|
+
}
|
|
2789
|
+
});
|
|
2790
|
+
Object.defineProperty(exports, "TokenizationApi", {
|
|
2791
|
+
enumerable: true,
|
|
2792
|
+
get: function get() {
|
|
2793
|
+
return _TokenizationApi["default"];
|
|
2794
|
+
}
|
|
2795
|
+
});
|
|
2664
2796
|
Object.defineProperty(exports, "TokenizationAppInitiator", {
|
|
2665
2797
|
enumerable: true,
|
|
2666
2798
|
get: function get() {
|
|
@@ -2871,6 +3003,24 @@ Object.defineProperty(exports, "TokenizationPauseTokenRequest", {
|
|
|
2871
3003
|
return _TokenizationPauseTokenRequest["default"];
|
|
2872
3004
|
}
|
|
2873
3005
|
});
|
|
3006
|
+
Object.defineProperty(exports, "TokenizationSOLTokenParams", {
|
|
3007
|
+
enumerable: true,
|
|
3008
|
+
get: function get() {
|
|
3009
|
+
return _TokenizationSOLTokenParams["default"];
|
|
3010
|
+
}
|
|
3011
|
+
});
|
|
3012
|
+
Object.defineProperty(exports, "TokenizationSolContractCallParams", {
|
|
3013
|
+
enumerable: true,
|
|
3014
|
+
get: function get() {
|
|
3015
|
+
return _TokenizationSolContractCallParams["default"];
|
|
3016
|
+
}
|
|
3017
|
+
});
|
|
3018
|
+
Object.defineProperty(exports, "TokenizationSolTokenPermissionParams", {
|
|
3019
|
+
enumerable: true,
|
|
3020
|
+
get: function get() {
|
|
3021
|
+
return _TokenizationSolTokenPermissionParams["default"];
|
|
3022
|
+
}
|
|
3023
|
+
});
|
|
2874
3024
|
Object.defineProperty(exports, "TokenizationStatus", {
|
|
2875
3025
|
enumerable: true,
|
|
2876
3026
|
get: function get() {
|
|
@@ -3899,6 +4049,8 @@ var _ApprovalUserDetail = _interopRequireDefault(require("./model/ApprovalUserDe
|
|
|
3899
4049
|
var _AssetBalance = _interopRequireDefault(require("./model/AssetBalance"));
|
|
3900
4050
|
var _AssetInfo = _interopRequireDefault(require("./model/AssetInfo"));
|
|
3901
4051
|
var _AutoFuelType = _interopRequireDefault(require("./model/AutoFuelType"));
|
|
4052
|
+
var _AutoSweepTask = _interopRequireDefault(require("./model/AutoSweepTask"));
|
|
4053
|
+
var _AutoSweepTaskStatus = _interopRequireDefault(require("./model/AutoSweepTaskStatus"));
|
|
3902
4054
|
var _BTCBIP137MessageSignDestination = _interopRequireDefault(require("./model/BTCBIP137MessageSignDestination"));
|
|
3903
4055
|
var _BTCBIP322MessageSignDestination = _interopRequireDefault(require("./model/BTCBIP322MessageSignDestination"));
|
|
3904
4056
|
var _BTCEIP191MessageSignDestination = _interopRequireDefault(require("./model/BTCEIP191MessageSignDestination"));
|
|
@@ -3949,12 +4101,14 @@ var _CosmosContractCallDestination = _interopRequireDefault(require("./model/Cos
|
|
|
3949
4101
|
var _CosmosContractCallMessage = _interopRequireDefault(require("./model/CosmosContractCallMessage"));
|
|
3950
4102
|
var _CreateAddressRequest = _interopRequireDefault(require("./model/CreateAddressRequest"));
|
|
3951
4103
|
var _CreateApprovalRequest201Response = _interopRequireDefault(require("./model/CreateApprovalRequest201Response"));
|
|
4104
|
+
var _CreateAutoSweepTask = _interopRequireDefault(require("./model/CreateAutoSweepTask"));
|
|
3952
4105
|
var _CreateBabylonAirdropRegistration201Response = _interopRequireDefault(require("./model/CreateBabylonAirdropRegistration201Response"));
|
|
3953
4106
|
var _CreateBabylonAirdropRegistrationRequest = _interopRequireDefault(require("./model/CreateBabylonAirdropRegistrationRequest"));
|
|
3954
4107
|
var _CreateBabylonStakingRegistration201Response = _interopRequireDefault(require("./model/CreateBabylonStakingRegistration201Response"));
|
|
3955
4108
|
var _CreateBabylonStakingRegistrationRequest = _interopRequireDefault(require("./model/CreateBabylonStakingRegistrationRequest"));
|
|
3956
4109
|
var _CreateClaimActivity = _interopRequireDefault(require("./model/CreateClaimActivity"));
|
|
3957
4110
|
var _CreateClaimActivityRequest = _interopRequireDefault(require("./model/CreateClaimActivityRequest"));
|
|
4111
|
+
var _CreateCryptoAddressRequest = _interopRequireDefault(require("./model/CreateCryptoAddressRequest"));
|
|
3958
4112
|
var _CreateCustodialWalletParams = _interopRequireDefault(require("./model/CreateCustodialWalletParams"));
|
|
3959
4113
|
var _CreateExchangeWalletParams = _interopRequireDefault(require("./model/CreateExchangeWalletParams"));
|
|
3960
4114
|
var _CreateKeyShareHolder = _interopRequireDefault(require("./model/CreateKeyShareHolder"));
|
|
@@ -3975,6 +4129,7 @@ var _CreateStakeActivity = _interopRequireDefault(require("./model/CreateStakeAc
|
|
|
3975
4129
|
var _CreateStakeActivity201Response = _interopRequireDefault(require("./model/CreateStakeActivity201Response"));
|
|
3976
4130
|
var _CreateStakeActivityExtra = _interopRequireDefault(require("./model/CreateStakeActivityExtra"));
|
|
3977
4131
|
var _CreateStakeActivityRequest = _interopRequireDefault(require("./model/CreateStakeActivityRequest"));
|
|
4132
|
+
var _CreateSweepToAddress = _interopRequireDefault(require("./model/CreateSweepToAddress"));
|
|
3978
4133
|
var _CreateTokenListingRequest201Response = _interopRequireDefault(require("./model/CreateTokenListingRequest201Response"));
|
|
3979
4134
|
var _CreateTokenListingRequestRequest = _interopRequireDefault(require("./model/CreateTokenListingRequestRequest"));
|
|
3980
4135
|
var _CreateTransferTransaction201Response = _interopRequireDefault(require("./model/CreateTransferTransaction201Response"));
|
|
@@ -3995,6 +4150,7 @@ var _CustodialWalletInfo = _interopRequireDefault(require("./model/CustodialWall
|
|
|
3995
4150
|
var _CustodialWeb3ContractCallSource = _interopRequireDefault(require("./model/CustodialWeb3ContractCallSource"));
|
|
3996
4151
|
var _CustodialWeb3MessageSignSource = _interopRequireDefault(require("./model/CustodialWeb3MessageSignSource"));
|
|
3997
4152
|
var _CustodialWeb3TransferSource = _interopRequireDefault(require("./model/CustodialWeb3TransferSource"));
|
|
4153
|
+
var _DeleteCryptoAddress201Response = _interopRequireDefault(require("./model/DeleteCryptoAddress201Response"));
|
|
3998
4154
|
var _DeleteGuardPubkey201Response = _interopRequireDefault(require("./model/DeleteGuardPubkey201Response"));
|
|
3999
4155
|
var _DeleteKeyShareHolderGroupById201Response = _interopRequireDefault(require("./model/DeleteKeyShareHolderGroupById201Response"));
|
|
4000
4156
|
var _DeleteWalletById201Response = _interopRequireDefault(require("./model/DeleteWalletById201Response"));
|
|
@@ -4066,6 +4222,7 @@ var _GetStakingEstimationFee201Response = _interopRequireDefault(require("./mode
|
|
|
4066
4222
|
var _GetStakingEstimationFeeRequest = _interopRequireDefault(require("./model/GetStakingEstimationFeeRequest"));
|
|
4067
4223
|
var _GetToken2XXResponse = _interopRequireDefault(require("./model/GetToken2XXResponse"));
|
|
4068
4224
|
var _GetToken4XXResponse = _interopRequireDefault(require("./model/GetToken4XXResponse"));
|
|
4225
|
+
var _GetTokenizationAllowlistActivation200Response = _interopRequireDefault(require("./model/GetTokenizationAllowlistActivation200Response"));
|
|
4069
4226
|
var _GetTransactionLimitation200Response = _interopRequireDefault(require("./model/GetTransactionLimitation200Response"));
|
|
4070
4227
|
var _GraphQLError = _interopRequireDefault(require("./model/GraphQLError"));
|
|
4071
4228
|
var _GraphQLErrorLocationsInner = _interopRequireDefault(require("./model/GraphQLErrorLocationsInner"));
|
|
@@ -4083,6 +4240,7 @@ var _ListAddressBooks200Response = _interopRequireDefault(require("./model/ListA
|
|
|
4083
4240
|
var _ListAddresses200Response = _interopRequireDefault(require("./model/ListAddresses200Response"));
|
|
4084
4241
|
var _ListApprovalRequests200Response = _interopRequireDefault(require("./model/ListApprovalRequests200Response"));
|
|
4085
4242
|
var _ListAssetBalancesForExchangeWallet200Response = _interopRequireDefault(require("./model/ListAssetBalancesForExchangeWallet200Response"));
|
|
4243
|
+
var _ListAutoSweepTask200Response = _interopRequireDefault(require("./model/ListAutoSweepTask200Response"));
|
|
4086
4244
|
var _ListBabylonAirdropRegistrations200Response = _interopRequireDefault(require("./model/ListBabylonAirdropRegistrations200Response"));
|
|
4087
4245
|
var _ListBabylonEligibleAirdrops200Response = _interopRequireDefault(require("./model/ListBabylonEligibleAirdrops200Response"));
|
|
4088
4246
|
var _ListBabylonEligibleStakings200Response = _interopRequireDefault(require("./model/ListBabylonEligibleStakings200Response"));
|
|
@@ -4093,10 +4251,13 @@ var _ListExchanges200ResponseInner = _interopRequireDefault(require("./model/Lis
|
|
|
4093
4251
|
var _ListForcedSweepRequests200Response = _interopRequireDefault(require("./model/ListForcedSweepRequests200Response"));
|
|
4094
4252
|
var _ListKeyShareHolderGroups200Response = _interopRequireDefault(require("./model/ListKeyShareHolderGroups200Response"));
|
|
4095
4253
|
var _ListKeyShareHolders200Response = _interopRequireDefault(require("./model/ListKeyShareHolders200Response"));
|
|
4254
|
+
var _ListMerchantBalances200Response = _interopRequireDefault(require("./model/ListMerchantBalances200Response"));
|
|
4096
4255
|
var _ListMerchants200Response = _interopRequireDefault(require("./model/ListMerchants200Response"));
|
|
4097
4256
|
var _ListMpcProjects200Response = _interopRequireDefault(require("./model/ListMpcProjects200Response"));
|
|
4098
4257
|
var _ListMpcVaults200Response = _interopRequireDefault(require("./model/ListMpcVaults200Response"));
|
|
4099
4258
|
var _ListPaymentOrders200Response = _interopRequireDefault(require("./model/ListPaymentOrders200Response"));
|
|
4259
|
+
var _ListPaymentWalletBalances200Response = _interopRequireDefault(require("./model/ListPaymentWalletBalances200Response"));
|
|
4260
|
+
var _ListSettlementDetails200Response = _interopRequireDefault(require("./model/ListSettlementDetails200Response"));
|
|
4100
4261
|
var _ListSettlementRequests200Response = _interopRequireDefault(require("./model/ListSettlementRequests200Response"));
|
|
4101
4262
|
var _ListStakingActivities200Response = _interopRequireDefault(require("./model/ListStakingActivities200Response"));
|
|
4102
4263
|
var _ListStakingPools200Response = _interopRequireDefault(require("./model/ListStakingPools200Response"));
|
|
@@ -4109,12 +4270,14 @@ var _ListTokenBalancesForAddress200Response = _interopRequireDefault(require("./
|
|
|
4109
4270
|
var _ListTokenBalancesForFeeStation200Response = _interopRequireDefault(require("./model/ListTokenBalancesForFeeStation200Response"));
|
|
4110
4271
|
var _ListTokenBalancesForFeeStation200ResponseDataInner = _interopRequireDefault(require("./model/ListTokenBalancesForFeeStation200ResponseDataInner"));
|
|
4111
4272
|
var _ListTokenListingRequests200Response = _interopRequireDefault(require("./model/ListTokenListingRequests200Response"));
|
|
4273
|
+
var _ListTokenizationBlocklistAddresses200Response = _interopRequireDefault(require("./model/ListTokenizationBlocklistAddresses200Response"));
|
|
4112
4274
|
var _ListTopUpPayers200Response = _interopRequireDefault(require("./model/ListTopUpPayers200Response"));
|
|
4113
4275
|
var _ListTopUpPayers200ResponseDataInner = _interopRequireDefault(require("./model/ListTopUpPayers200ResponseDataInner"));
|
|
4114
4276
|
var _ListTransactionApprovalDetails200Response = _interopRequireDefault(require("./model/ListTransactionApprovalDetails200Response"));
|
|
4115
4277
|
var _ListTransactions200Response = _interopRequireDefault(require("./model/ListTransactions200Response"));
|
|
4116
4278
|
var _ListTssRequests200Response = _interopRequireDefault(require("./model/ListTssRequests200Response"));
|
|
4117
4279
|
var _ListUtxos200Response = _interopRequireDefault(require("./model/ListUtxos200Response"));
|
|
4280
|
+
var _ListWalletSweepToAddresses200Response = _interopRequireDefault(require("./model/ListWalletSweepToAddresses200Response"));
|
|
4118
4281
|
var _ListWallets200Response = _interopRequireDefault(require("./model/ListWallets200Response"));
|
|
4119
4282
|
var _ListWebhookEndpoints200Response = _interopRequireDefault(require("./model/ListWebhookEndpoints200Response"));
|
|
4120
4283
|
var _ListWebhookEventDefinitions200ResponseInner = _interopRequireDefault(require("./model/ListWebhookEventDefinitions200ResponseInner"));
|
|
@@ -4132,6 +4295,7 @@ var _MPCWalletInfo = _interopRequireDefault(require("./model/MPCWalletInfo"));
|
|
|
4132
4295
|
var _MaxFeeAmount = _interopRequireDefault(require("./model/MaxFeeAmount"));
|
|
4133
4296
|
var _MaxTransferableValue = _interopRequireDefault(require("./model/MaxTransferableValue"));
|
|
4134
4297
|
var _Merchant = _interopRequireDefault(require("./model/Merchant"));
|
|
4298
|
+
var _MerchantBalance = _interopRequireDefault(require("./model/MerchantBalance"));
|
|
4135
4299
|
var _MessageSignDestination = _interopRequireDefault(require("./model/MessageSignDestination"));
|
|
4136
4300
|
var _MessageSignDestinationType = _interopRequireDefault(require("./model/MessageSignDestinationType"));
|
|
4137
4301
|
var _MessageSignParams = _interopRequireDefault(require("./model/MessageSignParams"));
|
|
@@ -4153,6 +4317,7 @@ var _PaymentRefundEventData = _interopRequireDefault(require("./model/PaymentRef
|
|
|
4153
4317
|
var _PaymentSettlementEvent = _interopRequireDefault(require("./model/PaymentSettlementEvent"));
|
|
4154
4318
|
var _PaymentTransaction = _interopRequireDefault(require("./model/PaymentTransaction"));
|
|
4155
4319
|
var _PaymentTransactionEventData = _interopRequireDefault(require("./model/PaymentTransactionEventData"));
|
|
4320
|
+
var _PaymentWalletBalance = _interopRequireDefault(require("./model/PaymentWalletBalance"));
|
|
4156
4321
|
var _PayoutChannel = _interopRequireDefault(require("./model/PayoutChannel"));
|
|
4157
4322
|
var _PolicyAction = _interopRequireDefault(require("./model/PolicyAction"));
|
|
4158
4323
|
var _PolicyActionContent = _interopRequireDefault(require("./model/PolicyActionContent"));
|
|
@@ -4163,10 +4328,12 @@ var _PolicyFieldValueType = _interopRequireDefault(require("./model/PolicyFieldV
|
|
|
4163
4328
|
var _PoolDetails = _interopRequireDefault(require("./model/PoolDetails"));
|
|
4164
4329
|
var _PoolDetailsAllOfValidatorsInfo = _interopRequireDefault(require("./model/PoolDetailsAllOfValidatorsInfo"));
|
|
4165
4330
|
var _PoolSummary = _interopRequireDefault(require("./model/PoolSummary"));
|
|
4331
|
+
var _PspBalance = _interopRequireDefault(require("./model/PspBalance"));
|
|
4166
4332
|
var _QueryApprovalStatement200Response = _interopRequireDefault(require("./model/QueryApprovalStatement200Response"));
|
|
4167
4333
|
var _QueryGuardPubkey200Response = _interopRequireDefault(require("./model/QueryGuardPubkey200Response"));
|
|
4168
4334
|
var _QueryGuardPubkey200ResponseAddressesInner = _interopRequireDefault(require("./model/QueryGuardPubkey200ResponseAddressesInner"));
|
|
4169
4335
|
var _RawMessageSignDestination = _interopRequireDefault(require("./model/RawMessageSignDestination"));
|
|
4336
|
+
var _ReceivedAmountPerAddress = _interopRequireDefault(require("./model/ReceivedAmountPerAddress"));
|
|
4170
4337
|
var _RefreshAddressBalancesByToken200Response = _interopRequireDefault(require("./model/RefreshAddressBalancesByToken200Response"));
|
|
4171
4338
|
var _RefreshAddressBalancesByTokenRequest = _interopRequireDefault(require("./model/RefreshAddressBalancesByTokenRequest"));
|
|
4172
4339
|
var _RefreshPermissionTokenRequest = _interopRequireDefault(require("./model/RefreshPermissionTokenRequest"));
|
|
@@ -4235,6 +4402,8 @@ var _SwapQuote = _interopRequireDefault(require("./model/SwapQuote"));
|
|
|
4235
4402
|
var _SwapSingingStatus = _interopRequireDefault(require("./model/SwapSingingStatus"));
|
|
4236
4403
|
var _SwapToken = _interopRequireDefault(require("./model/SwapToken"));
|
|
4237
4404
|
var _SwapType = _interopRequireDefault(require("./model/SwapType"));
|
|
4405
|
+
var _SweepToAddress = _interopRequireDefault(require("./model/SweepToAddress"));
|
|
4406
|
+
var _SweepToAddressStatus = _interopRequireDefault(require("./model/SweepToAddressStatus"));
|
|
4238
4407
|
var _TSSBaseRequestEventData = _interopRequireDefault(require("./model/TSSBaseRequestEventData"));
|
|
4239
4408
|
var _TSSCallbackActionType = _interopRequireDefault(require("./model/TSSCallbackActionType"));
|
|
4240
4409
|
var _TSSCallbackRequest = _interopRequireDefault(require("./model/TSSCallbackRequest"));
|
|
@@ -4288,6 +4457,7 @@ var _TokenizationAddressPermission = _interopRequireDefault(require("./model/Tok
|
|
|
4288
4457
|
var _TokenizationAllowlistActivationParams = _interopRequireDefault(require("./model/TokenizationAllowlistActivationParams"));
|
|
4289
4458
|
var _TokenizationAllowlistActivationRequest = _interopRequireDefault(require("./model/TokenizationAllowlistActivationRequest"));
|
|
4290
4459
|
var _TokenizationAllowlistAddressNote = _interopRequireDefault(require("./model/TokenizationAllowlistAddressNote"));
|
|
4460
|
+
var _TokenizationAllowlistAddressesResponse = _interopRequireDefault(require("./model/TokenizationAllowlistAddressesResponse"));
|
|
4291
4461
|
var _TokenizationAppInitiator = _interopRequireDefault(require("./model/TokenizationAppInitiator"));
|
|
4292
4462
|
var _TokenizationBlocklistAddressNote = _interopRequireDefault(require("./model/TokenizationBlocklistAddressNote"));
|
|
4293
4463
|
var _TokenizationBurnEstimateFeeParams = _interopRequireDefault(require("./model/TokenizationBurnEstimateFeeParams"));
|
|
@@ -4323,6 +4493,9 @@ var _TokenizationOperationType = _interopRequireDefault(require("./model/Tokeniz
|
|
|
4323
4493
|
var _TokenizationPauseEstimateFeeParams = _interopRequireDefault(require("./model/TokenizationPauseEstimateFeeParams"));
|
|
4324
4494
|
var _TokenizationPauseTokenParams = _interopRequireDefault(require("./model/TokenizationPauseTokenParams"));
|
|
4325
4495
|
var _TokenizationPauseTokenRequest = _interopRequireDefault(require("./model/TokenizationPauseTokenRequest"));
|
|
4496
|
+
var _TokenizationSOLTokenParams = _interopRequireDefault(require("./model/TokenizationSOLTokenParams"));
|
|
4497
|
+
var _TokenizationSolContractCallParams = _interopRequireDefault(require("./model/TokenizationSolContractCallParams"));
|
|
4498
|
+
var _TokenizationSolTokenPermissionParams = _interopRequireDefault(require("./model/TokenizationSolTokenPermissionParams"));
|
|
4326
4499
|
var _TokenizationStatus = _interopRequireDefault(require("./model/TokenizationStatus"));
|
|
4327
4500
|
var _TokenizationToggleAllowlistEstimateFeeParams = _interopRequireDefault(require("./model/TokenizationToggleAllowlistEstimateFeeParams"));
|
|
4328
4501
|
var _TokenizationTokenDetailInfo = _interopRequireDefault(require("./model/TokenizationTokenDetailInfo"));
|
|
@@ -4483,6 +4656,7 @@ var _WebhookEventStatus = _interopRequireDefault(require("./model/WebhookEventSt
|
|
|
4483
4656
|
var _WebhookEventType = _interopRequireDefault(require("./model/WebhookEventType"));
|
|
4484
4657
|
var _AddressBooksApi = _interopRequireDefault(require("./api/AddressBooksApi"));
|
|
4485
4658
|
var _AppWorkflowsApi = _interopRequireDefault(require("./api/AppWorkflowsApi"));
|
|
4659
|
+
var _AutoSweepApi = _interopRequireDefault(require("./api/AutoSweepApi"));
|
|
4486
4660
|
var _DevelopersApi = _interopRequireDefault(require("./api/DevelopersApi"));
|
|
4487
4661
|
var _DevelopersWebhooksApi = _interopRequireDefault(require("./api/DevelopersWebhooksApi"));
|
|
4488
4662
|
var _FeeStationApi = _interopRequireDefault(require("./api/FeeStationApi"));
|
|
@@ -4491,6 +4665,7 @@ var _OrganizationsApi = _interopRequireDefault(require("./api/OrganizationsApi")
|
|
|
4491
4665
|
var _PaymentApi = _interopRequireDefault(require("./api/PaymentApi"));
|
|
4492
4666
|
var _PrimeBrokerApi = _interopRequireDefault(require("./api/PrimeBrokerApi"));
|
|
4493
4667
|
var _StakingsApi = _interopRequireDefault(require("./api/StakingsApi"));
|
|
4668
|
+
var _TokenizationApi = _interopRequireDefault(require("./api/TokenizationApi"));
|
|
4494
4669
|
var _TransactionsApi = _interopRequireDefault(require("./api/TransactionsApi"));
|
|
4495
4670
|
var _TravelRuleApi = _interopRequireDefault(require("./api/TravelRuleApi"));
|
|
4496
4671
|
var _WalletsApi = _interopRequireDefault(require("./api/WalletsApi"));
|
|
@@ -35,7 +35,7 @@ var AddressesEventData = /*#__PURE__*/function () {
|
|
|
35
35
|
* Constructs a new <code>AddressesEventData</code>.
|
|
36
36
|
* @alias module:model/AddressesEventData
|
|
37
37
|
* @implements module:model/WebhookEventDataType
|
|
38
|
-
* @param data_type {module:model/AddressesEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The
|
|
38
|
+
* @param data_type {module:model/AddressesEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
39
39
|
*/
|
|
40
40
|
function AddressesEventData(data_type) {
|
|
41
41
|
_classCallCheck(this, AddressesEventData);
|
|
@@ -132,7 +132,7 @@ var AddressesEventData = /*#__PURE__*/function () {
|
|
|
132
132
|
AddressesEventData.RequiredProperties = ["data_type"];
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The
|
|
135
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
136
136
|
* @member {module:model/AddressesEventData.DataTypeEnum} data_type
|
|
137
137
|
*/
|
|
138
138
|
AddressesEventData.prototype['data_type'] = undefined;
|
|
@@ -145,7 +145,7 @@ AddressesEventData.prototype['addresses'] = undefined;
|
|
|
145
145
|
|
|
146
146
|
// Implement WebhookEventDataType interface:
|
|
147
147
|
/**
|
|
148
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The
|
|
148
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
149
149
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
150
150
|
*/
|
|
151
151
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|