/substreams-evm-extended:storage-layout-verificationfrom substreams-evm-extended
How to upgrade a balance-state fixture's inferred storage slots to compiler-verified layouts offline with solc --storage-layout (or an AST walk for solc 0.4.x), store the layout as evidence and pin fixture slots to it with a Rust test.
Ships in substreams-evm-extended. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Executed on 2026-09-21 and 2026-09-22 (see docs/evidence/storage-layouts/README.md);
follow these steps again when a pin changes. Practical notes from that run:
solc-select via pipx run solc-select install <versions> fetches the
macOS binaries (Rosetta on arm64); for OpenZeppelin use the repo remappings
but NOT --include-path lib/... (ambiguous imports); static-a-token-v3 needs
solc 0.8.20 because ECDSA.sol requires ^0.8.20; the 0.4.24 compact AST
prints one ======= path ======= block per unit, split on that; Lido's
--allow-paths must include the repository itself.
Prerequisite reading: docs/storage-layout-provenance.md (per-contract table,
pins, and what "verified" cannot mean without live access).
git submodule update --init --recursive
when the build uses lib/ submodules (foundry projects).foundry.toml,
hardhat.config.*). If the installed solc --version does not satisfy
it, download the matching release from https://binaries.soliditylang.org/
(macosx-amd64 binaries run under Rosetta on Apple silicon) or use
solc-select; record version and sha256 in the evidence file.solc --storage-layout --base-path . --include-path lib --include-path node_modules \
@openzeppelin/=lib/openzeppelin-contracts/ ... path/To/Contract.sol > layout.json
Abstract contracts print no layout: add a one-line harness
contract H is Target {} in the scratch directory and compile that.--storage-layout: run --ast-compact-json, walk
the linearizedBaseContracts from the most base to the most derived, count
non-constant state variables with Solidity packing rules, and write the
derived layout in the same JSON shape with "method": "ast-derived".docs/evidence/storage-layouts/<Contract>@<commit>.json
(raw solc output plus a header with repo, commit, solc version, sha256,
command line, date).tests/storage_layout.rs, #![cfg(not(target_arch = "wasm32"))])
that parses the fixture and the layout JSON and asserts every fixture slot,
mapping base and bit range (offset*8, width from type) against it.The table in
docs/evidence/storage-layouts/README.md
is the list: every pinned source, its compiler and the test that checks it.
It includes the 2019 compound-protocol tree f385d719… that the deployed
cUSDC and cETH run, cUSDC's legacy jump rate model 4caf72a1…, Aave
8305565a… and FiatToken v2.2.0, beside the current-tree sources.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub pinax-network/substreams-evm-balances --plugin substreams-evm-extended4 skills in this plugin
/balance-state-packageHow to add or change a protocol balance-state package (one RPC-free map_events emitting evm.balance_state.v1) in substreams-evm-extended, with the fail-closed rules, fixture and test conventions, README template and review checklist used by the existing aave, compound-v2, compound-v3, lido and erc4626 packages./pinned-source-researchHow to bind a contract to a pinned source offline for substreams-evm-extended: which files to fetch, what to extract (declaration order, packing, constants, keccak-named and ERC-7201 slots, formulas, rounding, events), how to write source_pin strings and where to store the notes./roadmap-issue-workflowHow roadmap issues in pinax-network/substreams-evm-extended move from acceptance list to merged PR and status comment: reading the issue, doing the offline part, commit and PR conventions, CI constraints, polling checks and merging without auto-merge, and when an issue may be closed.