feat(indexer): redacted UTC-day evidence JSON tagged swap/wrap/limit/LP #1319

Merged
PlasticDigits merged 3 commits from issue/1205 into main 2026-09-22 16:50:30 +00:00

Summary

  • Adds GET /api/v1/evidence/daily — UTC calendar-day, redacted protocol activity with surface ∈ {swap, wrap, limit, lp}, actor_hash, keyset pagination, and OpenAPI Evidence tag (#1205).
  • SQL: union of indexed tapes + wrap/unwrap fee rows only; no new ingest, not on LCD-heavy governor.
  • Docs/skills: docs/indexer-invariants.md row, skills/AGENTS_INDEXER_EVIDENCE_DAILY.md, suspicious-activity runbook pointer, make verify-issue-1205.

Acceptance criteria

AC Status
AC1–AC2 Implemented — sorted events + surface/kind sets
AC3–AC4 Implemented — no actor bech32 keys; actor_hash; wrap omits hash
AC5–AC8 Implemented — L10 swap-only; wrap filter; surface allowlist
AC9–AC11 Implemented — 400 matrix + limit clamp + cursor pagination
AC12–AC15 Implemented — OpenAPI path; global router; plain amounts; sqlx binds

Validation

  • make verify-issue-1205 — PASS (static); integration api_evidence_daily not run on this VM (no indexer/.env / Docker Postgres, libssl-dev missing for host cargo build).
  • Gap: Run make setup-indexer-postgres + make verify-issue-1205 (full) or CI indexer integration on merge.

Closes #1205

## Summary - Adds `GET /api/v1/evidence/daily` — UTC calendar-day, redacted protocol activity with `surface` ∈ {swap, wrap, limit, lp}, `actor_hash`, keyset pagination, and OpenAPI **Evidence** tag ([#1205](https://git.cl8y.com/code/cl8y-dex-terraclassic/issues/1205)). - SQL: union of indexed tapes + wrap/unwrap fee rows only; no new ingest, not on LCD-heavy governor. - Docs/skills: `docs/indexer-invariants.md` row, `skills/AGENTS_INDEXER_EVIDENCE_DAILY.md`, suspicious-activity runbook pointer, `make verify-issue-1205`. ## Acceptance criteria | AC | Status | |----|--------| | AC1–AC2 | Implemented — sorted events + surface/kind sets | | AC3–AC4 | Implemented — no actor bech32 keys; `actor_hash`; wrap omits hash | | AC5–AC8 | Implemented — L10 swap-only; wrap filter; surface allowlist | | AC9–AC11 | Implemented — 400 matrix + limit clamp + cursor pagination | | AC12–AC15 | Implemented — OpenAPI path; global router; plain amounts; sqlx binds | ## Validation - `make verify-issue-1205` — **PASS** (static); integration `api_evidence_daily` **not run** on this VM (no `indexer/.env` / Docker Postgres, `libssl-dev` missing for host `cargo build`). - **Gap:** Run `make setup-indexer-postgres` + `make verify-issue-1205` (full) or CI indexer integration on merge. Closes #1205
feat(indexer): redacted UTC-day evidence JSON tagged swap/wrap/limit/LP
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
f4a6e16b2b
Add GET /api/v1/evidence/daily with actor hashing, surface filters,
keyset pagination, OpenAPI Evidence tag, and regression harness for #1205.

Co-authored-by: Cursor <cursoragent@cursor.com>
Author
Owner

drain skip: no occupying job for rebase/fix-pr/CI-wait; remaining continue

drain skip: no occupying job for rebase/fix-pr/CI-wait; remaining continue
fix(indexer): page filtered evidence days and repeated surface keys
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
db48db8573
Alias every UNION arm and include the source primary key in the keyset
so a surface filter that omits swap still decodes and pages. Accept a
single surface value, a comma list, or repeated surface keys.
Author
Owner

drain skip: default autoland requires tip ACCEPT (#77)

drain skip: default autoland requires tip ACCEPT (#77)
Merge branch 'main' into issue/1205
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
b2b26eaa59
PlasticDigits deleted branch issue/1205 2026-09-22 16:50:30 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-dex-terraclassic!1319
No description provided.