@pendle/core-v2 6.9.0 → 6.10.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 (110) hide show
  1. package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooper.dbg.json +1 -1
  2. package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooper.json +244 -249
  3. package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooperEIP712Types.dbg.json +1 -1
  4. package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.dbg.json +1 -1
  5. package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.json +244 -249
  6. package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.dbg.json +1 -1
  7. package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.json +2 -2
  8. package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.dbg.json +1 -1
  9. package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.json +246 -251
  10. package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarket.sol/BaseMoneyMarket.dbg.json +1 -1
  11. package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarketView.sol/BaseMoneyMarketView.dbg.json +1 -1
  12. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.dbg.json +1 -1
  13. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.json +2 -2
  14. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.dbg.json +1 -1
  15. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.json +2 -2
  16. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MMPayloadLib.sol/AaveV4MMPayloadLib.dbg.json +4 -0
  17. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MMPayloadLib.sol/AaveV4MMPayloadLib.json +10 -0
  18. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol/AaveV4MoneyMarket.dbg.json +4 -0
  19. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol/AaveV4MoneyMarket.json +615 -0
  20. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol/AaveV4MoneyMarketView.dbg.json +4 -0
  21. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol/AaveV4MoneyMarketView.json +280 -0
  22. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IAaveOracle.sol/IAaveOracle.dbg.json +4 -0
  23. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IAaveOracle.sol/IAaveOracle.json +30 -0
  24. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IHubBase.sol/IHubBase.dbg.json +4 -0
  25. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IHubBase.sol/IHubBase.json +322 -0
  26. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/ISpoke.sol/ISpoke.dbg.json +4 -0
  27. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/ISpoke.sol/ISpoke.json +398 -0
  28. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMMPayloadLib.sol/EulerMMPayloadLib.dbg.json +4 -0
  29. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMMPayloadLib.sol/EulerMMPayloadLib.json +10 -0
  30. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol/EulerMoneyMarket.dbg.json +4 -0
  31. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol/EulerMoneyMarket.json +651 -0
  32. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol/EulerMoneyMarketView.dbg.json +4 -0
  33. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol/EulerMoneyMarketView.json +298 -0
  34. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEthereumVaultConnector.sol/IEVC.dbg.json +4 -0
  35. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEthereumVaultConnector.sol/IEVC.json +959 -0
  36. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerFactory.sol/IEulerFactory.dbg.json +4 -0
  37. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerFactory.sol/IEulerFactory.json +30 -0
  38. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerPriceOracle.sol/IEulerPriceOracle.dbg.json +4 -0
  39. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerPriceOracle.sol/IEulerPriceOracle.json +53 -0
  40. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/AmountCapLib.dbg.json +4 -0
  41. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/AmountCapLib.json +10 -0
  42. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/IEulerVault.dbg.json +4 -0
  43. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/IEulerVault.json +933 -0
  44. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.dbg.json +1 -1
  45. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.json +2 -2
  46. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.dbg.json +1 -1
  47. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.json +2 -2
  48. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
  49. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
  50. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  51. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  52. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  53. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  54. package/contracts/interfaces/IPPTLooper.sol +2 -4
  55. package/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol +6 -6
  56. package/contracts/pt-looping/PendlePTLooper.sol +4 -2
  57. package/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MMPayloadLib.sol +20 -0
  58. package/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol +85 -0
  59. package/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol +180 -0
  60. package/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IAaveOracle.sol +12 -0
  61. package/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IHubBase.sol +72 -0
  62. package/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/ISpoke.sol +88 -0
  63. package/contracts/pt-looping/money-market/implementations/euler/EulerMMPayloadLib.sol +25 -0
  64. package/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol +104 -0
  65. package/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol +105 -0
  66. package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEthereumVaultConnector.sol +432 -0
  67. package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerFactory.sol +10 -0
  68. package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerPriceOracle.sol +26 -0
  69. package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol +149 -0
  70. package/contracts/router/swap-aggregator/OKXScaleHelper.sol +3 -0
  71. package/deployments/143-core.json +4 -1
  72. package/deployments/42161-core.json +4 -1
  73. package/deployments/4663-core.json +48 -0
  74. package/deployments/4663-offchain-helper.json +12 -0
  75. package/package.json +1 -1
  76. package/typechain-types/AaveV4MoneyMarket.ts +573 -0
  77. package/typechain-types/AaveV4MoneyMarketView.ts +362 -0
  78. package/typechain-types/EulerMoneyMarket.ts +599 -0
  79. package/typechain-types/EulerMoneyMarketView.ts +375 -0
  80. package/typechain-types/IAaveOracle.ts +17 -149
  81. package/typechain-types/IEVC.ts +1647 -0
  82. package/typechain-types/IEulerFactory.ts +94 -0
  83. package/typechain-types/IEulerPriceOracle.ts +123 -0
  84. package/typechain-types/IEulerVault.ts +1298 -0
  85. package/typechain-types/IHubBase.ts +452 -0
  86. package/typechain-types/IPPTLooper.ts +68 -68
  87. package/typechain-types/ISpoke.ts +577 -0
  88. package/typechain-types/PTLooperBase.ts +68 -68
  89. package/typechain-types/PendlePTLooper.ts +68 -68
  90. package/typechain-types/factories/AaveMoneyMarketView__factory.ts +1 -1
  91. package/typechain-types/factories/AaveMoneyMarket__factory.ts +1 -1
  92. package/typechain-types/factories/AaveV4MoneyMarketView__factory.ts +349 -0
  93. package/typechain-types/factories/AaveV4MoneyMarket__factory.ts +673 -0
  94. package/typechain-types/factories/EulerMoneyMarketView__factory.ts +371 -0
  95. package/typechain-types/factories/EulerMoneyMarket__factory.ts +720 -0
  96. package/typechain-types/factories/IAaveOracle__factory.ts +3 -93
  97. package/typechain-types/factories/IEVC__factory.ts +968 -0
  98. package/typechain-types/factories/IEulerFactory__factory.ts +42 -0
  99. package/typechain-types/factories/IEulerPriceOracle__factory.ts +68 -0
  100. package/typechain-types/factories/IEulerVault__factory.ts +945 -0
  101. package/typechain-types/factories/IHubBase__factory.ts +334 -0
  102. package/typechain-types/factories/IPPTLooper__factory.ts +243 -248
  103. package/typechain-types/factories/ISpoke__factory.ts +407 -0
  104. package/typechain-types/factories/MorphoBlueMoneyMarketView__factory.ts +1 -1
  105. package/typechain-types/factories/MorphoBlueMoneyMarket__factory.ts +1 -1
  106. package/typechain-types/factories/PTLooperBase__factory.ts +243 -248
  107. package/typechain-types/factories/PendlePTLooper__factory.ts +244 -249
  108. package/typechain-types/factories/PendleSwap__factory.ts +1 -1
  109. package/typechain-types/hardhat.d.ts +99 -0
  110. package/typechain-types/index.ts +22 -2
@@ -0,0 +1,945 @@
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 { IEulerVault, IEulerVaultInterface } from "../IEulerVault";
8
+
9
+ const _abi = [
10
+ {
11
+ anonymous: false,
12
+ inputs: [
13
+ {
14
+ indexed: true,
15
+ internalType: "address",
16
+ name: "owner",
17
+ type: "address",
18
+ },
19
+ {
20
+ indexed: true,
21
+ internalType: "address",
22
+ name: "spender",
23
+ type: "address",
24
+ },
25
+ {
26
+ indexed: false,
27
+ internalType: "uint256",
28
+ name: "value",
29
+ type: "uint256",
30
+ },
31
+ ],
32
+ name: "Approval",
33
+ type: "event",
34
+ },
35
+ {
36
+ anonymous: false,
37
+ inputs: [
38
+ {
39
+ indexed: true,
40
+ internalType: "address",
41
+ name: "sender",
42
+ type: "address",
43
+ },
44
+ {
45
+ indexed: true,
46
+ internalType: "address",
47
+ name: "owner",
48
+ type: "address",
49
+ },
50
+ {
51
+ indexed: false,
52
+ internalType: "uint256",
53
+ name: "assets",
54
+ type: "uint256",
55
+ },
56
+ {
57
+ indexed: false,
58
+ internalType: "uint256",
59
+ name: "shares",
60
+ type: "uint256",
61
+ },
62
+ ],
63
+ name: "Deposit",
64
+ type: "event",
65
+ },
66
+ {
67
+ anonymous: false,
68
+ inputs: [
69
+ {
70
+ indexed: true,
71
+ internalType: "address",
72
+ name: "from",
73
+ type: "address",
74
+ },
75
+ {
76
+ indexed: true,
77
+ internalType: "address",
78
+ name: "to",
79
+ type: "address",
80
+ },
81
+ {
82
+ indexed: false,
83
+ internalType: "uint256",
84
+ name: "value",
85
+ type: "uint256",
86
+ },
87
+ ],
88
+ name: "Transfer",
89
+ type: "event",
90
+ },
91
+ {
92
+ anonymous: false,
93
+ inputs: [
94
+ {
95
+ indexed: true,
96
+ internalType: "address",
97
+ name: "sender",
98
+ type: "address",
99
+ },
100
+ {
101
+ indexed: true,
102
+ internalType: "address",
103
+ name: "receiver",
104
+ type: "address",
105
+ },
106
+ {
107
+ indexed: true,
108
+ internalType: "address",
109
+ name: "owner",
110
+ type: "address",
111
+ },
112
+ {
113
+ indexed: false,
114
+ internalType: "uint256",
115
+ name: "assets",
116
+ type: "uint256",
117
+ },
118
+ {
119
+ indexed: false,
120
+ internalType: "uint256",
121
+ name: "shares",
122
+ type: "uint256",
123
+ },
124
+ ],
125
+ name: "Withdraw",
126
+ type: "event",
127
+ },
128
+ {
129
+ inputs: [
130
+ {
131
+ internalType: "contract IEulerVault",
132
+ name: "collateral",
133
+ type: "address",
134
+ },
135
+ ],
136
+ name: "LTVFull",
137
+ outputs: [
138
+ {
139
+ internalType: "uint256",
140
+ name: "borrowLTV",
141
+ type: "uint256",
142
+ },
143
+ {
144
+ internalType: "uint256",
145
+ name: "liquidationLTV",
146
+ type: "uint256",
147
+ },
148
+ {
149
+ internalType: "uint256",
150
+ name: "initialLiquidationLTV",
151
+ type: "uint256",
152
+ },
153
+ {
154
+ internalType: "uint256",
155
+ name: "targetTimestamp",
156
+ type: "uint256",
157
+ },
158
+ {
159
+ internalType: "uint256",
160
+ name: "rampDuration",
161
+ type: "uint256",
162
+ },
163
+ ],
164
+ stateMutability: "view",
165
+ type: "function",
166
+ },
167
+ {
168
+ inputs: [],
169
+ name: "LTVList",
170
+ outputs: [
171
+ {
172
+ internalType: "contract IEulerVault[]",
173
+ name: "",
174
+ type: "address[]",
175
+ },
176
+ ],
177
+ stateMutability: "view",
178
+ type: "function",
179
+ },
180
+ {
181
+ inputs: [
182
+ {
183
+ internalType: "address",
184
+ name: "owner",
185
+ type: "address",
186
+ },
187
+ {
188
+ internalType: "address",
189
+ name: "spender",
190
+ type: "address",
191
+ },
192
+ ],
193
+ name: "allowance",
194
+ outputs: [
195
+ {
196
+ internalType: "uint256",
197
+ name: "",
198
+ type: "uint256",
199
+ },
200
+ ],
201
+ stateMutability: "view",
202
+ type: "function",
203
+ },
204
+ {
205
+ inputs: [
206
+ {
207
+ internalType: "address",
208
+ name: "spender",
209
+ type: "address",
210
+ },
211
+ {
212
+ internalType: "uint256",
213
+ name: "amount",
214
+ type: "uint256",
215
+ },
216
+ ],
217
+ name: "approve",
218
+ outputs: [
219
+ {
220
+ internalType: "bool",
221
+ name: "",
222
+ type: "bool",
223
+ },
224
+ ],
225
+ stateMutability: "nonpayable",
226
+ type: "function",
227
+ },
228
+ {
229
+ inputs: [],
230
+ name: "asset",
231
+ outputs: [
232
+ {
233
+ internalType: "address",
234
+ name: "assetTokenAddress",
235
+ type: "address",
236
+ },
237
+ ],
238
+ stateMutability: "view",
239
+ type: "function",
240
+ },
241
+ {
242
+ inputs: [
243
+ {
244
+ internalType: "address",
245
+ name: "account",
246
+ type: "address",
247
+ },
248
+ ],
249
+ name: "balanceOf",
250
+ outputs: [
251
+ {
252
+ internalType: "uint256",
253
+ name: "",
254
+ type: "uint256",
255
+ },
256
+ ],
257
+ stateMutability: "view",
258
+ type: "function",
259
+ },
260
+ {
261
+ inputs: [
262
+ {
263
+ internalType: "uint256",
264
+ name: "amount",
265
+ type: "uint256",
266
+ },
267
+ {
268
+ internalType: "address",
269
+ name: "receiver",
270
+ type: "address",
271
+ },
272
+ ],
273
+ name: "borrow",
274
+ outputs: [
275
+ {
276
+ internalType: "uint256",
277
+ name: "",
278
+ type: "uint256",
279
+ },
280
+ ],
281
+ stateMutability: "nonpayable",
282
+ type: "function",
283
+ },
284
+ {
285
+ inputs: [],
286
+ name: "caps",
287
+ outputs: [
288
+ {
289
+ internalType: "AmountCap",
290
+ name: "supplyCap",
291
+ type: "uint16",
292
+ },
293
+ {
294
+ internalType: "AmountCap",
295
+ name: "borrowCap",
296
+ type: "uint16",
297
+ },
298
+ ],
299
+ stateMutability: "view",
300
+ type: "function",
301
+ },
302
+ {
303
+ inputs: [],
304
+ name: "cash",
305
+ outputs: [
306
+ {
307
+ internalType: "uint256",
308
+ name: "",
309
+ type: "uint256",
310
+ },
311
+ ],
312
+ stateMutability: "view",
313
+ type: "function",
314
+ },
315
+ {
316
+ inputs: [
317
+ {
318
+ internalType: "address",
319
+ name: "liquidator",
320
+ type: "address",
321
+ },
322
+ {
323
+ internalType: "address",
324
+ name: "violator",
325
+ type: "address",
326
+ },
327
+ {
328
+ internalType: "contract IEulerVault",
329
+ name: "collateral",
330
+ type: "address",
331
+ },
332
+ ],
333
+ name: "checkLiquidation",
334
+ outputs: [
335
+ {
336
+ internalType: "uint256",
337
+ name: "maxRepay",
338
+ type: "uint256",
339
+ },
340
+ {
341
+ internalType: "uint256",
342
+ name: "maxYield",
343
+ type: "uint256",
344
+ },
345
+ ],
346
+ stateMutability: "view",
347
+ type: "function",
348
+ },
349
+ {
350
+ inputs: [
351
+ {
352
+ internalType: "uint256",
353
+ name: "shares",
354
+ type: "uint256",
355
+ },
356
+ ],
357
+ name: "convertToAssets",
358
+ outputs: [
359
+ {
360
+ internalType: "uint256",
361
+ name: "assets",
362
+ type: "uint256",
363
+ },
364
+ ],
365
+ stateMutability: "view",
366
+ type: "function",
367
+ },
368
+ {
369
+ inputs: [
370
+ {
371
+ internalType: "uint256",
372
+ name: "assets",
373
+ type: "uint256",
374
+ },
375
+ ],
376
+ name: "convertToShares",
377
+ outputs: [
378
+ {
379
+ internalType: "uint256",
380
+ name: "shares",
381
+ type: "uint256",
382
+ },
383
+ ],
384
+ stateMutability: "view",
385
+ type: "function",
386
+ },
387
+ {
388
+ inputs: [
389
+ {
390
+ internalType: "address",
391
+ name: "account",
392
+ type: "address",
393
+ },
394
+ ],
395
+ name: "debtOf",
396
+ outputs: [
397
+ {
398
+ internalType: "uint256",
399
+ name: "",
400
+ type: "uint256",
401
+ },
402
+ ],
403
+ stateMutability: "view",
404
+ type: "function",
405
+ },
406
+ {
407
+ inputs: [],
408
+ name: "decimals",
409
+ outputs: [
410
+ {
411
+ internalType: "uint8",
412
+ name: "",
413
+ type: "uint8",
414
+ },
415
+ ],
416
+ stateMutability: "view",
417
+ type: "function",
418
+ },
419
+ {
420
+ inputs: [
421
+ {
422
+ internalType: "uint256",
423
+ name: "assets",
424
+ type: "uint256",
425
+ },
426
+ {
427
+ internalType: "address",
428
+ name: "receiver",
429
+ type: "address",
430
+ },
431
+ ],
432
+ name: "deposit",
433
+ outputs: [
434
+ {
435
+ internalType: "uint256",
436
+ name: "shares",
437
+ type: "uint256",
438
+ },
439
+ ],
440
+ stateMutability: "nonpayable",
441
+ type: "function",
442
+ },
443
+ {
444
+ inputs: [],
445
+ name: "enableBalanceForwarder",
446
+ outputs: [],
447
+ stateMutability: "nonpayable",
448
+ type: "function",
449
+ },
450
+ {
451
+ inputs: [],
452
+ name: "interestFee",
453
+ outputs: [
454
+ {
455
+ internalType: "uint16",
456
+ name: "",
457
+ type: "uint16",
458
+ },
459
+ ],
460
+ stateMutability: "view",
461
+ type: "function",
462
+ },
463
+ {
464
+ inputs: [],
465
+ name: "interestRate",
466
+ outputs: [
467
+ {
468
+ internalType: "uint256",
469
+ name: "",
470
+ type: "uint256",
471
+ },
472
+ ],
473
+ stateMutability: "view",
474
+ type: "function",
475
+ },
476
+ {
477
+ inputs: [],
478
+ name: "interestRateModel",
479
+ outputs: [
480
+ {
481
+ internalType: "address",
482
+ name: "",
483
+ type: "address",
484
+ },
485
+ ],
486
+ stateMutability: "view",
487
+ type: "function",
488
+ },
489
+ {
490
+ inputs: [
491
+ {
492
+ internalType: "address",
493
+ name: "violator",
494
+ type: "address",
495
+ },
496
+ {
497
+ internalType: "contract IEulerVault",
498
+ name: "collateral",
499
+ type: "address",
500
+ },
501
+ {
502
+ internalType: "uint256",
503
+ name: "repayAssets",
504
+ type: "uint256",
505
+ },
506
+ {
507
+ internalType: "uint256",
508
+ name: "minYieldBalance",
509
+ type: "uint256",
510
+ },
511
+ ],
512
+ name: "liquidate",
513
+ outputs: [],
514
+ stateMutability: "nonpayable",
515
+ type: "function",
516
+ },
517
+ {
518
+ inputs: [],
519
+ name: "liquidationCoolOffTime",
520
+ outputs: [
521
+ {
522
+ internalType: "uint16",
523
+ name: "",
524
+ type: "uint16",
525
+ },
526
+ ],
527
+ stateMutability: "view",
528
+ type: "function",
529
+ },
530
+ {
531
+ inputs: [
532
+ {
533
+ internalType: "address",
534
+ name: "receiver",
535
+ type: "address",
536
+ },
537
+ ],
538
+ name: "maxDeposit",
539
+ outputs: [
540
+ {
541
+ internalType: "uint256",
542
+ name: "maxAssets",
543
+ type: "uint256",
544
+ },
545
+ ],
546
+ stateMutability: "view",
547
+ type: "function",
548
+ },
549
+ {
550
+ inputs: [
551
+ {
552
+ internalType: "address",
553
+ name: "receiver",
554
+ type: "address",
555
+ },
556
+ ],
557
+ name: "maxMint",
558
+ outputs: [
559
+ {
560
+ internalType: "uint256",
561
+ name: "maxShares",
562
+ type: "uint256",
563
+ },
564
+ ],
565
+ stateMutability: "view",
566
+ type: "function",
567
+ },
568
+ {
569
+ inputs: [
570
+ {
571
+ internalType: "address",
572
+ name: "owner",
573
+ type: "address",
574
+ },
575
+ ],
576
+ name: "maxRedeem",
577
+ outputs: [
578
+ {
579
+ internalType: "uint256",
580
+ name: "maxShares",
581
+ type: "uint256",
582
+ },
583
+ ],
584
+ stateMutability: "view",
585
+ type: "function",
586
+ },
587
+ {
588
+ inputs: [
589
+ {
590
+ internalType: "address",
591
+ name: "owner",
592
+ type: "address",
593
+ },
594
+ ],
595
+ name: "maxWithdraw",
596
+ outputs: [
597
+ {
598
+ internalType: "uint256",
599
+ name: "maxAssets",
600
+ type: "uint256",
601
+ },
602
+ ],
603
+ stateMutability: "view",
604
+ type: "function",
605
+ },
606
+ {
607
+ inputs: [
608
+ {
609
+ internalType: "uint256",
610
+ name: "shares",
611
+ type: "uint256",
612
+ },
613
+ {
614
+ internalType: "address",
615
+ name: "receiver",
616
+ type: "address",
617
+ },
618
+ ],
619
+ name: "mint",
620
+ outputs: [
621
+ {
622
+ internalType: "uint256",
623
+ name: "assets",
624
+ type: "uint256",
625
+ },
626
+ ],
627
+ stateMutability: "nonpayable",
628
+ type: "function",
629
+ },
630
+ {
631
+ inputs: [],
632
+ name: "name",
633
+ outputs: [
634
+ {
635
+ internalType: "string",
636
+ name: "",
637
+ type: "string",
638
+ },
639
+ ],
640
+ stateMutability: "view",
641
+ type: "function",
642
+ },
643
+ {
644
+ inputs: [],
645
+ name: "oracle",
646
+ outputs: [
647
+ {
648
+ internalType: "contract IEulerPriceOracle",
649
+ name: "",
650
+ type: "address",
651
+ },
652
+ ],
653
+ stateMutability: "view",
654
+ type: "function",
655
+ },
656
+ {
657
+ inputs: [
658
+ {
659
+ internalType: "uint256",
660
+ name: "assets",
661
+ type: "uint256",
662
+ },
663
+ ],
664
+ name: "previewDeposit",
665
+ outputs: [
666
+ {
667
+ internalType: "uint256",
668
+ name: "shares",
669
+ type: "uint256",
670
+ },
671
+ ],
672
+ stateMutability: "view",
673
+ type: "function",
674
+ },
675
+ {
676
+ inputs: [
677
+ {
678
+ internalType: "uint256",
679
+ name: "shares",
680
+ type: "uint256",
681
+ },
682
+ ],
683
+ name: "previewMint",
684
+ outputs: [
685
+ {
686
+ internalType: "uint256",
687
+ name: "assets",
688
+ type: "uint256",
689
+ },
690
+ ],
691
+ stateMutability: "view",
692
+ type: "function",
693
+ },
694
+ {
695
+ inputs: [
696
+ {
697
+ internalType: "uint256",
698
+ name: "shares",
699
+ type: "uint256",
700
+ },
701
+ ],
702
+ name: "previewRedeem",
703
+ outputs: [
704
+ {
705
+ internalType: "uint256",
706
+ name: "assets",
707
+ type: "uint256",
708
+ },
709
+ ],
710
+ stateMutability: "view",
711
+ type: "function",
712
+ },
713
+ {
714
+ inputs: [
715
+ {
716
+ internalType: "uint256",
717
+ name: "assets",
718
+ type: "uint256",
719
+ },
720
+ ],
721
+ name: "previewWithdraw",
722
+ outputs: [
723
+ {
724
+ internalType: "uint256",
725
+ name: "shares",
726
+ type: "uint256",
727
+ },
728
+ ],
729
+ stateMutability: "view",
730
+ type: "function",
731
+ },
732
+ {
733
+ inputs: [
734
+ {
735
+ internalType: "uint256",
736
+ name: "shares",
737
+ type: "uint256",
738
+ },
739
+ {
740
+ internalType: "address",
741
+ name: "receiver",
742
+ type: "address",
743
+ },
744
+ {
745
+ internalType: "address",
746
+ name: "owner",
747
+ type: "address",
748
+ },
749
+ ],
750
+ name: "redeem",
751
+ outputs: [
752
+ {
753
+ internalType: "uint256",
754
+ name: "assets",
755
+ type: "uint256",
756
+ },
757
+ ],
758
+ stateMutability: "nonpayable",
759
+ type: "function",
760
+ },
761
+ {
762
+ inputs: [
763
+ {
764
+ internalType: "uint256",
765
+ name: "amount",
766
+ type: "uint256",
767
+ },
768
+ {
769
+ internalType: "address",
770
+ name: "receiver",
771
+ type: "address",
772
+ },
773
+ ],
774
+ name: "repay",
775
+ outputs: [
776
+ {
777
+ internalType: "uint256",
778
+ name: "",
779
+ type: "uint256",
780
+ },
781
+ ],
782
+ stateMutability: "nonpayable",
783
+ type: "function",
784
+ },
785
+ {
786
+ inputs: [],
787
+ name: "symbol",
788
+ outputs: [
789
+ {
790
+ internalType: "string",
791
+ name: "",
792
+ type: "string",
793
+ },
794
+ ],
795
+ stateMutability: "view",
796
+ type: "function",
797
+ },
798
+ {
799
+ inputs: [],
800
+ name: "totalAssets",
801
+ outputs: [
802
+ {
803
+ internalType: "uint256",
804
+ name: "totalManagedAssets",
805
+ type: "uint256",
806
+ },
807
+ ],
808
+ stateMutability: "view",
809
+ type: "function",
810
+ },
811
+ {
812
+ inputs: [],
813
+ name: "totalBorrows",
814
+ outputs: [
815
+ {
816
+ internalType: "uint256",
817
+ name: "",
818
+ type: "uint256",
819
+ },
820
+ ],
821
+ stateMutability: "view",
822
+ type: "function",
823
+ },
824
+ {
825
+ inputs: [],
826
+ name: "totalSupply",
827
+ outputs: [
828
+ {
829
+ internalType: "uint256",
830
+ name: "",
831
+ type: "uint256",
832
+ },
833
+ ],
834
+ stateMutability: "view",
835
+ type: "function",
836
+ },
837
+ {
838
+ inputs: [
839
+ {
840
+ internalType: "address",
841
+ name: "to",
842
+ type: "address",
843
+ },
844
+ {
845
+ internalType: "uint256",
846
+ name: "amount",
847
+ type: "uint256",
848
+ },
849
+ ],
850
+ name: "transfer",
851
+ outputs: [
852
+ {
853
+ internalType: "bool",
854
+ name: "",
855
+ type: "bool",
856
+ },
857
+ ],
858
+ stateMutability: "nonpayable",
859
+ type: "function",
860
+ },
861
+ {
862
+ inputs: [
863
+ {
864
+ internalType: "address",
865
+ name: "from",
866
+ type: "address",
867
+ },
868
+ {
869
+ internalType: "address",
870
+ name: "to",
871
+ type: "address",
872
+ },
873
+ {
874
+ internalType: "uint256",
875
+ name: "amount",
876
+ type: "uint256",
877
+ },
878
+ ],
879
+ name: "transferFrom",
880
+ outputs: [
881
+ {
882
+ internalType: "bool",
883
+ name: "",
884
+ type: "bool",
885
+ },
886
+ ],
887
+ stateMutability: "nonpayable",
888
+ type: "function",
889
+ },
890
+ {
891
+ inputs: [],
892
+ name: "unitOfAccount",
893
+ outputs: [
894
+ {
895
+ internalType: "address",
896
+ name: "",
897
+ type: "address",
898
+ },
899
+ ],
900
+ stateMutability: "view",
901
+ type: "function",
902
+ },
903
+ {
904
+ inputs: [
905
+ {
906
+ internalType: "uint256",
907
+ name: "assets",
908
+ type: "uint256",
909
+ },
910
+ {
911
+ internalType: "address",
912
+ name: "receiver",
913
+ type: "address",
914
+ },
915
+ {
916
+ internalType: "address",
917
+ name: "owner",
918
+ type: "address",
919
+ },
920
+ ],
921
+ name: "withdraw",
922
+ outputs: [
923
+ {
924
+ internalType: "uint256",
925
+ name: "shares",
926
+ type: "uint256",
927
+ },
928
+ ],
929
+ stateMutability: "nonpayable",
930
+ type: "function",
931
+ },
932
+ ];
933
+
934
+ export class IEulerVault__factory {
935
+ static readonly abi = _abi;
936
+ static createInterface(): IEulerVaultInterface {
937
+ return new utils.Interface(_abi) as IEulerVaultInterface;
938
+ }
939
+ static connect(
940
+ address: string,
941
+ signerOrProvider: Signer | Provider
942
+ ): IEulerVault {
943
+ return new Contract(address, _abi, signerOrProvider) as IEulerVault;
944
+ }
945
+ }