@skip-go/client 1.1.3 → 1.1.5

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 (70) hide show
  1. package/dist/api/getAssets.d.ts +1 -1
  2. package/dist/api/getAssets.js +2 -2
  3. package/dist/api/getAssetsBetweenChains.d.ts +1 -1
  4. package/dist/api/getAssetsBetweenChains.js +2 -2
  5. package/dist/api/getBridges.d.ts +1 -1
  6. package/dist/api/getBridges.js +2 -2
  7. package/dist/api/getChains.d.ts +1 -1
  8. package/dist/api/getChains.js +2 -2
  9. package/dist/api/getVenues.js +2 -2
  10. package/dist/api/postAssetsFromSource.d.ts +1 -1
  11. package/dist/api/postAssetsFromSource.js +3 -3
  12. package/dist/api/postBalances.d.ts +2 -2
  13. package/dist/api/postBalances.js +2 -2
  14. package/dist/api/postIbcOriginAssets.js +2 -2
  15. package/dist/api/postMessages.d.ts +2 -2
  16. package/dist/api/postMessages.js +2 -2
  17. package/dist/api/postMessagesDirect.d.ts +3 -3
  18. package/dist/api/postMessagesDirect.js +2 -2
  19. package/dist/api/postRecommendAssets.d.ts +1 -1
  20. package/dist/api/postRecommendAssets.js +2 -2
  21. package/dist/api/postRoute.d.ts +4 -4
  22. package/dist/api/postRoute.js +2 -2
  23. package/dist/api/postSubmitTransaction.js +2 -2
  24. package/dist/api/postTrackTransaction.js +2 -2
  25. package/dist/api/postTransactionStatus.d.ts +2 -2
  26. package/dist/api/postTransactionStatus.js +2 -2
  27. package/dist/callbacks-BinMFSvp.d.ts +33 -0
  28. package/dist/{chunk-7FSLD7Y4.js → chunk-27P5BVWA.js} +1 -1
  29. package/dist/chunk-36MCR5DZ.js +183 -0
  30. package/dist/{chunk-R2N4D2PY.js → chunk-3G66QUIR.js} +1 -1
  31. package/dist/{chunk-2NYWLY5S.js → chunk-5G6WVH73.js} +1 -1
  32. package/dist/{chunk-5EU3SRDQ.js → chunk-5KEBJTG2.js} +2 -2
  33. package/dist/{chunk-BCN2WD5Q.js → chunk-BYK77RST.js} +1 -1
  34. package/dist/{chunk-RL5AVCSG.js → chunk-C6EHVJEC.js} +1 -1
  35. package/dist/{chunk-PZM2IB6H.js → chunk-DQJUP5YB.js} +1 -1
  36. package/dist/{chunk-PWSY2PQJ.js → chunk-ECFSAIIO.js} +1 -1
  37. package/dist/{chunk-R5U2IBQY.js → chunk-FB32UNL7.js} +8 -38
  38. package/dist/{chunk-KWVMUF5R.js → chunk-G3DPNB66.js} +1 -1
  39. package/dist/{chunk-GTJ2EDUG.js → chunk-GHK24RZZ.js} +2 -2
  40. package/dist/{chunk-EAUM5JYS.js → chunk-I5V6BIOW.js} +1 -1
  41. package/dist/{chunk-VRPPVMXO.js → chunk-KEXKVEVT.js} +1 -1
  42. package/dist/{chunk-UPL6CT4S.js → chunk-KTCDTZCU.js} +2 -2
  43. package/dist/{chunk-WWDCZAB5.js → chunk-LJ5Y4YS2.js} +1 -1
  44. package/dist/{chunk-H6RXHDUX.js → chunk-P7QXKAUS.js} +1 -1
  45. package/dist/{chunk-R3KHKN33.js → chunk-REIPMX4F.js} +1 -1
  46. package/dist/{chunk-7P6AOFMX.js → chunk-VYZE3SLF.js} +1 -1
  47. package/dist/chunk-WYKGBXPO.js +34 -0
  48. package/dist/{chunk-T2TOUPEA.js → chunk-YKWVCWO4.js} +2 -2
  49. package/dist/{client-types-B5Wk1mFT.d.ts → client-types-B_ihV5t6.d.ts} +1 -1
  50. package/dist/{generateApi-DBAMmstt.d.ts → generateApi-CpUxWvEf.d.ts} +1 -1
  51. package/dist/index.d.ts +8 -6
  52. package/dist/index.js +22 -21
  53. package/dist/public-functions/executeRoute.d.ts +40 -4
  54. package/dist/public-functions/executeRoute.js +11 -10
  55. package/dist/public-functions/getFeeInfoForChain.d.ts +1 -1
  56. package/dist/public-functions/getFeeInfoForChain.js +4 -4
  57. package/dist/public-functions/getRecommendedGasPrice.js +5 -5
  58. package/dist/public-functions/getSigningStargateClient.js +4 -4
  59. package/dist/public-functions/setApiOptions.d.ts +1 -1
  60. package/dist/public-functions/setApiOptions.js +2 -2
  61. package/dist/public-functions/setClientOptions.d.ts +3 -3
  62. package/dist/public-functions/setClientOptions.js +3 -3
  63. package/dist/public-functions/waitForTransaction.d.ts +621 -0
  64. package/dist/public-functions/waitForTransaction.js +4 -0
  65. package/dist/{setClientOptions-DNQRvnRl.d.ts → setClientOptions-C4rwBrB4.d.ts} +1 -1
  66. package/dist/{swaggerTypes-BkgwzRF2.d.ts → swaggerTypes-sZ9ALP9m.d.ts} +1 -1
  67. package/package.json +1 -1
  68. package/dist/chunk-JTIHU43D.js +0 -183
  69. package/dist/executeRoute-Dy607vic.d.ts +0 -69
  70. package/dist/{chunk-SOGMQT4H.js → chunk-SN5GGN5K.js} +5 -5
@@ -1,4 +1,4 @@
1
- import { ApiState, api } from './chunk-SOGMQT4H.js';
1
+ import { ApiState, api } from './chunk-SN5GGN5K.js';
2
2
 
3
3
  // src/api/postRoute.ts
4
4
  var route = async (request) => {
@@ -1,4 +1,4 @@
1
- import { pollingApi } from './chunk-SOGMQT4H.js';
1
+ import { pollingApi } from './chunk-SN5GGN5K.js';
2
2
 
3
3
  // src/api/postTransactionStatus.ts
4
4
  var transactionStatus = pollingApi({
@@ -1,5 +1,5 @@
1
- import { transformAssetsMap } from './chunk-EAUM5JYS.js';
2
- import { api } from './chunk-SOGMQT4H.js';
1
+ import { transformAssetsMap } from './chunk-I5V6BIOW.js';
2
+ import { api } from './chunk-SN5GGN5K.js';
3
3
 
4
4
  // src/api/postAssetsFromSource.ts
5
5
  var assetsFromSource = api({
@@ -1,4 +1,4 @@
1
- import { pollingApi } from './chunk-SOGMQT4H.js';
1
+ import { pollingApi } from './chunk-SN5GGN5K.js';
2
2
 
3
3
  // src/api/postTrackTransaction.ts
4
4
  var trackTransaction = pollingApi({
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-SOGMQT4H.js';
1
+ import { api } from './chunk-SN5GGN5K.js';
2
2
 
3
3
  // src/api/getVenues.ts
4
4
  var venues = api({
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-SOGMQT4H.js';
1
+ import { api } from './chunk-SN5GGN5K.js';
2
2
 
3
3
  // src/api/postRecommendAssets.ts
4
4
  var recommendAssets = api({
@@ -1,5 +1,5 @@
1
1
  import { BigNumber } from './chunk-VQ5SIQWU.js';
2
- import { getFeeInfoForChain } from './chunk-T2TOUPEA.js';
2
+ import { getFeeInfoForChain } from './chunk-YKWVCWO4.js';
3
3
  import { Decimal } from '@cosmjs/math';
4
4
  import { GasPrice } from '@cosmjs/stargate';
5
5
 
@@ -1,15 +1,14 @@
1
1
  import { BigNumber } from './chunk-VQ5SIQWU.js';
2
2
  import { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
3
- import { getSigningStargateClient, getRpcEndpointForChain, accountParser } from './chunk-UPL6CT4S.js';
4
- import { chains, findFirstWorkingEndpoint, getIsEthermint, getIsInitia } from './chunk-JTIHU43D.js';
3
+ import { getSigningStargateClient, getRpcEndpointForChain, accountParser } from './chunk-KTCDTZCU.js';
4
+ import { chains, findFirstWorkingEndpoint, getIsEthermint, getIsInitia } from './chunk-36MCR5DZ.js';
5
5
  import { MsgDepositForBurn, MsgDepositForBurnWithCaller, MsgExecute, MsgInitiateTokenDeposit, BaseVestingAccount, Timestamp, toTimestamp, Period, fromTimestamp, isSet, fromJsonTimestamp } from './chunk-TD63P2AG.js';
6
- import { messages } from './chunk-7FSLD7Y4.js';
7
- import { submitTransaction } from './chunk-7P6AOFMX.js';
8
- import { trackTransaction } from './chunk-BCN2WD5Q.js';
9
- import { transactionStatus } from './chunk-2NYWLY5S.js';
10
- import { venues } from './chunk-RL5AVCSG.js';
11
- import { ClientState, balances } from './chunk-EAUM5JYS.js';
12
- import { ApiState, wait, createRequestClient, toCamel } from './chunk-SOGMQT4H.js';
6
+ import { waitForTransaction } from './chunk-WYKGBXPO.js';
7
+ import { messages } from './chunk-27P5BVWA.js';
8
+ import { submitTransaction } from './chunk-VYZE3SLF.js';
9
+ import { venues } from './chunk-C6EHVJEC.js';
10
+ import { ClientState, balances } from './chunk-I5V6BIOW.js';
11
+ import { ApiState, wait, createRequestClient, toCamel } from './chunk-SN5GGN5K.js';
13
12
  import { PublicKey, Transaction, Connection, LAMPORTS_PER_SOL } from '@solana/web3.js';
14
13
  import { bech32m, bech32 } from 'bech32';
15
14
  import { StargateClient, GasPrice, calculateFee } from '@cosmjs/stargate';
@@ -1570,35 +1569,6 @@ var validateGasBalances = async ({
1570
1569
  ClientState.validateGasResults = validateResult;
1571
1570
  };
1572
1571
 
1573
- // src/private-functions/waitForTransaction.ts
1574
- var waitForTransaction = async ({
1575
- chainId,
1576
- txHash,
1577
- onTransactionTracked
1578
- }) => {
1579
- const { explorerLink } = await trackTransaction({
1580
- chainId,
1581
- txHash
1582
- });
1583
- await onTransactionTracked?.({ txHash, chainId, explorerLink });
1584
- while (true) {
1585
- const txStatusResponse = await transactionStatus({
1586
- chainId,
1587
- txHash
1588
- });
1589
- if (txStatusResponse.state === "STATE_COMPLETED_SUCCESS") {
1590
- return txStatusResponse;
1591
- }
1592
- if (txStatusResponse.state === "STATE_COMPLETED_ERROR") {
1593
- throw new Error(`${txStatusResponse.error?.type}: ${txStatusResponse.error?.message}`);
1594
- }
1595
- if (txStatusResponse.state === "STATE_ABANDONED") {
1596
- throw new Error("Tracking for the transaction has been abandoned");
1597
- }
1598
- await wait(1e3);
1599
- }
1600
- };
1601
-
1602
1572
  // src/private-functions/executeTransactions.ts
1603
1573
  var executeTransactions = async (options) => {
1604
1574
  const {
@@ -1,4 +1,4 @@
1
- import { ApiState, createRequestClient } from './chunk-SOGMQT4H.js';
1
+ import { ApiState, createRequestClient } from './chunk-SN5GGN5K.js';
2
2
 
3
3
  // src/public-functions/setApiOptions.ts
4
4
  var setApiOptions = (options = {}) => {
@@ -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-EAUM5JYS.js';
3
- import { ApiState, createRequestClient } from './chunk-SOGMQT4H.js';
2
+ import { ClientState } from './chunk-I5V6BIOW.js';
3
+ import { ApiState, createRequestClient } from './chunk-SN5GGN5K.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,4 +1,4 @@
1
- import { api } from './chunk-SOGMQT4H.js';
1
+ import { api } from './chunk-SN5GGN5K.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-SOGMQT4H.js';
1
+ import { api } from './chunk-SN5GGN5K.js';
2
2
 
3
3
  // src/api/getBridges.ts
4
4
  var bridges = api({
@@ -1,5 +1,5 @@
1
- import { chains, findFirstWorkingEndpoint } from './chunk-JTIHU43D.js';
2
- import { ClientState } from './chunk-EAUM5JYS.js';
1
+ import { chains, findFirstWorkingEndpoint } from './chunk-36MCR5DZ.js';
2
+ import { ClientState } from './chunk-I5V6BIOW.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,4 +1,4 @@
1
- import { api } from './chunk-SOGMQT4H.js';
1
+ import { api } from './chunk-SN5GGN5K.js';
2
2
 
3
3
  // src/api/postIbcOriginAssets.ts
4
4
  var ibcOriginAssets = api({
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-SOGMQT4H.js';
1
+ import { api } from './chunk-SN5GGN5K.js';
2
2
 
3
3
  // src/api/postMessagesDirect.ts
4
4
  var messagesDirect = api({
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-SOGMQT4H.js';
1
+ import { api } from './chunk-SN5GGN5K.js';
2
2
 
3
3
  // src/api/getAssetsBetweenChains.ts
4
4
  var assetsBetweenChains = api({
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-SOGMQT4H.js';
1
+ import { api } from './chunk-SN5GGN5K.js';
2
2
 
3
3
  // src/api/postSubmitTransaction.ts
4
4
  var submitTransaction = api({
@@ -0,0 +1,34 @@
1
+ import { trackTransaction } from './chunk-BYK77RST.js';
2
+ import { transactionStatus } from './chunk-5G6WVH73.js';
3
+ import { wait } from './chunk-SN5GGN5K.js';
4
+
5
+ // src/public-functions/waitForTransaction.ts
6
+ var waitForTransaction = async ({
7
+ chainId,
8
+ txHash,
9
+ onTransactionTracked
10
+ }) => {
11
+ const { explorerLink } = await trackTransaction({
12
+ chainId,
13
+ txHash
14
+ });
15
+ await onTransactionTracked?.({ txHash, chainId, explorerLink });
16
+ while (true) {
17
+ const txStatusResponse = await transactionStatus({
18
+ chainId,
19
+ txHash
20
+ });
21
+ if (txStatusResponse.state === "STATE_COMPLETED_SUCCESS") {
22
+ return txStatusResponse;
23
+ }
24
+ if (txStatusResponse.state === "STATE_COMPLETED_ERROR") {
25
+ throw new Error(`${txStatusResponse.error?.type}: ${txStatusResponse.error?.message}`);
26
+ }
27
+ if (txStatusResponse.state === "STATE_ABANDONED") {
28
+ throw new Error("Tracking for the transaction has been abandoned");
29
+ }
30
+ await wait(1e3);
31
+ }
32
+ };
33
+
34
+ export { waitForTransaction };
@@ -1,6 +1,6 @@
1
1
  import { DEFAULT_GAS_DENOM_OVERRIDES } from './chunk-SWYON2RG.js';
2
- import { chains } from './chunk-JTIHU43D.js';
3
- import { ClientState } from './chunk-EAUM5JYS.js';
2
+ import { chains } from './chunk-36MCR5DZ.js';
3
+ import { ClientState } from './chunk-I5V6BIOW.js';
4
4
 
5
5
  // src/private-functions/getDefaultGasTokenForChain.ts
6
6
  var getDefaultGasTokenForChain = async (chainId) => {
@@ -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-BkgwzRF2.js';
6
+ import { a3 as FeeAsset, L as ChainType, W as CosmosMsg } from './swaggerTypes-sZ9ALP9m.js';
7
7
 
8
8
  /** Common Types */
9
9
  type UserAddress = {
@@ -1,4 +1,4 @@
1
- import { bw as Api } from './swaggerTypes-BkgwzRF2.js';
1
+ import { bw as Api } from './swaggerTypes-sZ9ALP9m.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 ? {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
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, 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, 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, b4 as Fee, a3 as FeeAsset, 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, 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, bo as QueryParamsType, ao as Reason, b0 as RecommendationRequest, br as RequestParams, bp 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, bk as StatusRequest, bl as StatusResponse, bi as SubmitResponse, 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, b9 as VenuesRequest, ba as VenuesResponse } from './swaggerTypes-BkgwzRF2.js';
2
- export { E as ExecuteRouteOptions, T as TransactionCallbacks, e as executeRoute } from './executeRoute-Dy607vic.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-B5Wk1mFT.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, 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, 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, b4 as Fee, a3 as FeeAsset, 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, 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, bo as QueryParamsType, ao as Reason, b0 as RecommendationRequest, br as RequestParams, bp 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, bk as StatusRequest, bl as StatusResponse, bi as SubmitResponse, 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, b9 as VenuesRequest, ba as VenuesResponse } from './swaggerTypes-sZ9ALP9m.js';
2
+ export { T as TransactionCallbacks } from './callbacks-BinMFSvp.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-B_ihV5t6.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';
@@ -16,18 +16,20 @@ export { RouteRequest, route } from './api/postRoute.js';
16
16
  export { submitTransaction } from './api/postSubmitTransaction.js';
17
17
  export { trackTransaction } from './api/postTrackTransaction.js';
18
18
  export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
19
+ export { ExecuteRouteOptions, executeRoute } from './public-functions/executeRoute.js';
19
20
  export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
20
- export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-DNQRvnRl.js';
21
+ export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-C4rwBrB4.js';
21
22
  export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.js';
22
23
  export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.js';
23
24
  export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.js';
24
- import './generateApi-DBAMmstt.js';
25
+ export { waitForTransaction } from './public-functions/waitForTransaction.js';
25
26
  import '@cosmjs/amino';
26
27
  import '@cosmjs/proto-signing';
27
28
  import '@cosmjs/stargate';
28
29
  import 'viem';
29
30
  import '@solana/wallet-adapter-base';
30
31
  import './apiState-CdzxTxYd.js';
32
+ import './generateApi-CpUxWvEf.js';
31
33
 
32
34
  interface AcknowledgementErrorDetailsJson {
33
35
  /** Error code */
@@ -896,7 +898,7 @@ interface RouteJson {
896
898
  /** Denom of the source asset */
897
899
  source_asset_denom: string;
898
900
  /** Swap venue on which the swap is performed, if a swap is performed */
899
- swap_venue?: SwapVenueJson;
901
+ swap_venues?: SwapVenueJson[];
900
902
  /** Number of transactions required to perform the transfer or swap */
901
903
  txs_required: number;
902
904
  /** Amount of the source denom, converted to USD value */
package/dist/index.js CHANGED
@@ -1,27 +1,28 @@
1
- export { executeRoute } from './chunk-R5U2IBQY.js';
2
- export { getRecommendedGasPrice } from './chunk-PWSY2PQJ.js';
1
+ export { executeRoute } from './chunk-FB32UNL7.js';
2
+ export { getRecommendedGasPrice } from './chunk-ECFSAIIO.js';
3
3
  import './chunk-VQ5SIQWU.js';
4
- export { getFeeInfoForChain } from './chunk-T2TOUPEA.js';
4
+ export { getFeeInfoForChain } from './chunk-YKWVCWO4.js';
5
5
  export { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
6
- export { getSigningStargateClient } from './chunk-UPL6CT4S.js';
7
- import './chunk-JTIHU43D.js';
8
- export { setApiOptions } from './chunk-KWVMUF5R.js';
9
- export { setClientOptions } from './chunk-GTJ2EDUG.js';
6
+ export { getSigningStargateClient } from './chunk-KTCDTZCU.js';
7
+ import './chunk-36MCR5DZ.js';
8
+ export { setApiOptions } from './chunk-G3DPNB66.js';
9
+ export { setClientOptions } from './chunk-GHK24RZZ.js';
10
10
  import './chunk-TD63P2AG.js';
11
- export { ibcOriginAssets } from './chunk-WWDCZAB5.js';
12
- export { messages } from './chunk-7FSLD7Y4.js';
13
- export { messagesDirect } from './chunk-H6RXHDUX.js';
14
- export { recommendAssets } from './chunk-PZM2IB6H.js';
15
- export { route } from './chunk-R2N4D2PY.js';
16
- export { submitTransaction } from './chunk-7P6AOFMX.js';
17
- export { trackTransaction } from './chunk-BCN2WD5Q.js';
18
- export { transactionStatus } from './chunk-2NYWLY5S.js';
19
- export { assetsBetweenChains } from './chunk-R3KHKN33.js';
20
- export { bridges } from './chunk-VRPPVMXO.js';
21
- export { venues } from './chunk-RL5AVCSG.js';
22
- export { assetsFromSource } from './chunk-5EU3SRDQ.js';
23
- export { assets, balances, chains } from './chunk-EAUM5JYS.js';
24
- 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-SOGMQT4H.js';
11
+ export { waitForTransaction } from './chunk-WYKGBXPO.js';
12
+ export { ibcOriginAssets } from './chunk-LJ5Y4YS2.js';
13
+ export { messages } from './chunk-27P5BVWA.js';
14
+ export { messagesDirect } from './chunk-P7QXKAUS.js';
15
+ export { recommendAssets } from './chunk-DQJUP5YB.js';
16
+ export { route } from './chunk-3G66QUIR.js';
17
+ export { submitTransaction } from './chunk-VYZE3SLF.js';
18
+ export { trackTransaction } from './chunk-BYK77RST.js';
19
+ export { transactionStatus } from './chunk-5G6WVH73.js';
20
+ export { assetsBetweenChains } from './chunk-REIPMX4F.js';
21
+ export { bridges } from './chunk-KEXKVEVT.js';
22
+ export { venues } from './chunk-C6EHVJEC.js';
23
+ export { assetsFromSource } from './chunk-5KEBJTG2.js';
24
+ export { assets, balances, chains } from './chunk-I5V6BIOW.js';
25
+ 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-SN5GGN5K.js';
25
26
 
26
27
  // src/types/swaggerTypesJson.ts
27
28
  var AutopilotActionJson = /* @__PURE__ */ ((AutopilotActionJson2) => {
@@ -1,9 +1,45 @@
1
- export { E as ExecuteRouteOptions, e as executeRoute } from '../executeRoute-Dy607vic.js';
2
- import '../swaggerTypes-BkgwzRF2.js';
3
- import '../generateApi-DBAMmstt.js';
4
- import '../client-types-B5Wk1mFT.js';
1
+ import { T as TransactionCallbacks } from '../callbacks-BinMFSvp.js';
2
+ import { be as RouteResponse, W as CosmosMsg } from '../swaggerTypes-sZ9ALP9m.js';
3
+ import { A as ApiRequest } from '../generateApi-CpUxWvEf.js';
4
+ import { S as SignerGetters, b as GasOptions, U as UserAddress } from '../client-types-B_ihV5t6.js';
5
5
  import '@cosmjs/amino';
6
6
  import '@cosmjs/proto-signing';
7
7
  import '@cosmjs/stargate';
8
8
  import 'viem';
9
9
  import '@solana/wallet-adapter-base';
10
+
11
+ /** Execute Route Options */
12
+ type ExecuteRouteOptions = SignerGetters & GasOptions & TransactionCallbacks & Pick<ApiRequest<"msgs">, "timeoutSeconds"> & {
13
+ route: RouteResponse;
14
+ /**
15
+ * Addresses should be in the same order with the `chainIDs` in the `route`
16
+ */
17
+ userAddresses: UserAddress[];
18
+ simulate?: boolean;
19
+ slippageTolerancePercent?: string;
20
+ /**
21
+ * Arbitrary Tx to be executed before or after route msgs
22
+ */
23
+ beforeMsg?: CosmosMsg;
24
+ afterMsg?: CosmosMsg;
25
+ /**
26
+ * Set allowance amount to max if EVM transaction requires allowance approval.
27
+ */
28
+ useUnlimitedApproval?: boolean;
29
+ /**
30
+ /**
31
+ * If `skipApproval` is set to `true`, the router will bypass checking whether
32
+ * the signer has granted approval for the specified token contract on an EVM chain.
33
+ * This can be useful if approval has already been handled externally or there are race conditions.
34
+ */
35
+ bypassApprovalCheck?: boolean;
36
+ /**
37
+ * defaults to true
38
+ * If `batchSimulate` is set to `true`, it will simulate all messages in a batch before the first tx run.
39
+ * If `batchSimulate` is set to `false`, it will simulate each message one by one.
40
+ */
41
+ batchSimulate?: boolean;
42
+ };
43
+ declare const executeRoute: (options: ExecuteRouteOptions) => Promise<void>;
44
+
45
+ export { type ExecuteRouteOptions, executeRoute };
@@ -1,13 +1,14 @@
1
- export { executeRoute } from '../chunk-R5U2IBQY.js';
1
+ export { executeRoute } from '../chunk-FB32UNL7.js';
2
2
  import '../chunk-VQ5SIQWU.js';
3
3
  import '../chunk-SWYON2RG.js';
4
- import '../chunk-UPL6CT4S.js';
5
- import '../chunk-JTIHU43D.js';
4
+ import '../chunk-KTCDTZCU.js';
5
+ import '../chunk-36MCR5DZ.js';
6
6
  import '../chunk-TD63P2AG.js';
7
- import '../chunk-7FSLD7Y4.js';
8
- import '../chunk-7P6AOFMX.js';
9
- import '../chunk-BCN2WD5Q.js';
10
- import '../chunk-2NYWLY5S.js';
11
- import '../chunk-RL5AVCSG.js';
12
- import '../chunk-EAUM5JYS.js';
13
- import '../chunk-SOGMQT4H.js';
7
+ import '../chunk-WYKGBXPO.js';
8
+ import '../chunk-27P5BVWA.js';
9
+ import '../chunk-VYZE3SLF.js';
10
+ import '../chunk-BYK77RST.js';
11
+ import '../chunk-5G6WVH73.js';
12
+ import '../chunk-C6EHVJEC.js';
13
+ import '../chunk-I5V6BIOW.js';
14
+ import '../chunk-SN5GGN5K.js';
@@ -1,4 +1,4 @@
1
- import { a3 as FeeAsset } from '../swaggerTypes-BkgwzRF2.js';
1
+ import { a3 as FeeAsset } from '../swaggerTypes-sZ9ALP9m.js';
2
2
  import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
3
3
 
4
4
  type GetFeeInfoForChainProps = {
@@ -1,5 +1,5 @@
1
- export { getFeeInfoForChain } from '../chunk-T2TOUPEA.js';
1
+ export { getFeeInfoForChain } from '../chunk-YKWVCWO4.js';
2
2
  import '../chunk-SWYON2RG.js';
3
- import '../chunk-JTIHU43D.js';
4
- import '../chunk-EAUM5JYS.js';
5
- import '../chunk-SOGMQT4H.js';
3
+ import '../chunk-36MCR5DZ.js';
4
+ import '../chunk-I5V6BIOW.js';
5
+ import '../chunk-SN5GGN5K.js';
@@ -1,7 +1,7 @@
1
- export { getRecommendedGasPrice } from '../chunk-PWSY2PQJ.js';
1
+ export { getRecommendedGasPrice } from '../chunk-ECFSAIIO.js';
2
2
  import '../chunk-VQ5SIQWU.js';
3
- import '../chunk-T2TOUPEA.js';
3
+ import '../chunk-YKWVCWO4.js';
4
4
  import '../chunk-SWYON2RG.js';
5
- import '../chunk-JTIHU43D.js';
6
- import '../chunk-EAUM5JYS.js';
7
- import '../chunk-SOGMQT4H.js';
5
+ import '../chunk-36MCR5DZ.js';
6
+ import '../chunk-I5V6BIOW.js';
7
+ import '../chunk-SN5GGN5K.js';
@@ -1,4 +1,4 @@
1
- export { getSigningStargateClient } from '../chunk-UPL6CT4S.js';
2
- import '../chunk-JTIHU43D.js';
3
- import '../chunk-EAUM5JYS.js';
4
- import '../chunk-SOGMQT4H.js';
1
+ export { getSigningStargateClient } from '../chunk-KTCDTZCU.js';
2
+ import '../chunk-36MCR5DZ.js';
3
+ import '../chunk-I5V6BIOW.js';
4
+ import '../chunk-SN5GGN5K.js';
@@ -1,5 +1,5 @@
1
1
  import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
2
- import { M as ChainAffiliates } from '../swaggerTypes-BkgwzRF2.js';
2
+ import { M as ChainAffiliates } from '../swaggerTypes-sZ9ALP9m.js';
3
3
 
4
4
  type SetApiOptionsProps = {
5
5
  chainIdsToAffiliates?: Record<string, ChainAffiliates>;
@@ -1,2 +1,2 @@
1
- export { setApiOptions } from '../chunk-KWVMUF5R.js';
2
- import '../chunk-SOGMQT4H.js';
1
+ export { setApiOptions } from '../chunk-G3DPNB66.js';
2
+ import '../chunk-SN5GGN5K.js';
@@ -1,9 +1,9 @@
1
- export { s as setClientOptions } from '../setClientOptions-DNQRvnRl.js';
1
+ export { s as setClientOptions } from '../setClientOptions-C4rwBrB4.js';
2
2
  import '@cosmjs/proto-signing';
3
3
  import '@cosmjs/stargate';
4
4
  import '../apiState-CdzxTxYd.js';
5
- import '../client-types-B5Wk1mFT.js';
5
+ import '../client-types-B_ihV5t6.js';
6
6
  import '@cosmjs/amino';
7
7
  import 'viem';
8
8
  import '@solana/wallet-adapter-base';
9
- import '../swaggerTypes-BkgwzRF2.js';
9
+ import '../swaggerTypes-sZ9ALP9m.js';
@@ -1,4 +1,4 @@
1
- export { setClientOptions } from '../chunk-GTJ2EDUG.js';
1
+ export { setClientOptions } from '../chunk-GHK24RZZ.js';
2
2
  import '../chunk-TD63P2AG.js';
3
- import '../chunk-EAUM5JYS.js';
4
- import '../chunk-SOGMQT4H.js';
3
+ import '../chunk-I5V6BIOW.js';
4
+ import '../chunk-SN5GGN5K.js';