@hyperbridge/sdk 2.4.2 → 2.6.0

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.
@@ -910,6 +910,10 @@ interface ChainConfigData {
910
910
  USDT: string;
911
911
  cNGN?: string;
912
912
  EXT?: string;
913
+ ZARP?: string;
914
+ EURC?: string;
915
+ XSGD?: string;
916
+ TRYB?: string;
913
917
  };
914
918
  tokenDecimals?: {
915
919
  USDC: number;
@@ -963,6 +967,8 @@ interface ChainConfigData {
963
967
  UniswapV4StateView?: `0x${string}`;
964
968
  /** Circle Paymaster contract address (USDC-based ERC-4337 paymaster) */
965
969
  CirclePaymaster?: `0x${string}`;
970
+ /** SimplexPaymaster contract address (ERC-4337 paymaster accepting USDC/USDT via Chainlink pricing) */
971
+ SimplexPaymaster?: `0x${string}`;
966
972
  };
967
973
  rpcEnvKey?: string;
968
974
  defaultRpcUrl?: string;
@@ -1008,6 +1014,13 @@ declare class ChainConfigService {
1008
1014
  getUsdcDecimals(chain: string): number;
1009
1015
  getUsdtDecimals(chain: string): number;
1010
1016
  getCNgnAsset(chain: string): HexString | undefined;
1017
+ /**
1018
+ * Address of `symbol` on `chain` from the per-chain asset table, matched
1019
+ * case-insensitively ("cNGN" ≡ "CNGN"). This table is the single source of
1020
+ * truth for token addresses — the simplex asset registry resolves through
1021
+ * it, so a new asset is added once in `chain.ts` and nowhere else.
1022
+ */
1023
+ getAssetBySymbol(chain: string, symbol: string): HexString | undefined;
1011
1024
  getCNgnDecimals(chain: string): number | undefined;
1012
1025
  getExtAsset(chain: string): HexString | undefined;
1013
1026
  getExtDecimals(chain: string): number | undefined;
@@ -1038,6 +1051,7 @@ declare class ChainConfigService {
1038
1051
  getPopularTokens(chain: string): string[];
1039
1052
  getEntryPointV08Address(chain: string): HexString;
1040
1053
  getCirclePaymasterAddress(chain: string): HexString | undefined;
1054
+ getSimplexPaymasterAddress(chain: string): HexString | undefined;
1041
1055
  getHyperbridgeAddress(): string;
1042
1056
  /**
1043
1057
  * Get the LayerZero Endpoint ID for the chain
@@ -1420,6 +1434,10 @@ declare function normalizeEvmChainId(chainId: number | string): {
1420
1434
  };
1421
1435
  declare function encodeStateMachineId(stateMachineId: string): HexString;
1422
1436
  declare function normalizeAddressForEvmBytes32(address: string): HexString;
1437
+ /**
1438
+ * Validates an EVM address and returns its canonical lowercase representation.
1439
+ */
1440
+ declare function normalizeEvmAddress(address: string, field?: string): HexString;
1423
1441
  declare function normalizeAddressForStateMachine(address: string, stateMachineId: string): HexString;
1424
1442
  /**
1425
1443
  * Retries a promise-returning operation with exponential backoff.
@@ -1871,6 +1889,23 @@ interface PhantomOrderEvent {
1871
1889
  tokenB: HexString;
1872
1890
  standardAmount: bigint;
1873
1891
  }
1892
+ interface PollPhantomOrdersOptions {
1893
+ /** How often to check for a new head. Defaults to 6s, roughly one block. */
1894
+ intervalMs?: number;
1895
+ /**
1896
+ * Most blocks scanned in a single poll, so a long outage catches up over several ticks instead of
1897
+ * one unbounded scan. Defaults to 500.
1898
+ */
1899
+ maxBlocksPerPoll?: number;
1900
+ /**
1901
+ * How many blocks before the current head to start from on the first poll. Defaults to 0 (start
1902
+ * at the head). Set this to the runtime's bid window to have a restarting process pick up orders
1903
+ * whose window is still open.
1904
+ */
1905
+ lookbackBlocks?: number;
1906
+ /** Notified when a poll fails; polling continues regardless. */
1907
+ onError?: (err: unknown) => void;
1908
+ }
1874
1909
  /**
1875
1910
  * Service for interacting with Hyperbridge's pallet-intents coprocessor.
1876
1911
  * Handles bid submission and retrieval for the IntentGatewayV2 protocol.
@@ -2015,11 +2050,26 @@ declare class IntentsCoprocessor {
2015
2050
  */
2016
2051
  fetchPhantomOrder(commitment: HexString): Promise<Order | null>;
2017
2052
  /**
2018
- * Subscribes to PhantomOrderRegistered events from the intents coprocessor pallet.
2019
- * Calls the callback for each new phantom order as blocks arrive.
2020
- * Returns an unsubscribe function to stop the subscription.
2053
+ * Reads the PhantomOrderRegistered events emitted in a single block.
2021
2054
  */
2022
- subscribePhantomOrders(callback: (event: PhantomOrderEvent) => void): Promise<() => void>;
2055
+ getPhantomOrdersInBlock(blockNumber: number): Promise<PhantomOrderEvent[]>;
2056
+ /**
2057
+ * Polls for newly registered phantom orders, invoking the callback once per order.
2058
+ *
2059
+ * Each tick reads the current head and scans every block between the last one processed and that
2060
+ * head, so the block cursor — not the connection — determines what has been seen. This replaced a
2061
+ * system.events subscription, which was only as reliable as its socket: polkadot-js reconnects
2062
+ * the transport but does not reliably re-establish storage subscriptions, and anything emitted
2063
+ * while disconnected was lost silently. With a bid window measured in a handful of blocks, that
2064
+ * meant silently missed bids.
2065
+ *
2066
+ * Scanning a block range is gap-free rather than merely self-healing: an outage delays orders but
2067
+ * cannot drop them, because the cursor only advances past a block whose events were actually
2068
+ * read. Recovery replays the backlog.
2069
+ *
2070
+ * Returns a function that stops polling.
2071
+ */
2072
+ pollPhantomOrders(callback: (event: PhantomOrderEvent) => void, options?: PollPhantomOrdersOptions): () => void;
2023
2073
  }
2024
2074
 
2025
2075
  /**
@@ -2505,6 +2555,8 @@ interface RetryConfig {
2505
2555
  backoffMs: number;
2506
2556
  logMessage?: string;
2507
2557
  logger?: ConsolaInstance;
2558
+ /** Return false to stop retrying and immediately rethrow the error. */
2559
+ shouldRetry?: (error: unknown) => boolean;
2508
2560
  }
2509
2561
  interface IsmpRequest {
2510
2562
  source: string;
@@ -3370,6 +3422,26 @@ interface PhantomOrderPriceSnapshotsResponse {
3370
3422
  }>;
3371
3423
  };
3372
3424
  }
3425
+ /**
3426
+ * Total solver liquidity measured at one immutable Phantom price snapshot.
3427
+ *
3428
+ * Liquidity amounts are decimal strings formatted with the configured decimals
3429
+ * for their respective `tokenAddress` and chain.
3430
+ */
3431
+ interface AvailableLiquiditySnapshot {
3432
+ totalLiquidity: string;
3433
+ providerCount: number;
3434
+ tokenAddress: HexString;
3435
+ snapshotTime: Date;
3436
+ liquidityByChain: AvailableLiquidityByChain[];
3437
+ }
3438
+ /** Liquidity for one chain/token balance group in an availability snapshot. */
3439
+ interface AvailableLiquidityByChain {
3440
+ chain: string;
3441
+ tokenAddress: HexString;
3442
+ totalLiquidity: string;
3443
+ providerCount: number;
3444
+ }
3373
3445
  interface TokenPrice {
3374
3446
  symbol: string;
3375
3447
  address?: string;
@@ -3527,6 +3599,13 @@ interface FillOrderEstimate {
3527
3599
  maxPriorityFeePerGas: bigint;
3528
3600
  totalGasCostWei: bigint;
3529
3601
  totalGasInFeeToken: bigint;
3602
+ /**
3603
+ * Relayer fee for the cross-chain settlement message, denominated in the
3604
+ * SOURCE fee token (same unit as `Order.fees`). This is `RELAYER_MESSAGE_GAS`
3605
+ * priced on the source chain; it is 0 for same-chain fills. A filler's
3606
+ * `order.fees` must cover `totalGasInFeeToken + relayerFeeInSourceFeeToken`.
3607
+ */
3608
+ relayerFeeInSourceFeeToken: bigint;
3530
3609
  }
3531
3610
  /**
3532
3611
  * Result of submitting a bid to Hyperbridge
@@ -4592,9 +4671,9 @@ interface BundlerGasEstimate {
4592
4671
  * - `AWAITING_CANCEL_TRANSACTION` – the caller must sign and submit the cancel tx.
4593
4672
  * - `CANCEL_STARTED` – the cancel transaction was confirmed on-chain.
4594
4673
  * - `SOURCE_FINALIZED` – the cancel request has been finalised on the source chain.
4595
- * - `HYPERBRIDGE_DELIVERED` – the cancel message has been delivered to Hyperbridge.
4596
- * - `HYPERBRIDGE_FINALIZED` – the cancel message has been finalised on Hyperbridge.
4597
- * - `CANCELLATION_COMPLETE` – the escrow has been refunded; cancellation is done.
4674
+ * - `HYPERBRIDGE_DELIVERED` – the cancel message has been delivered to Hyperbridge.
4675
+ * - `HYPERBRIDGE_FINALIZED` – the cancel message has been finalised on Hyperbridge.
4676
+ * - `CANCELLATION_COMPLETE` – the escrow has been refunded; cancellation is done.
4598
4677
  */
4599
4678
  type CancelEvent = {
4600
4679
  status: "DESTINATION_FINALIZED";
@@ -4833,6 +4912,8 @@ declare class IntentGateway {
4833
4912
  private readonly gasEstimator;
4834
4913
  /** Quote strategies for pricing orders before placement, keyed by strategy name. */
4835
4914
  private readonly quoteStrategies;
4915
+ /** Resolves order tokens to canonical Phantom snapshot market pairs. */
4916
+ private readonly phantomSnapshotPairResolver;
4836
4917
  /**
4837
4918
  * Private constructor — use {@link IntentGateway.create} instead.
4838
4919
  *
@@ -4887,15 +4968,29 @@ declare class IntentGateway {
4887
4968
  * @throws {PhantomSnapshotUnavailableError} When an eligible cNGN pair has no snapshot.
4888
4969
  */
4889
4970
  quoteIntent(params: QuoteIntentParams): Promise<QuoteIntentResult>;
4971
+ /**
4972
+ * Returns the output-token liquidity measured in the latest directional
4973
+ * Phantom snapshot for this gateway's source and destination.
4974
+ *
4975
+ * Pair resolution uses the same canonical Base market as {@link quoteIntent}.
4976
+ * The snapshot itself determines the output token and chain to aggregate. The
4977
+ * amount is in the token's smallest unit and reflects the indexer's
4978
+ * `snapshotTime`; it is not a live reservation or fill guarantee.
4979
+ *
4980
+ * Requires a prior call to {@link withQueryClient}.
4981
+ */
4982
+ queryAvailableLiquidity(params: Pick<QuoteIntentParams, "tokenIn" | "tokenOut">): Promise<AvailableLiquiditySnapshot | undefined>;
4890
4983
  /**
4891
4984
  * Bidirectional async generator that orchestrates the full order lifecycle:
4892
4985
  * placement, fee estimation, bid collection, and execution.
4893
4986
  *
4894
4987
  * **Yield/receive protocol:**
4895
- * 1. If `order.fees` is unset or zero, estimates gas and sets same-chain
4896
- * `order.fees` to twice the estimate. Cross-chain orders retain a 1% buffer
4897
- * and include an additional 600k-gas fee uplift, while the wei cost used for
4898
- * the `value` field receives a 2% buffer.
4988
+ * 1. If `order.fees` is unset or zero, estimates gas on an internal copy and
4989
+ * sets same-chain fees to twice the estimate. Cross-chain orders attach
4990
+ * (fill gas + a settlement-message uplift of `RELAYER_MESSAGE_GAS`, the
4991
+ * same gas budget the solver's relayer fee uses) with a 5% buffer over
4992
+ * the whole sum — strictly above the solver's unpadded requirement. The
4993
+ * wei cost used for the `value` field receives a 2% buffer.
4899
4994
  * 2. Yields `AWAITING_PLACE_ORDER` with `{ to, data, value, sessionPrivateKey }`.
4900
4995
  * The caller must sign the transaction and pass it back via `gen.next(signedTx)`.
4901
4996
  * 3. Yields `ORDER_PLACED` with the finalised order and transaction hash once
@@ -4903,8 +4998,8 @@ declare class IntentGateway {
4903
4998
  * 4. Delegates to {@link OrderExecutor.executeOrder} and forwards all
4904
4999
  * subsequent status updates until the order is filled, exhausted, or fails.
4905
5000
  *
4906
- * @param order - The order to place and execute. `order.fees` may be 0; it
4907
- * will be estimated automatically if so.
5001
+ * @param order - The order to place and execute. It is not mutated. `order.fees`
5002
+ * may be 0; fees are estimated automatically if so.
4908
5003
  * @param graffiti - Optional bytes32 tag for orderflow attribution /
4909
5004
  * revenue share. Defaults to {@link DEFAULT_GRAFFITI}.
4910
5005
  * @param options - Optional tuning parameters:
@@ -10389,4 +10484,4 @@ declare function teleport(teleport_param: {
10389
10484
  extrinsics?: Array<SubmittableExtrinsic<"promise", ISubmittableResult>>;
10390
10485
  }): Promise<ReadableStream<HyperbridgeTxEvents>>;
10391
10486
 
10392
- export { ADDRESS_ZERO, type AllStatusKey, type AssetTeleported, type AssetTeleportedResponse, type Bid, type BidStorageEntry, type BidSubmissionResult, type BlockMetadata, type BridgeParams, type BridgeStep, type BundlerGasEstimate, BundlerMethod, type BytesLikeHex, type CancelEvent, type CancelOptions, type CancelOrderOptions, type CancelQuote, type ChainConfig, type ChainConfigData, ChainConfigService, Chains, type ClientConfig, type ConfiguredAssetSymbol, 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 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, 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, 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, InvalidPhantomSnapshotError, IsmpClient, type IsmpRequest, MOCK_ADDRESS, ORDER_V2_PARAM_TYPE, type Order, type OrderResponse, OrderStatus, OrderStatusChecker, type OrderStatusMetadata, type OrderWithStatus, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, type PackedUserOperation, type Params, type PaymentInfo, type PhantomOrderEvent, type PhantomOrderPriceSnapshot, type PhantomOrderPriceSnapshotsResponse, type PhantomSnapshotIntentQuoteMetadata, type PhantomSnapshotQuoteIntentResult, PhantomSnapshotUnavailableError, PharosChain, type PharosChainParams, PolkadotHubChain, type PolkadotHubChainParams, type PostRequestStatus, type PostRequestTimeoutStatus, type 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, 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, WrappedHyperFungibleTokenABI, type XcmGatewayParams, __test, adjustDecimals, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, chainConfigs, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, convertCodecToIGetRequest, convertCodecToIProof, convertIGetRequestToCodec, convertIProofToCodec, convertStateIdToStateMachineId, convertStateMachineEnumToString, convertStateMachineIdToEnum, createEvmChain, createQueryClient, decodeERC7821ExecuteBatch, decodeUserOpScale, encodeERC7821ExecuteBatch, encodeISMPMessage, 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, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, parseStateMachineId, pharosAtlantic, pharosMainnet, polkadotAssetHubPaseo, polkadotHubMainnet, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, requestCommitmentKey, responseCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract, tronChainIds, tronNile };
10487
+ export { ADDRESS_ZERO, type AllStatusKey, type AssetTeleported, type AssetTeleportedResponse, type AvailableLiquidityByChain, type AvailableLiquiditySnapshot, type Bid, type BidStorageEntry, type BidSubmissionResult, type BlockMetadata, type BridgeParams, type BridgeStep, type BundlerGasEstimate, BundlerMethod, type BytesLikeHex, type CancelEvent, type CancelOptions, type CancelOrderOptions, type CancelQuote, type ChainConfig, type ChainConfigData, ChainConfigService, Chains, type ClientConfig, type ConfiguredAssetSymbol, 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 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, 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, 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, InvalidPhantomSnapshotError, IsmpClient, type IsmpRequest, MOCK_ADDRESS, ORDER_V2_PARAM_TYPE, type Order, type OrderResponse, OrderStatus, OrderStatusChecker, type OrderStatusMetadata, type OrderWithStatus, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, type PackedUserOperation, type Params, type PaymentInfo, type PhantomOrderEvent, type PhantomOrderPriceSnapshot, type PhantomOrderPriceSnapshotsResponse, type PhantomSnapshotIntentQuoteMetadata, type PhantomSnapshotQuoteIntentResult, PhantomSnapshotUnavailableError, PharosChain, type PharosChainParams, PolkadotHubChain, type PolkadotHubChainParams, type PollPhantomOrdersOptions, type PostRequestStatus, type PostRequestTimeoutStatus, type 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, 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, WrappedHyperFungibleTokenABI, type XcmGatewayParams, __test, adjustDecimals, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, chainConfigs, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, convertCodecToIGetRequest, convertCodecToIProof, convertIGetRequestToCodec, convertIProofToCodec, convertStateIdToStateMachineId, convertStateMachineEnumToString, convertStateMachineIdToEnum, createEvmChain, createQueryClient, decodeERC7821ExecuteBatch, decodeUserOpScale, encodeERC7821ExecuteBatch, encodeISMPMessage, 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, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, requestCommitmentKey, responseCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract, tronChainIds, tronNile };