Skip to content

feat(forge inspect): add support for inspecting linearization of inheritance graph #10404

Open
@18121A05L2

Description

@18121A05L2

Component

Forge

Describe the feature you would like

Hi Team ,

Today i was going through the concept of Linearization of inheritance graph in solidity and grok has given me a wonderful response - https://grok.com/share/bGVnYWN5_73c3a28c-1d6c-4188-b931-cae873a8d599

Later i thought like , what if we have a feature something like it will lists all the inherited contracts

Raising this feature because of
-> As we are mostly using open source projects like openzeppelin we are inheriting those contracts because they are battle tested , and if know what are the possible contracts under the hood i was going to use , will keep in mind the full scope of the contracts
-> You may think we can go and all the inheritances , that was possible , but consider in future where we have multiple inheritances like a level of 10 , which is possible to check but will be time consuming

forge inspect <ContractAddress> inheritance-graph

May be not immediately , considering for the future this will be a better feature for the developers

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions