@skip-go/client 0.9.3 → 0.10.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.
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
  [![npm/dt](https://badgen.net/npm/dt/@skip-go/client?)](https://www.npmjs.com/package/@skip-go/client)
3
3
  [![stars](https://badgen.net/github/stars/skip-mev/skip-go?)](https://github.com/skip-mev/skip-go)
4
4
 
5
- # @skip-go/client
5
+ # `@skip-go/client`
6
6
 
7
- JavaScript SDK for Skip Go API
7
+ TypeScript library that streamlines interaction with the Skip Go API, enabling cross-chain swaps and transfers across multiple ecosystems.
8
8
 
9
9
  ## Install
10
10
 
@@ -12,9 +12,13 @@ JavaScript SDK for Skip Go API
12
12
  npm install @skip-go/client
13
13
  ```
14
14
 
15
+ ```bash
16
+ yarn add @skip-go/client
17
+ ```
18
+
15
19
  ## Usage
16
20
 
17
- Read more at Skip Go API docs website on [Getting Started: TypeScript SDK](https://docs.skip.build/go/general/getting-started).
21
+ Follow the [Getting Started](https://docs.skip.build/go/client/getting-started) guide to begin your integration.
18
22
 
19
23
  ## Development
20
24
 
@@ -36,6 +40,7 @@ npm -w @skip-go/client run watch
36
40
  npm run build
37
41
  ```
38
42
 
43
+
39
44
  ## Unit Tests
40
45
 
41
46
  ```bash
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ var chunk6FNC3XMI_js = require('./chunk-6FNC3XMI.js');
4
+
3
5
  // src/types/converters.ts
4
6
  function affiliateFromJSON(affiliateJSON) {
5
7
  return {
@@ -1649,13 +1651,11 @@ function opInitTransferInfoToJSON(value) {
1649
1651
  }
1650
1652
  function msgsDirectRequestFromJSON(msgDirectRequestJSON) {
1651
1653
  var _a;
1652
- return {
1654
+ const baseRequest = {
1653
1655
  sourceAssetDenom: msgDirectRequestJSON.source_asset_denom,
1654
1656
  sourceAssetChainID: msgDirectRequestJSON.source_asset_chain_id,
1655
1657
  destAssetDenom: msgDirectRequestJSON.dest_asset_denom,
1656
1658
  destAssetChainID: msgDirectRequestJSON.dest_asset_chain_id,
1657
- amountIn: msgDirectRequestJSON.amount_in,
1658
- amountOut: msgDirectRequestJSON.amount_out,
1659
1659
  chainIdsToAddresses: msgDirectRequestJSON.chain_ids_to_addresses,
1660
1660
  slippageTolerancePercent: msgDirectRequestJSON.slippage_tolerance_percent,
1661
1661
  affiliates: (_a = msgDirectRequestJSON.affiliates) == null ? void 0 : _a.map(affiliateFromJSON),
@@ -1669,18 +1669,29 @@ function msgsDirectRequestFromJSON(msgDirectRequestJSON) {
1669
1669
  smartRelay: msgDirectRequestJSON.smart_relay,
1670
1670
  smartSwapOptions: msgDirectRequestJSON.smart_swap_options ? smartSwapOptionsFromJSON(msgDirectRequestJSON.smart_swap_options) : void 0,
1671
1671
  allowSwaps: msgDirectRequestJSON.allow_swaps,
1672
- enableGasWarnings: msgDirectRequestJSON.enable_gas_warnings
1673
- };
1672
+ enableGasWarnings: msgDirectRequestJSON.enable_gas_warnings,
1673
+ allowMultiTx: msgDirectRequestJSON.allow_multi_tx,
1674
+ allowUnsafe: msgDirectRequestJSON.allow_unsafe,
1675
+ bridges: msgDirectRequestJSON.bridges,
1676
+ experimentalFeatures: msgDirectRequestJSON.experimental_features
1677
+ };
1678
+ if (msgDirectRequestJSON.amount_in !== void 0) {
1679
+ return chunk6FNC3XMI_js.__spreadProps(chunk6FNC3XMI_js.__spreadValues({}, baseRequest), {
1680
+ amountIn: msgDirectRequestJSON.amount_in
1681
+ });
1682
+ } else {
1683
+ return chunk6FNC3XMI_js.__spreadProps(chunk6FNC3XMI_js.__spreadValues({}, baseRequest), {
1684
+ amountOut: msgDirectRequestJSON.amount_out
1685
+ });
1686
+ }
1674
1687
  }
1675
1688
  function msgsDirectRequestToJSON(msgDirectRequest) {
1676
1689
  var _a;
1677
- return {
1690
+ const baseRequest = {
1678
1691
  source_asset_denom: msgDirectRequest.sourceAssetDenom,
1679
1692
  source_asset_chain_id: msgDirectRequest.sourceAssetChainID,
1680
1693
  dest_asset_denom: msgDirectRequest.destAssetDenom,
1681
1694
  dest_asset_chain_id: msgDirectRequest.destAssetChainID,
1682
- amount_in: msgDirectRequest.amountIn,
1683
- amount_out: msgDirectRequest.amountOut,
1684
1695
  chain_ids_to_addresses: msgDirectRequest.chainIdsToAddresses,
1685
1696
  slippage_tolerance_percent: msgDirectRequest.slippageTolerancePercent,
1686
1697
  affiliates: (_a = msgDirectRequest.affiliates) == null ? void 0 : _a.map(affiliateToJSON),
@@ -1698,6 +1709,15 @@ function msgsDirectRequestToJSON(msgDirectRequest) {
1698
1709
  allow_swaps: msgDirectRequest.allowSwaps,
1699
1710
  enable_gas_warnings: msgDirectRequest.enableGasWarnings
1700
1711
  };
1712
+ if (msgDirectRequest.amountIn !== void 0) {
1713
+ return chunk6FNC3XMI_js.__spreadProps(chunk6FNC3XMI_js.__spreadValues({}, baseRequest), {
1714
+ amount_in: msgDirectRequest.amountIn
1715
+ });
1716
+ } else {
1717
+ return chunk6FNC3XMI_js.__spreadProps(chunk6FNC3XMI_js.__spreadValues({}, baseRequest), {
1718
+ amount_out: msgDirectRequest.amountOut
1719
+ });
1720
+ }
1701
1721
  }
1702
1722
  function smartSwapOptionsFromJSON(smartSwapOptionsJSON) {
1703
1723
  return {
package/dist/index.d.ts CHANGED
@@ -7,8 +7,8 @@ import { AminoConverters, GasPrice, StdFee, SignerData, AminoTypes, SigningStarg
7
7
  import { TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx';
8
8
  import { TxStatusResponse, Chain, SubmitTxResponse, TrackTxResponse, FeeAsset } from './types.js';
9
9
  export { AcknowledgementError, AxelarTransferInfo, AxelarTransferInfoJSON, AxelarTransferState, AxelarTransferTransactions, AxelarTransferTransactionsJSON, AxelarTransferType, CCTPTransferInfo, CCTPTransferInfoJSON, CCTPTransferState, CCTPTransferTransactions, CCTPTransferTransactionsJSON, ChainJSON, ChainTransaction, ChainTransactionJSON, ContractCallWithTokenError, ContractCallWithTokenErrorType, ContractCallWithTokenTransactions, ContractCallWithTokenTransactionsJSON, FeeAssetJSON, GasPriceInfo, HyperlaneTransferInfo, HyperlaneTransferInfoJSON, HyperlaneTransferState, HyperlaneTransferTransactions, HyperlaneTransferTransactionsJSON, IbcCapabilities, IbcCapabilitiesJSON, ModuleSupport, ModuleVersionInfo, NextBlockingTransfer, NextBlockingTransferJSON, OPInitTransferInfo, OPInitTransferInfoJSON, OPInitTransferState, OPInitTransferTransactions, OPInitTransferTransactionsJSON, Packet, PacketError, PacketErrorJSON, PacketErrorType, PacketJSON, SendTokenError, SendTokenErrorType, SendTokenTransactions, SendTokenTransactionsJSON, StatusError, StatusErrorJSON, StatusErrorType, StatusRequest, StatusRequestJSON, StatusState, SubmitTxRequest, SubmitTxRequestJSON, SubmitTxResponseJSON, TrackTxRequest, TrackTxRequestJSON, TrackTxResponseJSON, TransactionExecutionError, TransferAssetRelease, TransferAssetReleaseJSON, TransferEvent, TransferEventJSON, TransferInfo, TransferInfoJSON, TransferState, TransferStatus, TransferStatusJSON, TxStatusResponseJSON, Venue, affiliateFromJSON, affiliateToJSON, assetBetweenChainsFromJSON, assetBetweenChainsToJSON, assetFromJSON, assetOrErrorFromJSON, assetOrErrorToJSON, assetRecommendationFromJSON, assetRecommendationRequestFromJSON, assetRecommendationRequestToJSON, assetRecommendationToJSON, assetToJSON, assetsBetweenChainsRequestFromJSON, assetsBetweenChainsRequestToJSON, assetsBetweenChainsResponseFromJSON, assetsFromSourceRequestFromJSON, assetsFromSourceRequestToJSON, assetsRequestFromJSON, assetsRequestToJSON, axelarTransferFromJSON, axelarTransferInfoFromJSON, axelarTransferInfoToJSON, axelarTransferToJSON, axelarTransferTransactionsFromJSON, axelarTransferTransactionsToJSON, balanceRequestChainEntryFromJSON, balanceRequestChainEntryToJSON, balanceRequestFromJSON, balanceRequestToJSON, balanceResponseChainEntryFromJSON, balanceResponseChainEntryToJSON, balanceResponseDenomEntryFromJSON, balanceResponseDenomEntryToJSON, balanceResponseFromJSON, balanceResponseToJSON, bankSendFromJSON, bankSendToJSON, bridgeFromJSON, bridgeToJSON, bridgesResponseFromJSON, bridgesResponseToJSON, cctpTransferFromJSON, cctpTransferInfoFromJSON, cctpTransferInfoToJSON, cctpTransferToJSON, cctpTransferTransactionsFromJSON, cctpTransferTransactionsToJSON, chainAffiliatesFromJSON, chainAffiliatesToJSON, chainFromJSON, chainIDsToAffiliatesMapFromJSON, chainIDsToAffiliatesMapToJSON, chainToJSON, chainTransactionFromJSON, chainTransactionToJSON, contractCallWithTokenTransactionsFromJSON, contractCallWithTokenTransactionsToJSON, cosmWasmContractMsgFromJSON, cosmWasmContractMsgToJSON, cosmosMsgFromJSON, cosmosMsgToJSON, cosmosTxFromJSON, cosmosTxToJSON, denomWithChainIDFromJSON, denomWithChainIDToJSON, erc20ApprovalFromJSON, erc20ApprovalToJSON, estimatedFeeFromJSON, estimatedFeeToJSON, evmSwapFromJSON, evmSwapToJSON, evmTxFromJSON, evmTxToJSON, feeAssetFromJSON, feeAssetToJSON, hyperlaneTransferFromJSON, hyperlaneTransferInfoFromJSON, hyperlaneTransferInfoToJSON, hyperlaneTransferToJSON, hyperlaneTransferTransactionsFromJSON, hyperlaneTransferTransactionsToJSON, ibcAddressFromJSON, ibcAddressToJSON, ibcCapabilitiesFromJSON, ibcCapabilitiesToJSON, messageResponseFromJSON, msgFromJSON, msgToJSON, msgsDirectRequestFromJSON, msgsDirectRequestToJSON, msgsRequestFromJSON, msgsRequestToJSON, multiChainMsgFromJSON, multiChainMsgToJSON, nextBlockingTransferFromJSON, nextBlockingTransferToJSON, opInitTransferFromJSON, opInitTransferInfoFromJSON, opInitTransferInfoToJSON, opInitTransferToJSON, opInitTransferTransactionsFromJSON, opInitTransferTransactionsToJSON, operationFromJSON, operationToJSON, originAssetsRequestFromJSON, originAssetsRequestToJSON, originAssetsResponseFromJSON, originAssetsResponseToJSON, packetFromJSON, packetToJSON, postHandlerFromJSON, postHandlerToJSON, recommendAssetsRequestFromJSON, recommendAssetsRequestToJSON, recommendAssetsResponseFromJSON, recommendAssetsResponseToJSON, recommendationEntryFromJSON, recommendationEntryToJSON, routeRequestFromJSON, routeRequestToJSON, routeResponseFromJSON, routeResponseToJSON, sendTokenTransactionsFromJSON, sendTokenTransactionsToJSON, smartRelayFeeQuoteFromJSON, smartRelayFeeQuoteToJSON, smartSwapExactCoinInFromJSON, smartSwapExactCoinInToJSON, smartSwapOptionsFromJSON, smartSwapOptionsToJSON, submitTxRequestFromJSON, submitTxRequestToJSON, submitTxResponseFromJSON, submitTxResponseToJSON, svmTxFromJSON, svmTxToJSON, swapExactCoinInFromJSON, swapExactCoinInToJSON, swapExactCoinOutFromJSON, swapExactCoinOutToJSON, swapFromJSON, swapOperationFromJSON, swapOperationToJSON, swapRouteFromJSON, swapRouteToJSON, swapToJSON, swapVenueFromJSON, swapVenueRequestFromJSON, swapVenueRequestToJSON, swapVenueToJSON, trackTxRequestFromJSON, trackTxRequestToJSON, trackTxResponseFromJSON, trackTxResponseToJSON, transferAssetReleaseFromJSON, transferAssetReleaseToJSON, transferEventFromJSON, transferEventToJSON, transferFromJSON, transferInfoFromJSON, transferInfoToJSON, transferStatusFromJSON, transferStatusToJSON, transferToJSON, txFromJSON, txStatusRequestFromJSON, txStatusRequestToJSON, txStatusResponseFromJSON, txStatusResponseToJSON, txToJSON } from './types.js';
10
- import { a as ChainAffiliates, R as RouteResponse, M as MultiChainMsg, C as CosmosMsg, A as AssetsRequest, b as Asset, c as AssetsFromSourceRequest, d as AssetsBetweenChainsRequest, e as AssetBetweenChains, B as Bridge, f as BalanceRequest, g as BalanceResponse, T as Tx, E as EvmTx, S as SvmTx, h as MsgsRequest, i as MsgsResponse, j as RouteRequest, k as MsgsDirectRequest, l as MsgsDirectResponse, m as AssetRecommendationRequest, n as RecommendationEntry, D as DenomWithChainID, o as AssetOrError, p as SwapVenue } from './shared-DxdVuIaC.js';
11
- export { aa as Affiliate, a9 as AffiliateJSON, ao as ApiError, b4 as AssetBetweenChainsJSON, r as AssetJSON, ap as AssetOrErrorJSON, ay as AssetRecommendation, az as AssetRecommendationJSON, aA as AssetRecommendationRequestJSON, b5 as AssetsBetweenChainsRequestJSON, b7 as AssetsBetweenChainsResponse, b6 as AssetsBetweenChainsResponseJSON, ax as AssetsFromSourceRequestJSON, aw as AssetsRequestJSON, af as AutopilotAction, ag as AutopilotMsg, v as AxelarTransfer, u as AxelarTransferJSON, b9 as BalanceRequestChainEntry, b8 as BalanceRequestChainEntryJSON, ba as BalanceRequestJSON, be as BalanceResponseChainEntry, bd as BalanceResponseChainEntryJSON, bc as BalanceResponseDenomEntry, bb as BalanceResponseDenomEntryJSON, bf as BalanceResponseJSON, x as BankSend, w as BankSendJSON, bi as BridgeJSON, b3 as BridgeType, bh as BridgesResponse, bg as BridgesResponseJSON, J as CCTPTransfer, H as CCTPTransferJSON, ab as ChainAffiliatesJSON, ae as CosmWasmContractMsg, ad as CosmWasmContractMsgJSON, z as CosmosMsgJSON, G as CosmosTx, F as CosmosTxJSON, an as DenomWithChainIDJSON, ak as ERC20Approval, aj as ERC20ApprovalJSON, aU as EstimatedFee, aV as EstimatedFeeJSON, a8 as EvmSwap, a7 as EvmSwapJSON, am as EvmTxJSON, aQ as ExperimentalFeature, aT as FeeType, L as HyperlaneTransfer, K as HyperlaneTransferJSON, q as IBCAddress, I as IBCAddressJSON, b0 as Msg, a$ as MsgJSON, a_ as MsgsDirectRequestJSON, aK as MsgsDirectResponseJSON, aZ as MsgsRequestJSON, b2 as MsgsResponseJSON, aS as MsgsWarning, aP as MsgsWarningType, y as MultiChainMsgJSON, N as OPInitTransfer, O as OPInitTransferJSON, aX as Operation, aW as OperationJSON, ar as OriginAssetsRequest, aq as OriginAssetsRequestJSON, at as OriginAssetsResponse, as as OriginAssetsResponseJSON, ai as PostHandler, ah as PostHandlerJSON, ac as Reason, aC as RecommendAssetsRequest, aB as RecommendAssetsRequestJSON, aE as RecommendAssetsResponse, aD as RecommendAssetsResponseJSON, aF as RecommendationEntryJSON, aL as RouteRequestBase, aG as RouteRequestBaseJSON, aM as RouteRequestGivenIn, aH as RouteRequestGivenInJSON, aN as RouteRequestGivenOut, aI as RouteRequestGivenOutJSON, aJ as RouteRequestJSON, aY as RouteResponseJSON, aR as RouteWarning, aO as RouteWarningType, Q as SmartRelayFeeQuote, P as SmartRelayFeeQuoteJSON, a4 as SmartSwapExactCoinIn, a3 as SmartSwapExactCoinInJSON, av as SmartSwapOptions, au as SmartSwapOptionsJSON, al as SvmTxJSON, a6 as Swap, a0 as SwapExactCoinIn, $ as SwapExactCoinInJSON, _ as SwapExactCoinOut, Z as SwapExactCoinOutJSON, a5 as SwapJSON, Y as SwapOperation, X as SwapOperationJSON, a2 as SwapRoute, a1 as SwapRouteJSON, U as SwapVenueJSON, W as SwapVenueRequest, V as SwapVenueRequestJSON, t as Transfer, s as TransferJSON, b1 as TxJSON } from './shared-DxdVuIaC.js';
10
+ import { a as ChainAffiliates, R as RouteResponse, M as MultiChainMsg, C as CosmosMsg, A as AssetsRequest, b as Asset, c as AssetsFromSourceRequest, d as AssetsBetweenChainsRequest, e as AssetBetweenChains, B as Bridge, f as BalanceRequest, g as BalanceResponse, T as Tx, E as EvmTx, S as SvmTx, h as MsgsRequest, i as MsgsResponse, j as RouteRequest, k as MsgsDirectRequest, l as MsgsDirectResponse, m as AssetRecommendationRequest, n as RecommendationEntry, D as DenomWithChainID, o as AssetOrError, p as SwapVenue } from './shared-IGtrUCgc.js';
11
+ export { aa as Affiliate, a9 as AffiliateJSON, ao as ApiError, ba as AssetBetweenChainsJSON, r as AssetJSON, ap as AssetOrErrorJSON, ay as AssetRecommendation, az as AssetRecommendationJSON, aA as AssetRecommendationRequestJSON, bb as AssetsBetweenChainsRequestJSON, bd as AssetsBetweenChainsResponse, bc as AssetsBetweenChainsResponseJSON, ax as AssetsFromSourceRequestJSON, aw as AssetsRequestJSON, af as AutopilotAction, ag as AutopilotMsg, v as AxelarTransfer, u as AxelarTransferJSON, bf as BalanceRequestChainEntry, be as BalanceRequestChainEntryJSON, bg as BalanceRequestJSON, bk as BalanceResponseChainEntry, bj as BalanceResponseChainEntryJSON, bi as BalanceResponseDenomEntry, bh as BalanceResponseDenomEntryJSON, bl as BalanceResponseJSON, x as BankSend, w as BankSendJSON, bo as BridgeJSON, b9 as BridgeType, bn as BridgesResponse, bm as BridgesResponseJSON, J as CCTPTransfer, H as CCTPTransferJSON, ab as ChainAffiliatesJSON, ae as CosmWasmContractMsg, ad as CosmWasmContractMsgJSON, z as CosmosMsgJSON, G as CosmosTx, F as CosmosTxJSON, an as DenomWithChainIDJSON, ak as ERC20Approval, aj as ERC20ApprovalJSON, aU as EstimatedFee, aV as EstimatedFeeJSON, a8 as EvmSwap, a7 as EvmSwapJSON, am as EvmTxJSON, aQ as ExperimentalFeature, aT as FeeType, L as HyperlaneTransfer, K as HyperlaneTransferJSON, q as IBCAddress, I as IBCAddressJSON, b6 as Msg, b5 as MsgJSON, b2 as MsgsDirectRequestBase, a_ as MsgsDirectRequestBaseJSON, b3 as MsgsDirectRequestGivenIn, a$ as MsgsDirectRequestGivenInJSON, b4 as MsgsDirectRequestGivenOut, b0 as MsgsDirectRequestGivenOutJSON, b1 as MsgsDirectRequestJSON, aK as MsgsDirectResponseJSON, aZ as MsgsRequestJSON, b8 as MsgsResponseJSON, aS as MsgsWarning, aP as MsgsWarningType, y as MultiChainMsgJSON, N as OPInitTransfer, O as OPInitTransferJSON, aX as Operation, aW as OperationJSON, ar as OriginAssetsRequest, aq as OriginAssetsRequestJSON, at as OriginAssetsResponse, as as OriginAssetsResponseJSON, ai as PostHandler, ah as PostHandlerJSON, ac as Reason, aC as RecommendAssetsRequest, aB as RecommendAssetsRequestJSON, aE as RecommendAssetsResponse, aD as RecommendAssetsResponseJSON, aF as RecommendationEntryJSON, aL as RouteRequestBase, aG as RouteRequestBaseJSON, aM as RouteRequestGivenIn, aH as RouteRequestGivenInJSON, aN as RouteRequestGivenOut, aI as RouteRequestGivenOutJSON, aJ as RouteRequestJSON, aY as RouteResponseJSON, aR as RouteWarning, aO as RouteWarningType, Q as SmartRelayFeeQuote, P as SmartRelayFeeQuoteJSON, a4 as SmartSwapExactCoinIn, a3 as SmartSwapExactCoinInJSON, av as SmartSwapOptions, au as SmartSwapOptionsJSON, al as SvmTxJSON, a6 as Swap, a0 as SwapExactCoinIn, $ as SwapExactCoinInJSON, _ as SwapExactCoinOut, Z as SwapExactCoinOutJSON, a5 as SwapJSON, Y as SwapOperation, X as SwapOperationJSON, a2 as SwapRoute, a1 as SwapRouteJSON, U as SwapVenueJSON, W as SwapVenueRequest, V as SwapVenueRequestJSON, t as Transfer, s as TransferJSON, b7 as TxJSON } from './shared-IGtrUCgc.js';
12
12
  import { Adapter } from '@solana/wallet-adapter-base';
13
13
  export { DEFAULT_GAS_MULTIPLIER, getCosmosGasAmountForMessage, getEncodeObjectFromCosmosMessage, getEncodeObjectFromCosmosMessageInjective } from './transactions.js';
14
14
  import '@injectivelabs/sdk-ts/dist/cjs/core/modules/msgs';
@@ -55,6 +55,10 @@ type ExecuteRouteOptions = {
55
55
  getEVMSigner?: (chainID: string) => Promise<WalletClient>;
56
56
  getCosmosSigner?: (chainID: string) => Promise<OfflineSigner>;
57
57
  getSVMSigner?: () => Promise<Adapter>;
58
+ onTransactionSigned?: (txInfo: {
59
+ txHash: string;
60
+ chainID: string;
61
+ }) => Promise<void>;
58
62
  onTransactionBroadcast?: (txInfo: {
59
63
  txHash: string;
60
64
  chainID: string;
@@ -65,6 +69,11 @@ type ExecuteRouteOptions = {
65
69
  explorerLink: string;
66
70
  }) => Promise<void>;
67
71
  onTransactionCompleted?: (chainID: string, txHash: string, status: TxStatusResponse) => Promise<void>;
72
+ onValidateGasBalance?: (value: {
73
+ chainID?: string;
74
+ txIndex?: number;
75
+ status: "success" | "error" | "pending" | "completed";
76
+ }) => Promise<void>;
68
77
  validateGasBalance?: boolean;
69
78
  slippageTolerancePercent?: string;
70
79
  /**
@@ -98,6 +107,7 @@ type ExecuteCosmosMessage = {
98
107
  messages: CosmosMsg[];
99
108
  gasAmountMultiplier?: number;
100
109
  gasTokenUsed?: Coin;
110
+ onTransactionSigned?: ExecuteRouteOptions['onTransactionSigned'];
101
111
  };
102
112
  type SignCosmosMessageDirectOptions = {
103
113
  signerAddress: string;
@@ -163,13 +173,15 @@ declare class SkipClient {
163
173
  encodedMsgs?: EncodeObject[];
164
174
  getFallbackGasAmount?: GetFallbackGasAmount;
165
175
  }): Promise<StdFee>;
166
- executeEVMTransaction({ message, signer, }: {
176
+ executeEVMTransaction({ message, signer, onTransactionSigned, }: {
167
177
  message: EvmTx;
168
178
  signer: WalletClient;
179
+ onTransactionSigned?: ExecuteRouteOptions['onTransactionSigned'];
169
180
  }): Promise<viem.TransactionReceipt>;
170
- executeSVMTransaction({ signer, message, }: {
181
+ executeSVMTransaction({ signer, message, onTransactionSigned, }: {
171
182
  signer: Adapter;
172
183
  message: SvmTx;
184
+ onTransactionSigned?: ExecuteRouteOptions['onTransactionSigned'];
173
185
  }): Promise<string>;
174
186
  signCosmosMessageDirect(options: SignCosmosMessageDirectOptions): Promise<TxRaw>;
175
187
  private signCosmosMessageDirectEvmos;
@@ -289,13 +301,14 @@ declare class SkipClient {
289
301
  getFeeInfoForChain(chainID: string): Promise<FeeAsset | undefined>;
290
302
  private getDefaultGasTokenForChain;
291
303
  private getStakingTokensForChain;
292
- validateGasBalances({ txs, userAddresses, getOfflineSigner, getGasPrice, gasAmountMultiplier, getFallbackGasAmount, }: {
304
+ validateGasBalances({ txs, userAddresses, getOfflineSigner, getGasPrice, gasAmountMultiplier, getFallbackGasAmount, onValidateGasBalance }: {
293
305
  txs: Tx[];
294
306
  userAddresses: UserAddress[];
295
307
  getOfflineSigner?: (chainID: string) => Promise<OfflineSigner>;
296
308
  getGasPrice?: GetGasPrice;
297
309
  gasAmountMultiplier?: number;
298
310
  getFallbackGasAmount?: GetFallbackGasAmount;
311
+ onValidateGasBalance?: ExecuteRouteOptions['onValidateGasBalance'];
299
312
  }): Promise<Record<number, Coin>>;
300
313
  validateCosmosGasBalance({ chainID, client, signerAddress, messages, getGasPrice, gasAmountMultiplier, getFallbackGasAmount, }: {
301
314
  client: SigningStargateClient;