@agoric/solo 0.11.0-upgrade-20-dev-ef71cfd.0 → 0.11.0-upgrade-19-devnet-dev-5428c4d.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/CHANGELOG.md CHANGED
@@ -3,7 +3,31 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [0.11.0-u20.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.10.3...@agoric/solo@0.11.0-u20.0) (2025-04-16)
6
+ ## [0.11.0-u19.3](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.11.0-u19.2...@agoric/solo@0.11.0-u19.3) (2025-03-13)
7
+
8
+ **Note:** Version bump only for package @agoric/solo
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.11.0-u19.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.11.0-u19.1...@agoric/solo@0.11.0-u19.2) (2025-03-06)
15
+
16
+ **Note:** Version bump only for package @agoric/solo
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.11.0-u19.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.11.0-u19.0...@agoric/solo@0.11.0-u19.1) (2025-03-03)
23
+
24
+ **Note:** Version bump only for package @agoric/solo
25
+
26
+
27
+
28
+
29
+
30
+ ## [0.11.0-u19.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.10.3...@agoric/solo@0.11.0-u19.0) (2025-02-24)
7
31
 
8
32
 
9
33
  ### ⚠ BREAKING CHANGES
@@ -12,7 +36,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
12
36
 
13
37
  ### Features
14
38
 
15
- * **internal:** Add helper `unprefixedProperties` for environment variable consumption ([878fecf](https://github.com/Agoric/agoric-sdk/commit/878fecf4f5153fa80f48a27a8b79e67943b2d199))
16
39
  * **internal:** Introduce deepCopyJsonable ([f875bb0](https://github.com/Agoric/agoric-sdk/commit/f875bb0923323d019396c605ea9bb4d1382f7f79))
17
40
 
18
41
 
@@ -25,7 +48,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
25
48
  * **solo:** let `init` tolerate existing `html` directory ([4d14a2f](https://github.com/Agoric/agoric-sdk/commit/4d14a2f6c42628bd40ffab2d94510a20088111bb))
26
49
  * **solo:** properly expose `/wallet/bridge.html` ([#8533](https://github.com/Agoric/agoric-sdk/issues/8533)) ([e26232e](https://github.com/Agoric/agoric-sdk/commit/e26232e68e2019db07078ae4962de47b3d0a6666))
27
50
  * **solo:** remove `sim-chain` dependency ([da75a03](https://github.com/Agoric/agoric-sdk/commit/da75a03f95828d773fa3f662d30f0e221030c2ca))
28
- * **solo:** update `abci_query` from `custom/vstorage/data` ([60f4220](https://github.com/Agoric/agoric-sdk/commit/60f4220193110c631bd8d41151ea88fde4026478))
29
51
  * **solo:** use alternative endo init ([584ec62](https://github.com/Agoric/agoric-sdk/commit/584ec624854ea0f4f755b189414bc9e0dabaa6e0))
30
52
  * update for `[@jessie](https://github.com/jessie).js/safe-await-separator` ([94c6b3c](https://github.com/Agoric/agoric-sdk/commit/94c6b3c83a5326594f1e2886ae01d6a703a7a68f))
31
53
  * update name of agd fee granter flag ([1aad20c](https://github.com/Agoric/agoric-sdk/commit/1aad20c49bf4374f6078bcbed87a6db9db3e6387))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/solo",
3
- "version": "0.11.0-upgrade-20-dev-ef71cfd.0+ef71cfd",
3
+ "version": "0.11.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
4
4
  "description": "Agoric's Solo vat runner",
5
5
  "type": "module",
6
6
  "bin": {
@@ -22,28 +22,26 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/access-token": "0.4.22-upgrade-20-dev-ef71cfd.0+ef71cfd",
26
- "@agoric/cache": "0.3.3-upgrade-20-dev-ef71cfd.0+ef71cfd",
27
- "@agoric/cosmic-proto": "0.5.0-upgrade-20-dev-ef71cfd.0+ef71cfd",
28
- "@agoric/cosmic-swingset": "0.42.0-upgrade-20-dev-ef71cfd.0+ef71cfd",
29
- "@agoric/internal": "0.4.0-upgrade-20-dev-ef71cfd.0+ef71cfd",
30
- "@agoric/notifier": "0.7.0-upgrade-20-dev-ef71cfd.0+ef71cfd",
31
- "@agoric/spawner": "0.6.9-upgrade-20-dev-ef71cfd.0+ef71cfd",
32
- "@agoric/store": "0.9.3-upgrade-20-dev-ef71cfd.0+ef71cfd",
33
- "@agoric/swing-store": "0.10.0-upgrade-20-dev-ef71cfd.0+ef71cfd",
34
- "@agoric/swingset-vat": "0.33.0-upgrade-20-dev-ef71cfd.0+ef71cfd",
35
- "@agoric/telemetry": "0.6.3-upgrade-20-dev-ef71cfd.0+ef71cfd",
36
- "@agoric/time": "0.3.3-upgrade-20-dev-ef71cfd.0+ef71cfd",
37
- "@agoric/vats": "0.16.0-upgrade-20-dev-ef71cfd.0+ef71cfd",
38
- "@agoric/wallet": "0.19.0-upgrade-20-dev-ef71cfd.0+ef71cfd",
39
- "@endo/base64": "^1.0.9",
40
- "@endo/captp": "^4.4.5",
41
- "@endo/errors": "^1.2.10",
42
- "@endo/eventual-send": "^1.3.1",
43
- "@endo/import-bundle": "^1.4.0",
44
- "@endo/init": "^1.1.9",
45
- "@endo/marshal": "^1.6.4",
46
- "@endo/promise-kit": "^1.1.10",
25
+ "@agoric/access-token": "0.4.22-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
26
+ "@agoric/cache": "0.3.3-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
27
+ "@agoric/cosmic-swingset": "0.42.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
28
+ "@agoric/internal": "0.4.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
29
+ "@agoric/notifier": "0.7.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
30
+ "@agoric/spawner": "0.6.9-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
31
+ "@agoric/store": "0.9.3-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
32
+ "@agoric/swing-store": "0.10.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
33
+ "@agoric/swingset-vat": "0.33.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
34
+ "@agoric/telemetry": "0.6.3-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
35
+ "@agoric/time": "0.3.3-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
36
+ "@agoric/vats": "0.16.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
37
+ "@agoric/wallet": "0.19.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
38
+ "@endo/captp": "^4.4.4",
39
+ "@endo/errors": "^1.2.9",
40
+ "@endo/eventual-send": "^1.3.0",
41
+ "@endo/import-bundle": "^1.3.3",
42
+ "@endo/init": "^1.1.8",
43
+ "@endo/marshal": "^1.6.3",
44
+ "@endo/promise-kit": "^1.1.9",
47
45
  "anylogger": "^0.21.0",
48
46
  "deterministic-json": "^1.0.5",
49
47
  "esm": "agoric-labs/esm#Agoric-built",
@@ -57,8 +55,8 @@
57
55
  "ws": "^7.2.0"
58
56
  },
59
57
  "devDependencies": {
60
- "@agoric/ertp": "0.16.3-upgrade-20-dev-ef71cfd.0+ef71cfd",
61
- "@endo/bundle-source": "^4.0.0",
58
+ "@agoric/ertp": "0.16.3-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
59
+ "@endo/bundle-source": "^3.5.1",
62
60
  "ava": "^5.3.0",
63
61
  "c8": "^10.1.2"
64
62
  },
@@ -81,5 +79,5 @@
81
79
  "typeCoverage": {
82
80
  "atLeast": 74.02
83
81
  },
84
- "gitHead": "ef71cfdc9e62572cab9a3d2821dc446ce0d700c3"
82
+ "gitHead": "5428c4da67b53cef7ff53ba7b2a28cf6ec8f643a"
85
83
  }
@@ -1,4 +1,4 @@
1
- /* global clearTimeout setTimeout */
1
+ /* global clearTimeout setTimeout Buffer */
2
2
  import path from 'path';
3
3
  import fs from 'fs';
4
4
  import url from 'url';
@@ -8,22 +8,15 @@ import { open as tempOpen } from 'temp';
8
8
  import WebSocket from 'ws';
9
9
 
10
10
  import anylogger from 'anylogger';
11
- import { decodeBase64, encodeBase64 } from '@endo/base64';
12
11
  import { Fail, makeError } from '@endo/errors';
13
12
  import { makePromiseKit } from '@endo/promise-kit';
14
13
 
15
- import {
16
- QueryDataRequest,
17
- QueryDataResponse,
18
- } from '@agoric/cosmic-proto/vstorage/query.js';
19
-
20
14
  import { makeNotifierKit } from '@agoric/notifier';
21
15
  import {
22
16
  DEFAULT_BATCH_TIMEOUT_MS,
23
17
  makeBatchedDeliver,
24
18
  } from '@agoric/internal/src/batched-deliver.js';
25
19
  import { forever, whileTrue } from '@agoric/internal';
26
- import { decodeHex, encodeHex } from '@agoric/internal/src/hex.js';
27
20
 
28
21
  const console = anylogger('chain-cosmos-sdk');
29
22
 
@@ -307,8 +300,7 @@ export async function connectToChain(
307
300
  const subscribeToTxHash = (txHash, cb) => {
308
301
  const txQuery = `tm.event = 'Tx' and tx.hash = '${txHash}'`;
309
302
 
310
- const bufHash = decodeHex(txHash);
311
- const b64Hash = encodeBase64(bufHash);
303
+ const b64Hash = Buffer.from(txHash, 'hex').toString('base64');
312
304
  const txSubscriptionId = sendRPC('subscribe', { query: txQuery });
313
305
  const queryId = sendRPC('tx', { hash: b64Hash });
314
306
  const cleanup = () => {
@@ -361,8 +353,7 @@ export async function connectToChain(
361
353
  const blockSubscriptionId = sendRPC('subscribe', { query: blockQuery });
362
354
  const txSubscriptionId = sendRPC('subscribe', { query: txQuery });
363
355
  const queryId = sendRPC('abci_query', {
364
- path: `/agoric.vstorage.Query/Data`,
365
- data: encodeHex(QueryDataRequest.toProto({ path: storagePath })),
356
+ path: `/custom/swingset/storage/${storagePath}`,
366
357
  });
367
358
 
368
359
  const cleanup = () => {
@@ -389,8 +380,10 @@ export async function connectToChain(
389
380
  // Decode the layers up to the actual storage value.
390
381
  const { value: b64JsonStorage, height: heightString } =
391
382
  obj.result.response;
392
- const buf = decodeBase64(b64JsonStorage);
393
- const { value: storageValue } = QueryDataResponse.decode(buf);
383
+ const jsonStorage = Buffer.from(b64JsonStorage, 'base64').toString(
384
+ 'utf8',
385
+ );
386
+ const { value: storageValue } = JSON.parse(jsonStorage);
394
387
  guardedCb(BigInt(heightString), storageValue);
395
388
  } else if (
396
389
  obj.result &&
package/src/start.js CHANGED
@@ -36,7 +36,6 @@ import {
36
36
  makeEphemeralMailboxStorage,
37
37
  } from '@agoric/swingset-vat';
38
38
  import { openSwingStore } from '@agoric/swing-store';
39
- import { unprefixedProperties } from '@agoric/internal/src/js-utils.js';
40
39
  import { makeWithQueue } from '@agoric/internal/src/queue.js';
41
40
  import { makeShutdown } from '@agoric/internal/src/node/shutdown.js';
42
41
  import {
@@ -168,9 +167,14 @@ const buildSwingset = async (
168
167
  plugin: { ...plugin.endowments },
169
168
  };
170
169
 
170
+ const soloEnv = Object.fromEntries(
171
+ Object.entries(process.env)
172
+ .filter(([k]) => k.match(/^SOLO_/)) // narrow to SOLO_ prefixes. e.g. SOLO_SLOGFILE
173
+ .map(([k, v]) => [k.replace(/^SOLO_/, ''), v]), // Replace SOLO_ controls with chain version.
174
+ );
171
175
  const env = {
172
176
  ...process.env,
173
- ...unprefixedProperties(process.env, 'SOLO_'),
177
+ ...soloEnv,
174
178
  };
175
179
  const { metricsProvider = makeDefaultMeterProvider() } =
176
180
  getTelemetryProviders({