@agoric/swingset-vat 0.32.3-dev-5c28f49.0 → 0.32.3-dev-3c1b9a2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/swingset-vat",
3
- "version": "0.32.3-dev-5c28f49.0+5c28f49",
3
+ "version": "0.32.3-dev-3c1b9a2.0+3c1b9a2",
4
4
  "description": "Vat/Container Launcher",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -27,17 +27,17 @@
27
27
  "@types/yargs-parser": "^21.0.0"
28
28
  },
29
29
  "dependencies": {
30
- "@agoric/assert": "0.6.1-dev-5c28f49.0+5c28f49",
31
- "@agoric/internal": "0.3.3-dev-5c28f49.0+5c28f49",
32
- "@agoric/kmarshal": "0.1.1-dev-5c28f49.0+5c28f49",
33
- "@agoric/store": "0.9.3-dev-5c28f49.0+5c28f49",
34
- "@agoric/swing-store": "0.9.2-dev-5c28f49.0+5c28f49",
35
- "@agoric/swingset-liveslots": "0.10.3-dev-5c28f49.0+5c28f49",
36
- "@agoric/swingset-xsnap-supervisor": "0.10.3-dev-5c28f49.0+5c28f49",
37
- "@agoric/time": "0.3.3-dev-5c28f49.0+5c28f49",
38
- "@agoric/vat-data": "0.5.3-dev-5c28f49.0+5c28f49",
39
- "@agoric/xsnap": "0.14.3-dev-5c28f49.0+5c28f49",
40
- "@agoric/xsnap-lockdown": "0.14.1-dev-5c28f49.0+5c28f49",
30
+ "@agoric/assert": "0.6.1-dev-3c1b9a2.0+3c1b9a2",
31
+ "@agoric/internal": "0.3.3-dev-3c1b9a2.0+3c1b9a2",
32
+ "@agoric/kmarshal": "0.1.1-dev-3c1b9a2.0+3c1b9a2",
33
+ "@agoric/store": "0.9.3-dev-3c1b9a2.0+3c1b9a2",
34
+ "@agoric/swing-store": "0.9.2-dev-3c1b9a2.0+3c1b9a2",
35
+ "@agoric/swingset-liveslots": "0.10.3-dev-3c1b9a2.0+3c1b9a2",
36
+ "@agoric/swingset-xsnap-supervisor": "0.10.3-dev-3c1b9a2.0+3c1b9a2",
37
+ "@agoric/time": "0.3.3-dev-3c1b9a2.0+3c1b9a2",
38
+ "@agoric/vat-data": "0.5.3-dev-3c1b9a2.0+3c1b9a2",
39
+ "@agoric/xsnap": "0.14.3-dev-3c1b9a2.0+3c1b9a2",
40
+ "@agoric/xsnap-lockdown": "0.14.1-dev-3c1b9a2.0+3c1b9a2",
41
41
  "@endo/base64": "^1.0.3",
42
42
  "@endo/bundle-source": "^3.2.1",
43
43
  "@endo/captp": "^4.1.0",
@@ -102,5 +102,5 @@
102
102
  "typeCoverage": {
103
103
  "atLeast": 75.02
104
104
  },
105
- "gitHead": "5c28f496976128e59e0e5a8f1a8c24f7b496527d"
105
+ "gitHead": "3c1b9a228963557eda54de21ef1db9cecff08c6f"
106
106
  }
@@ -33,12 +33,7 @@ import { makeDeviceTranslators } from './deviceTranslator.js';
33
33
  import { notifyTermination } from './notifyTermination.js';
34
34
  import { makeVatAdminHooks } from './vat-admin-hooks.js';
35
35
 
36
- /**
37
- * @typedef {import('@agoric/swingset-liveslots').VatDeliveryObject} VatDeliveryObject
38
- * @typedef {import('@agoric/swingset-liveslots').VatDeliveryResult} VatDeliveryResult
39
- * @typedef {import('@agoric/swingset-liveslots').VatSyscallObject} VatSyscallObject
40
- * @typedef {import('@agoric/swingset-liveslots').VatSyscallResult} VatSyscallResult
41
- */
36
+ /** @import * as liveslots from '@agoric/swingset-liveslots' */
42
37
 
43
38
  function abbreviateReplacer(_, arg) {
44
39
  if (typeof arg === 'bigint') {
@@ -390,7 +385,7 @@ export default function buildKernel(
390
385
  *
391
386
  * @param {VatID} vatID
392
387
  * @param {KernelDeliveryObject} kd
393
- * @param {VatDeliveryObject} vd
388
+ * @param {liveslots.VatDeliveryObject} vd
394
389
  */
395
390
  async function deliverAndLogToVat(vatID, kd, vd) {
396
391
  vatRequestedTermination = undefined;
@@ -400,7 +395,7 @@ export default function buildKernel(
400
395
  const vs = kernelSlog.provideVatSlogger(vatID).vatSlog;
401
396
  await null;
402
397
  try {
403
- /** @type { VatDeliveryResult } */
398
+ /** @type { liveslots.VatDeliveryResult } */
404
399
  const deliveryResult = await vatWarehouse.deliverToVat(vatID, kd, vd, vs);
405
400
  insistVatDeliveryResult(deliveryResult);
406
401
  // const [ ok, problem, usage ] = deliveryResult;
@@ -1447,8 +1442,8 @@ export default function buildKernel(
1447
1442
  // not
1448
1443
  /**
1449
1444
  *
1450
- * @param {VatSyscallObject} vatSyscallObject
1451
- * @returns {VatSyscallResult}
1445
+ * @param {liveslots.VatSyscallObject} vatSyscallObject
1446
+ * @returns {liveslots.VatSyscallResult}
1452
1447
  */
1453
1448
  function vatSyscallHandler(vatSyscallObject) {
1454
1449
  if (!vatWarehouse.lookup(vatID)) {
@@ -1463,7 +1458,7 @@ export default function buildKernel(
1463
1458
  let ksc;
1464
1459
  /** @type { KernelSyscallResult } */
1465
1460
  let kres = harden(['error', 'incomplete']);
1466
- /** @type { VatSyscallResult } */
1461
+ /** @type { liveslots.VatSyscallResult } */
1467
1462
  let vres = harden(['error', 'incomplete']);
1468
1463
 
1469
1464
  try {
@@ -1,3 +1,5 @@
1
+ /** @import { ERef } from '@endo/far' */
2
+
1
3
  export {};
2
4
 
3
5
  /* This file defines types that part of the external API of swingset. That
@@ -353,10 +355,10 @@ export {};
353
355
  * @property {VatAdminFacet} adminNode
354
356
  *
355
357
  * @typedef {object} VatAdminSvc
356
- * @property {(id: BundleID) => import('@endo/far').ERef<BundleCap>} waitForBundleCap
357
- * @property {(id: BundleID) => import('@endo/far').ERef<BundleCap>} getBundleCap
358
- * @property {(name: string) => import('@endo/far').ERef<BundleCap>} getNamedBundleCap
359
- * @property {(name: string) => import('@endo/far').ERef<BundleID>} getBundleIDByName
360
- * @property {(bundleCap: BundleCap, options?: DynamicVatOptions) => import('@endo/far').ERef<CreateVatResults>} createVat
358
+ * @property {(id: BundleID) => ERef<BundleCap>} waitForBundleCap
359
+ * @property {(id: BundleID) => ERef<BundleCap>} getBundleCap
360
+ * @property {(name: string) => ERef<BundleCap>} getNamedBundleCap
361
+ * @property {(name: string) => ERef<BundleID>} getBundleIDByName
362
+ * @property {(bundleCap: BundleCap, options?: DynamicVatOptions) => ERef<CreateVatResults>} createVat
361
363
  *
362
364
  */
@@ -2,6 +2,8 @@ import { Fail, q } from '@agoric/assert';
2
2
  import { kunser } from '@agoric/kmarshal';
3
3
  import { makeQueue } from '@endo/stream';
4
4
 
5
+ /** @import { ERef } from '@endo/far' */
6
+
5
7
  /**
6
8
  * @param {import('../src/controller/controller.js').SwingsetController} controller
7
9
  */
@@ -15,7 +17,7 @@ export const makeRunUtils = controller => {
15
17
  * Wait for exclusive access to the controller, then before relinquishing that access,
16
18
  * enqueue and process a delivery and return the result.
17
19
  *
18
- * @param {() => import('@endo/far').ERef<void | ReturnType<controller['queueToVatObject']>>} deliveryThunk
20
+ * @param {() => ERef<void | ReturnType<controller['queueToVatObject']>>} deliveryThunk
19
21
  * function for enqueueing a delivery and returning the result kpid (if any)
20
22
  * @param {boolean} [voidResult] whether to ignore the result
21
23
  * @returns {Promise<any>}