@pendle/core-v2 2.13.2-mainnet → 2.14.0-mainnet

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 (42) hide show
  1. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.dbg.json +1 -1
  2. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.json +6 -6
  3. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.dbg.json +1 -1
  4. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.dbg.json +1 -1
  5. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.json +0 -26
  6. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.dbg.json +1 -1
  7. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +1 -1
  8. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.json +10 -41
  9. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.dbg.json +1 -1
  10. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.json +48 -0
  11. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol/ICamelotNitroPoolFactory.dbg.json +4 -0
  12. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol/ICamelotNitroPoolFactory.json +638 -0
  13. package/build/artifacts/contracts/interfaces/Camelot/ICamelotPair.sol/ICamelotPair.dbg.json +1 -1
  14. package/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol +18 -10
  15. package/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol +2 -10
  16. package/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol +43 -41
  17. package/contracts/interfaces/Camelot/ICamelotNFTPool.sol +14 -0
  18. package/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol +95 -0
  19. package/deployments/42161-markets/CAMELOT-ARBETH-27JUNE2024-ARBITRUM.json +10 -0
  20. package/deployments/42161-markets/CAMELOT-PEP-27JUNE2024-ARBITRUM.json +4 -4
  21. package/package.json +1 -1
  22. package/typechain-types/CamelotV1LpHelper.ts +203 -0
  23. package/typechain-types/CamelotV1Preview.ts +431 -0
  24. package/typechain-types/CamelotV1VolatileLpHelper.ts +0 -32
  25. package/typechain-types/ICamelotNFTPool.ts +85 -0
  26. package/typechain-types/ICamelotNitroPoolFactory.ts +1053 -0
  27. package/typechain-types/ICamelotSY.ts +100 -0
  28. package/typechain-types/IPendlePreviewHelper.ts +147 -0
  29. package/typechain-types/PendleCamelotV1SY.ts +2014 -0
  30. package/typechain-types/PendleCamelotV1VolatileSY.ts +14 -46
  31. package/typechain-types/factories/CamelotRewardHelper__factory.ts +24 -13
  32. package/typechain-types/factories/CamelotV1LpHelper__factory.ts +143 -0
  33. package/typechain-types/factories/CamelotV1Preview__factory.ts +309 -0
  34. package/typechain-types/factories/CamelotV1VolatileLpHelper__factory.ts +0 -26
  35. package/typechain-types/factories/ICamelotNFTPool__factory.ts +48 -0
  36. package/typechain-types/factories/ICamelotNitroPoolFactory__factory.ts +657 -0
  37. package/typechain-types/factories/ICamelotSY__factory.ts +49 -0
  38. package/typechain-types/factories/IPendlePreviewHelper__factory.ts +78 -0
  39. package/typechain-types/factories/PendleCamelotV1SY__factory.ts +1614 -0
  40. package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +25 -53
  41. package/typechain-types/hardhat.d.ts +9 -0
  42. package/typechain-types/index.ts +2 -0
@@ -0,0 +1,657 @@
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
+ ICamelotNitroPoolFactory,
9
+ ICamelotNitroPoolFactoryInterface,
10
+ } from "../ICamelotNitroPoolFactory";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: false,
18
+ internalType: "address",
19
+ name: "nitroAddress",
20
+ type: "address",
21
+ },
22
+ ],
23
+ name: "CreateNitroPool",
24
+ type: "event",
25
+ },
26
+ {
27
+ anonymous: false,
28
+ inputs: [
29
+ {
30
+ indexed: true,
31
+ internalType: "address",
32
+ name: "previousOwner",
33
+ type: "address",
34
+ },
35
+ {
36
+ indexed: true,
37
+ internalType: "address",
38
+ name: "newOwner",
39
+ type: "address",
40
+ },
41
+ ],
42
+ name: "OwnershipTransferred",
43
+ type: "event",
44
+ },
45
+ {
46
+ anonymous: false,
47
+ inputs: [
48
+ {
49
+ indexed: false,
50
+ internalType: "address",
51
+ name: "nitroAddress",
52
+ type: "address",
53
+ },
54
+ ],
55
+ name: "PublishNitroPool",
56
+ type: "event",
57
+ },
58
+ {
59
+ anonymous: false,
60
+ inputs: [
61
+ {
62
+ indexed: false,
63
+ internalType: "uint256",
64
+ name: "fee",
65
+ type: "uint256",
66
+ },
67
+ ],
68
+ name: "SetDefaultFee",
69
+ type: "event",
70
+ },
71
+ {
72
+ anonymous: false,
73
+ inputs: [
74
+ {
75
+ indexed: false,
76
+ internalType: "address",
77
+ name: "emergencyRecoveryAddress",
78
+ type: "address",
79
+ },
80
+ ],
81
+ name: "SetEmergencyRecoveryAddress",
82
+ type: "event",
83
+ },
84
+ {
85
+ anonymous: false,
86
+ inputs: [
87
+ {
88
+ indexed: false,
89
+ internalType: "address",
90
+ name: "exemptedAddress",
91
+ type: "address",
92
+ },
93
+ {
94
+ indexed: false,
95
+ internalType: "bool",
96
+ name: "isExempted",
97
+ type: "bool",
98
+ },
99
+ ],
100
+ name: "SetExemptedAddress",
101
+ type: "event",
102
+ },
103
+ {
104
+ anonymous: false,
105
+ inputs: [
106
+ {
107
+ indexed: false,
108
+ internalType: "address",
109
+ name: "feeAddress",
110
+ type: "address",
111
+ },
112
+ ],
113
+ name: "SetFeeAddress",
114
+ type: "event",
115
+ },
116
+ {
117
+ anonymous: false,
118
+ inputs: [
119
+ {
120
+ indexed: false,
121
+ internalType: "address",
122
+ name: "previousOwner",
123
+ type: "address",
124
+ },
125
+ {
126
+ indexed: false,
127
+ internalType: "address",
128
+ name: "newOwner",
129
+ type: "address",
130
+ },
131
+ ],
132
+ name: "SetNitroPoolOwner",
133
+ type: "event",
134
+ },
135
+ {
136
+ inputs: [],
137
+ name: "MAX_DEFAULT_FEE",
138
+ outputs: [
139
+ {
140
+ internalType: "uint256",
141
+ name: "",
142
+ type: "uint256",
143
+ },
144
+ ],
145
+ stateMutability: "view",
146
+ type: "function",
147
+ },
148
+ {
149
+ inputs: [
150
+ {
151
+ internalType: "address",
152
+ name: "nftPoolAddress",
153
+ type: "address",
154
+ },
155
+ {
156
+ internalType: "address",
157
+ name: "rewardsToken1",
158
+ type: "address",
159
+ },
160
+ {
161
+ internalType: "address",
162
+ name: "rewardsToken2",
163
+ type: "address",
164
+ },
165
+ {
166
+ components: [
167
+ {
168
+ internalType: "uint256",
169
+ name: "startTime",
170
+ type: "uint256",
171
+ },
172
+ {
173
+ internalType: "uint256",
174
+ name: "endTime",
175
+ type: "uint256",
176
+ },
177
+ {
178
+ internalType: "uint256",
179
+ name: "harvestStartTime",
180
+ type: "uint256",
181
+ },
182
+ {
183
+ internalType: "uint256",
184
+ name: "depositEndTime",
185
+ type: "uint256",
186
+ },
187
+ {
188
+ internalType: "uint256",
189
+ name: "lockDurationReq",
190
+ type: "uint256",
191
+ },
192
+ {
193
+ internalType: "uint256",
194
+ name: "lockEndReq",
195
+ type: "uint256",
196
+ },
197
+ {
198
+ internalType: "uint256",
199
+ name: "depositAmountReq",
200
+ type: "uint256",
201
+ },
202
+ {
203
+ internalType: "bool",
204
+ name: "whitelist",
205
+ type: "bool",
206
+ },
207
+ {
208
+ internalType: "string",
209
+ name: "description",
210
+ type: "string",
211
+ },
212
+ ],
213
+ internalType: "struct ICamelotNitroPoolFactory.Settings",
214
+ name: "settings",
215
+ type: "tuple",
216
+ },
217
+ ],
218
+ name: "createNitroPool",
219
+ outputs: [
220
+ {
221
+ internalType: "address",
222
+ name: "nitroPool",
223
+ type: "address",
224
+ },
225
+ ],
226
+ stateMutability: "nonpayable",
227
+ type: "function",
228
+ },
229
+ {
230
+ inputs: [],
231
+ name: "defaultFee",
232
+ outputs: [
233
+ {
234
+ internalType: "uint256",
235
+ name: "",
236
+ type: "uint256",
237
+ },
238
+ ],
239
+ stateMutability: "view",
240
+ type: "function",
241
+ },
242
+ {
243
+ inputs: [],
244
+ name: "emergencyRecoveryAddress",
245
+ outputs: [
246
+ {
247
+ internalType: "address",
248
+ name: "",
249
+ type: "address",
250
+ },
251
+ ],
252
+ stateMutability: "view",
253
+ type: "function",
254
+ },
255
+ {
256
+ inputs: [],
257
+ name: "exemptedAddressesLength",
258
+ outputs: [
259
+ {
260
+ internalType: "uint256",
261
+ name: "",
262
+ type: "uint256",
263
+ },
264
+ ],
265
+ stateMutability: "view",
266
+ type: "function",
267
+ },
268
+ {
269
+ inputs: [],
270
+ name: "feeAddress",
271
+ outputs: [
272
+ {
273
+ internalType: "address",
274
+ name: "",
275
+ type: "address",
276
+ },
277
+ ],
278
+ stateMutability: "view",
279
+ type: "function",
280
+ },
281
+ {
282
+ inputs: [
283
+ {
284
+ internalType: "uint256",
285
+ name: "index",
286
+ type: "uint256",
287
+ },
288
+ ],
289
+ name: "getExemptedAddress",
290
+ outputs: [
291
+ {
292
+ internalType: "address",
293
+ name: "",
294
+ type: "address",
295
+ },
296
+ ],
297
+ stateMutability: "view",
298
+ type: "function",
299
+ },
300
+ {
301
+ inputs: [
302
+ {
303
+ internalType: "address",
304
+ name: "nftPoolAddress",
305
+ type: "address",
306
+ },
307
+ {
308
+ internalType: "uint256",
309
+ name: "index",
310
+ type: "uint256",
311
+ },
312
+ ],
313
+ name: "getNftPoolPublishedNitroPool",
314
+ outputs: [
315
+ {
316
+ internalType: "address",
317
+ name: "",
318
+ type: "address",
319
+ },
320
+ ],
321
+ stateMutability: "view",
322
+ type: "function",
323
+ },
324
+ {
325
+ inputs: [
326
+ {
327
+ internalType: "uint256",
328
+ name: "index",
329
+ type: "uint256",
330
+ },
331
+ ],
332
+ name: "getNitroPool",
333
+ outputs: [
334
+ {
335
+ internalType: "address",
336
+ name: "",
337
+ type: "address",
338
+ },
339
+ ],
340
+ stateMutability: "view",
341
+ type: "function",
342
+ },
343
+ {
344
+ inputs: [
345
+ {
346
+ internalType: "address",
347
+ name: "nitroPoolAddress",
348
+ type: "address",
349
+ },
350
+ {
351
+ internalType: "address",
352
+ name: "ownerAddress",
353
+ type: "address",
354
+ },
355
+ ],
356
+ name: "getNitroPoolFee",
357
+ outputs: [
358
+ {
359
+ internalType: "uint256",
360
+ name: "",
361
+ type: "uint256",
362
+ },
363
+ ],
364
+ stateMutability: "view",
365
+ type: "function",
366
+ },
367
+ {
368
+ inputs: [
369
+ {
370
+ internalType: "address",
371
+ name: "userAddress",
372
+ type: "address",
373
+ },
374
+ {
375
+ internalType: "uint256",
376
+ name: "index",
377
+ type: "uint256",
378
+ },
379
+ ],
380
+ name: "getOwnerNitroPool",
381
+ outputs: [
382
+ {
383
+ internalType: "address",
384
+ name: "",
385
+ type: "address",
386
+ },
387
+ ],
388
+ stateMutability: "view",
389
+ type: "function",
390
+ },
391
+ {
392
+ inputs: [
393
+ {
394
+ internalType: "uint256",
395
+ name: "index",
396
+ type: "uint256",
397
+ },
398
+ ],
399
+ name: "getPublishedNitroPool",
400
+ outputs: [
401
+ {
402
+ internalType: "address",
403
+ name: "",
404
+ type: "address",
405
+ },
406
+ ],
407
+ stateMutability: "view",
408
+ type: "function",
409
+ },
410
+ {
411
+ inputs: [],
412
+ name: "grailToken",
413
+ outputs: [
414
+ {
415
+ internalType: "address",
416
+ name: "",
417
+ type: "address",
418
+ },
419
+ ],
420
+ stateMutability: "view",
421
+ type: "function",
422
+ },
423
+ {
424
+ inputs: [
425
+ {
426
+ internalType: "address",
427
+ name: "checkedAddress",
428
+ type: "address",
429
+ },
430
+ ],
431
+ name: "isExemptedAddress",
432
+ outputs: [
433
+ {
434
+ internalType: "bool",
435
+ name: "",
436
+ type: "bool",
437
+ },
438
+ ],
439
+ stateMutability: "view",
440
+ type: "function",
441
+ },
442
+ {
443
+ inputs: [
444
+ {
445
+ internalType: "address",
446
+ name: "nftPoolAddress",
447
+ type: "address",
448
+ },
449
+ ],
450
+ name: "nftPoolPublishedNitroPoolsLength",
451
+ outputs: [
452
+ {
453
+ internalType: "uint256",
454
+ name: "",
455
+ type: "uint256",
456
+ },
457
+ ],
458
+ stateMutability: "view",
459
+ type: "function",
460
+ },
461
+ {
462
+ inputs: [],
463
+ name: "nitroPoolsLength",
464
+ outputs: [
465
+ {
466
+ internalType: "uint256",
467
+ name: "",
468
+ type: "uint256",
469
+ },
470
+ ],
471
+ stateMutability: "view",
472
+ type: "function",
473
+ },
474
+ {
475
+ inputs: [],
476
+ name: "owner",
477
+ outputs: [
478
+ {
479
+ internalType: "address",
480
+ name: "",
481
+ type: "address",
482
+ },
483
+ ],
484
+ stateMutability: "view",
485
+ type: "function",
486
+ },
487
+ {
488
+ inputs: [
489
+ {
490
+ internalType: "address",
491
+ name: "userAddress",
492
+ type: "address",
493
+ },
494
+ ],
495
+ name: "ownerNitroPoolsLength",
496
+ outputs: [
497
+ {
498
+ internalType: "uint256",
499
+ name: "",
500
+ type: "uint256",
501
+ },
502
+ ],
503
+ stateMutability: "view",
504
+ type: "function",
505
+ },
506
+ {
507
+ inputs: [
508
+ {
509
+ internalType: "address",
510
+ name: "nftAddress",
511
+ type: "address",
512
+ },
513
+ ],
514
+ name: "publishNitroPool",
515
+ outputs: [],
516
+ stateMutability: "nonpayable",
517
+ type: "function",
518
+ },
519
+ {
520
+ inputs: [],
521
+ name: "publishedNitroPoolsLength",
522
+ outputs: [
523
+ {
524
+ internalType: "uint256",
525
+ name: "",
526
+ type: "uint256",
527
+ },
528
+ ],
529
+ stateMutability: "view",
530
+ type: "function",
531
+ },
532
+ {
533
+ inputs: [],
534
+ name: "renounceOwnership",
535
+ outputs: [],
536
+ stateMutability: "nonpayable",
537
+ type: "function",
538
+ },
539
+ {
540
+ inputs: [
541
+ {
542
+ internalType: "uint256",
543
+ name: "newFee",
544
+ type: "uint256",
545
+ },
546
+ ],
547
+ name: "setDefaultFee",
548
+ outputs: [],
549
+ stateMutability: "nonpayable",
550
+ type: "function",
551
+ },
552
+ {
553
+ inputs: [
554
+ {
555
+ internalType: "address",
556
+ name: "emergencyRecoveryAddress_",
557
+ type: "address",
558
+ },
559
+ ],
560
+ name: "setEmergencyRecoveryAddress",
561
+ outputs: [],
562
+ stateMutability: "nonpayable",
563
+ type: "function",
564
+ },
565
+ {
566
+ inputs: [
567
+ {
568
+ internalType: "address",
569
+ name: "exemptedAddress",
570
+ type: "address",
571
+ },
572
+ {
573
+ internalType: "bool",
574
+ name: "isExempted",
575
+ type: "bool",
576
+ },
577
+ ],
578
+ name: "setExemptedAddress",
579
+ outputs: [],
580
+ stateMutability: "nonpayable",
581
+ type: "function",
582
+ },
583
+ {
584
+ inputs: [
585
+ {
586
+ internalType: "address",
587
+ name: "feeAddress_",
588
+ type: "address",
589
+ },
590
+ ],
591
+ name: "setFeeAddress",
592
+ outputs: [],
593
+ stateMutability: "nonpayable",
594
+ type: "function",
595
+ },
596
+ {
597
+ inputs: [
598
+ {
599
+ internalType: "address",
600
+ name: "previousOwner",
601
+ type: "address",
602
+ },
603
+ {
604
+ internalType: "address",
605
+ name: "newOwner",
606
+ type: "address",
607
+ },
608
+ ],
609
+ name: "setNitroPoolOwner",
610
+ outputs: [],
611
+ stateMutability: "nonpayable",
612
+ type: "function",
613
+ },
614
+ {
615
+ inputs: [
616
+ {
617
+ internalType: "address",
618
+ name: "newOwner",
619
+ type: "address",
620
+ },
621
+ ],
622
+ name: "transferOwnership",
623
+ outputs: [],
624
+ stateMutability: "nonpayable",
625
+ type: "function",
626
+ },
627
+ {
628
+ inputs: [],
629
+ name: "xGrailToken",
630
+ outputs: [
631
+ {
632
+ internalType: "address",
633
+ name: "",
634
+ type: "address",
635
+ },
636
+ ],
637
+ stateMutability: "view",
638
+ type: "function",
639
+ },
640
+ ];
641
+
642
+ export class ICamelotNitroPoolFactory__factory {
643
+ static readonly abi = _abi;
644
+ static createInterface(): ICamelotNitroPoolFactoryInterface {
645
+ return new utils.Interface(_abi) as ICamelotNitroPoolFactoryInterface;
646
+ }
647
+ static connect(
648
+ address: string,
649
+ signerOrProvider: Signer | Provider
650
+ ): ICamelotNitroPoolFactory {
651
+ return new Contract(
652
+ address,
653
+ _abi,
654
+ signerOrProvider
655
+ ) as ICamelotNitroPoolFactory;
656
+ }
657
+ }
@@ -0,0 +1,49 @@
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 { ICamelotSY, ICamelotSYInterface } from "../ICamelotSY";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [],
12
+ name: "pair",
13
+ outputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "",
17
+ type: "address",
18
+ },
19
+ ],
20
+ stateMutability: "view",
21
+ type: "function",
22
+ },
23
+ {
24
+ inputs: [],
25
+ name: "referrerForSwap",
26
+ outputs: [
27
+ {
28
+ internalType: "address",
29
+ name: "",
30
+ type: "address",
31
+ },
32
+ ],
33
+ stateMutability: "view",
34
+ type: "function",
35
+ },
36
+ ];
37
+
38
+ export class ICamelotSY__factory {
39
+ static readonly abi = _abi;
40
+ static createInterface(): ICamelotSYInterface {
41
+ return new utils.Interface(_abi) as ICamelotSYInterface;
42
+ }
43
+ static connect(
44
+ address: string,
45
+ signerOrProvider: Signer | Provider
46
+ ): ICamelotSY {
47
+ return new Contract(address, _abi, signerOrProvider) as ICamelotSY;
48
+ }
49
+ }