keeper

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper, legacyQuerierCdc codec.JSONMarshaler) 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.Marshaler, key sdk.StoreKey) Keeper

NewKeeper returns a guardian keeper

func (Keeper) AddProfiler

func (k Keeper) AddProfiler(ctx sdk.Context, guardian types.Guardian)

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

func (Keeper) AddTrustee

func (k Keeper) AddTrustee(ctx sdk.Context, guardian types.Guardian)

AddTrustee add a trustee

func (Keeper) DeleteProfiler

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

DeleteProfiler delete the stored profiler

func (Keeper) DeleteTrustee

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

DeleteTrustee delete the stored trustee

func (Keeper) GetProfiler

func (k Keeper) GetProfiler(ctx sdk.Context, addr sdk.AccAddress) (guardian types.Guardian, found bool)

GetProfiler retrieves the profiler by specified address

func (Keeper) GetTrustee

func (k Keeper) GetTrustee(ctx sdk.Context, addr sdk.AccAddress) (guardian types.Guardian, found bool)

GetTrustee retrieves the trustee by specified address

func (Keeper) IterateProfilers

func (k Keeper) IterateProfilers(
	ctx sdk.Context,
	op func(profiler types.Guardian) (stop bool),
)

IterateProfilers iterates through all profilers

func (Keeper) IterateTrustees

func (k Keeper) IterateTrustees(
	ctx sdk.Context,
	op func(trustee types.Guardian) (stop bool),
)

IterateTrustees iterates through all trustees

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) Profilers

Profilers implements the Query/Profilers gRPC method

func (Keeper) Trustees

Trustees implements the Query/Trustees gRPC method

Jump to

Keyboard shortcuts

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