@optimex-xyz/market-maker-sdk 0.7.0-staging-742ccfb → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -7,7 +7,6 @@ interface EnvironmentConfig {
7
7
  rpcUrl: string;
8
8
  routerAddress: string;
9
9
  paymentAddressMap: Record<string, string>;
10
- protocolFetcherProxyAddress: string;
11
10
  }
12
11
  interface AppConfig extends EnvironmentConfig {
13
12
  env: Environment;
@@ -39,7 +38,6 @@ declare class Config {
39
38
  getRpcUrl(): string;
40
39
  getRouterAddress(): string;
41
40
  getPaymentAddress(networkId: string): string | undefined;
42
- getProtocolFetcherAddress(): string;
43
41
  }
44
42
  declare const config: Config;
45
43
 
@@ -1102,283 +1100,7 @@ interface Payment extends BaseContract {
1102
1100
  };
1103
1101
  }
1104
1102
 
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
- };
1103
+ declare namespace ITypes {
1382
1104
  type BundlePaymentStruct = {
1383
1105
  tradeIds: BytesLike[];
1384
1106
  signedAt: BigNumberish;
@@ -1441,6 +1163,37 @@ declare namespace ITypes$1 {
1441
1163
  pFeeRate: bigint;
1442
1164
  aFeeRate: bigint;
1443
1165
  };
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
+ };
1444
1197
  type SelectedPMMInfoStruct = {
1445
1198
  amountOut: BigNumberish;
1446
1199
  selectedPMMId: BytesLike;
@@ -1459,15 +1212,15 @@ declare namespace ITypes$1 {
1459
1212
  sigExpiry: bigint;
1460
1213
  };
1461
1214
  type PMMSelectionStruct = {
1462
- rfqInfo: ITypes$1.RFQInfoStruct;
1463
- pmmInfo: ITypes$1.SelectedPMMInfoStruct;
1215
+ rfqInfo: ITypes.RFQInfoStruct;
1216
+ pmmInfo: ITypes.SelectedPMMInfoStruct;
1464
1217
  };
1465
1218
  type PMMSelectionStructOutput = [
1466
- rfqInfo: ITypes$1.RFQInfoStructOutput,
1467
- pmmInfo: ITypes$1.SelectedPMMInfoStructOutput
1219
+ rfqInfo: ITypes.RFQInfoStructOutput,
1220
+ pmmInfo: ITypes.SelectedPMMInfoStructOutput
1468
1221
  ] & {
1469
- rfqInfo: ITypes$1.RFQInfoStructOutput;
1470
- pmmInfo: ITypes$1.SelectedPMMInfoStructOutput;
1222
+ rfqInfo: ITypes.RFQInfoStructOutput;
1223
+ pmmInfo: ITypes.SelectedPMMInfoStructOutput;
1471
1224
  };
1472
1225
  type RefundPresignStruct = {
1473
1226
  refundAddress: BytesLike;
@@ -1494,12 +1247,23 @@ declare namespace ITypes$1 {
1494
1247
  pmmRecvAddress: string;
1495
1248
  presigns: string[];
1496
1249
  };
1497
- type TradeInfoStruct = {
1498
- amountIn: BigNumberish;
1499
- fromChain: [BytesLike, BytesLike, BytesLike];
1500
- toChain: [BytesLike, BytesLike, BytesLike];
1501
- };
1502
- type TradeInfoStructOutput = [
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
+ type TradeInfoStruct = {
1262
+ amountIn: BigNumberish;
1263
+ fromChain: [BytesLike, BytesLike, BytesLike];
1264
+ toChain: [BytesLike, BytesLike, BytesLike];
1265
+ };
1266
+ type TradeInfoStructOutput = [
1503
1267
  amountIn: bigint,
1504
1268
  fromChain: [string, string, string],
1505
1269
  toChain: [string, string, string]
@@ -1524,17 +1288,17 @@ declare namespace ITypes$1 {
1524
1288
  };
1525
1289
  type TradeDataStruct = {
1526
1290
  sessionId: BigNumberish;
1527
- tradeInfo: ITypes$1.TradeInfoStruct;
1528
- scriptInfo: ITypes$1.ScriptInfoStruct;
1291
+ tradeInfo: ITypes.TradeInfoStruct;
1292
+ scriptInfo: ITypes.ScriptInfoStruct;
1529
1293
  };
1530
1294
  type TradeDataStructOutput = [
1531
1295
  sessionId: bigint,
1532
- tradeInfo: ITypes$1.TradeInfoStructOutput,
1533
- scriptInfo: ITypes$1.ScriptInfoStructOutput
1296
+ tradeInfo: ITypes.TradeInfoStructOutput,
1297
+ scriptInfo: ITypes.ScriptInfoStructOutput
1534
1298
  ] & {
1535
1299
  sessionId: bigint;
1536
- tradeInfo: ITypes$1.TradeInfoStructOutput;
1537
- scriptInfo: ITypes$1.ScriptInfoStructOutput;
1300
+ tradeInfo: ITypes.TradeInfoStructOutput;
1301
+ scriptInfo: ITypes.ScriptInfoStructOutput;
1538
1302
  };
1539
1303
  type TradeFinalizationStruct = {
1540
1304
  bundlerHash: BytesLike;
@@ -1561,118 +1325,137 @@ declare namespace ITypes$1 {
1561
1325
  };
1562
1326
  }
1563
1327
  interface RouterInterface extends Interface {
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;
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;
1566
1330
  encodeFunctionData(functionFragment: "SIGNER", values?: undefined): string;
1567
- encodeFunctionData(functionFragment: "abort", values: [BytesLike, ITypes$1.RFQInfoStruct]): string;
1568
- encodeFunctionData(functionFragment: "bundlePayment", values: [ITypes$1.BundlePaymentStruct]): string;
1331
+ encodeFunctionData(functionFragment: "bundlePayment", values: [ITypes.BundlePaymentStruct]): string;
1569
1332
  encodeFunctionData(functionFragment: "confirmDeposit", values: [BytesLike, BytesLike, BytesLike[]]): string;
1570
1333
  encodeFunctionData(functionFragment: "confirmPayment", values: [BytesLike, BytesLike]): string;
1571
- encodeFunctionData(functionFragment: "confirmPresign", values: [BytesLike, BytesLike]): string;
1572
1334
  encodeFunctionData(functionFragment: "confirmSettlement", values: [BytesLike, BytesLike, BytesLike]): string;
1573
1335
  encodeFunctionData(functionFragment: "getAffiliateInfo", values: [BytesLike]): string;
1574
- encodeFunctionData(functionFragment: "getCurrentEpoch", values: [AddressLike]): string;
1336
+ encodeFunctionData(functionFragment: "getCurrentEpoch", values: [BytesLike, BytesLike]): string;
1575
1337
  encodeFunctionData(functionFragment: "getCurrentStage", values: [BytesLike]): string;
1338
+ encodeFunctionData(functionFragment: "getDepositAddressList", values: [BytesLike]): string;
1576
1339
  encodeFunctionData(functionFragment: "getFailureInfo", values: [BytesLike]): string;
1577
1340
  encodeFunctionData(functionFragment: "getFeeDetails", values: [BytesLike]): string;
1578
1341
  encodeFunctionData(functionFragment: "getHandler", values: [BytesLike, BytesLike]): string;
1579
1342
  encodeFunctionData(functionFragment: "getHandlerOf", values: [BytesLike]): string;
1580
- encodeFunctionData(functionFragment: "getHistoryCount", values: [BytesLike, 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;
1581
1350
  encodeFunctionData(functionFragment: "getPMMSelection", 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;
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;
1586
1355
  encodeFunctionData(functionFragment: "getSettlementPresigns", values: [BytesLike]): string;
1587
- encodeFunctionData(functionFragment: "getSolver", values: [BytesLike]): string;
1356
+ encodeFunctionData(functionFragment: "getTokens", values: [BigNumberish, BigNumberish]): string;
1588
1357
  encodeFunctionData(functionFragment: "getTradeData", values: [BytesLike]): string;
1589
1358
  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;
1590
1367
  encodeFunctionData(functionFragment: "management", values?: undefined): string;
1591
- encodeFunctionData(functionFragment: "migrate", values: [BytesLike[], AddressLike[]]): string;
1368
+ encodeFunctionData(functionFragment: "numOfPMMAccounts", values: [BytesLike]): string;
1369
+ encodeFunctionData(functionFragment: "numOfSupportedTokens", values?: undefined): string;
1592
1370
  encodeFunctionData(functionFragment: "refund", values: [BytesLike, BytesLike, BytesLike]): string;
1593
- encodeFunctionData(functionFragment: "report", values: [BytesLike, BytesLike, BytesLike, BytesLike]): string;
1594
- encodeFunctionData(functionFragment: "selectPMM", values: [BytesLike, ITypes$1.PMMSelectionStruct]): string;
1371
+ encodeFunctionData(functionFragment: "report", values: [BytesLike, BytesLike, BytesLike]): string;
1372
+ encodeFunctionData(functionFragment: "selectPMM", values: [BytesLike, ITypes.PMMSelectionStruct]): string;
1595
1373
  encodeFunctionData(functionFragment: "setManagement", values: [AddressLike]): string;
1596
1374
  encodeFunctionData(functionFragment: "setRoute", values: [AddressLike, BytesLike, BytesLike]): string;
1597
- encodeFunctionData(functionFragment: "submitDeposit", values: [BytesLike, ITypes$1.TradeDataStruct, ITypes$1.RefundPresignStruct]): string;
1598
1375
  encodeFunctionData(functionFragment: "submitTrade", values: [
1599
1376
  BytesLike,
1600
- ITypes$1.TradeDataStruct,
1601
- ITypes$1.AffiliateStruct,
1602
- ITypes$1.SettlementPresignStruct[],
1603
- ITypes$1.RefundPresignStruct
1377
+ ITypes.TradeDataStruct,
1378
+ ITypes.AffiliateStruct,
1379
+ ITypes.SettlementPresignStruct[],
1380
+ ITypes.RefundPresignStruct
1604
1381
  ]): string;
1382
+ encodeFunctionData(functionFragment: "version", values: [AddressLike]): string;
1605
1383
  decodeFunctionResult(functionFragment: "SIGNER", data: BytesLike): Result;
1606
- decodeFunctionResult(functionFragment: "abort", data: BytesLike): Result;
1607
1384
  decodeFunctionResult(functionFragment: "bundlePayment", data: BytesLike): Result;
1608
1385
  decodeFunctionResult(functionFragment: "confirmDeposit", data: BytesLike): Result;
1609
1386
  decodeFunctionResult(functionFragment: "confirmPayment", data: BytesLike): Result;
1610
- decodeFunctionResult(functionFragment: "confirmPresign", data: BytesLike): Result;
1611
1387
  decodeFunctionResult(functionFragment: "confirmSettlement", data: BytesLike): Result;
1612
1388
  decodeFunctionResult(functionFragment: "getAffiliateInfo", data: BytesLike): Result;
1613
1389
  decodeFunctionResult(functionFragment: "getCurrentEpoch", data: BytesLike): Result;
1614
1390
  decodeFunctionResult(functionFragment: "getCurrentStage", data: BytesLike): Result;
1391
+ decodeFunctionResult(functionFragment: "getDepositAddressList", data: BytesLike): Result;
1615
1392
  decodeFunctionResult(functionFragment: "getFailureInfo", data: BytesLike): Result;
1616
1393
  decodeFunctionResult(functionFragment: "getFeeDetails", data: BytesLike): Result;
1617
1394
  decodeFunctionResult(functionFragment: "getHandler", data: BytesLike): Result;
1618
1395
  decodeFunctionResult(functionFragment: "getHandlerOf", data: BytesLike): Result;
1619
- decodeFunctionResult(functionFragment: "getHistoryCount", 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;
1620
1403
  decodeFunctionResult(functionFragment: "getPMMSelection", data: BytesLike): Result;
1621
1404
  decodeFunctionResult(functionFragment: "getPendingTrades", data: BytesLike): Result;
1622
1405
  decodeFunctionResult(functionFragment: "getPendingTradesCount", data: BytesLike): Result;
1623
- decodeFunctionResult(functionFragment: "getRefundPresign", data: BytesLike): Result;
1624
- decodeFunctionResult(functionFragment: "getRegisteredHandlers", data: BytesLike): Result;
1406
+ decodeFunctionResult(functionFragment: "getProtocolState", data: BytesLike): Result;
1407
+ decodeFunctionResult(functionFragment: "getRefundPresigns", data: BytesLike): Result;
1625
1408
  decodeFunctionResult(functionFragment: "getSettlementPresigns", data: BytesLike): Result;
1626
- decodeFunctionResult(functionFragment: "getSolver", data: BytesLike): Result;
1409
+ decodeFunctionResult(functionFragment: "getTokens", data: BytesLike): Result;
1627
1410
  decodeFunctionResult(functionFragment: "getTradeData", data: BytesLike): Result;
1628
1411
  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;
1629
1420
  decodeFunctionResult(functionFragment: "management", data: BytesLike): Result;
1630
- decodeFunctionResult(functionFragment: "migrate", data: BytesLike): Result;
1421
+ decodeFunctionResult(functionFragment: "numOfPMMAccounts", data: BytesLike): Result;
1422
+ decodeFunctionResult(functionFragment: "numOfSupportedTokens", data: BytesLike): Result;
1631
1423
  decodeFunctionResult(functionFragment: "refund", data: BytesLike): Result;
1632
1424
  decodeFunctionResult(functionFragment: "report", data: BytesLike): Result;
1633
1425
  decodeFunctionResult(functionFragment: "selectPMM", data: BytesLike): Result;
1634
1426
  decodeFunctionResult(functionFragment: "setManagement", data: BytesLike): Result;
1635
1427
  decodeFunctionResult(functionFragment: "setRoute", data: BytesLike): Result;
1636
- decodeFunctionResult(functionFragment: "submitDeposit", data: BytesLike): Result;
1637
1428
  decodeFunctionResult(functionFragment: "submitTrade", 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>;
1429
+ decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
1650
1430
  }
1651
1431
  declare namespace ConfirmDepositEvent {
1652
- type InputTuple = [mpc: AddressLike, depositId: BytesLike];
1653
- type OutputTuple = [mpc: string, depositId: string];
1654
- interface OutputObject {
1655
- mpc: string;
1656
- depositId: string;
1657
- }
1658
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
1659
- type Filter = TypedDeferredTopicFilter<Event>;
1660
- type Log = TypedEventLog<Event>;
1661
- type LogDescription = TypedLogDescription<Event>;
1662
- }
1663
- declare namespace ConfirmPaymentEvent {
1664
- type InputTuple = [mpc: AddressLike, tradeId: BytesLike];
1665
- type OutputTuple = [mpc: string, tradeId: string];
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
+ ];
1666
1446
  interface OutputObject {
1667
1447
  mpc: string;
1668
1448
  tradeId: string;
1449
+ pFeeRate: bigint;
1450
+ aFeeRate: bigint;
1451
+ list: string[];
1669
1452
  }
1670
1453
  type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
1671
1454
  type Filter = TypedDeferredTopicFilter<Event>;
1672
1455
  type Log = TypedEventLog<Event>;
1673
1456
  type LogDescription = TypedLogDescription<Event>;
1674
1457
  }
1675
- declare namespace ConfirmPresignEvent {
1458
+ declare namespace ConfirmPaymentEvent {
1676
1459
  type InputTuple = [mpc: AddressLike, tradeId: BytesLike];
1677
1460
  type OutputTuple = [mpc: string, tradeId: string];
1678
1461
  interface OutputObject {
@@ -1749,18 +1532,6 @@ declare namespace SelectPMMEvent {
1749
1532
  type Log = TypedEventLog<Event>;
1750
1533
  type LogDescription = TypedLogDescription<Event>;
1751
1534
  }
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
- }
1764
1535
  declare namespace SubmitTradeInfoEvent {
1765
1536
  type InputTuple = [solver: AddressLike, tradeId: BytesLike];
1766
1537
  type OutputTuple = [solver: string, tradeId: string];
@@ -1776,18 +1547,21 @@ declare namespace SubmitTradeInfoEvent {
1776
1547
  declare namespace UpdatedRouteEvent {
1777
1548
  type InputTuple = [
1778
1549
  handler: AddressLike,
1779
- fromNetwork: BytesLike,
1780
- toNetwork: BytesLike
1550
+ version: BigNumberish,
1551
+ fromChain: BytesLike,
1552
+ toChain: BytesLike
1781
1553
  ];
1782
1554
  type OutputTuple = [
1783
1555
  handler: string,
1784
- fromNetwork: string,
1785
- toNetwork: string
1556
+ version: bigint,
1557
+ fromChain: string,
1558
+ toChain: string
1786
1559
  ];
1787
1560
  interface OutputObject {
1788
1561
  handler: string;
1789
- fromNetwork: string;
1790
- toNetwork: string;
1562
+ version: bigint;
1563
+ fromChain: string;
1564
+ toChain: string;
1791
1565
  }
1792
1566
  type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
1793
1567
  type Filter = TypedDeferredTopicFilter<Event>;
@@ -1808,19 +1582,13 @@ interface Router extends BaseContract {
1808
1582
  listeners(eventName?: string): Promise<Array<Listener>>;
1809
1583
  removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
1810
1584
  SIGNER: TypedContractMethod<[], [string], "view">;
1811
- abort: TypedContractMethod<[
1812
- tradeId: BytesLike,
1813
- rfqInfo: ITypes$1.RFQInfoStruct
1814
- ], [
1815
- void
1816
- ], "nonpayable">;
1817
1585
  bundlePayment: TypedContractMethod<[
1818
- bundle: ITypes$1.BundlePaymentStruct
1586
+ bundle: ITypes.BundlePaymentStruct
1819
1587
  ], [
1820
1588
  void
1821
1589
  ], "nonpayable">;
1822
1590
  confirmDeposit: TypedContractMethod<[
1823
- referenceId: BytesLike,
1591
+ tradeId: BytesLike,
1824
1592
  signature: BytesLike,
1825
1593
  depositFromList: BytesLike[]
1826
1594
  ], [
@@ -1832,12 +1600,6 @@ interface Router extends BaseContract {
1832
1600
  ], [
1833
1601
  void
1834
1602
  ], "nonpayable">;
1835
- confirmPresign: TypedContractMethod<[
1836
- tradeId: BytesLike,
1837
- signature: BytesLike
1838
- ], [
1839
- void
1840
- ], "nonpayable">;
1841
1603
  confirmSettlement: TypedContractMethod<[
1842
1604
  tradeId: BytesLike,
1843
1605
  releaseTxId: BytesLike,
@@ -1846,36 +1608,35 @@ interface Router extends BaseContract {
1846
1608
  void
1847
1609
  ], "nonpayable">;
1848
1610
  getAffiliateInfo: TypedContractMethod<[
1849
- referenceId: BytesLike
1611
+ tradeId: BytesLike
1850
1612
  ], [
1851
- ITypes$1.AffiliateStructOutput
1613
+ ITypes.AffiliateStructOutput
1852
1614
  ], "view">;
1853
1615
  getCurrentEpoch: TypedContractMethod<[
1854
- handler: AddressLike
1616
+ fromChain: BytesLike,
1617
+ toChain: BytesLike
1855
1618
  ], [
1856
1619
  [bigint, bigint, bigint]
1857
1620
  ], "view">;
1858
- getCurrentStage: TypedContractMethod<[
1859
- referenceId: BytesLike
1621
+ getCurrentStage: TypedContractMethod<[tradeId: BytesLike], [bigint], "view">;
1622
+ getDepositAddressList: TypedContractMethod<[
1623
+ tradeId: BytesLike
1860
1624
  ], [
1861
- [bigint, string] & {
1862
- stage: bigint;
1863
- swapType: string;
1864
- }
1625
+ string[]
1865
1626
  ], "view">;
1866
1627
  getFailureInfo: TypedContractMethod<[
1867
- referenceId: BytesLike
1628
+ tradeId: BytesLike
1868
1629
  ], [
1869
- ITypes$1.FailureDetailsStructOutput
1630
+ ITypes.FailureDetailsStructOutput
1870
1631
  ], "view">;
1871
1632
  getFeeDetails: TypedContractMethod<[
1872
- referenceId: BytesLike
1633
+ tradeId: BytesLike
1873
1634
  ], [
1874
- ITypes$1.FeeDetailsStructOutput
1635
+ ITypes.FeeDetailsStructOutput
1875
1636
  ], "view">;
1876
1637
  getHandler: TypedContractMethod<[
1877
- fromNetwork: BytesLike,
1878
- toNetwork: BytesLike
1638
+ fromChain: BytesLike,
1639
+ toChain: BytesLike
1879
1640
  ], [
1880
1641
  [string, string] & {
1881
1642
  handler: string;
@@ -1883,92 +1644,139 @@ interface Router extends BaseContract {
1883
1644
  }
1884
1645
  ], "view">;
1885
1646
  getHandlerOf: TypedContractMethod<[
1886
- referenceId: BytesLike
1647
+ tradeId: BytesLike
1887
1648
  ], [
1888
1649
  [string, string] & {
1889
1650
  handler: string;
1890
1651
  handlerType: string;
1891
1652
  }
1892
1653
  ], "view">;
1893
- getHistoryCount: TypedContractMethod<[
1894
- fromNetwork: BytesLike,
1895
- toNetwork: BytesLike
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
1896
1674
  ], [
1897
1675
  bigint
1898
1676
  ], "view">;
1677
+ getPFeeRate: TypedContractMethod<[], [bigint], "view">;
1678
+ getPMMAccounts: TypedContractMethod<[
1679
+ pmmId: BytesLike,
1680
+ fromIdx: BigNumberish,
1681
+ toIdx: BigNumberish
1682
+ ], [
1683
+ string[]
1684
+ ], "view">;
1899
1685
  getPMMSelection: TypedContractMethod<[
1900
- referenceId: BytesLike
1686
+ tradeId: BytesLike
1901
1687
  ], [
1902
- ITypes$1.PMMSelectionStructOutput
1688
+ ITypes.PMMSelectionStructOutput
1903
1689
  ], "view">;
1904
1690
  getPendingTrades: TypedContractMethod<[
1905
- handler: AddressLike,
1906
1691
  epochNo: BigNumberish,
1907
1692
  fromIdx: BigNumberish,
1908
- toIdx: BigNumberish
1693
+ toIdx: BigNumberish,
1694
+ fromChain: BytesLike,
1695
+ toChain: BytesLike
1909
1696
  ], [
1910
1697
  string[]
1911
1698
  ], "view">;
1912
1699
  getPendingTradesCount: TypedContractMethod<[
1913
- handler: AddressLike,
1914
- epochNo: BigNumberish
1700
+ epochNo: BigNumberish,
1701
+ fromChain: BytesLike,
1702
+ toChain: BytesLike
1915
1703
  ], [
1916
1704
  bigint
1917
1705
  ], "view">;
1918
- getRefundPresign: TypedContractMethod<[
1919
- referenceId: BytesLike
1706
+ getProtocolState: TypedContractMethod<[], [bigint], "view">;
1707
+ getRefundPresigns: TypedContractMethod<[
1708
+ tradeId: BytesLike
1920
1709
  ], [
1921
- ITypes$1.RefundPresignStructOutput
1710
+ ITypes.RefundPresignStructOutput
1922
1711
  ], "view">;
1923
- getRegisteredHandlers: TypedContractMethod<[
1924
- fromIdx: BigNumberish,
1925
- toIdx: BigNumberish,
1926
- fromNetwork: BytesLike,
1927
- toNetwork: BytesLike
1712
+ getSettlementPresigns: TypedContractMethod<[
1713
+ tradeId: BytesLike
1928
1714
  ], [
1929
- string[]
1715
+ ITypes.SettlementPresignStructOutput[]
1930
1716
  ], "view">;
1931
- getSettlementPresigns: TypedContractMethod<[
1932
- referenceId: BytesLike
1717
+ getTokens: TypedContractMethod<[
1718
+ fromIdx: BigNumberish,
1719
+ toIdx: BigNumberish
1933
1720
  ], [
1934
- ITypes$1.SettlementPresignStructOutput[]
1721
+ ITypes.TokenInfoStructOutput[]
1935
1722
  ], "view">;
1936
- getSolver: TypedContractMethod<[referenceId: BytesLike], [string], "view">;
1937
1723
  getTradeData: TypedContractMethod<[
1938
- referenceId: BytesLike
1724
+ tradeId: BytesLike
1939
1725
  ], [
1940
- ITypes$1.TradeDataStructOutput
1726
+ ITypes.TradeDataStructOutput
1941
1727
  ], "view">;
1942
1728
  getTradeFinalization: TypedContractMethod<[
1943
- referenceId: BytesLike
1729
+ tradeId: BytesLike
1944
1730
  ], [
1945
- ITypes$1.TradeFinalizationStructOutput
1731
+ ITypes.TradeFinalizationStructOutput
1946
1732
  ], "view">;
1947
- management: TypedContractMethod<[], [string], "view">;
1948
- migrate: TypedContractMethod<[
1949
- referenceIds: BytesLike[],
1950
- handlers: AddressLike[]
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
1951
1738
  ], [
1952
- void
1953
- ], "nonpayable">;
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
1757
+ ], [
1758
+ boolean
1759
+ ], "view">;
1760
+ management: TypedContractMethod<[], [string], "view">;
1761
+ numOfPMMAccounts: TypedContractMethod<[pmmId: BytesLike], [bigint], "view">;
1762
+ numOfSupportedTokens: TypedContractMethod<[], [bigint], "view">;
1954
1763
  refund: TypedContractMethod<[
1955
- referenceId: BytesLike,
1764
+ tradeId: BytesLike,
1956
1765
  refundTxId: BytesLike,
1957
1766
  signature: BytesLike
1958
1767
  ], [
1959
1768
  void
1960
1769
  ], "nonpayable">;
1961
1770
  report: TypedContractMethod<[
1962
- referenceId: BytesLike,
1771
+ tradeId: BytesLike,
1963
1772
  msgError: BytesLike,
1964
- referenceInfo: BytesLike,
1965
1773
  signature: BytesLike
1966
1774
  ], [
1967
1775
  void
1968
1776
  ], "nonpayable">;
1969
1777
  selectPMM: TypedContractMethod<[
1970
1778
  tradeId: BytesLike,
1971
- info: ITypes$1.PMMSelectionStruct
1779
+ info: ITypes.PMMSelectionStruct
1972
1780
  ], [
1973
1781
  void
1974
1782
  ], "nonpayable">;
@@ -1979,42 +1787,30 @@ interface Router extends BaseContract {
1979
1787
  ], "nonpayable">;
1980
1788
  setRoute: TypedContractMethod<[
1981
1789
  handler: AddressLike,
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
1790
+ fromChain: BytesLike,
1791
+ toChain: BytesLike
1991
1792
  ], [
1992
1793
  void
1993
1794
  ], "nonpayable">;
1994
1795
  submitTrade: TypedContractMethod<[
1995
1796
  tradeId: BytesLike,
1996
- tradeData: ITypes$1.TradeDataStruct,
1997
- affiliateInfo: ITypes$1.AffiliateStruct,
1998
- settlementPresigns: ITypes$1.SettlementPresignStruct[],
1999
- refundPresign: ITypes$1.RefundPresignStruct
1797
+ tradeData: ITypes.TradeDataStruct,
1798
+ affiliateInfo: ITypes.AffiliateStruct,
1799
+ settlementPresigns: ITypes.SettlementPresignStruct[],
1800
+ refundPresign: ITypes.RefundPresignStruct
2000
1801
  ], [
2001
1802
  void
2002
1803
  ], "nonpayable">;
1804
+ version: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
2003
1805
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
2004
1806
  getFunction(nameOrSignature: "SIGNER"): TypedContractMethod<[], [string], "view">;
2005
- getFunction(nameOrSignature: "abort"): TypedContractMethod<[
2006
- tradeId: BytesLike,
2007
- rfqInfo: ITypes$1.RFQInfoStruct
2008
- ], [
2009
- void
2010
- ], "nonpayable">;
2011
1807
  getFunction(nameOrSignature: "bundlePayment"): TypedContractMethod<[
2012
- bundle: ITypes$1.BundlePaymentStruct
1808
+ bundle: ITypes.BundlePaymentStruct
2013
1809
  ], [
2014
1810
  void
2015
1811
  ], "nonpayable">;
2016
1812
  getFunction(nameOrSignature: "confirmDeposit"): TypedContractMethod<[
2017
- referenceId: BytesLike,
1813
+ tradeId: BytesLike,
2018
1814
  signature: BytesLike,
2019
1815
  depositFromList: BytesLike[]
2020
1816
  ], [
@@ -2026,12 +1822,6 @@ interface Router extends BaseContract {
2026
1822
  ], [
2027
1823
  void
2028
1824
  ], "nonpayable">;
2029
- getFunction(nameOrSignature: "confirmPresign"): TypedContractMethod<[
2030
- tradeId: BytesLike,
2031
- signature: BytesLike
2032
- ], [
2033
- void
2034
- ], "nonpayable">;
2035
1825
  getFunction(nameOrSignature: "confirmSettlement"): TypedContractMethod<[
2036
1826
  tradeId: BytesLike,
2037
1827
  releaseTxId: BytesLike,
@@ -2040,36 +1830,31 @@ interface Router extends BaseContract {
2040
1830
  void
2041
1831
  ], "nonpayable">;
2042
1832
  getFunction(nameOrSignature: "getAffiliateInfo"): TypedContractMethod<[
2043
- referenceId: BytesLike
1833
+ tradeId: BytesLike
2044
1834
  ], [
2045
- ITypes$1.AffiliateStructOutput
1835
+ ITypes.AffiliateStructOutput
2046
1836
  ], "view">;
2047
1837
  getFunction(nameOrSignature: "getCurrentEpoch"): TypedContractMethod<[
2048
- handler: AddressLike
1838
+ fromChain: BytesLike,
1839
+ toChain: BytesLike
2049
1840
  ], [
2050
1841
  [bigint, bigint, bigint]
2051
1842
  ], "view">;
2052
- getFunction(nameOrSignature: "getCurrentStage"): TypedContractMethod<[
2053
- referenceId: BytesLike
2054
- ], [
2055
- [bigint, string] & {
2056
- stage: bigint;
2057
- swapType: string;
2058
- }
2059
- ], "view">;
1843
+ getFunction(nameOrSignature: "getCurrentStage"): TypedContractMethod<[tradeId: BytesLike], [bigint], "view">;
1844
+ getFunction(nameOrSignature: "getDepositAddressList"): TypedContractMethod<[tradeId: BytesLike], [string[]], "view">;
2060
1845
  getFunction(nameOrSignature: "getFailureInfo"): TypedContractMethod<[
2061
- referenceId: BytesLike
1846
+ tradeId: BytesLike
2062
1847
  ], [
2063
- ITypes$1.FailureDetailsStructOutput
1848
+ ITypes.FailureDetailsStructOutput
2064
1849
  ], "view">;
2065
1850
  getFunction(nameOrSignature: "getFeeDetails"): TypedContractMethod<[
2066
- referenceId: BytesLike
1851
+ tradeId: BytesLike
2067
1852
  ], [
2068
- ITypes$1.FeeDetailsStructOutput
1853
+ ITypes.FeeDetailsStructOutput
2069
1854
  ], "view">;
2070
1855
  getFunction(nameOrSignature: "getHandler"): TypedContractMethod<[
2071
- fromNetwork: BytesLike,
2072
- toNetwork: BytesLike
1856
+ fromChain: BytesLike,
1857
+ toChain: BytesLike
2073
1858
  ], [
2074
1859
  [string, string] & {
2075
1860
  handler: string;
@@ -2077,140 +1862,166 @@ interface Router extends BaseContract {
2077
1862
  }
2078
1863
  ], "view">;
2079
1864
  getFunction(nameOrSignature: "getHandlerOf"): TypedContractMethod<[
2080
- referenceId: BytesLike
1865
+ tradeId: BytesLike
2081
1866
  ], [
2082
1867
  [string, string] & {
2083
1868
  handler: string;
2084
1869
  handlerType: string;
2085
1870
  }
2086
1871
  ], "view">;
2087
- getFunction(nameOrSignature: "getHistoryCount"): TypedContractMethod<[
2088
- fromNetwork: BytesLike,
2089
- toNetwork: BytesLike
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
2090
1888
  ], [
2091
1889
  bigint
2092
1890
  ], "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">;
2093
1899
  getFunction(nameOrSignature: "getPMMSelection"): TypedContractMethod<[
2094
- referenceId: BytesLike
1900
+ tradeId: BytesLike
2095
1901
  ], [
2096
- ITypes$1.PMMSelectionStructOutput
1902
+ ITypes.PMMSelectionStructOutput
2097
1903
  ], "view">;
2098
1904
  getFunction(nameOrSignature: "getPendingTrades"): TypedContractMethod<[
2099
- handler: AddressLike,
2100
1905
  epochNo: BigNumberish,
2101
1906
  fromIdx: BigNumberish,
2102
- toIdx: BigNumberish
1907
+ toIdx: BigNumberish,
1908
+ fromChain: BytesLike,
1909
+ toChain: BytesLike
2103
1910
  ], [
2104
1911
  string[]
2105
1912
  ], "view">;
2106
1913
  getFunction(nameOrSignature: "getPendingTradesCount"): TypedContractMethod<[
2107
- handler: AddressLike,
2108
- epochNo: BigNumberish
1914
+ epochNo: BigNumberish,
1915
+ fromChain: BytesLike,
1916
+ toChain: BytesLike
2109
1917
  ], [
2110
1918
  bigint
2111
1919
  ], "view">;
2112
- getFunction(nameOrSignature: "getRefundPresign"): TypedContractMethod<[
2113
- referenceId: BytesLike
1920
+ getFunction(nameOrSignature: "getProtocolState"): TypedContractMethod<[], [bigint], "view">;
1921
+ getFunction(nameOrSignature: "getRefundPresigns"): TypedContractMethod<[
1922
+ tradeId: BytesLike
2114
1923
  ], [
2115
- ITypes$1.RefundPresignStructOutput
1924
+ ITypes.RefundPresignStructOutput
2116
1925
  ], "view">;
2117
- getFunction(nameOrSignature: "getRegisteredHandlers"): TypedContractMethod<[
2118
- fromIdx: BigNumberish,
2119
- toIdx: BigNumberish,
2120
- fromNetwork: BytesLike,
2121
- toNetwork: BytesLike
1926
+ getFunction(nameOrSignature: "getSettlementPresigns"): TypedContractMethod<[
1927
+ tradeId: BytesLike
2122
1928
  ], [
2123
- string[]
1929
+ ITypes.SettlementPresignStructOutput[]
2124
1930
  ], "view">;
2125
- getFunction(nameOrSignature: "getSettlementPresigns"): TypedContractMethod<[
2126
- referenceId: BytesLike
1931
+ getFunction(nameOrSignature: "getTokens"): TypedContractMethod<[
1932
+ fromIdx: BigNumberish,
1933
+ toIdx: BigNumberish
2127
1934
  ], [
2128
- ITypes$1.SettlementPresignStructOutput[]
1935
+ ITypes.TokenInfoStructOutput[]
2129
1936
  ], "view">;
2130
- getFunction(nameOrSignature: "getSolver"): TypedContractMethod<[referenceId: BytesLike], [string], "view">;
2131
1937
  getFunction(nameOrSignature: "getTradeData"): TypedContractMethod<[
2132
- referenceId: BytesLike
1938
+ tradeId: BytesLike
2133
1939
  ], [
2134
- ITypes$1.TradeDataStructOutput
1940
+ ITypes.TradeDataStructOutput
2135
1941
  ], "view">;
2136
1942
  getFunction(nameOrSignature: "getTradeFinalization"): TypedContractMethod<[
2137
- referenceId: BytesLike
1943
+ tradeId: BytesLike
2138
1944
  ], [
2139
- ITypes$1.TradeFinalizationStructOutput
1945
+ ITypes.TradeFinalizationStructOutput
2140
1946
  ], "view">;
2141
- getFunction(nameOrSignature: "management"): TypedContractMethod<[], [string], "view">;
2142
- getFunction(nameOrSignature: "migrate"): TypedContractMethod<[
2143
- referenceIds: BytesLike[],
2144
- handlers: AddressLike[]
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
2145
1955
  ], [
2146
- void
2147
- ], "nonpayable">;
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
1967
+ ], [
1968
+ boolean
1969
+ ], "view">;
1970
+ getFunction(nameOrSignature: "management"): TypedContractMethod<[], [string], "view">;
1971
+ getFunction(nameOrSignature: "numOfPMMAccounts"): TypedContractMethod<[pmmId: BytesLike], [bigint], "view">;
1972
+ getFunction(nameOrSignature: "numOfSupportedTokens"): TypedContractMethod<[], [bigint], "view">;
2148
1973
  getFunction(nameOrSignature: "refund"): TypedContractMethod<[
2149
- referenceId: BytesLike,
1974
+ tradeId: BytesLike,
2150
1975
  refundTxId: BytesLike,
2151
1976
  signature: BytesLike
2152
1977
  ], [
2153
1978
  void
2154
1979
  ], "nonpayable">;
2155
1980
  getFunction(nameOrSignature: "report"): TypedContractMethod<[
2156
- referenceId: BytesLike,
1981
+ tradeId: BytesLike,
2157
1982
  msgError: BytesLike,
2158
- referenceInfo: BytesLike,
2159
1983
  signature: BytesLike
2160
1984
  ], [
2161
1985
  void
2162
1986
  ], "nonpayable">;
2163
1987
  getFunction(nameOrSignature: "selectPMM"): TypedContractMethod<[
2164
1988
  tradeId: BytesLike,
2165
- info: ITypes$1.PMMSelectionStruct
1989
+ info: ITypes.PMMSelectionStruct
2166
1990
  ], [
2167
1991
  void
2168
1992
  ], "nonpayable">;
2169
1993
  getFunction(nameOrSignature: "setManagement"): TypedContractMethod<[newManagement: AddressLike], [void], "nonpayable">;
2170
1994
  getFunction(nameOrSignature: "setRoute"): TypedContractMethod<[
2171
1995
  handler: AddressLike,
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
1996
+ fromChain: BytesLike,
1997
+ toChain: BytesLike
2181
1998
  ], [
2182
1999
  void
2183
2000
  ], "nonpayable">;
2184
2001
  getFunction(nameOrSignature: "submitTrade"): TypedContractMethod<[
2185
2002
  tradeId: BytesLike,
2186
- tradeData: ITypes$1.TradeDataStruct,
2187
- affiliateInfo: ITypes$1.AffiliateStruct,
2188
- settlementPresigns: ITypes$1.SettlementPresignStruct[],
2189
- refundPresign: ITypes$1.RefundPresignStruct
2003
+ tradeData: ITypes.TradeDataStruct,
2004
+ affiliateInfo: ITypes.AffiliateStruct,
2005
+ settlementPresigns: ITypes.SettlementPresignStruct[],
2006
+ refundPresign: ITypes.RefundPresignStruct
2190
2007
  ], [
2191
2008
  void
2192
2009
  ], "nonpayable">;
2193
- getEvent(key: "Abort"): TypedContractEvent<AbortEvent.InputTuple, AbortEvent.OutputTuple, AbortEvent.OutputObject>;
2010
+ getFunction(nameOrSignature: "version"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
2194
2011
  getEvent(key: "ConfirmDeposit"): TypedContractEvent<ConfirmDepositEvent.InputTuple, ConfirmDepositEvent.OutputTuple, ConfirmDepositEvent.OutputObject>;
2195
2012
  getEvent(key: "ConfirmPayment"): TypedContractEvent<ConfirmPaymentEvent.InputTuple, ConfirmPaymentEvent.OutputTuple, ConfirmPaymentEvent.OutputObject>;
2196
- getEvent(key: "ConfirmPresign"): TypedContractEvent<ConfirmPresignEvent.InputTuple, ConfirmPresignEvent.OutputTuple, ConfirmPresignEvent.OutputObject>;
2197
2013
  getEvent(key: "ConfirmRefund"): TypedContractEvent<ConfirmRefundEvent.InputTuple, ConfirmRefundEvent.OutputTuple, ConfirmRefundEvent.OutputObject>;
2198
2014
  getEvent(key: "ConfirmSettlement"): TypedContractEvent<ConfirmSettlementEvent.InputTuple, ConfirmSettlementEvent.OutputTuple, ConfirmSettlementEvent.OutputObject>;
2199
2015
  getEvent(key: "MakePayment"): TypedContractEvent<MakePaymentEvent.InputTuple, MakePaymentEvent.OutputTuple, MakePaymentEvent.OutputObject>;
2200
2016
  getEvent(key: "ReportFailure"): TypedContractEvent<ReportFailureEvent.InputTuple, ReportFailureEvent.OutputTuple, ReportFailureEvent.OutputObject>;
2201
2017
  getEvent(key: "SelectPMM"): TypedContractEvent<SelectPMMEvent.InputTuple, SelectPMMEvent.OutputTuple, SelectPMMEvent.OutputObject>;
2202
- getEvent(key: "SubmitDeposit"): TypedContractEvent<SubmitDepositEvent.InputTuple, SubmitDepositEvent.OutputTuple, SubmitDepositEvent.OutputObject>;
2203
2018
  getEvent(key: "SubmitTradeInfo"): TypedContractEvent<SubmitTradeInfoEvent.InputTuple, SubmitTradeInfoEvent.OutputTuple, SubmitTradeInfoEvent.OutputObject>;
2204
2019
  getEvent(key: "UpdatedRoute"): TypedContractEvent<UpdatedRouteEvent.InputTuple, UpdatedRouteEvent.OutputTuple, UpdatedRouteEvent.OutputObject>;
2205
2020
  filters: {
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>;
2021
+ "ConfirmDeposit(address,bytes32,uint256,uint256,bytes[])": TypedContractEvent<ConfirmDepositEvent.InputTuple, ConfirmDepositEvent.OutputTuple, ConfirmDepositEvent.OutputObject>;
2209
2022
  ConfirmDeposit: TypedContractEvent<ConfirmDepositEvent.InputTuple, ConfirmDepositEvent.OutputTuple, ConfirmDepositEvent.OutputObject>;
2210
2023
  "ConfirmPayment(address,bytes32)": TypedContractEvent<ConfirmPaymentEvent.InputTuple, ConfirmPaymentEvent.OutputTuple, ConfirmPaymentEvent.OutputObject>;
2211
2024
  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>;
2214
2025
  "ConfirmRefund(address,bytes32)": TypedContractEvent<ConfirmRefundEvent.InputTuple, ConfirmRefundEvent.OutputTuple, ConfirmRefundEvent.OutputObject>;
2215
2026
  ConfirmRefund: TypedContractEvent<ConfirmRefundEvent.InputTuple, ConfirmRefundEvent.OutputTuple, ConfirmRefundEvent.OutputObject>;
2216
2027
  "ConfirmSettlement(address,bytes32)": TypedContractEvent<ConfirmSettlementEvent.InputTuple, ConfirmSettlementEvent.OutputTuple, ConfirmSettlementEvent.OutputObject>;
@@ -2221,11 +2032,9 @@ interface Router extends BaseContract {
2221
2032
  ReportFailure: TypedContractEvent<ReportFailureEvent.InputTuple, ReportFailureEvent.OutputTuple, ReportFailureEvent.OutputObject>;
2222
2033
  "SelectPMM(address,bytes32)": TypedContractEvent<SelectPMMEvent.InputTuple, SelectPMMEvent.OutputTuple, SelectPMMEvent.OutputObject>;
2223
2034
  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>;
2226
2035
  "SubmitTradeInfo(address,bytes32)": TypedContractEvent<SubmitTradeInfoEvent.InputTuple, SubmitTradeInfoEvent.OutputTuple, SubmitTradeInfoEvent.OutputObject>;
2227
2036
  SubmitTradeInfo: TypedContractEvent<SubmitTradeInfoEvent.InputTuple, SubmitTradeInfoEvent.OutputTuple, SubmitTradeInfoEvent.OutputObject>;
2228
- "UpdatedRoute(address,bytes,bytes)": TypedContractEvent<UpdatedRouteEvent.InputTuple, UpdatedRouteEvent.OutputTuple, UpdatedRouteEvent.OutputObject>;
2037
+ "UpdatedRoute(address,uint256,bytes,bytes)": TypedContractEvent<UpdatedRouteEvent.InputTuple, UpdatedRouteEvent.OutputTuple, UpdatedRouteEvent.OutputObject>;
2229
2038
  UpdatedRoute: TypedContractEvent<UpdatedRouteEvent.InputTuple, UpdatedRouteEvent.OutputTuple, UpdatedRouteEvent.OutputObject>;
2230
2039
  };
2231
2040
  }
@@ -3454,655 +3263,69 @@ declare class ERC20__factory {
3454
3263
  }, {
3455
3264
  readonly inputs: readonly [];
3456
3265
  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: "";
4028
- readonly type: "address";
4029
- }];
4030
- readonly stateMutability: "view";
4031
- readonly type: "function";
4032
- }, {
4033
- readonly inputs: readonly [];
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";
3266
+ readonly outputs: readonly [];
3267
+ readonly stateMutability: "nonpayable";
4041
3268
  readonly type: "function";
4042
3269
  }, {
4043
3270
  readonly inputs: readonly [{
4044
3271
  readonly internalType: "address";
4045
- readonly name: "newManagement";
3272
+ readonly name: "_newBlacklister";
4046
3273
  readonly type: "address";
4047
3274
  }];
4048
- readonly name: "setProtocolManagement";
3275
+ readonly name: "updateBlacklister";
4049
3276
  readonly outputs: readonly [];
4050
3277
  readonly stateMutability: "nonpayable";
4051
3278
  readonly type: "function";
4052
3279
  }, {
4053
3280
  readonly inputs: readonly [{
4054
3281
  readonly internalType: "address";
4055
- readonly name: "newRouter";
3282
+ readonly name: "_newMasterMinter";
4056
3283
  readonly type: "address";
4057
3284
  }];
4058
- readonly name: "setRouter";
3285
+ readonly name: "updateMasterMinter";
4059
3286
  readonly outputs: readonly [];
4060
3287
  readonly stateMutability: "nonpayable";
4061
3288
  readonly type: "function";
4062
3289
  }, {
4063
3290
  readonly inputs: readonly [{
4064
3291
  readonly internalType: "address";
4065
- readonly name: "newSignerExtension";
3292
+ readonly name: "_newPauser";
4066
3293
  readonly type: "address";
4067
3294
  }];
4068
- readonly name: "setSignerExtension";
3295
+ readonly name: "updatePauser";
4069
3296
  readonly outputs: readonly [];
4070
3297
  readonly stateMutability: "nonpayable";
4071
3298
  readonly type: "function";
4072
3299
  }, {
4073
3300
  readonly inputs: readonly [{
4074
3301
  readonly internalType: "address";
4075
- readonly name: "newRegistry";
3302
+ readonly name: "newRescuer";
4076
3303
  readonly type: "address";
4077
3304
  }];
4078
- readonly name: "setVaultRegistry";
3305
+ readonly name: "updateRescuer";
4079
3306
  readonly outputs: readonly [];
4080
3307
  readonly stateMutability: "nonpayable";
4081
3308
  readonly type: "function";
4082
3309
  }, {
4083
3310
  readonly inputs: readonly [];
4084
- readonly name: "signerExtension";
3311
+ readonly name: "version";
4085
3312
  readonly outputs: readonly [{
4086
- readonly internalType: "contract ISignerExtension";
3313
+ readonly internalType: "string";
4087
3314
  readonly name: "";
4088
- readonly type: "address";
3315
+ readonly type: "string";
4089
3316
  }];
4090
- readonly stateMutability: "view";
3317
+ readonly stateMutability: "pure";
4091
3318
  readonly type: "function";
4092
3319
  }];
4093
- static createInterface(): ProtocolFetcherProxyInterface;
4094
- static connect(address: string, runner?: ContractRunner | null): ProtocolFetcherProxy;
3320
+ static createInterface(): ERC20Interface;
3321
+ static connect(address: string, runner?: ContractRunner | null): ERC20;
4095
3322
  }
4096
3323
 
4097
- declare class Router__factory {
3324
+ declare class Payment__factory {
4098
3325
  static readonly abi: readonly [{
4099
3326
  readonly inputs: readonly [{
4100
- readonly internalType: "contract IManagement";
4101
- readonly name: "management_";
4102
- readonly type: "address";
4103
- }, {
4104
3327
  readonly internalType: "address";
4105
- readonly name: "signer";
3328
+ readonly name: "pAddress";
4106
3329
  readonly type: "address";
4107
3330
  }];
4108
3331
  readonly stateMutability: "nonpayable";
@@ -4113,23 +3336,43 @@ declare class Router__factory {
4113
3336
  readonly type: "error";
4114
3337
  }, {
4115
3338
  readonly inputs: readonly [];
4116
- readonly name: "BundlePaymentEmpty";
3339
+ readonly name: "DeadlineExceeded";
4117
3340
  readonly type: "error";
4118
3341
  }, {
4119
3342
  readonly inputs: readonly [];
4120
- readonly name: "DepositAlreadySubmitted";
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";
4121
3356
  readonly type: "error";
4122
3357
  }, {
4123
3358
  readonly inputs: readonly [];
4124
- readonly name: "LengthMismatch";
3359
+ readonly name: "InvalidPaymentAmount";
4125
3360
  readonly type: "error";
4126
3361
  }, {
4127
3362
  readonly inputs: readonly [];
4128
- readonly name: "RegisteredAlready";
3363
+ readonly name: "NativeCoinNotMatched";
4129
3364
  readonly type: "error";
4130
3365
  }, {
4131
3366
  readonly inputs: readonly [];
4132
- readonly name: "RouteNotSupported";
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";
4133
3376
  readonly type: "error";
4134
3377
  }, {
4135
3378
  readonly inputs: readonly [];
@@ -4138,33 +3381,158 @@ declare class Router__factory {
4138
3381
  }, {
4139
3382
  readonly anonymous: false;
4140
3383
  readonly inputs: readonly [{
3384
+ readonly indexed: true;
3385
+ readonly internalType: "bytes32";
3386
+ readonly name: "tradeId";
3387
+ readonly type: "bytes32";
3388
+ }, {
4141
3389
  readonly indexed: true;
4142
3390
  readonly internalType: "address";
4143
- readonly name: "solver";
3391
+ readonly name: "from";
4144
3392
  readonly type: "address";
4145
3393
  }, {
4146
3394
  readonly indexed: true;
4147
- readonly internalType: "bytes32";
4148
- readonly name: "tradeId";
4149
- readonly type: "bytes32";
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";
4150
3418
  }];
4151
- readonly name: "Abort";
3419
+ readonly name: "PaymentTransferred";
4152
3420
  readonly type: "event";
4153
3421
  }, {
4154
3422
  readonly anonymous: false;
4155
3423
  readonly inputs: readonly [{
4156
3424
  readonly indexed: true;
4157
3425
  readonly internalType: "address";
4158
- readonly name: "mpc";
3426
+ readonly name: "owner";
4159
3427
  readonly type: "address";
4160
3428
  }, {
4161
3429
  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 [{
4162
3438
  readonly internalType: "bytes32";
4163
- readonly name: "depositId";
3439
+ readonly name: "tradeId";
4164
3440
  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";
4165
3461
  }];
4166
- readonly name: "ConfirmDeposit";
4167
- readonly type: "event";
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
+ }];
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";
4168
3536
  }, {
4169
3537
  readonly anonymous: false;
4170
3538
  readonly inputs: readonly [{
@@ -4177,8 +3545,23 @@ declare class Router__factory {
4177
3545
  readonly internalType: "bytes32";
4178
3546
  readonly name: "tradeId";
4179
3547
  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[]";
4180
3563
  }];
4181
- readonly name: "ConfirmPayment";
3564
+ readonly name: "ConfirmDeposit";
4182
3565
  readonly type: "event";
4183
3566
  }, {
4184
3567
  readonly anonymous: false;
@@ -4193,7 +3576,7 @@ declare class Router__factory {
4193
3576
  readonly name: "tradeId";
4194
3577
  readonly type: "bytes32";
4195
3578
  }];
4196
- readonly name: "ConfirmPresign";
3579
+ readonly name: "ConfirmPayment";
4197
3580
  readonly type: "event";
4198
3581
  }, {
4199
3582
  readonly anonymous: false;
@@ -4275,21 +3658,6 @@ declare class Router__factory {
4275
3658
  }];
4276
3659
  readonly name: "SelectPMM";
4277
3660
  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";
4293
3661
  }, {
4294
3662
  readonly anonymous: false;
4295
3663
  readonly inputs: readonly [{
@@ -4312,55 +3680,33 @@ declare class Router__factory {
4312
3680
  readonly internalType: "address";
4313
3681
  readonly name: "handler";
4314
3682
  readonly type: "address";
3683
+ }, {
3684
+ readonly indexed: true;
3685
+ readonly internalType: "uint256";
3686
+ readonly name: "version";
3687
+ readonly type: "uint256";
4315
3688
  }, {
4316
3689
  readonly indexed: false;
4317
3690
  readonly internalType: "bytes";
4318
- readonly name: "fromNetwork";
3691
+ readonly name: "fromChain";
4319
3692
  readonly type: "bytes";
4320
3693
  }, {
4321
3694
  readonly indexed: false;
4322
3695
  readonly internalType: "bytes";
4323
- readonly name: "toNetwork";
3696
+ readonly name: "toChain";
4324
3697
  readonly type: "bytes";
4325
3698
  }];
4326
- readonly name: "UpdatedRoute";
4327
- readonly type: "event";
4328
- }, {
4329
- readonly inputs: readonly [];
4330
- readonly name: "SIGNER";
4331
- readonly outputs: readonly [{
4332
- readonly internalType: "address";
4333
- readonly name: "";
4334
- readonly type: "address";
4335
- }];
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";
3699
+ readonly name: "UpdatedRoute";
3700
+ readonly type: "event";
3701
+ }, {
3702
+ readonly inputs: readonly [];
3703
+ readonly name: "SIGNER";
3704
+ readonly outputs: readonly [{
3705
+ readonly internalType: "address";
3706
+ readonly name: "";
3707
+ readonly type: "address";
4360
3708
  }];
4361
- readonly name: "abort";
4362
- readonly outputs: readonly [];
4363
- readonly stateMutability: "nonpayable";
3709
+ readonly stateMutability: "view";
4364
3710
  readonly type: "function";
4365
3711
  }, {
4366
3712
  readonly inputs: readonly [{
@@ -4396,7 +3742,7 @@ declare class Router__factory {
4396
3742
  }, {
4397
3743
  readonly inputs: readonly [{
4398
3744
  readonly internalType: "bytes32";
4399
- readonly name: "referenceId";
3745
+ readonly name: "tradeId";
4400
3746
  readonly type: "bytes32";
4401
3747
  }, {
4402
3748
  readonly internalType: "bytes";
@@ -4425,20 +3771,6 @@ declare class Router__factory {
4425
3771
  readonly outputs: readonly [];
4426
3772
  readonly stateMutability: "nonpayable";
4427
3773
  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";
4442
3774
  }, {
4443
3775
  readonly inputs: readonly [{
4444
3776
  readonly internalType: "bytes32";
@@ -4460,7 +3792,7 @@ declare class Router__factory {
4460
3792
  }, {
4461
3793
  readonly inputs: readonly [{
4462
3794
  readonly internalType: "bytes32";
4463
- readonly name: "referenceId";
3795
+ readonly name: "tradeId";
4464
3796
  readonly type: "bytes32";
4465
3797
  }];
4466
3798
  readonly name: "getAffiliateInfo";
@@ -4486,9 +3818,13 @@ declare class Router__factory {
4486
3818
  readonly type: "function";
4487
3819
  }, {
4488
3820
  readonly inputs: readonly [{
4489
- readonly internalType: "address";
4490
- readonly name: "handler";
4491
- readonly type: "address";
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";
4492
3828
  }];
4493
3829
  readonly name: "getCurrentEpoch";
4494
3830
  readonly outputs: readonly [{
@@ -4509,25 +3845,35 @@ declare class Router__factory {
4509
3845
  }, {
4510
3846
  readonly inputs: readonly [{
4511
3847
  readonly internalType: "bytes32";
4512
- readonly name: "referenceId";
3848
+ readonly name: "tradeId";
4513
3849
  readonly type: "bytes32";
4514
3850
  }];
4515
3851
  readonly name: "getCurrentStage";
4516
3852
  readonly outputs: readonly [{
4517
3853
  readonly internalType: "uint256";
4518
- readonly name: "stage";
3854
+ readonly name: "";
4519
3855
  readonly type: "uint256";
4520
- }, {
4521
- readonly internalType: "string";
4522
- readonly name: "swapType";
4523
- readonly type: "string";
4524
3856
  }];
4525
3857
  readonly stateMutability: "view";
4526
3858
  readonly type: "function";
4527
3859
  }, {
4528
3860
  readonly inputs: readonly [{
4529
3861
  readonly internalType: "bytes32";
4530
- readonly name: "referenceId";
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";
4531
3877
  readonly type: "bytes32";
4532
3878
  }];
4533
3879
  readonly name: "getFailureInfo";
@@ -4550,7 +3896,7 @@ declare class Router__factory {
4550
3896
  }, {
4551
3897
  readonly inputs: readonly [{
4552
3898
  readonly internalType: "bytes32";
4553
- readonly name: "referenceId";
3899
+ readonly name: "tradeId";
4554
3900
  readonly type: "bytes32";
4555
3901
  }];
4556
3902
  readonly name: "getFeeDetails";
@@ -4585,11 +3931,11 @@ declare class Router__factory {
4585
3931
  }, {
4586
3932
  readonly inputs: readonly [{
4587
3933
  readonly internalType: "bytes";
4588
- readonly name: "fromNetwork";
3934
+ readonly name: "fromChain";
4589
3935
  readonly type: "bytes";
4590
3936
  }, {
4591
3937
  readonly internalType: "bytes";
4592
- readonly name: "toNetwork";
3938
+ readonly name: "toChain";
4593
3939
  readonly type: "bytes";
4594
3940
  }];
4595
3941
  readonly name: "getHandler";
@@ -4607,7 +3953,7 @@ declare class Router__factory {
4607
3953
  }, {
4608
3954
  readonly inputs: readonly [{
4609
3955
  readonly internalType: "bytes32";
4610
- readonly name: "referenceId";
3956
+ readonly name: "tradeId";
4611
3957
  readonly type: "bytes32";
4612
3958
  }];
4613
3959
  readonly name: "getHandlerOf";
@@ -4622,17 +3968,117 @@ declare class Router__factory {
4622
3968
  }];
4623
3969
  readonly stateMutability: "view";
4624
3970
  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";
4625
4061
  }, {
4626
4062
  readonly inputs: readonly [{
4627
4063
  readonly internalType: "bytes";
4628
- readonly name: "fromNetwork";
4064
+ readonly name: "fromChain";
4629
4065
  readonly type: "bytes";
4630
4066
  }, {
4631
4067
  readonly internalType: "bytes";
4632
- readonly name: "toNetwork";
4068
+ readonly name: "toChain";
4633
4069
  readonly type: "bytes";
4634
4070
  }];
4635
- readonly name: "getHistoryCount";
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";
4636
4082
  readonly outputs: readonly [{
4637
4083
  readonly internalType: "uint256";
4638
4084
  readonly name: "";
@@ -4643,7 +4089,29 @@ declare class Router__factory {
4643
4089
  }, {
4644
4090
  readonly inputs: readonly [{
4645
4091
  readonly internalType: "bytes32";
4646
- readonly name: "referenceId";
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";
4647
4115
  readonly type: "bytes32";
4648
4116
  }];
4649
4117
  readonly name: "getPMMSelection";
@@ -4695,10 +4163,6 @@ declare class Router__factory {
4695
4163
  readonly type: "function";
4696
4164
  }, {
4697
4165
  readonly inputs: readonly [{
4698
- readonly internalType: "address";
4699
- readonly name: "handler";
4700
- readonly type: "address";
4701
- }, {
4702
4166
  readonly internalType: "uint256";
4703
4167
  readonly name: "epochNo";
4704
4168
  readonly type: "uint256";
@@ -4710,6 +4174,14 @@ declare class Router__factory {
4710
4174
  readonly internalType: "uint256";
4711
4175
  readonly name: "toIdx";
4712
4176
  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";
4713
4185
  }];
4714
4186
  readonly name: "getPendingTrades";
4715
4187
  readonly outputs: readonly [{
@@ -4721,13 +4193,17 @@ declare class Router__factory {
4721
4193
  readonly type: "function";
4722
4194
  }, {
4723
4195
  readonly inputs: readonly [{
4724
- readonly internalType: "address";
4725
- readonly name: "handler";
4726
- readonly type: "address";
4727
- }, {
4728
4196
  readonly internalType: "uint256";
4729
4197
  readonly name: "epochNo";
4730
4198
  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";
4731
4207
  }];
4732
4208
  readonly name: "getPendingTradesCount";
4733
4209
  readonly outputs: readonly [{
@@ -4737,13 +4213,23 @@ declare class Router__factory {
4737
4213
  }];
4738
4214
  readonly stateMutability: "view";
4739
4215
  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";
4740
4226
  }, {
4741
4227
  readonly inputs: readonly [{
4742
4228
  readonly internalType: "bytes32";
4743
- readonly name: "referenceId";
4229
+ readonly name: "tradeId";
4744
4230
  readonly type: "bytes32";
4745
4231
  }];
4746
- readonly name: "getRefundPresign";
4232
+ readonly name: "getRefundPresigns";
4747
4233
  readonly outputs: readonly [{
4748
4234
  readonly components: readonly [{
4749
4235
  readonly internalType: "bytes";
@@ -4760,36 +4246,10 @@ declare class Router__factory {
4760
4246
  }];
4761
4247
  readonly stateMutability: "view";
4762
4248
  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";
4789
4249
  }, {
4790
4250
  readonly inputs: readonly [{
4791
4251
  readonly internalType: "bytes32";
4792
- readonly name: "referenceId";
4252
+ readonly name: "tradeId";
4793
4253
  readonly type: "bytes32";
4794
4254
  }];
4795
4255
  readonly name: "getSettlementPresigns";
@@ -4815,22 +4275,35 @@ declare class Router__factory {
4815
4275
  readonly type: "function";
4816
4276
  }, {
4817
4277
  readonly inputs: readonly [{
4818
- readonly internalType: "bytes32";
4819
- readonly name: "referenceId";
4820
- readonly type: "bytes32";
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";
4821
4285
  }];
4822
- readonly name: "getSolver";
4286
+ readonly name: "getTokens";
4823
4287
  readonly outputs: readonly [{
4824
- readonly internalType: "address";
4825
- readonly name: "";
4826
- readonly type: "address";
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[]";
4827
4300
  }];
4828
4301
  readonly stateMutability: "view";
4829
4302
  readonly type: "function";
4830
4303
  }, {
4831
4304
  readonly inputs: readonly [{
4832
4305
  readonly internalType: "bytes32";
4833
- readonly name: "referenceId";
4306
+ readonly name: "tradeId";
4834
4307
  readonly type: "bytes32";
4835
4308
  }];
4836
4309
  readonly name: "getTradeData";
@@ -4883,7 +4356,7 @@ declare class Router__factory {
4883
4356
  }, {
4884
4357
  readonly inputs: readonly [{
4885
4358
  readonly internalType: "bytes32";
4886
- readonly name: "referenceId";
4359
+ readonly name: "tradeId";
4887
4360
  readonly type: "bytes32";
4888
4361
  }];
4889
4362
  readonly name: "getTradeFinalization";
@@ -4919,6 +4392,130 @@ declare class Router__factory {
4919
4392
  }];
4920
4393
  readonly stateMutability: "view";
4921
4394
  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";
4922
4519
  }, {
4923
4520
  readonly inputs: readonly [];
4924
4521
  readonly name: "management";
@@ -4931,22 +4528,32 @@ declare class Router__factory {
4931
4528
  readonly type: "function";
4932
4529
  }, {
4933
4530
  readonly inputs: readonly [{
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[]";
4531
+ readonly internalType: "bytes32";
4532
+ readonly name: "pmmId";
4533
+ readonly type: "bytes32";
4941
4534
  }];
4942
- readonly name: "migrate";
4943
- readonly outputs: readonly [];
4944
- readonly stateMutability: "nonpayable";
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";
4550
+ }];
4551
+ readonly stateMutability: "view";
4945
4552
  readonly type: "function";
4946
4553
  }, {
4947
4554
  readonly inputs: readonly [{
4948
4555
  readonly internalType: "bytes32";
4949
- readonly name: "referenceId";
4556
+ readonly name: "tradeId";
4950
4557
  readonly type: "bytes32";
4951
4558
  }, {
4952
4559
  readonly internalType: "bytes";
@@ -4964,16 +4571,12 @@ declare class Router__factory {
4964
4571
  }, {
4965
4572
  readonly inputs: readonly [{
4966
4573
  readonly internalType: "bytes32";
4967
- readonly name: "referenceId";
4574
+ readonly name: "tradeId";
4968
4575
  readonly type: "bytes32";
4969
4576
  }, {
4970
4577
  readonly internalType: "bytes";
4971
4578
  readonly name: "msgError";
4972
4579
  readonly type: "bytes";
4973
- }, {
4974
- readonly internalType: "bytes";
4975
- readonly name: "referenceInfo";
4976
- readonly type: "bytes";
4977
4580
  }, {
4978
4581
  readonly internalType: "bytes";
4979
4582
  readonly name: "signature";
@@ -5053,83 +4656,17 @@ declare class Router__factory {
5053
4656
  readonly type: "address";
5054
4657
  }, {
5055
4658
  readonly internalType: "bytes";
5056
- readonly name: "fromNetwork";
4659
+ readonly name: "fromChain";
5057
4660
  readonly type: "bytes";
5058
4661
  }, {
5059
4662
  readonly internalType: "bytes";
5060
- readonly name: "toNetwork";
4663
+ readonly name: "toChain";
5061
4664
  readonly type: "bytes";
5062
4665
  }];
5063
4666
  readonly name: "setRoute";
5064
4667
  readonly outputs: readonly [];
5065
4668
  readonly stateMutability: "nonpayable";
5066
4669
  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";
5133
4670
  }, {
5134
4671
  readonly inputs: readonly [{
5135
4672
  readonly internalType: "bytes32";
@@ -5230,6 +4767,20 @@ declare class Router__factory {
5230
4767
  readonly outputs: readonly [];
5231
4768
  readonly stateMutability: "nonpayable";
5232
4769
  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";
5233
4784
  }];
5234
4785
  static createInterface(): RouterInterface;
5235
4786
  static connect(address: string, runner?: ContractRunner | null): Router;
@@ -5492,47 +5043,12 @@ type index_ERC20__factory = ERC20__factory;
5492
5043
  declare const index_ERC20__factory: typeof ERC20__factory;
5493
5044
  type index_Payment__factory = Payment__factory;
5494
5045
  declare const index_Payment__factory: typeof Payment__factory;
5495
- type index_ProtocolFetcherProxy__factory = ProtocolFetcherProxy__factory;
5496
- declare const index_ProtocolFetcherProxy__factory: typeof ProtocolFetcherProxy__factory;
5497
5046
  type index_Router__factory = Router__factory;
5498
5047
  declare const index_Router__factory: typeof Router__factory;
5499
5048
  type index_Signer__factory = Signer__factory;
5500
5049
  declare const index_Signer__factory: typeof Signer__factory;
5501
5050
  declare namespace index {
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;
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 };
5536
5052
  }
5537
5053
 
5538
5054
  declare class RouterService implements ConfigObserver {
@@ -5545,12 +5061,29 @@ declare class RouterService implements ConfigObserver {
5545
5061
  */
5546
5062
  onConfigUpdate(newConfig: AppConfig): void;
5547
5063
  getSigner(): Promise<string>;
5064
+ getCurrentPubkey(network: string): Promise<ITypes.MPCInfoStructOutput>;
5065
+ getCurrentStage(tradeId: BytesLike): Promise<bigint>;
5066
+ getDepositAddressList(tradeId: BytesLike): Promise<BytesLike[]>;
5548
5067
  getHandler(fromChain: BytesLike, toChain: BytesLike): Promise<[string, string]>;
5068
+ getPFeeRate(): Promise<bigint>;
5549
5069
  getPMMSelection(tradeId: BytesLike): Promise<ITypes.PMMSelectionStructOutput>;
5550
5070
  getSettlementPresigns(tradeId: BytesLike): Promise<ITypes.SettlementPresignStructOutput[]>;
5071
+ getRefundPresigns(tradeId: BytesLike): Promise<ITypes.RefundPresignStructOutput>;
5072
+ getProtocolState(): Promise<bigint>;
5551
5073
  getFeeDetails(tradeId: BytesLike): Promise<ITypes.FeeDetailsStructOutput>;
5074
+ getTradeFinalization(tradeId: BytesLike): Promise<ITypes.TradeFinalizationStructOutput>;
5075
+ getTokens(fromIdx: bigint, toIdx: bigint): Promise<ITypes.TokenInfoStructOutput[]>;
5552
5076
  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>;
5553
5084
  getManagement(): Promise<string>;
5085
+ getNumOfSupportedTokens(): Promise<bigint>;
5086
+ getVersion(address: string): Promise<bigint>;
5554
5087
  }
5555
5088
  declare const routerService: RouterService;
5556
5089
 
@@ -5581,16 +5114,16 @@ declare const SubmitSettlementRequestSchema: z.ZodObject<{
5581
5114
  signedAt: z.ZodNumber;
5582
5115
  }, "strip", z.ZodTypeAny, {
5583
5116
  signature: string;
5584
- pmmId: string;
5585
5117
  tradeIds: string[];
5586
5118
  signedAt: number;
5119
+ pmmId: string;
5587
5120
  settlementTx: string;
5588
5121
  startIndex: number;
5589
5122
  }, {
5590
5123
  signature: string;
5591
- pmmId: string;
5592
5124
  tradeIds: string[];
5593
5125
  signedAt: number;
5126
+ pmmId: string;
5594
5127
  settlementTx: string;
5595
5128
  startIndex: number;
5596
5129
  }>;
@@ -5700,16 +5233,16 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
5700
5233
  signedAt: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5701
5234
  }, "strip", z.ZodTypeAny, {
5702
5235
  signature: string;
5703
- pmmId: string;
5704
5236
  tradeIds: string[] | null;
5705
5237
  signedAt: number;
5238
+ pmmId: string;
5706
5239
  settlementTx: string;
5707
5240
  startIndex: number;
5708
5241
  }, {
5709
5242
  tradeIds: string[] | null;
5710
5243
  signature?: string | undefined;
5711
- pmmId?: string | undefined;
5712
5244
  signedAt?: number | undefined;
5245
+ pmmId?: string | undefined;
5713
5246
  settlementTx?: string | undefined;
5714
5247
  startIndex?: number | undefined;
5715
5248
  }>;
@@ -5773,9 +5306,9 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
5773
5306
  depositVault: string;
5774
5307
  paymentBundle: {
5775
5308
  signature: string;
5776
- pmmId: string;
5777
5309
  tradeIds: string[] | null;
5778
5310
  signedAt: number;
5311
+ pmmId: string;
5779
5312
  settlementTx: string;
5780
5313
  startIndex: number;
5781
5314
  };
@@ -5837,8 +5370,8 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
5837
5370
  paymentBundle: {
5838
5371
  tradeIds: string[] | null;
5839
5372
  signature?: string | undefined;
5840
- pmmId?: string | undefined;
5841
5373
  signedAt?: number | undefined;
5374
+ pmmId?: string | undefined;
5842
5375
  settlementTx?: string | undefined;
5843
5376
  startIndex?: number | undefined;
5844
5377
  };
@@ -5902,9 +5435,9 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
5902
5435
  depositVault: string;
5903
5436
  paymentBundle: {
5904
5437
  signature: string;
5905
- pmmId: string;
5906
5438
  tradeIds: string[] | null;
5907
5439
  signedAt: number;
5440
+ pmmId: string;
5908
5441
  settlementTx: string;
5909
5442
  startIndex: number;
5910
5443
  };
@@ -5969,8 +5502,8 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
5969
5502
  paymentBundle: {
5970
5503
  tradeIds: string[] | null;
5971
5504
  signature?: string | undefined;
5972
- pmmId?: string | undefined;
5973
5505
  signedAt?: number | undefined;
5506
+ pmmId?: string | undefined;
5974
5507
  settlementTx?: string | undefined;
5975
5508
  startIndex?: number | undefined;
5976
5509
  };
@@ -6154,4 +5687,4 @@ declare function camelToSnakeCase(str: string): string;
6154
5687
  declare const ensureHexPrefix: (value: string) => string;
6155
5688
  declare const removeHexPrefix: (value: string) => string;
6156
5689
 
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 };
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 };