gas

package
v1.4.4-beta Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GasOracle

type GasOracle interface {
	GetSettings() (*GasSettings, error)
	Start()
	Stop()
}

type GasSettings

type GasSettings struct {
	GasFeeCap *big.Int
	GasTipCap *big.Int
	GasLimit  uint64
}

type RPCGasOracle

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

func NewRPCGasOracle

func NewRPCGasOracle(o RPCGasOracleOpts) (*RPCGasOracle, error)

func (*RPCGasOracle) GetSettings

func (g *RPCGasOracle) GetSettings() (*GasSettings, error)

func (*RPCGasOracle) Start

func (g *RPCGasOracle) Start()

func (*RPCGasOracle) Stop

func (g *RPCGasOracle) Stop()

type RPCGasOracleOpts

type RPCGasOracleOpts struct {
	Logg          *slog.Logger
	ChainProvider *ethutils.Provider
}

type StaticGas

type StaticGas struct{}

func (*StaticGas) GetSettings

func (sg *StaticGas) GetSettings() (*GasSettings, error)

func (*StaticGas) Start

func (sg *StaticGas) Start()

func (*StaticGas) Stop

func (sg *StaticGas) Stop()

Jump to

Keyboard shortcuts

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