Skip to content

v0.3.3

Compare
Choose a tag to compare
@joanestebanr joanestebanr released this 22 May 10:51
· 162 commits to develop since this release
57e6c49
  • 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)
}