@pendle/core-v2 4.5.0 → 4.5.1

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 (38) hide show
  1. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol/PendleERC20WithSupplyCapSY.dbg.json +1 -1
  2. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol/PendleERC20WithSupplyCapSY.json +2 -2
  3. package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol/PendleSwellRswETHStakingSY.dbg.json +4 -0
  4. package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol/PendleSwellRswETHStakingSY.json +1049 -0
  5. package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellStakingERC20SY.sol/PendleSwellStakingERC20SY.dbg.json +4 -0
  6. package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellStakingERC20SY.sol/PendleSwellStakingERC20SY.json +1039 -0
  7. package/build/artifacts/contracts/interfaces/Swell/ISwellSimpleStakingERC20.sol/ISwellSimpleStakingERC20.dbg.json +4 -0
  8. package/build/artifacts/contracts/interfaces/Swell/ISwellSimpleStakingERC20.sol/ISwellSimpleStakingERC20.json +207 -0
  9. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  10. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  11. package/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol +6 -1
  12. package/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol +57 -0
  13. package/contracts/core/StandardizedYield/implementations/Swell/PendleSwellStakingERC20SY.sol +111 -0
  14. package/contracts/interfaces/Swell/ISwellSimpleStakingERC20.sol +66 -0
  15. package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +12 -4
  16. package/deployments/1-markets/EZETH-MAINNET-SEP2024.json +11 -0
  17. package/deployments/1-markets/RSWETH-SWELL-STAKING-MAINNET-JUL2024.json +11 -0
  18. package/deployments/1-markets/WEETH-MAINNET-SEP2024.json +11 -0
  19. package/deployments/42161-markets/EZETH-ARB-SEP2024.json +11 -0
  20. package/deployments/42161-markets/SILO-PTEETH-ARBITRUM-JUNE2024.json +11 -0
  21. package/deployments/42161-markets/SILO-PTEZETH-ARBITRUM-JUNE2024.json +11 -0
  22. package/deployments/42161-markets/WEETH-ARB-SEP2024.json +11 -0
  23. package/deployments/56-markets/WEETH-BSC-SEP2024.json +11 -0
  24. package/deployments/merkle-distribution/2024-04-25.json +14930 -0
  25. package/package.json +1 -1
  26. package/typechain-types/ISwellSimpleStakingERC20.ts +289 -0
  27. package/typechain-types/PendleSwellRswETHStakingSY.ts +1325 -0
  28. package/typechain-types/PendleSwellStakingERC20SY.ts +1299 -0
  29. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  30. package/typechain-types/factories/ISwellSimpleStakingERC20__factory.ts +226 -0
  31. package/typechain-types/factories/PendleERC20WithSupplyCapSY__factory.ts +1 -1
  32. package/typechain-types/factories/PendleSwellRswETHStakingSY__factory.ts +1106 -0
  33. package/typechain-types/factories/PendleSwellStakingERC20SY__factory.ts +1112 -0
  34. package/typechain-types/hardhat.d.ts +27 -0
  35. package/typechain-types/index.ts +6 -0
  36. /package/deployments/1-markets/{EZETH-JUNE2024.json → EZETH-APR2024.json} +0 -0
  37. /package/deployments/42161-markets/{RSETH-MAY2024.json → RSETH-JUNE2024.json} +0 -0
  38. /package/deployments/42161-markets/{WEETH-MAY2024.json → WEETH-JUNE2024.json} +0 -0
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@pendle/core-v2",
3
3
  "description": "Core smart contracts of Pendle Protocol.",
4
4
  "license": "BUSL-1.1",
5
- "version": "4.5.0",
5
+ "version": "4.5.1",
6
6
  "homepage": "https://pendle.finance",
7
7
  "keywords": [
8
8
  "pendle",
@@ -0,0 +1,289 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ BytesLike,
9
+ CallOverrides,
10
+ ContractTransaction,
11
+ Overrides,
12
+ PopulatedTransaction,
13
+ Signer,
14
+ utils,
15
+ } from "ethers";
16
+ import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
17
+ import { Listener, Provider } from "@ethersproject/providers";
18
+ import type {
19
+ TypedEventFilter,
20
+ TypedEvent,
21
+ TypedListener,
22
+ OnEvent,
23
+ } from "./common";
24
+
25
+ export declare namespace ISwellSimpleStakingERC20 {
26
+ export type SupportedStruct = { deposit: boolean; withdraw: boolean };
27
+
28
+ export type SupportedStructOutput = [boolean, boolean] & {
29
+ deposit: boolean;
30
+ withdraw: boolean;
31
+ };
32
+ }
33
+
34
+ export interface ISwellSimpleStakingERC20Interface extends utils.Interface {
35
+ contractName: "ISwellSimpleStakingERC20";
36
+ functions: {
37
+ "deposit(address,uint256,address)": FunctionFragment;
38
+ "rescueERC20(address)": FunctionFragment;
39
+ "supportToken(address,(bool,bool))": FunctionFragment;
40
+ "withdraw(address,uint256,address)": FunctionFragment;
41
+ };
42
+
43
+ encodeFunctionData(
44
+ functionFragment: "deposit",
45
+ values: [string, BigNumberish, string]
46
+ ): string;
47
+ encodeFunctionData(functionFragment: "rescueERC20", values: [string]): string;
48
+ encodeFunctionData(
49
+ functionFragment: "supportToken",
50
+ values: [string, ISwellSimpleStakingERC20.SupportedStruct]
51
+ ): string;
52
+ encodeFunctionData(
53
+ functionFragment: "withdraw",
54
+ values: [string, BigNumberish, string]
55
+ ): string;
56
+
57
+ decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
58
+ decodeFunctionResult(
59
+ functionFragment: "rescueERC20",
60
+ data: BytesLike
61
+ ): Result;
62
+ decodeFunctionResult(
63
+ functionFragment: "supportToken",
64
+ data: BytesLike
65
+ ): Result;
66
+ decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
67
+
68
+ events: {
69
+ "Deposit(address,address,uint256)": EventFragment;
70
+ "SupportedToken(address,tuple)": EventFragment;
71
+ "Withdraw(address,address,uint256)": EventFragment;
72
+ };
73
+
74
+ getEvent(nameOrSignatureOrTopic: "Deposit"): EventFragment;
75
+ getEvent(nameOrSignatureOrTopic: "SupportedToken"): EventFragment;
76
+ getEvent(nameOrSignatureOrTopic: "Withdraw"): EventFragment;
77
+ }
78
+
79
+ export type DepositEvent = TypedEvent<
80
+ [string, string, BigNumber],
81
+ { token: string; staker: string; amount: BigNumber }
82
+ >;
83
+
84
+ export type DepositEventFilter = TypedEventFilter<DepositEvent>;
85
+
86
+ export type SupportedTokenEvent = TypedEvent<
87
+ [string, ISwellSimpleStakingERC20.SupportedStructOutput],
88
+ { token: string; supported: ISwellSimpleStakingERC20.SupportedStructOutput }
89
+ >;
90
+
91
+ export type SupportedTokenEventFilter = TypedEventFilter<SupportedTokenEvent>;
92
+
93
+ export type WithdrawEvent = TypedEvent<
94
+ [string, string, BigNumber],
95
+ { token: string; staker: string; amount: BigNumber }
96
+ >;
97
+
98
+ export type WithdrawEventFilter = TypedEventFilter<WithdrawEvent>;
99
+
100
+ export interface ISwellSimpleStakingERC20 extends BaseContract {
101
+ contractName: "ISwellSimpleStakingERC20";
102
+ connect(signerOrProvider: Signer | Provider | string): this;
103
+ attach(addressOrName: string): this;
104
+ deployed(): Promise<this>;
105
+
106
+ interface: ISwellSimpleStakingERC20Interface;
107
+
108
+ queryFilter<TEvent extends TypedEvent>(
109
+ event: TypedEventFilter<TEvent>,
110
+ fromBlockOrBlockhash?: string | number | undefined,
111
+ toBlock?: string | number | undefined
112
+ ): Promise<Array<TEvent>>;
113
+
114
+ listeners<TEvent extends TypedEvent>(
115
+ eventFilter?: TypedEventFilter<TEvent>
116
+ ): Array<TypedListener<TEvent>>;
117
+ listeners(eventName?: string): Array<Listener>;
118
+ removeAllListeners<TEvent extends TypedEvent>(
119
+ eventFilter: TypedEventFilter<TEvent>
120
+ ): this;
121
+ removeAllListeners(eventName?: string): this;
122
+ off: OnEvent<this>;
123
+ on: OnEvent<this>;
124
+ once: OnEvent<this>;
125
+ removeListener: OnEvent<this>;
126
+
127
+ functions: {
128
+ deposit(
129
+ _token: string,
130
+ _amount: BigNumberish,
131
+ _receiver: string,
132
+ overrides?: Overrides & { from?: string | Promise<string> }
133
+ ): Promise<ContractTransaction>;
134
+
135
+ rescueERC20(
136
+ _token: string,
137
+ overrides?: Overrides & { from?: string | Promise<string> }
138
+ ): Promise<ContractTransaction>;
139
+
140
+ supportToken(
141
+ _token: string,
142
+ _supported: ISwellSimpleStakingERC20.SupportedStruct,
143
+ overrides?: Overrides & { from?: string | Promise<string> }
144
+ ): Promise<ContractTransaction>;
145
+
146
+ withdraw(
147
+ _token: string,
148
+ _amount: BigNumberish,
149
+ _receiver: string,
150
+ overrides?: Overrides & { from?: string | Promise<string> }
151
+ ): Promise<ContractTransaction>;
152
+ };
153
+
154
+ deposit(
155
+ _token: string,
156
+ _amount: BigNumberish,
157
+ _receiver: string,
158
+ overrides?: Overrides & { from?: string | Promise<string> }
159
+ ): Promise<ContractTransaction>;
160
+
161
+ rescueERC20(
162
+ _token: string,
163
+ overrides?: Overrides & { from?: string | Promise<string> }
164
+ ): Promise<ContractTransaction>;
165
+
166
+ supportToken(
167
+ _token: string,
168
+ _supported: ISwellSimpleStakingERC20.SupportedStruct,
169
+ overrides?: Overrides & { from?: string | Promise<string> }
170
+ ): Promise<ContractTransaction>;
171
+
172
+ withdraw(
173
+ _token: string,
174
+ _amount: BigNumberish,
175
+ _receiver: string,
176
+ overrides?: Overrides & { from?: string | Promise<string> }
177
+ ): Promise<ContractTransaction>;
178
+
179
+ callStatic: {
180
+ deposit(
181
+ _token: string,
182
+ _amount: BigNumberish,
183
+ _receiver: string,
184
+ overrides?: CallOverrides
185
+ ): Promise<void>;
186
+
187
+ rescueERC20(_token: string, overrides?: CallOverrides): Promise<void>;
188
+
189
+ supportToken(
190
+ _token: string,
191
+ _supported: ISwellSimpleStakingERC20.SupportedStruct,
192
+ overrides?: CallOverrides
193
+ ): Promise<void>;
194
+
195
+ withdraw(
196
+ _token: string,
197
+ _amount: BigNumberish,
198
+ _receiver: string,
199
+ overrides?: CallOverrides
200
+ ): Promise<void>;
201
+ };
202
+
203
+ filters: {
204
+ "Deposit(address,address,uint256)"(
205
+ token?: string | null,
206
+ staker?: string | null,
207
+ amount?: null
208
+ ): DepositEventFilter;
209
+ Deposit(
210
+ token?: string | null,
211
+ staker?: string | null,
212
+ amount?: null
213
+ ): DepositEventFilter;
214
+
215
+ "SupportedToken(address,tuple)"(
216
+ token?: string | null,
217
+ supported?: null
218
+ ): SupportedTokenEventFilter;
219
+ SupportedToken(
220
+ token?: string | null,
221
+ supported?: null
222
+ ): SupportedTokenEventFilter;
223
+
224
+ "Withdraw(address,address,uint256)"(
225
+ token?: string | null,
226
+ staker?: string | null,
227
+ amount?: null
228
+ ): WithdrawEventFilter;
229
+ Withdraw(
230
+ token?: string | null,
231
+ staker?: string | null,
232
+ amount?: null
233
+ ): WithdrawEventFilter;
234
+ };
235
+
236
+ estimateGas: {
237
+ deposit(
238
+ _token: string,
239
+ _amount: BigNumberish,
240
+ _receiver: string,
241
+ overrides?: Overrides & { from?: string | Promise<string> }
242
+ ): Promise<BigNumber>;
243
+
244
+ rescueERC20(
245
+ _token: string,
246
+ overrides?: Overrides & { from?: string | Promise<string> }
247
+ ): Promise<BigNumber>;
248
+
249
+ supportToken(
250
+ _token: string,
251
+ _supported: ISwellSimpleStakingERC20.SupportedStruct,
252
+ overrides?: Overrides & { from?: string | Promise<string> }
253
+ ): Promise<BigNumber>;
254
+
255
+ withdraw(
256
+ _token: string,
257
+ _amount: BigNumberish,
258
+ _receiver: string,
259
+ overrides?: Overrides & { from?: string | Promise<string> }
260
+ ): Promise<BigNumber>;
261
+ };
262
+
263
+ populateTransaction: {
264
+ deposit(
265
+ _token: string,
266
+ _amount: BigNumberish,
267
+ _receiver: string,
268
+ overrides?: Overrides & { from?: string | Promise<string> }
269
+ ): Promise<PopulatedTransaction>;
270
+
271
+ rescueERC20(
272
+ _token: string,
273
+ overrides?: Overrides & { from?: string | Promise<string> }
274
+ ): Promise<PopulatedTransaction>;
275
+
276
+ supportToken(
277
+ _token: string,
278
+ _supported: ISwellSimpleStakingERC20.SupportedStruct,
279
+ overrides?: Overrides & { from?: string | Promise<string> }
280
+ ): Promise<PopulatedTransaction>;
281
+
282
+ withdraw(
283
+ _token: string,
284
+ _amount: BigNumberish,
285
+ _receiver: string,
286
+ overrides?: Overrides & { from?: string | Promise<string> }
287
+ ): Promise<PopulatedTransaction>;
288
+ };
289
+ }