Add listing-only native markets to CoinGecko and GeckoTerminal #1441

Merged
PlasticDigits merged 2 commits from feat/issue-1437-virtual-listing-pairs into main 2026-10-07 12:04:24 +00:00
Owner

Native LUNC and USTC had no priced edges in the CG/GT swap feeds because factory pools use wrapped CW20 legs and mapper fees do not retain principal. This adds the five listing-only markets from #1437 in the existing CG/GT response shapes, with prints translated from real indexed mapper and source-pool events.

The projection uses exact configured pins, positive committed custody, the highest-liquidity exact source pool, BigDecimal scaling, persisted postevent reserves and stable source ids. A separate migration stores authenticated mapper principal/custody; virtual markets never enter factory pairs/swaps, retail routes, CMC, candles, trader accounting, protocol TVL/fees or DeFiLlama. Listing requests issue no LCD calls for virtual markets. Factory GT events and the 5000-row admission cap remain intact.

Ordinary pair/discovery paths reject opaque ids before SQL/LCD. CG real tickers win collisions, including stale factory-map misses; CMC keeps its real-only cache. Recovery deletes the new projections, preserves an explicit database target and omits credentials. Existing #655 fixtures now supply current oracle certification, and #1394 formatting uses the Cargo manifest edition; production pricing/formatting rules were not weakened.

Refs #1437.

  • AC1: five existing-shaped CG markets, pinned currencies, projected stats/cache and fixed pagination order.
  • AC2: principal versus fees, both directions, reversed source order and 6/18 USDT scale.
  • AC3: missing/excluded/zero/uncommitted state fails closed.
  • AC4: indexed orderbook/trades, caps/filters/timestamps and zero virtual LCD requests.
  • AC5: GT pair and native/pinned-USDT asset identities.
  • AC6: real source linkage, postevent reserves, unique event indexes, unchanged factory feeds and exact 5000/5001 boundary.
  • AC7: economic/retail/CMC/DeFiLlama/routing isolation and early opaque-id guards.
  • AC8: pin/spoof/collision/cache protection.
  • AC9: available listing/indexer/frontend regression suites; optional #655 browser check excluded explicitly.
  • Invariants, third-party agent playbook, recovery docs, prepared GT remark and agent checklist updated/crosslinked.
  • Optional pool-table browser acceptance: its attempted run failed on the existing Vite public/chains/chainlist.json import; a separate frontend repair/rerun remains a relevant follow-up.
  • Production deployment, live archive replay and form submission: outside this issue; not performed.

make verify-issue-1437: 13 PASS, 0 FAIL, 0 SKIP, with the same-executable retest of API 10/10, ingestion 3/3 and library 575/575; source fingerprint stayed unchanged. #685, #646, #684, #694, #631 and available #655 checks passed. #1395 and #1394 passed; #1396 and #1392 passed with explicit environment skips. The authenticated runtime fixture additionally passed twice. Normal commit hooks and the tracked-file gitleaks scan passed.

An agent should follow the review checklist, run make verify-issue-1437 in an isolated worktree/disposable PostgreSQL database, then the listed regression targets. Complete runnable checks and fix/retest executed implementation failures. Unavailable items may be explicit SKIP with a reason and unchecked criterion, while marking overall available-check verification PASS WITH SKIPS. The receipt preserves failures/skips and exact evidence scope; source PASS does not claim deployment or crawler acceptance. Apply LV1437-1–LV1437-10.

Two scope details are explicit: genuine distinct indexed fills in one transaction retain distinct prints, while replay never duplicates a source ordinal/swap index; no strict one-print-per-transaction aggregation is claimed. Historical mapper replay requires attested archive bank state at source/predecessor heights; unavailable or unreconciled backing omits the affected projection.

OpenBao bao-exec was invoked from the requested repository, but its vault VPN route was unavailable. Existing authenticated fj/git access was used; no credential or authentication boundary was changed. Public LCD/deployed LocalTerra, host IPv6 and one Compose published-loopback query also remained unavailable as recorded in the receipt.

Native LUNC and USTC had no priced edges in the CG/GT swap feeds because factory pools use wrapped CW20 legs and mapper fees do not retain principal. This adds the five listing-only markets from #1437 in the existing CG/GT response shapes, with prints translated from real indexed mapper and source-pool events. The projection uses exact configured pins, positive committed custody, the highest-liquidity exact source pool, BigDecimal scaling, persisted postevent reserves and stable source ids. A separate migration stores authenticated mapper principal/custody; virtual markets never enter factory pairs/swaps, retail routes, CMC, candles, trader accounting, protocol TVL/fees or DeFiLlama. Listing requests issue no LCD calls for virtual markets. Factory GT events and the 5000-row admission cap remain intact. Ordinary pair/discovery paths reject opaque ids before SQL/LCD. CG real tickers win collisions, including stale factory-map misses; CMC keeps its real-only cache. Recovery deletes the new projections, preserves an explicit database target and omits credentials. Existing #655 fixtures now supply current oracle certification, and #1394 formatting uses the Cargo manifest edition; production pricing/formatting rules were not weakened. Refs #1437. - [x] AC1: five existing-shaped CG markets, pinned currencies, projected stats/cache and fixed pagination order. - [x] AC2: principal versus fees, both directions, reversed source order and 6/18 USDT scale. - [x] AC3: missing/excluded/zero/uncommitted state fails closed. - [x] AC4: indexed orderbook/trades, caps/filters/timestamps and zero virtual LCD requests. - [x] AC5: GT pair and native/pinned-USDT asset identities. - [x] AC6: real source linkage, postevent reserves, unique event indexes, unchanged factory feeds and exact 5000/5001 boundary. - [x] AC7: economic/retail/CMC/DeFiLlama/routing isolation and early opaque-id guards. - [x] AC8: pin/spoof/collision/cache protection. - [x] AC9: available listing/indexer/frontend regression suites; optional #655 browser check excluded explicitly. - [x] Invariants, third-party agent playbook, recovery docs, prepared GT remark and agent checklist updated/crosslinked. - [ ] Optional pool-table browser acceptance: its attempted run failed on the existing Vite `public/chains/chainlist.json` import; a separate frontend repair/rerun remains a relevant follow-up. - [ ] Production deployment, live archive replay and form submission: outside this issue; not performed. `make verify-issue-1437`: **13 PASS, 0 FAIL, 0 SKIP**, with the same-executable retest of API 10/10, ingestion 3/3 and library 575/575; source fingerprint stayed unchanged. #685, #646, #684, #694, #631 and available #655 checks passed. #1395 and #1394 passed; #1396 and #1392 passed with explicit environment skips. The authenticated runtime fixture additionally passed twice. Normal commit hooks and the tracked-file gitleaks scan passed. An agent should follow the [review checklist](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/feat/issue-1437-virtual-listing-pairs/docs/qa/issue-1437/README.md), run `make verify-issue-1437` in an isolated worktree/disposable PostgreSQL database, then the listed regression targets. Complete runnable checks and fix/retest executed implementation failures. Unavailable items may be explicit **SKIP** with a reason and unchecked criterion, while marking overall available-check verification **PASS WITH SKIPS**. The [receipt](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/feat/issue-1437-virtual-listing-pairs/docs/qa/issue-1437/verification.md) preserves failures/skips and exact evidence scope; source PASS does not claim deployment or crawler acceptance. Apply [LV1437-1–LV1437-10](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/feat/issue-1437-virtual-listing-pairs/skills/AGENTS_LISTING_VIRTUAL_PAIRS.md). Two scope details are explicit: genuine distinct indexed fills in one transaction retain distinct prints, while replay never duplicates a source ordinal/swap index; no strict one-print-per-transaction aggregation is claimed. Historical mapper replay requires attested archive bank state at source/predecessor heights; unavailable or unreconciled backing omits the affected projection. OpenBao `bao-exec` was invoked from the requested repository, but its vault VPN route was unavailable. Existing authenticated `fj`/git access was used; no credential or authentication boundary was changed. Public LCD/deployed LocalTerra, host IPv6 and one Compose published-loopback query also remained unavailable as recorded in the receipt.
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!1441
No description provided.