agoric 0.21.2-dev-347404a.0.347404a → 0.21.2-dev-9fb3baa.0.9fb3baa

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.
Files changed (2) hide show
  1. package/package.json +19 -19
  2. package/src/proposals.js +5 -62
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agoric",
3
- "version": "0.21.2-dev-347404a.0.347404a",
3
+ "version": "0.21.2-dev-9fb3baa.0.9fb3baa",
4
4
  "description": "Manage the Agoric Javascript smart contract platform",
5
5
  "type": "module",
6
6
  "main": "src/main.js",
@@ -30,27 +30,27 @@
30
30
  "lint:eslint": "node ../../scripts/eslint-repo.mjs ."
31
31
  },
32
32
  "devDependencies": {
33
- "@agoric/cosmic-swingset": "0.41.4-dev-347404a.0.347404a",
34
- "@agoric/deploy-script-support": "0.10.4-dev-347404a.0.347404a",
33
+ "@agoric/cosmic-swingset": "0.41.4-dev-9fb3baa.0.9fb3baa",
34
+ "@agoric/deploy-script-support": "0.10.4-dev-9fb3baa.0.9fb3baa",
35
35
  "ava": "^8.0.1",
36
36
  "c8": "^10.1.2"
37
37
  },
38
38
  "dependencies": {
39
- "@agoric/access-token": "0.4.22-dev-347404a.0.347404a",
40
- "@agoric/cache": "0.3.3-dev-347404a.0.347404a",
41
- "@agoric/casting": "0.4.3-dev-347404a.0.347404a",
42
- "@agoric/client-utils": "0.1.1-dev-347404a.0.347404a",
43
- "@agoric/cosmic-proto": "0.4.1-dev-347404a.0.347404a",
44
- "@agoric/ertp": "0.16.3-dev-347404a.0.347404a",
45
- "@agoric/governance": "0.10.4-dev-347404a.0.347404a",
46
- "@agoric/internal": "0.3.3-dev-347404a.0.347404a",
47
- "@agoric/network": "0.1.1-dev-347404a.0.347404a",
48
- "@agoric/smart-wallet": "0.5.4-dev-347404a.0.347404a",
49
- "@agoric/store": "0.9.3-dev-347404a.0.347404a",
50
- "@agoric/swingset-vat": "0.32.3-dev-347404a.0.347404a",
51
- "@agoric/vats": "0.15.2-dev-347404a.0.347404a",
52
- "@agoric/zoe": "0.26.3-dev-347404a.0.347404a",
53
- "@agoric/zone": "0.2.3-dev-347404a.0.347404a",
39
+ "@agoric/access-token": "0.4.22-dev-9fb3baa.0.9fb3baa",
40
+ "@agoric/cache": "0.3.3-dev-9fb3baa.0.9fb3baa",
41
+ "@agoric/casting": "0.4.3-dev-9fb3baa.0.9fb3baa",
42
+ "@agoric/client-utils": "0.1.1-dev-9fb3baa.0.9fb3baa",
43
+ "@agoric/cosmic-proto": "0.4.1-dev-9fb3baa.0.9fb3baa",
44
+ "@agoric/ertp": "0.16.3-dev-9fb3baa.0.9fb3baa",
45
+ "@agoric/governance": "0.10.4-dev-9fb3baa.0.9fb3baa",
46
+ "@agoric/internal": "0.3.3-dev-9fb3baa.0.9fb3baa",
47
+ "@agoric/network": "0.1.1-dev-9fb3baa.0.9fb3baa",
48
+ "@agoric/smart-wallet": "0.5.4-dev-9fb3baa.0.9fb3baa",
49
+ "@agoric/store": "0.9.3-dev-9fb3baa.0.9fb3baa",
50
+ "@agoric/swingset-vat": "0.32.3-dev-9fb3baa.0.9fb3baa",
51
+ "@agoric/vats": "0.15.2-dev-9fb3baa.0.9fb3baa",
52
+ "@agoric/zoe": "0.26.3-dev-9fb3baa.0.9fb3baa",
53
+ "@agoric/zone": "0.2.3-dev-9fb3baa.0.9fb3baa",
54
54
  "@cosmjs/crypto": "^0.36.0",
55
55
  "@cosmjs/encoding": "^0.36.0",
56
56
  "@cosmjs/math": "^0.36.0",
@@ -94,5 +94,5 @@
94
94
  "engines": {
95
95
  "node": "^22.11 || ^24.14"
96
96
  },
97
- "gitHead": "347404a8fa25a95cfde941ae0874f37505c67f53"
97
+ "gitHead": "9fb3baacf4cc0fa79fb14193c6404ed7ac9829d6"
98
98
  }
package/src/proposals.js CHANGED
@@ -151,65 +151,6 @@ const materializeFromRecords = (records, resolvedBuilderPath, cwd) => {
151
151
  });
152
152
  };
153
153
 
154
- /**
155
- * @param {typeof FsPromises} fs
156
- * @param {string} outputDir
157
- * @param {string} resolvedBuilderPath
158
- */
159
- const readProposalMaterialsFromPlans = async (
160
- fs,
161
- outputDir,
162
- resolvedBuilderPath,
163
- ) => {
164
- const files = await fs.readdir(outputDir);
165
- const planFiles = files.filter(f => f.endsWith('-plan.json')).sort();
166
-
167
- // TODO: Replace this with metadata capture during writeCoreEval execution.
168
- if (!planFiles.length) {
169
- throw Error(`No core-eval plan files found in ${outputDir}`);
170
- }
171
-
172
- const dependencySet = new Set([resolvedBuilderPath]);
173
-
174
- /** @type {CoreEvalSDKType[]} */
175
- const evals = [];
176
- /** @type {EndoZipBase64Bundle[]} */
177
- const bundles = [];
178
-
179
- for (const planFile of planFiles) {
180
- /**
181
- * @type {{
182
- * permit: string;
183
- * script: string;
184
- * bundles: Array<{ entrypoint: string; fileName: string }>;
185
- * }}
186
- */
187
- const plan = await readJSONFile(fs, path.join(outputDir, planFile));
188
-
189
- const [jsonPermits, jsCode] = await Promise.all([
190
- readTextFromCwd(fs, outputDir, plan.permit),
191
- readTextFromCwd(fs, outputDir, plan.script),
192
- ]);
193
- evals.push({ json_permits: jsonPermits, js_code: jsCode });
194
-
195
- for (const bundleInfo of plan.bundles) {
196
- bundles.push(await readJSONFromCwd(fs, outputDir, bundleInfo.fileName));
197
-
198
- const resolvedEntrypoint = resolveModuleSpecifier(bundleInfo.entrypoint, [
199
- path.dirname(resolvedBuilderPath),
200
- outputDir,
201
- ]);
202
- dependencySet.add(resolvedEntrypoint);
203
- }
204
- }
205
-
206
- return harden({
207
- evals,
208
- bundles,
209
- dependencies: [...dependencySet].sort(),
210
- });
211
- };
212
-
213
154
  /**
214
155
  * @param {{ fs: typeof FsPromises; cwd: string; }} param0
215
156
  */
@@ -272,11 +213,13 @@ const runInProcess = async ({
272
213
  resolvedBuilderPath,
273
214
  cwd,
274
215
  );
275
- if (materialized) {
276
- return materialized;
216
+ if (!materialized) {
217
+ throw Error(
218
+ `No core-eval proposal materials were emitted by ${resolvedBuilderPath}`,
219
+ );
277
220
  }
278
221
 
279
- return readProposalMaterialsFromPlans(fs, cwd, resolvedBuilderPath);
222
+ return materialized;
280
223
  };
281
224
 
282
225
  /**