@pendle/core-v2 5.2.5-beta → 5.3.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 (43) hide show
  1. package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +4 -0
  2. package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.json +394 -0
  3. package/build/artifacts/contracts/core/erc20/PendleERC20PermitUpg.sol/PendleERC20PermitUpg.dbg.json +4 -0
  4. package/build/artifacts/contracts/core/erc20/PendleERC20PermitUpg.sol/PendleERC20PermitUpg.json +370 -0
  5. package/build/artifacts/contracts/core/erc20/PendleERC20Upg.sol/PendleERC20Upg.dbg.json +4 -0
  6. package/build/artifacts/contracts/core/erc20/PendleERC20Upg.sol/PendleERC20Upg.json +246 -0
  7. package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.dbg.json +4 -0
  8. package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.json +24 -0
  9. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +1 -1
  10. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.json +13 -0
  11. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
  12. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.json +2 -2
  13. package/contracts/core/erc20/PendleERC20Permit.sol +80 -0
  14. package/contracts/core/erc20/PendleERC20PermitUpg.sol +82 -0
  15. package/contracts/core/erc20/PendleERC20Upg.sol +334 -0
  16. package/contracts/interfaces/IPOracleForSy.sol +7 -0
  17. package/contracts/interfaces/IPPausingInterface.sol +2 -0
  18. package/deployments/merkle-distribution/2024-10-31.json +23370 -0
  19. package/deployments/merkle-distribution/2024-11-28.json +24040 -0
  20. package/package.json +5 -1
  21. package/typechain-types/EIP712.ts +135 -0
  22. package/typechain-types/ERC20Permit.ts +586 -0
  23. package/typechain-types/IERC5267.ts +135 -0
  24. package/typechain-types/IPOracleForSy.ts +87 -0
  25. package/typechain-types/IPPausingInterface.ts +125 -0
  26. package/typechain-types/PendleERC20Permit.ts +508 -0
  27. package/typechain-types/PendleERC20PermitUpg.ts +517 -0
  28. package/typechain-types/PendleERC20Upg.ts +348 -0
  29. package/typechain-types/PendleGovernanceProxy.ts +603 -0
  30. package/typechain-types/ShortStrings.ts +57 -0
  31. package/typechain-types/common.ts +44 -0
  32. package/typechain-types/factories/EIP712__factory.ts +85 -0
  33. package/typechain-types/factories/ERC20Permit__factory.ts +433 -0
  34. package/typechain-types/factories/IERC5267__factory.ts +72 -0
  35. package/typechain-types/factories/IPOracleForSy__factory.ts +36 -0
  36. package/typechain-types/factories/IPPausingInterface__factory.ts +53 -0
  37. package/typechain-types/factories/PendleERC20PermitUpg__factory.ts +389 -0
  38. package/typechain-types/factories/PendleERC20Permit__factory.ts +470 -0
  39. package/typechain-types/factories/PendleERC20Upg__factory.ts +261 -0
  40. package/typechain-types/factories/PendleGovernanceProxy__factory.ts +458 -0
  41. package/typechain-types/factories/ShortStrings__factory.ts +77 -0
  42. package/typechain-types/hardhat.d.ts +1725 -0
  43. package/typechain-types/index.ts +380 -0
@@ -0,0 +1,85 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type { EIP712, EIP712Interface } from "../EIP712";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [],
12
+ name: "InvalidShortString",
13
+ type: "error",
14
+ },
15
+ {
16
+ inputs: [
17
+ {
18
+ internalType: "string",
19
+ name: "str",
20
+ type: "string",
21
+ },
22
+ ],
23
+ name: "StringTooLong",
24
+ type: "error",
25
+ },
26
+ {
27
+ anonymous: false,
28
+ inputs: [],
29
+ name: "EIP712DomainChanged",
30
+ type: "event",
31
+ },
32
+ {
33
+ inputs: [],
34
+ name: "eip712Domain",
35
+ outputs: [
36
+ {
37
+ internalType: "bytes1",
38
+ name: "fields",
39
+ type: "bytes1",
40
+ },
41
+ {
42
+ internalType: "string",
43
+ name: "name",
44
+ type: "string",
45
+ },
46
+ {
47
+ internalType: "string",
48
+ name: "version",
49
+ type: "string",
50
+ },
51
+ {
52
+ internalType: "uint256",
53
+ name: "chainId",
54
+ type: "uint256",
55
+ },
56
+ {
57
+ internalType: "address",
58
+ name: "verifyingContract",
59
+ type: "address",
60
+ },
61
+ {
62
+ internalType: "bytes32",
63
+ name: "salt",
64
+ type: "bytes32",
65
+ },
66
+ {
67
+ internalType: "uint256[]",
68
+ name: "extensions",
69
+ type: "uint256[]",
70
+ },
71
+ ],
72
+ stateMutability: "view",
73
+ type: "function",
74
+ },
75
+ ];
76
+
77
+ export class EIP712__factory {
78
+ static readonly abi = _abi;
79
+ static createInterface(): EIP712Interface {
80
+ return new utils.Interface(_abi) as EIP712Interface;
81
+ }
82
+ static connect(address: string, signerOrProvider: Signer | Provider): EIP712 {
83
+ return new Contract(address, _abi, signerOrProvider) as EIP712;
84
+ }
85
+ }
@@ -0,0 +1,433 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type { ERC20Permit, ERC20PermitInterface } from "../ERC20Permit";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [],
12
+ name: "InvalidShortString",
13
+ type: "error",
14
+ },
15
+ {
16
+ inputs: [
17
+ {
18
+ internalType: "string",
19
+ name: "str",
20
+ type: "string",
21
+ },
22
+ ],
23
+ name: "StringTooLong",
24
+ type: "error",
25
+ },
26
+ {
27
+ anonymous: false,
28
+ inputs: [
29
+ {
30
+ indexed: true,
31
+ internalType: "address",
32
+ name: "owner",
33
+ type: "address",
34
+ },
35
+ {
36
+ indexed: true,
37
+ internalType: "address",
38
+ name: "spender",
39
+ type: "address",
40
+ },
41
+ {
42
+ indexed: false,
43
+ internalType: "uint256",
44
+ name: "value",
45
+ type: "uint256",
46
+ },
47
+ ],
48
+ name: "Approval",
49
+ type: "event",
50
+ },
51
+ {
52
+ anonymous: false,
53
+ inputs: [],
54
+ name: "EIP712DomainChanged",
55
+ type: "event",
56
+ },
57
+ {
58
+ anonymous: false,
59
+ inputs: [
60
+ {
61
+ indexed: true,
62
+ internalType: "address",
63
+ name: "from",
64
+ type: "address",
65
+ },
66
+ {
67
+ indexed: true,
68
+ internalType: "address",
69
+ name: "to",
70
+ type: "address",
71
+ },
72
+ {
73
+ indexed: false,
74
+ internalType: "uint256",
75
+ name: "value",
76
+ type: "uint256",
77
+ },
78
+ ],
79
+ name: "Transfer",
80
+ type: "event",
81
+ },
82
+ {
83
+ inputs: [],
84
+ name: "DOMAIN_SEPARATOR",
85
+ outputs: [
86
+ {
87
+ internalType: "bytes32",
88
+ name: "",
89
+ type: "bytes32",
90
+ },
91
+ ],
92
+ stateMutability: "view",
93
+ type: "function",
94
+ },
95
+ {
96
+ inputs: [
97
+ {
98
+ internalType: "address",
99
+ name: "owner",
100
+ type: "address",
101
+ },
102
+ {
103
+ internalType: "address",
104
+ name: "spender",
105
+ type: "address",
106
+ },
107
+ ],
108
+ name: "allowance",
109
+ outputs: [
110
+ {
111
+ internalType: "uint256",
112
+ name: "",
113
+ type: "uint256",
114
+ },
115
+ ],
116
+ stateMutability: "view",
117
+ type: "function",
118
+ },
119
+ {
120
+ inputs: [
121
+ {
122
+ internalType: "address",
123
+ name: "spender",
124
+ type: "address",
125
+ },
126
+ {
127
+ internalType: "uint256",
128
+ name: "amount",
129
+ type: "uint256",
130
+ },
131
+ ],
132
+ name: "approve",
133
+ outputs: [
134
+ {
135
+ internalType: "bool",
136
+ name: "",
137
+ type: "bool",
138
+ },
139
+ ],
140
+ stateMutability: "nonpayable",
141
+ type: "function",
142
+ },
143
+ {
144
+ inputs: [
145
+ {
146
+ internalType: "address",
147
+ name: "account",
148
+ type: "address",
149
+ },
150
+ ],
151
+ name: "balanceOf",
152
+ outputs: [
153
+ {
154
+ internalType: "uint256",
155
+ name: "",
156
+ type: "uint256",
157
+ },
158
+ ],
159
+ stateMutability: "view",
160
+ type: "function",
161
+ },
162
+ {
163
+ inputs: [],
164
+ name: "decimals",
165
+ outputs: [
166
+ {
167
+ internalType: "uint8",
168
+ name: "",
169
+ type: "uint8",
170
+ },
171
+ ],
172
+ stateMutability: "view",
173
+ type: "function",
174
+ },
175
+ {
176
+ inputs: [
177
+ {
178
+ internalType: "address",
179
+ name: "spender",
180
+ type: "address",
181
+ },
182
+ {
183
+ internalType: "uint256",
184
+ name: "subtractedValue",
185
+ type: "uint256",
186
+ },
187
+ ],
188
+ name: "decreaseAllowance",
189
+ outputs: [
190
+ {
191
+ internalType: "bool",
192
+ name: "",
193
+ type: "bool",
194
+ },
195
+ ],
196
+ stateMutability: "nonpayable",
197
+ type: "function",
198
+ },
199
+ {
200
+ inputs: [],
201
+ name: "eip712Domain",
202
+ outputs: [
203
+ {
204
+ internalType: "bytes1",
205
+ name: "fields",
206
+ type: "bytes1",
207
+ },
208
+ {
209
+ internalType: "string",
210
+ name: "name",
211
+ type: "string",
212
+ },
213
+ {
214
+ internalType: "string",
215
+ name: "version",
216
+ type: "string",
217
+ },
218
+ {
219
+ internalType: "uint256",
220
+ name: "chainId",
221
+ type: "uint256",
222
+ },
223
+ {
224
+ internalType: "address",
225
+ name: "verifyingContract",
226
+ type: "address",
227
+ },
228
+ {
229
+ internalType: "bytes32",
230
+ name: "salt",
231
+ type: "bytes32",
232
+ },
233
+ {
234
+ internalType: "uint256[]",
235
+ name: "extensions",
236
+ type: "uint256[]",
237
+ },
238
+ ],
239
+ stateMutability: "view",
240
+ type: "function",
241
+ },
242
+ {
243
+ inputs: [
244
+ {
245
+ internalType: "address",
246
+ name: "spender",
247
+ type: "address",
248
+ },
249
+ {
250
+ internalType: "uint256",
251
+ name: "addedValue",
252
+ type: "uint256",
253
+ },
254
+ ],
255
+ name: "increaseAllowance",
256
+ outputs: [
257
+ {
258
+ internalType: "bool",
259
+ name: "",
260
+ type: "bool",
261
+ },
262
+ ],
263
+ stateMutability: "nonpayable",
264
+ type: "function",
265
+ },
266
+ {
267
+ inputs: [],
268
+ name: "name",
269
+ outputs: [
270
+ {
271
+ internalType: "string",
272
+ name: "",
273
+ type: "string",
274
+ },
275
+ ],
276
+ stateMutability: "view",
277
+ type: "function",
278
+ },
279
+ {
280
+ inputs: [
281
+ {
282
+ internalType: "address",
283
+ name: "owner",
284
+ type: "address",
285
+ },
286
+ ],
287
+ name: "nonces",
288
+ outputs: [
289
+ {
290
+ internalType: "uint256",
291
+ name: "",
292
+ type: "uint256",
293
+ },
294
+ ],
295
+ stateMutability: "view",
296
+ type: "function",
297
+ },
298
+ {
299
+ inputs: [
300
+ {
301
+ internalType: "address",
302
+ name: "owner",
303
+ type: "address",
304
+ },
305
+ {
306
+ internalType: "address",
307
+ name: "spender",
308
+ type: "address",
309
+ },
310
+ {
311
+ internalType: "uint256",
312
+ name: "value",
313
+ type: "uint256",
314
+ },
315
+ {
316
+ internalType: "uint256",
317
+ name: "deadline",
318
+ type: "uint256",
319
+ },
320
+ {
321
+ internalType: "uint8",
322
+ name: "v",
323
+ type: "uint8",
324
+ },
325
+ {
326
+ internalType: "bytes32",
327
+ name: "r",
328
+ type: "bytes32",
329
+ },
330
+ {
331
+ internalType: "bytes32",
332
+ name: "s",
333
+ type: "bytes32",
334
+ },
335
+ ],
336
+ name: "permit",
337
+ outputs: [],
338
+ stateMutability: "nonpayable",
339
+ type: "function",
340
+ },
341
+ {
342
+ inputs: [],
343
+ name: "symbol",
344
+ outputs: [
345
+ {
346
+ internalType: "string",
347
+ name: "",
348
+ type: "string",
349
+ },
350
+ ],
351
+ stateMutability: "view",
352
+ type: "function",
353
+ },
354
+ {
355
+ inputs: [],
356
+ name: "totalSupply",
357
+ outputs: [
358
+ {
359
+ internalType: "uint256",
360
+ name: "",
361
+ type: "uint256",
362
+ },
363
+ ],
364
+ stateMutability: "view",
365
+ type: "function",
366
+ },
367
+ {
368
+ inputs: [
369
+ {
370
+ internalType: "address",
371
+ name: "to",
372
+ type: "address",
373
+ },
374
+ {
375
+ internalType: "uint256",
376
+ name: "amount",
377
+ type: "uint256",
378
+ },
379
+ ],
380
+ name: "transfer",
381
+ outputs: [
382
+ {
383
+ internalType: "bool",
384
+ name: "",
385
+ type: "bool",
386
+ },
387
+ ],
388
+ stateMutability: "nonpayable",
389
+ type: "function",
390
+ },
391
+ {
392
+ inputs: [
393
+ {
394
+ internalType: "address",
395
+ name: "from",
396
+ type: "address",
397
+ },
398
+ {
399
+ internalType: "address",
400
+ name: "to",
401
+ type: "address",
402
+ },
403
+ {
404
+ internalType: "uint256",
405
+ name: "amount",
406
+ type: "uint256",
407
+ },
408
+ ],
409
+ name: "transferFrom",
410
+ outputs: [
411
+ {
412
+ internalType: "bool",
413
+ name: "",
414
+ type: "bool",
415
+ },
416
+ ],
417
+ stateMutability: "nonpayable",
418
+ type: "function",
419
+ },
420
+ ];
421
+
422
+ export class ERC20Permit__factory {
423
+ static readonly abi = _abi;
424
+ static createInterface(): ERC20PermitInterface {
425
+ return new utils.Interface(_abi) as ERC20PermitInterface;
426
+ }
427
+ static connect(
428
+ address: string,
429
+ signerOrProvider: Signer | Provider
430
+ ): ERC20Permit {
431
+ return new Contract(address, _abi, signerOrProvider) as ERC20Permit;
432
+ }
433
+ }
@@ -0,0 +1,72 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type { IERC5267, IERC5267Interface } from "../IERC5267";
8
+
9
+ const _abi = [
10
+ {
11
+ anonymous: false,
12
+ inputs: [],
13
+ name: "EIP712DomainChanged",
14
+ type: "event",
15
+ },
16
+ {
17
+ inputs: [],
18
+ name: "eip712Domain",
19
+ outputs: [
20
+ {
21
+ internalType: "bytes1",
22
+ name: "fields",
23
+ type: "bytes1",
24
+ },
25
+ {
26
+ internalType: "string",
27
+ name: "name",
28
+ type: "string",
29
+ },
30
+ {
31
+ internalType: "string",
32
+ name: "version",
33
+ type: "string",
34
+ },
35
+ {
36
+ internalType: "uint256",
37
+ name: "chainId",
38
+ type: "uint256",
39
+ },
40
+ {
41
+ internalType: "address",
42
+ name: "verifyingContract",
43
+ type: "address",
44
+ },
45
+ {
46
+ internalType: "bytes32",
47
+ name: "salt",
48
+ type: "bytes32",
49
+ },
50
+ {
51
+ internalType: "uint256[]",
52
+ name: "extensions",
53
+ type: "uint256[]",
54
+ },
55
+ ],
56
+ stateMutability: "view",
57
+ type: "function",
58
+ },
59
+ ];
60
+
61
+ export class IERC5267__factory {
62
+ static readonly abi = _abi;
63
+ static createInterface(): IERC5267Interface {
64
+ return new utils.Interface(_abi) as IERC5267Interface;
65
+ }
66
+ static connect(
67
+ address: string,
68
+ signerOrProvider: Signer | Provider
69
+ ): IERC5267 {
70
+ return new Contract(address, _abi, signerOrProvider) as IERC5267;
71
+ }
72
+ }
@@ -0,0 +1,36 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type { IPOracleForSy, IPOracleForSyInterface } from "../IPOracleForSy";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [],
12
+ name: "latestAnswer",
13
+ outputs: [
14
+ {
15
+ internalType: "int256",
16
+ name: "",
17
+ type: "int256",
18
+ },
19
+ ],
20
+ stateMutability: "view",
21
+ type: "function",
22
+ },
23
+ ];
24
+
25
+ export class IPOracleForSy__factory {
26
+ static readonly abi = _abi;
27
+ static createInterface(): IPOracleForSyInterface {
28
+ return new utils.Interface(_abi) as IPOracleForSyInterface;
29
+ }
30
+ static connect(
31
+ address: string,
32
+ signerOrProvider: Signer | Provider
33
+ ): IPOracleForSy {
34
+ return new Contract(address, _abi, signerOrProvider) as IPOracleForSy;
35
+ }
36
+ }
@@ -0,0 +1,53 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ IPPausingInterface,
9
+ IPPausingInterfaceInterface,
10
+ } from "../IPPausingInterface";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "pause",
16
+ outputs: [],
17
+ stateMutability: "nonpayable",
18
+ type: "function",
19
+ },
20
+ {
21
+ inputs: [],
22
+ name: "paused",
23
+ outputs: [
24
+ {
25
+ internalType: "bool",
26
+ name: "",
27
+ type: "bool",
28
+ },
29
+ ],
30
+ stateMutability: "view",
31
+ type: "function",
32
+ },
33
+ {
34
+ inputs: [],
35
+ name: "unpause",
36
+ outputs: [],
37
+ stateMutability: "nonpayable",
38
+ type: "function",
39
+ },
40
+ ];
41
+
42
+ export class IPPausingInterface__factory {
43
+ static readonly abi = _abi;
44
+ static createInterface(): IPPausingInterfaceInterface {
45
+ return new utils.Interface(_abi) as IPPausingInterfaceInterface;
46
+ }
47
+ static connect(
48
+ address: string,
49
+ signerOrProvider: Signer | Provider
50
+ ): IPPausingInterface {
51
+ return new Contract(address, _abi, signerOrProvider) as IPPausingInterface;
52
+ }
53
+ }