mocks

package
v0.1.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 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 ValidatorI

type ValidatorI struct {
	mock.Mock
}

ValidatorI is an autogenerated mock type for the ValidatorI type

func NewValidatorI

func NewValidatorI(t interface {
	mock.TestingT
	Cleanup(func())
},
) *ValidatorI

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

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

ConsPubKey provides a mock function with given fields:

func (*ValidatorI) GetBondedTokens

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

GetBondedTokens provides a mock function with given fields:

func (*ValidatorI) GetCommission

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

GetCommission provides a mock function with given fields:

func (*ValidatorI) GetConsAddr

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

GetConsAddr provides a mock function with given fields:

func (*ValidatorI) GetConsensusPower

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

GetConsensusPower provides a mock function with given fields: _a0

func (*ValidatorI) GetDelegatorShares

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

GetDelegatorShares provides a mock function with given fields:

func (*ValidatorI) GetMinSelfDelegation

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

GetMinSelfDelegation provides a mock function with given fields:

func (*ValidatorI) GetMoniker

func (_m *ValidatorI) GetMoniker() string

GetMoniker provides a mock function with given fields:

func (*ValidatorI) GetOperator

func (_m *ValidatorI) GetOperator() string

GetOperator provides a mock function with given fields:

func (*ValidatorI) GetStatus

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

GetStatus provides a mock function with given fields:

func (*ValidatorI) GetTokens

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

GetTokens provides a mock function with given fields:

func (*ValidatorI) IsBonded

func (_m *ValidatorI) IsBonded() bool

IsBonded provides a mock function with given fields:

func (*ValidatorI) IsJailed

func (_m *ValidatorI) IsJailed() bool

IsJailed provides a mock function with given fields:

func (*ValidatorI) IsUnbonded

func (_m *ValidatorI) IsUnbonded() bool

IsUnbonded provides a mock function with given fields:

func (*ValidatorI) IsUnbonding

func (_m *ValidatorI) IsUnbonding() bool

IsUnbonding provides a mock function with given fields:

func (*ValidatorI) SharesFromTokens

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

SharesFromTokens provides a mock function with given fields: amt

func (*ValidatorI) SharesFromTokensTruncated

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

SharesFromTokensTruncated provides a mock function with given fields: amt

func (*ValidatorI) TmConsPublicKey

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

TmConsPublicKey provides a mock function with given fields:

func (*ValidatorI) TokensFromShares

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

TokensFromShares provides a mock function with given fields: _a0

func (*ValidatorI) TokensFromSharesRoundUp

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

TokensFromSharesRoundUp provides a mock function with given fields: _a0

func (*ValidatorI) TokensFromSharesTruncated

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

TokensFromSharesTruncated provides a mock function with given fields: _a0

type ValidatorStore

type ValidatorStore struct {
	mock.Mock
}

ValidatorStore is an autogenerated mock type for the ValidatorStore type

func NewValidatorStore

func NewValidatorStore(t interface {
	mock.TestingT
	Cleanup(func())
},
) *ValidatorStore

NewValidatorStore creates a new instance of ValidatorStore. 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 (*ValidatorStore) TotalBondedTokens

func (_m *ValidatorStore) TotalBondedTokens(ctx context.Context) (math.Int, error)

TotalBondedTokens provides a mock function with given fields: ctx

func (*ValidatorStore) ValidatorByConsAddr

func (_m *ValidatorStore) ValidatorByConsAddr(ctx context.Context, addr types.ConsAddress) (stakingtypes.ValidatorI, error)

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

Jump to

Keyboard shortcuts

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