@skip-go/client 1.2.3 → 1.3.1

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 (173) 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/postSubmit.cjs +12 -0
  14. package/dist/cjs/api/postSubmitTransaction.cjs +12 -0
  15. package/dist/cjs/api/postTrackTransaction.cjs +12 -0
  16. package/dist/cjs/api/postTransactionStatus.cjs +12 -0
  17. package/dist/cjs/chunk-4R6OCWRR.cjs +1346 -0
  18. package/dist/cjs/chunk-5FR25GF5.cjs +209 -0
  19. package/dist/cjs/chunk-AHRSARNR.cjs +38 -0
  20. package/dist/cjs/chunk-CPTNOPWI.cjs +566 -0
  21. package/dist/cjs/chunk-CWUD7UGL.cjs +13 -0
  22. package/dist/cjs/chunk-D2W4UBJB.cjs +136 -0
  23. package/dist/cjs/chunk-DUJSZRFD.cjs +1445 -0
  24. package/dist/cjs/chunk-EINQFLWN.cjs +12 -0
  25. package/dist/cjs/chunk-EQBTNGJJ.cjs +11 -0
  26. package/dist/cjs/chunk-F3EB2AQG.cjs +28 -0
  27. package/dist/cjs/chunk-G3G6PBIF.cjs +47 -0
  28. package/dist/cjs/chunk-HDKNPB2J.cjs +182 -0
  29. package/dist/cjs/chunk-KMDNP6DN.cjs +24 -0
  30. package/dist/cjs/chunk-KZOSEIWH.cjs +10 -0
  31. package/dist/cjs/chunk-MGYSCMET.cjs +273 -0
  32. package/dist/cjs/chunk-N3LR7KTI.cjs +304 -0
  33. package/dist/cjs/chunk-NQR3EPN2.cjs +12 -0
  34. package/dist/cjs/chunk-OA5PE7TW.cjs +18 -0
  35. package/dist/cjs/chunk-PFCGKAXF.cjs +15 -0
  36. package/dist/cjs/chunk-PG7RVHOU.cjs +12 -0
  37. package/dist/cjs/chunk-RFBDXALX.cjs +12 -0
  38. package/dist/cjs/chunk-SIY2K7TT.cjs +13 -0
  39. package/dist/cjs/chunk-SLZCWA4K.cjs +2234 -0
  40. package/dist/cjs/chunk-T5LPU5A2.cjs +188 -0
  41. package/dist/cjs/chunk-TCQMGBFL.cjs +38 -0
  42. package/dist/cjs/chunk-TFL5E5A6.cjs +12 -0
  43. package/dist/cjs/chunk-TWPLCFOH.cjs +16 -0
  44. package/dist/cjs/chunk-W2DPDT3Y.cjs +22 -0
  45. package/dist/cjs/chunk-WE7KICKO.cjs +95 -0
  46. package/dist/cjs/chunk-WMXUOVHN.cjs +3642 -0
  47. package/dist/cjs/index.cjs +401 -0
  48. package/dist/cjs/public-functions/executeRoute.cjs +28 -0
  49. package/dist/cjs/public-functions/getCosmosGasAmountForMessage.cjs +15 -0
  50. package/dist/cjs/public-functions/getEvmGasAmountForMessage.cjs +11 -0
  51. package/dist/cjs/public-functions/getFeeInfoForChain.cjs +15 -0
  52. package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +17 -0
  53. package/dist/cjs/public-functions/getSigningStargateClient.cjs +14 -0
  54. package/dist/cjs/public-functions/setApiOptions.cjs +12 -0
  55. package/dist/cjs/public-functions/setClientOptions.cjs +14 -0
  56. package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +18 -0
  57. package/dist/cjs/public-functions/waitForTransaction.cjs +14 -0
  58. package/dist/{api → esm/api}/getAssets.d.ts +1 -1
  59. package/dist/esm/api/getAssets.js +3 -0
  60. package/dist/{api → esm/api}/getAssetsBetweenChains.d.ts +1 -1
  61. package/dist/esm/api/getAssetsBetweenChains.js +3 -0
  62. package/dist/{api → esm/api}/getBridges.d.ts +3 -2
  63. package/dist/esm/api/getBridges.js +3 -0
  64. package/dist/{api → esm/api}/getChains.d.ts +1 -1
  65. package/dist/esm/api/getChains.js +3 -0
  66. package/dist/esm/api/getVenues.js +3 -0
  67. package/dist/{api → esm/api}/postAssetsFromSource.d.ts +1 -1
  68. package/dist/esm/api/postAssetsFromSource.js +4 -0
  69. package/dist/{api → esm/api}/postBalances.d.ts +2 -2
  70. package/dist/esm/api/postBalances.js +3 -0
  71. package/dist/esm/api/postIbcOriginAssets.js +3 -0
  72. package/dist/{api → esm/api}/postMessages.d.ts +3 -2
  73. package/dist/esm/api/postMessages.js +3 -0
  74. package/dist/{api → esm/api}/postMessagesDirect.d.ts +196 -194
  75. package/dist/esm/api/postMessagesDirect.js +3 -0
  76. package/dist/{api → esm/api}/postRecommendAssets.d.ts +1 -1
  77. package/dist/esm/api/postRecommendAssets.js +3 -0
  78. package/dist/{api → esm/api}/postRoute.d.ts +191 -190
  79. package/dist/esm/api/postRoute.js +3 -0
  80. package/dist/{api → esm/api}/postSubmit.d.ts +2 -2
  81. package/dist/esm/api/postSubmit.js +3 -0
  82. package/dist/esm/api/postSubmitTransaction.js +3 -0
  83. package/dist/{api → esm/api}/postTrackTransaction.d.ts +2 -2
  84. package/dist/esm/api/postTrackTransaction.js +3 -0
  85. package/dist/{api → esm/api}/postTransactionStatus.d.ts +14 -2
  86. package/dist/esm/api/postTransactionStatus.js +3 -0
  87. package/dist/{callbacks-CPh0dr86.d.ts → esm/callbacks-C2lXb0AH.d.ts} +6 -1
  88. package/dist/{chunk-4CXSWHQ6.js → esm/chunk-2R5COFPS.js} +1 -1
  89. package/dist/esm/chunk-43P4WRGN.js +183 -0
  90. package/dist/{chunk-UCUUIQHV.js → esm/chunk-4DI7G6TH.js} +1 -1
  91. package/dist/{chunk-4XUWIG3Z.js → esm/chunk-6ULKULTX.js} +1 -1
  92. package/dist/{chunk-OFBEDG4X.js → esm/chunk-6UMMVC2P.js} +1 -1
  93. package/dist/{chunk-5GWNR2CV.js → esm/chunk-7ZG7HNNC.js} +2 -2
  94. package/dist/{chunk-A4M35XLF.js → esm/chunk-C6NHVJ3R.js} +2 -2
  95. package/dist/{chunk-GQXA3DGV.js → esm/chunk-CGZ5DA2T.js} +1 -1
  96. package/dist/{chunk-COJAW7OW.js → esm/chunk-ERPZHRBM.js} +3 -3
  97. package/dist/{chunk-EHKR7I66.js → esm/chunk-F65QOYUA.js} +2 -2
  98. package/dist/{chunk-TKLDJEAS.js → esm/chunk-GOD6ESBZ.js} +14 -14
  99. package/dist/{chunk-S4LIRB4Q.js → esm/chunk-HAGMHUOI.js} +30 -14
  100. package/dist/{chunk-2YOWXBHH.js → esm/chunk-HS2D6FKN.js} +1 -1
  101. package/dist/{chunk-XZV42PVV.js → esm/chunk-I4AMZAHH.js} +3 -2
  102. package/dist/{chunk-UXUJNZOA.js → esm/chunk-KYLULQOS.js} +7 -1
  103. package/dist/{chunk-CXFOPLGZ.js → esm/chunk-MAOMQHG5.js} +1 -1
  104. package/dist/{chunk-A7FWC5OX.js → esm/chunk-NZVZH6OA.js} +1 -1
  105. package/dist/{chunk-DF3WCTFB.js → esm/chunk-PIQZD2VE.js} +1 -1
  106. package/dist/{chunk-NQZYCFAA.js → esm/chunk-QPJEHGY7.js} +1 -1
  107. package/dist/{chunk-YABXOO3H.js → esm/chunk-SS5LQKBL.js} +5 -1
  108. package/dist/{chunk-U6NXCWXE.js → esm/chunk-UZKIIX6A.js} +1 -1
  109. package/dist/{chunk-Z3Z7A3YS.js → esm/chunk-VUOOTNLG.js} +1 -1
  110. package/dist/{chunk-7MWYHGMD.js → esm/chunk-YLMQS52U.js} +2 -2
  111. package/dist/{chunk-RE4YYQCE.js → esm/chunk-YYXOIRHZ.js} +1 -1
  112. package/dist/{chunk-THUBVEVZ.js → esm/chunk-ZTDLGX7X.js} +1 -1
  113. package/dist/{client-types-DRmsTfeT.d.ts → esm/client-types-DuWWc2_J.d.ts} +1 -1
  114. package/dist/{generateApi-D7KXciAd.d.ts → esm/generateApi-DvFEIUee.d.ts} +2 -1
  115. package/dist/{index.d.ts → esm/index.d.ts} +21 -6
  116. package/dist/{index.js → esm/index.js} +32 -26
  117. package/dist/{public-functions → esm/public-functions}/executeRoute.d.ts +4 -4
  118. package/dist/esm/public-functions/executeRoute.js +19 -0
  119. package/dist/{public-functions → esm/public-functions}/getCosmosGasAmountForMessage.d.ts +1 -1
  120. package/dist/{public-functions → esm/public-functions}/getEvmGasAmountForMessage.d.ts +2 -2
  121. package/dist/{public-functions → esm/public-functions}/getEvmGasAmountForMessage.js +1 -1
  122. package/dist/{public-functions → esm/public-functions}/getFeeInfoForChain.d.ts +1 -1
  123. package/dist/esm/public-functions/getFeeInfoForChain.js +6 -0
  124. package/dist/esm/public-functions/getRecommendedGasPrice.js +8 -0
  125. package/dist/esm/public-functions/getSigningStargateClient.js +5 -0
  126. package/dist/{public-functions → esm/public-functions}/setApiOptions.d.ts +1 -1
  127. package/dist/esm/public-functions/setApiOptions.js +3 -0
  128. package/dist/{public-functions → esm/public-functions}/setClientOptions.d.ts +3 -3
  129. package/dist/esm/public-functions/setClientOptions.js +5 -0
  130. package/dist/{public-functions → esm/public-functions}/validateCosmosGasBalance.d.ts +4 -4
  131. package/dist/esm/public-functions/validateCosmosGasBalance.js +9 -0
  132. package/dist/{public-functions → esm/public-functions}/waitForTransaction.d.ts +15 -3
  133. package/dist/esm/public-functions/waitForTransaction.js +5 -0
  134. package/dist/{setClientOptions-CwcM5Ps9.d.ts → esm/setClientOptions-B27lt_6h.d.ts} +1 -1
  135. package/dist/{swaggerTypes-BpJPRbC3.d.ts → esm/swaggerTypes-BrC-ZYnx.d.ts} +20 -1
  136. package/package.json +19 -7
  137. package/dist/api/getAssets.js +0 -3
  138. package/dist/api/getAssetsBetweenChains.js +0 -3
  139. package/dist/api/getBridges.js +0 -3
  140. package/dist/api/getChains.js +0 -3
  141. package/dist/api/getVenues.js +0 -3
  142. package/dist/api/postAssetsFromSource.js +0 -4
  143. package/dist/api/postBalances.js +0 -3
  144. package/dist/api/postIbcOriginAssets.js +0 -3
  145. package/dist/api/postMessages.js +0 -3
  146. package/dist/api/postMessagesDirect.js +0 -3
  147. package/dist/api/postRecommendAssets.js +0 -3
  148. package/dist/api/postRoute.js +0 -3
  149. package/dist/api/postSubmit.js +0 -3
  150. package/dist/api/postSubmitTransaction.js +0 -3
  151. package/dist/api/postTrackTransaction.js +0 -3
  152. package/dist/api/postTransactionStatus.js +0 -3
  153. package/dist/chunk-6AKLNBEL.js +0 -183
  154. package/dist/public-functions/executeRoute.js +0 -19
  155. package/dist/public-functions/getFeeInfoForChain.js +0 -6
  156. package/dist/public-functions/getRecommendedGasPrice.js +0 -8
  157. package/dist/public-functions/getSigningStargateClient.js +0 -5
  158. package/dist/public-functions/setApiOptions.js +0 -3
  159. package/dist/public-functions/setClientOptions.js +0 -5
  160. package/dist/public-functions/validateCosmosGasBalance.js +0 -9
  161. package/dist/public-functions/waitForTransaction.js +0 -5
  162. /package/dist/{api → esm/api}/getVenues.d.ts +0 -0
  163. /package/dist/{api → esm/api}/postIbcOriginAssets.d.ts +0 -0
  164. /package/dist/{api → esm/api}/postSubmitTransaction.d.ts +0 -0
  165. /package/dist/{apiState-DwZhwVul.d.ts → esm/apiState-DwZhwVul.d.ts} +0 -0
  166. /package/dist/{chunk-GV2QOWB4.js → esm/chunk-GV2QOWB4.js} +0 -0
  167. /package/dist/{chunk-SWYON2RG.js → esm/chunk-SWYON2RG.js} +0 -0
  168. /package/dist/{chunk-TD63P2AG.js → esm/chunk-TD63P2AG.js} +0 -0
  169. /package/dist/{chunk-TV2XPAIF.js → esm/chunk-TV2XPAIF.js} +0 -0
  170. /package/dist/{chunk-VQ5SIQWU.js → esm/chunk-VQ5SIQWU.js} +0 -0
  171. /package/dist/{public-functions → esm/public-functions}/getCosmosGasAmountForMessage.js +0 -0
  172. /package/dist/{public-functions → esm/public-functions}/getRecommendedGasPrice.d.ts +0 -0
  173. /package/dist/{public-functions → esm/public-functions}/getSigningStargateClient.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-YABXOO3H.js';
1
+ import { api } from './chunk-SS5LQKBL.js';
2
2
 
3
3
  // src/api/getBridges.ts
4
4
  var bridges = api({
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-YABXOO3H.js';
1
+ import { api } from './chunk-SS5LQKBL.js';
2
2
 
3
3
  // src/private-functions/getMainnetAndTestnetChains.ts
4
4
  var getMainnetAndTestnetChains = async (apiOptions) => {
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-YABXOO3H.js';
1
+ import { api } from './chunk-SS5LQKBL.js';
2
2
 
3
3
  // src/api/postSubmit.ts
4
4
  var submit = api({
@@ -1,7 +1,7 @@
1
1
  import { getCosmosGasAmountForMessage } from './chunk-TV2XPAIF.js';
2
2
  import { BigNumber } from './chunk-VQ5SIQWU.js';
3
- import { getSigningStargateClient } from './chunk-EHKR7I66.js';
4
- import { ClientState, balances } from './chunk-4XUWIG3Z.js';
3
+ import { getSigningStargateClient } from './chunk-F65QOYUA.js';
4
+ import { ClientState, balances } from './chunk-6ULKULTX.js';
5
5
  import { GasPrice, calculateFee } from '@cosmjs/stargate';
6
6
  import { Decimal } from '@cosmjs/math';
7
7
 
@@ -1,6 +1,6 @@
1
1
  import { MsgAcceptOwner, MsgAddRemoteTokenMessenger, MsgDepositForBurn, MsgDepositForBurnWithCaller, MsgDisableAttester, MsgEnableAttester, MsgLinkTokenPair, MsgPauseBurningAndMinting, MsgPauseSendingAndReceivingMessages, MsgReceiveMessage, MsgRemoveRemoteTokenMessenger, MsgReplaceDepositForBurn, MsgReplaceMessage, MsgSendMessage, MsgSendMessageWithCaller, MsgUnlinkTokenPair, MsgUnpauseBurningAndMinting, MsgUnpauseSendingAndReceivingMessages, MsgUpdateOwner, MsgUpdateAttesterManager, MsgUpdateTokenController, MsgUpdatePauser, MsgUpdateMaxMessageBodySize, MsgSetMaxBurnAmountPerMessage, MsgUpdateSignatureThreshold, MsgExecute, MsgInitiateTokenDeposit, Coin, isSet, Long, Timestamp, toTimestamp, Period, fromTimestamp, fromJsonTimestamp, padDecimal } from './chunk-TD63P2AG.js';
2
- import { ClientState } from './chunk-4XUWIG3Z.js';
3
- import { ApiState, createRequestClient } from './chunk-YABXOO3H.js';
2
+ import { ClientState } from './chunk-6ULKULTX.js';
3
+ import { ApiState, createRequestClient } from './chunk-SS5LQKBL.js';
4
4
  import { AminoTypes, createDefaultAminoConverters, defaultRegistryTypes } from '@cosmjs/stargate';
5
5
  import { createWasmAminoConverters } from '@cosmjs/cosmwasm-stargate';
6
6
  import { Registry } from '@cosmjs/proto-signing';
@@ -1,5 +1,5 @@
1
1
  import { BigNumber } from './chunk-VQ5SIQWU.js';
2
- import { getFeeInfoForChain } from './chunk-TKLDJEAS.js';
2
+ import { getFeeInfoForChain } from './chunk-GOD6ESBZ.js';
3
3
  import { Decimal } from '@cosmjs/math';
4
4
  import { GasPrice } from '@cosmjs/stargate';
5
5
 
@@ -1,6 +1,6 @@
1
- import { transactionStatus } from './chunk-XZV42PVV.js';
2
- import { trackTransaction } from './chunk-CXFOPLGZ.js';
3
- import { wait } from './chunk-YABXOO3H.js';
1
+ import { transactionStatus } from './chunk-I4AMZAHH.js';
2
+ import { trackTransaction } from './chunk-MAOMQHG5.js';
3
+ import { wait } from './chunk-SS5LQKBL.js';
4
4
 
5
5
  // src/public-functions/waitForTransaction.ts
6
6
  var waitForTransaction = async ({
@@ -1,5 +1,5 @@
1
- import { chains, findFirstWorkingEndpoint } from './chunk-6AKLNBEL.js';
2
- import { ClientState } from './chunk-4XUWIG3Z.js';
1
+ import { chains, findFirstWorkingEndpoint } from './chunk-43P4WRGN.js';
2
+ import { ClientState } from './chunk-6ULKULTX.js';
3
3
  import { accountFromAny, SigningStargateClient } from '@cosmjs/stargate';
4
4
  import { assertDefinedAndNotNull } from '@cosmjs/utils';
5
5
  import { BinaryWriter, BinaryReader } from 'cosmjs-types/binary.js';
@@ -1,6 +1,6 @@
1
1
  import { DEFAULT_GAS_DENOM_OVERRIDES } from './chunk-SWYON2RG.js';
2
- import { chains } from './chunk-6AKLNBEL.js';
3
- import { ClientState } from './chunk-4XUWIG3Z.js';
2
+ import { chains } from './chunk-43P4WRGN.js';
3
+ import { ClientState } from './chunk-6ULKULTX.js';
4
4
 
5
5
  // src/private-functions/getDefaultGasTokenForChain.ts
6
6
  var getDefaultGasTokenForChain = async (chainId) => {
@@ -8,7 +8,7 @@ var getDefaultGasTokenForChain = async (chainId) => {
8
8
  if (gasDenom) {
9
9
  return gasDenom;
10
10
  }
11
- const chain = chains().find((chain2) => chain2.chain_id === chainId);
11
+ const chain = chains().find((chain2) => chain2.chainId === chainId);
12
12
  if (!chain) {
13
13
  return void 0;
14
14
  }
@@ -17,27 +17,27 @@ var getDefaultGasTokenForChain = async (chainId) => {
17
17
  }
18
18
  const stakingTokens = getStakingTokensForChain(chainId);
19
19
  if (stakingTokens && stakingTokens.length > 0) {
20
- const feeAsset = chain.fees.fee_tokens.find(
20
+ const feeAsset = chain.fees.feeTokens.find(
21
21
  (feeToken) => feeToken.denom === stakingTokens[0]?.denom
22
22
  );
23
23
  if (feeAsset) {
24
24
  return feeAsset.denom;
25
25
  }
26
26
  }
27
- const nonIBCAsset = chain.fees.fee_tokens.find(
27
+ const nonIBCAsset = chain.fees.feeTokens.find(
28
28
  (token) => !token.denom.startsWith("ibc/") && !token.denom.startsWith("l2/")
29
29
  );
30
30
  if (nonIBCAsset) {
31
31
  return nonIBCAsset.denom;
32
32
  }
33
- const nonL2Asset = chain.fees.fee_tokens.find((token) => !token.denom.startsWith("l2/"));
33
+ const nonL2Asset = chain.fees.feeTokens.find((token) => !token.denom.startsWith("l2/"));
34
34
  if (nonL2Asset) {
35
35
  return nonL2Asset.denom;
36
36
  }
37
- return chain.fees.fee_tokens[0]?.denom;
37
+ return chain.fees.feeTokens[0]?.denom;
38
38
  };
39
39
  var getStakingTokensForChain = (chainId) => {
40
- const chain = chains().find((chain2) => chain2.chain_id === chainId);
40
+ const chain = chains().find((chain2) => chain2.chainId === chainId);
41
41
  if (!chain) {
42
42
  throw new Error(
43
43
  `getStakingTokensForChain error: failed to find chain id '${chainId}' in registry`
@@ -46,7 +46,7 @@ var getStakingTokensForChain = (chainId) => {
46
46
  if (!chain.staking) {
47
47
  return void 0;
48
48
  }
49
- return chain.staking.staking_tokens;
49
+ return chain.staking.stakingTokens;
50
50
  };
51
51
 
52
52
  // src/public-functions/getFeeInfoForChain.ts
@@ -67,14 +67,14 @@ var getFeeInfoForChain = async ({ chainId, apiUrl, apiKey }) => {
67
67
  if (skipFeeInfo && skipFeeInfo.gasPrice !== null) {
68
68
  return skipFeeInfo;
69
69
  }
70
- const chain = chains().find((chain2) => chain2.chain_id === chainId);
70
+ const chain = chains().find((chain2) => chain2.chainId === chainId);
71
71
  if (!chain) {
72
72
  return void 0;
73
73
  }
74
74
  if (!chain.fees) {
75
75
  return void 0;
76
76
  }
77
- const registryFeeInfo = chain.fees.fee_tokens.find(
77
+ const registryFeeInfo = chain.fees.feeTokens.find(
78
78
  (feeToken) => feeToken.denom === defaultGasToken
79
79
  );
80
80
  if (!registryFeeInfo) {
@@ -83,9 +83,9 @@ var getFeeInfoForChain = async ({ chainId, apiUrl, apiKey }) => {
83
83
  return {
84
84
  denom: registryFeeInfo.denom,
85
85
  gasPrice: {
86
- low: registryFeeInfo.low_gas_price ? `${registryFeeInfo.low_gas_price}` : "",
87
- average: registryFeeInfo.average_gas_price ? `${registryFeeInfo.average_gas_price}` : "",
88
- high: registryFeeInfo.high_gas_price ? `${registryFeeInfo.high_gas_price}` : ""
86
+ low: registryFeeInfo.lowGasPrice ? `${registryFeeInfo.lowGasPrice}` : "",
87
+ average: registryFeeInfo.averageGasPrice ? `${registryFeeInfo.averageGasPrice}` : "",
88
+ high: registryFeeInfo.highGasPrice ? `${registryFeeInfo.highGasPrice}` : ""
89
89
  }
90
90
  };
91
91
  };
@@ -1,17 +1,17 @@
1
- import { validateCosmosGasBalance } from './chunk-5GWNR2CV.js';
2
- import { waitForTransaction } from './chunk-COJAW7OW.js';
1
+ import { validateCosmosGasBalance } from './chunk-7ZG7HNNC.js';
2
+ import { waitForTransaction } from './chunk-ERPZHRBM.js';
3
3
  import { getEncodeObjectFromCosmosMessage, getEncodeObjectFromCosmosMessageInjective } from './chunk-TV2XPAIF.js';
4
4
  import { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
5
5
  import { BigNumber } from './chunk-VQ5SIQWU.js';
6
6
  import { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
7
- import { getSigningStargateClient, getRpcEndpointForChain, accountParser } from './chunk-EHKR7I66.js';
8
- import { chains, findFirstWorkingEndpoint, getIsEthermint, getIsInitia } from './chunk-6AKLNBEL.js';
9
- import { messages } from './chunk-A7FWC5OX.js';
10
- import { submit } from './chunk-OFBEDG4X.js';
11
- import { submitTransaction } from './chunk-DF3WCTFB.js';
12
- import { venues } from './chunk-RE4YYQCE.js';
13
- import { ClientState, balances } from './chunk-4XUWIG3Z.js';
14
- import { ApiState, wait, createRequestClient, toCamel } from './chunk-YABXOO3H.js';
7
+ import { getSigningStargateClient, getRpcEndpointForChain, accountParser } from './chunk-F65QOYUA.js';
8
+ import { chains, findFirstWorkingEndpoint, getIsEthermint, getIsInitia } from './chunk-43P4WRGN.js';
9
+ import { messages } from './chunk-NZVZH6OA.js';
10
+ import { submit } from './chunk-6UMMVC2P.js';
11
+ import { submitTransaction } from './chunk-PIQZD2VE.js';
12
+ import { venues } from './chunk-YYXOIRHZ.js';
13
+ import { ClientState, balances } from './chunk-6ULKULTX.js';
14
+ import { ApiState, wait, createRequestClient, toCamel } from './chunk-SS5LQKBL.js';
15
15
  import { PublicKey, Transaction, Connection, LAMPORTS_PER_SOL } from '@solana/web3.js';
16
16
  import { bech32m, bech32 } from 'bech32';
17
17
  import { StargateClient } from '@cosmjs/stargate';
@@ -402,6 +402,11 @@ var signCosmosTransaction = async ({
402
402
  chainId
403
403
  }
404
404
  };
405
+ options.onTransactionSignRequested?.({
406
+ chainId,
407
+ txIndex: index,
408
+ signerAddress: currentUserAddress
409
+ });
405
410
  if (isOfflineDirectSigner(signer)) {
406
411
  rawTx = await signCosmosMessageDirect({
407
412
  ...commonRawTxBody,
@@ -644,7 +649,7 @@ var erc20ABI = /* @__PURE__ */ createAbi([
644
649
  ]);
645
650
 
646
651
  // src/private-functions/evm/executeEvmTransaction.ts
647
- var executeEvmTransaction = async (message, options) => {
652
+ var executeEvmTransaction = async (message, options, index) => {
648
653
  const gasArray = ClientState.validateGasResults;
649
654
  const gas = gasArray?.find((gas2) => gas2?.error !== null && gas2?.error !== void 0);
650
655
  if (typeof gas?.error === "string") {
@@ -715,6 +720,11 @@ var executeEvmTransaction = async (message, options) => {
715
720
  status: "completed"
716
721
  });
717
722
  }
723
+ options?.onTransactionSignRequested?.({
724
+ chainId: evmTx.chainId,
725
+ signerAddress: evmSigner.account.address,
726
+ txIndex: index
727
+ });
718
728
  const txHash = await extendedSigner.sendTransaction({
719
729
  account: evmSigner.account,
720
730
  to: evmTx.to,
@@ -732,7 +742,8 @@ var executeEvmTransaction = async (message, options) => {
732
742
  };
733
743
  var signSvmTransaction = async ({
734
744
  tx,
735
- options
745
+ options,
746
+ index
736
747
  }) => {
737
748
  const gasArray = ClientState.validateGasResults;
738
749
  if (tx === void 0) {
@@ -758,6 +769,11 @@ var signSvmTransaction = async ({
758
769
  const txBuffer = Buffer.from(svmTx.tx ?? "", "base64");
759
770
  const transaction = Transaction.from(txBuffer);
760
771
  if (!("signTransaction" in signer)) return;
772
+ options?.onTransactionSignRequested?.({
773
+ chainId: svmTx.chainId,
774
+ signerAddress: signer.publicKey?.toBase58(),
775
+ txIndex: index
776
+ });
761
777
  const signedTx = await signer.signTransaction(transaction);
762
778
  options?.onTransactionSigned?.({ chainId: svmTx.chainId });
763
779
  const serializedTx = signedTx.serialize();
@@ -1249,7 +1265,7 @@ var executeTransactions = async (options) => {
1249
1265
  }
1250
1266
  if ("svmTx" in tx) {
1251
1267
  await validateEnabledChainIds(tx.svmTx?.chainId ?? "");
1252
- const signedTx = await signSvmTransaction({ tx, options });
1268
+ const signedTx = await signSvmTransaction({ tx, options, index: i });
1253
1269
  if (!signedTx) {
1254
1270
  throw new Error(`executeRoute error: signedTx is undefined`);
1255
1271
  }
@@ -1288,7 +1304,7 @@ var executeTransactions = async (options) => {
1288
1304
  });
1289
1305
  } else if ("evmTx" in tx) {
1290
1306
  await validateEnabledChainIds(tx.evmTx?.chainId ?? "");
1291
- const txResponse = await executeEvmTransaction(tx, options);
1307
+ const txResponse = await executeEvmTransaction(tx, options, i);
1292
1308
  txResult = {
1293
1309
  chainId: tx?.evmTx?.chainId ?? "",
1294
1310
  txHash: txResponse.transactionHash
@@ -1,4 +1,4 @@
1
- import { ApiState, createRequestClient } from './chunk-YABXOO3H.js';
1
+ import { ApiState, createRequestClient } from './chunk-SS5LQKBL.js';
2
2
 
3
3
  // src/public-functions/setApiOptions.ts
4
4
  var setApiOptions = (options = {}) => {
@@ -1,10 +1,11 @@
1
- import { pollingApi } from './chunk-YABXOO3H.js';
1
+ import { pollingApi } from './chunk-SS5LQKBL.js';
2
2
 
3
3
  // src/api/postTransactionStatus.ts
4
4
  var transactionStatus = pollingApi({
5
5
  methodName: "status",
6
6
  path: "v2/tx/status",
7
- method: "get"
7
+ method: "get",
8
+ throwOnError: true
8
9
  });
9
10
 
10
11
  export { transactionStatus };
@@ -118,6 +118,7 @@ var OPInitTransferState = /* @__PURE__ */ ((OPInitTransferState2) => {
118
118
  var LayerZeroTransferState = /* @__PURE__ */ ((LayerZeroTransferState2) => {
119
119
  LayerZeroTransferState2["LAYER_ZERO_TRANSFER_UNKNOWN"] = "LAYER_ZERO_TRANSFER_UNKNOWN";
120
120
  LayerZeroTransferState2["LAYER_ZERO_TRANSFER_SENT"] = "LAYER_ZERO_TRANSFER_SENT";
121
+ LayerZeroTransferState2["LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE"] = "LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE";
121
122
  LayerZeroTransferState2["LAYER_ZERO_TRANSFER_RECEIVED"] = "LAYER_ZERO_TRANSFER_RECEIVED";
122
123
  LayerZeroTransferState2["LAYER_ZERO_TRANSFER_FAILED"] = "LAYER_ZERO_TRANSFER_FAILED";
123
124
  return LayerZeroTransferState2;
@@ -134,6 +135,11 @@ var FeeType = /* @__PURE__ */ ((FeeType2) => {
134
135
  FeeType2["SMART_RELAY"] = "SMART_RELAY";
135
136
  return FeeType2;
136
137
  })(FeeType || {});
138
+ var FeeBehavior = /* @__PURE__ */ ((FeeBehavior2) => {
139
+ FeeBehavior2["FEE_BEHAVIOR_DEDUCTED"] = "FEE_BEHAVIOR_DEDUCTED";
140
+ FeeBehavior2["FEE_BEHAVIOR_ADDITIONAL"] = "FEE_BEHAVIOR_ADDITIONAL";
141
+ return FeeBehavior2;
142
+ })(FeeBehavior || {});
137
143
  var ContentType = /* @__PURE__ */ ((ContentType2) => {
138
144
  ContentType2["Json"] = "application/json";
139
145
  ContentType2["FormData"] = "multipart/form-data";
@@ -532,4 +538,4 @@ var Api = class extends HttpClient {
532
538
  });
533
539
  };
534
540
 
535
- export { Api, AutopilotAction, AxelarTransferState, AxelarTransferType, BridgeType, CCTPTransferState, ChainType, ContentType, ContractCallWithTokenErrorType, FeeType, GoFastTransferState, HttpClient, HyperlaneTransferState, LayerZeroTransferState, OPInitTransferState, PacketErrorType, Reason, RoutePriceWarningType, SendTokenErrorType, StargateTransferState, StatusErrorType, TransactionState, TransferState };
541
+ export { Api, AutopilotAction, AxelarTransferState, AxelarTransferType, BridgeType, CCTPTransferState, ChainType, ContentType, ContractCallWithTokenErrorType, FeeBehavior, FeeType, GoFastTransferState, HttpClient, HyperlaneTransferState, LayerZeroTransferState, OPInitTransferState, PacketErrorType, Reason, RoutePriceWarningType, SendTokenErrorType, StargateTransferState, StatusErrorType, TransactionState, TransferState };
@@ -1,4 +1,4 @@
1
- import { pollingApi } from './chunk-YABXOO3H.js';
1
+ import { pollingApi } from './chunk-SS5LQKBL.js';
2
2
 
3
3
  // src/api/postTrackTransaction.ts
4
4
  var trackTransaction = ({
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-YABXOO3H.js';
1
+ import { api } from './chunk-SS5LQKBL.js';
2
2
 
3
3
  // src/utils/filterMessagesRequest.ts
4
4
  var filterMessagesRequest = (request) => {
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-YABXOO3H.js';
1
+ import { api } from './chunk-SS5LQKBL.js';
2
2
 
3
3
  // src/api/postSubmitTransaction.ts
4
4
  var submitTransaction = api({
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-YABXOO3H.js';
1
+ import { api } from './chunk-SS5LQKBL.js';
2
2
 
3
3
  // src/api/postIbcOriginAssets.ts
4
4
  var ibcOriginAssets = api({
@@ -150,7 +150,8 @@ function pollingApi({
150
150
  isSuccess = () => true,
151
151
  maxRetries = 5,
152
152
  retryInterval = 1e3,
153
- backoffMultiplier = 2
153
+ backoffMultiplier = 2,
154
+ throwOnError = false
154
155
  }) {
155
156
  const request = async (requestParams) => {
156
157
  let attempt = 0;
@@ -165,6 +166,9 @@ function pollingApi({
165
166
  } catch (err) {
166
167
  lastError = err;
167
168
  onError?.(err, attempt);
169
+ if (throwOnError) {
170
+ throw err;
171
+ }
168
172
  }
169
173
  const delay = retryInterval * Math.pow(backoffMultiplier, attempt);
170
174
  await wait(delay);
@@ -1,4 +1,4 @@
1
- import { ApiState, api } from './chunk-YABXOO3H.js';
1
+ import { ApiState, api } from './chunk-SS5LQKBL.js';
2
2
 
3
3
  // src/api/postRoute.ts
4
4
  var route = async (request) => {
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-YABXOO3H.js';
1
+ import { api } from './chunk-SS5LQKBL.js';
2
2
 
3
3
  // src/api/getAssetsBetweenChains.ts
4
4
  var assetsBetweenChains = api({
@@ -1,5 +1,5 @@
1
- import { transformAssetsMap } from './chunk-4XUWIG3Z.js';
2
- import { api } from './chunk-YABXOO3H.js';
1
+ import { transformAssetsMap } from './chunk-6ULKULTX.js';
2
+ import { api } from './chunk-SS5LQKBL.js';
3
3
 
4
4
  // src/api/postAssetsFromSource.ts
5
5
  var assetsFromSource = api({
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-YABXOO3H.js';
1
+ import { api } from './chunk-SS5LQKBL.js';
2
2
 
3
3
  // src/api/getVenues.ts
4
4
  var venues = api({
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-YABXOO3H.js';
1
+ import { api } from './chunk-SS5LQKBL.js';
2
2
 
3
3
  // src/api/postRecommendAssets.ts
4
4
  var recommendAssets = api({
@@ -3,7 +3,7 @@ import { OfflineDirectSigner } from '@cosmjs/proto-signing';
3
3
  import { StdFee, GasPrice, SignerData } from '@cosmjs/stargate';
4
4
  import { WalletClient } from 'viem';
5
5
  import { Adapter } from '@solana/wallet-adapter-base';
6
- import { a3 as FeeAsset, L as ChainType, W as CosmosMsg } from './swaggerTypes-BpJPRbC3.js';
6
+ import { a3 as FeeAsset, L as ChainType, W as CosmosMsg } from './swaggerTypes-BrC-ZYnx.js';
7
7
 
8
8
  /** Common Types */
9
9
  type UserAddress = {
@@ -1,4 +1,4 @@
1
- import { bv as Api } from './swaggerTypes-BpJPRbC3.js';
1
+ import { bw as Api } from './swaggerTypes-BrC-ZYnx.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 ? {
@@ -50,6 +50,7 @@ type PollingProps<K extends ValidApiMethodKeys> = {
50
50
  backoffMultiplier?: number;
51
51
  onError?: (error: unknown, attempt: number) => void;
52
52
  onSuccess?: (result: ApiResponse<K>, attempt: number) => void;
53
+ throwOnError?: boolean;
53
54
  };
54
55
 
55
56
  export type { ApiRequest as A, PollingProps as P, ApiResponse as a };
@@ -1,6 +1,6 @@
1
- export { A as AcknowledgementErrorDetails, a as Affiliate, bv as Api, br as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, bh as AssetRecommendationsResponse, bd as AssetsFromSourceResponse, bb as AssetsRequest, bc as AssetsResponse, f as AutopilotAction, g as AutopilotMsg, h as AutopilotMsgWrapper, i as AxelarTransfer, j as AxelarTransferInfo, k as AxelarTransferState, l as AxelarTransferType, m as AxelarTransferWrapper, B as BalanceRequestChainEntry, E as BalanceResponseChainEntry, D as BalanceResponseDenomEntry, b7 as BalancesResponse, F as BankSend, H as BankSendWrapper, I as Bridge, J as BridgeType, b8 as BridgesResponse, C as CCTPTransfer, n as CCTPTransferInfo, p as CCTPTransferState, o as CCTPTransferTxs, q as CCTPTransferWrapper, K as Chain, M as ChainAffiliates, am as ChainTransaction, L as ChainType, b5 as ChainsRequest, b6 as ChainsResponse, bt as ContentType, N as ContractCallWithTokenError, O as ContractCallWithTokenErrorType, P as ContractCallWithTokenTxs, Q as CosmWasmContractMsg, R as CosmWasmContractMsgWrapper, b1 as CosmosModuleSupport, W as CosmosMsg, X as CosmosTx, Y as CosmosTxWrapper, T as Erc20Approval, V as Error, U as ErrorDetail, aW as EurekaTransfer, aX as EurekaTransferInfo, aY as EurekaTransferWrapper, Z as EvmSwap, _ as EvmSwapWrapper, $ as EvmTx, a0 as EvmTxWrapper, b4 as Fee, a3 as FeeAsset, b3 as FeeType, bp as FullRequestParams, bm as FungibleAssetsBetweenChainsCreateResponse, a5 as GRPCStatusCode, a4 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, z as GoFastTransferWrapper, bu as HttpClient, bs as HttpResponse, a6 as HyperlaneTransfer, a7 as HyperlaneTransferInfo, a8 as HyperlaneTransferState, a9 as HyperlaneTransferTransactions, aa as HyperlaneTransferWrapper, ab as IBCTransferInfo, b2 as IbcCapabilities, bl as IbcOriginAssetsResponse, aZ as LayerZeroTransfer, a_ as LayerZeroTransferInfo, aP as LayerZeroTransferState, ai as LayerZeroTransferTransactions, a$ as LayerZeroTransferWrapper, ac as Msg, bg as MsgsDirectResponse, bf as MsgsResponse, ae as MultiChainMsg, af as MultiChainMsgWrapper, aK as OPInitTransfer, aM as OPInitTransferInfo, aO as OPInitTransferState, aN as OPInitTransferTxs, aL as OPInitTransferWrapper, ag as Operation, ah as OptionalAsset, aj as Packet, ak as PacketError, al as PacketErrorType, an as PostHandler, bn as QueryParamsType, ao as Reason, b0 as RecommendationRequest, bq as RequestParams, bo as ResponseFormat, aq as Route, ap as RoutePriceWarningType, be as RouteResponse, ar as SendTokenError, as as SendTokenErrorType, at as SendTokenTxs, S as SmartRelayFeeQuote, aD as SmartSwapExactCoinIn, aF as SmartSwapInWrapper, aE as SmartSwapOptions, r as StargateTransfer, u as StargateTransferInfo, s as StargateTransferState, t as StargateTransferTxs, v as StargateTransferWrapper, au as StatusError, av as StatusErrorType, bj as StatusRequest, bk as StatusResponse, a1 as SvmTx, a2 as SvmTxWrapper, aw as Swap, ax as SwapExactCoinIn, ay as SwapExactCoinOut, az as SwapInWrapper, aA as SwapOperation, aB as SwapOutWrapper, aC as SwapRoute, aG as SwapVenue, aH as SwapWrapper, bi as TrackResponse, aI as TransactionExecutionErrorDetails, aJ as TransactionState, aQ as Transfer, aT as TransferAssetRelease, aR as TransferEvent, aS as TransferState, aU as TransferStatus, aV as TransferWrapper, ad as Tx, b9 as VenuesRequest, ba as VenuesResponse } from './swaggerTypes-BpJPRbC3.js';
2
- export { T as TransactionCallbacks } from './callbacks-CPh0dr86.js';
3
- export { 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-DRmsTfeT.js';
1
+ export { A as AcknowledgementErrorDetails, a as Affiliate, bw as Api, bs as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, bi as AssetRecommendationsResponse, be as AssetsFromSourceResponse, bc as AssetsRequest, bd as AssetsResponse, f as AutopilotAction, g as AutopilotMsg, h as AutopilotMsgWrapper, i as AxelarTransfer, j as AxelarTransferInfo, k as AxelarTransferState, l as AxelarTransferType, m as AxelarTransferWrapper, B as BalanceRequestChainEntry, E as BalanceResponseChainEntry, D as BalanceResponseDenomEntry, b8 as BalancesResponse, F as BankSend, H as BankSendWrapper, I as Bridge, J as BridgeType, b9 as BridgesResponse, C as CCTPTransfer, n as CCTPTransferInfo, p as CCTPTransferState, o as CCTPTransferTxs, q as CCTPTransferWrapper, K as Chain, M as ChainAffiliates, am as ChainTransaction, L as ChainType, b6 as ChainsRequest, b7 as ChainsResponse, bu as ContentType, N as ContractCallWithTokenError, O as ContractCallWithTokenErrorType, P as ContractCallWithTokenTxs, Q as CosmWasmContractMsg, R as CosmWasmContractMsgWrapper, b1 as CosmosModuleSupport, W as CosmosMsg, X as CosmosTx, Y as CosmosTxWrapper, T as Erc20Approval, V as Error, U as ErrorDetail, aW as EurekaTransfer, aX as EurekaTransferInfo, aY as EurekaTransferWrapper, Z as EvmSwap, _ as EvmSwapWrapper, $ as EvmTx, a0 as EvmTxWrapper, b5 as Fee, a3 as FeeAsset, b4 as FeeBehavior, b3 as FeeType, bq as FullRequestParams, bn as FungibleAssetsBetweenChainsCreateResponse, a5 as GRPCStatusCode, a4 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, z as GoFastTransferWrapper, bv as HttpClient, bt as HttpResponse, a6 as HyperlaneTransfer, a7 as HyperlaneTransferInfo, a8 as HyperlaneTransferState, a9 as HyperlaneTransferTransactions, aa as HyperlaneTransferWrapper, ab as IBCTransferInfo, b2 as IbcCapabilities, bm as IbcOriginAssetsResponse, aZ as LayerZeroTransfer, a_ as LayerZeroTransferInfo, aP as LayerZeroTransferState, ai as LayerZeroTransferTransactions, a$ as LayerZeroTransferWrapper, ac as Msg, bh as MsgsDirectResponse, bg as MsgsResponse, ae as MultiChainMsg, af as MultiChainMsgWrapper, aK as OPInitTransfer, aM as OPInitTransferInfo, aO as OPInitTransferState, aN as OPInitTransferTxs, aL as OPInitTransferWrapper, ag as Operation, ah as OptionalAsset, aj as Packet, ak as PacketError, al as PacketErrorType, an as PostHandler, bo as QueryParamsType, ao as Reason, b0 as RecommendationRequest, br as RequestParams, bp as ResponseFormat, aq as Route, ap as RoutePriceWarningType, bf as RouteResponse, ar as SendTokenError, as as SendTokenErrorType, at as SendTokenTxs, S as SmartRelayFeeQuote, aD as SmartSwapExactCoinIn, aF as SmartSwapInWrapper, aE as SmartSwapOptions, r as StargateTransfer, u as StargateTransferInfo, s as StargateTransferState, t as StargateTransferTxs, v as StargateTransferWrapper, au as StatusError, av as StatusErrorType, bk as StatusRequest, bl as StatusResponse, a1 as SvmTx, a2 as SvmTxWrapper, aw as Swap, ax as SwapExactCoinIn, ay as SwapExactCoinOut, az as SwapInWrapper, aA as SwapOperation, aB as SwapOutWrapper, aC as SwapRoute, aG as SwapVenue, aH as SwapWrapper, bj as TrackResponse, aI as TransactionExecutionErrorDetails, aJ as TransactionState, aQ as Transfer, aT as TransferAssetRelease, aR as TransferEvent, aS as TransferState, aU as TransferStatus, aV as TransferWrapper, ad as Tx, ba as VenuesRequest, bb as VenuesResponse } from './swaggerTypes-BrC-ZYnx.js';
2
+ export { T as TransactionCallbacks } from './callbacks-C2lXb0AH.js';
3
+ export { 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-DuWWc2_J.js';
4
4
  export { assets } from './api/getAssets.js';
5
5
  export { assetsBetweenChains } from './api/getAssetsBetweenChains.js';
6
6
  export { bridges } from './api/getBridges.js';
@@ -18,7 +18,7 @@ export { trackTransaction } from './api/postTrackTransaction.js';
18
18
  export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
19
19
  export { ExecuteRouteOptions, executeRoute } from './public-functions/executeRoute.js';
20
20
  export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
21
- export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-CwcM5Ps9.js';
21
+ export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-B27lt_6h.js';
22
22
  export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.js';
23
23
  export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.js';
24
24
  export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.js';
@@ -33,7 +33,7 @@ import '@cosmjs/stargate';
33
33
  import 'viem';
34
34
  import '@solana/wallet-adapter-base';
35
35
  import './apiState-DwZhwVul.js';
36
- import './generateApi-D7KXciAd.js';
36
+ import './generateApi-DvFEIUee.js';
37
37
 
38
38
  interface AcknowledgementErrorDetailsJson {
39
39
  /** Error code */
@@ -813,6 +813,7 @@ interface OptionalAssetJson {
813
813
  interface LayerZeroTransferTransactionsJson {
814
814
  send_tx?: ChainTransactionJson | null;
815
815
  receive_tx?: ChainTransactionJson | null;
816
+ compose_tx?: ChainTransactionJson | null;
816
817
  error_tx?: ChainTransactionJson | null;
817
818
  }
818
819
  interface PacketJson {
@@ -1155,12 +1156,14 @@ declare enum OPInitTransferStateJson {
1155
1156
  * LayerZero transfer state:
1156
1157
  * * `LAYER_ZERO_TRANSFER_UNKNOWN` - Unknown error
1157
1158
  * * `LAYER_ZERO_TRANSFER_SENT` - The transaction on the source chain has executed
1159
+ * * `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
1158
1160
  * * `LAYER_ZERO_TRANSFER_RECEIVED` - The transfer has been received at the destination chain
1159
1161
  * * `LAYER_ZERO_TRANSFER_FAILED` - The transfer has failed
1160
1162
  */
1161
1163
  declare enum LayerZeroTransferStateJson {
1162
1164
  LAYER_ZERO_TRANSFER_UNKNOWN = "LAYER_ZERO_TRANSFER_UNKNOWN",
1163
1165
  LAYER_ZERO_TRANSFER_SENT = "LAYER_ZERO_TRANSFER_SENT",
1166
+ LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE = "LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE",
1164
1167
  LAYER_ZERO_TRANSFER_RECEIVED = "LAYER_ZERO_TRANSFER_RECEIVED",
1165
1168
  LAYER_ZERO_TRANSFER_FAILED = "LAYER_ZERO_TRANSFER_FAILED"
1166
1169
  }
@@ -1371,6 +1374,7 @@ interface LayerZeroTransferInfoJson {
1371
1374
  * LayerZero transfer state:
1372
1375
  * * `LAYER_ZERO_TRANSFER_UNKNOWN` - Unknown error
1373
1376
  * * `LAYER_ZERO_TRANSFER_SENT` - The transaction on the source chain has executed
1377
+ * * `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
1374
1378
  * * `LAYER_ZERO_TRANSFER_RECEIVED` - The transfer has been received at the destination chain
1375
1379
  * * `LAYER_ZERO_TRANSFER_FAILED` - The transfer has failed
1376
1380
  */
@@ -1414,6 +1418,15 @@ interface IbcCapabilitiesJson {
1414
1418
  declare enum FeeTypeJson {
1415
1419
  SMART_RELAY = "SMART_RELAY"
1416
1420
  }
1421
+ /**
1422
+ * Indicates whether the fee is deducted from the transfer amount or charged additionally.
1423
+ * - FEE_BEHAVIOR_DEDUCTED: Fee is subtracted from the transfer amount (default, typical for Cosmos chains)
1424
+ * - FEE_BEHAVIOR_ADDITIONAL: Fee is charged on top of the transfer amount (typical for EVM chains with native tokens)
1425
+ */
1426
+ declare enum FeeBehaviorJson {
1427
+ FEE_BEHAVIOR_DEDUCTED = "FEE_BEHAVIOR_DEDUCTED",
1428
+ FEE_BEHAVIOR_ADDITIONAL = "FEE_BEHAVIOR_ADDITIONAL"
1429
+ }
1417
1430
  interface FeeJson {
1418
1431
  /**
1419
1432
  * Fee type:
@@ -1443,6 +1456,8 @@ interface FeeJson {
1443
1456
  tx_index?: number;
1444
1457
  /** The index of the operation in the returned operations list which incurs the fee */
1445
1458
  operation_index?: number | null;
1459
+ /** Indicates whether this fee is deducted from the transfer amount or charged additionally */
1460
+ fee_behavior?: FeeBehaviorJson;
1446
1461
  }
1447
1462
  interface ChainsRequestJson {
1448
1463
  /** Chain IDs to limit the response to, defaults to all chains if not provided */
@@ -1593,4 +1608,4 @@ interface FungibleAssetsBetweenChainsCreateResponseJson {
1593
1608
 
1594
1609
  declare const GAS_STATION_CHAIN_IDS: string[];
1595
1610
 
1596
- export { type AcknowledgementErrorDetailsJson, type AffiliateJson, type ApiErrorJson, type AssetBetweenChainsJson, type AssetJson, type AssetRecommendationJson, type AssetRecommendationsResponseJson, 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 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, type FeeJson, FeeTypeJson, type FungibleAssetsBetweenChainsCreateResponseJson, GAS_STATION_CHAIN_IDS, 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 IbcOriginAssetsResponseJson, type LayerZeroTransferInfoJson, type LayerZeroTransferJson, LayerZeroTransferStateJson, type LayerZeroTransferTransactionsJson, type LayerZeroTransferWrapperJson, type MsgJson, type MsgsDirectResponseJson, 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 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 SubmitResponseJson, 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 TransactionExecutionErrorDetailsJson, TransactionStateJson, type TransferAssetReleaseJson, type TransferEventJson, type TransferJson, TransferStateJson, type TransferStatusJson, type TransferWrapperJson, type TxJson, type VenuesRequestJson, type VenuesResponseJson };
1611
+ export { type AcknowledgementErrorDetailsJson, type AffiliateJson, type ApiErrorJson, type AssetBetweenChainsJson, type AssetJson, type AssetRecommendationJson, type AssetRecommendationsResponseJson, 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 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, GAS_STATION_CHAIN_IDS, 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 IbcOriginAssetsResponseJson, type LayerZeroTransferInfoJson, type LayerZeroTransferJson, LayerZeroTransferStateJson, type LayerZeroTransferTransactionsJson, type LayerZeroTransferWrapperJson, type MsgJson, type MsgsDirectResponseJson, 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 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 SubmitResponseJson, 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 TransactionExecutionErrorDetailsJson, TransactionStateJson, type TransferAssetReleaseJson, type TransferEventJson, type TransferJson, TransferStateJson, type TransferStatusJson, type TransferWrapperJson, type TxJson, type VenuesRequestJson, type VenuesResponseJson };
@@ -1,33 +1,33 @@
1
- export { setClientOptions } from './chunk-A4M35XLF.js';
2
- export { executeRoute } from './chunk-S4LIRB4Q.js';
3
- export { validateCosmosGasBalance } from './chunk-5GWNR2CV.js';
4
- export { waitForTransaction } from './chunk-COJAW7OW.js';
5
- export { transactionStatus } from './chunk-XZV42PVV.js';
1
+ export { setClientOptions } from './chunk-C6NHVJ3R.js';
2
+ export { executeRoute } from './chunk-HAGMHUOI.js';
3
+ export { validateCosmosGasBalance } from './chunk-7ZG7HNNC.js';
4
+ export { waitForTransaction } from './chunk-ERPZHRBM.js';
5
+ export { transactionStatus } from './chunk-I4AMZAHH.js';
6
6
  export { getCosmosGasAmountForMessage } from './chunk-TV2XPAIF.js';
7
7
  import './chunk-TD63P2AG.js';
8
8
  export { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
9
- export { getRecommendedGasPrice } from './chunk-GQXA3DGV.js';
9
+ export { getRecommendedGasPrice } from './chunk-CGZ5DA2T.js';
10
10
  import './chunk-VQ5SIQWU.js';
11
- export { getFeeInfoForChain } from './chunk-TKLDJEAS.js';
11
+ export { getFeeInfoForChain } from './chunk-GOD6ESBZ.js';
12
12
  export { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
13
- export { getSigningStargateClient } from './chunk-EHKR7I66.js';
14
- import './chunk-6AKLNBEL.js';
15
- export { setApiOptions } from './chunk-2YOWXBHH.js';
16
- export { ibcOriginAssets } from './chunk-NQZYCFAA.js';
17
- export { messages } from './chunk-A7FWC5OX.js';
18
- export { messagesDirect } from './chunk-4CXSWHQ6.js';
19
- export { recommendAssets } from './chunk-THUBVEVZ.js';
20
- export { route } from './chunk-U6NXCWXE.js';
21
- export { submit } from './chunk-OFBEDG4X.js';
22
- export { submitTransaction } from './chunk-DF3WCTFB.js';
23
- export { trackTransaction } from './chunk-CXFOPLGZ.js';
24
- export { assetsBetweenChains } from './chunk-Z3Z7A3YS.js';
25
- export { bridges } from './chunk-UCUUIQHV.js';
26
- export { venues } from './chunk-RE4YYQCE.js';
27
- export { assetsFromSource } from './chunk-7MWYHGMD.js';
28
- export { assets, balances, chains } from './chunk-4XUWIG3Z.js';
29
- import './chunk-YABXOO3H.js';
30
- export { Api, AutopilotAction, AxelarTransferState, AxelarTransferType, BridgeType, CCTPTransferState, ChainType, ContentType, ContractCallWithTokenErrorType, FeeType, GoFastTransferState, HttpClient, HyperlaneTransferState, LayerZeroTransferState, OPInitTransferState, PacketErrorType, Reason, RoutePriceWarningType, SendTokenErrorType, StargateTransferState, StatusErrorType, TransactionState, TransferState } from './chunk-UXUJNZOA.js';
13
+ export { getSigningStargateClient } from './chunk-F65QOYUA.js';
14
+ import './chunk-43P4WRGN.js';
15
+ export { setApiOptions } from './chunk-HS2D6FKN.js';
16
+ export { ibcOriginAssets } from './chunk-QPJEHGY7.js';
17
+ export { messages } from './chunk-NZVZH6OA.js';
18
+ export { messagesDirect } from './chunk-2R5COFPS.js';
19
+ export { recommendAssets } from './chunk-ZTDLGX7X.js';
20
+ export { route } from './chunk-UZKIIX6A.js';
21
+ export { submit } from './chunk-6UMMVC2P.js';
22
+ export { submitTransaction } from './chunk-PIQZD2VE.js';
23
+ export { trackTransaction } from './chunk-MAOMQHG5.js';
24
+ export { assetsBetweenChains } from './chunk-VUOOTNLG.js';
25
+ export { bridges } from './chunk-4DI7G6TH.js';
26
+ export { venues } from './chunk-YYXOIRHZ.js';
27
+ export { assetsFromSource } from './chunk-YLMQS52U.js';
28
+ export { assets, balances, chains } from './chunk-6ULKULTX.js';
29
+ import './chunk-SS5LQKBL.js';
30
+ export { Api, AutopilotAction, AxelarTransferState, AxelarTransferType, BridgeType, CCTPTransferState, ChainType, ContentType, ContractCallWithTokenErrorType, FeeBehavior, FeeType, GoFastTransferState, HttpClient, HyperlaneTransferState, LayerZeroTransferState, OPInitTransferState, PacketErrorType, Reason, RoutePriceWarningType, SendTokenErrorType, StargateTransferState, StatusErrorType, TransactionState, TransferState } from './chunk-KYLULQOS.js';
31
31
 
32
32
  // src/types/swaggerTypesJson.ts
33
33
  var AutopilotActionJson = /* @__PURE__ */ ((AutopilotActionJson2) => {
@@ -149,6 +149,7 @@ var OPInitTransferStateJson = /* @__PURE__ */ ((OPInitTransferStateJson2) => {
149
149
  var LayerZeroTransferStateJson = /* @__PURE__ */ ((LayerZeroTransferStateJson2) => {
150
150
  LayerZeroTransferStateJson2["LAYER_ZERO_TRANSFER_UNKNOWN"] = "LAYER_ZERO_TRANSFER_UNKNOWN";
151
151
  LayerZeroTransferStateJson2["LAYER_ZERO_TRANSFER_SENT"] = "LAYER_ZERO_TRANSFER_SENT";
152
+ LayerZeroTransferStateJson2["LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE"] = "LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE";
152
153
  LayerZeroTransferStateJson2["LAYER_ZERO_TRANSFER_RECEIVED"] = "LAYER_ZERO_TRANSFER_RECEIVED";
153
154
  LayerZeroTransferStateJson2["LAYER_ZERO_TRANSFER_FAILED"] = "LAYER_ZERO_TRANSFER_FAILED";
154
155
  return LayerZeroTransferStateJson2;
@@ -165,5 +166,10 @@ var FeeTypeJson = /* @__PURE__ */ ((FeeTypeJson2) => {
165
166
  FeeTypeJson2["SMART_RELAY"] = "SMART_RELAY";
166
167
  return FeeTypeJson2;
167
168
  })(FeeTypeJson || {});
169
+ var FeeBehaviorJson = /* @__PURE__ */ ((FeeBehaviorJson2) => {
170
+ FeeBehaviorJson2["FEE_BEHAVIOR_DEDUCTED"] = "FEE_BEHAVIOR_DEDUCTED";
171
+ FeeBehaviorJson2["FEE_BEHAVIOR_ADDITIONAL"] = "FEE_BEHAVIOR_ADDITIONAL";
172
+ return FeeBehaviorJson2;
173
+ })(FeeBehaviorJson || {});
168
174
 
169
- export { AutopilotActionJson, AxelarTransferStateJson, AxelarTransferTypeJson, BridgeTypeJson, CCTPTransferStateJson, ChainTypeJson, ContractCallWithTokenErrorTypeJson, FeeTypeJson, GoFastTransferStateJson, HyperlaneTransferStateJson, LayerZeroTransferStateJson, OPInitTransferStateJson, PacketErrorTypeJson, ReasonJson, RoutePriceWarningTypeJson, SendTokenErrorTypeJson, StargateTransferStateJson, StatusErrorTypeJson, TransactionStateJson, TransferStateJson };
175
+ export { AutopilotActionJson, AxelarTransferStateJson, AxelarTransferTypeJson, BridgeTypeJson, CCTPTransferStateJson, ChainTypeJson, ContractCallWithTokenErrorTypeJson, FeeBehaviorJson, FeeTypeJson, GoFastTransferStateJson, HyperlaneTransferStateJson, LayerZeroTransferStateJson, OPInitTransferStateJson, PacketErrorTypeJson, ReasonJson, RoutePriceWarningTypeJson, SendTokenErrorTypeJson, StargateTransferStateJson, StatusErrorTypeJson, TransactionStateJson, TransferStateJson };