@agoric/cosmic-swingset 0.41.3 → 0.41.4-dev-8690eb0.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,10 +1,10 @@
1
1
  {
2
2
  "name": "@agoric/cosmic-swingset",
3
- "version": "0.41.3",
3
+ "version": "0.41.4-dev-8690eb0.0+8690eb0",
4
4
  "description": "Agoric's Cosmos blockchain integration",
5
5
  "type": "module",
6
6
  "bin": {
7
- "ag-chain-cosmos": "./src/entrypoint.js"
7
+ "ag-chain-cosmos": "src/entrypoint.js"
8
8
  },
9
9
  "main": "src/chain-main.js",
10
10
  "repository": "https://github.com/Agoric/agoric-sdk",
@@ -22,14 +22,14 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/assert": "^0.6.0",
26
- "@agoric/cosmos": "^0.34.1",
27
- "@agoric/deploy-script-support": "^0.10.3",
28
- "@agoric/internal": "^0.3.2",
29
- "@agoric/store": "^0.9.2",
30
- "@agoric/swing-store": "^0.9.1",
31
- "@agoric/swingset-vat": "^0.32.2",
32
- "@agoric/telemetry": "^0.6.2",
25
+ "@agoric/assert": "0.6.1-dev-8690eb0.0+8690eb0",
26
+ "@agoric/cosmos": "0.34.2-dev-8690eb0.0+8690eb0",
27
+ "@agoric/deploy-script-support": "0.10.4-dev-8690eb0.0+8690eb0",
28
+ "@agoric/internal": "0.3.3-dev-8690eb0.0+8690eb0",
29
+ "@agoric/store": "0.9.3-dev-8690eb0.0+8690eb0",
30
+ "@agoric/swing-store": "0.9.2-dev-8690eb0.0+8690eb0",
31
+ "@agoric/swingset-vat": "0.32.3-dev-8690eb0.0+8690eb0",
32
+ "@agoric/telemetry": "0.6.3-dev-8690eb0.0+8690eb0",
33
33
  "@endo/far": "^0.2.18",
34
34
  "@endo/import-bundle": "^0.3.4",
35
35
  "@endo/init": "^0.5.56",
@@ -37,14 +37,15 @@
37
37
  "@endo/nat": "^4.1.27",
38
38
  "@endo/promise-kit": "^0.2.56",
39
39
  "@iarna/toml": "^2.2.3",
40
- "@opentelemetry/sdk-metrics": "^0.32.0",
40
+ "@opentelemetry/api": "~1.3.0",
41
+ "@opentelemetry/sdk-metrics": "~1.9.0",
41
42
  "anylogger": "^0.21.0",
42
43
  "deterministic-json": "^1.0.5",
43
44
  "import-meta-resolve": "^2.2.1",
44
45
  "tmp": "^0.2.1"
45
46
  },
46
47
  "devDependencies": {
47
- "ava": "^5.2.0",
48
+ "ava": "^5.3.0",
48
49
  "c8": "^7.13.0"
49
50
  },
50
51
  "publishConfig": {
@@ -59,5 +60,5 @@
59
60
  ],
60
61
  "timeout": "20m"
61
62
  },
62
- "gitHead": "ba3b776444425bbcb275ce918794d9259f8e15da"
63
+ "gitHead": "8690eb03ffd4afcc288f1a2a6b677e8d380a6334"
63
64
  }
package/src/chain-main.js CHANGED
@@ -494,6 +494,7 @@ export default async function main(progname, args, { env, homedir, agcc }) {
494
494
  }
495
495
 
496
496
  async function handleCosmosSnapshot(blockHeight, request, requestArgs) {
497
+ await null;
497
498
  switch (request) {
498
499
  case 'restore': {
499
500
  const exportDir = requestArgs[0];
@@ -519,7 +520,6 @@ export default async function main(progname, args, { env, homedir, agcc }) {
519
520
  });
520
521
  stateSyncExport = exportData;
521
522
 
522
- // eslint-disable-next-line @jessie.js/no-nested-await
523
523
  await new Promise((resolve, reject) => {
524
524
  tmpfs.dir(
525
525
  {
@@ -144,11 +144,9 @@ export const initiateSwingStoreExport = (
144
144
  if (includeExportData) {
145
145
  log?.(`Writing Export Data`);
146
146
  const fileName = `export-data.jsonl`;
147
- // eslint-disable-next-line @jessie.js/no-nested-await
148
147
  const exportDataFile = await open(pathResolve(exportDir, fileName), 'wx');
149
148
  cleanup.push(async () => exportDataFile.close());
150
149
 
151
- // eslint-disable-next-line @jessie.js/no-nested-await
152
150
  for await (const entry of swingStoreExporter.getExportData()) {
153
151
  await exportDataFile.write(`${JSON.stringify(entry)}\n`);
154
152
  }
@@ -16,8 +16,8 @@ import {
16
16
 
17
17
  // diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.VERBOSE);
18
18
 
19
- /** @typedef {import('@opentelemetry/api-metrics').MetricAttributes} Attributes */
20
- /** @typedef {import('@opentelemetry/api-metrics').Histogram} Histogram */
19
+ /** @typedef {import('@opentelemetry/api').MetricAttributes} Attributes */
20
+ /** @typedef {import('@opentelemetry/api').Histogram} Histogram */
21
21
 
22
22
  import { getTelemetryProviders as getTelemetryProvidersOriginal } from '@agoric/telemetry';
23
23
 
@@ -111,7 +111,7 @@ export function getTelemetryProviders(powers = {}) {
111
111
  }
112
112
 
113
113
  /**
114
- * @param {import('@opentelemetry/api-metrics').Meter} metricMeter
114
+ * @param {import('@opentelemetry/api').Meter} metricMeter
115
115
  * @param {string} name
116
116
  */
117
117
  function createHistogram(metricMeter, name) {
@@ -121,8 +121,8 @@ function createHistogram(metricMeter, name) {
121
121
 
122
122
  /**
123
123
  * @param {{
124
- * metricMeter: import('@opentelemetry/api-metrics').Meter,
125
- * attributes?: import('@opentelemetry/api-metrics').MetricAttributes,
124
+ * metricMeter: import('@opentelemetry/api').Meter,
125
+ * attributes?: import('@opentelemetry/api').MetricAttributes,
126
126
  * }} param0
127
127
  */
128
128
  export function makeSlogCallbacks({ metricMeter, attributes = {} }) {
@@ -284,7 +284,7 @@ export function makeInboundQueueMetrics(initialLength) {
284
284
  /**
285
285
  * @param {object} param0
286
286
  * @param {any} param0.controller
287
- * @param {import('@opentelemetry/api-metrics').Meter} param0.metricMeter
287
+ * @param {import('@opentelemetry/api').Meter} param0.metricMeter
288
288
  * @param {Console} param0.log
289
289
  * @param {Attributes} [param0.attributes]
290
290
  * @param {any} [param0.inboundQueueMetrics]
@@ -1,6 +1,5 @@
1
1
  // @ts-check
2
2
  /* global process */
3
- /* eslint-disable @jessie.js/no-nested-await */
4
3
  import anylogger from 'anylogger';
5
4
 
6
5
  import { E } from '@endo/far';
@@ -132,6 +131,7 @@ export async function buildSwingset(
132
131
  swingsetConfig.vats[swingsetConfig.bootstrap || 'bootstrap'];
133
132
 
134
133
  // Find the entrypoints for all the core proposals.
134
+ await null;
135
135
  if (coreProposals) {
136
136
  const { bundles, code } = await extractCoreProposalBundles(
137
137
  coreProposals,
@@ -530,12 +530,11 @@ export async function launch({
530
530
  */
531
531
  async function processActions(inboundQueue) {
532
532
  let keepGoing = true;
533
+ await null;
533
534
  for (const { action, context } of inboundQueue.consumeAll()) {
534
535
  const inboundNum = `${context.blockHeight}-${context.txHash}-${context.msgIdx}`;
535
536
  inboundQueueMetrics.decStat();
536
- // eslint-disable-next-line no-await-in-loop
537
537
  await performAction(action, inboundNum);
538
- // eslint-disable-next-line no-await-in-loop
539
538
  keepGoing = await runSwingset();
540
539
  if (!keepGoing) {
541
540
  // any leftover actions will remain on the inbound queue for possible
package/src/sim-chain.js CHANGED
@@ -1,5 +1,4 @@
1
1
  /* global process setTimeout clearTimeout */
2
- /* eslint-disable no-await-in-loop */
3
2
  import path from 'path';
4
3
  import fs from 'fs';
5
4
  import {