@pendle/core-v2 5.1.1 → 5.2.0-beta-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 (77) hide show
  1. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +23 -67
  3. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +6 -19
  5. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithoutPermitUpg.sol/SYBaseUpg.dbg.json +4 -0
  6. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithoutPermitUpg.sol/{SYBaseWithoutPermitUpg.json → SYBaseUpg.json} +1 -1
  7. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
  8. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +2 -2
  9. package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.dbg.json +4 -0
  10. package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.json +122 -0
  11. package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.dbg.json +4 -0
  12. package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.json +91 -0
  13. package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.dbg.json +4 -0
  14. package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.json +262 -0
  15. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
  16. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.json +2 -27
  17. package/build/artifacts/contracts/oracles/factory/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +4 -0
  18. package/build/artifacts/contracts/oracles/factory/PendleChainlinkOracle.sol/PendleChainlinkOracle.json +274 -0
  19. package/build/artifacts/contracts/oracles/factory/PendleChainlinkOracleBase.sol/PendleChainlinkOracleBase.dbg.json +4 -0
  20. package/build/artifacts/contracts/oracles/factory/PendleChainlinkOracleBase.sol/PendleChainlinkOracleBase.json +253 -0
  21. package/build/artifacts/contracts/oracles/factory/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +4 -0
  22. package/build/artifacts/contracts/oracles/factory/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.json +289 -0
  23. package/build/artifacts/contracts/oracles/factory/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +4 -0
  24. package/build/artifacts/contracts/oracles/factory/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.json +305 -0
  25. package/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +6 -27
  26. package/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +2 -3
  27. package/contracts/core/StandardizedYield/SYBaseWithoutPermitUpg.sol +1 -1
  28. package/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol +2 -1
  29. package/contracts/interfaces/IPChainlinkOracle.sol +15 -0
  30. package/contracts/interfaces/IPChainlinkOracleFactory.sol +22 -0
  31. package/contracts/interfaces/IPChainlinkOracleWithQuote.sol +8 -0
  32. package/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol +0 -5
  33. package/contracts/oracles/factory/PendleChainlinkOracle.sol +21 -0
  34. package/contracts/oracles/factory/PendleChainlinkOracleBase.sol +138 -0
  35. package/contracts/oracles/factory/PendleChainlinkOracleFactory.sol +99 -0
  36. package/contracts/oracles/factory/PendleChainlinkOracleWithQuote.sol +46 -0
  37. package/package.json +1 -1
  38. package/typechain-types/IPChainlinkOracle.ts +221 -0
  39. package/typechain-types/IPChainlinkOracleFactory.ts +123 -0
  40. package/typechain-types/IPChainlinkOracleWithQuote.ts +404 -0
  41. package/typechain-types/PendleChainlinkOracle.ts +299 -0
  42. package/typechain-types/PendleChainlinkOracleBase.ts +299 -0
  43. package/typechain-types/PendleChainlinkOracleFactory.ts +389 -0
  44. package/typechain-types/PendleChainlinkOracleWithQuote.ts +335 -0
  45. package/typechain-types/PendleVotingControllerUpg.ts +43 -135
  46. package/typechain-types/VotingControllerStorageUpg.ts +15 -34
  47. package/typechain-types/factories/IPChainlinkOracleFactory__factory.ts +110 -0
  48. package/typechain-types/factories/IPChainlinkOracleWithQuote__factory.ts +281 -0
  49. package/typechain-types/factories/IPChainlinkOracle__factory.ts +137 -0
  50. package/typechain-types/factories/PendleChainlinkOracleBase__factory.ts +272 -0
  51. package/typechain-types/factories/PendleChainlinkOracleFactory__factory.ts +351 -0
  52. package/typechain-types/factories/PendleChainlinkOracleWithQuote__factory.ts +389 -0
  53. package/typechain-types/factories/PendleChainlinkOracle__factory.ts +354 -0
  54. package/typechain-types/factories/PendleGlpSY__factory.ts +1 -1
  55. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +22 -66
  56. package/typechain-types/factories/SDKErrorsDirectory__factory.ts +1 -26
  57. package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +6 -19
  58. package/typechain-types/hardhat.d.ts +72 -0
  59. package/typechain-types/index.ts +14 -0
  60. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithoutPermitUpg.sol/SYBaseWithoutPermitUpg.dbg.json +0 -4
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleStkGHOSY.sol/PendleStkGHOSY.dbg.json +0 -4
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleStkGHOSY.sol/PendleStkGHOSY.json +0 -1160
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/Mantle/PendleCMETHSY.sol/PendleCMETHSY.dbg.json +0 -4
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/Mantle/PendleCMETHSY.sol/PendleCMETHSY.json +0 -1049
  65. package/build/artifacts/contracts/interfaces/AaveV3/IAaveStkGHO.sol/IAaveStkGHO.dbg.json +0 -4
  66. package/build/artifacts/contracts/interfaces/AaveV3/IAaveStkGHO.sol/IAaveStkGHO.json +0 -116
  67. package/build/artifacts/contracts/interfaces/Angle/IAngleDistributor.sol/IAngleDistributor.dbg.json +0 -4
  68. package/build/artifacts/contracts/interfaces/Angle/IAngleDistributor.sol/IAngleDistributor.json +0 -39
  69. package/contracts/core/StandardizedYield/implementations/AaveV3/PendleStkGHOSY.sol +0 -130
  70. package/contracts/core/StandardizedYield/implementations/Mantle/PendleCMETHSY.sol +0 -82
  71. package/contracts/interfaces/AaveV3/IAaveStkGHO.sol +0 -17
  72. package/contracts/interfaces/Angle/IAngleDistributor.sol +0 -12
  73. package/deployments/1-markets/STKGHO-MAINNET-APR2025.json +0 -14
  74. package/deployments/42161-markets/DOLOMITE-USDC-ARBITRUM-JUN2025.json +0 -14
  75. package/deployments/42161-markets/DOLOMITE-WBTC-ARBITRUM-JUN2025.json +0 -14
  76. package/deployments/5000-markets/CMETH-MANTLE-FEB2025.json +0 -14
  77. package/deployments/56-markets/VENUS-BNB-BSC-JUN2025.json +0 -14
@@ -0,0 +1,110 @@
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
+ IPChainlinkOracleFactory,
9
+ IPChainlinkOracleFactoryInterface,
10
+ } from "../IPChainlinkOracleFactory";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "address",
19
+ name: "market",
20
+ type: "address",
21
+ },
22
+ {
23
+ indexed: false,
24
+ internalType: "uint16",
25
+ name: "twapDuration",
26
+ type: "uint16",
27
+ },
28
+ {
29
+ indexed: false,
30
+ internalType: "enum PendleOracleType",
31
+ name: "baseOracleType",
32
+ type: "uint8",
33
+ },
34
+ {
35
+ indexed: true,
36
+ internalType: "address",
37
+ name: "oracle",
38
+ type: "address",
39
+ },
40
+ {
41
+ indexed: false,
42
+ internalType: "bytes32",
43
+ name: "oracleId",
44
+ type: "bytes32",
45
+ },
46
+ ],
47
+ name: "OracleCreated",
48
+ type: "event",
49
+ },
50
+ {
51
+ anonymous: false,
52
+ inputs: [
53
+ {
54
+ indexed: true,
55
+ internalType: "address",
56
+ name: "market",
57
+ type: "address",
58
+ },
59
+ {
60
+ indexed: false,
61
+ internalType: "uint16",
62
+ name: "twapDuration",
63
+ type: "uint16",
64
+ },
65
+ {
66
+ indexed: false,
67
+ internalType: "enum PendleOracleType",
68
+ name: "baseOracleType",
69
+ type: "uint8",
70
+ },
71
+ {
72
+ indexed: true,
73
+ internalType: "address",
74
+ name: "quoteOracle",
75
+ type: "address",
76
+ },
77
+ {
78
+ indexed: true,
79
+ internalType: "address",
80
+ name: "oracle",
81
+ type: "address",
82
+ },
83
+ {
84
+ indexed: false,
85
+ internalType: "bytes32",
86
+ name: "oracleId",
87
+ type: "bytes32",
88
+ },
89
+ ],
90
+ name: "OracleWithQuoteCreated",
91
+ type: "event",
92
+ },
93
+ ];
94
+
95
+ export class IPChainlinkOracleFactory__factory {
96
+ static readonly abi = _abi;
97
+ static createInterface(): IPChainlinkOracleFactoryInterface {
98
+ return new utils.Interface(_abi) as IPChainlinkOracleFactoryInterface;
99
+ }
100
+ static connect(
101
+ address: string,
102
+ signerOrProvider: Signer | Provider
103
+ ): IPChainlinkOracleFactory {
104
+ return new Contract(
105
+ address,
106
+ _abi,
107
+ signerOrProvider
108
+ ) as IPChainlinkOracleFactory;
109
+ }
110
+ }
@@ -0,0 +1,281 @@
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
+ IPChainlinkOracleWithQuote,
9
+ IPChainlinkOracleWithQuoteInterface,
10
+ } from "../IPChainlinkOracleWithQuote";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "int256",
19
+ name: "current",
20
+ type: "int256",
21
+ },
22
+ {
23
+ indexed: true,
24
+ internalType: "uint256",
25
+ name: "roundId",
26
+ type: "uint256",
27
+ },
28
+ {
29
+ indexed: false,
30
+ internalType: "uint256",
31
+ name: "updatedAt",
32
+ type: "uint256",
33
+ },
34
+ ],
35
+ name: "AnswerUpdated",
36
+ type: "event",
37
+ },
38
+ {
39
+ anonymous: false,
40
+ inputs: [
41
+ {
42
+ indexed: true,
43
+ internalType: "uint256",
44
+ name: "roundId",
45
+ type: "uint256",
46
+ },
47
+ {
48
+ indexed: true,
49
+ internalType: "address",
50
+ name: "startedBy",
51
+ type: "address",
52
+ },
53
+ {
54
+ indexed: false,
55
+ internalType: "uint256",
56
+ name: "startedAt",
57
+ type: "uint256",
58
+ },
59
+ ],
60
+ name: "NewRound",
61
+ type: "event",
62
+ },
63
+ {
64
+ inputs: [],
65
+ name: "decimals",
66
+ outputs: [
67
+ {
68
+ internalType: "uint8",
69
+ name: "",
70
+ type: "uint8",
71
+ },
72
+ ],
73
+ stateMutability: "view",
74
+ type: "function",
75
+ },
76
+ {
77
+ inputs: [],
78
+ name: "description",
79
+ outputs: [
80
+ {
81
+ internalType: "string",
82
+ name: "",
83
+ type: "string",
84
+ },
85
+ ],
86
+ stateMutability: "view",
87
+ type: "function",
88
+ },
89
+ {
90
+ inputs: [
91
+ {
92
+ internalType: "uint256",
93
+ name: "roundId",
94
+ type: "uint256",
95
+ },
96
+ ],
97
+ name: "getAnswer",
98
+ outputs: [
99
+ {
100
+ internalType: "int256",
101
+ name: "",
102
+ type: "int256",
103
+ },
104
+ ],
105
+ stateMutability: "view",
106
+ type: "function",
107
+ },
108
+ {
109
+ inputs: [
110
+ {
111
+ internalType: "uint80",
112
+ name: "_roundId",
113
+ type: "uint80",
114
+ },
115
+ ],
116
+ name: "getRoundData",
117
+ outputs: [
118
+ {
119
+ internalType: "uint80",
120
+ name: "roundId",
121
+ type: "uint80",
122
+ },
123
+ {
124
+ internalType: "int256",
125
+ name: "answer",
126
+ type: "int256",
127
+ },
128
+ {
129
+ internalType: "uint256",
130
+ name: "startedAt",
131
+ type: "uint256",
132
+ },
133
+ {
134
+ internalType: "uint256",
135
+ name: "updatedAt",
136
+ type: "uint256",
137
+ },
138
+ {
139
+ internalType: "uint80",
140
+ name: "answeredInRound",
141
+ type: "uint80",
142
+ },
143
+ ],
144
+ stateMutability: "view",
145
+ type: "function",
146
+ },
147
+ {
148
+ inputs: [
149
+ {
150
+ internalType: "uint256",
151
+ name: "roundId",
152
+ type: "uint256",
153
+ },
154
+ ],
155
+ name: "getTimestamp",
156
+ outputs: [
157
+ {
158
+ internalType: "uint256",
159
+ name: "",
160
+ type: "uint256",
161
+ },
162
+ ],
163
+ stateMutability: "view",
164
+ type: "function",
165
+ },
166
+ {
167
+ inputs: [],
168
+ name: "latestAnswer",
169
+ outputs: [
170
+ {
171
+ internalType: "int256",
172
+ name: "",
173
+ type: "int256",
174
+ },
175
+ ],
176
+ stateMutability: "view",
177
+ type: "function",
178
+ },
179
+ {
180
+ inputs: [],
181
+ name: "latestRound",
182
+ outputs: [
183
+ {
184
+ internalType: "uint256",
185
+ name: "",
186
+ type: "uint256",
187
+ },
188
+ ],
189
+ stateMutability: "view",
190
+ type: "function",
191
+ },
192
+ {
193
+ inputs: [],
194
+ name: "latestRoundData",
195
+ outputs: [
196
+ {
197
+ internalType: "uint80",
198
+ name: "roundId",
199
+ type: "uint80",
200
+ },
201
+ {
202
+ internalType: "int256",
203
+ name: "answer",
204
+ type: "int256",
205
+ },
206
+ {
207
+ internalType: "uint256",
208
+ name: "startedAt",
209
+ type: "uint256",
210
+ },
211
+ {
212
+ internalType: "uint256",
213
+ name: "updatedAt",
214
+ type: "uint256",
215
+ },
216
+ {
217
+ internalType: "uint80",
218
+ name: "answeredInRound",
219
+ type: "uint80",
220
+ },
221
+ ],
222
+ stateMutability: "view",
223
+ type: "function",
224
+ },
225
+ {
226
+ inputs: [],
227
+ name: "latestTimestamp",
228
+ outputs: [
229
+ {
230
+ internalType: "uint256",
231
+ name: "",
232
+ type: "uint256",
233
+ },
234
+ ],
235
+ stateMutability: "view",
236
+ type: "function",
237
+ },
238
+ {
239
+ inputs: [],
240
+ name: "quoteOracle",
241
+ outputs: [
242
+ {
243
+ internalType: "address",
244
+ name: "",
245
+ type: "address",
246
+ },
247
+ ],
248
+ stateMutability: "view",
249
+ type: "function",
250
+ },
251
+ {
252
+ inputs: [],
253
+ name: "version",
254
+ outputs: [
255
+ {
256
+ internalType: "uint256",
257
+ name: "",
258
+ type: "uint256",
259
+ },
260
+ ],
261
+ stateMutability: "view",
262
+ type: "function",
263
+ },
264
+ ];
265
+
266
+ export class IPChainlinkOracleWithQuote__factory {
267
+ static readonly abi = _abi;
268
+ static createInterface(): IPChainlinkOracleWithQuoteInterface {
269
+ return new utils.Interface(_abi) as IPChainlinkOracleWithQuoteInterface;
270
+ }
271
+ static connect(
272
+ address: string,
273
+ signerOrProvider: Signer | Provider
274
+ ): IPChainlinkOracleWithQuote {
275
+ return new Contract(
276
+ address,
277
+ _abi,
278
+ signerOrProvider
279
+ ) as IPChainlinkOracleWithQuote;
280
+ }
281
+ }
@@ -0,0 +1,137 @@
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
+ IPChainlinkOracle,
9
+ IPChainlinkOracleInterface,
10
+ } from "../IPChainlinkOracle";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "decimals",
16
+ outputs: [
17
+ {
18
+ internalType: "uint8",
19
+ name: "",
20
+ type: "uint8",
21
+ },
22
+ ],
23
+ stateMutability: "view",
24
+ type: "function",
25
+ },
26
+ {
27
+ inputs: [],
28
+ name: "description",
29
+ outputs: [
30
+ {
31
+ internalType: "string",
32
+ name: "",
33
+ type: "string",
34
+ },
35
+ ],
36
+ stateMutability: "view",
37
+ type: "function",
38
+ },
39
+ {
40
+ inputs: [
41
+ {
42
+ internalType: "uint80",
43
+ name: "_roundId",
44
+ type: "uint80",
45
+ },
46
+ ],
47
+ name: "getRoundData",
48
+ outputs: [
49
+ {
50
+ internalType: "uint80",
51
+ name: "roundId",
52
+ type: "uint80",
53
+ },
54
+ {
55
+ internalType: "int256",
56
+ name: "answer",
57
+ type: "int256",
58
+ },
59
+ {
60
+ internalType: "uint256",
61
+ name: "startedAt",
62
+ type: "uint256",
63
+ },
64
+ {
65
+ internalType: "uint256",
66
+ name: "updatedAt",
67
+ type: "uint256",
68
+ },
69
+ {
70
+ internalType: "uint80",
71
+ name: "answeredInRound",
72
+ type: "uint80",
73
+ },
74
+ ],
75
+ stateMutability: "view",
76
+ type: "function",
77
+ },
78
+ {
79
+ inputs: [],
80
+ name: "latestRoundData",
81
+ outputs: [
82
+ {
83
+ internalType: "uint80",
84
+ name: "roundId",
85
+ type: "uint80",
86
+ },
87
+ {
88
+ internalType: "int256",
89
+ name: "answer",
90
+ type: "int256",
91
+ },
92
+ {
93
+ internalType: "uint256",
94
+ name: "startedAt",
95
+ type: "uint256",
96
+ },
97
+ {
98
+ internalType: "uint256",
99
+ name: "updatedAt",
100
+ type: "uint256",
101
+ },
102
+ {
103
+ internalType: "uint80",
104
+ name: "answeredInRound",
105
+ type: "uint80",
106
+ },
107
+ ],
108
+ stateMutability: "view",
109
+ type: "function",
110
+ },
111
+ {
112
+ inputs: [],
113
+ name: "version",
114
+ outputs: [
115
+ {
116
+ internalType: "uint256",
117
+ name: "",
118
+ type: "uint256",
119
+ },
120
+ ],
121
+ stateMutability: "view",
122
+ type: "function",
123
+ },
124
+ ];
125
+
126
+ export class IPChainlinkOracle__factory {
127
+ static readonly abi = _abi;
128
+ static createInterface(): IPChainlinkOracleInterface {
129
+ return new utils.Interface(_abi) as IPChainlinkOracleInterface;
130
+ }
131
+ static connect(
132
+ address: string,
133
+ signerOrProvider: Signer | Provider
134
+ ): IPChainlinkOracle {
135
+ return new Contract(address, _abi, signerOrProvider) as IPChainlinkOracle;
136
+ }
137
+ }