Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.94 KB

File metadata and controls

48 lines (38 loc) · 1.94 KB

AGENTS.md

Guidance for AI coding agents working on this repository.

Commands

yarn build                # compile (skips test/ and script/)
yarn build:contracts      # compile + combine proxy ABIs
forge test                # run all tests
yarn test:ci              # run tests with JUnit output
yarn lint                 # solhint linting
yarn format:check         # prettier format check
yarn format               # prettier format fix
yarn coverage             # forge coverage (lcov)
yarn coverage:summary     # forge coverage (summary table)
yarn storage:check        # validate storage layout snapshots
yarn storage:generate     # regenerate storage layout snapshots

Directory layout

Directory Contents
src/ Production Solidity contracts
script/ All scripts: Foundry .s.sol in subdirectories, bash .sh at root level
test/unit/ Unit tests
test/integration/ Integration tests (forked mainnet)
test/kontrol/ Kontrol formal verification tests
verification/ Formal verification support (Kontrol K definitions)
dependencies/ Soldeer-managed dependencies

There is no scripts/ directory. All scripts (Solidity and bash) live under script/.

Key references

Conventions

  • Foundry toolchain (forge, cast, anvil); Soldeer for dependency management
  • Conventional commits: type(scope): message
  • Solidity ^0.8.24; optimizer enabled
  • AGPL-3.0-or-later license for original code; preserve upstream licenses for ported/adapted code
  • NatSpec required on all public/external functions; use @inheritdoc for overrides
  • Tests follow Arrange-Act-Assert pattern