@pendle/core-v2 5.5.0 → 5.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/build/artifacts/contracts/core/Market/v3/PendleMarketFactoryV3.sol/PendleMarketFactoryV3.dbg.json +1 -1
  2. package/build/artifacts/contracts/core/Market/v3/PendleMarketFactoryV3.sol/PendleMarketFactoryV3.json +2 -2
  3. package/build/artifacts/contracts/core/Market/v3/PendleMarketV3.sol/PendleMarketV3.dbg.json +1 -1
  4. package/build/artifacts/contracts/core/Market/v3/PendleMarketV3.sol/PendleMarketV3.json +2 -2
  5. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  6. package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
  7. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  8. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  9. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  10. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  11. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  12. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  13. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  14. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  15. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  16. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  17. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  18. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  19. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  20. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  21. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
  22. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.json +77 -0
  23. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
  24. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  25. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.json +32 -0
  26. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
  27. package/build/artifacts/contracts/interfaces/IPMarketFactoryV3.sol/IPMarketFactoryV3.dbg.json +1 -1
  28. package/build/artifacts/contracts/interfaces/IPMarketFactoryV3.sol/IPMarketFactoryV3.json +23 -0
  29. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  30. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  31. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
  32. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  33. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.json +32 -0
  34. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
  35. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +34 -2
  36. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelper.sol/LimitBackendHelper.dbg.json +1 -1
  37. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelper.sol/LimitBackendHelper.json +2 -2
  38. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
  39. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.json +98 -3
  40. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  41. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  42. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  43. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  44. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  45. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  46. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  47. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  48. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  49. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  50. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  51. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  52. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  53. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  54. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  55. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  56. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  57. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
  58. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  59. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
  60. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  61. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  62. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  63. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
  64. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
  65. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  66. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  67. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  68. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  69. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  70. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  71. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  72. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  73. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  74. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  75. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  76. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  77. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  78. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  79. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  80. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  81. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  82. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  83. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  84. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  85. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  86. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  87. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  88. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  89. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
  90. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  91. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
  92. package/contracts/interfaces/IPGovernanceProxy.sol +10 -0
  93. package/contracts/interfaces/IPLimitRouter.sol +5 -0
  94. package/contracts/interfaces/IPMarketFactoryV3.sol +2 -0
  95. package/contracts/limit/LimitRouterBase.sol +6 -10
  96. package/contracts/offchain-helpers/PendleGovernanceProxy.sol +41 -10
  97. package/deployments/1-core.json +2 -1
  98. package/deployments/10-core.json +2 -1
  99. package/deployments/42161-core.json +2 -1
  100. package/deployments/5000-core.json +2 -1
  101. package/deployments/56-core.json +2 -1
  102. package/deployments/8453-core.json +2 -1
  103. package/deployments/merkle-distribution/2024-12-31-snapshot.json +65767 -0
  104. package/deployments/merkle-distribution/2025-01-30.json +28060 -0
  105. package/package.json +1 -1
  106. package/typechain-types/ActionCallbackV3.ts +164 -0
  107. package/typechain-types/IPActionCallbackV3.ts +164 -0
  108. package/typechain-types/IPGovernanceProxy.ts +236 -0
  109. package/typechain-types/IPLimitRouter.ts +633 -0
  110. package/typechain-types/IPLimitRouterCallback.ts +120 -0
  111. package/typechain-types/IPMarketFactoryV3.ts +321 -0
  112. package/typechain-types/LimitBackendHelper.ts +287 -0
  113. package/typechain-types/LimitRouterBase.ts +1138 -0
  114. package/typechain-types/PendleGovernanceProxy.ts +128 -0
  115. package/typechain-types/PendleLimitRouter.ts +1138 -0
  116. package/typechain-types/PendleMarketFactoryV3.ts +719 -0
  117. package/typechain-types/PendleMarketV3.ts +1195 -0
  118. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  119. package/typechain-types/factories/ActionCallbackV3__factory.ts +121 -0
  120. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  121. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  122. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  123. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  124. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  125. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  126. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  127. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  128. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  129. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  130. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  131. package/typechain-types/factories/IPActionCallbackV3__factory.ts +83 -0
  132. package/typechain-types/factories/IPGovernanceProxy__factory.ts +152 -0
  133. package/typechain-types/factories/IPLimitRouterCallback__factory.ts +64 -0
  134. package/typechain-types/factories/IPLimitRouter__factory.ts +748 -0
  135. package/typechain-types/factories/IPMarketFactoryV3__factory.ts +217 -0
  136. package/typechain-types/factories/LimitBackendHelper__factory.ts +232 -0
  137. package/typechain-types/factories/LimitRouterBase__factory.ts +1069 -0
  138. package/typechain-types/factories/PendleGovernanceProxy__factory.ts +97 -2
  139. package/typechain-types/factories/PendleLimitRouter__factory.ts +1139 -0
  140. package/typechain-types/factories/PendleMarketFactoryV3__factory.ts +714 -0
  141. package/typechain-types/factories/PendleMarketV3__factory.ts +1211 -0
  142. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  143. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  144. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  145. package/typechain-types/factories/Reflector__factory.ts +1 -1
@@ -0,0 +1,1069 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ LimitRouterBase,
9
+ LimitRouterBaseInterface,
10
+ } from "../LimitRouterBase";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [],
16
+ name: "EIP712DomainChanged",
17
+ type: "event",
18
+ },
19
+ {
20
+ anonymous: false,
21
+ inputs: [
22
+ {
23
+ indexed: false,
24
+ internalType: "uint8",
25
+ name: "version",
26
+ type: "uint8",
27
+ },
28
+ ],
29
+ name: "Initialized",
30
+ type: "event",
31
+ },
32
+ {
33
+ anonymous: false,
34
+ inputs: [
35
+ {
36
+ indexed: false,
37
+ internalType: "address[]",
38
+ name: "YTs",
39
+ type: "address[]",
40
+ },
41
+ {
42
+ indexed: false,
43
+ internalType: "uint256[]",
44
+ name: "lnFeeRateRoots",
45
+ type: "uint256[]",
46
+ },
47
+ ],
48
+ name: "LnFeeRateRootsSet",
49
+ type: "event",
50
+ },
51
+ {
52
+ anonymous: false,
53
+ inputs: [
54
+ {
55
+ indexed: true,
56
+ internalType: "address",
57
+ name: "maker",
58
+ type: "address",
59
+ },
60
+ {
61
+ indexed: false,
62
+ internalType: "uint256",
63
+ name: "oldNonce",
64
+ type: "uint256",
65
+ },
66
+ {
67
+ indexed: false,
68
+ internalType: "uint256",
69
+ name: "newNonce",
70
+ type: "uint256",
71
+ },
72
+ ],
73
+ name: "NonceIncreased",
74
+ type: "event",
75
+ },
76
+ {
77
+ anonymous: false,
78
+ inputs: [
79
+ {
80
+ indexed: true,
81
+ internalType: "address",
82
+ name: "maker",
83
+ type: "address",
84
+ },
85
+ {
86
+ indexed: true,
87
+ internalType: "bytes32",
88
+ name: "orderHash",
89
+ type: "bytes32",
90
+ },
91
+ ],
92
+ name: "OrderCanceled",
93
+ type: "event",
94
+ },
95
+ {
96
+ anonymous: false,
97
+ inputs: [
98
+ {
99
+ indexed: true,
100
+ internalType: "bytes32",
101
+ name: "orderHash",
102
+ type: "bytes32",
103
+ },
104
+ {
105
+ indexed: true,
106
+ internalType: "enum IPLimitOrderType.OrderType",
107
+ name: "orderType",
108
+ type: "uint8",
109
+ },
110
+ {
111
+ indexed: true,
112
+ internalType: "address",
113
+ name: "YT",
114
+ type: "address",
115
+ },
116
+ {
117
+ indexed: false,
118
+ internalType: "address",
119
+ name: "token",
120
+ type: "address",
121
+ },
122
+ {
123
+ indexed: false,
124
+ internalType: "uint256",
125
+ name: "netInputFromMaker",
126
+ type: "uint256",
127
+ },
128
+ {
129
+ indexed: false,
130
+ internalType: "uint256",
131
+ name: "netOutputToMaker",
132
+ type: "uint256",
133
+ },
134
+ {
135
+ indexed: false,
136
+ internalType: "uint256",
137
+ name: "feeAmount",
138
+ type: "uint256",
139
+ },
140
+ {
141
+ indexed: false,
142
+ internalType: "uint256",
143
+ name: "notionalVolume",
144
+ type: "uint256",
145
+ },
146
+ ],
147
+ name: "OrderFilled",
148
+ type: "event",
149
+ },
150
+ {
151
+ anonymous: false,
152
+ inputs: [
153
+ {
154
+ indexed: true,
155
+ internalType: "bytes32",
156
+ name: "orderHash",
157
+ type: "bytes32",
158
+ },
159
+ {
160
+ indexed: true,
161
+ internalType: "enum IPLimitOrderType.OrderType",
162
+ name: "orderType",
163
+ type: "uint8",
164
+ },
165
+ {
166
+ indexed: true,
167
+ internalType: "address",
168
+ name: "YT",
169
+ type: "address",
170
+ },
171
+ {
172
+ indexed: false,
173
+ internalType: "address",
174
+ name: "token",
175
+ type: "address",
176
+ },
177
+ {
178
+ indexed: false,
179
+ internalType: "uint256",
180
+ name: "netInputFromMaker",
181
+ type: "uint256",
182
+ },
183
+ {
184
+ indexed: false,
185
+ internalType: "uint256",
186
+ name: "netOutputToMaker",
187
+ type: "uint256",
188
+ },
189
+ {
190
+ indexed: false,
191
+ internalType: "uint256",
192
+ name: "feeAmount",
193
+ type: "uint256",
194
+ },
195
+ {
196
+ indexed: false,
197
+ internalType: "uint256",
198
+ name: "notionalVolume",
199
+ type: "uint256",
200
+ },
201
+ {
202
+ indexed: false,
203
+ internalType: "address",
204
+ name: "maker",
205
+ type: "address",
206
+ },
207
+ {
208
+ indexed: false,
209
+ internalType: "address",
210
+ name: "taker",
211
+ type: "address",
212
+ },
213
+ ],
214
+ name: "OrderFilledV2",
215
+ type: "event",
216
+ },
217
+ {
218
+ anonymous: false,
219
+ inputs: [
220
+ {
221
+ indexed: true,
222
+ internalType: "address",
223
+ name: "previousOwner",
224
+ type: "address",
225
+ },
226
+ {
227
+ indexed: true,
228
+ internalType: "address",
229
+ name: "newOwner",
230
+ type: "address",
231
+ },
232
+ ],
233
+ name: "OwnershipTransferred",
234
+ type: "event",
235
+ },
236
+ {
237
+ inputs: [],
238
+ name: "DOMAIN_SEPARATOR",
239
+ outputs: [
240
+ {
241
+ internalType: "bytes32",
242
+ name: "",
243
+ type: "bytes32",
244
+ },
245
+ ],
246
+ stateMutability: "view",
247
+ type: "function",
248
+ },
249
+ {
250
+ inputs: [],
251
+ name: "WNATIVE",
252
+ outputs: [
253
+ {
254
+ internalType: "address",
255
+ name: "",
256
+ type: "address",
257
+ },
258
+ ],
259
+ stateMutability: "view",
260
+ type: "function",
261
+ },
262
+ {
263
+ inputs: [
264
+ {
265
+ components: [
266
+ {
267
+ internalType: "uint256",
268
+ name: "salt",
269
+ type: "uint256",
270
+ },
271
+ {
272
+ internalType: "uint256",
273
+ name: "expiry",
274
+ type: "uint256",
275
+ },
276
+ {
277
+ internalType: "uint256",
278
+ name: "nonce",
279
+ type: "uint256",
280
+ },
281
+ {
282
+ internalType: "enum IPLimitOrderType.OrderType",
283
+ name: "orderType",
284
+ type: "uint8",
285
+ },
286
+ {
287
+ internalType: "address",
288
+ name: "token",
289
+ type: "address",
290
+ },
291
+ {
292
+ internalType: "address",
293
+ name: "YT",
294
+ type: "address",
295
+ },
296
+ {
297
+ internalType: "address",
298
+ name: "maker",
299
+ type: "address",
300
+ },
301
+ {
302
+ internalType: "address",
303
+ name: "receiver",
304
+ type: "address",
305
+ },
306
+ {
307
+ internalType: "uint256",
308
+ name: "makingAmount",
309
+ type: "uint256",
310
+ },
311
+ {
312
+ internalType: "uint256",
313
+ name: "lnImpliedRate",
314
+ type: "uint256",
315
+ },
316
+ {
317
+ internalType: "uint256",
318
+ name: "failSafeRate",
319
+ type: "uint256",
320
+ },
321
+ {
322
+ internalType: "bytes",
323
+ name: "permit",
324
+ type: "bytes",
325
+ },
326
+ ],
327
+ internalType: "struct Order",
328
+ name: "order",
329
+ type: "tuple",
330
+ },
331
+ {
332
+ internalType: "bytes",
333
+ name: "signature",
334
+ type: "bytes",
335
+ },
336
+ ],
337
+ name: "_checkSig",
338
+ outputs: [
339
+ {
340
+ internalType: "bytes32",
341
+ name: "",
342
+ type: "bytes32",
343
+ },
344
+ {
345
+ internalType: "uint256",
346
+ name: "",
347
+ type: "uint256",
348
+ },
349
+ {
350
+ internalType: "uint256",
351
+ name: "",
352
+ type: "uint256",
353
+ },
354
+ ],
355
+ stateMutability: "view",
356
+ type: "function",
357
+ },
358
+ {
359
+ inputs: [
360
+ {
361
+ internalType: "uint8",
362
+ name: "amount",
363
+ type: "uint8",
364
+ },
365
+ ],
366
+ name: "advanceNonce",
367
+ outputs: [],
368
+ stateMutability: "nonpayable",
369
+ type: "function",
370
+ },
371
+ {
372
+ inputs: [
373
+ {
374
+ components: [
375
+ {
376
+ internalType: "uint256",
377
+ name: "salt",
378
+ type: "uint256",
379
+ },
380
+ {
381
+ internalType: "uint256",
382
+ name: "expiry",
383
+ type: "uint256",
384
+ },
385
+ {
386
+ internalType: "uint256",
387
+ name: "nonce",
388
+ type: "uint256",
389
+ },
390
+ {
391
+ internalType: "enum IPLimitOrderType.OrderType",
392
+ name: "orderType",
393
+ type: "uint8",
394
+ },
395
+ {
396
+ internalType: "address",
397
+ name: "token",
398
+ type: "address",
399
+ },
400
+ {
401
+ internalType: "address",
402
+ name: "YT",
403
+ type: "address",
404
+ },
405
+ {
406
+ internalType: "address",
407
+ name: "maker",
408
+ type: "address",
409
+ },
410
+ {
411
+ internalType: "address",
412
+ name: "receiver",
413
+ type: "address",
414
+ },
415
+ {
416
+ internalType: "uint256",
417
+ name: "makingAmount",
418
+ type: "uint256",
419
+ },
420
+ {
421
+ internalType: "uint256",
422
+ name: "lnImpliedRate",
423
+ type: "uint256",
424
+ },
425
+ {
426
+ internalType: "uint256",
427
+ name: "failSafeRate",
428
+ type: "uint256",
429
+ },
430
+ {
431
+ internalType: "bytes",
432
+ name: "permit",
433
+ type: "bytes",
434
+ },
435
+ ],
436
+ internalType: "struct Order[]",
437
+ name: "orders",
438
+ type: "tuple[]",
439
+ },
440
+ ],
441
+ name: "cancelBatch",
442
+ outputs: [],
443
+ stateMutability: "nonpayable",
444
+ type: "function",
445
+ },
446
+ {
447
+ inputs: [
448
+ {
449
+ components: [
450
+ {
451
+ internalType: "uint256",
452
+ name: "salt",
453
+ type: "uint256",
454
+ },
455
+ {
456
+ internalType: "uint256",
457
+ name: "expiry",
458
+ type: "uint256",
459
+ },
460
+ {
461
+ internalType: "uint256",
462
+ name: "nonce",
463
+ type: "uint256",
464
+ },
465
+ {
466
+ internalType: "enum IPLimitOrderType.OrderType",
467
+ name: "orderType",
468
+ type: "uint8",
469
+ },
470
+ {
471
+ internalType: "address",
472
+ name: "token",
473
+ type: "address",
474
+ },
475
+ {
476
+ internalType: "address",
477
+ name: "YT",
478
+ type: "address",
479
+ },
480
+ {
481
+ internalType: "address",
482
+ name: "maker",
483
+ type: "address",
484
+ },
485
+ {
486
+ internalType: "address",
487
+ name: "receiver",
488
+ type: "address",
489
+ },
490
+ {
491
+ internalType: "uint256",
492
+ name: "makingAmount",
493
+ type: "uint256",
494
+ },
495
+ {
496
+ internalType: "uint256",
497
+ name: "lnImpliedRate",
498
+ type: "uint256",
499
+ },
500
+ {
501
+ internalType: "uint256",
502
+ name: "failSafeRate",
503
+ type: "uint256",
504
+ },
505
+ {
506
+ internalType: "bytes",
507
+ name: "permit",
508
+ type: "bytes",
509
+ },
510
+ ],
511
+ internalType: "struct Order",
512
+ name: "order",
513
+ type: "tuple",
514
+ },
515
+ ],
516
+ name: "cancelSingle",
517
+ outputs: [],
518
+ stateMutability: "nonpayable",
519
+ type: "function",
520
+ },
521
+ {
522
+ inputs: [],
523
+ name: "claimOwnership",
524
+ outputs: [],
525
+ stateMutability: "nonpayable",
526
+ type: "function",
527
+ },
528
+ {
529
+ inputs: [],
530
+ name: "eip712Domain",
531
+ outputs: [
532
+ {
533
+ internalType: "bytes1",
534
+ name: "fields",
535
+ type: "bytes1",
536
+ },
537
+ {
538
+ internalType: "string",
539
+ name: "name",
540
+ type: "string",
541
+ },
542
+ {
543
+ internalType: "string",
544
+ name: "version",
545
+ type: "string",
546
+ },
547
+ {
548
+ internalType: "uint256",
549
+ name: "chainId",
550
+ type: "uint256",
551
+ },
552
+ {
553
+ internalType: "address",
554
+ name: "verifyingContract",
555
+ type: "address",
556
+ },
557
+ {
558
+ internalType: "bytes32",
559
+ name: "salt",
560
+ type: "bytes32",
561
+ },
562
+ {
563
+ internalType: "uint256[]",
564
+ name: "extensions",
565
+ type: "uint256[]",
566
+ },
567
+ ],
568
+ stateMutability: "view",
569
+ type: "function",
570
+ },
571
+ {
572
+ inputs: [],
573
+ name: "feeRecipient",
574
+ outputs: [
575
+ {
576
+ internalType: "address",
577
+ name: "",
578
+ type: "address",
579
+ },
580
+ ],
581
+ stateMutability: "view",
582
+ type: "function",
583
+ },
584
+ {
585
+ inputs: [
586
+ {
587
+ components: [
588
+ {
589
+ components: [
590
+ {
591
+ internalType: "uint256",
592
+ name: "salt",
593
+ type: "uint256",
594
+ },
595
+ {
596
+ internalType: "uint256",
597
+ name: "expiry",
598
+ type: "uint256",
599
+ },
600
+ {
601
+ internalType: "uint256",
602
+ name: "nonce",
603
+ type: "uint256",
604
+ },
605
+ {
606
+ internalType: "enum IPLimitOrderType.OrderType",
607
+ name: "orderType",
608
+ type: "uint8",
609
+ },
610
+ {
611
+ internalType: "address",
612
+ name: "token",
613
+ type: "address",
614
+ },
615
+ {
616
+ internalType: "address",
617
+ name: "YT",
618
+ type: "address",
619
+ },
620
+ {
621
+ internalType: "address",
622
+ name: "maker",
623
+ type: "address",
624
+ },
625
+ {
626
+ internalType: "address",
627
+ name: "receiver",
628
+ type: "address",
629
+ },
630
+ {
631
+ internalType: "uint256",
632
+ name: "makingAmount",
633
+ type: "uint256",
634
+ },
635
+ {
636
+ internalType: "uint256",
637
+ name: "lnImpliedRate",
638
+ type: "uint256",
639
+ },
640
+ {
641
+ internalType: "uint256",
642
+ name: "failSafeRate",
643
+ type: "uint256",
644
+ },
645
+ {
646
+ internalType: "bytes",
647
+ name: "permit",
648
+ type: "bytes",
649
+ },
650
+ ],
651
+ internalType: "struct Order",
652
+ name: "order",
653
+ type: "tuple",
654
+ },
655
+ {
656
+ internalType: "bytes",
657
+ name: "signature",
658
+ type: "bytes",
659
+ },
660
+ {
661
+ internalType: "uint256",
662
+ name: "makingAmount",
663
+ type: "uint256",
664
+ },
665
+ ],
666
+ internalType: "struct FillOrderParams[]",
667
+ name: "params",
668
+ type: "tuple[]",
669
+ },
670
+ {
671
+ internalType: "address",
672
+ name: "receiver",
673
+ type: "address",
674
+ },
675
+ {
676
+ internalType: "uint256",
677
+ name: "maxTaking",
678
+ type: "uint256",
679
+ },
680
+ {
681
+ internalType: "bytes",
682
+ name: "",
683
+ type: "bytes",
684
+ },
685
+ {
686
+ internalType: "bytes",
687
+ name: "callback",
688
+ type: "bytes",
689
+ },
690
+ ],
691
+ name: "fill",
692
+ outputs: [
693
+ {
694
+ internalType: "uint256",
695
+ name: "actualMaking",
696
+ type: "uint256",
697
+ },
698
+ {
699
+ internalType: "uint256",
700
+ name: "actualTaking",
701
+ type: "uint256",
702
+ },
703
+ {
704
+ internalType: "uint256",
705
+ name: "totalFee",
706
+ type: "uint256",
707
+ },
708
+ {
709
+ internalType: "bytes",
710
+ name: "callbackReturn",
711
+ type: "bytes",
712
+ },
713
+ ],
714
+ stateMutability: "nonpayable",
715
+ type: "function",
716
+ },
717
+ {
718
+ inputs: [
719
+ {
720
+ internalType: "address",
721
+ name: "YT",
722
+ type: "address",
723
+ },
724
+ ],
725
+ name: "getLnFeeRateRoot",
726
+ outputs: [
727
+ {
728
+ internalType: "uint256",
729
+ name: "res",
730
+ type: "uint256",
731
+ },
732
+ ],
733
+ stateMutability: "view",
734
+ type: "function",
735
+ },
736
+ {
737
+ inputs: [
738
+ {
739
+ components: [
740
+ {
741
+ internalType: "uint256",
742
+ name: "salt",
743
+ type: "uint256",
744
+ },
745
+ {
746
+ internalType: "uint256",
747
+ name: "expiry",
748
+ type: "uint256",
749
+ },
750
+ {
751
+ internalType: "uint256",
752
+ name: "nonce",
753
+ type: "uint256",
754
+ },
755
+ {
756
+ internalType: "enum IPLimitOrderType.OrderType",
757
+ name: "orderType",
758
+ type: "uint8",
759
+ },
760
+ {
761
+ internalType: "address",
762
+ name: "token",
763
+ type: "address",
764
+ },
765
+ {
766
+ internalType: "address",
767
+ name: "YT",
768
+ type: "address",
769
+ },
770
+ {
771
+ internalType: "address",
772
+ name: "maker",
773
+ type: "address",
774
+ },
775
+ {
776
+ internalType: "address",
777
+ name: "receiver",
778
+ type: "address",
779
+ },
780
+ {
781
+ internalType: "uint256",
782
+ name: "makingAmount",
783
+ type: "uint256",
784
+ },
785
+ {
786
+ internalType: "uint256",
787
+ name: "lnImpliedRate",
788
+ type: "uint256",
789
+ },
790
+ {
791
+ internalType: "uint256",
792
+ name: "failSafeRate",
793
+ type: "uint256",
794
+ },
795
+ {
796
+ internalType: "bytes",
797
+ name: "permit",
798
+ type: "bytes",
799
+ },
800
+ ],
801
+ internalType: "struct Order",
802
+ name: "order",
803
+ type: "tuple",
804
+ },
805
+ ],
806
+ name: "hashOrder",
807
+ outputs: [
808
+ {
809
+ internalType: "bytes32",
810
+ name: "",
811
+ type: "bytes32",
812
+ },
813
+ ],
814
+ stateMutability: "view",
815
+ type: "function",
816
+ },
817
+ {
818
+ inputs: [],
819
+ name: "increaseNonce",
820
+ outputs: [],
821
+ stateMutability: "nonpayable",
822
+ type: "function",
823
+ },
824
+ {
825
+ inputs: [
826
+ {
827
+ internalType: "address",
828
+ name: "_feeRecipient",
829
+ type: "address",
830
+ },
831
+ ],
832
+ name: "initialize",
833
+ outputs: [],
834
+ stateMutability: "nonpayable",
835
+ type: "function",
836
+ },
837
+ {
838
+ inputs: [
839
+ {
840
+ internalType: "address",
841
+ name: "",
842
+ type: "address",
843
+ },
844
+ ],
845
+ name: "nonce",
846
+ outputs: [
847
+ {
848
+ internalType: "uint256",
849
+ name: "",
850
+ type: "uint256",
851
+ },
852
+ ],
853
+ stateMutability: "view",
854
+ type: "function",
855
+ },
856
+ {
857
+ inputs: [
858
+ {
859
+ internalType: "address",
860
+ name: "makerAddress",
861
+ type: "address",
862
+ },
863
+ {
864
+ internalType: "uint256",
865
+ name: "makerNonce",
866
+ type: "uint256",
867
+ },
868
+ ],
869
+ name: "nonceEquals",
870
+ outputs: [
871
+ {
872
+ internalType: "bool",
873
+ name: "",
874
+ type: "bool",
875
+ },
876
+ ],
877
+ stateMutability: "view",
878
+ type: "function",
879
+ },
880
+ {
881
+ inputs: [
882
+ {
883
+ internalType: "bytes32[]",
884
+ name: "orderHashes",
885
+ type: "bytes32[]",
886
+ },
887
+ ],
888
+ name: "orderStatuses",
889
+ outputs: [
890
+ {
891
+ internalType: "uint256[]",
892
+ name: "remainings",
893
+ type: "uint256[]",
894
+ },
895
+ {
896
+ internalType: "uint256[]",
897
+ name: "filledAmounts",
898
+ type: "uint256[]",
899
+ },
900
+ ],
901
+ stateMutability: "view",
902
+ type: "function",
903
+ },
904
+ {
905
+ inputs: [
906
+ {
907
+ internalType: "bytes32[]",
908
+ name: "orderHashes",
909
+ type: "bytes32[]",
910
+ },
911
+ ],
912
+ name: "orderStatusesRaw",
913
+ outputs: [
914
+ {
915
+ internalType: "uint256[]",
916
+ name: "remainingsRaw",
917
+ type: "uint256[]",
918
+ },
919
+ {
920
+ internalType: "uint256[]",
921
+ name: "filledAmounts",
922
+ type: "uint256[]",
923
+ },
924
+ ],
925
+ stateMutability: "view",
926
+ type: "function",
927
+ },
928
+ {
929
+ inputs: [],
930
+ name: "owner",
931
+ outputs: [
932
+ {
933
+ internalType: "address",
934
+ name: "",
935
+ type: "address",
936
+ },
937
+ ],
938
+ stateMutability: "view",
939
+ type: "function",
940
+ },
941
+ {
942
+ inputs: [],
943
+ name: "ownerHelper",
944
+ outputs: [
945
+ {
946
+ internalType: "address",
947
+ name: "",
948
+ type: "address",
949
+ },
950
+ ],
951
+ stateMutability: "view",
952
+ type: "function",
953
+ },
954
+ {
955
+ inputs: [],
956
+ name: "pendingOwner",
957
+ outputs: [
958
+ {
959
+ internalType: "address",
960
+ name: "",
961
+ type: "address",
962
+ },
963
+ ],
964
+ stateMutability: "view",
965
+ type: "function",
966
+ },
967
+ {
968
+ inputs: [
969
+ {
970
+ internalType: "address",
971
+ name: "_feeRecipient",
972
+ type: "address",
973
+ },
974
+ ],
975
+ name: "setFeeRecipient",
976
+ outputs: [],
977
+ stateMutability: "nonpayable",
978
+ type: "function",
979
+ },
980
+ {
981
+ inputs: [
982
+ {
983
+ internalType: "address[]",
984
+ name: "YTs",
985
+ type: "address[]",
986
+ },
987
+ {
988
+ internalType: "uint256[]",
989
+ name: "lnFeeRateRoots",
990
+ type: "uint256[]",
991
+ },
992
+ ],
993
+ name: "setLnFeeRateRoots",
994
+ outputs: [],
995
+ stateMutability: "nonpayable",
996
+ type: "function",
997
+ },
998
+ {
999
+ inputs: [
1000
+ {
1001
+ internalType: "address",
1002
+ name: "_helper",
1003
+ type: "address",
1004
+ },
1005
+ ],
1006
+ name: "setOwnerHelper",
1007
+ outputs: [],
1008
+ stateMutability: "nonpayable",
1009
+ type: "function",
1010
+ },
1011
+ {
1012
+ inputs: [
1013
+ {
1014
+ internalType: "address",
1015
+ name: "target",
1016
+ type: "address",
1017
+ },
1018
+ {
1019
+ internalType: "bytes",
1020
+ name: "data",
1021
+ type: "bytes",
1022
+ },
1023
+ ],
1024
+ name: "simulate",
1025
+ outputs: [],
1026
+ stateMutability: "payable",
1027
+ type: "function",
1028
+ },
1029
+ {
1030
+ inputs: [
1031
+ {
1032
+ internalType: "address",
1033
+ name: "newOwner",
1034
+ type: "address",
1035
+ },
1036
+ {
1037
+ internalType: "bool",
1038
+ name: "direct",
1039
+ type: "bool",
1040
+ },
1041
+ {
1042
+ internalType: "bool",
1043
+ name: "renounce",
1044
+ type: "bool",
1045
+ },
1046
+ ],
1047
+ name: "transferOwnership",
1048
+ outputs: [],
1049
+ stateMutability: "nonpayable",
1050
+ type: "function",
1051
+ },
1052
+ {
1053
+ stateMutability: "payable",
1054
+ type: "receive",
1055
+ },
1056
+ ];
1057
+
1058
+ export class LimitRouterBase__factory {
1059
+ static readonly abi = _abi;
1060
+ static createInterface(): LimitRouterBaseInterface {
1061
+ return new utils.Interface(_abi) as LimitRouterBaseInterface;
1062
+ }
1063
+ static connect(
1064
+ address: string,
1065
+ signerOrProvider: Signer | Provider
1066
+ ): LimitRouterBase {
1067
+ return new Contract(address, _abi, signerOrProvider) as LimitRouterBase;
1068
+ }
1069
+ }