@optimex-xyz/market-maker-sdk 0.6.0-staging-7b0e931 → 0.6.0-staging-9f1cd12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +542 -80
- package/dist/index.d.ts +542 -80
- package/dist/index.js +385 -46
- package/dist/index.mjs +385 -46
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1135,6 +1135,14 @@ declare namespace ITypes {
|
|
|
1135
1135
|
schema: string;
|
|
1136
1136
|
data: string;
|
|
1137
1137
|
};
|
|
1138
|
+
type FailureDetailsStruct = {
|
|
1139
|
+
stage: BigNumberish;
|
|
1140
|
+
msgError: BytesLike;
|
|
1141
|
+
};
|
|
1142
|
+
type FailureDetailsStructOutput = [stage: bigint, msgError: string] & {
|
|
1143
|
+
stage: bigint;
|
|
1144
|
+
msgError: string;
|
|
1145
|
+
};
|
|
1138
1146
|
type FeeDetailsStruct = {
|
|
1139
1147
|
totalAmount: BigNumberish;
|
|
1140
1148
|
pFeeAmount: BigNumberish;
|
|
@@ -1214,12 +1222,23 @@ declare namespace ITypes {
|
|
|
1214
1222
|
rfqInfo: ITypes.RFQInfoStructOutput;
|
|
1215
1223
|
pmmInfo: ITypes.SelectedPMMInfoStructOutput;
|
|
1216
1224
|
};
|
|
1217
|
-
type
|
|
1225
|
+
type RefundPresignStruct = {
|
|
1226
|
+
refundAddress: BytesLike;
|
|
1227
|
+
presigns: BytesLike[];
|
|
1228
|
+
};
|
|
1229
|
+
type RefundPresignStructOutput = [
|
|
1230
|
+
refundAddress: string,
|
|
1231
|
+
presigns: string[]
|
|
1232
|
+
] & {
|
|
1233
|
+
refundAddress: string;
|
|
1234
|
+
presigns: string[];
|
|
1235
|
+
};
|
|
1236
|
+
type SettlementPresignStruct = {
|
|
1218
1237
|
pmmId: BytesLike;
|
|
1219
1238
|
pmmRecvAddress: BytesLike;
|
|
1220
1239
|
presigns: BytesLike[];
|
|
1221
1240
|
};
|
|
1222
|
-
type
|
|
1241
|
+
type SettlementPresignStructOutput = [
|
|
1223
1242
|
pmmId: string,
|
|
1224
1243
|
pmmRecvAddress: string,
|
|
1225
1244
|
presigns: string[]
|
|
@@ -1228,23 +1247,6 @@ declare namespace ITypes {
|
|
|
1228
1247
|
pmmRecvAddress: string;
|
|
1229
1248
|
presigns: string[];
|
|
1230
1249
|
};
|
|
1231
|
-
type SettledPaymentStruct = {
|
|
1232
|
-
bundlerHash: BytesLike;
|
|
1233
|
-
paymentTxId: BytesLike;
|
|
1234
|
-
releaseTxId: BytesLike;
|
|
1235
|
-
isConfirmed: boolean;
|
|
1236
|
-
};
|
|
1237
|
-
type SettledPaymentStructOutput = [
|
|
1238
|
-
bundlerHash: string,
|
|
1239
|
-
paymentTxId: string,
|
|
1240
|
-
releaseTxId: string,
|
|
1241
|
-
isConfirmed: boolean
|
|
1242
|
-
] & {
|
|
1243
|
-
bundlerHash: string;
|
|
1244
|
-
paymentTxId: string;
|
|
1245
|
-
releaseTxId: string;
|
|
1246
|
-
isConfirmed: boolean;
|
|
1247
|
-
};
|
|
1248
1250
|
type TokenInfoStruct = {
|
|
1249
1251
|
info: [BytesLike, BytesLike, BytesLike, BytesLike, BytesLike];
|
|
1250
1252
|
decimals: BigNumberish;
|
|
@@ -1298,18 +1300,43 @@ declare namespace ITypes {
|
|
|
1298
1300
|
tradeInfo: ITypes.TradeInfoStructOutput;
|
|
1299
1301
|
scriptInfo: ITypes.ScriptInfoStructOutput;
|
|
1300
1302
|
};
|
|
1303
|
+
type TradeFinalizationStruct = {
|
|
1304
|
+
bundlerHash: BytesLike;
|
|
1305
|
+
index: BigNumberish;
|
|
1306
|
+
paymentTxId: BytesLike;
|
|
1307
|
+
releaseTxId: BytesLike;
|
|
1308
|
+
refundTxId: BytesLike;
|
|
1309
|
+
isConfirmed: boolean;
|
|
1310
|
+
};
|
|
1311
|
+
type TradeFinalizationStructOutput = [
|
|
1312
|
+
bundlerHash: string,
|
|
1313
|
+
index: bigint,
|
|
1314
|
+
paymentTxId: string,
|
|
1315
|
+
releaseTxId: string,
|
|
1316
|
+
refundTxId: string,
|
|
1317
|
+
isConfirmed: boolean
|
|
1318
|
+
] & {
|
|
1319
|
+
bundlerHash: string;
|
|
1320
|
+
index: bigint;
|
|
1321
|
+
paymentTxId: string;
|
|
1322
|
+
releaseTxId: string;
|
|
1323
|
+
refundTxId: string;
|
|
1324
|
+
isConfirmed: boolean;
|
|
1325
|
+
};
|
|
1301
1326
|
}
|
|
1302
1327
|
interface RouterInterface extends Interface {
|
|
1303
|
-
getFunction(nameOrSignature: "SIGNER" | "bundlePayment" | "confirmDeposit" | "confirmPayment" | "confirmSettlement" | "getAffiliateInfo" | "getCurrentStage" | "getDepositAddressList" | "getFeeDetails" | "getHandler" | "getHandlerOf" | "getLastSignedPayment" | "getLatestMPCInfo" | "getMPCInfo" | "getManagementOwner" | "getMaxAffiliateFeeRate" | "getPFeeRate" | "getPMMAccounts" | "getPMMSelection" | "
|
|
1304
|
-
getEvent(nameOrSignatureOrTopic: "ConfirmDeposit" | "ConfirmPayment" | "ConfirmSettlement" | "MakePayment" | "SelectPMM" | "SubmitTradeInfo" | "UpdatedRoute"): EventFragment;
|
|
1328
|
+
getFunction(nameOrSignature: "SIGNER" | "bundlePayment" | "confirmDeposit" | "confirmPayment" | "confirmSettlement" | "getAffiliateInfo" | "getCurrentEpoch" | "getCurrentStage" | "getDepositAddressList" | "getFailureInfo" | "getFeeDetails" | "getHandler" | "getHandlerOf" | "getLastSignedPayment" | "getLatestMPCInfo" | "getMPCInfo" | "getManagementOwner" | "getMaxAffiliateFeeRate" | "getPFeeRate" | "getPMMAccounts" | "getPMMSelection" | "getPendingTrades" | "getPendingTradesCount" | "getProtocolState" | "getRefundPresigns" | "getSettlementPresigns" | "getTokens" | "getTradeData" | "getTradeFinalization" | "isMPCNode" | "isSolver" | "isSuspended" | "isValidNetwork" | "isValidPMM" | "isValidPMMAccount" | "isValidPubkey" | "isValidToken" | "management" | "numOfPMMAccounts" | "numOfSupportedTokens" | "refund" | "report" | "selectPMM" | "setManagement" | "setRoute" | "submitTrade" | "version"): FunctionFragment;
|
|
1329
|
+
getEvent(nameOrSignatureOrTopic: "ConfirmDeposit" | "ConfirmPayment" | "ConfirmRefund" | "ConfirmSettlement" | "MakePayment" | "ReportFailure" | "SelectPMM" | "SubmitTradeInfo" | "UpdatedRoute"): EventFragment;
|
|
1305
1330
|
encodeFunctionData(functionFragment: "SIGNER", values?: undefined): string;
|
|
1306
1331
|
encodeFunctionData(functionFragment: "bundlePayment", values: [ITypes.BundlePaymentStruct]): string;
|
|
1307
1332
|
encodeFunctionData(functionFragment: "confirmDeposit", values: [BytesLike, BytesLike, BytesLike[]]): string;
|
|
1308
1333
|
encodeFunctionData(functionFragment: "confirmPayment", values: [BytesLike, BytesLike]): string;
|
|
1309
1334
|
encodeFunctionData(functionFragment: "confirmSettlement", values: [BytesLike, BytesLike, BytesLike]): string;
|
|
1310
1335
|
encodeFunctionData(functionFragment: "getAffiliateInfo", values: [BytesLike]): string;
|
|
1336
|
+
encodeFunctionData(functionFragment: "getCurrentEpoch", values: [BytesLike, BytesLike]): string;
|
|
1311
1337
|
encodeFunctionData(functionFragment: "getCurrentStage", values: [BytesLike]): string;
|
|
1312
1338
|
encodeFunctionData(functionFragment: "getDepositAddressList", values: [BytesLike]): string;
|
|
1339
|
+
encodeFunctionData(functionFragment: "getFailureInfo", values: [BytesLike]): string;
|
|
1313
1340
|
encodeFunctionData(functionFragment: "getFeeDetails", values: [BytesLike]): string;
|
|
1314
1341
|
encodeFunctionData(functionFragment: "getHandler", values: [BytesLike, BytesLike]): string;
|
|
1315
1342
|
encodeFunctionData(functionFragment: "getHandlerOf", values: [BytesLike]): string;
|
|
@@ -1321,11 +1348,14 @@ interface RouterInterface extends Interface {
|
|
|
1321
1348
|
encodeFunctionData(functionFragment: "getPFeeRate", values?: undefined): string;
|
|
1322
1349
|
encodeFunctionData(functionFragment: "getPMMAccounts", values: [BytesLike, BigNumberish, BigNumberish]): string;
|
|
1323
1350
|
encodeFunctionData(functionFragment: "getPMMSelection", values: [BytesLike]): string;
|
|
1324
|
-
encodeFunctionData(functionFragment: "
|
|
1351
|
+
encodeFunctionData(functionFragment: "getPendingTrades", values: [BigNumberish, BigNumberish, BigNumberish, BytesLike, BytesLike]): string;
|
|
1352
|
+
encodeFunctionData(functionFragment: "getPendingTradesCount", values: [BigNumberish, BytesLike, BytesLike]): string;
|
|
1325
1353
|
encodeFunctionData(functionFragment: "getProtocolState", values?: undefined): string;
|
|
1326
|
-
encodeFunctionData(functionFragment: "
|
|
1354
|
+
encodeFunctionData(functionFragment: "getRefundPresigns", values: [BytesLike]): string;
|
|
1355
|
+
encodeFunctionData(functionFragment: "getSettlementPresigns", values: [BytesLike]): string;
|
|
1327
1356
|
encodeFunctionData(functionFragment: "getTokens", values: [BigNumberish, BigNumberish]): string;
|
|
1328
1357
|
encodeFunctionData(functionFragment: "getTradeData", values: [BytesLike]): string;
|
|
1358
|
+
encodeFunctionData(functionFragment: "getTradeFinalization", values: [BytesLike]): string;
|
|
1329
1359
|
encodeFunctionData(functionFragment: "isMPCNode", values: [AddressLike]): string;
|
|
1330
1360
|
encodeFunctionData(functionFragment: "isSolver", values: [AddressLike]): string;
|
|
1331
1361
|
encodeFunctionData(functionFragment: "isSuspended", values: [BigNumberish]): string;
|
|
@@ -1337,6 +1367,8 @@ interface RouterInterface extends Interface {
|
|
|
1337
1367
|
encodeFunctionData(functionFragment: "management", values?: undefined): string;
|
|
1338
1368
|
encodeFunctionData(functionFragment: "numOfPMMAccounts", values: [BytesLike]): string;
|
|
1339
1369
|
encodeFunctionData(functionFragment: "numOfSupportedTokens", values?: undefined): string;
|
|
1370
|
+
encodeFunctionData(functionFragment: "refund", values: [BytesLike, BytesLike, BytesLike]): string;
|
|
1371
|
+
encodeFunctionData(functionFragment: "report", values: [BytesLike, BytesLike, BytesLike]): string;
|
|
1340
1372
|
encodeFunctionData(functionFragment: "selectPMM", values: [BytesLike, ITypes.PMMSelectionStruct]): string;
|
|
1341
1373
|
encodeFunctionData(functionFragment: "setManagement", values: [AddressLike]): string;
|
|
1342
1374
|
encodeFunctionData(functionFragment: "setRoute", values: [AddressLike, BytesLike, BytesLike]): string;
|
|
@@ -1344,7 +1376,8 @@ interface RouterInterface extends Interface {
|
|
|
1344
1376
|
BytesLike,
|
|
1345
1377
|
ITypes.TradeDataStruct,
|
|
1346
1378
|
ITypes.AffiliateStruct,
|
|
1347
|
-
ITypes.
|
|
1379
|
+
ITypes.SettlementPresignStruct[],
|
|
1380
|
+
ITypes.RefundPresignStruct
|
|
1348
1381
|
]): string;
|
|
1349
1382
|
encodeFunctionData(functionFragment: "version", values: [AddressLike]): string;
|
|
1350
1383
|
decodeFunctionResult(functionFragment: "SIGNER", data: BytesLike): Result;
|
|
@@ -1353,8 +1386,10 @@ interface RouterInterface extends Interface {
|
|
|
1353
1386
|
decodeFunctionResult(functionFragment: "confirmPayment", data: BytesLike): Result;
|
|
1354
1387
|
decodeFunctionResult(functionFragment: "confirmSettlement", data: BytesLike): Result;
|
|
1355
1388
|
decodeFunctionResult(functionFragment: "getAffiliateInfo", data: BytesLike): Result;
|
|
1389
|
+
decodeFunctionResult(functionFragment: "getCurrentEpoch", data: BytesLike): Result;
|
|
1356
1390
|
decodeFunctionResult(functionFragment: "getCurrentStage", data: BytesLike): Result;
|
|
1357
1391
|
decodeFunctionResult(functionFragment: "getDepositAddressList", data: BytesLike): Result;
|
|
1392
|
+
decodeFunctionResult(functionFragment: "getFailureInfo", data: BytesLike): Result;
|
|
1358
1393
|
decodeFunctionResult(functionFragment: "getFeeDetails", data: BytesLike): Result;
|
|
1359
1394
|
decodeFunctionResult(functionFragment: "getHandler", data: BytesLike): Result;
|
|
1360
1395
|
decodeFunctionResult(functionFragment: "getHandlerOf", data: BytesLike): Result;
|
|
@@ -1366,11 +1401,14 @@ interface RouterInterface extends Interface {
|
|
|
1366
1401
|
decodeFunctionResult(functionFragment: "getPFeeRate", data: BytesLike): Result;
|
|
1367
1402
|
decodeFunctionResult(functionFragment: "getPMMAccounts", data: BytesLike): Result;
|
|
1368
1403
|
decodeFunctionResult(functionFragment: "getPMMSelection", data: BytesLike): Result;
|
|
1369
|
-
decodeFunctionResult(functionFragment: "
|
|
1404
|
+
decodeFunctionResult(functionFragment: "getPendingTrades", data: BytesLike): Result;
|
|
1405
|
+
decodeFunctionResult(functionFragment: "getPendingTradesCount", data: BytesLike): Result;
|
|
1370
1406
|
decodeFunctionResult(functionFragment: "getProtocolState", data: BytesLike): Result;
|
|
1371
|
-
decodeFunctionResult(functionFragment: "
|
|
1407
|
+
decodeFunctionResult(functionFragment: "getRefundPresigns", data: BytesLike): Result;
|
|
1408
|
+
decodeFunctionResult(functionFragment: "getSettlementPresigns", data: BytesLike): Result;
|
|
1372
1409
|
decodeFunctionResult(functionFragment: "getTokens", data: BytesLike): Result;
|
|
1373
1410
|
decodeFunctionResult(functionFragment: "getTradeData", data: BytesLike): Result;
|
|
1411
|
+
decodeFunctionResult(functionFragment: "getTradeFinalization", data: BytesLike): Result;
|
|
1374
1412
|
decodeFunctionResult(functionFragment: "isMPCNode", data: BytesLike): Result;
|
|
1375
1413
|
decodeFunctionResult(functionFragment: "isSolver", data: BytesLike): Result;
|
|
1376
1414
|
decodeFunctionResult(functionFragment: "isSuspended", data: BytesLike): Result;
|
|
@@ -1382,6 +1420,8 @@ interface RouterInterface extends Interface {
|
|
|
1382
1420
|
decodeFunctionResult(functionFragment: "management", data: BytesLike): Result;
|
|
1383
1421
|
decodeFunctionResult(functionFragment: "numOfPMMAccounts", data: BytesLike): Result;
|
|
1384
1422
|
decodeFunctionResult(functionFragment: "numOfSupportedTokens", data: BytesLike): Result;
|
|
1423
|
+
decodeFunctionResult(functionFragment: "refund", data: BytesLike): Result;
|
|
1424
|
+
decodeFunctionResult(functionFragment: "report", data: BytesLike): Result;
|
|
1385
1425
|
decodeFunctionResult(functionFragment: "selectPMM", data: BytesLike): Result;
|
|
1386
1426
|
decodeFunctionResult(functionFragment: "setManagement", data: BytesLike): Result;
|
|
1387
1427
|
decodeFunctionResult(functionFragment: "setRoute", data: BytesLike): Result;
|
|
@@ -1427,6 +1467,18 @@ declare namespace ConfirmPaymentEvent {
|
|
|
1427
1467
|
type Log = TypedEventLog<Event>;
|
|
1428
1468
|
type LogDescription = TypedLogDescription<Event>;
|
|
1429
1469
|
}
|
|
1470
|
+
declare namespace ConfirmRefundEvent {
|
|
1471
|
+
type InputTuple = [mpc: AddressLike, tradeId: BytesLike];
|
|
1472
|
+
type OutputTuple = [mpc: string, tradeId: string];
|
|
1473
|
+
interface OutputObject {
|
|
1474
|
+
mpc: string;
|
|
1475
|
+
tradeId: string;
|
|
1476
|
+
}
|
|
1477
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1478
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1479
|
+
type Log = TypedEventLog<Event>;
|
|
1480
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
1481
|
+
}
|
|
1430
1482
|
declare namespace ConfirmSettlementEvent {
|
|
1431
1483
|
type InputTuple = [mpc: AddressLike, tradeId: BytesLike];
|
|
1432
1484
|
type OutputTuple = [mpc: string, tradeId: string];
|
|
@@ -1451,6 +1503,23 @@ declare namespace MakePaymentEvent {
|
|
|
1451
1503
|
type Log = TypedEventLog<Event>;
|
|
1452
1504
|
type LogDescription = TypedLogDescription<Event>;
|
|
1453
1505
|
}
|
|
1506
|
+
declare namespace ReportFailureEvent {
|
|
1507
|
+
type InputTuple = [
|
|
1508
|
+
mpc: AddressLike,
|
|
1509
|
+
tradeId: BytesLike,
|
|
1510
|
+
msgError: BytesLike
|
|
1511
|
+
];
|
|
1512
|
+
type OutputTuple = [mpc: string, tradeId: string, msgError: string];
|
|
1513
|
+
interface OutputObject {
|
|
1514
|
+
mpc: string;
|
|
1515
|
+
tradeId: string;
|
|
1516
|
+
msgError: string;
|
|
1517
|
+
}
|
|
1518
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1519
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1520
|
+
type Log = TypedEventLog<Event>;
|
|
1521
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
1522
|
+
}
|
|
1454
1523
|
declare namespace SelectPMMEvent {
|
|
1455
1524
|
type InputTuple = [solver: AddressLike, tradeId: BytesLike];
|
|
1456
1525
|
type OutputTuple = [solver: string, tradeId: string];
|
|
@@ -1477,19 +1546,19 @@ declare namespace SubmitTradeInfoEvent {
|
|
|
1477
1546
|
}
|
|
1478
1547
|
declare namespace UpdatedRouteEvent {
|
|
1479
1548
|
type InputTuple = [
|
|
1480
|
-
|
|
1549
|
+
handler: AddressLike,
|
|
1481
1550
|
version: BigNumberish,
|
|
1482
1551
|
fromChain: BytesLike,
|
|
1483
1552
|
toChain: BytesLike
|
|
1484
1553
|
];
|
|
1485
1554
|
type OutputTuple = [
|
|
1486
|
-
|
|
1555
|
+
handler: string,
|
|
1487
1556
|
version: bigint,
|
|
1488
1557
|
fromChain: string,
|
|
1489
1558
|
toChain: string
|
|
1490
1559
|
];
|
|
1491
1560
|
interface OutputObject {
|
|
1492
|
-
|
|
1561
|
+
handler: string;
|
|
1493
1562
|
version: bigint;
|
|
1494
1563
|
fromChain: string;
|
|
1495
1564
|
toChain: string;
|
|
@@ -1543,12 +1612,23 @@ interface Router extends BaseContract {
|
|
|
1543
1612
|
], [
|
|
1544
1613
|
ITypes.AffiliateStructOutput
|
|
1545
1614
|
], "view">;
|
|
1615
|
+
getCurrentEpoch: TypedContractMethod<[
|
|
1616
|
+
fromChain: BytesLike,
|
|
1617
|
+
toChain: BytesLike
|
|
1618
|
+
], [
|
|
1619
|
+
[bigint, bigint, bigint]
|
|
1620
|
+
], "view">;
|
|
1546
1621
|
getCurrentStage: TypedContractMethod<[tradeId: BytesLike], [bigint], "view">;
|
|
1547
1622
|
getDepositAddressList: TypedContractMethod<[
|
|
1548
1623
|
tradeId: BytesLike
|
|
1549
1624
|
], [
|
|
1550
1625
|
string[]
|
|
1551
1626
|
], "view">;
|
|
1627
|
+
getFailureInfo: TypedContractMethod<[
|
|
1628
|
+
tradeId: BytesLike
|
|
1629
|
+
], [
|
|
1630
|
+
ITypes.FailureDetailsStructOutput
|
|
1631
|
+
], "view">;
|
|
1552
1632
|
getFeeDetails: TypedContractMethod<[
|
|
1553
1633
|
tradeId: BytesLike
|
|
1554
1634
|
], [
|
|
@@ -1607,16 +1687,32 @@ interface Router extends BaseContract {
|
|
|
1607
1687
|
], [
|
|
1608
1688
|
ITypes.PMMSelectionStructOutput
|
|
1609
1689
|
], "view">;
|
|
1610
|
-
|
|
1611
|
-
|
|
1690
|
+
getPendingTrades: TypedContractMethod<[
|
|
1691
|
+
epochNo: BigNumberish,
|
|
1692
|
+
fromIdx: BigNumberish,
|
|
1693
|
+
toIdx: BigNumberish,
|
|
1694
|
+
fromChain: BytesLike,
|
|
1695
|
+
toChain: BytesLike
|
|
1696
|
+
], [
|
|
1697
|
+
string[]
|
|
1698
|
+
], "view">;
|
|
1699
|
+
getPendingTradesCount: TypedContractMethod<[
|
|
1700
|
+
epochNo: BigNumberish,
|
|
1701
|
+
fromChain: BytesLike,
|
|
1702
|
+
toChain: BytesLike
|
|
1612
1703
|
], [
|
|
1613
|
-
|
|
1704
|
+
bigint
|
|
1614
1705
|
], "view">;
|
|
1615
1706
|
getProtocolState: TypedContractMethod<[], [bigint], "view">;
|
|
1616
|
-
|
|
1707
|
+
getRefundPresigns: TypedContractMethod<[
|
|
1617
1708
|
tradeId: BytesLike
|
|
1618
1709
|
], [
|
|
1619
|
-
ITypes.
|
|
1710
|
+
ITypes.RefundPresignStructOutput
|
|
1711
|
+
], "view">;
|
|
1712
|
+
getSettlementPresigns: TypedContractMethod<[
|
|
1713
|
+
tradeId: BytesLike
|
|
1714
|
+
], [
|
|
1715
|
+
ITypes.SettlementPresignStructOutput[]
|
|
1620
1716
|
], "view">;
|
|
1621
1717
|
getTokens: TypedContractMethod<[
|
|
1622
1718
|
fromIdx: BigNumberish,
|
|
@@ -1629,6 +1725,11 @@ interface Router extends BaseContract {
|
|
|
1629
1725
|
], [
|
|
1630
1726
|
ITypes.TradeDataStructOutput
|
|
1631
1727
|
], "view">;
|
|
1728
|
+
getTradeFinalization: TypedContractMethod<[
|
|
1729
|
+
tradeId: BytesLike
|
|
1730
|
+
], [
|
|
1731
|
+
ITypes.TradeFinalizationStructOutput
|
|
1732
|
+
], "view">;
|
|
1632
1733
|
isMPCNode: TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
1633
1734
|
isSolver: TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
1634
1735
|
isSuspended: TypedContractMethod<[stage: BigNumberish], [boolean], "view">;
|
|
@@ -1659,6 +1760,20 @@ interface Router extends BaseContract {
|
|
|
1659
1760
|
management: TypedContractMethod<[], [string], "view">;
|
|
1660
1761
|
numOfPMMAccounts: TypedContractMethod<[pmmId: BytesLike], [bigint], "view">;
|
|
1661
1762
|
numOfSupportedTokens: TypedContractMethod<[], [bigint], "view">;
|
|
1763
|
+
refund: TypedContractMethod<[
|
|
1764
|
+
tradeId: BytesLike,
|
|
1765
|
+
refundTxId: BytesLike,
|
|
1766
|
+
signature: BytesLike
|
|
1767
|
+
], [
|
|
1768
|
+
void
|
|
1769
|
+
], "nonpayable">;
|
|
1770
|
+
report: TypedContractMethod<[
|
|
1771
|
+
tradeId: BytesLike,
|
|
1772
|
+
msgError: BytesLike,
|
|
1773
|
+
signature: BytesLike
|
|
1774
|
+
], [
|
|
1775
|
+
void
|
|
1776
|
+
], "nonpayable">;
|
|
1662
1777
|
selectPMM: TypedContractMethod<[
|
|
1663
1778
|
tradeId: BytesLike,
|
|
1664
1779
|
info: ITypes.PMMSelectionStruct
|
|
@@ -1671,7 +1786,7 @@ interface Router extends BaseContract {
|
|
|
1671
1786
|
void
|
|
1672
1787
|
], "nonpayable">;
|
|
1673
1788
|
setRoute: TypedContractMethod<[
|
|
1674
|
-
|
|
1789
|
+
handler: AddressLike,
|
|
1675
1790
|
fromChain: BytesLike,
|
|
1676
1791
|
toChain: BytesLike
|
|
1677
1792
|
], [
|
|
@@ -1681,7 +1796,8 @@ interface Router extends BaseContract {
|
|
|
1681
1796
|
tradeId: BytesLike,
|
|
1682
1797
|
tradeData: ITypes.TradeDataStruct,
|
|
1683
1798
|
affiliateInfo: ITypes.AffiliateStruct,
|
|
1684
|
-
|
|
1799
|
+
settlementPresigns: ITypes.SettlementPresignStruct[],
|
|
1800
|
+
refundPresign: ITypes.RefundPresignStruct
|
|
1685
1801
|
], [
|
|
1686
1802
|
void
|
|
1687
1803
|
], "nonpayable">;
|
|
@@ -1718,8 +1834,19 @@ interface Router extends BaseContract {
|
|
|
1718
1834
|
], [
|
|
1719
1835
|
ITypes.AffiliateStructOutput
|
|
1720
1836
|
], "view">;
|
|
1837
|
+
getFunction(nameOrSignature: "getCurrentEpoch"): TypedContractMethod<[
|
|
1838
|
+
fromChain: BytesLike,
|
|
1839
|
+
toChain: BytesLike
|
|
1840
|
+
], [
|
|
1841
|
+
[bigint, bigint, bigint]
|
|
1842
|
+
], "view">;
|
|
1721
1843
|
getFunction(nameOrSignature: "getCurrentStage"): TypedContractMethod<[tradeId: BytesLike], [bigint], "view">;
|
|
1722
1844
|
getFunction(nameOrSignature: "getDepositAddressList"): TypedContractMethod<[tradeId: BytesLike], [string[]], "view">;
|
|
1845
|
+
getFunction(nameOrSignature: "getFailureInfo"): TypedContractMethod<[
|
|
1846
|
+
tradeId: BytesLike
|
|
1847
|
+
], [
|
|
1848
|
+
ITypes.FailureDetailsStructOutput
|
|
1849
|
+
], "view">;
|
|
1723
1850
|
getFunction(nameOrSignature: "getFeeDetails"): TypedContractMethod<[
|
|
1724
1851
|
tradeId: BytesLike
|
|
1725
1852
|
], [
|
|
@@ -1774,16 +1901,32 @@ interface Router extends BaseContract {
|
|
|
1774
1901
|
], [
|
|
1775
1902
|
ITypes.PMMSelectionStructOutput
|
|
1776
1903
|
], "view">;
|
|
1777
|
-
getFunction(nameOrSignature: "
|
|
1778
|
-
|
|
1904
|
+
getFunction(nameOrSignature: "getPendingTrades"): TypedContractMethod<[
|
|
1905
|
+
epochNo: BigNumberish,
|
|
1906
|
+
fromIdx: BigNumberish,
|
|
1907
|
+
toIdx: BigNumberish,
|
|
1908
|
+
fromChain: BytesLike,
|
|
1909
|
+
toChain: BytesLike
|
|
1779
1910
|
], [
|
|
1780
|
-
|
|
1911
|
+
string[]
|
|
1912
|
+
], "view">;
|
|
1913
|
+
getFunction(nameOrSignature: "getPendingTradesCount"): TypedContractMethod<[
|
|
1914
|
+
epochNo: BigNumberish,
|
|
1915
|
+
fromChain: BytesLike,
|
|
1916
|
+
toChain: BytesLike
|
|
1917
|
+
], [
|
|
1918
|
+
bigint
|
|
1781
1919
|
], "view">;
|
|
1782
1920
|
getFunction(nameOrSignature: "getProtocolState"): TypedContractMethod<[], [bigint], "view">;
|
|
1783
|
-
getFunction(nameOrSignature: "
|
|
1921
|
+
getFunction(nameOrSignature: "getRefundPresigns"): TypedContractMethod<[
|
|
1784
1922
|
tradeId: BytesLike
|
|
1785
1923
|
], [
|
|
1786
|
-
ITypes.
|
|
1924
|
+
ITypes.RefundPresignStructOutput
|
|
1925
|
+
], "view">;
|
|
1926
|
+
getFunction(nameOrSignature: "getSettlementPresigns"): TypedContractMethod<[
|
|
1927
|
+
tradeId: BytesLike
|
|
1928
|
+
], [
|
|
1929
|
+
ITypes.SettlementPresignStructOutput[]
|
|
1787
1930
|
], "view">;
|
|
1788
1931
|
getFunction(nameOrSignature: "getTokens"): TypedContractMethod<[
|
|
1789
1932
|
fromIdx: BigNumberish,
|
|
@@ -1796,6 +1939,11 @@ interface Router extends BaseContract {
|
|
|
1796
1939
|
], [
|
|
1797
1940
|
ITypes.TradeDataStructOutput
|
|
1798
1941
|
], "view">;
|
|
1942
|
+
getFunction(nameOrSignature: "getTradeFinalization"): TypedContractMethod<[
|
|
1943
|
+
tradeId: BytesLike
|
|
1944
|
+
], [
|
|
1945
|
+
ITypes.TradeFinalizationStructOutput
|
|
1946
|
+
], "view">;
|
|
1799
1947
|
getFunction(nameOrSignature: "isMPCNode"): TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
1800
1948
|
getFunction(nameOrSignature: "isSolver"): TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
1801
1949
|
getFunction(nameOrSignature: "isSuspended"): TypedContractMethod<[stage: BigNumberish], [boolean], "view">;
|
|
@@ -1822,6 +1970,20 @@ interface Router extends BaseContract {
|
|
|
1822
1970
|
getFunction(nameOrSignature: "management"): TypedContractMethod<[], [string], "view">;
|
|
1823
1971
|
getFunction(nameOrSignature: "numOfPMMAccounts"): TypedContractMethod<[pmmId: BytesLike], [bigint], "view">;
|
|
1824
1972
|
getFunction(nameOrSignature: "numOfSupportedTokens"): TypedContractMethod<[], [bigint], "view">;
|
|
1973
|
+
getFunction(nameOrSignature: "refund"): TypedContractMethod<[
|
|
1974
|
+
tradeId: BytesLike,
|
|
1975
|
+
refundTxId: BytesLike,
|
|
1976
|
+
signature: BytesLike
|
|
1977
|
+
], [
|
|
1978
|
+
void
|
|
1979
|
+
], "nonpayable">;
|
|
1980
|
+
getFunction(nameOrSignature: "report"): TypedContractMethod<[
|
|
1981
|
+
tradeId: BytesLike,
|
|
1982
|
+
msgError: BytesLike,
|
|
1983
|
+
signature: BytesLike
|
|
1984
|
+
], [
|
|
1985
|
+
void
|
|
1986
|
+
], "nonpayable">;
|
|
1825
1987
|
getFunction(nameOrSignature: "selectPMM"): TypedContractMethod<[
|
|
1826
1988
|
tradeId: BytesLike,
|
|
1827
1989
|
info: ITypes.PMMSelectionStruct
|
|
@@ -1830,7 +1992,7 @@ interface Router extends BaseContract {
|
|
|
1830
1992
|
], "nonpayable">;
|
|
1831
1993
|
getFunction(nameOrSignature: "setManagement"): TypedContractMethod<[newManagement: AddressLike], [void], "nonpayable">;
|
|
1832
1994
|
getFunction(nameOrSignature: "setRoute"): TypedContractMethod<[
|
|
1833
|
-
|
|
1995
|
+
handler: AddressLike,
|
|
1834
1996
|
fromChain: BytesLike,
|
|
1835
1997
|
toChain: BytesLike
|
|
1836
1998
|
], [
|
|
@@ -1840,15 +2002,18 @@ interface Router extends BaseContract {
|
|
|
1840
2002
|
tradeId: BytesLike,
|
|
1841
2003
|
tradeData: ITypes.TradeDataStruct,
|
|
1842
2004
|
affiliateInfo: ITypes.AffiliateStruct,
|
|
1843
|
-
|
|
2005
|
+
settlementPresigns: ITypes.SettlementPresignStruct[],
|
|
2006
|
+
refundPresign: ITypes.RefundPresignStruct
|
|
1844
2007
|
], [
|
|
1845
2008
|
void
|
|
1846
2009
|
], "nonpayable">;
|
|
1847
2010
|
getFunction(nameOrSignature: "version"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
1848
2011
|
getEvent(key: "ConfirmDeposit"): TypedContractEvent<ConfirmDepositEvent.InputTuple, ConfirmDepositEvent.OutputTuple, ConfirmDepositEvent.OutputObject>;
|
|
1849
2012
|
getEvent(key: "ConfirmPayment"): TypedContractEvent<ConfirmPaymentEvent.InputTuple, ConfirmPaymentEvent.OutputTuple, ConfirmPaymentEvent.OutputObject>;
|
|
2013
|
+
getEvent(key: "ConfirmRefund"): TypedContractEvent<ConfirmRefundEvent.InputTuple, ConfirmRefundEvent.OutputTuple, ConfirmRefundEvent.OutputObject>;
|
|
1850
2014
|
getEvent(key: "ConfirmSettlement"): TypedContractEvent<ConfirmSettlementEvent.InputTuple, ConfirmSettlementEvent.OutputTuple, ConfirmSettlementEvent.OutputObject>;
|
|
1851
2015
|
getEvent(key: "MakePayment"): TypedContractEvent<MakePaymentEvent.InputTuple, MakePaymentEvent.OutputTuple, MakePaymentEvent.OutputObject>;
|
|
2016
|
+
getEvent(key: "ReportFailure"): TypedContractEvent<ReportFailureEvent.InputTuple, ReportFailureEvent.OutputTuple, ReportFailureEvent.OutputObject>;
|
|
1852
2017
|
getEvent(key: "SelectPMM"): TypedContractEvent<SelectPMMEvent.InputTuple, SelectPMMEvent.OutputTuple, SelectPMMEvent.OutputObject>;
|
|
1853
2018
|
getEvent(key: "SubmitTradeInfo"): TypedContractEvent<SubmitTradeInfoEvent.InputTuple, SubmitTradeInfoEvent.OutputTuple, SubmitTradeInfoEvent.OutputObject>;
|
|
1854
2019
|
getEvent(key: "UpdatedRoute"): TypedContractEvent<UpdatedRouteEvent.InputTuple, UpdatedRouteEvent.OutputTuple, UpdatedRouteEvent.OutputObject>;
|
|
@@ -1857,10 +2022,14 @@ interface Router extends BaseContract {
|
|
|
1857
2022
|
ConfirmDeposit: TypedContractEvent<ConfirmDepositEvent.InputTuple, ConfirmDepositEvent.OutputTuple, ConfirmDepositEvent.OutputObject>;
|
|
1858
2023
|
"ConfirmPayment(address,bytes32)": TypedContractEvent<ConfirmPaymentEvent.InputTuple, ConfirmPaymentEvent.OutputTuple, ConfirmPaymentEvent.OutputObject>;
|
|
1859
2024
|
ConfirmPayment: TypedContractEvent<ConfirmPaymentEvent.InputTuple, ConfirmPaymentEvent.OutputTuple, ConfirmPaymentEvent.OutputObject>;
|
|
2025
|
+
"ConfirmRefund(address,bytes32)": TypedContractEvent<ConfirmRefundEvent.InputTuple, ConfirmRefundEvent.OutputTuple, ConfirmRefundEvent.OutputObject>;
|
|
2026
|
+
ConfirmRefund: TypedContractEvent<ConfirmRefundEvent.InputTuple, ConfirmRefundEvent.OutputTuple, ConfirmRefundEvent.OutputObject>;
|
|
1860
2027
|
"ConfirmSettlement(address,bytes32)": TypedContractEvent<ConfirmSettlementEvent.InputTuple, ConfirmSettlementEvent.OutputTuple, ConfirmSettlementEvent.OutputObject>;
|
|
1861
2028
|
ConfirmSettlement: TypedContractEvent<ConfirmSettlementEvent.InputTuple, ConfirmSettlementEvent.OutputTuple, ConfirmSettlementEvent.OutputObject>;
|
|
1862
2029
|
"MakePayment(address,bytes32)": TypedContractEvent<MakePaymentEvent.InputTuple, MakePaymentEvent.OutputTuple, MakePaymentEvent.OutputObject>;
|
|
1863
2030
|
MakePayment: TypedContractEvent<MakePaymentEvent.InputTuple, MakePaymentEvent.OutputTuple, MakePaymentEvent.OutputObject>;
|
|
2031
|
+
"ReportFailure(address,bytes32,bytes)": TypedContractEvent<ReportFailureEvent.InputTuple, ReportFailureEvent.OutputTuple, ReportFailureEvent.OutputObject>;
|
|
2032
|
+
ReportFailure: TypedContractEvent<ReportFailureEvent.InputTuple, ReportFailureEvent.OutputTuple, ReportFailureEvent.OutputObject>;
|
|
1864
2033
|
"SelectPMM(address,bytes32)": TypedContractEvent<SelectPMMEvent.InputTuple, SelectPMMEvent.OutputTuple, SelectPMMEvent.OutputObject>;
|
|
1865
2034
|
SelectPMM: TypedContractEvent<SelectPMMEvent.InputTuple, SelectPMMEvent.OutputTuple, SelectPMMEvent.OutputObject>;
|
|
1866
2035
|
"SubmitTradeInfo(address,bytes32)": TypedContractEvent<SubmitTradeInfoEvent.InputTuple, SubmitTradeInfoEvent.OutputTuple, SubmitTradeInfoEvent.OutputObject>;
|
|
@@ -1871,21 +2040,25 @@ interface Router extends BaseContract {
|
|
|
1871
2040
|
}
|
|
1872
2041
|
|
|
1873
2042
|
interface SignerInterface extends Interface {
|
|
1874
|
-
getFunction(nameOrSignature: "eip712Domain" | "getDepositConfirmationSigner" | "getMakePaymentSigner" | "getPMMSelectionSigner" | "getPaymentConfirmationSigner" | "getRFQSigner" | "getSettlementConfirmationSigner"): FunctionFragment;
|
|
2043
|
+
getFunction(nameOrSignature: "eip712Domain" | "getConfirmRefundSigner" | "getDepositConfirmationSigner" | "getMakePaymentSigner" | "getPMMSelectionSigner" | "getPaymentConfirmationSigner" | "getRFQSigner" | "getReportFailureSigner" | "getSettlementConfirmationSigner"): FunctionFragment;
|
|
1875
2044
|
getEvent(nameOrSignatureOrTopic: "EIP712DomainChanged"): EventFragment;
|
|
1876
2045
|
encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
|
|
2046
|
+
encodeFunctionData(functionFragment: "getConfirmRefundSigner", values: [BytesLike, BytesLike, BytesLike]): string;
|
|
1877
2047
|
encodeFunctionData(functionFragment: "getDepositConfirmationSigner", values: [BytesLike, BytesLike, BytesLike]): string;
|
|
1878
2048
|
encodeFunctionData(functionFragment: "getMakePaymentSigner", values: [BytesLike, BytesLike]): string;
|
|
1879
2049
|
encodeFunctionData(functionFragment: "getPMMSelectionSigner", values: [BytesLike, BytesLike, BytesLike]): string;
|
|
1880
2050
|
encodeFunctionData(functionFragment: "getPaymentConfirmationSigner", values: [BytesLike, BytesLike, BytesLike]): string;
|
|
1881
2051
|
encodeFunctionData(functionFragment: "getRFQSigner", values: [BytesLike, BytesLike, BytesLike]): string;
|
|
2052
|
+
encodeFunctionData(functionFragment: "getReportFailureSigner", values: [BytesLike, BytesLike, BytesLike]): string;
|
|
1882
2053
|
encodeFunctionData(functionFragment: "getSettlementConfirmationSigner", values: [BytesLike, BytesLike, BytesLike]): string;
|
|
1883
2054
|
decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result;
|
|
2055
|
+
decodeFunctionResult(functionFragment: "getConfirmRefundSigner", data: BytesLike): Result;
|
|
1884
2056
|
decodeFunctionResult(functionFragment: "getDepositConfirmationSigner", data: BytesLike): Result;
|
|
1885
2057
|
decodeFunctionResult(functionFragment: "getMakePaymentSigner", data: BytesLike): Result;
|
|
1886
2058
|
decodeFunctionResult(functionFragment: "getPMMSelectionSigner", data: BytesLike): Result;
|
|
1887
2059
|
decodeFunctionResult(functionFragment: "getPaymentConfirmationSigner", data: BytesLike): Result;
|
|
1888
2060
|
decodeFunctionResult(functionFragment: "getRFQSigner", data: BytesLike): Result;
|
|
2061
|
+
decodeFunctionResult(functionFragment: "getReportFailureSigner", data: BytesLike): Result;
|
|
1889
2062
|
decodeFunctionResult(functionFragment: "getSettlementConfirmationSigner", data: BytesLike): Result;
|
|
1890
2063
|
}
|
|
1891
2064
|
declare namespace EIP712DomainChangedEvent {
|
|
@@ -1931,6 +2104,13 @@ interface Signer extends BaseContract {
|
|
|
1931
2104
|
extensions: bigint[];
|
|
1932
2105
|
}
|
|
1933
2106
|
], "view">;
|
|
2107
|
+
getConfirmRefundSigner: TypedContractMethod<[
|
|
2108
|
+
tradeId: BytesLike,
|
|
2109
|
+
infoHash: BytesLike,
|
|
2110
|
+
signature: BytesLike
|
|
2111
|
+
], [
|
|
2112
|
+
string
|
|
2113
|
+
], "view">;
|
|
1934
2114
|
getDepositConfirmationSigner: TypedContractMethod<[
|
|
1935
2115
|
tradeId: BytesLike,
|
|
1936
2116
|
infoHash: BytesLike,
|
|
@@ -1965,6 +2145,13 @@ interface Signer extends BaseContract {
|
|
|
1965
2145
|
], [
|
|
1966
2146
|
string
|
|
1967
2147
|
], "view">;
|
|
2148
|
+
getReportFailureSigner: TypedContractMethod<[
|
|
2149
|
+
tradeId: BytesLike,
|
|
2150
|
+
infoHash: BytesLike,
|
|
2151
|
+
signature: BytesLike
|
|
2152
|
+
], [
|
|
2153
|
+
string
|
|
2154
|
+
], "view">;
|
|
1968
2155
|
getSettlementConfirmationSigner: TypedContractMethod<[
|
|
1969
2156
|
tradeId: BytesLike,
|
|
1970
2157
|
infoHash: BytesLike,
|
|
@@ -1993,6 +2180,13 @@ interface Signer extends BaseContract {
|
|
|
1993
2180
|
extensions: bigint[];
|
|
1994
2181
|
}
|
|
1995
2182
|
], "view">;
|
|
2183
|
+
getFunction(nameOrSignature: "getConfirmRefundSigner"): TypedContractMethod<[
|
|
2184
|
+
tradeId: BytesLike,
|
|
2185
|
+
infoHash: BytesLike,
|
|
2186
|
+
signature: BytesLike
|
|
2187
|
+
], [
|
|
2188
|
+
string
|
|
2189
|
+
], "view">;
|
|
1996
2190
|
getFunction(nameOrSignature: "getDepositConfirmationSigner"): TypedContractMethod<[
|
|
1997
2191
|
tradeId: BytesLike,
|
|
1998
2192
|
infoHash: BytesLike,
|
|
@@ -2027,6 +2221,13 @@ interface Signer extends BaseContract {
|
|
|
2027
2221
|
], [
|
|
2028
2222
|
string
|
|
2029
2223
|
], "view">;
|
|
2224
|
+
getFunction(nameOrSignature: "getReportFailureSigner"): TypedContractMethod<[
|
|
2225
|
+
tradeId: BytesLike,
|
|
2226
|
+
infoHash: BytesLike,
|
|
2227
|
+
signature: BytesLike
|
|
2228
|
+
], [
|
|
2229
|
+
string
|
|
2230
|
+
], "view">;
|
|
2030
2231
|
getFunction(nameOrSignature: "getSettlementConfirmationSigner"): TypedContractMethod<[
|
|
2031
2232
|
tradeId: BytesLike,
|
|
2032
2233
|
infoHash: BytesLike,
|
|
@@ -3377,6 +3578,21 @@ declare class Router__factory {
|
|
|
3377
3578
|
}];
|
|
3378
3579
|
readonly name: "ConfirmPayment";
|
|
3379
3580
|
readonly type: "event";
|
|
3581
|
+
}, {
|
|
3582
|
+
readonly anonymous: false;
|
|
3583
|
+
readonly inputs: readonly [{
|
|
3584
|
+
readonly indexed: true;
|
|
3585
|
+
readonly internalType: "address";
|
|
3586
|
+
readonly name: "mpc";
|
|
3587
|
+
readonly type: "address";
|
|
3588
|
+
}, {
|
|
3589
|
+
readonly indexed: true;
|
|
3590
|
+
readonly internalType: "bytes32";
|
|
3591
|
+
readonly name: "tradeId";
|
|
3592
|
+
readonly type: "bytes32";
|
|
3593
|
+
}];
|
|
3594
|
+
readonly name: "ConfirmRefund";
|
|
3595
|
+
readonly type: "event";
|
|
3380
3596
|
}, {
|
|
3381
3597
|
readonly anonymous: false;
|
|
3382
3598
|
readonly inputs: readonly [{
|
|
@@ -3407,6 +3623,26 @@ declare class Router__factory {
|
|
|
3407
3623
|
}];
|
|
3408
3624
|
readonly name: "MakePayment";
|
|
3409
3625
|
readonly type: "event";
|
|
3626
|
+
}, {
|
|
3627
|
+
readonly anonymous: false;
|
|
3628
|
+
readonly inputs: readonly [{
|
|
3629
|
+
readonly indexed: true;
|
|
3630
|
+
readonly internalType: "address";
|
|
3631
|
+
readonly name: "mpc";
|
|
3632
|
+
readonly type: "address";
|
|
3633
|
+
}, {
|
|
3634
|
+
readonly indexed: true;
|
|
3635
|
+
readonly internalType: "bytes32";
|
|
3636
|
+
readonly name: "tradeId";
|
|
3637
|
+
readonly type: "bytes32";
|
|
3638
|
+
}, {
|
|
3639
|
+
readonly indexed: false;
|
|
3640
|
+
readonly internalType: "bytes";
|
|
3641
|
+
readonly name: "msgError";
|
|
3642
|
+
readonly type: "bytes";
|
|
3643
|
+
}];
|
|
3644
|
+
readonly name: "ReportFailure";
|
|
3645
|
+
readonly type: "event";
|
|
3410
3646
|
}, {
|
|
3411
3647
|
readonly anonymous: false;
|
|
3412
3648
|
readonly inputs: readonly [{
|
|
@@ -3442,7 +3678,7 @@ declare class Router__factory {
|
|
|
3442
3678
|
readonly inputs: readonly [{
|
|
3443
3679
|
readonly indexed: true;
|
|
3444
3680
|
readonly internalType: "address";
|
|
3445
|
-
readonly name: "
|
|
3681
|
+
readonly name: "handler";
|
|
3446
3682
|
readonly type: "address";
|
|
3447
3683
|
}, {
|
|
3448
3684
|
readonly indexed: true;
|
|
@@ -3580,6 +3816,32 @@ declare class Router__factory {
|
|
|
3580
3816
|
}];
|
|
3581
3817
|
readonly stateMutability: "view";
|
|
3582
3818
|
readonly type: "function";
|
|
3819
|
+
}, {
|
|
3820
|
+
readonly inputs: readonly [{
|
|
3821
|
+
readonly internalType: "bytes";
|
|
3822
|
+
readonly name: "fromChain";
|
|
3823
|
+
readonly type: "bytes";
|
|
3824
|
+
}, {
|
|
3825
|
+
readonly internalType: "bytes";
|
|
3826
|
+
readonly name: "toChain";
|
|
3827
|
+
readonly type: "bytes";
|
|
3828
|
+
}];
|
|
3829
|
+
readonly name: "getCurrentEpoch";
|
|
3830
|
+
readonly outputs: readonly [{
|
|
3831
|
+
readonly internalType: "uint64";
|
|
3832
|
+
readonly name: "";
|
|
3833
|
+
readonly type: "uint64";
|
|
3834
|
+
}, {
|
|
3835
|
+
readonly internalType: "uint64";
|
|
3836
|
+
readonly name: "";
|
|
3837
|
+
readonly type: "uint64";
|
|
3838
|
+
}, {
|
|
3839
|
+
readonly internalType: "uint64";
|
|
3840
|
+
readonly name: "";
|
|
3841
|
+
readonly type: "uint64";
|
|
3842
|
+
}];
|
|
3843
|
+
readonly stateMutability: "view";
|
|
3844
|
+
readonly type: "function";
|
|
3583
3845
|
}, {
|
|
3584
3846
|
readonly inputs: readonly [{
|
|
3585
3847
|
readonly internalType: "bytes32";
|
|
@@ -3608,6 +3870,29 @@ declare class Router__factory {
|
|
|
3608
3870
|
}];
|
|
3609
3871
|
readonly stateMutability: "view";
|
|
3610
3872
|
readonly type: "function";
|
|
3873
|
+
}, {
|
|
3874
|
+
readonly inputs: readonly [{
|
|
3875
|
+
readonly internalType: "bytes32";
|
|
3876
|
+
readonly name: "tradeId";
|
|
3877
|
+
readonly type: "bytes32";
|
|
3878
|
+
}];
|
|
3879
|
+
readonly name: "getFailureInfo";
|
|
3880
|
+
readonly outputs: readonly [{
|
|
3881
|
+
readonly components: readonly [{
|
|
3882
|
+
readonly internalType: "uint256";
|
|
3883
|
+
readonly name: "stage";
|
|
3884
|
+
readonly type: "uint256";
|
|
3885
|
+
}, {
|
|
3886
|
+
readonly internalType: "bytes";
|
|
3887
|
+
readonly name: "msgError";
|
|
3888
|
+
readonly type: "bytes";
|
|
3889
|
+
}];
|
|
3890
|
+
readonly internalType: "struct ITypes.FailureDetails";
|
|
3891
|
+
readonly name: "";
|
|
3892
|
+
readonly type: "tuple";
|
|
3893
|
+
}];
|
|
3894
|
+
readonly stateMutability: "view";
|
|
3895
|
+
readonly type: "function";
|
|
3611
3896
|
}, {
|
|
3612
3897
|
readonly inputs: readonly [{
|
|
3613
3898
|
readonly internalType: "bytes32";
|
|
@@ -3876,40 +4161,88 @@ declare class Router__factory {
|
|
|
3876
4161
|
}];
|
|
3877
4162
|
readonly stateMutability: "view";
|
|
3878
4163
|
readonly type: "function";
|
|
4164
|
+
}, {
|
|
4165
|
+
readonly inputs: readonly [{
|
|
4166
|
+
readonly internalType: "uint256";
|
|
4167
|
+
readonly name: "epochNo";
|
|
4168
|
+
readonly type: "uint256";
|
|
4169
|
+
}, {
|
|
4170
|
+
readonly internalType: "uint256";
|
|
4171
|
+
readonly name: "fromIdx";
|
|
4172
|
+
readonly type: "uint256";
|
|
4173
|
+
}, {
|
|
4174
|
+
readonly internalType: "uint256";
|
|
4175
|
+
readonly name: "toIdx";
|
|
4176
|
+
readonly type: "uint256";
|
|
4177
|
+
}, {
|
|
4178
|
+
readonly internalType: "bytes";
|
|
4179
|
+
readonly name: "fromChain";
|
|
4180
|
+
readonly type: "bytes";
|
|
4181
|
+
}, {
|
|
4182
|
+
readonly internalType: "bytes";
|
|
4183
|
+
readonly name: "toChain";
|
|
4184
|
+
readonly type: "bytes";
|
|
4185
|
+
}];
|
|
4186
|
+
readonly name: "getPendingTrades";
|
|
4187
|
+
readonly outputs: readonly [{
|
|
4188
|
+
readonly internalType: "bytes32[]";
|
|
4189
|
+
readonly name: "";
|
|
4190
|
+
readonly type: "bytes32[]";
|
|
4191
|
+
}];
|
|
4192
|
+
readonly stateMutability: "view";
|
|
4193
|
+
readonly type: "function";
|
|
4194
|
+
}, {
|
|
4195
|
+
readonly inputs: readonly [{
|
|
4196
|
+
readonly internalType: "uint256";
|
|
4197
|
+
readonly name: "epochNo";
|
|
4198
|
+
readonly type: "uint256";
|
|
4199
|
+
}, {
|
|
4200
|
+
readonly internalType: "bytes";
|
|
4201
|
+
readonly name: "fromChain";
|
|
4202
|
+
readonly type: "bytes";
|
|
4203
|
+
}, {
|
|
4204
|
+
readonly internalType: "bytes";
|
|
4205
|
+
readonly name: "toChain";
|
|
4206
|
+
readonly type: "bytes";
|
|
4207
|
+
}];
|
|
4208
|
+
readonly name: "getPendingTradesCount";
|
|
4209
|
+
readonly outputs: readonly [{
|
|
4210
|
+
readonly internalType: "uint256";
|
|
4211
|
+
readonly name: "";
|
|
4212
|
+
readonly type: "uint256";
|
|
4213
|
+
}];
|
|
4214
|
+
readonly stateMutability: "view";
|
|
4215
|
+
readonly type: "function";
|
|
4216
|
+
}, {
|
|
4217
|
+
readonly inputs: readonly [];
|
|
4218
|
+
readonly name: "getProtocolState";
|
|
4219
|
+
readonly outputs: readonly [{
|
|
4220
|
+
readonly internalType: "uint256";
|
|
4221
|
+
readonly name: "";
|
|
4222
|
+
readonly type: "uint256";
|
|
4223
|
+
}];
|
|
4224
|
+
readonly stateMutability: "view";
|
|
4225
|
+
readonly type: "function";
|
|
3879
4226
|
}, {
|
|
3880
4227
|
readonly inputs: readonly [{
|
|
3881
4228
|
readonly internalType: "bytes32";
|
|
3882
4229
|
readonly name: "tradeId";
|
|
3883
4230
|
readonly type: "bytes32";
|
|
3884
4231
|
}];
|
|
3885
|
-
readonly name: "
|
|
4232
|
+
readonly name: "getRefundPresigns";
|
|
3886
4233
|
readonly outputs: readonly [{
|
|
3887
4234
|
readonly components: readonly [{
|
|
3888
|
-
readonly internalType: "bytes32";
|
|
3889
|
-
readonly name: "pmmId";
|
|
3890
|
-
readonly type: "bytes32";
|
|
3891
|
-
}, {
|
|
3892
4235
|
readonly internalType: "bytes";
|
|
3893
|
-
readonly name: "
|
|
4236
|
+
readonly name: "refundAddress";
|
|
3894
4237
|
readonly type: "bytes";
|
|
3895
4238
|
}, {
|
|
3896
4239
|
readonly internalType: "bytes[]";
|
|
3897
4240
|
readonly name: "presigns";
|
|
3898
4241
|
readonly type: "bytes[]";
|
|
3899
4242
|
}];
|
|
3900
|
-
readonly internalType: "struct ITypes.
|
|
3901
|
-
readonly name: "";
|
|
3902
|
-
readonly type: "tuple[]";
|
|
3903
|
-
}];
|
|
3904
|
-
readonly stateMutability: "view";
|
|
3905
|
-
readonly type: "function";
|
|
3906
|
-
}, {
|
|
3907
|
-
readonly inputs: readonly [];
|
|
3908
|
-
readonly name: "getProtocolState";
|
|
3909
|
-
readonly outputs: readonly [{
|
|
3910
|
-
readonly internalType: "uint256";
|
|
4243
|
+
readonly internalType: "struct ITypes.RefundPresign";
|
|
3911
4244
|
readonly name: "";
|
|
3912
|
-
readonly type: "
|
|
4245
|
+
readonly type: "tuple";
|
|
3913
4246
|
}];
|
|
3914
4247
|
readonly stateMutability: "view";
|
|
3915
4248
|
readonly type: "function";
|
|
@@ -3919,28 +4252,24 @@ declare class Router__factory {
|
|
|
3919
4252
|
readonly name: "tradeId";
|
|
3920
4253
|
readonly type: "bytes32";
|
|
3921
4254
|
}];
|
|
3922
|
-
readonly name: "
|
|
4255
|
+
readonly name: "getSettlementPresigns";
|
|
3923
4256
|
readonly outputs: readonly [{
|
|
3924
4257
|
readonly components: readonly [{
|
|
3925
4258
|
readonly internalType: "bytes32";
|
|
3926
|
-
readonly name: "
|
|
4259
|
+
readonly name: "pmmId";
|
|
3927
4260
|
readonly type: "bytes32";
|
|
3928
4261
|
}, {
|
|
3929
4262
|
readonly internalType: "bytes";
|
|
3930
|
-
readonly name: "
|
|
3931
|
-
readonly type: "bytes";
|
|
3932
|
-
}, {
|
|
3933
|
-
readonly internalType: "bytes";
|
|
3934
|
-
readonly name: "releaseTxId";
|
|
4263
|
+
readonly name: "pmmRecvAddress";
|
|
3935
4264
|
readonly type: "bytes";
|
|
3936
4265
|
}, {
|
|
3937
|
-
readonly internalType: "
|
|
3938
|
-
readonly name: "
|
|
3939
|
-
readonly type: "
|
|
4266
|
+
readonly internalType: "bytes[]";
|
|
4267
|
+
readonly name: "presigns";
|
|
4268
|
+
readonly type: "bytes[]";
|
|
3940
4269
|
}];
|
|
3941
|
-
readonly internalType: "struct ITypes.
|
|
4270
|
+
readonly internalType: "struct ITypes.SettlementPresign[]";
|
|
3942
4271
|
readonly name: "";
|
|
3943
|
-
readonly type: "tuple";
|
|
4272
|
+
readonly type: "tuple[]";
|
|
3944
4273
|
}];
|
|
3945
4274
|
readonly stateMutability: "view";
|
|
3946
4275
|
readonly type: "function";
|
|
@@ -4024,6 +4353,45 @@ declare class Router__factory {
|
|
|
4024
4353
|
}];
|
|
4025
4354
|
readonly stateMutability: "view";
|
|
4026
4355
|
readonly type: "function";
|
|
4356
|
+
}, {
|
|
4357
|
+
readonly inputs: readonly [{
|
|
4358
|
+
readonly internalType: "bytes32";
|
|
4359
|
+
readonly name: "tradeId";
|
|
4360
|
+
readonly type: "bytes32";
|
|
4361
|
+
}];
|
|
4362
|
+
readonly name: "getTradeFinalization";
|
|
4363
|
+
readonly outputs: readonly [{
|
|
4364
|
+
readonly components: readonly [{
|
|
4365
|
+
readonly internalType: "bytes32";
|
|
4366
|
+
readonly name: "bundlerHash";
|
|
4367
|
+
readonly type: "bytes32";
|
|
4368
|
+
}, {
|
|
4369
|
+
readonly internalType: "uint256";
|
|
4370
|
+
readonly name: "index";
|
|
4371
|
+
readonly type: "uint256";
|
|
4372
|
+
}, {
|
|
4373
|
+
readonly internalType: "bytes";
|
|
4374
|
+
readonly name: "paymentTxId";
|
|
4375
|
+
readonly type: "bytes";
|
|
4376
|
+
}, {
|
|
4377
|
+
readonly internalType: "bytes";
|
|
4378
|
+
readonly name: "releaseTxId";
|
|
4379
|
+
readonly type: "bytes";
|
|
4380
|
+
}, {
|
|
4381
|
+
readonly internalType: "bytes";
|
|
4382
|
+
readonly name: "refundTxId";
|
|
4383
|
+
readonly type: "bytes";
|
|
4384
|
+
}, {
|
|
4385
|
+
readonly internalType: "bool";
|
|
4386
|
+
readonly name: "isConfirmed";
|
|
4387
|
+
readonly type: "bool";
|
|
4388
|
+
}];
|
|
4389
|
+
readonly internalType: "struct ITypes.TradeFinalization";
|
|
4390
|
+
readonly name: "";
|
|
4391
|
+
readonly type: "tuple";
|
|
4392
|
+
}];
|
|
4393
|
+
readonly stateMutability: "view";
|
|
4394
|
+
readonly type: "function";
|
|
4027
4395
|
}, {
|
|
4028
4396
|
readonly inputs: readonly [{
|
|
4029
4397
|
readonly internalType: "address";
|
|
@@ -4182,6 +4550,42 @@ declare class Router__factory {
|
|
|
4182
4550
|
}];
|
|
4183
4551
|
readonly stateMutability: "view";
|
|
4184
4552
|
readonly type: "function";
|
|
4553
|
+
}, {
|
|
4554
|
+
readonly inputs: readonly [{
|
|
4555
|
+
readonly internalType: "bytes32";
|
|
4556
|
+
readonly name: "tradeId";
|
|
4557
|
+
readonly type: "bytes32";
|
|
4558
|
+
}, {
|
|
4559
|
+
readonly internalType: "bytes";
|
|
4560
|
+
readonly name: "refundTxId";
|
|
4561
|
+
readonly type: "bytes";
|
|
4562
|
+
}, {
|
|
4563
|
+
readonly internalType: "bytes";
|
|
4564
|
+
readonly name: "signature";
|
|
4565
|
+
readonly type: "bytes";
|
|
4566
|
+
}];
|
|
4567
|
+
readonly name: "refund";
|
|
4568
|
+
readonly outputs: readonly [];
|
|
4569
|
+
readonly stateMutability: "nonpayable";
|
|
4570
|
+
readonly type: "function";
|
|
4571
|
+
}, {
|
|
4572
|
+
readonly inputs: readonly [{
|
|
4573
|
+
readonly internalType: "bytes32";
|
|
4574
|
+
readonly name: "tradeId";
|
|
4575
|
+
readonly type: "bytes32";
|
|
4576
|
+
}, {
|
|
4577
|
+
readonly internalType: "bytes";
|
|
4578
|
+
readonly name: "msgError";
|
|
4579
|
+
readonly type: "bytes";
|
|
4580
|
+
}, {
|
|
4581
|
+
readonly internalType: "bytes";
|
|
4582
|
+
readonly name: "signature";
|
|
4583
|
+
readonly type: "bytes";
|
|
4584
|
+
}];
|
|
4585
|
+
readonly name: "report";
|
|
4586
|
+
readonly outputs: readonly [];
|
|
4587
|
+
readonly stateMutability: "nonpayable";
|
|
4588
|
+
readonly type: "function";
|
|
4185
4589
|
}, {
|
|
4186
4590
|
readonly inputs: readonly [{
|
|
4187
4591
|
readonly internalType: "bytes32";
|
|
@@ -4248,7 +4652,7 @@ declare class Router__factory {
|
|
|
4248
4652
|
}, {
|
|
4249
4653
|
readonly inputs: readonly [{
|
|
4250
4654
|
readonly internalType: "address";
|
|
4251
|
-
readonly name: "
|
|
4655
|
+
readonly name: "handler";
|
|
4252
4656
|
readonly type: "address";
|
|
4253
4657
|
}, {
|
|
4254
4658
|
readonly internalType: "bytes";
|
|
@@ -4342,9 +4746,22 @@ declare class Router__factory {
|
|
|
4342
4746
|
readonly name: "presigns";
|
|
4343
4747
|
readonly type: "bytes[]";
|
|
4344
4748
|
}];
|
|
4345
|
-
readonly internalType: "struct ITypes.
|
|
4346
|
-
readonly name: "
|
|
4749
|
+
readonly internalType: "struct ITypes.SettlementPresign[]";
|
|
4750
|
+
readonly name: "settlementPresigns";
|
|
4347
4751
|
readonly type: "tuple[]";
|
|
4752
|
+
}, {
|
|
4753
|
+
readonly components: readonly [{
|
|
4754
|
+
readonly internalType: "bytes";
|
|
4755
|
+
readonly name: "refundAddress";
|
|
4756
|
+
readonly type: "bytes";
|
|
4757
|
+
}, {
|
|
4758
|
+
readonly internalType: "bytes[]";
|
|
4759
|
+
readonly name: "presigns";
|
|
4760
|
+
readonly type: "bytes[]";
|
|
4761
|
+
}];
|
|
4762
|
+
readonly internalType: "struct ITypes.RefundPresign";
|
|
4763
|
+
readonly name: "refundPresign";
|
|
4764
|
+
readonly type: "tuple";
|
|
4348
4765
|
}];
|
|
4349
4766
|
readonly name: "submitTrade";
|
|
4350
4767
|
readonly outputs: readonly [];
|
|
@@ -4445,6 +4862,28 @@ declare class Signer__factory {
|
|
|
4445
4862
|
}];
|
|
4446
4863
|
readonly stateMutability: "view";
|
|
4447
4864
|
readonly type: "function";
|
|
4865
|
+
}, {
|
|
4866
|
+
readonly inputs: readonly [{
|
|
4867
|
+
readonly internalType: "bytes32";
|
|
4868
|
+
readonly name: "tradeId";
|
|
4869
|
+
readonly type: "bytes32";
|
|
4870
|
+
}, {
|
|
4871
|
+
readonly internalType: "bytes32";
|
|
4872
|
+
readonly name: "infoHash";
|
|
4873
|
+
readonly type: "bytes32";
|
|
4874
|
+
}, {
|
|
4875
|
+
readonly internalType: "bytes";
|
|
4876
|
+
readonly name: "signature";
|
|
4877
|
+
readonly type: "bytes";
|
|
4878
|
+
}];
|
|
4879
|
+
readonly name: "getConfirmRefundSigner";
|
|
4880
|
+
readonly outputs: readonly [{
|
|
4881
|
+
readonly internalType: "address";
|
|
4882
|
+
readonly name: "signer";
|
|
4883
|
+
readonly type: "address";
|
|
4884
|
+
}];
|
|
4885
|
+
readonly stateMutability: "view";
|
|
4886
|
+
readonly type: "function";
|
|
4448
4887
|
}, {
|
|
4449
4888
|
readonly inputs: readonly [{
|
|
4450
4889
|
readonly internalType: "bytes32";
|
|
@@ -4551,6 +4990,28 @@ declare class Signer__factory {
|
|
|
4551
4990
|
}];
|
|
4552
4991
|
readonly stateMutability: "view";
|
|
4553
4992
|
readonly type: "function";
|
|
4993
|
+
}, {
|
|
4994
|
+
readonly inputs: readonly [{
|
|
4995
|
+
readonly internalType: "bytes32";
|
|
4996
|
+
readonly name: "tradeId";
|
|
4997
|
+
readonly type: "bytes32";
|
|
4998
|
+
}, {
|
|
4999
|
+
readonly internalType: "bytes32";
|
|
5000
|
+
readonly name: "infoHash";
|
|
5001
|
+
readonly type: "bytes32";
|
|
5002
|
+
}, {
|
|
5003
|
+
readonly internalType: "bytes";
|
|
5004
|
+
readonly name: "signature";
|
|
5005
|
+
readonly type: "bytes";
|
|
5006
|
+
}];
|
|
5007
|
+
readonly name: "getReportFailureSigner";
|
|
5008
|
+
readonly outputs: readonly [{
|
|
5009
|
+
readonly internalType: "address";
|
|
5010
|
+
readonly name: "signer";
|
|
5011
|
+
readonly type: "address";
|
|
5012
|
+
}];
|
|
5013
|
+
readonly stateMutability: "view";
|
|
5014
|
+
readonly type: "function";
|
|
4554
5015
|
}, {
|
|
4555
5016
|
readonly inputs: readonly [{
|
|
4556
5017
|
readonly internalType: "bytes32";
|
|
@@ -4606,10 +5067,11 @@ declare class RouterService implements ConfigObserver {
|
|
|
4606
5067
|
getHandler(fromChain: BytesLike, toChain: BytesLike): Promise<[string, string]>;
|
|
4607
5068
|
getPFeeRate(): Promise<bigint>;
|
|
4608
5069
|
getPMMSelection(tradeId: BytesLike): Promise<ITypes.PMMSelectionStructOutput>;
|
|
4609
|
-
getSettlementPresigns(tradeId: BytesLike): Promise<ITypes.
|
|
5070
|
+
getSettlementPresigns(tradeId: BytesLike): Promise<ITypes.SettlementPresignStructOutput[]>;
|
|
5071
|
+
getRefundPresigns(tradeId: BytesLike): Promise<ITypes.RefundPresignStructOutput>;
|
|
4610
5072
|
getProtocolState(): Promise<bigint>;
|
|
4611
5073
|
getFeeDetails(tradeId: BytesLike): Promise<ITypes.FeeDetailsStructOutput>;
|
|
4612
|
-
|
|
5074
|
+
getTradeFinalization(tradeId: BytesLike): Promise<ITypes.TradeFinalizationStructOutput>;
|
|
4613
5075
|
getTokens(fromIdx: bigint, toIdx: bigint): Promise<ITypes.TokenInfoStructOutput[]>;
|
|
4614
5076
|
getTradeData(tradeId: BytesLike): Promise<ITypes.TradeDataStructOutput>;
|
|
4615
5077
|
isMPCNode(account: string): Promise<boolean>;
|