Skip to content

Add evm token-holders command with token address as positional arg#36

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

Add evm token-holders command with token address as positional arg#36
ivpusic merged 2 commits intomainfrom
sim/evm-token-holders

Conversation

@ivpusic
Copy link
Member

@ivpusic ivpusic commented Mar 12, 2026

  • GET /v1/evm/token-holders/{chain_id}/{address} with --chain-id (required), --limit, --offset
  • Token address is positional arg, chain-id is a required flag for clarity
  • Table output: WALLET_ADDRESS, BALANCE, FIRST_ACQUIRED, HAS_TRANSFERRED (Y/N)
  • Chain ID validated as numeric
  • 5 E2E tests: text, JSON, pagination, invalid chain-id, required chain-id flag

@cursor
Copy link

cursor bot commented Mar 12, 2026

PR Summary

Low Risk
Low risk: adds a new CLI subcommand and associated output/parsing logic without changing existing API client behavior; main risk is regressions in argument/flag validation or formatting.

Overview
Adds a new sim evm token-holders <token_address> command that calls GET /v1/evm/token-holders/{chain_id}/{address} with required --chain-id plus optional --limit and --offset pagination.

The command supports -o json passthrough or a table view (wallet, balance, first acquired, and a Y/N transfer flag) and validates --chain-id is numeric.

Includes end-to-end tests covering text output, JSON output, pagination via next_offset, invalid --chain-id, and missing required --chain-id.

Written by Cursor Bugbot for commit d12b226. 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-token-holders branch from d12b226 to 2381d5d 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-token-holders branch from 2381d5d to 2eaa889 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-token-holders branch 2 times, most recently from 07686bb to 99a071c Compare March 12, 2026 16:10
@ivpusic ivpusic force-pushed the sim/evm-token-holders branch from 99a071c to ce9e6ce 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-token-holders branch from ce9e6ce to 2ee6e94 Compare March 13, 2026 10:45
@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-token-holders branch from 2ee6e94 to 8312c47 Compare March 13, 2026 10:53
@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-token-holders branch 2 times, most recently from d9b5764 to 3a65dcb Compare March 13, 2026 12:09
@ivpusic ivpusic force-pushed the sim/evm-token-info branch 2 times, most recently from 0297e4e to 57fce8c Compare March 13, 2026 16:08
@ivpusic ivpusic force-pushed the sim/evm-token-holders branch from 3a65dcb to 170cff2 Compare March 13, 2026 16:08
@ivpusic ivpusic force-pushed the sim/evm-token-info branch from 57fce8c to c3465fb Compare March 13, 2026 16:15
@ivpusic ivpusic force-pushed the sim/evm-token-holders branch 2 times, most recently from 1022e8d to 227daee Compare 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
- GET /v1/evm/token-holders/{chain_id}/{address} with --chain-id (required), --limit, --offset
- Token address is positional arg, chain-id is a required flag for clarity
- Table output: WALLET_ADDRESS, BALANCE, FIRST_ACQUIRED, HAS_TRANSFERRED (Y/N)
- Chain ID validated as numeric
- 5 E2E tests: text, JSON, pagination, invalid chain-id, required chain-id flag
@ivpusic ivpusic changed the base branch from sim/evm-token-info to graphite-base/36 March 13, 2026 16:26
@ivpusic ivpusic force-pushed the sim/evm-token-holders branch from 227daee to 17b200a Compare March 13, 2026 16:26
@ivpusic ivpusic changed the base branch from graphite-base/36 to main March 13, 2026 16:26
@ivpusic ivpusic merged commit 711c99d 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