mocks

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvmKeeper added in v1.7.0

type EvmKeeper struct {
	mock.Mock
}

EvmKeeper is an autogenerated mock type for the EvmKeeper type

func NewEvmKeeper added in v1.7.0

func NewEvmKeeper(t mockConstructorTestingTNewEvmKeeper) *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.

func (*EvmKeeper) MissingChains added in v1.7.0

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

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

type QueryServer added in v1.3.0

type QueryServer struct {
	mock.Mock
}

QueryServer is an autogenerated mock type for the QueryServer type

func NewQueryServer added in v1.3.0

func NewQueryServer(t mockConstructorTestingTNewQueryServer) *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.

func (*QueryServer) GetAlivePigeons added in v1.3.0

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

func (*QueryServer) GetSnapshotByID added in v1.3.0

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

func (*QueryServer) GetValidatorAliveUntil added in v1.3.0

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

func (*QueryServer) GetValidatorJailReason added in v1.3.0

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

func (*QueryServer) Params added in v1.3.0

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

func (*QueryServer) ValidatorInfo added in v1.3.0

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

type StakingKeeper

type StakingKeeper struct {
	mock.Mock
}

StakingKeeper is an autogenerated mock type for the StakingKeeper type

func NewStakingKeeper

func NewStakingKeeper(t mockConstructorTestingTNewStakingKeeper) *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.

func (*StakingKeeper) IterateValidators

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

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

func (*StakingKeeper) Jail added in v0.6.0

func (_m *StakingKeeper) Jail(ctx types.Context, consAddr types.ConsAddress)

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 mockConstructorTestingTNewStakingValidatorI) *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.

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() cosmos_sdktypes.Int

GetBondedTokens provides a mock function with given fields:

func (*StakingValidatorI) GetCommission

func (_m *StakingValidatorI) GetCommission() cosmos_sdktypes.Dec

GetCommission provides a mock function with given fields:

func (*StakingValidatorI) GetConsAddr

func (_m *StakingValidatorI) GetConsAddr() (cosmos_sdktypes.ConsAddress, error)

GetConsAddr provides a mock function with given fields:

func (*StakingValidatorI) GetConsensusPower

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

GetConsensusPower provides a mock function with given fields: _a0

func (*StakingValidatorI) GetDelegatorShares

func (_m *StakingValidatorI) GetDelegatorShares() cosmos_sdktypes.Dec

GetDelegatorShares provides a mock function with given fields:

func (*StakingValidatorI) GetMinSelfDelegation

func (_m *StakingValidatorI) GetMinSelfDelegation() cosmos_sdktypes.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() cosmos_sdktypes.ValAddress

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() cosmos_sdktypes.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 cosmos_sdktypes.Int) (cosmos_sdktypes.Dec, error)

SharesFromTokens provides a mock function with given fields: amt

func (*StakingValidatorI) SharesFromTokensTruncated

func (_m *StakingValidatorI) SharesFromTokensTruncated(amt cosmos_sdktypes.Int) (cosmos_sdktypes.Dec, 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 cosmos_sdktypes.Dec) cosmos_sdktypes.Dec

TokensFromShares provides a mock function with given fields: _a0

func (*StakingValidatorI) TokensFromSharesRoundUp

func (_m *StakingValidatorI) TokensFromSharesRoundUp(_a0 cosmos_sdktypes.Dec) cosmos_sdktypes.Dec

TokensFromSharesRoundUp provides a mock function with given fields: _a0

func (*StakingValidatorI) TokensFromSharesTruncated

func (_m *StakingValidatorI) TokensFromSharesTruncated(_a0 cosmos_sdktypes.Dec) cosmos_sdktypes.Dec

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