@pendle/core-v2 0.5.1-beta-4 → 0.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 (126) hide show
  1. package/contracts/SuperComposableYield/ISuperComposableYield.sol +2 -0
  2. package/contracts/SuperComposableYield/implementations/RewardManager.sol +35 -20
  3. package/contracts/SuperComposableYield/implementations/SCYBase.sol +39 -19
  4. package/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol +26 -14
  5. package/contracts/core/PendleBaseToken.sol +2 -2
  6. package/contracts/core/PendleMarket.sol +145 -61
  7. package/contracts/core/PendleMarketFactory.sol +30 -19
  8. package/contracts/core/{PendleOwnershipToken.sol → PendlePrincipalToken.sol} +14 -2
  9. package/contracts/core/PendleRouter.sol +23 -9
  10. package/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol +21 -20
  11. package/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol +22 -16
  12. package/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol +13 -13
  13. package/contracts/core/PendleSCYImpl/PendleStETHSCY.sol +107 -0
  14. package/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol +14 -15
  15. package/contracts/core/PendleYieldContractFactory.sol +29 -14
  16. package/contracts/core/PendleYieldToken.sol +130 -76
  17. package/contracts/core/RouterStatic.sol +16 -157
  18. package/contracts/core/actions/ActionCallback.sol +36 -18
  19. package/contracts/core/actions/ActionCore.sol +41 -88
  20. package/contracts/core/actions/ActionRedeem.sol +36 -0
  21. package/contracts/core/actions/ActionYT.sol +41 -59
  22. package/contracts/core/actions/base/{ActionSCYAndOTBase.sol → ActionSCYAndPTBase.sol} +59 -45
  23. package/contracts/core/actions/base/{ActionSCYAndYOBase.sol → ActionSCYAndPYBase.sol} +57 -19
  24. package/contracts/core/actions/base/ActionSCYAndYTBase.sol +31 -21
  25. package/contracts/interfaces/IPActionCore.sol +21 -28
  26. package/contracts/interfaces/IPActionRedeem.sol +17 -0
  27. package/contracts/interfaces/IPActionYT.sol +5 -12
  28. package/contracts/interfaces/IPAllAction.sol +2 -2
  29. package/contracts/interfaces/IPMarket.sol +33 -10
  30. package/contracts/interfaces/IPMarketAddRemoveCallback.sol +2 -2
  31. package/contracts/interfaces/IPMarketFactory.sol +3 -1
  32. package/contracts/interfaces/IPMarketSwapCallback.sol +1 -1
  33. package/contracts/interfaces/{IPOwnershipToken.sol → IPPrincipalToken.sol} +1 -1
  34. package/contracts/interfaces/IPRouterStatic.sol +7 -82
  35. package/contracts/interfaces/IPYieldContractFactory.sol +10 -2
  36. package/contracts/interfaces/IPYieldToken.sol +14 -5
  37. package/contracts/interfaces/IWstETH.sol +10 -0
  38. package/contracts/libraries/JoeLibrary.sol +1 -1
  39. package/contracts/libraries/math/LogExpMath.sol +1 -1
  40. package/contracts/libraries/math/MarketApproxLib.sol +128 -88
  41. package/contracts/libraries/math/MarketMathAux.sol +13 -13
  42. package/contracts/libraries/math/MarketMathCore.sol +62 -93
  43. package/contracts/libraries/math/Math.sol +14 -2
  44. package/contracts/periphery/PendleGovernanceManager.sol +5 -3
  45. package/package.json +3 -2
  46. package/typechain-types/ActionCallback.ts +5 -5
  47. package/typechain-types/ActionCore.ts +312 -234
  48. package/typechain-types/ActionRedeem.ts +125 -0
  49. package/typechain-types/ActionSCYAndPYBase.ts +223 -0
  50. package/typechain-types/ActionSCYAndYOBase.ts +129 -3
  51. package/typechain-types/ActionSCYAndYTBase.ts +149 -3
  52. package/typechain-types/ActionYT.ts +192 -94
  53. package/typechain-types/IPActionCore.ts +183 -231
  54. package/typechain-types/IPActionRedeem.ts +125 -0
  55. package/typechain-types/IPActionYT.ts +43 -91
  56. package/typechain-types/IPAllAction.ts +258 -321
  57. package/typechain-types/IPMarket.ts +150 -50
  58. package/typechain-types/IPMarketAddRemoveCallback.ts +10 -10
  59. package/typechain-types/IPMarketFactory.ts +28 -6
  60. package/typechain-types/IPMarketSwapCallback.ts +5 -5
  61. package/typechain-types/{IPOwnershipToken.ts → IPPrincipalToken.ts} +5 -5
  62. package/typechain-types/IPRouterStatic.ts +50 -530
  63. package/typechain-types/IPYieldContractFactory.ts +85 -19
  64. package/typechain-types/IPYieldToken.ts +138 -37
  65. package/typechain-types/ISuperComposableYield.ts +13 -0
  66. package/typechain-types/IWstETH.ts +149 -0
  67. package/typechain-types/PendleAaveV3SCY.ts +110 -0
  68. package/typechain-types/PendleBaseToken.ts +1 -1
  69. package/typechain-types/PendleBenQiErc20SCY.ts +55 -12
  70. package/typechain-types/PendleBtrflyScy.ts +27 -23
  71. package/typechain-types/PendleGovernanceManager.ts +5 -5
  72. package/typechain-types/PendleMarket.ts +197 -100
  73. package/typechain-types/PendleMarketFactory.ts +96 -34
  74. package/typechain-types/{PendleOwnershipToken.ts → PendlePrincipalToken.ts} +15 -6
  75. package/typechain-types/PendleRouter.ts +19 -0
  76. package/typechain-types/PendleRouterRedeemUpg.ts +125 -0
  77. package/typechain-types/PendleStEthSCY.ts +872 -0
  78. package/typechain-types/PendleYearnVaultScy.ts +27 -23
  79. package/typechain-types/PendleYieldContractFactory.ts +94 -28
  80. package/typechain-types/PendleYieldToken.ts +142 -57
  81. package/typechain-types/RewardManager.ts +21 -0
  82. package/typechain-types/RouterStatic.ts +50 -530
  83. package/typechain-types/SCYBase.ts +25 -0
  84. package/typechain-types/SCYBaseWithRewards.ts +64 -0
  85. package/typechain-types/factories/ActionCallback__factory.ts +2 -2
  86. package/typechain-types/factories/ActionCore__factory.ts +263 -79
  87. package/typechain-types/factories/ActionRedeem__factory.ts +105 -0
  88. package/typechain-types/factories/ActionSCYAndPYBase__factory.ts +200 -0
  89. package/typechain-types/factories/ActionSCYAndYOBase__factory.ts +148 -0
  90. package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +173 -0
  91. package/typechain-types/factories/ActionYT__factory.ts +265 -56
  92. package/typechain-types/factories/IPActionCore__factory.ts +114 -78
  93. package/typechain-types/factories/IPActionRedeem__factory.ts +70 -0
  94. package/typechain-types/factories/IPActionYT__factory.ts +90 -54
  95. package/typechain-types/factories/IPAllAction__factory.ts +254 -138
  96. package/typechain-types/factories/IPMarketAddRemoveCallback__factory.ts +2 -2
  97. package/typechain-types/factories/IPMarketFactory__factory.ts +26 -1
  98. package/typechain-types/factories/IPMarketSwapCallback__factory.ts +1 -1
  99. package/typechain-types/factories/IPMarket__factory.ts +125 -13
  100. package/typechain-types/factories/{IPOwnershipToken__factory.ts → IPPrincipalToken__factory.ts} +8 -8
  101. package/typechain-types/factories/IPRouterStatic__factory.ts +12 -628
  102. package/typechain-types/factories/IPYieldContractFactory__factory.ts +72 -2
  103. package/typechain-types/factories/IPYieldToken__factory.ts +93 -7
  104. package/typechain-types/factories/ISuperComposableYield__factory.ts +13 -0
  105. package/typechain-types/factories/IWstETH__factory.ts +74 -0
  106. package/typechain-types/factories/PendleAaveV3SCY__factory.ts +97 -3
  107. package/typechain-types/factories/PendleBaseToken__factory.ts +1 -1
  108. package/typechain-types/factories/PendleBenQiErc20SCY__factory.ts +62 -7
  109. package/typechain-types/factories/PendleBtrflyScy__factory.ts +42 -19
  110. package/typechain-types/factories/PendleGovernanceManager__factory.ts +2 -2
  111. package/typechain-types/factories/PendleMarketFactory__factory.ts +66 -15
  112. package/typechain-types/factories/PendleMarket__factory.ts +170 -53
  113. package/typechain-types/factories/PendlePrincipalToken__factory.ts +540 -0
  114. package/typechain-types/factories/PendleRouterRedeemUpg__factory.ts +112 -0
  115. package/typechain-types/factories/PendleRouter__factory.ts +23 -1
  116. package/typechain-types/factories/PendleStEthSCY__factory.ts +716 -0
  117. package/typechain-types/factories/PendleYearnVaultScy__factory.ts +41 -18
  118. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +75 -5
  119. package/typechain-types/factories/PendleYieldToken__factory.ts +102 -33
  120. package/typechain-types/factories/RewardManager__factory.ts +13 -0
  121. package/typechain-types/factories/RouterStatic__factory.ts +13 -629
  122. package/typechain-types/factories/SCYBaseWithRewards__factory.ts +60 -2
  123. package/typechain-types/factories/SCYBase__factory.ts +28 -2
  124. package/typechain-types/hardhat.d.ts +52 -16
  125. package/typechain-types/index.ts +14 -6
  126. package/typechain-types/factories/PendleOwnershipToken__factory.ts +0 -527
@@ -26,7 +26,7 @@ const _abi = [
26
26
  },
27
27
  {
28
28
  internalType: "uint256",
29
- name: "otDesired",
29
+ name: "ptDesired",
30
30
  type: "uint256",
31
31
  },
32
32
  {
@@ -65,12 +65,12 @@ const _abi = [
65
65
  },
66
66
  {
67
67
  internalType: "address",
68
- name: "SCY",
68
+ name: "YT",
69
69
  type: "address",
70
70
  },
71
71
  {
72
72
  internalType: "uint256",
73
- name: "minScyOut",
73
+ name: "minPyOut",
74
74
  type: "uint256",
75
75
  },
76
76
  {
@@ -84,7 +84,7 @@ const _abi = [
84
84
  type: "address[]",
85
85
  },
86
86
  ],
87
- name: "mintScyFromRawToken",
87
+ name: "mintPyFromRawToken",
88
88
  outputs: [
89
89
  {
90
90
  internalType: "uint256",
@@ -104,12 +104,12 @@ const _abi = [
104
104
  },
105
105
  {
106
106
  internalType: "address",
107
- name: "YT",
107
+ name: "SCY",
108
108
  type: "address",
109
109
  },
110
110
  {
111
111
  internalType: "uint256",
112
- name: "minYoOut",
112
+ name: "minScyOut",
113
113
  type: "uint256",
114
114
  },
115
115
  {
@@ -123,7 +123,7 @@ const _abi = [
123
123
  type: "address[]",
124
124
  },
125
125
  ],
126
- name: "mintYoFromRawToken",
126
+ name: "mintScyFromRawToken",
127
127
  outputs: [
128
128
  {
129
129
  internalType: "uint256",
@@ -138,12 +138,56 @@ const _abi = [
138
138
  inputs: [
139
139
  {
140
140
  internalType: "address",
141
- name: "SCY",
141
+ name: "user",
142
+ type: "address",
143
+ },
144
+ {
145
+ internalType: "address[]",
146
+ name: "scys",
147
+ type: "address[]",
148
+ },
149
+ {
150
+ internalType: "address[]",
151
+ name: "yieldTokens",
152
+ type: "address[]",
153
+ },
154
+ {
155
+ internalType: "address[]",
156
+ name: "",
157
+ type: "address[]",
158
+ },
159
+ ],
160
+ name: "redeemDueIncome",
161
+ outputs: [
162
+ {
163
+ internalType: "uint256[][]",
164
+ name: "scyRewards",
165
+ type: "uint256[][]",
166
+ },
167
+ {
168
+ internalType: "uint256[]",
169
+ name: "ytInterests",
170
+ type: "uint256[]",
171
+ },
172
+ {
173
+ internalType: "uint256[][]",
174
+ name: "ytRewards",
175
+ type: "uint256[][]",
176
+ },
177
+ ],
178
+ stateMutability: "nonpayable",
179
+ type: "function",
180
+ },
181
+ {
182
+ inputs: [
183
+ {
184
+ internalType: "address",
185
+ name: "YT",
142
186
  type: "address",
143
187
  },
144
188
  {
145
189
  internalType: "uint256",
146
- name: "netScyIn",
190
+ name: "netPyIn",
147
191
  type: "uint256",
148
192
  },
149
193
  {
@@ -162,7 +206,7 @@ const _abi = [
162
206
  type: "address[]",
163
207
  },
164
208
  ],
165
- name: "redeemScyToRawToken",
209
+ name: "redeemPyToRawToken",
166
210
  outputs: [
167
211
  {
168
212
  internalType: "uint256",
@@ -177,12 +221,12 @@ const _abi = [
177
221
  inputs: [
178
222
  {
179
223
  internalType: "address",
180
- name: "YT",
224
+ name: "SCY",
181
225
  type: "address",
182
226
  },
183
227
  {
184
228
  internalType: "uint256",
185
- name: "netYoIn",
229
+ name: "netScyIn",
186
230
  type: "uint256",
187
231
  },
188
232
  {
@@ -201,7 +245,7 @@ const _abi = [
201
245
  type: "address[]",
202
246
  },
203
247
  ],
204
- name: "redeemYoToRawToken",
248
+ name: "redeemScyToRawToken",
205
249
  outputs: [
206
250
  {
207
251
  internalType: "uint256",
@@ -236,7 +280,7 @@ const _abi = [
236
280
  },
237
281
  {
238
282
  internalType: "uint256",
239
- name: "otOutMin",
283
+ name: "ptOutMin",
240
284
  type: "uint256",
241
285
  },
242
286
  ],
@@ -260,7 +304,7 @@ const _abi = [
260
304
  inputs: [
261
305
  {
262
306
  internalType: "uint256",
263
- name: "exactOtIn",
307
+ name: "exactPtIn",
264
308
  type: "uint256",
265
309
  },
266
310
  {
@@ -284,7 +328,7 @@ const _abi = [
284
328
  type: "uint256",
285
329
  },
286
330
  ],
287
- name: "swapExactOtForRawToken",
331
+ name: "swapExactPtForRawToken",
288
332
  outputs: [
289
333
  {
290
334
  internalType: "uint256",
@@ -309,7 +353,7 @@ const _abi = [
309
353
  },
310
354
  {
311
355
  internalType: "uint256",
312
- name: "exactOtIn",
356
+ name: "exactPtIn",
313
357
  type: "uint256",
314
358
  },
315
359
  {
@@ -318,7 +362,7 @@ const _abi = [
318
362
  type: "uint256",
319
363
  },
320
364
  ],
321
- name: "swapExactOtForScy",
365
+ name: "swapExactPtForScy",
322
366
  outputs: [
323
367
  {
324
368
  internalType: "uint256",
@@ -352,31 +396,43 @@ const _abi = [
352
396
  type: "address",
353
397
  },
354
398
  {
355
- internalType: "uint256",
356
- name: "otOutguessMin",
357
- type: "uint256",
358
- },
359
- {
360
- internalType: "uint256",
361
- name: "otOutguessMax",
362
- type: "uint256",
363
- },
364
- {
365
- internalType: "uint256",
366
- name: "maxIteration",
367
- type: "uint256",
368
- },
369
- {
370
- internalType: "uint256",
371
- name: "eps",
372
- type: "uint256",
373
- },
374
- ],
375
- name: "swapExactRawTokenForOt",
399
+ components: [
400
+ {
401
+ internalType: "uint256",
402
+ name: "guessMin",
403
+ type: "uint256",
404
+ },
405
+ {
406
+ internalType: "uint256",
407
+ name: "guessMax",
408
+ type: "uint256",
409
+ },
410
+ {
411
+ internalType: "uint256",
412
+ name: "guessOffchain",
413
+ type: "uint256",
414
+ },
415
+ {
416
+ internalType: "uint256",
417
+ name: "maxIteration",
418
+ type: "uint256",
419
+ },
420
+ {
421
+ internalType: "uint256",
422
+ name: "eps",
423
+ type: "uint256",
424
+ },
425
+ ],
426
+ internalType: "struct ApproxParams",
427
+ name: "approx",
428
+ type: "tuple",
429
+ },
430
+ ],
431
+ name: "swapExactRawTokenForPt",
376
432
  outputs: [
377
433
  {
378
434
  internalType: "uint256",
379
- name: "netOtOut",
435
+ name: "netPtOut",
380
436
  type: "uint256",
381
437
  },
382
438
  ],
@@ -406,24 +462,36 @@ const _abi = [
406
462
  type: "address",
407
463
  },
408
464
  {
409
- internalType: "uint256",
410
- name: "netYtOutGuessMin",
411
- type: "uint256",
412
- },
413
- {
414
- internalType: "uint256",
415
- name: "netYtOutGuessMax",
416
- type: "uint256",
417
- },
418
- {
419
- internalType: "uint256",
420
- name: "maxIteration",
421
- type: "uint256",
422
- },
423
- {
424
- internalType: "uint256",
425
- name: "eps",
426
- type: "uint256",
465
+ components: [
466
+ {
467
+ internalType: "uint256",
468
+ name: "guessMin",
469
+ type: "uint256",
470
+ },
471
+ {
472
+ internalType: "uint256",
473
+ name: "guessMax",
474
+ type: "uint256",
475
+ },
476
+ {
477
+ internalType: "uint256",
478
+ name: "guessOffchain",
479
+ type: "uint256",
480
+ },
481
+ {
482
+ internalType: "uint256",
483
+ name: "maxIteration",
484
+ type: "uint256",
485
+ },
486
+ {
487
+ internalType: "uint256",
488
+ name: "eps",
489
+ type: "uint256",
490
+ },
491
+ ],
492
+ internalType: "struct ApproxParams",
493
+ name: "approx",
494
+ type: "tuple",
427
495
  },
428
496
  ],
429
497
  name: "swapExactRawTokenForYt",
@@ -455,27 +523,39 @@ const _abi = [
455
523
  type: "uint256",
456
524
  },
457
525
  {
458
- internalType: "uint256",
459
- name: "otOutguessMin",
460
- type: "uint256",
461
- },
462
- {
463
- internalType: "uint256",
464
- name: "otOutguessMax",
465
- type: "uint256",
466
- },
467
- {
468
- internalType: "uint256",
469
- name: "maxIteration",
470
- type: "uint256",
471
- },
472
- {
473
- internalType: "uint256",
474
- name: "eps",
475
- type: "uint256",
476
- },
477
- ],
478
- name: "swapExactScyForOt",
526
+ components: [
527
+ {
528
+ internalType: "uint256",
529
+ name: "guessMin",
530
+ type: "uint256",
531
+ },
532
+ {
533
+ internalType: "uint256",
534
+ name: "guessMax",
535
+ type: "uint256",
536
+ },
537
+ {
538
+ internalType: "uint256",
539
+ name: "guessOffchain",
540
+ type: "uint256",
541
+ },
542
+ {
543
+ internalType: "uint256",
544
+ name: "maxIteration",
545
+ type: "uint256",
546
+ },
547
+ {
548
+ internalType: "uint256",
549
+ name: "eps",
550
+ type: "uint256",
551
+ },
552
+ ],
553
+ internalType: "struct ApproxParams",
554
+ name: "approx",
555
+ type: "tuple",
556
+ },
557
+ ],
558
+ name: "swapExactScyForPt",
479
559
  outputs: [
480
560
  {
481
561
  internalType: "uint256",
@@ -504,24 +584,36 @@ const _abi = [
504
584
  type: "uint256",
505
585
  },
506
586
  {
507
- internalType: "uint256",
508
- name: "netYtOutGuessMin",
509
- type: "uint256",
510
- },
511
- {
512
- internalType: "uint256",
513
- name: "netYtOutGuessMax",
514
- type: "uint256",
515
- },
516
- {
517
- internalType: "uint256",
518
- name: "maxIteration",
519
- type: "uint256",
520
- },
521
- {
522
- internalType: "uint256",
523
- name: "eps",
524
- type: "uint256",
587
+ components: [
588
+ {
589
+ internalType: "uint256",
590
+ name: "guessMin",
591
+ type: "uint256",
592
+ },
593
+ {
594
+ internalType: "uint256",
595
+ name: "guessMax",
596
+ type: "uint256",
597
+ },
598
+ {
599
+ internalType: "uint256",
600
+ name: "guessOffchain",
601
+ type: "uint256",
602
+ },
603
+ {
604
+ internalType: "uint256",
605
+ name: "maxIteration",
606
+ type: "uint256",
607
+ },
608
+ {
609
+ internalType: "uint256",
610
+ name: "eps",
611
+ type: "uint256",
612
+ },
613
+ ],
614
+ internalType: "struct ApproxParams",
615
+ name: "approx",
616
+ type: "tuple",
525
617
  },
526
618
  ],
527
619
  name: "swapExactScyForYt",
@@ -626,27 +718,39 @@ const _abi = [
626
718
  type: "uint256",
627
719
  },
628
720
  {
629
- internalType: "uint256",
630
- name: "otInGuessMin",
631
- type: "uint256",
632
- },
633
- {
634
- internalType: "uint256",
635
- name: "otInGuessMax",
636
- type: "uint256",
637
- },
638
- {
639
- internalType: "uint256",
640
- name: "maxIteration",
641
- type: "uint256",
642
- },
643
- {
644
- internalType: "uint256",
645
- name: "eps",
646
- type: "uint256",
647
- },
648
- ],
649
- name: "swapOtForExactScy",
721
+ components: [
722
+ {
723
+ internalType: "uint256",
724
+ name: "guessMin",
725
+ type: "uint256",
726
+ },
727
+ {
728
+ internalType: "uint256",
729
+ name: "guessMax",
730
+ type: "uint256",
731
+ },
732
+ {
733
+ internalType: "uint256",
734
+ name: "guessOffchain",
735
+ type: "uint256",
736
+ },
737
+ {
738
+ internalType: "uint256",
739
+ name: "maxIteration",
740
+ type: "uint256",
741
+ },
742
+ {
743
+ internalType: "uint256",
744
+ name: "eps",
745
+ type: "uint256",
746
+ },
747
+ ],
748
+ internalType: "struct ApproxParams",
749
+ name: "approx",
750
+ type: "tuple",
751
+ },
752
+ ],
753
+ name: "swapPtForExactScy",
650
754
  outputs: [
651
755
  {
652
756
  internalType: "uint256",
@@ -671,7 +775,7 @@ const _abi = [
671
775
  },
672
776
  {
673
777
  internalType: "uint256",
674
- name: "exactOtOut",
778
+ name: "exactPtOut",
675
779
  type: "uint256",
676
780
  },
677
781
  {
@@ -680,7 +784,7 @@ const _abi = [
680
784
  type: "uint256",
681
785
  },
682
786
  ],
683
- name: "swapScyForExactOt",
787
+ name: "swapScyForExactPt",
684
788
  outputs: [
685
789
  {
686
790
  internalType: "uint256",
@@ -743,24 +847,36 @@ const _abi = [
743
847
  type: "uint256",
744
848
  },
745
849
  {
746
- internalType: "uint256",
747
- name: "netYtInGuessMin",
748
- type: "uint256",
749
- },
750
- {
751
- internalType: "uint256",
752
- name: "netYtInGuessMax",
753
- type: "uint256",
754
- },
755
- {
756
- internalType: "uint256",
757
- name: "maxIteration",
758
- type: "uint256",
759
- },
760
- {
761
- internalType: "uint256",
762
- name: "eps",
763
- type: "uint256",
850
+ components: [
851
+ {
852
+ internalType: "uint256",
853
+ name: "guessMin",
854
+ type: "uint256",
855
+ },
856
+ {
857
+ internalType: "uint256",
858
+ name: "guessMax",
859
+ type: "uint256",
860
+ },
861
+ {
862
+ internalType: "uint256",
863
+ name: "guessOffchain",
864
+ type: "uint256",
865
+ },
866
+ {
867
+ internalType: "uint256",
868
+ name: "maxIteration",
869
+ type: "uint256",
870
+ },
871
+ {
872
+ internalType: "uint256",
873
+ name: "eps",
874
+ type: "uint256",
875
+ },
876
+ ],
877
+ internalType: "struct ApproxParams",
878
+ name: "approx",
879
+ type: "tuple",
764
880
  },
765
881
  ],
766
882
  name: "swapYtForExactScy",
@@ -24,7 +24,7 @@ const _abi = [
24
24
  },
25
25
  {
26
26
  internalType: "uint256",
27
- name: "otOwed",
27
+ name: "ptOwed",
28
28
  type: "uint256",
29
29
  },
30
30
  {
@@ -52,7 +52,7 @@ const _abi = [
52
52
  },
53
53
  {
54
54
  internalType: "uint256",
55
- name: "otToAccount",
55
+ name: "ptToAccount",
56
56
  type: "uint256",
57
57
  },
58
58
  {
@@ -10,6 +10,31 @@ import type {
10
10
  } from "../IPMarketFactory";
11
11
 
12
12
  const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "address",
19
+ name: "PT",
20
+ type: "address",
21
+ },
22
+ {
23
+ indexed: false,
24
+ internalType: "int256",
25
+ name: "scalarRoot",
26
+ type: "int256",
27
+ },
28
+ {
29
+ indexed: false,
30
+ internalType: "int256",
31
+ name: "initialAnchor",
32
+ type: "int256",
33
+ },
34
+ ],
35
+ name: "CreateNewMarket",
36
+ type: "event",
37
+ },
13
38
  {
14
39
  inputs: [
15
40
  {
@@ -40,7 +65,7 @@ const _abi = [
40
65
  },
41
66
  {
42
67
  internalType: "uint96",
43
- name: "feeRateRoot",
68
+ name: "lnFeeRateRoot",
44
69
  type: "uint96",
45
70
  },
46
71
  {
@@ -14,7 +14,7 @@ const _abi = [
14
14
  inputs: [
15
15
  {
16
16
  internalType: "int256",
17
- name: "otToAccount",
17
+ name: "ptToAccount",
18
18
  type: "int256",
19
19
  },
20
20
  {