keeper

package
v3.3.0-testnet.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 16 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 tax 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,
	bankKeeper bankkeeper.Keeper,
	treasuryKeeper treasurykeeper.Keeper,
	distributionKeeper distributionKeeper.Keeper,
	authority string,
) Keeper

func (Keeper) BurnTaxRate

BurnTaxRate queries burn tax rate of tax module

func (Keeper) ComputeTax

func (k Keeper) ComputeTax(ctx sdk.Context, amount sdk.Coins) sdk.Coins

func (Keeper) DeductTax

func (k Keeper) DeductTax(
	ctx sdk.Context,
	sender sdk.AccAddress,
	amount sdk.Coins,
) (sdk.Coins, error)

DeductTax deducts tax from the sender and processes tax splits If it was not yet paid in the current block

func (Keeper) ExportGenesis

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

ExportGenesis returns the tax module's exported genesis.

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the x/tax module's authority.

func (Keeper) GetBurnTaxRate

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

func (Keeper) GetEffectiveGasPrices

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

func (Keeper) GetGasPriceForDenom

func (k Keeper) GetGasPriceForDenom(ctx sdk.Context, denom string) sdk.Dec

func (Keeper) GetGasPrices

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

func (Keeper) GetParams

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

GetParams gets the tax module's parameters.

func (Keeper) InitGenesis

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

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

func (Keeper) IsReverseCharge

func (k Keeper) IsReverseCharge(ctx sdk.Context, emit bool) 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 tax module

func (Keeper) ProcessTaxSplits

func (k Keeper) ProcessTaxSplits(ctx sdk.Context, taxes sdk.Coins) error

func (Keeper) SetParams

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

SetParams sets the tax module's parameters.

Jump to

Keyboard shortcuts

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