15 lines
450 B
Python
15 lines
450 B
Python
from __future__ import annotations
|
|
from typing import List
|
|
from ..dsl import LocalEvent, PlanDelta, OrderEvent, FillEvent
|
|
from ..replay import ReplayEngine
|
|
|
|
class ReplayHarness:
|
|
"""
|
|
Tiny harness to run a deterministic replay end-to-end on a toy delta-stream.
|
|
"""
|
|
def __init__(self, delta_stream: List[object], event_log: List[object]):
|
|
self.engine = ReplayEngine(delta_stream, event_log)
|
|
|
|
def run(self):
|
|
return self.engine.replay()
|