@agoric/solo 0.11.0 → 0.11.1-upgrade-23-dev-bd79330.0.bd79330

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.11.0",
3
+ "version": "0.11.1-upgrade-23-dev-bd79330.0.bd79330",
4
4
  "description": "Agoric's Solo vat runner",
5
5
  "type": "module",
6
6
  "bin": {
@@ -16,26 +16,26 @@
16
16
  "lint-fix": "yarn lint:eslint --fix",
17
17
  "lint": "yarn run -T run-s --continue-on-error 'lint:*'",
18
18
  "lint:types": "yarn run -T tsc",
19
- "lint:eslint": "yarn run -T eslint ."
19
+ "lint:eslint": "node ../../scripts/eslint-repo.mjs ."
20
20
  },
21
21
  "keywords": [],
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/access-token": "0.4.22",
26
- "@agoric/cache": "0.4.0",
27
- "@agoric/cosmic-proto": "0.5.0",
28
- "@agoric/cosmic-swingset": "0.42.0",
29
- "@agoric/internal": "0.4.0",
30
- "@agoric/notifier": "0.7.0",
31
- "@agoric/spawner": "0.6.9",
32
- "@agoric/store": "0.10.0",
33
- "@agoric/swing-store": "0.10.0",
34
- "@agoric/swingset-vat": "0.33.0",
35
- "@agoric/telemetry": "0.7.0",
36
- "@agoric/time": "0.4.0",
37
- "@agoric/vats": "0.16.0",
38
- "@agoric/wallet": "0.19.0",
25
+ "@agoric/access-token": "0.4.23-upgrade-23-dev-bd79330.0.bd79330",
26
+ "@agoric/cache": "0.4.1-upgrade-23-dev-bd79330.0.bd79330",
27
+ "@agoric/cosmic-proto": "0.5.1-upgrade-23-dev-bd79330.0.bd79330",
28
+ "@agoric/cosmic-swingset": "0.42.1-upgrade-23-dev-bd79330.0.bd79330",
29
+ "@agoric/internal": "0.4.1-upgrade-23-dev-bd79330.0.bd79330",
30
+ "@agoric/notifier": "0.7.1-upgrade-23-dev-bd79330.0.bd79330",
31
+ "@agoric/spawner": "0.6.10-upgrade-23-dev-bd79330.0.bd79330",
32
+ "@agoric/store": "0.10.1-upgrade-23-dev-bd79330.0.bd79330",
33
+ "@agoric/swing-store": "0.10.1-upgrade-23-dev-bd79330.0.bd79330",
34
+ "@agoric/swingset-vat": "0.33.1-upgrade-23-dev-bd79330.0.bd79330",
35
+ "@agoric/telemetry": "0.7.1-upgrade-23-dev-bd79330.0.bd79330",
36
+ "@agoric/time": "0.4.1-upgrade-23-dev-bd79330.0.bd79330",
37
+ "@agoric/vats": "0.16.1-upgrade-23-dev-bd79330.0.bd79330",
38
+ "@agoric/wallet": "0.19.1-upgrade-23-dev-bd79330.0.bd79330",
39
39
  "@endo/base64": "^1.0.12",
40
40
  "@endo/captp": "^4.4.8",
41
41
  "@endo/errors": "^1.2.13",
@@ -44,7 +44,6 @@
44
44
  "@endo/init": "^1.1.12",
45
45
  "@endo/marshal": "^1.8.0",
46
46
  "@endo/promise-kit": "^1.1.13",
47
- "anylogger": "^0.21.0",
48
47
  "deterministic-json": "^1.0.5",
49
48
  "express": "^5.0.1",
50
49
  "http-proxy-middleware": "^2.0.6",
@@ -56,9 +55,9 @@
56
55
  "ws": "^7.2.0"
57
56
  },
58
57
  "devDependencies": {
59
- "@agoric/ertp": "0.17.0",
58
+ "@agoric/ertp": "0.17.1-upgrade-23-dev-bd79330.0.bd79330",
60
59
  "@endo/bundle-source": "^4.1.2",
61
- "ava": "^5.3.0",
60
+ "ava": "^6.4.1",
62
61
  "c8": "^10.1.3"
63
62
  },
64
63
  "publishConfig": {
@@ -74,11 +73,10 @@
74
73
  "require": [
75
74
  "@endo/init/debug.js"
76
75
  ],
77
- "timeout": "20m",
78
- "workerThreads": false
76
+ "timeout": "20m"
79
77
  },
80
78
  "typeCoverage": {
81
- "atLeast": 73.92
79
+ "atLeast": 74.43
82
80
  },
83
- "gitHead": "0922d0447ab8fae9d2d87415964403330b5ca313"
81
+ "gitHead": "bd79330f78dae2faf9cc3d8b10063567700da07b"
84
82
  }
package/public/main.js CHANGED
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  /* global setTimeout */
2
3
  // NOTE: Runs outside SES
3
4
 
package/solo-config.json CHANGED
@@ -5,6 +5,9 @@
5
5
  "bundles":{
6
6
  "agoricNames": {
7
7
  "sourceSpec": "@agoric/vats/src/vat-agoricNames.js"
8
+ },
9
+ "spawn": {
10
+ "sourceSpec": "@agoric/spawner/src/vat-spawned.js"
8
11
  }
9
12
  },
10
13
  "vats": {
package/src/add-chain.js CHANGED
@@ -1,8 +1,9 @@
1
+ // @ts-nocheck
1
2
  /* eslint-env node */
2
- import crypto from 'crypto';
3
+ import crypto from 'node:crypto';
3
4
  import djson from 'deterministic-json';
4
- import path from 'path';
5
- import fs from 'fs';
5
+ import path from 'node:path';
6
+ import fs from 'node:fs';
6
7
 
7
8
  import { Fail } from '@endo/errors';
8
9
  import setGCIIngress from './set-gci-ingress.js';
@@ -1,13 +1,14 @@
1
+ // @ts-nocheck
1
2
  /* global clearTimeout setTimeout */
2
- import path from 'path';
3
- import fs from 'fs';
4
- import url from 'url';
5
- import { execFile } from 'child_process';
3
+ import path from 'node:path';
4
+ import fs from 'node:fs';
5
+ import url from 'node:url';
6
+ import { execFile } from 'node:child_process';
6
7
  import { open as tempOpen } from 'temp';
7
8
 
8
9
  import WebSocket from 'ws';
9
10
 
10
- import anylogger from 'anylogger';
11
+ import anylogger from '@agoric/internal/vendor/anylogger.js';
11
12
  import { decodeBase64, encodeBase64 } from '@endo/base64';
12
13
  import { Fail, makeError } from '@endo/errors';
13
14
  import { makePromiseKit } from '@endo/promise-kit';
@@ -446,7 +447,6 @@ export async function connectToChain(
446
447
 
447
448
  // Find only the latest value in the events.
448
449
  let storageValue;
449
- // eslint-disable-next-line github/array-foreach
450
450
  paths.forEach((key, i) => {
451
451
  if (key === storagePath) {
452
452
  storageValue = values[i];
package/src/entrypoint.js CHANGED
@@ -4,8 +4,8 @@
4
4
  // (dep chain: temp->glob->minimatch->brace-expansion)
5
5
  import '@endo/init/legacy.js';
6
6
 
7
- import process from 'process';
8
- import path from 'path';
7
+ import process from 'node:process';
8
+ import path from 'node:path';
9
9
 
10
10
  // Configure logs.
11
11
  import '@agoric/cosmic-swingset/src/anylogger-agoric.js';
@@ -1,11 +1,11 @@
1
1
  // @ts-check
2
2
  /* eslint-env node */
3
- import fs from 'fs';
4
- import path from 'path';
5
- import { execFileSync } from 'child_process';
3
+ import fs from 'node:fs';
4
+ import path from 'node:path';
5
+ import { execFileSync } from 'node:child_process';
6
6
 
7
7
  import { assert, X } from '@endo/errors';
8
- import anylogger from 'anylogger';
8
+ import anylogger from '@agoric/internal/vendor/anylogger.js';
9
9
  import { HELPER } from './chain-cosmos-sdk.js';
10
10
 
11
11
  const console = anylogger('ag-solo:init');
@@ -16,7 +16,7 @@ const dirname = path.dirname(new URL(import.meta.url).pathname);
16
16
 
17
17
  /**
18
18
  * @param {string} basedir
19
- * @param {string} webport
19
+ * @param {number | string} webport
20
20
  * @param {string} webhost
21
21
  * @param {string} _subdir
22
22
  * @param {string[]} egresses
package/src/main.js CHANGED
@@ -1,11 +1,11 @@
1
- import fs from 'fs';
2
- import path from 'path';
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
3
  import parseArgs from 'minimist';
4
- import process from 'process';
5
- import { spawnSync } from 'child_process';
4
+ import process from 'node:process';
5
+ import { spawnSync } from 'node:child_process';
6
6
  import { assert } from '@endo/errors';
7
7
 
8
- import anylogger from 'anylogger';
8
+ import anylogger from '@agoric/internal/vendor/anylogger.js';
9
9
 
10
10
  // Start a network service
11
11
  import addChain from './add-chain.js';
package/src/outbound.js CHANGED
@@ -1,5 +1,6 @@
1
+ // @ts-nocheck
1
2
  /* eslint-env node */
2
- import anylogger from 'anylogger';
3
+ import anylogger from '@agoric/internal/vendor/anylogger.js';
3
4
  import { Fail } from '@endo/errors';
4
5
  import { exportMailboxData } from '@agoric/swingset-vat';
5
6
 
package/src/pipe.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @ts-check
2
- import { fork } from 'child_process';
3
- import path from 'path';
2
+ import { fork } from 'node:child_process';
3
+ import path from 'node:path';
4
4
 
5
5
  import { makePromiseKit } from '@endo/promise-kit';
6
6
  import { parse, stringify } from '@endo/marshal';
@@ -1,5 +1,5 @@
1
- import path from 'path';
2
- import fs from 'fs';
1
+ import path from 'node:path';
2
+ import fs from 'node:fs';
3
3
 
4
4
  import { initSwingStore } from '@agoric/swing-store';
5
5
 
@@ -1,5 +1,6 @@
1
- import fs from 'fs';
2
- import path from 'path';
1
+ // @ts-nocheck
2
+ import fs from 'node:fs';
3
+ import path from 'node:path';
3
4
 
4
5
  export default function setFakeChain(basedir, GCI, fakeDelay) {
5
6
  const fn = path.join(basedir, 'connections.json');
@@ -1,5 +1,6 @@
1
- import fs from 'fs';
2
- import path from 'path';
1
+ // @ts-nocheck
2
+ import fs from 'node:fs';
3
+ import path from 'node:path';
3
4
 
4
5
  export default function setGCIIngress(basedir, GCI, rpcAddresses, chainID) {
5
6
  const myAddrFn = path.join(basedir, 'ag-cosmos-helper-address');
package/src/start.js CHANGED
@@ -1,15 +1,15 @@
1
1
  // @ts-check
2
2
  /* eslint-env node */
3
- import fs from 'fs';
4
- import url from 'url';
5
- import path from 'path';
3
+ import fs from 'node:fs';
4
+ import url from 'node:url';
5
+ import path from 'node:path';
6
6
  import temp from 'temp';
7
- import { fork } from 'child_process';
8
- import { promisify } from 'util';
7
+ import { fork } from 'node:child_process';
8
+ import { promisify } from 'node:util';
9
9
  import { resolve as importMetaResolve } from 'import-meta-resolve';
10
10
  // import { createHash } from 'crypto';
11
11
 
12
- import anylogger from 'anylogger';
12
+ import anylogger from '@agoric/internal/vendor/anylogger.js';
13
13
 
14
14
  // import connect from 'lotion-connect';
15
15
  // import djson from 'deterministic-json';
package/src/vat-http.js CHANGED
@@ -241,3 +241,5 @@ export function buildRootObject(vatPowers) {
241
241
  },
242
242
  });
243
243
  }
244
+
245
+ /** @typedef {ReturnType<typeof buildRootObject>} HttpVat */
@@ -1,13 +1,17 @@
1
1
  // Copyright (C) 2018 Agoric, under Apache License 2.0
2
+ import { E } from '@endo/eventual-send';
2
3
  import { Far } from '@endo/marshal';
3
4
  import { makeSpawner } from '@agoric/spawner';
4
5
 
5
6
  function buildRootObject() {
6
7
  return Far('root', {
7
8
  buildSpawner(vatAdminSvc) {
8
- return makeSpawner(vatAdminSvc);
9
+ const spawnBundleCapP = E(vatAdminSvc).getNamedBundleCap('spawn');
10
+ return makeSpawner(vatAdminSvc, spawnBundleCapP);
9
11
  },
10
12
  });
11
13
  }
12
14
  harden(buildRootObject);
13
15
  export { buildRootObject };
16
+
17
+ /** @typedef {ReturnType<typeof buildRootObject>} SpawnerVat */
@@ -12,3 +12,5 @@ export function buildRootObject() {
12
12
 
13
13
  return Far('root', { getUploads });
14
14
  }
15
+
16
+ /** @typedef {ReturnType<typeof buildRootObject>} UploadsVat */
package/src/web.js CHANGED
@@ -1,15 +1,16 @@
1
+ // @ts-nocheck
1
2
  /* global setTimeout clearTimeout setInterval clearInterval process */
2
3
  // Start a network service
3
- import path from 'path';
4
- import http from 'http';
5
- import { createConnection } from 'net';
6
- import { existsSync as existsSyncAmbient } from 'fs';
4
+ import path from 'node:path';
5
+ import http from 'node:http';
6
+ import { createConnection } from 'node:net';
7
+ import { existsSync as existsSyncAmbient } from 'node:fs';
7
8
  import express from 'express';
8
9
  import { createProxyMiddleware } from 'http-proxy-middleware';
9
10
  import WebSocket from 'ws';
10
- import anylogger from 'anylogger';
11
+ import anylogger from '@agoric/internal/vendor/anylogger.js';
11
12
  import morgan from 'morgan';
12
- import { format as urlFormat } from 'url';
13
+ import { format as urlFormat } from 'node:url';
13
14
 
14
15
  import { getAccessToken } from '@agoric/access-token';
15
16
 
@@ -1,5 +1,6 @@
1
+ // @ts-nocheck
1
2
  /* eslint-env node */
2
- import { spawn } from 'child_process';
3
+ import { spawn } from 'node:child_process';
3
4
  import WebSocket from 'ws';
4
5
  import { makeCapTP, E } from '@endo/captp';
5
6
 
package/test/home.test.js CHANGED
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  /* eslint-env node */
2
3
 
3
4
  import { test } from '@agoric/swingset-vat/tools/prepare-test-env-ava.js';
package/tsconfig.json CHANGED
@@ -1,9 +1,6 @@
1
1
  // This file can contain .js-specific Typescript compiler config.
2
2
  {
3
3
  "extends": "../../tsconfig.json",
4
- "compilerOptions": {
5
- "checkJs": false,
6
- },
7
4
  "include": [
8
5
  "public/**/*.js",
9
6
  "src/**/*.js",