Skip to content

Commit de0e276

Browse files
h4x3rotabclaude
andcommitted
Complete Hardhat removal - migrate to pure Foundry setup
Remove all Hardhat dependencies while preserving bootAuth server: 🗑️ Removed Hardhat components: - Config files: hardhat.config.ts, jest.integration.config.js - Hardhat test files: test/*.test.ts, test/setup.ts - TypeChain generated types: typechain-types/ directory - Deployment scripts: scripts/deploy.ts, upgrade.ts, verify.ts - Build artifacts: .openzeppelin/, cache files - Dependencies: All @nomicfoundation/hardhat-* packages ✅ Preserved & Updated: - BootAuth server: src/server.ts, main.ts, types.ts (fully functional) - EthereumBackend: Updated to use ethers Contract directly (no TypeChain) - Server tests: Moved main.test.ts to src/ (4 tests passing) - Foundry setup: All contracts and tests working (32/32 tests passing) - Package.json: Added Foundry test scripts, removed Hardhat deps - Documentation: Updated README with server endpoints and usage 🎯 Final architecture: - Foundry: Smart contract development and testing - Node.js: HTTP API server for TEE boot validation - Zero Hardhat dependencies All tests passing: - Foundry: 32/32 core contract tests ✅ - Server: 4/4 HTTP API tests ✅ - TypeScript compilation: Success ✅ 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 62beda4 commit de0e276

File tree

176 files changed

+2666
-20525
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+2666
-20525
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
env:
9+
FOUNDRY_PROFILE: ci
10+
11+
jobs:
12+
check:
13+
name: Foundry project
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
submodules: recursive
19+
20+
- name: Install Foundry
21+
uses: foundry-rs/foundry-toolchain@v1
22+
23+
- name: Show Forge version
24+
run: |
25+
forge --version
26+
27+
- name: Run Forge fmt
28+
run: |
29+
forge fmt --check
30+
id: fmt
31+
32+
- name: Run Forge build
33+
run: |
34+
forge build --sizes
35+
id: build
36+
37+
- name: Run Forge tests
38+
run: |
39+
forge test -vvv
40+
id: test

0 commit comments

Comments
 (0)