Skip to content

Add sim evm supported-protocols command#52

Merged
ivpusic merged 1 commit intomainfrom
ivan/gro-227-add-new-sim-supported-protocols-endpoint-to-dune-cli
Apr 20, 2026
Merged

Add sim evm supported-protocols command#52
ivpusic merged 1 commit intomainfrom
ivan/gro-227-add-new-sim-supported-protocols-endpoint-to-dune-cli

Conversation

@ivpusic
Copy link
Copy Markdown
Member

@ivpusic ivpusic commented Apr 20, 2026

Summary

  • Adds dune sim evm supported-protocols, wrapping GET /v1/evm/defi/supported-protocols.
  • Exposes --include-preview-chains / --include-preview-protocols flags; defaults to no query params.
  • Text output lists each protocol family with its chains (* suffix marks preview status) and recognized sub-protocols; -o json passes the raw response through.

Test plan

  • go build ./...
  • go vet ./...
  • go test ./... (Sim E2E tests skip without DUNE_SIM_API_KEY)
  • go run ./cmd sim evm supported-protocols — verified text + JSON output against the live API

Wires up GET /v1/evm/defi/supported-protocols as
`dune sim evm supported-protocols`, with --include-preview-chains /
--include-preview-protocols flags and text + JSON output. The text
table lists each protocol family, its chains (with '*' marking
preview status) and recognized sub-protocols, letting users discover
what the defi-positions endpoint can return.

Closes GRO-227.
@cursor
Copy link
Copy Markdown

cursor Bot commented Apr 20, 2026

PR Summary

Low Risk
Additive CLI surface area that calls a new read-only API endpoint; main risk is output/flag behavior changes and reliance on upstream API response shape.

Overview
Adds a new dune sim evm supported-protocols CLI command that wraps GET /v1/evm/defi/supported-protocols to list DeFi protocol families, supported chains, and sub-protocols.

The command supports --include-preview-chains and --include-preview-protocols query flags, outputs either a formatted table (marking preview chains with *) or raw JSON via -o json, and is wired into the sim/sim evm help text and command tree with basic E2E-style tests.

Reviewed by Cursor Bugbot for commit 490ed85. Configure here.

@ivpusic ivpusic merged commit 248e655 into main Apr 20, 2026
3 checks passed
@ivpusic ivpusic deleted the ivan/gro-227-add-new-sim-supported-protocols-endpoint-to-dune-cli branch April 20, 2026 08: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