From 0eb2fac59bbe5e72d5ea250ac3a1aca5efacd095 Mon Sep 17 00:00:00 2001 From: Jacob Homanics Date: Mon, 27 May 2024 01:51:39 -0500 Subject: [PATCH] added metrics for decoder --- audit-files/commit-e347146/metrics.html | 295 ++++++++++++++++++++++++ audit-files/commit-e347146/metrics.md | 295 ++++++++++++++++++++++++ 2 files changed, 590 insertions(+) create mode 100644 audit-files/commit-e347146/metrics.html create mode 100644 audit-files/commit-e347146/metrics.md diff --git a/audit-files/commit-e347146/metrics.html b/audit-files/commit-e347146/metrics.html new file mode 100644 index 0000000..1d5a57c --- /dev/null +++ b/audit-files/commit-e347146/metrics.html @@ -0,0 +1,295 @@ + +[get in touch with Consensys Diligence](https://consensys.io/diligence)
+ +[[ ๐ŸŒ ](https://consensys.io/diligence) [ ๐Ÿ“ฉ ](mailto:diligence@consensys.net) [ ๐Ÿ”ฅ ](https://consensys.io/diligence/tools/)] +

+ + + +# Solidity Metrics for 'CLI' + +## Table of contents + +- [Scope](#t-scope) + - [Source Units in Scope](#t-source-Units-in-Scope) + - [Deployable Logic Contracts](#t-deployable-contracts) + - [Out of Scope](#t-out-of-scope) + - [Excluded Source Units](#t-out-of-scope-excluded-source-units) + - [Duplicate Source Units](#t-out-of-scope-duplicate-source-units) + - [Doppelganger Contracts](#t-out-of-scope-doppelganger-contracts) +- [Report Overview](#t-report) + - [Risk Summary](#t-risk) + - [Source Lines](#t-source-lines) + - [Inline Documentation](#t-inline-documentation) + - [Components](#t-components) + - [Exposed Functions](#t-exposed-functions) + - [StateVariables](#t-statevariables) + - [Capabilities](#t-capabilities) + - [Dependencies](#t-package-imports) + - [Totals](#t-totals) + +## Scope + +This section lists files that are in scope for the metrics report. + +- **Project:** `'CLI'` +- **Included Files:** + - `` +- **Excluded Paths:** + - `` +- **File Limit:** `undefined` + - **Exclude File list Limit:** `undefined` + +- **Workspace Repository:** `unknown` (`undefined`@`undefined`) + +### Source Units in Scope + +Source Units Analyzed: **`1`**
+Source Units in Scope: **`1`** (**100%**) + +| Type | File | Logic Contracts | Interfaces | Lines | nLines | nSLOC | Comment Lines | Complex. Score | Capabilities | +| ---- | ------ | --------------- | ---------- | ----- | ------ | ----- | ------------- | -------------- | ------------ | +| ๐Ÿ“ | GitcoinPassportDecoder.sol | 1 | **** | 468 | 460 | 253 | 128 | 181 | **ฮฃ** | +| ๐Ÿ“ | **Totals** | **1** | **** | **468** | **460** | **253** | **128** | **181** | **ฮฃ** | + + +Legend: [โž•] + + + + +##### Deployable Logic Contracts +Total: 1 +* ๐Ÿ“ `GitcoinPassportDecoder` + + + +#### Out of Scope + +##### Excluded Source Units + +Source Units Excluded: **`0`** + +[โž•] + + + +##### Duplicate Source Units + +Duplicate Source Units Excluded: **`0`** + +[โž•] + + +##### Doppelganger Contracts + +Doppelganger Contracts: **`0`** + +[โž•] + + + +## Report + +### Overview + +The analysis finished with **`0`** errors and **`0`** duplicate files. + + + + + +#### Risk + +
+ +
+ +#### Source Lines (sloc vs. nsloc) + +
+ +
+ +#### Inline Documentation + +- **Comment-to-Source Ratio:** On average there are`2.04` code lines per comment (lower=better). +- **ToDo's:** `0` + +#### Components + +| ๐Ÿ“Contracts | ๐Ÿ“šLibraries | ๐Ÿ”Interfaces | ๐ŸŽจAbstract | +| ------------- | ----------- | ------------ | ---------- | +| 1 | 0 | 0 | 0 | + +#### Exposed Functions + +This section lists functions that are explicitly declared public or payable. Please note that getter methods for public stateVars are not included. + +| ๐ŸŒPublic | ๐Ÿ’ฐPayable | +| ---------- | --------- | +| 16 | 0 | + +| External | Internal | Private | Pure | View | +| ---------- | -------- | ------- | ---- | ---- | +| 5 | 17 | 0 | 0 | 7 | + +#### StateVariables + +| Total | ๐ŸŒPublic | +| ---------- | --------- | +| 9 | 9 | + +#### Capabilities + +| Solidity Versions observed | ๐Ÿงช Experimental Features | ๐Ÿ’ฐ Can Receive Funds | ๐Ÿ–ฅ Uses Assembly | ๐Ÿ’ฃ Has Destroyable Contracts | +| -------------------------- | ------------------------ | -------------------- | ---------------- | ---------------------------- | +| `^0.8.9` | | **** | **** | **** | + +| ๐Ÿ“ค Transfers ETH | โšก Low-Level Calls | ๐Ÿ‘ฅ DelegateCall | ๐Ÿงฎ Uses Hash Functions | ๐Ÿ”– ECRecover | ๐ŸŒ€ New/Create/Create2 | +| ---------------- | ----------------- | --------------- | ---------------------- | ------------ | --------------------- | +| **** | **** | **** | **** | **** | **** | + +| โ™ป๏ธ TryCatch | ฮฃ Unchecked | +| ---------- | ----------- | +| **** | `yes` | + +#### Dependencies / External Imports + +| Dependency / Import Path | Count | +| ------------------------ | ------ | +| @ethereum-attestation-service/eas-contracts/IEAS.sol | 1 | +| @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol | 1 | +| @openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol | 1 | +| @openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol | 1 | + +#### Totals + +##### Summary + +
+ +
+ +##### AST Node Statistics + +###### Function Calls + +
+ +
+ +###### Assembly Calls + +
+ +
+ +###### AST Total + +
+ +
+ +##### Inheritance Graph + +[โž•] + + +##### CallGraph + +[โž•] + + +###### Contract Summary + +[โž•] + +____ + +Thinking about smart contract security? We can provide training, ongoing advice, and smart contract auditing. [Contact us](https://consensys.io/diligence/contact/). + + + diff --git a/audit-files/commit-e347146/metrics.md b/audit-files/commit-e347146/metrics.md new file mode 100644 index 0000000..1d5a57c --- /dev/null +++ b/audit-files/commit-e347146/metrics.md @@ -0,0 +1,295 @@ + +[get in touch with Consensys Diligence](https://consensys.io/diligence)
+ +[[ ๐ŸŒ ](https://consensys.io/diligence) [ ๐Ÿ“ฉ ](mailto:diligence@consensys.net) [ ๐Ÿ”ฅ ](https://consensys.io/diligence/tools/)] +

+ + + +# Solidity Metrics for 'CLI' + +## Table of contents + +- [Scope](#t-scope) + - [Source Units in Scope](#t-source-Units-in-Scope) + - [Deployable Logic Contracts](#t-deployable-contracts) + - [Out of Scope](#t-out-of-scope) + - [Excluded Source Units](#t-out-of-scope-excluded-source-units) + - [Duplicate Source Units](#t-out-of-scope-duplicate-source-units) + - [Doppelganger Contracts](#t-out-of-scope-doppelganger-contracts) +- [Report Overview](#t-report) + - [Risk Summary](#t-risk) + - [Source Lines](#t-source-lines) + - [Inline Documentation](#t-inline-documentation) + - [Components](#t-components) + - [Exposed Functions](#t-exposed-functions) + - [StateVariables](#t-statevariables) + - [Capabilities](#t-capabilities) + - [Dependencies](#t-package-imports) + - [Totals](#t-totals) + +## Scope + +This section lists files that are in scope for the metrics report. + +- **Project:** `'CLI'` +- **Included Files:** + - `` +- **Excluded Paths:** + - `` +- **File Limit:** `undefined` + - **Exclude File list Limit:** `undefined` + +- **Workspace Repository:** `unknown` (`undefined`@`undefined`) + +### Source Units in Scope + +Source Units Analyzed: **`1`**
+Source Units in Scope: **`1`** (**100%**) + +| Type | File | Logic Contracts | Interfaces | Lines | nLines | nSLOC | Comment Lines | Complex. Score | Capabilities | +| ---- | ------ | --------------- | ---------- | ----- | ------ | ----- | ------------- | -------------- | ------------ | +| ๐Ÿ“ | GitcoinPassportDecoder.sol | 1 | **** | 468 | 460 | 253 | 128 | 181 | **ฮฃ** | +| ๐Ÿ“ | **Totals** | **1** | **** | **468** | **460** | **253** | **128** | **181** | **ฮฃ** | + + +Legend: [โž•] + + + + +##### Deployable Logic Contracts +Total: 1 +* ๐Ÿ“ `GitcoinPassportDecoder` + + + +#### Out of Scope + +##### Excluded Source Units + +Source Units Excluded: **`0`** + +[โž•] + + + +##### Duplicate Source Units + +Duplicate Source Units Excluded: **`0`** + +[โž•] + + +##### Doppelganger Contracts + +Doppelganger Contracts: **`0`** + +[โž•] + + + +## Report + +### Overview + +The analysis finished with **`0`** errors and **`0`** duplicate files. + + + + + +#### Risk + +
+ +
+ +#### Source Lines (sloc vs. nsloc) + +
+ +
+ +#### Inline Documentation + +- **Comment-to-Source Ratio:** On average there are`2.04` code lines per comment (lower=better). +- **ToDo's:** `0` + +#### Components + +| ๐Ÿ“Contracts | ๐Ÿ“šLibraries | ๐Ÿ”Interfaces | ๐ŸŽจAbstract | +| ------------- | ----------- | ------------ | ---------- | +| 1 | 0 | 0 | 0 | + +#### Exposed Functions + +This section lists functions that are explicitly declared public or payable. Please note that getter methods for public stateVars are not included. + +| ๐ŸŒPublic | ๐Ÿ’ฐPayable | +| ---------- | --------- | +| 16 | 0 | + +| External | Internal | Private | Pure | View | +| ---------- | -------- | ------- | ---- | ---- | +| 5 | 17 | 0 | 0 | 7 | + +#### StateVariables + +| Total | ๐ŸŒPublic | +| ---------- | --------- | +| 9 | 9 | + +#### Capabilities + +| Solidity Versions observed | ๐Ÿงช Experimental Features | ๐Ÿ’ฐ Can Receive Funds | ๐Ÿ–ฅ Uses Assembly | ๐Ÿ’ฃ Has Destroyable Contracts | +| -------------------------- | ------------------------ | -------------------- | ---------------- | ---------------------------- | +| `^0.8.9` | | **** | **** | **** | + +| ๐Ÿ“ค Transfers ETH | โšก Low-Level Calls | ๐Ÿ‘ฅ DelegateCall | ๐Ÿงฎ Uses Hash Functions | ๐Ÿ”– ECRecover | ๐ŸŒ€ New/Create/Create2 | +| ---------------- | ----------------- | --------------- | ---------------------- | ------------ | --------------------- | +| **** | **** | **** | **** | **** | **** | + +| โ™ป๏ธ TryCatch | ฮฃ Unchecked | +| ---------- | ----------- | +| **** | `yes` | + +#### Dependencies / External Imports + +| Dependency / Import Path | Count | +| ------------------------ | ------ | +| @ethereum-attestation-service/eas-contracts/IEAS.sol | 1 | +| @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol | 1 | +| @openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol | 1 | +| @openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol | 1 | + +#### Totals + +##### Summary + +
+ +
+ +##### AST Node Statistics + +###### Function Calls + +
+ +
+ +###### Assembly Calls + +
+ +
+ +###### AST Total + +
+ +
+ +##### Inheritance Graph + +[โž•] + + +##### CallGraph + +[โž•] + + +###### Contract Summary + +[โž•] + +____ + +Thinking about smart contract security? We can provide training, ongoing advice, and smart contract auditing. [Contact us](https://consensys.io/diligence/contact/). + + +