keeper

package
v3.2.3-testnet Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 9 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 tax2gas MsgServer interface for the provided Keeper.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey storetypes.StoreKey,
	authority string,
) Keeper

func (Keeper) BurnTaxRate

BurnTaxRate queries burn tax rate of tax2gas module

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState

ExportGenesis returns the tax2gas module's exported genesis.

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the x/tax2gas module's authority.

func (Keeper) GetBurnTaxRate

func (k Keeper) GetBurnTaxRate(ctx sdk.Context) sdk.Dec

func (Keeper) GetBypassMinFeeMsgTypes

func (k Keeper) GetBypassMinFeeMsgTypes(ctx sdk.Context) []string

GetBypassMinFeeMsgTypes gets the tax2gas module's BypassMinFeeMsgTypes.

func (Keeper) GetGasPrices

func (k Keeper) GetGasPrices(ctx sdk.Context) sdk.DecCoins

func (Keeper) GetMaxTotalBypassMinFeeMsgGasUsage

func (k Keeper) GetMaxTotalBypassMinFeeMsgGasUsage(ctx sdk.Context) uint64

GetBypassMinFeeMsgTypes gets the tax2gas module's BypassMinFeeMsgTypes.

func (Keeper) GetParams

func (k Keeper) GetParams(clientCtx sdk.Context) (params types.Params)

GetParams gets the tax2gas module's parameters.

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, genState *types.GenesisState)

InitGenesis initializes the tax2gas module's state from a provided genesis state.

func (Keeper) IsEnabled

func (k Keeper) IsEnabled(ctx sdk.Context) bool

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) Params

Params queries params of tax2gas module

func (Keeper) SetParams

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

SetParams sets the tax2gas module's parameters.

Jump to

Keyboard shortcuts

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