@agoric/casting 0.4.3-dev-c730d2b.0 → 0.4.3-dev-152d3cc.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-c730d2b.0+c730d2b",
3
+ "version": "0.4.3-dev-152d3cc.0+152d3cc",
4
4
  "description": "Agoric's OCap broadcasting system",
5
5
  "type": "module",
6
6
  "main": "src/main.js",
@@ -22,13 +22,13 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/internal": "0.3.3-dev-c730d2b.0+c730d2b",
26
- "@agoric/notifier": "0.6.3-dev-c730d2b.0+c730d2b",
27
- "@agoric/store": "0.9.3-dev-c730d2b.0+c730d2b",
28
- "@cosmjs/encoding": "^0.32.3",
29
- "@cosmjs/proto-signing": "^0.32.3",
30
- "@cosmjs/stargate": "^0.32.3",
31
- "@cosmjs/tendermint-rpc": "^0.32.3",
25
+ "@agoric/internal": "0.3.3-dev-152d3cc.0+152d3cc",
26
+ "@agoric/notifier": "0.6.3-dev-152d3cc.0+152d3cc",
27
+ "@agoric/store": "0.9.3-dev-152d3cc.0+152d3cc",
28
+ "@cosmjs/encoding": "^0.33.0",
29
+ "@cosmjs/proto-signing": "^0.33.0",
30
+ "@cosmjs/stargate": "^0.33.0",
31
+ "@cosmjs/tendermint-rpc": "^0.33.0",
32
32
  "@endo/errors": "^1.2.9",
33
33
  "@endo/far": "^1.1.10",
34
34
  "@endo/init": "^1.1.8",
@@ -37,7 +37,7 @@
37
37
  "@endo/promise-kit": "^1.1.9"
38
38
  },
39
39
  "devDependencies": {
40
- "@agoric/cosmic-proto": "0.4.1-dev-c730d2b.0+c730d2b",
40
+ "@agoric/cosmic-proto": "0.4.1-dev-152d3cc.0+152d3cc",
41
41
  "@endo/ses-ava": "^1.2.9",
42
42
  "ava": "^5.3.0",
43
43
  "c8": "^10.1.2",
@@ -61,5 +61,5 @@
61
61
  "typeCoverage": {
62
62
  "atLeast": 89.22
63
63
  },
64
- "gitHead": "c730d2b9f4d955accaae4ad85bfece56989afd67"
64
+ "gitHead": "152d3ccd88d05edf90f3340dc3b9c03f85678499"
65
65
  }
@@ -1 +1 @@
1
- {"version":3,"file":"follower-cosmjs.d.ts","sourceRoot":"","sources":["follower-cosmjs.js"],"names":[],"mappings":"AAwGO,mCANM,CAAC,WACH,GAAG,kBACH,OAAO,YAAY,EAAE,aAAa,YAClC,OAAO,YAAY,EAAE,eAAe,GAClC,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"}
1
+ {"version":3,"file":"follower-cosmjs.d.ts","sourceRoot":"","sources":["follower-cosmjs.js"],"names":[],"mappings":"AA4GO,mCANM,CAAC,WACH,GAAG,kBACH,OAAO,YAAY,EAAE,aAAa,YAClC,OAAO,YAAY,EAAE,eAAe,GAClC,aAAa,CAAC,CAAC,CAAC,CA4f5B;0BA7kBa,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"}
@@ -92,6 +92,10 @@ const collectSingle = values => {
92
92
  return head[0];
93
93
  };
94
94
 
95
+ // NB: 'none' is the only value that works. We've left the other cases
96
+ // in anticipation of the ecosystem providing JS proofs again.
97
+ // See https://github.com/cosmos/cosmjs/issues/1618#issuecomment-2574934505
98
+ // and https://github.com/cosmos/ics23/pull/353?email_source=slack
95
99
  // Coordinate with switch/case of tryGetDataAtHeight.
96
100
  const proofs = ['strict', 'none', 'optimistic'];
97
101
 
@@ -110,7 +114,7 @@ export const makeCosmjsFollower = (
110
114
  const {
111
115
  decode = MAKE_DEFAULT_DECODER(),
112
116
  unserializer = MAKE_DEFAULT_UNSERIALIZER(),
113
- proof = 'optimistic',
117
+ proof = 'none',
114
118
  crasher = null,
115
119
  } = options;
116
120
 
@@ -217,14 +221,20 @@ export const makeCosmjsFollower = (
217
221
  };
218
222
 
219
223
  /**
224
+ * @deprecated no longer supported https://github.com/cosmos/cosmjs/pull/1623
220
225
  * @param {number} [height]
221
226
  * @returns {Promise<QueryStoreResponse>}
222
227
  */
223
228
  const getProvenDataAtHeight = async height => {
224
- return retryGetPrefixedData(async (endpoint, storeName, storeSubkey) => {
225
- const queryClient = await provideQueryClient(endpoint);
226
- return E(queryClient).queryStoreVerified(storeName, storeSubkey, height);
227
- });
229
+ console.error(
230
+ 'getProvenDataAtHeight',
231
+ height,
232
+ 'is no longer supported; use',
233
+ { proof: 'none' },
234
+ );
235
+ throw makeError(
236
+ X`Verified queries are no longer supported; use { proof: 'none' }`,
237
+ );
228
238
  };
229
239
 
230
240
  /**