matter-labs / foundry-zksync

Fork of Foundry tailored for zkSync environment
Apache License 2.0
299 stars 130 forks source link

Support for `forge inspect` Command #619

Open dutterbutter opened 3 weeks ago

dutterbutter commented 3 weeks ago

Description:

The forge inspect command is currently not supported in foundry-zksync accurately. This command is used for inspecting various details of Solidity contracts, such as ABI, bytecode, storage layout, and other metadata.

Feature Request:

Implement the forge inspect command to enable inspection of contract details within the foundry-zksync environment.


Detailed Information:

Purpose of forge inspect:

The forge inspect command allows users to retrieve specialized information about a smart contract. It supports various fields to inspect.

Supported Fields:

Please find below a checklist of all the available inspect fields. Each field should be implemented and tested to ensure it works correctly within the ZKsync environment. A lot of the fields below are supported but are missing ZKsync specific attributes (e.g. zksolc version used).

Checklist:

Example Usage:


References: