UNPKG

@metamask/ocap-kernel

Version:
1 lines 810 B
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/rpc/vat-syscall/index.ts"],"names":[],"mappings":";;;AAKA,sDAAqE;AAExD,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,kCAAiB;CACgB,CAAC;AAEhC,QAAA,qBAAqB,GAAG;IACnC,OAAO,EAAE,+BAAc;CACmB,CAAC","sourcesContent":["import type {\n MethodSpecRecord,\n HandlerRecord,\n} from '@metamask/kernel-rpc-methods';\n\nimport { vatSyscallSpec, vatSyscallHandler } from './vat-syscall.ts';\n\nexport const vatSyscallHandlers = {\n syscall: vatSyscallHandler,\n} as HandlerRecord<typeof vatSyscallHandler>;\n\nexport const vatSyscallMethodSpecs = {\n syscall: vatSyscallSpec,\n} as MethodSpecRecord<typeof vatSyscallSpec>;\n\ntype Handlers = (typeof vatSyscallHandlers)[keyof typeof vatSyscallHandlers];\n\nexport type VatSyscallMethod = Handlers['method'];\n"]}