@hyperbridge/sdk 2.7.2 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.d.ts +463 -405
- package/dist/browser/index.js +67 -8
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +67 -6
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +3 -3
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.js +67 -8
- package/dist/node/index.js.map +1 -1
- package/dist/node/{IntentGatewayV2-MxUcNZNs.d.cts → intents-helpers-gyGREuyu.d.cts} +1868 -235
- package/dist/node/{IntentGatewayV2-MxUcNZNs.d.ts → intents-helpers-gyGREuyu.d.ts} +1868 -235
- package/dist/node/intents-helpers.cjs +113 -19
- package/dist/node/intents-helpers.cjs.map +1 -1
- package/dist/node/intents-helpers.d.cts +3 -1506
- package/dist/node/intents-helpers.d.ts +3 -1506
- package/dist/node/intents-helpers.js +111 -21
- package/dist/node/intents-helpers.js.map +1 -1
- package/package.json +1 -1
|
@@ -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 [{
|
|
@@ -996,44 +996,44 @@ declare class ChainConfigService {
|
|
|
996
996
|
constructor(env?: NodeJS.ProcessEnv);
|
|
997
997
|
private getConfig;
|
|
998
998
|
getChainConfig(chain: string): ChainConfig;
|
|
999
|
-
getIntentGatewayAddress(chain: string): HexString;
|
|
1000
|
-
getTokenGatewayAddress(chain: string): HexString;
|
|
1001
|
-
getHostAddress(chain: string): HexString;
|
|
999
|
+
getIntentGatewayAddress(chain: string): HexString$1;
|
|
1000
|
+
getTokenGatewayAddress(chain: string): HexString$1;
|
|
1001
|
+
getHostAddress(chain: string): HexString$1;
|
|
1002
1002
|
getWrappedNativeAssetWithDecimals(chain: string): {
|
|
1003
|
-
asset: HexString;
|
|
1003
|
+
asset: HexString$1;
|
|
1004
1004
|
decimals: number;
|
|
1005
1005
|
};
|
|
1006
|
-
getDaiAsset(chain: string): HexString;
|
|
1007
|
-
getAssetAddress(chain: string, symbol: ConfiguredAssetSymbol): HexString | undefined;
|
|
1006
|
+
getDaiAsset(chain: string): HexString$1;
|
|
1007
|
+
getAssetAddress(chain: string, symbol: ConfiguredAssetSymbol): HexString$1 | undefined;
|
|
1008
1008
|
/**
|
|
1009
1009
|
* Resolves configured token metadata from an address on a specific chain.
|
|
1010
1010
|
* This is used by SDK helpers that accept token addresses rather than caller-
|
|
1011
1011
|
* supplied symbols or decimals.
|
|
1012
1012
|
*/
|
|
1013
|
-
getAssetMetadataByAddress(chain: string, address: HexString): {
|
|
1013
|
+
getAssetMetadataByAddress(chain: string, address: HexString$1): {
|
|
1014
1014
|
symbol: ConfiguredAssetSymbol;
|
|
1015
|
-
address: HexString;
|
|
1015
|
+
address: HexString$1;
|
|
1016
1016
|
decimals?: number;
|
|
1017
1017
|
} | undefined;
|
|
1018
|
-
getUsdtAsset(chain: string): HexString;
|
|
1019
|
-
getUsdcAsset(chain: string): HexString;
|
|
1018
|
+
getUsdtAsset(chain: string): HexString$1;
|
|
1019
|
+
getUsdcAsset(chain: string): HexString$1;
|
|
1020
1020
|
getUsdcDecimals(chain: string): number;
|
|
1021
1021
|
getUsdtDecimals(chain: string): number;
|
|
1022
|
-
getCNgnAsset(chain: string): HexString | undefined;
|
|
1022
|
+
getCNgnAsset(chain: string): HexString$1 | undefined;
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Address of `symbol` on `chain` from the per-chain asset table, matched
|
|
1025
1025
|
* case-insensitively ("cNGN" ≡ "CNGN"). This table is the single source of
|
|
1026
1026
|
* truth for token addresses — the simplex asset registry resolves through
|
|
1027
1027
|
* it, so a new asset is added once in `chain.ts` and nowhere else.
|
|
1028
1028
|
*/
|
|
1029
|
-
getAssetBySymbol(chain: string, symbol: string): HexString | undefined;
|
|
1029
|
+
getAssetBySymbol(chain: string, symbol: string): HexString$1 | undefined;
|
|
1030
1030
|
getCNgnDecimals(chain: string): number | undefined;
|
|
1031
|
-
getExtAsset(chain: string): HexString | undefined;
|
|
1031
|
+
getExtAsset(chain: string): HexString$1 | undefined;
|
|
1032
1032
|
getExtDecimals(chain: string): number | undefined;
|
|
1033
1033
|
/** Configured exotic (non-USD) tokens on a chain, for selection UIs. EXT is a test asset and is not offered. */
|
|
1034
1034
|
getKnownExoticTokens(chain: string): Array<{
|
|
1035
1035
|
symbol: string;
|
|
1036
|
-
address: HexString;
|
|
1036
|
+
address: HexString$1;
|
|
1037
1037
|
decimals?: number;
|
|
1038
1038
|
}>;
|
|
1039
1039
|
/** Known ERC-4626 treasury vaults on a chain, for selection UIs. */
|
|
@@ -1042,30 +1042,30 @@ declare class ChainConfigService {
|
|
|
1042
1042
|
getConsensusStateId(chain: string): string;
|
|
1043
1043
|
getHyperbridgeChainId(): number;
|
|
1044
1044
|
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;
|
|
1045
|
+
getUniswapRouterV2Address(chain: string): HexString$1;
|
|
1046
|
+
getAerodromeRouterAddress(chain: string): HexString$1;
|
|
1047
|
+
getUniswapV2FactoryAddress(chain: string): HexString$1;
|
|
1048
|
+
getUniswapV3FactoryAddress(chain: string): HexString$1;
|
|
1049
|
+
getUniversalRouterAddress(chain: string): HexString$1;
|
|
1050
|
+
getUniswapV3QuoterAddress(chain: string): HexString$1;
|
|
1051
|
+
getUniswapV4QuoterAddress(chain: string): HexString$1;
|
|
1052
|
+
getUniswapV4PositionManagerAddress(chain: string): HexString$1;
|
|
1053
|
+
getUniswapV4PoolManagerAddress(chain: string): HexString$1;
|
|
1054
|
+
getUniswapV4StateViewAddress(chain: string): HexString$1;
|
|
1055
1055
|
getUniswapV4PoolConfigs(chain: string): UniswapV4PoolConfigData[];
|
|
1056
|
-
getPermit2Address(chain: string): HexString;
|
|
1057
|
-
getSolverAccountAddress(chain: string): HexString | undefined;
|
|
1056
|
+
getPermit2Address(chain: string): HexString$1;
|
|
1057
|
+
getSolverAccountAddress(chain: string): HexString$1 | undefined;
|
|
1058
1058
|
getCoingeckoId(chain: string): string | undefined;
|
|
1059
1059
|
getEtherscanApiKey(): string | undefined;
|
|
1060
|
-
getCalldispatcherAddress(chain: string): HexString;
|
|
1060
|
+
getCalldispatcherAddress(chain: string): HexString$1;
|
|
1061
1061
|
getTokenStorageSlots(chain: string, tokenAddress: string): {
|
|
1062
1062
|
balanceSlot: number;
|
|
1063
1063
|
allowanceSlot: number;
|
|
1064
1064
|
} | undefined;
|
|
1065
1065
|
getPopularTokens(chain: string): string[];
|
|
1066
|
-
getEntryPointV08Address(chain: string): HexString;
|
|
1067
|
-
getCirclePaymasterAddress(chain: string): HexString | undefined;
|
|
1068
|
-
getSimplexPaymasterAddress(chain: string): HexString | undefined;
|
|
1066
|
+
getEntryPointV08Address(chain: string): HexString$1;
|
|
1067
|
+
getCirclePaymasterAddress(chain: string): HexString$1 | undefined;
|
|
1068
|
+
getSimplexPaymasterAddress(chain: string): HexString$1 | undefined;
|
|
1069
1069
|
getHyperbridgeAddress(): string;
|
|
1070
1070
|
/**
|
|
1071
1071
|
* Get the LayerZero Endpoint ID for the chain
|
|
@@ -1077,7 +1077,7 @@ declare class ChainConfigService {
|
|
|
1077
1077
|
* On Ethereum: OFT Adapter (locks/unlocks USDT)
|
|
1078
1078
|
* On other chains: OFT contract (mints/burns USDT0)
|
|
1079
1079
|
*/
|
|
1080
|
-
getUsdt0OftAddress(chain: string): HexString | undefined;
|
|
1080
|
+
getUsdt0OftAddress(chain: string): HexString$1 | undefined;
|
|
1081
1081
|
}
|
|
1082
1082
|
|
|
1083
1083
|
type IStateMachine = {
|
|
@@ -1127,33 +1127,33 @@ declare class SubstrateChain implements IChain {
|
|
|
1127
1127
|
* @param key - The H256 hash key (as a 0x-prefixed hex string)
|
|
1128
1128
|
* @returns The storage key as a hex string
|
|
1129
1129
|
*/
|
|
1130
|
-
requestReceiptKey(key: HexString): HexString;
|
|
1130
|
+
requestReceiptKey(key: HexString$1): HexString$1;
|
|
1131
1131
|
/**
|
|
1132
1132
|
* Returns the storage key for a request commitment in the child trie
|
|
1133
1133
|
* The request commitment is the key
|
|
1134
1134
|
* @param key - The H256 hash key (as a 0x-prefixed hex string)
|
|
1135
1135
|
* @returns The storage key as a hex string
|
|
1136
1136
|
*/
|
|
1137
|
-
requestCommitmentKey(key: HexString): HexString;
|
|
1137
|
+
requestCommitmentKey(key: HexString$1): HexString$1;
|
|
1138
1138
|
/**
|
|
1139
1139
|
* Queries a request commitment from the ISMP child trie storage.
|
|
1140
1140
|
* @param {HexString} commitment - The commitment hash to look up.
|
|
1141
1141
|
* @returns {Promise<HexString | undefined>} The commitment data if found, undefined otherwise.
|
|
1142
1142
|
*/
|
|
1143
|
-
queryRequestCommitment(commitment: HexString): Promise<HexString | undefined>;
|
|
1143
|
+
queryRequestCommitment(commitment: HexString$1): Promise<HexString$1 | undefined>;
|
|
1144
1144
|
/**
|
|
1145
1145
|
* Queries the request receipt.
|
|
1146
1146
|
* @param {HexString} commitment - The commitment to query.
|
|
1147
1147
|
* @returns {Promise<HexString | undefined>} The relayer address responsible for delivering the request.
|
|
1148
1148
|
*/
|
|
1149
|
-
queryRequestReceipt(commitment: HexString): Promise<HexString | undefined>;
|
|
1149
|
+
queryRequestReceipt(commitment: HexString$1): Promise<HexString$1 | undefined>;
|
|
1150
1150
|
/**
|
|
1151
1151
|
* Returns the storage key for a response receipt in the child trie.
|
|
1152
1152
|
* A response receipt is keyed by the originating *request* commitment.
|
|
1153
1153
|
* @param {HexString} key - The request commitment (0x-prefixed H256 hex string)
|
|
1154
1154
|
* @returns {HexString} The storage key as a hex string
|
|
1155
1155
|
*/
|
|
1156
|
-
responseReceiptKey(key: HexString): HexString;
|
|
1156
|
+
responseReceiptKey(key: HexString$1): HexString$1;
|
|
1157
1157
|
/**
|
|
1158
1158
|
* Queries the response receipt for a request commitment. For a GET, Hyperbridge
|
|
1159
1159
|
* produces the response as it processes the request, so the presence of a response
|
|
@@ -1161,7 +1161,7 @@ declare class SubstrateChain implements IChain {
|
|
|
1161
1161
|
* @param {HexString} commitment - The originating request commitment to query.
|
|
1162
1162
|
* @returns {Promise<HexString | undefined>} The receipt data if present, otherwise undefined.
|
|
1163
1163
|
*/
|
|
1164
|
-
queryResponseReceipt(commitment: HexString): Promise<HexString | undefined>;
|
|
1164
|
+
queryResponseReceipt(commitment: HexString$1): Promise<HexString$1 | undefined>;
|
|
1165
1165
|
/**
|
|
1166
1166
|
* Queries the state-machine commitment Hyperbridge holds for a counterparty chain at an
|
|
1167
1167
|
* exact height — the `BoundedStateCommitments` map that `state_machine_commitment` (and thus
|
|
@@ -1170,7 +1170,7 @@ declare class SubstrateChain implements IChain {
|
|
|
1170
1170
|
* @param {StateMachineHeight} height - The counterparty state machine id + height.
|
|
1171
1171
|
* @returns {Promise<HexString | undefined>} The committed state root, or undefined if absent.
|
|
1172
1172
|
*/
|
|
1173
|
-
queryStateMachineCommitment(height: StateMachineHeight): Promise<HexString | undefined>;
|
|
1173
|
+
queryStateMachineCommitment(height: StateMachineHeight): Promise<HexString$1 | undefined>;
|
|
1174
1174
|
/**
|
|
1175
1175
|
* Returns the current timestamp of the chain.
|
|
1176
1176
|
* @returns {Promise<bigint>} The current timestamp.
|
|
@@ -1183,7 +1183,7 @@ declare class SubstrateChain implements IChain {
|
|
|
1183
1183
|
* @param {bigint} [at] - The block number to query at.
|
|
1184
1184
|
* @returns {Promise<HexString>} The proof.
|
|
1185
1185
|
*/
|
|
1186
|
-
queryProof(message: IMessage, counterparty: string, at?: bigint): Promise<HexString>;
|
|
1186
|
+
queryProof(message: IMessage, counterparty: string, at?: bigint): Promise<HexString$1>;
|
|
1187
1187
|
/**
|
|
1188
1188
|
* Submit an unsigned ISMP transaction to the chain. Resolves when the transaction is finalized.
|
|
1189
1189
|
* @param message - The message to be submitted.
|
|
@@ -1202,7 +1202,7 @@ declare class SubstrateChain implements IChain {
|
|
|
1202
1202
|
* @param _address - Optional address (ignored for Substrate; present for IChain compatibility).
|
|
1203
1203
|
* @returns The state proof as a hexadecimal string.
|
|
1204
1204
|
*/
|
|
1205
|
-
queryStateProof(at: bigint, keys: HexString[], _address?: HexString): Promise<HexString>;
|
|
1205
|
+
queryStateProof(at: bigint, keys: HexString$1[], _address?: HexString$1): Promise<HexString$1>;
|
|
1206
1206
|
/**
|
|
1207
1207
|
* Get the latest state machine height for a given state machine ID.
|
|
1208
1208
|
* @param {StateMachineIdParams} stateMachineId - The state machine ID.
|
|
@@ -1229,7 +1229,7 @@ declare class SubstrateChain implements IChain {
|
|
|
1229
1229
|
* @param message The ISMP message to encode.
|
|
1230
1230
|
* @returns The encoded message as a hexadecimal string.
|
|
1231
1231
|
*/
|
|
1232
|
-
encode(message: IIsmpMessage): HexString;
|
|
1232
|
+
encode(message: IIsmpMessage): HexString$1;
|
|
1233
1233
|
/**
|
|
1234
1234
|
* Queries the latest proven height for this chain from pallet-ismp.
|
|
1235
1235
|
*/
|
|
@@ -1243,7 +1243,7 @@ declare class SubstrateChain implements IChain {
|
|
|
1243
1243
|
* @param currentEpoch - The current authority set id on the destination EVM chain
|
|
1244
1244
|
*/
|
|
1245
1245
|
queryConsensusProofs(neededHeight: bigint, currentEpoch: bigint): Promise<{
|
|
1246
|
-
proofs: HexString[];
|
|
1246
|
+
proofs: HexString$1[];
|
|
1247
1247
|
provenHeight: bigint;
|
|
1248
1248
|
} | undefined>;
|
|
1249
1249
|
private getPalletIndex;
|
|
@@ -1270,7 +1270,7 @@ declare function convertStateMachineEnumToString(stateMachine: {
|
|
|
1270
1270
|
*/
|
|
1271
1271
|
declare function convertStateIdToStateMachineId(stateId: {
|
|
1272
1272
|
Evm?: number;
|
|
1273
|
-
Substrate?: HexString;
|
|
1273
|
+
Substrate?: HexString$1;
|
|
1274
1274
|
Polkadot?: number;
|
|
1275
1275
|
Kusama?: number;
|
|
1276
1276
|
}): string;
|
|
@@ -1350,21 +1350,29 @@ declare function encodeISMPMessage(message: IIsmpMessage): Uint8Array;
|
|
|
1350
1350
|
* @param userOp - The PackedUserOperation to encode
|
|
1351
1351
|
* @returns Hex-encoded SCALE bytes
|
|
1352
1352
|
*/
|
|
1353
|
-
declare function encodeUserOpScale(userOp: PackedUserOperation): HexString;
|
|
1353
|
+
declare function encodeUserOpScale(userOp: PackedUserOperation): HexString$1;
|
|
1354
1354
|
/**
|
|
1355
1355
|
* Decodes a SCALE-encoded PackedUserOperation.
|
|
1356
1356
|
*
|
|
1357
1357
|
* @param hex - The hex-encoded SCALE bytes
|
|
1358
1358
|
* @returns The decoded PackedUserOperation
|
|
1359
1359
|
*/
|
|
1360
|
-
declare function decodeUserOpScale(hex: HexString): PackedUserOperation;
|
|
1360
|
+
declare function decodeUserOpScale(hex: HexString$1): PackedUserOperation;
|
|
1361
|
+
/** One directed leg of a phantom order: `standardAmount` of `tokenA` quoted in `tokenB`. */
|
|
1362
|
+
interface PhantomOrderLeg {
|
|
1363
|
+
tokenA: HexString$1;
|
|
1364
|
+
tokenB: HexString$1;
|
|
1365
|
+
standardAmount: bigint;
|
|
1366
|
+
}
|
|
1361
1367
|
interface PhantomOrderEvent {
|
|
1362
|
-
commitment: HexString;
|
|
1368
|
+
commitment: HexString$1;
|
|
1363
1369
|
chain: string;
|
|
1364
1370
|
createdAt: number;
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1371
|
+
/**
|
|
1372
|
+
* Every configured pair expands into its configured direction plus the reverse. Listed in
|
|
1373
|
+
* the same order as the order's asset lists, so index `i` here is the order's leg `i`.
|
|
1374
|
+
*/
|
|
1375
|
+
legs: PhantomOrderLeg[];
|
|
1368
1376
|
}
|
|
1369
1377
|
interface PollPhantomOrdersOptions {
|
|
1370
1378
|
/** How often to check for a new head. Defaults to 6s, roughly one block. */
|
|
@@ -1453,7 +1461,7 @@ declare class IntentsCoprocessor {
|
|
|
1453
1461
|
* @param userOp - The encoded PackedUserOperation as hex string
|
|
1454
1462
|
* @returns BidSubmissionResult with success status and block/extrinsic hash
|
|
1455
1463
|
*/
|
|
1456
|
-
submitBid(commitment: HexString, userOp: HexString): Promise<BidSubmissionResult>;
|
|
1464
|
+
submitBid(commitment: HexString$1, userOp: HexString$1): Promise<BidSubmissionResult>;
|
|
1457
1465
|
/**
|
|
1458
1466
|
* Retracts a bid from Hyperbridge and reclaims the deposit
|
|
1459
1467
|
*
|
|
@@ -1462,7 +1470,7 @@ declare class IntentsCoprocessor {
|
|
|
1462
1470
|
* @param commitment - The order commitment hash (bytes32)
|
|
1463
1471
|
* @returns BidSubmissionResult with success status and block/extrinsic hash
|
|
1464
1472
|
*/
|
|
1465
|
-
retractBid(commitment: HexString): Promise<BidSubmissionResult>;
|
|
1473
|
+
retractBid(commitment: HexString$1): Promise<BidSubmissionResult>;
|
|
1466
1474
|
/**
|
|
1467
1475
|
* Places a new bid and retracts a previous one in a single transaction via utility.batch.
|
|
1468
1476
|
*
|
|
@@ -1483,7 +1491,7 @@ declare class IntentsCoprocessor {
|
|
|
1483
1491
|
* @param userOp - The encoded PackedUserOperation as hex string
|
|
1484
1492
|
* @returns BidSubmissionResult with success status and block/extrinsic hash
|
|
1485
1493
|
*/
|
|
1486
|
-
submitBidWithRetraction(retractCommitment: HexString, bidCommitment: HexString, userOp: HexString): Promise<BidSubmissionResult>;
|
|
1494
|
+
submitBidWithRetraction(retractCommitment: HexString$1, bidCommitment: HexString$1, userOp: HexString$1): Promise<BidSubmissionResult>;
|
|
1487
1495
|
/**
|
|
1488
1496
|
* Fetches all bid storage entries for a given order commitment.
|
|
1489
1497
|
* Returns the on-chain data only (filler addresses and deposits).
|
|
@@ -1491,7 +1499,7 @@ declare class IntentsCoprocessor {
|
|
|
1491
1499
|
* @param commitment - The order commitment hash (bytes32)
|
|
1492
1500
|
* @returns Array of BidStorageEntry objects
|
|
1493
1501
|
*/
|
|
1494
|
-
getBidStorageEntries(commitment: HexString): Promise<BidStorageEntry[]>;
|
|
1502
|
+
getBidStorageEntries(commitment: HexString$1): Promise<BidStorageEntry[]>;
|
|
1495
1503
|
/**
|
|
1496
1504
|
* Fetches all bids for a given order commitment from Hyperbridge.
|
|
1497
1505
|
*
|
|
@@ -1502,7 +1510,7 @@ declare class IntentsCoprocessor {
|
|
|
1502
1510
|
* @param commitment - The order commitment hash (bytes32)
|
|
1503
1511
|
* @returns Array of FillerBid objects containing filler address, userOp, and deposit
|
|
1504
1512
|
*/
|
|
1505
|
-
getBidsForOrder(commitment: HexString): Promise<FillerBid[]>;
|
|
1513
|
+
getBidsForOrder(commitment: HexString$1): Promise<FillerBid[]>;
|
|
1506
1514
|
/**
|
|
1507
1515
|
* Fetches bids using the custom intents_getBidsForOrder RPC.
|
|
1508
1516
|
* Single round-trip but does not include deposit amounts.
|
|
@@ -1525,7 +1533,7 @@ declare class IntentsCoprocessor {
|
|
|
1525
1533
|
* Returns `null` if the key is absent (e.g. the node is not an offchain worker
|
|
1526
1534
|
* or the commitment has expired and been cleared).
|
|
1527
1535
|
*/
|
|
1528
|
-
fetchPhantomOrder(commitment: HexString): Promise<Order | null>;
|
|
1536
|
+
fetchPhantomOrder(commitment: HexString$1): Promise<Order | null>;
|
|
1529
1537
|
/**
|
|
1530
1538
|
* Reads the PhantomOrderRegistered events emitted in a single block.
|
|
1531
1539
|
*/
|
|
@@ -1555,7 +1563,7 @@ declare class IntentsCoprocessor {
|
|
|
1555
1563
|
type IIsmpMessage = IRequestMessage | ITimeoutPostRequestMessage | IGetResponseMessage | IGetRequestMessage | IConsensusMessage | IBatchConsensusAndPostRequestMessage | IBatchConsensusAndGetResponseMessage;
|
|
1556
1564
|
interface IConsensusMessage {
|
|
1557
1565
|
kind: "Consensus";
|
|
1558
|
-
consensusProof: HexString;
|
|
1566
|
+
consensusProof: HexString$1;
|
|
1559
1567
|
}
|
|
1560
1568
|
interface IRequestMessage {
|
|
1561
1569
|
/**
|
|
@@ -1573,7 +1581,7 @@ interface IRequestMessage {
|
|
|
1573
1581
|
/**
|
|
1574
1582
|
* The signer of the message.
|
|
1575
1583
|
*/
|
|
1576
|
-
signer: HexString;
|
|
1584
|
+
signer: HexString$1;
|
|
1577
1585
|
}
|
|
1578
1586
|
interface IGetRequestMessage {
|
|
1579
1587
|
/**
|
|
@@ -1595,7 +1603,7 @@ interface IGetRequestMessage {
|
|
|
1595
1603
|
/**
|
|
1596
1604
|
* The signer of the message.
|
|
1597
1605
|
*/
|
|
1598
|
-
signer: HexString;
|
|
1606
|
+
signer: HexString$1;
|
|
1599
1607
|
}
|
|
1600
1608
|
interface IGetResponse {
|
|
1601
1609
|
/**
|
|
@@ -1623,7 +1631,7 @@ interface IGetResponseMessage {
|
|
|
1623
1631
|
/**
|
|
1624
1632
|
* The signer of the message.
|
|
1625
1633
|
*/
|
|
1626
|
-
signer: HexString;
|
|
1634
|
+
signer: HexString$1;
|
|
1627
1635
|
}
|
|
1628
1636
|
interface ITimeoutPostRequestMessage {
|
|
1629
1637
|
/**
|
|
@@ -1641,17 +1649,17 @@ interface ITimeoutPostRequestMessage {
|
|
|
1641
1649
|
}
|
|
1642
1650
|
interface IBatchConsensusAndPostRequestMessage {
|
|
1643
1651
|
kind: "BatchConsensusAndPostRequest";
|
|
1644
|
-
consensusProofs: HexString[];
|
|
1652
|
+
consensusProofs: HexString$1[];
|
|
1645
1653
|
requests: IPostRequest[];
|
|
1646
1654
|
proof: IProof;
|
|
1647
|
-
signer: HexString;
|
|
1655
|
+
signer: HexString$1;
|
|
1648
1656
|
}
|
|
1649
1657
|
interface IBatchConsensusAndGetResponseMessage {
|
|
1650
1658
|
kind: "BatchConsensusAndGetResponse";
|
|
1651
|
-
consensusProofs: HexString[];
|
|
1659
|
+
consensusProofs: HexString$1[];
|
|
1652
1660
|
responses: IGetResponse[];
|
|
1653
1661
|
proof: IProof;
|
|
1654
|
-
signer: HexString;
|
|
1662
|
+
signer: HexString$1;
|
|
1655
1663
|
}
|
|
1656
1664
|
interface IProof {
|
|
1657
1665
|
/**
|
|
@@ -1669,7 +1677,7 @@ interface IProof {
|
|
|
1669
1677
|
/**
|
|
1670
1678
|
* The encoded storage proof
|
|
1671
1679
|
*/
|
|
1672
|
-
proof: HexString;
|
|
1680
|
+
proof: HexString$1;
|
|
1673
1681
|
}
|
|
1674
1682
|
/**
|
|
1675
1683
|
* Interface representing a chain.
|
|
@@ -1683,18 +1691,18 @@ interface IChain {
|
|
|
1683
1691
|
/**
|
|
1684
1692
|
* Returns the state trie key for the request-receipt storage item for the given request commitment.
|
|
1685
1693
|
*/
|
|
1686
|
-
requestReceiptKey(commitment: HexString): HexString;
|
|
1694
|
+
requestReceiptKey(commitment: HexString$1): HexString$1;
|
|
1687
1695
|
/**
|
|
1688
1696
|
* Query and return the request-receipt for the given request commitment.
|
|
1689
1697
|
*/
|
|
1690
|
-
queryRequestReceipt(commitment: HexString): Promise<HexString | undefined>;
|
|
1698
|
+
queryRequestReceipt(commitment: HexString$1): Promise<HexString$1 | undefined>;
|
|
1691
1699
|
/**
|
|
1692
1700
|
* Query and return the encoded storage proof for the provided keys at the given height.
|
|
1693
1701
|
* @param address - Optional contract address for EVM chains; defaults to host contract when omitted.
|
|
1694
1702
|
*/
|
|
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;
|
|
1703
|
+
queryStateProof(at: bigint, keys: HexString$1[], address?: HexString$1): Promise<HexString$1>;
|
|
1704
|
+
queryProof(message: IMessage, counterparty: string, at?: bigint): Promise<HexString$1>;
|
|
1705
|
+
encode(message: IIsmpMessage): HexString$1;
|
|
1698
1706
|
/**
|
|
1699
1707
|
* Get the latest state machine height for a given state machine ID.
|
|
1700
1708
|
*/
|
|
@@ -1719,18 +1727,18 @@ interface IEvmChain extends IChain {
|
|
|
1719
1727
|
getHostNonce(): Promise<bigint>;
|
|
1720
1728
|
quoteNative(request: IPostRequest | IGetRequest, fee: bigint): Promise<bigint>;
|
|
1721
1729
|
getFeeTokenWithDecimals(): Promise<{
|
|
1722
|
-
address: HexString;
|
|
1730
|
+
address: HexString$1;
|
|
1723
1731
|
decimals: number;
|
|
1724
1732
|
}>;
|
|
1725
|
-
getPlaceOrderCalldata(txHash: string, intentGatewayAddress: string, occurrenceIndex?: number): Promise<HexString>;
|
|
1726
|
-
broadcastTransaction(signedTransaction: HexString): Promise<TransactionReceipt>;
|
|
1727
|
-
getTransactionReceipt(hash: HexString): Promise<TransactionReceipt>;
|
|
1733
|
+
getPlaceOrderCalldata(txHash: string, intentGatewayAddress: string, occurrenceIndex?: number): Promise<HexString$1>;
|
|
1734
|
+
broadcastTransaction(signedTransaction: HexString$1): Promise<TransactionReceipt>;
|
|
1735
|
+
getTransactionReceipt(hash: HexString$1): Promise<TransactionReceipt>;
|
|
1728
1736
|
}
|
|
1729
1737
|
|
|
1730
1738
|
type EstimateGasCallData = ContractFunctionArgs<typeof _default$1.ABI, "nonpayable" | "payable", "handlePostRequests">;
|
|
1731
|
-
type HexString = `0x${string}`;
|
|
1739
|
+
type HexString$1 = `0x${string}`;
|
|
1732
1740
|
type StateMachineId = string;
|
|
1733
|
-
type BytesLikeHex = HexString;
|
|
1741
|
+
type BytesLikeHex = HexString$1;
|
|
1734
1742
|
interface IConfig {
|
|
1735
1743
|
source: IEvmConfig | ISubstrateConfig | IPolkadotHubConfig | IPharosConfig;
|
|
1736
1744
|
dest: IEvmConfig | ISubstrateConfig | IPolkadotHubConfig | IPharosConfig;
|
|
@@ -1740,7 +1748,7 @@ interface IConfig {
|
|
|
1740
1748
|
interface IEvmConfig {
|
|
1741
1749
|
rpcUrl: string;
|
|
1742
1750
|
stateMachineId: string;
|
|
1743
|
-
host: HexString;
|
|
1751
|
+
host: HexString$1;
|
|
1744
1752
|
consensusStateId: string;
|
|
1745
1753
|
}
|
|
1746
1754
|
/**
|
|
@@ -1772,25 +1780,25 @@ interface IHyperbridgeConfig {
|
|
|
1772
1780
|
interface IPostRequest {
|
|
1773
1781
|
source: string;
|
|
1774
1782
|
dest: string;
|
|
1775
|
-
from: HexString;
|
|
1776
|
-
to: HexString;
|
|
1783
|
+
from: HexString$1;
|
|
1784
|
+
to: HexString$1;
|
|
1777
1785
|
nonce: bigint;
|
|
1778
|
-
body: HexString;
|
|
1786
|
+
body: HexString$1;
|
|
1779
1787
|
timeoutTimestamp: bigint;
|
|
1780
1788
|
}
|
|
1781
1789
|
interface IGetRequest {
|
|
1782
1790
|
source: string;
|
|
1783
1791
|
dest: string;
|
|
1784
|
-
from: HexString;
|
|
1792
|
+
from: HexString$1;
|
|
1785
1793
|
nonce: bigint;
|
|
1786
1794
|
height: bigint;
|
|
1787
|
-
keys: HexString[];
|
|
1795
|
+
keys: HexString$1[];
|
|
1788
1796
|
timeoutTimestamp: bigint;
|
|
1789
|
-
context: HexString;
|
|
1797
|
+
context: HexString$1;
|
|
1790
1798
|
}
|
|
1791
1799
|
interface GetResponseStorageValues {
|
|
1792
|
-
key: HexString;
|
|
1793
|
-
value: HexString;
|
|
1800
|
+
key: HexString$1;
|
|
1801
|
+
value: HexString$1;
|
|
1794
1802
|
}
|
|
1795
1803
|
interface IPostResponse {
|
|
1796
1804
|
post: IPostRequest;
|
|
@@ -1798,9 +1806,9 @@ interface IPostResponse {
|
|
|
1798
1806
|
timeoutTimestamp: bigint;
|
|
1799
1807
|
}
|
|
1800
1808
|
type IMessage = {
|
|
1801
|
-
Requests: HexString[];
|
|
1809
|
+
Requests: HexString$1[];
|
|
1802
1810
|
} | {
|
|
1803
|
-
Responses: HexString[];
|
|
1811
|
+
Responses: HexString$1[];
|
|
1804
1812
|
};
|
|
1805
1813
|
type IndexerQueryClient = GraphQLClient;
|
|
1806
1814
|
interface ClientConfig {
|
|
@@ -1965,10 +1973,10 @@ interface RequestResponse {
|
|
|
1965
1973
|
nodes: Array<{
|
|
1966
1974
|
source: string;
|
|
1967
1975
|
dest: string;
|
|
1968
|
-
to: HexString;
|
|
1969
|
-
from: HexString;
|
|
1976
|
+
to: HexString$1;
|
|
1977
|
+
from: HexString$1;
|
|
1970
1978
|
nonce: bigint;
|
|
1971
|
-
body: HexString;
|
|
1979
|
+
body: HexString$1;
|
|
1972
1980
|
timeoutTimestamp: bigint;
|
|
1973
1981
|
statusMetadata: {
|
|
1974
1982
|
nodes: Array<{
|
|
@@ -1988,12 +1996,12 @@ interface GetRequestResponse {
|
|
|
1988
1996
|
nodes: Array<{
|
|
1989
1997
|
source: string;
|
|
1990
1998
|
dest: string;
|
|
1991
|
-
to: HexString;
|
|
1992
|
-
from: HexString;
|
|
1999
|
+
to: HexString$1;
|
|
2000
|
+
from: HexString$1;
|
|
1993
2001
|
nonce: bigint;
|
|
1994
2002
|
height: bigint;
|
|
1995
|
-
keys: HexString[];
|
|
1996
|
-
context: HexString;
|
|
2003
|
+
keys: HexString$1[];
|
|
2004
|
+
context: HexString$1;
|
|
1997
2005
|
timeoutTimestamp: bigint;
|
|
1998
2006
|
statusMetadata: {
|
|
1999
2007
|
nodes: Array<{
|
|
@@ -2093,20 +2101,20 @@ type RequestStatusWithMetadata = {
|
|
|
2093
2101
|
interface GenericRequestWithStatuses {
|
|
2094
2102
|
source: string;
|
|
2095
2103
|
dest: string;
|
|
2096
|
-
from: HexString;
|
|
2104
|
+
from: HexString$1;
|
|
2097
2105
|
nonce: bigint;
|
|
2098
2106
|
timeoutTimestamp: bigint;
|
|
2099
2107
|
statuses: Array<RequestStatusWithMetadata>;
|
|
2100
2108
|
}
|
|
2101
2109
|
interface PostRequestWithStatus extends GenericRequestWithStatuses {
|
|
2102
|
-
to: HexString;
|
|
2103
|
-
body: HexString;
|
|
2110
|
+
to: HexString$1;
|
|
2111
|
+
body: HexString$1;
|
|
2104
2112
|
}
|
|
2105
2113
|
interface GetRequestWithStatus extends GenericRequestWithStatuses {
|
|
2106
2114
|
height: bigint;
|
|
2107
|
-
keys: HexString[];
|
|
2108
|
-
context: HexString;
|
|
2109
|
-
commitment: HexString;
|
|
2115
|
+
keys: HexString$1[];
|
|
2116
|
+
context: HexString$1;
|
|
2117
|
+
commitment: HexString$1;
|
|
2110
2118
|
}
|
|
2111
2119
|
interface GetResponseByRequestIdResponse {
|
|
2112
2120
|
getResponses: {
|
|
@@ -2149,7 +2157,7 @@ interface AssetTeleported {
|
|
|
2149
2157
|
to: string;
|
|
2150
2158
|
amount: bigint;
|
|
2151
2159
|
dest: string;
|
|
2152
|
-
commitment: HexString;
|
|
2160
|
+
commitment: HexString$1;
|
|
2153
2161
|
createdAt: Date;
|
|
2154
2162
|
blockNumber: number;
|
|
2155
2163
|
}
|
|
@@ -2159,7 +2167,7 @@ interface AssetTeleportedResponse {
|
|
|
2159
2167
|
interface StateMachineIdParams {
|
|
2160
2168
|
stateId: {
|
|
2161
2169
|
Evm?: number;
|
|
2162
|
-
Substrate?: HexString;
|
|
2170
|
+
Substrate?: HexString$1;
|
|
2163
2171
|
Polkadot?: number;
|
|
2164
2172
|
Kusama?: number;
|
|
2165
2173
|
};
|
|
@@ -2202,58 +2210,73 @@ interface TokenInfo {
|
|
|
2202
2210
|
interface DecodedOrderPlacedLog extends Log {
|
|
2203
2211
|
eventName: string;
|
|
2204
2212
|
args: {
|
|
2205
|
-
user: HexString;
|
|
2213
|
+
user: HexString$1;
|
|
2206
2214
|
source: string;
|
|
2207
2215
|
destination: string;
|
|
2208
2216
|
deadline: bigint;
|
|
2209
2217
|
nonce: bigint;
|
|
2210
2218
|
fees: bigint;
|
|
2211
|
-
session: HexString;
|
|
2212
|
-
beneficiary: HexString;
|
|
2219
|
+
session: HexString$1;
|
|
2220
|
+
beneficiary: HexString$1;
|
|
2213
2221
|
predispatch: Array<{
|
|
2214
|
-
token: HexString;
|
|
2222
|
+
token: HexString$1;
|
|
2215
2223
|
amount: bigint;
|
|
2216
2224
|
}>;
|
|
2217
2225
|
inputs: Array<{
|
|
2218
|
-
token: HexString;
|
|
2226
|
+
token: HexString$1;
|
|
2219
2227
|
amount: bigint;
|
|
2220
2228
|
}>;
|
|
2221
2229
|
outputs: Array<{
|
|
2222
|
-
token: HexString;
|
|
2230
|
+
token: HexString$1;
|
|
2223
2231
|
amount: bigint;
|
|
2224
2232
|
}>;
|
|
2233
|
+
/**
|
|
2234
|
+
* Calldata executed via the CallDispatcher before escrow.
|
|
2235
|
+
* Absent on logs emitted under the pre-#1092 event schema.
|
|
2236
|
+
*/
|
|
2237
|
+
predispatchCall?: HexString$1;
|
|
2238
|
+
/**
|
|
2239
|
+
* Calldata executed on the destination chain during the fill.
|
|
2240
|
+
* Absent on logs emitted under the pre-#1092 event schema.
|
|
2241
|
+
*/
|
|
2242
|
+
outputCall?: HexString$1;
|
|
2243
|
+
/**
|
|
2244
|
+
* Attribution tag supplied by the order placer.
|
|
2245
|
+
* Absent on logs emitted under the pre-#1092 event schema.
|
|
2246
|
+
*/
|
|
2247
|
+
graffiti?: HexString$1;
|
|
2225
2248
|
};
|
|
2226
|
-
transactionHash: HexString;
|
|
2249
|
+
transactionHash: HexString$1;
|
|
2227
2250
|
}
|
|
2228
2251
|
interface DecodedPostRequestEvent extends Log {
|
|
2229
2252
|
eventName: string;
|
|
2230
2253
|
args: {
|
|
2231
2254
|
source: string;
|
|
2232
2255
|
dest: string;
|
|
2233
|
-
from: HexString;
|
|
2234
|
-
to: HexString;
|
|
2256
|
+
from: HexString$1;
|
|
2257
|
+
to: HexString$1;
|
|
2235
2258
|
nonce: bigint;
|
|
2236
2259
|
timeoutTimestamp: bigint;
|
|
2237
|
-
body: HexString;
|
|
2260
|
+
body: HexString$1;
|
|
2238
2261
|
fee: bigint;
|
|
2239
2262
|
};
|
|
2240
|
-
transactionHash: HexString;
|
|
2263
|
+
transactionHash: HexString$1;
|
|
2241
2264
|
}
|
|
2242
2265
|
interface DecodedPostResponseEvent extends Log {
|
|
2243
2266
|
eventName: string;
|
|
2244
2267
|
args: {
|
|
2245
2268
|
source: string;
|
|
2246
2269
|
dest: string;
|
|
2247
|
-
from: HexString;
|
|
2248
|
-
to: HexString;
|
|
2270
|
+
from: HexString$1;
|
|
2271
|
+
to: HexString$1;
|
|
2249
2272
|
nonce: bigint;
|
|
2250
2273
|
timeoutTimestamp: bigint;
|
|
2251
|
-
body: HexString;
|
|
2252
|
-
response: HexString;
|
|
2274
|
+
body: HexString$1;
|
|
2275
|
+
response: HexString$1;
|
|
2253
2276
|
responseTimeoutTimestamp: bigint;
|
|
2254
2277
|
fee: bigint;
|
|
2255
2278
|
};
|
|
2256
|
-
transactionHash: HexString;
|
|
2279
|
+
transactionHash: HexString$1;
|
|
2257
2280
|
}
|
|
2258
2281
|
/**
|
|
2259
2282
|
* Options for canceling an order
|
|
@@ -2275,11 +2298,11 @@ interface Deployment {
|
|
|
2275
2298
|
/**
|
|
2276
2299
|
* The raw state machine ID bytes for the deployment chain (hashed on-chain)
|
|
2277
2300
|
*/
|
|
2278
|
-
chain: HexString;
|
|
2301
|
+
chain: HexString$1;
|
|
2279
2302
|
/**
|
|
2280
2303
|
* The gateway identifier
|
|
2281
2304
|
*/
|
|
2282
|
-
gateway: HexString;
|
|
2305
|
+
gateway: HexString$1;
|
|
2283
2306
|
}
|
|
2284
2307
|
/**
|
|
2285
2308
|
* Represents the body of a request
|
|
@@ -2288,11 +2311,11 @@ interface RequestBody {
|
|
|
2288
2311
|
/**
|
|
2289
2312
|
* Represents the commitment of an order
|
|
2290
2313
|
*/
|
|
2291
|
-
commitment: HexString;
|
|
2314
|
+
commitment: HexString$1;
|
|
2292
2315
|
/**
|
|
2293
2316
|
* Stores the identifier for the beneficiary
|
|
2294
2317
|
*/
|
|
2295
|
-
beneficiary: HexString;
|
|
2318
|
+
beneficiary: HexString$1;
|
|
2296
2319
|
/**
|
|
2297
2320
|
* An array of token identifiers
|
|
2298
2321
|
*/
|
|
@@ -2393,6 +2416,13 @@ interface FillerConfig {
|
|
|
2393
2416
|
* Example: { 1: true, 56: false } - watch-only on Ethereum, normal execution on BSC
|
|
2394
2417
|
*/
|
|
2395
2418
|
watchOnly?: Record<number, boolean>;
|
|
2419
|
+
/**
|
|
2420
|
+
* Source chains (state machine ids, e.g. "EVM-8453") this filler accepts payment from when
|
|
2421
|
+
* filling cross-chain orders, declared inside its phantom bids' paymasterAndData. Omit to
|
|
2422
|
+
* declare nothing, which downstream consumers read as "accepts all CCTP/USDT0-covered
|
|
2423
|
+
* chains"; an empty array declares that no source chain is accepted.
|
|
2424
|
+
*/
|
|
2425
|
+
acceptedSourceChains?: string[];
|
|
2396
2426
|
}
|
|
2397
2427
|
/**
|
|
2398
2428
|
* Result of an order execution attempt
|
|
@@ -2442,8 +2472,8 @@ interface ExecutionResult {
|
|
|
2442
2472
|
* Any tokens exchanged during the fill process
|
|
2443
2473
|
*/
|
|
2444
2474
|
exchanges?: Array<{
|
|
2445
|
-
fromToken: HexString;
|
|
2446
|
-
toToken: HexString;
|
|
2475
|
+
fromToken: HexString$1;
|
|
2476
|
+
toToken: HexString$1;
|
|
2447
2477
|
fromAmount: string;
|
|
2448
2478
|
toAmount: string;
|
|
2449
2479
|
exchangeRate: string;
|
|
@@ -2465,15 +2495,15 @@ interface DispatchPost {
|
|
|
2465
2495
|
/**
|
|
2466
2496
|
* Bytes representation of the destination state machine
|
|
2467
2497
|
*/
|
|
2468
|
-
dest: HexString;
|
|
2498
|
+
dest: HexString$1;
|
|
2469
2499
|
/**
|
|
2470
2500
|
* The destination module
|
|
2471
2501
|
*/
|
|
2472
|
-
to: HexString;
|
|
2502
|
+
to: HexString$1;
|
|
2473
2503
|
/**
|
|
2474
2504
|
* The request body
|
|
2475
2505
|
*/
|
|
2476
|
-
body: HexString;
|
|
2506
|
+
body: HexString$1;
|
|
2477
2507
|
/**
|
|
2478
2508
|
* Timeout for this request in seconds
|
|
2479
2509
|
*/
|
|
@@ -2486,13 +2516,13 @@ interface DispatchPost {
|
|
|
2486
2516
|
/**
|
|
2487
2517
|
* Who pays for this request?
|
|
2488
2518
|
*/
|
|
2489
|
-
payer: HexString;
|
|
2519
|
+
payer: HexString$1;
|
|
2490
2520
|
}
|
|
2491
2521
|
interface DispatchGet {
|
|
2492
2522
|
/**
|
|
2493
2523
|
* Bytes representation of the destination state machine
|
|
2494
2524
|
*/
|
|
2495
|
-
dest: HexString;
|
|
2525
|
+
dest: HexString$1;
|
|
2496
2526
|
/**
|
|
2497
2527
|
* Height at which to read the state machine
|
|
2498
2528
|
*/
|
|
@@ -2500,7 +2530,7 @@ interface DispatchGet {
|
|
|
2500
2530
|
/**
|
|
2501
2531
|
* Raw storage keys to fetch values from the counterparty
|
|
2502
2532
|
*/
|
|
2503
|
-
keys: HexString[];
|
|
2533
|
+
keys: HexString$1[];
|
|
2504
2534
|
/**
|
|
2505
2535
|
* Timeout for this request in seconds
|
|
2506
2536
|
*/
|
|
@@ -2512,17 +2542,17 @@ interface DispatchGet {
|
|
|
2512
2542
|
/**
|
|
2513
2543
|
* Context for the request
|
|
2514
2544
|
*/
|
|
2515
|
-
context: HexString;
|
|
2545
|
+
context: HexString$1;
|
|
2516
2546
|
/**
|
|
2517
2547
|
* Who pays for this request?
|
|
2518
2548
|
*/
|
|
2519
|
-
payer: HexString;
|
|
2549
|
+
payer: HexString$1;
|
|
2520
2550
|
}
|
|
2521
2551
|
interface StateMachineHeight {
|
|
2522
2552
|
id: {
|
|
2523
2553
|
stateId: {
|
|
2524
2554
|
Evm?: number;
|
|
2525
|
-
Substrate?: HexString;
|
|
2555
|
+
Substrate?: HexString$1;
|
|
2526
2556
|
Polkadot?: number;
|
|
2527
2557
|
Kusama?: number;
|
|
2528
2558
|
};
|
|
@@ -2538,26 +2568,26 @@ interface HostParams {
|
|
|
2538
2568
|
* The fee token contract address. This will typically be DAI.
|
|
2539
2569
|
* but we allow it to be configurable to prevent future regrets.
|
|
2540
2570
|
*/
|
|
2541
|
-
feeToken: HexString;
|
|
2571
|
+
feeToken: HexString$1;
|
|
2542
2572
|
/**
|
|
2543
2573
|
* The admin account, this only has the rights to freeze, or unfreeze the bridge
|
|
2544
2574
|
*/
|
|
2545
|
-
admin: HexString;
|
|
2575
|
+
admin: HexString$1;
|
|
2546
2576
|
/**
|
|
2547
2577
|
* Ismp message handler contract. This performs all verification logic
|
|
2548
2578
|
* needed to validate cross-chain messages before they are dispatched to local modules
|
|
2549
2579
|
*/
|
|
2550
|
-
handler: HexString;
|
|
2580
|
+
handler: HexString$1;
|
|
2551
2581
|
/**
|
|
2552
2582
|
* The authorized host manager contract, is itself an `IIsmpModule`
|
|
2553
2583
|
* which receives governance requests from the Hyperbridge chain to either
|
|
2554
2584
|
* withdraw revenue from the host or update its protocol parameters
|
|
2555
2585
|
*/
|
|
2556
|
-
hostManager: HexString;
|
|
2586
|
+
hostManager: HexString$1;
|
|
2557
2587
|
/**
|
|
2558
2588
|
* The local UniswapV2Router02 contract, used for swapping the native token to the feeToken.
|
|
2559
2589
|
*/
|
|
2560
|
-
uniswapV2: HexString;
|
|
2590
|
+
uniswapV2: HexString$1;
|
|
2561
2591
|
/**
|
|
2562
2592
|
* The unstaking period of Polkadot's validators. In order to prevent long-range attacks
|
|
2563
2593
|
*/
|
|
@@ -2569,7 +2599,7 @@ interface HostParams {
|
|
|
2569
2599
|
/**
|
|
2570
2600
|
* The consensus client contract which handles consensus proof verification
|
|
2571
2601
|
*/
|
|
2572
|
-
consensusClient: HexString;
|
|
2602
|
+
consensusClient: HexString$1;
|
|
2573
2603
|
/**
|
|
2574
2604
|
* State machines whose state commitments are accepted
|
|
2575
2605
|
*/
|
|
@@ -2577,7 +2607,7 @@ interface HostParams {
|
|
|
2577
2607
|
/**
|
|
2578
2608
|
* The state machine identifier for hyperbridge
|
|
2579
2609
|
*/
|
|
2580
|
-
hyperbridge: HexString;
|
|
2610
|
+
hyperbridge: HexString$1;
|
|
2581
2611
|
}
|
|
2582
2612
|
interface OrderStatusMetadata {
|
|
2583
2613
|
status: OrderStatus;
|
|
@@ -2659,9 +2689,9 @@ interface OrderResponse {
|
|
|
2659
2689
|
};
|
|
2660
2690
|
}
|
|
2661
2691
|
interface PhantomOrderPriceSnapshot {
|
|
2662
|
-
commitment: HexString;
|
|
2663
|
-
tokenA: HexString;
|
|
2664
|
-
tokenB: HexString;
|
|
2692
|
+
commitment: HexString$1;
|
|
2693
|
+
tokenA: HexString$1;
|
|
2694
|
+
tokenB: HexString$1;
|
|
2665
2695
|
standardAmount: bigint;
|
|
2666
2696
|
blockNumber: bigint;
|
|
2667
2697
|
medianPrice: bigint;
|
|
@@ -2695,14 +2725,14 @@ interface PhantomOrderPriceSnapshotsResponse {
|
|
|
2695
2725
|
interface AvailableLiquiditySnapshot {
|
|
2696
2726
|
totalLiquidity: string;
|
|
2697
2727
|
providerCount: number;
|
|
2698
|
-
tokenAddress: HexString;
|
|
2728
|
+
tokenAddress: HexString$1;
|
|
2699
2729
|
snapshotTime: Date;
|
|
2700
2730
|
liquidityByChain: AvailableLiquidityByChain[];
|
|
2701
2731
|
}
|
|
2702
2732
|
/** Liquidity for one chain/token balance group in an availability snapshot. */
|
|
2703
2733
|
interface AvailableLiquidityByChain {
|
|
2704
2734
|
chain: string;
|
|
2705
|
-
tokenAddress: HexString;
|
|
2735
|
+
tokenAddress: HexString$1;
|
|
2706
2736
|
totalLiquidity: string;
|
|
2707
2737
|
providerCount: number;
|
|
2708
2738
|
}
|
|
@@ -2732,7 +2762,7 @@ interface Transaction {
|
|
|
2732
2762
|
/**
|
|
2733
2763
|
* The address to send the transaction to (typically the Universal Router address)
|
|
2734
2764
|
*/
|
|
2735
|
-
to: HexString;
|
|
2765
|
+
to: HexString$1;
|
|
2736
2766
|
/**
|
|
2737
2767
|
* The value to send with the transaction (in wei)
|
|
2738
2768
|
*/
|
|
@@ -2740,7 +2770,7 @@ interface Transaction {
|
|
|
2740
2770
|
/**
|
|
2741
2771
|
* The calldata for the transaction
|
|
2742
2772
|
*/
|
|
2743
|
-
data: HexString;
|
|
2773
|
+
data: HexString$1;
|
|
2744
2774
|
}
|
|
2745
2775
|
interface StorageFacade {
|
|
2746
2776
|
get<T>(key: string): Promise<T | undefined>;
|
|
@@ -2751,15 +2781,15 @@ interface PaymentInfo {
|
|
|
2751
2781
|
/** Accepts a standard 20-byte address; the SDK pads to bytes32 internally when needed. */
|
|
2752
2782
|
beneficiary: BytesLikeHex;
|
|
2753
2783
|
assets: TokenInfo[];
|
|
2754
|
-
call: HexString;
|
|
2784
|
+
call: HexString$1;
|
|
2755
2785
|
}
|
|
2756
2786
|
interface DispatchInfo {
|
|
2757
2787
|
assets: TokenInfo[];
|
|
2758
|
-
call: HexString;
|
|
2788
|
+
call: HexString$1;
|
|
2759
2789
|
}
|
|
2760
2790
|
interface Order {
|
|
2761
2791
|
id?: string;
|
|
2762
|
-
user: HexString;
|
|
2792
|
+
user: HexString$1;
|
|
2763
2793
|
/** Accepts either `"EVM-1"` style IDs or their hex-encoded form. */
|
|
2764
2794
|
source: StateMachineId;
|
|
2765
2795
|
/** Accepts either `"EVM-42161"` style IDs or their hex-encoded form. */
|
|
@@ -2767,7 +2797,7 @@ interface Order {
|
|
|
2767
2797
|
deadline: bigint;
|
|
2768
2798
|
nonce: bigint;
|
|
2769
2799
|
fees: bigint;
|
|
2770
|
-
session: HexString;
|
|
2800
|
+
session: HexString$1;
|
|
2771
2801
|
predispatch: DispatchInfo;
|
|
2772
2802
|
inputs: TokenInfo[];
|
|
2773
2803
|
output: PaymentInfo;
|
|
@@ -2782,52 +2812,52 @@ interface FillOptions {
|
|
|
2782
2812
|
outputs: TokenInfo[];
|
|
2783
2813
|
}
|
|
2784
2814
|
interface PackedUserOperation {
|
|
2785
|
-
sender: HexString;
|
|
2815
|
+
sender: HexString$1;
|
|
2786
2816
|
nonce: bigint;
|
|
2787
|
-
initCode: HexString;
|
|
2788
|
-
callData: HexString;
|
|
2789
|
-
accountGasLimits: HexString;
|
|
2817
|
+
initCode: HexString$1;
|
|
2818
|
+
callData: HexString$1;
|
|
2819
|
+
accountGasLimits: HexString$1;
|
|
2790
2820
|
preVerificationGas: bigint;
|
|
2791
|
-
gasFees: HexString;
|
|
2792
|
-
paymasterAndData: HexString;
|
|
2793
|
-
signature: HexString;
|
|
2821
|
+
gasFees: HexString$1;
|
|
2822
|
+
paymasterAndData: HexString$1;
|
|
2823
|
+
signature: HexString$1;
|
|
2794
2824
|
}
|
|
2795
2825
|
interface SigningAccount {
|
|
2796
2826
|
/** Signs a bid message hash for a given chain. Returns a 65-byte ECDSA signature. */
|
|
2797
|
-
signMessage: (messageHash: HexString, chainId: number) => Promise<HexString>;
|
|
2827
|
+
signMessage: (messageHash: HexString$1, chainId: number) => Promise<HexString$1>;
|
|
2798
2828
|
/** 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;
|
|
2829
|
+
signRawHash: (hash: HexString$1) => Promise<{
|
|
2830
|
+
r: HexString$1;
|
|
2831
|
+
s: HexString$1;
|
|
2802
2832
|
yParity: number;
|
|
2803
2833
|
}>;
|
|
2804
2834
|
/**
|
|
2805
2835
|
* Signs an EIP-712 typed-data payload (e.g. an EIP-2612 USDC permit for the Circle Paymaster).
|
|
2806
2836
|
* The shape of `typedData` matches viem's `TypedDataDefinition` (domain + types + message).
|
|
2807
2837
|
*/
|
|
2808
|
-
signTypedData: (typedData: unknown, chainId?: number) => Promise<HexString>;
|
|
2838
|
+
signTypedData: (typedData: unknown, chainId?: number) => Promise<HexString$1>;
|
|
2809
2839
|
}
|
|
2810
2840
|
interface SubmitBidOptions {
|
|
2811
2841
|
order: Order;
|
|
2812
2842
|
fillOptions: FillOptions;
|
|
2813
|
-
solverAccount: HexString;
|
|
2843
|
+
solverAccount: HexString$1;
|
|
2814
2844
|
/** Canonical signer used for bid message signing and raw-hash operations. */
|
|
2815
2845
|
solverSigner: SigningAccount;
|
|
2816
2846
|
nonce: bigint;
|
|
2817
|
-
entryPointAddress: HexString;
|
|
2847
|
+
entryPointAddress: HexString$1;
|
|
2818
2848
|
callGasLimit: bigint;
|
|
2819
2849
|
verificationGasLimit: bigint;
|
|
2820
2850
|
preVerificationGas: bigint;
|
|
2821
2851
|
maxFeePerGas: bigint;
|
|
2822
2852
|
maxPriorityFeePerGas: bigint;
|
|
2823
2853
|
/** Pre-built ERC-7821 calldata encoding the UserOp execution (approvals + fillOrder). */
|
|
2824
|
-
callData: HexString;
|
|
2854
|
+
callData: HexString$1;
|
|
2825
2855
|
/**
|
|
2826
2856
|
* Optional packed paymasterAndData for EntryPoint v0.8.
|
|
2827
2857
|
* Must be built BEFORE calling prepareSubmitBid so the hash covers paymaster bytes.
|
|
2828
2858
|
* Defaults to "0x" (EntryPoint deposit pays gas).
|
|
2829
2859
|
*/
|
|
2830
|
-
paymasterAndData?: HexString;
|
|
2860
|
+
paymasterAndData?: HexString$1;
|
|
2831
2861
|
}
|
|
2832
2862
|
interface EstimateFillOrderParams {
|
|
2833
2863
|
order: Order;
|
|
@@ -2894,7 +2924,7 @@ interface OrderFeesQuote {
|
|
|
2894
2924
|
* The source-chain fee token `fees` is denominated in — check the user's
|
|
2895
2925
|
* balance and allowance against this address when paying the fee directly.
|
|
2896
2926
|
*/
|
|
2897
|
-
feeToken: HexString;
|
|
2927
|
+
feeToken: HexString$1;
|
|
2898
2928
|
/** The underlying gas estimate the quote was derived from. */
|
|
2899
2929
|
estimate: FillOrderEstimate;
|
|
2900
2930
|
}
|
|
@@ -2909,11 +2939,11 @@ interface BidSubmissionResult {
|
|
|
2909
2939
|
/**
|
|
2910
2940
|
* Block hash where the bid was included
|
|
2911
2941
|
*/
|
|
2912
|
-
blockHash?: HexString;
|
|
2942
|
+
blockHash?: HexString$1;
|
|
2913
2943
|
/**
|
|
2914
2944
|
* Extrinsic hash of the bid transaction
|
|
2915
2945
|
*/
|
|
2916
|
-
extrinsicHash?: HexString;
|
|
2946
|
+
extrinsicHash?: HexString$1;
|
|
2917
2947
|
/**
|
|
2918
2948
|
* Error message if submission failed
|
|
2919
2949
|
*/
|
|
@@ -2925,7 +2955,7 @@ interface BidSubmissionResult {
|
|
|
2925
2955
|
*/
|
|
2926
2956
|
interface BidStorageEntry {
|
|
2927
2957
|
/** The order commitment hash (H256) */
|
|
2928
|
-
commitment: HexString;
|
|
2958
|
+
commitment: HexString$1;
|
|
2929
2959
|
/** The filler's Substrate account ID (SS58 encoded) */
|
|
2930
2960
|
filler: string;
|
|
2931
2961
|
/** The deposit amount stored on-chain (BalanceOf<T> = u128) */
|
|
@@ -2948,11 +2978,11 @@ interface FillerBid {
|
|
|
2948
2978
|
*/
|
|
2949
2979
|
interface SelectOptions {
|
|
2950
2980
|
/** The order commitment hash (bytes32) */
|
|
2951
|
-
commitment: HexString;
|
|
2981
|
+
commitment: HexString$1;
|
|
2952
2982
|
/** The solver address to select */
|
|
2953
|
-
solver: HexString;
|
|
2983
|
+
solver: HexString$1;
|
|
2954
2984
|
/** The EIP-712 signature from the session key */
|
|
2955
|
-
signature: HexString;
|
|
2985
|
+
signature: HexString$1;
|
|
2956
2986
|
}
|
|
2957
2987
|
/**
|
|
2958
2988
|
* A first-class, executable solver bid surfaced to consumers of the intents SDK.
|
|
@@ -2970,7 +3000,7 @@ interface SelectOptions {
|
|
|
2970
3000
|
*/
|
|
2971
3001
|
interface Bid {
|
|
2972
3002
|
/** The solver account that submitted this bid (`userOp.sender`). */
|
|
2973
|
-
readonly solverAddress: HexString;
|
|
3003
|
+
readonly solverAddress: HexString$1;
|
|
2974
3004
|
/** Decoded `FillOptions.outputs` — the tokens and amounts the solver offers. */
|
|
2975
3005
|
readonly outputs: TokenInfo[];
|
|
2976
3006
|
/** Relayer fee from the decoded fill options. */
|
|
@@ -3019,8 +3049,8 @@ type IntentOrderStatusKey = keyof typeof IntentOrderStatus;
|
|
|
3019
3049
|
/** Tagged union of all possible status updates yielded by the intent order execution stream */
|
|
3020
3050
|
type IntentOrderStatusUpdate = {
|
|
3021
3051
|
status: "AWAITING_PLACE_ORDER";
|
|
3022
|
-
to: HexString;
|
|
3023
|
-
data: HexString;
|
|
3052
|
+
to: HexString$1;
|
|
3053
|
+
data: HexString$1;
|
|
3024
3054
|
/**
|
|
3025
3055
|
* The order's native-token input amounts. Native inputs cannot be
|
|
3026
3056
|
* pulled via allowance, so this must be part of the placement
|
|
@@ -3034,62 +3064,62 @@ type IntentOrderStatusUpdate = {
|
|
|
3034
3064
|
* (fee-token rail).
|
|
3035
3065
|
*/
|
|
3036
3066
|
nativeFee: bigint;
|
|
3037
|
-
sessionPrivateKey: HexString;
|
|
3067
|
+
sessionPrivateKey: HexString$1;
|
|
3038
3068
|
/** Exact source-chain fee-token amount encoded in `data`. */
|
|
3039
3069
|
feeTokenAmount: bigint;
|
|
3040
3070
|
/** Source-chain ERC-20 token charged for `feeTokenAmount`. */
|
|
3041
|
-
feeTokenAddress: HexString;
|
|
3071
|
+
feeTokenAddress: HexString$1;
|
|
3042
3072
|
} | {
|
|
3043
3073
|
status: "ORDER_PLACED";
|
|
3044
3074
|
order: Order;
|
|
3045
3075
|
receipt: TransactionReceipt;
|
|
3046
3076
|
} | {
|
|
3047
3077
|
status: "AWAITING_BIDS";
|
|
3048
|
-
commitment: HexString;
|
|
3078
|
+
commitment: HexString$1;
|
|
3049
3079
|
totalFilledAssets: TokenInfo[];
|
|
3050
3080
|
remainingAssets: TokenInfo[];
|
|
3051
3081
|
} | {
|
|
3052
3082
|
status: "NEW_BID";
|
|
3053
|
-
commitment: HexString;
|
|
3083
|
+
commitment: HexString$1;
|
|
3054
3084
|
bid: Bid;
|
|
3055
3085
|
} | {
|
|
3056
3086
|
status: "BIDS_RECEIVED";
|
|
3057
|
-
commitment: HexString;
|
|
3087
|
+
commitment: HexString$1;
|
|
3058
3088
|
bidCount: number;
|
|
3059
3089
|
bids: Bid[];
|
|
3060
3090
|
} | {
|
|
3061
3091
|
status: "BID_SELECTED";
|
|
3062
|
-
commitment: HexString;
|
|
3063
|
-
selectedSolver: HexString;
|
|
3064
|
-
userOpHash: HexString;
|
|
3092
|
+
commitment: HexString$1;
|
|
3093
|
+
selectedSolver: HexString$1;
|
|
3094
|
+
userOpHash: HexString$1;
|
|
3065
3095
|
userOp: PackedUserOperation;
|
|
3066
|
-
transactionHash?: HexString;
|
|
3096
|
+
transactionHash?: HexString$1;
|
|
3067
3097
|
} | {
|
|
3068
3098
|
status: "FILLED";
|
|
3069
|
-
commitment: HexString;
|
|
3070
|
-
userOpHash: HexString;
|
|
3071
|
-
selectedSolver: HexString;
|
|
3072
|
-
transactionHash?: HexString;
|
|
3099
|
+
commitment: HexString$1;
|
|
3100
|
+
userOpHash: HexString$1;
|
|
3101
|
+
selectedSolver: HexString$1;
|
|
3102
|
+
transactionHash?: HexString$1;
|
|
3073
3103
|
totalFilledAssets: TokenInfo[];
|
|
3074
3104
|
remainingAssets: TokenInfo[];
|
|
3075
3105
|
} | {
|
|
3076
3106
|
status: "PARTIAL_FILL";
|
|
3077
|
-
commitment: HexString;
|
|
3078
|
-
userOpHash: HexString;
|
|
3079
|
-
selectedSolver: HexString;
|
|
3080
|
-
transactionHash?: HexString;
|
|
3107
|
+
commitment: HexString$1;
|
|
3108
|
+
userOpHash: HexString$1;
|
|
3109
|
+
selectedSolver: HexString$1;
|
|
3110
|
+
transactionHash?: HexString$1;
|
|
3081
3111
|
filledAssets: TokenInfo[];
|
|
3082
3112
|
totalFilledAssets: TokenInfo[];
|
|
3083
3113
|
remainingAssets: TokenInfo[];
|
|
3084
3114
|
} | {
|
|
3085
3115
|
status: "EXPIRED";
|
|
3086
|
-
commitment: HexString;
|
|
3116
|
+
commitment: HexString$1;
|
|
3087
3117
|
totalFilledAssets?: TokenInfo[];
|
|
3088
3118
|
remainingAssets?: TokenInfo[];
|
|
3089
3119
|
error: string;
|
|
3090
3120
|
} | {
|
|
3091
3121
|
status: "FAILED";
|
|
3092
|
-
commitment?: HexString;
|
|
3122
|
+
commitment?: HexString$1;
|
|
3093
3123
|
totalFilledAssets?: TokenInfo[];
|
|
3094
3124
|
remainingAssets?: TokenInfo[];
|
|
3095
3125
|
error: string;
|
|
@@ -3097,10 +3127,10 @@ type IntentOrderStatusUpdate = {
|
|
|
3097
3127
|
/** Result of selecting a bid and submitting to the bundler */
|
|
3098
3128
|
interface SelectBidResult {
|
|
3099
3129
|
userOp: PackedUserOperation;
|
|
3100
|
-
userOpHash: HexString;
|
|
3101
|
-
solverAddress: HexString;
|
|
3102
|
-
commitment: HexString;
|
|
3103
|
-
txnHash?: HexString;
|
|
3130
|
+
userOpHash: HexString$1;
|
|
3131
|
+
solverAddress: HexString$1;
|
|
3132
|
+
commitment: HexString$1;
|
|
3133
|
+
txnHash?: HexString$1;
|
|
3104
3134
|
fillStatus?: "full" | "partial";
|
|
3105
3135
|
/** Assets filled in this user operation (best-effort, based on on-chain PartialFill logs) */
|
|
3106
3136
|
filledAssets?: TokenInfo[];
|
|
@@ -3108,7 +3138,7 @@ interface SelectBidResult {
|
|
|
3108
3138
|
/** Options for executing an intent order */
|
|
3109
3139
|
interface ExecuteIntentOrderOptions {
|
|
3110
3140
|
order: Order;
|
|
3111
|
-
sessionPrivateKey?: HexString;
|
|
3141
|
+
sessionPrivateKey?: HexString$1;
|
|
3112
3142
|
/** Duration in ms to collect bids before selecting the best one. */
|
|
3113
3143
|
auctionTimeMs: number;
|
|
3114
3144
|
pollIntervalMs?: number;
|
|
@@ -3118,19 +3148,19 @@ interface ExecuteIntentOrderOptions {
|
|
|
3118
3148
|
*/
|
|
3119
3149
|
solver?: {
|
|
3120
3150
|
/** Only bids from this address (matched against userOp.sender) will be considered */
|
|
3121
|
-
address: HexString;
|
|
3151
|
+
address: HexString$1;
|
|
3122
3152
|
/** After this many ms without a matching bid, execution falls back to any solver */
|
|
3123
3153
|
timeoutMs: number;
|
|
3124
3154
|
};
|
|
3125
3155
|
}
|
|
3126
3156
|
/** Options for resuming execution of a previously placed intent order */
|
|
3127
3157
|
interface ResumeIntentOrderOptions {
|
|
3128
|
-
sessionPrivateKey?: HexString;
|
|
3158
|
+
sessionPrivateKey?: HexString$1;
|
|
3129
3159
|
/** Duration in ms to collect bids before selecting the best one. */
|
|
3130
3160
|
auctionTimeMs: number;
|
|
3131
3161
|
pollIntervalMs?: number;
|
|
3132
3162
|
solver?: {
|
|
3133
|
-
address: HexString;
|
|
3163
|
+
address: HexString$1;
|
|
3134
3164
|
timeoutMs: number;
|
|
3135
3165
|
};
|
|
3136
3166
|
}
|
|
@@ -3141,10 +3171,22 @@ type ERC7821Call = {
|
|
|
3141
3171
|
data: `0x${string}`;
|
|
3142
3172
|
};
|
|
3143
3173
|
|
|
3144
|
-
declare function encodeERC7821ExecuteBatch(calls: ERC7821Call[]): HexString;
|
|
3145
|
-
declare function decodeERC7821ExecuteBatch(callData: HexString): ERC7821Call[] | null;
|
|
3174
|
+
declare function encodeERC7821ExecuteBatch(calls: ERC7821Call[]): HexString$1;
|
|
3175
|
+
declare function decodeERC7821ExecuteBatch(callData: HexString$1): ERC7821Call[] | null;
|
|
3146
3176
|
|
|
3147
|
-
|
|
3177
|
+
type HexString = `0x${string}`;
|
|
3178
|
+
/**
|
|
3179
|
+
* ERC-4337 v0.8 EntryPoint, the contract whose userOpHash a bid's solver signature is taken over.
|
|
3180
|
+
* Canonical across every EVM chain we support, which is why it is a constant here rather than
|
|
3181
|
+
* something callers pass in (chain.ts carries the same address per chain as `EntryPointV08`).
|
|
3182
|
+
*/
|
|
3183
|
+
declare const ENTRY_POINT_V08_ADDRESS: "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108";
|
|
3184
|
+
/** Minimal fetch shape used by the JSON-RPC POSTs below. */
|
|
3185
|
+
type FetchLike = (url: string, init: any) => Promise<{
|
|
3186
|
+
json(): Promise<any>;
|
|
3187
|
+
}>;
|
|
3188
|
+
declare function setAggregationFetch(fetchImpl: FetchLike): void;
|
|
3189
|
+
declare const FILL_ORDER_ABI: readonly [{
|
|
3148
3190
|
readonly type: "constructor";
|
|
3149
3191
|
readonly inputs: readonly [{
|
|
3150
3192
|
readonly name: "admin";
|
|
@@ -4334,6 +4376,21 @@ declare const ABI: readonly [{
|
|
|
4334
4376
|
readonly type: "uint256";
|
|
4335
4377
|
readonly internalType: "uint256";
|
|
4336
4378
|
}];
|
|
4379
|
+
}, {
|
|
4380
|
+
readonly name: "predispatchCall";
|
|
4381
|
+
readonly type: "bytes";
|
|
4382
|
+
readonly indexed: false;
|
|
4383
|
+
readonly internalType: "bytes";
|
|
4384
|
+
}, {
|
|
4385
|
+
readonly name: "outputCall";
|
|
4386
|
+
readonly type: "bytes";
|
|
4387
|
+
readonly indexed: false;
|
|
4388
|
+
readonly internalType: "bytes";
|
|
4389
|
+
}, {
|
|
4390
|
+
readonly name: "graffiti";
|
|
4391
|
+
readonly type: "bytes32";
|
|
4392
|
+
readonly indexed: false;
|
|
4393
|
+
readonly internalType: "bytes32";
|
|
4337
4394
|
}];
|
|
4338
4395
|
readonly anonymous: false;
|
|
4339
4396
|
}, {
|
|
@@ -4533,34 +4590,1595 @@ declare const ABI: readonly [{
|
|
|
4533
4590
|
readonly name: "WrongChain";
|
|
4534
4591
|
readonly inputs: readonly [];
|
|
4535
4592
|
}];
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4593
|
+
/**
|
|
4594
|
+
* Encodes the accepted source chains (state machine ids, e.g. "EVM-8453") into the
|
|
4595
|
+
* paymasterAndData declaration blob.
|
|
4596
|
+
*/
|
|
4597
|
+
declare function encodeAcceptedSourceChains(chains: string[]): HexString;
|
|
4598
|
+
/**
|
|
4599
|
+
* Decodes a phantom bid's paymasterAndData into its declared source chains. Returns null for an
|
|
4600
|
+
* absent, unversioned or malformed blob — the legacy default — and an empty array only for an
|
|
4601
|
+
* explicit zero-entry declaration. Callers must preserve that distinction.
|
|
4602
|
+
*/
|
|
4603
|
+
declare function decodeAcceptedSourceChains(paymasterAndData: string | undefined | null): string[] | null;
|
|
4604
|
+
/** ERC-4626 vaults per chain, keyed by chain id then lowercase underlying token address. */
|
|
4605
|
+
type YieldVaultMap = Record<string, Record<string, string[]>>;
|
|
4606
|
+
/** One leg of a fill: the token the solver pays out and the amount it quoted for that leg. */
|
|
4607
|
+
interface FillLeg {
|
|
4608
|
+
outputToken: HexString;
|
|
4609
|
+
solverAmount: bigint;
|
|
4610
|
+
}
|
|
4611
|
+
interface FillData {
|
|
4612
|
+
order: Record<string, unknown>;
|
|
4613
|
+
options: Record<string, unknown>;
|
|
4614
|
+
/** Positional, matching the order's asset lists. A zero amount means the solver did not quote that leg. */
|
|
4615
|
+
legs: FillLeg[];
|
|
4616
|
+
}
|
|
4617
|
+
/**
|
|
4618
|
+
* Zips an order's output assets with the bid's quoted amounts into positional legs. A missing or
|
|
4619
|
+
* null amount is the "solver declined this leg" sentinel and becomes a zero quote. Shared by the
|
|
4620
|
+
* viem extractor below and the indexer's VM2-safe one, so the declined-leg convention has a
|
|
4621
|
+
* single home while only the ABI decode differs per environment.
|
|
4622
|
+
*/
|
|
4623
|
+
declare function zipFillLegs(assets: {
|
|
4624
|
+
token: HexString;
|
|
4625
|
+
}[], outputs: {
|
|
4626
|
+
amount: unknown;
|
|
4627
|
+
}[]): FillLeg[];
|
|
4628
|
+
interface RpcBidInfo {
|
|
4629
|
+
commitment: string;
|
|
4630
|
+
filler: string;
|
|
4631
|
+
user_op: string;
|
|
4632
|
+
}
|
|
4633
|
+
/** One solver's measured liquidity for a configured token on one chain at this snapshot. */
|
|
4634
|
+
interface LpBalance {
|
|
4635
|
+
solver: string;
|
|
4636
|
+
/** State machine id of the chain the balance was measured on (e.g. EVM-8453). */
|
|
4637
|
+
chain: string;
|
|
4638
|
+
tokenAddress: HexString;
|
|
4639
|
+
balance: bigint;
|
|
4640
|
+
}
|
|
4641
|
+
/** One verified solver behind a leg's quote. */
|
|
4642
|
+
interface PhantomLegBidder {
|
|
4643
|
+
solver: HexString;
|
|
4644
|
+
/** The solver's output-token inventory on the destination chain — its weight in the median. */
|
|
4645
|
+
weight: bigint;
|
|
4646
|
+
/**
|
|
4647
|
+
* Source chains the solver's signed paymasterAndData declaration accepts payment from. Null
|
|
4648
|
+
* when the bid carries no declaration (legacy default: all CCTP/USDT0-covered chains); an
|
|
4649
|
+
* empty array is an explicit accepts-nothing declaration.
|
|
4650
|
+
*/
|
|
4651
|
+
acceptedSources: string[] | null;
|
|
4652
|
+
}
|
|
4653
|
+
/** The aggregated price for one leg of a phantom order. */
|
|
4654
|
+
interface PhantomLegAggregation {
|
|
4655
|
+
/** Position of the leg in the order's asset lists. */
|
|
4656
|
+
legIndex: number;
|
|
4657
|
+
outputToken: HexString;
|
|
4658
|
+
lowestPrice: bigint;
|
|
4659
|
+
highestPrice: bigint;
|
|
4660
|
+
medianPrice: bigint;
|
|
4661
|
+
bidCount: number;
|
|
4662
|
+
/** The verified solvers quoting this leg; bidCount === bidders.length. */
|
|
4663
|
+
bidders: PhantomLegBidder[];
|
|
4664
|
+
}
|
|
4665
|
+
/** The aggregated result for a single phantom order's bid window. */
|
|
4666
|
+
interface PhantomAggregation {
|
|
4667
|
+
/** One entry per leg that at least one solver quoted; legs nobody quoted are absent. */
|
|
4668
|
+
legs: PhantomLegAggregation[];
|
|
4669
|
+
lpBalances: LpBalance[];
|
|
4670
|
+
}
|
|
4671
|
+
interface AggregationLogger {
|
|
4672
|
+
warn: (payload: unknown, message: string) => void;
|
|
4673
|
+
}
|
|
4674
|
+
declare function weightedMedian(entries: {
|
|
4675
|
+
price: bigint;
|
|
4676
|
+
weight: bigint;
|
|
4677
|
+
}[]): bigint;
|
|
4678
|
+
declare function extractFillData(callData: HexString, gatewayAddress: string): FillData | null;
|
|
4679
|
+
/** Derives the 192-bit bid nonce key binding a bid to an (order, sessionKey) pair. */
|
|
4680
|
+
type BidNonceKeyFn = (commitment: HexString, sessionKey: HexString) => bigint;
|
|
4681
|
+
/** Recomputes an order's commitment from the contract-shaped order decoded out of a bid's calldata. */
|
|
4682
|
+
type OrderCommitmentFn = (order: Record<string, unknown>) => HexString | null;
|
|
4683
|
+
/**
|
|
4684
|
+
* Default (viem) {@link OrderCommitmentFn}. The order comes straight out of `fillOrder`'s ABI
|
|
4685
|
+
* decode, so it is already contract-shaped and re-encoding it reproduces `keccak256(abi.encode(order))`
|
|
4686
|
+
* — the same commitment IntentGatewayV2 computes on-chain. Returns null when it cannot be computed,
|
|
4687
|
+
* which callers treat as unverifiable (fail closed).
|
|
4688
|
+
*/
|
|
4689
|
+
declare function orderCommitmentFromDecoded(order: Record<string, unknown>): HexString | null;
|
|
4690
|
+
interface BidSignature {
|
|
4691
|
+
/** The order commitment the solver signature is bound to. */
|
|
4692
|
+
commitment: HexString;
|
|
4693
|
+
/** The solver's 65-byte ECDSA signature over the userOpHash. */
|
|
4694
|
+
solverSignature: HexString;
|
|
4695
|
+
}
|
|
4696
|
+
/** Splits a bid userOp's signature into its commitment and solver signature; null if malformed. */
|
|
4697
|
+
declare function splitBidSignature(signature: HexString): BidSignature | null;
|
|
4698
|
+
/** Recovers the address that produced a bid's solver signature, or null if it cannot be recovered. */
|
|
4699
|
+
type RecoverBidSigner = (userOp: PackedUserOperation, entryPoint: HexString, chainId: bigint, solverSignature: HexString) => Promise<HexString | null>;
|
|
4700
|
+
/**
|
|
4701
|
+
* Default {@link RecoverBidSigner}: recovers over the EntryPoint v0.8 userOpHash, the digest
|
|
4702
|
+
* SolverAccount itself validates against. viem-based, so Node consumers get it for free while the
|
|
4703
|
+
* indexer injects an ethers equivalent (see the note at the top of this file).
|
|
4704
|
+
*/
|
|
4705
|
+
declare const recoverBidSignerViem: RecoverBidSigner;
|
|
4706
|
+
declare function fetchBidsForOrder(nodeUrl: string, commitment: string): Promise<RpcBidInfo[]>;
|
|
4707
|
+
/** Promise-caching balance reader produced by [`memoizedSolverBalance`]. */
|
|
4708
|
+
type SolverBalanceReader = (evmRpcUrl: string, chain: string, token: string, solver: string) => Promise<bigint>;
|
|
4709
|
+
declare function memoizedSolverBalance(yieldVaults: YieldVaultMap): SolverBalanceReader;
|
|
4710
|
+
/**
|
|
4711
|
+
* Aggregates every bid for a phantom order into a single price/liquidity snapshot.
|
|
4712
|
+
*
|
|
4713
|
+
* Fetches the live bids via `intents_getBidsForOrder` and reads each filler's quoted output amount.
|
|
4714
|
+
* Only bids that {@link isVerifiedSolverBid} accepts are counted — a bid from anyone who is not one
|
|
4715
|
+
* of our delegated solvers, or whose signature was not produced for this order, is dropped rather
|
|
4716
|
+
* than allowed to move the price. The liquidity-weighted median then weights every surviving quote by
|
|
4717
|
+
* the solver's balance of the output token on the destination chain, so a solver that can't actually
|
|
4718
|
+
* deliver size carries little or no weight — which is why no fill simulation is needed to filter
|
|
4719
|
+
* unfillable quotes. For each bidding solver it also records a full liquidity sweep — every
|
|
4720
|
+
* configured yield-vault token on every supported chain (raw ERC-20 + vault positions). Returns
|
|
4721
|
+
* `null` when no bid survives verification.
|
|
4722
|
+
*
|
|
4723
|
+
* `extractFill` decodes a bid's ERC-7821 calldata into the fill's order/output and `recoverSigner`
|
|
4724
|
+
* recovers its solver signature; both default to the viem implementations, but the indexer injects
|
|
4725
|
+
* VM2-safe variants (viem's keccak throws in the SubQuery sandbox).
|
|
4726
|
+
*/
|
|
4727
|
+
declare function aggregatePhantomBids(params: {
|
|
4728
|
+
nodeUrl: string;
|
|
4729
|
+
/** RPC URL per supported EVM chain (stateMachineId -> url); must include the destination chain. */
|
|
4730
|
+
evmRpcUrls: Record<string, string>;
|
|
4731
|
+
chain: string;
|
|
4732
|
+
gatewayAddress: string;
|
|
4733
|
+
commitment: string;
|
|
4734
|
+
yieldVaults: YieldVaultMap;
|
|
4735
|
+
/** SolverAccount on `chain` that our solvers delegate to; bids from anyone else are dropped. */
|
|
4736
|
+
solverAccount: string;
|
|
4737
|
+
extractFill?: (callData: HexString, gatewayAddress: string) => FillData | null;
|
|
4738
|
+
recoverSigner?: RecoverBidSigner;
|
|
4739
|
+
bidNonceKey?: BidNonceKeyFn;
|
|
4740
|
+
orderCommitment?: OrderCommitmentFn;
|
|
4741
|
+
/**
|
|
4742
|
+
* Balance reader shared across runs; defaults to a fresh per-run memo. Pass one built with
|
|
4743
|
+
* `memoizedSolverBalance` when aggregating several same-block orders, and build it from the
|
|
4744
|
+
* same `yieldVaults` passed here — the memo bakes in the vault map its balances include.
|
|
4745
|
+
*/
|
|
4746
|
+
getBalance?: SolverBalanceReader;
|
|
4747
|
+
logger?: AggregationLogger;
|
|
4748
|
+
}): Promise<PhantomAggregation | null>;
|
|
4749
|
+
|
|
4750
|
+
declare const ABI: readonly [{
|
|
4751
|
+
readonly type: "constructor";
|
|
4752
|
+
readonly inputs: readonly [{
|
|
4753
|
+
readonly name: "admin";
|
|
4754
|
+
readonly type: "address";
|
|
4755
|
+
readonly internalType: "address";
|
|
4756
|
+
}];
|
|
4757
|
+
readonly stateMutability: "nonpayable";
|
|
4758
|
+
}, {
|
|
4759
|
+
readonly type: "receive";
|
|
4760
|
+
readonly stateMutability: "payable";
|
|
4761
|
+
}, {
|
|
4762
|
+
readonly type: "function";
|
|
4763
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
4764
|
+
readonly inputs: readonly [];
|
|
4765
|
+
readonly outputs: readonly [{
|
|
4766
|
+
readonly name: "";
|
|
4767
|
+
readonly type: "bytes32";
|
|
4768
|
+
readonly internalType: "bytes32";
|
|
4769
|
+
}];
|
|
4770
|
+
readonly stateMutability: "view";
|
|
4771
|
+
}, {
|
|
4772
|
+
readonly type: "function";
|
|
4773
|
+
readonly name: "SELECT_SOLVER_TYPEHASH";
|
|
4774
|
+
readonly inputs: readonly [];
|
|
4775
|
+
readonly outputs: readonly [{
|
|
4776
|
+
readonly name: "";
|
|
4777
|
+
readonly type: "bytes32";
|
|
4778
|
+
readonly internalType: "bytes32";
|
|
4779
|
+
}];
|
|
4780
|
+
readonly stateMutability: "view";
|
|
4781
|
+
}, {
|
|
4782
|
+
readonly type: "function";
|
|
4783
|
+
readonly name: "_destinationProtocolFees";
|
|
4784
|
+
readonly inputs: readonly [{
|
|
4785
|
+
readonly name: "";
|
|
4786
|
+
readonly type: "bytes32";
|
|
4787
|
+
readonly internalType: "bytes32";
|
|
4788
|
+
}];
|
|
4789
|
+
readonly outputs: readonly [{
|
|
4790
|
+
readonly name: "";
|
|
4791
|
+
readonly type: "uint256";
|
|
4792
|
+
readonly internalType: "uint256";
|
|
4793
|
+
}];
|
|
4794
|
+
readonly stateMutability: "view";
|
|
4795
|
+
}, {
|
|
4796
|
+
readonly type: "function";
|
|
4797
|
+
readonly name: "_filled";
|
|
4798
|
+
readonly inputs: readonly [{
|
|
4799
|
+
readonly name: "";
|
|
4800
|
+
readonly type: "bytes32";
|
|
4801
|
+
readonly internalType: "bytes32";
|
|
4802
|
+
}];
|
|
4803
|
+
readonly outputs: readonly [{
|
|
4804
|
+
readonly name: "";
|
|
4805
|
+
readonly type: "address";
|
|
4806
|
+
readonly internalType: "address";
|
|
4807
|
+
}];
|
|
4808
|
+
readonly stateMutability: "view";
|
|
4809
|
+
}, {
|
|
4810
|
+
readonly type: "function";
|
|
4811
|
+
readonly name: "_instances";
|
|
4812
|
+
readonly inputs: readonly [{
|
|
4813
|
+
readonly name: "";
|
|
4814
|
+
readonly type: "bytes32";
|
|
4815
|
+
readonly internalType: "bytes32";
|
|
4816
|
+
}];
|
|
4817
|
+
readonly outputs: readonly [{
|
|
4818
|
+
readonly name: "";
|
|
4819
|
+
readonly type: "address";
|
|
4820
|
+
readonly internalType: "address";
|
|
4821
|
+
}];
|
|
4822
|
+
readonly stateMutability: "view";
|
|
4823
|
+
}, {
|
|
4824
|
+
readonly type: "function";
|
|
4825
|
+
readonly name: "_nonce";
|
|
4826
|
+
readonly inputs: readonly [];
|
|
4827
|
+
readonly outputs: readonly [{
|
|
4828
|
+
readonly name: "";
|
|
4829
|
+
readonly type: "uint256";
|
|
4830
|
+
readonly internalType: "uint256";
|
|
4831
|
+
}];
|
|
4832
|
+
readonly stateMutability: "view";
|
|
4833
|
+
}, {
|
|
4834
|
+
readonly type: "function";
|
|
4835
|
+
readonly name: "_orders";
|
|
4836
|
+
readonly inputs: readonly [{
|
|
4837
|
+
readonly name: "";
|
|
4838
|
+
readonly type: "bytes32";
|
|
4839
|
+
readonly internalType: "bytes32";
|
|
4548
4840
|
}, {
|
|
4549
|
-
readonly
|
|
4550
|
-
readonly
|
|
4551
|
-
readonly
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4841
|
+
readonly name: "";
|
|
4842
|
+
readonly type: "address";
|
|
4843
|
+
readonly internalType: "address";
|
|
4844
|
+
}];
|
|
4845
|
+
readonly outputs: readonly [{
|
|
4846
|
+
readonly name: "";
|
|
4847
|
+
readonly type: "uint256";
|
|
4848
|
+
readonly internalType: "uint256";
|
|
4849
|
+
}];
|
|
4850
|
+
readonly stateMutability: "view";
|
|
4851
|
+
}, {
|
|
4852
|
+
readonly type: "function";
|
|
4853
|
+
readonly name: "_partialFills";
|
|
4854
|
+
readonly inputs: readonly [{
|
|
4855
|
+
readonly name: "";
|
|
4856
|
+
readonly type: "bytes32";
|
|
4857
|
+
readonly internalType: "bytes32";
|
|
4558
4858
|
}, {
|
|
4559
|
-
readonly
|
|
4560
|
-
readonly
|
|
4561
|
-
readonly
|
|
4562
|
-
|
|
4563
|
-
|
|
4859
|
+
readonly name: "";
|
|
4860
|
+
readonly type: "bytes32";
|
|
4861
|
+
readonly internalType: "bytes32";
|
|
4862
|
+
}];
|
|
4863
|
+
readonly outputs: readonly [{
|
|
4864
|
+
readonly name: "";
|
|
4865
|
+
readonly type: "uint256";
|
|
4866
|
+
readonly internalType: "uint256";
|
|
4867
|
+
}];
|
|
4868
|
+
readonly stateMutability: "view";
|
|
4869
|
+
}, {
|
|
4870
|
+
readonly type: "function";
|
|
4871
|
+
readonly name: "calculateCommitmentSlotHash";
|
|
4872
|
+
readonly inputs: readonly [{
|
|
4873
|
+
readonly name: "commitment";
|
|
4874
|
+
readonly type: "bytes32";
|
|
4875
|
+
readonly internalType: "bytes32";
|
|
4876
|
+
}];
|
|
4877
|
+
readonly outputs: readonly [{
|
|
4878
|
+
readonly name: "";
|
|
4879
|
+
readonly type: "bytes";
|
|
4880
|
+
readonly internalType: "bytes";
|
|
4881
|
+
}];
|
|
4882
|
+
readonly stateMutability: "pure";
|
|
4883
|
+
}, {
|
|
4884
|
+
readonly type: "function";
|
|
4885
|
+
readonly name: "cancelOrder";
|
|
4886
|
+
readonly inputs: readonly [{
|
|
4887
|
+
readonly name: "order";
|
|
4888
|
+
readonly type: "tuple";
|
|
4889
|
+
readonly internalType: "struct Order";
|
|
4890
|
+
readonly components: readonly [{
|
|
4891
|
+
readonly name: "user";
|
|
4892
|
+
readonly type: "bytes32";
|
|
4893
|
+
readonly internalType: "bytes32";
|
|
4894
|
+
}, {
|
|
4895
|
+
readonly name: "source";
|
|
4896
|
+
readonly type: "bytes";
|
|
4897
|
+
readonly internalType: "bytes";
|
|
4898
|
+
}, {
|
|
4899
|
+
readonly name: "destination";
|
|
4900
|
+
readonly type: "bytes";
|
|
4901
|
+
readonly internalType: "bytes";
|
|
4902
|
+
}, {
|
|
4903
|
+
readonly name: "deadline";
|
|
4904
|
+
readonly type: "uint256";
|
|
4905
|
+
readonly internalType: "uint256";
|
|
4906
|
+
}, {
|
|
4907
|
+
readonly name: "nonce";
|
|
4908
|
+
readonly type: "uint256";
|
|
4909
|
+
readonly internalType: "uint256";
|
|
4910
|
+
}, {
|
|
4911
|
+
readonly name: "fees";
|
|
4912
|
+
readonly type: "uint256";
|
|
4913
|
+
readonly internalType: "uint256";
|
|
4914
|
+
}, {
|
|
4915
|
+
readonly name: "session";
|
|
4916
|
+
readonly type: "address";
|
|
4917
|
+
readonly internalType: "address";
|
|
4918
|
+
}, {
|
|
4919
|
+
readonly name: "predispatch";
|
|
4920
|
+
readonly type: "tuple";
|
|
4921
|
+
readonly internalType: "struct DispatchInfo";
|
|
4922
|
+
readonly components: readonly [{
|
|
4923
|
+
readonly name: "assets";
|
|
4924
|
+
readonly type: "tuple[]";
|
|
4925
|
+
readonly internalType: "struct TokenInfo[]";
|
|
4926
|
+
readonly components: readonly [{
|
|
4927
|
+
readonly name: "token";
|
|
4928
|
+
readonly type: "bytes32";
|
|
4929
|
+
readonly internalType: "bytes32";
|
|
4930
|
+
}, {
|
|
4931
|
+
readonly name: "amount";
|
|
4932
|
+
readonly type: "uint256";
|
|
4933
|
+
readonly internalType: "uint256";
|
|
4934
|
+
}];
|
|
4935
|
+
}, {
|
|
4936
|
+
readonly name: "call";
|
|
4937
|
+
readonly type: "bytes";
|
|
4938
|
+
readonly internalType: "bytes";
|
|
4939
|
+
}];
|
|
4940
|
+
}, {
|
|
4941
|
+
readonly name: "inputs";
|
|
4942
|
+
readonly type: "tuple[]";
|
|
4943
|
+
readonly internalType: "struct TokenInfo[]";
|
|
4944
|
+
readonly components: readonly [{
|
|
4945
|
+
readonly name: "token";
|
|
4946
|
+
readonly type: "bytes32";
|
|
4947
|
+
readonly internalType: "bytes32";
|
|
4948
|
+
}, {
|
|
4949
|
+
readonly name: "amount";
|
|
4950
|
+
readonly type: "uint256";
|
|
4951
|
+
readonly internalType: "uint256";
|
|
4952
|
+
}];
|
|
4953
|
+
}, {
|
|
4954
|
+
readonly name: "output";
|
|
4955
|
+
readonly type: "tuple";
|
|
4956
|
+
readonly internalType: "struct PaymentInfo";
|
|
4957
|
+
readonly components: readonly [{
|
|
4958
|
+
readonly name: "beneficiary";
|
|
4959
|
+
readonly type: "bytes32";
|
|
4960
|
+
readonly internalType: "bytes32";
|
|
4961
|
+
}, {
|
|
4962
|
+
readonly name: "assets";
|
|
4963
|
+
readonly type: "tuple[]";
|
|
4964
|
+
readonly internalType: "struct TokenInfo[]";
|
|
4965
|
+
readonly components: readonly [{
|
|
4966
|
+
readonly name: "token";
|
|
4967
|
+
readonly type: "bytes32";
|
|
4968
|
+
readonly internalType: "bytes32";
|
|
4969
|
+
}, {
|
|
4970
|
+
readonly name: "amount";
|
|
4971
|
+
readonly type: "uint256";
|
|
4972
|
+
readonly internalType: "uint256";
|
|
4973
|
+
}];
|
|
4974
|
+
}, {
|
|
4975
|
+
readonly name: "call";
|
|
4976
|
+
readonly type: "bytes";
|
|
4977
|
+
readonly internalType: "bytes";
|
|
4978
|
+
}];
|
|
4979
|
+
}];
|
|
4980
|
+
}, {
|
|
4981
|
+
readonly name: "options";
|
|
4982
|
+
readonly type: "tuple";
|
|
4983
|
+
readonly internalType: "struct CancelOptions";
|
|
4984
|
+
readonly components: readonly [{
|
|
4985
|
+
readonly name: "relayerFee";
|
|
4986
|
+
readonly type: "uint256";
|
|
4987
|
+
readonly internalType: "uint256";
|
|
4988
|
+
}, {
|
|
4989
|
+
readonly name: "height";
|
|
4990
|
+
readonly type: "uint64";
|
|
4991
|
+
readonly internalType: "uint64";
|
|
4992
|
+
}];
|
|
4993
|
+
}];
|
|
4994
|
+
readonly outputs: readonly [];
|
|
4995
|
+
readonly stateMutability: "payable";
|
|
4996
|
+
}, {
|
|
4997
|
+
readonly type: "function";
|
|
4998
|
+
readonly name: "eip712Domain";
|
|
4999
|
+
readonly inputs: readonly [];
|
|
5000
|
+
readonly outputs: readonly [{
|
|
5001
|
+
readonly name: "fields";
|
|
5002
|
+
readonly type: "bytes1";
|
|
5003
|
+
readonly internalType: "bytes1";
|
|
5004
|
+
}, {
|
|
5005
|
+
readonly name: "name";
|
|
5006
|
+
readonly type: "string";
|
|
5007
|
+
readonly internalType: "string";
|
|
5008
|
+
}, {
|
|
5009
|
+
readonly name: "version";
|
|
5010
|
+
readonly type: "string";
|
|
5011
|
+
readonly internalType: "string";
|
|
5012
|
+
}, {
|
|
5013
|
+
readonly name: "chainId";
|
|
5014
|
+
readonly type: "uint256";
|
|
5015
|
+
readonly internalType: "uint256";
|
|
5016
|
+
}, {
|
|
5017
|
+
readonly name: "verifyingContract";
|
|
5018
|
+
readonly type: "address";
|
|
5019
|
+
readonly internalType: "address";
|
|
5020
|
+
}, {
|
|
5021
|
+
readonly name: "salt";
|
|
5022
|
+
readonly type: "bytes32";
|
|
5023
|
+
readonly internalType: "bytes32";
|
|
5024
|
+
}, {
|
|
5025
|
+
readonly name: "extensions";
|
|
5026
|
+
readonly type: "uint256[]";
|
|
5027
|
+
readonly internalType: "uint256[]";
|
|
5028
|
+
}];
|
|
5029
|
+
readonly stateMutability: "view";
|
|
5030
|
+
}, {
|
|
5031
|
+
readonly type: "function";
|
|
5032
|
+
readonly name: "fillOrder";
|
|
5033
|
+
readonly inputs: readonly [{
|
|
5034
|
+
readonly name: "order";
|
|
5035
|
+
readonly type: "tuple";
|
|
5036
|
+
readonly internalType: "struct Order";
|
|
5037
|
+
readonly components: readonly [{
|
|
5038
|
+
readonly name: "user";
|
|
5039
|
+
readonly type: "bytes32";
|
|
5040
|
+
readonly internalType: "bytes32";
|
|
5041
|
+
}, {
|
|
5042
|
+
readonly name: "source";
|
|
5043
|
+
readonly type: "bytes";
|
|
5044
|
+
readonly internalType: "bytes";
|
|
5045
|
+
}, {
|
|
5046
|
+
readonly name: "destination";
|
|
5047
|
+
readonly type: "bytes";
|
|
5048
|
+
readonly internalType: "bytes";
|
|
5049
|
+
}, {
|
|
5050
|
+
readonly name: "deadline";
|
|
5051
|
+
readonly type: "uint256";
|
|
5052
|
+
readonly internalType: "uint256";
|
|
5053
|
+
}, {
|
|
5054
|
+
readonly name: "nonce";
|
|
5055
|
+
readonly type: "uint256";
|
|
5056
|
+
readonly internalType: "uint256";
|
|
5057
|
+
}, {
|
|
5058
|
+
readonly name: "fees";
|
|
5059
|
+
readonly type: "uint256";
|
|
5060
|
+
readonly internalType: "uint256";
|
|
5061
|
+
}, {
|
|
5062
|
+
readonly name: "session";
|
|
5063
|
+
readonly type: "address";
|
|
5064
|
+
readonly internalType: "address";
|
|
5065
|
+
}, {
|
|
5066
|
+
readonly name: "predispatch";
|
|
5067
|
+
readonly type: "tuple";
|
|
5068
|
+
readonly internalType: "struct DispatchInfo";
|
|
5069
|
+
readonly components: readonly [{
|
|
5070
|
+
readonly name: "assets";
|
|
5071
|
+
readonly type: "tuple[]";
|
|
5072
|
+
readonly internalType: "struct TokenInfo[]";
|
|
5073
|
+
readonly components: readonly [{
|
|
5074
|
+
readonly name: "token";
|
|
5075
|
+
readonly type: "bytes32";
|
|
5076
|
+
readonly internalType: "bytes32";
|
|
5077
|
+
}, {
|
|
5078
|
+
readonly name: "amount";
|
|
5079
|
+
readonly type: "uint256";
|
|
5080
|
+
readonly internalType: "uint256";
|
|
5081
|
+
}];
|
|
5082
|
+
}, {
|
|
5083
|
+
readonly name: "call";
|
|
5084
|
+
readonly type: "bytes";
|
|
5085
|
+
readonly internalType: "bytes";
|
|
5086
|
+
}];
|
|
5087
|
+
}, {
|
|
5088
|
+
readonly name: "inputs";
|
|
5089
|
+
readonly type: "tuple[]";
|
|
5090
|
+
readonly internalType: "struct TokenInfo[]";
|
|
5091
|
+
readonly components: readonly [{
|
|
5092
|
+
readonly name: "token";
|
|
5093
|
+
readonly type: "bytes32";
|
|
5094
|
+
readonly internalType: "bytes32";
|
|
5095
|
+
}, {
|
|
5096
|
+
readonly name: "amount";
|
|
5097
|
+
readonly type: "uint256";
|
|
5098
|
+
readonly internalType: "uint256";
|
|
5099
|
+
}];
|
|
5100
|
+
}, {
|
|
5101
|
+
readonly name: "output";
|
|
5102
|
+
readonly type: "tuple";
|
|
5103
|
+
readonly internalType: "struct PaymentInfo";
|
|
5104
|
+
readonly components: readonly [{
|
|
5105
|
+
readonly name: "beneficiary";
|
|
5106
|
+
readonly type: "bytes32";
|
|
5107
|
+
readonly internalType: "bytes32";
|
|
5108
|
+
}, {
|
|
5109
|
+
readonly name: "assets";
|
|
5110
|
+
readonly type: "tuple[]";
|
|
5111
|
+
readonly internalType: "struct TokenInfo[]";
|
|
5112
|
+
readonly components: readonly [{
|
|
5113
|
+
readonly name: "token";
|
|
5114
|
+
readonly type: "bytes32";
|
|
5115
|
+
readonly internalType: "bytes32";
|
|
5116
|
+
}, {
|
|
5117
|
+
readonly name: "amount";
|
|
5118
|
+
readonly type: "uint256";
|
|
5119
|
+
readonly internalType: "uint256";
|
|
5120
|
+
}];
|
|
5121
|
+
}, {
|
|
5122
|
+
readonly name: "call";
|
|
5123
|
+
readonly type: "bytes";
|
|
5124
|
+
readonly internalType: "bytes";
|
|
5125
|
+
}];
|
|
5126
|
+
}];
|
|
5127
|
+
}, {
|
|
5128
|
+
readonly name: "options";
|
|
5129
|
+
readonly type: "tuple";
|
|
5130
|
+
readonly internalType: "struct FillOptions";
|
|
5131
|
+
readonly components: readonly [{
|
|
5132
|
+
readonly name: "relayerFee";
|
|
5133
|
+
readonly type: "uint256";
|
|
5134
|
+
readonly internalType: "uint256";
|
|
5135
|
+
}, {
|
|
5136
|
+
readonly name: "nativeDispatchFee";
|
|
5137
|
+
readonly type: "uint256";
|
|
5138
|
+
readonly internalType: "uint256";
|
|
5139
|
+
}, {
|
|
5140
|
+
readonly name: "outputs";
|
|
5141
|
+
readonly type: "tuple[]";
|
|
5142
|
+
readonly internalType: "struct TokenInfo[]";
|
|
5143
|
+
readonly components: readonly [{
|
|
5144
|
+
readonly name: "token";
|
|
5145
|
+
readonly type: "bytes32";
|
|
5146
|
+
readonly internalType: "bytes32";
|
|
5147
|
+
}, {
|
|
5148
|
+
readonly name: "amount";
|
|
5149
|
+
readonly type: "uint256";
|
|
5150
|
+
readonly internalType: "uint256";
|
|
5151
|
+
}];
|
|
5152
|
+
}];
|
|
5153
|
+
}];
|
|
5154
|
+
readonly outputs: readonly [];
|
|
5155
|
+
readonly stateMutability: "payable";
|
|
5156
|
+
}, {
|
|
5157
|
+
readonly type: "function";
|
|
5158
|
+
readonly name: "host";
|
|
5159
|
+
readonly inputs: readonly [];
|
|
5160
|
+
readonly outputs: readonly [{
|
|
5161
|
+
readonly name: "";
|
|
5162
|
+
readonly type: "address";
|
|
5163
|
+
readonly internalType: "address";
|
|
5164
|
+
}];
|
|
5165
|
+
readonly stateMutability: "view";
|
|
5166
|
+
}, {
|
|
5167
|
+
readonly type: "function";
|
|
5168
|
+
readonly name: "instance";
|
|
5169
|
+
readonly inputs: readonly [{
|
|
5170
|
+
readonly name: "stateMachineId";
|
|
5171
|
+
readonly type: "bytes";
|
|
5172
|
+
readonly internalType: "bytes";
|
|
5173
|
+
}];
|
|
5174
|
+
readonly outputs: readonly [{
|
|
5175
|
+
readonly name: "";
|
|
5176
|
+
readonly type: "address";
|
|
5177
|
+
readonly internalType: "address";
|
|
5178
|
+
}];
|
|
5179
|
+
readonly stateMutability: "view";
|
|
5180
|
+
}, {
|
|
5181
|
+
readonly type: "function";
|
|
5182
|
+
readonly name: "onAccept";
|
|
5183
|
+
readonly inputs: readonly [{
|
|
5184
|
+
readonly name: "incoming";
|
|
5185
|
+
readonly type: "tuple";
|
|
5186
|
+
readonly internalType: "struct IncomingPostRequest";
|
|
5187
|
+
readonly components: readonly [{
|
|
5188
|
+
readonly name: "request";
|
|
5189
|
+
readonly type: "tuple";
|
|
5190
|
+
readonly internalType: "struct PostRequest";
|
|
5191
|
+
readonly components: readonly [{
|
|
5192
|
+
readonly name: "source";
|
|
5193
|
+
readonly type: "bytes";
|
|
5194
|
+
readonly internalType: "bytes";
|
|
5195
|
+
}, {
|
|
5196
|
+
readonly name: "dest";
|
|
5197
|
+
readonly type: "bytes";
|
|
5198
|
+
readonly internalType: "bytes";
|
|
5199
|
+
}, {
|
|
5200
|
+
readonly name: "nonce";
|
|
5201
|
+
readonly type: "uint64";
|
|
5202
|
+
readonly internalType: "uint64";
|
|
5203
|
+
}, {
|
|
5204
|
+
readonly name: "from";
|
|
5205
|
+
readonly type: "bytes";
|
|
5206
|
+
readonly internalType: "bytes";
|
|
5207
|
+
}, {
|
|
5208
|
+
readonly name: "to";
|
|
5209
|
+
readonly type: "bytes";
|
|
5210
|
+
readonly internalType: "bytes";
|
|
5211
|
+
}, {
|
|
5212
|
+
readonly name: "timeoutTimestamp";
|
|
5213
|
+
readonly type: "uint64";
|
|
5214
|
+
readonly internalType: "uint64";
|
|
5215
|
+
}, {
|
|
5216
|
+
readonly name: "body";
|
|
5217
|
+
readonly type: "bytes";
|
|
5218
|
+
readonly internalType: "bytes";
|
|
5219
|
+
}];
|
|
5220
|
+
}, {
|
|
5221
|
+
readonly name: "relayer";
|
|
5222
|
+
readonly type: "address";
|
|
5223
|
+
readonly internalType: "address";
|
|
5224
|
+
}];
|
|
5225
|
+
}];
|
|
5226
|
+
readonly outputs: readonly [];
|
|
5227
|
+
readonly stateMutability: "nonpayable";
|
|
5228
|
+
}, {
|
|
5229
|
+
readonly type: "function";
|
|
5230
|
+
readonly name: "onGetResponse";
|
|
5231
|
+
readonly inputs: readonly [{
|
|
5232
|
+
readonly name: "incoming";
|
|
5233
|
+
readonly type: "tuple";
|
|
5234
|
+
readonly internalType: "struct IncomingGetResponse";
|
|
5235
|
+
readonly components: readonly [{
|
|
5236
|
+
readonly name: "response";
|
|
5237
|
+
readonly type: "tuple";
|
|
5238
|
+
readonly internalType: "struct GetResponse";
|
|
5239
|
+
readonly components: readonly [{
|
|
5240
|
+
readonly name: "request";
|
|
5241
|
+
readonly type: "tuple";
|
|
5242
|
+
readonly internalType: "struct GetRequest";
|
|
5243
|
+
readonly components: readonly [{
|
|
5244
|
+
readonly name: "source";
|
|
5245
|
+
readonly type: "bytes";
|
|
5246
|
+
readonly internalType: "bytes";
|
|
5247
|
+
}, {
|
|
5248
|
+
readonly name: "dest";
|
|
5249
|
+
readonly type: "bytes";
|
|
5250
|
+
readonly internalType: "bytes";
|
|
5251
|
+
}, {
|
|
5252
|
+
readonly name: "nonce";
|
|
5253
|
+
readonly type: "uint64";
|
|
5254
|
+
readonly internalType: "uint64";
|
|
5255
|
+
}, {
|
|
5256
|
+
readonly name: "from";
|
|
5257
|
+
readonly type: "bytes";
|
|
5258
|
+
readonly internalType: "bytes";
|
|
5259
|
+
}, {
|
|
5260
|
+
readonly name: "timeoutTimestamp";
|
|
5261
|
+
readonly type: "uint64";
|
|
5262
|
+
readonly internalType: "uint64";
|
|
5263
|
+
}, {
|
|
5264
|
+
readonly name: "keys";
|
|
5265
|
+
readonly type: "bytes[]";
|
|
5266
|
+
readonly internalType: "bytes[]";
|
|
5267
|
+
}, {
|
|
5268
|
+
readonly name: "height";
|
|
5269
|
+
readonly type: "uint64";
|
|
5270
|
+
readonly internalType: "uint64";
|
|
5271
|
+
}, {
|
|
5272
|
+
readonly name: "context";
|
|
5273
|
+
readonly type: "bytes";
|
|
5274
|
+
readonly internalType: "bytes";
|
|
5275
|
+
}];
|
|
5276
|
+
}, {
|
|
5277
|
+
readonly name: "values";
|
|
5278
|
+
readonly type: "tuple[]";
|
|
5279
|
+
readonly internalType: "struct StorageValue[]";
|
|
5280
|
+
readonly components: readonly [{
|
|
5281
|
+
readonly name: "key";
|
|
5282
|
+
readonly type: "bytes";
|
|
5283
|
+
readonly internalType: "bytes";
|
|
5284
|
+
}, {
|
|
5285
|
+
readonly name: "value";
|
|
5286
|
+
readonly type: "bytes";
|
|
5287
|
+
readonly internalType: "bytes";
|
|
5288
|
+
}];
|
|
5289
|
+
}];
|
|
5290
|
+
}, {
|
|
5291
|
+
readonly name: "relayer";
|
|
5292
|
+
readonly type: "address";
|
|
5293
|
+
readonly internalType: "address";
|
|
5294
|
+
}];
|
|
5295
|
+
}];
|
|
5296
|
+
readonly outputs: readonly [];
|
|
5297
|
+
readonly stateMutability: "nonpayable";
|
|
5298
|
+
}, {
|
|
5299
|
+
readonly type: "function";
|
|
5300
|
+
readonly name: "onGetTimeout";
|
|
5301
|
+
readonly inputs: readonly [{
|
|
5302
|
+
readonly name: "";
|
|
5303
|
+
readonly type: "tuple";
|
|
5304
|
+
readonly internalType: "struct GetRequestTimeout";
|
|
5305
|
+
readonly components: readonly [{
|
|
5306
|
+
readonly name: "request";
|
|
5307
|
+
readonly type: "tuple";
|
|
5308
|
+
readonly internalType: "struct GetRequest";
|
|
5309
|
+
readonly components: readonly [{
|
|
5310
|
+
readonly name: "source";
|
|
5311
|
+
readonly type: "bytes";
|
|
5312
|
+
readonly internalType: "bytes";
|
|
5313
|
+
}, {
|
|
5314
|
+
readonly name: "dest";
|
|
5315
|
+
readonly type: "bytes";
|
|
5316
|
+
readonly internalType: "bytes";
|
|
5317
|
+
}, {
|
|
5318
|
+
readonly name: "nonce";
|
|
5319
|
+
readonly type: "uint64";
|
|
5320
|
+
readonly internalType: "uint64";
|
|
5321
|
+
}, {
|
|
5322
|
+
readonly name: "from";
|
|
5323
|
+
readonly type: "bytes";
|
|
5324
|
+
readonly internalType: "bytes";
|
|
5325
|
+
}, {
|
|
5326
|
+
readonly name: "timeoutTimestamp";
|
|
5327
|
+
readonly type: "uint64";
|
|
5328
|
+
readonly internalType: "uint64";
|
|
5329
|
+
}, {
|
|
5330
|
+
readonly name: "keys";
|
|
5331
|
+
readonly type: "bytes[]";
|
|
5332
|
+
readonly internalType: "bytes[]";
|
|
5333
|
+
}, {
|
|
5334
|
+
readonly name: "height";
|
|
5335
|
+
readonly type: "uint64";
|
|
5336
|
+
readonly internalType: "uint64";
|
|
5337
|
+
}, {
|
|
5338
|
+
readonly name: "context";
|
|
5339
|
+
readonly type: "bytes";
|
|
5340
|
+
readonly internalType: "bytes";
|
|
5341
|
+
}];
|
|
5342
|
+
}, {
|
|
5343
|
+
readonly name: "relayer";
|
|
5344
|
+
readonly type: "address";
|
|
5345
|
+
readonly internalType: "address";
|
|
5346
|
+
}];
|
|
5347
|
+
}];
|
|
5348
|
+
readonly outputs: readonly [];
|
|
5349
|
+
readonly stateMutability: "nonpayable";
|
|
5350
|
+
}, {
|
|
5351
|
+
readonly type: "function";
|
|
5352
|
+
readonly name: "onPostRequestTimeout";
|
|
5353
|
+
readonly inputs: readonly [{
|
|
5354
|
+
readonly name: "";
|
|
5355
|
+
readonly type: "tuple";
|
|
5356
|
+
readonly internalType: "struct PostRequestTimeout";
|
|
5357
|
+
readonly components: readonly [{
|
|
5358
|
+
readonly name: "request";
|
|
5359
|
+
readonly type: "tuple";
|
|
5360
|
+
readonly internalType: "struct PostRequest";
|
|
5361
|
+
readonly components: readonly [{
|
|
5362
|
+
readonly name: "source";
|
|
5363
|
+
readonly type: "bytes";
|
|
5364
|
+
readonly internalType: "bytes";
|
|
5365
|
+
}, {
|
|
5366
|
+
readonly name: "dest";
|
|
5367
|
+
readonly type: "bytes";
|
|
5368
|
+
readonly internalType: "bytes";
|
|
5369
|
+
}, {
|
|
5370
|
+
readonly name: "nonce";
|
|
5371
|
+
readonly type: "uint64";
|
|
5372
|
+
readonly internalType: "uint64";
|
|
5373
|
+
}, {
|
|
5374
|
+
readonly name: "from";
|
|
5375
|
+
readonly type: "bytes";
|
|
5376
|
+
readonly internalType: "bytes";
|
|
5377
|
+
}, {
|
|
5378
|
+
readonly name: "to";
|
|
5379
|
+
readonly type: "bytes";
|
|
5380
|
+
readonly internalType: "bytes";
|
|
5381
|
+
}, {
|
|
5382
|
+
readonly name: "timeoutTimestamp";
|
|
5383
|
+
readonly type: "uint64";
|
|
5384
|
+
readonly internalType: "uint64";
|
|
5385
|
+
}, {
|
|
5386
|
+
readonly name: "body";
|
|
5387
|
+
readonly type: "bytes";
|
|
5388
|
+
readonly internalType: "bytes";
|
|
5389
|
+
}];
|
|
5390
|
+
}, {
|
|
5391
|
+
readonly name: "relayer";
|
|
5392
|
+
readonly type: "address";
|
|
5393
|
+
readonly internalType: "address";
|
|
5394
|
+
}];
|
|
5395
|
+
}];
|
|
5396
|
+
readonly outputs: readonly [];
|
|
5397
|
+
readonly stateMutability: "nonpayable";
|
|
5398
|
+
}, {
|
|
5399
|
+
readonly type: "function";
|
|
5400
|
+
readonly name: "params";
|
|
5401
|
+
readonly inputs: readonly [];
|
|
5402
|
+
readonly outputs: readonly [{
|
|
5403
|
+
readonly name: "";
|
|
5404
|
+
readonly type: "tuple";
|
|
5405
|
+
readonly internalType: "struct Params";
|
|
5406
|
+
readonly components: readonly [{
|
|
5407
|
+
readonly name: "host";
|
|
5408
|
+
readonly type: "address";
|
|
5409
|
+
readonly internalType: "address";
|
|
5410
|
+
}, {
|
|
5411
|
+
readonly name: "dispatcher";
|
|
5412
|
+
readonly type: "address";
|
|
5413
|
+
readonly internalType: "address";
|
|
5414
|
+
}, {
|
|
5415
|
+
readonly name: "solverSelection";
|
|
5416
|
+
readonly type: "bool";
|
|
5417
|
+
readonly internalType: "bool";
|
|
5418
|
+
}, {
|
|
5419
|
+
readonly name: "surplusShareBps";
|
|
5420
|
+
readonly type: "uint256";
|
|
5421
|
+
readonly internalType: "uint256";
|
|
5422
|
+
}, {
|
|
5423
|
+
readonly name: "protocolFeeBps";
|
|
5424
|
+
readonly type: "uint256";
|
|
5425
|
+
readonly internalType: "uint256";
|
|
5426
|
+
}, {
|
|
5427
|
+
readonly name: "priceOracle";
|
|
5428
|
+
readonly type: "address";
|
|
5429
|
+
readonly internalType: "address";
|
|
5430
|
+
}];
|
|
5431
|
+
}];
|
|
5432
|
+
readonly stateMutability: "view";
|
|
5433
|
+
}, {
|
|
5434
|
+
readonly type: "function";
|
|
5435
|
+
readonly name: "placeOrder";
|
|
5436
|
+
readonly inputs: readonly [{
|
|
5437
|
+
readonly name: "order";
|
|
5438
|
+
readonly type: "tuple";
|
|
5439
|
+
readonly internalType: "struct Order";
|
|
5440
|
+
readonly components: readonly [{
|
|
5441
|
+
readonly name: "user";
|
|
5442
|
+
readonly type: "bytes32";
|
|
5443
|
+
readonly internalType: "bytes32";
|
|
5444
|
+
}, {
|
|
5445
|
+
readonly name: "source";
|
|
5446
|
+
readonly type: "bytes";
|
|
5447
|
+
readonly internalType: "bytes";
|
|
5448
|
+
}, {
|
|
5449
|
+
readonly name: "destination";
|
|
5450
|
+
readonly type: "bytes";
|
|
5451
|
+
readonly internalType: "bytes";
|
|
5452
|
+
}, {
|
|
5453
|
+
readonly name: "deadline";
|
|
5454
|
+
readonly type: "uint256";
|
|
5455
|
+
readonly internalType: "uint256";
|
|
5456
|
+
}, {
|
|
5457
|
+
readonly name: "nonce";
|
|
5458
|
+
readonly type: "uint256";
|
|
5459
|
+
readonly internalType: "uint256";
|
|
5460
|
+
}, {
|
|
5461
|
+
readonly name: "fees";
|
|
5462
|
+
readonly type: "uint256";
|
|
5463
|
+
readonly internalType: "uint256";
|
|
5464
|
+
}, {
|
|
5465
|
+
readonly name: "session";
|
|
5466
|
+
readonly type: "address";
|
|
5467
|
+
readonly internalType: "address";
|
|
5468
|
+
}, {
|
|
5469
|
+
readonly name: "predispatch";
|
|
5470
|
+
readonly type: "tuple";
|
|
5471
|
+
readonly internalType: "struct DispatchInfo";
|
|
5472
|
+
readonly components: readonly [{
|
|
5473
|
+
readonly name: "assets";
|
|
5474
|
+
readonly type: "tuple[]";
|
|
5475
|
+
readonly internalType: "struct TokenInfo[]";
|
|
5476
|
+
readonly components: readonly [{
|
|
5477
|
+
readonly name: "token";
|
|
5478
|
+
readonly type: "bytes32";
|
|
5479
|
+
readonly internalType: "bytes32";
|
|
5480
|
+
}, {
|
|
5481
|
+
readonly name: "amount";
|
|
5482
|
+
readonly type: "uint256";
|
|
5483
|
+
readonly internalType: "uint256";
|
|
5484
|
+
}];
|
|
5485
|
+
}, {
|
|
5486
|
+
readonly name: "call";
|
|
5487
|
+
readonly type: "bytes";
|
|
5488
|
+
readonly internalType: "bytes";
|
|
5489
|
+
}];
|
|
5490
|
+
}, {
|
|
5491
|
+
readonly name: "inputs";
|
|
5492
|
+
readonly type: "tuple[]";
|
|
5493
|
+
readonly internalType: "struct TokenInfo[]";
|
|
5494
|
+
readonly components: readonly [{
|
|
5495
|
+
readonly name: "token";
|
|
5496
|
+
readonly type: "bytes32";
|
|
5497
|
+
readonly internalType: "bytes32";
|
|
5498
|
+
}, {
|
|
5499
|
+
readonly name: "amount";
|
|
5500
|
+
readonly type: "uint256";
|
|
5501
|
+
readonly internalType: "uint256";
|
|
5502
|
+
}];
|
|
5503
|
+
}, {
|
|
5504
|
+
readonly name: "output";
|
|
5505
|
+
readonly type: "tuple";
|
|
5506
|
+
readonly internalType: "struct PaymentInfo";
|
|
5507
|
+
readonly components: readonly [{
|
|
5508
|
+
readonly name: "beneficiary";
|
|
5509
|
+
readonly type: "bytes32";
|
|
5510
|
+
readonly internalType: "bytes32";
|
|
5511
|
+
}, {
|
|
5512
|
+
readonly name: "assets";
|
|
5513
|
+
readonly type: "tuple[]";
|
|
5514
|
+
readonly internalType: "struct TokenInfo[]";
|
|
5515
|
+
readonly components: readonly [{
|
|
5516
|
+
readonly name: "token";
|
|
5517
|
+
readonly type: "bytes32";
|
|
5518
|
+
readonly internalType: "bytes32";
|
|
5519
|
+
}, {
|
|
5520
|
+
readonly name: "amount";
|
|
5521
|
+
readonly type: "uint256";
|
|
5522
|
+
readonly internalType: "uint256";
|
|
5523
|
+
}];
|
|
5524
|
+
}, {
|
|
5525
|
+
readonly name: "call";
|
|
5526
|
+
readonly type: "bytes";
|
|
5527
|
+
readonly internalType: "bytes";
|
|
5528
|
+
}];
|
|
5529
|
+
}];
|
|
5530
|
+
}, {
|
|
5531
|
+
readonly name: "graffiti";
|
|
5532
|
+
readonly type: "bytes32";
|
|
5533
|
+
readonly internalType: "bytes32";
|
|
5534
|
+
}];
|
|
5535
|
+
readonly outputs: readonly [];
|
|
5536
|
+
readonly stateMutability: "payable";
|
|
5537
|
+
}, {
|
|
5538
|
+
readonly type: "function";
|
|
5539
|
+
readonly name: "quote";
|
|
5540
|
+
readonly inputs: readonly [{
|
|
5541
|
+
readonly name: "request";
|
|
5542
|
+
readonly type: "tuple";
|
|
5543
|
+
readonly internalType: "struct DispatchPost";
|
|
5544
|
+
readonly components: readonly [{
|
|
5545
|
+
readonly name: "dest";
|
|
5546
|
+
readonly type: "bytes";
|
|
5547
|
+
readonly internalType: "bytes";
|
|
5548
|
+
}, {
|
|
5549
|
+
readonly name: "to";
|
|
5550
|
+
readonly type: "bytes";
|
|
5551
|
+
readonly internalType: "bytes";
|
|
5552
|
+
}, {
|
|
5553
|
+
readonly name: "body";
|
|
5554
|
+
readonly type: "bytes";
|
|
5555
|
+
readonly internalType: "bytes";
|
|
5556
|
+
}, {
|
|
5557
|
+
readonly name: "timeout";
|
|
5558
|
+
readonly type: "uint64";
|
|
5559
|
+
readonly internalType: "uint64";
|
|
5560
|
+
}, {
|
|
5561
|
+
readonly name: "fee";
|
|
5562
|
+
readonly type: "uint256";
|
|
5563
|
+
readonly internalType: "uint256";
|
|
5564
|
+
}, {
|
|
5565
|
+
readonly name: "payer";
|
|
5566
|
+
readonly type: "address";
|
|
5567
|
+
readonly internalType: "address";
|
|
5568
|
+
}];
|
|
5569
|
+
}];
|
|
5570
|
+
readonly outputs: readonly [{
|
|
5571
|
+
readonly name: "";
|
|
5572
|
+
readonly type: "uint256";
|
|
5573
|
+
readonly internalType: "uint256";
|
|
5574
|
+
}];
|
|
5575
|
+
readonly stateMutability: "view";
|
|
5576
|
+
}, {
|
|
5577
|
+
readonly type: "function";
|
|
5578
|
+
readonly name: "quote";
|
|
5579
|
+
readonly inputs: readonly [{
|
|
5580
|
+
readonly name: "request";
|
|
5581
|
+
readonly type: "tuple";
|
|
5582
|
+
readonly internalType: "struct DispatchGet";
|
|
5583
|
+
readonly components: readonly [{
|
|
5584
|
+
readonly name: "dest";
|
|
5585
|
+
readonly type: "bytes";
|
|
5586
|
+
readonly internalType: "bytes";
|
|
5587
|
+
}, {
|
|
5588
|
+
readonly name: "height";
|
|
5589
|
+
readonly type: "uint64";
|
|
5590
|
+
readonly internalType: "uint64";
|
|
5591
|
+
}, {
|
|
5592
|
+
readonly name: "keys";
|
|
5593
|
+
readonly type: "bytes[]";
|
|
5594
|
+
readonly internalType: "bytes[]";
|
|
5595
|
+
}, {
|
|
5596
|
+
readonly name: "timeout";
|
|
5597
|
+
readonly type: "uint64";
|
|
5598
|
+
readonly internalType: "uint64";
|
|
5599
|
+
}, {
|
|
5600
|
+
readonly name: "fee";
|
|
5601
|
+
readonly type: "uint256";
|
|
5602
|
+
readonly internalType: "uint256";
|
|
5603
|
+
}, {
|
|
5604
|
+
readonly name: "context";
|
|
5605
|
+
readonly type: "bytes";
|
|
5606
|
+
readonly internalType: "bytes";
|
|
5607
|
+
}, {
|
|
5608
|
+
readonly name: "payer";
|
|
5609
|
+
readonly type: "address";
|
|
5610
|
+
readonly internalType: "address";
|
|
5611
|
+
}];
|
|
5612
|
+
}];
|
|
5613
|
+
readonly outputs: readonly [{
|
|
5614
|
+
readonly name: "";
|
|
5615
|
+
readonly type: "uint256";
|
|
5616
|
+
readonly internalType: "uint256";
|
|
5617
|
+
}];
|
|
5618
|
+
readonly stateMutability: "view";
|
|
5619
|
+
}, {
|
|
5620
|
+
readonly type: "function";
|
|
5621
|
+
readonly name: "select";
|
|
5622
|
+
readonly inputs: readonly [{
|
|
5623
|
+
readonly name: "options";
|
|
5624
|
+
readonly type: "tuple";
|
|
5625
|
+
readonly internalType: "struct SelectOptions";
|
|
5626
|
+
readonly components: readonly [{
|
|
5627
|
+
readonly name: "commitment";
|
|
5628
|
+
readonly type: "bytes32";
|
|
5629
|
+
readonly internalType: "bytes32";
|
|
5630
|
+
}, {
|
|
5631
|
+
readonly name: "solver";
|
|
5632
|
+
readonly type: "address";
|
|
5633
|
+
readonly internalType: "address";
|
|
5634
|
+
}, {
|
|
5635
|
+
readonly name: "signature";
|
|
5636
|
+
readonly type: "bytes";
|
|
5637
|
+
readonly internalType: "bytes";
|
|
5638
|
+
}];
|
|
5639
|
+
}];
|
|
5640
|
+
readonly outputs: readonly [{
|
|
5641
|
+
readonly name: "";
|
|
5642
|
+
readonly type: "address";
|
|
5643
|
+
readonly internalType: "address";
|
|
5644
|
+
}];
|
|
5645
|
+
readonly stateMutability: "nonpayable";
|
|
5646
|
+
}, {
|
|
5647
|
+
readonly type: "function";
|
|
5648
|
+
readonly name: "init";
|
|
5649
|
+
readonly inputs: readonly [{
|
|
5650
|
+
readonly name: "p";
|
|
5651
|
+
readonly type: "tuple";
|
|
5652
|
+
readonly internalType: "struct Params";
|
|
5653
|
+
readonly components: readonly [{
|
|
5654
|
+
readonly name: "host";
|
|
5655
|
+
readonly type: "address";
|
|
5656
|
+
readonly internalType: "address";
|
|
5657
|
+
}, {
|
|
5658
|
+
readonly name: "dispatcher";
|
|
5659
|
+
readonly type: "address";
|
|
5660
|
+
readonly internalType: "address";
|
|
5661
|
+
}, {
|
|
5662
|
+
readonly name: "solverSelection";
|
|
5663
|
+
readonly type: "bool";
|
|
5664
|
+
readonly internalType: "bool";
|
|
5665
|
+
}, {
|
|
5666
|
+
readonly name: "surplusShareBps";
|
|
5667
|
+
readonly type: "uint256";
|
|
5668
|
+
readonly internalType: "uint256";
|
|
5669
|
+
}, {
|
|
5670
|
+
readonly name: "protocolFeeBps";
|
|
5671
|
+
readonly type: "uint256";
|
|
5672
|
+
readonly internalType: "uint256";
|
|
5673
|
+
}, {
|
|
5674
|
+
readonly name: "priceOracle";
|
|
5675
|
+
readonly type: "address";
|
|
5676
|
+
readonly internalType: "address";
|
|
5677
|
+
}];
|
|
5678
|
+
}, {
|
|
5679
|
+
readonly name: "deployments";
|
|
5680
|
+
readonly type: "tuple[]";
|
|
5681
|
+
readonly internalType: "struct Deployment[]";
|
|
5682
|
+
readonly components: readonly [{
|
|
5683
|
+
readonly name: "chain";
|
|
5684
|
+
readonly type: "bytes";
|
|
5685
|
+
readonly internalType: "bytes";
|
|
5686
|
+
}, {
|
|
5687
|
+
readonly name: "gateway";
|
|
5688
|
+
readonly type: "address";
|
|
5689
|
+
readonly internalType: "address";
|
|
5690
|
+
}];
|
|
5691
|
+
}];
|
|
5692
|
+
readonly outputs: readonly [];
|
|
5693
|
+
readonly stateMutability: "nonpayable";
|
|
5694
|
+
}, {
|
|
5695
|
+
readonly type: "event";
|
|
5696
|
+
readonly name: "DestinationProtocolFeeUpdated";
|
|
5697
|
+
readonly inputs: readonly [{
|
|
5698
|
+
readonly name: "chain";
|
|
5699
|
+
readonly type: "string";
|
|
5700
|
+
readonly indexed: false;
|
|
5701
|
+
readonly internalType: "string";
|
|
5702
|
+
}, {
|
|
5703
|
+
readonly name: "feeBps";
|
|
5704
|
+
readonly type: "uint256";
|
|
5705
|
+
readonly indexed: false;
|
|
5706
|
+
readonly internalType: "uint256";
|
|
5707
|
+
}];
|
|
5708
|
+
readonly anonymous: false;
|
|
5709
|
+
}, {
|
|
5710
|
+
readonly type: "event";
|
|
5711
|
+
readonly name: "DustCollected";
|
|
5712
|
+
readonly inputs: readonly [{
|
|
5713
|
+
readonly name: "token";
|
|
5714
|
+
readonly type: "address";
|
|
5715
|
+
readonly indexed: false;
|
|
5716
|
+
readonly internalType: "address";
|
|
5717
|
+
}, {
|
|
5718
|
+
readonly name: "amount";
|
|
5719
|
+
readonly type: "uint256";
|
|
5720
|
+
readonly indexed: false;
|
|
5721
|
+
readonly internalType: "uint256";
|
|
5722
|
+
}];
|
|
5723
|
+
readonly anonymous: false;
|
|
5724
|
+
}, {
|
|
5725
|
+
readonly type: "event";
|
|
5726
|
+
readonly name: "DustSwept";
|
|
5727
|
+
readonly inputs: readonly [{
|
|
5728
|
+
readonly name: "token";
|
|
5729
|
+
readonly type: "address";
|
|
5730
|
+
readonly indexed: false;
|
|
5731
|
+
readonly internalType: "address";
|
|
5732
|
+
}, {
|
|
5733
|
+
readonly name: "amount";
|
|
5734
|
+
readonly type: "uint256";
|
|
5735
|
+
readonly indexed: false;
|
|
5736
|
+
readonly internalType: "uint256";
|
|
5737
|
+
}, {
|
|
5738
|
+
readonly name: "beneficiary";
|
|
5739
|
+
readonly type: "address";
|
|
5740
|
+
readonly indexed: false;
|
|
5741
|
+
readonly internalType: "address";
|
|
5742
|
+
}];
|
|
5743
|
+
readonly anonymous: false;
|
|
5744
|
+
}, {
|
|
5745
|
+
readonly type: "event";
|
|
5746
|
+
readonly name: "EIP712DomainChanged";
|
|
5747
|
+
readonly inputs: readonly [];
|
|
5748
|
+
readonly anonymous: false;
|
|
5749
|
+
}, {
|
|
5750
|
+
readonly type: "event";
|
|
5751
|
+
readonly name: "EscrowRefunded";
|
|
5752
|
+
readonly inputs: readonly [{
|
|
5753
|
+
readonly name: "commitment";
|
|
5754
|
+
readonly type: "bytes32";
|
|
5755
|
+
readonly indexed: true;
|
|
5756
|
+
readonly internalType: "bytes32";
|
|
5757
|
+
}, {
|
|
5758
|
+
readonly name: "tokens";
|
|
5759
|
+
readonly type: "tuple[]";
|
|
5760
|
+
readonly indexed: false;
|
|
5761
|
+
readonly internalType: "struct TokenInfo[]";
|
|
5762
|
+
readonly components: readonly [{
|
|
5763
|
+
readonly name: "token";
|
|
5764
|
+
readonly type: "bytes32";
|
|
5765
|
+
readonly internalType: "bytes32";
|
|
5766
|
+
}, {
|
|
5767
|
+
readonly name: "amount";
|
|
5768
|
+
readonly type: "uint256";
|
|
5769
|
+
readonly internalType: "uint256";
|
|
5770
|
+
}];
|
|
5771
|
+
}];
|
|
5772
|
+
readonly anonymous: false;
|
|
5773
|
+
}, {
|
|
5774
|
+
readonly type: "event";
|
|
5775
|
+
readonly name: "EscrowReleased";
|
|
5776
|
+
readonly inputs: readonly [{
|
|
5777
|
+
readonly name: "commitment";
|
|
5778
|
+
readonly type: "bytes32";
|
|
5779
|
+
readonly indexed: true;
|
|
5780
|
+
readonly internalType: "bytes32";
|
|
5781
|
+
}, {
|
|
5782
|
+
readonly name: "tokens";
|
|
5783
|
+
readonly type: "tuple[]";
|
|
5784
|
+
readonly indexed: false;
|
|
5785
|
+
readonly internalType: "struct TokenInfo[]";
|
|
5786
|
+
readonly components: readonly [{
|
|
5787
|
+
readonly name: "token";
|
|
5788
|
+
readonly type: "bytes32";
|
|
5789
|
+
readonly internalType: "bytes32";
|
|
5790
|
+
}, {
|
|
5791
|
+
readonly name: "amount";
|
|
5792
|
+
readonly type: "uint256";
|
|
5793
|
+
readonly internalType: "uint256";
|
|
5794
|
+
}];
|
|
5795
|
+
}];
|
|
5796
|
+
readonly anonymous: false;
|
|
5797
|
+
}, {
|
|
5798
|
+
readonly type: "event";
|
|
5799
|
+
readonly name: "DeploymentAdded";
|
|
5800
|
+
readonly inputs: readonly [{
|
|
5801
|
+
readonly name: "chain";
|
|
5802
|
+
readonly type: "string";
|
|
5803
|
+
readonly indexed: false;
|
|
5804
|
+
readonly internalType: "string";
|
|
5805
|
+
}, {
|
|
5806
|
+
readonly name: "gateway";
|
|
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: "OrderFilled";
|
|
5815
|
+
readonly inputs: readonly [{
|
|
5816
|
+
readonly name: "commitment";
|
|
5817
|
+
readonly type: "bytes32";
|
|
5818
|
+
readonly indexed: true;
|
|
5819
|
+
readonly internalType: "bytes32";
|
|
5820
|
+
}, {
|
|
5821
|
+
readonly name: "filler";
|
|
5822
|
+
readonly type: "address";
|
|
5823
|
+
readonly indexed: false;
|
|
5824
|
+
readonly internalType: "address";
|
|
5825
|
+
}, {
|
|
5826
|
+
readonly name: "outputs";
|
|
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 name: "inputs";
|
|
5841
|
+
readonly type: "tuple[]";
|
|
5842
|
+
readonly indexed: false;
|
|
5843
|
+
readonly internalType: "struct TokenInfo[]";
|
|
5844
|
+
readonly components: readonly [{
|
|
5845
|
+
readonly name: "token";
|
|
5846
|
+
readonly type: "bytes32";
|
|
5847
|
+
readonly internalType: "bytes32";
|
|
5848
|
+
}, {
|
|
5849
|
+
readonly name: "amount";
|
|
5850
|
+
readonly type: "uint256";
|
|
5851
|
+
readonly internalType: "uint256";
|
|
5852
|
+
}];
|
|
5853
|
+
}];
|
|
5854
|
+
readonly anonymous: false;
|
|
5855
|
+
}, {
|
|
5856
|
+
readonly type: "event";
|
|
5857
|
+
readonly name: "OrderPlaced";
|
|
5858
|
+
readonly inputs: readonly [{
|
|
5859
|
+
readonly name: "user";
|
|
5860
|
+
readonly type: "bytes32";
|
|
5861
|
+
readonly indexed: false;
|
|
5862
|
+
readonly internalType: "bytes32";
|
|
5863
|
+
}, {
|
|
5864
|
+
readonly name: "source";
|
|
5865
|
+
readonly type: "string";
|
|
5866
|
+
readonly indexed: false;
|
|
5867
|
+
readonly internalType: "string";
|
|
5868
|
+
}, {
|
|
5869
|
+
readonly name: "destination";
|
|
5870
|
+
readonly type: "string";
|
|
5871
|
+
readonly indexed: false;
|
|
5872
|
+
readonly internalType: "string";
|
|
5873
|
+
}, {
|
|
5874
|
+
readonly name: "deadline";
|
|
5875
|
+
readonly type: "uint256";
|
|
5876
|
+
readonly indexed: false;
|
|
5877
|
+
readonly internalType: "uint256";
|
|
5878
|
+
}, {
|
|
5879
|
+
readonly name: "nonce";
|
|
5880
|
+
readonly type: "uint256";
|
|
5881
|
+
readonly indexed: false;
|
|
5882
|
+
readonly internalType: "uint256";
|
|
5883
|
+
}, {
|
|
5884
|
+
readonly name: "fees";
|
|
5885
|
+
readonly type: "uint256";
|
|
5886
|
+
readonly indexed: false;
|
|
5887
|
+
readonly internalType: "uint256";
|
|
5888
|
+
}, {
|
|
5889
|
+
readonly name: "session";
|
|
5890
|
+
readonly type: "address";
|
|
5891
|
+
readonly indexed: false;
|
|
5892
|
+
readonly internalType: "address";
|
|
5893
|
+
}, {
|
|
5894
|
+
readonly name: "beneficiary";
|
|
5895
|
+
readonly type: "bytes32";
|
|
5896
|
+
readonly indexed: false;
|
|
5897
|
+
readonly internalType: "bytes32";
|
|
5898
|
+
}, {
|
|
5899
|
+
readonly name: "predispatch";
|
|
5900
|
+
readonly type: "tuple[]";
|
|
5901
|
+
readonly indexed: false;
|
|
5902
|
+
readonly internalType: "struct TokenInfo[]";
|
|
5903
|
+
readonly components: readonly [{
|
|
5904
|
+
readonly name: "token";
|
|
5905
|
+
readonly type: "bytes32";
|
|
5906
|
+
readonly internalType: "bytes32";
|
|
5907
|
+
}, {
|
|
5908
|
+
readonly name: "amount";
|
|
5909
|
+
readonly type: "uint256";
|
|
5910
|
+
readonly internalType: "uint256";
|
|
5911
|
+
}];
|
|
5912
|
+
}, {
|
|
5913
|
+
readonly name: "inputs";
|
|
5914
|
+
readonly type: "tuple[]";
|
|
5915
|
+
readonly indexed: false;
|
|
5916
|
+
readonly internalType: "struct TokenInfo[]";
|
|
5917
|
+
readonly components: readonly [{
|
|
5918
|
+
readonly name: "token";
|
|
5919
|
+
readonly type: "bytes32";
|
|
5920
|
+
readonly internalType: "bytes32";
|
|
5921
|
+
}, {
|
|
5922
|
+
readonly name: "amount";
|
|
5923
|
+
readonly type: "uint256";
|
|
5924
|
+
readonly internalType: "uint256";
|
|
5925
|
+
}];
|
|
5926
|
+
}, {
|
|
5927
|
+
readonly name: "outputs";
|
|
5928
|
+
readonly type: "tuple[]";
|
|
5929
|
+
readonly indexed: false;
|
|
5930
|
+
readonly internalType: "struct TokenInfo[]";
|
|
5931
|
+
readonly components: readonly [{
|
|
5932
|
+
readonly name: "token";
|
|
5933
|
+
readonly type: "bytes32";
|
|
5934
|
+
readonly internalType: "bytes32";
|
|
5935
|
+
}, {
|
|
5936
|
+
readonly name: "amount";
|
|
5937
|
+
readonly type: "uint256";
|
|
5938
|
+
readonly internalType: "uint256";
|
|
5939
|
+
}];
|
|
5940
|
+
}, {
|
|
5941
|
+
readonly name: "predispatchCall";
|
|
5942
|
+
readonly type: "bytes";
|
|
5943
|
+
readonly indexed: false;
|
|
5944
|
+
readonly internalType: "bytes";
|
|
5945
|
+
}, {
|
|
5946
|
+
readonly name: "outputCall";
|
|
5947
|
+
readonly type: "bytes";
|
|
5948
|
+
readonly indexed: false;
|
|
5949
|
+
readonly internalType: "bytes";
|
|
5950
|
+
}, {
|
|
5951
|
+
readonly name: "graffiti";
|
|
5952
|
+
readonly type: "bytes32";
|
|
5953
|
+
readonly indexed: false;
|
|
5954
|
+
readonly internalType: "bytes32";
|
|
5955
|
+
}];
|
|
5956
|
+
readonly anonymous: false;
|
|
5957
|
+
}, {
|
|
5958
|
+
readonly type: "event";
|
|
5959
|
+
readonly name: "ParamsUpdated";
|
|
5960
|
+
readonly inputs: readonly [{
|
|
5961
|
+
readonly name: "previous";
|
|
5962
|
+
readonly type: "tuple";
|
|
5963
|
+
readonly indexed: false;
|
|
5964
|
+
readonly internalType: "struct Params";
|
|
5965
|
+
readonly components: readonly [{
|
|
5966
|
+
readonly name: "host";
|
|
5967
|
+
readonly type: "address";
|
|
5968
|
+
readonly internalType: "address";
|
|
5969
|
+
}, {
|
|
5970
|
+
readonly name: "dispatcher";
|
|
5971
|
+
readonly type: "address";
|
|
5972
|
+
readonly internalType: "address";
|
|
5973
|
+
}, {
|
|
5974
|
+
readonly name: "solverSelection";
|
|
5975
|
+
readonly type: "bool";
|
|
5976
|
+
readonly internalType: "bool";
|
|
5977
|
+
}, {
|
|
5978
|
+
readonly name: "surplusShareBps";
|
|
5979
|
+
readonly type: "uint256";
|
|
5980
|
+
readonly internalType: "uint256";
|
|
5981
|
+
}, {
|
|
5982
|
+
readonly name: "protocolFeeBps";
|
|
5983
|
+
readonly type: "uint256";
|
|
5984
|
+
readonly internalType: "uint256";
|
|
5985
|
+
}, {
|
|
5986
|
+
readonly name: "priceOracle";
|
|
5987
|
+
readonly type: "address";
|
|
5988
|
+
readonly internalType: "address";
|
|
5989
|
+
}];
|
|
5990
|
+
}, {
|
|
5991
|
+
readonly name: "current";
|
|
5992
|
+
readonly type: "tuple";
|
|
5993
|
+
readonly indexed: false;
|
|
5994
|
+
readonly internalType: "struct Params";
|
|
5995
|
+
readonly components: readonly [{
|
|
5996
|
+
readonly name: "host";
|
|
5997
|
+
readonly type: "address";
|
|
5998
|
+
readonly internalType: "address";
|
|
5999
|
+
}, {
|
|
6000
|
+
readonly name: "dispatcher";
|
|
6001
|
+
readonly type: "address";
|
|
6002
|
+
readonly internalType: "address";
|
|
6003
|
+
}, {
|
|
6004
|
+
readonly name: "solverSelection";
|
|
6005
|
+
readonly type: "bool";
|
|
6006
|
+
readonly internalType: "bool";
|
|
6007
|
+
}, {
|
|
6008
|
+
readonly name: "surplusShareBps";
|
|
6009
|
+
readonly type: "uint256";
|
|
6010
|
+
readonly internalType: "uint256";
|
|
6011
|
+
}, {
|
|
6012
|
+
readonly name: "protocolFeeBps";
|
|
6013
|
+
readonly type: "uint256";
|
|
6014
|
+
readonly internalType: "uint256";
|
|
6015
|
+
}, {
|
|
6016
|
+
readonly name: "priceOracle";
|
|
6017
|
+
readonly type: "address";
|
|
6018
|
+
readonly internalType: "address";
|
|
6019
|
+
}];
|
|
6020
|
+
}];
|
|
6021
|
+
readonly anonymous: false;
|
|
6022
|
+
}, {
|
|
6023
|
+
readonly type: "event";
|
|
6024
|
+
readonly name: "PartialFill";
|
|
6025
|
+
readonly inputs: readonly [{
|
|
6026
|
+
readonly name: "commitment";
|
|
6027
|
+
readonly type: "bytes32";
|
|
6028
|
+
readonly indexed: true;
|
|
6029
|
+
readonly internalType: "bytes32";
|
|
6030
|
+
}, {
|
|
6031
|
+
readonly name: "filler";
|
|
6032
|
+
readonly type: "address";
|
|
6033
|
+
readonly indexed: false;
|
|
6034
|
+
readonly internalType: "address";
|
|
6035
|
+
}, {
|
|
6036
|
+
readonly name: "outputs";
|
|
6037
|
+
readonly type: "tuple[]";
|
|
6038
|
+
readonly indexed: false;
|
|
6039
|
+
readonly internalType: "struct TokenInfo[]";
|
|
6040
|
+
readonly components: readonly [{
|
|
6041
|
+
readonly name: "token";
|
|
6042
|
+
readonly type: "bytes32";
|
|
6043
|
+
readonly internalType: "bytes32";
|
|
6044
|
+
}, {
|
|
6045
|
+
readonly name: "amount";
|
|
6046
|
+
readonly type: "uint256";
|
|
6047
|
+
readonly internalType: "uint256";
|
|
6048
|
+
}];
|
|
6049
|
+
}, {
|
|
6050
|
+
readonly name: "inputs";
|
|
6051
|
+
readonly type: "tuple[]";
|
|
6052
|
+
readonly indexed: false;
|
|
6053
|
+
readonly internalType: "struct TokenInfo[]";
|
|
6054
|
+
readonly components: readonly [{
|
|
6055
|
+
readonly name: "token";
|
|
6056
|
+
readonly type: "bytes32";
|
|
6057
|
+
readonly internalType: "bytes32";
|
|
6058
|
+
}, {
|
|
6059
|
+
readonly name: "amount";
|
|
6060
|
+
readonly type: "uint256";
|
|
6061
|
+
readonly internalType: "uint256";
|
|
6062
|
+
}];
|
|
6063
|
+
}];
|
|
6064
|
+
readonly anonymous: false;
|
|
6065
|
+
}, {
|
|
6066
|
+
readonly type: "error";
|
|
6067
|
+
readonly name: "Cancelled";
|
|
6068
|
+
readonly inputs: readonly [];
|
|
6069
|
+
}, {
|
|
6070
|
+
readonly type: "error";
|
|
6071
|
+
readonly name: "UnknownInstance";
|
|
6072
|
+
readonly inputs: readonly [];
|
|
6073
|
+
}, {
|
|
6074
|
+
readonly type: "error";
|
|
6075
|
+
readonly name: "ECDSAInvalidSignature";
|
|
6076
|
+
readonly inputs: readonly [];
|
|
6077
|
+
}, {
|
|
6078
|
+
readonly type: "error";
|
|
6079
|
+
readonly name: "ECDSAInvalidSignatureLength";
|
|
6080
|
+
readonly inputs: readonly [{
|
|
6081
|
+
readonly name: "length";
|
|
6082
|
+
readonly type: "uint256";
|
|
6083
|
+
readonly internalType: "uint256";
|
|
6084
|
+
}];
|
|
6085
|
+
}, {
|
|
6086
|
+
readonly type: "error";
|
|
6087
|
+
readonly name: "ECDSAInvalidSignatureS";
|
|
6088
|
+
readonly inputs: readonly [{
|
|
6089
|
+
readonly name: "s";
|
|
6090
|
+
readonly type: "bytes32";
|
|
6091
|
+
readonly internalType: "bytes32";
|
|
6092
|
+
}];
|
|
6093
|
+
}, {
|
|
6094
|
+
readonly type: "error";
|
|
6095
|
+
readonly name: "Expired";
|
|
6096
|
+
readonly inputs: readonly [];
|
|
6097
|
+
}, {
|
|
6098
|
+
readonly type: "error";
|
|
6099
|
+
readonly name: "Filled";
|
|
6100
|
+
readonly inputs: readonly [];
|
|
6101
|
+
}, {
|
|
6102
|
+
readonly type: "error";
|
|
6103
|
+
readonly name: "InsufficientNativeToken";
|
|
6104
|
+
readonly inputs: readonly [];
|
|
6105
|
+
}, {
|
|
6106
|
+
readonly type: "error";
|
|
6107
|
+
readonly name: "InvalidInput";
|
|
6108
|
+
readonly inputs: readonly [];
|
|
6109
|
+
}, {
|
|
6110
|
+
readonly type: "error";
|
|
6111
|
+
readonly name: "InvalidShortString";
|
|
6112
|
+
readonly inputs: readonly [];
|
|
6113
|
+
}, {
|
|
6114
|
+
readonly type: "error";
|
|
6115
|
+
readonly name: "NotExpired";
|
|
6116
|
+
readonly inputs: readonly [];
|
|
6117
|
+
}, {
|
|
6118
|
+
readonly type: "error";
|
|
6119
|
+
readonly name: "SafeERC20FailedOperation";
|
|
6120
|
+
readonly inputs: readonly [{
|
|
6121
|
+
readonly name: "token";
|
|
6122
|
+
readonly type: "address";
|
|
6123
|
+
readonly internalType: "address";
|
|
6124
|
+
}];
|
|
6125
|
+
}, {
|
|
6126
|
+
readonly type: "error";
|
|
6127
|
+
readonly name: "StringTooLong";
|
|
6128
|
+
readonly inputs: readonly [{
|
|
6129
|
+
readonly name: "str";
|
|
6130
|
+
readonly type: "string";
|
|
6131
|
+
readonly internalType: "string";
|
|
6132
|
+
}];
|
|
6133
|
+
}, {
|
|
6134
|
+
readonly type: "error";
|
|
6135
|
+
readonly name: "Unauthorized";
|
|
6136
|
+
readonly inputs: readonly [];
|
|
6137
|
+
}, {
|
|
6138
|
+
readonly type: "error";
|
|
6139
|
+
readonly name: "UnauthorizedCall";
|
|
6140
|
+
readonly inputs: readonly [];
|
|
6141
|
+
}, {
|
|
6142
|
+
readonly type: "error";
|
|
6143
|
+
readonly name: "UnexpectedCall";
|
|
6144
|
+
readonly inputs: readonly [];
|
|
6145
|
+
}, {
|
|
6146
|
+
readonly type: "error";
|
|
6147
|
+
readonly name: "UnknownOrder";
|
|
6148
|
+
readonly inputs: readonly [];
|
|
6149
|
+
}, {
|
|
6150
|
+
readonly type: "error";
|
|
6151
|
+
readonly name: "WrongChain";
|
|
6152
|
+
readonly inputs: readonly [];
|
|
6153
|
+
}];
|
|
6154
|
+
declare const _default: {
|
|
6155
|
+
ABI: readonly [{
|
|
6156
|
+
readonly type: "constructor";
|
|
6157
|
+
readonly inputs: readonly [{
|
|
6158
|
+
readonly name: "admin";
|
|
6159
|
+
readonly type: "address";
|
|
6160
|
+
readonly internalType: "address";
|
|
6161
|
+
}];
|
|
6162
|
+
readonly stateMutability: "nonpayable";
|
|
6163
|
+
}, {
|
|
6164
|
+
readonly type: "receive";
|
|
6165
|
+
readonly stateMutability: "payable";
|
|
6166
|
+
}, {
|
|
6167
|
+
readonly type: "function";
|
|
6168
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
6169
|
+
readonly inputs: readonly [];
|
|
6170
|
+
readonly outputs: readonly [{
|
|
6171
|
+
readonly name: "";
|
|
6172
|
+
readonly type: "bytes32";
|
|
6173
|
+
readonly internalType: "bytes32";
|
|
6174
|
+
}];
|
|
6175
|
+
readonly stateMutability: "view";
|
|
6176
|
+
}, {
|
|
6177
|
+
readonly type: "function";
|
|
6178
|
+
readonly name: "SELECT_SOLVER_TYPEHASH";
|
|
6179
|
+
readonly inputs: readonly [];
|
|
6180
|
+
readonly outputs: readonly [{
|
|
6181
|
+
readonly name: "";
|
|
4564
6182
|
readonly type: "bytes32";
|
|
4565
6183
|
readonly internalType: "bytes32";
|
|
4566
6184
|
}];
|
|
@@ -5724,6 +7342,21 @@ declare const _default: {
|
|
|
5724
7342
|
readonly type: "uint256";
|
|
5725
7343
|
readonly internalType: "uint256";
|
|
5726
7344
|
}];
|
|
7345
|
+
}, {
|
|
7346
|
+
readonly name: "predispatchCall";
|
|
7347
|
+
readonly type: "bytes";
|
|
7348
|
+
readonly indexed: false;
|
|
7349
|
+
readonly internalType: "bytes";
|
|
7350
|
+
}, {
|
|
7351
|
+
readonly name: "outputCall";
|
|
7352
|
+
readonly type: "bytes";
|
|
7353
|
+
readonly indexed: false;
|
|
7354
|
+
readonly internalType: "bytes";
|
|
7355
|
+
}, {
|
|
7356
|
+
readonly name: "graffiti";
|
|
7357
|
+
readonly type: "bytes32";
|
|
7358
|
+
readonly indexed: false;
|
|
7359
|
+
readonly internalType: "bytes32";
|
|
5727
7360
|
}];
|
|
5728
7361
|
readonly anonymous: false;
|
|
5729
7362
|
}, {
|
|
@@ -5925,4 +7558,4 @@ declare const _default: {
|
|
|
5925
7558
|
}];
|
|
5926
7559
|
};
|
|
5927
7560
|
|
|
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
|
|
7561
|
+
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 };
|