@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.
- package/contracts/SuperComposableYield/ISuperComposableYield.sol +2 -0
- package/contracts/SuperComposableYield/implementations/RewardManager.sol +35 -20
- package/contracts/SuperComposableYield/implementations/SCYBase.sol +39 -19
- package/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol +26 -14
- package/contracts/core/PendleBaseToken.sol +2 -2
- package/contracts/core/PendleMarket.sol +145 -61
- package/contracts/core/PendleMarketFactory.sol +30 -19
- package/contracts/core/{PendleOwnershipToken.sol → PendlePrincipalToken.sol} +14 -2
- package/contracts/core/PendleRouter.sol +23 -9
- package/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol +21 -20
- package/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol +22 -16
- package/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol +13 -13
- package/contracts/core/PendleSCYImpl/PendleStETHSCY.sol +107 -0
- package/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol +14 -15
- package/contracts/core/PendleYieldContractFactory.sol +29 -14
- package/contracts/core/PendleYieldToken.sol +130 -76
- package/contracts/core/RouterStatic.sol +16 -157
- package/contracts/core/actions/ActionCallback.sol +36 -18
- package/contracts/core/actions/ActionCore.sol +41 -88
- package/contracts/core/actions/ActionRedeem.sol +36 -0
- package/contracts/core/actions/ActionYT.sol +41 -59
- package/contracts/core/actions/base/{ActionSCYAndOTBase.sol → ActionSCYAndPTBase.sol} +59 -45
- package/contracts/core/actions/base/{ActionSCYAndYOBase.sol → ActionSCYAndPYBase.sol} +57 -19
- package/contracts/core/actions/base/ActionSCYAndYTBase.sol +31 -21
- package/contracts/interfaces/IPActionCore.sol +21 -28
- package/contracts/interfaces/IPActionRedeem.sol +17 -0
- package/contracts/interfaces/IPActionYT.sol +5 -12
- package/contracts/interfaces/IPAllAction.sol +2 -2
- package/contracts/interfaces/IPMarket.sol +33 -10
- package/contracts/interfaces/IPMarketAddRemoveCallback.sol +2 -2
- package/contracts/interfaces/IPMarketFactory.sol +3 -1
- package/contracts/interfaces/IPMarketSwapCallback.sol +1 -1
- package/contracts/interfaces/{IPOwnershipToken.sol → IPPrincipalToken.sol} +1 -1
- package/contracts/interfaces/IPRouterStatic.sol +7 -82
- package/contracts/interfaces/IPYieldContractFactory.sol +10 -2
- package/contracts/interfaces/IPYieldToken.sol +14 -5
- package/contracts/interfaces/IWstETH.sol +10 -0
- package/contracts/libraries/JoeLibrary.sol +1 -1
- package/contracts/libraries/math/LogExpMath.sol +1 -1
- package/contracts/libraries/math/MarketApproxLib.sol +128 -88
- package/contracts/libraries/math/MarketMathAux.sol +13 -13
- package/contracts/libraries/math/MarketMathCore.sol +62 -93
- package/contracts/libraries/math/Math.sol +14 -2
- package/contracts/periphery/PendleGovernanceManager.sol +5 -3
- package/package.json +3 -2
- package/typechain-types/ActionCallback.ts +5 -5
- package/typechain-types/ActionCore.ts +312 -234
- package/typechain-types/ActionRedeem.ts +125 -0
- package/typechain-types/ActionSCYAndPYBase.ts +223 -0
- package/typechain-types/ActionSCYAndYOBase.ts +129 -3
- package/typechain-types/ActionSCYAndYTBase.ts +149 -3
- package/typechain-types/ActionYT.ts +192 -94
- package/typechain-types/IPActionCore.ts +183 -231
- package/typechain-types/IPActionRedeem.ts +125 -0
- package/typechain-types/IPActionYT.ts +43 -91
- package/typechain-types/IPAllAction.ts +258 -321
- package/typechain-types/IPMarket.ts +150 -50
- package/typechain-types/IPMarketAddRemoveCallback.ts +10 -10
- package/typechain-types/IPMarketFactory.ts +28 -6
- package/typechain-types/IPMarketSwapCallback.ts +5 -5
- package/typechain-types/{IPOwnershipToken.ts → IPPrincipalToken.ts} +5 -5
- package/typechain-types/IPRouterStatic.ts +50 -530
- package/typechain-types/IPYieldContractFactory.ts +85 -19
- package/typechain-types/IPYieldToken.ts +138 -37
- package/typechain-types/ISuperComposableYield.ts +13 -0
- package/typechain-types/IWstETH.ts +149 -0
- package/typechain-types/PendleAaveV3SCY.ts +110 -0
- package/typechain-types/PendleBaseToken.ts +1 -1
- package/typechain-types/PendleBenQiErc20SCY.ts +55 -12
- package/typechain-types/PendleBtrflyScy.ts +27 -23
- package/typechain-types/PendleGovernanceManager.ts +5 -5
- package/typechain-types/PendleMarket.ts +197 -100
- package/typechain-types/PendleMarketFactory.ts +96 -34
- package/typechain-types/{PendleOwnershipToken.ts → PendlePrincipalToken.ts} +15 -6
- package/typechain-types/PendleRouter.ts +19 -0
- package/typechain-types/PendleRouterRedeemUpg.ts +125 -0
- package/typechain-types/PendleStEthSCY.ts +872 -0
- package/typechain-types/PendleYearnVaultScy.ts +27 -23
- package/typechain-types/PendleYieldContractFactory.ts +94 -28
- package/typechain-types/PendleYieldToken.ts +142 -57
- package/typechain-types/RewardManager.ts +21 -0
- package/typechain-types/RouterStatic.ts +50 -530
- package/typechain-types/SCYBase.ts +25 -0
- package/typechain-types/SCYBaseWithRewards.ts +64 -0
- package/typechain-types/factories/ActionCallback__factory.ts +2 -2
- package/typechain-types/factories/ActionCore__factory.ts +263 -79
- package/typechain-types/factories/ActionRedeem__factory.ts +105 -0
- package/typechain-types/factories/ActionSCYAndPYBase__factory.ts +200 -0
- package/typechain-types/factories/ActionSCYAndYOBase__factory.ts +148 -0
- package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +173 -0
- package/typechain-types/factories/ActionYT__factory.ts +265 -56
- package/typechain-types/factories/IPActionCore__factory.ts +114 -78
- package/typechain-types/factories/IPActionRedeem__factory.ts +70 -0
- package/typechain-types/factories/IPActionYT__factory.ts +90 -54
- package/typechain-types/factories/IPAllAction__factory.ts +254 -138
- package/typechain-types/factories/IPMarketAddRemoveCallback__factory.ts +2 -2
- package/typechain-types/factories/IPMarketFactory__factory.ts +26 -1
- package/typechain-types/factories/IPMarketSwapCallback__factory.ts +1 -1
- package/typechain-types/factories/IPMarket__factory.ts +125 -13
- package/typechain-types/factories/{IPOwnershipToken__factory.ts → IPPrincipalToken__factory.ts} +8 -8
- package/typechain-types/factories/IPRouterStatic__factory.ts +12 -628
- package/typechain-types/factories/IPYieldContractFactory__factory.ts +72 -2
- package/typechain-types/factories/IPYieldToken__factory.ts +93 -7
- package/typechain-types/factories/ISuperComposableYield__factory.ts +13 -0
- package/typechain-types/factories/IWstETH__factory.ts +74 -0
- package/typechain-types/factories/PendleAaveV3SCY__factory.ts +97 -3
- package/typechain-types/factories/PendleBaseToken__factory.ts +1 -1
- package/typechain-types/factories/PendleBenQiErc20SCY__factory.ts +62 -7
- package/typechain-types/factories/PendleBtrflyScy__factory.ts +42 -19
- package/typechain-types/factories/PendleGovernanceManager__factory.ts +2 -2
- package/typechain-types/factories/PendleMarketFactory__factory.ts +66 -15
- package/typechain-types/factories/PendleMarket__factory.ts +170 -53
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +540 -0
- package/typechain-types/factories/PendleRouterRedeemUpg__factory.ts +112 -0
- package/typechain-types/factories/PendleRouter__factory.ts +23 -1
- package/typechain-types/factories/PendleStEthSCY__factory.ts +716 -0
- package/typechain-types/factories/PendleYearnVaultScy__factory.ts +41 -18
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +75 -5
- package/typechain-types/factories/PendleYieldToken__factory.ts +102 -33
- package/typechain-types/factories/RewardManager__factory.ts +13 -0
- package/typechain-types/factories/RouterStatic__factory.ts +13 -629
- package/typechain-types/factories/SCYBaseWithRewards__factory.ts +60 -2
- package/typechain-types/factories/SCYBase__factory.ts +28 -2
- package/typechain-types/hardhat.d.ts +52 -16
- package/typechain-types/index.ts +14 -6
- 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: "
|
|
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: "
|
|
68
|
+
name: "YT",
|
|
69
69
|
type: "address",
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
internalType: "uint256",
|
|
73
|
-
name: "
|
|
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: "
|
|
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: "
|
|
107
|
+
name: "SCY",
|
|
108
108
|
type: "address",
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
internalType: "uint256",
|
|
112
|
-
name: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
224
|
+
name: "SCY",
|
|
181
225
|
type: "address",
|
|
182
226
|
},
|
|
183
227
|
{
|
|
184
228
|
internalType: "uint256",
|
|
185
|
-
name: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
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: "
|
|
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
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
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
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
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
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
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
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
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: "
|
|
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: "
|
|
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
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
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: "
|
|
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: "
|
|
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: "
|
|
68
|
+
name: "lnFeeRateRoot",
|
|
44
69
|
type: "uint96",
|
|
45
70
|
},
|
|
46
71
|
{
|