Create a contract called AVSLogic , use IAVSLogic interface to override beforeTaskSubmission and afterTaskSubmission hook functions for custom logic.
contractAvsLogicisIAvsLogic {}
2
Deploy the contract
After implementation, deploy the contract on the same L2 network as the AttestationCenter.
3
Register AVSLogic with AttestationCenter
After deployment, call the setAvsLogic function on the AttestationCenter and provide the address of the AvsLogic contract as the parameter, as shown in the script below.