Skip to content

Latest commit

 

History

History
289 lines (195 loc) · 9.06 KB

metrics.md

File metadata and controls

289 lines (195 loc) · 9.06 KB

get in touch with Consensys Diligence
[ 🌐 📩 🔥 ]

Solidity Metrics for 'CLI'

Table of contents

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
📝 Agriflow.sol 1 **** 275 239 177 38 88 ****
📝 Totals 1 **** 275 239 177 38 88 ****
Legend: [➕]
  • 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, ...)
Deployable Logic Contracts

Total: 1

  • 📝 Agriflow

Out of Scope

Excluded Source Units

Source Units Excluded: 0

[➕]

| File | | ------ | | None |
Duplicate Source Units

Duplicate Source Units Excluded: 0

[➕]

| File | | ------ | | None |
Doppelganger Contracts

Doppelganger Contracts: 0

[➕]

| File | Contract | Doppelganger | | ------ | -------- | ------------ |

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 are5.61 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
17 0
External Internal Private Pure View
0 6 0 0 11

StateVariables

Total 🌐Public
6 6

Capabilities

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
**** ****

Dependencies / External Imports

Dependency / Import Path Count

Totals

Summary
AST Node Statistics
Function Calls
Assembly Calls
AST Total
Inheritance Graph

[➕]

CallGraph

[➕]

Contract Summary

[➕]

Sūrya's Description Report

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
____ Thinking about smart contract security? We can provide training, ongoing advice, and smart contract auditing. [Contact us](https://consensys.io/diligence/contact/).