mocks

package
v0.6.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidatorKeeper

type ValidatorKeeper struct {
	mock.Mock
}

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

func (_m *ValidatorKeeper) ExportToFile(ctx types.Context, cdc *amino.Codec, filepath string) error

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) UpdateValidator added in v0.5.1

func (_m *ValidatorKeeper) UpdateValidator(ctx types.Context, username linotypes.AccountKey, link string) types.Error

UpdateValidator provides a mock function with given fields: ctx, username, link

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL