import { Space } from "../space"; import { SysCallMapping } from "../../plugos/system"; import { transportSyscalls } from "../../plugos/syscalls/transport"; export default function indexerSyscalls(space: Space): SysCallMapping { return transportSyscalls( [ "scanPrefixForPage", "scanPrefixGlobal", "get", "set", "batchSet", "delete", ], (name, ...args) => space.wsCall(`index.${name}`, ...args) ); }