Versions in this module Expand all Collapse all v0 v0.0.3 Feb 22, 2024 v0.0.2 Feb 22, 2024 Changes in this version + var DefaultIgnorePrice = big.NewInt(2 * params.Wei) + var DefaultMaxPrice = big.NewInt(500 * params.GWei) + var DefaultMinSuggestedPriorityFee = big.NewInt(1e6 * params.Wei) + type Config struct + Blocks int + Default *big.Int + IgnorePrice *big.Int + MaxBlockHistory uint64 + MaxHeaderHistory uint64 + MaxPrice *big.Int + MinSuggestedPriorityFee *big.Int + Percentile int + type Oracle struct + func NewOracle(backend OracleBackend, params Config) *Oracle + func (oracle *Oracle) FeeHistory(ctx context.Context, blocks uint64, unresolvedLastBlock rpc.BlockNumber, ...) (*big.Int, [][]*big.Int, []*big.Int, []float64, error) + func (oracle *Oracle) SuggestOptimismPriorityFee(ctx context.Context, h *types.Header, headHash common.Hash) *big.Int + 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 + GetReceipts func(ctx context.Context, hash common.Hash) (types.Receipts, error) + HeaderByNumber func(ctx context.Context, number rpc.BlockNumber) (*types.Header, error) + PendingBlockAndReceipts func() (*types.Block, types.Receipts) + SubscribeChainHeadEvent func(ch chan<- core.ChainHeadEvent) event.Subscription