Solidity OpenZeppelin Hardhat .cursorrules prompt file
About .cursorrules prompt file
What you can build
SecureSmart: A web application providing a suite of tools for blockchain developers to perform security audits and gas optimization on Solidity smart contracts.
SolidityBestPracticesHub: An educational platform offering detailed tutorials, examples, and interactive coding exercises highlighting Solidity security best practices and patterns for developers.
SolidityAuditBot: An AI-powered tool that automatically scans Solidity code for vulnerabilities, suggests improvements, and provides real-time feedback in IDEs like Visual Studio Code.
SmartContractOptimizer: A toolkit that focuses on optimizing gas usage in Solidity contracts, providing suggestions for refactoring and implementing efficient storage patterns.
BlockchainCI/CD: A service integrating with GitHub and GitLab to enable automated testing, auditing, and deployment of smart contracts using best practices in CI/CD pipelines.
SolidityEventsLogger: A platform to set up real-time monitoring and logging of contract events, allowing developers to track state changes and interactions in a user-friendly dashboard.
GasTrackerPro: An analytics service offering insights on deployment and runtime gas consumption, comparing against industry benchmarks, and providing actionable optimization reports.
TestCoverageAnalyzer: A comprehensive tool that measures the test coverage of Solidity smart contracts, highlighting untested paths and suggesting areas for additional tests.
MultisigManager: A SaaS product that helps teams manage multisig control configurations and timelocks for on-chain operations, ensuring secure and coordinated deployments.
RateLimitGuard: A Solidity library offering plug-and-play implementations of rate limiting patterns for sensitive contract functions to prevent misuse and abuse.
Benefits
- Emphasizes concise, code-focused answers, prioritizing logic over external sources or authority.
- Enforces best practices for Solidity development, including security features and standardized coding style.
- Comprehensive guidelines for testing, documentation, and optimization, ensuring high-quality and efficient smart contract deployment.
Synopsis
Developers building secure and efficient smart contracts on Ethereum would benefit, improving code robustness, security, and gas optimization using industry best practices and advanced tools.
Overview of .cursorrules prompt
The .cursorrules file sets guidelines for developing and securing Solidity smart contracts. It emphasizes concise and accurate code with detailed explanations only when necessary. The file outlines best practices for using function modifiers, upgradeable contract designs, event implementation, static analysis tools, and gas optimization. It includes security measures like reentrancy protection, slippage protection, and access control. Testing, quality assurance, performance optimization, and documentation are highlighted as critical components of the development workflow. The file encourages using tools like OpenZeppelin libraries and Hardhat for efficient, secure, and maintainable Solidity contract development.