@hyperbridge/sdk 2.7.2 → 2.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- import { ApiPromise } from '@polkadot/api';
2
- import { KeyringPair } from '@polkadot/keyring/types';
3
1
  import { ConsolaInstance } from 'consola';
4
2
  import Decimal from 'decimal.js';
5
3
  import { GraphQLClient } from 'graphql-request';
6
4
  import * as viem from 'viem';
7
5
  import { PublicClient, TransactionReceipt, Hex, Log, ContractFunctionArgs } from 'viem';
8
6
  import { Chain } from 'viem/chains';
7
+ import { ApiPromise } from '@polkadot/api';
8
+ import { KeyringPair } from '@polkadot/keyring/types';
9
9
 
10
10
  declare const _default$1: {
11
11
  ABI: readonly [{
@@ -924,6 +924,11 @@ interface ChainConfigData {
924
924
  USDT: number;
925
925
  cNGN?: number;
926
926
  EXT?: number;
927
+ ZARP?: number;
928
+ EURC?: number;
929
+ XSGD?: number;
930
+ TRYB?: number;
931
+ USDR?: number;
927
932
  };
928
933
  tokenStorageSlots?: {
929
934
  USDT?: {
@@ -942,6 +947,30 @@ interface ChainConfigData {
942
947
  balanceSlot: number;
943
948
  allowanceSlot: number;
944
949
  };
950
+ cNGN?: {
951
+ balanceSlot: number;
952
+ allowanceSlot: number;
953
+ };
954
+ ZARP?: {
955
+ balanceSlot: number;
956
+ allowanceSlot: number;
957
+ };
958
+ EURC?: {
959
+ balanceSlot: number;
960
+ allowanceSlot: number;
961
+ };
962
+ XSGD?: {
963
+ balanceSlot: number;
964
+ allowanceSlot: number;
965
+ };
966
+ TRYB?: {
967
+ balanceSlot: number;
968
+ allowanceSlot: number;
969
+ };
970
+ USDR?: {
971
+ balanceSlot: number;
972
+ allowanceSlot: number;
973
+ };
945
974
  };
946
975
  addresses: {
947
976
  IntentGateway?: `0x${string}`;
@@ -996,44 +1025,44 @@ declare class ChainConfigService {
996
1025
  constructor(env?: NodeJS.ProcessEnv);
997
1026
  private getConfig;
998
1027
  getChainConfig(chain: string): ChainConfig;
999
- getIntentGatewayAddress(chain: string): HexString;
1000
- getTokenGatewayAddress(chain: string): HexString;
1001
- getHostAddress(chain: string): HexString;
1028
+ getIntentGatewayAddress(chain: string): HexString$1;
1029
+ getTokenGatewayAddress(chain: string): HexString$1;
1030
+ getHostAddress(chain: string): HexString$1;
1002
1031
  getWrappedNativeAssetWithDecimals(chain: string): {
1003
- asset: HexString;
1032
+ asset: HexString$1;
1004
1033
  decimals: number;
1005
1034
  };
1006
- getDaiAsset(chain: string): HexString;
1007
- getAssetAddress(chain: string, symbol: ConfiguredAssetSymbol): HexString | undefined;
1035
+ getDaiAsset(chain: string): HexString$1;
1036
+ getAssetAddress(chain: string, symbol: ConfiguredAssetSymbol): HexString$1 | undefined;
1008
1037
  /**
1009
1038
  * Resolves configured token metadata from an address on a specific chain.
1010
1039
  * This is used by SDK helpers that accept token addresses rather than caller-
1011
1040
  * supplied symbols or decimals.
1012
1041
  */
1013
- getAssetMetadataByAddress(chain: string, address: HexString): {
1042
+ getAssetMetadataByAddress(chain: string, address: HexString$1): {
1014
1043
  symbol: ConfiguredAssetSymbol;
1015
- address: HexString;
1044
+ address: HexString$1;
1016
1045
  decimals?: number;
1017
1046
  } | undefined;
1018
- getUsdtAsset(chain: string): HexString;
1019
- getUsdcAsset(chain: string): HexString;
1047
+ getUsdtAsset(chain: string): HexString$1;
1048
+ getUsdcAsset(chain: string): HexString$1;
1020
1049
  getUsdcDecimals(chain: string): number;
1021
1050
  getUsdtDecimals(chain: string): number;
1022
- getCNgnAsset(chain: string): HexString | undefined;
1051
+ getCNgnAsset(chain: string): HexString$1 | undefined;
1023
1052
  /**
1024
1053
  * Address of `symbol` on `chain` from the per-chain asset table, matched
1025
1054
  * case-insensitively ("cNGN" ≡ "CNGN"). This table is the single source of
1026
1055
  * truth for token addresses — the simplex asset registry resolves through
1027
1056
  * it, so a new asset is added once in `chain.ts` and nowhere else.
1028
1057
  */
1029
- getAssetBySymbol(chain: string, symbol: string): HexString | undefined;
1058
+ getAssetBySymbol(chain: string, symbol: string): HexString$1 | undefined;
1030
1059
  getCNgnDecimals(chain: string): number | undefined;
1031
- getExtAsset(chain: string): HexString | undefined;
1060
+ getExtAsset(chain: string): HexString$1 | undefined;
1032
1061
  getExtDecimals(chain: string): number | undefined;
1033
1062
  /** Configured exotic (non-USD) tokens on a chain, for selection UIs. EXT is a test asset and is not offered. */
1034
1063
  getKnownExoticTokens(chain: string): Array<{
1035
1064
  symbol: string;
1036
- address: HexString;
1065
+ address: HexString$1;
1037
1066
  decimals?: number;
1038
1067
  }>;
1039
1068
  /** Known ERC-4626 treasury vaults on a chain, for selection UIs. */
@@ -1042,30 +1071,30 @@ declare class ChainConfigService {
1042
1071
  getConsensusStateId(chain: string): string;
1043
1072
  getHyperbridgeChainId(): number;
1044
1073
  getRpcUrl(chain: string): string;
1045
- getUniswapRouterV2Address(chain: string): HexString;
1046
- getAerodromeRouterAddress(chain: string): HexString;
1047
- getUniswapV2FactoryAddress(chain: string): HexString;
1048
- getUniswapV3FactoryAddress(chain: string): HexString;
1049
- getUniversalRouterAddress(chain: string): HexString;
1050
- getUniswapV3QuoterAddress(chain: string): HexString;
1051
- getUniswapV4QuoterAddress(chain: string): HexString;
1052
- getUniswapV4PositionManagerAddress(chain: string): HexString;
1053
- getUniswapV4PoolManagerAddress(chain: string): HexString;
1054
- getUniswapV4StateViewAddress(chain: string): HexString;
1074
+ getUniswapRouterV2Address(chain: string): HexString$1;
1075
+ getAerodromeRouterAddress(chain: string): HexString$1;
1076
+ getUniswapV2FactoryAddress(chain: string): HexString$1;
1077
+ getUniswapV3FactoryAddress(chain: string): HexString$1;
1078
+ getUniversalRouterAddress(chain: string): HexString$1;
1079
+ getUniswapV3QuoterAddress(chain: string): HexString$1;
1080
+ getUniswapV4QuoterAddress(chain: string): HexString$1;
1081
+ getUniswapV4PositionManagerAddress(chain: string): HexString$1;
1082
+ getUniswapV4PoolManagerAddress(chain: string): HexString$1;
1083
+ getUniswapV4StateViewAddress(chain: string): HexString$1;
1055
1084
  getUniswapV4PoolConfigs(chain: string): UniswapV4PoolConfigData[];
1056
- getPermit2Address(chain: string): HexString;
1057
- getSolverAccountAddress(chain: string): HexString | undefined;
1085
+ getPermit2Address(chain: string): HexString$1;
1086
+ getSolverAccountAddress(chain: string): HexString$1 | undefined;
1058
1087
  getCoingeckoId(chain: string): string | undefined;
1059
1088
  getEtherscanApiKey(): string | undefined;
1060
- getCalldispatcherAddress(chain: string): HexString;
1089
+ getCalldispatcherAddress(chain: string): HexString$1;
1061
1090
  getTokenStorageSlots(chain: string, tokenAddress: string): {
1062
1091
  balanceSlot: number;
1063
1092
  allowanceSlot: number;
1064
1093
  } | undefined;
1065
1094
  getPopularTokens(chain: string): string[];
1066
- getEntryPointV08Address(chain: string): HexString;
1067
- getCirclePaymasterAddress(chain: string): HexString | undefined;
1068
- getSimplexPaymasterAddress(chain: string): HexString | undefined;
1095
+ getEntryPointV08Address(chain: string): HexString$1;
1096
+ getCirclePaymasterAddress(chain: string): HexString$1 | undefined;
1097
+ getSimplexPaymasterAddress(chain: string): HexString$1 | undefined;
1069
1098
  getHyperbridgeAddress(): string;
1070
1099
  /**
1071
1100
  * Get the LayerZero Endpoint ID for the chain
@@ -1077,7 +1106,7 @@ declare class ChainConfigService {
1077
1106
  * On Ethereum: OFT Adapter (locks/unlocks USDT)
1078
1107
  * On other chains: OFT contract (mints/burns USDT0)
1079
1108
  */
1080
- getUsdt0OftAddress(chain: string): HexString | undefined;
1109
+ getUsdt0OftAddress(chain: string): HexString$1 | undefined;
1081
1110
  }
1082
1111
 
1083
1112
  type IStateMachine = {
@@ -1127,33 +1156,33 @@ declare class SubstrateChain implements IChain {
1127
1156
  * @param key - The H256 hash key (as a 0x-prefixed hex string)
1128
1157
  * @returns The storage key as a hex string
1129
1158
  */
1130
- requestReceiptKey(key: HexString): HexString;
1159
+ requestReceiptKey(key: HexString$1): HexString$1;
1131
1160
  /**
1132
1161
  * Returns the storage key for a request commitment in the child trie
1133
1162
  * The request commitment is the key
1134
1163
  * @param key - The H256 hash key (as a 0x-prefixed hex string)
1135
1164
  * @returns The storage key as a hex string
1136
1165
  */
1137
- requestCommitmentKey(key: HexString): HexString;
1166
+ requestCommitmentKey(key: HexString$1): HexString$1;
1138
1167
  /**
1139
1168
  * Queries a request commitment from the ISMP child trie storage.
1140
1169
  * @param {HexString} commitment - The commitment hash to look up.
1141
1170
  * @returns {Promise<HexString | undefined>} The commitment data if found, undefined otherwise.
1142
1171
  */
1143
- queryRequestCommitment(commitment: HexString): Promise<HexString | undefined>;
1172
+ queryRequestCommitment(commitment: HexString$1): Promise<HexString$1 | undefined>;
1144
1173
  /**
1145
1174
  * Queries the request receipt.
1146
1175
  * @param {HexString} commitment - The commitment to query.
1147
1176
  * @returns {Promise<HexString | undefined>} The relayer address responsible for delivering the request.
1148
1177
  */
1149
- queryRequestReceipt(commitment: HexString): Promise<HexString | undefined>;
1178
+ queryRequestReceipt(commitment: HexString$1): Promise<HexString$1 | undefined>;
1150
1179
  /**
1151
1180
  * Returns the storage key for a response receipt in the child trie.
1152
1181
  * A response receipt is keyed by the originating *request* commitment.
1153
1182
  * @param {HexString} key - The request commitment (0x-prefixed H256 hex string)
1154
1183
  * @returns {HexString} The storage key as a hex string
1155
1184
  */
1156
- responseReceiptKey(key: HexString): HexString;
1185
+ responseReceiptKey(key: HexString$1): HexString$1;
1157
1186
  /**
1158
1187
  * Queries the response receipt for a request commitment. For a GET, Hyperbridge
1159
1188
  * produces the response as it processes the request, so the presence of a response
@@ -1161,7 +1190,7 @@ declare class SubstrateChain implements IChain {
1161
1190
  * @param {HexString} commitment - The originating request commitment to query.
1162
1191
  * @returns {Promise<HexString | undefined>} The receipt data if present, otherwise undefined.
1163
1192
  */
1164
- queryResponseReceipt(commitment: HexString): Promise<HexString | undefined>;
1193
+ queryResponseReceipt(commitment: HexString$1): Promise<HexString$1 | undefined>;
1165
1194
  /**
1166
1195
  * Queries the state-machine commitment Hyperbridge holds for a counterparty chain at an
1167
1196
  * exact height — the `BoundedStateCommitments` map that `state_machine_commitment` (and thus
@@ -1170,7 +1199,7 @@ declare class SubstrateChain implements IChain {
1170
1199
  * @param {StateMachineHeight} height - The counterparty state machine id + height.
1171
1200
  * @returns {Promise<HexString | undefined>} The committed state root, or undefined if absent.
1172
1201
  */
1173
- queryStateMachineCommitment(height: StateMachineHeight): Promise<HexString | undefined>;
1202
+ queryStateMachineCommitment(height: StateMachineHeight): Promise<HexString$1 | undefined>;
1174
1203
  /**
1175
1204
  * Returns the current timestamp of the chain.
1176
1205
  * @returns {Promise<bigint>} The current timestamp.
@@ -1183,7 +1212,7 @@ declare class SubstrateChain implements IChain {
1183
1212
  * @param {bigint} [at] - The block number to query at.
1184
1213
  * @returns {Promise<HexString>} The proof.
1185
1214
  */
1186
- queryProof(message: IMessage, counterparty: string, at?: bigint): Promise<HexString>;
1215
+ queryProof(message: IMessage, counterparty: string, at?: bigint): Promise<HexString$1>;
1187
1216
  /**
1188
1217
  * Submit an unsigned ISMP transaction to the chain. Resolves when the transaction is finalized.
1189
1218
  * @param message - The message to be submitted.
@@ -1202,7 +1231,7 @@ declare class SubstrateChain implements IChain {
1202
1231
  * @param _address - Optional address (ignored for Substrate; present for IChain compatibility).
1203
1232
  * @returns The state proof as a hexadecimal string.
1204
1233
  */
1205
- queryStateProof(at: bigint, keys: HexString[], _address?: HexString): Promise<HexString>;
1234
+ queryStateProof(at: bigint, keys: HexString$1[], _address?: HexString$1): Promise<HexString$1>;
1206
1235
  /**
1207
1236
  * Get the latest state machine height for a given state machine ID.
1208
1237
  * @param {StateMachineIdParams} stateMachineId - The state machine ID.
@@ -1229,7 +1258,7 @@ declare class SubstrateChain implements IChain {
1229
1258
  * @param message The ISMP message to encode.
1230
1259
  * @returns The encoded message as a hexadecimal string.
1231
1260
  */
1232
- encode(message: IIsmpMessage): HexString;
1261
+ encode(message: IIsmpMessage): HexString$1;
1233
1262
  /**
1234
1263
  * Queries the latest proven height for this chain from pallet-ismp.
1235
1264
  */
@@ -1243,7 +1272,7 @@ declare class SubstrateChain implements IChain {
1243
1272
  * @param currentEpoch - The current authority set id on the destination EVM chain
1244
1273
  */
1245
1274
  queryConsensusProofs(neededHeight: bigint, currentEpoch: bigint): Promise<{
1246
- proofs: HexString[];
1275
+ proofs: HexString$1[];
1247
1276
  provenHeight: bigint;
1248
1277
  } | undefined>;
1249
1278
  private getPalletIndex;
@@ -1270,7 +1299,7 @@ declare function convertStateMachineEnumToString(stateMachine: {
1270
1299
  */
1271
1300
  declare function convertStateIdToStateMachineId(stateId: {
1272
1301
  Evm?: number;
1273
- Substrate?: HexString;
1302
+ Substrate?: HexString$1;
1274
1303
  Polkadot?: number;
1275
1304
  Kusama?: number;
1276
1305
  }): string;
@@ -1350,21 +1379,29 @@ declare function encodeISMPMessage(message: IIsmpMessage): Uint8Array;
1350
1379
  * @param userOp - The PackedUserOperation to encode
1351
1380
  * @returns Hex-encoded SCALE bytes
1352
1381
  */
1353
- declare function encodeUserOpScale(userOp: PackedUserOperation): HexString;
1382
+ declare function encodeUserOpScale(userOp: PackedUserOperation): HexString$1;
1354
1383
  /**
1355
1384
  * Decodes a SCALE-encoded PackedUserOperation.
1356
1385
  *
1357
1386
  * @param hex - The hex-encoded SCALE bytes
1358
1387
  * @returns The decoded PackedUserOperation
1359
1388
  */
1360
- declare function decodeUserOpScale(hex: HexString): PackedUserOperation;
1389
+ declare function decodeUserOpScale(hex: HexString$1): PackedUserOperation;
1390
+ /** One directed leg of a phantom order: `standardAmount` of `tokenA` quoted in `tokenB`. */
1391
+ interface PhantomOrderLeg {
1392
+ tokenA: HexString$1;
1393
+ tokenB: HexString$1;
1394
+ standardAmount: bigint;
1395
+ }
1361
1396
  interface PhantomOrderEvent {
1362
- commitment: HexString;
1397
+ commitment: HexString$1;
1363
1398
  chain: string;
1364
1399
  createdAt: number;
1365
- tokenA: HexString;
1366
- tokenB: HexString;
1367
- standardAmount: bigint;
1400
+ /**
1401
+ * Every configured pair expands into its configured direction plus the reverse. Listed in
1402
+ * the same order as the order's asset lists, so index `i` here is the order's leg `i`.
1403
+ */
1404
+ legs: PhantomOrderLeg[];
1368
1405
  }
1369
1406
  interface PollPhantomOrdersOptions {
1370
1407
  /** How often to check for a new head. Defaults to 6s, roughly one block. */
@@ -1434,16 +1471,37 @@ declare class IntentsCoprocessor {
1434
1471
  /**
1435
1472
  * Signs and sends an extrinsic. Submissions are serialised through {@link submissionQueue} so
1436
1473
  * concurrent calls never collide on the substrate account nonce — each extrinsic reaches a block
1437
- * before the next is signed.
1474
+ * (or is confirmed still pooled and returned as `pending`) before the next is signed; auto-nonce
1475
+ * via `system.accountNextIndex` counts pooled extrinsics, so a pending one is never re-used.
1438
1476
  */
1439
1477
  private signAndSendExtrinsic;
1440
1478
  /**
1441
1479
  * Signs and sends an extrinsic, handling status updates and errors.
1442
1480
  * Implements retry logic with progressive tip increases for stuck transactions.
1481
+ *
1482
+ * A retry only happens when the previous attempt verifiably went nowhere. Once an attempt's
1483
+ * extrinsic is known to be pooled (`pending`), re-signing the same call would race our own
1484
+ * submission: the copy either bounces off the pool (1014, same nonce below the replacement
1485
+ * priority bump) or — if the original lands first, freeing the nonce — executes as a duplicate
1486
+ * and fails on-chain (e.g. `BidNotFound` for a retraction). Neither can succeed, so the pending
1487
+ * result is returned for the caller to confirm later.
1443
1488
  */
1444
1489
  private sendExtrinsicWithRetries;
1445
1490
  /**
1446
- * Sends an extrinsic with a timeout
1491
+ * Classifies a submission rejection. Codes 1013 ("already imported") and 1014 ("priority is
1492
+ * too low") both mean a copy of this account+nonce is already in the pool — almost always our
1493
+ * own earlier attempt whose watch handle didn't confirm cleanly. That extrinsic is in flight;
1494
+ * resubmitting can only bounce again or land a duplicate, so these are surfaced as `pending`
1495
+ * rather than failure.
1496
+ */
1497
+ private classifySubmissionError;
1498
+ /**
1499
+ * Sends an extrinsic with a timeout.
1500
+ *
1501
+ * A timeout is only a failure when the extrinsic never made it into the transaction pool.
1502
+ * Once a pool-entry status (Future/Ready/Broadcast/Retracted) has been seen, the extrinsic is
1503
+ * in flight and may well execute after the watch is abandoned — the result is then `pending`,
1504
+ * telling the caller to confirm the outcome later instead of re-signing the same call.
1447
1505
  */
1448
1506
  private sendWithTimeout;
1449
1507
  /**
@@ -1453,7 +1511,7 @@ declare class IntentsCoprocessor {
1453
1511
  * @param userOp - The encoded PackedUserOperation as hex string
1454
1512
  * @returns BidSubmissionResult with success status and block/extrinsic hash
1455
1513
  */
1456
- submitBid(commitment: HexString, userOp: HexString): Promise<BidSubmissionResult>;
1514
+ submitBid(commitment: HexString$1, userOp: HexString$1): Promise<BidSubmissionResult>;
1457
1515
  /**
1458
1516
  * Retracts a bid from Hyperbridge and reclaims the deposit
1459
1517
  *
@@ -1462,7 +1520,7 @@ declare class IntentsCoprocessor {
1462
1520
  * @param commitment - The order commitment hash (bytes32)
1463
1521
  * @returns BidSubmissionResult with success status and block/extrinsic hash
1464
1522
  */
1465
- retractBid(commitment: HexString): Promise<BidSubmissionResult>;
1523
+ retractBid(commitment: HexString$1): Promise<BidSubmissionResult>;
1466
1524
  /**
1467
1525
  * Places a new bid and retracts a previous one in a single transaction via utility.batch.
1468
1526
  *
@@ -1483,7 +1541,7 @@ declare class IntentsCoprocessor {
1483
1541
  * @param userOp - The encoded PackedUserOperation as hex string
1484
1542
  * @returns BidSubmissionResult with success status and block/extrinsic hash
1485
1543
  */
1486
- submitBidWithRetraction(retractCommitment: HexString, bidCommitment: HexString, userOp: HexString): Promise<BidSubmissionResult>;
1544
+ submitBidWithRetraction(retractCommitment: HexString$1, bidCommitment: HexString$1, userOp: HexString$1): Promise<BidSubmissionResult>;
1487
1545
  /**
1488
1546
  * Fetches all bid storage entries for a given order commitment.
1489
1547
  * Returns the on-chain data only (filler addresses and deposits).
@@ -1491,7 +1549,7 @@ declare class IntentsCoprocessor {
1491
1549
  * @param commitment - The order commitment hash (bytes32)
1492
1550
  * @returns Array of BidStorageEntry objects
1493
1551
  */
1494
- getBidStorageEntries(commitment: HexString): Promise<BidStorageEntry[]>;
1552
+ getBidStorageEntries(commitment: HexString$1): Promise<BidStorageEntry[]>;
1495
1553
  /**
1496
1554
  * Fetches all bids for a given order commitment from Hyperbridge.
1497
1555
  *
@@ -1502,7 +1560,7 @@ declare class IntentsCoprocessor {
1502
1560
  * @param commitment - The order commitment hash (bytes32)
1503
1561
  * @returns Array of FillerBid objects containing filler address, userOp, and deposit
1504
1562
  */
1505
- getBidsForOrder(commitment: HexString): Promise<FillerBid[]>;
1563
+ getBidsForOrder(commitment: HexString$1): Promise<FillerBid[]>;
1506
1564
  /**
1507
1565
  * Fetches bids using the custom intents_getBidsForOrder RPC.
1508
1566
  * Single round-trip but does not include deposit amounts.
@@ -1525,7 +1583,7 @@ declare class IntentsCoprocessor {
1525
1583
  * Returns `null` if the key is absent (e.g. the node is not an offchain worker
1526
1584
  * or the commitment has expired and been cleared).
1527
1585
  */
1528
- fetchPhantomOrder(commitment: HexString): Promise<Order | null>;
1586
+ fetchPhantomOrder(commitment: HexString$1): Promise<Order | null>;
1529
1587
  /**
1530
1588
  * Reads the PhantomOrderRegistered events emitted in a single block.
1531
1589
  */
@@ -1555,7 +1613,7 @@ declare class IntentsCoprocessor {
1555
1613
  type IIsmpMessage = IRequestMessage | ITimeoutPostRequestMessage | IGetResponseMessage | IGetRequestMessage | IConsensusMessage | IBatchConsensusAndPostRequestMessage | IBatchConsensusAndGetResponseMessage;
1556
1614
  interface IConsensusMessage {
1557
1615
  kind: "Consensus";
1558
- consensusProof: HexString;
1616
+ consensusProof: HexString$1;
1559
1617
  }
1560
1618
  interface IRequestMessage {
1561
1619
  /**
@@ -1573,7 +1631,7 @@ interface IRequestMessage {
1573
1631
  /**
1574
1632
  * The signer of the message.
1575
1633
  */
1576
- signer: HexString;
1634
+ signer: HexString$1;
1577
1635
  }
1578
1636
  interface IGetRequestMessage {
1579
1637
  /**
@@ -1595,7 +1653,7 @@ interface IGetRequestMessage {
1595
1653
  /**
1596
1654
  * The signer of the message.
1597
1655
  */
1598
- signer: HexString;
1656
+ signer: HexString$1;
1599
1657
  }
1600
1658
  interface IGetResponse {
1601
1659
  /**
@@ -1623,7 +1681,7 @@ interface IGetResponseMessage {
1623
1681
  /**
1624
1682
  * The signer of the message.
1625
1683
  */
1626
- signer: HexString;
1684
+ signer: HexString$1;
1627
1685
  }
1628
1686
  interface ITimeoutPostRequestMessage {
1629
1687
  /**
@@ -1641,17 +1699,17 @@ interface ITimeoutPostRequestMessage {
1641
1699
  }
1642
1700
  interface IBatchConsensusAndPostRequestMessage {
1643
1701
  kind: "BatchConsensusAndPostRequest";
1644
- consensusProofs: HexString[];
1702
+ consensusProofs: HexString$1[];
1645
1703
  requests: IPostRequest[];
1646
1704
  proof: IProof;
1647
- signer: HexString;
1705
+ signer: HexString$1;
1648
1706
  }
1649
1707
  interface IBatchConsensusAndGetResponseMessage {
1650
1708
  kind: "BatchConsensusAndGetResponse";
1651
- consensusProofs: HexString[];
1709
+ consensusProofs: HexString$1[];
1652
1710
  responses: IGetResponse[];
1653
1711
  proof: IProof;
1654
- signer: HexString;
1712
+ signer: HexString$1;
1655
1713
  }
1656
1714
  interface IProof {
1657
1715
  /**
@@ -1669,7 +1727,7 @@ interface IProof {
1669
1727
  /**
1670
1728
  * The encoded storage proof
1671
1729
  */
1672
- proof: HexString;
1730
+ proof: HexString$1;
1673
1731
  }
1674
1732
  /**
1675
1733
  * Interface representing a chain.
@@ -1683,18 +1741,18 @@ interface IChain {
1683
1741
  /**
1684
1742
  * Returns the state trie key for the request-receipt storage item for the given request commitment.
1685
1743
  */
1686
- requestReceiptKey(commitment: HexString): HexString;
1744
+ requestReceiptKey(commitment: HexString$1): HexString$1;
1687
1745
  /**
1688
1746
  * Query and return the request-receipt for the given request commitment.
1689
1747
  */
1690
- queryRequestReceipt(commitment: HexString): Promise<HexString | undefined>;
1748
+ queryRequestReceipt(commitment: HexString$1): Promise<HexString$1 | undefined>;
1691
1749
  /**
1692
1750
  * Query and return the encoded storage proof for the provided keys at the given height.
1693
1751
  * @param address - Optional contract address for EVM chains; defaults to host contract when omitted.
1694
1752
  */
1695
- queryStateProof(at: bigint, keys: HexString[], address?: HexString): Promise<HexString>;
1696
- queryProof(message: IMessage, counterparty: string, at?: bigint): Promise<HexString>;
1697
- encode(message: IIsmpMessage): HexString;
1753
+ queryStateProof(at: bigint, keys: HexString$1[], address?: HexString$1): Promise<HexString$1>;
1754
+ queryProof(message: IMessage, counterparty: string, at?: bigint): Promise<HexString$1>;
1755
+ encode(message: IIsmpMessage): HexString$1;
1698
1756
  /**
1699
1757
  * Get the latest state machine height for a given state machine ID.
1700
1758
  */
@@ -1719,18 +1777,18 @@ interface IEvmChain extends IChain {
1719
1777
  getHostNonce(): Promise<bigint>;
1720
1778
  quoteNative(request: IPostRequest | IGetRequest, fee: bigint): Promise<bigint>;
1721
1779
  getFeeTokenWithDecimals(): Promise<{
1722
- address: HexString;
1780
+ address: HexString$1;
1723
1781
  decimals: number;
1724
1782
  }>;
1725
- getPlaceOrderCalldata(txHash: string, intentGatewayAddress: string, occurrenceIndex?: number): Promise<HexString>;
1726
- broadcastTransaction(signedTransaction: HexString): Promise<TransactionReceipt>;
1727
- getTransactionReceipt(hash: HexString): Promise<TransactionReceipt>;
1783
+ getPlaceOrderCalldata(txHash: string, intentGatewayAddress: string, occurrenceIndex?: number): Promise<HexString$1>;
1784
+ broadcastTransaction(signedTransaction: HexString$1): Promise<TransactionReceipt>;
1785
+ getTransactionReceipt(hash: HexString$1): Promise<TransactionReceipt>;
1728
1786
  }
1729
1787
 
1730
1788
  type EstimateGasCallData = ContractFunctionArgs<typeof _default$1.ABI, "nonpayable" | "payable", "handlePostRequests">;
1731
- type HexString = `0x${string}`;
1789
+ type HexString$1 = `0x${string}`;
1732
1790
  type StateMachineId = string;
1733
- type BytesLikeHex = HexString;
1791
+ type BytesLikeHex = HexString$1;
1734
1792
  interface IConfig {
1735
1793
  source: IEvmConfig | ISubstrateConfig | IPolkadotHubConfig | IPharosConfig;
1736
1794
  dest: IEvmConfig | ISubstrateConfig | IPolkadotHubConfig | IPharosConfig;
@@ -1740,7 +1798,7 @@ interface IConfig {
1740
1798
  interface IEvmConfig {
1741
1799
  rpcUrl: string;
1742
1800
  stateMachineId: string;
1743
- host: HexString;
1801
+ host: HexString$1;
1744
1802
  consensusStateId: string;
1745
1803
  }
1746
1804
  /**
@@ -1772,25 +1830,25 @@ interface IHyperbridgeConfig {
1772
1830
  interface IPostRequest {
1773
1831
  source: string;
1774
1832
  dest: string;
1775
- from: HexString;
1776
- to: HexString;
1833
+ from: HexString$1;
1834
+ to: HexString$1;
1777
1835
  nonce: bigint;
1778
- body: HexString;
1836
+ body: HexString$1;
1779
1837
  timeoutTimestamp: bigint;
1780
1838
  }
1781
1839
  interface IGetRequest {
1782
1840
  source: string;
1783
1841
  dest: string;
1784
- from: HexString;
1842
+ from: HexString$1;
1785
1843
  nonce: bigint;
1786
1844
  height: bigint;
1787
- keys: HexString[];
1845
+ keys: HexString$1[];
1788
1846
  timeoutTimestamp: bigint;
1789
- context: HexString;
1847
+ context: HexString$1;
1790
1848
  }
1791
1849
  interface GetResponseStorageValues {
1792
- key: HexString;
1793
- value: HexString;
1850
+ key: HexString$1;
1851
+ value: HexString$1;
1794
1852
  }
1795
1853
  interface IPostResponse {
1796
1854
  post: IPostRequest;
@@ -1798,9 +1856,9 @@ interface IPostResponse {
1798
1856
  timeoutTimestamp: bigint;
1799
1857
  }
1800
1858
  type IMessage = {
1801
- Requests: HexString[];
1859
+ Requests: HexString$1[];
1802
1860
  } | {
1803
- Responses: HexString[];
1861
+ Responses: HexString$1[];
1804
1862
  };
1805
1863
  type IndexerQueryClient = GraphQLClient;
1806
1864
  interface ClientConfig {
@@ -1965,10 +2023,10 @@ interface RequestResponse {
1965
2023
  nodes: Array<{
1966
2024
  source: string;
1967
2025
  dest: string;
1968
- to: HexString;
1969
- from: HexString;
2026
+ to: HexString$1;
2027
+ from: HexString$1;
1970
2028
  nonce: bigint;
1971
- body: HexString;
2029
+ body: HexString$1;
1972
2030
  timeoutTimestamp: bigint;
1973
2031
  statusMetadata: {
1974
2032
  nodes: Array<{
@@ -1988,12 +2046,12 @@ interface GetRequestResponse {
1988
2046
  nodes: Array<{
1989
2047
  source: string;
1990
2048
  dest: string;
1991
- to: HexString;
1992
- from: HexString;
2049
+ to: HexString$1;
2050
+ from: HexString$1;
1993
2051
  nonce: bigint;
1994
2052
  height: bigint;
1995
- keys: HexString[];
1996
- context: HexString;
2053
+ keys: HexString$1[];
2054
+ context: HexString$1;
1997
2055
  timeoutTimestamp: bigint;
1998
2056
  statusMetadata: {
1999
2057
  nodes: Array<{
@@ -2093,20 +2151,20 @@ type RequestStatusWithMetadata = {
2093
2151
  interface GenericRequestWithStatuses {
2094
2152
  source: string;
2095
2153
  dest: string;
2096
- from: HexString;
2154
+ from: HexString$1;
2097
2155
  nonce: bigint;
2098
2156
  timeoutTimestamp: bigint;
2099
2157
  statuses: Array<RequestStatusWithMetadata>;
2100
2158
  }
2101
2159
  interface PostRequestWithStatus extends GenericRequestWithStatuses {
2102
- to: HexString;
2103
- body: HexString;
2160
+ to: HexString$1;
2161
+ body: HexString$1;
2104
2162
  }
2105
2163
  interface GetRequestWithStatus extends GenericRequestWithStatuses {
2106
2164
  height: bigint;
2107
- keys: HexString[];
2108
- context: HexString;
2109
- commitment: HexString;
2165
+ keys: HexString$1[];
2166
+ context: HexString$1;
2167
+ commitment: HexString$1;
2110
2168
  }
2111
2169
  interface GetResponseByRequestIdResponse {
2112
2170
  getResponses: {
@@ -2149,7 +2207,7 @@ interface AssetTeleported {
2149
2207
  to: string;
2150
2208
  amount: bigint;
2151
2209
  dest: string;
2152
- commitment: HexString;
2210
+ commitment: HexString$1;
2153
2211
  createdAt: Date;
2154
2212
  blockNumber: number;
2155
2213
  }
@@ -2159,7 +2217,7 @@ interface AssetTeleportedResponse {
2159
2217
  interface StateMachineIdParams {
2160
2218
  stateId: {
2161
2219
  Evm?: number;
2162
- Substrate?: HexString;
2220
+ Substrate?: HexString$1;
2163
2221
  Polkadot?: number;
2164
2222
  Kusama?: number;
2165
2223
  };
@@ -2202,58 +2260,73 @@ interface TokenInfo {
2202
2260
  interface DecodedOrderPlacedLog extends Log {
2203
2261
  eventName: string;
2204
2262
  args: {
2205
- user: HexString;
2263
+ user: HexString$1;
2206
2264
  source: string;
2207
2265
  destination: string;
2208
2266
  deadline: bigint;
2209
2267
  nonce: bigint;
2210
2268
  fees: bigint;
2211
- session: HexString;
2212
- beneficiary: HexString;
2269
+ session: HexString$1;
2270
+ beneficiary: HexString$1;
2213
2271
  predispatch: Array<{
2214
- token: HexString;
2272
+ token: HexString$1;
2215
2273
  amount: bigint;
2216
2274
  }>;
2217
2275
  inputs: Array<{
2218
- token: HexString;
2276
+ token: HexString$1;
2219
2277
  amount: bigint;
2220
2278
  }>;
2221
2279
  outputs: Array<{
2222
- token: HexString;
2280
+ token: HexString$1;
2223
2281
  amount: bigint;
2224
2282
  }>;
2283
+ /**
2284
+ * Calldata executed via the CallDispatcher before escrow.
2285
+ * Absent on logs emitted under the pre-#1092 event schema.
2286
+ */
2287
+ predispatchCall?: HexString$1;
2288
+ /**
2289
+ * Calldata executed on the destination chain during the fill.
2290
+ * Absent on logs emitted under the pre-#1092 event schema.
2291
+ */
2292
+ outputCall?: HexString$1;
2293
+ /**
2294
+ * Attribution tag supplied by the order placer.
2295
+ * Absent on logs emitted under the pre-#1092 event schema.
2296
+ */
2297
+ graffiti?: HexString$1;
2225
2298
  };
2226
- transactionHash: HexString;
2299
+ transactionHash: HexString$1;
2227
2300
  }
2228
2301
  interface DecodedPostRequestEvent extends Log {
2229
2302
  eventName: string;
2230
2303
  args: {
2231
2304
  source: string;
2232
2305
  dest: string;
2233
- from: HexString;
2234
- to: HexString;
2306
+ from: HexString$1;
2307
+ to: HexString$1;
2235
2308
  nonce: bigint;
2236
2309
  timeoutTimestamp: bigint;
2237
- body: HexString;
2310
+ body: HexString$1;
2238
2311
  fee: bigint;
2239
2312
  };
2240
- transactionHash: HexString;
2313
+ transactionHash: HexString$1;
2241
2314
  }
2242
2315
  interface DecodedPostResponseEvent extends Log {
2243
2316
  eventName: string;
2244
2317
  args: {
2245
2318
  source: string;
2246
2319
  dest: string;
2247
- from: HexString;
2248
- to: HexString;
2320
+ from: HexString$1;
2321
+ to: HexString$1;
2249
2322
  nonce: bigint;
2250
2323
  timeoutTimestamp: bigint;
2251
- body: HexString;
2252
- response: HexString;
2324
+ body: HexString$1;
2325
+ response: HexString$1;
2253
2326
  responseTimeoutTimestamp: bigint;
2254
2327
  fee: bigint;
2255
2328
  };
2256
- transactionHash: HexString;
2329
+ transactionHash: HexString$1;
2257
2330
  }
2258
2331
  /**
2259
2332
  * Options for canceling an order
@@ -2275,11 +2348,11 @@ interface Deployment {
2275
2348
  /**
2276
2349
  * The raw state machine ID bytes for the deployment chain (hashed on-chain)
2277
2350
  */
2278
- chain: HexString;
2351
+ chain: HexString$1;
2279
2352
  /**
2280
2353
  * The gateway identifier
2281
2354
  */
2282
- gateway: HexString;
2355
+ gateway: HexString$1;
2283
2356
  }
2284
2357
  /**
2285
2358
  * Represents the body of a request
@@ -2288,11 +2361,11 @@ interface RequestBody {
2288
2361
  /**
2289
2362
  * Represents the commitment of an order
2290
2363
  */
2291
- commitment: HexString;
2364
+ commitment: HexString$1;
2292
2365
  /**
2293
2366
  * Stores the identifier for the beneficiary
2294
2367
  */
2295
- beneficiary: HexString;
2368
+ beneficiary: HexString$1;
2296
2369
  /**
2297
2370
  * An array of token identifiers
2298
2371
  */
@@ -2393,6 +2466,13 @@ interface FillerConfig {
2393
2466
  * Example: { 1: true, 56: false } - watch-only on Ethereum, normal execution on BSC
2394
2467
  */
2395
2468
  watchOnly?: Record<number, boolean>;
2469
+ /**
2470
+ * Source chains (state machine ids, e.g. "EVM-8453") this filler accepts payment from when
2471
+ * filling cross-chain orders, declared inside its phantom bids' paymasterAndData. Omit to
2472
+ * declare nothing, which downstream consumers read as "accepts all CCTP/USDT0-covered
2473
+ * chains"; an empty array declares that no source chain is accepted.
2474
+ */
2475
+ acceptedSourceChains?: string[];
2396
2476
  }
2397
2477
  /**
2398
2478
  * Result of an order execution attempt
@@ -2442,8 +2522,8 @@ interface ExecutionResult {
2442
2522
  * Any tokens exchanged during the fill process
2443
2523
  */
2444
2524
  exchanges?: Array<{
2445
- fromToken: HexString;
2446
- toToken: HexString;
2525
+ fromToken: HexString$1;
2526
+ toToken: HexString$1;
2447
2527
  fromAmount: string;
2448
2528
  toAmount: string;
2449
2529
  exchangeRate: string;
@@ -2465,15 +2545,15 @@ interface DispatchPost {
2465
2545
  /**
2466
2546
  * Bytes representation of the destination state machine
2467
2547
  */
2468
- dest: HexString;
2548
+ dest: HexString$1;
2469
2549
  /**
2470
2550
  * The destination module
2471
2551
  */
2472
- to: HexString;
2552
+ to: HexString$1;
2473
2553
  /**
2474
2554
  * The request body
2475
2555
  */
2476
- body: HexString;
2556
+ body: HexString$1;
2477
2557
  /**
2478
2558
  * Timeout for this request in seconds
2479
2559
  */
@@ -2486,13 +2566,13 @@ interface DispatchPost {
2486
2566
  /**
2487
2567
  * Who pays for this request?
2488
2568
  */
2489
- payer: HexString;
2569
+ payer: HexString$1;
2490
2570
  }
2491
2571
  interface DispatchGet {
2492
2572
  /**
2493
2573
  * Bytes representation of the destination state machine
2494
2574
  */
2495
- dest: HexString;
2575
+ dest: HexString$1;
2496
2576
  /**
2497
2577
  * Height at which to read the state machine
2498
2578
  */
@@ -2500,7 +2580,7 @@ interface DispatchGet {
2500
2580
  /**
2501
2581
  * Raw storage keys to fetch values from the counterparty
2502
2582
  */
2503
- keys: HexString[];
2583
+ keys: HexString$1[];
2504
2584
  /**
2505
2585
  * Timeout for this request in seconds
2506
2586
  */
@@ -2512,17 +2592,17 @@ interface DispatchGet {
2512
2592
  /**
2513
2593
  * Context for the request
2514
2594
  */
2515
- context: HexString;
2595
+ context: HexString$1;
2516
2596
  /**
2517
2597
  * Who pays for this request?
2518
2598
  */
2519
- payer: HexString;
2599
+ payer: HexString$1;
2520
2600
  }
2521
2601
  interface StateMachineHeight {
2522
2602
  id: {
2523
2603
  stateId: {
2524
2604
  Evm?: number;
2525
- Substrate?: HexString;
2605
+ Substrate?: HexString$1;
2526
2606
  Polkadot?: number;
2527
2607
  Kusama?: number;
2528
2608
  };
@@ -2538,26 +2618,26 @@ interface HostParams {
2538
2618
  * The fee token contract address. This will typically be DAI.
2539
2619
  * but we allow it to be configurable to prevent future regrets.
2540
2620
  */
2541
- feeToken: HexString;
2621
+ feeToken: HexString$1;
2542
2622
  /**
2543
2623
  * The admin account, this only has the rights to freeze, or unfreeze the bridge
2544
2624
  */
2545
- admin: HexString;
2625
+ admin: HexString$1;
2546
2626
  /**
2547
2627
  * Ismp message handler contract. This performs all verification logic
2548
2628
  * needed to validate cross-chain messages before they are dispatched to local modules
2549
2629
  */
2550
- handler: HexString;
2630
+ handler: HexString$1;
2551
2631
  /**
2552
2632
  * The authorized host manager contract, is itself an `IIsmpModule`
2553
2633
  * which receives governance requests from the Hyperbridge chain to either
2554
2634
  * withdraw revenue from the host or update its protocol parameters
2555
2635
  */
2556
- hostManager: HexString;
2636
+ hostManager: HexString$1;
2557
2637
  /**
2558
2638
  * The local UniswapV2Router02 contract, used for swapping the native token to the feeToken.
2559
2639
  */
2560
- uniswapV2: HexString;
2640
+ uniswapV2: HexString$1;
2561
2641
  /**
2562
2642
  * The unstaking period of Polkadot's validators. In order to prevent long-range attacks
2563
2643
  */
@@ -2569,7 +2649,7 @@ interface HostParams {
2569
2649
  /**
2570
2650
  * The consensus client contract which handles consensus proof verification
2571
2651
  */
2572
- consensusClient: HexString;
2652
+ consensusClient: HexString$1;
2573
2653
  /**
2574
2654
  * State machines whose state commitments are accepted
2575
2655
  */
@@ -2577,7 +2657,7 @@ interface HostParams {
2577
2657
  /**
2578
2658
  * The state machine identifier for hyperbridge
2579
2659
  */
2580
- hyperbridge: HexString;
2660
+ hyperbridge: HexString$1;
2581
2661
  }
2582
2662
  interface OrderStatusMetadata {
2583
2663
  status: OrderStatus;
@@ -2659,9 +2739,9 @@ interface OrderResponse {
2659
2739
  };
2660
2740
  }
2661
2741
  interface PhantomOrderPriceSnapshot {
2662
- commitment: HexString;
2663
- tokenA: HexString;
2664
- tokenB: HexString;
2742
+ commitment: HexString$1;
2743
+ tokenA: HexString$1;
2744
+ tokenB: HexString$1;
2665
2745
  standardAmount: bigint;
2666
2746
  blockNumber: bigint;
2667
2747
  medianPrice: bigint;
@@ -2695,14 +2775,14 @@ interface PhantomOrderPriceSnapshotsResponse {
2695
2775
  interface AvailableLiquiditySnapshot {
2696
2776
  totalLiquidity: string;
2697
2777
  providerCount: number;
2698
- tokenAddress: HexString;
2778
+ tokenAddress: HexString$1;
2699
2779
  snapshotTime: Date;
2700
2780
  liquidityByChain: AvailableLiquidityByChain[];
2701
2781
  }
2702
2782
  /** Liquidity for one chain/token balance group in an availability snapshot. */
2703
2783
  interface AvailableLiquidityByChain {
2704
2784
  chain: string;
2705
- tokenAddress: HexString;
2785
+ tokenAddress: HexString$1;
2706
2786
  totalLiquidity: string;
2707
2787
  providerCount: number;
2708
2788
  }
@@ -2732,7 +2812,7 @@ interface Transaction {
2732
2812
  /**
2733
2813
  * The address to send the transaction to (typically the Universal Router address)
2734
2814
  */
2735
- to: HexString;
2815
+ to: HexString$1;
2736
2816
  /**
2737
2817
  * The value to send with the transaction (in wei)
2738
2818
  */
@@ -2740,7 +2820,7 @@ interface Transaction {
2740
2820
  /**
2741
2821
  * The calldata for the transaction
2742
2822
  */
2743
- data: HexString;
2823
+ data: HexString$1;
2744
2824
  }
2745
2825
  interface StorageFacade {
2746
2826
  get<T>(key: string): Promise<T | undefined>;
@@ -2751,15 +2831,15 @@ interface PaymentInfo {
2751
2831
  /** Accepts a standard 20-byte address; the SDK pads to bytes32 internally when needed. */
2752
2832
  beneficiary: BytesLikeHex;
2753
2833
  assets: TokenInfo[];
2754
- call: HexString;
2834
+ call: HexString$1;
2755
2835
  }
2756
2836
  interface DispatchInfo {
2757
2837
  assets: TokenInfo[];
2758
- call: HexString;
2838
+ call: HexString$1;
2759
2839
  }
2760
2840
  interface Order {
2761
2841
  id?: string;
2762
- user: HexString;
2842
+ user: HexString$1;
2763
2843
  /** Accepts either `"EVM-1"` style IDs or their hex-encoded form. */
2764
2844
  source: StateMachineId;
2765
2845
  /** Accepts either `"EVM-42161"` style IDs or their hex-encoded form. */
@@ -2767,7 +2847,7 @@ interface Order {
2767
2847
  deadline: bigint;
2768
2848
  nonce: bigint;
2769
2849
  fees: bigint;
2770
- session: HexString;
2850
+ session: HexString$1;
2771
2851
  predispatch: DispatchInfo;
2772
2852
  inputs: TokenInfo[];
2773
2853
  output: PaymentInfo;
@@ -2782,52 +2862,52 @@ interface FillOptions {
2782
2862
  outputs: TokenInfo[];
2783
2863
  }
2784
2864
  interface PackedUserOperation {
2785
- sender: HexString;
2865
+ sender: HexString$1;
2786
2866
  nonce: bigint;
2787
- initCode: HexString;
2788
- callData: HexString;
2789
- accountGasLimits: HexString;
2867
+ initCode: HexString$1;
2868
+ callData: HexString$1;
2869
+ accountGasLimits: HexString$1;
2790
2870
  preVerificationGas: bigint;
2791
- gasFees: HexString;
2792
- paymasterAndData: HexString;
2793
- signature: HexString;
2871
+ gasFees: HexString$1;
2872
+ paymasterAndData: HexString$1;
2873
+ signature: HexString$1;
2794
2874
  }
2795
2875
  interface SigningAccount {
2796
2876
  /** Signs a bid message hash for a given chain. Returns a 65-byte ECDSA signature. */
2797
- signMessage: (messageHash: HexString, chainId: number) => Promise<HexString>;
2877
+ signMessage: (messageHash: HexString$1, chainId: number) => Promise<HexString$1>;
2798
2878
  /** Signs a raw 32-byte hash, returning split signature components for EIP-7702 etc. */
2799
- signRawHash: (hash: HexString) => Promise<{
2800
- r: HexString;
2801
- s: HexString;
2879
+ signRawHash: (hash: HexString$1) => Promise<{
2880
+ r: HexString$1;
2881
+ s: HexString$1;
2802
2882
  yParity: number;
2803
2883
  }>;
2804
2884
  /**
2805
2885
  * Signs an EIP-712 typed-data payload (e.g. an EIP-2612 USDC permit for the Circle Paymaster).
2806
2886
  * The shape of `typedData` matches viem's `TypedDataDefinition` (domain + types + message).
2807
2887
  */
2808
- signTypedData: (typedData: unknown, chainId?: number) => Promise<HexString>;
2888
+ signTypedData: (typedData: unknown, chainId?: number) => Promise<HexString$1>;
2809
2889
  }
2810
2890
  interface SubmitBidOptions {
2811
2891
  order: Order;
2812
2892
  fillOptions: FillOptions;
2813
- solverAccount: HexString;
2893
+ solverAccount: HexString$1;
2814
2894
  /** Canonical signer used for bid message signing and raw-hash operations. */
2815
2895
  solverSigner: SigningAccount;
2816
2896
  nonce: bigint;
2817
- entryPointAddress: HexString;
2897
+ entryPointAddress: HexString$1;
2818
2898
  callGasLimit: bigint;
2819
2899
  verificationGasLimit: bigint;
2820
2900
  preVerificationGas: bigint;
2821
2901
  maxFeePerGas: bigint;
2822
2902
  maxPriorityFeePerGas: bigint;
2823
2903
  /** Pre-built ERC-7821 calldata encoding the UserOp execution (approvals + fillOrder). */
2824
- callData: HexString;
2904
+ callData: HexString$1;
2825
2905
  /**
2826
2906
  * Optional packed paymasterAndData for EntryPoint v0.8.
2827
2907
  * Must be built BEFORE calling prepareSubmitBid so the hash covers paymaster bytes.
2828
2908
  * Defaults to "0x" (EntryPoint deposit pays gas).
2829
2909
  */
2830
- paymasterAndData?: HexString;
2910
+ paymasterAndData?: HexString$1;
2831
2911
  }
2832
2912
  interface EstimateFillOrderParams {
2833
2913
  order: Order;
@@ -2894,7 +2974,7 @@ interface OrderFeesQuote {
2894
2974
  * The source-chain fee token `fees` is denominated in — check the user's
2895
2975
  * balance and allowance against this address when paying the fee directly.
2896
2976
  */
2897
- feeToken: HexString;
2977
+ feeToken: HexString$1;
2898
2978
  /** The underlying gas estimate the quote was derived from. */
2899
2979
  estimate: FillOrderEstimate;
2900
2980
  }
@@ -2909,15 +2989,24 @@ interface BidSubmissionResult {
2909
2989
  /**
2910
2990
  * Block hash where the bid was included
2911
2991
  */
2912
- blockHash?: HexString;
2992
+ blockHash?: HexString$1;
2913
2993
  /**
2914
2994
  * Extrinsic hash of the bid transaction
2915
2995
  */
2916
- extrinsicHash?: HexString;
2996
+ extrinsicHash?: HexString$1;
2917
2997
  /**
2918
2998
  * Error message if submission failed
2919
2999
  */
2920
3000
  error?: string;
3001
+ /**
3002
+ * The extrinsic is (or may still be) in the transaction pool: it was accepted but its
3003
+ * inclusion was not observed before the watch timed out, or a resubmission bounced off an
3004
+ * earlier copy already pooled (RPC 1013/1014). Only meaningful when `success` is false —
3005
+ * the operation is in flight, not failed, and must not be re-signed with the same nonce.
3006
+ * Callers should confirm the outcome later (e.g. re-check on-chain state) instead of
3007
+ * treating this as a terminal failure.
3008
+ */
3009
+ pending?: boolean;
2921
3010
  }
2922
3011
  /**
2923
3012
  * Represents a storage entry from pallet-intents Bids storage
@@ -2925,7 +3014,7 @@ interface BidSubmissionResult {
2925
3014
  */
2926
3015
  interface BidStorageEntry {
2927
3016
  /** The order commitment hash (H256) */
2928
- commitment: HexString;
3017
+ commitment: HexString$1;
2929
3018
  /** The filler's Substrate account ID (SS58 encoded) */
2930
3019
  filler: string;
2931
3020
  /** The deposit amount stored on-chain (BalanceOf<T> = u128) */
@@ -2948,11 +3037,11 @@ interface FillerBid {
2948
3037
  */
2949
3038
  interface SelectOptions {
2950
3039
  /** The order commitment hash (bytes32) */
2951
- commitment: HexString;
3040
+ commitment: HexString$1;
2952
3041
  /** The solver address to select */
2953
- solver: HexString;
3042
+ solver: HexString$1;
2954
3043
  /** The EIP-712 signature from the session key */
2955
- signature: HexString;
3044
+ signature: HexString$1;
2956
3045
  }
2957
3046
  /**
2958
3047
  * A first-class, executable solver bid surfaced to consumers of the intents SDK.
@@ -2970,7 +3059,7 @@ interface SelectOptions {
2970
3059
  */
2971
3060
  interface Bid {
2972
3061
  /** The solver account that submitted this bid (`userOp.sender`). */
2973
- readonly solverAddress: HexString;
3062
+ readonly solverAddress: HexString$1;
2974
3063
  /** Decoded `FillOptions.outputs` — the tokens and amounts the solver offers. */
2975
3064
  readonly outputs: TokenInfo[];
2976
3065
  /** Relayer fee from the decoded fill options. */
@@ -3019,8 +3108,8 @@ type IntentOrderStatusKey = keyof typeof IntentOrderStatus;
3019
3108
  /** Tagged union of all possible status updates yielded by the intent order execution stream */
3020
3109
  type IntentOrderStatusUpdate = {
3021
3110
  status: "AWAITING_PLACE_ORDER";
3022
- to: HexString;
3023
- data: HexString;
3111
+ to: HexString$1;
3112
+ data: HexString$1;
3024
3113
  /**
3025
3114
  * The order's native-token input amounts. Native inputs cannot be
3026
3115
  * pulled via allowance, so this must be part of the placement
@@ -3034,62 +3123,62 @@ type IntentOrderStatusUpdate = {
3034
3123
  * (fee-token rail).
3035
3124
  */
3036
3125
  nativeFee: bigint;
3037
- sessionPrivateKey: HexString;
3126
+ sessionPrivateKey: HexString$1;
3038
3127
  /** Exact source-chain fee-token amount encoded in `data`. */
3039
3128
  feeTokenAmount: bigint;
3040
3129
  /** Source-chain ERC-20 token charged for `feeTokenAmount`. */
3041
- feeTokenAddress: HexString;
3130
+ feeTokenAddress: HexString$1;
3042
3131
  } | {
3043
3132
  status: "ORDER_PLACED";
3044
3133
  order: Order;
3045
3134
  receipt: TransactionReceipt;
3046
3135
  } | {
3047
3136
  status: "AWAITING_BIDS";
3048
- commitment: HexString;
3137
+ commitment: HexString$1;
3049
3138
  totalFilledAssets: TokenInfo[];
3050
3139
  remainingAssets: TokenInfo[];
3051
3140
  } | {
3052
3141
  status: "NEW_BID";
3053
- commitment: HexString;
3142
+ commitment: HexString$1;
3054
3143
  bid: Bid;
3055
3144
  } | {
3056
3145
  status: "BIDS_RECEIVED";
3057
- commitment: HexString;
3146
+ commitment: HexString$1;
3058
3147
  bidCount: number;
3059
3148
  bids: Bid[];
3060
3149
  } | {
3061
3150
  status: "BID_SELECTED";
3062
- commitment: HexString;
3063
- selectedSolver: HexString;
3064
- userOpHash: HexString;
3151
+ commitment: HexString$1;
3152
+ selectedSolver: HexString$1;
3153
+ userOpHash: HexString$1;
3065
3154
  userOp: PackedUserOperation;
3066
- transactionHash?: HexString;
3155
+ transactionHash?: HexString$1;
3067
3156
  } | {
3068
3157
  status: "FILLED";
3069
- commitment: HexString;
3070
- userOpHash: HexString;
3071
- selectedSolver: HexString;
3072
- transactionHash?: HexString;
3158
+ commitment: HexString$1;
3159
+ userOpHash: HexString$1;
3160
+ selectedSolver: HexString$1;
3161
+ transactionHash?: HexString$1;
3073
3162
  totalFilledAssets: TokenInfo[];
3074
3163
  remainingAssets: TokenInfo[];
3075
3164
  } | {
3076
3165
  status: "PARTIAL_FILL";
3077
- commitment: HexString;
3078
- userOpHash: HexString;
3079
- selectedSolver: HexString;
3080
- transactionHash?: HexString;
3166
+ commitment: HexString$1;
3167
+ userOpHash: HexString$1;
3168
+ selectedSolver: HexString$1;
3169
+ transactionHash?: HexString$1;
3081
3170
  filledAssets: TokenInfo[];
3082
3171
  totalFilledAssets: TokenInfo[];
3083
3172
  remainingAssets: TokenInfo[];
3084
3173
  } | {
3085
3174
  status: "EXPIRED";
3086
- commitment: HexString;
3175
+ commitment: HexString$1;
3087
3176
  totalFilledAssets?: TokenInfo[];
3088
3177
  remainingAssets?: TokenInfo[];
3089
3178
  error: string;
3090
3179
  } | {
3091
3180
  status: "FAILED";
3092
- commitment?: HexString;
3181
+ commitment?: HexString$1;
3093
3182
  totalFilledAssets?: TokenInfo[];
3094
3183
  remainingAssets?: TokenInfo[];
3095
3184
  error: string;
@@ -3097,10 +3186,10 @@ type IntentOrderStatusUpdate = {
3097
3186
  /** Result of selecting a bid and submitting to the bundler */
3098
3187
  interface SelectBidResult {
3099
3188
  userOp: PackedUserOperation;
3100
- userOpHash: HexString;
3101
- solverAddress: HexString;
3102
- commitment: HexString;
3103
- txnHash?: HexString;
3189
+ userOpHash: HexString$1;
3190
+ solverAddress: HexString$1;
3191
+ commitment: HexString$1;
3192
+ txnHash?: HexString$1;
3104
3193
  fillStatus?: "full" | "partial";
3105
3194
  /** Assets filled in this user operation (best-effort, based on on-chain PartialFill logs) */
3106
3195
  filledAssets?: TokenInfo[];
@@ -3108,7 +3197,7 @@ interface SelectBidResult {
3108
3197
  /** Options for executing an intent order */
3109
3198
  interface ExecuteIntentOrderOptions {
3110
3199
  order: Order;
3111
- sessionPrivateKey?: HexString;
3200
+ sessionPrivateKey?: HexString$1;
3112
3201
  /** Duration in ms to collect bids before selecting the best one. */
3113
3202
  auctionTimeMs: number;
3114
3203
  pollIntervalMs?: number;
@@ -3118,19 +3207,19 @@ interface ExecuteIntentOrderOptions {
3118
3207
  */
3119
3208
  solver?: {
3120
3209
  /** Only bids from this address (matched against userOp.sender) will be considered */
3121
- address: HexString;
3210
+ address: HexString$1;
3122
3211
  /** After this many ms without a matching bid, execution falls back to any solver */
3123
3212
  timeoutMs: number;
3124
3213
  };
3125
3214
  }
3126
3215
  /** Options for resuming execution of a previously placed intent order */
3127
3216
  interface ResumeIntentOrderOptions {
3128
- sessionPrivateKey?: HexString;
3217
+ sessionPrivateKey?: HexString$1;
3129
3218
  /** Duration in ms to collect bids before selecting the best one. */
3130
3219
  auctionTimeMs: number;
3131
3220
  pollIntervalMs?: number;
3132
3221
  solver?: {
3133
- address: HexString;
3222
+ address: HexString$1;
3134
3223
  timeoutMs: number;
3135
3224
  };
3136
3225
  }
@@ -3141,10 +3230,22 @@ type ERC7821Call = {
3141
3230
  data: `0x${string}`;
3142
3231
  };
3143
3232
 
3144
- declare function encodeERC7821ExecuteBatch(calls: ERC7821Call[]): HexString;
3145
- declare function decodeERC7821ExecuteBatch(callData: HexString): ERC7821Call[] | null;
3233
+ declare function encodeERC7821ExecuteBatch(calls: ERC7821Call[]): HexString$1;
3234
+ declare function decodeERC7821ExecuteBatch(callData: HexString$1): ERC7821Call[] | null;
3146
3235
 
3147
- declare const ABI: readonly [{
3236
+ type HexString = `0x${string}`;
3237
+ /**
3238
+ * ERC-4337 v0.8 EntryPoint, the contract whose userOpHash a bid's solver signature is taken over.
3239
+ * Canonical across every EVM chain we support, which is why it is a constant here rather than
3240
+ * something callers pass in (chain.ts carries the same address per chain as `EntryPointV08`).
3241
+ */
3242
+ declare const ENTRY_POINT_V08_ADDRESS: "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108";
3243
+ /** Minimal fetch shape used by the JSON-RPC POSTs below. */
3244
+ type FetchLike = (url: string, init: any) => Promise<{
3245
+ json(): Promise<any>;
3246
+ }>;
3247
+ declare function setAggregationFetch(fetchImpl: FetchLike): void;
3248
+ declare const FILL_ORDER_ABI: readonly [{
3148
3249
  readonly type: "constructor";
3149
3250
  readonly inputs: readonly [{
3150
3251
  readonly name: "admin";
@@ -4334,6 +4435,21 @@ declare const ABI: readonly [{
4334
4435
  readonly type: "uint256";
4335
4436
  readonly internalType: "uint256";
4336
4437
  }];
4438
+ }, {
4439
+ readonly name: "predispatchCall";
4440
+ readonly type: "bytes";
4441
+ readonly indexed: false;
4442
+ readonly internalType: "bytes";
4443
+ }, {
4444
+ readonly name: "outputCall";
4445
+ readonly type: "bytes";
4446
+ readonly indexed: false;
4447
+ readonly internalType: "bytes";
4448
+ }, {
4449
+ readonly name: "graffiti";
4450
+ readonly type: "bytes32";
4451
+ readonly indexed: false;
4452
+ readonly internalType: "bytes32";
4337
4453
  }];
4338
4454
  readonly anonymous: false;
4339
4455
  }, {
@@ -4533,38 +4649,1608 @@ declare const ABI: readonly [{
4533
4649
  readonly name: "WrongChain";
4534
4650
  readonly inputs: readonly [];
4535
4651
  }];
4536
- declare const _default: {
4537
- ABI: readonly [{
4538
- readonly type: "constructor";
4539
- readonly inputs: readonly [{
4540
- readonly name: "admin";
4541
- readonly type: "address";
4542
- readonly internalType: "address";
4543
- }];
4544
- readonly stateMutability: "nonpayable";
4545
- }, {
4546
- readonly type: "receive";
4547
- readonly stateMutability: "payable";
4548
- }, {
4549
- readonly type: "function";
4550
- readonly name: "DOMAIN_SEPARATOR";
4551
- readonly inputs: readonly [];
4552
- readonly outputs: readonly [{
4553
- readonly name: "";
4554
- readonly type: "bytes32";
4555
- readonly internalType: "bytes32";
4556
- }];
4557
- readonly stateMutability: "view";
4652
+ /**
4653
+ * Encodes the accepted source chains (state machine ids, e.g. "EVM-8453") into the
4654
+ * paymasterAndData declaration blob.
4655
+ */
4656
+ declare function encodeAcceptedSourceChains(chains: string[]): HexString;
4657
+ /**
4658
+ * Decodes a phantom bid's paymasterAndData into its declared source chains. Returns null for an
4659
+ * absent, unversioned or malformed blob — the legacy default — and an empty array only for an
4660
+ * explicit zero-entry declaration. Callers must preserve that distinction.
4661
+ */
4662
+ declare function decodeAcceptedSourceChains(paymasterAndData: string | undefined | null): string[] | null;
4663
+ /** ERC-4626 vaults per chain, keyed by chain id then lowercase underlying token address. */
4664
+ type YieldVaultMap = Record<string, Record<string, string[]>>;
4665
+ /** One leg of a fill: the token the solver pays out and the amount it quoted for that leg. */
4666
+ interface FillLeg {
4667
+ outputToken: HexString;
4668
+ solverAmount: bigint;
4669
+ }
4670
+ interface FillData {
4671
+ order: Record<string, unknown>;
4672
+ options: Record<string, unknown>;
4673
+ /** Positional, matching the order's asset lists. A zero amount means the solver did not quote that leg. */
4674
+ legs: FillLeg[];
4675
+ }
4676
+ /**
4677
+ * Zips an order's output assets with the bid's quoted amounts into positional legs. A missing or
4678
+ * null amount is the "solver declined this leg" sentinel and becomes a zero quote. Shared by the
4679
+ * viem extractor below and the indexer's VM2-safe one, so the declined-leg convention has a
4680
+ * single home while only the ABI decode differs per environment.
4681
+ */
4682
+ declare function zipFillLegs(assets: {
4683
+ token: HexString;
4684
+ }[], outputs: {
4685
+ amount: unknown;
4686
+ }[]): FillLeg[];
4687
+ interface RpcBidInfo {
4688
+ commitment: string;
4689
+ filler: string;
4690
+ user_op: string;
4691
+ }
4692
+ /** One solver's measured liquidity for a configured token on one chain at this snapshot. */
4693
+ interface LpBalance {
4694
+ solver: string;
4695
+ /** State machine id of the chain the balance was measured on (e.g. EVM-8453). */
4696
+ chain: string;
4697
+ tokenAddress: HexString;
4698
+ balance: bigint;
4699
+ }
4700
+ /** One verified solver behind a leg's quote, holding inventory to deliver it. */
4701
+ interface PhantomLegBidder {
4702
+ solver: HexString;
4703
+ /**
4704
+ * The solver's output-token inventory on the destination chain — its weight in the median.
4705
+ * Always greater than zero: a solver quoting a leg it holds none of is dropped, not recorded
4706
+ * at zero, since it can deliver nothing at any price.
4707
+ */
4708
+ weight: bigint;
4709
+ /**
4710
+ * Source chains the solver's signed paymasterAndData declaration accepts payment from. Null
4711
+ * when the bid carries no declaration (legacy default: all CCTP/USDT0-covered chains); an
4712
+ * empty array is an explicit accepts-nothing declaration.
4713
+ */
4714
+ acceptedSources: string[] | null;
4715
+ }
4716
+ /** The aggregated price for one leg of a phantom order. */
4717
+ interface PhantomLegAggregation {
4718
+ /** Position of the leg in the order's asset lists. */
4719
+ legIndex: number;
4720
+ outputToken: HexString;
4721
+ lowestPrice: bigint;
4722
+ highestPrice: bigint;
4723
+ medianPrice: bigint;
4724
+ /** Backed quotes behind the price. Quotes from solvers holding no inventory are not counted. */
4725
+ bidCount: number;
4726
+ /** The verified, inventory-backed solvers quoting this leg; bidCount === bidders.length. */
4727
+ bidders: PhantomLegBidder[];
4728
+ }
4729
+ /** The aggregated result for a single phantom order's bid window. */
4730
+ interface PhantomAggregation {
4731
+ /**
4732
+ * One entry per leg that at least one solver quoted AND at least one of those quotes is backed
4733
+ * by output-token inventory on the destination chain. Legs nobody quoted are absent, and so are
4734
+ * legs every bidder quoted on zero inventory — neither is a price anyone could trade against.
4735
+ */
4736
+ legs: PhantomLegAggregation[];
4737
+ lpBalances: LpBalance[];
4738
+ }
4739
+ interface AggregationLogger {
4740
+ warn: (payload: unknown, message: string) => void;
4741
+ }
4742
+ declare function weightedMedian(entries: {
4743
+ price: bigint;
4744
+ weight: bigint;
4745
+ }[]): bigint;
4746
+ declare function extractFillData(callData: HexString, gatewayAddress: string): FillData | null;
4747
+ /** Derives the 192-bit bid nonce key binding a bid to an (order, sessionKey) pair. */
4748
+ type BidNonceKeyFn = (commitment: HexString, sessionKey: HexString) => bigint;
4749
+ /** Recomputes an order's commitment from the contract-shaped order decoded out of a bid's calldata. */
4750
+ type OrderCommitmentFn = (order: Record<string, unknown>) => HexString | null;
4751
+ /**
4752
+ * Default (viem) {@link OrderCommitmentFn}. The order comes straight out of `fillOrder`'s ABI
4753
+ * decode, so it is already contract-shaped and re-encoding it reproduces `keccak256(abi.encode(order))`
4754
+ * — the same commitment IntentGatewayV2 computes on-chain. Returns null when it cannot be computed,
4755
+ * which callers treat as unverifiable (fail closed).
4756
+ */
4757
+ declare function orderCommitmentFromDecoded(order: Record<string, unknown>): HexString | null;
4758
+ interface BidSignature {
4759
+ /** The order commitment the solver signature is bound to. */
4760
+ commitment: HexString;
4761
+ /** The solver's 65-byte ECDSA signature over the userOpHash. */
4762
+ solverSignature: HexString;
4763
+ }
4764
+ /** Splits a bid userOp's signature into its commitment and solver signature; null if malformed. */
4765
+ declare function splitBidSignature(signature: HexString): BidSignature | null;
4766
+ /** Recovers the address that produced a bid's solver signature, or null if it cannot be recovered. */
4767
+ type RecoverBidSigner = (userOp: PackedUserOperation, entryPoint: HexString, chainId: bigint, solverSignature: HexString) => Promise<HexString | null>;
4768
+ /**
4769
+ * Default {@link RecoverBidSigner}: recovers over the EntryPoint v0.8 userOpHash, the digest
4770
+ * SolverAccount itself validates against. viem-based, so Node consumers get it for free while the
4771
+ * indexer injects an ethers equivalent (see the note at the top of this file).
4772
+ */
4773
+ declare const recoverBidSignerViem: RecoverBidSigner;
4774
+ declare function fetchBidsForOrder(nodeUrl: string, commitment: string): Promise<RpcBidInfo[]>;
4775
+ /** Promise-caching balance reader produced by [`memoizedSolverBalance`]. */
4776
+ type SolverBalanceReader = (evmRpcUrl: string, chain: string, token: string, solver: string) => Promise<bigint>;
4777
+ declare function memoizedSolverBalance(yieldVaults: YieldVaultMap): SolverBalanceReader;
4778
+ /**
4779
+ * Aggregates every bid for a phantom order into a single price/liquidity snapshot.
4780
+ *
4781
+ * Fetches the live bids via `intents_getBidsForOrder` and reads each filler's quoted output amount.
4782
+ * Only bids that {@link isVerifiedSolverBid} accepts are counted — a bid from anyone who is not one
4783
+ * of our delegated solvers, or whose signature was not produced for this order, is dropped rather
4784
+ * than allowed to move the price. The liquidity-weighted median then weights every surviving quote by
4785
+ * the solver's balance of the output token on the destination chain, so a solver that can't actually
4786
+ * deliver size carries little or no weight — which is why no fill simulation is needed to filter
4787
+ * unfillable quotes. For each bidding solver it also records a full liquidity sweep — every
4788
+ * configured yield-vault token on every supported chain (raw ERC-20 + vault positions). Returns
4789
+ * `null` when no bid survives verification.
4790
+ *
4791
+ * `extractFill` decodes a bid's ERC-7821 calldata into the fill's order/output and `recoverSigner`
4792
+ * recovers its solver signature; both default to the viem implementations, but the indexer injects
4793
+ * VM2-safe variants (viem's keccak throws in the SubQuery sandbox).
4794
+ */
4795
+ declare function aggregatePhantomBids(params: {
4796
+ nodeUrl: string;
4797
+ /** RPC URL per supported EVM chain (stateMachineId -> url); must include the destination chain. */
4798
+ evmRpcUrls: Record<string, string>;
4799
+ chain: string;
4800
+ gatewayAddress: string;
4801
+ commitment: string;
4802
+ yieldVaults: YieldVaultMap;
4803
+ /** SolverAccount on `chain` that our solvers delegate to; bids from anyone else are dropped. */
4804
+ solverAccount: string;
4805
+ extractFill?: (callData: HexString, gatewayAddress: string) => FillData | null;
4806
+ recoverSigner?: RecoverBidSigner;
4807
+ bidNonceKey?: BidNonceKeyFn;
4808
+ orderCommitment?: OrderCommitmentFn;
4809
+ /**
4810
+ * Balance reader shared across runs; defaults to a fresh per-run memo. Pass one built with
4811
+ * `memoizedSolverBalance` when aggregating several same-block orders, and build it from the
4812
+ * same `yieldVaults` passed here — the memo bakes in the vault map its balances include.
4813
+ */
4814
+ getBalance?: SolverBalanceReader;
4815
+ logger?: AggregationLogger;
4816
+ }): Promise<PhantomAggregation | null>;
4817
+
4818
+ declare const ABI: readonly [{
4819
+ readonly type: "constructor";
4820
+ readonly inputs: readonly [{
4821
+ readonly name: "admin";
4822
+ readonly type: "address";
4823
+ readonly internalType: "address";
4824
+ }];
4825
+ readonly stateMutability: "nonpayable";
4826
+ }, {
4827
+ readonly type: "receive";
4828
+ readonly stateMutability: "payable";
4829
+ }, {
4830
+ readonly type: "function";
4831
+ readonly name: "DOMAIN_SEPARATOR";
4832
+ readonly inputs: readonly [];
4833
+ readonly outputs: readonly [{
4834
+ readonly name: "";
4835
+ readonly type: "bytes32";
4836
+ readonly internalType: "bytes32";
4837
+ }];
4838
+ readonly stateMutability: "view";
4839
+ }, {
4840
+ readonly type: "function";
4841
+ readonly name: "SELECT_SOLVER_TYPEHASH";
4842
+ readonly inputs: readonly [];
4843
+ readonly outputs: readonly [{
4844
+ readonly name: "";
4845
+ readonly type: "bytes32";
4846
+ readonly internalType: "bytes32";
4847
+ }];
4848
+ readonly stateMutability: "view";
4849
+ }, {
4850
+ readonly type: "function";
4851
+ readonly name: "_destinationProtocolFees";
4852
+ readonly inputs: readonly [{
4853
+ readonly name: "";
4854
+ readonly type: "bytes32";
4855
+ readonly internalType: "bytes32";
4856
+ }];
4857
+ readonly outputs: readonly [{
4858
+ readonly name: "";
4859
+ readonly type: "uint256";
4860
+ readonly internalType: "uint256";
4861
+ }];
4862
+ readonly stateMutability: "view";
4863
+ }, {
4864
+ readonly type: "function";
4865
+ readonly name: "_filled";
4866
+ readonly inputs: readonly [{
4867
+ readonly name: "";
4868
+ readonly type: "bytes32";
4869
+ readonly internalType: "bytes32";
4870
+ }];
4871
+ readonly outputs: readonly [{
4872
+ readonly name: "";
4873
+ readonly type: "address";
4874
+ readonly internalType: "address";
4875
+ }];
4876
+ readonly stateMutability: "view";
4877
+ }, {
4878
+ readonly type: "function";
4879
+ readonly name: "_instances";
4880
+ readonly inputs: readonly [{
4881
+ readonly name: "";
4882
+ readonly type: "bytes32";
4883
+ readonly internalType: "bytes32";
4884
+ }];
4885
+ readonly outputs: readonly [{
4886
+ readonly name: "";
4887
+ readonly type: "address";
4888
+ readonly internalType: "address";
4889
+ }];
4890
+ readonly stateMutability: "view";
4891
+ }, {
4892
+ readonly type: "function";
4893
+ readonly name: "_nonce";
4894
+ readonly inputs: readonly [];
4895
+ readonly outputs: readonly [{
4896
+ readonly name: "";
4897
+ readonly type: "uint256";
4898
+ readonly internalType: "uint256";
4899
+ }];
4900
+ readonly stateMutability: "view";
4901
+ }, {
4902
+ readonly type: "function";
4903
+ readonly name: "_orders";
4904
+ readonly inputs: readonly [{
4905
+ readonly name: "";
4906
+ readonly type: "bytes32";
4907
+ readonly internalType: "bytes32";
4558
4908
  }, {
4559
- readonly type: "function";
4560
- readonly name: "SELECT_SOLVER_TYPEHASH";
4561
- readonly inputs: readonly [];
4562
- readonly outputs: readonly [{
4563
- readonly name: "";
4564
- readonly type: "bytes32";
4565
- readonly internalType: "bytes32";
4566
- }];
4567
- readonly stateMutability: "view";
4909
+ readonly name: "";
4910
+ readonly type: "address";
4911
+ readonly internalType: "address";
4912
+ }];
4913
+ readonly outputs: readonly [{
4914
+ readonly name: "";
4915
+ readonly type: "uint256";
4916
+ readonly internalType: "uint256";
4917
+ }];
4918
+ readonly stateMutability: "view";
4919
+ }, {
4920
+ readonly type: "function";
4921
+ readonly name: "_partialFills";
4922
+ readonly inputs: readonly [{
4923
+ readonly name: "";
4924
+ readonly type: "bytes32";
4925
+ readonly internalType: "bytes32";
4926
+ }, {
4927
+ readonly name: "";
4928
+ readonly type: "bytes32";
4929
+ readonly internalType: "bytes32";
4930
+ }];
4931
+ readonly outputs: readonly [{
4932
+ readonly name: "";
4933
+ readonly type: "uint256";
4934
+ readonly internalType: "uint256";
4935
+ }];
4936
+ readonly stateMutability: "view";
4937
+ }, {
4938
+ readonly type: "function";
4939
+ readonly name: "calculateCommitmentSlotHash";
4940
+ readonly inputs: readonly [{
4941
+ readonly name: "commitment";
4942
+ readonly type: "bytes32";
4943
+ readonly internalType: "bytes32";
4944
+ }];
4945
+ readonly outputs: readonly [{
4946
+ readonly name: "";
4947
+ readonly type: "bytes";
4948
+ readonly internalType: "bytes";
4949
+ }];
4950
+ readonly stateMutability: "pure";
4951
+ }, {
4952
+ readonly type: "function";
4953
+ readonly name: "cancelOrder";
4954
+ readonly inputs: readonly [{
4955
+ readonly name: "order";
4956
+ readonly type: "tuple";
4957
+ readonly internalType: "struct Order";
4958
+ readonly components: readonly [{
4959
+ readonly name: "user";
4960
+ readonly type: "bytes32";
4961
+ readonly internalType: "bytes32";
4962
+ }, {
4963
+ readonly name: "source";
4964
+ readonly type: "bytes";
4965
+ readonly internalType: "bytes";
4966
+ }, {
4967
+ readonly name: "destination";
4968
+ readonly type: "bytes";
4969
+ readonly internalType: "bytes";
4970
+ }, {
4971
+ readonly name: "deadline";
4972
+ readonly type: "uint256";
4973
+ readonly internalType: "uint256";
4974
+ }, {
4975
+ readonly name: "nonce";
4976
+ readonly type: "uint256";
4977
+ readonly internalType: "uint256";
4978
+ }, {
4979
+ readonly name: "fees";
4980
+ readonly type: "uint256";
4981
+ readonly internalType: "uint256";
4982
+ }, {
4983
+ readonly name: "session";
4984
+ readonly type: "address";
4985
+ readonly internalType: "address";
4986
+ }, {
4987
+ readonly name: "predispatch";
4988
+ readonly type: "tuple";
4989
+ readonly internalType: "struct DispatchInfo";
4990
+ readonly components: readonly [{
4991
+ readonly name: "assets";
4992
+ readonly type: "tuple[]";
4993
+ readonly internalType: "struct TokenInfo[]";
4994
+ readonly components: readonly [{
4995
+ readonly name: "token";
4996
+ readonly type: "bytes32";
4997
+ readonly internalType: "bytes32";
4998
+ }, {
4999
+ readonly name: "amount";
5000
+ readonly type: "uint256";
5001
+ readonly internalType: "uint256";
5002
+ }];
5003
+ }, {
5004
+ readonly name: "call";
5005
+ readonly type: "bytes";
5006
+ readonly internalType: "bytes";
5007
+ }];
5008
+ }, {
5009
+ readonly name: "inputs";
5010
+ readonly type: "tuple[]";
5011
+ readonly internalType: "struct TokenInfo[]";
5012
+ readonly components: readonly [{
5013
+ readonly name: "token";
5014
+ readonly type: "bytes32";
5015
+ readonly internalType: "bytes32";
5016
+ }, {
5017
+ readonly name: "amount";
5018
+ readonly type: "uint256";
5019
+ readonly internalType: "uint256";
5020
+ }];
5021
+ }, {
5022
+ readonly name: "output";
5023
+ readonly type: "tuple";
5024
+ readonly internalType: "struct PaymentInfo";
5025
+ readonly components: readonly [{
5026
+ readonly name: "beneficiary";
5027
+ readonly type: "bytes32";
5028
+ readonly internalType: "bytes32";
5029
+ }, {
5030
+ readonly name: "assets";
5031
+ readonly type: "tuple[]";
5032
+ readonly internalType: "struct TokenInfo[]";
5033
+ readonly components: readonly [{
5034
+ readonly name: "token";
5035
+ readonly type: "bytes32";
5036
+ readonly internalType: "bytes32";
5037
+ }, {
5038
+ readonly name: "amount";
5039
+ readonly type: "uint256";
5040
+ readonly internalType: "uint256";
5041
+ }];
5042
+ }, {
5043
+ readonly name: "call";
5044
+ readonly type: "bytes";
5045
+ readonly internalType: "bytes";
5046
+ }];
5047
+ }];
5048
+ }, {
5049
+ readonly name: "options";
5050
+ readonly type: "tuple";
5051
+ readonly internalType: "struct CancelOptions";
5052
+ readonly components: readonly [{
5053
+ readonly name: "relayerFee";
5054
+ readonly type: "uint256";
5055
+ readonly internalType: "uint256";
5056
+ }, {
5057
+ readonly name: "height";
5058
+ readonly type: "uint64";
5059
+ readonly internalType: "uint64";
5060
+ }];
5061
+ }];
5062
+ readonly outputs: readonly [];
5063
+ readonly stateMutability: "payable";
5064
+ }, {
5065
+ readonly type: "function";
5066
+ readonly name: "eip712Domain";
5067
+ readonly inputs: readonly [];
5068
+ readonly outputs: readonly [{
5069
+ readonly name: "fields";
5070
+ readonly type: "bytes1";
5071
+ readonly internalType: "bytes1";
5072
+ }, {
5073
+ readonly name: "name";
5074
+ readonly type: "string";
5075
+ readonly internalType: "string";
5076
+ }, {
5077
+ readonly name: "version";
5078
+ readonly type: "string";
5079
+ readonly internalType: "string";
5080
+ }, {
5081
+ readonly name: "chainId";
5082
+ readonly type: "uint256";
5083
+ readonly internalType: "uint256";
5084
+ }, {
5085
+ readonly name: "verifyingContract";
5086
+ readonly type: "address";
5087
+ readonly internalType: "address";
5088
+ }, {
5089
+ readonly name: "salt";
5090
+ readonly type: "bytes32";
5091
+ readonly internalType: "bytes32";
5092
+ }, {
5093
+ readonly name: "extensions";
5094
+ readonly type: "uint256[]";
5095
+ readonly internalType: "uint256[]";
5096
+ }];
5097
+ readonly stateMutability: "view";
5098
+ }, {
5099
+ readonly type: "function";
5100
+ readonly name: "fillOrder";
5101
+ readonly inputs: readonly [{
5102
+ readonly name: "order";
5103
+ readonly type: "tuple";
5104
+ readonly internalType: "struct Order";
5105
+ readonly components: readonly [{
5106
+ readonly name: "user";
5107
+ readonly type: "bytes32";
5108
+ readonly internalType: "bytes32";
5109
+ }, {
5110
+ readonly name: "source";
5111
+ readonly type: "bytes";
5112
+ readonly internalType: "bytes";
5113
+ }, {
5114
+ readonly name: "destination";
5115
+ readonly type: "bytes";
5116
+ readonly internalType: "bytes";
5117
+ }, {
5118
+ readonly name: "deadline";
5119
+ readonly type: "uint256";
5120
+ readonly internalType: "uint256";
5121
+ }, {
5122
+ readonly name: "nonce";
5123
+ readonly type: "uint256";
5124
+ readonly internalType: "uint256";
5125
+ }, {
5126
+ readonly name: "fees";
5127
+ readonly type: "uint256";
5128
+ readonly internalType: "uint256";
5129
+ }, {
5130
+ readonly name: "session";
5131
+ readonly type: "address";
5132
+ readonly internalType: "address";
5133
+ }, {
5134
+ readonly name: "predispatch";
5135
+ readonly type: "tuple";
5136
+ readonly internalType: "struct DispatchInfo";
5137
+ readonly components: readonly [{
5138
+ readonly name: "assets";
5139
+ readonly type: "tuple[]";
5140
+ readonly internalType: "struct TokenInfo[]";
5141
+ readonly components: readonly [{
5142
+ readonly name: "token";
5143
+ readonly type: "bytes32";
5144
+ readonly internalType: "bytes32";
5145
+ }, {
5146
+ readonly name: "amount";
5147
+ readonly type: "uint256";
5148
+ readonly internalType: "uint256";
5149
+ }];
5150
+ }, {
5151
+ readonly name: "call";
5152
+ readonly type: "bytes";
5153
+ readonly internalType: "bytes";
5154
+ }];
5155
+ }, {
5156
+ readonly name: "inputs";
5157
+ readonly type: "tuple[]";
5158
+ readonly internalType: "struct TokenInfo[]";
5159
+ readonly components: readonly [{
5160
+ readonly name: "token";
5161
+ readonly type: "bytes32";
5162
+ readonly internalType: "bytes32";
5163
+ }, {
5164
+ readonly name: "amount";
5165
+ readonly type: "uint256";
5166
+ readonly internalType: "uint256";
5167
+ }];
5168
+ }, {
5169
+ readonly name: "output";
5170
+ readonly type: "tuple";
5171
+ readonly internalType: "struct PaymentInfo";
5172
+ readonly components: readonly [{
5173
+ readonly name: "beneficiary";
5174
+ readonly type: "bytes32";
5175
+ readonly internalType: "bytes32";
5176
+ }, {
5177
+ readonly name: "assets";
5178
+ readonly type: "tuple[]";
5179
+ readonly internalType: "struct TokenInfo[]";
5180
+ readonly components: readonly [{
5181
+ readonly name: "token";
5182
+ readonly type: "bytes32";
5183
+ readonly internalType: "bytes32";
5184
+ }, {
5185
+ readonly name: "amount";
5186
+ readonly type: "uint256";
5187
+ readonly internalType: "uint256";
5188
+ }];
5189
+ }, {
5190
+ readonly name: "call";
5191
+ readonly type: "bytes";
5192
+ readonly internalType: "bytes";
5193
+ }];
5194
+ }];
5195
+ }, {
5196
+ readonly name: "options";
5197
+ readonly type: "tuple";
5198
+ readonly internalType: "struct FillOptions";
5199
+ readonly components: readonly [{
5200
+ readonly name: "relayerFee";
5201
+ readonly type: "uint256";
5202
+ readonly internalType: "uint256";
5203
+ }, {
5204
+ readonly name: "nativeDispatchFee";
5205
+ readonly type: "uint256";
5206
+ readonly internalType: "uint256";
5207
+ }, {
5208
+ readonly name: "outputs";
5209
+ readonly type: "tuple[]";
5210
+ readonly internalType: "struct TokenInfo[]";
5211
+ readonly components: readonly [{
5212
+ readonly name: "token";
5213
+ readonly type: "bytes32";
5214
+ readonly internalType: "bytes32";
5215
+ }, {
5216
+ readonly name: "amount";
5217
+ readonly type: "uint256";
5218
+ readonly internalType: "uint256";
5219
+ }];
5220
+ }];
5221
+ }];
5222
+ readonly outputs: readonly [];
5223
+ readonly stateMutability: "payable";
5224
+ }, {
5225
+ readonly type: "function";
5226
+ readonly name: "host";
5227
+ readonly inputs: readonly [];
5228
+ readonly outputs: readonly [{
5229
+ readonly name: "";
5230
+ readonly type: "address";
5231
+ readonly internalType: "address";
5232
+ }];
5233
+ readonly stateMutability: "view";
5234
+ }, {
5235
+ readonly type: "function";
5236
+ readonly name: "instance";
5237
+ readonly inputs: readonly [{
5238
+ readonly name: "stateMachineId";
5239
+ readonly type: "bytes";
5240
+ readonly internalType: "bytes";
5241
+ }];
5242
+ readonly outputs: readonly [{
5243
+ readonly name: "";
5244
+ readonly type: "address";
5245
+ readonly internalType: "address";
5246
+ }];
5247
+ readonly stateMutability: "view";
5248
+ }, {
5249
+ readonly type: "function";
5250
+ readonly name: "onAccept";
5251
+ readonly inputs: readonly [{
5252
+ readonly name: "incoming";
5253
+ readonly type: "tuple";
5254
+ readonly internalType: "struct IncomingPostRequest";
5255
+ readonly components: readonly [{
5256
+ readonly name: "request";
5257
+ readonly type: "tuple";
5258
+ readonly internalType: "struct PostRequest";
5259
+ readonly components: readonly [{
5260
+ readonly name: "source";
5261
+ readonly type: "bytes";
5262
+ readonly internalType: "bytes";
5263
+ }, {
5264
+ readonly name: "dest";
5265
+ readonly type: "bytes";
5266
+ readonly internalType: "bytes";
5267
+ }, {
5268
+ readonly name: "nonce";
5269
+ readonly type: "uint64";
5270
+ readonly internalType: "uint64";
5271
+ }, {
5272
+ readonly name: "from";
5273
+ readonly type: "bytes";
5274
+ readonly internalType: "bytes";
5275
+ }, {
5276
+ readonly name: "to";
5277
+ readonly type: "bytes";
5278
+ readonly internalType: "bytes";
5279
+ }, {
5280
+ readonly name: "timeoutTimestamp";
5281
+ readonly type: "uint64";
5282
+ readonly internalType: "uint64";
5283
+ }, {
5284
+ readonly name: "body";
5285
+ readonly type: "bytes";
5286
+ readonly internalType: "bytes";
5287
+ }];
5288
+ }, {
5289
+ readonly name: "relayer";
5290
+ readonly type: "address";
5291
+ readonly internalType: "address";
5292
+ }];
5293
+ }];
5294
+ readonly outputs: readonly [];
5295
+ readonly stateMutability: "nonpayable";
5296
+ }, {
5297
+ readonly type: "function";
5298
+ readonly name: "onGetResponse";
5299
+ readonly inputs: readonly [{
5300
+ readonly name: "incoming";
5301
+ readonly type: "tuple";
5302
+ readonly internalType: "struct IncomingGetResponse";
5303
+ readonly components: readonly [{
5304
+ readonly name: "response";
5305
+ readonly type: "tuple";
5306
+ readonly internalType: "struct GetResponse";
5307
+ readonly components: readonly [{
5308
+ readonly name: "request";
5309
+ readonly type: "tuple";
5310
+ readonly internalType: "struct GetRequest";
5311
+ readonly components: readonly [{
5312
+ readonly name: "source";
5313
+ readonly type: "bytes";
5314
+ readonly internalType: "bytes";
5315
+ }, {
5316
+ readonly name: "dest";
5317
+ readonly type: "bytes";
5318
+ readonly internalType: "bytes";
5319
+ }, {
5320
+ readonly name: "nonce";
5321
+ readonly type: "uint64";
5322
+ readonly internalType: "uint64";
5323
+ }, {
5324
+ readonly name: "from";
5325
+ readonly type: "bytes";
5326
+ readonly internalType: "bytes";
5327
+ }, {
5328
+ readonly name: "timeoutTimestamp";
5329
+ readonly type: "uint64";
5330
+ readonly internalType: "uint64";
5331
+ }, {
5332
+ readonly name: "keys";
5333
+ readonly type: "bytes[]";
5334
+ readonly internalType: "bytes[]";
5335
+ }, {
5336
+ readonly name: "height";
5337
+ readonly type: "uint64";
5338
+ readonly internalType: "uint64";
5339
+ }, {
5340
+ readonly name: "context";
5341
+ readonly type: "bytes";
5342
+ readonly internalType: "bytes";
5343
+ }];
5344
+ }, {
5345
+ readonly name: "values";
5346
+ readonly type: "tuple[]";
5347
+ readonly internalType: "struct StorageValue[]";
5348
+ readonly components: readonly [{
5349
+ readonly name: "key";
5350
+ readonly type: "bytes";
5351
+ readonly internalType: "bytes";
5352
+ }, {
5353
+ readonly name: "value";
5354
+ readonly type: "bytes";
5355
+ readonly internalType: "bytes";
5356
+ }];
5357
+ }];
5358
+ }, {
5359
+ readonly name: "relayer";
5360
+ readonly type: "address";
5361
+ readonly internalType: "address";
5362
+ }];
5363
+ }];
5364
+ readonly outputs: readonly [];
5365
+ readonly stateMutability: "nonpayable";
5366
+ }, {
5367
+ readonly type: "function";
5368
+ readonly name: "onGetTimeout";
5369
+ readonly inputs: readonly [{
5370
+ readonly name: "";
5371
+ readonly type: "tuple";
5372
+ readonly internalType: "struct GetRequestTimeout";
5373
+ readonly components: readonly [{
5374
+ readonly name: "request";
5375
+ readonly type: "tuple";
5376
+ readonly internalType: "struct GetRequest";
5377
+ readonly components: readonly [{
5378
+ readonly name: "source";
5379
+ readonly type: "bytes";
5380
+ readonly internalType: "bytes";
5381
+ }, {
5382
+ readonly name: "dest";
5383
+ readonly type: "bytes";
5384
+ readonly internalType: "bytes";
5385
+ }, {
5386
+ readonly name: "nonce";
5387
+ readonly type: "uint64";
5388
+ readonly internalType: "uint64";
5389
+ }, {
5390
+ readonly name: "from";
5391
+ readonly type: "bytes";
5392
+ readonly internalType: "bytes";
5393
+ }, {
5394
+ readonly name: "timeoutTimestamp";
5395
+ readonly type: "uint64";
5396
+ readonly internalType: "uint64";
5397
+ }, {
5398
+ readonly name: "keys";
5399
+ readonly type: "bytes[]";
5400
+ readonly internalType: "bytes[]";
5401
+ }, {
5402
+ readonly name: "height";
5403
+ readonly type: "uint64";
5404
+ readonly internalType: "uint64";
5405
+ }, {
5406
+ readonly name: "context";
5407
+ readonly type: "bytes";
5408
+ readonly internalType: "bytes";
5409
+ }];
5410
+ }, {
5411
+ readonly name: "relayer";
5412
+ readonly type: "address";
5413
+ readonly internalType: "address";
5414
+ }];
5415
+ }];
5416
+ readonly outputs: readonly [];
5417
+ readonly stateMutability: "nonpayable";
5418
+ }, {
5419
+ readonly type: "function";
5420
+ readonly name: "onPostRequestTimeout";
5421
+ readonly inputs: readonly [{
5422
+ readonly name: "";
5423
+ readonly type: "tuple";
5424
+ readonly internalType: "struct PostRequestTimeout";
5425
+ readonly components: readonly [{
5426
+ readonly name: "request";
5427
+ readonly type: "tuple";
5428
+ readonly internalType: "struct PostRequest";
5429
+ readonly components: readonly [{
5430
+ readonly name: "source";
5431
+ readonly type: "bytes";
5432
+ readonly internalType: "bytes";
5433
+ }, {
5434
+ readonly name: "dest";
5435
+ readonly type: "bytes";
5436
+ readonly internalType: "bytes";
5437
+ }, {
5438
+ readonly name: "nonce";
5439
+ readonly type: "uint64";
5440
+ readonly internalType: "uint64";
5441
+ }, {
5442
+ readonly name: "from";
5443
+ readonly type: "bytes";
5444
+ readonly internalType: "bytes";
5445
+ }, {
5446
+ readonly name: "to";
5447
+ readonly type: "bytes";
5448
+ readonly internalType: "bytes";
5449
+ }, {
5450
+ readonly name: "timeoutTimestamp";
5451
+ readonly type: "uint64";
5452
+ readonly internalType: "uint64";
5453
+ }, {
5454
+ readonly name: "body";
5455
+ readonly type: "bytes";
5456
+ readonly internalType: "bytes";
5457
+ }];
5458
+ }, {
5459
+ readonly name: "relayer";
5460
+ readonly type: "address";
5461
+ readonly internalType: "address";
5462
+ }];
5463
+ }];
5464
+ readonly outputs: readonly [];
5465
+ readonly stateMutability: "nonpayable";
5466
+ }, {
5467
+ readonly type: "function";
5468
+ readonly name: "params";
5469
+ readonly inputs: readonly [];
5470
+ readonly outputs: readonly [{
5471
+ readonly name: "";
5472
+ readonly type: "tuple";
5473
+ readonly internalType: "struct Params";
5474
+ readonly components: readonly [{
5475
+ readonly name: "host";
5476
+ readonly type: "address";
5477
+ readonly internalType: "address";
5478
+ }, {
5479
+ readonly name: "dispatcher";
5480
+ readonly type: "address";
5481
+ readonly internalType: "address";
5482
+ }, {
5483
+ readonly name: "solverSelection";
5484
+ readonly type: "bool";
5485
+ readonly internalType: "bool";
5486
+ }, {
5487
+ readonly name: "surplusShareBps";
5488
+ readonly type: "uint256";
5489
+ readonly internalType: "uint256";
5490
+ }, {
5491
+ readonly name: "protocolFeeBps";
5492
+ readonly type: "uint256";
5493
+ readonly internalType: "uint256";
5494
+ }, {
5495
+ readonly name: "priceOracle";
5496
+ readonly type: "address";
5497
+ readonly internalType: "address";
5498
+ }];
5499
+ }];
5500
+ readonly stateMutability: "view";
5501
+ }, {
5502
+ readonly type: "function";
5503
+ readonly name: "placeOrder";
5504
+ readonly inputs: readonly [{
5505
+ readonly name: "order";
5506
+ readonly type: "tuple";
5507
+ readonly internalType: "struct Order";
5508
+ readonly components: readonly [{
5509
+ readonly name: "user";
5510
+ readonly type: "bytes32";
5511
+ readonly internalType: "bytes32";
5512
+ }, {
5513
+ readonly name: "source";
5514
+ readonly type: "bytes";
5515
+ readonly internalType: "bytes";
5516
+ }, {
5517
+ readonly name: "destination";
5518
+ readonly type: "bytes";
5519
+ readonly internalType: "bytes";
5520
+ }, {
5521
+ readonly name: "deadline";
5522
+ readonly type: "uint256";
5523
+ readonly internalType: "uint256";
5524
+ }, {
5525
+ readonly name: "nonce";
5526
+ readonly type: "uint256";
5527
+ readonly internalType: "uint256";
5528
+ }, {
5529
+ readonly name: "fees";
5530
+ readonly type: "uint256";
5531
+ readonly internalType: "uint256";
5532
+ }, {
5533
+ readonly name: "session";
5534
+ readonly type: "address";
5535
+ readonly internalType: "address";
5536
+ }, {
5537
+ readonly name: "predispatch";
5538
+ readonly type: "tuple";
5539
+ readonly internalType: "struct DispatchInfo";
5540
+ readonly components: readonly [{
5541
+ readonly name: "assets";
5542
+ readonly type: "tuple[]";
5543
+ readonly internalType: "struct TokenInfo[]";
5544
+ readonly components: readonly [{
5545
+ readonly name: "token";
5546
+ readonly type: "bytes32";
5547
+ readonly internalType: "bytes32";
5548
+ }, {
5549
+ readonly name: "amount";
5550
+ readonly type: "uint256";
5551
+ readonly internalType: "uint256";
5552
+ }];
5553
+ }, {
5554
+ readonly name: "call";
5555
+ readonly type: "bytes";
5556
+ readonly internalType: "bytes";
5557
+ }];
5558
+ }, {
5559
+ readonly name: "inputs";
5560
+ readonly type: "tuple[]";
5561
+ readonly internalType: "struct TokenInfo[]";
5562
+ readonly components: readonly [{
5563
+ readonly name: "token";
5564
+ readonly type: "bytes32";
5565
+ readonly internalType: "bytes32";
5566
+ }, {
5567
+ readonly name: "amount";
5568
+ readonly type: "uint256";
5569
+ readonly internalType: "uint256";
5570
+ }];
5571
+ }, {
5572
+ readonly name: "output";
5573
+ readonly type: "tuple";
5574
+ readonly internalType: "struct PaymentInfo";
5575
+ readonly components: readonly [{
5576
+ readonly name: "beneficiary";
5577
+ readonly type: "bytes32";
5578
+ readonly internalType: "bytes32";
5579
+ }, {
5580
+ readonly name: "assets";
5581
+ readonly type: "tuple[]";
5582
+ readonly internalType: "struct TokenInfo[]";
5583
+ readonly components: readonly [{
5584
+ readonly name: "token";
5585
+ readonly type: "bytes32";
5586
+ readonly internalType: "bytes32";
5587
+ }, {
5588
+ readonly name: "amount";
5589
+ readonly type: "uint256";
5590
+ readonly internalType: "uint256";
5591
+ }];
5592
+ }, {
5593
+ readonly name: "call";
5594
+ readonly type: "bytes";
5595
+ readonly internalType: "bytes";
5596
+ }];
5597
+ }];
5598
+ }, {
5599
+ readonly name: "graffiti";
5600
+ readonly type: "bytes32";
5601
+ readonly internalType: "bytes32";
5602
+ }];
5603
+ readonly outputs: readonly [];
5604
+ readonly stateMutability: "payable";
5605
+ }, {
5606
+ readonly type: "function";
5607
+ readonly name: "quote";
5608
+ readonly inputs: readonly [{
5609
+ readonly name: "request";
5610
+ readonly type: "tuple";
5611
+ readonly internalType: "struct DispatchPost";
5612
+ readonly components: readonly [{
5613
+ readonly name: "dest";
5614
+ readonly type: "bytes";
5615
+ readonly internalType: "bytes";
5616
+ }, {
5617
+ readonly name: "to";
5618
+ readonly type: "bytes";
5619
+ readonly internalType: "bytes";
5620
+ }, {
5621
+ readonly name: "body";
5622
+ readonly type: "bytes";
5623
+ readonly internalType: "bytes";
5624
+ }, {
5625
+ readonly name: "timeout";
5626
+ readonly type: "uint64";
5627
+ readonly internalType: "uint64";
5628
+ }, {
5629
+ readonly name: "fee";
5630
+ readonly type: "uint256";
5631
+ readonly internalType: "uint256";
5632
+ }, {
5633
+ readonly name: "payer";
5634
+ readonly type: "address";
5635
+ readonly internalType: "address";
5636
+ }];
5637
+ }];
5638
+ readonly outputs: readonly [{
5639
+ readonly name: "";
5640
+ readonly type: "uint256";
5641
+ readonly internalType: "uint256";
5642
+ }];
5643
+ readonly stateMutability: "view";
5644
+ }, {
5645
+ readonly type: "function";
5646
+ readonly name: "quote";
5647
+ readonly inputs: readonly [{
5648
+ readonly name: "request";
5649
+ readonly type: "tuple";
5650
+ readonly internalType: "struct DispatchGet";
5651
+ readonly components: readonly [{
5652
+ readonly name: "dest";
5653
+ readonly type: "bytes";
5654
+ readonly internalType: "bytes";
5655
+ }, {
5656
+ readonly name: "height";
5657
+ readonly type: "uint64";
5658
+ readonly internalType: "uint64";
5659
+ }, {
5660
+ readonly name: "keys";
5661
+ readonly type: "bytes[]";
5662
+ readonly internalType: "bytes[]";
5663
+ }, {
5664
+ readonly name: "timeout";
5665
+ readonly type: "uint64";
5666
+ readonly internalType: "uint64";
5667
+ }, {
5668
+ readonly name: "fee";
5669
+ readonly type: "uint256";
5670
+ readonly internalType: "uint256";
5671
+ }, {
5672
+ readonly name: "context";
5673
+ readonly type: "bytes";
5674
+ readonly internalType: "bytes";
5675
+ }, {
5676
+ readonly name: "payer";
5677
+ readonly type: "address";
5678
+ readonly internalType: "address";
5679
+ }];
5680
+ }];
5681
+ readonly outputs: readonly [{
5682
+ readonly name: "";
5683
+ readonly type: "uint256";
5684
+ readonly internalType: "uint256";
5685
+ }];
5686
+ readonly stateMutability: "view";
5687
+ }, {
5688
+ readonly type: "function";
5689
+ readonly name: "select";
5690
+ readonly inputs: readonly [{
5691
+ readonly name: "options";
5692
+ readonly type: "tuple";
5693
+ readonly internalType: "struct SelectOptions";
5694
+ readonly components: readonly [{
5695
+ readonly name: "commitment";
5696
+ readonly type: "bytes32";
5697
+ readonly internalType: "bytes32";
5698
+ }, {
5699
+ readonly name: "solver";
5700
+ readonly type: "address";
5701
+ readonly internalType: "address";
5702
+ }, {
5703
+ readonly name: "signature";
5704
+ readonly type: "bytes";
5705
+ readonly internalType: "bytes";
5706
+ }];
5707
+ }];
5708
+ readonly outputs: readonly [{
5709
+ readonly name: "";
5710
+ readonly type: "address";
5711
+ readonly internalType: "address";
5712
+ }];
5713
+ readonly stateMutability: "nonpayable";
5714
+ }, {
5715
+ readonly type: "function";
5716
+ readonly name: "init";
5717
+ readonly inputs: readonly [{
5718
+ readonly name: "p";
5719
+ readonly type: "tuple";
5720
+ readonly internalType: "struct Params";
5721
+ readonly components: readonly [{
5722
+ readonly name: "host";
5723
+ readonly type: "address";
5724
+ readonly internalType: "address";
5725
+ }, {
5726
+ readonly name: "dispatcher";
5727
+ readonly type: "address";
5728
+ readonly internalType: "address";
5729
+ }, {
5730
+ readonly name: "solverSelection";
5731
+ readonly type: "bool";
5732
+ readonly internalType: "bool";
5733
+ }, {
5734
+ readonly name: "surplusShareBps";
5735
+ readonly type: "uint256";
5736
+ readonly internalType: "uint256";
5737
+ }, {
5738
+ readonly name: "protocolFeeBps";
5739
+ readonly type: "uint256";
5740
+ readonly internalType: "uint256";
5741
+ }, {
5742
+ readonly name: "priceOracle";
5743
+ readonly type: "address";
5744
+ readonly internalType: "address";
5745
+ }];
5746
+ }, {
5747
+ readonly name: "deployments";
5748
+ readonly type: "tuple[]";
5749
+ readonly internalType: "struct Deployment[]";
5750
+ readonly components: readonly [{
5751
+ readonly name: "chain";
5752
+ readonly type: "bytes";
5753
+ readonly internalType: "bytes";
5754
+ }, {
5755
+ readonly name: "gateway";
5756
+ readonly type: "address";
5757
+ readonly internalType: "address";
5758
+ }];
5759
+ }];
5760
+ readonly outputs: readonly [];
5761
+ readonly stateMutability: "nonpayable";
5762
+ }, {
5763
+ readonly type: "event";
5764
+ readonly name: "DestinationProtocolFeeUpdated";
5765
+ readonly inputs: readonly [{
5766
+ readonly name: "chain";
5767
+ readonly type: "string";
5768
+ readonly indexed: false;
5769
+ readonly internalType: "string";
5770
+ }, {
5771
+ readonly name: "feeBps";
5772
+ readonly type: "uint256";
5773
+ readonly indexed: false;
5774
+ readonly internalType: "uint256";
5775
+ }];
5776
+ readonly anonymous: false;
5777
+ }, {
5778
+ readonly type: "event";
5779
+ readonly name: "DustCollected";
5780
+ readonly inputs: readonly [{
5781
+ readonly name: "token";
5782
+ readonly type: "address";
5783
+ readonly indexed: false;
5784
+ readonly internalType: "address";
5785
+ }, {
5786
+ readonly name: "amount";
5787
+ readonly type: "uint256";
5788
+ readonly indexed: false;
5789
+ readonly internalType: "uint256";
5790
+ }];
5791
+ readonly anonymous: false;
5792
+ }, {
5793
+ readonly type: "event";
5794
+ readonly name: "DustSwept";
5795
+ readonly inputs: readonly [{
5796
+ readonly name: "token";
5797
+ readonly type: "address";
5798
+ readonly indexed: false;
5799
+ readonly internalType: "address";
5800
+ }, {
5801
+ readonly name: "amount";
5802
+ readonly type: "uint256";
5803
+ readonly indexed: false;
5804
+ readonly internalType: "uint256";
5805
+ }, {
5806
+ readonly name: "beneficiary";
5807
+ readonly type: "address";
5808
+ readonly indexed: false;
5809
+ readonly internalType: "address";
5810
+ }];
5811
+ readonly anonymous: false;
5812
+ }, {
5813
+ readonly type: "event";
5814
+ readonly name: "EIP712DomainChanged";
5815
+ readonly inputs: readonly [];
5816
+ readonly anonymous: false;
5817
+ }, {
5818
+ readonly type: "event";
5819
+ readonly name: "EscrowRefunded";
5820
+ readonly inputs: readonly [{
5821
+ readonly name: "commitment";
5822
+ readonly type: "bytes32";
5823
+ readonly indexed: true;
5824
+ readonly internalType: "bytes32";
5825
+ }, {
5826
+ readonly name: "tokens";
5827
+ readonly type: "tuple[]";
5828
+ readonly indexed: false;
5829
+ readonly internalType: "struct TokenInfo[]";
5830
+ readonly components: readonly [{
5831
+ readonly name: "token";
5832
+ readonly type: "bytes32";
5833
+ readonly internalType: "bytes32";
5834
+ }, {
5835
+ readonly name: "amount";
5836
+ readonly type: "uint256";
5837
+ readonly internalType: "uint256";
5838
+ }];
5839
+ }];
5840
+ readonly anonymous: false;
5841
+ }, {
5842
+ readonly type: "event";
5843
+ readonly name: "EscrowReleased";
5844
+ readonly inputs: readonly [{
5845
+ readonly name: "commitment";
5846
+ readonly type: "bytes32";
5847
+ readonly indexed: true;
5848
+ readonly internalType: "bytes32";
5849
+ }, {
5850
+ readonly name: "tokens";
5851
+ readonly type: "tuple[]";
5852
+ readonly indexed: false;
5853
+ readonly internalType: "struct TokenInfo[]";
5854
+ readonly components: readonly [{
5855
+ readonly name: "token";
5856
+ readonly type: "bytes32";
5857
+ readonly internalType: "bytes32";
5858
+ }, {
5859
+ readonly name: "amount";
5860
+ readonly type: "uint256";
5861
+ readonly internalType: "uint256";
5862
+ }];
5863
+ }];
5864
+ readonly anonymous: false;
5865
+ }, {
5866
+ readonly type: "event";
5867
+ readonly name: "DeploymentAdded";
5868
+ readonly inputs: readonly [{
5869
+ readonly name: "chain";
5870
+ readonly type: "string";
5871
+ readonly indexed: false;
5872
+ readonly internalType: "string";
5873
+ }, {
5874
+ readonly name: "gateway";
5875
+ readonly type: "address";
5876
+ readonly indexed: false;
5877
+ readonly internalType: "address";
5878
+ }];
5879
+ readonly anonymous: false;
5880
+ }, {
5881
+ readonly type: "event";
5882
+ readonly name: "OrderFilled";
5883
+ readonly inputs: readonly [{
5884
+ readonly name: "commitment";
5885
+ readonly type: "bytes32";
5886
+ readonly indexed: true;
5887
+ readonly internalType: "bytes32";
5888
+ }, {
5889
+ readonly name: "filler";
5890
+ readonly type: "address";
5891
+ readonly indexed: false;
5892
+ readonly internalType: "address";
5893
+ }, {
5894
+ readonly name: "outputs";
5895
+ readonly type: "tuple[]";
5896
+ readonly indexed: false;
5897
+ readonly internalType: "struct TokenInfo[]";
5898
+ readonly components: readonly [{
5899
+ readonly name: "token";
5900
+ readonly type: "bytes32";
5901
+ readonly internalType: "bytes32";
5902
+ }, {
5903
+ readonly name: "amount";
5904
+ readonly type: "uint256";
5905
+ readonly internalType: "uint256";
5906
+ }];
5907
+ }, {
5908
+ readonly name: "inputs";
5909
+ readonly type: "tuple[]";
5910
+ readonly indexed: false;
5911
+ readonly internalType: "struct TokenInfo[]";
5912
+ readonly components: readonly [{
5913
+ readonly name: "token";
5914
+ readonly type: "bytes32";
5915
+ readonly internalType: "bytes32";
5916
+ }, {
5917
+ readonly name: "amount";
5918
+ readonly type: "uint256";
5919
+ readonly internalType: "uint256";
5920
+ }];
5921
+ }];
5922
+ readonly anonymous: false;
5923
+ }, {
5924
+ readonly type: "event";
5925
+ readonly name: "OrderPlaced";
5926
+ readonly inputs: readonly [{
5927
+ readonly name: "user";
5928
+ readonly type: "bytes32";
5929
+ readonly indexed: false;
5930
+ readonly internalType: "bytes32";
5931
+ }, {
5932
+ readonly name: "source";
5933
+ readonly type: "string";
5934
+ readonly indexed: false;
5935
+ readonly internalType: "string";
5936
+ }, {
5937
+ readonly name: "destination";
5938
+ readonly type: "string";
5939
+ readonly indexed: false;
5940
+ readonly internalType: "string";
5941
+ }, {
5942
+ readonly name: "deadline";
5943
+ readonly type: "uint256";
5944
+ readonly indexed: false;
5945
+ readonly internalType: "uint256";
5946
+ }, {
5947
+ readonly name: "nonce";
5948
+ readonly type: "uint256";
5949
+ readonly indexed: false;
5950
+ readonly internalType: "uint256";
5951
+ }, {
5952
+ readonly name: "fees";
5953
+ readonly type: "uint256";
5954
+ readonly indexed: false;
5955
+ readonly internalType: "uint256";
5956
+ }, {
5957
+ readonly name: "session";
5958
+ readonly type: "address";
5959
+ readonly indexed: false;
5960
+ readonly internalType: "address";
5961
+ }, {
5962
+ readonly name: "beneficiary";
5963
+ readonly type: "bytes32";
5964
+ readonly indexed: false;
5965
+ readonly internalType: "bytes32";
5966
+ }, {
5967
+ readonly name: "predispatch";
5968
+ readonly type: "tuple[]";
5969
+ readonly indexed: false;
5970
+ readonly internalType: "struct TokenInfo[]";
5971
+ readonly components: readonly [{
5972
+ readonly name: "token";
5973
+ readonly type: "bytes32";
5974
+ readonly internalType: "bytes32";
5975
+ }, {
5976
+ readonly name: "amount";
5977
+ readonly type: "uint256";
5978
+ readonly internalType: "uint256";
5979
+ }];
5980
+ }, {
5981
+ readonly name: "inputs";
5982
+ readonly type: "tuple[]";
5983
+ readonly indexed: false;
5984
+ readonly internalType: "struct TokenInfo[]";
5985
+ readonly components: readonly [{
5986
+ readonly name: "token";
5987
+ readonly type: "bytes32";
5988
+ readonly internalType: "bytes32";
5989
+ }, {
5990
+ readonly name: "amount";
5991
+ readonly type: "uint256";
5992
+ readonly internalType: "uint256";
5993
+ }];
5994
+ }, {
5995
+ readonly name: "outputs";
5996
+ readonly type: "tuple[]";
5997
+ readonly indexed: false;
5998
+ readonly internalType: "struct TokenInfo[]";
5999
+ readonly components: readonly [{
6000
+ readonly name: "token";
6001
+ readonly type: "bytes32";
6002
+ readonly internalType: "bytes32";
6003
+ }, {
6004
+ readonly name: "amount";
6005
+ readonly type: "uint256";
6006
+ readonly internalType: "uint256";
6007
+ }];
6008
+ }, {
6009
+ readonly name: "predispatchCall";
6010
+ readonly type: "bytes";
6011
+ readonly indexed: false;
6012
+ readonly internalType: "bytes";
6013
+ }, {
6014
+ readonly name: "outputCall";
6015
+ readonly type: "bytes";
6016
+ readonly indexed: false;
6017
+ readonly internalType: "bytes";
6018
+ }, {
6019
+ readonly name: "graffiti";
6020
+ readonly type: "bytes32";
6021
+ readonly indexed: false;
6022
+ readonly internalType: "bytes32";
6023
+ }];
6024
+ readonly anonymous: false;
6025
+ }, {
6026
+ readonly type: "event";
6027
+ readonly name: "ParamsUpdated";
6028
+ readonly inputs: readonly [{
6029
+ readonly name: "previous";
6030
+ readonly type: "tuple";
6031
+ readonly indexed: false;
6032
+ readonly internalType: "struct Params";
6033
+ readonly components: readonly [{
6034
+ readonly name: "host";
6035
+ readonly type: "address";
6036
+ readonly internalType: "address";
6037
+ }, {
6038
+ readonly name: "dispatcher";
6039
+ readonly type: "address";
6040
+ readonly internalType: "address";
6041
+ }, {
6042
+ readonly name: "solverSelection";
6043
+ readonly type: "bool";
6044
+ readonly internalType: "bool";
6045
+ }, {
6046
+ readonly name: "surplusShareBps";
6047
+ readonly type: "uint256";
6048
+ readonly internalType: "uint256";
6049
+ }, {
6050
+ readonly name: "protocolFeeBps";
6051
+ readonly type: "uint256";
6052
+ readonly internalType: "uint256";
6053
+ }, {
6054
+ readonly name: "priceOracle";
6055
+ readonly type: "address";
6056
+ readonly internalType: "address";
6057
+ }];
6058
+ }, {
6059
+ readonly name: "current";
6060
+ readonly type: "tuple";
6061
+ readonly indexed: false;
6062
+ readonly internalType: "struct Params";
6063
+ readonly components: readonly [{
6064
+ readonly name: "host";
6065
+ readonly type: "address";
6066
+ readonly internalType: "address";
6067
+ }, {
6068
+ readonly name: "dispatcher";
6069
+ readonly type: "address";
6070
+ readonly internalType: "address";
6071
+ }, {
6072
+ readonly name: "solverSelection";
6073
+ readonly type: "bool";
6074
+ readonly internalType: "bool";
6075
+ }, {
6076
+ readonly name: "surplusShareBps";
6077
+ readonly type: "uint256";
6078
+ readonly internalType: "uint256";
6079
+ }, {
6080
+ readonly name: "protocolFeeBps";
6081
+ readonly type: "uint256";
6082
+ readonly internalType: "uint256";
6083
+ }, {
6084
+ readonly name: "priceOracle";
6085
+ readonly type: "address";
6086
+ readonly internalType: "address";
6087
+ }];
6088
+ }];
6089
+ readonly anonymous: false;
6090
+ }, {
6091
+ readonly type: "event";
6092
+ readonly name: "PartialFill";
6093
+ readonly inputs: readonly [{
6094
+ readonly name: "commitment";
6095
+ readonly type: "bytes32";
6096
+ readonly indexed: true;
6097
+ readonly internalType: "bytes32";
6098
+ }, {
6099
+ readonly name: "filler";
6100
+ readonly type: "address";
6101
+ readonly indexed: false;
6102
+ readonly internalType: "address";
6103
+ }, {
6104
+ readonly name: "outputs";
6105
+ readonly type: "tuple[]";
6106
+ readonly indexed: false;
6107
+ readonly internalType: "struct TokenInfo[]";
6108
+ readonly components: readonly [{
6109
+ readonly name: "token";
6110
+ readonly type: "bytes32";
6111
+ readonly internalType: "bytes32";
6112
+ }, {
6113
+ readonly name: "amount";
6114
+ readonly type: "uint256";
6115
+ readonly internalType: "uint256";
6116
+ }];
6117
+ }, {
6118
+ readonly name: "inputs";
6119
+ readonly type: "tuple[]";
6120
+ readonly indexed: false;
6121
+ readonly internalType: "struct TokenInfo[]";
6122
+ readonly components: readonly [{
6123
+ readonly name: "token";
6124
+ readonly type: "bytes32";
6125
+ readonly internalType: "bytes32";
6126
+ }, {
6127
+ readonly name: "amount";
6128
+ readonly type: "uint256";
6129
+ readonly internalType: "uint256";
6130
+ }];
6131
+ }];
6132
+ readonly anonymous: false;
6133
+ }, {
6134
+ readonly type: "error";
6135
+ readonly name: "Cancelled";
6136
+ readonly inputs: readonly [];
6137
+ }, {
6138
+ readonly type: "error";
6139
+ readonly name: "UnknownInstance";
6140
+ readonly inputs: readonly [];
6141
+ }, {
6142
+ readonly type: "error";
6143
+ readonly name: "ECDSAInvalidSignature";
6144
+ readonly inputs: readonly [];
6145
+ }, {
6146
+ readonly type: "error";
6147
+ readonly name: "ECDSAInvalidSignatureLength";
6148
+ readonly inputs: readonly [{
6149
+ readonly name: "length";
6150
+ readonly type: "uint256";
6151
+ readonly internalType: "uint256";
6152
+ }];
6153
+ }, {
6154
+ readonly type: "error";
6155
+ readonly name: "ECDSAInvalidSignatureS";
6156
+ readonly inputs: readonly [{
6157
+ readonly name: "s";
6158
+ readonly type: "bytes32";
6159
+ readonly internalType: "bytes32";
6160
+ }];
6161
+ }, {
6162
+ readonly type: "error";
6163
+ readonly name: "Expired";
6164
+ readonly inputs: readonly [];
6165
+ }, {
6166
+ readonly type: "error";
6167
+ readonly name: "Filled";
6168
+ readonly inputs: readonly [];
6169
+ }, {
6170
+ readonly type: "error";
6171
+ readonly name: "InsufficientNativeToken";
6172
+ readonly inputs: readonly [];
6173
+ }, {
6174
+ readonly type: "error";
6175
+ readonly name: "InvalidInput";
6176
+ readonly inputs: readonly [];
6177
+ }, {
6178
+ readonly type: "error";
6179
+ readonly name: "InvalidShortString";
6180
+ readonly inputs: readonly [];
6181
+ }, {
6182
+ readonly type: "error";
6183
+ readonly name: "NotExpired";
6184
+ readonly inputs: readonly [];
6185
+ }, {
6186
+ readonly type: "error";
6187
+ readonly name: "SafeERC20FailedOperation";
6188
+ readonly inputs: readonly [{
6189
+ readonly name: "token";
6190
+ readonly type: "address";
6191
+ readonly internalType: "address";
6192
+ }];
6193
+ }, {
6194
+ readonly type: "error";
6195
+ readonly name: "StringTooLong";
6196
+ readonly inputs: readonly [{
6197
+ readonly name: "str";
6198
+ readonly type: "string";
6199
+ readonly internalType: "string";
6200
+ }];
6201
+ }, {
6202
+ readonly type: "error";
6203
+ readonly name: "Unauthorized";
6204
+ readonly inputs: readonly [];
6205
+ }, {
6206
+ readonly type: "error";
6207
+ readonly name: "UnauthorizedCall";
6208
+ readonly inputs: readonly [];
6209
+ }, {
6210
+ readonly type: "error";
6211
+ readonly name: "UnexpectedCall";
6212
+ readonly inputs: readonly [];
6213
+ }, {
6214
+ readonly type: "error";
6215
+ readonly name: "UnknownOrder";
6216
+ readonly inputs: readonly [];
6217
+ }, {
6218
+ readonly type: "error";
6219
+ readonly name: "WrongChain";
6220
+ readonly inputs: readonly [];
6221
+ }];
6222
+ declare const _default: {
6223
+ ABI: readonly [{
6224
+ readonly type: "constructor";
6225
+ readonly inputs: readonly [{
6226
+ readonly name: "admin";
6227
+ readonly type: "address";
6228
+ readonly internalType: "address";
6229
+ }];
6230
+ readonly stateMutability: "nonpayable";
6231
+ }, {
6232
+ readonly type: "receive";
6233
+ readonly stateMutability: "payable";
6234
+ }, {
6235
+ readonly type: "function";
6236
+ readonly name: "DOMAIN_SEPARATOR";
6237
+ readonly inputs: readonly [];
6238
+ readonly outputs: readonly [{
6239
+ readonly name: "";
6240
+ readonly type: "bytes32";
6241
+ readonly internalType: "bytes32";
6242
+ }];
6243
+ readonly stateMutability: "view";
6244
+ }, {
6245
+ readonly type: "function";
6246
+ readonly name: "SELECT_SOLVER_TYPEHASH";
6247
+ readonly inputs: readonly [];
6248
+ readonly outputs: readonly [{
6249
+ readonly name: "";
6250
+ readonly type: "bytes32";
6251
+ readonly internalType: "bytes32";
6252
+ }];
6253
+ readonly stateMutability: "view";
4568
6254
  }, {
4569
6255
  readonly type: "function";
4570
6256
  readonly name: "_destinationProtocolFees";
@@ -5724,6 +7410,21 @@ declare const _default: {
5724
7410
  readonly type: "uint256";
5725
7411
  readonly internalType: "uint256";
5726
7412
  }];
7413
+ }, {
7414
+ readonly name: "predispatchCall";
7415
+ readonly type: "bytes";
7416
+ readonly indexed: false;
7417
+ readonly internalType: "bytes";
7418
+ }, {
7419
+ readonly name: "outputCall";
7420
+ readonly type: "bytes";
7421
+ readonly indexed: false;
7422
+ readonly internalType: "bytes";
7423
+ }, {
7424
+ readonly name: "graffiti";
7425
+ readonly type: "bytes32";
7426
+ readonly indexed: false;
7427
+ readonly internalType: "bytes32";
5727
7428
  }];
5728
7429
  readonly anonymous: false;
5729
7430
  }, {
@@ -5925,4 +7626,4 @@ declare const _default: {
5925
7626
  }];
5926
7627
  };
5927
7628
 
5928
- export { type BidStorageEntry as $, type AssetTeleported as A, type Bid as B, ChainConfigService as C, type EstimateFillOrderParams as D, type EstimateGasCallData as E, type FillerBid as F, type GetRequestWithStatus as G, type HexString as H, type IChain as I, type FillOrderEstimate as J, type OrderFeesQuote as K, type ERC7821Call as L, type OrderWithStatus as M, OrderStatus as N, type Order as O, type PostRequestWithStatus as P, type TokenGatewayAssetTeleportedWithStatus as Q, type RetryConfig as R, type StateMachineIdParams as S, type Transaction as T, TeleportStatus as U, type DecodedOrderPlacedLog as V, type DecodedPostRequestEvent as W, type DecodedPostResponseEvent as X, type AllStatusKey as Y, type AssetTeleportedResponse as Z, type AvailableLiquidityByChain as _, type IEvmConfig as a, type TokenPricesResponse as a$, type BidSubmissionResult as a0, type BlockMetadata as a1, type BytesLikeHex as a2, type CancelOptions as a3, type ChainConfig as a4, type ChainConfigData as a5, Chains as a6, type ConfiguredAssetSymbol as a7, type Deployment as a8, type DispatchGet as a9, IntentOrderStatus as aA, type IntentOrderStatusKey as aB, type IsmpRequest as aC, type OrderResponse as aD, type OrderStatusMetadata as aE, type PaymentInfo as aF, type PhantomOrderEvent as aG, type PhantomOrderPriceSnapshot as aH, type PhantomOrderPriceSnapshotsResponse as aI, type PollPhantomOrdersOptions as aJ, type PostRequestStatus as aK, type RequestBody as aL, type RequestCommitment as aM, RequestKind as aN, type RequestResponse as aO, RequestStatus as aP, type RequestStatusKey as aQ, type SelectOptions as aR, type SigningAccount as aS, type StateMachineId as aT, type StateMachineResponse as aU, type StorageFacade as aV, TimeoutStatus as aW, type TimeoutStatusKey as aX, type TokenGatewayAssetTeleportedResponse as aY, type TokenInfo as aZ, type TokenPrice as a_, type DispatchInfo as aa, type DispatchPost as ab, type Erc4626VaultConfigData as ac, type ExecuteIntentOrderOptions as ad, type ExecutionResult as ae, type FillOptions as af, type FillerConfig as ag, type GetRequestResponse as ah, type GetResponseByRequestIdResponse as ai, type GetResponseStorageValues as aj, type HostParams as ak, HyperClientStatus as al, type IBatchConsensusAndGetResponseMessage as am, type IBatchConsensusAndPostRequestMessage as an, type IConfig as ao, type IConsensusMessage as ap, type IGetRequestMessage as aq, type IGetResponse as ar, type IGetResponseMessage as as, type IHyperbridgeConfig as at, type IPostResponse as au, type IRequestMessage as av, type ISubstrateConfig as aw, type ITimeoutPostRequestMessage as ax, ABI as ay, type IntentGatewayParams as az, type IMessage as b, type UniswapV4PoolConfigData as b0, chainConfigs as b1, convertCodecToIGetRequest as b2, convertCodecToIProof as b3, convertIGetRequestToCodec as b4, convertIProofToCodec as b5, convertStateIdToStateMachineId as b6, convertStateMachineEnumToString as b7, convertStateMachineIdToEnum as b8, decodeERC7821ExecuteBatch as b9, decodeUserOpScale as ba, encodeERC7821ExecuteBatch as bb, encodeISMPMessage as bc, encodeUserOpScale as bd, getChainId as be, getConfigByStateMachineId as bf, getViemChain as bg, hyperbridgeAddress as bh, pharosAtlantic as bi, pharosMainnet as bj, polkadotAssetHubPaseo as bk, polkadotHubMainnet as bl, tronChainIds as bm, tronNile as bn, _default as bo, type StateMachineHeight as c, type IIsmpMessage as d, type IPostRequest as e, type IGetRequest as f, type IPolkadotHubConfig as g, type IPharosConfig as h, type StateMachineUpdate as i, type ResponseCommitmentWithValues as j, type RequestStatusWithMetadata as k, type PostRequestTimeoutStatus as l, SubstrateChain as m, type ClientConfig as n, type IndexerQueryClient as o, type IProof as p, type IEvmChain as q, IntentsCoprocessor as r, type AvailableLiquiditySnapshot as s, type IntentOrderStatusUpdate as t, type SelectBidResult as u, type ResumeIntentOrderOptions as v, type CancelOrderOptions as w, type CancelQuote as x, type SubmitBidOptions as y, type PackedUserOperation as z };
7629
+ export { type BidStorageEntry as $, type AssetTeleported as A, type Bid as B, ChainConfigService as C, type EstimateFillOrderParams as D, type EstimateGasCallData as E, type FillerBid as F, type GetRequestWithStatus as G, type HexString$1 as H, type IChain as I, type FillOrderEstimate as J, type OrderFeesQuote as K, type ERC7821Call as L, type OrderWithStatus as M, OrderStatus as N, type Order as O, type PostRequestWithStatus as P, type TokenGatewayAssetTeleportedWithStatus as Q, type RetryConfig as R, type StateMachineIdParams as S, type Transaction as T, TeleportStatus as U, type DecodedOrderPlacedLog as V, type DecodedPostRequestEvent as W, type DecodedPostResponseEvent as X, type AllStatusKey as Y, type AssetTeleportedResponse as Z, type AvailableLiquidityByChain as _, type IEvmConfig as a, type TokenPrice as a$, type BidSubmissionResult as a0, type BlockMetadata as a1, type BytesLikeHex as a2, type CancelOptions as a3, type ChainConfig as a4, type ChainConfigData as a5, Chains as a6, type ConfiguredAssetSymbol as a7, type Deployment as a8, type DispatchGet as a9, IntentOrderStatus as aA, type IntentOrderStatusKey as aB, type IsmpRequest as aC, type OrderResponse as aD, type OrderStatusMetadata as aE, type PaymentInfo as aF, type PhantomOrderEvent as aG, type PhantomOrderLeg as aH, type PhantomOrderPriceSnapshot as aI, type PhantomOrderPriceSnapshotsResponse as aJ, type PollPhantomOrdersOptions as aK, type PostRequestStatus as aL, type RequestBody as aM, type RequestCommitment as aN, RequestKind as aO, type RequestResponse as aP, RequestStatus as aQ, type RequestStatusKey as aR, type SelectOptions as aS, type SigningAccount as aT, type StateMachineId as aU, type StateMachineResponse as aV, type StorageFacade as aW, TimeoutStatus as aX, type TimeoutStatusKey as aY, type TokenGatewayAssetTeleportedResponse as aZ, type TokenInfo as a_, type DispatchInfo as aa, type DispatchPost as ab, type Erc4626VaultConfigData as ac, type ExecuteIntentOrderOptions as ad, type ExecutionResult as ae, type FillOptions as af, type FillerConfig as ag, type GetRequestResponse as ah, type GetResponseByRequestIdResponse as ai, type GetResponseStorageValues as aj, type HostParams as ak, HyperClientStatus as al, type IBatchConsensusAndGetResponseMessage as am, type IBatchConsensusAndPostRequestMessage as an, type IConfig as ao, type IConsensusMessage as ap, type IGetRequestMessage as aq, type IGetResponse as ar, type IGetResponseMessage as as, type IHyperbridgeConfig as at, type IPostResponse as au, type IRequestMessage as av, type ISubstrateConfig as aw, type ITimeoutPostRequestMessage as ax, ABI as ay, type IntentGatewayParams as az, type IMessage as b, type TokenPricesResponse as b0, type UniswapV4PoolConfigData as b1, chainConfigs as b2, convertCodecToIGetRequest as b3, convertCodecToIProof as b4, convertIGetRequestToCodec as b5, convertIProofToCodec as b6, convertStateIdToStateMachineId as b7, convertStateMachineEnumToString as b8, convertStateMachineIdToEnum as b9, type LpBalance as bA, type OrderCommitmentFn as bB, type PhantomAggregation as bC, type PhantomLegAggregation as bD, type PhantomLegBidder as bE, type RecoverBidSigner as bF, type RpcBidInfo as bG, type SolverBalanceReader as bH, type YieldVaultMap as bI, aggregatePhantomBids as bJ, extractFillData as bK, fetchBidsForOrder as bL, memoizedSolverBalance as bM, orderCommitmentFromDecoded as bN, recoverBidSignerViem as bO, setAggregationFetch as bP, splitBidSignature as bQ, weightedMedian as bR, zipFillLegs as bS, decodeAcceptedSourceChains as ba, decodeERC7821ExecuteBatch as bb, decodeUserOpScale as bc, encodeAcceptedSourceChains as bd, encodeERC7821ExecuteBatch as be, encodeISMPMessage as bf, encodeUserOpScale as bg, getChainId as bh, getConfigByStateMachineId as bi, getViemChain as bj, hyperbridgeAddress as bk, pharosAtlantic as bl, pharosMainnet as bm, polkadotAssetHubPaseo as bn, polkadotHubMainnet as bo, tronChainIds as bp, tronNile as bq, type AggregationLogger as br, type BidNonceKeyFn as bs, type BidSignature as bt, ENTRY_POINT_V08_ADDRESS as bu, FILL_ORDER_ABI as bv, type FetchLike as bw, type FillData as bx, type HexString as by, _default as bz, type StateMachineHeight as c, type IIsmpMessage as d, type IPostRequest as e, type IGetRequest as f, type IPolkadotHubConfig as g, type IPharosConfig as h, type StateMachineUpdate as i, type ResponseCommitmentWithValues as j, type RequestStatusWithMetadata as k, type PostRequestTimeoutStatus as l, SubstrateChain as m, type ClientConfig as n, type IndexerQueryClient as o, type IProof as p, type IEvmChain as q, IntentsCoprocessor as r, type AvailableLiquiditySnapshot as s, type IntentOrderStatusUpdate as t, type SelectBidResult as u, type ResumeIntentOrderOptions as v, type CancelOrderOptions as w, type CancelQuote as x, type SubmitBidOptions as y, type PackedUserOperation as z };