Documentation ¶
Index ¶
- Variables
- type Keeper
- func (k Keeper) BaseDenom(ctx context.Context, _ *types.QueryBaseDenomRequest) (*types.QueryBaseDenomResponse, error)
- func (k Keeper) ConvertToBaseToken(ctx sdk.Context, inputFee sdk.Coin) (sdk.Coin, error)
- func (k Keeper) DenomPoolId(ctx context.Context, req *types.QueryDenomPoolIdRequest) (*types.QueryDenomPoolIdResponse, error)
- func (k Keeper) FeeTokens(ctx context.Context, _ *types.QueryFeeTokensRequest) (*types.QueryFeeTokensResponse, error)
- func (k Keeper) GetBaseDenom(ctx sdk.Context) (denom string, err error)
- func (k Keeper) GetFeeToken(ctx sdk.Context, denom string) (types.FeeToken, error)
- func (k Keeper) GetFeeTokens(ctx sdk.Context) (feetokens []types.FeeToken)
- func (k Keeper) GetFeeTokensStore(ctx sdk.Context) sdk.KVStore
- func (k Keeper) HandleUpdateFeeTokenProposal(ctx sdk.Context, p *types.UpdateFeeTokenProposal) error
- func (k Keeper) IsSufficientFee(ctx sdk.Context, minBaseGasPrice sdk.Dec, gasRequested uint64, ...) error
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetBaseDenom(ctx sdk.Context, denom string) error
- func (k Keeper) SetFeeTokens(ctx sdk.Context, feetokens []types.FeeToken) error
- func (k Keeper) ValidateFeeToken(ctx sdk.Context, feeToken types.FeeToken) error
- type MempoolFeeDecorator
- func (mfd MempoolFeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error)
- func (mfd MempoolFeeDecorator) GetMinBaseGasPriceForTx(ctx sdk.Context, baseDenom string, tx sdk.Tx) sdk.Dec
- func (mfd *MempoolFeeDecorator) SetArbMinGasFee(dec sdk.Dec)
Constants ¶
This section is empty.
Variables ¶
var DefaultArbMinGasFee sdk.Dec = sdk.ZeroDec()
DefaultArbMinGasFee if its not set in a config somewhere. currently 0 uosmo/gas to preserve functionality with old node software TODO: Bump after next minor version. (in 6.2+)
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) BaseDenom ¶
func (k Keeper) BaseDenom(ctx context.Context, _ *types.QueryBaseDenomRequest) (*types.QueryBaseDenomResponse, error)
func (Keeper) ConvertToBaseToken ¶
ConvertToBaseToken converts a fee amount in a whitelisted fee token to the base fee token amount
func (Keeper) DenomPoolId ¶
func (k Keeper) DenomPoolId(ctx context.Context, req *types.QueryDenomPoolIdRequest) (*types.QueryDenomPoolIdResponse, error)
func (Keeper) FeeTokens ¶
func (k Keeper) FeeTokens(ctx context.Context, _ *types.QueryFeeTokensRequest) (*types.QueryFeeTokensResponse, error)
func (Keeper) GetBaseDenom ¶
GetFeeToken returns the fee token record for a specific denom
func (Keeper) GetFeeToken ¶
GetFeeToken returns the fee token record for a specific denom. If the denom doesn't exist, returns an error.
func (Keeper) GetFeeTokens ¶
func (Keeper) HandleUpdateFeeTokenProposal ¶
func (Keeper) IsSufficientFee ¶
func (Keeper) SetBaseDenom ¶
SetBaseDenom sets the base fee denom for the chain. Should only be used once.
func (Keeper) SetFeeTokens ¶
func (Keeper) ValidateFeeToken ¶
ValidateFeeToken validates that a fee token record is valid It checks: - The denom exists - The denom is not the base denom - The gamm pool exists - The gamm pool includes the base token and fee token
type MempoolFeeDecorator ¶
MempoolFeeDecorator will check if the transaction's fee is at least as large as the local validator's minimum gasFee (defined in validator config). If fee is too low, decorator returns error and tx is rejected from mempool. Note this only applies when ctx.CheckTx = true If fee is high enough or not CheckTx, then call next AnteHandler CONTRACT: Tx must implement FeeTx to use MempoolFeeDecorator
func NewMempoolFeeDecorator ¶
func NewMempoolFeeDecorator(txFeesKeeper Keeper) MempoolFeeDecorator
func (MempoolFeeDecorator) AnteHandle ¶
func (MempoolFeeDecorator) GetMinBaseGasPriceForTx ¶
func (*MempoolFeeDecorator) SetArbMinGasFee ¶
func (mfd *MempoolFeeDecorator) SetArbMinGasFee(dec sdk.Dec)