Expand description
Engine command and output types.
Every state mutation enters the engine as an EngineCommand. The engine
processes commands synchronously and returns an ApplyOutput containing
the events produced and a state hash for replication.
apply(state, EngineCommand) -> ApplyOutput { events, hash }Commands are the only way to change engine state. The engine never reads from external services, databases, or the network during command processing.
Structsยง
- Accrue
PmSettlement Interest Command - Apply
Output - Output from
apply(): the events produced and a state hash. - Apply
PmSettlement Repayment Command - Journal
PmRecovery Plan Command - Mark
PmRecovery Action Submitted Command - Market
Action Command - PmRecovery
Action Command - PmRecovery
Plan Command - PmSettlement
Event Key - Record
PmVault Deposit Command - Request
PmVault Withdrawal Command - Resolve
PmRecovery Action Command - RfqExecute
Command - RfqExecute
Leg - SetPm
Settlement Pool Config Command - Tick
Expiry Context - Tick
Expiry DueGroup - Tick
Expiry Pending Group - Tick
Expiry PmSettlement - Tick
Expiry Settlement Price - Tick
Expiry Wallet Margin Mode
Enumsยง
- Engine
Command - Commands that mutate engine state.
- PmRecovery
Action Kind - PmRecovery
Action Result - PmRecovery
External Kind - PmRecovery
Reason - PmRecovery
Trigger - RfqExecute
Result