@agoric/swingset-vat 0.32.3-dev-9f8a76e.0 → 0.32.3-dev-e68f280.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-9f8a76e.0+9f8a76e",
3
+ "version": "0.32.3-dev-e68f280.0+e68f280",
4
4
  "description": "Vat/Container Launcher",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -27,16 +27,16 @@
27
27
  "@types/yargs-parser": "^21.0.0"
28
28
  },
29
29
  "dependencies": {
30
- "@agoric/assert": "0.6.1-dev-9f8a76e.0+9f8a76e",
31
- "@agoric/internal": "0.3.3-dev-9f8a76e.0+9f8a76e",
32
- "@agoric/store": "0.9.3-dev-9f8a76e.0+9f8a76e",
33
- "@agoric/swing-store": "0.9.2-dev-9f8a76e.0+9f8a76e",
34
- "@agoric/swingset-liveslots": "0.10.3-dev-9f8a76e.0+9f8a76e",
35
- "@agoric/swingset-xsnap-supervisor": "0.10.3-dev-9f8a76e.0+9f8a76e",
36
- "@agoric/time": "0.3.3-dev-9f8a76e.0+9f8a76e",
37
- "@agoric/vat-data": "0.5.3-dev-9f8a76e.0+9f8a76e",
38
- "@agoric/xsnap": "0.14.3-dev-9f8a76e.0+9f8a76e",
39
- "@agoric/xsnap-lockdown": "0.14.1-dev-9f8a76e.0+9f8a76e",
30
+ "@agoric/assert": "0.6.1-dev-e68f280.0+e68f280",
31
+ "@agoric/internal": "0.3.3-dev-e68f280.0+e68f280",
32
+ "@agoric/store": "0.9.3-dev-e68f280.0+e68f280",
33
+ "@agoric/swing-store": "0.9.2-dev-e68f280.0+e68f280",
34
+ "@agoric/swingset-liveslots": "0.10.3-dev-e68f280.0+e68f280",
35
+ "@agoric/swingset-xsnap-supervisor": "0.10.3-dev-e68f280.0+e68f280",
36
+ "@agoric/time": "0.3.3-dev-e68f280.0+e68f280",
37
+ "@agoric/vat-data": "0.5.3-dev-e68f280.0+e68f280",
38
+ "@agoric/xsnap": "0.14.3-dev-e68f280.0+e68f280",
39
+ "@agoric/xsnap-lockdown": "0.14.1-dev-e68f280.0+e68f280",
40
40
  "@endo/base64": "^0.2.32",
41
41
  "@endo/bundle-source": "^2.5.2",
42
42
  "@endo/captp": "^3.1.2",
@@ -93,5 +93,5 @@
93
93
  "publishConfig": {
94
94
  "access": "public"
95
95
  },
96
- "gitHead": "9f8a76ee66bd74f028158b689c4b437921613f63"
96
+ "gitHead": "e68f2805dde79871d1421e50c60f08e854e1851d"
97
97
  }
@@ -6,7 +6,7 @@
6
6
 
7
7
  import '@endo/init/pre-bundle-source.js';
8
8
 
9
- import './prepare-test-env.js';
9
+ import '@agoric/swingset-liveslots/tools/prepare-test-env.js';
10
10
 
11
11
  import '@endo/ses-ava/exported.js';
12
12
 
@@ -1,6 +0,0 @@
1
- // This is like `@endo/init` but sacrificing safety to optimize
2
- // for debugging and testing. The difference is only the lockdown options.
3
- // The setting below are *unsafe* and should not be used in contact with
4
- // genuinely malicious code.
5
-
6
- export * from '@endo/init/debug.js';
@@ -1,14 +0,0 @@
1
- /**
2
- * Prepare Agoric SwingSet vat global environment for testing.
3
- *
4
- * Installs Hardened JS (and does lockdown), plus adds mocks for virtual objects
5
- * and stores.
6
- */
7
-
8
- import '@endo/init/pre.js';
9
-
10
- import './install-ses-debug.js';
11
- import { reincarnate } from './setup-vat-data.js';
12
-
13
- // Install the VatData globals.
14
- reincarnate();
@@ -1,54 +0,0 @@
1
- // @ts-check
2
- /* global globalThis */
3
- // This file produces the globalThis.VatData property outside of a running
4
- // SwingSet so that it can be used by '@agoric/vat-data' (which only *consumes*
5
- // `globalThis.VatData`) in code under test.
6
- import { makeFakeVirtualStuff } from '@agoric/swingset-liveslots/tools/fakeVirtualSupport.js';
7
-
8
- const { WeakMap, WeakSet } = globalThis;
9
-
10
- /** @type {ReturnType<makeFakeVirtualStuff>} */
11
- let fakeVomKit;
12
-
13
- globalThis.VatData = harden({
14
- defineKind: (...args) => fakeVomKit.vom.defineKind(...args),
15
- defineKindMulti: (...args) => fakeVomKit.vom.defineKindMulti(...args),
16
- defineDurableKind: (...args) => fakeVomKit.vom.defineDurableKind(...args),
17
- defineDurableKindMulti: (...args) =>
18
- fakeVomKit.vom.defineDurableKindMulti(...args),
19
- makeKindHandle: (...args) => fakeVomKit.vom.makeKindHandle(...args),
20
- canBeDurable: (...args) => fakeVomKit.vom.canBeDurable(...args),
21
- providePromiseWatcher: (...args) =>
22
- fakeVomKit.wpm.providePromiseWatcher(...args),
23
- watchPromise: (...args) => fakeVomKit.wpm.watchPromise(...args),
24
- makeScalarBigMapStore: (...args) =>
25
- fakeVomKit.cm.makeScalarBigMapStore(...args),
26
- makeScalarBigWeakMapStore: (...args) =>
27
- fakeVomKit.cm.makeScalarBigWeakMapStore(...args),
28
- makeScalarBigSetStore: (...args) =>
29
- fakeVomKit.cm.makeScalarBigSetStore(...args),
30
- makeScalarBigWeakSetStore: (...args) =>
31
- fakeVomKit.cm.makeScalarBigWeakSetStore(...args),
32
- });
33
-
34
- export const reincarnate = (options = {}) => {
35
- const { fakeStore = new Map(), fakeVomKit: fvk } = options;
36
-
37
- if (options.fakeVomKit) {
38
- fvk.vom.flushStateCache();
39
- fvk.cm.flushSchemaCache();
40
- fvk.vrm.flushIDCounters();
41
- }
42
-
43
- fakeVomKit = makeFakeVirtualStuff({
44
- ...options,
45
- fakeStore,
46
- WeakMap,
47
- WeakSet,
48
- });
49
-
50
- globalThis.WeakMap = fakeVomKit.vom.VirtualObjectAwareWeakMap;
51
- globalThis.WeakSet = fakeVomKit.vom.VirtualObjectAwareWeakSet;
52
-
53
- return { ...options, fakeStore, fakeVomKit };
54
- };