Skip to content

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

Merged
ivpusic merged 2 commits intomainfrom
sim/evm-token-info
Mar 13, 2026
Merged

Add evm token-info command for token metadata and pricing#35
ivpusic merged 2 commits intomainfrom
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
@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
@ivpusic ivpusic force-pushed the sim/evm-collectibles branch from d56f07a to b9114b7 Compare March 13, 2026 10:41
@ivpusic ivpusic force-pushed the sim/evm-token-info branch from 26a1c39 to b06aca0 Compare March 13, 2026 10:41
@ivpusic ivpusic force-pushed the sim/evm-token-info branch from b06aca0 to ede65a1 Compare March 13, 2026 10:45
@ivpusic ivpusic force-pushed the sim/evm-collectibles branch 2 times, most recently from 582a079 to f7e1b5d Compare March 13, 2026 10:53
@ivpusic ivpusic force-pushed the sim/evm-token-info branch from ede65a1 to 4edad80 Compare March 13, 2026 10:53
@ivpusic ivpusic force-pushed the sim/evm-collectibles branch from f7e1b5d to e4db1df Compare March 13, 2026 10:56
@ivpusic ivpusic force-pushed the sim/evm-token-info branch from 4edad80 to 2493ca9 Compare March 13, 2026 10:56
@ivpusic ivpusic force-pushed the sim/evm-collectibles branch from e4db1df to 793d226 Compare March 13, 2026 12:09
@ivpusic ivpusic force-pushed the sim/evm-token-info branch from 2493ca9 to 0297e4e Compare March 13, 2026 12:09
@ivpusic ivpusic force-pushed the sim/evm-collectibles branch from 793d226 to 35ca86e Compare March 13, 2026 16:08
@ivpusic ivpusic force-pushed the sim/evm-token-info branch 2 times, most recently from 57fce8c to c3465fb Compare March 13, 2026 16:15
@ivpusic ivpusic force-pushed the sim/evm-collectibles branch from 35ca86e to f1358db Compare March 13, 2026 16:15
- 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 changed the base branch from sim/evm-collectibles to graphite-base/35 March 13, 2026 16:20
@ivpusic ivpusic force-pushed the sim/evm-token-info branch from c3465fb to 2035274 Compare March 13, 2026 16:20
@ivpusic ivpusic changed the base branch from graphite-base/35 to main March 13, 2026 16:20
@ivpusic ivpusic merged commit 5011dac into main Mar 13, 2026
2 checks passed
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