@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.
@@ -993,6 +993,16 @@ declare class ChainConfigService {
993
993
  };
994
994
  getDaiAsset(chain: string): HexString;
995
995
  getAssetAddress(chain: string, symbol: ConfiguredAssetSymbol): HexString | undefined;
996
+ /**
997
+ * Resolves configured token metadata from an address on a specific chain.
998
+ * This is used by SDK helpers that accept token addresses rather than caller-
999
+ * supplied symbols or decimals.
1000
+ */
1001
+ getAssetMetadataByAddress(chain: string, address: HexString): {
1002
+ symbol: ConfiguredAssetSymbol;
1003
+ address: HexString;
1004
+ decimals?: number;
1005
+ } | undefined;
996
1006
  getUsdtAsset(chain: string): HexString;
997
1007
  getUsdcAsset(chain: string): HexString;
998
1008
  getUsdcDecimals(chain: string): number;
@@ -3332,6 +3342,34 @@ interface OrderResponse {
3332
3342
  }>;
3333
3343
  };
3334
3344
  }
3345
+ interface PhantomOrderPriceSnapshot {
3346
+ commitment: HexString;
3347
+ tokenA: HexString;
3348
+ tokenB: HexString;
3349
+ standardAmount: bigint;
3350
+ blockNumber: bigint;
3351
+ medianPrice: bigint;
3352
+ lowestPrice?: bigint;
3353
+ highestPrice?: bigint;
3354
+ bidCount: number;
3355
+ snapshotTime: Date;
3356
+ }
3357
+ interface PhantomOrderPriceSnapshotsResponse {
3358
+ phantomOrderPriceSnapshots: {
3359
+ nodes: Array<{
3360
+ commitment: string;
3361
+ tokenA: string;
3362
+ tokenB: string;
3363
+ standardAmount: string;
3364
+ blockNumber: string;
3365
+ medianPrice: string | null;
3366
+ lowestPrice: string | null;
3367
+ highestPrice: string | null;
3368
+ bidCount: number;
3369
+ snapshotTime: string;
3370
+ }>;
3371
+ };
3372
+ }
3335
3373
  interface TokenPrice {
3336
3374
  symbol: string;
3337
3375
  address?: string;
@@ -4630,19 +4668,8 @@ interface IntentGatewayContext {
4630
4668
  swap: Swap;
4631
4669
  }
4632
4670
 
4633
- type IntentQuoteStrategy = "uniswap_v4";
4671
+ type IntentQuoteStrategy = "uniswap_v4" | "phantom_snapshot";
4634
4672
  type IntentQuoteTradeType = "EXACT_INPUT" | "EXACT_OUTPUT";
4635
- /**
4636
- * Token metadata required by intent quote strategies.
4637
- */
4638
- interface IntentQuoteToken {
4639
- /** Token contract address on the user/source side. */
4640
- address: HexString;
4641
- /** Token decimals for raw amount formatting by the caller. */
4642
- decimals: number;
4643
- /** Optional token symbol used only to match SDK-configured destination pools. */
4644
- symbol?: string;
4645
- }
4646
4673
  /**
4647
4674
  * Full Uniswap V4 PoolKey. V4 pools cannot be discovered from a token pair alone.
4648
4675
  */
@@ -4659,7 +4686,7 @@ interface UniswapV4IntentQuoteOptions {
4659
4686
  quoterAddress?: HexString;
4660
4687
  /**
4661
4688
  * Destination-side address of the input currency. Defaults to
4662
- * `tokenIn.address`, which only works for same-chain quotes; pass this
4689
+ * `tokenIn`, which only works for same-chain quotes; pass this
4663
4690
  * explicitly when source and destination chains differ. Must equal
4664
4691
  * `currency0` or `currency1`.
4665
4692
  */
@@ -4670,13 +4697,17 @@ interface UniswapV4IntentQuoteOptions {
4670
4697
  * Parameters for `IntentGateway.quoteIntent`. The source and destination
4671
4698
  * chains come from the gateway instance itself.
4672
4699
  *
4673
- * `strategy` defaults to `uniswap_v4`, which is currently the only supported
4674
- * strategy. Provide exactly one of `amountIn` or `amountOut`.
4700
+ * Quotes default to `phantom_snapshot`. Pass `strategy: "uniswap_v4"` only to
4701
+ * explicitly request a Uniswap quote. `tokenIn` and `tokenOut` are token
4702
+ * addresses; the SDK resolves configured token metadata internally. Provide
4703
+ * exactly one of `amountIn` or `amountOut`.
4675
4704
  */
4676
4705
  interface QuoteIntentParams {
4677
4706
  strategy?: IntentQuoteStrategy;
4678
- tokenIn: IntentQuoteToken;
4679
- tokenOut: IntentQuoteToken;
4707
+ /** Token address on the source chain. */
4708
+ tokenIn: HexString;
4709
+ /** Token address on the destination chain. */
4710
+ tokenOut: HexString;
4680
4711
  amountIn?: bigint;
4681
4712
  amountOut?: bigint;
4682
4713
  uniswapV4?: UniswapV4IntentQuoteOptions;
@@ -4693,21 +4724,46 @@ interface UniswapV4IntentQuoteMetadata {
4693
4724
  */
4694
4725
  protocolFeeBps: bigint;
4695
4726
  }
4727
+ interface PhantomSnapshotIntentQuoteMetadata {
4728
+ /** Canonical chain whose directional Phantom pair addresses identify the feed. */
4729
+ quoteChain: string;
4730
+ /** Phantom order whose bids produced this snapshot. */
4731
+ commitment: HexString;
4732
+ tokenA: HexString;
4733
+ tokenB: HexString;
4734
+ /** Benchmark input and liquidity-weighted median output, both in raw token units. */
4735
+ standardAmount: bigint;
4736
+ medianPrice: bigint;
4737
+ lowestPrice?: bigint;
4738
+ highestPrice?: bigint;
4739
+ blockNumber: bigint;
4740
+ snapshotTime: Date;
4741
+ bidCount: number;
4742
+ /** Source gateway protocol fee already reflected in the returned quote amounts. */
4743
+ protocolFeeBps: bigint;
4744
+ }
4696
4745
  /**
4697
4746
  * Quote data partners need before constructing an IntentGateway V2 order.
4698
4747
  *
4699
4748
  * `amountIn` and `amountOut` already account for the IntentGateway protocol
4700
4749
  * fee that the gateway deducts from order inputs (see `quoteMetadata`). No
4701
- * further fee adjustment is required before placing the order; apply only your
4702
- * own slippage tolerance.
4750
+ * further fee or slippage adjustment is required before placing the order.
4703
4751
  */
4704
- interface QuoteIntentResult {
4752
+ interface UniswapV4QuoteIntentResult {
4705
4753
  strategy: "uniswap_v4";
4706
4754
  tradeType: IntentQuoteTradeType;
4707
4755
  amountIn: bigint;
4708
4756
  amountOut: bigint;
4709
4757
  quoteMetadata: UniswapV4IntentQuoteMetadata;
4710
4758
  }
4759
+ interface PhantomSnapshotQuoteIntentResult {
4760
+ strategy: "phantom_snapshot";
4761
+ tradeType: IntentQuoteTradeType;
4762
+ amountIn: bigint;
4763
+ amountOut: bigint;
4764
+ quoteMetadata: PhantomSnapshotIntentQuoteMetadata;
4765
+ }
4766
+ type QuoteIntentResult = UniswapV4QuoteIntentResult | PhantomSnapshotQuoteIntentResult;
4711
4767
  declare class UnsupportedIntentQuoteStrategyError extends Error {
4712
4768
  constructor(strategy: string);
4713
4769
  }
@@ -4715,18 +4771,25 @@ declare class UnsupportedIntentQuotePairError extends Error {
4715
4771
  constructor(params: {
4716
4772
  source: string;
4717
4773
  destination: string;
4718
- tokenIn: IntentQuoteToken;
4719
- tokenOut: IntentQuoteToken;
4774
+ tokenIn: HexString;
4775
+ tokenOut: HexString;
4776
+ quoteSource?: string;
4720
4777
  });
4721
4778
  }
4779
+ declare class PhantomSnapshotUnavailableError extends Error {
4780
+ constructor(tokenA: HexString, tokenB: HexString);
4781
+ }
4782
+ declare class InvalidPhantomSnapshotError extends Error {
4783
+ constructor(commitment: HexString, reason: string);
4784
+ }
4722
4785
 
4723
4786
  /**
4724
4787
  * High-level facade for the IntentGatewayV2 protocol.
4725
4788
  *
4726
4789
  * `IntentGateway` orchestrates the complete lifecycle of an intent-based
4727
4790
  * cross-chain swap:
4728
- * - **Quoting** — prices the order's input/output amounts via the configured
4729
- * quote strategies (currently Uniswap V4) before order construction.
4791
+ * - **Quoting** — prices the order's input/output amounts via Phantom order
4792
+ * snapshots by default, with Uniswap V4 available as an explicit strategy.
4730
4793
  * - **Order placement** — encodes and yields `placeOrder` calldata; caller
4731
4794
  * signs and submits the transaction.
4732
4795
  * - **Order execution** — polls the Hyperbridge coprocessor for solver bids,
@@ -4807,19 +4870,21 @@ declare class IntentGateway {
4807
4870
  /**
4808
4871
  * Quotes an intent between this gateway's source and destination chains.
4809
4872
  *
4810
- * `strategy` defaults to `uniswap_v4`, currently the only supported
4811
- * strategy. Provide exactly one of `amountIn` or `amountOut`.
4873
+ * Uses the latest directional Phantom order price snapshot from the attached
4874
+ * indexer by default. Pass `strategy: "uniswap_v4"` only when explicitly
4875
+ * requesting a Uniswap quote. Provide exactly one of `amountIn` or `amountOut`.
4812
4876
  *
4813
- * The Uniswap quote strategy always prices against the configured Base
4814
- * pool, regardless of this gateway's destination chain. Returned
4877
+ * Both built-in strategies resolve their canonical market on Base,
4878
+ * regardless of this gateway's destination chain. Returned
4815
4879
  * `amountIn`/`amountOut` already account for the gateway's protocol fee
4816
4880
  * (`quoteMetadata.protocolFeeBps`), which the gateway deducts from order
4817
- * inputs; apply only your own slippage tolerance before placing the order.
4881
+ * inputs; use the returned amounts directly when placing the order.
4818
4882
  *
4819
4883
  * @param params - Token pair, amount, and optional strategy/pool overrides.
4820
4884
  * @returns The quoted amounts plus strategy-specific metadata.
4821
4885
  * @throws {UnsupportedIntentQuoteStrategyError} For unknown strategies.
4822
- * @throws {UnsupportedIntentQuotePairError} When no pool is configured for the pair.
4886
+ * @throws {UnsupportedIntentQuotePairError} When the selected strategy does not support the pair.
4887
+ * @throws {PhantomSnapshotUnavailableError} When an eligible cNGN pair has no snapshot.
4823
4888
  */
4824
4889
  quoteIntent(params: QuoteIntentParams): Promise<QuoteIntentResult>;
4825
4890
  /**
@@ -4827,8 +4892,10 @@ declare class IntentGateway {
4827
4892
  * placement, fee estimation, bid collection, and execution.
4828
4893
  *
4829
4894
  * **Yield/receive protocol:**
4830
- * 1. If `order.fees` is unset or zero, estimates gas and sets `order.fees`
4831
- * with a 1% buffer and the wei cost with a 2% buffer for the `value` field.
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.
4832
4899
  * 2. Yields `AWAITING_PLACE_ORDER` with `{ to, data, value, sessionPrivateKey }`.
4833
4900
  * The caller must sign the transaction and pass it back via `gen.next(signedTx)`.
4834
4901
  * 3. Yields `ORDER_PLACED` with the finalised order and transaction hash once
@@ -10322,4 +10389,4 @@ declare function teleport(teleport_param: {
10322
10389
  extrinsics?: Array<SubmittableExtrinsic<"promise", ISubmittableResult>>;
10323
10390
  }): Promise<ReadableStream<HyperbridgeTxEvents>>;
10324
10391
 
10325
- 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 IntentQuoteToken, type IntentQuoteTradeType, IntentsCoprocessor, 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, 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, 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 };
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 };