Skip to content
Post a task

Hook record

SponsoredTaskHook

0x3baceaab845cc195f00cbc4929cc2a8e4b82e46b

Repository listed · 12 observed tasks · Base Sepolia

Configure a manifest from this address
Base Sepolia

Deployed on this chain

Hook interface

Hook V1
A V1 hook runs only on tasks created before the V2 cut. New tasks cannot attach it.

About this hook

Opt-in Taskmarket hook that binds a fixed project-token allocation from a registered SponsoredTasksVault to a task, in addition to the task's normal USDC reward. A requester attaches it per task with ABI-encoded funding hookData; checkFund reserves the vault allocation, checkComplete commits the verdict and awards, and cancel/expiry release the reservation. Winner entitlements are installed later by permissionless finalizeSettlement/reconcile calls outside the callback gas boundary. The hook never transfers Taskmarket's USDC payout. Part of a deployment with SponsoredTaskFactory 0xec2b7e70edB7738199549A4e45c2d34EA2B9b929, SponsoredTaskRegistry 0x871f75350D59878f3d9d26E743ec220E706F7613 and SponsoredTaskFeePolicy 0xb42e8297d5FdBCC2c07Ec69D79CF8f46FB1c0374.
Publisher
daydreamsai
Manifest version
2.0.0
Hook version
1.0.0
License
MIT
Source commit
0c892497d782788ee1a9e2868c662ae7a448ca82
Source path
packages/contracts/src/hooks/sponsored-task/SponsoredTaskHook.sol
Registry path
hook-registry/manifests/evm/84532/0x3baceaab845cc195f00cbc4929cc2a8e4b82e46b.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
47779434
Transaction hash
0xfac0fc67e4dd79f847996034cf4ab3756a5e2b4f7dd8a8fc4fc1016e31bd9c3d
Runtime codehash
0xd8aed3211021ade4644639fa67eac2318a8a69b86e7bb535c8b7b4bffa021ea6
Proxy
erc1967, publisher says upgradeable
Implementation
0x74EbbF7d9480EBDf7E7C9375FFd18FC296834714
Upgrade authority
UUPS: the proxy's own owner() (Ownable), 0xA66cC4F36a1955B80DEC0f175F176ADbCa28b582 at the time of listing, is the sole account authorized to call upgradeToAndCall; there is no separate ProxyAdmin, timelock, or multisig.

Publisher-declared gas estimates

checkComplete: typical 137,791, maximum 157,703

Measured through the test-only MockTaskmarketForSponsoredTask wrapper (`call<Callback>` rows) in a Foundry gas report (`forge test -j 1 --match-path "test/SponsoredTask*" --gas-report`, 176 tests) at commit 0c892497d782788ee1a9e2868c662ae7a448ca82: median (typical) and maximum gas across every call in that suite, including success and revert paths. Each figure includes the mock wrapper's own call and task-context overhead, so it is an upper bound on the hook callback alone, not an isolated measurement. (13 calls.)

checkEvaluate: typical 54,610, maximum 54,621

Measured through the test-only MockTaskmarketForSponsoredTask wrapper (`call<Callback>` rows) in a Foundry gas report (`forge test -j 1 --match-path "test/SponsoredTask*" --gas-report`, 176 tests) at commit 0c892497d782788ee1a9e2868c662ae7a448ca82: median (typical) and maximum gas across every call in that suite, including success and revert paths. Each figure includes the mock wrapper's own call and task-context overhead, so it is an upper bound on the hook callback alone, not an isolated measurement. (2 calls.)

checkFund: typical 779,897, maximum 779,921

Measured through the test-only MockTaskmarketForSponsoredTask wrapper (`call<Callback>` rows) in a Foundry gas report (`forge test -j 1 --match-path "test/SponsoredTask*" --gas-report`, 176 tests) at commit 0c892497d782788ee1a9e2868c662ae7a448ca82: median (typical) and maximum gas across every call in that suite, including success and revert paths. Each figure includes the mock wrapper's own call and task-context overhead, so it is an upper bound on the hook callback alone, not an isolated measurement. (36 calls.)

onCancel: typical 84,199, maximum 114,383

Measured through the test-only MockTaskmarketForSponsoredTask wrapper (`call<Callback>` rows) in a Foundry gas report (`forge test -j 1 --match-path "test/SponsoredTask*" --gas-report`, 176 tests) at commit 0c892497d782788ee1a9e2868c662ae7a448ca82: median (typical) and maximum gas across every call in that suite, including success and revert paths. Each figure includes the mock wrapper's own call and task-context overhead, so it is an upper bound on the hook callback alone, not an isolated measurement. (2 calls.)

onComplete: typical 57,603, maximum 137,334

Measured through the test-only MockTaskmarketForSponsoredTask callOnComplete/callOnExpire wrappers, which the committed suite does not exercise, in a Foundry gas report (`forge test -j 1 --match-path "test/SponsoredTask*" --gas-report`) at commit 0c892497d782788ee1a9e2868c662ae7a448ca82 with uncommitted scenario tests added for this listing: one onComplete after checkComplete had already committed the completion (typical, the normal Diamond path) and one onComplete on a still-reserved allocation, which commits the completion itself (maximum). Each figure includes the mock wrapper's own call and task-context overhead, so it is an upper bound on the hook callback alone, not an isolated measurement.

onExpire: typical 114,004, maximum 114,004

Measured through the test-only MockTaskmarketForSponsoredTask callOnComplete/callOnExpire wrappers, which the committed suite does not exercise, in a Foundry gas report (`forge test -j 1 --match-path "test/SponsoredTask*" --gas-report`) at commit 0c892497d782788ee1a9e2868c662ae7a448ca82 with uncommitted scenario tests added for this listing: one onExpire releasing a reserved allocation. Each figure includes the mock wrapper's own call and task-context overhead, so it is an upper bound on the hook callback alone, not an isolated measurement.

onForfeit: typical 58,572, maximum 58,572

Measured through the test-only MockTaskmarketForSponsoredTask wrapper (`call<Callback>` rows) in a Foundry gas report (`forge test -j 1 --match-path "test/SponsoredTask*" --gas-report`, 176 tests) at commit 0c892497d782788ee1a9e2868c662ae7a448ca82: median (typical) and maximum gas across every call in that suite, including success and revert paths. Each figure includes the mock wrapper's own call and task-context overhead, so it is an upper bound on the hook callback alone, not an isolated measurement. (5 calls.)

Publisher-declared trust information

From the submitted manifest; a repository merge does not verify these claims.
Source
Publisher claims unverified
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.

No source-verifier link was declared.

Publisher-declared security reviews

unaudited: SponsoredTaskHook and the sponsored-task vault, registry, factory, and fee policy contracts. Covered by this repository's Foundry tests and CI-run static analysis, not an independent third-party audit.

Owner-upgradeable via UUPS; the owner key can replace the implementation and therefore change all hook behavior. The hook has no other owner-only function.

Opt-in per task: a requester must attach this hook and supply funding hookData. It is not a protocol default and does not affect tasks that do not use it.

Vaults are immutable clones; this hook holds no upgrade authority over a vault owner's tokens.

Source verification on a block explorer was not confirmed at listing time.

Publisher-declared operations and liveness

Callbacks
checkFund, checkEvaluate, checkComplete, onComplete, onForfeit, onCancel, onExpire
Task modes
bounty, claim, pitch, auction, benchmark
Failure mode
checkFund reverts block task creation with this hook. checkEvaluate and checkComplete only proceed for a matching reserved allocation, and return true once the vault owner has defaulted so Taskmarket's USDC lifecycle is not blocked; above MAX_AWARDS (8) awards the reservation is released and marked unsettleable instead of reverting. on* callbacks run after Taskmarket's transfers and are wrapped in try/catch by the calling facet, so a revert there leaves the sponsor allocation pending until reconciled but never blocks the USDC payout.
Recovery
finalizeSettlement, finalizeRelease, reconcile and refreshOwnerDefault are permissionless and resume settlement or release from Taskmarket's authoritative terminal state after a missed or swallowed callback.
Requirements
The task must be funded in USDC, or checkFund reverts and the task cannot be created with this hook. Creating a task charges no fee; the one-time fee is paid when the vault is created.; The referenced vault must be registered, Active, on this chain, at the stated epoch, controlled by this hook, and able to reserve grossAmount.; Settlement of sponsor entitlements depends on someone calling finalizeSettlement or reconcile after the task reaches a terminal state.
Privileged roles
Owner: upgrade-implementation
External dependencies
Taskmarket Diamond (base-sepolia): Calls this hook's callbacks via onlyDiamond and is read for task state and terms during reconcile and settlement.; USDC on base-sepolia: Taskmarket payment token the hook requires on funded tasks, and the token of the factory's one-time vault creation fee.; SponsoredTaskRegistry (base-sepolia): Registry checked in checkFund that a vault address and vaultId are registered.; SponsoredTaskFactory (base-sepolia): Creates SponsoredTasksVault clones that name this hook as controller.

Observed usage on Taskmarket

12 observed tasks, including 1 in the active lifecycle phase, in bounty, claim mode. This is usage data, not validation of the hook or its publisher claims.
Not deployed on this chain
Tempo Moderato
This address has no repository listing and no observed public tasks on Tempo Moderato. A hook is deployed per chain.

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.