Triggers
Condition tasks
Your checker() decides when to run and what to call.
A condition task points at a resolver contract. Keepers read it every block. When it returns true, Gnomon reads it again on-chain at the moment of the run and calls exactly the bytes it returned.
Resolver shape (same as Gelato)
function checker() external view returns (bool canExec, bytes memory execPayload);- The keeper cannot change the call. It comes from your resolver, read inside the run.
- Keep checker() under 1,000,000 gas. It runs every block.
- Return
falseonce the work is done, or the task runs again on the next block.
See the liquidation and limit-order templates for complete resolvers.