gasstation

package
v1.0.7-testnet-hotfix-1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GasPriceEstimater

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

func MustNewGasPriceEstimater

func MustNewGasPriceEstimater(cfx sdk.ClientOperator) *GasPriceEstimater

MustNewGasPriceEstimater creates an instance of gas price estimator.

func NewGasPriceEstimater

func NewGasPriceEstimater(cfx sdk.ClientOperator, fromEpoch uint64) *GasPriceEstimater

func (*GasPriceEstimater) Run

func (e *GasPriceEstimater) Run()

Run starts to gather samples from epoch data, collect statistics from samples and then predict gas price estimates.

Jump to

Keyboard shortcuts

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