@agoric/casting 0.4.3-dev-7ffae88.0 → 0.4.3-dev-c5284e4.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-7ffae88.0+7ffae88",
3
+ "version": "0.4.3-dev-c5284e4.0+c5284e4",
4
4
  "description": "Agoric's OCap broadcasting system",
5
5
  "type": "module",
6
6
  "main": "src/main.js",
@@ -22,24 +22,24 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/internal": "0.3.3-dev-7ffae88.0+7ffae88",
26
- "@agoric/notifier": "0.6.3-dev-7ffae88.0+7ffae88",
27
- "@agoric/spawner": "0.6.9-dev-7ffae88.0+7ffae88",
28
- "@agoric/store": "0.9.3-dev-7ffae88.0+7ffae88",
29
- "@cosmjs/encoding": "^0.30.1",
30
- "@cosmjs/proto-signing": "^0.30.1",
31
- "@cosmjs/stargate": "^0.30.1",
32
- "@cosmjs/tendermint-rpc": "^0.30.1",
33
- "@endo/far": "^1.0.2",
34
- "@endo/init": "^1.0.2",
35
- "@endo/lockdown": "^1.0.2",
36
- "@endo/marshal": "^1.1.0",
37
- "@endo/promise-kit": "^1.0.2",
25
+ "@agoric/internal": "0.3.3-dev-c5284e4.0+c5284e4",
26
+ "@agoric/notifier": "0.6.3-dev-c5284e4.0+c5284e4",
27
+ "@agoric/spawner": "0.6.9-dev-c5284e4.0+c5284e4",
28
+ "@agoric/store": "0.9.3-dev-c5284e4.0+c5284e4",
29
+ "@cosmjs/encoding": "^0.32.2",
30
+ "@cosmjs/proto-signing": "^0.32.2",
31
+ "@cosmjs/stargate": "^0.32.2",
32
+ "@cosmjs/tendermint-rpc": "^0.32.2",
33
+ "@endo/far": "^1.0.4",
34
+ "@endo/init": "^1.0.4",
35
+ "@endo/lockdown": "^1.0.4",
36
+ "@endo/marshal": "^1.3.0",
37
+ "@endo/promise-kit": "^1.0.4",
38
38
  "node-fetch": "^2.6.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@agoric/cosmic-proto": "0.3.1-dev-7ffae88.0+7ffae88",
42
- "@endo/ses-ava": "^1.1.0",
41
+ "@agoric/cosmic-proto": "0.4.1-dev-c5284e4.0+c5284e4",
42
+ "@endo/ses-ava": "^1.1.2",
43
43
  "@types/node-fetch": "^2.6.2",
44
44
  "ava": "^5.3.0",
45
45
  "c8": "^7.13.0",
@@ -60,7 +60,7 @@
60
60
  "workerThreads": false
61
61
  },
62
62
  "typeCoverage": {
63
- "atLeast": 89.5
63
+ "atLeast": 89.58
64
64
  },
65
- "gitHead": "7ffae88ae37df782d5ffe3cf92261a498b0f636c"
65
+ "gitHead": "c5284e4721ad2702c4551f216bb8eed7abe4d7cf"
66
66
  }
@@ -1,14 +1,10 @@
1
1
  // @ts-check
2
2
  /* global globalThis */
3
- import anyTest from 'ava';
4
- import {
5
- createProtobufRpcClient,
6
- QueryClient,
7
- setupBankExtension,
8
- } from '@cosmjs/stargate';
3
+ import { QueryClient, setupBankExtension } from '@cosmjs/stargate';
9
4
  import { Tendermint34Client } from '@cosmjs/tendermint-rpc';
10
- import { QueryClientImpl } from '@agoric/cosmic-proto/vstorage/query.js';
5
+ import anyTest from 'ava';
11
6
 
7
+ import { agoric } from '@agoric/cosmic-proto';
12
8
  import { makeHttpClient } from '../src/makeHttpClient.js';
13
9
  import { captureIO, replayIO, web1, web2 } from './net-access-fixture.js';
14
10
 
@@ -81,12 +77,13 @@ test(`vstorage query: Children (RECORDING: ${RECORDING})`, async t => {
81
77
  : { fetch: replayIO(web2), web: new Map() };
82
78
  const rpcClient = makeHttpClient(scenario2.endpoint, fetchMock);
83
79
 
80
+ t.is(agoric.vstorage.Children.typeUrl, '/agoric.vstorage.Children');
81
+
84
82
  const tmClient = await Tendermint34Client.create(rpcClient);
85
83
  const qClient = new QueryClient(tmClient);
86
- const rpc = createProtobufRpcClient(qClient);
87
- const queryService = new QueryClientImpl(rpc);
84
+ const queryService = agoric.vstorage.createRpcQueryExtension(qClient);
88
85
 
89
- const children = await queryService.Children({ path: '' });
86
+ const children = await queryService.children({ path: '' });
90
87
  if (io.recording) {
91
88
  t.snapshot(web);
92
89
  }