@cobo/cobo-waas2 1.10.0 → 1.12.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 (163) hide show
  1. package/README.md +31 -1
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AddressBooksApi.js +1 -1
  4. package/dist/api/DevelopersApi.js +3 -3
  5. package/dist/api/DevelopersWebhooksApi.js +8 -8
  6. package/dist/api/FeeStationApi.js +282 -0
  7. package/dist/api/StakingsApi.js +14 -14
  8. package/dist/api/SwapsApi.js +2 -2
  9. package/dist/api/TransactionsApi.js +69 -19
  10. package/dist/api/TravelRuleApi.js +4 -4
  11. package/dist/api/WalletsApi.js +77 -19
  12. package/dist/api/WalletsExchangeWalletApi.js +1 -1
  13. package/dist/api/WalletsMPCWalletsApi.js +19 -19
  14. package/dist/api/WalletsSmartContractWalletsApi.js +1 -1
  15. package/dist/index.js +175 -0
  16. package/dist/model/ActivityExtra.js +11 -0
  17. package/dist/model/AddressTransferDestination.js +1 -1
  18. package/dist/model/AddressesEventData.js +13 -3
  19. package/dist/model/BabylonStakingActivityDetailExtra.js +21 -0
  20. package/dist/model/BaseContractCallSource.js +1 -1
  21. package/dist/model/ChainInfo.js +2 -2
  22. package/dist/model/ChainsEventData.js +202 -0
  23. package/dist/model/ContractCallDestination.js +42 -8
  24. package/dist/model/ContractCallDestinationType.js +5 -0
  25. package/dist/model/ContractCallParams.js +3 -30
  26. package/dist/model/ContractCallSource.js +36 -8
  27. package/dist/model/ContractCallSourceType.js +5 -0
  28. package/dist/model/CreateBabylonAirdropRegistration201Response.js +1 -1
  29. package/dist/model/CreateBabylonStakingRegistration201Response.js +1 -1
  30. package/dist/model/CustodialTransferSource.js +1 -1
  31. package/dist/model/CustodialWeb3ContractCallSource.js +156 -0
  32. package/dist/model/CustodialWeb3MessageSignSource.js +136 -0
  33. package/dist/model/CustodialWeb3TransferSource.js +194 -0
  34. package/dist/model/EstimatedEvmEip1559FeeSlow.js +23 -0
  35. package/dist/model/EstimatedEvmLegacyFeeSlow.js +23 -0
  36. package/dist/model/ExtendedTokenInfo.js +3 -3
  37. package/dist/model/FeeReserved.js +87 -0
  38. package/dist/model/FeeStationTransactionType.js +61 -0
  39. package/dist/model/ListTransactionApprovalDetails200Response.js +107 -0
  40. package/dist/model/MPCVaultEventData.js +13 -3
  41. package/dist/model/MaxFeeAmount.js +1 -1
  42. package/dist/model/MessageSignSource.js +36 -8
  43. package/dist/model/MessageSignSourceType.js +5 -0
  44. package/dist/model/RefreshAddressBalancesByToken200Response.js +106 -0
  45. package/dist/model/RefreshAddressBalancesByTokenRequest.js +111 -0
  46. package/dist/model/SafeTxDecodedData.js +122 -0
  47. package/dist/model/SafeTxDecodedDataParameters.js +148 -0
  48. package/dist/model/SafeTxExtraData.js +339 -0
  49. package/dist/model/SafeTxSubTransaction.js +169 -0
  50. package/dist/model/SolContractCallAccount.js +133 -0
  51. package/dist/model/SolContractCallDestination.js +139 -0
  52. package/dist/model/SolContractCallInstruction.js +158 -0
  53. package/dist/model/TSSRequestWebhookEventData.js +13 -3
  54. package/dist/model/TokenInfo.js +2 -2
  55. package/dist/model/TokensEventData.js +202 -0
  56. package/dist/model/Transaction.js +29 -0
  57. package/dist/model/TransactionApprovalDetail.js +39 -0
  58. package/dist/model/TransactionCoboCategory.js +91 -0
  59. package/dist/model/TransactionCustodialWeb3WalletSource.js +194 -0
  60. package/dist/model/TransactionDestination.js +54 -8
  61. package/dist/model/TransactionDestinationType.js +5 -0
  62. package/dist/model/TransactionDetail.js +38 -0
  63. package/dist/model/TransactionDetails.js +38 -0
  64. package/dist/model/TransactionFee.js +1 -1
  65. package/dist/model/TransactionFixedFee.js +2 -2
  66. package/dist/model/TransactionFuelingInfo.js +101 -0
  67. package/dist/model/TransactionMessageSignEIP712Destination.js +29 -0
  68. package/dist/model/TransactionProcessType.js +61 -0
  69. package/dist/model/TransactionRequestFee.js +1 -1
  70. package/dist/model/TransactionRequestFixedFee.js +2 -2
  71. package/dist/model/TransactionRequestUtxoFee.js +5 -7
  72. package/dist/model/TransactionSelectedUtxo.js +26 -0
  73. package/dist/model/TransactionSolContractAccount.js +106 -0
  74. package/dist/model/TransactionSolContractDestination.js +137 -0
  75. package/dist/model/TransactionSolContractInstruction.js +134 -0
  76. package/dist/model/TransactionSource.js +36 -8
  77. package/dist/model/TransactionSourceType.js +5 -0
  78. package/dist/model/TransactionTokeApproval.js +3 -3
  79. package/dist/model/TransactionUserApprovalDetail.js +26 -0
  80. package/dist/model/TransactionWebhookEventData.js +51 -3
  81. package/dist/model/TransferParams.js +3 -30
  82. package/dist/model/TransferSource.js +36 -8
  83. package/dist/model/WalletInfoEventData.js +13 -3
  84. package/dist/model/WebhookEventData.js +91 -9
  85. package/dist/model/WebhookEventDataType.js +12 -2
  86. package/dist/model/WebhookEventType.js +30 -0
  87. package/docs/ActivityExtra.md +2 -0
  88. package/docs/AddressBooksApi.md +1 -1
  89. package/docs/AddressesEventData.md +5 -1
  90. package/docs/BabylonStakingActivityDetailExtra.md +2 -0
  91. package/docs/ChainInfo.md +1 -1
  92. package/docs/ChainsEventData.md +33 -0
  93. package/docs/ContractCallDestination.md +1 -0
  94. package/docs/ContractCallDestinationType.md +2 -0
  95. package/docs/ContractCallParams.md +1 -14
  96. package/docs/ContractCallSourceType.md +2 -0
  97. package/docs/CreateBabylonAirdropRegistration201Response.md +1 -1
  98. package/docs/CreateBabylonStakingRegistration201Response.md +1 -1
  99. package/docs/CustodialWeb3ContractCallSource.md +11 -0
  100. package/docs/CustodialWeb3MessageSignSource.md +11 -0
  101. package/docs/CustodialWeb3TransferSource.md +13 -0
  102. package/docs/DevelopersApi.md +3 -3
  103. package/docs/DevelopersWebhooksApi.md +8 -8
  104. package/docs/EstimatedEvmEip1559FeeSlow.md +1 -0
  105. package/docs/EstimatedEvmLegacyFeeSlow.md +1 -0
  106. package/docs/ExtendedTokenInfo.md +1 -1
  107. package/docs/FeeReserved.md +9 -0
  108. package/docs/FeeStationApi.md +260 -0
  109. package/docs/FeeStationTransactionType.md +12 -0
  110. package/docs/ListTransactionApprovalDetails200Response.md +9 -0
  111. package/docs/MPCVaultEventData.md +5 -1
  112. package/docs/MaxFeeAmount.md +1 -1
  113. package/docs/MessageSignSourceType.md +2 -0
  114. package/docs/RefreshAddressBalancesByToken200Response.md +9 -0
  115. package/docs/RefreshAddressBalancesByTokenRequest.md +9 -0
  116. package/docs/SafeTxDecodedData.md +10 -0
  117. package/docs/SafeTxDecodedDataParameters.md +12 -0
  118. package/docs/SafeTxExtraData.md +26 -0
  119. package/docs/SafeTxSubTransaction.md +15 -0
  120. package/docs/SolContractCallAccount.md +11 -0
  121. package/docs/SolContractCallDestination.md +10 -0
  122. package/docs/SolContractCallInstruction.md +11 -0
  123. package/docs/StakingsApi.md +13 -13
  124. package/docs/SwapsApi.md +2 -2
  125. package/docs/TSSRequestWebhookEventData.md +5 -1
  126. package/docs/TokenInfo.md +1 -1
  127. package/docs/TokensEventData.md +33 -0
  128. package/docs/Transaction.md +2 -0
  129. package/docs/TransactionApprovalDetail.md +3 -0
  130. package/docs/TransactionCoboCategory.md +24 -0
  131. package/docs/TransactionCustodialWeb3WalletSource.md +13 -0
  132. package/docs/TransactionDestination.md +3 -0
  133. package/docs/TransactionDestinationType.md +2 -0
  134. package/docs/TransactionDetail.md +2 -0
  135. package/docs/TransactionDetails.md +2 -0
  136. package/docs/TransactionFee.md +1 -1
  137. package/docs/TransactionFixedFee.md +1 -1
  138. package/docs/TransactionFuelingInfo.md +10 -0
  139. package/docs/TransactionMessageSignEIP712Destination.md +2 -0
  140. package/docs/TransactionProcessType.md +12 -0
  141. package/docs/TransactionRequestFee.md +2 -2
  142. package/docs/TransactionRequestFixedFee.md +1 -1
  143. package/docs/TransactionRequestUtxoFee.md +2 -2
  144. package/docs/TransactionSelectedUtxo.md +2 -0
  145. package/docs/TransactionSolContractAccount.md +11 -0
  146. package/docs/TransactionSolContractDestination.md +10 -0
  147. package/docs/TransactionSolContractInstruction.md +11 -0
  148. package/docs/TransactionSourceType.md +2 -0
  149. package/docs/TransactionTokeApproval.md +1 -1
  150. package/docs/TransactionUserApprovalDetail.md +2 -0
  151. package/docs/TransactionWebhookEventData.md +7 -1
  152. package/docs/TransactionsApi.md +74 -17
  153. package/docs/TransferParams.md +1 -14
  154. package/docs/TravelRuleApi.md +4 -4
  155. package/docs/WalletInfoEventData.md +5 -1
  156. package/docs/WalletsApi.md +73 -16
  157. package/docs/WalletsExchangeWalletApi.md +1 -1
  158. package/docs/WalletsMPCWalletsApi.md +19 -19
  159. package/docs/WalletsSmartContractWalletsApi.md +1 -1
  160. package/docs/WebhookEventData.md +9 -1
  161. package/docs/WebhookEventDataType.md +5 -1
  162. package/docs/WebhookEventType.md +12 -0
  163. 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.10.0
18
+ - Package version: 1.12.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 token balances by fee station
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
@@ -125,6 +129,7 @@ Class | Method | HTTP request | Description
125
129
  *CoboWaas2.TransactionsApi* | [**estimateFee**](docs/TransactionsApi.md#estimateFee) | **POST** /transactions/estimate_fee | Estimate transaction fee
126
130
  *CoboWaas2.TransactionsApi* | [**getTransactionApprovalDetail**](docs/TransactionsApi.md#getTransactionApprovalDetail) | **GET** /transactions/{transaction_id}/approval_detail | Get transaction approval details
127
131
  *CoboWaas2.TransactionsApi* | [**getTransactionById**](docs/TransactionsApi.md#getTransactionById) | **GET** /transactions/{transaction_id} | Get transaction information
132
+ *CoboWaas2.TransactionsApi* | [**listTransactionApprovalDetails**](docs/TransactionsApi.md#listTransactionApprovalDetails) | **GET** /transactions/approval_details | List transaction approval details
128
133
  *CoboWaas2.TransactionsApi* | [**listTransactions**](docs/TransactionsApi.md#listTransactions) | **GET** /transactions | List all transactions
129
134
  *CoboWaas2.TransactionsApi* | [**resendTransactionById**](docs/TransactionsApi.md#resendTransactionById) | **POST** /transactions/{transaction_id}/resend | Resend transaction
130
135
  *CoboWaas2.TransactionsApi* | [**signAndBroadcastTransactionById**](docs/TransactionsApi.md#signAndBroadcastTransactionById) | **POST** /transactions/{transaction_id}/sign_and_broadcast | Sign and broadcast transaction
@@ -154,6 +159,7 @@ Class | Method | HTTP request | Description
154
159
  *CoboWaas2.WalletsApi* | [**listUtxos**](docs/WalletsApi.md#listUtxos) | **GET** /wallets/{wallet_id}/utxos | List UTXOs
155
160
  *CoboWaas2.WalletsApi* | [**listWallets**](docs/WalletsApi.md#listWallets) | **GET** /wallets | List all wallets
156
161
  *CoboWaas2.WalletsApi* | [**lockUtxos**](docs/WalletsApi.md#lockUtxos) | **POST** /wallets/{wallet_id}/utxos/lock | Lock UTXOs
162
+ *CoboWaas2.WalletsApi* | [**refreshAddressBalancesByToken**](docs/WalletsApi.md#refreshAddressBalancesByToken) | **PUT** /wallets/{wallet_id}/tokens/{token_id}/refresh_address_balances | refresh address balances by token
157
163
  *CoboWaas2.WalletsApi* | [**unlockUtxos**](docs/WalletsApi.md#unlockUtxos) | **POST** /wallets/{wallet_id}/utxos/unlock | Unlock UTXOs
158
164
  *CoboWaas2.WalletsApi* | [**updateWalletById**](docs/WalletsApi.md#updateWalletById) | **PUT** /wallets/{wallet_id} | Update wallet
159
165
  *CoboWaas2.WalletsExchangeWalletApi* | [**listAssetBalancesForExchangeWallet**](docs/WalletsExchangeWalletApi.md#listAssetBalancesForExchangeWallet) | **GET** /wallets/{wallet_id}/exchanges/assets | List asset balances
@@ -230,6 +236,7 @@ Class | Method | HTTP request | Description
230
236
  - [CoboWaas2.BroadcastSignedTransactionsRequest](docs/BroadcastSignedTransactionsRequest.md)
231
237
  - [CoboWaas2.CallbackMessage](docs/CallbackMessage.md)
232
238
  - [CoboWaas2.ChainInfo](docs/ChainInfo.md)
239
+ - [CoboWaas2.ChainsEventData](docs/ChainsEventData.md)
233
240
  - [CoboWaas2.ChangeGuardPubkey200Response](docs/ChangeGuardPubkey200Response.md)
234
241
  - [CoboWaas2.CheckAddressChainsValidity200ResponseInner](docs/CheckAddressChainsValidity200ResponseInner.md)
235
242
  - [CoboWaas2.CheckAddressValidity200Response](docs/CheckAddressValidity200Response.md)
@@ -283,6 +290,9 @@ Class | Method | HTTP request | Description
283
290
  - [CoboWaas2.CurveType](docs/CurveType.md)
284
291
  - [CoboWaas2.CustodialTransferSource](docs/CustodialTransferSource.md)
285
292
  - [CoboWaas2.CustodialWalletInfo](docs/CustodialWalletInfo.md)
293
+ - [CoboWaas2.CustodialWeb3ContractCallSource](docs/CustodialWeb3ContractCallSource.md)
294
+ - [CoboWaas2.CustodialWeb3MessageSignSource](docs/CustodialWeb3MessageSignSource.md)
295
+ - [CoboWaas2.CustodialWeb3TransferSource](docs/CustodialWeb3TransferSource.md)
286
296
  - [CoboWaas2.DeleteGuardPubkey201Response](docs/DeleteGuardPubkey201Response.md)
287
297
  - [CoboWaas2.DeleteKeyShareHolderGroupById201Response](docs/DeleteKeyShareHolderGroupById201Response.md)
288
298
  - [CoboWaas2.DeleteWalletById201Response](docs/DeleteWalletById201Response.md)
@@ -328,6 +338,8 @@ Class | Method | HTTP request | Description
328
338
  - [CoboWaas2.FeeAmount](docs/FeeAmount.md)
329
339
  - [CoboWaas2.FeeGasLimit](docs/FeeGasLimit.md)
330
340
  - [CoboWaas2.FeeRate](docs/FeeRate.md)
341
+ - [CoboWaas2.FeeReserved](docs/FeeReserved.md)
342
+ - [CoboWaas2.FeeStationTransactionType](docs/FeeStationTransactionType.md)
331
343
  - [CoboWaas2.FeeType](docs/FeeType.md)
332
344
  - [CoboWaas2.FixedFeeRate](docs/FixedFeeRate.md)
333
345
  - [CoboWaas2.GetApiKeyInfo200Response](docs/GetApiKeyInfo200Response.md)
@@ -368,6 +380,7 @@ Class | Method | HTTP request | Description
368
380
  - [CoboWaas2.ListSupportedTokens200Response](docs/ListSupportedTokens200Response.md)
369
381
  - [CoboWaas2.ListSwapActivities200Response](docs/ListSwapActivities200Response.md)
370
382
  - [CoboWaas2.ListTokenBalancesForAddress200Response](docs/ListTokenBalancesForAddress200Response.md)
383
+ - [CoboWaas2.ListTransactionApprovalDetails200Response](docs/ListTransactionApprovalDetails200Response.md)
371
384
  - [CoboWaas2.ListTransactions200Response](docs/ListTransactions200Response.md)
372
385
  - [CoboWaas2.ListTssRequests200Response](docs/ListTssRequests200Response.md)
373
386
  - [CoboWaas2.ListUtxos200Response](docs/ListUtxos200Response.md)
@@ -406,6 +419,8 @@ Class | Method | HTTP request | Description
406
419
  - [CoboWaas2.QueryGuardPubkey200Response](docs/QueryGuardPubkey200Response.md)
407
420
  - [CoboWaas2.QueryGuardPubkey200ResponseAddressesInner](docs/QueryGuardPubkey200ResponseAddressesInner.md)
408
421
  - [CoboWaas2.RawMessageSignDestination](docs/RawMessageSignDestination.md)
422
+ - [CoboWaas2.RefreshAddressBalancesByToken200Response](docs/RefreshAddressBalancesByToken200Response.md)
423
+ - [CoboWaas2.RefreshAddressBalancesByTokenRequest](docs/RefreshAddressBalancesByTokenRequest.md)
409
424
  - [CoboWaas2.RefreshToken2XXResponse](docs/RefreshToken2XXResponse.md)
410
425
  - [CoboWaas2.RefreshTokenRequest](docs/RefreshTokenRequest.md)
411
426
  - [CoboWaas2.ReplaceType](docs/ReplaceType.md)
@@ -415,6 +430,10 @@ Class | Method | HTTP request | Description
415
430
  - [CoboWaas2.RootPubkey](docs/RootPubkey.md)
416
431
  - [CoboWaas2.SafeContractCallSource](docs/SafeContractCallSource.md)
417
432
  - [CoboWaas2.SafeTransferSource](docs/SafeTransferSource.md)
433
+ - [CoboWaas2.SafeTxDecodedData](docs/SafeTxDecodedData.md)
434
+ - [CoboWaas2.SafeTxDecodedDataParameters](docs/SafeTxDecodedDataParameters.md)
435
+ - [CoboWaas2.SafeTxExtraData](docs/SafeTxExtraData.md)
436
+ - [CoboWaas2.SafeTxSubTransaction](docs/SafeTxSubTransaction.md)
418
437
  - [CoboWaas2.SafeWallet](docs/SafeWallet.md)
419
438
  - [CoboWaas2.SafeWalletDelegates](docs/SafeWalletDelegates.md)
420
439
  - [CoboWaas2.SafeWalletDelegatesContractCall](docs/SafeWalletDelegatesContractCall.md)
@@ -426,6 +445,9 @@ Class | Method | HTTP request | Description
426
445
  - [CoboWaas2.SmartContractWalletInfo](docs/SmartContractWalletInfo.md)
427
446
  - [CoboWaas2.SmartContractWalletOperationType](docs/SmartContractWalletOperationType.md)
428
447
  - [CoboWaas2.SmartContractWalletType](docs/SmartContractWalletType.md)
448
+ - [CoboWaas2.SolContractCallAccount](docs/SolContractCallAccount.md)
449
+ - [CoboWaas2.SolContractCallDestination](docs/SolContractCallDestination.md)
450
+ - [CoboWaas2.SolContractCallInstruction](docs/SolContractCallInstruction.md)
429
451
  - [CoboWaas2.SourceGroup](docs/SourceGroup.md)
430
452
  - [CoboWaas2.StakeSourceType](docs/StakeSourceType.md)
431
453
  - [CoboWaas2.StakingPoolId](docs/StakingPoolId.md)
@@ -446,12 +468,15 @@ Class | Method | HTTP request | Description
446
468
  - [CoboWaas2.TokenAssetModelType](docs/TokenAssetModelType.md)
447
469
  - [CoboWaas2.TokenBalance](docs/TokenBalance.md)
448
470
  - [CoboWaas2.TokenInfo](docs/TokenInfo.md)
471
+ - [CoboWaas2.TokensEventData](docs/TokensEventData.md)
449
472
  - [CoboWaas2.Transaction](docs/Transaction.md)
450
473
  - [CoboWaas2.TransactionApprovalDetail](docs/TransactionApprovalDetail.md)
451
474
  - [CoboWaas2.TransactionApprovalResult](docs/TransactionApprovalResult.md)
452
475
  - [CoboWaas2.TransactionApprover](docs/TransactionApprover.md)
453
476
  - [CoboWaas2.TransactionBlockInfo](docs/TransactionBlockInfo.md)
477
+ - [CoboWaas2.TransactionCoboCategory](docs/TransactionCoboCategory.md)
454
478
  - [CoboWaas2.TransactionCustodialAssetWalletSource](docs/TransactionCustodialAssetWalletSource.md)
479
+ - [CoboWaas2.TransactionCustodialWeb3WalletSource](docs/TransactionCustodialWeb3WalletSource.md)
455
480
  - [CoboWaas2.TransactionDepositFromAddressSource](docs/TransactionDepositFromAddressSource.md)
456
481
  - [CoboWaas2.TransactionDepositFromLoopSource](docs/TransactionDepositFromLoopSource.md)
457
482
  - [CoboWaas2.TransactionDepositFromWalletSource](docs/TransactionDepositFromWalletSource.md)
@@ -471,10 +496,12 @@ Class | Method | HTTP request | Description
471
496
  - [CoboWaas2.TransactionFee](docs/TransactionFee.md)
472
497
  - [CoboWaas2.TransactionFeeStationWalletSource](docs/TransactionFeeStationWalletSource.md)
473
498
  - [CoboWaas2.TransactionFixedFee](docs/TransactionFixedFee.md)
499
+ - [CoboWaas2.TransactionFuelingInfo](docs/TransactionFuelingInfo.md)
474
500
  - [CoboWaas2.TransactionInitiatorType](docs/TransactionInitiatorType.md)
475
501
  - [CoboWaas2.TransactionMPCWalletSource](docs/TransactionMPCWalletSource.md)
476
502
  - [CoboWaas2.TransactionMessageSignEIP191Destination](docs/TransactionMessageSignEIP191Destination.md)
477
503
  - [CoboWaas2.TransactionMessageSignEIP712Destination](docs/TransactionMessageSignEIP712Destination.md)
504
+ - [CoboWaas2.TransactionProcessType](docs/TransactionProcessType.md)
478
505
  - [CoboWaas2.TransactionRawMessageSignDestination](docs/TransactionRawMessageSignDestination.md)
479
506
  - [CoboWaas2.TransactionRawTxInfo](docs/TransactionRawTxInfo.md)
480
507
  - [CoboWaas2.TransactionRbf](docs/TransactionRbf.md)
@@ -493,6 +520,9 @@ Class | Method | HTTP request | Description
493
520
  - [CoboWaas2.TransactionSignatureResult](docs/TransactionSignatureResult.md)
494
521
  - [CoboWaas2.TransactionSigner](docs/TransactionSigner.md)
495
522
  - [CoboWaas2.TransactionSmartContractSafeWalletSource](docs/TransactionSmartContractSafeWalletSource.md)
523
+ - [CoboWaas2.TransactionSolContractAccount](docs/TransactionSolContractAccount.md)
524
+ - [CoboWaas2.TransactionSolContractDestination](docs/TransactionSolContractDestination.md)
525
+ - [CoboWaas2.TransactionSolContractInstruction](docs/TransactionSolContractInstruction.md)
496
526
  - [CoboWaas2.TransactionSource](docs/TransactionSource.md)
497
527
  - [CoboWaas2.TransactionSourceType](docs/TransactionSourceType.md)
498
528
  - [CoboWaas2.TransactionStatus](docs/TransactionStatus.md)
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.10.0'
105
+ 'User-Agent': 'cobo-waas2-js-sdk/1.12.0'
106
106
  };
107
107
 
108
108
  /**
@@ -75,7 +75,7 @@ var AddressBooksApi = exports["default"] = /*#__PURE__*/function () {
75
75
  };
76
76
  var headerParams = {};
77
77
  var formParams = {};
78
- var authNames = ['OAuth2'];
78
+ var authNames = ['OAuth2', 'CoboAuth'];
79
79
  var contentTypes = [];
80
80
  var accepts = ['application/json'];
81
81
  var returnType = _ListAddressBooks200Response["default"];
@@ -58,7 +58,7 @@ var DevelopersApi = exports["default"] = /*#__PURE__*/function () {
58
58
  var queryParams = {};
59
59
  var headerParams = {};
60
60
  var formParams = {};
61
- var authNames = ['OAuth2'];
61
+ var authNames = ['OAuth2', 'CoboAuth'];
62
62
  var contentTypes = [];
63
63
  var accepts = ['application/json'];
64
64
  var returnType = _GetApiKeyInfo200Response["default"];
@@ -113,7 +113,7 @@ var DevelopersApi = exports["default"] = /*#__PURE__*/function () {
113
113
  };
114
114
  var headerParams = {};
115
115
  var formParams = {};
116
- var authNames = ['OAuth2'];
116
+ var authNames = ['OAuth2', 'CoboAuth'];
117
117
  var contentTypes = [];
118
118
  var accepts = ['application/json'];
119
119
  var returnType = _ListCallbackMessages200Response["default"];
@@ -165,7 +165,7 @@ var DevelopersApi = exports["default"] = /*#__PURE__*/function () {
165
165
  var queryParams = {};
166
166
  var headerParams = {};
167
167
  var formParams = {};
168
- var authNames = ['OAuth2'];
168
+ var authNames = ['OAuth2', 'CoboAuth'];
169
169
  var contentTypes = [];
170
170
  var accepts = ['application/json'];
171
171
  var returnType = _RetryCallbackMessage201Response["default"];
@@ -72,7 +72,7 @@ var DevelopersWebhooksApi = exports["default"] = /*#__PURE__*/function () {
72
72
  var queryParams = {};
73
73
  var headerParams = {};
74
74
  var formParams = {};
75
- var authNames = ['OAuth2'];
75
+ var authNames = ['OAuth2', 'CoboAuth'];
76
76
  var contentTypes = ['application/json'];
77
77
  var accepts = ['application/json'];
78
78
  var returnType = _WebhookEndpoint["default"];
@@ -117,7 +117,7 @@ var DevelopersWebhooksApi = exports["default"] = /*#__PURE__*/function () {
117
117
  var queryParams = {};
118
118
  var headerParams = {};
119
119
  var formParams = {};
120
- var authNames = ['OAuth2'];
120
+ var authNames = ['OAuth2', 'CoboAuth'];
121
121
  var contentTypes = [];
122
122
  var accepts = ['application/json'];
123
123
  var returnType = _WebhookEndpoint["default"];
@@ -167,7 +167,7 @@ var DevelopersWebhooksApi = exports["default"] = /*#__PURE__*/function () {
167
167
  var queryParams = {};
168
168
  var headerParams = {};
169
169
  var formParams = {};
170
- var authNames = ['OAuth2'];
170
+ var authNames = ['OAuth2', 'CoboAuth'];
171
171
  var contentTypes = [];
172
172
  var accepts = ['application/json'];
173
173
  var returnType = _WebhookEvent["default"];
@@ -218,7 +218,7 @@ var DevelopersWebhooksApi = exports["default"] = /*#__PURE__*/function () {
218
218
  };
219
219
  var headerParams = {};
220
220
  var formParams = {};
221
- var authNames = ['OAuth2'];
221
+ var authNames = ['OAuth2', 'CoboAuth'];
222
222
  var contentTypes = [];
223
223
  var accepts = ['application/json'];
224
224
  var returnType = _ListWebhookEndpoints200Response["default"];
@@ -318,7 +318,7 @@ var DevelopersWebhooksApi = exports["default"] = /*#__PURE__*/function () {
318
318
  };
319
319
  var headerParams = {};
320
320
  var formParams = {};
321
- var authNames = ['OAuth2'];
321
+ var authNames = ['OAuth2', 'CoboAuth'];
322
322
  var contentTypes = [];
323
323
  var accepts = ['application/json'];
324
324
  var returnType = _ListWebhookEventLogs200Response["default"];
@@ -380,7 +380,7 @@ var DevelopersWebhooksApi = exports["default"] = /*#__PURE__*/function () {
380
380
  };
381
381
  var headerParams = {};
382
382
  var formParams = {};
383
- var authNames = ['OAuth2'];
383
+ var authNames = ['OAuth2', 'CoboAuth'];
384
384
  var contentTypes = [];
385
385
  var accepts = ['application/json'];
386
386
  var returnType = _ListWebhookEvents200Response["default"];
@@ -436,7 +436,7 @@ var DevelopersWebhooksApi = exports["default"] = /*#__PURE__*/function () {
436
436
  var queryParams = {};
437
437
  var headerParams = {};
438
438
  var formParams = {};
439
- var authNames = ['OAuth2'];
439
+ var authNames = ['OAuth2', 'CoboAuth'];
440
440
  var contentTypes = [];
441
441
  var accepts = ['application/json'];
442
442
  var returnType = _RetryWebhookEventById201Response["default"];
@@ -525,7 +525,7 @@ var DevelopersWebhooksApi = exports["default"] = /*#__PURE__*/function () {
525
525
  var queryParams = {};
526
526
  var headerParams = {};
527
527
  var formParams = {};
528
- var authNames = ['OAuth2'];
528
+ var authNames = ['OAuth2', 'CoboAuth'];
529
529
  var contentTypes = ['application/json'];
530
530
  var accepts = ['application/json'];
531
531
  var returnType = _WebhookEndpoint["default"];
@@ -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 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 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 a specified wallet.
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 a specified wallet.
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 the transactions under your organization. You can filter the results by request ID, Cobo ID, transaction ID, transaction hash, type, status, and timestamps. You can also paginate and sort your query results.
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, 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 the transactions under your organization. You can filter the results by request ID, Cobo ID, transaction ID, transaction hash, type, status, and timestamps. You can also paginate and sort your query results.
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, 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 token balances by fee station
232
+ * The operation retrieves a list of token balances within a specified wallet. <Note>This operation is not applicable to Exchange Wallets.</Note>
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 token balances by fee station
266
+ * The operation retrieves a list of token balances within a specified wallet. <Note>This operation is not applicable to Exchange Wallets.</Note>
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
+ }();