@pendle/core-v2 0.4.0 → 0.5.1-beta
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/implementations/IRewardManager.sol +16 -0
- package/contracts/SuperComposableYield/implementations/RewardManager.sol +24 -5
- package/contracts/core/PendleMarket.sol +10 -18
- package/contracts/core/PendleMarketFactory.sol +49 -22
- package/contracts/core/PendleRouter.sol +74 -0
- package/contracts/core/PendleYieldToken.sol +20 -12
- package/contracts/core/RouterStatic.sol +234 -0
- package/contracts/core/actions/ActionCallback.sol +101 -0
- package/contracts/core/{router/PendleRouterCoreUpg.sol → actions/ActionCore.sol} +6 -10
- package/contracts/core/{router/PendleRouterYTUpg.sol → actions/ActionYT.sol} +6 -11
- package/contracts/core/{router/base/PendleRouterOTBaseUpg.sol → actions/base/ActionSCYAndOTBase.sol} +1 -5
- package/contracts/core/{router/base/PendleRouterSCYAndForgeBaseUpg.sol → actions/base/ActionSCYAndYOBase.sol} +3 -5
- package/contracts/core/{router/base/PendleRouterYTBaseUpg.sol → actions/base/ActionSCYAndYTBase.sol} +7 -99
- package/contracts/core/actions/base/ActionType.sol +11 -0
- package/contracts/interfaces/{IPRouterCore.sol → IPActionCore.sol} +1 -1
- package/contracts/interfaces/{IPRouterYT.sol → IPActionYT.sol} +1 -3
- package/contracts/interfaces/IPAllAction.sol +9 -0
- package/contracts/interfaces/IPMarketFactory.sol +11 -0
- package/contracts/interfaces/IPRouterStatic.sol +27 -0
- package/contracts/interfaces/IPYieldToken.sol +21 -3
- package/contracts/libraries/math/MarketMathCore.sol +3 -2
- package/package.json +1 -1
- package/typechain-types/{PendleRouterYTBaseUpg.ts → ActionCallback.ts} +5 -5
- package/typechain-types/{PendleRouterCoreUpg.ts → ActionCore.ts} +5 -5
- package/typechain-types/{PendleRouterSCYAndForgeBaseUpg.ts → ActionSCYAndYOBase.ts} +5 -6
- package/typechain-types/{BoringOwnableData.ts → ActionSCYAndYTBase.ts} +21 -24
- package/typechain-types/{PendleRouterStaticUpg.ts → ActionStatic.ts} +5 -5
- package/typechain-types/{IPRouterYT.ts → ActionYT.ts} +27 -42
- package/typechain-types/IPActionAll.ts +1431 -0
- package/typechain-types/{IPRouterCore.ts → IPActionCore.ts} +5 -5
- package/typechain-types/{IPRouterView.ts → IPActionStatic.ts} +57 -5
- package/typechain-types/{PendleRouterYTUpg.ts → IPActionYT.ts} +5 -97
- package/typechain-types/IPAllAction.ts +1431 -0
- package/typechain-types/IPMarket.ts +3 -0
- package/typechain-types/IPMarketFactory.ts +46 -0
- package/typechain-types/IPYieldToken.ts +342 -14
- package/typechain-types/IRewardManager.ts +178 -0
- package/typechain-types/PendleAaveV3SCY.ts +70 -64
- package/typechain-types/PendleBenQiErc20SCY.ts +70 -64
- package/typechain-types/PendleMarket.ts +3 -59
- package/typechain-types/PendleMarketFactory.ts +150 -24
- package/typechain-types/{PendleRouterProxy.ts → PendleRouter.ts} +29 -39
- package/typechain-types/PendleYieldToken.ts +116 -101
- package/typechain-types/RewardManager.ts +48 -42
- package/typechain-types/{PendleRouterViewUpg.ts → RouterStatic.ts} +97 -5
- package/typechain-types/SCYBaseWithRewards.ts +70 -64
- package/typechain-types/factories/ActionCallback__factory.ts +116 -0
- package/typechain-types/factories/ActionCore__factory.ts +632 -0
- package/typechain-types/factories/{PendleRouterSCYAndForgeBaseUpg__factory.ts → ActionSCYAndYOBase__factory.ts} +8 -12
- package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +52 -0
- package/typechain-types/factories/ActionStatic__factory.ts +308 -0
- package/typechain-types/factories/ActionYT__factory.ts +370 -0
- package/typechain-types/factories/IPActionAll__factory.ts +983 -0
- package/typechain-types/factories/{IPRouterCore__factory.ts → IPActionCore__factory.ts} +6 -6
- package/typechain-types/factories/{IPRouterView__factory.ts → IPActionStatic__factory.ts} +38 -6
- package/typechain-types/factories/{IPRouterYT__factory.ts → IPActionYT__factory.ts} +6 -29
- package/typechain-types/factories/IPAllAction__factory.ts +983 -0
- package/typechain-types/factories/IPMarketFactory__factory.ts +28 -0
- package/typechain-types/factories/IPMarket__factory.ts +7 -2
- package/typechain-types/factories/IPYieldToken__factory.ts +158 -1
- package/typechain-types/factories/IRewardManager__factory.ts +92 -0
- package/typechain-types/factories/PendleAaveV3SCY__factory.ts +34 -34
- package/typechain-types/factories/PendleBenQiErc20SCY__factory.ts +34 -34
- package/typechain-types/factories/PendleBtrflyScy__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketFactory__factory.ts +112 -17
- package/typechain-types/factories/PendleMarket__factory.ts +8 -69
- package/typechain-types/factories/PendleRouter__factory.ts +282 -0
- package/typechain-types/factories/PendleYearnVaultScy__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +58 -58
- package/typechain-types/factories/RewardManager__factory.ts +18 -18
- package/typechain-types/factories/RouterStatic__factory.ts +308 -0
- package/typechain-types/factories/SCYBaseWithRewards__factory.ts +33 -33
- package/typechain-types/hardhat.d.ts +93 -75
- package/typechain-types/index.ts +22 -18
- package/contracts/core/router/PendleRouterProxy.sol +0 -84
- package/contracts/core/router/PendleRouterStaticUpg.sol +0 -107
- package/contracts/interfaces/IPFlashCallBack.sol +0 -10
- package/typechain-types/BoringOwnable.ts +0 -194
- package/typechain-types/BoringOwnableUpg.ts +0 -194
- package/typechain-types/BoringOwnableUpgData.ts +0 -100
- package/typechain-types/IPFlashCallback.ts +0 -115
- package/typechain-types/IPermissionsV2.ts +0 -87
- package/typechain-types/PermissionsV2.ts +0 -87
- package/typechain-types/factories/BoringOwnableData__factory.ts +0 -90
- package/typechain-types/factories/BoringOwnableUpgData__factory.ts +0 -94
- package/typechain-types/factories/BoringOwnableUpg__factory.ts +0 -139
- package/typechain-types/factories/BoringOwnable__factory.ts +0 -149
- package/typechain-types/factories/IPFlashCallback__factory.ts +0 -49
- package/typechain-types/factories/IPermissionsV2__factory.ts +0 -39
- package/typechain-types/factories/PendleRouterCoreUpg__factory.ts +0 -635
- package/typechain-types/factories/PendleRouterProxy__factory.ts +0 -285
- package/typechain-types/factories/PendleRouterStaticUpg__factory.ts +0 -315
- package/typechain-types/factories/PendleRouterViewUpg__factory.ts +0 -265
- package/typechain-types/factories/PendleRouterYTBaseUpg__factory.ts +0 -66
- package/typechain-types/factories/PendleRouterYTUpg__factory.ts +0 -422
- package/typechain-types/factories/PermissionsV2__factory.ts +0 -36
|
@@ -19,35 +19,32 @@ import type {
|
|
|
19
19
|
OnEvent,
|
|
20
20
|
} from "./common";
|
|
21
21
|
|
|
22
|
-
export interface
|
|
23
|
-
contractName: "
|
|
22
|
+
export interface ActionSCYAndYTBaseInterface extends utils.Interface {
|
|
23
|
+
contractName: "ActionSCYAndYTBase";
|
|
24
24
|
functions: {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
25
|
+
"joeFactory()": FunctionFragment;
|
|
26
|
+
"joeRouter()": FunctionFragment;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
30
29
|
encodeFunctionData(
|
|
31
|
-
functionFragment: "
|
|
30
|
+
functionFragment: "joeFactory",
|
|
32
31
|
values?: undefined
|
|
33
32
|
): string;
|
|
33
|
+
encodeFunctionData(functionFragment: "joeRouter", values?: undefined): string;
|
|
34
34
|
|
|
35
|
-
decodeFunctionResult(functionFragment: "
|
|
36
|
-
decodeFunctionResult(
|
|
37
|
-
functionFragment: "pendingOwner",
|
|
38
|
-
data: BytesLike
|
|
39
|
-
): Result;
|
|
35
|
+
decodeFunctionResult(functionFragment: "joeFactory", data: BytesLike): Result;
|
|
36
|
+
decodeFunctionResult(functionFragment: "joeRouter", data: BytesLike): Result;
|
|
40
37
|
|
|
41
38
|
events: {};
|
|
42
39
|
}
|
|
43
40
|
|
|
44
|
-
export interface
|
|
45
|
-
contractName: "
|
|
41
|
+
export interface ActionSCYAndYTBase extends BaseContract {
|
|
42
|
+
contractName: "ActionSCYAndYTBase";
|
|
46
43
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
47
44
|
attach(addressOrName: string): this;
|
|
48
45
|
deployed(): Promise<this>;
|
|
49
46
|
|
|
50
|
-
interface:
|
|
47
|
+
interface: ActionSCYAndYTBaseInterface;
|
|
51
48
|
|
|
52
49
|
queryFilter<TEvent extends TypedEvent>(
|
|
53
50
|
event: TypedEventFilter<TEvent>,
|
|
@@ -69,32 +66,32 @@ export interface BoringOwnableData extends BaseContract {
|
|
|
69
66
|
removeListener: OnEvent<this>;
|
|
70
67
|
|
|
71
68
|
functions: {
|
|
72
|
-
|
|
69
|
+
joeFactory(overrides?: CallOverrides): Promise<[string]>;
|
|
73
70
|
|
|
74
|
-
|
|
71
|
+
joeRouter(overrides?: CallOverrides): Promise<[string]>;
|
|
75
72
|
};
|
|
76
73
|
|
|
77
|
-
|
|
74
|
+
joeFactory(overrides?: CallOverrides): Promise<string>;
|
|
78
75
|
|
|
79
|
-
|
|
76
|
+
joeRouter(overrides?: CallOverrides): Promise<string>;
|
|
80
77
|
|
|
81
78
|
callStatic: {
|
|
82
|
-
|
|
79
|
+
joeFactory(overrides?: CallOverrides): Promise<string>;
|
|
83
80
|
|
|
84
|
-
|
|
81
|
+
joeRouter(overrides?: CallOverrides): Promise<string>;
|
|
85
82
|
};
|
|
86
83
|
|
|
87
84
|
filters: {};
|
|
88
85
|
|
|
89
86
|
estimateGas: {
|
|
90
|
-
|
|
87
|
+
joeFactory(overrides?: CallOverrides): Promise<BigNumber>;
|
|
91
88
|
|
|
92
|
-
|
|
89
|
+
joeRouter(overrides?: CallOverrides): Promise<BigNumber>;
|
|
93
90
|
};
|
|
94
91
|
|
|
95
92
|
populateTransaction: {
|
|
96
|
-
|
|
93
|
+
joeFactory(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
97
94
|
|
|
98
|
-
|
|
95
|
+
joeRouter(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
99
96
|
};
|
|
100
97
|
}
|
|
@@ -22,8 +22,8 @@ import type {
|
|
|
22
22
|
OnEvent,
|
|
23
23
|
} from "./common";
|
|
24
24
|
|
|
25
|
-
export interface
|
|
26
|
-
contractName: "
|
|
25
|
+
export interface ActionStaticInterface extends utils.Interface {
|
|
26
|
+
contractName: "ActionStatic";
|
|
27
27
|
functions: {
|
|
28
28
|
"addLiquidityStatic(address,uint256,uint256)": FunctionFragment;
|
|
29
29
|
"getOtImpliedYield(address)": FunctionFragment;
|
|
@@ -107,13 +107,13 @@ export interface PendleRouterStaticUpgInterface extends utils.Interface {
|
|
|
107
107
|
events: {};
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
export interface
|
|
111
|
-
contractName: "
|
|
110
|
+
export interface ActionStatic extends BaseContract {
|
|
111
|
+
contractName: "ActionStatic";
|
|
112
112
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
113
113
|
attach(addressOrName: string): this;
|
|
114
114
|
deployed(): Promise<this>;
|
|
115
115
|
|
|
116
|
-
interface:
|
|
116
|
+
interface: ActionStaticInterface;
|
|
117
117
|
|
|
118
118
|
queryFilter<TEvent extends TypedEvent>(
|
|
119
119
|
event: TypedEventFilter<TEvent>,
|
|
@@ -22,10 +22,11 @@ import type {
|
|
|
22
22
|
OnEvent,
|
|
23
23
|
} from "./common";
|
|
24
24
|
|
|
25
|
-
export interface
|
|
26
|
-
contractName: "
|
|
25
|
+
export interface ActionYTInterface extends utils.Interface {
|
|
26
|
+
contractName: "ActionYT";
|
|
27
27
|
functions: {
|
|
28
|
-
"
|
|
28
|
+
"joeFactory()": FunctionFragment;
|
|
29
|
+
"joeRouter()": FunctionFragment;
|
|
29
30
|
"swapExactRawTokenForYt(uint256,address,address[],address,uint256,uint256,uint256,uint256)": FunctionFragment;
|
|
30
31
|
"swapExactScyForYt(address,address,uint256,uint256,uint256,uint256,uint256)": FunctionFragment;
|
|
31
32
|
"swapExactYtForRawToken(uint256,address,address[],address,uint256)": FunctionFragment;
|
|
@@ -35,9 +36,10 @@ export interface IPRouterYTInterface extends utils.Interface {
|
|
|
35
36
|
};
|
|
36
37
|
|
|
37
38
|
encodeFunctionData(
|
|
38
|
-
functionFragment: "
|
|
39
|
-
values
|
|
39
|
+
functionFragment: "joeFactory",
|
|
40
|
+
values?: undefined
|
|
40
41
|
): string;
|
|
42
|
+
encodeFunctionData(functionFragment: "joeRouter", values?: undefined): string;
|
|
41
43
|
encodeFunctionData(
|
|
42
44
|
functionFragment: "swapExactRawTokenForYt",
|
|
43
45
|
values: [
|
|
@@ -88,10 +90,8 @@ export interface IPRouterYTInterface extends utils.Interface {
|
|
|
88
90
|
]
|
|
89
91
|
): string;
|
|
90
92
|
|
|
91
|
-
decodeFunctionResult(
|
|
92
|
-
|
|
93
|
-
data: BytesLike
|
|
94
|
-
): Result;
|
|
93
|
+
decodeFunctionResult(functionFragment: "joeFactory", data: BytesLike): Result;
|
|
94
|
+
decodeFunctionResult(functionFragment: "joeRouter", data: BytesLike): Result;
|
|
95
95
|
decodeFunctionResult(
|
|
96
96
|
functionFragment: "swapExactRawTokenForYt",
|
|
97
97
|
data: BytesLike
|
|
@@ -120,13 +120,13 @@ export interface IPRouterYTInterface extends utils.Interface {
|
|
|
120
120
|
events: {};
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
export interface
|
|
124
|
-
contractName: "
|
|
123
|
+
export interface ActionYT extends BaseContract {
|
|
124
|
+
contractName: "ActionYT";
|
|
125
125
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
126
126
|
attach(addressOrName: string): this;
|
|
127
127
|
deployed(): Promise<this>;
|
|
128
128
|
|
|
129
|
-
interface:
|
|
129
|
+
interface: ActionYTInterface;
|
|
130
130
|
|
|
131
131
|
queryFilter<TEvent extends TypedEvent>(
|
|
132
132
|
event: TypedEventFilter<TEvent>,
|
|
@@ -148,12 +148,9 @@ export interface IPRouterYT extends BaseContract {
|
|
|
148
148
|
removeListener: OnEvent<this>;
|
|
149
149
|
|
|
150
150
|
functions: {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
data: BytesLike,
|
|
155
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
156
|
-
): Promise<ContractTransaction>;
|
|
151
|
+
joeFactory(overrides?: CallOverrides): Promise<[string]>;
|
|
152
|
+
|
|
153
|
+
joeRouter(overrides?: CallOverrides): Promise<[string]>;
|
|
157
154
|
|
|
158
155
|
swapExactRawTokenForYt(
|
|
159
156
|
exactRawTokenIn: BigNumberish,
|
|
@@ -215,12 +212,9 @@ export interface IPRouterYT extends BaseContract {
|
|
|
215
212
|
): Promise<ContractTransaction>;
|
|
216
213
|
};
|
|
217
214
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
data: BytesLike,
|
|
222
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
223
|
-
): Promise<ContractTransaction>;
|
|
215
|
+
joeFactory(overrides?: CallOverrides): Promise<string>;
|
|
216
|
+
|
|
217
|
+
joeRouter(overrides?: CallOverrides): Promise<string>;
|
|
224
218
|
|
|
225
219
|
swapExactRawTokenForYt(
|
|
226
220
|
exactRawTokenIn: BigNumberish,
|
|
@@ -282,12 +276,9 @@ export interface IPRouterYT extends BaseContract {
|
|
|
282
276
|
): Promise<ContractTransaction>;
|
|
283
277
|
|
|
284
278
|
callStatic: {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
data: BytesLike,
|
|
289
|
-
overrides?: CallOverrides
|
|
290
|
-
): Promise<void>;
|
|
279
|
+
joeFactory(overrides?: CallOverrides): Promise<string>;
|
|
280
|
+
|
|
281
|
+
joeRouter(overrides?: CallOverrides): Promise<string>;
|
|
291
282
|
|
|
292
283
|
swapExactRawTokenForYt(
|
|
293
284
|
exactRawTokenIn: BigNumberish,
|
|
@@ -352,12 +343,9 @@ export interface IPRouterYT extends BaseContract {
|
|
|
352
343
|
filters: {};
|
|
353
344
|
|
|
354
345
|
estimateGas: {
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
data: BytesLike,
|
|
359
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
360
|
-
): Promise<BigNumber>;
|
|
346
|
+
joeFactory(overrides?: CallOverrides): Promise<BigNumber>;
|
|
347
|
+
|
|
348
|
+
joeRouter(overrides?: CallOverrides): Promise<BigNumber>;
|
|
361
349
|
|
|
362
350
|
swapExactRawTokenForYt(
|
|
363
351
|
exactRawTokenIn: BigNumberish,
|
|
@@ -420,12 +408,9 @@ export interface IPRouterYT extends BaseContract {
|
|
|
420
408
|
};
|
|
421
409
|
|
|
422
410
|
populateTransaction: {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
data: BytesLike,
|
|
427
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
428
|
-
): Promise<PopulatedTransaction>;
|
|
411
|
+
joeFactory(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
412
|
+
|
|
413
|
+
joeRouter(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
429
414
|
|
|
430
415
|
swapExactRawTokenForYt(
|
|
431
416
|
exactRawTokenIn: BigNumberish,
|