Documentation ¶
Index ¶
- func CaculateRefundFees(ctx sdk.Context, gasUsed uint64, fees sdk.DecCoins, gasPrice *big.Int) sdk.Coins
- func NewGasRefundDecorator(ak auth.AccountKeeper, sk types.SupplyKeeper) sdk.GasRefundHandler
- func NewGasRefundHandler(ak auth.AccountKeeper, sk types.SupplyKeeper) sdk.GasRefundHandler
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaculateRefundFees ¶ added in v0.19.14
func CaculateRefundFees(ctx sdk.Context, gasUsed uint64, fees sdk.DecCoins, gasPrice *big.Int) sdk.Coins
CaculateRefundFees provides the way to calculate the refunded gas with gasUsed, fees and gasPrice, as refunded gas = fees - gasPrice * gasUsed
func NewGasRefundDecorator ¶
func NewGasRefundDecorator(ak auth.AccountKeeper, sk types.SupplyKeeper) sdk.GasRefundHandler
func NewGasRefundHandler ¶
func NewGasRefundHandler(ak auth.AccountKeeper, sk types.SupplyKeeper) sdk.GasRefundHandler
Types ¶
Click to show internal directories.
Click to hide internal directories.