Skip to content

Migrate solidity parsing to slang #3683

@dk1a

Description

@dk1a

contractToInterface and a couple related files use @solidity-parser/parser
They can be refactored to use @nomicfoundation/slang instead

  • I mention the main issue of solidity-parser lacking unparse in fix(common): explicit error in contractToInterface #3660 - this particularly complicates handling static array types
  • slang has better architecture, no stateMutability hacks for address payable as in solidity-parser
  • better version control - solidity version is just a Parser argument
  • semantic analysis for going through the whole project tree much more easily, if that becomes desirable for e.g. system inheritance

I can also do the PR if you approve the change

(not relevant if you intend to move away from solidity parsing entirely, though I'd be curious about the new approach)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions