@cobo/cobo-waas2 1.13.0 → 1.15.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 (222) hide show
  1. package/README.md +89 -5
  2. package/dist/ApiClient.js +2 -3
  3. package/dist/PreRequestScript.js +1 -1
  4. package/dist/api/FeeStationApi.js +58 -15
  5. package/dist/api/PaymentApi.js +938 -0
  6. package/dist/api/TransactionsApi.js +18 -10
  7. package/dist/api/WalletsApi.js +145 -2
  8. package/dist/crypto/ApiSigner.js +1 -2
  9. package/dist/index.js +437 -3
  10. package/dist/model/AddressBook.js +18 -0
  11. package/dist/model/AddressesEventData.js +18 -3
  12. package/dist/model/BTCBIP137MessageSignDestination.js +1 -1
  13. package/dist/model/BTCBIP322MessageSignDestination.js +1 -1
  14. package/dist/model/BankAccount.js +18 -0
  15. package/dist/model/ChainsEventData.js +40 -3
  16. package/dist/model/CosmosAdr36MessageSignDestination.js +1 -1
  17. package/dist/model/CreateBankAccountRequest.js +108 -0
  18. package/dist/model/CreateMerchantRequest.js +125 -0
  19. package/dist/model/CreatePaymentOrderRequest.js +206 -0
  20. package/dist/model/CreateRefundRequest.js +192 -0
  21. package/dist/model/CreateSettlement.js +4 -4
  22. package/dist/model/CreateSettlementRequestRequest.js +142 -0
  23. package/dist/model/CreateTokenListingRequest201Response.js +110 -0
  24. package/dist/model/CreateTokenListingRequestRequest.js +147 -0
  25. package/dist/model/FeeStationDestination.js +136 -0
  26. package/dist/model/FeeStationTransfer.js +127 -0
  27. package/dist/model/GetExchangeRate200Response.js +140 -0
  28. package/dist/model/GetRefunds200Response.js +123 -0
  29. package/dist/model/GetSettlementInfoByIds200Response.js +136 -0
  30. package/dist/model/ListMerchants200Response.js +123 -0
  31. package/dist/model/ListPaymentOrders200Response.js +123 -0
  32. package/dist/model/ListSettlementRequests200Response.js +123 -0
  33. package/dist/model/ListTokenBalancesForFeeStation200Response.js +123 -0
  34. package/dist/model/ListTokenBalancesForFeeStation200ResponseDataInner.js +142 -0
  35. package/dist/model/ListTokenListingRequests200Response.js +123 -0
  36. package/dist/model/MPCVaultEventData.js +18 -3
  37. package/dist/model/Merchant.js +20 -2
  38. package/dist/model/Order.js +64 -15
  39. package/dist/model/OrderAddressInfo.js +147 -0
  40. package/dist/model/PaymentOrderEventData.js +543 -0
  41. package/dist/model/PaymentRefundEventData.js +458 -0
  42. package/dist/model/PaymentSettlementEvent.js +331 -0
  43. package/dist/model/PaymentTransaction.js +20 -7
  44. package/dist/model/Refund.js +57 -3
  45. package/dist/model/Settlement.js +35 -4
  46. package/dist/model/SettlementDetail.js +48 -3
  47. package/dist/model/SettlementInfo.js +38 -7
  48. package/dist/model/SwapActivity.js +20 -7
  49. package/dist/model/SwapActivityDetail.js +378 -0
  50. package/dist/model/SwapActivityTimeline.js +135 -0
  51. package/dist/model/SwapQuote.js +51 -4
  52. package/dist/model/SwapToken.js +2 -2
  53. package/dist/model/{SwapActivityType.js → SwapType.js} +7 -7
  54. package/dist/model/TSSBaseRequestEventData.js +163 -0
  55. package/dist/model/TSSCallbackActionType.js +61 -0
  56. package/dist/model/TSSCallbackRequest.js +122 -0
  57. package/dist/model/TSSCallbackRequestType.js +76 -0
  58. package/dist/model/TSSCallbackResponse.js +118 -0
  59. package/dist/model/TSSCurve.js +61 -0
  60. package/dist/model/TSSCurveType.js +61 -0
  61. package/dist/model/TSSEvent.js +158 -0
  62. package/dist/model/TSSEventData.js +278 -0
  63. package/dist/model/TSSEventDataType.js +71 -0
  64. package/dist/model/TSSEventType.js +136 -0
  65. package/dist/model/TSSGroup.js +221 -0
  66. package/dist/model/TSSGroupType.js +61 -0
  67. package/dist/model/TSSGroups.js +1 -1
  68. package/dist/model/TSSKeyGenEventData.js +228 -0
  69. package/dist/model/TSSKeyGenExtra.js +154 -0
  70. package/dist/model/TSSKeyGenRequest.js +130 -0
  71. package/dist/model/TSSKeyReshareEventData.js +228 -0
  72. package/dist/model/TSSKeyReshareExtra.js +169 -0
  73. package/dist/model/TSSKeyReshareRequest.js +177 -0
  74. package/dist/model/TSSKeyShareSignDetail.js +100 -0
  75. package/dist/model/TSSKeyShareSignEventData.js +228 -0
  76. package/dist/model/TSSKeyShareSignExtra.js +171 -0
  77. package/dist/model/TSSKeyShareSignRequest.js +146 -0
  78. package/dist/model/TSSKeyShareSignSignature.js +126 -0
  79. package/dist/model/TSSKeyShareSignSignatures.js +107 -0
  80. package/dist/model/TSSKeySignEventData.js +228 -0
  81. package/dist/model/TSSKeySignExtra.js +203 -0
  82. package/dist/model/TSSKeySignRequest.js +192 -0
  83. package/dist/model/TSSParticipant.js +113 -0
  84. package/dist/model/TSSProtocol.js +66 -0
  85. package/dist/model/TSSRequestTypeEenum.js +71 -0
  86. package/dist/model/TSSRequestWebhookEventData.js +18 -3
  87. package/dist/model/TSSSignature.js +139 -0
  88. package/dist/model/TSSSignatureType.js +66 -0
  89. package/dist/model/TSSSignatures.js +125 -0
  90. package/dist/model/TSSStatus.js +96 -0
  91. package/dist/model/TokenListing.js +10 -10
  92. package/dist/model/TokenListingEventData.js +33 -18
  93. package/dist/model/TokensEventData.js +40 -3
  94. package/dist/model/Transaction.js +1 -1
  95. package/dist/model/TransactionBIP137Destination.js +1 -1
  96. package/dist/model/TransactionBIP322Destination.js +1 -1
  97. package/dist/model/TransactionBabylonBusinessInfo.js +1 -1
  98. package/dist/model/TransactionBabylonTxParameters.js +3 -3
  99. package/dist/model/TransactionCoreStakeInfo.js +3 -3
  100. package/dist/model/TransactionCosmosAdr36Destination.js +1 -1
  101. package/dist/model/TransactionDetail.js +2 -2
  102. package/dist/model/TransactionDetails.js +2 -2
  103. package/dist/model/TransactionEvmEip1559Fee.js +13 -0
  104. package/dist/model/TransactionEvmLegacyFee.js +13 -0
  105. package/dist/model/TransactionExtra.js +3 -3
  106. package/dist/model/TransactionFee.js +6 -0
  107. package/dist/model/TransactionFixedFee.js +13 -0
  108. package/dist/model/TransactionMessageSignBTCEIP191Destination.js +1 -1
  109. package/dist/model/TransactionSolContractDestination.js +1 -1
  110. package/dist/model/TransactionSubStatus.js +25 -0
  111. package/dist/model/TransactionUtxoFee.js +13 -0
  112. package/dist/model/TransactionWebhookEventData.js +20 -5
  113. package/dist/model/UpdateMerchantByIdRequest.js +87 -0
  114. package/dist/model/UpdatePaymentOrderRequest.js +106 -0
  115. package/dist/model/WalletInfoEventData.js +18 -3
  116. package/dist/model/WebhookEventData.js +229 -25
  117. package/dist/model/WebhookEventDataType.js +17 -2
  118. package/dist/model/WebhookEventType.js +30 -0
  119. package/docs/AddressBook.md +2 -0
  120. package/docs/AddressesEventData.md +7 -1
  121. package/docs/BankAccount.md +2 -0
  122. package/docs/ChainsEventData.md +9 -1
  123. package/docs/CreateBankAccountRequest.md +9 -0
  124. package/docs/CreateMerchantRequest.md +10 -0
  125. package/docs/CreatePaymentOrderRequest.md +16 -0
  126. package/docs/CreateRefundRequest.md +15 -0
  127. package/docs/CreateSettlement.md +3 -3
  128. package/docs/CreateSettlementRequestRequest.md +10 -0
  129. package/docs/CreateTokenListingRequest201Response.md +9 -0
  130. package/docs/CreateTokenListingRequestRequest.md +12 -0
  131. package/docs/FeeStationApi.md +59 -6
  132. package/docs/FeeStationDestination.md +11 -0
  133. package/docs/FeeStationTransfer.md +10 -0
  134. package/docs/GetExchangeRate200Response.md +11 -0
  135. package/docs/GetRefunds200Response.md +10 -0
  136. package/docs/GetSettlementInfoByIds200Response.md +10 -0
  137. package/docs/ListMerchants200Response.md +10 -0
  138. package/docs/ListPaymentOrders200Response.md +10 -0
  139. package/docs/ListSettlementRequests200Response.md +10 -0
  140. package/docs/ListTokenBalancesForFeeStation200Response.md +10 -0
  141. package/docs/ListTokenBalancesForFeeStation200ResponseDataInner.md +11 -0
  142. package/docs/ListTokenListingRequests200Response.md +10 -0
  143. package/docs/MPCVaultEventData.md +7 -1
  144. package/docs/Merchant.md +3 -1
  145. package/docs/Order.md +11 -8
  146. package/docs/OrderAddressInfo.md +12 -0
  147. package/docs/PaymentApi.md +1041 -0
  148. package/docs/PaymentOrderEventData.md +58 -0
  149. package/docs/PaymentRefundEventData.md +54 -0
  150. package/docs/PaymentSettlementEvent.md +47 -0
  151. package/docs/PaymentTransaction.md +5 -4
  152. package/docs/Refund.md +8 -3
  153. package/docs/Settlement.md +5 -2
  154. package/docs/SettlementDetail.md +8 -4
  155. package/docs/SettlementInfo.md +9 -6
  156. package/docs/SwapActivity.md +4 -3
  157. package/docs/SwapActivityDetail.md +25 -0
  158. package/docs/SwapActivityTimeline.md +11 -0
  159. package/docs/SwapQuote.md +4 -1
  160. package/docs/SwapToken.md +2 -2
  161. package/docs/{SwapActivityType.md → SwapType.md} +1 -1
  162. package/docs/TSSBaseRequestEventData.md +14 -0
  163. package/docs/TSSCallbackActionType.md +12 -0
  164. package/docs/TSSCallbackRequest.md +12 -0
  165. package/docs/TSSCallbackRequestType.md +18 -0
  166. package/docs/TSSCallbackResponse.md +12 -0
  167. package/docs/TSSCurve.md +12 -0
  168. package/docs/TSSCurveType.md +12 -0
  169. package/docs/TSSEvent.md +13 -0
  170. package/docs/TSSEventData.md +16 -0
  171. package/docs/TSSEventDataType.md +16 -0
  172. package/docs/TSSEventType.md +42 -0
  173. package/docs/TSSGroup.md +19 -0
  174. package/docs/TSSGroupType.md +12 -0
  175. package/docs/TSSKeyGenEventData.md +16 -0
  176. package/docs/TSSKeyGenExtra.md +13 -0
  177. package/docs/TSSKeyGenRequest.md +13 -0
  178. package/docs/TSSKeyReshareEventData.md +16 -0
  179. package/docs/TSSKeyReshareExtra.md +14 -0
  180. package/docs/TSSKeyReshareRequest.md +17 -0
  181. package/docs/TSSKeyShareSignDetail.md +10 -0
  182. package/docs/TSSKeyShareSignEventData.md +16 -0
  183. package/docs/TSSKeyShareSignExtra.md +13 -0
  184. package/docs/TSSKeyShareSignRequest.md +12 -0
  185. package/docs/TSSKeyShareSignSignature.md +12 -0
  186. package/docs/TSSKeyShareSignSignatures.md +9 -0
  187. package/docs/TSSKeySignEventData.md +16 -0
  188. package/docs/TSSKeySignExtra.md +15 -0
  189. package/docs/TSSKeySignRequest.md +18 -0
  190. package/docs/TSSParticipant.md +11 -0
  191. package/docs/TSSProtocol.md +14 -0
  192. package/docs/TSSRequestTypeEenum.md +16 -0
  193. package/docs/TSSRequestWebhookEventData.md +7 -1
  194. package/docs/TSSSignature.md +13 -0
  195. package/docs/TSSSignatureType.md +14 -0
  196. package/docs/TSSSignatures.md +11 -0
  197. package/docs/TSSStatus.md +26 -0
  198. package/docs/TokenListing.md +6 -6
  199. package/docs/TokenListingEventData.md +13 -7
  200. package/docs/TokensEventData.md +9 -1
  201. package/docs/Transaction.md +1 -1
  202. package/docs/TransactionBabylonTxParameters.md +2 -2
  203. package/docs/TransactionCoreStakeInfo.md +2 -2
  204. package/docs/TransactionDetail.md +1 -1
  205. package/docs/TransactionDetails.md +1 -1
  206. package/docs/TransactionEvmEip1559Fee.md +1 -0
  207. package/docs/TransactionEvmLegacyFee.md +1 -0
  208. package/docs/TransactionExtra.md +3 -3
  209. package/docs/TransactionFee.md +1 -0
  210. package/docs/TransactionFixedFee.md +1 -0
  211. package/docs/TransactionSubStatus.md +10 -0
  212. package/docs/TransactionUtxoFee.md +1 -0
  213. package/docs/TransactionWebhookEventData.md +8 -2
  214. package/docs/TransactionsApi.md +9 -5
  215. package/docs/UpdateMerchantByIdRequest.md +9 -0
  216. package/docs/UpdatePaymentOrderRequest.md +9 -0
  217. package/docs/WalletInfoEventData.md +7 -1
  218. package/docs/WalletsApi.md +162 -1
  219. package/docs/WebhookEventData.md +38 -12
  220. package/docs/WebhookEventDataType.md +7 -1
  221. package/docs/WebhookEventType.md +12 -0
  222. package/package.json +1 -1
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.13.0
18
+ - Package version: 1.15.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,12 +81,32 @@ 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* | [**estimateFeeStationFee**](docs/FeeStationApi.md#estimateFeeStationFee) | **POST** /fee_station/transactions/estimate_fee | Estimate fee for Fee Station transaction
84
85
  *CoboWaas2.FeeStationApi* | [**getFeeStationTransactionById**](docs/FeeStationApi.md#getFeeStationTransactionById) | **GET** /fee_station/transactions/{transaction_id} | Get Fee Station transaction information
85
86
  *CoboWaas2.FeeStationApi* | [**listFeeStationAddresses**](docs/FeeStationApi.md#listFeeStationAddresses) | **GET** /fee_station/addresses | List Fee Station addresses
86
87
  *CoboWaas2.FeeStationApi* | [**listFeeStationTransactions**](docs/FeeStationApi.md#listFeeStationTransactions) | **GET** /fee_station/transactions | List all Fee Station transactions
87
88
  *CoboWaas2.FeeStationApi* | [**listTokenBalancesForFeeStation**](docs/FeeStationApi.md#listTokenBalancesForFeeStation) | **GET** /fee_station/tokens | List Fee Station token balances
88
89
  *CoboWaas2.OAuthApi* | [**getToken**](docs/OAuthApi.md#getToken) | **GET** /oauth/token | Get Org Access Token
89
90
  *CoboWaas2.OAuthApi* | [**refreshToken**](docs/OAuthApi.md#refreshToken) | **POST** /oauth/token | Refresh Org Access Token
91
+ *CoboWaas2.PaymentApi* | [**createBankAccount**](docs/PaymentApi.md#createBankAccount) | **POST** /payments/bank_accounts | Create bank account
92
+ *CoboWaas2.PaymentApi* | [**createMerchant**](docs/PaymentApi.md#createMerchant) | **POST** /payments/merchants | Create merchant
93
+ *CoboWaas2.PaymentApi* | [**createPaymentOrder**](docs/PaymentApi.md#createPaymentOrder) | **POST** /payments/orders | Create pay-in order
94
+ *CoboWaas2.PaymentApi* | [**createRefund**](docs/PaymentApi.md#createRefund) | **POST** /payments/refunds | Create refund order
95
+ *CoboWaas2.PaymentApi* | [**createSettlementRequest**](docs/PaymentApi.md#createSettlementRequest) | **POST** /payments/settlement_requests | Create settlement request
96
+ *CoboWaas2.PaymentApi* | [**getExchangeRate**](docs/PaymentApi.md#getExchangeRate) | **GET** /payments/exchange_rates/{token_id}/{currency} | Get exchange rate
97
+ *CoboWaas2.PaymentApi* | [**getPaymentOrderAddressInfo**](docs/PaymentApi.md#getPaymentOrderAddressInfo) | **GET** /payments/orders/address_info | Get pay-in order's receiving address info
98
+ *CoboWaas2.PaymentApi* | [**getPaymentOrderDetailById**](docs/PaymentApi.md#getPaymentOrderDetailById) | **GET** /payments/orders/{order_id} | Get pay-in order information
99
+ *CoboWaas2.PaymentApi* | [**getRefundDetailById**](docs/PaymentApi.md#getRefundDetailById) | **GET** /payments/refunds/{refund_id} | Get refund order information
100
+ *CoboWaas2.PaymentApi* | [**getRefunds**](docs/PaymentApi.md#getRefunds) | **GET** /payments/refunds | List all refund orders
101
+ *CoboWaas2.PaymentApi* | [**getSettlementById**](docs/PaymentApi.md#getSettlementById) | **GET** /payments/settlement_requests/{settlement_request_id} | Get settlement request information
102
+ *CoboWaas2.PaymentApi* | [**getSettlementInfoByIds**](docs/PaymentApi.md#getSettlementInfoByIds) | **GET** /payments/settlement_info | Get withdrawable balances
103
+ *CoboWaas2.PaymentApi* | [**listBankAccounts**](docs/PaymentApi.md#listBankAccounts) | **GET** /payments/bank_accounts | List all bank accounts
104
+ *CoboWaas2.PaymentApi* | [**listMerchants**](docs/PaymentApi.md#listMerchants) | **GET** /payments/merchants | List all merchants
105
+ *CoboWaas2.PaymentApi* | [**listPaymentOrders**](docs/PaymentApi.md#listPaymentOrders) | **GET** /payments/orders | List all pay-in orders
106
+ *CoboWaas2.PaymentApi* | [**listSettlementRequests**](docs/PaymentApi.md#listSettlementRequests) | **GET** /payments/settlement_requests | List all settlement requests
107
+ *CoboWaas2.PaymentApi* | [**updateBankAccountById**](docs/PaymentApi.md#updateBankAccountById) | **PUT** /payments/bank_accounts/{bank_account_id} | Update bank account
108
+ *CoboWaas2.PaymentApi* | [**updateMerchantById**](docs/PaymentApi.md#updateMerchantById) | **PUT** /payments/merchants/{merchant_id} | Update merchant
109
+ *CoboWaas2.PaymentApi* | [**updatePaymentOrder**](docs/PaymentApi.md#updatePaymentOrder) | **PUT** /payments/orders/{order_id} | Update pay-in order
90
110
  *CoboWaas2.PrimeBrokerApi* | [**changeGuardPubkey**](docs/PrimeBrokerApi.md#changeGuardPubkey) | **PUT** /prime_broker/user/{user_id}/guard_pubkey | Change Guard pubkey binding
91
111
  *CoboWaas2.PrimeBrokerApi* | [**createGuardPubkey**](docs/PrimeBrokerApi.md#createGuardPubkey) | **POST** /prime_broker/user/{user_id}/guard_pubkey | Create Guard pubkey binding
92
112
  *CoboWaas2.PrimeBrokerApi* | [**createPrimeBrokerAddress**](docs/PrimeBrokerApi.md#createPrimeBrokerAddress) | **POST** /prime_broker/user/{user_id}/addresses | Bind addresses to a broker user
@@ -136,11 +156,13 @@ Class | Method | HTTP request | Description
136
156
  *CoboWaas2.WalletsApi* | [**checkAddressValidity**](docs/WalletsApi.md#checkAddressValidity) | **GET** /wallets/check_address_validity | Check address validity
137
157
  *CoboWaas2.WalletsApi* | [**checkAddressesValidity**](docs/WalletsApi.md#checkAddressesValidity) | **GET** /wallets/check_addresses_validity | Check addresses validity
138
158
  *CoboWaas2.WalletsApi* | [**createAddress**](docs/WalletsApi.md#createAddress) | **POST** /wallets/{wallet_id}/addresses | Create addresses in wallet
159
+ *CoboWaas2.WalletsApi* | [**createTokenListingRequest**](docs/WalletsApi.md#createTokenListingRequest) | **POST** /wallets/tokens/listing_requests | Create token listing request
139
160
  *CoboWaas2.WalletsApi* | [**createWallet**](docs/WalletsApi.md#createWallet) | **POST** /wallets | Create wallet
140
161
  *CoboWaas2.WalletsApi* | [**deleteWalletById**](docs/WalletsApi.md#deleteWalletById) | **POST** /wallets/{wallet_id}/delete | Delete wallet
141
162
  *CoboWaas2.WalletsApi* | [**getChainById**](docs/WalletsApi.md#getChainById) | **GET** /wallets/chains/{chain_id} | Get chain information
142
163
  *CoboWaas2.WalletsApi* | [**getMaxTransferableValue**](docs/WalletsApi.md#getMaxTransferableValue) | **GET** /wallets/{wallet_id}/max_transferable_value | Get maximum transferable value
143
164
  *CoboWaas2.WalletsApi* | [**getTokenById**](docs/WalletsApi.md#getTokenById) | **GET** /wallets/tokens/{token_id} | Get token information
165
+ *CoboWaas2.WalletsApi* | [**getTokenListingRequestByRequestId**](docs/WalletsApi.md#getTokenListingRequestByRequestId) | **GET** /wallets/tokens/listing_requests/{request_id} | Get token listing request
144
166
  *CoboWaas2.WalletsApi* | [**getWalletById**](docs/WalletsApi.md#getWalletById) | **GET** /wallets/{wallet_id} | Get wallet information
145
167
  *CoboWaas2.WalletsApi* | [**listAddressBalancesByToken**](docs/WalletsApi.md#listAddressBalancesByToken) | **GET** /wallets/{wallet_id}/tokens/{token_id} | List address balances by token
146
168
  *CoboWaas2.WalletsApi* | [**listAddresses**](docs/WalletsApi.md#listAddresses) | **GET** /wallets/{wallet_id}/addresses | List wallet addresses
@@ -150,6 +172,7 @@ Class | Method | HTTP request | Description
150
172
  *CoboWaas2.WalletsApi* | [**listSupportedTokens**](docs/WalletsApi.md#listSupportedTokens) | **GET** /wallets/tokens | List supported tokens
151
173
  *CoboWaas2.WalletsApi* | [**listTokenBalancesForAddress**](docs/WalletsApi.md#listTokenBalancesForAddress) | **GET** /wallets/{wallet_id}/addresses/{address}/tokens | List token balances by address
152
174
  *CoboWaas2.WalletsApi* | [**listTokenBalancesForWallet**](docs/WalletsApi.md#listTokenBalancesForWallet) | **GET** /wallets/{wallet_id}/tokens | List token balances by wallet
175
+ *CoboWaas2.WalletsApi* | [**listTokenListingRequests**](docs/WalletsApi.md#listTokenListingRequests) | **GET** /wallets/tokens/listing_requests | List token listing requests
153
176
  *CoboWaas2.WalletsApi* | [**listUtxos**](docs/WalletsApi.md#listUtxos) | **GET** /wallets/{wallet_id}/utxos | List UTXOs
154
177
  *CoboWaas2.WalletsApi* | [**listWallets**](docs/WalletsApi.md#listWallets) | **GET** /wallets | List all wallets
155
178
  *CoboWaas2.WalletsApi* | [**lockUtxos**](docs/WalletsApi.md#lockUtxos) | **POST** /wallets/{wallet_id}/utxos/lock | Lock UTXOs
@@ -257,24 +280,31 @@ Class | Method | HTTP request | Description
257
280
  - [CoboWaas2.CreateBabylonAirdropRegistrationRequest](docs/CreateBabylonAirdropRegistrationRequest.md)
258
281
  - [CoboWaas2.CreateBabylonStakingRegistration201Response](docs/CreateBabylonStakingRegistration201Response.md)
259
282
  - [CoboWaas2.CreateBabylonStakingRegistrationRequest](docs/CreateBabylonStakingRegistrationRequest.md)
283
+ - [CoboWaas2.CreateBankAccountRequest](docs/CreateBankAccountRequest.md)
260
284
  - [CoboWaas2.CreateClaimActivity](docs/CreateClaimActivity.md)
261
285
  - [CoboWaas2.CreateClaimActivityRequest](docs/CreateClaimActivityRequest.md)
262
286
  - [CoboWaas2.CreateCustodialWalletParams](docs/CreateCustodialWalletParams.md)
263
287
  - [CoboWaas2.CreateExchangeWalletParams](docs/CreateExchangeWalletParams.md)
264
288
  - [CoboWaas2.CreateKeyShareHolder](docs/CreateKeyShareHolder.md)
265
289
  - [CoboWaas2.CreateKeyShareHolderGroupRequest](docs/CreateKeyShareHolderGroupRequest.md)
290
+ - [CoboWaas2.CreateMerchantRequest](docs/CreateMerchantRequest.md)
266
291
  - [CoboWaas2.CreateMpcProjectRequest](docs/CreateMpcProjectRequest.md)
267
292
  - [CoboWaas2.CreateMpcVaultRequest](docs/CreateMpcVaultRequest.md)
268
293
  - [CoboWaas2.CreateMpcWalletParams](docs/CreateMpcWalletParams.md)
294
+ - [CoboWaas2.CreatePaymentOrderRequest](docs/CreatePaymentOrderRequest.md)
269
295
  - [CoboWaas2.CreatePrimeBrokerAddress201Response](docs/CreatePrimeBrokerAddress201Response.md)
270
296
  - [CoboWaas2.CreatePrimeBrokerAddressRequest](docs/CreatePrimeBrokerAddressRequest.md)
297
+ - [CoboWaas2.CreateRefundRequest](docs/CreateRefundRequest.md)
271
298
  - [CoboWaas2.CreateSafeWalletParams](docs/CreateSafeWalletParams.md)
272
299
  - [CoboWaas2.CreateSettlement](docs/CreateSettlement.md)
300
+ - [CoboWaas2.CreateSettlementRequestRequest](docs/CreateSettlementRequestRequest.md)
273
301
  - [CoboWaas2.CreateSmartContractWalletParams](docs/CreateSmartContractWalletParams.md)
274
302
  - [CoboWaas2.CreateStakeActivity](docs/CreateStakeActivity.md)
275
303
  - [CoboWaas2.CreateStakeActivity201Response](docs/CreateStakeActivity201Response.md)
276
304
  - [CoboWaas2.CreateStakeActivityExtra](docs/CreateStakeActivityExtra.md)
277
305
  - [CoboWaas2.CreateStakeActivityRequest](docs/CreateStakeActivityRequest.md)
306
+ - [CoboWaas2.CreateTokenListingRequest201Response](docs/CreateTokenListingRequest201Response.md)
307
+ - [CoboWaas2.CreateTokenListingRequestRequest](docs/CreateTokenListingRequestRequest.md)
278
308
  - [CoboWaas2.CreateTransferTransaction201Response](docs/CreateTransferTransaction201Response.md)
279
309
  - [CoboWaas2.CreateTssRequestRequest](docs/CreateTssRequestRequest.md)
280
310
  - [CoboWaas2.CreateUnstakeActivity](docs/CreateUnstakeActivity.md)
@@ -337,10 +367,15 @@ Class | Method | HTTP request | Description
337
367
  - [CoboWaas2.FeeGasLimit](docs/FeeGasLimit.md)
338
368
  - [CoboWaas2.FeeRate](docs/FeeRate.md)
339
369
  - [CoboWaas2.FeeReserved](docs/FeeReserved.md)
370
+ - [CoboWaas2.FeeStationDestination](docs/FeeStationDestination.md)
340
371
  - [CoboWaas2.FeeStationTransactionType](docs/FeeStationTransactionType.md)
372
+ - [CoboWaas2.FeeStationTransfer](docs/FeeStationTransfer.md)
341
373
  - [CoboWaas2.FeeType](docs/FeeType.md)
342
374
  - [CoboWaas2.FixedFeeRate](docs/FixedFeeRate.md)
343
375
  - [CoboWaas2.GetApiKeyInfo200Response](docs/GetApiKeyInfo200Response.md)
376
+ - [CoboWaas2.GetExchangeRate200Response](docs/GetExchangeRate200Response.md)
377
+ - [CoboWaas2.GetRefunds200Response](docs/GetRefunds200Response.md)
378
+ - [CoboWaas2.GetSettlementInfoByIds200Response](docs/GetSettlementInfoByIds200Response.md)
344
379
  - [CoboWaas2.GetStakingEstimationFee201Response](docs/GetStakingEstimationFee201Response.md)
345
380
  - [CoboWaas2.GetStakingEstimationFeeRequest](docs/GetStakingEstimationFeeRequest.md)
346
381
  - [CoboWaas2.GetToken2XXResponse](docs/GetToken2XXResponse.md)
@@ -366,8 +401,11 @@ Class | Method | HTTP request | Description
366
401
  - [CoboWaas2.ListExchanges200ResponseInner](docs/ListExchanges200ResponseInner.md)
367
402
  - [CoboWaas2.ListKeyShareHolderGroups200Response](docs/ListKeyShareHolderGroups200Response.md)
368
403
  - [CoboWaas2.ListKeyShareHolders200Response](docs/ListKeyShareHolders200Response.md)
404
+ - [CoboWaas2.ListMerchants200Response](docs/ListMerchants200Response.md)
369
405
  - [CoboWaas2.ListMpcProjects200Response](docs/ListMpcProjects200Response.md)
370
406
  - [CoboWaas2.ListMpcVaults200Response](docs/ListMpcVaults200Response.md)
407
+ - [CoboWaas2.ListPaymentOrders200Response](docs/ListPaymentOrders200Response.md)
408
+ - [CoboWaas2.ListSettlementRequests200Response](docs/ListSettlementRequests200Response.md)
371
409
  - [CoboWaas2.ListStakingActivities200Response](docs/ListStakingActivities200Response.md)
372
410
  - [CoboWaas2.ListStakingPools200Response](docs/ListStakingPools200Response.md)
373
411
  - [CoboWaas2.ListStakings200Response](docs/ListStakings200Response.md)
@@ -376,6 +414,9 @@ Class | Method | HTTP request | Description
376
414
  - [CoboWaas2.ListSupportedCountries200ResponseInner](docs/ListSupportedCountries200ResponseInner.md)
377
415
  - [CoboWaas2.ListSupportedTokens200Response](docs/ListSupportedTokens200Response.md)
378
416
  - [CoboWaas2.ListTokenBalancesForAddress200Response](docs/ListTokenBalancesForAddress200Response.md)
417
+ - [CoboWaas2.ListTokenBalancesForFeeStation200Response](docs/ListTokenBalancesForFeeStation200Response.md)
418
+ - [CoboWaas2.ListTokenBalancesForFeeStation200ResponseDataInner](docs/ListTokenBalancesForFeeStation200ResponseDataInner.md)
419
+ - [CoboWaas2.ListTokenListingRequests200Response](docs/ListTokenListingRequests200Response.md)
379
420
  - [CoboWaas2.ListTransactionApprovalDetails200Response](docs/ListTransactionApprovalDetails200Response.md)
380
421
  - [CoboWaas2.ListTransactions200Response](docs/ListTransactions200Response.md)
381
422
  - [CoboWaas2.ListTssRequests200Response](docs/ListTssRequests200Response.md)
@@ -408,9 +449,13 @@ Class | Method | HTTP request | Description
408
449
  - [CoboWaas2.MpcStakeSource](docs/MpcStakeSource.md)
409
450
  - [CoboWaas2.MpcTransferSource](docs/MpcTransferSource.md)
410
451
  - [CoboWaas2.Order](docs/Order.md)
452
+ - [CoboWaas2.OrderAddressInfo](docs/OrderAddressInfo.md)
411
453
  - [CoboWaas2.OrderStatus](docs/OrderStatus.md)
412
454
  - [CoboWaas2.OrgInfo](docs/OrgInfo.md)
413
455
  - [CoboWaas2.Pagination](docs/Pagination.md)
456
+ - [CoboWaas2.PaymentOrderEventData](docs/PaymentOrderEventData.md)
457
+ - [CoboWaas2.PaymentRefundEventData](docs/PaymentRefundEventData.md)
458
+ - [CoboWaas2.PaymentSettlementEvent](docs/PaymentSettlementEvent.md)
414
459
  - [CoboWaas2.PaymentTransaction](docs/PaymentTransaction.md)
415
460
  - [CoboWaas2.PoolDetails](docs/PoolDetails.md)
416
461
  - [CoboWaas2.PoolDetailsAllOfValidatorsInfo](docs/PoolDetailsAllOfValidatorsInfo.md)
@@ -467,15 +512,52 @@ Class | Method | HTTP request | Description
467
512
  - [CoboWaas2.SubWalletAssetBalance](docs/SubWalletAssetBalance.md)
468
513
  - [CoboWaas2.SubmitDepositTravelRuleInfo201Response](docs/SubmitDepositTravelRuleInfo201Response.md)
469
514
  - [CoboWaas2.SwapActivity](docs/SwapActivity.md)
515
+ - [CoboWaas2.SwapActivityDetail](docs/SwapActivityDetail.md)
470
516
  - [CoboWaas2.SwapActivityStatus](docs/SwapActivityStatus.md)
471
- - [CoboWaas2.SwapActivityType](docs/SwapActivityType.md)
517
+ - [CoboWaas2.SwapActivityTimeline](docs/SwapActivityTimeline.md)
472
518
  - [CoboWaas2.SwapQuote](docs/SwapQuote.md)
473
519
  - [CoboWaas2.SwapToken](docs/SwapToken.md)
520
+ - [CoboWaas2.SwapType](docs/SwapType.md)
521
+ - [CoboWaas2.TSSBaseRequestEventData](docs/TSSBaseRequestEventData.md)
522
+ - [CoboWaas2.TSSCallbackActionType](docs/TSSCallbackActionType.md)
523
+ - [CoboWaas2.TSSCallbackRequest](docs/TSSCallbackRequest.md)
524
+ - [CoboWaas2.TSSCallbackRequestType](docs/TSSCallbackRequestType.md)
525
+ - [CoboWaas2.TSSCallbackResponse](docs/TSSCallbackResponse.md)
526
+ - [CoboWaas2.TSSCurve](docs/TSSCurve.md)
527
+ - [CoboWaas2.TSSCurveType](docs/TSSCurveType.md)
528
+ - [CoboWaas2.TSSEvent](docs/TSSEvent.md)
529
+ - [CoboWaas2.TSSEventData](docs/TSSEventData.md)
530
+ - [CoboWaas2.TSSEventDataType](docs/TSSEventDataType.md)
531
+ - [CoboWaas2.TSSEventType](docs/TSSEventType.md)
532
+ - [CoboWaas2.TSSGroup](docs/TSSGroup.md)
533
+ - [CoboWaas2.TSSGroupType](docs/TSSGroupType.md)
474
534
  - [CoboWaas2.TSSGroups](docs/TSSGroups.md)
535
+ - [CoboWaas2.TSSKeyGenEventData](docs/TSSKeyGenEventData.md)
536
+ - [CoboWaas2.TSSKeyGenExtra](docs/TSSKeyGenExtra.md)
537
+ - [CoboWaas2.TSSKeyGenRequest](docs/TSSKeyGenRequest.md)
538
+ - [CoboWaas2.TSSKeyReshareEventData](docs/TSSKeyReshareEventData.md)
539
+ - [CoboWaas2.TSSKeyReshareExtra](docs/TSSKeyReshareExtra.md)
540
+ - [CoboWaas2.TSSKeyReshareRequest](docs/TSSKeyReshareRequest.md)
541
+ - [CoboWaas2.TSSKeyShareSignDetail](docs/TSSKeyShareSignDetail.md)
542
+ - [CoboWaas2.TSSKeyShareSignEventData](docs/TSSKeyShareSignEventData.md)
543
+ - [CoboWaas2.TSSKeyShareSignExtra](docs/TSSKeyShareSignExtra.md)
544
+ - [CoboWaas2.TSSKeyShareSignRequest](docs/TSSKeyShareSignRequest.md)
545
+ - [CoboWaas2.TSSKeyShareSignSignature](docs/TSSKeyShareSignSignature.md)
546
+ - [CoboWaas2.TSSKeyShareSignSignatures](docs/TSSKeyShareSignSignatures.md)
547
+ - [CoboWaas2.TSSKeySignEventData](docs/TSSKeySignEventData.md)
548
+ - [CoboWaas2.TSSKeySignExtra](docs/TSSKeySignExtra.md)
549
+ - [CoboWaas2.TSSKeySignRequest](docs/TSSKeySignRequest.md)
550
+ - [CoboWaas2.TSSParticipant](docs/TSSParticipant.md)
551
+ - [CoboWaas2.TSSProtocol](docs/TSSProtocol.md)
475
552
  - [CoboWaas2.TSSRequest](docs/TSSRequest.md)
476
553
  - [CoboWaas2.TSSRequestStatus](docs/TSSRequestStatus.md)
477
554
  - [CoboWaas2.TSSRequestType](docs/TSSRequestType.md)
555
+ - [CoboWaas2.TSSRequestTypeEenum](docs/TSSRequestTypeEenum.md)
478
556
  - [CoboWaas2.TSSRequestWebhookEventData](docs/TSSRequestWebhookEventData.md)
557
+ - [CoboWaas2.TSSSignature](docs/TSSSignature.md)
558
+ - [CoboWaas2.TSSSignatureType](docs/TSSSignatureType.md)
559
+ - [CoboWaas2.TSSSignatures](docs/TSSSignatures.md)
560
+ - [CoboWaas2.TSSStatus](docs/TSSStatus.md)
479
561
  - [CoboWaas2.TokenAssetModelType](docs/TokenAssetModelType.md)
480
562
  - [CoboWaas2.TokenBalance](docs/TokenBalance.md)
481
563
  - [CoboWaas2.TokenInfo](docs/TokenInfo.md)
@@ -589,9 +671,11 @@ Class | Method | HTTP request | Description
589
671
  - [CoboWaas2.UpdateExchangeWalletParams](docs/UpdateExchangeWalletParams.md)
590
672
  - [CoboWaas2.UpdateGroupAction](docs/UpdateGroupAction.md)
591
673
  - [CoboWaas2.UpdateKeyShareHolderGroupByIdRequest](docs/UpdateKeyShareHolderGroupByIdRequest.md)
674
+ - [CoboWaas2.UpdateMerchantByIdRequest](docs/UpdateMerchantByIdRequest.md)
592
675
  - [CoboWaas2.UpdateMpcProjectByIdRequest](docs/UpdateMpcProjectByIdRequest.md)
593
676
  - [CoboWaas2.UpdateMpcVaultByIdRequest](docs/UpdateMpcVaultByIdRequest.md)
594
677
  - [CoboWaas2.UpdateMpcWalletParams](docs/UpdateMpcWalletParams.md)
678
+ - [CoboWaas2.UpdatePaymentOrderRequest](docs/UpdatePaymentOrderRequest.md)
595
679
  - [CoboWaas2.UpdateSmartContractWalletParams](docs/UpdateSmartContractWalletParams.md)
596
680
  - [CoboWaas2.UpdateWalletParams](docs/UpdateWalletParams.md)
597
681
  - [CoboWaas2.UpdateWebhookEndpointByIdRequest](docs/UpdateWebhookEndpointByIdRequest.md)
@@ -679,9 +763,9 @@ Authentication schemes defined for the API:
679
763
  - webhook.read: Read webhook URLs/events
680
764
  - webhook.edit: Edit webhook URLs
681
765
  - 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
766
+ - payment_orders_payin.create: Create pay-in order
767
+ - payment_orders_payin.read: Read pay-in order information
768
+ - payment_orders_payin.update: Update pay-in order
685
769
  - payment_orders_refund.create: Create payment refund order
686
770
  - payment_orders_refund.read: Read payment refund order information
687
771
  - payment_settlement.create: Create payment settlement request
package/dist/ApiClient.js CHANGED
@@ -10,8 +10,7 @@ var _Env = _interopRequireDefault(require("./Env"));
10
10
  var _Ed25519Signer = _interopRequireDefault(require("./crypto/Ed25519Signer"));
11
11
  var _Secp256k1Signer = _interopRequireDefault(require("./crypto/Secp256k1Signer"));
12
12
  var CryptoJS = _interopRequireWildcard(require("crypto-js"));
13
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
13
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
15
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
16
15
  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); }
17
16
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -102,7 +101,7 @@ var ApiClient = /*#__PURE__*/function () {
102
101
  * @default {}
103
102
  */
104
103
  this.defaultHeaders = {
105
- 'User-Agent': 'cobo-waas2-js-sdk/1.13.0'
104
+ 'User-Agent': 'cobo-waas2-js-sdk/1.15.0'
106
105
  };
107
106
 
108
107
  /**
@@ -6,7 +6,7 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
6
6
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7
7
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
8
8
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
9
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
9
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { return Object.defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = Object.getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l); function g(t) { ["next", "throw", "return"].forEach(function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == _typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i["return"] && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, "catch": function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
10
10
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
11
11
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
12
12
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -6,8 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
9
+ var _EstimatedFixedFee = _interopRequireDefault(require("../model/EstimatedFixedFee"));
10
+ var _FeeStationTransfer = _interopRequireDefault(require("../model/FeeStationTransfer"));
9
11
  var _ListAddresses200Response = _interopRequireDefault(require("../model/ListAddresses200Response"));
10
- var _ListTokenBalancesForAddress200Response = _interopRequireDefault(require("../model/ListTokenBalancesForAddress200Response"));
12
+ var _ListTokenBalancesForFeeStation200Response = _interopRequireDefault(require("../model/ListTokenBalancesForFeeStation200Response"));
11
13
  var _ListTransactions200Response = _interopRequireDefault(require("../model/ListTransactions200Response"));
12
14
  var _TransactionDetail = _interopRequireDefault(require("../model/TransactionDetail"));
13
15
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -44,12 +46,53 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
44
46
  }
45
47
 
46
48
  /**
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
49
+ * Estimate fee for Fee Station transaction
50
+ * This operation estimates the gas fee required for a top-up transaction sent by [Fee Station](https://manuals.cobo.com/en/portal/fee-station/introduction) to provide gas to the sender of the original transaction. You need to provide the token ID and transfer amount. For more information about transaction fee models and how fees are calculated, refer to [Estimate transaction fee](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees).
51
+ * @param {Object} opts Optional parameters
52
+ * @param {module:model/FeeStationTransfer} [FeeStationTransfer] The information about a Fee Station top-up transaction.
53
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EstimatedFixedFee} and HTTP response
51
54
  */
52
55
  return _createClass(FeeStationApi, [{
56
+ key: "estimateFeeStationFeeWithHttpInfo",
57
+ value: function estimateFeeStationFeeWithHttpInfo(opts) {
58
+ opts = opts || {};
59
+ var postBody = opts['FeeStationTransfer'];
60
+ if (postBody && postBody.toJSON) {
61
+ postBody = postBody.toJSON();
62
+ }
63
+ var pathParams = {};
64
+ var queryParams = {};
65
+ var headerParams = {};
66
+ var formParams = {};
67
+ var authNames = ['OAuth2', 'CoboAuth'];
68
+ var contentTypes = ['application/json'];
69
+ var accepts = ['application/json'];
70
+ var returnType = _EstimatedFixedFee["default"];
71
+ return this.apiClient.callApi('/fee_station/transactions/estimate_fee', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
72
+ }
73
+
74
+ /**
75
+ * Estimate fee for Fee Station transaction
76
+ * This operation estimates the gas fee required for a top-up transaction sent by [Fee Station](https://manuals.cobo.com/en/portal/fee-station/introduction) to provide gas to the sender of the original transaction. You need to provide the token ID and transfer amount. For more information about transaction fee models and how fees are calculated, refer to [Estimate transaction fee](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees).
77
+ * @param {Object} opts Optional parameters
78
+ * @param {module:model/FeeStationTransfer} opts.FeeStationTransfer The information about a Fee Station top-up transaction.
79
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EstimatedFixedFee}
80
+ */
81
+ }, {
82
+ key: "estimateFeeStationFee",
83
+ value: function estimateFeeStationFee(opts) {
84
+ return this.estimateFeeStationFeeWithHttpInfo(opts).then(function (response_and_data) {
85
+ return response_and_data.data;
86
+ });
87
+ }
88
+
89
+ /**
90
+ * Get Fee Station transaction information
91
+ * This operation retrieves detailed information about a specified Fee Station transaction record, such as the transaction status, source address, destination address, and timestamp.
92
+ * @param {String} transaction_id The transaction ID.
93
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TransactionDetail} and HTTP response
94
+ */
95
+ }, {
53
96
  key: "getFeeStationTransactionByIdWithHttpInfo",
54
97
  value: function getFeeStationTransactionByIdWithHttpInfo(transaction_id) {
55
98
  var postBody = null;
@@ -75,7 +118,7 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
75
118
 
76
119
  /**
77
120
  * 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.
121
+ * This operation retrieves detailed information about a specified Fee Station transaction record, such as the transaction status, source address, destination address, and timestamp.
79
122
  * @param {String} transaction_id The transaction ID.
80
123
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TransactionDetail}
81
124
  */
@@ -89,7 +132,7 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
89
132
 
90
133
  /**
91
134
  * List Fee Station addresses
92
- * This operation retrieves a list of addresses within your Fee Station.
135
+ * This operation retrieves a list of deposit addresses of your Fee Station, including the chain ID, address, and additional information. You can filter the result by chain ID and address.
93
136
  * @param {Object} opts Optional parameters
94
137
  * @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
138
  * @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\").
@@ -125,7 +168,7 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
125
168
 
126
169
  /**
127
170
  * List Fee Station addresses
128
- * This operation retrieves a list of addresses within your Fee Station.
171
+ * This operation retrieves a list of deposit addresses of your Fee Station, including the chain ID, address, and additional information. You can filter the result by chain ID and address.
129
172
  * @param {Object} opts Optional parameters
130
173
  * @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
174
  * @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\").
@@ -155,8 +198,8 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
155
198
  * @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
199
  * @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
200
  * @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.
201
+ * @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. If not provided, the default value is 90 days before the current time. This default value is subject to change.
202
+ * @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. If not provided, the default value is the current time. This default value is subject to change.
160
203
  * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
161
204
  * @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
205
  * @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.
@@ -211,8 +254,8 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
211
254
  * @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
255
  * @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
256
  * @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.
257
+ * @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. If not provided, the default value is 90 days before the current time. This default value is subject to change.
258
+ * @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. If not provided, the default value is the current time. This default value is subject to change.
216
259
  * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
217
260
  * @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
261
  * @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.
@@ -235,7 +278,7 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
235
278
  * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
236
279
  * @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
280
  * @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
281
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTokenBalancesForFeeStation200Response} and HTTP response
239
282
  */
240
283
  }, {
241
284
  key: "listTokenBalancesForFeeStationWithHttpInfo",
@@ -257,7 +300,7 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
257
300
  var authNames = ['OAuth2', 'CoboAuth'];
258
301
  var contentTypes = [];
259
302
  var accepts = ['application/json'];
260
- var returnType = _ListTokenBalancesForAddress200Response["default"];
303
+ var returnType = _ListTokenBalancesForFeeStation200Response["default"];
261
304
  return this.apiClient.callApi('/fee_station/tokens', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
262
305
  }
263
306
 
@@ -269,7 +312,7 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
269
312
  * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
270
313
  * @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
314
  * @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}
315
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTokenBalancesForFeeStation200Response}
273
316
  */
274
317
  }, {
275
318
  key: "listTokenBalancesForFeeStation",