pub async fn get_active_verification_request(
        &mut self,
        address: Address,
    ) -> DalResult<Option<usize>> {
        sqlx::query!(
            r#"
            SELECT
                id
            FROM
                contract_verification_requests
            WHERE
                contract_address = $1 AND (status = 'queued' OR status = 'in_progress')
            LIMIT 1
            "#,
            address.as_bytes(),
        )
        .instrument("verification_request_exists")
        .fetch_optional(self.storage)
        .await
        .map(|row| row.map(|row| row.id as usize))
    }
Returns ID of verification request for the specified contract address
that wasn't processed yet.
core/lib/dal/src/contract_verification_dal.rs