@agoric/client-utils 0.1.1-dev-0ce4d4e.0.0ce4d4e → 0.1.1-dev-5f939ae.0.5f939ae

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/client-utils",
3
- "version": "0.1.1-dev-0ce4d4e.0.0ce4d4e",
3
+ "version": "0.1.1-dev-5f939ae.0.5f939ae",
4
4
  "description": "Utilities for building Agoric clients",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -29,14 +29,14 @@
29
29
  "ts-blank-space": "^0.6.1"
30
30
  },
31
31
  "dependencies": {
32
- "@agoric/casting": "0.4.3-dev-0ce4d4e.0.0ce4d4e",
33
- "@agoric/cosmic-proto": "0.4.1-dev-0ce4d4e.0.0ce4d4e",
34
- "@agoric/ertp": "0.16.3-dev-0ce4d4e.0.0ce4d4e",
35
- "@agoric/internal": "0.3.3-dev-0ce4d4e.0.0ce4d4e",
36
- "@agoric/smart-wallet": "0.5.4-dev-0ce4d4e.0.0ce4d4e",
37
- "@agoric/vats": "0.15.2-dev-0ce4d4e.0.0ce4d4e",
38
- "@cosmjs/stargate": "^0.34.0",
39
- "@cosmjs/tendermint-rpc": "^0.34.0",
32
+ "@agoric/casting": "0.4.3-dev-5f939ae.0.5f939ae",
33
+ "@agoric/cosmic-proto": "0.4.1-dev-5f939ae.0.5f939ae",
34
+ "@agoric/ertp": "0.16.3-dev-5f939ae.0.5f939ae",
35
+ "@agoric/internal": "0.3.3-dev-5f939ae.0.5f939ae",
36
+ "@agoric/smart-wallet": "0.5.4-dev-5f939ae.0.5f939ae",
37
+ "@agoric/vats": "0.15.2-dev-5f939ae.0.5f939ae",
38
+ "@cosmjs/stargate": "^0.35.0-rc",
39
+ "@cosmjs/tendermint-rpc": "^0.35.0-rc",
40
40
  "@endo/base64": "^1.0.12",
41
41
  "@endo/common": "^1.2.13",
42
42
  "@endo/errors": "^1.2.13",
@@ -62,5 +62,5 @@
62
62
  ],
63
63
  "timeout": "20m"
64
64
  },
65
- "gitHead": "0ce4d4e7d227bbe202e686219e27819c5b172467"
65
+ "gitHead": "5f939aedfe40a0bb129592eebef75ee3bc205020"
66
66
  }
package/src/rpc.d.ts CHANGED
@@ -3,10 +3,10 @@ export function pickEndpoint({ rpcAddrs }: {
3
3
  }): any;
4
4
  export function makeTendermint34Client(endpoint: string, { fetch }: {
5
5
  fetch: typeof window.fetch;
6
- }): Promise<Tendermint34Client>;
6
+ }): Tendermint34Client;
7
7
  export function makeStargateClient(config: MinimalNetworkConfig, { fetch }: {
8
8
  fetch: typeof window.fetch;
9
- }): Promise<StargateClient>;
9
+ }): StargateClient;
10
10
  import { Tendermint34Client } from '@cosmjs/tendermint-rpc';
11
11
  import type { MinimalNetworkConfig } from './network-config.js';
12
12
  import { StargateClient } from '@cosmjs/stargate';
package/src/rpc.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["rpc.js"],"names":[],"mappings":"AASO;;QAAkD;AAOlD,iDAJI,MAAM,aACN;IAAE,KAAK,EAAE,OAAO,MAAM,CAAC,KAAK,CAAA;CAAE,GAC5B,OAAO,CAAC,kBAAkB,CAAC,CAKvC;AAOM,2CAJI,oBAAoB,aACpB;IAAE,KAAK,EAAE,OAAO,MAAM,CAAC,KAAK,CAAA;CAAE,GAC5B,OAAO,CAAC,cAAc,CAAC,CAMnC;mCA5BkC,wBAAwB;0CAGpB,qBAAqB;+BAJ7B,kBAAkB"}
1
+ {"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["rpc.js"],"names":[],"mappings":"AASO;;QAAkD;AAOlD,iDAJI,MAAM,aACN;IAAE,KAAK,EAAE,OAAO,MAAM,CAAC,KAAK,CAAA;CAAE,GAC5B,kBAAkB,CAK9B;AAOM,2CAJI,oBAAoB,aACpB;IAAE,KAAK,EAAE,OAAO,MAAM,CAAC,KAAK,CAAA;CAAE,GAC5B,cAAc,CAM1B;mCA5BkC,wBAAwB;0CAGpB,qBAAqB;+BAJ7B,kBAAkB"}
package/src/rpc.js CHANGED
@@ -12,7 +12,7 @@ export const pickEndpoint = ({ rpcAddrs }) => rpcAddrs[0];
12
12
  /**
13
13
  * @param {string} endpoint
14
14
  * @param {{ fetch: typeof window.fetch }} io
15
- * @returns {Promise<Tendermint34Client>}
15
+ * @returns {Tendermint34Client}
16
16
  */
17
17
  export const makeTendermint34Client = (endpoint, { fetch }) => {
18
18
  const rpcClient = makeTendermintRpcClient(endpoint, fetch);
@@ -22,10 +22,10 @@ export const makeTendermint34Client = (endpoint, { fetch }) => {
22
22
  /**
23
23
  * @param {MinimalNetworkConfig} config
24
24
  * @param {{ fetch: typeof window.fetch }} io
25
- * @returns {Promise<StargateClient>}
25
+ * @returns {StargateClient}
26
26
  */
27
- export const makeStargateClient = async (config, { fetch }) => {
27
+ export const makeStargateClient = (config, { fetch }) => {
28
28
  const url = pickEndpoint(config);
29
- const tm = await makeTendermint34Client(url, { fetch });
29
+ const tm = makeTendermint34Client(url, { fetch });
30
30
  return StargateClient.create(tm);
31
31
  };
@@ -26,7 +26,7 @@ export const makeSmartWalletKit = async (
26
26
  ) => {
27
27
  const vsk = makeVstorageKit({ fetch }, networkConfig);
28
28
 
29
- const client = await makeStargateClient(networkConfig, { fetch });
29
+ const client = makeStargateClient(networkConfig, { fetch });
30
30
 
31
31
  const agoricNames = await (names
32
32
  ? makeAgoricNames(vsk.fromBoard, vsk.vstorage)