v0.3.3
- Add support to query blocks #49
Interfaces changes
Add new function to query blocks
type L1Block struct {
BlockNumber uint64
BlockHash common.Hash
ParentHash common.Hash
ReceivedAt time.Time
Checked bool // The block is safe (have past the safe point, e.g. Finalized in L1)
HasEvents bool // This block have events from the rollup
SyncVersion string
}
type SynchronizerBlockQuerier interface {
GetLastL1Block(ctx context.Context) (*L1Block, error)
GetL1BlockByNumber(ctx context.Context, blockNumber uint64) (*L1Block, error)
}