keeper

package
v0.2.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNymIDBytes added in v0.1.19

func GetNymIDBytes(id uint64) []byte

GetNymIDBytes returns the byte representation of the ID

func GetNymIDFromBytes added in v0.1.19

func GetNymIDFromBytes(bz []byte) uint64

GetNymIDFromBytes returns ID in uint64 format from a byte array

func NewMsgSercheqdpl added in v0.1.19

func NewMsgSercheqdpl(keeper Keeper) types.MsgServer

NewMsgSercheqdpl returns an implementation of the 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.Codec, storeKey, memKey sdk.StoreKey) *Keeper

func (Keeper) AppendNym added in v0.1.19

func (k Keeper) AppendNym(
	ctx sdk.Context,
	creator string,
	alias string,
	verkey string,
	did string,
	role string,
) uint64

AppendNym appends a nym in the store with a new id and update the count

func (Keeper) GetAllNym added in v0.1.19

func (k Keeper) GetAllNym(ctx sdk.Context) (list []types.Nym)

GetAllNym returns all nym

func (Keeper) GetNym added in v0.1.19

func (k Keeper) GetNym(ctx sdk.Context, id uint64) types.Nym

GetNym returns a nym from its id

func (Keeper) GetNymCount added in v0.1.19

func (k Keeper) GetNymCount(ctx sdk.Context) uint64

GetNymCount get the total number of nym

func (Keeper) GetNymOwner added in v0.1.19

func (k Keeper) GetNymOwner(ctx sdk.Context, id uint64) string

GetNymOwner returns the creator of the nym

func (Keeper) HasNym added in v0.1.19

func (k Keeper) HasNym(ctx sdk.Context, id uint64) bool

HasNym checks if the nym exists in the store

func (Keeper) Logger

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

func (Keeper) Nym added in v0.1.19

func (Keeper) NymAll added in v0.1.19

func (Keeper) RemoveNym added in v0.1.19

func (k Keeper) RemoveNym(ctx sdk.Context, id uint64)

RemoveNym removes a nym from the store

func (Keeper) SetNym added in v0.1.19

func (k Keeper) SetNym(ctx sdk.Context, nym types.Nym)

SetNym set a specific nym in the store

func (Keeper) SetNymCount added in v0.1.19

func (k Keeper) SetNymCount(ctx sdk.Context, count uint64)

SetNymCount set the total number of nym

Jump to

Keyboard shortcuts

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