Skip to content

Commit

Permalink
feat(repo): add eventindexer to the monorepo (#13471)
Browse files Browse the repository at this point in the history
  • Loading branch information
d1onys1us committed Mar 27, 2023
1 parent 408cf60 commit a10d1fe
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
repo
branding
bridge-ui
eventindexer
protocol
relayer
status-page
Expand Down
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
".": "0.8.0",
"packages/branding": "0.1.0",
"packages/bridge-ui": "0.3.0",
"packages/eventindexer": "0.1.0",
"packages/protocol": "0.5.0",
"packages/relayer": "0.3.0",
"packages/status-page": "0.4.0",
Expand Down
12 changes: 12 additions & 0 deletions packages/eventindexer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[![Golang](https://github.com/taikoxyz/taiko-mono/actions/workflows/golang.yml/badge.svg)](https://github.com/taikoxyz/taiko-mono/actions/workflows/golang.yml)
[![Relayer](https://codecov.io/gh/taikoxyz/taiko-mono/branch/main/graph/badge.svg?token=E468X2PTJC&flag=relayer)](https://codecov.io/gh/taikoxyz/taiko-mono)

# Indexer

Catches events, stores them in the database to be queried via API.

## Running the app

run `cp .default.env .env`, and add your own private key as `RELAYER_ECDSA_KEY` in `.env`. You need to be running a MySQL instance, and replace all the `MYSQL_` env vars with yours.

Run `go run cmd/main.go --help` to see a list of possible configuration flags, or `go run cmd/main.go` to run with defaults, which will process messages from L1 to L2, and from L2 to L1, and start indexing blocks from 0.
1 change: 1 addition & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
".": {},
"packages/branding": {},
"packages/bridge-ui": {},
"packages/eventindexer": {},
"packages/protocol": {},
"packages/relayer": {},
"packages/status-page": {},
Expand Down

0 comments on commit a10d1fe

Please sign in to comment.