gas

package
v1.10.13 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComputeHandler added in v1.9.10

type ComputeHandler func(ctx context.Context, gasState GasPrice) error

type GasPrice

type GasPrice struct {
	Slow   string
	Median string
	Fast   string
}

type Tracker

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

func NewTracker

func NewTracker(
	state storage.IState,
	stats storage.IBlockStats,
	tx storage.ITx,
	observer *bus.Observer,
) *Tracker

func (*Tracker) Close

func (tracker *Tracker) Close() error

func (*Tracker) Init

func (tracker *Tracker) Init(ctx context.Context) error

func (*Tracker) Start

func (tracker *Tracker) Start(ctx context.Context)

func (*Tracker) State

func (tracker *Tracker) State() GasPrice

func (*Tracker) SubscribeOnCompute added in v1.9.10

func (tracker *Tracker) SubscribeOnCompute(handler ComputeHandler)

Jump to

Keyboard shortcuts

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