@cobo/cobo-waas2 1.11.0 → 1.13.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 (211) hide show
  1. package/README.md +72 -13
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/FeeStationApi.js +282 -0
  4. package/dist/api/TransactionsApi.js +57 -7
  5. package/dist/api/WalletsApi.js +60 -2
  6. package/dist/index.js +384 -41
  7. package/dist/model/ActivityExtra.js +0 -12
  8. package/dist/model/AddressEncoding.js +15 -0
  9. package/dist/model/AddressTransferDestination.js +1 -1
  10. package/dist/model/AddressesEventData.js +18 -3
  11. package/dist/model/BTCBIP137MessageSignDestination.js +122 -0
  12. package/dist/model/BTCBIP322MessageSignDestination.js +122 -0
  13. package/dist/model/BabylonStakingActivityDetailExtra.js +0 -18
  14. package/dist/model/BankAccount.js +123 -0
  15. package/dist/model/BaseContractCallSource.js +1 -1
  16. package/dist/model/ChainsEventData.js +207 -0
  17. package/dist/model/ContractCallParams.js +3 -30
  18. package/dist/model/ContractCallSource.js +36 -8
  19. package/dist/model/ContractCallSourceType.js +5 -0
  20. package/dist/model/CosmosAdr36MessageSignDestination.js +122 -0
  21. package/dist/model/CosmosContractCallDestination.js +152 -0
  22. package/dist/model/CosmosContractCallMessage.js +126 -0
  23. package/dist/model/CreateSettlement.js +174 -0
  24. package/dist/model/CustodialTransferSource.js +1 -1
  25. package/dist/model/{CreateSwapQuoteRequest.js → CustodialWeb3ContractCallSource.js} +55 -65
  26. package/dist/model/CustodialWeb3MessageSignSource.js +136 -0
  27. package/dist/model/CustodialWeb3TransferSource.js +194 -0
  28. package/dist/model/FeeStationTransactionType.js +61 -0
  29. package/dist/model/{ListSwapActivities200Response.js → ListTransactionApprovalDetails200Response.js} +21 -37
  30. package/dist/model/MPCVaultEventData.js +18 -3
  31. package/dist/model/{CreateSwapActivityRequest.js → Merchant.js} +45 -58
  32. package/dist/model/MessageSignDestination.js +111 -9
  33. package/dist/model/MessageSignDestinationType.js +15 -0
  34. package/dist/model/MessageSignSource.js +36 -8
  35. package/dist/model/MessageSignSourceType.js +5 -0
  36. package/dist/model/Order.js +306 -0
  37. package/dist/model/OrderStatus.js +76 -0
  38. package/dist/model/PaymentTransaction.js +201 -0
  39. package/dist/model/RefreshAddressBalancesByToken200Response.js +106 -0
  40. package/dist/model/RefreshAddressBalancesByTokenRequest.js +110 -0
  41. package/dist/model/Refund.js +237 -0
  42. package/dist/model/RefundStatus.js +76 -0
  43. package/dist/model/RefundType.js +61 -0
  44. package/dist/model/{ListEnableTokenPairs200Response.js → SafeTxDecodedData.js} +38 -39
  45. package/dist/model/SafeTxDecodedDataParameters.js +148 -0
  46. package/dist/model/SafeTxExtraData.js +339 -0
  47. package/dist/model/SafeTxSubTransaction.js +169 -0
  48. package/dist/model/SettleRequestStatus.js +76 -0
  49. package/dist/model/SettleStatus.js +76 -0
  50. package/dist/model/Settlement.js +168 -0
  51. package/dist/model/SettlementDetail.js +184 -0
  52. package/dist/model/SettlementInfo.js +175 -0
  53. package/dist/model/SettlementType.js +61 -0
  54. package/dist/model/SwapActivity.js +36 -5
  55. package/dist/model/SwapActivityStatus.js +66 -0
  56. package/dist/model/SwapActivityType.js +61 -0
  57. package/dist/model/SwapQuote.js +21 -34
  58. package/dist/model/SwapToken.js +179 -0
  59. package/dist/model/TSSRequestWebhookEventData.js +18 -3
  60. package/dist/model/TokenListing.js +230 -0
  61. package/dist/model/TokenListingEventData.js +363 -0
  62. package/dist/model/TokenListingRequestSource.js +61 -0
  63. package/dist/model/TokenListingRequestStatus.js +66 -0
  64. package/dist/model/TokensEventData.js +207 -0
  65. package/dist/model/Transaction.js +50 -4
  66. package/dist/model/TransactionApprovalDetail.js +39 -0
  67. package/dist/model/TransactionBIP137Destination.js +122 -0
  68. package/dist/model/TransactionBIP322Destination.js +122 -0
  69. package/dist/model/TransactionBabylonBusinessInfo.js +138 -0
  70. package/dist/model/TransactionBabylonTxParameters.js +168 -0
  71. package/dist/model/TransactionCoboCategory.js +91 -0
  72. package/dist/model/TransactionCoreStakeInfo.js +168 -0
  73. package/dist/model/TransactionCosmosAdr36Destination.js +122 -0
  74. package/dist/model/TransactionCosmosContractDestination.js +152 -0
  75. package/dist/model/TransactionCosmosMessage.js +126 -0
  76. package/dist/model/TransactionCustodialWeb3WalletSource.js +194 -0
  77. package/dist/model/TransactionDestination.js +184 -8
  78. package/dist/model/TransactionDestinationType.js +20 -0
  79. package/dist/model/TransactionDetail.js +65 -5
  80. package/dist/model/TransactionDetails.js +65 -5
  81. package/dist/model/TransactionExtra.js +278 -0
  82. package/dist/model/TransactionExtraType.js +66 -0
  83. package/dist/model/{SwapTokenPair.js → TransactionFuelingInfo.js} +31 -30
  84. package/dist/model/TransactionMessageSignBTCEIP191Destination.js +122 -0
  85. package/dist/model/TransactionMessageSignEIP712Destination.js +29 -0
  86. package/dist/model/TransactionProcessType.js +61 -0
  87. package/dist/model/TransactionRbfSource.js +37 -9
  88. package/dist/model/TransactionRequestUtxoFee.js +4 -6
  89. package/dist/model/TransactionSelectedUtxo.js +26 -0
  90. package/dist/model/TransactionSolContractDestination.js +1 -1
  91. package/dist/model/TransactionSource.js +36 -8
  92. package/dist/model/TransactionSourceType.js +5 -0
  93. package/dist/model/TransactionSubStatus.js +45 -0
  94. package/dist/model/TransactionUserApprovalDetail.js +26 -0
  95. package/dist/model/TransactionWebhookEventData.js +83 -8
  96. package/dist/model/TransferParams.js +3 -30
  97. package/dist/model/TransferSource.js +36 -8
  98. package/dist/model/UpdateCustodialWalletParams.js +6 -4
  99. package/dist/model/UpdateExchangeWalletParams.js +6 -4
  100. package/dist/model/UpdateMpcWalletParams.js +6 -4
  101. package/dist/model/UpdateSmartContractWalletParams.js +6 -4
  102. package/dist/model/WalletInfoEventData.js +18 -3
  103. package/dist/model/WebhookEventData.js +162 -17
  104. package/dist/model/WebhookEventDataType.js +17 -2
  105. package/dist/model/WebhookEventType.js +40 -0
  106. package/docs/ActivityExtra.md +0 -2
  107. package/docs/AddressEncoding.md +6 -0
  108. package/docs/AddressesEventData.md +7 -1
  109. package/docs/BTCBIP137MessageSignDestination.md +10 -0
  110. package/docs/BTCBIP322MessageSignDestination.md +10 -0
  111. package/docs/BabylonStakingActivityDetailExtra.md +0 -2
  112. package/docs/BankAccount.md +10 -0
  113. package/docs/ChainsEventData.md +35 -0
  114. package/docs/ContractCallParams.md +1 -14
  115. package/docs/ContractCallSourceType.md +2 -0
  116. package/docs/CosmosAdr36MessageSignDestination.md +10 -0
  117. package/docs/CosmosContractCallDestination.md +11 -0
  118. package/docs/CosmosContractCallMessage.md +10 -0
  119. package/docs/CreateSettlement.md +14 -0
  120. package/docs/CustodialWeb3ContractCallSource.md +11 -0
  121. package/docs/CustodialWeb3MessageSignSource.md +11 -0
  122. package/docs/CustodialWeb3TransferSource.md +13 -0
  123. package/docs/FeeStationApi.md +260 -0
  124. package/docs/FeeStationTransactionType.md +12 -0
  125. package/docs/ListTransactionApprovalDetails200Response.md +9 -0
  126. package/docs/MPCVaultEventData.md +7 -1
  127. package/docs/Merchant.md +11 -0
  128. package/docs/MessageSignDestination.md +3 -0
  129. package/docs/MessageSignDestinationType.md +6 -0
  130. package/docs/MessageSignSourceType.md +2 -0
  131. package/docs/Order.md +23 -0
  132. package/docs/OrderStatus.md +18 -0
  133. package/docs/PaymentTransaction.md +16 -0
  134. package/docs/RefreshAddressBalancesByToken200Response.md +9 -0
  135. package/docs/RefreshAddressBalancesByTokenRequest.md +9 -0
  136. package/docs/Refund.md +17 -0
  137. package/docs/RefundStatus.md +18 -0
  138. package/docs/RefundType.md +12 -0
  139. package/docs/SafeTxDecodedData.md +10 -0
  140. package/docs/SafeTxDecodedDataParameters.md +12 -0
  141. package/docs/SafeTxExtraData.md +26 -0
  142. package/docs/SafeTxSubTransaction.md +15 -0
  143. package/docs/SettleRequestStatus.md +18 -0
  144. package/docs/SettleStatus.md +18 -0
  145. package/docs/Settlement.md +12 -0
  146. package/docs/SettlementDetail.md +15 -0
  147. package/docs/SettlementInfo.md +14 -0
  148. package/docs/SettlementType.md +12 -0
  149. package/docs/SwapActivity.md +4 -1
  150. package/docs/SwapActivityStatus.md +14 -0
  151. package/docs/SwapActivityType.md +12 -0
  152. package/docs/SwapQuote.md +3 -4
  153. package/docs/SwapToken.md +14 -0
  154. package/docs/TSSRequestWebhookEventData.md +7 -1
  155. package/docs/TokenListing.md +19 -0
  156. package/docs/TokenListingEventData.md +45 -0
  157. package/docs/TokenListingRequestSource.md +12 -0
  158. package/docs/TokenListingRequestStatus.md +14 -0
  159. package/docs/TokensEventData.md +35 -0
  160. package/docs/Transaction.md +5 -2
  161. package/docs/TransactionApprovalDetail.md +3 -0
  162. package/docs/TransactionBIP137Destination.md +10 -0
  163. package/docs/TransactionBIP322Destination.md +10 -0
  164. package/docs/TransactionBabylonBusinessInfo.md +11 -0
  165. package/docs/TransactionBabylonTxParameters.md +15 -0
  166. package/docs/TransactionCoboCategory.md +24 -0
  167. package/docs/TransactionCoreStakeInfo.md +14 -0
  168. package/docs/TransactionCosmosAdr36Destination.md +10 -0
  169. package/docs/TransactionCosmosContractDestination.md +11 -0
  170. package/docs/TransactionCosmosMessage.md +10 -0
  171. package/docs/TransactionCustodialWeb3WalletSource.md +13 -0
  172. package/docs/TransactionDestination.md +6 -0
  173. package/docs/TransactionDestinationType.md +8 -0
  174. package/docs/TransactionDetail.md +5 -2
  175. package/docs/TransactionDetails.md +5 -2
  176. package/docs/TransactionExtra.md +21 -0
  177. package/docs/TransactionExtraType.md +14 -0
  178. package/docs/TransactionFuelingInfo.md +10 -0
  179. package/docs/TransactionMessageSignBTCEIP191Destination.md +10 -0
  180. package/docs/TransactionMessageSignEIP712Destination.md +2 -0
  181. package/docs/TransactionProcessType.md +12 -0
  182. package/docs/TransactionRbfSource.md +1 -1
  183. package/docs/TransactionRequestFee.md +1 -1
  184. package/docs/TransactionRequestUtxoFee.md +1 -1
  185. package/docs/TransactionSelectedUtxo.md +2 -0
  186. package/docs/TransactionSourceType.md +2 -0
  187. package/docs/TransactionSubStatus.md +18 -0
  188. package/docs/TransactionUserApprovalDetail.md +2 -0
  189. package/docs/TransactionWebhookEventData.md +12 -3
  190. package/docs/TransactionsApi.md +61 -4
  191. package/docs/TransferParams.md +1 -14
  192. package/docs/UpdateCustodialWalletParams.md +1 -1
  193. package/docs/UpdateExchangeWalletParams.md +1 -1
  194. package/docs/UpdateMpcWalletParams.md +1 -1
  195. package/docs/UpdateSmartContractWalletParams.md +1 -1
  196. package/docs/UpdateWalletParams.md +1 -1
  197. package/docs/WalletInfoEventData.md +7 -1
  198. package/docs/WalletsApi.md +58 -1
  199. package/docs/WebhookEventData.md +23 -7
  200. package/docs/WebhookEventDataType.md +7 -1
  201. package/docs/WebhookEventType.md +16 -0
  202. package/package.json +1 -1
  203. package/dist/api/SwapsApi.js +0 -360
  204. package/dist/model/CreateSwapQuote201Response.js +0 -264
  205. package/docs/CreateSwapActivityRequest.md +0 -12
  206. package/docs/CreateSwapQuote201Response.md +0 -17
  207. package/docs/CreateSwapQuoteRequest.md +0 -13
  208. package/docs/ListEnableTokenPairs200Response.md +0 -10
  209. package/docs/ListSwapActivities200Response.md +0 -10
  210. package/docs/SwapTokenPair.md +0 -10
  211. package/docs/SwapsApi.md +0 -348
package/README.md CHANGED
@@ -15,7 +15,7 @@ For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](http
15
15
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
16
16
 
17
17
  - API version: v2
18
- - Package version: 1.11.0
18
+ - Package version: 1.13.0
19
19
  - Generator version: 7.6.0
20
20
  - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
21
21
  For more information, please visit [https://www.cobo.com/waas](https://www.cobo.com/waas)
@@ -81,6 +81,10 @@ Class | Method | HTTP request | Description
81
81
  *CoboWaas2.DevelopersWebhooksApi* | [**retryWebhookEventById**](docs/DevelopersWebhooksApi.md#retryWebhookEventById) | **POST** /webhooks/endpoints/{endpoint_id}/events/{event_id}/retry | Retry event
82
82
  *CoboWaas2.DevelopersWebhooksApi* | [**triggerTestWebhookEvent**](docs/DevelopersWebhooksApi.md#triggerTestWebhookEvent) | **POST** /webhooks/events/trigger | Trigger test event
83
83
  *CoboWaas2.DevelopersWebhooksApi* | [**updateWebhookEndpointById**](docs/DevelopersWebhooksApi.md#updateWebhookEndpointById) | **PUT** /webhooks/endpoints/{endpoint_id} | Update webhook endpoint
84
+ *CoboWaas2.FeeStationApi* | [**getFeeStationTransactionById**](docs/FeeStationApi.md#getFeeStationTransactionById) | **GET** /fee_station/transactions/{transaction_id} | Get Fee Station transaction information
85
+ *CoboWaas2.FeeStationApi* | [**listFeeStationAddresses**](docs/FeeStationApi.md#listFeeStationAddresses) | **GET** /fee_station/addresses | List Fee Station addresses
86
+ *CoboWaas2.FeeStationApi* | [**listFeeStationTransactions**](docs/FeeStationApi.md#listFeeStationTransactions) | **GET** /fee_station/transactions | List all Fee Station transactions
87
+ *CoboWaas2.FeeStationApi* | [**listTokenBalancesForFeeStation**](docs/FeeStationApi.md#listTokenBalancesForFeeStation) | **GET** /fee_station/tokens | List Fee Station token balances
84
88
  *CoboWaas2.OAuthApi* | [**getToken**](docs/OAuthApi.md#getToken) | **GET** /oauth/token | Get Org Access Token
85
89
  *CoboWaas2.OAuthApi* | [**refreshToken**](docs/OAuthApi.md#refreshToken) | **POST** /oauth/token | Refresh Org Access Token
86
90
  *CoboWaas2.PrimeBrokerApi* | [**changeGuardPubkey**](docs/PrimeBrokerApi.md#changeGuardPubkey) | **PUT** /prime_broker/user/{user_id}/guard_pubkey | Change Guard pubkey binding
@@ -109,12 +113,6 @@ Class | Method | HTTP request | Description
109
113
  *CoboWaas2.StakingsApi* | [**listStakingActivities**](docs/StakingsApi.md#listStakingActivities) | **GET** /stakings/activities | List staking activities
110
114
  *CoboWaas2.StakingsApi* | [**listStakingPools**](docs/StakingsApi.md#listStakingPools) | **GET** /stakings/pools | List staking pools
111
115
  *CoboWaas2.StakingsApi* | [**listStakings**](docs/StakingsApi.md#listStakings) | **GET** /stakings | List staking positions
112
- *CoboWaas2.SwapsApi* | [**createSwapActivity**](docs/SwapsApi.md#createSwapActivity) | **POST** /swaps/swap | Create Swap Activity
113
- *CoboWaas2.SwapsApi* | [**createSwapQuote**](docs/SwapsApi.md#createSwapQuote) | **POST** /swaps/quote | Create Swap Quote
114
- *CoboWaas2.SwapsApi* | [**getSwapActivity**](docs/SwapsApi.md#getSwapActivity) | **GET** /swaps/activities/{activity_id} | Get Swap Activity Details
115
- *CoboWaas2.SwapsApi* | [**getSwapQuote**](docs/SwapsApi.md#getSwapQuote) | **GET** /swaps/quote | Get Current Swap Rate
116
- *CoboWaas2.SwapsApi* | [**listEnableTokenPairs**](docs/SwapsApi.md#listEnableTokenPairs) | **GET** /swaps/enabled_pairs | List Supported Token Pairs
117
- *CoboWaas2.SwapsApi* | [**listSwapActivities**](docs/SwapsApi.md#listSwapActivities) | **GET** /swaps/activities | List Swap Activities
118
116
  *CoboWaas2.TransactionsApi* | [**broadcastSignedTransactions**](docs/TransactionsApi.md#broadcastSignedTransactions) | **POST** /transactions/broadcast | Broadcast signed transactions
119
117
  *CoboWaas2.TransactionsApi* | [**cancelTransactionById**](docs/TransactionsApi.md#cancelTransactionById) | **POST** /transactions/{transaction_id}/cancel | Cancel transaction
120
118
  *CoboWaas2.TransactionsApi* | [**checkLoopTransfers**](docs/TransactionsApi.md#checkLoopTransfers) | **GET** /transactions/check_loop_transfers | Check Cobo Loop transfers
@@ -125,6 +123,7 @@ Class | Method | HTTP request | Description
125
123
  *CoboWaas2.TransactionsApi* | [**estimateFee**](docs/TransactionsApi.md#estimateFee) | **POST** /transactions/estimate_fee | Estimate transaction fee
126
124
  *CoboWaas2.TransactionsApi* | [**getTransactionApprovalDetail**](docs/TransactionsApi.md#getTransactionApprovalDetail) | **GET** /transactions/{transaction_id}/approval_detail | Get transaction approval details
127
125
  *CoboWaas2.TransactionsApi* | [**getTransactionById**](docs/TransactionsApi.md#getTransactionById) | **GET** /transactions/{transaction_id} | Get transaction information
126
+ *CoboWaas2.TransactionsApi* | [**listTransactionApprovalDetails**](docs/TransactionsApi.md#listTransactionApprovalDetails) | **GET** /transactions/approval_details | List transaction approval details
128
127
  *CoboWaas2.TransactionsApi* | [**listTransactions**](docs/TransactionsApi.md#listTransactions) | **GET** /transactions | List all transactions
129
128
  *CoboWaas2.TransactionsApi* | [**resendTransactionById**](docs/TransactionsApi.md#resendTransactionById) | **POST** /transactions/{transaction_id}/resend | Resend transaction
130
129
  *CoboWaas2.TransactionsApi* | [**signAndBroadcastTransactionById**](docs/TransactionsApi.md#signAndBroadcastTransactionById) | **POST** /transactions/{transaction_id}/sign_and_broadcast | Sign and broadcast transaction
@@ -154,6 +153,7 @@ Class | Method | HTTP request | Description
154
153
  *CoboWaas2.WalletsApi* | [**listUtxos**](docs/WalletsApi.md#listUtxos) | **GET** /wallets/{wallet_id}/utxos | List UTXOs
155
154
  *CoboWaas2.WalletsApi* | [**listWallets**](docs/WalletsApi.md#listWallets) | **GET** /wallets | List all wallets
156
155
  *CoboWaas2.WalletsApi* | [**lockUtxos**](docs/WalletsApi.md#lockUtxos) | **POST** /wallets/{wallet_id}/utxos/lock | Lock UTXOs
156
+ *CoboWaas2.WalletsApi* | [**refreshAddressBalancesByToken**](docs/WalletsApi.md#refreshAddressBalancesByToken) | **PUT** /wallets/{wallet_id}/tokens/{token_id}/refresh_address_balances | Refresh address balances by token
157
157
  *CoboWaas2.WalletsApi* | [**unlockUtxos**](docs/WalletsApi.md#unlockUtxos) | **POST** /wallets/{wallet_id}/utxos/unlock | Unlock UTXOs
158
158
  *CoboWaas2.WalletsApi* | [**updateWalletById**](docs/WalletsApi.md#updateWalletById) | **PUT** /wallets/{wallet_id} | Update wallet
159
159
  *CoboWaas2.WalletsExchangeWalletApi* | [**listAssetBalancesForExchangeWallet**](docs/WalletsExchangeWalletApi.md#listAssetBalancesForExchangeWallet) | **GET** /wallets/{wallet_id}/exchanges/assets | List asset balances
@@ -209,6 +209,8 @@ Class | Method | HTTP request | Description
209
209
  - [CoboWaas2.AssetBalance](docs/AssetBalance.md)
210
210
  - [CoboWaas2.AssetInfo](docs/AssetInfo.md)
211
211
  - [CoboWaas2.AutoFuelType](docs/AutoFuelType.md)
212
+ - [CoboWaas2.BTCBIP137MessageSignDestination](docs/BTCBIP137MessageSignDestination.md)
213
+ - [CoboWaas2.BTCBIP322MessageSignDestination](docs/BTCBIP322MessageSignDestination.md)
212
214
  - [CoboWaas2.BTCEIP191MessageSignDestination](docs/BTCEIP191MessageSignDestination.md)
213
215
  - [CoboWaas2.BabylonAirdropPop](docs/BabylonAirdropPop.md)
214
216
  - [CoboWaas2.BabylonAirdropRegistration](docs/BabylonAirdropRegistration.md)
@@ -222,6 +224,7 @@ Class | Method | HTTP request | Description
222
224
  - [CoboWaas2.BabylonStakingRegistration](docs/BabylonStakingRegistration.md)
223
225
  - [CoboWaas2.BabylonValidator](docs/BabylonValidator.md)
224
226
  - [CoboWaas2.Balance](docs/Balance.md)
227
+ - [CoboWaas2.BankAccount](docs/BankAccount.md)
225
228
  - [CoboWaas2.BaseContractCallSource](docs/BaseContractCallSource.md)
226
229
  - [CoboWaas2.BaseEstimateStakingFee](docs/BaseEstimateStakingFee.md)
227
230
  - [CoboWaas2.BaseStakeExtra](docs/BaseStakeExtra.md)
@@ -230,6 +233,7 @@ Class | Method | HTTP request | Description
230
233
  - [CoboWaas2.BroadcastSignedTransactionsRequest](docs/BroadcastSignedTransactionsRequest.md)
231
234
  - [CoboWaas2.CallbackMessage](docs/CallbackMessage.md)
232
235
  - [CoboWaas2.ChainInfo](docs/ChainInfo.md)
236
+ - [CoboWaas2.ChainsEventData](docs/ChainsEventData.md)
233
237
  - [CoboWaas2.ChangeGuardPubkey200Response](docs/ChangeGuardPubkey200Response.md)
234
238
  - [CoboWaas2.CheckAddressChainsValidity200ResponseInner](docs/CheckAddressChainsValidity200ResponseInner.md)
235
239
  - [CoboWaas2.CheckAddressValidity200Response](docs/CheckAddressValidity200Response.md)
@@ -245,6 +249,9 @@ Class | Method | HTTP request | Description
245
249
  - [CoboWaas2.CoreStakeExtra](docs/CoreStakeExtra.md)
246
250
  - [CoboWaas2.CoreStakingActivityDetailExtra](docs/CoreStakingActivityDetailExtra.md)
247
251
  - [CoboWaas2.CoreStakingExtra](docs/CoreStakingExtra.md)
252
+ - [CoboWaas2.CosmosAdr36MessageSignDestination](docs/CosmosAdr36MessageSignDestination.md)
253
+ - [CoboWaas2.CosmosContractCallDestination](docs/CosmosContractCallDestination.md)
254
+ - [CoboWaas2.CosmosContractCallMessage](docs/CosmosContractCallMessage.md)
248
255
  - [CoboWaas2.CreateAddressRequest](docs/CreateAddressRequest.md)
249
256
  - [CoboWaas2.CreateBabylonAirdropRegistration201Response](docs/CreateBabylonAirdropRegistration201Response.md)
250
257
  - [CoboWaas2.CreateBabylonAirdropRegistrationRequest](docs/CreateBabylonAirdropRegistrationRequest.md)
@@ -262,14 +269,12 @@ Class | Method | HTTP request | Description
262
269
  - [CoboWaas2.CreatePrimeBrokerAddress201Response](docs/CreatePrimeBrokerAddress201Response.md)
263
270
  - [CoboWaas2.CreatePrimeBrokerAddressRequest](docs/CreatePrimeBrokerAddressRequest.md)
264
271
  - [CoboWaas2.CreateSafeWalletParams](docs/CreateSafeWalletParams.md)
272
+ - [CoboWaas2.CreateSettlement](docs/CreateSettlement.md)
265
273
  - [CoboWaas2.CreateSmartContractWalletParams](docs/CreateSmartContractWalletParams.md)
266
274
  - [CoboWaas2.CreateStakeActivity](docs/CreateStakeActivity.md)
267
275
  - [CoboWaas2.CreateStakeActivity201Response](docs/CreateStakeActivity201Response.md)
268
276
  - [CoboWaas2.CreateStakeActivityExtra](docs/CreateStakeActivityExtra.md)
269
277
  - [CoboWaas2.CreateStakeActivityRequest](docs/CreateStakeActivityRequest.md)
270
- - [CoboWaas2.CreateSwapActivityRequest](docs/CreateSwapActivityRequest.md)
271
- - [CoboWaas2.CreateSwapQuote201Response](docs/CreateSwapQuote201Response.md)
272
- - [CoboWaas2.CreateSwapQuoteRequest](docs/CreateSwapQuoteRequest.md)
273
278
  - [CoboWaas2.CreateTransferTransaction201Response](docs/CreateTransferTransaction201Response.md)
274
279
  - [CoboWaas2.CreateTssRequestRequest](docs/CreateTssRequestRequest.md)
275
280
  - [CoboWaas2.CreateUnstakeActivity](docs/CreateUnstakeActivity.md)
@@ -283,6 +288,9 @@ Class | Method | HTTP request | Description
283
288
  - [CoboWaas2.CurveType](docs/CurveType.md)
284
289
  - [CoboWaas2.CustodialTransferSource](docs/CustodialTransferSource.md)
285
290
  - [CoboWaas2.CustodialWalletInfo](docs/CustodialWalletInfo.md)
291
+ - [CoboWaas2.CustodialWeb3ContractCallSource](docs/CustodialWeb3ContractCallSource.md)
292
+ - [CoboWaas2.CustodialWeb3MessageSignSource](docs/CustodialWeb3MessageSignSource.md)
293
+ - [CoboWaas2.CustodialWeb3TransferSource](docs/CustodialWeb3TransferSource.md)
286
294
  - [CoboWaas2.DeleteGuardPubkey201Response](docs/DeleteGuardPubkey201Response.md)
287
295
  - [CoboWaas2.DeleteKeyShareHolderGroupById201Response](docs/DeleteKeyShareHolderGroupById201Response.md)
288
296
  - [CoboWaas2.DeleteWalletById201Response](docs/DeleteWalletById201Response.md)
@@ -329,6 +337,7 @@ Class | Method | HTTP request | Description
329
337
  - [CoboWaas2.FeeGasLimit](docs/FeeGasLimit.md)
330
338
  - [CoboWaas2.FeeRate](docs/FeeRate.md)
331
339
  - [CoboWaas2.FeeReserved](docs/FeeReserved.md)
340
+ - [CoboWaas2.FeeStationTransactionType](docs/FeeStationTransactionType.md)
332
341
  - [CoboWaas2.FeeType](docs/FeeType.md)
333
342
  - [CoboWaas2.FixedFeeRate](docs/FixedFeeRate.md)
334
343
  - [CoboWaas2.GetApiKeyInfo200Response](docs/GetApiKeyInfo200Response.md)
@@ -354,7 +363,6 @@ Class | Method | HTTP request | Description
354
363
  - [CoboWaas2.ListBabylonEligibleStakings200ResponseDataInner](docs/ListBabylonEligibleStakings200ResponseDataInner.md)
355
364
  - [CoboWaas2.ListBabylonStakingRegistrations200Response](docs/ListBabylonStakingRegistrations200Response.md)
356
365
  - [CoboWaas2.ListCallbackMessages200Response](docs/ListCallbackMessages200Response.md)
357
- - [CoboWaas2.ListEnableTokenPairs200Response](docs/ListEnableTokenPairs200Response.md)
358
366
  - [CoboWaas2.ListExchanges200ResponseInner](docs/ListExchanges200ResponseInner.md)
359
367
  - [CoboWaas2.ListKeyShareHolderGroups200Response](docs/ListKeyShareHolderGroups200Response.md)
360
368
  - [CoboWaas2.ListKeyShareHolders200Response](docs/ListKeyShareHolders200Response.md)
@@ -367,8 +375,8 @@ Class | Method | HTTP request | Description
367
375
  - [CoboWaas2.ListSupportedChains200Response](docs/ListSupportedChains200Response.md)
368
376
  - [CoboWaas2.ListSupportedCountries200ResponseInner](docs/ListSupportedCountries200ResponseInner.md)
369
377
  - [CoboWaas2.ListSupportedTokens200Response](docs/ListSupportedTokens200Response.md)
370
- - [CoboWaas2.ListSwapActivities200Response](docs/ListSwapActivities200Response.md)
371
378
  - [CoboWaas2.ListTokenBalancesForAddress200Response](docs/ListTokenBalancesForAddress200Response.md)
379
+ - [CoboWaas2.ListTransactionApprovalDetails200Response](docs/ListTransactionApprovalDetails200Response.md)
372
380
  - [CoboWaas2.ListTransactions200Response](docs/ListTransactions200Response.md)
373
381
  - [CoboWaas2.ListTssRequests200Response](docs/ListTssRequests200Response.md)
374
382
  - [CoboWaas2.ListUtxos200Response](docs/ListUtxos200Response.md)
@@ -388,6 +396,7 @@ Class | Method | HTTP request | Description
388
396
  - [CoboWaas2.MPCWalletInfo](docs/MPCWalletInfo.md)
389
397
  - [CoboWaas2.MaxFeeAmount](docs/MaxFeeAmount.md)
390
398
  - [CoboWaas2.MaxTransferableValue](docs/MaxTransferableValue.md)
399
+ - [CoboWaas2.Merchant](docs/Merchant.md)
391
400
  - [CoboWaas2.MessageSignDestination](docs/MessageSignDestination.md)
392
401
  - [CoboWaas2.MessageSignDestinationType](docs/MessageSignDestinationType.md)
393
402
  - [CoboWaas2.MessageSignParams](docs/MessageSignParams.md)
@@ -398,8 +407,11 @@ Class | Method | HTTP request | Description
398
407
  - [CoboWaas2.MpcSigningGroup](docs/MpcSigningGroup.md)
399
408
  - [CoboWaas2.MpcStakeSource](docs/MpcStakeSource.md)
400
409
  - [CoboWaas2.MpcTransferSource](docs/MpcTransferSource.md)
410
+ - [CoboWaas2.Order](docs/Order.md)
411
+ - [CoboWaas2.OrderStatus](docs/OrderStatus.md)
401
412
  - [CoboWaas2.OrgInfo](docs/OrgInfo.md)
402
413
  - [CoboWaas2.Pagination](docs/Pagination.md)
414
+ - [CoboWaas2.PaymentTransaction](docs/PaymentTransaction.md)
403
415
  - [CoboWaas2.PoolDetails](docs/PoolDetails.md)
404
416
  - [CoboWaas2.PoolDetailsAllOfValidatorsInfo](docs/PoolDetailsAllOfValidatorsInfo.md)
405
417
  - [CoboWaas2.PoolSummary](docs/PoolSummary.md)
@@ -407,8 +419,13 @@ Class | Method | HTTP request | Description
407
419
  - [CoboWaas2.QueryGuardPubkey200Response](docs/QueryGuardPubkey200Response.md)
408
420
  - [CoboWaas2.QueryGuardPubkey200ResponseAddressesInner](docs/QueryGuardPubkey200ResponseAddressesInner.md)
409
421
  - [CoboWaas2.RawMessageSignDestination](docs/RawMessageSignDestination.md)
422
+ - [CoboWaas2.RefreshAddressBalancesByToken200Response](docs/RefreshAddressBalancesByToken200Response.md)
423
+ - [CoboWaas2.RefreshAddressBalancesByTokenRequest](docs/RefreshAddressBalancesByTokenRequest.md)
410
424
  - [CoboWaas2.RefreshToken2XXResponse](docs/RefreshToken2XXResponse.md)
411
425
  - [CoboWaas2.RefreshTokenRequest](docs/RefreshTokenRequest.md)
426
+ - [CoboWaas2.Refund](docs/Refund.md)
427
+ - [CoboWaas2.RefundStatus](docs/RefundStatus.md)
428
+ - [CoboWaas2.RefundType](docs/RefundType.md)
412
429
  - [CoboWaas2.ReplaceType](docs/ReplaceType.md)
413
430
  - [CoboWaas2.RetryCallbackMessage201Response](docs/RetryCallbackMessage201Response.md)
414
431
  - [CoboWaas2.RetryWebhookEventById201Response](docs/RetryWebhookEventById201Response.md)
@@ -416,6 +433,10 @@ Class | Method | HTTP request | Description
416
433
  - [CoboWaas2.RootPubkey](docs/RootPubkey.md)
417
434
  - [CoboWaas2.SafeContractCallSource](docs/SafeContractCallSource.md)
418
435
  - [CoboWaas2.SafeTransferSource](docs/SafeTransferSource.md)
436
+ - [CoboWaas2.SafeTxDecodedData](docs/SafeTxDecodedData.md)
437
+ - [CoboWaas2.SafeTxDecodedDataParameters](docs/SafeTxDecodedDataParameters.md)
438
+ - [CoboWaas2.SafeTxExtraData](docs/SafeTxExtraData.md)
439
+ - [CoboWaas2.SafeTxSubTransaction](docs/SafeTxSubTransaction.md)
419
440
  - [CoboWaas2.SafeWallet](docs/SafeWallet.md)
420
441
  - [CoboWaas2.SafeWalletDelegates](docs/SafeWalletDelegates.md)
421
442
  - [CoboWaas2.SafeWalletDelegatesContractCall](docs/SafeWalletDelegatesContractCall.md)
@@ -423,6 +444,12 @@ Class | Method | HTTP request | Description
423
444
  - [CoboWaas2.Scopes](docs/Scopes.md)
424
445
  - [CoboWaas2.SelectedEntityType](docs/SelectedEntityType.md)
425
446
  - [CoboWaas2.SelfCustodyWallet](docs/SelfCustodyWallet.md)
447
+ - [CoboWaas2.SettleRequestStatus](docs/SettleRequestStatus.md)
448
+ - [CoboWaas2.SettleStatus](docs/SettleStatus.md)
449
+ - [CoboWaas2.Settlement](docs/Settlement.md)
450
+ - [CoboWaas2.SettlementDetail](docs/SettlementDetail.md)
451
+ - [CoboWaas2.SettlementInfo](docs/SettlementInfo.md)
452
+ - [CoboWaas2.SettlementType](docs/SettlementType.md)
426
453
  - [CoboWaas2.SmartContractInitiator](docs/SmartContractInitiator.md)
427
454
  - [CoboWaas2.SmartContractWalletInfo](docs/SmartContractWalletInfo.md)
428
455
  - [CoboWaas2.SmartContractWalletOperationType](docs/SmartContractWalletOperationType.md)
@@ -440,8 +467,10 @@ Class | Method | HTTP request | Description
440
467
  - [CoboWaas2.SubWalletAssetBalance](docs/SubWalletAssetBalance.md)
441
468
  - [CoboWaas2.SubmitDepositTravelRuleInfo201Response](docs/SubmitDepositTravelRuleInfo201Response.md)
442
469
  - [CoboWaas2.SwapActivity](docs/SwapActivity.md)
470
+ - [CoboWaas2.SwapActivityStatus](docs/SwapActivityStatus.md)
471
+ - [CoboWaas2.SwapActivityType](docs/SwapActivityType.md)
443
472
  - [CoboWaas2.SwapQuote](docs/SwapQuote.md)
444
- - [CoboWaas2.SwapTokenPair](docs/SwapTokenPair.md)
473
+ - [CoboWaas2.SwapToken](docs/SwapToken.md)
445
474
  - [CoboWaas2.TSSGroups](docs/TSSGroups.md)
446
475
  - [CoboWaas2.TSSRequest](docs/TSSRequest.md)
447
476
  - [CoboWaas2.TSSRequestStatus](docs/TSSRequestStatus.md)
@@ -450,12 +479,27 @@ Class | Method | HTTP request | Description
450
479
  - [CoboWaas2.TokenAssetModelType](docs/TokenAssetModelType.md)
451
480
  - [CoboWaas2.TokenBalance](docs/TokenBalance.md)
452
481
  - [CoboWaas2.TokenInfo](docs/TokenInfo.md)
482
+ - [CoboWaas2.TokenListing](docs/TokenListing.md)
483
+ - [CoboWaas2.TokenListingEventData](docs/TokenListingEventData.md)
484
+ - [CoboWaas2.TokenListingRequestSource](docs/TokenListingRequestSource.md)
485
+ - [CoboWaas2.TokenListingRequestStatus](docs/TokenListingRequestStatus.md)
486
+ - [CoboWaas2.TokensEventData](docs/TokensEventData.md)
453
487
  - [CoboWaas2.Transaction](docs/Transaction.md)
454
488
  - [CoboWaas2.TransactionApprovalDetail](docs/TransactionApprovalDetail.md)
455
489
  - [CoboWaas2.TransactionApprovalResult](docs/TransactionApprovalResult.md)
456
490
  - [CoboWaas2.TransactionApprover](docs/TransactionApprover.md)
491
+ - [CoboWaas2.TransactionBIP137Destination](docs/TransactionBIP137Destination.md)
492
+ - [CoboWaas2.TransactionBIP322Destination](docs/TransactionBIP322Destination.md)
493
+ - [CoboWaas2.TransactionBabylonBusinessInfo](docs/TransactionBabylonBusinessInfo.md)
494
+ - [CoboWaas2.TransactionBabylonTxParameters](docs/TransactionBabylonTxParameters.md)
457
495
  - [CoboWaas2.TransactionBlockInfo](docs/TransactionBlockInfo.md)
496
+ - [CoboWaas2.TransactionCoboCategory](docs/TransactionCoboCategory.md)
497
+ - [CoboWaas2.TransactionCoreStakeInfo](docs/TransactionCoreStakeInfo.md)
498
+ - [CoboWaas2.TransactionCosmosAdr36Destination](docs/TransactionCosmosAdr36Destination.md)
499
+ - [CoboWaas2.TransactionCosmosContractDestination](docs/TransactionCosmosContractDestination.md)
500
+ - [CoboWaas2.TransactionCosmosMessage](docs/TransactionCosmosMessage.md)
458
501
  - [CoboWaas2.TransactionCustodialAssetWalletSource](docs/TransactionCustodialAssetWalletSource.md)
502
+ - [CoboWaas2.TransactionCustodialWeb3WalletSource](docs/TransactionCustodialWeb3WalletSource.md)
459
503
  - [CoboWaas2.TransactionDepositFromAddressSource](docs/TransactionDepositFromAddressSource.md)
460
504
  - [CoboWaas2.TransactionDepositFromLoopSource](docs/TransactionDepositFromLoopSource.md)
461
505
  - [CoboWaas2.TransactionDepositFromWalletSource](docs/TransactionDepositFromWalletSource.md)
@@ -472,13 +516,18 @@ Class | Method | HTTP request | Description
472
516
  - [CoboWaas2.TransactionEvmEip1559Fee](docs/TransactionEvmEip1559Fee.md)
473
517
  - [CoboWaas2.TransactionEvmLegacyFee](docs/TransactionEvmLegacyFee.md)
474
518
  - [CoboWaas2.TransactionExchangeWalletSource](docs/TransactionExchangeWalletSource.md)
519
+ - [CoboWaas2.TransactionExtra](docs/TransactionExtra.md)
520
+ - [CoboWaas2.TransactionExtraType](docs/TransactionExtraType.md)
475
521
  - [CoboWaas2.TransactionFee](docs/TransactionFee.md)
476
522
  - [CoboWaas2.TransactionFeeStationWalletSource](docs/TransactionFeeStationWalletSource.md)
477
523
  - [CoboWaas2.TransactionFixedFee](docs/TransactionFixedFee.md)
524
+ - [CoboWaas2.TransactionFuelingInfo](docs/TransactionFuelingInfo.md)
478
525
  - [CoboWaas2.TransactionInitiatorType](docs/TransactionInitiatorType.md)
479
526
  - [CoboWaas2.TransactionMPCWalletSource](docs/TransactionMPCWalletSource.md)
527
+ - [CoboWaas2.TransactionMessageSignBTCEIP191Destination](docs/TransactionMessageSignBTCEIP191Destination.md)
480
528
  - [CoboWaas2.TransactionMessageSignEIP191Destination](docs/TransactionMessageSignEIP191Destination.md)
481
529
  - [CoboWaas2.TransactionMessageSignEIP712Destination](docs/TransactionMessageSignEIP712Destination.md)
530
+ - [CoboWaas2.TransactionProcessType](docs/TransactionProcessType.md)
482
531
  - [CoboWaas2.TransactionRawMessageSignDestination](docs/TransactionRawMessageSignDestination.md)
483
532
  - [CoboWaas2.TransactionRawTxInfo](docs/TransactionRawTxInfo.md)
484
533
  - [CoboWaas2.TransactionRbf](docs/TransactionRbf.md)
@@ -630,4 +679,14 @@ Authentication schemes defined for the API:
630
679
  - webhook.read: Read webhook URLs/events
631
680
  - webhook.edit: Edit webhook URLs
632
681
  - webhook.resend: Resend webhook events
682
+ - payment_orders_payin.create: Create payment order
683
+ - payment_orders_payin.read: Read payment order information
684
+ - payment_orders_payin.update: Update payment order
685
+ - payment_orders_refund.create: Create payment refund order
686
+ - payment_orders_refund.read: Read payment refund order information
687
+ - payment_settlement.create: Create payment settlement request
688
+ - payment_settlement.read: Read payment settlement request information
689
+ - payment_merchant.create: Create payment merchant
690
+ - payment_merchant.read: Read payment merchant information
691
+ - payment_merchant.update: Update payment merchant
633
692
 
package/dist/ApiClient.js CHANGED
@@ -102,7 +102,7 @@ var ApiClient = /*#__PURE__*/function () {
102
102
  * @default {}
103
103
  */
104
104
  this.defaultHeaders = {
105
- 'User-Agent': 'cobo-waas2-js-sdk/1.11.0'
105
+ 'User-Agent': 'cobo-waas2-js-sdk/1.13.0'
106
106
  };
107
107
 
108
108
  /**
@@ -0,0 +1,282 @@
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 _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
9
+ var _ListAddresses200Response = _interopRequireDefault(require("../model/ListAddresses200Response"));
10
+ var _ListTokenBalancesForAddress200Response = _interopRequireDefault(require("../model/ListTokenBalancesForAddress200Response"));
11
+ var _ListTransactions200Response = _interopRequireDefault(require("../model/ListTransactions200Response"));
12
+ var _TransactionDetail = _interopRequireDefault(require("../model/TransactionDetail"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
+ 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); }
15
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16
+ 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); } }
17
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
+ 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); } /**
20
+ * Cobo Wallet as a Service 2.0
21
+ *
22
+ * Contact: help@cobo.com
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * FeeStation service.
31
+ * @module api/FeeStationApi
32
+ */
33
+ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new FeeStationApi.
36
+ * @alias module:api/FeeStationApi
37
+ * @class
38
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
39
+ * default to {@link module:ApiClient#instance} if unspecified.
40
+ */
41
+ function FeeStationApi(apiClient) {
42
+ _classCallCheck(this, FeeStationApi);
43
+ this.apiClient = apiClient || _ApiClient["default"].instance;
44
+ }
45
+
46
+ /**
47
+ * Get Fee Station transaction information
48
+ * This operation retrieves detailed information about a specified Fee Station transaction, such as the transaction status, source address, destination address, and timestamp.
49
+ * @param {String} transaction_id The transaction ID.
50
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TransactionDetail} and HTTP response
51
+ */
52
+ return _createClass(FeeStationApi, [{
53
+ key: "getFeeStationTransactionByIdWithHttpInfo",
54
+ value: function getFeeStationTransactionByIdWithHttpInfo(transaction_id) {
55
+ var postBody = null;
56
+ if (postBody && postBody.toJSON) {
57
+ postBody = postBody.toJSON();
58
+ }
59
+ // verify the required parameter 'transaction_id' is set
60
+ if (transaction_id === undefined || transaction_id === null) {
61
+ throw new Error("Missing the required parameter 'transaction_id' when calling getFeeStationTransactionById");
62
+ }
63
+ var pathParams = {
64
+ 'transaction_id': transaction_id
65
+ };
66
+ var queryParams = {};
67
+ var headerParams = {};
68
+ var formParams = {};
69
+ var authNames = ['OAuth2', 'CoboAuth'];
70
+ var contentTypes = [];
71
+ var accepts = ['application/json'];
72
+ var returnType = _TransactionDetail["default"];
73
+ return this.apiClient.callApi('/fee_station/transactions/{transaction_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
74
+ }
75
+
76
+ /**
77
+ * Get Fee Station transaction information
78
+ * This operation retrieves detailed information about a specified Fee Station transaction, such as the transaction status, source address, destination address, and timestamp.
79
+ * @param {String} transaction_id The transaction ID.
80
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TransactionDetail}
81
+ */
82
+ }, {
83
+ key: "getFeeStationTransactionById",
84
+ value: function getFeeStationTransactionById(transaction_id) {
85
+ return this.getFeeStationTransactionByIdWithHttpInfo(transaction_id).then(function (response_and_data) {
86
+ return response_and_data.data;
87
+ });
88
+ }
89
+
90
+ /**
91
+ * List Fee Station addresses
92
+ * This operation retrieves a list of addresses within your Fee Station.
93
+ * @param {Object} opts Optional parameters
94
+ * @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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
95
+ * @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\").
96
+ * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
97
+ * @param {String} [before] This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
98
+ * @param {String} [after] This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
99
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAddresses200Response} and HTTP response
100
+ */
101
+ }, {
102
+ key: "listFeeStationAddressesWithHttpInfo",
103
+ value: function listFeeStationAddressesWithHttpInfo(opts) {
104
+ opts = opts || {};
105
+ var postBody = null;
106
+ if (postBody && postBody.toJSON) {
107
+ postBody = postBody.toJSON();
108
+ }
109
+ var pathParams = {};
110
+ var queryParams = {
111
+ 'chain_ids': opts['chain_ids'],
112
+ 'addresses': opts['addresses'],
113
+ 'limit': opts['limit'],
114
+ 'before': opts['before'],
115
+ 'after': opts['after']
116
+ };
117
+ var headerParams = {};
118
+ var formParams = {};
119
+ var authNames = ['OAuth2', 'CoboAuth'];
120
+ var contentTypes = [];
121
+ var accepts = ['application/json'];
122
+ var returnType = _ListAddresses200Response["default"];
123
+ return this.apiClient.callApi('/fee_station/addresses', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
124
+ }
125
+
126
+ /**
127
+ * List Fee Station addresses
128
+ * This operation retrieves a list of addresses within your Fee Station.
129
+ * @param {Object} opts Optional parameters
130
+ * @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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
131
+ * @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\").
132
+ * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
133
+ * @param {String} opts.before This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
134
+ * @param {String} opts.after This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
135
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAddresses200Response}
136
+ */
137
+ }, {
138
+ key: "listFeeStationAddresses",
139
+ value: function listFeeStationAddresses(opts) {
140
+ return this.listFeeStationAddressesWithHttpInfo(opts).then(function (response_and_data) {
141
+ return response_and_data.data;
142
+ });
143
+ }
144
+
145
+ /**
146
+ * List all Fee Station transactions
147
+ * This operation retrieves all Fee Station transactions under your organization. You can filter the results by request ID, Cobo ID, transaction ID, transaction hash, type, status, and timestamp. You can also paginate and sort your query results.
148
+ * @param {Object} opts Optional parameters
149
+ * @param {String} [request_id] The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
150
+ * @param {String} [cobo_ids] A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
151
+ * @param {String} [transaction_ids] A list of transaction IDs, separated by comma.
152
+ * @param {String} [transaction_hashes] A list of transaction hashes, separated by comma.
153
+ * @param {String} [types] A list of transaction types for Fee Station, separated by comma. Possible values include: - `Deposit`: A deposit transaction. - `Withdrawal`: A withdrawal transaction.
154
+ * @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.
155
+ * @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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
156
+ * @param {String} [token_ids] A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
157
+ * @param {String} [asset_ids] (This concept applies to Exchange Wallets only) A list of asset IDs, separated by comma. An asset ID is the unique identifier of the asset held within your linked exchange account.
158
+ * @param {Number} [min_created_timestamp] The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time.
159
+ * @param {Number} [max_created_timestamp] The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time.
160
+ * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
161
+ * @param {String} [before] This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
162
+ * @param {String} [after] This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
163
+ * @param {module:model/String} [direction = '')] The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order.
164
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTransactions200Response} and HTTP response
165
+ */
166
+ }, {
167
+ key: "listFeeStationTransactionsWithHttpInfo",
168
+ value: function listFeeStationTransactionsWithHttpInfo(opts) {
169
+ opts = opts || {};
170
+ var postBody = null;
171
+ if (postBody && postBody.toJSON) {
172
+ postBody = postBody.toJSON();
173
+ }
174
+ var pathParams = {};
175
+ var queryParams = {
176
+ 'request_id': opts['request_id'],
177
+ 'cobo_ids': opts['cobo_ids'],
178
+ 'transaction_ids': opts['transaction_ids'],
179
+ 'transaction_hashes': opts['transaction_hashes'],
180
+ 'types': opts['types'],
181
+ 'statuses': opts['statuses'],
182
+ 'chain_ids': opts['chain_ids'],
183
+ 'token_ids': opts['token_ids'],
184
+ 'asset_ids': opts['asset_ids'],
185
+ 'min_created_timestamp': opts['min_created_timestamp'],
186
+ 'max_created_timestamp': opts['max_created_timestamp'],
187
+ 'limit': opts['limit'],
188
+ 'before': opts['before'],
189
+ 'after': opts['after'],
190
+ 'direction': opts['direction']
191
+ };
192
+ var headerParams = {};
193
+ var formParams = {};
194
+ var authNames = ['OAuth2', 'CoboAuth'];
195
+ var contentTypes = [];
196
+ var accepts = ['application/json'];
197
+ var returnType = _ListTransactions200Response["default"];
198
+ return this.apiClient.callApi('/fee_station/transactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
199
+ }
200
+
201
+ /**
202
+ * List all Fee Station transactions
203
+ * This operation retrieves all Fee Station transactions under your organization. You can filter the results by request ID, Cobo ID, transaction ID, transaction hash, type, status, and timestamp. You can also paginate and sort your query results.
204
+ * @param {Object} opts Optional parameters
205
+ * @param {String} opts.request_id The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
206
+ * @param {String} opts.cobo_ids A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
207
+ * @param {String} opts.transaction_ids A list of transaction IDs, separated by comma.
208
+ * @param {String} opts.transaction_hashes A list of transaction hashes, separated by comma.
209
+ * @param {String} opts.types A list of transaction types for Fee Station, separated by comma. Possible values include: - `Deposit`: A deposit transaction. - `Withdrawal`: A withdrawal transaction.
210
+ * @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.
211
+ * @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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
212
+ * @param {String} opts.token_ids A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
213
+ * @param {String} opts.asset_ids (This concept applies to Exchange Wallets only) A list of asset IDs, separated by comma. An asset ID is the unique identifier of the asset held within your linked exchange account.
214
+ * @param {Number} opts.min_created_timestamp The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time.
215
+ * @param {Number} opts.max_created_timestamp The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time.
216
+ * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
217
+ * @param {String} opts.before This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
218
+ * @param {String} opts.after This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
219
+ * @param {module:model/String} opts.direction The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order. (default to '')
220
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTransactions200Response}
221
+ */
222
+ }, {
223
+ key: "listFeeStationTransactions",
224
+ value: function listFeeStationTransactions(opts) {
225
+ return this.listFeeStationTransactionsWithHttpInfo(opts).then(function (response_and_data) {
226
+ return response_and_data.data;
227
+ });
228
+ }
229
+
230
+ /**
231
+ * List Fee Station token balances
232
+ * The operation retrieves a list of token balances within your Fee Station.
233
+ * @param {Object} opts Optional parameters
234
+ * @param {String} [token_ids] A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
235
+ * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
236
+ * @param {String} [before] This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
237
+ * @param {String} [after] This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
238
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTokenBalancesForAddress200Response} and HTTP response
239
+ */
240
+ }, {
241
+ key: "listTokenBalancesForFeeStationWithHttpInfo",
242
+ value: function listTokenBalancesForFeeStationWithHttpInfo(opts) {
243
+ opts = opts || {};
244
+ var postBody = null;
245
+ if (postBody && postBody.toJSON) {
246
+ postBody = postBody.toJSON();
247
+ }
248
+ var pathParams = {};
249
+ var queryParams = {
250
+ 'token_ids': opts['token_ids'],
251
+ 'limit': opts['limit'],
252
+ 'before': opts['before'],
253
+ 'after': opts['after']
254
+ };
255
+ var headerParams = {};
256
+ var formParams = {};
257
+ var authNames = ['OAuth2', 'CoboAuth'];
258
+ var contentTypes = [];
259
+ var accepts = ['application/json'];
260
+ var returnType = _ListTokenBalancesForAddress200Response["default"];
261
+ return this.apiClient.callApi('/fee_station/tokens', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
262
+ }
263
+
264
+ /**
265
+ * List Fee Station token balances
266
+ * The operation retrieves a list of token balances within your Fee Station.
267
+ * @param {Object} opts Optional parameters
268
+ * @param {String} opts.token_ids A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
269
+ * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
270
+ * @param {String} opts.before This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
271
+ * @param {String} opts.after This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
272
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTokenBalancesForAddress200Response}
273
+ */
274
+ }, {
275
+ key: "listTokenBalancesForFeeStation",
276
+ value: function listTokenBalancesForFeeStation(opts) {
277
+ return this.listTokenBalancesForFeeStationWithHttpInfo(opts).then(function (response_and_data) {
278
+ return response_and_data.data;
279
+ });
280
+ }
281
+ }]);
282
+ }();