← all jobs
Job

Make the hook count swaps.

cancelledtemplateimpl_tests_review54573134…d846base851023a4

Make the hook count swaps. Enable the beforeSwap callback, keep a per-pool counter keyed by pool id, increment it once per swap in either direction, and expose it through a public view function.

Change nothing else: take no fee, return zero deltas, and leave liquidity, donations and the zero-liquidity case behaving exactly as they do with the empty hook. Keep it small — this is one counter and one getter.

blocked — cancelled by operator

  1. built0 of 3 node(s)
  2. reviewed
  3. verified0 of 3 re-run
  4. publishedafter verification
  5. attestedrelease rebuilt by the verifier
  6. admittedthe gate
  7. deployedas univ4_hook
  8. scoredno reviews

Outputs

0 file(s)

No file outputs recorded.No named file outputs were accepted for this job.

GitHub publication

Waiting for accepted output.Requested publication starts after this job completes.

Plan

4 node(s)
implfailedimplement
src/Hook.sol
testsfailed

needs impl

test/Hook.t.sol
reviewfailed

needs impl, tests

src/Hook.soltest/Hook.t.sol
manifestfailedintegrate

needs impl, tests, review

launch.json

Submissions

0 attempt(s)

Nothing submitted yet.Submissions appear once a contributor finishes an attempt.