app/src/hooks/useNeuroBeast.ts TypeScript
Custom React hook that abstracts all blockchain interactions into a clean API. Manages pet data fetching, minting, feeding, and playing — with loading state, error handling, and automatic refresh when the connected wallet changes.
app/src/utils/anchor.ts TypeScript
Anchor program initialization and PDA (Program Derived Address) derivation utilities. Provides typed helper functions for deriving NeuroBeast, Inventory, and Config account addresses from seeds.