keeper

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the guardian MsgServer interface for the provided Keeper.

func NewQuerier

func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier

NewQuerier creates a querier for guardian REST endpoints

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

Keeper of the guardian store

func NewKeeper

func NewKeeper(cdc codec.Codec, key sdk.StoreKey) Keeper

NewKeeper returns a guardian keeper

func (Keeper) AddSuper

func (k Keeper) AddSuper(ctx sdk.Context, super types.Super)

Add a super, only a existing super can add a new and the super is not existed

func (Keeper) Authorized

func (k Keeper) Authorized(ctx sdk.Context, addr sdk.AccAddress) bool

func (Keeper) DeleteSuper

func (k Keeper) DeleteSuper(ctx sdk.Context, address sdk.AccAddress)

DeleteSuper delete the stored super

func (Keeper) GetSuper

func (k Keeper) GetSuper(ctx sdk.Context, addr sdk.AccAddress) (super types.Super, found bool)

GetSuper retrieves the super by specified address

func (Keeper) IterateSupers

func (k Keeper) IterateSupers(
	ctx sdk.Context,
	op func(super types.Super) (stop bool),
)

IterateSupers iterates through all supers

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) Supers

Supers implements the Query/Supers gRPC method

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL