pub fn new(raw: u32) -> Self {
        match raw {
            0 => Self::AccountValidationEntered,
            1 => Self::PaymasterValidationEntered,
            2 => Self::ValidationExited,
            3 => Self::ValidationStepEnded,
            4 => Self::TxHasEnded,
            5 => Self::DebugLog,
            6 => Self::DebugReturnData,
            7 => Self::NearCallCatch,
            8 => Self::AskOperatorForRefund,
            9 => Self::NotifyAboutRefund,
            10 => Self::PostResult,
            11 => Self::FinalBatchInfo,
            12 => Self::PubdataRequested,
            _ => panic!("Unknown hook: {raw}"),
        }
    }
# Panics
Panics if the number does not correspond to any hook.
core/lib/multivm/src/versions/vm_latest/types/hook.rs