A relayer for the Bridge to watch and sync event between Layer 1 and Taiko Layer 2.
Executable binary, built it with go build cmd/main.go {options}
.
Command line interface execution folder, intended to instantiate all app dependencies and start them.
Entry point to the application. There are possible flag configurations for the app. Run go run cmd/main.go -h
to see possible options, or go run cmd/main.go
to run it with sensible defaults.
Autogenerated smart contract bindings with abigen
. Use ./abigen.sh
to generate the bindings.
Encoding helpers for packing abi structs or converting types.
A block indexing service that watches for events happening in batches.
A message processor that can act on a specific event and attempt to process them via bridge.processMessage
call.
Contains database migrations. They are created and ran with the goose
binary.
Install goose: go install github.com/pressly/goose/v3/cmd/goose@latest
Then:
cd migrations
GOOSE_DRIVER=mysql GOOSE_DBSTRING="username:password@/dbname" goose up
Mocked structs for testing.
Proof generator, uses eth_getProof
call under the hood.
Database repositories implementing domain Repository interfaces with a concrete MySQL implementation.