@hyperbridge/sdk 2.8.3 → 2.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.d.ts +133 -46
- package/dist/browser/index.js +354 -235
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +359 -234
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +25 -12
- package/dist/node/index.d.ts +25 -12
- package/dist/node/index.js +354 -235
- package/dist/node/index.js.map +1 -1
- package/dist/node/{intents-helpers-CxCDx-hH.d.cts → intents-helpers-Cf0-Odlu.d.cts} +111 -37
- package/dist/node/{intents-helpers-CxCDx-hH.d.ts → intents-helpers-Cf0-Odlu.d.ts} +111 -37
- package/dist/node/intents-helpers.cjs +10 -0
- 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 -1
- package/dist/node/intents-helpers.js.map +1 -1
- package/package.json +155 -153
package/dist/browser/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ConsolaInstance } from 'consola';
|
|
|
2
2
|
import Decimal from 'decimal.js';
|
|
3
3
|
import { GraphQLClient } from 'graphql-request';
|
|
4
4
|
import * as viem from 'viem';
|
|
5
|
-
import { PublicClient, TransactionReceipt, Hex, Log, ContractFunctionArgs, Address } from 'viem';
|
|
5
|
+
import { PublicClient, TransactionReceipt, Hex, Log, ContractFunctionArgs, Chain as Chain$1, Address } from 'viem';
|
|
6
6
|
import { Chain } from 'viem/chains';
|
|
7
7
|
import { ApiPromise } from '@polkadot/api';
|
|
8
8
|
import { KeyringPair } from '@polkadot/keyring/types';
|
|
@@ -891,7 +891,9 @@ declare const tronNile: {
|
|
|
891
891
|
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
892
892
|
};
|
|
893
893
|
declare const tronChainIds: Set<number>;
|
|
894
|
-
type ConfiguredAssetSymbol = "WETH" | "DAI" | "USDC" | "USDT" | "cNGN" | "EXT";
|
|
894
|
+
type ConfiguredAssetSymbol = "WETH" | "DAI" | "USDC" | "USDT" | "cNGN" | "EXT" | "ZARP" | "EURC" | "XSGD" | "TRYB" | "USDR";
|
|
895
|
+
/** A configured asset symbol in its canonical, lowercase, or uppercase form. */
|
|
896
|
+
type ConfiguredAssetSymbolInput = ConfiguredAssetSymbol | Lowercase<ConfiguredAssetSymbol> | Uppercase<ConfiguredAssetSymbol>;
|
|
895
897
|
interface UniswapV4PoolConfigData {
|
|
896
898
|
tokens: readonly [ConfiguredAssetSymbol, ConfiguredAssetSymbol];
|
|
897
899
|
fee: number;
|
|
@@ -1020,7 +1022,7 @@ interface ChainConfigData {
|
|
|
1020
1022
|
layerZeroEid?: number;
|
|
1021
1023
|
}
|
|
1022
1024
|
declare const chainConfigs: Record<number, ChainConfigData>;
|
|
1023
|
-
declare const getConfigByStateMachineId: (id:
|
|
1025
|
+
declare const getConfigByStateMachineId: (id: string) => ChainConfigData | undefined;
|
|
1024
1026
|
declare const getChainId: (stateMachineId: string) => number | undefined;
|
|
1025
1027
|
declare const getViemChain: (chainId: number) => Chain | undefined;
|
|
1026
1028
|
declare const hyperbridgeAddress = "";
|
|
@@ -1061,6 +1063,12 @@ declare class ChainConfigService {
|
|
|
1061
1063
|
* it, so a new asset is added once in `chain.ts` and nowhere else.
|
|
1062
1064
|
*/
|
|
1063
1065
|
getAssetBySymbol(chain: string, symbol: string): HexString$1 | undefined;
|
|
1066
|
+
/** Resolves a configured token symbol case-insensitively on a specific chain. */
|
|
1067
|
+
getAssetMetadataBySymbol(chain: string, symbol: string): {
|
|
1068
|
+
symbol: ConfiguredAssetSymbol;
|
|
1069
|
+
address: HexString$1;
|
|
1070
|
+
decimals?: number;
|
|
1071
|
+
} | undefined;
|
|
1064
1072
|
getCNgnDecimals(chain: string): number | undefined;
|
|
1065
1073
|
getExtAsset(chain: string): HexString$1 | undefined;
|
|
1066
1074
|
getExtDecimals(chain: string): number | undefined;
|
|
@@ -1917,6 +1925,14 @@ declare function convertCodecToIProof(codec: {
|
|
|
1917
1925
|
}): IProof;
|
|
1918
1926
|
declare function encodeISMPMessage(message: IIsmpMessage): Uint8Array;
|
|
1919
1927
|
|
|
1928
|
+
/**
|
|
1929
|
+
* How long a submitted extrinsic has to reach a block before the attempt is treated as stalled.
|
|
1930
|
+
*
|
|
1931
|
+
* Sized against the bid window, not against how long inclusion can conceivably take: a bid is worth
|
|
1932
|
+
* nothing once its window closes, so an extrinsic still sitting in the pool after a few blocks is
|
|
1933
|
+
* better replaced by a higher-tipped copy than waited on.
|
|
1934
|
+
*/
|
|
1935
|
+
declare const INCLUSION_TIMEOUT_MS = 20000;
|
|
1920
1936
|
/**
|
|
1921
1937
|
* Maps a websocket endpoint onto the HTTP endpoint of the same node — substrate serves both on the
|
|
1922
1938
|
* same host and port, so the scheme is the only difference. Throws for anything that is not a
|
|
@@ -2095,8 +2111,10 @@ declare class IntentsCoprocessor {
|
|
|
2095
2111
|
/**
|
|
2096
2112
|
* Signs and sends an extrinsic. Submissions are serialised through {@link submissionQueue} so
|
|
2097
2113
|
* concurrent calls never collide on the substrate account nonce — each extrinsic reaches a block
|
|
2098
|
-
* (or is confirmed still pooled and returned as `pending`) before the next is signed
|
|
2099
|
-
*
|
|
2114
|
+
* (or is confirmed still pooled and returned as `pending`) before the next is signed. The
|
|
2115
|
+
* auto-nonce is the account's on-chain nonce, so a still-pooled extrinsic does not advance it: a
|
|
2116
|
+
* submission signed behind a pending one bounces off it (1013/1014) and is reported as pending
|
|
2117
|
+
* too, rather than landing as a second copy.
|
|
2100
2118
|
*
|
|
2101
2119
|
* The extrinsic is built rather than passed in because the api it is built on decides where it
|
|
2102
2120
|
* is signed and sent: a websocket that is down when the queue reaches this submission diverts it
|
|
@@ -2121,14 +2139,34 @@ declare class IntentsCoprocessor {
|
|
|
2121
2139
|
* Signs and sends an extrinsic, handling status updates and errors.
|
|
2122
2140
|
* Implements retry logic with progressive tip increases for stuck transactions.
|
|
2123
2141
|
*
|
|
2124
|
-
*
|
|
2125
|
-
*
|
|
2126
|
-
*
|
|
2127
|
-
*
|
|
2128
|
-
*
|
|
2129
|
-
*
|
|
2142
|
+
* Two kinds of failure are retried, and the difference is the nonce.
|
|
2143
|
+
*
|
|
2144
|
+
* An attempt that verifiably went nowhere (rejected before the pool, dropped, invalid) leaves
|
|
2145
|
+
* the account nonce free, so the next attempt simply re-signs with the auto-nonce.
|
|
2146
|
+
*
|
|
2147
|
+
* An attempt that reached the pool and was still there when the watch timed out (`stalled`) is
|
|
2148
|
+
* retried as a *replacement*: the same nonce it was signed with, and double the tip. Substrate's
|
|
2149
|
+
* pool evicts a pooled extrinsic in favour of a higher-priority one at the same (account, nonce),
|
|
2150
|
+
* so exactly one of the two can ever execute. This matters for a bid, which is worth nothing once
|
|
2151
|
+
* its window closes — waiting out a stalled extrinsic usually means not bidding at all.
|
|
2152
|
+
*
|
|
2153
|
+
* Re-signing without pinning the nonce is what must never happen here. The auto-nonce is read
|
|
2154
|
+
* from on-chain state, so it is only the stalled extrinsic's nonce for as long as that extrinsic
|
|
2155
|
+
* stays out of a block — and a stall is precisely the case where it may land at any moment. Once
|
|
2156
|
+
* it does, an unpinned retry takes the *next* nonce and both execute: a duplicate `placeBid` that
|
|
2157
|
+
* fails on-chain, and a second `retractBid` that pulls the bid just placed. When the signed nonce
|
|
2158
|
+
* cannot be read, the stalled result is returned rather than guessed at.
|
|
2159
|
+
*
|
|
2160
|
+
* A rejection that bounced off a copy already pooled (1013/1014) is likewise left alone: that
|
|
2161
|
+
* copy is in flight and its outcome is unknown here, so the `pending` result goes back to the
|
|
2162
|
+
* caller to confirm later.
|
|
2130
2163
|
*/
|
|
2131
2164
|
private sendExtrinsicWithRetries;
|
|
2165
|
+
/**
|
|
2166
|
+
* The nonce an extrinsic was signed with, or undefined if it carries no readable one — which is
|
|
2167
|
+
* the case before it has ever been signed, and for a stub api in tests.
|
|
2168
|
+
*/
|
|
2169
|
+
private signedNonce;
|
|
2132
2170
|
/**
|
|
2133
2171
|
* Classifies a submission rejection. Codes 1013 ("already imported") and 1014 ("priority is
|
|
2134
2172
|
* too low") both mean a copy of this account+nonce is already in the pool — almost always our
|
|
@@ -2142,8 +2180,13 @@ declare class IntentsCoprocessor {
|
|
|
2142
2180
|
*
|
|
2143
2181
|
* A timeout is only a failure when the extrinsic never made it into the transaction pool.
|
|
2144
2182
|
* Once a pool-entry status (Future/Ready/Broadcast/Retracted) has been seen, the extrinsic is
|
|
2145
|
-
* in flight and may well execute after the watch is abandoned — the result is then `pending
|
|
2146
|
-
* telling the caller to
|
|
2183
|
+
* in flight and may well execute after the watch is abandoned — the result is then `pending`
|
|
2184
|
+
* and `stalled`, telling the caller to replace it under the same nonce or confirm it later,
|
|
2185
|
+
* never to re-sign the same call under a fresh one.
|
|
2186
|
+
*
|
|
2187
|
+
* `nonce` pins the submission to a specific account nonce, which is what makes a retry a pool
|
|
2188
|
+
* replacement rather than a second extrinsic queued behind the first. Left undefined on the
|
|
2189
|
+
* first attempt, where the api's auto-nonce is correct.
|
|
2147
2190
|
*/
|
|
2148
2191
|
private sendWithTimeout;
|
|
2149
2192
|
/**
|
|
@@ -3684,25 +3727,51 @@ interface PhantomOrderPriceSnapshotsResponse {
|
|
|
3684
3727
|
}>;
|
|
3685
3728
|
};
|
|
3686
3729
|
}
|
|
3730
|
+
/** One independently reported slice of indexed liquidity. */
|
|
3731
|
+
interface LiquiditySlice {
|
|
3732
|
+
totalLiquidity: string;
|
|
3733
|
+
providerCount: number;
|
|
3734
|
+
}
|
|
3687
3735
|
/**
|
|
3688
|
-
*
|
|
3736
|
+
* Indexed destination capacity and its source-routing slices.
|
|
3689
3737
|
*
|
|
3690
|
-
*
|
|
3691
|
-
*
|
|
3738
|
+
* The SDK reports the indexer's facts separately and does not decide whether a
|
|
3739
|
+
* source chain is covered by the legacy unrestricted-bidder policy.
|
|
3692
3740
|
*/
|
|
3693
|
-
interface
|
|
3694
|
-
|
|
3695
|
-
|
|
3741
|
+
interface AvailableLiquidity {
|
|
3742
|
+
sourceChain: Chains;
|
|
3743
|
+
destinationChain: Chains;
|
|
3696
3744
|
tokenAddress: HexString$1;
|
|
3697
|
-
|
|
3698
|
-
|
|
3745
|
+
updatedAt: Date;
|
|
3746
|
+
destination: LiquiditySlice;
|
|
3747
|
+
unrestricted: LiquiditySlice;
|
|
3748
|
+
explicitRoute: (LiquiditySlice & {
|
|
3749
|
+
updatedAt: Date;
|
|
3750
|
+
}) | null;
|
|
3699
3751
|
}
|
|
3700
|
-
/**
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3752
|
+
/**
|
|
3753
|
+
* Chain-specific buy and sell rates expressed as quote-token units per one
|
|
3754
|
+
* base token. The quote token is the less valuable currency when the indexed
|
|
3755
|
+
* rates establish an ordering (for example, cNGN in a USDC/cNGN pair).
|
|
3756
|
+
*/
|
|
3757
|
+
interface BuyAndSellRates {
|
|
3758
|
+
baseTokenSymbol: ConfiguredAssetSymbol;
|
|
3759
|
+
quoteTokenSymbol: ConfiguredAssetSymbol;
|
|
3760
|
+
sourceChain: Chains;
|
|
3761
|
+
destinationChain: Chains;
|
|
3762
|
+
/** Quote-token units received when buying the quote token with one base token. */
|
|
3763
|
+
buyRate: string | null;
|
|
3764
|
+
/** Quote-token units sold to receive one base token. */
|
|
3765
|
+
sellRate: string | null;
|
|
3766
|
+
buyRateUpdatedAt: Date | null;
|
|
3767
|
+
sellRateUpdatedAt: Date | null;
|
|
3768
|
+
}
|
|
3769
|
+
/** Symbol-only input for querying an indexed pool's rates. */
|
|
3770
|
+
interface QueryBuyAndSellRatesParams {
|
|
3771
|
+
tokenInSymbol: ConfiguredAssetSymbolInput;
|
|
3772
|
+
tokenOutSymbol: ConfiguredAssetSymbolInput;
|
|
3773
|
+
sourceChainId: Chain$1["id"];
|
|
3774
|
+
destinationChainId: Chain$1["id"];
|
|
3706
3775
|
}
|
|
3707
3776
|
interface TokenPrice {
|
|
3708
3777
|
symbol: string;
|
|
@@ -3791,19 +3860,14 @@ interface PackedUserOperation {
|
|
|
3791
3860
|
signature: HexString$1;
|
|
3792
3861
|
}
|
|
3793
3862
|
interface SigningAccount {
|
|
3794
|
-
/** Signs a bid message hash for a given chain. Returns a 65-byte ECDSA signature. */
|
|
3795
|
-
signMessage: (messageHash: HexString$1, chainId: number) => Promise<HexString$1>;
|
|
3796
|
-
/** Signs a raw 32-byte hash, returning split signature components for EIP-7702 etc. */
|
|
3797
|
-
signRawHash: (hash: HexString$1) => Promise<{
|
|
3798
|
-
r: HexString$1;
|
|
3799
|
-
s: HexString$1;
|
|
3800
|
-
yParity: number;
|
|
3801
|
-
}>;
|
|
3802
3863
|
/**
|
|
3803
3864
|
* Signs an EIP-712 typed-data payload (e.g. an EIP-2612 USDC permit for the Circle Paymaster).
|
|
3804
3865
|
* The shape of `typedData` matches viem's `TypedDataDefinition` (domain + types + message).
|
|
3866
|
+
*
|
|
3867
|
+
* No chain id parameter: EIP-712 carries it in `domain.chainId`, which is what
|
|
3868
|
+
* the digest covers and what a backend scoping the request to a chain reads.
|
|
3805
3869
|
*/
|
|
3806
|
-
signTypedData: (typedData: unknown
|
|
3870
|
+
signTypedData: (typedData: unknown) => Promise<HexString$1>;
|
|
3807
3871
|
}
|
|
3808
3872
|
interface SubmitBidOptions {
|
|
3809
3873
|
order: Order;
|
|
@@ -5226,8 +5290,6 @@ declare class IntentGateway {
|
|
|
5226
5290
|
private readonly gasEstimator;
|
|
5227
5291
|
/** Quote strategies for pricing orders before placement, keyed by strategy name. */
|
|
5228
5292
|
private readonly quoteStrategies;
|
|
5229
|
-
/** Resolves order tokens to canonical Phantom snapshot market pairs. */
|
|
5230
|
-
private readonly phantomSnapshotPairResolver;
|
|
5231
5293
|
/**
|
|
5232
5294
|
* Private constructor — use {@link IntentGateway.create} instead.
|
|
5233
5295
|
*
|
|
@@ -5283,17 +5345,22 @@ declare class IntentGateway {
|
|
|
5283
5345
|
*/
|
|
5284
5346
|
quoteIntent(params: QuoteIntentParams): Promise<QuoteIntentResult>;
|
|
5285
5347
|
/**
|
|
5286
|
-
* Returns
|
|
5287
|
-
* Phantom snapshot for this gateway's source and destination.
|
|
5348
|
+
* Returns indexed destination liquidity and its source-routing slices.
|
|
5288
5349
|
*
|
|
5289
|
-
*
|
|
5290
|
-
*
|
|
5291
|
-
*
|
|
5292
|
-
*
|
|
5350
|
+
* Destination, unrestricted, and explicit-route capacity come exclusively
|
|
5351
|
+
* from the indexer's pair-centric liquidity entities. The SDK does not decide
|
|
5352
|
+
* whether unrestricted bidders cover the source chain. Amounts reflect the
|
|
5353
|
+
* latest rolling sample; they are not reservations or fill guarantees.
|
|
5293
5354
|
*
|
|
5294
5355
|
* Requires a prior call to {@link withQueryClient}.
|
|
5295
5356
|
*/
|
|
5296
|
-
queryAvailableLiquidity(params: Pick<QuoteIntentParams, "tokenIn" | "tokenOut">): Promise<
|
|
5357
|
+
queryAvailableLiquidity(params: Pick<QuoteIntentParams, "tokenIn" | "tokenOut">): Promise<AvailableLiquidity | undefined>;
|
|
5358
|
+
/**
|
|
5359
|
+
* Returns chain-specific buy and sell rates in less-valued quote-token units
|
|
5360
|
+
* without requiring token addresses. Symbols are matched case-insensitively;
|
|
5361
|
+
* chain IDs are numeric IDs for chains configured in the SDK.
|
|
5362
|
+
*/
|
|
5363
|
+
queryBuyAndSellRates(params: QueryBuyAndSellRatesParams): Promise<BuyAndSellRates | undefined>;
|
|
5297
5364
|
/**
|
|
5298
5365
|
* Bidirectional async generator that orchestrates the full order lifecycle:
|
|
5299
5366
|
* placement, fee estimation, bid collection, and execution.
|
|
@@ -5637,6 +5704,26 @@ declare class IntentGateway {
|
|
|
5637
5704
|
}, void>;
|
|
5638
5705
|
}
|
|
5639
5706
|
|
|
5707
|
+
declare class InvalidLiquidityIndexerResponseError extends Error {
|
|
5708
|
+
constructor(reason: string);
|
|
5709
|
+
}
|
|
5710
|
+
declare class UnsupportedLiquidityAssetError extends Error {
|
|
5711
|
+
constructor(chain: string, asset: string);
|
|
5712
|
+
}
|
|
5713
|
+
declare class UnsupportedLiquidityChainError extends Error {
|
|
5714
|
+
constructor(chainId: number | string);
|
|
5715
|
+
}
|
|
5716
|
+
|
|
5717
|
+
/**
|
|
5718
|
+
* Canonical symbol order used by the SDK and indexer pool IDs.
|
|
5719
|
+
*
|
|
5720
|
+
* Plain code-unit comparison, never locale-sensitive collation — the result is
|
|
5721
|
+
* a persisted primary key and must sort identically everywhere.
|
|
5722
|
+
*/
|
|
5723
|
+
declare function sortPoolSymbols<Symbol extends string>(symbolA: Symbol, symbolB: Symbol): [Symbol, Symbol];
|
|
5724
|
+
/** Canonical indexer pool ID for a pair of canonical token symbols. */
|
|
5725
|
+
declare function poolSlug(symbolA: string, symbolB: string): string;
|
|
5726
|
+
|
|
5640
5727
|
/**
|
|
5641
5728
|
* Checks the on-chain fill and refund status of IntentGatewayV2 orders.
|
|
5642
5729
|
*
|
|
@@ -10920,4 +11007,4 @@ declare function teleport(teleport_param: {
|
|
|
10920
11007
|
extrinsics?: Array<SubmittableExtrinsic<"promise", ISubmittableResult>>;
|
|
10921
11008
|
}): Promise<ReadableStream<HyperbridgeTxEvents>>;
|
|
10922
11009
|
|
|
10923
|
-
export { ADDRESS_ZERO, type AllStatusKey, type AssetTeleported, type AssetTeleportedResponse, type
|
|
11010
|
+
export { ADDRESS_ZERO, type AllStatusKey, type AssetTeleported, type AssetTeleportedResponse, type AvailableLiquidity, type Bid, type BidStorageEntry, type BidSubmissionResult, type BlockMetadata, type BridgeParams, type BridgeStep, type BundlerGasEstimate, BundlerMethod, type BuyAndSellRates, type BytesLikeHex, type CancelEvent, type CancelOptions, type CancelOrderOptions, type CancelQuote, type ChainConfig, type ChainConfigData, ChainConfigService, Chains, type ClientConfig, type ConfiguredAssetSymbol, type ConfiguredAssetSymbolInput, CryptoUtils, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, type DecodedOrderPlacedLog, type DecodedPostRequestEvent, type DecodedPostResponseEvent, type Deployment, type DispatchGet, type DispatchInfo, type DispatchPost, ERC20Method, type ERC7821Call, ERC7821_BATCH_MODE, type Erc4626VaultConfigData, type EstimateFillOrderParams, type EstimateGasCallData, EvmChain, type EvmChainParams, ABI as EvmHostABI, EvmLanguage, type ExecuteIntentOrderOptions, type ExecutionResult, type FillOptions, type FillOrderEstimate, type FillerBid, type FillerConfig, type GetRequestResponse, type GetRequestWithStatus, type GetResponseByRequestIdResponse, type GetResponseStorageValues, type HexString$1 as HexString, type HostParams, HyperClientStatus, HyperFungibleToken, HyperFungibleTokenABI, type HyperbridgeTxEvents, type IBatchConsensusAndGetResponseMessage, type IBatchConsensusAndPostRequestMessage, type IChain, type IConfig, type IConsensusMessage, type IEvmChain, type IEvmConfig, type IGetRequest, type IGetRequestMessage, type IGetResponse, type IGetResponseMessage, type IHyperbridgeConfig, type IIsmpMessage, type IMessage, INCLUSION_TIMEOUT_MS, type IPharosConfig, type IPolkadotHubConfig, type IPostRequest, type IPostResponse, type IProof, type IRequestMessage, type ISubstrateConfig, type ITimeoutPostRequestMessage, type IndexerQueryClient, IntentGateway, ABI$1 as IntentGatewayABI, type IntentGatewayContext, type IntentGatewayParams, IntentOrderStatus, type IntentOrderStatusKey, type IntentOrderStatusUpdate, type IntentQuoteStrategy, type IntentQuoteTradeType, IntentsCoprocessor, InvalidLiquidityIndexerResponseError, InvalidPhantomSnapshotError, IsmpClient, type IsmpRequest, type LiquiditySlice, MOCK_ADDRESS, ORDER_V2_PARAM_TYPE, type Order, type OrderFeesQuote, type OrderResponse, OrderStatus, OrderStatusChecker, type OrderStatusMetadata, type OrderWithStatus, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, type PackedUserOperation, type Params, type PaymentInfo, type PhantomBid, type PhantomBidBatchResult, type PhantomBidDeclaration, type PhantomBidOutcome, type PhantomOrderEvent, type PhantomOrderLeg, type PhantomOrderPriceSnapshot, type PhantomOrderPriceSnapshotsResponse, type PhantomSnapshotIntentQuoteMetadata, type PhantomSnapshotQuoteIntentResult, PhantomSnapshotUnavailableError, PharosChain, type PharosChainParams, PolkadotHubChain, type PolkadotHubChainParams, type PollPhantomOrdersOptions, type PostRequestStatus, type PostRequestTimeoutStatus, type PostRequestWithStatus, type 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, type RequestBody, type RequestCommitment, RequestKind, type RequestResponse, RequestStatus, type RequestStatusKey, type RequestStatusWithMetadata, type ResponseCommitmentWithValues, type ResumeIntentOrderOptions, type RetryConfig, SELECT_SOLVER_TYPEHASH, STATE_COMMITMENTS_SLOT, type SelectBidResult, type SelectOptions, type SigningAccount, type StateMachineHeight, type StateMachineId, type StateMachineIdParams, type StateMachineResponse, type StateMachineUpdate, type StorageFacade, type SubmitBidOptions, SubstrateChain, Swap, TESTNET_CHAINS, type TeleportParams, TeleportStatus, TimeoutStatus, type TimeoutStatusKey, TokenGateway, type TokenGatewayAssetTeleportedResponse, type TokenGatewayAssetTeleportedWithStatus, type TokenInfo, type TokenPrice, type TokenPricesResponse, type Transaction, TronChain, type TronChainParams, USE_ETHERSCAN_CHAINS, type UniswapProtocol, type UniswapQuote, type UniswapQuoteToken, type UniswapTradeType, type UniswapV4IntentQuoteMetadata, type UniswapV4IntentQuoteOptions, type UniswapV4PoolConfigData, type UniswapV4PoolKey, type UniswapV4QuoteIntentResult, UnsupportedIntentQuotePairError, UnsupportedIntentQuoteStrategyError, UnsupportedLiquidityAssetError, UnsupportedLiquidityChainError, WrappedHyperFungibleTokenABI, type XcmGatewayParams, __test, adjustDecimals, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, chainConfigs, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, convertCodecToIGetRequest, convertCodecToIProof, convertIGetRequestToCodec, convertIProofToCodec, convertStateIdToStateMachineId, convertStateMachineEnumToString, convertStateMachineIdToEnum, createEvmChain, createQueryClient, decodeAcceptedSourceChains, decodeERC7821ExecuteBatch, decodePhantomBidDeclaration, decodeUserOpScale, deriveHttpUrl, encodeAcceptedSourceChains, encodeERC7821ExecuteBatch, encodeISMPMessage, encodePhantomBidDeclaration, encodeStateMachineId, encodeUserOpScale, encodeWithdrawalRequest, estimateGasForPost, fetchPrice, fetchSourceProof, generateRootWithProof, getChainId, getConfigByStateMachineId, getContractCallInput, getContractCallInputs, getGasPriceFromEtherscan, getOrFetchStorageSlot, getOrderPlacedFromTx, getPostRequestEventFromTx, getPostResponseEventFromTx, getRequestCommitment, getStateCommitmentFieldSlot, getStateCommitmentSlot, getStorageSlot, getViemChain, hexToString, hyperbridgeAddress, maxBigInt, normalizeAddressForEvmBytes32, normalizeAddressForStateMachine, normalizeEvmAddress, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, parseStateMachineId, pharosAtlantic, pharosMainnet, polkadotAssetHubPaseo, polkadotHubMainnet, poolSlug, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, requestCommitmentKey, responseCommitmentKey, retryPromise, sortPoolSymbols, teleport, teleportDot, transformOrderForContract, tronChainIds, tronNile };
|