Skip to content

Add evm token-info command for token metadata and pricing#35

Open
ivpusic wants to merge 1 commit intosim/evm-collectiblesfrom
sim/evm-token-info
Open

Add evm token-info command for token metadata and pricing#35
ivpusic wants to merge 1 commit intosim/evm-collectiblesfrom
sim/evm-token-info

Conversation

@ivpusic
Copy link
Member

@ivpusic ivpusic commented Mar 12, 2026

  • GET /v1/evm/token-info/{address} with --chain-ids (required), --historical-prices, --limit, --offset
  • Key-value text output: chain, symbol, name, decimals, price, total supply, market cap, logo, historical prices
  • Full OpenAPI spec coverage, reuses historicalPrice from balances.go
  • 6 E2E tests: native text/JSON, ERC20, historical prices text/JSON, required flag validation

@cursor
Copy link

cursor bot commented Mar 12, 2026

PR Summary

Low Risk
Adds a new CLI command and E2E tests without changing existing query behavior; risk is mostly around correct flag-to-API parameter mapping and output formatting consistency.

Overview
Adds a new sim evm token-info <address> subcommand that calls GET /v1/evm/token-info/{address} with required --chain-ids plus optional --historical-prices, --limit, and --offset.

Supports both raw JSON output and a new key/value text view (including historical price offsets, market cap, supply, logo) and prints API warnings to stderr; includes E2E coverage for native vs ERC20, JSON vs text, historical prices, and required-flag validation.

Written by Cursor Bugbot for commit d78a42c. Configure here.

@ivpusic ivpusic force-pushed the sim/evm-token-info branch from d78a42c to b393895 Compare March 12, 2026 15:34
@ivpusic ivpusic force-pushed the sim/evm-collectibles branch from 8a633b2 to 991a36a Compare March 12, 2026 15:34
@ivpusic ivpusic force-pushed the sim/evm-token-info branch from b393895 to 755ff88 Compare March 12, 2026 15:39
@ivpusic ivpusic force-pushed the sim/evm-collectibles branch from 991a36a to 2d53c17 Compare March 12, 2026 15:39
@ivpusic ivpusic force-pushed the sim/evm-token-info branch from 755ff88 to e904424 Compare March 12, 2026 16:07
- GET /v1/evm/token-info/{address} with --chain-ids (required), --historical-prices, --limit, --offset
- Key-value text output: chain, symbol, name, decimals, price, total supply, market cap, logo, historical prices
- Full OpenAPI spec coverage, reuses historicalPrice from balances.go
- 6 E2E tests: native text/JSON, ERC20, historical prices text/JSON, required flag validation
@ivpusic ivpusic force-pushed the sim/evm-collectibles branch from a49f933 to d56f07a Compare March 12, 2026 16:10
@ivpusic ivpusic force-pushed the sim/evm-token-info branch from e904424 to 26a1c39 Compare March 12, 2026 16:10
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.

2 participants