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

aderyn_driver

Rust based Solidity AST analyzer driver

27 releases

0.1.9 Aug 5, 2024
0.1.4 Jun 24, 2024
0.0.28 May 29, 2024
0.0.24 Apr 26, 2024
0.0.10 Dec 23, 2023

#15 in #foundry

Download history 79/week @ 2024-06-28 78/week @ 2024-07-05 40/week @ 2024-07-12 40/week @ 2024-07-19 145/week @ 2024-07-26 199/week @ 2024-08-02 83/week @ 2024-08-09 68/week @ 2024-08-16 57/week @ 2024-08-23 60/week @ 2024-08-30 33/week @ 2024-09-06 40/week @ 2024-09-13 113/week @ 2024-09-20 78/week @ 2024-09-27 58/week @ 2024-10-04 64/week @ 2024-10-11

317 downloads per month
Used in 2 crates

MIT license

44KB
1K SLoC



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–50MB
~894K SLoC