Documentation ¶
Index ¶
- type QueryServer
- func (_m *QueryServer) GetAlivePigeons(_a0 context.Context, _a1 *types.QueryGetAlivePigeonsRequest) (*types.QueryGetAlivePigeonsResponse, error)
- func (_m *QueryServer) GetSnapshotByID(_a0 context.Context, _a1 *types.QueryGetSnapshotByIDRequest) (*types.QueryGetSnapshotByIDResponse, error)
- func (_m *QueryServer) GetValidatorAliveUntil(_a0 context.Context, _a1 *types.QueryGetValidatorAliveUntilRequest) (*types.QueryGetValidatorAliveUntilResponse, error)
- func (_m *QueryServer) GetValidatorJailReason(_a0 context.Context, _a1 *types.QueryGetValidatorJailReasonRequest) (*types.QueryGetValidatorJailReasonResponse, error)
- func (_m *QueryServer) Params(_a0 context.Context, _a1 *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (_m *QueryServer) ValidatorInfo(_a0 context.Context, _a1 *types.QueryValidatorInfoRequest) (*types.QueryValidatorInfoResponse, error)
- 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 QueryServer ¶ added in v1.3.0
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
func (_m *QueryServer) GetAlivePigeons(_a0 context.Context, _a1 *types.QueryGetAlivePigeonsRequest) (*types.QueryGetAlivePigeonsResponse, error)
GetAlivePigeons provides a mock function with given fields: _a0, _a1
func (*QueryServer) GetSnapshotByID ¶ added in v1.3.0
func (_m *QueryServer) GetSnapshotByID(_a0 context.Context, _a1 *types.QueryGetSnapshotByIDRequest) (*types.QueryGetSnapshotByIDResponse, error)
GetSnapshotByID provides a mock function with given fields: _a0, _a1
func (*QueryServer) GetValidatorAliveUntil ¶ added in v1.3.0
func (_m *QueryServer) GetValidatorAliveUntil(_a0 context.Context, _a1 *types.QueryGetValidatorAliveUntilRequest) (*types.QueryGetValidatorAliveUntilResponse, error)
GetValidatorAliveUntil provides a mock function with given fields: _a0, _a1
func (*QueryServer) GetValidatorJailReason ¶ added in v1.3.0
func (_m *QueryServer) GetValidatorJailReason(_a0 context.Context, _a1 *types.QueryGetValidatorJailReasonRequest) (*types.QueryGetValidatorJailReasonResponse, error)
GetValidatorJailReason provides a mock function with given fields: _a0, _a1
func (*QueryServer) Params ¶ added in v1.3.0
func (_m *QueryServer) Params(_a0 context.Context, _a1 *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params provides a mock function with given fields: _a0, _a1
func (*QueryServer) ValidatorInfo ¶ added in v1.3.0
func (_m *QueryServer) ValidatorInfo(_a0 context.Context, _a1 *types.QueryValidatorInfoRequest) (*types.QueryValidatorInfoResponse, error)
ValidatorInfo provides a mock function with given fields: _a0, _a1
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