@skip-go/client 1.1.8 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/api/getAssets.d.ts +2 -2
  2. package/dist/api/getAssets.js +2 -2
  3. package/dist/api/getAssetsBetweenChains.d.ts +2 -2
  4. package/dist/api/getAssetsBetweenChains.js +2 -2
  5. package/dist/api/getBridges.d.ts +2 -2
  6. package/dist/api/getBridges.js +2 -2
  7. package/dist/api/getChains.d.ts +2 -2
  8. package/dist/api/getChains.js +2 -2
  9. package/dist/api/getVenues.d.ts +1 -1
  10. package/dist/api/getVenues.js +2 -2
  11. package/dist/api/postAssetsFromSource.d.ts +2 -2
  12. package/dist/api/postAssetsFromSource.js +3 -3
  13. package/dist/api/postBalances.d.ts +3 -3
  14. package/dist/api/postBalances.js +2 -2
  15. package/dist/api/postIbcOriginAssets.d.ts +1 -1
  16. package/dist/api/postIbcOriginAssets.js +2 -2
  17. package/dist/api/postMessages.d.ts +4 -3
  18. package/dist/api/postMessages.js +2 -2
  19. package/dist/api/postMessagesDirect.d.ts +196 -195
  20. package/dist/api/postMessagesDirect.js +2 -2
  21. package/dist/api/postRecommendAssets.d.ts +2 -2
  22. package/dist/api/postRecommendAssets.js +2 -2
  23. package/dist/api/postRoute.d.ts +191 -191
  24. package/dist/api/postRoute.js +2 -2
  25. package/dist/api/postSubmit.d.ts +3 -3
  26. package/dist/api/postSubmit.js +2 -2
  27. package/dist/api/postSubmitTransaction.d.ts +1 -1
  28. package/dist/api/postSubmitTransaction.js +2 -2
  29. package/dist/api/postTrackTransaction.d.ts +6 -8
  30. package/dist/api/postTrackTransaction.js +2 -2
  31. package/dist/api/postTransactionStatus.d.ts +3 -3
  32. package/dist/api/postTransactionStatus.js +2 -2
  33. package/dist/{apiState-CdzxTxYd.d.ts → apiState-DwZhwVul.d.ts} +1 -0
  34. package/dist/{callbacks-BGRu2Ule.d.ts → callbacks-CPh0dr86.d.ts} +2 -2
  35. package/dist/{chunk-FC6WR2AB.js → chunk-2YOWXBHH.js} +4 -3
  36. package/dist/{chunk-C3GDPTDO.js → chunk-4CXSWHQ6.js} +1 -1
  37. package/dist/{chunk-I7WONP6Y.js → chunk-4XUWIG3Z.js} +1 -1
  38. package/dist/{chunk-H42CXF2U.js → chunk-6SQTOOYP.js} +1 -1
  39. package/dist/{chunk-MSWIIMAD.js → chunk-72PK3PKI.js} +3 -3
  40. package/dist/{chunk-RP5COGN6.js → chunk-7MWYHGMD.js} +2 -2
  41. package/dist/{chunk-EZ65IQWB.js → chunk-A4M35XLF.js} +5 -4
  42. package/dist/{chunk-5UHQEC5K.js → chunk-A7FWC5OX.js} +1 -1
  43. package/dist/{chunk-GH36M7RI.js → chunk-DF3WCTFB.js} +1 -1
  44. package/dist/{chunk-FVI3HTIO.js → chunk-GOPRDIYL.js} +7 -5
  45. package/dist/chunk-IWMMZY56.js +20 -0
  46. package/dist/{chunk-QYJTS5PW.js → chunk-NQZYCFAA.js} +1 -1
  47. package/dist/{chunk-PXL7VX4V.js → chunk-O4IHON37.js} +1 -1
  48. package/dist/{chunk-I5GT57P3.js → chunk-OFBEDG4X.js} +1 -1
  49. package/dist/{chunk-WN4AUWSP.js → chunk-RE4YYQCE.js} +1 -1
  50. package/dist/{chunk-FRP5Y35B.js → chunk-THUBVEVZ.js} +1 -1
  51. package/dist/{chunk-IHHYXB3K.js → chunk-U6NXCWXE.js} +1 -1
  52. package/dist/{chunk-YSXM6ATC.js → chunk-UCUUIQHV.js} +1 -1
  53. package/dist/{chunk-6NMCE4AL.js → chunk-UNMBRIHZ.js} +156 -59
  54. package/dist/{chunk-M7EBNJWK.js → chunk-XZV42PVV.js} +1 -1
  55. package/dist/{chunk-H54ORPCL.js → chunk-YABXOO3H.js} +22 -14
  56. package/dist/{chunk-NQNYCD4R.js → chunk-Z3Z7A3YS.js} +1 -1
  57. package/dist/{client-types-BkeR6R_z.d.ts → client-types-DRmsTfeT.d.ts} +1 -1
  58. package/dist/generateApi-D7KXciAd.d.ts +55 -0
  59. package/dist/index.d.ts +12 -8
  60. package/dist/index.js +22 -22
  61. package/dist/public-functions/executeRoute.d.ts +23 -4
  62. package/dist/public-functions/executeRoute.js +11 -11
  63. package/dist/public-functions/getCosmosGasAmountForMessage.d.ts +1 -1
  64. package/dist/public-functions/getEvmGasAmountForMessage.d.ts +2 -2
  65. package/dist/public-functions/getFeeInfoForChain.d.ts +2 -2
  66. package/dist/public-functions/getFeeInfoForChain.js +3 -3
  67. package/dist/public-functions/getRecommendedGasPrice.d.ts +1 -1
  68. package/dist/public-functions/getRecommendedGasPrice.js +4 -4
  69. package/dist/public-functions/getSigningStargateClient.js +3 -3
  70. package/dist/public-functions/setApiOptions.d.ts +2 -2
  71. package/dist/public-functions/setApiOptions.js +2 -2
  72. package/dist/public-functions/setClientOptions.d.ts +4 -4
  73. package/dist/public-functions/setClientOptions.js +3 -3
  74. package/dist/public-functions/waitForTransaction.d.ts +6 -6
  75. package/dist/public-functions/waitForTransaction.js +4 -4
  76. package/dist/{setClientOptions-CI_7IPLT.d.ts → setClientOptions-CwcM5Ps9.d.ts} +2 -2
  77. package/dist/{swaggerTypes-CAERZYPb.d.ts → swaggerTypes-BpJPRbC3.d.ts} +6 -2
  78. package/package.json +1 -1
  79. package/dist/chunk-Z7GQR23T.js +0 -11
  80. package/dist/generateApi-8YPJU-Al.d.ts +0 -22
package/dist/index.d.ts CHANGED
@@ -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-CAERZYPb.js';
2
- export { T as TransactionCallbacks } from './callbacks-BGRu2Ule.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-BkeR6R_z.js';
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';
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-CI_7IPLT.js';
21
+ export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-CwcM5Ps9.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';
@@ -31,8 +31,8 @@ import '@cosmjs/proto-signing';
31
31
  import '@cosmjs/stargate';
32
32
  import 'viem';
33
33
  import '@solana/wallet-adapter-base';
34
- import './apiState-CdzxTxYd.js';
35
- import './generateApi-8YPJU-Al.js';
34
+ import './apiState-DwZhwVul.js';
35
+ import './generateApi-D7KXciAd.js';
36
36
 
37
37
  interface AcknowledgementErrorDetailsJson {
38
38
  /** Error code */
@@ -1090,7 +1090,7 @@ declare enum TransactionStateJson {
1090
1090
  STATE_ABANDONED = "STATE_ABANDONED",
1091
1091
  STATE_PENDING_ERROR = "STATE_PENDING_ERROR"
1092
1092
  }
1093
- /** A transfer facilitated by the CCTP bridge */
1093
+ /** A transfer facilitated by the OP Init bridge */
1094
1094
  interface OPInitTransferJson {
1095
1095
  /** Canonical chain-id of the source chain of the bridge transaction */
1096
1096
  from_chain_id?: string;
@@ -1118,7 +1118,7 @@ interface OPInitTransferJson {
1118
1118
  smart_relay?: boolean;
1119
1119
  }
1120
1120
  interface OPInitTransferWrapperJson {
1121
- /** A transfer facilitated by the CCTP bridge */
1121
+ /** A transfer facilitated by the OP Init bridge */
1122
1122
  op_init_transfer?: OPInitTransferJson;
1123
1123
  }
1124
1124
  interface OPInitTransferInfoJson {
@@ -1516,12 +1516,16 @@ type RouteResponseJson = RouteJson;
1516
1516
  interface MsgsResponseJson {
1517
1517
  msgs?: MsgJson[];
1518
1518
  txs?: TxJson[];
1519
+ /** Minimum possible output after all operations, including fees and slippage */
1520
+ min_amount_out?: string;
1519
1521
  /** Indicates fees incurred in the execution of the transfer */
1520
1522
  estimated_fees?: FeeJson[];
1521
1523
  }
1522
1524
  interface MsgsDirectResponseJson {
1523
1525
  msgs?: MsgJson[];
1524
1526
  txs?: TxJson[];
1527
+ /** Minimum possible output after all operations, including fees and slippage */
1528
+ min_amount_out?: string;
1525
1529
  route?: RouteJson;
1526
1530
  }
1527
1531
  interface AssetRecommendationsResponseJson {
package/dist/index.js CHANGED
@@ -1,31 +1,31 @@
1
- export { setClientOptions } from './chunk-EZ65IQWB.js';
2
- export { executeRoute } from './chunk-6NMCE4AL.js';
3
- export { waitForTransaction } from './chunk-FVI3HTIO.js';
4
- export { transactionStatus } from './chunk-M7EBNJWK.js';
1
+ export { setClientOptions } from './chunk-A4M35XLF.js';
2
+ export { executeRoute } from './chunk-UNMBRIHZ.js';
3
+ export { waitForTransaction } from './chunk-GOPRDIYL.js';
4
+ export { transactionStatus } from './chunk-XZV42PVV.js';
5
5
  export { getCosmosGasAmountForMessage } from './chunk-TV2XPAIF.js';
6
6
  import './chunk-TD63P2AG.js';
7
7
  export { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
8
- export { getRecommendedGasPrice } from './chunk-PXL7VX4V.js';
8
+ export { getRecommendedGasPrice } from './chunk-O4IHON37.js';
9
9
  import './chunk-VQ5SIQWU.js';
10
- export { getFeeInfoForChain } from './chunk-H42CXF2U.js';
10
+ export { getFeeInfoForChain } from './chunk-6SQTOOYP.js';
11
11
  export { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
12
- export { getSigningStargateClient } from './chunk-MSWIIMAD.js';
12
+ export { getSigningStargateClient } from './chunk-72PK3PKI.js';
13
13
  import './chunk-36MCR5DZ.js';
14
- export { setApiOptions } from './chunk-FC6WR2AB.js';
15
- export { ibcOriginAssets } from './chunk-QYJTS5PW.js';
16
- export { messages } from './chunk-5UHQEC5K.js';
17
- export { messagesDirect } from './chunk-C3GDPTDO.js';
18
- export { recommendAssets } from './chunk-FRP5Y35B.js';
19
- export { route } from './chunk-IHHYXB3K.js';
20
- export { submit } from './chunk-I5GT57P3.js';
21
- export { submitTransaction } from './chunk-GH36M7RI.js';
22
- export { trackTransaction } from './chunk-Z7GQR23T.js';
23
- export { assetsBetweenChains } from './chunk-NQNYCD4R.js';
24
- export { bridges } from './chunk-YSXM6ATC.js';
25
- export { venues } from './chunk-WN4AUWSP.js';
26
- export { assetsFromSource } from './chunk-RP5COGN6.js';
27
- export { assets, balances, chains } from './chunk-I7WONP6Y.js';
28
- import './chunk-H54ORPCL.js';
14
+ export { setApiOptions } from './chunk-2YOWXBHH.js';
15
+ export { ibcOriginAssets } from './chunk-NQZYCFAA.js';
16
+ export { messages } from './chunk-A7FWC5OX.js';
17
+ export { messagesDirect } from './chunk-4CXSWHQ6.js';
18
+ export { recommendAssets } from './chunk-THUBVEVZ.js';
19
+ export { route } from './chunk-U6NXCWXE.js';
20
+ export { submit } from './chunk-OFBEDG4X.js';
21
+ export { submitTransaction } from './chunk-DF3WCTFB.js';
22
+ export { trackTransaction } from './chunk-IWMMZY56.js';
23
+ export { assetsBetweenChains } from './chunk-Z3Z7A3YS.js';
24
+ export { bridges } from './chunk-UCUUIQHV.js';
25
+ export { venues } from './chunk-RE4YYQCE.js';
26
+ export { assetsFromSource } from './chunk-7MWYHGMD.js';
27
+ export { assets, balances, chains } from './chunk-4XUWIG3Z.js';
28
+ import './chunk-YABXOO3H.js';
29
29
  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';
30
30
 
31
31
  // src/types/swaggerTypesJson.ts
@@ -1,7 +1,8 @@
1
- import { T as TransactionCallbacks } from '../callbacks-BGRu2Ule.js';
2
- import { be as RouteResponse, W as CosmosMsg } from '../swaggerTypes-CAERZYPb.js';
3
- import { A as ApiRequest } from '../generateApi-8YPJU-Al.js';
4
- import { S as SignerGetters, b as GasOptions, U as UserAddress } from '../client-types-BkeR6R_z.js';
1
+ import { T as TransactionCallbacks } from '../callbacks-CPh0dr86.js';
2
+ import { be as RouteResponse, W as CosmosMsg, an as PostHandler } from '../swaggerTypes-BpJPRbC3.js';
3
+ import { A as ApiRequest } from '../generateApi-D7KXciAd.js';
4
+ import { S as SignerGetters, b as GasOptions, U as UserAddress } from '../client-types-DRmsTfeT.js';
5
+ import { TrackTxPollingProps } from '../api/postTrackTransaction.js';
5
6
  import '@cosmjs/amino';
6
7
  import '@cosmjs/proto-signing';
7
8
  import '@cosmjs/stargate';
@@ -39,6 +40,24 @@ type ExecuteRouteOptions = SignerGetters & GasOptions & TransactionCallbacks & P
39
40
  * If `batchSimulate` is set to `false`, it will simulate each message one by one.
40
41
  */
41
42
  batchSimulate?: boolean;
43
+ /**
44
+ * Optional configuration for transaction polling behavior.
45
+ * - `maxRetries`: Maximum number of polling attempts (default: 5)
46
+ * - `retryInterval`: Retry interval in milliseconds (default: 1000)
47
+ * - `backoffMultiplier`: Exponential backoff multiplier for increasing delay between retries (default: 2.5)
48
+ * Example backoff with retryInterval = 1000 and backoffMultiplier = 2:
49
+ * 1st retry: 1000ms → 2nd: 2000ms → 3rd: 4000ms → 4th: 8000ms ...
50
+ */
51
+ trackTxPollingOptions?: TrackTxPollingProps;
52
+ /**
53
+ * If `batchSignTxs` is set to `true`, it will sign all transactions in a batch up front.
54
+ * If `batchSignTxs` is set to `false`, it will sign each transaction one by one.
55
+ */
56
+ batchSignTxs?: boolean;
57
+ /**
58
+ * Specify actions to perform after the route is completed
59
+ */
60
+ postRouteHandler?: PostHandler;
42
61
  };
43
62
  declare const executeRoute: (options: ExecuteRouteOptions) => Promise<void>;
44
63
 
@@ -1,18 +1,18 @@
1
- export { executeRoute } from '../chunk-6NMCE4AL.js';
2
- import '../chunk-FVI3HTIO.js';
3
- import '../chunk-M7EBNJWK.js';
1
+ export { executeRoute } from '../chunk-UNMBRIHZ.js';
2
+ import '../chunk-GOPRDIYL.js';
3
+ import '../chunk-XZV42PVV.js';
4
4
  import '../chunk-TV2XPAIF.js';
5
5
  import '../chunk-TD63P2AG.js';
6
6
  import '../chunk-GV2QOWB4.js';
7
7
  import '../chunk-VQ5SIQWU.js';
8
8
  import '../chunk-SWYON2RG.js';
9
- import '../chunk-MSWIIMAD.js';
9
+ import '../chunk-72PK3PKI.js';
10
10
  import '../chunk-36MCR5DZ.js';
11
- import '../chunk-5UHQEC5K.js';
12
- import '../chunk-I5GT57P3.js';
13
- import '../chunk-GH36M7RI.js';
14
- import '../chunk-Z7GQR23T.js';
15
- import '../chunk-WN4AUWSP.js';
16
- import '../chunk-I7WONP6Y.js';
17
- import '../chunk-H54ORPCL.js';
11
+ import '../chunk-A7FWC5OX.js';
12
+ import '../chunk-OFBEDG4X.js';
13
+ import '../chunk-DF3WCTFB.js';
14
+ import '../chunk-IWMMZY56.js';
15
+ import '../chunk-RE4YYQCE.js';
16
+ import '../chunk-4XUWIG3Z.js';
17
+ import '../chunk-YABXOO3H.js';
18
18
  import '../chunk-UXUJNZOA.js';
@@ -1,6 +1,6 @@
1
1
  import { EncodeObject } from '@cosmjs/proto-signing';
2
2
  import { SigningStargateClient } from '@cosmjs/stargate';
3
- import { W as CosmosMsg } from '../swaggerTypes-CAERZYPb.js';
3
+ import { W as CosmosMsg } from '../swaggerTypes-BpJPRbC3.js';
4
4
 
5
5
  declare const DEFAULT_GAS_MULTIPLIER = 1.5;
6
6
  declare function getCosmosGasAmountForMessage(client: SigningStargateClient, signerAddress: string, chainId: string, messages?: CosmosMsg[], encodedMsgs?: EncodeObject[], multiplier?: number): Promise<string>;
@@ -1,5 +1,5 @@
1
- import { G as GetFallbackGasAmount } from '../client-types-BkeR6R_z.js';
2
- import { $ as EvmTx } from '../swaggerTypes-CAERZYPb.js';
1
+ import { G as GetFallbackGasAmount } from '../client-types-DRmsTfeT.js';
2
+ import { $ as EvmTx } from '../swaggerTypes-BpJPRbC3.js';
3
3
  import { WalletClient } from 'viem';
4
4
  import '@cosmjs/amino';
5
5
  import '@cosmjs/proto-signing';
@@ -1,5 +1,5 @@
1
- import { a3 as FeeAsset } from '../swaggerTypes-CAERZYPb.js';
2
- import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
1
+ import { a3 as FeeAsset } from '../swaggerTypes-BpJPRbC3.js';
2
+ import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
3
3
 
4
4
  type GetFeeInfoForChainProps = {
5
5
  chainId: string;
@@ -1,6 +1,6 @@
1
- export { getFeeInfoForChain } from '../chunk-H42CXF2U.js';
1
+ export { getFeeInfoForChain } from '../chunk-6SQTOOYP.js';
2
2
  import '../chunk-SWYON2RG.js';
3
3
  import '../chunk-36MCR5DZ.js';
4
- import '../chunk-I7WONP6Y.js';
5
- import '../chunk-H54ORPCL.js';
4
+ import '../chunk-4XUWIG3Z.js';
5
+ import '../chunk-YABXOO3H.js';
6
6
  import '../chunk-UXUJNZOA.js';
@@ -1,5 +1,5 @@
1
1
  import { GasPrice } from '@cosmjs/stargate';
2
- import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
2
+ import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
3
3
 
4
4
  type getRecommendedGasPriceProps = {
5
5
  chainId: string;
@@ -1,8 +1,8 @@
1
- export { getRecommendedGasPrice } from '../chunk-PXL7VX4V.js';
1
+ export { getRecommendedGasPrice } from '../chunk-O4IHON37.js';
2
2
  import '../chunk-VQ5SIQWU.js';
3
- import '../chunk-H42CXF2U.js';
3
+ import '../chunk-6SQTOOYP.js';
4
4
  import '../chunk-SWYON2RG.js';
5
5
  import '../chunk-36MCR5DZ.js';
6
- import '../chunk-I7WONP6Y.js';
7
- import '../chunk-H54ORPCL.js';
6
+ import '../chunk-4XUWIG3Z.js';
7
+ import '../chunk-YABXOO3H.js';
8
8
  import '../chunk-UXUJNZOA.js';
@@ -1,5 +1,5 @@
1
- export { getSigningStargateClient } from '../chunk-MSWIIMAD.js';
1
+ export { getSigningStargateClient } from '../chunk-72PK3PKI.js';
2
2
  import '../chunk-36MCR5DZ.js';
3
- import '../chunk-I7WONP6Y.js';
4
- import '../chunk-H54ORPCL.js';
3
+ import '../chunk-4XUWIG3Z.js';
4
+ import '../chunk-YABXOO3H.js';
5
5
  import '../chunk-UXUJNZOA.js';
@@ -1,5 +1,5 @@
1
- import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
2
- import { M as ChainAffiliates } from '../swaggerTypes-CAERZYPb.js';
1
+ import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
2
+ import { M as ChainAffiliates } from '../swaggerTypes-BpJPRbC3.js';
3
3
 
4
4
  type SetApiOptionsProps = {
5
5
  chainIdsToAffiliates?: Record<string, ChainAffiliates>;
@@ -1,3 +1,3 @@
1
- export { setApiOptions } from '../chunk-FC6WR2AB.js';
2
- import '../chunk-H54ORPCL.js';
1
+ export { setApiOptions } from '../chunk-2YOWXBHH.js';
2
+ import '../chunk-YABXOO3H.js';
3
3
  import '../chunk-UXUJNZOA.js';
@@ -1,9 +1,9 @@
1
- export { s as setClientOptions } from '../setClientOptions-CI_7IPLT.js';
1
+ export { s as setClientOptions } from '../setClientOptions-CwcM5Ps9.js';
2
2
  import '@cosmjs/proto-signing';
3
3
  import '@cosmjs/stargate';
4
- import '../apiState-CdzxTxYd.js';
5
- import '../client-types-BkeR6R_z.js';
4
+ import '../apiState-DwZhwVul.js';
5
+ import '../client-types-DRmsTfeT.js';
6
6
  import '@cosmjs/amino';
7
7
  import 'viem';
8
8
  import '@solana/wallet-adapter-base';
9
- import '../swaggerTypes-CAERZYPb.js';
9
+ import '../swaggerTypes-BpJPRbC3.js';
@@ -1,5 +1,5 @@
1
- export { setClientOptions } from '../chunk-EZ65IQWB.js';
1
+ export { setClientOptions } from '../chunk-A4M35XLF.js';
2
2
  import '../chunk-TD63P2AG.js';
3
- import '../chunk-I7WONP6Y.js';
4
- import '../chunk-H54ORPCL.js';
3
+ import '../chunk-4XUWIG3Z.js';
4
+ import '../chunk-YABXOO3H.js';
5
5
  import '../chunk-UXUJNZOA.js';
@@ -1,12 +1,12 @@
1
- import { av as StatusErrorType, aJ as TransactionState, al as PacketErrorType, aS as TransferState, k as AxelarTransferState, O as ContractCallWithTokenErrorType, as as SendTokenErrorType, l as AxelarTransferType, p as CCTPTransferState, a8 as HyperlaneTransferState, aO as OPInitTransferState, s as StargateTransferState, w as GoFastTransferState, aP as LayerZeroTransferState } from '../swaggerTypes-CAERZYPb.js';
2
- import { T as TransactionCallbacks } from '../callbacks-BGRu2Ule.js';
1
+ import { av as StatusErrorType, aJ as TransactionState, al as PacketErrorType, aS as TransferState, k as AxelarTransferState, O as ContractCallWithTokenErrorType, as as SendTokenErrorType, l as AxelarTransferType, p as CCTPTransferState, a8 as HyperlaneTransferState, aO as OPInitTransferState, s as StargateTransferState, w as GoFastTransferState, aP as LayerZeroTransferState } from '../swaggerTypes-BpJPRbC3.js';
2
+ import { T as TransactionCallbacks } from '../callbacks-CPh0dr86.js';
3
+ import { TrackTxRequest } from '../api/postTrackTransaction.js';
4
+ import '../generateApi-D7KXciAd.js';
3
5
 
4
- type WaitForTransactionProps = {
5
- chainId: string;
6
- txHash: string;
6
+ type WaitForTransactionProps = TrackTxRequest & {
7
7
  onTransactionTracked?: TransactionCallbacks["onTransactionTracked"];
8
8
  };
9
- declare const waitForTransaction: ({ chainId, txHash, onTransactionTracked, }: WaitForTransactionProps) => Promise<{
9
+ declare const waitForTransaction: ({ chainId, txHash, onTransactionTracked, ...trackTxPollingOptions }: WaitForTransactionProps) => Promise<{
10
10
  transfers?: {
11
11
  error?: {
12
12
  details?: {
@@ -1,5 +1,5 @@
1
- export { waitForTransaction } from '../chunk-FVI3HTIO.js';
2
- import '../chunk-M7EBNJWK.js';
3
- import '../chunk-Z7GQR23T.js';
4
- import '../chunk-H54ORPCL.js';
1
+ export { waitForTransaction } from '../chunk-GOPRDIYL.js';
2
+ import '../chunk-XZV42PVV.js';
3
+ import '../chunk-IWMMZY56.js';
4
+ import '../chunk-YABXOO3H.js';
5
5
  import '../chunk-UXUJNZOA.js';
@@ -1,7 +1,7 @@
1
1
  import { GeneratedType } from '@cosmjs/proto-signing';
2
2
  import { AminoConverters } from '@cosmjs/stargate';
3
- import { S as SkipApiOptions } from './apiState-CdzxTxYd.js';
4
- import { E as EndpointOptions } from './client-types-BkeR6R_z.js';
3
+ import { S as SkipApiOptions } from './apiState-DwZhwVul.js';
4
+ import { E as EndpointOptions } from './client-types-DRmsTfeT.js';
5
5
 
6
6
  type SkipClientOptions = SkipApiOptions & {
7
7
  endpointOptions?: {
@@ -1054,7 +1054,7 @@ declare enum TransactionState {
1054
1054
  STATE_ABANDONED = "STATE_ABANDONED",
1055
1055
  STATE_PENDING_ERROR = "STATE_PENDING_ERROR"
1056
1056
  }
1057
- /** A transfer facilitated by the CCTP bridge */
1057
+ /** A transfer facilitated by the OP Init bridge */
1058
1058
  interface OPInitTransfer {
1059
1059
  /** Canonical chain-id of the source chain of the bridge transaction */
1060
1060
  fromChainId?: string;
@@ -1082,7 +1082,7 @@ interface OPInitTransfer {
1082
1082
  smartRelay?: boolean;
1083
1083
  }
1084
1084
  interface OPInitTransferWrapper {
1085
- /** A transfer facilitated by the CCTP bridge */
1085
+ /** A transfer facilitated by the OP Init bridge */
1086
1086
  opInitTransfer?: OPInitTransfer;
1087
1087
  }
1088
1088
  interface OPInitTransferInfo {
@@ -1480,12 +1480,16 @@ type RouteResponse = Route;
1480
1480
  interface MsgsResponse {
1481
1481
  msgs?: Msg[];
1482
1482
  txs?: Tx[];
1483
+ /** Minimum possible output after all operations, including fees and slippage */
1484
+ minAmountOut?: string;
1483
1485
  /** Indicates fees incurred in the execution of the transfer */
1484
1486
  estimatedFees?: Fee[];
1485
1487
  }
1486
1488
  interface MsgsDirectResponse {
1487
1489
  msgs?: Msg[];
1488
1490
  txs?: Tx[];
1491
+ /** Minimum possible output after all operations, including fees and slippage */
1492
+ minAmountOut?: string;
1489
1493
  route?: Route;
1490
1494
  }
1491
1495
  interface AssetRecommendationsResponse {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@skip-go/client",
3
3
  "description": "JavaScript SDK for Skip Go API",
4
- "version": "1.1.8",
4
+ "version": "1.2.0",
5
5
  "repository": "https://github.com/skip-mev/skip-go",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
@@ -1,11 +0,0 @@
1
- import { pollingApi } from './chunk-H54ORPCL.js';
2
-
3
- // src/api/postTrackTransaction.ts
4
- var trackTransaction = pollingApi({
5
- methodName: "track",
6
- path: "v2/tx/track",
7
- method: "post",
8
- backoffMultiplier: 2.5
9
- });
10
-
11
- export { trackTransaction };
@@ -1,22 +0,0 @@
1
- import { bv as Api } from './swaggerTypes-CAERZYPb.js';
2
-
3
- type CamelKey<S extends string> = S extends `${infer T}_${infer U}` ? `${T}${Capitalize<CamelKey<U>>}` : S;
4
- type Camel<T> = T extends (infer U)[] ? Camel<U>[] : T extends object ? {
5
- [K in keyof T as K extends string ? CamelKey<K> : never]: Camel<T[K]>;
6
- } : T;
7
-
8
- type ApiInstance = InstanceType<typeof Api>;
9
- type FunctionKeys<T> = {
10
- [K in keyof T]: T[K] extends (...args: any[]) => any ? K : never;
11
- }[keyof T];
12
- type ValidApiMethodKeys = {
13
- [K in FunctionKeys<ApiInstance>]: Awaited<ReturnType<ApiInstance[K]>> extends {
14
- data: unknown;
15
- } ? K : never;
16
- }[FunctionKeys<ApiInstance>];
17
- type ApiRequest<K extends ValidApiMethodKeys> = NonNullable<Camel<Parameters<ApiInstance[K]>[0]>>;
18
- type ApiResponse<K extends ValidApiMethodKeys> = Camel<Awaited<ReturnType<ApiInstance[K]>> extends {
19
- data: infer D;
20
- } ? D extends object ? D : never : never>;
21
-
22
- export type { ApiRequest as A, ApiResponse as a };