keeper

package
v0.0.0-...-7257e70 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWhoisIDBytes

func GetWhoisIDBytes(id uint64) []byte

GetWhoisIDBytes returns the byte representation of the ID

func GetWhoisIDFromBytes

func GetWhoisIDFromBytes(bz []byte) uint64

GetWhoisIDFromBytes returns ID in uint64 format from a byte array

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.Marshaler,
	storeKey,
	memKey sdk.StoreKey,

	accountKeeper types.AccountKeeper,
) *Keeper

func (Keeper) AppendWhois

func (k Keeper) AppendWhois(
	ctx sdk.Context,
	whois types.Whois,
) uint64

AppendWhois appends a whois in the store with a new id and update the count

func (Keeper) GetAllWhois

func (k Keeper) GetAllWhois(ctx sdk.Context) (list []types.Whois)

GetAllWhois returns all whois

func (Keeper) GetWhois

func (k Keeper) GetWhois(ctx sdk.Context, id uint64) types.Whois

GetWhois returns a whois from its id

func (Keeper) GetWhoisCount

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

GetWhoisCount get the total number of TypeName.LowerCamel

func (Keeper) GetWhoisOwner

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

GetWhoisOwner returns the creator of the

func (Keeper) HasWhois

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

HasWhois checks if the whois exists in the store

func (Keeper) Logger

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

func (Keeper) RemoveWhois

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

RemoveWhois removes a whois from the store

func (Keeper) SetWhois

func (k Keeper) SetWhois(ctx sdk.Context, whois types.Whois)

SetWhois set a specific whois in the store

func (Keeper) SetWhoisCount

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

SetWhoisCount set the total number of whois

Jump to

Keyboard shortcuts

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