thecil/solidity-foundry-rules icon
public
Published on 7/15/2025
Solidity Foundry Rules

Rules

name: Solidity Foundry Rules

  • Follow the Solidity best practices.
  • Use the latest version of Solidity.
  • Always import specific contracts from their respective libraries.
  • Use OpenZeppelin libraries for common patterns like ERC20 or ERC721.
  • Utilize Foundry for development and testing.
  • Solidity and Foundry for contract testing.
  • Use Alchemy for interacting with Ethereum networks.
  • Use CamelCase for naming functions and variables in Solidity.
  • Use named exports for JavaScript files related to smart contracts.
  • Always write the functions or contract documentation based on NatSpect Format.
  • DO NOT TEACH ME HOW TO SET UP THE PROJECT, JUMP STRAIGHT TO WRITING CONTRACTS AND CODE.