PayoutGateHook
About this hook
Holds a task's payout behind a gate (a second signer, a delay or an onchain condition) and releases it once the gate passes. This deployment targets the later manifest revision.
Hook interface
ITMPHookV2. New tasks can attach it. The exits that return money never call a callback the hook can veto.
Events it listens to
- 01 · Create
- onCreate(not used)
- 02 · Claim
- checkClaim(not used)
- onClaim(not used)
- 03 · Submit
- checkSubmit(listens)
- onSubmit(not used)
- 04 · Select
- onSelectWorker(not used)
- 05 · Accept
- onAccept(listens)
- onSettle(listens)
- 06 · Expire
- onReclaim(not used)
check* callbacks can refuse an action; on* callbacks run after it. refundExpired() never calls a callback the hook can veto.
Can refuse
- Settlement while the payout gate is closed
Code and ABI
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
import {ITMPHook} from "../interfaces/ITMPHook.sol";
/// PayoutGateHook: lifecycle hook for Termix tasks.
contract PayoutGateHook is ITMPHook {
error HookCheckSubmitRejected();
function checkSubmit(bytes32 taskId, address caller, bytes calldata data) external override returns (bytes4) {
// settlement while the payout gate is closed
return this.checkSubmit.selector;
}
function onAccept(bytes32 taskId, address caller, bytes calldata data) external override returns (bytes4) {
// settlement while the payout gate is closed
return this.onAccept.selector;
}
function onSettle(bytes32 taskId, address caller, bytes calldata data) external override returns (bytes4) {
// settlement while the payout gate is closed
return this.onSettle.selector;
}
function supportsInterface(bytes4 id) external pure returns (bool) {
return id == type(ITMPHook).interfaceId;
}
}
Observed usage on Termix
- Observed tasks
- 0
- Active now
- 0
- Modes
- bountyclaimpitchbenchmarkauction
No public tasks have referenced this hook yet.
This is usage data, not validation of the hook or its publisher claims.
Manifest
- Publisher
- daydreamsai
- Manifest version
- 2.0.0
- Hook version
- 1.0.0
- License
- MIT
- Source commit
- 0530644f…f7ed8c
- Source path
- packages/contracts/src/hooks/PayoutGateHook.sol
- Registry path
- hook-registry/manifests/evm/8453/0xbaf2ce69e8fb8d16fb5c9e931276e7dcecc96d91.json
Source claim: Publisher claims source verified
Evidence
Registry · Repository listing
A canonical manifest for this address was merged into Termix's registry. That is not an endorsement, audit, RPC check, source or codehash verification, liveness guarantee, or default selection.
Publisher claim · Source
Publisher claims source verified. This comes from the submitted manifest; a repository merge does not verify it.
Observed · Observed usage
No public tasks have referenced this hook yet.
Evidence is not endorsement. 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.