an asset registry that maps our asset ids to external ones #36

Closed
opened 2026-09-15 12:40:14 +00:00 by grenade · 0 comments
Owner

Parent: #6

Scope

A registry in wallet-core from AssetId to display metadata and external identifiers: NEAR Intents nep141:… / 1cs_v1:… ids first, with room for a ramp provider's symbol codes. Shipped as TOML alongside chain profiles; the swap module resolves through it and refuses an asset it cannot map rather than guessing.

Acceptance

Given the live GET /v0/tokens response, every mapped asset resolves to exactly one Intents id, and an unmapped one produces SwapError::UnsupportedPair with the asset named.

Depends on

#18 (chain profiles).

Parent: #6 ## Scope A registry in `wallet-core` from `AssetId` to display metadata and external identifiers: NEAR Intents `nep141:…` / `1cs_v1:…` ids first, with room for a ramp provider's symbol codes. Shipped as TOML alongside chain profiles; the swap module resolves through it and refuses an asset it cannot map rather than guessing. ## Acceptance Given the live `GET /v0/tokens` response, every mapped asset resolves to exactly one Intents id, and an unmapped one produces `SwapError::UnsupportedPair` with the asset named. ## Depends on #18 (chain profiles).
grenade added the child label 2026-09-15 12:41:46 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blackbeard/wallet#36