@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,748 @@
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 { IPLimitRouter, IPLimitRouterInterface } from "../IPLimitRouter";
8
+
9
+ const _abi = [
10
+ {
11
+ anonymous: false,
12
+ inputs: [
13
+ {
14
+ indexed: false,
15
+ internalType: "address[]",
16
+ name: "YTs",
17
+ type: "address[]",
18
+ },
19
+ {
20
+ indexed: false,
21
+ internalType: "uint256[]",
22
+ name: "lnFeeRateRoots",
23
+ type: "uint256[]",
24
+ },
25
+ ],
26
+ name: "LnFeeRateRootsSet",
27
+ type: "event",
28
+ },
29
+ {
30
+ anonymous: false,
31
+ inputs: [
32
+ {
33
+ indexed: true,
34
+ internalType: "address",
35
+ name: "maker",
36
+ type: "address",
37
+ },
38
+ {
39
+ indexed: true,
40
+ internalType: "bytes32",
41
+ name: "orderHash",
42
+ type: "bytes32",
43
+ },
44
+ ],
45
+ name: "OrderCanceled",
46
+ type: "event",
47
+ },
48
+ {
49
+ anonymous: false,
50
+ inputs: [
51
+ {
52
+ indexed: true,
53
+ internalType: "bytes32",
54
+ name: "orderHash",
55
+ type: "bytes32",
56
+ },
57
+ {
58
+ indexed: true,
59
+ internalType: "enum IPLimitOrderType.OrderType",
60
+ name: "orderType",
61
+ type: "uint8",
62
+ },
63
+ {
64
+ indexed: true,
65
+ internalType: "address",
66
+ name: "YT",
67
+ type: "address",
68
+ },
69
+ {
70
+ indexed: false,
71
+ internalType: "address",
72
+ name: "token",
73
+ type: "address",
74
+ },
75
+ {
76
+ indexed: false,
77
+ internalType: "uint256",
78
+ name: "netInputFromMaker",
79
+ type: "uint256",
80
+ },
81
+ {
82
+ indexed: false,
83
+ internalType: "uint256",
84
+ name: "netOutputToMaker",
85
+ type: "uint256",
86
+ },
87
+ {
88
+ indexed: false,
89
+ internalType: "uint256",
90
+ name: "feeAmount",
91
+ type: "uint256",
92
+ },
93
+ {
94
+ indexed: false,
95
+ internalType: "uint256",
96
+ name: "notionalVolume",
97
+ type: "uint256",
98
+ },
99
+ ],
100
+ name: "OrderFilled",
101
+ type: "event",
102
+ },
103
+ {
104
+ anonymous: false,
105
+ inputs: [
106
+ {
107
+ indexed: true,
108
+ internalType: "bytes32",
109
+ name: "orderHash",
110
+ type: "bytes32",
111
+ },
112
+ {
113
+ indexed: true,
114
+ internalType: "enum IPLimitOrderType.OrderType",
115
+ name: "orderType",
116
+ type: "uint8",
117
+ },
118
+ {
119
+ indexed: true,
120
+ internalType: "address",
121
+ name: "YT",
122
+ type: "address",
123
+ },
124
+ {
125
+ indexed: false,
126
+ internalType: "address",
127
+ name: "token",
128
+ type: "address",
129
+ },
130
+ {
131
+ indexed: false,
132
+ internalType: "uint256",
133
+ name: "netInputFromMaker",
134
+ type: "uint256",
135
+ },
136
+ {
137
+ indexed: false,
138
+ internalType: "uint256",
139
+ name: "netOutputToMaker",
140
+ type: "uint256",
141
+ },
142
+ {
143
+ indexed: false,
144
+ internalType: "uint256",
145
+ name: "feeAmount",
146
+ type: "uint256",
147
+ },
148
+ {
149
+ indexed: false,
150
+ internalType: "uint256",
151
+ name: "notionalVolume",
152
+ type: "uint256",
153
+ },
154
+ {
155
+ indexed: false,
156
+ internalType: "address",
157
+ name: "maker",
158
+ type: "address",
159
+ },
160
+ {
161
+ indexed: false,
162
+ internalType: "address",
163
+ name: "taker",
164
+ type: "address",
165
+ },
166
+ ],
167
+ name: "OrderFilledV2",
168
+ type: "event",
169
+ },
170
+ {
171
+ inputs: [],
172
+ name: "DOMAIN_SEPARATOR",
173
+ outputs: [
174
+ {
175
+ internalType: "bytes32",
176
+ name: "",
177
+ type: "bytes32",
178
+ },
179
+ ],
180
+ stateMutability: "view",
181
+ type: "function",
182
+ },
183
+ {
184
+ inputs: [],
185
+ name: "WNATIVE",
186
+ outputs: [
187
+ {
188
+ internalType: "address",
189
+ name: "",
190
+ type: "address",
191
+ },
192
+ ],
193
+ stateMutability: "view",
194
+ type: "function",
195
+ },
196
+ {
197
+ inputs: [
198
+ {
199
+ components: [
200
+ {
201
+ internalType: "uint256",
202
+ name: "salt",
203
+ type: "uint256",
204
+ },
205
+ {
206
+ internalType: "uint256",
207
+ name: "expiry",
208
+ type: "uint256",
209
+ },
210
+ {
211
+ internalType: "uint256",
212
+ name: "nonce",
213
+ type: "uint256",
214
+ },
215
+ {
216
+ internalType: "enum IPLimitOrderType.OrderType",
217
+ name: "orderType",
218
+ type: "uint8",
219
+ },
220
+ {
221
+ internalType: "address",
222
+ name: "token",
223
+ type: "address",
224
+ },
225
+ {
226
+ internalType: "address",
227
+ name: "YT",
228
+ type: "address",
229
+ },
230
+ {
231
+ internalType: "address",
232
+ name: "maker",
233
+ type: "address",
234
+ },
235
+ {
236
+ internalType: "address",
237
+ name: "receiver",
238
+ type: "address",
239
+ },
240
+ {
241
+ internalType: "uint256",
242
+ name: "makingAmount",
243
+ type: "uint256",
244
+ },
245
+ {
246
+ internalType: "uint256",
247
+ name: "lnImpliedRate",
248
+ type: "uint256",
249
+ },
250
+ {
251
+ internalType: "uint256",
252
+ name: "failSafeRate",
253
+ type: "uint256",
254
+ },
255
+ {
256
+ internalType: "bytes",
257
+ name: "permit",
258
+ type: "bytes",
259
+ },
260
+ ],
261
+ internalType: "struct Order",
262
+ name: "order",
263
+ type: "tuple",
264
+ },
265
+ {
266
+ internalType: "bytes",
267
+ name: "signature",
268
+ type: "bytes",
269
+ },
270
+ ],
271
+ name: "_checkSig",
272
+ outputs: [
273
+ {
274
+ internalType: "bytes32",
275
+ name: "",
276
+ type: "bytes32",
277
+ },
278
+ {
279
+ internalType: "uint256",
280
+ name: "",
281
+ type: "uint256",
282
+ },
283
+ {
284
+ internalType: "uint256",
285
+ name: "",
286
+ type: "uint256",
287
+ },
288
+ ],
289
+ stateMutability: "view",
290
+ type: "function",
291
+ },
292
+ {
293
+ inputs: [
294
+ {
295
+ components: [
296
+ {
297
+ internalType: "uint256",
298
+ name: "salt",
299
+ type: "uint256",
300
+ },
301
+ {
302
+ internalType: "uint256",
303
+ name: "expiry",
304
+ type: "uint256",
305
+ },
306
+ {
307
+ internalType: "uint256",
308
+ name: "nonce",
309
+ type: "uint256",
310
+ },
311
+ {
312
+ internalType: "enum IPLimitOrderType.OrderType",
313
+ name: "orderType",
314
+ type: "uint8",
315
+ },
316
+ {
317
+ internalType: "address",
318
+ name: "token",
319
+ type: "address",
320
+ },
321
+ {
322
+ internalType: "address",
323
+ name: "YT",
324
+ type: "address",
325
+ },
326
+ {
327
+ internalType: "address",
328
+ name: "maker",
329
+ type: "address",
330
+ },
331
+ {
332
+ internalType: "address",
333
+ name: "receiver",
334
+ type: "address",
335
+ },
336
+ {
337
+ internalType: "uint256",
338
+ name: "makingAmount",
339
+ type: "uint256",
340
+ },
341
+ {
342
+ internalType: "uint256",
343
+ name: "lnImpliedRate",
344
+ type: "uint256",
345
+ },
346
+ {
347
+ internalType: "uint256",
348
+ name: "failSafeRate",
349
+ type: "uint256",
350
+ },
351
+ {
352
+ internalType: "bytes",
353
+ name: "permit",
354
+ type: "bytes",
355
+ },
356
+ ],
357
+ internalType: "struct Order[]",
358
+ name: "orders",
359
+ type: "tuple[]",
360
+ },
361
+ ],
362
+ name: "cancelBatch",
363
+ outputs: [],
364
+ stateMutability: "nonpayable",
365
+ type: "function",
366
+ },
367
+ {
368
+ inputs: [
369
+ {
370
+ components: [
371
+ {
372
+ internalType: "uint256",
373
+ name: "salt",
374
+ type: "uint256",
375
+ },
376
+ {
377
+ internalType: "uint256",
378
+ name: "expiry",
379
+ type: "uint256",
380
+ },
381
+ {
382
+ internalType: "uint256",
383
+ name: "nonce",
384
+ type: "uint256",
385
+ },
386
+ {
387
+ internalType: "enum IPLimitOrderType.OrderType",
388
+ name: "orderType",
389
+ type: "uint8",
390
+ },
391
+ {
392
+ internalType: "address",
393
+ name: "token",
394
+ type: "address",
395
+ },
396
+ {
397
+ internalType: "address",
398
+ name: "YT",
399
+ type: "address",
400
+ },
401
+ {
402
+ internalType: "address",
403
+ name: "maker",
404
+ type: "address",
405
+ },
406
+ {
407
+ internalType: "address",
408
+ name: "receiver",
409
+ type: "address",
410
+ },
411
+ {
412
+ internalType: "uint256",
413
+ name: "makingAmount",
414
+ type: "uint256",
415
+ },
416
+ {
417
+ internalType: "uint256",
418
+ name: "lnImpliedRate",
419
+ type: "uint256",
420
+ },
421
+ {
422
+ internalType: "uint256",
423
+ name: "failSafeRate",
424
+ type: "uint256",
425
+ },
426
+ {
427
+ internalType: "bytes",
428
+ name: "permit",
429
+ type: "bytes",
430
+ },
431
+ ],
432
+ internalType: "struct Order",
433
+ name: "order",
434
+ type: "tuple",
435
+ },
436
+ ],
437
+ name: "cancelSingle",
438
+ outputs: [],
439
+ stateMutability: "nonpayable",
440
+ type: "function",
441
+ },
442
+ {
443
+ inputs: [],
444
+ name: "feeRecipient",
445
+ outputs: [
446
+ {
447
+ internalType: "address",
448
+ name: "",
449
+ type: "address",
450
+ },
451
+ ],
452
+ stateMutability: "view",
453
+ type: "function",
454
+ },
455
+ {
456
+ inputs: [
457
+ {
458
+ components: [
459
+ {
460
+ components: [
461
+ {
462
+ internalType: "uint256",
463
+ name: "salt",
464
+ type: "uint256",
465
+ },
466
+ {
467
+ internalType: "uint256",
468
+ name: "expiry",
469
+ type: "uint256",
470
+ },
471
+ {
472
+ internalType: "uint256",
473
+ name: "nonce",
474
+ type: "uint256",
475
+ },
476
+ {
477
+ internalType: "enum IPLimitOrderType.OrderType",
478
+ name: "orderType",
479
+ type: "uint8",
480
+ },
481
+ {
482
+ internalType: "address",
483
+ name: "token",
484
+ type: "address",
485
+ },
486
+ {
487
+ internalType: "address",
488
+ name: "YT",
489
+ type: "address",
490
+ },
491
+ {
492
+ internalType: "address",
493
+ name: "maker",
494
+ type: "address",
495
+ },
496
+ {
497
+ internalType: "address",
498
+ name: "receiver",
499
+ type: "address",
500
+ },
501
+ {
502
+ internalType: "uint256",
503
+ name: "makingAmount",
504
+ type: "uint256",
505
+ },
506
+ {
507
+ internalType: "uint256",
508
+ name: "lnImpliedRate",
509
+ type: "uint256",
510
+ },
511
+ {
512
+ internalType: "uint256",
513
+ name: "failSafeRate",
514
+ type: "uint256",
515
+ },
516
+ {
517
+ internalType: "bytes",
518
+ name: "permit",
519
+ type: "bytes",
520
+ },
521
+ ],
522
+ internalType: "struct Order",
523
+ name: "order",
524
+ type: "tuple",
525
+ },
526
+ {
527
+ internalType: "bytes",
528
+ name: "signature",
529
+ type: "bytes",
530
+ },
531
+ {
532
+ internalType: "uint256",
533
+ name: "makingAmount",
534
+ type: "uint256",
535
+ },
536
+ ],
537
+ internalType: "struct FillOrderParams[]",
538
+ name: "params",
539
+ type: "tuple[]",
540
+ },
541
+ {
542
+ internalType: "address",
543
+ name: "receiver",
544
+ type: "address",
545
+ },
546
+ {
547
+ internalType: "uint256",
548
+ name: "maxTaking",
549
+ type: "uint256",
550
+ },
551
+ {
552
+ internalType: "bytes",
553
+ name: "optData",
554
+ type: "bytes",
555
+ },
556
+ {
557
+ internalType: "bytes",
558
+ name: "callback",
559
+ type: "bytes",
560
+ },
561
+ ],
562
+ name: "fill",
563
+ outputs: [
564
+ {
565
+ internalType: "uint256",
566
+ name: "actualMaking",
567
+ type: "uint256",
568
+ },
569
+ {
570
+ internalType: "uint256",
571
+ name: "actualTaking",
572
+ type: "uint256",
573
+ },
574
+ {
575
+ internalType: "uint256",
576
+ name: "totalFee",
577
+ type: "uint256",
578
+ },
579
+ {
580
+ internalType: "bytes",
581
+ name: "callbackReturn",
582
+ type: "bytes",
583
+ },
584
+ ],
585
+ stateMutability: "nonpayable",
586
+ type: "function",
587
+ },
588
+ {
589
+ inputs: [
590
+ {
591
+ components: [
592
+ {
593
+ internalType: "uint256",
594
+ name: "salt",
595
+ type: "uint256",
596
+ },
597
+ {
598
+ internalType: "uint256",
599
+ name: "expiry",
600
+ type: "uint256",
601
+ },
602
+ {
603
+ internalType: "uint256",
604
+ name: "nonce",
605
+ type: "uint256",
606
+ },
607
+ {
608
+ internalType: "enum IPLimitOrderType.OrderType",
609
+ name: "orderType",
610
+ type: "uint8",
611
+ },
612
+ {
613
+ internalType: "address",
614
+ name: "token",
615
+ type: "address",
616
+ },
617
+ {
618
+ internalType: "address",
619
+ name: "YT",
620
+ type: "address",
621
+ },
622
+ {
623
+ internalType: "address",
624
+ name: "maker",
625
+ type: "address",
626
+ },
627
+ {
628
+ internalType: "address",
629
+ name: "receiver",
630
+ type: "address",
631
+ },
632
+ {
633
+ internalType: "uint256",
634
+ name: "makingAmount",
635
+ type: "uint256",
636
+ },
637
+ {
638
+ internalType: "uint256",
639
+ name: "lnImpliedRate",
640
+ type: "uint256",
641
+ },
642
+ {
643
+ internalType: "uint256",
644
+ name: "failSafeRate",
645
+ type: "uint256",
646
+ },
647
+ {
648
+ internalType: "bytes",
649
+ name: "permit",
650
+ type: "bytes",
651
+ },
652
+ ],
653
+ internalType: "struct Order",
654
+ name: "order",
655
+ type: "tuple",
656
+ },
657
+ ],
658
+ name: "hashOrder",
659
+ outputs: [
660
+ {
661
+ internalType: "bytes32",
662
+ name: "",
663
+ type: "bytes32",
664
+ },
665
+ ],
666
+ stateMutability: "view",
667
+ type: "function",
668
+ },
669
+ {
670
+ inputs: [
671
+ {
672
+ internalType: "bytes32[]",
673
+ name: "orderHashes",
674
+ type: "bytes32[]",
675
+ },
676
+ ],
677
+ name: "orderStatuses",
678
+ outputs: [
679
+ {
680
+ internalType: "uint256[]",
681
+ name: "remainings",
682
+ type: "uint256[]",
683
+ },
684
+ {
685
+ internalType: "uint256[]",
686
+ name: "filledAmounts",
687
+ type: "uint256[]",
688
+ },
689
+ ],
690
+ stateMutability: "view",
691
+ type: "function",
692
+ },
693
+ {
694
+ inputs: [
695
+ {
696
+ internalType: "bytes32[]",
697
+ name: "orderHashes",
698
+ type: "bytes32[]",
699
+ },
700
+ ],
701
+ name: "orderStatusesRaw",
702
+ outputs: [
703
+ {
704
+ internalType: "uint256[]",
705
+ name: "remainingsRaw",
706
+ type: "uint256[]",
707
+ },
708
+ {
709
+ internalType: "uint256[]",
710
+ name: "filledAmounts",
711
+ type: "uint256[]",
712
+ },
713
+ ],
714
+ stateMutability: "view",
715
+ type: "function",
716
+ },
717
+ {
718
+ inputs: [
719
+ {
720
+ internalType: "address",
721
+ name: "target",
722
+ type: "address",
723
+ },
724
+ {
725
+ internalType: "bytes",
726
+ name: "data",
727
+ type: "bytes",
728
+ },
729
+ ],
730
+ name: "simulate",
731
+ outputs: [],
732
+ stateMutability: "payable",
733
+ type: "function",
734
+ },
735
+ ];
736
+
737
+ export class IPLimitRouter__factory {
738
+ static readonly abi = _abi;
739
+ static createInterface(): IPLimitRouterInterface {
740
+ return new utils.Interface(_abi) as IPLimitRouterInterface;
741
+ }
742
+ static connect(
743
+ address: string,
744
+ signerOrProvider: Signer | Provider
745
+ ): IPLimitRouter {
746
+ return new Contract(address, _abi, signerOrProvider) as IPLimitRouter;
747
+ }
748
+ }