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
- Exclude File list Limit:
-
Workspace Repository:
unknown
(undefined
@undefined
)
Source Units Analyzed: 1
Source Units in Scope: 1
(100%)
Type | File | Logic Contracts | Interfaces | Lines | nLines | nSLOC | Comment Lines | Complex. Score | Capabilities |
---|---|---|---|---|---|---|---|---|---|
📝 | Agriflow.sol | 1 | **** | 275 | 239 | 177 | 38 | 88 | **** |
📝 | Totals | 1 | **** | 275 | 239 | 177 | 38 | 88 | **** |
- Lines: total lines of the source unit
- nLines: normalized lines of the source unit (e.g. normalizes functions spanning multiple lines)
- nSLOC: normalized source lines of code (only source-code lines; no comments, no blank lines)
- Comment Lines: lines containing single or block comments
- Complexity Score: a custom complexity score derived from code statements that are known to introduce code complexity (branches, loops, calls, external interfaces, ...)
Total: 1
- 📝
Agriflow
Source Units Excluded: 0
[➕]
| File |
| ------ |
| None |
Duplicate Source Units Excluded: 0
[➕]
| File |
| ------ |
| None |
Doppelganger Contracts: 0
[➕]
| File | Contract | Doppelganger |
| ------ | -------- | ------------ |
The analysis finished with 0
errors and 0
duplicate files.
- Comment-to-Source Ratio: On average there are
5.61
code lines per comment (lower=better). - ToDo's:
0
📝Contracts | 📚Libraries | 🔍Interfaces | 🎨Abstract |
---|---|---|---|
1 | 0 | 0 | 0 |
This section lists functions that are explicitly declared public or payable. Please note that getter methods for public stateVars are not included.
🌐Public | 💰Payable |
---|---|
17 | 0 |
External | Internal | Private | Pure | View |
---|---|---|---|---|
0 | 6 | 0 | 0 | 11 |
Total | 🌐Public |
---|---|
6 | 6 |
Solidity Versions observed | 🧪 Experimental Features | 💰 Can Receive Funds | 🖥 Uses Assembly | 💣 Has Destroyable Contracts |
---|---|---|---|---|
>=0.7.0 <0.9.0 |
**** | **** | **** |
📤 Transfers ETH | ⚡ Low-Level Calls | 👥 DelegateCall | 🧮 Uses Hash Functions | 🔖 ECRecover | 🌀 New/Create/Create2 |
---|---|---|---|---|---|
**** | **** | **** | **** | **** | **** |
♻️ TryCatch | Σ Unchecked |
---|---|
**** | **** |
Dependency / Import Path | Count |
---|
[➕]
[➕]
[➕]
Sūrya's Description Report
____
Thinking about smart contract security? We can provide training, ongoing advice, and smart contract auditing. [Contact us](https://consensys.io/diligence/contact/).
Files Description Table
File Name | SHA-1 Hash |
---|---|
Agriflow.sol | [object Promise] |
Contracts Description Table
Contract | Type | Bases | ||
---|---|---|---|---|
└ | Function Name | Visibility | Mutability | Modifiers |
Agriflow | Implementation | |||
└ | getTotalProduct | Public ❗️ | NO❗️ | |
└ | getTotalOrder | Public ❗️ | NO❗️ | |
└ | isProducerRegistered | Public ❗️ | NO❗️ | |
└ | registerNewProducer | Public ❗️ | 🛑 | registerNewProducerAuth |
└ | isConsumerRegistered | Public ❗️ | NO❗️ | |
└ | registerNewConsumer | Public ❗️ | 🛑 | registerNewConsumerAuth |
└ | addNewProductsInList | Public ❗️ | 🛑 | addNewProductAuth |
└ | getTotalProduct | Public ❗️ | NO❗️ | |
└ | getProductbyId | Public ❗️ | NO❗️ | |
└ | newPrice | Public ❗️ | 🛑 | addNewProductAuth |
└ | getMyTotalOrder | Public ❗️ | NO❗️ | |
└ | getOrderByIdProducer | Public ❗️ | NO❗️ | |
└ | giveOrderItsStatus | Public ❗️ | 🛑 | NO❗️ |
└ | getProductById | Public ❗️ | NO❗️ | |
└ | placeAnOrder | Public ❗️ | 🛑 | purchaseProductAuth |
└ | getTotalOrder | Public ❗️ | NO❗️ | |
└ | getOrderByIdConsumer | Public ❗️ | NO❗️ |
Legend
Symbol | Meaning |
---|---|
🛑 | Function can modify state |
💵 | Function is payable |