solidity react blockchain apps cursorrules prompt
via PatrickJS/awesome-cursorrules
Secure Solidity smart contracts with React frontends using OpenZeppelin, security tooling, and type-safe Web3 integration.
What is solidity react blockchain apps cursorrules prompt ?
Guidelines for building production-grade blockchain applications combining Solidity smart contracts with React frontends. Use this rule to enforce secure contract patterns, gas optimization, and safe Web3 interactions across your codebase.
- Enforce secure Solidity practices: explicit visibility, access control, and NatSpec documentation
- Integrate security tooling (Slither, Mythril) and property-based testing for contract validation
- Recommend OpenZeppelin contracts for ownership, access control, multisig, and timelock patterns
- Guide gas optimization through storage layout and function visibility review
- Implement pull-payment patterns, event logging, and defensive error handling
- Ensure type-safe Web3 frontend code for wallet, provider, and transaction interactions
Applies to
File patterns this rule matches.
Rule definition (reference)
Source of truth, from the repository.
Solidity React Blockchain Apps Guidelines
- Prioritize secure Solidity smart contracts with explicit visibility, access control, and clear NatSpec documentation.
- Use established security tooling such as Slither, Mythril, and property-based tests for critical contract behavior.
- Prefer OpenZeppelin contracts for common primitives such as ownership, access control, multisig, and timelocks.
- Optimize gas deliberately by reviewing storage layout, function visibility, and unnecessary writes.
- Use pull-payment patterns, event logging, and defensive error handling for production-grade contracts.
- Keep Web3 frontend code type-safe and explicit when interacting with wallets, providers, and transactions.
Related rules
Senior full-stack TypeScript, React, Node.js guidance with clean architecture, testing, and WHY-oriented reasoning.
Quantitative factor research skills for designing, evaluating, and mining alpha factors in equities markets.
Android development with Jetpack Compose, clean architecture, and Material Design 3.
Angular development with Novo Elements UI library using standalone components.
Expert Angular 18 + TypeScript development with Jest, emphasizing clean code and performance.
Manage Kubernetes clusters, add-ons, stacks, and credentials via the Ankra CLI platform.