Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ src/svm/clients/*
# SP1Helios deploy artifacts
script/universal/genesis-binary
script/universal/genesis.json

# claude
CLAUDE.local.md
9 changes: 9 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,15 @@ See `foundry.toml` for Foundry configuration. Key settings:
- UUPS proxy pattern for upgradeable contracts
- Cross-chain ownership: HubPool owns all SpokePool contracts

## Code Style

**Prioritize succinctness.** Express features in the least lines possible. This often leads to the most elegant solution:

- Consolidate duplicate code paths (e.g., one function call with different parameters instead of multiple branches with similar calls)
- Compute values before branching, then use them in a single code path
- Avoid redundant intermediate variables when the expression is clear (although consider gas cost implications, especially for mainnet contracts)
- Prefer early returns to reduce nesting

## Linting

```bash
Expand Down
Loading