Repo Added
|
Files
964
|
Badge
README BADGES
|
push
github
feat: Detect delegateCall (#2720) * feat: extract unique recipients and analyse them individually * refactor: move recipient extraction logic to a new utility module and update RecipientAnalysisService to use it * refactor: extract mapping logic for recipient analysis results into a new utility function * fix: formatting * fix: linter errors * Revert "refactor: extract mapping logic for recipient analysis results into a new utility function" This reverts commit 9c87402fc. * test: remove redundant tests for mapToAnalysisResult * feat: add Safe Shield analysis entities and schemas This commit introduces a comprehensive set of entities and schemas for the Safe Shield security analysis system. New files include definitions for analysis results, API request and response structures, various status codes (recipient, contract, bridge, threat), and severity levels. These additions provide a structured approach to analyzing transaction security across different entities, enhancing the overall functionality of the Safe Shield module. * test: add comprehensive unit tests for analysis results, API schemas, severity, and status entities * refactor: split StatusGroup into separate enums for recipient + contract * fix: linter issues * fix: import types * refactor: rename AnyStatus to AnalysisStatus and update related schemas * refactor: rename files for analysis request and response schemas for better clarity * refactor: use z.enum instead of z.nativeEnum * refactor: simplify Severity enum and remove unused functions * test: add builders and refactor tests * refactor: replace builder classes with function-based builders for analysis requests, responses, and results * refactor: remove index file for builders * refactor: delete index file for entities * refactor: convert BridgeStatus from enum to const array and update related tests * refactor: convert ContractStatus from enum to const array and update related test... (continued)
3794 of 4672 branches covered (81.21%)
Branch coverage included in aggregate %.
25 of 25 new or added lines in 3 files covered. (100.0%)
2 existing lines in 1 file now uncovered.12687 of 13805 relevant lines covered (91.9%)
525.56 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|