diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index 4cda3bf157..e50cb5c99f 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -20,6 +20,7 @@ jobs: repo branding bridge-ui + eventindexer protocol relayer status-page diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 4dc84bbfc6..d87955bc37 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -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", diff --git a/packages/eventindexer/README.md b/packages/eventindexer/README.md new file mode 100644 index 0000000000..e607180322 --- /dev/null +++ b/packages/eventindexer/README.md @@ -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. \ No newline at end of file diff --git a/release-please-config.json b/release-please-config.json index 96d8011ac0..49eb479e10 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -3,6 +3,7 @@ ".": {}, "packages/branding": {}, "packages/bridge-ui": {}, + "packages/eventindexer": {}, "packages/protocol": {}, "packages/relayer": {}, "packages/status-page": {},