Documentation ¶
Index ¶
- func GetRequestIDBytes(id uint64) []byte
- func GetRequestIDFromBytes(bz []byte) uint64
- func GetValidatorIDBytes(id uint64) []byte
- func GetValidatorIDFromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AppendRequest(ctx sdk.Context, request types.Request) uint64
- func (k Keeper) AppendValidator(ctx sdk.Context, validator types.Validator) uint64
- func (k Keeper) GetAllRequest(ctx sdk.Context) (list []types.Request)
- func (k Keeper) GetAllValidator(ctx sdk.Context) (list []types.Validator)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetPrice(ctx sdk.Context) uint64
- func (k Keeper) GetRequest(ctx sdk.Context, id uint64) (val types.Request, found bool)
- func (k Keeper) GetRequestCount(ctx sdk.Context) uint64
- func (k Keeper) GetValidator(ctx sdk.Context, id uint64) (val types.Validator, found bool)
- func (k Keeper) GetValidatorCount(ctx sdk.Context) uint64
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveRequest(ctx sdk.Context, id uint64)
- func (k Keeper) RemoveValidator(ctx sdk.Context, id uint64)
- func (k Keeper) Request(goCtx context.Context, req *types.QueryGetRequestRequest) (*types.QueryGetRequestResponse, error)
- func (k Keeper) RequestAll(goCtx context.Context, req *types.QueryAllRequestRequest) (*types.QueryAllRequestResponse, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetRequest(ctx sdk.Context, request types.Request)
- func (k Keeper) SetRequestCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetValidator(ctx sdk.Context, validator types.Validator)
- func (k Keeper) SetValidatorCount(ctx sdk.Context, count uint64)
- func (k Keeper) Validator(goCtx context.Context, req *types.QueryGetValidatorRequest) (*types.QueryGetValidatorResponse, error)
- func (k Keeper) ValidatorAll(goCtx context.Context, req *types.QueryAllValidatorRequest) (*types.QueryAllValidatorResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRequestIDBytes ¶
GetRequestIDBytes returns the byte representation of the ID
func GetRequestIDFromBytes ¶
GetRequestIDFromBytes returns ID in uint64 format from a byte array
func GetValidatorIDBytes ¶
GetValidatorIDBytes returns the byte representation of the ID
func GetValidatorIDFromBytes ¶
GetValidatorIDFromBytes returns ID in uint64 format from a byte array
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, memKey storetypes.StoreKey, ps paramtypes.Subspace, bankKeeper types.BankKeeper, ) *Keeper
func (Keeper) AppendRequest ¶
AppendRequest appends a request in the store with a new id and update the count
func (Keeper) AppendValidator ¶
AppendValidator appends a validator in the store with a new id and update the count
func (Keeper) GetAllRequest ¶
GetAllRequest returns all request
func (Keeper) GetAllValidator ¶
GetAllValidator returns all validator
func (Keeper) GetRequest ¶
GetRequest returns a request from its id
func (Keeper) GetRequestCount ¶
GetRequestCount get the total number of request
func (Keeper) GetValidator ¶
GetValidator returns a validator from its id
func (Keeper) GetValidatorCount ¶
GetValidatorCount get the total number of validator
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveRequest ¶
RemoveRequest removes a request from the store
func (Keeper) RemoveValidator ¶
RemoveValidator removes a validator from the store
func (Keeper) Request ¶
func (k Keeper) Request(goCtx context.Context, req *types.QueryGetRequestRequest) (*types.QueryGetRequestResponse, error)
func (Keeper) RequestAll ¶
func (k Keeper) RequestAll(goCtx context.Context, req *types.QueryAllRequestRequest) (*types.QueryAllRequestResponse, error)
func (Keeper) SetRequest ¶
SetRequest set a specific request in the store
func (Keeper) SetRequestCount ¶
SetRequestCount set the total number of request
func (Keeper) SetValidator ¶
SetValidator set a specific validator in the store
func (Keeper) SetValidatorCount ¶
SetValidatorCount set the total number of validator
func (Keeper) Validator ¶
func (k Keeper) Validator(goCtx context.Context, req *types.QueryGetValidatorRequest) (*types.QueryGetValidatorResponse, error)
func (Keeper) ValidatorAll ¶
func (k Keeper) ValidatorAll(goCtx context.Context, req *types.QueryAllValidatorRequest) (*types.QueryAllValidatorResponse, error)