@hyperbridge/sdk 2.8.3 → 2.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { I as IChain, H as HexString, a as IEvmConfig, C as ChainConfigService, b as IMessage, S as StateMachineIdParams, c as StateMachineHeight, d as IIsmpMessage, e as IPostRequest, f as IGetRequest, O as Order, E as EstimateGasCallData, R as RetryConfig, g as IPolkadotHubConfig, h as IPharosConfig, i as StateMachineUpdate, P as PostRequestWithStatus, G as GetRequestWithStatus, j as ResponseCommitmentWithValues, k as RequestStatusWithMetadata, l as PostRequestTimeoutStatus, m as SubstrateChain, n as ClientConfig, o as IndexerQueryClient, A as AssetTeleported, T as Transaction, p as IProof, q as IEvmChain, r as IntentsCoprocessor, s as AvailableLiquiditySnapshot, t as IntentOrderStatusUpdate, u as SelectBidResult, v as ResumeIntentOrderOptions, w as CancelOrderOptions, x as CancelQuote, y as SubmitBidOptions, z as PackedUserOperation, F as FillerBid, B as Bid, D as EstimateFillOrderParams, J as FillOrderEstimate, K as OrderFeesQuote, L as ERC7821Call, M as OrderWithStatus, N as OrderStatus, Q as TokenGatewayAssetTeleportedWithStatus, U as TeleportStatus, V as DecodedOrderPlacedLog, W as DecodedPostRequestEvent, X as DecodedPostResponseEvent } from './intents-helpers-CxCDx-hH.cjs';
2
- export { Y as AllStatusKey, Z as AssetTeleportedResponse, _ as AvailableLiquidityByChain, $ as BidStorageEntry, a0 as BidSubmissionResult, a1 as BlockMetadata, a2 as BytesLikeHex, a3 as CancelOptions, a4 as ChainConfig, a5 as ChainConfigData, a6 as Chains, a7 as ConfiguredAssetSymbol, a8 as Deployment, a9 as DispatchGet, aa as DispatchInfo, ab as DispatchPost, ac as Erc4626VaultConfigData, ad as ExecuteIntentOrderOptions, ae as ExecutionResult, af as FillOptions, ag as FillerConfig, ah as GetRequestResponse, ai as GetResponseByRequestIdResponse, aj as GetResponseStorageValues, ak as HostParams, al as HyperClientStatus, am as IBatchConsensusAndGetResponseMessage, an as IBatchConsensusAndPostRequestMessage, ao as IConfig, ap as IConsensusMessage, aq as IGetRequestMessage, ar as IGetResponse, as as IGetResponseMessage, at as IHyperbridgeConfig, au as IPostResponse, av as IRequestMessage, aw as ISubstrateConfig, ax as ITimeoutPostRequestMessage, ay as IntentGatewayABI, az as IntentGatewayParams, aA as IntentOrderStatus, aB as IntentOrderStatusKey, aC as IsmpRequest, aD as OrderResponse, aE as OrderStatusMetadata, aF as PaymentInfo, aG as PhantomBid, aH as PhantomBidBatchResult, aI as PhantomBidDeclaration, aJ as PhantomBidOutcome, aK as PhantomOrderEvent, aL as PhantomOrderLeg, aM as PhantomOrderPriceSnapshot, aN as PhantomOrderPriceSnapshotsResponse, aO as PollPhantomOrdersOptions, aP as PostRequestStatus, aQ as RequestBody, aR as RequestCommitment, aS as RequestKind, aT as RequestResponse, aU as RequestStatus, aV as RequestStatusKey, aW as SelectOptions, aX as SigningAccount, aY as StateMachineId, aZ as StateMachineResponse, a_ as StorageFacade, a$ as TimeoutStatus, b0 as TimeoutStatusKey, b1 as TokenGatewayAssetTeleportedResponse, b2 as TokenInfo, b3 as TokenPrice, b4 as TokenPricesResponse, b5 as UniswapV4PoolConfigData, b6 as chainConfigs, b7 as convertCodecToIGetRequest, b8 as convertCodecToIProof, b9 as convertIGetRequestToCodec, ba as convertIProofToCodec, bb as convertStateIdToStateMachineId, bc as convertStateMachineEnumToString, bd as convertStateMachineIdToEnum, be as decodeAcceptedSourceChains, bf as decodeERC7821ExecuteBatch, bg as decodePhantomBidDeclaration, bh as decodeUserOpScale, bi as deriveHttpUrl, bj as encodeAcceptedSourceChains, bk as encodeERC7821ExecuteBatch, bl as encodeISMPMessage, bm as encodePhantomBidDeclaration, bn as encodeUserOpScale, bo as getChainId, bp as getConfigByStateMachineId, bq as getViemChain, br as hyperbridgeAddress, bs as pharosAtlantic, bt as pharosMainnet, bu as polkadotAssetHubPaseo, bv as polkadotHubMainnet, bw as tronChainIds, bx as tronNile } from './intents-helpers-CxCDx-hH.cjs';
1
+ import { I as IChain, H as HexString, a as IEvmConfig, C as ChainConfigService, b as IMessage, S as StateMachineIdParams, c as StateMachineHeight, d as IIsmpMessage, e as IPostRequest, f as IGetRequest, O as Order, E as EstimateGasCallData, R as RetryConfig, g as IPolkadotHubConfig, h as IPharosConfig, i as StateMachineUpdate, P as PostRequestWithStatus, G as GetRequestWithStatus, j as ResponseCommitmentWithValues, k as RequestStatusWithMetadata, l as PostRequestTimeoutStatus, m as SubstrateChain, n as ClientConfig, o as IndexerQueryClient, A as AssetTeleported, T as Transaction, p as IProof, q as IEvmChain, r as IntentsCoprocessor, s as AvailableLiquidity, Q as QueryBuyAndSellRatesParams, B as BuyAndSellRates, t as IntentOrderStatusUpdate, u as SelectBidResult, v as ResumeIntentOrderOptions, w as CancelOrderOptions, x as CancelQuote, y as SubmitBidOptions, z as PackedUserOperation, F as FillerBid, D as Bid, J as EstimateFillOrderParams, K as FillOrderEstimate, L as OrderFeesQuote, M as ERC7821Call, N as OrderWithStatus, U as OrderStatus, V as TokenGatewayAssetTeleportedWithStatus, W as TeleportStatus, X as DecodedOrderPlacedLog, Y as DecodedPostRequestEvent, Z as DecodedPostResponseEvent } from './intents-helpers-Cf0-Odlu.cjs';
2
+ export { _ as AllStatusKey, $ as AssetTeleportedResponse, a0 as BidStorageEntry, a1 as BidSubmissionResult, a2 as BlockMetadata, a3 as BytesLikeHex, a4 as CancelOptions, a5 as ChainConfig, a6 as ChainConfigData, a7 as Chains, a8 as ConfiguredAssetSymbol, a9 as ConfiguredAssetSymbolInput, aa as Deployment, ab as DispatchGet, ac as DispatchInfo, ad as DispatchPost, ae as Erc4626VaultConfigData, af as ExecuteIntentOrderOptions, ag as ExecutionResult, ah as FillOptions, ai as FillerConfig, aj as GetRequestResponse, ak as GetResponseByRequestIdResponse, al as GetResponseStorageValues, am as HostParams, an as HyperClientStatus, ao as IBatchConsensusAndGetResponseMessage, ap as IBatchConsensusAndPostRequestMessage, aq as IConfig, ar as IConsensusMessage, as as IGetRequestMessage, at as IGetResponse, au as IGetResponseMessage, av as IHyperbridgeConfig, aw as INCLUSION_TIMEOUT_MS, ax as IPostResponse, ay as IRequestMessage, az as ISubstrateConfig, aA as ITimeoutPostRequestMessage, aB as IntentGatewayABI, aC as IntentGatewayParams, aD as IntentOrderStatus, aE as IntentOrderStatusKey, aF as IsmpRequest, aG as LiquiditySlice, aH as OrderResponse, aI as OrderStatusMetadata, aJ as PaymentInfo, aK as PhantomBid, aL as PhantomBidBatchResult, aM as PhantomBidDeclaration, aN as PhantomBidOutcome, aO as PhantomOrderEvent, aP as PhantomOrderLeg, aQ as PhantomOrderPriceSnapshot, aR as PhantomOrderPriceSnapshotsResponse, aS as PollPhantomOrdersOptions, aT as PostRequestStatus, aU as RequestBody, aV as RequestCommitment, aW as RequestKind, aX as RequestResponse, aY as RequestStatus, aZ as RequestStatusKey, a_ as SelectOptions, a$ as SigningAccount, b0 as StateMachineId, b1 as StateMachineResponse, b2 as StorageFacade, b3 as TimeoutStatus, b4 as TimeoutStatusKey, b5 as TokenGatewayAssetTeleportedResponse, b6 as TokenInfo, b7 as TokenPrice, b8 as TokenPricesResponse, b9 as UniswapV4PoolConfigData, ba as chainConfigs, bb as convertCodecToIGetRequest, bc as convertCodecToIProof, bd as convertIGetRequestToCodec, be as convertIProofToCodec, bf as convertStateIdToStateMachineId, bg as convertStateMachineEnumToString, bh as convertStateMachineIdToEnum, bi as decodeAcceptedSourceChains, bj as decodeERC7821ExecuteBatch, bk as decodePhantomBidDeclaration, bl as decodeUserOpScale, bm as deriveHttpUrl, bn as encodeAcceptedSourceChains, bo as encodeERC7821ExecuteBatch, bp as encodeISMPMessage, bq as encodePhantomBidDeclaration, br as encodeUserOpScale, bs as getChainId, bt as getConfigByStateMachineId, bu as getViemChain, bv as hyperbridgeAddress, bw as pharosAtlantic, bx as pharosMainnet, by as polkadotAssetHubPaseo, bz as polkadotHubMainnet, bA as poolSlug, bB as sortPoolSymbols, bC as tronChainIds, bD as tronNile } from './intents-helpers-Cf0-Odlu.cjs';
3
3
  import { ConsolaInstance } from 'consola';
4
4
  import { GraphQLClient } from 'graphql-request';
5
5
  import { PublicClient, TransactionReceipt, Hex, Address } from 'viem';
@@ -1844,8 +1844,6 @@ declare class IntentGateway {
1844
1844
  private readonly gasEstimator;
1845
1845
  /** Quote strategies for pricing orders before placement, keyed by strategy name. */
1846
1846
  private readonly quoteStrategies;
1847
- /** Resolves order tokens to canonical Phantom snapshot market pairs. */
1848
- private readonly phantomSnapshotPairResolver;
1849
1847
  /**
1850
1848
  * Private constructor — use {@link IntentGateway.create} instead.
1851
1849
  *
@@ -1901,17 +1899,22 @@ declare class IntentGateway {
1901
1899
  */
1902
1900
  quoteIntent(params: QuoteIntentParams): Promise<QuoteIntentResult>;
1903
1901
  /**
1904
- * Returns the output-token liquidity measured in the latest directional
1905
- * Phantom snapshot for this gateway's source and destination.
1902
+ * Returns indexed destination liquidity and its source-routing slices.
1906
1903
  *
1907
- * Pair resolution uses the same canonical Base market as {@link quoteIntent}.
1908
- * The snapshot itself determines the output token and chain to aggregate. The
1909
- * amount is in the token's smallest unit and reflects the indexer's
1910
- * `snapshotTime`; it is not a live reservation or fill guarantee.
1904
+ * Destination, unrestricted, and explicit-route capacity come exclusively
1905
+ * from the indexer's pair-centric liquidity entities. The SDK does not decide
1906
+ * whether unrestricted bidders cover the source chain. Amounts reflect the
1907
+ * latest rolling sample; they are not reservations or fill guarantees.
1911
1908
  *
1912
1909
  * Requires a prior call to {@link withQueryClient}.
1913
1910
  */
1914
- queryAvailableLiquidity(params: Pick<QuoteIntentParams, "tokenIn" | "tokenOut">): Promise<AvailableLiquiditySnapshot | undefined>;
1911
+ queryAvailableLiquidity(params: Pick<QuoteIntentParams, "tokenIn" | "tokenOut">): Promise<AvailableLiquidity | undefined>;
1912
+ /**
1913
+ * Returns chain-specific buy and sell rates in less-valued quote-token units
1914
+ * without requiring token addresses. Symbols are matched case-insensitively;
1915
+ * chain IDs are numeric IDs for chains configured in the SDK.
1916
+ */
1917
+ queryBuyAndSellRates(params: QueryBuyAndSellRatesParams): Promise<BuyAndSellRates | undefined>;
1915
1918
  /**
1916
1919
  * Bidirectional async generator that orchestrates the full order lifecycle:
1917
1920
  * placement, fee estimation, bid collection, and execution.
@@ -2255,6 +2258,16 @@ declare class IntentGateway {
2255
2258
  }, void>;
2256
2259
  }
2257
2260
 
2261
+ declare class InvalidLiquidityIndexerResponseError extends Error {
2262
+ constructor(reason: string);
2263
+ }
2264
+ declare class UnsupportedLiquidityAssetError extends Error {
2265
+ constructor(chain: string, asset: string);
2266
+ }
2267
+ declare class UnsupportedLiquidityChainError extends Error {
2268
+ constructor(chainId: number | string);
2269
+ }
2270
+
2258
2271
  /**
2259
2272
  * Checks the on-chain fill and refund status of IntentGatewayV2 orders.
2260
2273
  *
@@ -6095,4 +6108,4 @@ declare function teleport(teleport_param: {
6095
6108
  extrinsics?: Array<SubmittableExtrinsic<"promise", ISubmittableResult>>;
6096
6109
  }): Promise<ReadableStream<HyperbridgeTxEvents>>;
6097
6110
 
6098
- export { ADDRESS_ZERO, AssetTeleported, AvailableLiquiditySnapshot, Bid, type BridgeParams, type BridgeStep, type BundlerGasEstimate, BundlerMethod, type CancelEvent, CancelOrderOptions, CancelQuote, ChainConfigService, ClientConfig, CryptoUtils, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, DecodedOrderPlacedLog, DecodedPostRequestEvent, DecodedPostResponseEvent, ERC20Method, ERC7821Call, ERC7821_BATCH_MODE, EstimateFillOrderParams, EstimateGasCallData, EvmChain, type EvmChainParams, ABI as EvmHostABI, EvmLanguage, FillOrderEstimate, FillerBid, GetRequestWithStatus, HexString, HyperFungibleToken, HyperFungibleTokenABI, type HyperbridgeTxEvents, IChain, IEvmChain, IEvmConfig, IGetRequest, IIsmpMessage, IMessage, IPharosConfig, IPolkadotHubConfig, IPostRequest, IProof, IndexerQueryClient, IntentGateway, type IntentGatewayContext, IntentOrderStatusUpdate, type IntentQuoteStrategy, type IntentQuoteTradeType, IntentsCoprocessor, InvalidPhantomSnapshotError, IsmpClient, MOCK_ADDRESS, ORDER_V2_PARAM_TYPE, Order, OrderFeesQuote, OrderStatus, OrderStatusChecker, OrderWithStatus, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, PackedUserOperation, type Params, type PhantomSnapshotIntentQuoteMetadata, type PhantomSnapshotQuoteIntentResult, PhantomSnapshotUnavailableError, PharosChain, type PharosChainParams, PolkadotHubChain, type PolkadotHubChainParams, PostRequestTimeoutStatus, PostRequestWithStatus, type QuoteIntentParams, type QuoteIntentResult, type QuoteNativeResult, type QuoteResult, type QuoteUniswapParams, type QuoteUniswapResult, REQUEST_COMMITMENTS_SLOT, REQUEST_RECEIPTS_SLOT, RESPONSE_COMMITMENTS_SLOT, RESPONSE_RECEIPTS_SLOT, RequestStatusWithMetadata, ResponseCommitmentWithValues, ResumeIntentOrderOptions, RetryConfig, SELECT_SOLVER_TYPEHASH, STATE_COMMITMENTS_SLOT, SelectBidResult, StateMachineHeight, StateMachineIdParams, StateMachineUpdate, SubmitBidOptions, SubstrateChain, Swap, TESTNET_CHAINS, type TeleportParams, TeleportStatus, TokenGateway, TokenGatewayAssetTeleportedWithStatus, Transaction, TronChain, type TronChainParams, USE_ETHERSCAN_CHAINS, type UniswapProtocol, type UniswapQuote, type UniswapQuoteToken, type UniswapTradeType, type UniswapV4IntentQuoteMetadata, type UniswapV4IntentQuoteOptions, type UniswapV4PoolKey, type UniswapV4QuoteIntentResult, UnsupportedIntentQuotePairError, UnsupportedIntentQuoteStrategyError, WrappedHyperFungibleTokenABI, type XcmGatewayParams, __test, adjustDecimals, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, createEvmChain, createQueryClient, encodeStateMachineId, encodeWithdrawalRequest, estimateGasForPost, fetchPrice, fetchSourceProof, generateRootWithProof, getContractCallInput, getContractCallInputs, getGasPriceFromEtherscan, getOrFetchStorageSlot, getOrderPlacedFromTx, getPostRequestEventFromTx, getPostResponseEventFromTx, getRequestCommitment, getStateCommitmentFieldSlot, getStateCommitmentSlot, getStorageSlot, hexToString, maxBigInt, normalizeAddressForEvmBytes32, normalizeAddressForStateMachine, normalizeEvmAddress, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, parseStateMachineId, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, requestCommitmentKey, responseCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract };
6111
+ export { ADDRESS_ZERO, AssetTeleported, AvailableLiquidity, Bid, type BridgeParams, type BridgeStep, type BundlerGasEstimate, BundlerMethod, BuyAndSellRates, type CancelEvent, CancelOrderOptions, CancelQuote, ChainConfigService, ClientConfig, CryptoUtils, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, DecodedOrderPlacedLog, DecodedPostRequestEvent, DecodedPostResponseEvent, ERC20Method, ERC7821Call, ERC7821_BATCH_MODE, EstimateFillOrderParams, EstimateGasCallData, EvmChain, type EvmChainParams, ABI as EvmHostABI, EvmLanguage, FillOrderEstimate, FillerBid, GetRequestWithStatus, HexString, HyperFungibleToken, HyperFungibleTokenABI, type HyperbridgeTxEvents, IChain, IEvmChain, IEvmConfig, IGetRequest, IIsmpMessage, IMessage, IPharosConfig, IPolkadotHubConfig, IPostRequest, IProof, IndexerQueryClient, IntentGateway, type IntentGatewayContext, IntentOrderStatusUpdate, type IntentQuoteStrategy, type IntentQuoteTradeType, IntentsCoprocessor, InvalidLiquidityIndexerResponseError, InvalidPhantomSnapshotError, IsmpClient, MOCK_ADDRESS, ORDER_V2_PARAM_TYPE, Order, OrderFeesQuote, OrderStatus, OrderStatusChecker, OrderWithStatus, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, PackedUserOperation, type Params, type PhantomSnapshotIntentQuoteMetadata, type PhantomSnapshotQuoteIntentResult, PhantomSnapshotUnavailableError, PharosChain, type PharosChainParams, PolkadotHubChain, type PolkadotHubChainParams, PostRequestTimeoutStatus, PostRequestWithStatus, QueryBuyAndSellRatesParams, type QuoteIntentParams, type QuoteIntentResult, type QuoteNativeResult, type QuoteResult, type QuoteUniswapParams, type QuoteUniswapResult, REQUEST_COMMITMENTS_SLOT, REQUEST_RECEIPTS_SLOT, RESPONSE_COMMITMENTS_SLOT, RESPONSE_RECEIPTS_SLOT, RequestStatusWithMetadata, ResponseCommitmentWithValues, ResumeIntentOrderOptions, RetryConfig, SELECT_SOLVER_TYPEHASH, STATE_COMMITMENTS_SLOT, SelectBidResult, StateMachineHeight, StateMachineIdParams, StateMachineUpdate, SubmitBidOptions, SubstrateChain, Swap, TESTNET_CHAINS, type TeleportParams, TeleportStatus, TokenGateway, TokenGatewayAssetTeleportedWithStatus, Transaction, TronChain, type TronChainParams, USE_ETHERSCAN_CHAINS, type UniswapProtocol, type UniswapQuote, type UniswapQuoteToken, type UniswapTradeType, type UniswapV4IntentQuoteMetadata, type UniswapV4IntentQuoteOptions, type UniswapV4PoolKey, type UniswapV4QuoteIntentResult, UnsupportedIntentQuotePairError, UnsupportedIntentQuoteStrategyError, UnsupportedLiquidityAssetError, UnsupportedLiquidityChainError, WrappedHyperFungibleTokenABI, type XcmGatewayParams, __test, adjustDecimals, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, createEvmChain, createQueryClient, encodeStateMachineId, encodeWithdrawalRequest, estimateGasForPost, fetchPrice, fetchSourceProof, generateRootWithProof, getContractCallInput, getContractCallInputs, getGasPriceFromEtherscan, getOrFetchStorageSlot, getOrderPlacedFromTx, getPostRequestEventFromTx, getPostResponseEventFromTx, getRequestCommitment, getStateCommitmentFieldSlot, getStateCommitmentSlot, getStorageSlot, hexToString, maxBigInt, normalizeAddressForEvmBytes32, normalizeAddressForStateMachine, normalizeEvmAddress, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, parseStateMachineId, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, requestCommitmentKey, responseCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract };
@@ -1,5 +1,5 @@
1
- import { I as IChain, H as HexString, a as IEvmConfig, C as ChainConfigService, b as IMessage, S as StateMachineIdParams, c as StateMachineHeight, d as IIsmpMessage, e as IPostRequest, f as IGetRequest, O as Order, E as EstimateGasCallData, R as RetryConfig, g as IPolkadotHubConfig, h as IPharosConfig, i as StateMachineUpdate, P as PostRequestWithStatus, G as GetRequestWithStatus, j as ResponseCommitmentWithValues, k as RequestStatusWithMetadata, l as PostRequestTimeoutStatus, m as SubstrateChain, n as ClientConfig, o as IndexerQueryClient, A as AssetTeleported, T as Transaction, p as IProof, q as IEvmChain, r as IntentsCoprocessor, s as AvailableLiquiditySnapshot, t as IntentOrderStatusUpdate, u as SelectBidResult, v as ResumeIntentOrderOptions, w as CancelOrderOptions, x as CancelQuote, y as SubmitBidOptions, z as PackedUserOperation, F as FillerBid, B as Bid, D as EstimateFillOrderParams, J as FillOrderEstimate, K as OrderFeesQuote, L as ERC7821Call, M as OrderWithStatus, N as OrderStatus, Q as TokenGatewayAssetTeleportedWithStatus, U as TeleportStatus, V as DecodedOrderPlacedLog, W as DecodedPostRequestEvent, X as DecodedPostResponseEvent } from './intents-helpers-CxCDx-hH.js';
2
- export { Y as AllStatusKey, Z as AssetTeleportedResponse, _ as AvailableLiquidityByChain, $ as BidStorageEntry, a0 as BidSubmissionResult, a1 as BlockMetadata, a2 as BytesLikeHex, a3 as CancelOptions, a4 as ChainConfig, a5 as ChainConfigData, a6 as Chains, a7 as ConfiguredAssetSymbol, a8 as Deployment, a9 as DispatchGet, aa as DispatchInfo, ab as DispatchPost, ac as Erc4626VaultConfigData, ad as ExecuteIntentOrderOptions, ae as ExecutionResult, af as FillOptions, ag as FillerConfig, ah as GetRequestResponse, ai as GetResponseByRequestIdResponse, aj as GetResponseStorageValues, ak as HostParams, al as HyperClientStatus, am as IBatchConsensusAndGetResponseMessage, an as IBatchConsensusAndPostRequestMessage, ao as IConfig, ap as IConsensusMessage, aq as IGetRequestMessage, ar as IGetResponse, as as IGetResponseMessage, at as IHyperbridgeConfig, au as IPostResponse, av as IRequestMessage, aw as ISubstrateConfig, ax as ITimeoutPostRequestMessage, ay as IntentGatewayABI, az as IntentGatewayParams, aA as IntentOrderStatus, aB as IntentOrderStatusKey, aC as IsmpRequest, aD as OrderResponse, aE as OrderStatusMetadata, aF as PaymentInfo, aG as PhantomBid, aH as PhantomBidBatchResult, aI as PhantomBidDeclaration, aJ as PhantomBidOutcome, aK as PhantomOrderEvent, aL as PhantomOrderLeg, aM as PhantomOrderPriceSnapshot, aN as PhantomOrderPriceSnapshotsResponse, aO as PollPhantomOrdersOptions, aP as PostRequestStatus, aQ as RequestBody, aR as RequestCommitment, aS as RequestKind, aT as RequestResponse, aU as RequestStatus, aV as RequestStatusKey, aW as SelectOptions, aX as SigningAccount, aY as StateMachineId, aZ as StateMachineResponse, a_ as StorageFacade, a$ as TimeoutStatus, b0 as TimeoutStatusKey, b1 as TokenGatewayAssetTeleportedResponse, b2 as TokenInfo, b3 as TokenPrice, b4 as TokenPricesResponse, b5 as UniswapV4PoolConfigData, b6 as chainConfigs, b7 as convertCodecToIGetRequest, b8 as convertCodecToIProof, b9 as convertIGetRequestToCodec, ba as convertIProofToCodec, bb as convertStateIdToStateMachineId, bc as convertStateMachineEnumToString, bd as convertStateMachineIdToEnum, be as decodeAcceptedSourceChains, bf as decodeERC7821ExecuteBatch, bg as decodePhantomBidDeclaration, bh as decodeUserOpScale, bi as deriveHttpUrl, bj as encodeAcceptedSourceChains, bk as encodeERC7821ExecuteBatch, bl as encodeISMPMessage, bm as encodePhantomBidDeclaration, bn as encodeUserOpScale, bo as getChainId, bp as getConfigByStateMachineId, bq as getViemChain, br as hyperbridgeAddress, bs as pharosAtlantic, bt as pharosMainnet, bu as polkadotAssetHubPaseo, bv as polkadotHubMainnet, bw as tronChainIds, bx as tronNile } from './intents-helpers-CxCDx-hH.js';
1
+ import { I as IChain, H as HexString, a as IEvmConfig, C as ChainConfigService, b as IMessage, S as StateMachineIdParams, c as StateMachineHeight, d as IIsmpMessage, e as IPostRequest, f as IGetRequest, O as Order, E as EstimateGasCallData, R as RetryConfig, g as IPolkadotHubConfig, h as IPharosConfig, i as StateMachineUpdate, P as PostRequestWithStatus, G as GetRequestWithStatus, j as ResponseCommitmentWithValues, k as RequestStatusWithMetadata, l as PostRequestTimeoutStatus, m as SubstrateChain, n as ClientConfig, o as IndexerQueryClient, A as AssetTeleported, T as Transaction, p as IProof, q as IEvmChain, r as IntentsCoprocessor, s as AvailableLiquidity, Q as QueryBuyAndSellRatesParams, B as BuyAndSellRates, t as IntentOrderStatusUpdate, u as SelectBidResult, v as ResumeIntentOrderOptions, w as CancelOrderOptions, x as CancelQuote, y as SubmitBidOptions, z as PackedUserOperation, F as FillerBid, D as Bid, J as EstimateFillOrderParams, K as FillOrderEstimate, L as OrderFeesQuote, M as ERC7821Call, N as OrderWithStatus, U as OrderStatus, V as TokenGatewayAssetTeleportedWithStatus, W as TeleportStatus, X as DecodedOrderPlacedLog, Y as DecodedPostRequestEvent, Z as DecodedPostResponseEvent } from './intents-helpers-Cf0-Odlu.js';
2
+ export { _ as AllStatusKey, $ as AssetTeleportedResponse, a0 as BidStorageEntry, a1 as BidSubmissionResult, a2 as BlockMetadata, a3 as BytesLikeHex, a4 as CancelOptions, a5 as ChainConfig, a6 as ChainConfigData, a7 as Chains, a8 as ConfiguredAssetSymbol, a9 as ConfiguredAssetSymbolInput, aa as Deployment, ab as DispatchGet, ac as DispatchInfo, ad as DispatchPost, ae as Erc4626VaultConfigData, af as ExecuteIntentOrderOptions, ag as ExecutionResult, ah as FillOptions, ai as FillerConfig, aj as GetRequestResponse, ak as GetResponseByRequestIdResponse, al as GetResponseStorageValues, am as HostParams, an as HyperClientStatus, ao as IBatchConsensusAndGetResponseMessage, ap as IBatchConsensusAndPostRequestMessage, aq as IConfig, ar as IConsensusMessage, as as IGetRequestMessage, at as IGetResponse, au as IGetResponseMessage, av as IHyperbridgeConfig, aw as INCLUSION_TIMEOUT_MS, ax as IPostResponse, ay as IRequestMessage, az as ISubstrateConfig, aA as ITimeoutPostRequestMessage, aB as IntentGatewayABI, aC as IntentGatewayParams, aD as IntentOrderStatus, aE as IntentOrderStatusKey, aF as IsmpRequest, aG as LiquiditySlice, aH as OrderResponse, aI as OrderStatusMetadata, aJ as PaymentInfo, aK as PhantomBid, aL as PhantomBidBatchResult, aM as PhantomBidDeclaration, aN as PhantomBidOutcome, aO as PhantomOrderEvent, aP as PhantomOrderLeg, aQ as PhantomOrderPriceSnapshot, aR as PhantomOrderPriceSnapshotsResponse, aS as PollPhantomOrdersOptions, aT as PostRequestStatus, aU as RequestBody, aV as RequestCommitment, aW as RequestKind, aX as RequestResponse, aY as RequestStatus, aZ as RequestStatusKey, a_ as SelectOptions, a$ as SigningAccount, b0 as StateMachineId, b1 as StateMachineResponse, b2 as StorageFacade, b3 as TimeoutStatus, b4 as TimeoutStatusKey, b5 as TokenGatewayAssetTeleportedResponse, b6 as TokenInfo, b7 as TokenPrice, b8 as TokenPricesResponse, b9 as UniswapV4PoolConfigData, ba as chainConfigs, bb as convertCodecToIGetRequest, bc as convertCodecToIProof, bd as convertIGetRequestToCodec, be as convertIProofToCodec, bf as convertStateIdToStateMachineId, bg as convertStateMachineEnumToString, bh as convertStateMachineIdToEnum, bi as decodeAcceptedSourceChains, bj as decodeERC7821ExecuteBatch, bk as decodePhantomBidDeclaration, bl as decodeUserOpScale, bm as deriveHttpUrl, bn as encodeAcceptedSourceChains, bo as encodeERC7821ExecuteBatch, bp as encodeISMPMessage, bq as encodePhantomBidDeclaration, br as encodeUserOpScale, bs as getChainId, bt as getConfigByStateMachineId, bu as getViemChain, bv as hyperbridgeAddress, bw as pharosAtlantic, bx as pharosMainnet, by as polkadotAssetHubPaseo, bz as polkadotHubMainnet, bA as poolSlug, bB as sortPoolSymbols, bC as tronChainIds, bD as tronNile } from './intents-helpers-Cf0-Odlu.js';
3
3
  import { ConsolaInstance } from 'consola';
4
4
  import { GraphQLClient } from 'graphql-request';
5
5
  import { PublicClient, TransactionReceipt, Hex, Address } from 'viem';
@@ -1844,8 +1844,6 @@ declare class IntentGateway {
1844
1844
  private readonly gasEstimator;
1845
1845
  /** Quote strategies for pricing orders before placement, keyed by strategy name. */
1846
1846
  private readonly quoteStrategies;
1847
- /** Resolves order tokens to canonical Phantom snapshot market pairs. */
1848
- private readonly phantomSnapshotPairResolver;
1849
1847
  /**
1850
1848
  * Private constructor — use {@link IntentGateway.create} instead.
1851
1849
  *
@@ -1901,17 +1899,22 @@ declare class IntentGateway {
1901
1899
  */
1902
1900
  quoteIntent(params: QuoteIntentParams): Promise<QuoteIntentResult>;
1903
1901
  /**
1904
- * Returns the output-token liquidity measured in the latest directional
1905
- * Phantom snapshot for this gateway's source and destination.
1902
+ * Returns indexed destination liquidity and its source-routing slices.
1906
1903
  *
1907
- * Pair resolution uses the same canonical Base market as {@link quoteIntent}.
1908
- * The snapshot itself determines the output token and chain to aggregate. The
1909
- * amount is in the token's smallest unit and reflects the indexer's
1910
- * `snapshotTime`; it is not a live reservation or fill guarantee.
1904
+ * Destination, unrestricted, and explicit-route capacity come exclusively
1905
+ * from the indexer's pair-centric liquidity entities. The SDK does not decide
1906
+ * whether unrestricted bidders cover the source chain. Amounts reflect the
1907
+ * latest rolling sample; they are not reservations or fill guarantees.
1911
1908
  *
1912
1909
  * Requires a prior call to {@link withQueryClient}.
1913
1910
  */
1914
- queryAvailableLiquidity(params: Pick<QuoteIntentParams, "tokenIn" | "tokenOut">): Promise<AvailableLiquiditySnapshot | undefined>;
1911
+ queryAvailableLiquidity(params: Pick<QuoteIntentParams, "tokenIn" | "tokenOut">): Promise<AvailableLiquidity | undefined>;
1912
+ /**
1913
+ * Returns chain-specific buy and sell rates in less-valued quote-token units
1914
+ * without requiring token addresses. Symbols are matched case-insensitively;
1915
+ * chain IDs are numeric IDs for chains configured in the SDK.
1916
+ */
1917
+ queryBuyAndSellRates(params: QueryBuyAndSellRatesParams): Promise<BuyAndSellRates | undefined>;
1915
1918
  /**
1916
1919
  * Bidirectional async generator that orchestrates the full order lifecycle:
1917
1920
  * placement, fee estimation, bid collection, and execution.
@@ -2255,6 +2258,16 @@ declare class IntentGateway {
2255
2258
  }, void>;
2256
2259
  }
2257
2260
 
2261
+ declare class InvalidLiquidityIndexerResponseError extends Error {
2262
+ constructor(reason: string);
2263
+ }
2264
+ declare class UnsupportedLiquidityAssetError extends Error {
2265
+ constructor(chain: string, asset: string);
2266
+ }
2267
+ declare class UnsupportedLiquidityChainError extends Error {
2268
+ constructor(chainId: number | string);
2269
+ }
2270
+
2258
2271
  /**
2259
2272
  * Checks the on-chain fill and refund status of IntentGatewayV2 orders.
2260
2273
  *
@@ -6095,4 +6108,4 @@ declare function teleport(teleport_param: {
6095
6108
  extrinsics?: Array<SubmittableExtrinsic<"promise", ISubmittableResult>>;
6096
6109
  }): Promise<ReadableStream<HyperbridgeTxEvents>>;
6097
6110
 
6098
- export { ADDRESS_ZERO, AssetTeleported, AvailableLiquiditySnapshot, Bid, type BridgeParams, type BridgeStep, type BundlerGasEstimate, BundlerMethod, type CancelEvent, CancelOrderOptions, CancelQuote, ChainConfigService, ClientConfig, CryptoUtils, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, DecodedOrderPlacedLog, DecodedPostRequestEvent, DecodedPostResponseEvent, ERC20Method, ERC7821Call, ERC7821_BATCH_MODE, EstimateFillOrderParams, EstimateGasCallData, EvmChain, type EvmChainParams, ABI as EvmHostABI, EvmLanguage, FillOrderEstimate, FillerBid, GetRequestWithStatus, HexString, HyperFungibleToken, HyperFungibleTokenABI, type HyperbridgeTxEvents, IChain, IEvmChain, IEvmConfig, IGetRequest, IIsmpMessage, IMessage, IPharosConfig, IPolkadotHubConfig, IPostRequest, IProof, IndexerQueryClient, IntentGateway, type IntentGatewayContext, IntentOrderStatusUpdate, type IntentQuoteStrategy, type IntentQuoteTradeType, IntentsCoprocessor, InvalidPhantomSnapshotError, IsmpClient, MOCK_ADDRESS, ORDER_V2_PARAM_TYPE, Order, OrderFeesQuote, OrderStatus, OrderStatusChecker, OrderWithStatus, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, PackedUserOperation, type Params, type PhantomSnapshotIntentQuoteMetadata, type PhantomSnapshotQuoteIntentResult, PhantomSnapshotUnavailableError, PharosChain, type PharosChainParams, PolkadotHubChain, type PolkadotHubChainParams, PostRequestTimeoutStatus, PostRequestWithStatus, type QuoteIntentParams, type QuoteIntentResult, type QuoteNativeResult, type QuoteResult, type QuoteUniswapParams, type QuoteUniswapResult, REQUEST_COMMITMENTS_SLOT, REQUEST_RECEIPTS_SLOT, RESPONSE_COMMITMENTS_SLOT, RESPONSE_RECEIPTS_SLOT, RequestStatusWithMetadata, ResponseCommitmentWithValues, ResumeIntentOrderOptions, RetryConfig, SELECT_SOLVER_TYPEHASH, STATE_COMMITMENTS_SLOT, SelectBidResult, StateMachineHeight, StateMachineIdParams, StateMachineUpdate, SubmitBidOptions, SubstrateChain, Swap, TESTNET_CHAINS, type TeleportParams, TeleportStatus, TokenGateway, TokenGatewayAssetTeleportedWithStatus, Transaction, TronChain, type TronChainParams, USE_ETHERSCAN_CHAINS, type UniswapProtocol, type UniswapQuote, type UniswapQuoteToken, type UniswapTradeType, type UniswapV4IntentQuoteMetadata, type UniswapV4IntentQuoteOptions, type UniswapV4PoolKey, type UniswapV4QuoteIntentResult, UnsupportedIntentQuotePairError, UnsupportedIntentQuoteStrategyError, WrappedHyperFungibleTokenABI, type XcmGatewayParams, __test, adjustDecimals, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, createEvmChain, createQueryClient, encodeStateMachineId, encodeWithdrawalRequest, estimateGasForPost, fetchPrice, fetchSourceProof, generateRootWithProof, getContractCallInput, getContractCallInputs, getGasPriceFromEtherscan, getOrFetchStorageSlot, getOrderPlacedFromTx, getPostRequestEventFromTx, getPostResponseEventFromTx, getRequestCommitment, getStateCommitmentFieldSlot, getStateCommitmentSlot, getStorageSlot, hexToString, maxBigInt, normalizeAddressForEvmBytes32, normalizeAddressForStateMachine, normalizeEvmAddress, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, parseStateMachineId, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, requestCommitmentKey, responseCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract };
6111
+ export { ADDRESS_ZERO, AssetTeleported, AvailableLiquidity, Bid, type BridgeParams, type BridgeStep, type BundlerGasEstimate, BundlerMethod, BuyAndSellRates, type CancelEvent, CancelOrderOptions, CancelQuote, ChainConfigService, ClientConfig, CryptoUtils, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, DecodedOrderPlacedLog, DecodedPostRequestEvent, DecodedPostResponseEvent, ERC20Method, ERC7821Call, ERC7821_BATCH_MODE, EstimateFillOrderParams, EstimateGasCallData, EvmChain, type EvmChainParams, ABI as EvmHostABI, EvmLanguage, FillOrderEstimate, FillerBid, GetRequestWithStatus, HexString, HyperFungibleToken, HyperFungibleTokenABI, type HyperbridgeTxEvents, IChain, IEvmChain, IEvmConfig, IGetRequest, IIsmpMessage, IMessage, IPharosConfig, IPolkadotHubConfig, IPostRequest, IProof, IndexerQueryClient, IntentGateway, type IntentGatewayContext, IntentOrderStatusUpdate, type IntentQuoteStrategy, type IntentQuoteTradeType, IntentsCoprocessor, InvalidLiquidityIndexerResponseError, InvalidPhantomSnapshotError, IsmpClient, MOCK_ADDRESS, ORDER_V2_PARAM_TYPE, Order, OrderFeesQuote, OrderStatus, OrderStatusChecker, OrderWithStatus, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, PackedUserOperation, type Params, type PhantomSnapshotIntentQuoteMetadata, type PhantomSnapshotQuoteIntentResult, PhantomSnapshotUnavailableError, PharosChain, type PharosChainParams, PolkadotHubChain, type PolkadotHubChainParams, PostRequestTimeoutStatus, PostRequestWithStatus, QueryBuyAndSellRatesParams, type QuoteIntentParams, type QuoteIntentResult, type QuoteNativeResult, type QuoteResult, type QuoteUniswapParams, type QuoteUniswapResult, REQUEST_COMMITMENTS_SLOT, REQUEST_RECEIPTS_SLOT, RESPONSE_COMMITMENTS_SLOT, RESPONSE_RECEIPTS_SLOT, RequestStatusWithMetadata, ResponseCommitmentWithValues, ResumeIntentOrderOptions, RetryConfig, SELECT_SOLVER_TYPEHASH, STATE_COMMITMENTS_SLOT, SelectBidResult, StateMachineHeight, StateMachineIdParams, StateMachineUpdate, SubmitBidOptions, SubstrateChain, Swap, TESTNET_CHAINS, type TeleportParams, TeleportStatus, TokenGateway, TokenGatewayAssetTeleportedWithStatus, Transaction, TronChain, type TronChainParams, USE_ETHERSCAN_CHAINS, type UniswapProtocol, type UniswapQuote, type UniswapQuoteToken, type UniswapTradeType, type UniswapV4IntentQuoteMetadata, type UniswapV4IntentQuoteOptions, type UniswapV4PoolKey, type UniswapV4QuoteIntentResult, UnsupportedIntentQuotePairError, UnsupportedIntentQuoteStrategyError, UnsupportedLiquidityAssetError, UnsupportedLiquidityChainError, WrappedHyperFungibleTokenABI, type XcmGatewayParams, __test, adjustDecimals, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, createEvmChain, createQueryClient, encodeStateMachineId, encodeWithdrawalRequest, estimateGasForPost, fetchPrice, fetchSourceProof, generateRootWithProof, getContractCallInput, getContractCallInputs, getGasPriceFromEtherscan, getOrFetchStorageSlot, getOrderPlacedFromTx, getPostRequestEventFromTx, getPostResponseEventFromTx, getRequestCommitment, getStateCommitmentFieldSlot, getStateCommitmentSlot, getStorageSlot, hexToString, maxBigInt, normalizeAddressForEvmBytes32, normalizeAddressForStateMachine, normalizeEvmAddress, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, parseStateMachineId, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, requestCommitmentKey, responseCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract };