@hyperbridge/sdk 2.4.0 → 2.4.2

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 IntentOrderStatusUpdate, t as SelectBidResult, u as ResumeIntentOrderOptions, v as CancelOrderOptions, w as CancelQuote, x as SubmitBidOptions, y as PackedUserOperation, F as FillerBid, B as Bid, z as EstimateFillOrderParams, D as FillOrderEstimate, J as ERC7821Call, K as OrderWithStatus, L as OrderStatus, M as TokenGatewayAssetTeleportedWithStatus, N as TeleportStatus, Q as DecodedOrderPlacedLog, U as DecodedPostRequestEvent, V as DecodedPostResponseEvent } from './IntentGatewayV2-SB851bZs.cjs';
2
- export { W as AllStatusKey, X as AssetTeleportedResponse, Y as BidStorageEntry, Z as BidSubmissionResult, _ as BlockMetadata, $ as BytesLikeHex, a0 as CancelOptions, a1 as ChainConfig, a2 as ChainConfigData, a3 as Chains, a4 as ConfiguredAssetSymbol, a5 as Deployment, a6 as DispatchGet, a7 as DispatchInfo, a8 as DispatchPost, a9 as ExecuteIntentOrderOptions, aa as ExecutionResult, ab as FillOptions, ac as FillerConfig, ad as GetRequestResponse, ae as GetResponseByRequestIdResponse, af as GetResponseStorageValues, ag as HostParams, ah as HyperClientStatus, ai as IBatchConsensusAndGetResponseMessage, aj as IBatchConsensusAndPostRequestMessage, ak as IConfig, al as IConsensusMessage, am as IGetRequestMessage, an as IGetResponse, ao as IGetResponseMessage, ap as IHyperbridgeConfig, aq as IPostResponse, ar as IRequestMessage, as as ISubstrateConfig, at as ITimeoutPostRequestMessage, au as IntentGatewayABI, av as IntentGatewayParams, aw as IntentOrderStatus, ax as IntentOrderStatusKey, ay as IsmpRequest, az as OrderResponse, aA as OrderStatusMetadata, aB as PaymentInfo, aC as PhantomOrderEvent, aD as PostRequestStatus, aE as RequestBody, aF as RequestCommitment, aG as RequestKind, aH as RequestResponse, aI as RequestStatus, aJ as RequestStatusKey, aK as SelectOptions, aL as SigningAccount, aM as StateMachineId, aN as StateMachineResponse, aO as StorageFacade, aP as TimeoutStatus, aQ as TimeoutStatusKey, aR as TokenGatewayAssetTeleportedResponse, aS as TokenInfo, aT as TokenPrice, aU as TokenPricesResponse, aV as UniswapV4PoolConfigData, aW as chainConfigs, aX as convertCodecToIGetRequest, aY as convertCodecToIProof, aZ as convertIGetRequestToCodec, a_ as convertIProofToCodec, a$ as convertStateIdToStateMachineId, b0 as convertStateMachineEnumToString, b1 as convertStateMachineIdToEnum, b2 as decodeERC7821ExecuteBatch, b3 as decodeUserOpScale, b4 as encodeERC7821ExecuteBatch, b5 as encodeISMPMessage, b6 as encodeUserOpScale, b7 as getChainId, b8 as getConfigByStateMachineId, b9 as getViemChain, ba as hyperbridgeAddress, bb as pharosAtlantic, bc as pharosMainnet, bd as polkadotAssetHubPaseo, be as polkadotHubMainnet, bf as tronChainIds, bg as tronNile } from './IntentGatewayV2-SB851bZs.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 IntentOrderStatusUpdate, t as SelectBidResult, u as ResumeIntentOrderOptions, v as CancelOrderOptions, w as CancelQuote, x as SubmitBidOptions, y as PackedUserOperation, F as FillerBid, B as Bid, z as EstimateFillOrderParams, D as FillOrderEstimate, J as ERC7821Call, K as OrderWithStatus, L as OrderStatus, M as TokenGatewayAssetTeleportedWithStatus, N as TeleportStatus, Q as DecodedOrderPlacedLog, U as DecodedPostRequestEvent, V as DecodedPostResponseEvent } from './IntentGatewayV2-PzbhFn_7.cjs';
2
+ export { W as AllStatusKey, X as AssetTeleportedResponse, Y as BidStorageEntry, Z as BidSubmissionResult, _ as BlockMetadata, $ as BytesLikeHex, a0 as CancelOptions, a1 as ChainConfig, a2 as ChainConfigData, a3 as Chains, a4 as ConfiguredAssetSymbol, a5 as Deployment, a6 as DispatchGet, a7 as DispatchInfo, a8 as DispatchPost, a9 as ExecuteIntentOrderOptions, aa as ExecutionResult, ab as FillOptions, ac as FillerConfig, ad as GetRequestResponse, ae as GetResponseByRequestIdResponse, af as GetResponseStorageValues, ag as HostParams, ah as HyperClientStatus, ai as IBatchConsensusAndGetResponseMessage, aj as IBatchConsensusAndPostRequestMessage, ak as IConfig, al as IConsensusMessage, am as IGetRequestMessage, an as IGetResponse, ao as IGetResponseMessage, ap as IHyperbridgeConfig, aq as IPostResponse, ar as IRequestMessage, as as ISubstrateConfig, at as ITimeoutPostRequestMessage, au as IntentGatewayABI, av as IntentGatewayParams, aw as IntentOrderStatus, ax as IntentOrderStatusKey, ay as IsmpRequest, az as OrderResponse, aA as OrderStatusMetadata, aB as PaymentInfo, aC as PhantomOrderEvent, aD as PhantomOrderPriceSnapshot, aE as PhantomOrderPriceSnapshotsResponse, aF as PostRequestStatus, aG as RequestBody, aH as RequestCommitment, aI as RequestKind, aJ as RequestResponse, aK as RequestStatus, aL as RequestStatusKey, aM as SelectOptions, aN as SigningAccount, aO as StateMachineId, aP as StateMachineResponse, aQ as StorageFacade, aR as TimeoutStatus, aS as TimeoutStatusKey, aT as TokenGatewayAssetTeleportedResponse, aU as TokenInfo, aV as TokenPrice, aW as TokenPricesResponse, aX as UniswapV4PoolConfigData, aY as chainConfigs, aZ as convertCodecToIGetRequest, a_ as convertCodecToIProof, a$ as convertIGetRequestToCodec, b0 as convertIProofToCodec, b1 as convertStateIdToStateMachineId, b2 as convertStateMachineEnumToString, b3 as convertStateMachineIdToEnum, b4 as decodeERC7821ExecuteBatch, b5 as decodeUserOpScale, b6 as encodeERC7821ExecuteBatch, b7 as encodeISMPMessage, b8 as encodeUserOpScale, b9 as getChainId, ba as getConfigByStateMachineId, bb as getViemChain, bc as hyperbridgeAddress, bd as pharosAtlantic, be as pharosMainnet, bf as polkadotAssetHubPaseo, bg as polkadotHubMainnet, bh as tronChainIds, bi as tronNile } from './IntentGatewayV2-PzbhFn_7.cjs';
3
3
  import { ConsolaInstance } from 'consola';
4
4
  import { GraphQLClient } from 'graphql-request';
5
5
  import { PublicClient, TransactionReceipt, Hex, Address } from 'viem';
@@ -1675,19 +1675,8 @@ interface IntentGatewayContext {
1675
1675
  swap: Swap;
1676
1676
  }
1677
1677
 
1678
- type IntentQuoteStrategy = "uniswap_v4";
1678
+ type IntentQuoteStrategy = "uniswap_v4" | "phantom_snapshot";
1679
1679
  type IntentQuoteTradeType = "EXACT_INPUT" | "EXACT_OUTPUT";
1680
- /**
1681
- * Token metadata required by intent quote strategies.
1682
- */
1683
- interface IntentQuoteToken {
1684
- /** Token contract address on the user/source side. */
1685
- address: HexString;
1686
- /** Token decimals for raw amount formatting by the caller. */
1687
- decimals: number;
1688
- /** Optional token symbol used only to match SDK-configured destination pools. */
1689
- symbol?: string;
1690
- }
1691
1680
  /**
1692
1681
  * Full Uniswap V4 PoolKey. V4 pools cannot be discovered from a token pair alone.
1693
1682
  */
@@ -1704,7 +1693,7 @@ interface UniswapV4IntentQuoteOptions {
1704
1693
  quoterAddress?: HexString;
1705
1694
  /**
1706
1695
  * Destination-side address of the input currency. Defaults to
1707
- * `tokenIn.address`, which only works for same-chain quotes; pass this
1696
+ * `tokenIn`, which only works for same-chain quotes; pass this
1708
1697
  * explicitly when source and destination chains differ. Must equal
1709
1698
  * `currency0` or `currency1`.
1710
1699
  */
@@ -1715,13 +1704,17 @@ interface UniswapV4IntentQuoteOptions {
1715
1704
  * Parameters for `IntentGateway.quoteIntent`. The source and destination
1716
1705
  * chains come from the gateway instance itself.
1717
1706
  *
1718
- * `strategy` defaults to `uniswap_v4`, which is currently the only supported
1719
- * strategy. Provide exactly one of `amountIn` or `amountOut`.
1707
+ * Quotes default to `phantom_snapshot`. Pass `strategy: "uniswap_v4"` only to
1708
+ * explicitly request a Uniswap quote. `tokenIn` and `tokenOut` are token
1709
+ * addresses; the SDK resolves configured token metadata internally. Provide
1710
+ * exactly one of `amountIn` or `amountOut`.
1720
1711
  */
1721
1712
  interface QuoteIntentParams {
1722
1713
  strategy?: IntentQuoteStrategy;
1723
- tokenIn: IntentQuoteToken;
1724
- tokenOut: IntentQuoteToken;
1714
+ /** Token address on the source chain. */
1715
+ tokenIn: HexString;
1716
+ /** Token address on the destination chain. */
1717
+ tokenOut: HexString;
1725
1718
  amountIn?: bigint;
1726
1719
  amountOut?: bigint;
1727
1720
  uniswapV4?: UniswapV4IntentQuoteOptions;
@@ -1738,21 +1731,46 @@ interface UniswapV4IntentQuoteMetadata {
1738
1731
  */
1739
1732
  protocolFeeBps: bigint;
1740
1733
  }
1734
+ interface PhantomSnapshotIntentQuoteMetadata {
1735
+ /** Canonical chain whose directional Phantom pair addresses identify the feed. */
1736
+ quoteChain: string;
1737
+ /** Phantom order whose bids produced this snapshot. */
1738
+ commitment: HexString;
1739
+ tokenA: HexString;
1740
+ tokenB: HexString;
1741
+ /** Benchmark input and liquidity-weighted median output, both in raw token units. */
1742
+ standardAmount: bigint;
1743
+ medianPrice: bigint;
1744
+ lowestPrice?: bigint;
1745
+ highestPrice?: bigint;
1746
+ blockNumber: bigint;
1747
+ snapshotTime: Date;
1748
+ bidCount: number;
1749
+ /** Source gateway protocol fee already reflected in the returned quote amounts. */
1750
+ protocolFeeBps: bigint;
1751
+ }
1741
1752
  /**
1742
1753
  * Quote data partners need before constructing an IntentGateway V2 order.
1743
1754
  *
1744
1755
  * `amountIn` and `amountOut` already account for the IntentGateway protocol
1745
1756
  * fee that the gateway deducts from order inputs (see `quoteMetadata`). No
1746
- * further fee adjustment is required before placing the order; apply only your
1747
- * own slippage tolerance.
1757
+ * further fee or slippage adjustment is required before placing the order.
1748
1758
  */
1749
- interface QuoteIntentResult {
1759
+ interface UniswapV4QuoteIntentResult {
1750
1760
  strategy: "uniswap_v4";
1751
1761
  tradeType: IntentQuoteTradeType;
1752
1762
  amountIn: bigint;
1753
1763
  amountOut: bigint;
1754
1764
  quoteMetadata: UniswapV4IntentQuoteMetadata;
1755
1765
  }
1766
+ interface PhantomSnapshotQuoteIntentResult {
1767
+ strategy: "phantom_snapshot";
1768
+ tradeType: IntentQuoteTradeType;
1769
+ amountIn: bigint;
1770
+ amountOut: bigint;
1771
+ quoteMetadata: PhantomSnapshotIntentQuoteMetadata;
1772
+ }
1773
+ type QuoteIntentResult = UniswapV4QuoteIntentResult | PhantomSnapshotQuoteIntentResult;
1756
1774
  declare class UnsupportedIntentQuoteStrategyError extends Error {
1757
1775
  constructor(strategy: string);
1758
1776
  }
@@ -1760,18 +1778,25 @@ declare class UnsupportedIntentQuotePairError extends Error {
1760
1778
  constructor(params: {
1761
1779
  source: string;
1762
1780
  destination: string;
1763
- tokenIn: IntentQuoteToken;
1764
- tokenOut: IntentQuoteToken;
1781
+ tokenIn: HexString;
1782
+ tokenOut: HexString;
1783
+ quoteSource?: string;
1765
1784
  });
1766
1785
  }
1786
+ declare class PhantomSnapshotUnavailableError extends Error {
1787
+ constructor(tokenA: HexString, tokenB: HexString);
1788
+ }
1789
+ declare class InvalidPhantomSnapshotError extends Error {
1790
+ constructor(commitment: HexString, reason: string);
1791
+ }
1767
1792
 
1768
1793
  /**
1769
1794
  * High-level facade for the IntentGatewayV2 protocol.
1770
1795
  *
1771
1796
  * `IntentGateway` orchestrates the complete lifecycle of an intent-based
1772
1797
  * cross-chain swap:
1773
- * - **Quoting** — prices the order's input/output amounts via the configured
1774
- * quote strategies (currently Uniswap V4) before order construction.
1798
+ * - **Quoting** — prices the order's input/output amounts via Phantom order
1799
+ * snapshots by default, with Uniswap V4 available as an explicit strategy.
1775
1800
  * - **Order placement** — encodes and yields `placeOrder` calldata; caller
1776
1801
  * signs and submits the transaction.
1777
1802
  * - **Order execution** — polls the Hyperbridge coprocessor for solver bids,
@@ -1852,19 +1877,21 @@ declare class IntentGateway {
1852
1877
  /**
1853
1878
  * Quotes an intent between this gateway's source and destination chains.
1854
1879
  *
1855
- * `strategy` defaults to `uniswap_v4`, currently the only supported
1856
- * strategy. Provide exactly one of `amountIn` or `amountOut`.
1880
+ * Uses the latest directional Phantom order price snapshot from the attached
1881
+ * indexer by default. Pass `strategy: "uniswap_v4"` only when explicitly
1882
+ * requesting a Uniswap quote. Provide exactly one of `amountIn` or `amountOut`.
1857
1883
  *
1858
- * The Uniswap quote strategy always prices against the configured Base
1859
- * pool, regardless of this gateway's destination chain. Returned
1884
+ * Both built-in strategies resolve their canonical market on Base,
1885
+ * regardless of this gateway's destination chain. Returned
1860
1886
  * `amountIn`/`amountOut` already account for the gateway's protocol fee
1861
1887
  * (`quoteMetadata.protocolFeeBps`), which the gateway deducts from order
1862
- * inputs; apply only your own slippage tolerance before placing the order.
1888
+ * inputs; use the returned amounts directly when placing the order.
1863
1889
  *
1864
1890
  * @param params - Token pair, amount, and optional strategy/pool overrides.
1865
1891
  * @returns The quoted amounts plus strategy-specific metadata.
1866
1892
  * @throws {UnsupportedIntentQuoteStrategyError} For unknown strategies.
1867
- * @throws {UnsupportedIntentQuotePairError} When no pool is configured for the pair.
1893
+ * @throws {UnsupportedIntentQuotePairError} When the selected strategy does not support the pair.
1894
+ * @throws {PhantomSnapshotUnavailableError} When an eligible cNGN pair has no snapshot.
1868
1895
  */
1869
1896
  quoteIntent(params: QuoteIntentParams): Promise<QuoteIntentResult>;
1870
1897
  /**
@@ -1872,8 +1899,10 @@ declare class IntentGateway {
1872
1899
  * placement, fee estimation, bid collection, and execution.
1873
1900
  *
1874
1901
  * **Yield/receive protocol:**
1875
- * 1. If `order.fees` is unset or zero, estimates gas and sets `order.fees`
1876
- * with a 1% buffer and the wei cost with a 2% buffer for the `value` field.
1902
+ * 1. If `order.fees` is unset or zero, estimates gas and sets same-chain
1903
+ * `order.fees` to twice the estimate. Cross-chain orders retain a 1% buffer
1904
+ * and include an additional 600k-gas fee uplift, while the wei cost used for
1905
+ * the `value` field receives a 2% buffer.
1877
1906
  * 2. Yields `AWAITING_PLACE_ORDER` with `{ to, data, value, sessionPrivateKey }`.
1878
1907
  * The caller must sign the transaction and pass it back via `gen.next(signedTx)`.
1879
1908
  * 3. Yields `ORDER_PLACED` with the finalised order and transaction hash once
@@ -5974,4 +6003,4 @@ declare function teleport(teleport_param: {
5974
6003
  extrinsics?: Array<SubmittableExtrinsic<"promise", ISubmittableResult>>;
5975
6004
  }): Promise<ReadableStream<HyperbridgeTxEvents>>;
5976
6005
 
5977
- export { ADDRESS_ZERO, AssetTeleported, 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 IntentQuoteToken, type IntentQuoteTradeType, IntentsCoprocessor, IsmpClient, MOCK_ADDRESS, ORDER_V2_PARAM_TYPE, Order, OrderStatus, OrderStatusChecker, OrderWithStatus, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, PackedUserOperation, type Params, 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, 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, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, parseStateMachineId, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, requestCommitmentKey, responseCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract };
6006
+ export { ADDRESS_ZERO, AssetTeleported, 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, 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, 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 IntentOrderStatusUpdate, t as SelectBidResult, u as ResumeIntentOrderOptions, v as CancelOrderOptions, w as CancelQuote, x as SubmitBidOptions, y as PackedUserOperation, F as FillerBid, B as Bid, z as EstimateFillOrderParams, D as FillOrderEstimate, J as ERC7821Call, K as OrderWithStatus, L as OrderStatus, M as TokenGatewayAssetTeleportedWithStatus, N as TeleportStatus, Q as DecodedOrderPlacedLog, U as DecodedPostRequestEvent, V as DecodedPostResponseEvent } from './IntentGatewayV2-SB851bZs.js';
2
- export { W as AllStatusKey, X as AssetTeleportedResponse, Y as BidStorageEntry, Z as BidSubmissionResult, _ as BlockMetadata, $ as BytesLikeHex, a0 as CancelOptions, a1 as ChainConfig, a2 as ChainConfigData, a3 as Chains, a4 as ConfiguredAssetSymbol, a5 as Deployment, a6 as DispatchGet, a7 as DispatchInfo, a8 as DispatchPost, a9 as ExecuteIntentOrderOptions, aa as ExecutionResult, ab as FillOptions, ac as FillerConfig, ad as GetRequestResponse, ae as GetResponseByRequestIdResponse, af as GetResponseStorageValues, ag as HostParams, ah as HyperClientStatus, ai as IBatchConsensusAndGetResponseMessage, aj as IBatchConsensusAndPostRequestMessage, ak as IConfig, al as IConsensusMessage, am as IGetRequestMessage, an as IGetResponse, ao as IGetResponseMessage, ap as IHyperbridgeConfig, aq as IPostResponse, ar as IRequestMessage, as as ISubstrateConfig, at as ITimeoutPostRequestMessage, au as IntentGatewayABI, av as IntentGatewayParams, aw as IntentOrderStatus, ax as IntentOrderStatusKey, ay as IsmpRequest, az as OrderResponse, aA as OrderStatusMetadata, aB as PaymentInfo, aC as PhantomOrderEvent, aD as PostRequestStatus, aE as RequestBody, aF as RequestCommitment, aG as RequestKind, aH as RequestResponse, aI as RequestStatus, aJ as RequestStatusKey, aK as SelectOptions, aL as SigningAccount, aM as StateMachineId, aN as StateMachineResponse, aO as StorageFacade, aP as TimeoutStatus, aQ as TimeoutStatusKey, aR as TokenGatewayAssetTeleportedResponse, aS as TokenInfo, aT as TokenPrice, aU as TokenPricesResponse, aV as UniswapV4PoolConfigData, aW as chainConfigs, aX as convertCodecToIGetRequest, aY as convertCodecToIProof, aZ as convertIGetRequestToCodec, a_ as convertIProofToCodec, a$ as convertStateIdToStateMachineId, b0 as convertStateMachineEnumToString, b1 as convertStateMachineIdToEnum, b2 as decodeERC7821ExecuteBatch, b3 as decodeUserOpScale, b4 as encodeERC7821ExecuteBatch, b5 as encodeISMPMessage, b6 as encodeUserOpScale, b7 as getChainId, b8 as getConfigByStateMachineId, b9 as getViemChain, ba as hyperbridgeAddress, bb as pharosAtlantic, bc as pharosMainnet, bd as polkadotAssetHubPaseo, be as polkadotHubMainnet, bf as tronChainIds, bg as tronNile } from './IntentGatewayV2-SB851bZs.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 IntentOrderStatusUpdate, t as SelectBidResult, u as ResumeIntentOrderOptions, v as CancelOrderOptions, w as CancelQuote, x as SubmitBidOptions, y as PackedUserOperation, F as FillerBid, B as Bid, z as EstimateFillOrderParams, D as FillOrderEstimate, J as ERC7821Call, K as OrderWithStatus, L as OrderStatus, M as TokenGatewayAssetTeleportedWithStatus, N as TeleportStatus, Q as DecodedOrderPlacedLog, U as DecodedPostRequestEvent, V as DecodedPostResponseEvent } from './IntentGatewayV2-PzbhFn_7.js';
2
+ export { W as AllStatusKey, X as AssetTeleportedResponse, Y as BidStorageEntry, Z as BidSubmissionResult, _ as BlockMetadata, $ as BytesLikeHex, a0 as CancelOptions, a1 as ChainConfig, a2 as ChainConfigData, a3 as Chains, a4 as ConfiguredAssetSymbol, a5 as Deployment, a6 as DispatchGet, a7 as DispatchInfo, a8 as DispatchPost, a9 as ExecuteIntentOrderOptions, aa as ExecutionResult, ab as FillOptions, ac as FillerConfig, ad as GetRequestResponse, ae as GetResponseByRequestIdResponse, af as GetResponseStorageValues, ag as HostParams, ah as HyperClientStatus, ai as IBatchConsensusAndGetResponseMessage, aj as IBatchConsensusAndPostRequestMessage, ak as IConfig, al as IConsensusMessage, am as IGetRequestMessage, an as IGetResponse, ao as IGetResponseMessage, ap as IHyperbridgeConfig, aq as IPostResponse, ar as IRequestMessage, as as ISubstrateConfig, at as ITimeoutPostRequestMessage, au as IntentGatewayABI, av as IntentGatewayParams, aw as IntentOrderStatus, ax as IntentOrderStatusKey, ay as IsmpRequest, az as OrderResponse, aA as OrderStatusMetadata, aB as PaymentInfo, aC as PhantomOrderEvent, aD as PhantomOrderPriceSnapshot, aE as PhantomOrderPriceSnapshotsResponse, aF as PostRequestStatus, aG as RequestBody, aH as RequestCommitment, aI as RequestKind, aJ as RequestResponse, aK as RequestStatus, aL as RequestStatusKey, aM as SelectOptions, aN as SigningAccount, aO as StateMachineId, aP as StateMachineResponse, aQ as StorageFacade, aR as TimeoutStatus, aS as TimeoutStatusKey, aT as TokenGatewayAssetTeleportedResponse, aU as TokenInfo, aV as TokenPrice, aW as TokenPricesResponse, aX as UniswapV4PoolConfigData, aY as chainConfigs, aZ as convertCodecToIGetRequest, a_ as convertCodecToIProof, a$ as convertIGetRequestToCodec, b0 as convertIProofToCodec, b1 as convertStateIdToStateMachineId, b2 as convertStateMachineEnumToString, b3 as convertStateMachineIdToEnum, b4 as decodeERC7821ExecuteBatch, b5 as decodeUserOpScale, b6 as encodeERC7821ExecuteBatch, b7 as encodeISMPMessage, b8 as encodeUserOpScale, b9 as getChainId, ba as getConfigByStateMachineId, bb as getViemChain, bc as hyperbridgeAddress, bd as pharosAtlantic, be as pharosMainnet, bf as polkadotAssetHubPaseo, bg as polkadotHubMainnet, bh as tronChainIds, bi as tronNile } from './IntentGatewayV2-PzbhFn_7.js';
3
3
  import { ConsolaInstance } from 'consola';
4
4
  import { GraphQLClient } from 'graphql-request';
5
5
  import { PublicClient, TransactionReceipt, Hex, Address } from 'viem';
@@ -1675,19 +1675,8 @@ interface IntentGatewayContext {
1675
1675
  swap: Swap;
1676
1676
  }
1677
1677
 
1678
- type IntentQuoteStrategy = "uniswap_v4";
1678
+ type IntentQuoteStrategy = "uniswap_v4" | "phantom_snapshot";
1679
1679
  type IntentQuoteTradeType = "EXACT_INPUT" | "EXACT_OUTPUT";
1680
- /**
1681
- * Token metadata required by intent quote strategies.
1682
- */
1683
- interface IntentQuoteToken {
1684
- /** Token contract address on the user/source side. */
1685
- address: HexString;
1686
- /** Token decimals for raw amount formatting by the caller. */
1687
- decimals: number;
1688
- /** Optional token symbol used only to match SDK-configured destination pools. */
1689
- symbol?: string;
1690
- }
1691
1680
  /**
1692
1681
  * Full Uniswap V4 PoolKey. V4 pools cannot be discovered from a token pair alone.
1693
1682
  */
@@ -1704,7 +1693,7 @@ interface UniswapV4IntentQuoteOptions {
1704
1693
  quoterAddress?: HexString;
1705
1694
  /**
1706
1695
  * Destination-side address of the input currency. Defaults to
1707
- * `tokenIn.address`, which only works for same-chain quotes; pass this
1696
+ * `tokenIn`, which only works for same-chain quotes; pass this
1708
1697
  * explicitly when source and destination chains differ. Must equal
1709
1698
  * `currency0` or `currency1`.
1710
1699
  */
@@ -1715,13 +1704,17 @@ interface UniswapV4IntentQuoteOptions {
1715
1704
  * Parameters for `IntentGateway.quoteIntent`. The source and destination
1716
1705
  * chains come from the gateway instance itself.
1717
1706
  *
1718
- * `strategy` defaults to `uniswap_v4`, which is currently the only supported
1719
- * strategy. Provide exactly one of `amountIn` or `amountOut`.
1707
+ * Quotes default to `phantom_snapshot`. Pass `strategy: "uniswap_v4"` only to
1708
+ * explicitly request a Uniswap quote. `tokenIn` and `tokenOut` are token
1709
+ * addresses; the SDK resolves configured token metadata internally. Provide
1710
+ * exactly one of `amountIn` or `amountOut`.
1720
1711
  */
1721
1712
  interface QuoteIntentParams {
1722
1713
  strategy?: IntentQuoteStrategy;
1723
- tokenIn: IntentQuoteToken;
1724
- tokenOut: IntentQuoteToken;
1714
+ /** Token address on the source chain. */
1715
+ tokenIn: HexString;
1716
+ /** Token address on the destination chain. */
1717
+ tokenOut: HexString;
1725
1718
  amountIn?: bigint;
1726
1719
  amountOut?: bigint;
1727
1720
  uniswapV4?: UniswapV4IntentQuoteOptions;
@@ -1738,21 +1731,46 @@ interface UniswapV4IntentQuoteMetadata {
1738
1731
  */
1739
1732
  protocolFeeBps: bigint;
1740
1733
  }
1734
+ interface PhantomSnapshotIntentQuoteMetadata {
1735
+ /** Canonical chain whose directional Phantom pair addresses identify the feed. */
1736
+ quoteChain: string;
1737
+ /** Phantom order whose bids produced this snapshot. */
1738
+ commitment: HexString;
1739
+ tokenA: HexString;
1740
+ tokenB: HexString;
1741
+ /** Benchmark input and liquidity-weighted median output, both in raw token units. */
1742
+ standardAmount: bigint;
1743
+ medianPrice: bigint;
1744
+ lowestPrice?: bigint;
1745
+ highestPrice?: bigint;
1746
+ blockNumber: bigint;
1747
+ snapshotTime: Date;
1748
+ bidCount: number;
1749
+ /** Source gateway protocol fee already reflected in the returned quote amounts. */
1750
+ protocolFeeBps: bigint;
1751
+ }
1741
1752
  /**
1742
1753
  * Quote data partners need before constructing an IntentGateway V2 order.
1743
1754
  *
1744
1755
  * `amountIn` and `amountOut` already account for the IntentGateway protocol
1745
1756
  * fee that the gateway deducts from order inputs (see `quoteMetadata`). No
1746
- * further fee adjustment is required before placing the order; apply only your
1747
- * own slippage tolerance.
1757
+ * further fee or slippage adjustment is required before placing the order.
1748
1758
  */
1749
- interface QuoteIntentResult {
1759
+ interface UniswapV4QuoteIntentResult {
1750
1760
  strategy: "uniswap_v4";
1751
1761
  tradeType: IntentQuoteTradeType;
1752
1762
  amountIn: bigint;
1753
1763
  amountOut: bigint;
1754
1764
  quoteMetadata: UniswapV4IntentQuoteMetadata;
1755
1765
  }
1766
+ interface PhantomSnapshotQuoteIntentResult {
1767
+ strategy: "phantom_snapshot";
1768
+ tradeType: IntentQuoteTradeType;
1769
+ amountIn: bigint;
1770
+ amountOut: bigint;
1771
+ quoteMetadata: PhantomSnapshotIntentQuoteMetadata;
1772
+ }
1773
+ type QuoteIntentResult = UniswapV4QuoteIntentResult | PhantomSnapshotQuoteIntentResult;
1756
1774
  declare class UnsupportedIntentQuoteStrategyError extends Error {
1757
1775
  constructor(strategy: string);
1758
1776
  }
@@ -1760,18 +1778,25 @@ declare class UnsupportedIntentQuotePairError extends Error {
1760
1778
  constructor(params: {
1761
1779
  source: string;
1762
1780
  destination: string;
1763
- tokenIn: IntentQuoteToken;
1764
- tokenOut: IntentQuoteToken;
1781
+ tokenIn: HexString;
1782
+ tokenOut: HexString;
1783
+ quoteSource?: string;
1765
1784
  });
1766
1785
  }
1786
+ declare class PhantomSnapshotUnavailableError extends Error {
1787
+ constructor(tokenA: HexString, tokenB: HexString);
1788
+ }
1789
+ declare class InvalidPhantomSnapshotError extends Error {
1790
+ constructor(commitment: HexString, reason: string);
1791
+ }
1767
1792
 
1768
1793
  /**
1769
1794
  * High-level facade for the IntentGatewayV2 protocol.
1770
1795
  *
1771
1796
  * `IntentGateway` orchestrates the complete lifecycle of an intent-based
1772
1797
  * cross-chain swap:
1773
- * - **Quoting** — prices the order's input/output amounts via the configured
1774
- * quote strategies (currently Uniswap V4) before order construction.
1798
+ * - **Quoting** — prices the order's input/output amounts via Phantom order
1799
+ * snapshots by default, with Uniswap V4 available as an explicit strategy.
1775
1800
  * - **Order placement** — encodes and yields `placeOrder` calldata; caller
1776
1801
  * signs and submits the transaction.
1777
1802
  * - **Order execution** — polls the Hyperbridge coprocessor for solver bids,
@@ -1852,19 +1877,21 @@ declare class IntentGateway {
1852
1877
  /**
1853
1878
  * Quotes an intent between this gateway's source and destination chains.
1854
1879
  *
1855
- * `strategy` defaults to `uniswap_v4`, currently the only supported
1856
- * strategy. Provide exactly one of `amountIn` or `amountOut`.
1880
+ * Uses the latest directional Phantom order price snapshot from the attached
1881
+ * indexer by default. Pass `strategy: "uniswap_v4"` only when explicitly
1882
+ * requesting a Uniswap quote. Provide exactly one of `amountIn` or `amountOut`.
1857
1883
  *
1858
- * The Uniswap quote strategy always prices against the configured Base
1859
- * pool, regardless of this gateway's destination chain. Returned
1884
+ * Both built-in strategies resolve their canonical market on Base,
1885
+ * regardless of this gateway's destination chain. Returned
1860
1886
  * `amountIn`/`amountOut` already account for the gateway's protocol fee
1861
1887
  * (`quoteMetadata.protocolFeeBps`), which the gateway deducts from order
1862
- * inputs; apply only your own slippage tolerance before placing the order.
1888
+ * inputs; use the returned amounts directly when placing the order.
1863
1889
  *
1864
1890
  * @param params - Token pair, amount, and optional strategy/pool overrides.
1865
1891
  * @returns The quoted amounts plus strategy-specific metadata.
1866
1892
  * @throws {UnsupportedIntentQuoteStrategyError} For unknown strategies.
1867
- * @throws {UnsupportedIntentQuotePairError} When no pool is configured for the pair.
1893
+ * @throws {UnsupportedIntentQuotePairError} When the selected strategy does not support the pair.
1894
+ * @throws {PhantomSnapshotUnavailableError} When an eligible cNGN pair has no snapshot.
1868
1895
  */
1869
1896
  quoteIntent(params: QuoteIntentParams): Promise<QuoteIntentResult>;
1870
1897
  /**
@@ -1872,8 +1899,10 @@ declare class IntentGateway {
1872
1899
  * placement, fee estimation, bid collection, and execution.
1873
1900
  *
1874
1901
  * **Yield/receive protocol:**
1875
- * 1. If `order.fees` is unset or zero, estimates gas and sets `order.fees`
1876
- * with a 1% buffer and the wei cost with a 2% buffer for the `value` field.
1902
+ * 1. If `order.fees` is unset or zero, estimates gas and sets same-chain
1903
+ * `order.fees` to twice the estimate. Cross-chain orders retain a 1% buffer
1904
+ * and include an additional 600k-gas fee uplift, while the wei cost used for
1905
+ * the `value` field receives a 2% buffer.
1877
1906
  * 2. Yields `AWAITING_PLACE_ORDER` with `{ to, data, value, sessionPrivateKey }`.
1878
1907
  * The caller must sign the transaction and pass it back via `gen.next(signedTx)`.
1879
1908
  * 3. Yields `ORDER_PLACED` with the finalised order and transaction hash once
@@ -5974,4 +6003,4 @@ declare function teleport(teleport_param: {
5974
6003
  extrinsics?: Array<SubmittableExtrinsic<"promise", ISubmittableResult>>;
5975
6004
  }): Promise<ReadableStream<HyperbridgeTxEvents>>;
5976
6005
 
5977
- export { ADDRESS_ZERO, AssetTeleported, 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 IntentQuoteToken, type IntentQuoteTradeType, IntentsCoprocessor, IsmpClient, MOCK_ADDRESS, ORDER_V2_PARAM_TYPE, Order, OrderStatus, OrderStatusChecker, OrderWithStatus, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, PackedUserOperation, type Params, 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, 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, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, parseStateMachineId, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, requestCommitmentKey, responseCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract };
6006
+ export { ADDRESS_ZERO, AssetTeleported, 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, 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, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, parseStateMachineId, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, requestCommitmentKey, responseCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract };