Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,24 @@ jobs:
name: Backend
runs-on: ubuntu-latest
steps:
- name: Enable Corepack
run: corepack enable
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
cache-dependency-path: backend/package-lock.json
cache: yarn
cache-dependency-path: backend/yarn.lock

- name: Install
working-directory: backend
run: npm ci
run: yarn install --immutable
- name: Worker-only backend guard
working-directory: backend
run: npm run check:worker-only
run: yarn run check:worker-only
- name: Build
working-directory: backend
run: npm run build
run: yarn run build
- name: Test
working-directory: backend
run: npm test
run: yarn test
2 changes: 2 additions & 0 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Cloudflare Worker for GoodDollar Celo-vault credit accounting and Celo → Base
- `POST /v1/analytics/refresh`
- `POST /v1/accounts/:account/stream-credits`
- `POST /v1/accounts/:account/operator-consent`
- `POST /v1/accounts/:account/operator-revoke`
- `POST /v1/accounts/:account/withdraw`
- `POST /v1/celo/events/record`
- `POST /v1/channels/:channelId/close`
Expand All @@ -41,6 +42,7 @@ Cloudflare Worker for GoodDollar Celo-vault credit accounting and Celo → Base
- `{ "account": "0x...", "fromBlock": "0x...", "toBlock": "latest" }`

`GET /v1/analytics` returns daily analytics (last 30 days by default).

- query: `days` (default `30`, max `365`)
- response: `{ days, daily, global, lastRun }`
- `daily` — one record per UTC day, newest last; the current day is always recomputed from midnight to now on each refresh and its snapshot is overwritten
Expand Down
Loading
Loading