Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove legacy code #576

Merged
merged 3 commits into from
Feb 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 0 additions & 68 deletions .github/workflows/ci.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/deploy-lambdas.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/lambda-ci.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/lambda-dev-pipeline.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/lambda-prod-pipeline.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/test-lambdas.yml

This file was deleted.

22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,20 @@ With QueryApi you can
* Retrieve that data through a GraphQL API.

## 🧩 Components
1. [QueryApi Coordinator](./indexer)
An Indexer that tracks changes to the QueryApi registry contract. It triggers the execution of those IndexerFunctions
when they match new blocks by placing messages on a Redis Stream. Spawns historical processing threads when needed.
1.a. Subfolders provide crates for the different components of the Indexer: indexer_rule_type (shared with registry contract),
indexer_rules_engine, storage.
2. [Indexer Runner](.indexer-js-queue-handler)
Retrieves messages from the SQS queue, fetches the matching block and executes the IndexerFunction.
3. [Runner](.runner)
1. [Coordinator](./coordinator)
Continuously reads latest registry and attempts to synchronise that configuration across the system, i.e. starting relevant Block Streams and Executors.
1. [Runner](./runner)
Manages "Executors" which, retrieves messages from Redis Streams, fetches matching blocks, and executes Indexer code against that block.
Retrieves messages from Redis Stream, fetching matching block and executes the IndexerFunction.
3. [IndexerFunction Editor UI](./frontend)
1. [Block Streamer](./block-streamer)
Manages "Block Streams" which, use the configured contract filter to fetch relevant blocks from S3 and publish those blocks to Redis Streams.
1. [IndexerFunction Editor UI](./frontend)
Serves the editor UI within the dashboard widget and mediates some communication with the GraphQL DB and block server.
4. [Hasura Authentication Service](./hasura-authentication-service)
1. [Hasura Authentication Service](./hasura-authentication-service)
Provides authentication for the Hasura GraphQL server.
5. [IndexerFunction Registry Contract](./registry)
1. [IndexerFunction Registry Contract](./registry)
Stores IndexerFunctions, their schemas and execution parameters like start block height.
6. [Lake Block server](./block-server)
1. [Lake Block server](./block-server)
Serves blocks from the S3 lake for in browser testing of IndexerFunctions.

## 🚀 Getting Started
Expand Down
18 changes: 0 additions & 18 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,6 @@ services:
ports:
- "8002:8002"

coordinator-v1:
build:
context: ./indexer
args:
- CARGO_BUILD_MODE=debug
depends_on:
- redis
environment:
REDIS_CONNECTION_STRING: redis://redis
LAKE_AWS_ACCESS_KEY:
LAKE_AWS_SECRET_ACCESS_KEY:
PORT: 9180
REGISTRY_CONTRACT_ID: dev-queryapi.dataplatform.near
AWS_QUEUE_REGION: eu-central-1
command:
- mainnet
- from-interruption

coordinator:
build:
context: .
Expand Down
2 changes: 0 additions & 2 deletions indexer-js-queue-handler/.gitignore

This file was deleted.

98 changes: 0 additions & 98 deletions indexer-js-queue-handler/README.md

This file was deleted.

Loading