Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) GetMessageNonceCache(ctx sdk.Context) (*types.HistoricRelayData, error)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetValidatorHistory(ctx sdk.Context, address sdk.ValAddress) (*types.ValidatorHistory, error)
- func (k Keeper) GetValidatorMetrics(ctx sdk.Context, address sdk.ValAddress) (*types.ValidatorMetrics, error)
- func (k Keeper) HistoricRelayData(goCtx context.Context, req *types.QueryHistoricRelayDataRequest) (*types.QueryHistoricRelayDataResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) OnConsensusMessageAttested(goCtx context.Context, e types.MessageAttestedEvent)
- func (k Keeper) OnSnapshotBuilt(ctx sdk.Context, snapshot *valsettypes.Snapshot)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k *Keeper) PurgeRelayMetrics(ctx sdk.Context)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k *Keeper) UpdateRelayMetrics(ctx sdk.Context)
- func (k *Keeper) UpdateUptime(ctx sdk.Context)
- func (k Keeper) Validator(goCtx context.Context, req *types.QueryValidatorRequest) (*types.QueryValidatorResponse, error)
- func (k Keeper) Validators(goCtx context.Context, _ *types.Empty) (*types.QueryValidatorsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey storetypes.StoreKey, ps paramtypes.Subspace, slashing types.SlashingKeeper, staking types.StakingKeeper, ) Keeper
func (Keeper) GetMessageNonceCache ¶
GetValidatorMetrics returns the metrics for a validator. Will return nil if no metrics found for the given validator address.
func (Keeper) GetValidatorHistory ¶
func (k Keeper) GetValidatorHistory(ctx sdk.Context, address sdk.ValAddress) (*types.ValidatorHistory, error)
GetValidatorHistory returns the historic relay data for a validator. Will return nil if no history found for the given validator address.
func (Keeper) GetValidatorMetrics ¶
func (k Keeper) GetValidatorMetrics(ctx sdk.Context, address sdk.ValAddress) (*types.ValidatorMetrics, error)
GetValidatorMetrics returns the metrics for a validator. Will return nil if no metrics found for the given validator address.
func (Keeper) HistoricRelayData ¶
func (k Keeper) HistoricRelayData(goCtx context.Context, req *types.QueryHistoricRelayDataRequest) (*types.QueryHistoricRelayDataResponse, error)
HistoricRelayData implements types.QueryServer.
func (Keeper) OnConsensusMessageAttested ¶
func (k Keeper) OnConsensusMessageAttested(goCtx context.Context, e types.MessageAttestedEvent)
OnConsensusMessageAttested implements types.OnConsensusMessageAttestedListener.
func (Keeper) OnSnapshotBuilt ¶
func (k Keeper) OnSnapshotBuilt(ctx sdk.Context, snapshot *valsettypes.Snapshot)
OnSnapshotBuilt implements types.OnSnapshotBuiltListener.
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (*Keeper) PurgeRelayMetrics ¶
func (*Keeper) UpdateRelayMetrics ¶
func (*Keeper) UpdateUptime ¶
func (Keeper) Validator ¶
func (k Keeper) Validator(goCtx context.Context, req *types.QueryValidatorRequest) (*types.QueryValidatorResponse, error)
Validator implements types.QueryServer.
func (Keeper) Validators ¶
func (k Keeper) Validators(goCtx context.Context, _ *types.Empty) (*types.QueryValidatorsResponse, error)
Validators implements types.QueryServer.