@agoric/vats 0.15.2-upgrade-14-dev-8be87aa.0 → 0.15.2-upgrade-14-dev-c8f9e7b.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-upgrade-14-dev-8be87aa.0+8be87aa",
3
+ "version": "0.15.2-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
4
4
  "description": "Agoric's Vat library",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -28,20 +28,20 @@
28
28
  "author": "Agoric",
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@agoric/assert": "0.6.1-upgrade-14-dev-8be87aa.0+8be87aa",
32
- "@agoric/deploy-script-support": "0.10.4-upgrade-14-dev-8be87aa.0+8be87aa",
33
- "@agoric/ertp": "0.16.3-upgrade-14-dev-8be87aa.0+8be87aa",
34
- "@agoric/governance": "0.10.4-upgrade-14-dev-8be87aa.0+8be87aa",
35
- "@agoric/inter-protocol": "0.16.2-upgrade-14-dev-8be87aa.0+8be87aa",
36
- "@agoric/internal": "0.4.0-upgrade-14-dev-8be87aa.0+8be87aa",
37
- "@agoric/notifier": "0.6.3-upgrade-14-dev-8be87aa.0+8be87aa",
38
- "@agoric/sharing-service": "0.2.12-upgrade-14-dev-8be87aa.0+8be87aa",
39
- "@agoric/store": "0.9.3-upgrade-14-dev-8be87aa.0+8be87aa",
40
- "@agoric/swingset-vat": "0.32.3-upgrade-14-dev-8be87aa.0+8be87aa",
41
- "@agoric/time": "0.3.3-upgrade-14-dev-8be87aa.0+8be87aa",
42
- "@agoric/vat-data": "0.5.3-upgrade-14-dev-8be87aa.0+8be87aa",
43
- "@agoric/zoe": "0.26.3-upgrade-14-dev-8be87aa.0+8be87aa",
44
- "@agoric/zone": "0.2.3-upgrade-14-dev-8be87aa.0+8be87aa",
31
+ "@agoric/assert": "0.6.1-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
32
+ "@agoric/deploy-script-support": "0.10.4-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
33
+ "@agoric/ertp": "0.16.3-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
34
+ "@agoric/governance": "0.10.4-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
35
+ "@agoric/inter-protocol": "0.16.2-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
36
+ "@agoric/internal": "0.4.0-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
37
+ "@agoric/notifier": "0.6.3-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
38
+ "@agoric/sharing-service": "0.2.12-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
39
+ "@agoric/store": "0.9.3-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
40
+ "@agoric/swingset-vat": "0.32.3-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
41
+ "@agoric/time": "0.3.3-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
42
+ "@agoric/vat-data": "0.5.3-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
43
+ "@agoric/zoe": "0.26.3-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
44
+ "@agoric/zone": "0.2.3-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
45
45
  "@endo/far": "0.2.18",
46
46
  "@endo/import-bundle": "0.3.4",
47
47
  "@endo/init": "0.5.56",
@@ -53,12 +53,12 @@
53
53
  "jessie.js": "^0.3.2"
54
54
  },
55
55
  "devDependencies": {
56
- "@agoric/cosmic-swingset": "0.42.0-upgrade-14-dev-8be87aa.0+8be87aa",
56
+ "@agoric/cosmic-swingset": "0.42.0-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
57
57
  "@agoric/deploy-script-support": "^0.10.4-u13.0",
58
- "@agoric/smart-wallet": "0.5.4-upgrade-14-dev-8be87aa.0+8be87aa",
59
- "@agoric/swing-store": "0.9.2-upgrade-14-dev-8be87aa.0+8be87aa",
60
- "@agoric/swingset-liveslots": "0.10.3-upgrade-14-dev-8be87aa.0+8be87aa",
61
- "@agoric/vats": "0.15.2-upgrade-14-dev-8be87aa.0+8be87aa",
58
+ "@agoric/smart-wallet": "0.5.4-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
59
+ "@agoric/swing-store": "0.9.2-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
60
+ "@agoric/swingset-liveslots": "0.10.3-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
61
+ "@agoric/vats": "0.15.2-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
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": "8be87aadde1b9161fdd958ca487f4e9c7cf6c650"
92
+ "gitHead": "c8f9e7be1645e0be23f47de197409a7d4874add5"
93
93
  }
@@ -0,0 +1,5 @@
1
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} */
2
+ export const defaultProposalBuilder: import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder;
3
+ declare function _default(homeP: any, endowments: any): Promise<void>;
4
+ export default _default;
5
+ //# sourceMappingURL=replace-zoe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replace-zoe.d.ts","sourceRoot":"","sources":["replace-zoe.js"],"names":[],"mappings":"AAEA,2FAA2F;AAC3F,qCADW,OAAO,oDAAoD,EAAE,eAAe,CAWlF;AAEU,sEAGd"}
@@ -0,0 +1,19 @@
1
+ import { makeHelpers } from '@agoric/deploy-script-support';
2
+
3
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} */
4
+ export const defaultProposalBuilder = async ({ publishRef, install }) =>
5
+ harden({
6
+ sourceSpec: '@agoric/vats/src/proposals/zcf-proposal.js',
7
+ getManifestCall: [
8
+ 'getManifestForZoe',
9
+ {
10
+ zoeRef: publishRef(install('@agoric/vats/src/vat-zoe.js')),
11
+ zcfRef: publishRef(install('@agoric/zoe/src/contractFacet/vatRoot.js')),
12
+ },
13
+ ],
14
+ });
15
+
16
+ export default async (homeP, endowments) => {
17
+ const { writeCoreProposal } = await makeHelpers(homeP, endowments);
18
+ await writeCoreProposal('replace-zcf', defaultProposalBuilder);
19
+ };
@@ -0,0 +1,30 @@
1
+ export function upgradeZcf({ consume: { vatAdminSvc, vatStore } }: BootstrapPowers & {
2
+ consume: {
3
+ vatAdminSvc: VatAdminSvc;
4
+ vatStore: MapStore<string, import('@agoric/swingset-vat').CreateVatResults>;
5
+ };
6
+ }, options: {
7
+ options: {
8
+ zoeRef: VatSourceRef;
9
+ zcfRef: VatSourceRef;
10
+ };
11
+ }): Promise<void>;
12
+ export function getManifestForZoe(_powers: any, { zoeRef, zcfRef }: {
13
+ zoeRef: any;
14
+ zcfRef: any;
15
+ }): {
16
+ manifest: {
17
+ [x: string]: {
18
+ consume: {
19
+ vatAdminSvc: string;
20
+ vatStore: string;
21
+ };
22
+ produce: {};
23
+ };
24
+ };
25
+ options: {
26
+ zoeRef: any;
27
+ zcfRef: any;
28
+ };
29
+ };
30
+ //# sourceMappingURL=zcf-proposal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zcf-proposal.d.ts","sourceRoot":"","sources":["zcf-proposal.js"],"names":[],"mappings":"AAeO,mEAZI,eAAe,GAAG;IAC5B,OAAW,EAAE;QACb,WAAiB,EAAE,WAAW,CAAC;QAC/B,QAAc,EAAE,SAChB,MAAc,EACd,OAAe,sBAAsB,EAAE,gBAAgB,CAChD,CAAC;KACH,CAAC;CACH;;gBAEiB,YAAY;gBAAU,YAAY;;kBAmBtD;AAEM;;;;;;;;;;;;;;;;;EAcL"}
@@ -0,0 +1,49 @@
1
+ import { E } from '@endo/far';
2
+
3
+ /**
4
+ * @param {BootstrapPowers & {
5
+ * consume: {
6
+ * vatAdminSvc: VatAdminSvc;
7
+ * vatStore: MapStore<
8
+ * string,
9
+ * import('@agoric/swingset-vat').CreateVatResults
10
+ * >;
11
+ * };
12
+ * }} powers
13
+ * @param {object} options
14
+ * @param {{ zoeRef: VatSourceRef; zcfRef: VatSourceRef }} options.options
15
+ */
16
+ export const upgradeZcf = async (
17
+ { consume: { vatAdminSvc, vatStore } },
18
+ options,
19
+ ) => {
20
+ const { zoeRef, zcfRef } = options.options;
21
+
22
+ assert(zoeRef.bundleID);
23
+ const zoeBundleCap = await E(vatAdminSvc).getBundleCap(zoeRef.bundleID);
24
+ console.log(`ZOE BUNDLE ID: `, zoeRef.bundleID);
25
+
26
+ const { adminNode, root: zoeRoot } = await E(vatStore).get('zoe');
27
+
28
+ await E(adminNode).upgrade(zoeBundleCap, {});
29
+
30
+ const zoeConfigFacet = await E(zoeRoot).getZoeConfigFacet();
31
+ await E(zoeConfigFacet).updateZcfBundleId(zcfRef.bundleID);
32
+ console.log(`ZCF BUNDLE ID: `, zcfRef.bundleID);
33
+ };
34
+
35
+ export const getManifestForZoe = (_powers, { zoeRef, zcfRef }) => ({
36
+ manifest: {
37
+ [upgradeZcf.name]: {
38
+ consume: {
39
+ vatAdminSvc: 'vatAdminSvc',
40
+ vatStore: 'vatStore',
41
+ },
42
+ produce: {},
43
+ },
44
+ },
45
+ options: {
46
+ zoeRef,
47
+ zcfRef,
48
+ },
49
+ });