@agoric/solo 0.10.4-dev-986371e.0 → 0.10.4-dev-66bf702.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/solo",
3
- "version": "0.10.4-dev-986371e.0+986371e",
3
+ "version": "0.10.4-dev-66bf702.0+66bf702",
4
4
  "description": "Agoric's Solo vat runner",
5
5
  "type": "module",
6
6
  "bin": {
@@ -22,19 +22,19 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/access-token": "0.4.22-dev-986371e.0+986371e",
26
- "@agoric/cache": "0.3.3-dev-986371e.0+986371e",
27
- "@agoric/cosmic-swingset": "0.41.4-dev-986371e.0+986371e",
28
- "@agoric/internal": "0.3.3-dev-986371e.0+986371e",
29
- "@agoric/notifier": "0.6.3-dev-986371e.0+986371e",
30
- "@agoric/spawner": "0.6.9-dev-986371e.0+986371e",
31
- "@agoric/store": "0.9.3-dev-986371e.0+986371e",
32
- "@agoric/swing-store": "0.9.2-dev-986371e.0+986371e",
33
- "@agoric/swingset-vat": "0.32.3-dev-986371e.0+986371e",
34
- "@agoric/telemetry": "0.6.3-dev-986371e.0+986371e",
35
- "@agoric/time": "0.3.3-dev-986371e.0+986371e",
36
- "@agoric/vats": "0.15.2-dev-986371e.0+986371e",
37
- "@agoric/wallet": "0.18.4-dev-986371e.0+986371e",
25
+ "@agoric/access-token": "0.4.22-dev-66bf702.0+66bf702",
26
+ "@agoric/cache": "0.3.3-dev-66bf702.0+66bf702",
27
+ "@agoric/cosmic-swingset": "0.41.4-dev-66bf702.0+66bf702",
28
+ "@agoric/internal": "0.3.3-dev-66bf702.0+66bf702",
29
+ "@agoric/notifier": "0.6.3-dev-66bf702.0+66bf702",
30
+ "@agoric/spawner": "0.6.9-dev-66bf702.0+66bf702",
31
+ "@agoric/store": "0.9.3-dev-66bf702.0+66bf702",
32
+ "@agoric/swing-store": "0.9.2-dev-66bf702.0+66bf702",
33
+ "@agoric/swingset-vat": "0.32.3-dev-66bf702.0+66bf702",
34
+ "@agoric/telemetry": "0.6.3-dev-66bf702.0+66bf702",
35
+ "@agoric/time": "0.3.3-dev-66bf702.0+66bf702",
36
+ "@agoric/vats": "0.15.2-dev-66bf702.0+66bf702",
37
+ "@agoric/wallet": "0.18.4-dev-66bf702.0+66bf702",
38
38
  "@endo/captp": "^4.2.0",
39
39
  "@endo/errors": "^1.2.2",
40
40
  "@endo/eventual-send": "^1.2.2",
@@ -56,7 +56,7 @@
56
56
  "ws": "^7.2.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@agoric/ertp": "0.16.3-dev-986371e.0+986371e",
59
+ "@agoric/ertp": "0.16.3-dev-66bf702.0+66bf702",
60
60
  "@endo/bundle-source": "^3.2.3",
61
61
  "ava": "^5.3.0",
62
62
  "c8": "^9.1.0"
@@ -80,5 +80,5 @@
80
80
  "typeCoverage": {
81
81
  "atLeast": 73.21
82
82
  },
83
- "gitHead": "986371e75546ceae2f5dab5ea8b91eb81ba07e3c"
83
+ "gitHead": "66bf70267cdc1d4cdfa70cc46810ba8c797ab356"
84
84
  }
@@ -442,6 +442,7 @@ export async function connectToChain(
442
442
 
443
443
  // Find only the latest value in the events.
444
444
  let storageValue;
445
+ // eslint-disable-next-line github/array-foreach
445
446
  paths.forEach((key, i) => {
446
447
  if (key === storagePath) {
447
448
  storageValue = values[i];
package/src/outbound.js CHANGED
@@ -33,7 +33,7 @@ export function deliver(mbs) {
33
33
  }
34
34
  const t = knownTargets.get(target);
35
35
  const newMessages = [];
36
- data[target].outbox.forEach(m => {
36
+ for (const m of data[target].outbox) {
37
37
  const [msgnum, body] = m;
38
38
  if (msgnum > t.highestSent) {
39
39
  log.debug(
@@ -44,7 +44,7 @@ export function deliver(mbs) {
44
44
  );
45
45
  newMessages.push(m);
46
46
  }
47
- });
47
+ }
48
48
  newMessages.sort((a, b) => a[0] - b[0]);
49
49
  // console.debug(` ${newMessages.length} new messages`);
50
50
  const acknum = data[target].inboundAck;
@@ -29,7 +29,9 @@ export default function setFakeChain(basedir, GCI, fakeDelay) {
29
29
  }
30
30
  };
31
31
 
32
- JSON.parse(fs.readFileSync(fn)).forEach(add);
32
+ for (const conn of JSON.parse(fs.readFileSync(fn))) {
33
+ add(conn);
34
+ }
33
35
  const newconn = {
34
36
  type: 'fake-chain',
35
37
  GCI,
@@ -37,8 +39,8 @@ export default function setFakeChain(basedir, GCI, fakeDelay) {
37
39
  };
38
40
  add(newconn);
39
41
  const connections = [];
40
- Object.entries(connsByType).forEach(([_type, conns]) =>
41
- connections.push(...conns),
42
- );
42
+ for (const conns of Object.values(connsByType)) {
43
+ connections.push(...conns);
44
+ }
43
45
  fs.writeFileSync(fn, `${JSON.stringify(connections, undefined, 2)}\n`);
44
46
  }
@@ -58,7 +58,9 @@ export default function setGCIIngress(basedir, GCI, rpcAddresses, chainID) {
58
58
  }
59
59
  };
60
60
 
61
- JSON.parse(fs.readFileSync(fn)).forEach(add);
61
+ for (const conn of JSON.parse(fs.readFileSync(fn))) {
62
+ add(conn);
63
+ }
62
64
  const newconn = {
63
65
  type: 'chain-cosmos-sdk',
64
66
  chainID,
@@ -68,9 +70,8 @@ export default function setGCIIngress(basedir, GCI, rpcAddresses, chainID) {
68
70
  };
69
71
  add(newconn);
70
72
  const connections = [];
71
- // eslint-disable-next-line no-unused-vars
72
- Object.entries(connsByType).forEach(([type, conns]) =>
73
- connections.push(...conns),
74
- );
73
+ for (const conns of Object.values(connsByType)) {
74
+ connections.push(...conns);
75
+ }
75
76
  fs.writeFileSync(fn, `${JSON.stringify(connections, undefined, 2)}\n`);
76
77
  }
package/src/web.js CHANGED
@@ -306,14 +306,14 @@ export async function makeHTTPListener(
306
306
  server.listen(port, host, () => log.info('Listening on', `${host}:${port}`));
307
307
 
308
308
  const pingInterval = setInterval(function ping() {
309
- wss.clients.forEach(ws => {
309
+ for (const ws of wss.clients) {
310
310
  if (!ws.isAlive) {
311
311
  ws.terminate();
312
312
  return;
313
313
  }
314
314
  ws.isAlive = false;
315
315
  ws.ping(() => {});
316
- });
316
+ }
317
317
  }, 30000);
318
318
 
319
319
  wss.on('close', () => clearInterval(pingInterval));