@agoric/casting 0.4.3-dev-0752cec.0 → 0.4.3-dev-940d3f0.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-
|
|
3
|
+
"version": "0.4.3-dev-940d3f0.0+940d3f0",
|
|
4
4
|
"description": "Agoric's OCap broadcasting system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/main.js",
|
|
@@ -22,13 +22,14 @@
|
|
|
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-940d3f0.0+940d3f0",
|
|
26
|
+
"@agoric/notifier": "0.6.3-dev-940d3f0.0+940d3f0",
|
|
27
|
+
"@agoric/store": "0.9.3-dev-940d3f0.0+940d3f0",
|
|
28
28
|
"@cosmjs/encoding": "^0.32.3",
|
|
29
29
|
"@cosmjs/proto-signing": "^0.32.3",
|
|
30
30
|
"@cosmjs/stargate": "^0.32.3",
|
|
31
31
|
"@cosmjs/tendermint-rpc": "^0.32.3",
|
|
32
|
+
"@endo/errors": "^1.2.2",
|
|
32
33
|
"@endo/far": "^1.1.2",
|
|
33
34
|
"@endo/init": "^1.1.2",
|
|
34
35
|
"@endo/lockdown": "^1.0.7",
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
"node-fetch": "^2.6.0"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
41
|
+
"@agoric/cosmic-proto": "0.4.1-dev-940d3f0.0+940d3f0",
|
|
41
42
|
"@endo/ses-ava": "^1.2.2",
|
|
42
43
|
"@types/node-fetch": "^2.6.2",
|
|
43
44
|
"ava": "^5.3.0",
|
|
@@ -61,5 +62,5 @@
|
|
|
61
62
|
"typeCoverage": {
|
|
62
63
|
"atLeast": 88.94
|
|
63
64
|
},
|
|
64
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "940d3f0a993ca45a6bb0893bd59e6df1f22d9143"
|
|
65
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":"AAwGO,mCANM,CAAC,WACH,GAAG,+HAGD,aAAa,CAAC,CAAC,CAAC,CAsf5B;0BAnkBa,CAAC,IAAW,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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="ses" />
|
|
2
2
|
|
|
3
|
+
import { X, q, Fail, makeError } from '@endo/errors';
|
|
3
4
|
import { E, Far } from '@endo/far';
|
|
4
5
|
import * as tendermint34 from '@cosmjs/tendermint-rpc';
|
|
5
6
|
import * as stargateStar from '@cosmjs/stargate';
|
|
6
7
|
|
|
7
8
|
import { isStreamCell } from '@agoric/internal/src/lib-chainStorage.js';
|
|
8
|
-
|
|
9
9
|
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';
|
|
@@ -21,7 +21,6 @@ harden({
|
|
|
21
21
|
|
|
22
22
|
const { QueryClient } = stargateStar;
|
|
23
23
|
const { Tendermint34Client } = tendermint34;
|
|
24
|
-
const { details: X, quote: q, Fail } = assert;
|
|
25
24
|
const textDecoder = new TextDecoder();
|
|
26
25
|
|
|
27
26
|
/** @template T @typedef {import('./types.js').Follower<import('./types.js').ValueFollowerElement<T>>} ValueFollower */
|
|
@@ -264,7 +263,7 @@ export const makeCosmjsFollower = (
|
|
|
264
263
|
return;
|
|
265
264
|
}
|
|
266
265
|
crash(
|
|
267
|
-
|
|
266
|
+
makeError(
|
|
268
267
|
X`Alleged value ${alleged.value} did not match proof ${proven.value}`,
|
|
269
268
|
),
|
|
270
269
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leader-netconfig.d.ts","sourceRoot":"","sources":["leader-netconfig.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"leader-netconfig.d.ts","sourceRoot":"","sources":["leader-netconfig.js"],"names":[],"mappings":"AAeO,qDAJI,MAAM,EAAE,mEAEN,OAAO,YAAY,EAAE,MAAM,CAevC;AAMM,0DAHI,MAAM,0EAoChB;AAOM,sHAFM,IAAI,CAAC,OAAO,YAAY,EAAE,MAAM,CAAC,CAO7C"}
|
package/src/leader-netconfig.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* global fetch */
|
|
2
|
+
import { Fail } from '@endo/errors';
|
|
2
3
|
import { makeRoundRobinLeader } from './leader.js';
|
|
3
4
|
import {
|
|
4
5
|
DEFAULT_BOOTSTRAP,
|
|
@@ -7,8 +8,6 @@ import {
|
|
|
7
8
|
} from './defaults.js';
|
|
8
9
|
import { assertNetworkConfig } from './netconfig.js';
|
|
9
10
|
|
|
10
|
-
const { Fail } = assert;
|
|
11
|
-
|
|
12
11
|
/**
|
|
13
12
|
* @param {string[]} rpcAddrs
|
|
14
13
|
* @param {import('./types.js').LeaderOptions} [leaderOptions]
|