Versions in this module Expand all Collapse all v0 v0.1.0 Jan 28, 2022 Changes in this version + func WatchHeadChanges(ctx context.Context, src NewHeadSource, fn HeadSignalFn) (ethereum.Subscription, error) + type BlockByHashFn func(ctx context.Context, hash common.Hash) (*types.Block, error) + func (fn BlockByHashFn) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error) + type BlockByHashSource interface + BlockByHash func(ctx context.Context, hash common.Hash) (*types.Block, error) + type BlockByNumFn func(ctx context.Context, number *big.Int) (*types.Block, error) + func (fn BlockByNumFn) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error) + type BlockByNumberSource interface + BlockByNumber func(ctx context.Context, number *big.Int) (*types.Block, error) + type BlockID struct + Hash common.Hash + Number uint64 + func (id BlockID) String() string + func (id BlockID) TerminalString() string + type BlockLinkByNumber interface + BlockLinkByNumber func(ctx context.Context, num uint64) (self BlockID, parent BlockID, err error) + func CanonicalChain(l1Src HeaderByNumberSource) BlockLinkByNumber + type BlockLinkByNumberFn func(ctx context.Context, num uint64) (self BlockID, parent BlockID, err error) + func (fn BlockLinkByNumberFn) BlockLinkByNumber(ctx context.Context, num uint64) (self BlockID, parent BlockID, err error) + type BlockSource interface + type CombinedL1Source struct + func (cs *CombinedL1Source) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error) + func (cs *CombinedL1Source) Close() + func (cs *CombinedL1Source) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error) + func (cs *CombinedL1Source) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error) + func (cs *CombinedL1Source) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error) + func (cs *CombinedL1Source) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) + type HeadSignal struct + Parent BlockID + Self BlockID + type HeadSignalFn func(sig HeadSignal) + type HeaderByHashFn func(ctx context.Context, hash common.Hash) (*types.Header, error) + func (fn HeaderByHashFn) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error) + type HeaderByHashSource interface + HeaderByHash func(ctx context.Context, hash common.Hash) (*types.Header, error) + type HeaderByNumberFn func(ctx context.Context, number *big.Int) (*types.Header, error) + func (fn HeaderByNumberFn) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error) + type HeaderByNumberSource interface + HeaderByNumber func(ctx context.Context, number *big.Int) (*types.Header, error) + type L1Source interface + Close func() + func NewCombinedL1Source(sources []L1Source) L1Source + type NewHeadFn func(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error) + func (fn NewHeadFn) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error) + type NewHeadSource interface + SubscribeNewHead func(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error) + type ReceiptFn func(ctx context.Context, txHash common.Hash) (*types.Receipt, error) + func (fn ReceiptFn) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) + type ReceiptSource interface + TransactionReceipt func(ctx context.Context, txHash common.Hash) (*types.Receipt, error) v0.1.0-rc.1 Jan 21, 2022