mocks

package
v0.0.0-...-2da98db Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObserverAuthorityKeeper

type ObserverAuthorityKeeper struct {
	mock.Mock
}

ObserverAuthorityKeeper is an autogenerated mock type for the ObserverAuthorityKeeper type

func NewObserverAuthorityKeeper

func NewObserverAuthorityKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObserverAuthorityKeeper

NewObserverAuthorityKeeper creates a new instance of ObserverAuthorityKeeper. 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 (*ObserverAuthorityKeeper) CheckAuthorization

func (_m *ObserverAuthorityKeeper) CheckAuthorization(ctx types.Context, msg types.Msg) error

CheckAuthorization provides a mock function with given fields: ctx, msg

func (*ObserverAuthorityKeeper) GetAdditionalChainList

func (_m *ObserverAuthorityKeeper) GetAdditionalChainList(ctx types.Context) []chains.Chain

GetAdditionalChainList provides a mock function with given fields: ctx

func (*ObserverAuthorityKeeper) SetPolicies

func (_m *ObserverAuthorityKeeper) SetPolicies(ctx types.Context, policies authoritytypes.Policies)

SetPolicies provides a mock function with given fields: ctx, policies

type ObserverLightclientKeeper

type ObserverLightclientKeeper struct {
	mock.Mock
}

ObserverLightclientKeeper is an autogenerated mock type for the ObserverLightclientKeeper type

func NewObserverLightclientKeeper

func NewObserverLightclientKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObserverLightclientKeeper

NewObserverLightclientKeeper creates a new instance of ObserverLightclientKeeper. 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 (*ObserverLightclientKeeper) AddBlockHeader

func (_m *ObserverLightclientKeeper) AddBlockHeader(ctx types.Context, chainID int64, height int64, blockHash []byte, header proofs.HeaderData, parentHash []byte)

AddBlockHeader provides a mock function with given fields: ctx, chainID, height, blockHash, header, parentHash

func (*ObserverLightclientKeeper) CheckNewBlockHeader

func (_m *ObserverLightclientKeeper) CheckNewBlockHeader(ctx types.Context, chainID int64, blockHash []byte, height int64, header proofs.HeaderData) ([]byte, error)

CheckNewBlockHeader provides a mock function with given fields: ctx, chainID, blockHash, height, header

type ObserverSlashingKeeper

type ObserverSlashingKeeper struct {
	mock.Mock
}

ObserverSlashingKeeper is an autogenerated mock type for the ObserverSlashingKeeper type

func NewObserverSlashingKeeper

func NewObserverSlashingKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObserverSlashingKeeper

NewObserverSlashingKeeper creates a new instance of ObserverSlashingKeeper. 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 (*ObserverSlashingKeeper) IsTombstoned

func (_m *ObserverSlashingKeeper) IsTombstoned(ctx types.Context, addr types.ConsAddress) bool

IsTombstoned provides a mock function with given fields: ctx, addr

func (*ObserverSlashingKeeper) SetValidatorSigningInfo

func (_m *ObserverSlashingKeeper) SetValidatorSigningInfo(ctx types.Context, address types.ConsAddress, info slashingtypes.ValidatorSigningInfo)

SetValidatorSigningInfo provides a mock function with given fields: ctx, address, info

type ObserverStakingKeeper

type ObserverStakingKeeper struct {
	mock.Mock
}

ObserverStakingKeeper is an autogenerated mock type for the ObserverStakingKeeper type

func NewObserverStakingKeeper

func NewObserverStakingKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObserverStakingKeeper

NewObserverStakingKeeper creates a new instance of ObserverStakingKeeper. 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 (*ObserverStakingKeeper) GetDelegation

func (_m *ObserverStakingKeeper) GetDelegation(ctx types.Context, delAddr types.AccAddress, valAddr types.ValAddress) (stakingtypes.Delegation, bool)

GetDelegation provides a mock function with given fields: ctx, delAddr, valAddr

func (*ObserverStakingKeeper) GetValidator

GetValidator provides a mock function with given fields: ctx, addr

func (*ObserverStakingKeeper) SetValidator

func (_m *ObserverStakingKeeper) SetValidator(ctx types.Context, validator stakingtypes.Validator)

SetValidator provides a mock function with given fields: ctx, validator

Jump to

Keyboard shortcuts

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