CursorPool
← 返回规则列表

Solidity React 区块链 应用

用于 Solidity 开发的 Cursor 规则,集成 React 区块链 应用。

awesome-cursorrules 社区·8k 次复制·

4 条规则

.cursorrules
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.

内容来源:awesome-cursorrules(CC0-1.0 许可)