keeper

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 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 sdk.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, sdk.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 sdk.Error)

Jump to

Keyboard shortcuts

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