LogoLogo
  • Introduction
    • Introducing Othentic Stack
    • Use Cases
  • AVS Framework
    • Abstract
    • Quick Start
    • Othentic CLI
      • Key Management
      • Contracts Deployment
      • Operator Registration
      • AVS Logic Implementation
      • Operator Deposit
      • Node Operators
      • Rewards Distribution
      • P2P Config
        • Custom P2P Messaging
        • P2P Auth Layer
        • Metrics and Monitoring
        • Logging
        • Persistent storage
        • Latency
      • CLI Command Reference
    • Smart Contracts
      • AVS Governance
      • Attestation Center
      • Hooks
        • Task Logic
        • Operator Management
        • Rewards Fee Calculator
      • OBLS
      • Internal Task Handler
      • Othentic Registry
      • Message Handlers
    • Othentic Consensus
      • Abstract
      • Task & Task Definitions
      • Leader Election
      • Proof of Task
      • Execution Service
      • Validation Service
      • Voting Power
      • Rewards
      • Internal Tasks
      • Slashing & Ejection
        • Slashing Modules
        • Custom Slashing
    • FAQ
    • Supported Networks
    • Explainers
      • Networking
      • Multichain
      • Production Guidelines
      • Operator Allowlisting
      • Governance Multisig
  • External
    • AVS Examples
  • GitHub
  • Othentic Hub
Powered by GitBook
On this page
  1. AVS Framework
  2. Smart Contracts

Hooks

Hooks are a powerful feature that allow developers to inject custom logic.

They enable seamless integration of external processes, providing flexibility and control over how Operators, Tasks are handled within the system. The Othentic Stack allows developers to implement custom logic at the following stages.

  • Operator Management: The AVSGovernance contract offers hooks for managing operator registration and deregistration. Developers can implement custom logic for handling these events, such as additional checks or notifications during operator registration or deregistration.

  • Task Submission: The AVSLogic contract provides pre- and post-execution hooks for task submissions on-chain, enabling a highly flexible and customizable approach to task management.

  • Rewards Fee Calculator: The Othentic Stack supports the creation of a FeeCalculator contract, which acts as a hook for calculating task submission rewards. This provides flexibility to implement customized reward structures and logic for calculating and distributing fees, enabling more tailored economic models.

Read more about the implementation and deployment for each in their respective sections.

PreviousAttestation CenterNextTask Logic

Last updated 2 months ago