@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,55 @@
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 { IVePToken, IVePTokenInterface } from "../IVePToken";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [
12
+ {
13
+ internalType: "address",
14
+ name: "user",
15
+ type: "address",
16
+ },
17
+ ],
18
+ name: "balanceOf",
19
+ outputs: [
20
+ {
21
+ internalType: "uint256",
22
+ name: "",
23
+ type: "uint256",
24
+ },
25
+ ],
26
+ stateMutability: "view",
27
+ type: "function",
28
+ },
29
+ {
30
+ inputs: [],
31
+ name: "totalSupply",
32
+ outputs: [
33
+ {
34
+ internalType: "uint256",
35
+ name: "",
36
+ type: "uint256",
37
+ },
38
+ ],
39
+ stateMutability: "view",
40
+ type: "function",
41
+ },
42
+ ];
43
+
44
+ export class IVePToken__factory {
45
+ static readonly abi = _abi;
46
+ static createInterface(): IVePTokenInterface {
47
+ return new utils.Interface(_abi) as IVePTokenInterface;
48
+ }
49
+ static connect(
50
+ address: string,
51
+ signerOrProvider: Signer | Provider
52
+ ): IVePToken {
53
+ return new Contract(address, _abi, signerOrProvider) as IVePToken;
54
+ }
55
+ }
@@ -0,0 +1,182 @@
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
+ IVotingEscrowPendle,
9
+ IVotingEscrowPendleInterface,
10
+ } from "../IVotingEscrowPendle";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "user",
18
+ type: "address",
19
+ },
20
+ ],
21
+ name: "balanceOf",
22
+ outputs: [
23
+ {
24
+ internalType: "uint256",
25
+ name: "",
26
+ type: "uint256",
27
+ },
28
+ ],
29
+ stateMutability: "view",
30
+ type: "function",
31
+ },
32
+ {
33
+ inputs: [
34
+ {
35
+ internalType: "address",
36
+ name: "receiver",
37
+ type: "address",
38
+ },
39
+ ],
40
+ name: "increaseLockAmount",
41
+ outputs: [
42
+ {
43
+ internalType: "uint256",
44
+ name: "",
45
+ type: "uint256",
46
+ },
47
+ ],
48
+ stateMutability: "nonpayable",
49
+ type: "function",
50
+ },
51
+ {
52
+ inputs: [
53
+ {
54
+ internalType: "uint256",
55
+ name: "duration",
56
+ type: "uint256",
57
+ },
58
+ ],
59
+ name: "increaseLockDuration",
60
+ outputs: [
61
+ {
62
+ internalType: "uint256",
63
+ name: "",
64
+ type: "uint256",
65
+ },
66
+ ],
67
+ stateMutability: "nonpayable",
68
+ type: "function",
69
+ },
70
+ {
71
+ inputs: [
72
+ {
73
+ internalType: "uint256",
74
+ name: "expiry",
75
+ type: "uint256",
76
+ },
77
+ ],
78
+ name: "lock",
79
+ outputs: [
80
+ {
81
+ internalType: "uint256",
82
+ name: "",
83
+ type: "uint256",
84
+ },
85
+ ],
86
+ stateMutability: "nonpayable",
87
+ type: "function",
88
+ },
89
+ {
90
+ inputs: [
91
+ {
92
+ internalType: "address",
93
+ name: "user",
94
+ type: "address",
95
+ },
96
+ ],
97
+ name: "readUserInfo",
98
+ outputs: [
99
+ {
100
+ internalType: "uint256",
101
+ name: "lockedAmount",
102
+ type: "uint256",
103
+ },
104
+ {
105
+ internalType: "uint256",
106
+ name: "expiry",
107
+ type: "uint256",
108
+ },
109
+ ],
110
+ stateMutability: "view",
111
+ type: "function",
112
+ },
113
+ {
114
+ inputs: [],
115
+ name: "totalSupply",
116
+ outputs: [
117
+ {
118
+ internalType: "uint256",
119
+ name: "",
120
+ type: "uint256",
121
+ },
122
+ ],
123
+ stateMutability: "view",
124
+ type: "function",
125
+ },
126
+ {
127
+ inputs: [
128
+ {
129
+ internalType: "address",
130
+ name: "gauge",
131
+ type: "address",
132
+ },
133
+ {
134
+ internalType: "uint256",
135
+ name: "weight",
136
+ type: "uint256",
137
+ },
138
+ ],
139
+ name: "vote",
140
+ outputs: [
141
+ {
142
+ internalType: "uint256",
143
+ name: "amount",
144
+ type: "uint256",
145
+ },
146
+ ],
147
+ stateMutability: "nonpayable",
148
+ type: "function",
149
+ },
150
+ {
151
+ inputs: [
152
+ {
153
+ internalType: "address",
154
+ name: "user",
155
+ type: "address",
156
+ },
157
+ ],
158
+ name: "withdraw",
159
+ outputs: [
160
+ {
161
+ internalType: "uint256",
162
+ name: "",
163
+ type: "uint256",
164
+ },
165
+ ],
166
+ stateMutability: "nonpayable",
167
+ type: "function",
168
+ },
169
+ ];
170
+
171
+ export class IVotingEscrowPendle__factory {
172
+ static readonly abi = _abi;
173
+ static createInterface(): IVotingEscrowPendleInterface {
174
+ return new utils.Interface(_abi) as IVotingEscrowPendleInterface;
175
+ }
176
+ static connect(
177
+ address: string,
178
+ signerOrProvider: Signer | Provider
179
+ ): IVotingEscrowPendle {
180
+ return new Contract(address, _abi, signerOrProvider) as IVotingEscrowPendle;
181
+ }
182
+ }
@@ -0,0 +1,80 @@
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
+ VotingEscrowController,
9
+ VotingEscrowControllerInterface,
10
+ } from "../VotingEscrowController";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "pendlePerSec",
16
+ outputs: [
17
+ {
18
+ internalType: "uint256",
19
+ name: "",
20
+ type: "uint256",
21
+ },
22
+ ],
23
+ stateMutability: "nonpayable",
24
+ type: "function",
25
+ },
26
+ {
27
+ inputs: [
28
+ {
29
+ internalType: "address",
30
+ name: "pool",
31
+ type: "address",
32
+ },
33
+ ],
34
+ name: "readPoolRewardInfo",
35
+ outputs: [
36
+ {
37
+ internalType: "uint256",
38
+ name: "vote",
39
+ type: "uint256",
40
+ },
41
+ {
42
+ internalType: "uint256",
43
+ name: "pendleSpeed",
44
+ type: "uint256",
45
+ },
46
+ ],
47
+ stateMutability: "nonpayable",
48
+ type: "function",
49
+ },
50
+ {
51
+ inputs: [],
52
+ name: "totalVote",
53
+ outputs: [
54
+ {
55
+ internalType: "uint256",
56
+ name: "",
57
+ type: "uint256",
58
+ },
59
+ ],
60
+ stateMutability: "nonpayable",
61
+ type: "function",
62
+ },
63
+ ];
64
+
65
+ export class VotingEscrowController__factory {
66
+ static readonly abi = _abi;
67
+ static createInterface(): VotingEscrowControllerInterface {
68
+ return new utils.Interface(_abi) as VotingEscrowControllerInterface;
69
+ }
70
+ static connect(
71
+ address: string,
72
+ signerOrProvider: Signer | Provider
73
+ ): VotingEscrowController {
74
+ return new Contract(
75
+ address,
76
+ _abi,
77
+ signerOrProvider
78
+ ) as VotingEscrowController;
79
+ }
80
+ }
@@ -168,6 +168,14 @@ declare module "hardhat/types/runtime" {
168
168
  name: "IPBaseToken",
169
169
  signerOrOptions?: ethers.Signer | FactoryOptions
170
170
  ): Promise<Contracts.IPBaseToken__factory>;
171
+ getContractFactory(
172
+ name: "IPendleGauge",
173
+ signerOrOptions?: ethers.Signer | FactoryOptions
174
+ ): Promise<Contracts.IPendleGauge__factory>;
175
+ getContractFactory(
176
+ name: "IPendleGauge",
177
+ signerOrOptions?: ethers.Signer | FactoryOptions
178
+ ): Promise<Contracts.IPendleGauge__factory>;
171
179
  getContractFactory(
172
180
  name: "IPGovernanceManager",
173
181
  signerOrOptions?: ethers.Signer | FactoryOptions
@@ -200,6 +208,18 @@ declare module "hardhat/types/runtime" {
200
208
  name: "IPRouterStatic",
201
209
  signerOrOptions?: ethers.Signer | FactoryOptions
202
210
  ): Promise<Contracts.IPRouterStatic__factory>;
211
+ getContractFactory(
212
+ name: "IVePToken",
213
+ signerOrOptions?: ethers.Signer | FactoryOptions
214
+ ): Promise<Contracts.IVePToken__factory>;
215
+ getContractFactory(
216
+ name: "IVotingEscrowPendle",
217
+ signerOrOptions?: ethers.Signer | FactoryOptions
218
+ ): Promise<Contracts.IVotingEscrowPendle__factory>;
219
+ getContractFactory(
220
+ name: "VotingEscrowController",
221
+ signerOrOptions?: ethers.Signer | FactoryOptions
222
+ ): Promise<Contracts.VotingEscrowController__factory>;
203
223
  getContractFactory(
204
224
  name: "IPYieldContractFactory",
205
225
  signerOrOptions?: ethers.Signer | FactoryOptions
@@ -220,6 +240,18 @@ declare module "hardhat/types/runtime" {
220
240
  name: "IREDACTEDStaking",
221
241
  signerOrOptions?: ethers.Signer | FactoryOptions
222
242
  ): Promise<Contracts.IREDACTEDStaking__factory>;
243
+ getContractFactory(
244
+ name: "IVePToken",
245
+ signerOrOptions?: ethers.Signer | FactoryOptions
246
+ ): Promise<Contracts.IVePToken__factory>;
247
+ getContractFactory(
248
+ name: "VotingEscrowController",
249
+ signerOrOptions?: ethers.Signer | FactoryOptions
250
+ ): Promise<Contracts.VotingEscrowController__factory>;
251
+ getContractFactory(
252
+ name: "IVotingEscrowPendle",
253
+ signerOrOptions?: ethers.Signer | FactoryOptions
254
+ ): Promise<Contracts.IVotingEscrowPendle__factory>;
223
255
  getContractFactory(
224
256
  name: "IWETH",
225
257
  signerOrOptions?: ethers.Signer | FactoryOptions
@@ -464,6 +496,16 @@ declare module "hardhat/types/runtime" {
464
496
  address: string,
465
497
  signer?: ethers.Signer
466
498
  ): Promise<Contracts.IPBaseToken>;
499
+ getContractAt(
500
+ name: "IPendleGauge",
501
+ address: string,
502
+ signer?: ethers.Signer
503
+ ): Promise<Contracts.IPendleGauge>;
504
+ getContractAt(
505
+ name: "IPendleGauge",
506
+ address: string,
507
+ signer?: ethers.Signer
508
+ ): Promise<Contracts.IPendleGauge>;
467
509
  getContractAt(
468
510
  name: "IPGovernanceManager",
469
511
  address: string,
@@ -504,6 +546,21 @@ declare module "hardhat/types/runtime" {
504
546
  address: string,
505
547
  signer?: ethers.Signer
506
548
  ): Promise<Contracts.IPRouterStatic>;
549
+ getContractAt(
550
+ name: "IVePToken",
551
+ address: string,
552
+ signer?: ethers.Signer
553
+ ): Promise<Contracts.IVePToken>;
554
+ getContractAt(
555
+ name: "IVotingEscrowPendle",
556
+ address: string,
557
+ signer?: ethers.Signer
558
+ ): Promise<Contracts.IVotingEscrowPendle>;
559
+ getContractAt(
560
+ name: "VotingEscrowController",
561
+ address: string,
562
+ signer?: ethers.Signer
563
+ ): Promise<Contracts.VotingEscrowController>;
507
564
  getContractAt(
508
565
  name: "IPYieldContractFactory",
509
566
  address: string,
@@ -529,6 +586,21 @@ declare module "hardhat/types/runtime" {
529
586
  address: string,
530
587
  signer?: ethers.Signer
531
588
  ): Promise<Contracts.IREDACTEDStaking>;
589
+ getContractAt(
590
+ name: "IVePToken",
591
+ address: string,
592
+ signer?: ethers.Signer
593
+ ): Promise<Contracts.IVePToken>;
594
+ getContractAt(
595
+ name: "VotingEscrowController",
596
+ address: string,
597
+ signer?: ethers.Signer
598
+ ): Promise<Contracts.VotingEscrowController>;
599
+ getContractAt(
600
+ name: "IVotingEscrowPendle",
601
+ address: string,
602
+ signer?: ethers.Signer
603
+ ): Promise<Contracts.IVotingEscrowPendle>;
532
604
  getContractAt(
533
605
  name: "IWETH",
534
606
  address: string,
@@ -40,6 +40,7 @@ export type { IPActionRedeem } from "./IPActionRedeem";
40
40
  export type { IPActionYT } from "./IPActionYT";
41
41
  export type { IPAllAction } from "./IPAllAction";
42
42
  export type { IPBaseToken } from "./IPBaseToken";
43
+ export type { IPendleGauge } from "./IPendleGauge";
43
44
  export type { IPGovernanceManager } from "./IPGovernanceManager";
44
45
  export type { IPMarket } from "./IPMarket";
45
46
  export type { IPMarketAddRemoveCallback } from "./IPMarketAddRemoveCallback";
@@ -48,6 +49,9 @@ export type { IPMarketSwapCallback } from "./IPMarketSwapCallback";
48
49
  export type { IPermissionsV2Upg } from "./IPermissionsV2Upg";
49
50
  export type { IPPrincipalToken } from "./IPPrincipalToken";
50
51
  export type { IPRouterStatic } from "./IPRouterStatic";
52
+ export type { IVePToken } from "./IVePToken";
53
+ export type { IVotingEscrowPendle } from "./IVotingEscrowPendle";
54
+ export type { VotingEscrowController } from "./VotingEscrowController";
51
55
  export type { IPYieldContractFactory } from "./IPYieldContractFactory";
52
56
  export type { IPYieldToken } from "./IPYieldToken";
53
57
  export type { IQiErc20 } from "./IQiErc20";
@@ -105,6 +109,7 @@ export { IPActionRedeem__factory } from "./factories/IPActionRedeem__factory";
105
109
  export { IPActionYT__factory } from "./factories/IPActionYT__factory";
106
110
  export { IPAllAction__factory } from "./factories/IPAllAction__factory";
107
111
  export { IPBaseToken__factory } from "./factories/IPBaseToken__factory";
112
+ export { IPendleGauge__factory } from "./factories/IPendleGauge__factory";
108
113
  export { IPGovernanceManager__factory } from "./factories/IPGovernanceManager__factory";
109
114
  export { IPMarket__factory } from "./factories/IPMarket__factory";
110
115
  export { IPMarketAddRemoveCallback__factory } from "./factories/IPMarketAddRemoveCallback__factory";
@@ -113,6 +118,9 @@ export { IPMarketSwapCallback__factory } from "./factories/IPMarketSwapCallback_
113
118
  export { IPermissionsV2Upg__factory } from "./factories/IPermissionsV2Upg__factory";
114
119
  export { IPPrincipalToken__factory } from "./factories/IPPrincipalToken__factory";
115
120
  export { IPRouterStatic__factory } from "./factories/IPRouterStatic__factory";
121
+ export { IVePToken__factory } from "./factories/IVePToken__factory";
122
+ export { IVotingEscrowPendle__factory } from "./factories/IVotingEscrowPendle__factory";
123
+ export { VotingEscrowController__factory } from "./factories/VotingEscrowController__factory";
116
124
  export { IPYieldContractFactory__factory } from "./factories/IPYieldContractFactory__factory";
117
125
  export { IPYieldToken__factory } from "./factories/IPYieldToken__factory";
118
126
  export { IQiErc20__factory } from "./factories/IQiErc20__factory";