Releases: 0xPolygonHermez/zkevm-synchronizer-l1
Releases · 0xPolygonHermez/zkevm-synchronizer-l1
v0.5.3
v0.5.2
v0.4.2
v0.4.1
v0.4.0
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)
}
v0.3.2
Feature
- Add batchl2data synchronization #40:
GetVirtualBatchByBatchNumber(ctx context.Context, batchNumber uint64) (*VirtualBatch, error)
GetLastestVirtualBatchNumber(ctx context.Context) (uint64, error)
Fixes
- Fix mod tidy issue #41
Internal
- Partial reorg integration #29, #28 , #27 (not yet functional)
- Database: Add new fields to
block
table:- checked: part of reorgs, it marks if the block have been created before
finalized
block and is not going to be reorged - has_events: it marks if this block have rollup events
- checked: part of reorgs, it marks if the block have been created before
- Database: Add new fields to
sequenced_batches
table:- fork_id: forkid of this sequence
- received_at: when it was received by the library
- source: a reference of the origin of this, InitialBatch or Sequence
- Database: Add new tables:
sync.virtual_batch
andsync.reorg_log
v0.2.7
v0.2.6
Init logger