Documentation ¶
Index ¶
- type StakingKeeper
- type StakingValidatorI
- func (_m *StakingValidatorI) ConsPubKey() (types.PubKey, error)
- func (_m *StakingValidatorI) GetBondedTokens() cosmos_sdktypes.Int
- func (_m *StakingValidatorI) GetCommission() cosmos_sdktypes.Dec
- func (_m *StakingValidatorI) GetConsAddr() (cosmos_sdktypes.ConsAddress, error)
- func (_m *StakingValidatorI) GetConsensusPower(_a0 cosmos_sdktypes.Int) int64
- func (_m *StakingValidatorI) GetDelegatorShares() cosmos_sdktypes.Dec
- func (_m *StakingValidatorI) GetMinSelfDelegation() cosmos_sdktypes.Int
- func (_m *StakingValidatorI) GetMoniker() string
- func (_m *StakingValidatorI) GetOperator() cosmos_sdktypes.ValAddress
- func (_m *StakingValidatorI) GetStatus() stakingtypes.BondStatus
- func (_m *StakingValidatorI) GetTokens() cosmos_sdktypes.Int
- func (_m *StakingValidatorI) IsBonded() bool
- func (_m *StakingValidatorI) IsJailed() bool
- func (_m *StakingValidatorI) IsUnbonded() bool
- func (_m *StakingValidatorI) IsUnbonding() bool
- func (_m *StakingValidatorI) SharesFromTokens(amt cosmos_sdktypes.Int) (cosmos_sdktypes.Dec, error)
- func (_m *StakingValidatorI) SharesFromTokensTruncated(amt cosmos_sdktypes.Int) (cosmos_sdktypes.Dec, error)
- func (_m *StakingValidatorI) TmConsPublicKey() (crypto.PublicKey, error)
- func (_m *StakingValidatorI) TokensFromShares(_a0 cosmos_sdktypes.Dec) cosmos_sdktypes.Dec
- func (_m *StakingValidatorI) TokensFromSharesRoundUp(_a0 cosmos_sdktypes.Dec) cosmos_sdktypes.Dec
- func (_m *StakingValidatorI) TokensFromSharesTruncated(_a0 cosmos_sdktypes.Dec) cosmos_sdktypes.Dec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StakingKeeper ¶
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 ¶
func (_m *StakingKeeper) Validator(ctx types.Context, addr types.ValAddress) stakingtypes.ValidatorI
Validator provides a mock function with given fields: ctx, addr
type StakingValidatorI ¶
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