Documentation ¶
Index ¶
- type VoteKeeper
- func (_m *VoteKeeper) AssignDuty(ctx types.Context, username linotypes.AccountKey, duty votetypes.VoterDuty, ...) types.Error
- func (_m *VoteKeeper) ClaimInterest(ctx types.Context, username linotypes.AccountKey) types.Error
- func (_m *VoteKeeper) DailyAdvanceLinoStakeStats(ctx types.Context) types.Error
- func (_m *VoteKeeper) DoesVoterExist(ctx types.Context, username linotypes.AccountKey) bool
- func (_m *VoteKeeper) ExecUnassignDutyEvent(ctx types.Context, event votetypes.UnassignDutyEvent) types.Error
- func (_m *VoteKeeper) ExportToFile(ctx types.Context, cdc *amino.Codec, filepath string) error
- func (_m *VoteKeeper) GetLinoStake(ctx types.Context, username linotypes.AccountKey) (linotypes.Coin, types.Error)
- func (_m *VoteKeeper) GetStakeStatsOfDay(ctx types.Context, day int64) (*model.LinoStakeStat, types.Error)
- func (_m *VoteKeeper) GetVoter(ctx types.Context, username linotypes.AccountKey) (*model.Voter, types.Error)
- func (_m *VoteKeeper) GetVoterDuty(ctx types.Context, username linotypes.AccountKey) (votetypes.VoterDuty, types.Error)
- func (_m *VoteKeeper) ImportFromFile(ctx types.Context, cdc *amino.Codec, filepath string) error
- func (_m *VoteKeeper) InitGenesis(ctx types.Context)
- func (_m *VoteKeeper) RecordFriction(ctx types.Context, friction linotypes.Coin) types.Error
- func (_m *VoteKeeper) SlashStake(ctx types.Context, username linotypes.AccountKey, amount linotypes.Coin, ...) (linotypes.Coin, types.Error)
- func (_m *VoteKeeper) StakeIn(ctx types.Context, username linotypes.AccountKey, amount linotypes.Coin) types.Error
- func (_m *VoteKeeper) StakeInFor(ctx types.Context, sender linotypes.AccountKey, receiver linotypes.AccountKey, ...) types.Error
- func (_m *VoteKeeper) StakeOut(ctx types.Context, username linotypes.AccountKey, amount linotypes.Coin) types.Error
- func (_m *VoteKeeper) UnassignDuty(ctx types.Context, username linotypes.AccountKey, waitingPeriodSec int64) types.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VoteKeeper ¶
VoteKeeper is an autogenerated mock type for the VoteKeeper type
func (*VoteKeeper) AssignDuty ¶
func (_m *VoteKeeper) AssignDuty(ctx types.Context, username linotypes.AccountKey, duty votetypes.VoterDuty, frozenAmount linotypes.Coin) types.Error
AssignDuty provides a mock function with given fields: ctx, username, duty, frozenAmount
func (*VoteKeeper) ClaimInterest ¶ added in v0.4.0
func (_m *VoteKeeper) ClaimInterest(ctx types.Context, username linotypes.AccountKey) types.Error
ClaimInterest provides a mock function with given fields: ctx, username
func (*VoteKeeper) DailyAdvanceLinoStakeStats ¶ added in v0.6.0
func (_m *VoteKeeper) DailyAdvanceLinoStakeStats(ctx types.Context) types.Error
DailyAdvanceLinoStakeStats provides a mock function with given fields: ctx
func (*VoteKeeper) DoesVoterExist ¶
func (_m *VoteKeeper) DoesVoterExist(ctx types.Context, username linotypes.AccountKey) bool
DoesVoterExist provides a mock function with given fields: ctx, username
func (*VoteKeeper) ExecUnassignDutyEvent ¶ added in v0.4.0
func (_m *VoteKeeper) ExecUnassignDutyEvent(ctx types.Context, event votetypes.UnassignDutyEvent) types.Error
ExecUnassignDutyEvent provides a mock function with given fields: ctx, event
func (*VoteKeeper) ExportToFile ¶ added in v0.4.0
ExportToFile provides a mock function with given fields: ctx, cdc, filepath
func (*VoteKeeper) GetLinoStake ¶
func (_m *VoteKeeper) GetLinoStake(ctx types.Context, username linotypes.AccountKey) (linotypes.Coin, types.Error)
GetLinoStake provides a mock function with given fields: ctx, username
func (*VoteKeeper) GetStakeStatsOfDay ¶ added in v0.6.0
func (_m *VoteKeeper) GetStakeStatsOfDay(ctx types.Context, day int64) (*model.LinoStakeStat, types.Error)
GetStakeStatsOfDay provides a mock function with given fields: ctx, day
func (*VoteKeeper) GetVoter ¶ added in v0.4.0
func (_m *VoteKeeper) GetVoter(ctx types.Context, username linotypes.AccountKey) (*model.Voter, types.Error)
GetVoter provides a mock function with given fields: ctx, username
func (*VoteKeeper) GetVoterDuty ¶
func (_m *VoteKeeper) GetVoterDuty(ctx types.Context, username linotypes.AccountKey) (votetypes.VoterDuty, types.Error)
GetVoterDuty provides a mock function with given fields: ctx, username
func (*VoteKeeper) ImportFromFile ¶ added in v0.4.0
ImportFromFile provides a mock function with given fields: ctx, cdc, filepath
func (*VoteKeeper) InitGenesis ¶ added in v0.6.0
func (_m *VoteKeeper) InitGenesis(ctx types.Context)
InitGenesis provides a mock function with given fields: ctx
func (*VoteKeeper) RecordFriction ¶ added in v0.6.0
RecordFriction provides a mock function with given fields: ctx, friction
func (*VoteKeeper) SlashStake ¶ added in v0.4.0
func (_m *VoteKeeper) SlashStake(ctx types.Context, username linotypes.AccountKey, amount linotypes.Coin, destPool linotypes.PoolName) (linotypes.Coin, types.Error)
SlashStake provides a mock function with given fields: ctx, username, amount, destPool
func (*VoteKeeper) StakeIn ¶ added in v0.4.0
func (_m *VoteKeeper) StakeIn(ctx types.Context, username linotypes.AccountKey, amount linotypes.Coin) types.Error
StakeIn provides a mock function with given fields: ctx, username, amount
func (*VoteKeeper) StakeInFor ¶ added in v0.4.0
func (_m *VoteKeeper) StakeInFor(ctx types.Context, sender linotypes.AccountKey, receiver linotypes.AccountKey, amount linotypes.Coin) types.Error
StakeInFor provides a mock function with given fields: ctx, sender, receiver, amount
func (*VoteKeeper) StakeOut ¶ added in v0.4.0
func (_m *VoteKeeper) StakeOut(ctx types.Context, username linotypes.AccountKey, amount linotypes.Coin) types.Error
StakeOut provides a mock function with given fields: ctx, username, amount
func (*VoteKeeper) UnassignDuty ¶ added in v0.4.0
func (_m *VoteKeeper) UnassignDuty(ctx types.Context, username linotypes.AccountKey, waitingPeriodSec int64) types.Error
UnassignDuty provides a mock function with given fields: ctx, username, waitingPeriodSec