@agoric/casting 0.4.3-upgrade-19-dev-38ca80a.0 → 0.4.3-upgrade-20-dev-31be299.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/CHANGELOG.md CHANGED
@@ -3,34 +3,6 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ### [0.4.3-u19.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/casting@0.4.3-u19.0...@agoric/casting@0.4.3-u19.1) (2025-03-03)
7
-
8
- **Note:** Version bump only for package @agoric/casting
9
-
10
-
11
-
12
-
13
-
14
- ### [0.4.3-u19.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/casting@0.4.2...@agoric/casting@0.4.3-u19.0) (2025-02-24)
15
-
16
-
17
- ### Features
18
-
19
- * **casting:** makeHttpClient for explicit net access with cosmjs ([5bc5138](https://github.com/Agoric/agoric-sdk/commit/5bc513853d144f2967d9c2fc5b21fa2c4e284982))
20
- * makeTendermintRpcClient ([129516a](https://github.com/Agoric/agoric-sdk/commit/129516a8f3ae58f16d17460f58d2c69ee215a584))
21
- * **types:** ambient exports from agoric/internal ([71d18c4](https://github.com/Agoric/agoric-sdk/commit/71d18c4221f63f1c0e7c45562b5a0a86a0b4b5c0))
22
- * **types:** explicit exports from notifier ([0bc72a8](https://github.com/Agoric/agoric-sdk/commit/0bc72a88c7d91ff1b2f00ee5cabeb58c6315598e))
23
-
24
-
25
- ### Bug Fixes
26
-
27
- * **casting:** dont crash on bad capdata ([8f4ba3a](https://github.com/Agoric/agoric-sdk/commit/8f4ba3a2f56174161d88f57280513ee5a0f5d4d9))
28
- * **casting:** explicitly harden prototypes ([833c9b3](https://github.com/Agoric/agoric-sdk/commit/833c9b3f63bb83362789bc1261eabf71a8e88ea2))
29
- * **casting:** properly follow an unpopulated state entry ([97be818](https://github.com/Agoric/agoric-sdk/commit/97be818c4f5c507830f70392f334fa60dd6d7f94))
30
- * update for `[@jessie](https://github.com/jessie).js/safe-await-separator` ([94c6b3c](https://github.com/Agoric/agoric-sdk/commit/94c6b3c83a5326594f1e2886ae01d6a703a7a68f))
31
-
32
-
33
-
34
6
  ### [0.4.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/casting@0.4.1...@agoric/casting@0.4.2) (2023-06-02)
35
7
 
36
8
  **Note:** Version bump only for package @agoric/casting
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/casting",
3
- "version": "0.4.3-upgrade-19-dev-38ca80a.0+38ca80a",
3
+ "version": "0.4.3-upgrade-20-dev-31be299.0+31be299",
4
4
  "description": "Agoric's OCap broadcasting system",
5
5
  "type": "module",
6
6
  "main": "src/main.js",
@@ -22,23 +22,23 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/internal": "0.4.0-upgrade-19-dev-38ca80a.0+38ca80a",
26
- "@agoric/notifier": "0.7.0-upgrade-19-dev-38ca80a.0+38ca80a",
27
- "@agoric/store": "0.9.3-upgrade-19-dev-38ca80a.0+38ca80a",
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",
32
- "@endo/errors": "^1.2.9",
33
- "@endo/far": "^1.1.10",
34
- "@endo/init": "^1.1.8",
35
- "@endo/lockdown": "^1.0.14",
36
- "@endo/marshal": "^1.6.3",
37
- "@endo/promise-kit": "^1.1.9"
25
+ "@agoric/internal": "0.3.3-upgrade-20-dev-31be299.0+31be299",
26
+ "@agoric/notifier": "0.6.3-upgrade-20-dev-31be299.0+31be299",
27
+ "@agoric/store": "0.9.3-upgrade-20-dev-31be299.0+31be299",
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
+ "@endo/errors": "^1.2.10",
33
+ "@endo/far": "^1.1.11",
34
+ "@endo/init": "^1.1.9",
35
+ "@endo/lockdown": "^1.0.15",
36
+ "@endo/marshal": "^1.6.4",
37
+ "@endo/promise-kit": "^1.1.10"
38
38
  },
39
39
  "devDependencies": {
40
- "@agoric/cosmic-proto": "0.5.0-upgrade-19-dev-38ca80a.0+38ca80a",
41
- "@endo/ses-ava": "^1.2.9",
40
+ "@agoric/cosmic-proto": "0.4.1-upgrade-20-dev-31be299.0+31be299",
41
+ "@endo/ses-ava": "^1.2.10",
42
42
  "ava": "^5.3.0",
43
43
  "c8": "^10.1.2",
44
44
  "express": "^5.0.1",
@@ -61,5 +61,5 @@
61
61
  "typeCoverage": {
62
62
  "atLeast": 89.22
63
63
  },
64
- "gitHead": "38ca80a02d19bd6cb13faff88d77af040f7a975b"
64
+ "gitHead": "31be2992aec21c06633699b7d8095423845b0530"
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
  /**
@@ -1 +1 @@
1
- {"root":["./src/casting-spec.js","./src/change-follower.js","./src/defaults.js","./src/follower-cosmjs.js","./src/follower.js","./src/iterable.js","./src/leader-netconfig.js","./src/leader.js","./src/main.js","./src/makeHttpClient.js","./src/netconfig.js","./src/shuffle.js","./src/types.js"],"version":"5.8.1-rc"}
1
+ {"root":["./src/casting-spec.js","./src/change-follower.js","./src/defaults.js","./src/follower-cosmjs.js","./src/follower.js","./src/iterable.js","./src/leader-netconfig.js","./src/leader.js","./src/main.js","./src/makeHttpClient.js","./src/netconfig.js","./src/shuffle.js","./src/types.js"],"version":"5.8.2"}