@optimex-xyz/market-maker-sdk 0.7.0 → 0.8.0-dev-91a0821
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/README.md +17 -4
- package/dist/index.d.mts +1406 -909
- package/dist/index.d.ts +1406 -909
- package/dist/index.js +1212 -889
- package/dist/index.mjs +985 -663
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ interface EnvironmentConfig {
|
|
|
7
7
|
rpcUrl: string;
|
|
8
8
|
routerAddress: string;
|
|
9
9
|
paymentAddressMap: Record<string, string>;
|
|
10
|
+
protocolFetcherProxyAddress: string;
|
|
10
11
|
}
|
|
11
12
|
interface AppConfig extends EnvironmentConfig {
|
|
12
13
|
env: Environment;
|
|
@@ -38,6 +39,7 @@ declare class Config {
|
|
|
38
39
|
getRpcUrl(): string;
|
|
39
40
|
getRouterAddress(): string;
|
|
40
41
|
getPaymentAddress(networkId: string): string | undefined;
|
|
42
|
+
getProtocolFetcherAddress(): string;
|
|
41
43
|
}
|
|
42
44
|
declare const config: Config;
|
|
43
45
|
|
|
@@ -1100,7 +1102,283 @@ interface Payment extends BaseContract {
|
|
|
1100
1102
|
};
|
|
1101
1103
|
}
|
|
1102
1104
|
|
|
1103
|
-
declare namespace ITypes {
|
|
1105
|
+
declare namespace ITypes$2 {
|
|
1106
|
+
type MPCInfoStruct = {
|
|
1107
|
+
mpcL2Address: AddressLike;
|
|
1108
|
+
expireTime: BigNumberish;
|
|
1109
|
+
mpcL2Pubkey: BytesLike;
|
|
1110
|
+
mpcAssetPubkey: BytesLike;
|
|
1111
|
+
};
|
|
1112
|
+
type MPCInfoStructOutput = [
|
|
1113
|
+
mpcL2Address: string,
|
|
1114
|
+
expireTime: bigint,
|
|
1115
|
+
mpcL2Pubkey: string,
|
|
1116
|
+
mpcAssetPubkey: string
|
|
1117
|
+
] & {
|
|
1118
|
+
mpcL2Address: string;
|
|
1119
|
+
expireTime: bigint;
|
|
1120
|
+
mpcL2Pubkey: string;
|
|
1121
|
+
mpcAssetPubkey: string;
|
|
1122
|
+
};
|
|
1123
|
+
type TokenInfoStruct = {
|
|
1124
|
+
info: [BytesLike, BytesLike, BytesLike, BytesLike, BytesLike];
|
|
1125
|
+
decimals: BigNumberish;
|
|
1126
|
+
};
|
|
1127
|
+
type TokenInfoStructOutput = [
|
|
1128
|
+
info: [string, string, string, string, string],
|
|
1129
|
+
decimals: bigint
|
|
1130
|
+
] & {
|
|
1131
|
+
info: [string, string, string, string, string];
|
|
1132
|
+
decimals: bigint;
|
|
1133
|
+
};
|
|
1134
|
+
}
|
|
1135
|
+
interface ProtocolFetcherProxyInterface extends Interface {
|
|
1136
|
+
getFunction(nameOrSignature: "getLatestMPCInfo" | "getMPCInfo" | "getManagementOwner" | "getPFeeRate" | "getPMMAccounts" | "getProtocolState" | "getTokens" | "getVault" | "isMPCNode" | "isSolver" | "isValidNetwork" | "isValidPMM" | "isValidPMMAccount" | "isValidPubkey" | "isValidToken" | "numOfPMMAccounts" | "numOfSupportedTokens" | "pManagement" | "registry" | "router" | "setProtocolManagement" | "setRouter" | "setSignerExtension" | "setVaultRegistry" | "signerExtension"): FunctionFragment;
|
|
1137
|
+
encodeFunctionData(functionFragment: "getLatestMPCInfo", values: [BytesLike]): string;
|
|
1138
|
+
encodeFunctionData(functionFragment: "getMPCInfo", values: [BytesLike, BytesLike]): string;
|
|
1139
|
+
encodeFunctionData(functionFragment: "getManagementOwner", values?: undefined): string;
|
|
1140
|
+
encodeFunctionData(functionFragment: "getPFeeRate", values: [[BytesLike, BytesLike, BytesLike, BytesLike]]): string;
|
|
1141
|
+
encodeFunctionData(functionFragment: "getPMMAccounts", values: [BytesLike, BigNumberish, BigNumberish]): string;
|
|
1142
|
+
encodeFunctionData(functionFragment: "getProtocolState", values?: undefined): string;
|
|
1143
|
+
encodeFunctionData(functionFragment: "getTokens", values: [BigNumberish, BigNumberish]): string;
|
|
1144
|
+
encodeFunctionData(functionFragment: "getVault", values: [BytesLike, BytesLike]): string;
|
|
1145
|
+
encodeFunctionData(functionFragment: "isMPCNode", values: [AddressLike]): string;
|
|
1146
|
+
encodeFunctionData(functionFragment: "isSolver", values: [AddressLike]): string;
|
|
1147
|
+
encodeFunctionData(functionFragment: "isValidNetwork", values: [BytesLike]): string;
|
|
1148
|
+
encodeFunctionData(functionFragment: "isValidPMM", values: [BytesLike]): string;
|
|
1149
|
+
encodeFunctionData(functionFragment: "isValidPMMAccount", values: [BytesLike, AddressLike]): string;
|
|
1150
|
+
encodeFunctionData(functionFragment: "isValidPubkey", values: [BytesLike, BytesLike]): string;
|
|
1151
|
+
encodeFunctionData(functionFragment: "isValidToken", values: [BytesLike, BytesLike]): string;
|
|
1152
|
+
encodeFunctionData(functionFragment: "numOfPMMAccounts", values: [BytesLike]): string;
|
|
1153
|
+
encodeFunctionData(functionFragment: "numOfSupportedTokens", values?: undefined): string;
|
|
1154
|
+
encodeFunctionData(functionFragment: "pManagement", values?: undefined): string;
|
|
1155
|
+
encodeFunctionData(functionFragment: "registry", values?: undefined): string;
|
|
1156
|
+
encodeFunctionData(functionFragment: "router", values?: undefined): string;
|
|
1157
|
+
encodeFunctionData(functionFragment: "setProtocolManagement", values: [AddressLike]): string;
|
|
1158
|
+
encodeFunctionData(functionFragment: "setRouter", values: [AddressLike]): string;
|
|
1159
|
+
encodeFunctionData(functionFragment: "setSignerExtension", values: [AddressLike]): string;
|
|
1160
|
+
encodeFunctionData(functionFragment: "setVaultRegistry", values: [AddressLike]): string;
|
|
1161
|
+
encodeFunctionData(functionFragment: "signerExtension", values?: undefined): string;
|
|
1162
|
+
decodeFunctionResult(functionFragment: "getLatestMPCInfo", data: BytesLike): Result;
|
|
1163
|
+
decodeFunctionResult(functionFragment: "getMPCInfo", data: BytesLike): Result;
|
|
1164
|
+
decodeFunctionResult(functionFragment: "getManagementOwner", data: BytesLike): Result;
|
|
1165
|
+
decodeFunctionResult(functionFragment: "getPFeeRate", data: BytesLike): Result;
|
|
1166
|
+
decodeFunctionResult(functionFragment: "getPMMAccounts", data: BytesLike): Result;
|
|
1167
|
+
decodeFunctionResult(functionFragment: "getProtocolState", data: BytesLike): Result;
|
|
1168
|
+
decodeFunctionResult(functionFragment: "getTokens", data: BytesLike): Result;
|
|
1169
|
+
decodeFunctionResult(functionFragment: "getVault", data: BytesLike): Result;
|
|
1170
|
+
decodeFunctionResult(functionFragment: "isMPCNode", data: BytesLike): Result;
|
|
1171
|
+
decodeFunctionResult(functionFragment: "isSolver", data: BytesLike): Result;
|
|
1172
|
+
decodeFunctionResult(functionFragment: "isValidNetwork", data: BytesLike): Result;
|
|
1173
|
+
decodeFunctionResult(functionFragment: "isValidPMM", data: BytesLike): Result;
|
|
1174
|
+
decodeFunctionResult(functionFragment: "isValidPMMAccount", data: BytesLike): Result;
|
|
1175
|
+
decodeFunctionResult(functionFragment: "isValidPubkey", data: BytesLike): Result;
|
|
1176
|
+
decodeFunctionResult(functionFragment: "isValidToken", data: BytesLike): Result;
|
|
1177
|
+
decodeFunctionResult(functionFragment: "numOfPMMAccounts", data: BytesLike): Result;
|
|
1178
|
+
decodeFunctionResult(functionFragment: "numOfSupportedTokens", data: BytesLike): Result;
|
|
1179
|
+
decodeFunctionResult(functionFragment: "pManagement", data: BytesLike): Result;
|
|
1180
|
+
decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result;
|
|
1181
|
+
decodeFunctionResult(functionFragment: "router", data: BytesLike): Result;
|
|
1182
|
+
decodeFunctionResult(functionFragment: "setProtocolManagement", data: BytesLike): Result;
|
|
1183
|
+
decodeFunctionResult(functionFragment: "setRouter", data: BytesLike): Result;
|
|
1184
|
+
decodeFunctionResult(functionFragment: "setSignerExtension", data: BytesLike): Result;
|
|
1185
|
+
decodeFunctionResult(functionFragment: "setVaultRegistry", data: BytesLike): Result;
|
|
1186
|
+
decodeFunctionResult(functionFragment: "signerExtension", data: BytesLike): Result;
|
|
1187
|
+
}
|
|
1188
|
+
interface ProtocolFetcherProxy extends BaseContract {
|
|
1189
|
+
connect(runner?: ContractRunner | null): ProtocolFetcherProxy;
|
|
1190
|
+
waitForDeployment(): Promise<this>;
|
|
1191
|
+
interface: ProtocolFetcherProxyInterface;
|
|
1192
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
1193
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
1194
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1195
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1196
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1197
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1198
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
1199
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
1200
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
1201
|
+
getLatestMPCInfo: TypedContractMethod<[
|
|
1202
|
+
networkId: BytesLike
|
|
1203
|
+
], [
|
|
1204
|
+
ITypes$2.MPCInfoStructOutput
|
|
1205
|
+
], "view">;
|
|
1206
|
+
getMPCInfo: TypedContractMethod<[
|
|
1207
|
+
networkId: BytesLike,
|
|
1208
|
+
pubkey: BytesLike
|
|
1209
|
+
], [
|
|
1210
|
+
ITypes$2.MPCInfoStructOutput
|
|
1211
|
+
], "view">;
|
|
1212
|
+
getManagementOwner: TypedContractMethod<[], [string], "view">;
|
|
1213
|
+
getPFeeRate: TypedContractMethod<[
|
|
1214
|
+
pairInfo: [BytesLike, BytesLike, BytesLike, BytesLike]
|
|
1215
|
+
], [
|
|
1216
|
+
bigint
|
|
1217
|
+
], "view">;
|
|
1218
|
+
getPMMAccounts: TypedContractMethod<[
|
|
1219
|
+
pmmId: BytesLike,
|
|
1220
|
+
fromIdx: BigNumberish,
|
|
1221
|
+
toIdx: BigNumberish
|
|
1222
|
+
], [
|
|
1223
|
+
string[]
|
|
1224
|
+
], "view">;
|
|
1225
|
+
getProtocolState: TypedContractMethod<[], [bigint], "view">;
|
|
1226
|
+
getTokens: TypedContractMethod<[
|
|
1227
|
+
fromIdx: BigNumberish,
|
|
1228
|
+
toIdx: BigNumberish
|
|
1229
|
+
], [
|
|
1230
|
+
ITypes$2.TokenInfoStructOutput[]
|
|
1231
|
+
], "view">;
|
|
1232
|
+
getVault: TypedContractMethod<[
|
|
1233
|
+
networkId: BytesLike,
|
|
1234
|
+
tokenId: BytesLike
|
|
1235
|
+
], [
|
|
1236
|
+
string
|
|
1237
|
+
], "view">;
|
|
1238
|
+
isMPCNode: TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
1239
|
+
isSolver: TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
1240
|
+
isValidNetwork: TypedContractMethod<[
|
|
1241
|
+
networkId: BytesLike
|
|
1242
|
+
], [
|
|
1243
|
+
boolean
|
|
1244
|
+
], "view">;
|
|
1245
|
+
isValidPMM: TypedContractMethod<[pmmId: BytesLike], [boolean], "view">;
|
|
1246
|
+
isValidPMMAccount: TypedContractMethod<[
|
|
1247
|
+
pmmId: BytesLike,
|
|
1248
|
+
account: AddressLike
|
|
1249
|
+
], [
|
|
1250
|
+
boolean
|
|
1251
|
+
], "view">;
|
|
1252
|
+
isValidPubkey: TypedContractMethod<[
|
|
1253
|
+
networkId: BytesLike,
|
|
1254
|
+
pubkey: BytesLike
|
|
1255
|
+
], [
|
|
1256
|
+
boolean
|
|
1257
|
+
], "view">;
|
|
1258
|
+
isValidToken: TypedContractMethod<[
|
|
1259
|
+
networkId: BytesLike,
|
|
1260
|
+
tokenId: BytesLike
|
|
1261
|
+
], [
|
|
1262
|
+
boolean
|
|
1263
|
+
], "view">;
|
|
1264
|
+
numOfPMMAccounts: TypedContractMethod<[pmmId: BytesLike], [bigint], "view">;
|
|
1265
|
+
numOfSupportedTokens: TypedContractMethod<[], [bigint], "view">;
|
|
1266
|
+
pManagement: TypedContractMethod<[], [string], "view">;
|
|
1267
|
+
registry: TypedContractMethod<[], [string], "view">;
|
|
1268
|
+
router: TypedContractMethod<[], [string], "view">;
|
|
1269
|
+
setProtocolManagement: TypedContractMethod<[
|
|
1270
|
+
newManagement: AddressLike
|
|
1271
|
+
], [
|
|
1272
|
+
void
|
|
1273
|
+
], "nonpayable">;
|
|
1274
|
+
setRouter: TypedContractMethod<[
|
|
1275
|
+
newRouter: AddressLike
|
|
1276
|
+
], [
|
|
1277
|
+
void
|
|
1278
|
+
], "nonpayable">;
|
|
1279
|
+
setSignerExtension: TypedContractMethod<[
|
|
1280
|
+
newSignerExtension: AddressLike
|
|
1281
|
+
], [
|
|
1282
|
+
void
|
|
1283
|
+
], "nonpayable">;
|
|
1284
|
+
setVaultRegistry: TypedContractMethod<[
|
|
1285
|
+
newRegistry: AddressLike
|
|
1286
|
+
], [
|
|
1287
|
+
void
|
|
1288
|
+
], "nonpayable">;
|
|
1289
|
+
signerExtension: TypedContractMethod<[], [string], "view">;
|
|
1290
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
1291
|
+
getFunction(nameOrSignature: "getLatestMPCInfo"): TypedContractMethod<[
|
|
1292
|
+
networkId: BytesLike
|
|
1293
|
+
], [
|
|
1294
|
+
ITypes$2.MPCInfoStructOutput
|
|
1295
|
+
], "view">;
|
|
1296
|
+
getFunction(nameOrSignature: "getMPCInfo"): TypedContractMethod<[
|
|
1297
|
+
networkId: BytesLike,
|
|
1298
|
+
pubkey: BytesLike
|
|
1299
|
+
], [
|
|
1300
|
+
ITypes$2.MPCInfoStructOutput
|
|
1301
|
+
], "view">;
|
|
1302
|
+
getFunction(nameOrSignature: "getManagementOwner"): TypedContractMethod<[], [string], "view">;
|
|
1303
|
+
getFunction(nameOrSignature: "getPFeeRate"): TypedContractMethod<[
|
|
1304
|
+
pairInfo: [BytesLike, BytesLike, BytesLike, BytesLike]
|
|
1305
|
+
], [
|
|
1306
|
+
bigint
|
|
1307
|
+
], "view">;
|
|
1308
|
+
getFunction(nameOrSignature: "getPMMAccounts"): TypedContractMethod<[
|
|
1309
|
+
pmmId: BytesLike,
|
|
1310
|
+
fromIdx: BigNumberish,
|
|
1311
|
+
toIdx: BigNumberish
|
|
1312
|
+
], [
|
|
1313
|
+
string[]
|
|
1314
|
+
], "view">;
|
|
1315
|
+
getFunction(nameOrSignature: "getProtocolState"): TypedContractMethod<[], [bigint], "view">;
|
|
1316
|
+
getFunction(nameOrSignature: "getTokens"): TypedContractMethod<[
|
|
1317
|
+
fromIdx: BigNumberish,
|
|
1318
|
+
toIdx: BigNumberish
|
|
1319
|
+
], [
|
|
1320
|
+
ITypes$2.TokenInfoStructOutput[]
|
|
1321
|
+
], "view">;
|
|
1322
|
+
getFunction(nameOrSignature: "getVault"): TypedContractMethod<[
|
|
1323
|
+
networkId: BytesLike,
|
|
1324
|
+
tokenId: BytesLike
|
|
1325
|
+
], [
|
|
1326
|
+
string
|
|
1327
|
+
], "view">;
|
|
1328
|
+
getFunction(nameOrSignature: "isMPCNode"): TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
1329
|
+
getFunction(nameOrSignature: "isSolver"): TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
1330
|
+
getFunction(nameOrSignature: "isValidNetwork"): TypedContractMethod<[networkId: BytesLike], [boolean], "view">;
|
|
1331
|
+
getFunction(nameOrSignature: "isValidPMM"): TypedContractMethod<[pmmId: BytesLike], [boolean], "view">;
|
|
1332
|
+
getFunction(nameOrSignature: "isValidPMMAccount"): TypedContractMethod<[
|
|
1333
|
+
pmmId: BytesLike,
|
|
1334
|
+
account: AddressLike
|
|
1335
|
+
], [
|
|
1336
|
+
boolean
|
|
1337
|
+
], "view">;
|
|
1338
|
+
getFunction(nameOrSignature: "isValidPubkey"): TypedContractMethod<[
|
|
1339
|
+
networkId: BytesLike,
|
|
1340
|
+
pubkey: BytesLike
|
|
1341
|
+
], [
|
|
1342
|
+
boolean
|
|
1343
|
+
], "view">;
|
|
1344
|
+
getFunction(nameOrSignature: "isValidToken"): TypedContractMethod<[
|
|
1345
|
+
networkId: BytesLike,
|
|
1346
|
+
tokenId: BytesLike
|
|
1347
|
+
], [
|
|
1348
|
+
boolean
|
|
1349
|
+
], "view">;
|
|
1350
|
+
getFunction(nameOrSignature: "numOfPMMAccounts"): TypedContractMethod<[pmmId: BytesLike], [bigint], "view">;
|
|
1351
|
+
getFunction(nameOrSignature: "numOfSupportedTokens"): TypedContractMethod<[], [bigint], "view">;
|
|
1352
|
+
getFunction(nameOrSignature: "pManagement"): TypedContractMethod<[], [string], "view">;
|
|
1353
|
+
getFunction(nameOrSignature: "registry"): TypedContractMethod<[], [string], "view">;
|
|
1354
|
+
getFunction(nameOrSignature: "router"): TypedContractMethod<[], [string], "view">;
|
|
1355
|
+
getFunction(nameOrSignature: "setProtocolManagement"): TypedContractMethod<[newManagement: AddressLike], [void], "nonpayable">;
|
|
1356
|
+
getFunction(nameOrSignature: "setRouter"): TypedContractMethod<[newRouter: AddressLike], [void], "nonpayable">;
|
|
1357
|
+
getFunction(nameOrSignature: "setSignerExtension"): TypedContractMethod<[
|
|
1358
|
+
newSignerExtension: AddressLike
|
|
1359
|
+
], [
|
|
1360
|
+
void
|
|
1361
|
+
], "nonpayable">;
|
|
1362
|
+
getFunction(nameOrSignature: "setVaultRegistry"): TypedContractMethod<[newRegistry: AddressLike], [void], "nonpayable">;
|
|
1363
|
+
getFunction(nameOrSignature: "signerExtension"): TypedContractMethod<[], [string], "view">;
|
|
1364
|
+
filters: {};
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
declare namespace ITypes$1 {
|
|
1368
|
+
type RFQInfoStruct = {
|
|
1369
|
+
minAmountOut: BigNumberish;
|
|
1370
|
+
tradeTimeout: BigNumberish;
|
|
1371
|
+
rfqInfoSignature: BytesLike;
|
|
1372
|
+
};
|
|
1373
|
+
type RFQInfoStructOutput = [
|
|
1374
|
+
minAmountOut: bigint,
|
|
1375
|
+
tradeTimeout: bigint,
|
|
1376
|
+
rfqInfoSignature: string
|
|
1377
|
+
] & {
|
|
1378
|
+
minAmountOut: bigint;
|
|
1379
|
+
tradeTimeout: bigint;
|
|
1380
|
+
rfqInfoSignature: string;
|
|
1381
|
+
};
|
|
1104
1382
|
type BundlePaymentStruct = {
|
|
1105
1383
|
tradeIds: BytesLike[];
|
|
1106
1384
|
signedAt: BigNumberish;
|
|
@@ -1163,37 +1441,6 @@ declare namespace ITypes {
|
|
|
1163
1441
|
pFeeRate: bigint;
|
|
1164
1442
|
aFeeRate: bigint;
|
|
1165
1443
|
};
|
|
1166
|
-
type MPCInfoStruct = {
|
|
1167
|
-
mpcL2Address: AddressLike;
|
|
1168
|
-
expireTime: BigNumberish;
|
|
1169
|
-
mpcL2Pubkey: BytesLike;
|
|
1170
|
-
mpcAssetPubkey: BytesLike;
|
|
1171
|
-
};
|
|
1172
|
-
type MPCInfoStructOutput = [
|
|
1173
|
-
mpcL2Address: string,
|
|
1174
|
-
expireTime: bigint,
|
|
1175
|
-
mpcL2Pubkey: string,
|
|
1176
|
-
mpcAssetPubkey: string
|
|
1177
|
-
] & {
|
|
1178
|
-
mpcL2Address: string;
|
|
1179
|
-
expireTime: bigint;
|
|
1180
|
-
mpcL2Pubkey: string;
|
|
1181
|
-
mpcAssetPubkey: string;
|
|
1182
|
-
};
|
|
1183
|
-
type RFQInfoStruct = {
|
|
1184
|
-
minAmountOut: BigNumberish;
|
|
1185
|
-
tradeTimeout: BigNumberish;
|
|
1186
|
-
rfqInfoSignature: BytesLike;
|
|
1187
|
-
};
|
|
1188
|
-
type RFQInfoStructOutput = [
|
|
1189
|
-
minAmountOut: bigint,
|
|
1190
|
-
tradeTimeout: bigint,
|
|
1191
|
-
rfqInfoSignature: string
|
|
1192
|
-
] & {
|
|
1193
|
-
minAmountOut: bigint;
|
|
1194
|
-
tradeTimeout: bigint;
|
|
1195
|
-
rfqInfoSignature: string;
|
|
1196
|
-
};
|
|
1197
1444
|
type SelectedPMMInfoStruct = {
|
|
1198
1445
|
amountOut: BigNumberish;
|
|
1199
1446
|
selectedPMMId: BytesLike;
|
|
@@ -1212,15 +1459,15 @@ declare namespace ITypes {
|
|
|
1212
1459
|
sigExpiry: bigint;
|
|
1213
1460
|
};
|
|
1214
1461
|
type PMMSelectionStruct = {
|
|
1215
|
-
rfqInfo: ITypes.RFQInfoStruct;
|
|
1216
|
-
pmmInfo: ITypes.SelectedPMMInfoStruct;
|
|
1462
|
+
rfqInfo: ITypes$1.RFQInfoStruct;
|
|
1463
|
+
pmmInfo: ITypes$1.SelectedPMMInfoStruct;
|
|
1217
1464
|
};
|
|
1218
1465
|
type PMMSelectionStructOutput = [
|
|
1219
|
-
rfqInfo: ITypes.RFQInfoStructOutput,
|
|
1220
|
-
pmmInfo: ITypes.SelectedPMMInfoStructOutput
|
|
1466
|
+
rfqInfo: ITypes$1.RFQInfoStructOutput,
|
|
1467
|
+
pmmInfo: ITypes$1.SelectedPMMInfoStructOutput
|
|
1221
1468
|
] & {
|
|
1222
|
-
rfqInfo: ITypes.RFQInfoStructOutput;
|
|
1223
|
-
pmmInfo: ITypes.SelectedPMMInfoStructOutput;
|
|
1469
|
+
rfqInfo: ITypes$1.RFQInfoStructOutput;
|
|
1470
|
+
pmmInfo: ITypes$1.SelectedPMMInfoStructOutput;
|
|
1224
1471
|
};
|
|
1225
1472
|
type RefundPresignStruct = {
|
|
1226
1473
|
refundAddress: BytesLike;
|
|
@@ -1247,17 +1494,6 @@ declare namespace ITypes {
|
|
|
1247
1494
|
pmmRecvAddress: string;
|
|
1248
1495
|
presigns: string[];
|
|
1249
1496
|
};
|
|
1250
|
-
type TokenInfoStruct = {
|
|
1251
|
-
info: [BytesLike, BytesLike, BytesLike, BytesLike, BytesLike];
|
|
1252
|
-
decimals: BigNumberish;
|
|
1253
|
-
};
|
|
1254
|
-
type TokenInfoStructOutput = [
|
|
1255
|
-
info: [string, string, string, string, string],
|
|
1256
|
-
decimals: bigint
|
|
1257
|
-
] & {
|
|
1258
|
-
info: [string, string, string, string, string];
|
|
1259
|
-
decimals: bigint;
|
|
1260
|
-
};
|
|
1261
1497
|
type TradeInfoStruct = {
|
|
1262
1498
|
amountIn: BigNumberish;
|
|
1263
1499
|
fromChain: [BytesLike, BytesLike, BytesLike];
|
|
@@ -1288,17 +1524,17 @@ declare namespace ITypes {
|
|
|
1288
1524
|
};
|
|
1289
1525
|
type TradeDataStruct = {
|
|
1290
1526
|
sessionId: BigNumberish;
|
|
1291
|
-
tradeInfo: ITypes.TradeInfoStruct;
|
|
1292
|
-
scriptInfo: ITypes.ScriptInfoStruct;
|
|
1527
|
+
tradeInfo: ITypes$1.TradeInfoStruct;
|
|
1528
|
+
scriptInfo: ITypes$1.ScriptInfoStruct;
|
|
1293
1529
|
};
|
|
1294
1530
|
type TradeDataStructOutput = [
|
|
1295
1531
|
sessionId: bigint,
|
|
1296
|
-
tradeInfo: ITypes.TradeInfoStructOutput,
|
|
1297
|
-
scriptInfo: ITypes.ScriptInfoStructOutput
|
|
1532
|
+
tradeInfo: ITypes$1.TradeInfoStructOutput,
|
|
1533
|
+
scriptInfo: ITypes$1.ScriptInfoStructOutput
|
|
1298
1534
|
] & {
|
|
1299
1535
|
sessionId: bigint;
|
|
1300
|
-
tradeInfo: ITypes.TradeInfoStructOutput;
|
|
1301
|
-
scriptInfo: ITypes.ScriptInfoStructOutput;
|
|
1536
|
+
tradeInfo: ITypes$1.TradeInfoStructOutput;
|
|
1537
|
+
scriptInfo: ITypes$1.ScriptInfoStructOutput;
|
|
1302
1538
|
};
|
|
1303
1539
|
type TradeFinalizationStruct = {
|
|
1304
1540
|
bundlerHash: BytesLike;
|
|
@@ -1325,130 +1561,99 @@ declare namespace ITypes {
|
|
|
1325
1561
|
};
|
|
1326
1562
|
}
|
|
1327
1563
|
interface RouterInterface extends Interface {
|
|
1328
|
-
getFunction(nameOrSignature: "SIGNER" | "bundlePayment" | "confirmDeposit" | "confirmPayment" | "
|
|
1329
|
-
getEvent(nameOrSignatureOrTopic: "ConfirmDeposit" | "ConfirmPayment" | "ConfirmRefund" | "ConfirmSettlement" | "MakePayment" | "ReportFailure" | "SelectPMM" | "SubmitTradeInfo" | "UpdatedRoute"): EventFragment;
|
|
1564
|
+
getFunction(nameOrSignature: "SIGNER" | "abort" | "bundlePayment" | "confirmDeposit" | "confirmPayment" | "confirmPresign" | "confirmSettlement" | "getAffiliateInfo" | "getCurrentEpoch" | "getCurrentStage" | "getFailureInfo" | "getFeeDetails" | "getHandler" | "getHandlerOf" | "getHistoryCount" | "getPMMSelection" | "getPendingTrades" | "getPendingTradesCount" | "getRefundPresign" | "getRegisteredHandlers" | "getSettlementPresigns" | "getSolver" | "getTradeData" | "getTradeFinalization" | "management" | "migrate" | "refund" | "report" | "selectPMM" | "setManagement" | "setRoute" | "submitDeposit" | "submitTrade"): FunctionFragment;
|
|
1565
|
+
getEvent(nameOrSignatureOrTopic: "Abort" | "ConfirmDeposit" | "ConfirmPayment" | "ConfirmPresign" | "ConfirmRefund" | "ConfirmSettlement" | "MakePayment" | "ReportFailure" | "SelectPMM" | "SubmitDeposit" | "SubmitTradeInfo" | "UpdatedManagement" | "UpdatedRoute"): EventFragment;
|
|
1330
1566
|
encodeFunctionData(functionFragment: "SIGNER", values?: undefined): string;
|
|
1331
|
-
encodeFunctionData(functionFragment: "
|
|
1567
|
+
encodeFunctionData(functionFragment: "abort", values: [BytesLike, ITypes$1.RFQInfoStruct]): string;
|
|
1568
|
+
encodeFunctionData(functionFragment: "bundlePayment", values: [ITypes$1.BundlePaymentStruct]): string;
|
|
1332
1569
|
encodeFunctionData(functionFragment: "confirmDeposit", values: [BytesLike, BytesLike, BytesLike[]]): string;
|
|
1333
1570
|
encodeFunctionData(functionFragment: "confirmPayment", values: [BytesLike, BytesLike]): string;
|
|
1571
|
+
encodeFunctionData(functionFragment: "confirmPresign", values: [BytesLike, BytesLike]): string;
|
|
1334
1572
|
encodeFunctionData(functionFragment: "confirmSettlement", values: [BytesLike, BytesLike, BytesLike]): string;
|
|
1335
1573
|
encodeFunctionData(functionFragment: "getAffiliateInfo", values: [BytesLike]): string;
|
|
1336
|
-
encodeFunctionData(functionFragment: "getCurrentEpoch", values: [
|
|
1574
|
+
encodeFunctionData(functionFragment: "getCurrentEpoch", values: [AddressLike]): string;
|
|
1337
1575
|
encodeFunctionData(functionFragment: "getCurrentStage", values: [BytesLike]): string;
|
|
1338
|
-
encodeFunctionData(functionFragment: "getDepositAddressList", values: [BytesLike]): string;
|
|
1339
1576
|
encodeFunctionData(functionFragment: "getFailureInfo", values: [BytesLike]): string;
|
|
1340
1577
|
encodeFunctionData(functionFragment: "getFeeDetails", values: [BytesLike]): string;
|
|
1341
1578
|
encodeFunctionData(functionFragment: "getHandler", values: [BytesLike, BytesLike]): string;
|
|
1342
1579
|
encodeFunctionData(functionFragment: "getHandlerOf", values: [BytesLike]): string;
|
|
1343
|
-
encodeFunctionData(functionFragment: "
|
|
1344
|
-
encodeFunctionData(functionFragment: "getLatestMPCInfo", values: [BytesLike]): string;
|
|
1345
|
-
encodeFunctionData(functionFragment: "getMPCInfo", values: [BytesLike, BytesLike]): string;
|
|
1346
|
-
encodeFunctionData(functionFragment: "getManagementOwner", values?: undefined): string;
|
|
1347
|
-
encodeFunctionData(functionFragment: "getMaxAffiliateFeeRate", values: [BytesLike, BytesLike]): string;
|
|
1348
|
-
encodeFunctionData(functionFragment: "getPFeeRate", values?: undefined): string;
|
|
1349
|
-
encodeFunctionData(functionFragment: "getPMMAccounts", values: [BytesLike, BigNumberish, BigNumberish]): string;
|
|
1580
|
+
encodeFunctionData(functionFragment: "getHistoryCount", values: [BytesLike, BytesLike]): string;
|
|
1350
1581
|
encodeFunctionData(functionFragment: "getPMMSelection", values: [BytesLike]): string;
|
|
1351
|
-
encodeFunctionData(functionFragment: "getPendingTrades", values: [
|
|
1352
|
-
encodeFunctionData(functionFragment: "getPendingTradesCount", values: [
|
|
1353
|
-
encodeFunctionData(functionFragment: "
|
|
1354
|
-
encodeFunctionData(functionFragment: "
|
|
1582
|
+
encodeFunctionData(functionFragment: "getPendingTrades", values: [AddressLike, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
1583
|
+
encodeFunctionData(functionFragment: "getPendingTradesCount", values: [AddressLike, BigNumberish]): string;
|
|
1584
|
+
encodeFunctionData(functionFragment: "getRefundPresign", values: [BytesLike]): string;
|
|
1585
|
+
encodeFunctionData(functionFragment: "getRegisteredHandlers", values: [BigNumberish, BigNumberish, BytesLike, BytesLike]): string;
|
|
1355
1586
|
encodeFunctionData(functionFragment: "getSettlementPresigns", values: [BytesLike]): string;
|
|
1356
|
-
encodeFunctionData(functionFragment: "
|
|
1587
|
+
encodeFunctionData(functionFragment: "getSolver", values: [BytesLike]): string;
|
|
1357
1588
|
encodeFunctionData(functionFragment: "getTradeData", values: [BytesLike]): string;
|
|
1358
1589
|
encodeFunctionData(functionFragment: "getTradeFinalization", values: [BytesLike]): string;
|
|
1359
|
-
encodeFunctionData(functionFragment: "isMPCNode", values: [AddressLike]): string;
|
|
1360
|
-
encodeFunctionData(functionFragment: "isSolver", values: [AddressLike]): string;
|
|
1361
|
-
encodeFunctionData(functionFragment: "isSuspended", values: [BigNumberish]): string;
|
|
1362
|
-
encodeFunctionData(functionFragment: "isValidNetwork", values: [BytesLike]): string;
|
|
1363
|
-
encodeFunctionData(functionFragment: "isValidPMM", values: [BytesLike]): string;
|
|
1364
|
-
encodeFunctionData(functionFragment: "isValidPMMAccount", values: [BytesLike, AddressLike]): string;
|
|
1365
|
-
encodeFunctionData(functionFragment: "isValidPubkey", values: [BytesLike, BytesLike]): string;
|
|
1366
|
-
encodeFunctionData(functionFragment: "isValidToken", values: [BytesLike, BytesLike]): string;
|
|
1367
1590
|
encodeFunctionData(functionFragment: "management", values?: undefined): string;
|
|
1368
|
-
encodeFunctionData(functionFragment: "
|
|
1369
|
-
encodeFunctionData(functionFragment: "numOfSupportedTokens", values?: undefined): string;
|
|
1591
|
+
encodeFunctionData(functionFragment: "migrate", values: [BytesLike[], AddressLike[]]): string;
|
|
1370
1592
|
encodeFunctionData(functionFragment: "refund", values: [BytesLike, BytesLike, BytesLike]): string;
|
|
1371
|
-
encodeFunctionData(functionFragment: "report", values: [BytesLike, BytesLike, BytesLike]): string;
|
|
1372
|
-
encodeFunctionData(functionFragment: "selectPMM", values: [BytesLike, ITypes.PMMSelectionStruct]): string;
|
|
1593
|
+
encodeFunctionData(functionFragment: "report", values: [BytesLike, BytesLike, BytesLike, BytesLike]): string;
|
|
1594
|
+
encodeFunctionData(functionFragment: "selectPMM", values: [BytesLike, ITypes$1.PMMSelectionStruct]): string;
|
|
1373
1595
|
encodeFunctionData(functionFragment: "setManagement", values: [AddressLike]): string;
|
|
1374
1596
|
encodeFunctionData(functionFragment: "setRoute", values: [AddressLike, BytesLike, BytesLike]): string;
|
|
1597
|
+
encodeFunctionData(functionFragment: "submitDeposit", values: [BytesLike, ITypes$1.TradeDataStruct, ITypes$1.RefundPresignStruct]): string;
|
|
1375
1598
|
encodeFunctionData(functionFragment: "submitTrade", values: [
|
|
1376
1599
|
BytesLike,
|
|
1377
|
-
ITypes.TradeDataStruct,
|
|
1378
|
-
ITypes.AffiliateStruct,
|
|
1379
|
-
ITypes.SettlementPresignStruct[],
|
|
1380
|
-
ITypes.RefundPresignStruct
|
|
1600
|
+
ITypes$1.TradeDataStruct,
|
|
1601
|
+
ITypes$1.AffiliateStruct,
|
|
1602
|
+
ITypes$1.SettlementPresignStruct[],
|
|
1603
|
+
ITypes$1.RefundPresignStruct
|
|
1381
1604
|
]): string;
|
|
1382
|
-
encodeFunctionData(functionFragment: "version", values: [AddressLike]): string;
|
|
1383
1605
|
decodeFunctionResult(functionFragment: "SIGNER", data: BytesLike): Result;
|
|
1606
|
+
decodeFunctionResult(functionFragment: "abort", data: BytesLike): Result;
|
|
1384
1607
|
decodeFunctionResult(functionFragment: "bundlePayment", data: BytesLike): Result;
|
|
1385
1608
|
decodeFunctionResult(functionFragment: "confirmDeposit", data: BytesLike): Result;
|
|
1386
1609
|
decodeFunctionResult(functionFragment: "confirmPayment", data: BytesLike): Result;
|
|
1610
|
+
decodeFunctionResult(functionFragment: "confirmPresign", data: BytesLike): Result;
|
|
1387
1611
|
decodeFunctionResult(functionFragment: "confirmSettlement", data: BytesLike): Result;
|
|
1388
1612
|
decodeFunctionResult(functionFragment: "getAffiliateInfo", data: BytesLike): Result;
|
|
1389
1613
|
decodeFunctionResult(functionFragment: "getCurrentEpoch", data: BytesLike): Result;
|
|
1390
1614
|
decodeFunctionResult(functionFragment: "getCurrentStage", data: BytesLike): Result;
|
|
1391
|
-
decodeFunctionResult(functionFragment: "getDepositAddressList", data: BytesLike): Result;
|
|
1392
1615
|
decodeFunctionResult(functionFragment: "getFailureInfo", data: BytesLike): Result;
|
|
1393
1616
|
decodeFunctionResult(functionFragment: "getFeeDetails", data: BytesLike): Result;
|
|
1394
1617
|
decodeFunctionResult(functionFragment: "getHandler", data: BytesLike): Result;
|
|
1395
1618
|
decodeFunctionResult(functionFragment: "getHandlerOf", data: BytesLike): Result;
|
|
1396
|
-
decodeFunctionResult(functionFragment: "
|
|
1397
|
-
decodeFunctionResult(functionFragment: "getLatestMPCInfo", data: BytesLike): Result;
|
|
1398
|
-
decodeFunctionResult(functionFragment: "getMPCInfo", data: BytesLike): Result;
|
|
1399
|
-
decodeFunctionResult(functionFragment: "getManagementOwner", data: BytesLike): Result;
|
|
1400
|
-
decodeFunctionResult(functionFragment: "getMaxAffiliateFeeRate", data: BytesLike): Result;
|
|
1401
|
-
decodeFunctionResult(functionFragment: "getPFeeRate", data: BytesLike): Result;
|
|
1402
|
-
decodeFunctionResult(functionFragment: "getPMMAccounts", data: BytesLike): Result;
|
|
1619
|
+
decodeFunctionResult(functionFragment: "getHistoryCount", data: BytesLike): Result;
|
|
1403
1620
|
decodeFunctionResult(functionFragment: "getPMMSelection", data: BytesLike): Result;
|
|
1404
1621
|
decodeFunctionResult(functionFragment: "getPendingTrades", data: BytesLike): Result;
|
|
1405
1622
|
decodeFunctionResult(functionFragment: "getPendingTradesCount", data: BytesLike): Result;
|
|
1406
|
-
decodeFunctionResult(functionFragment: "
|
|
1407
|
-
decodeFunctionResult(functionFragment: "
|
|
1623
|
+
decodeFunctionResult(functionFragment: "getRefundPresign", data: BytesLike): Result;
|
|
1624
|
+
decodeFunctionResult(functionFragment: "getRegisteredHandlers", data: BytesLike): Result;
|
|
1408
1625
|
decodeFunctionResult(functionFragment: "getSettlementPresigns", data: BytesLike): Result;
|
|
1409
|
-
decodeFunctionResult(functionFragment: "
|
|
1626
|
+
decodeFunctionResult(functionFragment: "getSolver", data: BytesLike): Result;
|
|
1410
1627
|
decodeFunctionResult(functionFragment: "getTradeData", data: BytesLike): Result;
|
|
1411
1628
|
decodeFunctionResult(functionFragment: "getTradeFinalization", data: BytesLike): Result;
|
|
1412
|
-
decodeFunctionResult(functionFragment: "isMPCNode", data: BytesLike): Result;
|
|
1413
|
-
decodeFunctionResult(functionFragment: "isSolver", data: BytesLike): Result;
|
|
1414
|
-
decodeFunctionResult(functionFragment: "isSuspended", data: BytesLike): Result;
|
|
1415
|
-
decodeFunctionResult(functionFragment: "isValidNetwork", data: BytesLike): Result;
|
|
1416
|
-
decodeFunctionResult(functionFragment: "isValidPMM", data: BytesLike): Result;
|
|
1417
|
-
decodeFunctionResult(functionFragment: "isValidPMMAccount", data: BytesLike): Result;
|
|
1418
|
-
decodeFunctionResult(functionFragment: "isValidPubkey", data: BytesLike): Result;
|
|
1419
|
-
decodeFunctionResult(functionFragment: "isValidToken", data: BytesLike): Result;
|
|
1420
1629
|
decodeFunctionResult(functionFragment: "management", data: BytesLike): Result;
|
|
1421
|
-
decodeFunctionResult(functionFragment: "
|
|
1422
|
-
decodeFunctionResult(functionFragment: "numOfSupportedTokens", data: BytesLike): Result;
|
|
1630
|
+
decodeFunctionResult(functionFragment: "migrate", data: BytesLike): Result;
|
|
1423
1631
|
decodeFunctionResult(functionFragment: "refund", data: BytesLike): Result;
|
|
1424
1632
|
decodeFunctionResult(functionFragment: "report", data: BytesLike): Result;
|
|
1425
1633
|
decodeFunctionResult(functionFragment: "selectPMM", data: BytesLike): Result;
|
|
1426
1634
|
decodeFunctionResult(functionFragment: "setManagement", data: BytesLike): Result;
|
|
1427
1635
|
decodeFunctionResult(functionFragment: "setRoute", data: BytesLike): Result;
|
|
1636
|
+
decodeFunctionResult(functionFragment: "submitDeposit", data: BytesLike): Result;
|
|
1428
1637
|
decodeFunctionResult(functionFragment: "submitTrade", data: BytesLike): Result;
|
|
1429
|
-
|
|
1638
|
+
}
|
|
1639
|
+
declare namespace AbortEvent {
|
|
1640
|
+
type InputTuple = [solver: AddressLike, tradeId: BytesLike];
|
|
1641
|
+
type OutputTuple = [solver: string, tradeId: string];
|
|
1642
|
+
interface OutputObject {
|
|
1643
|
+
solver: string;
|
|
1644
|
+
tradeId: string;
|
|
1645
|
+
}
|
|
1646
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1647
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1648
|
+
type Log = TypedEventLog<Event>;
|
|
1649
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
1430
1650
|
}
|
|
1431
1651
|
declare namespace ConfirmDepositEvent {
|
|
1432
|
-
type InputTuple = [
|
|
1433
|
-
|
|
1434
|
-
tradeId: BytesLike,
|
|
1435
|
-
pFeeRate: BigNumberish,
|
|
1436
|
-
aFeeRate: BigNumberish,
|
|
1437
|
-
list: BytesLike[]
|
|
1438
|
-
];
|
|
1439
|
-
type OutputTuple = [
|
|
1440
|
-
mpc: string,
|
|
1441
|
-
tradeId: string,
|
|
1442
|
-
pFeeRate: bigint,
|
|
1443
|
-
aFeeRate: bigint,
|
|
1444
|
-
list: string[]
|
|
1445
|
-
];
|
|
1652
|
+
type InputTuple = [mpc: AddressLike, tradeId: BytesLike];
|
|
1653
|
+
type OutputTuple = [mpc: string, tradeId: string];
|
|
1446
1654
|
interface OutputObject {
|
|
1447
1655
|
mpc: string;
|
|
1448
1656
|
tradeId: string;
|
|
1449
|
-
pFeeRate: bigint;
|
|
1450
|
-
aFeeRate: bigint;
|
|
1451
|
-
list: string[];
|
|
1452
1657
|
}
|
|
1453
1658
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1454
1659
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -1467,6 +1672,18 @@ declare namespace ConfirmPaymentEvent {
|
|
|
1467
1672
|
type Log = TypedEventLog<Event>;
|
|
1468
1673
|
type LogDescription = TypedLogDescription<Event>;
|
|
1469
1674
|
}
|
|
1675
|
+
declare namespace ConfirmPresignEvent {
|
|
1676
|
+
type InputTuple = [mpc: AddressLike, tradeId: BytesLike];
|
|
1677
|
+
type OutputTuple = [mpc: string, tradeId: string];
|
|
1678
|
+
interface OutputObject {
|
|
1679
|
+
mpc: string;
|
|
1680
|
+
tradeId: string;
|
|
1681
|
+
}
|
|
1682
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1683
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1684
|
+
type Log = TypedEventLog<Event>;
|
|
1685
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
1686
|
+
}
|
|
1470
1687
|
declare namespace ConfirmRefundEvent {
|
|
1471
1688
|
type InputTuple = [mpc: AddressLike, tradeId: BytesLike];
|
|
1472
1689
|
type OutputTuple = [mpc: string, tradeId: string];
|
|
@@ -1532,6 +1749,18 @@ declare namespace SelectPMMEvent {
|
|
|
1532
1749
|
type Log = TypedEventLog<Event>;
|
|
1533
1750
|
type LogDescription = TypedLogDescription<Event>;
|
|
1534
1751
|
}
|
|
1752
|
+
declare namespace SubmitDepositEvent {
|
|
1753
|
+
type InputTuple = [solver: AddressLike, tradeId: BytesLike];
|
|
1754
|
+
type OutputTuple = [solver: string, tradeId: string];
|
|
1755
|
+
interface OutputObject {
|
|
1756
|
+
solver: string;
|
|
1757
|
+
tradeId: string;
|
|
1758
|
+
}
|
|
1759
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1760
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1761
|
+
type Log = TypedEventLog<Event>;
|
|
1762
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
1763
|
+
}
|
|
1535
1764
|
declare namespace SubmitTradeInfoEvent {
|
|
1536
1765
|
type InputTuple = [solver: AddressLike, tradeId: BytesLike];
|
|
1537
1766
|
type OutputTuple = [solver: string, tradeId: string];
|
|
@@ -1544,24 +1773,33 @@ declare namespace SubmitTradeInfoEvent {
|
|
|
1544
1773
|
type Log = TypedEventLog<Event>;
|
|
1545
1774
|
type LogDescription = TypedLogDescription<Event>;
|
|
1546
1775
|
}
|
|
1776
|
+
declare namespace UpdatedManagementEvent {
|
|
1777
|
+
type InputTuple = [operator: AddressLike, newManagement: AddressLike];
|
|
1778
|
+
type OutputTuple = [operator: string, newManagement: string];
|
|
1779
|
+
interface OutputObject {
|
|
1780
|
+
operator: string;
|
|
1781
|
+
newManagement: string;
|
|
1782
|
+
}
|
|
1783
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1784
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1785
|
+
type Log = TypedEventLog<Event>;
|
|
1786
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
1787
|
+
}
|
|
1547
1788
|
declare namespace UpdatedRouteEvent {
|
|
1548
1789
|
type InputTuple = [
|
|
1549
1790
|
handler: AddressLike,
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
toChain: BytesLike
|
|
1791
|
+
fromNetwork: BytesLike,
|
|
1792
|
+
toNetwork: BytesLike
|
|
1553
1793
|
];
|
|
1554
1794
|
type OutputTuple = [
|
|
1555
1795
|
handler: string,
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
toChain: string
|
|
1796
|
+
fromNetwork: string,
|
|
1797
|
+
toNetwork: string
|
|
1559
1798
|
];
|
|
1560
1799
|
interface OutputObject {
|
|
1561
1800
|
handler: string;
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
toChain: string;
|
|
1801
|
+
fromNetwork: string;
|
|
1802
|
+
toNetwork: string;
|
|
1565
1803
|
}
|
|
1566
1804
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1567
1805
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -1582,8 +1820,14 @@ interface Router extends BaseContract {
|
|
|
1582
1820
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
1583
1821
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
1584
1822
|
SIGNER: TypedContractMethod<[], [string], "view">;
|
|
1823
|
+
abort: TypedContractMethod<[
|
|
1824
|
+
tradeId: BytesLike,
|
|
1825
|
+
rfqInfo: ITypes$1.RFQInfoStruct
|
|
1826
|
+
], [
|
|
1827
|
+
void
|
|
1828
|
+
], "nonpayable">;
|
|
1585
1829
|
bundlePayment: TypedContractMethod<[
|
|
1586
|
-
bundle: ITypes.BundlePaymentStruct
|
|
1830
|
+
bundle: ITypes$1.BundlePaymentStruct
|
|
1587
1831
|
], [
|
|
1588
1832
|
void
|
|
1589
1833
|
], "nonpayable">;
|
|
@@ -1600,6 +1844,12 @@ interface Router extends BaseContract {
|
|
|
1600
1844
|
], [
|
|
1601
1845
|
void
|
|
1602
1846
|
], "nonpayable">;
|
|
1847
|
+
confirmPresign: TypedContractMethod<[
|
|
1848
|
+
tradeId: BytesLike,
|
|
1849
|
+
signature: BytesLike
|
|
1850
|
+
], [
|
|
1851
|
+
void
|
|
1852
|
+
], "nonpayable">;
|
|
1603
1853
|
confirmSettlement: TypedContractMethod<[
|
|
1604
1854
|
tradeId: BytesLike,
|
|
1605
1855
|
releaseTxId: BytesLike,
|
|
@@ -1610,33 +1860,34 @@ interface Router extends BaseContract {
|
|
|
1610
1860
|
getAffiliateInfo: TypedContractMethod<[
|
|
1611
1861
|
tradeId: BytesLike
|
|
1612
1862
|
], [
|
|
1613
|
-
ITypes.AffiliateStructOutput
|
|
1863
|
+
ITypes$1.AffiliateStructOutput
|
|
1614
1864
|
], "view">;
|
|
1615
1865
|
getCurrentEpoch: TypedContractMethod<[
|
|
1616
|
-
|
|
1617
|
-
toChain: BytesLike
|
|
1866
|
+
handler: AddressLike
|
|
1618
1867
|
], [
|
|
1619
1868
|
[bigint, bigint, bigint]
|
|
1620
1869
|
], "view">;
|
|
1621
|
-
getCurrentStage: TypedContractMethod<[
|
|
1622
|
-
getDepositAddressList: TypedContractMethod<[
|
|
1870
|
+
getCurrentStage: TypedContractMethod<[
|
|
1623
1871
|
tradeId: BytesLike
|
|
1624
1872
|
], [
|
|
1625
|
-
string
|
|
1873
|
+
[bigint, string] & {
|
|
1874
|
+
stage: bigint;
|
|
1875
|
+
swapType: string;
|
|
1876
|
+
}
|
|
1626
1877
|
], "view">;
|
|
1627
1878
|
getFailureInfo: TypedContractMethod<[
|
|
1628
1879
|
tradeId: BytesLike
|
|
1629
1880
|
], [
|
|
1630
|
-
ITypes.FailureDetailsStructOutput
|
|
1881
|
+
ITypes$1.FailureDetailsStructOutput
|
|
1631
1882
|
], "view">;
|
|
1632
1883
|
getFeeDetails: TypedContractMethod<[
|
|
1633
1884
|
tradeId: BytesLike
|
|
1634
1885
|
], [
|
|
1635
|
-
ITypes.FeeDetailsStructOutput
|
|
1886
|
+
ITypes$1.FeeDetailsStructOutput
|
|
1636
1887
|
], "view">;
|
|
1637
1888
|
getHandler: TypedContractMethod<[
|
|
1638
|
-
|
|
1639
|
-
|
|
1889
|
+
fromNetwork: BytesLike,
|
|
1890
|
+
toNetwork: BytesLike
|
|
1640
1891
|
], [
|
|
1641
1892
|
[string, string] & {
|
|
1642
1893
|
handler: string;
|
|
@@ -1651,115 +1902,67 @@ interface Router extends BaseContract {
|
|
|
1651
1902
|
handlerType: string;
|
|
1652
1903
|
}
|
|
1653
1904
|
], "view">;
|
|
1654
|
-
|
|
1655
|
-
|
|
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
|
|
1905
|
+
getHistoryCount: TypedContractMethod<[
|
|
1906
|
+
fromNetwork: BytesLike,
|
|
1907
|
+
toNetwork: BytesLike
|
|
1674
1908
|
], [
|
|
1675
1909
|
bigint
|
|
1676
1910
|
], "view">;
|
|
1677
|
-
getPFeeRate: TypedContractMethod<[], [bigint], "view">;
|
|
1678
|
-
getPMMAccounts: TypedContractMethod<[
|
|
1679
|
-
pmmId: BytesLike,
|
|
1680
|
-
fromIdx: BigNumberish,
|
|
1681
|
-
toIdx: BigNumberish
|
|
1682
|
-
], [
|
|
1683
|
-
string[]
|
|
1684
|
-
], "view">;
|
|
1685
1911
|
getPMMSelection: TypedContractMethod<[
|
|
1686
1912
|
tradeId: BytesLike
|
|
1687
1913
|
], [
|
|
1688
|
-
ITypes.PMMSelectionStructOutput
|
|
1914
|
+
ITypes$1.PMMSelectionStructOutput
|
|
1689
1915
|
], "view">;
|
|
1690
1916
|
getPendingTrades: TypedContractMethod<[
|
|
1917
|
+
handler: AddressLike,
|
|
1691
1918
|
epochNo: BigNumberish,
|
|
1692
1919
|
fromIdx: BigNumberish,
|
|
1693
|
-
toIdx: BigNumberish
|
|
1694
|
-
fromChain: BytesLike,
|
|
1695
|
-
toChain: BytesLike
|
|
1920
|
+
toIdx: BigNumberish
|
|
1696
1921
|
], [
|
|
1697
1922
|
string[]
|
|
1698
1923
|
], "view">;
|
|
1699
1924
|
getPendingTradesCount: TypedContractMethod<[
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
toChain: BytesLike
|
|
1925
|
+
handler: AddressLike,
|
|
1926
|
+
epochNo: BigNumberish
|
|
1703
1927
|
], [
|
|
1704
1928
|
bigint
|
|
1705
1929
|
], "view">;
|
|
1706
|
-
|
|
1707
|
-
getRefundPresigns: TypedContractMethod<[
|
|
1930
|
+
getRefundPresign: TypedContractMethod<[
|
|
1708
1931
|
tradeId: BytesLike
|
|
1709
1932
|
], [
|
|
1710
|
-
ITypes.RefundPresignStructOutput
|
|
1933
|
+
ITypes$1.RefundPresignStructOutput
|
|
1711
1934
|
], "view">;
|
|
1712
|
-
|
|
1713
|
-
|
|
1935
|
+
getRegisteredHandlers: TypedContractMethod<[
|
|
1936
|
+
fromIdx: BigNumberish,
|
|
1937
|
+
toIdx: BigNumberish,
|
|
1938
|
+
fromNetwork: BytesLike,
|
|
1939
|
+
toNetwork: BytesLike
|
|
1714
1940
|
], [
|
|
1715
|
-
|
|
1941
|
+
string[]
|
|
1716
1942
|
], "view">;
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
toIdx: BigNumberish
|
|
1943
|
+
getSettlementPresigns: TypedContractMethod<[
|
|
1944
|
+
tradeId: BytesLike
|
|
1720
1945
|
], [
|
|
1721
|
-
ITypes.
|
|
1946
|
+
ITypes$1.SettlementPresignStructOutput[]
|
|
1722
1947
|
], "view">;
|
|
1948
|
+
getSolver: TypedContractMethod<[tradeId: BytesLike], [string], "view">;
|
|
1723
1949
|
getTradeData: TypedContractMethod<[
|
|
1724
1950
|
tradeId: BytesLike
|
|
1725
1951
|
], [
|
|
1726
|
-
ITypes.TradeDataStructOutput
|
|
1952
|
+
ITypes$1.TradeDataStructOutput
|
|
1727
1953
|
], "view">;
|
|
1728
1954
|
getTradeFinalization: TypedContractMethod<[
|
|
1729
1955
|
tradeId: BytesLike
|
|
1730
1956
|
], [
|
|
1731
|
-
ITypes.TradeFinalizationStructOutput
|
|
1732
|
-
], "view">;
|
|
1733
|
-
isMPCNode: TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
1734
|
-
isSolver: TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
1735
|
-
isSuspended: TypedContractMethod<[stage: BigNumberish], [boolean], "view">;
|
|
1736
|
-
isValidNetwork: TypedContractMethod<[
|
|
1737
|
-
networkId: BytesLike
|
|
1738
|
-
], [
|
|
1739
|
-
boolean
|
|
1740
|
-
], "view">;
|
|
1741
|
-
isValidPMM: TypedContractMethod<[pmmId: BytesLike], [boolean], "view">;
|
|
1742
|
-
isValidPMMAccount: TypedContractMethod<[
|
|
1743
|
-
pmmId: BytesLike,
|
|
1744
|
-
account: AddressLike
|
|
1745
|
-
], [
|
|
1746
|
-
boolean
|
|
1747
|
-
], "view">;
|
|
1748
|
-
isValidPubkey: TypedContractMethod<[
|
|
1749
|
-
networkId: BytesLike,
|
|
1750
|
-
pubkey: BytesLike
|
|
1751
|
-
], [
|
|
1752
|
-
boolean
|
|
1753
|
-
], "view">;
|
|
1754
|
-
isValidToken: TypedContractMethod<[
|
|
1755
|
-
networkId: BytesLike,
|
|
1756
|
-
tokenId: BytesLike
|
|
1757
|
-
], [
|
|
1758
|
-
boolean
|
|
1957
|
+
ITypes$1.TradeFinalizationStructOutput
|
|
1759
1958
|
], "view">;
|
|
1760
1959
|
management: TypedContractMethod<[], [string], "view">;
|
|
1761
|
-
|
|
1762
|
-
|
|
1960
|
+
migrate: TypedContractMethod<[
|
|
1961
|
+
referenceIds: BytesLike[],
|
|
1962
|
+
handlers: AddressLike[]
|
|
1963
|
+
], [
|
|
1964
|
+
void
|
|
1965
|
+
], "nonpayable">;
|
|
1763
1966
|
refund: TypedContractMethod<[
|
|
1764
1967
|
tradeId: BytesLike,
|
|
1765
1968
|
refundTxId: BytesLike,
|
|
@@ -1770,13 +1973,14 @@ interface Router extends BaseContract {
|
|
|
1770
1973
|
report: TypedContractMethod<[
|
|
1771
1974
|
tradeId: BytesLike,
|
|
1772
1975
|
msgError: BytesLike,
|
|
1976
|
+
referenceInfo: BytesLike,
|
|
1773
1977
|
signature: BytesLike
|
|
1774
1978
|
], [
|
|
1775
1979
|
void
|
|
1776
1980
|
], "nonpayable">;
|
|
1777
1981
|
selectPMM: TypedContractMethod<[
|
|
1778
1982
|
tradeId: BytesLike,
|
|
1779
|
-
info: ITypes.PMMSelectionStruct
|
|
1983
|
+
info: ITypes$1.PMMSelectionStruct
|
|
1780
1984
|
], [
|
|
1781
1985
|
void
|
|
1782
1986
|
], "nonpayable">;
|
|
@@ -1787,25 +1991,37 @@ interface Router extends BaseContract {
|
|
|
1787
1991
|
], "nonpayable">;
|
|
1788
1992
|
setRoute: TypedContractMethod<[
|
|
1789
1993
|
handler: AddressLike,
|
|
1790
|
-
|
|
1791
|
-
|
|
1994
|
+
fromNetwork: BytesLike,
|
|
1995
|
+
toNetwork: BytesLike
|
|
1996
|
+
], [
|
|
1997
|
+
void
|
|
1998
|
+
], "nonpayable">;
|
|
1999
|
+
submitDeposit: TypedContractMethod<[
|
|
2000
|
+
tradeId: BytesLike,
|
|
2001
|
+
tradeData: ITypes$1.TradeDataStruct,
|
|
2002
|
+
refundPresign: ITypes$1.RefundPresignStruct
|
|
1792
2003
|
], [
|
|
1793
2004
|
void
|
|
1794
2005
|
], "nonpayable">;
|
|
1795
2006
|
submitTrade: TypedContractMethod<[
|
|
1796
2007
|
tradeId: BytesLike,
|
|
1797
|
-
tradeData: ITypes.TradeDataStruct,
|
|
1798
|
-
affiliateInfo: ITypes.AffiliateStruct,
|
|
1799
|
-
settlementPresigns: ITypes.SettlementPresignStruct[],
|
|
1800
|
-
refundPresign: ITypes.RefundPresignStruct
|
|
2008
|
+
tradeData: ITypes$1.TradeDataStruct,
|
|
2009
|
+
affiliateInfo: ITypes$1.AffiliateStruct,
|
|
2010
|
+
settlementPresigns: ITypes$1.SettlementPresignStruct[],
|
|
2011
|
+
refundPresign: ITypes$1.RefundPresignStruct
|
|
1801
2012
|
], [
|
|
1802
2013
|
void
|
|
1803
2014
|
], "nonpayable">;
|
|
1804
|
-
version: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
1805
2015
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
1806
2016
|
getFunction(nameOrSignature: "SIGNER"): TypedContractMethod<[], [string], "view">;
|
|
2017
|
+
getFunction(nameOrSignature: "abort"): TypedContractMethod<[
|
|
2018
|
+
tradeId: BytesLike,
|
|
2019
|
+
rfqInfo: ITypes$1.RFQInfoStruct
|
|
2020
|
+
], [
|
|
2021
|
+
void
|
|
2022
|
+
], "nonpayable">;
|
|
1807
2023
|
getFunction(nameOrSignature: "bundlePayment"): TypedContractMethod<[
|
|
1808
|
-
bundle: ITypes.BundlePaymentStruct
|
|
2024
|
+
bundle: ITypes$1.BundlePaymentStruct
|
|
1809
2025
|
], [
|
|
1810
2026
|
void
|
|
1811
2027
|
], "nonpayable">;
|
|
@@ -1822,6 +2038,12 @@ interface Router extends BaseContract {
|
|
|
1822
2038
|
], [
|
|
1823
2039
|
void
|
|
1824
2040
|
], "nonpayable">;
|
|
2041
|
+
getFunction(nameOrSignature: "confirmPresign"): TypedContractMethod<[
|
|
2042
|
+
tradeId: BytesLike,
|
|
2043
|
+
signature: BytesLike
|
|
2044
|
+
], [
|
|
2045
|
+
void
|
|
2046
|
+
], "nonpayable">;
|
|
1825
2047
|
getFunction(nameOrSignature: "confirmSettlement"): TypedContractMethod<[
|
|
1826
2048
|
tradeId: BytesLike,
|
|
1827
2049
|
releaseTxId: BytesLike,
|
|
@@ -1832,29 +2054,34 @@ interface Router extends BaseContract {
|
|
|
1832
2054
|
getFunction(nameOrSignature: "getAffiliateInfo"): TypedContractMethod<[
|
|
1833
2055
|
tradeId: BytesLike
|
|
1834
2056
|
], [
|
|
1835
|
-
ITypes.AffiliateStructOutput
|
|
2057
|
+
ITypes$1.AffiliateStructOutput
|
|
1836
2058
|
], "view">;
|
|
1837
2059
|
getFunction(nameOrSignature: "getCurrentEpoch"): TypedContractMethod<[
|
|
1838
|
-
|
|
1839
|
-
toChain: BytesLike
|
|
2060
|
+
handler: AddressLike
|
|
1840
2061
|
], [
|
|
1841
2062
|
[bigint, bigint, bigint]
|
|
1842
2063
|
], "view">;
|
|
1843
|
-
getFunction(nameOrSignature: "getCurrentStage"): TypedContractMethod<[
|
|
1844
|
-
|
|
2064
|
+
getFunction(nameOrSignature: "getCurrentStage"): TypedContractMethod<[
|
|
2065
|
+
tradeId: BytesLike
|
|
2066
|
+
], [
|
|
2067
|
+
[bigint, string] & {
|
|
2068
|
+
stage: bigint;
|
|
2069
|
+
swapType: string;
|
|
2070
|
+
}
|
|
2071
|
+
], "view">;
|
|
1845
2072
|
getFunction(nameOrSignature: "getFailureInfo"): TypedContractMethod<[
|
|
1846
2073
|
tradeId: BytesLike
|
|
1847
2074
|
], [
|
|
1848
|
-
ITypes.FailureDetailsStructOutput
|
|
2075
|
+
ITypes$1.FailureDetailsStructOutput
|
|
1849
2076
|
], "view">;
|
|
1850
2077
|
getFunction(nameOrSignature: "getFeeDetails"): TypedContractMethod<[
|
|
1851
2078
|
tradeId: BytesLike
|
|
1852
2079
|
], [
|
|
1853
|
-
ITypes.FeeDetailsStructOutput
|
|
2080
|
+
ITypes$1.FeeDetailsStructOutput
|
|
1854
2081
|
], "view">;
|
|
1855
2082
|
getFunction(nameOrSignature: "getHandler"): TypedContractMethod<[
|
|
1856
|
-
|
|
1857
|
-
|
|
2083
|
+
fromNetwork: BytesLike,
|
|
2084
|
+
toNetwork: BytesLike
|
|
1858
2085
|
], [
|
|
1859
2086
|
[string, string] & {
|
|
1860
2087
|
handler: string;
|
|
@@ -1869,107 +2096,67 @@ interface Router extends BaseContract {
|
|
|
1869
2096
|
handlerType: string;
|
|
1870
2097
|
}
|
|
1871
2098
|
], "view">;
|
|
1872
|
-
getFunction(nameOrSignature: "
|
|
1873
|
-
|
|
1874
|
-
|
|
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
|
|
2099
|
+
getFunction(nameOrSignature: "getHistoryCount"): TypedContractMethod<[
|
|
2100
|
+
fromNetwork: BytesLike,
|
|
2101
|
+
toNetwork: BytesLike
|
|
1888
2102
|
], [
|
|
1889
2103
|
bigint
|
|
1890
2104
|
], "view">;
|
|
1891
|
-
getFunction(nameOrSignature: "getPFeeRate"): TypedContractMethod<[], [bigint], "view">;
|
|
1892
|
-
getFunction(nameOrSignature: "getPMMAccounts"): TypedContractMethod<[
|
|
1893
|
-
pmmId: BytesLike,
|
|
1894
|
-
fromIdx: BigNumberish,
|
|
1895
|
-
toIdx: BigNumberish
|
|
1896
|
-
], [
|
|
1897
|
-
string[]
|
|
1898
|
-
], "view">;
|
|
1899
2105
|
getFunction(nameOrSignature: "getPMMSelection"): TypedContractMethod<[
|
|
1900
2106
|
tradeId: BytesLike
|
|
1901
2107
|
], [
|
|
1902
|
-
ITypes.PMMSelectionStructOutput
|
|
2108
|
+
ITypes$1.PMMSelectionStructOutput
|
|
1903
2109
|
], "view">;
|
|
1904
2110
|
getFunction(nameOrSignature: "getPendingTrades"): TypedContractMethod<[
|
|
2111
|
+
handler: AddressLike,
|
|
1905
2112
|
epochNo: BigNumberish,
|
|
1906
2113
|
fromIdx: BigNumberish,
|
|
1907
|
-
toIdx: BigNumberish
|
|
1908
|
-
fromChain: BytesLike,
|
|
1909
|
-
toChain: BytesLike
|
|
2114
|
+
toIdx: BigNumberish
|
|
1910
2115
|
], [
|
|
1911
2116
|
string[]
|
|
1912
2117
|
], "view">;
|
|
1913
2118
|
getFunction(nameOrSignature: "getPendingTradesCount"): TypedContractMethod<[
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
toChain: BytesLike
|
|
2119
|
+
handler: AddressLike,
|
|
2120
|
+
epochNo: BigNumberish
|
|
1917
2121
|
], [
|
|
1918
2122
|
bigint
|
|
1919
2123
|
], "view">;
|
|
1920
|
-
getFunction(nameOrSignature: "
|
|
1921
|
-
getFunction(nameOrSignature: "getRefundPresigns"): TypedContractMethod<[
|
|
2124
|
+
getFunction(nameOrSignature: "getRefundPresign"): TypedContractMethod<[
|
|
1922
2125
|
tradeId: BytesLike
|
|
1923
2126
|
], [
|
|
1924
|
-
ITypes.RefundPresignStructOutput
|
|
2127
|
+
ITypes$1.RefundPresignStructOutput
|
|
1925
2128
|
], "view">;
|
|
1926
|
-
getFunction(nameOrSignature: "
|
|
1927
|
-
|
|
2129
|
+
getFunction(nameOrSignature: "getRegisteredHandlers"): TypedContractMethod<[
|
|
2130
|
+
fromIdx: BigNumberish,
|
|
2131
|
+
toIdx: BigNumberish,
|
|
2132
|
+
fromNetwork: BytesLike,
|
|
2133
|
+
toNetwork: BytesLike
|
|
1928
2134
|
], [
|
|
1929
|
-
|
|
2135
|
+
string[]
|
|
1930
2136
|
], "view">;
|
|
1931
|
-
getFunction(nameOrSignature: "
|
|
1932
|
-
|
|
1933
|
-
toIdx: BigNumberish
|
|
2137
|
+
getFunction(nameOrSignature: "getSettlementPresigns"): TypedContractMethod<[
|
|
2138
|
+
tradeId: BytesLike
|
|
1934
2139
|
], [
|
|
1935
|
-
ITypes.
|
|
2140
|
+
ITypes$1.SettlementPresignStructOutput[]
|
|
1936
2141
|
], "view">;
|
|
2142
|
+
getFunction(nameOrSignature: "getSolver"): TypedContractMethod<[tradeId: BytesLike], [string], "view">;
|
|
1937
2143
|
getFunction(nameOrSignature: "getTradeData"): TypedContractMethod<[
|
|
1938
2144
|
tradeId: BytesLike
|
|
1939
2145
|
], [
|
|
1940
|
-
ITypes.TradeDataStructOutput
|
|
2146
|
+
ITypes$1.TradeDataStructOutput
|
|
1941
2147
|
], "view">;
|
|
1942
2148
|
getFunction(nameOrSignature: "getTradeFinalization"): TypedContractMethod<[
|
|
1943
2149
|
tradeId: BytesLike
|
|
1944
2150
|
], [
|
|
1945
|
-
ITypes.TradeFinalizationStructOutput
|
|
1946
|
-
], "view">;
|
|
1947
|
-
getFunction(nameOrSignature: "isMPCNode"): TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
1948
|
-
getFunction(nameOrSignature: "isSolver"): TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
1949
|
-
getFunction(nameOrSignature: "isSuspended"): TypedContractMethod<[stage: BigNumberish], [boolean], "view">;
|
|
1950
|
-
getFunction(nameOrSignature: "isValidNetwork"): TypedContractMethod<[networkId: BytesLike], [boolean], "view">;
|
|
1951
|
-
getFunction(nameOrSignature: "isValidPMM"): TypedContractMethod<[pmmId: BytesLike], [boolean], "view">;
|
|
1952
|
-
getFunction(nameOrSignature: "isValidPMMAccount"): TypedContractMethod<[
|
|
1953
|
-
pmmId: BytesLike,
|
|
1954
|
-
account: AddressLike
|
|
1955
|
-
], [
|
|
1956
|
-
boolean
|
|
1957
|
-
], "view">;
|
|
1958
|
-
getFunction(nameOrSignature: "isValidPubkey"): TypedContractMethod<[
|
|
1959
|
-
networkId: BytesLike,
|
|
1960
|
-
pubkey: BytesLike
|
|
1961
|
-
], [
|
|
1962
|
-
boolean
|
|
1963
|
-
], "view">;
|
|
1964
|
-
getFunction(nameOrSignature: "isValidToken"): TypedContractMethod<[
|
|
1965
|
-
networkId: BytesLike,
|
|
1966
|
-
tokenId: BytesLike
|
|
1967
|
-
], [
|
|
1968
|
-
boolean
|
|
2151
|
+
ITypes$1.TradeFinalizationStructOutput
|
|
1969
2152
|
], "view">;
|
|
1970
2153
|
getFunction(nameOrSignature: "management"): TypedContractMethod<[], [string], "view">;
|
|
1971
|
-
getFunction(nameOrSignature: "
|
|
1972
|
-
|
|
2154
|
+
getFunction(nameOrSignature: "migrate"): TypedContractMethod<[
|
|
2155
|
+
referenceIds: BytesLike[],
|
|
2156
|
+
handlers: AddressLike[]
|
|
2157
|
+
], [
|
|
2158
|
+
void
|
|
2159
|
+
], "nonpayable">;
|
|
1973
2160
|
getFunction(nameOrSignature: "refund"): TypedContractMethod<[
|
|
1974
2161
|
tradeId: BytesLike,
|
|
1975
2162
|
refundTxId: BytesLike,
|
|
@@ -1980,48 +2167,63 @@ interface Router extends BaseContract {
|
|
|
1980
2167
|
getFunction(nameOrSignature: "report"): TypedContractMethod<[
|
|
1981
2168
|
tradeId: BytesLike,
|
|
1982
2169
|
msgError: BytesLike,
|
|
2170
|
+
referenceInfo: BytesLike,
|
|
1983
2171
|
signature: BytesLike
|
|
1984
2172
|
], [
|
|
1985
2173
|
void
|
|
1986
2174
|
], "nonpayable">;
|
|
1987
2175
|
getFunction(nameOrSignature: "selectPMM"): TypedContractMethod<[
|
|
1988
2176
|
tradeId: BytesLike,
|
|
1989
|
-
info: ITypes.PMMSelectionStruct
|
|
2177
|
+
info: ITypes$1.PMMSelectionStruct
|
|
1990
2178
|
], [
|
|
1991
2179
|
void
|
|
1992
2180
|
], "nonpayable">;
|
|
1993
2181
|
getFunction(nameOrSignature: "setManagement"): TypedContractMethod<[newManagement: AddressLike], [void], "nonpayable">;
|
|
1994
2182
|
getFunction(nameOrSignature: "setRoute"): TypedContractMethod<[
|
|
1995
2183
|
handler: AddressLike,
|
|
1996
|
-
|
|
1997
|
-
|
|
2184
|
+
fromNetwork: BytesLike,
|
|
2185
|
+
toNetwork: BytesLike
|
|
2186
|
+
], [
|
|
2187
|
+
void
|
|
2188
|
+
], "nonpayable">;
|
|
2189
|
+
getFunction(nameOrSignature: "submitDeposit"): TypedContractMethod<[
|
|
2190
|
+
tradeId: BytesLike,
|
|
2191
|
+
tradeData: ITypes$1.TradeDataStruct,
|
|
2192
|
+
refundPresign: ITypes$1.RefundPresignStruct
|
|
1998
2193
|
], [
|
|
1999
2194
|
void
|
|
2000
2195
|
], "nonpayable">;
|
|
2001
2196
|
getFunction(nameOrSignature: "submitTrade"): TypedContractMethod<[
|
|
2002
2197
|
tradeId: BytesLike,
|
|
2003
|
-
tradeData: ITypes.TradeDataStruct,
|
|
2004
|
-
affiliateInfo: ITypes.AffiliateStruct,
|
|
2005
|
-
settlementPresigns: ITypes.SettlementPresignStruct[],
|
|
2006
|
-
refundPresign: ITypes.RefundPresignStruct
|
|
2198
|
+
tradeData: ITypes$1.TradeDataStruct,
|
|
2199
|
+
affiliateInfo: ITypes$1.AffiliateStruct,
|
|
2200
|
+
settlementPresigns: ITypes$1.SettlementPresignStruct[],
|
|
2201
|
+
refundPresign: ITypes$1.RefundPresignStruct
|
|
2007
2202
|
], [
|
|
2008
2203
|
void
|
|
2009
2204
|
], "nonpayable">;
|
|
2010
|
-
|
|
2205
|
+
getEvent(key: "Abort"): TypedContractEvent<AbortEvent.InputTuple, AbortEvent.OutputTuple, AbortEvent.OutputObject>;
|
|
2011
2206
|
getEvent(key: "ConfirmDeposit"): TypedContractEvent<ConfirmDepositEvent.InputTuple, ConfirmDepositEvent.OutputTuple, ConfirmDepositEvent.OutputObject>;
|
|
2012
2207
|
getEvent(key: "ConfirmPayment"): TypedContractEvent<ConfirmPaymentEvent.InputTuple, ConfirmPaymentEvent.OutputTuple, ConfirmPaymentEvent.OutputObject>;
|
|
2208
|
+
getEvent(key: "ConfirmPresign"): TypedContractEvent<ConfirmPresignEvent.InputTuple, ConfirmPresignEvent.OutputTuple, ConfirmPresignEvent.OutputObject>;
|
|
2013
2209
|
getEvent(key: "ConfirmRefund"): TypedContractEvent<ConfirmRefundEvent.InputTuple, ConfirmRefundEvent.OutputTuple, ConfirmRefundEvent.OutputObject>;
|
|
2014
2210
|
getEvent(key: "ConfirmSettlement"): TypedContractEvent<ConfirmSettlementEvent.InputTuple, ConfirmSettlementEvent.OutputTuple, ConfirmSettlementEvent.OutputObject>;
|
|
2015
2211
|
getEvent(key: "MakePayment"): TypedContractEvent<MakePaymentEvent.InputTuple, MakePaymentEvent.OutputTuple, MakePaymentEvent.OutputObject>;
|
|
2016
2212
|
getEvent(key: "ReportFailure"): TypedContractEvent<ReportFailureEvent.InputTuple, ReportFailureEvent.OutputTuple, ReportFailureEvent.OutputObject>;
|
|
2017
2213
|
getEvent(key: "SelectPMM"): TypedContractEvent<SelectPMMEvent.InputTuple, SelectPMMEvent.OutputTuple, SelectPMMEvent.OutputObject>;
|
|
2214
|
+
getEvent(key: "SubmitDeposit"): TypedContractEvent<SubmitDepositEvent.InputTuple, SubmitDepositEvent.OutputTuple, SubmitDepositEvent.OutputObject>;
|
|
2018
2215
|
getEvent(key: "SubmitTradeInfo"): TypedContractEvent<SubmitTradeInfoEvent.InputTuple, SubmitTradeInfoEvent.OutputTuple, SubmitTradeInfoEvent.OutputObject>;
|
|
2216
|
+
getEvent(key: "UpdatedManagement"): TypedContractEvent<UpdatedManagementEvent.InputTuple, UpdatedManagementEvent.OutputTuple, UpdatedManagementEvent.OutputObject>;
|
|
2019
2217
|
getEvent(key: "UpdatedRoute"): TypedContractEvent<UpdatedRouteEvent.InputTuple, UpdatedRouteEvent.OutputTuple, UpdatedRouteEvent.OutputObject>;
|
|
2020
2218
|
filters: {
|
|
2021
|
-
"
|
|
2219
|
+
"Abort(address,bytes32)": TypedContractEvent<AbortEvent.InputTuple, AbortEvent.OutputTuple, AbortEvent.OutputObject>;
|
|
2220
|
+
Abort: TypedContractEvent<AbortEvent.InputTuple, AbortEvent.OutputTuple, AbortEvent.OutputObject>;
|
|
2221
|
+
"ConfirmDeposit(address,bytes32)": TypedContractEvent<ConfirmDepositEvent.InputTuple, ConfirmDepositEvent.OutputTuple, ConfirmDepositEvent.OutputObject>;
|
|
2022
2222
|
ConfirmDeposit: TypedContractEvent<ConfirmDepositEvent.InputTuple, ConfirmDepositEvent.OutputTuple, ConfirmDepositEvent.OutputObject>;
|
|
2023
2223
|
"ConfirmPayment(address,bytes32)": TypedContractEvent<ConfirmPaymentEvent.InputTuple, ConfirmPaymentEvent.OutputTuple, ConfirmPaymentEvent.OutputObject>;
|
|
2024
2224
|
ConfirmPayment: TypedContractEvent<ConfirmPaymentEvent.InputTuple, ConfirmPaymentEvent.OutputTuple, ConfirmPaymentEvent.OutputObject>;
|
|
2225
|
+
"ConfirmPresign(address,bytes32)": TypedContractEvent<ConfirmPresignEvent.InputTuple, ConfirmPresignEvent.OutputTuple, ConfirmPresignEvent.OutputObject>;
|
|
2226
|
+
ConfirmPresign: TypedContractEvent<ConfirmPresignEvent.InputTuple, ConfirmPresignEvent.OutputTuple, ConfirmPresignEvent.OutputObject>;
|
|
2025
2227
|
"ConfirmRefund(address,bytes32)": TypedContractEvent<ConfirmRefundEvent.InputTuple, ConfirmRefundEvent.OutputTuple, ConfirmRefundEvent.OutputObject>;
|
|
2026
2228
|
ConfirmRefund: TypedContractEvent<ConfirmRefundEvent.InputTuple, ConfirmRefundEvent.OutputTuple, ConfirmRefundEvent.OutputObject>;
|
|
2027
2229
|
"ConfirmSettlement(address,bytes32)": TypedContractEvent<ConfirmSettlementEvent.InputTuple, ConfirmSettlementEvent.OutputTuple, ConfirmSettlementEvent.OutputObject>;
|
|
@@ -2032,9 +2234,13 @@ interface Router extends BaseContract {
|
|
|
2032
2234
|
ReportFailure: TypedContractEvent<ReportFailureEvent.InputTuple, ReportFailureEvent.OutputTuple, ReportFailureEvent.OutputObject>;
|
|
2033
2235
|
"SelectPMM(address,bytes32)": TypedContractEvent<SelectPMMEvent.InputTuple, SelectPMMEvent.OutputTuple, SelectPMMEvent.OutputObject>;
|
|
2034
2236
|
SelectPMM: TypedContractEvent<SelectPMMEvent.InputTuple, SelectPMMEvent.OutputTuple, SelectPMMEvent.OutputObject>;
|
|
2237
|
+
"SubmitDeposit(address,bytes32)": TypedContractEvent<SubmitDepositEvent.InputTuple, SubmitDepositEvent.OutputTuple, SubmitDepositEvent.OutputObject>;
|
|
2238
|
+
SubmitDeposit: TypedContractEvent<SubmitDepositEvent.InputTuple, SubmitDepositEvent.OutputTuple, SubmitDepositEvent.OutputObject>;
|
|
2035
2239
|
"SubmitTradeInfo(address,bytes32)": TypedContractEvent<SubmitTradeInfoEvent.InputTuple, SubmitTradeInfoEvent.OutputTuple, SubmitTradeInfoEvent.OutputObject>;
|
|
2036
2240
|
SubmitTradeInfo: TypedContractEvent<SubmitTradeInfoEvent.InputTuple, SubmitTradeInfoEvent.OutputTuple, SubmitTradeInfoEvent.OutputObject>;
|
|
2037
|
-
"
|
|
2241
|
+
"UpdatedManagement(address,address)": TypedContractEvent<UpdatedManagementEvent.InputTuple, UpdatedManagementEvent.OutputTuple, UpdatedManagementEvent.OutputObject>;
|
|
2242
|
+
UpdatedManagement: TypedContractEvent<UpdatedManagementEvent.InputTuple, UpdatedManagementEvent.OutputTuple, UpdatedManagementEvent.OutputObject>;
|
|
2243
|
+
"UpdatedRoute(address,bytes,bytes)": TypedContractEvent<UpdatedRouteEvent.InputTuple, UpdatedRouteEvent.OutputTuple, UpdatedRouteEvent.OutputObject>;
|
|
2038
2244
|
UpdatedRoute: TypedContractEvent<UpdatedRouteEvent.InputTuple, UpdatedRouteEvent.OutputTuple, UpdatedRouteEvent.OutputObject>;
|
|
2039
2245
|
};
|
|
2040
2246
|
}
|
|
@@ -3256,76 +3462,662 @@ declare class ERC20__factory {
|
|
|
3256
3462
|
readonly name: "_account";
|
|
3257
3463
|
readonly type: "address";
|
|
3258
3464
|
}];
|
|
3259
|
-
readonly name: "unBlacklist";
|
|
3260
|
-
readonly outputs: readonly [];
|
|
3261
|
-
readonly stateMutability: "nonpayable";
|
|
3465
|
+
readonly name: "unBlacklist";
|
|
3466
|
+
readonly outputs: readonly [];
|
|
3467
|
+
readonly stateMutability: "nonpayable";
|
|
3468
|
+
readonly type: "function";
|
|
3469
|
+
}, {
|
|
3470
|
+
readonly inputs: readonly [];
|
|
3471
|
+
readonly name: "unpause";
|
|
3472
|
+
readonly outputs: readonly [];
|
|
3473
|
+
readonly stateMutability: "nonpayable";
|
|
3474
|
+
readonly type: "function";
|
|
3475
|
+
}, {
|
|
3476
|
+
readonly inputs: readonly [{
|
|
3477
|
+
readonly internalType: "address";
|
|
3478
|
+
readonly name: "_newBlacklister";
|
|
3479
|
+
readonly type: "address";
|
|
3480
|
+
}];
|
|
3481
|
+
readonly name: "updateBlacklister";
|
|
3482
|
+
readonly outputs: readonly [];
|
|
3483
|
+
readonly stateMutability: "nonpayable";
|
|
3484
|
+
readonly type: "function";
|
|
3485
|
+
}, {
|
|
3486
|
+
readonly inputs: readonly [{
|
|
3487
|
+
readonly internalType: "address";
|
|
3488
|
+
readonly name: "_newMasterMinter";
|
|
3489
|
+
readonly type: "address";
|
|
3490
|
+
}];
|
|
3491
|
+
readonly name: "updateMasterMinter";
|
|
3492
|
+
readonly outputs: readonly [];
|
|
3493
|
+
readonly stateMutability: "nonpayable";
|
|
3494
|
+
readonly type: "function";
|
|
3495
|
+
}, {
|
|
3496
|
+
readonly inputs: readonly [{
|
|
3497
|
+
readonly internalType: "address";
|
|
3498
|
+
readonly name: "_newPauser";
|
|
3499
|
+
readonly type: "address";
|
|
3500
|
+
}];
|
|
3501
|
+
readonly name: "updatePauser";
|
|
3502
|
+
readonly outputs: readonly [];
|
|
3503
|
+
readonly stateMutability: "nonpayable";
|
|
3504
|
+
readonly type: "function";
|
|
3505
|
+
}, {
|
|
3506
|
+
readonly inputs: readonly [{
|
|
3507
|
+
readonly internalType: "address";
|
|
3508
|
+
readonly name: "newRescuer";
|
|
3509
|
+
readonly type: "address";
|
|
3510
|
+
}];
|
|
3511
|
+
readonly name: "updateRescuer";
|
|
3512
|
+
readonly outputs: readonly [];
|
|
3513
|
+
readonly stateMutability: "nonpayable";
|
|
3514
|
+
readonly type: "function";
|
|
3515
|
+
}, {
|
|
3516
|
+
readonly inputs: readonly [];
|
|
3517
|
+
readonly name: "version";
|
|
3518
|
+
readonly outputs: readonly [{
|
|
3519
|
+
readonly internalType: "string";
|
|
3520
|
+
readonly name: "";
|
|
3521
|
+
readonly type: "string";
|
|
3522
|
+
}];
|
|
3523
|
+
readonly stateMutability: "pure";
|
|
3524
|
+
readonly type: "function";
|
|
3525
|
+
}];
|
|
3526
|
+
static createInterface(): ERC20Interface;
|
|
3527
|
+
static connect(address: string, runner?: ContractRunner | null): ERC20;
|
|
3528
|
+
}
|
|
3529
|
+
|
|
3530
|
+
declare class Payment__factory {
|
|
3531
|
+
static readonly abi: readonly [{
|
|
3532
|
+
readonly inputs: readonly [{
|
|
3533
|
+
readonly internalType: "address";
|
|
3534
|
+
readonly name: "pAddress";
|
|
3535
|
+
readonly type: "address";
|
|
3536
|
+
}];
|
|
3537
|
+
readonly stateMutability: "nonpayable";
|
|
3538
|
+
readonly type: "constructor";
|
|
3539
|
+
}, {
|
|
3540
|
+
readonly inputs: readonly [];
|
|
3541
|
+
readonly name: "AddressZero";
|
|
3542
|
+
readonly type: "error";
|
|
3543
|
+
}, {
|
|
3544
|
+
readonly inputs: readonly [];
|
|
3545
|
+
readonly name: "DeadlineExceeded";
|
|
3546
|
+
readonly type: "error";
|
|
3547
|
+
}, {
|
|
3548
|
+
readonly inputs: readonly [];
|
|
3549
|
+
readonly name: "FailedCall";
|
|
3550
|
+
readonly type: "error";
|
|
3551
|
+
}, {
|
|
3552
|
+
readonly inputs: readonly [{
|
|
3553
|
+
readonly internalType: "uint256";
|
|
3554
|
+
readonly name: "balance";
|
|
3555
|
+
readonly type: "uint256";
|
|
3556
|
+
}, {
|
|
3557
|
+
readonly internalType: "uint256";
|
|
3558
|
+
readonly name: "needed";
|
|
3559
|
+
readonly type: "uint256";
|
|
3560
|
+
}];
|
|
3561
|
+
readonly name: "InsufficientBalance";
|
|
3562
|
+
readonly type: "error";
|
|
3563
|
+
}, {
|
|
3564
|
+
readonly inputs: readonly [];
|
|
3565
|
+
readonly name: "InvalidPaymentAmount";
|
|
3566
|
+
readonly type: "error";
|
|
3567
|
+
}, {
|
|
3568
|
+
readonly inputs: readonly [];
|
|
3569
|
+
readonly name: "NativeCoinNotMatched";
|
|
3570
|
+
readonly type: "error";
|
|
3571
|
+
}, {
|
|
3572
|
+
readonly inputs: readonly [];
|
|
3573
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
3574
|
+
readonly type: "error";
|
|
3575
|
+
}, {
|
|
3576
|
+
readonly inputs: readonly [{
|
|
3577
|
+
readonly internalType: "address";
|
|
3578
|
+
readonly name: "token";
|
|
3579
|
+
readonly type: "address";
|
|
3580
|
+
}];
|
|
3581
|
+
readonly name: "SafeERC20FailedOperation";
|
|
3582
|
+
readonly type: "error";
|
|
3583
|
+
}, {
|
|
3584
|
+
readonly inputs: readonly [];
|
|
3585
|
+
readonly name: "Unauthorized";
|
|
3586
|
+
readonly type: "error";
|
|
3587
|
+
}, {
|
|
3588
|
+
readonly anonymous: false;
|
|
3589
|
+
readonly inputs: readonly [{
|
|
3590
|
+
readonly indexed: true;
|
|
3591
|
+
readonly internalType: "bytes32";
|
|
3592
|
+
readonly name: "tradeId";
|
|
3593
|
+
readonly type: "bytes32";
|
|
3594
|
+
}, {
|
|
3595
|
+
readonly indexed: true;
|
|
3596
|
+
readonly internalType: "address";
|
|
3597
|
+
readonly name: "from";
|
|
3598
|
+
readonly type: "address";
|
|
3599
|
+
}, {
|
|
3600
|
+
readonly indexed: true;
|
|
3601
|
+
readonly internalType: "address";
|
|
3602
|
+
readonly name: "to";
|
|
3603
|
+
readonly type: "address";
|
|
3604
|
+
}, {
|
|
3605
|
+
readonly indexed: false;
|
|
3606
|
+
readonly internalType: "address";
|
|
3607
|
+
readonly name: "pFeeAddr";
|
|
3608
|
+
readonly type: "address";
|
|
3609
|
+
}, {
|
|
3610
|
+
readonly indexed: false;
|
|
3611
|
+
readonly internalType: "address";
|
|
3612
|
+
readonly name: "token";
|
|
3613
|
+
readonly type: "address";
|
|
3614
|
+
}, {
|
|
3615
|
+
readonly indexed: false;
|
|
3616
|
+
readonly internalType: "uint256";
|
|
3617
|
+
readonly name: "payToUser";
|
|
3618
|
+
readonly type: "uint256";
|
|
3619
|
+
}, {
|
|
3620
|
+
readonly indexed: false;
|
|
3621
|
+
readonly internalType: "uint256";
|
|
3622
|
+
readonly name: "totalFee";
|
|
3623
|
+
readonly type: "uint256";
|
|
3624
|
+
}];
|
|
3625
|
+
readonly name: "PaymentTransferred";
|
|
3626
|
+
readonly type: "event";
|
|
3627
|
+
}, {
|
|
3628
|
+
readonly anonymous: false;
|
|
3629
|
+
readonly inputs: readonly [{
|
|
3630
|
+
readonly indexed: true;
|
|
3631
|
+
readonly internalType: "address";
|
|
3632
|
+
readonly name: "owner";
|
|
3633
|
+
readonly type: "address";
|
|
3634
|
+
}, {
|
|
3635
|
+
readonly indexed: true;
|
|
3636
|
+
readonly internalType: "address";
|
|
3637
|
+
readonly name: "newProtocol";
|
|
3638
|
+
readonly type: "address";
|
|
3639
|
+
}];
|
|
3640
|
+
readonly name: "ProtocolUpdated";
|
|
3641
|
+
readonly type: "event";
|
|
3642
|
+
}, {
|
|
3643
|
+
readonly inputs: readonly [{
|
|
3644
|
+
readonly internalType: "bytes32";
|
|
3645
|
+
readonly name: "tradeId";
|
|
3646
|
+
readonly type: "bytes32";
|
|
3647
|
+
}, {
|
|
3648
|
+
readonly internalType: "address";
|
|
3649
|
+
readonly name: "token";
|
|
3650
|
+
readonly type: "address";
|
|
3651
|
+
}, {
|
|
3652
|
+
readonly internalType: "address";
|
|
3653
|
+
readonly name: "toUser";
|
|
3654
|
+
readonly type: "address";
|
|
3655
|
+
}, {
|
|
3656
|
+
readonly internalType: "uint256";
|
|
3657
|
+
readonly name: "amount";
|
|
3658
|
+
readonly type: "uint256";
|
|
3659
|
+
}, {
|
|
3660
|
+
readonly internalType: "uint256";
|
|
3661
|
+
readonly name: "totalFee";
|
|
3662
|
+
readonly type: "uint256";
|
|
3663
|
+
}, {
|
|
3664
|
+
readonly internalType: "uint256";
|
|
3665
|
+
readonly name: "deadline";
|
|
3666
|
+
readonly type: "uint256";
|
|
3667
|
+
}];
|
|
3668
|
+
readonly name: "payment";
|
|
3669
|
+
readonly outputs: readonly [];
|
|
3670
|
+
readonly stateMutability: "payable";
|
|
3671
|
+
readonly type: "function";
|
|
3672
|
+
}, {
|
|
3673
|
+
readonly inputs: readonly [];
|
|
3674
|
+
readonly name: "protocol";
|
|
3675
|
+
readonly outputs: readonly [{
|
|
3676
|
+
readonly internalType: "contract IProtocol";
|
|
3677
|
+
readonly name: "";
|
|
3678
|
+
readonly type: "address";
|
|
3679
|
+
}];
|
|
3680
|
+
readonly stateMutability: "view";
|
|
3681
|
+
readonly type: "function";
|
|
3682
|
+
}, {
|
|
3683
|
+
readonly inputs: readonly [{
|
|
3684
|
+
readonly internalType: "address";
|
|
3685
|
+
readonly name: "newProtocol";
|
|
3686
|
+
readonly type: "address";
|
|
3687
|
+
}];
|
|
3688
|
+
readonly name: "setProtocol";
|
|
3689
|
+
readonly outputs: readonly [];
|
|
3690
|
+
readonly stateMutability: "nonpayable";
|
|
3691
|
+
readonly type: "function";
|
|
3692
|
+
}];
|
|
3693
|
+
static createInterface(): PaymentInterface;
|
|
3694
|
+
static connect(address: string, runner?: ContractRunner | null): Payment;
|
|
3695
|
+
}
|
|
3696
|
+
|
|
3697
|
+
declare class ProtocolFetcherProxy__factory {
|
|
3698
|
+
static readonly abi: readonly [{
|
|
3699
|
+
readonly inputs: readonly [{
|
|
3700
|
+
readonly internalType: "contract IManagement";
|
|
3701
|
+
readonly name: "management_";
|
|
3702
|
+
readonly type: "address";
|
|
3703
|
+
}, {
|
|
3704
|
+
readonly internalType: "contract IVaultRegistry";
|
|
3705
|
+
readonly name: "vaultRegistry_";
|
|
3706
|
+
readonly type: "address";
|
|
3707
|
+
}, {
|
|
3708
|
+
readonly internalType: "contract IRouter";
|
|
3709
|
+
readonly name: "router_";
|
|
3710
|
+
readonly type: "address";
|
|
3711
|
+
}, {
|
|
3712
|
+
readonly internalType: "contract ISignerExtension";
|
|
3713
|
+
readonly name: "signerExtension_";
|
|
3714
|
+
readonly type: "address";
|
|
3715
|
+
}];
|
|
3716
|
+
readonly stateMutability: "nonpayable";
|
|
3717
|
+
readonly type: "constructor";
|
|
3718
|
+
}, {
|
|
3719
|
+
readonly inputs: readonly [];
|
|
3720
|
+
readonly name: "AddressZero";
|
|
3721
|
+
readonly type: "error";
|
|
3722
|
+
}, {
|
|
3723
|
+
readonly inputs: readonly [];
|
|
3724
|
+
readonly name: "Unauthorized";
|
|
3725
|
+
readonly type: "error";
|
|
3726
|
+
}, {
|
|
3727
|
+
readonly inputs: readonly [{
|
|
3728
|
+
readonly internalType: "bytes";
|
|
3729
|
+
readonly name: "networkId";
|
|
3730
|
+
readonly type: "bytes";
|
|
3731
|
+
}];
|
|
3732
|
+
readonly name: "getLatestMPCInfo";
|
|
3733
|
+
readonly outputs: readonly [{
|
|
3734
|
+
readonly components: readonly [{
|
|
3735
|
+
readonly internalType: "address";
|
|
3736
|
+
readonly name: "mpcL2Address";
|
|
3737
|
+
readonly type: "address";
|
|
3738
|
+
}, {
|
|
3739
|
+
readonly internalType: "uint64";
|
|
3740
|
+
readonly name: "expireTime";
|
|
3741
|
+
readonly type: "uint64";
|
|
3742
|
+
}, {
|
|
3743
|
+
readonly internalType: "bytes";
|
|
3744
|
+
readonly name: "mpcL2Pubkey";
|
|
3745
|
+
readonly type: "bytes";
|
|
3746
|
+
}, {
|
|
3747
|
+
readonly internalType: "bytes";
|
|
3748
|
+
readonly name: "mpcAssetPubkey";
|
|
3749
|
+
readonly type: "bytes";
|
|
3750
|
+
}];
|
|
3751
|
+
readonly internalType: "struct ITypes.MPCInfo";
|
|
3752
|
+
readonly name: "";
|
|
3753
|
+
readonly type: "tuple";
|
|
3754
|
+
}];
|
|
3755
|
+
readonly stateMutability: "view";
|
|
3756
|
+
readonly type: "function";
|
|
3757
|
+
}, {
|
|
3758
|
+
readonly inputs: readonly [{
|
|
3759
|
+
readonly internalType: "bytes";
|
|
3760
|
+
readonly name: "networkId";
|
|
3761
|
+
readonly type: "bytes";
|
|
3762
|
+
}, {
|
|
3763
|
+
readonly internalType: "bytes";
|
|
3764
|
+
readonly name: "pubkey";
|
|
3765
|
+
readonly type: "bytes";
|
|
3766
|
+
}];
|
|
3767
|
+
readonly name: "getMPCInfo";
|
|
3768
|
+
readonly outputs: readonly [{
|
|
3769
|
+
readonly components: readonly [{
|
|
3770
|
+
readonly internalType: "address";
|
|
3771
|
+
readonly name: "mpcL2Address";
|
|
3772
|
+
readonly type: "address";
|
|
3773
|
+
}, {
|
|
3774
|
+
readonly internalType: "uint64";
|
|
3775
|
+
readonly name: "expireTime";
|
|
3776
|
+
readonly type: "uint64";
|
|
3777
|
+
}, {
|
|
3778
|
+
readonly internalType: "bytes";
|
|
3779
|
+
readonly name: "mpcL2Pubkey";
|
|
3780
|
+
readonly type: "bytes";
|
|
3781
|
+
}, {
|
|
3782
|
+
readonly internalType: "bytes";
|
|
3783
|
+
readonly name: "mpcAssetPubkey";
|
|
3784
|
+
readonly type: "bytes";
|
|
3785
|
+
}];
|
|
3786
|
+
readonly internalType: "struct ITypes.MPCInfo";
|
|
3787
|
+
readonly name: "info";
|
|
3788
|
+
readonly type: "tuple";
|
|
3789
|
+
}];
|
|
3790
|
+
readonly stateMutability: "view";
|
|
3791
|
+
readonly type: "function";
|
|
3792
|
+
}, {
|
|
3793
|
+
readonly inputs: readonly [];
|
|
3794
|
+
readonly name: "getManagementOwner";
|
|
3795
|
+
readonly outputs: readonly [{
|
|
3796
|
+
readonly internalType: "address";
|
|
3797
|
+
readonly name: "";
|
|
3798
|
+
readonly type: "address";
|
|
3799
|
+
}];
|
|
3800
|
+
readonly stateMutability: "view";
|
|
3801
|
+
readonly type: "function";
|
|
3802
|
+
}, {
|
|
3803
|
+
readonly inputs: readonly [{
|
|
3804
|
+
readonly internalType: "bytes[4]";
|
|
3805
|
+
readonly name: "pairInfo";
|
|
3806
|
+
readonly type: "bytes[4]";
|
|
3807
|
+
}];
|
|
3808
|
+
readonly name: "getPFeeRate";
|
|
3809
|
+
readonly outputs: readonly [{
|
|
3810
|
+
readonly internalType: "uint256";
|
|
3811
|
+
readonly name: "";
|
|
3812
|
+
readonly type: "uint256";
|
|
3813
|
+
}];
|
|
3814
|
+
readonly stateMutability: "view";
|
|
3815
|
+
readonly type: "function";
|
|
3816
|
+
}, {
|
|
3817
|
+
readonly inputs: readonly [{
|
|
3818
|
+
readonly internalType: "bytes32";
|
|
3819
|
+
readonly name: "pmmId";
|
|
3820
|
+
readonly type: "bytes32";
|
|
3821
|
+
}, {
|
|
3822
|
+
readonly internalType: "uint256";
|
|
3823
|
+
readonly name: "fromIdx";
|
|
3824
|
+
readonly type: "uint256";
|
|
3825
|
+
}, {
|
|
3826
|
+
readonly internalType: "uint256";
|
|
3827
|
+
readonly name: "toIdx";
|
|
3828
|
+
readonly type: "uint256";
|
|
3829
|
+
}];
|
|
3830
|
+
readonly name: "getPMMAccounts";
|
|
3831
|
+
readonly outputs: readonly [{
|
|
3832
|
+
readonly internalType: "address[]";
|
|
3833
|
+
readonly name: "list";
|
|
3834
|
+
readonly type: "address[]";
|
|
3835
|
+
}];
|
|
3836
|
+
readonly stateMutability: "view";
|
|
3837
|
+
readonly type: "function";
|
|
3838
|
+
}, {
|
|
3839
|
+
readonly inputs: readonly [];
|
|
3840
|
+
readonly name: "getProtocolState";
|
|
3841
|
+
readonly outputs: readonly [{
|
|
3842
|
+
readonly internalType: "uint256";
|
|
3843
|
+
readonly name: "";
|
|
3844
|
+
readonly type: "uint256";
|
|
3845
|
+
}];
|
|
3846
|
+
readonly stateMutability: "view";
|
|
3847
|
+
readonly type: "function";
|
|
3848
|
+
}, {
|
|
3849
|
+
readonly inputs: readonly [{
|
|
3850
|
+
readonly internalType: "uint256";
|
|
3851
|
+
readonly name: "fromIdx";
|
|
3852
|
+
readonly type: "uint256";
|
|
3853
|
+
}, {
|
|
3854
|
+
readonly internalType: "uint256";
|
|
3855
|
+
readonly name: "toIdx";
|
|
3856
|
+
readonly type: "uint256";
|
|
3857
|
+
}];
|
|
3858
|
+
readonly name: "getTokens";
|
|
3859
|
+
readonly outputs: readonly [{
|
|
3860
|
+
readonly components: readonly [{
|
|
3861
|
+
readonly internalType: "bytes[5]";
|
|
3862
|
+
readonly name: "info";
|
|
3863
|
+
readonly type: "bytes[5]";
|
|
3864
|
+
}, {
|
|
3865
|
+
readonly internalType: "uint256";
|
|
3866
|
+
readonly name: "decimals";
|
|
3867
|
+
readonly type: "uint256";
|
|
3868
|
+
}];
|
|
3869
|
+
readonly internalType: "struct ITypes.TokenInfo[]";
|
|
3870
|
+
readonly name: "list";
|
|
3871
|
+
readonly type: "tuple[]";
|
|
3872
|
+
}];
|
|
3873
|
+
readonly stateMutability: "view";
|
|
3874
|
+
readonly type: "function";
|
|
3875
|
+
}, {
|
|
3876
|
+
readonly inputs: readonly [{
|
|
3877
|
+
readonly internalType: "bytes";
|
|
3878
|
+
readonly name: "networkId";
|
|
3879
|
+
readonly type: "bytes";
|
|
3880
|
+
}, {
|
|
3881
|
+
readonly internalType: "bytes";
|
|
3882
|
+
readonly name: "tokenId";
|
|
3883
|
+
readonly type: "bytes";
|
|
3884
|
+
}];
|
|
3885
|
+
readonly name: "getVault";
|
|
3886
|
+
readonly outputs: readonly [{
|
|
3887
|
+
readonly internalType: "address";
|
|
3888
|
+
readonly name: "";
|
|
3889
|
+
readonly type: "address";
|
|
3890
|
+
}];
|
|
3891
|
+
readonly stateMutability: "view";
|
|
3892
|
+
readonly type: "function";
|
|
3893
|
+
}, {
|
|
3894
|
+
readonly inputs: readonly [{
|
|
3895
|
+
readonly internalType: "address";
|
|
3896
|
+
readonly name: "account";
|
|
3897
|
+
readonly type: "address";
|
|
3898
|
+
}];
|
|
3899
|
+
readonly name: "isMPCNode";
|
|
3900
|
+
readonly outputs: readonly [{
|
|
3901
|
+
readonly internalType: "bool";
|
|
3902
|
+
readonly name: "";
|
|
3903
|
+
readonly type: "bool";
|
|
3904
|
+
}];
|
|
3905
|
+
readonly stateMutability: "view";
|
|
3906
|
+
readonly type: "function";
|
|
3907
|
+
}, {
|
|
3908
|
+
readonly inputs: readonly [{
|
|
3909
|
+
readonly internalType: "address";
|
|
3910
|
+
readonly name: "account";
|
|
3911
|
+
readonly type: "address";
|
|
3912
|
+
}];
|
|
3913
|
+
readonly name: "isSolver";
|
|
3914
|
+
readonly outputs: readonly [{
|
|
3915
|
+
readonly internalType: "bool";
|
|
3916
|
+
readonly name: "";
|
|
3917
|
+
readonly type: "bool";
|
|
3918
|
+
}];
|
|
3919
|
+
readonly stateMutability: "view";
|
|
3920
|
+
readonly type: "function";
|
|
3921
|
+
}, {
|
|
3922
|
+
readonly inputs: readonly [{
|
|
3923
|
+
readonly internalType: "bytes";
|
|
3924
|
+
readonly name: "networkId";
|
|
3925
|
+
readonly type: "bytes";
|
|
3926
|
+
}];
|
|
3927
|
+
readonly name: "isValidNetwork";
|
|
3928
|
+
readonly outputs: readonly [{
|
|
3929
|
+
readonly internalType: "bool";
|
|
3930
|
+
readonly name: "";
|
|
3931
|
+
readonly type: "bool";
|
|
3932
|
+
}];
|
|
3933
|
+
readonly stateMutability: "view";
|
|
3934
|
+
readonly type: "function";
|
|
3935
|
+
}, {
|
|
3936
|
+
readonly inputs: readonly [{
|
|
3937
|
+
readonly internalType: "bytes32";
|
|
3938
|
+
readonly name: "pmmId";
|
|
3939
|
+
readonly type: "bytes32";
|
|
3940
|
+
}];
|
|
3941
|
+
readonly name: "isValidPMM";
|
|
3942
|
+
readonly outputs: readonly [{
|
|
3943
|
+
readonly internalType: "bool";
|
|
3944
|
+
readonly name: "";
|
|
3945
|
+
readonly type: "bool";
|
|
3946
|
+
}];
|
|
3947
|
+
readonly stateMutability: "view";
|
|
3948
|
+
readonly type: "function";
|
|
3949
|
+
}, {
|
|
3950
|
+
readonly inputs: readonly [{
|
|
3951
|
+
readonly internalType: "bytes32";
|
|
3952
|
+
readonly name: "pmmId";
|
|
3953
|
+
readonly type: "bytes32";
|
|
3954
|
+
}, {
|
|
3955
|
+
readonly internalType: "address";
|
|
3956
|
+
readonly name: "account";
|
|
3957
|
+
readonly type: "address";
|
|
3958
|
+
}];
|
|
3959
|
+
readonly name: "isValidPMMAccount";
|
|
3960
|
+
readonly outputs: readonly [{
|
|
3961
|
+
readonly internalType: "bool";
|
|
3962
|
+
readonly name: "";
|
|
3963
|
+
readonly type: "bool";
|
|
3964
|
+
}];
|
|
3965
|
+
readonly stateMutability: "view";
|
|
3966
|
+
readonly type: "function";
|
|
3967
|
+
}, {
|
|
3968
|
+
readonly inputs: readonly [{
|
|
3969
|
+
readonly internalType: "bytes";
|
|
3970
|
+
readonly name: "networkId";
|
|
3971
|
+
readonly type: "bytes";
|
|
3972
|
+
}, {
|
|
3973
|
+
readonly internalType: "bytes";
|
|
3974
|
+
readonly name: "pubkey";
|
|
3975
|
+
readonly type: "bytes";
|
|
3976
|
+
}];
|
|
3977
|
+
readonly name: "isValidPubkey";
|
|
3978
|
+
readonly outputs: readonly [{
|
|
3979
|
+
readonly internalType: "bool";
|
|
3980
|
+
readonly name: "";
|
|
3981
|
+
readonly type: "bool";
|
|
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 internalType: "bytes";
|
|
3992
|
+
readonly name: "tokenId";
|
|
3993
|
+
readonly type: "bytes";
|
|
3994
|
+
}];
|
|
3995
|
+
readonly name: "isValidToken";
|
|
3996
|
+
readonly outputs: readonly [{
|
|
3997
|
+
readonly internalType: "bool";
|
|
3998
|
+
readonly name: "";
|
|
3999
|
+
readonly type: "bool";
|
|
4000
|
+
}];
|
|
4001
|
+
readonly stateMutability: "view";
|
|
4002
|
+
readonly type: "function";
|
|
4003
|
+
}, {
|
|
4004
|
+
readonly inputs: readonly [{
|
|
4005
|
+
readonly internalType: "bytes32";
|
|
4006
|
+
readonly name: "pmmId";
|
|
4007
|
+
readonly type: "bytes32";
|
|
4008
|
+
}];
|
|
4009
|
+
readonly name: "numOfPMMAccounts";
|
|
4010
|
+
readonly outputs: readonly [{
|
|
4011
|
+
readonly internalType: "uint256";
|
|
4012
|
+
readonly name: "";
|
|
4013
|
+
readonly type: "uint256";
|
|
4014
|
+
}];
|
|
4015
|
+
readonly stateMutability: "view";
|
|
4016
|
+
readonly type: "function";
|
|
4017
|
+
}, {
|
|
4018
|
+
readonly inputs: readonly [];
|
|
4019
|
+
readonly name: "numOfSupportedTokens";
|
|
4020
|
+
readonly outputs: readonly [{
|
|
4021
|
+
readonly internalType: "uint256";
|
|
4022
|
+
readonly name: "";
|
|
4023
|
+
readonly type: "uint256";
|
|
4024
|
+
}];
|
|
4025
|
+
readonly stateMutability: "view";
|
|
4026
|
+
readonly type: "function";
|
|
4027
|
+
}, {
|
|
4028
|
+
readonly inputs: readonly [];
|
|
4029
|
+
readonly name: "pManagement";
|
|
4030
|
+
readonly outputs: readonly [{
|
|
4031
|
+
readonly internalType: "contract IManagement";
|
|
4032
|
+
readonly name: "";
|
|
4033
|
+
readonly type: "address";
|
|
4034
|
+
}];
|
|
4035
|
+
readonly stateMutability: "view";
|
|
4036
|
+
readonly type: "function";
|
|
4037
|
+
}, {
|
|
4038
|
+
readonly inputs: readonly [];
|
|
4039
|
+
readonly name: "registry";
|
|
4040
|
+
readonly outputs: readonly [{
|
|
4041
|
+
readonly internalType: "contract IVaultRegistry";
|
|
4042
|
+
readonly name: "";
|
|
4043
|
+
readonly type: "address";
|
|
4044
|
+
}];
|
|
4045
|
+
readonly stateMutability: "view";
|
|
3262
4046
|
readonly type: "function";
|
|
3263
4047
|
}, {
|
|
3264
4048
|
readonly inputs: readonly [];
|
|
3265
|
-
readonly name: "
|
|
3266
|
-
readonly outputs: readonly [
|
|
3267
|
-
|
|
4049
|
+
readonly name: "router";
|
|
4050
|
+
readonly outputs: readonly [{
|
|
4051
|
+
readonly internalType: "contract IRouter";
|
|
4052
|
+
readonly name: "";
|
|
4053
|
+
readonly type: "address";
|
|
4054
|
+
}];
|
|
4055
|
+
readonly stateMutability: "view";
|
|
3268
4056
|
readonly type: "function";
|
|
3269
4057
|
}, {
|
|
3270
4058
|
readonly inputs: readonly [{
|
|
3271
4059
|
readonly internalType: "address";
|
|
3272
|
-
readonly name: "
|
|
4060
|
+
readonly name: "newManagement";
|
|
3273
4061
|
readonly type: "address";
|
|
3274
4062
|
}];
|
|
3275
|
-
readonly name: "
|
|
4063
|
+
readonly name: "setProtocolManagement";
|
|
3276
4064
|
readonly outputs: readonly [];
|
|
3277
4065
|
readonly stateMutability: "nonpayable";
|
|
3278
4066
|
readonly type: "function";
|
|
3279
4067
|
}, {
|
|
3280
4068
|
readonly inputs: readonly [{
|
|
3281
4069
|
readonly internalType: "address";
|
|
3282
|
-
readonly name: "
|
|
4070
|
+
readonly name: "newRouter";
|
|
3283
4071
|
readonly type: "address";
|
|
3284
4072
|
}];
|
|
3285
|
-
readonly name: "
|
|
4073
|
+
readonly name: "setRouter";
|
|
3286
4074
|
readonly outputs: readonly [];
|
|
3287
4075
|
readonly stateMutability: "nonpayable";
|
|
3288
4076
|
readonly type: "function";
|
|
3289
4077
|
}, {
|
|
3290
4078
|
readonly inputs: readonly [{
|
|
3291
4079
|
readonly internalType: "address";
|
|
3292
|
-
readonly name: "
|
|
4080
|
+
readonly name: "newSignerExtension";
|
|
3293
4081
|
readonly type: "address";
|
|
3294
4082
|
}];
|
|
3295
|
-
readonly name: "
|
|
4083
|
+
readonly name: "setSignerExtension";
|
|
3296
4084
|
readonly outputs: readonly [];
|
|
3297
4085
|
readonly stateMutability: "nonpayable";
|
|
3298
4086
|
readonly type: "function";
|
|
3299
4087
|
}, {
|
|
3300
4088
|
readonly inputs: readonly [{
|
|
3301
4089
|
readonly internalType: "address";
|
|
3302
|
-
readonly name: "
|
|
4090
|
+
readonly name: "newRegistry";
|
|
3303
4091
|
readonly type: "address";
|
|
3304
4092
|
}];
|
|
3305
|
-
readonly name: "
|
|
4093
|
+
readonly name: "setVaultRegistry";
|
|
3306
4094
|
readonly outputs: readonly [];
|
|
3307
4095
|
readonly stateMutability: "nonpayable";
|
|
3308
4096
|
readonly type: "function";
|
|
3309
4097
|
}, {
|
|
3310
4098
|
readonly inputs: readonly [];
|
|
3311
|
-
readonly name: "
|
|
4099
|
+
readonly name: "signerExtension";
|
|
3312
4100
|
readonly outputs: readonly [{
|
|
3313
|
-
readonly internalType: "
|
|
4101
|
+
readonly internalType: "contract ISignerExtension";
|
|
3314
4102
|
readonly name: "";
|
|
3315
|
-
readonly type: "
|
|
4103
|
+
readonly type: "address";
|
|
3316
4104
|
}];
|
|
3317
|
-
readonly stateMutability: "
|
|
4105
|
+
readonly stateMutability: "view";
|
|
3318
4106
|
readonly type: "function";
|
|
3319
4107
|
}];
|
|
3320
|
-
static createInterface():
|
|
3321
|
-
static connect(address: string, runner?: ContractRunner | null):
|
|
4108
|
+
static createInterface(): ProtocolFetcherProxyInterface;
|
|
4109
|
+
static connect(address: string, runner?: ContractRunner | null): ProtocolFetcherProxy;
|
|
3322
4110
|
}
|
|
3323
4111
|
|
|
3324
|
-
declare class
|
|
4112
|
+
declare class Router__factory {
|
|
3325
4113
|
static readonly abi: readonly [{
|
|
3326
4114
|
readonly inputs: readonly [{
|
|
4115
|
+
readonly internalType: "contract IManagement";
|
|
4116
|
+
readonly name: "management_";
|
|
4117
|
+
readonly type: "address";
|
|
4118
|
+
}, {
|
|
3327
4119
|
readonly internalType: "address";
|
|
3328
|
-
readonly name: "
|
|
4120
|
+
readonly name: "signer";
|
|
3329
4121
|
readonly type: "address";
|
|
3330
4122
|
}];
|
|
3331
4123
|
readonly stateMutability: "nonpayable";
|
|
@@ -3336,43 +4128,23 @@ declare class Payment__factory {
|
|
|
3336
4128
|
readonly type: "error";
|
|
3337
4129
|
}, {
|
|
3338
4130
|
readonly inputs: readonly [];
|
|
3339
|
-
readonly name: "
|
|
4131
|
+
readonly name: "BundlePaymentEmpty";
|
|
3340
4132
|
readonly type: "error";
|
|
3341
4133
|
}, {
|
|
3342
4134
|
readonly inputs: readonly [];
|
|
3343
|
-
readonly name: "
|
|
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";
|
|
4135
|
+
readonly name: "DepositAlreadySubmitted";
|
|
3356
4136
|
readonly type: "error";
|
|
3357
4137
|
}, {
|
|
3358
4138
|
readonly inputs: readonly [];
|
|
3359
|
-
readonly name: "
|
|
4139
|
+
readonly name: "LengthMismatch";
|
|
3360
4140
|
readonly type: "error";
|
|
3361
4141
|
}, {
|
|
3362
4142
|
readonly inputs: readonly [];
|
|
3363
|
-
readonly name: "
|
|
4143
|
+
readonly name: "RegisteredAlready";
|
|
3364
4144
|
readonly type: "error";
|
|
3365
4145
|
}, {
|
|
3366
4146
|
readonly inputs: readonly [];
|
|
3367
|
-
readonly name: "
|
|
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";
|
|
4147
|
+
readonly name: "RouteNotSupported";
|
|
3376
4148
|
readonly type: "error";
|
|
3377
4149
|
}, {
|
|
3378
4150
|
readonly inputs: readonly [];
|
|
@@ -3381,158 +4153,33 @@ declare class Payment__factory {
|
|
|
3381
4153
|
}, {
|
|
3382
4154
|
readonly anonymous: false;
|
|
3383
4155
|
readonly inputs: readonly [{
|
|
3384
|
-
readonly indexed: true;
|
|
3385
|
-
readonly internalType: "bytes32";
|
|
3386
|
-
readonly name: "tradeId";
|
|
3387
|
-
readonly type: "bytes32";
|
|
3388
|
-
}, {
|
|
3389
4156
|
readonly indexed: true;
|
|
3390
4157
|
readonly internalType: "address";
|
|
3391
|
-
readonly name: "
|
|
4158
|
+
readonly name: "solver";
|
|
3392
4159
|
readonly type: "address";
|
|
3393
4160
|
}, {
|
|
3394
4161
|
readonly indexed: true;
|
|
3395
|
-
readonly internalType: "
|
|
3396
|
-
readonly name: "
|
|
3397
|
-
readonly type: "
|
|
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";
|
|
4162
|
+
readonly internalType: "bytes32";
|
|
4163
|
+
readonly name: "tradeId";
|
|
4164
|
+
readonly type: "bytes32";
|
|
3418
4165
|
}];
|
|
3419
|
-
readonly name: "
|
|
4166
|
+
readonly name: "Abort";
|
|
3420
4167
|
readonly type: "event";
|
|
3421
4168
|
}, {
|
|
3422
4169
|
readonly anonymous: false;
|
|
3423
4170
|
readonly inputs: readonly [{
|
|
3424
4171
|
readonly indexed: true;
|
|
3425
4172
|
readonly internalType: "address";
|
|
3426
|
-
readonly name: "
|
|
4173
|
+
readonly name: "mpc";
|
|
3427
4174
|
readonly type: "address";
|
|
3428
4175
|
}, {
|
|
3429
4176
|
readonly indexed: true;
|
|
3430
|
-
readonly internalType: "address";
|
|
3431
|
-
readonly name: "newProtocol";
|
|
3432
|
-
readonly type: "address";
|
|
3433
|
-
}];
|
|
3434
|
-
readonly name: "ProtocolUpdated";
|
|
3435
|
-
readonly type: "event";
|
|
3436
|
-
}, {
|
|
3437
|
-
readonly inputs: readonly [{
|
|
3438
4177
|
readonly internalType: "bytes32";
|
|
3439
4178
|
readonly name: "tradeId";
|
|
3440
4179
|
readonly type: "bytes32";
|
|
3441
|
-
}, {
|
|
3442
|
-
readonly internalType: "address";
|
|
3443
|
-
readonly name: "token";
|
|
3444
|
-
readonly type: "address";
|
|
3445
|
-
}, {
|
|
3446
|
-
readonly internalType: "address";
|
|
3447
|
-
readonly name: "toUser";
|
|
3448
|
-
readonly type: "address";
|
|
3449
|
-
}, {
|
|
3450
|
-
readonly internalType: "uint256";
|
|
3451
|
-
readonly name: "amount";
|
|
3452
|
-
readonly type: "uint256";
|
|
3453
|
-
}, {
|
|
3454
|
-
readonly internalType: "uint256";
|
|
3455
|
-
readonly name: "totalFee";
|
|
3456
|
-
readonly type: "uint256";
|
|
3457
|
-
}, {
|
|
3458
|
-
readonly internalType: "uint256";
|
|
3459
|
-
readonly name: "deadline";
|
|
3460
|
-
readonly type: "uint256";
|
|
3461
|
-
}];
|
|
3462
|
-
readonly name: "payment";
|
|
3463
|
-
readonly outputs: readonly [];
|
|
3464
|
-
readonly stateMutability: "payable";
|
|
3465
|
-
readonly type: "function";
|
|
3466
|
-
}, {
|
|
3467
|
-
readonly inputs: readonly [];
|
|
3468
|
-
readonly name: "protocol";
|
|
3469
|
-
readonly outputs: readonly [{
|
|
3470
|
-
readonly internalType: "contract IProtocol";
|
|
3471
|
-
readonly name: "";
|
|
3472
|
-
readonly type: "address";
|
|
3473
|
-
}];
|
|
3474
|
-
readonly stateMutability: "view";
|
|
3475
|
-
readonly type: "function";
|
|
3476
|
-
}, {
|
|
3477
|
-
readonly inputs: readonly [{
|
|
3478
|
-
readonly internalType: "address";
|
|
3479
|
-
readonly name: "newProtocol";
|
|
3480
|
-
readonly type: "address";
|
|
3481
|
-
}];
|
|
3482
|
-
readonly name: "setProtocol";
|
|
3483
|
-
readonly outputs: readonly [];
|
|
3484
|
-
readonly stateMutability: "nonpayable";
|
|
3485
|
-
readonly type: "function";
|
|
3486
|
-
}];
|
|
3487
|
-
static createInterface(): PaymentInterface;
|
|
3488
|
-
static connect(address: string, runner?: ContractRunner | null): Payment;
|
|
3489
|
-
}
|
|
3490
|
-
|
|
3491
|
-
declare class Router__factory {
|
|
3492
|
-
static readonly abi: readonly [{
|
|
3493
|
-
readonly inputs: readonly [{
|
|
3494
|
-
readonly internalType: "contract IManagement";
|
|
3495
|
-
readonly name: "management_";
|
|
3496
|
-
readonly type: "address";
|
|
3497
|
-
}, {
|
|
3498
|
-
readonly internalType: "address";
|
|
3499
|
-
readonly name: "signer";
|
|
3500
|
-
readonly type: "address";
|
|
3501
4180
|
}];
|
|
3502
|
-
readonly
|
|
3503
|
-
readonly type: "
|
|
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";
|
|
4181
|
+
readonly name: "ConfirmDeposit";
|
|
4182
|
+
readonly type: "event";
|
|
3536
4183
|
}, {
|
|
3537
4184
|
readonly anonymous: false;
|
|
3538
4185
|
readonly inputs: readonly [{
|
|
@@ -3545,23 +4192,8 @@ declare class Router__factory {
|
|
|
3545
4192
|
readonly internalType: "bytes32";
|
|
3546
4193
|
readonly name: "tradeId";
|
|
3547
4194
|
readonly type: "bytes32";
|
|
3548
|
-
}, {
|
|
3549
|
-
readonly indexed: false;
|
|
3550
|
-
readonly internalType: "uint256";
|
|
3551
|
-
readonly name: "pFeeRate";
|
|
3552
|
-
readonly type: "uint256";
|
|
3553
|
-
}, {
|
|
3554
|
-
readonly indexed: false;
|
|
3555
|
-
readonly internalType: "uint256";
|
|
3556
|
-
readonly name: "aFeeRate";
|
|
3557
|
-
readonly type: "uint256";
|
|
3558
|
-
}, {
|
|
3559
|
-
readonly indexed: false;
|
|
3560
|
-
readonly internalType: "bytes[]";
|
|
3561
|
-
readonly name: "list";
|
|
3562
|
-
readonly type: "bytes[]";
|
|
3563
4195
|
}];
|
|
3564
|
-
readonly name: "
|
|
4196
|
+
readonly name: "ConfirmPayment";
|
|
3565
4197
|
readonly type: "event";
|
|
3566
4198
|
}, {
|
|
3567
4199
|
readonly anonymous: false;
|
|
@@ -3576,7 +4208,7 @@ declare class Router__factory {
|
|
|
3576
4208
|
readonly name: "tradeId";
|
|
3577
4209
|
readonly type: "bytes32";
|
|
3578
4210
|
}];
|
|
3579
|
-
readonly name: "
|
|
4211
|
+
readonly name: "ConfirmPresign";
|
|
3580
4212
|
readonly type: "event";
|
|
3581
4213
|
}, {
|
|
3582
4214
|
readonly anonymous: false;
|
|
@@ -3658,6 +4290,21 @@ declare class Router__factory {
|
|
|
3658
4290
|
}];
|
|
3659
4291
|
readonly name: "SelectPMM";
|
|
3660
4292
|
readonly type: "event";
|
|
4293
|
+
}, {
|
|
4294
|
+
readonly anonymous: false;
|
|
4295
|
+
readonly inputs: readonly [{
|
|
4296
|
+
readonly indexed: true;
|
|
4297
|
+
readonly internalType: "address";
|
|
4298
|
+
readonly name: "solver";
|
|
4299
|
+
readonly type: "address";
|
|
4300
|
+
}, {
|
|
4301
|
+
readonly indexed: true;
|
|
4302
|
+
readonly internalType: "bytes32";
|
|
4303
|
+
readonly name: "tradeId";
|
|
4304
|
+
readonly type: "bytes32";
|
|
4305
|
+
}];
|
|
4306
|
+
readonly name: "SubmitDeposit";
|
|
4307
|
+
readonly type: "event";
|
|
3661
4308
|
}, {
|
|
3662
4309
|
readonly anonymous: false;
|
|
3663
4310
|
readonly inputs: readonly [{
|
|
@@ -3678,22 +4325,32 @@ declare class Router__factory {
|
|
|
3678
4325
|
readonly inputs: readonly [{
|
|
3679
4326
|
readonly indexed: true;
|
|
3680
4327
|
readonly internalType: "address";
|
|
3681
|
-
readonly name: "
|
|
4328
|
+
readonly name: "operator";
|
|
3682
4329
|
readonly type: "address";
|
|
3683
4330
|
}, {
|
|
3684
4331
|
readonly indexed: true;
|
|
3685
|
-
readonly internalType: "
|
|
3686
|
-
readonly name: "
|
|
3687
|
-
readonly type: "
|
|
4332
|
+
readonly internalType: "address";
|
|
4333
|
+
readonly name: "newManagement";
|
|
4334
|
+
readonly type: "address";
|
|
4335
|
+
}];
|
|
4336
|
+
readonly name: "UpdatedManagement";
|
|
4337
|
+
readonly type: "event";
|
|
4338
|
+
}, {
|
|
4339
|
+
readonly anonymous: false;
|
|
4340
|
+
readonly inputs: readonly [{
|
|
4341
|
+
readonly indexed: true;
|
|
4342
|
+
readonly internalType: "address";
|
|
4343
|
+
readonly name: "handler";
|
|
4344
|
+
readonly type: "address";
|
|
3688
4345
|
}, {
|
|
3689
4346
|
readonly indexed: false;
|
|
3690
4347
|
readonly internalType: "bytes";
|
|
3691
|
-
readonly name: "
|
|
4348
|
+
readonly name: "fromNetwork";
|
|
3692
4349
|
readonly type: "bytes";
|
|
3693
4350
|
}, {
|
|
3694
4351
|
readonly indexed: false;
|
|
3695
4352
|
readonly internalType: "bytes";
|
|
3696
|
-
readonly name: "
|
|
4353
|
+
readonly name: "toNetwork";
|
|
3697
4354
|
readonly type: "bytes";
|
|
3698
4355
|
}];
|
|
3699
4356
|
readonly name: "UpdatedRoute";
|
|
@@ -3706,7 +4363,34 @@ declare class Router__factory {
|
|
|
3706
4363
|
readonly name: "";
|
|
3707
4364
|
readonly type: "address";
|
|
3708
4365
|
}];
|
|
3709
|
-
readonly stateMutability: "view";
|
|
4366
|
+
readonly stateMutability: "view";
|
|
4367
|
+
readonly type: "function";
|
|
4368
|
+
}, {
|
|
4369
|
+
readonly inputs: readonly [{
|
|
4370
|
+
readonly internalType: "bytes32";
|
|
4371
|
+
readonly name: "tradeId";
|
|
4372
|
+
readonly type: "bytes32";
|
|
4373
|
+
}, {
|
|
4374
|
+
readonly components: readonly [{
|
|
4375
|
+
readonly internalType: "uint256";
|
|
4376
|
+
readonly name: "minAmountOut";
|
|
4377
|
+
readonly type: "uint256";
|
|
4378
|
+
}, {
|
|
4379
|
+
readonly internalType: "uint64";
|
|
4380
|
+
readonly name: "tradeTimeout";
|
|
4381
|
+
readonly type: "uint64";
|
|
4382
|
+
}, {
|
|
4383
|
+
readonly internalType: "bytes";
|
|
4384
|
+
readonly name: "rfqInfoSignature";
|
|
4385
|
+
readonly type: "bytes";
|
|
4386
|
+
}];
|
|
4387
|
+
readonly internalType: "struct ITypes.RFQInfo";
|
|
4388
|
+
readonly name: "rfqInfo";
|
|
4389
|
+
readonly type: "tuple";
|
|
4390
|
+
}];
|
|
4391
|
+
readonly name: "abort";
|
|
4392
|
+
readonly outputs: readonly [];
|
|
4393
|
+
readonly stateMutability: "nonpayable";
|
|
3710
4394
|
readonly type: "function";
|
|
3711
4395
|
}, {
|
|
3712
4396
|
readonly inputs: readonly [{
|
|
@@ -3771,6 +4455,20 @@ declare class Router__factory {
|
|
|
3771
4455
|
readonly outputs: readonly [];
|
|
3772
4456
|
readonly stateMutability: "nonpayable";
|
|
3773
4457
|
readonly type: "function";
|
|
4458
|
+
}, {
|
|
4459
|
+
readonly inputs: readonly [{
|
|
4460
|
+
readonly internalType: "bytes32";
|
|
4461
|
+
readonly name: "tradeId";
|
|
4462
|
+
readonly type: "bytes32";
|
|
4463
|
+
}, {
|
|
4464
|
+
readonly internalType: "bytes";
|
|
4465
|
+
readonly name: "signature";
|
|
4466
|
+
readonly type: "bytes";
|
|
4467
|
+
}];
|
|
4468
|
+
readonly name: "confirmPresign";
|
|
4469
|
+
readonly outputs: readonly [];
|
|
4470
|
+
readonly stateMutability: "nonpayable";
|
|
4471
|
+
readonly type: "function";
|
|
3774
4472
|
}, {
|
|
3775
4473
|
readonly inputs: readonly [{
|
|
3776
4474
|
readonly internalType: "bytes32";
|
|
@@ -3818,13 +4516,9 @@ declare class Router__factory {
|
|
|
3818
4516
|
readonly type: "function";
|
|
3819
4517
|
}, {
|
|
3820
4518
|
readonly inputs: readonly [{
|
|
3821
|
-
readonly internalType: "
|
|
3822
|
-
readonly name: "
|
|
3823
|
-
readonly type: "
|
|
3824
|
-
}, {
|
|
3825
|
-
readonly internalType: "bytes";
|
|
3826
|
-
readonly name: "toChain";
|
|
3827
|
-
readonly type: "bytes";
|
|
4519
|
+
readonly internalType: "address";
|
|
4520
|
+
readonly name: "handler";
|
|
4521
|
+
readonly type: "address";
|
|
3828
4522
|
}];
|
|
3829
4523
|
readonly name: "getCurrentEpoch";
|
|
3830
4524
|
readonly outputs: readonly [{
|
|
@@ -3851,22 +4545,12 @@ declare class Router__factory {
|
|
|
3851
4545
|
readonly name: "getCurrentStage";
|
|
3852
4546
|
readonly outputs: readonly [{
|
|
3853
4547
|
readonly internalType: "uint256";
|
|
3854
|
-
readonly name: "";
|
|
4548
|
+
readonly name: "stage";
|
|
3855
4549
|
readonly type: "uint256";
|
|
3856
|
-
}
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
readonly inputs: readonly [{
|
|
3861
|
-
readonly internalType: "bytes32";
|
|
3862
|
-
readonly name: "tradeId";
|
|
3863
|
-
readonly type: "bytes32";
|
|
3864
|
-
}];
|
|
3865
|
-
readonly name: "getDepositAddressList";
|
|
3866
|
-
readonly outputs: readonly [{
|
|
3867
|
-
readonly internalType: "bytes[]";
|
|
3868
|
-
readonly name: "";
|
|
3869
|
-
readonly type: "bytes[]";
|
|
4550
|
+
}, {
|
|
4551
|
+
readonly internalType: "string";
|
|
4552
|
+
readonly name: "swapType";
|
|
4553
|
+
readonly type: "string";
|
|
3870
4554
|
}];
|
|
3871
4555
|
readonly stateMutability: "view";
|
|
3872
4556
|
readonly type: "function";
|
|
@@ -3931,11 +4615,11 @@ declare class Router__factory {
|
|
|
3931
4615
|
}, {
|
|
3932
4616
|
readonly inputs: readonly [{
|
|
3933
4617
|
readonly internalType: "bytes";
|
|
3934
|
-
readonly name: "
|
|
4618
|
+
readonly name: "fromNetwork";
|
|
3935
4619
|
readonly type: "bytes";
|
|
3936
4620
|
}, {
|
|
3937
4621
|
readonly internalType: "bytes";
|
|
3938
|
-
readonly name: "
|
|
4622
|
+
readonly name: "toNetwork";
|
|
3939
4623
|
readonly type: "bytes";
|
|
3940
4624
|
}];
|
|
3941
4625
|
readonly name: "getHandler";
|
|
@@ -3968,117 +4652,17 @@ declare class Router__factory {
|
|
|
3968
4652
|
}];
|
|
3969
4653
|
readonly stateMutability: "view";
|
|
3970
4654
|
readonly type: "function";
|
|
3971
|
-
}, {
|
|
3972
|
-
readonly inputs: readonly [{
|
|
3973
|
-
readonly internalType: "bytes32";
|
|
3974
|
-
readonly name: "tradeId";
|
|
3975
|
-
readonly type: "bytes32";
|
|
3976
|
-
}];
|
|
3977
|
-
readonly name: "getLastSignedPayment";
|
|
3978
|
-
readonly outputs: readonly [{
|
|
3979
|
-
readonly internalType: "uint64";
|
|
3980
|
-
readonly name: "";
|
|
3981
|
-
readonly type: "uint64";
|
|
3982
|
-
}];
|
|
3983
|
-
readonly stateMutability: "view";
|
|
3984
|
-
readonly type: "function";
|
|
3985
|
-
}, {
|
|
3986
|
-
readonly inputs: readonly [{
|
|
3987
|
-
readonly internalType: "bytes";
|
|
3988
|
-
readonly name: "networkId";
|
|
3989
|
-
readonly type: "bytes";
|
|
3990
|
-
}];
|
|
3991
|
-
readonly name: "getLatestMPCInfo";
|
|
3992
|
-
readonly outputs: readonly [{
|
|
3993
|
-
readonly components: readonly [{
|
|
3994
|
-
readonly internalType: "address";
|
|
3995
|
-
readonly name: "mpcL2Address";
|
|
3996
|
-
readonly type: "address";
|
|
3997
|
-
}, {
|
|
3998
|
-
readonly internalType: "uint64";
|
|
3999
|
-
readonly name: "expireTime";
|
|
4000
|
-
readonly type: "uint64";
|
|
4001
|
-
}, {
|
|
4002
|
-
readonly internalType: "bytes";
|
|
4003
|
-
readonly name: "mpcL2Pubkey";
|
|
4004
|
-
readonly type: "bytes";
|
|
4005
|
-
}, {
|
|
4006
|
-
readonly internalType: "bytes";
|
|
4007
|
-
readonly name: "mpcAssetPubkey";
|
|
4008
|
-
readonly type: "bytes";
|
|
4009
|
-
}];
|
|
4010
|
-
readonly internalType: "struct ITypes.MPCInfo";
|
|
4011
|
-
readonly name: "";
|
|
4012
|
-
readonly type: "tuple";
|
|
4013
|
-
}];
|
|
4014
|
-
readonly stateMutability: "view";
|
|
4015
|
-
readonly type: "function";
|
|
4016
|
-
}, {
|
|
4017
|
-
readonly inputs: readonly [{
|
|
4018
|
-
readonly internalType: "bytes";
|
|
4019
|
-
readonly name: "networkId";
|
|
4020
|
-
readonly type: "bytes";
|
|
4021
|
-
}, {
|
|
4022
|
-
readonly internalType: "bytes";
|
|
4023
|
-
readonly name: "pubkey";
|
|
4024
|
-
readonly type: "bytes";
|
|
4025
|
-
}];
|
|
4026
|
-
readonly name: "getMPCInfo";
|
|
4027
|
-
readonly outputs: readonly [{
|
|
4028
|
-
readonly components: readonly [{
|
|
4029
|
-
readonly internalType: "address";
|
|
4030
|
-
readonly name: "mpcL2Address";
|
|
4031
|
-
readonly type: "address";
|
|
4032
|
-
}, {
|
|
4033
|
-
readonly internalType: "uint64";
|
|
4034
|
-
readonly name: "expireTime";
|
|
4035
|
-
readonly type: "uint64";
|
|
4036
|
-
}, {
|
|
4037
|
-
readonly internalType: "bytes";
|
|
4038
|
-
readonly name: "mpcL2Pubkey";
|
|
4039
|
-
readonly type: "bytes";
|
|
4040
|
-
}, {
|
|
4041
|
-
readonly internalType: "bytes";
|
|
4042
|
-
readonly name: "mpcAssetPubkey";
|
|
4043
|
-
readonly type: "bytes";
|
|
4044
|
-
}];
|
|
4045
|
-
readonly internalType: "struct ITypes.MPCInfo";
|
|
4046
|
-
readonly name: "info";
|
|
4047
|
-
readonly type: "tuple";
|
|
4048
|
-
}];
|
|
4049
|
-
readonly stateMutability: "view";
|
|
4050
|
-
readonly type: "function";
|
|
4051
|
-
}, {
|
|
4052
|
-
readonly inputs: readonly [];
|
|
4053
|
-
readonly name: "getManagementOwner";
|
|
4054
|
-
readonly outputs: readonly [{
|
|
4055
|
-
readonly internalType: "address";
|
|
4056
|
-
readonly name: "";
|
|
4057
|
-
readonly type: "address";
|
|
4058
|
-
}];
|
|
4059
|
-
readonly stateMutability: "view";
|
|
4060
|
-
readonly type: "function";
|
|
4061
4655
|
}, {
|
|
4062
4656
|
readonly inputs: readonly [{
|
|
4063
4657
|
readonly internalType: "bytes";
|
|
4064
|
-
readonly name: "
|
|
4658
|
+
readonly name: "fromNetwork";
|
|
4065
4659
|
readonly type: "bytes";
|
|
4066
4660
|
}, {
|
|
4067
4661
|
readonly internalType: "bytes";
|
|
4068
|
-
readonly name: "
|
|
4662
|
+
readonly name: "toNetwork";
|
|
4069
4663
|
readonly type: "bytes";
|
|
4070
4664
|
}];
|
|
4071
|
-
readonly name: "
|
|
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";
|
|
4665
|
+
readonly name: "getHistoryCount";
|
|
4082
4666
|
readonly outputs: readonly [{
|
|
4083
4667
|
readonly internalType: "uint256";
|
|
4084
4668
|
readonly name: "";
|
|
@@ -4086,28 +4670,6 @@ declare class Router__factory {
|
|
|
4086
4670
|
}];
|
|
4087
4671
|
readonly stateMutability: "view";
|
|
4088
4672
|
readonly type: "function";
|
|
4089
|
-
}, {
|
|
4090
|
-
readonly inputs: readonly [{
|
|
4091
|
-
readonly internalType: "bytes32";
|
|
4092
|
-
readonly name: "pmmId";
|
|
4093
|
-
readonly type: "bytes32";
|
|
4094
|
-
}, {
|
|
4095
|
-
readonly internalType: "uint256";
|
|
4096
|
-
readonly name: "fromIdx";
|
|
4097
|
-
readonly type: "uint256";
|
|
4098
|
-
}, {
|
|
4099
|
-
readonly internalType: "uint256";
|
|
4100
|
-
readonly name: "toIdx";
|
|
4101
|
-
readonly type: "uint256";
|
|
4102
|
-
}];
|
|
4103
|
-
readonly name: "getPMMAccounts";
|
|
4104
|
-
readonly outputs: readonly [{
|
|
4105
|
-
readonly internalType: "address[]";
|
|
4106
|
-
readonly name: "list";
|
|
4107
|
-
readonly type: "address[]";
|
|
4108
|
-
}];
|
|
4109
|
-
readonly stateMutability: "view";
|
|
4110
|
-
readonly type: "function";
|
|
4111
4673
|
}, {
|
|
4112
4674
|
readonly inputs: readonly [{
|
|
4113
4675
|
readonly internalType: "bytes32";
|
|
@@ -4163,6 +4725,10 @@ declare class Router__factory {
|
|
|
4163
4725
|
readonly type: "function";
|
|
4164
4726
|
}, {
|
|
4165
4727
|
readonly inputs: readonly [{
|
|
4728
|
+
readonly internalType: "address";
|
|
4729
|
+
readonly name: "handler";
|
|
4730
|
+
readonly type: "address";
|
|
4731
|
+
}, {
|
|
4166
4732
|
readonly internalType: "uint256";
|
|
4167
4733
|
readonly name: "epochNo";
|
|
4168
4734
|
readonly type: "uint256";
|
|
@@ -4174,14 +4740,6 @@ declare class Router__factory {
|
|
|
4174
4740
|
readonly internalType: "uint256";
|
|
4175
4741
|
readonly name: "toIdx";
|
|
4176
4742
|
readonly type: "uint256";
|
|
4177
|
-
}, {
|
|
4178
|
-
readonly internalType: "bytes";
|
|
4179
|
-
readonly name: "fromChain";
|
|
4180
|
-
readonly type: "bytes";
|
|
4181
|
-
}, {
|
|
4182
|
-
readonly internalType: "bytes";
|
|
4183
|
-
readonly name: "toChain";
|
|
4184
|
-
readonly type: "bytes";
|
|
4185
4743
|
}];
|
|
4186
4744
|
readonly name: "getPendingTrades";
|
|
4187
4745
|
readonly outputs: readonly [{
|
|
@@ -4193,17 +4751,13 @@ declare class Router__factory {
|
|
|
4193
4751
|
readonly type: "function";
|
|
4194
4752
|
}, {
|
|
4195
4753
|
readonly inputs: readonly [{
|
|
4754
|
+
readonly internalType: "address";
|
|
4755
|
+
readonly name: "handler";
|
|
4756
|
+
readonly type: "address";
|
|
4757
|
+
}, {
|
|
4196
4758
|
readonly internalType: "uint256";
|
|
4197
4759
|
readonly name: "epochNo";
|
|
4198
4760
|
readonly type: "uint256";
|
|
4199
|
-
}, {
|
|
4200
|
-
readonly internalType: "bytes";
|
|
4201
|
-
readonly name: "fromChain";
|
|
4202
|
-
readonly type: "bytes";
|
|
4203
|
-
}, {
|
|
4204
|
-
readonly internalType: "bytes";
|
|
4205
|
-
readonly name: "toChain";
|
|
4206
|
-
readonly type: "bytes";
|
|
4207
4761
|
}];
|
|
4208
4762
|
readonly name: "getPendingTradesCount";
|
|
4209
4763
|
readonly outputs: readonly [{
|
|
@@ -4213,23 +4767,13 @@ declare class Router__factory {
|
|
|
4213
4767
|
}];
|
|
4214
4768
|
readonly stateMutability: "view";
|
|
4215
4769
|
readonly type: "function";
|
|
4216
|
-
}, {
|
|
4217
|
-
readonly inputs: readonly [];
|
|
4218
|
-
readonly name: "getProtocolState";
|
|
4219
|
-
readonly outputs: readonly [{
|
|
4220
|
-
readonly internalType: "uint256";
|
|
4221
|
-
readonly name: "";
|
|
4222
|
-
readonly type: "uint256";
|
|
4223
|
-
}];
|
|
4224
|
-
readonly stateMutability: "view";
|
|
4225
|
-
readonly type: "function";
|
|
4226
4770
|
}, {
|
|
4227
4771
|
readonly inputs: readonly [{
|
|
4228
4772
|
readonly internalType: "bytes32";
|
|
4229
4773
|
readonly name: "tradeId";
|
|
4230
4774
|
readonly type: "bytes32";
|
|
4231
4775
|
}];
|
|
4232
|
-
readonly name: "
|
|
4776
|
+
readonly name: "getRefundPresign";
|
|
4233
4777
|
readonly outputs: readonly [{
|
|
4234
4778
|
readonly components: readonly [{
|
|
4235
4779
|
readonly internalType: "bytes";
|
|
@@ -4246,6 +4790,32 @@ declare class Router__factory {
|
|
|
4246
4790
|
}];
|
|
4247
4791
|
readonly stateMutability: "view";
|
|
4248
4792
|
readonly type: "function";
|
|
4793
|
+
}, {
|
|
4794
|
+
readonly inputs: readonly [{
|
|
4795
|
+
readonly internalType: "uint256";
|
|
4796
|
+
readonly name: "fromIdx";
|
|
4797
|
+
readonly type: "uint256";
|
|
4798
|
+
}, {
|
|
4799
|
+
readonly internalType: "uint256";
|
|
4800
|
+
readonly name: "toIdx";
|
|
4801
|
+
readonly type: "uint256";
|
|
4802
|
+
}, {
|
|
4803
|
+
readonly internalType: "bytes";
|
|
4804
|
+
readonly name: "fromNetwork";
|
|
4805
|
+
readonly type: "bytes";
|
|
4806
|
+
}, {
|
|
4807
|
+
readonly internalType: "bytes";
|
|
4808
|
+
readonly name: "toNetwork";
|
|
4809
|
+
readonly type: "bytes";
|
|
4810
|
+
}];
|
|
4811
|
+
readonly name: "getRegisteredHandlers";
|
|
4812
|
+
readonly outputs: readonly [{
|
|
4813
|
+
readonly internalType: "address[]";
|
|
4814
|
+
readonly name: "list";
|
|
4815
|
+
readonly type: "address[]";
|
|
4816
|
+
}];
|
|
4817
|
+
readonly stateMutability: "view";
|
|
4818
|
+
readonly type: "function";
|
|
4249
4819
|
}, {
|
|
4250
4820
|
readonly inputs: readonly [{
|
|
4251
4821
|
readonly internalType: "bytes32";
|
|
@@ -4275,28 +4845,15 @@ declare class Router__factory {
|
|
|
4275
4845
|
readonly type: "function";
|
|
4276
4846
|
}, {
|
|
4277
4847
|
readonly inputs: readonly [{
|
|
4278
|
-
readonly internalType: "
|
|
4279
|
-
readonly name: "
|
|
4280
|
-
readonly type: "
|
|
4281
|
-
}
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
readonly
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
readonly outputs: readonly [{
|
|
4288
|
-
readonly components: readonly [{
|
|
4289
|
-
readonly internalType: "bytes[5]";
|
|
4290
|
-
readonly name: "info";
|
|
4291
|
-
readonly type: "bytes[5]";
|
|
4292
|
-
}, {
|
|
4293
|
-
readonly internalType: "uint256";
|
|
4294
|
-
readonly name: "decimals";
|
|
4295
|
-
readonly type: "uint256";
|
|
4296
|
-
}];
|
|
4297
|
-
readonly internalType: "struct ITypes.TokenInfo[]";
|
|
4298
|
-
readonly name: "list";
|
|
4299
|
-
readonly type: "tuple[]";
|
|
4848
|
+
readonly internalType: "bytes32";
|
|
4849
|
+
readonly name: "tradeId";
|
|
4850
|
+
readonly type: "bytes32";
|
|
4851
|
+
}];
|
|
4852
|
+
readonly name: "getSolver";
|
|
4853
|
+
readonly outputs: readonly [{
|
|
4854
|
+
readonly internalType: "address";
|
|
4855
|
+
readonly name: "";
|
|
4856
|
+
readonly type: "address";
|
|
4300
4857
|
}];
|
|
4301
4858
|
readonly stateMutability: "view";
|
|
4302
4859
|
readonly type: "function";
|
|
@@ -4392,130 +4949,6 @@ declare class Router__factory {
|
|
|
4392
4949
|
}];
|
|
4393
4950
|
readonly stateMutability: "view";
|
|
4394
4951
|
readonly type: "function";
|
|
4395
|
-
}, {
|
|
4396
|
-
readonly inputs: readonly [{
|
|
4397
|
-
readonly internalType: "address";
|
|
4398
|
-
readonly name: "account";
|
|
4399
|
-
readonly type: "address";
|
|
4400
|
-
}];
|
|
4401
|
-
readonly name: "isMPCNode";
|
|
4402
|
-
readonly outputs: readonly [{
|
|
4403
|
-
readonly internalType: "bool";
|
|
4404
|
-
readonly name: "";
|
|
4405
|
-
readonly type: "bool";
|
|
4406
|
-
}];
|
|
4407
|
-
readonly stateMutability: "view";
|
|
4408
|
-
readonly type: "function";
|
|
4409
|
-
}, {
|
|
4410
|
-
readonly inputs: readonly [{
|
|
4411
|
-
readonly internalType: "address";
|
|
4412
|
-
readonly name: "account";
|
|
4413
|
-
readonly type: "address";
|
|
4414
|
-
}];
|
|
4415
|
-
readonly name: "isSolver";
|
|
4416
|
-
readonly outputs: readonly [{
|
|
4417
|
-
readonly internalType: "bool";
|
|
4418
|
-
readonly name: "";
|
|
4419
|
-
readonly type: "bool";
|
|
4420
|
-
}];
|
|
4421
|
-
readonly stateMutability: "view";
|
|
4422
|
-
readonly type: "function";
|
|
4423
|
-
}, {
|
|
4424
|
-
readonly inputs: readonly [{
|
|
4425
|
-
readonly internalType: "enum ITypes.STAGE";
|
|
4426
|
-
readonly name: "stage";
|
|
4427
|
-
readonly type: "uint8";
|
|
4428
|
-
}];
|
|
4429
|
-
readonly name: "isSuspended";
|
|
4430
|
-
readonly outputs: readonly [{
|
|
4431
|
-
readonly internalType: "bool";
|
|
4432
|
-
readonly name: "";
|
|
4433
|
-
readonly type: "bool";
|
|
4434
|
-
}];
|
|
4435
|
-
readonly stateMutability: "view";
|
|
4436
|
-
readonly type: "function";
|
|
4437
|
-
}, {
|
|
4438
|
-
readonly inputs: readonly [{
|
|
4439
|
-
readonly internalType: "bytes";
|
|
4440
|
-
readonly name: "networkId";
|
|
4441
|
-
readonly type: "bytes";
|
|
4442
|
-
}];
|
|
4443
|
-
readonly name: "isValidNetwork";
|
|
4444
|
-
readonly outputs: readonly [{
|
|
4445
|
-
readonly internalType: "bool";
|
|
4446
|
-
readonly name: "";
|
|
4447
|
-
readonly type: "bool";
|
|
4448
|
-
}];
|
|
4449
|
-
readonly stateMutability: "view";
|
|
4450
|
-
readonly type: "function";
|
|
4451
|
-
}, {
|
|
4452
|
-
readonly inputs: readonly [{
|
|
4453
|
-
readonly internalType: "bytes32";
|
|
4454
|
-
readonly name: "pmmId";
|
|
4455
|
-
readonly type: "bytes32";
|
|
4456
|
-
}];
|
|
4457
|
-
readonly name: "isValidPMM";
|
|
4458
|
-
readonly outputs: readonly [{
|
|
4459
|
-
readonly internalType: "bool";
|
|
4460
|
-
readonly name: "";
|
|
4461
|
-
readonly type: "bool";
|
|
4462
|
-
}];
|
|
4463
|
-
readonly stateMutability: "view";
|
|
4464
|
-
readonly type: "function";
|
|
4465
|
-
}, {
|
|
4466
|
-
readonly inputs: readonly [{
|
|
4467
|
-
readonly internalType: "bytes32";
|
|
4468
|
-
readonly name: "pmmId";
|
|
4469
|
-
readonly type: "bytes32";
|
|
4470
|
-
}, {
|
|
4471
|
-
readonly internalType: "address";
|
|
4472
|
-
readonly name: "account";
|
|
4473
|
-
readonly type: "address";
|
|
4474
|
-
}];
|
|
4475
|
-
readonly name: "isValidPMMAccount";
|
|
4476
|
-
readonly outputs: readonly [{
|
|
4477
|
-
readonly internalType: "bool";
|
|
4478
|
-
readonly name: "";
|
|
4479
|
-
readonly type: "bool";
|
|
4480
|
-
}];
|
|
4481
|
-
readonly stateMutability: "view";
|
|
4482
|
-
readonly type: "function";
|
|
4483
|
-
}, {
|
|
4484
|
-
readonly inputs: readonly [{
|
|
4485
|
-
readonly internalType: "bytes";
|
|
4486
|
-
readonly name: "networkId";
|
|
4487
|
-
readonly type: "bytes";
|
|
4488
|
-
}, {
|
|
4489
|
-
readonly internalType: "bytes";
|
|
4490
|
-
readonly name: "pubkey";
|
|
4491
|
-
readonly type: "bytes";
|
|
4492
|
-
}];
|
|
4493
|
-
readonly name: "isValidPubkey";
|
|
4494
|
-
readonly outputs: readonly [{
|
|
4495
|
-
readonly internalType: "bool";
|
|
4496
|
-
readonly name: "";
|
|
4497
|
-
readonly type: "bool";
|
|
4498
|
-
}];
|
|
4499
|
-
readonly stateMutability: "view";
|
|
4500
|
-
readonly type: "function";
|
|
4501
|
-
}, {
|
|
4502
|
-
readonly inputs: readonly [{
|
|
4503
|
-
readonly internalType: "bytes";
|
|
4504
|
-
readonly name: "networkId";
|
|
4505
|
-
readonly type: "bytes";
|
|
4506
|
-
}, {
|
|
4507
|
-
readonly internalType: "bytes";
|
|
4508
|
-
readonly name: "tokenId";
|
|
4509
|
-
readonly type: "bytes";
|
|
4510
|
-
}];
|
|
4511
|
-
readonly name: "isValidToken";
|
|
4512
|
-
readonly outputs: readonly [{
|
|
4513
|
-
readonly internalType: "bool";
|
|
4514
|
-
readonly name: "";
|
|
4515
|
-
readonly type: "bool";
|
|
4516
|
-
}];
|
|
4517
|
-
readonly stateMutability: "view";
|
|
4518
|
-
readonly type: "function";
|
|
4519
4952
|
}, {
|
|
4520
4953
|
readonly inputs: readonly [];
|
|
4521
4954
|
readonly name: "management";
|
|
@@ -4528,27 +4961,17 @@ declare class Router__factory {
|
|
|
4528
4961
|
readonly type: "function";
|
|
4529
4962
|
}, {
|
|
4530
4963
|
readonly inputs: readonly [{
|
|
4531
|
-
readonly internalType: "bytes32";
|
|
4532
|
-
readonly name: "
|
|
4533
|
-
readonly type: "bytes32";
|
|
4534
|
-
}
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
readonly
|
|
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";
|
|
4964
|
+
readonly internalType: "bytes32[]";
|
|
4965
|
+
readonly name: "referenceIds";
|
|
4966
|
+
readonly type: "bytes32[]";
|
|
4967
|
+
}, {
|
|
4968
|
+
readonly internalType: "address[]";
|
|
4969
|
+
readonly name: "handlers";
|
|
4970
|
+
readonly type: "address[]";
|
|
4550
4971
|
}];
|
|
4551
|
-
readonly
|
|
4972
|
+
readonly name: "migrate";
|
|
4973
|
+
readonly outputs: readonly [];
|
|
4974
|
+
readonly stateMutability: "nonpayable";
|
|
4552
4975
|
readonly type: "function";
|
|
4553
4976
|
}, {
|
|
4554
4977
|
readonly inputs: readonly [{
|
|
@@ -4577,6 +5000,10 @@ declare class Router__factory {
|
|
|
4577
5000
|
readonly internalType: "bytes";
|
|
4578
5001
|
readonly name: "msgError";
|
|
4579
5002
|
readonly type: "bytes";
|
|
5003
|
+
}, {
|
|
5004
|
+
readonly internalType: "bytes";
|
|
5005
|
+
readonly name: "referenceInfo";
|
|
5006
|
+
readonly type: "bytes";
|
|
4580
5007
|
}, {
|
|
4581
5008
|
readonly internalType: "bytes";
|
|
4582
5009
|
readonly name: "signature";
|
|
@@ -4656,17 +5083,83 @@ declare class Router__factory {
|
|
|
4656
5083
|
readonly type: "address";
|
|
4657
5084
|
}, {
|
|
4658
5085
|
readonly internalType: "bytes";
|
|
4659
|
-
readonly name: "
|
|
5086
|
+
readonly name: "fromNetwork";
|
|
4660
5087
|
readonly type: "bytes";
|
|
4661
5088
|
}, {
|
|
4662
5089
|
readonly internalType: "bytes";
|
|
4663
|
-
readonly name: "
|
|
5090
|
+
readonly name: "toNetwork";
|
|
4664
5091
|
readonly type: "bytes";
|
|
4665
5092
|
}];
|
|
4666
5093
|
readonly name: "setRoute";
|
|
4667
5094
|
readonly outputs: readonly [];
|
|
4668
5095
|
readonly stateMutability: "nonpayable";
|
|
4669
5096
|
readonly type: "function";
|
|
5097
|
+
}, {
|
|
5098
|
+
readonly inputs: readonly [{
|
|
5099
|
+
readonly internalType: "bytes32";
|
|
5100
|
+
readonly name: "tradeId";
|
|
5101
|
+
readonly type: "bytes32";
|
|
5102
|
+
}, {
|
|
5103
|
+
readonly components: readonly [{
|
|
5104
|
+
readonly internalType: "uint256";
|
|
5105
|
+
readonly name: "sessionId";
|
|
5106
|
+
readonly type: "uint256";
|
|
5107
|
+
}, {
|
|
5108
|
+
readonly components: readonly [{
|
|
5109
|
+
readonly internalType: "uint256";
|
|
5110
|
+
readonly name: "amountIn";
|
|
5111
|
+
readonly type: "uint256";
|
|
5112
|
+
}, {
|
|
5113
|
+
readonly internalType: "bytes[3]";
|
|
5114
|
+
readonly name: "fromChain";
|
|
5115
|
+
readonly type: "bytes[3]";
|
|
5116
|
+
}, {
|
|
5117
|
+
readonly internalType: "bytes[3]";
|
|
5118
|
+
readonly name: "toChain";
|
|
5119
|
+
readonly type: "bytes[3]";
|
|
5120
|
+
}];
|
|
5121
|
+
readonly internalType: "struct ITypes.TradeInfo";
|
|
5122
|
+
readonly name: "tradeInfo";
|
|
5123
|
+
readonly type: "tuple";
|
|
5124
|
+
}, {
|
|
5125
|
+
readonly components: readonly [{
|
|
5126
|
+
readonly internalType: "bytes[5]";
|
|
5127
|
+
readonly name: "depositInfo";
|
|
5128
|
+
readonly type: "bytes[5]";
|
|
5129
|
+
}, {
|
|
5130
|
+
readonly internalType: "address";
|
|
5131
|
+
readonly name: "userEphemeralL2Address";
|
|
5132
|
+
readonly type: "address";
|
|
5133
|
+
}, {
|
|
5134
|
+
readonly internalType: "uint64";
|
|
5135
|
+
readonly name: "scriptTimeout";
|
|
5136
|
+
readonly type: "uint64";
|
|
5137
|
+
}];
|
|
5138
|
+
readonly internalType: "struct ITypes.ScriptInfo";
|
|
5139
|
+
readonly name: "scriptInfo";
|
|
5140
|
+
readonly type: "tuple";
|
|
5141
|
+
}];
|
|
5142
|
+
readonly internalType: "struct ITypes.TradeData";
|
|
5143
|
+
readonly name: "tradeData";
|
|
5144
|
+
readonly type: "tuple";
|
|
5145
|
+
}, {
|
|
5146
|
+
readonly components: readonly [{
|
|
5147
|
+
readonly internalType: "bytes";
|
|
5148
|
+
readonly name: "refundAddress";
|
|
5149
|
+
readonly type: "bytes";
|
|
5150
|
+
}, {
|
|
5151
|
+
readonly internalType: "bytes[]";
|
|
5152
|
+
readonly name: "presigns";
|
|
5153
|
+
readonly type: "bytes[]";
|
|
5154
|
+
}];
|
|
5155
|
+
readonly internalType: "struct ITypes.RefundPresign";
|
|
5156
|
+
readonly name: "refundPresign";
|
|
5157
|
+
readonly type: "tuple";
|
|
5158
|
+
}];
|
|
5159
|
+
readonly name: "submitDeposit";
|
|
5160
|
+
readonly outputs: readonly [];
|
|
5161
|
+
readonly stateMutability: "nonpayable";
|
|
5162
|
+
readonly type: "function";
|
|
4670
5163
|
}, {
|
|
4671
5164
|
readonly inputs: readonly [{
|
|
4672
5165
|
readonly internalType: "bytes32";
|
|
@@ -4767,20 +5260,6 @@ declare class Router__factory {
|
|
|
4767
5260
|
readonly outputs: readonly [];
|
|
4768
5261
|
readonly stateMutability: "nonpayable";
|
|
4769
5262
|
readonly type: "function";
|
|
4770
|
-
}, {
|
|
4771
|
-
readonly inputs: readonly [{
|
|
4772
|
-
readonly internalType: "address";
|
|
4773
|
-
readonly name: "";
|
|
4774
|
-
readonly type: "address";
|
|
4775
|
-
}];
|
|
4776
|
-
readonly name: "version";
|
|
4777
|
-
readonly outputs: readonly [{
|
|
4778
|
-
readonly internalType: "uint256";
|
|
4779
|
-
readonly name: "";
|
|
4780
|
-
readonly type: "uint256";
|
|
4781
|
-
}];
|
|
4782
|
-
readonly stateMutability: "view";
|
|
4783
|
-
readonly type: "function";
|
|
4784
5263
|
}];
|
|
4785
5264
|
static createInterface(): RouterInterface;
|
|
4786
5265
|
static connect(address: string, runner?: ContractRunner | null): Router;
|
|
@@ -5043,12 +5522,47 @@ type index_ERC20__factory = ERC20__factory;
|
|
|
5043
5522
|
declare const index_ERC20__factory: typeof ERC20__factory;
|
|
5044
5523
|
type index_Payment__factory = Payment__factory;
|
|
5045
5524
|
declare const index_Payment__factory: typeof Payment__factory;
|
|
5525
|
+
type index_ProtocolFetcherProxy__factory = ProtocolFetcherProxy__factory;
|
|
5526
|
+
declare const index_ProtocolFetcherProxy__factory: typeof ProtocolFetcherProxy__factory;
|
|
5046
5527
|
type index_Router__factory = Router__factory;
|
|
5047
5528
|
declare const index_Router__factory: typeof Router__factory;
|
|
5048
5529
|
type index_Signer__factory = Signer__factory;
|
|
5049
5530
|
declare const index_Signer__factory: typeof Signer__factory;
|
|
5050
5531
|
declare namespace index {
|
|
5051
|
-
export { index_ERC20__factory as ERC20__factory, index_Payment__factory as Payment__factory, index_Router__factory as Router__factory, index_Signer__factory as Signer__factory };
|
|
5532
|
+
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 };
|
|
5533
|
+
}
|
|
5534
|
+
|
|
5535
|
+
declare namespace ITypes {
|
|
5536
|
+
type MPCInfoStruct = ITypes$2.MPCInfoStruct;
|
|
5537
|
+
type MPCInfoStructOutput = ITypes$2.MPCInfoStructOutput;
|
|
5538
|
+
type TokenInfoStruct = ITypes$2.TokenInfoStruct;
|
|
5539
|
+
type TokenInfoStructOutput = ITypes$2.TokenInfoStructOutput;
|
|
5540
|
+
type RFQInfoStruct = ITypes$1.RFQInfoStruct;
|
|
5541
|
+
type RFQInfoStructOutput = ITypes$1.RFQInfoStructOutput;
|
|
5542
|
+
type BundlePaymentStruct = ITypes$1.BundlePaymentStruct;
|
|
5543
|
+
type BundlePaymentStructOutput = ITypes$1.BundlePaymentStructOutput;
|
|
5544
|
+
type AffiliateStruct = ITypes$1.AffiliateStruct;
|
|
5545
|
+
type AffiliateStructOutput = ITypes$1.AffiliateStructOutput;
|
|
5546
|
+
type FailureDetailsStruct = ITypes$1.FailureDetailsStruct;
|
|
5547
|
+
type FailureDetailsStructOutput = ITypes$1.FailureDetailsStructOutput;
|
|
5548
|
+
type FeeDetailsStruct = ITypes$1.FeeDetailsStruct;
|
|
5549
|
+
type FeeDetailsStructOutput = ITypes$1.FeeDetailsStructOutput;
|
|
5550
|
+
type SelectedPMMInfoStruct = ITypes$1.SelectedPMMInfoStruct;
|
|
5551
|
+
type SelectedPMMInfoStructOutput = ITypes$1.SelectedPMMInfoStructOutput;
|
|
5552
|
+
type PMMSelectionStruct = ITypes$1.PMMSelectionStruct;
|
|
5553
|
+
type PMMSelectionStructOutput = ITypes$1.PMMSelectionStructOutput;
|
|
5554
|
+
type RefundPresignStruct = ITypes$1.RefundPresignStruct;
|
|
5555
|
+
type RefundPresignStructOutput = ITypes$1.RefundPresignStructOutput;
|
|
5556
|
+
type SettlementPresignStruct = ITypes$1.SettlementPresignStruct;
|
|
5557
|
+
type SettlementPresignStructOutput = ITypes$1.SettlementPresignStructOutput;
|
|
5558
|
+
type TradeInfoStruct = ITypes$1.TradeInfoStruct;
|
|
5559
|
+
type TradeInfoStructOutput = ITypes$1.TradeInfoStructOutput;
|
|
5560
|
+
type ScriptInfoStruct = ITypes$1.ScriptInfoStruct;
|
|
5561
|
+
type ScriptInfoStructOutput = ITypes$1.ScriptInfoStructOutput;
|
|
5562
|
+
type TradeDataStruct = ITypes$1.TradeDataStruct;
|
|
5563
|
+
type TradeDataStructOutput = ITypes$1.TradeDataStructOutput;
|
|
5564
|
+
type TradeFinalizationStruct = ITypes$1.TradeFinalizationStruct;
|
|
5565
|
+
type TradeFinalizationStructOutput = ITypes$1.TradeFinalizationStructOutput;
|
|
5052
5566
|
}
|
|
5053
5567
|
|
|
5054
5568
|
declare class RouterService implements ConfigObserver {
|
|
@@ -5061,29 +5575,12 @@ declare class RouterService implements ConfigObserver {
|
|
|
5061
5575
|
*/
|
|
5062
5576
|
onConfigUpdate(newConfig: AppConfig): void;
|
|
5063
5577
|
getSigner(): Promise<string>;
|
|
5064
|
-
getCurrentPubkey(network: string): Promise<ITypes.MPCInfoStructOutput>;
|
|
5065
|
-
getCurrentStage(tradeId: BytesLike): Promise<bigint>;
|
|
5066
|
-
getDepositAddressList(tradeId: BytesLike): Promise<BytesLike[]>;
|
|
5067
5578
|
getHandler(fromChain: BytesLike, toChain: BytesLike): Promise<[string, string]>;
|
|
5068
|
-
getPFeeRate(): Promise<bigint>;
|
|
5069
5579
|
getPMMSelection(tradeId: BytesLike): Promise<ITypes.PMMSelectionStructOutput>;
|
|
5070
5580
|
getSettlementPresigns(tradeId: BytesLike): Promise<ITypes.SettlementPresignStructOutput[]>;
|
|
5071
|
-
getRefundPresigns(tradeId: BytesLike): Promise<ITypes.RefundPresignStructOutput>;
|
|
5072
|
-
getProtocolState(): Promise<bigint>;
|
|
5073
5581
|
getFeeDetails(tradeId: BytesLike): Promise<ITypes.FeeDetailsStructOutput>;
|
|
5074
|
-
getTradeFinalization(tradeId: BytesLike): Promise<ITypes.TradeFinalizationStructOutput>;
|
|
5075
|
-
getTokens(fromIdx: bigint, toIdx: bigint): Promise<ITypes.TokenInfoStructOutput[]>;
|
|
5076
5582
|
getTradeData(tradeId: BytesLike): Promise<ITypes.TradeDataStructOutput>;
|
|
5077
|
-
isMPCNode(account: string): Promise<boolean>;
|
|
5078
|
-
isSolver(account: string): Promise<boolean>;
|
|
5079
|
-
isSuspended(stage: bigint): Promise<boolean>;
|
|
5080
|
-
isValidNetwork(networkId: BytesLike): Promise<boolean>;
|
|
5081
|
-
isValidPMM(pmmId: BytesLike): Promise<boolean>;
|
|
5082
|
-
isValidPMMAccount(pmmId: BytesLike, account: string): Promise<boolean>;
|
|
5083
|
-
isValidToken(networkId: BytesLike, tokenId: BytesLike): Promise<boolean>;
|
|
5084
5583
|
getManagement(): Promise<string>;
|
|
5085
|
-
getNumOfSupportedTokens(): Promise<bigint>;
|
|
5086
|
-
getVersion(address: string): Promise<bigint>;
|
|
5087
5584
|
}
|
|
5088
5585
|
declare const routerService: RouterService;
|
|
5089
5586
|
|
|
@@ -5114,16 +5611,16 @@ declare const SubmitSettlementRequestSchema: z.ZodObject<{
|
|
|
5114
5611
|
signedAt: z.ZodNumber;
|
|
5115
5612
|
}, "strip", z.ZodTypeAny, {
|
|
5116
5613
|
signature: string;
|
|
5614
|
+
pmmId: string;
|
|
5117
5615
|
tradeIds: string[];
|
|
5118
5616
|
signedAt: number;
|
|
5119
|
-
pmmId: string;
|
|
5120
5617
|
settlementTx: string;
|
|
5121
5618
|
startIndex: number;
|
|
5122
5619
|
}, {
|
|
5123
5620
|
signature: string;
|
|
5621
|
+
pmmId: string;
|
|
5124
5622
|
tradeIds: string[];
|
|
5125
5623
|
signedAt: number;
|
|
5126
|
-
pmmId: string;
|
|
5127
5624
|
settlementTx: string;
|
|
5128
5625
|
startIndex: number;
|
|
5129
5626
|
}>;
|
|
@@ -5233,16 +5730,16 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
|
|
|
5233
5730
|
signedAt: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5234
5731
|
}, "strip", z.ZodTypeAny, {
|
|
5235
5732
|
signature: string;
|
|
5733
|
+
pmmId: string;
|
|
5236
5734
|
tradeIds: string[] | null;
|
|
5237
5735
|
signedAt: number;
|
|
5238
|
-
pmmId: string;
|
|
5239
5736
|
settlementTx: string;
|
|
5240
5737
|
startIndex: number;
|
|
5241
5738
|
}, {
|
|
5242
5739
|
tradeIds: string[] | null;
|
|
5243
5740
|
signature?: string | undefined;
|
|
5244
|
-
signedAt?: number | undefined;
|
|
5245
5741
|
pmmId?: string | undefined;
|
|
5742
|
+
signedAt?: number | undefined;
|
|
5246
5743
|
settlementTx?: string | undefined;
|
|
5247
5744
|
startIndex?: number | undefined;
|
|
5248
5745
|
}>;
|
|
@@ -5306,9 +5803,9 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
|
|
|
5306
5803
|
depositVault: string;
|
|
5307
5804
|
paymentBundle: {
|
|
5308
5805
|
signature: string;
|
|
5806
|
+
pmmId: string;
|
|
5309
5807
|
tradeIds: string[] | null;
|
|
5310
5808
|
signedAt: number;
|
|
5311
|
-
pmmId: string;
|
|
5312
5809
|
settlementTx: string;
|
|
5313
5810
|
startIndex: number;
|
|
5314
5811
|
};
|
|
@@ -5370,8 +5867,8 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
|
|
|
5370
5867
|
paymentBundle: {
|
|
5371
5868
|
tradeIds: string[] | null;
|
|
5372
5869
|
signature?: string | undefined;
|
|
5373
|
-
signedAt?: number | undefined;
|
|
5374
5870
|
pmmId?: string | undefined;
|
|
5871
|
+
signedAt?: number | undefined;
|
|
5375
5872
|
settlementTx?: string | undefined;
|
|
5376
5873
|
startIndex?: number | undefined;
|
|
5377
5874
|
};
|
|
@@ -5435,9 +5932,9 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
|
|
|
5435
5932
|
depositVault: string;
|
|
5436
5933
|
paymentBundle: {
|
|
5437
5934
|
signature: string;
|
|
5935
|
+
pmmId: string;
|
|
5438
5936
|
tradeIds: string[] | null;
|
|
5439
5937
|
signedAt: number;
|
|
5440
|
-
pmmId: string;
|
|
5441
5938
|
settlementTx: string;
|
|
5442
5939
|
startIndex: number;
|
|
5443
5940
|
};
|
|
@@ -5502,8 +5999,8 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
|
|
|
5502
5999
|
paymentBundle: {
|
|
5503
6000
|
tradeIds: string[] | null;
|
|
5504
6001
|
signature?: string | undefined;
|
|
5505
|
-
signedAt?: number | undefined;
|
|
5506
6002
|
pmmId?: string | undefined;
|
|
6003
|
+
signedAt?: number | undefined;
|
|
5507
6004
|
settlementTx?: string | undefined;
|
|
5508
6005
|
startIndex?: number | undefined;
|
|
5509
6006
|
};
|
|
@@ -5687,4 +6184,4 @@ declare function camelToSnakeCase(str: string): string;
|
|
|
5687
6184
|
declare const ensureHexPrefix: (value: string) => string;
|
|
5688
6185
|
declare const removeHexPrefix: (value: string) => string;
|
|
5689
6186
|
|
|
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 };
|
|
6187
|
+
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 };
|