Commit Graph

9 Commits

Author SHA1 Message Date
sripwoud
94eac87e5c chore: replace prettier and eslint by biome (#422)
* chore: replace `prettier` and `eslint` by `biome` (#421)

* chore: replace `prettier` and `eslint` by `biome`

* chore: lint

* changeset
2024-03-30 22:15:54 +00:00
sripwoud
0de4a0f001 chore: update value of prod query-api url
Replace anonset.fly.dev to query.anonklub.xyz
2024-03-13 11:10:38 +01:00
sripwoud
aeb1cf5de1 fix(query-api): handle dune out of credits error (#394) (#395)
* add gcloud to `.tool-versions`

* refactor: define cache at module level

* feat: handle dune out of credit error with specific exception

And add more logs

* fix: use keyFile path instead of parsed json string to auth bitgquery requests

* Revert "fix: use keyFile path instead of parsed json string to auth bitgquery requests"

This reverts commit 75cd26ebe219bc88a7d5e97b770fbeb881f5ac0a.

* refactor: rename GOOGLE_APPLICATION_CREDENTIALS to GOOGLE_APPLICATION_CREDENTIALS_JSON_STR

GOOGLE_APPLICATION_CREDENTIALS is what `gcloud` CLI uses by default.
It expects a path, not a JSON string

* update .env.example

* fix .lintstagedrc

prettier should only be ran for files extension that it supports
2024-03-07 16:52:21 +01:00
sripwoud
7c0e5756c5 Update README.md (#393) 2024-03-07 12:51:51 +01:00
sripwoud
dff05b2940 feat(query-api): cache query results (#351)
1 day TTL
2024-02-06 22:31:00 +01:00
sripwoud
4c0b9f0f2c chore: lint 2024-02-02 22:54:55 +01:00
sripwoud
e347971a0e refactor: delete proving server related code (#316) (#317)
* bump lock file

* delete `/apis/prove`

* move `/apis/query/` into `query-api/`

* remove `/infra`

* update config files

* format

* remove @anonklub/proof ts reference from circom pkg

* tsignore

* pin `@anonklub/proof` package in ui

* remove unused config in hook

* tsignore (discord bot)

* delete apis/prove

* remove tsignore directive

* update env vars

* skip build of `@anonklub/proof` in vlaidate workflow

version was pinned in UI and CLI

* avoid pre rendering for beacon query page

 see https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#dynamic

By default, next will try to pre-render and fetch the data at build time
However, this is a dune query that is subject to query credits... sometimes the query fails. It should not prevent building the app though.

* Remove prove api url from ui config
2024-01-30 16:15:28 +01:00
sripwoud
94513d99d8 Revert "chore: Delete proving server and infra code (#308) (#310)"
This reverts commit 805fb49bb4.
2024-01-30 10:29:24 +01:00
sripwoud
805fb49bb4 chore: Delete proving server and infra code (#308) (#310)
* delete `apis/prove`

* move `apis/query` into `query-api`

* delete `/infra`

* update README

* bump lock file

* clean unused

* lint

* format

* fix typescript errors

* fix: remove `composite: true` from `@anonklub/proof` tsconfig

* fix: remove reference to `@anonklub/proof` in circom pkg tsconfig

* fix: update static-analysis.yml env var for ui build step

* remove references to `NEXT_PUBLIC_PROVE_API`

* lint
2024-01-29 18:06:43 +01:00