Skip to content

Commit

Permalink
Merge pull request #103 from Synthetixio/snaxchain
Browse files Browse the repository at this point in the history
Add snaxchain support
  • Loading branch information
Tburm authored Aug 27, 2024
2 parents fb57653 + dce4d90 commit a1806a4
Show file tree
Hide file tree
Showing 20 changed files with 26,656 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ AIRFLOW_PORT=8080

# dashboard
LEGACY_DB_LOCATION=

# snaxchain api key
CONDUIT_API_KEY=
17 changes: 17 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,23 @@ services:
GQL_PORT: 4350
RPC_ENDPOINT: https://mainnet.optimism.io

snax-testnet-processor:
build:
context: ./indexers/snax-testnet
networks:
- data
depends_on:
- db
restart: always
environment:
DB_HOST: db
DB_PORT: 5432
DB_NAME: snax_testnet
DB_PASS: $PG_PASSWORD
GQL_PORT: 4350
RPC_ENDPOINT: https://testnet.snaxchain.io/
API_KEY: $CONDUIT_API_KEY

transformer:
build:
context: ./transformers
Expand Down
4 changes: 4 additions & 0 deletions indexers/snax-testnet/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.git
/node_modules
/*Versions.json
.env
14 changes: 14 additions & 0 deletions indexers/snax-testnet/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:16

WORKDIR /app

COPY package*.json ./

RUN npm ci

COPY . .

RUN npm run generate:processor
RUN npm run build

CMD npm run generate:migration ; npm run start
Loading

0 comments on commit a1806a4

Please sign in to comment.