Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) CreateValidator(ctx context.Context, req *v1.MsgCreateValidator) (*v1.MsgCreateValidatorResponse, error)
- func (k Keeper) ExportGenesis(ctx sdk.Context, _ codec.JSONCodec) (json.RawMessage, error)
- func (k Keeper) GetPolicy(ctx sdk.Context) (*validatorv1.Policy, error)
- func (k Keeper) HandleSigningInfo(ctx sdk.Context, voteInfo abci.VoteInfo, policy *validatorv1.Policy) error
- func (k Keeper) InitGenesis(ctx sdk.Context, _ codec.JSONCodec, data json.RawMessage) error
- func (k Keeper) Policy(ctx context.Context, _ *v1.QueryPolicyRequest) (*v1.QueryPolicyResponse, error)
- func (k Keeper) RemoveValidator(ctx context.Context, req *v1.MsgRemoveValidator) (*v1.MsgRemoveValidatorResponse, error)
- func (k Keeper) UpdatePolicy(ctx context.Context, req *v1.MsgUpdatePolicy) (*v1.MsgUpdatePolicyResponse, error)
- func (k Keeper) UpdateValidator(ctx context.Context, req *v1.MsgUpdateValidator) (*v1.MsgUpdateValidatorResponse, error)
- func (k Keeper) Validator(ctx context.Context, req *v1.QueryValidatorRequest) (*v1.QueryValidatorResponse, error)
- func (k Keeper) Validators(ctx context.Context, req *v1.QueryValidatorsRequest) (*v1.QueryValidatorsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper is the keeper.
func NewKeeper ¶
func NewKeeper(storeService store.KVStoreService, admin sdk.AccAddress) Keeper
NewKeeper creates a new keeper.
func (Keeper) CreateValidator ¶
func (k Keeper) CreateValidator(ctx context.Context, req *v1.MsgCreateValidator) (*v1.MsgCreateValidatorResponse, error)
CreateValidator implements Msg/CreateValidator.
func (Keeper) ExportGenesis ¶
ExportGenesis exports genesis state.
func (Keeper) HandleSigningInfo ¶
func (k Keeper) HandleSigningInfo(ctx sdk.Context, voteInfo abci.VoteInfo, policy *validatorv1.Policy) error
HandleSigningInfo tracks validator signing info and enforces the policy.
func (Keeper) InitGenesis ¶
InitGenesis initializes genesis state.
func (Keeper) Policy ¶
func (k Keeper) Policy(ctx context.Context, _ *v1.QueryPolicyRequest) (*v1.QueryPolicyResponse, error)
Policy implements the Query/Policy method.
func (Keeper) RemoveValidator ¶
func (k Keeper) RemoveValidator(ctx context.Context, req *v1.MsgRemoveValidator) (*v1.MsgRemoveValidatorResponse, error)
RemoveValidator implements Msg/RemoveValidator.
func (Keeper) UpdatePolicy ¶
func (k Keeper) UpdatePolicy(ctx context.Context, req *v1.MsgUpdatePolicy) (*v1.MsgUpdatePolicyResponse, error)
UpdatePolicy implements Msg/UpdatePolicy.
func (Keeper) UpdateValidator ¶
func (k Keeper) UpdateValidator(ctx context.Context, req *v1.MsgUpdateValidator) (*v1.MsgUpdateValidatorResponse, error)
UpdateValidator implements the Msg/UpdateValidator method.
func (Keeper) Validator ¶
func (k Keeper) Validator(ctx context.Context, req *v1.QueryValidatorRequest) (*v1.QueryValidatorResponse, error)
Validator implements the Query/Validator method.
func (Keeper) Validators ¶
func (k Keeper) Validators(ctx context.Context, req *v1.QueryValidatorsRequest) (*v1.QueryValidatorsResponse, error)
Validators implements the Query/Validators method.
Click to show internal directories.
Click to hide internal directories.