pub fn make_staking_events(logs: &[LogEntry]) -> Vec<StakingEvent>