Skip to content

Commit

Permalink
Merge dev
Browse files Browse the repository at this point in the history
  • Loading branch information
TilakMaddy committed Oct 10, 2024
2 parents 5441dbf + 6939aa5 commit 30ae055
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 41 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions aderyn/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aderyn"
version = "0.3.0"
version = "0.3.2"
edition = "2021"
authors = ["Cyfrin <[email protected]>"]
description = "Rust based Solidity AST analyzer"
Expand All @@ -10,7 +10,7 @@ default-run = "aderyn"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
aderyn_driver = { path = "../aderyn_driver", version = "0.3.0" }
aderyn_driver = { path = "../aderyn_driver", version = "0.3.2" }
clap = { version = "4.4.6", features = ["derive"] }
reqwest = { version = "0.12.2", default-features = false, features = ["blocking", "json", "rustls-tls"] }
semver = "1.0.22"
Expand Down
2 changes: 1 addition & 1 deletion aderyn_core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aderyn_core"
version = "0.3.0"
version = "0.3.2"
edition = "2021"
authors = ["Cyfrin <[email protected]>"]
description = "Rust based Solidity AST analyzer backend"
Expand Down
18 changes: 8 additions & 10 deletions aderyn_core/src/detect/detector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pub(crate) enum IssueDetectorNamePool {
IncorrectUseOfModifier,
EmitAfterExternalCall,
StateChangeAfterExternalCall,
StateVariableCouldBeDeclaredImmutable,
StateVariableCouldBeImmutable,
MultiplePlaceholders,
StateVariableChangesWithoutEvents,
MissingInheritance,
Expand All @@ -141,7 +141,7 @@ pub(crate) enum IssueDetectorNamePool {
CentralizationRisk,
SolmateSafeTransferLib,
HashCollisionDueToAbiEncodePacked,
SignatureMalleabilityDueToRawEcrecover,
RawEcrecover,
DeprecatedOzFunctions,
UnsafeERC20Functions,
UnspecificSolidityPragma,
Expand Down Expand Up @@ -189,7 +189,7 @@ pub(crate) enum IssueDetectorNamePool {
UncheckedReturn,
DangerousUnaryOperator,
TautologyOrContradiction,
DangerousStrictEquailtyOnContractBalance,
StrictEquailtyCheckOnContractBalance,
SignedStorageArray,
RedundantStatements,
PublicVariableReadInExternalContext,
Expand All @@ -207,7 +207,7 @@ pub(crate) enum IssueDetectorNamePool {
UninitializedLocalVariable,
ReturnBomb,
OutOfOrderRetryable,
StateVariableCouldBeDeclaredConstant,
StateVariableCouldBeConstant,
// NOTE: `Undecided` will be the default name (for new bots).
// If it's accepted, a new variant will be added to this enum before normalizing it in aderyn
Undecided,
Expand All @@ -226,7 +226,7 @@ pub fn request_issue_detector_by_name(detector_name: &str) -> Option<Box<dyn Iss
IssueDetectorNamePool::IncorrectUseOfModifier => {
Some(Box::<IncorrectUseOfModifierDetector>::default())
}
IssueDetectorNamePool::StateVariableCouldBeDeclaredImmutable => {
IssueDetectorNamePool::StateVariableCouldBeImmutable => {
Some(Box::<StateVariableCouldBeImmutableDetector>::default())
}
IssueDetectorNamePool::MultiplePlaceholders => {
Expand All @@ -243,7 +243,7 @@ pub fn request_issue_detector_by_name(detector_name: &str) -> Option<Box<dyn Iss
}
IssueDetectorNamePool::UnusedImport => Some(Box::<UnusedImportDetector>::default()),
IssueDetectorNamePool::VoidConstructor => Some(Box::<VoidConstructorDetector>::default()),
IssueDetectorNamePool::StateVariableCouldBeDeclaredConstant => {
IssueDetectorNamePool::StateVariableCouldBeConstant => {
Some(Box::<StateVariableCouldBeConstantDetector>::default())
}
IssueDetectorNamePool::LiteralInsteadOfConstant => {
Expand Down Expand Up @@ -302,9 +302,7 @@ pub fn request_issue_detector_by_name(detector_name: &str) -> Option<Box<dyn Iss
IssueDetectorNamePool::HashCollisionDueToAbiEncodePacked => {
Some(Box::<AvoidAbiEncodePackedDetector>::default())
}
IssueDetectorNamePool::SignatureMalleabilityDueToRawEcrecover => {
Some(Box::<EcrecoverDetector>::default())
}
IssueDetectorNamePool::RawEcrecover => Some(Box::<EcrecoverDetector>::default()),
IssueDetectorNamePool::DeprecatedOzFunctions => {
Some(Box::<DeprecatedOZFunctionsDetector>::default())
}
Expand Down Expand Up @@ -421,7 +419,7 @@ pub fn request_issue_detector_by_name(detector_name: &str) -> Option<Box<dyn Iss
IssueDetectorNamePool::TautologyOrContradiction => {
Some(Box::<TautologyOrContraditionDetector>::default())
}
IssueDetectorNamePool::DangerousStrictEquailtyOnContractBalance => {
IssueDetectorNamePool::StrictEquailtyCheckOnContractBalance => {
Some(Box::<DangerousStrictEqualityOnBalanceDetector>::default())
}
IssueDetectorNamePool::SignedStorageArray => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl IssueDetector for DangerousStrictEqualityOnBalanceDetector {
}

fn name(&self) -> String {
IssueDetectorNamePool::DangerousStrictEquailtyOnContractBalance.to_string()
IssueDetectorNamePool::StrictEquailtyCheckOnContractBalance.to_string()
}
}

Expand Down
2 changes: 1 addition & 1 deletion aderyn_core/src/detect/low/ecrecover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl IssueDetector for EcrecoverDetector {
}

fn name(&self) -> String {
format!("{}", IssueDetectorNamePool::SignatureMalleabilityDueToRawEcrecover)
format!("{}", IssueDetectorNamePool::RawEcrecover)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl IssueDetector for StateVariableCouldBeConstantDetector {
}

fn name(&self) -> String {
format!("{}", IssueDetectorNamePool::StateVariableCouldBeDeclaredConstant)
format!("{}", IssueDetectorNamePool::StateVariableCouldBeConstant)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl IssueDetector for StateVariableCouldBeImmutableDetector {
}

fn name(&self) -> String {
format!("{}", IssueDetectorNamePool::StateVariableCouldBeDeclaredImmutable)
format!("{}", IssueDetectorNamePool::StateVariableCouldBeImmutable)
}
}

Expand Down
4 changes: 2 additions & 2 deletions aderyn_driver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aderyn_driver"
version = "0.3.0"
version = "0.3.2"
edition = "2021"
authors = ["Cyfrin <[email protected]>"]
description = "Rust based Solidity AST analyzer driver"
Expand All @@ -9,7 +9,7 @@ license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
aderyn_core = { path = "../aderyn_core", version = "0.3.0" }
aderyn_core = { path = "../aderyn_core", version = "0.3.2" }
rayon = "1.8.0"
cyfrin-foundry-compilers = { version = "0.3.20-aderyn", features = ["svm-solc"] }
serde_json = { version = "1.0.96", features = ["preserve_order"] }
Expand Down
6 changes: 3 additions & 3 deletions aderyn_py/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aderyn_py"
version = "0.3.0"
version = "0.3.2"
edition = "2021"
authors = ["Cyfrin <[email protected]>"]
description = "Rust based Solidity AST analyzer python bindings"
Expand All @@ -14,10 +14,10 @@ name = "aderynpy"
crate-type = ["cdylib"]

[dependencies]
aderyn_driver = { path = "../aderyn_driver", version = "0.3.0" }
aderyn_driver = { path = "../aderyn_driver", version = "0.3.2" }
field_access = "0.1.8"

[dependencies.pyo3]
version = "0.22.2"
# "abi3-py38" tells pyo3 (and maturin) to build using the stable ABI with minimum Python version 3.8
features = ["abi3-py38"]
features = ["abi3-py38"]
2 changes: 1 addition & 1 deletion reports/adhoc-sol-files-highs-only-report.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions reports/report.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions reports/report.sarif

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 30ae055

Please sign in to comment.