keeper

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) 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) 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 exported.GuardianI)

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 exported.GuardianI, found bool)

GetProfiler retrieves the profiler by specified address

func (Keeper) GetTrustee

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

GetTrustee retrieves the trustee by specified address

func (Keeper) Logger added in v0.5.0

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

Logger returns a module-specific logger.

func (Keeper) ProfilersIterator

func (k Keeper) ProfilersIterator(ctx sdk.Context) sdk.Iterator

ProfilersIterator gets all profilers

func (Keeper) TrusteesIterator

func (k Keeper) TrusteesIterator(ctx sdk.Context) sdk.Iterator

TrusteesIterator gets all trustees

Jump to

Keyboard shortcuts

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