You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ This is a React Router v7 SPA application for smart contract verification using
25
25
26
26
### Core Architecture
27
27
28
-
**Verification Flow**: The app supports multiple verification methods (single-file, multiple-files, std-json, metadata-json) for both Solidity and Vyper contracts. All methods eventually convert to standard JSON format before submission to Sourcify's v2 API.
28
+
**Verification Flow**: The app supports multiple verification methods (single-file, multiple-files, std-json, metadata-json, build-info) for both Solidity and Vyper contracts. Framework helpers (hardhat, foundry) provide setup instructions and can optionally use build-info file uploads. All methods eventually convert to standard JSON format before submission to Sourcify's v2 API.
29
29
30
30
**API Integration**:
31
31
-`sourcifyApi.ts` - Main Sourcify API client with custom headers for client identification
@@ -52,4 +52,18 @@ This is a React Router v7 SPA application for smart contract verification using
52
52
- TailwindCSS v4 for styling
53
53
- TypeScript with strict mode
54
54
- Path alias: `~/*` maps to `./app/*`
55
-
- Web Workers used for bytecode diff calculations (`public/diffWorker.js`)
55
+
- Web Workers used for bytecode diff calculations (`public/diffWorker.js`)
56
+
57
+
### Key Features Implemented
58
+
59
+
**Build-Info File Support**: Framework helpers (Hardhat/Foundry) can toggle between showing setup commands or uploading build-info files. The build-info feature:
60
+
- Parses Hardhat and Foundry build-info JSON files
61
+
- Extracts standard JSON compilation input from the "input" field
62
+
- Auto-populates compiler version from build-info metadata
63
+
- Validates build-info structure and provides helpful error messages
64
+
- Integrates seamlessly with existing std-json submission flow
0 commit comments