@agoric/vats 0.15.2-dev-9d19b12.0 → 0.15.2-dev-5263feb.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/vats",
3
- "version": "0.15.2-dev-9d19b12.0+9d19b12",
3
+ "version": "0.15.2-dev-5263feb.0+5263feb",
4
4
  "description": "Agoric's Vat library",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -22,18 +22,18 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/assert": "0.6.1-dev-9d19b12.0+9d19b12",
26
- "@agoric/ertp": "0.16.3-dev-9d19b12.0+9d19b12",
27
- "@agoric/governance": "0.10.4-dev-9d19b12.0+9d19b12",
28
- "@agoric/internal": "0.3.3-dev-9d19b12.0+9d19b12",
29
- "@agoric/network": "0.1.1-dev-9d19b12.0+9d19b12",
30
- "@agoric/notifier": "0.6.3-dev-9d19b12.0+9d19b12",
31
- "@agoric/store": "0.9.3-dev-9d19b12.0+9d19b12",
32
- "@agoric/swingset-vat": "0.32.3-dev-9d19b12.0+9d19b12",
33
- "@agoric/time": "0.3.3-dev-9d19b12.0+9d19b12",
34
- "@agoric/vat-data": "0.5.3-dev-9d19b12.0+9d19b12",
35
- "@agoric/zoe": "0.26.3-dev-9d19b12.0+9d19b12",
36
- "@agoric/zone": "0.2.3-dev-9d19b12.0+9d19b12",
25
+ "@agoric/assert": "0.6.1-dev-5263feb.0+5263feb",
26
+ "@agoric/ertp": "0.16.3-dev-5263feb.0+5263feb",
27
+ "@agoric/governance": "0.10.4-dev-5263feb.0+5263feb",
28
+ "@agoric/internal": "0.3.3-dev-5263feb.0+5263feb",
29
+ "@agoric/network": "0.1.1-dev-5263feb.0+5263feb",
30
+ "@agoric/notifier": "0.6.3-dev-5263feb.0+5263feb",
31
+ "@agoric/store": "0.9.3-dev-5263feb.0+5263feb",
32
+ "@agoric/swingset-vat": "0.32.3-dev-5263feb.0+5263feb",
33
+ "@agoric/time": "0.3.3-dev-5263feb.0+5263feb",
34
+ "@agoric/vat-data": "0.5.3-dev-5263feb.0+5263feb",
35
+ "@agoric/zoe": "0.26.3-dev-5263feb.0+5263feb",
36
+ "@agoric/zone": "0.2.3-dev-5263feb.0+5263feb",
37
37
  "@endo/far": "^0.2.21",
38
38
  "@endo/import-bundle": "^0.4.1",
39
39
  "@endo/marshal": "^0.8.8",
@@ -44,7 +44,7 @@
44
44
  "jessie.js": "^0.3.2"
45
45
  },
46
46
  "devDependencies": {
47
- "@agoric/swingset-liveslots": "0.10.3-dev-9d19b12.0+9d19b12",
47
+ "@agoric/swingset-liveslots": "0.10.3-dev-5263feb.0+5263feb",
48
48
  "@endo/bundle-source": "^2.7.0",
49
49
  "@endo/init": "^0.5.59",
50
50
  "ava": "^5.3.0",
@@ -78,5 +78,5 @@
78
78
  "typeCoverage": {
79
79
  "atLeast": 90.86
80
80
  },
81
- "gitHead": "9d19b124add119a92fa387d7d453e05c1a2d55d8"
81
+ "gitHead": "5263febc3eb667796dc659b150d1dcb4108453d9"
82
82
  }
@@ -0,0 +1,28 @@
1
+ export function nullUpgradeZoe({ consume: { vatAdminSvc, vatStore } }: BootstrapPowers & {
2
+ consume: {
3
+ vatAdminSvc: VatAdminSve;
4
+ vatStore: MapStore<string, CreateVatResults>;
5
+ };
6
+ }, options: {
7
+ options: {
8
+ zoeRef: VatSourceRef;
9
+ zcfRef: VatSourceRef;
10
+ };
11
+ }): Promise<void>;
12
+ export function getManifestForUpgradingZoe(_powers: any, { zoeRef }: {
13
+ zoeRef: any;
14
+ }): {
15
+ manifest: {
16
+ [x: string]: {
17
+ consume: {
18
+ vatAdminSvc: string;
19
+ vatStore: string;
20
+ };
21
+ produce: {};
22
+ };
23
+ };
24
+ options: {
25
+ zoeRef: any;
26
+ };
27
+ };
28
+ //# sourceMappingURL=null-upgrade-zoe-proposal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"null-upgrade-zoe-proposal.d.ts","sourceRoot":"","sources":["null-upgrade-zoe-proposal.js"],"names":[],"mappings":"AAYO,uEATI,eAAe,GAAG;IAC5B,OAAW,EAAE;QACb,WAAiB,cAAc;QAC/B,QAAc,EAAE,SAAS,MAAM,mBAAmB,CAAC;KAC9C,CAAC;CACH;;gBAEiB,YAAY;gBAAU,YAAY;;kBActD;AAEM;;;;;;;;;;;;;;;EAWL"}
@@ -0,0 +1,38 @@
1
+ import { E } from '@endo/far';
2
+
3
+ /**
4
+ * @param {BootstrapPowers & {
5
+ * consume: {
6
+ * vatAdminSvc: VatAdminSve;
7
+ * vatStore: MapStore<string, CreateVatResults>;
8
+ * };
9
+ * }} powers
10
+ * @param {object} options
11
+ * @param {{ zoeRef: VatSourceRef; zcfRef: VatSourceRef }} options.options
12
+ */
13
+ export const nullUpgradeZoe = async (
14
+ { consume: { vatAdminSvc, vatStore } },
15
+ options,
16
+ ) => {
17
+ const { zoeRef } = options.options;
18
+
19
+ const zoeBundleCap = await E(vatAdminSvc).getBundleCap(zoeRef.bundleID);
20
+ console.log(`ZOE BUNDLE ID: `, zoeRef.bundleID);
21
+
22
+ const { adminNode } = await E(vatStore).get('zoe');
23
+
24
+ await E(adminNode).upgrade(zoeBundleCap, {});
25
+ };
26
+
27
+ export const getManifestForUpgradingZoe = (_powers, { zoeRef }) => ({
28
+ manifest: {
29
+ [nullUpgradeZoe.name]: {
30
+ consume: {
31
+ vatAdminSvc: 'vatAdminSvc',
32
+ vatStore: 'vatStore',
33
+ },
34
+ produce: {},
35
+ },
36
+ },
37
+ options: { zoeRef },
38
+ });