Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forc selectors output for functions, events and errors #6778

Open
zees-dev opened this issue Dec 8, 2024 · 0 comments
Open

forc selectors output for functions, events and errors #6778

zees-dev opened this issue Dec 8, 2024 · 0 comments
Labels
enhancement New feature or request forc good first issue Good for newcomers triage This issue was opened with a template and needs to be triaged by code owners.

Comments

@zees-dev
Copy link
Contributor

zees-dev commented Dec 8, 2024

Related Component

another forc plugin

Problem you are trying to solve

There is a need for a helpful tool to get the selectors for functions, events and errors of a contract.

Initially this could point to a:

  • point to a local ABI
  • point to a local contract (.bin)
  • pre-deployed and/or verified contract

Inspiration: https://x.com/gakonst/status/1776765333442863394
Equivalent foundry CLI: https://book.getfoundry.sh/reference/cli/forge/selectors/list

  • Initially could start of with listing the function selectors, outputting to TUI, with optional JSON and table format output.
  • This tool could later be expanded to include reverse-searching capabilities (from an API/db) of function, event or error.

This CLI would be part of the forc-plugins package.

Related prior work

@zees-dev zees-dev added enhancement New feature or request triage This issue was opened with a template and needs to be triaged by code owners. forc good first issue Good for newcomers labels Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request forc good first issue Good for newcomers triage This issue was opened with a template and needs to be triaged by code owners.
Projects
None yet
Development

No branches or pull requests

1 participant