@hyperbridge/sdk 2.6.1 → 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 +563 -411
- package/dist/browser/index.js +260 -60
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +260 -58
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +44 -12
- package/dist/node/index.d.ts +44 -12
- package/dist/node/index.js +260 -60
- package/dist/node/index.js.map +1 -1
- package/dist/node/{IntentGatewayV2-BJUF1dsr.d.cts → intents-helpers-gyGREuyu.d.cts} +1943 -248
- package/dist/node/{IntentGatewayV2-BJUF1dsr.d.ts → intents-helpers-gyGREuyu.d.ts} +1943 -248
- 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 [{
|
|
@@ -893,6 +893,14 @@ interface UniswapV4PoolConfigData {
|
|
|
893
893
|
tickSpacing: number;
|
|
894
894
|
hooks?: `0x${string}`;
|
|
895
895
|
}
|
|
896
|
+
/** A known ERC-4626 vault fillers can use as a stablecoin treasury. */
|
|
897
|
+
interface Erc4626VaultConfigData {
|
|
898
|
+
/** Display label, e.g. "Aave stataUSDC" */
|
|
899
|
+
label: string;
|
|
900
|
+
address: `0x${string}`;
|
|
901
|
+
/** Underlying asset symbol; the on-chain vault resolves the address. */
|
|
902
|
+
asset: ConfiguredAssetSymbol;
|
|
903
|
+
}
|
|
896
904
|
interface ChainConfigData {
|
|
897
905
|
chainId: number;
|
|
898
906
|
stateMachineId: Chains;
|
|
@@ -909,6 +917,7 @@ interface ChainConfigData {
|
|
|
909
917
|
EURC?: string;
|
|
910
918
|
XSGD?: string;
|
|
911
919
|
TRYB?: string;
|
|
920
|
+
USDR?: string;
|
|
912
921
|
};
|
|
913
922
|
tokenDecimals?: {
|
|
914
923
|
USDC: number;
|
|
@@ -971,6 +980,8 @@ interface ChainConfigData {
|
|
|
971
980
|
coingeckoId: string;
|
|
972
981
|
popularTokens?: string[];
|
|
973
982
|
uniswapV4Pools?: UniswapV4PoolConfigData[];
|
|
983
|
+
/** Known ERC-4626 treasury vaults on this chain */
|
|
984
|
+
erc4626Vaults?: Erc4626VaultConfigData[];
|
|
974
985
|
/** LayerZero Endpoint ID for cross-chain messaging */
|
|
975
986
|
layerZeroEid?: number;
|
|
976
987
|
}
|
|
@@ -985,68 +996,76 @@ declare class ChainConfigService {
|
|
|
985
996
|
constructor(env?: NodeJS.ProcessEnv);
|
|
986
997
|
private getConfig;
|
|
987
998
|
getChainConfig(chain: string): ChainConfig;
|
|
988
|
-
getIntentGatewayAddress(chain: string): HexString;
|
|
989
|
-
getTokenGatewayAddress(chain: string): HexString;
|
|
990
|
-
getHostAddress(chain: string): HexString;
|
|
999
|
+
getIntentGatewayAddress(chain: string): HexString$1;
|
|
1000
|
+
getTokenGatewayAddress(chain: string): HexString$1;
|
|
1001
|
+
getHostAddress(chain: string): HexString$1;
|
|
991
1002
|
getWrappedNativeAssetWithDecimals(chain: string): {
|
|
992
|
-
asset: HexString;
|
|
1003
|
+
asset: HexString$1;
|
|
993
1004
|
decimals: number;
|
|
994
1005
|
};
|
|
995
|
-
getDaiAsset(chain: string): HexString;
|
|
996
|
-
getAssetAddress(chain: string, symbol: ConfiguredAssetSymbol): HexString | undefined;
|
|
1006
|
+
getDaiAsset(chain: string): HexString$1;
|
|
1007
|
+
getAssetAddress(chain: string, symbol: ConfiguredAssetSymbol): HexString$1 | undefined;
|
|
997
1008
|
/**
|
|
998
1009
|
* Resolves configured token metadata from an address on a specific chain.
|
|
999
1010
|
* This is used by SDK helpers that accept token addresses rather than caller-
|
|
1000
1011
|
* supplied symbols or decimals.
|
|
1001
1012
|
*/
|
|
1002
|
-
getAssetMetadataByAddress(chain: string, address: HexString): {
|
|
1013
|
+
getAssetMetadataByAddress(chain: string, address: HexString$1): {
|
|
1003
1014
|
symbol: ConfiguredAssetSymbol;
|
|
1004
|
-
address: HexString;
|
|
1015
|
+
address: HexString$1;
|
|
1005
1016
|
decimals?: number;
|
|
1006
1017
|
} | undefined;
|
|
1007
|
-
getUsdtAsset(chain: string): HexString;
|
|
1008
|
-
getUsdcAsset(chain: string): HexString;
|
|
1018
|
+
getUsdtAsset(chain: string): HexString$1;
|
|
1019
|
+
getUsdcAsset(chain: string): HexString$1;
|
|
1009
1020
|
getUsdcDecimals(chain: string): number;
|
|
1010
1021
|
getUsdtDecimals(chain: string): number;
|
|
1011
|
-
getCNgnAsset(chain: string): HexString | undefined;
|
|
1022
|
+
getCNgnAsset(chain: string): HexString$1 | undefined;
|
|
1012
1023
|
/**
|
|
1013
1024
|
* Address of `symbol` on `chain` from the per-chain asset table, matched
|
|
1014
1025
|
* case-insensitively ("cNGN" ≡ "CNGN"). This table is the single source of
|
|
1015
1026
|
* truth for token addresses — the simplex asset registry resolves through
|
|
1016
1027
|
* it, so a new asset is added once in `chain.ts` and nowhere else.
|
|
1017
1028
|
*/
|
|
1018
|
-
getAssetBySymbol(chain: string, symbol: string): HexString | undefined;
|
|
1029
|
+
getAssetBySymbol(chain: string, symbol: string): HexString$1 | undefined;
|
|
1019
1030
|
getCNgnDecimals(chain: string): number | undefined;
|
|
1020
|
-
getExtAsset(chain: string): HexString | undefined;
|
|
1031
|
+
getExtAsset(chain: string): HexString$1 | undefined;
|
|
1021
1032
|
getExtDecimals(chain: string): number | undefined;
|
|
1033
|
+
/** Configured exotic (non-USD) tokens on a chain, for selection UIs. EXT is a test asset and is not offered. */
|
|
1034
|
+
getKnownExoticTokens(chain: string): Array<{
|
|
1035
|
+
symbol: string;
|
|
1036
|
+
address: HexString$1;
|
|
1037
|
+
decimals?: number;
|
|
1038
|
+
}>;
|
|
1039
|
+
/** Known ERC-4626 treasury vaults on a chain, for selection UIs. */
|
|
1040
|
+
getKnownVaults(chain: string): Erc4626VaultConfigData[];
|
|
1022
1041
|
getChainId(chain: string): number;
|
|
1023
1042
|
getConsensusStateId(chain: string): string;
|
|
1024
1043
|
getHyperbridgeChainId(): number;
|
|
1025
1044
|
getRpcUrl(chain: string): string;
|
|
1026
|
-
getUniswapRouterV2Address(chain: string): HexString;
|
|
1027
|
-
getAerodromeRouterAddress(chain: string): HexString;
|
|
1028
|
-
getUniswapV2FactoryAddress(chain: string): HexString;
|
|
1029
|
-
getUniswapV3FactoryAddress(chain: string): HexString;
|
|
1030
|
-
getUniversalRouterAddress(chain: string): HexString;
|
|
1031
|
-
getUniswapV3QuoterAddress(chain: string): HexString;
|
|
1032
|
-
getUniswapV4QuoterAddress(chain: string): HexString;
|
|
1033
|
-
getUniswapV4PositionManagerAddress(chain: string): HexString;
|
|
1034
|
-
getUniswapV4PoolManagerAddress(chain: string): HexString;
|
|
1035
|
-
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;
|
|
1036
1055
|
getUniswapV4PoolConfigs(chain: string): UniswapV4PoolConfigData[];
|
|
1037
|
-
getPermit2Address(chain: string): HexString;
|
|
1038
|
-
getSolverAccountAddress(chain: string): HexString | undefined;
|
|
1056
|
+
getPermit2Address(chain: string): HexString$1;
|
|
1057
|
+
getSolverAccountAddress(chain: string): HexString$1 | undefined;
|
|
1039
1058
|
getCoingeckoId(chain: string): string | undefined;
|
|
1040
1059
|
getEtherscanApiKey(): string | undefined;
|
|
1041
|
-
getCalldispatcherAddress(chain: string): HexString;
|
|
1060
|
+
getCalldispatcherAddress(chain: string): HexString$1;
|
|
1042
1061
|
getTokenStorageSlots(chain: string, tokenAddress: string): {
|
|
1043
1062
|
balanceSlot: number;
|
|
1044
1063
|
allowanceSlot: number;
|
|
1045
1064
|
} | undefined;
|
|
1046
1065
|
getPopularTokens(chain: string): string[];
|
|
1047
|
-
getEntryPointV08Address(chain: string): HexString;
|
|
1048
|
-
getCirclePaymasterAddress(chain: string): HexString | undefined;
|
|
1049
|
-
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;
|
|
1050
1069
|
getHyperbridgeAddress(): string;
|
|
1051
1070
|
/**
|
|
1052
1071
|
* Get the LayerZero Endpoint ID for the chain
|
|
@@ -1058,7 +1077,7 @@ declare class ChainConfigService {
|
|
|
1058
1077
|
* On Ethereum: OFT Adapter (locks/unlocks USDT)
|
|
1059
1078
|
* On other chains: OFT contract (mints/burns USDT0)
|
|
1060
1079
|
*/
|
|
1061
|
-
getUsdt0OftAddress(chain: string): HexString | undefined;
|
|
1080
|
+
getUsdt0OftAddress(chain: string): HexString$1 | undefined;
|
|
1062
1081
|
}
|
|
1063
1082
|
|
|
1064
1083
|
type IStateMachine = {
|
|
@@ -1108,33 +1127,33 @@ declare class SubstrateChain implements IChain {
|
|
|
1108
1127
|
* @param key - The H256 hash key (as a 0x-prefixed hex string)
|
|
1109
1128
|
* @returns The storage key as a hex string
|
|
1110
1129
|
*/
|
|
1111
|
-
requestReceiptKey(key: HexString): HexString;
|
|
1130
|
+
requestReceiptKey(key: HexString$1): HexString$1;
|
|
1112
1131
|
/**
|
|
1113
1132
|
* Returns the storage key for a request commitment in the child trie
|
|
1114
1133
|
* The request commitment is the key
|
|
1115
1134
|
* @param key - The H256 hash key (as a 0x-prefixed hex string)
|
|
1116
1135
|
* @returns The storage key as a hex string
|
|
1117
1136
|
*/
|
|
1118
|
-
requestCommitmentKey(key: HexString): HexString;
|
|
1137
|
+
requestCommitmentKey(key: HexString$1): HexString$1;
|
|
1119
1138
|
/**
|
|
1120
1139
|
* Queries a request commitment from the ISMP child trie storage.
|
|
1121
1140
|
* @param {HexString} commitment - The commitment hash to look up.
|
|
1122
1141
|
* @returns {Promise<HexString | undefined>} The commitment data if found, undefined otherwise.
|
|
1123
1142
|
*/
|
|
1124
|
-
queryRequestCommitment(commitment: HexString): Promise<HexString | undefined>;
|
|
1143
|
+
queryRequestCommitment(commitment: HexString$1): Promise<HexString$1 | undefined>;
|
|
1125
1144
|
/**
|
|
1126
1145
|
* Queries the request receipt.
|
|
1127
1146
|
* @param {HexString} commitment - The commitment to query.
|
|
1128
1147
|
* @returns {Promise<HexString | undefined>} The relayer address responsible for delivering the request.
|
|
1129
1148
|
*/
|
|
1130
|
-
queryRequestReceipt(commitment: HexString): Promise<HexString | undefined>;
|
|
1149
|
+
queryRequestReceipt(commitment: HexString$1): Promise<HexString$1 | undefined>;
|
|
1131
1150
|
/**
|
|
1132
1151
|
* Returns the storage key for a response receipt in the child trie.
|
|
1133
1152
|
* A response receipt is keyed by the originating *request* commitment.
|
|
1134
1153
|
* @param {HexString} key - The request commitment (0x-prefixed H256 hex string)
|
|
1135
1154
|
* @returns {HexString} The storage key as a hex string
|
|
1136
1155
|
*/
|
|
1137
|
-
responseReceiptKey(key: HexString): HexString;
|
|
1156
|
+
responseReceiptKey(key: HexString$1): HexString$1;
|
|
1138
1157
|
/**
|
|
1139
1158
|
* Queries the response receipt for a request commitment. For a GET, Hyperbridge
|
|
1140
1159
|
* produces the response as it processes the request, so the presence of a response
|
|
@@ -1142,7 +1161,7 @@ declare class SubstrateChain implements IChain {
|
|
|
1142
1161
|
* @param {HexString} commitment - The originating request commitment to query.
|
|
1143
1162
|
* @returns {Promise<HexString | undefined>} The receipt data if present, otherwise undefined.
|
|
1144
1163
|
*/
|
|
1145
|
-
queryResponseReceipt(commitment: HexString): Promise<HexString | undefined>;
|
|
1164
|
+
queryResponseReceipt(commitment: HexString$1): Promise<HexString$1 | undefined>;
|
|
1146
1165
|
/**
|
|
1147
1166
|
* Queries the state-machine commitment Hyperbridge holds for a counterparty chain at an
|
|
1148
1167
|
* exact height — the `BoundedStateCommitments` map that `state_machine_commitment` (and thus
|
|
@@ -1151,7 +1170,7 @@ declare class SubstrateChain implements IChain {
|
|
|
1151
1170
|
* @param {StateMachineHeight} height - The counterparty state machine id + height.
|
|
1152
1171
|
* @returns {Promise<HexString | undefined>} The committed state root, or undefined if absent.
|
|
1153
1172
|
*/
|
|
1154
|
-
queryStateMachineCommitment(height: StateMachineHeight): Promise<HexString | undefined>;
|
|
1173
|
+
queryStateMachineCommitment(height: StateMachineHeight): Promise<HexString$1 | undefined>;
|
|
1155
1174
|
/**
|
|
1156
1175
|
* Returns the current timestamp of the chain.
|
|
1157
1176
|
* @returns {Promise<bigint>} The current timestamp.
|
|
@@ -1164,7 +1183,7 @@ declare class SubstrateChain implements IChain {
|
|
|
1164
1183
|
* @param {bigint} [at] - The block number to query at.
|
|
1165
1184
|
* @returns {Promise<HexString>} The proof.
|
|
1166
1185
|
*/
|
|
1167
|
-
queryProof(message: IMessage, counterparty: string, at?: bigint): Promise<HexString>;
|
|
1186
|
+
queryProof(message: IMessage, counterparty: string, at?: bigint): Promise<HexString$1>;
|
|
1168
1187
|
/**
|
|
1169
1188
|
* Submit an unsigned ISMP transaction to the chain. Resolves when the transaction is finalized.
|
|
1170
1189
|
* @param message - The message to be submitted.
|
|
@@ -1183,7 +1202,7 @@ declare class SubstrateChain implements IChain {
|
|
|
1183
1202
|
* @param _address - Optional address (ignored for Substrate; present for IChain compatibility).
|
|
1184
1203
|
* @returns The state proof as a hexadecimal string.
|
|
1185
1204
|
*/
|
|
1186
|
-
queryStateProof(at: bigint, keys: HexString[], _address?: HexString): Promise<HexString>;
|
|
1205
|
+
queryStateProof(at: bigint, keys: HexString$1[], _address?: HexString$1): Promise<HexString$1>;
|
|
1187
1206
|
/**
|
|
1188
1207
|
* Get the latest state machine height for a given state machine ID.
|
|
1189
1208
|
* @param {StateMachineIdParams} stateMachineId - The state machine ID.
|
|
@@ -1210,7 +1229,7 @@ declare class SubstrateChain implements IChain {
|
|
|
1210
1229
|
* @param message The ISMP message to encode.
|
|
1211
1230
|
* @returns The encoded message as a hexadecimal string.
|
|
1212
1231
|
*/
|
|
1213
|
-
encode(message: IIsmpMessage): HexString;
|
|
1232
|
+
encode(message: IIsmpMessage): HexString$1;
|
|
1214
1233
|
/**
|
|
1215
1234
|
* Queries the latest proven height for this chain from pallet-ismp.
|
|
1216
1235
|
*/
|
|
@@ -1224,7 +1243,7 @@ declare class SubstrateChain implements IChain {
|
|
|
1224
1243
|
* @param currentEpoch - The current authority set id on the destination EVM chain
|
|
1225
1244
|
*/
|
|
1226
1245
|
queryConsensusProofs(neededHeight: bigint, currentEpoch: bigint): Promise<{
|
|
1227
|
-
proofs: HexString[];
|
|
1246
|
+
proofs: HexString$1[];
|
|
1228
1247
|
provenHeight: bigint;
|
|
1229
1248
|
} | undefined>;
|
|
1230
1249
|
private getPalletIndex;
|
|
@@ -1251,7 +1270,7 @@ declare function convertStateMachineEnumToString(stateMachine: {
|
|
|
1251
1270
|
*/
|
|
1252
1271
|
declare function convertStateIdToStateMachineId(stateId: {
|
|
1253
1272
|
Evm?: number;
|
|
1254
|
-
Substrate?: HexString;
|
|
1273
|
+
Substrate?: HexString$1;
|
|
1255
1274
|
Polkadot?: number;
|
|
1256
1275
|
Kusama?: number;
|
|
1257
1276
|
}): string;
|
|
@@ -1331,21 +1350,29 @@ declare function encodeISMPMessage(message: IIsmpMessage): Uint8Array;
|
|
|
1331
1350
|
* @param userOp - The PackedUserOperation to encode
|
|
1332
1351
|
* @returns Hex-encoded SCALE bytes
|
|
1333
1352
|
*/
|
|
1334
|
-
declare function encodeUserOpScale(userOp: PackedUserOperation): HexString;
|
|
1353
|
+
declare function encodeUserOpScale(userOp: PackedUserOperation): HexString$1;
|
|
1335
1354
|
/**
|
|
1336
1355
|
* Decodes a SCALE-encoded PackedUserOperation.
|
|
1337
1356
|
*
|
|
1338
1357
|
* @param hex - The hex-encoded SCALE bytes
|
|
1339
1358
|
* @returns The decoded PackedUserOperation
|
|
1340
1359
|
*/
|
|
1341
|
-
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
|
+
}
|
|
1342
1367
|
interface PhantomOrderEvent {
|
|
1343
|
-
commitment: HexString;
|
|
1368
|
+
commitment: HexString$1;
|
|
1344
1369
|
chain: string;
|
|
1345
1370
|
createdAt: number;
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
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[];
|
|
1349
1376
|
}
|
|
1350
1377
|
interface PollPhantomOrdersOptions {
|
|
1351
1378
|
/** How often to check for a new head. Defaults to 6s, roughly one block. */
|
|
@@ -1434,7 +1461,7 @@ declare class IntentsCoprocessor {
|
|
|
1434
1461
|
* @param userOp - The encoded PackedUserOperation as hex string
|
|
1435
1462
|
* @returns BidSubmissionResult with success status and block/extrinsic hash
|
|
1436
1463
|
*/
|
|
1437
|
-
submitBid(commitment: HexString, userOp: HexString): Promise<BidSubmissionResult>;
|
|
1464
|
+
submitBid(commitment: HexString$1, userOp: HexString$1): Promise<BidSubmissionResult>;
|
|
1438
1465
|
/**
|
|
1439
1466
|
* Retracts a bid from Hyperbridge and reclaims the deposit
|
|
1440
1467
|
*
|
|
@@ -1443,7 +1470,7 @@ declare class IntentsCoprocessor {
|
|
|
1443
1470
|
* @param commitment - The order commitment hash (bytes32)
|
|
1444
1471
|
* @returns BidSubmissionResult with success status and block/extrinsic hash
|
|
1445
1472
|
*/
|
|
1446
|
-
retractBid(commitment: HexString): Promise<BidSubmissionResult>;
|
|
1473
|
+
retractBid(commitment: HexString$1): Promise<BidSubmissionResult>;
|
|
1447
1474
|
/**
|
|
1448
1475
|
* Places a new bid and retracts a previous one in a single transaction via utility.batch.
|
|
1449
1476
|
*
|
|
@@ -1464,7 +1491,7 @@ declare class IntentsCoprocessor {
|
|
|
1464
1491
|
* @param userOp - The encoded PackedUserOperation as hex string
|
|
1465
1492
|
* @returns BidSubmissionResult with success status and block/extrinsic hash
|
|
1466
1493
|
*/
|
|
1467
|
-
submitBidWithRetraction(retractCommitment: HexString, bidCommitment: HexString, userOp: HexString): Promise<BidSubmissionResult>;
|
|
1494
|
+
submitBidWithRetraction(retractCommitment: HexString$1, bidCommitment: HexString$1, userOp: HexString$1): Promise<BidSubmissionResult>;
|
|
1468
1495
|
/**
|
|
1469
1496
|
* Fetches all bid storage entries for a given order commitment.
|
|
1470
1497
|
* Returns the on-chain data only (filler addresses and deposits).
|
|
@@ -1472,7 +1499,7 @@ declare class IntentsCoprocessor {
|
|
|
1472
1499
|
* @param commitment - The order commitment hash (bytes32)
|
|
1473
1500
|
* @returns Array of BidStorageEntry objects
|
|
1474
1501
|
*/
|
|
1475
|
-
getBidStorageEntries(commitment: HexString): Promise<BidStorageEntry[]>;
|
|
1502
|
+
getBidStorageEntries(commitment: HexString$1): Promise<BidStorageEntry[]>;
|
|
1476
1503
|
/**
|
|
1477
1504
|
* Fetches all bids for a given order commitment from Hyperbridge.
|
|
1478
1505
|
*
|
|
@@ -1483,7 +1510,7 @@ declare class IntentsCoprocessor {
|
|
|
1483
1510
|
* @param commitment - The order commitment hash (bytes32)
|
|
1484
1511
|
* @returns Array of FillerBid objects containing filler address, userOp, and deposit
|
|
1485
1512
|
*/
|
|
1486
|
-
getBidsForOrder(commitment: HexString): Promise<FillerBid[]>;
|
|
1513
|
+
getBidsForOrder(commitment: HexString$1): Promise<FillerBid[]>;
|
|
1487
1514
|
/**
|
|
1488
1515
|
* Fetches bids using the custom intents_getBidsForOrder RPC.
|
|
1489
1516
|
* Single round-trip but does not include deposit amounts.
|
|
@@ -1506,7 +1533,7 @@ declare class IntentsCoprocessor {
|
|
|
1506
1533
|
* Returns `null` if the key is absent (e.g. the node is not an offchain worker
|
|
1507
1534
|
* or the commitment has expired and been cleared).
|
|
1508
1535
|
*/
|
|
1509
|
-
fetchPhantomOrder(commitment: HexString): Promise<Order | null>;
|
|
1536
|
+
fetchPhantomOrder(commitment: HexString$1): Promise<Order | null>;
|
|
1510
1537
|
/**
|
|
1511
1538
|
* Reads the PhantomOrderRegistered events emitted in a single block.
|
|
1512
1539
|
*/
|
|
@@ -1536,7 +1563,7 @@ declare class IntentsCoprocessor {
|
|
|
1536
1563
|
type IIsmpMessage = IRequestMessage | ITimeoutPostRequestMessage | IGetResponseMessage | IGetRequestMessage | IConsensusMessage | IBatchConsensusAndPostRequestMessage | IBatchConsensusAndGetResponseMessage;
|
|
1537
1564
|
interface IConsensusMessage {
|
|
1538
1565
|
kind: "Consensus";
|
|
1539
|
-
consensusProof: HexString;
|
|
1566
|
+
consensusProof: HexString$1;
|
|
1540
1567
|
}
|
|
1541
1568
|
interface IRequestMessage {
|
|
1542
1569
|
/**
|
|
@@ -1554,7 +1581,7 @@ interface IRequestMessage {
|
|
|
1554
1581
|
/**
|
|
1555
1582
|
* The signer of the message.
|
|
1556
1583
|
*/
|
|
1557
|
-
signer: HexString;
|
|
1584
|
+
signer: HexString$1;
|
|
1558
1585
|
}
|
|
1559
1586
|
interface IGetRequestMessage {
|
|
1560
1587
|
/**
|
|
@@ -1576,7 +1603,7 @@ interface IGetRequestMessage {
|
|
|
1576
1603
|
/**
|
|
1577
1604
|
* The signer of the message.
|
|
1578
1605
|
*/
|
|
1579
|
-
signer: HexString;
|
|
1606
|
+
signer: HexString$1;
|
|
1580
1607
|
}
|
|
1581
1608
|
interface IGetResponse {
|
|
1582
1609
|
/**
|
|
@@ -1604,7 +1631,7 @@ interface IGetResponseMessage {
|
|
|
1604
1631
|
/**
|
|
1605
1632
|
* The signer of the message.
|
|
1606
1633
|
*/
|
|
1607
|
-
signer: HexString;
|
|
1634
|
+
signer: HexString$1;
|
|
1608
1635
|
}
|
|
1609
1636
|
interface ITimeoutPostRequestMessage {
|
|
1610
1637
|
/**
|
|
@@ -1622,17 +1649,17 @@ interface ITimeoutPostRequestMessage {
|
|
|
1622
1649
|
}
|
|
1623
1650
|
interface IBatchConsensusAndPostRequestMessage {
|
|
1624
1651
|
kind: "BatchConsensusAndPostRequest";
|
|
1625
|
-
consensusProofs: HexString[];
|
|
1652
|
+
consensusProofs: HexString$1[];
|
|
1626
1653
|
requests: IPostRequest[];
|
|
1627
1654
|
proof: IProof;
|
|
1628
|
-
signer: HexString;
|
|
1655
|
+
signer: HexString$1;
|
|
1629
1656
|
}
|
|
1630
1657
|
interface IBatchConsensusAndGetResponseMessage {
|
|
1631
1658
|
kind: "BatchConsensusAndGetResponse";
|
|
1632
|
-
consensusProofs: HexString[];
|
|
1659
|
+
consensusProofs: HexString$1[];
|
|
1633
1660
|
responses: IGetResponse[];
|
|
1634
1661
|
proof: IProof;
|
|
1635
|
-
signer: HexString;
|
|
1662
|
+
signer: HexString$1;
|
|
1636
1663
|
}
|
|
1637
1664
|
interface IProof {
|
|
1638
1665
|
/**
|
|
@@ -1650,7 +1677,7 @@ interface IProof {
|
|
|
1650
1677
|
/**
|
|
1651
1678
|
* The encoded storage proof
|
|
1652
1679
|
*/
|
|
1653
|
-
proof: HexString;
|
|
1680
|
+
proof: HexString$1;
|
|
1654
1681
|
}
|
|
1655
1682
|
/**
|
|
1656
1683
|
* Interface representing a chain.
|
|
@@ -1664,18 +1691,18 @@ interface IChain {
|
|
|
1664
1691
|
/**
|
|
1665
1692
|
* Returns the state trie key for the request-receipt storage item for the given request commitment.
|
|
1666
1693
|
*/
|
|
1667
|
-
requestReceiptKey(commitment: HexString): HexString;
|
|
1694
|
+
requestReceiptKey(commitment: HexString$1): HexString$1;
|
|
1668
1695
|
/**
|
|
1669
1696
|
* Query and return the request-receipt for the given request commitment.
|
|
1670
1697
|
*/
|
|
1671
|
-
queryRequestReceipt(commitment: HexString): Promise<HexString | undefined>;
|
|
1698
|
+
queryRequestReceipt(commitment: HexString$1): Promise<HexString$1 | undefined>;
|
|
1672
1699
|
/**
|
|
1673
1700
|
* Query and return the encoded storage proof for the provided keys at the given height.
|
|
1674
1701
|
* @param address - Optional contract address for EVM chains; defaults to host contract when omitted.
|
|
1675
1702
|
*/
|
|
1676
|
-
queryStateProof(at: bigint, keys: HexString[], address?: HexString): Promise<HexString>;
|
|
1677
|
-
queryProof(message: IMessage, counterparty: string, at?: bigint): Promise<HexString>;
|
|
1678
|
-
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;
|
|
1679
1706
|
/**
|
|
1680
1707
|
* Get the latest state machine height for a given state machine ID.
|
|
1681
1708
|
*/
|
|
@@ -1700,18 +1727,18 @@ interface IEvmChain extends IChain {
|
|
|
1700
1727
|
getHostNonce(): Promise<bigint>;
|
|
1701
1728
|
quoteNative(request: IPostRequest | IGetRequest, fee: bigint): Promise<bigint>;
|
|
1702
1729
|
getFeeTokenWithDecimals(): Promise<{
|
|
1703
|
-
address: HexString;
|
|
1730
|
+
address: HexString$1;
|
|
1704
1731
|
decimals: number;
|
|
1705
1732
|
}>;
|
|
1706
|
-
getPlaceOrderCalldata(txHash: string, intentGatewayAddress: string, occurrenceIndex?: number): Promise<HexString>;
|
|
1707
|
-
broadcastTransaction(signedTransaction: HexString): Promise<TransactionReceipt>;
|
|
1708
|
-
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>;
|
|
1709
1736
|
}
|
|
1710
1737
|
|
|
1711
1738
|
type EstimateGasCallData = ContractFunctionArgs<typeof _default$1.ABI, "nonpayable" | "payable", "handlePostRequests">;
|
|
1712
|
-
type HexString = `0x${string}`;
|
|
1739
|
+
type HexString$1 = `0x${string}`;
|
|
1713
1740
|
type StateMachineId = string;
|
|
1714
|
-
type BytesLikeHex = HexString;
|
|
1741
|
+
type BytesLikeHex = HexString$1;
|
|
1715
1742
|
interface IConfig {
|
|
1716
1743
|
source: IEvmConfig | ISubstrateConfig | IPolkadotHubConfig | IPharosConfig;
|
|
1717
1744
|
dest: IEvmConfig | ISubstrateConfig | IPolkadotHubConfig | IPharosConfig;
|
|
@@ -1721,7 +1748,7 @@ interface IConfig {
|
|
|
1721
1748
|
interface IEvmConfig {
|
|
1722
1749
|
rpcUrl: string;
|
|
1723
1750
|
stateMachineId: string;
|
|
1724
|
-
host: HexString;
|
|
1751
|
+
host: HexString$1;
|
|
1725
1752
|
consensusStateId: string;
|
|
1726
1753
|
}
|
|
1727
1754
|
/**
|
|
@@ -1753,25 +1780,25 @@ interface IHyperbridgeConfig {
|
|
|
1753
1780
|
interface IPostRequest {
|
|
1754
1781
|
source: string;
|
|
1755
1782
|
dest: string;
|
|
1756
|
-
from: HexString;
|
|
1757
|
-
to: HexString;
|
|
1783
|
+
from: HexString$1;
|
|
1784
|
+
to: HexString$1;
|
|
1758
1785
|
nonce: bigint;
|
|
1759
|
-
body: HexString;
|
|
1786
|
+
body: HexString$1;
|
|
1760
1787
|
timeoutTimestamp: bigint;
|
|
1761
1788
|
}
|
|
1762
1789
|
interface IGetRequest {
|
|
1763
1790
|
source: string;
|
|
1764
1791
|
dest: string;
|
|
1765
|
-
from: HexString;
|
|
1792
|
+
from: HexString$1;
|
|
1766
1793
|
nonce: bigint;
|
|
1767
1794
|
height: bigint;
|
|
1768
|
-
keys: HexString[];
|
|
1795
|
+
keys: HexString$1[];
|
|
1769
1796
|
timeoutTimestamp: bigint;
|
|
1770
|
-
context: HexString;
|
|
1797
|
+
context: HexString$1;
|
|
1771
1798
|
}
|
|
1772
1799
|
interface GetResponseStorageValues {
|
|
1773
|
-
key: HexString;
|
|
1774
|
-
value: HexString;
|
|
1800
|
+
key: HexString$1;
|
|
1801
|
+
value: HexString$1;
|
|
1775
1802
|
}
|
|
1776
1803
|
interface IPostResponse {
|
|
1777
1804
|
post: IPostRequest;
|
|
@@ -1779,9 +1806,9 @@ interface IPostResponse {
|
|
|
1779
1806
|
timeoutTimestamp: bigint;
|
|
1780
1807
|
}
|
|
1781
1808
|
type IMessage = {
|
|
1782
|
-
Requests: HexString[];
|
|
1809
|
+
Requests: HexString$1[];
|
|
1783
1810
|
} | {
|
|
1784
|
-
Responses: HexString[];
|
|
1811
|
+
Responses: HexString$1[];
|
|
1785
1812
|
};
|
|
1786
1813
|
type IndexerQueryClient = GraphQLClient;
|
|
1787
1814
|
interface ClientConfig {
|
|
@@ -1946,10 +1973,10 @@ interface RequestResponse {
|
|
|
1946
1973
|
nodes: Array<{
|
|
1947
1974
|
source: string;
|
|
1948
1975
|
dest: string;
|
|
1949
|
-
to: HexString;
|
|
1950
|
-
from: HexString;
|
|
1976
|
+
to: HexString$1;
|
|
1977
|
+
from: HexString$1;
|
|
1951
1978
|
nonce: bigint;
|
|
1952
|
-
body: HexString;
|
|
1979
|
+
body: HexString$1;
|
|
1953
1980
|
timeoutTimestamp: bigint;
|
|
1954
1981
|
statusMetadata: {
|
|
1955
1982
|
nodes: Array<{
|
|
@@ -1969,12 +1996,12 @@ interface GetRequestResponse {
|
|
|
1969
1996
|
nodes: Array<{
|
|
1970
1997
|
source: string;
|
|
1971
1998
|
dest: string;
|
|
1972
|
-
to: HexString;
|
|
1973
|
-
from: HexString;
|
|
1999
|
+
to: HexString$1;
|
|
2000
|
+
from: HexString$1;
|
|
1974
2001
|
nonce: bigint;
|
|
1975
2002
|
height: bigint;
|
|
1976
|
-
keys: HexString[];
|
|
1977
|
-
context: HexString;
|
|
2003
|
+
keys: HexString$1[];
|
|
2004
|
+
context: HexString$1;
|
|
1978
2005
|
timeoutTimestamp: bigint;
|
|
1979
2006
|
statusMetadata: {
|
|
1980
2007
|
nodes: Array<{
|
|
@@ -2074,20 +2101,20 @@ type RequestStatusWithMetadata = {
|
|
|
2074
2101
|
interface GenericRequestWithStatuses {
|
|
2075
2102
|
source: string;
|
|
2076
2103
|
dest: string;
|
|
2077
|
-
from: HexString;
|
|
2104
|
+
from: HexString$1;
|
|
2078
2105
|
nonce: bigint;
|
|
2079
2106
|
timeoutTimestamp: bigint;
|
|
2080
2107
|
statuses: Array<RequestStatusWithMetadata>;
|
|
2081
2108
|
}
|
|
2082
2109
|
interface PostRequestWithStatus extends GenericRequestWithStatuses {
|
|
2083
|
-
to: HexString;
|
|
2084
|
-
body: HexString;
|
|
2110
|
+
to: HexString$1;
|
|
2111
|
+
body: HexString$1;
|
|
2085
2112
|
}
|
|
2086
2113
|
interface GetRequestWithStatus extends GenericRequestWithStatuses {
|
|
2087
2114
|
height: bigint;
|
|
2088
|
-
keys: HexString[];
|
|
2089
|
-
context: HexString;
|
|
2090
|
-
commitment: HexString;
|
|
2115
|
+
keys: HexString$1[];
|
|
2116
|
+
context: HexString$1;
|
|
2117
|
+
commitment: HexString$1;
|
|
2091
2118
|
}
|
|
2092
2119
|
interface GetResponseByRequestIdResponse {
|
|
2093
2120
|
getResponses: {
|
|
@@ -2130,7 +2157,7 @@ interface AssetTeleported {
|
|
|
2130
2157
|
to: string;
|
|
2131
2158
|
amount: bigint;
|
|
2132
2159
|
dest: string;
|
|
2133
|
-
commitment: HexString;
|
|
2160
|
+
commitment: HexString$1;
|
|
2134
2161
|
createdAt: Date;
|
|
2135
2162
|
blockNumber: number;
|
|
2136
2163
|
}
|
|
@@ -2140,7 +2167,7 @@ interface AssetTeleportedResponse {
|
|
|
2140
2167
|
interface StateMachineIdParams {
|
|
2141
2168
|
stateId: {
|
|
2142
2169
|
Evm?: number;
|
|
2143
|
-
Substrate?: HexString;
|
|
2170
|
+
Substrate?: HexString$1;
|
|
2144
2171
|
Polkadot?: number;
|
|
2145
2172
|
Kusama?: number;
|
|
2146
2173
|
};
|
|
@@ -2183,58 +2210,73 @@ interface TokenInfo {
|
|
|
2183
2210
|
interface DecodedOrderPlacedLog extends Log {
|
|
2184
2211
|
eventName: string;
|
|
2185
2212
|
args: {
|
|
2186
|
-
user: HexString;
|
|
2213
|
+
user: HexString$1;
|
|
2187
2214
|
source: string;
|
|
2188
2215
|
destination: string;
|
|
2189
2216
|
deadline: bigint;
|
|
2190
2217
|
nonce: bigint;
|
|
2191
2218
|
fees: bigint;
|
|
2192
|
-
session: HexString;
|
|
2193
|
-
beneficiary: HexString;
|
|
2219
|
+
session: HexString$1;
|
|
2220
|
+
beneficiary: HexString$1;
|
|
2194
2221
|
predispatch: Array<{
|
|
2195
|
-
token: HexString;
|
|
2222
|
+
token: HexString$1;
|
|
2196
2223
|
amount: bigint;
|
|
2197
2224
|
}>;
|
|
2198
2225
|
inputs: Array<{
|
|
2199
|
-
token: HexString;
|
|
2226
|
+
token: HexString$1;
|
|
2200
2227
|
amount: bigint;
|
|
2201
2228
|
}>;
|
|
2202
2229
|
outputs: Array<{
|
|
2203
|
-
token: HexString;
|
|
2230
|
+
token: HexString$1;
|
|
2204
2231
|
amount: bigint;
|
|
2205
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;
|
|
2206
2248
|
};
|
|
2207
|
-
transactionHash: HexString;
|
|
2249
|
+
transactionHash: HexString$1;
|
|
2208
2250
|
}
|
|
2209
2251
|
interface DecodedPostRequestEvent extends Log {
|
|
2210
2252
|
eventName: string;
|
|
2211
2253
|
args: {
|
|
2212
2254
|
source: string;
|
|
2213
2255
|
dest: string;
|
|
2214
|
-
from: HexString;
|
|
2215
|
-
to: HexString;
|
|
2256
|
+
from: HexString$1;
|
|
2257
|
+
to: HexString$1;
|
|
2216
2258
|
nonce: bigint;
|
|
2217
2259
|
timeoutTimestamp: bigint;
|
|
2218
|
-
body: HexString;
|
|
2260
|
+
body: HexString$1;
|
|
2219
2261
|
fee: bigint;
|
|
2220
2262
|
};
|
|
2221
|
-
transactionHash: HexString;
|
|
2263
|
+
transactionHash: HexString$1;
|
|
2222
2264
|
}
|
|
2223
2265
|
interface DecodedPostResponseEvent extends Log {
|
|
2224
2266
|
eventName: string;
|
|
2225
2267
|
args: {
|
|
2226
2268
|
source: string;
|
|
2227
2269
|
dest: string;
|
|
2228
|
-
from: HexString;
|
|
2229
|
-
to: HexString;
|
|
2270
|
+
from: HexString$1;
|
|
2271
|
+
to: HexString$1;
|
|
2230
2272
|
nonce: bigint;
|
|
2231
2273
|
timeoutTimestamp: bigint;
|
|
2232
|
-
body: HexString;
|
|
2233
|
-
response: HexString;
|
|
2274
|
+
body: HexString$1;
|
|
2275
|
+
response: HexString$1;
|
|
2234
2276
|
responseTimeoutTimestamp: bigint;
|
|
2235
2277
|
fee: bigint;
|
|
2236
2278
|
};
|
|
2237
|
-
transactionHash: HexString;
|
|
2279
|
+
transactionHash: HexString$1;
|
|
2238
2280
|
}
|
|
2239
2281
|
/**
|
|
2240
2282
|
* Options for canceling an order
|
|
@@ -2256,11 +2298,11 @@ interface Deployment {
|
|
|
2256
2298
|
/**
|
|
2257
2299
|
* The raw state machine ID bytes for the deployment chain (hashed on-chain)
|
|
2258
2300
|
*/
|
|
2259
|
-
chain: HexString;
|
|
2301
|
+
chain: HexString$1;
|
|
2260
2302
|
/**
|
|
2261
2303
|
* The gateway identifier
|
|
2262
2304
|
*/
|
|
2263
|
-
gateway: HexString;
|
|
2305
|
+
gateway: HexString$1;
|
|
2264
2306
|
}
|
|
2265
2307
|
/**
|
|
2266
2308
|
* Represents the body of a request
|
|
@@ -2269,11 +2311,11 @@ interface RequestBody {
|
|
|
2269
2311
|
/**
|
|
2270
2312
|
* Represents the commitment of an order
|
|
2271
2313
|
*/
|
|
2272
|
-
commitment: HexString;
|
|
2314
|
+
commitment: HexString$1;
|
|
2273
2315
|
/**
|
|
2274
2316
|
* Stores the identifier for the beneficiary
|
|
2275
2317
|
*/
|
|
2276
|
-
beneficiary: HexString;
|
|
2318
|
+
beneficiary: HexString$1;
|
|
2277
2319
|
/**
|
|
2278
2320
|
* An array of token identifiers
|
|
2279
2321
|
*/
|
|
@@ -2374,6 +2416,13 @@ interface FillerConfig {
|
|
|
2374
2416
|
* Example: { 1: true, 56: false } - watch-only on Ethereum, normal execution on BSC
|
|
2375
2417
|
*/
|
|
2376
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[];
|
|
2377
2426
|
}
|
|
2378
2427
|
/**
|
|
2379
2428
|
* Result of an order execution attempt
|
|
@@ -2423,8 +2472,8 @@ interface ExecutionResult {
|
|
|
2423
2472
|
* Any tokens exchanged during the fill process
|
|
2424
2473
|
*/
|
|
2425
2474
|
exchanges?: Array<{
|
|
2426
|
-
fromToken: HexString;
|
|
2427
|
-
toToken: HexString;
|
|
2475
|
+
fromToken: HexString$1;
|
|
2476
|
+
toToken: HexString$1;
|
|
2428
2477
|
fromAmount: string;
|
|
2429
2478
|
toAmount: string;
|
|
2430
2479
|
exchangeRate: string;
|
|
@@ -2446,15 +2495,15 @@ interface DispatchPost {
|
|
|
2446
2495
|
/**
|
|
2447
2496
|
* Bytes representation of the destination state machine
|
|
2448
2497
|
*/
|
|
2449
|
-
dest: HexString;
|
|
2498
|
+
dest: HexString$1;
|
|
2450
2499
|
/**
|
|
2451
2500
|
* The destination module
|
|
2452
2501
|
*/
|
|
2453
|
-
to: HexString;
|
|
2502
|
+
to: HexString$1;
|
|
2454
2503
|
/**
|
|
2455
2504
|
* The request body
|
|
2456
2505
|
*/
|
|
2457
|
-
body: HexString;
|
|
2506
|
+
body: HexString$1;
|
|
2458
2507
|
/**
|
|
2459
2508
|
* Timeout for this request in seconds
|
|
2460
2509
|
*/
|
|
@@ -2467,13 +2516,13 @@ interface DispatchPost {
|
|
|
2467
2516
|
/**
|
|
2468
2517
|
* Who pays for this request?
|
|
2469
2518
|
*/
|
|
2470
|
-
payer: HexString;
|
|
2519
|
+
payer: HexString$1;
|
|
2471
2520
|
}
|
|
2472
2521
|
interface DispatchGet {
|
|
2473
2522
|
/**
|
|
2474
2523
|
* Bytes representation of the destination state machine
|
|
2475
2524
|
*/
|
|
2476
|
-
dest: HexString;
|
|
2525
|
+
dest: HexString$1;
|
|
2477
2526
|
/**
|
|
2478
2527
|
* Height at which to read the state machine
|
|
2479
2528
|
*/
|
|
@@ -2481,7 +2530,7 @@ interface DispatchGet {
|
|
|
2481
2530
|
/**
|
|
2482
2531
|
* Raw storage keys to fetch values from the counterparty
|
|
2483
2532
|
*/
|
|
2484
|
-
keys: HexString[];
|
|
2533
|
+
keys: HexString$1[];
|
|
2485
2534
|
/**
|
|
2486
2535
|
* Timeout for this request in seconds
|
|
2487
2536
|
*/
|
|
@@ -2493,17 +2542,17 @@ interface DispatchGet {
|
|
|
2493
2542
|
/**
|
|
2494
2543
|
* Context for the request
|
|
2495
2544
|
*/
|
|
2496
|
-
context: HexString;
|
|
2545
|
+
context: HexString$1;
|
|
2497
2546
|
/**
|
|
2498
2547
|
* Who pays for this request?
|
|
2499
2548
|
*/
|
|
2500
|
-
payer: HexString;
|
|
2549
|
+
payer: HexString$1;
|
|
2501
2550
|
}
|
|
2502
2551
|
interface StateMachineHeight {
|
|
2503
2552
|
id: {
|
|
2504
2553
|
stateId: {
|
|
2505
2554
|
Evm?: number;
|
|
2506
|
-
Substrate?: HexString;
|
|
2555
|
+
Substrate?: HexString$1;
|
|
2507
2556
|
Polkadot?: number;
|
|
2508
2557
|
Kusama?: number;
|
|
2509
2558
|
};
|
|
@@ -2519,26 +2568,26 @@ interface HostParams {
|
|
|
2519
2568
|
* The fee token contract address. This will typically be DAI.
|
|
2520
2569
|
* but we allow it to be configurable to prevent future regrets.
|
|
2521
2570
|
*/
|
|
2522
|
-
feeToken: HexString;
|
|
2571
|
+
feeToken: HexString$1;
|
|
2523
2572
|
/**
|
|
2524
2573
|
* The admin account, this only has the rights to freeze, or unfreeze the bridge
|
|
2525
2574
|
*/
|
|
2526
|
-
admin: HexString;
|
|
2575
|
+
admin: HexString$1;
|
|
2527
2576
|
/**
|
|
2528
2577
|
* Ismp message handler contract. This performs all verification logic
|
|
2529
2578
|
* needed to validate cross-chain messages before they are dispatched to local modules
|
|
2530
2579
|
*/
|
|
2531
|
-
handler: HexString;
|
|
2580
|
+
handler: HexString$1;
|
|
2532
2581
|
/**
|
|
2533
2582
|
* The authorized host manager contract, is itself an `IIsmpModule`
|
|
2534
2583
|
* which receives governance requests from the Hyperbridge chain to either
|
|
2535
2584
|
* withdraw revenue from the host or update its protocol parameters
|
|
2536
2585
|
*/
|
|
2537
|
-
hostManager: HexString;
|
|
2586
|
+
hostManager: HexString$1;
|
|
2538
2587
|
/**
|
|
2539
2588
|
* The local UniswapV2Router02 contract, used for swapping the native token to the feeToken.
|
|
2540
2589
|
*/
|
|
2541
|
-
uniswapV2: HexString;
|
|
2590
|
+
uniswapV2: HexString$1;
|
|
2542
2591
|
/**
|
|
2543
2592
|
* The unstaking period of Polkadot's validators. In order to prevent long-range attacks
|
|
2544
2593
|
*/
|
|
@@ -2550,7 +2599,7 @@ interface HostParams {
|
|
|
2550
2599
|
/**
|
|
2551
2600
|
* The consensus client contract which handles consensus proof verification
|
|
2552
2601
|
*/
|
|
2553
|
-
consensusClient: HexString;
|
|
2602
|
+
consensusClient: HexString$1;
|
|
2554
2603
|
/**
|
|
2555
2604
|
* State machines whose state commitments are accepted
|
|
2556
2605
|
*/
|
|
@@ -2558,7 +2607,7 @@ interface HostParams {
|
|
|
2558
2607
|
/**
|
|
2559
2608
|
* The state machine identifier for hyperbridge
|
|
2560
2609
|
*/
|
|
2561
|
-
hyperbridge: HexString;
|
|
2610
|
+
hyperbridge: HexString$1;
|
|
2562
2611
|
}
|
|
2563
2612
|
interface OrderStatusMetadata {
|
|
2564
2613
|
status: OrderStatus;
|
|
@@ -2640,9 +2689,9 @@ interface OrderResponse {
|
|
|
2640
2689
|
};
|
|
2641
2690
|
}
|
|
2642
2691
|
interface PhantomOrderPriceSnapshot {
|
|
2643
|
-
commitment: HexString;
|
|
2644
|
-
tokenA: HexString;
|
|
2645
|
-
tokenB: HexString;
|
|
2692
|
+
commitment: HexString$1;
|
|
2693
|
+
tokenA: HexString$1;
|
|
2694
|
+
tokenB: HexString$1;
|
|
2646
2695
|
standardAmount: bigint;
|
|
2647
2696
|
blockNumber: bigint;
|
|
2648
2697
|
medianPrice: bigint;
|
|
@@ -2676,14 +2725,14 @@ interface PhantomOrderPriceSnapshotsResponse {
|
|
|
2676
2725
|
interface AvailableLiquiditySnapshot {
|
|
2677
2726
|
totalLiquidity: string;
|
|
2678
2727
|
providerCount: number;
|
|
2679
|
-
tokenAddress: HexString;
|
|
2728
|
+
tokenAddress: HexString$1;
|
|
2680
2729
|
snapshotTime: Date;
|
|
2681
2730
|
liquidityByChain: AvailableLiquidityByChain[];
|
|
2682
2731
|
}
|
|
2683
2732
|
/** Liquidity for one chain/token balance group in an availability snapshot. */
|
|
2684
2733
|
interface AvailableLiquidityByChain {
|
|
2685
2734
|
chain: string;
|
|
2686
|
-
tokenAddress: HexString;
|
|
2735
|
+
tokenAddress: HexString$1;
|
|
2687
2736
|
totalLiquidity: string;
|
|
2688
2737
|
providerCount: number;
|
|
2689
2738
|
}
|
|
@@ -2713,7 +2762,7 @@ interface Transaction {
|
|
|
2713
2762
|
/**
|
|
2714
2763
|
* The address to send the transaction to (typically the Universal Router address)
|
|
2715
2764
|
*/
|
|
2716
|
-
to: HexString;
|
|
2765
|
+
to: HexString$1;
|
|
2717
2766
|
/**
|
|
2718
2767
|
* The value to send with the transaction (in wei)
|
|
2719
2768
|
*/
|
|
@@ -2721,7 +2770,7 @@ interface Transaction {
|
|
|
2721
2770
|
/**
|
|
2722
2771
|
* The calldata for the transaction
|
|
2723
2772
|
*/
|
|
2724
|
-
data: HexString;
|
|
2773
|
+
data: HexString$1;
|
|
2725
2774
|
}
|
|
2726
2775
|
interface StorageFacade {
|
|
2727
2776
|
get<T>(key: string): Promise<T | undefined>;
|
|
@@ -2732,15 +2781,15 @@ interface PaymentInfo {
|
|
|
2732
2781
|
/** Accepts a standard 20-byte address; the SDK pads to bytes32 internally when needed. */
|
|
2733
2782
|
beneficiary: BytesLikeHex;
|
|
2734
2783
|
assets: TokenInfo[];
|
|
2735
|
-
call: HexString;
|
|
2784
|
+
call: HexString$1;
|
|
2736
2785
|
}
|
|
2737
2786
|
interface DispatchInfo {
|
|
2738
2787
|
assets: TokenInfo[];
|
|
2739
|
-
call: HexString;
|
|
2788
|
+
call: HexString$1;
|
|
2740
2789
|
}
|
|
2741
2790
|
interface Order {
|
|
2742
2791
|
id?: string;
|
|
2743
|
-
user: HexString;
|
|
2792
|
+
user: HexString$1;
|
|
2744
2793
|
/** Accepts either `"EVM-1"` style IDs or their hex-encoded form. */
|
|
2745
2794
|
source: StateMachineId;
|
|
2746
2795
|
/** Accepts either `"EVM-42161"` style IDs or their hex-encoded form. */
|
|
@@ -2748,7 +2797,7 @@ interface Order {
|
|
|
2748
2797
|
deadline: bigint;
|
|
2749
2798
|
nonce: bigint;
|
|
2750
2799
|
fees: bigint;
|
|
2751
|
-
session: HexString;
|
|
2800
|
+
session: HexString$1;
|
|
2752
2801
|
predispatch: DispatchInfo;
|
|
2753
2802
|
inputs: TokenInfo[];
|
|
2754
2803
|
output: PaymentInfo;
|
|
@@ -2763,52 +2812,52 @@ interface FillOptions {
|
|
|
2763
2812
|
outputs: TokenInfo[];
|
|
2764
2813
|
}
|
|
2765
2814
|
interface PackedUserOperation {
|
|
2766
|
-
sender: HexString;
|
|
2815
|
+
sender: HexString$1;
|
|
2767
2816
|
nonce: bigint;
|
|
2768
|
-
initCode: HexString;
|
|
2769
|
-
callData: HexString;
|
|
2770
|
-
accountGasLimits: HexString;
|
|
2817
|
+
initCode: HexString$1;
|
|
2818
|
+
callData: HexString$1;
|
|
2819
|
+
accountGasLimits: HexString$1;
|
|
2771
2820
|
preVerificationGas: bigint;
|
|
2772
|
-
gasFees: HexString;
|
|
2773
|
-
paymasterAndData: HexString;
|
|
2774
|
-
signature: HexString;
|
|
2821
|
+
gasFees: HexString$1;
|
|
2822
|
+
paymasterAndData: HexString$1;
|
|
2823
|
+
signature: HexString$1;
|
|
2775
2824
|
}
|
|
2776
2825
|
interface SigningAccount {
|
|
2777
2826
|
/** Signs a bid message hash for a given chain. Returns a 65-byte ECDSA signature. */
|
|
2778
|
-
signMessage: (messageHash: HexString, chainId: number) => Promise<HexString>;
|
|
2827
|
+
signMessage: (messageHash: HexString$1, chainId: number) => Promise<HexString$1>;
|
|
2779
2828
|
/** Signs a raw 32-byte hash, returning split signature components for EIP-7702 etc. */
|
|
2780
|
-
signRawHash: (hash: HexString) => Promise<{
|
|
2781
|
-
r: HexString;
|
|
2782
|
-
s: HexString;
|
|
2829
|
+
signRawHash: (hash: HexString$1) => Promise<{
|
|
2830
|
+
r: HexString$1;
|
|
2831
|
+
s: HexString$1;
|
|
2783
2832
|
yParity: number;
|
|
2784
2833
|
}>;
|
|
2785
2834
|
/**
|
|
2786
2835
|
* Signs an EIP-712 typed-data payload (e.g. an EIP-2612 USDC permit for the Circle Paymaster).
|
|
2787
2836
|
* The shape of `typedData` matches viem's `TypedDataDefinition` (domain + types + message).
|
|
2788
2837
|
*/
|
|
2789
|
-
signTypedData: (typedData: unknown, chainId?: number) => Promise<HexString>;
|
|
2838
|
+
signTypedData: (typedData: unknown, chainId?: number) => Promise<HexString$1>;
|
|
2790
2839
|
}
|
|
2791
2840
|
interface SubmitBidOptions {
|
|
2792
2841
|
order: Order;
|
|
2793
2842
|
fillOptions: FillOptions;
|
|
2794
|
-
solverAccount: HexString;
|
|
2843
|
+
solverAccount: HexString$1;
|
|
2795
2844
|
/** Canonical signer used for bid message signing and raw-hash operations. */
|
|
2796
2845
|
solverSigner: SigningAccount;
|
|
2797
2846
|
nonce: bigint;
|
|
2798
|
-
entryPointAddress: HexString;
|
|
2847
|
+
entryPointAddress: HexString$1;
|
|
2799
2848
|
callGasLimit: bigint;
|
|
2800
2849
|
verificationGasLimit: bigint;
|
|
2801
2850
|
preVerificationGas: bigint;
|
|
2802
2851
|
maxFeePerGas: bigint;
|
|
2803
2852
|
maxPriorityFeePerGas: bigint;
|
|
2804
2853
|
/** Pre-built ERC-7821 calldata encoding the UserOp execution (approvals + fillOrder). */
|
|
2805
|
-
callData: HexString;
|
|
2854
|
+
callData: HexString$1;
|
|
2806
2855
|
/**
|
|
2807
2856
|
* Optional packed paymasterAndData for EntryPoint v0.8.
|
|
2808
2857
|
* Must be built BEFORE calling prepareSubmitBid so the hash covers paymaster bytes.
|
|
2809
2858
|
* Defaults to "0x" (EntryPoint deposit pays gas).
|
|
2810
2859
|
*/
|
|
2811
|
-
paymasterAndData?: HexString;
|
|
2860
|
+
paymasterAndData?: HexString$1;
|
|
2812
2861
|
}
|
|
2813
2862
|
interface EstimateFillOrderParams {
|
|
2814
2863
|
order: Order;
|
|
@@ -2852,6 +2901,33 @@ interface FillOrderEstimate {
|
|
|
2852
2901
|
*/
|
|
2853
2902
|
relayerFeeInSourceFeeToken: bigint;
|
|
2854
2903
|
}
|
|
2904
|
+
/**
|
|
2905
|
+
* Solver-fee quote for an order, priced with the same policy `execute()` /
|
|
2906
|
+
* `executeBest()` apply when `order.fees` is `0n`.
|
|
2907
|
+
*/
|
|
2908
|
+
interface OrderFeesQuote {
|
|
2909
|
+
/**
|
|
2910
|
+
* The amount to set as `Order.fees`, denominated in the source-chain fee
|
|
2911
|
+
* token. Same-chain fills carry a 2x margin over the estimated fill gas without
|
|
2912
|
+
* a gas-price bump. Cross-chain gas is priced with 10% SDK-only headroom before
|
|
2913
|
+
* adding the settlement relayer fee and a further 5% buffer over the whole sum.
|
|
2914
|
+
*/
|
|
2915
|
+
fees: bigint;
|
|
2916
|
+
/**
|
|
2917
|
+
* The native value attached to the placement transaction when the fee is
|
|
2918
|
+
* paid in the native token: the estimated fill gas cost in source-chain
|
|
2919
|
+
* wei plus a 2% buffer. The gateway swaps it for the fee token and refunds
|
|
2920
|
+
* any unused amount.
|
|
2921
|
+
*/
|
|
2922
|
+
nativeValue: bigint;
|
|
2923
|
+
/**
|
|
2924
|
+
* The source-chain fee token `fees` is denominated in — check the user's
|
|
2925
|
+
* balance and allowance against this address when paying the fee directly.
|
|
2926
|
+
*/
|
|
2927
|
+
feeToken: HexString$1;
|
|
2928
|
+
/** The underlying gas estimate the quote was derived from. */
|
|
2929
|
+
estimate: FillOrderEstimate;
|
|
2930
|
+
}
|
|
2855
2931
|
/**
|
|
2856
2932
|
* Result of submitting a bid to Hyperbridge
|
|
2857
2933
|
*/
|
|
@@ -2863,11 +2939,11 @@ interface BidSubmissionResult {
|
|
|
2863
2939
|
/**
|
|
2864
2940
|
* Block hash where the bid was included
|
|
2865
2941
|
*/
|
|
2866
|
-
blockHash?: HexString;
|
|
2942
|
+
blockHash?: HexString$1;
|
|
2867
2943
|
/**
|
|
2868
2944
|
* Extrinsic hash of the bid transaction
|
|
2869
2945
|
*/
|
|
2870
|
-
extrinsicHash?: HexString;
|
|
2946
|
+
extrinsicHash?: HexString$1;
|
|
2871
2947
|
/**
|
|
2872
2948
|
* Error message if submission failed
|
|
2873
2949
|
*/
|
|
@@ -2879,7 +2955,7 @@ interface BidSubmissionResult {
|
|
|
2879
2955
|
*/
|
|
2880
2956
|
interface BidStorageEntry {
|
|
2881
2957
|
/** The order commitment hash (H256) */
|
|
2882
|
-
commitment: HexString;
|
|
2958
|
+
commitment: HexString$1;
|
|
2883
2959
|
/** The filler's Substrate account ID (SS58 encoded) */
|
|
2884
2960
|
filler: string;
|
|
2885
2961
|
/** The deposit amount stored on-chain (BalanceOf<T> = u128) */
|
|
@@ -2902,11 +2978,11 @@ interface FillerBid {
|
|
|
2902
2978
|
*/
|
|
2903
2979
|
interface SelectOptions {
|
|
2904
2980
|
/** The order commitment hash (bytes32) */
|
|
2905
|
-
commitment: HexString;
|
|
2981
|
+
commitment: HexString$1;
|
|
2906
2982
|
/** The solver address to select */
|
|
2907
|
-
solver: HexString;
|
|
2983
|
+
solver: HexString$1;
|
|
2908
2984
|
/** The EIP-712 signature from the session key */
|
|
2909
|
-
signature: HexString;
|
|
2985
|
+
signature: HexString$1;
|
|
2910
2986
|
}
|
|
2911
2987
|
/**
|
|
2912
2988
|
* A first-class, executable solver bid surfaced to consumers of the intents SDK.
|
|
@@ -2924,7 +3000,7 @@ interface SelectOptions {
|
|
|
2924
3000
|
*/
|
|
2925
3001
|
interface Bid {
|
|
2926
3002
|
/** The solver account that submitted this bid (`userOp.sender`). */
|
|
2927
|
-
readonly solverAddress: HexString;
|
|
3003
|
+
readonly solverAddress: HexString$1;
|
|
2928
3004
|
/** Decoded `FillOptions.outputs` — the tokens and amounts the solver offers. */
|
|
2929
3005
|
readonly outputs: TokenInfo[];
|
|
2930
3006
|
/** Relayer fee from the decoded fill options. */
|
|
@@ -2973,61 +3049,77 @@ type IntentOrderStatusKey = keyof typeof IntentOrderStatus;
|
|
|
2973
3049
|
/** Tagged union of all possible status updates yielded by the intent order execution stream */
|
|
2974
3050
|
type IntentOrderStatusUpdate = {
|
|
2975
3051
|
status: "AWAITING_PLACE_ORDER";
|
|
2976
|
-
to: HexString;
|
|
2977
|
-
data: HexString;
|
|
2978
|
-
|
|
2979
|
-
|
|
3052
|
+
to: HexString$1;
|
|
3053
|
+
data: HexString$1;
|
|
3054
|
+
/**
|
|
3055
|
+
* The order's native-token input amounts. Native inputs cannot be
|
|
3056
|
+
* pulled via allowance, so this must be part of the placement
|
|
3057
|
+
* transaction's `msg.value`. Does not include the solver fee.
|
|
3058
|
+
*/
|
|
3059
|
+
value: bigint;
|
|
3060
|
+
/**
|
|
3061
|
+
* The native amount that funds `order.fees`: what the gateway swaps
|
|
3062
|
+
* into the fee token at placement. Add it to `value` when paying the
|
|
3063
|
+
* fee in native token. `0n` when `order.fees` was set by the caller
|
|
3064
|
+
* (fee-token rail).
|
|
3065
|
+
*/
|
|
3066
|
+
nativeFee: bigint;
|
|
3067
|
+
sessionPrivateKey: HexString$1;
|
|
3068
|
+
/** Exact source-chain fee-token amount encoded in `data`. */
|
|
3069
|
+
feeTokenAmount: bigint;
|
|
3070
|
+
/** Source-chain ERC-20 token charged for `feeTokenAmount`. */
|
|
3071
|
+
feeTokenAddress: HexString$1;
|
|
2980
3072
|
} | {
|
|
2981
3073
|
status: "ORDER_PLACED";
|
|
2982
3074
|
order: Order;
|
|
2983
3075
|
receipt: TransactionReceipt;
|
|
2984
3076
|
} | {
|
|
2985
3077
|
status: "AWAITING_BIDS";
|
|
2986
|
-
commitment: HexString;
|
|
3078
|
+
commitment: HexString$1;
|
|
2987
3079
|
totalFilledAssets: TokenInfo[];
|
|
2988
3080
|
remainingAssets: TokenInfo[];
|
|
2989
3081
|
} | {
|
|
2990
3082
|
status: "NEW_BID";
|
|
2991
|
-
commitment: HexString;
|
|
3083
|
+
commitment: HexString$1;
|
|
2992
3084
|
bid: Bid;
|
|
2993
3085
|
} | {
|
|
2994
3086
|
status: "BIDS_RECEIVED";
|
|
2995
|
-
commitment: HexString;
|
|
3087
|
+
commitment: HexString$1;
|
|
2996
3088
|
bidCount: number;
|
|
2997
3089
|
bids: Bid[];
|
|
2998
3090
|
} | {
|
|
2999
3091
|
status: "BID_SELECTED";
|
|
3000
|
-
commitment: HexString;
|
|
3001
|
-
selectedSolver: HexString;
|
|
3002
|
-
userOpHash: HexString;
|
|
3092
|
+
commitment: HexString$1;
|
|
3093
|
+
selectedSolver: HexString$1;
|
|
3094
|
+
userOpHash: HexString$1;
|
|
3003
3095
|
userOp: PackedUserOperation;
|
|
3004
|
-
transactionHash?: HexString;
|
|
3096
|
+
transactionHash?: HexString$1;
|
|
3005
3097
|
} | {
|
|
3006
3098
|
status: "FILLED";
|
|
3007
|
-
commitment: HexString;
|
|
3008
|
-
userOpHash: HexString;
|
|
3009
|
-
selectedSolver: HexString;
|
|
3010
|
-
transactionHash?: HexString;
|
|
3099
|
+
commitment: HexString$1;
|
|
3100
|
+
userOpHash: HexString$1;
|
|
3101
|
+
selectedSolver: HexString$1;
|
|
3102
|
+
transactionHash?: HexString$1;
|
|
3011
3103
|
totalFilledAssets: TokenInfo[];
|
|
3012
3104
|
remainingAssets: TokenInfo[];
|
|
3013
3105
|
} | {
|
|
3014
3106
|
status: "PARTIAL_FILL";
|
|
3015
|
-
commitment: HexString;
|
|
3016
|
-
userOpHash: HexString;
|
|
3017
|
-
selectedSolver: HexString;
|
|
3018
|
-
transactionHash?: HexString;
|
|
3107
|
+
commitment: HexString$1;
|
|
3108
|
+
userOpHash: HexString$1;
|
|
3109
|
+
selectedSolver: HexString$1;
|
|
3110
|
+
transactionHash?: HexString$1;
|
|
3019
3111
|
filledAssets: TokenInfo[];
|
|
3020
3112
|
totalFilledAssets: TokenInfo[];
|
|
3021
3113
|
remainingAssets: TokenInfo[];
|
|
3022
3114
|
} | {
|
|
3023
3115
|
status: "EXPIRED";
|
|
3024
|
-
commitment: HexString;
|
|
3116
|
+
commitment: HexString$1;
|
|
3025
3117
|
totalFilledAssets?: TokenInfo[];
|
|
3026
3118
|
remainingAssets?: TokenInfo[];
|
|
3027
3119
|
error: string;
|
|
3028
3120
|
} | {
|
|
3029
3121
|
status: "FAILED";
|
|
3030
|
-
commitment?: HexString;
|
|
3122
|
+
commitment?: HexString$1;
|
|
3031
3123
|
totalFilledAssets?: TokenInfo[];
|
|
3032
3124
|
remainingAssets?: TokenInfo[];
|
|
3033
3125
|
error: string;
|
|
@@ -3035,10 +3127,10 @@ type IntentOrderStatusUpdate = {
|
|
|
3035
3127
|
/** Result of selecting a bid and submitting to the bundler */
|
|
3036
3128
|
interface SelectBidResult {
|
|
3037
3129
|
userOp: PackedUserOperation;
|
|
3038
|
-
userOpHash: HexString;
|
|
3039
|
-
solverAddress: HexString;
|
|
3040
|
-
commitment: HexString;
|
|
3041
|
-
txnHash?: HexString;
|
|
3130
|
+
userOpHash: HexString$1;
|
|
3131
|
+
solverAddress: HexString$1;
|
|
3132
|
+
commitment: HexString$1;
|
|
3133
|
+
txnHash?: HexString$1;
|
|
3042
3134
|
fillStatus?: "full" | "partial";
|
|
3043
3135
|
/** Assets filled in this user operation (best-effort, based on on-chain PartialFill logs) */
|
|
3044
3136
|
filledAssets?: TokenInfo[];
|
|
@@ -3046,7 +3138,7 @@ interface SelectBidResult {
|
|
|
3046
3138
|
/** Options for executing an intent order */
|
|
3047
3139
|
interface ExecuteIntentOrderOptions {
|
|
3048
3140
|
order: Order;
|
|
3049
|
-
sessionPrivateKey?: HexString;
|
|
3141
|
+
sessionPrivateKey?: HexString$1;
|
|
3050
3142
|
/** Duration in ms to collect bids before selecting the best one. */
|
|
3051
3143
|
auctionTimeMs: number;
|
|
3052
3144
|
pollIntervalMs?: number;
|
|
@@ -3056,19 +3148,19 @@ interface ExecuteIntentOrderOptions {
|
|
|
3056
3148
|
*/
|
|
3057
3149
|
solver?: {
|
|
3058
3150
|
/** Only bids from this address (matched against userOp.sender) will be considered */
|
|
3059
|
-
address: HexString;
|
|
3151
|
+
address: HexString$1;
|
|
3060
3152
|
/** After this many ms without a matching bid, execution falls back to any solver */
|
|
3061
3153
|
timeoutMs: number;
|
|
3062
3154
|
};
|
|
3063
3155
|
}
|
|
3064
3156
|
/** Options for resuming execution of a previously placed intent order */
|
|
3065
3157
|
interface ResumeIntentOrderOptions {
|
|
3066
|
-
sessionPrivateKey?: HexString;
|
|
3158
|
+
sessionPrivateKey?: HexString$1;
|
|
3067
3159
|
/** Duration in ms to collect bids before selecting the best one. */
|
|
3068
3160
|
auctionTimeMs: number;
|
|
3069
3161
|
pollIntervalMs?: number;
|
|
3070
3162
|
solver?: {
|
|
3071
|
-
address: HexString;
|
|
3163
|
+
address: HexString$1;
|
|
3072
3164
|
timeoutMs: number;
|
|
3073
3165
|
};
|
|
3074
3166
|
}
|
|
@@ -3079,10 +3171,22 @@ type ERC7821Call = {
|
|
|
3079
3171
|
data: `0x${string}`;
|
|
3080
3172
|
};
|
|
3081
3173
|
|
|
3082
|
-
declare function encodeERC7821ExecuteBatch(calls: ERC7821Call[]): HexString;
|
|
3083
|
-
declare function decodeERC7821ExecuteBatch(callData: HexString): ERC7821Call[] | null;
|
|
3174
|
+
declare function encodeERC7821ExecuteBatch(calls: ERC7821Call[]): HexString$1;
|
|
3175
|
+
declare function decodeERC7821ExecuteBatch(callData: HexString$1): ERC7821Call[] | null;
|
|
3084
3176
|
|
|
3085
|
-
|
|
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 [{
|
|
3086
3190
|
readonly type: "constructor";
|
|
3087
3191
|
readonly inputs: readonly [{
|
|
3088
3192
|
readonly name: "admin";
|
|
@@ -4272,6 +4376,21 @@ declare const ABI: readonly [{
|
|
|
4272
4376
|
readonly type: "uint256";
|
|
4273
4377
|
readonly internalType: "uint256";
|
|
4274
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";
|
|
4275
4394
|
}];
|
|
4276
4395
|
readonly anonymous: false;
|
|
4277
4396
|
}, {
|
|
@@ -4471,49 +4590,1610 @@ declare const ABI: readonly [{
|
|
|
4471
4590
|
readonly name: "WrongChain";
|
|
4472
4591
|
readonly inputs: readonly [];
|
|
4473
4592
|
}];
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
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";
|
|
4496
4840
|
}, {
|
|
4497
|
-
readonly
|
|
4498
|
-
readonly
|
|
4499
|
-
readonly
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
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";
|
|
4506
4858
|
}, {
|
|
4507
|
-
readonly
|
|
4508
|
-
readonly
|
|
4509
|
-
readonly
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
readonly
|
|
4515
|
-
|
|
4516
|
-
|
|
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: "";
|
|
6182
|
+
readonly type: "bytes32";
|
|
6183
|
+
readonly internalType: "bytes32";
|
|
6184
|
+
}];
|
|
6185
|
+
readonly stateMutability: "view";
|
|
6186
|
+
}, {
|
|
6187
|
+
readonly type: "function";
|
|
6188
|
+
readonly name: "_destinationProtocolFees";
|
|
6189
|
+
readonly inputs: readonly [{
|
|
6190
|
+
readonly name: "";
|
|
6191
|
+
readonly type: "bytes32";
|
|
6192
|
+
readonly internalType: "bytes32";
|
|
6193
|
+
}];
|
|
6194
|
+
readonly outputs: readonly [{
|
|
6195
|
+
readonly name: "";
|
|
6196
|
+
readonly type: "uint256";
|
|
4517
6197
|
readonly internalType: "uint256";
|
|
4518
6198
|
}];
|
|
4519
6199
|
readonly stateMutability: "view";
|
|
@@ -5662,6 +7342,21 @@ declare const _default: {
|
|
|
5662
7342
|
readonly type: "uint256";
|
|
5663
7343
|
readonly internalType: "uint256";
|
|
5664
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";
|
|
5665
7360
|
}];
|
|
5666
7361
|
readonly anonymous: false;
|
|
5667
7362
|
}, {
|
|
@@ -5863,4 +7558,4 @@ declare const _default: {
|
|
|
5863
7558
|
}];
|
|
5864
7559
|
};
|
|
5865
7560
|
|
|
5866
|
-
export { 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 };
|