Versions in this module Expand all Collapse all v1 v1.1.3 Nov 14, 2021 Changes in this version + var DefaultMaxPrice = big.NewInt(500 * params.GWei) + type Config struct + Blocks int + Default *big.Int + MaxPrice *big.Int + OracleThreshold int + Percentile int + type Oracle struct + func NewOracle(backend OracleBackend, params Config) *Oracle + func (gpo *Oracle) SuggestPrice(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)