keeper

package
v0.1.3-testnet Latest Latest
Warning

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

Go to latest
Published: Jul 4, 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.

func ProcessHistory

func ProcessHistory(newItem *types.HistoricalAmount, coinsQuota *types.CoinsQuota) *types.CoinsQuota

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey storetypes.StoreKey,
	ps paramtypes.Subspace,
) *Keeper

func (Keeper) AccountQuota added in v0.1.0

func (Keeper) BlockUpdateQuota

func (k Keeper) BlockUpdateQuota(ctx sdk.Context)

func (Keeper) GetAllQuota

func (k Keeper) GetAllQuota(ctx sdk.Context) (list []types.CoinsQuota)

GetAllQuota returns all quota

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) GetQuotaData

func (k Keeper) GetQuotaData(ctx sdk.Context, moduleName string) (val types.CoinsQuota, found bool)

GetQuotaData returns the quota for a module

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) Quota

func (Keeper) QuotaAll

func (Keeper) RevokeHistory

func (k Keeper) RevokeHistory(ctx sdk.Context, moduleName string, seq uint64)

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetQuotaData

func (k Keeper) SetQuotaData(ctx sdk.Context, coinsQuota types.CoinsQuota)

SetQuotaData set a specific quota for the module

func (Keeper) UpdateQuota

func (k Keeper) UpdateQuota(ctx sdk.Context, coins sdk.Coins, sender string, ibcSeq uint64, moduleName string) error

func (Keeper) WhetherOnBanlist

func (k Keeper) WhetherOnBanlist(ctx sdk.Context, moduleName, sender string) bool

func (Keeper) WhetherOnwhitelist

func (k Keeper) WhetherOnwhitelist(ctx sdk.Context, moduleName, sender string) bool

Jump to

Keyboard shortcuts

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