Hook record
TaskTokenRewardHook
0x0f40337879fee4074e4f4b77e0de8623b85ca8f7
Repository listed · 315 observed tasks · Base Sepolia
Configure a manifest from this addressDeployed on this chain
Hook interface
About this hook
- Publisher
- daydreamsai
- Manifest version
- 2.0.0
- Hook version
- 1.0.0
- License
- MIT
- Source commit
- 4dc6253a3ea2037d0bdbc886dd9255fe61cf4c35
- Source path
- packages/contracts/src/hooks/TaskTokenRewardHook.sol
- Registry path
- hook-registry/manifests/evm/84532/0x0f40337879fee4074e4f4b77e0de8623b85ca8f7.json
Repository listed means only that this canonical manifest was merged into Taskmarket's registry. It is not an endorsement, audit, RPC check, source or codehash verification, liveness guarantee, or default selection.
Publisher-declared deployment
Manifest claims, not live RPC reads.
- Network
- base-sepolia
- Chain ID
- 84532
- Deployment block
- 45402608
- Transaction hash
- 0x419e7f3964236b275a43c66897e62ec203ab902c82cc8c1753d565b24ef4096a
- Runtime codehash
- 0xd8aed3211021ade4644639fa67eac2318a8a69b86e7bb535c8b7b4bffa021ea6
- Proxy
- erc1967, publisher says upgradeable
- Implementation
- 0x600A1E5736278a3B3566C91503f8A2195061cA97
- Upgrade authority
- UUPS: the proxy's own owner() (Ownable) is the sole account authorized to call upgradeToAndCall; there is no separate ProxyAdmin, timelock, or multisig.
Publisher-declared gas estimates
checkClaim: typical 276,071, maximum 276,071
Foundry gas report (`forge test --match-contract TaskTokenRewardHookTest --gas-report`) at commit 4dc6253a3ea2037d0bdbc886dd9255fe61cf4c35: median (typical) and maximum gas across every call to this function in the full unit and lifecycle test suite (101 tests), spanning all five task modes (Bounty, Claim, Pitch, Auction, Benchmark) and both success and revert paths -- not an isolated single-call measurement. (44 calls to this function.)
checkComplete: typical 137,549, maximum 262,734
Foundry gas report (`forge test --match-contract TaskTokenRewardHookTest --gas-report`) at commit 4dc6253a3ea2037d0bdbc886dd9255fe61cf4c35: median (typical) and maximum gas across every call to this function in the full unit and lifecycle test suite (101 tests), spanning all five task modes (Bounty, Claim, Pitch, Auction, Benchmark) and both success and revert paths -- not an isolated single-call measurement. (43 calls to this function.)
checkEvaluate: typical 3,439, maximum 3,439
Foundry gas report (`forge test --match-contract TaskTokenRewardHookTest --gas-report`) at commit 4dc6253a3ea2037d0bdbc886dd9255fe61cf4c35: median (typical) and maximum gas across every call to this function in the full unit and lifecycle test suite (101 tests), spanning all five task modes (Bounty, Claim, Pitch, Auction, Benchmark) and both success and revert paths -- not an isolated single-call measurement. (1 call to this function.)
checkFund: typical 81,588, maximum 81,588
Foundry gas report (`forge test --match-contract TaskTokenRewardHookTest --gas-report`) at commit 4dc6253a3ea2037d0bdbc886dd9255fe61cf4c35: median (typical) and maximum gas across every call to this function in the full unit and lifecycle test suite (101 tests), spanning all five task modes (Bounty, Claim, Pitch, Auction, Benchmark) and both success and revert paths -- not an isolated single-call measurement. (58 calls to this function.)
checkSelectWorker: typical 275,409, maximum 275,409
Foundry gas report (`forge test --match-contract TaskTokenRewardHookTest --gas-report`) at commit 4dc6253a3ea2037d0bdbc886dd9255fe61cf4c35: median (typical) and maximum gas across every call to this function in the full unit and lifecycle test suite (101 tests), spanning all five task modes (Bounty, Claim, Pitch, Auction, Benchmark) and both success and revert paths -- not an isolated single-call measurement. (1 call to this function.)
checkSubmit: typical 5,584, maximum 5,584
Foundry gas report (`forge test --match-contract TaskTokenRewardHookTest --gas-report`) at commit 4dc6253a3ea2037d0bdbc886dd9255fe61cf4c35: median (typical) and maximum gas across every call to this function in the full unit and lifecycle test suite (101 tests), spanning all five task modes (Bounty, Claim, Pitch, Auction, Benchmark) and both success and revert paths -- not an isolated single-call measurement. (42 calls to this function.)
onCancel: typical 38,396, maximum 71,394
Foundry gas report (`forge test --match-contract TaskTokenRewardHookTest --gas-report`) at commit 4dc6253a3ea2037d0bdbc886dd9255fe61cf4c35: median (typical) and maximum gas across every call to this function in the full unit and lifecycle test suite (101 tests), spanning all five task modes (Bounty, Claim, Pitch, Auction, Benchmark) and both success and revert paths -- not an isolated single-call measurement. (2 calls to this function.)
onComplete: typical 1,366, maximum 65,620
Foundry gas report (`forge test --match-contract TaskTokenRewardHookTest --gas-report`) at commit 4dc6253a3ea2037d0bdbc886dd9255fe61cf4c35: median (typical) and maximum gas across every call to this function in the full unit and lifecycle test suite (101 tests), spanning all five task modes (Bounty, Claim, Pitch, Auction, Benchmark) and both success and revert paths -- not an isolated single-call measurement. (42 calls to this function.)
onExpire: typical 70,817, maximum 70,817
Foundry gas report (`forge test --match-contract TaskTokenRewardHookTest --gas-report`) at commit 4dc6253a3ea2037d0bdbc886dd9255fe61cf4c35: median (typical) and maximum gas across every call to this function in the full unit and lifecycle test suite (101 tests), spanning all five task modes (Bounty, Claim, Pitch, Auction, Benchmark) and both success and revert paths -- not an isolated single-call measurement. (1 call to this function.)
onForfeit: typical 71,753, maximum 71,753
Foundry gas report (`forge test --match-contract TaskTokenRewardHookTest --gas-report`) at commit 4dc6253a3ea2037d0bdbc886dd9255fe61cf4c35: median (typical) and maximum gas across every call to this function in the full unit and lifecycle test suite (101 tests), spanning all five task modes (Bounty, Claim, Pitch, Auction, Benchmark) and both success and revert paths -- not an isolated single-call measurement. (2 calls to this function.)
Publisher-declared trust information
From the submitted manifest; a repository merge does not verify these claims.
- Source
- Publisher claims verified
- Conformance
- Publisher claims self attested
- Protocol status
- Publisher declares not default
- Manifest listing
- Publisher manifest says delisted
The manifest's listing field is a publisher declaration. The separate Repository listed badge only means this manifest was merged here.
Publisher-provided verifier links
Chain 84532: verifiedPublisher-declared security reviews
unaudited: TaskTokenRewardHook, RewardVault, and EpochBudget source, as deployed on Base Mainnet and Base Sepolia. Covered by this repository's own Foundry test suite and CI-run Slither static analysis, not an independent third-party audit.
Owner-upgradeable via UUPS (upgradeToAndCall); the owner key also controls dreamsPerUsdc, bonusBps, the reward ramp curve, worker/requester epoch caps, wallet bans, and sweepUnclaimed -- a malicious or compromised owner can change future reward economics or ban a wallet, but cannot claw back a worker's already-credited claimable balance.
checkFund's hookData parameter is unused; this hook takes no per-task configuration.
For Claim/Pitch/Auction, rewardUsd/usdBonusValue/dreamsPerUsdc are snapshotted at claim/select-worker time and are then fixed through settlement, independent of later changes to the task's reward, bonusBps, or dreamsPerUsdc. For Bounty/Benchmark (no pre-reservation), the current bonusBps and dreamsPerUsdc at checkComplete time are used instead.
RewardVault and EpochBudget addresses differ between Base Mainnet and Base Sepolia deployments; see externalDependencies for the exact per-chain addresses.
This manifest documents the currently-live default hook instance. A prior logic fix to this hook family shipped by deploying a full replacement hook+EpochBudget pair and re-pointing RewardVault to it, rather than upgrading this proxy's implementation in place -- so an earlier hook/implementation address may appear in on-chain history without being currently authorized.
Publisher-declared operations and liveness
- Callbacks
- checkFund, checkClaim, checkSelectWorker, checkSubmit, checkEvaluate, checkComplete, onComplete, onForfeit, onCancel, onExpire
- Task modes
- bounty, claim, pitch, auction, benchmark
- Failure mode
- check* hooks (checkFund, checkClaim, checkSelectWorker, checkComplete) are called before token transfers and a revert blocks the transition cleanly, mirroring the core facets' own nonReentrant/check-then-effect pattern. on* hooks (onComplete, onForfeit, onCancel, onExpire) run after transfers are committed and are wrapped in try/catch by the calling facet, so a revert there is swallowed and never blocks the requester or worker from being paid -- it can leave a DREAMS reservation unreleased or a reward unpaid until reconciled.
- Recovery
- sweepUnclaimed lets the owner recover DREAMS the vault ramp overfunded, without touching a worker's already-claimable balance. seedRewardStates/seedWalletHistory exist for owner-run migrations between hook instances and never overwrite already-settled or already-seen state. There is no owner path to reclaim a worker's already-credited claimable balance.
- Requirements
- The bound Taskmarket Diamond must call checkFund/checkClaim/checkSelectWorker/checkComplete via onlyDiamond and honor their false/revert return as a blocking transition, exactly as the current facets do.; RewardVault must hold enough DREAMS to cover outstanding reservations, and EpochBudget's global/worker/requester caps must have headroom, or reservation and settlement revert.; The owner-controlled dreamsPerUsdc rate and bonusBps must remain nonzero for a task to accrue any DREAMS bonus; zero either and the USDC flow still proceeds but no DREAMS reserve.
- Privileged roles
- Owner: upgrade-implementation, configure-economics, manage-wallet-bans, sweep-unclaimed-ramp-excess, seed-migrated-reward-and-wallet-state, seal-reward-and-wallet-state-permanently
- External dependencies
- Taskmarket Diamond (base-sepolia): Diamond proxy that calls this hook's check*/on* callbacks via onlyDiamond, and whose usdcToken is the task-value denominator rewardUsd is read from.; USDC on base-sepolia: Taskmarket's payment token; rewardUsd is denominated in its base units.; RewardVault (base-sepolia): Holds and reserves the DREAMS token balance this hook pays rewards from.; EpochBudget (base-sepolia): Enforces per-epoch global/worker/requester USD caps on DREAMS emission.; TaskMarketForwarder authorized relayer: Address authorized to call withdrawFor on behalf of a wallet claiming its DREAMS balance.
Observed usage on Taskmarket
Repository publication, publisher claims and observed public-task usage are separate evidence. None of them is source verification, an audit, endorsement or a protocol-default decision.