Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrHeaderTraversalAheadOfProvider = errors.New("the HeaderTraversal's internal state is ahead of the provider") ErrHeaderTraversalAndProviderMismatchedState = errors.New("the HeaderTraversal and provider have diverged in state") )
Functions ¶
func IsURLAvailable ¶
Types ¶
type EthClient ¶
type EthClient interface { BlockHeaderByNumber(*big.Int) (*types.Header, error) LatestSafeBlockHeader() (*types.Header, error) LatestFinalizedBlockHeader() (*types.Header, error) BlockHeaderByHash(common.Hash) (*types.Header, error) BlockHeadersByRange(*big.Int, *big.Int, uint) ([]types.Header, error) TxByHash(common.Hash) (*types.Transaction, error) StorageHash(common.Address, *big.Int) (common.Hash, error) FilterLogs(ethereum.FilterQuery) (Logs, error) Close() }
type HeaderTraversal ¶
type HeaderTraversal struct {
// contains filtered or unexported fields
}
func NewHeaderTraversal ¶
func (*HeaderTraversal) LastTraversedHeader ¶
func (f *HeaderTraversal) LastTraversedHeader() *types.Header
func (*HeaderTraversal) LatestHeader ¶
func (f *HeaderTraversal) LatestHeader() *types.Header
func (*HeaderTraversal) NextHeaders ¶
func (f *HeaderTraversal) NextHeaders(maxSize uint64) ([]types.Header, error)
Click to show internal directories.
Click to hide internal directories.