-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backend] USDC balance indexer + endpoint (#84)
* support a fake USDC on sepolia * fix balances indexer * remove decimals support * small refactoring * activate entity mode on balances indexor * configure balacnes db update * fix balances indexor entity key * fix entity mode config * small drizzle refactor * add drizzle migrations * fix apibara insert/update on balances * rename db url variable name * remove useless config files * remove more useless config files * replace postgres-js by node-postgres * removed balances indexer entity mode * generate drizzle migration on build
- Loading branch information
Showing
41 changed files
with
136 additions
and
2,709 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ yarn-error.log* | |
lerna-debug.log* | ||
.pnpm-debug.log* | ||
|
||
# Caches | ||
# Caches | ||
|
||
.cache | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
/* eslint-disable import/no-unused-modules */ | ||
|
||
import type { Config } from 'drizzle-kit' | ||
import { defineConfig } from 'drizzle-kit' | ||
|
||
export default { | ||
export default defineConfig({ | ||
schema: './src/db/schema.ts', | ||
out: './src/db/migrations', | ||
out: './drizzle', | ||
driver: 'pg', | ||
} satisfies Config | ||
dbCredentials: { | ||
connectionString: process.env.DATABASE_URL ?? '', | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"version":"5","dialect":"pg","entries":[]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.