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