Versions in this module Expand all Collapse all v0 v0.1.1 Oct 7, 2021 v0.1.0 Sep 30, 2021 Changes in this version + var DefaultIgnorePrice = big.NewInt(2 * params.Wei) + var DefaultMaxPrice = big.NewInt(10 * params.GWei) + type Config struct + Blocks int + IgnorePrice *big.Int + MaxPrice *big.Int + Percentile int + type Oracle struct + func NewOracle(backend OracleBackend, config Config) *Oracle + func (oracle *Oracle) EstimateBaseFee(ctx context.Context) (*big.Int, error) + func (oracle *Oracle) SuggestPrice(ctx context.Context) (*big.Int, error) + func (oracle *Oracle) SuggestTipCap(ctx context.Context) (*big.Int, error) + type OracleBackend interface + BlockByNumber func(ctx context.Context, number rpc.BlockNumber) (*types.Block, error) + ChainConfig func() *params.ChainConfig + HeaderByNumber func(ctx context.Context, number rpc.BlockNumber) (*types.Header, error)