keeper

package
v0.0.0-...-ca483ac Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

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 storetypes.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