Documentation ¶
Index ¶
- type ValidatorKeeper
- func (_m *ValidatorKeeper) DistributeInflationToValidator(ctx types.Context) types.Error
- func (_m *ValidatorKeeper) ExportToFile(ctx types.Context, cdc *amino.Codec, filepath string) error
- func (_m *ValidatorKeeper) GetCommittingValidatorVoteStatus(ctx types.Context) []model.ReceivedVotesStatus
- func (_m *ValidatorKeeper) GetCommittingValidators(ctx types.Context) []linotypes.AccountKey
- func (_m *ValidatorKeeper) GetElectionVoteList(ctx types.Context, accKey linotypes.AccountKey) *model.ElectionVoteList
- func (_m *ValidatorKeeper) GetInitValidators(ctx types.Context) ([]abcitypes.ValidatorUpdate, types.Error)
- func (_m *ValidatorKeeper) GetValidator(ctx types.Context, username linotypes.AccountKey) (*model.Validator, types.Error)
- func (_m *ValidatorKeeper) GetValidatorList(ctx types.Context) *model.ValidatorList
- func (_m *ValidatorKeeper) GetValidatorUpdates(ctx types.Context) ([]abcitypes.ValidatorUpdate, types.Error)
- func (_m *ValidatorKeeper) Hooks() manager.Hooks
- func (_m *ValidatorKeeper) ImportFromFile(ctx types.Context, cdc *amino.Codec, filepath string) error
- func (_m *ValidatorKeeper) InitGenesis(ctx types.Context)
- func (_m *ValidatorKeeper) OnBeginBlock(ctx types.Context, req abcitypes.RequestBeginBlock)
- func (_m *ValidatorKeeper) PunishCommittingValidator(ctx types.Context, username linotypes.AccountKey, penalty linotypes.Coin, ...) types.Error
- func (_m *ValidatorKeeper) RegisterValidator(ctx types.Context, username linotypes.AccountKey, valPubKey crypto.PubKey, ...) types.Error
- func (_m *ValidatorKeeper) RevokeValidator(ctx types.Context, username linotypes.AccountKey) types.Error
- func (_m *ValidatorKeeper) VoteValidator(ctx types.Context, username linotypes.AccountKey, ...) types.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidatorKeeper ¶
ValidatorKeeper is an autogenerated mock type for the ValidatorKeeper type
func (*ValidatorKeeper) DistributeInflationToValidator ¶
func (_m *ValidatorKeeper) DistributeInflationToValidator(ctx types.Context) types.Error
DistributeInflationToValidator provides a mock function with given fields: ctx
func (*ValidatorKeeper) ExportToFile ¶
ExportToFile provides a mock function with given fields: ctx, cdc, filepath
func (*ValidatorKeeper) GetCommittingValidatorVoteStatus ¶
func (_m *ValidatorKeeper) GetCommittingValidatorVoteStatus(ctx types.Context) []model.ReceivedVotesStatus
GetCommittingValidatorVoteStatus provides a mock function with given fields: ctx
func (*ValidatorKeeper) GetCommittingValidators ¶
func (_m *ValidatorKeeper) GetCommittingValidators(ctx types.Context) []linotypes.AccountKey
GetCommittingValidators provides a mock function with given fields: ctx
func (*ValidatorKeeper) GetElectionVoteList ¶
func (_m *ValidatorKeeper) GetElectionVoteList(ctx types.Context, accKey linotypes.AccountKey) *model.ElectionVoteList
GetElectionVoteList provides a mock function with given fields: ctx, accKey
func (*ValidatorKeeper) GetInitValidators ¶
func (_m *ValidatorKeeper) GetInitValidators(ctx types.Context) ([]abcitypes.ValidatorUpdate, types.Error)
GetInitValidators provides a mock function with given fields: ctx
func (*ValidatorKeeper) GetValidator ¶
func (_m *ValidatorKeeper) GetValidator(ctx types.Context, username linotypes.AccountKey) (*model.Validator, types.Error)
GetValidator provides a mock function with given fields: ctx, username
func (*ValidatorKeeper) GetValidatorList ¶
func (_m *ValidatorKeeper) GetValidatorList(ctx types.Context) *model.ValidatorList
GetValidatorList provides a mock function with given fields: ctx
func (*ValidatorKeeper) GetValidatorUpdates ¶
func (_m *ValidatorKeeper) GetValidatorUpdates(ctx types.Context) ([]abcitypes.ValidatorUpdate, types.Error)
GetValidatorUpdates provides a mock function with given fields: ctx
func (*ValidatorKeeper) Hooks ¶
func (_m *ValidatorKeeper) Hooks() manager.Hooks
Hooks provides a mock function with given fields:
func (*ValidatorKeeper) ImportFromFile ¶
func (_m *ValidatorKeeper) ImportFromFile(ctx types.Context, cdc *amino.Codec, filepath string) error
ImportFromFile provides a mock function with given fields: ctx, cdc, filepath
func (*ValidatorKeeper) InitGenesis ¶
func (_m *ValidatorKeeper) InitGenesis(ctx types.Context)
InitGenesis provides a mock function with given fields: ctx
func (*ValidatorKeeper) OnBeginBlock ¶
func (_m *ValidatorKeeper) OnBeginBlock(ctx types.Context, req abcitypes.RequestBeginBlock)
OnBeginBlock provides a mock function with given fields: ctx, req
func (*ValidatorKeeper) PunishCommittingValidator ¶
func (_m *ValidatorKeeper) PunishCommittingValidator(ctx types.Context, username linotypes.AccountKey, penalty linotypes.Coin, punishType linotypes.PunishType) types.Error
PunishCommittingValidator provides a mock function with given fields: ctx, username, penalty, punishType
func (*ValidatorKeeper) RegisterValidator ¶
func (_m *ValidatorKeeper) RegisterValidator(ctx types.Context, username linotypes.AccountKey, valPubKey crypto.PubKey, link string) types.Error
RegisterValidator provides a mock function with given fields: ctx, username, valPubKey, link
func (*ValidatorKeeper) RevokeValidator ¶
func (_m *ValidatorKeeper) RevokeValidator(ctx types.Context, username linotypes.AccountKey) types.Error
RevokeValidator provides a mock function with given fields: ctx, username
func (*ValidatorKeeper) VoteValidator ¶
func (_m *ValidatorKeeper) VoteValidator(ctx types.Context, username linotypes.AccountKey, votedValidators []linotypes.AccountKey) types.Error
VoteValidator provides a mock function with given fields: ctx, username, votedValidators