keeper

package
v0.17.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the distribution MsgServer interface for the provided Keeper.

func NewQuerier

func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier

Types

type Keeper

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

func NewKeeper

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

func (Keeper) AddCredentials

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

func (Keeper) AddDidDoc

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

func (Keeper) DidDoc

func (Keeper) GetAllDidDocs

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

func (Keeper) GetAllDids

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

func (Keeper) GetDidDoc

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

func (Keeper) IterateDidDocs

func (k Keeper) IterateDidDocs(ctx sdk.Context, cb func(account exported.DidDoc) (stop bool))

func (Keeper) MarshalDidDoc

func (k Keeper) MarshalDidDoc(did exported.DidDoc) ([]byte, error)

MarshalDidDoc protobuf serializes a DidDoc interface

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)

func (Keeper) UnmarshalDidDoc

func (k Keeper) UnmarshalDidDoc(bz []byte) (exported.DidDoc, error)

UnmarshalDidDoc returns a DidDoc interface from raw encoded did document bytes of a Proto-based DidDoc type

Jump to

Keyboard shortcuts

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