@agoric/casting 0.4.3-dev-4989f26.0 → 0.4.3-dev-779b73d.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/casting",
3
- "version": "0.4.3-dev-4989f26.0+4989f26",
3
+ "version": "0.4.3-dev-779b73d.0+779b73d",
4
4
  "description": "Agoric's OCap broadcasting system",
5
5
  "type": "module",
6
6
  "main": "src/main.js",
@@ -22,10 +22,10 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/internal": "0.3.3-dev-4989f26.0+4989f26",
26
- "@agoric/notifier": "0.6.3-dev-4989f26.0+4989f26",
27
- "@agoric/spawner": "0.6.9-dev-4989f26.0+4989f26",
28
- "@agoric/store": "0.9.3-dev-4989f26.0+4989f26",
25
+ "@agoric/internal": "0.3.3-dev-779b73d.0+779b73d",
26
+ "@agoric/notifier": "0.6.3-dev-779b73d.0+779b73d",
27
+ "@agoric/spawner": "0.6.9-dev-779b73d.0+779b73d",
28
+ "@agoric/store": "0.9.3-dev-779b73d.0+779b73d",
29
29
  "@cosmjs/encoding": "^0.30.1",
30
30
  "@cosmjs/proto-signing": "^0.30.1",
31
31
  "@cosmjs/stargate": "^0.30.1",
@@ -58,5 +58,5 @@
58
58
  "timeout": "20m",
59
59
  "workerThreads": false
60
60
  },
61
- "gitHead": "4989f26753580251326c40fd6a7a7e3b853aff01"
61
+ "gitHead": "779b73d11992c1e00cfe99bfe3444081107a34a1"
62
62
  }
@@ -1 +1 @@
1
- {"version":3,"file":"follower-cosmjs.d.ts","sourceRoot":"","sources":["follower-cosmjs.js"],"names":[],"mappings":"AAiGO,+CALI,GAAG,gJAyeb;+BAnjByB,OAAO,YAAY,EAAE,QAAQ,CAAC,OAAO,YAAY,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC;;;;;;iCAIxF;IACZ,QAAY,CAAC,KAAK,EAAE,UAAU,CAAC;IAC/B,QAAY,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"follower-cosmjs.d.ts","sourceRoot":"","sources":["follower-cosmjs.js"],"names":[],"mappings":"AAgGO,+CALI,GAAG,gJA8eb;+BAxjByB,OAAO,YAAY,EAAE,QAAQ,CAAC,OAAO,YAAY,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC;;;;;;iCAIxF;IACZ,QAAY,CAAC,KAAK,EAAE,UAAU,CAAC;IAC/B,QAAY,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB"}
@@ -1,5 +1,4 @@
1
1
  /// <reference types="ses"/>
2
- /* eslint-disable no-await-in-loop, @jessie.js/no-nested-await */
3
2
 
4
3
  import { E, Far } from '@endo/far';
5
4
  import * as tendermint34 from '@cosmjs/tendermint-rpc';
@@ -240,6 +239,7 @@ export const makeCosmjsFollower = (
240
239
  * @returns {Promise<QueryStoreResponse>}
241
240
  */
242
241
  const tryGetDataAtHeight = async blockHeight => {
242
+ await null;
243
243
  if (proof === 'strict') {
244
244
  // Crash hard if we can't prove.
245
245
  return getProvenDataAtHeight(blockHeight).catch(crash);
@@ -274,6 +274,7 @@ export const makeCosmjsFollower = (
274
274
  * @param {number} [blockHeight] desired height, or the latest height if not set
275
275
  */
276
276
  const getDataAtHeight = async blockHeight => {
277
+ await null;
277
278
  for (let attempt = 0; ; attempt += 1) {
278
279
  try {
279
280
  // AWAIT
@@ -391,6 +392,7 @@ export const makeCosmjsFollower = (
391
392
  /** @type {number | undefined} the last known latest height */
392
393
  let lastHeight;
393
394
  let lastValue;
395
+ await null;
394
396
  for (;;) {
395
397
  const latest = await getDataAtHeight();
396
398
  if (lastHeight && latest.height <= lastHeight) {
@@ -441,6 +443,7 @@ export const makeCosmjsFollower = (
441
443
  // block.
442
444
  // If the block has no corresponding data, wait for the first block to
443
445
  // contain data.
446
+ await null;
444
447
  for (;;) {
445
448
  ({ value: cursorData, height: cursorBlockHeight } = await getDataAtHeight(
446
449
  cursorBlockHeight,
@@ -553,6 +556,7 @@ export const makeCosmjsFollower = (
553
556
  // cursorBlockHeight) so we know not to emit duplicates
554
557
  // of that cell.
555
558
  let cursorData;
559
+ await null;
556
560
  while (cursorBlockHeight === undefined || cursorBlockHeight > 0) {
557
561
  ({ value: cursorData, height: cursorBlockHeight } = await getDataAtHeight(
558
562
  cursorBlockHeight,