A Hardhat plugin (v0.1.7) that exports the Solidity contract storage layout as a table or programmatic export. It requires Hardhat ^2.0.3 and Solc >=0.5.13. Key differentiator: automates storage slot inspection for upgradeable contracts, avoiding manual errors when updating storage variables. The plugin integrates as a Hardhat task ('check') and provides a JavaScript API for pre-deployment export.
npm install hardhat-storage-layoutNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to require the plugin in Hardhat config and use the check task or programmatic export API.
Upgrade to Hardhat v2 or later.
Ensure your Solidity compiler version is >=0.5.13.
Put 'require("hardhat-storage-layout");' at the top of your config.Watch GitHub repo for updates.
Run 'yarn add --dev hardhat-storage-layout' or 'npm install --save-dev hardhat-storage-layout'.
Add 'require("hardhat-storage-layout");' at the top of your hardhat.config.js.Upgrade Hardhat: yarn add --dev hardhat@^2.0.3