// the find
smartcontractkit/hardhat-starter-kit
A repo for boilerplate code for testing, deploying, and shipping chainlink solidity code.
Official Chainlink starter kit for Hardhat, covering Price Feeds, VRF v2+, and Automation with deploy scripts, tasks, and unit/staging tests. It's the path of least resistance for anyone starting a Chainlink-integrated contract on Hardhat 2. Maintained by Chainlink Labs, so it tracks their SDK versions.
Covers the three most-used Chainlink services (Price Feeds, VRF, Automation) with working deploy scripts and both local and testnet test suites. Mock contracts for VRF coordinator and aggregator mean you can test oracle logic without a live network. Hardhat tasks for interacting with deployed contracts (read-price-feed, request-random-number) save a lot of boilerplate. Echidna fuzzing setup included out of the box, which is rare for a starter kit.
Hardhat 2 only on the main branch — the Hardhat 3 branch exists but is separate, so you're starting on a framework that's already superseded. The import remapping workaround using hardhat-preprocessor is a third-party hack that could silently mangle your imports; Foundry handles this natively. No Chainlink Functions or CCIP in this kit — those are farmed out to separate repos, so if your project uses them you'll be stitching together two different starter kits with potentially different tooling conventions. Staging tests require manual VRF subscription setup and funded wallets, which is friction that isn't scripted away.