@pendle/core-v2 0.6.6 → 0.6.8

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 (35) hide show
  1. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPendleGauge.dbg.json +4 -0
  2. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPendleGauge.json +113 -0
  3. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IVePToken.dbg.json +4 -0
  4. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IVePToken.json +43 -0
  5. package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IVotingEscrowPendle.dbg.json +4 -0
  6. package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IVotingEscrowPendle.json +167 -0
  7. package/build/artifacts/contracts/interfaces/IPVotingEscrowController.sol/VotingEscrowController.dbg.json +4 -0
  8. package/build/artifacts/contracts/interfaces/IPVotingEscrowController.sol/VotingEscrowController.json +61 -0
  9. package/build/artifacts/contracts/interfaces/IPendleGauge.sol/IPendleGauge.dbg.json +4 -0
  10. package/build/artifacts/contracts/interfaces/IPendleGauge.sol/IPendleGauge.json +113 -0
  11. package/build/artifacts/contracts/interfaces/IVePToken.sol/IVePToken.dbg.json +4 -0
  12. package/build/artifacts/contracts/interfaces/IVePToken.sol/IVePToken.json +43 -0
  13. package/build/artifacts/contracts/interfaces/IVotingEscrowController.sol/VotingEscrowController.dbg.json +4 -0
  14. package/build/artifacts/contracts/interfaces/IVotingEscrowController.sol/VotingEscrowController.json +61 -0
  15. package/build/artifacts/contracts/interfaces/IVotingEscrowPendle.sol/IVotingEscrowPendle.dbg.json +4 -0
  16. package/build/artifacts/contracts/interfaces/IVotingEscrowPendle.sol/IVotingEscrowPendle.json +167 -0
  17. package/contracts/interfaces/IPGauge.sol +32 -0
  18. package/contracts/interfaces/IPVeToken.sol +14 -0
  19. package/contracts/interfaces/IPVotingEscrow.sol +32 -0
  20. package/contracts/interfaces/IPVotingEscrowController.sol +14 -0
  21. package/contracts/interfaces/IPendleGauge.sol +32 -0
  22. package/contracts/interfaces/IVePToken.sol +14 -0
  23. package/contracts/interfaces/IVotingEscrowController.sol +14 -0
  24. package/contracts/interfaces/IVotingEscrowPendle.sol +32 -0
  25. package/package.json +1 -1
  26. package/typechain-types/IPendleGauge.ts +241 -0
  27. package/typechain-types/IVePToken.ts +103 -0
  28. package/typechain-types/IVotingEscrowPendle.ts +297 -0
  29. package/typechain-types/VotingEscrowController.ts +154 -0
  30. package/typechain-types/factories/IPendleGauge__factory.ts +125 -0
  31. package/typechain-types/factories/IVePToken__factory.ts +55 -0
  32. package/typechain-types/factories/IVotingEscrowPendle__factory.ts +182 -0
  33. package/typechain-types/factories/VotingEscrowController__factory.ts +80 -0
  34. package/typechain-types/hardhat.d.ts +72 -0
  35. package/typechain-types/index.ts +8 -0
@@ -0,0 +1,103 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import {
5
+ BaseContract,
6
+ BigNumber,
7
+ BytesLike,
8
+ CallOverrides,
9
+ PopulatedTransaction,
10
+ Signer,
11
+ utils,
12
+ } from "ethers";
13
+ import { FunctionFragment, Result } from "@ethersproject/abi";
14
+ import { Listener, Provider } from "@ethersproject/providers";
15
+ import type {
16
+ TypedEventFilter,
17
+ TypedEvent,
18
+ TypedListener,
19
+ OnEvent,
20
+ } from "./common";
21
+
22
+ export interface IVePTokenInterface extends utils.Interface {
23
+ contractName: "IVePToken";
24
+ functions: {
25
+ "balanceOf(address)": FunctionFragment;
26
+ "totalSupply()": FunctionFragment;
27
+ };
28
+
29
+ encodeFunctionData(functionFragment: "balanceOf", values: [string]): string;
30
+ encodeFunctionData(
31
+ functionFragment: "totalSupply",
32
+ values?: undefined
33
+ ): string;
34
+
35
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
36
+ decodeFunctionResult(
37
+ functionFragment: "totalSupply",
38
+ data: BytesLike
39
+ ): Result;
40
+
41
+ events: {};
42
+ }
43
+
44
+ export interface IVePToken extends BaseContract {
45
+ contractName: "IVePToken";
46
+ connect(signerOrProvider: Signer | Provider | string): this;
47
+ attach(addressOrName: string): this;
48
+ deployed(): Promise<this>;
49
+
50
+ interface: IVePTokenInterface;
51
+
52
+ queryFilter<TEvent extends TypedEvent>(
53
+ event: TypedEventFilter<TEvent>,
54
+ fromBlockOrBlockhash?: string | number | undefined,
55
+ toBlock?: string | number | undefined
56
+ ): Promise<Array<TEvent>>;
57
+
58
+ listeners<TEvent extends TypedEvent>(
59
+ eventFilter?: TypedEventFilter<TEvent>
60
+ ): Array<TypedListener<TEvent>>;
61
+ listeners(eventName?: string): Array<Listener>;
62
+ removeAllListeners<TEvent extends TypedEvent>(
63
+ eventFilter: TypedEventFilter<TEvent>
64
+ ): this;
65
+ removeAllListeners(eventName?: string): this;
66
+ off: OnEvent<this>;
67
+ on: OnEvent<this>;
68
+ once: OnEvent<this>;
69
+ removeListener: OnEvent<this>;
70
+
71
+ functions: {
72
+ balanceOf(user: string, overrides?: CallOverrides): Promise<[BigNumber]>;
73
+
74
+ totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>;
75
+ };
76
+
77
+ balanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;
78
+
79
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
80
+
81
+ callStatic: {
82
+ balanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;
83
+
84
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
85
+ };
86
+
87
+ filters: {};
88
+
89
+ estimateGas: {
90
+ balanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;
91
+
92
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
93
+ };
94
+
95
+ populateTransaction: {
96
+ balanceOf(
97
+ user: string,
98
+ overrides?: CallOverrides
99
+ ): Promise<PopulatedTransaction>;
100
+
101
+ totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
102
+ };
103
+ }
@@ -0,0 +1,297 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ BytesLike,
9
+ CallOverrides,
10
+ ContractTransaction,
11
+ Overrides,
12
+ PopulatedTransaction,
13
+ Signer,
14
+ utils,
15
+ } from "ethers";
16
+ import { FunctionFragment, Result } from "@ethersproject/abi";
17
+ import { Listener, Provider } from "@ethersproject/providers";
18
+ import type {
19
+ TypedEventFilter,
20
+ TypedEvent,
21
+ TypedListener,
22
+ OnEvent,
23
+ } from "./common";
24
+
25
+ export interface IVotingEscrowPendleInterface extends utils.Interface {
26
+ contractName: "IVotingEscrowPendle";
27
+ functions: {
28
+ "balanceOf(address)": FunctionFragment;
29
+ "increaseLockAmount(address)": FunctionFragment;
30
+ "increaseLockDuration(uint256)": FunctionFragment;
31
+ "lock(uint256)": FunctionFragment;
32
+ "readUserInfo(address)": FunctionFragment;
33
+ "totalSupply()": FunctionFragment;
34
+ "vote(address,uint256)": FunctionFragment;
35
+ "withdraw(address)": FunctionFragment;
36
+ };
37
+
38
+ encodeFunctionData(functionFragment: "balanceOf", values: [string]): string;
39
+ encodeFunctionData(
40
+ functionFragment: "increaseLockAmount",
41
+ values: [string]
42
+ ): string;
43
+ encodeFunctionData(
44
+ functionFragment: "increaseLockDuration",
45
+ values: [BigNumberish]
46
+ ): string;
47
+ encodeFunctionData(functionFragment: "lock", values: [BigNumberish]): string;
48
+ encodeFunctionData(
49
+ functionFragment: "readUserInfo",
50
+ values: [string]
51
+ ): string;
52
+ encodeFunctionData(
53
+ functionFragment: "totalSupply",
54
+ values?: undefined
55
+ ): string;
56
+ encodeFunctionData(
57
+ functionFragment: "vote",
58
+ values: [string, BigNumberish]
59
+ ): string;
60
+ encodeFunctionData(functionFragment: "withdraw", values: [string]): string;
61
+
62
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
63
+ decodeFunctionResult(
64
+ functionFragment: "increaseLockAmount",
65
+ data: BytesLike
66
+ ): Result;
67
+ decodeFunctionResult(
68
+ functionFragment: "increaseLockDuration",
69
+ data: BytesLike
70
+ ): Result;
71
+ decodeFunctionResult(functionFragment: "lock", data: BytesLike): Result;
72
+ decodeFunctionResult(
73
+ functionFragment: "readUserInfo",
74
+ data: BytesLike
75
+ ): Result;
76
+ decodeFunctionResult(
77
+ functionFragment: "totalSupply",
78
+ data: BytesLike
79
+ ): Result;
80
+ decodeFunctionResult(functionFragment: "vote", data: BytesLike): Result;
81
+ decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
82
+
83
+ events: {};
84
+ }
85
+
86
+ export interface IVotingEscrowPendle extends BaseContract {
87
+ contractName: "IVotingEscrowPendle";
88
+ connect(signerOrProvider: Signer | Provider | string): this;
89
+ attach(addressOrName: string): this;
90
+ deployed(): Promise<this>;
91
+
92
+ interface: IVotingEscrowPendleInterface;
93
+
94
+ queryFilter<TEvent extends TypedEvent>(
95
+ event: TypedEventFilter<TEvent>,
96
+ fromBlockOrBlockhash?: string | number | undefined,
97
+ toBlock?: string | number | undefined
98
+ ): Promise<Array<TEvent>>;
99
+
100
+ listeners<TEvent extends TypedEvent>(
101
+ eventFilter?: TypedEventFilter<TEvent>
102
+ ): Array<TypedListener<TEvent>>;
103
+ listeners(eventName?: string): Array<Listener>;
104
+ removeAllListeners<TEvent extends TypedEvent>(
105
+ eventFilter: TypedEventFilter<TEvent>
106
+ ): this;
107
+ removeAllListeners(eventName?: string): this;
108
+ off: OnEvent<this>;
109
+ on: OnEvent<this>;
110
+ once: OnEvent<this>;
111
+ removeListener: OnEvent<this>;
112
+
113
+ functions: {
114
+ balanceOf(user: string, overrides?: CallOverrides): Promise<[BigNumber]>;
115
+
116
+ increaseLockAmount(
117
+ receiver: string,
118
+ overrides?: Overrides & { from?: string | Promise<string> }
119
+ ): Promise<ContractTransaction>;
120
+
121
+ increaseLockDuration(
122
+ duration: BigNumberish,
123
+ overrides?: Overrides & { from?: string | Promise<string> }
124
+ ): Promise<ContractTransaction>;
125
+
126
+ lock(
127
+ expiry: BigNumberish,
128
+ overrides?: Overrides & { from?: string | Promise<string> }
129
+ ): Promise<ContractTransaction>;
130
+
131
+ readUserInfo(
132
+ user: string,
133
+ overrides?: CallOverrides
134
+ ): Promise<
135
+ [BigNumber, BigNumber] & { lockedAmount: BigNumber; expiry: BigNumber }
136
+ >;
137
+
138
+ totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>;
139
+
140
+ vote(
141
+ gauge: string,
142
+ weight: BigNumberish,
143
+ overrides?: Overrides & { from?: string | Promise<string> }
144
+ ): Promise<ContractTransaction>;
145
+
146
+ withdraw(
147
+ user: string,
148
+ overrides?: Overrides & { from?: string | Promise<string> }
149
+ ): Promise<ContractTransaction>;
150
+ };
151
+
152
+ balanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;
153
+
154
+ increaseLockAmount(
155
+ receiver: string,
156
+ overrides?: Overrides & { from?: string | Promise<string> }
157
+ ): Promise<ContractTransaction>;
158
+
159
+ increaseLockDuration(
160
+ duration: BigNumberish,
161
+ overrides?: Overrides & { from?: string | Promise<string> }
162
+ ): Promise<ContractTransaction>;
163
+
164
+ lock(
165
+ expiry: BigNumberish,
166
+ overrides?: Overrides & { from?: string | Promise<string> }
167
+ ): Promise<ContractTransaction>;
168
+
169
+ readUserInfo(
170
+ user: string,
171
+ overrides?: CallOverrides
172
+ ): Promise<
173
+ [BigNumber, BigNumber] & { lockedAmount: BigNumber; expiry: BigNumber }
174
+ >;
175
+
176
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
177
+
178
+ vote(
179
+ gauge: string,
180
+ weight: BigNumberish,
181
+ overrides?: Overrides & { from?: string | Promise<string> }
182
+ ): Promise<ContractTransaction>;
183
+
184
+ withdraw(
185
+ user: string,
186
+ overrides?: Overrides & { from?: string | Promise<string> }
187
+ ): Promise<ContractTransaction>;
188
+
189
+ callStatic: {
190
+ balanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;
191
+
192
+ increaseLockAmount(
193
+ receiver: string,
194
+ overrides?: CallOverrides
195
+ ): Promise<BigNumber>;
196
+
197
+ increaseLockDuration(
198
+ duration: BigNumberish,
199
+ overrides?: CallOverrides
200
+ ): Promise<BigNumber>;
201
+
202
+ lock(expiry: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
203
+
204
+ readUserInfo(
205
+ user: string,
206
+ overrides?: CallOverrides
207
+ ): Promise<
208
+ [BigNumber, BigNumber] & { lockedAmount: BigNumber; expiry: BigNumber }
209
+ >;
210
+
211
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
212
+
213
+ vote(
214
+ gauge: string,
215
+ weight: BigNumberish,
216
+ overrides?: CallOverrides
217
+ ): Promise<BigNumber>;
218
+
219
+ withdraw(user: string, overrides?: CallOverrides): Promise<BigNumber>;
220
+ };
221
+
222
+ filters: {};
223
+
224
+ estimateGas: {
225
+ balanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;
226
+
227
+ increaseLockAmount(
228
+ receiver: string,
229
+ overrides?: Overrides & { from?: string | Promise<string> }
230
+ ): Promise<BigNumber>;
231
+
232
+ increaseLockDuration(
233
+ duration: BigNumberish,
234
+ overrides?: Overrides & { from?: string | Promise<string> }
235
+ ): Promise<BigNumber>;
236
+
237
+ lock(
238
+ expiry: BigNumberish,
239
+ overrides?: Overrides & { from?: string | Promise<string> }
240
+ ): Promise<BigNumber>;
241
+
242
+ readUserInfo(user: string, overrides?: CallOverrides): Promise<BigNumber>;
243
+
244
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
245
+
246
+ vote(
247
+ gauge: string,
248
+ weight: BigNumberish,
249
+ overrides?: Overrides & { from?: string | Promise<string> }
250
+ ): Promise<BigNumber>;
251
+
252
+ withdraw(
253
+ user: string,
254
+ overrides?: Overrides & { from?: string | Promise<string> }
255
+ ): Promise<BigNumber>;
256
+ };
257
+
258
+ populateTransaction: {
259
+ balanceOf(
260
+ user: string,
261
+ overrides?: CallOverrides
262
+ ): Promise<PopulatedTransaction>;
263
+
264
+ increaseLockAmount(
265
+ receiver: string,
266
+ overrides?: Overrides & { from?: string | Promise<string> }
267
+ ): Promise<PopulatedTransaction>;
268
+
269
+ increaseLockDuration(
270
+ duration: BigNumberish,
271
+ overrides?: Overrides & { from?: string | Promise<string> }
272
+ ): Promise<PopulatedTransaction>;
273
+
274
+ lock(
275
+ expiry: BigNumberish,
276
+ overrides?: Overrides & { from?: string | Promise<string> }
277
+ ): Promise<PopulatedTransaction>;
278
+
279
+ readUserInfo(
280
+ user: string,
281
+ overrides?: CallOverrides
282
+ ): Promise<PopulatedTransaction>;
283
+
284
+ totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
285
+
286
+ vote(
287
+ gauge: string,
288
+ weight: BigNumberish,
289
+ overrides?: Overrides & { from?: string | Promise<string> }
290
+ ): Promise<PopulatedTransaction>;
291
+
292
+ withdraw(
293
+ user: string,
294
+ overrides?: Overrides & { from?: string | Promise<string> }
295
+ ): Promise<PopulatedTransaction>;
296
+ };
297
+ }
@@ -0,0 +1,154 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import {
5
+ BaseContract,
6
+ BigNumber,
7
+ BytesLike,
8
+ CallOverrides,
9
+ ContractTransaction,
10
+ Overrides,
11
+ PopulatedTransaction,
12
+ Signer,
13
+ utils,
14
+ } from "ethers";
15
+ import { FunctionFragment, Result } from "@ethersproject/abi";
16
+ import { Listener, Provider } from "@ethersproject/providers";
17
+ import type {
18
+ TypedEventFilter,
19
+ TypedEvent,
20
+ TypedListener,
21
+ OnEvent,
22
+ } from "./common";
23
+
24
+ export interface VotingEscrowControllerInterface extends utils.Interface {
25
+ contractName: "VotingEscrowController";
26
+ functions: {
27
+ "pendlePerSec()": FunctionFragment;
28
+ "readPoolRewardInfo(address)": FunctionFragment;
29
+ "totalVote()": FunctionFragment;
30
+ };
31
+
32
+ encodeFunctionData(
33
+ functionFragment: "pendlePerSec",
34
+ values?: undefined
35
+ ): string;
36
+ encodeFunctionData(
37
+ functionFragment: "readPoolRewardInfo",
38
+ values: [string]
39
+ ): string;
40
+ encodeFunctionData(functionFragment: "totalVote", values?: undefined): string;
41
+
42
+ decodeFunctionResult(
43
+ functionFragment: "pendlePerSec",
44
+ data: BytesLike
45
+ ): Result;
46
+ decodeFunctionResult(
47
+ functionFragment: "readPoolRewardInfo",
48
+ data: BytesLike
49
+ ): Result;
50
+ decodeFunctionResult(functionFragment: "totalVote", data: BytesLike): Result;
51
+
52
+ events: {};
53
+ }
54
+
55
+ export interface VotingEscrowController extends BaseContract {
56
+ contractName: "VotingEscrowController";
57
+ connect(signerOrProvider: Signer | Provider | string): this;
58
+ attach(addressOrName: string): this;
59
+ deployed(): Promise<this>;
60
+
61
+ interface: VotingEscrowControllerInterface;
62
+
63
+ queryFilter<TEvent extends TypedEvent>(
64
+ event: TypedEventFilter<TEvent>,
65
+ fromBlockOrBlockhash?: string | number | undefined,
66
+ toBlock?: string | number | undefined
67
+ ): Promise<Array<TEvent>>;
68
+
69
+ listeners<TEvent extends TypedEvent>(
70
+ eventFilter?: TypedEventFilter<TEvent>
71
+ ): Array<TypedListener<TEvent>>;
72
+ listeners(eventName?: string): Array<Listener>;
73
+ removeAllListeners<TEvent extends TypedEvent>(
74
+ eventFilter: TypedEventFilter<TEvent>
75
+ ): this;
76
+ removeAllListeners(eventName?: string): this;
77
+ off: OnEvent<this>;
78
+ on: OnEvent<this>;
79
+ once: OnEvent<this>;
80
+ removeListener: OnEvent<this>;
81
+
82
+ functions: {
83
+ pendlePerSec(
84
+ overrides?: Overrides & { from?: string | Promise<string> }
85
+ ): Promise<ContractTransaction>;
86
+
87
+ readPoolRewardInfo(
88
+ pool: string,
89
+ overrides?: Overrides & { from?: string | Promise<string> }
90
+ ): Promise<ContractTransaction>;
91
+
92
+ totalVote(
93
+ overrides?: Overrides & { from?: string | Promise<string> }
94
+ ): Promise<ContractTransaction>;
95
+ };
96
+
97
+ pendlePerSec(
98
+ overrides?: Overrides & { from?: string | Promise<string> }
99
+ ): Promise<ContractTransaction>;
100
+
101
+ readPoolRewardInfo(
102
+ pool: string,
103
+ overrides?: Overrides & { from?: string | Promise<string> }
104
+ ): Promise<ContractTransaction>;
105
+
106
+ totalVote(
107
+ overrides?: Overrides & { from?: string | Promise<string> }
108
+ ): Promise<ContractTransaction>;
109
+
110
+ callStatic: {
111
+ pendlePerSec(overrides?: CallOverrides): Promise<BigNumber>;
112
+
113
+ readPoolRewardInfo(
114
+ pool: string,
115
+ overrides?: CallOverrides
116
+ ): Promise<
117
+ [BigNumber, BigNumber] & { vote: BigNumber; pendleSpeed: BigNumber }
118
+ >;
119
+
120
+ totalVote(overrides?: CallOverrides): Promise<BigNumber>;
121
+ };
122
+
123
+ filters: {};
124
+
125
+ estimateGas: {
126
+ pendlePerSec(
127
+ overrides?: Overrides & { from?: string | Promise<string> }
128
+ ): Promise<BigNumber>;
129
+
130
+ readPoolRewardInfo(
131
+ pool: string,
132
+ overrides?: Overrides & { from?: string | Promise<string> }
133
+ ): Promise<BigNumber>;
134
+
135
+ totalVote(
136
+ overrides?: Overrides & { from?: string | Promise<string> }
137
+ ): Promise<BigNumber>;
138
+ };
139
+
140
+ populateTransaction: {
141
+ pendlePerSec(
142
+ overrides?: Overrides & { from?: string | Promise<string> }
143
+ ): Promise<PopulatedTransaction>;
144
+
145
+ readPoolRewardInfo(
146
+ pool: string,
147
+ overrides?: Overrides & { from?: string | Promise<string> }
148
+ ): Promise<PopulatedTransaction>;
149
+
150
+ totalVote(
151
+ overrides?: Overrides & { from?: string | Promise<string> }
152
+ ): Promise<PopulatedTransaction>;
153
+ };
154
+ }
@@ -0,0 +1,125 @@
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 { IPendleGauge, IPendleGaugeInterface } from "../IPendleGauge";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [],
12
+ name: "readGlobalInfo",
13
+ outputs: [
14
+ {
15
+ internalType: "uint256",
16
+ name: "totalLpStaked",
17
+ type: "uint256",
18
+ },
19
+ {
20
+ internalType: "uint256",
21
+ name: "totalActiveLp",
22
+ type: "uint256",
23
+ },
24
+ {
25
+ internalType: "uint256",
26
+ name: "pendlePerSec",
27
+ type: "uint256",
28
+ },
29
+ ],
30
+ stateMutability: "nonpayable",
31
+ type: "function",
32
+ },
33
+ {
34
+ inputs: [
35
+ {
36
+ internalType: "address",
37
+ name: "user",
38
+ type: "address",
39
+ },
40
+ ],
41
+ name: "readUserInfo",
42
+ outputs: [
43
+ {
44
+ internalType: "uint256",
45
+ name: "lpStaked",
46
+ type: "uint256",
47
+ },
48
+ {
49
+ internalType: "uint256",
50
+ name: "activeLpAmount",
51
+ type: "uint256",
52
+ },
53
+ {
54
+ internalType: "uint256",
55
+ name: "accruedReward",
56
+ type: "uint256",
57
+ },
58
+ ],
59
+ stateMutability: "nonpayable",
60
+ type: "function",
61
+ },
62
+ {
63
+ inputs: [
64
+ {
65
+ internalType: "address",
66
+ name: "receiver",
67
+ type: "address",
68
+ },
69
+ ],
70
+ name: "redeemReward",
71
+ outputs: [
72
+ {
73
+ internalType: "uint256",
74
+ name: "redeemedReward",
75
+ type: "uint256",
76
+ },
77
+ ],
78
+ stateMutability: "nonpayable",
79
+ type: "function",
80
+ },
81
+ {
82
+ inputs: [
83
+ {
84
+ internalType: "address",
85
+ name: "receiver",
86
+ type: "address",
87
+ },
88
+ ],
89
+ name: "stake",
90
+ outputs: [],
91
+ stateMutability: "nonpayable",
92
+ type: "function",
93
+ },
94
+ {
95
+ inputs: [
96
+ {
97
+ internalType: "address",
98
+ name: "receiver",
99
+ type: "address",
100
+ },
101
+ {
102
+ internalType: "uint256",
103
+ name: "amount",
104
+ type: "uint256",
105
+ },
106
+ ],
107
+ name: "withdraw",
108
+ outputs: [],
109
+ stateMutability: "nonpayable",
110
+ type: "function",
111
+ },
112
+ ];
113
+
114
+ export class IPendleGauge__factory {
115
+ static readonly abi = _abi;
116
+ static createInterface(): IPendleGaugeInterface {
117
+ return new utils.Interface(_abi) as IPendleGaugeInterface;
118
+ }
119
+ static connect(
120
+ address: string,
121
+ signerOrProvider: Signer | Provider
122
+ ): IPendleGauge {
123
+ return new Contract(address, _abi, signerOrProvider) as IPendleGauge;
124
+ }
125
+ }