How we built MUD An On chain Kernel for Complex Applications
summary
A lightweight onchain kernel called MUD implements a single bytes32 key + bytes value update event so one sync stack handles all state changes, uses abi.encodePacked for tight storage packing plus a custom encoder for arrays, provides per-primitive-array overloads to accept any array type, and emits updates automatically via a store library; missing generic returns are handled by code generation, and the result is automatic client synchronization from onchain state with reduced gas overhead.
AI-written summary · about
chapters (5)
- 0:00MUD introduction
- 3:58Dream dev experience
- 7:32Encoding state updates
- 10:00Arrays and type encoding
- 13:11Type-safe state codegen








