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
63 changes: 63 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Makefile for hook-bazaar-monorepo

# Implemented test files (non-placeholder tests)
IMPLEMENTED_TESTS := \
test/protocol-pkg/ProtocolFactoryFacet.t.sol \
test/protocol-pkg/ProtocolAdminRegistry.t.sol \
test/protocol-pkg/ProtocolAdminClient.t.sol \
test/protocol-pkg/ProtocolAdminPanel.t.sol \
test/protocol-pkg/ProtocolAdminManager.t.sol

# Fork tests (require ALCHEMY_API_KEY env var)
FORK_TESTS := \
test/protocol-pkg/ProtocolAdminClient.fork.t.sol \
test/master-hook-pkg/MasterHook.fork.t.sol

# Placeholder test files (not yet implemented)
# test/master-hook-pkg/MasterHook.t.sol
# test/hook-pkg/CoFHEHook.t.sol
# test/hook-pkg/HookStateLens.t.sol
# test/hook-pkg/HaaSFacet.t.sol
# test/hook-pkg/CoFHEHookMasterHook.t.sol
# test/hooks-operator-avs/HookAttestationTaskManager.t.sol
# test/hooks-operator-avs/AttestationRegistry.t.sol
# test/hooks-operator-avs/HookAttestationServiceManager.t.sol
# test/hooks-operator-avs/HaaSVendorManagement.t.sol
# test/hooks-operator-avs/ClearingHouseEscrow.t.sol
# test/hooks-operator-avs/HookStateSampler.t.sol

.PHONY: test test-implemented test-fork test-all build clean

# Run only implemented (non-placeholder) unit tests
test-implemented:
@echo "Running implemented unit tests..."
forge test --match-path "contracts/test/protocol-pkg/ProtocolFactoryFacet.t.sol" -vvv
forge test --match-path "contracts/test/protocol-pkg/ProtocolAdminRegistry.t.sol" -vvv
forge test --match-path "contracts/test/protocol-pkg/ProtocolAdminClient.t.sol" -vvv
forge test --match-path "contracts/test/protocol-pkg/ProtocolAdminPanel.t.sol" -vvv
forge test --match-path "contracts/test/protocol-pkg/ProtocolAdminManager.t.sol" -vvv

# Run fork tests (requires ALCHEMY_API_KEY)
test-fork:
@echo "Running fork tests (requires ALCHEMY_API_KEY)..."
forge test --match-path "contracts/test/protocol-pkg/ProtocolAdminClient.fork.t.sol" -vvv
forge test --match-path "contracts/test/master-hook-pkg/MasterHook.fork.t.sol" -vvv

# Run all implemented tests (unit + fork)
test-all-implemented: test-implemented test-fork

# Default test target runs implemented unit tests only
test: test-implemented

# Run all tests including placeholders (will show skipped/empty tests)
test-all:
@echo "Running all tests..."
forge test -vvv

# Build contracts
build:
forge build

# Clean build artifacts
clean:
forge clean
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,32 @@ forge build
### Test

```bash
# Run implemented tests only (excludes placeholder test files)
make test-implemented

# Run fork tests (requires ALCHEMY_API_KEY env var)
make test-fork

# Run all tests including placeholders
forge test
```

> **Note**: Some test files in `contracts/test/` are placeholders for future implementation (e.g., `hook-pkg/`, `hooks-operator-avs/`). Use `make test-implemented` for actual test coverage.

```bash
cd operator && npm test
```

### Attestation Simulation

```bash
# Terminal 1
anvil

# Terminal 2
cd operator && npx tsx integration/runSimulation.ts
```

### Deploy

```bash
Expand Down
27 changes: 27 additions & 0 deletions demo/presentation.aux
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
\relax
\providecommand\hyper@newdestlabel[2]{}
\providecommand*\HyPL@Entry[1]{}
\HyPL@Entry{0<</P(\376\377\0001)>>}
\@writefile{nav}{\headcommand {\slideentry {0}{0}{1}{1/1}{}{0}}}
\@writefile{nav}{\headcommand {\beamer@framepages {1}{1}}}
\HyPL@Entry{1<</P(\376\377\0002)>>}
\@writefile{nav}{\headcommand {\slideentry {0}{0}{2}{2/2}{}{0}}}
\@writefile{nav}{\headcommand {\beamer@framepages {2}{2}}}
\HyPL@Entry{2<</P(\376\377\0003)>>}
\@writefile{nav}{\headcommand {\slideentry {0}{0}{3}{3/3}{}{0}}}
\@writefile{nav}{\headcommand {\beamer@framepages {3}{3}}}
\HyPL@Entry{3<</P(\376\377\0004)>>}
\@writefile{nav}{\headcommand {\slideentry {0}{0}{4}{4/4}{}{0}}}
\@writefile{nav}{\headcommand {\beamer@framepages {4}{4}}}
\HyPL@Entry{4<</P(\376\377\0005)>>}
\@writefile{nav}{\headcommand {\slideentry {0}{0}{5}{5/5}{}{0}}}
\@writefile{nav}{\headcommand {\beamer@framepages {5}{5}}}
\HyPL@Entry{5<</P(\376\377\0006)>>}
\@writefile{nav}{\headcommand {\slideentry {0}{0}{6}{6/6}{}{0}}}
\@writefile{nav}{\headcommand {\beamer@framepages {6}{6}}}
\@writefile{nav}{\headcommand {\beamer@partpages {1}{6}}}
\@writefile{nav}{\headcommand {\beamer@subsectionpages {1}{6}}}
\@writefile{nav}{\headcommand {\beamer@sectionpages {1}{6}}}
\@writefile{nav}{\headcommand {\beamer@documentpages {6}}}
\@writefile{nav}{\headcommand {\gdef \inserttotalframenumber {6}}}
\gdef \@abspage@last{6}
17 changes: 17 additions & 0 deletions demo/presentation.nav
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
\headcommand {\slideentry {0}{0}{1}{1/1}{}{0}}
\headcommand {\beamer@framepages {1}{1}}
\headcommand {\slideentry {0}{0}{2}{2/2}{}{0}}
\headcommand {\beamer@framepages {2}{2}}
\headcommand {\slideentry {0}{0}{3}{3/3}{}{0}}
\headcommand {\beamer@framepages {3}{3}}
\headcommand {\slideentry {0}{0}{4}{4/4}{}{0}}
\headcommand {\beamer@framepages {4}{4}}
\headcommand {\slideentry {0}{0}{5}{5/5}{}{0}}
\headcommand {\beamer@framepages {5}{5}}
\headcommand {\slideentry {0}{0}{6}{6/6}{}{0}}
\headcommand {\beamer@framepages {6}{6}}
\headcommand {\beamer@partpages {1}{6}}
\headcommand {\beamer@subsectionpages {1}{6}}
\headcommand {\beamer@sectionpages {1}{6}}
\headcommand {\beamer@documentpages {6}}
\headcommand {\gdef \inserttotalframenumber {6}}
Empty file added demo/presentation.out
Empty file.
Binary file added demo/presentation.pdf
Binary file not shown.
Empty file added demo/presentation.snm
Empty file.
Loading
Loading