Documentation ¶
Index ¶
- type CCValidatorStore
- type ValidatorI
- func (_m *ValidatorI) ConsPubKey() (types.PubKey, error)
- func (_m *ValidatorI) GetBondedTokens() math.Int
- func (_m *ValidatorI) GetCommission() math.LegacyDec
- func (_m *ValidatorI) GetConsAddr() ([]byte, error)
- func (_m *ValidatorI) GetConsensusPower(_a0 math.Int) int64
- func (_m *ValidatorI) GetDelegatorShares() math.LegacyDec
- func (_m *ValidatorI) GetMinSelfDelegation() math.Int
- func (_m *ValidatorI) GetMoniker() string
- func (_m *ValidatorI) GetOperator() string
- func (_m *ValidatorI) GetStatus() stakingtypes.BondStatus
- func (_m *ValidatorI) GetTokens() math.Int
- func (_m *ValidatorI) IsBonded() bool
- func (_m *ValidatorI) IsJailed() bool
- func (_m *ValidatorI) IsUnbonded() bool
- func (_m *ValidatorI) IsUnbonding() bool
- func (_m *ValidatorI) SharesFromTokens(amt math.Int) (math.LegacyDec, error)
- func (_m *ValidatorI) SharesFromTokensTruncated(amt math.Int) (math.LegacyDec, error)
- func (_m *ValidatorI) TmConsPublicKey() (crypto.PublicKey, error)
- func (_m *ValidatorI) TokensFromShares(_a0 math.LegacyDec) math.LegacyDec
- func (_m *ValidatorI) TokensFromSharesRoundUp(_a0 math.LegacyDec) math.LegacyDec
- func (_m *ValidatorI) TokensFromSharesTruncated(_a0 math.LegacyDec) math.LegacyDec
- type ValidatorStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CCValidatorStore ¶
CCValidatorStore is an autogenerated mock type for the CCValidatorStore type
func NewCCValidatorStore ¶
func NewCCValidatorStore(t interface { mock.TestingT Cleanup(func()) }) *CCValidatorStore
NewCCValidatorStore creates a new instance of CCValidatorStore. 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 (*CCValidatorStore) GetAllCCValidator ¶
func (_m *CCValidatorStore) GetAllCCValidator(ctx types.Context) []consumertypes.CrossChainValidator
GetAllCCValidator provides a mock function with given fields: ctx
func (*CCValidatorStore) GetCCValidator ¶
func (_m *CCValidatorStore) GetCCValidator(ctx types.Context, addr []byte) (consumertypes.CrossChainValidator, bool)
GetCCValidator provides a mock function with given fields: ctx, addr
type ValidatorI ¶
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 no fields
func (*ValidatorI) GetBondedTokens ¶
func (_m *ValidatorI) GetBondedTokens() math.Int
GetBondedTokens provides a mock function with no fields
func (*ValidatorI) GetCommission ¶
func (_m *ValidatorI) GetCommission() math.LegacyDec
GetCommission provides a mock function with no fields
func (*ValidatorI) GetConsAddr ¶
func (_m *ValidatorI) GetConsAddr() ([]byte, error)
GetConsAddr provides a mock function with no 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 no fields
func (*ValidatorI) GetMinSelfDelegation ¶
func (_m *ValidatorI) GetMinSelfDelegation() math.Int
GetMinSelfDelegation provides a mock function with no fields
func (*ValidatorI) GetMoniker ¶
func (_m *ValidatorI) GetMoniker() string
GetMoniker provides a mock function with no fields
func (*ValidatorI) GetOperator ¶
func (_m *ValidatorI) GetOperator() string
GetOperator provides a mock function with no fields
func (*ValidatorI) GetStatus ¶
func (_m *ValidatorI) GetStatus() stakingtypes.BondStatus
GetStatus provides a mock function with no fields
func (*ValidatorI) GetTokens ¶
func (_m *ValidatorI) GetTokens() math.Int
GetTokens provides a mock function with no fields
func (*ValidatorI) IsBonded ¶
func (_m *ValidatorI) IsBonded() bool
IsBonded provides a mock function with no fields
func (*ValidatorI) IsJailed ¶
func (_m *ValidatorI) IsJailed() bool
IsJailed provides a mock function with no fields
func (*ValidatorI) IsUnbonded ¶
func (_m *ValidatorI) IsUnbonded() bool
IsUnbonded provides a mock function with no fields
func (*ValidatorI) IsUnbonding ¶
func (_m *ValidatorI) IsUnbonding() bool
IsUnbonding provides a mock function with no fields
func (*ValidatorI) SharesFromTokens ¶
SharesFromTokens provides a mock function with given fields: amt
func (*ValidatorI) SharesFromTokensTruncated ¶
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 no 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 ¶
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 ¶
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