mocks

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvmKeeper

type EvmKeeper struct {
	mock.Mock
}

EvmKeeper is an autogenerated mock type for the EvmKeeper type

func NewEvmKeeper

func NewEvmKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *EvmKeeper

NewEvmKeeper creates a new instance of EvmKeeper. 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 (*EvmKeeper) MissingChains

func (_m *EvmKeeper) MissingChains(ctx context.Context, chainReferenceIDs []string) ([]string, error)

MissingChains provides a mock function with given fields: ctx, chainReferenceIDs

type QueryServer

type QueryServer struct {
	mock.Mock
}

QueryServer is an autogenerated mock type for the QueryServer type

func NewQueryServer

func NewQueryServer(t interface {
	mock.TestingT
	Cleanup(func())
},
) *QueryServer

NewQueryServer creates a new instance of QueryServer. 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 (*QueryServer) GetAlivePigeons

GetAlivePigeons provides a mock function with given fields: _a0, _a1

func (*QueryServer) GetLatestPublishedSnapshot

GetLatestPublishedSnapshot provides a mock function with given fields: _a0, _a1

func (*QueryServer) GetPigeonRequirements

GetPigeonRequirements provides a mock function with given fields: _a0, _a1

func (*QueryServer) GetSnapshotByID

GetSnapshotByID provides a mock function with given fields: _a0, _a1

func (*QueryServer) GetValidatorAliveUntil

GetValidatorAliveUntil provides a mock function with given fields: _a0, _a1

func (*QueryServer) GetValidatorJailReason

GetValidatorJailReason provides a mock function with given fields: _a0, _a1

func (*QueryServer) Params

Params provides a mock function with given fields: _a0, _a1

func (*QueryServer) ValidatorInfo

ValidatorInfo provides a mock function with given fields: _a0, _a1

type SlashingKeeper

type SlashingKeeper struct {
	mock.Mock
}

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) Jail

func (_m *SlashingKeeper) Jail(_a0 context.Context, _a1 types.ConsAddress) error

Jail provides a mock function with given fields: _a0, _a1

func (*SlashingKeeper) JailUntil

func (_m *SlashingKeeper) JailUntil(_a0 context.Context, _a1 types.ConsAddress, _a2 time.Time) error

JailUntil provides a mock function with given fields: _a0, _a1, _a2

type StakingKeeper

type StakingKeeper struct {
	mock.Mock
}

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) IterateValidators

func (_m *StakingKeeper) IterateValidators(ctx context.Context, fn func(int64, types.ValidatorI) bool) error

IterateValidators provides a mock function with given fields: ctx, fn

func (*StakingKeeper) Jail

Jail provides a mock function with given fields: ctx, consAddr

func (*StakingKeeper) Validator

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

type StakingValidatorI

type StakingValidatorI struct {
	mock.Mock
}

StakingValidatorI is an autogenerated mock type for the ValidatorI type

func NewStakingValidatorI

func NewStakingValidatorI(t interface {
	mock.TestingT
	Cleanup(func())
},
) *StakingValidatorI

NewStakingValidatorI creates a new instance of StakingValidatorI. 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 (*StakingValidatorI) ConsPubKey

func (_m *StakingValidatorI) ConsPubKey() (types.PubKey, error)

ConsPubKey provides a mock function with given fields:

func (*StakingValidatorI) GetBondedTokens

func (_m *StakingValidatorI) GetBondedTokens() math.Int

GetBondedTokens provides a mock function with given fields:

func (*StakingValidatorI) GetCommission

func (_m *StakingValidatorI) GetCommission() math.LegacyDec

GetCommission provides a mock function with given fields:

func (*StakingValidatorI) GetConsAddr

func (_m *StakingValidatorI) GetConsAddr() ([]byte, error)

GetConsAddr provides a mock function with given fields:

func (*StakingValidatorI) GetConsensusPower

func (_m *StakingValidatorI) GetConsensusPower(_a0 math.Int) int64

GetConsensusPower provides a mock function with given fields: _a0

func (*StakingValidatorI) GetDelegatorShares

func (_m *StakingValidatorI) GetDelegatorShares() math.LegacyDec

GetDelegatorShares provides a mock function with given fields:

func (*StakingValidatorI) GetMinSelfDelegation

func (_m *StakingValidatorI) GetMinSelfDelegation() math.Int

GetMinSelfDelegation provides a mock function with given fields:

func (*StakingValidatorI) GetMoniker

func (_m *StakingValidatorI) GetMoniker() string

GetMoniker provides a mock function with given fields:

func (*StakingValidatorI) GetOperator

func (_m *StakingValidatorI) GetOperator() string

GetOperator provides a mock function with given fields:

func (*StakingValidatorI) GetStatus

func (_m *StakingValidatorI) GetStatus() stakingtypes.BondStatus

GetStatus provides a mock function with given fields:

func (*StakingValidatorI) GetTokens

func (_m *StakingValidatorI) GetTokens() math.Int

GetTokens provides a mock function with given fields:

func (*StakingValidatorI) IsBonded

func (_m *StakingValidatorI) IsBonded() bool

IsBonded provides a mock function with given fields:

func (*StakingValidatorI) IsJailed

func (_m *StakingValidatorI) IsJailed() bool

IsJailed provides a mock function with given fields:

func (*StakingValidatorI) IsUnbonded

func (_m *StakingValidatorI) IsUnbonded() bool

IsUnbonded provides a mock function with given fields:

func (*StakingValidatorI) IsUnbonding

func (_m *StakingValidatorI) IsUnbonding() bool

IsUnbonding provides a mock function with given fields:

func (*StakingValidatorI) SharesFromTokens

func (_m *StakingValidatorI) SharesFromTokens(amt math.Int) (math.LegacyDec, error)

SharesFromTokens provides a mock function with given fields: amt

func (*StakingValidatorI) SharesFromTokensTruncated

func (_m *StakingValidatorI) SharesFromTokensTruncated(amt math.Int) (math.LegacyDec, error)

SharesFromTokensTruncated provides a mock function with given fields: amt

func (*StakingValidatorI) TmConsPublicKey

func (_m *StakingValidatorI) TmConsPublicKey() (crypto.PublicKey, error)

TmConsPublicKey provides a mock function with given fields:

func (*StakingValidatorI) TokensFromShares

func (_m *StakingValidatorI) TokensFromShares(_a0 math.LegacyDec) math.LegacyDec

TokensFromShares provides a mock function with given fields: _a0

func (*StakingValidatorI) TokensFromSharesRoundUp

func (_m *StakingValidatorI) TokensFromSharesRoundUp(_a0 math.LegacyDec) math.LegacyDec

TokensFromSharesRoundUp provides a mock function with given fields: _a0

func (*StakingValidatorI) TokensFromSharesTruncated

func (_m *StakingValidatorI) TokensFromSharesTruncated(_a0 math.LegacyDec) math.LegacyDec

TokensFromSharesTruncated provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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