Function: respondToOpTask(OpTask task, OpTaskResponse taskResponse, IBLSSignatureChecker.NonSignerStakesAndSignature nonSignerStakesAndSignature)
This function is for responding to the OpTask. The function will try to finalize the OpTask and mark it as completed.
Inputs
task
Control: Fully controlled by the caller.
Constraints: Must match the record in the contract.
Impact: The task to treat.
taskResponse
Control: Fully controlled by the caller.
Constraints: Must have a valid
referenceTaskIndex
.Impact: The response for the task.
nonSignerStakesAndSignature
Control: Fully controlled by the caller.
Constraints: Must be a valid signature.
Impact: The BLS signature--related information for the
init
stage.
Branches and code coverage
Intended branches
Complete the given task with the
taskResponse
.
Negative behavior
Revert when the improper
msg.sender
calls this function during theinit
stage.Revert when the aggregator already responded to the expected task.