-record(snapshot, {sequence :: integer(), state :: any()}).