refund

package
v0.19.14 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

Types

type Handler

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

func (Handler) GasRefund

func (handler Handler) GasRefund(ctx sdk.Context, tx sdk.Tx) (refundGasFee sdk.Coins, err error)

Jump to

Keyboard shortcuts

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