@agoric/solo 0.11.0-u21.0.1 → 0.11.0-u22.1

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,8 +3,11 @@
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-u21.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.10.3...@agoric/solo@0.11.0-u21.0) (2025-06-19)
6
+ ## [0.11.0-u22.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.11.0-u22.0...@agoric/solo@0.11.0-u22.1) (2025-09-09)
7
7
 
8
+ **Note:** Version bump only for package @agoric/solo
9
+
10
+ ## [0.11.0-u22.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.10.3...@agoric/solo@0.11.0-u22.0) (2025-09-08)
8
11
 
9
12
  ### ⚠ BREAKING CHANGES
10
13
 
@@ -16,51 +19,38 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
16
19
  * **internal:** Introduce deepCopyJsonable ([f875bb0](https://github.com/Agoric/agoric-sdk/commit/f875bb0923323d019396c605ea9bb4d1382f7f79))
17
20
  * **solo:** Remove support for node -r esm modules ([343c4b1](https://github.com/Agoric/agoric-sdk/commit/343c4b1439b673efb5dc9e2818d51b33f5e30423))
18
21
 
19
-
20
22
  ### Bug Fixes
21
23
 
22
24
  * DEBUG harmony ([#8136](https://github.com/Agoric/agoric-sdk/issues/8136)) ([d2ea4b4](https://github.com/Agoric/agoric-sdk/commit/d2ea4b46b9efa61e97eec8711830d9fdd741ca55))
23
25
  * ensure script main rejections exit with error ([abdab87](https://github.com/Agoric/agoric-sdk/commit/abdab879014a5c3124ebd0e9246995ac6b1ce6e5))
24
26
  * misc runtime robustness found by typecheck ([a033f26](https://github.com/Agoric/agoric-sdk/commit/a033f2638f9f11e19d94d7931e4e0614773b1f60))
27
+ * **solo:** avoid `agd query` problem when given `--chain-id` ([c5a4e95](https://github.com/Agoric/agoric-sdk/commit/c5a4e957001362c18b2e76c431cb12ad140463be))
25
28
  * **solo:** correct lookup of wallet-ui ([c578851](https://github.com/Agoric/agoric-sdk/commit/c578851076ed54ac267a2dfe1367eedafcae4b55))
26
29
  * **solo:** let `init` tolerate existing `html` directory ([4d14a2f](https://github.com/Agoric/agoric-sdk/commit/4d14a2f6c42628bd40ffab2d94510a20088111bb))
27
30
  * **solo:** properly expose `/wallet/bridge.html` ([#8533](https://github.com/Agoric/agoric-sdk/issues/8533)) ([e26232e](https://github.com/Agoric/agoric-sdk/commit/e26232e68e2019db07078ae4962de47b3d0a6666))
28
31
  * **solo:** remove `sim-chain` dependency ([da75a03](https://github.com/Agoric/agoric-sdk/commit/da75a03f95828d773fa3f662d30f0e221030c2ca))
29
32
  * **solo:** update `abci_query` from `custom/vstorage/data` ([60f4220](https://github.com/Agoric/agoric-sdk/commit/60f4220193110c631bd8d41151ea88fde4026478))
33
+ * **solo:** upgrade `chain-cosmos-sdk.js` ([87db09a](https://github.com/Agoric/agoric-sdk/commit/87db09a430ac1edcefd97edd8c92a05b815ce1e3))
30
34
  * **solo:** use alternative endo init ([584ec62](https://github.com/Agoric/agoric-sdk/commit/584ec624854ea0f4f755b189414bc9e0dabaa6e0))
31
35
  * update for `[@jessie](https://github.com/jessie).js/safe-await-separator` ([94c6b3c](https://github.com/Agoric/agoric-sdk/commit/94c6b3c83a5326594f1e2886ae01d6a703a7a68f))
32
36
  * update name of agd fee granter flag ([1aad20c](https://github.com/Agoric/agoric-sdk/commit/1aad20c49bf4374f6078bcbed87a6db9db3e6387))
33
37
  * update TS types ([7580805](https://github.com/Agoric/agoric-sdk/commit/75808055afc129c81b7978fb83c33cfed7a4ecbd))
34
-
35
-
38
+ * use `Codec` and `CodecHelper` where appropriate ([f268e4a](https://github.com/Agoric/agoric-sdk/commit/f268e4ac6f52e8bf07f858d051d05ef8d8fac9b3))
36
39
 
37
40
  ### [0.10.3](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.10.2...@agoric/solo@0.10.3) (2023-06-09)
38
41
 
39
42
  **Note:** Version bump only for package @agoric/solo
40
43
 
41
-
42
-
43
-
44
-
45
44
  ### [0.10.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.10.1...@agoric/solo@0.10.2) (2023-06-02)
46
45
 
47
46
  **Note:** Version bump only for package @agoric/solo
48
47
 
49
-
50
-
51
-
52
-
53
48
  ### [0.10.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.10.0...@agoric/solo@0.10.1) (2023-05-24)
54
49
 
55
50
  **Note:** Version bump only for package @agoric/solo
56
51
 
57
-
58
-
59
-
60
-
61
52
  ## [0.10.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.9.3...@agoric/solo@0.10.0) (2023-05-19)
62
53
 
63
-
64
54
  ### ⚠ BREAKING CHANGES
65
55
 
66
56
  * **solo:** separate boot-solo.js out of boot.js (CONT.)
@@ -72,7 +62,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
72
62
  * convert swing-store from LMDB to Sqlite ([579a6c7](https://github.com/Agoric/agoric-sdk/commit/579a6c796a47092c4ee880316c7530d07d92c961))
73
63
  * refactor SwingStore APIs to cleanly distinguish kernel facet from host facet ([7126822](https://github.com/Agoric/agoric-sdk/commit/71268220d659469cd583c9c510ed8c1a1661f282))
74
64
 
75
-
76
65
  ### Bug Fixes
77
66
 
78
67
  * handle branded TimestampRecord in solo/store/agoric-cli/governance ([8369dd6](https://github.com/Agoric/agoric-sdk/commit/8369dd6a47e7e6c1c799a131fc38f340f0018b38))
@@ -85,52 +74,30 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
85
74
  * more await weeding ([#6745](https://github.com/Agoric/agoric-sdk/issues/6745)) ([19855de](https://github.com/Agoric/agoric-sdk/commit/19855de77cca7a96c1c3a42f090502d11ba36989))
86
75
  * **solo:** unmangle assertion failure condition ([0aafc66](https://github.com/Agoric/agoric-sdk/commit/0aafc66e4072ef2347099560943fbd59476be854))
87
76
 
88
-
89
-
90
77
  ### [0.9.5](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.9.4...@agoric/solo@0.9.5) (2023-02-17)
91
78
 
92
-
93
79
  ### Bug Fixes
94
80
 
95
81
  * **telemetry:** upgrade otel deps ([2c9b017](https://github.com/Agoric/agoric-sdk/commit/2c9b017d301048e5782b3b8cf684392e00419221))
96
82
 
97
-
98
-
99
83
  ### [0.9.4](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.9.3...@agoric/solo@0.9.4) (2022-12-14)
100
84
 
101
85
  **Note:** Version bump only for package @agoric/solo
102
86
 
103
-
104
-
105
-
106
-
107
87
  ### [0.9.3](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.9.2...@agoric/solo@0.9.3) (2022-10-18)
108
88
 
109
89
  **Note:** Version bump only for package @agoric/solo
110
90
 
111
-
112
-
113
-
114
-
115
91
  ### [0.9.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.9.1...@agoric/solo@0.9.2) (2022-10-08)
116
92
 
117
93
  **Note:** Version bump only for package @agoric/solo
118
94
 
119
-
120
-
121
-
122
-
123
95
  ### [0.9.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.9.0...@agoric/solo@0.9.1) (2022-10-05)
124
96
 
125
97
  **Note:** Version bump only for package @agoric/solo
126
98
 
127
-
128
-
129
-
130
-
131
99
  ## [0.9.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.8.0...@agoric/solo@0.9.0) (2022-09-20)
132
100
 
133
-
134
101
  ### Features
135
102
 
136
103
  * **ses-ava:** support full API of Ava ([3b5fd6c](https://github.com/Agoric/agoric-sdk/commit/3b5fd6c103a4a9207eaf2e761b3a096ce78c3d16))
@@ -139,7 +106,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
139
106
  * **solo:** add `cache` function to REPL ([c5e66d6](https://github.com/Agoric/agoric-sdk/commit/c5e66d6e13d7e2b82b719d3346da04a9bca88fea))
140
107
  * **swing-store:** Switch to lmdb-js ([89adc87](https://github.com/Agoric/agoric-sdk/commit/89adc87848494e78213d68194357c876b9ae4cf0))
141
108
 
142
-
143
109
  ### Bug Fixes
144
110
 
145
111
  * add a defaultReapInterval setting to active swingset configurations ([4f4ab5b](https://github.com/Agoric/agoric-sdk/commit/4f4ab5b436dd763a73c6a47250ed6a7831471e33)), closes [#4160](https://github.com/Agoric/agoric-sdk/issues/4160)
@@ -149,18 +115,14 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
149
115
  * Use new `||` assert style, but when TS confused use `if` instead ([#6174](https://github.com/Agoric/agoric-sdk/issues/6174)) ([94625d3](https://github.com/Agoric/agoric-sdk/commit/94625d38c3bb5333b00a69dd3086b1ac13490f62))
150
116
  * **wallet-connection:** retry on websocket not bridge ([#5485](https://github.com/Agoric/agoric-sdk/issues/5485)) ([9a805a0](https://github.com/Agoric/agoric-sdk/commit/9a805a0cc52737004420bc1774270e7fc0e35224))
151
117
 
152
-
153
-
154
118
  ## [0.8.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.7.0...@agoric/solo@0.8.0) (2022-05-28)
155
119
 
156
-
157
120
  ### Features
158
121
 
159
122
  * **solo:** Add /connections and /install-bundle HTTP routes ([01cdbc9](https://github.com/Agoric/agoric-sdk/commit/01cdbc9ff3dfee1fc9dad5c4b19a0c41ff697787))
160
123
  * **solo:** report WebSocket closure ([3e700ca](https://github.com/Agoric/agoric-sdk/commit/3e700ca6b3978af63055cf614b3ded1eeb9d5a85))
161
124
  * **solo:** use `$SOLO_MNEMONIC` on init ([c151398](https://github.com/Agoric/agoric-sdk/commit/c1513989928df1afa2c133984a67dcb984d908ec))
162
125
 
163
-
164
126
  ### Bug Fixes
165
127
 
166
128
  * **solo:** Add missing extension to test-env import ([ea3a1bf](https://github.com/Agoric/agoric-sdk/commit/ea3a1bfd2702b54127d6db963860982835af0369))
@@ -170,22 +132,16 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
170
132
  * **solo:** Relax extraneous xsnap dependency ([616f26e](https://github.com/Agoric/agoric-sdk/commit/616f26e4f886845ad6b33a80fd58aee8665e972f))
171
133
  * **solo-ui:** more robust history updates ([76edbc9](https://github.com/Agoric/agoric-sdk/commit/76edbc9305f37cd646c33d5651415aa3caf9b7d1))
172
134
 
173
-
174
-
175
135
  ## [0.7.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.6.0...@agoric/solo@0.7.0) (2022-05-09)
176
136
 
177
-
178
137
  ### Features
179
138
 
180
139
  * **deployment:** integration: record xsnap and swingStore traces ([fa669e0](https://github.com/Agoric/agoric-sdk/commit/fa669e05c98a42ca647e1603c9ba1e95bec42769))
181
140
  * Accept path for swingStore trace ([63a209c](https://github.com/Agoric/agoric-sdk/commit/63a209c8c7906f8be07f87aedf1313e607df7b42))
182
141
  * Plumb env into makeSwingsetController ([53c2c93](https://github.com/Agoric/agoric-sdk/commit/53c2c93e6bf4fa569e1194c8a6126d187ecbdb84))
183
142
 
184
-
185
-
186
143
  ## [0.6.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.5.6...@agoric/solo@0.6.0) (2022-04-18)
187
144
 
188
-
189
145
  ### ⚠ BREAKING CHANGES
190
146
 
191
147
  * consistent Node engine requirement (>=14.15.0)
@@ -197,36 +153,27 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
197
153
  * **SOLO_OTEL_EXPORTER_PROMETHEUS_PORT:** new env var ([46f0a31](https://github.com/Agoric/agoric-sdk/commit/46f0a3188149b32dccec14a5c5d02b8b35ca2494))
198
154
  * **telemetry:** `echo 2022-02-18T12:00:00Z | ./ingest.sh f.slog` ([bede363](https://github.com/Agoric/agoric-sdk/commit/bede363018656bad32b6764a5216acaaf2ca19bc))
199
155
 
200
-
201
156
  ### Bug Fixes
202
157
 
203
158
  * **solo:** remove `SOLO_*` environment variables after extraction ([19444dc](https://github.com/Agoric/agoric-sdk/commit/19444dc7b7195c8273fe930c21a3b6dcd7f927af))
204
159
  * **telemetry:** rework Prometheus metrics ([38a1922](https://github.com/Agoric/agoric-sdk/commit/38a1922ce2c21e4f31b4a1bedd634bbe627990f9))
205
160
 
206
-
207
161
  ### Miscellaneous Chores
208
162
 
209
163
  * consistent Node engine requirement (>=14.15.0) ([ddc40fa](https://github.com/Agoric/agoric-sdk/commit/ddc40fa525f845ed900512c38b99f01458a3d131))
210
164
 
211
-
212
-
213
165
  ### [0.5.6](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.5.5...@agoric/solo@0.5.6) (2022-02-24)
214
166
 
215
-
216
167
  ### Features
217
168
 
218
169
  * **cosmic-swingset:** add tools for core-eval governance ([7368aa6](https://github.com/Agoric/agoric-sdk/commit/7368aa6c22be840733843b1da125eb659cc21d84))
219
170
 
220
-
221
171
  ### Bug Fixes
222
172
 
223
173
  * **solo:** prevent Object.freeze from borking the REPL ([9e50a54](https://github.com/Agoric/agoric-sdk/commit/9e50a54a598247de5fcf1f2317c3d8b2203b2b66))
224
174
 
225
-
226
-
227
175
  ### [0.5.5](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.5.4...@agoric/solo@0.5.5) (2022-02-21)
228
176
 
229
-
230
177
  ### Features
231
178
 
232
179
  * **solo:** create `ag-solo-mnemonic` in preparation for CosmJS ([1091a9b](https://github.com/Agoric/agoric-sdk/commit/1091a9be12dd29a3072a8f156eb86c2584b29bdd))
@@ -235,7 +182,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
235
182
  * **swing-store:** enable `LMDB_MAP_SIZE` and `SOLO_LMDB_MAP_SIZE` ([77f67a8](https://github.com/Agoric/agoric-sdk/commit/77f67a8010d84b4f595e1fbd524b344050ae47d6))
236
183
  * **telemetry:** use `makeSlogSenderFromModule` ([2892da9](https://github.com/Agoric/agoric-sdk/commit/2892da96eff902c5f616424d6fb9946aaaef1b0f))
237
184
 
238
-
239
185
  ### Bug Fixes
240
186
 
241
187
  * **solo:** kill off sim-chain child with `SIGTERM` ([e85dccd](https://github.com/Agoric/agoric-sdk/commit/e85dccdb445d213f3d85d2cd8a65bf65d61f84f0))
@@ -245,52 +191,37 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
245
191
  * **solo:** Reject with error, not number ([e5f622f](https://github.com/Agoric/agoric-sdk/commit/e5f622fe3708994388b98a7d9d944b3c694d0ad5))
246
192
  * **solo:** remove a symlink dependency in exchange for web config ([42fc52b](https://github.com/Agoric/agoric-sdk/commit/42fc52b9d7bd8217038164f92f0448c4540c6e64))
247
193
 
248
-
249
-
250
194
  ### [0.5.4](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.5.3...@agoric/solo@0.5.4) (2021-12-22)
251
195
 
252
-
253
196
  ### Bug Fixes
254
197
 
255
198
  * **solo:** take a dependency on `esm` to reenable plugins ([16e9f9b](https://github.com/Agoric/agoric-sdk/commit/16e9f9b08edeb412fb722adab593f22fde1e29a8))
256
199
  * **wallet:** allow wallet app deep linking ([96d372e](https://github.com/Agoric/agoric-sdk/commit/96d372e781d3ce405fc82edea78a0633b0d61b9f))
257
200
 
258
-
259
-
260
201
  ### [0.5.3](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.5.2...@agoric/solo@0.5.3) (2021-12-02)
261
202
 
262
-
263
203
  ### Features
264
204
 
265
205
  * **agoric-cli:** enable the `agoric start --debug` option ([4f89a5b](https://github.com/Agoric/agoric-sdk/commit/4f89a5bc2250fb0d5cf64e937d2335b1a3857c7a))
266
206
  * **solo:** tolerate transactions being rejected by ante handler ([6e3b6cd](https://github.com/Agoric/agoric-sdk/commit/6e3b6cd69fbd4eea38ea3979255dd40efd4daa32))
267
207
  * replace internal usage of ag-chain-cosmos with agd ([d4e1128](https://github.com/Agoric/agoric-sdk/commit/d4e1128b8542c48b060ed1be9778e5779668d5b5))
268
208
 
269
-
270
209
  ### Bug Fixes
271
210
 
272
211
  * **deps:** remove explicit `@agoric/babel-standalone` ([4f22453](https://github.com/Agoric/agoric-sdk/commit/4f22453a6f2de1a2c27ae8ad0d11b13116890dab))
273
212
  * **solo:** export objects to CapTP on demand ([5e6dc54](https://github.com/Agoric/agoric-sdk/commit/5e6dc549da61f6c3e10be118a78167108b70b361))
274
213
  * **solo:** trim overlong message bodies in debug logs ([7087181](https://github.com/Agoric/agoric-sdk/commit/7087181a33557871f509bee103787f667ef56969))
275
214
 
276
-
277
-
278
215
  ### [0.5.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.5.1...@agoric/solo@0.5.2) (2021-10-13)
279
216
 
280
217
  **Note:** Version bump only for package @agoric/solo
281
218
 
282
-
283
-
284
-
285
-
286
219
  ### [0.5.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.5.0...@agoric/solo@0.5.1) (2021-09-23)
287
220
 
288
-
289
221
  ### Features
290
222
 
291
223
  * **solo:** make client objects appear earlier, parallelise chain ([656514e](https://github.com/Agoric/agoric-sdk/commit/656514e5937389c57e139bc1302fa435edd2e674))
292
224
 
293
-
294
225
  ### Bug Fixes
295
226
 
296
227
  * **solo:** chain events come from both 'NewBlockHeader' and 'Tx' ([3cefa07](https://github.com/Agoric/agoric-sdk/commit/3cefa0758ab3c0397d7430d0b79b0e544f0d4249))
@@ -298,11 +229,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
298
229
  * **solo:** make `localTimerService` in ms, and update correctly ([d6d4724](https://github.com/Agoric/agoric-sdk/commit/d6d472445a05b8c3d83fc9621879c3c91bf4d737))
299
230
  * **timer:** remove deprecated `createRepeater` ([b45c66d](https://github.com/Agoric/agoric-sdk/commit/b45c66d6d5aadcd91bd2e50d31104bce8d4d78f6))
300
231
 
301
-
302
-
303
232
  ## [0.5.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.4.6...@agoric/solo@0.5.0) (2021-09-15)
304
233
 
305
-
306
234
  ### ⚠ BREAKING CHANGES
307
235
 
308
236
  * **solo:** watch for mailbox updates; not every Tendermint block
@@ -312,7 +240,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
312
240
 
313
241
  * **solo:** add `keys`, `init`, and `delete` to `home.scratch` ([1cecdcb](https://github.com/Agoric/agoric-sdk/commit/1cecdcb7dd571146164aba1e8eda0b6ad91a975a))
314
242
 
315
-
316
243
  ### Bug Fixes
317
244
 
318
245
  * **deploy:** use `@endo/captp` epochs to mitigate crosstalk ([f2b5ba4](https://github.com/Agoric/agoric-sdk/commit/f2b5ba4bc29ca48e00f32982c713de3ec972e879))
@@ -325,66 +252,40 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
325
252
  * more missing Fars. kill "this" ([#3746](https://github.com/Agoric/agoric-sdk/issues/3746)) ([7bd027a](https://github.com/Agoric/agoric-sdk/commit/7bd027a879f98a9a3f30429ee1b54e6057efec42))
326
253
  * XS + SES snapshots are deterministic (test) ([#3781](https://github.com/Agoric/agoric-sdk/issues/3781)) ([95c5f01](https://github.com/Agoric/agoric-sdk/commit/95c5f014b2808ef1b3a32302bb37b3894e449abe)), closes [#2776](https://github.com/Agoric/agoric-sdk/issues/2776)
327
254
 
328
-
329
255
  ### Code Refactoring
330
256
 
331
257
  * clean up organization of swing-store ([3c7e57b](https://github.com/Agoric/agoric-sdk/commit/3c7e57b8f62c0b93660dd57c002ffb96c2cd4137))
332
258
 
333
-
334
-
335
259
  ### [0.4.6](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.4.5...@agoric/solo@0.4.6) (2021-08-22)
336
260
 
337
-
338
261
  ### Bug Fixes
339
262
 
340
263
  * **solo:** make solo-to-chain more robust ([ea0ef15](https://github.com/Agoric/agoric-sdk/commit/ea0ef15645fd851d82c9edf3ad862dcc256e172d))
341
264
 
342
-
343
-
344
265
  ### [0.4.5](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.4.4...@agoric/solo@0.4.5) (2021-08-21)
345
266
 
346
267
  **Note:** Version bump only for package @agoric/solo
347
268
 
348
-
349
-
350
-
351
-
352
269
  ### [0.4.4](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.4.3...@agoric/solo@0.4.4) (2021-08-21)
353
270
 
354
271
  **Note:** Version bump only for package @agoric/solo
355
272
 
356
-
357
-
358
-
359
-
360
273
  ### [0.4.3](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.4.2...@agoric/solo@0.4.3) (2021-08-18)
361
274
 
362
-
363
275
  ### Features
364
276
 
365
277
  * **solo:** allow rpc servers to be specified as an URL ([91650e0](https://github.com/Agoric/agoric-sdk/commit/91650e0dd5a8bea20f161b9225edb1792ca17b55))
366
278
 
367
-
368
-
369
279
  ### [0.4.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.4.1...@agoric/solo@0.4.2) (2021-08-17)
370
280
 
371
281
  **Note:** Version bump only for package @agoric/solo
372
282
 
373
-
374
-
375
-
376
-
377
283
  ### [0.4.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.4.0...@agoric/solo@0.4.1) (2021-08-16)
378
284
 
379
285
  **Note:** Version bump only for package @agoric/solo
380
286
 
381
-
382
-
383
-
384
-
385
287
  ## [0.4.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.2.11...@agoric/solo@0.4.0) (2021-08-15)
386
288
 
387
-
388
289
  ### ⚠ BREAKING CHANGES
389
290
 
390
291
  * **swingset:** Convert RESM to NESM
@@ -393,27 +294,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
393
294
 
394
295
  * **solo:** accept $SOLO_SLOGFILE to write a slogfile ([20f0c04](https://github.com/Agoric/agoric-sdk/commit/20f0c045eb7e948bbbac096b2f04d239767027d9))
395
296
 
396
-
397
297
  ### Bug Fixes
398
298
 
399
299
  * **cosmos:** don't force the output format to JSON ([671b93d](https://github.com/Agoric/agoric-sdk/commit/671b93d6032656dceeee1616b849535145b3e10d))
400
300
  * **solo:** use SDK-local binaries rather than relying on $PATH ([ad96231](https://github.com/Agoric/agoric-sdk/commit/ad962312557adf87b56b5510ff1059ad669331ad))
401
301
  * **swingset:** delete unused snapshots ([#3505](https://github.com/Agoric/agoric-sdk/issues/3505)) ([317959d](https://github.com/Agoric/agoric-sdk/commit/317959d77ca669c8e4bbf504d89fe55bdd383253)), closes [#3374](https://github.com/Agoric/agoric-sdk/issues/3374) [#3431](https://github.com/Agoric/agoric-sdk/issues/3431)
402
302
 
403
-
404
303
  ### Code Refactoring
405
304
 
406
305
  * **swingset:** Convert RESM to NESM ([bf7fd61](https://github.com/Agoric/agoric-sdk/commit/bf7fd6161a79e994c3bc48949e4ccb01b4048772))
407
306
 
408
307
  ### 0.26.10 (2021-07-28)
409
308
 
410
-
411
309
  ### Features
412
310
 
413
311
  * improve ag-solo robustness and performance ([b101d3a](https://github.com/Agoric/agoric-sdk/commit/b101d3a4cd4fc97c4a6c794877efc47d43b12f02))
414
312
  * **solo:** separate hot helper address from cold fees and egress ([20cdfa8](https://github.com/Agoric/agoric-sdk/commit/20cdfa8d89788d6903ea927bf9b3d59ece775251))
415
313
 
416
-
417
314
  ### Bug Fixes
418
315
 
419
316
  * **cosmic-swingset:** decrease Nagling to 500ms ([260ecc9](https://github.com/Agoric/agoric-sdk/commit/260ecc9f437d427b2494e9b7d1a8a3994431164c))
@@ -423,11 +320,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
423
320
  * **solo:** don't give a hint that isn't useful ([ffc68bf](https://github.com/Agoric/agoric-sdk/commit/ffc68bf65d60c2a82bc0f6a5815d6a04495f4755))
424
321
  * **solo:** make delivery process more robust ([2a3ff01](https://github.com/Agoric/agoric-sdk/commit/2a3ff017e1d7e8a127154e052c45157c7605f3b9))
425
322
 
426
-
427
-
428
323
  ## [0.3.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.2.11...@agoric/solo@0.3.0) (2021-08-14)
429
324
 
430
-
431
325
  ### ⚠ BREAKING CHANGES
432
326
 
433
327
  * **swingset:** Convert RESM to NESM
@@ -436,26 +330,22 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
436
330
 
437
331
  * **solo:** accept $SOLO_SLOGFILE to write a slogfile ([20f0c04](https://github.com/Agoric/agoric-sdk/commit/20f0c045eb7e948bbbac096b2f04d239767027d9))
438
332
 
439
-
440
333
  ### Bug Fixes
441
334
 
442
335
  * **cosmos:** don't force the output format to JSON ([671b93d](https://github.com/Agoric/agoric-sdk/commit/671b93d6032656dceeee1616b849535145b3e10d))
443
336
  * **swingset:** delete unused snapshots ([#3505](https://github.com/Agoric/agoric-sdk/issues/3505)) ([317959d](https://github.com/Agoric/agoric-sdk/commit/317959d77ca669c8e4bbf504d89fe55bdd383253)), closes [#3374](https://github.com/Agoric/agoric-sdk/issues/3374) [#3431](https://github.com/Agoric/agoric-sdk/issues/3431)
444
337
 
445
-
446
338
  ### Code Refactoring
447
339
 
448
340
  * **swingset:** Convert RESM to NESM ([bf7fd61](https://github.com/Agoric/agoric-sdk/commit/bf7fd6161a79e994c3bc48949e4ccb01b4048772))
449
341
 
450
342
  ### 0.26.10 (2021-07-28)
451
343
 
452
-
453
344
  ### Features
454
345
 
455
346
  * improve ag-solo robustness and performance ([b101d3a](https://github.com/Agoric/agoric-sdk/commit/b101d3a4cd4fc97c4a6c794877efc47d43b12f02))
456
347
  * **solo:** separate hot helper address from cold fees and egress ([20cdfa8](https://github.com/Agoric/agoric-sdk/commit/20cdfa8d89788d6903ea927bf9b3d59ece775251))
457
348
 
458
-
459
349
  ### Bug Fixes
460
350
 
461
351
  * **cosmic-swingset:** decrease Nagling to 500ms ([260ecc9](https://github.com/Agoric/agoric-sdk/commit/260ecc9f437d427b2494e9b7d1a8a3994431164c))
@@ -465,17 +355,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
465
355
  * **solo:** don't give a hint that isn't useful ([ffc68bf](https://github.com/Agoric/agoric-sdk/commit/ffc68bf65d60c2a82bc0f6a5815d6a04495f4755))
466
356
  * **solo:** make delivery process more robust ([2a3ff01](https://github.com/Agoric/agoric-sdk/commit/2a3ff017e1d7e8a127154e052c45157c7605f3b9))
467
357
 
468
-
469
-
470
358
  ### [0.2.12](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.2.11...@agoric/solo@0.2.12) (2021-07-28)
471
359
 
472
-
473
360
  ### Features
474
361
 
475
362
  * improve ag-solo robustness and performance ([b101d3a](https://github.com/Agoric/agoric-sdk/commit/b101d3a4cd4fc97c4a6c794877efc47d43b12f02))
476
363
  * **solo:** separate hot helper address from cold fees and egress ([20cdfa8](https://github.com/Agoric/agoric-sdk/commit/20cdfa8d89788d6903ea927bf9b3d59ece775251))
477
364
 
478
-
479
365
  ### Bug Fixes
480
366
 
481
367
  * **cosmic-swingset:** decrease Nagling to 500ms ([260ecc9](https://github.com/Agoric/agoric-sdk/commit/260ecc9f437d427b2494e9b7d1a8a3994431164c))
@@ -485,83 +371,54 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
485
371
  * **solo:** don't give a hint that isn't useful ([ffc68bf](https://github.com/Agoric/agoric-sdk/commit/ffc68bf65d60c2a82bc0f6a5815d6a04495f4755))
486
372
  * **solo:** make delivery process more robust ([2a3ff01](https://github.com/Agoric/agoric-sdk/commit/2a3ff017e1d7e8a127154e052c45157c7605f3b9))
487
373
 
488
-
489
-
490
374
  ### [0.2.11](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.2.10...@agoric/solo@0.2.11) (2021-07-01)
491
375
 
492
-
493
376
  ### Bug Fixes
494
377
 
495
378
  * retreat from `xs-worker-no-gc` to `xs-worker` ([ce5ce00](https://github.com/Agoric/agoric-sdk/commit/ce5ce00c6a07d59ee249bfd736a3d5a66c8b903f))
496
379
 
497
-
498
-
499
380
  ### [0.2.10](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.2.9...@agoric/solo@0.2.10) (2021-07-01)
500
381
 
501
382
  **Note:** Version bump only for package @agoric/solo
502
383
 
503
-
504
-
505
-
506
-
507
384
  ### [0.2.9](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.2.8...@agoric/solo@0.2.9) (2021-06-28)
508
385
 
509
-
510
386
  ### Features
511
387
 
512
388
  * demand-paged vats are reloaded from heap snapshots ([#2848](https://github.com/Agoric/agoric-sdk/issues/2848)) ([cb239cb](https://github.com/Agoric/agoric-sdk/commit/cb239cbb27943ad58c304d85ee9b61ba917af79c)), closes [#2273](https://github.com/Agoric/agoric-sdk/issues/2273) [#2277](https://github.com/Agoric/agoric-sdk/issues/2277) [#2422](https://github.com/Agoric/agoric-sdk/issues/2422)
513
389
 
514
-
515
-
516
390
  ### [0.2.8](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.2.7...@agoric/solo@0.2.8) (2021-06-25)
517
391
 
518
-
519
392
  ### Features
520
393
 
521
394
  * **swingset:** introduce 'xs-worker-no-gc' for forward compat ([e46cd88](https://github.com/Agoric/agoric-sdk/commit/e46cd883449c02559e2c0c49b66e26695b4b99da))
522
395
 
523
-
524
-
525
396
  ### [0.2.7](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.2.6...@agoric/solo@0.2.7) (2021-06-24)
526
397
 
527
-
528
398
  ### Bug Fixes
529
399
 
530
400
  * maybe the best of both worlds: xs-worker but no explicit gc() ([8d38e9a](https://github.com/Agoric/agoric-sdk/commit/8d38e9a3d50987cd21e642e330d482e6e733cd3c))
531
401
 
532
-
533
-
534
402
  ### [0.2.6](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.2.5...@agoric/solo@0.2.6) (2021-06-24)
535
403
 
536
-
537
404
  ### Bug Fixes
538
405
 
539
406
  * use 'local' worker, not xsnap, on both solo and chain ([a061a3e](https://github.com/Agoric/agoric-sdk/commit/a061a3e92f4ab90d293dfb5bff0223a24ed12d87)), closes [#3403](https://github.com/Agoric/agoric-sdk/issues/3403)
540
407
 
541
-
542
-
543
408
  ### [0.2.5](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.2.4...@agoric/solo@0.2.5) (2021-06-23)
544
409
 
545
-
546
410
  ### Bug Fixes
547
411
 
548
412
  * **solo:** change default vatManager to 'xs-worker' ([eebaa2d](https://github.com/Agoric/agoric-sdk/commit/eebaa2d75aa2e42786892340af81d137d2058d99)), closes [#3393](https://github.com/Agoric/agoric-sdk/issues/3393)
549
413
  * **solo:** finish changing default vatManager to 'xs-worker' ([ea19295](https://github.com/Agoric/agoric-sdk/commit/ea1929548de02d60bdbd8c204c3e032b9a258a63))
550
414
  * **solo:** stop using install-metering-and-ses ([b21fb61](https://github.com/Agoric/agoric-sdk/commit/b21fb615016386edd206dfbe8f364cf42398b4d4)), closes [#3373](https://github.com/Agoric/agoric-sdk/issues/3373)
551
415
 
552
-
553
-
554
416
  ### [0.2.4](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.2.3...@agoric/solo@0.2.4) (2021-06-16)
555
417
 
556
418
  **Note:** Version bump only for package @agoric/solo
557
419
 
558
-
559
-
560
-
561
-
562
420
  ### [0.2.3](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.2.2...@agoric/solo@0.2.3) (2021-06-15)
563
421
 
564
-
565
422
  ### Features
566
423
 
567
424
  * modify all SwingStore uses to reflect constructor renaming ([9cda6a4](https://github.com/Agoric/agoric-sdk/commit/9cda6a4542bb64d72ddd42d08e2056f5323b18a9))
@@ -570,34 +427,22 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
570
427
  * remove no-LMDB fallback from cosmic-swingset ([11dba7a](https://github.com/Agoric/agoric-sdk/commit/11dba7a145711097966ed41b9d36dd2ffdad2846))
571
428
  * use 'engine-gc.js' to get the Node.js garbage collector ([0153529](https://github.com/Agoric/agoric-sdk/commit/0153529cbfc0b7da2d1ec434b32b2171bc246f93))
572
429
 
573
-
574
430
  ### Bug Fixes
575
431
 
576
432
  * convert swing-store-simple to "type": "module" ([93279c1](https://github.com/Agoric/agoric-sdk/commit/93279c10a01ce55790a0aa8b5f9e2b2ce7e1732e))
577
433
  * Pin ESM to forked version ([54dbb55](https://github.com/Agoric/agoric-sdk/commit/54dbb55d64d7ff7adb395bc4bd9d1461dd2d3c17))
578
434
  * Preinitialize Babel ([bb76808](https://github.com/Agoric/agoric-sdk/commit/bb768089c3588e54612d7c9a4528972b5688f4e6))
579
435
 
580
-
581
-
582
436
  ## [0.2.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.2.1...@agoric/solo@0.2.2) (2021-05-10)
583
437
 
584
438
  **Note:** Version bump only for package @agoric/solo
585
439
 
586
-
587
-
588
-
589
-
590
440
  ## [0.2.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/solo@0.2.0...@agoric/solo@0.2.1) (2021-05-05)
591
441
 
592
442
  **Note:** Version bump only for package @agoric/solo
593
443
 
594
-
595
-
596
-
597
-
598
444
  # 0.2.0 (2021-05-05)
599
445
 
600
-
601
446
  ### Bug Fixes
602
447
 
603
448
  * more Docker paths ([7783bb4](https://github.com/Agoric/agoric-sdk/commit/7783bb4740f4ea83b788fec45c1d1aa70145bba1))
@@ -607,7 +452,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
607
452
  * clean up Docker directory usage ([a97d0b3](https://github.com/Agoric/agoric-sdk/commit/a97d0b3edc1f47e04d93d37c6e999d0798903d03))
608
453
  * eliminate unnecessary script indirection ([119d7b9](https://github.com/Agoric/agoric-sdk/commit/119d7b91d4042e0881b4bd8acf79391709bcd08d))
609
454
 
610
-
611
455
  ### Features
612
456
 
613
457
  * default to xs-worker in chain ([#2995](https://github.com/Agoric/agoric-sdk/issues/2995)) ([7ebb5d8](https://github.com/Agoric/agoric-sdk/commit/7ebb5d8dac86662e167ff0333cc655bd511d2c58))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/solo",
3
- "version": "0.11.0-u21.0.1",
3
+ "version": "0.11.0-u22.1",
4
4
  "description": "Agoric's Solo vat runner",
5
5
  "type": "module",
6
6
  "bin": {
@@ -11,7 +11,7 @@
11
11
  "scripts": {
12
12
  "build": "exit 0",
13
13
  "test": "ava",
14
- "test:c8": "c8 --all $C8_OPTIONS ava",
14
+ "test:c8": "c8 --all ${C8_OPTIONS:-} ava",
15
15
  "test:xs": "exit 0",
16
16
  "lint-fix": "yarn lint:eslint --fix",
17
17
  "lint": "yarn run -T run-s --continue-on-error 'lint:*'",
@@ -22,28 +22,28 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/access-token": "0.4.22-u21.0.1",
26
- "@agoric/cache": "0.3.3-u21.0.1",
27
- "@agoric/cosmic-proto": "0.5.0-u21.0.1",
28
- "@agoric/cosmic-swingset": "0.42.0-u21.0.1",
29
- "@agoric/internal": "0.4.0-u21.0.1",
30
- "@agoric/notifier": "0.7.0-u21.0.1",
31
- "@agoric/spawner": "0.6.9-u21.0.1",
32
- "@agoric/store": "0.9.3-u21.0.1",
33
- "@agoric/swing-store": "0.10.0-u21.0.1",
34
- "@agoric/swingset-vat": "0.33.0-u21.0.1",
35
- "@agoric/telemetry": "0.6.3-u21.0.1",
36
- "@agoric/time": "0.3.3-u21.0.1",
37
- "@agoric/vats": "0.16.0-u21.0.1",
38
- "@agoric/wallet": "0.19.0-u21.0.1",
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-u22.1",
26
+ "@agoric/cache": "0.4.0-u22.1",
27
+ "@agoric/cosmic-proto": "0.5.0-u22.1",
28
+ "@agoric/cosmic-swingset": "0.42.0-u22.1",
29
+ "@agoric/internal": "0.4.0-u22.1",
30
+ "@agoric/notifier": "0.7.0-u22.1",
31
+ "@agoric/spawner": "0.6.9-u22.1",
32
+ "@agoric/store": "0.10.0-u22.1",
33
+ "@agoric/swing-store": "0.10.0-u22.1",
34
+ "@agoric/swingset-vat": "0.33.0-u22.1",
35
+ "@agoric/telemetry": "0.7.0-u22.1",
36
+ "@agoric/time": "0.4.0-u22.1",
37
+ "@agoric/vats": "0.16.0-u22.1",
38
+ "@agoric/wallet": "0.19.0-u22.1",
39
+ "@endo/base64": "^1.0.12",
40
+ "@endo/captp": "^4.4.8",
41
+ "@endo/errors": "^1.2.13",
42
+ "@endo/eventual-send": "^1.3.4",
43
+ "@endo/import-bundle": "^1.5.2",
44
+ "@endo/init": "^1.1.12",
45
+ "@endo/marshal": "^1.8.0",
46
+ "@endo/promise-kit": "^1.1.13",
47
47
  "anylogger": "^0.21.0",
48
48
  "deterministic-json": "^1.0.5",
49
49
  "express": "^5.0.1",
@@ -56,8 +56,8 @@
56
56
  "ws": "^7.2.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@agoric/ertp": "0.16.3-u21.0.1",
60
- "@endo/bundle-source": "^4.0.0",
59
+ "@agoric/ertp": "0.17.0-u22.1",
60
+ "@endo/bundle-source": "^4.1.2",
61
61
  "ava": "^5.3.0",
62
62
  "c8": "^10.1.3"
63
63
  },
@@ -78,7 +78,7 @@
78
78
  "workerThreads": false
79
79
  },
80
80
  "typeCoverage": {
81
- "atLeast": 73.95
81
+ "atLeast": 73.92
82
82
  },
83
- "gitHead": "f5318add2db0f254e5647374088bb7ae350ad3fa"
83
+ "gitHead": "83a42d0f343b01448a918631dce159b5bdb69b7e"
84
84
  }
@@ -16,6 +16,7 @@ import {
16
16
  QueryDataRequest,
17
17
  QueryDataResponse,
18
18
  } from '@agoric/cosmic-proto/vstorage/query.js';
19
+ import { CodecHelper } from '@agoric/cosmic-proto';
19
20
 
20
21
  import { makeNotifierKit } from '@agoric/notifier';
21
22
  import {
@@ -200,18 +201,16 @@ export async function connectToChain(
200
201
 
201
202
  let goodRpcHref = rpcHrefs[0];
202
203
  const runHelper = (args, stdin = undefined) => {
203
- const fullArgs = [
204
- ...args,
205
- `--chain-id=${chainID}`,
206
- `--node=${goodRpcHref}`,
207
- `--home=${helperDir}`,
208
- ];
204
+ const fullArgs = [...args, `--node=${goodRpcHref}`, `--home=${helperDir}`];
209
205
  console.debug(HELPER, ...fullArgs);
210
206
  return new Promise(resolve => {
211
207
  const proc = execFile(
212
208
  HELPER,
213
209
  fullArgs,
214
- { maxBuffer: MAX_BUFFER_SIZE },
210
+ {
211
+ maxBuffer: MAX_BUFFER_SIZE,
212
+ env: { ...process.env, AGD_CHAIN_ID: chainID },
213
+ },
215
214
  (_error, stdout, stderr) => {
216
215
  resolve({ stdout, stderr });
217
216
  },
@@ -305,7 +304,7 @@ export async function connectToChain(
305
304
  };
306
305
 
307
306
  const subscribeToTxHash = (txHash, cb) => {
308
- const txQuery = `tm.event = 'Tx' and tx.hash = '${txHash}'`;
307
+ const txQuery = `tm.event = 'Tx' AND tx.hash = '${txHash}'`;
309
308
 
310
309
  const bufHash = decodeHex(txHash);
311
310
  const b64Hash = encodeBase64(bufHash);
@@ -328,7 +327,7 @@ export async function connectToChain(
328
327
  cb(obj.error);
329
328
  return;
330
329
  }
331
- if (!obj.result) {
330
+ if (!obj.result || Object.keys(obj.result).length === 0) {
332
331
  return;
333
332
  }
334
333
  let txResult;
@@ -355,14 +354,16 @@ export async function connectToChain(
355
354
  // This takes care of BeginBlock/EndBlock events.
356
355
  const blockQuery = `tm.event = 'NewBlockHeader' AND storage.path = '${storagePath}'`;
357
356
  // We need a separate query for events raised by transactions.
358
- const txQuery = `tm.event = 'Tx' and storage.path = '${storagePath}'`;
357
+ const txQuery = `tm.event = 'Tx' AND storage.path = '${storagePath}'`;
359
358
 
360
359
  // console.info('subscribeToStorage', blockQuery);
361
360
  const blockSubscriptionId = sendRPC('subscribe', { query: blockQuery });
362
361
  const txSubscriptionId = sendRPC('subscribe', { query: txQuery });
363
362
  const queryId = sendRPC('abci_query', {
364
363
  path: `/agoric.vstorage.Query/Data`,
365
- data: encodeHex(QueryDataRequest.toProto({ path: storagePath })),
364
+ data: encodeHex(
365
+ CodecHelper(QueryDataRequest).toProto({ path: storagePath }),
366
+ ),
366
367
  });
367
368
 
368
369
  const cleanup = () => {
@@ -385,18 +386,14 @@ export async function connectToChain(
385
386
  // Query for our initial value.
386
387
  setCallback(queryId, obj => {
387
388
  // console.info(`got ${storagePath} query`, obj);
388
- if (obj.result && obj.result.response && obj.result.response.value) {
389
+ if (obj.result?.response?.value) {
389
390
  // Decode the layers up to the actual storage value.
390
391
  const { value: b64JsonStorage, height: heightString } =
391
392
  obj.result.response;
392
393
  const buf = decodeBase64(b64JsonStorage);
393
394
  const { value: storageValue } = QueryDataResponse.decode(buf);
394
395
  guardedCb(BigInt(heightString), storageValue);
395
- } else if (
396
- obj.result &&
397
- obj.result.response &&
398
- obj.result.response.code === 6
399
- ) {
396
+ } else if (obj.result?.response?.code === 6) {
400
397
  // No need to try again, just a missing value that our subscription
401
398
  // will pick up.
402
399
  const { height: heightString } = obj.result.response;