@optimex-xyz/market-maker-sdk 0.5.3 → 0.5.5

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 CHANGED
@@ -104,15 +104,15 @@ sequenceDiagram
104
104
 
105
105
  ### 2.1. API Environments
106
106
 
107
- | Environment | Description | Base URL |
108
- | ---------------- | -------------------------------------------------------------------- | ------------------------------------ |
109
- | `dev` | Development environment with test networks and staging services | `https://api-dev.bitfi.com` |
110
- | `pre-production` | Pre-production environment with mainnet networks for testing before release | `https://api-preprod.bitfi.com` |
111
- | `production` | Production environment with mainnet networks and production services | `https://api.bitfi.com` |
107
+ | Environment | Description |
108
+ | ---------------- | -------------------------------------------------------------------- |
109
+ | `dev` | Development environment with test networks and staging services |
110
+ | `pre-production` | Pre-production environment with mainnet networks for testing before release |
111
+ | `production` | Production environment with mainnet networks and production services |
112
112
 
113
113
  - Solver URLs: Each environment has dedicated API endpoints
114
114
 
115
- - RPC Endpoints: L2 RPC endpoints remain the same across all environments
115
+ - RPC Endpoints: L2 RPC endpoints
116
116
 
117
117
  - Router Addresses: Smart contract addresses for routing transactions
118
118
 
package/dist/index.d.mts CHANGED
@@ -1214,51 +1214,37 @@ declare namespace ITypes {
1214
1214
  rfqInfo: ITypes.RFQInfoStructOutput;
1215
1215
  pmmInfo: ITypes.SelectedPMMInfoStructOutput;
1216
1216
  };
1217
- type RefundPresignStruct = {
1218
- refundAddress: BytesLike;
1217
+ type PresignStruct = {
1218
+ pmmId: BytesLike;
1219
+ pmmRecvAddress: BytesLike;
1219
1220
  presigns: BytesLike[];
1220
1221
  };
1221
- type RefundPresignStructOutput = [
1222
- refundAddress: string,
1222
+ type PresignStructOutput = [
1223
+ pmmId: string,
1224
+ pmmRecvAddress: string,
1223
1225
  presigns: string[]
1224
1226
  ] & {
1225
- refundAddress: string;
1227
+ pmmId: string;
1228
+ pmmRecvAddress: string;
1226
1229
  presigns: string[];
1227
1230
  };
1228
1231
  type SettledPaymentStruct = {
1229
1232
  bundlerHash: BytesLike;
1230
- index: BigNumberish;
1231
1233
  paymentTxId: BytesLike;
1232
1234
  releaseTxId: BytesLike;
1233
1235
  isConfirmed: boolean;
1234
1236
  };
1235
1237
  type SettledPaymentStructOutput = [
1236
1238
  bundlerHash: string,
1237
- index: bigint,
1238
1239
  paymentTxId: string,
1239
1240
  releaseTxId: string,
1240
1241
  isConfirmed: boolean
1241
1242
  ] & {
1242
1243
  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
- };
1262
1248
  type TokenInfoStruct = {
1263
1249
  info: [BytesLike, BytesLike, BytesLike, BytesLike, BytesLike];
1264
1250
  decimals: BigNumberish;
@@ -1314,7 +1300,7 @@ declare namespace ITypes {
1314
1300
  };
1315
1301
  }
1316
1302
  interface RouterInterface extends Interface {
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;
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;
1318
1304
  getEvent(nameOrSignatureOrTopic: "ConfirmDeposit" | "ConfirmPayment" | "ConfirmSettlement" | "MakePayment" | "SelectPMM" | "SubmitTradeInfo" | "UpdatedRoute"): EventFragment;
1319
1305
  encodeFunctionData(functionFragment: "SIGNER", values?: undefined): string;
1320
1306
  encodeFunctionData(functionFragment: "bundlePayment", values: [ITypes.BundlePaymentStruct]): string;
@@ -1322,7 +1308,6 @@ interface RouterInterface extends Interface {
1322
1308
  encodeFunctionData(functionFragment: "confirmPayment", values: [BytesLike, BytesLike]): string;
1323
1309
  encodeFunctionData(functionFragment: "confirmSettlement", values: [BytesLike, BytesLike, BytesLike]): string;
1324
1310
  encodeFunctionData(functionFragment: "getAffiliateInfo", values: [BytesLike]): string;
1325
- encodeFunctionData(functionFragment: "getCurrentEpoch", values: [BytesLike, BytesLike]): string;
1326
1311
  encodeFunctionData(functionFragment: "getCurrentStage", values: [BytesLike]): string;
1327
1312
  encodeFunctionData(functionFragment: "getDepositAddressList", values: [BytesLike]): string;
1328
1313
  encodeFunctionData(functionFragment: "getFeeDetails", values: [BytesLike]): string;
@@ -1336,12 +1321,9 @@ interface RouterInterface extends Interface {
1336
1321
  encodeFunctionData(functionFragment: "getPFeeRate", values?: undefined): string;
1337
1322
  encodeFunctionData(functionFragment: "getPMMAccounts", values: [BytesLike, BigNumberish, BigNumberish]): string;
1338
1323
  encodeFunctionData(functionFragment: "getPMMSelection", values: [BytesLike]): string;
1339
- encodeFunctionData(functionFragment: "getPendingTrades", values: [BigNumberish, BigNumberish, BigNumberish, BytesLike, BytesLike]): string;
1340
- encodeFunctionData(functionFragment: "getPendingTradesCount", values: [BigNumberish, BytesLike, BytesLike]): string;
1324
+ encodeFunctionData(functionFragment: "getPresigns", values: [BytesLike]): string;
1341
1325
  encodeFunctionData(functionFragment: "getProtocolState", values?: undefined): string;
1342
- encodeFunctionData(functionFragment: "getRefundPresigns", values: [BytesLike]): string;
1343
1326
  encodeFunctionData(functionFragment: "getSettledPayment", values: [BytesLike]): string;
1344
- encodeFunctionData(functionFragment: "getSettlementPresigns", values: [BytesLike]): string;
1345
1327
  encodeFunctionData(functionFragment: "getTokens", values: [BigNumberish, BigNumberish]): string;
1346
1328
  encodeFunctionData(functionFragment: "getTradeData", values: [BytesLike]): string;
1347
1329
  encodeFunctionData(functionFragment: "isMPCNode", values: [AddressLike]): string;
@@ -1362,8 +1344,7 @@ interface RouterInterface extends Interface {
1362
1344
  BytesLike,
1363
1345
  ITypes.TradeDataStruct,
1364
1346
  ITypes.AffiliateStruct,
1365
- ITypes.SettlementPresignStruct[],
1366
- ITypes.RefundPresignStruct
1347
+ ITypes.PresignStruct[]
1367
1348
  ]): string;
1368
1349
  encodeFunctionData(functionFragment: "version", values: [AddressLike]): string;
1369
1350
  decodeFunctionResult(functionFragment: "SIGNER", data: BytesLike): Result;
@@ -1372,7 +1353,6 @@ interface RouterInterface extends Interface {
1372
1353
  decodeFunctionResult(functionFragment: "confirmPayment", data: BytesLike): Result;
1373
1354
  decodeFunctionResult(functionFragment: "confirmSettlement", data: BytesLike): Result;
1374
1355
  decodeFunctionResult(functionFragment: "getAffiliateInfo", data: BytesLike): Result;
1375
- decodeFunctionResult(functionFragment: "getCurrentEpoch", data: BytesLike): Result;
1376
1356
  decodeFunctionResult(functionFragment: "getCurrentStage", data: BytesLike): Result;
1377
1357
  decodeFunctionResult(functionFragment: "getDepositAddressList", data: BytesLike): Result;
1378
1358
  decodeFunctionResult(functionFragment: "getFeeDetails", data: BytesLike): Result;
@@ -1386,12 +1366,9 @@ interface RouterInterface extends Interface {
1386
1366
  decodeFunctionResult(functionFragment: "getPFeeRate", data: BytesLike): Result;
1387
1367
  decodeFunctionResult(functionFragment: "getPMMAccounts", data: BytesLike): Result;
1388
1368
  decodeFunctionResult(functionFragment: "getPMMSelection", data: BytesLike): Result;
1389
- decodeFunctionResult(functionFragment: "getPendingTrades", data: BytesLike): Result;
1390
- decodeFunctionResult(functionFragment: "getPendingTradesCount", data: BytesLike): Result;
1369
+ decodeFunctionResult(functionFragment: "getPresigns", data: BytesLike): Result;
1391
1370
  decodeFunctionResult(functionFragment: "getProtocolState", data: BytesLike): Result;
1392
- decodeFunctionResult(functionFragment: "getRefundPresigns", data: BytesLike): Result;
1393
1371
  decodeFunctionResult(functionFragment: "getSettledPayment", data: BytesLike): Result;
1394
- decodeFunctionResult(functionFragment: "getSettlementPresigns", data: BytesLike): Result;
1395
1372
  decodeFunctionResult(functionFragment: "getTokens", data: BytesLike): Result;
1396
1373
  decodeFunctionResult(functionFragment: "getTradeData", data: BytesLike): Result;
1397
1374
  decodeFunctionResult(functionFragment: "isMPCNode", data: BytesLike): Result;
@@ -1500,19 +1477,19 @@ declare namespace SubmitTradeInfoEvent {
1500
1477
  }
1501
1478
  declare namespace UpdatedRouteEvent {
1502
1479
  type InputTuple = [
1503
- handler: AddressLike,
1480
+ core: AddressLike,
1504
1481
  version: BigNumberish,
1505
1482
  fromChain: BytesLike,
1506
1483
  toChain: BytesLike
1507
1484
  ];
1508
1485
  type OutputTuple = [
1509
- handler: string,
1486
+ core: string,
1510
1487
  version: bigint,
1511
1488
  fromChain: string,
1512
1489
  toChain: string
1513
1490
  ];
1514
1491
  interface OutputObject {
1515
- handler: string;
1492
+ core: string;
1516
1493
  version: bigint;
1517
1494
  fromChain: string;
1518
1495
  toChain: string;
@@ -1566,12 +1543,6 @@ interface Router extends BaseContract {
1566
1543
  ], [
1567
1544
  ITypes.AffiliateStructOutput
1568
1545
  ], "view">;
1569
- getCurrentEpoch: TypedContractMethod<[
1570
- fromChain: BytesLike,
1571
- toChain: BytesLike
1572
- ], [
1573
- [bigint, bigint, bigint]
1574
- ], "view">;
1575
1546
  getCurrentStage: TypedContractMethod<[tradeId: BytesLike], [bigint], "view">;
1576
1547
  getDepositAddressList: TypedContractMethod<[
1577
1548
  tradeId: BytesLike
@@ -1636,38 +1607,17 @@ interface Router extends BaseContract {
1636
1607
  ], [
1637
1608
  ITypes.PMMSelectionStructOutput
1638
1609
  ], "view">;
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
1652
- ], [
1653
- bigint
1654
- ], "view">;
1655
- getProtocolState: TypedContractMethod<[], [bigint], "view">;
1656
- getRefundPresigns: TypedContractMethod<[
1610
+ getPresigns: TypedContractMethod<[
1657
1611
  tradeId: BytesLike
1658
1612
  ], [
1659
- ITypes.RefundPresignStructOutput
1613
+ ITypes.PresignStructOutput[]
1660
1614
  ], "view">;
1615
+ getProtocolState: TypedContractMethod<[], [bigint], "view">;
1661
1616
  getSettledPayment: TypedContractMethod<[
1662
1617
  tradeId: BytesLike
1663
1618
  ], [
1664
1619
  ITypes.SettledPaymentStructOutput
1665
1620
  ], "view">;
1666
- getSettlementPresigns: TypedContractMethod<[
1667
- tradeId: BytesLike
1668
- ], [
1669
- ITypes.SettlementPresignStructOutput[]
1670
- ], "view">;
1671
1621
  getTokens: TypedContractMethod<[
1672
1622
  fromIdx: BigNumberish,
1673
1623
  toIdx: BigNumberish
@@ -1721,7 +1671,7 @@ interface Router extends BaseContract {
1721
1671
  void
1722
1672
  ], "nonpayable">;
1723
1673
  setRoute: TypedContractMethod<[
1724
- handler: AddressLike,
1674
+ core: AddressLike,
1725
1675
  fromChain: BytesLike,
1726
1676
  toChain: BytesLike
1727
1677
  ], [
@@ -1731,8 +1681,7 @@ interface Router extends BaseContract {
1731
1681
  tradeId: BytesLike,
1732
1682
  tradeData: ITypes.TradeDataStruct,
1733
1683
  affiliateInfo: ITypes.AffiliateStruct,
1734
- settlementPresigns: ITypes.SettlementPresignStruct[],
1735
- refundPresign: ITypes.RefundPresignStruct
1684
+ presignList: ITypes.PresignStruct[]
1736
1685
  ], [
1737
1686
  void
1738
1687
  ], "nonpayable">;
@@ -1769,12 +1718,6 @@ interface Router extends BaseContract {
1769
1718
  ], [
1770
1719
  ITypes.AffiliateStructOutput
1771
1720
  ], "view">;
1772
- getFunction(nameOrSignature: "getCurrentEpoch"): TypedContractMethod<[
1773
- fromChain: BytesLike,
1774
- toChain: BytesLike
1775
- ], [
1776
- [bigint, bigint, bigint]
1777
- ], "view">;
1778
1721
  getFunction(nameOrSignature: "getCurrentStage"): TypedContractMethod<[tradeId: BytesLike], [bigint], "view">;
1779
1722
  getFunction(nameOrSignature: "getDepositAddressList"): TypedContractMethod<[tradeId: BytesLike], [string[]], "view">;
1780
1723
  getFunction(nameOrSignature: "getFeeDetails"): TypedContractMethod<[
@@ -1831,38 +1774,17 @@ interface Router extends BaseContract {
1831
1774
  ], [
1832
1775
  ITypes.PMMSelectionStructOutput
1833
1776
  ], "view">;
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
1847
- ], [
1848
- bigint
1849
- ], "view">;
1850
- getFunction(nameOrSignature: "getProtocolState"): TypedContractMethod<[], [bigint], "view">;
1851
- getFunction(nameOrSignature: "getRefundPresigns"): TypedContractMethod<[
1777
+ getFunction(nameOrSignature: "getPresigns"): TypedContractMethod<[
1852
1778
  tradeId: BytesLike
1853
1779
  ], [
1854
- ITypes.RefundPresignStructOutput
1780
+ ITypes.PresignStructOutput[]
1855
1781
  ], "view">;
1782
+ getFunction(nameOrSignature: "getProtocolState"): TypedContractMethod<[], [bigint], "view">;
1856
1783
  getFunction(nameOrSignature: "getSettledPayment"): TypedContractMethod<[
1857
1784
  tradeId: BytesLike
1858
1785
  ], [
1859
1786
  ITypes.SettledPaymentStructOutput
1860
1787
  ], "view">;
1861
- getFunction(nameOrSignature: "getSettlementPresigns"): TypedContractMethod<[
1862
- tradeId: BytesLike
1863
- ], [
1864
- ITypes.SettlementPresignStructOutput[]
1865
- ], "view">;
1866
1788
  getFunction(nameOrSignature: "getTokens"): TypedContractMethod<[
1867
1789
  fromIdx: BigNumberish,
1868
1790
  toIdx: BigNumberish
@@ -1908,7 +1830,7 @@ interface Router extends BaseContract {
1908
1830
  ], "nonpayable">;
1909
1831
  getFunction(nameOrSignature: "setManagement"): TypedContractMethod<[newManagement: AddressLike], [void], "nonpayable">;
1910
1832
  getFunction(nameOrSignature: "setRoute"): TypedContractMethod<[
1911
- handler: AddressLike,
1833
+ core: AddressLike,
1912
1834
  fromChain: BytesLike,
1913
1835
  toChain: BytesLike
1914
1836
  ], [
@@ -1918,8 +1840,7 @@ interface Router extends BaseContract {
1918
1840
  tradeId: BytesLike,
1919
1841
  tradeData: ITypes.TradeDataStruct,
1920
1842
  affiliateInfo: ITypes.AffiliateStruct,
1921
- settlementPresigns: ITypes.SettlementPresignStruct[],
1922
- refundPresign: ITypes.RefundPresignStruct
1843
+ presignList: ITypes.PresignStruct[]
1923
1844
  ], [
1924
1845
  void
1925
1846
  ], "nonpayable">;
@@ -3521,7 +3442,7 @@ declare class Router__factory {
3521
3442
  readonly inputs: readonly [{
3522
3443
  readonly indexed: true;
3523
3444
  readonly internalType: "address";
3524
- readonly name: "handler";
3445
+ readonly name: "core";
3525
3446
  readonly type: "address";
3526
3447
  }, {
3527
3448
  readonly indexed: true;
@@ -3659,32 +3580,6 @@ declare class Router__factory {
3659
3580
  }];
3660
3581
  readonly stateMutability: "view";
3661
3582
  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";
3688
3583
  }, {
3689
3584
  readonly inputs: readonly [{
3690
3585
  readonly internalType: "bytes32";
@@ -3981,88 +3876,40 @@ declare class Router__factory {
3981
3876
  }];
3982
3877
  readonly stateMutability: "view";
3983
3878
  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";
4046
3879
  }, {
4047
3880
  readonly inputs: readonly [{
4048
3881
  readonly internalType: "bytes32";
4049
3882
  readonly name: "tradeId";
4050
3883
  readonly type: "bytes32";
4051
3884
  }];
4052
- readonly name: "getRefundPresigns";
3885
+ readonly name: "getPresigns";
4053
3886
  readonly outputs: readonly [{
4054
3887
  readonly components: readonly [{
3888
+ readonly internalType: "bytes32";
3889
+ readonly name: "pmmId";
3890
+ readonly type: "bytes32";
3891
+ }, {
4055
3892
  readonly internalType: "bytes";
4056
- readonly name: "refundAddress";
3893
+ readonly name: "pmmRecvAddress";
4057
3894
  readonly type: "bytes";
4058
3895
  }, {
4059
3896
  readonly internalType: "bytes[]";
4060
3897
  readonly name: "presigns";
4061
3898
  readonly type: "bytes[]";
4062
3899
  }];
4063
- readonly internalType: "struct ITypes.RefundPresign";
3900
+ readonly internalType: "struct ITypes.Presign[]";
4064
3901
  readonly name: "";
4065
- readonly type: "tuple";
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";
3911
+ readonly name: "";
3912
+ readonly type: "uint256";
4066
3913
  }];
4067
3914
  readonly stateMutability: "view";
4068
3915
  readonly type: "function";
@@ -4078,10 +3925,6 @@ declare class Router__factory {
4078
3925
  readonly internalType: "bytes32";
4079
3926
  readonly name: "bundlerHash";
4080
3927
  readonly type: "bytes32";
4081
- }, {
4082
- readonly internalType: "uint256";
4083
- readonly name: "index";
4084
- readonly type: "uint256";
4085
3928
  }, {
4086
3929
  readonly internalType: "bytes";
4087
3930
  readonly name: "paymentTxId";
@@ -4101,33 +3944,6 @@ declare class Router__factory {
4101
3944
  }];
4102
3945
  readonly stateMutability: "view";
4103
3946
  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";
4131
3947
  }, {
4132
3948
  readonly inputs: readonly [{
4133
3949
  readonly internalType: "uint256";
@@ -4432,7 +4248,7 @@ declare class Router__factory {
4432
4248
  }, {
4433
4249
  readonly inputs: readonly [{
4434
4250
  readonly internalType: "address";
4435
- readonly name: "handler";
4251
+ readonly name: "core";
4436
4252
  readonly type: "address";
4437
4253
  }, {
4438
4254
  readonly internalType: "bytes";
@@ -4526,22 +4342,9 @@ declare class Router__factory {
4526
4342
  readonly name: "presigns";
4527
4343
  readonly type: "bytes[]";
4528
4344
  }];
4529
- readonly internalType: "struct ITypes.SettlementPresign[]";
4530
- readonly name: "settlementPresigns";
4345
+ readonly internalType: "struct ITypes.Presign[]";
4346
+ readonly name: "presignList";
4531
4347
  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";
4545
4348
  }];
4546
4349
  readonly name: "submitTrade";
4547
4350
  readonly outputs: readonly [];
@@ -4803,8 +4606,7 @@ declare class RouterService implements ConfigObserver {
4803
4606
  getHandler(fromChain: BytesLike, toChain: BytesLike): Promise<[string, string]>;
4804
4607
  getPFeeRate(): Promise<bigint>;
4805
4608
  getPMMSelection(tradeId: BytesLike): Promise<ITypes.PMMSelectionStructOutput>;
4806
- getSettlementPresigns(tradeId: BytesLike): Promise<ITypes.SettlementPresignStructOutput[]>;
4807
- getRefundPresigns(tradeId: BytesLike): Promise<ITypes.RefundPresignStructOutput>;
4609
+ getSettlementPresigns(tradeId: BytesLike): Promise<ITypes.PresignStructOutput[]>;
4808
4610
  getProtocolState(): Promise<bigint>;
4809
4611
  getFeeDetails(tradeId: BytesLike): Promise<ITypes.FeeDetailsStructOutput>;
4810
4612
  getSettledPayment(tradeId: BytesLike): Promise<ITypes.SettledPaymentStructOutput>;