@agoric/zoe 0.27.0-u21.0.1 → 0.27.0-u22.1

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/zoe",
3
- "version": "0.27.0-u21.0.1",
3
+ "version": "0.27.0-u22.1",
4
4
  "description": "Zoe: the Smart Contract Framework for Offer Enforcement",
5
5
  "type": "module",
6
6
  "main": "./src/zoeService/zoe.js",
@@ -11,9 +11,9 @@
11
11
  "build": "yarn build:bundles",
12
12
  "build:bundles": "node scripts/build-bundles.js",
13
13
  "prepack": "yarn run -T tsc --build tsconfig.build.json",
14
- "postpack": "git clean -f '*.d.ts*' '*.tsbuildinfo'",
14
+ "postpack": "git clean -f '*.d.*ts*' '*.tsbuildinfo'",
15
15
  "test": "ava --verbose",
16
- "test:c8": "c8 --all $C8_OPTIONS ava",
16
+ "test:c8": "c8 --all ${C8_OPTIONS:-} ava",
17
17
  "test:unit": "ava 'test/unitTests' -T 1m --verbose",
18
18
  "test:swingset": "ava 'test/swingsetTests' -T 10m --verbose",
19
19
  "test:xs": "yarn test:xs-worker",
@@ -43,40 +43,39 @@
43
43
  },
44
44
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
45
45
  "dependencies": {
46
- "@agoric/base-zone": "0.1.1-u21.0.1",
47
- "@agoric/ertp": "0.16.3-u21.0.1",
48
- "@agoric/internal": "0.4.0-u21.0.1",
49
- "@agoric/notifier": "0.7.0-u21.0.1",
50
- "@agoric/store": "0.9.3-u21.0.1",
51
- "@agoric/swingset-liveslots": "0.10.3-u21.0.1",
52
- "@agoric/swingset-vat": "0.33.0-u21.0.1",
53
- "@agoric/time": "0.3.3-u21.0.1",
54
- "@agoric/vat-data": "0.5.3-u21.0.1",
55
- "@agoric/vow": "0.2.0-u21.0.1",
56
- "@agoric/zone": "0.3.0-u21.0.1",
57
- "@endo/bundle-source": "^4.0.0",
58
- "@endo/captp": "^4.4.5",
59
- "@endo/common": "^1.2.10",
60
- "@endo/errors": "^1.2.10",
61
- "@endo/eventual-send": "^1.3.1",
62
- "@endo/exo": "^1.5.9",
63
- "@endo/far": "^1.1.11",
64
- "@endo/import-bundle": "^1.4.0",
65
- "@endo/marshal": "^1.6.4",
66
- "@endo/nat": "^5.1.0",
67
- "@endo/pass-style": "^1.5.0",
68
- "@endo/patterns": "^1.5.0",
69
- "@endo/promise-kit": "^1.1.10",
46
+ "@agoric/base-zone": "0.2.0-u22.1",
47
+ "@agoric/ertp": "0.17.0-u22.1",
48
+ "@agoric/internal": "0.4.0-u22.1",
49
+ "@agoric/notifier": "0.7.0-u22.1",
50
+ "@agoric/store": "0.10.0-u22.1",
51
+ "@agoric/swingset-liveslots": "0.11.0-u22.1",
52
+ "@agoric/swingset-vat": "0.33.0-u22.1",
53
+ "@agoric/time": "0.4.0-u22.1",
54
+ "@agoric/vat-data": "0.6.0-u22.1",
55
+ "@agoric/vow": "0.2.0-u22.1",
56
+ "@agoric/zone": "0.3.0-u22.1",
57
+ "@endo/bundle-source": "^4.1.2",
58
+ "@endo/captp": "^4.4.8",
59
+ "@endo/common": "^1.2.13",
60
+ "@endo/errors": "^1.2.13",
61
+ "@endo/eventual-send": "^1.3.4",
62
+ "@endo/exo": "^1.5.12",
63
+ "@endo/far": "^1.1.14",
64
+ "@endo/import-bundle": "^1.5.2",
65
+ "@endo/marshal": "^1.8.0",
66
+ "@endo/nat": "^5.1.3",
67
+ "@endo/pass-style": "^1.6.3",
68
+ "@endo/patterns": "^1.7.0",
69
+ "@endo/promise-kit": "^1.1.13",
70
70
  "yargs-parser": "^21.1.1"
71
71
  },
72
72
  "devDependencies": {
73
- "@agoric/kmarshal": "0.1.1-u21.0.1",
74
- "@agoric/xsnap": "0.14.3-u21.0.1",
75
- "@endo/init": "^1.1.9",
73
+ "@agoric/kmarshal": "0.2.0-u22.1",
74
+ "@endo/init": "^1.1.12",
76
75
  "ava": "^5.3.0",
77
76
  "c8": "^10.1.3",
78
77
  "import-meta-resolve": "^4.1.0",
79
- "tsd": "^0.31.1"
78
+ "tsd": "^0.33.0"
80
79
  },
81
80
  "files": [
82
81
  "bundles/",
@@ -99,7 +98,7 @@
99
98
  "access": "public"
100
99
  },
101
100
  "typeCoverage": {
102
- "atLeast": 84.69
101
+ "atLeast": 84.66
103
102
  },
104
- "gitHead": "16519b2de1eb2afda2b4ec866f55eadd4bb18223"
103
+ "gitHead": "83a42d0f343b01448a918631dce159b5bdb69b7e"
105
104
  }
@@ -15,7 +15,7 @@ export function setUpZoeForTest<T extends unknown = any>({ setJig, feeIssuerConf
15
15
  }): Promise<{
16
16
  zoe: import("@endo/exo").Guarded<globalThis.ZoeService>;
17
17
  feeMintAccessP: FeeMintAccess;
18
- bundleAndInstall: (pathOrExports: object) => Promise<Installation>;
18
+ bundleAndInstall: (pathOrExports: object, bundleId?: string) => Promise<Installation>;
19
19
  vatAdminSvc: VatAdminSvc;
20
20
  vatAdminState: {
21
21
  getExitMessage: () => any;
@@ -1 +1 @@
1
- {"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AAgBO,gDAFI,WAAW;;;;;;;EAOrB;AAKM,6CAFI,WAAW,sDAGqB;AAapC,gCAPgB,CAAC,mFAErB;IAAmC,MAAM,UAA3B,CAAC,KAAK,IAAI;IACU,eAAe;IACnB,WAAW;IACf,aAAa;CAAC;;;sCAmD9B,MAAM,KACJ,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;GAoBnC;qCApG+C,uBAAuB;kCAAvB,uBAAuB;yCADrB,sBAAsB;gCAAtB,sBAAsB"}
1
+ {"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AAgBO,gDAFI,WAAW;;;;;;;EAOrB;AAKM,6CAFI,WAAW,sDAGqB;AAapC,gCAPgB,CAAC,mFAErB;IAAmC,MAAM,UAA3B,CAAC,KAAK,IAAI;IACU,eAAe;IACnB,WAAW;IACf,aAAa;CAAC;;;sCAoD9B,MAAM,aACN,MAAM,KACJ,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;GAoBnC;qCAtG+C,uBAAuB;kCAAvB,uBAAuB;yCADrB,sBAAsB;gCAAtB,sBAAsB"}
@@ -78,6 +78,7 @@ export const setUpZoeForTest = async ({
78
78
  );
79
79
  // Copy all the properties so this object can be hardened.
80
80
  const exports = { ...pathOrExports };
81
+ // @ts-expect-error Test bundle type needs to make 'test' const.
81
82
  return bundleTestExports(exports);
82
83
  }
83
84
  };
@@ -88,15 +89,16 @@ export const setUpZoeForTest = async ({
88
89
  * upon in tests of this variety.
89
90
  *
90
91
  * @param {object} pathOrExports
92
+ * @param {string} [bundleId]
91
93
  * @returns {Promise<Installation>}
92
94
  */
93
- const bundleAndInstall = async pathOrExports => {
95
+ const bundleAndInstall = async (pathOrExports, bundleId) => {
94
96
  const bundle = await bundleModule(pathOrExports);
95
97
  assert(
96
98
  vatAdminState,
97
99
  'bundleAndInstall called before vatAdminState defined',
98
100
  );
99
- const id = `b1-zoe-test-${Math.random()}`;
101
+ const id = bundleId || `b1-zoe-test-${Math.random()}`;
100
102
  vatAdminState.installBundle(id, bundle);
101
103
  return E(zoeService).installBundleID(id);
102
104
  };