Documentation ¶
Index ¶
- type EvmKeeper
- type QueryServer
- func (_m *QueryServer) GetAlivePigeons(_a0 context.Context, _a1 *types.QueryGetAlivePigeonsRequest) (*types.QueryGetAlivePigeonsResponse, error)
- func (_m *QueryServer) GetLatestPublishedSnapshot(_a0 context.Context, _a1 *types.QueryGetLatestPublishedSnapshotRequest) (*types.QueryGetLatestPublishedSnapshotResponse, error)
- func (_m *QueryServer) GetPigeonRequirements(_a0 context.Context, _a1 *types.QueryGetPigeonRequirementsRequest) (*types.QueryGetPigeonRequirementsResponse, 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 SlashingKeeper
- type StakingKeeper
- func (_m *StakingKeeper) IterateValidators(ctx context.Context, fn func(int64, types.ValidatorI) bool) error
- func (_m *StakingKeeper) Jail(ctx context.Context, consAddr cosmos_sdktypes.ConsAddress) error
- func (_m *StakingKeeper) Validator(ctx context.Context, addr cosmos_sdktypes.ValAddress) (types.ValidatorI, error)
- type StakingValidatorI
- func (_m *StakingValidatorI) ConsPubKey() (types.PubKey, error)
- func (_m *StakingValidatorI) GetBondedTokens() math.Int
- func (_m *StakingValidatorI) GetCommission() math.LegacyDec
- func (_m *StakingValidatorI) GetConsAddr() ([]byte, error)
- func (_m *StakingValidatorI) GetConsensusPower(_a0 math.Int) int64
- func (_m *StakingValidatorI) GetDelegatorShares() math.LegacyDec
- func (_m *StakingValidatorI) GetMinSelfDelegation() math.Int
- func (_m *StakingValidatorI) GetMoniker() string
- func (_m *StakingValidatorI) GetOperator() string
- func (_m *StakingValidatorI) GetStatus() stakingtypes.BondStatus
- func (_m *StakingValidatorI) GetTokens() math.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 math.Int) (math.LegacyDec, error)
- func (_m *StakingValidatorI) SharesFromTokensTruncated(amt math.Int) (math.LegacyDec, error)
- func (_m *StakingValidatorI) TmConsPublicKey() (crypto.PublicKey, error)
- func (_m *StakingValidatorI) TokensFromShares(_a0 math.LegacyDec) math.LegacyDec
- func (_m *StakingValidatorI) TokensFromSharesRoundUp(_a0 math.LegacyDec) math.LegacyDec
- func (_m *StakingValidatorI) TokensFromSharesTruncated(_a0 math.LegacyDec) math.LegacyDec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvmKeeper ¶
EvmKeeper is an autogenerated mock type for the EvmKeeper type
func NewEvmKeeper ¶
NewEvmKeeper creates a new instance of EvmKeeper. 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.
type QueryServer ¶
QueryServer is an autogenerated mock type for the QueryServer type
func NewQueryServer ¶
func NewQueryServer(t interface { mock.TestingT Cleanup(func()) }, ) *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. The first argument is typically a *testing.T value.
func (*QueryServer) GetAlivePigeons ¶
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) GetLatestPublishedSnapshot ¶
func (_m *QueryServer) GetLatestPublishedSnapshot(_a0 context.Context, _a1 *types.QueryGetLatestPublishedSnapshotRequest) (*types.QueryGetLatestPublishedSnapshotResponse, error)
GetLatestPublishedSnapshot provides a mock function with given fields: _a0, _a1
func (*QueryServer) GetPigeonRequirements ¶
func (_m *QueryServer) GetPigeonRequirements(_a0 context.Context, _a1 *types.QueryGetPigeonRequirementsRequest) (*types.QueryGetPigeonRequirementsResponse, error)
GetPigeonRequirements provides a mock function with given fields: _a0, _a1
func (*QueryServer) GetSnapshotByID ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (_m *QueryServer) ValidatorInfo(_a0 context.Context, _a1 *types.QueryValidatorInfoRequest) (*types.QueryValidatorInfoResponse, error)
ValidatorInfo provides a mock function with given fields: _a0, _a1
type SlashingKeeper ¶
SlashingKeeper is an autogenerated mock type for the SlashingKeeper type
func NewSlashingKeeper ¶
func NewSlashingKeeper(t interface { mock.TestingT Cleanup(func()) }, ) *SlashingKeeper
NewSlashingKeeper creates a new instance of SlashingKeeper. 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 (*SlashingKeeper) Jail ¶
func (_m *SlashingKeeper) Jail(_a0 context.Context, _a1 types.ConsAddress) error
Jail provides a mock function with given fields: _a0, _a1
func (*SlashingKeeper) JailUntil ¶
func (_m *SlashingKeeper) JailUntil(_a0 context.Context, _a1 types.ConsAddress, _a2 time.Time) error
JailUntil provides a mock function with given fields: _a0, _a1, _a2
type StakingKeeper ¶
StakingKeeper is an autogenerated mock type for the StakingKeeper type
func NewStakingKeeper ¶
func NewStakingKeeper(t interface { mock.TestingT Cleanup(func()) }, ) *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. The first argument is typically a *testing.T value.
func (*StakingKeeper) IterateValidators ¶
func (_m *StakingKeeper) IterateValidators(ctx context.Context, fn func(int64, types.ValidatorI) bool) error
IterateValidators provides a mock function with given fields: ctx, fn
func (*StakingKeeper) Jail ¶
func (_m *StakingKeeper) Jail(ctx context.Context, consAddr cosmos_sdktypes.ConsAddress) error
Jail provides a mock function with given fields: ctx, consAddr
func (*StakingKeeper) Validator ¶
func (_m *StakingKeeper) Validator(ctx context.Context, addr cosmos_sdktypes.ValAddress) (types.ValidatorI, error)
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 interface { mock.TestingT Cleanup(func()) }, ) *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. The first argument is typically a *testing.T value.
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() math.Int
GetBondedTokens provides a mock function with given fields:
func (*StakingValidatorI) GetCommission ¶
func (_m *StakingValidatorI) GetCommission() math.LegacyDec
GetCommission provides a mock function with given fields:
func (*StakingValidatorI) GetConsAddr ¶
func (_m *StakingValidatorI) GetConsAddr() ([]byte, error)
GetConsAddr provides a mock function with given fields:
func (*StakingValidatorI) GetConsensusPower ¶
func (_m *StakingValidatorI) GetConsensusPower(_a0 math.Int) int64
GetConsensusPower provides a mock function with given fields: _a0
func (*StakingValidatorI) GetDelegatorShares ¶
func (_m *StakingValidatorI) GetDelegatorShares() math.LegacyDec
GetDelegatorShares provides a mock function with given fields:
func (*StakingValidatorI) GetMinSelfDelegation ¶
func (_m *StakingValidatorI) GetMinSelfDelegation() math.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() string
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() math.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 ¶
SharesFromTokens provides a mock function with given fields: amt
func (*StakingValidatorI) SharesFromTokensTruncated ¶
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 math.LegacyDec) math.LegacyDec
TokensFromShares provides a mock function with given fields: _a0
func (*StakingValidatorI) TokensFromSharesRoundUp ¶
func (_m *StakingValidatorI) TokensFromSharesRoundUp(_a0 math.LegacyDec) math.LegacyDec
TokensFromSharesRoundUp provides a mock function with given fields: _a0
func (*StakingValidatorI) TokensFromSharesTruncated ¶
func (_m *StakingValidatorI) TokensFromSharesTruncated(_a0 math.LegacyDec) math.LegacyDec
TokensFromSharesTruncated provides a mock function with given fields: _a0