@cobo/cobo-waas2 1.4.0 → 1.6.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.
Files changed (180) hide show
  1. package/README.md +32 -10
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/ServerDemo.js +80 -0
  4. package/dist/api/AddressBooksApi.js +105 -0
  5. package/dist/api/DevelopersApi.js +79 -0
  6. package/dist/api/DevelopersWebhooksApi.js +43 -0
  7. package/dist/api/OAuthApi.js +10 -10
  8. package/dist/api/TransactionsApi.js +12 -12
  9. package/dist/api/WalletsApi.js +60 -59
  10. package/dist/api/WalletsExchangeWalletApi.js +4 -4
  11. package/dist/api/WalletsMPCWalletsApi.js +8 -8
  12. package/dist/api/WalletsSmartContractWalletsApi.js +93 -0
  13. package/dist/index.js +181 -34
  14. package/dist/model/AddressBook.js +25 -10
  15. package/dist/model/AddressTransferDestination.js +2 -2
  16. package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +6 -17
  17. package/dist/model/ApiLogDetails.js +238 -0
  18. package/dist/model/ApiLogSummary.js +161 -0
  19. package/dist/model/BabylonStakeEstimatedFee.js +118 -0
  20. package/dist/model/BabylonValidator.js +5 -0
  21. package/dist/model/CheckAddressChainsValidity200ResponseInner.js +121 -0
  22. package/dist/model/CheckLoopTransfers200ResponseInner.js +1 -1
  23. package/dist/model/CoboSafeDelegate.js +2 -2
  24. package/dist/model/CreateSmartContractWalletParams.js +1 -1
  25. package/dist/model/CreateStakeActivityExtra.js +42 -8
  26. package/dist/model/CreateUnstakeActivity.js +16 -0
  27. package/dist/model/CreateUnstakeActivityExtra.js +159 -0
  28. package/dist/model/CreateUnstakeActivityRequest.js +20 -0
  29. package/dist/model/ErrorResponse.js +2 -2
  30. package/dist/model/EstimateContractCallFeeParams.js +5 -7
  31. package/dist/model/EstimateFeeParams.js +1 -1
  32. package/dist/model/EstimateTransferFeeParams.js +5 -9
  33. package/dist/model/EstimateUnstakeFee.js +20 -0
  34. package/dist/model/EstimatedEvmEip1559FeeSlow.js +3 -5
  35. package/dist/model/EstimatedEvmLegacyFeeSlow.js +3 -5
  36. package/dist/model/EstimatedFee.js +1 -1
  37. package/dist/model/EstimatedFixedFee.js +1 -1
  38. package/dist/model/EthStakeEstimatedFee.js +112 -0
  39. package/dist/model/EthStakeExtra.js +131 -0
  40. package/dist/model/EthStakingExtra.js +131 -0
  41. package/dist/model/EthUnstakeExtra.js +131 -0
  42. package/dist/model/ExchangeId.js +10 -0
  43. package/dist/model/ExtendedTokenInfo.js +17 -4
  44. package/dist/model/FeeGasLimit.js +1 -2
  45. package/dist/model/GetApiKeyInfo200Response.js +251 -0
  46. package/dist/model/GetStakingEstimationFee201Response.js +144 -43
  47. package/dist/model/GetStakingEstimationFeeRequest.js +2 -2
  48. package/dist/model/{GetToken200Response.js → GetToken2XXResponse.js} +21 -21
  49. package/dist/model/GetToken4XXResponse.js +12 -10
  50. package/dist/model/ListAddressBooks200Response.js +123 -0
  51. package/dist/model/MPCDelegate.js +5 -5
  52. package/dist/model/MpcTransferSource.js +2 -2
  53. package/dist/model/{RefreshToken200Response.js → RefreshToken2XXResponse.js} +21 -21
  54. package/dist/model/{WalletBalanceSnapshot.js → RoleScopes.js} +42 -34
  55. package/dist/model/SafeWalletDelegates.js +210 -0
  56. package/dist/model/{BookkeepingSummary.js → SafeWalletDelegatesContractCall.js} +47 -52
  57. package/dist/model/{WalletBalanceSnapshotRecord.js → SafeWalletDelegatesTransfer.js} +47 -63
  58. package/dist/model/Scopes.js +142 -0
  59. package/dist/model/SmartContractWalletInfo.js +1 -1
  60. package/dist/model/StakingPoolType.js +5 -0
  61. package/dist/model/StakingsExtra.js +36 -8
  62. package/dist/model/TokenAssetModelType.js +61 -0
  63. package/dist/model/TokenBalanceBalance.js +6 -6
  64. package/dist/model/TokenInfo.js +11 -2
  65. package/dist/model/Transaction.js +1 -1
  66. package/dist/model/TransactionDestination.js +50 -10
  67. package/dist/model/TransactionDestinationType.js +5 -0
  68. package/dist/model/TransactionDetail.js +2 -2
  69. package/dist/model/TransactionDetails.js +2 -2
  70. package/dist/model/TransactionEvmCalldataInfo.js +177 -0
  71. package/dist/model/TransactionEvmContractDestination.js +16 -0
  72. package/dist/model/TransactionEvmContractMethod.js +136 -0
  73. package/dist/model/TransactionEvmEip1559Fee.js +2 -4
  74. package/dist/model/TransactionEvmLegacyFee.js +2 -4
  75. package/dist/model/TransactionFee.js +1 -2
  76. package/dist/model/TransactionRawMessageSignDestination.js +120 -0
  77. package/dist/model/TransactionRbfSource.js +1 -1
  78. package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -2
  79. package/dist/model/TransactionRequestEvmLegacyFee.js +1 -2
  80. package/dist/model/TransactionRequestFee.js +1 -2
  81. package/dist/model/TransactionSmartContractSafeWalletSource.js +4 -6
  82. package/dist/model/TransactionSource.js +1 -1
  83. package/dist/model/TransactionTokeApproval.js +17 -4
  84. package/dist/model/TransactionTransferToAddressDestination.js +2 -2
  85. package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +0 -13
  86. package/dist/model/TransactionWebhookEventData.js +2 -2
  87. package/dist/model/TransferDestination.js +2 -2
  88. package/dist/model/TriggerTestWebhookEvent201Response.js +83 -0
  89. package/dist/model/TriggerTestWebhookEventRequest.js +115 -0
  90. package/dist/model/WebhookEventData.js +1 -1
  91. package/docs/AddressBook.md +8 -7
  92. package/docs/AddressBooksApi.md +71 -0
  93. package/docs/AddressTransferDestination.md +2 -2
  94. package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -2
  95. package/docs/ApiLogDetails.md +18 -0
  96. package/docs/ApiLogSummary.md +13 -0
  97. package/docs/BabylonStakeEstimatedFee.md +12 -0
  98. package/docs/BabylonValidator.md +2 -0
  99. package/docs/CheckAddressChainsValidity200ResponseInner.md +10 -0
  100. package/docs/CheckLoopTransfers200ResponseInner.md +1 -1
  101. package/docs/CoboSafeDelegate.md +2 -2
  102. package/docs/CreateStakeActivityExtra.md +1 -0
  103. package/docs/CreateUnstakeActivity.md +1 -0
  104. package/docs/CreateUnstakeActivityExtra.md +10 -0
  105. package/docs/CreateUnstakeActivityRequest.md +1 -0
  106. package/docs/DevelopersApi.md +55 -0
  107. package/docs/DevelopersWebhooksApi.md +53 -0
  108. package/docs/ErrorResponse.md +1 -1
  109. package/docs/EstimateContractCallFeeParams.md +1 -1
  110. package/docs/EstimateFeeParams.md +1 -1
  111. package/docs/EstimateTransferFeeParams.md +2 -2
  112. package/docs/EstimateUnstakeFee.md +1 -0
  113. package/docs/EstimatedEvmEip1559FeeSlow.md +1 -1
  114. package/docs/EstimatedEvmLegacyFeeSlow.md +1 -1
  115. package/docs/EstimatedFee.md +1 -1
  116. package/docs/EstimatedFixedFee.md +1 -1
  117. package/docs/EthStakeEstimatedFee.md +11 -0
  118. package/docs/EthStakeExtra.md +10 -0
  119. package/docs/EthStakingExtra.md +10 -0
  120. package/docs/EthUnstakeExtra.md +10 -0
  121. package/docs/ExchangeId.md +4 -0
  122. package/docs/ExtendedTokenInfo.md +3 -2
  123. package/docs/FeeGasLimit.md +1 -1
  124. package/docs/GetApiKeyInfo200Response.md +30 -0
  125. package/docs/GetStakingEstimationFee201Response.md +3 -0
  126. package/docs/GetStakingEstimationFeeRequest.md +1 -1
  127. package/docs/{GetToken200Response.md → GetToken2XXResponse.md} +1 -1
  128. package/docs/GetToken4XXResponse.md +1 -1
  129. package/docs/ListAddressBooks200Response.md +10 -0
  130. package/docs/MPCDelegate.md +2 -2
  131. package/docs/MpcTransferSource.md +1 -1
  132. package/docs/OAuthApi.md +5 -5
  133. package/docs/PoolDetailsAllOfValidatorsInfo.md +2 -0
  134. package/docs/{RefreshToken200Response.md → RefreshToken2XXResponse.md} +1 -1
  135. package/docs/RoleScopes.md +10 -0
  136. package/docs/SafeWalletDelegates.md +14 -0
  137. package/docs/SafeWalletDelegatesContractCall.md +12 -0
  138. package/docs/SafeWalletDelegatesTransfer.md +12 -0
  139. package/docs/Scopes.md +13 -0
  140. package/docs/StakingPoolType.md +2 -0
  141. package/docs/TokenAssetModelType.md +12 -0
  142. package/docs/TokenBalanceBalance.md +4 -4
  143. package/docs/TokenInfo.md +3 -2
  144. package/docs/Transaction.md +1 -1
  145. package/docs/TransactionDestination.md +4 -2
  146. package/docs/TransactionDestinationType.md +2 -0
  147. package/docs/TransactionDetail.md +1 -1
  148. package/docs/TransactionDetails.md +1 -1
  149. package/docs/TransactionEvmCalldataInfo.md +16 -0
  150. package/docs/TransactionEvmContractDestination.md +1 -0
  151. package/docs/TransactionEvmContractMethod.md +13 -0
  152. package/docs/TransactionEvmEip1559Fee.md +1 -1
  153. package/docs/TransactionEvmLegacyFee.md +1 -1
  154. package/docs/TransactionFee.md +1 -1
  155. package/docs/TransactionRawMessageSignDestination.md +10 -0
  156. package/docs/TransactionRbfSource.md +1 -1
  157. package/docs/TransactionRequestEvmEip1559Fee.md +1 -1
  158. package/docs/TransactionRequestEvmLegacyFee.md +1 -1
  159. package/docs/TransactionRequestFee.md +1 -1
  160. package/docs/TransactionSmartContractSafeWalletSource.md +1 -1
  161. package/docs/TransactionSource.md +1 -1
  162. package/docs/TransactionTokeApproval.md +3 -2
  163. package/docs/TransactionTransferToAddressDestination.md +2 -2
  164. package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +0 -1
  165. package/docs/TransactionWebhookEventData.md +1 -1
  166. package/docs/TransactionsApi.md +7 -7
  167. package/docs/TransferDestination.md +2 -2
  168. package/docs/TriggerTestWebhookEvent201Response.md +9 -0
  169. package/docs/TriggerTestWebhookEventRequest.md +10 -0
  170. package/docs/WalletsApi.md +55 -55
  171. package/docs/WalletsExchangeWalletApi.md +2 -2
  172. package/docs/WalletsMPCWalletsApi.md +4 -4
  173. package/docs/WalletsSmartContractWalletsApi.md +63 -0
  174. package/docs/WebhookEventData.md +1 -1
  175. package/package.json +3 -2
  176. package/dist/model/BookkeepingRecord.js +0 -243
  177. package/docs/BookkeepingRecord.md +0 -19
  178. package/docs/BookkeepingSummary.md +0 -12
  179. package/docs/WalletBalanceSnapshot.md +0 -10
  180. package/docs/WalletBalanceSnapshotRecord.md +0 -13
@@ -138,8 +138,8 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
138
138
  }
139
139
 
140
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/).
141
+ * Check Cobo Loop transfers
142
+ * This operation verifies if the transactions from a given source wallet to a list of given destinations can be executed as Cobo Loop transfers. For more information about Cobo Loop, see [Cobo Loop's product manuals](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop).
143
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
144
  * @param {String} source_wallet_id The wallet ID of the transaction source.
145
145
  * @param {String} destination_addresses A list of destination addresses, separated by comma.
@@ -180,8 +180,8 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
180
180
  }
181
181
 
182
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/).
183
+ * Check Cobo Loop transfers
184
+ * This operation verifies if the transactions from a given source wallet to a list of given destinations can be executed as Cobo Loop transfers. For more information about Cobo Loop, see [Cobo Loop's product manuals](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop).
185
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
186
  * @param {String} source_wallet_id The wallet ID of the transaction source.
187
187
  * @param {String} destination_addresses A list of destination addresses, separated by comma.
@@ -279,7 +279,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
279
279
 
280
280
  /**
281
281
  * Transfer token
282
- * The operation transfers your assets from a wallet created on Cobo Protal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
282
+ * The operation transfers your assets from a wallet created on Cobo Protal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>If you make transfers from Custodial Wallets, do not set the fee-related properties. Otherwise, the transaction will fail.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
283
283
  * @param {Object} opts Optional parameters
284
284
  * @param {module:model/TransferParams} [TransferParams] The request body to create a transfer transaction
285
285
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTransferTransaction201Response} and HTTP response
@@ -305,7 +305,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
305
305
 
306
306
  /**
307
307
  * Transfer token
308
- * The operation transfers your assets from a wallet created on Cobo Protal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
308
+ * The operation transfers your assets from a wallet created on Cobo Protal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>If you make transfers from Custodial Wallets, do not set the fee-related properties. Otherwise, the transaction will fail.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
309
309
  * @param {Object} opts Optional parameters
310
310
  * @param {module:model/TransferParams} opts.TransferParams The request body to create a transfer transaction
311
311
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTransferTransaction201Response}
@@ -320,7 +320,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
320
320
 
321
321
  /**
322
322
  * Drop transaction
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>
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 must have 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> You can use the `address` or `included_utxos` properties in the request body to specify the address or UTXOs that will cover the transaction fee. Generally, the transaction fee is paid by the original transaction's source. If that source's balance is insufficient, the specified address or UTXOs can be used to cover the fee. A transaction request for tracking is returned upon successful operation. When a transaction is being dropped, any subsequent drop or speed up operations will still apply to the original transaction. For example, if a user creates Transaction A and later performs a drop operation on Transaction A using Transaction B, followed by a speed up operation on Transaction B using Transaction C, the speed up operation will still apply to Transaction A, not Transaction B. <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>
324
324
  * @param {String} transaction_id The transaction ID.
325
325
  * @param {Object} opts Optional parameters
326
326
  * @param {module:model/TransactionRbf} [TransactionRbf] The request body to drop or to speed up transactions
@@ -353,7 +353,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
353
353
 
354
354
  /**
355
355
  * Drop transaction
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>
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 must have 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> You can use the `address` or `included_utxos` properties in the request body to specify the address or UTXOs that will cover the transaction fee. Generally, the transaction fee is paid by the original transaction's source. If that source's balance is insufficient, the specified address or UTXOs can be used to cover the fee. A transaction request for tracking is returned upon successful operation. When a transaction is being dropped, any subsequent drop or speed up operations will still apply to the original transaction. For example, if a user creates Transaction A and later performs a drop operation on Transaction A using Transaction B, followed by a speed up operation on Transaction B using Transaction C, the speed up operation will still apply to Transaction A, not Transaction B. <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>
357
357
  * @param {String} transaction_id The transaction ID.
358
358
  * @param {Object} opts Optional parameters
359
359
  * @param {module:model/TransactionRbf} opts.TransactionRbf The request body to drop or to speed up transactions
@@ -460,7 +460,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
460
460
  * @param {String} [cobo_ids] A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
461
461
  * @param {String} [transaction_ids] A list of transaction IDs, separated by comma.
462
462
  * @param {String} [transaction_hashes] A list of transaction hashes, separated by comma.
463
- * @param {String} [types] A list of transaction types, separated by comma. Possible values include: - `Deposit`: A deposit transaction. - `Withdrawal`: A withdrawal transaction. - `ContractCall`: A transaction that interacts with a smart contract. - `MessageSign`: A transaction that signs a message. - `ExternalSafeTx`: A transaction to a Smart Contract Wallet (Safe{Wallet}) that requires one or multiple signatures to be executed.
463
+ * @param {String} [types] A list of transaction types, separated by comma. Possible values include: - `Deposit`: A deposit transaction. - `Withdrawal`: A withdrawal transaction. - `ContractCall`: A transaction that interacts with a smart contract. - `MessageSign`: A transaction that signs a message. - `ExternalSafeTx`: A transaction to a Smart Contract Wallet (Safe{Wallet}) that requires one or multiple signatures to be executed. - `Stake`: A transaction that creates a staking request. - `Unstake`: A transaction that creates a unstaking request.
464
464
  * @param {String} [statuses] A list of transaction statuses, separated by comma. Possible values include: - `Submitted`: The transaction is submitted. - `PendingScreening`: The transaction is pending screening by Risk Control. - `PendingAuthorization`: The transaction is pending approvals. - `PendingSignature`: The transaction is pending signature. - `Broadcasting`: The transaction is being broadcast. - `Confirming`: The transaction is waiting for the required number of confirmations. - `Completed`: The transaction is completed. - `Failed`: The transaction failed. - `Rejected`: The transaction is rejected. - `Pending`: The transaction is waiting to be included in the next block of the blockchain.
465
465
  * @param {String} [wallet_ids] A list of wallet IDs, separated by comma.
466
466
  * @param {String} [chain_ids] A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
@@ -520,7 +520,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
520
520
  * @param {String} opts.cobo_ids A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
521
521
  * @param {String} opts.transaction_ids A list of transaction IDs, separated by comma.
522
522
  * @param {String} opts.transaction_hashes A list of transaction hashes, separated by comma.
523
- * @param {String} opts.types A list of transaction types, separated by comma. Possible values include: - `Deposit`: A deposit transaction. - `Withdrawal`: A withdrawal transaction. - `ContractCall`: A transaction that interacts with a smart contract. - `MessageSign`: A transaction that signs a message. - `ExternalSafeTx`: A transaction to a Smart Contract Wallet (Safe{Wallet}) that requires one or multiple signatures to be executed.
523
+ * @param {String} opts.types A list of transaction types, separated by comma. Possible values include: - `Deposit`: A deposit transaction. - `Withdrawal`: A withdrawal transaction. - `ContractCall`: A transaction that interacts with a smart contract. - `MessageSign`: A transaction that signs a message. - `ExternalSafeTx`: A transaction to a Smart Contract Wallet (Safe{Wallet}) that requires one or multiple signatures to be executed. - `Stake`: A transaction that creates a staking request. - `Unstake`: A transaction that creates a unstaking request.
524
524
  * @param {String} opts.statuses A list of transaction statuses, separated by comma. Possible values include: - `Submitted`: The transaction is submitted. - `PendingScreening`: The transaction is pending screening by Risk Control. - `PendingAuthorization`: The transaction is pending approvals. - `PendingSignature`: The transaction is pending signature. - `Broadcasting`: The transaction is being broadcast. - `Confirming`: The transaction is waiting for the required number of confirmations. - `Completed`: The transaction is completed. - `Failed`: The transaction failed. - `Rejected`: The transaction is rejected. - `Pending`: The transaction is waiting to be included in the next block of the blockchain.
525
525
  * @param {String} opts.wallet_ids A list of wallet IDs, separated by comma.
526
526
  * @param {String} opts.chain_ids A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
@@ -594,7 +594,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
594
594
 
595
595
  /**
596
596
  * Speed up transaction
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>
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 must have 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`. You can use the `address` or `included_utxos` properties in the request body to specify the address or UTXOs that will cover the transaction fee. Generally, the transaction fee is paid by the original transaction's source. If that source's balance is insufficient, the specified address or UTXOs can be used to cover the fee. 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>
598
598
  * @param {String} transaction_id The transaction ID.
599
599
  * @param {Object} opts Optional parameters
600
600
  * @param {module:model/TransactionRbf} [TransactionRbf] The request body to drop or to speed up transactions
@@ -627,7 +627,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
627
627
 
628
628
  /**
629
629
  * Speed up transaction
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>
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 must have 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`. You can use the `address` or `included_utxos` properties in the request body to specify the address or UTXOs that will cover the transaction fee. Generally, the transaction fee is paid by the original transaction's source. If that source's balance is insufficient, the specified address or UTXOs can be used to cover the fee. 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>
631
631
  * @param {String} transaction_id The transaction ID.
632
632
  * @param {Object} opts Optional parameters
633
633
  * @param {module:model/TransactionRbf} opts.TransactionRbf The request body to drop or to speed up transactions
@@ -7,6 +7,7 @@ exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _AddressInfo = _interopRequireDefault(require("../model/AddressInfo"));
9
9
  var _ChainInfo = _interopRequireDefault(require("../model/ChainInfo"));
10
+ var _CheckAddressChainsValidity200ResponseInner = _interopRequireDefault(require("../model/CheckAddressChainsValidity200ResponseInner"));
10
11
  var _CheckAddressValidity200Response = _interopRequireDefault(require("../model/CheckAddressValidity200Response"));
11
12
  var _CheckAddressesValidity200ResponseInner = _interopRequireDefault(require("../model/CheckAddressesValidity200ResponseInner"));
12
13
  var _CreateAddressRequest = _interopRequireDefault(require("../model/CreateAddressRequest"));
@@ -62,13 +63,64 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
62
63
  }
63
64
 
64
65
  /**
65
- * Check address validity
66
- * This operation verifies if a given address is valid for a specific chain.
67
- * @param {String} chain_id The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
66
+ * Check address validity across chains
67
+ * This operation verifies if a given address is valid for a list of chains.
68
68
  * @param {String} address The wallet address.
69
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CheckAddressValidity200Response} and HTTP response
69
+ * @param {String} chain_ids A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
70
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/CheckAddressChainsValidity200ResponseInner>} and HTTP response
70
71
  */
71
72
  return _createClass(WalletsApi, [{
73
+ key: "checkAddressChainsValidityWithHttpInfo",
74
+ value: function checkAddressChainsValidityWithHttpInfo(address, chain_ids) {
75
+ var postBody = null;
76
+ if (postBody && postBody.toJSON) {
77
+ postBody = postBody.toJSON();
78
+ }
79
+ // verify the required parameter 'address' is set
80
+ if (address === undefined || address === null) {
81
+ throw new Error("Missing the required parameter 'address' when calling checkAddressChainsValidity");
82
+ }
83
+ // verify the required parameter 'chain_ids' is set
84
+ if (chain_ids === undefined || chain_ids === null) {
85
+ throw new Error("Missing the required parameter 'chain_ids' when calling checkAddressChainsValidity");
86
+ }
87
+ var pathParams = {};
88
+ var queryParams = {
89
+ 'address': address,
90
+ 'chain_ids': chain_ids
91
+ };
92
+ var headerParams = {};
93
+ var formParams = {};
94
+ var authNames = ['CoboAuth'];
95
+ var contentTypes = [];
96
+ var accepts = ['application/json'];
97
+ var returnType = [_CheckAddressChainsValidity200ResponseInner["default"]];
98
+ return this.apiClient.callApi('/wallets/check_address_chains_validity', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
99
+ }
100
+
101
+ /**
102
+ * Check address validity across chains
103
+ * This operation verifies if a given address is valid for a list of chains.
104
+ * @param {String} address The wallet address.
105
+ * @param {String} chain_ids A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
106
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/CheckAddressChainsValidity200ResponseInner>}
107
+ */
108
+ }, {
109
+ key: "checkAddressChainsValidity",
110
+ value: function checkAddressChainsValidity(address, chain_ids) {
111
+ return this.checkAddressChainsValidityWithHttpInfo(address, chain_ids).then(function (response_and_data) {
112
+ return response_and_data.data;
113
+ });
114
+ }
115
+
116
+ /**
117
+ * Check address validity
118
+ * This operation verifies if a given address is valid for a specific chain.
119
+ * @param {String} chain_id The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
120
+ * @param {String} address The wallet address.
121
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CheckAddressValidity200Response} and HTTP response
122
+ */
123
+ }, {
72
124
  key: "checkAddressValidityWithHttpInfo",
73
125
  value: function checkAddressValidityWithHttpInfo(chain_id, address) {
74
126
  var postBody = null;
@@ -297,57 +349,6 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
297
349
  });
298
350
  }
299
351
 
300
- /**
301
- * Get address information
302
- * This operation retrieves the detailed information about a specified address within a wallet.
303
- * @param {String} wallet_id The wallet ID.
304
- * @param {String} address The wallet address.
305
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/AddressInfo>} and HTTP response
306
- */
307
- }, {
308
- key: "getAddressWithHttpInfo",
309
- value: function getAddressWithHttpInfo(wallet_id, address) {
310
- var postBody = null;
311
- if (postBody && postBody.toJSON) {
312
- postBody = postBody.toJSON();
313
- }
314
- // verify the required parameter 'wallet_id' is set
315
- if (wallet_id === undefined || wallet_id === null) {
316
- throw new Error("Missing the required parameter 'wallet_id' when calling getAddress");
317
- }
318
- // verify the required parameter 'address' is set
319
- if (address === undefined || address === null) {
320
- throw new Error("Missing the required parameter 'address' when calling getAddress");
321
- }
322
- var pathParams = {
323
- 'wallet_id': wallet_id,
324
- 'address': address
325
- };
326
- var queryParams = {};
327
- var headerParams = {};
328
- var formParams = {};
329
- var authNames = ['CoboAuth'];
330
- var contentTypes = [];
331
- var accepts = ['application/json'];
332
- var returnType = [_AddressInfo["default"]];
333
- return this.apiClient.callApi('/wallets/{wallet_id}/addresses/{address}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
334
- }
335
-
336
- /**
337
- * Get address information
338
- * This operation retrieves the detailed information about a specified address within a wallet.
339
- * @param {String} wallet_id The wallet ID.
340
- * @param {String} address The wallet address.
341
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/AddressInfo>}
342
- */
343
- }, {
344
- key: "getAddress",
345
- value: function getAddress(wallet_id, address) {
346
- return this.getAddressWithHttpInfo(wallet_id, address).then(function (response_and_data) {
347
- return response_and_data.data;
348
- });
349
- }
350
-
351
352
  /**
352
353
  * Get chain information
353
354
  * This operation retrieves the detailed information about a specified chain.
@@ -394,7 +395,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
394
395
 
395
396
  /**
396
397
  * Get maximum transferable value
397
- * 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.
398
+ * 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>
398
399
  * @param {String} wallet_id The wallet ID.
399
400
  * @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).
400
401
  * @param {String} fee_rate The fee rate in sats/vByte or gas price in wei.
@@ -447,7 +448,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
447
448
 
448
449
  /**
449
450
  * Get maximum transferable value
450
- * 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.
451
+ * 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>
451
452
  * @param {String} wallet_id The wallet ID.
452
453
  * @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).
453
454
  * @param {String} fee_rate The fee rate in sats/vByte or gas price in wei.
@@ -558,7 +559,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
558
559
  * @param {String} wallet_id The wallet ID.
559
560
  * @param {Object} opts Optional parameters
560
561
  * @param {String} [chain_ids] A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
561
- * @param {String} [addresses] A list of wallet addresses, separated by comma.
562
+ * @param {String} [addresses] A list of wallet addresses, separated by comma. For addresses requiring a memo, append the memo after the address using the '|' separator (e.g., \"address|memo\").
562
563
  * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
563
564
  * @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.
564
565
  * @param {String} [after] An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
@@ -601,7 +602,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
601
602
  * @param {String} wallet_id The wallet ID.
602
603
  * @param {Object} opts Optional parameters
603
604
  * @param {String} opts.chain_ids A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
604
- * @param {String} opts.addresses A list of wallet addresses, separated by comma.
605
+ * @param {String} opts.addresses A list of wallet addresses, separated by comma. For addresses requiring a memo, append the memo after the address using the '|' separator (e.g., \"address|memo\").
605
606
  * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
606
607
  * @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.
607
608
  * @param {String} opts.after An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
@@ -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`: 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 - `bitmart`: BitMart - `bitfinex`: Bitfinex
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`: 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 - `bitmart`: BitMart - `bitfinex`: Bitfinex
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`: 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 - `bitmart`: BitMart - `bitfinex`: Bitfinex
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`: 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 - `bitmart`: BitMart - `bitfinex`: Bitfinex
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
  */
@@ -201,7 +201,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
201
201
 
202
202
  /**
203
203
  * Create vault
204
- * This operation creates a vault.
204
+ * This operation creates a vault. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
205
205
  * @param {Object} opts Optional parameters
206
206
  * @param {module:model/CreateMpcVaultRequest} [CreateMpcVaultRequest] The request body to create a vault.
207
207
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MPCVault} and HTTP response
@@ -227,7 +227,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
227
227
 
228
228
  /**
229
229
  * Create vault
230
- * This operation creates a vault.
230
+ * This operation creates a vault. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
231
231
  * @param {Object} opts Optional parameters
232
232
  * @param {module:model/CreateMpcVaultRequest} opts.CreateMpcVaultRequest The request body to create a vault.
233
233
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MPCVault}
@@ -437,7 +437,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
437
437
 
438
438
  /**
439
439
  * Get vault information
440
- * This operation retrieves detailed information about a vault.
440
+ * This operation retrieves detailed information about a vault. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
441
441
  * @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).
442
442
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MPCVault} and HTTP response
443
443
  */
@@ -467,7 +467,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
467
467
 
468
468
  /**
469
469
  * Get vault information
470
- * This operation retrieves detailed information about a vault.
470
+ * This operation retrieves detailed information about a vault. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
471
471
  * @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).
472
472
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MPCVault}
473
473
  */
@@ -677,7 +677,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
677
677
 
678
678
  /**
679
679
  * List all vaults
680
- * This operation retrieves a list of all vaults. You can filter the result by project ID. **Notes for query parameters**: 1. `project_id` is required when `vault_type` is set to `User-Controlled`. 2. `project_id` must be left blank when `vault_type` is set to `Org-Controlled`.
680
+ * This operation retrieves a list of all vaults. You can filter the result by project ID. **Notes for query parameters**: 1. `project_id` is required when `vault_type` is set to `User-Controlled`. 2. `project_id` must be left blank when `vault_type` is set to `Org-Controlled`. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
681
681
  * @param {module:model/MPCVaultType} vault_type The vault type. Possible values include: - `Org-Controlled`: This vault is a collection of [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#organization-controlled-wallets). - `User-Controlled`: This vault is a collection of [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#user-controlled-wallets).
682
682
  * @param {Object} opts Optional parameters
683
683
  * @param {String} [project_id] The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
@@ -717,7 +717,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
717
717
 
718
718
  /**
719
719
  * List all vaults
720
- * This operation retrieves a list of all vaults. You can filter the result by project ID. **Notes for query parameters**: 1. `project_id` is required when `vault_type` is set to `User-Controlled`. 2. `project_id` must be left blank when `vault_type` is set to `Org-Controlled`.
720
+ * This operation retrieves a list of all vaults. You can filter the result by project ID. **Notes for query parameters**: 1. `project_id` is required when `vault_type` is set to `User-Controlled`. 2. `project_id` must be left blank when `vault_type` is set to `Org-Controlled`. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
721
721
  * @param {module:model/MPCVaultType} vault_type The vault type. Possible values include: - `Org-Controlled`: This vault is a collection of [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#organization-controlled-wallets). - `User-Controlled`: This vault is a collection of [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#user-controlled-wallets).
722
722
  * @param {Object} opts Optional parameters
723
723
  * @param {String} opts.project_id The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
@@ -905,7 +905,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
905
905
 
906
906
  /**
907
907
  * Update vault name
908
- * This operation updates a vault's name.
908
+ * This operation updates a vault's name. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
909
909
  * @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).
910
910
  * @param {Object} opts Optional parameters
911
911
  * @param {module:model/UpdateMpcVaultByIdRequest} [UpdateMpcVaultByIdRequest] The request body to update a vault's name.
@@ -938,7 +938,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
938
938
 
939
939
  /**
940
940
  * Update vault name
941
- * This operation updates a vault's name.
941
+ * This operation updates a vault's name. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
942
942
  * @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).
943
943
  * @param {Object} opts Optional parameters
944
944
  * @param {module:model/UpdateMpcVaultByIdRequest} opts.UpdateMpcVaultByIdRequest The request body to update a vault's name.
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _CoboSafeDelegate = _interopRequireDefault(require("../model/CoboSafeDelegate"));
9
+ var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
10
+ var _SafeWalletDelegates = _interopRequireDefault(require("../model/SafeWalletDelegates"));
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ 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); } /**
18
+ * Cobo Wallet as a Service 2.0
19
+ *
20
+ * Contact: help@cobo.com
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * WalletsSmartContractWallets service.
29
+ * @module api/WalletsSmartContractWalletsApi
30
+ */
31
+ var WalletsSmartContractWalletsApi = exports["default"] = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new WalletsSmartContractWalletsApi.
34
+ * @alias module:api/WalletsSmartContractWalletsApi
35
+ * @class
36
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
37
+ * default to {@link module:ApiClient#instance} if unspecified.
38
+ */
39
+ function WalletsSmartContractWalletsApi(apiClient) {
40
+ _classCallCheck(this, WalletsSmartContractWalletsApi);
41
+ this.apiClient = apiClient || _ApiClient["default"].instance;
42
+ }
43
+
44
+ /**
45
+ * List Delegates
46
+ * This operation retrieves all available Delegates of a Safe\\{Wallet\\} for a given transfer or contract call request.
47
+ * @param {String} wallet_id The wallet ID.
48
+ * @param {Object} opts Optional parameters
49
+ * @param {module:model/SafeWalletDelegates} [SafeWalletDelegates] The request body to query the Delegates of a Safe{Wallet}.
50
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/CoboSafeDelegate>} and HTTP response
51
+ */
52
+ return _createClass(WalletsSmartContractWalletsApi, [{
53
+ key: "listSafeWalletDelegatesWithHttpInfo",
54
+ value: function listSafeWalletDelegatesWithHttpInfo(wallet_id, opts) {
55
+ opts = opts || {};
56
+ var postBody = opts['SafeWalletDelegates'];
57
+ if (postBody && postBody.toJSON) {
58
+ postBody = postBody.toJSON();
59
+ }
60
+ // verify the required parameter 'wallet_id' is set
61
+ if (wallet_id === undefined || wallet_id === null) {
62
+ throw new Error("Missing the required parameter 'wallet_id' when calling listSafeWalletDelegates");
63
+ }
64
+ var pathParams = {
65
+ 'wallet_id': wallet_id
66
+ };
67
+ var queryParams = {};
68
+ var headerParams = {};
69
+ var formParams = {};
70
+ var authNames = ['CoboAuth'];
71
+ var contentTypes = ['application/json'];
72
+ var accepts = ['application/json'];
73
+ var returnType = [_CoboSafeDelegate["default"]];
74
+ return this.apiClient.callApi('/wallets/{wallet_id}/smart_contracts/delegates', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
75
+ }
76
+
77
+ /**
78
+ * List Delegates
79
+ * This operation retrieves all available Delegates of a Safe\\{Wallet\\} for a given transfer or contract call request.
80
+ * @param {String} wallet_id The wallet ID.
81
+ * @param {Object} opts Optional parameters
82
+ * @param {module:model/SafeWalletDelegates} opts.SafeWalletDelegates The request body to query the Delegates of a Safe{Wallet}.
83
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/CoboSafeDelegate>}
84
+ */
85
+ }, {
86
+ key: "listSafeWalletDelegates",
87
+ value: function listSafeWalletDelegates(wallet_id, opts) {
88
+ return this.listSafeWalletDelegatesWithHttpInfo(wallet_id, opts).then(function (response_and_data) {
89
+ return response_and_data.data;
90
+ });
91
+ }
92
+ }]);
93
+ }();