@agoric/vats 0.15.2-u14.0 → 0.15.2-u15.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/CHANGELOG.md CHANGED
@@ -3,6 +3,23 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ### [0.15.2-u15.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/vats@0.15.2-u14.1...@agoric/vats@0.15.2-u15.0) (2024-04-20)
7
+
8
+
9
+ ### Features
10
+
11
+ * upgrade zcf: install bundle and call updateZcfBundleId() ([74662d7](https://github.com/Agoric/agoric-sdk/commit/74662d73c0c213cbb537d7ff20e24fc31f35656d)), closes [#9250](https://github.com/Agoric/agoric-sdk/issues/9250)
12
+
13
+
14
+
15
+ ### [0.15.2-u14.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/vats@0.15.2-u14.0...@agoric/vats@0.15.2-u14.1) (2024-03-12)
16
+
17
+ **Note:** Version bump only for package @agoric/vats
18
+
19
+
20
+
21
+
22
+
6
23
  ### [0.15.2-u14.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/vats@0.15.2-u13.0...@agoric/vats@0.15.2-u14.0) (2024-02-27)
7
24
 
8
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/vats",
3
- "version": "0.15.2-u14.0",
3
+ "version": "0.15.2-u15.0",
4
4
  "description": "Agoric's Vat library",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -29,10 +29,10 @@
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
31
  "@agoric/assert": "^0.6.1-u11wf.0",
32
- "@agoric/deploy-script-support": "^0.10.4-u14.0",
32
+ "@agoric/deploy-script-support": "^0.10.4-u15.0",
33
33
  "@agoric/ertp": "^0.16.3-u14.0",
34
- "@agoric/governance": "^0.10.4-u14.0",
35
- "@agoric/inter-protocol": "^0.16.2-u14.0",
34
+ "@agoric/governance": "^0.10.4-u15.0",
35
+ "@agoric/inter-protocol": "^0.16.2-u15.0",
36
36
  "@agoric/internal": "^0.4.0-u14.0",
37
37
  "@agoric/notifier": "^0.6.3-u14.0",
38
38
  "@agoric/sharing-service": "^0.2.12-u14.0",
@@ -40,7 +40,7 @@
40
40
  "@agoric/swingset-vat": "^0.32.3-u14.0",
41
41
  "@agoric/time": "^0.3.3-u14.0",
42
42
  "@agoric/vat-data": "^0.5.3-u14.0",
43
- "@agoric/zoe": "^0.26.3-u14.0",
43
+ "@agoric/zoe": "^0.26.3-u15.0",
44
44
  "@agoric/zone": "^0.2.3-u14.0",
45
45
  "@endo/far": "0.2.18",
46
46
  "@endo/import-bundle": "0.3.4",
@@ -53,12 +53,12 @@
53
53
  "jessie.js": "^0.3.2"
54
54
  },
55
55
  "devDependencies": {
56
- "@agoric/cosmic-swingset": "^0.42.0-u14.0",
56
+ "@agoric/cosmic-swingset": "^0.42.0-u15.0",
57
57
  "@agoric/deploy-script-support": "^0.10.4-u13.0",
58
- "@agoric/smart-wallet": "^0.5.4-u14.0",
58
+ "@agoric/smart-wallet": "^0.5.4-u15.0",
59
59
  "@agoric/swing-store": "^0.9.2-u14.0",
60
60
  "@agoric/swingset-liveslots": "^0.10.3-u14.0",
61
- "@agoric/vats": "^0.15.2-u14.0",
61
+ "@agoric/vats": "^0.15.2-u15.0",
62
62
  "@endo/bundle-source": "2.5.2-upstream-rollup",
63
63
  "@endo/captp": "3.1.1",
64
64
  "@endo/stream": "0.3.25",
@@ -89,5 +89,5 @@
89
89
  "timeout": "20m",
90
90
  "workerThreads": false
91
91
  },
92
- "gitHead": "b3a6f3374cb3bddab39fc6d6f426429cae6c29c6"
92
+ "gitHead": "734e8635002e01b3e27477e93998dda942c7fae8"
93
93
  }
@@ -0,0 +1,5 @@
1
+ /** @type {import('packages/deploy-script-support/src/externalTypes.js').ProposalBuilder} */
2
+ export const defaultProposalBuilder: any;
3
+ declare function _default(homeP: any, endowments: any): Promise<void>;
4
+ export default _default;
5
+ //# sourceMappingURL=upgrade-zcf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upgrade-zcf.d.ts","sourceRoot":"","sources":["upgrade-zcf.js"],"names":[],"mappings":"AAEA,4FAA4F;AAC5F,yCASK;AAEU,sEAGd"}
@@ -0,0 +1,18 @@
1
+ import { makeHelpers } from '@agoric/deploy-script-support';
2
+
3
+ /** @type {import('packages/deploy-script-support/src/externalTypes.js').ProposalBuilder} */
4
+ export const defaultProposalBuilder = async ({ publishRef, install }) =>
5
+ harden({
6
+ sourceSpec: '@agoric/vats/src/proposals/zcf-only-proposal.js',
7
+ getManifestCall: [
8
+ 'getManifestForUpgradingZcf',
9
+ {
10
+ zcfRef: publishRef(install('@agoric/zoe/src/contractFacet/vatRoot.js')),
11
+ },
12
+ ],
13
+ });
14
+
15
+ export default async (homeP, endowments) => {
16
+ const { writeCoreProposal } = await makeHelpers(homeP, endowments);
17
+ await writeCoreProposal('upgrade-zcf', defaultProposalBuilder);
18
+ };
@@ -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
+ const 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;;gBAEL,YAAY;;kBAUhC;AARM,gDAJI,eAAe;;gBAEL,YAAY;;kBAUhC;;;;;;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
+ });