@agoric/casting 0.4.3-upgrade-20-dev-086463b.0 → 0.4.3-upgrade-19-devnet-dev-5428c4d.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,6 +3,42 @@
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.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/casting@0.4.3-u19.1...@agoric/casting@0.4.3-u19.2) (2025-03-13)
7
+
8
+ **Note:** Version bump only for package @agoric/casting
9
+
10
+
11
+
12
+
13
+
14
+ ### [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)
15
+
16
+ **Note:** Version bump only for package @agoric/casting
17
+
18
+
19
+
20
+
21
+
22
+ ### [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)
23
+
24
+
25
+ ### Features
26
+
27
+ * **casting:** makeHttpClient for explicit net access with cosmjs ([5bc5138](https://github.com/Agoric/agoric-sdk/commit/5bc513853d144f2967d9c2fc5b21fa2c4e284982))
28
+ * makeTendermintRpcClient ([129516a](https://github.com/Agoric/agoric-sdk/commit/129516a8f3ae58f16d17460f58d2c69ee215a584))
29
+ * **types:** ambient exports from agoric/internal ([71d18c4](https://github.com/Agoric/agoric-sdk/commit/71d18c4221f63f1c0e7c45562b5a0a86a0b4b5c0))
30
+ * **types:** explicit exports from notifier ([0bc72a8](https://github.com/Agoric/agoric-sdk/commit/0bc72a88c7d91ff1b2f00ee5cabeb58c6315598e))
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * **casting:** dont crash on bad capdata ([8f4ba3a](https://github.com/Agoric/agoric-sdk/commit/8f4ba3a2f56174161d88f57280513ee5a0f5d4d9))
36
+ * **casting:** explicitly harden prototypes ([833c9b3](https://github.com/Agoric/agoric-sdk/commit/833c9b3f63bb83362789bc1261eabf71a8e88ea2))
37
+ * **casting:** properly follow an unpopulated state entry ([97be818](https://github.com/Agoric/agoric-sdk/commit/97be818c4f5c507830f70392f334fa60dd6d7f94))
38
+ * update for `[@jessie](https://github.com/jessie).js/safe-await-separator` ([94c6b3c](https://github.com/Agoric/agoric-sdk/commit/94c6b3c83a5326594f1e2886ae01d6a703a7a68f))
39
+
40
+
41
+
6
42
  ### [0.4.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/casting@0.4.1...@agoric/casting@0.4.2) (2023-06-02)
7
43
 
8
44
  **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-20-dev-086463b.0+086463b",
3
+ "version": "0.4.3-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
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.3.3-upgrade-20-dev-086463b.0+086463b",
26
- "@agoric/notifier": "0.6.3-upgrade-20-dev-086463b.0+086463b",
27
- "@agoric/store": "0.9.3-upgrade-20-dev-086463b.0+086463b",
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"
25
+ "@agoric/internal": "0.4.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
26
+ "@agoric/notifier": "0.7.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
27
+ "@agoric/store": "0.9.3-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
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"
38
38
  },
39
39
  "devDependencies": {
40
- "@agoric/cosmic-proto": "0.4.1-upgrade-20-dev-086463b.0+086463b",
41
- "@endo/ses-ava": "^1.2.10",
40
+ "@agoric/cosmic-proto": "0.5.0-upgrade-19-devnet-dev-5428c4d.0+5428c4d",
41
+ "@endo/ses-ava": "^1.2.9",
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": "086463b1a157a30d0382d7dadc56e751f4479028"
64
+ "gitHead": "5428c4da67b53cef7ff53ba7b2a28cf6ec8f643a"
65
65
  }
@@ -1 +1 @@
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"}
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"}
@@ -92,10 +92,6 @@ 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
99
95
  // Coordinate with switch/case of tryGetDataAtHeight.
100
96
  const proofs = ['strict', 'none', 'optimistic'];
101
97
 
@@ -114,7 +110,7 @@ export const makeCosmjsFollower = (
114
110
  const {
115
111
  decode = MAKE_DEFAULT_DECODER(),
116
112
  unserializer = MAKE_DEFAULT_UNSERIALIZER(),
117
- proof = 'none',
113
+ proof = 'optimistic',
118
114
  crasher = null,
119
115
  } = options;
120
116
 
@@ -221,20 +217,14 @@ export const makeCosmjsFollower = (
221
217
  };
222
218
 
223
219
  /**
224
- * @deprecated no longer supported https://github.com/cosmos/cosmjs/pull/1623
225
220
  * @param {number} [height]
226
221
  * @returns {Promise<QueryStoreResponse>}
227
222
  */
228
223
  const getProvenDataAtHeight = async height => {
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
- );
224
+ return retryGetPrefixedData(async (endpoint, storeName, storeSubkey) => {
225
+ const queryClient = await provideQueryClient(endpoint);
226
+ return E(queryClient).queryStoreVerified(storeName, storeSubkey, height);
227
+ });
238
228
  };
239
229
 
240
230
  /**
@@ -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.2"}
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"}