@optimex-xyz/market-maker-sdk 0.5.0-dev-23ba754 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1214,37 +1214,51 @@ declare namespace ITypes {
1214
1214
  rfqInfo: ITypes.RFQInfoStructOutput;
1215
1215
  pmmInfo: ITypes.SelectedPMMInfoStructOutput;
1216
1216
  };
1217
- type PresignStruct = {
1218
- pmmId: BytesLike;
1219
- pmmRecvAddress: BytesLike;
1217
+ type RefundPresignStruct = {
1218
+ refundAddress: BytesLike;
1220
1219
  presigns: BytesLike[];
1221
1220
  };
1222
- type PresignStructOutput = [
1223
- pmmId: string,
1224
- pmmRecvAddress: string,
1221
+ type RefundPresignStructOutput = [
1222
+ refundAddress: string,
1225
1223
  presigns: string[]
1226
1224
  ] & {
1227
- pmmId: string;
1228
- pmmRecvAddress: string;
1225
+ refundAddress: string;
1229
1226
  presigns: string[];
1230
1227
  };
1231
1228
  type SettledPaymentStruct = {
1232
1229
  bundlerHash: BytesLike;
1230
+ index: BigNumberish;
1233
1231
  paymentTxId: BytesLike;
1234
1232
  releaseTxId: BytesLike;
1235
1233
  isConfirmed: boolean;
1236
1234
  };
1237
1235
  type SettledPaymentStructOutput = [
1238
1236
  bundlerHash: string,
1237
+ index: bigint,
1239
1238
  paymentTxId: string,
1240
1239
  releaseTxId: string,
1241
1240
  isConfirmed: boolean
1242
1241
  ] & {
1243
1242
  bundlerHash: string;
1243
+ index: bigint;
1244
1244
  paymentTxId: string;
1245
1245
  releaseTxId: string;
1246
1246
  isConfirmed: boolean;
1247
1247
  };
1248
+ type SettlementPresignStruct = {
1249
+ pmmId: BytesLike;
1250
+ pmmRecvAddress: BytesLike;
1251
+ presigns: BytesLike[];
1252
+ };
1253
+ type SettlementPresignStructOutput = [
1254
+ pmmId: string,
1255
+ pmmRecvAddress: string,
1256
+ presigns: string[]
1257
+ ] & {
1258
+ pmmId: string;
1259
+ pmmRecvAddress: string;
1260
+ presigns: string[];
1261
+ };
1248
1262
  type TokenInfoStruct = {
1249
1263
  info: [BytesLike, BytesLike, BytesLike, BytesLike, BytesLike];
1250
1264
  decimals: BigNumberish;
@@ -1300,7 +1314,7 @@ declare namespace ITypes {
1300
1314
  };
1301
1315
  }
1302
1316
  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" | "getPresigns" | "getProtocolState" | "getSettledPayment" | "getTokens" | "getTradeData" | "isMPCNode" | "isSolver" | "isSuspended" | "isValidNetwork" | "isValidPMM" | "isValidPMMAccount" | "isValidPubkey" | "isValidToken" | "management" | "numOfPMMAccounts" | "numOfSupportedTokens" | "selectPMM" | "setManagement" | "setRoute" | "submitTrade" | "version"): FunctionFragment;
1317
+ getFunction(nameOrSignature: "SIGNER" | "bundlePayment" | "confirmDeposit" | "confirmPayment" | "confirmSettlement" | "getAffiliateInfo" | "getCurrentEpoch" | "getCurrentStage" | "getDepositAddressList" | "getFeeDetails" | "getHandler" | "getHandlerOf" | "getLastSignedPayment" | "getLatestMPCInfo" | "getMPCInfo" | "getManagementOwner" | "getMaxAffiliateFeeRate" | "getPFeeRate" | "getPMMAccounts" | "getPMMSelection" | "getPendingTrades" | "getPendingTradesCount" | "getProtocolState" | "getRefundPresigns" | "getSettledPayment" | "getSettlementPresigns" | "getTokens" | "getTradeData" | "isMPCNode" | "isSolver" | "isSuspended" | "isValidNetwork" | "isValidPMM" | "isValidPMMAccount" | "isValidPubkey" | "isValidToken" | "management" | "numOfPMMAccounts" | "numOfSupportedTokens" | "selectPMM" | "setManagement" | "setRoute" | "submitTrade" | "version"): FunctionFragment;
1304
1318
  getEvent(nameOrSignatureOrTopic: "ConfirmDeposit" | "ConfirmPayment" | "ConfirmSettlement" | "MakePayment" | "SelectPMM" | "SubmitTradeInfo" | "UpdatedRoute"): EventFragment;
1305
1319
  encodeFunctionData(functionFragment: "SIGNER", values?: undefined): string;
1306
1320
  encodeFunctionData(functionFragment: "bundlePayment", values: [ITypes.BundlePaymentStruct]): string;
@@ -1308,6 +1322,7 @@ interface RouterInterface extends Interface {
1308
1322
  encodeFunctionData(functionFragment: "confirmPayment", values: [BytesLike, BytesLike]): string;
1309
1323
  encodeFunctionData(functionFragment: "confirmSettlement", values: [BytesLike, BytesLike, BytesLike]): string;
1310
1324
  encodeFunctionData(functionFragment: "getAffiliateInfo", values: [BytesLike]): string;
1325
+ encodeFunctionData(functionFragment: "getCurrentEpoch", values: [BytesLike, BytesLike]): string;
1311
1326
  encodeFunctionData(functionFragment: "getCurrentStage", values: [BytesLike]): string;
1312
1327
  encodeFunctionData(functionFragment: "getDepositAddressList", values: [BytesLike]): string;
1313
1328
  encodeFunctionData(functionFragment: "getFeeDetails", values: [BytesLike]): string;
@@ -1321,9 +1336,12 @@ interface RouterInterface extends Interface {
1321
1336
  encodeFunctionData(functionFragment: "getPFeeRate", values?: undefined): string;
1322
1337
  encodeFunctionData(functionFragment: "getPMMAccounts", values: [BytesLike, BigNumberish, BigNumberish]): string;
1323
1338
  encodeFunctionData(functionFragment: "getPMMSelection", values: [BytesLike]): string;
1324
- encodeFunctionData(functionFragment: "getPresigns", values: [BytesLike]): string;
1339
+ encodeFunctionData(functionFragment: "getPendingTrades", values: [BigNumberish, BigNumberish, BigNumberish, BytesLike, BytesLike]): string;
1340
+ encodeFunctionData(functionFragment: "getPendingTradesCount", values: [BigNumberish, BytesLike, BytesLike]): string;
1325
1341
  encodeFunctionData(functionFragment: "getProtocolState", values?: undefined): string;
1342
+ encodeFunctionData(functionFragment: "getRefundPresigns", values: [BytesLike]): string;
1326
1343
  encodeFunctionData(functionFragment: "getSettledPayment", values: [BytesLike]): string;
1344
+ encodeFunctionData(functionFragment: "getSettlementPresigns", values: [BytesLike]): string;
1327
1345
  encodeFunctionData(functionFragment: "getTokens", values: [BigNumberish, BigNumberish]): string;
1328
1346
  encodeFunctionData(functionFragment: "getTradeData", values: [BytesLike]): string;
1329
1347
  encodeFunctionData(functionFragment: "isMPCNode", values: [AddressLike]): string;
@@ -1344,7 +1362,8 @@ interface RouterInterface extends Interface {
1344
1362
  BytesLike,
1345
1363
  ITypes.TradeDataStruct,
1346
1364
  ITypes.AffiliateStruct,
1347
- ITypes.PresignStruct[]
1365
+ ITypes.SettlementPresignStruct[],
1366
+ ITypes.RefundPresignStruct
1348
1367
  ]): string;
1349
1368
  encodeFunctionData(functionFragment: "version", values: [AddressLike]): string;
1350
1369
  decodeFunctionResult(functionFragment: "SIGNER", data: BytesLike): Result;
@@ -1353,6 +1372,7 @@ interface RouterInterface extends Interface {
1353
1372
  decodeFunctionResult(functionFragment: "confirmPayment", data: BytesLike): Result;
1354
1373
  decodeFunctionResult(functionFragment: "confirmSettlement", data: BytesLike): Result;
1355
1374
  decodeFunctionResult(functionFragment: "getAffiliateInfo", data: BytesLike): Result;
1375
+ decodeFunctionResult(functionFragment: "getCurrentEpoch", data: BytesLike): Result;
1356
1376
  decodeFunctionResult(functionFragment: "getCurrentStage", data: BytesLike): Result;
1357
1377
  decodeFunctionResult(functionFragment: "getDepositAddressList", data: BytesLike): Result;
1358
1378
  decodeFunctionResult(functionFragment: "getFeeDetails", data: BytesLike): Result;
@@ -1366,9 +1386,12 @@ interface RouterInterface extends Interface {
1366
1386
  decodeFunctionResult(functionFragment: "getPFeeRate", data: BytesLike): Result;
1367
1387
  decodeFunctionResult(functionFragment: "getPMMAccounts", data: BytesLike): Result;
1368
1388
  decodeFunctionResult(functionFragment: "getPMMSelection", data: BytesLike): Result;
1369
- decodeFunctionResult(functionFragment: "getPresigns", data: BytesLike): Result;
1389
+ decodeFunctionResult(functionFragment: "getPendingTrades", data: BytesLike): Result;
1390
+ decodeFunctionResult(functionFragment: "getPendingTradesCount", data: BytesLike): Result;
1370
1391
  decodeFunctionResult(functionFragment: "getProtocolState", data: BytesLike): Result;
1392
+ decodeFunctionResult(functionFragment: "getRefundPresigns", data: BytesLike): Result;
1371
1393
  decodeFunctionResult(functionFragment: "getSettledPayment", data: BytesLike): Result;
1394
+ decodeFunctionResult(functionFragment: "getSettlementPresigns", data: BytesLike): Result;
1372
1395
  decodeFunctionResult(functionFragment: "getTokens", data: BytesLike): Result;
1373
1396
  decodeFunctionResult(functionFragment: "getTradeData", data: BytesLike): Result;
1374
1397
  decodeFunctionResult(functionFragment: "isMPCNode", data: BytesLike): Result;
@@ -1477,19 +1500,19 @@ declare namespace SubmitTradeInfoEvent {
1477
1500
  }
1478
1501
  declare namespace UpdatedRouteEvent {
1479
1502
  type InputTuple = [
1480
- core: AddressLike,
1503
+ handler: AddressLike,
1481
1504
  version: BigNumberish,
1482
1505
  fromChain: BytesLike,
1483
1506
  toChain: BytesLike
1484
1507
  ];
1485
1508
  type OutputTuple = [
1486
- core: string,
1509
+ handler: string,
1487
1510
  version: bigint,
1488
1511
  fromChain: string,
1489
1512
  toChain: string
1490
1513
  ];
1491
1514
  interface OutputObject {
1492
- core: string;
1515
+ handler: string;
1493
1516
  version: bigint;
1494
1517
  fromChain: string;
1495
1518
  toChain: string;
@@ -1543,6 +1566,12 @@ interface Router extends BaseContract {
1543
1566
  ], [
1544
1567
  ITypes.AffiliateStructOutput
1545
1568
  ], "view">;
1569
+ getCurrentEpoch: TypedContractMethod<[
1570
+ fromChain: BytesLike,
1571
+ toChain: BytesLike
1572
+ ], [
1573
+ [bigint, bigint, bigint]
1574
+ ], "view">;
1546
1575
  getCurrentStage: TypedContractMethod<[tradeId: BytesLike], [bigint], "view">;
1547
1576
  getDepositAddressList: TypedContractMethod<[
1548
1577
  tradeId: BytesLike
@@ -1607,17 +1636,38 @@ interface Router extends BaseContract {
1607
1636
  ], [
1608
1637
  ITypes.PMMSelectionStructOutput
1609
1638
  ], "view">;
1610
- getPresigns: TypedContractMethod<[
1611
- tradeId: BytesLike
1639
+ getPendingTrades: TypedContractMethod<[
1640
+ epochNo: BigNumberish,
1641
+ fromIdx: BigNumberish,
1642
+ toIdx: BigNumberish,
1643
+ fromChain: BytesLike,
1644
+ toChain: BytesLike
1645
+ ], [
1646
+ string[]
1647
+ ], "view">;
1648
+ getPendingTradesCount: TypedContractMethod<[
1649
+ epochNo: BigNumberish,
1650
+ fromChain: BytesLike,
1651
+ toChain: BytesLike
1612
1652
  ], [
1613
- ITypes.PresignStructOutput[]
1653
+ bigint
1614
1654
  ], "view">;
1615
1655
  getProtocolState: TypedContractMethod<[], [bigint], "view">;
1656
+ getRefundPresigns: TypedContractMethod<[
1657
+ tradeId: BytesLike
1658
+ ], [
1659
+ ITypes.RefundPresignStructOutput
1660
+ ], "view">;
1616
1661
  getSettledPayment: TypedContractMethod<[
1617
1662
  tradeId: BytesLike
1618
1663
  ], [
1619
1664
  ITypes.SettledPaymentStructOutput
1620
1665
  ], "view">;
1666
+ getSettlementPresigns: TypedContractMethod<[
1667
+ tradeId: BytesLike
1668
+ ], [
1669
+ ITypes.SettlementPresignStructOutput[]
1670
+ ], "view">;
1621
1671
  getTokens: TypedContractMethod<[
1622
1672
  fromIdx: BigNumberish,
1623
1673
  toIdx: BigNumberish
@@ -1671,7 +1721,7 @@ interface Router extends BaseContract {
1671
1721
  void
1672
1722
  ], "nonpayable">;
1673
1723
  setRoute: TypedContractMethod<[
1674
- core: AddressLike,
1724
+ handler: AddressLike,
1675
1725
  fromChain: BytesLike,
1676
1726
  toChain: BytesLike
1677
1727
  ], [
@@ -1681,7 +1731,8 @@ interface Router extends BaseContract {
1681
1731
  tradeId: BytesLike,
1682
1732
  tradeData: ITypes.TradeDataStruct,
1683
1733
  affiliateInfo: ITypes.AffiliateStruct,
1684
- presignList: ITypes.PresignStruct[]
1734
+ settlementPresigns: ITypes.SettlementPresignStruct[],
1735
+ refundPresign: ITypes.RefundPresignStruct
1685
1736
  ], [
1686
1737
  void
1687
1738
  ], "nonpayable">;
@@ -1718,6 +1769,12 @@ interface Router extends BaseContract {
1718
1769
  ], [
1719
1770
  ITypes.AffiliateStructOutput
1720
1771
  ], "view">;
1772
+ getFunction(nameOrSignature: "getCurrentEpoch"): TypedContractMethod<[
1773
+ fromChain: BytesLike,
1774
+ toChain: BytesLike
1775
+ ], [
1776
+ [bigint, bigint, bigint]
1777
+ ], "view">;
1721
1778
  getFunction(nameOrSignature: "getCurrentStage"): TypedContractMethod<[tradeId: BytesLike], [bigint], "view">;
1722
1779
  getFunction(nameOrSignature: "getDepositAddressList"): TypedContractMethod<[tradeId: BytesLike], [string[]], "view">;
1723
1780
  getFunction(nameOrSignature: "getFeeDetails"): TypedContractMethod<[
@@ -1774,17 +1831,38 @@ interface Router extends BaseContract {
1774
1831
  ], [
1775
1832
  ITypes.PMMSelectionStructOutput
1776
1833
  ], "view">;
1777
- getFunction(nameOrSignature: "getPresigns"): TypedContractMethod<[
1778
- tradeId: BytesLike
1834
+ getFunction(nameOrSignature: "getPendingTrades"): TypedContractMethod<[
1835
+ epochNo: BigNumberish,
1836
+ fromIdx: BigNumberish,
1837
+ toIdx: BigNumberish,
1838
+ fromChain: BytesLike,
1839
+ toChain: BytesLike
1840
+ ], [
1841
+ string[]
1842
+ ], "view">;
1843
+ getFunction(nameOrSignature: "getPendingTradesCount"): TypedContractMethod<[
1844
+ epochNo: BigNumberish,
1845
+ fromChain: BytesLike,
1846
+ toChain: BytesLike
1779
1847
  ], [
1780
- ITypes.PresignStructOutput[]
1848
+ bigint
1781
1849
  ], "view">;
1782
1850
  getFunction(nameOrSignature: "getProtocolState"): TypedContractMethod<[], [bigint], "view">;
1851
+ getFunction(nameOrSignature: "getRefundPresigns"): TypedContractMethod<[
1852
+ tradeId: BytesLike
1853
+ ], [
1854
+ ITypes.RefundPresignStructOutput
1855
+ ], "view">;
1783
1856
  getFunction(nameOrSignature: "getSettledPayment"): TypedContractMethod<[
1784
1857
  tradeId: BytesLike
1785
1858
  ], [
1786
1859
  ITypes.SettledPaymentStructOutput
1787
1860
  ], "view">;
1861
+ getFunction(nameOrSignature: "getSettlementPresigns"): TypedContractMethod<[
1862
+ tradeId: BytesLike
1863
+ ], [
1864
+ ITypes.SettlementPresignStructOutput[]
1865
+ ], "view">;
1788
1866
  getFunction(nameOrSignature: "getTokens"): TypedContractMethod<[
1789
1867
  fromIdx: BigNumberish,
1790
1868
  toIdx: BigNumberish
@@ -1830,7 +1908,7 @@ interface Router extends BaseContract {
1830
1908
  ], "nonpayable">;
1831
1909
  getFunction(nameOrSignature: "setManagement"): TypedContractMethod<[newManagement: AddressLike], [void], "nonpayable">;
1832
1910
  getFunction(nameOrSignature: "setRoute"): TypedContractMethod<[
1833
- core: AddressLike,
1911
+ handler: AddressLike,
1834
1912
  fromChain: BytesLike,
1835
1913
  toChain: BytesLike
1836
1914
  ], [
@@ -1840,7 +1918,8 @@ interface Router extends BaseContract {
1840
1918
  tradeId: BytesLike,
1841
1919
  tradeData: ITypes.TradeDataStruct,
1842
1920
  affiliateInfo: ITypes.AffiliateStruct,
1843
- presignList: ITypes.PresignStruct[]
1921
+ settlementPresigns: ITypes.SettlementPresignStruct[],
1922
+ refundPresign: ITypes.RefundPresignStruct
1844
1923
  ], [
1845
1924
  void
1846
1925
  ], "nonpayable">;
@@ -3442,7 +3521,7 @@ declare class Router__factory {
3442
3521
  readonly inputs: readonly [{
3443
3522
  readonly indexed: true;
3444
3523
  readonly internalType: "address";
3445
- readonly name: "core";
3524
+ readonly name: "handler";
3446
3525
  readonly type: "address";
3447
3526
  }, {
3448
3527
  readonly indexed: true;
@@ -3580,6 +3659,32 @@ declare class Router__factory {
3580
3659
  }];
3581
3660
  readonly stateMutability: "view";
3582
3661
  readonly type: "function";
3662
+ }, {
3663
+ readonly inputs: readonly [{
3664
+ readonly internalType: "bytes";
3665
+ readonly name: "fromChain";
3666
+ readonly type: "bytes";
3667
+ }, {
3668
+ readonly internalType: "bytes";
3669
+ readonly name: "toChain";
3670
+ readonly type: "bytes";
3671
+ }];
3672
+ readonly name: "getCurrentEpoch";
3673
+ readonly outputs: readonly [{
3674
+ readonly internalType: "uint64";
3675
+ readonly name: "";
3676
+ readonly type: "uint64";
3677
+ }, {
3678
+ readonly internalType: "uint64";
3679
+ readonly name: "";
3680
+ readonly type: "uint64";
3681
+ }, {
3682
+ readonly internalType: "uint64";
3683
+ readonly name: "";
3684
+ readonly type: "uint64";
3685
+ }];
3686
+ readonly stateMutability: "view";
3687
+ readonly type: "function";
3583
3688
  }, {
3584
3689
  readonly inputs: readonly [{
3585
3690
  readonly internalType: "bytes32";
@@ -3876,40 +3981,88 @@ declare class Router__factory {
3876
3981
  }];
3877
3982
  readonly stateMutability: "view";
3878
3983
  readonly type: "function";
3984
+ }, {
3985
+ readonly inputs: readonly [{
3986
+ readonly internalType: "uint256";
3987
+ readonly name: "epochNo";
3988
+ readonly type: "uint256";
3989
+ }, {
3990
+ readonly internalType: "uint256";
3991
+ readonly name: "fromIdx";
3992
+ readonly type: "uint256";
3993
+ }, {
3994
+ readonly internalType: "uint256";
3995
+ readonly name: "toIdx";
3996
+ readonly type: "uint256";
3997
+ }, {
3998
+ readonly internalType: "bytes";
3999
+ readonly name: "fromChain";
4000
+ readonly type: "bytes";
4001
+ }, {
4002
+ readonly internalType: "bytes";
4003
+ readonly name: "toChain";
4004
+ readonly type: "bytes";
4005
+ }];
4006
+ readonly name: "getPendingTrades";
4007
+ readonly outputs: readonly [{
4008
+ readonly internalType: "bytes32[]";
4009
+ readonly name: "";
4010
+ readonly type: "bytes32[]";
4011
+ }];
4012
+ readonly stateMutability: "view";
4013
+ readonly type: "function";
4014
+ }, {
4015
+ readonly inputs: readonly [{
4016
+ readonly internalType: "uint256";
4017
+ readonly name: "epochNo";
4018
+ readonly type: "uint256";
4019
+ }, {
4020
+ readonly internalType: "bytes";
4021
+ readonly name: "fromChain";
4022
+ readonly type: "bytes";
4023
+ }, {
4024
+ readonly internalType: "bytes";
4025
+ readonly name: "toChain";
4026
+ readonly type: "bytes";
4027
+ }];
4028
+ readonly name: "getPendingTradesCount";
4029
+ readonly outputs: readonly [{
4030
+ readonly internalType: "uint256";
4031
+ readonly name: "";
4032
+ readonly type: "uint256";
4033
+ }];
4034
+ readonly stateMutability: "view";
4035
+ readonly type: "function";
4036
+ }, {
4037
+ readonly inputs: readonly [];
4038
+ readonly name: "getProtocolState";
4039
+ readonly outputs: readonly [{
4040
+ readonly internalType: "uint256";
4041
+ readonly name: "";
4042
+ readonly type: "uint256";
4043
+ }];
4044
+ readonly stateMutability: "view";
4045
+ readonly type: "function";
3879
4046
  }, {
3880
4047
  readonly inputs: readonly [{
3881
4048
  readonly internalType: "bytes32";
3882
4049
  readonly name: "tradeId";
3883
4050
  readonly type: "bytes32";
3884
4051
  }];
3885
- readonly name: "getPresigns";
4052
+ readonly name: "getRefundPresigns";
3886
4053
  readonly outputs: readonly [{
3887
4054
  readonly components: readonly [{
3888
- readonly internalType: "bytes32";
3889
- readonly name: "pmmId";
3890
- readonly type: "bytes32";
3891
- }, {
3892
4055
  readonly internalType: "bytes";
3893
- readonly name: "pmmRecvAddress";
4056
+ readonly name: "refundAddress";
3894
4057
  readonly type: "bytes";
3895
4058
  }, {
3896
4059
  readonly internalType: "bytes[]";
3897
4060
  readonly name: "presigns";
3898
4061
  readonly type: "bytes[]";
3899
4062
  }];
3900
- readonly internalType: "struct ITypes.Presign[]";
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";
4063
+ readonly internalType: "struct ITypes.RefundPresign";
3911
4064
  readonly name: "";
3912
- readonly type: "uint256";
4065
+ readonly type: "tuple";
3913
4066
  }];
3914
4067
  readonly stateMutability: "view";
3915
4068
  readonly type: "function";
@@ -3925,6 +4078,10 @@ declare class Router__factory {
3925
4078
  readonly internalType: "bytes32";
3926
4079
  readonly name: "bundlerHash";
3927
4080
  readonly type: "bytes32";
4081
+ }, {
4082
+ readonly internalType: "uint256";
4083
+ readonly name: "index";
4084
+ readonly type: "uint256";
3928
4085
  }, {
3929
4086
  readonly internalType: "bytes";
3930
4087
  readonly name: "paymentTxId";
@@ -3944,6 +4101,33 @@ declare class Router__factory {
3944
4101
  }];
3945
4102
  readonly stateMutability: "view";
3946
4103
  readonly type: "function";
4104
+ }, {
4105
+ readonly inputs: readonly [{
4106
+ readonly internalType: "bytes32";
4107
+ readonly name: "tradeId";
4108
+ readonly type: "bytes32";
4109
+ }];
4110
+ readonly name: "getSettlementPresigns";
4111
+ readonly outputs: readonly [{
4112
+ readonly components: readonly [{
4113
+ readonly internalType: "bytes32";
4114
+ readonly name: "pmmId";
4115
+ readonly type: "bytes32";
4116
+ }, {
4117
+ readonly internalType: "bytes";
4118
+ readonly name: "pmmRecvAddress";
4119
+ readonly type: "bytes";
4120
+ }, {
4121
+ readonly internalType: "bytes[]";
4122
+ readonly name: "presigns";
4123
+ readonly type: "bytes[]";
4124
+ }];
4125
+ readonly internalType: "struct ITypes.SettlementPresign[]";
4126
+ readonly name: "";
4127
+ readonly type: "tuple[]";
4128
+ }];
4129
+ readonly stateMutability: "view";
4130
+ readonly type: "function";
3947
4131
  }, {
3948
4132
  readonly inputs: readonly [{
3949
4133
  readonly internalType: "uint256";
@@ -4248,7 +4432,7 @@ declare class Router__factory {
4248
4432
  }, {
4249
4433
  readonly inputs: readonly [{
4250
4434
  readonly internalType: "address";
4251
- readonly name: "core";
4435
+ readonly name: "handler";
4252
4436
  readonly type: "address";
4253
4437
  }, {
4254
4438
  readonly internalType: "bytes";
@@ -4342,9 +4526,22 @@ declare class Router__factory {
4342
4526
  readonly name: "presigns";
4343
4527
  readonly type: "bytes[]";
4344
4528
  }];
4345
- readonly internalType: "struct ITypes.Presign[]";
4346
- readonly name: "presignList";
4529
+ readonly internalType: "struct ITypes.SettlementPresign[]";
4530
+ readonly name: "settlementPresigns";
4347
4531
  readonly type: "tuple[]";
4532
+ }, {
4533
+ readonly components: readonly [{
4534
+ readonly internalType: "bytes";
4535
+ readonly name: "refundAddress";
4536
+ readonly type: "bytes";
4537
+ }, {
4538
+ readonly internalType: "bytes[]";
4539
+ readonly name: "presigns";
4540
+ readonly type: "bytes[]";
4541
+ }];
4542
+ readonly internalType: "struct ITypes.RefundPresign";
4543
+ readonly name: "refundPresign";
4544
+ readonly type: "tuple";
4348
4545
  }];
4349
4546
  readonly name: "submitTrade";
4350
4547
  readonly outputs: readonly [];
@@ -4606,7 +4803,8 @@ declare class RouterService implements ConfigObserver {
4606
4803
  getHandler(fromChain: BytesLike, toChain: BytesLike): Promise<[string, string]>;
4607
4804
  getPFeeRate(): Promise<bigint>;
4608
4805
  getPMMSelection(tradeId: BytesLike): Promise<ITypes.PMMSelectionStructOutput>;
4609
- getPresigns(tradeId: BytesLike): Promise<ITypes.PresignStructOutput[]>;
4806
+ getSettlementPresigns(tradeId: BytesLike): Promise<ITypes.SettlementPresignStructOutput[]>;
4807
+ getRefundPresigns(tradeId: BytesLike): Promise<ITypes.RefundPresignStructOutput>;
4610
4808
  getProtocolState(): Promise<bigint>;
4611
4809
  getFeeDetails(tradeId: BytesLike): Promise<ITypes.FeeDetailsStructOutput>;
4612
4810
  getSettledPayment(tradeId: BytesLike): Promise<ITypes.SettledPaymentStructOutput>;