keeper

package
v0.1.21-dev2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: MIT Imports: 21 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,
	accountKeeper types.AccountKeeper,
	bankKeeper types.BankKeeper,
	sharedKeeper types.SharedKeeper,
	appKeeper types.ApplicationKeeper,
	supplierKeeper types.SupplierKeeper,
) Keeper

func (Keeper) GetAllMorseClaimableAccounts

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

Get all MorseClaimableAccounts in the store - Returns a slice of all accounts

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 migrationtypes.MorseClaimableAccount, found bool)

Get a MorseClaimableAccount by its index - Returns (account, true) if found - Returns (zero value, false) if not found

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) HasAnyMorseClaimableAccounts added in v0.1.11

func (k Keeper) HasAnyMorseClaimableAccounts(ctx context.Context) bool

Check if there are ANY MorseClaimableAccounts in the store - Returns true if at least one account exists

func (Keeper) ImportFromMorseAccountState

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

Import MorseClaimableAccounts from the given MorseAccountState - Assumes MorseAccountState is already validated DEV_NOTE: All imported accounts are set to unclaimed

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

Logger returns a module-specific logger.

func (Keeper) MintClaimedMorseTokens added in v0.0.14

func (k Keeper) MintClaimedMorseTokens(
	ctx context.Context,
	destAddress cosmostypes.AccAddress,
	coinToMint cosmostypes.Coin,
) error

Mint the given coinToMint to destAddress - Mints to migration module account - Sends minted coins to destAddress

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) SetMorseClaimableAccount

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

Set a specific MorseClaimableAccount in the store by its index - Overwrites any existing account with the same 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