Skip to content

Commit

Permalink
refactor(swingset-vat): replace storeModule with VatData export
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Feb 18, 2022
1 parent 7c6e3a7 commit 99131c7
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 28 deletions.
18 changes: 0 additions & 18 deletions packages/SwingSet/src/storeModule.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Far } from '@endo/marshal';
import { makeKind, makeScalarBigWeakMapStore } from '../../src/storeModule.js';

import { VatData } from '../../src/index.js';

const { makeKind, makeScalarBigWeakMapStore } = VatData;

let stuff;

Expand Down
5 changes: 4 additions & 1 deletion packages/SwingSet/test/virtualObjects/vat-vom-gc-bob.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { E } from '@agoric/eventual-send';
import { Far } from '@endo/marshal';
import { makeKind } from '../../src/storeModule.js';

import { VatData } from '../../src/index.js';

const { makeKind } = VatData;

const things = [];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Far } from '@endo/marshal';
import { makeKind } from '../../src/storeModule.js';

import { VatData } from '../../src/index.js';

const { makeKind } = VatData;

function makeHolderInnards(state) {
function init(value) {
Expand Down
4 changes: 3 additions & 1 deletion packages/swingset-runner/demo/vatStore1/vat-bob.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { Far } from '@endo/marshal';
import { makeKind } from '@agoric/swingset-vat/src/storeModule.js';
import { VatData } from '@agoric/swingset-vat';

const { makeKind } = VatData;

const p = console.log;

Expand Down
7 changes: 3 additions & 4 deletions packages/swingset-runner/demo/vatStore2/thingHolder.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { E } from '@agoric/eventual-send';
import { Far } from '@endo/marshal';
import {
makeKind,
makeScalarBigWeakMapStore,
} from '@agoric/swingset-vat/src/storeModule.js';
import { VatData } from '@agoric/swingset-vat';

const { makeKind, makeScalarBigWeakMapStore } = VatData;

const p = console.log;

Expand Down
4 changes: 3 additions & 1 deletion packages/swingset-runner/demo/vatStore3/vat-bob.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { E } from '@agoric/eventual-send';
import { Far } from '@endo/marshal';
import { makeKind } from '@agoric/swingset-vat/src/storeModule.js';
import { VatData } from '@agoric/swingset-vat';

const { makeKind } = VatData;

const things = [];

Expand Down
5 changes: 4 additions & 1 deletion packages/swingset-runner/demo/virtualObjectGC/vat-bob.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { E } from '@agoric/eventual-send';
import { Far } from '@endo/marshal';
import { makeKind } from '@agoric/swingset-vat/src/storeModule.js';

import { VatData } from '@agoric/swingset-vat';

const { makeKind } = VatData;

export function buildRootObject(_vatPowers) {
function makeThingInnards(state) {
Expand Down
1 change: 1 addition & 0 deletions packages/zoe/test/minimalMakeKindContract.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// NB: cannot import, breaks bundle building
/* global VatData */

const start = _zcf => {
Expand Down

0 comments on commit 99131c7

Please sign in to comment.