Design: Limit book surfacing strategy (indexer proxy vs dApp LCD client) #70

Closed
opened 2026-04-09 03:23:51 +00:00 by PlasticDigits · 7 comments
PlasticDigits commented 2026-04-09 03:23:51 +00:00 (Migrated from gitlab.com)

Type

needs-design

Evidence

  • docs/limit-orders.md — on-chain book via LCD; indexer HTTP does not proxy head/order queries today

Rationale

Choose Option A (indexer wraps LCD) vs B (frontend LCD module) before build.

Dependencies

None.

Acceptance criteria

  • Decision recorded; linked from docs/limit-orders.md

Epic

#58

## Type **needs-design** ## Evidence - `docs/limit-orders.md` — on-chain book via LCD; indexer HTTP does not proxy head/order queries today ## Rationale Choose Option A (indexer wraps LCD) vs B (frontend LCD module) before build. ## Dependencies None. ## Acceptance criteria - [ ] Decision recorded; linked from `docs/limit-orders.md` ## Epic #58
PlasticDigits commented 2026-04-09 03:23:51 +00:00 (Migrated from gitlab.com)

marked this issue as related to #58

marked this issue as related to #58
PlasticDigits commented 2026-04-09 03:23:53 +00:00 (Migrated from gitlab.com)

mentioned in issue #71

mentioned in issue #71
PlasticDigits commented 2026-04-09 03:23:54 +00:00 (Migrated from gitlab.com)

marked this issue as related to #71

marked this issue as related to #71
PlasticDigits commented 2026-04-13 04:51:14 +00:00 (Migrated from gitlab.com)

Implemented ADR 0002 (indexer LCD proxy for on-chain book) and linked it from docs/limit-orders.md. Book surfacing is now: GET /api/v1/pairs/{addr}/order-book-head and /limit-book-shallow plus dApp consumption on /limits. @brouie please verify the ADR and doc links match product expectations.

Implemented ADR 0002 (indexer LCD proxy for on-chain book) and linked it from `docs/limit-orders.md`. Book surfacing is now: GET `/api/v1/pairs/{addr}/order-book-head` and `/limit-book-shallow` plus dApp consumption on `/limits`. @brouie please verify the ADR and doc links match product expectations.
PlasticDigits commented 2026-04-13 04:51:46 +00:00 (Migrated from gitlab.com)

mentioned in issue #58

mentioned in issue #58
Brouie commented 2026-04-20 06:00:06 +00:00 (Migrated from gitlab.com)

@PlasticDigits Verified on current main. Acceptance criteria:

  • Decision recorded; linked from docs/limit-orders.md: docs/adr/0002-limit-book-surfacing.md present, Status: Accepted. Decision: indexer LCD proxy (Option A) chosen over frontend LCD client. Endpoints defined: GET /api/v1/pairs/{addr}/order-book-head and /limit-book-shallow. Governance pause uses direct LCD query (IsPaused) for UX honesty. Non-goals, consequences, and links all documented.

limit-orders.md references ADR 0002 in 3 places: line 9 (resting limits section), line 75 (design record), line 106 (indexer HTTP endpoints).

Option A (indexer wraps LCD) is the chosen path, well-documented with clear rationale. Closing.

@PlasticDigits Verified on current main. Acceptance criteria: - [x] Decision recorded; linked from docs/limit-orders.md: docs/adr/0002-limit-book-surfacing.md present, Status: Accepted. Decision: indexer LCD proxy (Option A) chosen over frontend LCD client. Endpoints defined: GET /api/v1/pairs/{addr}/order-book-head and /limit-book-shallow. Governance pause uses direct LCD query (IsPaused) for UX honesty. Non-goals, consequences, and links all documented. limit-orders.md references ADR 0002 in 3 places: line 9 (resting limits section), line 75 (design record), line 106 (indexer HTTP endpoints). Option A (indexer wraps LCD) is the chosen path, well-documented with clear rationale. Closing.
Brouie (Migrated from gitlab.com) closed this issue 2026-04-20 06:00:10 +00:00
Brouie commented 2026-04-20 07:26:41 +00:00 (Migrated from gitlab.com)

mentioned in issue #100

mentioned in issue #100
Sign in to join this conversation.
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#70
No description provided.