@metamask/ocap-kernel
Version:
OCap kernel core components
1 lines • 1.04 kB
Source Map (JSON)
{"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../../../src/rpc/vat/shared.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,8BAA8B;AAI7E,MAAM,CAAC,MAAM,mBAAmB,GAA0B,KAAK,CAAC;IAC9D,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IAClC,KAAK,CAAC,MAAM,EAAE,CAAC;CAChB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAA8B,KAAK,CAAC;IACtE,mBAAmB;IACnB,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;CACjC,CAAC,CAAC","sourcesContent":["import type { VatCheckpoint } from '@metamask/kernel-store';\nimport type { Struct } from '@metamask/superstruct';\nimport { tuple, array, string, union, literal } from '@metamask/superstruct';\n\nimport type { VatDeliveryResult } from '../../types.ts';\n\nexport const VatCheckpointStruct: Struct<VatCheckpoint> = tuple([\n array(tuple([string(), string()])),\n array(string()),\n]);\n\nexport const VatDeliveryResultStruct: Struct<VatDeliveryResult> = tuple([\n VatCheckpointStruct,\n union([string(), literal(null)]),\n]);\n"]}