pub async fn get_all_factory_deps(
        &mut self,
        l2_block_number: L2BlockNumber,
    ) -> DalResult<Vec<(H256, Vec<u8>)>> {
        let rows = sqlx::query!(
            r#"
            SELECT
                bytecode_hash,
                bytecode
            FROM
                factory_deps
            WHERE
                miniblock_number <= $1
            "#,
            i64::from(l2_block_number.0),
        )
        .instrument("get_all_factory_deps")
        .report_latency()
        .expect_slow_query()
        .fetch_all(self.storage)
        .await?;

        Ok(rows
            .into_iter()
            .map(|row| (H256::from_slice(&row.bytecode_hash), row.bytecode))
            .collect())
    }
Returns all factory dependencies up to and including the specified `l2_block_number`.
core/lib/dal/src/snapshots_creator_dal.rs