@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,91 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IPChainlinkOracleFactory",
4
+ "sourceName": "contracts/interfaces/IPChainlinkOracleFactory.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "address",
12
+ "name": "market",
13
+ "type": "address"
14
+ },
15
+ {
16
+ "indexed": false,
17
+ "internalType": "uint16",
18
+ "name": "twapDuration",
19
+ "type": "uint16"
20
+ },
21
+ {
22
+ "indexed": false,
23
+ "internalType": "enum PendleOracleType",
24
+ "name": "baseOracleType",
25
+ "type": "uint8"
26
+ },
27
+ {
28
+ "indexed": true,
29
+ "internalType": "address",
30
+ "name": "oracle",
31
+ "type": "address"
32
+ },
33
+ {
34
+ "indexed": false,
35
+ "internalType": "bytes32",
36
+ "name": "oracleId",
37
+ "type": "bytes32"
38
+ }
39
+ ],
40
+ "name": "OracleCreated",
41
+ "type": "event"
42
+ },
43
+ {
44
+ "anonymous": false,
45
+ "inputs": [
46
+ {
47
+ "indexed": true,
48
+ "internalType": "address",
49
+ "name": "market",
50
+ "type": "address"
51
+ },
52
+ {
53
+ "indexed": false,
54
+ "internalType": "uint16",
55
+ "name": "twapDuration",
56
+ "type": "uint16"
57
+ },
58
+ {
59
+ "indexed": false,
60
+ "internalType": "enum PendleOracleType",
61
+ "name": "baseOracleType",
62
+ "type": "uint8"
63
+ },
64
+ {
65
+ "indexed": true,
66
+ "internalType": "address",
67
+ "name": "quoteOracle",
68
+ "type": "address"
69
+ },
70
+ {
71
+ "indexed": true,
72
+ "internalType": "address",
73
+ "name": "oracle",
74
+ "type": "address"
75
+ },
76
+ {
77
+ "indexed": false,
78
+ "internalType": "bytes32",
79
+ "name": "oracleId",
80
+ "type": "bytes32"
81
+ }
82
+ ],
83
+ "name": "OracleWithQuoteCreated",
84
+ "type": "event"
85
+ }
86
+ ],
87
+ "bytecode": "0x",
88
+ "deployedBytecode": "0x",
89
+ "linkReferences": {},
90
+ "deployedLinkReferences": {}
91
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/0d398f30f4c1fcac918853bc8b65073f.json"
4
+ }
@@ -0,0 +1,262 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IPChainlinkOracleWithQuote",
4
+ "sourceName": "contracts/interfaces/IPChainlinkOracleWithQuote.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "int256",
12
+ "name": "current",
13
+ "type": "int256"
14
+ },
15
+ {
16
+ "indexed": true,
17
+ "internalType": "uint256",
18
+ "name": "roundId",
19
+ "type": "uint256"
20
+ },
21
+ {
22
+ "indexed": false,
23
+ "internalType": "uint256",
24
+ "name": "updatedAt",
25
+ "type": "uint256"
26
+ }
27
+ ],
28
+ "name": "AnswerUpdated",
29
+ "type": "event"
30
+ },
31
+ {
32
+ "anonymous": false,
33
+ "inputs": [
34
+ {
35
+ "indexed": true,
36
+ "internalType": "uint256",
37
+ "name": "roundId",
38
+ "type": "uint256"
39
+ },
40
+ {
41
+ "indexed": true,
42
+ "internalType": "address",
43
+ "name": "startedBy",
44
+ "type": "address"
45
+ },
46
+ {
47
+ "indexed": false,
48
+ "internalType": "uint256",
49
+ "name": "startedAt",
50
+ "type": "uint256"
51
+ }
52
+ ],
53
+ "name": "NewRound",
54
+ "type": "event"
55
+ },
56
+ {
57
+ "inputs": [],
58
+ "name": "decimals",
59
+ "outputs": [
60
+ {
61
+ "internalType": "uint8",
62
+ "name": "",
63
+ "type": "uint8"
64
+ }
65
+ ],
66
+ "stateMutability": "view",
67
+ "type": "function"
68
+ },
69
+ {
70
+ "inputs": [],
71
+ "name": "description",
72
+ "outputs": [
73
+ {
74
+ "internalType": "string",
75
+ "name": "",
76
+ "type": "string"
77
+ }
78
+ ],
79
+ "stateMutability": "view",
80
+ "type": "function"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "uint256",
86
+ "name": "roundId",
87
+ "type": "uint256"
88
+ }
89
+ ],
90
+ "name": "getAnswer",
91
+ "outputs": [
92
+ {
93
+ "internalType": "int256",
94
+ "name": "",
95
+ "type": "int256"
96
+ }
97
+ ],
98
+ "stateMutability": "view",
99
+ "type": "function"
100
+ },
101
+ {
102
+ "inputs": [
103
+ {
104
+ "internalType": "uint80",
105
+ "name": "_roundId",
106
+ "type": "uint80"
107
+ }
108
+ ],
109
+ "name": "getRoundData",
110
+ "outputs": [
111
+ {
112
+ "internalType": "uint80",
113
+ "name": "roundId",
114
+ "type": "uint80"
115
+ },
116
+ {
117
+ "internalType": "int256",
118
+ "name": "answer",
119
+ "type": "int256"
120
+ },
121
+ {
122
+ "internalType": "uint256",
123
+ "name": "startedAt",
124
+ "type": "uint256"
125
+ },
126
+ {
127
+ "internalType": "uint256",
128
+ "name": "updatedAt",
129
+ "type": "uint256"
130
+ },
131
+ {
132
+ "internalType": "uint80",
133
+ "name": "answeredInRound",
134
+ "type": "uint80"
135
+ }
136
+ ],
137
+ "stateMutability": "view",
138
+ "type": "function"
139
+ },
140
+ {
141
+ "inputs": [
142
+ {
143
+ "internalType": "uint256",
144
+ "name": "roundId",
145
+ "type": "uint256"
146
+ }
147
+ ],
148
+ "name": "getTimestamp",
149
+ "outputs": [
150
+ {
151
+ "internalType": "uint256",
152
+ "name": "",
153
+ "type": "uint256"
154
+ }
155
+ ],
156
+ "stateMutability": "view",
157
+ "type": "function"
158
+ },
159
+ {
160
+ "inputs": [],
161
+ "name": "latestAnswer",
162
+ "outputs": [
163
+ {
164
+ "internalType": "int256",
165
+ "name": "",
166
+ "type": "int256"
167
+ }
168
+ ],
169
+ "stateMutability": "view",
170
+ "type": "function"
171
+ },
172
+ {
173
+ "inputs": [],
174
+ "name": "latestRound",
175
+ "outputs": [
176
+ {
177
+ "internalType": "uint256",
178
+ "name": "",
179
+ "type": "uint256"
180
+ }
181
+ ],
182
+ "stateMutability": "view",
183
+ "type": "function"
184
+ },
185
+ {
186
+ "inputs": [],
187
+ "name": "latestRoundData",
188
+ "outputs": [
189
+ {
190
+ "internalType": "uint80",
191
+ "name": "roundId",
192
+ "type": "uint80"
193
+ },
194
+ {
195
+ "internalType": "int256",
196
+ "name": "answer",
197
+ "type": "int256"
198
+ },
199
+ {
200
+ "internalType": "uint256",
201
+ "name": "startedAt",
202
+ "type": "uint256"
203
+ },
204
+ {
205
+ "internalType": "uint256",
206
+ "name": "updatedAt",
207
+ "type": "uint256"
208
+ },
209
+ {
210
+ "internalType": "uint80",
211
+ "name": "answeredInRound",
212
+ "type": "uint80"
213
+ }
214
+ ],
215
+ "stateMutability": "view",
216
+ "type": "function"
217
+ },
218
+ {
219
+ "inputs": [],
220
+ "name": "latestTimestamp",
221
+ "outputs": [
222
+ {
223
+ "internalType": "uint256",
224
+ "name": "",
225
+ "type": "uint256"
226
+ }
227
+ ],
228
+ "stateMutability": "view",
229
+ "type": "function"
230
+ },
231
+ {
232
+ "inputs": [],
233
+ "name": "quoteOracle",
234
+ "outputs": [
235
+ {
236
+ "internalType": "address",
237
+ "name": "",
238
+ "type": "address"
239
+ }
240
+ ],
241
+ "stateMutability": "view",
242
+ "type": "function"
243
+ },
244
+ {
245
+ "inputs": [],
246
+ "name": "version",
247
+ "outputs": [
248
+ {
249
+ "internalType": "uint256",
250
+ "name": "",
251
+ "type": "uint256"
252
+ }
253
+ ],
254
+ "stateMutability": "view",
255
+ "type": "function"
256
+ }
257
+ ],
258
+ "bytecode": "0x",
259
+ "deployedBytecode": "0x",
260
+ "linkReferences": {},
261
+ "deployedLinkReferences": {}
262
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/bfc355c438a051e3e76b16e2e0871cf0.json"
3
+ "buildInfo": "../../../../build-info/0d398f30f4c1fcac918853bc8b65073f.json"
4
4
  }
@@ -923,11 +923,6 @@
923
923
  "name": "InsufficientLpAmount",
924
924
  "type": "error"
925
925
  },
926
- {
927
- "inputs": [],
928
- "name": "InvalidAmountToDeposit",
929
- "type": "error"
930
- },
931
926
  {
932
927
  "inputs": [
933
928
  {
@@ -1389,11 +1384,6 @@
1389
1384
  "name": "NotEnoughAssets",
1390
1385
  "type": "error"
1391
1386
  },
1392
- {
1393
- "inputs": [],
1394
- "name": "NotEnoughLiquidity",
1395
- "type": "error"
1396
- },
1397
1387
  {
1398
1388
  "inputs": [
1399
1389
  {
@@ -1460,11 +1450,6 @@
1460
1450
  "name": "OnlyYT",
1461
1451
  "type": "error"
1462
1452
  },
1463
- {
1464
- "inputs": [],
1465
- "name": "OperationNotAllowed",
1466
- "type": "error"
1467
- },
1468
1453
  {
1469
1454
  "inputs": [
1470
1455
  {
@@ -2106,11 +2091,6 @@
2106
2091
  "name": "SupplyCapExceeded",
2107
2092
  "type": "error"
2108
2093
  },
2109
- {
2110
- "inputs": [],
2111
- "name": "TellerWithMultiAssetSupport__AssetNotSupported",
2112
- "type": "error"
2113
- },
2114
2094
  {
2115
2095
  "inputs": [],
2116
2096
  "name": "TransferFailed",
@@ -2318,11 +2298,6 @@
2318
2298
  "name": "ValueZero",
2319
2299
  "type": "error"
2320
2300
  },
2321
- {
2322
- "inputs": [],
2323
- "name": "WOMBAT_COV_RATIO_LIMIT_EXCEEDED",
2324
- "type": "error"
2325
- },
2326
2301
  {
2327
2302
  "inputs": [],
2328
2303
  "name": "WrongValue",
@@ -2432,8 +2407,8 @@
2432
2407
  "type": "error"
2433
2408
  }
2434
2409
  ],
2435
- "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b366f96be2882793a5efe1a525635ed7d8dc1998d0b3f53cea52025b48610ffd64736f6c63430008170033",
2436
- "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b366f96be2882793a5efe1a525635ed7d8dc1998d0b3f53cea52025b48610ffd64736f6c63430008170033",
2410
+ "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220c8f2dfcf4229ef216ec0f6022fa7af1d93c4dcfa23193e98d600cd7b5326bc9764736f6c63430008170033",
2411
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220c8f2dfcf4229ef216ec0f6022fa7af1d93c4dcfa23193e98d600cd7b5326bc9764736f6c63430008170033",
2437
2412
  "linkReferences": {},
2438
2413
  "deployedLinkReferences": {}
2439
2414
  }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/0d398f30f4c1fcac918853bc8b65073f.json"
4
+ }