@skip-go/client 1.6.0-alpha.3 → 1.6.0-alpha.4

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 (158) hide show
  1. package/dist/cjs/api/getAssets.cjs +16 -0
  2. package/dist/cjs/api/getAssetsBetweenChains.cjs +12 -0
  3. package/dist/cjs/api/getBridges.cjs +12 -0
  4. package/dist/cjs/api/getChains.cjs +12 -0
  5. package/dist/cjs/api/getVenues.cjs +12 -0
  6. package/dist/cjs/api/postAssetsFromSource.cjs +13 -0
  7. package/dist/cjs/api/postBalances.cjs +12 -0
  8. package/dist/cjs/api/postIbcOriginAssets.cjs +12 -0
  9. package/dist/cjs/api/postMessages.cjs +12 -0
  10. package/dist/cjs/api/postMessagesDirect.cjs +12 -0
  11. package/dist/cjs/api/postRecommendAssets.cjs +12 -0
  12. package/dist/cjs/api/postRoute.cjs +12 -0
  13. package/dist/cjs/api/postSubmitTransaction.cjs +12 -0
  14. package/dist/cjs/api/postTrackTransaction.cjs +12 -0
  15. package/dist/cjs/api/postTransactionStatus.cjs +12 -0
  16. package/dist/cjs/chunk-25TA7Z7R.cjs +460 -0
  17. package/dist/cjs/chunk-2QPPD3BB.cjs +210 -0
  18. package/dist/cjs/chunk-2SA3OAIJ.cjs +18 -0
  19. package/dist/cjs/chunk-3KO2DHFX.cjs +1495 -0
  20. package/dist/cjs/chunk-477CU2G2.cjs +280 -0
  21. package/dist/cjs/chunk-4BWE7SOV.cjs +68 -0
  22. package/dist/cjs/chunk-4GHUZDDP.cjs +16 -0
  23. package/dist/cjs/chunk-4ZIVDKQN.cjs +387 -0
  24. package/dist/cjs/chunk-6T4SBY5H.cjs +214 -0
  25. package/dist/cjs/chunk-A3UNNRKD.cjs +574 -0
  26. package/dist/cjs/chunk-A5S6SIYN.cjs +12 -0
  27. package/dist/cjs/chunk-ASDMDYTC.cjs +11 -0
  28. package/dist/cjs/chunk-ATW6UNT5.cjs +136 -0
  29. package/dist/cjs/chunk-AUTOIM57.cjs +22 -0
  30. package/dist/cjs/chunk-AVWWCQ5P.cjs +2264 -0
  31. package/dist/cjs/chunk-CIZTNJ3K.cjs +24 -0
  32. package/dist/cjs/chunk-CK6CQWQU.cjs +49 -0
  33. package/dist/cjs/chunk-EAZQ2ECA.cjs +185 -0
  34. package/dist/cjs/chunk-F3EB2AQG.cjs +28 -0
  35. package/dist/cjs/chunk-FCTBCHOT.cjs +12 -0
  36. package/dist/cjs/chunk-IJIBMN2F.cjs +12 -0
  37. package/dist/cjs/chunk-IUMMXFGP.cjs +189 -0
  38. package/dist/cjs/chunk-JRXPJ45U.cjs +12 -0
  39. package/dist/cjs/chunk-LJV45UGL.cjs +582 -0
  40. package/dist/cjs/chunk-MUJBB64F.cjs +291 -0
  41. package/dist/cjs/chunk-NCFH5MGF.cjs +39 -0
  42. package/dist/cjs/chunk-NM4PISTQ.cjs +3359 -0
  43. package/dist/cjs/chunk-OJISEAMX.cjs +13 -0
  44. package/dist/cjs/chunk-OVKHTOBP.cjs +99 -0
  45. package/dist/cjs/chunk-PDNKS5R2.cjs +13 -0
  46. package/dist/cjs/chunk-TELXDMYL.cjs +55 -0
  47. package/dist/cjs/chunk-UXW4XVHF.cjs +15 -0
  48. package/dist/cjs/index.cjs +349 -0
  49. package/dist/cjs/public-functions/executeMultipleRoutes.cjs +27 -0
  50. package/dist/cjs/public-functions/executeRoute.cjs +27 -0
  51. package/dist/cjs/public-functions/getCosmosGasAmountForMessage.cjs +16 -0
  52. package/dist/cjs/public-functions/getEvmGasAmountForMessage.cjs +11 -0
  53. package/dist/cjs/public-functions/getFeeInfoForChain.cjs +14 -0
  54. package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +15 -0
  55. package/dist/cjs/public-functions/getRouteWithGasOnReceive.cjs +41 -0
  56. package/dist/cjs/public-functions/getSigningStargateClient.cjs +15 -0
  57. package/dist/cjs/public-functions/setApiOptions.cjs +12 -0
  58. package/dist/cjs/public-functions/setClientOptions.cjs +16 -0
  59. package/dist/cjs/public-functions/subscribeToRouteStatus.cjs +26 -0
  60. package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +18 -0
  61. package/dist/cjs/public-functions/waitForTransaction.cjs +18 -0
  62. package/dist/esm/api/getAssets.d.ts +19 -0
  63. package/dist/esm/api/getAssets.js +3 -0
  64. package/dist/esm/api/getAssetsBetweenChains.d.ts +56 -0
  65. package/dist/esm/api/getAssetsBetweenChains.js +3 -0
  66. package/dist/esm/api/getBridges.d.ts +55 -0
  67. package/dist/esm/api/getBridges.js +3 -0
  68. package/dist/esm/api/getChains.d.ts +41 -0
  69. package/dist/esm/api/getChains.js +3 -0
  70. package/dist/esm/api/getVenues.d.ts +13 -0
  71. package/dist/esm/api/getVenues.js +3 -0
  72. package/dist/esm/api/postAssetsFromSource.d.ts +22 -0
  73. package/dist/esm/api/postAssetsFromSource.js +4 -0
  74. package/dist/esm/api/postBalances.d.ts +35 -0
  75. package/dist/esm/api/postBalances.js +3 -0
  76. package/dist/esm/api/postIbcOriginAssets.d.ts +32 -0
  77. package/dist/esm/api/postIbcOriginAssets.js +3 -0
  78. package/dist/esm/api/postMessages.d.ts +101 -0
  79. package/dist/esm/api/postMessages.js +3 -0
  80. package/dist/esm/api/postMessagesDirect.d.ts +640 -0
  81. package/dist/esm/api/postMessagesDirect.js +3 -0
  82. package/dist/esm/api/postRecommendAssets.d.ts +40 -0
  83. package/dist/esm/api/postRecommendAssets.js +3 -0
  84. package/dist/esm/api/postRoute.d.ts +530 -0
  85. package/dist/esm/api/postRoute.js +3 -0
  86. package/dist/esm/api/postSubmitTransaction.d.ts +17 -0
  87. package/dist/esm/api/postSubmitTransaction.js +3 -0
  88. package/dist/esm/api/postTrackTransaction.d.ts +12 -0
  89. package/dist/esm/api/postTrackTransaction.js +3 -0
  90. package/dist/esm/api/postTransactionStatus.d.ts +639 -0
  91. package/dist/esm/api/postTransactionStatus.js +3 -0
  92. package/dist/esm/apiState-1VvikVK-.d.ts +8 -0
  93. package/dist/esm/callbacks-DdC6QMlE.d.ts +158 -0
  94. package/dist/esm/chunk-3DIX6KRJ.js +566 -0
  95. package/dist/esm/chunk-3JHLVPRG.js +10 -0
  96. package/dist/esm/chunk-5WYMRZIO.js +97 -0
  97. package/dist/esm/chunk-A5NZMSTI.js +10 -0
  98. package/dist/esm/chunk-BU5RCZQH.js +187 -0
  99. package/dist/esm/chunk-CGJRRAFS.js +22 -0
  100. package/dist/esm/chunk-DMJMN4J3.js +379 -0
  101. package/dist/esm/chunk-E4NRDAVO.js +65 -0
  102. package/dist/esm/chunk-ETBJVFQP.js +10 -0
  103. package/dist/esm/chunk-F2LQB2DP.js +3323 -0
  104. package/dist/esm/chunk-F66EKL3W.js +203 -0
  105. package/dist/esm/chunk-G665WTT3.js +212 -0
  106. package/dist/esm/chunk-GPEO2I4P.js +272 -0
  107. package/dist/esm/chunk-GV2QOWB4.js +26 -0
  108. package/dist/esm/chunk-GZJLX2CP.js +2258 -0
  109. package/dist/esm/chunk-HNU2Y3JI.js +13 -0
  110. package/dist/esm/chunk-IZUHXTBP.js +53 -0
  111. package/dist/esm/chunk-J24LYWJE.js +130 -0
  112. package/dist/esm/chunk-KZKAL5ZN.js +16 -0
  113. package/dist/esm/chunk-N4PTRCNT.js +11 -0
  114. package/dist/esm/chunk-NUHMTWHP.js +180 -0
  115. package/dist/esm/chunk-P36PE4CR.js +37 -0
  116. package/dist/esm/chunk-QYXGDTUU.js +47 -0
  117. package/dist/esm/chunk-RH7PDDI5.js +433 -0
  118. package/dist/esm/chunk-RTDD7HZ3.js +275 -0
  119. package/dist/esm/chunk-SXBG57J3.js +20 -0
  120. package/dist/esm/chunk-TGTOO2ZQ.js +14 -0
  121. package/dist/esm/chunk-UHCKOKBM.js +9 -0
  122. package/dist/esm/chunk-ULUX2CVU.js +557 -0
  123. package/dist/esm/chunk-UN46DUOV.js +11 -0
  124. package/dist/esm/chunk-XIVAEU6S.js +1492 -0
  125. package/dist/esm/chunk-XNU3TKKM.js +10 -0
  126. package/dist/esm/client-types-D03Tellv.d.ts +114 -0
  127. package/dist/esm/generateApi-Bv02Xt5y.d.ts +56 -0
  128. package/dist/esm/index.d.ts +1859 -0
  129. package/dist/esm/index.js +32 -0
  130. package/dist/esm/public-functions/executeMultipleRoutes.d.ts +80 -0
  131. package/dist/esm/public-functions/executeMultipleRoutes.js +18 -0
  132. package/dist/esm/public-functions/executeRoute.d.ts +12 -0
  133. package/dist/esm/public-functions/executeRoute.js +18 -0
  134. package/dist/esm/public-functions/getCosmosGasAmountForMessage.d.ts +8 -0
  135. package/dist/esm/public-functions/getCosmosGasAmountForMessage.js +3 -0
  136. package/dist/esm/public-functions/getEvmGasAmountForMessage.d.ts +14 -0
  137. package/dist/esm/public-functions/getEvmGasAmountForMessage.js +2 -0
  138. package/dist/esm/public-functions/getFeeInfoForChain.d.ts +9 -0
  139. package/dist/esm/public-functions/getFeeInfoForChain.js +5 -0
  140. package/dist/esm/public-functions/getRecommendedGasPrice.d.ts +9 -0
  141. package/dist/esm/public-functions/getRecommendedGasPrice.js +6 -0
  142. package/dist/esm/public-functions/getRouteWithGasOnReceive.d.ts +20 -0
  143. package/dist/esm/public-functions/getRouteWithGasOnReceive.js +32 -0
  144. package/dist/esm/public-functions/getSigningStargateClient.d.ts +13 -0
  145. package/dist/esm/public-functions/getSigningStargateClient.js +6 -0
  146. package/dist/esm/public-functions/setApiOptions.d.ts +9 -0
  147. package/dist/esm/public-functions/setApiOptions.js +3 -0
  148. package/dist/esm/public-functions/setClientOptions.d.ts +11 -0
  149. package/dist/esm/public-functions/setClientOptions.js +7 -0
  150. package/dist/esm/public-functions/subscribeToRouteStatus.d.ts +12 -0
  151. package/dist/esm/public-functions/subscribeToRouteStatus.js +5 -0
  152. package/dist/esm/public-functions/validateCosmosGasBalance.d.ts +44 -0
  153. package/dist/esm/public-functions/validateCosmosGasBalance.js +9 -0
  154. package/dist/esm/public-functions/waitForTransaction.d.ts +1279 -0
  155. package/dist/esm/public-functions/waitForTransaction.js +5 -0
  156. package/dist/esm/setClientOptions-CTwe8YVX.d.ts +76 -0
  157. package/dist/esm/swaggerTypes-CzGbnX_b.d.ts +2067 -0
  158. package/package.json +1 -1
@@ -0,0 +1,1859 @@
1
+ export { j as AcknowledgementErrorDetails, k as Affiliate, bK as Api, bG as ApiConfig, l as ApiError, m as Asset, n as AssetBetweenChains, o as AssetRecommendation, bc as AssetRecommendationsRequest, bv as AssetRecommendationsResponse, bi as AssetsBetweenChainsRequest, b9 as AssetsFromSourceRequest, br as AssetsFromSourceResponse, bp as AssetsRequest, bq as AssetsResponse, i as AutopilotAction, p as AutopilotMsg, q as AutopilotMsgWrapper, r as AxelarTransfer, s as AxelarTransferInfo, h as AxelarTransferState, A as AxelarTransferType, t as AxelarTransferWrapper, V as BalanceRequestChainEntry, X as BalanceResponseChainEntry, W as BalanceResponseDenomEntry, b8 as BalancesRequest, bl as BalancesResponse, Y as BankSend, Z as BankSendWrapper, _ as Bridge, B as BridgeType, bm as BridgesResponse, v as CCTPTransfer, w as CCTPTransferInfo, g as CCTPTransferState, x as CCTPTransferTxs, z as CCTPTransferV2, D as CCTPTransferV2Wrapper, y as CCTPTransferWrapper, $ as Chain, a0 as ChainAffiliates, ay as ChainTransaction, e as ChainType, bj as ChainsRequest, bk as ChainsResponse, bI as ContentType, a1 as ContractCallWithTokenError, C as ContractCallWithTokenErrorType, a2 as ContractCallWithTokenTxs, a3 as CosmWasmContractMsg, a4 as CosmWasmContractMsgWrapper, b5 as CosmosModuleSupport, a8 as CosmosMsg, a9 as CosmosTx, aa as CosmosTxWrapper, a5 as Erc20Approval, a7 as Error, a6 as ErrorDetail, a_ as EurekaTransfer, a$ as EurekaTransferInfo, b0 as EurekaTransferWrapper, ab as EvmSwap, ac as EvmSwapWrapper, ad as EvmTx, ae as EvmTxWrapper, b7 as Fee, ah as FeeAsset, F as FeeBehavior, a as FeeType, bE as FullRequestParams, bB as FungibleAssetsBetweenChainsCreateResponse, aj as GRPCStatusCode, ai as GoFastFee, M as GoFastTransfer, Q as GoFastTransferInfo, G as GoFastTransferState, N as GoFastTransferTxs, U as GoFastTransferWrapper, bJ as HttpClient, bH as HttpResponse, ak as HyperlaneTransfer, al as HyperlaneTransferInfo, H as HyperlaneTransferState, am as HyperlaneTransferTransactions, an as HyperlaneTransferWrapper, ao as IBCTransferInfo, b6 as IbcCapabilities, bh as IbcOriginAssetsRequest, bA as IbcOriginAssetsResponse, b1 as LayerZeroTransfer, b2 as LayerZeroTransferInfo, L as LayerZeroTransferState, av as LayerZeroTransferTransactions, b3 as LayerZeroTransferWrapper, ap as Msg, bb as MsgsDirectRequest, bu as MsgsDirectResponse, ba as MsgsRequest, bt as MsgsResponse, ar as MultiChainMsg, as as MultiChainMsgWrapper, aR as OPInitTransfer, aT as OPInitTransferInfo, O as OPInitTransferState, aU as OPInitTransferTxs, aS as OPInitTransferWrapper, at as Operation, au as OptionalAsset, aw as Packet, ax as PacketError, P as PacketErrorType, az as PostHandler, bC as QueryParamsType, d as Reason, b4 as RecommendationRequest, bF as RequestParams, bD as ResponseFormat, aA as Route, R as RoutePriceWarningType, bs as RouteResponse, aB as SendTokenError, c as SendTokenErrorType, aC as SendTokenTxs, u as SmartRelayFeeQuote, aL as SmartSwapExactCoinIn, aN as SmartSwapInWrapper, aM as SmartSwapOptions, E as StargateTransfer, J as StargateTransferInfo, f as StargateTransferState, I as StargateTransferTxs, K as StargateTransferWrapper, aD as StatusError, S as StatusErrorType, by as StatusRequest, bz as StatusResponse, bg as StatusTxResponse, bw as SubmitResponse, bd as SubmitTxRequest, af as SvmTx, ag as SvmTxWrapper, aE as Swap, aF as SwapExactCoinIn, aG as SwapExactCoinOut, aH as SwapInWrapper, aI as SwapOperation, aJ as SwapOutWrapper, aK as SwapRoute, aO as SwapVenue, aP as SwapWrapper, bx as TrackResponse, be as TrackTxRequest, bf as TrackTxResponse, aQ as TransactionExecutionErrorDetails, b as TransactionState, aV as Transfer, aX as TransferAssetRelease, aW as TransferEvent, T as TransferState, aY as TransferStatus, aZ as TransferWrapper, aq as Tx, bn as VenuesRequest, bo as VenuesResponse } from './swaggerTypes-CzGbnX_b.js';
2
+ export { C as ClientTransferEvent, E as ExecuteRouteOptions, O as OverallStatus, R as RouteDetails, a as RouteStatus, h as TransactionCallbacks, T as TransactionDetails, b as TransactionStatus, c as TransferEventStatus, d as TransferType, e as executeRoute, f as getSimpleOverallStatus, g as getTransferEventsFromTxStatusResponse, s as subscribeToRouteStatus } from './callbacks-DdC6QMlE.js';
3
+ export { B as BaseSettings, E as EndpointOptions, b as GasOptions, G as GetFallbackGasAmount, a as GetGasPrice, e as SignCosmosMessageAminoOptions, d as SignCosmosMessageDirectOptions, c as SignCosmosMessageOptionsBase, S as SignerGetters, T as TxResult, U as UserAddress, V as ValidateGasResult } from './client-types-D03Tellv.js';
4
+ export { assets } from './api/getAssets.js';
5
+ export { assetsBetweenChains } from './api/getAssetsBetweenChains.js';
6
+ export { bridges } from './api/getBridges.js';
7
+ export { chains } from './api/getChains.js';
8
+ export { venues } from './api/getVenues.js';
9
+ export { ibcOriginAssets } from './api/postIbcOriginAssets.js';
10
+ export { MessagesRequest, MessagesResponse, messages } from './api/postMessages.js';
11
+ export { messagesDirect } from './api/postMessagesDirect.js';
12
+ export { recommendAssets } from './api/postRecommendAssets.js';
13
+ export { assetsFromSource } from './api/postAssetsFromSource.js';
14
+ export { BalanceRequest, BalanceResponse, balances } from './api/postBalances.js';
15
+ export { RouteRequest, route } from './api/postRoute.js';
16
+ export { getRouteWithGasOnReceive } from './public-functions/getRouteWithGasOnReceive.js';
17
+ export { SubmitTransactionRequest, SubmitTransactionResponse, submitTransaction } from './api/postSubmitTransaction.js';
18
+ export { trackTransaction } from './api/postTrackTransaction.js';
19
+ export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
20
+ export { ExecuteMultipleRoutesOptions, executeMultipleRoutes } from './public-functions/executeMultipleRoutes.js';
21
+ export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
22
+ export { C as ClientState, S as SkipClientOptions, s as setClientOptions } from './setClientOptions-CTwe8YVX.js';
23
+ export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.js';
24
+ export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.js';
25
+ export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.js';
26
+ export { waitForTransaction, waitForTransactionWithCancel } from './public-functions/waitForTransaction.js';
27
+ export { getCosmosGasAmountForMessage } from './public-functions/getCosmosGasAmountForMessage.js';
28
+ export { getEVMGasAmountForMessage } from './public-functions/getEvmGasAmountForMessage.js';
29
+ export { validateCosmosGasBalance } from './public-functions/validateCosmosGasBalance.js';
30
+ import './generateApi-Bv02Xt5y.js';
31
+ import '@cosmjs/amino';
32
+ import '@cosmjs/proto-signing';
33
+ import '@cosmjs/stargate';
34
+ import 'viem';
35
+ import '@solana/wallet-adapter-base';
36
+ import './apiState-1VvikVK-.js';
37
+
38
+ /**
39
+ * Indicates whether the fee is deducted from the transfer amount or charged additionally.
40
+ * - FEE_BEHAVIOR_DEDUCTED: Fee is subtracted from the transfer amount (default, typical for Cosmos chains)
41
+ * - FEE_BEHAVIOR_ADDITIONAL: Fee is charged on top of the transfer amount (typical for EVM chains with native tokens)
42
+ */
43
+ declare enum FeeBehaviorJson {
44
+ FEE_BEHAVIOR_DEDUCTED = "FEE_BEHAVIOR_DEDUCTED",
45
+ FEE_BEHAVIOR_ADDITIONAL = "FEE_BEHAVIOR_ADDITIONAL"
46
+ }
47
+ /**
48
+ * Fee type:
49
+ * * SMART_RELAY - Fees for Smart relaying services.'
50
+ */
51
+ declare enum FeeTypeJson {
52
+ SMART_RELAY = "SMART_RELAY"
53
+ }
54
+ /**
55
+ * Transfer state:
56
+ * * `TRANSFER_UNKNOWN` - Transfer state is not known.
57
+ * * `TRANSFER_PENDING` - The send packet for the transfer has been committed and the transfer is pending.
58
+ * * `TRANSFER_RECEIVED` - The transfer packet has been received by the destination chain. It can still fail and revert if it is part of a multi-hop PFM transfer.
59
+ * * `TRANSFER_SUCCESS` - The transfer has been successfully completed and will not revert.
60
+ * * `TRANSFER_FAILURE`- The transfer has failed.
61
+ */
62
+ declare enum TransferStateJson {
63
+ TRANSFER_UNKNOWN = "TRANSFER_UNKNOWN",
64
+ TRANSFER_PENDING = "TRANSFER_PENDING",
65
+ TRANSFER_RECEIVED = "TRANSFER_RECEIVED",
66
+ TRANSFER_SUCCESS = "TRANSFER_SUCCESS",
67
+ TRANSFER_FAILURE = "TRANSFER_FAILURE"
68
+ }
69
+ /**
70
+ * LayerZero transfer state:
71
+ * * `LAYER_ZERO_TRANSFER_UNKNOWN` - Unknown error
72
+ * * `LAYER_ZERO_TRANSFER_SENT` - The transaction on the source chain has executed
73
+ * * `LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE` - The transfer has been delivered to the destination chain but there is an additional lz_compose transaction that still needs to be delivered before marking this transfer as LAYER_ZERO_TRANSFER_RECEIVED
74
+ * * `LAYER_ZERO_TRANSFER_RECEIVED` - The transfer has been received at the destination chain
75
+ * * `LAYER_ZERO_TRANSFER_FAILED` - The transfer has failed
76
+ */
77
+ declare enum LayerZeroTransferStateJson {
78
+ LAYER_ZERO_TRANSFER_UNKNOWN = "LAYER_ZERO_TRANSFER_UNKNOWN",
79
+ LAYER_ZERO_TRANSFER_SENT = "LAYER_ZERO_TRANSFER_SENT",
80
+ LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE = "LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE",
81
+ LAYER_ZERO_TRANSFER_RECEIVED = "LAYER_ZERO_TRANSFER_RECEIVED",
82
+ LAYER_ZERO_TRANSFER_FAILED = "LAYER_ZERO_TRANSFER_FAILED"
83
+ }
84
+ /**
85
+ * OPInit transfer state:
86
+ * * `OPINIT_TRANSFER_UNKNOWN` - Unknown error
87
+ * * `OPINIT_TRANSFER_SENT` - The deposit transaction on the source chain has executed
88
+ * * `OPINIT_TRANSFER_RECEIVED` - OPInit transfer has been received at the destination chain
89
+ */
90
+ declare enum OPInitTransferStateJson {
91
+ OPINIT_TRANSFER_UNKNOWN = "OPINIT_TRANSFER_UNKNOWN",
92
+ OPINIT_TRANSFER_SENT = "OPINIT_TRANSFER_SENT",
93
+ OPINIT_TRANSFER_RECEIVED = "OPINIT_TRANSFER_RECEIVED"
94
+ }
95
+ /**
96
+ * Transaction state:
97
+ * * `STATE_SUBMITTED` - The initial transaction has been submitted to Skip Go API but not observed on chain yet
98
+ * * `STATE_PENDING` - The initial transaction has been observed on chain, and there are still pending actions
99
+ * * `STATE_COMPLETED_SUCCESS` - The route has completed successfully and the user has their tokens on the destination. (indicated by `transfer_asset_release`)
100
+ * * `STATE_COMPLETED_ERROR` - The route errored somewhere and the user has their tokens unlocked in one of their wallets. Their tokens are either on the source chain, an intermediate chain, or the destination chain but as the wrong asset.
101
+ * (Again, `transfer_asset_release` indicates where the tokens are)
102
+ * * `STATE_ABANDONED` - Tracking for the transaction has been abandoned. This happens if the cross-chain sequence of actions stalls for more than 10 minutes or if the initial transaction does not get observed in a block for 5 minutes.
103
+ * * `STATE_PENDING_ERROR` - The overall transaction will fail, pending error propagation
104
+ */
105
+ declare enum TransactionStateJson {
106
+ STATE_SUBMITTED = "STATE_SUBMITTED",
107
+ STATE_PENDING = "STATE_PENDING",
108
+ STATE_ABANDONED = "STATE_ABANDONED",
109
+ STATE_COMPLETED_SUCCESS = "STATE_COMPLETED_SUCCESS",
110
+ STATE_COMPLETED_ERROR = "STATE_COMPLETED_ERROR",
111
+ STATE_PENDING_ERROR = "STATE_PENDING_ERROR"
112
+ }
113
+ /**
114
+ * Packet error types:
115
+ * * `STATUS_ERROR_UNKNOWN` - Unknown error
116
+ * * `STATUS_ERROR_TRANSACTION_EXECUTION` - Error was encountered during transaction execution
117
+ * * `STATUS_ERROR_INDEXING` - Error was encountered while indexing the transaction and packet data
118
+ * * `STATUS_ERROR_TRANSFER` - The transfer failed to complete successfully
119
+ */
120
+ declare enum StatusErrorTypeJson {
121
+ STATUS_ERROR_UNKNOWN = "STATUS_ERROR_UNKNOWN",
122
+ STATUS_ERROR_TRANSACTION_EXECUTION = "STATUS_ERROR_TRANSACTION_EXECUTION",
123
+ STATUS_ERROR_INDEXING = "STATUS_ERROR_INDEXING",
124
+ STATUS_ERROR_TRANSFER = "STATUS_ERROR_TRANSFER"
125
+ }
126
+ /**
127
+ * SendToken error types:
128
+ * * `SEND_TOKEN_EXECUTION_ERROR` - Error occurred during the execute transaction
129
+ */
130
+ declare enum SendTokenErrorTypeJson {
131
+ SEND_TOKEN_EXECUTION_ERROR = "SEND_TOKEN_EXECUTION_ERROR"
132
+ }
133
+ /**
134
+ * Recommendation reason:
135
+ * * `LOW_INFO_WARNING` - Not enough asset pricing information to determine the price safety of the route.
136
+ * * `BAD_PRICE_WARNING` - The execution price of the route deviates significantly from the current market price.
137
+ */
138
+ declare enum RoutePriceWarningTypeJson {
139
+ LOW_INFO_WARNING = "LOW_INFO_WARNING",
140
+ BAD_PRICE_WARNING = "BAD_PRICE_WARNING"
141
+ }
142
+ /**
143
+ * Recommendation reason:
144
+ * * `UNKNOWN` - Unknown recommendation reason.
145
+ * * `MOST_LIQUID` - Highest liquidity form of the transferred token on the destination chain.
146
+ * * `BASE_TOKEN` - The base token if the destination chain is the origin chain of the source token.
147
+ * * `DIRECT` - The token resulting from the least amount of transfers to the destination chain.
148
+ */
149
+ declare enum ReasonJson {
150
+ UNKNOWN = "UNKNOWN",
151
+ MOST_LIQUID = "MOST_LIQUID",
152
+ BASE_TOKEN = "BASE_TOKEN",
153
+ DIRECT = "DIRECT"
154
+ }
155
+ /**
156
+ * Packet error type:
157
+ * * `PACKET_ERROR_UNKNOWN` - Unknown error
158
+ * * `PACKET_ERROR_ACKNOWLEDGEMENT` - Packet acknowledgement error
159
+ * * `PACKET_ERROR_TIMEOUT` - Packet timed out
160
+ */
161
+ declare enum PacketErrorTypeJson {
162
+ PACKET_ERROR_UNKNOWN = "PACKET_ERROR_UNKNOWN",
163
+ PACKET_ERROR_ACKNOWLEDGEMENT = "PACKET_ERROR_ACKNOWLEDGEMENT",
164
+ PACKET_ERROR_TIMEOUT = "PACKET_ERROR_TIMEOUT"
165
+ }
166
+ /**
167
+ * Hyperlane transfer state:
168
+ * * `HYPERLANE_TRANSFER_UNKNOWN` - Unknown error
169
+ * * `HYPERLANE_TRANSFER_SENT` - The Hyperlane transfer transaction on the source chain has executed
170
+ * * `HYPERLANE_TRANSFER_FAILED` - The Hyperlane transfer failed
171
+ * * `HYPERLANE_TRANSFER_RECEIVED` - The Hyperlane transfer has been received at the destination chain
172
+ */
173
+ declare enum HyperlaneTransferStateJson {
174
+ HYPERLANE_TRANSFER_UNKNOWN = "HYPERLANE_TRANSFER_UNKNOWN",
175
+ HYPERLANE_TRANSFER_SENT = "HYPERLANE_TRANSFER_SENT",
176
+ HYPERLANE_TRANSFER_FAILED = "HYPERLANE_TRANSFER_FAILED",
177
+ HYPERLANE_TRANSFER_RECEIVED = "HYPERLANE_TRANSFER_RECEIVED"
178
+ }
179
+ /**
180
+ * ContractCallWithToken errors:
181
+ * * `CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR` - Error occurred during the execute transaction
182
+ */
183
+ declare enum ContractCallWithTokenErrorTypeJson {
184
+ CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR = "CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR"
185
+ }
186
+ declare enum ChainTypeJson {
187
+ Cosmos = "cosmos",
188
+ Evm = "evm",
189
+ Svm = "svm"
190
+ }
191
+ /**
192
+ * Bridge Type:
193
+ * * `IBC` - IBC Bridge
194
+ * * `AXELAR` - Axelar Bridge
195
+ * * `CCTP` - CCTP Bridge
196
+ * * `HYPERLANE` - Hyperlane Bridge
197
+ * * `OPINIT` - Opinit Bridge
198
+ * * `GO_FAST` - Go Fast Bridge
199
+ * * `STARGATE` - Stargate Bridge
200
+ * * `LAYER_ZERO` - Layerzero Bridge
201
+ * * `EUREKA` - IBC Eureka Bridge
202
+ */
203
+ declare enum BridgeTypeJson {
204
+ IBC = "IBC",
205
+ AXELAR = "AXELAR",
206
+ CCTP = "CCTP",
207
+ HYPERLANE = "HYPERLANE",
208
+ OPINIT = "OPINIT",
209
+ GO_FAST = "GO_FAST",
210
+ STARGATE = "STARGATE",
211
+ LAYER_ZERO = "LAYER_ZERO",
212
+ EUREKA = "EUREKA",
213
+ CCTP_V2 = "CCTP_V2"
214
+ }
215
+ /**
216
+ * GoFast transfer state:
217
+ * * `GO_FAST_TRANSFER_UNKNOWN` - Unknown state
218
+ * * `GO_FAST_TRANSFER_SENT` - Order submitted on source chain
219
+ * * `GO_FAST_POST_ACTION_FAILED` - Order filled, but subsequent action (e.g., swap) failed
220
+ * * `GO_FAST_TRANSFER_TIMEOUT` - Order timed out
221
+ * * `GO_FAST_TRANSFER_FILLED` - Order filled on destination chain
222
+ * * `GO_FAST_TRANSFER_REFUNDED` - Order refunded
223
+ */
224
+ declare enum GoFastTransferStateJson {
225
+ GO_FAST_TRANSFER_UNKNOWN = "GO_FAST_TRANSFER_UNKNOWN",
226
+ GO_FAST_TRANSFER_SENT = "GO_FAST_TRANSFER_SENT",
227
+ GO_FAST_POST_ACTION_FAILED = "GO_FAST_POST_ACTION_FAILED",
228
+ GO_FAST_TRANSFER_TIMEOUT = "GO_FAST_TRANSFER_TIMEOUT",
229
+ GO_FAST_TRANSFER_FILLED = "GO_FAST_TRANSFER_FILLED",
230
+ GO_FAST_TRANSFER_REFUNDED = "GO_FAST_TRANSFER_REFUNDED"
231
+ }
232
+ /**
233
+ * Stargate transfer state:
234
+ * * `STARGATE_TRANSFER_UNKNOWN` - Unknown error
235
+ * * `STARGATE_TRANSFER_SENT` - The Stargate transfer transaction on the source chain has executed
236
+ * * `STARGATE_TRANSFER_PENDING_CONFIRMATION` - Stargate transfer is pending confirmation
237
+ * * `STARGATE_TRANSFER_CONFIRMED` - Stargate transfer has been confirmed
238
+ * * `STARGATE_TRANSFER_RECEIVED` - Stargate transfer has been received at the destination chain
239
+ * * `STARGATE_TRANSFER_FAILED` - Stargate transfer failed
240
+ */
241
+ declare enum StargateTransferStateJson {
242
+ STARGATE_TRANSFER_UNKNOWN = "STARGATE_TRANSFER_UNKNOWN",
243
+ STARGATE_TRANSFER_SENT = "STARGATE_TRANSFER_SENT",
244
+ STARGATE_TRANSFER_PENDING_CONFIRMATION = "STARGATE_TRANSFER_PENDING_CONFIRMATION",
245
+ STARGATE_TRANSFER_CONFIRMED = "STARGATE_TRANSFER_CONFIRMED",
246
+ STARGATE_TRANSFER_RECEIVED = "STARGATE_TRANSFER_RECEIVED",
247
+ STARGATE_TRANSFER_FAILED = "STARGATE_TRANSFER_FAILED"
248
+ }
249
+ /**
250
+ * CCTP transfer state:
251
+ * * `CCTP_TRANSFER_UNKNOWN` - Unknown error
252
+ * * `CCTP_TRANSFER_SENT` - The burn transaction on the source chain has executed
253
+ * * `CCTP_TRANSFER_PENDING_CONFIRMATION` - CCTP transfer is pending confirmation by the cctp attestation api
254
+ * * `CCTP_TRANSFER_CONFIRMED` - CCTP transfer has been confirmed by the cctp attestation api
255
+ * * `CCTP_TRANSFER_RECEIVED` - CCTP transfer has been received at the destination chain
256
+ */
257
+ declare enum CCTPTransferStateJson {
258
+ CCTP_TRANSFER_UNKNOWN = "CCTP_TRANSFER_UNKNOWN",
259
+ CCTP_TRANSFER_SENT = "CCTP_TRANSFER_SENT",
260
+ CCTP_TRANSFER_PENDING_CONFIRMATION = "CCTP_TRANSFER_PENDING_CONFIRMATION",
261
+ CCTP_TRANSFER_CONFIRMED = "CCTP_TRANSFER_CONFIRMED",
262
+ CCTP_TRANSFER_RECEIVED = "CCTP_TRANSFER_RECEIVED"
263
+ }
264
+ /**
265
+ * Axelar transfer type:
266
+ * * `AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN` - GMP contract call with token transfer type
267
+ * * `AXELAR_TRANSFER_SEND_TOKEN` - Send token transfer type
268
+ */
269
+ declare enum AxelarTransferTypeJson {
270
+ AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN = "AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN",
271
+ AXELAR_TRANSFER_SEND_TOKEN = "AXELAR_TRANSFER_SEND_TOKEN"
272
+ }
273
+ /**
274
+ * Axelar transfer state:
275
+ * * `AXELAR_TRANSFER_UNKNOWN` - Unknown error
276
+ * * `AXELAR_TRANSFER_PENDING_CONFIRMATION` - Axelar transfer is pending confirmation
277
+ * * `AXELAR_TRANSFER_PENDING_RECEIPT` - Axelar transfer is pending receipt at destination
278
+ * * `AXELAR_TRANSFER_SUCCESS` - Axelar transfer succeeded and assets have been received
279
+ * * `AXELAR_TRANSFER_FAILURE` - Axelar transfer failed
280
+ */
281
+ declare enum AxelarTransferStateJson {
282
+ AXELAR_TRANSFER_UNKNOWN = "AXELAR_TRANSFER_UNKNOWN",
283
+ AXELAR_TRANSFER_PENDING_CONFIRMATION = "AXELAR_TRANSFER_PENDING_CONFIRMATION",
284
+ AXELAR_TRANSFER_PENDING_RECEIPT = "AXELAR_TRANSFER_PENDING_RECEIPT",
285
+ AXELAR_TRANSFER_SUCCESS = "AXELAR_TRANSFER_SUCCESS",
286
+ AXELAR_TRANSFER_FAILURE = "AXELAR_TRANSFER_FAILURE"
287
+ }
288
+ declare enum AutopilotActionJson {
289
+ LIQUID_STAKE = "LIQUID_STAKE",
290
+ CLAIM = "CLAIM"
291
+ }
292
+ interface AcknowledgementErrorDetailsJson {
293
+ /** Error code */
294
+ code?: number;
295
+ /** Error message */
296
+ message?: string;
297
+ }
298
+ /** An affiliate that receives fees from a swap */
299
+ interface AffiliateJson {
300
+ /** Address to which to pay the fee */
301
+ address?: string;
302
+ /** Bps fee to pay to the affiliate */
303
+ basis_points_fee?: string;
304
+ }
305
+ interface ApiErrorJson {
306
+ /** Error message */
307
+ message?: string;
308
+ }
309
+ interface AssetJson {
310
+ /** Denom of the asset */
311
+ denom: string;
312
+ /** Chain-id of the asset */
313
+ chain_id: string;
314
+ /** Denom of the origin of the asset. If this is an ibc denom, this is the original denom that the ibc token represents */
315
+ origin_denom: string;
316
+ /** Chain-id of the origin of the asset. If this is an ibc denom, this is the chain-id of the asset that the ibc token represents */
317
+ origin_chain_id: string;
318
+ /** The forward slash delimited sequence of ibc ports and channels that can be traversed to unwind an ibc token to its origin asset. */
319
+ trace: string;
320
+ /** Indicates whether asset is a CW20 token */
321
+ is_cw20: boolean;
322
+ /** Indicates whether asset is an EVM token */
323
+ is_evm: boolean;
324
+ /** Indicates whether asset is an SVM token */
325
+ is_svm: boolean;
326
+ /** Symbol of the asset, e.g. ATOM for uatom */
327
+ symbol?: string | null;
328
+ /** Name of the asset */
329
+ name?: string | null;
330
+ /** URI pointing to an image of the logo of the asset */
331
+ logo_uri?: string | null;
332
+ /** Number of decimals used for amounts of the asset */
333
+ decimals?: number | null;
334
+ /** Address of the contract for the asset, e.g. if it is a CW20 or ERC20 token */
335
+ token_contract?: string | null;
336
+ /** Description of the asset */
337
+ description?: string | null;
338
+ /** Coingecko id of the asset */
339
+ coingecko_id?: string | null;
340
+ /** Recommended symbol of the asset used to differentiate between bridged assets with the same symbol, e.g. USDC.axl for Axelar USDC and USDC.grv for Gravity USDC */
341
+ recommended_symbol?: string | null;
342
+ }
343
+ interface AssetBetweenChainsJson {
344
+ asset_on_source?: AssetJson;
345
+ asset_on_dest?: AssetJson;
346
+ /** Number of transactions required to transfer the asset */
347
+ txs_required: number;
348
+ /** Bridges that are used to transfer the asset */
349
+ bridges?: BridgeTypeJson[];
350
+ }
351
+ interface AssetRecommendationJson {
352
+ /** Asset that is recommended */
353
+ asset?: AssetJson;
354
+ /** Reason for recommending the asset */
355
+ reason?: ReasonJson;
356
+ }
357
+ interface AutopilotMsgJson {
358
+ action?: AutopilotActionJson;
359
+ receiver?: string;
360
+ }
361
+ interface AutopilotMsgWrapperJson {
362
+ autpilot_msg?: AutopilotMsgJson;
363
+ }
364
+ /** A transfer facilitated by the Axelar bridge */
365
+ interface AxelarTransferJson {
366
+ /** Canonical chain-id of the source chain of the bridge transaction */
367
+ from_chain_id?: string;
368
+ /** Canonical chain-id of the destination chain of the bridge transaction */
369
+ to_chain_id?: string;
370
+ /** Axelar-name of the asset to bridge */
371
+ asset?: string;
372
+ /** Whether to unwrap the asset at the destination chain (from ERC-20 to native) */
373
+ should_unwrap?: boolean;
374
+ /** Denom of the input asset */
375
+ denom_in?: string;
376
+ /** Denom of the output asset */
377
+ denom_out?: string;
378
+ /** Amount of the fee asset to be paid as the Axelar bridge fee. This is denominated in the fee asset. */
379
+ fee_amount?: string;
380
+ /** Amount of the fee asset to be paid as the Axelar bridge fee, converted to USD value */
381
+ usd_fee_amount?: string;
382
+ fee_asset?: AssetJson;
383
+ /** Whether the source and destination chains are both testnets */
384
+ is_testnet?: boolean;
385
+ /** A cross-chain transfer */
386
+ ibc_transfer_to_axelar?: TransferJson;
387
+ /**
388
+ * Bridge Type:
389
+ * * `IBC` - IBC Bridge
390
+ * * `AXELAR` - Axelar Bridge
391
+ * * `CCTP` - CCTP Bridge
392
+ * * `HYPERLANE` - Hyperlane Bridge
393
+ * * `OPINIT` - Opinit Bridge
394
+ * * `GO_FAST` - Go Fast Bridge
395
+ * * `STARGATE` - Stargate Bridge
396
+ * * `LAYER_ZERO` - Layerzero Bridge
397
+ * * `EUREKA` - IBC Eureka Bridge
398
+ */
399
+ bridge_id?: BridgeTypeJson;
400
+ /** Indicates whether this transfer is relayed via Smart Relay */
401
+ smart_relay?: boolean;
402
+ /**
403
+ * Deprecated, use from_chain_id instead. Name for source chain of the bridge transaction used on Axelar
404
+ * @deprecated
405
+ */
406
+ from_chain?: string;
407
+ /**
408
+ * Deprecated, use to_chain_id instead. Name for destination chain of the bridge transaction used on Axelar
409
+ * @deprecated
410
+ */
411
+ to_chain?: string;
412
+ }
413
+ interface AxelarTransferInfoJson {
414
+ /** Link to the transaction on the Axelar Scan explorer */
415
+ axelar_scan_link?: string;
416
+ /** Chain ID of the destination chain */
417
+ to_chain_id: string;
418
+ /** Chain ID of the source chain */
419
+ from_chain_id: string;
420
+ /**
421
+ * Axelar transfer state:
422
+ * * `AXELAR_TRANSFER_UNKNOWN` - Unknown error
423
+ * * `AXELAR_TRANSFER_PENDING_CONFIRMATION` - Axelar transfer is pending confirmation
424
+ * * `AXELAR_TRANSFER_PENDING_RECEIPT` - Axelar transfer is pending receipt at destination
425
+ * * `AXELAR_TRANSFER_SUCCESS` - Axelar transfer succeeded and assets have been received
426
+ * * `AXELAR_TRANSFER_FAILURE` - Axelar transfer failed
427
+ */
428
+ state: AxelarTransferStateJson;
429
+ txs: {
430
+ contract_call_with_token_txs?: ContractCallWithTokenTxsJson;
431
+ } | SendTokenTxsJson;
432
+ /**
433
+ * Axelar transfer type:
434
+ * * `AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN` - GMP contract call with token transfer type
435
+ * * `AXELAR_TRANSFER_SEND_TOKEN` - Send token transfer type
436
+ */
437
+ type?: AxelarTransferTypeJson;
438
+ }
439
+ interface AxelarTransferWrapperJson {
440
+ /** A transfer facilitated by the Axelar bridge */
441
+ axelar_transfer?: AxelarTransferJson;
442
+ }
443
+ /** Details about the fee paid for Smart Relaying */
444
+ interface SmartRelayFeeQuoteJson {
445
+ /** The USDC fee amount */
446
+ fee_amount?: string;
447
+ /** Address of the relayer */
448
+ relayer_address?: string;
449
+ /** Expiration time of the fee quote */
450
+ expiration?: string;
451
+ /** The fee asset denomination */
452
+ fee_denom?: string;
453
+ /** The address the fee should be sent to */
454
+ fee_payment_address?: string | null;
455
+ }
456
+ /** A transfer facilitated by the CCTP bridge */
457
+ interface CCTPTransferJson {
458
+ /** Canonical chain-id of the source chain of the bridge transaction */
459
+ from_chain_id?: string;
460
+ /** Canonical chain-id of the destination chain of the bridge transaction */
461
+ to_chain_id?: string;
462
+ /** Name of the asset to bridge. It will be the erc-20 contract address for EVM chains and `uusdc` for Noble. */
463
+ burn_token?: string;
464
+ /** Denom of the input asset */
465
+ denom_in?: string;
466
+ /** Denom of the output asset */
467
+ denom_out?: string;
468
+ /**
469
+ * Bridge Type:
470
+ * * `IBC` - IBC Bridge
471
+ * * `AXELAR` - Axelar Bridge
472
+ * * `CCTP` - CCTP Bridge
473
+ * * `HYPERLANE` - Hyperlane Bridge
474
+ * * `OPINIT` - Opinit Bridge
475
+ * * `GO_FAST` - Go Fast Bridge
476
+ * * `STARGATE` - Stargate Bridge
477
+ * * `LAYER_ZERO` - Layerzero Bridge
478
+ * * `EUREKA` - IBC Eureka Bridge
479
+ */
480
+ bridge_id?: BridgeTypeJson;
481
+ /** Indicates whether this transfer is relayed via Smart Relay */
482
+ smart_relay?: boolean;
483
+ smart_relay_fee_quote?: SmartRelayFeeQuoteJson | null;
484
+ }
485
+ interface CCTPTransferInfoJson {
486
+ /** Chain ID of the destination chain */
487
+ to_chain_id?: string;
488
+ /** Chain ID of the source chain */
489
+ from_chain_id?: string;
490
+ /**
491
+ * CCTP transfer state:
492
+ * * `CCTP_TRANSFER_UNKNOWN` - Unknown error
493
+ * * `CCTP_TRANSFER_SENT` - The burn transaction on the source chain has executed
494
+ * * `CCTP_TRANSFER_PENDING_CONFIRMATION` - CCTP transfer is pending confirmation by the cctp attestation api
495
+ * * `CCTP_TRANSFER_CONFIRMED` - CCTP transfer has been confirmed by the cctp attestation api
496
+ * * `CCTP_TRANSFER_RECEIVED` - CCTP transfer has been received at the destination chain
497
+ */
498
+ state?: CCTPTransferStateJson;
499
+ txs?: CCTPTransferTxsJson;
500
+ }
501
+ interface CCTPTransferTxsJson {
502
+ send_tx?: ChainTransactionJson | null;
503
+ receive_tx?: ChainTransactionJson | null;
504
+ }
505
+ interface CCTPTransferWrapperJson {
506
+ /** A transfer facilitated by the CCTP bridge */
507
+ cctp_transfer?: CCTPTransferJson;
508
+ }
509
+ /** A transfer facilitated by the Stargate bridge */
510
+ interface StargateTransferJson {
511
+ /** Canonical chain-id of the source chain of the bridge transaction */
512
+ from_chain_id?: string;
513
+ /** Canonical chain-id of the destination chain of the bridge transaction */
514
+ to_chain_id?: string;
515
+ /** Denom of the input asset */
516
+ denom_in?: string;
517
+ /** Denom of the output asset */
518
+ denom_out?: string;
519
+ pool_address?: string;
520
+ destination_endpoint_id?: number;
521
+ oft_fee_asset?: AssetJson;
522
+ oft_fee_amount?: string;
523
+ oft_fee_amount_usd?: string;
524
+ messaging_fee_asset?: AssetJson;
525
+ messaging_fee_amount?: string;
526
+ messaging_fee_amount_usd?: string;
527
+ /**
528
+ * Bridge Type:
529
+ * * `IBC` - IBC Bridge
530
+ * * `AXELAR` - Axelar Bridge
531
+ * * `CCTP` - CCTP Bridge
532
+ * * `HYPERLANE` - Hyperlane Bridge
533
+ * * `OPINIT` - Opinit Bridge
534
+ * * `GO_FAST` - Go Fast Bridge
535
+ * * `STARGATE` - Stargate Bridge
536
+ * * `LAYER_ZERO` - Layerzero Bridge
537
+ * * `EUREKA` - IBC Eureka Bridge
538
+ */
539
+ bridge_id?: BridgeTypeJson;
540
+ }
541
+ interface StargateTransferTxsJson {
542
+ send_tx?: ChainTransactionJson | null;
543
+ receive_tx?: ChainTransactionJson | null;
544
+ error_tx?: ChainTransactionJson | null;
545
+ }
546
+ interface StargateTransferInfoJson {
547
+ /** Chain ID of the source chain */
548
+ from_chain_id?: string;
549
+ /** Chain ID of the destination chain */
550
+ to_chain_id?: string;
551
+ /**
552
+ * Stargate transfer state:
553
+ * * `STARGATE_TRANSFER_UNKNOWN` - Unknown error
554
+ * * `STARGATE_TRANSFER_SENT` - The Stargate transfer transaction on the source chain has executed
555
+ * * `STARGATE_TRANSFER_PENDING_CONFIRMATION` - Stargate transfer is pending confirmation
556
+ * * `STARGATE_TRANSFER_CONFIRMED` - Stargate transfer has been confirmed
557
+ * * `STARGATE_TRANSFER_RECEIVED` - Stargate transfer has been received at the destination chain
558
+ * * `STARGATE_TRANSFER_FAILED` - Stargate transfer failed
559
+ */
560
+ state?: StargateTransferStateJson;
561
+ txs?: StargateTransferTxsJson;
562
+ }
563
+ interface StargateTransferWrapperJson {
564
+ /** A transfer facilitated by the Stargate bridge */
565
+ stargate_transfer?: StargateTransferJson;
566
+ }
567
+ /** A transfer facilitated by GoFast */
568
+ interface GoFastTransferJson {
569
+ /** Canonical chain-id of the source chain of the bridge transaction */
570
+ from_chain_id?: string;
571
+ /** Canonical chain-id of the destination chain of the bridge transaction */
572
+ to_chain_id?: string;
573
+ /** Go fast Fee */
574
+ fee?: GoFastFeeJson;
575
+ /**
576
+ * Bridge Type:
577
+ * * `IBC` - IBC Bridge
578
+ * * `AXELAR` - Axelar Bridge
579
+ * * `CCTP` - CCTP Bridge
580
+ * * `HYPERLANE` - Hyperlane Bridge
581
+ * * `OPINIT` - Opinit Bridge
582
+ * * `GO_FAST` - Go Fast Bridge
583
+ * * `STARGATE` - Stargate Bridge
584
+ * * `LAYER_ZERO` - Layerzero Bridge
585
+ * * `EUREKA` - IBC Eureka Bridge
586
+ */
587
+ bridge_id?: BridgeTypeJson;
588
+ /** Denom of the input asset */
589
+ denom_in?: string;
590
+ /** Denom of the output asset */
591
+ denom_out?: string;
592
+ /** Source domain ID of the transfer */
593
+ source_domain?: string;
594
+ /** Destination domain ID of the transfer */
595
+ destination_domain?: string;
596
+ }
597
+ interface GoFastTransferTxsJson {
598
+ order_submitted_tx?: ChainTransactionJson | null;
599
+ order_filled_tx?: ChainTransactionJson | null;
600
+ order_refunded_tx?: ChainTransactionJson | null;
601
+ order_timeout_tx?: ChainTransactionJson | null;
602
+ }
603
+ interface GoFastTransferInfoJson {
604
+ /** Chain Id of the source chain */
605
+ from_chain_id: string;
606
+ /** Chain Id of the destination chain */
607
+ to_chain_id: string;
608
+ /**
609
+ * GoFast transfer state:
610
+ * * `GO_FAST_TRANSFER_UNKNOWN` - Unknown state
611
+ * * `GO_FAST_TRANSFER_SENT` - Order submitted on source chain
612
+ * * `GO_FAST_POST_ACTION_FAILED` - Order filled, but subsequent action (e.g., swap) failed
613
+ * * `GO_FAST_TRANSFER_TIMEOUT` - Order timed out
614
+ * * `GO_FAST_TRANSFER_FILLED` - Order filled on destination chain
615
+ * * `GO_FAST_TRANSFER_REFUNDED` - Order refunded
616
+ */
617
+ state: GoFastTransferStateJson;
618
+ txs: GoFastTransferTxsJson;
619
+ /** Error message if the transfer failed post-fill */
620
+ error_message?: string | null;
621
+ }
622
+ interface GoFastTransferWrapperJson {
623
+ /** A transfer facilitated by GoFast */
624
+ go_fast_transfer?: GoFastTransferJson;
625
+ }
626
+ interface BalanceRequestChainEntryJson {
627
+ /** Address of the wallet that the balance is requested for */
628
+ address?: string;
629
+ /** Denoms of the assets to get the balance for */
630
+ denoms?: string[];
631
+ }
632
+ interface BalanceResponseDenomEntryJson {
633
+ amount: string;
634
+ /** @format int32 */
635
+ decimals?: number | null;
636
+ formatted_amount: string;
637
+ price?: string | null;
638
+ value_usd?: string | null;
639
+ error?: ApiErrorJson | null;
640
+ }
641
+ interface BalanceResponseChainEntryJson {
642
+ denoms?: Record<string, BalanceResponseDenomEntryJson>;
643
+ }
644
+ interface BankSendJson {
645
+ /** Chain-id of the chain that the transaction is intended for */
646
+ chain_id?: string;
647
+ /** Denom of the asset to send */
648
+ denom?: string;
649
+ }
650
+ interface BankSendWrapperJson {
651
+ bank_send?: BankSendJson;
652
+ }
653
+ interface BridgeJson {
654
+ /**
655
+ * Bridge Type:
656
+ * * `IBC` - IBC Bridge
657
+ * * `AXELAR` - Axelar Bridge
658
+ * * `CCTP` - CCTP Bridge
659
+ * * `HYPERLANE` - Hyperlane Bridge
660
+ * * `OPINIT` - Opinit Bridge
661
+ * * `GO_FAST` - Go Fast Bridge
662
+ * * `STARGATE` - Stargate Bridge
663
+ * * `LAYER_ZERO` - Layerzero Bridge
664
+ * * `EUREKA` - IBC Eureka Bridge
665
+ */
666
+ id?: BridgeTypeJson;
667
+ /** Name of the bridge */
668
+ name?: string;
669
+ /** URI pointing to an image of the logo of the bridge */
670
+ logo_uri?: string;
671
+ }
672
+ interface ChainJson {
673
+ /** Name of the chain */
674
+ chain_name: string;
675
+ /** Chain-id of the chain */
676
+ chain_id: string;
677
+ /** Whether the PFM module is enabled on the chain */
678
+ pfm_enabled: boolean;
679
+ /** Supported cosmos modules */
680
+ cosmos_module_support: CosmosModuleSupportJson;
681
+ /** Whether the chain supports IBC memos */
682
+ supports_memo: boolean;
683
+ /** chain logo URI */
684
+ logo_uri?: string | null;
685
+ /** Bech32 prefix of the chain */
686
+ bech32_prefix: string;
687
+ /** Fee assets of the chain */
688
+ fee_assets: FeeAssetJson[];
689
+ /** Type of chain, e.g. "cosmos" or "evm" */
690
+ chain_type: ChainTypeJson;
691
+ /** IBC capabilities of the chain */
692
+ ibc_capabilities: IbcCapabilitiesJson;
693
+ /** Whether the chain is a testnet */
694
+ is_testnet: boolean;
695
+ /** User friendly name of the chain */
696
+ pretty_name: string;
697
+ }
698
+ interface ChainAffiliatesJson {
699
+ /** An array of affiliates that receives fees from a swap */
700
+ affiliates?: AffiliateJson[];
701
+ }
702
+ interface ContractCallWithTokenErrorJson {
703
+ /** Error message */
704
+ message?: string;
705
+ /**
706
+ * ContractCallWithToken errors:
707
+ * * `CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR` - Error occurred during the execute transaction
708
+ */
709
+ type?: ContractCallWithTokenErrorTypeJson;
710
+ }
711
+ interface ContractCallWithTokenTxsJson {
712
+ approve_tx?: ChainTransactionJson | null;
713
+ confirm_tx?: ChainTransactionJson | null;
714
+ error?: ContractCallWithTokenErrorJson | null;
715
+ execute_tx?: ChainTransactionJson | null;
716
+ gas_paid_tx?: ChainTransactionJson | null;
717
+ send_tx?: ChainTransactionJson | null;
718
+ }
719
+ interface CosmWasmContractMsgJson {
720
+ /** Address of the contract to execute the message on */
721
+ contract_address?: string;
722
+ /** JSON string of the message */
723
+ msg?: string;
724
+ }
725
+ interface CosmWasmContractMsgWrapperJson {
726
+ wasm_msg?: CosmWasmContractMsgJson;
727
+ }
728
+ /** An ERC20 token contract approval */
729
+ interface Erc20ApprovalJson {
730
+ /** Amount of the approval */
731
+ amount: string;
732
+ /** Address of the spender */
733
+ spender: string;
734
+ /** Address of the ERC20 token contract */
735
+ token_contract: string;
736
+ }
737
+ interface ErrorDetailJson {
738
+ /**
739
+ * Error detail:
740
+ * * `LOW_INFO_ERROR` - Not enough asset pricing information to determine the price safety of the route.
741
+ * * `BAD_PRICE_ERROR` - The execution price of the route deviates significantly from the current market price.
742
+ * * `HIGH_LOSS_ERROR` - The route would result in a USD loss exceeding the configured threshold and has been blocked.
743
+ */
744
+ reason?: "LOW_INFO_ERROR" | "BAD_PRICE_ERROR" | "HIGH_LOSS_ERROR";
745
+ }
746
+ interface ErrorJson {
747
+ /** Error code */
748
+ code?: GRPCStatusCodeJson;
749
+ /** Additional error details */
750
+ details?: ErrorDetailJson[];
751
+ /** Error message */
752
+ message?: string;
753
+ }
754
+ /** A message in a cosmos transaction */
755
+ interface CosmosMsgJson {
756
+ /** JSON string of the message */
757
+ msg?: string;
758
+ /** TypeUrl of the message */
759
+ msg_type_url?: string;
760
+ }
761
+ /** A transaction on a Cosmos chain */
762
+ interface CosmosTxJson {
763
+ /** Chain-id of the chain that the transaction is intended for */
764
+ chain_id: string;
765
+ /** Path of chain-ids that the message is intended to interact with */
766
+ path?: string[];
767
+ /** The address of the wallet that will sign this transaction */
768
+ signer_address?: string;
769
+ /** The messages that should be included in the transaction. The ordering must be adhered to. */
770
+ msgs?: CosmosMsgJson[];
771
+ }
772
+ interface CosmosTxWrapperJson {
773
+ /** A transaction on a Cosmos chain */
774
+ cosmos_tx: CosmosTxJson;
775
+ }
776
+ /** A swap on an EVM chain */
777
+ interface EvmSwapJson {
778
+ /** Address of the input token. Empty string if native token. */
779
+ input_token?: string;
780
+ /** Amount of the input token */
781
+ amount_in?: string;
782
+ /** Calldata for the swap */
783
+ swap_calldata?: string;
784
+ /** Amount of the output token */
785
+ amount_out?: string;
786
+ /** Chain-id for the swap */
787
+ from_chain_id?: string;
788
+ /** Denom of the input asset */
789
+ denom_in?: string;
790
+ /** Denom of the output asset */
791
+ denom_out?: string;
792
+ /** Venues used for the swap */
793
+ swap_venues?: SwapVenueJson[];
794
+ }
795
+ interface EvmSwapWrapperJson {
796
+ /** A swap on an EVM chain */
797
+ evm_swap?: EvmSwapJson;
798
+ }
799
+ /** A transaction on an EVM chain */
800
+ interface EvmTxJson {
801
+ /** Chain-id of the chain that the transaction is intended for */
802
+ chain_id: string;
803
+ /** Data of the transaction */
804
+ data?: string;
805
+ /** ERC20 approvals required for the transaction */
806
+ required_erc20_approvals?: Erc20ApprovalJson[];
807
+ /** The address of the wallet that will sign this transaction */
808
+ signer_address?: string;
809
+ /** Address of the recipient of the transaction */
810
+ to?: string;
811
+ /** Amount of the transaction */
812
+ value?: string;
813
+ }
814
+ interface EvmTxWrapperJson {
815
+ /** A transaction on an EVM chain */
816
+ evm_tx: EvmTxJson;
817
+ }
818
+ /** A transaction on an SVM chain */
819
+ interface SvmTxJson {
820
+ /** Chain-id of the chain that the transaction is intended for */
821
+ chain_id: string;
822
+ /** The address of the wallet that will sign this transaction */
823
+ signer_address?: string;
824
+ /** Base64 encoded unsigned or partially signed transaction */
825
+ tx?: string;
826
+ }
827
+ interface SvmTxWrapperJson {
828
+ /** A transaction on an SVM chain */
829
+ svm_tx: SvmTxJson;
830
+ }
831
+ /** Asset used to pay gas fees and the recommended price tiers. Assets and gas price recommendations are sourced from the [keplr chain registry](https://github.com/chainapsis/keplr-chain-registry) */
832
+ interface FeeAssetJson {
833
+ /** Asset denom */
834
+ denom: string;
835
+ /** Gas price tiers */
836
+ gas_price?: {
837
+ /** Average gas price */
838
+ average?: string;
839
+ /** High gas price */
840
+ high?: string;
841
+ /** Low gas price */
842
+ low?: string;
843
+ } | null;
844
+ }
845
+ /** Go fast Fee */
846
+ interface GoFastFeeJson {
847
+ fee_asset: AssetJson;
848
+ bps_fee?: string;
849
+ bps_fee_amount?: string;
850
+ bps_fee_usd?: string;
851
+ source_chain_fee_amount?: string;
852
+ source_chain_fee_usd?: string;
853
+ destination_chain_fee_amount?: string;
854
+ destination_chain_fee_usd?: string;
855
+ }
856
+ /** grpc status codes as defined [here](https://grpc.github.io/grpc/core/md_doc_statuscodes.html) */
857
+ type GRPCStatusCodeJson = number;
858
+ /** A transfer facilitated by the Hyperlane bridge */
859
+ interface HyperlaneTransferJson {
860
+ /** Canonical chain-id of the source chain of the bridge transaction */
861
+ from_chain_id?: string;
862
+ /** Canonical chain-id of the destination chain of the bridge transaction */
863
+ to_chain_id?: string;
864
+ /** Denom of the input asset */
865
+ denom_in?: string;
866
+ /** Denom of the output asset */
867
+ denom_out?: string;
868
+ /** Contract address of the hyperlane warp route contract that initiates the transfer */
869
+ hyperlane_contract_address?: string;
870
+ /** Amount of the fee asset to be paid as the Hyperlane bridge fee. This is denominated in the fee asset. */
871
+ fee_amount?: string;
872
+ /** Amount of the fee asset to be paid as the Hyperlane bridge fee, converted to USD value */
873
+ usd_fee_amount?: string;
874
+ fee_asset?: AssetJson;
875
+ /**
876
+ * Bridge Type:
877
+ * * `IBC` - IBC Bridge
878
+ * * `AXELAR` - Axelar Bridge
879
+ * * `CCTP` - CCTP Bridge
880
+ * * `HYPERLANE` - Hyperlane Bridge
881
+ * * `OPINIT` - Opinit Bridge
882
+ * * `GO_FAST` - Go Fast Bridge
883
+ * * `STARGATE` - Stargate Bridge
884
+ * * `LAYER_ZERO` - Layerzero Bridge
885
+ * * `EUREKA` - IBC Eureka Bridge
886
+ */
887
+ bridge_id?: BridgeTypeJson;
888
+ /** Indicates whether this transfer is relayed via Smart Relay */
889
+ smart_relay?: boolean;
890
+ }
891
+ interface HyperlaneTransferInfoJson {
892
+ /** Chain ID of the source chain */
893
+ from_chain_id: string;
894
+ /** Chain ID of the destination chain */
895
+ to_chain_id: string;
896
+ /**
897
+ * Hyperlane transfer state:
898
+ * * `HYPERLANE_TRANSFER_UNKNOWN` - Unknown error
899
+ * * `HYPERLANE_TRANSFER_SENT` - The Hyperlane transfer transaction on the source chain has executed
900
+ * * `HYPERLANE_TRANSFER_FAILED` - The Hyperlane transfer failed
901
+ * * `HYPERLANE_TRANSFER_RECEIVED` - The Hyperlane transfer has been received at the destination chain
902
+ */
903
+ state: HyperlaneTransferStateJson;
904
+ txs: HyperlaneTransferTransactionsJson;
905
+ }
906
+ interface HyperlaneTransferTransactionsJson {
907
+ send_tx?: ChainTransactionJson | null;
908
+ receive_tx?: ChainTransactionJson | null;
909
+ }
910
+ interface HyperlaneTransferWrapperJson {
911
+ /** A transfer facilitated by the Hyperlane bridge */
912
+ hyperlane_transfer?: HyperlaneTransferJson;
913
+ }
914
+ interface IBCTransferInfoJson {
915
+ /** Chain ID of the destination chain */
916
+ to_chain_id: string;
917
+ packet_txs: PacketJson;
918
+ /** Chain ID of the source chain */
919
+ from_chain_id: string;
920
+ /**
921
+ * Transfer state:
922
+ * * `TRANSFER_UNKNOWN` - Transfer state is not known.
923
+ * * `TRANSFER_PENDING` - The send packet for the transfer has been committed and the transfer is pending.
924
+ * * `TRANSFER_RECEIVED` - The transfer packet has been received by the destination chain. It can still fail and revert if it is part of a multi-hop PFM transfer.
925
+ * * `TRANSFER_SUCCESS` - The transfer has been successfully completed and will not revert.
926
+ * * `TRANSFER_FAILURE`- The transfer has failed.
927
+ */
928
+ state: TransferStateJson;
929
+ }
930
+ type MsgJson = MultiChainMsgWrapperJson | EvmTxWrapperJson | SvmTxWrapperJson;
931
+ type TxJson = (CosmosTxWrapperJson | EvmTxWrapperJson | SvmTxWrapperJson) & {
932
+ /** Array of indices of the operations that this transaction executes */
933
+ operations_indices?: number[];
934
+ };
935
+ /** A message that interacts with multiple chains */
936
+ interface MultiChainMsgJson {
937
+ /** Chain-id of the chain that the transaction containing the message is intended for */
938
+ chain_id?: string;
939
+ /** JSON string of the message */
940
+ msg?: string;
941
+ /** TypeUrl of the message */
942
+ msg_type_url?: string;
943
+ /** Path of chain-ids that the message is intended to interact with */
944
+ path?: string[];
945
+ }
946
+ interface MultiChainMsgWrapperJson {
947
+ /** A message that interacts with multiple chains */
948
+ multi_chain_msg?: MultiChainMsgJson;
949
+ }
950
+ type OperationJson = (TransferWrapperJson | SwapWrapperJson | AxelarTransferWrapperJson | BankSendWrapperJson | CCTPTransferWrapperJson | HyperlaneTransferWrapperJson | EvmSwapWrapperJson | OPInitTransferWrapperJson | GoFastTransferWrapperJson | StargateTransferWrapperJson | LayerZeroTransferWrapperJson | EurekaTransferWrapperJson) & {
951
+ /** Index of the tx returned from Msgs that executes this operation */
952
+ tx_index: number;
953
+ /** Amount of input asset to this operation */
954
+ amount_in: string;
955
+ /** Amount of output asset from this operation */
956
+ amount_out: string;
957
+ };
958
+ interface OptionalAssetJson {
959
+ asset?: AssetJson;
960
+ /** Whether the asset was found */
961
+ asset_found?: boolean;
962
+ }
963
+ interface LayerZeroTransferTransactionsJson {
964
+ send_tx?: ChainTransactionJson | null;
965
+ receive_tx?: ChainTransactionJson | null;
966
+ compose_tx?: ChainTransactionJson | null;
967
+ error_tx?: ChainTransactionJson | null;
968
+ }
969
+ interface PacketJson {
970
+ acknowledge_tx?: ChainTransactionJson | null;
971
+ error?: PacketErrorJson | null;
972
+ receive_tx?: ChainTransactionJson | null;
973
+ send_tx?: ChainTransactionJson | null;
974
+ timeout_tx?: ChainTransactionJson | null;
975
+ }
976
+ interface PacketErrorJson {
977
+ details?: AcknowledgementErrorDetailsJson;
978
+ /** Error message */
979
+ message?: string;
980
+ /**
981
+ * Packet error type:
982
+ * * `PACKET_ERROR_UNKNOWN` - Unknown error
983
+ * * `PACKET_ERROR_ACKNOWLEDGEMENT` - Packet acknowledgement error
984
+ * * `PACKET_ERROR_TIMEOUT` - Packet timed out
985
+ */
986
+ type?: PacketErrorTypeJson;
987
+ }
988
+ interface ChainTransactionJson {
989
+ /** Chain ID the packet event occurs on */
990
+ chain_id?: string;
991
+ /** Link to the transaction on block explorer */
992
+ explorer_link: string;
993
+ /** Hash of the transaction the packet event occurred in */
994
+ tx_hash?: string;
995
+ /** RFC3339 formatted UTC timestamp of when the transaction landed on chain */
996
+ on_chain_at?: string;
997
+ }
998
+ type PostHandlerJson = CosmWasmContractMsgWrapperJson | AutopilotMsgWrapperJson;
999
+ interface RouteJson {
1000
+ /** Amount of source asset to be transferred or swapped */
1001
+ amount_in: string;
1002
+ /** Amount of destination asset out */
1003
+ amount_out: string;
1004
+ /** Chain-ids of all chains of the transfer or swap, in order of usage by operations in the route */
1005
+ chain_ids: string[];
1006
+ /** All chain-ids that require an address to be provided for, in order of usage by operations in the route */
1007
+ required_chain_addresses: string[];
1008
+ /** Chain-id of the destination asset */
1009
+ dest_asset_chain_id: string;
1010
+ /** Denom of the destination asset */
1011
+ dest_asset_denom: string;
1012
+ /** Whether this route performs a swap */
1013
+ does_swap?: boolean;
1014
+ /** Amount of destination asset out, if a swap is performed */
1015
+ estimated_amount_out: string;
1016
+ /** Array of operations required to perform the transfer or swap */
1017
+ operations: OperationJson[];
1018
+ /** Chain-id of the source asset */
1019
+ source_asset_chain_id: string;
1020
+ /** Denom of the source asset */
1021
+ source_asset_denom: string;
1022
+ /** Swap venue on which the swap is performed, if a swap is performed */
1023
+ swap_venues?: SwapVenueJson[];
1024
+ /** Number of transactions required to perform the transfer or swap */
1025
+ txs_required: number;
1026
+ /** Amount of the source denom, converted to USD value */
1027
+ usd_amount_in?: string;
1028
+ /** Amount of the destination denom expected to be received, converted to USD value */
1029
+ usd_amount_out?: string;
1030
+ /** Price impact of the estimated swap, if present. Measured in percentage e.g. "0.5" is .5% */
1031
+ swap_price_impact_percent?: string | null;
1032
+ /** Indicates if the route is unsafe due to poor execution price or if safety cannot be determined due to lack of pricing information */
1033
+ warning?: {
1034
+ /**
1035
+ * Recommendation reason:
1036
+ * * `LOW_INFO_WARNING` - Not enough asset pricing information to determine the price safety of the route.
1037
+ * * `BAD_PRICE_WARNING` - The execution price of the route deviates significantly from the current market price.
1038
+ */
1039
+ type?: RoutePriceWarningTypeJson;
1040
+ /** Warning message */
1041
+ message?: string;
1042
+ } | null;
1043
+ /** Indicates fees incurred in the execution of the transfer */
1044
+ estimated_fees?: FeeJson[];
1045
+ /** The estimated time in seconds for the route to execute */
1046
+ estimated_route_duration_seconds: number;
1047
+ }
1048
+ interface SendTokenErrorJson {
1049
+ /** Error message */
1050
+ message?: string;
1051
+ /**
1052
+ * SendToken error types:
1053
+ * * `SEND_TOKEN_EXECUTION_ERROR` - Error occurred during the execute transaction
1054
+ */
1055
+ type?: SendTokenErrorTypeJson;
1056
+ }
1057
+ interface SendTokenTxsJson {
1058
+ confirm_tx?: ChainTransactionJson | null;
1059
+ error?: SendTokenErrorJson | null;
1060
+ execute_tx?: ChainTransactionJson | null;
1061
+ send_tx?: ChainTransactionJson | null;
1062
+ }
1063
+ interface StatusErrorJson {
1064
+ details?: TransactionExecutionErrorDetailsJson | null;
1065
+ /** Error message */
1066
+ message?: string;
1067
+ /**
1068
+ * Packet error types:
1069
+ * * `STATUS_ERROR_UNKNOWN` - Unknown error
1070
+ * * `STATUS_ERROR_TRANSACTION_EXECUTION` - Error was encountered during transaction execution
1071
+ * * `STATUS_ERROR_INDEXING` - Error was encountered while indexing the transaction and packet data
1072
+ * * `STATUS_ERROR_TRANSFER` - The transfer failed to complete successfully
1073
+ */
1074
+ type?: StatusErrorTypeJson;
1075
+ }
1076
+ type SwapJson = (SwapInWrapperJson | SwapOutWrapperJson | SmartSwapInWrapperJson) & {
1077
+ /** Estimated total affiliate fee generated by the swap */
1078
+ estimated_affiliate_fee?: string;
1079
+ /** Chain ID that the swap will be executed on (alias for chain_id) */
1080
+ from_chain_id?: string;
1081
+ /** Chain ID that the swap will be executed on */
1082
+ chain_id?: string;
1083
+ /** Input denom of the swap */
1084
+ denom_in?: string;
1085
+ /** Output denom of the swap */
1086
+ denom_out?: string;
1087
+ /** Swap venues that the swap will route through */
1088
+ swap_venues?: SwapVenueJson[];
1089
+ };
1090
+ /** Specification of a swap with an exact amount in */
1091
+ interface SwapExactCoinInJson {
1092
+ /** Swap venue that this swap should execute on */
1093
+ swap_venue?: SwapVenueJson;
1094
+ /** Operations required to execute the swap */
1095
+ swap_operations?: SwapOperationJson[];
1096
+ /** Amount to swap in */
1097
+ swap_amount_in?: string | null;
1098
+ /** Price impact of the estimated swap, if present. Measured in percentage e.g. "0.5" is .5% */
1099
+ price_impact_percent?: string | null;
1100
+ /** The estimated amount out received from the swap */
1101
+ estimated_amount_out?: string | null;
1102
+ }
1103
+ /** Specification of a swap with an exact amount out */
1104
+ interface SwapExactCoinOutJson {
1105
+ /** Swap venue that this swap should execute on */
1106
+ swap_venue?: SwapVenueJson;
1107
+ /** Operations required to execute the swap */
1108
+ swap_operations?: SwapOperationJson[];
1109
+ /** Amount to get out of the swap */
1110
+ swap_amount_out?: string;
1111
+ /** Price impact of the estimated swap, if present. Measured in percentage e.g. "0.5" is .5% */
1112
+ price_impact_percent?: string | null;
1113
+ }
1114
+ interface SwapInWrapperJson {
1115
+ /** Specification of a swap with an exact amount in */
1116
+ swap_in?: SwapExactCoinInJson;
1117
+ }
1118
+ /** Description of a single swap operation */
1119
+ interface SwapOperationJson {
1120
+ /** Input denom of the swap */
1121
+ denom_in?: string;
1122
+ /** Output denom of the swap */
1123
+ denom_out?: string;
1124
+ /** Identifier of the pool to use for the swap */
1125
+ pool?: string;
1126
+ /** Optional dditional metadata a swap adapter may require */
1127
+ interface?: string | null;
1128
+ }
1129
+ interface SwapOutWrapperJson {
1130
+ /** Specification of a swap with an exact amount out */
1131
+ swap_out?: SwapExactCoinOutJson;
1132
+ }
1133
+ interface SwapRouteJson {
1134
+ /** Amount to swap in */
1135
+ swap_amount_in?: string;
1136
+ /** Denom in of the swap */
1137
+ denom_in?: string;
1138
+ /** Operations required to execute the swap route */
1139
+ swap_operations?: SwapOperationJson[];
1140
+ }
1141
+ /** Specification of a smart swap in operation */
1142
+ interface SmartSwapExactCoinInJson {
1143
+ /** Swap venue that this swap should execute on */
1144
+ swap_venue?: SwapVenueJson;
1145
+ /** Routes to execute the swap */
1146
+ swap_routes?: SwapRouteJson[];
1147
+ /** The estimated amount out received from the swap */
1148
+ estimated_amount_out?: string | null;
1149
+ }
1150
+ interface SmartSwapOptionsJson {
1151
+ /** Indicates whether the swap can be split into multiple swap routes */
1152
+ split_routes?: boolean;
1153
+ /** Indicates whether to include routes that swap on EVM chains */
1154
+ evm_swaps?: boolean;
1155
+ }
1156
+ interface SmartSwapInWrapperJson {
1157
+ /** Specification of a smart swap in operation */
1158
+ smart_swap_in?: SmartSwapExactCoinInJson;
1159
+ }
1160
+ /** A venue on which swaps can be exceuted */
1161
+ interface SwapVenueJson {
1162
+ /** Chain ID of the swap venue */
1163
+ chain_id?: string;
1164
+ /** Name of the swap venue */
1165
+ name?: string;
1166
+ /** URI for the venue's logo */
1167
+ logo_uri?: string | null;
1168
+ }
1169
+ interface SwapWrapperJson {
1170
+ swap?: SwapJson;
1171
+ }
1172
+ interface TransactionExecutionErrorDetailsJson {
1173
+ /** Error code */
1174
+ code?: number;
1175
+ /** Error message */
1176
+ message?: string;
1177
+ }
1178
+ /** A transfer facilitated by the OP Init bridge */
1179
+ interface OPInitTransferJson {
1180
+ /** Canonical chain-id of the source chain of the bridge transaction */
1181
+ from_chain_id?: string;
1182
+ /** Canonical chain-id of the destination chain of the bridge transaction */
1183
+ to_chain_id?: string;
1184
+ /** Denom of the input asset */
1185
+ denom_in?: string;
1186
+ /** Denom of the output asset */
1187
+ denom_out?: string;
1188
+ /** Identifier used by the OPInit bridge to identify the L1-L2 pair the transfer occurs between */
1189
+ op_init_bridge_id?: any;
1190
+ /**
1191
+ * Bridge Type:
1192
+ * * `IBC` - IBC Bridge
1193
+ * * `AXELAR` - Axelar Bridge
1194
+ * * `CCTP` - CCTP Bridge
1195
+ * * `HYPERLANE` - Hyperlane Bridge
1196
+ * * `OPINIT` - Opinit Bridge
1197
+ * * `GO_FAST` - Go Fast Bridge
1198
+ * * `STARGATE` - Stargate Bridge
1199
+ * * `LAYER_ZERO` - Layerzero Bridge
1200
+ * * `EUREKA` - IBC Eureka Bridge
1201
+ */
1202
+ bridge_id?: BridgeTypeJson;
1203
+ /** Indicates whether this transfer is relayed via Smart Relay */
1204
+ smart_relay?: boolean;
1205
+ }
1206
+ interface OPInitTransferWrapperJson {
1207
+ /** A transfer facilitated by the OP Init bridge */
1208
+ op_init_transfer?: OPInitTransferJson;
1209
+ }
1210
+ interface OPInitTransferInfoJson {
1211
+ /** Chain ID of the destination chain */
1212
+ to_chain_id: string;
1213
+ /** Chain ID of the source chain */
1214
+ from_chain_id: string;
1215
+ /**
1216
+ * OPInit transfer state:
1217
+ * * `OPINIT_TRANSFER_UNKNOWN` - Unknown error
1218
+ * * `OPINIT_TRANSFER_SENT` - The deposit transaction on the source chain has executed
1219
+ * * `OPINIT_TRANSFER_RECEIVED` - OPInit transfer has been received at the destination chain
1220
+ */
1221
+ state: OPInitTransferStateJson;
1222
+ txs: OPInitTransferTxsJson;
1223
+ }
1224
+ interface OPInitTransferTxsJson {
1225
+ send_tx?: ChainTransactionJson | null;
1226
+ receive_tx?: ChainTransactionJson | null;
1227
+ }
1228
+ /** A cross-chain transfer */
1229
+ interface TransferJson {
1230
+ /** Port to use to initiate the transfer */
1231
+ port?: string;
1232
+ /** Channel to use to initiate the transfer */
1233
+ channel?: string;
1234
+ /** Chain-id on which the transfer is initiated */
1235
+ from_chain_id?: string;
1236
+ /** Chain-id on which the transfer is received */
1237
+ to_chain_id?: string;
1238
+ /** Whether pfm is enabled on the chain where the transfer is initiated */
1239
+ pfm_enabled?: boolean;
1240
+ /** Whether the transfer chain supports a memo */
1241
+ supports_memo?: boolean;
1242
+ /** Denom of the input asset of the transfer */
1243
+ denom_in?: string;
1244
+ /** Denom of the output asset of the transfer */
1245
+ denom_out?: string;
1246
+ /** Amount of the fee asset to be paid as the transfer fee if applicable. */
1247
+ fee_amount?: string | null;
1248
+ /** Amount of the fee asset to be paid as the transfer fee if applicable, converted to USD value */
1249
+ usd_fee_amount?: string | null;
1250
+ /** Asset to be paid as the transfer fee if applicable. */
1251
+ fee_asset?: AssetJson | null;
1252
+ /**
1253
+ * Bridge Type:
1254
+ * * `IBC` - IBC Bridge
1255
+ * * `AXELAR` - Axelar Bridge
1256
+ * * `CCTP` - CCTP Bridge
1257
+ * * `HYPERLANE` - Hyperlane Bridge
1258
+ * * `OPINIT` - Opinit Bridge
1259
+ * * `GO_FAST` - Go Fast Bridge
1260
+ * * `STARGATE` - Stargate Bridge
1261
+ * * `LAYER_ZERO` - Layerzero Bridge
1262
+ * * `EUREKA` - IBC Eureka Bridge
1263
+ */
1264
+ bridge_id?: BridgeTypeJson;
1265
+ /** Indicates whether this transfer is relayed via Smart Relay */
1266
+ smart_relay?: boolean;
1267
+ /** Address of the entry contract on the destination chain */
1268
+ to_chain_entry_contract_address?: string | null;
1269
+ /** Address of the callback contract on the destination chain */
1270
+ to_chain_callback_contract_address?: string | null;
1271
+ /**
1272
+ * Deprecated, use denom_out instead. Denom of the destination asset of the transfer
1273
+ * @deprecated
1274
+ */
1275
+ dest_denom?: string;
1276
+ }
1277
+ interface TransferEventJson {
1278
+ ibc_transfer?: IBCTransferInfoJson;
1279
+ axelar_transfer?: AxelarTransferInfoJson;
1280
+ cctp_transfer?: CCTPTransferInfoJson;
1281
+ hyperlane_transfer?: HyperlaneTransferInfoJson;
1282
+ op_init_transfer?: OPInitTransferInfoJson;
1283
+ stargate_transfer?: StargateTransferInfoJson;
1284
+ go_fast_transfer?: GoFastTransferInfoJson;
1285
+ eureka_transfer?: EurekaTransferInfoJson;
1286
+ layer_zero_transfer?: LayerZeroTransferInfoJson;
1287
+ }
1288
+ /** Indicates location and denom of transfer asset release. */
1289
+ interface TransferAssetReleaseJson {
1290
+ /** The chain ID of the chain that the transfer asset is released on. */
1291
+ chain_id?: string;
1292
+ /** The denom of the asset that is released. */
1293
+ denom?: string;
1294
+ /** The amount of the asset that is released. */
1295
+ amount?: string | null;
1296
+ /** Indicates whether assets have been released and are accessible. The assets may still be in transit. */
1297
+ released?: boolean;
1298
+ }
1299
+ interface TransferStatusJson {
1300
+ /**
1301
+ * Transaction state:
1302
+ * * `STATE_SUBMITTED` - The initial transaction has been submitted to Skip Go API but not observed on chain yet
1303
+ * * `STATE_PENDING` - The initial transaction has been observed on chain, and there are still pending actions
1304
+ * * `STATE_COMPLETED_SUCCESS` - The route has completed successfully and the user has their tokens on the destination. (indicated by `transfer_asset_release`)
1305
+ * * `STATE_COMPLETED_ERROR` - The route errored somewhere and the user has their tokens unlocked in one of their wallets. Their tokens are either on the source chain, an intermediate chain, or the destination chain but as the wrong asset.
1306
+ * (Again, `transfer_asset_release` indicates where the tokens are)
1307
+ * * `STATE_ABANDONED` - Tracking for the transaction has been abandoned. This happens if the cross-chain sequence of actions stalls for more than 10 minutes or if the initial transaction does not get observed in a block for 5 minutes.
1308
+ * * `STATE_PENDING_ERROR` - The overall transaction will fail, pending error propagation
1309
+ */
1310
+ state?: TransactionStateJson;
1311
+ /** Lists any IBC and Axelar transfers as they are seen. */
1312
+ transfer_sequence?: TransferEventJson[];
1313
+ /** Indicates which entry in the `transfer_sequence` field that the transfer is blocked on. Will be null if there is no blocked transfer. */
1314
+ next_blocking_transfer?: {
1315
+ /** The index of the entry in the `transfer_sequence` field that the transfer is blocked on. */
1316
+ transfer_sequence_index?: number;
1317
+ } | null;
1318
+ /** Indicates location and denom of transfer asset release. */
1319
+ transfer_asset_release?: TransferAssetReleaseJson;
1320
+ error?: StatusErrorJson | null;
1321
+ }
1322
+ interface TransferWrapperJson {
1323
+ /** A cross-chain transfer */
1324
+ transfer?: TransferJson;
1325
+ }
1326
+ /** An IBC Eureka transfer */
1327
+ interface EurekaTransferJson {
1328
+ /** Port on the destination chain */
1329
+ destination_port?: string;
1330
+ /** Client on the source chain */
1331
+ source_client?: string;
1332
+ /** Chain-id on which the transfer is initiated */
1333
+ from_chain_id?: string;
1334
+ /** Chain-id on which the transfer is received */
1335
+ to_chain_id?: string;
1336
+ /** Whether pfm is enabled on the chain where the transfer is initiated */
1337
+ pfm_enabled?: boolean;
1338
+ /** Whether the transfer chain supports a memo */
1339
+ supports_memo?: boolean;
1340
+ /** Denom of the input asset of the transfer */
1341
+ denom_in?: string;
1342
+ /** Denom of the output asset of the transfer */
1343
+ denom_out?: string;
1344
+ /** Address of the Eureka entry contract on the source chain */
1345
+ entry_contract_address?: string;
1346
+ /** Optional address of the Eureka callback adapter contract on the source chain */
1347
+ callback_adapter_contract_address?: string | null;
1348
+ /**
1349
+ * Bridge Type:
1350
+ * * `IBC` - IBC Bridge
1351
+ * * `AXELAR` - Axelar Bridge
1352
+ * * `CCTP` - CCTP Bridge
1353
+ * * `HYPERLANE` - Hyperlane Bridge
1354
+ * * `OPINIT` - Opinit Bridge
1355
+ * * `GO_FAST` - Go Fast Bridge
1356
+ * * `STARGATE` - Stargate Bridge
1357
+ * * `LAYER_ZERO` - Layerzero Bridge
1358
+ * * `EUREKA` - IBC Eureka Bridge
1359
+ */
1360
+ bridge_id?: BridgeTypeJson;
1361
+ /** Indicates whether this transfer is relayed via Smart Relay */
1362
+ smart_relay?: boolean;
1363
+ smart_relay_fee_quote?: SmartRelayFeeQuoteJson | null;
1364
+ /** Optional address of the Eureka callback contract on the destination chain */
1365
+ to_chain_callback_contract_address?: string | null;
1366
+ /** Optional address of the Eureka entry contract on the destination chain */
1367
+ to_chain_entry_contract_address?: string | null;
1368
+ }
1369
+ interface EurekaTransferInfoJson {
1370
+ /** Chain ID of the source chain */
1371
+ from_chain_id: string;
1372
+ /** Chain ID of the destination chain */
1373
+ to_chain_id: string;
1374
+ /**
1375
+ * Transfer state:
1376
+ * * `TRANSFER_UNKNOWN` - Transfer state is not known.
1377
+ * * `TRANSFER_PENDING` - The send packet for the transfer has been committed and the transfer is pending.
1378
+ * * `TRANSFER_RECEIVED` - The transfer packet has been received by the destination chain. It can still fail and revert if it is part of a multi-hop PFM transfer.
1379
+ * * `TRANSFER_SUCCESS` - The transfer has been successfully completed and will not revert.
1380
+ * * `TRANSFER_FAILURE`- The transfer has failed.
1381
+ */
1382
+ state: TransferStateJson;
1383
+ packet_txs: PacketJson;
1384
+ }
1385
+ interface EurekaTransferWrapperJson {
1386
+ /** An IBC Eureka transfer */
1387
+ eureka_transfer?: EurekaTransferJson;
1388
+ }
1389
+ /** A Layer Zero Transfer */
1390
+ interface LayerZeroTransferJson {
1391
+ /** Chain-id on which the transfer is initiated */
1392
+ from_chain_id: string;
1393
+ /** Chain-id on which the transfer is received */
1394
+ to_chain_id: string;
1395
+ /** Denom of the input asset of the transfer */
1396
+ denom_in: string;
1397
+ /** Denom of the output asset of the transfer */
1398
+ denom_out: string;
1399
+ source_oft_contract_address: string;
1400
+ destination_endpoint_id: number;
1401
+ messaging_fee_asset: AssetJson;
1402
+ messaging_fee_amount: string;
1403
+ messaging_fee_amount_usd: string;
1404
+ /**
1405
+ * Bridge Type:
1406
+ * * `IBC` - IBC Bridge
1407
+ * * `AXELAR` - Axelar Bridge
1408
+ * * `CCTP` - CCTP Bridge
1409
+ * * `HYPERLANE` - Hyperlane Bridge
1410
+ * * `OPINIT` - Opinit Bridge
1411
+ * * `GO_FAST` - Go Fast Bridge
1412
+ * * `STARGATE` - Stargate Bridge
1413
+ * * `LAYER_ZERO` - Layerzero Bridge
1414
+ * * `EUREKA` - IBC Eureka Bridge
1415
+ */
1416
+ bridge_id: BridgeTypeJson;
1417
+ }
1418
+ interface LayerZeroTransferInfoJson {
1419
+ /** Chain ID of the source chain */
1420
+ from_chain_id: string;
1421
+ /** Chain ID of the destination chain */
1422
+ to_chain_id: string;
1423
+ /**
1424
+ * LayerZero transfer state:
1425
+ * * `LAYER_ZERO_TRANSFER_UNKNOWN` - Unknown error
1426
+ * * `LAYER_ZERO_TRANSFER_SENT` - The transaction on the source chain has executed
1427
+ * * `LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE` - The transfer has been delivered to the destination chain but there is an additional lz_compose transaction that still needs to be delivered before marking this transfer as LAYER_ZERO_TRANSFER_RECEIVED
1428
+ * * `LAYER_ZERO_TRANSFER_RECEIVED` - The transfer has been received at the destination chain
1429
+ * * `LAYER_ZERO_TRANSFER_FAILED` - The transfer has failed
1430
+ */
1431
+ state: LayerZeroTransferStateJson;
1432
+ txs: LayerZeroTransferTransactionsJson;
1433
+ }
1434
+ interface LayerZeroTransferWrapperJson {
1435
+ /** A Layer Zero Transfer */
1436
+ layer_zero_transfer?: LayerZeroTransferJson;
1437
+ }
1438
+ interface RecommendationRequestJson {
1439
+ /** Denom of the source asset */
1440
+ source_asset_denom?: string;
1441
+ /** Chain-id of the source asset */
1442
+ source_asset_chain_id?: string;
1443
+ /** Chain-id of the recommended destination asset */
1444
+ dest_chain_id?: string | null;
1445
+ /** Reason for recommendation (optional) */
1446
+ reason?: ReasonJson | null;
1447
+ }
1448
+ interface CosmosModuleSupportJson {
1449
+ /** Whether the authz module is supported */
1450
+ authz?: boolean;
1451
+ /** Whether the feegrant module is supported */
1452
+ feegrant?: boolean;
1453
+ }
1454
+ interface IbcCapabilitiesJson {
1455
+ /** Whether the packet forwarding middleware module is supported */
1456
+ cosmos_pfm?: boolean;
1457
+ /** Whether the ibc hooks module is supported */
1458
+ cosmos_ibc_hooks?: boolean;
1459
+ /** Whether the chain supports IBC memos */
1460
+ cosmos_memo?: boolean;
1461
+ /** Whether the autopilot module is supported */
1462
+ cosmos_autopilot?: boolean;
1463
+ }
1464
+ interface FeeJson {
1465
+ /**
1466
+ * Fee type:
1467
+ * * SMART_RELAY - Fees for Smart relaying services.'
1468
+ */
1469
+ fee_type?: FeeTypeJson;
1470
+ /**
1471
+ * Bridge Type:
1472
+ * * `IBC` - IBC Bridge
1473
+ * * `AXELAR` - Axelar Bridge
1474
+ * * `CCTP` - CCTP Bridge
1475
+ * * `HYPERLANE` - Hyperlane Bridge
1476
+ * * `OPINIT` - Opinit Bridge
1477
+ * * `GO_FAST` - Go Fast Bridge
1478
+ * * `STARGATE` - Stargate Bridge
1479
+ * * `LAYER_ZERO` - Layerzero Bridge
1480
+ * * `EUREKA` - IBC Eureka Bridge
1481
+ */
1482
+ bridge_id?: BridgeTypeJson;
1483
+ /** Amount of the fee asset to be paid */
1484
+ amount?: string;
1485
+ /** The value of the fee in USD */
1486
+ usd_amount?: string;
1487
+ origin_asset: AssetJson;
1488
+ /** Chain ID of the chain where fees are collected */
1489
+ chain_id?: string;
1490
+ /** The index of the transaction in the list of transactions required to execute the transfer where fees are paid */
1491
+ tx_index?: number;
1492
+ /** The index of the operation in the returned operations list which incurs the fee */
1493
+ operation_index?: number | null;
1494
+ /** Indicates whether this fee is deducted from the transfer amount or charged additionally */
1495
+ fee_behavior?: FeeBehaviorJson;
1496
+ }
1497
+ interface BalancesRequestJson {
1498
+ chains?: Record<string, BalanceRequestChainEntryJson>;
1499
+ }
1500
+ interface AssetsFromSourceRequestJson {
1501
+ /** Denom of the source asset */
1502
+ source_asset_denom: string;
1503
+ /** Chain-id of the source asset */
1504
+ source_asset_chain_id: string;
1505
+ /**
1506
+ * Whether to include recommendations requiring multiple transactions to reach the destination
1507
+ * @default false
1508
+ */
1509
+ allow_multi_tx?: boolean;
1510
+ /** Optional reason for recommending assets */
1511
+ recommendation_reason?: ReasonJson | null;
1512
+ /**
1513
+ * Whether to include swap routes
1514
+ * @default false
1515
+ */
1516
+ include_swaps?: boolean;
1517
+ /** Swap venues to consider if including swap routes */
1518
+ swap_venues?: SwapVenueJson[] | null;
1519
+ /**
1520
+ * Whether to only return native assets
1521
+ * @default false
1522
+ */
1523
+ native_only?: boolean;
1524
+ /** Optional grouping key for results */
1525
+ group_by?: string | null;
1526
+ /**
1527
+ * Whether to include CW20 tokens
1528
+ * @default false
1529
+ */
1530
+ include_cw20_assets?: boolean;
1531
+ }
1532
+ interface RouteRequestJson {
1533
+ /** Denom of the source asset */
1534
+ source_asset_denom?: string;
1535
+ /** Chain-id of the source asset */
1536
+ source_asset_chain_id?: string;
1537
+ /** Denom of the destination asset */
1538
+ dest_asset_denom?: string;
1539
+ /** Chain-id of the destination asset */
1540
+ dest_asset_chain_id?: string;
1541
+ /** Amount of source asset to be transferred or swapped. Only one of amount_in and amount_out should be provided. */
1542
+ amount_in?: string;
1543
+ /** Amount of destination asset to receive. Only one of amount_in and amount_out should be provided. If amount_out is provided for a swap, the route will be computed to give exactly amount_out. */
1544
+ amount_out?: string;
1545
+ /** Cumulative fee to be distributed to affiliates, in bps (optional) */
1546
+ cumulative_affiliate_fee_bps?: string | null;
1547
+ /** Swap venues to consider, if provided (optional) */
1548
+ swap_venues?: SwapVenueJson[];
1549
+ /** Toggles whether the api should return routes that fail price safety checks. */
1550
+ allow_unsafe?: boolean;
1551
+ /** Array of experimental features to enable */
1552
+ experimental_features?: string[];
1553
+ /**
1554
+ * Whether to allow route responses requiring multiple
1555
+ * transactions
1556
+ */
1557
+ allow_multi_tx?: boolean;
1558
+ /** Array of bridges to use */
1559
+ bridges?: BridgeTypeJson[];
1560
+ /** Indicates whether this transfer route should be relayed via Skip's Smart Relay service - true by default. */
1561
+ smart_relay?: boolean;
1562
+ smart_swap_options?: SmartSwapOptionsJson;
1563
+ /** Whether to allow swaps in the route */
1564
+ allow_swaps?: boolean;
1565
+ /** Whether to enable Go Fast routes */
1566
+ go_fast?: boolean;
1567
+ /** Whether to enable fast transfer routes */
1568
+ fast_transfer?: boolean;
1569
+ }
1570
+ interface MsgsRequestJson {
1571
+ /** Denom of the source asset */
1572
+ source_asset_denom?: string;
1573
+ /** Chain-id of the source asset */
1574
+ source_asset_chain_id?: string;
1575
+ /** Denom of the destination asset */
1576
+ dest_asset_denom?: string;
1577
+ /** Chain-id of the destination asset */
1578
+ dest_asset_chain_id?: string;
1579
+ /** Amount of source asset to be transferred or swapped */
1580
+ amount_in?: string;
1581
+ /** Amount of destination asset out */
1582
+ amount_out?: string;
1583
+ /** Array of receipient and/or sender address for each chain in the path, corresponding to the required_chain_addresses array returned from a route request */
1584
+ address_list?: string[];
1585
+ /** Array of operations required to perform the transfer or swap */
1586
+ operations?: OperationJson[];
1587
+ estimated_amount_out?: string;
1588
+ /** Percent tolerance for slippage on swap, if a swap is performed */
1589
+ slippage_tolerance_percent?: string;
1590
+ /** Map of chain-ids to arrays of affiliates. The API expects all chains to have the same cumulative affiliate fee bps for each chain specified. If any of the provided affiliate arrays does not have the same cumulative fee, the API will return an error. */
1591
+ chain_ids_to_affiliates?: Record<string, ChainAffiliatesJson>;
1592
+ post_route_handler?: PostHandlerJson;
1593
+ /** Number of seconds for the IBC transfer timeout, defaults to 5 minutes */
1594
+ timeout_seconds?: string;
1595
+ /**
1596
+ * Whether to enable gas warnings for intermediate and destination chains
1597
+ * @default false
1598
+ */
1599
+ enable_gas_warnings?: boolean;
1600
+ /**
1601
+ * Alternative address to use for paying for fees, currently only for SVM source CCTP transfers, in b58 format.
1602
+ * @default false
1603
+ */
1604
+ fee_payer_address?: string;
1605
+ }
1606
+ interface MsgsDirectRequestJson {
1607
+ /** Denom of the source asset */
1608
+ source_asset_denom?: string;
1609
+ /** Chain-id of the source asset */
1610
+ source_asset_chain_id?: string;
1611
+ /** Denom of the destination asset */
1612
+ dest_asset_denom?: string;
1613
+ /** Chain-id of the destination asset */
1614
+ dest_asset_chain_id?: string;
1615
+ /** Amount of source asset to be transferred or swapped. If this is a swap, only one of amount_in and amount_out should be provided. */
1616
+ amount_in?: string;
1617
+ /** Amount of destination asset out. If this is a swap, only one of amount_in and amount_out should be provided. If amount_out is provided for a swap, the route will be computed to give exactly amount_out. */
1618
+ amount_out?: string;
1619
+ /** Map of chain-ids to receipient and/or sender address for each chain in the path. Since the path is not known to the caller beforehand, the caller should attempt to provide addresses for all chains in the path, and the API will return an error if the path cannot be constructed. */
1620
+ chain_ids_to_addresses?: Record<string, string>;
1621
+ /** Swap venues to consider, if provided (optional) */
1622
+ swap_venues?: SwapVenueJson[];
1623
+ /** Percent tolerance for slippage on swap, if a swap is performed */
1624
+ slippage_tolerance_percent?: string;
1625
+ /** Map of chain-ids to arrays of affiliates. Since cumulative_affiliate_fee_bps must be provided to retrieve a route, and the swap chain is not known at this time, all chains must have the same cumulative_affiliate_fee_bps otherwise the API will return an error. */
1626
+ chain_ids_to_affiliates?: Record<string, ChainAffiliatesJson>;
1627
+ post_route_handler?: PostHandlerJson;
1628
+ /** Number of seconds for the IBC transfer timeout, defaults to 5 minutes */
1629
+ timeout_seconds?: string;
1630
+ /** Toggles whether the api should return routes that fail price safety checks. */
1631
+ allow_unsafe?: boolean;
1632
+ /** Array of experimental features to enable */
1633
+ experimental_features?: string[];
1634
+ /**
1635
+ * Whether to allow route responses requiring multiple
1636
+ * transactions
1637
+ */
1638
+ allow_multi_tx?: boolean;
1639
+ /** Array of bridges to use */
1640
+ bridges?: BridgeTypeJson[];
1641
+ /** Indicates whether this transfer route should be relayed via Skip's Smart Relay service */
1642
+ smart_relay?: boolean;
1643
+ smart_swap_options?: SmartSwapOptionsJson;
1644
+ /** Whether to allow swaps in the route */
1645
+ allow_swaps?: boolean;
1646
+ /**
1647
+ * Whether to enable gas warnings for intermediate and destination chains
1648
+ * @default false
1649
+ */
1650
+ enable_gas_warnings?: boolean;
1651
+ /** Whether to enable Go Fast routes */
1652
+ go_fast?: boolean;
1653
+ /**
1654
+ * Alternative address to use for paying for fees, currently only for SVM source CCTP transfers, in b58 format.
1655
+ * @default false
1656
+ */
1657
+ fee_payer_address?: string;
1658
+ }
1659
+ interface AssetRecommendationsRequestJson {
1660
+ /** Array where each entry corresponds to a distinct asset recommendation request. */
1661
+ requests?: RecommendationRequestJson[];
1662
+ }
1663
+ interface SubmitTxRequestJson {
1664
+ /** Signed base64 encoded transaction */
1665
+ tx?: string;
1666
+ /** Chain ID of the transaction */
1667
+ chain_id?: string;
1668
+ }
1669
+ interface TrackTxRequestJson {
1670
+ /** Hex encoded hash of the transaction to track */
1671
+ tx_hash: string;
1672
+ /** Chain ID of the transaction */
1673
+ chain_id: string;
1674
+ }
1675
+ interface TrackTxResponseJson {
1676
+ /** Hash of the transaction */
1677
+ tx_hash: string;
1678
+ /** Link to the transaction on the relevant block explorer */
1679
+ explorer_link: string;
1680
+ }
1681
+ interface StatusTxResponseJson {
1682
+ /** Transfer status for all transfers initiated by the transaction in the order they were initiated. */
1683
+ transfers?: TransferStatusJson[];
1684
+ /** The overall state reflecting the end-to-end status of all transfers initiated by the original transaction. */
1685
+ state: TransactionStateJson;
1686
+ /** Details about the next transfer in the sequence that is preventing further progress, if any. */
1687
+ next_blocking_transfer?: {
1688
+ transfer_sequence_index?: number;
1689
+ } | null;
1690
+ /** Indicates location and denom of transfer asset release. */
1691
+ transfer_asset_release?: TransferAssetReleaseJson;
1692
+ /** Details about any error encountered during the transaction or its subsequent transfers. */
1693
+ error?: StatusErrorJson | null;
1694
+ /**
1695
+ * **DEPRECATED.** This field provides a flat list of all transfer events. For a more structured and detailed status of each transfer leg, including its individual events, please use the 'transfers' array instead. This field may be removed in a future version.
1696
+ * @deprecated
1697
+ */
1698
+ transfer_sequence: TransferEventJson[];
1699
+ /**
1700
+ * A high-level status indicator for the transaction's completion state.
1701
+ * @example "STATE_COMPLETED"
1702
+ */
1703
+ status?: string;
1704
+ }
1705
+ interface IbcOriginAssetsRequestJson {
1706
+ /** Array of assets to get origin assets for */
1707
+ assets?: {
1708
+ /** Denom of the asset */
1709
+ denom?: string;
1710
+ /** Chain-id of the asset */
1711
+ chain_id?: string;
1712
+ }[];
1713
+ }
1714
+ interface AssetsBetweenChainsRequestJson {
1715
+ /** Chain-id of the source chain */
1716
+ source_chain_id?: string;
1717
+ /** Chain-id of the destination chain */
1718
+ dest_chain_id?: string;
1719
+ /**
1720
+ * Whether to include assets without metadata (symbol, name, logo_uri, etc.)
1721
+ * @default false
1722
+ */
1723
+ include_no_metadata_assets?: boolean;
1724
+ /**
1725
+ * Whether to include CW20 tokens
1726
+ * @default false
1727
+ */
1728
+ include_cw20_assets?: boolean;
1729
+ /**
1730
+ * Whether to include EVM tokens
1731
+ * @default false
1732
+ */
1733
+ include_evm_assets?: boolean;
1734
+ /**
1735
+ * Whether to include recommendations requiring multiple transactions to reach the destination
1736
+ * @default false
1737
+ */
1738
+ allow_multi_tx?: boolean;
1739
+ }
1740
+ interface ChainsRequestJson {
1741
+ /** Chain IDs to limit the response to, defaults to all chains if not provided */
1742
+ chain_ids?: string[];
1743
+ /**
1744
+ * Whether to include EVM chains in the response
1745
+ * @example false
1746
+ */
1747
+ include_evm?: boolean;
1748
+ /** Whether to include SVM chains in the response */
1749
+ include_svm?: boolean;
1750
+ /**
1751
+ * Whether to display only testnets in the response
1752
+ * @example false
1753
+ */
1754
+ only_testnets?: boolean;
1755
+ }
1756
+ interface ChainsResponseJson {
1757
+ /** Array of supported chain-ids */
1758
+ chains?: ChainJson[];
1759
+ }
1760
+ interface BalancesResponseJson {
1761
+ chains?: Record<string, BalanceResponseChainEntryJson>;
1762
+ }
1763
+ interface BridgesResponseJson {
1764
+ /** Array of supported bridges */
1765
+ bridges?: BridgeJson[];
1766
+ }
1767
+ interface VenuesRequestJson {
1768
+ /**
1769
+ * Whether to display only venues from testnets in the response
1770
+ * @example false
1771
+ */
1772
+ only_testnets?: boolean;
1773
+ }
1774
+ interface VenuesResponseJson {
1775
+ /** Array of supported swap venues */
1776
+ venues?: SwapVenueJson[];
1777
+ }
1778
+ interface AssetsRequestJson {
1779
+ /** Chain IDs to limit the response to, defaults to all chains if not provided */
1780
+ chain_ids?: string[];
1781
+ /** Whether to restrict assets to those native to their chain */
1782
+ native_only?: boolean;
1783
+ /** Whether to include assets without metadata (symbol, name, logo_uri, etc.) */
1784
+ include_no_metadata_assets?: boolean;
1785
+ /** Whether to include CW20 tokens */
1786
+ include_cw20_assets?: boolean;
1787
+ /** Whether to include EVM tokens */
1788
+ include_evm_assets?: boolean;
1789
+ /** Whether to include SVM tokens */
1790
+ include_svm_assets?: boolean;
1791
+ /**
1792
+ * Whether to display only assets from testnets in the response
1793
+ * @example false
1794
+ */
1795
+ only_testnets?: boolean;
1796
+ }
1797
+ interface AssetsResponseJson {
1798
+ /** Map of chain-ids to array of assets supported on the chain */
1799
+ chain_to_assets_map?: Record<string, {
1800
+ assets?: AssetJson[];
1801
+ }>;
1802
+ }
1803
+ interface AssetsFromSourceResponseJson {
1804
+ /** Array of assets that are reachable from the specified source asset */
1805
+ dest_assets?: Record<string, {
1806
+ assets?: AssetJson[];
1807
+ }>;
1808
+ }
1809
+ type RouteResponseJson = RouteJson;
1810
+ interface MsgsResponseJson {
1811
+ msgs?: MsgJson[];
1812
+ txs?: TxJson[];
1813
+ /** Minimum possible output after all operations, including fees and slippage */
1814
+ min_amount_out?: string;
1815
+ /** Indicates fees incurred in the execution of the transfer */
1816
+ estimated_fees?: FeeJson[];
1817
+ }
1818
+ interface MsgsDirectResponseJson {
1819
+ msgs?: MsgJson[];
1820
+ txs?: TxJson[];
1821
+ /** Minimum possible output after all operations, including fees and slippage */
1822
+ min_amount_out?: string;
1823
+ route?: RouteJson;
1824
+ }
1825
+ interface AssetRecommendationsResponseJson {
1826
+ /** Array of recommendations for each entry in the `request` field. */
1827
+ recommendation_entries?: {
1828
+ recommendations?: AssetRecommendationJson[];
1829
+ error?: ApiErrorJson;
1830
+ }[];
1831
+ }
1832
+ interface SubmitResponseJson {
1833
+ /** Hash of the transaction */
1834
+ tx_hash?: string;
1835
+ /** Link to the transaction on the relevant block explorer */
1836
+ explorer_link?: string;
1837
+ }
1838
+ type TrackResponseJson = TrackTxResponseJson;
1839
+ interface StatusRequestJson {
1840
+ /**
1841
+ * Hex encoded hash of the transaction to query for
1842
+ * @example "EEC65138E6A7BDD047ED0D4BBA249A754F0BBBC7AA976568C4F35A32CD7FB8EB"
1843
+ */
1844
+ tx_hash: string;
1845
+ /**
1846
+ * Chain ID of the transaction
1847
+ * @example "cosmoshub-4"
1848
+ */
1849
+ chain_id: string;
1850
+ }
1851
+ type StatusResponseJson = StatusTxResponseJson;
1852
+ interface IbcOriginAssetsResponseJson {
1853
+ origin_assets?: OptionalAssetJson[];
1854
+ }
1855
+ interface FungibleAssetsBetweenChainsCreateResponseJson {
1856
+ assets_between_chains?: AssetBetweenChainsJson[];
1857
+ }
1858
+
1859
+ export { type AcknowledgementErrorDetailsJson, type AffiliateJson, type ApiErrorJson, type AssetBetweenChainsJson, type AssetJson, type AssetRecommendationJson, type AssetRecommendationsRequestJson, type AssetRecommendationsResponseJson, type AssetsBetweenChainsRequestJson, type AssetsFromSourceRequestJson, type AssetsFromSourceResponseJson, type AssetsRequestJson, type AssetsResponseJson, AutopilotActionJson, type AutopilotMsgJson, type AutopilotMsgWrapperJson, type AxelarTransferInfoJson, type AxelarTransferJson, AxelarTransferStateJson, AxelarTransferTypeJson, type AxelarTransferWrapperJson, type BalanceRequestChainEntryJson, type BalanceResponseChainEntryJson, type BalanceResponseDenomEntryJson, type BalancesRequestJson, type BalancesResponseJson, type BankSendJson, type BankSendWrapperJson, type BridgeJson, BridgeTypeJson, type BridgesResponseJson, type CCTPTransferInfoJson, type CCTPTransferJson, CCTPTransferStateJson, type CCTPTransferTxsJson, type CCTPTransferWrapperJson, type ChainAffiliatesJson, type ChainJson, type ChainTransactionJson, ChainTypeJson, type ChainsRequestJson, type ChainsResponseJson, type ContractCallWithTokenErrorJson, ContractCallWithTokenErrorTypeJson, type ContractCallWithTokenTxsJson, type CosmWasmContractMsgJson, type CosmWasmContractMsgWrapperJson, type CosmosModuleSupportJson, type CosmosMsgJson, type CosmosTxJson, type CosmosTxWrapperJson, type Erc20ApprovalJson, type ErrorDetailJson, type ErrorJson, type EurekaTransferInfoJson, type EurekaTransferJson, type EurekaTransferWrapperJson, type EvmSwapJson, type EvmSwapWrapperJson, type EvmTxJson, type EvmTxWrapperJson, type FeeAssetJson, FeeBehaviorJson, type FeeJson, FeeTypeJson, type FungibleAssetsBetweenChainsCreateResponseJson, type GRPCStatusCodeJson, type GoFastFeeJson, type GoFastTransferInfoJson, type GoFastTransferJson, GoFastTransferStateJson, type GoFastTransferTxsJson, type GoFastTransferWrapperJson, type HyperlaneTransferInfoJson, type HyperlaneTransferJson, HyperlaneTransferStateJson, type HyperlaneTransferTransactionsJson, type HyperlaneTransferWrapperJson, type IBCTransferInfoJson, type IbcCapabilitiesJson, type IbcOriginAssetsRequestJson, type IbcOriginAssetsResponseJson, type LayerZeroTransferInfoJson, type LayerZeroTransferJson, LayerZeroTransferStateJson, type LayerZeroTransferTransactionsJson, type LayerZeroTransferWrapperJson, type MsgJson, type MsgsDirectRequestJson, type MsgsDirectResponseJson, type MsgsRequestJson, type MsgsResponseJson, type MultiChainMsgJson, type MultiChainMsgWrapperJson, type OPInitTransferInfoJson, type OPInitTransferJson, OPInitTransferStateJson, type OPInitTransferTxsJson, type OPInitTransferWrapperJson, type OperationJson, type OptionalAssetJson, type PacketErrorJson, PacketErrorTypeJson, type PacketJson, type PostHandlerJson, ReasonJson, type RecommendationRequestJson, type RouteJson, RoutePriceWarningTypeJson, type RouteRequestJson, type RouteResponseJson, type SendTokenErrorJson, SendTokenErrorTypeJson, type SendTokenTxsJson, type SmartRelayFeeQuoteJson, type SmartSwapExactCoinInJson, type SmartSwapInWrapperJson, type SmartSwapOptionsJson, type StargateTransferInfoJson, type StargateTransferJson, StargateTransferStateJson, type StargateTransferTxsJson, type StargateTransferWrapperJson, type StatusErrorJson, StatusErrorTypeJson, type StatusRequestJson, type StatusResponseJson, type StatusTxResponseJson, type SubmitResponseJson, type SubmitTxRequestJson, type SvmTxJson, type SvmTxWrapperJson, type SwapExactCoinInJson, type SwapExactCoinOutJson, type SwapInWrapperJson, type SwapJson, type SwapOperationJson, type SwapOutWrapperJson, type SwapRouteJson, type SwapVenueJson, type SwapWrapperJson, type TrackResponseJson, type TrackTxRequestJson, type TrackTxResponseJson, type TransactionExecutionErrorDetailsJson, TransactionStateJson, type TransferAssetReleaseJson, type TransferEventJson, type TransferJson, TransferStateJson, type TransferStatusJson, type TransferWrapperJson, type TxJson, type VenuesRequestJson, type VenuesResponseJson };