Skip to content

Commit

Permalink
Merge pull request #334 from metaDAOproject/feat/performance
Browse files Browse the repository at this point in the history
Feat: restructuring, cleansing, performance improvements, RPC failover
  • Loading branch information
R-K-H authored Dec 4, 2024
2 parents 34a2515 + 840d1e9 commit d3a0abe
Show file tree
Hide file tree
Showing 61 changed files with 5,080 additions and 1,088 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ jobs:
run: bun test
env:
RPC_ENDPOINT: https://api.devnet.solana.com/
BACKUP_RPC_ENDPOINT: https://api.devnet.solana.com/
INDEXER_URL: https://staging-indexer.metadao.fi
INDEXER_WSS_URL: wss://staging-indexer.metadao.fi
7 changes: 7 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TODO

[] Insert conditional prices when new proposal is indexed - DONE
[] Manage database connections better - probably a connection pool with dedicated channels for each major component
[] Add telemetry - probably log calltrace when indexer crashes
[] Add logging for db connections and health checks
[] Unify v3 and v4 indexers to both either use croner or regular intervals (currently v3 uses cron and v4 uses regular intervals)
2 changes: 2 additions & 0 deletions packages/database/drizzle/0014_lonely_wolfsbane.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE "markets" ADD COLUMN "base_amount" numeric;--> statement-breakpoint
ALTER TABLE "markets" ADD COLUMN "quote_amount" numeric;
Loading

0 comments on commit d3a0abe

Please sign in to comment.