Overview
VerifierModule is an abstract extension of BaseModule designed to provide standardized access to a Verifier contract. It manages internal storage using a deterministic slot derived via SlotLibrary, supporting secure modular composition across multiple vault systems.
Constructor
(name_, version_) pair.
Parameters:
name_— Unique identifier used to namespace the storage slot.version_— Version number used for slot derivation.
Public & External Functions
verifier()
Verifier contract. It is retrieved from internal storage using a fixed slot.
Returns:
IVerifier— The verifier contract associated with the module.
Internal Functions
__VerifierModule_init(address verifier_)
verifier_— Address of the verifier contract.
ZeroAddress()if verifier address is zero.
Private Functions
_verifierModuleStorage()
VerifierModuleStorage struct using the precomputed custom slot. Utilizes inline assembly for direct storage access.
Returns:
VerifierModuleStorage— Storage struct holding verifier address.