Documentation
¶
Index ¶
- type SlashingKeeper
- type StakingKeeper
- func (_m *StakingKeeper) GetValidator(_a0 context.Context, _a1 types.ValAddress) (stakingtypes.Validator, error)
- func (_m *StakingKeeper) GetValidatorByConsAddr(_a0 context.Context, _a1 types.ConsAddress) (stakingtypes.Validator, error)
- func (_m *StakingKeeper) IterateValidators(_a0 context.Context, _a1 func(int64, stakingtypes.ValidatorI) bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlashingKeeper ¶
SlashingKeeper is an autogenerated mock type for the SlashingKeeper type
func NewSlashingKeeper ¶
func NewSlashingKeeper(t interface { mock.TestingT Cleanup(func()) }, ) *SlashingKeeper
NewSlashingKeeper creates a new instance of SlashingKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SlashingKeeper) IterateValidatorSigningInfos ¶
func (_m *SlashingKeeper) IterateValidatorSigningInfos(_a0 context.Context, _a1 func(types.ConsAddress, slashingtypes.ValidatorSigningInfo) bool) error
IterateValidatorSigningInfos provides a mock function with given fields: _a0, _a1
func (*SlashingKeeper) SignedBlocksWindow ¶
func (_m *SlashingKeeper) SignedBlocksWindow(_a0 context.Context) (int64, error)
SignedBlocksWindow provides a mock function with given fields: _a0
type StakingKeeper ¶
StakingKeeper is an autogenerated mock type for the StakingKeeper type
func NewStakingKeeper ¶
func NewStakingKeeper(t interface { mock.TestingT Cleanup(func()) }, ) *StakingKeeper
NewStakingKeeper creates a new instance of StakingKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*StakingKeeper) GetValidator ¶
func (_m *StakingKeeper) GetValidator(_a0 context.Context, _a1 types.ValAddress) (stakingtypes.Validator, error)
GetValidator provides a mock function with given fields: _a0, _a1
func (*StakingKeeper) GetValidatorByConsAddr ¶
func (_m *StakingKeeper) GetValidatorByConsAddr(_a0 context.Context, _a1 types.ConsAddress) (stakingtypes.Validator, error)
GetValidatorByConsAddr provides a mock function with given fields: _a0, _a1
func (*StakingKeeper) IterateValidators ¶
func (_m *StakingKeeper) IterateValidators(_a0 context.Context, _a1 func(int64, stakingtypes.ValidatorI) bool) error
IterateValidators provides a mock function with given fields: _a0, _a1