pub(crate) fn for_transaction(
        transaction: &Transaction,
        tx_metrics: &TransactionExecutionMetrics,
    ) -> Self {
        Self {
            execution_metrics: tx_metrics.vm,
            cumulative_size: transaction.bootloader_encoding_size(),
            writes_metrics: tx_metrics.writes,
            gas_remaining: tx_metrics.gas_remaining,
        }
    }
Creates sealing data based on the execution of a `transaction`. Assumes that all writes
performed by the transaction are initial.
core/node/state_keeper/src/seal_criteria/mod.rs