Solidera is a smart contract security toolkit that analyzes Solidity code for security vulnerabilities, gas optimization, and style compliance.
npm install soliderabash
npm install -g solidera
`
Usage
After installing, you can analyze your contract by running the following command:
`bash
solidera path/to/your/contract.sol
`
Replace path/to/your/contract.sol with the path to the Solidity file you want to audit.
Report
Solidera will analyze your contract and categorize findings into three main areas:
1. Gas Optimization
2. Security Bugs
3. Style Guide
Each issue found will include a description, allowing you to quickly understand and address the feedback.
Rules
For a detailed explanation of the rules applied in each category, please refer to the Solidera Rules Documentation.
Example
`bash
solidera contracts/MyContract.sol
`
Example output:
`plaintext
Gas Optimization:
- Use 'view' functions to save gas in read-only functions.
...
Security:
- Avoid re-entrancy vulnerabilities by using the 'checks-effects-interactions' pattern.
...
Style Guide:
- Function names should be in mixedCase.
...
``