keeper

package
v1.0.1-0...-15b148a Latest Latest
Warning

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

Go to latest
Published: Oct 30, 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 new querier for did clients.

Types

type Keeper

type Keeper struct {
	CoinKeeper bank.Keeper
	// contains filtered or unexported fields
}

Keeper of the did store

func NewKeeper

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

NewKeeper creates a did keeper

func (Keeper) CreateIdentifier

func (k Keeper) CreateIdentifier(ctx sdk.Context, identifier types.Identifier)

CreateIdentifier creates a identifier

func (Keeper) DeleteIdentifier

func (k Keeper) DeleteIdentifier(ctx sdk.Context, key string)

DeleteIdentifier deletes a identifier

func (Keeper) GetIdentifier

func (k Keeper) GetIdentifier(ctx sdk.Context, key string) (types.Identifier, error)

GetIdentifier returns the identifier information

func (Keeper) GetIdentifierOwner

func (k Keeper) GetIdentifierOwner(ctx sdk.Context, key string) sdk.AccAddress

Get creator of the item

func (Keeper) IdentifierExists

func (k Keeper) IdentifierExists(ctx sdk.Context, key string) bool

Check if the key exists in the store

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) SetIdentifier

func (k Keeper) SetIdentifier(ctx sdk.Context, identifier types.Identifier)

SetIdentifier sets a identifier

Jump to

Keyboard shortcuts

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