@interchain-kit/react 0.3.49 → 0.3.50

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.
@@ -1,5 +1,6 @@
1
1
  export * from './useAsync';
2
2
  export * from './useChain';
3
+ export * from './useChains';
3
4
  export * from './useChainWallet';
4
5
  export * from './useSigningClient';
5
6
  export * from './useWalletManager';
@@ -0,0 +1,8 @@
1
+ import { useChain } from './useChain';
2
+ export const useChains = (chainNames) => {
3
+ const results = {};
4
+ chainNames.forEach(chainName => {
5
+ results[chainName] = useChain(chainName);
6
+ });
7
+ return results;
8
+ };
package/hooks/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './useAsync';
2
2
  export * from './useChain';
3
+ export * from './useChains';
3
4
  export * from './useChainWallet';
4
5
  export * from './useSigningClient';
5
6
  export * from './useWalletManager';
package/hooks/index.js CHANGED
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./useAsync"), exports);
18
18
  __exportStar(require("./useChain"), exports);
19
+ __exportStar(require("./useChains"), exports);
19
20
  __exportStar(require("./useChainWallet"), exports);
20
21
  __exportStar(require("./useSigningClient"), exports);
21
22
  __exportStar(require("./useWalletManager"), exports);
@@ -0,0 +1,3 @@
1
+ import { Chain } from '@chain-registry/types';
2
+ import { UseChainReturnType } from './../types/chain';
3
+ export declare const useChains: (chainNames: Chain["chainName"][]) => Record<string, UseChainReturnType>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useChains = void 0;
4
+ const useChain_1 = require("./useChain");
5
+ const useChains = (chainNames) => {
6
+ const results = {};
7
+ chainNames.forEach(chainName => {
8
+ results[chainName] = (0, useChain_1.useChain)(chainName);
9
+ });
10
+ return results;
11
+ };
12
+ exports.useChains = useChains;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interchain-kit/react",
3
- "version": "0.3.49",
3
+ "version": "0.3.50",
4
4
  "author": "Hyperweb <developers@hyperweb.io>",
5
5
  "description": "interchain-kit wallet connector react package",
6
6
  "main": "index.js",
@@ -35,8 +35,8 @@
35
35
  "keywords": [],
36
36
  "dependencies": {
37
37
  "@chain-registry/types": "^2.0.1",
38
- "@interchain-kit/core": "0.3.49",
39
- "@interchain-kit/store": "0.3.49",
38
+ "@interchain-kit/core": "0.3.50",
39
+ "@interchain-kit/store": "0.3.50",
40
40
  "@interchain-ui/react": "^1.26.3",
41
41
  "@interchainjs/cosmos": "1.17.3",
42
42
  "@interchainjs/cosmos-types": "1.17.3",
@@ -70,5 +70,5 @@
70
70
  "react": "^19.0.0",
71
71
  "react-dom": "^19.0.0"
72
72
  },
73
- "gitHead": "a509c9b1ac6935b1ee58926e25ad1e66f86711c1"
73
+ "gitHead": "2b3813f0fb8f9c6beb7259845acbc0a0d52c72c0"
74
74
  }