Documentation
¶
Index ¶
- type CCValidatorStore
- type CCValidatorStore_Expecter
- type CCValidatorStore_GetAllCCValidator_Call
- func (_c *CCValidatorStore_GetAllCCValidator_Call) Return(_a0 []consumertypes.CrossChainValidator) *CCValidatorStore_GetAllCCValidator_Call
- func (_c *CCValidatorStore_GetAllCCValidator_Call) Run(run func(ctx types.Context)) *CCValidatorStore_GetAllCCValidator_Call
- func (_c *CCValidatorStore_GetAllCCValidator_Call) RunAndReturn(run func(types.Context) []consumertypes.CrossChainValidator) *CCValidatorStore_GetAllCCValidator_Call
- type CCValidatorStore_GetCCValidator_Call
- func (_c *CCValidatorStore_GetCCValidator_Call) Return(_a0 consumertypes.CrossChainValidator, _a1 bool) *CCValidatorStore_GetCCValidator_Call
- func (_c *CCValidatorStore_GetCCValidator_Call) Run(run func(ctx types.Context, addr []byte)) *CCValidatorStore_GetCCValidator_Call
- func (_c *CCValidatorStore_GetCCValidator_Call) RunAndReturn(run func(types.Context, []byte) (consumertypes.CrossChainValidator, bool)) *CCValidatorStore_GetCCValidator_Call
- type ValidatorI
- func (_m *ValidatorI) ConsPubKey() (types.PubKey, error)
- func (_m *ValidatorI) EXPECT() *ValidatorI_Expecter
- 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 ValidatorI_ConsPubKey_Call
- type ValidatorI_Expecter
- func (_e *ValidatorI_Expecter) ConsPubKey() *ValidatorI_ConsPubKey_Call
- func (_e *ValidatorI_Expecter) GetBondedTokens() *ValidatorI_GetBondedTokens_Call
- func (_e *ValidatorI_Expecter) GetCommission() *ValidatorI_GetCommission_Call
- func (_e *ValidatorI_Expecter) GetConsAddr() *ValidatorI_GetConsAddr_Call
- func (_e *ValidatorI_Expecter) GetConsensusPower(_a0 interface{}) *ValidatorI_GetConsensusPower_Call
- func (_e *ValidatorI_Expecter) GetDelegatorShares() *ValidatorI_GetDelegatorShares_Call
- func (_e *ValidatorI_Expecter) GetMinSelfDelegation() *ValidatorI_GetMinSelfDelegation_Call
- func (_e *ValidatorI_Expecter) GetMoniker() *ValidatorI_GetMoniker_Call
- func (_e *ValidatorI_Expecter) GetOperator() *ValidatorI_GetOperator_Call
- func (_e *ValidatorI_Expecter) GetStatus() *ValidatorI_GetStatus_Call
- func (_e *ValidatorI_Expecter) GetTokens() *ValidatorI_GetTokens_Call
- func (_e *ValidatorI_Expecter) IsBonded() *ValidatorI_IsBonded_Call
- func (_e *ValidatorI_Expecter) IsJailed() *ValidatorI_IsJailed_Call
- func (_e *ValidatorI_Expecter) IsUnbonded() *ValidatorI_IsUnbonded_Call
- func (_e *ValidatorI_Expecter) IsUnbonding() *ValidatorI_IsUnbonding_Call
- func (_e *ValidatorI_Expecter) SharesFromTokens(amt interface{}) *ValidatorI_SharesFromTokens_Call
- func (_e *ValidatorI_Expecter) SharesFromTokensTruncated(amt interface{}) *ValidatorI_SharesFromTokensTruncated_Call
- func (_e *ValidatorI_Expecter) TmConsPublicKey() *ValidatorI_TmConsPublicKey_Call
- func (_e *ValidatorI_Expecter) TokensFromShares(_a0 interface{}) *ValidatorI_TokensFromShares_Call
- func (_e *ValidatorI_Expecter) TokensFromSharesRoundUp(_a0 interface{}) *ValidatorI_TokensFromSharesRoundUp_Call
- func (_e *ValidatorI_Expecter) TokensFromSharesTruncated(_a0 interface{}) *ValidatorI_TokensFromSharesTruncated_Call
- type ValidatorI_GetBondedTokens_Call
- type ValidatorI_GetCommission_Call
- type ValidatorI_GetConsAddr_Call
- type ValidatorI_GetConsensusPower_Call
- func (_c *ValidatorI_GetConsensusPower_Call) Return(_a0 int64) *ValidatorI_GetConsensusPower_Call
- func (_c *ValidatorI_GetConsensusPower_Call) Run(run func(_a0 math.Int)) *ValidatorI_GetConsensusPower_Call
- func (_c *ValidatorI_GetConsensusPower_Call) RunAndReturn(run func(math.Int) int64) *ValidatorI_GetConsensusPower_Call
- type ValidatorI_GetDelegatorShares_Call
- func (_c *ValidatorI_GetDelegatorShares_Call) Return(_a0 math.LegacyDec) *ValidatorI_GetDelegatorShares_Call
- func (_c *ValidatorI_GetDelegatorShares_Call) Run(run func()) *ValidatorI_GetDelegatorShares_Call
- func (_c *ValidatorI_GetDelegatorShares_Call) RunAndReturn(run func() math.LegacyDec) *ValidatorI_GetDelegatorShares_Call
- type ValidatorI_GetMinSelfDelegation_Call
- func (_c *ValidatorI_GetMinSelfDelegation_Call) Return(_a0 math.Int) *ValidatorI_GetMinSelfDelegation_Call
- func (_c *ValidatorI_GetMinSelfDelegation_Call) Run(run func()) *ValidatorI_GetMinSelfDelegation_Call
- func (_c *ValidatorI_GetMinSelfDelegation_Call) RunAndReturn(run func() math.Int) *ValidatorI_GetMinSelfDelegation_Call
- type ValidatorI_GetMoniker_Call
- type ValidatorI_GetOperator_Call
- type ValidatorI_GetStatus_Call
- type ValidatorI_GetTokens_Call
- type ValidatorI_IsBonded_Call
- type ValidatorI_IsJailed_Call
- type ValidatorI_IsUnbonded_Call
- type ValidatorI_IsUnbonding_Call
- type ValidatorI_SharesFromTokensTruncated_Call
- func (_c *ValidatorI_SharesFromTokensTruncated_Call) Return(_a0 math.LegacyDec, _a1 error) *ValidatorI_SharesFromTokensTruncated_Call
- func (_c *ValidatorI_SharesFromTokensTruncated_Call) Run(run func(amt math.Int)) *ValidatorI_SharesFromTokensTruncated_Call
- func (_c *ValidatorI_SharesFromTokensTruncated_Call) RunAndReturn(run func(math.Int) (math.LegacyDec, error)) *ValidatorI_SharesFromTokensTruncated_Call
- type ValidatorI_SharesFromTokens_Call
- func (_c *ValidatorI_SharesFromTokens_Call) Return(_a0 math.LegacyDec, _a1 error) *ValidatorI_SharesFromTokens_Call
- func (_c *ValidatorI_SharesFromTokens_Call) Run(run func(amt math.Int)) *ValidatorI_SharesFromTokens_Call
- func (_c *ValidatorI_SharesFromTokens_Call) RunAndReturn(run func(math.Int) (math.LegacyDec, error)) *ValidatorI_SharesFromTokens_Call
- type ValidatorI_TmConsPublicKey_Call
- func (_c *ValidatorI_TmConsPublicKey_Call) Return(_a0 crypto.PublicKey, _a1 error) *ValidatorI_TmConsPublicKey_Call
- func (_c *ValidatorI_TmConsPublicKey_Call) Run(run func()) *ValidatorI_TmConsPublicKey_Call
- func (_c *ValidatorI_TmConsPublicKey_Call) RunAndReturn(run func() (crypto.PublicKey, error)) *ValidatorI_TmConsPublicKey_Call
- type ValidatorI_TokensFromSharesRoundUp_Call
- func (_c *ValidatorI_TokensFromSharesRoundUp_Call) Return(_a0 math.LegacyDec) *ValidatorI_TokensFromSharesRoundUp_Call
- func (_c *ValidatorI_TokensFromSharesRoundUp_Call) Run(run func(_a0 math.LegacyDec)) *ValidatorI_TokensFromSharesRoundUp_Call
- func (_c *ValidatorI_TokensFromSharesRoundUp_Call) RunAndReturn(run func(math.LegacyDec) math.LegacyDec) *ValidatorI_TokensFromSharesRoundUp_Call
- type ValidatorI_TokensFromSharesTruncated_Call
- func (_c *ValidatorI_TokensFromSharesTruncated_Call) Return(_a0 math.LegacyDec) *ValidatorI_TokensFromSharesTruncated_Call
- func (_c *ValidatorI_TokensFromSharesTruncated_Call) Run(run func(_a0 math.LegacyDec)) *ValidatorI_TokensFromSharesTruncated_Call
- func (_c *ValidatorI_TokensFromSharesTruncated_Call) RunAndReturn(run func(math.LegacyDec) math.LegacyDec) *ValidatorI_TokensFromSharesTruncated_Call
- type ValidatorI_TokensFromShares_Call
- func (_c *ValidatorI_TokensFromShares_Call) Return(_a0 math.LegacyDec) *ValidatorI_TokensFromShares_Call
- func (_c *ValidatorI_TokensFromShares_Call) Run(run func(_a0 math.LegacyDec)) *ValidatorI_TokensFromShares_Call
- func (_c *ValidatorI_TokensFromShares_Call) RunAndReturn(run func(math.LegacyDec) math.LegacyDec) *ValidatorI_TokensFromShares_Call
- type ValidatorStore
- type ValidatorStore_Expecter
- type ValidatorStore_TotalBondedTokens_Call
- func (_c *ValidatorStore_TotalBondedTokens_Call) Return(_a0 math.Int, _a1 error) *ValidatorStore_TotalBondedTokens_Call
- func (_c *ValidatorStore_TotalBondedTokens_Call) Run(run func(ctx context.Context)) *ValidatorStore_TotalBondedTokens_Call
- func (_c *ValidatorStore_TotalBondedTokens_Call) RunAndReturn(run func(context.Context) (math.Int, error)) *ValidatorStore_TotalBondedTokens_Call
- type ValidatorStore_ValidatorByConsAddr_Call
- func (_c *ValidatorStore_ValidatorByConsAddr_Call) Return(_a0 stakingtypes.ValidatorI, _a1 error) *ValidatorStore_ValidatorByConsAddr_Call
- func (_c *ValidatorStore_ValidatorByConsAddr_Call) Run(run func(ctx context.Context, addr types.ConsAddress)) *ValidatorStore_ValidatorByConsAddr_Call
- func (_c *ValidatorStore_ValidatorByConsAddr_Call) RunAndReturn(run func(context.Context, types.ConsAddress) (stakingtypes.ValidatorI, error)) *ValidatorStore_ValidatorByConsAddr_Call
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) EXPECT ¶
func (_m *CCValidatorStore) EXPECT() *CCValidatorStore_Expecter
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 CCValidatorStore_Expecter ¶
type CCValidatorStore_Expecter struct {
// contains filtered or unexported fields
}
func (*CCValidatorStore_Expecter) GetAllCCValidator ¶
func (_e *CCValidatorStore_Expecter) GetAllCCValidator(ctx interface{}) *CCValidatorStore_GetAllCCValidator_Call
GetAllCCValidator is a helper method to define mock.On call
- ctx types.Context
func (*CCValidatorStore_Expecter) GetCCValidator ¶
func (_e *CCValidatorStore_Expecter) GetCCValidator(ctx interface{}, addr interface{}) *CCValidatorStore_GetCCValidator_Call
GetCCValidator is a helper method to define mock.On call
- ctx types.Context
- addr []byte
type CCValidatorStore_GetAllCCValidator_Call ¶
CCValidatorStore_GetAllCCValidator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllCCValidator'
func (*CCValidatorStore_GetAllCCValidator_Call) Return ¶
func (_c *CCValidatorStore_GetAllCCValidator_Call) Return(_a0 []consumertypes.CrossChainValidator) *CCValidatorStore_GetAllCCValidator_Call
func (*CCValidatorStore_GetAllCCValidator_Call) Run ¶
func (_c *CCValidatorStore_GetAllCCValidator_Call) Run(run func(ctx types.Context)) *CCValidatorStore_GetAllCCValidator_Call
func (*CCValidatorStore_GetAllCCValidator_Call) RunAndReturn ¶
func (_c *CCValidatorStore_GetAllCCValidator_Call) RunAndReturn(run func(types.Context) []consumertypes.CrossChainValidator) *CCValidatorStore_GetAllCCValidator_Call
type CCValidatorStore_GetCCValidator_Call ¶
CCValidatorStore_GetCCValidator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCCValidator'
func (*CCValidatorStore_GetCCValidator_Call) Return ¶
func (_c *CCValidatorStore_GetCCValidator_Call) Return(_a0 consumertypes.CrossChainValidator, _a1 bool) *CCValidatorStore_GetCCValidator_Call
func (*CCValidatorStore_GetCCValidator_Call) Run ¶
func (_c *CCValidatorStore_GetCCValidator_Call) Run(run func(ctx types.Context, addr []byte)) *CCValidatorStore_GetCCValidator_Call
func (*CCValidatorStore_GetCCValidator_Call) RunAndReturn ¶
func (_c *CCValidatorStore_GetCCValidator_Call) RunAndReturn(run func(types.Context, []byte) (consumertypes.CrossChainValidator, bool)) *CCValidatorStore_GetCCValidator_Call
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) EXPECT ¶
func (_m *ValidatorI) EXPECT() *ValidatorI_Expecter
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 ValidatorI_ConsPubKey_Call ¶
ValidatorI_ConsPubKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConsPubKey'
func (*ValidatorI_ConsPubKey_Call) Return ¶
func (_c *ValidatorI_ConsPubKey_Call) Return(_a0 types.PubKey, _a1 error) *ValidatorI_ConsPubKey_Call
func (*ValidatorI_ConsPubKey_Call) Run ¶
func (_c *ValidatorI_ConsPubKey_Call) Run(run func()) *ValidatorI_ConsPubKey_Call
func (*ValidatorI_ConsPubKey_Call) RunAndReturn ¶
func (_c *ValidatorI_ConsPubKey_Call) RunAndReturn(run func() (types.PubKey, error)) *ValidatorI_ConsPubKey_Call
type ValidatorI_Expecter ¶
type ValidatorI_Expecter struct {
// contains filtered or unexported fields
}
func (*ValidatorI_Expecter) ConsPubKey ¶
func (_e *ValidatorI_Expecter) ConsPubKey() *ValidatorI_ConsPubKey_Call
ConsPubKey is a helper method to define mock.On call
func (*ValidatorI_Expecter) GetBondedTokens ¶
func (_e *ValidatorI_Expecter) GetBondedTokens() *ValidatorI_GetBondedTokens_Call
GetBondedTokens is a helper method to define mock.On call
func (*ValidatorI_Expecter) GetCommission ¶
func (_e *ValidatorI_Expecter) GetCommission() *ValidatorI_GetCommission_Call
GetCommission is a helper method to define mock.On call
func (*ValidatorI_Expecter) GetConsAddr ¶
func (_e *ValidatorI_Expecter) GetConsAddr() *ValidatorI_GetConsAddr_Call
GetConsAddr is a helper method to define mock.On call
func (*ValidatorI_Expecter) GetConsensusPower ¶
func (_e *ValidatorI_Expecter) GetConsensusPower(_a0 interface{}) *ValidatorI_GetConsensusPower_Call
GetConsensusPower is a helper method to define mock.On call
- _a0 math.Int
func (*ValidatorI_Expecter) GetDelegatorShares ¶
func (_e *ValidatorI_Expecter) GetDelegatorShares() *ValidatorI_GetDelegatorShares_Call
GetDelegatorShares is a helper method to define mock.On call
func (*ValidatorI_Expecter) GetMinSelfDelegation ¶
func (_e *ValidatorI_Expecter) GetMinSelfDelegation() *ValidatorI_GetMinSelfDelegation_Call
GetMinSelfDelegation is a helper method to define mock.On call
func (*ValidatorI_Expecter) GetMoniker ¶
func (_e *ValidatorI_Expecter) GetMoniker() *ValidatorI_GetMoniker_Call
GetMoniker is a helper method to define mock.On call
func (*ValidatorI_Expecter) GetOperator ¶
func (_e *ValidatorI_Expecter) GetOperator() *ValidatorI_GetOperator_Call
GetOperator is a helper method to define mock.On call
func (*ValidatorI_Expecter) GetStatus ¶
func (_e *ValidatorI_Expecter) GetStatus() *ValidatorI_GetStatus_Call
GetStatus is a helper method to define mock.On call
func (*ValidatorI_Expecter) GetTokens ¶
func (_e *ValidatorI_Expecter) GetTokens() *ValidatorI_GetTokens_Call
GetTokens is a helper method to define mock.On call
func (*ValidatorI_Expecter) IsBonded ¶
func (_e *ValidatorI_Expecter) IsBonded() *ValidatorI_IsBonded_Call
IsBonded is a helper method to define mock.On call
func (*ValidatorI_Expecter) IsJailed ¶
func (_e *ValidatorI_Expecter) IsJailed() *ValidatorI_IsJailed_Call
IsJailed is a helper method to define mock.On call
func (*ValidatorI_Expecter) IsUnbonded ¶
func (_e *ValidatorI_Expecter) IsUnbonded() *ValidatorI_IsUnbonded_Call
IsUnbonded is a helper method to define mock.On call
func (*ValidatorI_Expecter) IsUnbonding ¶
func (_e *ValidatorI_Expecter) IsUnbonding() *ValidatorI_IsUnbonding_Call
IsUnbonding is a helper method to define mock.On call
func (*ValidatorI_Expecter) SharesFromTokens ¶
func (_e *ValidatorI_Expecter) SharesFromTokens(amt interface{}) *ValidatorI_SharesFromTokens_Call
SharesFromTokens is a helper method to define mock.On call
- amt math.Int
func (*ValidatorI_Expecter) SharesFromTokensTruncated ¶
func (_e *ValidatorI_Expecter) SharesFromTokensTruncated(amt interface{}) *ValidatorI_SharesFromTokensTruncated_Call
SharesFromTokensTruncated is a helper method to define mock.On call
- amt math.Int
func (*ValidatorI_Expecter) TmConsPublicKey ¶
func (_e *ValidatorI_Expecter) TmConsPublicKey() *ValidatorI_TmConsPublicKey_Call
TmConsPublicKey is a helper method to define mock.On call
func (*ValidatorI_Expecter) TokensFromShares ¶
func (_e *ValidatorI_Expecter) TokensFromShares(_a0 interface{}) *ValidatorI_TokensFromShares_Call
TokensFromShares is a helper method to define mock.On call
- _a0 math.LegacyDec
func (*ValidatorI_Expecter) TokensFromSharesRoundUp ¶
func (_e *ValidatorI_Expecter) TokensFromSharesRoundUp(_a0 interface{}) *ValidatorI_TokensFromSharesRoundUp_Call
TokensFromSharesRoundUp is a helper method to define mock.On call
- _a0 math.LegacyDec
func (*ValidatorI_Expecter) TokensFromSharesTruncated ¶
func (_e *ValidatorI_Expecter) TokensFromSharesTruncated(_a0 interface{}) *ValidatorI_TokensFromSharesTruncated_Call
TokensFromSharesTruncated is a helper method to define mock.On call
- _a0 math.LegacyDec
type ValidatorI_GetBondedTokens_Call ¶
ValidatorI_GetBondedTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBondedTokens'
func (*ValidatorI_GetBondedTokens_Call) Return ¶
func (_c *ValidatorI_GetBondedTokens_Call) Return(_a0 math.Int) *ValidatorI_GetBondedTokens_Call
func (*ValidatorI_GetBondedTokens_Call) Run ¶
func (_c *ValidatorI_GetBondedTokens_Call) Run(run func()) *ValidatorI_GetBondedTokens_Call
func (*ValidatorI_GetBondedTokens_Call) RunAndReturn ¶
func (_c *ValidatorI_GetBondedTokens_Call) RunAndReturn(run func() math.Int) *ValidatorI_GetBondedTokens_Call
type ValidatorI_GetCommission_Call ¶
ValidatorI_GetCommission_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCommission'
func (*ValidatorI_GetCommission_Call) Return ¶
func (_c *ValidatorI_GetCommission_Call) Return(_a0 math.LegacyDec) *ValidatorI_GetCommission_Call
func (*ValidatorI_GetCommission_Call) Run ¶
func (_c *ValidatorI_GetCommission_Call) Run(run func()) *ValidatorI_GetCommission_Call
func (*ValidatorI_GetCommission_Call) RunAndReturn ¶
func (_c *ValidatorI_GetCommission_Call) RunAndReturn(run func() math.LegacyDec) *ValidatorI_GetCommission_Call
type ValidatorI_GetConsAddr_Call ¶
ValidatorI_GetConsAddr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConsAddr'
func (*ValidatorI_GetConsAddr_Call) Return ¶
func (_c *ValidatorI_GetConsAddr_Call) Return(_a0 []byte, _a1 error) *ValidatorI_GetConsAddr_Call
func (*ValidatorI_GetConsAddr_Call) Run ¶
func (_c *ValidatorI_GetConsAddr_Call) Run(run func()) *ValidatorI_GetConsAddr_Call
func (*ValidatorI_GetConsAddr_Call) RunAndReturn ¶
func (_c *ValidatorI_GetConsAddr_Call) RunAndReturn(run func() ([]byte, error)) *ValidatorI_GetConsAddr_Call
type ValidatorI_GetConsensusPower_Call ¶
ValidatorI_GetConsensusPower_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConsensusPower'
func (*ValidatorI_GetConsensusPower_Call) Return ¶
func (_c *ValidatorI_GetConsensusPower_Call) Return(_a0 int64) *ValidatorI_GetConsensusPower_Call
func (*ValidatorI_GetConsensusPower_Call) Run ¶
func (_c *ValidatorI_GetConsensusPower_Call) Run(run func(_a0 math.Int)) *ValidatorI_GetConsensusPower_Call
func (*ValidatorI_GetConsensusPower_Call) RunAndReturn ¶
func (_c *ValidatorI_GetConsensusPower_Call) RunAndReturn(run func(math.Int) int64) *ValidatorI_GetConsensusPower_Call
type ValidatorI_GetDelegatorShares_Call ¶
type ValidatorI_GetDelegatorShares_Call struct {
}ValidatorI_GetDelegatorShares_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDelegatorShares'
func (*ValidatorI_GetDelegatorShares_Call) Return ¶
func (_c *ValidatorI_GetDelegatorShares_Call) Return(_a0 math.LegacyDec) *ValidatorI_GetDelegatorShares_Call
func (*ValidatorI_GetDelegatorShares_Call) Run ¶
func (_c *ValidatorI_GetDelegatorShares_Call) Run(run func()) *ValidatorI_GetDelegatorShares_Call
func (*ValidatorI_GetDelegatorShares_Call) RunAndReturn ¶
func (_c *ValidatorI_GetDelegatorShares_Call) RunAndReturn(run func() math.LegacyDec) *ValidatorI_GetDelegatorShares_Call
type ValidatorI_GetMinSelfDelegation_Call ¶
ValidatorI_GetMinSelfDelegation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMinSelfDelegation'
func (*ValidatorI_GetMinSelfDelegation_Call) Return ¶
func (_c *ValidatorI_GetMinSelfDelegation_Call) Return(_a0 math.Int) *ValidatorI_GetMinSelfDelegation_Call
func (*ValidatorI_GetMinSelfDelegation_Call) Run ¶
func (_c *ValidatorI_GetMinSelfDelegation_Call) Run(run func()) *ValidatorI_GetMinSelfDelegation_Call
func (*ValidatorI_GetMinSelfDelegation_Call) RunAndReturn ¶
func (_c *ValidatorI_GetMinSelfDelegation_Call) RunAndReturn(run func() math.Int) *ValidatorI_GetMinSelfDelegation_Call
type ValidatorI_GetMoniker_Call ¶
ValidatorI_GetMoniker_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMoniker'
func (*ValidatorI_GetMoniker_Call) Return ¶
func (_c *ValidatorI_GetMoniker_Call) Return(_a0 string) *ValidatorI_GetMoniker_Call
func (*ValidatorI_GetMoniker_Call) Run ¶
func (_c *ValidatorI_GetMoniker_Call) Run(run func()) *ValidatorI_GetMoniker_Call
func (*ValidatorI_GetMoniker_Call) RunAndReturn ¶
func (_c *ValidatorI_GetMoniker_Call) RunAndReturn(run func() string) *ValidatorI_GetMoniker_Call
type ValidatorI_GetOperator_Call ¶
ValidatorI_GetOperator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOperator'
func (*ValidatorI_GetOperator_Call) Return ¶
func (_c *ValidatorI_GetOperator_Call) Return(_a0 string) *ValidatorI_GetOperator_Call
func (*ValidatorI_GetOperator_Call) Run ¶
func (_c *ValidatorI_GetOperator_Call) Run(run func()) *ValidatorI_GetOperator_Call
func (*ValidatorI_GetOperator_Call) RunAndReturn ¶
func (_c *ValidatorI_GetOperator_Call) RunAndReturn(run func() string) *ValidatorI_GetOperator_Call
type ValidatorI_GetStatus_Call ¶
ValidatorI_GetStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatus'
func (*ValidatorI_GetStatus_Call) Return ¶
func (_c *ValidatorI_GetStatus_Call) Return(_a0 stakingtypes.BondStatus) *ValidatorI_GetStatus_Call
func (*ValidatorI_GetStatus_Call) Run ¶
func (_c *ValidatorI_GetStatus_Call) Run(run func()) *ValidatorI_GetStatus_Call
func (*ValidatorI_GetStatus_Call) RunAndReturn ¶
func (_c *ValidatorI_GetStatus_Call) RunAndReturn(run func() stakingtypes.BondStatus) *ValidatorI_GetStatus_Call
type ValidatorI_GetTokens_Call ¶
ValidatorI_GetTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTokens'
func (*ValidatorI_GetTokens_Call) Return ¶
func (_c *ValidatorI_GetTokens_Call) Return(_a0 math.Int) *ValidatorI_GetTokens_Call
func (*ValidatorI_GetTokens_Call) Run ¶
func (_c *ValidatorI_GetTokens_Call) Run(run func()) *ValidatorI_GetTokens_Call
func (*ValidatorI_GetTokens_Call) RunAndReturn ¶
func (_c *ValidatorI_GetTokens_Call) RunAndReturn(run func() math.Int) *ValidatorI_GetTokens_Call
type ValidatorI_IsBonded_Call ¶
ValidatorI_IsBonded_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsBonded'
func (*ValidatorI_IsBonded_Call) Return ¶
func (_c *ValidatorI_IsBonded_Call) Return(_a0 bool) *ValidatorI_IsBonded_Call
func (*ValidatorI_IsBonded_Call) Run ¶
func (_c *ValidatorI_IsBonded_Call) Run(run func()) *ValidatorI_IsBonded_Call
func (*ValidatorI_IsBonded_Call) RunAndReturn ¶
func (_c *ValidatorI_IsBonded_Call) RunAndReturn(run func() bool) *ValidatorI_IsBonded_Call
type ValidatorI_IsJailed_Call ¶
ValidatorI_IsJailed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsJailed'
func (*ValidatorI_IsJailed_Call) Return ¶
func (_c *ValidatorI_IsJailed_Call) Return(_a0 bool) *ValidatorI_IsJailed_Call
func (*ValidatorI_IsJailed_Call) Run ¶
func (_c *ValidatorI_IsJailed_Call) Run(run func()) *ValidatorI_IsJailed_Call
func (*ValidatorI_IsJailed_Call) RunAndReturn ¶
func (_c *ValidatorI_IsJailed_Call) RunAndReturn(run func() bool) *ValidatorI_IsJailed_Call
type ValidatorI_IsUnbonded_Call ¶
ValidatorI_IsUnbonded_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsUnbonded'
func (*ValidatorI_IsUnbonded_Call) Return ¶
func (_c *ValidatorI_IsUnbonded_Call) Return(_a0 bool) *ValidatorI_IsUnbonded_Call
func (*ValidatorI_IsUnbonded_Call) Run ¶
func (_c *ValidatorI_IsUnbonded_Call) Run(run func()) *ValidatorI_IsUnbonded_Call
func (*ValidatorI_IsUnbonded_Call) RunAndReturn ¶
func (_c *ValidatorI_IsUnbonded_Call) RunAndReturn(run func() bool) *ValidatorI_IsUnbonded_Call
type ValidatorI_IsUnbonding_Call ¶
ValidatorI_IsUnbonding_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsUnbonding'
func (*ValidatorI_IsUnbonding_Call) Return ¶
func (_c *ValidatorI_IsUnbonding_Call) Return(_a0 bool) *ValidatorI_IsUnbonding_Call
func (*ValidatorI_IsUnbonding_Call) Run ¶
func (_c *ValidatorI_IsUnbonding_Call) Run(run func()) *ValidatorI_IsUnbonding_Call
func (*ValidatorI_IsUnbonding_Call) RunAndReturn ¶
func (_c *ValidatorI_IsUnbonding_Call) RunAndReturn(run func() bool) *ValidatorI_IsUnbonding_Call
type ValidatorI_SharesFromTokensTruncated_Call ¶
type ValidatorI_SharesFromTokensTruncated_Call struct {
}ValidatorI_SharesFromTokensTruncated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SharesFromTokensTruncated'
func (*ValidatorI_SharesFromTokensTruncated_Call) Return ¶
func (_c *ValidatorI_SharesFromTokensTruncated_Call) Return(_a0 math.LegacyDec, _a1 error) *ValidatorI_SharesFromTokensTruncated_Call
func (*ValidatorI_SharesFromTokensTruncated_Call) Run ¶
func (_c *ValidatorI_SharesFromTokensTruncated_Call) Run(run func(amt math.Int)) *ValidatorI_SharesFromTokensTruncated_Call
func (*ValidatorI_SharesFromTokensTruncated_Call) RunAndReturn ¶
func (_c *ValidatorI_SharesFromTokensTruncated_Call) RunAndReturn(run func(math.Int) (math.LegacyDec, error)) *ValidatorI_SharesFromTokensTruncated_Call
type ValidatorI_SharesFromTokens_Call ¶
type ValidatorI_SharesFromTokens_Call struct {
}ValidatorI_SharesFromTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SharesFromTokens'
func (*ValidatorI_SharesFromTokens_Call) Return ¶
func (_c *ValidatorI_SharesFromTokens_Call) Return(_a0 math.LegacyDec, _a1 error) *ValidatorI_SharesFromTokens_Call
func (*ValidatorI_SharesFromTokens_Call) Run ¶
func (_c *ValidatorI_SharesFromTokens_Call) Run(run func(amt math.Int)) *ValidatorI_SharesFromTokens_Call
func (*ValidatorI_SharesFromTokens_Call) RunAndReturn ¶
func (_c *ValidatorI_SharesFromTokens_Call) RunAndReturn(run func(math.Int) (math.LegacyDec, error)) *ValidatorI_SharesFromTokens_Call
type ValidatorI_TmConsPublicKey_Call ¶
ValidatorI_TmConsPublicKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TmConsPublicKey'
func (*ValidatorI_TmConsPublicKey_Call) Return ¶
func (_c *ValidatorI_TmConsPublicKey_Call) Return(_a0 crypto.PublicKey, _a1 error) *ValidatorI_TmConsPublicKey_Call
func (*ValidatorI_TmConsPublicKey_Call) Run ¶
func (_c *ValidatorI_TmConsPublicKey_Call) Run(run func()) *ValidatorI_TmConsPublicKey_Call
func (*ValidatorI_TmConsPublicKey_Call) RunAndReturn ¶
func (_c *ValidatorI_TmConsPublicKey_Call) RunAndReturn(run func() (crypto.PublicKey, error)) *ValidatorI_TmConsPublicKey_Call
type ValidatorI_TokensFromSharesRoundUp_Call ¶
type ValidatorI_TokensFromSharesRoundUp_Call struct {
}ValidatorI_TokensFromSharesRoundUp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TokensFromSharesRoundUp'
func (*ValidatorI_TokensFromSharesRoundUp_Call) Return ¶
func (_c *ValidatorI_TokensFromSharesRoundUp_Call) Return(_a0 math.LegacyDec) *ValidatorI_TokensFromSharesRoundUp_Call
func (*ValidatorI_TokensFromSharesRoundUp_Call) Run ¶
func (_c *ValidatorI_TokensFromSharesRoundUp_Call) Run(run func(_a0 math.LegacyDec)) *ValidatorI_TokensFromSharesRoundUp_Call
func (*ValidatorI_TokensFromSharesRoundUp_Call) RunAndReturn ¶
func (_c *ValidatorI_TokensFromSharesRoundUp_Call) RunAndReturn(run func(math.LegacyDec) math.LegacyDec) *ValidatorI_TokensFromSharesRoundUp_Call
type ValidatorI_TokensFromSharesTruncated_Call ¶
type ValidatorI_TokensFromSharesTruncated_Call struct {
}ValidatorI_TokensFromSharesTruncated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TokensFromSharesTruncated'
func (*ValidatorI_TokensFromSharesTruncated_Call) Return ¶
func (_c *ValidatorI_TokensFromSharesTruncated_Call) Return(_a0 math.LegacyDec) *ValidatorI_TokensFromSharesTruncated_Call
func (*ValidatorI_TokensFromSharesTruncated_Call) Run ¶
func (_c *ValidatorI_TokensFromSharesTruncated_Call) Run(run func(_a0 math.LegacyDec)) *ValidatorI_TokensFromSharesTruncated_Call
func (*ValidatorI_TokensFromSharesTruncated_Call) RunAndReturn ¶
func (_c *ValidatorI_TokensFromSharesTruncated_Call) RunAndReturn(run func(math.LegacyDec) math.LegacyDec) *ValidatorI_TokensFromSharesTruncated_Call
type ValidatorI_TokensFromShares_Call ¶
type ValidatorI_TokensFromShares_Call struct {
}ValidatorI_TokensFromShares_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TokensFromShares'
func (*ValidatorI_TokensFromShares_Call) Return ¶
func (_c *ValidatorI_TokensFromShares_Call) Return(_a0 math.LegacyDec) *ValidatorI_TokensFromShares_Call
func (*ValidatorI_TokensFromShares_Call) Run ¶
func (_c *ValidatorI_TokensFromShares_Call) Run(run func(_a0 math.LegacyDec)) *ValidatorI_TokensFromShares_Call
func (*ValidatorI_TokensFromShares_Call) RunAndReturn ¶
func (_c *ValidatorI_TokensFromShares_Call) RunAndReturn(run func(math.LegacyDec) math.LegacyDec) *ValidatorI_TokensFromShares_Call
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) EXPECT ¶
func (_m *ValidatorStore) EXPECT() *ValidatorStore_Expecter
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
type ValidatorStore_Expecter ¶
type ValidatorStore_Expecter struct {
// contains filtered or unexported fields
}
func (*ValidatorStore_Expecter) TotalBondedTokens ¶
func (_e *ValidatorStore_Expecter) TotalBondedTokens(ctx interface{}) *ValidatorStore_TotalBondedTokens_Call
TotalBondedTokens is a helper method to define mock.On call
- ctx context.Context
func (*ValidatorStore_Expecter) ValidatorByConsAddr ¶
func (_e *ValidatorStore_Expecter) ValidatorByConsAddr(ctx interface{}, addr interface{}) *ValidatorStore_ValidatorByConsAddr_Call
ValidatorByConsAddr is a helper method to define mock.On call
- ctx context.Context
- addr types.ConsAddress
type ValidatorStore_TotalBondedTokens_Call ¶
ValidatorStore_TotalBondedTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TotalBondedTokens'
func (*ValidatorStore_TotalBondedTokens_Call) Return ¶
func (_c *ValidatorStore_TotalBondedTokens_Call) Return(_a0 math.Int, _a1 error) *ValidatorStore_TotalBondedTokens_Call
func (*ValidatorStore_TotalBondedTokens_Call) Run ¶
func (_c *ValidatorStore_TotalBondedTokens_Call) Run(run func(ctx context.Context)) *ValidatorStore_TotalBondedTokens_Call
func (*ValidatorStore_TotalBondedTokens_Call) RunAndReturn ¶
func (_c *ValidatorStore_TotalBondedTokens_Call) RunAndReturn(run func(context.Context) (math.Int, error)) *ValidatorStore_TotalBondedTokens_Call
type ValidatorStore_ValidatorByConsAddr_Call ¶
ValidatorStore_ValidatorByConsAddr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidatorByConsAddr'
func (*ValidatorStore_ValidatorByConsAddr_Call) Return ¶
func (_c *ValidatorStore_ValidatorByConsAddr_Call) Return(_a0 stakingtypes.ValidatorI, _a1 error) *ValidatorStore_ValidatorByConsAddr_Call
func (*ValidatorStore_ValidatorByConsAddr_Call) Run ¶
func (_c *ValidatorStore_ValidatorByConsAddr_Call) Run(run func(ctx context.Context, addr types.ConsAddress)) *ValidatorStore_ValidatorByConsAddr_Call
func (*ValidatorStore_ValidatorByConsAddr_Call) RunAndReturn ¶
func (_c *ValidatorStore_ValidatorByConsAddr_Call) RunAndReturn(run func(context.Context, types.ConsAddress) (stakingtypes.ValidatorI, error)) *ValidatorStore_ValidatorByConsAddr_Call