One direct-fill probe’s result - the DirectFill shape of ReplacementNotification: a
single hop re-priced through a direct-fill template, simulated against the state it would
have traded on.
One replayed original - the Original shape of ReplacementNotification: the historical
transaction itself, re-run against the state it was quoted at, so the other two kinds are
scored against a number produced the same way rather than against the chain’s.
One rerouted transaction’s simulation result - the Requote shape of
ReplacementNotification. The historical original still executed; this is the
counterfactual, committed nowhere.
What stood in for a historical swap, streamed over replacementSubscribe. Internally tagged
on kind: three mechanisms answer different questions - metis re-routing a whole transaction,
a probe re-pricing one hop, and the original replayed as its own baseline - so they carry
different shapes rather than one union.
Decode a serde-serialized UiAccount (the pre/post payload shape) into
the wire AccountData shape. Only base64 data is supported; space falls
back to the decoded data length when absent.