Skip to main content

Module pipeline

Module pipeline 

Source
Expand description

Commitment pipeline: converts engine state deltas into Merkle roots.

The pipeline is the bridge between the engine (which knows nothing about Merkle trees) and the JMT store (which knows nothing about accounts or positions). The integration layer in the main binary feeds StateDeltas in; the pipeline produces BatchCommitments out.

Engine → apply() → events → integration layer → StateDelta
                                                     ↓
                                             CommitmentPipeline
                                                     ↓
                                             BatchCommitment { state_root, risk_root, batch_root }

Structs§

AccountUpdate
BatchCommitment
Output of a batch commitment.
CommitmentPipeline
The commitment pipeline.
InstrumentUpdate
MmpConfigUpdate
OptionPositionUpdate
OracleUpdate
OrderUpdate
PerpPositionUpdate
PreparedBatchCommitment
RiskUpdate
StateDelta
A batch of state changes to commit.