-record(event_store, { eventstore :: any(), load_aggregate :: fun((any(), binary()) -> eventsourcing:aggregate_context(any(), any(), any(), any())), commit :: fun((any(), eventsourcing:aggregate_context(any(), any(), any(), any()), list(any())) -> list(eventsourcing:event_envelop(any()))) }).