Skip to main content

BaseMiddleware

Git Source

BaseMiddleware

Abstract base contract that combines core manager functionality for building middleware

Inherits from VaultManager, OperatorManager, AccessManager, and KeyManager to provide:

  • Vault management and registration
  • Operator management and registration
  • Access management
  • Key management

This contract serves as a foundation for building custom middleware by providing essential management capabilities that can be extended with additional functionality.

Methods

__BaseMiddleware_init

function __BaseMiddleware_init(
address network,
uint48 slashingWindow,
address vaultRegistry,
address operatorRegistry,
address operatorNetOptin,
address readHelper
) internal onlyInitializing

Initializes the BaseMiddleware contract with required dependencies and parameters

This internal initialization function sets up core storage and manager components

Parameters

NameTypeDescription
networkaddressThe address of the network contract
slashingWindowuint48The duration of the slashing window in blocks
vaultRegistryaddressThe address of the vault registry contract
operatorRegistryaddressThe address of the operator registry contract
operatorNetOptinaddressThe address of the operator network opt-in contract
readHelperaddressThe address of the read helper contract used for delegatecall