fix(frontend): show LUNC/USTC instead of uluna/uusd in pickers #1142

Merged
PlasticDigits merged 2 commits from issue-630-native-lunc-ustc-labels into main 2026-08-25 06:19:13 +00:00
PlasticDigits commented 2026-08-25 06:04:05 +00:00 (Migrated from gitlab.com)

Summary

  • Retail token pickers (useTokenDisplayInfo / TokenSearchSelect / TokenDisplay / TokenIdentity) now resolve LUNC / USTC from the static registry before indexer symbol, so a catalog that still stores uluna / uusd (or a spoofed ticker) cannot leak denoms next to cLUNC / cUSTC.
  • Shared helper registryProductSymbol is used by both the hook and getTokenDisplaySymbol so precedence cannot drift. Token ids, data-testid, balances, and execute stay uluna / uusd.
  • Indexer first-insert writes retail labels for known bank denoms only; a one-time SQL repair updates existing symbol=uluna / uusd rows. Unknown denoms stay denom/denom. Wrap CW20 rows are untouched.

Closes #630

Test plan

  • make verify-issue-630 (Vitest display/search/hook/picker + #541 copy + indexer asset_resolver lib + docs/skills)
  • Re-run make verify-issue-630 (second pass)
  • LocalTerra Swap (disconnected): You Pay trigger cLUNC, You Receive LUNC; listbox option token-option-uusd visible text USTC; selecting it sets the trigger to USTC
  • Reviewer: Swap You Pay / You Receive on phone + desktop — no uluna / uusd as visible ticker text
  • Reviewer: Pool one-sided + Pay invoice + Mint labels match
  • Reviewer: search LUNC / uluna / USTC / uusd still finds the native row
  • Reviewer: Create Pair still excludes natives (#542)
  • After indexer deploy/migrate: GET /api/v1/tokens reports symbol=LUNC / USTC for those denoms
## Summary - Retail token pickers (`useTokenDisplayInfo` / `TokenSearchSelect` / `TokenDisplay` / `TokenIdentity`) now resolve **LUNC** / **USTC** from the static registry **before** indexer `symbol`, so a catalog that still stores `uluna` / `uusd` (or a spoofed ticker) cannot leak denoms next to **cLUNC** / **cUSTC**. - Shared helper `registryProductSymbol` is used by both the hook and `getTokenDisplaySymbol` so precedence cannot drift. Token **ids**, `data-testid`, balances, and execute stay `uluna` / `uusd`. - Indexer first-insert writes retail labels for known bank denoms only; a one-time SQL repair updates existing `symbol=uluna` / `uusd` rows. Unknown denoms stay denom/denom. Wrap CW20 rows are untouched. Closes #630 ## Test plan - [x] `make verify-issue-630` (Vitest display/search/hook/picker + #541 copy + indexer `asset_resolver` lib + docs/skills) - [x] Re-run `make verify-issue-630` (second pass) - [x] LocalTerra Swap (disconnected): You Pay trigger **cLUNC**, You Receive **LUNC**; listbox option `token-option-uusd` visible text **USTC**; selecting it sets the trigger to **USTC** - [ ] Reviewer: Swap You Pay / You Receive on phone + desktop — no `uluna` / `uusd` as **visible** ticker text - [ ] Reviewer: Pool one-sided + Pay invoice + Mint labels match - [ ] Reviewer: search `LUNC` / `uluna` / `USTC` / `uusd` still finds the native row - [ ] Reviewer: Create Pair still excludes natives (#542) - [ ] After indexer deploy/migrate: `GET /api/v1/tokens` reports `symbol=LUNC` / `USTC` for those denoms
PlasticDigits commented 2026-08-25 06:19:11 +00:00 (Migrated from gitlab.com)

added 11 commits

  • 10bf628c...81d39151 - 10 commits from branch main
  • b4be84ab - merge origin/main into issue-630-native-lunc-ustc-labels

Compare with previous version

added 11 commits <ul><li>10bf628c...81d39151 - 10 commits from branch <code>main</code></li><li>b4be84ab - merge origin/main into issue-630-native-lunc-ustc-labels</li></ul> [Compare with previous version](/PlasticDigits/cl8y-dex-terraclassic/-/merge_requests/424/diffs?diff_id=1981416456&start_sha=10bf628c3d2a166fba59f13790f670eb6aa06d91)
PlasticDigits commented 2026-08-25 06:19:13 +00:00 (Migrated from gitlab.com)

mentioned in commit d7050d853c

mentioned in commit d7050d853cb14fdce1eec9ca3891ea883694b5da
PlasticDigits (Migrated from gitlab.com) merged commit d7050d853c into main 2026-08-25 06:19:13 +00:00
PlasticDigits commented 2026-08-25 06:29:19 +00:00 (Migrated from gitlab.com)

mentioned in issue #629

mentioned in issue #629
PlasticDigits commented 2026-08-25 06:29:20 +00:00 (Migrated from gitlab.com)

mentioned in issue #630

mentioned in issue #630
PlasticDigits commented 2026-08-25 06:29:21 +00:00 (Migrated from gitlab.com)

mentioned in issue #631

mentioned in issue #631
PlasticDigits commented 2026-08-25 06:29:22 +00:00 (Migrated from gitlab.com)

mentioned in issue #632

mentioned in issue #632
PlasticDigits commented 2026-08-25 06:29:44 +00:00 (Migrated from gitlab.com)

mentioned in issue #638

mentioned in issue #638
PlasticDigits commented 2026-08-25 06:30:01 +00:00 (Migrated from gitlab.com)

mentioned in issue #627

mentioned in issue #627
PlasticDigits commented 2026-08-25 06:30:02 +00:00 (Migrated from gitlab.com)

mentioned in issue #526

mentioned in issue #526
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!1142
No description provided.