release: v2.2.0-stable
This commit is contained in:
parent
1f52616f97
commit
16ddf2b2ce
25
README.md
25
README.md
@ -2,18 +2,21 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
A lightweight Postgres chain indexer designed to couple with [eth-tracker](https://github.com/grassrootseconomics/eth-tracker) to index all relevant GE related blockchain data on any EVM chain.
|
A lightweight Postgres chain indexer designed to couple with
|
||||||
|
[eth-tracker](https://github.com/grassrootseconomics/eth-tracker) to index all
|
||||||
|
relevant GE related blockchain data on any EVM chain.
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
* Git
|
- Git
|
||||||
* Docker
|
- Docker
|
||||||
* Postgres server
|
- Postgres server
|
||||||
* Access to a `eth-tracker` instance
|
- Access to a `eth-tracker` instance
|
||||||
|
|
||||||
See [docker-compose.yaml](dev/docker-compose.yaml) for an example on how to run and deploy a single instance.
|
See [docker-compose.yaml](dev/docker-compose.yaml) for an example on how to run
|
||||||
|
and deploy a single instance.
|
||||||
|
|
||||||
### 1. Build the Docker image
|
### 1. Build the Docker image
|
||||||
|
|
||||||
@ -34,7 +37,9 @@ For an example, see `dev/docker-compose.postgres.yaml`.
|
|||||||
|
|
||||||
### 3. Update config values
|
### 3. Update config values
|
||||||
|
|
||||||
See `.env.example` on how to override default values defined in `config.toml` using env variables. Alternatively, mount your own config.toml either during build time or Docker runtime.
|
See `.env.example` on how to override default values defined in `config.toml`
|
||||||
|
using env variables. Alternatively, mount your own config.toml either during
|
||||||
|
build time or Docker runtime.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Override only specific config values
|
# Override only specific config values
|
||||||
@ -44,10 +49,10 @@ mv .env.example .env
|
|||||||
|
|
||||||
Special env variables:
|
Special env variables:
|
||||||
|
|
||||||
* DEV=*
|
- DEV=*
|
||||||
|
|
||||||
Refer to [`config.toml`](config.toml) to understand different config value settings.
|
|
||||||
|
|
||||||
|
Refer to [`config.toml`](config.toml) to understand different config value
|
||||||
|
settings.
|
||||||
|
|
||||||
### 4. Run the indexer
|
### 4. Run the indexer
|
||||||
|
|
||||||
|
@ -12,12 +12,12 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/grassrootseconomics/eth-indexer/internal/api"
|
"github.com/grassrootseconomics/eth-indexer/v2/internal/api"
|
||||||
"github.com/grassrootseconomics/eth-indexer/internal/cache"
|
"github.com/grassrootseconomics/eth-indexer/v2/internal/cache"
|
||||||
"github.com/grassrootseconomics/eth-indexer/internal/handler"
|
"github.com/grassrootseconomics/eth-indexer/v2/internal/handler"
|
||||||
"github.com/grassrootseconomics/eth-indexer/internal/store"
|
"github.com/grassrootseconomics/eth-indexer/v2/internal/store"
|
||||||
"github.com/grassrootseconomics/eth-indexer/internal/sub"
|
"github.com/grassrootseconomics/eth-indexer/v2/internal/sub"
|
||||||
"github.com/grassrootseconomics/eth-indexer/internal/util"
|
"github.com/grassrootseconomics/eth-indexer/v2/internal/util"
|
||||||
"github.com/grassrootseconomics/ethutils"
|
"github.com/grassrootseconomics/ethutils"
|
||||||
"github.com/knadh/koanf/v2"
|
"github.com/knadh/koanf/v2"
|
||||||
)
|
)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/grassrootseconomics/eth-indexer/internal/handler"
|
"github.com/grassrootseconomics/eth-indexer/v2/internal/handler"
|
||||||
"github.com/grassrootseconomics/eth-indexer/pkg/router"
|
"github.com/grassrootseconomics/eth-indexer/v2/pkg/router"
|
||||||
)
|
)
|
||||||
|
|
||||||
func bootstrapRouter(handlerContainer *handler.Handler) *router.Router {
|
func bootstrapRouter(handlerContainer *handler.Handler) *router.Router {
|
||||||
|
@ -3,8 +3,8 @@ package handler
|
|||||||
import (
|
import (
|
||||||
"log/slog"
|
"log/slog"
|
||||||
|
|
||||||
"github.com/grassrootseconomics/eth-indexer/internal/cache"
|
"github.com/grassrootseconomics/eth-indexer/v2/internal/cache"
|
||||||
"github.com/grassrootseconomics/eth-indexer/internal/store"
|
"github.com/grassrootseconomics/eth-indexer/v2/internal/store"
|
||||||
"github.com/grassrootseconomics/ethutils"
|
"github.com/grassrootseconomics/ethutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"log/slog"
|
"log/slog"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/grassrootseconomics/eth-indexer/pkg/router"
|
"github.com/grassrootseconomics/eth-indexer/v2/pkg/router"
|
||||||
"github.com/nats-io/nats.go"
|
"github.com/nats-io/nats.go"
|
||||||
"github.com/nats-io/nats.go/jetstream"
|
"github.com/nats-io/nats.go/jetstream"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user