@skip-go/client 1.4.0 → 1.5.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/dist/cjs/{chunk-IDEJORRT.cjs → chunk-23YF4LFI.cjs} +30 -0
- package/dist/cjs/{chunk-Q43XCBMX.cjs → chunk-5CB6SPCX.cjs} +4 -4
- package/dist/cjs/{chunk-ZKBSNSHQ.cjs → chunk-EZGHN6ZL.cjs} +120 -116
- package/dist/cjs/{chunk-7MC3BVQN.cjs → chunk-KHJQE3DI.cjs} +133 -35
- package/dist/cjs/chunk-KSJ5QYMR.cjs +185 -0
- package/dist/cjs/chunk-N5V3YW5K.cjs +55 -0
- package/dist/cjs/chunk-NDSHB4I6.cjs +214 -0
- package/dist/cjs/{chunk-ZAATXQBG.cjs → chunk-QZ2BGX6O.cjs} +2 -2
- package/dist/cjs/{chunk-6LA66667.cjs → chunk-RVXCF6AL.cjs} +3 -3
- package/dist/cjs/{chunk-46VB6RQK.cjs → chunk-V3FWWJG2.cjs} +10 -3
- package/dist/cjs/index.cjs +26 -20
- package/dist/cjs/public-functions/executeMultipleRoutes.cjs +29 -0
- package/dist/cjs/public-functions/executeRoute.cjs +8 -7
- package/dist/cjs/public-functions/getFeeInfoForChain.cjs +3 -3
- package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +4 -4
- package/dist/cjs/public-functions/getSigningStargateClient.cjs +3 -3
- package/dist/cjs/public-functions/setClientOptions.cjs +2 -2
- package/dist/cjs/public-functions/subscribeToRouteStatus.cjs +5 -5
- package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +5 -5
- package/dist/esm/api/getAssets.d.ts +1 -1
- package/dist/esm/api/getAssetsBetweenChains.d.ts +1 -1
- package/dist/esm/api/getBridges.d.ts +3 -3
- package/dist/esm/api/getChains.d.ts +1 -1
- package/dist/esm/api/postAssetsFromSource.d.ts +10 -1
- package/dist/esm/api/postBalances.d.ts +2 -2
- package/dist/esm/api/postMessages.d.ts +2 -2
- package/dist/esm/api/postMessagesDirect.d.ts +3 -1
- package/dist/esm/api/postRecommendAssets.d.ts +1 -1
- package/dist/esm/api/postRoute.d.ts +4 -2
- package/dist/esm/api/postSubmitTransaction.d.ts +2 -2
- package/dist/esm/api/postTrackTransaction.d.ts +2 -2
- package/dist/esm/api/postTransactionStatus.d.ts +2 -2
- package/dist/esm/{callbacks-B3kjKg0v.d.ts → callbacks-DCqqd0D9.d.ts} +22 -69
- package/dist/esm/{chunk-CIAOTO3M.js → chunk-2DD5F6PK.js} +1 -1
- package/dist/esm/{chunk-4RLJWCQR.js → chunk-3J5IMMMB.js} +1 -1
- package/dist/esm/chunk-562J5DCB.js +53 -0
- package/dist/esm/{chunk-KYDY7QRT.js → chunk-BZDVQMHK.js} +1 -1
- package/dist/esm/chunk-FVQFGEL2.js +212 -0
- package/dist/esm/chunk-RHGDUD76.js +180 -0
- package/dist/esm/{chunk-GHNH5QC3.js → chunk-VZGOU6MB.js} +9 -2
- package/dist/esm/{chunk-BAJFQZDT.js → chunk-W5EGS2G4.js} +99 -96
- package/dist/esm/{chunk-REWUSU53.js → chunk-WBZVMPPV.js} +30 -0
- package/dist/esm/{chunk-RQ7DXNSS.js → chunk-XYYXRVFN.js} +133 -35
- package/dist/esm/client-types-BSZasIDd.d.ts +114 -0
- package/dist/esm/{generateApi-C_xgtxrO.d.ts → generateApi-CwM4Ca30.d.ts} +1 -1
- package/dist/esm/index.d.ts +216 -6
- package/dist/esm/index.js +12 -10
- package/dist/esm/public-functions/executeMultipleRoutes.d.ts +60 -0
- package/dist/esm/public-functions/executeMultipleRoutes.js +20 -0
- package/dist/esm/public-functions/executeRoute.d.ts +5 -5
- package/dist/esm/public-functions/executeRoute.js +7 -6
- package/dist/esm/public-functions/getCosmosGasAmountForMessage.d.ts +1 -1
- package/dist/esm/public-functions/getEvmGasAmountForMessage.d.ts +5 -2
- package/dist/esm/public-functions/getFeeInfoForChain.d.ts +1 -1
- package/dist/esm/public-functions/getFeeInfoForChain.js +2 -2
- package/dist/esm/public-functions/getRecommendedGasPrice.js +3 -3
- package/dist/esm/public-functions/getSigningStargateClient.js +2 -2
- package/dist/esm/public-functions/setApiOptions.d.ts +1 -1
- package/dist/esm/public-functions/setClientOptions.d.ts +5 -3
- package/dist/esm/public-functions/setClientOptions.js +1 -1
- package/dist/esm/public-functions/subscribeToRouteStatus.d.ts +5 -5
- package/dist/esm/public-functions/subscribeToRouteStatus.js +1 -1
- package/dist/esm/public-functions/validateCosmosGasBalance.d.ts +7 -6
- package/dist/esm/public-functions/validateCosmosGasBalance.js +4 -4
- package/dist/esm/public-functions/waitForTransaction.d.ts +5 -5
- package/dist/esm/{setClientOptions-BTRwCbmt.d.ts → setClientOptions-0DYCj_A5.d.ts} +1 -1
- package/dist/esm/{swaggerTypes-DDwqIjap.d.ts → swaggerTypes-Bh6hu5Q-.d.ts} +220 -196
- package/package.json +1 -1
- package/dist/cjs/chunk-VIG2BHYJ.cjs +0 -185
- package/dist/esm/chunk-3J6O2PVK.js +0 -180
- package/dist/esm/client-types-B7Fin0mq.d.ts +0 -61
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as AcknowledgementErrorDetails, a as Affiliate,
|
|
2
|
-
export { E as ExecuteRouteOptions, R as RouteDetails, a as RouteStatus,
|
|
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-
|
|
1
|
+
export { A as AcknowledgementErrorDetails, a as Affiliate, bG as Api, bC as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, ba as AssetRecommendationsRequest, br as AssetRecommendationsResponse, be as AssetsBetweenChainsRequest, b7 as AssetsFromSourceRequest, bn as AssetsFromSourceResponse, bl as AssetsRequest, bm 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, b6 as BalancesRequest, bh as BalancesResponse, F as BankSend, H as BankSendWrapper, I as Bridge, J as BridgeType, bi 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, bf as ChainsRequest, bg as ChainsResponse, bE 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, bA as FullRequestParams, bx as FungibleAssetsBetweenChainsCreateResponse, a5 as GRPCStatusCode, a4 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, z as GoFastTransferWrapper, bF as HttpClient, bD as HttpResponse, a6 as HyperlaneTransfer, a7 as HyperlaneTransferInfo, a8 as HyperlaneTransferState, a9 as HyperlaneTransferTransactions, aa as HyperlaneTransferWrapper, ab as IBCTransferInfo, b2 as IbcCapabilities, bd as IbcOriginAssetsRequest, bw as IbcOriginAssetsResponse, aZ as LayerZeroTransfer, a_ as LayerZeroTransferInfo, aP as LayerZeroTransferState, ai as LayerZeroTransferTransactions, a$ as LayerZeroTransferWrapper, ac as Msg, b9 as MsgsDirectRequest, bq as MsgsDirectResponse, b8 as MsgsRequest, bp 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, by as QueryParamsType, ao as Reason, b0 as RecommendationRequest, bB as RequestParams, bz as ResponseFormat, aq as Route, ap as RoutePriceWarningType, bo 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, bu as StatusRequest, bv as StatusResponse, bs as SubmitResponse, bb as SubmitTxRequest, 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, bt as TrackResponse, bc as TrackTxRequest, 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, bj as VenuesRequest, bk as VenuesResponse } from './swaggerTypes-Bh6hu5Q-.js';
|
|
2
|
+
export { E as ExecuteRouteOptions, R as RouteDetails, a as RouteStatus, d as TransactionCallbacks, T as TransactionDetails, b as TransactionStatus, c as TransferEventStatus, e as executeRoute, s as subscribeToRouteStatus } from './callbacks-DCqqd0D9.js';
|
|
3
|
+
export { B as BaseSettings, 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-BSZasIDd.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,8 +16,9 @@ export { RouteRequest, route } from './api/postRoute.js';
|
|
|
16
16
|
export { SubmitTransactionRequest, SubmitTransactionResponse, submitTransaction } from './api/postSubmitTransaction.js';
|
|
17
17
|
export { trackTransaction } from './api/postTrackTransaction.js';
|
|
18
18
|
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
|
|
19
|
+
export { ExecuteMultipleRoutesOptions, executeMultipleRoutes } from './public-functions/executeMultipleRoutes.js';
|
|
19
20
|
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
|
|
20
|
-
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-
|
|
21
|
+
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-0DYCj_A5.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';
|
|
@@ -25,7 +26,7 @@ export { waitForTransaction } from './public-functions/waitForTransaction.js';
|
|
|
25
26
|
export { getCosmosGasAmountForMessage } from './public-functions/getCosmosGasAmountForMessage.js';
|
|
26
27
|
export { getEVMGasAmountForMessage } from './public-functions/getEvmGasAmountForMessage.js';
|
|
27
28
|
export { validateCosmosGasBalance } from './public-functions/validateCosmosGasBalance.js';
|
|
28
|
-
import './generateApi-
|
|
29
|
+
import './generateApi-CwM4Ca30.js';
|
|
29
30
|
import '@cosmjs/amino';
|
|
30
31
|
import '@cosmjs/proto-signing';
|
|
31
32
|
import '@cosmjs/stargate';
|
|
@@ -383,6 +384,10 @@ interface GoFastTransferJson {
|
|
|
383
384
|
denom_in?: string;
|
|
384
385
|
/** Denom of the output asset */
|
|
385
386
|
denom_out?: string;
|
|
387
|
+
/** Source domain ID of the transfer */
|
|
388
|
+
source_domain?: string;
|
|
389
|
+
/** Destination domain ID of the transfer */
|
|
390
|
+
destination_domain?: string;
|
|
386
391
|
/** Go fast Fee */
|
|
387
392
|
fee?: GoFastFeeJson;
|
|
388
393
|
}
|
|
@@ -1470,6 +1475,211 @@ interface FeeJson {
|
|
|
1470
1475
|
/** Indicates whether this fee is deducted from the transfer amount or charged additionally */
|
|
1471
1476
|
fee_behavior?: FeeBehaviorJson;
|
|
1472
1477
|
}
|
|
1478
|
+
interface BalancesRequestJson {
|
|
1479
|
+
chains?: Record<string, BalanceRequestChainEntryJson>;
|
|
1480
|
+
}
|
|
1481
|
+
interface AssetsFromSourceRequestJson {
|
|
1482
|
+
/** Denom of the source asset */
|
|
1483
|
+
source_asset_denom: string;
|
|
1484
|
+
/** Chain-id of the source asset */
|
|
1485
|
+
source_asset_chain_id: string;
|
|
1486
|
+
/**
|
|
1487
|
+
* Whether to include recommendations requiring multiple transactions to reach the destination
|
|
1488
|
+
* @default false
|
|
1489
|
+
*/
|
|
1490
|
+
allow_multi_tx?: boolean;
|
|
1491
|
+
/** Optional reason for recommending assets */
|
|
1492
|
+
recommendation_reason?: ReasonJson | null;
|
|
1493
|
+
/**
|
|
1494
|
+
* Whether to include swap routes
|
|
1495
|
+
* @default false
|
|
1496
|
+
*/
|
|
1497
|
+
include_swaps?: boolean;
|
|
1498
|
+
/** Swap venues to consider if including swap routes */
|
|
1499
|
+
swap_venues?: SwapVenueJson[] | null;
|
|
1500
|
+
/**
|
|
1501
|
+
* Whether to only return native assets
|
|
1502
|
+
* @default false
|
|
1503
|
+
*/
|
|
1504
|
+
native_only?: boolean;
|
|
1505
|
+
/** Optional grouping key for results */
|
|
1506
|
+
group_by?: string | null;
|
|
1507
|
+
/**
|
|
1508
|
+
* Whether to include CW20 tokens
|
|
1509
|
+
* @default false
|
|
1510
|
+
*/
|
|
1511
|
+
include_cw20_assets?: boolean;
|
|
1512
|
+
}
|
|
1513
|
+
interface RouteRequestJson {
|
|
1514
|
+
/** Amount of source asset to be transferred or swapped. Only one of amount_in and amount_out should be provided. */
|
|
1515
|
+
amount_in?: string;
|
|
1516
|
+
/** Amount of destination asset to receive. Only one of amount_in and amount_out should be provided. If amount_out is provided for a swap, the route will be computed to give exactly amount_out. */
|
|
1517
|
+
amount_out?: string;
|
|
1518
|
+
/** Denom of the source asset */
|
|
1519
|
+
source_asset_denom?: string;
|
|
1520
|
+
/** Chain-id of the source asset */
|
|
1521
|
+
source_asset_chain_id?: string;
|
|
1522
|
+
/** Denom of the destination asset */
|
|
1523
|
+
dest_asset_denom?: string;
|
|
1524
|
+
/** Chain-id of the destination asset */
|
|
1525
|
+
dest_asset_chain_id?: string;
|
|
1526
|
+
/** Cumulative fee to be distributed to affiliates, in bps (optional) */
|
|
1527
|
+
cumulative_affiliate_fee_bps?: string | null;
|
|
1528
|
+
/** Swap venues to consider, if provided (optional) */
|
|
1529
|
+
swap_venues?: SwapVenueJson[];
|
|
1530
|
+
/**
|
|
1531
|
+
* Whether to allow route responses requiring multiple
|
|
1532
|
+
* transactions
|
|
1533
|
+
*/
|
|
1534
|
+
allow_multi_tx?: boolean;
|
|
1535
|
+
/** Toggles whether the api should return routes that fail price safety checks. */
|
|
1536
|
+
allow_unsafe?: boolean;
|
|
1537
|
+
/** Array of experimental features to enable */
|
|
1538
|
+
experimental_features?: string[];
|
|
1539
|
+
/** Array of bridges to use */
|
|
1540
|
+
bridges?: BridgeTypeJson[];
|
|
1541
|
+
/** Indicates whether this transfer route should be relayed via Skip's Smart Relay service - true by default. */
|
|
1542
|
+
smart_relay?: boolean;
|
|
1543
|
+
smart_swap_options?: SmartSwapOptionsJson;
|
|
1544
|
+
/** Whether to allow swaps in the route */
|
|
1545
|
+
allow_swaps?: boolean;
|
|
1546
|
+
/** Whether to enable Go Fast routes */
|
|
1547
|
+
go_fast?: boolean;
|
|
1548
|
+
}
|
|
1549
|
+
interface MsgsRequestJson {
|
|
1550
|
+
/** Denom of the source asset */
|
|
1551
|
+
source_asset_denom?: string;
|
|
1552
|
+
/** Chain-id of the source asset */
|
|
1553
|
+
source_asset_chain_id?: string;
|
|
1554
|
+
/** Denom of the destination asset */
|
|
1555
|
+
dest_asset_denom?: string;
|
|
1556
|
+
/** Chain-id of the destination asset */
|
|
1557
|
+
dest_asset_chain_id?: string;
|
|
1558
|
+
/** Amount of source asset to be transferred or swapped */
|
|
1559
|
+
amount_in?: string;
|
|
1560
|
+
/** Amount of destination asset out */
|
|
1561
|
+
amount_out?: string;
|
|
1562
|
+
/** Array of receipient and/or sender address for each chain in the path, corresponding to the chain_ids array returned from a route request */
|
|
1563
|
+
address_list?: string[];
|
|
1564
|
+
/** Array of operations required to perform the transfer or swap */
|
|
1565
|
+
operations?: OperationJson[];
|
|
1566
|
+
estimated_amount_out?: string;
|
|
1567
|
+
/** Percent tolerance for slippage on swap, if a swap is performed */
|
|
1568
|
+
slippage_tolerance_percent?: string;
|
|
1569
|
+
/** Number of seconds for the IBC transfer timeout, defaults to 5 minutes */
|
|
1570
|
+
timeout_seconds?: string;
|
|
1571
|
+
post_route_handler?: PostHandlerJson;
|
|
1572
|
+
/** Map of chain-ids to arrays of affiliates. The API expects all chains to have the same cumulative affiliate fee bps for each chain specified. If any of the provided affiliate arrays does not have the same cumulative fee, the API will return an error. */
|
|
1573
|
+
chain_ids_to_affiliates?: Record<string, ChainAffiliatesJson>;
|
|
1574
|
+
/**
|
|
1575
|
+
* Whether to enable gas warnings for intermediate and destination chains
|
|
1576
|
+
* @default false
|
|
1577
|
+
*/
|
|
1578
|
+
enable_gas_warnings?: boolean;
|
|
1579
|
+
/** Alternative address to use for paying for fees, currently only for SVM source CCTP transfers, in b58 format. */
|
|
1580
|
+
fee_payer_address?: string;
|
|
1581
|
+
}
|
|
1582
|
+
interface MsgsDirectRequestJson {
|
|
1583
|
+
/** Denom of the source asset */
|
|
1584
|
+
source_asset_denom?: string;
|
|
1585
|
+
/** Chain-id of the source asset */
|
|
1586
|
+
source_asset_chain_id?: string;
|
|
1587
|
+
/** Denom of the destination asset */
|
|
1588
|
+
dest_asset_denom?: string;
|
|
1589
|
+
/** Chain-id of the destination asset */
|
|
1590
|
+
dest_asset_chain_id?: string;
|
|
1591
|
+
/** Amount of source asset to be transferred or swapped. If this is a swap, only one of amount_in and amount_out should be provided. */
|
|
1592
|
+
amount_in?: string;
|
|
1593
|
+
/** Amount of destination asset out. If this is a swap, only one of amount_in and amount_out should be provided. If amount_out is provided for a swap, the route will be computed to give exactly amount_out. */
|
|
1594
|
+
amount_out?: string;
|
|
1595
|
+
/** Map of chain-ids to receipient and/or sender address for each chain in the path. Since the path is not known to the caller beforehand, the caller should attempt to provide addresses for all chains in the path, and the API will return an error if the path cannot be constructed. */
|
|
1596
|
+
chain_ids_to_addresses?: Record<string, string>;
|
|
1597
|
+
/** Swap venues to consider, if provided (optional) */
|
|
1598
|
+
swap_venues?: SwapVenueJson[];
|
|
1599
|
+
/** Percent tolerance for slippage on swap, if a swap is performed */
|
|
1600
|
+
slippage_tolerance_percent?: string;
|
|
1601
|
+
/** Number of seconds for the IBC transfer timeout, defaults to 5 minutes */
|
|
1602
|
+
timeout_seconds?: string;
|
|
1603
|
+
/** Map of chain-ids to arrays of affiliates. Since cumulative_affiliate_fee_bps must be provided to retrieve a route, and the swap chain is not known at this time, all chains must have the same cumulative_affiliate_fee_bps otherwise the API will return an error. */
|
|
1604
|
+
chain_ids_to_affiliates?: Record<string, ChainAffiliatesJson>;
|
|
1605
|
+
post_route_handler?: PostHandlerJson;
|
|
1606
|
+
/**
|
|
1607
|
+
* Whether to allow route responses requiring multiple
|
|
1608
|
+
* transactions
|
|
1609
|
+
*/
|
|
1610
|
+
allow_multi_tx?: boolean;
|
|
1611
|
+
/** Toggles whether the api should return routes that fail price safety checks. */
|
|
1612
|
+
allow_unsafe?: boolean;
|
|
1613
|
+
/** Array of experimental features to enable */
|
|
1614
|
+
experimental_features?: string[];
|
|
1615
|
+
/** Array of bridges to use */
|
|
1616
|
+
bridges?: BridgeTypeJson[];
|
|
1617
|
+
/** Indicates whether this transfer route should be relayed via Skip's Smart Relay service */
|
|
1618
|
+
smart_relay?: boolean;
|
|
1619
|
+
smart_swap_options?: SmartSwapOptionsJson;
|
|
1620
|
+
/** Whether to allow swaps in the route */
|
|
1621
|
+
allow_swaps?: boolean;
|
|
1622
|
+
/** Whether to enable Go Fast routes */
|
|
1623
|
+
go_fast?: boolean;
|
|
1624
|
+
/**
|
|
1625
|
+
* Whether to enable gas warnings for intermediate and destination chains
|
|
1626
|
+
* @default false
|
|
1627
|
+
*/
|
|
1628
|
+
enable_gas_warnings?: boolean;
|
|
1629
|
+
/** Alternative address to use for paying for fees, currently only for SVM source CCTP transfers, in b58 format. */
|
|
1630
|
+
fee_payer_address?: string;
|
|
1631
|
+
}
|
|
1632
|
+
interface AssetRecommendationsRequestJson {
|
|
1633
|
+
/** Array where each entry corresponds to a distinct asset recommendation request. */
|
|
1634
|
+
requests?: RecommendationRequestJson[];
|
|
1635
|
+
}
|
|
1636
|
+
interface SubmitTxRequestJson {
|
|
1637
|
+
/** Signed base64 encoded transaction */
|
|
1638
|
+
tx?: string;
|
|
1639
|
+
/** Chain ID of the transaction */
|
|
1640
|
+
chain_id?: string;
|
|
1641
|
+
}
|
|
1642
|
+
interface TrackTxRequestJson {
|
|
1643
|
+
/** Hex encoded hash of the transaction to track */
|
|
1644
|
+
tx_hash: string;
|
|
1645
|
+
/** Chain ID of the transaction */
|
|
1646
|
+
chain_id: string;
|
|
1647
|
+
}
|
|
1648
|
+
interface IbcOriginAssetsRequestJson {
|
|
1649
|
+
/** Array of assets to get origin assets for */
|
|
1650
|
+
assets?: {
|
|
1651
|
+
/** Denom of the asset */
|
|
1652
|
+
denom?: string;
|
|
1653
|
+
/** Chain-id of the asset */
|
|
1654
|
+
chain_id?: string;
|
|
1655
|
+
}[];
|
|
1656
|
+
}
|
|
1657
|
+
interface AssetsBetweenChainsRequestJson {
|
|
1658
|
+
/** Chain-id of the source chain */
|
|
1659
|
+
source_chain_id?: string;
|
|
1660
|
+
/** Chain-id of the destination chain */
|
|
1661
|
+
dest_chain_id?: string;
|
|
1662
|
+
/**
|
|
1663
|
+
* Whether to include assets without metadata (symbol, name, logo_uri, etc.)
|
|
1664
|
+
* @default false
|
|
1665
|
+
*/
|
|
1666
|
+
include_no_metadata_assets?: boolean;
|
|
1667
|
+
/**
|
|
1668
|
+
* Whether to include CW20 tokens
|
|
1669
|
+
* @default false
|
|
1670
|
+
*/
|
|
1671
|
+
include_cw20_assets?: boolean;
|
|
1672
|
+
/**
|
|
1673
|
+
* Whether to include EVM tokens
|
|
1674
|
+
* @default false
|
|
1675
|
+
*/
|
|
1676
|
+
include_evm_assets?: boolean;
|
|
1677
|
+
/**
|
|
1678
|
+
* Whether to include recommendations requiring multiple transactions to reach the destination
|
|
1679
|
+
* @default false
|
|
1680
|
+
*/
|
|
1681
|
+
allow_multi_tx?: boolean;
|
|
1682
|
+
}
|
|
1473
1683
|
interface ChainsRequestJson {
|
|
1474
1684
|
/** Chain IDs to limit the response to, defaults to all chains if not provided */
|
|
1475
1685
|
chain_ids?: string[];
|
|
@@ -1619,4 +1829,4 @@ interface FungibleAssetsBetweenChainsCreateResponseJson {
|
|
|
1619
1829
|
|
|
1620
1830
|
declare const GAS_STATION_CHAIN_IDS: string[];
|
|
1621
1831
|
|
|
1622
|
-
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 };
|
|
1832
|
+
export { type AcknowledgementErrorDetailsJson, type AffiliateJson, type ApiErrorJson, type AssetBetweenChainsJson, type AssetJson, type AssetRecommendationJson, type AssetRecommendationsRequestJson, type AssetRecommendationsResponseJson, type AssetsBetweenChainsRequestJson, type AssetsFromSourceRequestJson, 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 BalancesRequestJson, 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 IbcOriginAssetsRequestJson, type IbcOriginAssetsResponseJson, type LayerZeroTransferInfoJson, type LayerZeroTransferJson, LayerZeroTransferStateJson, type LayerZeroTransferTransactionsJson, type LayerZeroTransferWrapperJson, type MsgJson, type MsgsDirectRequestJson, type MsgsDirectResponseJson, type MsgsRequestJson, 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 RouteRequestJson, 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 SubmitTxRequestJson, 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 TrackTxRequestJson, type TransactionExecutionErrorDetailsJson, TransactionStateJson, type TransferAssetReleaseJson, type TransferEventJson, type TransferJson, TransferStateJson, type TransferStatusJson, type TransferWrapperJson, type TxJson, type VenuesRequestJson, type VenuesResponseJson };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
|
+
export { setClientOptions } from './chunk-WBZVMPPV.js';
|
|
1
2
|
export { waitForTransaction } from './chunk-QIS6ILPS.js';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
|
|
3
|
+
export { executeMultipleRoutes } from './chunk-FVQFGEL2.js';
|
|
4
|
+
export { executeRoute } from './chunk-562J5DCB.js';
|
|
5
|
+
import './chunk-W5EGS2G4.js';
|
|
6
|
+
export { subscribeToRouteStatus } from './chunk-XYYXRVFN.js';
|
|
7
|
+
export { validateCosmosGasBalance } from './chunk-VZGOU6MB.js';
|
|
5
8
|
export { getCosmosGasAmountForMessage } from './chunk-KNXMSLOB.js';
|
|
9
|
+
import './chunk-UIDIKXMB.js';
|
|
6
10
|
export { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
|
|
7
|
-
export { getRecommendedGasPrice } from './chunk-
|
|
11
|
+
export { getRecommendedGasPrice } from './chunk-2DD5F6PK.js';
|
|
8
12
|
import './chunk-VQ5SIQWU.js';
|
|
9
|
-
export { getFeeInfoForChain } from './chunk-
|
|
13
|
+
export { getFeeInfoForChain } from './chunk-3J5IMMMB.js';
|
|
10
14
|
export { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
|
|
11
|
-
export { getSigningStargateClient } from './chunk-
|
|
12
|
-
import './chunk-3J6O2PVK.js';
|
|
13
|
-
export { setApiOptions } from './chunk-FH2YHZVV.js';
|
|
14
|
-
export { setClientOptions } from './chunk-REWUSU53.js';
|
|
15
|
-
import './chunk-UIDIKXMB.js';
|
|
15
|
+
export { getSigningStargateClient } from './chunk-BZDVQMHK.js';
|
|
16
16
|
import './chunk-QO2CYYF5.js';
|
|
17
|
+
import './chunk-RHGDUD76.js';
|
|
18
|
+
export { setApiOptions } from './chunk-FH2YHZVV.js';
|
|
17
19
|
export { ibcOriginAssets } from './chunk-S4RO2LHD.js';
|
|
18
20
|
export { messages } from './chunk-AND7HVIU.js';
|
|
19
21
|
export { messagesDirect } from './chunk-3XOGEVJL.js';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { d as TransactionCallbacks } from '../callbacks-DCqqd0D9.js';
|
|
2
|
+
import { bo as RouteResponse, W as CosmosMsg, an as PostHandler } from '../swaggerTypes-Bh6hu5Q-.js';
|
|
3
|
+
import { A as ApiRequest } from '../generateApi-CwM4Ca30.js';
|
|
4
|
+
import { S as SignerGetters, b as GasOptions, B as BaseSettings, U as UserAddress } from '../client-types-BSZasIDd.js';
|
|
5
|
+
import '../api/postTransactionStatus.js';
|
|
6
|
+
import '../apiState-DwZhwVul.js';
|
|
7
|
+
import '@cosmjs/amino';
|
|
8
|
+
import '@cosmjs/proto-signing';
|
|
9
|
+
import '@cosmjs/stargate';
|
|
10
|
+
import 'viem';
|
|
11
|
+
import '@solana/wallet-adapter-base';
|
|
12
|
+
import '../api/postTrackTransaction.js';
|
|
13
|
+
|
|
14
|
+
/** Execute Routes Options */
|
|
15
|
+
type ExecuteMultipleRoutesOptions = SignerGetters & GasOptions & TransactionCallbacks & Omit<BaseSettings, "slippageTolerancePercent"> & Pick<ApiRequest<"msgs">, "timeoutSeconds"> & {
|
|
16
|
+
route: {
|
|
17
|
+
mainRoute: RouteResponse;
|
|
18
|
+
} & Record<string, RouteResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Addresses should be in the same order with the `requiredChainAddresses` in the `route`
|
|
21
|
+
*/
|
|
22
|
+
userAddresses: {
|
|
23
|
+
mainRoute: UserAddress[];
|
|
24
|
+
} & Record<string, UserAddress[]>;
|
|
25
|
+
/**
|
|
26
|
+
* If `appendCosmosMsgs` is provided, it will append the specified Cosmos messages to the transactions.
|
|
27
|
+
*/
|
|
28
|
+
appendCosmosMsgs?: Record<string, Record<string, CosmosMsg[]>>;
|
|
29
|
+
/**
|
|
30
|
+
* Specify actions to perform after the route is completed
|
|
31
|
+
*/
|
|
32
|
+
postRouteHandler?: Record<string, PostHandler>;
|
|
33
|
+
slippageTolerancePercent?: {
|
|
34
|
+
mainRoute: string;
|
|
35
|
+
} & Record<string, string>;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* example:
|
|
39
|
+
* ```ts
|
|
40
|
+
* executeMultipleRoutes({
|
|
41
|
+
* route: {
|
|
42
|
+
* "mainRoute": mainRouteResponse,
|
|
43
|
+
* "secondaryRoute": secondaryRouteResponse
|
|
44
|
+
* }
|
|
45
|
+
* userAddresses: {
|
|
46
|
+
* "mainRoute": [
|
|
47
|
+
* {chainId: "cosmos", address: "cosmos1..."},
|
|
48
|
+
* {chainId: "ethereum", address: "0x..."}
|
|
49
|
+
* ],
|
|
50
|
+
* "secondaryRoute": [
|
|
51
|
+
* {chainId: "cosmos", address: "cosmos1..."},
|
|
52
|
+
* {chainId: "ethereum", address: "0x..."}
|
|
53
|
+
* ]
|
|
54
|
+
* }
|
|
55
|
+
* })
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
declare const executeMultipleRoutes: (options: ExecuteMultipleRoutesOptions) => Promise<void>;
|
|
59
|
+
|
|
60
|
+
export { type ExecuteMultipleRoutesOptions, executeMultipleRoutes };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { executeMultipleRoutes } from '../chunk-FVQFGEL2.js';
|
|
2
|
+
import '../chunk-W5EGS2G4.js';
|
|
3
|
+
import '../chunk-XYYXRVFN.js';
|
|
4
|
+
import '../chunk-VZGOU6MB.js';
|
|
5
|
+
import '../chunk-KNXMSLOB.js';
|
|
6
|
+
import '../chunk-UIDIKXMB.js';
|
|
7
|
+
import '../chunk-GV2QOWB4.js';
|
|
8
|
+
import '../chunk-VQ5SIQWU.js';
|
|
9
|
+
import '../chunk-SWYON2RG.js';
|
|
10
|
+
import '../chunk-BZDVQMHK.js';
|
|
11
|
+
import '../chunk-QO2CYYF5.js';
|
|
12
|
+
import '../chunk-RHGDUD76.js';
|
|
13
|
+
import '../chunk-AND7HVIU.js';
|
|
14
|
+
import '../chunk-JQ4F4WBG.js';
|
|
15
|
+
import '../chunk-7X4ERB3R.js';
|
|
16
|
+
import '../chunk-APRMN34M.js';
|
|
17
|
+
import '../chunk-52PEBJRQ.js';
|
|
18
|
+
import '../chunk-ZOUYAZU6.js';
|
|
19
|
+
import '../chunk-A6KSECAH.js';
|
|
20
|
+
import '../chunk-OQDBWVET.js';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export { E as ExecuteRouteOptions, e as executeRoute } from '../callbacks-
|
|
2
|
-
import '../swaggerTypes-
|
|
3
|
-
import '../generateApi-
|
|
4
|
-
import '../client-types-
|
|
5
|
-
import '../api/postTrackTransaction.js';
|
|
1
|
+
export { E as ExecuteRouteOptions, e as executeRoute } from '../callbacks-DCqqd0D9.js';
|
|
2
|
+
import '../swaggerTypes-Bh6hu5Q-.js';
|
|
3
|
+
import '../generateApi-CwM4Ca30.js';
|
|
4
|
+
import '../client-types-BSZasIDd.js';
|
|
6
5
|
import '../api/postTransactionStatus.js';
|
|
7
6
|
import '../apiState-DwZhwVul.js';
|
|
8
7
|
import '@cosmjs/amino';
|
|
@@ -10,3 +9,4 @@ import '@cosmjs/proto-signing';
|
|
|
10
9
|
import '@cosmjs/stargate';
|
|
11
10
|
import 'viem';
|
|
12
11
|
import '@solana/wallet-adapter-base';
|
|
12
|
+
import '../api/postTrackTransaction.js';
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
export { executeRoute } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { executeRoute } from '../chunk-562J5DCB.js';
|
|
2
|
+
import '../chunk-W5EGS2G4.js';
|
|
3
|
+
import '../chunk-XYYXRVFN.js';
|
|
4
|
+
import '../chunk-VZGOU6MB.js';
|
|
4
5
|
import '../chunk-KNXMSLOB.js';
|
|
6
|
+
import '../chunk-UIDIKXMB.js';
|
|
5
7
|
import '../chunk-GV2QOWB4.js';
|
|
6
8
|
import '../chunk-VQ5SIQWU.js';
|
|
7
9
|
import '../chunk-SWYON2RG.js';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-3J6O2PVK.js';
|
|
10
|
-
import '../chunk-UIDIKXMB.js';
|
|
10
|
+
import '../chunk-BZDVQMHK.js';
|
|
11
11
|
import '../chunk-QO2CYYF5.js';
|
|
12
|
+
import '../chunk-RHGDUD76.js';
|
|
12
13
|
import '../chunk-AND7HVIU.js';
|
|
13
14
|
import '../chunk-JQ4F4WBG.js';
|
|
14
15
|
import '../chunk-7X4ERB3R.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-
|
|
3
|
+
import { W as CosmosMsg } from '../swaggerTypes-Bh6hu5Q-.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,10 +1,13 @@
|
|
|
1
|
-
import { G as GetFallbackGasAmount } from '../client-types-
|
|
2
|
-
import { $ as EvmTx } from '../swaggerTypes-
|
|
1
|
+
import { G as GetFallbackGasAmount } from '../client-types-BSZasIDd.js';
|
|
2
|
+
import { $ as EvmTx } from '../swaggerTypes-Bh6hu5Q-.js';
|
|
3
3
|
import { WalletClient } from 'viem';
|
|
4
4
|
import '@cosmjs/amino';
|
|
5
5
|
import '@cosmjs/proto-signing';
|
|
6
6
|
import '@cosmjs/stargate';
|
|
7
7
|
import '@solana/wallet-adapter-base';
|
|
8
|
+
import '../api/postTrackTransaction.js';
|
|
9
|
+
import '../apiState-DwZhwVul.js';
|
|
10
|
+
import '../generateApi-CwM4Ca30.js';
|
|
8
11
|
|
|
9
12
|
declare function getEVMGasAmountForMessage(signer: WalletClient, tx: EvmTx, getFallbackGasAmount?: GetFallbackGasAmount): Promise<bigint>;
|
|
10
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { getFeeInfoForChain } from '../chunk-
|
|
1
|
+
export { getFeeInfoForChain } from '../chunk-3J5IMMMB.js';
|
|
2
2
|
import '../chunk-SWYON2RG.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-RHGDUD76.js';
|
|
4
4
|
import '../chunk-ZOUYAZU6.js';
|
|
5
5
|
import '../chunk-A6KSECAH.js';
|
|
6
6
|
import '../chunk-OQDBWVET.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { getRecommendedGasPrice } from '../chunk-
|
|
1
|
+
export { getRecommendedGasPrice } from '../chunk-2DD5F6PK.js';
|
|
2
2
|
import '../chunk-VQ5SIQWU.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-3J5IMMMB.js';
|
|
4
4
|
import '../chunk-SWYON2RG.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-RHGDUD76.js';
|
|
6
6
|
import '../chunk-ZOUYAZU6.js';
|
|
7
7
|
import '../chunk-A6KSECAH.js';
|
|
8
8
|
import '../chunk-OQDBWVET.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { getSigningStargateClient } from '../chunk-
|
|
2
|
-
import '../chunk-3J6O2PVK.js';
|
|
1
|
+
export { getSigningStargateClient } from '../chunk-BZDVQMHK.js';
|
|
3
2
|
import '../chunk-QO2CYYF5.js';
|
|
3
|
+
import '../chunk-RHGDUD76.js';
|
|
4
4
|
import '../chunk-ZOUYAZU6.js';
|
|
5
5
|
import '../chunk-A6KSECAH.js';
|
|
6
6
|
import '../chunk-OQDBWVET.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
|
|
2
|
-
import { M as ChainAffiliates } from '../swaggerTypes-
|
|
2
|
+
import { M as ChainAffiliates } from '../swaggerTypes-Bh6hu5Q-.js';
|
|
3
3
|
|
|
4
4
|
type SetApiOptionsProps = {
|
|
5
5
|
chainIdsToAffiliates?: Record<string, ChainAffiliates>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
export { s as setClientOptions } from '../setClientOptions-
|
|
1
|
+
export { s as setClientOptions } from '../setClientOptions-0DYCj_A5.js';
|
|
2
2
|
import '@cosmjs/proto-signing';
|
|
3
3
|
import '@cosmjs/stargate';
|
|
4
4
|
import '../apiState-DwZhwVul.js';
|
|
5
|
-
import '../client-types-
|
|
5
|
+
import '../client-types-BSZasIDd.js';
|
|
6
6
|
import '@cosmjs/amino';
|
|
7
7
|
import 'viem';
|
|
8
8
|
import '@solana/wallet-adapter-base';
|
|
9
|
-
import '../swaggerTypes-
|
|
9
|
+
import '../swaggerTypes-Bh6hu5Q-.js';
|
|
10
|
+
import '../api/postTrackTransaction.js';
|
|
11
|
+
import '../generateApi-CwM4Ca30.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import '../api/postTransactionStatus.js';
|
|
2
|
-
import '../swaggerTypes-
|
|
3
|
-
export { R as RouteDetails, a as RouteStatus, T as TransactionDetails,
|
|
4
|
-
import '../client-types-
|
|
5
|
-
import '../generateApi-
|
|
2
|
+
import '../swaggerTypes-Bh6hu5Q-.js';
|
|
3
|
+
export { R as RouteDetails, a as RouteStatus, T as TransactionDetails, b as TransactionStatus, i as executeAndSubscribeToRouteStatus, h as executeAndSubscribeToRouteStatusProps, g as getTransactionStatus, s as subscribeToRouteStatus, f as subscribeToRouteStatusProps, u as updateRouteDetails } from '../callbacks-DCqqd0D9.js';
|
|
4
|
+
import '../client-types-BSZasIDd.js';
|
|
5
|
+
import '../generateApi-CwM4Ca30.js';
|
|
6
6
|
import '../apiState-DwZhwVul.js';
|
|
7
|
-
import '../api/postTrackTransaction.js';
|
|
8
7
|
import '@cosmjs/amino';
|
|
9
8
|
import '@cosmjs/proto-signing';
|
|
10
9
|
import '@cosmjs/stargate';
|
|
11
10
|
import 'viem';
|
|
12
11
|
import '@solana/wallet-adapter-base';
|
|
12
|
+
import '../api/postTrackTransaction.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { executeAndSubscribeToRouteStatus, getTransactionStatus, subscribeToRouteStatus, updateRouteDetails } from '../chunk-
|
|
1
|
+
export { executeAndSubscribeToRouteStatus, getTransactionStatus, subscribeToRouteStatus, updateRouteDetails } from '../chunk-XYYXRVFN.js';
|
|
2
2
|
import '../chunk-7X4ERB3R.js';
|
|
3
3
|
import '../chunk-APRMN34M.js';
|
|
4
4
|
import '../chunk-A6KSECAH.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as _cosmjs_stargate from '@cosmjs/stargate';
|
|
2
|
-
import { W as CosmosMsg, a3 as FeeAsset } from '../swaggerTypes-
|
|
2
|
+
import { W as CosmosMsg, a3 as FeeAsset } from '../swaggerTypes-Bh6hu5Q-.js';
|
|
3
3
|
import { OfflineSigner } from '@cosmjs/proto-signing';
|
|
4
|
-
import { E as ExecuteRouteOptions } from '../callbacks-
|
|
5
|
-
import { G as GetFallbackGasAmount } from '../client-types-
|
|
4
|
+
import { E as ExecuteRouteOptions } from '../callbacks-DCqqd0D9.js';
|
|
5
|
+
import { G as GetFallbackGasAmount } from '../client-types-BSZasIDd.js';
|
|
6
6
|
import '../api/postTransactionStatus.js';
|
|
7
|
-
import '../generateApi-
|
|
7
|
+
import '../generateApi-CwM4Ca30.js';
|
|
8
8
|
import '../apiState-DwZhwVul.js';
|
|
9
|
-
import '../api/postTrackTransaction.js';
|
|
10
9
|
import '@cosmjs/amino';
|
|
11
10
|
import 'viem';
|
|
12
11
|
import '@solana/wallet-adapter-base';
|
|
12
|
+
import '../api/postTrackTransaction.js';
|
|
13
13
|
|
|
14
14
|
type ValidateCosmosGasBalanceProps = {
|
|
15
15
|
chainId: string;
|
|
@@ -20,13 +20,14 @@ type ValidateCosmosGasBalanceProps = {
|
|
|
20
20
|
txIndex?: number;
|
|
21
21
|
simulate?: ExecuteRouteOptions["simulate"];
|
|
22
22
|
getCosmosPriorityFeeDenom?: ExecuteRouteOptions["getCosmosPriorityFeeDenom"];
|
|
23
|
+
isMultiRoutes?: boolean;
|
|
23
24
|
};
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
27
|
* Validate gas balance for cosmos messages returns a fee asset and StdFee to be used
|
|
27
28
|
*
|
|
28
29
|
*/
|
|
29
|
-
declare const validateCosmosGasBalance: ({ chainId, signerAddress, messages, getFallbackGasAmount, getOfflineSigner, txIndex, simulate, getCosmosPriorityFeeDenom, }: ValidateCosmosGasBalanceProps) => Promise<{
|
|
30
|
+
declare const validateCosmosGasBalance: ({ chainId, signerAddress, messages, getFallbackGasAmount, getOfflineSigner, txIndex, simulate, getCosmosPriorityFeeDenom, isMultiRoutes, }: ValidateCosmosGasBalanceProps) => Promise<{
|
|
30
31
|
error: string;
|
|
31
32
|
asset?: undefined;
|
|
32
33
|
fee?: undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { validateCosmosGasBalance } from '../chunk-
|
|
1
|
+
export { validateCosmosGasBalance } from '../chunk-VZGOU6MB.js';
|
|
2
2
|
import '../chunk-KNXMSLOB.js';
|
|
3
|
-
import '../chunk-VQ5SIQWU.js';
|
|
4
|
-
import '../chunk-KYDY7QRT.js';
|
|
5
|
-
import '../chunk-3J6O2PVK.js';
|
|
6
3
|
import '../chunk-UIDIKXMB.js';
|
|
4
|
+
import '../chunk-VQ5SIQWU.js';
|
|
5
|
+
import '../chunk-BZDVQMHK.js';
|
|
7
6
|
import '../chunk-QO2CYYF5.js';
|
|
7
|
+
import '../chunk-RHGDUD76.js';
|
|
8
8
|
import '../chunk-ZOUYAZU6.js';
|
|
9
9
|
import '../chunk-A6KSECAH.js';
|
|
10
10
|
import '../chunk-OQDBWVET.js';
|