@agoric/casting 0.4.3-dev-627b56b.0 → 0.4.3-dev-8ef62f4.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 +7 -7
- package/src/follower-cosmjs.d.ts.map +1 -1
- package/src/follower-cosmjs.js +15 -0
- package/src/iterable.d.ts.map +1 -1
- package/src/iterable.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/casting",
|
|
3
|
-
"version": "0.4.3-dev-
|
|
3
|
+
"version": "0.4.3-dev-8ef62f4.0+8ef62f4",
|
|
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-
|
|
26
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
27
|
-
"@agoric/spawner": "0.6.9-dev-
|
|
28
|
-
"@agoric/store": "0.9.3-dev-
|
|
25
|
+
"@agoric/internal": "0.3.3-dev-8ef62f4.0+8ef62f4",
|
|
26
|
+
"@agoric/notifier": "0.6.3-dev-8ef62f4.0+8ef62f4",
|
|
27
|
+
"@agoric/spawner": "0.6.9-dev-8ef62f4.0+8ef62f4",
|
|
28
|
+
"@agoric/store": "0.9.3-dev-8ef62f4.0+8ef62f4",
|
|
29
29
|
"@cosmjs/encoding": "^0.30.1",
|
|
30
30
|
"@cosmjs/proto-signing": "^0.30.1",
|
|
31
31
|
"@cosmjs/stargate": "^0.30.1",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"node-fetch": "^2.6.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@agoric/cosmic-proto": "0.3.1-dev-
|
|
41
|
+
"@agoric/cosmic-proto": "0.3.1-dev-8ef62f4.0+8ef62f4",
|
|
42
42
|
"@endo/ses-ava": "^1.0.1",
|
|
43
43
|
"@types/node-fetch": "^2.6.2",
|
|
44
44
|
"ava": "^5.3.0",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"typeCoverage": {
|
|
63
63
|
"atLeast": 89.5
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "8ef62f4439a59a5558fda5130a0c43a3cac76905"
|
|
66
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"follower-cosmjs.d.ts","sourceRoot":"","sources":["follower-cosmjs.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"follower-cosmjs.d.ts","sourceRoot":"","sources":["follower-cosmjs.js"],"names":[],"mappings":"AAyGO,+CALI,GAAG,gJAyfb;+BAnkByB,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"}
|
package/src/follower-cosmjs.js
CHANGED
|
@@ -10,6 +10,15 @@ import { MAKE_DEFAULT_DECODER, MAKE_DEFAULT_UNSERIALIZER } from './defaults.js';
|
|
|
10
10
|
import { makeCastingSpec } from './casting-spec.js';
|
|
11
11
|
import { makeLeader as defaultMakeLeader } from './leader-netconfig.js';
|
|
12
12
|
|
|
13
|
+
// A lot of cosmjs classes end up hardened through instances shared by this
|
|
14
|
+
// package so preemptively harden them all.
|
|
15
|
+
// However we cannot directly harden a module namespace object (exotic behavior
|
|
16
|
+
// for bindings) so spread the namespace instead
|
|
17
|
+
harden({
|
|
18
|
+
tendermint34: { ...tendermint34 },
|
|
19
|
+
stargateStar: { ...stargateStar },
|
|
20
|
+
});
|
|
21
|
+
|
|
13
22
|
const { QueryClient } = stargateStar;
|
|
14
23
|
const { Tendermint34Client } = tendermint34;
|
|
15
24
|
const { details: X, quote: q, Fail } = assert;
|
|
@@ -357,6 +366,7 @@ export const makeCosmjsFollower = (
|
|
|
357
366
|
);
|
|
358
367
|
}
|
|
359
368
|
}
|
|
369
|
+
harden(allValuesFromCell);
|
|
360
370
|
|
|
361
371
|
/**
|
|
362
372
|
* @param {import('./types.js').StreamCell<T>} streamCell
|
|
@@ -372,6 +382,7 @@ export const makeCosmjsFollower = (
|
|
|
372
382
|
);
|
|
373
383
|
}
|
|
374
384
|
}
|
|
385
|
+
harden(reverseValuesFromCell);
|
|
375
386
|
|
|
376
387
|
/**
|
|
377
388
|
* @param {import('./types.js').StreamCell<T>} streamCell
|
|
@@ -389,6 +400,7 @@ export const makeCosmjsFollower = (
|
|
|
389
400
|
);
|
|
390
401
|
}
|
|
391
402
|
}
|
|
403
|
+
harden(lastValueFromCell);
|
|
392
404
|
|
|
393
405
|
/**
|
|
394
406
|
* @yields {ValueFollowerElement<T>}
|
|
@@ -434,6 +446,7 @@ export const makeCosmjsFollower = (
|
|
|
434
446
|
lastValue = latest.value;
|
|
435
447
|
}
|
|
436
448
|
}
|
|
449
|
+
harden(getLatestIterable);
|
|
437
450
|
|
|
438
451
|
/**
|
|
439
452
|
* @param {number} [cursorBlockHeight]
|
|
@@ -552,6 +565,7 @@ export const makeCosmjsFollower = (
|
|
|
552
565
|
cursorData = currentData;
|
|
553
566
|
}
|
|
554
567
|
}
|
|
568
|
+
harden(getEachIterableAtHeight);
|
|
555
569
|
|
|
556
570
|
/**
|
|
557
571
|
* @param {number} [cursorBlockHeight]
|
|
@@ -575,6 +589,7 @@ export const makeCosmjsFollower = (
|
|
|
575
589
|
cursorBlockHeight = cursorStreamCell.blockHeight - 1;
|
|
576
590
|
}
|
|
577
591
|
}
|
|
592
|
+
harden(getReverseIterableAtHeight);
|
|
578
593
|
|
|
579
594
|
/** @type {ValueFollower<T>} */
|
|
580
595
|
return Far('chain follower', {
|
package/src/iterable.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iterable.d.ts","sourceRoot":"","sources":["iterable.js"],"names":[],"mappings":"AAWO,
|
|
1
|
+
{"version":3,"file":"iterable.d.ts","sourceRoot":"","sources":["iterable.js"],"names":[],"mappings":"AAWO,gIAQN;AAQM;IAGH,kCAAkC;;;IAAlC,kCAAkC;;GAQlC;AASG;IAGH,kCAAkC;;;IAAlC,kCAAkC;;GAQlC;AAOG;IAGH,kCAAkC;;;IAAlC,kCAAkC;;GAQlC"}
|