@hyperbridge/sdk 1.6.7 → 1.7.1

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.
@@ -1248,7 +1248,7 @@ declare class EvmChain implements IChain {
1248
1248
  * @returns The nonce of the host
1249
1249
  */
1250
1250
  getHostNonce(): Promise<bigint>;
1251
- broadcastTransaction(signedTransaction: any): Promise<TransactionReceipt>;
1251
+ broadcastTransaction(signedTransaction: HexString): Promise<TransactionReceipt>;
1252
1252
  }
1253
1253
  /**
1254
1254
  * Factory function for creating EVM chain instances with common defaults
@@ -1342,6 +1342,8 @@ declare class IntentsCoprocessor {
1342
1342
  private api;
1343
1343
  private substratePrivateKey?;
1344
1344
  private ownsConnection;
1345
+ /** Cached result of whether the node exposes intents_* RPC methods */
1346
+ private hasIntentsRpc;
1345
1347
  /**
1346
1348
  * Creates and connects an IntentsCoprocessor to a Hyperbridge node.
1347
1349
  * This creates and manages its own API connection.
@@ -1377,6 +1379,11 @@ declare class IntentsCoprocessor {
1377
1379
  * Supports both hex seed (without 0x prefix) and mnemonic phrases
1378
1380
  */
1379
1381
  getKeyPair(): KeyringPair;
1382
+ /**
1383
+ * Checks if the connected node exposes intents_* RPC methods.
1384
+ * Result is cached after the first check.
1385
+ */
1386
+ private checkIntentsRpc;
1380
1387
  /**
1381
1388
  * Signs and sends an extrinsic, handling status updates and errors
1382
1389
  * Implements retry logic with progressive tip increases for stuck transactions
@@ -1414,10 +1421,24 @@ declare class IntentsCoprocessor {
1414
1421
  /**
1415
1422
  * Fetches all bids for a given order commitment from Hyperbridge.
1416
1423
  *
1424
+ * Uses the custom intents_getBidsForOrder RPC if available on the node
1425
+ * for a single round-trip. Falls back to parallel storage + offchain
1426
+ * lookups otherwise.
1427
+ *
1417
1428
  * @param commitment - The order commitment hash (bytes32)
1418
1429
  * @returns Array of FillerBid objects containing filler address, userOp, and deposit
1419
1430
  */
1420
1431
  getBidsForOrder(commitment: HexString): Promise<FillerBid[]>;
1432
+ /**
1433
+ * Fetches bids using the custom intents_getBidsForOrder RPC.
1434
+ * Single round-trip but does not include deposit amounts.
1435
+ */
1436
+ private getBidsViaRpc;
1437
+ /**
1438
+ * Fetches bids using on-chain storage entries + parallel offchain lookups.
1439
+ * Slower but works on all nodes and includes deposit amounts.
1440
+ */
1441
+ private getBidsViaStorage;
1421
1442
  /** Decodes SCALE-encoded Bid struct and SCALE-encoded PackedUserOperation */
1422
1443
  private decodeBid;
1423
1444
  /** Builds offchain storage key: "intents::bid::" + commitment + filler */
@@ -1637,7 +1658,7 @@ interface IEvmChain extends IChain {
1637
1658
  decimals: number;
1638
1659
  }>;
1639
1660
  getPlaceOrderCalldata(txHash: string, intentGatewayAddress: string): Promise<HexString>;
1640
- broadcastTransaction(signedTransaction: any): Promise<TransactionReceipt>;
1661
+ broadcastTransaction(signedTransaction: HexString): Promise<TransactionReceipt>;
1641
1662
  }
1642
1663
  /**
1643
1664
  * Returns the chain interface for a given state machine identifier.
@@ -1784,7 +1805,7 @@ declare enum TeleportStatus {
1784
1805
  REFUNDED = "REFUNDED"
1785
1806
  }
1786
1807
  interface TokenGatewayAssetTeleportedResponse {
1787
- tokenGatewayAssetTeleporteds: {
1808
+ tokenGatewayAssetTeleportedV2s: {
1788
1809
  nodes: Array<{
1789
1810
  id: string;
1790
1811
  from: string;
@@ -1866,7 +1887,7 @@ interface StateMachineUpdate {
1866
1887
  timestamp: number;
1867
1888
  }
1868
1889
  interface RequestResponse {
1869
- requests: {
1890
+ requestV2s: {
1870
1891
  nodes: Array<{
1871
1892
  source: string;
1872
1893
  dest: string;
@@ -1889,7 +1910,7 @@ interface RequestResponse {
1889
1910
  };
1890
1911
  }
1891
1912
  interface GetRequestResponse {
1892
- getRequests: {
1913
+ getRequestV2s: {
1893
1914
  nodes: Array<{
1894
1915
  source: string;
1895
1916
  dest: string;
@@ -2027,7 +2048,7 @@ interface ResponseCommitmentWithValues {
2027
2048
  values: string[];
2028
2049
  }
2029
2050
  interface RequestCommitment {
2030
- requests: {
2051
+ requestV2s: {
2031
2052
  nodes: Array<{
2032
2053
  id: string;
2033
2054
  commitment: string;
@@ -2059,7 +2080,7 @@ interface AssetTeleported {
2059
2080
  blockNumber: number;
2060
2081
  }
2061
2082
  interface AssetTeleportedResponse {
2062
- assetTeleported: AssetTeleported;
2083
+ assetTeleportedV2: AssetTeleported;
2063
2084
  }
2064
2085
  interface StateMachineIdParams {
2065
2086
  stateId: {
@@ -2443,6 +2464,11 @@ interface ExecutionResult {
2443
2464
  * The time it took to fill the order
2444
2465
  */
2445
2466
  processingTimeMs?: number;
2467
+ /**
2468
+ * The order commitment hash, returned when a bid is submitted via Hyperbridge.
2469
+ * Used for subsequent bid retraction after the order is filled on-chain.
2470
+ */
2471
+ commitment?: string;
2446
2472
  }
2447
2473
  /**
2448
2474
  * Represents a dispatch post for cross-chain communication
@@ -2675,28 +2701,6 @@ interface TokenPricesResponse {
2675
2701
  }>;
2676
2702
  };
2677
2703
  }
2678
- interface TokenRegistry {
2679
- id: string;
2680
- name: string;
2681
- symbol: string;
2682
- address?: string;
2683
- updateFrequencySeconds: number;
2684
- lastUpdatedAt: bigint;
2685
- createdAt: Date;
2686
- }
2687
- interface TokenRegistryResponse {
2688
- tokenRegistries: {
2689
- nodes: Array<{
2690
- id: string;
2691
- name: string;
2692
- symbol: string;
2693
- address: string;
2694
- updateFrequencySeconds: number;
2695
- lastUpdatedAt: bigint;
2696
- createdAt: string;
2697
- }>;
2698
- };
2699
- }
2700
2704
  /**
2701
2705
  * Represents a complete transaction structure for swap operations
2702
2706
  */
@@ -2860,7 +2864,8 @@ interface SelectOptions {
2860
2864
  }
2861
2865
  /** Status stages for the intent order execution flow */
2862
2866
  declare const IntentOrderStatus: Readonly<{
2863
- ORDER_SUBMITTED: "ORDER_SUBMITTED";
2867
+ AWAITING_PLACE_ORDER: "AWAITING_PLACE_ORDER";
2868
+ ORDER_PLACED: "ORDER_PLACED";
2864
2869
  ORDER_CONFIRMED: "ORDER_CONFIRMED";
2865
2870
  AWAITING_BIDS: "AWAITING_BIDS";
2866
2871
  BIDS_RECEIVED: "BIDS_RECEIVED";
@@ -2868,28 +2873,74 @@ declare const IntentOrderStatus: Readonly<{
2868
2873
  USEROP_SUBMITTED: "USEROP_SUBMITTED";
2869
2874
  FILLED: "FILLED";
2870
2875
  PARTIAL_FILL: "PARTIAL_FILL";
2876
+ PARTIAL_FILL_EXHAUSTED: "PARTIAL_FILL_EXHAUSTED";
2871
2877
  FAILED: "FAILED";
2872
2878
  }>;
2873
2879
  type IntentOrderStatus = typeof IntentOrderStatus;
2874
2880
  type IntentOrderStatusKey = keyof typeof IntentOrderStatus;
2875
- /** Metadata for intent order status updates */
2876
- interface IntentOrderStatusMetadata {
2877
- commitment?: HexString;
2881
+ /** Tagged union of all possible status updates yielded by the intent order execution stream */
2882
+ type IntentOrderStatusUpdate = {
2883
+ status: "AWAITING_PLACE_ORDER";
2884
+ to: HexString;
2885
+ data: HexString;
2886
+ value?: bigint;
2887
+ sessionPrivateKey: HexString;
2888
+ } | {
2889
+ status: "ORDER_PLACED";
2890
+ order: OrderV2;
2891
+ transactionHash: HexString;
2892
+ } | {
2893
+ status: "AWAITING_BIDS";
2894
+ commitment: HexString;
2895
+ totalFilledAmount: bigint;
2896
+ remainingAmount: bigint;
2897
+ } | {
2898
+ status: "BIDS_RECEIVED";
2899
+ commitment: HexString;
2900
+ bidCount: number;
2901
+ bids: FillerBid[];
2902
+ } | {
2903
+ status: "BID_SELECTED";
2904
+ commitment: HexString;
2905
+ selectedSolver: HexString;
2906
+ userOpHash: HexString;
2907
+ userOp: PackedUserOperation;
2908
+ } | {
2909
+ status: "USEROP_SUBMITTED";
2910
+ commitment: HexString;
2911
+ userOpHash: HexString;
2912
+ selectedSolver: HexString;
2878
2913
  transactionHash?: HexString;
2879
- blockHash?: HexString;
2880
- blockNumber?: number;
2881
- bidCount?: number;
2882
- bids?: FillerBid[];
2883
- selectedSolver?: HexString;
2884
- userOpHash?: HexString;
2885
- userOp?: PackedUserOperation;
2886
- error?: string;
2887
- }
2888
- /** Status update yielded by the intent order stream */
2889
- interface IntentOrderStatusUpdate {
2890
- status: IntentOrderStatusKey;
2891
- metadata: IntentOrderStatusMetadata;
2892
- }
2914
+ } | {
2915
+ status: "FILLED";
2916
+ commitment: HexString;
2917
+ userOpHash: HexString;
2918
+ selectedSolver: HexString;
2919
+ transactionHash?: HexString;
2920
+ totalFilledAmount: bigint;
2921
+ remainingAmount: bigint;
2922
+ } | {
2923
+ status: "PARTIAL_FILL";
2924
+ commitment: HexString;
2925
+ userOpHash: HexString;
2926
+ selectedSolver: HexString;
2927
+ transactionHash?: HexString;
2928
+ filledAmount?: bigint;
2929
+ totalFilledAmount: bigint;
2930
+ remainingAmount: bigint;
2931
+ } | {
2932
+ status: "PARTIAL_FILL_EXHAUSTED";
2933
+ commitment: HexString;
2934
+ totalFilledAmount?: bigint;
2935
+ remainingAmount?: bigint;
2936
+ error: string;
2937
+ } | {
2938
+ status: "FAILED";
2939
+ commitment?: HexString;
2940
+ totalFilledAmount?: bigint;
2941
+ remainingAmount?: bigint;
2942
+ error: string;
2943
+ };
2893
2944
  /** Result of selecting a bid and submitting to the bundler */
2894
2945
  interface SelectBidResult {
2895
2946
  userOp: PackedUserOperation;
@@ -2898,6 +2949,8 @@ interface SelectBidResult {
2898
2949
  commitment: HexString;
2899
2950
  txnHash?: HexString;
2900
2951
  fillStatus?: "full" | "partial";
2952
+ /** Amount filled in this user operation (best-effort, based on on-chain logs) */
2953
+ filledAmount?: bigint;
2901
2954
  }
2902
2955
  /** Options for executing an intent order */
2903
2956
  interface ExecuteIntentOrderOptions {
@@ -3701,7 +3754,7 @@ declare class IntentGateway {
3701
3754
  */
3702
3755
  private fetchDestinationProof;
3703
3756
  }
3704
- interface CancelEventMap$1 {
3757
+ interface CancelEventMap {
3705
3758
  DESTINATION_FINALIZED: {
3706
3759
  proof: IProof;
3707
3760
  };
@@ -3716,11 +3769,11 @@ interface CancelEventMap$1 {
3716
3769
  SOURCE_PROOF_RECEIVED: IProof;
3717
3770
  }
3718
3771
  type CancelEvent$1 = {
3719
- [K in keyof CancelEventMap$1]: {
3772
+ [K in keyof CancelEventMap]: {
3720
3773
  status: K;
3721
- data: CancelEventMap$1[K];
3774
+ data: CancelEventMap[K];
3722
3775
  };
3723
- }[keyof CancelEventMap$1];
3776
+ }[keyof CancelEventMap];
3724
3777
 
3725
3778
  type StorageDriverKey = "node" | "localstorage" | "indexeddb" | "memory";
3726
3779
  interface CancellationStorageOptions {
@@ -3822,6 +3875,15 @@ declare function createCancellationStorage(options?: CancellationStorageOptions)
3822
3875
  }) | boolean): Promise<void>;
3823
3876
  };
3824
3877
  }>;
3878
+ /**
3879
+ * Creates a simple string-based storage for tracking used user operations per commitment.
3880
+ * Values are stored as raw strings under their provided keys.
3881
+ */
3882
+ declare function createUsedUserOpsStorage(options?: SessionKeyStorageOptions): Readonly<{
3883
+ getItem: (key: string) => Promise<string | null>;
3884
+ setItem: (key: string, value: string) => Promise<void>;
3885
+ removeItem: (key: string) => Promise<void>;
3886
+ }>;
3825
3887
  /**
3826
3888
  * Session key data stored for each order
3827
3889
  */
@@ -3863,98 +3925,211 @@ declare function createSessionKeyStorage(options?: SessionKeyStorageOptions): Re
3863
3925
  listSessionKeys: () => Promise<SessionKeyData[]>;
3864
3926
  }>;
3865
3927
 
3866
- /** placeOrder function selector */
3928
+ /**
3929
+ * ABI-encoded function selector for the IntentGatewayV2 `placeOrder` function,
3930
+ * including the full tuple signature of the OrderV2 struct.
3931
+ */
3867
3932
  declare const PLACE_ORDER_SELECTOR = "placeOrder((bytes32,bytes,bytes,uint256,uint256,uint256,address,((bytes32,uint256)[],bytes),(bytes32,uint256)[],(bytes32,(bytes32,uint256)[],bytes)),bytes32)";
3868
- /** placeOrder function parameter type */
3933
+ /**
3934
+ * ABI tuple type string for the OrderV2 struct used when ABI-encoding or
3935
+ * decoding order data without a full ABI artifact.
3936
+ */
3869
3937
  declare const ORDER_V2_PARAM_TYPE = "(bytes32,bytes,bytes,uint256,uint256,uint256,address,((bytes32,uint256)[],bytes),(bytes32,uint256)[],(bytes32,(bytes32,uint256)[],bytes))";
3870
- /** ERC-7821 single batch execution mode */
3938
+ /**
3939
+ * ERC-7821 execution mode selector for single-batch execution.
3940
+ *
3941
+ * The first byte `0x01` indicates batch mode; all remaining bytes are
3942
+ * reserved and set to zero.
3943
+ */
3871
3944
  declare const ERC7821_BATCH_MODE: HexString;
3872
- /** Bundler RPC method names for ERC-4337 operations */
3945
+ /**
3946
+ * Bundler RPC method names for ERC-4337 operations.
3947
+ *
3948
+ * Values map to JSON-RPC method strings sent to a 4337 bundler endpoint.
3949
+ * `PIMLICO_GET_USER_OPERATION_GAS_PRICE` is a Pimlico-specific extension.
3950
+ */
3873
3951
  declare const BundlerMethod: {
3952
+ /** Submits a UserOperation to the bundler mempool. */
3874
3953
  readonly ETH_SEND_USER_OPERATION: "eth_sendUserOperation";
3954
+ /** Retrieves the receipt for a previously submitted UserOperation by its hash. */
3875
3955
  readonly ETH_GET_USER_OPERATION_RECEIPT: "eth_getUserOperationReceipt";
3956
+ /** Estimates gas limits for a UserOperation before submission. */
3876
3957
  readonly ETH_ESTIMATE_USER_OPERATION_GAS: "eth_estimateUserOperationGas";
3958
+ /** Pimlico-specific method to fetch recommended EIP-1559 gas prices for UserOperations. */
3877
3959
  readonly PIMLICO_GET_USER_OPERATION_GAS_PRICE: "pimlico_getUserOperationGasPrice";
3878
3960
  };
3961
+ /** Union of all valid bundler RPC method name strings. */
3879
3962
  type BundlerMethod = (typeof BundlerMethod)[keyof typeof BundlerMethod];
3880
- /** Response from bundler's eth_estimateUserOperationGas */
3963
+ /**
3964
+ * Response payload returned by a bundler for
3965
+ * `eth_estimateUserOperationGas`.
3966
+ *
3967
+ * All gas values are returned as hex strings.
3968
+ */
3881
3969
  interface BundlerGasEstimate {
3970
+ /** Gas required for pre-verification processing (hex). */
3882
3971
  preVerificationGas: HexString;
3972
+ /** Gas limit for the account verification step (hex). */
3883
3973
  verificationGasLimit: HexString;
3974
+ /** Gas limit for the main execution call (hex). */
3884
3975
  callGasLimit: HexString;
3976
+ /** Gas limit for paymaster verification, if a paymaster is used (hex). */
3885
3977
  paymasterVerificationGasLimit?: HexString;
3978
+ /** Gas limit for paymaster post-operation hook, if a paymaster is used (hex). */
3886
3979
  paymasterPostOpGasLimit?: HexString;
3887
3980
  }
3888
- /** Event map for cancellation status updates */
3889
- interface CancelEventMap {
3890
- DESTINATION_FINALIZED: {
3891
- proof: IProof;
3892
- };
3893
- AWAITING_GET_REQUEST: undefined;
3894
- AWAITING_CANCEL_TRANSACTION: {
3895
- calldata: HexString;
3896
- to: HexString;
3897
- };
3898
- SOURCE_FINALIZED: {
3899
- metadata: {
3900
- blockNumber: number;
3901
- };
3902
- };
3903
- HYPERBRIDGE_DELIVERED: RequestStatusWithMetadata;
3904
- HYPERBRIDGE_FINALIZED: RequestStatusWithMetadata;
3905
- SOURCE_PROOF_RECEIVED: IProof;
3906
- CANCELLATION_COMPLETE: {
3907
- metadata: {
3908
- blockNumber: number;
3909
- };
3910
- };
3911
- }
3981
+ /**
3982
+ * Tagged union of all status updates that can be yielded by the cancel-order
3983
+ * async generator.
3984
+ *
3985
+ * The `status` field is the discriminant. Consumers should switch on it to
3986
+ * handle each stage of the cancellation lifecycle:
3987
+ *
3988
+ * - `DESTINATION_FINALIZED` – a state proof from the destination chain is ready.
3989
+ * - `AWAITING_CANCEL_TRANSACTION` – the caller must sign and submit the cancel tx.
3990
+ * - `SOURCE_FINALIZED` – the cancel request has been finalised on the source chain.
3991
+ * - `HYPERBRIDGE_DELIVERED` – the cancel message has been delivered to Hyperbridge.
3992
+ * - `HYPERBRIDGE_FINALIZED` – the cancel message has been finalised on Hyperbridge.
3993
+ * - `SOURCE_PROOF_RECEIVED` – a proof of the source-chain state has been received.
3994
+ * - `CANCELLATION_COMPLETE` – the escrow has been refunded; cancellation is done.
3995
+ */
3912
3996
  type CancelEvent = {
3913
- [K in keyof CancelEventMap]: {
3914
- status: K;
3915
- data: CancelEventMap[K];
3916
- };
3917
- }[keyof CancelEventMap];
3997
+ status: "DESTINATION_FINALIZED";
3998
+ proof: IProof;
3999
+ } | {
4000
+ status: "AWAITING_CANCEL_TRANSACTION";
4001
+ data: HexString;
4002
+ to: HexString;
4003
+ value: bigint;
4004
+ } | {
4005
+ status: "SOURCE_FINALIZED";
4006
+ metadata: Extract<RequestStatusWithMetadata, {
4007
+ status: "SOURCE_FINALIZED";
4008
+ }>["metadata"];
4009
+ } | {
4010
+ status: "HYPERBRIDGE_DELIVERED";
4011
+ metadata: Extract<RequestStatusWithMetadata, {
4012
+ status: "HYPERBRIDGE_DELIVERED";
4013
+ }>["metadata"];
4014
+ } | {
4015
+ status: "HYPERBRIDGE_FINALIZED";
4016
+ metadata: Extract<RequestStatusWithMetadata, {
4017
+ status: "HYPERBRIDGE_FINALIZED";
4018
+ }>["metadata"];
4019
+ } | {
4020
+ status: "SOURCE_PROOF_RECEIVED";
4021
+ proof: IProof;
4022
+ } | {
4023
+ status: "CANCELLATION_COMPLETE";
4024
+ blockNumber: number;
4025
+ transactionHash: HexString;
4026
+ };
3918
4027
 
3919
- /** Shared context for IntentsV2 sub-modules */
4028
+ /**
4029
+ * Shared runtime context passed to every IntentsV2 sub-module.
4030
+ *
4031
+ * All sub-modules (OrderPlacer, OrderExecutor, BidManager, etc.) receive a
4032
+ * reference to this object so they can share fee-token caches, storage
4033
+ * adapters, and chain clients without duplicating initialisation logic.
4034
+ */
3920
4035
  interface IntentsV2Context {
4036
+ /** EVM chain on which orders are placed and escrowed. */
3921
4037
  source: IEvmChain;
4038
+ /** EVM chain on which solvers fill orders and receive outputs. */
3922
4039
  dest: IEvmChain;
4040
+ /** Hyperbridge coprocessor client used to fetch solver bids and submit UserOperations. */
3923
4041
  intentsCoprocessor?: IntentsCoprocessor;
4042
+ /** URL of the ERC-4337 bundler endpoint for gas estimation and UserOp submission. */
3924
4043
  bundlerUrl?: string;
4044
+ /**
4045
+ * In-memory TTL cache keyed by state-machine ID.
4046
+ * Stores fee-token address, decimals, and the timestamp of the last fetch.
4047
+ */
3925
4048
  feeTokenCache: Map<string, {
3926
4049
  address: HexString;
3927
4050
  decimals: number;
3928
4051
  cachedAt: number;
3929
4052
  }>;
4053
+ /**
4054
+ * In-memory cache of solver account contract bytecode, keyed by lowercased address.
4055
+ * Used to inject solver code into state-overrides for gas estimation.
4056
+ */
3930
4057
  solverCodeCache: Map<string, string>;
4058
+ /** Persistent storage for ephemeral session keys generated per order. */
3931
4059
  sessionKeyStorage: ReturnType<typeof createSessionKeyStorage>;
4060
+ /** Persistent storage for intermediate cancellation state (proofs, commitments). */
3932
4061
  cancellationStorage: ReturnType<typeof createCancellationStorage>;
4062
+ /** Persistent storage for deduplication of already-submitted UserOperations. */
4063
+ usedUserOpsStorage: ReturnType<typeof createUsedUserOpsStorage>;
4064
+ /** DEX-quote utility used for token pricing and gas-to-fee-token conversions. */
3933
4065
  swap: Swap;
3934
4066
  }
3935
4067
 
3936
4068
  /**
3937
- * IntentsV2 utilities for placing orders, submitting bids, and managing the intent lifecycle.
4069
+ * High-level facade for the IntentGatewayV2 protocol.
4070
+ *
4071
+ * `IntentsV2` orchestrates the complete lifecycle of an intent-based
4072
+ * cross-chain swap:
4073
+ * - **Order placement** — encodes and yields `placeOrder` calldata; caller
4074
+ * signs and submits the transaction.
4075
+ * - **Order execution** — polls the Hyperbridge coprocessor for solver bids,
4076
+ * selects the best bid, and submits an ERC-4337 UserOperation via a bundler.
4077
+ * - **Order cancellation** — guides the caller through the source- or
4078
+ * destination-initiated cancellation flow, including ISMP proof fetching and
4079
+ * Hyperbridge relay.
4080
+ * - **Status checks** — reads on-chain storage to determine whether an order
4081
+ * has been filled or refunded.
3938
4082
  *
3939
- * Use `IntentsV2.create()` to obtain an initialized instance.
4083
+ * Internally delegates to specialised sub-modules: {@link OrderPlacer},
4084
+ * {@link OrderExecutor}, {@link OrderCanceller}, {@link BidManager},
4085
+ * {@link GasEstimator}, {@link OrderStatusChecker}, and {@link CryptoUtils}.
4086
+ *
4087
+ * Use `IntentsV2.create()` to obtain an initialised instance.
3940
4088
  */
3941
4089
  declare class IntentsV2 {
4090
+ /** EVM chain on which orders are placed and escrowed. */
3942
4091
  readonly source: IEvmChain;
4092
+ /** EVM chain on which solvers fill orders and deliver outputs. */
3943
4093
  readonly dest: IEvmChain;
4094
+ /** Optional Hyperbridge coprocessor client for bid fetching and UserOp submission. */
3944
4095
  readonly intentsCoprocessor?: IntentsCoprocessor;
4096
+ /** Optional ERC-4337 bundler URL for gas estimation and UserOp broadcasting. */
3945
4097
  readonly bundlerUrl?: string;
4098
+ /** Shared context object passed to all sub-modules. */
3946
4099
  private readonly ctx;
4100
+ /** Crypto and encoding utilities (EIP-712, gas packing, bundler calls). */
3947
4101
  private readonly _crypto;
4102
+ /** Handles `placeOrder` calldata generation and session-key management. */
3948
4103
  private readonly orderPlacer;
4104
+ /** Drives the bid-polling and UserOp-submission loop after order placement. */
3949
4105
  private readonly orderExecutor;
4106
+ /** Manages source- and destination-initiated order cancellation flows. */
3950
4107
  private readonly orderCanceller;
4108
+ /** Reads fill and refund status from on-chain storage. */
3951
4109
  private readonly orderStatusChecker;
4110
+ /** Validates, sorts, simulates, and submits solver bids. */
3952
4111
  private readonly bidManager;
4112
+ /** Estimates gas costs for filling an order and converts them to fee-token amounts. */
3953
4113
  private readonly gasEstimator;
4114
+ /**
4115
+ * Private constructor — use {@link IntentsV2.create} instead.
4116
+ *
4117
+ * Initialises all sub-modules and the shared context, including storage
4118
+ * adapters, fee-token and solver-code caches, and the DEX-quote utility.
4119
+ *
4120
+ * @param source - Source chain client.
4121
+ * @param dest - Destination chain client.
4122
+ * @param intentsCoprocessor - Optional coprocessor for bid fetching.
4123
+ * @param bundlerUrl - Optional ERC-4337 bundler endpoint URL.
4124
+ */
3954
4125
  private constructor();
3955
4126
  /**
3956
4127
  * Creates an initialized IntentsV2 instance.
3957
4128
  *
4129
+ * Fetches the fee tokens for both chains and optionally caches the solver
4130
+ * account bytecode before returning, so the instance is ready for use
4131
+ * without additional warm-up calls.
4132
+ *
3958
4133
  * @param source - Source chain for order placement
3959
4134
  * @param dest - Destination chain for order fulfillment
3960
4135
  * @param intentsCoprocessor - Optional coprocessor for bid fetching and order execution
@@ -3962,36 +4137,160 @@ declare class IntentsV2 {
3962
4137
  * @returns Initialized IntentsV2 instance
3963
4138
  */
3964
4139
  static create(source: IEvmChain, dest: IEvmChain, intentsCoprocessor?: IntentsCoprocessor, bundlerUrl?: string): Promise<IntentsV2>;
4140
+ /**
4141
+ * Pre-warms the fee-token cache for both chains and attempts to load the
4142
+ * solver account bytecode into the solver-code cache.
4143
+ *
4144
+ * Called automatically by {@link IntentsV2.create}; not intended for direct use.
4145
+ */
3965
4146
  private init;
4147
+ /**
4148
+ * Bidirectional async generator that orchestrates the full order lifecycle:
4149
+ * placement, fee estimation, bid collection, and execution.
4150
+ *
4151
+ * **Yield/receive protocol:**
4152
+ * 1. If `order.fees` is unset or zero, estimates gas and sets `order.fees`
4153
+ * with a 1% buffer and the wei cost with a 2% buffer for the `value` field.
4154
+ * 2. Yields `AWAITING_PLACE_ORDER` with `{ to, data, value, sessionPrivateKey }`.
4155
+ * The caller must sign the transaction and pass it back via `gen.next(signedTx)`.
4156
+ * 3. Yields `ORDER_PLACED` with the finalised order and transaction hash once
4157
+ * the `OrderPlaced` event is confirmed.
4158
+ * 4. Delegates to {@link OrderExecutor.executeIntentOrder} and forwards all
4159
+ * subsequent status updates until the order is filled, exhausted, or fails.
4160
+ *
4161
+ * @param order - The order to place and execute. `order.fees` may be 0; it
4162
+ * will be estimated automatically if so.
4163
+ * @param graffiti - Optional bytes32 tag for orderflow attribution /
4164
+ * revenue share. Defaults to {@link DEFAULT_GRAFFITI}.
4165
+ * @param options - Optional tuning parameters:
4166
+ * - `maxPriorityFeePerGasBumpPercent` — bump % for the priority fee estimate (default 8).
4167
+ * - `maxFeePerGasBumpPercent` — bump % for the max fee estimate (default 10).
4168
+ * - `minBids` — minimum bids to collect before selecting (default 1).
4169
+ * - `bidTimeoutMs` — how long to poll for bids before giving up (default 60 000 ms).
4170
+ * - `pollIntervalMs` — interval between bid-polling attempts.
4171
+ * @yields {@link IntentOrderStatusUpdate} at each lifecycle stage.
4172
+ * @throws If the `placeOrder` generator behaves unexpectedly, or if gas
4173
+ * estimation returns zero.
4174
+ */
3966
4175
  execute(order: OrderV2, graffiti?: HexString, options?: {
3967
4176
  maxPriorityFeePerGasBumpPercent?: number;
3968
4177
  maxFeePerGasBumpPercent?: number;
3969
4178
  minBids?: number;
3970
4179
  bidTimeoutMs?: number;
3971
4180
  pollIntervalMs?: number;
3972
- }): AsyncGenerator<{
3973
- calldata: HexString;
3974
- feesInWei?: bigint;
3975
- sessionPrivateKey: HexString;
3976
- } | IntentOrderStatusUpdate, void, HexString>;
3977
- placeOrder(order: OrderV2, graffiti?: HexString): AsyncGenerator<{
3978
- calldata: HexString;
3979
- sessionPrivateKey: HexString;
3980
- }, OrderV2, any>;
3981
- executeIntentOrder(options: ExecuteIntentOrderOptions): AsyncGenerator<IntentOrderStatusUpdate, void>;
4181
+ }): AsyncGenerator<IntentOrderStatusUpdate, void, HexString>;
4182
+ /**
4183
+ * Quotes the native token cost for cancelling an order.
4184
+ *
4185
+ * Delegates to {@link OrderCanceller.quoteCancelNative}.
4186
+ *
4187
+ * @param order - The order to quote cancellation for.
4188
+ * @param from - Chain side that initiates the cancel (`"source"` or `"dest"`).
4189
+ * Defaults to `"source"`.
4190
+ * @returns The native token amount required to submit the cancel transaction.
4191
+ */
3982
4192
  quoteCancelNative(order: OrderV2, from?: "source" | "dest"): Promise<bigint>;
4193
+ /**
4194
+ * Async generator that cancels an order and streams status events until
4195
+ * cancellation is complete.
4196
+ *
4197
+ * Delegates to {@link OrderCanceller.cancelOrder}.
4198
+ *
4199
+ * @param order - The order to cancel.
4200
+ * @param indexerClient - Indexer client used for ISMP request status streaming.
4201
+ * @param from - Chain side that initiates the cancel. Defaults to `"source"`.
4202
+ * @yields {@link CancelEvent} objects describing each cancellation stage.
4203
+ */
3983
4204
  cancelOrder(order: OrderV2, indexerClient: IndexerClient, from?: "source" | "dest"): AsyncGenerator<CancelEvent>;
4205
+ /**
4206
+ * Constructs a signed `PackedUserOperation` for a solver to submit as a bid.
4207
+ *
4208
+ * Delegates to {@link BidManager.prepareSubmitBid}.
4209
+ *
4210
+ * @param options - Bid parameters including order, solver account, gas limits,
4211
+ * fee market values, and pre-built fill calldata.
4212
+ * @returns A fully signed `PackedUserOperation` ready for submission.
4213
+ */
3984
4214
  prepareSubmitBid(options: SubmitBidOptions): Promise<PackedUserOperation>;
4215
+ /**
4216
+ * Selects the best available bid, simulates it, and submits the UserOperation
4217
+ * to the bundler.
4218
+ *
4219
+ * Delegates to {@link BidManager.selectBid}.
4220
+ *
4221
+ * @param order - The placed order to fill.
4222
+ * @param bids - Raw filler bids fetched from the coprocessor.
4223
+ * @param sessionPrivateKey - Optional session key override; looked up from
4224
+ * storage if omitted.
4225
+ * @returns A {@link SelectBidResult} with the submitted UserOperation, hashes,
4226
+ * and fill status.
4227
+ */
3985
4228
  selectBid(order: OrderV2, bids: FillerBid[], sessionPrivateKey?: HexString): Promise<SelectBidResult>;
4229
+ /**
4230
+ * Estimates the gas cost for filling the given order, returning individual
4231
+ * gas components and fee-token-denominated totals.
4232
+ *
4233
+ * Delegates to {@link GasEstimator.estimateFillOrderV2}.
4234
+ *
4235
+ * @param params - Estimation parameters including the order and optional
4236
+ * gas-price bump percentages.
4237
+ * @returns A {@link FillOrderEstimateV2} with all gas components.
4238
+ */
3986
4239
  estimateFillOrderV2(params: EstimateFillOrderV2Params): Promise<FillOrderEstimateV2>;
4240
+ /**
4241
+ * Encodes a list of calls into ERC-7821 `execute` calldata using
4242
+ * single-batch mode.
4243
+ *
4244
+ * Delegates to {@link CryptoUtils.encodeERC7821Execute}.
4245
+ *
4246
+ * @param calls - Ordered list of calls to batch.
4247
+ * @returns ABI-encoded calldata for the ERC-7821 `execute` function.
4248
+ */
3987
4249
  encodeERC7821Execute(calls: ERC7821Call[]): HexString;
4250
+ /**
4251
+ * Decodes ERC-7821 `execute` calldata back into its constituent calls.
4252
+ *
4253
+ * Delegates to {@link CryptoUtils.decodeERC7821Execute}.
4254
+ *
4255
+ * @param callData - Hex-encoded calldata to decode.
4256
+ * @returns Array of decoded {@link ERC7821Call} objects, or `null` on failure.
4257
+ */
3988
4258
  decodeERC7821Execute(callData: HexString): ERC7821Call[] | null;
4259
+ /**
4260
+ * Checks whether an order has been filled on the destination chain.
4261
+ *
4262
+ * Delegates to {@link OrderStatusChecker.isOrderFilled}.
4263
+ *
4264
+ * @param order - The order to check.
4265
+ * @returns `true` if the order's commitment slot on the destination chain is
4266
+ * non-zero (i.e. `fillOrder` has been called successfully).
4267
+ */
3989
4268
  isOrderFilled(order: OrderV2): Promise<boolean>;
4269
+ /**
4270
+ * Checks whether all escrowed inputs for an order have been refunded on the
4271
+ * source chain.
4272
+ *
4273
+ * Delegates to {@link OrderStatusChecker.isOrderRefunded}.
4274
+ *
4275
+ * @param order - The order to check.
4276
+ * @returns `true` if every input token's escrowed amount has been zeroed out
4277
+ * in the `_orders` mapping on the source chain.
4278
+ */
3990
4279
  isOrderRefunded(order: OrderV2): Promise<boolean>;
3991
4280
  }
3992
4281
 
4282
+ /**
4283
+ * Checks the on-chain fill and refund status of IntentGatewayV2 orders.
4284
+ *
4285
+ * Reads contract storage directly rather than relying on events, so the
4286
+ * results are accurate even if the caller misses the confirmation window.
4287
+ */
3993
4288
  declare class OrderStatusChecker {
3994
4289
  private readonly ctx;
4290
+ /**
4291
+ * @param ctx - Shared IntentsV2 context providing the source and destination
4292
+ * chain clients and config service.
4293
+ */
3995
4294
  constructor(ctx: IntentsV2Context);
3996
4295
  /**
3997
4296
  * Checks if a V2 order has been filled by reading the commitment storage slot on the destination chain.
@@ -4018,29 +4317,3472 @@ declare class OrderStatusChecker {
4018
4317
  }
4019
4318
 
4020
4319
  /**
4021
- * Standalone utility to encode calls into ERC-7821 execute function calldata.
4022
- * Can be used outside of the IntentGatewayV2 class (e.g., by filler strategies
4023
- * that need to build custom batch calldata for swap+fill operations).
4320
+ * Encodes a list of calls into ERC-7821 `execute` function calldata using
4321
+ * single-batch mode.
4322
+ *
4323
+ * This is a standalone utility that can be used outside of the
4324
+ * `IntentGatewayV2` class — for example, by filler strategies that need to
4325
+ * build custom batch calldata for combined swap-and-fill operations before
4326
+ * submitting a UserOperation.
4327
+ *
4328
+ * @param calls - Ordered list of calls to batch; each specifies a target
4329
+ * address, ETH value, and calldata.
4330
+ * @returns ABI-encoded calldata for the ERC-7821 `execute(bytes32,bytes)` function.
4024
4331
  */
4025
4332
  declare function encodeERC7821ExecuteBatch(calls: ERC7821Call[]): HexString;
4026
4333
  /**
4027
- * Fetches proof for the source chain.
4334
+ * Fetches a Merkle/state proof for the given ISMP request commitment on the
4335
+ * source chain.
4028
4336
  *
4337
+ * Derives the two storage slots from the commitment using
4338
+ * `requestCommitmentKey`, then queries the source chain node for a state
4339
+ * proof at the given block height.
4340
+ *
4341
+ * @param commitment - The ISMP request commitment hash to prove.
4342
+ * @param source - Source chain client used to query the state proof.
4343
+ * @param sourceStateMachine - State-machine ID string of the source chain.
4344
+ * @param sourceConsensusStateId - Consensus-state identifier for the source chain.
4345
+ * @param sourceHeight - Block height at which to generate the proof.
4346
+ * @returns Resolves with an {@link IProof} ready to be submitted to Hyperbridge.
4029
4347
  * @internal
4030
4348
  */
4031
4349
  declare function fetchSourceProof(commitment: HexString, source: IEvmChain, sourceStateMachine: string, sourceConsensusStateId: string, sourceHeight: bigint): Promise<IProof>;
4032
4350
  /**
4033
- * Transforms an OrderV2 (SDK type) to the Order struct expected by the contract.
4351
+ * Strips SDK-only fields from an {@link OrderV2} and normalises all fields to
4352
+ * the encoding the IntentGatewayV2 contract ABI expects:
4353
+ *
4354
+ * - `id` and `transactionHash` are removed (not part of the on-chain struct).
4355
+ * - `source` and `destination` are hex-encoded if currently plain string
4356
+ * state-machine IDs.
4357
+ * - `inputs[i].token`, `output.beneficiary`, `output.assets[i].token`, and
4358
+ * `predispatch.assets[i].token` are left-padded from 20-byte addresses to
4359
+ * 32-byte values (`0x000…addr`) via {@link bytes20ToBytes32}, matching the
4360
+ * `bytes32(uint256(uint160(addr)))` encoding the contract uses when casting
4361
+ * these fields back to `address`. Values already at 32 bytes are unchanged.
4362
+ *
4363
+ * @param order - The SDK-level order to transform.
4364
+ * @returns A contract-compatible order struct without `id` or `transactionHash`.
4034
4365
  */
4035
4366
  declare function transformOrderForContract(order: OrderV2): Omit<OrderV2, "id" | "transactionHash">;
4036
4367
 
4037
- /** EIP-712 type hash for SelectSolver message */
4368
+ /**
4369
+ * EIP-712 type hash for the `SelectSolver` struct.
4370
+ *
4371
+ * Computed as `keccak256("SelectSolver(bytes32 commitment,address solver)")`.
4372
+ * Used when the session key signs a solver-selection message so that the
4373
+ * IntentGatewayV2 contract can verify the choice on-chain.
4374
+ */
4038
4375
  declare const SELECT_SOLVER_TYPEHASH: `0x${string}`;
4039
- /** EIP-712 type hash for PackedUserOperation */
4376
+ /**
4377
+ * EIP-712 type hash for the `PackedUserOperation` struct.
4378
+ *
4379
+ * Matches the ERC-4337 v0.8 `PackedUserOperation` type definition used by
4380
+ * EntryPoint v0.8. Used when computing the UserOperation hash that solvers
4381
+ * must sign before submitting bids.
4382
+ */
4040
4383
  declare const PACKED_USEROP_TYPEHASH: `0x${string}`;
4041
- /** EIP-712 type hash for EIP712Domain */
4384
+ /**
4385
+ * EIP-712 type hash for the `EIP712Domain` struct.
4386
+ *
4387
+ * Computed as `keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)")`.
4388
+ * Used to construct domain separators for all EIP-712 messages in the
4389
+ * IntentGatewayV2 protocol.
4390
+ */
4042
4391
  declare const DOMAIN_TYPEHASH: `0x${string}`;
4043
4392
 
4393
+ declare const ABI$1: readonly [{
4394
+ readonly type: "constructor";
4395
+ readonly inputs: readonly [{
4396
+ readonly name: "admin";
4397
+ readonly type: "address";
4398
+ readonly internalType: "address";
4399
+ }];
4400
+ readonly stateMutability: "nonpayable";
4401
+ }, {
4402
+ readonly type: "receive";
4403
+ readonly stateMutability: "payable";
4404
+ }, {
4405
+ readonly type: "function";
4406
+ readonly name: "DOMAIN_SEPARATOR";
4407
+ readonly inputs: readonly [];
4408
+ readonly outputs: readonly [{
4409
+ readonly name: "";
4410
+ readonly type: "bytes32";
4411
+ readonly internalType: "bytes32";
4412
+ }];
4413
+ readonly stateMutability: "view";
4414
+ }, {
4415
+ readonly type: "function";
4416
+ readonly name: "SELECT_SOLVER_TYPEHASH";
4417
+ readonly inputs: readonly [];
4418
+ readonly outputs: readonly [{
4419
+ readonly name: "";
4420
+ readonly type: "bytes32";
4421
+ readonly internalType: "bytes32";
4422
+ }];
4423
+ readonly stateMutability: "view";
4424
+ }, {
4425
+ readonly type: "function";
4426
+ readonly name: "_destinationProtocolFees";
4427
+ readonly inputs: readonly [{
4428
+ readonly name: "";
4429
+ readonly type: "bytes32";
4430
+ readonly internalType: "bytes32";
4431
+ }];
4432
+ readonly outputs: readonly [{
4433
+ readonly name: "";
4434
+ readonly type: "uint256";
4435
+ readonly internalType: "uint256";
4436
+ }];
4437
+ readonly stateMutability: "view";
4438
+ }, {
4439
+ readonly type: "function";
4440
+ readonly name: "_filled";
4441
+ readonly inputs: readonly [{
4442
+ readonly name: "";
4443
+ readonly type: "bytes32";
4444
+ readonly internalType: "bytes32";
4445
+ }];
4446
+ readonly outputs: readonly [{
4447
+ readonly name: "";
4448
+ readonly type: "address";
4449
+ readonly internalType: "address";
4450
+ }];
4451
+ readonly stateMutability: "view";
4452
+ }, {
4453
+ readonly type: "function";
4454
+ readonly name: "_instances";
4455
+ readonly inputs: readonly [{
4456
+ readonly name: "";
4457
+ readonly type: "bytes32";
4458
+ readonly internalType: "bytes32";
4459
+ }];
4460
+ readonly outputs: readonly [{
4461
+ readonly name: "";
4462
+ readonly type: "address";
4463
+ readonly internalType: "address";
4464
+ }];
4465
+ readonly stateMutability: "view";
4466
+ }, {
4467
+ readonly type: "function";
4468
+ readonly name: "_nonce";
4469
+ readonly inputs: readonly [];
4470
+ readonly outputs: readonly [{
4471
+ readonly name: "";
4472
+ readonly type: "uint256";
4473
+ readonly internalType: "uint256";
4474
+ }];
4475
+ readonly stateMutability: "view";
4476
+ }, {
4477
+ readonly type: "function";
4478
+ readonly name: "_orders";
4479
+ readonly inputs: readonly [{
4480
+ readonly name: "";
4481
+ readonly type: "bytes32";
4482
+ readonly internalType: "bytes32";
4483
+ }, {
4484
+ readonly name: "";
4485
+ readonly type: "address";
4486
+ readonly internalType: "address";
4487
+ }];
4488
+ readonly outputs: readonly [{
4489
+ readonly name: "";
4490
+ readonly type: "uint256";
4491
+ readonly internalType: "uint256";
4492
+ }];
4493
+ readonly stateMutability: "view";
4494
+ }, {
4495
+ readonly type: "function";
4496
+ readonly name: "_partialFills";
4497
+ readonly inputs: readonly [{
4498
+ readonly name: "";
4499
+ readonly type: "bytes32";
4500
+ readonly internalType: "bytes32";
4501
+ }, {
4502
+ readonly name: "";
4503
+ readonly type: "bytes32";
4504
+ readonly internalType: "bytes32";
4505
+ }];
4506
+ readonly outputs: readonly [{
4507
+ readonly name: "";
4508
+ readonly type: "uint256";
4509
+ readonly internalType: "uint256";
4510
+ }];
4511
+ readonly stateMutability: "view";
4512
+ }, {
4513
+ readonly type: "function";
4514
+ readonly name: "calculateCommitmentSlotHash";
4515
+ readonly inputs: readonly [{
4516
+ readonly name: "commitment";
4517
+ readonly type: "bytes32";
4518
+ readonly internalType: "bytes32";
4519
+ }];
4520
+ readonly outputs: readonly [{
4521
+ readonly name: "";
4522
+ readonly type: "bytes";
4523
+ readonly internalType: "bytes";
4524
+ }];
4525
+ readonly stateMutability: "pure";
4526
+ }, {
4527
+ readonly type: "function";
4528
+ readonly name: "cancelOrder";
4529
+ readonly inputs: readonly [{
4530
+ readonly name: "order";
4531
+ readonly type: "tuple";
4532
+ readonly internalType: "struct Order";
4533
+ readonly components: readonly [{
4534
+ readonly name: "user";
4535
+ readonly type: "bytes32";
4536
+ readonly internalType: "bytes32";
4537
+ }, {
4538
+ readonly name: "source";
4539
+ readonly type: "bytes";
4540
+ readonly internalType: "bytes";
4541
+ }, {
4542
+ readonly name: "destination";
4543
+ readonly type: "bytes";
4544
+ readonly internalType: "bytes";
4545
+ }, {
4546
+ readonly name: "deadline";
4547
+ readonly type: "uint256";
4548
+ readonly internalType: "uint256";
4549
+ }, {
4550
+ readonly name: "nonce";
4551
+ readonly type: "uint256";
4552
+ readonly internalType: "uint256";
4553
+ }, {
4554
+ readonly name: "fees";
4555
+ readonly type: "uint256";
4556
+ readonly internalType: "uint256";
4557
+ }, {
4558
+ readonly name: "session";
4559
+ readonly type: "address";
4560
+ readonly internalType: "address";
4561
+ }, {
4562
+ readonly name: "predispatch";
4563
+ readonly type: "tuple";
4564
+ readonly internalType: "struct DispatchInfo";
4565
+ readonly components: readonly [{
4566
+ readonly name: "assets";
4567
+ readonly type: "tuple[]";
4568
+ readonly internalType: "struct TokenInfo[]";
4569
+ readonly components: readonly [{
4570
+ readonly name: "token";
4571
+ readonly type: "bytes32";
4572
+ readonly internalType: "bytes32";
4573
+ }, {
4574
+ readonly name: "amount";
4575
+ readonly type: "uint256";
4576
+ readonly internalType: "uint256";
4577
+ }];
4578
+ }, {
4579
+ readonly name: "call";
4580
+ readonly type: "bytes";
4581
+ readonly internalType: "bytes";
4582
+ }];
4583
+ }, {
4584
+ readonly name: "inputs";
4585
+ readonly type: "tuple[]";
4586
+ readonly internalType: "struct TokenInfo[]";
4587
+ readonly components: readonly [{
4588
+ readonly name: "token";
4589
+ readonly type: "bytes32";
4590
+ readonly internalType: "bytes32";
4591
+ }, {
4592
+ readonly name: "amount";
4593
+ readonly type: "uint256";
4594
+ readonly internalType: "uint256";
4595
+ }];
4596
+ }, {
4597
+ readonly name: "output";
4598
+ readonly type: "tuple";
4599
+ readonly internalType: "struct PaymentInfo";
4600
+ readonly components: readonly [{
4601
+ readonly name: "beneficiary";
4602
+ readonly type: "bytes32";
4603
+ readonly internalType: "bytes32";
4604
+ }, {
4605
+ readonly name: "assets";
4606
+ readonly type: "tuple[]";
4607
+ readonly internalType: "struct TokenInfo[]";
4608
+ readonly components: readonly [{
4609
+ readonly name: "token";
4610
+ readonly type: "bytes32";
4611
+ readonly internalType: "bytes32";
4612
+ }, {
4613
+ readonly name: "amount";
4614
+ readonly type: "uint256";
4615
+ readonly internalType: "uint256";
4616
+ }];
4617
+ }, {
4618
+ readonly name: "call";
4619
+ readonly type: "bytes";
4620
+ readonly internalType: "bytes";
4621
+ }];
4622
+ }];
4623
+ }, {
4624
+ readonly name: "options";
4625
+ readonly type: "tuple";
4626
+ readonly internalType: "struct CancelOptions";
4627
+ readonly components: readonly [{
4628
+ readonly name: "relayerFee";
4629
+ readonly type: "uint256";
4630
+ readonly internalType: "uint256";
4631
+ }, {
4632
+ readonly name: "height";
4633
+ readonly type: "uint256";
4634
+ readonly internalType: "uint256";
4635
+ }];
4636
+ }];
4637
+ readonly outputs: readonly [];
4638
+ readonly stateMutability: "payable";
4639
+ }, {
4640
+ readonly type: "function";
4641
+ readonly name: "eip712Domain";
4642
+ readonly inputs: readonly [];
4643
+ readonly outputs: readonly [{
4644
+ readonly name: "fields";
4645
+ readonly type: "bytes1";
4646
+ readonly internalType: "bytes1";
4647
+ }, {
4648
+ readonly name: "name";
4649
+ readonly type: "string";
4650
+ readonly internalType: "string";
4651
+ }, {
4652
+ readonly name: "version";
4653
+ readonly type: "string";
4654
+ readonly internalType: "string";
4655
+ }, {
4656
+ readonly name: "chainId";
4657
+ readonly type: "uint256";
4658
+ readonly internalType: "uint256";
4659
+ }, {
4660
+ readonly name: "verifyingContract";
4661
+ readonly type: "address";
4662
+ readonly internalType: "address";
4663
+ }, {
4664
+ readonly name: "salt";
4665
+ readonly type: "bytes32";
4666
+ readonly internalType: "bytes32";
4667
+ }, {
4668
+ readonly name: "extensions";
4669
+ readonly type: "uint256[]";
4670
+ readonly internalType: "uint256[]";
4671
+ }];
4672
+ readonly stateMutability: "view";
4673
+ }, {
4674
+ readonly type: "function";
4675
+ readonly name: "fillOrder";
4676
+ readonly inputs: readonly [{
4677
+ readonly name: "order";
4678
+ readonly type: "tuple";
4679
+ readonly internalType: "struct Order";
4680
+ readonly components: readonly [{
4681
+ readonly name: "user";
4682
+ readonly type: "bytes32";
4683
+ readonly internalType: "bytes32";
4684
+ }, {
4685
+ readonly name: "source";
4686
+ readonly type: "bytes";
4687
+ readonly internalType: "bytes";
4688
+ }, {
4689
+ readonly name: "destination";
4690
+ readonly type: "bytes";
4691
+ readonly internalType: "bytes";
4692
+ }, {
4693
+ readonly name: "deadline";
4694
+ readonly type: "uint256";
4695
+ readonly internalType: "uint256";
4696
+ }, {
4697
+ readonly name: "nonce";
4698
+ readonly type: "uint256";
4699
+ readonly internalType: "uint256";
4700
+ }, {
4701
+ readonly name: "fees";
4702
+ readonly type: "uint256";
4703
+ readonly internalType: "uint256";
4704
+ }, {
4705
+ readonly name: "session";
4706
+ readonly type: "address";
4707
+ readonly internalType: "address";
4708
+ }, {
4709
+ readonly name: "predispatch";
4710
+ readonly type: "tuple";
4711
+ readonly internalType: "struct DispatchInfo";
4712
+ readonly components: readonly [{
4713
+ readonly name: "assets";
4714
+ readonly type: "tuple[]";
4715
+ readonly internalType: "struct TokenInfo[]";
4716
+ readonly components: readonly [{
4717
+ readonly name: "token";
4718
+ readonly type: "bytes32";
4719
+ readonly internalType: "bytes32";
4720
+ }, {
4721
+ readonly name: "amount";
4722
+ readonly type: "uint256";
4723
+ readonly internalType: "uint256";
4724
+ }];
4725
+ }, {
4726
+ readonly name: "call";
4727
+ readonly type: "bytes";
4728
+ readonly internalType: "bytes";
4729
+ }];
4730
+ }, {
4731
+ readonly name: "inputs";
4732
+ readonly type: "tuple[]";
4733
+ readonly internalType: "struct TokenInfo[]";
4734
+ readonly components: readonly [{
4735
+ readonly name: "token";
4736
+ readonly type: "bytes32";
4737
+ readonly internalType: "bytes32";
4738
+ }, {
4739
+ readonly name: "amount";
4740
+ readonly type: "uint256";
4741
+ readonly internalType: "uint256";
4742
+ }];
4743
+ }, {
4744
+ readonly name: "output";
4745
+ readonly type: "tuple";
4746
+ readonly internalType: "struct PaymentInfo";
4747
+ readonly components: readonly [{
4748
+ readonly name: "beneficiary";
4749
+ readonly type: "bytes32";
4750
+ readonly internalType: "bytes32";
4751
+ }, {
4752
+ readonly name: "assets";
4753
+ readonly type: "tuple[]";
4754
+ readonly internalType: "struct TokenInfo[]";
4755
+ readonly components: readonly [{
4756
+ readonly name: "token";
4757
+ readonly type: "bytes32";
4758
+ readonly internalType: "bytes32";
4759
+ }, {
4760
+ readonly name: "amount";
4761
+ readonly type: "uint256";
4762
+ readonly internalType: "uint256";
4763
+ }];
4764
+ }, {
4765
+ readonly name: "call";
4766
+ readonly type: "bytes";
4767
+ readonly internalType: "bytes";
4768
+ }];
4769
+ }];
4770
+ }, {
4771
+ readonly name: "options";
4772
+ readonly type: "tuple";
4773
+ readonly internalType: "struct FillOptions";
4774
+ readonly components: readonly [{
4775
+ readonly name: "relayerFee";
4776
+ readonly type: "uint256";
4777
+ readonly internalType: "uint256";
4778
+ }, {
4779
+ readonly name: "nativeDispatchFee";
4780
+ readonly type: "uint256";
4781
+ readonly internalType: "uint256";
4782
+ }, {
4783
+ readonly name: "outputs";
4784
+ readonly type: "tuple[]";
4785
+ readonly internalType: "struct TokenInfo[]";
4786
+ readonly components: readonly [{
4787
+ readonly name: "token";
4788
+ readonly type: "bytes32";
4789
+ readonly internalType: "bytes32";
4790
+ }, {
4791
+ readonly name: "amount";
4792
+ readonly type: "uint256";
4793
+ readonly internalType: "uint256";
4794
+ }];
4795
+ }];
4796
+ }];
4797
+ readonly outputs: readonly [];
4798
+ readonly stateMutability: "payable";
4799
+ }, {
4800
+ readonly type: "function";
4801
+ readonly name: "host";
4802
+ readonly inputs: readonly [];
4803
+ readonly outputs: readonly [{
4804
+ readonly name: "";
4805
+ readonly type: "address";
4806
+ readonly internalType: "address";
4807
+ }];
4808
+ readonly stateMutability: "view";
4809
+ }, {
4810
+ readonly type: "function";
4811
+ readonly name: "instance";
4812
+ readonly inputs: readonly [{
4813
+ readonly name: "stateMachineId";
4814
+ readonly type: "bytes";
4815
+ readonly internalType: "bytes";
4816
+ }];
4817
+ readonly outputs: readonly [{
4818
+ readonly name: "";
4819
+ readonly type: "address";
4820
+ readonly internalType: "address";
4821
+ }];
4822
+ readonly stateMutability: "view";
4823
+ }, {
4824
+ readonly type: "function";
4825
+ readonly name: "onAccept";
4826
+ readonly inputs: readonly [{
4827
+ readonly name: "incoming";
4828
+ readonly type: "tuple";
4829
+ readonly internalType: "struct IncomingPostRequest";
4830
+ readonly components: readonly [{
4831
+ readonly name: "request";
4832
+ readonly type: "tuple";
4833
+ readonly internalType: "struct PostRequest";
4834
+ readonly components: readonly [{
4835
+ readonly name: "source";
4836
+ readonly type: "bytes";
4837
+ readonly internalType: "bytes";
4838
+ }, {
4839
+ readonly name: "dest";
4840
+ readonly type: "bytes";
4841
+ readonly internalType: "bytes";
4842
+ }, {
4843
+ readonly name: "nonce";
4844
+ readonly type: "uint64";
4845
+ readonly internalType: "uint64";
4846
+ }, {
4847
+ readonly name: "from";
4848
+ readonly type: "bytes";
4849
+ readonly internalType: "bytes";
4850
+ }, {
4851
+ readonly name: "to";
4852
+ readonly type: "bytes";
4853
+ readonly internalType: "bytes";
4854
+ }, {
4855
+ readonly name: "timeoutTimestamp";
4856
+ readonly type: "uint64";
4857
+ readonly internalType: "uint64";
4858
+ }, {
4859
+ readonly name: "body";
4860
+ readonly type: "bytes";
4861
+ readonly internalType: "bytes";
4862
+ }];
4863
+ }, {
4864
+ readonly name: "relayer";
4865
+ readonly type: "address";
4866
+ readonly internalType: "address";
4867
+ }];
4868
+ }];
4869
+ readonly outputs: readonly [];
4870
+ readonly stateMutability: "nonpayable";
4871
+ }, {
4872
+ readonly type: "function";
4873
+ readonly name: "onGetResponse";
4874
+ readonly inputs: readonly [{
4875
+ readonly name: "incoming";
4876
+ readonly type: "tuple";
4877
+ readonly internalType: "struct IncomingGetResponse";
4878
+ readonly components: readonly [{
4879
+ readonly name: "response";
4880
+ readonly type: "tuple";
4881
+ readonly internalType: "struct GetResponse";
4882
+ readonly components: readonly [{
4883
+ readonly name: "request";
4884
+ readonly type: "tuple";
4885
+ readonly internalType: "struct GetRequest";
4886
+ readonly components: readonly [{
4887
+ readonly name: "source";
4888
+ readonly type: "bytes";
4889
+ readonly internalType: "bytes";
4890
+ }, {
4891
+ readonly name: "dest";
4892
+ readonly type: "bytes";
4893
+ readonly internalType: "bytes";
4894
+ }, {
4895
+ readonly name: "nonce";
4896
+ readonly type: "uint64";
4897
+ readonly internalType: "uint64";
4898
+ }, {
4899
+ readonly name: "from";
4900
+ readonly type: "address";
4901
+ readonly internalType: "address";
4902
+ }, {
4903
+ readonly name: "timeoutTimestamp";
4904
+ readonly type: "uint64";
4905
+ readonly internalType: "uint64";
4906
+ }, {
4907
+ readonly name: "keys";
4908
+ readonly type: "bytes[]";
4909
+ readonly internalType: "bytes[]";
4910
+ }, {
4911
+ readonly name: "height";
4912
+ readonly type: "uint64";
4913
+ readonly internalType: "uint64";
4914
+ }, {
4915
+ readonly name: "context";
4916
+ readonly type: "bytes";
4917
+ readonly internalType: "bytes";
4918
+ }];
4919
+ }, {
4920
+ readonly name: "values";
4921
+ readonly type: "tuple[]";
4922
+ readonly internalType: "struct StorageValue[]";
4923
+ readonly components: readonly [{
4924
+ readonly name: "key";
4925
+ readonly type: "bytes";
4926
+ readonly internalType: "bytes";
4927
+ }, {
4928
+ readonly name: "value";
4929
+ readonly type: "bytes";
4930
+ readonly internalType: "bytes";
4931
+ }];
4932
+ }];
4933
+ }, {
4934
+ readonly name: "relayer";
4935
+ readonly type: "address";
4936
+ readonly internalType: "address";
4937
+ }];
4938
+ }];
4939
+ readonly outputs: readonly [];
4940
+ readonly stateMutability: "nonpayable";
4941
+ }, {
4942
+ readonly type: "function";
4943
+ readonly name: "onGetTimeout";
4944
+ readonly inputs: readonly [{
4945
+ readonly name: "";
4946
+ readonly type: "tuple";
4947
+ readonly internalType: "struct GetRequest";
4948
+ readonly components: readonly [{
4949
+ readonly name: "source";
4950
+ readonly type: "bytes";
4951
+ readonly internalType: "bytes";
4952
+ }, {
4953
+ readonly name: "dest";
4954
+ readonly type: "bytes";
4955
+ readonly internalType: "bytes";
4956
+ }, {
4957
+ readonly name: "nonce";
4958
+ readonly type: "uint64";
4959
+ readonly internalType: "uint64";
4960
+ }, {
4961
+ readonly name: "from";
4962
+ readonly type: "address";
4963
+ readonly internalType: "address";
4964
+ }, {
4965
+ readonly name: "timeoutTimestamp";
4966
+ readonly type: "uint64";
4967
+ readonly internalType: "uint64";
4968
+ }, {
4969
+ readonly name: "keys";
4970
+ readonly type: "bytes[]";
4971
+ readonly internalType: "bytes[]";
4972
+ }, {
4973
+ readonly name: "height";
4974
+ readonly type: "uint64";
4975
+ readonly internalType: "uint64";
4976
+ }, {
4977
+ readonly name: "context";
4978
+ readonly type: "bytes";
4979
+ readonly internalType: "bytes";
4980
+ }];
4981
+ }];
4982
+ readonly outputs: readonly [];
4983
+ readonly stateMutability: "nonpayable";
4984
+ }, {
4985
+ readonly type: "function";
4986
+ readonly name: "onPostRequestTimeout";
4987
+ readonly inputs: readonly [{
4988
+ readonly name: "";
4989
+ readonly type: "tuple";
4990
+ readonly internalType: "struct PostRequest";
4991
+ readonly components: readonly [{
4992
+ readonly name: "source";
4993
+ readonly type: "bytes";
4994
+ readonly internalType: "bytes";
4995
+ }, {
4996
+ readonly name: "dest";
4997
+ readonly type: "bytes";
4998
+ readonly internalType: "bytes";
4999
+ }, {
5000
+ readonly name: "nonce";
5001
+ readonly type: "uint64";
5002
+ readonly internalType: "uint64";
5003
+ }, {
5004
+ readonly name: "from";
5005
+ readonly type: "bytes";
5006
+ readonly internalType: "bytes";
5007
+ }, {
5008
+ readonly name: "to";
5009
+ readonly type: "bytes";
5010
+ readonly internalType: "bytes";
5011
+ }, {
5012
+ readonly name: "timeoutTimestamp";
5013
+ readonly type: "uint64";
5014
+ readonly internalType: "uint64";
5015
+ }, {
5016
+ readonly name: "body";
5017
+ readonly type: "bytes";
5018
+ readonly internalType: "bytes";
5019
+ }];
5020
+ }];
5021
+ readonly outputs: readonly [];
5022
+ readonly stateMutability: "nonpayable";
5023
+ }, {
5024
+ readonly type: "function";
5025
+ readonly name: "onPostResponse";
5026
+ readonly inputs: readonly [{
5027
+ readonly name: "";
5028
+ readonly type: "tuple";
5029
+ readonly internalType: "struct IncomingPostResponse";
5030
+ readonly components: readonly [{
5031
+ readonly name: "response";
5032
+ readonly type: "tuple";
5033
+ readonly internalType: "struct PostResponse";
5034
+ readonly components: readonly [{
5035
+ readonly name: "request";
5036
+ readonly type: "tuple";
5037
+ readonly internalType: "struct PostRequest";
5038
+ readonly components: readonly [{
5039
+ readonly name: "source";
5040
+ readonly type: "bytes";
5041
+ readonly internalType: "bytes";
5042
+ }, {
5043
+ readonly name: "dest";
5044
+ readonly type: "bytes";
5045
+ readonly internalType: "bytes";
5046
+ }, {
5047
+ readonly name: "nonce";
5048
+ readonly type: "uint64";
5049
+ readonly internalType: "uint64";
5050
+ }, {
5051
+ readonly name: "from";
5052
+ readonly type: "bytes";
5053
+ readonly internalType: "bytes";
5054
+ }, {
5055
+ readonly name: "to";
5056
+ readonly type: "bytes";
5057
+ readonly internalType: "bytes";
5058
+ }, {
5059
+ readonly name: "timeoutTimestamp";
5060
+ readonly type: "uint64";
5061
+ readonly internalType: "uint64";
5062
+ }, {
5063
+ readonly name: "body";
5064
+ readonly type: "bytes";
5065
+ readonly internalType: "bytes";
5066
+ }];
5067
+ }, {
5068
+ readonly name: "response";
5069
+ readonly type: "bytes";
5070
+ readonly internalType: "bytes";
5071
+ }, {
5072
+ readonly name: "timeoutTimestamp";
5073
+ readonly type: "uint64";
5074
+ readonly internalType: "uint64";
5075
+ }];
5076
+ }, {
5077
+ readonly name: "relayer";
5078
+ readonly type: "address";
5079
+ readonly internalType: "address";
5080
+ }];
5081
+ }];
5082
+ readonly outputs: readonly [];
5083
+ readonly stateMutability: "nonpayable";
5084
+ }, {
5085
+ readonly type: "function";
5086
+ readonly name: "onPostResponseTimeout";
5087
+ readonly inputs: readonly [{
5088
+ readonly name: "";
5089
+ readonly type: "tuple";
5090
+ readonly internalType: "struct PostResponse";
5091
+ readonly components: readonly [{
5092
+ readonly name: "request";
5093
+ readonly type: "tuple";
5094
+ readonly internalType: "struct PostRequest";
5095
+ readonly components: readonly [{
5096
+ readonly name: "source";
5097
+ readonly type: "bytes";
5098
+ readonly internalType: "bytes";
5099
+ }, {
5100
+ readonly name: "dest";
5101
+ readonly type: "bytes";
5102
+ readonly internalType: "bytes";
5103
+ }, {
5104
+ readonly name: "nonce";
5105
+ readonly type: "uint64";
5106
+ readonly internalType: "uint64";
5107
+ }, {
5108
+ readonly name: "from";
5109
+ readonly type: "bytes";
5110
+ readonly internalType: "bytes";
5111
+ }, {
5112
+ readonly name: "to";
5113
+ readonly type: "bytes";
5114
+ readonly internalType: "bytes";
5115
+ }, {
5116
+ readonly name: "timeoutTimestamp";
5117
+ readonly type: "uint64";
5118
+ readonly internalType: "uint64";
5119
+ }, {
5120
+ readonly name: "body";
5121
+ readonly type: "bytes";
5122
+ readonly internalType: "bytes";
5123
+ }];
5124
+ }, {
5125
+ readonly name: "response";
5126
+ readonly type: "bytes";
5127
+ readonly internalType: "bytes";
5128
+ }, {
5129
+ readonly name: "timeoutTimestamp";
5130
+ readonly type: "uint64";
5131
+ readonly internalType: "uint64";
5132
+ }];
5133
+ }];
5134
+ readonly outputs: readonly [];
5135
+ readonly stateMutability: "nonpayable";
5136
+ }, {
5137
+ readonly type: "function";
5138
+ readonly name: "params";
5139
+ readonly inputs: readonly [];
5140
+ readonly outputs: readonly [{
5141
+ readonly name: "";
5142
+ readonly type: "tuple";
5143
+ readonly internalType: "struct Params";
5144
+ readonly components: readonly [{
5145
+ readonly name: "host";
5146
+ readonly type: "address";
5147
+ readonly internalType: "address";
5148
+ }, {
5149
+ readonly name: "dispatcher";
5150
+ readonly type: "address";
5151
+ readonly internalType: "address";
5152
+ }, {
5153
+ readonly name: "solverSelection";
5154
+ readonly type: "bool";
5155
+ readonly internalType: "bool";
5156
+ }, {
5157
+ readonly name: "surplusShareBps";
5158
+ readonly type: "uint256";
5159
+ readonly internalType: "uint256";
5160
+ }, {
5161
+ readonly name: "protocolFeeBps";
5162
+ readonly type: "uint256";
5163
+ readonly internalType: "uint256";
5164
+ }, {
5165
+ readonly name: "priceOracle";
5166
+ readonly type: "address";
5167
+ readonly internalType: "address";
5168
+ }];
5169
+ }];
5170
+ readonly stateMutability: "view";
5171
+ }, {
5172
+ readonly type: "function";
5173
+ readonly name: "placeOrder";
5174
+ readonly inputs: readonly [{
5175
+ readonly name: "order";
5176
+ readonly type: "tuple";
5177
+ readonly internalType: "struct Order";
5178
+ readonly components: readonly [{
5179
+ readonly name: "user";
5180
+ readonly type: "bytes32";
5181
+ readonly internalType: "bytes32";
5182
+ }, {
5183
+ readonly name: "source";
5184
+ readonly type: "bytes";
5185
+ readonly internalType: "bytes";
5186
+ }, {
5187
+ readonly name: "destination";
5188
+ readonly type: "bytes";
5189
+ readonly internalType: "bytes";
5190
+ }, {
5191
+ readonly name: "deadline";
5192
+ readonly type: "uint256";
5193
+ readonly internalType: "uint256";
5194
+ }, {
5195
+ readonly name: "nonce";
5196
+ readonly type: "uint256";
5197
+ readonly internalType: "uint256";
5198
+ }, {
5199
+ readonly name: "fees";
5200
+ readonly type: "uint256";
5201
+ readonly internalType: "uint256";
5202
+ }, {
5203
+ readonly name: "session";
5204
+ readonly type: "address";
5205
+ readonly internalType: "address";
5206
+ }, {
5207
+ readonly name: "predispatch";
5208
+ readonly type: "tuple";
5209
+ readonly internalType: "struct DispatchInfo";
5210
+ readonly components: readonly [{
5211
+ readonly name: "assets";
5212
+ readonly type: "tuple[]";
5213
+ readonly internalType: "struct TokenInfo[]";
5214
+ readonly components: readonly [{
5215
+ readonly name: "token";
5216
+ readonly type: "bytes32";
5217
+ readonly internalType: "bytes32";
5218
+ }, {
5219
+ readonly name: "amount";
5220
+ readonly type: "uint256";
5221
+ readonly internalType: "uint256";
5222
+ }];
5223
+ }, {
5224
+ readonly name: "call";
5225
+ readonly type: "bytes";
5226
+ readonly internalType: "bytes";
5227
+ }];
5228
+ }, {
5229
+ readonly name: "inputs";
5230
+ readonly type: "tuple[]";
5231
+ readonly internalType: "struct TokenInfo[]";
5232
+ readonly components: readonly [{
5233
+ readonly name: "token";
5234
+ readonly type: "bytes32";
5235
+ readonly internalType: "bytes32";
5236
+ }, {
5237
+ readonly name: "amount";
5238
+ readonly type: "uint256";
5239
+ readonly internalType: "uint256";
5240
+ }];
5241
+ }, {
5242
+ readonly name: "output";
5243
+ readonly type: "tuple";
5244
+ readonly internalType: "struct PaymentInfo";
5245
+ readonly components: readonly [{
5246
+ readonly name: "beneficiary";
5247
+ readonly type: "bytes32";
5248
+ readonly internalType: "bytes32";
5249
+ }, {
5250
+ readonly name: "assets";
5251
+ readonly type: "tuple[]";
5252
+ readonly internalType: "struct TokenInfo[]";
5253
+ readonly components: readonly [{
5254
+ readonly name: "token";
5255
+ readonly type: "bytes32";
5256
+ readonly internalType: "bytes32";
5257
+ }, {
5258
+ readonly name: "amount";
5259
+ readonly type: "uint256";
5260
+ readonly internalType: "uint256";
5261
+ }];
5262
+ }, {
5263
+ readonly name: "call";
5264
+ readonly type: "bytes";
5265
+ readonly internalType: "bytes";
5266
+ }];
5267
+ }];
5268
+ }, {
5269
+ readonly name: "graffiti";
5270
+ readonly type: "bytes32";
5271
+ readonly internalType: "bytes32";
5272
+ }];
5273
+ readonly outputs: readonly [];
5274
+ readonly stateMutability: "payable";
5275
+ }, {
5276
+ readonly type: "function";
5277
+ readonly name: "quote";
5278
+ readonly inputs: readonly [{
5279
+ readonly name: "request";
5280
+ readonly type: "tuple";
5281
+ readonly internalType: "struct DispatchPost";
5282
+ readonly components: readonly [{
5283
+ readonly name: "dest";
5284
+ readonly type: "bytes";
5285
+ readonly internalType: "bytes";
5286
+ }, {
5287
+ readonly name: "to";
5288
+ readonly type: "bytes";
5289
+ readonly internalType: "bytes";
5290
+ }, {
5291
+ readonly name: "body";
5292
+ readonly type: "bytes";
5293
+ readonly internalType: "bytes";
5294
+ }, {
5295
+ readonly name: "timeout";
5296
+ readonly type: "uint64";
5297
+ readonly internalType: "uint64";
5298
+ }, {
5299
+ readonly name: "fee";
5300
+ readonly type: "uint256";
5301
+ readonly internalType: "uint256";
5302
+ }, {
5303
+ readonly name: "payer";
5304
+ readonly type: "address";
5305
+ readonly internalType: "address";
5306
+ }];
5307
+ }];
5308
+ readonly outputs: readonly [{
5309
+ readonly name: "";
5310
+ readonly type: "uint256";
5311
+ readonly internalType: "uint256";
5312
+ }];
5313
+ readonly stateMutability: "view";
5314
+ }, {
5315
+ readonly type: "function";
5316
+ readonly name: "quote";
5317
+ readonly inputs: readonly [{
5318
+ readonly name: "request";
5319
+ readonly type: "tuple";
5320
+ readonly internalType: "struct DispatchGet";
5321
+ readonly components: readonly [{
5322
+ readonly name: "dest";
5323
+ readonly type: "bytes";
5324
+ readonly internalType: "bytes";
5325
+ }, {
5326
+ readonly name: "height";
5327
+ readonly type: "uint64";
5328
+ readonly internalType: "uint64";
5329
+ }, {
5330
+ readonly name: "keys";
5331
+ readonly type: "bytes[]";
5332
+ readonly internalType: "bytes[]";
5333
+ }, {
5334
+ readonly name: "timeout";
5335
+ readonly type: "uint64";
5336
+ readonly internalType: "uint64";
5337
+ }, {
5338
+ readonly name: "fee";
5339
+ readonly type: "uint256";
5340
+ readonly internalType: "uint256";
5341
+ }, {
5342
+ readonly name: "context";
5343
+ readonly type: "bytes";
5344
+ readonly internalType: "bytes";
5345
+ }];
5346
+ }];
5347
+ readonly outputs: readonly [{
5348
+ readonly name: "";
5349
+ readonly type: "uint256";
5350
+ readonly internalType: "uint256";
5351
+ }];
5352
+ readonly stateMutability: "view";
5353
+ }, {
5354
+ readonly type: "function";
5355
+ readonly name: "quote";
5356
+ readonly inputs: readonly [{
5357
+ readonly name: "response";
5358
+ readonly type: "tuple";
5359
+ readonly internalType: "struct DispatchPostResponse";
5360
+ readonly components: readonly [{
5361
+ readonly name: "request";
5362
+ readonly type: "tuple";
5363
+ readonly internalType: "struct PostRequest";
5364
+ readonly components: readonly [{
5365
+ readonly name: "source";
5366
+ readonly type: "bytes";
5367
+ readonly internalType: "bytes";
5368
+ }, {
5369
+ readonly name: "dest";
5370
+ readonly type: "bytes";
5371
+ readonly internalType: "bytes";
5372
+ }, {
5373
+ readonly name: "nonce";
5374
+ readonly type: "uint64";
5375
+ readonly internalType: "uint64";
5376
+ }, {
5377
+ readonly name: "from";
5378
+ readonly type: "bytes";
5379
+ readonly internalType: "bytes";
5380
+ }, {
5381
+ readonly name: "to";
5382
+ readonly type: "bytes";
5383
+ readonly internalType: "bytes";
5384
+ }, {
5385
+ readonly name: "timeoutTimestamp";
5386
+ readonly type: "uint64";
5387
+ readonly internalType: "uint64";
5388
+ }, {
5389
+ readonly name: "body";
5390
+ readonly type: "bytes";
5391
+ readonly internalType: "bytes";
5392
+ }];
5393
+ }, {
5394
+ readonly name: "response";
5395
+ readonly type: "bytes";
5396
+ readonly internalType: "bytes";
5397
+ }, {
5398
+ readonly name: "timeout";
5399
+ readonly type: "uint64";
5400
+ readonly internalType: "uint64";
5401
+ }, {
5402
+ readonly name: "fee";
5403
+ readonly type: "uint256";
5404
+ readonly internalType: "uint256";
5405
+ }, {
5406
+ readonly name: "payer";
5407
+ readonly type: "address";
5408
+ readonly internalType: "address";
5409
+ }];
5410
+ }];
5411
+ readonly outputs: readonly [{
5412
+ readonly name: "";
5413
+ readonly type: "uint256";
5414
+ readonly internalType: "uint256";
5415
+ }];
5416
+ readonly stateMutability: "view";
5417
+ }, {
5418
+ readonly type: "function";
5419
+ readonly name: "quoteNative";
5420
+ readonly inputs: readonly [{
5421
+ readonly name: "request";
5422
+ readonly type: "tuple";
5423
+ readonly internalType: "struct DispatchPost";
5424
+ readonly components: readonly [{
5425
+ readonly name: "dest";
5426
+ readonly type: "bytes";
5427
+ readonly internalType: "bytes";
5428
+ }, {
5429
+ readonly name: "to";
5430
+ readonly type: "bytes";
5431
+ readonly internalType: "bytes";
5432
+ }, {
5433
+ readonly name: "body";
5434
+ readonly type: "bytes";
5435
+ readonly internalType: "bytes";
5436
+ }, {
5437
+ readonly name: "timeout";
5438
+ readonly type: "uint64";
5439
+ readonly internalType: "uint64";
5440
+ }, {
5441
+ readonly name: "fee";
5442
+ readonly type: "uint256";
5443
+ readonly internalType: "uint256";
5444
+ }, {
5445
+ readonly name: "payer";
5446
+ readonly type: "address";
5447
+ readonly internalType: "address";
5448
+ }];
5449
+ }];
5450
+ readonly outputs: readonly [{
5451
+ readonly name: "";
5452
+ readonly type: "uint256";
5453
+ readonly internalType: "uint256";
5454
+ }];
5455
+ readonly stateMutability: "view";
5456
+ }, {
5457
+ readonly type: "function";
5458
+ readonly name: "quoteNative";
5459
+ readonly inputs: readonly [{
5460
+ readonly name: "request";
5461
+ readonly type: "tuple";
5462
+ readonly internalType: "struct DispatchPostResponse";
5463
+ readonly components: readonly [{
5464
+ readonly name: "request";
5465
+ readonly type: "tuple";
5466
+ readonly internalType: "struct PostRequest";
5467
+ readonly components: readonly [{
5468
+ readonly name: "source";
5469
+ readonly type: "bytes";
5470
+ readonly internalType: "bytes";
5471
+ }, {
5472
+ readonly name: "dest";
5473
+ readonly type: "bytes";
5474
+ readonly internalType: "bytes";
5475
+ }, {
5476
+ readonly name: "nonce";
5477
+ readonly type: "uint64";
5478
+ readonly internalType: "uint64";
5479
+ }, {
5480
+ readonly name: "from";
5481
+ readonly type: "bytes";
5482
+ readonly internalType: "bytes";
5483
+ }, {
5484
+ readonly name: "to";
5485
+ readonly type: "bytes";
5486
+ readonly internalType: "bytes";
5487
+ }, {
5488
+ readonly name: "timeoutTimestamp";
5489
+ readonly type: "uint64";
5490
+ readonly internalType: "uint64";
5491
+ }, {
5492
+ readonly name: "body";
5493
+ readonly type: "bytes";
5494
+ readonly internalType: "bytes";
5495
+ }];
5496
+ }, {
5497
+ readonly name: "response";
5498
+ readonly type: "bytes";
5499
+ readonly internalType: "bytes";
5500
+ }, {
5501
+ readonly name: "timeout";
5502
+ readonly type: "uint64";
5503
+ readonly internalType: "uint64";
5504
+ }, {
5505
+ readonly name: "fee";
5506
+ readonly type: "uint256";
5507
+ readonly internalType: "uint256";
5508
+ }, {
5509
+ readonly name: "payer";
5510
+ readonly type: "address";
5511
+ readonly internalType: "address";
5512
+ }];
5513
+ }];
5514
+ readonly outputs: readonly [{
5515
+ readonly name: "";
5516
+ readonly type: "uint256";
5517
+ readonly internalType: "uint256";
5518
+ }];
5519
+ readonly stateMutability: "view";
5520
+ }, {
5521
+ readonly type: "function";
5522
+ readonly name: "quoteNative";
5523
+ readonly inputs: readonly [{
5524
+ readonly name: "request";
5525
+ readonly type: "tuple";
5526
+ readonly internalType: "struct DispatchGet";
5527
+ readonly components: readonly [{
5528
+ readonly name: "dest";
5529
+ readonly type: "bytes";
5530
+ readonly internalType: "bytes";
5531
+ }, {
5532
+ readonly name: "height";
5533
+ readonly type: "uint64";
5534
+ readonly internalType: "uint64";
5535
+ }, {
5536
+ readonly name: "keys";
5537
+ readonly type: "bytes[]";
5538
+ readonly internalType: "bytes[]";
5539
+ }, {
5540
+ readonly name: "timeout";
5541
+ readonly type: "uint64";
5542
+ readonly internalType: "uint64";
5543
+ }, {
5544
+ readonly name: "fee";
5545
+ readonly type: "uint256";
5546
+ readonly internalType: "uint256";
5547
+ }, {
5548
+ readonly name: "context";
5549
+ readonly type: "bytes";
5550
+ readonly internalType: "bytes";
5551
+ }];
5552
+ }];
5553
+ readonly outputs: readonly [{
5554
+ readonly name: "";
5555
+ readonly type: "uint256";
5556
+ readonly internalType: "uint256";
5557
+ }];
5558
+ readonly stateMutability: "view";
5559
+ }, {
5560
+ readonly type: "function";
5561
+ readonly name: "select";
5562
+ readonly inputs: readonly [{
5563
+ readonly name: "options";
5564
+ readonly type: "tuple";
5565
+ readonly internalType: "struct SelectOptions";
5566
+ readonly components: readonly [{
5567
+ readonly name: "commitment";
5568
+ readonly type: "bytes32";
5569
+ readonly internalType: "bytes32";
5570
+ }, {
5571
+ readonly name: "solver";
5572
+ readonly type: "address";
5573
+ readonly internalType: "address";
5574
+ }, {
5575
+ readonly name: "signature";
5576
+ readonly type: "bytes";
5577
+ readonly internalType: "bytes";
5578
+ }];
5579
+ }];
5580
+ readonly outputs: readonly [{
5581
+ readonly name: "";
5582
+ readonly type: "address";
5583
+ readonly internalType: "address";
5584
+ }];
5585
+ readonly stateMutability: "nonpayable";
5586
+ }, {
5587
+ readonly type: "function";
5588
+ readonly name: "setParams";
5589
+ readonly inputs: readonly [{
5590
+ readonly name: "p";
5591
+ readonly type: "tuple";
5592
+ readonly internalType: "struct Params";
5593
+ readonly components: readonly [{
5594
+ readonly name: "host";
5595
+ readonly type: "address";
5596
+ readonly internalType: "address";
5597
+ }, {
5598
+ readonly name: "dispatcher";
5599
+ readonly type: "address";
5600
+ readonly internalType: "address";
5601
+ }, {
5602
+ readonly name: "solverSelection";
5603
+ readonly type: "bool";
5604
+ readonly internalType: "bool";
5605
+ }, {
5606
+ readonly name: "surplusShareBps";
5607
+ readonly type: "uint256";
5608
+ readonly internalType: "uint256";
5609
+ }, {
5610
+ readonly name: "protocolFeeBps";
5611
+ readonly type: "uint256";
5612
+ readonly internalType: "uint256";
5613
+ }, {
5614
+ readonly name: "priceOracle";
5615
+ readonly type: "address";
5616
+ readonly internalType: "address";
5617
+ }];
5618
+ }];
5619
+ readonly outputs: readonly [];
5620
+ readonly stateMutability: "nonpayable";
5621
+ }, {
5622
+ readonly type: "event";
5623
+ readonly name: "DestinationProtocolFeeUpdated";
5624
+ readonly inputs: readonly [{
5625
+ readonly name: "stateMachineId";
5626
+ readonly type: "bytes32";
5627
+ readonly indexed: true;
5628
+ readonly internalType: "bytes32";
5629
+ }, {
5630
+ readonly name: "feeBps";
5631
+ readonly type: "uint256";
5632
+ readonly indexed: false;
5633
+ readonly internalType: "uint256";
5634
+ }];
5635
+ readonly anonymous: false;
5636
+ }, {
5637
+ readonly type: "event";
5638
+ readonly name: "DustCollected";
5639
+ readonly inputs: readonly [{
5640
+ readonly name: "token";
5641
+ readonly type: "address";
5642
+ readonly indexed: false;
5643
+ readonly internalType: "address";
5644
+ }, {
5645
+ readonly name: "amount";
5646
+ readonly type: "uint256";
5647
+ readonly indexed: false;
5648
+ readonly internalType: "uint256";
5649
+ }];
5650
+ readonly anonymous: false;
5651
+ }, {
5652
+ readonly type: "event";
5653
+ readonly name: "DustSwept";
5654
+ readonly inputs: readonly [{
5655
+ readonly name: "token";
5656
+ readonly type: "address";
5657
+ readonly indexed: false;
5658
+ readonly internalType: "address";
5659
+ }, {
5660
+ readonly name: "amount";
5661
+ readonly type: "uint256";
5662
+ readonly indexed: false;
5663
+ readonly internalType: "uint256";
5664
+ }, {
5665
+ readonly name: "beneficiary";
5666
+ readonly type: "address";
5667
+ readonly indexed: false;
5668
+ readonly internalType: "address";
5669
+ }];
5670
+ readonly anonymous: false;
5671
+ }, {
5672
+ readonly type: "event";
5673
+ readonly name: "EIP712DomainChanged";
5674
+ readonly inputs: readonly [];
5675
+ readonly anonymous: false;
5676
+ }, {
5677
+ readonly type: "event";
5678
+ readonly name: "EscrowRefunded";
5679
+ readonly inputs: readonly [{
5680
+ readonly name: "commitment";
5681
+ readonly type: "bytes32";
5682
+ readonly indexed: true;
5683
+ readonly internalType: "bytes32";
5684
+ }];
5685
+ readonly anonymous: false;
5686
+ }, {
5687
+ readonly type: "event";
5688
+ readonly name: "EscrowReleased";
5689
+ readonly inputs: readonly [{
5690
+ readonly name: "commitment";
5691
+ readonly type: "bytes32";
5692
+ readonly indexed: true;
5693
+ readonly internalType: "bytes32";
5694
+ }];
5695
+ readonly anonymous: false;
5696
+ }, {
5697
+ readonly type: "event";
5698
+ readonly name: "NewDeploymentAdded";
5699
+ readonly inputs: readonly [{
5700
+ readonly name: "stateMachineId";
5701
+ readonly type: "bytes";
5702
+ readonly indexed: false;
5703
+ readonly internalType: "bytes";
5704
+ }, {
5705
+ readonly name: "gateway";
5706
+ readonly type: "address";
5707
+ readonly indexed: false;
5708
+ readonly internalType: "address";
5709
+ }];
5710
+ readonly anonymous: false;
5711
+ }, {
5712
+ readonly type: "event";
5713
+ readonly name: "OrderFilled";
5714
+ readonly inputs: readonly [{
5715
+ readonly name: "commitment";
5716
+ readonly type: "bytes32";
5717
+ readonly indexed: true;
5718
+ readonly internalType: "bytes32";
5719
+ }, {
5720
+ readonly name: "filler";
5721
+ readonly type: "address";
5722
+ readonly indexed: false;
5723
+ readonly internalType: "address";
5724
+ }];
5725
+ readonly anonymous: false;
5726
+ }, {
5727
+ readonly type: "event";
5728
+ readonly name: "OrderPlaced";
5729
+ readonly inputs: readonly [{
5730
+ readonly name: "user";
5731
+ readonly type: "bytes32";
5732
+ readonly indexed: false;
5733
+ readonly internalType: "bytes32";
5734
+ }, {
5735
+ readonly name: "source";
5736
+ readonly type: "bytes";
5737
+ readonly indexed: false;
5738
+ readonly internalType: "bytes";
5739
+ }, {
5740
+ readonly name: "destination";
5741
+ readonly type: "bytes";
5742
+ readonly indexed: false;
5743
+ readonly internalType: "bytes";
5744
+ }, {
5745
+ readonly name: "deadline";
5746
+ readonly type: "uint256";
5747
+ readonly indexed: false;
5748
+ readonly internalType: "uint256";
5749
+ }, {
5750
+ readonly name: "nonce";
5751
+ readonly type: "uint256";
5752
+ readonly indexed: false;
5753
+ readonly internalType: "uint256";
5754
+ }, {
5755
+ readonly name: "fees";
5756
+ readonly type: "uint256";
5757
+ readonly indexed: false;
5758
+ readonly internalType: "uint256";
5759
+ }, {
5760
+ readonly name: "session";
5761
+ readonly type: "address";
5762
+ readonly indexed: false;
5763
+ readonly internalType: "address";
5764
+ }, {
5765
+ readonly name: "beneficiary";
5766
+ readonly type: "bytes32";
5767
+ readonly indexed: false;
5768
+ readonly internalType: "bytes32";
5769
+ }, {
5770
+ readonly name: "predispatch";
5771
+ readonly type: "tuple[]";
5772
+ readonly indexed: false;
5773
+ readonly internalType: "struct TokenInfo[]";
5774
+ readonly components: readonly [{
5775
+ readonly name: "token";
5776
+ readonly type: "bytes32";
5777
+ readonly internalType: "bytes32";
5778
+ }, {
5779
+ readonly name: "amount";
5780
+ readonly type: "uint256";
5781
+ readonly internalType: "uint256";
5782
+ }];
5783
+ }, {
5784
+ readonly name: "inputs";
5785
+ readonly type: "tuple[]";
5786
+ readonly indexed: false;
5787
+ readonly internalType: "struct TokenInfo[]";
5788
+ readonly components: readonly [{
5789
+ readonly name: "token";
5790
+ readonly type: "bytes32";
5791
+ readonly internalType: "bytes32";
5792
+ }, {
5793
+ readonly name: "amount";
5794
+ readonly type: "uint256";
5795
+ readonly internalType: "uint256";
5796
+ }];
5797
+ }, {
5798
+ readonly name: "outputs";
5799
+ readonly type: "tuple[]";
5800
+ readonly indexed: false;
5801
+ readonly internalType: "struct TokenInfo[]";
5802
+ readonly components: readonly [{
5803
+ readonly name: "token";
5804
+ readonly type: "bytes32";
5805
+ readonly internalType: "bytes32";
5806
+ }, {
5807
+ readonly name: "amount";
5808
+ readonly type: "uint256";
5809
+ readonly internalType: "uint256";
5810
+ }];
5811
+ }];
5812
+ readonly anonymous: false;
5813
+ }, {
5814
+ readonly type: "event";
5815
+ readonly name: "ParamsUpdated";
5816
+ readonly inputs: readonly [{
5817
+ readonly name: "previous";
5818
+ readonly type: "tuple";
5819
+ readonly indexed: false;
5820
+ readonly internalType: "struct Params";
5821
+ readonly components: readonly [{
5822
+ readonly name: "host";
5823
+ readonly type: "address";
5824
+ readonly internalType: "address";
5825
+ }, {
5826
+ readonly name: "dispatcher";
5827
+ readonly type: "address";
5828
+ readonly internalType: "address";
5829
+ }, {
5830
+ readonly name: "solverSelection";
5831
+ readonly type: "bool";
5832
+ readonly internalType: "bool";
5833
+ }, {
5834
+ readonly name: "surplusShareBps";
5835
+ readonly type: "uint256";
5836
+ readonly internalType: "uint256";
5837
+ }, {
5838
+ readonly name: "protocolFeeBps";
5839
+ readonly type: "uint256";
5840
+ readonly internalType: "uint256";
5841
+ }, {
5842
+ readonly name: "priceOracle";
5843
+ readonly type: "address";
5844
+ readonly internalType: "address";
5845
+ }];
5846
+ }, {
5847
+ readonly name: "current";
5848
+ readonly type: "tuple";
5849
+ readonly indexed: false;
5850
+ readonly internalType: "struct Params";
5851
+ readonly components: readonly [{
5852
+ readonly name: "host";
5853
+ readonly type: "address";
5854
+ readonly internalType: "address";
5855
+ }, {
5856
+ readonly name: "dispatcher";
5857
+ readonly type: "address";
5858
+ readonly internalType: "address";
5859
+ }, {
5860
+ readonly name: "solverSelection";
5861
+ readonly type: "bool";
5862
+ readonly internalType: "bool";
5863
+ }, {
5864
+ readonly name: "surplusShareBps";
5865
+ readonly type: "uint256";
5866
+ readonly internalType: "uint256";
5867
+ }, {
5868
+ readonly name: "protocolFeeBps";
5869
+ readonly type: "uint256";
5870
+ readonly internalType: "uint256";
5871
+ }, {
5872
+ readonly name: "priceOracle";
5873
+ readonly type: "address";
5874
+ readonly internalType: "address";
5875
+ }];
5876
+ }];
5877
+ readonly anonymous: false;
5878
+ }, {
5879
+ readonly type: "event";
5880
+ readonly name: "PartialFill";
5881
+ readonly inputs: readonly [{
5882
+ readonly name: "commitment";
5883
+ readonly type: "bytes32";
5884
+ readonly indexed: true;
5885
+ readonly internalType: "bytes32";
5886
+ }, {
5887
+ readonly name: "filler";
5888
+ readonly type: "address";
5889
+ readonly indexed: false;
5890
+ readonly internalType: "address";
5891
+ }, {
5892
+ readonly name: "outputs";
5893
+ readonly type: "tuple[]";
5894
+ readonly indexed: false;
5895
+ readonly internalType: "struct TokenInfo[]";
5896
+ readonly components: readonly [{
5897
+ readonly name: "token";
5898
+ readonly type: "bytes32";
5899
+ readonly internalType: "bytes32";
5900
+ }, {
5901
+ readonly name: "amount";
5902
+ readonly type: "uint256";
5903
+ readonly internalType: "uint256";
5904
+ }];
5905
+ }, {
5906
+ readonly name: "inputs";
5907
+ readonly type: "tuple[]";
5908
+ readonly indexed: false;
5909
+ readonly internalType: "struct TokenInfo[]";
5910
+ readonly components: readonly [{
5911
+ readonly name: "token";
5912
+ readonly type: "bytes32";
5913
+ readonly internalType: "bytes32";
5914
+ }, {
5915
+ readonly name: "amount";
5916
+ readonly type: "uint256";
5917
+ readonly internalType: "uint256";
5918
+ }];
5919
+ }];
5920
+ readonly anonymous: false;
5921
+ }, {
5922
+ readonly type: "error";
5923
+ readonly name: "Cancelled";
5924
+ readonly inputs: readonly [];
5925
+ }, {
5926
+ readonly type: "error";
5927
+ readonly name: "ECDSAInvalidSignature";
5928
+ readonly inputs: readonly [];
5929
+ }, {
5930
+ readonly type: "error";
5931
+ readonly name: "ECDSAInvalidSignatureLength";
5932
+ readonly inputs: readonly [{
5933
+ readonly name: "length";
5934
+ readonly type: "uint256";
5935
+ readonly internalType: "uint256";
5936
+ }];
5937
+ }, {
5938
+ readonly type: "error";
5939
+ readonly name: "ECDSAInvalidSignatureS";
5940
+ readonly inputs: readonly [{
5941
+ readonly name: "s";
5942
+ readonly type: "bytes32";
5943
+ readonly internalType: "bytes32";
5944
+ }];
5945
+ }, {
5946
+ readonly type: "error";
5947
+ readonly name: "Expired";
5948
+ readonly inputs: readonly [];
5949
+ }, {
5950
+ readonly type: "error";
5951
+ readonly name: "Filled";
5952
+ readonly inputs: readonly [];
5953
+ }, {
5954
+ readonly type: "error";
5955
+ readonly name: "InsufficientNativeToken";
5956
+ readonly inputs: readonly [];
5957
+ }, {
5958
+ readonly type: "error";
5959
+ readonly name: "InvalidInput";
5960
+ readonly inputs: readonly [];
5961
+ }, {
5962
+ readonly type: "error";
5963
+ readonly name: "InvalidShortString";
5964
+ readonly inputs: readonly [];
5965
+ }, {
5966
+ readonly type: "error";
5967
+ readonly name: "NotExpired";
5968
+ readonly inputs: readonly [];
5969
+ }, {
5970
+ readonly type: "error";
5971
+ readonly name: "SafeCastOverflowedUintDowncast";
5972
+ readonly inputs: readonly [{
5973
+ readonly name: "bits";
5974
+ readonly type: "uint8";
5975
+ readonly internalType: "uint8";
5976
+ }, {
5977
+ readonly name: "value";
5978
+ readonly type: "uint256";
5979
+ readonly internalType: "uint256";
5980
+ }];
5981
+ }, {
5982
+ readonly type: "error";
5983
+ readonly name: "SafeERC20FailedOperation";
5984
+ readonly inputs: readonly [{
5985
+ readonly name: "token";
5986
+ readonly type: "address";
5987
+ readonly internalType: "address";
5988
+ }];
5989
+ }, {
5990
+ readonly type: "error";
5991
+ readonly name: "StringTooLong";
5992
+ readonly inputs: readonly [{
5993
+ readonly name: "str";
5994
+ readonly type: "string";
5995
+ readonly internalType: "string";
5996
+ }];
5997
+ }, {
5998
+ readonly type: "error";
5999
+ readonly name: "Unauthorized";
6000
+ readonly inputs: readonly [];
6001
+ }, {
6002
+ readonly type: "error";
6003
+ readonly name: "UnauthorizedCall";
6004
+ readonly inputs: readonly [];
6005
+ }, {
6006
+ readonly type: "error";
6007
+ readonly name: "UnexpectedCall";
6008
+ readonly inputs: readonly [];
6009
+ }, {
6010
+ readonly type: "error";
6011
+ readonly name: "UnknownOrder";
6012
+ readonly inputs: readonly [];
6013
+ }, {
6014
+ readonly type: "error";
6015
+ readonly name: "WrongChain";
6016
+ readonly inputs: readonly [];
6017
+ }];
6018
+
6019
+ declare const ABI: readonly [{
6020
+ readonly inputs: readonly [];
6021
+ readonly name: "CannotChangeFeeToken";
6022
+ readonly type: "error";
6023
+ }, {
6024
+ readonly inputs: readonly [];
6025
+ readonly name: "DuplicateResponse";
6026
+ readonly type: "error";
6027
+ }, {
6028
+ readonly inputs: readonly [];
6029
+ readonly name: "FrozenHost";
6030
+ readonly type: "error";
6031
+ }, {
6032
+ readonly inputs: readonly [];
6033
+ readonly name: "InvalidAddressLength";
6034
+ readonly type: "error";
6035
+ }, {
6036
+ readonly inputs: readonly [];
6037
+ readonly name: "InvalidConsensusClient";
6038
+ readonly type: "error";
6039
+ }, {
6040
+ readonly inputs: readonly [];
6041
+ readonly name: "InvalidHandler";
6042
+ readonly type: "error";
6043
+ }, {
6044
+ readonly inputs: readonly [];
6045
+ readonly name: "InvalidHostManager";
6046
+ readonly type: "error";
6047
+ }, {
6048
+ readonly inputs: readonly [];
6049
+ readonly name: "InvalidHyperbridgeId";
6050
+ readonly type: "error";
6051
+ }, {
6052
+ readonly inputs: readonly [];
6053
+ readonly name: "InvalidStateMachinesLength";
6054
+ readonly type: "error";
6055
+ }, {
6056
+ readonly inputs: readonly [];
6057
+ readonly name: "InvalidUnstakingPeriod";
6058
+ readonly type: "error";
6059
+ }, {
6060
+ readonly inputs: readonly [];
6061
+ readonly name: "UnauthorizedAccount";
6062
+ readonly type: "error";
6063
+ }, {
6064
+ readonly inputs: readonly [];
6065
+ readonly name: "UnauthorizedAction";
6066
+ readonly type: "error";
6067
+ }, {
6068
+ readonly inputs: readonly [];
6069
+ readonly name: "UnauthorizedResponse";
6070
+ readonly type: "error";
6071
+ }, {
6072
+ readonly inputs: readonly [];
6073
+ readonly name: "UnknownRequest";
6074
+ readonly type: "error";
6075
+ }, {
6076
+ readonly inputs: readonly [];
6077
+ readonly name: "UnknownResponse";
6078
+ readonly type: "error";
6079
+ }, {
6080
+ readonly inputs: readonly [];
6081
+ readonly name: "WithdrawalFailed";
6082
+ readonly type: "error";
6083
+ }, {
6084
+ readonly anonymous: false;
6085
+ readonly inputs: readonly [{
6086
+ readonly indexed: false;
6087
+ readonly internalType: "string";
6088
+ readonly name: "source";
6089
+ readonly type: "string";
6090
+ }, {
6091
+ readonly indexed: false;
6092
+ readonly internalType: "string";
6093
+ readonly name: "dest";
6094
+ readonly type: "string";
6095
+ }, {
6096
+ readonly indexed: true;
6097
+ readonly internalType: "address";
6098
+ readonly name: "from";
6099
+ readonly type: "address";
6100
+ }, {
6101
+ readonly indexed: false;
6102
+ readonly internalType: "bytes[]";
6103
+ readonly name: "keys";
6104
+ readonly type: "bytes[]";
6105
+ }, {
6106
+ readonly indexed: false;
6107
+ readonly internalType: "uint256";
6108
+ readonly name: "height";
6109
+ readonly type: "uint256";
6110
+ }, {
6111
+ readonly indexed: false;
6112
+ readonly internalType: "uint256";
6113
+ readonly name: "nonce";
6114
+ readonly type: "uint256";
6115
+ }, {
6116
+ readonly indexed: false;
6117
+ readonly internalType: "uint256";
6118
+ readonly name: "timeoutTimestamp";
6119
+ readonly type: "uint256";
6120
+ }, {
6121
+ readonly indexed: false;
6122
+ readonly internalType: "bytes";
6123
+ readonly name: "context";
6124
+ readonly type: "bytes";
6125
+ }, {
6126
+ readonly indexed: false;
6127
+ readonly internalType: "uint256";
6128
+ readonly name: "fee";
6129
+ readonly type: "uint256";
6130
+ }];
6131
+ readonly name: "GetRequestEvent";
6132
+ readonly type: "event";
6133
+ }, {
6134
+ readonly anonymous: false;
6135
+ readonly inputs: readonly [{
6136
+ readonly indexed: true;
6137
+ readonly internalType: "bytes32";
6138
+ readonly name: "commitment";
6139
+ readonly type: "bytes32";
6140
+ }, {
6141
+ readonly indexed: false;
6142
+ readonly internalType: "address";
6143
+ readonly name: "relayer";
6144
+ readonly type: "address";
6145
+ }];
6146
+ readonly name: "GetRequestHandled";
6147
+ readonly type: "event";
6148
+ }, {
6149
+ readonly anonymous: false;
6150
+ readonly inputs: readonly [{
6151
+ readonly indexed: true;
6152
+ readonly internalType: "bytes32";
6153
+ readonly name: "commitment";
6154
+ readonly type: "bytes32";
6155
+ }, {
6156
+ readonly indexed: false;
6157
+ readonly internalType: "string";
6158
+ readonly name: "dest";
6159
+ readonly type: "string";
6160
+ }];
6161
+ readonly name: "GetRequestTimeoutHandled";
6162
+ readonly type: "event";
6163
+ }, {
6164
+ readonly anonymous: false;
6165
+ readonly inputs: readonly [{
6166
+ readonly indexed: false;
6167
+ readonly internalType: "enum FrozenStatus";
6168
+ readonly name: "status";
6169
+ readonly type: "uint8";
6170
+ }];
6171
+ readonly name: "HostFrozen";
6172
+ readonly type: "event";
6173
+ }, {
6174
+ readonly anonymous: false;
6175
+ readonly inputs: readonly [{
6176
+ readonly components: readonly [{
6177
+ readonly internalType: "uint256";
6178
+ readonly name: "defaultTimeout";
6179
+ readonly type: "uint256";
6180
+ }, {
6181
+ readonly internalType: "uint256";
6182
+ readonly name: "defaultPerByteFee";
6183
+ readonly type: "uint256";
6184
+ }, {
6185
+ readonly internalType: "uint256";
6186
+ readonly name: "stateCommitmentFee";
6187
+ readonly type: "uint256";
6188
+ }, {
6189
+ readonly internalType: "address";
6190
+ readonly name: "feeToken";
6191
+ readonly type: "address";
6192
+ }, {
6193
+ readonly internalType: "address";
6194
+ readonly name: "admin";
6195
+ readonly type: "address";
6196
+ }, {
6197
+ readonly internalType: "address";
6198
+ readonly name: "handler";
6199
+ readonly type: "address";
6200
+ }, {
6201
+ readonly internalType: "address";
6202
+ readonly name: "hostManager";
6203
+ readonly type: "address";
6204
+ }, {
6205
+ readonly internalType: "address";
6206
+ readonly name: "uniswapV2";
6207
+ readonly type: "address";
6208
+ }, {
6209
+ readonly internalType: "uint256";
6210
+ readonly name: "unStakingPeriod";
6211
+ readonly type: "uint256";
6212
+ }, {
6213
+ readonly internalType: "uint256";
6214
+ readonly name: "challengePeriod";
6215
+ readonly type: "uint256";
6216
+ }, {
6217
+ readonly internalType: "address";
6218
+ readonly name: "consensusClient";
6219
+ readonly type: "address";
6220
+ }, {
6221
+ readonly internalType: "uint256[]";
6222
+ readonly name: "stateMachines";
6223
+ readonly type: "uint256[]";
6224
+ }, {
6225
+ readonly components: readonly [{
6226
+ readonly internalType: "bytes32";
6227
+ readonly name: "stateIdHash";
6228
+ readonly type: "bytes32";
6229
+ }, {
6230
+ readonly internalType: "uint256";
6231
+ readonly name: "perByteFee";
6232
+ readonly type: "uint256";
6233
+ }];
6234
+ readonly internalType: "struct PerByteFee[]";
6235
+ readonly name: "perByteFees";
6236
+ readonly type: "tuple[]";
6237
+ }, {
6238
+ readonly internalType: "bytes";
6239
+ readonly name: "hyperbridge";
6240
+ readonly type: "bytes";
6241
+ }];
6242
+ readonly indexed: false;
6243
+ readonly internalType: "struct HostParams";
6244
+ readonly name: "oldParams";
6245
+ readonly type: "tuple";
6246
+ }, {
6247
+ readonly components: readonly [{
6248
+ readonly internalType: "uint256";
6249
+ readonly name: "defaultTimeout";
6250
+ readonly type: "uint256";
6251
+ }, {
6252
+ readonly internalType: "uint256";
6253
+ readonly name: "defaultPerByteFee";
6254
+ readonly type: "uint256";
6255
+ }, {
6256
+ readonly internalType: "uint256";
6257
+ readonly name: "stateCommitmentFee";
6258
+ readonly type: "uint256";
6259
+ }, {
6260
+ readonly internalType: "address";
6261
+ readonly name: "feeToken";
6262
+ readonly type: "address";
6263
+ }, {
6264
+ readonly internalType: "address";
6265
+ readonly name: "admin";
6266
+ readonly type: "address";
6267
+ }, {
6268
+ readonly internalType: "address";
6269
+ readonly name: "handler";
6270
+ readonly type: "address";
6271
+ }, {
6272
+ readonly internalType: "address";
6273
+ readonly name: "hostManager";
6274
+ readonly type: "address";
6275
+ }, {
6276
+ readonly internalType: "address";
6277
+ readonly name: "uniswapV2";
6278
+ readonly type: "address";
6279
+ }, {
6280
+ readonly internalType: "uint256";
6281
+ readonly name: "unStakingPeriod";
6282
+ readonly type: "uint256";
6283
+ }, {
6284
+ readonly internalType: "uint256";
6285
+ readonly name: "challengePeriod";
6286
+ readonly type: "uint256";
6287
+ }, {
6288
+ readonly internalType: "address";
6289
+ readonly name: "consensusClient";
6290
+ readonly type: "address";
6291
+ }, {
6292
+ readonly internalType: "uint256[]";
6293
+ readonly name: "stateMachines";
6294
+ readonly type: "uint256[]";
6295
+ }, {
6296
+ readonly components: readonly [{
6297
+ readonly internalType: "bytes32";
6298
+ readonly name: "stateIdHash";
6299
+ readonly type: "bytes32";
6300
+ }, {
6301
+ readonly internalType: "uint256";
6302
+ readonly name: "perByteFee";
6303
+ readonly type: "uint256";
6304
+ }];
6305
+ readonly internalType: "struct PerByteFee[]";
6306
+ readonly name: "perByteFees";
6307
+ readonly type: "tuple[]";
6308
+ }, {
6309
+ readonly internalType: "bytes";
6310
+ readonly name: "hyperbridge";
6311
+ readonly type: "bytes";
6312
+ }];
6313
+ readonly indexed: false;
6314
+ readonly internalType: "struct HostParams";
6315
+ readonly name: "newParams";
6316
+ readonly type: "tuple";
6317
+ }];
6318
+ readonly name: "HostParamsUpdated";
6319
+ readonly type: "event";
6320
+ }, {
6321
+ readonly anonymous: false;
6322
+ readonly inputs: readonly [{
6323
+ readonly indexed: false;
6324
+ readonly internalType: "uint256";
6325
+ readonly name: "amount";
6326
+ readonly type: "uint256";
6327
+ }, {
6328
+ readonly indexed: false;
6329
+ readonly internalType: "address";
6330
+ readonly name: "beneficiary";
6331
+ readonly type: "address";
6332
+ }, {
6333
+ readonly indexed: false;
6334
+ readonly internalType: "bool";
6335
+ readonly name: "native";
6336
+ readonly type: "bool";
6337
+ }];
6338
+ readonly name: "HostWithdrawal";
6339
+ readonly type: "event";
6340
+ }, {
6341
+ readonly anonymous: false;
6342
+ readonly inputs: readonly [{
6343
+ readonly indexed: false;
6344
+ readonly internalType: "string";
6345
+ readonly name: "source";
6346
+ readonly type: "string";
6347
+ }, {
6348
+ readonly indexed: false;
6349
+ readonly internalType: "string";
6350
+ readonly name: "dest";
6351
+ readonly type: "string";
6352
+ }, {
6353
+ readonly indexed: true;
6354
+ readonly internalType: "address";
6355
+ readonly name: "from";
6356
+ readonly type: "address";
6357
+ }, {
6358
+ readonly indexed: false;
6359
+ readonly internalType: "bytes";
6360
+ readonly name: "to";
6361
+ readonly type: "bytes";
6362
+ }, {
6363
+ readonly indexed: false;
6364
+ readonly internalType: "uint256";
6365
+ readonly name: "nonce";
6366
+ readonly type: "uint256";
6367
+ }, {
6368
+ readonly indexed: false;
6369
+ readonly internalType: "uint256";
6370
+ readonly name: "timeoutTimestamp";
6371
+ readonly type: "uint256";
6372
+ }, {
6373
+ readonly indexed: false;
6374
+ readonly internalType: "bytes";
6375
+ readonly name: "body";
6376
+ readonly type: "bytes";
6377
+ }, {
6378
+ readonly indexed: false;
6379
+ readonly internalType: "uint256";
6380
+ readonly name: "fee";
6381
+ readonly type: "uint256";
6382
+ }];
6383
+ readonly name: "PostRequestEvent";
6384
+ readonly type: "event";
6385
+ }, {
6386
+ readonly anonymous: false;
6387
+ readonly inputs: readonly [{
6388
+ readonly indexed: true;
6389
+ readonly internalType: "bytes32";
6390
+ readonly name: "commitment";
6391
+ readonly type: "bytes32";
6392
+ }, {
6393
+ readonly indexed: false;
6394
+ readonly internalType: "address";
6395
+ readonly name: "relayer";
6396
+ readonly type: "address";
6397
+ }];
6398
+ readonly name: "PostRequestHandled";
6399
+ readonly type: "event";
6400
+ }, {
6401
+ readonly anonymous: false;
6402
+ readonly inputs: readonly [{
6403
+ readonly indexed: true;
6404
+ readonly internalType: "bytes32";
6405
+ readonly name: "commitment";
6406
+ readonly type: "bytes32";
6407
+ }, {
6408
+ readonly indexed: false;
6409
+ readonly internalType: "string";
6410
+ readonly name: "dest";
6411
+ readonly type: "string";
6412
+ }];
6413
+ readonly name: "PostRequestTimeoutHandled";
6414
+ readonly type: "event";
6415
+ }, {
6416
+ readonly anonymous: false;
6417
+ readonly inputs: readonly [{
6418
+ readonly indexed: false;
6419
+ readonly internalType: "string";
6420
+ readonly name: "source";
6421
+ readonly type: "string";
6422
+ }, {
6423
+ readonly indexed: false;
6424
+ readonly internalType: "string";
6425
+ readonly name: "dest";
6426
+ readonly type: "string";
6427
+ }, {
6428
+ readonly indexed: true;
6429
+ readonly internalType: "address";
6430
+ readonly name: "from";
6431
+ readonly type: "address";
6432
+ }, {
6433
+ readonly indexed: false;
6434
+ readonly internalType: "bytes";
6435
+ readonly name: "to";
6436
+ readonly type: "bytes";
6437
+ }, {
6438
+ readonly indexed: false;
6439
+ readonly internalType: "uint256";
6440
+ readonly name: "nonce";
6441
+ readonly type: "uint256";
6442
+ }, {
6443
+ readonly indexed: false;
6444
+ readonly internalType: "uint256";
6445
+ readonly name: "timeoutTimestamp";
6446
+ readonly type: "uint256";
6447
+ }, {
6448
+ readonly indexed: false;
6449
+ readonly internalType: "bytes";
6450
+ readonly name: "body";
6451
+ readonly type: "bytes";
6452
+ }, {
6453
+ readonly indexed: false;
6454
+ readonly internalType: "bytes";
6455
+ readonly name: "response";
6456
+ readonly type: "bytes";
6457
+ }, {
6458
+ readonly indexed: false;
6459
+ readonly internalType: "uint256";
6460
+ readonly name: "responseTimeoutTimestamp";
6461
+ readonly type: "uint256";
6462
+ }, {
6463
+ readonly indexed: false;
6464
+ readonly internalType: "uint256";
6465
+ readonly name: "fee";
6466
+ readonly type: "uint256";
6467
+ }];
6468
+ readonly name: "PostResponseEvent";
6469
+ readonly type: "event";
6470
+ }, {
6471
+ readonly anonymous: false;
6472
+ readonly inputs: readonly [{
6473
+ readonly indexed: true;
6474
+ readonly internalType: "bytes32";
6475
+ readonly name: "commitment";
6476
+ readonly type: "bytes32";
6477
+ }, {
6478
+ readonly indexed: false;
6479
+ readonly internalType: "uint256";
6480
+ readonly name: "newFee";
6481
+ readonly type: "uint256";
6482
+ }];
6483
+ readonly name: "PostResponseFunded";
6484
+ readonly type: "event";
6485
+ }, {
6486
+ readonly anonymous: false;
6487
+ readonly inputs: readonly [{
6488
+ readonly indexed: true;
6489
+ readonly internalType: "bytes32";
6490
+ readonly name: "commitment";
6491
+ readonly type: "bytes32";
6492
+ }, {
6493
+ readonly indexed: false;
6494
+ readonly internalType: "address";
6495
+ readonly name: "relayer";
6496
+ readonly type: "address";
6497
+ }];
6498
+ readonly name: "PostResponseHandled";
6499
+ readonly type: "event";
6500
+ }, {
6501
+ readonly anonymous: false;
6502
+ readonly inputs: readonly [{
6503
+ readonly indexed: true;
6504
+ readonly internalType: "bytes32";
6505
+ readonly name: "commitment";
6506
+ readonly type: "bytes32";
6507
+ }, {
6508
+ readonly indexed: false;
6509
+ readonly internalType: "string";
6510
+ readonly name: "dest";
6511
+ readonly type: "string";
6512
+ }];
6513
+ readonly name: "PostResponseTimeoutHandled";
6514
+ readonly type: "event";
6515
+ }, {
6516
+ readonly anonymous: false;
6517
+ readonly inputs: readonly [{
6518
+ readonly indexed: true;
6519
+ readonly internalType: "bytes32";
6520
+ readonly name: "commitment";
6521
+ readonly type: "bytes32";
6522
+ }, {
6523
+ readonly indexed: false;
6524
+ readonly internalType: "uint256";
6525
+ readonly name: "newFee";
6526
+ readonly type: "uint256";
6527
+ }];
6528
+ readonly name: "RequestFunded";
6529
+ readonly type: "event";
6530
+ }, {
6531
+ readonly anonymous: false;
6532
+ readonly inputs: readonly [{
6533
+ readonly indexed: true;
6534
+ readonly internalType: "address";
6535
+ readonly name: "caller";
6536
+ readonly type: "address";
6537
+ }, {
6538
+ readonly indexed: false;
6539
+ readonly internalType: "uint256";
6540
+ readonly name: "fee";
6541
+ readonly type: "uint256";
6542
+ }];
6543
+ readonly name: "StateCommitmentRead";
6544
+ readonly type: "event";
6545
+ }, {
6546
+ readonly anonymous: false;
6547
+ readonly inputs: readonly [{
6548
+ readonly indexed: false;
6549
+ readonly internalType: "string";
6550
+ readonly name: "stateMachineId";
6551
+ readonly type: "string";
6552
+ }, {
6553
+ readonly indexed: false;
6554
+ readonly internalType: "uint256";
6555
+ readonly name: "height";
6556
+ readonly type: "uint256";
6557
+ }, {
6558
+ readonly components: readonly [{
6559
+ readonly internalType: "uint256";
6560
+ readonly name: "timestamp";
6561
+ readonly type: "uint256";
6562
+ }, {
6563
+ readonly internalType: "bytes32";
6564
+ readonly name: "overlayRoot";
6565
+ readonly type: "bytes32";
6566
+ }, {
6567
+ readonly internalType: "bytes32";
6568
+ readonly name: "stateRoot";
6569
+ readonly type: "bytes32";
6570
+ }];
6571
+ readonly indexed: false;
6572
+ readonly internalType: "struct StateCommitment";
6573
+ readonly name: "stateCommitment";
6574
+ readonly type: "tuple";
6575
+ }, {
6576
+ readonly indexed: true;
6577
+ readonly internalType: "address";
6578
+ readonly name: "fisherman";
6579
+ readonly type: "address";
6580
+ }];
6581
+ readonly name: "StateCommitmentVetoed";
6582
+ readonly type: "event";
6583
+ }, {
6584
+ readonly anonymous: false;
6585
+ readonly inputs: readonly [{
6586
+ readonly indexed: false;
6587
+ readonly internalType: "string";
6588
+ readonly name: "stateMachineId";
6589
+ readonly type: "string";
6590
+ }, {
6591
+ readonly indexed: false;
6592
+ readonly internalType: "uint256";
6593
+ readonly name: "height";
6594
+ readonly type: "uint256";
6595
+ }];
6596
+ readonly name: "StateMachineUpdated";
6597
+ readonly type: "event";
6598
+ }, {
6599
+ readonly inputs: readonly [];
6600
+ readonly name: "admin";
6601
+ readonly outputs: readonly [{
6602
+ readonly internalType: "address";
6603
+ readonly name: "";
6604
+ readonly type: "address";
6605
+ }];
6606
+ readonly stateMutability: "view";
6607
+ readonly type: "function";
6608
+ }, {
6609
+ readonly inputs: readonly [];
6610
+ readonly name: "chainId";
6611
+ readonly outputs: readonly [{
6612
+ readonly internalType: "uint256";
6613
+ readonly name: "";
6614
+ readonly type: "uint256";
6615
+ }];
6616
+ readonly stateMutability: "nonpayable";
6617
+ readonly type: "function";
6618
+ }, {
6619
+ readonly inputs: readonly [];
6620
+ readonly name: "challengePeriod";
6621
+ readonly outputs: readonly [{
6622
+ readonly internalType: "uint256";
6623
+ readonly name: "";
6624
+ readonly type: "uint256";
6625
+ }];
6626
+ readonly stateMutability: "view";
6627
+ readonly type: "function";
6628
+ }, {
6629
+ readonly inputs: readonly [];
6630
+ readonly name: "consensusClient";
6631
+ readonly outputs: readonly [{
6632
+ readonly internalType: "address";
6633
+ readonly name: "";
6634
+ readonly type: "address";
6635
+ }];
6636
+ readonly stateMutability: "view";
6637
+ readonly type: "function";
6638
+ }, {
6639
+ readonly inputs: readonly [];
6640
+ readonly name: "consensusState";
6641
+ readonly outputs: readonly [{
6642
+ readonly internalType: "bytes";
6643
+ readonly name: "";
6644
+ readonly type: "bytes";
6645
+ }];
6646
+ readonly stateMutability: "view";
6647
+ readonly type: "function";
6648
+ }, {
6649
+ readonly inputs: readonly [];
6650
+ readonly name: "consensusUpdateTime";
6651
+ readonly outputs: readonly [{
6652
+ readonly internalType: "uint256";
6653
+ readonly name: "";
6654
+ readonly type: "uint256";
6655
+ }];
6656
+ readonly stateMutability: "view";
6657
+ readonly type: "function";
6658
+ }, {
6659
+ readonly inputs: readonly [{
6660
+ readonly components: readonly [{
6661
+ readonly internalType: "uint256";
6662
+ readonly name: "stateMachineId";
6663
+ readonly type: "uint256";
6664
+ }, {
6665
+ readonly internalType: "uint256";
6666
+ readonly name: "height";
6667
+ readonly type: "uint256";
6668
+ }];
6669
+ readonly internalType: "struct StateMachineHeight";
6670
+ readonly name: "height";
6671
+ readonly type: "tuple";
6672
+ }, {
6673
+ readonly internalType: "address";
6674
+ readonly name: "fisherman";
6675
+ readonly type: "address";
6676
+ }];
6677
+ readonly name: "deleteStateMachineCommitment";
6678
+ readonly outputs: readonly [];
6679
+ readonly stateMutability: "nonpayable";
6680
+ readonly type: "function";
6681
+ }, {
6682
+ readonly inputs: readonly [{
6683
+ readonly components: readonly [{
6684
+ readonly components: readonly [{
6685
+ readonly internalType: "bytes";
6686
+ readonly name: "source";
6687
+ readonly type: "bytes";
6688
+ }, {
6689
+ readonly internalType: "bytes";
6690
+ readonly name: "dest";
6691
+ readonly type: "bytes";
6692
+ }, {
6693
+ readonly internalType: "uint64";
6694
+ readonly name: "nonce";
6695
+ readonly type: "uint64";
6696
+ }, {
6697
+ readonly internalType: "bytes";
6698
+ readonly name: "from";
6699
+ readonly type: "bytes";
6700
+ }, {
6701
+ readonly internalType: "bytes";
6702
+ readonly name: "to";
6703
+ readonly type: "bytes";
6704
+ }, {
6705
+ readonly internalType: "uint64";
6706
+ readonly name: "timeoutTimestamp";
6707
+ readonly type: "uint64";
6708
+ }, {
6709
+ readonly internalType: "bytes";
6710
+ readonly name: "body";
6711
+ readonly type: "bytes";
6712
+ }];
6713
+ readonly internalType: "struct PostRequest";
6714
+ readonly name: "request";
6715
+ readonly type: "tuple";
6716
+ }, {
6717
+ readonly internalType: "bytes";
6718
+ readonly name: "response";
6719
+ readonly type: "bytes";
6720
+ }, {
6721
+ readonly internalType: "uint64";
6722
+ readonly name: "timeout";
6723
+ readonly type: "uint64";
6724
+ }, {
6725
+ readonly internalType: "uint256";
6726
+ readonly name: "fee";
6727
+ readonly type: "uint256";
6728
+ }, {
6729
+ readonly internalType: "address";
6730
+ readonly name: "payer";
6731
+ readonly type: "address";
6732
+ }];
6733
+ readonly internalType: "struct DispatchPostResponse";
6734
+ readonly name: "post";
6735
+ readonly type: "tuple";
6736
+ }];
6737
+ readonly name: "dispatch";
6738
+ readonly outputs: readonly [{
6739
+ readonly internalType: "bytes32";
6740
+ readonly name: "commitment";
6741
+ readonly type: "bytes32";
6742
+ }];
6743
+ readonly stateMutability: "payable";
6744
+ readonly type: "function";
6745
+ }, {
6746
+ readonly inputs: readonly [{
6747
+ readonly components: readonly [{
6748
+ readonly internalType: "bytes";
6749
+ readonly name: "dest";
6750
+ readonly type: "bytes";
6751
+ }, {
6752
+ readonly internalType: "bytes";
6753
+ readonly name: "to";
6754
+ readonly type: "bytes";
6755
+ }, {
6756
+ readonly internalType: "bytes";
6757
+ readonly name: "body";
6758
+ readonly type: "bytes";
6759
+ }, {
6760
+ readonly internalType: "uint64";
6761
+ readonly name: "timeout";
6762
+ readonly type: "uint64";
6763
+ }, {
6764
+ readonly internalType: "uint256";
6765
+ readonly name: "fee";
6766
+ readonly type: "uint256";
6767
+ }, {
6768
+ readonly internalType: "address";
6769
+ readonly name: "payer";
6770
+ readonly type: "address";
6771
+ }];
6772
+ readonly internalType: "struct DispatchPost";
6773
+ readonly name: "post";
6774
+ readonly type: "tuple";
6775
+ }];
6776
+ readonly name: "dispatch";
6777
+ readonly outputs: readonly [{
6778
+ readonly internalType: "bytes32";
6779
+ readonly name: "commitment";
6780
+ readonly type: "bytes32";
6781
+ }];
6782
+ readonly stateMutability: "payable";
6783
+ readonly type: "function";
6784
+ }, {
6785
+ readonly inputs: readonly [{
6786
+ readonly components: readonly [{
6787
+ readonly internalType: "bytes";
6788
+ readonly name: "dest";
6789
+ readonly type: "bytes";
6790
+ }, {
6791
+ readonly internalType: "uint64";
6792
+ readonly name: "height";
6793
+ readonly type: "uint64";
6794
+ }, {
6795
+ readonly internalType: "bytes[]";
6796
+ readonly name: "keys";
6797
+ readonly type: "bytes[]";
6798
+ }, {
6799
+ readonly internalType: "uint64";
6800
+ readonly name: "timeout";
6801
+ readonly type: "uint64";
6802
+ }, {
6803
+ readonly internalType: "uint256";
6804
+ readonly name: "fee";
6805
+ readonly type: "uint256";
6806
+ }, {
6807
+ readonly internalType: "bytes";
6808
+ readonly name: "context";
6809
+ readonly type: "bytes";
6810
+ }];
6811
+ readonly internalType: "struct DispatchGet";
6812
+ readonly name: "get";
6813
+ readonly type: "tuple";
6814
+ }];
6815
+ readonly name: "dispatch";
6816
+ readonly outputs: readonly [{
6817
+ readonly internalType: "bytes32";
6818
+ readonly name: "commitment";
6819
+ readonly type: "bytes32";
6820
+ }];
6821
+ readonly stateMutability: "payable";
6822
+ readonly type: "function";
6823
+ }, {
6824
+ readonly inputs: readonly [{
6825
+ readonly components: readonly [{
6826
+ readonly components: readonly [{
6827
+ readonly internalType: "bytes";
6828
+ readonly name: "source";
6829
+ readonly type: "bytes";
6830
+ }, {
6831
+ readonly internalType: "bytes";
6832
+ readonly name: "dest";
6833
+ readonly type: "bytes";
6834
+ }, {
6835
+ readonly internalType: "uint64";
6836
+ readonly name: "nonce";
6837
+ readonly type: "uint64";
6838
+ }, {
6839
+ readonly internalType: "bytes";
6840
+ readonly name: "from";
6841
+ readonly type: "bytes";
6842
+ }, {
6843
+ readonly internalType: "bytes";
6844
+ readonly name: "to";
6845
+ readonly type: "bytes";
6846
+ }, {
6847
+ readonly internalType: "uint64";
6848
+ readonly name: "timeoutTimestamp";
6849
+ readonly type: "uint64";
6850
+ }, {
6851
+ readonly internalType: "bytes";
6852
+ readonly name: "body";
6853
+ readonly type: "bytes";
6854
+ }];
6855
+ readonly internalType: "struct PostRequest";
6856
+ readonly name: "request";
6857
+ readonly type: "tuple";
6858
+ }, {
6859
+ readonly internalType: "bytes";
6860
+ readonly name: "response";
6861
+ readonly type: "bytes";
6862
+ }, {
6863
+ readonly internalType: "uint64";
6864
+ readonly name: "timeoutTimestamp";
6865
+ readonly type: "uint64";
6866
+ }];
6867
+ readonly internalType: "struct PostResponse";
6868
+ readonly name: "response";
6869
+ readonly type: "tuple";
6870
+ }, {
6871
+ readonly internalType: "address";
6872
+ readonly name: "relayer";
6873
+ readonly type: "address";
6874
+ }];
6875
+ readonly name: "dispatchIncoming";
6876
+ readonly outputs: readonly [];
6877
+ readonly stateMutability: "nonpayable";
6878
+ readonly type: "function";
6879
+ }, {
6880
+ readonly inputs: readonly [{
6881
+ readonly components: readonly [{
6882
+ readonly internalType: "bytes";
6883
+ readonly name: "source";
6884
+ readonly type: "bytes";
6885
+ }, {
6886
+ readonly internalType: "bytes";
6887
+ readonly name: "dest";
6888
+ readonly type: "bytes";
6889
+ }, {
6890
+ readonly internalType: "uint64";
6891
+ readonly name: "nonce";
6892
+ readonly type: "uint64";
6893
+ }, {
6894
+ readonly internalType: "bytes";
6895
+ readonly name: "from";
6896
+ readonly type: "bytes";
6897
+ }, {
6898
+ readonly internalType: "bytes";
6899
+ readonly name: "to";
6900
+ readonly type: "bytes";
6901
+ }, {
6902
+ readonly internalType: "uint64";
6903
+ readonly name: "timeoutTimestamp";
6904
+ readonly type: "uint64";
6905
+ }, {
6906
+ readonly internalType: "bytes";
6907
+ readonly name: "body";
6908
+ readonly type: "bytes";
6909
+ }];
6910
+ readonly internalType: "struct PostRequest";
6911
+ readonly name: "request";
6912
+ readonly type: "tuple";
6913
+ }, {
6914
+ readonly internalType: "address";
6915
+ readonly name: "relayer";
6916
+ readonly type: "address";
6917
+ }];
6918
+ readonly name: "dispatchIncoming";
6919
+ readonly outputs: readonly [];
6920
+ readonly stateMutability: "nonpayable";
6921
+ readonly type: "function";
6922
+ }, {
6923
+ readonly inputs: readonly [{
6924
+ readonly components: readonly [{
6925
+ readonly components: readonly [{
6926
+ readonly internalType: "bytes";
6927
+ readonly name: "source";
6928
+ readonly type: "bytes";
6929
+ }, {
6930
+ readonly internalType: "bytes";
6931
+ readonly name: "dest";
6932
+ readonly type: "bytes";
6933
+ }, {
6934
+ readonly internalType: "uint64";
6935
+ readonly name: "nonce";
6936
+ readonly type: "uint64";
6937
+ }, {
6938
+ readonly internalType: "address";
6939
+ readonly name: "from";
6940
+ readonly type: "address";
6941
+ }, {
6942
+ readonly internalType: "uint64";
6943
+ readonly name: "timeoutTimestamp";
6944
+ readonly type: "uint64";
6945
+ }, {
6946
+ readonly internalType: "bytes[]";
6947
+ readonly name: "keys";
6948
+ readonly type: "bytes[]";
6949
+ }, {
6950
+ readonly internalType: "uint64";
6951
+ readonly name: "height";
6952
+ readonly type: "uint64";
6953
+ }, {
6954
+ readonly internalType: "bytes";
6955
+ readonly name: "context";
6956
+ readonly type: "bytes";
6957
+ }];
6958
+ readonly internalType: "struct GetRequest";
6959
+ readonly name: "request";
6960
+ readonly type: "tuple";
6961
+ }, {
6962
+ readonly components: readonly [{
6963
+ readonly internalType: "bytes";
6964
+ readonly name: "key";
6965
+ readonly type: "bytes";
6966
+ }, {
6967
+ readonly internalType: "bytes";
6968
+ readonly name: "value";
6969
+ readonly type: "bytes";
6970
+ }];
6971
+ readonly internalType: "struct StorageValue[]";
6972
+ readonly name: "values";
6973
+ readonly type: "tuple[]";
6974
+ }];
6975
+ readonly internalType: "struct GetResponse";
6976
+ readonly name: "response";
6977
+ readonly type: "tuple";
6978
+ }, {
6979
+ readonly internalType: "address";
6980
+ readonly name: "relayer";
6981
+ readonly type: "address";
6982
+ }];
6983
+ readonly name: "dispatchIncoming";
6984
+ readonly outputs: readonly [];
6985
+ readonly stateMutability: "nonpayable";
6986
+ readonly type: "function";
6987
+ }, {
6988
+ readonly inputs: readonly [{
6989
+ readonly components: readonly [{
6990
+ readonly components: readonly [{
6991
+ readonly internalType: "bytes";
6992
+ readonly name: "source";
6993
+ readonly type: "bytes";
6994
+ }, {
6995
+ readonly internalType: "bytes";
6996
+ readonly name: "dest";
6997
+ readonly type: "bytes";
6998
+ }, {
6999
+ readonly internalType: "uint64";
7000
+ readonly name: "nonce";
7001
+ readonly type: "uint64";
7002
+ }, {
7003
+ readonly internalType: "bytes";
7004
+ readonly name: "from";
7005
+ readonly type: "bytes";
7006
+ }, {
7007
+ readonly internalType: "bytes";
7008
+ readonly name: "to";
7009
+ readonly type: "bytes";
7010
+ }, {
7011
+ readonly internalType: "uint64";
7012
+ readonly name: "timeoutTimestamp";
7013
+ readonly type: "uint64";
7014
+ }, {
7015
+ readonly internalType: "bytes";
7016
+ readonly name: "body";
7017
+ readonly type: "bytes";
7018
+ }];
7019
+ readonly internalType: "struct PostRequest";
7020
+ readonly name: "request";
7021
+ readonly type: "tuple";
7022
+ }, {
7023
+ readonly internalType: "bytes";
7024
+ readonly name: "response";
7025
+ readonly type: "bytes";
7026
+ }, {
7027
+ readonly internalType: "uint64";
7028
+ readonly name: "timeoutTimestamp";
7029
+ readonly type: "uint64";
7030
+ }];
7031
+ readonly internalType: "struct PostResponse";
7032
+ readonly name: "response";
7033
+ readonly type: "tuple";
7034
+ }, {
7035
+ readonly components: readonly [{
7036
+ readonly internalType: "uint256";
7037
+ readonly name: "fee";
7038
+ readonly type: "uint256";
7039
+ }, {
7040
+ readonly internalType: "address";
7041
+ readonly name: "sender";
7042
+ readonly type: "address";
7043
+ }];
7044
+ readonly internalType: "struct FeeMetadata";
7045
+ readonly name: "meta";
7046
+ readonly type: "tuple";
7047
+ }, {
7048
+ readonly internalType: "bytes32";
7049
+ readonly name: "commitment";
7050
+ readonly type: "bytes32";
7051
+ }];
7052
+ readonly name: "dispatchTimeOut";
7053
+ readonly outputs: readonly [];
7054
+ readonly stateMutability: "nonpayable";
7055
+ readonly type: "function";
7056
+ }, {
7057
+ readonly inputs: readonly [{
7058
+ readonly components: readonly [{
7059
+ readonly internalType: "bytes";
7060
+ readonly name: "source";
7061
+ readonly type: "bytes";
7062
+ }, {
7063
+ readonly internalType: "bytes";
7064
+ readonly name: "dest";
7065
+ readonly type: "bytes";
7066
+ }, {
7067
+ readonly internalType: "uint64";
7068
+ readonly name: "nonce";
7069
+ readonly type: "uint64";
7070
+ }, {
7071
+ readonly internalType: "bytes";
7072
+ readonly name: "from";
7073
+ readonly type: "bytes";
7074
+ }, {
7075
+ readonly internalType: "bytes";
7076
+ readonly name: "to";
7077
+ readonly type: "bytes";
7078
+ }, {
7079
+ readonly internalType: "uint64";
7080
+ readonly name: "timeoutTimestamp";
7081
+ readonly type: "uint64";
7082
+ }, {
7083
+ readonly internalType: "bytes";
7084
+ readonly name: "body";
7085
+ readonly type: "bytes";
7086
+ }];
7087
+ readonly internalType: "struct PostRequest";
7088
+ readonly name: "request";
7089
+ readonly type: "tuple";
7090
+ }, {
7091
+ readonly components: readonly [{
7092
+ readonly internalType: "uint256";
7093
+ readonly name: "fee";
7094
+ readonly type: "uint256";
7095
+ }, {
7096
+ readonly internalType: "address";
7097
+ readonly name: "sender";
7098
+ readonly type: "address";
7099
+ }];
7100
+ readonly internalType: "struct FeeMetadata";
7101
+ readonly name: "meta";
7102
+ readonly type: "tuple";
7103
+ }, {
7104
+ readonly internalType: "bytes32";
7105
+ readonly name: "commitment";
7106
+ readonly type: "bytes32";
7107
+ }];
7108
+ readonly name: "dispatchTimeOut";
7109
+ readonly outputs: readonly [];
7110
+ readonly stateMutability: "nonpayable";
7111
+ readonly type: "function";
7112
+ }, {
7113
+ readonly inputs: readonly [{
7114
+ readonly components: readonly [{
7115
+ readonly internalType: "bytes";
7116
+ readonly name: "source";
7117
+ readonly type: "bytes";
7118
+ }, {
7119
+ readonly internalType: "bytes";
7120
+ readonly name: "dest";
7121
+ readonly type: "bytes";
7122
+ }, {
7123
+ readonly internalType: "uint64";
7124
+ readonly name: "nonce";
7125
+ readonly type: "uint64";
7126
+ }, {
7127
+ readonly internalType: "address";
7128
+ readonly name: "from";
7129
+ readonly type: "address";
7130
+ }, {
7131
+ readonly internalType: "uint64";
7132
+ readonly name: "timeoutTimestamp";
7133
+ readonly type: "uint64";
7134
+ }, {
7135
+ readonly internalType: "bytes[]";
7136
+ readonly name: "keys";
7137
+ readonly type: "bytes[]";
7138
+ }, {
7139
+ readonly internalType: "uint64";
7140
+ readonly name: "height";
7141
+ readonly type: "uint64";
7142
+ }, {
7143
+ readonly internalType: "bytes";
7144
+ readonly name: "context";
7145
+ readonly type: "bytes";
7146
+ }];
7147
+ readonly internalType: "struct GetRequest";
7148
+ readonly name: "request";
7149
+ readonly type: "tuple";
7150
+ }, {
7151
+ readonly components: readonly [{
7152
+ readonly internalType: "uint256";
7153
+ readonly name: "fee";
7154
+ readonly type: "uint256";
7155
+ }, {
7156
+ readonly internalType: "address";
7157
+ readonly name: "sender";
7158
+ readonly type: "address";
7159
+ }];
7160
+ readonly internalType: "struct FeeMetadata";
7161
+ readonly name: "meta";
7162
+ readonly type: "tuple";
7163
+ }, {
7164
+ readonly internalType: "bytes32";
7165
+ readonly name: "commitment";
7166
+ readonly type: "bytes32";
7167
+ }];
7168
+ readonly name: "dispatchTimeOut";
7169
+ readonly outputs: readonly [];
7170
+ readonly stateMutability: "nonpayable";
7171
+ readonly type: "function";
7172
+ }, {
7173
+ readonly inputs: readonly [];
7174
+ readonly name: "feeToken";
7175
+ readonly outputs: readonly [{
7176
+ readonly internalType: "address";
7177
+ readonly name: "";
7178
+ readonly type: "address";
7179
+ }];
7180
+ readonly stateMutability: "view";
7181
+ readonly type: "function";
7182
+ }, {
7183
+ readonly inputs: readonly [];
7184
+ readonly name: "frozen";
7185
+ readonly outputs: readonly [{
7186
+ readonly internalType: "enum FrozenStatus";
7187
+ readonly name: "";
7188
+ readonly type: "uint8";
7189
+ }];
7190
+ readonly stateMutability: "view";
7191
+ readonly type: "function";
7192
+ }, {
7193
+ readonly inputs: readonly [{
7194
+ readonly internalType: "bytes32";
7195
+ readonly name: "commitment";
7196
+ readonly type: "bytes32";
7197
+ }, {
7198
+ readonly internalType: "uint256";
7199
+ readonly name: "amount";
7200
+ readonly type: "uint256";
7201
+ }];
7202
+ readonly name: "fundRequest";
7203
+ readonly outputs: readonly [];
7204
+ readonly stateMutability: "payable";
7205
+ readonly type: "function";
7206
+ }, {
7207
+ readonly inputs: readonly [{
7208
+ readonly internalType: "bytes32";
7209
+ readonly name: "commitment";
7210
+ readonly type: "bytes32";
7211
+ }, {
7212
+ readonly internalType: "uint256";
7213
+ readonly name: "amount";
7214
+ readonly type: "uint256";
7215
+ }];
7216
+ readonly name: "fundResponse";
7217
+ readonly outputs: readonly [];
7218
+ readonly stateMutability: "payable";
7219
+ readonly type: "function";
7220
+ }, {
7221
+ readonly inputs: readonly [];
7222
+ readonly name: "host";
7223
+ readonly outputs: readonly [{
7224
+ readonly internalType: "bytes";
7225
+ readonly name: "";
7226
+ readonly type: "bytes";
7227
+ }];
7228
+ readonly stateMutability: "view";
7229
+ readonly type: "function";
7230
+ }, {
7231
+ readonly inputs: readonly [];
7232
+ readonly name: "hostParams";
7233
+ readonly outputs: readonly [{
7234
+ readonly components: readonly [{
7235
+ readonly internalType: "uint256";
7236
+ readonly name: "defaultTimeout";
7237
+ readonly type: "uint256";
7238
+ }, {
7239
+ readonly internalType: "uint256";
7240
+ readonly name: "defaultPerByteFee";
7241
+ readonly type: "uint256";
7242
+ }, {
7243
+ readonly internalType: "uint256";
7244
+ readonly name: "stateCommitmentFee";
7245
+ readonly type: "uint256";
7246
+ }, {
7247
+ readonly internalType: "address";
7248
+ readonly name: "feeToken";
7249
+ readonly type: "address";
7250
+ }, {
7251
+ readonly internalType: "address";
7252
+ readonly name: "admin";
7253
+ readonly type: "address";
7254
+ }, {
7255
+ readonly internalType: "address";
7256
+ readonly name: "handler";
7257
+ readonly type: "address";
7258
+ }, {
7259
+ readonly internalType: "address";
7260
+ readonly name: "hostManager";
7261
+ readonly type: "address";
7262
+ }, {
7263
+ readonly internalType: "address";
7264
+ readonly name: "uniswapV2";
7265
+ readonly type: "address";
7266
+ }, {
7267
+ readonly internalType: "uint256";
7268
+ readonly name: "unStakingPeriod";
7269
+ readonly type: "uint256";
7270
+ }, {
7271
+ readonly internalType: "uint256";
7272
+ readonly name: "challengePeriod";
7273
+ readonly type: "uint256";
7274
+ }, {
7275
+ readonly internalType: "address";
7276
+ readonly name: "consensusClient";
7277
+ readonly type: "address";
7278
+ }, {
7279
+ readonly internalType: "uint256[]";
7280
+ readonly name: "stateMachines";
7281
+ readonly type: "uint256[]";
7282
+ }, {
7283
+ readonly components: readonly [{
7284
+ readonly internalType: "bytes32";
7285
+ readonly name: "stateIdHash";
7286
+ readonly type: "bytes32";
7287
+ }, {
7288
+ readonly internalType: "uint256";
7289
+ readonly name: "perByteFee";
7290
+ readonly type: "uint256";
7291
+ }];
7292
+ readonly internalType: "struct PerByteFee[]";
7293
+ readonly name: "perByteFees";
7294
+ readonly type: "tuple[]";
7295
+ }, {
7296
+ readonly internalType: "bytes";
7297
+ readonly name: "hyperbridge";
7298
+ readonly type: "bytes";
7299
+ }];
7300
+ readonly internalType: "struct HostParams";
7301
+ readonly name: "";
7302
+ readonly type: "tuple";
7303
+ }];
7304
+ readonly stateMutability: "view";
7305
+ readonly type: "function";
7306
+ }, {
7307
+ readonly inputs: readonly [];
7308
+ readonly name: "hyperbridge";
7309
+ readonly outputs: readonly [{
7310
+ readonly internalType: "bytes";
7311
+ readonly name: "";
7312
+ readonly type: "bytes";
7313
+ }];
7314
+ readonly stateMutability: "view";
7315
+ readonly type: "function";
7316
+ }, {
7317
+ readonly inputs: readonly [{
7318
+ readonly internalType: "uint256";
7319
+ readonly name: "id";
7320
+ readonly type: "uint256";
7321
+ }];
7322
+ readonly name: "latestStateMachineHeight";
7323
+ readonly outputs: readonly [{
7324
+ readonly internalType: "uint256";
7325
+ readonly name: "";
7326
+ readonly type: "uint256";
7327
+ }];
7328
+ readonly stateMutability: "view";
7329
+ readonly type: "function";
7330
+ }, {
7331
+ readonly inputs: readonly [];
7332
+ readonly name: "nonce";
7333
+ readonly outputs: readonly [{
7334
+ readonly internalType: "uint256";
7335
+ readonly name: "";
7336
+ readonly type: "uint256";
7337
+ }];
7338
+ readonly stateMutability: "view";
7339
+ readonly type: "function";
7340
+ }, {
7341
+ readonly inputs: readonly [{
7342
+ readonly internalType: "bytes";
7343
+ readonly name: "stateId";
7344
+ readonly type: "bytes";
7345
+ }];
7346
+ readonly name: "perByteFee";
7347
+ readonly outputs: readonly [{
7348
+ readonly internalType: "uint256";
7349
+ readonly name: "";
7350
+ readonly type: "uint256";
7351
+ }];
7352
+ readonly stateMutability: "view";
7353
+ readonly type: "function";
7354
+ }, {
7355
+ readonly inputs: readonly [{
7356
+ readonly internalType: "bytes32";
7357
+ readonly name: "commitment";
7358
+ readonly type: "bytes32";
7359
+ }];
7360
+ readonly name: "requestCommitments";
7361
+ readonly outputs: readonly [{
7362
+ readonly components: readonly [{
7363
+ readonly internalType: "uint256";
7364
+ readonly name: "fee";
7365
+ readonly type: "uint256";
7366
+ }, {
7367
+ readonly internalType: "address";
7368
+ readonly name: "sender";
7369
+ readonly type: "address";
7370
+ }];
7371
+ readonly internalType: "struct FeeMetadata";
7372
+ readonly name: "";
7373
+ readonly type: "tuple";
7374
+ }];
7375
+ readonly stateMutability: "view";
7376
+ readonly type: "function";
7377
+ }, {
7378
+ readonly inputs: readonly [{
7379
+ readonly internalType: "bytes32";
7380
+ readonly name: "commitment";
7381
+ readonly type: "bytes32";
7382
+ }];
7383
+ readonly name: "requestReceipts";
7384
+ readonly outputs: readonly [{
7385
+ readonly internalType: "address";
7386
+ readonly name: "";
7387
+ readonly type: "address";
7388
+ }];
7389
+ readonly stateMutability: "view";
7390
+ readonly type: "function";
7391
+ }, {
7392
+ readonly inputs: readonly [{
7393
+ readonly internalType: "bytes32";
7394
+ readonly name: "commitment";
7395
+ readonly type: "bytes32";
7396
+ }];
7397
+ readonly name: "responded";
7398
+ readonly outputs: readonly [{
7399
+ readonly internalType: "bool";
7400
+ readonly name: "";
7401
+ readonly type: "bool";
7402
+ }];
7403
+ readonly stateMutability: "view";
7404
+ readonly type: "function";
7405
+ }, {
7406
+ readonly inputs: readonly [{
7407
+ readonly internalType: "bytes32";
7408
+ readonly name: "commitment";
7409
+ readonly type: "bytes32";
7410
+ }];
7411
+ readonly name: "responseCommitments";
7412
+ readonly outputs: readonly [{
7413
+ readonly components: readonly [{
7414
+ readonly internalType: "uint256";
7415
+ readonly name: "fee";
7416
+ readonly type: "uint256";
7417
+ }, {
7418
+ readonly internalType: "address";
7419
+ readonly name: "sender";
7420
+ readonly type: "address";
7421
+ }];
7422
+ readonly internalType: "struct FeeMetadata";
7423
+ readonly name: "";
7424
+ readonly type: "tuple";
7425
+ }];
7426
+ readonly stateMutability: "view";
7427
+ readonly type: "function";
7428
+ }, {
7429
+ readonly inputs: readonly [{
7430
+ readonly internalType: "bytes32";
7431
+ readonly name: "commitment";
7432
+ readonly type: "bytes32";
7433
+ }];
7434
+ readonly name: "responseReceipts";
7435
+ readonly outputs: readonly [{
7436
+ readonly components: readonly [{
7437
+ readonly internalType: "bytes32";
7438
+ readonly name: "responseCommitment";
7439
+ readonly type: "bytes32";
7440
+ }, {
7441
+ readonly internalType: "address";
7442
+ readonly name: "relayer";
7443
+ readonly type: "address";
7444
+ }];
7445
+ readonly internalType: "struct ResponseReceipt";
7446
+ readonly name: "";
7447
+ readonly type: "tuple";
7448
+ }];
7449
+ readonly stateMutability: "view";
7450
+ readonly type: "function";
7451
+ }, {
7452
+ readonly inputs: readonly [{
7453
+ readonly internalType: "bytes";
7454
+ readonly name: "state";
7455
+ readonly type: "bytes";
7456
+ }, {
7457
+ readonly components: readonly [{
7458
+ readonly internalType: "uint256";
7459
+ readonly name: "stateMachineId";
7460
+ readonly type: "uint256";
7461
+ }, {
7462
+ readonly internalType: "uint256";
7463
+ readonly name: "height";
7464
+ readonly type: "uint256";
7465
+ }];
7466
+ readonly internalType: "struct StateMachineHeight";
7467
+ readonly name: "height";
7468
+ readonly type: "tuple";
7469
+ }, {
7470
+ readonly components: readonly [{
7471
+ readonly internalType: "uint256";
7472
+ readonly name: "timestamp";
7473
+ readonly type: "uint256";
7474
+ }, {
7475
+ readonly internalType: "bytes32";
7476
+ readonly name: "overlayRoot";
7477
+ readonly type: "bytes32";
7478
+ }, {
7479
+ readonly internalType: "bytes32";
7480
+ readonly name: "stateRoot";
7481
+ readonly type: "bytes32";
7482
+ }];
7483
+ readonly internalType: "struct StateCommitment";
7484
+ readonly name: "commitment";
7485
+ readonly type: "tuple";
7486
+ }];
7487
+ readonly name: "setConsensusState";
7488
+ readonly outputs: readonly [];
7489
+ readonly stateMutability: "nonpayable";
7490
+ readonly type: "function";
7491
+ }, {
7492
+ readonly inputs: readonly [{
7493
+ readonly internalType: "enum FrozenStatus";
7494
+ readonly name: "newState";
7495
+ readonly type: "uint8";
7496
+ }];
7497
+ readonly name: "setFrozenState";
7498
+ readonly outputs: readonly [];
7499
+ readonly stateMutability: "nonpayable";
7500
+ readonly type: "function";
7501
+ }, {
7502
+ readonly inputs: readonly [];
7503
+ readonly name: "stateCommitmentFee";
7504
+ readonly outputs: readonly [{
7505
+ readonly internalType: "uint256";
7506
+ readonly name: "";
7507
+ readonly type: "uint256";
7508
+ }];
7509
+ readonly stateMutability: "view";
7510
+ readonly type: "function";
7511
+ }, {
7512
+ readonly inputs: readonly [{
7513
+ readonly components: readonly [{
7514
+ readonly internalType: "uint256";
7515
+ readonly name: "stateMachineId";
7516
+ readonly type: "uint256";
7517
+ }, {
7518
+ readonly internalType: "uint256";
7519
+ readonly name: "height";
7520
+ readonly type: "uint256";
7521
+ }];
7522
+ readonly internalType: "struct StateMachineHeight";
7523
+ readonly name: "height";
7524
+ readonly type: "tuple";
7525
+ }];
7526
+ readonly name: "stateMachineCommitment";
7527
+ readonly outputs: readonly [{
7528
+ readonly components: readonly [{
7529
+ readonly internalType: "uint256";
7530
+ readonly name: "timestamp";
7531
+ readonly type: "uint256";
7532
+ }, {
7533
+ readonly internalType: "bytes32";
7534
+ readonly name: "overlayRoot";
7535
+ readonly type: "bytes32";
7536
+ }, {
7537
+ readonly internalType: "bytes32";
7538
+ readonly name: "stateRoot";
7539
+ readonly type: "bytes32";
7540
+ }];
7541
+ readonly internalType: "struct StateCommitment";
7542
+ readonly name: "";
7543
+ readonly type: "tuple";
7544
+ }];
7545
+ readonly stateMutability: "payable";
7546
+ readonly type: "function";
7547
+ }, {
7548
+ readonly inputs: readonly [{
7549
+ readonly components: readonly [{
7550
+ readonly internalType: "uint256";
7551
+ readonly name: "stateMachineId";
7552
+ readonly type: "uint256";
7553
+ }, {
7554
+ readonly internalType: "uint256";
7555
+ readonly name: "height";
7556
+ readonly type: "uint256";
7557
+ }];
7558
+ readonly internalType: "struct StateMachineHeight";
7559
+ readonly name: "height";
7560
+ readonly type: "tuple";
7561
+ }];
7562
+ readonly name: "stateMachineCommitmentUpdateTime";
7563
+ readonly outputs: readonly [{
7564
+ readonly internalType: "uint256";
7565
+ readonly name: "";
7566
+ readonly type: "uint256";
7567
+ }];
7568
+ readonly stateMutability: "view";
7569
+ readonly type: "function";
7570
+ }, {
7571
+ readonly inputs: readonly [{
7572
+ readonly internalType: "bytes";
7573
+ readonly name: "parachainId";
7574
+ readonly type: "bytes";
7575
+ }, {
7576
+ readonly internalType: "uint256";
7577
+ readonly name: "id";
7578
+ readonly type: "uint256";
7579
+ }];
7580
+ readonly name: "stateMachineId";
7581
+ readonly outputs: readonly [{
7582
+ readonly internalType: "string";
7583
+ readonly name: "";
7584
+ readonly type: "string";
7585
+ }];
7586
+ readonly stateMutability: "pure";
7587
+ readonly type: "function";
7588
+ }, {
7589
+ readonly inputs: readonly [{
7590
+ readonly internalType: "bytes";
7591
+ readonly name: "state";
7592
+ readonly type: "bytes";
7593
+ }];
7594
+ readonly name: "storeConsensusState";
7595
+ readonly outputs: readonly [];
7596
+ readonly stateMutability: "nonpayable";
7597
+ readonly type: "function";
7598
+ }, {
7599
+ readonly inputs: readonly [{
7600
+ readonly components: readonly [{
7601
+ readonly internalType: "uint256";
7602
+ readonly name: "stateMachineId";
7603
+ readonly type: "uint256";
7604
+ }, {
7605
+ readonly internalType: "uint256";
7606
+ readonly name: "height";
7607
+ readonly type: "uint256";
7608
+ }];
7609
+ readonly internalType: "struct StateMachineHeight";
7610
+ readonly name: "height";
7611
+ readonly type: "tuple";
7612
+ }, {
7613
+ readonly components: readonly [{
7614
+ readonly internalType: "uint256";
7615
+ readonly name: "timestamp";
7616
+ readonly type: "uint256";
7617
+ }, {
7618
+ readonly internalType: "bytes32";
7619
+ readonly name: "overlayRoot";
7620
+ readonly type: "bytes32";
7621
+ }, {
7622
+ readonly internalType: "bytes32";
7623
+ readonly name: "stateRoot";
7624
+ readonly type: "bytes32";
7625
+ }];
7626
+ readonly internalType: "struct StateCommitment";
7627
+ readonly name: "commitment";
7628
+ readonly type: "tuple";
7629
+ }];
7630
+ readonly name: "storeStateMachineCommitment";
7631
+ readonly outputs: readonly [];
7632
+ readonly stateMutability: "nonpayable";
7633
+ readonly type: "function";
7634
+ }, {
7635
+ readonly inputs: readonly [];
7636
+ readonly name: "timestamp";
7637
+ readonly outputs: readonly [{
7638
+ readonly internalType: "uint256";
7639
+ readonly name: "";
7640
+ readonly type: "uint256";
7641
+ }];
7642
+ readonly stateMutability: "view";
7643
+ readonly type: "function";
7644
+ }, {
7645
+ readonly inputs: readonly [];
7646
+ readonly name: "unStakingPeriod";
7647
+ readonly outputs: readonly [{
7648
+ readonly internalType: "uint256";
7649
+ readonly name: "";
7650
+ readonly type: "uint256";
7651
+ }];
7652
+ readonly stateMutability: "view";
7653
+ readonly type: "function";
7654
+ }, {
7655
+ readonly inputs: readonly [];
7656
+ readonly name: "uniswapV2Router";
7657
+ readonly outputs: readonly [{
7658
+ readonly internalType: "address";
7659
+ readonly name: "";
7660
+ readonly type: "address";
7661
+ }];
7662
+ readonly stateMutability: "view";
7663
+ readonly type: "function";
7664
+ }, {
7665
+ readonly inputs: readonly [{
7666
+ readonly components: readonly [{
7667
+ readonly internalType: "uint256";
7668
+ readonly name: "defaultTimeout";
7669
+ readonly type: "uint256";
7670
+ }, {
7671
+ readonly internalType: "uint256";
7672
+ readonly name: "defaultPerByteFee";
7673
+ readonly type: "uint256";
7674
+ }, {
7675
+ readonly internalType: "uint256";
7676
+ readonly name: "stateCommitmentFee";
7677
+ readonly type: "uint256";
7678
+ }, {
7679
+ readonly internalType: "address";
7680
+ readonly name: "feeToken";
7681
+ readonly type: "address";
7682
+ }, {
7683
+ readonly internalType: "address";
7684
+ readonly name: "admin";
7685
+ readonly type: "address";
7686
+ }, {
7687
+ readonly internalType: "address";
7688
+ readonly name: "handler";
7689
+ readonly type: "address";
7690
+ }, {
7691
+ readonly internalType: "address";
7692
+ readonly name: "hostManager";
7693
+ readonly type: "address";
7694
+ }, {
7695
+ readonly internalType: "address";
7696
+ readonly name: "uniswapV2";
7697
+ readonly type: "address";
7698
+ }, {
7699
+ readonly internalType: "uint256";
7700
+ readonly name: "unStakingPeriod";
7701
+ readonly type: "uint256";
7702
+ }, {
7703
+ readonly internalType: "uint256";
7704
+ readonly name: "challengePeriod";
7705
+ readonly type: "uint256";
7706
+ }, {
7707
+ readonly internalType: "address";
7708
+ readonly name: "consensusClient";
7709
+ readonly type: "address";
7710
+ }, {
7711
+ readonly internalType: "uint256[]";
7712
+ readonly name: "stateMachines";
7713
+ readonly type: "uint256[]";
7714
+ }, {
7715
+ readonly components: readonly [{
7716
+ readonly internalType: "bytes32";
7717
+ readonly name: "stateIdHash";
7718
+ readonly type: "bytes32";
7719
+ }, {
7720
+ readonly internalType: "uint256";
7721
+ readonly name: "perByteFee";
7722
+ readonly type: "uint256";
7723
+ }];
7724
+ readonly internalType: "struct PerByteFee[]";
7725
+ readonly name: "perByteFees";
7726
+ readonly type: "tuple[]";
7727
+ }, {
7728
+ readonly internalType: "bytes";
7729
+ readonly name: "hyperbridge";
7730
+ readonly type: "bytes";
7731
+ }];
7732
+ readonly internalType: "struct HostParams";
7733
+ readonly name: "params";
7734
+ readonly type: "tuple";
7735
+ }];
7736
+ readonly name: "updateHostParams";
7737
+ readonly outputs: readonly [];
7738
+ readonly stateMutability: "nonpayable";
7739
+ readonly type: "function";
7740
+ }, {
7741
+ readonly inputs: readonly [{
7742
+ readonly internalType: "uint256";
7743
+ readonly name: "paraId";
7744
+ readonly type: "uint256";
7745
+ }, {
7746
+ readonly internalType: "uint256";
7747
+ readonly name: "height";
7748
+ readonly type: "uint256";
7749
+ }];
7750
+ readonly name: "vetoes";
7751
+ readonly outputs: readonly [{
7752
+ readonly internalType: "address";
7753
+ readonly name: "";
7754
+ readonly type: "address";
7755
+ }];
7756
+ readonly stateMutability: "view";
7757
+ readonly type: "function";
7758
+ }, {
7759
+ readonly inputs: readonly [{
7760
+ readonly components: readonly [{
7761
+ readonly internalType: "address";
7762
+ readonly name: "beneficiary";
7763
+ readonly type: "address";
7764
+ }, {
7765
+ readonly internalType: "uint256";
7766
+ readonly name: "amount";
7767
+ readonly type: "uint256";
7768
+ }, {
7769
+ readonly internalType: "bool";
7770
+ readonly name: "native";
7771
+ readonly type: "bool";
7772
+ }];
7773
+ readonly internalType: "struct WithdrawParams";
7774
+ readonly name: "params";
7775
+ readonly type: "tuple";
7776
+ }];
7777
+ readonly name: "withdraw";
7778
+ readonly outputs: readonly [];
7779
+ readonly stateMutability: "nonpayable";
7780
+ readonly type: "function";
7781
+ }, {
7782
+ readonly stateMutability: "payable";
7783
+ readonly type: "receive";
7784
+ }];
7785
+
4044
7786
  /**
4045
7787
  * Result of the quoteNative fee estimation
4046
7788
  */
@@ -4491,4 +8233,4 @@ declare const getChainId: (stateMachineId: string) => number | undefined;
4491
8233
  declare const getViemChain: (chainId: number) => Chain | undefined;
4492
8234
  declare const hyperbridgeAddress = "";
4493
8235
 
4494
- export { ADDRESS_ZERO, type AllStatusKey, type AssetTeleported, type AssetTeleportedResponse, type BidStorageEntry, type BidSubmissionResult, type BlockMetadata, type BundlerGasEstimate, BundlerMethod, type CancelEvent, type CancelEventMap, type CancelOptions, type ChainConfig, type ChainConfigData, ChainConfigService, Chains, type ClientConfig, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, type DecodedOrderPlacedLog, type DecodedOrderV2PlacedLog, type DecodedPostRequestEvent, type DecodedPostResponseEvent, type DispatchGet, type DispatchInfoV2, type DispatchPost, ERC20Method, type ERC7821Call, ERC7821_BATCH_MODE, type EstimateFillOrderV2Params, type EstimateGasCallData, EvmChain, type EvmChainParams, EvmLanguage, type ExecuteIntentOrderOptions, type ExecutionResult, type FillOptions, type FillOptionsV2, type FillOrderEstimateV2, type FillerBid, type FillerConfig, type GetRequestResponse, type GetRequestWithStatus, type GetResponseByRequestIdResponse, type GetResponseStorageValues, type HexString, type HostParams, HyperClientStatus, type HyperbridgeTxEvents, type IChain, type IConfig, type IEvmChain, type IEvmConfig, type IGetRequest, type IGetRequestMessage, type IGetResponse, type IGetResponseMessage, type IHyperbridgeConfig, type IIsmpMessage, type IMessage, type IPostRequest, type IPostResponse, type IProof, type IRequestMessage, type ISubstrateConfig, type ITimeoutPostRequestMessage, IndexerClient, type IndexerQueryClient, IntentGateway, type IntentGatewayParams, IntentOrderStatus, type IntentOrderStatusKey, type IntentOrderStatusMetadata, type IntentOrderStatusUpdate, IntentsCoprocessor, IntentsV2, type IntentsV2Context, type IsmpRequest, MOCK_ADDRESS, type NewDeployment, ORDER_V2_PARAM_TYPE, type Order, type OrderResponse, OrderStatus, OrderStatusChecker, type OrderStatusMetadata, type OrderV2, type OrderWithStatus, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, type PackedUserOperation, type Params, type PaymentInfo, type PaymentInfoV2, type PostRequestStatus, type PostRequestTimeoutStatus, type PostRequestWithStatus, type QuoteNativeResult, 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 RetryConfig, SELECT_SOLVER_TYPEHASH, STATE_COMMITMENTS_SLOT, type SelectBidResult, type SelectOptions, type StateMachineHeight, 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 TokenInfoV2, type TokenPrice, type TokenPricesResponse, type TokenRegistry, type TokenRegistryResponse, type Transaction, TronChain, type TronChainParams, USE_ETHERSCAN_CHAINS, type XcmGatewayParams, __test, adjustDecimals, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, chainConfigs, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, convertCodecToIGetRequest, convertCodecToIProof, convertIGetRequestToCodec, convertIProofToCodec, convertStateIdToStateMachineId, convertStateMachineEnumToString, convertStateMachineIdToEnum, createChain, createEvmChain, createIndexerClient, createQueryClient, decodeUserOpScale, encodeERC7821ExecuteBatch, encodeISMPMessage, encodeUserOpScale, encodeWithdrawalRequest, estimateGasForPost, fetchPrice, fetchSourceProof, generateRootWithProof, getChain, getChainId, getConfigByStateMachineId, getContractCallInput, getEvmChain, getGasPriceFromEtherscan, getOrFetchStorageSlot, getOrderPlacedFromTx, getPostRequestEventFromTx, getPostResponseEventFromTx, getRequestCommitment, getStateCommitmentFieldSlot, getStateCommitmentSlot, getStorageSlot, getSubstrateChain, getViemChain, hexToString, hyperbridgeAddress, maxBigInt, orderCommitment, orderV2Commitment, parseStateMachineId, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, requestCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract, tronChainIds, tronNile };
8236
+ export { ADDRESS_ZERO, type AllStatusKey, type AssetTeleported, type AssetTeleportedResponse, type BidStorageEntry, type BidSubmissionResult, type BlockMetadata, type BundlerGasEstimate, BundlerMethod, type CancelEvent, type CancelOptions, type ChainConfig, type ChainConfigData, ChainConfigService, Chains, type ClientConfig, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, type DecodedOrderPlacedLog, type DecodedOrderV2PlacedLog, type DecodedPostRequestEvent, type DecodedPostResponseEvent, type DispatchGet, type DispatchInfoV2, type DispatchPost, ERC20Method, type ERC7821Call, ERC7821_BATCH_MODE, type EstimateFillOrderV2Params, type EstimateGasCallData, EvmChain, type EvmChainParams, ABI as EvmHostABI, EvmLanguage, type ExecuteIntentOrderOptions, type ExecutionResult, type FillOptions, type FillOptionsV2, type FillOrderEstimateV2, type FillerBid, type FillerConfig, type GetRequestResponse, type GetRequestWithStatus, type GetResponseByRequestIdResponse, type GetResponseStorageValues, type HexString, type HostParams, HyperClientStatus, type HyperbridgeTxEvents, type IChain, type IConfig, type IEvmChain, type IEvmConfig, type IGetRequest, type IGetRequestMessage, type IGetResponse, type IGetResponseMessage, type IHyperbridgeConfig, type IIsmpMessage, type IMessage, type IPostRequest, type IPostResponse, type IProof, type IRequestMessage, type ISubstrateConfig, type ITimeoutPostRequestMessage, IndexerClient, type IndexerQueryClient, IntentGateway, type IntentGatewayParams, ABI$1 as IntentGatewayV2ABI, IntentOrderStatus, type IntentOrderStatusKey, type IntentOrderStatusUpdate, IntentsCoprocessor, IntentsV2, type IntentsV2Context, type IsmpRequest, MOCK_ADDRESS, type NewDeployment, ORDER_V2_PARAM_TYPE, type Order, type OrderResponse, OrderStatus, OrderStatusChecker, type OrderStatusMetadata, type OrderV2, type OrderWithStatus, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, type PackedUserOperation, type Params, type PaymentInfo, type PaymentInfoV2, type PostRequestStatus, type PostRequestTimeoutStatus, type PostRequestWithStatus, type QuoteNativeResult, 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 RetryConfig, SELECT_SOLVER_TYPEHASH, STATE_COMMITMENTS_SLOT, type SelectBidResult, type SelectOptions, type StateMachineHeight, 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 TokenInfoV2, type TokenPrice, type TokenPricesResponse, type Transaction, TronChain, type TronChainParams, USE_ETHERSCAN_CHAINS, type XcmGatewayParams, __test, adjustDecimals, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, chainConfigs, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, convertCodecToIGetRequest, convertCodecToIProof, convertIGetRequestToCodec, convertIProofToCodec, convertStateIdToStateMachineId, convertStateMachineEnumToString, convertStateMachineIdToEnum, createChain, createEvmChain, createIndexerClient, createQueryClient, decodeUserOpScale, encodeERC7821ExecuteBatch, encodeISMPMessage, encodeUserOpScale, encodeWithdrawalRequest, estimateGasForPost, fetchPrice, fetchSourceProof, generateRootWithProof, getChain, getChainId, getConfigByStateMachineId, getContractCallInput, getEvmChain, getGasPriceFromEtherscan, getOrFetchStorageSlot, getOrderPlacedFromTx, getPostRequestEventFromTx, getPostResponseEventFromTx, getRequestCommitment, getStateCommitmentFieldSlot, getStateCommitmentSlot, getStorageSlot, getSubstrateChain, getViemChain, hexToString, hyperbridgeAddress, maxBigInt, orderCommitment, orderV2Commitment, parseStateMachineId, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, requestCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract, tronChainIds, tronNile };