#!/bin/bash
tail -c 500000 ~/EtherGold/dev/data/events.jsonl | grep -E "lab_gameplay_synth_wager|lab_gameplay_synth_skip|trunk_round_stale|eth_tx.*\"tid\": \"E001\"" | tail -40
echo "--- counts ---"
echo -n "wager "; tail -c 800000 ~/EtherGold/dev/data/events.jsonl | grep -c lab_gameplay_synth_wager || true
echo -n "skip "; tail -c 800000 ~/EtherGold/dev/data/events.jsonl | grep -c lab_gameplay_synth_skip || true
echo -n "stale "; tail -c 800000 ~/EtherGold/dev/data/events.jsonl | grep -c trunk_round_stale || true
echo -n "eth_tx_E001 "; tail -c 800000 ~/EtherGold/dev/data/events.jsonl | grep '"tid": "E001"' | grep -c eth_tx || true
