dec | 18-digit fixed-point decimal (LegacyDec precision), half-up rounding, tick floor/ceil, fuzz test |
book | L2 book, validation, mid/spread/depth, taker walk, O(n) level diff, exchange tick and min-notional checks |
fba | Frequent batch auction: stage 1 market orders, stage 2 limit orders with uniform clearing price; tests are the two worked examples in the Injective API docs |
client | LCD client: hedged requests across 4 public endpoints, seq guard against lagging nodes, per-endpoint health |
cmd/wasm | Browser entry: exposes the packages to JS as Promises (net/http runs on fetch) |
cmd/injbook | CLI: live book + taker cost for any market |
cmd/bookd | REST + WebSocket server: one poller per market fans out snapshots and diffs to every client |