Documentation ¶
Index ¶
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Hooks
- type Keeper
- func (k Keeper) BurnFee(ctx sdk.Context, bankKeeper feeburntype.BankKeeper, totalFees sdk.Coins, ...) error
- func (k Keeper) EnableFeeBurn(ctx sdk.Context) (res bool)
- func (k Keeper) FeeBurn(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetTotalFeeBurn(ctx sdk.Context) sdk.Dec
- func (k Keeper) Hooks() Hooks
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) PostTxProcessing(ctx sdk.Context, msg core.Message, receipt *ethtypes.Receipt) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetTotalFeeBurn(ctx sdk.Context, totalFeeBurn sdk.Dec)
- func (k Keeper) TotalFeeBurn(c context.Context, request *types.QueryTotalFeeBurnRequest) (*types.QueryTotalFeeBurnResponse, error)
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
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 ¶
EnableFeeBurn returns the EnableFeeBurn param
func (Keeper) GetTotalFeeBurn ¶
GetTotalFeeBurn returns the total fee already burn. The returned amount is measured in config.BaseDenom (i.e, aastra).
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
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) SetTotalFeeBurn ¶
SetTotalFeeBurn sets the current totalFeeBurn. totalFeeBurn must be converted to config.BaseDenom (i.e, aastra).
func (Keeper) TotalFeeBurn ¶
func (k Keeper) TotalFeeBurn(c context.Context, request *types.QueryTotalFeeBurnRequest) (*types.QueryTotalFeeBurnResponse, error)