@agoric/casting 0.4.3-dev-2da8e5c.0.2da8e5c → 0.4.3-dev-3294e0c.0.3294e0c
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-
|
|
3
|
+
"version": "0.4.3-dev-3294e0c.0.3294e0c",
|
|
4
4
|
"description": "Agoric's OCap broadcasting system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/main.js",
|
|
@@ -22,9 +22,9 @@
|
|
|
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/store": "0.9.3-dev-
|
|
25
|
+
"@agoric/internal": "0.3.3-dev-3294e0c.0.3294e0c",
|
|
26
|
+
"@agoric/notifier": "0.6.3-dev-3294e0c.0.3294e0c",
|
|
27
|
+
"@agoric/store": "0.9.3-dev-3294e0c.0.3294e0c",
|
|
28
28
|
"@cosmjs/encoding": "^0.36.0",
|
|
29
29
|
"@cosmjs/proto-signing": "^0.36.0",
|
|
30
30
|
"@cosmjs/stargate": "^0.36.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@endo/promise-kit": "^1.1.13"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
40
|
+
"@agoric/cosmic-proto": "0.4.1-dev-3294e0c.0.3294e0c",
|
|
41
41
|
"@endo/ses-ava": "^1.3.2",
|
|
42
42
|
"ava": "^7.0.0",
|
|
43
43
|
"c8": "^10.1.3",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"typeCoverage": {
|
|
64
64
|
"atLeast": 89.19
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "3294e0c1e81f8d145c6b57624d080908b935f524"
|
|
67
67
|
}
|
|
@@ -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":"AAoHO,mCANM,CAAC,WACH,GAAG,kBACH,aAAa,YACb,eAAe,GACb,aAAa,CAAC,CAAC,CAAC,CA6f5B;0BA9kBa,CAAC,IAAW,SAAS,qBAAqB,CAAC,CAAC,CAAC;;;;;;iCAI9C;IACZ,QAAY,CAAC,KAAK,EAAE,UAAU,CAAC;IAC/B,QAAY,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;mCAzB4B,YAAY;qCACV,YAAY;0CAFP,YAAY;8BADxB,YAAY"}
|
package/src/follower-cosmjs.js
CHANGED
|
@@ -15,7 +15,6 @@ import { makeLeader as defaultMakeLeader } from './leader-netconfig.js';
|
|
|
15
15
|
* @import {ValueFollowerElement} from './types.js';
|
|
16
16
|
* @import {LeaderOrMaker} from './types.js';
|
|
17
17
|
* @import {FollowerOptions} from './types.js';
|
|
18
|
-
* @import {QueryClient} from '@cosmjs/stargate';
|
|
19
18
|
* @import {StreamCell} from './types.js';
|
|
20
19
|
*/
|
|
21
20
|
|
|
@@ -160,7 +159,7 @@ export const makeCosmjsFollower = (
|
|
|
160
159
|
return clientP;
|
|
161
160
|
};
|
|
162
161
|
|
|
163
|
-
/** @type {Map<string, QueryClient>} */
|
|
162
|
+
/** @type {Map<string, import('@cosmjs/stargate').QueryClient>} */
|
|
164
163
|
const endpointToQueryClient = new Map();
|
|
165
164
|
|
|
166
165
|
/**
|
|
@@ -481,6 +480,7 @@ export const makeCosmjsFollower = (
|
|
|
481
480
|
// contain data.
|
|
482
481
|
await null;
|
|
483
482
|
for (;;) {
|
|
483
|
+
/** @type {number} */
|
|
484
484
|
let thisHeight;
|
|
485
485
|
({ value: cursorData, height: thisHeight } =
|
|
486
486
|
await getDataAtHeight(cursorBlockHeight));
|
package/src/netconfig.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {unknown} specimen
|
|
3
|
+
* @returns {asserts specimen is NetworkConfig}
|
|
4
|
+
*/
|
|
5
|
+
export function assertNetworkConfig(specimen: unknown): asserts specimen is NetworkConfig;
|
|
1
6
|
/**
|
|
2
7
|
* @typedef {object} NetworkConfig
|
|
3
8
|
* `peers` and `seeds` are only used for configuring full nodes participating in
|
|
@@ -12,7 +17,6 @@
|
|
|
12
17
|
* @property {string[]} [seeds] - nodes which tell you about other peers but don't gossip actual data
|
|
13
18
|
*/
|
|
14
19
|
export const NetworkConfigShape: import("@endo/patterns").Matcher;
|
|
15
|
-
export function assertNetworkConfig(specimen: unknown): asserts specimen is NetworkConfig;
|
|
16
20
|
/**
|
|
17
21
|
* `peers` and `seeds` are only used for configuring full nodes participating in
|
|
18
22
|
* the chain’s p2p network, not for rpc clients. The `gci` is needed for rpc
|
package/src/netconfig.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"netconfig.d.ts","sourceRoot":"","sources":["netconfig.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"netconfig.d.ts","sourceRoot":"","sources":["netconfig.js"],"names":[],"mappings":"AA8BA;;;GAGG;AAEH,8CAJW,OAAO,GACL,QAAQ,QAAQ,IAAI,aAAa,CAK7C;AAlCD;;;;;;;;;;;;GAYG;AACH,kEAWE;;;;;;;;;;cAlBY,MAAM,EAAE;;;;eACR,MAAM"}
|
package/src/netconfig.js
CHANGED
|
@@ -33,6 +33,7 @@ harden(NetworkConfigShape);
|
|
|
33
33
|
* @returns {asserts specimen is NetworkConfig}
|
|
34
34
|
*/
|
|
35
35
|
|
|
36
|
-
export
|
|
36
|
+
export function assertNetworkConfig(specimen) {
|
|
37
37
|
mustMatch(specimen, NetworkConfigShape);
|
|
38
|
+
}
|
|
38
39
|
harden(assertNetworkConfig);
|