keeper

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryDidDoc     = "queryDidDoc"
	QueryAllDids    = "queryAllDids"
	QueryAllDidDocs = "queryAllDidDocs"
)

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) sdk.Querier

Types

type Keeper

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

func CreateTestInput

func CreateTestInput() (sdk.Context, Keeper, *codec.Codec)

func NewKeeper

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

func (Keeper) AddCredentials

func (k Keeper) AddCredentials(ctx sdk.Context, did exported.Did, credential exported.DidCredential) (err error)

func (Keeper) AddDidDoc

func (k Keeper) AddDidDoc(ctx sdk.Context, did exported.DidDoc)

func (Keeper) GetAddDids

func (k Keeper) GetAddDids(ctx sdk.Context) (dids []exported.Did)

func (Keeper) GetAllDidDocs

func (k Keeper) GetAllDidDocs(ctx sdk.Context) (didDocs []exported.DidDoc)

func (Keeper) GetDidDoc

func (k Keeper) GetDidDoc(ctx sdk.Context, did exported.Did) (exported.DidDoc, error)

func (Keeper) MustGetDidDoc

func (k Keeper) MustGetDidDoc(ctx sdk.Context, did exported.Did) exported.DidDoc

func (Keeper) SetDidDoc

func (k Keeper) SetDidDoc(ctx sdk.Context, did exported.DidDoc) (err error)

Jump to

Keyboard shortcuts

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