16 Commits

Author SHA1 Message Date
sripwoud
2500126257 docs(query-api): add openapi.yml 2024-08-19 16:36:40 +02:00
sripwoud
608a7d61d5 ci: auto stop fly machines 2024-08-19 10:15:46 +02:00
sripwoud
8d2ad7aa64 chore: merge staging (#473) 2024-08-07 13:03:22 +02:00
sripwoud
7319796951 chore: merge staging (#465)
* feat(discord-bot): integrate with spartan-ecdsa (#462)

* chore: remove uneeded deps/files

* chore: fix deps

* feat: use en vars for VERIFICATION_CHANNEL_ID and VERIFIED_ROLE_ID

* refactor: change formatting of messages sent by bot

link to channels
use different font style

* chore: remove unused deps

* feat: verify spartan proof with discord bot

* fix: bump @types/node

Need > 20 to have fetch typings

* chore: update comment

* ci: remove debug step

* docs: update .env.example

* docs: update discord/bot/README

* refactor: update error message if missing env var

* fix(ui): do not pre render /api/verify route

* refactor: use verifier object to load wasm async

* fix: link wasm files to `server/static`

webpack 5 breaks dynamic import of wasm
https://github.com/vercel/next.js/issues/25852

* ci: link wasm files to `.next/server/static` in Dockerfile

* chore: debug

* fix(ui): set CORS headers

* refactor: add info logs

* ci: refactor Dockerfile and fly toml

* fix: remove remaining merge hints

* feat: restrict verification request to discord bot origin (#466)

* refactor: add info logs

* wip

* fix  import

* refactor: remove wallet connect id from fly config

Set already in Dockerfile

* ci: refactor setting of env vars in Dockerfile and fly configs (#469)

ci: update dockerfiles and fly env vars
2024-08-03 21:07:31 +02:00
sripwoud
ae38ad7189 chore: fix circular deps (#467)
* chore(ui): fix circular deps

* chore(discord-bot): fix circular deps

* chore(query-api): fix circular deps

* chore: remove `madge` dev dep

* chore: revert change in next config
2024-08-02 15:53:59 +02:00
sripwoud
2c01b3ec80 chore: use lefthook to manage git hooks (#458)
* chore: hide biome config file

* chore: update dprint and biome config

* chore: replace lintstaged and husky by lefthook

* chore: update knip config

* chore: cleanup config files in `ui`

* fix: use dprint action in format workflow step
2024-07-26 17:59:07 +02:00
sripwoud
0245d64b3d chore: merge staging (#454)
* refactor: use `dprint` for formatting (#446)

* ci: bump actions versions

* chore: bump node version

* chore: format with `dprint`

* chore: exclude contracts/lib from fmt, update lintstaged cmd

* ci: update node/pnpm versions

* ci: update actions versions in test workflow

* refactor GH worfklows (#447)

* ci: update actions versions in test workflow

* refactor gh workflows

* fix: bump Cargo.lock

* ci: optimize test workflow (#448)

* ci: optimize test workflow

* ci: merge test with static-analsysi workflow

* chore: rename workflow file

* ci: fix typo

* ci: fix

* ci: fix

* ci: exclude ui from jts modified files

* fix(ci): add changed-files step id

* ci: fix node & pnpm versions

* ci: fix node action input name

* fix: use checkout action in fmt job

* fix: use checkout action in test-node job

* ci: fix cache-hit check

* ci: use actions/cache/restore

* ci: update node/pnpm cache path

* ci: install rustfmt component

* ci: hoist shamefully deps

easier to manage cache of node_modules that way

* ci: do not use cache of `deps`job for test-node job

* chore: delete forge lib

* forge install: openzeppelin-contracts

v5.0.2

* forge install: forge-std

v1.9.1

* fix(contracts): define remappings

* ci: fix output name
2024-07-15 14:35:51 +02:00
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