Skip to content

forc selectors output for functions, events and errors #6778

Open
@zees-dev

Description

@zees-dev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions