@agoric/vats 0.15.2-dev-db0b9d7.0 → 0.15.2-dev-d95c80d.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-db0b9d7.0+db0b9d7",
3
+ "version": "0.15.2-dev-d95c80d.0+d95c80d",
4
4
  "description": "Agoric's Vat library",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -22,19 +22,19 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/assert": "0.6.1-dev-db0b9d7.0+db0b9d7",
26
- "@agoric/cosmic-proto": "0.4.1-dev-db0b9d7.0+db0b9d7",
27
- "@agoric/ertp": "0.16.3-dev-db0b9d7.0+db0b9d7",
28
- "@agoric/governance": "0.10.4-dev-db0b9d7.0+db0b9d7",
29
- "@agoric/internal": "0.3.3-dev-db0b9d7.0+db0b9d7",
30
- "@agoric/network": "0.1.1-dev-db0b9d7.0+db0b9d7",
31
- "@agoric/notifier": "0.6.3-dev-db0b9d7.0+db0b9d7",
32
- "@agoric/store": "0.9.3-dev-db0b9d7.0+db0b9d7",
33
- "@agoric/swingset-vat": "0.32.3-dev-db0b9d7.0+db0b9d7",
34
- "@agoric/time": "0.3.3-dev-db0b9d7.0+db0b9d7",
35
- "@agoric/vat-data": "0.5.3-dev-db0b9d7.0+db0b9d7",
36
- "@agoric/zoe": "0.26.3-dev-db0b9d7.0+db0b9d7",
37
- "@agoric/zone": "0.2.3-dev-db0b9d7.0+db0b9d7",
25
+ "@agoric/assert": "0.6.1-dev-d95c80d.0+d95c80d",
26
+ "@agoric/cosmic-proto": "0.4.1-dev-d95c80d.0+d95c80d",
27
+ "@agoric/ertp": "0.16.3-dev-d95c80d.0+d95c80d",
28
+ "@agoric/governance": "0.10.4-dev-d95c80d.0+d95c80d",
29
+ "@agoric/internal": "0.3.3-dev-d95c80d.0+d95c80d",
30
+ "@agoric/network": "0.1.1-dev-d95c80d.0+d95c80d",
31
+ "@agoric/notifier": "0.6.3-dev-d95c80d.0+d95c80d",
32
+ "@agoric/store": "0.9.3-dev-d95c80d.0+d95c80d",
33
+ "@agoric/swingset-vat": "0.32.3-dev-d95c80d.0+d95c80d",
34
+ "@agoric/time": "0.3.3-dev-d95c80d.0+d95c80d",
35
+ "@agoric/vat-data": "0.5.3-dev-d95c80d.0+d95c80d",
36
+ "@agoric/zoe": "0.26.3-dev-d95c80d.0+d95c80d",
37
+ "@agoric/zone": "0.2.3-dev-d95c80d.0+d95c80d",
38
38
  "@endo/far": "^1.1.1",
39
39
  "@endo/import-bundle": "^1.1.1",
40
40
  "@endo/marshal": "^1.4.1",
@@ -45,7 +45,7 @@
45
45
  "jessie.js": "^0.3.4"
46
46
  },
47
47
  "devDependencies": {
48
- "@agoric/swingset-liveslots": "0.10.3-dev-db0b9d7.0+db0b9d7",
48
+ "@agoric/swingset-liveslots": "0.10.3-dev-d95c80d.0+d95c80d",
49
49
  "@endo/bundle-source": "^3.2.2",
50
50
  "@endo/init": "^1.1.1",
51
51
  "ava": "^5.3.0",
@@ -78,5 +78,5 @@
78
78
  "typeCoverage": {
79
79
  "atLeast": 91.5
80
80
  },
81
- "gitHead": "db0b9d70315699b173561f9b422d81f4068576de"
81
+ "gitHead": "d95c80dc5cbd0bd408d0170f4d99cbf10378d0a8"
82
82
  }
@@ -1 +1 @@
1
- {"version":3,"file":"probeZcfBundle.d.ts","sourceRoot":"","sources":["probeZcfBundle.js"],"names":[],"mappings":"AAIO;;;;;;;;;gCAiDN;AAGM;;;;;;;;;;;;;;EAcL"}
1
+ {"version":3,"file":"probeZcfBundle.d.ts","sourceRoot":"","sources":["probeZcfBundle.js"],"names":[],"mappings":"AAIO;;;;;;;;;gCAmDN;AAGM;;;;;;;;;;;;;;EAcL"}
@@ -48,7 +48,9 @@ export const probeZcfBundleCap = async (
48
48
  await E(adminNode).upgrade(zoeBundleCap, {});
49
49
 
50
50
  // STEP 4: restart WF ////////////////////////
51
- await E(walletAdminFacet).restartContract(privateArgs);
51
+ // Need to use `upgradeContract` instead of `restartContract`
52
+ // See https://github.com/Agoric/agoric-sdk/issues/9249
53
+ await E(walletAdminFacet).upgradeContract(walletRef.bundleID, privateArgs);
52
54
 
53
55
  // ////// See which zcf bundle was used //////////
54
56
  };
@@ -0,0 +1,33 @@
1
+ export function upgradeZcfOnly({ consume: { vatStore } }: BootstrapPowers, options: {
2
+ options: {
3
+ zcfRef: VatSourceRef;
4
+ };
5
+ }): Promise<void>;
6
+ export function main({ consume: { vatStore } }: BootstrapPowers, options: {
7
+ options: {
8
+ zcfRef: VatSourceRef;
9
+ };
10
+ }): Promise<void>;
11
+ export namespace permit {
12
+ namespace consume {
13
+ let vatStore: boolean;
14
+ }
15
+ }
16
+ export const manifest: {
17
+ [x: string]: {
18
+ consume: {
19
+ vatStore: boolean;
20
+ };
21
+ };
22
+ };
23
+ export function getManifestForUpgradingZcf(_powers: any, options: any): {
24
+ manifest: {
25
+ [x: string]: {
26
+ consume: {
27
+ vatStore: boolean;
28
+ };
29
+ };
30
+ };
31
+ options: any;
32
+ };
33
+ //# sourceMappingURL=zcf-only-proposal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zcf-only-proposal.d.ts","sourceRoot":"","sources":["zcf-only-proposal.js"],"names":[],"mappings":"AAQO,0DAJI,eAAe;IAEmB,OAAO,EAAzC;QAAE,MAAM,EAAE,YAAY,CAAA;KAAE;kBAUlC;AARM,gDAJI,eAAe;IAEmB,OAAO,EAAzC;QAAE,MAAM,EAAE,YAAY,CAAA;KAAE;kBAUlC;;;;;;AAYD;;;;;;EAEE;AAEK;;;;;;;;;EAGL"}
@@ -0,0 +1,36 @@
1
+ // @ts-check
2
+ import { E } from '@endo/far';
3
+
4
+ /**
5
+ * @param {BootstrapPowers} powers
6
+ * @param {object} options
7
+ * @param {{ zcfRef: VatSourceRef }} options.options
8
+ */
9
+ export const upgradeZcfOnly = async ({ consume: { vatStore } }, options) => {
10
+ const { zcfRef } = options.options;
11
+
12
+ const { root: zoeRoot } = await E(vatStore).get('zoe');
13
+
14
+ const zoeConfigFacet = await E(zoeRoot).getZoeConfigFacet();
15
+ await E(zoeConfigFacet).updateZcfBundleId(zcfRef.bundleID);
16
+ console.log(`ZCF BUNDLE ID: `, zcfRef.bundleID);
17
+ };
18
+ harden(upgradeZcfOnly);
19
+
20
+ // main and permit are for use with rollup-plugin-core-eval.js
21
+ export const main = upgradeZcfOnly;
22
+
23
+ export const permit = {
24
+ consume: {
25
+ vatStore: true,
26
+ },
27
+ };
28
+
29
+ export const manifest = {
30
+ [upgradeZcfOnly.name]: permit,
31
+ };
32
+
33
+ export const getManifestForUpgradingZcf = (_powers, options) => ({
34
+ manifest,
35
+ options,
36
+ });