@hyperbridge/sdk 2.8.7 → 2.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.d.ts +68 -23
- package/dist/browser/index.js +200 -73
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +203 -72
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +55 -22
- package/dist/node/index.d.ts +55 -22
- package/dist/node/index.js +200 -73
- package/dist/node/index.js.map +1 -1
- package/dist/node/{intents-helpers-BFc6YnD3.d.cts → intents-helpers-BCsIHRts.d.cts} +16 -4
- package/dist/node/{intents-helpers-BFc6YnD3.d.ts → intents-helpers-BCsIHRts.d.ts} +16 -4
- package/dist/node/intents-helpers.cjs +10 -1
- package/dist/node/intents-helpers.cjs.map +1 -1
- package/dist/node/intents-helpers.d.cts +1 -1
- package/dist/node/intents-helpers.d.ts +1 -1
- package/dist/node/intents-helpers.js +9 -2
- package/dist/node/intents-helpers.js.map +1 -1
- package/package.json +1 -1
package/dist/node/index.d.cts
CHANGED
|
@@ -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,
|
|
2
|
-
export {
|
|
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-BCsIHRts.cjs';
|
|
2
|
+
export { a0 as AllStatusKey, a1 as AssetTeleportedResponse, a2 as BidStorageEntry, a3 as BidSubmissionResult, a4 as BlockMetadata, a5 as BytesLikeHex, a6 as CancelOptions, a7 as ChainConfig, a8 as ChainConfigData, 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 UNISWAP_QUOTE_HAIRCUT_BPS, ba as UniswapV4PoolConfigData, bb as applyUniswapQuoteHaircut, bc as chainConfigs, bd as convertCodecToIGetRequest, be as convertCodecToIProof, bf as convertIGetRequestToCodec, bg as convertIProofToCodec, bh as convertStateIdToStateMachineId, bi as convertStateMachineEnumToString, bj as convertStateMachineIdToEnum, bk as decodeAcceptedSourceChains, bl as decodeERC7821ExecuteBatch, bm as decodePhantomBidDeclaration, bn as decodeUserOpScale, bo as deriveHttpUrl, bp as encodeAcceptedSourceChains, bq as encodeERC7821ExecuteBatch, br as encodeISMPMessage, bs as encodePhantomBidDeclaration, bt as encodeUserOpScale, bu as getChainId, bv as getConfigByStateMachineId, bw as getViemChain, bx as hyperbridgeAddress, by as pharosAtlantic, bz as pharosMainnet, bA as polkadotAssetHubPaseo, bB as polkadotHubMainnet, bC as poolSlug, bD as sortPoolSymbols, bE as tronChainIds, bF as tronNile } from './intents-helpers-BCsIHRts.cjs';
|
|
3
3
|
import { ConsolaInstance } from 'consola';
|
|
4
4
|
import { GraphQLClient } from 'graphql-request';
|
|
5
5
|
import { PublicClient, TransactionReceipt, Hex, Address } from 'viem';
|
|
@@ -1679,8 +1679,9 @@ interface IntentGatewayContext {
|
|
|
1679
1679
|
swap: Swap;
|
|
1680
1680
|
}
|
|
1681
1681
|
|
|
1682
|
-
type IntentQuoteStrategy = "uniswap_v4" | "phantom_snapshot";
|
|
1682
|
+
type IntentQuoteStrategy = "indexed_rates" | "uniswap_v4" | "phantom_snapshot";
|
|
1683
1683
|
type IntentQuoteTradeType = "EXACT_INPUT" | "EXACT_OUTPUT";
|
|
1684
|
+
type IndexedRateSide = "buy" | "sell";
|
|
1684
1685
|
/**
|
|
1685
1686
|
* Full Uniswap V4 PoolKey. V4 pools cannot be discovered from a token pair alone.
|
|
1686
1687
|
*/
|
|
@@ -1708,10 +1709,10 @@ interface UniswapV4IntentQuoteOptions {
|
|
|
1708
1709
|
* Parameters for `IntentGateway.quoteIntent`. The source and destination
|
|
1709
1710
|
* chains come from the gateway instance itself.
|
|
1710
1711
|
*
|
|
1711
|
-
* Quotes default to
|
|
1712
|
-
*
|
|
1713
|
-
* addresses; the SDK resolves configured token
|
|
1714
|
-
*
|
|
1712
|
+
* Quotes default to the aggregate pool's `indexed_rates`. Legacy Phantom
|
|
1713
|
+
* snapshots and Uniswap V4 remain available as explicit strategies. `tokenIn`
|
|
1714
|
+
* and `tokenOut` are token addresses; the SDK resolves configured token
|
|
1715
|
+
* metadata and decimals internally. Provide exactly one amount.
|
|
1715
1716
|
*/
|
|
1716
1717
|
interface QuoteIntentParams {
|
|
1717
1718
|
strategy?: IntentQuoteStrategy;
|
|
@@ -1753,6 +1754,19 @@ interface PhantomSnapshotIntentQuoteMetadata {
|
|
|
1753
1754
|
/** Source gateway protocol fee already reflected in the returned quote amounts. */
|
|
1754
1755
|
protocolFeeBps: bigint;
|
|
1755
1756
|
}
|
|
1757
|
+
interface IndexedRateIntentQuoteMetadata {
|
|
1758
|
+
sourceChain: Chains;
|
|
1759
|
+
destinationChain: Chains;
|
|
1760
|
+
baseTokenSymbol: ConfiguredAssetSymbol;
|
|
1761
|
+
quoteTokenSymbol: ConfiguredAssetSymbol;
|
|
1762
|
+
/** Directional pool rate used for this order. */
|
|
1763
|
+
rateSide: IndexedRateSide;
|
|
1764
|
+
/** Quote-token units per one base token. */
|
|
1765
|
+
rate: string;
|
|
1766
|
+
rateUpdatedAt: Date;
|
|
1767
|
+
/** Source gateway protocol fee already reflected in the returned quote amounts. */
|
|
1768
|
+
protocolFeeBps: bigint;
|
|
1769
|
+
}
|
|
1756
1770
|
/**
|
|
1757
1771
|
* Quote data partners need before constructing an IntentGateway V2 order.
|
|
1758
1772
|
*
|
|
@@ -1774,7 +1788,14 @@ interface PhantomSnapshotQuoteIntentResult {
|
|
|
1774
1788
|
amountOut: bigint;
|
|
1775
1789
|
quoteMetadata: PhantomSnapshotIntentQuoteMetadata;
|
|
1776
1790
|
}
|
|
1777
|
-
|
|
1791
|
+
interface IndexedRateQuoteIntentResult {
|
|
1792
|
+
strategy: "indexed_rates";
|
|
1793
|
+
tradeType: IntentQuoteTradeType;
|
|
1794
|
+
amountIn: bigint;
|
|
1795
|
+
amountOut: bigint;
|
|
1796
|
+
quoteMetadata: IndexedRateIntentQuoteMetadata;
|
|
1797
|
+
}
|
|
1798
|
+
type QuoteIntentResult = IndexedRateQuoteIntentResult | UniswapV4QuoteIntentResult | PhantomSnapshotQuoteIntentResult;
|
|
1778
1799
|
declare class UnsupportedIntentQuoteStrategyError extends Error {
|
|
1779
1800
|
constructor(strategy: string);
|
|
1780
1801
|
}
|
|
@@ -1793,14 +1814,26 @@ declare class PhantomSnapshotUnavailableError extends Error {
|
|
|
1793
1814
|
declare class InvalidPhantomSnapshotError extends Error {
|
|
1794
1815
|
constructor(commitment: HexString, reason: string);
|
|
1795
1816
|
}
|
|
1817
|
+
declare class IndexedRateUnavailableError extends Error {
|
|
1818
|
+
constructor(params: {
|
|
1819
|
+
source?: string;
|
|
1820
|
+
destination?: string;
|
|
1821
|
+
tokenIn?: string;
|
|
1822
|
+
tokenOut?: string;
|
|
1823
|
+
side?: IndexedRateSide;
|
|
1824
|
+
});
|
|
1825
|
+
}
|
|
1826
|
+
declare class InvalidIndexedRateError extends Error {
|
|
1827
|
+
constructor(reason: string);
|
|
1828
|
+
}
|
|
1796
1829
|
|
|
1797
1830
|
/**
|
|
1798
1831
|
* High-level facade for the IntentGatewayV2 protocol.
|
|
1799
1832
|
*
|
|
1800
1833
|
* `IntentGateway` orchestrates the complete lifecycle of an intent-based
|
|
1801
1834
|
* cross-chain swap:
|
|
1802
|
-
* - **Quoting** — prices the order's input/output amounts
|
|
1803
|
-
*
|
|
1835
|
+
* - **Quoting** — prices the order's input/output amounts from aggregate
|
|
1836
|
+
* indexed pool rates by default, with legacy quote strategies available explicitly.
|
|
1804
1837
|
* - **Order placement** — encodes and yields `placeOrder` calldata; caller
|
|
1805
1838
|
* signs and submits the transaction.
|
|
1806
1839
|
* - **Order execution** — polls the Hyperbridge coprocessor for solver bids,
|
|
@@ -1881,21 +1914,21 @@ declare class IntentGateway {
|
|
|
1881
1914
|
/**
|
|
1882
1915
|
* Quotes an intent between this gateway's source and destination chains.
|
|
1883
1916
|
*
|
|
1884
|
-
* Uses the latest directional
|
|
1885
|
-
*
|
|
1886
|
-
* requesting a
|
|
1917
|
+
* Uses the indexer's latest aggregate directional pool rate by default. Pass
|
|
1918
|
+
* `strategy: "phantom_snapshot"` or `strategy: "uniswap_v4"` only when
|
|
1919
|
+
* explicitly requesting a legacy quote source. Provide exactly one of
|
|
1920
|
+
* `amountIn` or `amountOut`.
|
|
1887
1921
|
*
|
|
1888
|
-
*
|
|
1889
|
-
*
|
|
1922
|
+
* The gateway's source and destination chains resolve the configured order
|
|
1923
|
+
* tokens; the indexer supplies the depth-weighted pool rate. Returned
|
|
1890
1924
|
* `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.
|
|
1925
|
+
* (`quoteMetadata.protocolFeeBps`), which the gateway deducts from order inputs.
|
|
1893
1926
|
*
|
|
1894
1927
|
* @param params - Token pair, amount, and optional strategy/pool overrides.
|
|
1895
1928
|
* @returns The quoted amounts plus strategy-specific metadata.
|
|
1896
1929
|
* @throws {UnsupportedIntentQuoteStrategyError} For unknown strategies.
|
|
1897
1930
|
* @throws {UnsupportedIntentQuotePairError} When the selected strategy does not support the pair.
|
|
1898
|
-
* @throws {
|
|
1931
|
+
* @throws {IndexedRateUnavailableError} When the requested direction has no indexed rate.
|
|
1899
1932
|
*/
|
|
1900
1933
|
quoteIntent(params: QuoteIntentParams): Promise<QuoteIntentResult>;
|
|
1901
1934
|
/**
|
|
@@ -1910,9 +1943,9 @@ declare class IntentGateway {
|
|
|
1910
1943
|
*/
|
|
1911
1944
|
queryAvailableLiquidity(params: Pick<QuoteIntentParams, "tokenIn" | "tokenOut">): Promise<AvailableLiquidity | undefined>;
|
|
1912
1945
|
/**
|
|
1913
|
-
* Returns
|
|
1914
|
-
* without requiring token addresses. Symbols are matched
|
|
1915
|
-
* chain IDs
|
|
1946
|
+
* Returns aggregate indexed pool buy and sell rates in less-valued quote-token
|
|
1947
|
+
* units without requiring token addresses. Symbols are matched
|
|
1948
|
+
* case-insensitively; chain IDs resolve configured token deployments.
|
|
1916
1949
|
*/
|
|
1917
1950
|
queryBuyAndSellRates(params: QueryBuyAndSellRatesParams): Promise<BuyAndSellRates | undefined>;
|
|
1918
1951
|
/**
|
|
@@ -6108,4 +6141,4 @@ declare function teleport(teleport_param: {
|
|
|
6108
6141
|
extrinsics?: Array<SubmittableExtrinsic<"promise", ISubmittableResult>>;
|
|
6109
6142
|
}): Promise<ReadableStream<HyperbridgeTxEvents>>;
|
|
6110
6143
|
|
|
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 };
|
|
6144
|
+
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 };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -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,
|
|
2
|
-
export {
|
|
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-BCsIHRts.js';
|
|
2
|
+
export { a0 as AllStatusKey, a1 as AssetTeleportedResponse, a2 as BidStorageEntry, a3 as BidSubmissionResult, a4 as BlockMetadata, a5 as BytesLikeHex, a6 as CancelOptions, a7 as ChainConfig, a8 as ChainConfigData, 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 UNISWAP_QUOTE_HAIRCUT_BPS, ba as UniswapV4PoolConfigData, bb as applyUniswapQuoteHaircut, bc as chainConfigs, bd as convertCodecToIGetRequest, be as convertCodecToIProof, bf as convertIGetRequestToCodec, bg as convertIProofToCodec, bh as convertStateIdToStateMachineId, bi as convertStateMachineEnumToString, bj as convertStateMachineIdToEnum, bk as decodeAcceptedSourceChains, bl as decodeERC7821ExecuteBatch, bm as decodePhantomBidDeclaration, bn as decodeUserOpScale, bo as deriveHttpUrl, bp as encodeAcceptedSourceChains, bq as encodeERC7821ExecuteBatch, br as encodeISMPMessage, bs as encodePhantomBidDeclaration, bt as encodeUserOpScale, bu as getChainId, bv as getConfigByStateMachineId, bw as getViemChain, bx as hyperbridgeAddress, by as pharosAtlantic, bz as pharosMainnet, bA as polkadotAssetHubPaseo, bB as polkadotHubMainnet, bC as poolSlug, bD as sortPoolSymbols, bE as tronChainIds, bF as tronNile } from './intents-helpers-BCsIHRts.js';
|
|
3
3
|
import { ConsolaInstance } from 'consola';
|
|
4
4
|
import { GraphQLClient } from 'graphql-request';
|
|
5
5
|
import { PublicClient, TransactionReceipt, Hex, Address } from 'viem';
|
|
@@ -1679,8 +1679,9 @@ interface IntentGatewayContext {
|
|
|
1679
1679
|
swap: Swap;
|
|
1680
1680
|
}
|
|
1681
1681
|
|
|
1682
|
-
type IntentQuoteStrategy = "uniswap_v4" | "phantom_snapshot";
|
|
1682
|
+
type IntentQuoteStrategy = "indexed_rates" | "uniswap_v4" | "phantom_snapshot";
|
|
1683
1683
|
type IntentQuoteTradeType = "EXACT_INPUT" | "EXACT_OUTPUT";
|
|
1684
|
+
type IndexedRateSide = "buy" | "sell";
|
|
1684
1685
|
/**
|
|
1685
1686
|
* Full Uniswap V4 PoolKey. V4 pools cannot be discovered from a token pair alone.
|
|
1686
1687
|
*/
|
|
@@ -1708,10 +1709,10 @@ interface UniswapV4IntentQuoteOptions {
|
|
|
1708
1709
|
* Parameters for `IntentGateway.quoteIntent`. The source and destination
|
|
1709
1710
|
* chains come from the gateway instance itself.
|
|
1710
1711
|
*
|
|
1711
|
-
* Quotes default to
|
|
1712
|
-
*
|
|
1713
|
-
* addresses; the SDK resolves configured token
|
|
1714
|
-
*
|
|
1712
|
+
* Quotes default to the aggregate pool's `indexed_rates`. Legacy Phantom
|
|
1713
|
+
* snapshots and Uniswap V4 remain available as explicit strategies. `tokenIn`
|
|
1714
|
+
* and `tokenOut` are token addresses; the SDK resolves configured token
|
|
1715
|
+
* metadata and decimals internally. Provide exactly one amount.
|
|
1715
1716
|
*/
|
|
1716
1717
|
interface QuoteIntentParams {
|
|
1717
1718
|
strategy?: IntentQuoteStrategy;
|
|
@@ -1753,6 +1754,19 @@ interface PhantomSnapshotIntentQuoteMetadata {
|
|
|
1753
1754
|
/** Source gateway protocol fee already reflected in the returned quote amounts. */
|
|
1754
1755
|
protocolFeeBps: bigint;
|
|
1755
1756
|
}
|
|
1757
|
+
interface IndexedRateIntentQuoteMetadata {
|
|
1758
|
+
sourceChain: Chains;
|
|
1759
|
+
destinationChain: Chains;
|
|
1760
|
+
baseTokenSymbol: ConfiguredAssetSymbol;
|
|
1761
|
+
quoteTokenSymbol: ConfiguredAssetSymbol;
|
|
1762
|
+
/** Directional pool rate used for this order. */
|
|
1763
|
+
rateSide: IndexedRateSide;
|
|
1764
|
+
/** Quote-token units per one base token. */
|
|
1765
|
+
rate: string;
|
|
1766
|
+
rateUpdatedAt: Date;
|
|
1767
|
+
/** Source gateway protocol fee already reflected in the returned quote amounts. */
|
|
1768
|
+
protocolFeeBps: bigint;
|
|
1769
|
+
}
|
|
1756
1770
|
/**
|
|
1757
1771
|
* Quote data partners need before constructing an IntentGateway V2 order.
|
|
1758
1772
|
*
|
|
@@ -1774,7 +1788,14 @@ interface PhantomSnapshotQuoteIntentResult {
|
|
|
1774
1788
|
amountOut: bigint;
|
|
1775
1789
|
quoteMetadata: PhantomSnapshotIntentQuoteMetadata;
|
|
1776
1790
|
}
|
|
1777
|
-
|
|
1791
|
+
interface IndexedRateQuoteIntentResult {
|
|
1792
|
+
strategy: "indexed_rates";
|
|
1793
|
+
tradeType: IntentQuoteTradeType;
|
|
1794
|
+
amountIn: bigint;
|
|
1795
|
+
amountOut: bigint;
|
|
1796
|
+
quoteMetadata: IndexedRateIntentQuoteMetadata;
|
|
1797
|
+
}
|
|
1798
|
+
type QuoteIntentResult = IndexedRateQuoteIntentResult | UniswapV4QuoteIntentResult | PhantomSnapshotQuoteIntentResult;
|
|
1778
1799
|
declare class UnsupportedIntentQuoteStrategyError extends Error {
|
|
1779
1800
|
constructor(strategy: string);
|
|
1780
1801
|
}
|
|
@@ -1793,14 +1814,26 @@ declare class PhantomSnapshotUnavailableError extends Error {
|
|
|
1793
1814
|
declare class InvalidPhantomSnapshotError extends Error {
|
|
1794
1815
|
constructor(commitment: HexString, reason: string);
|
|
1795
1816
|
}
|
|
1817
|
+
declare class IndexedRateUnavailableError extends Error {
|
|
1818
|
+
constructor(params: {
|
|
1819
|
+
source?: string;
|
|
1820
|
+
destination?: string;
|
|
1821
|
+
tokenIn?: string;
|
|
1822
|
+
tokenOut?: string;
|
|
1823
|
+
side?: IndexedRateSide;
|
|
1824
|
+
});
|
|
1825
|
+
}
|
|
1826
|
+
declare class InvalidIndexedRateError extends Error {
|
|
1827
|
+
constructor(reason: string);
|
|
1828
|
+
}
|
|
1796
1829
|
|
|
1797
1830
|
/**
|
|
1798
1831
|
* High-level facade for the IntentGatewayV2 protocol.
|
|
1799
1832
|
*
|
|
1800
1833
|
* `IntentGateway` orchestrates the complete lifecycle of an intent-based
|
|
1801
1834
|
* cross-chain swap:
|
|
1802
|
-
* - **Quoting** — prices the order's input/output amounts
|
|
1803
|
-
*
|
|
1835
|
+
* - **Quoting** — prices the order's input/output amounts from aggregate
|
|
1836
|
+
* indexed pool rates by default, with legacy quote strategies available explicitly.
|
|
1804
1837
|
* - **Order placement** — encodes and yields `placeOrder` calldata; caller
|
|
1805
1838
|
* signs and submits the transaction.
|
|
1806
1839
|
* - **Order execution** — polls the Hyperbridge coprocessor for solver bids,
|
|
@@ -1881,21 +1914,21 @@ declare class IntentGateway {
|
|
|
1881
1914
|
/**
|
|
1882
1915
|
* Quotes an intent between this gateway's source and destination chains.
|
|
1883
1916
|
*
|
|
1884
|
-
* Uses the latest directional
|
|
1885
|
-
*
|
|
1886
|
-
* requesting a
|
|
1917
|
+
* Uses the indexer's latest aggregate directional pool rate by default. Pass
|
|
1918
|
+
* `strategy: "phantom_snapshot"` or `strategy: "uniswap_v4"` only when
|
|
1919
|
+
* explicitly requesting a legacy quote source. Provide exactly one of
|
|
1920
|
+
* `amountIn` or `amountOut`.
|
|
1887
1921
|
*
|
|
1888
|
-
*
|
|
1889
|
-
*
|
|
1922
|
+
* The gateway's source and destination chains resolve the configured order
|
|
1923
|
+
* tokens; the indexer supplies the depth-weighted pool rate. Returned
|
|
1890
1924
|
* `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.
|
|
1925
|
+
* (`quoteMetadata.protocolFeeBps`), which the gateway deducts from order inputs.
|
|
1893
1926
|
*
|
|
1894
1927
|
* @param params - Token pair, amount, and optional strategy/pool overrides.
|
|
1895
1928
|
* @returns The quoted amounts plus strategy-specific metadata.
|
|
1896
1929
|
* @throws {UnsupportedIntentQuoteStrategyError} For unknown strategies.
|
|
1897
1930
|
* @throws {UnsupportedIntentQuotePairError} When the selected strategy does not support the pair.
|
|
1898
|
-
* @throws {
|
|
1931
|
+
* @throws {IndexedRateUnavailableError} When the requested direction has no indexed rate.
|
|
1899
1932
|
*/
|
|
1900
1933
|
quoteIntent(params: QuoteIntentParams): Promise<QuoteIntentResult>;
|
|
1901
1934
|
/**
|
|
@@ -1910,9 +1943,9 @@ declare class IntentGateway {
|
|
|
1910
1943
|
*/
|
|
1911
1944
|
queryAvailableLiquidity(params: Pick<QuoteIntentParams, "tokenIn" | "tokenOut">): Promise<AvailableLiquidity | undefined>;
|
|
1912
1945
|
/**
|
|
1913
|
-
* Returns
|
|
1914
|
-
* without requiring token addresses. Symbols are matched
|
|
1915
|
-
* chain IDs
|
|
1946
|
+
* Returns aggregate indexed pool buy and sell rates in less-valued quote-token
|
|
1947
|
+
* units without requiring token addresses. Symbols are matched
|
|
1948
|
+
* case-insensitively; chain IDs resolve configured token deployments.
|
|
1916
1949
|
*/
|
|
1917
1950
|
queryBuyAndSellRates(params: QueryBuyAndSellRatesParams): Promise<BuyAndSellRates | undefined>;
|
|
1918
1951
|
/**
|
|
@@ -6108,4 +6141,4 @@ declare function teleport(teleport_param: {
|
|
|
6108
6141
|
extrinsics?: Array<SubmittableExtrinsic<"promise", ISubmittableResult>>;
|
|
6109
6142
|
}): Promise<ReadableStream<HyperbridgeTxEvents>>;
|
|
6110
6143
|
|
|
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 };
|
|
6144
|
+
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 };
|