Payment Request
Overview
AttestationCenter
contract is responsible for operator payment requests. The IBeforePaymentsLogic
interface offers a pre-execution hook for payment requests on-chain.
Interface
The interface defines a function beforePaymentRequest
for handling operator payment requests. AVS developers can implement custom logic for this event.
This hook can be called inside the requestPayment
function in AttestationCenter
.
Deployment & Setup
After implementation, you can deploy the contract on the same L2 network as the AttestationCenter
.
Make sure to deploy the Othentic contracts before deploying the AVS Logic.
After deployment, you must call the setBeforePaymentsLogic function in AttestationCenter
and provide the address of the BeforePaymentRequest
contract as the parameter. Note that only the AVS Governance Multisig is authorized to call this function.
Now, the AVS contracts are set and ready to be used.
Last updated