Commit 52dc0db
committed
refactor(fault-proof): use forge-generated bindings as ABI source of truth
- Replace hand-written sol! ABI definitions with forge-generated bindings
from op-succinct-bindings for contract types used in fault-proof and host
- Keep hand-written sol! only for enums (GameStatus, ProposalStatus) that
need custom derives and proper Rust enum variants
- Move shared L2Output struct to bindings crate, re-export from consumers
- Commit generated codegen to git so forge-less environments (Docker, CI
jobs without Foundry) can compile against the bindings
- Restore graceful forge fallback in build.rs: skip regeneration when forge
is not in PATH, bail only if forge is present but broken
- Add --skip-extra-derives to forge bind: removes unused serde/Debug/Default
derives from codegen, reducing compile time
- Add .gitattributes to collapse generated code in GitHub PR diffs
- Hoist ProposalStatus::try_from before match block in proposer.rs1 parent 25a9fee commit 52dc0db
31 files changed
Lines changed: 107104 additions & 348 deletions
File tree
- bindings
- src
- codegen
- fault-proof
- src
- tests/common
- scripts/utils/bin
- utils/host
- src
- validity/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
28 | 38 | | |
29 | 39 | | |
30 | | - | |
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
| |||
38 | 47 | | |
39 | 48 | | |
40 | 49 | | |
41 | | - | |
42 | 50 | | |
| 51 | + | |
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
| |||
49 | 58 | | |
50 | 59 | | |
51 | 60 | | |
52 | | - | |
| 61 | + | |
53 | 62 | | |
54 | 63 | | |
55 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
56 | 69 | | |
57 | 70 | | |
58 | 71 | | |
| |||
0 commit comments