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

aderyn_driver

Rust based Solidity AST analyzer driver

18 releases

new 0.0.25 May 8, 2024
0.0.24 Apr 26, 2024
0.0.18 Mar 26, 2024
0.0.15 Feb 28, 2024
0.0.10 Dec 23, 2023

#2484 in Magic Beans

Download history 105/week @ 2024-01-15 114/week @ 2024-01-22 96/week @ 2024-01-29 74/week @ 2024-02-05 121/week @ 2024-02-12 287/week @ 2024-02-19 288/week @ 2024-02-26 91/week @ 2024-03-04 258/week @ 2024-03-11 280/week @ 2024-03-18 173/week @ 2024-03-25 152/week @ 2024-04-01 468/week @ 2024-04-08 438/week @ 2024-04-15 264/week @ 2024-04-22 84/week @ 2024-04-29

1,266 downloads per month
Used in 2 crates

MIT license

24KB
509 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

~6–15MB
~201K SLoC