Home › All rules › Community › Solidity React Blockchain Apps Cursor Rules
Solidity React Blockchain Apps Cursor Rules
Cursor rules for Solidity development with React Blockchain apps integration.
CursorSolidJSCommunity (CC0)
How to use
Save this as .cursor/rules/solidity-react-blockchain-apps-cursorrules-prompt-.mdc in your project, commit it, and Cursor will load it. Review it first: community files can be opinionated or out of date.
Note: Review and test before use. Provided as is, without warranty. See Terms.
.cursor/rules/solidity-react-blockchain-apps-cursorrules-prompt-.mdcDownload ---
description: "Cursor rules for Solidity development with React Blockchain apps integration."
globs: **/*
alwaysApply: false
---
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.