Documentation ¶
Index ¶
- type ConsensusKeeper
- type ValsetKeeper
- func (_m *ValsetKeeper) FindSnapshotByID(ctx types.Context, id uint64) (*valsettypes.Snapshot, error)
- func (_m *ValsetKeeper) GetCurrentSnapshot(ctx types.Context) (*valsettypes.Snapshot, error)
- func (_m *ValsetKeeper) Jail(ctx types.Context, valAddr types.ValAddress, reason string) error
- func (_m *ValsetKeeper) KeepValidatorAlive(ctx types.Context, valAddr types.ValAddress) error
- func (_m *ValsetKeeper) SetValidatorBalance(ctx types.Context, valAddr types.ValAddress, chainType string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusKeeper ¶
ConsensusKeeper is an autogenerated mock type for the ConsensusKeeper type
func NewConsensusKeeper ¶
func NewConsensusKeeper(t mockConstructorTestingTNewConsensusKeeper) *ConsensusKeeper
NewConsensusKeeper creates a new instance of ConsensusKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ConsensusKeeper) PutMessageInQueue ¶ added in v0.6.0
func (_m *ConsensusKeeper) PutMessageInQueue(ctx types.Context, queueTypeName string, msg consensustypes.ConsensusMsg, opts *consensus.PutOptions) error
PutMessageInQueue provides a mock function with given fields: ctx, queueTypeName, msg, opts
func (*ConsensusKeeper) RemoveConsensusQueue ¶
func (_m *ConsensusKeeper) RemoveConsensusQueue(ctx types.Context, queueTypeName string) error
RemoveConsensusQueue provides a mock function with given fields: ctx, queueTypeName
type ValsetKeeper ¶
ValsetKeeper is an autogenerated mock type for the ValsetKeeper type
func NewValsetKeeper ¶
func NewValsetKeeper(t mockConstructorTestingTNewValsetKeeper) *ValsetKeeper
NewValsetKeeper creates a new instance of ValsetKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ValsetKeeper) FindSnapshotByID ¶
func (_m *ValsetKeeper) FindSnapshotByID(ctx types.Context, id uint64) (*valsettypes.Snapshot, error)
FindSnapshotByID provides a mock function with given fields: ctx, id
func (*ValsetKeeper) GetCurrentSnapshot ¶
func (_m *ValsetKeeper) GetCurrentSnapshot(ctx types.Context) (*valsettypes.Snapshot, error)
GetCurrentSnapshot provides a mock function with given fields: ctx
func (*ValsetKeeper) Jail ¶ added in v0.6.0
func (_m *ValsetKeeper) Jail(ctx types.Context, valAddr types.ValAddress, reason string) error
Jail provides a mock function with given fields: ctx, valAddr, reason
func (*ValsetKeeper) KeepValidatorAlive ¶ added in v0.6.0
func (_m *ValsetKeeper) KeepValidatorAlive(ctx types.Context, valAddr types.ValAddress) error
KeepValidatorAlive provides a mock function with given fields: ctx, valAddr
func (*ValsetKeeper) SetValidatorBalance ¶ added in v0.6.0
func (_m *ValsetKeeper) SetValidatorBalance(ctx types.Context, valAddr types.ValAddress, chainType string, chainReferenceID string, externalAddress string, balance *big.Int) error
SetValidatorBalance provides a mock function with given fields: ctx, valAddr, chainType, chainReferenceID, externalAddress, balance