Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) BurnTaxRate(c context.Context, _ *types.QueryBurnTaxRateRequest) (*types.QueryBurnTaxRateResponse, error)
- func (k Keeper) ComputeTax(ctx sdk.Context, amount sdk.Coins) sdk.Coins
- func (k Keeper) DeductTax(ctx sdk.Context, sender sdk.AccAddress, amount sdk.Coins) (sdk.Coins, error)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetBurnTaxRate(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetEffectiveGasPrices(ctx sdk.Context) sdk.DecCoins
- func (k Keeper) GetGasPriceForDenom(ctx sdk.Context, denom string) sdk.Dec
- func (k Keeper) GetGasPrices(ctx sdk.Context) sdk.DecCoins
- func (k Keeper) GetParams(clientCtx sdk.Context) (params types.Params)
- func (k Keeper) InitGenesis(ctx sdk.Context, genState *types.GenesisState)
- func (k Keeper) IsReverseCharge(ctx sdk.Context, emit bool) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) ProcessTaxSplits(ctx sdk.Context, taxes sdk.Coins) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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 ¶
func (k Keeper) BurnTaxRate(c context.Context, _ *types.QueryBurnTaxRateRequest) (*types.QueryBurnTaxRateResponse, error)
BurnTaxRate queries burn tax rate of tax module
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 ¶
GetAuthority returns the x/tax module's authority.
func (Keeper) GetEffectiveGasPrices ¶
func (Keeper) GetGasPriceForDenom ¶
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) Params ¶
func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params queries params of tax module
func (Keeper) ProcessTaxSplits ¶
Click to show internal directories.
Click to hide internal directories.