solidity-patterns
Battle-tested Solidity/EVM patterns for safe smart contracts — checks-effects-interactions, reentrancy guards, access control (Ownable/roles), pull-over-push payments, gas & storage-layout optimization, events, and proxy upgradeability trade-offs. Deep reference with runnable Solidity-source linter.
Included with Vanara Pro ($10/mo) — unlocks all 206 items. See pricing →
Overview
On the EVM, deployed code is immutable, transactions are public before they confirm, and every state slot maps to real money. A bug is not a hotfix away — it is a permanent, adversarially-exploitable liability. This skill is the deep reference for writing contracts that survive that environment: the patterns, the reasoning behind them, the gas trade-offs, and the failure modes that have drained re
What it covers
- Checks-Effects-Interactions (CEI)
- Access control
- Pull-over-push payments
- Gas & storage layout
- Events & observability
- Upgradeability — and why you might not want it
- Gas & Storage Optimization
- Reentrancy — Variants and Defenses