@pendle/core-v2 0.6.6 → 0.6.7
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/interfaces/IPendleGauge.sol/IPendleGauge.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPendleGauge.sol/IPendleGauge.json +113 -0
- package/build/artifacts/contracts/interfaces/IVePToken.sol/IVePToken.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IVePToken.sol/IVePToken.json +43 -0
- package/build/artifacts/contracts/interfaces/IVotingEscrowController.sol/VotingEscrowController.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IVotingEscrowController.sol/VotingEscrowController.json +61 -0
- package/build/artifacts/contracts/interfaces/IVotingEscrowPendle.sol/IVotingEscrowPendle.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IVotingEscrowPendle.sol/IVotingEscrowPendle.json +167 -0
- package/contracts/interfaces/IPendleGauge.sol +32 -0
- package/contracts/interfaces/IVePToken.sol +14 -0
- package/contracts/interfaces/IVotingEscrowController.sol +14 -0
- package/contracts/interfaces/IVotingEscrowPendle.sol +32 -0
- package/package.json +1 -1
- package/typechain-types/IPendleGauge.ts +241 -0
- package/typechain-types/IVePToken.ts +103 -0
- package/typechain-types/IVotingEscrowPendle.ts +297 -0
- package/typechain-types/VotingEscrowController.ts +154 -0
- package/typechain-types/factories/IPendleGauge__factory.ts +125 -0
- package/typechain-types/factories/IVePToken__factory.ts +55 -0
- package/typechain-types/factories/IVotingEscrowPendle__factory.ts +182 -0
- package/typechain-types/factories/VotingEscrowController__factory.ts +80 -0
- package/typechain-types/hardhat.d.ts +36 -0
- package/typechain-types/index.ts +8 -0
|
@@ -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
|
+
}
|
|
@@ -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,10 @@ 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>;
|
|
171
175
|
getContractFactory(
|
|
172
176
|
name: "IPGovernanceManager",
|
|
173
177
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
@@ -220,6 +224,18 @@ declare module "hardhat/types/runtime" {
|
|
|
220
224
|
name: "IREDACTEDStaking",
|
|
221
225
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
222
226
|
): Promise<Contracts.IREDACTEDStaking__factory>;
|
|
227
|
+
getContractFactory(
|
|
228
|
+
name: "IVePToken",
|
|
229
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
230
|
+
): Promise<Contracts.IVePToken__factory>;
|
|
231
|
+
getContractFactory(
|
|
232
|
+
name: "VotingEscrowController",
|
|
233
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
234
|
+
): Promise<Contracts.VotingEscrowController__factory>;
|
|
235
|
+
getContractFactory(
|
|
236
|
+
name: "IVotingEscrowPendle",
|
|
237
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
238
|
+
): Promise<Contracts.IVotingEscrowPendle__factory>;
|
|
223
239
|
getContractFactory(
|
|
224
240
|
name: "IWETH",
|
|
225
241
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
@@ -464,6 +480,11 @@ declare module "hardhat/types/runtime" {
|
|
|
464
480
|
address: string,
|
|
465
481
|
signer?: ethers.Signer
|
|
466
482
|
): Promise<Contracts.IPBaseToken>;
|
|
483
|
+
getContractAt(
|
|
484
|
+
name: "IPendleGauge",
|
|
485
|
+
address: string,
|
|
486
|
+
signer?: ethers.Signer
|
|
487
|
+
): Promise<Contracts.IPendleGauge>;
|
|
467
488
|
getContractAt(
|
|
468
489
|
name: "IPGovernanceManager",
|
|
469
490
|
address: string,
|
|
@@ -529,6 +550,21 @@ declare module "hardhat/types/runtime" {
|
|
|
529
550
|
address: string,
|
|
530
551
|
signer?: ethers.Signer
|
|
531
552
|
): Promise<Contracts.IREDACTEDStaking>;
|
|
553
|
+
getContractAt(
|
|
554
|
+
name: "IVePToken",
|
|
555
|
+
address: string,
|
|
556
|
+
signer?: ethers.Signer
|
|
557
|
+
): Promise<Contracts.IVePToken>;
|
|
558
|
+
getContractAt(
|
|
559
|
+
name: "VotingEscrowController",
|
|
560
|
+
address: string,
|
|
561
|
+
signer?: ethers.Signer
|
|
562
|
+
): Promise<Contracts.VotingEscrowController>;
|
|
563
|
+
getContractAt(
|
|
564
|
+
name: "IVotingEscrowPendle",
|
|
565
|
+
address: string,
|
|
566
|
+
signer?: ethers.Signer
|
|
567
|
+
): Promise<Contracts.IVotingEscrowPendle>;
|
|
532
568
|
getContractAt(
|
|
533
569
|
name: "IWETH",
|
|
534
570
|
address: string,
|
package/typechain-types/index.ts
CHANGED
|
@@ -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";
|
|
@@ -53,6 +54,9 @@ export type { IPYieldToken } from "./IPYieldToken";
|
|
|
53
54
|
export type { IQiErc20 } from "./IQiErc20";
|
|
54
55
|
export type { IQiToken } from "./IQiToken";
|
|
55
56
|
export type { IREDACTEDStaking } from "./IREDACTEDStaking";
|
|
57
|
+
export type { IVePToken } from "./IVePToken";
|
|
58
|
+
export type { VotingEscrowController } from "./VotingEscrowController";
|
|
59
|
+
export type { IVotingEscrowPendle } from "./IVotingEscrowPendle";
|
|
56
60
|
export type { IWETH } from "./IWETH";
|
|
57
61
|
export type { IWstETH } from "./IWstETH";
|
|
58
62
|
export type { IWXBTRFLY } from "./IWXBTRFLY";
|
|
@@ -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";
|
|
@@ -118,6 +123,9 @@ export { IPYieldToken__factory } from "./factories/IPYieldToken__factory";
|
|
|
118
123
|
export { IQiErc20__factory } from "./factories/IQiErc20__factory";
|
|
119
124
|
export { IQiToken__factory } from "./factories/IQiToken__factory";
|
|
120
125
|
export { IREDACTEDStaking__factory } from "./factories/IREDACTEDStaking__factory";
|
|
126
|
+
export { IVePToken__factory } from "./factories/IVePToken__factory";
|
|
127
|
+
export { VotingEscrowController__factory } from "./factories/VotingEscrowController__factory";
|
|
128
|
+
export { IVotingEscrowPendle__factory } from "./factories/IVotingEscrowPendle__factory";
|
|
121
129
|
export { IWETH__factory } from "./factories/IWETH__factory";
|
|
122
130
|
export { IWstETH__factory } from "./factories/IWstETH__factory";
|
|
123
131
|
export { IWXBTRFLY__factory } from "./factories/IWXBTRFLY__factory";
|