lfglabs-dev / lfglabs-dev/verity
feat(Codegen): native Solidity panic payload emission (Panic(uint256))
Nobody has claimed this yet.
- Dominant language
- Lean
- Stars
- 148
- Forks
- 20
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 29
Description
Promoted from #1982 P2 to a standalone tracked issue (was previously only a roadmap bullet).
Problem
Solidity panic revert payloads (Panic(uint256) selector 0x4e487b71 + code) are modeled via the small solidityPanicModule ECM (Morpho Midnight Contract.lean:1765, Th0rgal/morpho-verity).
Goal
Compiler-owned panic payload emission (and the matching proof-side revert observable), removing the ECM. Natural to bundle with checked-arithmetic emission (#1993), which needs panic(0x11) paths, and adjacent to the revertError non-literal-args work (#1974).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the solidityPanicModule ECM and Morpho Midnight's Contract.lean:1765, then review the related checked-arithmetic issue #1993 and revertError issue #1974. Done means compiler-owned emission of Solidity Panic(uint256) payloads, a matching proof-side revert observable, and removal of the ECM.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- solidity
- Domain
- blockchain, compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100