@optimex-xyz/market-maker-sdk 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ interface EnvironmentConfig {
7
7
  rpcUrl: string;
8
8
  routerAddress: string;
9
9
  paymentAddressMap: Record<string, string>;
10
+ protocolFetcherProxyAddress: string;
10
11
  }
11
12
  interface AppConfig extends EnvironmentConfig {
12
13
  env: Environment;
@@ -38,6 +39,7 @@ declare class Config {
38
39
  getRpcUrl(): string;
39
40
  getRouterAddress(): string;
40
41
  getPaymentAddress(networkId: string): string | undefined;
42
+ getProtocolFetcherAddress(): string;
41
43
  }
42
44
  declare const config: Config;
43
45
 
@@ -1100,7 +1102,283 @@ interface Payment extends BaseContract {
1100
1102
  };
1101
1103
  }
1102
1104
 
1103
- declare namespace ITypes {
1105
+ declare namespace ITypes$2 {
1106
+ type MPCInfoStruct = {
1107
+ mpcL2Address: AddressLike;
1108
+ expireTime: BigNumberish;
1109
+ mpcL2Pubkey: BytesLike;
1110
+ mpcAssetPubkey: BytesLike;
1111
+ };
1112
+ type MPCInfoStructOutput = [
1113
+ mpcL2Address: string,
1114
+ expireTime: bigint,
1115
+ mpcL2Pubkey: string,
1116
+ mpcAssetPubkey: string
1117
+ ] & {
1118
+ mpcL2Address: string;
1119
+ expireTime: bigint;
1120
+ mpcL2Pubkey: string;
1121
+ mpcAssetPubkey: string;
1122
+ };
1123
+ type TokenInfoStruct = {
1124
+ info: [BytesLike, BytesLike, BytesLike, BytesLike, BytesLike];
1125
+ decimals: BigNumberish;
1126
+ };
1127
+ type TokenInfoStructOutput = [
1128
+ info: [string, string, string, string, string],
1129
+ decimals: bigint
1130
+ ] & {
1131
+ info: [string, string, string, string, string];
1132
+ decimals: bigint;
1133
+ };
1134
+ }
1135
+ interface ProtocolFetcherProxyInterface extends Interface {
1136
+ getFunction(nameOrSignature: "getLatestMPCInfo" | "getMPCInfo" | "getManagementOwner" | "getPFeeRate" | "getPMMAccounts" | "getProtocolState" | "getTokens" | "getVault" | "isMPCNode" | "isSolver" | "isValidNetwork" | "isValidPMM" | "isValidPMMAccount" | "isValidPubkey" | "isValidToken" | "numOfPMMAccounts" | "numOfSupportedTokens" | "pManagement" | "registry" | "router" | "setProtocolManagement" | "setRouter" | "setSignerExtension" | "setVaultRegistry" | "signerExtension"): FunctionFragment;
1137
+ encodeFunctionData(functionFragment: "getLatestMPCInfo", values: [BytesLike]): string;
1138
+ encodeFunctionData(functionFragment: "getMPCInfo", values: [BytesLike, BytesLike]): string;
1139
+ encodeFunctionData(functionFragment: "getManagementOwner", values?: undefined): string;
1140
+ encodeFunctionData(functionFragment: "getPFeeRate", values: [[BytesLike, BytesLike, BytesLike, BytesLike]]): string;
1141
+ encodeFunctionData(functionFragment: "getPMMAccounts", values: [BytesLike, BigNumberish, BigNumberish]): string;
1142
+ encodeFunctionData(functionFragment: "getProtocolState", values?: undefined): string;
1143
+ encodeFunctionData(functionFragment: "getTokens", values: [BigNumberish, BigNumberish]): string;
1144
+ encodeFunctionData(functionFragment: "getVault", values: [BytesLike, BytesLike]): string;
1145
+ encodeFunctionData(functionFragment: "isMPCNode", values: [AddressLike]): string;
1146
+ encodeFunctionData(functionFragment: "isSolver", values: [AddressLike]): string;
1147
+ encodeFunctionData(functionFragment: "isValidNetwork", values: [BytesLike]): string;
1148
+ encodeFunctionData(functionFragment: "isValidPMM", values: [BytesLike]): string;
1149
+ encodeFunctionData(functionFragment: "isValidPMMAccount", values: [BytesLike, AddressLike]): string;
1150
+ encodeFunctionData(functionFragment: "isValidPubkey", values: [BytesLike, BytesLike]): string;
1151
+ encodeFunctionData(functionFragment: "isValidToken", values: [BytesLike, BytesLike]): string;
1152
+ encodeFunctionData(functionFragment: "numOfPMMAccounts", values: [BytesLike]): string;
1153
+ encodeFunctionData(functionFragment: "numOfSupportedTokens", values?: undefined): string;
1154
+ encodeFunctionData(functionFragment: "pManagement", values?: undefined): string;
1155
+ encodeFunctionData(functionFragment: "registry", values?: undefined): string;
1156
+ encodeFunctionData(functionFragment: "router", values?: undefined): string;
1157
+ encodeFunctionData(functionFragment: "setProtocolManagement", values: [AddressLike]): string;
1158
+ encodeFunctionData(functionFragment: "setRouter", values: [AddressLike]): string;
1159
+ encodeFunctionData(functionFragment: "setSignerExtension", values: [AddressLike]): string;
1160
+ encodeFunctionData(functionFragment: "setVaultRegistry", values: [AddressLike]): string;
1161
+ encodeFunctionData(functionFragment: "signerExtension", values?: undefined): string;
1162
+ decodeFunctionResult(functionFragment: "getLatestMPCInfo", data: BytesLike): Result;
1163
+ decodeFunctionResult(functionFragment: "getMPCInfo", data: BytesLike): Result;
1164
+ decodeFunctionResult(functionFragment: "getManagementOwner", data: BytesLike): Result;
1165
+ decodeFunctionResult(functionFragment: "getPFeeRate", data: BytesLike): Result;
1166
+ decodeFunctionResult(functionFragment: "getPMMAccounts", data: BytesLike): Result;
1167
+ decodeFunctionResult(functionFragment: "getProtocolState", data: BytesLike): Result;
1168
+ decodeFunctionResult(functionFragment: "getTokens", data: BytesLike): Result;
1169
+ decodeFunctionResult(functionFragment: "getVault", data: BytesLike): Result;
1170
+ decodeFunctionResult(functionFragment: "isMPCNode", data: BytesLike): Result;
1171
+ decodeFunctionResult(functionFragment: "isSolver", data: BytesLike): Result;
1172
+ decodeFunctionResult(functionFragment: "isValidNetwork", data: BytesLike): Result;
1173
+ decodeFunctionResult(functionFragment: "isValidPMM", data: BytesLike): Result;
1174
+ decodeFunctionResult(functionFragment: "isValidPMMAccount", data: BytesLike): Result;
1175
+ decodeFunctionResult(functionFragment: "isValidPubkey", data: BytesLike): Result;
1176
+ decodeFunctionResult(functionFragment: "isValidToken", data: BytesLike): Result;
1177
+ decodeFunctionResult(functionFragment: "numOfPMMAccounts", data: BytesLike): Result;
1178
+ decodeFunctionResult(functionFragment: "numOfSupportedTokens", data: BytesLike): Result;
1179
+ decodeFunctionResult(functionFragment: "pManagement", data: BytesLike): Result;
1180
+ decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result;
1181
+ decodeFunctionResult(functionFragment: "router", data: BytesLike): Result;
1182
+ decodeFunctionResult(functionFragment: "setProtocolManagement", data: BytesLike): Result;
1183
+ decodeFunctionResult(functionFragment: "setRouter", data: BytesLike): Result;
1184
+ decodeFunctionResult(functionFragment: "setSignerExtension", data: BytesLike): Result;
1185
+ decodeFunctionResult(functionFragment: "setVaultRegistry", data: BytesLike): Result;
1186
+ decodeFunctionResult(functionFragment: "signerExtension", data: BytesLike): Result;
1187
+ }
1188
+ interface ProtocolFetcherProxy extends BaseContract {
1189
+ connect(runner?: ContractRunner | null): ProtocolFetcherProxy;
1190
+ waitForDeployment(): Promise<this>;
1191
+ interface: ProtocolFetcherProxyInterface;
1192
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
1193
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
1194
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
1195
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
1196
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
1197
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
1198
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
1199
+ listeners(eventName?: string): Promise<Array<Listener>>;
1200
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
1201
+ getLatestMPCInfo: TypedContractMethod<[
1202
+ networkId: BytesLike
1203
+ ], [
1204
+ ITypes$2.MPCInfoStructOutput
1205
+ ], "view">;
1206
+ getMPCInfo: TypedContractMethod<[
1207
+ networkId: BytesLike,
1208
+ pubkey: BytesLike
1209
+ ], [
1210
+ ITypes$2.MPCInfoStructOutput
1211
+ ], "view">;
1212
+ getManagementOwner: TypedContractMethod<[], [string], "view">;
1213
+ getPFeeRate: TypedContractMethod<[
1214
+ pairInfo: [BytesLike, BytesLike, BytesLike, BytesLike]
1215
+ ], [
1216
+ bigint
1217
+ ], "view">;
1218
+ getPMMAccounts: TypedContractMethod<[
1219
+ pmmId: BytesLike,
1220
+ fromIdx: BigNumberish,
1221
+ toIdx: BigNumberish
1222
+ ], [
1223
+ string[]
1224
+ ], "view">;
1225
+ getProtocolState: TypedContractMethod<[], [bigint], "view">;
1226
+ getTokens: TypedContractMethod<[
1227
+ fromIdx: BigNumberish,
1228
+ toIdx: BigNumberish
1229
+ ], [
1230
+ ITypes$2.TokenInfoStructOutput[]
1231
+ ], "view">;
1232
+ getVault: TypedContractMethod<[
1233
+ networkId: BytesLike,
1234
+ tokenId: BytesLike
1235
+ ], [
1236
+ string
1237
+ ], "view">;
1238
+ isMPCNode: TypedContractMethod<[account: AddressLike], [boolean], "view">;
1239
+ isSolver: TypedContractMethod<[account: AddressLike], [boolean], "view">;
1240
+ isValidNetwork: TypedContractMethod<[
1241
+ networkId: BytesLike
1242
+ ], [
1243
+ boolean
1244
+ ], "view">;
1245
+ isValidPMM: TypedContractMethod<[pmmId: BytesLike], [boolean], "view">;
1246
+ isValidPMMAccount: TypedContractMethod<[
1247
+ pmmId: BytesLike,
1248
+ account: AddressLike
1249
+ ], [
1250
+ boolean
1251
+ ], "view">;
1252
+ isValidPubkey: TypedContractMethod<[
1253
+ networkId: BytesLike,
1254
+ pubkey: BytesLike
1255
+ ], [
1256
+ boolean
1257
+ ], "view">;
1258
+ isValidToken: TypedContractMethod<[
1259
+ networkId: BytesLike,
1260
+ tokenId: BytesLike
1261
+ ], [
1262
+ boolean
1263
+ ], "view">;
1264
+ numOfPMMAccounts: TypedContractMethod<[pmmId: BytesLike], [bigint], "view">;
1265
+ numOfSupportedTokens: TypedContractMethod<[], [bigint], "view">;
1266
+ pManagement: TypedContractMethod<[], [string], "view">;
1267
+ registry: TypedContractMethod<[], [string], "view">;
1268
+ router: TypedContractMethod<[], [string], "view">;
1269
+ setProtocolManagement: TypedContractMethod<[
1270
+ newManagement: AddressLike
1271
+ ], [
1272
+ void
1273
+ ], "nonpayable">;
1274
+ setRouter: TypedContractMethod<[
1275
+ newRouter: AddressLike
1276
+ ], [
1277
+ void
1278
+ ], "nonpayable">;
1279
+ setSignerExtension: TypedContractMethod<[
1280
+ newSignerExtension: AddressLike
1281
+ ], [
1282
+ void
1283
+ ], "nonpayable">;
1284
+ setVaultRegistry: TypedContractMethod<[
1285
+ newRegistry: AddressLike
1286
+ ], [
1287
+ void
1288
+ ], "nonpayable">;
1289
+ signerExtension: TypedContractMethod<[], [string], "view">;
1290
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
1291
+ getFunction(nameOrSignature: "getLatestMPCInfo"): TypedContractMethod<[
1292
+ networkId: BytesLike
1293
+ ], [
1294
+ ITypes$2.MPCInfoStructOutput
1295
+ ], "view">;
1296
+ getFunction(nameOrSignature: "getMPCInfo"): TypedContractMethod<[
1297
+ networkId: BytesLike,
1298
+ pubkey: BytesLike
1299
+ ], [
1300
+ ITypes$2.MPCInfoStructOutput
1301
+ ], "view">;
1302
+ getFunction(nameOrSignature: "getManagementOwner"): TypedContractMethod<[], [string], "view">;
1303
+ getFunction(nameOrSignature: "getPFeeRate"): TypedContractMethod<[
1304
+ pairInfo: [BytesLike, BytesLike, BytesLike, BytesLike]
1305
+ ], [
1306
+ bigint
1307
+ ], "view">;
1308
+ getFunction(nameOrSignature: "getPMMAccounts"): TypedContractMethod<[
1309
+ pmmId: BytesLike,
1310
+ fromIdx: BigNumberish,
1311
+ toIdx: BigNumberish
1312
+ ], [
1313
+ string[]
1314
+ ], "view">;
1315
+ getFunction(nameOrSignature: "getProtocolState"): TypedContractMethod<[], [bigint], "view">;
1316
+ getFunction(nameOrSignature: "getTokens"): TypedContractMethod<[
1317
+ fromIdx: BigNumberish,
1318
+ toIdx: BigNumberish
1319
+ ], [
1320
+ ITypes$2.TokenInfoStructOutput[]
1321
+ ], "view">;
1322
+ getFunction(nameOrSignature: "getVault"): TypedContractMethod<[
1323
+ networkId: BytesLike,
1324
+ tokenId: BytesLike
1325
+ ], [
1326
+ string
1327
+ ], "view">;
1328
+ getFunction(nameOrSignature: "isMPCNode"): TypedContractMethod<[account: AddressLike], [boolean], "view">;
1329
+ getFunction(nameOrSignature: "isSolver"): TypedContractMethod<[account: AddressLike], [boolean], "view">;
1330
+ getFunction(nameOrSignature: "isValidNetwork"): TypedContractMethod<[networkId: BytesLike], [boolean], "view">;
1331
+ getFunction(nameOrSignature: "isValidPMM"): TypedContractMethod<[pmmId: BytesLike], [boolean], "view">;
1332
+ getFunction(nameOrSignature: "isValidPMMAccount"): TypedContractMethod<[
1333
+ pmmId: BytesLike,
1334
+ account: AddressLike
1335
+ ], [
1336
+ boolean
1337
+ ], "view">;
1338
+ getFunction(nameOrSignature: "isValidPubkey"): TypedContractMethod<[
1339
+ networkId: BytesLike,
1340
+ pubkey: BytesLike
1341
+ ], [
1342
+ boolean
1343
+ ], "view">;
1344
+ getFunction(nameOrSignature: "isValidToken"): TypedContractMethod<[
1345
+ networkId: BytesLike,
1346
+ tokenId: BytesLike
1347
+ ], [
1348
+ boolean
1349
+ ], "view">;
1350
+ getFunction(nameOrSignature: "numOfPMMAccounts"): TypedContractMethod<[pmmId: BytesLike], [bigint], "view">;
1351
+ getFunction(nameOrSignature: "numOfSupportedTokens"): TypedContractMethod<[], [bigint], "view">;
1352
+ getFunction(nameOrSignature: "pManagement"): TypedContractMethod<[], [string], "view">;
1353
+ getFunction(nameOrSignature: "registry"): TypedContractMethod<[], [string], "view">;
1354
+ getFunction(nameOrSignature: "router"): TypedContractMethod<[], [string], "view">;
1355
+ getFunction(nameOrSignature: "setProtocolManagement"): TypedContractMethod<[newManagement: AddressLike], [void], "nonpayable">;
1356
+ getFunction(nameOrSignature: "setRouter"): TypedContractMethod<[newRouter: AddressLike], [void], "nonpayable">;
1357
+ getFunction(nameOrSignature: "setSignerExtension"): TypedContractMethod<[
1358
+ newSignerExtension: AddressLike
1359
+ ], [
1360
+ void
1361
+ ], "nonpayable">;
1362
+ getFunction(nameOrSignature: "setVaultRegistry"): TypedContractMethod<[newRegistry: AddressLike], [void], "nonpayable">;
1363
+ getFunction(nameOrSignature: "signerExtension"): TypedContractMethod<[], [string], "view">;
1364
+ filters: {};
1365
+ }
1366
+
1367
+ declare namespace ITypes$1 {
1368
+ type RFQInfoStruct = {
1369
+ minAmountOut: BigNumberish;
1370
+ tradeTimeout: BigNumberish;
1371
+ rfqInfoSignature: BytesLike;
1372
+ };
1373
+ type RFQInfoStructOutput = [
1374
+ minAmountOut: bigint,
1375
+ tradeTimeout: bigint,
1376
+ rfqInfoSignature: string
1377
+ ] & {
1378
+ minAmountOut: bigint;
1379
+ tradeTimeout: bigint;
1380
+ rfqInfoSignature: string;
1381
+ };
1104
1382
  type BundlePaymentStruct = {
1105
1383
  tradeIds: BytesLike[];
1106
1384
  signedAt: BigNumberish;
@@ -1163,37 +1441,6 @@ declare namespace ITypes {
1163
1441
  pFeeRate: bigint;
1164
1442
  aFeeRate: bigint;
1165
1443
  };
1166
- type MPCInfoStruct = {
1167
- mpcL2Address: AddressLike;
1168
- expireTime: BigNumberish;
1169
- mpcL2Pubkey: BytesLike;
1170
- mpcAssetPubkey: BytesLike;
1171
- };
1172
- type MPCInfoStructOutput = [
1173
- mpcL2Address: string,
1174
- expireTime: bigint,
1175
- mpcL2Pubkey: string,
1176
- mpcAssetPubkey: string
1177
- ] & {
1178
- mpcL2Address: string;
1179
- expireTime: bigint;
1180
- mpcL2Pubkey: string;
1181
- mpcAssetPubkey: string;
1182
- };
1183
- type RFQInfoStruct = {
1184
- minAmountOut: BigNumberish;
1185
- tradeTimeout: BigNumberish;
1186
- rfqInfoSignature: BytesLike;
1187
- };
1188
- type RFQInfoStructOutput = [
1189
- minAmountOut: bigint,
1190
- tradeTimeout: bigint,
1191
- rfqInfoSignature: string
1192
- ] & {
1193
- minAmountOut: bigint;
1194
- tradeTimeout: bigint;
1195
- rfqInfoSignature: string;
1196
- };
1197
1444
  type SelectedPMMInfoStruct = {
1198
1445
  amountOut: BigNumberish;
1199
1446
  selectedPMMId: BytesLike;
@@ -1212,15 +1459,15 @@ declare namespace ITypes {
1212
1459
  sigExpiry: bigint;
1213
1460
  };
1214
1461
  type PMMSelectionStruct = {
1215
- rfqInfo: ITypes.RFQInfoStruct;
1216
- pmmInfo: ITypes.SelectedPMMInfoStruct;
1462
+ rfqInfo: ITypes$1.RFQInfoStruct;
1463
+ pmmInfo: ITypes$1.SelectedPMMInfoStruct;
1217
1464
  };
1218
1465
  type PMMSelectionStructOutput = [
1219
- rfqInfo: ITypes.RFQInfoStructOutput,
1220
- pmmInfo: ITypes.SelectedPMMInfoStructOutput
1466
+ rfqInfo: ITypes$1.RFQInfoStructOutput,
1467
+ pmmInfo: ITypes$1.SelectedPMMInfoStructOutput
1221
1468
  ] & {
1222
- rfqInfo: ITypes.RFQInfoStructOutput;
1223
- pmmInfo: ITypes.SelectedPMMInfoStructOutput;
1469
+ rfqInfo: ITypes$1.RFQInfoStructOutput;
1470
+ pmmInfo: ITypes$1.SelectedPMMInfoStructOutput;
1224
1471
  };
1225
1472
  type RefundPresignStruct = {
1226
1473
  refundAddress: BytesLike;
@@ -1247,17 +1494,6 @@ declare namespace ITypes {
1247
1494
  pmmRecvAddress: string;
1248
1495
  presigns: string[];
1249
1496
  };
1250
- type TokenInfoStruct = {
1251
- info: [BytesLike, BytesLike, BytesLike, BytesLike, BytesLike];
1252
- decimals: BigNumberish;
1253
- };
1254
- type TokenInfoStructOutput = [
1255
- info: [string, string, string, string, string],
1256
- decimals: bigint
1257
- ] & {
1258
- info: [string, string, string, string, string];
1259
- decimals: bigint;
1260
- };
1261
1497
  type TradeInfoStruct = {
1262
1498
  amountIn: BigNumberish;
1263
1499
  fromChain: [BytesLike, BytesLike, BytesLike];
@@ -1288,17 +1524,17 @@ declare namespace ITypes {
1288
1524
  };
1289
1525
  type TradeDataStruct = {
1290
1526
  sessionId: BigNumberish;
1291
- tradeInfo: ITypes.TradeInfoStruct;
1292
- scriptInfo: ITypes.ScriptInfoStruct;
1527
+ tradeInfo: ITypes$1.TradeInfoStruct;
1528
+ scriptInfo: ITypes$1.ScriptInfoStruct;
1293
1529
  };
1294
1530
  type TradeDataStructOutput = [
1295
1531
  sessionId: bigint,
1296
- tradeInfo: ITypes.TradeInfoStructOutput,
1297
- scriptInfo: ITypes.ScriptInfoStructOutput
1532
+ tradeInfo: ITypes$1.TradeInfoStructOutput,
1533
+ scriptInfo: ITypes$1.ScriptInfoStructOutput
1298
1534
  ] & {
1299
1535
  sessionId: bigint;
1300
- tradeInfo: ITypes.TradeInfoStructOutput;
1301
- scriptInfo: ITypes.ScriptInfoStructOutput;
1536
+ tradeInfo: ITypes$1.TradeInfoStructOutput;
1537
+ scriptInfo: ITypes$1.ScriptInfoStructOutput;
1302
1538
  };
1303
1539
  type TradeFinalizationStruct = {
1304
1540
  bundlerHash: BytesLike;
@@ -1325,130 +1561,99 @@ declare namespace ITypes {
1325
1561
  };
1326
1562
  }
1327
1563
  interface RouterInterface extends Interface {
1328
- getFunction(nameOrSignature: "SIGNER" | "bundlePayment" | "confirmDeposit" | "confirmPayment" | "confirmSettlement" | "getAffiliateInfo" | "getCurrentEpoch" | "getCurrentStage" | "getDepositAddressList" | "getFailureInfo" | "getFeeDetails" | "getHandler" | "getHandlerOf" | "getLastSignedPayment" | "getLatestMPCInfo" | "getMPCInfo" | "getManagementOwner" | "getMaxAffiliateFeeRate" | "getPFeeRate" | "getPMMAccounts" | "getPMMSelection" | "getPendingTrades" | "getPendingTradesCount" | "getProtocolState" | "getRefundPresigns" | "getSettlementPresigns" | "getTokens" | "getTradeData" | "getTradeFinalization" | "isMPCNode" | "isSolver" | "isSuspended" | "isValidNetwork" | "isValidPMM" | "isValidPMMAccount" | "isValidPubkey" | "isValidToken" | "management" | "numOfPMMAccounts" | "numOfSupportedTokens" | "refund" | "report" | "selectPMM" | "setManagement" | "setRoute" | "submitTrade" | "version"): FunctionFragment;
1329
- getEvent(nameOrSignatureOrTopic: "ConfirmDeposit" | "ConfirmPayment" | "ConfirmRefund" | "ConfirmSettlement" | "MakePayment" | "ReportFailure" | "SelectPMM" | "SubmitTradeInfo" | "UpdatedRoute"): EventFragment;
1564
+ getFunction(nameOrSignature: "SIGNER" | "abort" | "bundlePayment" | "confirmDeposit" | "confirmPayment" | "confirmPresign" | "confirmSettlement" | "getAffiliateInfo" | "getCurrentEpoch" | "getCurrentStage" | "getFailureInfo" | "getFeeDetails" | "getHandler" | "getHandlerOf" | "getHistoryCount" | "getPMMSelection" | "getPendingTrades" | "getPendingTradesCount" | "getRefundPresign" | "getRegisteredHandlers" | "getSettlementPresigns" | "getSolver" | "getTradeData" | "getTradeFinalization" | "management" | "migrate" | "refund" | "report" | "selectPMM" | "setManagement" | "setRoute" | "submitDeposit" | "submitTrade"): FunctionFragment;
1565
+ getEvent(nameOrSignatureOrTopic: "Abort" | "ConfirmDeposit" | "ConfirmPayment" | "ConfirmPresign" | "ConfirmRefund" | "ConfirmSettlement" | "MakePayment" | "ReportFailure" | "SelectPMM" | "SubmitDeposit" | "SubmitTradeInfo" | "UpdatedRoute"): EventFragment;
1330
1566
  encodeFunctionData(functionFragment: "SIGNER", values?: undefined): string;
1331
- encodeFunctionData(functionFragment: "bundlePayment", values: [ITypes.BundlePaymentStruct]): string;
1567
+ encodeFunctionData(functionFragment: "abort", values: [BytesLike, ITypes$1.RFQInfoStruct]): string;
1568
+ encodeFunctionData(functionFragment: "bundlePayment", values: [ITypes$1.BundlePaymentStruct]): string;
1332
1569
  encodeFunctionData(functionFragment: "confirmDeposit", values: [BytesLike, BytesLike, BytesLike[]]): string;
1333
1570
  encodeFunctionData(functionFragment: "confirmPayment", values: [BytesLike, BytesLike]): string;
1571
+ encodeFunctionData(functionFragment: "confirmPresign", values: [BytesLike, BytesLike]): string;
1334
1572
  encodeFunctionData(functionFragment: "confirmSettlement", values: [BytesLike, BytesLike, BytesLike]): string;
1335
1573
  encodeFunctionData(functionFragment: "getAffiliateInfo", values: [BytesLike]): string;
1336
- encodeFunctionData(functionFragment: "getCurrentEpoch", values: [BytesLike, BytesLike]): string;
1574
+ encodeFunctionData(functionFragment: "getCurrentEpoch", values: [AddressLike]): string;
1337
1575
  encodeFunctionData(functionFragment: "getCurrentStage", values: [BytesLike]): string;
1338
- encodeFunctionData(functionFragment: "getDepositAddressList", values: [BytesLike]): string;
1339
1576
  encodeFunctionData(functionFragment: "getFailureInfo", values: [BytesLike]): string;
1340
1577
  encodeFunctionData(functionFragment: "getFeeDetails", values: [BytesLike]): string;
1341
1578
  encodeFunctionData(functionFragment: "getHandler", values: [BytesLike, BytesLike]): string;
1342
1579
  encodeFunctionData(functionFragment: "getHandlerOf", values: [BytesLike]): string;
1343
- encodeFunctionData(functionFragment: "getLastSignedPayment", values: [BytesLike]): string;
1344
- encodeFunctionData(functionFragment: "getLatestMPCInfo", values: [BytesLike]): string;
1345
- encodeFunctionData(functionFragment: "getMPCInfo", values: [BytesLike, BytesLike]): string;
1346
- encodeFunctionData(functionFragment: "getManagementOwner", values?: undefined): string;
1347
- encodeFunctionData(functionFragment: "getMaxAffiliateFeeRate", values: [BytesLike, BytesLike]): string;
1348
- encodeFunctionData(functionFragment: "getPFeeRate", values?: undefined): string;
1349
- encodeFunctionData(functionFragment: "getPMMAccounts", values: [BytesLike, BigNumberish, BigNumberish]): string;
1580
+ encodeFunctionData(functionFragment: "getHistoryCount", values: [BytesLike, BytesLike]): string;
1350
1581
  encodeFunctionData(functionFragment: "getPMMSelection", values: [BytesLike]): string;
1351
- encodeFunctionData(functionFragment: "getPendingTrades", values: [BigNumberish, BigNumberish, BigNumberish, BytesLike, BytesLike]): string;
1352
- encodeFunctionData(functionFragment: "getPendingTradesCount", values: [BigNumberish, BytesLike, BytesLike]): string;
1353
- encodeFunctionData(functionFragment: "getProtocolState", values?: undefined): string;
1354
- encodeFunctionData(functionFragment: "getRefundPresigns", values: [BytesLike]): string;
1582
+ encodeFunctionData(functionFragment: "getPendingTrades", values: [AddressLike, BigNumberish, BigNumberish, BigNumberish]): string;
1583
+ encodeFunctionData(functionFragment: "getPendingTradesCount", values: [AddressLike, BigNumberish]): string;
1584
+ encodeFunctionData(functionFragment: "getRefundPresign", values: [BytesLike]): string;
1585
+ encodeFunctionData(functionFragment: "getRegisteredHandlers", values: [BigNumberish, BigNumberish, BytesLike, BytesLike]): string;
1355
1586
  encodeFunctionData(functionFragment: "getSettlementPresigns", values: [BytesLike]): string;
1356
- encodeFunctionData(functionFragment: "getTokens", values: [BigNumberish, BigNumberish]): string;
1587
+ encodeFunctionData(functionFragment: "getSolver", values: [BytesLike]): string;
1357
1588
  encodeFunctionData(functionFragment: "getTradeData", values: [BytesLike]): string;
1358
1589
  encodeFunctionData(functionFragment: "getTradeFinalization", values: [BytesLike]): string;
1359
- encodeFunctionData(functionFragment: "isMPCNode", values: [AddressLike]): string;
1360
- encodeFunctionData(functionFragment: "isSolver", values: [AddressLike]): string;
1361
- encodeFunctionData(functionFragment: "isSuspended", values: [BigNumberish]): string;
1362
- encodeFunctionData(functionFragment: "isValidNetwork", values: [BytesLike]): string;
1363
- encodeFunctionData(functionFragment: "isValidPMM", values: [BytesLike]): string;
1364
- encodeFunctionData(functionFragment: "isValidPMMAccount", values: [BytesLike, AddressLike]): string;
1365
- encodeFunctionData(functionFragment: "isValidPubkey", values: [BytesLike, BytesLike]): string;
1366
- encodeFunctionData(functionFragment: "isValidToken", values: [BytesLike, BytesLike]): string;
1367
1590
  encodeFunctionData(functionFragment: "management", values?: undefined): string;
1368
- encodeFunctionData(functionFragment: "numOfPMMAccounts", values: [BytesLike]): string;
1369
- encodeFunctionData(functionFragment: "numOfSupportedTokens", values?: undefined): string;
1591
+ encodeFunctionData(functionFragment: "migrate", values: [BytesLike[], AddressLike[]]): string;
1370
1592
  encodeFunctionData(functionFragment: "refund", values: [BytesLike, BytesLike, BytesLike]): string;
1371
- encodeFunctionData(functionFragment: "report", values: [BytesLike, BytesLike, BytesLike]): string;
1372
- encodeFunctionData(functionFragment: "selectPMM", values: [BytesLike, ITypes.PMMSelectionStruct]): string;
1593
+ encodeFunctionData(functionFragment: "report", values: [BytesLike, BytesLike, BytesLike, BytesLike]): string;
1594
+ encodeFunctionData(functionFragment: "selectPMM", values: [BytesLike, ITypes$1.PMMSelectionStruct]): string;
1373
1595
  encodeFunctionData(functionFragment: "setManagement", values: [AddressLike]): string;
1374
1596
  encodeFunctionData(functionFragment: "setRoute", values: [AddressLike, BytesLike, BytesLike]): string;
1597
+ encodeFunctionData(functionFragment: "submitDeposit", values: [BytesLike, ITypes$1.TradeDataStruct, ITypes$1.RefundPresignStruct]): string;
1375
1598
  encodeFunctionData(functionFragment: "submitTrade", values: [
1376
1599
  BytesLike,
1377
- ITypes.TradeDataStruct,
1378
- ITypes.AffiliateStruct,
1379
- ITypes.SettlementPresignStruct[],
1380
- ITypes.RefundPresignStruct
1600
+ ITypes$1.TradeDataStruct,
1601
+ ITypes$1.AffiliateStruct,
1602
+ ITypes$1.SettlementPresignStruct[],
1603
+ ITypes$1.RefundPresignStruct
1381
1604
  ]): string;
1382
- encodeFunctionData(functionFragment: "version", values: [AddressLike]): string;
1383
1605
  decodeFunctionResult(functionFragment: "SIGNER", data: BytesLike): Result;
1606
+ decodeFunctionResult(functionFragment: "abort", data: BytesLike): Result;
1384
1607
  decodeFunctionResult(functionFragment: "bundlePayment", data: BytesLike): Result;
1385
1608
  decodeFunctionResult(functionFragment: "confirmDeposit", data: BytesLike): Result;
1386
1609
  decodeFunctionResult(functionFragment: "confirmPayment", data: BytesLike): Result;
1610
+ decodeFunctionResult(functionFragment: "confirmPresign", data: BytesLike): Result;
1387
1611
  decodeFunctionResult(functionFragment: "confirmSettlement", data: BytesLike): Result;
1388
1612
  decodeFunctionResult(functionFragment: "getAffiliateInfo", data: BytesLike): Result;
1389
1613
  decodeFunctionResult(functionFragment: "getCurrentEpoch", data: BytesLike): Result;
1390
1614
  decodeFunctionResult(functionFragment: "getCurrentStage", data: BytesLike): Result;
1391
- decodeFunctionResult(functionFragment: "getDepositAddressList", data: BytesLike): Result;
1392
1615
  decodeFunctionResult(functionFragment: "getFailureInfo", data: BytesLike): Result;
1393
1616
  decodeFunctionResult(functionFragment: "getFeeDetails", data: BytesLike): Result;
1394
1617
  decodeFunctionResult(functionFragment: "getHandler", data: BytesLike): Result;
1395
1618
  decodeFunctionResult(functionFragment: "getHandlerOf", data: BytesLike): Result;
1396
- decodeFunctionResult(functionFragment: "getLastSignedPayment", data: BytesLike): Result;
1397
- decodeFunctionResult(functionFragment: "getLatestMPCInfo", data: BytesLike): Result;
1398
- decodeFunctionResult(functionFragment: "getMPCInfo", data: BytesLike): Result;
1399
- decodeFunctionResult(functionFragment: "getManagementOwner", data: BytesLike): Result;
1400
- decodeFunctionResult(functionFragment: "getMaxAffiliateFeeRate", data: BytesLike): Result;
1401
- decodeFunctionResult(functionFragment: "getPFeeRate", data: BytesLike): Result;
1402
- decodeFunctionResult(functionFragment: "getPMMAccounts", data: BytesLike): Result;
1619
+ decodeFunctionResult(functionFragment: "getHistoryCount", data: BytesLike): Result;
1403
1620
  decodeFunctionResult(functionFragment: "getPMMSelection", data: BytesLike): Result;
1404
1621
  decodeFunctionResult(functionFragment: "getPendingTrades", data: BytesLike): Result;
1405
1622
  decodeFunctionResult(functionFragment: "getPendingTradesCount", data: BytesLike): Result;
1406
- decodeFunctionResult(functionFragment: "getProtocolState", data: BytesLike): Result;
1407
- decodeFunctionResult(functionFragment: "getRefundPresigns", data: BytesLike): Result;
1623
+ decodeFunctionResult(functionFragment: "getRefundPresign", data: BytesLike): Result;
1624
+ decodeFunctionResult(functionFragment: "getRegisteredHandlers", data: BytesLike): Result;
1408
1625
  decodeFunctionResult(functionFragment: "getSettlementPresigns", data: BytesLike): Result;
1409
- decodeFunctionResult(functionFragment: "getTokens", data: BytesLike): Result;
1626
+ decodeFunctionResult(functionFragment: "getSolver", data: BytesLike): Result;
1410
1627
  decodeFunctionResult(functionFragment: "getTradeData", data: BytesLike): Result;
1411
1628
  decodeFunctionResult(functionFragment: "getTradeFinalization", data: BytesLike): Result;
1412
- decodeFunctionResult(functionFragment: "isMPCNode", data: BytesLike): Result;
1413
- decodeFunctionResult(functionFragment: "isSolver", data: BytesLike): Result;
1414
- decodeFunctionResult(functionFragment: "isSuspended", data: BytesLike): Result;
1415
- decodeFunctionResult(functionFragment: "isValidNetwork", data: BytesLike): Result;
1416
- decodeFunctionResult(functionFragment: "isValidPMM", data: BytesLike): Result;
1417
- decodeFunctionResult(functionFragment: "isValidPMMAccount", data: BytesLike): Result;
1418
- decodeFunctionResult(functionFragment: "isValidPubkey", data: BytesLike): Result;
1419
- decodeFunctionResult(functionFragment: "isValidToken", data: BytesLike): Result;
1420
1629
  decodeFunctionResult(functionFragment: "management", data: BytesLike): Result;
1421
- decodeFunctionResult(functionFragment: "numOfPMMAccounts", data: BytesLike): Result;
1422
- decodeFunctionResult(functionFragment: "numOfSupportedTokens", data: BytesLike): Result;
1630
+ decodeFunctionResult(functionFragment: "migrate", data: BytesLike): Result;
1423
1631
  decodeFunctionResult(functionFragment: "refund", data: BytesLike): Result;
1424
1632
  decodeFunctionResult(functionFragment: "report", data: BytesLike): Result;
1425
1633
  decodeFunctionResult(functionFragment: "selectPMM", data: BytesLike): Result;
1426
1634
  decodeFunctionResult(functionFragment: "setManagement", data: BytesLike): Result;
1427
1635
  decodeFunctionResult(functionFragment: "setRoute", data: BytesLike): Result;
1636
+ decodeFunctionResult(functionFragment: "submitDeposit", data: BytesLike): Result;
1428
1637
  decodeFunctionResult(functionFragment: "submitTrade", data: BytesLike): Result;
1429
- decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
1638
+ }
1639
+ declare namespace AbortEvent {
1640
+ type InputTuple = [solver: AddressLike, tradeId: BytesLike];
1641
+ type OutputTuple = [solver: string, tradeId: string];
1642
+ interface OutputObject {
1643
+ solver: string;
1644
+ tradeId: string;
1645
+ }
1646
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
1647
+ type Filter = TypedDeferredTopicFilter<Event>;
1648
+ type Log = TypedEventLog<Event>;
1649
+ type LogDescription = TypedLogDescription<Event>;
1430
1650
  }
1431
1651
  declare namespace ConfirmDepositEvent {
1432
- type InputTuple = [
1433
- mpc: AddressLike,
1434
- tradeId: BytesLike,
1435
- pFeeRate: BigNumberish,
1436
- aFeeRate: BigNumberish,
1437
- list: BytesLike[]
1438
- ];
1439
- type OutputTuple = [
1440
- mpc: string,
1441
- tradeId: string,
1442
- pFeeRate: bigint,
1443
- aFeeRate: bigint,
1444
- list: string[]
1445
- ];
1652
+ type InputTuple = [mpc: AddressLike, depositId: BytesLike];
1653
+ type OutputTuple = [mpc: string, depositId: string];
1446
1654
  interface OutputObject {
1447
1655
  mpc: string;
1448
- tradeId: string;
1449
- pFeeRate: bigint;
1450
- aFeeRate: bigint;
1451
- list: string[];
1656
+ depositId: string;
1452
1657
  }
1453
1658
  type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
1454
1659
  type Filter = TypedDeferredTopicFilter<Event>;
@@ -1467,6 +1672,18 @@ declare namespace ConfirmPaymentEvent {
1467
1672
  type Log = TypedEventLog<Event>;
1468
1673
  type LogDescription = TypedLogDescription<Event>;
1469
1674
  }
1675
+ declare namespace ConfirmPresignEvent {
1676
+ type InputTuple = [mpc: AddressLike, tradeId: BytesLike];
1677
+ type OutputTuple = [mpc: string, tradeId: string];
1678
+ interface OutputObject {
1679
+ mpc: string;
1680
+ tradeId: string;
1681
+ }
1682
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
1683
+ type Filter = TypedDeferredTopicFilter<Event>;
1684
+ type Log = TypedEventLog<Event>;
1685
+ type LogDescription = TypedLogDescription<Event>;
1686
+ }
1470
1687
  declare namespace ConfirmRefundEvent {
1471
1688
  type InputTuple = [mpc: AddressLike, tradeId: BytesLike];
1472
1689
  type OutputTuple = [mpc: string, tradeId: string];
@@ -1532,6 +1749,18 @@ declare namespace SelectPMMEvent {
1532
1749
  type Log = TypedEventLog<Event>;
1533
1750
  type LogDescription = TypedLogDescription<Event>;
1534
1751
  }
1752
+ declare namespace SubmitDepositEvent {
1753
+ type InputTuple = [solver: AddressLike, depositId: BytesLike];
1754
+ type OutputTuple = [solver: string, depositId: string];
1755
+ interface OutputObject {
1756
+ solver: string;
1757
+ depositId: string;
1758
+ }
1759
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
1760
+ type Filter = TypedDeferredTopicFilter<Event>;
1761
+ type Log = TypedEventLog<Event>;
1762
+ type LogDescription = TypedLogDescription<Event>;
1763
+ }
1535
1764
  declare namespace SubmitTradeInfoEvent {
1536
1765
  type InputTuple = [solver: AddressLike, tradeId: BytesLike];
1537
1766
  type OutputTuple = [solver: string, tradeId: string];
@@ -1547,21 +1776,18 @@ declare namespace SubmitTradeInfoEvent {
1547
1776
  declare namespace UpdatedRouteEvent {
1548
1777
  type InputTuple = [
1549
1778
  handler: AddressLike,
1550
- version: BigNumberish,
1551
- fromChain: BytesLike,
1552
- toChain: BytesLike
1779
+ fromNetwork: BytesLike,
1780
+ toNetwork: BytesLike
1553
1781
  ];
1554
1782
  type OutputTuple = [
1555
1783
  handler: string,
1556
- version: bigint,
1557
- fromChain: string,
1558
- toChain: string
1784
+ fromNetwork: string,
1785
+ toNetwork: string
1559
1786
  ];
1560
1787
  interface OutputObject {
1561
1788
  handler: string;
1562
- version: bigint;
1563
- fromChain: string;
1564
- toChain: string;
1789
+ fromNetwork: string;
1790
+ toNetwork: string;
1565
1791
  }
1566
1792
  type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
1567
1793
  type Filter = TypedDeferredTopicFilter<Event>;
@@ -1582,13 +1808,19 @@ interface Router extends BaseContract {
1582
1808
  listeners(eventName?: string): Promise<Array<Listener>>;
1583
1809
  removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
1584
1810
  SIGNER: TypedContractMethod<[], [string], "view">;
1811
+ abort: TypedContractMethod<[
1812
+ tradeId: BytesLike,
1813
+ rfqInfo: ITypes$1.RFQInfoStruct
1814
+ ], [
1815
+ void
1816
+ ], "nonpayable">;
1585
1817
  bundlePayment: TypedContractMethod<[
1586
- bundle: ITypes.BundlePaymentStruct
1818
+ bundle: ITypes$1.BundlePaymentStruct
1587
1819
  ], [
1588
1820
  void
1589
1821
  ], "nonpayable">;
1590
1822
  confirmDeposit: TypedContractMethod<[
1591
- tradeId: BytesLike,
1823
+ referenceId: BytesLike,
1592
1824
  signature: BytesLike,
1593
1825
  depositFromList: BytesLike[]
1594
1826
  ], [
@@ -1600,6 +1832,12 @@ interface Router extends BaseContract {
1600
1832
  ], [
1601
1833
  void
1602
1834
  ], "nonpayable">;
1835
+ confirmPresign: TypedContractMethod<[
1836
+ tradeId: BytesLike,
1837
+ signature: BytesLike
1838
+ ], [
1839
+ void
1840
+ ], "nonpayable">;
1603
1841
  confirmSettlement: TypedContractMethod<[
1604
1842
  tradeId: BytesLike,
1605
1843
  releaseTxId: BytesLike,
@@ -1608,35 +1846,36 @@ interface Router extends BaseContract {
1608
1846
  void
1609
1847
  ], "nonpayable">;
1610
1848
  getAffiliateInfo: TypedContractMethod<[
1611
- tradeId: BytesLike
1849
+ referenceId: BytesLike
1612
1850
  ], [
1613
- ITypes.AffiliateStructOutput
1851
+ ITypes$1.AffiliateStructOutput
1614
1852
  ], "view">;
1615
1853
  getCurrentEpoch: TypedContractMethod<[
1616
- fromChain: BytesLike,
1617
- toChain: BytesLike
1854
+ handler: AddressLike
1618
1855
  ], [
1619
1856
  [bigint, bigint, bigint]
1620
1857
  ], "view">;
1621
- getCurrentStage: TypedContractMethod<[tradeId: BytesLike], [bigint], "view">;
1622
- getDepositAddressList: TypedContractMethod<[
1623
- tradeId: BytesLike
1858
+ getCurrentStage: TypedContractMethod<[
1859
+ referenceId: BytesLike
1624
1860
  ], [
1625
- string[]
1861
+ [bigint, string] & {
1862
+ stage: bigint;
1863
+ swapType: string;
1864
+ }
1626
1865
  ], "view">;
1627
1866
  getFailureInfo: TypedContractMethod<[
1628
- tradeId: BytesLike
1867
+ referenceId: BytesLike
1629
1868
  ], [
1630
- ITypes.FailureDetailsStructOutput
1869
+ ITypes$1.FailureDetailsStructOutput
1631
1870
  ], "view">;
1632
1871
  getFeeDetails: TypedContractMethod<[
1633
- tradeId: BytesLike
1872
+ referenceId: BytesLike
1634
1873
  ], [
1635
- ITypes.FeeDetailsStructOutput
1874
+ ITypes$1.FeeDetailsStructOutput
1636
1875
  ], "view">;
1637
1876
  getHandler: TypedContractMethod<[
1638
- fromChain: BytesLike,
1639
- toChain: BytesLike
1877
+ fromNetwork: BytesLike,
1878
+ toNetwork: BytesLike
1640
1879
  ], [
1641
1880
  [string, string] & {
1642
1881
  handler: string;
@@ -1644,139 +1883,92 @@ interface Router extends BaseContract {
1644
1883
  }
1645
1884
  ], "view">;
1646
1885
  getHandlerOf: TypedContractMethod<[
1647
- tradeId: BytesLike
1886
+ referenceId: BytesLike
1648
1887
  ], [
1649
1888
  [string, string] & {
1650
1889
  handler: string;
1651
1890
  handlerType: string;
1652
1891
  }
1653
1892
  ], "view">;
1654
- getLastSignedPayment: TypedContractMethod<[
1655
- tradeId: BytesLike
1656
- ], [
1657
- bigint
1658
- ], "view">;
1659
- getLatestMPCInfo: TypedContractMethod<[
1660
- networkId: BytesLike
1661
- ], [
1662
- ITypes.MPCInfoStructOutput
1663
- ], "view">;
1664
- getMPCInfo: TypedContractMethod<[
1665
- networkId: BytesLike,
1666
- pubkey: BytesLike
1667
- ], [
1668
- ITypes.MPCInfoStructOutput
1669
- ], "view">;
1670
- getManagementOwner: TypedContractMethod<[], [string], "view">;
1671
- getMaxAffiliateFeeRate: TypedContractMethod<[
1672
- fromChain: BytesLike,
1673
- toChain: BytesLike
1893
+ getHistoryCount: TypedContractMethod<[
1894
+ fromNetwork: BytesLike,
1895
+ toNetwork: BytesLike
1674
1896
  ], [
1675
1897
  bigint
1676
1898
  ], "view">;
1677
- getPFeeRate: TypedContractMethod<[], [bigint], "view">;
1678
- getPMMAccounts: TypedContractMethod<[
1679
- pmmId: BytesLike,
1680
- fromIdx: BigNumberish,
1681
- toIdx: BigNumberish
1682
- ], [
1683
- string[]
1684
- ], "view">;
1685
1899
  getPMMSelection: TypedContractMethod<[
1686
- tradeId: BytesLike
1900
+ referenceId: BytesLike
1687
1901
  ], [
1688
- ITypes.PMMSelectionStructOutput
1902
+ ITypes$1.PMMSelectionStructOutput
1689
1903
  ], "view">;
1690
1904
  getPendingTrades: TypedContractMethod<[
1905
+ handler: AddressLike,
1691
1906
  epochNo: BigNumberish,
1692
1907
  fromIdx: BigNumberish,
1693
- toIdx: BigNumberish,
1694
- fromChain: BytesLike,
1695
- toChain: BytesLike
1908
+ toIdx: BigNumberish
1696
1909
  ], [
1697
1910
  string[]
1698
1911
  ], "view">;
1699
1912
  getPendingTradesCount: TypedContractMethod<[
1700
- epochNo: BigNumberish,
1701
- fromChain: BytesLike,
1702
- toChain: BytesLike
1913
+ handler: AddressLike,
1914
+ epochNo: BigNumberish
1703
1915
  ], [
1704
1916
  bigint
1705
1917
  ], "view">;
1706
- getProtocolState: TypedContractMethod<[], [bigint], "view">;
1707
- getRefundPresigns: TypedContractMethod<[
1708
- tradeId: BytesLike
1918
+ getRefundPresign: TypedContractMethod<[
1919
+ referenceId: BytesLike
1709
1920
  ], [
1710
- ITypes.RefundPresignStructOutput
1921
+ ITypes$1.RefundPresignStructOutput
1711
1922
  ], "view">;
1712
- getSettlementPresigns: TypedContractMethod<[
1713
- tradeId: BytesLike
1923
+ getRegisteredHandlers: TypedContractMethod<[
1924
+ fromIdx: BigNumberish,
1925
+ toIdx: BigNumberish,
1926
+ fromNetwork: BytesLike,
1927
+ toNetwork: BytesLike
1714
1928
  ], [
1715
- ITypes.SettlementPresignStructOutput[]
1929
+ string[]
1716
1930
  ], "view">;
1717
- getTokens: TypedContractMethod<[
1718
- fromIdx: BigNumberish,
1719
- toIdx: BigNumberish
1931
+ getSettlementPresigns: TypedContractMethod<[
1932
+ referenceId: BytesLike
1720
1933
  ], [
1721
- ITypes.TokenInfoStructOutput[]
1934
+ ITypes$1.SettlementPresignStructOutput[]
1722
1935
  ], "view">;
1936
+ getSolver: TypedContractMethod<[referenceId: BytesLike], [string], "view">;
1723
1937
  getTradeData: TypedContractMethod<[
1724
- tradeId: BytesLike
1938
+ referenceId: BytesLike
1725
1939
  ], [
1726
- ITypes.TradeDataStructOutput
1940
+ ITypes$1.TradeDataStructOutput
1727
1941
  ], "view">;
1728
1942
  getTradeFinalization: TypedContractMethod<[
1729
- tradeId: BytesLike
1730
- ], [
1731
- ITypes.TradeFinalizationStructOutput
1732
- ], "view">;
1733
- isMPCNode: TypedContractMethod<[account: AddressLike], [boolean], "view">;
1734
- isSolver: TypedContractMethod<[account: AddressLike], [boolean], "view">;
1735
- isSuspended: TypedContractMethod<[stage: BigNumberish], [boolean], "view">;
1736
- isValidNetwork: TypedContractMethod<[
1737
- networkId: BytesLike
1738
- ], [
1739
- boolean
1740
- ], "view">;
1741
- isValidPMM: TypedContractMethod<[pmmId: BytesLike], [boolean], "view">;
1742
- isValidPMMAccount: TypedContractMethod<[
1743
- pmmId: BytesLike,
1744
- account: AddressLike
1745
- ], [
1746
- boolean
1747
- ], "view">;
1748
- isValidPubkey: TypedContractMethod<[
1749
- networkId: BytesLike,
1750
- pubkey: BytesLike
1751
- ], [
1752
- boolean
1753
- ], "view">;
1754
- isValidToken: TypedContractMethod<[
1755
- networkId: BytesLike,
1756
- tokenId: BytesLike
1943
+ referenceId: BytesLike
1757
1944
  ], [
1758
- boolean
1945
+ ITypes$1.TradeFinalizationStructOutput
1759
1946
  ], "view">;
1760
1947
  management: TypedContractMethod<[], [string], "view">;
1761
- numOfPMMAccounts: TypedContractMethod<[pmmId: BytesLike], [bigint], "view">;
1762
- numOfSupportedTokens: TypedContractMethod<[], [bigint], "view">;
1948
+ migrate: TypedContractMethod<[
1949
+ referenceIds: BytesLike[],
1950
+ handlers: AddressLike[]
1951
+ ], [
1952
+ void
1953
+ ], "nonpayable">;
1763
1954
  refund: TypedContractMethod<[
1764
- tradeId: BytesLike,
1955
+ referenceId: BytesLike,
1765
1956
  refundTxId: BytesLike,
1766
1957
  signature: BytesLike
1767
1958
  ], [
1768
1959
  void
1769
1960
  ], "nonpayable">;
1770
1961
  report: TypedContractMethod<[
1771
- tradeId: BytesLike,
1962
+ referenceId: BytesLike,
1772
1963
  msgError: BytesLike,
1964
+ referenceInfo: BytesLike,
1773
1965
  signature: BytesLike
1774
1966
  ], [
1775
1967
  void
1776
1968
  ], "nonpayable">;
1777
1969
  selectPMM: TypedContractMethod<[
1778
1970
  tradeId: BytesLike,
1779
- info: ITypes.PMMSelectionStruct
1971
+ info: ITypes$1.PMMSelectionStruct
1780
1972
  ], [
1781
1973
  void
1782
1974
  ], "nonpayable">;
@@ -1787,30 +1979,42 @@ interface Router extends BaseContract {
1787
1979
  ], "nonpayable">;
1788
1980
  setRoute: TypedContractMethod<[
1789
1981
  handler: AddressLike,
1790
- fromChain: BytesLike,
1791
- toChain: BytesLike
1982
+ fromNetwork: BytesLike,
1983
+ toNetwork: BytesLike
1984
+ ], [
1985
+ void
1986
+ ], "nonpayable">;
1987
+ submitDeposit: TypedContractMethod<[
1988
+ depositId: BytesLike,
1989
+ tradeData: ITypes$1.TradeDataStruct,
1990
+ refundPresign: ITypes$1.RefundPresignStruct
1792
1991
  ], [
1793
1992
  void
1794
1993
  ], "nonpayable">;
1795
1994
  submitTrade: TypedContractMethod<[
1796
1995
  tradeId: BytesLike,
1797
- tradeData: ITypes.TradeDataStruct,
1798
- affiliateInfo: ITypes.AffiliateStruct,
1799
- settlementPresigns: ITypes.SettlementPresignStruct[],
1800
- refundPresign: ITypes.RefundPresignStruct
1996
+ tradeData: ITypes$1.TradeDataStruct,
1997
+ affiliateInfo: ITypes$1.AffiliateStruct,
1998
+ settlementPresigns: ITypes$1.SettlementPresignStruct[],
1999
+ refundPresign: ITypes$1.RefundPresignStruct
1801
2000
  ], [
1802
2001
  void
1803
2002
  ], "nonpayable">;
1804
- version: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
1805
2003
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
1806
2004
  getFunction(nameOrSignature: "SIGNER"): TypedContractMethod<[], [string], "view">;
2005
+ getFunction(nameOrSignature: "abort"): TypedContractMethod<[
2006
+ tradeId: BytesLike,
2007
+ rfqInfo: ITypes$1.RFQInfoStruct
2008
+ ], [
2009
+ void
2010
+ ], "nonpayable">;
1807
2011
  getFunction(nameOrSignature: "bundlePayment"): TypedContractMethod<[
1808
- bundle: ITypes.BundlePaymentStruct
2012
+ bundle: ITypes$1.BundlePaymentStruct
1809
2013
  ], [
1810
2014
  void
1811
2015
  ], "nonpayable">;
1812
2016
  getFunction(nameOrSignature: "confirmDeposit"): TypedContractMethod<[
1813
- tradeId: BytesLike,
2017
+ referenceId: BytesLike,
1814
2018
  signature: BytesLike,
1815
2019
  depositFromList: BytesLike[]
1816
2020
  ], [
@@ -1822,6 +2026,12 @@ interface Router extends BaseContract {
1822
2026
  ], [
1823
2027
  void
1824
2028
  ], "nonpayable">;
2029
+ getFunction(nameOrSignature: "confirmPresign"): TypedContractMethod<[
2030
+ tradeId: BytesLike,
2031
+ signature: BytesLike
2032
+ ], [
2033
+ void
2034
+ ], "nonpayable">;
1825
2035
  getFunction(nameOrSignature: "confirmSettlement"): TypedContractMethod<[
1826
2036
  tradeId: BytesLike,
1827
2037
  releaseTxId: BytesLike,
@@ -1830,31 +2040,36 @@ interface Router extends BaseContract {
1830
2040
  void
1831
2041
  ], "nonpayable">;
1832
2042
  getFunction(nameOrSignature: "getAffiliateInfo"): TypedContractMethod<[
1833
- tradeId: BytesLike
2043
+ referenceId: BytesLike
1834
2044
  ], [
1835
- ITypes.AffiliateStructOutput
2045
+ ITypes$1.AffiliateStructOutput
1836
2046
  ], "view">;
1837
2047
  getFunction(nameOrSignature: "getCurrentEpoch"): TypedContractMethod<[
1838
- fromChain: BytesLike,
1839
- toChain: BytesLike
2048
+ handler: AddressLike
1840
2049
  ], [
1841
2050
  [bigint, bigint, bigint]
1842
2051
  ], "view">;
1843
- getFunction(nameOrSignature: "getCurrentStage"): TypedContractMethod<[tradeId: BytesLike], [bigint], "view">;
1844
- getFunction(nameOrSignature: "getDepositAddressList"): TypedContractMethod<[tradeId: BytesLike], [string[]], "view">;
2052
+ getFunction(nameOrSignature: "getCurrentStage"): TypedContractMethod<[
2053
+ referenceId: BytesLike
2054
+ ], [
2055
+ [bigint, string] & {
2056
+ stage: bigint;
2057
+ swapType: string;
2058
+ }
2059
+ ], "view">;
1845
2060
  getFunction(nameOrSignature: "getFailureInfo"): TypedContractMethod<[
1846
- tradeId: BytesLike
2061
+ referenceId: BytesLike
1847
2062
  ], [
1848
- ITypes.FailureDetailsStructOutput
2063
+ ITypes$1.FailureDetailsStructOutput
1849
2064
  ], "view">;
1850
2065
  getFunction(nameOrSignature: "getFeeDetails"): TypedContractMethod<[
1851
- tradeId: BytesLike
2066
+ referenceId: BytesLike
1852
2067
  ], [
1853
- ITypes.FeeDetailsStructOutput
2068
+ ITypes$1.FeeDetailsStructOutput
1854
2069
  ], "view">;
1855
2070
  getFunction(nameOrSignature: "getHandler"): TypedContractMethod<[
1856
- fromChain: BytesLike,
1857
- toChain: BytesLike
2071
+ fromNetwork: BytesLike,
2072
+ toNetwork: BytesLike
1858
2073
  ], [
1859
2074
  [string, string] & {
1860
2075
  handler: string;
@@ -1862,166 +2077,140 @@ interface Router extends BaseContract {
1862
2077
  }
1863
2078
  ], "view">;
1864
2079
  getFunction(nameOrSignature: "getHandlerOf"): TypedContractMethod<[
1865
- tradeId: BytesLike
2080
+ referenceId: BytesLike
1866
2081
  ], [
1867
2082
  [string, string] & {
1868
2083
  handler: string;
1869
2084
  handlerType: string;
1870
2085
  }
1871
2086
  ], "view">;
1872
- getFunction(nameOrSignature: "getLastSignedPayment"): TypedContractMethod<[tradeId: BytesLike], [bigint], "view">;
1873
- getFunction(nameOrSignature: "getLatestMPCInfo"): TypedContractMethod<[
1874
- networkId: BytesLike
1875
- ], [
1876
- ITypes.MPCInfoStructOutput
1877
- ], "view">;
1878
- getFunction(nameOrSignature: "getMPCInfo"): TypedContractMethod<[
1879
- networkId: BytesLike,
1880
- pubkey: BytesLike
1881
- ], [
1882
- ITypes.MPCInfoStructOutput
1883
- ], "view">;
1884
- getFunction(nameOrSignature: "getManagementOwner"): TypedContractMethod<[], [string], "view">;
1885
- getFunction(nameOrSignature: "getMaxAffiliateFeeRate"): TypedContractMethod<[
1886
- fromChain: BytesLike,
1887
- toChain: BytesLike
2087
+ getFunction(nameOrSignature: "getHistoryCount"): TypedContractMethod<[
2088
+ fromNetwork: BytesLike,
2089
+ toNetwork: BytesLike
1888
2090
  ], [
1889
2091
  bigint
1890
2092
  ], "view">;
1891
- getFunction(nameOrSignature: "getPFeeRate"): TypedContractMethod<[], [bigint], "view">;
1892
- getFunction(nameOrSignature: "getPMMAccounts"): TypedContractMethod<[
1893
- pmmId: BytesLike,
1894
- fromIdx: BigNumberish,
1895
- toIdx: BigNumberish
1896
- ], [
1897
- string[]
1898
- ], "view">;
1899
2093
  getFunction(nameOrSignature: "getPMMSelection"): TypedContractMethod<[
1900
- tradeId: BytesLike
2094
+ referenceId: BytesLike
1901
2095
  ], [
1902
- ITypes.PMMSelectionStructOutput
2096
+ ITypes$1.PMMSelectionStructOutput
1903
2097
  ], "view">;
1904
2098
  getFunction(nameOrSignature: "getPendingTrades"): TypedContractMethod<[
2099
+ handler: AddressLike,
1905
2100
  epochNo: BigNumberish,
1906
2101
  fromIdx: BigNumberish,
1907
- toIdx: BigNumberish,
1908
- fromChain: BytesLike,
1909
- toChain: BytesLike
2102
+ toIdx: BigNumberish
1910
2103
  ], [
1911
2104
  string[]
1912
2105
  ], "view">;
1913
2106
  getFunction(nameOrSignature: "getPendingTradesCount"): TypedContractMethod<[
1914
- epochNo: BigNumberish,
1915
- fromChain: BytesLike,
1916
- toChain: BytesLike
2107
+ handler: AddressLike,
2108
+ epochNo: BigNumberish
1917
2109
  ], [
1918
2110
  bigint
1919
2111
  ], "view">;
1920
- getFunction(nameOrSignature: "getProtocolState"): TypedContractMethod<[], [bigint], "view">;
1921
- getFunction(nameOrSignature: "getRefundPresigns"): TypedContractMethod<[
1922
- tradeId: BytesLike
2112
+ getFunction(nameOrSignature: "getRefundPresign"): TypedContractMethod<[
2113
+ referenceId: BytesLike
1923
2114
  ], [
1924
- ITypes.RefundPresignStructOutput
2115
+ ITypes$1.RefundPresignStructOutput
1925
2116
  ], "view">;
1926
- getFunction(nameOrSignature: "getSettlementPresigns"): TypedContractMethod<[
1927
- tradeId: BytesLike
2117
+ getFunction(nameOrSignature: "getRegisteredHandlers"): TypedContractMethod<[
2118
+ fromIdx: BigNumberish,
2119
+ toIdx: BigNumberish,
2120
+ fromNetwork: BytesLike,
2121
+ toNetwork: BytesLike
1928
2122
  ], [
1929
- ITypes.SettlementPresignStructOutput[]
2123
+ string[]
1930
2124
  ], "view">;
1931
- getFunction(nameOrSignature: "getTokens"): TypedContractMethod<[
1932
- fromIdx: BigNumberish,
1933
- toIdx: BigNumberish
2125
+ getFunction(nameOrSignature: "getSettlementPresigns"): TypedContractMethod<[
2126
+ referenceId: BytesLike
1934
2127
  ], [
1935
- ITypes.TokenInfoStructOutput[]
2128
+ ITypes$1.SettlementPresignStructOutput[]
1936
2129
  ], "view">;
2130
+ getFunction(nameOrSignature: "getSolver"): TypedContractMethod<[referenceId: BytesLike], [string], "view">;
1937
2131
  getFunction(nameOrSignature: "getTradeData"): TypedContractMethod<[
1938
- tradeId: BytesLike
2132
+ referenceId: BytesLike
1939
2133
  ], [
1940
- ITypes.TradeDataStructOutput
2134
+ ITypes$1.TradeDataStructOutput
1941
2135
  ], "view">;
1942
2136
  getFunction(nameOrSignature: "getTradeFinalization"): TypedContractMethod<[
1943
- tradeId: BytesLike
1944
- ], [
1945
- ITypes.TradeFinalizationStructOutput
1946
- ], "view">;
1947
- getFunction(nameOrSignature: "isMPCNode"): TypedContractMethod<[account: AddressLike], [boolean], "view">;
1948
- getFunction(nameOrSignature: "isSolver"): TypedContractMethod<[account: AddressLike], [boolean], "view">;
1949
- getFunction(nameOrSignature: "isSuspended"): TypedContractMethod<[stage: BigNumberish], [boolean], "view">;
1950
- getFunction(nameOrSignature: "isValidNetwork"): TypedContractMethod<[networkId: BytesLike], [boolean], "view">;
1951
- getFunction(nameOrSignature: "isValidPMM"): TypedContractMethod<[pmmId: BytesLike], [boolean], "view">;
1952
- getFunction(nameOrSignature: "isValidPMMAccount"): TypedContractMethod<[
1953
- pmmId: BytesLike,
1954
- account: AddressLike
1955
- ], [
1956
- boolean
1957
- ], "view">;
1958
- getFunction(nameOrSignature: "isValidPubkey"): TypedContractMethod<[
1959
- networkId: BytesLike,
1960
- pubkey: BytesLike
1961
- ], [
1962
- boolean
1963
- ], "view">;
1964
- getFunction(nameOrSignature: "isValidToken"): TypedContractMethod<[
1965
- networkId: BytesLike,
1966
- tokenId: BytesLike
2137
+ referenceId: BytesLike
1967
2138
  ], [
1968
- boolean
2139
+ ITypes$1.TradeFinalizationStructOutput
1969
2140
  ], "view">;
1970
2141
  getFunction(nameOrSignature: "management"): TypedContractMethod<[], [string], "view">;
1971
- getFunction(nameOrSignature: "numOfPMMAccounts"): TypedContractMethod<[pmmId: BytesLike], [bigint], "view">;
1972
- getFunction(nameOrSignature: "numOfSupportedTokens"): TypedContractMethod<[], [bigint], "view">;
2142
+ getFunction(nameOrSignature: "migrate"): TypedContractMethod<[
2143
+ referenceIds: BytesLike[],
2144
+ handlers: AddressLike[]
2145
+ ], [
2146
+ void
2147
+ ], "nonpayable">;
1973
2148
  getFunction(nameOrSignature: "refund"): TypedContractMethod<[
1974
- tradeId: BytesLike,
2149
+ referenceId: BytesLike,
1975
2150
  refundTxId: BytesLike,
1976
2151
  signature: BytesLike
1977
2152
  ], [
1978
2153
  void
1979
2154
  ], "nonpayable">;
1980
2155
  getFunction(nameOrSignature: "report"): TypedContractMethod<[
1981
- tradeId: BytesLike,
2156
+ referenceId: BytesLike,
1982
2157
  msgError: BytesLike,
2158
+ referenceInfo: BytesLike,
1983
2159
  signature: BytesLike
1984
2160
  ], [
1985
2161
  void
1986
2162
  ], "nonpayable">;
1987
2163
  getFunction(nameOrSignature: "selectPMM"): TypedContractMethod<[
1988
2164
  tradeId: BytesLike,
1989
- info: ITypes.PMMSelectionStruct
2165
+ info: ITypes$1.PMMSelectionStruct
1990
2166
  ], [
1991
2167
  void
1992
2168
  ], "nonpayable">;
1993
2169
  getFunction(nameOrSignature: "setManagement"): TypedContractMethod<[newManagement: AddressLike], [void], "nonpayable">;
1994
2170
  getFunction(nameOrSignature: "setRoute"): TypedContractMethod<[
1995
2171
  handler: AddressLike,
1996
- fromChain: BytesLike,
1997
- toChain: BytesLike
2172
+ fromNetwork: BytesLike,
2173
+ toNetwork: BytesLike
2174
+ ], [
2175
+ void
2176
+ ], "nonpayable">;
2177
+ getFunction(nameOrSignature: "submitDeposit"): TypedContractMethod<[
2178
+ depositId: BytesLike,
2179
+ tradeData: ITypes$1.TradeDataStruct,
2180
+ refundPresign: ITypes$1.RefundPresignStruct
1998
2181
  ], [
1999
2182
  void
2000
2183
  ], "nonpayable">;
2001
2184
  getFunction(nameOrSignature: "submitTrade"): TypedContractMethod<[
2002
2185
  tradeId: BytesLike,
2003
- tradeData: ITypes.TradeDataStruct,
2004
- affiliateInfo: ITypes.AffiliateStruct,
2005
- settlementPresigns: ITypes.SettlementPresignStruct[],
2006
- refundPresign: ITypes.RefundPresignStruct
2186
+ tradeData: ITypes$1.TradeDataStruct,
2187
+ affiliateInfo: ITypes$1.AffiliateStruct,
2188
+ settlementPresigns: ITypes$1.SettlementPresignStruct[],
2189
+ refundPresign: ITypes$1.RefundPresignStruct
2007
2190
  ], [
2008
2191
  void
2009
2192
  ], "nonpayable">;
2010
- getFunction(nameOrSignature: "version"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
2193
+ getEvent(key: "Abort"): TypedContractEvent<AbortEvent.InputTuple, AbortEvent.OutputTuple, AbortEvent.OutputObject>;
2011
2194
  getEvent(key: "ConfirmDeposit"): TypedContractEvent<ConfirmDepositEvent.InputTuple, ConfirmDepositEvent.OutputTuple, ConfirmDepositEvent.OutputObject>;
2012
2195
  getEvent(key: "ConfirmPayment"): TypedContractEvent<ConfirmPaymentEvent.InputTuple, ConfirmPaymentEvent.OutputTuple, ConfirmPaymentEvent.OutputObject>;
2196
+ getEvent(key: "ConfirmPresign"): TypedContractEvent<ConfirmPresignEvent.InputTuple, ConfirmPresignEvent.OutputTuple, ConfirmPresignEvent.OutputObject>;
2013
2197
  getEvent(key: "ConfirmRefund"): TypedContractEvent<ConfirmRefundEvent.InputTuple, ConfirmRefundEvent.OutputTuple, ConfirmRefundEvent.OutputObject>;
2014
2198
  getEvent(key: "ConfirmSettlement"): TypedContractEvent<ConfirmSettlementEvent.InputTuple, ConfirmSettlementEvent.OutputTuple, ConfirmSettlementEvent.OutputObject>;
2015
2199
  getEvent(key: "MakePayment"): TypedContractEvent<MakePaymentEvent.InputTuple, MakePaymentEvent.OutputTuple, MakePaymentEvent.OutputObject>;
2016
2200
  getEvent(key: "ReportFailure"): TypedContractEvent<ReportFailureEvent.InputTuple, ReportFailureEvent.OutputTuple, ReportFailureEvent.OutputObject>;
2017
2201
  getEvent(key: "SelectPMM"): TypedContractEvent<SelectPMMEvent.InputTuple, SelectPMMEvent.OutputTuple, SelectPMMEvent.OutputObject>;
2202
+ getEvent(key: "SubmitDeposit"): TypedContractEvent<SubmitDepositEvent.InputTuple, SubmitDepositEvent.OutputTuple, SubmitDepositEvent.OutputObject>;
2018
2203
  getEvent(key: "SubmitTradeInfo"): TypedContractEvent<SubmitTradeInfoEvent.InputTuple, SubmitTradeInfoEvent.OutputTuple, SubmitTradeInfoEvent.OutputObject>;
2019
2204
  getEvent(key: "UpdatedRoute"): TypedContractEvent<UpdatedRouteEvent.InputTuple, UpdatedRouteEvent.OutputTuple, UpdatedRouteEvent.OutputObject>;
2020
2205
  filters: {
2021
- "ConfirmDeposit(address,bytes32,uint256,uint256,bytes[])": TypedContractEvent<ConfirmDepositEvent.InputTuple, ConfirmDepositEvent.OutputTuple, ConfirmDepositEvent.OutputObject>;
2206
+ "Abort(address,bytes32)": TypedContractEvent<AbortEvent.InputTuple, AbortEvent.OutputTuple, AbortEvent.OutputObject>;
2207
+ Abort: TypedContractEvent<AbortEvent.InputTuple, AbortEvent.OutputTuple, AbortEvent.OutputObject>;
2208
+ "ConfirmDeposit(address,bytes32)": TypedContractEvent<ConfirmDepositEvent.InputTuple, ConfirmDepositEvent.OutputTuple, ConfirmDepositEvent.OutputObject>;
2022
2209
  ConfirmDeposit: TypedContractEvent<ConfirmDepositEvent.InputTuple, ConfirmDepositEvent.OutputTuple, ConfirmDepositEvent.OutputObject>;
2023
2210
  "ConfirmPayment(address,bytes32)": TypedContractEvent<ConfirmPaymentEvent.InputTuple, ConfirmPaymentEvent.OutputTuple, ConfirmPaymentEvent.OutputObject>;
2024
2211
  ConfirmPayment: TypedContractEvent<ConfirmPaymentEvent.InputTuple, ConfirmPaymentEvent.OutputTuple, ConfirmPaymentEvent.OutputObject>;
2212
+ "ConfirmPresign(address,bytes32)": TypedContractEvent<ConfirmPresignEvent.InputTuple, ConfirmPresignEvent.OutputTuple, ConfirmPresignEvent.OutputObject>;
2213
+ ConfirmPresign: TypedContractEvent<ConfirmPresignEvent.InputTuple, ConfirmPresignEvent.OutputTuple, ConfirmPresignEvent.OutputObject>;
2025
2214
  "ConfirmRefund(address,bytes32)": TypedContractEvent<ConfirmRefundEvent.InputTuple, ConfirmRefundEvent.OutputTuple, ConfirmRefundEvent.OutputObject>;
2026
2215
  ConfirmRefund: TypedContractEvent<ConfirmRefundEvent.InputTuple, ConfirmRefundEvent.OutputTuple, ConfirmRefundEvent.OutputObject>;
2027
2216
  "ConfirmSettlement(address,bytes32)": TypedContractEvent<ConfirmSettlementEvent.InputTuple, ConfirmSettlementEvent.OutputTuple, ConfirmSettlementEvent.OutputObject>;
@@ -2032,9 +2221,11 @@ interface Router extends BaseContract {
2032
2221
  ReportFailure: TypedContractEvent<ReportFailureEvent.InputTuple, ReportFailureEvent.OutputTuple, ReportFailureEvent.OutputObject>;
2033
2222
  "SelectPMM(address,bytes32)": TypedContractEvent<SelectPMMEvent.InputTuple, SelectPMMEvent.OutputTuple, SelectPMMEvent.OutputObject>;
2034
2223
  SelectPMM: TypedContractEvent<SelectPMMEvent.InputTuple, SelectPMMEvent.OutputTuple, SelectPMMEvent.OutputObject>;
2224
+ "SubmitDeposit(address,bytes32)": TypedContractEvent<SubmitDepositEvent.InputTuple, SubmitDepositEvent.OutputTuple, SubmitDepositEvent.OutputObject>;
2225
+ SubmitDeposit: TypedContractEvent<SubmitDepositEvent.InputTuple, SubmitDepositEvent.OutputTuple, SubmitDepositEvent.OutputObject>;
2035
2226
  "SubmitTradeInfo(address,bytes32)": TypedContractEvent<SubmitTradeInfoEvent.InputTuple, SubmitTradeInfoEvent.OutputTuple, SubmitTradeInfoEvent.OutputObject>;
2036
2227
  SubmitTradeInfo: TypedContractEvent<SubmitTradeInfoEvent.InputTuple, SubmitTradeInfoEvent.OutputTuple, SubmitTradeInfoEvent.OutputObject>;
2037
- "UpdatedRoute(address,uint256,bytes,bytes)": TypedContractEvent<UpdatedRouteEvent.InputTuple, UpdatedRouteEvent.OutputTuple, UpdatedRouteEvent.OutputObject>;
2228
+ "UpdatedRoute(address,bytes,bytes)": TypedContractEvent<UpdatedRouteEvent.InputTuple, UpdatedRouteEvent.OutputTuple, UpdatedRouteEvent.OutputObject>;
2038
2229
  UpdatedRoute: TypedContractEvent<UpdatedRouteEvent.InputTuple, UpdatedRouteEvent.OutputTuple, UpdatedRouteEvent.OutputObject>;
2039
2230
  };
2040
2231
  }
@@ -3251,81 +3442,667 @@ declare class ERC20__factory {
3251
3442
  readonly stateMutability: "nonpayable";
3252
3443
  readonly type: "function";
3253
3444
  }, {
3254
- readonly inputs: readonly [{
3255
- readonly internalType: "address";
3256
- readonly name: "_account";
3445
+ readonly inputs: readonly [{
3446
+ readonly internalType: "address";
3447
+ readonly name: "_account";
3448
+ readonly type: "address";
3449
+ }];
3450
+ readonly name: "unBlacklist";
3451
+ readonly outputs: readonly [];
3452
+ readonly stateMutability: "nonpayable";
3453
+ readonly type: "function";
3454
+ }, {
3455
+ readonly inputs: readonly [];
3456
+ readonly name: "unpause";
3457
+ readonly outputs: readonly [];
3458
+ readonly stateMutability: "nonpayable";
3459
+ readonly type: "function";
3460
+ }, {
3461
+ readonly inputs: readonly [{
3462
+ readonly internalType: "address";
3463
+ readonly name: "_newBlacklister";
3464
+ readonly type: "address";
3465
+ }];
3466
+ readonly name: "updateBlacklister";
3467
+ readonly outputs: readonly [];
3468
+ readonly stateMutability: "nonpayable";
3469
+ readonly type: "function";
3470
+ }, {
3471
+ readonly inputs: readonly [{
3472
+ readonly internalType: "address";
3473
+ readonly name: "_newMasterMinter";
3474
+ readonly type: "address";
3475
+ }];
3476
+ readonly name: "updateMasterMinter";
3477
+ readonly outputs: readonly [];
3478
+ readonly stateMutability: "nonpayable";
3479
+ readonly type: "function";
3480
+ }, {
3481
+ readonly inputs: readonly [{
3482
+ readonly internalType: "address";
3483
+ readonly name: "_newPauser";
3484
+ readonly type: "address";
3485
+ }];
3486
+ readonly name: "updatePauser";
3487
+ readonly outputs: readonly [];
3488
+ readonly stateMutability: "nonpayable";
3489
+ readonly type: "function";
3490
+ }, {
3491
+ readonly inputs: readonly [{
3492
+ readonly internalType: "address";
3493
+ readonly name: "newRescuer";
3494
+ readonly type: "address";
3495
+ }];
3496
+ readonly name: "updateRescuer";
3497
+ readonly outputs: readonly [];
3498
+ readonly stateMutability: "nonpayable";
3499
+ readonly type: "function";
3500
+ }, {
3501
+ readonly inputs: readonly [];
3502
+ readonly name: "version";
3503
+ readonly outputs: readonly [{
3504
+ readonly internalType: "string";
3505
+ readonly name: "";
3506
+ readonly type: "string";
3507
+ }];
3508
+ readonly stateMutability: "pure";
3509
+ readonly type: "function";
3510
+ }];
3511
+ static createInterface(): ERC20Interface;
3512
+ static connect(address: string, runner?: ContractRunner | null): ERC20;
3513
+ }
3514
+
3515
+ declare class Payment__factory {
3516
+ static readonly abi: readonly [{
3517
+ readonly inputs: readonly [{
3518
+ readonly internalType: "address";
3519
+ readonly name: "pAddress";
3520
+ readonly type: "address";
3521
+ }];
3522
+ readonly stateMutability: "nonpayable";
3523
+ readonly type: "constructor";
3524
+ }, {
3525
+ readonly inputs: readonly [];
3526
+ readonly name: "AddressZero";
3527
+ readonly type: "error";
3528
+ }, {
3529
+ readonly inputs: readonly [];
3530
+ readonly name: "DeadlineExceeded";
3531
+ readonly type: "error";
3532
+ }, {
3533
+ readonly inputs: readonly [];
3534
+ readonly name: "FailedCall";
3535
+ readonly type: "error";
3536
+ }, {
3537
+ readonly inputs: readonly [{
3538
+ readonly internalType: "uint256";
3539
+ readonly name: "balance";
3540
+ readonly type: "uint256";
3541
+ }, {
3542
+ readonly internalType: "uint256";
3543
+ readonly name: "needed";
3544
+ readonly type: "uint256";
3545
+ }];
3546
+ readonly name: "InsufficientBalance";
3547
+ readonly type: "error";
3548
+ }, {
3549
+ readonly inputs: readonly [];
3550
+ readonly name: "InvalidPaymentAmount";
3551
+ readonly type: "error";
3552
+ }, {
3553
+ readonly inputs: readonly [];
3554
+ readonly name: "NativeCoinNotMatched";
3555
+ readonly type: "error";
3556
+ }, {
3557
+ readonly inputs: readonly [];
3558
+ readonly name: "ReentrancyGuardReentrantCall";
3559
+ readonly type: "error";
3560
+ }, {
3561
+ readonly inputs: readonly [{
3562
+ readonly internalType: "address";
3563
+ readonly name: "token";
3564
+ readonly type: "address";
3565
+ }];
3566
+ readonly name: "SafeERC20FailedOperation";
3567
+ readonly type: "error";
3568
+ }, {
3569
+ readonly inputs: readonly [];
3570
+ readonly name: "Unauthorized";
3571
+ readonly type: "error";
3572
+ }, {
3573
+ readonly anonymous: false;
3574
+ readonly inputs: readonly [{
3575
+ readonly indexed: true;
3576
+ readonly internalType: "bytes32";
3577
+ readonly name: "tradeId";
3578
+ readonly type: "bytes32";
3579
+ }, {
3580
+ readonly indexed: true;
3581
+ readonly internalType: "address";
3582
+ readonly name: "from";
3583
+ readonly type: "address";
3584
+ }, {
3585
+ readonly indexed: true;
3586
+ readonly internalType: "address";
3587
+ readonly name: "to";
3588
+ readonly type: "address";
3589
+ }, {
3590
+ readonly indexed: false;
3591
+ readonly internalType: "address";
3592
+ readonly name: "pFeeAddr";
3593
+ readonly type: "address";
3594
+ }, {
3595
+ readonly indexed: false;
3596
+ readonly internalType: "address";
3597
+ readonly name: "token";
3598
+ readonly type: "address";
3599
+ }, {
3600
+ readonly indexed: false;
3601
+ readonly internalType: "uint256";
3602
+ readonly name: "payToUser";
3603
+ readonly type: "uint256";
3604
+ }, {
3605
+ readonly indexed: false;
3606
+ readonly internalType: "uint256";
3607
+ readonly name: "totalFee";
3608
+ readonly type: "uint256";
3609
+ }];
3610
+ readonly name: "PaymentTransferred";
3611
+ readonly type: "event";
3612
+ }, {
3613
+ readonly anonymous: false;
3614
+ readonly inputs: readonly [{
3615
+ readonly indexed: true;
3616
+ readonly internalType: "address";
3617
+ readonly name: "owner";
3618
+ readonly type: "address";
3619
+ }, {
3620
+ readonly indexed: true;
3621
+ readonly internalType: "address";
3622
+ readonly name: "newProtocol";
3623
+ readonly type: "address";
3624
+ }];
3625
+ readonly name: "ProtocolUpdated";
3626
+ readonly type: "event";
3627
+ }, {
3628
+ readonly inputs: readonly [{
3629
+ readonly internalType: "bytes32";
3630
+ readonly name: "tradeId";
3631
+ readonly type: "bytes32";
3632
+ }, {
3633
+ readonly internalType: "address";
3634
+ readonly name: "token";
3635
+ readonly type: "address";
3636
+ }, {
3637
+ readonly internalType: "address";
3638
+ readonly name: "toUser";
3639
+ readonly type: "address";
3640
+ }, {
3641
+ readonly internalType: "uint256";
3642
+ readonly name: "amount";
3643
+ readonly type: "uint256";
3644
+ }, {
3645
+ readonly internalType: "uint256";
3646
+ readonly name: "totalFee";
3647
+ readonly type: "uint256";
3648
+ }, {
3649
+ readonly internalType: "uint256";
3650
+ readonly name: "deadline";
3651
+ readonly type: "uint256";
3652
+ }];
3653
+ readonly name: "payment";
3654
+ readonly outputs: readonly [];
3655
+ readonly stateMutability: "payable";
3656
+ readonly type: "function";
3657
+ }, {
3658
+ readonly inputs: readonly [];
3659
+ readonly name: "protocol";
3660
+ readonly outputs: readonly [{
3661
+ readonly internalType: "contract IProtocol";
3662
+ readonly name: "";
3663
+ readonly type: "address";
3664
+ }];
3665
+ readonly stateMutability: "view";
3666
+ readonly type: "function";
3667
+ }, {
3668
+ readonly inputs: readonly [{
3669
+ readonly internalType: "address";
3670
+ readonly name: "newProtocol";
3671
+ readonly type: "address";
3672
+ }];
3673
+ readonly name: "setProtocol";
3674
+ readonly outputs: readonly [];
3675
+ readonly stateMutability: "nonpayable";
3676
+ readonly type: "function";
3677
+ }];
3678
+ static createInterface(): PaymentInterface;
3679
+ static connect(address: string, runner?: ContractRunner | null): Payment;
3680
+ }
3681
+
3682
+ declare class ProtocolFetcherProxy__factory {
3683
+ static readonly abi: readonly [{
3684
+ readonly inputs: readonly [{
3685
+ readonly internalType: "contract IManagement";
3686
+ readonly name: "management_";
3687
+ readonly type: "address";
3688
+ }, {
3689
+ readonly internalType: "contract IVaultRegistry";
3690
+ readonly name: "vaultRegistry_";
3691
+ readonly type: "address";
3692
+ }, {
3693
+ readonly internalType: "contract IRouter";
3694
+ readonly name: "router_";
3695
+ readonly type: "address";
3696
+ }, {
3697
+ readonly internalType: "contract ISignerExtension";
3698
+ readonly name: "signerExtension_";
3699
+ readonly type: "address";
3700
+ }];
3701
+ readonly stateMutability: "nonpayable";
3702
+ readonly type: "constructor";
3703
+ }, {
3704
+ readonly inputs: readonly [];
3705
+ readonly name: "AddressZero";
3706
+ readonly type: "error";
3707
+ }, {
3708
+ readonly inputs: readonly [];
3709
+ readonly name: "Unauthorized";
3710
+ readonly type: "error";
3711
+ }, {
3712
+ readonly inputs: readonly [{
3713
+ readonly internalType: "bytes";
3714
+ readonly name: "networkId";
3715
+ readonly type: "bytes";
3716
+ }];
3717
+ readonly name: "getLatestMPCInfo";
3718
+ readonly outputs: readonly [{
3719
+ readonly components: readonly [{
3720
+ readonly internalType: "address";
3721
+ readonly name: "mpcL2Address";
3722
+ readonly type: "address";
3723
+ }, {
3724
+ readonly internalType: "uint64";
3725
+ readonly name: "expireTime";
3726
+ readonly type: "uint64";
3727
+ }, {
3728
+ readonly internalType: "bytes";
3729
+ readonly name: "mpcL2Pubkey";
3730
+ readonly type: "bytes";
3731
+ }, {
3732
+ readonly internalType: "bytes";
3733
+ readonly name: "mpcAssetPubkey";
3734
+ readonly type: "bytes";
3735
+ }];
3736
+ readonly internalType: "struct ITypes.MPCInfo";
3737
+ readonly name: "";
3738
+ readonly type: "tuple";
3739
+ }];
3740
+ readonly stateMutability: "view";
3741
+ readonly type: "function";
3742
+ }, {
3743
+ readonly inputs: readonly [{
3744
+ readonly internalType: "bytes";
3745
+ readonly name: "networkId";
3746
+ readonly type: "bytes";
3747
+ }, {
3748
+ readonly internalType: "bytes";
3749
+ readonly name: "pubkey";
3750
+ readonly type: "bytes";
3751
+ }];
3752
+ readonly name: "getMPCInfo";
3753
+ readonly outputs: readonly [{
3754
+ readonly components: readonly [{
3755
+ readonly internalType: "address";
3756
+ readonly name: "mpcL2Address";
3757
+ readonly type: "address";
3758
+ }, {
3759
+ readonly internalType: "uint64";
3760
+ readonly name: "expireTime";
3761
+ readonly type: "uint64";
3762
+ }, {
3763
+ readonly internalType: "bytes";
3764
+ readonly name: "mpcL2Pubkey";
3765
+ readonly type: "bytes";
3766
+ }, {
3767
+ readonly internalType: "bytes";
3768
+ readonly name: "mpcAssetPubkey";
3769
+ readonly type: "bytes";
3770
+ }];
3771
+ readonly internalType: "struct ITypes.MPCInfo";
3772
+ readonly name: "info";
3773
+ readonly type: "tuple";
3774
+ }];
3775
+ readonly stateMutability: "view";
3776
+ readonly type: "function";
3777
+ }, {
3778
+ readonly inputs: readonly [];
3779
+ readonly name: "getManagementOwner";
3780
+ readonly outputs: readonly [{
3781
+ readonly internalType: "address";
3782
+ readonly name: "";
3783
+ readonly type: "address";
3784
+ }];
3785
+ readonly stateMutability: "view";
3786
+ readonly type: "function";
3787
+ }, {
3788
+ readonly inputs: readonly [{
3789
+ readonly internalType: "bytes[4]";
3790
+ readonly name: "pairInfo";
3791
+ readonly type: "bytes[4]";
3792
+ }];
3793
+ readonly name: "getPFeeRate";
3794
+ readonly outputs: readonly [{
3795
+ readonly internalType: "uint256";
3796
+ readonly name: "";
3797
+ readonly type: "uint256";
3798
+ }];
3799
+ readonly stateMutability: "view";
3800
+ readonly type: "function";
3801
+ }, {
3802
+ readonly inputs: readonly [{
3803
+ readonly internalType: "bytes32";
3804
+ readonly name: "pmmId";
3805
+ readonly type: "bytes32";
3806
+ }, {
3807
+ readonly internalType: "uint256";
3808
+ readonly name: "fromIdx";
3809
+ readonly type: "uint256";
3810
+ }, {
3811
+ readonly internalType: "uint256";
3812
+ readonly name: "toIdx";
3813
+ readonly type: "uint256";
3814
+ }];
3815
+ readonly name: "getPMMAccounts";
3816
+ readonly outputs: readonly [{
3817
+ readonly internalType: "address[]";
3818
+ readonly name: "list";
3819
+ readonly type: "address[]";
3820
+ }];
3821
+ readonly stateMutability: "view";
3822
+ readonly type: "function";
3823
+ }, {
3824
+ readonly inputs: readonly [];
3825
+ readonly name: "getProtocolState";
3826
+ readonly outputs: readonly [{
3827
+ readonly internalType: "uint256";
3828
+ readonly name: "";
3829
+ readonly type: "uint256";
3830
+ }];
3831
+ readonly stateMutability: "view";
3832
+ readonly type: "function";
3833
+ }, {
3834
+ readonly inputs: readonly [{
3835
+ readonly internalType: "uint256";
3836
+ readonly name: "fromIdx";
3837
+ readonly type: "uint256";
3838
+ }, {
3839
+ readonly internalType: "uint256";
3840
+ readonly name: "toIdx";
3841
+ readonly type: "uint256";
3842
+ }];
3843
+ readonly name: "getTokens";
3844
+ readonly outputs: readonly [{
3845
+ readonly components: readonly [{
3846
+ readonly internalType: "bytes[5]";
3847
+ readonly name: "info";
3848
+ readonly type: "bytes[5]";
3849
+ }, {
3850
+ readonly internalType: "uint256";
3851
+ readonly name: "decimals";
3852
+ readonly type: "uint256";
3853
+ }];
3854
+ readonly internalType: "struct ITypes.TokenInfo[]";
3855
+ readonly name: "list";
3856
+ readonly type: "tuple[]";
3857
+ }];
3858
+ readonly stateMutability: "view";
3859
+ readonly type: "function";
3860
+ }, {
3861
+ readonly inputs: readonly [{
3862
+ readonly internalType: "bytes";
3863
+ readonly name: "networkId";
3864
+ readonly type: "bytes";
3865
+ }, {
3866
+ readonly internalType: "bytes";
3867
+ readonly name: "tokenId";
3868
+ readonly type: "bytes";
3869
+ }];
3870
+ readonly name: "getVault";
3871
+ readonly outputs: readonly [{
3872
+ readonly internalType: "address";
3873
+ readonly name: "";
3874
+ readonly type: "address";
3875
+ }];
3876
+ readonly stateMutability: "view";
3877
+ readonly type: "function";
3878
+ }, {
3879
+ readonly inputs: readonly [{
3880
+ readonly internalType: "address";
3881
+ readonly name: "account";
3882
+ readonly type: "address";
3883
+ }];
3884
+ readonly name: "isMPCNode";
3885
+ readonly outputs: readonly [{
3886
+ readonly internalType: "bool";
3887
+ readonly name: "";
3888
+ readonly type: "bool";
3889
+ }];
3890
+ readonly stateMutability: "view";
3891
+ readonly type: "function";
3892
+ }, {
3893
+ readonly inputs: readonly [{
3894
+ readonly internalType: "address";
3895
+ readonly name: "account";
3896
+ readonly type: "address";
3897
+ }];
3898
+ readonly name: "isSolver";
3899
+ readonly outputs: readonly [{
3900
+ readonly internalType: "bool";
3901
+ readonly name: "";
3902
+ readonly type: "bool";
3903
+ }];
3904
+ readonly stateMutability: "view";
3905
+ readonly type: "function";
3906
+ }, {
3907
+ readonly inputs: readonly [{
3908
+ readonly internalType: "bytes";
3909
+ readonly name: "networkId";
3910
+ readonly type: "bytes";
3911
+ }];
3912
+ readonly name: "isValidNetwork";
3913
+ readonly outputs: readonly [{
3914
+ readonly internalType: "bool";
3915
+ readonly name: "";
3916
+ readonly type: "bool";
3917
+ }];
3918
+ readonly stateMutability: "view";
3919
+ readonly type: "function";
3920
+ }, {
3921
+ readonly inputs: readonly [{
3922
+ readonly internalType: "bytes32";
3923
+ readonly name: "pmmId";
3924
+ readonly type: "bytes32";
3925
+ }];
3926
+ readonly name: "isValidPMM";
3927
+ readonly outputs: readonly [{
3928
+ readonly internalType: "bool";
3929
+ readonly name: "";
3930
+ readonly type: "bool";
3931
+ }];
3932
+ readonly stateMutability: "view";
3933
+ readonly type: "function";
3934
+ }, {
3935
+ readonly inputs: readonly [{
3936
+ readonly internalType: "bytes32";
3937
+ readonly name: "pmmId";
3938
+ readonly type: "bytes32";
3939
+ }, {
3940
+ readonly internalType: "address";
3941
+ readonly name: "account";
3942
+ readonly type: "address";
3943
+ }];
3944
+ readonly name: "isValidPMMAccount";
3945
+ readonly outputs: readonly [{
3946
+ readonly internalType: "bool";
3947
+ readonly name: "";
3948
+ readonly type: "bool";
3949
+ }];
3950
+ readonly stateMutability: "view";
3951
+ readonly type: "function";
3952
+ }, {
3953
+ readonly inputs: readonly [{
3954
+ readonly internalType: "bytes";
3955
+ readonly name: "networkId";
3956
+ readonly type: "bytes";
3957
+ }, {
3958
+ readonly internalType: "bytes";
3959
+ readonly name: "pubkey";
3960
+ readonly type: "bytes";
3961
+ }];
3962
+ readonly name: "isValidPubkey";
3963
+ readonly outputs: readonly [{
3964
+ readonly internalType: "bool";
3965
+ readonly name: "";
3966
+ readonly type: "bool";
3967
+ }];
3968
+ readonly stateMutability: "view";
3969
+ readonly type: "function";
3970
+ }, {
3971
+ readonly inputs: readonly [{
3972
+ readonly internalType: "bytes";
3973
+ readonly name: "networkId";
3974
+ readonly type: "bytes";
3975
+ }, {
3976
+ readonly internalType: "bytes";
3977
+ readonly name: "tokenId";
3978
+ readonly type: "bytes";
3979
+ }];
3980
+ readonly name: "isValidToken";
3981
+ readonly outputs: readonly [{
3982
+ readonly internalType: "bool";
3983
+ readonly name: "";
3984
+ readonly type: "bool";
3985
+ }];
3986
+ readonly stateMutability: "view";
3987
+ readonly type: "function";
3988
+ }, {
3989
+ readonly inputs: readonly [{
3990
+ readonly internalType: "bytes32";
3991
+ readonly name: "pmmId";
3992
+ readonly type: "bytes32";
3993
+ }];
3994
+ readonly name: "numOfPMMAccounts";
3995
+ readonly outputs: readonly [{
3996
+ readonly internalType: "uint256";
3997
+ readonly name: "";
3998
+ readonly type: "uint256";
3999
+ }];
4000
+ readonly stateMutability: "view";
4001
+ readonly type: "function";
4002
+ }, {
4003
+ readonly inputs: readonly [];
4004
+ readonly name: "numOfSupportedTokens";
4005
+ readonly outputs: readonly [{
4006
+ readonly internalType: "uint256";
4007
+ readonly name: "";
4008
+ readonly type: "uint256";
4009
+ }];
4010
+ readonly stateMutability: "view";
4011
+ readonly type: "function";
4012
+ }, {
4013
+ readonly inputs: readonly [];
4014
+ readonly name: "pManagement";
4015
+ readonly outputs: readonly [{
4016
+ readonly internalType: "contract IManagement";
4017
+ readonly name: "";
4018
+ readonly type: "address";
4019
+ }];
4020
+ readonly stateMutability: "view";
4021
+ readonly type: "function";
4022
+ }, {
4023
+ readonly inputs: readonly [];
4024
+ readonly name: "registry";
4025
+ readonly outputs: readonly [{
4026
+ readonly internalType: "contract IVaultRegistry";
4027
+ readonly name: "";
3257
4028
  readonly type: "address";
3258
4029
  }];
3259
- readonly name: "unBlacklist";
3260
- readonly outputs: readonly [];
3261
- readonly stateMutability: "nonpayable";
4030
+ readonly stateMutability: "view";
3262
4031
  readonly type: "function";
3263
4032
  }, {
3264
4033
  readonly inputs: readonly [];
3265
- readonly name: "unpause";
3266
- readonly outputs: readonly [];
3267
- readonly stateMutability: "nonpayable";
4034
+ readonly name: "router";
4035
+ readonly outputs: readonly [{
4036
+ readonly internalType: "contract IRouter";
4037
+ readonly name: "";
4038
+ readonly type: "address";
4039
+ }];
4040
+ readonly stateMutability: "view";
3268
4041
  readonly type: "function";
3269
4042
  }, {
3270
4043
  readonly inputs: readonly [{
3271
4044
  readonly internalType: "address";
3272
- readonly name: "_newBlacklister";
4045
+ readonly name: "newManagement";
3273
4046
  readonly type: "address";
3274
4047
  }];
3275
- readonly name: "updateBlacklister";
4048
+ readonly name: "setProtocolManagement";
3276
4049
  readonly outputs: readonly [];
3277
4050
  readonly stateMutability: "nonpayable";
3278
4051
  readonly type: "function";
3279
4052
  }, {
3280
4053
  readonly inputs: readonly [{
3281
4054
  readonly internalType: "address";
3282
- readonly name: "_newMasterMinter";
4055
+ readonly name: "newRouter";
3283
4056
  readonly type: "address";
3284
4057
  }];
3285
- readonly name: "updateMasterMinter";
4058
+ readonly name: "setRouter";
3286
4059
  readonly outputs: readonly [];
3287
4060
  readonly stateMutability: "nonpayable";
3288
4061
  readonly type: "function";
3289
4062
  }, {
3290
4063
  readonly inputs: readonly [{
3291
4064
  readonly internalType: "address";
3292
- readonly name: "_newPauser";
4065
+ readonly name: "newSignerExtension";
3293
4066
  readonly type: "address";
3294
4067
  }];
3295
- readonly name: "updatePauser";
4068
+ readonly name: "setSignerExtension";
3296
4069
  readonly outputs: readonly [];
3297
4070
  readonly stateMutability: "nonpayable";
3298
4071
  readonly type: "function";
3299
4072
  }, {
3300
4073
  readonly inputs: readonly [{
3301
4074
  readonly internalType: "address";
3302
- readonly name: "newRescuer";
4075
+ readonly name: "newRegistry";
3303
4076
  readonly type: "address";
3304
4077
  }];
3305
- readonly name: "updateRescuer";
4078
+ readonly name: "setVaultRegistry";
3306
4079
  readonly outputs: readonly [];
3307
4080
  readonly stateMutability: "nonpayable";
3308
4081
  readonly type: "function";
3309
4082
  }, {
3310
4083
  readonly inputs: readonly [];
3311
- readonly name: "version";
4084
+ readonly name: "signerExtension";
3312
4085
  readonly outputs: readonly [{
3313
- readonly internalType: "string";
4086
+ readonly internalType: "contract ISignerExtension";
3314
4087
  readonly name: "";
3315
- readonly type: "string";
4088
+ readonly type: "address";
3316
4089
  }];
3317
- readonly stateMutability: "pure";
4090
+ readonly stateMutability: "view";
3318
4091
  readonly type: "function";
3319
4092
  }];
3320
- static createInterface(): ERC20Interface;
3321
- static connect(address: string, runner?: ContractRunner | null): ERC20;
4093
+ static createInterface(): ProtocolFetcherProxyInterface;
4094
+ static connect(address: string, runner?: ContractRunner | null): ProtocolFetcherProxy;
3322
4095
  }
3323
4096
 
3324
- declare class Payment__factory {
4097
+ declare class Router__factory {
3325
4098
  static readonly abi: readonly [{
3326
4099
  readonly inputs: readonly [{
4100
+ readonly internalType: "contract IManagement";
4101
+ readonly name: "management_";
4102
+ readonly type: "address";
4103
+ }, {
3327
4104
  readonly internalType: "address";
3328
- readonly name: "pAddress";
4105
+ readonly name: "signer";
3329
4106
  readonly type: "address";
3330
4107
  }];
3331
4108
  readonly stateMutability: "nonpayable";
@@ -3336,43 +4113,23 @@ declare class Payment__factory {
3336
4113
  readonly type: "error";
3337
4114
  }, {
3338
4115
  readonly inputs: readonly [];
3339
- readonly name: "DeadlineExceeded";
4116
+ readonly name: "BundlePaymentEmpty";
3340
4117
  readonly type: "error";
3341
4118
  }, {
3342
4119
  readonly inputs: readonly [];
3343
- readonly name: "FailedCall";
3344
- readonly type: "error";
3345
- }, {
3346
- readonly inputs: readonly [{
3347
- readonly internalType: "uint256";
3348
- readonly name: "balance";
3349
- readonly type: "uint256";
3350
- }, {
3351
- readonly internalType: "uint256";
3352
- readonly name: "needed";
3353
- readonly type: "uint256";
3354
- }];
3355
- readonly name: "InsufficientBalance";
4120
+ readonly name: "DepositAlreadySubmitted";
3356
4121
  readonly type: "error";
3357
4122
  }, {
3358
4123
  readonly inputs: readonly [];
3359
- readonly name: "InvalidPaymentAmount";
4124
+ readonly name: "LengthMismatch";
3360
4125
  readonly type: "error";
3361
4126
  }, {
3362
4127
  readonly inputs: readonly [];
3363
- readonly name: "NativeCoinNotMatched";
4128
+ readonly name: "RegisteredAlready";
3364
4129
  readonly type: "error";
3365
4130
  }, {
3366
4131
  readonly inputs: readonly [];
3367
- readonly name: "ReentrancyGuardReentrantCall";
3368
- readonly type: "error";
3369
- }, {
3370
- readonly inputs: readonly [{
3371
- readonly internalType: "address";
3372
- readonly name: "token";
3373
- readonly type: "address";
3374
- }];
3375
- readonly name: "SafeERC20FailedOperation";
4132
+ readonly name: "RouteNotSupported";
3376
4133
  readonly type: "error";
3377
4134
  }, {
3378
4135
  readonly inputs: readonly [];
@@ -3381,158 +4138,33 @@ declare class Payment__factory {
3381
4138
  }, {
3382
4139
  readonly anonymous: false;
3383
4140
  readonly inputs: readonly [{
3384
- readonly indexed: true;
3385
- readonly internalType: "bytes32";
3386
- readonly name: "tradeId";
3387
- readonly type: "bytes32";
3388
- }, {
3389
4141
  readonly indexed: true;
3390
4142
  readonly internalType: "address";
3391
- readonly name: "from";
4143
+ readonly name: "solver";
3392
4144
  readonly type: "address";
3393
4145
  }, {
3394
4146
  readonly indexed: true;
3395
- readonly internalType: "address";
3396
- readonly name: "to";
3397
- readonly type: "address";
3398
- }, {
3399
- readonly indexed: false;
3400
- readonly internalType: "address";
3401
- readonly name: "pFeeAddr";
3402
- readonly type: "address";
3403
- }, {
3404
- readonly indexed: false;
3405
- readonly internalType: "address";
3406
- readonly name: "token";
3407
- readonly type: "address";
3408
- }, {
3409
- readonly indexed: false;
3410
- readonly internalType: "uint256";
3411
- readonly name: "payToUser";
3412
- readonly type: "uint256";
3413
- }, {
3414
- readonly indexed: false;
3415
- readonly internalType: "uint256";
3416
- readonly name: "totalFee";
3417
- readonly type: "uint256";
4147
+ readonly internalType: "bytes32";
4148
+ readonly name: "tradeId";
4149
+ readonly type: "bytes32";
3418
4150
  }];
3419
- readonly name: "PaymentTransferred";
4151
+ readonly name: "Abort";
3420
4152
  readonly type: "event";
3421
4153
  }, {
3422
4154
  readonly anonymous: false;
3423
4155
  readonly inputs: readonly [{
3424
4156
  readonly indexed: true;
3425
4157
  readonly internalType: "address";
3426
- readonly name: "owner";
4158
+ readonly name: "mpc";
3427
4159
  readonly type: "address";
3428
4160
  }, {
3429
4161
  readonly indexed: true;
3430
- readonly internalType: "address";
3431
- readonly name: "newProtocol";
3432
- readonly type: "address";
3433
- }];
3434
- readonly name: "ProtocolUpdated";
3435
- readonly type: "event";
3436
- }, {
3437
- readonly inputs: readonly [{
3438
4162
  readonly internalType: "bytes32";
3439
- readonly name: "tradeId";
4163
+ readonly name: "depositId";
3440
4164
  readonly type: "bytes32";
3441
- }, {
3442
- readonly internalType: "address";
3443
- readonly name: "token";
3444
- readonly type: "address";
3445
- }, {
3446
- readonly internalType: "address";
3447
- readonly name: "toUser";
3448
- readonly type: "address";
3449
- }, {
3450
- readonly internalType: "uint256";
3451
- readonly name: "amount";
3452
- readonly type: "uint256";
3453
- }, {
3454
- readonly internalType: "uint256";
3455
- readonly name: "totalFee";
3456
- readonly type: "uint256";
3457
- }, {
3458
- readonly internalType: "uint256";
3459
- readonly name: "deadline";
3460
- readonly type: "uint256";
3461
- }];
3462
- readonly name: "payment";
3463
- readonly outputs: readonly [];
3464
- readonly stateMutability: "payable";
3465
- readonly type: "function";
3466
- }, {
3467
- readonly inputs: readonly [];
3468
- readonly name: "protocol";
3469
- readonly outputs: readonly [{
3470
- readonly internalType: "contract IProtocol";
3471
- readonly name: "";
3472
- readonly type: "address";
3473
- }];
3474
- readonly stateMutability: "view";
3475
- readonly type: "function";
3476
- }, {
3477
- readonly inputs: readonly [{
3478
- readonly internalType: "address";
3479
- readonly name: "newProtocol";
3480
- readonly type: "address";
3481
- }];
3482
- readonly name: "setProtocol";
3483
- readonly outputs: readonly [];
3484
- readonly stateMutability: "nonpayable";
3485
- readonly type: "function";
3486
- }];
3487
- static createInterface(): PaymentInterface;
3488
- static connect(address: string, runner?: ContractRunner | null): Payment;
3489
- }
3490
-
3491
- declare class Router__factory {
3492
- static readonly abi: readonly [{
3493
- readonly inputs: readonly [{
3494
- readonly internalType: "contract IManagement";
3495
- readonly name: "management_";
3496
- readonly type: "address";
3497
- }, {
3498
- readonly internalType: "address";
3499
- readonly name: "signer";
3500
- readonly type: "address";
3501
4165
  }];
3502
- readonly stateMutability: "nonpayable";
3503
- readonly type: "constructor";
3504
- }, {
3505
- readonly inputs: readonly [];
3506
- readonly name: "AddressZero";
3507
- readonly type: "error";
3508
- }, {
3509
- readonly inputs: readonly [];
3510
- readonly name: "BundlePaymentEmpty";
3511
- readonly type: "error";
3512
- }, {
3513
- readonly inputs: readonly [];
3514
- readonly name: "InconsistentCoreType";
3515
- readonly type: "error";
3516
- }, {
3517
- readonly inputs: readonly [];
3518
- readonly name: "InconsistentPMM";
3519
- readonly type: "error";
3520
- }, {
3521
- readonly inputs: readonly [];
3522
- readonly name: "RegisteredAlready";
3523
- readonly type: "error";
3524
- }, {
3525
- readonly inputs: readonly [];
3526
- readonly name: "RouteNotFound";
3527
- readonly type: "error";
3528
- }, {
3529
- readonly inputs: readonly [];
3530
- readonly name: "RouteNotSupported";
3531
- readonly type: "error";
3532
- }, {
3533
- readonly inputs: readonly [];
3534
- readonly name: "Unauthorized";
3535
- readonly type: "error";
4166
+ readonly name: "ConfirmDeposit";
4167
+ readonly type: "event";
3536
4168
  }, {
3537
4169
  readonly anonymous: false;
3538
4170
  readonly inputs: readonly [{
@@ -3545,23 +4177,8 @@ declare class Router__factory {
3545
4177
  readonly internalType: "bytes32";
3546
4178
  readonly name: "tradeId";
3547
4179
  readonly type: "bytes32";
3548
- }, {
3549
- readonly indexed: false;
3550
- readonly internalType: "uint256";
3551
- readonly name: "pFeeRate";
3552
- readonly type: "uint256";
3553
- }, {
3554
- readonly indexed: false;
3555
- readonly internalType: "uint256";
3556
- readonly name: "aFeeRate";
3557
- readonly type: "uint256";
3558
- }, {
3559
- readonly indexed: false;
3560
- readonly internalType: "bytes[]";
3561
- readonly name: "list";
3562
- readonly type: "bytes[]";
3563
4180
  }];
3564
- readonly name: "ConfirmDeposit";
4181
+ readonly name: "ConfirmPayment";
3565
4182
  readonly type: "event";
3566
4183
  }, {
3567
4184
  readonly anonymous: false;
@@ -3576,7 +4193,7 @@ declare class Router__factory {
3576
4193
  readonly name: "tradeId";
3577
4194
  readonly type: "bytes32";
3578
4195
  }];
3579
- readonly name: "ConfirmPayment";
4196
+ readonly name: "ConfirmPresign";
3580
4197
  readonly type: "event";
3581
4198
  }, {
3582
4199
  readonly anonymous: false;
@@ -3658,6 +4275,21 @@ declare class Router__factory {
3658
4275
  }];
3659
4276
  readonly name: "SelectPMM";
3660
4277
  readonly type: "event";
4278
+ }, {
4279
+ readonly anonymous: false;
4280
+ readonly inputs: readonly [{
4281
+ readonly indexed: true;
4282
+ readonly internalType: "address";
4283
+ readonly name: "solver";
4284
+ readonly type: "address";
4285
+ }, {
4286
+ readonly indexed: true;
4287
+ readonly internalType: "bytes32";
4288
+ readonly name: "depositId";
4289
+ readonly type: "bytes32";
4290
+ }];
4291
+ readonly name: "SubmitDeposit";
4292
+ readonly type: "event";
3661
4293
  }, {
3662
4294
  readonly anonymous: false;
3663
4295
  readonly inputs: readonly [{
@@ -3680,20 +4312,15 @@ declare class Router__factory {
3680
4312
  readonly internalType: "address";
3681
4313
  readonly name: "handler";
3682
4314
  readonly type: "address";
3683
- }, {
3684
- readonly indexed: true;
3685
- readonly internalType: "uint256";
3686
- readonly name: "version";
3687
- readonly type: "uint256";
3688
4315
  }, {
3689
4316
  readonly indexed: false;
3690
4317
  readonly internalType: "bytes";
3691
- readonly name: "fromChain";
4318
+ readonly name: "fromNetwork";
3692
4319
  readonly type: "bytes";
3693
4320
  }, {
3694
4321
  readonly indexed: false;
3695
4322
  readonly internalType: "bytes";
3696
- readonly name: "toChain";
4323
+ readonly name: "toNetwork";
3697
4324
  readonly type: "bytes";
3698
4325
  }];
3699
4326
  readonly name: "UpdatedRoute";
@@ -3706,7 +4333,34 @@ declare class Router__factory {
3706
4333
  readonly name: "";
3707
4334
  readonly type: "address";
3708
4335
  }];
3709
- readonly stateMutability: "view";
4336
+ readonly stateMutability: "view";
4337
+ readonly type: "function";
4338
+ }, {
4339
+ readonly inputs: readonly [{
4340
+ readonly internalType: "bytes32";
4341
+ readonly name: "tradeId";
4342
+ readonly type: "bytes32";
4343
+ }, {
4344
+ readonly components: readonly [{
4345
+ readonly internalType: "uint256";
4346
+ readonly name: "minAmountOut";
4347
+ readonly type: "uint256";
4348
+ }, {
4349
+ readonly internalType: "uint64";
4350
+ readonly name: "tradeTimeout";
4351
+ readonly type: "uint64";
4352
+ }, {
4353
+ readonly internalType: "bytes";
4354
+ readonly name: "rfqInfoSignature";
4355
+ readonly type: "bytes";
4356
+ }];
4357
+ readonly internalType: "struct ITypes.RFQInfo";
4358
+ readonly name: "rfqInfo";
4359
+ readonly type: "tuple";
4360
+ }];
4361
+ readonly name: "abort";
4362
+ readonly outputs: readonly [];
4363
+ readonly stateMutability: "nonpayable";
3710
4364
  readonly type: "function";
3711
4365
  }, {
3712
4366
  readonly inputs: readonly [{
@@ -3742,7 +4396,7 @@ declare class Router__factory {
3742
4396
  }, {
3743
4397
  readonly inputs: readonly [{
3744
4398
  readonly internalType: "bytes32";
3745
- readonly name: "tradeId";
4399
+ readonly name: "referenceId";
3746
4400
  readonly type: "bytes32";
3747
4401
  }, {
3748
4402
  readonly internalType: "bytes";
@@ -3771,6 +4425,20 @@ declare class Router__factory {
3771
4425
  readonly outputs: readonly [];
3772
4426
  readonly stateMutability: "nonpayable";
3773
4427
  readonly type: "function";
4428
+ }, {
4429
+ readonly inputs: readonly [{
4430
+ readonly internalType: "bytes32";
4431
+ readonly name: "tradeId";
4432
+ readonly type: "bytes32";
4433
+ }, {
4434
+ readonly internalType: "bytes";
4435
+ readonly name: "signature";
4436
+ readonly type: "bytes";
4437
+ }];
4438
+ readonly name: "confirmPresign";
4439
+ readonly outputs: readonly [];
4440
+ readonly stateMutability: "nonpayable";
4441
+ readonly type: "function";
3774
4442
  }, {
3775
4443
  readonly inputs: readonly [{
3776
4444
  readonly internalType: "bytes32";
@@ -3792,7 +4460,7 @@ declare class Router__factory {
3792
4460
  }, {
3793
4461
  readonly inputs: readonly [{
3794
4462
  readonly internalType: "bytes32";
3795
- readonly name: "tradeId";
4463
+ readonly name: "referenceId";
3796
4464
  readonly type: "bytes32";
3797
4465
  }];
3798
4466
  readonly name: "getAffiliateInfo";
@@ -3818,13 +4486,9 @@ declare class Router__factory {
3818
4486
  readonly type: "function";
3819
4487
  }, {
3820
4488
  readonly inputs: readonly [{
3821
- readonly internalType: "bytes";
3822
- readonly name: "fromChain";
3823
- readonly type: "bytes";
3824
- }, {
3825
- readonly internalType: "bytes";
3826
- readonly name: "toChain";
3827
- readonly type: "bytes";
4489
+ readonly internalType: "address";
4490
+ readonly name: "handler";
4491
+ readonly type: "address";
3828
4492
  }];
3829
4493
  readonly name: "getCurrentEpoch";
3830
4494
  readonly outputs: readonly [{
@@ -3845,35 +4509,25 @@ declare class Router__factory {
3845
4509
  }, {
3846
4510
  readonly inputs: readonly [{
3847
4511
  readonly internalType: "bytes32";
3848
- readonly name: "tradeId";
4512
+ readonly name: "referenceId";
3849
4513
  readonly type: "bytes32";
3850
4514
  }];
3851
4515
  readonly name: "getCurrentStage";
3852
4516
  readonly outputs: readonly [{
3853
4517
  readonly internalType: "uint256";
3854
- readonly name: "";
4518
+ readonly name: "stage";
3855
4519
  readonly type: "uint256";
4520
+ }, {
4521
+ readonly internalType: "string";
4522
+ readonly name: "swapType";
4523
+ readonly type: "string";
3856
4524
  }];
3857
4525
  readonly stateMutability: "view";
3858
4526
  readonly type: "function";
3859
4527
  }, {
3860
4528
  readonly inputs: readonly [{
3861
4529
  readonly internalType: "bytes32";
3862
- readonly name: "tradeId";
3863
- readonly type: "bytes32";
3864
- }];
3865
- readonly name: "getDepositAddressList";
3866
- readonly outputs: readonly [{
3867
- readonly internalType: "bytes[]";
3868
- readonly name: "";
3869
- readonly type: "bytes[]";
3870
- }];
3871
- readonly stateMutability: "view";
3872
- readonly type: "function";
3873
- }, {
3874
- readonly inputs: readonly [{
3875
- readonly internalType: "bytes32";
3876
- readonly name: "tradeId";
4530
+ readonly name: "referenceId";
3877
4531
  readonly type: "bytes32";
3878
4532
  }];
3879
4533
  readonly name: "getFailureInfo";
@@ -3896,7 +4550,7 @@ declare class Router__factory {
3896
4550
  }, {
3897
4551
  readonly inputs: readonly [{
3898
4552
  readonly internalType: "bytes32";
3899
- readonly name: "tradeId";
4553
+ readonly name: "referenceId";
3900
4554
  readonly type: "bytes32";
3901
4555
  }];
3902
4556
  readonly name: "getFeeDetails";
@@ -3931,11 +4585,11 @@ declare class Router__factory {
3931
4585
  }, {
3932
4586
  readonly inputs: readonly [{
3933
4587
  readonly internalType: "bytes";
3934
- readonly name: "fromChain";
4588
+ readonly name: "fromNetwork";
3935
4589
  readonly type: "bytes";
3936
4590
  }, {
3937
4591
  readonly internalType: "bytes";
3938
- readonly name: "toChain";
4592
+ readonly name: "toNetwork";
3939
4593
  readonly type: "bytes";
3940
4594
  }];
3941
4595
  readonly name: "getHandler";
@@ -3953,7 +4607,7 @@ declare class Router__factory {
3953
4607
  }, {
3954
4608
  readonly inputs: readonly [{
3955
4609
  readonly internalType: "bytes32";
3956
- readonly name: "tradeId";
4610
+ readonly name: "referenceId";
3957
4611
  readonly type: "bytes32";
3958
4612
  }];
3959
4613
  readonly name: "getHandlerOf";
@@ -3968,117 +4622,17 @@ declare class Router__factory {
3968
4622
  }];
3969
4623
  readonly stateMutability: "view";
3970
4624
  readonly type: "function";
3971
- }, {
3972
- readonly inputs: readonly [{
3973
- readonly internalType: "bytes32";
3974
- readonly name: "tradeId";
3975
- readonly type: "bytes32";
3976
- }];
3977
- readonly name: "getLastSignedPayment";
3978
- readonly outputs: readonly [{
3979
- readonly internalType: "uint64";
3980
- readonly name: "";
3981
- readonly type: "uint64";
3982
- }];
3983
- readonly stateMutability: "view";
3984
- readonly type: "function";
3985
- }, {
3986
- readonly inputs: readonly [{
3987
- readonly internalType: "bytes";
3988
- readonly name: "networkId";
3989
- readonly type: "bytes";
3990
- }];
3991
- readonly name: "getLatestMPCInfo";
3992
- readonly outputs: readonly [{
3993
- readonly components: readonly [{
3994
- readonly internalType: "address";
3995
- readonly name: "mpcL2Address";
3996
- readonly type: "address";
3997
- }, {
3998
- readonly internalType: "uint64";
3999
- readonly name: "expireTime";
4000
- readonly type: "uint64";
4001
- }, {
4002
- readonly internalType: "bytes";
4003
- readonly name: "mpcL2Pubkey";
4004
- readonly type: "bytes";
4005
- }, {
4006
- readonly internalType: "bytes";
4007
- readonly name: "mpcAssetPubkey";
4008
- readonly type: "bytes";
4009
- }];
4010
- readonly internalType: "struct ITypes.MPCInfo";
4011
- readonly name: "";
4012
- readonly type: "tuple";
4013
- }];
4014
- readonly stateMutability: "view";
4015
- readonly type: "function";
4016
- }, {
4017
- readonly inputs: readonly [{
4018
- readonly internalType: "bytes";
4019
- readonly name: "networkId";
4020
- readonly type: "bytes";
4021
- }, {
4022
- readonly internalType: "bytes";
4023
- readonly name: "pubkey";
4024
- readonly type: "bytes";
4025
- }];
4026
- readonly name: "getMPCInfo";
4027
- readonly outputs: readonly [{
4028
- readonly components: readonly [{
4029
- readonly internalType: "address";
4030
- readonly name: "mpcL2Address";
4031
- readonly type: "address";
4032
- }, {
4033
- readonly internalType: "uint64";
4034
- readonly name: "expireTime";
4035
- readonly type: "uint64";
4036
- }, {
4037
- readonly internalType: "bytes";
4038
- readonly name: "mpcL2Pubkey";
4039
- readonly type: "bytes";
4040
- }, {
4041
- readonly internalType: "bytes";
4042
- readonly name: "mpcAssetPubkey";
4043
- readonly type: "bytes";
4044
- }];
4045
- readonly internalType: "struct ITypes.MPCInfo";
4046
- readonly name: "info";
4047
- readonly type: "tuple";
4048
- }];
4049
- readonly stateMutability: "view";
4050
- readonly type: "function";
4051
- }, {
4052
- readonly inputs: readonly [];
4053
- readonly name: "getManagementOwner";
4054
- readonly outputs: readonly [{
4055
- readonly internalType: "address";
4056
- readonly name: "";
4057
- readonly type: "address";
4058
- }];
4059
- readonly stateMutability: "view";
4060
- readonly type: "function";
4061
4625
  }, {
4062
4626
  readonly inputs: readonly [{
4063
4627
  readonly internalType: "bytes";
4064
- readonly name: "fromChain";
4628
+ readonly name: "fromNetwork";
4065
4629
  readonly type: "bytes";
4066
4630
  }, {
4067
4631
  readonly internalType: "bytes";
4068
- readonly name: "toChain";
4632
+ readonly name: "toNetwork";
4069
4633
  readonly type: "bytes";
4070
4634
  }];
4071
- readonly name: "getMaxAffiliateFeeRate";
4072
- readonly outputs: readonly [{
4073
- readonly internalType: "uint256";
4074
- readonly name: "";
4075
- readonly type: "uint256";
4076
- }];
4077
- readonly stateMutability: "view";
4078
- readonly type: "function";
4079
- }, {
4080
- readonly inputs: readonly [];
4081
- readonly name: "getPFeeRate";
4635
+ readonly name: "getHistoryCount";
4082
4636
  readonly outputs: readonly [{
4083
4637
  readonly internalType: "uint256";
4084
4638
  readonly name: "";
@@ -4089,29 +4643,7 @@ declare class Router__factory {
4089
4643
  }, {
4090
4644
  readonly inputs: readonly [{
4091
4645
  readonly internalType: "bytes32";
4092
- readonly name: "pmmId";
4093
- readonly type: "bytes32";
4094
- }, {
4095
- readonly internalType: "uint256";
4096
- readonly name: "fromIdx";
4097
- readonly type: "uint256";
4098
- }, {
4099
- readonly internalType: "uint256";
4100
- readonly name: "toIdx";
4101
- readonly type: "uint256";
4102
- }];
4103
- readonly name: "getPMMAccounts";
4104
- readonly outputs: readonly [{
4105
- readonly internalType: "address[]";
4106
- readonly name: "list";
4107
- readonly type: "address[]";
4108
- }];
4109
- readonly stateMutability: "view";
4110
- readonly type: "function";
4111
- }, {
4112
- readonly inputs: readonly [{
4113
- readonly internalType: "bytes32";
4114
- readonly name: "tradeId";
4646
+ readonly name: "referenceId";
4115
4647
  readonly type: "bytes32";
4116
4648
  }];
4117
4649
  readonly name: "getPMMSelection";
@@ -4163,6 +4695,10 @@ declare class Router__factory {
4163
4695
  readonly type: "function";
4164
4696
  }, {
4165
4697
  readonly inputs: readonly [{
4698
+ readonly internalType: "address";
4699
+ readonly name: "handler";
4700
+ readonly type: "address";
4701
+ }, {
4166
4702
  readonly internalType: "uint256";
4167
4703
  readonly name: "epochNo";
4168
4704
  readonly type: "uint256";
@@ -4174,14 +4710,6 @@ declare class Router__factory {
4174
4710
  readonly internalType: "uint256";
4175
4711
  readonly name: "toIdx";
4176
4712
  readonly type: "uint256";
4177
- }, {
4178
- readonly internalType: "bytes";
4179
- readonly name: "fromChain";
4180
- readonly type: "bytes";
4181
- }, {
4182
- readonly internalType: "bytes";
4183
- readonly name: "toChain";
4184
- readonly type: "bytes";
4185
4713
  }];
4186
4714
  readonly name: "getPendingTrades";
4187
4715
  readonly outputs: readonly [{
@@ -4193,17 +4721,13 @@ declare class Router__factory {
4193
4721
  readonly type: "function";
4194
4722
  }, {
4195
4723
  readonly inputs: readonly [{
4724
+ readonly internalType: "address";
4725
+ readonly name: "handler";
4726
+ readonly type: "address";
4727
+ }, {
4196
4728
  readonly internalType: "uint256";
4197
4729
  readonly name: "epochNo";
4198
4730
  readonly type: "uint256";
4199
- }, {
4200
- readonly internalType: "bytes";
4201
- readonly name: "fromChain";
4202
- readonly type: "bytes";
4203
- }, {
4204
- readonly internalType: "bytes";
4205
- readonly name: "toChain";
4206
- readonly type: "bytes";
4207
4731
  }];
4208
4732
  readonly name: "getPendingTradesCount";
4209
4733
  readonly outputs: readonly [{
@@ -4213,23 +4737,13 @@ declare class Router__factory {
4213
4737
  }];
4214
4738
  readonly stateMutability: "view";
4215
4739
  readonly type: "function";
4216
- }, {
4217
- readonly inputs: readonly [];
4218
- readonly name: "getProtocolState";
4219
- readonly outputs: readonly [{
4220
- readonly internalType: "uint256";
4221
- readonly name: "";
4222
- readonly type: "uint256";
4223
- }];
4224
- readonly stateMutability: "view";
4225
- readonly type: "function";
4226
4740
  }, {
4227
4741
  readonly inputs: readonly [{
4228
4742
  readonly internalType: "bytes32";
4229
- readonly name: "tradeId";
4743
+ readonly name: "referenceId";
4230
4744
  readonly type: "bytes32";
4231
4745
  }];
4232
- readonly name: "getRefundPresigns";
4746
+ readonly name: "getRefundPresign";
4233
4747
  readonly outputs: readonly [{
4234
4748
  readonly components: readonly [{
4235
4749
  readonly internalType: "bytes";
@@ -4246,10 +4760,36 @@ declare class Router__factory {
4246
4760
  }];
4247
4761
  readonly stateMutability: "view";
4248
4762
  readonly type: "function";
4763
+ }, {
4764
+ readonly inputs: readonly [{
4765
+ readonly internalType: "uint256";
4766
+ readonly name: "fromIdx";
4767
+ readonly type: "uint256";
4768
+ }, {
4769
+ readonly internalType: "uint256";
4770
+ readonly name: "toIdx";
4771
+ readonly type: "uint256";
4772
+ }, {
4773
+ readonly internalType: "bytes";
4774
+ readonly name: "fromNetwork";
4775
+ readonly type: "bytes";
4776
+ }, {
4777
+ readonly internalType: "bytes";
4778
+ readonly name: "toNetwork";
4779
+ readonly type: "bytes";
4780
+ }];
4781
+ readonly name: "getRegisteredHandlers";
4782
+ readonly outputs: readonly [{
4783
+ readonly internalType: "address[]";
4784
+ readonly name: "list";
4785
+ readonly type: "address[]";
4786
+ }];
4787
+ readonly stateMutability: "view";
4788
+ readonly type: "function";
4249
4789
  }, {
4250
4790
  readonly inputs: readonly [{
4251
4791
  readonly internalType: "bytes32";
4252
- readonly name: "tradeId";
4792
+ readonly name: "referenceId";
4253
4793
  readonly type: "bytes32";
4254
4794
  }];
4255
4795
  readonly name: "getSettlementPresigns";
@@ -4275,35 +4815,22 @@ declare class Router__factory {
4275
4815
  readonly type: "function";
4276
4816
  }, {
4277
4817
  readonly inputs: readonly [{
4278
- readonly internalType: "uint256";
4279
- readonly name: "fromIdx";
4280
- readonly type: "uint256";
4281
- }, {
4282
- readonly internalType: "uint256";
4283
- readonly name: "toIdx";
4284
- readonly type: "uint256";
4818
+ readonly internalType: "bytes32";
4819
+ readonly name: "referenceId";
4820
+ readonly type: "bytes32";
4285
4821
  }];
4286
- readonly name: "getTokens";
4822
+ readonly name: "getSolver";
4287
4823
  readonly outputs: readonly [{
4288
- readonly components: readonly [{
4289
- readonly internalType: "bytes[5]";
4290
- readonly name: "info";
4291
- readonly type: "bytes[5]";
4292
- }, {
4293
- readonly internalType: "uint256";
4294
- readonly name: "decimals";
4295
- readonly type: "uint256";
4296
- }];
4297
- readonly internalType: "struct ITypes.TokenInfo[]";
4298
- readonly name: "list";
4299
- readonly type: "tuple[]";
4824
+ readonly internalType: "address";
4825
+ readonly name: "";
4826
+ readonly type: "address";
4300
4827
  }];
4301
4828
  readonly stateMutability: "view";
4302
4829
  readonly type: "function";
4303
4830
  }, {
4304
4831
  readonly inputs: readonly [{
4305
4832
  readonly internalType: "bytes32";
4306
- readonly name: "tradeId";
4833
+ readonly name: "referenceId";
4307
4834
  readonly type: "bytes32";
4308
4835
  }];
4309
4836
  readonly name: "getTradeData";
@@ -4356,7 +4883,7 @@ declare class Router__factory {
4356
4883
  }, {
4357
4884
  readonly inputs: readonly [{
4358
4885
  readonly internalType: "bytes32";
4359
- readonly name: "tradeId";
4886
+ readonly name: "referenceId";
4360
4887
  readonly type: "bytes32";
4361
4888
  }];
4362
4889
  readonly name: "getTradeFinalization";
@@ -4392,130 +4919,6 @@ declare class Router__factory {
4392
4919
  }];
4393
4920
  readonly stateMutability: "view";
4394
4921
  readonly type: "function";
4395
- }, {
4396
- readonly inputs: readonly [{
4397
- readonly internalType: "address";
4398
- readonly name: "account";
4399
- readonly type: "address";
4400
- }];
4401
- readonly name: "isMPCNode";
4402
- readonly outputs: readonly [{
4403
- readonly internalType: "bool";
4404
- readonly name: "";
4405
- readonly type: "bool";
4406
- }];
4407
- readonly stateMutability: "view";
4408
- readonly type: "function";
4409
- }, {
4410
- readonly inputs: readonly [{
4411
- readonly internalType: "address";
4412
- readonly name: "account";
4413
- readonly type: "address";
4414
- }];
4415
- readonly name: "isSolver";
4416
- readonly outputs: readonly [{
4417
- readonly internalType: "bool";
4418
- readonly name: "";
4419
- readonly type: "bool";
4420
- }];
4421
- readonly stateMutability: "view";
4422
- readonly type: "function";
4423
- }, {
4424
- readonly inputs: readonly [{
4425
- readonly internalType: "enum ITypes.STAGE";
4426
- readonly name: "stage";
4427
- readonly type: "uint8";
4428
- }];
4429
- readonly name: "isSuspended";
4430
- readonly outputs: readonly [{
4431
- readonly internalType: "bool";
4432
- readonly name: "";
4433
- readonly type: "bool";
4434
- }];
4435
- readonly stateMutability: "view";
4436
- readonly type: "function";
4437
- }, {
4438
- readonly inputs: readonly [{
4439
- readonly internalType: "bytes";
4440
- readonly name: "networkId";
4441
- readonly type: "bytes";
4442
- }];
4443
- readonly name: "isValidNetwork";
4444
- readonly outputs: readonly [{
4445
- readonly internalType: "bool";
4446
- readonly name: "";
4447
- readonly type: "bool";
4448
- }];
4449
- readonly stateMutability: "view";
4450
- readonly type: "function";
4451
- }, {
4452
- readonly inputs: readonly [{
4453
- readonly internalType: "bytes32";
4454
- readonly name: "pmmId";
4455
- readonly type: "bytes32";
4456
- }];
4457
- readonly name: "isValidPMM";
4458
- readonly outputs: readonly [{
4459
- readonly internalType: "bool";
4460
- readonly name: "";
4461
- readonly type: "bool";
4462
- }];
4463
- readonly stateMutability: "view";
4464
- readonly type: "function";
4465
- }, {
4466
- readonly inputs: readonly [{
4467
- readonly internalType: "bytes32";
4468
- readonly name: "pmmId";
4469
- readonly type: "bytes32";
4470
- }, {
4471
- readonly internalType: "address";
4472
- readonly name: "account";
4473
- readonly type: "address";
4474
- }];
4475
- readonly name: "isValidPMMAccount";
4476
- readonly outputs: readonly [{
4477
- readonly internalType: "bool";
4478
- readonly name: "";
4479
- readonly type: "bool";
4480
- }];
4481
- readonly stateMutability: "view";
4482
- readonly type: "function";
4483
- }, {
4484
- readonly inputs: readonly [{
4485
- readonly internalType: "bytes";
4486
- readonly name: "networkId";
4487
- readonly type: "bytes";
4488
- }, {
4489
- readonly internalType: "bytes";
4490
- readonly name: "pubkey";
4491
- readonly type: "bytes";
4492
- }];
4493
- readonly name: "isValidPubkey";
4494
- readonly outputs: readonly [{
4495
- readonly internalType: "bool";
4496
- readonly name: "";
4497
- readonly type: "bool";
4498
- }];
4499
- readonly stateMutability: "view";
4500
- readonly type: "function";
4501
- }, {
4502
- readonly inputs: readonly [{
4503
- readonly internalType: "bytes";
4504
- readonly name: "networkId";
4505
- readonly type: "bytes";
4506
- }, {
4507
- readonly internalType: "bytes";
4508
- readonly name: "tokenId";
4509
- readonly type: "bytes";
4510
- }];
4511
- readonly name: "isValidToken";
4512
- readonly outputs: readonly [{
4513
- readonly internalType: "bool";
4514
- readonly name: "";
4515
- readonly type: "bool";
4516
- }];
4517
- readonly stateMutability: "view";
4518
- readonly type: "function";
4519
4922
  }, {
4520
4923
  readonly inputs: readonly [];
4521
4924
  readonly name: "management";
@@ -4528,32 +4931,22 @@ declare class Router__factory {
4528
4931
  readonly type: "function";
4529
4932
  }, {
4530
4933
  readonly inputs: readonly [{
4531
- readonly internalType: "bytes32";
4532
- readonly name: "pmmId";
4533
- readonly type: "bytes32";
4534
- }];
4535
- readonly name: "numOfPMMAccounts";
4536
- readonly outputs: readonly [{
4537
- readonly internalType: "uint256";
4538
- readonly name: "";
4539
- readonly type: "uint256";
4540
- }];
4541
- readonly stateMutability: "view";
4542
- readonly type: "function";
4543
- }, {
4544
- readonly inputs: readonly [];
4545
- readonly name: "numOfSupportedTokens";
4546
- readonly outputs: readonly [{
4547
- readonly internalType: "uint256";
4548
- readonly name: "";
4549
- readonly type: "uint256";
4934
+ readonly internalType: "bytes32[]";
4935
+ readonly name: "referenceIds";
4936
+ readonly type: "bytes32[]";
4937
+ }, {
4938
+ readonly internalType: "address[]";
4939
+ readonly name: "handlers";
4940
+ readonly type: "address[]";
4550
4941
  }];
4551
- readonly stateMutability: "view";
4942
+ readonly name: "migrate";
4943
+ readonly outputs: readonly [];
4944
+ readonly stateMutability: "nonpayable";
4552
4945
  readonly type: "function";
4553
4946
  }, {
4554
4947
  readonly inputs: readonly [{
4555
4948
  readonly internalType: "bytes32";
4556
- readonly name: "tradeId";
4949
+ readonly name: "referenceId";
4557
4950
  readonly type: "bytes32";
4558
4951
  }, {
4559
4952
  readonly internalType: "bytes";
@@ -4571,12 +4964,16 @@ declare class Router__factory {
4571
4964
  }, {
4572
4965
  readonly inputs: readonly [{
4573
4966
  readonly internalType: "bytes32";
4574
- readonly name: "tradeId";
4967
+ readonly name: "referenceId";
4575
4968
  readonly type: "bytes32";
4576
4969
  }, {
4577
4970
  readonly internalType: "bytes";
4578
4971
  readonly name: "msgError";
4579
4972
  readonly type: "bytes";
4973
+ }, {
4974
+ readonly internalType: "bytes";
4975
+ readonly name: "referenceInfo";
4976
+ readonly type: "bytes";
4580
4977
  }, {
4581
4978
  readonly internalType: "bytes";
4582
4979
  readonly name: "signature";
@@ -4656,17 +5053,83 @@ declare class Router__factory {
4656
5053
  readonly type: "address";
4657
5054
  }, {
4658
5055
  readonly internalType: "bytes";
4659
- readonly name: "fromChain";
5056
+ readonly name: "fromNetwork";
4660
5057
  readonly type: "bytes";
4661
5058
  }, {
4662
5059
  readonly internalType: "bytes";
4663
- readonly name: "toChain";
5060
+ readonly name: "toNetwork";
4664
5061
  readonly type: "bytes";
4665
5062
  }];
4666
5063
  readonly name: "setRoute";
4667
5064
  readonly outputs: readonly [];
4668
5065
  readonly stateMutability: "nonpayable";
4669
5066
  readonly type: "function";
5067
+ }, {
5068
+ readonly inputs: readonly [{
5069
+ readonly internalType: "bytes32";
5070
+ readonly name: "depositId";
5071
+ readonly type: "bytes32";
5072
+ }, {
5073
+ readonly components: readonly [{
5074
+ readonly internalType: "uint256";
5075
+ readonly name: "sessionId";
5076
+ readonly type: "uint256";
5077
+ }, {
5078
+ readonly components: readonly [{
5079
+ readonly internalType: "uint256";
5080
+ readonly name: "amountIn";
5081
+ readonly type: "uint256";
5082
+ }, {
5083
+ readonly internalType: "bytes[3]";
5084
+ readonly name: "fromChain";
5085
+ readonly type: "bytes[3]";
5086
+ }, {
5087
+ readonly internalType: "bytes[3]";
5088
+ readonly name: "toChain";
5089
+ readonly type: "bytes[3]";
5090
+ }];
5091
+ readonly internalType: "struct ITypes.TradeInfo";
5092
+ readonly name: "tradeInfo";
5093
+ readonly type: "tuple";
5094
+ }, {
5095
+ readonly components: readonly [{
5096
+ readonly internalType: "bytes[5]";
5097
+ readonly name: "depositInfo";
5098
+ readonly type: "bytes[5]";
5099
+ }, {
5100
+ readonly internalType: "address";
5101
+ readonly name: "userEphemeralL2Address";
5102
+ readonly type: "address";
5103
+ }, {
5104
+ readonly internalType: "uint64";
5105
+ readonly name: "scriptTimeout";
5106
+ readonly type: "uint64";
5107
+ }];
5108
+ readonly internalType: "struct ITypes.ScriptInfo";
5109
+ readonly name: "scriptInfo";
5110
+ readonly type: "tuple";
5111
+ }];
5112
+ readonly internalType: "struct ITypes.TradeData";
5113
+ readonly name: "tradeData";
5114
+ readonly type: "tuple";
5115
+ }, {
5116
+ readonly components: readonly [{
5117
+ readonly internalType: "bytes";
5118
+ readonly name: "refundAddress";
5119
+ readonly type: "bytes";
5120
+ }, {
5121
+ readonly internalType: "bytes[]";
5122
+ readonly name: "presigns";
5123
+ readonly type: "bytes[]";
5124
+ }];
5125
+ readonly internalType: "struct ITypes.RefundPresign";
5126
+ readonly name: "refundPresign";
5127
+ readonly type: "tuple";
5128
+ }];
5129
+ readonly name: "submitDeposit";
5130
+ readonly outputs: readonly [];
5131
+ readonly stateMutability: "nonpayable";
5132
+ readonly type: "function";
4670
5133
  }, {
4671
5134
  readonly inputs: readonly [{
4672
5135
  readonly internalType: "bytes32";
@@ -4767,20 +5230,6 @@ declare class Router__factory {
4767
5230
  readonly outputs: readonly [];
4768
5231
  readonly stateMutability: "nonpayable";
4769
5232
  readonly type: "function";
4770
- }, {
4771
- readonly inputs: readonly [{
4772
- readonly internalType: "address";
4773
- readonly name: "";
4774
- readonly type: "address";
4775
- }];
4776
- readonly name: "version";
4777
- readonly outputs: readonly [{
4778
- readonly internalType: "uint256";
4779
- readonly name: "";
4780
- readonly type: "uint256";
4781
- }];
4782
- readonly stateMutability: "view";
4783
- readonly type: "function";
4784
5233
  }];
4785
5234
  static createInterface(): RouterInterface;
4786
5235
  static connect(address: string, runner?: ContractRunner | null): Router;
@@ -5043,12 +5492,47 @@ type index_ERC20__factory = ERC20__factory;
5043
5492
  declare const index_ERC20__factory: typeof ERC20__factory;
5044
5493
  type index_Payment__factory = Payment__factory;
5045
5494
  declare const index_Payment__factory: typeof Payment__factory;
5495
+ type index_ProtocolFetcherProxy__factory = ProtocolFetcherProxy__factory;
5496
+ declare const index_ProtocolFetcherProxy__factory: typeof ProtocolFetcherProxy__factory;
5046
5497
  type index_Router__factory = Router__factory;
5047
5498
  declare const index_Router__factory: typeof Router__factory;
5048
5499
  type index_Signer__factory = Signer__factory;
5049
5500
  declare const index_Signer__factory: typeof Signer__factory;
5050
5501
  declare namespace index {
5051
- export { index_ERC20__factory as ERC20__factory, index_Payment__factory as Payment__factory, index_Router__factory as Router__factory, index_Signer__factory as Signer__factory };
5502
+ export { index_ERC20__factory as ERC20__factory, index_Payment__factory as Payment__factory, index_ProtocolFetcherProxy__factory as ProtocolFetcherProxy__factory, index_Router__factory as Router__factory, index_Signer__factory as Signer__factory };
5503
+ }
5504
+
5505
+ declare namespace ITypes {
5506
+ type MPCInfoStruct = ITypes$2.MPCInfoStruct;
5507
+ type MPCInfoStructOutput = ITypes$2.MPCInfoStructOutput;
5508
+ type TokenInfoStruct = ITypes$2.TokenInfoStruct;
5509
+ type TokenInfoStructOutput = ITypes$2.TokenInfoStructOutput;
5510
+ type RFQInfoStruct = ITypes$1.RFQInfoStruct;
5511
+ type RFQInfoStructOutput = ITypes$1.RFQInfoStructOutput;
5512
+ type BundlePaymentStruct = ITypes$1.BundlePaymentStruct;
5513
+ type BundlePaymentStructOutput = ITypes$1.BundlePaymentStructOutput;
5514
+ type AffiliateStruct = ITypes$1.AffiliateStruct;
5515
+ type AffiliateStructOutput = ITypes$1.AffiliateStructOutput;
5516
+ type FailureDetailsStruct = ITypes$1.FailureDetailsStruct;
5517
+ type FailureDetailsStructOutput = ITypes$1.FailureDetailsStructOutput;
5518
+ type FeeDetailsStruct = ITypes$1.FeeDetailsStruct;
5519
+ type FeeDetailsStructOutput = ITypes$1.FeeDetailsStructOutput;
5520
+ type SelectedPMMInfoStruct = ITypes$1.SelectedPMMInfoStruct;
5521
+ type SelectedPMMInfoStructOutput = ITypes$1.SelectedPMMInfoStructOutput;
5522
+ type PMMSelectionStruct = ITypes$1.PMMSelectionStruct;
5523
+ type PMMSelectionStructOutput = ITypes$1.PMMSelectionStructOutput;
5524
+ type RefundPresignStruct = ITypes$1.RefundPresignStruct;
5525
+ type RefundPresignStructOutput = ITypes$1.RefundPresignStructOutput;
5526
+ type SettlementPresignStruct = ITypes$1.SettlementPresignStruct;
5527
+ type SettlementPresignStructOutput = ITypes$1.SettlementPresignStructOutput;
5528
+ type TradeInfoStruct = ITypes$1.TradeInfoStruct;
5529
+ type TradeInfoStructOutput = ITypes$1.TradeInfoStructOutput;
5530
+ type ScriptInfoStruct = ITypes$1.ScriptInfoStruct;
5531
+ type ScriptInfoStructOutput = ITypes$1.ScriptInfoStructOutput;
5532
+ type TradeDataStruct = ITypes$1.TradeDataStruct;
5533
+ type TradeDataStructOutput = ITypes$1.TradeDataStructOutput;
5534
+ type TradeFinalizationStruct = ITypes$1.TradeFinalizationStruct;
5535
+ type TradeFinalizationStructOutput = ITypes$1.TradeFinalizationStructOutput;
5052
5536
  }
5053
5537
 
5054
5538
  declare class RouterService implements ConfigObserver {
@@ -5061,29 +5545,12 @@ declare class RouterService implements ConfigObserver {
5061
5545
  */
5062
5546
  onConfigUpdate(newConfig: AppConfig): void;
5063
5547
  getSigner(): Promise<string>;
5064
- getCurrentPubkey(network: string): Promise<ITypes.MPCInfoStructOutput>;
5065
- getCurrentStage(tradeId: BytesLike): Promise<bigint>;
5066
- getDepositAddressList(tradeId: BytesLike): Promise<BytesLike[]>;
5067
5548
  getHandler(fromChain: BytesLike, toChain: BytesLike): Promise<[string, string]>;
5068
- getPFeeRate(): Promise<bigint>;
5069
5549
  getPMMSelection(tradeId: BytesLike): Promise<ITypes.PMMSelectionStructOutput>;
5070
5550
  getSettlementPresigns(tradeId: BytesLike): Promise<ITypes.SettlementPresignStructOutput[]>;
5071
- getRefundPresigns(tradeId: BytesLike): Promise<ITypes.RefundPresignStructOutput>;
5072
- getProtocolState(): Promise<bigint>;
5073
5551
  getFeeDetails(tradeId: BytesLike): Promise<ITypes.FeeDetailsStructOutput>;
5074
- getTradeFinalization(tradeId: BytesLike): Promise<ITypes.TradeFinalizationStructOutput>;
5075
- getTokens(fromIdx: bigint, toIdx: bigint): Promise<ITypes.TokenInfoStructOutput[]>;
5076
5552
  getTradeData(tradeId: BytesLike): Promise<ITypes.TradeDataStructOutput>;
5077
- isMPCNode(account: string): Promise<boolean>;
5078
- isSolver(account: string): Promise<boolean>;
5079
- isSuspended(stage: bigint): Promise<boolean>;
5080
- isValidNetwork(networkId: BytesLike): Promise<boolean>;
5081
- isValidPMM(pmmId: BytesLike): Promise<boolean>;
5082
- isValidPMMAccount(pmmId: BytesLike, account: string): Promise<boolean>;
5083
- isValidToken(networkId: BytesLike, tokenId: BytesLike): Promise<boolean>;
5084
5553
  getManagement(): Promise<string>;
5085
- getNumOfSupportedTokens(): Promise<bigint>;
5086
- getVersion(address: string): Promise<bigint>;
5087
5554
  }
5088
5555
  declare const routerService: RouterService;
5089
5556
 
@@ -5114,16 +5581,16 @@ declare const SubmitSettlementRequestSchema: z.ZodObject<{
5114
5581
  signedAt: z.ZodNumber;
5115
5582
  }, "strip", z.ZodTypeAny, {
5116
5583
  signature: string;
5584
+ pmmId: string;
5117
5585
  tradeIds: string[];
5118
5586
  signedAt: number;
5119
- pmmId: string;
5120
5587
  settlementTx: string;
5121
5588
  startIndex: number;
5122
5589
  }, {
5123
5590
  signature: string;
5591
+ pmmId: string;
5124
5592
  tradeIds: string[];
5125
5593
  signedAt: number;
5126
- pmmId: string;
5127
5594
  settlementTx: string;
5128
5595
  startIndex: number;
5129
5596
  }>;
@@ -5233,16 +5700,16 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
5233
5700
  signedAt: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5234
5701
  }, "strip", z.ZodTypeAny, {
5235
5702
  signature: string;
5703
+ pmmId: string;
5236
5704
  tradeIds: string[] | null;
5237
5705
  signedAt: number;
5238
- pmmId: string;
5239
5706
  settlementTx: string;
5240
5707
  startIndex: number;
5241
5708
  }, {
5242
5709
  tradeIds: string[] | null;
5243
5710
  signature?: string | undefined;
5244
- signedAt?: number | undefined;
5245
5711
  pmmId?: string | undefined;
5712
+ signedAt?: number | undefined;
5246
5713
  settlementTx?: string | undefined;
5247
5714
  startIndex?: number | undefined;
5248
5715
  }>;
@@ -5306,9 +5773,9 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
5306
5773
  depositVault: string;
5307
5774
  paymentBundle: {
5308
5775
  signature: string;
5776
+ pmmId: string;
5309
5777
  tradeIds: string[] | null;
5310
5778
  signedAt: number;
5311
- pmmId: string;
5312
5779
  settlementTx: string;
5313
5780
  startIndex: number;
5314
5781
  };
@@ -5370,8 +5837,8 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
5370
5837
  paymentBundle: {
5371
5838
  tradeIds: string[] | null;
5372
5839
  signature?: string | undefined;
5373
- signedAt?: number | undefined;
5374
5840
  pmmId?: string | undefined;
5841
+ signedAt?: number | undefined;
5375
5842
  settlementTx?: string | undefined;
5376
5843
  startIndex?: number | undefined;
5377
5844
  };
@@ -5435,9 +5902,9 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
5435
5902
  depositVault: string;
5436
5903
  paymentBundle: {
5437
5904
  signature: string;
5905
+ pmmId: string;
5438
5906
  tradeIds: string[] | null;
5439
5907
  signedAt: number;
5440
- pmmId: string;
5441
5908
  settlementTx: string;
5442
5909
  startIndex: number;
5443
5910
  };
@@ -5502,8 +5969,8 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
5502
5969
  paymentBundle: {
5503
5970
  tradeIds: string[] | null;
5504
5971
  signature?: string | undefined;
5505
- signedAt?: number | undefined;
5506
5972
  pmmId?: string | undefined;
5973
+ signedAt?: number | undefined;
5507
5974
  settlementTx?: string | undefined;
5508
5975
  startIndex?: number | undefined;
5509
5976
  };
@@ -5687,4 +6154,4 @@ declare function camelToSnakeCase(str: string): string;
5687
6154
  declare const ensureHexPrefix: (value: string) => string;
5688
6155
  declare const removeHexPrefix: (value: string) => string;
5689
6156
 
5690
- export { type AppConfig, type ConfigObserver, type ERC20, ERC20__factory, type Environment, type EnvironmentConfig, ITypes, type Payment, Payment__factory, type Router, RouterService, Router__factory, SDK, SignatureType, type Signer, SignerService, Signer__factory, SolverService, type Token, TokenSchema, TokenService, camelToSnakeCase, config, confirmDepositType, confirmPaymentType, confirmSettlementType, convertToCamelCase, convertToSnakeCase, ensureHexPrefix, index as factories, getCommitInfoHash, getMakePaymentHash, getSignature, getSigner, getTradeIdsHash, makePaymentType, presignType, removeHexPrefix, rfqAuthenticationTypes, routerService, sdk, selectionType, signerService, snakeToCamelCase, solverService, tokenService };
6157
+ export { type AppConfig, type ConfigObserver, type ERC20, ERC20__factory, type Environment, type EnvironmentConfig, ITypes, type Payment, Payment__factory, type ProtocolFetcherProxy, ProtocolFetcherProxy__factory, type Router, RouterService, Router__factory, SDK, SignatureType, type Signer, SignerService, Signer__factory, SolverService, type Token, TokenSchema, TokenService, camelToSnakeCase, config, confirmDepositType, confirmPaymentType, confirmSettlementType, convertToCamelCase, convertToSnakeCase, ensureHexPrefix, index as factories, getCommitInfoHash, getMakePaymentHash, getSignature, getSigner, getTradeIdsHash, makePaymentType, presignType, removeHexPrefix, rfqAuthenticationTypes, routerService, sdk, selectionType, signerService, snakeToCamelCase, solverService, tokenService };