Skip to content

0xPolygonHermez/zkevm-synchronizer-l1

Folders and files

NameName
Last commit message
Last commit date
Sep 25, 2024
Aug 27, 2024
Sep 10, 2024
Sep 25, 2024
Aug 19, 2024
Mar 13, 2024
Mar 6, 2024
Sep 18, 2024
Mar 6, 2024
Jun 19, 2024
Mar 6, 2024
Mar 6, 2024
Mar 6, 2024
Aug 28, 2024
Oct 1, 2024
Sep 18, 2024
Aug 27, 2024
Aug 20, 2024
Aug 20, 2024
May 8, 2024
Sep 10, 2024
Sep 10, 2024
Mar 8, 2024
Mar 6, 2024
Sep 10, 2024
Sep 10, 2024
Apr 30, 2024
Sep 23, 2024

Repository files navigation

zkEVM Synchronizer-L1

zkEVM Synchronizer-L1 This is a library to synchronize L1InfoTree events from L1

Usage

Import it

"github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer"

Create object

You can choose to create from a config file object calling NewSynchronizer or from a toml config file using NewSynchronizerFromConfigfile

Executing

The function Sync if a blocking function that starts the synchronization. You can run as a go rutine:

go mySync.Sync(false)

The parameter returnOnSync allows to return when the synchornization is finish so you can run the first time as a blocking call and, once the system is synchronized, run another time in the background

Interacting

You can call to IsSynced to known if the system is syncrhonized

Check usage.md for a client example