@hyperbridge/sdk 2.8.7 → 2.8.10

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 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-BFc6YnD3.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-BFc6YnD3.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 Chains, t as ConfiguredAssetSymbol, u as AvailableLiquidity, Q as QueryBuyAndSellRatesParams, B as BuyAndSellRates, v as IntentOrderStatusUpdate, w as SelectBidResult, x as ResumeIntentOrderOptions, y as CancelOrderOptions, z as CancelQuote, D as SubmitBidOptions, F as PackedUserOperation, J as FillerBid, K as Bid, L as EstimateFillOrderParams, M as FillOrderEstimate, N as OrderFeesQuote, U as ERC7821Call, V as OrderWithStatus, W as OrderStatus, X as TokenGatewayAssetTeleportedWithStatus, Y as TeleportStatus, Z as DecodedOrderPlacedLog, _ as DecodedPostRequestEvent, $ as DecodedPostResponseEvent } from './intents-helpers-BKj42imQ.cjs';
2
+ export { a0 as AllStatusKey, a1 as AssetTeleportedResponse, a2 as BidStorageEntry, a3 as BidSubmissionResult, a4 as BlockMetadata, a5 as BytesLikeHex, a6 as CHAINS_WITHOUT_VALID_UNTIL, a7 as CancelOptions, a8 as ChainConfig, a9 as ChainConfigData, aa as ConfiguredAssetSymbolInput, ab as Deployment, ac as DispatchGet, ad as DispatchInfo, ae as DispatchPost, af as Erc4626VaultConfigData, ag as ExecuteIntentOrderOptions, ah as ExecutionResult, ai as FILL_ORDER_V1_ABI, aj as FillOptions, ak as FillOptionsVersion, al as FillerConfig, am as GetRequestResponse, an as GetResponseByRequestIdResponse, ao as GetResponseStorageValues, ap as HostParams, aq as HyperClientStatus, ar as IBatchConsensusAndGetResponseMessage, as as IBatchConsensusAndPostRequestMessage, at as IConfig, au as IConsensusMessage, av as IGetRequestMessage, aw as IGetResponse, ax as IGetResponseMessage, ay as IHyperbridgeConfig, az as INCLUSION_TIMEOUT_MS, aA as IPostResponse, aB as IRequestMessage, aC as ISubstrateConfig, aD as ITimeoutPostRequestMessage, aE as IntentGatewayABI, aF as IntentGatewayParams, aG as IntentOrderStatus, aH as IntentOrderStatusKey, aI as IsmpRequest, aJ as LEGACY_FILL_OPTIONS_IMPLEMENTATIONS, aK as LiquiditySlice, aL as OrderResponse, aM as OrderStatusMetadata, aN as PHANTOM_QUOTE_HAIRCUT_BPS, aO as PaymentInfo, aP as PhantomBid, aQ as PhantomBidBatchResult, aR as PhantomBidDeclaration, aS as PhantomBidOutcome, aT as PhantomOrderEvent, aU as PhantomOrderLeg, aV as PhantomOrderPriceSnapshot, aW as PhantomOrderPriceSnapshotsResponse, aX as PhantomTimings, aY as PollPhantomOrdersOptions, aZ as PostRequestStatus, a_ as RequestBody, a$ as RequestCommitment, b0 as RequestKind, b1 as RequestResponse, b2 as RequestStatus, b3 as RequestStatusKey, b4 as SelectOptions, b5 as SigningAccount, b6 as StateMachineId, b7 as StateMachineResponse, b8 as StorageFacade, b9 as TimeoutStatus, ba as TimeoutStatusKey, bb as TokenGatewayAssetTeleportedResponse, bc as TokenInfo, bd as TokenPrice, be as TokenPricesResponse, bf as UNISWAP_QUOTE_HAIRCUT_BPS, bg as UniswapV4PoolConfigData, bh as applyPhantomQuoteHaircut, bi as applyUniswapQuoteHaircut, bj as chainConfigs, bk as convertCodecToIGetRequest, bl as convertCodecToIProof, bm as convertIGetRequestToCodec, bn as convertIProofToCodec, bo as convertStateIdToStateMachineId, bp as convertStateMachineEnumToString, bq as convertStateMachineIdToEnum, br as decodeAcceptedSourceChains, bs as decodeERC7821ExecuteBatch, bt as decodeFillOrder, bu as decodePhantomBidDeclaration, bv as decodeUserOpScale, bw as deriveHttpUrl, bx as encodeAcceptedSourceChains, by as encodeERC7821ExecuteBatch, bz as encodeFillOrder, bA as encodeISMPMessage, bB as encodePhantomBidDeclaration, bC as encodeUserOpScale, bD as getChainId, bE as getConfigByStateMachineId, bF as getFillOptionsVersion, bG as getViemChain, bH as hyperbridgeAddress, bI as pharosAtlantic, bJ as pharosMainnet, bK as polkadotAssetHubPaseo, bL as polkadotHubMainnet, bM as poolSlug, bN as resetFillOptionsVersionCache, bO as sortPoolSymbols, bP as tronChainIds, bQ as tronNile } from './intents-helpers-BKj42imQ.cjs';
3
3
  import { ConsolaInstance } from 'consola';
4
4
  import { GraphQLClient } from 'graphql-request';
5
5
  import { PublicClient, TransactionReceipt, Hex, Address } from 'viem';
@@ -12,6 +12,7 @@ export { Account as ViemAccount } from 'viem/accounts';
12
12
  import 'decimal.js';
13
13
  import 'viem/chains';
14
14
  import '@polkadot/keyring/types';
15
+ import '@polkadot/types/interfaces';
15
16
 
16
17
  /**
17
18
  * The default address used as fallback when no address is provided.
@@ -1679,8 +1680,9 @@ interface IntentGatewayContext {
1679
1680
  swap: Swap;
1680
1681
  }
1681
1682
 
1682
- type IntentQuoteStrategy = "uniswap_v4" | "phantom_snapshot";
1683
+ type IntentQuoteStrategy = "indexed_rates" | "uniswap_v4" | "phantom_snapshot";
1683
1684
  type IntentQuoteTradeType = "EXACT_INPUT" | "EXACT_OUTPUT";
1685
+ type IndexedRateSide = "buy" | "sell";
1684
1686
  /**
1685
1687
  * Full Uniswap V4 PoolKey. V4 pools cannot be discovered from a token pair alone.
1686
1688
  */
@@ -1708,10 +1710,10 @@ interface UniswapV4IntentQuoteOptions {
1708
1710
  * Parameters for `IntentGateway.quoteIntent`. The source and destination
1709
1711
  * chains come from the gateway instance itself.
1710
1712
  *
1711
- * Quotes default to `phantom_snapshot`. Pass `strategy: "uniswap_v4"` only to
1712
- * explicitly request a Uniswap quote. `tokenIn` and `tokenOut` are token
1713
- * addresses; the SDK resolves configured token metadata internally. Provide
1714
- * exactly one of `amountIn` or `amountOut`.
1713
+ * Quotes default to the aggregate pool's `indexed_rates`. Legacy Phantom
1714
+ * snapshots and Uniswap V4 remain available as explicit strategies. `tokenIn`
1715
+ * and `tokenOut` are token addresses; the SDK resolves configured token
1716
+ * metadata and decimals internally. Provide exactly one amount.
1715
1717
  */
1716
1718
  interface QuoteIntentParams {
1717
1719
  strategy?: IntentQuoteStrategy;
@@ -1753,6 +1755,19 @@ interface PhantomSnapshotIntentQuoteMetadata {
1753
1755
  /** Source gateway protocol fee already reflected in the returned quote amounts. */
1754
1756
  protocolFeeBps: bigint;
1755
1757
  }
1758
+ interface IndexedRateIntentQuoteMetadata {
1759
+ sourceChain: Chains;
1760
+ destinationChain: Chains;
1761
+ baseTokenSymbol: ConfiguredAssetSymbol;
1762
+ quoteTokenSymbol: ConfiguredAssetSymbol;
1763
+ /** Directional pool rate used for this order. */
1764
+ rateSide: IndexedRateSide;
1765
+ /** Quote-token units per one base token. */
1766
+ rate: string;
1767
+ rateUpdatedAt: Date;
1768
+ /** Source gateway protocol fee already reflected in the returned quote amounts. */
1769
+ protocolFeeBps: bigint;
1770
+ }
1756
1771
  /**
1757
1772
  * Quote data partners need before constructing an IntentGateway V2 order.
1758
1773
  *
@@ -1774,7 +1789,14 @@ interface PhantomSnapshotQuoteIntentResult {
1774
1789
  amountOut: bigint;
1775
1790
  quoteMetadata: PhantomSnapshotIntentQuoteMetadata;
1776
1791
  }
1777
- type QuoteIntentResult = UniswapV4QuoteIntentResult | PhantomSnapshotQuoteIntentResult;
1792
+ interface IndexedRateQuoteIntentResult {
1793
+ strategy: "indexed_rates";
1794
+ tradeType: IntentQuoteTradeType;
1795
+ amountIn: bigint;
1796
+ amountOut: bigint;
1797
+ quoteMetadata: IndexedRateIntentQuoteMetadata;
1798
+ }
1799
+ type QuoteIntentResult = IndexedRateQuoteIntentResult | UniswapV4QuoteIntentResult | PhantomSnapshotQuoteIntentResult;
1778
1800
  declare class UnsupportedIntentQuoteStrategyError extends Error {
1779
1801
  constructor(strategy: string);
1780
1802
  }
@@ -1793,14 +1815,26 @@ declare class PhantomSnapshotUnavailableError extends Error {
1793
1815
  declare class InvalidPhantomSnapshotError extends Error {
1794
1816
  constructor(commitment: HexString, reason: string);
1795
1817
  }
1818
+ declare class IndexedRateUnavailableError extends Error {
1819
+ constructor(params: {
1820
+ source?: string;
1821
+ destination?: string;
1822
+ tokenIn?: string;
1823
+ tokenOut?: string;
1824
+ side?: IndexedRateSide;
1825
+ });
1826
+ }
1827
+ declare class InvalidIndexedRateError extends Error {
1828
+ constructor(reason: string);
1829
+ }
1796
1830
 
1797
1831
  /**
1798
1832
  * High-level facade for the IntentGatewayV2 protocol.
1799
1833
  *
1800
1834
  * `IntentGateway` orchestrates the complete lifecycle of an intent-based
1801
1835
  * cross-chain swap:
1802
- * - **Quoting** — prices the order's input/output amounts via Phantom order
1803
- * snapshots by default, with Uniswap V4 available as an explicit strategy.
1836
+ * - **Quoting** — prices the order's input/output amounts from aggregate
1837
+ * indexed pool rates by default, with legacy quote strategies available explicitly.
1804
1838
  * - **Order placement** — encodes and yields `placeOrder` calldata; caller
1805
1839
  * signs and submits the transaction.
1806
1840
  * - **Order execution** — polls the Hyperbridge coprocessor for solver bids,
@@ -1881,21 +1915,21 @@ declare class IntentGateway {
1881
1915
  /**
1882
1916
  * Quotes an intent between this gateway's source and destination chains.
1883
1917
  *
1884
- * Uses the latest directional Phantom order price snapshot from the attached
1885
- * indexer by default. Pass `strategy: "uniswap_v4"` only when explicitly
1886
- * requesting a Uniswap quote. Provide exactly one of `amountIn` or `amountOut`.
1918
+ * Uses the indexer's latest aggregate directional pool rate by default. Pass
1919
+ * `strategy: "phantom_snapshot"` or `strategy: "uniswap_v4"` only when
1920
+ * explicitly requesting a legacy quote source. Provide exactly one of
1921
+ * `amountIn` or `amountOut`.
1887
1922
  *
1888
- * Both built-in strategies resolve their canonical market on Base,
1889
- * regardless of this gateway's destination chain. Returned
1923
+ * The gateway's source and destination chains resolve the configured order
1924
+ * tokens; the indexer supplies the depth-weighted pool rate. Returned
1890
1925
  * `amountIn`/`amountOut` already account for the gateway's protocol fee
1891
- * (`quoteMetadata.protocolFeeBps`), which the gateway deducts from order
1892
- * inputs; use the returned amounts directly when placing the order.
1926
+ * (`quoteMetadata.protocolFeeBps`), which the gateway deducts from order inputs.
1893
1927
  *
1894
1928
  * @param params - Token pair, amount, and optional strategy/pool overrides.
1895
1929
  * @returns The quoted amounts plus strategy-specific metadata.
1896
1930
  * @throws {UnsupportedIntentQuoteStrategyError} For unknown strategies.
1897
1931
  * @throws {UnsupportedIntentQuotePairError} When the selected strategy does not support the pair.
1898
- * @throws {PhantomSnapshotUnavailableError} When an eligible cNGN pair has no snapshot.
1932
+ * @throws {IndexedRateUnavailableError} When the requested direction has no indexed rate.
1899
1933
  */
1900
1934
  quoteIntent(params: QuoteIntentParams): Promise<QuoteIntentResult>;
1901
1935
  /**
@@ -1910,9 +1944,9 @@ declare class IntentGateway {
1910
1944
  */
1911
1945
  queryAvailableLiquidity(params: Pick<QuoteIntentParams, "tokenIn" | "tokenOut">): Promise<AvailableLiquidity | undefined>;
1912
1946
  /**
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.
1947
+ * Returns aggregate indexed pool buy and sell rates in less-valued quote-token
1948
+ * units without requiring token addresses. Symbols are matched
1949
+ * case-insensitively; chain IDs resolve configured token deployments.
1916
1950
  */
1917
1951
  queryBuyAndSellRates(params: QueryBuyAndSellRatesParams): Promise<BuyAndSellRates | undefined>;
1918
1952
  /**
@@ -1922,8 +1956,9 @@ declare class IntentGateway {
1922
1956
  * **Yield/receive protocol:**
1923
1957
  * 1. If `order.fees` is unset or zero, prices the fee on an internal copy
1924
1958
  * via {@link quoteOrderFees}: same-chain fees are twice the fill-gas
1925
- * estimate without a gas-price bump; cross-chain gas is priced 10% above
1926
- * the live price before attaching (fill gas + the settlement relayer fee)
1959
+ * estimate without a gas-price bump; cross-chain order fees originating on
1960
+ * Ethereum price gas 50% above the live price, while other source chains use
1961
+ * 10%, before attaching (fill gas + the settlement relayer fee)
1927
1962
  * with a further 5% buffer over the whole sum — strictly above the solver's
1928
1963
  * unpadded requirement. Direct solver estimates remain unbumped. The wei
1929
1964
  * cost used for the `value` field receives a 2% buffer.
@@ -2159,7 +2194,8 @@ declare class IntentGateway {
2159
2194
  * transaction (check the native balance).
2160
2195
  *
2161
2196
  * @param order - The order to quote. `order.fees` is ignored and not mutated.
2162
- * Gas prices used to derive cross-chain `fees` receive 10% SDK-only headroom.
2197
+ * Gas prices used to derive cross-chain `fees` receive 50% SDK-only headroom
2198
+ * when the source chain is Ethereum mainnet and 10% for other source chains.
2163
2199
  * Same-chain quotes and direct calls to {@link estimateFillOrder}, including
2164
2200
  * Simplex solver estimates, remain unbumped.
2165
2201
  *
@@ -6108,4 +6144,4 @@ declare function teleport(teleport_param: {
6108
6144
  extrinsics?: Array<SubmittableExtrinsic<"promise", ISubmittableResult>>;
6109
6145
  }): Promise<ReadableStream<HyperbridgeTxEvents>>;
6110
6146
 
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 };
6147
+ export { ADDRESS_ZERO, AssetTeleported, AvailableLiquidity, Bid, type BridgeParams, type BridgeStep, type BundlerGasEstimate, BundlerMethod, BuyAndSellRates, type CancelEvent, CancelOrderOptions, CancelQuote, ChainConfigService, Chains, ClientConfig, ConfiguredAssetSymbol, 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, type IndexedRateIntentQuoteMetadata, type IndexedRateQuoteIntentResult, type IndexedRateSide, IndexedRateUnavailableError, IndexerQueryClient, IntentGateway, type IntentGatewayContext, IntentOrderStatusUpdate, type IntentQuoteStrategy, type IntentQuoteTradeType, IntentsCoprocessor, InvalidIndexedRateError, 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 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-BFc6YnD3.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-BFc6YnD3.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 Chains, t as ConfiguredAssetSymbol, u as AvailableLiquidity, Q as QueryBuyAndSellRatesParams, B as BuyAndSellRates, v as IntentOrderStatusUpdate, w as SelectBidResult, x as ResumeIntentOrderOptions, y as CancelOrderOptions, z as CancelQuote, D as SubmitBidOptions, F as PackedUserOperation, J as FillerBid, K as Bid, L as EstimateFillOrderParams, M as FillOrderEstimate, N as OrderFeesQuote, U as ERC7821Call, V as OrderWithStatus, W as OrderStatus, X as TokenGatewayAssetTeleportedWithStatus, Y as TeleportStatus, Z as DecodedOrderPlacedLog, _ as DecodedPostRequestEvent, $ as DecodedPostResponseEvent } from './intents-helpers-BKj42imQ.js';
2
+ export { a0 as AllStatusKey, a1 as AssetTeleportedResponse, a2 as BidStorageEntry, a3 as BidSubmissionResult, a4 as BlockMetadata, a5 as BytesLikeHex, a6 as CHAINS_WITHOUT_VALID_UNTIL, a7 as CancelOptions, a8 as ChainConfig, a9 as ChainConfigData, aa as ConfiguredAssetSymbolInput, ab as Deployment, ac as DispatchGet, ad as DispatchInfo, ae as DispatchPost, af as Erc4626VaultConfigData, ag as ExecuteIntentOrderOptions, ah as ExecutionResult, ai as FILL_ORDER_V1_ABI, aj as FillOptions, ak as FillOptionsVersion, al as FillerConfig, am as GetRequestResponse, an as GetResponseByRequestIdResponse, ao as GetResponseStorageValues, ap as HostParams, aq as HyperClientStatus, ar as IBatchConsensusAndGetResponseMessage, as as IBatchConsensusAndPostRequestMessage, at as IConfig, au as IConsensusMessage, av as IGetRequestMessage, aw as IGetResponse, ax as IGetResponseMessage, ay as IHyperbridgeConfig, az as INCLUSION_TIMEOUT_MS, aA as IPostResponse, aB as IRequestMessage, aC as ISubstrateConfig, aD as ITimeoutPostRequestMessage, aE as IntentGatewayABI, aF as IntentGatewayParams, aG as IntentOrderStatus, aH as IntentOrderStatusKey, aI as IsmpRequest, aJ as LEGACY_FILL_OPTIONS_IMPLEMENTATIONS, aK as LiquiditySlice, aL as OrderResponse, aM as OrderStatusMetadata, aN as PHANTOM_QUOTE_HAIRCUT_BPS, aO as PaymentInfo, aP as PhantomBid, aQ as PhantomBidBatchResult, aR as PhantomBidDeclaration, aS as PhantomBidOutcome, aT as PhantomOrderEvent, aU as PhantomOrderLeg, aV as PhantomOrderPriceSnapshot, aW as PhantomOrderPriceSnapshotsResponse, aX as PhantomTimings, aY as PollPhantomOrdersOptions, aZ as PostRequestStatus, a_ as RequestBody, a$ as RequestCommitment, b0 as RequestKind, b1 as RequestResponse, b2 as RequestStatus, b3 as RequestStatusKey, b4 as SelectOptions, b5 as SigningAccount, b6 as StateMachineId, b7 as StateMachineResponse, b8 as StorageFacade, b9 as TimeoutStatus, ba as TimeoutStatusKey, bb as TokenGatewayAssetTeleportedResponse, bc as TokenInfo, bd as TokenPrice, be as TokenPricesResponse, bf as UNISWAP_QUOTE_HAIRCUT_BPS, bg as UniswapV4PoolConfigData, bh as applyPhantomQuoteHaircut, bi as applyUniswapQuoteHaircut, bj as chainConfigs, bk as convertCodecToIGetRequest, bl as convertCodecToIProof, bm as convertIGetRequestToCodec, bn as convertIProofToCodec, bo as convertStateIdToStateMachineId, bp as convertStateMachineEnumToString, bq as convertStateMachineIdToEnum, br as decodeAcceptedSourceChains, bs as decodeERC7821ExecuteBatch, bt as decodeFillOrder, bu as decodePhantomBidDeclaration, bv as decodeUserOpScale, bw as deriveHttpUrl, bx as encodeAcceptedSourceChains, by as encodeERC7821ExecuteBatch, bz as encodeFillOrder, bA as encodeISMPMessage, bB as encodePhantomBidDeclaration, bC as encodeUserOpScale, bD as getChainId, bE as getConfigByStateMachineId, bF as getFillOptionsVersion, bG as getViemChain, bH as hyperbridgeAddress, bI as pharosAtlantic, bJ as pharosMainnet, bK as polkadotAssetHubPaseo, bL as polkadotHubMainnet, bM as poolSlug, bN as resetFillOptionsVersionCache, bO as sortPoolSymbols, bP as tronChainIds, bQ as tronNile } from './intents-helpers-BKj42imQ.js';
3
3
  import { ConsolaInstance } from 'consola';
4
4
  import { GraphQLClient } from 'graphql-request';
5
5
  import { PublicClient, TransactionReceipt, Hex, Address } from 'viem';
@@ -12,6 +12,7 @@ export { Account as ViemAccount } from 'viem/accounts';
12
12
  import 'decimal.js';
13
13
  import 'viem/chains';
14
14
  import '@polkadot/keyring/types';
15
+ import '@polkadot/types/interfaces';
15
16
 
16
17
  /**
17
18
  * The default address used as fallback when no address is provided.
@@ -1679,8 +1680,9 @@ interface IntentGatewayContext {
1679
1680
  swap: Swap;
1680
1681
  }
1681
1682
 
1682
- type IntentQuoteStrategy = "uniswap_v4" | "phantom_snapshot";
1683
+ type IntentQuoteStrategy = "indexed_rates" | "uniswap_v4" | "phantom_snapshot";
1683
1684
  type IntentQuoteTradeType = "EXACT_INPUT" | "EXACT_OUTPUT";
1685
+ type IndexedRateSide = "buy" | "sell";
1684
1686
  /**
1685
1687
  * Full Uniswap V4 PoolKey. V4 pools cannot be discovered from a token pair alone.
1686
1688
  */
@@ -1708,10 +1710,10 @@ interface UniswapV4IntentQuoteOptions {
1708
1710
  * Parameters for `IntentGateway.quoteIntent`. The source and destination
1709
1711
  * chains come from the gateway instance itself.
1710
1712
  *
1711
- * Quotes default to `phantom_snapshot`. Pass `strategy: "uniswap_v4"` only to
1712
- * explicitly request a Uniswap quote. `tokenIn` and `tokenOut` are token
1713
- * addresses; the SDK resolves configured token metadata internally. Provide
1714
- * exactly one of `amountIn` or `amountOut`.
1713
+ * Quotes default to the aggregate pool's `indexed_rates`. Legacy Phantom
1714
+ * snapshots and Uniswap V4 remain available as explicit strategies. `tokenIn`
1715
+ * and `tokenOut` are token addresses; the SDK resolves configured token
1716
+ * metadata and decimals internally. Provide exactly one amount.
1715
1717
  */
1716
1718
  interface QuoteIntentParams {
1717
1719
  strategy?: IntentQuoteStrategy;
@@ -1753,6 +1755,19 @@ interface PhantomSnapshotIntentQuoteMetadata {
1753
1755
  /** Source gateway protocol fee already reflected in the returned quote amounts. */
1754
1756
  protocolFeeBps: bigint;
1755
1757
  }
1758
+ interface IndexedRateIntentQuoteMetadata {
1759
+ sourceChain: Chains;
1760
+ destinationChain: Chains;
1761
+ baseTokenSymbol: ConfiguredAssetSymbol;
1762
+ quoteTokenSymbol: ConfiguredAssetSymbol;
1763
+ /** Directional pool rate used for this order. */
1764
+ rateSide: IndexedRateSide;
1765
+ /** Quote-token units per one base token. */
1766
+ rate: string;
1767
+ rateUpdatedAt: Date;
1768
+ /** Source gateway protocol fee already reflected in the returned quote amounts. */
1769
+ protocolFeeBps: bigint;
1770
+ }
1756
1771
  /**
1757
1772
  * Quote data partners need before constructing an IntentGateway V2 order.
1758
1773
  *
@@ -1774,7 +1789,14 @@ interface PhantomSnapshotQuoteIntentResult {
1774
1789
  amountOut: bigint;
1775
1790
  quoteMetadata: PhantomSnapshotIntentQuoteMetadata;
1776
1791
  }
1777
- type QuoteIntentResult = UniswapV4QuoteIntentResult | PhantomSnapshotQuoteIntentResult;
1792
+ interface IndexedRateQuoteIntentResult {
1793
+ strategy: "indexed_rates";
1794
+ tradeType: IntentQuoteTradeType;
1795
+ amountIn: bigint;
1796
+ amountOut: bigint;
1797
+ quoteMetadata: IndexedRateIntentQuoteMetadata;
1798
+ }
1799
+ type QuoteIntentResult = IndexedRateQuoteIntentResult | UniswapV4QuoteIntentResult | PhantomSnapshotQuoteIntentResult;
1778
1800
  declare class UnsupportedIntentQuoteStrategyError extends Error {
1779
1801
  constructor(strategy: string);
1780
1802
  }
@@ -1793,14 +1815,26 @@ declare class PhantomSnapshotUnavailableError extends Error {
1793
1815
  declare class InvalidPhantomSnapshotError extends Error {
1794
1816
  constructor(commitment: HexString, reason: string);
1795
1817
  }
1818
+ declare class IndexedRateUnavailableError extends Error {
1819
+ constructor(params: {
1820
+ source?: string;
1821
+ destination?: string;
1822
+ tokenIn?: string;
1823
+ tokenOut?: string;
1824
+ side?: IndexedRateSide;
1825
+ });
1826
+ }
1827
+ declare class InvalidIndexedRateError extends Error {
1828
+ constructor(reason: string);
1829
+ }
1796
1830
 
1797
1831
  /**
1798
1832
  * High-level facade for the IntentGatewayV2 protocol.
1799
1833
  *
1800
1834
  * `IntentGateway` orchestrates the complete lifecycle of an intent-based
1801
1835
  * cross-chain swap:
1802
- * - **Quoting** — prices the order's input/output amounts via Phantom order
1803
- * snapshots by default, with Uniswap V4 available as an explicit strategy.
1836
+ * - **Quoting** — prices the order's input/output amounts from aggregate
1837
+ * indexed pool rates by default, with legacy quote strategies available explicitly.
1804
1838
  * - **Order placement** — encodes and yields `placeOrder` calldata; caller
1805
1839
  * signs and submits the transaction.
1806
1840
  * - **Order execution** — polls the Hyperbridge coprocessor for solver bids,
@@ -1881,21 +1915,21 @@ declare class IntentGateway {
1881
1915
  /**
1882
1916
  * Quotes an intent between this gateway's source and destination chains.
1883
1917
  *
1884
- * Uses the latest directional Phantom order price snapshot from the attached
1885
- * indexer by default. Pass `strategy: "uniswap_v4"` only when explicitly
1886
- * requesting a Uniswap quote. Provide exactly one of `amountIn` or `amountOut`.
1918
+ * Uses the indexer's latest aggregate directional pool rate by default. Pass
1919
+ * `strategy: "phantom_snapshot"` or `strategy: "uniswap_v4"` only when
1920
+ * explicitly requesting a legacy quote source. Provide exactly one of
1921
+ * `amountIn` or `amountOut`.
1887
1922
  *
1888
- * Both built-in strategies resolve their canonical market on Base,
1889
- * regardless of this gateway's destination chain. Returned
1923
+ * The gateway's source and destination chains resolve the configured order
1924
+ * tokens; the indexer supplies the depth-weighted pool rate. Returned
1890
1925
  * `amountIn`/`amountOut` already account for the gateway's protocol fee
1891
- * (`quoteMetadata.protocolFeeBps`), which the gateway deducts from order
1892
- * inputs; use the returned amounts directly when placing the order.
1926
+ * (`quoteMetadata.protocolFeeBps`), which the gateway deducts from order inputs.
1893
1927
  *
1894
1928
  * @param params - Token pair, amount, and optional strategy/pool overrides.
1895
1929
  * @returns The quoted amounts plus strategy-specific metadata.
1896
1930
  * @throws {UnsupportedIntentQuoteStrategyError} For unknown strategies.
1897
1931
  * @throws {UnsupportedIntentQuotePairError} When the selected strategy does not support the pair.
1898
- * @throws {PhantomSnapshotUnavailableError} When an eligible cNGN pair has no snapshot.
1932
+ * @throws {IndexedRateUnavailableError} When the requested direction has no indexed rate.
1899
1933
  */
1900
1934
  quoteIntent(params: QuoteIntentParams): Promise<QuoteIntentResult>;
1901
1935
  /**
@@ -1910,9 +1944,9 @@ declare class IntentGateway {
1910
1944
  */
1911
1945
  queryAvailableLiquidity(params: Pick<QuoteIntentParams, "tokenIn" | "tokenOut">): Promise<AvailableLiquidity | undefined>;
1912
1946
  /**
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.
1947
+ * Returns aggregate indexed pool buy and sell rates in less-valued quote-token
1948
+ * units without requiring token addresses. Symbols are matched
1949
+ * case-insensitively; chain IDs resolve configured token deployments.
1916
1950
  */
1917
1951
  queryBuyAndSellRates(params: QueryBuyAndSellRatesParams): Promise<BuyAndSellRates | undefined>;
1918
1952
  /**
@@ -1922,8 +1956,9 @@ declare class IntentGateway {
1922
1956
  * **Yield/receive protocol:**
1923
1957
  * 1. If `order.fees` is unset or zero, prices the fee on an internal copy
1924
1958
  * via {@link quoteOrderFees}: same-chain fees are twice the fill-gas
1925
- * estimate without a gas-price bump; cross-chain gas is priced 10% above
1926
- * the live price before attaching (fill gas + the settlement relayer fee)
1959
+ * estimate without a gas-price bump; cross-chain order fees originating on
1960
+ * Ethereum price gas 50% above the live price, while other source chains use
1961
+ * 10%, before attaching (fill gas + the settlement relayer fee)
1927
1962
  * with a further 5% buffer over the whole sum — strictly above the solver's
1928
1963
  * unpadded requirement. Direct solver estimates remain unbumped. The wei
1929
1964
  * cost used for the `value` field receives a 2% buffer.
@@ -2159,7 +2194,8 @@ declare class IntentGateway {
2159
2194
  * transaction (check the native balance).
2160
2195
  *
2161
2196
  * @param order - The order to quote. `order.fees` is ignored and not mutated.
2162
- * Gas prices used to derive cross-chain `fees` receive 10% SDK-only headroom.
2197
+ * Gas prices used to derive cross-chain `fees` receive 50% SDK-only headroom
2198
+ * when the source chain is Ethereum mainnet and 10% for other source chains.
2163
2199
  * Same-chain quotes and direct calls to {@link estimateFillOrder}, including
2164
2200
  * Simplex solver estimates, remain unbumped.
2165
2201
  *
@@ -6108,4 +6144,4 @@ declare function teleport(teleport_param: {
6108
6144
  extrinsics?: Array<SubmittableExtrinsic<"promise", ISubmittableResult>>;
6109
6145
  }): Promise<ReadableStream<HyperbridgeTxEvents>>;
6110
6146
 
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 };
6147
+ export { ADDRESS_ZERO, AssetTeleported, AvailableLiquidity, Bid, type BridgeParams, type BridgeStep, type BundlerGasEstimate, BundlerMethod, BuyAndSellRates, type CancelEvent, CancelOrderOptions, CancelQuote, ChainConfigService, Chains, ClientConfig, ConfiguredAssetSymbol, 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, type IndexedRateIntentQuoteMetadata, type IndexedRateQuoteIntentResult, type IndexedRateSide, IndexedRateUnavailableError, IndexerQueryClient, IntentGateway, type IntentGatewayContext, IntentOrderStatusUpdate, type IntentQuoteStrategy, type IntentQuoteTradeType, IntentsCoprocessor, InvalidIndexedRateError, 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 };