keeper

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT 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.BinaryCodec,
	storeService store.KVStoreService,
	logger log.Logger,
	authority string,

) Keeper

func (Keeper) GetAllMorseClaimableAccounts

func (k Keeper) GetAllMorseClaimableAccounts(ctx context.Context) (list []types.MorseClaimableAccount)

GetAllMorseClaimableAccounts returns all morseClaimableAccount

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the module's authority.

func (Keeper) GetMorseClaimableAccount

func (k Keeper) GetMorseClaimableAccount(
	ctx context.Context,
	address string,

) (morseClaimableAccount types.MorseClaimableAccount, found bool)

GetMorseClaimableAccount returns a morseClaimableAccount from its index

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) ImportFromMorseAccountState

func (k Keeper) ImportFromMorseAccountState(
	ctx context.Context,
	morseAccountState *types.MorseAccountState,
)

ImportFromMorseAccountState imports the MorseClaimableAccounts from the given MorseAccountState.

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

Logger returns a module-specific logger.

func (Keeper) MorseClaimableAccount

MorseClaimableAccount returns a MorseClaimableAccount by its hex-encoded Morse address.

func (Keeper) MorseClaimableAccountAll

MorseClaimableAccountAll returns all MorseClaimableAccounts created as a result of MsgImportMorseClaimableAccounts.

func (Keeper) Params

func (Keeper) RemoveMorseClaimableAccount

func (k Keeper) RemoveMorseClaimableAccount(
	ctx context.Context,
	address string,

)

RemoveMorseClaimableAccount removes a morseClaimableAccount from the store

func (Keeper) SetMorseClaimableAccount

func (k Keeper) SetMorseClaimableAccount(ctx context.Context, morseClaimableAccount types.MorseClaimableAccount)

SetMorseClaimableAccount set a specific morseClaimableAccount in the store from its index

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