Interfaces
IGNSStaking
Interface for GNSStaking contract
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
struct Staker {
uint128 stakedGns;
uint128 debtDai;
}
struct StakerInfo {
uint48 lastDepositTs;
uint208 __placeholder;
}
struct RewardState {
uint128 accRewardPerGns;
uint128 precisionDelta;
}
struct RewardInfo {
uint128 debtToken;
uint128 __placeholder;
}
struct UnlockSchedule {
uint128 totalGns;
uint128 claimedGns;
uint128 debtDai;
uint48 start;
uint48 duration;
bool revocable;
enum IGNSStaking.UnlockType unlockType;
uint16 __placeholder;
}
struct UnlockScheduleInput {
uint128 totalGns;
uint48 start;
uint48 duration;
bool revocable;
enum IGNSStaking.UnlockType unlockType;
}
enum UnlockType {
LINEAR,
CLIFF
}
function owner() external view returns (address)
function distributeReward(address _rewardToken, uint256 _amountToken) external
function createUnlockSchedule(struct IGNSStaking.UnlockScheduleInput _schedule, address _staker) external
event UnlockManagerUpdated(address manager, bool authorized)
event DaiHarvested(address staker, uint128 amountDai)
event RewardHarvested(address staker, address token, uint128 amountToken)
event RewardHarvestedFromUnlock(address staker, address token, bool isOldDai, uint256[] ids, uint128 amountToken)
event RewardDistributed(address token, uint256 amount)
event GnsStaked(address staker, uint128 amountGns)
event GnsUnstaked(address staker, uint128 amountGns)
event GnsClaimed(address staker, uint256[] ids, uint128 amountGns)
event UnlockScheduled(address staker, uint256 index, struct IGNSStaking.UnlockSchedule schedule)
event UnlockScheduleRevoked(address staker, uint256 index)
event RewardTokenAdded(address token, uint256 index, uint128 precisionDelta)
