keeper

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 14 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.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.Codec,
	storeKey,
	memKey storetypes.StoreKey,

) *Keeper

func (Keeper) GetAllOwners

func (k Keeper) GetAllOwners(ctx sdk.Context) ([]types.OwnerCompositeKey, []types.Owner)

func (Keeper) GetAllRecords

func (k Keeper) GetAllRecords(ctx sdk.Context) ([]types.RecordCompositeKey, []types.Record)

GetAllRecords returns all records

func (Keeper) GetAllTopics

func (k Keeper) GetAllTopics(ctx sdk.Context) ([]types.TopicCompositeKey, []types.Topic)

GetAllTopics returns all topics

func (Keeper) GetAllWriters

func (k Keeper) GetAllWriters(ctx sdk.Context) ([]types.WriterCompositeKey, []types.Writer)

GetAllWriters returns all writers

func (Keeper) GetOwner

func (k Keeper) GetOwner(ctx sdk.Context, key types.OwnerCompositeKey) types.Owner

GetOwner returns a owner from its id

func (Keeper) GetRecord

func (k Keeper) GetRecord(ctx sdk.Context, key types.RecordCompositeKey) types.Record

GetRecord returns a record from its id

func (Keeper) GetTopic

func (k Keeper) GetTopic(ctx sdk.Context, key types.TopicCompositeKey) types.Topic

GetTopic returns a topic from its id

func (Keeper) GetWriter

func (k Keeper) GetWriter(ctx sdk.Context, key types.WriterCompositeKey) types.Writer

GetWriter returns a writer from its id

func (Keeper) HasOwner

func (k Keeper) HasOwner(ctx sdk.Context, key types.OwnerCompositeKey) bool

HasOwner checks if the owner exists in the store

func (Keeper) HasRecord

func (k Keeper) HasRecord(ctx sdk.Context, key types.RecordCompositeKey) bool

HasRecord checks if the record exists in the store

func (Keeper) HasTopic

func (k Keeper) HasTopic(ctx sdk.Context, key types.TopicCompositeKey) bool

HasTopic checks if the topic exists in the store

func (Keeper) HasWriter

func (k Keeper) HasWriter(ctx sdk.Context, key types.WriterCompositeKey) bool

HasWriter checks if the writer exists in the store

func (Keeper) Logger

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

func (Keeper) Record

func (Keeper) RemoveWriter

func (k Keeper) RemoveWriter(ctx sdk.Context, key types.WriterCompositeKey)

RemoveWriter removes a writer from the store

func (Keeper) SetOwner

func (k Keeper) SetOwner(ctx sdk.Context, key types.OwnerCompositeKey, owner types.Owner)

SetOwner set a specific owner in the store

func (Keeper) SetRecord

func (k Keeper) SetRecord(ctx sdk.Context, key types.RecordCompositeKey, record types.Record)

SetRecord set a specific record in the store

func (Keeper) SetTopic

func (k Keeper) SetTopic(ctx sdk.Context, key types.TopicCompositeKey, topic types.Topic)

SetTopic set a specific topic in the store

func (Keeper) SetWriter

func (k Keeper) SetWriter(ctx sdk.Context, key types.WriterCompositeKey, writer types.Writer)

SetWriter set a specific writer in the store

func (Keeper) Topic

func (Keeper) Topics

func (Keeper) Writer

Jump to

Keyboard shortcuts

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