Documentation ¶
Index ¶
- Constants
- func CalcFee(gasPrice *big.Int, gas uint64) *big.Int
- func CalcGas(fee, gasPrice *big.Int) *big.Int
- func DisableZeroFee()
- func EnableZeroFee()
- func GasEnabled(version int32) bool
- func GasLimit(version int32, isFeeDelegation bool, txGasLimit uint64, payloadSize int, ...) (gasLimit uint64, err error)
- func IsZeroFee() bool
- func MaxGasLimit(balance, gasPrice *big.Int) uint64
- func MaxPayloadFee(payloadSize int) *big.Int
- func NewZeroFee() *big.Int
- func PayloadFee(payloadSize int) *big.Int
- func ReceiptGasUsed(version int32, isGovernance bool, txFee, gasPrice *big.Int) uint64
- func StateDataFee(dataSize int64) *big.Int
- func TxBaseFee(version int32, gasPrice *big.Int, payloadSize int) *big.Int
- func TxExecuteFee(version int32, gasPrice *big.Int, usedGas uint64, dbUpdateTotalSize int64) *big.Int
- func TxGas(payloadSize int) uint64
- func TxMaxFee(version int32, lenPayload int, gasLimit uint64, balance, gasPrice *big.Int) (*big.Int, error)
Constants ¶
View Source
const (
StateDbMaxUpdateSize = payloadMaxSize
)
Variables ¶
This section is empty.
Functions ¶
func DisableZeroFee ¶
func DisableZeroFee()
func EnableZeroFee ¶
func EnableZeroFee()
func GasEnabled ¶ added in v2.4.9
func MaxGasLimit ¶
func MaxPayloadFee ¶ added in v2.4.9
func NewZeroFee ¶
func PayloadFee ¶ added in v2.4.9
func ReceiptGasUsed ¶ added in v2.4.9
func StateDataFee ¶ added in v2.4.9
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.