keeper

package
v7.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MPL-2.0 Imports: 17 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 NewQueryServerImpl

func NewQueryServerImpl(k Keeper) types.QueryServer

NewQueryServerImpl returns an implementation of the QueryServer interface for the provided Keeper.

Types

type BlacklistCheckDecorator

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

func NewBlacklistCheckDecorator

func NewBlacklistCheckDecorator(sk Keeper) BlacklistCheckDecorator

func (BlacklistCheckDecorator) AnteHandle

func (d BlacklistCheckDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error)

AnteHandle checks if the tx signer is blacklisted

type EVMBlacklistCheckDecorator

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

EVMBlacklistCheckDecorator is a decorator that checks if EVM transaction senders are blacklisted. If a sender is found in the blacklist, it returns an error.

func NewEVMBlacklistCheckDecorator

func NewEVMBlacklistCheckDecorator(sk Keeper) EVMBlacklistCheckDecorator

func (EVMBlacklistCheckDecorator) AnteHandle

func (ebcd EVMBlacklistCheckDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error)

type Keeper

type Keeper struct {
	Schema collections.Schema
	Params collections.Item[types.Params]

	// BlacklistAccounts is a set of accounts that are blacklisted from using the module.
	BlacklistAccounts collections.KeySet[string]
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeService store.KVStoreService,
	logger log.Logger,
	authority string,
) Keeper

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the module's authority.

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

Logger returns a module-specific logger.

Jump to

Keyboard shortcuts

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