keeper

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

func NewVaultServerImpl added in v0.5.1

func NewVaultServerImpl(keeper Keeper) types.VaultServer

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	ps paramtypes.Subspace,

	accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, groupKeeper types.GroupKeeper,
) *Keeper

func (Keeper) DidAll

func (Keeper) DidByAlsoKnownAs added in v0.4.0

func (Keeper) DidByKeyID added in v0.4.0

func (Keeper) GetAllDidDocument

func (k Keeper) GetAllDidDocument(ctx sdk.Context) (list []types.DidDocument)

GetAllDidDocument returns all didDocument

func (Keeper) GetAllRelationships added in v0.5.1

func (k Keeper) GetAllRelationships(ctx sdk.Context) (list []types.VerificationRelationship)

GetAllRelationships returns all Relationship

func (Keeper) GetAllServices added in v0.4.0

func (k Keeper) GetAllServices(ctx sdk.Context) (list []types.Service)

GetAllServices returns all Services

func (Keeper) GetDidDocument

func (k Keeper) GetDidDocument(
	ctx sdk.Context,
	did string,

) (val types.DidDocument, found bool)

GetDidDocument returns a didDocument from its index

func (Keeper) GetDidDocumentByAKA

func (k Keeper) GetDidDocumentByAKA(ctx sdk.Context, aka string) (types.DidDocument, bool)

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) GetRelationship added in v0.5.1

func (k Keeper) GetRelationship(ctx sdk.Context, reference string) (val types.VerificationRelationship, found bool)

GetRelationship returns a Service from its index

func (Keeper) GetRelationshipsFromList added in v0.5.1

func (k Keeper) GetRelationshipsFromList(ctx sdk.Context, addrs ...string) ([]types.VerificationRelationship, error)

func (Keeper) GetService added in v0.4.0

func (k Keeper) GetService(
	ctx sdk.Context,
	origin string,
) (val types.Service, found bool)

GetDomainRecord returns a DomainRecord from its index

func (Keeper) HasRelationship added in v0.5.1

func (k Keeper) HasRelationship(ctx sdk.Context, reference string) bool

HasRelationship checks if the element exists in the store

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) RemoveDidDocument

func (k Keeper) RemoveDidDocument(
	ctx sdk.Context,
	did string,

)

RemoveDidDocument removes a didDocument from the store

func (Keeper) ResolveDidDocument added in v0.5.1

func (k Keeper) ResolveDidDocument(ctx sdk.Context, doc types.DidDocument) (types.ResolvedDidDocument, error)

func (Keeper) Service added in v0.4.0

func (Keeper) ServiceAll added in v0.4.0

func (Keeper) SetDidDocument

func (k Keeper) SetDidDocument(ctx sdk.Context, didDocument types.DidDocument)

SetDidDocument set a specific didDocument in the store from its index

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

func (Keeper) SetRelationship added in v0.5.1

func (k Keeper) SetRelationship(ctx sdk.Context, VerificationRelationship types.VerificationRelationship)

SetRelationship set a specific Service in the store from its index

func (Keeper) SetResolvedDocument added in v0.5.1

func (k Keeper) SetResolvedDocument(ctx sdk.Context, doc types.ResolvedDidDocument)

Set Resolved Document sets all the relationships in the document

func (Keeper) SetService added in v0.4.0

func (k Keeper) SetService(ctx sdk.Context, Service types.Service)

SetService set a specific Service in the store from its index

Jump to

Keyboard shortcuts

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