> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kuru.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Events and Operation Outcomes

> Decode receipts without confusing successful submission with a resting order.

Use `decodeKuruEventLog` to identify ABI events, then `decodeTradesPacked` or `decodeBookUpdatesPacked` for their packed payloads. Mixed receipts may contain unrelated token logs; only ignore a decoding failure when the emitting address/event is outside the integration's expected scope.

## Operation outcomes

Trade records remain 64 bytes; book records remain 39 bytes. Outcome information occupies previously reserved bits. The SDK exposes `outcome`, operation correlation, and sentinel identification.

| Value | Outcome |
| - | - |
| 0 | `NONE` |
| 1 | `FILLED` |
| 2 | `RESTED` |
| 3 | `COMPLETED_NO_REST` |
| 4 | `IOC_PARTIAL` |
| 5 | `IOC_UNFILLED` |
| 6 | `POST_ONLY_NOT_PLACED` |
| 7 | `CANCELLED` |
| 8 | `PROTOCOL_CANCELLED` |
| 9 | `CANCEL_NOOP` |
| 10 | `DUST_REMAINDER_DISCARDED` |

Mask the base flags rather than comparing a full flag byte to a single value. Book outcomes use a one-bit shift; trade outcomes use a three-bit shift. Operation index and replacement-slot fields are meaningful according to the outcome record's context.

## Book state and match completion

Zero-delta book sentinels report otherwise silent outcomes. Record the outcome but skip the sentinel for L2 and L3 changes. Ordinary live and delete records still mutate book state.

`MATCH_END` closes a nonempty match's fee-accounting boundary. It does not by itself mean the incoming order filled completely. In particular, the final record may be a passive fill carrying the parent operation's outcome.

Use [OrderBook Events](/indexing/order-book) for exact layouts, passive/active settlement, and reducer ordering. Use AccountCore balance snapshots to reconcile custody independently.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.