@pendle/core-v2 0.11.10-testnet → 0.11.11-testnet
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/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol/PendleYearnVaultSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.json +9 -4
- package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +5 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +5 -0
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/SSTORE2DeployerContract.sol/SSTORE2DeployerContract.dbg.json +1 -1
- package/contracts/core/actions/ActionMintRedeem.sol +4 -0
- package/contracts/interfaces/IPActionMintRedeem.sol +1 -0
- package/package.json +1 -1
- package/typechain-types/ActionMintRedeem.ts +9 -2
- package/typechain-types/Errors.ts +57 -0
- package/typechain-types/ICrvPool.ts +137 -22
- package/typechain-types/IPActionMintRedeem.ts +9 -2
- package/typechain-types/IPAllAction.ts +9 -2
- package/typechain-types/IPBatchSeller.ts +252 -0
- package/typechain-types/IPVotingEscrowMainchain.ts +461 -0
- package/typechain-types/IRewards.ts +25 -10
- package/typechain-types/Pendle3CrvAndTokenSCY.ts +1215 -0
- package/typechain-types/Pendle3CrvTokenSCY.ts +85 -185
- package/typechain-types/PendleBatchSeller.ts +626 -0
- package/typechain-types/PendleConvexCurveLP2PoolSCY.ts +185 -220
- package/typechain-types/PendleConvexCurveLPSCY.ts +159 -182
- package/typechain-types/PendleCvxCRVSCY.ts +0 -34
- package/typechain-types/PtAMMArb.ts +587 -0
- package/typechain-types/factories/ActionMintRedeem__factory.ts +6 -1
- package/typechain-types/factories/Errors__factory.ts +933 -0
- package/typechain-types/factories/ICrvPool__factory.ts +85 -12
- package/typechain-types/factories/IPActionMintRedeem__factory.ts +5 -0
- package/typechain-types/factories/IPAllAction__factory.ts +5 -0
- package/typechain-types/factories/IPBatchSeller__factory.ts +138 -0
- package/typechain-types/factories/IPVotingEscrowMainchain__factory.ts +340 -0
- package/typechain-types/factories/IRewards__factory.ts +14 -1
- package/typechain-types/factories/Pendle3CrvAndTokenSCY__factory.ts +1130 -0
- package/typechain-types/factories/Pendle3CrvHelper__factory.ts +1 -1
- package/typechain-types/factories/Pendle3CrvTokenSCY__factory.ts +74 -128
- package/typechain-types/factories/PendleBatchSeller__factory.ts +558 -0
- package/typechain-types/factories/PendleConvexCurveLP2PoolSCY__factory.ts +207 -136
- package/typechain-types/factories/PendleConvexCurveLPSCY__factory.ts +170 -95
- package/typechain-types/factories/PendleCvxCRVSCY__factory.ts +1 -29
- package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +17 -1
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +6 -1
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +17 -1
- package/typechain-types/factories/PendleMsgReceiverAppUpg__factory.ts +11 -0
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +6 -1
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PtAMMArb__factory.ts +525 -0
- package/typechain-types/hardhat.d.ts +126 -0
- package/typechain-types/index.ts +28 -0
|
@@ -0,0 +1,461 @@
|
|
|
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, EventFragment } 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 type VeBalanceStruct = { bias: BigNumberish; slope: BigNumberish };
|
|
26
|
+
|
|
27
|
+
export type VeBalanceStructOutput = [BigNumber, BigNumber] & {
|
|
28
|
+
bias: BigNumber;
|
|
29
|
+
slope: BigNumber;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type CheckpointStruct = {
|
|
33
|
+
timestamp: BigNumberish;
|
|
34
|
+
value: VeBalanceStruct;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type CheckpointStructOutput = [BigNumber, VeBalanceStructOutput] & {
|
|
38
|
+
timestamp: BigNumber;
|
|
39
|
+
value: VeBalanceStructOutput;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export interface IPVotingEscrowMainchainInterface extends utils.Interface {
|
|
43
|
+
contractName: "IPVotingEscrowMainchain";
|
|
44
|
+
functions: {
|
|
45
|
+
"balanceOf(address)": FunctionFragment;
|
|
46
|
+
"getUserHistoryAt(address,uint256)": FunctionFragment;
|
|
47
|
+
"getUserHistoryLength(address)": FunctionFragment;
|
|
48
|
+
"increaseLockPosition(uint128,uint128)": FunctionFragment;
|
|
49
|
+
"positionData(address)": FunctionFragment;
|
|
50
|
+
"totalSupplyAndBalanceCurrent(address)": FunctionFragment;
|
|
51
|
+
"totalSupplyAt(uint128)": FunctionFragment;
|
|
52
|
+
"totalSupplyCurrent()": FunctionFragment;
|
|
53
|
+
"totalSupplyStored()": FunctionFragment;
|
|
54
|
+
"withdraw()": FunctionFragment;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
encodeFunctionData(functionFragment: "balanceOf", values: [string]): string;
|
|
58
|
+
encodeFunctionData(
|
|
59
|
+
functionFragment: "getUserHistoryAt",
|
|
60
|
+
values: [string, BigNumberish]
|
|
61
|
+
): string;
|
|
62
|
+
encodeFunctionData(
|
|
63
|
+
functionFragment: "getUserHistoryLength",
|
|
64
|
+
values: [string]
|
|
65
|
+
): string;
|
|
66
|
+
encodeFunctionData(
|
|
67
|
+
functionFragment: "increaseLockPosition",
|
|
68
|
+
values: [BigNumberish, BigNumberish]
|
|
69
|
+
): string;
|
|
70
|
+
encodeFunctionData(
|
|
71
|
+
functionFragment: "positionData",
|
|
72
|
+
values: [string]
|
|
73
|
+
): string;
|
|
74
|
+
encodeFunctionData(
|
|
75
|
+
functionFragment: "totalSupplyAndBalanceCurrent",
|
|
76
|
+
values: [string]
|
|
77
|
+
): string;
|
|
78
|
+
encodeFunctionData(
|
|
79
|
+
functionFragment: "totalSupplyAt",
|
|
80
|
+
values: [BigNumberish]
|
|
81
|
+
): string;
|
|
82
|
+
encodeFunctionData(
|
|
83
|
+
functionFragment: "totalSupplyCurrent",
|
|
84
|
+
values?: undefined
|
|
85
|
+
): string;
|
|
86
|
+
encodeFunctionData(
|
|
87
|
+
functionFragment: "totalSupplyStored",
|
|
88
|
+
values?: undefined
|
|
89
|
+
): string;
|
|
90
|
+
encodeFunctionData(functionFragment: "withdraw", values?: undefined): string;
|
|
91
|
+
|
|
92
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
93
|
+
decodeFunctionResult(
|
|
94
|
+
functionFragment: "getUserHistoryAt",
|
|
95
|
+
data: BytesLike
|
|
96
|
+
): Result;
|
|
97
|
+
decodeFunctionResult(
|
|
98
|
+
functionFragment: "getUserHistoryLength",
|
|
99
|
+
data: BytesLike
|
|
100
|
+
): Result;
|
|
101
|
+
decodeFunctionResult(
|
|
102
|
+
functionFragment: "increaseLockPosition",
|
|
103
|
+
data: BytesLike
|
|
104
|
+
): Result;
|
|
105
|
+
decodeFunctionResult(
|
|
106
|
+
functionFragment: "positionData",
|
|
107
|
+
data: BytesLike
|
|
108
|
+
): Result;
|
|
109
|
+
decodeFunctionResult(
|
|
110
|
+
functionFragment: "totalSupplyAndBalanceCurrent",
|
|
111
|
+
data: BytesLike
|
|
112
|
+
): Result;
|
|
113
|
+
decodeFunctionResult(
|
|
114
|
+
functionFragment: "totalSupplyAt",
|
|
115
|
+
data: BytesLike
|
|
116
|
+
): Result;
|
|
117
|
+
decodeFunctionResult(
|
|
118
|
+
functionFragment: "totalSupplyCurrent",
|
|
119
|
+
data: BytesLike
|
|
120
|
+
): Result;
|
|
121
|
+
decodeFunctionResult(
|
|
122
|
+
functionFragment: "totalSupplyStored",
|
|
123
|
+
data: BytesLike
|
|
124
|
+
): Result;
|
|
125
|
+
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
|
|
126
|
+
|
|
127
|
+
events: {
|
|
128
|
+
"BroadcastTotalSupply(tuple,uint256[])": EventFragment;
|
|
129
|
+
"BroadcastUserPosition(address,uint256[])": EventFragment;
|
|
130
|
+
"NewLockPosition(address,uint128,uint128)": EventFragment;
|
|
131
|
+
"Withdraw(address,uint128)": EventFragment;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
getEvent(nameOrSignatureOrTopic: "BroadcastTotalSupply"): EventFragment;
|
|
135
|
+
getEvent(nameOrSignatureOrTopic: "BroadcastUserPosition"): EventFragment;
|
|
136
|
+
getEvent(nameOrSignatureOrTopic: "NewLockPosition"): EventFragment;
|
|
137
|
+
getEvent(nameOrSignatureOrTopic: "Withdraw"): EventFragment;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export type BroadcastTotalSupplyEvent = TypedEvent<
|
|
141
|
+
[VeBalanceStructOutput, BigNumber[]],
|
|
142
|
+
{ newTotalSupply: VeBalanceStructOutput; chainIds: BigNumber[] }
|
|
143
|
+
>;
|
|
144
|
+
|
|
145
|
+
export type BroadcastTotalSupplyEventFilter =
|
|
146
|
+
TypedEventFilter<BroadcastTotalSupplyEvent>;
|
|
147
|
+
|
|
148
|
+
export type BroadcastUserPositionEvent = TypedEvent<
|
|
149
|
+
[string, BigNumber[]],
|
|
150
|
+
{ user: string; chainIds: BigNumber[] }
|
|
151
|
+
>;
|
|
152
|
+
|
|
153
|
+
export type BroadcastUserPositionEventFilter =
|
|
154
|
+
TypedEventFilter<BroadcastUserPositionEvent>;
|
|
155
|
+
|
|
156
|
+
export type NewLockPositionEvent = TypedEvent<
|
|
157
|
+
[string, BigNumber, BigNumber],
|
|
158
|
+
{ user: string; amount: BigNumber; expiry: BigNumber }
|
|
159
|
+
>;
|
|
160
|
+
|
|
161
|
+
export type NewLockPositionEventFilter = TypedEventFilter<NewLockPositionEvent>;
|
|
162
|
+
|
|
163
|
+
export type WithdrawEvent = TypedEvent<
|
|
164
|
+
[string, BigNumber],
|
|
165
|
+
{ user: string; amount: BigNumber }
|
|
166
|
+
>;
|
|
167
|
+
|
|
168
|
+
export type WithdrawEventFilter = TypedEventFilter<WithdrawEvent>;
|
|
169
|
+
|
|
170
|
+
export interface IPVotingEscrowMainchain extends BaseContract {
|
|
171
|
+
contractName: "IPVotingEscrowMainchain";
|
|
172
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
173
|
+
attach(addressOrName: string): this;
|
|
174
|
+
deployed(): Promise<this>;
|
|
175
|
+
|
|
176
|
+
interface: IPVotingEscrowMainchainInterface;
|
|
177
|
+
|
|
178
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
179
|
+
event: TypedEventFilter<TEvent>,
|
|
180
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
181
|
+
toBlock?: string | number | undefined
|
|
182
|
+
): Promise<Array<TEvent>>;
|
|
183
|
+
|
|
184
|
+
listeners<TEvent extends TypedEvent>(
|
|
185
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
186
|
+
): Array<TypedListener<TEvent>>;
|
|
187
|
+
listeners(eventName?: string): Array<Listener>;
|
|
188
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
189
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
190
|
+
): this;
|
|
191
|
+
removeAllListeners(eventName?: string): this;
|
|
192
|
+
off: OnEvent<this>;
|
|
193
|
+
on: OnEvent<this>;
|
|
194
|
+
once: OnEvent<this>;
|
|
195
|
+
removeListener: OnEvent<this>;
|
|
196
|
+
|
|
197
|
+
functions: {
|
|
198
|
+
balanceOf(user: string, overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
199
|
+
|
|
200
|
+
getUserHistoryAt(
|
|
201
|
+
user: string,
|
|
202
|
+
index: BigNumberish,
|
|
203
|
+
overrides?: CallOverrides
|
|
204
|
+
): Promise<[CheckpointStructOutput]>;
|
|
205
|
+
|
|
206
|
+
getUserHistoryLength(
|
|
207
|
+
user: string,
|
|
208
|
+
overrides?: CallOverrides
|
|
209
|
+
): Promise<[BigNumber]>;
|
|
210
|
+
|
|
211
|
+
increaseLockPosition(
|
|
212
|
+
additionalAmountToLock: BigNumberish,
|
|
213
|
+
expiry: BigNumberish,
|
|
214
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
215
|
+
): Promise<ContractTransaction>;
|
|
216
|
+
|
|
217
|
+
positionData(
|
|
218
|
+
user: string,
|
|
219
|
+
overrides?: CallOverrides
|
|
220
|
+
): Promise<
|
|
221
|
+
[BigNumber, BigNumber] & { amount: BigNumber; expiry: BigNumber }
|
|
222
|
+
>;
|
|
223
|
+
|
|
224
|
+
totalSupplyAndBalanceCurrent(
|
|
225
|
+
user: string,
|
|
226
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
227
|
+
): Promise<ContractTransaction>;
|
|
228
|
+
|
|
229
|
+
totalSupplyAt(
|
|
230
|
+
timestamp: BigNumberish,
|
|
231
|
+
overrides?: CallOverrides
|
|
232
|
+
): Promise<[BigNumber]>;
|
|
233
|
+
|
|
234
|
+
totalSupplyCurrent(
|
|
235
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
236
|
+
): Promise<ContractTransaction>;
|
|
237
|
+
|
|
238
|
+
totalSupplyStored(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
239
|
+
|
|
240
|
+
withdraw(
|
|
241
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
242
|
+
): Promise<ContractTransaction>;
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
balanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
246
|
+
|
|
247
|
+
getUserHistoryAt(
|
|
248
|
+
user: string,
|
|
249
|
+
index: BigNumberish,
|
|
250
|
+
overrides?: CallOverrides
|
|
251
|
+
): Promise<CheckpointStructOutput>;
|
|
252
|
+
|
|
253
|
+
getUserHistoryLength(
|
|
254
|
+
user: string,
|
|
255
|
+
overrides?: CallOverrides
|
|
256
|
+
): Promise<BigNumber>;
|
|
257
|
+
|
|
258
|
+
increaseLockPosition(
|
|
259
|
+
additionalAmountToLock: BigNumberish,
|
|
260
|
+
expiry: BigNumberish,
|
|
261
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
262
|
+
): Promise<ContractTransaction>;
|
|
263
|
+
|
|
264
|
+
positionData(
|
|
265
|
+
user: string,
|
|
266
|
+
overrides?: CallOverrides
|
|
267
|
+
): Promise<[BigNumber, BigNumber] & { amount: BigNumber; expiry: BigNumber }>;
|
|
268
|
+
|
|
269
|
+
totalSupplyAndBalanceCurrent(
|
|
270
|
+
user: string,
|
|
271
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
272
|
+
): Promise<ContractTransaction>;
|
|
273
|
+
|
|
274
|
+
totalSupplyAt(
|
|
275
|
+
timestamp: BigNumberish,
|
|
276
|
+
overrides?: CallOverrides
|
|
277
|
+
): Promise<BigNumber>;
|
|
278
|
+
|
|
279
|
+
totalSupplyCurrent(
|
|
280
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
281
|
+
): Promise<ContractTransaction>;
|
|
282
|
+
|
|
283
|
+
totalSupplyStored(overrides?: CallOverrides): Promise<BigNumber>;
|
|
284
|
+
|
|
285
|
+
withdraw(
|
|
286
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
287
|
+
): Promise<ContractTransaction>;
|
|
288
|
+
|
|
289
|
+
callStatic: {
|
|
290
|
+
balanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
291
|
+
|
|
292
|
+
getUserHistoryAt(
|
|
293
|
+
user: string,
|
|
294
|
+
index: BigNumberish,
|
|
295
|
+
overrides?: CallOverrides
|
|
296
|
+
): Promise<CheckpointStructOutput>;
|
|
297
|
+
|
|
298
|
+
getUserHistoryLength(
|
|
299
|
+
user: string,
|
|
300
|
+
overrides?: CallOverrides
|
|
301
|
+
): Promise<BigNumber>;
|
|
302
|
+
|
|
303
|
+
increaseLockPosition(
|
|
304
|
+
additionalAmountToLock: BigNumberish,
|
|
305
|
+
expiry: BigNumberish,
|
|
306
|
+
overrides?: CallOverrides
|
|
307
|
+
): Promise<BigNumber>;
|
|
308
|
+
|
|
309
|
+
positionData(
|
|
310
|
+
user: string,
|
|
311
|
+
overrides?: CallOverrides
|
|
312
|
+
): Promise<
|
|
313
|
+
[BigNumber, BigNumber] & { amount: BigNumber; expiry: BigNumber }
|
|
314
|
+
>;
|
|
315
|
+
|
|
316
|
+
totalSupplyAndBalanceCurrent(
|
|
317
|
+
user: string,
|
|
318
|
+
overrides?: CallOverrides
|
|
319
|
+
): Promise<[BigNumber, BigNumber]>;
|
|
320
|
+
|
|
321
|
+
totalSupplyAt(
|
|
322
|
+
timestamp: BigNumberish,
|
|
323
|
+
overrides?: CallOverrides
|
|
324
|
+
): Promise<BigNumber>;
|
|
325
|
+
|
|
326
|
+
totalSupplyCurrent(overrides?: CallOverrides): Promise<BigNumber>;
|
|
327
|
+
|
|
328
|
+
totalSupplyStored(overrides?: CallOverrides): Promise<BigNumber>;
|
|
329
|
+
|
|
330
|
+
withdraw(overrides?: CallOverrides): Promise<BigNumber>;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
filters: {
|
|
334
|
+
"BroadcastTotalSupply(tuple,uint256[])"(
|
|
335
|
+
newTotalSupply?: null,
|
|
336
|
+
chainIds?: null
|
|
337
|
+
): BroadcastTotalSupplyEventFilter;
|
|
338
|
+
BroadcastTotalSupply(
|
|
339
|
+
newTotalSupply?: null,
|
|
340
|
+
chainIds?: null
|
|
341
|
+
): BroadcastTotalSupplyEventFilter;
|
|
342
|
+
|
|
343
|
+
"BroadcastUserPosition(address,uint256[])"(
|
|
344
|
+
user?: string | null,
|
|
345
|
+
chainIds?: null
|
|
346
|
+
): BroadcastUserPositionEventFilter;
|
|
347
|
+
BroadcastUserPosition(
|
|
348
|
+
user?: string | null,
|
|
349
|
+
chainIds?: null
|
|
350
|
+
): BroadcastUserPositionEventFilter;
|
|
351
|
+
|
|
352
|
+
"NewLockPosition(address,uint128,uint128)"(
|
|
353
|
+
user?: string | null,
|
|
354
|
+
amount?: null,
|
|
355
|
+
expiry?: null
|
|
356
|
+
): NewLockPositionEventFilter;
|
|
357
|
+
NewLockPosition(
|
|
358
|
+
user?: string | null,
|
|
359
|
+
amount?: null,
|
|
360
|
+
expiry?: null
|
|
361
|
+
): NewLockPositionEventFilter;
|
|
362
|
+
|
|
363
|
+
"Withdraw(address,uint128)"(
|
|
364
|
+
user?: string | null,
|
|
365
|
+
amount?: null
|
|
366
|
+
): WithdrawEventFilter;
|
|
367
|
+
Withdraw(user?: string | null, amount?: null): WithdrawEventFilter;
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
estimateGas: {
|
|
371
|
+
balanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
372
|
+
|
|
373
|
+
getUserHistoryAt(
|
|
374
|
+
user: string,
|
|
375
|
+
index: BigNumberish,
|
|
376
|
+
overrides?: CallOverrides
|
|
377
|
+
): Promise<BigNumber>;
|
|
378
|
+
|
|
379
|
+
getUserHistoryLength(
|
|
380
|
+
user: string,
|
|
381
|
+
overrides?: CallOverrides
|
|
382
|
+
): Promise<BigNumber>;
|
|
383
|
+
|
|
384
|
+
increaseLockPosition(
|
|
385
|
+
additionalAmountToLock: BigNumberish,
|
|
386
|
+
expiry: BigNumberish,
|
|
387
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
388
|
+
): Promise<BigNumber>;
|
|
389
|
+
|
|
390
|
+
positionData(user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
391
|
+
|
|
392
|
+
totalSupplyAndBalanceCurrent(
|
|
393
|
+
user: string,
|
|
394
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
395
|
+
): Promise<BigNumber>;
|
|
396
|
+
|
|
397
|
+
totalSupplyAt(
|
|
398
|
+
timestamp: BigNumberish,
|
|
399
|
+
overrides?: CallOverrides
|
|
400
|
+
): Promise<BigNumber>;
|
|
401
|
+
|
|
402
|
+
totalSupplyCurrent(
|
|
403
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
404
|
+
): Promise<BigNumber>;
|
|
405
|
+
|
|
406
|
+
totalSupplyStored(overrides?: CallOverrides): Promise<BigNumber>;
|
|
407
|
+
|
|
408
|
+
withdraw(
|
|
409
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
410
|
+
): Promise<BigNumber>;
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
populateTransaction: {
|
|
414
|
+
balanceOf(
|
|
415
|
+
user: string,
|
|
416
|
+
overrides?: CallOverrides
|
|
417
|
+
): Promise<PopulatedTransaction>;
|
|
418
|
+
|
|
419
|
+
getUserHistoryAt(
|
|
420
|
+
user: string,
|
|
421
|
+
index: BigNumberish,
|
|
422
|
+
overrides?: CallOverrides
|
|
423
|
+
): Promise<PopulatedTransaction>;
|
|
424
|
+
|
|
425
|
+
getUserHistoryLength(
|
|
426
|
+
user: string,
|
|
427
|
+
overrides?: CallOverrides
|
|
428
|
+
): Promise<PopulatedTransaction>;
|
|
429
|
+
|
|
430
|
+
increaseLockPosition(
|
|
431
|
+
additionalAmountToLock: BigNumberish,
|
|
432
|
+
expiry: BigNumberish,
|
|
433
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
434
|
+
): Promise<PopulatedTransaction>;
|
|
435
|
+
|
|
436
|
+
positionData(
|
|
437
|
+
user: string,
|
|
438
|
+
overrides?: CallOverrides
|
|
439
|
+
): Promise<PopulatedTransaction>;
|
|
440
|
+
|
|
441
|
+
totalSupplyAndBalanceCurrent(
|
|
442
|
+
user: string,
|
|
443
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
444
|
+
): Promise<PopulatedTransaction>;
|
|
445
|
+
|
|
446
|
+
totalSupplyAt(
|
|
447
|
+
timestamp: BigNumberish,
|
|
448
|
+
overrides?: CallOverrides
|
|
449
|
+
): Promise<PopulatedTransaction>;
|
|
450
|
+
|
|
451
|
+
totalSupplyCurrent(
|
|
452
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
453
|
+
): Promise<PopulatedTransaction>;
|
|
454
|
+
|
|
455
|
+
totalSupplyStored(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
456
|
+
|
|
457
|
+
withdraw(
|
|
458
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
459
|
+
): Promise<PopulatedTransaction>;
|
|
460
|
+
};
|
|
461
|
+
}
|
|
@@ -30,6 +30,7 @@ export interface IRewardsInterface extends utils.Interface {
|
|
|
30
30
|
"extraRewards(uint256)": FunctionFragment;
|
|
31
31
|
"extraRewardsLength()": FunctionFragment;
|
|
32
32
|
"getReward()": FunctionFragment;
|
|
33
|
+
"lastTimeRewardApplicable()": FunctionFragment;
|
|
33
34
|
"notifyRewardAmount(uint256)": FunctionFragment;
|
|
34
35
|
"operator()": FunctionFragment;
|
|
35
36
|
"queueNewRewards(uint256)": FunctionFragment;
|
|
@@ -57,6 +58,10 @@ export interface IRewardsInterface extends utils.Interface {
|
|
|
57
58
|
values?: undefined
|
|
58
59
|
): string;
|
|
59
60
|
encodeFunctionData(functionFragment: "getReward", values?: undefined): string;
|
|
61
|
+
encodeFunctionData(
|
|
62
|
+
functionFragment: "lastTimeRewardApplicable",
|
|
63
|
+
values?: undefined
|
|
64
|
+
): string;
|
|
60
65
|
encodeFunctionData(
|
|
61
66
|
functionFragment: "notifyRewardAmount",
|
|
62
67
|
values: [BigNumberish]
|
|
@@ -113,6 +118,10 @@ export interface IRewardsInterface extends utils.Interface {
|
|
|
113
118
|
data: BytesLike
|
|
114
119
|
): Result;
|
|
115
120
|
decodeFunctionResult(functionFragment: "getReward", data: BytesLike): Result;
|
|
121
|
+
decodeFunctionResult(
|
|
122
|
+
functionFragment: "lastTimeRewardApplicable",
|
|
123
|
+
data: BytesLike
|
|
124
|
+
): Result;
|
|
116
125
|
decodeFunctionResult(
|
|
117
126
|
functionFragment: "notifyRewardAmount",
|
|
118
127
|
data: BytesLike
|
|
@@ -198,6 +207,8 @@ export interface IRewards extends BaseContract {
|
|
|
198
207
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
199
208
|
): Promise<ContractTransaction>;
|
|
200
209
|
|
|
210
|
+
lastTimeRewardApplicable(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
211
|
+
|
|
201
212
|
notifyRewardAmount(
|
|
202
213
|
arg0: BigNumberish,
|
|
203
214
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
@@ -214,9 +225,7 @@ export interface IRewards extends BaseContract {
|
|
|
214
225
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
215
226
|
): Promise<ContractTransaction>;
|
|
216
227
|
|
|
217
|
-
rewardPerTokenStored(
|
|
218
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
219
|
-
): Promise<ContractTransaction>;
|
|
228
|
+
rewardPerTokenStored(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
220
229
|
|
|
221
230
|
rewardToken(
|
|
222
231
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
@@ -272,6 +281,8 @@ export interface IRewards extends BaseContract {
|
|
|
272
281
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
273
282
|
): Promise<ContractTransaction>;
|
|
274
283
|
|
|
284
|
+
lastTimeRewardApplicable(overrides?: CallOverrides): Promise<BigNumber>;
|
|
285
|
+
|
|
275
286
|
notifyRewardAmount(
|
|
276
287
|
arg0: BigNumberish,
|
|
277
288
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
@@ -288,9 +299,7 @@ export interface IRewards extends BaseContract {
|
|
|
288
299
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
289
300
|
): Promise<ContractTransaction>;
|
|
290
301
|
|
|
291
|
-
rewardPerTokenStored(
|
|
292
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
293
|
-
): Promise<ContractTransaction>;
|
|
302
|
+
rewardPerTokenStored(overrides?: CallOverrides): Promise<BigNumber>;
|
|
294
303
|
|
|
295
304
|
rewardToken(
|
|
296
305
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
@@ -338,6 +347,8 @@ export interface IRewards extends BaseContract {
|
|
|
338
347
|
|
|
339
348
|
getReward(overrides?: CallOverrides): Promise<void>;
|
|
340
349
|
|
|
350
|
+
lastTimeRewardApplicable(overrides?: CallOverrides): Promise<BigNumber>;
|
|
351
|
+
|
|
341
352
|
notifyRewardAmount(
|
|
342
353
|
arg0: BigNumberish,
|
|
343
354
|
overrides?: CallOverrides
|
|
@@ -407,6 +418,8 @@ export interface IRewards extends BaseContract {
|
|
|
407
418
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
408
419
|
): Promise<BigNumber>;
|
|
409
420
|
|
|
421
|
+
lastTimeRewardApplicable(overrides?: CallOverrides): Promise<BigNumber>;
|
|
422
|
+
|
|
410
423
|
notifyRewardAmount(
|
|
411
424
|
arg0: BigNumberish,
|
|
412
425
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
@@ -423,9 +436,7 @@ export interface IRewards extends BaseContract {
|
|
|
423
436
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
424
437
|
): Promise<BigNumber>;
|
|
425
438
|
|
|
426
|
-
rewardPerTokenStored(
|
|
427
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
428
|
-
): Promise<BigNumber>;
|
|
439
|
+
rewardPerTokenStored(overrides?: CallOverrides): Promise<BigNumber>;
|
|
429
440
|
|
|
430
441
|
rewardToken(
|
|
431
442
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
@@ -484,6 +495,10 @@ export interface IRewards extends BaseContract {
|
|
|
484
495
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
485
496
|
): Promise<PopulatedTransaction>;
|
|
486
497
|
|
|
498
|
+
lastTimeRewardApplicable(
|
|
499
|
+
overrides?: CallOverrides
|
|
500
|
+
): Promise<PopulatedTransaction>;
|
|
501
|
+
|
|
487
502
|
notifyRewardAmount(
|
|
488
503
|
arg0: BigNumberish,
|
|
489
504
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
@@ -501,7 +516,7 @@ export interface IRewards extends BaseContract {
|
|
|
501
516
|
): Promise<PopulatedTransaction>;
|
|
502
517
|
|
|
503
518
|
rewardPerTokenStored(
|
|
504
|
-
overrides?:
|
|
519
|
+
overrides?: CallOverrides
|
|
505
520
|
): Promise<PopulatedTransaction>;
|
|
506
521
|
|
|
507
522
|
rewardToken(
|