Documentation ¶
Index ¶
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Keeper
- func (k Keeper) GetSubspace(s string) (types.Subspace, bool)
- func (k Keeper) GetSubspaces() []types.Subspace
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *proposal.QueryParamsRequest) (*proposal.QueryParamsResponse, error)
- func (k Keeper) Subspace(s string) types.Subspace
- func (k Keeper) Subspaces(goCtx context.Context, req *proposal.QuerySubspacesRequest) (*proposal.QuerySubspacesResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
NewQuerier returns a new querier handler for the x/params module.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the global paramstore
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, legacyAmino *codec.LegacyAmino, key, tkey sdk.StoreKey) Keeper
NewKeeper constructs a params keeper
func (Keeper) GetSubspace ¶
Get existing substore from keeper
func (Keeper) GetSubspaces ¶
GetSubspaces returns all the registered subspaces.
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *proposal.QueryParamsRequest) (*proposal.QueryParamsResponse, error)
Params returns subspace params
func (Keeper) Subspaces ¶
func (k Keeper) Subspaces( goCtx context.Context, req *proposal.QuerySubspacesRequest, ) (*proposal.QuerySubspacesResponse, error)
Subspaces implements the gRPC query handler for fetching all registered subspaces and all the keys for each subspace.
Click to show internal directories.
Click to hide internal directories.