Internal Task Handler

Overview

The InternalTaskHandler contract on L2 is one of the core component of the Othentic AVS framework handling Internal Tasks. It is responsible for processing and executing system-level tasks that are delegated by the AttestationCenter.

These tasks include:


Core Functions

getLastCommitBlockL1

function getLastCommitBlockL1() external view returns (uint256);

Returns the block number of the last committed update from L1.

getLastCommitBlockL2

function getLastCommitBlockL2() external view returns (uint256);

Returns the block number of the last committed update from L2.

attestationCenter

function attestationCenter() external view returns (IAttestationCenter);

Returns the address of the current AttestationCenter contract.

processTask

Processes a task from the AttestationCenter. Based on the taskDefinitionId, the appropriate internal function is triggered:

Access is restricted to the ATTESTATION_CENTER role.


Task Handlers

votingPowerUpdate

Handles voting power sync tasks. Decodes a VotingPowerUpdate struct and updates voting power for Operators using the OBLS contract. It also includes checks against duplicate or future block submissions.

triggerInternalTransactionsTask

Processes internal OBLS-specific administrative transactions to update voting power per task for restricted operators. This is restricted only to certain method selectors on the OBLS contract.

Last updated