Documentation
¶
Index ¶
- type BlockProposeRewardIterator
- type BlockProposeRewardIteratorConfig
- type BlockProposedIterator
- type BlockProposedIteratorConfig
- type BlockProvenIterator
- type BlockProvenIteratorConfig
- type BlockProvenRewardIterator
- type BlockProvenRewardIteratorConfig
- type EndBlockProposeRewardEventIterFunc
- type EndBlockProposedEventIterFunc
- type EndBlockProvenEventIterFunc
- type EndBlockProvenRewardEventIterFunc
- type OnBlockProposeRewardEvent
- type OnBlockProposedEvent
- type OnBlockProvenEvent
- type OnBlockProvenRewardEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockProposeRewardIterator ¶
type BlockProposeRewardIterator struct {
// contains filtered or unexported fields
}
BlockProposeRewardIterator iterates the emitted MxcL1.BlockProposeReward events in the chain, with the awareness of reorganization.
func NewBlockProposeRewardIterator ¶
func NewBlockProposeRewardIterator(ctx context.Context, cfg *BlockProposeRewardIteratorConfig) (*BlockProposeRewardIterator, error)
NewBlockProposeRewardIterator creates a new instance of BlockProposeReward event iterator.
func (*BlockProposeRewardIterator) Iter ¶
func (i *BlockProposeRewardIterator) Iter() error
Iter iterates the given chain between the given start and end heights, will call the callback when a BlockProposeReward event is iterated.
type BlockProposeRewardIteratorConfig ¶
type BlockProposeRewardIteratorConfig struct { Client *ethclient.Client MxcL1 *bindings.MxcL1Client MaxBlocksReadPerEpoch *uint64 StartHeight *big.Int EndHeight *big.Int FilterQuery []*big.Int Reverse bool OnBlockProposeRewardEvent OnBlockProposeRewardEvent }
BlockProposeRewardIteratorConfig represents the configs of a BlockProposeReward event iterator.
type BlockProposedIterator ¶
type BlockProposedIterator struct {
// contains filtered or unexported fields
}
BlockProposedIterator iterates the emitted MxcL1.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 *ethclient.Client MxcL1 *bindings.MxcL1Client MaxBlocksReadPerEpoch *uint64 StartHeight *big.Int EndHeight *big.Int FilterQuery []*big.Int Reverse bool OnBlockProposedEvent OnBlockProposedEvent }
BlockProposedIteratorConfig represents the configs of a BlockProposed event iterator.
type BlockProvenIterator ¶
type BlockProvenIterator struct {
// contains filtered or unexported fields
}
BlockProvenIterator iterates the emitted MxcL1.BlockProven events in the chain, with the awareness of reorganization.
func NewBlockProvenIterator ¶
func NewBlockProvenIterator(ctx context.Context, cfg *BlockProvenIteratorConfig) (*BlockProvenIterator, error)
NewBlockProvenIterator creates a new instance of BlockProven event iterator.
func (*BlockProvenIterator) Iter ¶
func (i *BlockProvenIterator) Iter() error
Iter iterates the given chain between the given start and end heights, will call the callback when a BlockProven event is iterated.
type BlockProvenIteratorConfig ¶
type BlockProvenIteratorConfig struct { Client *ethclient.Client MxcL1 *bindings.MxcL1Client MaxBlocksReadPerEpoch *uint64 StartHeight *big.Int EndHeight *big.Int FilterQuery []*big.Int Reverse bool OnBlockProvenEvent OnBlockProvenEvent }
BlockProvenIteratorConfig represents the configs of a BlockProven event iterator.
type BlockProvenRewardIterator ¶
type BlockProvenRewardIterator struct {
// contains filtered or unexported fields
}
BlockProvenRewardIterator iterates the emitted MxcL1.BlockProvenReward events in the chain, with the awareness of reorganization.
func NewBlockProvenRewardIterator ¶
func NewBlockProvenRewardIterator(ctx context.Context, cfg *BlockProvenRewardIteratorConfig) (*BlockProvenRewardIterator, error)
NewBlockProvenRewardIterator creates a new instance of BlockProvenReward event iterator.
func (*BlockProvenRewardIterator) Iter ¶
func (i *BlockProvenRewardIterator) Iter() error
Iter iterates the given chain between the given start and end heights, will call the callback when a BlockProvenReward event is iterated.
type BlockProvenRewardIteratorConfig ¶
type BlockProvenRewardIteratorConfig struct { Client *ethclient.Client MxcL1 *bindings.MxcL1Client MaxBlocksReadPerEpoch *uint64 StartHeight *big.Int EndHeight *big.Int FilterQuery []*big.Int Reverse bool OnBlockProvenRewardEvent OnBlockProvenRewardEvent }
BlockProvenRewardIteratorConfig represents the configs of a BlockProvenReward event iterator.
type EndBlockProposeRewardEventIterFunc ¶
type EndBlockProposeRewardEventIterFunc func()
EndBlockProposeRewardEventIterFunc ends the current iteration.
type EndBlockProposedEventIterFunc ¶
type EndBlockProposedEventIterFunc func()
EndBlockProposedEventIterFunc ends the current iteration.
type EndBlockProvenEventIterFunc ¶
type EndBlockProvenEventIterFunc func()
EndBlockProvenEventIterFunc ends the current iteration.
type EndBlockProvenRewardEventIterFunc ¶
type EndBlockProvenRewardEventIterFunc func()
EndBlockProvenRewardEventIterFunc ends the current iteration.
type OnBlockProposeRewardEvent ¶
type OnBlockProposeRewardEvent func( context.Context, *bindings.MxcL1ClientBlockProposeReward, EndBlockProposeRewardEventIterFunc, ) error
OnBlockProposeRewardEvent represents the callback function which will be called when a MxcL1.BlockProposeReward event is iterated.
type OnBlockProposedEvent ¶
type OnBlockProposedEvent func( context.Context, *bindings.MxcL1ClientBlockProposed, EndBlockProposedEventIterFunc, ) error
OnBlockProposedEvent represents the callback function which will be called when a MxcL1.BlockProposed event is iterated.
type OnBlockProvenEvent ¶
type OnBlockProvenEvent func(context.Context, *bindings.MxcL1ClientBlockProven, EndBlockProvenEventIterFunc) error
OnBlockProvenEvent represents the callback function which will be called when a MxcL1.BlockProven event is iterated.
type OnBlockProvenRewardEvent ¶
type OnBlockProvenRewardEvent func(context.Context, *bindings.MxcL1ClientBlockProvenReward, EndBlockProvenRewardEventIterFunc) error
OnBlockProvenRewardEvent represents the callback function which will be called when a MxcL1.BlockProvenReward event is iterated.