@cobo/cobo-waas2 1.2.1 → 1.4.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 +44 -11
- package/dist/ApiClient.js +2 -2
- package/dist/PreRequestScript.js +3 -3
- package/dist/api/DevelopersWebhooksApi.js +1 -1
- package/dist/api/OAuthApi.js +15 -15
- package/dist/api/StakingsApi.js +538 -0
- package/dist/api/TransactionsApi.js +113 -11
- package/dist/api/WalletsApi.js +3 -62
- package/dist/api/WalletsExchangeWalletApi.js +5 -5
- package/dist/api/WalletsMPCWalletsApi.js +3 -3
- package/dist/index.js +161 -0
- package/dist/model/Activity.js +21 -12
- package/dist/model/ActivityAction.js +1 -1
- package/dist/model/ActivityInitiator.js +8 -8
- package/dist/model/ActivityStatus.js +1 -1
- package/dist/model/ActivityTimeline.js +4 -2
- package/dist/model/ActivityType.js +1 -16
- package/dist/model/AddressBook.js +202 -0
- package/dist/model/AddressEncoding.js +1 -1
- package/dist/model/AddressInfo.js +40 -1
- package/dist/model/AddressTransferDestination.js +4 -4
- package/dist/model/AddressTransferDestinationAccountOutput.js +3 -3
- package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +2 -2
- package/dist/model/AmountDetailsInner.js +1 -14
- package/dist/model/AmountStatus.js +1 -1
- package/dist/model/AssetBalance.js +1 -1
- package/dist/model/AssetInfo.js +1 -1
- package/dist/model/BabylonStakeExtra.js +10 -10
- package/dist/model/BabylonStakingExtra.js +175 -0
- package/dist/model/BabylonValidator.js +35 -15
- package/dist/model/BaseContractCallSource.js +2 -2
- package/dist/model/BaseEstimateStakingFee.js +1 -1
- package/dist/model/BaseStakeExtra.js +2 -2
- package/dist/model/BaseStakeSource.js +137 -0
- package/dist/model/BookkeepingRecord.js +243 -0
- package/dist/model/BookkeepingSummary.js +150 -0
- package/dist/model/BroadcastSignedTransactions201ResponseInner.js +125 -0
- package/dist/model/BroadcastSignedTransactionsRequest.js +87 -0
- package/dist/model/ChainInfo.js +10 -1
- package/dist/model/CheckAddressValidity200Response.js +1 -1
- package/dist/model/CheckAddressesValidity200ResponseInner.js +1 -1
- package/dist/model/CheckLoopTransfers200ResponseInner.js +2 -2
- package/dist/model/CoboSafeDelegate.js +1 -1
- package/dist/model/CoboSafeDelegateType.js +1 -1
- package/dist/model/ContractCallDestination.js +3 -3
- package/dist/model/ContractCallDestinationType.js +1 -1
- package/dist/model/ContractCallParams.js +1 -1
- package/dist/model/ContractCallSource.js +1 -7
- package/dist/model/ContractCallSourceType.js +1 -1
- package/dist/model/CreateAddressRequest.js +1 -1
- package/dist/model/CreateCustodialWalletParams.js +1 -1
- package/dist/model/CreateExchangeWalletParams.js +1 -1
- package/dist/model/CreateKeyShareHolder.js +3 -3
- package/dist/model/CreateKeyShareHolderGroupRequest.js +1 -1
- package/dist/model/CreateMpcProjectRequest.js +1 -1
- package/dist/model/CreateMpcVaultRequest.js +1 -1
- package/dist/model/CreateMpcWalletParams.js +1 -1
- package/dist/model/CreateSafeWalletParams.js +1 -1
- package/dist/model/CreateSmartContractWalletParams.js +1 -1
- package/dist/model/CreateStakeActivity.js +5 -5
- package/dist/model/CreateStakeActivity201Response.js +123 -0
- package/dist/model/CreateStakeActivityExtra.js +14 -82
- package/dist/model/CreateStakeActivityRequest.js +246 -0
- package/dist/model/CreateTransferTransaction201Response.js +1 -1
- package/dist/model/CreateTssRequestRequest.js +1 -1
- package/dist/model/CreateUnstakeActivity.js +4 -4
- package/dist/model/CreateUnstakeActivityRequest.js +200 -0
- package/dist/model/CreateWalletParams.js +1 -1
- package/dist/model/CreateWebhookEndpointRequest.js +1 -1
- package/dist/model/CreateWithdrawActivity.js +5 -5
- package/dist/model/CreateWithdrawActivityRequest.js +220 -0
- package/dist/model/CreatedWalletInfo.js +1 -1
- package/dist/model/CurveType.js +1 -1
- package/dist/model/CustodialTransferSource.js +2 -2
- package/dist/model/CustodialWalletInfo.js +1 -1
- package/dist/model/DeleteKeyShareHolderGroupById201Response.js +1 -1
- package/dist/model/DeleteWalletById201Response.js +1 -1
- package/dist/model/EigenLayerLstStakeExtra.js +2 -2
- package/dist/model/EigenLayerNativeStakeExtra.js +1 -1
- package/dist/model/EigenlayerValidator.js +1 -1
- package/dist/model/ErrorResponse.js +1 -1
- package/dist/model/EstimateContractCallFeeParams.js +1 -1
- package/dist/model/EstimateFeeParams.js +2 -2
- package/dist/model/EstimateFeeRequestType.js +1 -1
- package/dist/model/EstimateStakeFee.js +7 -7
- package/dist/model/EstimateTransferFeeParams.js +1 -1
- package/dist/model/EstimateUnstakeFee.js +6 -6
- package/dist/model/EstimateWithdrawFee.js +8 -8
- package/dist/model/EstimatedEvmEip1559Fee.js +1 -1
- package/dist/model/EstimatedEvmEip1559FeeSlow.js +1 -1
- package/dist/model/EstimatedEvmLegacyFee.js +1 -1
- package/dist/model/EstimatedEvmLegacyFeeSlow.js +1 -1
- package/dist/model/EstimatedFee.js +1 -1
- package/dist/model/EstimatedFixedFee.js +1 -1
- package/dist/model/EstimatedUtxoFee.js +1 -1
- package/dist/model/EstimatedUtxoFeeSlow.js +1 -1
- package/dist/model/EvmContractCallDestination.js +9 -5
- package/dist/model/EvmEIP191MessageSignDestination.js +2 -2
- package/dist/model/EvmEIP712MessageSignDestination.js +2 -2
- package/dist/model/EvmEip1559FeeBasePrice.js +1 -1
- package/dist/model/EvmEip1559FeeRate.js +1 -1
- package/dist/model/EvmLegacyFeeBasePrice.js +1 -1
- package/dist/model/EvmLegacyFeeRate.js +1 -1
- package/dist/model/ExchangeId.js +1 -1
- package/dist/model/ExchangeTransferDestination.js +4 -4
- package/dist/model/ExchangeTransferSource.js +2 -2
- package/dist/model/ExchangeWalletInfo.js +1 -1
- package/dist/model/ExtendedTokenInfo.js +37 -1
- package/dist/model/FeeAmount.js +1 -1
- package/dist/model/FeeGasLimit.js +1 -1
- package/dist/model/FeeRate.js +1 -1
- package/dist/model/FeeType.js +1 -1
- package/dist/model/FixedFeeRate.js +1 -1
- package/dist/model/GetStakingEstimationFee201Response.js +109 -0
- package/dist/model/GetStakingEstimationFeeRequest.js +256 -0
- package/dist/model/GetToken200Response.js +5 -5
- package/dist/model/GetToken4XXResponse.js +1 -1
- package/dist/model/KeyShareHolder.js +2 -2
- package/dist/model/KeyShareHolderGroup.js +1 -1
- package/dist/model/KeyShareHolderGroupStatus.js +1 -1
- package/dist/model/KeyShareHolderGroupType.js +1 -1
- package/dist/model/KeyShareHolderStatus.js +1 -1
- package/dist/model/KeyShareHolderType.js +1 -1
- package/dist/model/ListAddresses200Response.js +1 -1
- package/dist/model/ListAssetBalancesForExchangeWallet200Response.js +1 -1
- package/dist/model/ListExchanges200ResponseInner.js +1 -1
- package/dist/model/ListKeyShareHolderGroups200Response.js +1 -1
- package/dist/model/ListMpcProjects200Response.js +1 -1
- package/dist/model/ListMpcVaults200Response.js +1 -1
- package/dist/model/ListStakingActivities200Response.js +123 -0
- package/dist/model/ListStakingPools200Response.js +123 -0
- package/dist/model/ListStakings200Response.js +123 -0
- package/dist/model/ListSupportedAssetsForExchange200Response.js +1 -1
- package/dist/model/ListSupportedChains200Response.js +1 -1
- package/dist/model/ListSupportedTokens200Response.js +1 -1
- package/dist/model/ListTokenBalancesForAddress200Response.js +1 -1
- package/dist/model/ListTransactions200Response.js +1 -1
- package/dist/model/ListTssRequests200Response.js +1 -1
- package/dist/model/ListUtxos200Response.js +1 -1
- package/dist/model/ListWallets200Response.js +1 -1
- package/dist/model/ListWebhookEndpoints200Response.js +1 -1
- package/dist/model/ListWebhookEventDefinitions200ResponseInner.js +1 -1
- package/dist/model/ListWebhookEventLogs200Response.js +1 -1
- package/dist/model/ListWebhookEvents200Response.js +1 -1
- package/dist/model/LockUtxos201Response.js +1 -1
- package/dist/model/LockUtxosRequest.js +1 -1
- package/dist/model/LockUtxosRequestUtxosInner.js +1 -1
- package/dist/model/MPCDelegate.js +1 -1
- package/dist/model/MPCProject.js +1 -1
- package/dist/model/MPCVault.js +1 -1
- package/dist/model/MPCVaultType.js +1 -1
- package/dist/model/MPCWalletInfo.js +1 -1
- package/dist/model/MaxFeeAmount.js +1 -1
- package/dist/model/MaxTransferableValue.js +1 -1
- package/dist/model/MessageSignDestination.js +3 -3
- package/dist/model/MessageSignDestinationType.js +1 -1
- package/dist/model/MessageSignParams.js +2 -2
- package/dist/model/MessageSignSource.js +1 -1
- package/dist/model/MessageSignSourceType.js +1 -1
- package/dist/model/MpcContractCallSource.js +1 -10
- package/dist/model/MpcMessageSignSource.js +1 -1
- package/dist/model/MpcSigningGroup.js +1 -1
- package/dist/model/MpcStakeSource.js +156 -0
- package/dist/model/MpcTransferSource.js +2 -2
- package/dist/model/Pagination.js +1 -1
- package/dist/model/PoolDetails.js +27 -27
- package/dist/model/PoolDetailsAllOfValidatorsInfo.js +35 -46
- package/dist/model/PoolSummary.js +14 -14
- package/dist/model/RawMessageSignDestination.js +122 -0
- package/dist/model/RefreshToken200Response.js +5 -5
- package/dist/model/RefreshTokenRequest.js +3 -3
- package/dist/model/ReplaceType.js +1 -1
- package/dist/model/RetryWebhookEventById201Response.js +1 -1
- package/dist/model/RootPubkey.js +1 -1
- package/dist/model/SafeContractCallSource.js +2 -2
- package/dist/model/SafeTransferSource.js +2 -2
- package/dist/model/SafeWallet.js +1 -1
- package/dist/model/SmartContractInitiator.js +1 -1
- package/dist/model/SmartContractWalletInfo.js +1 -1
- package/dist/model/SmartContractWalletOperationType.js +1 -1
- package/dist/model/SmartContractWalletType.js +1 -1
- package/dist/model/SourceGroup.js +1 -1
- package/dist/model/StakeSourceType.js +56 -0
- package/dist/model/StakingPoolType.js +1 -11
- package/dist/model/StakingSource.js +24 -68
- package/dist/model/Stakings.js +35 -63
- package/dist/model/StakingsExtra.js +182 -0
- package/dist/model/StakingsValidatorInfo.js +7 -2
- package/dist/model/SubWalletAssetBalance.js +1 -1
- package/dist/model/TSSGroups.js +1 -1
- package/dist/model/TSSRequest.js +1 -1
- package/dist/model/TSSRequestStatus.js +6 -1
- package/dist/model/TSSRequestType.js +1 -1
- package/dist/model/TSSRequestWebhookEventData.js +1 -1
- package/dist/model/TokenBalance.js +1 -1
- package/dist/model/TokenBalanceBalance.js +1 -1
- package/dist/model/TokenInfo.js +27 -1
- package/dist/model/Transaction.js +1 -1
- package/dist/model/TransactionApprover.js +1 -1
- package/dist/model/TransactionBlockInfo.js +1 -1
- package/dist/model/TransactionCustodialAssetWalletSource.js +2 -2
- package/dist/model/TransactionDepositFromAddressSource.js +2 -2
- package/dist/model/TransactionDepositFromLoopSource.js +2 -2
- package/dist/model/TransactionDepositFromWalletSource.js +2 -2
- package/dist/model/TransactionDepositToAddressDestination.js +4 -4
- package/dist/model/TransactionDepositToWalletDestination.js +4 -4
- package/dist/model/TransactionDestination.js +3 -3
- package/dist/model/TransactionDestinationType.js +1 -1
- package/dist/model/TransactionDetail.js +1 -1
- package/dist/model/TransactionDetails.js +1 -1
- package/dist/model/TransactionEvmContractDestination.js +9 -5
- package/dist/model/TransactionEvmEip1559Fee.js +2 -2
- package/dist/model/TransactionEvmLegacyFee.js +2 -2
- package/dist/model/TransactionExchangeWalletSource.js +2 -2
- package/dist/model/TransactionFee.js +1 -1
- package/dist/model/TransactionFeeStationWalletSource.js +1 -1
- package/dist/model/TransactionFixedFee.js +2 -2
- package/dist/model/TransactionInitiatorType.js +1 -1
- package/dist/model/TransactionMPCWalletSource.js +2 -2
- package/dist/model/TransactionMessageSignEIP191Destination.js +2 -2
- package/dist/model/TransactionMessageSignEIP712Destination.js +2 -2
- package/dist/model/TransactionRawTxInfo.js +1 -1
- package/dist/model/TransactionRbf.js +1 -1
- package/dist/model/TransactionRbfSource.js +1 -1
- package/dist/model/TransactionReplacement.js +1 -1
- package/dist/model/TransactionRequestEvmEip1559Fee.js +2 -2
- package/dist/model/TransactionRequestEvmLegacyFee.js +2 -2
- package/dist/model/TransactionRequestFee.js +1 -1
- package/dist/model/TransactionRequestFixedFee.js +2 -2
- package/dist/model/TransactionRequestUtxoFee.js +2 -2
- package/dist/model/TransactionResend.js +1 -1
- package/dist/model/TransactionResult.js +1 -1
- package/dist/model/TransactionResultType.js +1 -1
- package/dist/model/TransactionSignatureResult.js +2 -2
- package/dist/model/TransactionSigner.js +1 -1
- package/dist/model/TransactionSmartContractSafeWalletSource.js +2 -2
- package/dist/model/TransactionSource.js +1 -1
- package/dist/model/TransactionSourceType.js +1 -1
- package/dist/model/TransactionStatus.js +1 -6
- package/dist/model/TransactionSubStatus.js +41 -6
- package/dist/model/TransactionTimeline.js +1 -1
- package/dist/model/TransactionTokeApproval.js +37 -1
- package/dist/model/TransactionTokenAmount.js +1 -1
- package/dist/model/TransactionTransferToAddressDestination.js +2 -2
- package/dist/model/TransactionTransferToAddressDestinationAccountOutput.js +2 -2
- package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +2 -2
- package/dist/model/TransactionTransferToWalletDestination.js +4 -4
- package/dist/model/TransactionType.js +11 -1
- package/dist/model/TransactionUtxo.js +1 -1
- package/dist/model/TransactionUtxoFee.js +2 -2
- package/dist/model/TransactionWebhookEventData.js +1 -1
- package/dist/model/TransferDestination.js +4 -4
- package/dist/model/TransferDestinationType.js +1 -1
- package/dist/model/TransferParams.js +1 -1
- package/dist/model/TransferSource.js +1 -1
- package/dist/model/UTXO.js +1 -1
- package/dist/model/UpdateCustodialWalletParams.js +1 -1
- package/dist/model/UpdateExchangeWalletParams.js +1 -1
- package/dist/model/UpdateGroupAction.js +1 -1
- package/dist/model/UpdateKeyShareHolderGroupByIdRequest.js +1 -1
- package/dist/model/UpdateMpcProjectByIdRequest.js +1 -1
- package/dist/model/UpdateMpcVaultByIdRequest.js +1 -1
- package/dist/model/UpdateMpcWalletParams.js +1 -1
- package/dist/model/UpdateSmartContractWalletParams.js +1 -1
- package/dist/model/UpdateWalletParams.js +1 -1
- package/dist/model/UpdateWebhookEndpointByIdRequest.js +1 -1
- package/dist/model/UtxoFeeBasePrice.js +1 -1
- package/dist/model/UtxoFeeRate.js +1 -1
- package/dist/model/WalletBalanceSnapshot.js +120 -0
- package/dist/model/WalletBalanceSnapshotRecord.js +163 -0
- package/dist/model/WalletInfo.js +1 -1
- package/dist/model/WalletSubtype.js +1 -1
- package/dist/model/WalletType.js +1 -1
- package/dist/model/WebhookEndpoint.js +1 -1
- package/dist/model/WebhookEndpointStatus.js +1 -1
- package/dist/model/WebhookEvent.js +1 -1
- package/dist/model/WebhookEventData.js +1 -1
- package/dist/model/WebhookEventDataType.js +1 -1
- package/dist/model/WebhookEventLog.js +1 -1
- package/dist/model/WebhookEventStatus.js +1 -1
- package/dist/model/WebhookEventType.js +1 -1
- package/docs/Activity.md +9 -8
- package/docs/ActivityInitiator.md +1 -1
- package/docs/ActivityTimeline.md +3 -3
- package/docs/ActivityType.md +0 -6
- package/docs/AddressBook.md +16 -0
- package/docs/AddressInfo.md +3 -0
- package/docs/AddressTransferDestination.md +2 -2
- package/docs/AddressTransferDestinationAccountOutput.md +1 -1
- package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -1
- package/docs/AmountDetailsInner.md +0 -1
- package/docs/BabylonStakeExtra.md +3 -3
- package/docs/BabylonStakingExtra.md +14 -0
- package/docs/BabylonValidator.md +6 -5
- package/docs/BaseStakeSource.md +11 -0
- package/docs/BookkeepingRecord.md +19 -0
- package/docs/BookkeepingSummary.md +12 -0
- package/docs/BroadcastSignedTransactions201ResponseInner.md +10 -0
- package/docs/BroadcastSignedTransactionsRequest.md +9 -0
- package/docs/ChainInfo.md +1 -0
- package/docs/CheckLoopTransfers200ResponseInner.md +1 -1
- package/docs/ContractCallDestination.md +1 -1
- package/docs/ContractCallSource.md +0 -1
- package/docs/CreateKeyShareHolder.md +2 -2
- package/docs/CreateStakeActivity.md +2 -2
- package/docs/CreateStakeActivity201Response.md +10 -0
- package/docs/CreateStakeActivityExtra.md +3 -5
- package/docs/CreateStakeActivityRequest.md +15 -0
- package/docs/CreateUnstakeActivity.md +2 -2
- package/docs/CreateUnstakeActivityRequest.md +13 -0
- package/docs/CreateWithdrawActivity.md +3 -3
- package/docs/CreateWithdrawActivityRequest.md +14 -0
- package/docs/EigenLayerLstStakeExtra.md +1 -1
- package/docs/EstimateStakeFee.md +2 -2
- package/docs/EstimateUnstakeFee.md +2 -2
- package/docs/EstimateWithdrawFee.md +3 -3
- package/docs/EvmContractCallDestination.md +1 -1
- package/docs/ExchangeTransferDestination.md +1 -1
- package/docs/ExtendedTokenInfo.md +2 -0
- package/docs/GetStakingEstimationFee201Response.md +11 -0
- package/docs/GetStakingEstimationFeeRequest.md +17 -0
- package/docs/GetToken200Response.md +4 -4
- package/docs/KeyShareHolder.md +1 -1
- package/docs/ListStakingActivities200Response.md +10 -0
- package/docs/ListStakingPools200Response.md +10 -0
- package/docs/ListStakings200Response.md +10 -0
- package/docs/MessageSignParams.md +1 -1
- package/docs/MpcContractCallSource.md +0 -1
- package/docs/MpcStakeSource.md +11 -0
- package/docs/OAuthApi.md +9 -9
- package/docs/PoolDetails.md +13 -13
- package/docs/PoolDetailsAllOfValidatorsInfo.md +6 -6
- package/docs/PoolSummary.md +6 -6
- package/docs/RawMessageSignDestination.md +10 -0
- package/docs/RefreshToken200Response.md +4 -4
- package/docs/RefreshTokenRequest.md +2 -2
- package/docs/StakeSourceType.md +10 -0
- package/docs/StakingPoolType.md +0 -4
- package/docs/StakingSource.md +1 -3
- package/docs/Stakings.md +10 -13
- package/docs/StakingsApi.md +570 -0
- package/docs/StakingsExtra.md +14 -0
- package/docs/StakingsValidatorInfo.md +5 -5
- package/docs/TSSRequestStatus.md +2 -0
- package/docs/TokenInfo.md +2 -0
- package/docs/TransactionDepositToAddressDestination.md +1 -1
- package/docs/TransactionDepositToWalletDestination.md +1 -1
- package/docs/TransactionDestination.md +2 -2
- package/docs/TransactionEvmContractDestination.md +1 -1
- package/docs/TransactionStatus.md +0 -2
- package/docs/TransactionSubStatus.md +16 -2
- package/docs/TransactionTokeApproval.md +2 -0
- package/docs/TransactionTransferToAddressDestinationAccountOutput.md +1 -1
- package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +1 -1
- package/docs/TransactionTransferToWalletDestination.md +1 -1
- package/docs/TransactionType.md +4 -0
- package/docs/TransactionsApi.md +111 -3
- package/docs/TransferDestination.md +3 -3
- package/docs/WalletBalanceSnapshot.md +10 -0
- package/docs/WalletBalanceSnapshotRecord.md +13 -0
- package/docs/WalletsApi.md +1 -56
- package/docs/WalletsExchangeWalletApi.md +2 -2
- package/docs/WalletsMPCWalletsApi.md +1 -1
- package/package.json +2 -2
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _BroadcastSignedTransactions201ResponseInner = _interopRequireDefault(require("../model/BroadcastSignedTransactions201ResponseInner"));
|
|
9
|
+
var _BroadcastSignedTransactionsRequest = _interopRequireDefault(require("../model/BroadcastSignedTransactionsRequest"));
|
|
10
|
+
var _CheckLoopTransfers200ResponseInner = _interopRequireDefault(require("../model/CheckLoopTransfers200ResponseInner"));
|
|
8
11
|
var _ContractCallParams = _interopRequireDefault(require("../model/ContractCallParams"));
|
|
9
12
|
var _CreateTransferTransaction201Response = _interopRequireDefault(require("../model/CreateTransferTransaction201Response"));
|
|
10
13
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
@@ -25,7 +28,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
25
28
|
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); } /**
|
|
26
29
|
* Cobo Wallet as a Service 2.0
|
|
27
30
|
*
|
|
28
|
-
* Contact:
|
|
31
|
+
* Contact: help@cobo.com
|
|
29
32
|
*
|
|
30
33
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
31
34
|
* https://openapi-generator.tech
|
|
@@ -50,12 +53,53 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
/**
|
|
53
|
-
*
|
|
54
|
-
* This operation
|
|
55
|
-
* @param {
|
|
56
|
-
* @
|
|
56
|
+
* Broadcast signed transactions
|
|
57
|
+
* <Note>This operation is only applicable to the staking scenarios.</Note> This operation broadcasts a list of signed transactions. If you set `auto_broadcast` to `false` when [creating a staking activity](/v2/api-references/staking/create-stake-activity), the transaction will not be submitted to the blockchain automatically after being signed. In such cases, you can call this operation to broadcast the transaction to the blockchain. A transaction can only be broadcast if its status is `Broadcasting`.
|
|
58
|
+
* @param {Object} opts Optional parameters
|
|
59
|
+
* @param {module:model/BroadcastSignedTransactionsRequest} [BroadcastSignedTransactionsRequest] The request body to broadcast a list of signed transactions.
|
|
60
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/BroadcastSignedTransactions201ResponseInner>} and HTTP response
|
|
57
61
|
*/
|
|
58
62
|
return _createClass(TransactionsApi, [{
|
|
63
|
+
key: "broadcastSignedTransactionsWithHttpInfo",
|
|
64
|
+
value: function broadcastSignedTransactionsWithHttpInfo(opts) {
|
|
65
|
+
opts = opts || {};
|
|
66
|
+
var postBody = opts['BroadcastSignedTransactionsRequest'];
|
|
67
|
+
if (postBody && postBody.toJSON) {
|
|
68
|
+
postBody = postBody.toJSON();
|
|
69
|
+
}
|
|
70
|
+
var pathParams = {};
|
|
71
|
+
var queryParams = {};
|
|
72
|
+
var headerParams = {};
|
|
73
|
+
var formParams = {};
|
|
74
|
+
var authNames = ['CoboAuth'];
|
|
75
|
+
var contentTypes = ['application/json'];
|
|
76
|
+
var accepts = ['application/json'];
|
|
77
|
+
var returnType = [_BroadcastSignedTransactions201ResponseInner["default"]];
|
|
78
|
+
return this.apiClient.callApi('/transactions/broadcast', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Broadcast signed transactions
|
|
83
|
+
* <Note>This operation is only applicable to the staking scenarios.</Note> This operation broadcasts a list of signed transactions. If you set `auto_broadcast` to `false` when [creating a staking activity](/v2/api-references/staking/create-stake-activity), the transaction will not be submitted to the blockchain automatically after being signed. In such cases, you can call this operation to broadcast the transaction to the blockchain. A transaction can only be broadcast if its status is `Broadcasting`.
|
|
84
|
+
* @param {Object} opts Optional parameters
|
|
85
|
+
* @param {module:model/BroadcastSignedTransactionsRequest} opts.BroadcastSignedTransactionsRequest The request body to broadcast a list of signed transactions.
|
|
86
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/BroadcastSignedTransactions201ResponseInner>}
|
|
87
|
+
*/
|
|
88
|
+
}, {
|
|
89
|
+
key: "broadcastSignedTransactions",
|
|
90
|
+
value: function broadcastSignedTransactions(opts) {
|
|
91
|
+
return this.broadcastSignedTransactionsWithHttpInfo(opts).then(function (response_and_data) {
|
|
92
|
+
return response_and_data.data;
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Cancel transaction
|
|
98
|
+
* This operation cancels a specified transaction. A transaction can be cancelled if its status is either of the following: - `Submitted` - `PendingScreening` - `PendingAuthorization` - `PendingSignature` A transaction request for tracking is returned upon successful operation. <Note>This operation only applies to transactions from MPC Wallets and Smart Contract Wallets.</Note>
|
|
99
|
+
* @param {String} transaction_id The transaction ID.
|
|
100
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTransferTransaction201Response} and HTTP response
|
|
101
|
+
*/
|
|
102
|
+
}, {
|
|
59
103
|
key: "cancelTransactionByIdWithHttpInfo",
|
|
60
104
|
value: function cancelTransactionByIdWithHttpInfo(transaction_id) {
|
|
61
105
|
var postBody = null;
|
|
@@ -93,6 +137,64 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
93
137
|
});
|
|
94
138
|
}
|
|
95
139
|
|
|
140
|
+
/**
|
|
141
|
+
* Check Loop transfers
|
|
142
|
+
* This operation verifies if the transactions from a given source wallet to a list of given destinations can be executed as Loop transfers. For more information about Loop, see [Loop's website](https://loop.top/).
|
|
143
|
+
* @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](/v2/api-references/wallets/list-enabled-tokens).
|
|
144
|
+
* @param {String} source_wallet_id The wallet ID of the transaction source.
|
|
145
|
+
* @param {String} destination_addresses A list of destination addresses, separated by comma.
|
|
146
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/CheckLoopTransfers200ResponseInner>} and HTTP response
|
|
147
|
+
*/
|
|
148
|
+
}, {
|
|
149
|
+
key: "checkLoopTransfersWithHttpInfo",
|
|
150
|
+
value: function checkLoopTransfersWithHttpInfo(token_id, source_wallet_id, destination_addresses) {
|
|
151
|
+
var postBody = null;
|
|
152
|
+
if (postBody && postBody.toJSON) {
|
|
153
|
+
postBody = postBody.toJSON();
|
|
154
|
+
}
|
|
155
|
+
// verify the required parameter 'token_id' is set
|
|
156
|
+
if (token_id === undefined || token_id === null) {
|
|
157
|
+
throw new Error("Missing the required parameter 'token_id' when calling checkLoopTransfers");
|
|
158
|
+
}
|
|
159
|
+
// verify the required parameter 'source_wallet_id' is set
|
|
160
|
+
if (source_wallet_id === undefined || source_wallet_id === null) {
|
|
161
|
+
throw new Error("Missing the required parameter 'source_wallet_id' when calling checkLoopTransfers");
|
|
162
|
+
}
|
|
163
|
+
// verify the required parameter 'destination_addresses' is set
|
|
164
|
+
if (destination_addresses === undefined || destination_addresses === null) {
|
|
165
|
+
throw new Error("Missing the required parameter 'destination_addresses' when calling checkLoopTransfers");
|
|
166
|
+
}
|
|
167
|
+
var pathParams = {};
|
|
168
|
+
var queryParams = {
|
|
169
|
+
'token_id': token_id,
|
|
170
|
+
'source_wallet_id': source_wallet_id,
|
|
171
|
+
'destination_addresses': destination_addresses
|
|
172
|
+
};
|
|
173
|
+
var headerParams = {};
|
|
174
|
+
var formParams = {};
|
|
175
|
+
var authNames = ['CoboAuth'];
|
|
176
|
+
var contentTypes = [];
|
|
177
|
+
var accepts = ['application/json'];
|
|
178
|
+
var returnType = [_CheckLoopTransfers200ResponseInner["default"]];
|
|
179
|
+
return this.apiClient.callApi('/transactions/check_loop_transfers', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Check Loop transfers
|
|
184
|
+
* This operation verifies if the transactions from a given source wallet to a list of given destinations can be executed as Loop transfers. For more information about Loop, see [Loop's website](https://loop.top/).
|
|
185
|
+
* @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](/v2/api-references/wallets/list-enabled-tokens).
|
|
186
|
+
* @param {String} source_wallet_id The wallet ID of the transaction source.
|
|
187
|
+
* @param {String} destination_addresses A list of destination addresses, separated by comma.
|
|
188
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/CheckLoopTransfers200ResponseInner>}
|
|
189
|
+
*/
|
|
190
|
+
}, {
|
|
191
|
+
key: "checkLoopTransfers",
|
|
192
|
+
value: function checkLoopTransfers(token_id, source_wallet_id, destination_addresses) {
|
|
193
|
+
return this.checkLoopTransfersWithHttpInfo(token_id, source_wallet_id, destination_addresses).then(function (response_and_data) {
|
|
194
|
+
return response_and_data.data;
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
|
|
96
198
|
/**
|
|
97
199
|
* Call smart contract
|
|
98
200
|
* This operation creates a transaction to interact with a smart contract on the blockchain. You need to provide details such as the source address, destination address, and the calldata. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>Currently, this operation only applies to the transactions from MPC Wallets or Smart Contract Wallets on the blockchains that have a similar architecture to Ethereum.</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>
|
|
@@ -138,7 +240,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
138
240
|
* Sign message
|
|
139
241
|
* This operation creates a transaction to sign the provided message using cryptographic techniques. In some scenarios, you want to sign a message for identity authentication or transaction approval. You need to provide details such as the source address, destination address, and the message to be signed. A transaction request for tracking is returned upon successful operation. You can get the signature result by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information). <Note>This operation only applies to transactions from MPC Wallets.</Note>
|
|
140
242
|
* @param {Object} opts Optional parameters
|
|
141
|
-
* @param {module:model/MessageSignParams} [MessageSignParams] The request body to create a message
|
|
243
|
+
* @param {module:model/MessageSignParams} [MessageSignParams] The request body to create a message signing transaction
|
|
142
244
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTransferTransaction201Response} and HTTP response
|
|
143
245
|
*/
|
|
144
246
|
}, {
|
|
@@ -164,7 +266,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
164
266
|
* Sign message
|
|
165
267
|
* This operation creates a transaction to sign the provided message using cryptographic techniques. In some scenarios, you want to sign a message for identity authentication or transaction approval. You need to provide details such as the source address, destination address, and the message to be signed. A transaction request for tracking is returned upon successful operation. You can get the signature result by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information). <Note>This operation only applies to transactions from MPC Wallets.</Note>
|
|
166
268
|
* @param {Object} opts Optional parameters
|
|
167
|
-
* @param {module:model/MessageSignParams} opts.MessageSignParams The request body to create a message
|
|
269
|
+
* @param {module:model/MessageSignParams} opts.MessageSignParams The request body to create a message signing transaction
|
|
168
270
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTransferTransaction201Response}
|
|
169
271
|
*/
|
|
170
272
|
}, {
|
|
@@ -218,7 +320,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
218
320
|
|
|
219
321
|
/**
|
|
220
322
|
* Drop transaction
|
|
221
|
-
* This operation drops a specified transaction. Dropping a transaction will trigger
|
|
323
|
+
* This operation drops a specified transaction. Dropping a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It has a higher transaction fee to incentivize miners to prioritize its confirmation over the original one. A transaction can be dropped if its status is `Broadcasting`. <ul> <li>For EVM chains, this RBF transaction has a transfer amount of `0` and the sending address is the same as the receiving address.</li> <li>For UTXO chains, this RBF transaction has a transfer amount of `0` and the destination address is the same as the change address in the original transaction.</li> </ul> A transaction request for tracking is returned upon successful operation. <Note>This operation only applies to transactions from MPC Wallets and Smart Contract Wallets. It does not apply to transactions on the following chains: VET, TRON, TVET, SOL, and TON.</Note> <Info>If you drop a transaction from a Smart Contract Wallet, two RBF transactions will be triggered, one for the transaction from the Smart Contract Wallet, and the other for the transaction from the Delegate.</Info>
|
|
222
324
|
* @param {String} transaction_id The transaction ID.
|
|
223
325
|
* @param {Object} opts Optional parameters
|
|
224
326
|
* @param {module:model/TransactionRbf} [TransactionRbf] The request body to drop or to speed up transactions
|
|
@@ -251,7 +353,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
251
353
|
|
|
252
354
|
/**
|
|
253
355
|
* Drop transaction
|
|
254
|
-
* This operation drops a specified transaction. Dropping a transaction will trigger
|
|
356
|
+
* This operation drops a specified transaction. Dropping a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It has a higher transaction fee to incentivize miners to prioritize its confirmation over the original one. A transaction can be dropped if its status is `Broadcasting`. <ul> <li>For EVM chains, this RBF transaction has a transfer amount of `0` and the sending address is the same as the receiving address.</li> <li>For UTXO chains, this RBF transaction has a transfer amount of `0` and the destination address is the same as the change address in the original transaction.</li> </ul> A transaction request for tracking is returned upon successful operation. <Note>This operation only applies to transactions from MPC Wallets and Smart Contract Wallets. It does not apply to transactions on the following chains: VET, TRON, TVET, SOL, and TON.</Note> <Info>If you drop a transaction from a Smart Contract Wallet, two RBF transactions will be triggered, one for the transaction from the Smart Contract Wallet, and the other for the transaction from the Delegate.</Info>
|
|
255
357
|
* @param {String} transaction_id The transaction ID.
|
|
256
358
|
* @param {Object} opts Optional parameters
|
|
257
359
|
* @param {module:model/TransactionRbf} opts.TransactionRbf The request body to drop or to speed up transactions
|
|
@@ -492,7 +594,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
492
594
|
|
|
493
595
|
/**
|
|
494
596
|
* Speed up transaction
|
|
495
|
-
* This operation accelerates a specified transaction. Speeding up a transaction will trigger
|
|
597
|
+
* This operation accelerates a specified transaction. Speeding up a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It shares the same inputs but has a higher transaction fee to incentivize miners to prioritize its confirmation over the previous one. A transaction can be accelerated if its status is `Broadcasting`. A transaction request for tracking is returned upon successful operation. <Note>This operation only applies to transactions from MPC Wallets and Smart Contract Wallets. It does not apply to transactions on the following chains: VET, TRON, TVET, SOL, and TON.</Note> <Info>If you speed up a transaction from a Smart Contract Wallet, two RBF transactions will be triggered, one for the transaction from the Smart Contract Wallet, and the other for the transaction from the Delegate.</Info>
|
|
496
598
|
* @param {String} transaction_id The transaction ID.
|
|
497
599
|
* @param {Object} opts Optional parameters
|
|
498
600
|
* @param {module:model/TransactionRbf} [TransactionRbf] The request body to drop or to speed up transactions
|
|
@@ -525,7 +627,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
525
627
|
|
|
526
628
|
/**
|
|
527
629
|
* Speed up transaction
|
|
528
|
-
* This operation accelerates a specified transaction. Speeding up a transaction will trigger
|
|
630
|
+
* This operation accelerates a specified transaction. Speeding up a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It shares the same inputs but has a higher transaction fee to incentivize miners to prioritize its confirmation over the previous one. A transaction can be accelerated if its status is `Broadcasting`. A transaction request for tracking is returned upon successful operation. <Note>This operation only applies to transactions from MPC Wallets and Smart Contract Wallets. It does not apply to transactions on the following chains: VET, TRON, TVET, SOL, and TON.</Note> <Info>If you speed up a transaction from a Smart Contract Wallet, two RBF transactions will be triggered, one for the transaction from the Smart Contract Wallet, and the other for the transaction from the Delegate.</Info>
|
|
529
631
|
* @param {String} transaction_id The transaction ID.
|
|
530
632
|
* @param {Object} opts Optional parameters
|
|
531
633
|
* @param {module:model/TransactionRbf} opts.TransactionRbf The request body to drop or to speed up transactions
|
package/dist/api/WalletsApi.js
CHANGED
|
@@ -9,7 +9,6 @@ var _AddressInfo = _interopRequireDefault(require("../model/AddressInfo"));
|
|
|
9
9
|
var _ChainInfo = _interopRequireDefault(require("../model/ChainInfo"));
|
|
10
10
|
var _CheckAddressValidity200Response = _interopRequireDefault(require("../model/CheckAddressValidity200Response"));
|
|
11
11
|
var _CheckAddressesValidity200ResponseInner = _interopRequireDefault(require("../model/CheckAddressesValidity200ResponseInner"));
|
|
12
|
-
var _CheckLoopTransfers200ResponseInner = _interopRequireDefault(require("../model/CheckLoopTransfers200ResponseInner"));
|
|
13
12
|
var _CreateAddressRequest = _interopRequireDefault(require("../model/CreateAddressRequest"));
|
|
14
13
|
var _CreateWalletParams = _interopRequireDefault(require("../model/CreateWalletParams"));
|
|
15
14
|
var _CreatedWalletInfo = _interopRequireDefault(require("../model/CreatedWalletInfo"));
|
|
@@ -38,7 +37,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
38
37
|
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); } /**
|
|
39
38
|
* Cobo Wallet as a Service 2.0
|
|
40
39
|
*
|
|
41
|
-
* Contact:
|
|
40
|
+
* Contact: help@cobo.com
|
|
42
41
|
*
|
|
43
42
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
44
43
|
* https://openapi-generator.tech
|
|
@@ -164,64 +163,6 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
164
163
|
});
|
|
165
164
|
}
|
|
166
165
|
|
|
167
|
-
/**
|
|
168
|
-
* Check Loop transfers
|
|
169
|
-
* This operation verifies if the transactions from a given source wallet to a list of destination addresses can be executed as Loop transfers. For more information about Loop, see [Loop's website](https://loop.top/).
|
|
170
|
-
* @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](/v2/api-references/wallets/list-enabled-tokens).
|
|
171
|
-
* @param {String} source_wallet_id The source wallet ID.
|
|
172
|
-
* @param {String} destination_addresses A list of destination wallet addresses, separated by comma.
|
|
173
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/CheckLoopTransfers200ResponseInner>} and HTTP response
|
|
174
|
-
*/
|
|
175
|
-
}, {
|
|
176
|
-
key: "checkLoopTransfersWithHttpInfo",
|
|
177
|
-
value: function checkLoopTransfersWithHttpInfo(token_id, source_wallet_id, destination_addresses) {
|
|
178
|
-
var postBody = null;
|
|
179
|
-
if (postBody && postBody.toJSON) {
|
|
180
|
-
postBody = postBody.toJSON();
|
|
181
|
-
}
|
|
182
|
-
// verify the required parameter 'token_id' is set
|
|
183
|
-
if (token_id === undefined || token_id === null) {
|
|
184
|
-
throw new Error("Missing the required parameter 'token_id' when calling checkLoopTransfers");
|
|
185
|
-
}
|
|
186
|
-
// verify the required parameter 'source_wallet_id' is set
|
|
187
|
-
if (source_wallet_id === undefined || source_wallet_id === null) {
|
|
188
|
-
throw new Error("Missing the required parameter 'source_wallet_id' when calling checkLoopTransfers");
|
|
189
|
-
}
|
|
190
|
-
// verify the required parameter 'destination_addresses' is set
|
|
191
|
-
if (destination_addresses === undefined || destination_addresses === null) {
|
|
192
|
-
throw new Error("Missing the required parameter 'destination_addresses' when calling checkLoopTransfers");
|
|
193
|
-
}
|
|
194
|
-
var pathParams = {};
|
|
195
|
-
var queryParams = {
|
|
196
|
-
'token_id': token_id,
|
|
197
|
-
'source_wallet_id': source_wallet_id,
|
|
198
|
-
'destination_addresses': destination_addresses
|
|
199
|
-
};
|
|
200
|
-
var headerParams = {};
|
|
201
|
-
var formParams = {};
|
|
202
|
-
var authNames = ['CoboAuth'];
|
|
203
|
-
var contentTypes = [];
|
|
204
|
-
var accepts = ['application/json'];
|
|
205
|
-
var returnType = [_CheckLoopTransfers200ResponseInner["default"]];
|
|
206
|
-
return this.apiClient.callApi('/wallets/check_loop_transfers', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Check Loop transfers
|
|
211
|
-
* This operation verifies if the transactions from a given source wallet to a list of destination addresses can be executed as Loop transfers. For more information about Loop, see [Loop's website](https://loop.top/).
|
|
212
|
-
* @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](/v2/api-references/wallets/list-enabled-tokens).
|
|
213
|
-
* @param {String} source_wallet_id The source wallet ID.
|
|
214
|
-
* @param {String} destination_addresses A list of destination wallet addresses, separated by comma.
|
|
215
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/CheckLoopTransfers200ResponseInner>}
|
|
216
|
-
*/
|
|
217
|
-
}, {
|
|
218
|
-
key: "checkLoopTransfers",
|
|
219
|
-
value: function checkLoopTransfers(token_id, source_wallet_id, destination_addresses) {
|
|
220
|
-
return this.checkLoopTransfersWithHttpInfo(token_id, source_wallet_id, destination_addresses).then(function (response_and_data) {
|
|
221
|
-
return response_and_data.data;
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
|
|
225
166
|
/**
|
|
226
167
|
* Create addresses in wallet
|
|
227
168
|
* This operation generates one or more addresses within a specified wallet. <Note>This operation is applicable to Custodial Wallets and MPC Wallets only.</Note>
|
|
@@ -1102,7 +1043,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1102
1043
|
|
|
1103
1044
|
/**
|
|
1104
1045
|
* List all wallets
|
|
1105
|
-
* This operation retrieves the information of all wallets under your organization. You can filter the result by wallet type and subtype. For MPC Wallets, you can also filter by project ID and vault ID.
|
|
1046
|
+
* This operation retrieves the information of all wallets under your organization. You can filter the result by wallet type and subtype. For MPC Wallets, you can also filter by project ID and vault ID.
|
|
1106
1047
|
* @param {Object} opts Optional parameters
|
|
1107
1048
|
* @param {module:model/WalletType} [wallet_type] The wallet type. - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction)
|
|
1108
1049
|
* @param {module:model/WalletSubtype} [wallet_subtype] The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet})
|
|
@@ -1142,7 +1083,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1142
1083
|
|
|
1143
1084
|
/**
|
|
1144
1085
|
* List all wallets
|
|
1145
|
-
* This operation retrieves the information of all wallets under your organization. You can filter the result by wallet type and subtype. For MPC Wallets, you can also filter by project ID and vault ID.
|
|
1086
|
+
* This operation retrieves the information of all wallets under your organization. You can filter the result by wallet type and subtype. For MPC Wallets, you can also filter by project ID and vault ID.
|
|
1146
1087
|
* @param {Object} opts Optional parameters
|
|
1147
1088
|
* @param {module:model/WalletType} opts.wallet_type The wallet type. - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction)
|
|
1148
1089
|
* @param {module:model/WalletSubtype} opts.wallet_subtype The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet})
|
|
@@ -20,7 +20,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
20
20
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
21
21
|
* Cobo Wallet as a Service 2.0
|
|
22
22
|
*
|
|
23
|
-
* Contact:
|
|
23
|
+
* Contact: help@cobo.com
|
|
24
24
|
*
|
|
25
25
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
26
|
* https://openapi-generator.tech
|
|
@@ -146,7 +146,7 @@ var WalletsExchangeWalletApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
146
146
|
/**
|
|
147
147
|
* List supported assets
|
|
148
148
|
* This operation retrieves all the assets supported by a specified exchange.
|
|
149
|
-
* @param {module:model/ExchangeId} exchange_id The ID of the exchange. Possible values include: - `binance`: Binance. - `okx`: OKX. - `deribit`: Deribit. - `bybit`: Bybit. - `gate`: Gate.io - `bitget
|
|
149
|
+
* @param {module:model/ExchangeId} exchange_id The ID of the exchange. Possible values include: - `binance`: Binance. - `okx`: OKX. - `deribit`: Deribit. - `bybit`: Bybit. - `gate`: Gate.io - `bitget`: Bitget
|
|
150
150
|
* @param {Object} opts Optional parameters
|
|
151
151
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
152
152
|
* @param {String} [before] An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
|
|
@@ -185,7 +185,7 @@ var WalletsExchangeWalletApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
185
185
|
/**
|
|
186
186
|
* List supported assets
|
|
187
187
|
* This operation retrieves all the assets supported by a specified exchange.
|
|
188
|
-
* @param {module:model/ExchangeId} exchange_id The ID of the exchange. Possible values include: - `binance`: Binance. - `okx`: OKX. - `deribit`: Deribit. - `bybit`: Bybit. - `gate`: Gate.io - `bitget
|
|
188
|
+
* @param {module:model/ExchangeId} exchange_id The ID of the exchange. Possible values include: - `binance`: Binance. - `okx`: OKX. - `deribit`: Deribit. - `bybit`: Bybit. - `gate`: Gate.io - `bitget`: Bitget
|
|
189
189
|
* @param {Object} opts Optional parameters
|
|
190
190
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
191
191
|
* @param {String} opts.before An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
|
|
@@ -203,7 +203,7 @@ var WalletsExchangeWalletApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
203
203
|
/**
|
|
204
204
|
* List supported chains
|
|
205
205
|
* This operation retrieves all the chains supported by a specified exchange for a given asset. You can use this operation to confirm whether you can transfer an asset from or to your Exchange Wallet when using a specific chain.
|
|
206
|
-
* @param {module:model/ExchangeId} exchange_id The ID of the exchange. Possible values include: - `binance`: Binance. - `okx`: OKX. - `deribit`: Deribit. - `bybit`: Bybit. - `gate`: Gate.io - `bitget
|
|
206
|
+
* @param {module:model/ExchangeId} exchange_id The ID of the exchange. Possible values include: - `binance`: Binance. - `okx`: OKX. - `deribit`: Deribit. - `bybit`: Bybit. - `gate`: Gate.io - `bitget`: Bitget
|
|
207
207
|
* @param {String} asset_id (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. You can get the ID of the assets supported by an exchanges by calling [List supported assets](/v2/api-references/wallets--exchange-wallet/list-supported-assets).
|
|
208
208
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/ChainInfo>} and HTTP response
|
|
209
209
|
*/
|
|
@@ -239,7 +239,7 @@ var WalletsExchangeWalletApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
239
239
|
/**
|
|
240
240
|
* List supported chains
|
|
241
241
|
* This operation retrieves all the chains supported by a specified exchange for a given asset. You can use this operation to confirm whether you can transfer an asset from or to your Exchange Wallet when using a specific chain.
|
|
242
|
-
* @param {module:model/ExchangeId} exchange_id The ID of the exchange. Possible values include: - `binance`: Binance. - `okx`: OKX. - `deribit`: Deribit. - `bybit`: Bybit. - `gate`: Gate.io - `bitget
|
|
242
|
+
* @param {module:model/ExchangeId} exchange_id The ID of the exchange. Possible values include: - `binance`: Binance. - `okx`: OKX. - `deribit`: Deribit. - `bybit`: Bybit. - `gate`: Gate.io - `bitget`: Bitget
|
|
243
243
|
* @param {String} asset_id (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. You can get the ID of the assets supported by an exchanges by calling [List supported assets](/v2/api-references/wallets--exchange-wallet/list-supported-assets).
|
|
244
244
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/ChainInfo>}
|
|
245
245
|
*/
|
|
@@ -34,7 +34,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
34
34
|
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); } /**
|
|
35
35
|
* Cobo Wallet as a Service 2.0
|
|
36
36
|
*
|
|
37
|
-
* Contact:
|
|
37
|
+
* Contact: help@cobo.com
|
|
38
38
|
*
|
|
39
39
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
40
40
|
* https://openapi-generator.tech
|
|
@@ -111,7 +111,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
113
|
* Create key share holder group
|
|
114
|
-
* This operation creates a key share holder group for a specified vault.
|
|
114
|
+
* This operation creates a key share holder group for a specified vault. <Note>This operation will not return the `tss_key_share_groups` property until key shares have been created using the [Create TSS request](/v2/api-references/wallets--mpc-wallets/create-tss-request) operation. Creating a wallet with the [Create wallet](/v2/api-references/wallets/create-wallet) operation is only possible after you've completed the previous actions.</Note>
|
|
115
115
|
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
|
|
116
116
|
* @param {Object} opts Optional parameters
|
|
117
117
|
* @param {module:model/CreateKeyShareHolderGroupRequest} [CreateKeyShareHolderGroupRequest] The request body to create a key share holder group.
|
|
@@ -144,7 +144,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* Create key share holder group
|
|
147
|
-
* This operation creates a key share holder group for a specified vault.
|
|
147
|
+
* This operation creates a key share holder group for a specified vault. <Note>This operation will not return the `tss_key_share_groups` property until key shares have been created using the [Create TSS request](/v2/api-references/wallets--mpc-wallets/create-tss-request) operation. Creating a wallet with the [Create wallet](/v2/api-references/wallets/create-wallet) operation is only possible after you've completed the previous actions.</Note>
|
|
148
148
|
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
|
|
149
149
|
* @param {Object} opts Optional parameters
|
|
150
150
|
* @param {module:model/CreateKeyShareHolderGroupRequest} opts.CreateKeyShareHolderGroupRequest The request body to create a key share holder group.
|