Device
Device and equipment management hooks
Hooks for device validation, facility management, and equipment operations.
Package
@tetherto/mdk-react-adapter
Hooks
@tetherto/mdk-react-adapter
Import the public APIs on this page from @tetherto/mdk-react-adapter.
useMinerDuplicateValidation
Async validation hook that flags duplicate miners against the device inventory (MAC / serial / IP / human-facing code).
() => { duplicateError: boolean; isDuplicateCheckLoading: boolean; checkDuplicate: (selectedEditSocket: { miner?: { id?: string | undefined; } | undefined; } | null, { macAddress, serialNumber, addre…usePduViewer
Pan/zoom controller for the PDU floor-plan viewer.
() => UsePduViewerReturnuseStaticMinerIpAssignment
Derives the static IP address a miner should receive based on its physical position (container number + socket coordinates).
(selectedEditSocket: Partial<SelectedEditSocket>) => { minerIp: string; setMinerIp: React.Dispatch<React.SetStateAction<string>>; isStaticIpAssignment: boolean; }