@skip-go/client 1.5.3 → 1.5.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 (139) hide show
  1. package/dist/cjs/api/getAssets.cjs +4 -4
  2. package/dist/cjs/api/getAssetsBetweenChains.cjs +3 -3
  3. package/dist/cjs/api/getBridges.cjs +3 -3
  4. package/dist/cjs/api/getChains.cjs +3 -3
  5. package/dist/cjs/api/getVenues.cjs +3 -3
  6. package/dist/cjs/api/postAssetsFromSource.cjs +4 -4
  7. package/dist/cjs/api/postBalances.cjs +3 -3
  8. package/dist/cjs/api/postIbcOriginAssets.cjs +3 -3
  9. package/dist/cjs/api/postMessages.cjs +3 -3
  10. package/dist/cjs/api/postMessagesDirect.cjs +3 -3
  11. package/dist/cjs/api/postRecommendAssets.cjs +3 -3
  12. package/dist/cjs/api/postRoute.cjs +3 -3
  13. package/dist/cjs/api/postSubmitTransaction.cjs +3 -3
  14. package/dist/cjs/api/postTrackTransaction.cjs +3 -3
  15. package/dist/cjs/api/postTransactionStatus.cjs +3 -3
  16. package/dist/cjs/{chunk-HFEMNOJS.cjs → chunk-2QPPD3BB.cjs} +3 -0
  17. package/dist/cjs/{chunk-7SZZBUBD.cjs → chunk-2SA3OAIJ.cjs} +3 -3
  18. package/dist/cjs/{chunk-DAPPFYGA.cjs → chunk-3RPOC3AX.cjs} +6 -6
  19. package/dist/cjs/chunk-4BWE7SOV.cjs +68 -0
  20. package/dist/cjs/{chunk-FF5UWES6.cjs → chunk-4GHUZDDP.cjs} +4 -4
  21. package/dist/cjs/{chunk-BT6HQNBF.cjs → chunk-5JS6DMVZ.cjs} +14 -14
  22. package/dist/cjs/{chunk-ND7SYSAP.cjs → chunk-5KWNKICM.cjs} +2 -2
  23. package/dist/cjs/{chunk-BFA7XKVT.cjs → chunk-67WZP4PA.cjs} +52 -52
  24. package/dist/cjs/{chunk-QWQVTCKP.cjs → chunk-7CFJPJJ2.cjs} +10 -10
  25. package/dist/cjs/{chunk-4RLEZ5DV.cjs → chunk-7HDLYDAS.cjs} +10 -10
  26. package/dist/cjs/{chunk-AW6IQ7JH.cjs → chunk-A5S6SIYN.cjs} +2 -2
  27. package/dist/cjs/{chunk-ZBJZTBIW.cjs → chunk-ASDMDYTC.cjs} +2 -2
  28. package/dist/cjs/{chunk-QAHHTQ7V.cjs → chunk-ATW6UNT5.cjs} +4 -4
  29. package/dist/cjs/{chunk-PLO5CVGN.cjs → chunk-AUTOIM57.cjs} +2 -2
  30. package/dist/cjs/{chunk-KWH6S7PB.cjs → chunk-CK6CQWQU.cjs} +6 -6
  31. package/dist/cjs/{chunk-GOQK63JP.cjs → chunk-EGFH6FEG.cjs} +2 -2
  32. package/dist/cjs/{chunk-T5EGKQAT.cjs → chunk-FCTBCHOT.cjs} +2 -2
  33. package/dist/cjs/{chunk-S3BKLN4L.cjs → chunk-IJIBMN2F.cjs} +2 -2
  34. package/dist/cjs/{chunk-262HFM6V.cjs → chunk-JRXPJ45U.cjs} +2 -2
  35. package/dist/cjs/{chunk-3NHW3XWK.cjs → chunk-NCFH5MGF.cjs} +2 -2
  36. package/dist/cjs/{chunk-4MV4GLIA.cjs → chunk-OJISEAMX.cjs} +2 -2
  37. package/dist/cjs/{chunk-JWWJIJUE.cjs → chunk-PDNKS5R2.cjs} +2 -2
  38. package/dist/cjs/{chunk-RBM66GW6.cjs → chunk-UXW4XVHF.cjs} +2 -2
  39. package/dist/cjs/{chunk-3UPZIINE.cjs → chunk-VEEDEDME.cjs} +6 -6
  40. package/dist/cjs/{chunk-U2NZCNKX.cjs → chunk-WRTBZRHG.cjs} +8 -8
  41. package/dist/cjs/{chunk-BCX2D6TE.cjs → chunk-ZHV4J6EM.cjs} +55 -23
  42. package/dist/cjs/index.cjs +81 -77
  43. package/dist/cjs/public-functions/executeMultipleRoutes.cjs +13 -13
  44. package/dist/cjs/public-functions/executeRoute.cjs +13 -13
  45. package/dist/cjs/public-functions/getFeeInfoForChain.cjs +4 -4
  46. package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +5 -5
  47. package/dist/cjs/public-functions/getRouteWithGasOnReceive.cjs +27 -27
  48. package/dist/cjs/public-functions/getSigningStargateClient.cjs +4 -4
  49. package/dist/cjs/public-functions/setApiOptions.cjs +3 -3
  50. package/dist/cjs/public-functions/setClientOptions.cjs +4 -4
  51. package/dist/cjs/public-functions/subscribeToRouteStatus.cjs +8 -8
  52. package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +5 -5
  53. package/dist/cjs/public-functions/waitForTransaction.cjs +9 -5
  54. package/dist/esm/api/getAssets.d.ts +1 -1
  55. package/dist/esm/api/getAssets.js +2 -2
  56. package/dist/esm/api/getAssetsBetweenChains.d.ts +1 -1
  57. package/dist/esm/api/getAssetsBetweenChains.js +2 -2
  58. package/dist/esm/api/getBridges.d.ts +1 -1
  59. package/dist/esm/api/getBridges.js +2 -2
  60. package/dist/esm/api/getChains.d.ts +1 -1
  61. package/dist/esm/api/getChains.js +2 -2
  62. package/dist/esm/api/getVenues.js +2 -2
  63. package/dist/esm/api/postAssetsFromSource.d.ts +1 -1
  64. package/dist/esm/api/postAssetsFromSource.js +3 -3
  65. package/dist/esm/api/postBalances.d.ts +2 -2
  66. package/dist/esm/api/postBalances.js +2 -2
  67. package/dist/esm/api/postIbcOriginAssets.js +2 -2
  68. package/dist/esm/api/postMessages.d.ts +2 -2
  69. package/dist/esm/api/postMessages.js +2 -2
  70. package/dist/esm/api/postMessagesDirect.d.ts +1 -1
  71. package/dist/esm/api/postMessagesDirect.js +2 -2
  72. package/dist/esm/api/postRecommendAssets.d.ts +1 -1
  73. package/dist/esm/api/postRecommendAssets.js +2 -2
  74. package/dist/esm/api/postRoute.d.ts +2 -2
  75. package/dist/esm/api/postRoute.js +2 -2
  76. package/dist/esm/api/postSubmitTransaction.d.ts +2 -2
  77. package/dist/esm/api/postSubmitTransaction.js +2 -2
  78. package/dist/esm/api/postTrackTransaction.d.ts +2 -2
  79. package/dist/esm/api/postTrackTransaction.js +2 -2
  80. package/dist/esm/api/postTransactionStatus.d.ts +72 -68
  81. package/dist/esm/api/postTransactionStatus.js +2 -2
  82. package/dist/esm/{callbacks-CJ_p70xa.d.ts → callbacks-CZNSHCBb.d.ts} +5 -5
  83. package/dist/esm/{chunk-BBEFB277.js → chunk-22LYQHMA.js} +4 -4
  84. package/dist/esm/{chunk-YLVUKXLR.js → chunk-3JHLVPRG.js} +1 -1
  85. package/dist/esm/{chunk-426BGQ4K.js → chunk-763YPOJQ.js} +2 -2
  86. package/dist/esm/{chunk-SA4GETWP.js → chunk-7OHBD7I6.js} +5 -5
  87. package/dist/esm/{chunk-FNTPI2AV.js → chunk-A5NZMSTI.js} +1 -1
  88. package/dist/esm/{chunk-QYIZGNWZ.js → chunk-BJKCMEMJ.js} +1 -1
  89. package/dist/esm/chunk-E4NRDAVO.js +65 -0
  90. package/dist/esm/{chunk-HDW6XFWX.js → chunk-ETBJVFQP.js} +1 -1
  91. package/dist/esm/{chunk-VGCTTJO7.js → chunk-F66EKL3W.js} +3 -0
  92. package/dist/esm/{chunk-HZVXNDMH.js → chunk-G63PICMU.js} +1 -1
  93. package/dist/esm/{chunk-RFJYCJK4.js → chunk-HNU2Y3JI.js} +1 -1
  94. package/dist/esm/{chunk-MYGJGC62.js → chunk-J24LYWJE.js} +1 -1
  95. package/dist/esm/{chunk-H2TTIB5K.js → chunk-KXS5UH7E.js} +2 -2
  96. package/dist/esm/{chunk-VWOMKMH2.js → chunk-KZKAL5ZN.js} +1 -1
  97. package/dist/esm/{chunk-L233BZ4I.js → chunk-LAGER3PR.js} +7 -7
  98. package/dist/esm/{chunk-3WFXBPS2.js → chunk-N4PTRCNT.js} +1 -1
  99. package/dist/esm/{chunk-IHSSWY3M.js → chunk-P36PE4CR.js} +1 -1
  100. package/dist/esm/{chunk-UBVBVJPY.js → chunk-QYXGDTUU.js} +1 -1
  101. package/dist/esm/{chunk-AUNRER4I.js → chunk-SXBG57J3.js} +1 -1
  102. package/dist/esm/{chunk-HELQO7PA.js → chunk-TGTOO2ZQ.js} +2 -2
  103. package/dist/esm/{chunk-LBS7KX5I.js → chunk-TON3V7SK.js} +2 -2
  104. package/dist/esm/{chunk-KXQ2ASHQ.js → chunk-UHCKOKBM.js} +1 -1
  105. package/dist/esm/{chunk-YGQ4NKTM.js → chunk-UN46DUOV.js} +1 -1
  106. package/dist/esm/{chunk-GLM7QWYT.js → chunk-VMEHGKH7.js} +1 -1
  107. package/dist/esm/{chunk-5IXH2QPF.js → chunk-WRPS6WK2.js} +52 -20
  108. package/dist/esm/{chunk-44IX6KPJ.js → chunk-XNU3TKKM.js} +1 -1
  109. package/dist/esm/{client-types-uXKJQRqe.d.ts → client-types-BX_0924O.d.ts} +1 -1
  110. package/dist/esm/{generateApi-BMFrG4FZ.d.ts → generateApi-Clc85Kxw.d.ts} +1 -1
  111. package/dist/esm/index.d.ts +9 -7
  112. package/dist/esm/index.js +26 -26
  113. package/dist/esm/public-functions/executeMultipleRoutes.d.ts +4 -4
  114. package/dist/esm/public-functions/executeMultipleRoutes.js +12 -12
  115. package/dist/esm/public-functions/executeRoute.d.ts +4 -4
  116. package/dist/esm/public-functions/executeRoute.js +12 -12
  117. package/dist/esm/public-functions/getCosmosGasAmountForMessage.d.ts +1 -1
  118. package/dist/esm/public-functions/getEvmGasAmountForMessage.d.ts +3 -3
  119. package/dist/esm/public-functions/getFeeInfoForChain.d.ts +1 -1
  120. package/dist/esm/public-functions/getFeeInfoForChain.js +3 -3
  121. package/dist/esm/public-functions/getRecommendedGasPrice.js +4 -4
  122. package/dist/esm/public-functions/getRouteWithGasOnReceive.d.ts +1 -1
  123. package/dist/esm/public-functions/getRouteWithGasOnReceive.js +26 -26
  124. package/dist/esm/public-functions/getSigningStargateClient.js +3 -3
  125. package/dist/esm/public-functions/setApiOptions.d.ts +1 -1
  126. package/dist/esm/public-functions/setApiOptions.js +2 -2
  127. package/dist/esm/public-functions/setClientOptions.d.ts +4 -4
  128. package/dist/esm/public-functions/setClientOptions.js +3 -3
  129. package/dist/esm/public-functions/subscribeToRouteStatus.d.ts +4 -4
  130. package/dist/esm/public-functions/subscribeToRouteStatus.js +4 -4
  131. package/dist/esm/public-functions/validateCosmosGasBalance.d.ts +4 -4
  132. package/dist/esm/public-functions/validateCosmosGasBalance.js +4 -4
  133. package/dist/esm/public-functions/waitForTransaction.d.ts +712 -74
  134. package/dist/esm/public-functions/waitForTransaction.js +4 -4
  135. package/dist/esm/{setClientOptions-D1qgaOqC.d.ts → setClientOptions-DD5Mzkw_.d.ts} +3 -3
  136. package/dist/esm/{swaggerTypes-Cop47I0X.d.ts → swaggerTypes-Dr4I6vW2.d.ts} +3 -1
  137. package/package.json +1 -1
  138. package/dist/cjs/chunk-4NGHNHAS.cjs +0 -46
  139. package/dist/esm/chunk-TNIGHYH2.js +0 -44
@@ -1,5 +1,5 @@
1
- import { b as TransactionState, P as PacketErrorType, T as TransferState, h as AxelarTransferState, C as ContractCallWithTokenErrorType, c as SendTokenErrorType, A as AxelarTransferType, g as CCTPTransferState, H as HyperlaneTransferState, O as OPInitTransferState, f as StargateTransferState, G as GoFastTransferState, L as LayerZeroTransferState, S as StatusErrorType } from '../swaggerTypes-Cop47I0X.js';
2
- import { a as ApiResponse } from '../generateApi-BMFrG4FZ.js';
1
+ import { b as TransactionState, P as PacketErrorType, T as TransferState, h as AxelarTransferState, C as ContractCallWithTokenErrorType, c as SendTokenErrorType, A as AxelarTransferType, g as CCTPTransferState, H as HyperlaneTransferState, O as OPInitTransferState, f as StargateTransferState, G as GoFastTransferState, L as LayerZeroTransferState, S as StatusErrorType } from '../swaggerTypes-Dr4I6vW2.js';
2
+ import { a as ApiResponse } from '../generateApi-Clc85Kxw.js';
3
3
  import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
4
4
 
5
5
  declare const transactionStatus: (params?: ({
@@ -56,39 +56,41 @@ declare const transactionStatus: (params?: ({
56
56
  fromChainId: string;
57
57
  state: AxelarTransferState;
58
58
  txs: {
59
- approveTx?: {
60
- chainId?: string | undefined;
61
- explorerLink: string;
62
- txHash?: string | undefined;
63
- onChainAt?: string | undefined;
64
- } | undefined;
65
- confirmTx?: {
66
- chainId?: string | undefined;
67
- explorerLink: string;
68
- txHash?: string | undefined;
69
- onChainAt?: string | undefined;
70
- } | undefined;
71
- error?: {
72
- message?: string | undefined;
73
- type?: ContractCallWithTokenErrorType | undefined;
74
- } | undefined;
75
- executeTx?: {
76
- chainId?: string | undefined;
77
- explorerLink: string;
78
- txHash?: string | undefined;
79
- onChainAt?: string | undefined;
80
- } | undefined;
81
- gasPaidTx?: {
82
- chainId?: string | undefined;
83
- explorerLink: string;
84
- txHash?: string | undefined;
85
- onChainAt?: string | undefined;
86
- } | undefined;
87
- sendTx?: {
88
- chainId?: string | undefined;
89
- explorerLink: string;
90
- txHash?: string | undefined;
91
- onChainAt?: string | undefined;
59
+ contractCallWithTokenTxs?: {
60
+ approveTx?: {
61
+ chainId?: string | undefined;
62
+ explorerLink: string;
63
+ txHash?: string | undefined;
64
+ onChainAt?: string | undefined;
65
+ } | undefined;
66
+ confirmTx?: {
67
+ chainId?: string | undefined;
68
+ explorerLink: string;
69
+ txHash?: string | undefined;
70
+ onChainAt?: string | undefined;
71
+ } | undefined;
72
+ error?: {
73
+ message?: string | undefined;
74
+ type?: ContractCallWithTokenErrorType | undefined;
75
+ } | undefined;
76
+ executeTx?: {
77
+ chainId?: string | undefined;
78
+ explorerLink: string;
79
+ txHash?: string | undefined;
80
+ onChainAt?: string | undefined;
81
+ } | undefined;
82
+ gasPaidTx?: {
83
+ chainId?: string | undefined;
84
+ explorerLink: string;
85
+ txHash?: string | undefined;
86
+ onChainAt?: string | undefined;
87
+ } | undefined;
88
+ sendTx?: {
89
+ chainId?: string | undefined;
90
+ explorerLink: string;
91
+ txHash?: string | undefined;
92
+ onChainAt?: string | undefined;
93
+ } | undefined;
92
94
  } | undefined;
93
95
  } | {
94
96
  confirmTx?: {
@@ -383,39 +385,41 @@ declare const transactionStatus: (params?: ({
383
385
  fromChainId: string;
384
386
  state: AxelarTransferState;
385
387
  txs: {
386
- approveTx?: {
387
- chainId?: string | undefined;
388
- explorerLink: string;
389
- txHash?: string | undefined;
390
- onChainAt?: string | undefined;
391
- } | undefined;
392
- confirmTx?: {
393
- chainId?: string | undefined;
394
- explorerLink: string;
395
- txHash?: string | undefined;
396
- onChainAt?: string | undefined;
397
- } | undefined;
398
- error?: {
399
- message?: string | undefined;
400
- type?: ContractCallWithTokenErrorType | undefined;
401
- } | undefined;
402
- executeTx?: {
403
- chainId?: string | undefined;
404
- explorerLink: string;
405
- txHash?: string | undefined;
406
- onChainAt?: string | undefined;
407
- } | undefined;
408
- gasPaidTx?: {
409
- chainId?: string | undefined;
410
- explorerLink: string;
411
- txHash?: string | undefined;
412
- onChainAt?: string | undefined;
413
- } | undefined;
414
- sendTx?: {
415
- chainId?: string | undefined;
416
- explorerLink: string;
417
- txHash?: string | undefined;
418
- onChainAt?: string | undefined;
388
+ contractCallWithTokenTxs?: {
389
+ approveTx?: {
390
+ chainId?: string | undefined;
391
+ explorerLink: string;
392
+ txHash?: string | undefined;
393
+ onChainAt?: string | undefined;
394
+ } | undefined;
395
+ confirmTx?: {
396
+ chainId?: string | undefined;
397
+ explorerLink: string;
398
+ txHash?: string | undefined;
399
+ onChainAt?: string | undefined;
400
+ } | undefined;
401
+ error?: {
402
+ message?: string | undefined;
403
+ type?: ContractCallWithTokenErrorType | undefined;
404
+ } | undefined;
405
+ executeTx?: {
406
+ chainId?: string | undefined;
407
+ explorerLink: string;
408
+ txHash?: string | undefined;
409
+ onChainAt?: string | undefined;
410
+ } | undefined;
411
+ gasPaidTx?: {
412
+ chainId?: string | undefined;
413
+ explorerLink: string;
414
+ txHash?: string | undefined;
415
+ onChainAt?: string | undefined;
416
+ } | undefined;
417
+ sendTx?: {
418
+ chainId?: string | undefined;
419
+ explorerLink: string;
420
+ txHash?: string | undefined;
421
+ onChainAt?: string | undefined;
422
+ } | undefined;
419
423
  } | undefined;
420
424
  } | {
421
425
  confirmTx?: {
@@ -1,3 +1,3 @@
1
- export { transactionStatus } from '../chunk-3WFXBPS2.js';
2
- import '../chunk-VGCTTJO7.js';
1
+ export { transactionStatus } from '../chunk-N4PTRCNT.js';
2
+ import '../chunk-F66EKL3W.js';
3
3
  import '../chunk-HP5EMWC6.js';
@@ -1,7 +1,7 @@
1
1
  import { TxStatusResponse } from './api/postTransactionStatus.js';
2
- import { T as TransferState, h as AxelarTransferState, g as CCTPTransferState, H as HyperlaneTransferState, O as OPInitTransferState, G as GoFastTransferState, f as StargateTransferState, L as LayerZeroTransferState, b as TransactionState, bq as RouteResponse, a6 as CosmosMsg, ax as PostHandler, ay as Route, aV as TransferAssetRelease, aW as TransferStatus, a3 as Erc20Approval } from './swaggerTypes-Cop47I0X.js';
3
- import { A as ApiRequest } from './generateApi-BMFrG4FZ.js';
4
- import { S as SignerGetters, b as GasOptions, B as BaseSettings, U as UserAddress, T as TxResult } from './client-types-uXKJQRqe.js';
2
+ import { T as TransferState, h as AxelarTransferState, g as CCTPTransferState, H as HyperlaneTransferState, O as OPInitTransferState, G as GoFastTransferState, f as StargateTransferState, L as LayerZeroTransferState, b as TransactionState, bq as RouteResponse, a6 as CosmosMsg, ax as PostHandler, ay as Route, aV as TransferAssetRelease, aW as TransferStatus, a3 as Erc20Approval } from './swaggerTypes-Dr4I6vW2.js';
3
+ import { A as ApiRequest } from './generateApi-Clc85Kxw.js';
4
+ import { S as SignerGetters, b as GasOptions, B as BaseSettings, U as UserAddress, T as TxResult } from './client-types-BX_0924O.js';
5
5
 
6
6
  type OverallStatus = "pending" | "success" | "failed";
7
7
  declare function getTransferEventsFromTxStatusResponse(txStatusResponse?: TxStatusResponse[]): {
@@ -73,7 +73,7 @@ type TransactionDetails = {
73
73
  routeKeyToStatus?: Record<string, TransactionStatus>;
74
74
  routeKey?: string;
75
75
  };
76
- type SimpleRoute = Partial<Pick<Route, "usdAmountIn" | "usdAmountOut" | "amountIn" | "amountOut" | "sourceAssetDenom" | "sourceAssetChainId" | "destAssetDenom" | "destAssetChainId" | "estimatedRouteDurationSeconds">>;
76
+ type SimpleRoute = Partial<Pick<Route, "usdAmountIn" | "usdAmountOut" | "amountIn" | "amountOut" | "sourceAssetDenom" | "sourceAssetChainId" | "destAssetDenom" | "destAssetChainId" | "estimatedRouteDurationSeconds" | "operations">>;
77
77
  type RouteDetails = {
78
78
  id: string;
79
79
  timestamp: number;
@@ -155,4 +155,4 @@ type TransactionCallbacks = {
155
155
  }) => Promise<void>;
156
156
  };
157
157
 
158
- export { type ClientTransferEvent as C, type ExecuteRouteOptions as E, type RouteDetails as R, type TransactionDetails as T, type RouteStatus as a, type TransactionStatus as b, type TransferEventStatus as c, TransferType as d, executeRoute as e, getSimpleOverallStatus as f, getTransferEventsFromTxStatusResponse as g, type TransactionCallbacks as h, getTransactionStatus as i, type subscribeToRouteStatusProps as j, type executeAndSubscribeToRouteStatusProps as k, executeAndSubscribeToRouteStatus as l, subscribeToRouteStatus as s, updateRouteDetails as u };
158
+ export { type ClientTransferEvent as C, type ExecuteRouteOptions as E, type OverallStatus as O, type RouteDetails as R, type TransactionDetails as T, type RouteStatus as a, type TransactionStatus as b, type TransferEventStatus as c, TransferType as d, executeRoute as e, getSimpleOverallStatus as f, getTransferEventsFromTxStatusResponse as g, type TransactionCallbacks as h, getTransactionStatus as i, type subscribeToRouteStatusProps as j, type executeAndSubscribeToRouteStatusProps as k, executeAndSubscribeToRouteStatus as l, subscribeToRouteStatus as s, updateRouteDetails as u };
@@ -1,7 +1,7 @@
1
- import { createValidAddressList, executeTransactions } from './chunk-L233BZ4I.js';
2
- import { updateRouteDetails, executeAndSubscribeToRouteStatus } from './chunk-5IXH2QPF.js';
3
- import { messages } from './chunk-IHSSWY3M.js';
4
- import { ApiState } from './chunk-VGCTTJO7.js';
1
+ import { createValidAddressList, executeTransactions } from './chunk-LAGER3PR.js';
2
+ import { updateRouteDetails, executeAndSubscribeToRouteStatus } from './chunk-WRPS6WK2.js';
3
+ import { messages } from './chunk-P36PE4CR.js';
4
+ import { ApiState } from './chunk-F66EKL3W.js';
5
5
 
6
6
  // src/public-functions/executeRoute.ts
7
7
  var executeRoute = async (options) => {
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-VGCTTJO7.js';
1
+ import { api } from './chunk-F66EKL3W.js';
2
2
 
3
3
  // src/api/getBridges.ts
4
4
  var bridges = api({
@@ -1,6 +1,6 @@
1
1
  import { bignumber_default } from './chunk-KS764SOZ.js';
2
- import { route } from './chunk-VWOMKMH2.js';
3
- import { ClientState, chains, assets } from './chunk-MYGJGC62.js';
2
+ import { route } from './chunk-KZKAL5ZN.js';
3
+ import { ClientState, chains, assets } from './chunk-J24LYWJE.js';
4
4
  import { defineChain, createPublicClient, fallback, http } from 'viem';
5
5
  import { arbitrum, avalanche, base, bsc, celo, fantom, filecoin, kava, linea, mainnet, manta, moonbeam, optimism, polygon, polygonMumbai, sepolia, avalancheFuji, baseSepolia, optimismSepolia, arbitrumSepolia, blast, blastSepolia, forma, sei, bscTestnet, fantomTestnet, kavaTestnet, lineaSepolia, mantaSepoliaTestnet } from 'viem/chains';
6
6
 
@@ -1,8 +1,8 @@
1
- import { createValidAddressList, executeTransactions } from './chunk-L233BZ4I.js';
2
- import { updateRouteDetails, executeAndSubscribeToRouteStatus } from './chunk-5IXH2QPF.js';
3
- import { messages } from './chunk-IHSSWY3M.js';
4
- import { trackTransaction } from './chunk-AUNRER4I.js';
5
- import { ApiState } from './chunk-VGCTTJO7.js';
1
+ import { createValidAddressList, executeTransactions } from './chunk-LAGER3PR.js';
2
+ import { updateRouteDetails, executeAndSubscribeToRouteStatus } from './chunk-WRPS6WK2.js';
3
+ import { messages } from './chunk-P36PE4CR.js';
4
+ import { trackTransaction } from './chunk-SXBG57J3.js';
5
+ import { ApiState } from './chunk-F66EKL3W.js';
6
6
 
7
7
  // src/public-functions/executeMultipleRoutes.ts
8
8
  var executeMultipleRoutes = async (options) => {
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-VGCTTJO7.js';
1
+ import { api } from './chunk-F66EKL3W.js';
2
2
 
3
3
  // src/api/getVenues.ts
4
4
  var venues = api({
@@ -1,6 +1,6 @@
1
1
  import { DEFAULT_GAS_DENOM_OVERRIDES } from './chunk-SWYON2RG.js';
2
2
  import { chains } from './chunk-O4J7DHZA.js';
3
- import { ClientState } from './chunk-MYGJGC62.js';
3
+ import { ClientState } from './chunk-J24LYWJE.js';
4
4
 
5
5
  // src/private-functions/getDefaultGasTokenForChain.ts
6
6
  var getDefaultGasTokenForChain = async (chainId) => {
@@ -0,0 +1,65 @@
1
+ import { trackTransaction } from './chunk-SXBG57J3.js';
2
+ import { transactionStatus } from './chunk-N4PTRCNT.js';
3
+ import { wait } from './chunk-F66EKL3W.js';
4
+
5
+ // src/public-functions/waitForTransaction.ts
6
+ var waitForTransaction = async ({
7
+ chainId,
8
+ txHash,
9
+ explorerLink,
10
+ doNotTrack = false,
11
+ onStatusUpdated,
12
+ onError,
13
+ onTransactionTracked,
14
+ isCancelled,
15
+ ...trackTxPollingOptions
16
+ }) => {
17
+ try {
18
+ if (!explorerLink && !doNotTrack) {
19
+ const response = await trackTransaction({
20
+ chainId,
21
+ txHash,
22
+ ...trackTxPollingOptions
23
+ });
24
+ explorerLink = response.explorerLink;
25
+ await onTransactionTracked?.({ txHash, chainId, explorerLink });
26
+ }
27
+ } catch (error) {
28
+ console.warn(`track failed for txHash:${txHash}, chainId: ${chainId}`);
29
+ }
30
+ while (true) {
31
+ if (isCancelled?.()) {
32
+ throw new Error("waitForTransaction was aborted");
33
+ }
34
+ try {
35
+ const txStatusResponse = await transactionStatus({
36
+ chainId,
37
+ txHash
38
+ });
39
+ onStatusUpdated?.(txStatusResponse);
40
+ if (txStatusResponse.state === "STATE_COMPLETED_SUCCESS") {
41
+ return txStatusResponse;
42
+ }
43
+ if (txStatusResponse.state === "STATE_COMPLETED_ERROR") {
44
+ throw new Error(`${txStatusResponse.error?.type}: ${txStatusResponse.error?.message}`);
45
+ }
46
+ if (txStatusResponse.state === "STATE_ABANDONED") {
47
+ throw new Error("Tracking for the transaction has been abandoned");
48
+ }
49
+ await wait(1e3);
50
+ } catch (error) {
51
+ onError?.(error);
52
+ throw error;
53
+ }
54
+ }
55
+ };
56
+ var waitForTransactionWithCancel = (props) => {
57
+ let isCancelled = false;
58
+ const cancel = () => {
59
+ isCancelled = true;
60
+ };
61
+ const wrappedPromise = waitForTransaction({ ...props, isCancelled: () => isCancelled });
62
+ return { promise: wrappedPromise, cancel };
63
+ };
64
+
65
+ export { waitForTransaction, waitForTransactionWithCancel };
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-VGCTTJO7.js';
1
+ import { api } from './chunk-F66EKL3W.js';
2
2
 
3
3
  // src/api/postSubmitTransaction.ts
4
4
  var submitTransaction = api({
@@ -49,6 +49,9 @@ var createRequestClient = ({ apiUrl, apiKey, apiHeaders }) => {
49
49
  if (body?.code) {
50
50
  error.code = body.code;
51
51
  }
52
+ if (body?.details) {
53
+ error.details = body.details;
54
+ }
52
55
  throw error;
53
56
  }
54
57
  return body;
@@ -1,5 +1,5 @@
1
1
  import { BigNumber } from './chunk-KS764SOZ.js';
2
- import { getFeeInfoForChain } from './chunk-QYIZGNWZ.js';
2
+ import { getFeeInfoForChain } from './chunk-BJKCMEMJ.js';
3
3
  import { Decimal } from '@cosmjs/math';
4
4
  import { GasPrice } from '@cosmjs/stargate';
5
5
 
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-VGCTTJO7.js';
1
+ import { api } from './chunk-F66EKL3W.js';
2
2
 
3
3
  // src/api/postRecommendAssets.ts
4
4
  var recommendAssets = api({
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-VGCTTJO7.js';
1
+ import { api } from './chunk-F66EKL3W.js';
2
2
 
3
3
  // src/private-functions/getMainnetAndTestnetChains.ts
4
4
  var getMainnetAndTestnetChains = async (apiOptions) => {
@@ -1,7 +1,7 @@
1
1
  import { getCosmosGasAmountForMessage } from './chunk-GLH7IRLX.js';
2
2
  import { BigNumber } from './chunk-KS764SOZ.js';
3
- import { getSigningStargateClient } from './chunk-GLM7QWYT.js';
4
- import { ClientState, balances } from './chunk-MYGJGC62.js';
3
+ import { getSigningStargateClient } from './chunk-VMEHGKH7.js';
4
+ import { ClientState, balances } from './chunk-J24LYWJE.js';
5
5
  import { GasPrice, calculateFee } from '@cosmjs/stargate';
6
6
  import { Decimal } from '@cosmjs/math';
7
7
 
@@ -1,4 +1,4 @@
1
- import { ApiState, api } from './chunk-VGCTTJO7.js';
1
+ import { ApiState, api } from './chunk-F66EKL3W.js';
2
2
 
3
3
  // src/api/postRoute.ts
4
4
  var route = async (request) => {
@@ -1,15 +1,15 @@
1
- import { updateRouteDetails } from './chunk-5IXH2QPF.js';
2
- import { validateCosmosGasBalance } from './chunk-H2TTIB5K.js';
1
+ import { updateRouteDetails } from './chunk-WRPS6WK2.js';
2
+ import { validateCosmosGasBalance } from './chunk-KXS5UH7E.js';
3
3
  import { getEncodeObjectFromCosmosMessage } from './chunk-GLH7IRLX.js';
4
4
  import { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
5
5
  import { BigNumber } from './chunk-KS764SOZ.js';
6
6
  import { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
7
- import { getRpcEndpointForChain, accountParser, getSigningStargateClient } from './chunk-GLM7QWYT.js';
7
+ import { getRpcEndpointForChain, accountParser, getSigningStargateClient } from './chunk-VMEHGKH7.js';
8
8
  import { chains, findFirstWorkingEndpoint, getIsEthermint, getIsInitia } from './chunk-O4J7DHZA.js';
9
- import { submitTransaction } from './chunk-HDW6XFWX.js';
10
- import { venues } from './chunk-FNTPI2AV.js';
11
- import { ClientState, balances } from './chunk-MYGJGC62.js';
12
- import { wait, toCamel } from './chunk-VGCTTJO7.js';
9
+ import { submitTransaction } from './chunk-ETBJVFQP.js';
10
+ import { venues } from './chunk-A5NZMSTI.js';
11
+ import { ClientState, balances } from './chunk-J24LYWJE.js';
12
+ import { wait, toCamel } from './chunk-F66EKL3W.js';
13
13
  import { StargateClient } from '@cosmjs/stargate';
14
14
  import { TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx.js';
15
15
  import { isOfflineDirectSigner, makeAuthInfoBytes, makeSignDoc, encodePubkey } from '@cosmjs/proto-signing';
@@ -1,4 +1,4 @@
1
- import { pollingApi } from './chunk-VGCTTJO7.js';
1
+ import { pollingApi } from './chunk-F66EKL3W.js';
2
2
 
3
3
  // src/api/postTransactionStatus.ts
4
4
  var transactionStatus = pollingApi({
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-VGCTTJO7.js';
1
+ import { api } from './chunk-F66EKL3W.js';
2
2
 
3
3
  // src/utils/filterMessagesRequest.ts
4
4
  var filterMessagesRequest = (request) => {
@@ -1,4 +1,4 @@
1
- import { createRequestClient, ApiState } from './chunk-VGCTTJO7.js';
1
+ import { createRequestClient, ApiState } from './chunk-F66EKL3W.js';
2
2
 
3
3
  // src/public-functions/setApiOptions.ts
4
4
  var setApiOptions = (options = {}) => {
@@ -1,4 +1,4 @@
1
- import { pollingApi } from './chunk-VGCTTJO7.js';
1
+ import { pollingApi } from './chunk-F66EKL3W.js';
2
2
 
3
3
  // src/api/postTrackTransaction.ts
4
4
  var trackTransaction = ({
@@ -1,5 +1,5 @@
1
- import { transformAssetsMap } from './chunk-MYGJGC62.js';
2
- import { api } from './chunk-VGCTTJO7.js';
1
+ import { transformAssetsMap } from './chunk-J24LYWJE.js';
2
+ import { api } from './chunk-F66EKL3W.js';
3
3
 
4
4
  // src/api/postAssetsFromSource.ts
5
5
  var assetsFromSource = api({
@@ -1,7 +1,7 @@
1
1
  import { MsgUpdateSignatureThreshold, MsgSetMaxBurnAmountPerMessage, MsgUpdateMaxMessageBodySize, MsgUpdatePauser, MsgUpdateTokenController, MsgUpdateAttesterManager, MsgUpdateOwner, MsgUnpauseSendingAndReceivingMessages, MsgUnpauseBurningAndMinting, MsgUnlinkTokenPair, MsgSendMessageWithCaller, MsgSendMessage, MsgReplaceMessage, MsgReplaceDepositForBurn, MsgRemoveRemoteTokenMessenger, MsgReceiveMessage, MsgPauseSendingAndReceivingMessages, MsgPauseBurningAndMinting, MsgLinkTokenPair, MsgEnableAttester, MsgDisableAttester, MsgDepositForBurnWithCaller, MsgDepositForBurn, MsgAddRemoteTokenMessenger, MsgAcceptOwner, MsgExecute, MsgInitiateTokenDeposit, Coin, Timestamp, Period } from './chunk-F2LQB2DP.js';
2
2
  import { isSet, Long, toTimestamp, fromTimestamp, fromJsonTimestamp } from './chunk-RTDD7HZ3.js';
3
- import { ClientState } from './chunk-MYGJGC62.js';
4
- import { createRequestClient, ApiState } from './chunk-VGCTTJO7.js';
3
+ import { ClientState } from './chunk-J24LYWJE.js';
4
+ import { createRequestClient, ApiState } from './chunk-F66EKL3W.js';
5
5
  import { AminoTypes, createDefaultAminoConverters, defaultRegistryTypes } from '@cosmjs/stargate';
6
6
  import { createWasmAminoConverters } from '@cosmjs/cosmwasm-stargate';
7
7
  import { Registry } from '@cosmjs/proto-signing';
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-VGCTTJO7.js';
1
+ import { api } from './chunk-F66EKL3W.js';
2
2
 
3
3
  // src/api/getAssetsBetweenChains.ts
4
4
  var assetsBetweenChains = api({
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-VGCTTJO7.js';
1
+ import { api } from './chunk-F66EKL3W.js';
2
2
 
3
3
  // src/api/postIbcOriginAssets.ts
4
4
  var ibcOriginAssets = api({
@@ -1,6 +1,6 @@
1
1
  import { BaseAccount as BaseAccount$1, base64FromBytes, bytesFromBase64, isSet } from './chunk-RTDD7HZ3.js';
2
2
  import { chains, findFirstWorkingEndpoint } from './chunk-O4J7DHZA.js';
3
- import { ClientState } from './chunk-MYGJGC62.js';
3
+ import { ClientState } from './chunk-J24LYWJE.js';
4
4
  import { accountFromAny, SigningStargateClient } from '@cosmjs/stargate';
5
5
  import { assertDefinedAndNotNull } from '@cosmjs/utils';
6
6
  import { BinaryWriter, BinaryReader } from 'cosmjs-types/binary.js';
@@ -1,6 +1,6 @@
1
- import { trackTransaction } from './chunk-AUNRER4I.js';
2
- import { transactionStatus } from './chunk-3WFXBPS2.js';
3
- import { wait } from './chunk-VGCTTJO7.js';
1
+ import { trackTransaction } from './chunk-SXBG57J3.js';
2
+ import { transactionStatus } from './chunk-N4PTRCNT.js';
3
+ import { wait } from './chunk-F66EKL3W.js';
4
4
  import { v4 } from 'uuid';
5
5
 
6
6
  // src/utils/clientType.ts
@@ -45,7 +45,7 @@ function getClientTransferEvent(transferEvent) {
45
45
  };
46
46
  }
47
47
  return {
48
- explorerLink: ibcTransfer.packetTxs.receiveTx?.explorerLink,
48
+ explorerLink: ibcTransfer.packetTxs.receiveTx?.explorerLink ?? ibcTransfer.packetTxs.timeoutTx?.explorerLink,
49
49
  txHash: ibcTransfer.packetTxs.receiveTx?.txHash
50
50
  };
51
51
  case "eurekaTransfer" /* eurekaTransfer */:
@@ -56,7 +56,7 @@ function getClientTransferEvent(transferEvent) {
56
56
  };
57
57
  }
58
58
  return {
59
- explorerLink: eurekaTransfer.packetTxs.receiveTx?.explorerLink,
59
+ explorerLink: eurekaTransfer.packetTxs.receiveTx?.explorerLink ?? eurekaTransfer.packetTxs.timeoutTx?.explorerLink,
60
60
  txHash: eurekaTransfer.packetTxs.receiveTx?.txHash
61
61
  };
62
62
  case "goFastTransfer" /* goFastTransfer */:
@@ -67,13 +67,21 @@ function getClientTransferEvent(transferEvent) {
67
67
  };
68
68
  }
69
69
  return {
70
- explorerLink: goFastTransfer.txs.orderFilledTx?.explorerLink,
70
+ explorerLink: goFastTransfer.txs.orderFilledTx?.explorerLink ?? goFastTransfer.txs.orderTimeoutTx?.explorerLink ?? goFastTransfer.txs.orderRefundedTx?.explorerLink,
71
71
  txHash: goFastTransfer.txs.orderFilledTx?.txHash
72
72
  };
73
73
  case "axelarTransfer" /* axelarTransfer */:
74
+ const sendTokenTxs = axelarTransfer.txs;
75
+ const contractCallWithTokenTxs = axelarTransfer.txs?.contractCallWithTokenTxs;
76
+ if (type === "send") {
77
+ return {
78
+ explorerLink: sendTokenTxs?.sendTx?.explorerLink ?? contractCallWithTokenTxs?.sendTx?.explorerLink,
79
+ txHash: sendTokenTxs?.sendTx?.txHash ?? contractCallWithTokenTxs?.sendTx?.txHash
80
+ };
81
+ }
74
82
  return {
75
- explorerLink: axelarTransfer?.axelarScanLink,
76
- txHash: axelarTransfer?.txs?.sendTx?.txHash
83
+ explorerLink: sendTokenTxs?.executeTx?.explorerLink ?? contractCallWithTokenTxs?.executeTx?.explorerLink,
84
+ txHash: sendTokenTxs?.executeTx?.txHash ?? contractCallWithTokenTxs?.executeTx?.txHash
77
85
  };
78
86
  default:
79
87
  if (type === "send") {
@@ -90,16 +98,39 @@ function getClientTransferEvent(transferEvent) {
90
98
  };
91
99
  const getDuration = () => {
92
100
  switch (transferType) {
93
- case "ibcTransfer" /* ibcTransfer */:
94
- return new Date(ibcTransfer.packetTxs.receiveTx?.onChainAt ?? 0).getTime() - new Date(ibcTransfer.packetTxs.sendTx?.onChainAt ?? 0).getTime();
95
- case "eurekaTransfer" /* eurekaTransfer */:
96
- return new Date(eurekaTransfer.packetTxs.receiveTx?.onChainAt ?? 0).getTime() - new Date(eurekaTransfer.packetTxs.sendTx?.onChainAt ?? 0).getTime();
97
- case "goFastTransfer" /* goFastTransfer */:
98
- return new Date(goFastTransfer.txs.orderFilledTx?.onChainAt ?? 0).getTime() - new Date(goFastTransfer.txs.orderSubmittedTx?.onChainAt ?? 0).getTime();
99
- case "axelarTransfer" /* axelarTransfer */:
100
- return new Date(axelarTransfer?.txs?.confirmTx?.onChainAt ?? 0).getTime() - new Date(axelarTransfer?.txs?.sendTx?.onChainAt ?? 0).getTime();
101
- default:
102
- return new Date(combinedTransferEvent[transferType]?.txs?.receiveTx?.onChainAt ?? 0).getTime() - new Date(combinedTransferEvent[transferType]?.txs?.sendTx?.onChainAt ?? 0).getTime();
101
+ case "ibcTransfer" /* ibcTransfer */: {
102
+ const sendTime = ibcTransfer.packetTxs.sendTx?.onChainAt;
103
+ const receiveTime = ibcTransfer.packetTxs.receiveTx?.onChainAt;
104
+ if (!sendTime || !receiveTime) return;
105
+ return new Date(receiveTime).getTime() - new Date(sendTime).getTime();
106
+ }
107
+ case "eurekaTransfer" /* eurekaTransfer */: {
108
+ const sendTime = eurekaTransfer.packetTxs.sendTx?.onChainAt;
109
+ const receiveTime = eurekaTransfer.packetTxs.receiveTx?.onChainAt;
110
+ if (!sendTime || !receiveTime) return;
111
+ return new Date(receiveTime).getTime() - new Date(sendTime).getTime();
112
+ }
113
+ case "goFastTransfer" /* goFastTransfer */: {
114
+ const submitTime = goFastTransfer.txs.orderSubmittedTx?.onChainAt;
115
+ const filledTime = goFastTransfer.txs.orderFilledTx?.onChainAt;
116
+ if (!submitTime || !filledTime) return;
117
+ return new Date(filledTime).getTime() - new Date(submitTime).getTime();
118
+ }
119
+ case "axelarTransfer" /* axelarTransfer */: {
120
+ const sendTokenTxs = axelarTransfer.txs;
121
+ const contractCallWithTokenTxs = axelarTransfer.txs?.contractCallWithTokenTxs;
122
+ const sendTime = sendTokenTxs?.sendTx?.onChainAt ?? contractCallWithTokenTxs?.sendTx?.onChainAt;
123
+ const confirmTime = sendTokenTxs?.confirmTx?.onChainAt ?? contractCallWithTokenTxs?.confirmTx?.onChainAt;
124
+ if (!sendTime || !confirmTime) return;
125
+ return new Date(confirmTime).getTime() - new Date(sendTime).getTime();
126
+ }
127
+ default: {
128
+ const remainingTransfer = combinedTransferEvent[transferType];
129
+ const sendTime = remainingTransfer?.txs?.sendTx?.onChainAt;
130
+ const receiveTime = remainingTransfer?.txs?.receiveTx?.onChainAt;
131
+ if (!sendTime || !receiveTime) return;
132
+ return new Date(receiveTime).getTime() - new Date(sendTime).getTime();
133
+ }
103
134
  }
104
135
  };
105
136
  const _result = {
@@ -131,7 +162,7 @@ function getClientTransferEvent(transferEvent) {
131
162
  function getTransferEventsFromTxStatusResponse(txStatusResponse) {
132
163
  if (!txStatusResponse) return [];
133
164
  return txStatusResponse?.flatMap((txStatus) => {
134
- return (txStatus.transferSequence ?? []).map((transferEvent) => {
165
+ return (txStatus?.transferSequence ?? []).map((transferEvent) => {
135
166
  return getClientTransferEvent(transferEvent);
136
167
  });
137
168
  });
@@ -469,7 +500,8 @@ var getSimpleRoute = (route) => {
469
500
  sourceAssetChainId: route?.sourceAssetChainId,
470
501
  destAssetDenom: route?.destAssetDenom,
471
502
  destAssetChainId: route?.destAssetChainId,
472
- estimatedRouteDurationSeconds: route?.estimatedRouteDurationSeconds
503
+ estimatedRouteDurationSeconds: route?.estimatedRouteDurationSeconds,
504
+ operations: route?.operations
473
505
  };
474
506
  };
475
507
  var getRouteDetailsWithSimpleTransactionDetailsStatus = (routeDetails) => {
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-VGCTTJO7.js';
1
+ import { api } from './chunk-F66EKL3W.js';
2
2
 
3
3
  // src/api/postMessagesDirect.ts
4
4
  var messagesDirect = api({
@@ -3,7 +3,7 @@ import { OfflineDirectSigner } from '@cosmjs/proto-signing';
3
3
  import { GasPrice, StdFee, SignerData } from '@cosmjs/stargate';
4
4
  import { WalletClient } from 'viem';
5
5
  import { Adapter } from '@solana/wallet-adapter-base';
6
- import { e as ChainType, af as FeeAsset, a6 as CosmosMsg } from './swaggerTypes-Cop47I0X.js';
6
+ import { e as ChainType, af as FeeAsset, a6 as CosmosMsg } from './swaggerTypes-Dr4I6vW2.js';
7
7
  import { TrackTxPollingProps } from './api/postTrackTransaction.js';
8
8
 
9
9
  /** Common Types */
@@ -1,4 +1,4 @@
1
- import { bI as Api } from './swaggerTypes-Cop47I0X.js';
1
+ import { bI as Api } from './swaggerTypes-Dr4I6vW2.js';
2
2
 
3
3
  type CamelKey<S extends string> = S extends `${infer T}_${infer U}` ? `${T}${Capitalize<CamelKey<U>>}` : S;
4
4
  type Camel<T> = T extends (infer U)[] ? Camel<U>[] : T extends object ? {