@pendle/core-v2 5.8.3 → 5.8.4-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.
@@ -28,7 +28,7 @@
28
28
  "ActionStorageV4": "0xdED51dca2ECED7a0BAab3D9711A87f214769Da0f"
29
29
  },
30
30
  "routerStatic": "0x6813d43782395A1F2AAb42f39aeEDE03ac655e09",
31
- "pendleSwap": "0xd4e9B0d466789d7F6201442eecCBA6a75A552db0",
31
+ "pendleSwap": "0xFE6228A3866426e96611ED7A3D0Dee918244fcB3",
32
32
  "pyYtLpOracle": "0x9a9fa8338dd5e5b2188006f1cd2ef26d921650c2",
33
33
  "yieldContractFactoryV5": "0x2bEa6BfD8fbFF45aA2a893EB3B6d85D10EFcC70E",
34
34
  "marketFactoryV5": "0x8A09574b0401A856d89d1b583eE22E8cb0C5530B",
@@ -28,7 +28,7 @@
28
28
  "ActionStorageV4": "0x6a0Ed0A9193FCBe7ae9B0F3D90F88e365Cca64fC"
29
29
  },
30
30
  "routerStatic": "0xB4205a645c7e920BD8504181B1D7f2c5C955C3e7",
31
- "pendleSwap": "0xd4e9B0d466789d7F6201442eecCBA6a75A552db0",
31
+ "pendleSwap": "0xFE6228A3866426e96611ED7A3D0Dee918244fcB3",
32
32
  "pyYtLpOracle": "0x9a9fa8338dd5e5b2188006f1cd2ef26d921650c2",
33
33
  "yieldContractFactoryV5": "0x963ddBB35c1AE44e2a159E3b5fb5177E0B32660d",
34
34
  "marketFactoryV5": "0x59968008a703dC13E6beaECed644bdCe4ee45d13",
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": "5.8.3",
5
+ "version": "5.8.4-beta",
6
6
  "homepage": "https://pendle.finance",
7
7
  "keywords": [
8
8
  "pendle",
@@ -8,6 +8,7 @@ import {
8
8
  BytesLike,
9
9
  CallOverrides,
10
10
  ContractTransaction,
11
+ Overrides,
11
12
  PayableOverrides,
12
13
  PopulatedTransaction,
13
14
  Signer,
@@ -39,23 +40,113 @@ export type SwapDataStructOutput = [number, string, string, boolean] & {
39
40
  export interface PendleSwapInterface extends utils.Interface {
40
41
  contractName: "PendleSwap";
41
42
  functions: {
43
+ "claimOwnership()": FunctionFragment;
44
+ "initialize()": FunctionFragment;
45
+ "owner()": FunctionFragment;
46
+ "pendingOwner()": FunctionFragment;
47
+ "proxiableUUID()": FunctionFragment;
42
48
  "swap(address,uint256,(uint8,address,bytes,bool))": FunctionFragment;
49
+ "transferOwnership(address,bool,bool)": FunctionFragment;
50
+ "upgradeTo(address)": FunctionFragment;
51
+ "upgradeToAndCall(address,bytes)": FunctionFragment;
43
52
  };
44
53
 
54
+ encodeFunctionData(
55
+ functionFragment: "claimOwnership",
56
+ values?: undefined
57
+ ): string;
58
+ encodeFunctionData(
59
+ functionFragment: "initialize",
60
+ values?: undefined
61
+ ): string;
62
+ encodeFunctionData(functionFragment: "owner", values?: undefined): string;
63
+ encodeFunctionData(
64
+ functionFragment: "pendingOwner",
65
+ values?: undefined
66
+ ): string;
67
+ encodeFunctionData(
68
+ functionFragment: "proxiableUUID",
69
+ values?: undefined
70
+ ): string;
45
71
  encodeFunctionData(
46
72
  functionFragment: "swap",
47
73
  values: [string, BigNumberish, SwapDataStruct]
48
74
  ): string;
75
+ encodeFunctionData(
76
+ functionFragment: "transferOwnership",
77
+ values: [string, boolean, boolean]
78
+ ): string;
79
+ encodeFunctionData(functionFragment: "upgradeTo", values: [string]): string;
80
+ encodeFunctionData(
81
+ functionFragment: "upgradeToAndCall",
82
+ values: [string, BytesLike]
83
+ ): string;
49
84
 
85
+ decodeFunctionResult(
86
+ functionFragment: "claimOwnership",
87
+ data: BytesLike
88
+ ): Result;
89
+ decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
90
+ decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
91
+ decodeFunctionResult(
92
+ functionFragment: "pendingOwner",
93
+ data: BytesLike
94
+ ): Result;
95
+ decodeFunctionResult(
96
+ functionFragment: "proxiableUUID",
97
+ data: BytesLike
98
+ ): Result;
50
99
  decodeFunctionResult(functionFragment: "swap", data: BytesLike): Result;
100
+ decodeFunctionResult(
101
+ functionFragment: "transferOwnership",
102
+ data: BytesLike
103
+ ): Result;
104
+ decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result;
105
+ decodeFunctionResult(
106
+ functionFragment: "upgradeToAndCall",
107
+ data: BytesLike
108
+ ): Result;
51
109
 
52
110
  events: {
111
+ "AdminChanged(address,address)": EventFragment;
112
+ "BeaconUpgraded(address)": EventFragment;
113
+ "Initialized(uint8)": EventFragment;
114
+ "OwnershipTransferred(address,address)": EventFragment;
53
115
  "SwapSingle(uint8,address,uint256)": EventFragment;
116
+ "Upgraded(address)": EventFragment;
54
117
  };
55
118
 
119
+ getEvent(nameOrSignatureOrTopic: "AdminChanged"): EventFragment;
120
+ getEvent(nameOrSignatureOrTopic: "BeaconUpgraded"): EventFragment;
121
+ getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
122
+ getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
56
123
  getEvent(nameOrSignatureOrTopic: "SwapSingle"): EventFragment;
124
+ getEvent(nameOrSignatureOrTopic: "Upgraded"): EventFragment;
57
125
  }
58
126
 
127
+ export type AdminChangedEvent = TypedEvent<
128
+ [string, string],
129
+ { previousAdmin: string; newAdmin: string }
130
+ >;
131
+
132
+ export type AdminChangedEventFilter = TypedEventFilter<AdminChangedEvent>;
133
+
134
+ export type BeaconUpgradedEvent = TypedEvent<[string], { beacon: string }>;
135
+
136
+ export type BeaconUpgradedEventFilter = TypedEventFilter<BeaconUpgradedEvent>;
137
+
138
+ export type InitializedEvent = TypedEvent<[number], { version: number }>;
139
+
140
+ export type InitializedEventFilter = TypedEventFilter<InitializedEvent>;
141
+
142
+ export type OwnershipTransferredEvent = TypedEvent<
143
+ [string, string],
144
+ { previousOwner: string; newOwner: string }
145
+ >;
146
+
147
+ export type OwnershipTransferredEventFilter =
148
+ TypedEventFilter<OwnershipTransferredEvent>;
149
+
59
150
  export type SwapSingleEvent = TypedEvent<
60
151
  [number, string, BigNumber],
61
152
  { swapType: number; tokenIn: string; amountIn: BigNumber }
@@ -63,6 +154,10 @@ export type SwapSingleEvent = TypedEvent<
63
154
 
64
155
  export type SwapSingleEventFilter = TypedEventFilter<SwapSingleEvent>;
65
156
 
157
+ export type UpgradedEvent = TypedEvent<[string], { implementation: string }>;
158
+
159
+ export type UpgradedEventFilter = TypedEventFilter<UpgradedEvent>;
160
+
66
161
  export interface PendleSwap extends BaseContract {
67
162
  contractName: "PendleSwap";
68
163
  connect(signerOrProvider: Signer | Provider | string): this;
@@ -91,14 +186,60 @@ export interface PendleSwap extends BaseContract {
91
186
  removeListener: OnEvent<this>;
92
187
 
93
188
  functions: {
189
+ claimOwnership(
190
+ overrides?: Overrides & { from?: string | Promise<string> }
191
+ ): Promise<ContractTransaction>;
192
+
193
+ initialize(
194
+ overrides?: Overrides & { from?: string | Promise<string> }
195
+ ): Promise<ContractTransaction>;
196
+
197
+ owner(overrides?: CallOverrides): Promise<[string]>;
198
+
199
+ pendingOwner(overrides?: CallOverrides): Promise<[string]>;
200
+
201
+ proxiableUUID(overrides?: CallOverrides): Promise<[string]>;
202
+
94
203
  swap(
95
204
  tokenIn: string,
96
205
  amountIn: BigNumberish,
97
206
  data: SwapDataStruct,
98
207
  overrides?: PayableOverrides & { from?: string | Promise<string> }
99
208
  ): Promise<ContractTransaction>;
209
+
210
+ transferOwnership(
211
+ newOwner: string,
212
+ direct: boolean,
213
+ renounce: boolean,
214
+ overrides?: Overrides & { from?: string | Promise<string> }
215
+ ): Promise<ContractTransaction>;
216
+
217
+ upgradeTo(
218
+ newImplementation: string,
219
+ overrides?: Overrides & { from?: string | Promise<string> }
220
+ ): Promise<ContractTransaction>;
221
+
222
+ upgradeToAndCall(
223
+ newImplementation: string,
224
+ data: BytesLike,
225
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
226
+ ): Promise<ContractTransaction>;
100
227
  };
101
228
 
229
+ claimOwnership(
230
+ overrides?: Overrides & { from?: string | Promise<string> }
231
+ ): Promise<ContractTransaction>;
232
+
233
+ initialize(
234
+ overrides?: Overrides & { from?: string | Promise<string> }
235
+ ): Promise<ContractTransaction>;
236
+
237
+ owner(overrides?: CallOverrides): Promise<string>;
238
+
239
+ pendingOwner(overrides?: CallOverrides): Promise<string>;
240
+
241
+ proxiableUUID(overrides?: CallOverrides): Promise<string>;
242
+
102
243
  swap(
103
244
  tokenIn: string,
104
245
  amountIn: BigNumberish,
@@ -106,16 +247,88 @@ export interface PendleSwap extends BaseContract {
106
247
  overrides?: PayableOverrides & { from?: string | Promise<string> }
107
248
  ): Promise<ContractTransaction>;
108
249
 
250
+ transferOwnership(
251
+ newOwner: string,
252
+ direct: boolean,
253
+ renounce: boolean,
254
+ overrides?: Overrides & { from?: string | Promise<string> }
255
+ ): Promise<ContractTransaction>;
256
+
257
+ upgradeTo(
258
+ newImplementation: string,
259
+ overrides?: Overrides & { from?: string | Promise<string> }
260
+ ): Promise<ContractTransaction>;
261
+
262
+ upgradeToAndCall(
263
+ newImplementation: string,
264
+ data: BytesLike,
265
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
266
+ ): Promise<ContractTransaction>;
267
+
109
268
  callStatic: {
269
+ claimOwnership(overrides?: CallOverrides): Promise<void>;
270
+
271
+ initialize(overrides?: CallOverrides): Promise<void>;
272
+
273
+ owner(overrides?: CallOverrides): Promise<string>;
274
+
275
+ pendingOwner(overrides?: CallOverrides): Promise<string>;
276
+
277
+ proxiableUUID(overrides?: CallOverrides): Promise<string>;
278
+
110
279
  swap(
111
280
  tokenIn: string,
112
281
  amountIn: BigNumberish,
113
282
  data: SwapDataStruct,
114
283
  overrides?: CallOverrides
115
284
  ): Promise<void>;
285
+
286
+ transferOwnership(
287
+ newOwner: string,
288
+ direct: boolean,
289
+ renounce: boolean,
290
+ overrides?: CallOverrides
291
+ ): Promise<void>;
292
+
293
+ upgradeTo(
294
+ newImplementation: string,
295
+ overrides?: CallOverrides
296
+ ): Promise<void>;
297
+
298
+ upgradeToAndCall(
299
+ newImplementation: string,
300
+ data: BytesLike,
301
+ overrides?: CallOverrides
302
+ ): Promise<void>;
116
303
  };
117
304
 
118
305
  filters: {
306
+ "AdminChanged(address,address)"(
307
+ previousAdmin?: null,
308
+ newAdmin?: null
309
+ ): AdminChangedEventFilter;
310
+ AdminChanged(
311
+ previousAdmin?: null,
312
+ newAdmin?: null
313
+ ): AdminChangedEventFilter;
314
+
315
+ "BeaconUpgraded(address)"(
316
+ beacon?: string | null
317
+ ): BeaconUpgradedEventFilter;
318
+ BeaconUpgraded(beacon?: string | null): BeaconUpgradedEventFilter;
319
+
320
+ "Initialized(uint8)"(version?: null): InitializedEventFilter;
321
+ Initialized(version?: null): InitializedEventFilter;
322
+
323
+ "OwnershipTransferred(address,address)"(
324
+ previousOwner?: string | null,
325
+ newOwner?: string | null
326
+ ): OwnershipTransferredEventFilter;
327
+ OwnershipTransferred(
328
+ previousOwner?: string | null,
329
+ newOwner?: string | null
330
+ ): OwnershipTransferredEventFilter;
331
+
119
332
  "SwapSingle(uint8,address,uint256)"(
120
333
  swapType?: BigNumberish | null,
121
334
  tokenIn?: string | null,
@@ -126,23 +339,90 @@ export interface PendleSwap extends BaseContract {
126
339
  tokenIn?: string | null,
127
340
  amountIn?: null
128
341
  ): SwapSingleEventFilter;
342
+
343
+ "Upgraded(address)"(implementation?: string | null): UpgradedEventFilter;
344
+ Upgraded(implementation?: string | null): UpgradedEventFilter;
129
345
  };
130
346
 
131
347
  estimateGas: {
348
+ claimOwnership(
349
+ overrides?: Overrides & { from?: string | Promise<string> }
350
+ ): Promise<BigNumber>;
351
+
352
+ initialize(
353
+ overrides?: Overrides & { from?: string | Promise<string> }
354
+ ): Promise<BigNumber>;
355
+
356
+ owner(overrides?: CallOverrides): Promise<BigNumber>;
357
+
358
+ pendingOwner(overrides?: CallOverrides): Promise<BigNumber>;
359
+
360
+ proxiableUUID(overrides?: CallOverrides): Promise<BigNumber>;
361
+
132
362
  swap(
133
363
  tokenIn: string,
134
364
  amountIn: BigNumberish,
135
365
  data: SwapDataStruct,
136
366
  overrides?: PayableOverrides & { from?: string | Promise<string> }
137
367
  ): Promise<BigNumber>;
368
+
369
+ transferOwnership(
370
+ newOwner: string,
371
+ direct: boolean,
372
+ renounce: boolean,
373
+ overrides?: Overrides & { from?: string | Promise<string> }
374
+ ): Promise<BigNumber>;
375
+
376
+ upgradeTo(
377
+ newImplementation: string,
378
+ overrides?: Overrides & { from?: string | Promise<string> }
379
+ ): Promise<BigNumber>;
380
+
381
+ upgradeToAndCall(
382
+ newImplementation: string,
383
+ data: BytesLike,
384
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
385
+ ): Promise<BigNumber>;
138
386
  };
139
387
 
140
388
  populateTransaction: {
389
+ claimOwnership(
390
+ overrides?: Overrides & { from?: string | Promise<string> }
391
+ ): Promise<PopulatedTransaction>;
392
+
393
+ initialize(
394
+ overrides?: Overrides & { from?: string | Promise<string> }
395
+ ): Promise<PopulatedTransaction>;
396
+
397
+ owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
398
+
399
+ pendingOwner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
400
+
401
+ proxiableUUID(overrides?: CallOverrides): Promise<PopulatedTransaction>;
402
+
141
403
  swap(
142
404
  tokenIn: string,
143
405
  amountIn: BigNumberish,
144
406
  data: SwapDataStruct,
145
407
  overrides?: PayableOverrides & { from?: string | Promise<string> }
146
408
  ): Promise<PopulatedTransaction>;
409
+
410
+ transferOwnership(
411
+ newOwner: string,
412
+ direct: boolean,
413
+ renounce: boolean,
414
+ overrides?: Overrides & { from?: string | Promise<string> }
415
+ ): Promise<PopulatedTransaction>;
416
+
417
+ upgradeTo(
418
+ newImplementation: string,
419
+ overrides?: Overrides & { from?: string | Promise<string> }
420
+ ): Promise<PopulatedTransaction>;
421
+
422
+ upgradeToAndCall(
423
+ newImplementation: string,
424
+ data: BytesLike,
425
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
426
+ ): Promise<PopulatedTransaction>;
147
427
  };
148
428
  }