Skip to content

teamreflex/cosmo-db

Repository files navigation

cosmo-db

A Subsquid indexer for ARTMS and tripleS NFTs.

Setup

$ git clone git@github.com:teamreflex/cosmo-db.git
$ cd cosmo-db
$ npm ci
$ cp .env.example .env
$ docker compose up -d

Service Configuration

db

Postgres 15.5 database server.

  • DB_PORT: Port to expose the server on. Internally it still uses the default port.
  • DB_READ_USER: Creates a user with this name, only with SELECT privileges.
  • DB_READ_PASS: Password for the read user.

processor

Subsquid processor that parses and stores data from the chain.

  • RPC_ENDPOINT: RPC endpoint to use for the chain.
  • RPC_RATE_LIMIT: Rate limit for the RPC endpoint (req/s).
  • RPC_FINALITY: Finality confirmation for RPC ingestion.
  • ENABLE_OBJEKTS: Enable objekt processing.
  • ENABLE_GRAVITY: Enable COMO/gravity processing.

drizzle-proxy

HTTP server that exposes the database for use with Drizzle ORM's HTTP proxy support for serverless environments.

  • PROXY_HTTP_PORT: Port to expose the server on.
  • PROXY_KEY: Key to use for authentication.
  • PROXY_CACHE_MAX_AGE: Max age (in seconds) to cache the /status endpoint for.

gravity-api

HTTP server for any Gravity related usage.

  • GRAVITY_HTTP_PORT: Port to expose the server on.
  • GRAVITY_CORS: CORS header to use for the server.

Tooling

License

Licensed under the MIT license.

Contact

  • Email: kyle at reflex.lol
  • Discord: kairunz
  • Cosmo ID: Kairu