foundry-solidity

Solid

Build and test Solidity contracts with Foundry. Use when developing Ethereum contracts, writing Forge tests, deploying with scripts, or debugging with Cast/Anvil. Triggers on forge, cast, anvil, foundry.toml, *.t.sol, or *.s.sol.

AI & Automation 37 stars 1 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
53
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Foundry Solidity Development Complete guide for building secure, efficient smart contracts with **Foundry 1.5.0** and **Solidity 0.8.30**. ## When to Use This Skill - Developing Ethereum/EVM smart contracts - Writing Forge tests (unit, fuzz, invariant, fork) - Deploying contracts with scripts - Using Foundry tools (forge, cast, anvil, chisel) - Working with `foundry.toml`, `*.t.sol`, `*.s.sol` files - Debugging transactions and contract interactions ## Quick Start ```bash # Create new project forge init my-project && cd my-project # Build contracts forge build # Run tests forge test # Deploy (dry-run) forge script script/Deploy.s.sol --rpc-url sepolia # Deploy (broadcast) forge script script/Deploy.s.sol --rpc-url sepolia --broadcast --verify ``` ## Project Structure ``` my-project/ ├── foundry.toml # Configuration ├── src/ # Contracts │ └── Counter.sol ├── test/ # Tests (*.t.sol) │ └── Counter.t.sol ├── script/ # Deploy scripts (*.s.sol) │ └── Deploy.s.sol └── lib/ # Dependencies └── forge-std/ ``` ## Core Commands ### Build & Test ```bash forge build # Compile forge test # Run all tests forge test -vvvv # With traces forge test --match-test testDeposit # Filter by test name forge test --match-contract Vault # Filter by contract forge test --fork-url $RPC_URL # Fork testing forge test --gas-report ...

Details

Author
tenequm
Repository
tenequm/skills
Created
10 months ago
Last Updated
3 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

foundry-solidity

Build, test, secure, and automate Solidity 0.8.36 smart contracts with the Foundry toolkit (EVM target Osaka/Fusaka). Use when developing Ethereum/EVM contracts, writing Forge tests (unit/fuzz/invariant/fork), auditing/reviewing contracts for vulnerabilities, setting up CI/gas-regression/ABI-breaking-change gates, deploying (incl. signing/multisig/secrets hygiene), debugging with Cast/Anvil/Chisel, configuring foundry.toml, or checking 0.8.36 language semantics. Bundles the authoritative Solidity 0.8.36 + Foundry docs, a verified runnable starter project, a one-command quality gate (scripts/verify.sh), a security vulnerability→fix catalogue and audit workflow with a severity rubric, and a graded eval suite. Triggers on Foundry commands (forge, cast, anvil, chisel), Solidity testing/auditing/security-review requests, smart-contract development, gas optimization, deployment/signing questions, solc/EVM-version questions, or files like foundry.toml, *.t.sol, *.s.sol.

0 Updated 2 months ago
mrheyday
AI & Automation Listed

ekx-foundry

Solidity development with Foundry (forge, cast, anvil) as used in our contract suites. Use when writing or running Solidity tests, deploying contracts with forge script, verifying on Basescan or Blockscout, forking a network for tests, debugging stack-too-deep or via_ir compile issues, managing lib/ dependencies with forge install, or inspecting chain state with cast. Covers foundry.toml config, our optimizer settings, and the deploy checklist.

0 Updated 6 days ago
Ekinoxis-evm
Testing & QA Listed

foundry-testing

ALWAYS load before writing or modifying Foundry test files (.t.sol). Covers fuzz testing, gas benchmarks, naming conventions, and test patterns.

0 Updated 2 months ago
mrheyday