keeper

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServer

func NewMsgServer(keeper *Keeper) types.MsgServer

func NewQueryServer

func NewQueryServer(keeper *Keeper) types.QueryServer

Types

type Keeper

type Keeper struct {
	GasPrices      collections.Item[types.GasPrices]
	BypassMessages collections.KeySet[string]
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	authority string,
	registry codectypes.InterfaceRegistry,
	service store.KVStoreService,
	cdc codec.Codec,
) *Keeper

func (*Keeper) GetBypassMessages

func (k *Keeper) GetBypassMessages(ctx context.Context) (bypassMessages []string, err error)

GetBypassMessages is a utility that returns all bypass messages from state.

func (*Keeper) GetRequiredFees

func (k *Keeper) GetRequiredFees(ctx context.Context, tx sdk.FeeTx) (sdk.Coins, error)

GetRequiredFees is a utility that returns the required fees for a given transaction using the gas prices configured in this module.

Jump to

Keyboard shortcuts

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