Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockProposedIterator ¶
type BlockProposedIterator struct {
// contains filtered or unexported fields
}
BlockProposedIterator iterates the emitted TaikoL1.BlockProposed events in the chain, with the awareness of reorganization.
func NewBlockProposedIterator ¶
func NewBlockProposedIterator(ctx context.Context, cfg *BlockProposedIteratorConfig) (*BlockProposedIterator, error)
NewBlockProposedIterator creates a new instance of BlockProposed event iterator.
func (*BlockProposedIterator) Iter ¶
func (i *BlockProposedIterator) Iter() error
Iter iterates the given chain between the given start and end heights, will call the callback when a BlockProposed event is iterated.
type BlockProposedIteratorConfig ¶
type BlockProposedIteratorConfig struct { Client *rpc.EthClient TaikoL1 *bindings.TaikoL1Client MaxBlocksReadPerEpoch *uint64 StartHeight *big.Int EndHeight *big.Int FilterQuery []*big.Int OnBlockProposedEvent OnBlockProposedEvent BlockConfirmations *uint64 }
BlockProposedIteratorConfig represents the configs of a BlockProposed event iterator.
type EndBlockProposedEventIterFunc ¶ added in v0.1.9
type EndBlockProposedEventIterFunc func()
EndBlockProposedEventIterFunc ends the current iteration.
type OnBlockProposedEvent ¶
type OnBlockProposedEvent func( context.Context, *bindings.TaikoL1ClientBlockProposed, EndBlockProposedEventIterFunc, ) error
OnBlockProposedEvent represents the callback function which will be called when a TaikoL1.BlockProposed event is iterated.
Click to show internal directories.
Click to hide internal directories.