keeper

package
v0.1.2-0...-a9bb7ac Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: AGPL-3.0 Imports: 17 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 NewQueryServerImpl

func NewQueryServerImpl(k Keeper) types.QueryServer

Types

type Keeper

type Keeper struct {

	// state management
	Schema                collections.Schema
	Params                collections.Item[types.Params]
	TrustRegistry         collections.Map[uint64, types.TrustRegistry]
	TrustRegistryDIDIndex collections.Map[string, uint64] // Index for DID lookups
	GFVersion             collections.Map[uint64, types.GovernanceFrameworkVersion]
	GFDocument            collections.Map[uint64, types.GovernanceFrameworkDocument]
	Counter               collections.Map[string, uint64]
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeService store.KVStoreService,
	logger log.Logger,
	authority string,
	trustDeposit types.TrustDepositKeeper,
) Keeper

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the module's authority.

func (Keeper) GetNextID

func (k Keeper) GetNextID(ctx sdk.Context, entityType string) (uint64, error)

func (Keeper) GetParams

func (k Keeper) GetParams(ctx context.Context) (params types.Params)

GetParams get all parameters as types.Params

func (Keeper) GetTrustRegistry

func (k Keeper) GetTrustRegistry(ctx sdk.Context, id uint64) (types.TrustRegistry, error)

func (Keeper) GetTrustRegistryByDID

func (k Keeper) GetTrustRegistryByDID(ctx sdk.Context, did string) (types.TrustRegistry, error)

func (Keeper) GetTrustUnitPrice

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

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

Logger returns a module-specific logger.

func (Keeper) SetParams

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

SetParams set the params

Jump to

Keyboard shortcuts

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