@agoric/deploy-script-support 0.10.4-dev-92855b2.0 → 0.10.4-dev-6388a00.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/deploy-script-support",
3
- "version": "0.10.4-dev-92855b2.0+92855b2",
3
+ "version": "0.10.4-dev-6388a00.0+6388a00",
4
4
  "description": "Helpers and other support for writing deploy scripts",
5
5
  "type": "module",
6
6
  "main": "src/helpers.js",
@@ -34,14 +34,14 @@
34
34
  },
35
35
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
36
36
  "dependencies": {
37
- "@agoric/assert": "0.6.1-dev-92855b2.0+92855b2",
38
- "@agoric/ertp": "0.16.3-dev-92855b2.0+92855b2",
39
- "@agoric/import-manager": "0.3.12-dev-92855b2.0+92855b2",
40
- "@agoric/internal": "0.3.3-dev-92855b2.0+92855b2",
41
- "@agoric/notifier": "0.6.3-dev-92855b2.0+92855b2",
42
- "@agoric/store": "0.9.3-dev-92855b2.0+92855b2",
43
- "@agoric/time": "0.3.3-dev-92855b2.0+92855b2",
44
- "@agoric/zoe": "0.26.3-dev-92855b2.0+92855b2",
37
+ "@agoric/assert": "0.6.1-dev-6388a00.0+6388a00",
38
+ "@agoric/ertp": "0.16.3-dev-6388a00.0+6388a00",
39
+ "@agoric/import-manager": "0.3.12-dev-6388a00.0+6388a00",
40
+ "@agoric/internal": "0.3.3-dev-6388a00.0+6388a00",
41
+ "@agoric/notifier": "0.6.3-dev-6388a00.0+6388a00",
42
+ "@agoric/store": "0.9.3-dev-6388a00.0+6388a00",
43
+ "@agoric/time": "0.3.3-dev-6388a00.0+6388a00",
44
+ "@agoric/zoe": "0.26.3-dev-6388a00.0+6388a00",
45
45
  "@endo/base64": "^1.0.0",
46
46
  "@endo/bundle-source": "^3.0.1",
47
47
  "@endo/far": "^1.0.1",
@@ -51,7 +51,7 @@
51
51
  "@endo/zip": "^1.0.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@agoric/vats": "0.15.2-dev-92855b2.0+92855b2",
54
+ "@agoric/vats": "0.15.2-dev-6388a00.0+6388a00",
55
55
  "@endo/init": "^1.0.1",
56
56
  "ava": "^5.3.0",
57
57
  "import-meta-resolve": "^2.2.1"
@@ -75,5 +75,5 @@
75
75
  "typeCoverage": {
76
76
  "atLeast": 80.06
77
77
  },
78
- "gitHead": "92855b2b3fb3f6e533cdbebccb7aa92f7448d331"
78
+ "gitHead": "6388a002b53593f17a8d936d4e937efb7d065d97"
79
79
  }
@@ -91,6 +91,8 @@ export const makeWriteCoreProposal = (
91
91
  return ns.default;
92
92
  };
93
93
 
94
+ const bundles = [];
95
+
94
96
  /**
95
97
  * Install an entrypoint.
96
98
  *
@@ -103,9 +105,14 @@ export const makeWriteCoreProposal = (
103
105
  const bundle = getBundle(entrypoint, bundlePath);
104
106
 
105
107
  // Serialise the installations.
106
- mutex = E.when(mutex, () => {
108
+ mutex = E.when(mutex, async () => {
107
109
  // console.log('installing', { filePrefix, entrypoint, bundlePath });
108
- return getBundleSpec(bundle, getBundler, opts);
110
+ const spec = await getBundleSpec(bundle, getBundler, opts);
111
+ bundles.push({
112
+ entrypoint,
113
+ ...spec,
114
+ });
115
+ return spec;
109
116
  });
110
117
  // @ts-expect-error xxx mutex type narrowing
111
118
  return mutex;
@@ -162,6 +169,18 @@ const overrideManifest = ${stringify(overrideManifest, true)};
162
169
  log(`creating ${proposalJsFile}`);
163
170
  await writeFile(proposalJsFile, trimmed);
164
171
 
172
+ const plan = {
173
+ name: filePrefix,
174
+ script: proposalJsFile,
175
+ permit: proposalPermitJsonFile,
176
+ bundles,
177
+ };
178
+
179
+ await writeFile(
180
+ `${filePrefix}-plan.json`,
181
+ `${JSON.stringify(plan, null, 2)}\n`,
182
+ );
183
+
165
184
  log(`\
166
185
  You can now run a governance submission command like:
167
186
  agd tx gov submit-proposal swingset-core-eval ${proposalPermitJsonFile} ${proposalJsFile} \\