pub fn reconcile_resource_state_and_events<'a, S: SubstateDatabase>(
    summary: &StateUpdateSummary,
    events: &Vec<(EventTypeIdentifier, Vec<u8>)>,
    system_db: SystemDatabaseReader<'a, S>
)