Skip to content

feat(api): support native asset metadata - #1

Open
Qumeric wants to merge 3 commits into
lighter_evmfrom
valery/asset-decimals-optional
Open

Qumeric wants to merge 3 commits into
lighter_evmfrom
valery/asset-decimals-optional

Conversation

@Qumeric

@Qumeric Qumeric commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Asset responses include l1_decimals or evm_decimals depending on canonical_domain: l1_decimals for L1-native (1) assets, evm_decimals for EVM-native (3) assets, and neither for Core-native (2) or unregistered (0) assets. Linking a wrapper only sets evm_token or l1_address, so the other decimals field never appears; the wrapper uses the canonical decimals.

This makes l1_decimals optional and adds evm_decimals, canonical_domain and evm_token as optional typed fields in the OpenAPI schema, the generated Asset model and docs/Asset.md. Zero decimals stay distinct from a missing field. It carries over elliottech#176, retargeted to lighter_evm, and spells out in the field descriptions when each field is present.

Matches axiom-crypto/zklighter-perps#225 and #226.

🤖 Generated with Claude Code

Qumeric and others added 3 commits September 17, 2026 20:04
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant