keeper

package
v3.46.13-integrate-alp... Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier

NewQuerier returns a minting Querier handler.

Types

type Hooks

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

Hooks wrapper struct for fees keeper

func (Hooks) PostTxProcessing

func (h Hooks) PostTxProcessing(ctx sdk.Context, msg core.Message, receipt *ethtypes.Receipt) error

PostTxProcessing is a wrapper for calling the EVM PostTxProcessing hook on the module keeper

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey storetypes.StoreKey,
	ps paramtypes.Subspace,
	bankKeeper types.BankKeeper,
	collectorName string,
) Keeper

func (Keeper) BurnFee

func (k Keeper) BurnFee(ctx sdk.Context, bankKeeper feeburntype.BankKeeper,
	totalFees sdk.Coins,
	params feeburntype.Params) error

BurnFee takes the total fees and burn 50% (or param set)

func (Keeper) EnableFeeBurn

func (k Keeper) EnableFeeBurn(ctx sdk.Context) (res bool)

EnableFeeBurn returns the EnableFeeBurn param

func (Keeper) FeeBurn

func (k Keeper) FeeBurn(ctx sdk.Context) (res sdk.Dec)

FeeBurn returns the FeeBurn param

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetTotalFeeBurn

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

GetTotalFeeBurn returns the total fee already burn. The returned amount is measured in config.BaseDenom (i.e, aastra).

func (Keeper) Hooks

func (k Keeper) Hooks() Hooks

Hooks return the wrapper hooks struct for the Keeper

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) PostTxProcessing

func (k Keeper) PostTxProcessing(
	ctx sdk.Context,
	msg core.Message,
	receipt *ethtypes.Receipt,
) error

PostTxProcessing implements EvmHooks.PostTxProcessing. After each successful interaction with a registered contract, the contract deployer (or, if set, the withdraw address) receives a share from the transaction fees paid by the transaction sender.

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetTotalFeeBurn

func (k Keeper) SetTotalFeeBurn(ctx sdk.Context, totalFeeBurn sdk.Dec)

SetTotalFeeBurn sets the current totalFeeBurn. totalFeeBurn must be converted to config.BaseDenom (i.e, aastra).

Jump to

Keyboard shortcuts

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