pub fn extract_published_bytecodes(events: &[Self]) -> Vec<H256> {
        events
            .iter()
            .filter(|event| {
                // Filter events from the deployer contract that match the expected signature.
                event.address == KNOWN_CODES_STORAGE_ADDRESS
                    && event.indexed_topics.len() == 3
                    && event.indexed_topics[0] == Self::PUBLISHED_BYTECODE_SIGNATURE
                    && event.indexed_topics[2] != H256::zero()
            })
            .map(|event| event.indexed_topics[1])
            .collect()
    }
Extracts bytecodes that were marked as known on the system contracts and should be published onchain.
core/lib/vm_interface/src/types/outputs/execution_result.rs