#solidity #ast #analyzer #smart-contracts #aderyn #foundry #process

aderyn_driver

Rust based Solidity AST analyzer driver

24 releases

new 0.1.2 Jun 6, 2024
0.1.1 Jun 3, 2024
0.0.28 May 29, 2024
0.0.24 Apr 26, 2024
0.0.10 Dec 23, 2023

#2282 in Magic Beans

Download history 155/week @ 2024-02-15 363/week @ 2024-02-22 154/week @ 2024-02-29 193/week @ 2024-03-07 344/week @ 2024-03-14 186/week @ 2024-03-21 130/week @ 2024-03-28 222/week @ 2024-04-04 628/week @ 2024-04-11 188/week @ 2024-04-18 250/week @ 2024-04-25 189/week @ 2024-05-02 298/week @ 2024-05-09 259/week @ 2024-05-16 232/week @ 2024-05-23 437/week @ 2024-05-30

1,356 downloads per month
Used in 2 crates

MIT license

41KB
989 lines



A powerful Solidity static analyzer that takes a bird's eye view over your smart contracts.



Twitter Website Discord

Aderyn Driver

aderyn_driver drives the process of running aderyn over a codebase, utilizing aderyn_core.

Order of operation:

  1. Framework detection.
    • Aderyn uses the compiled AST of smart contracts to analyze them.
    • Foundry and Hardhat projects are supported, and the ASTs are loaded depending on which one is detected.
  2. Build the WorkspaceContext.
    • Upon loading the AST, context is built up within the WorkspaceContext that detectors can access.
  3. Run Detectors on the WorkspaceContext.
    • Each detector is run on the context and issues are stored in each detector.
  4. Report printed.
    • Each detector is passed to the report printer, which prints each found issue in the report.

Dependencies

~34–52MB
~870K SLoC