@interchain-kit/react 0.0.1-beta.47 → 0.0.1-beta.48

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.
@@ -5,11 +5,11 @@ export const useAccount = (chainName, walletName) => {
5
5
  const walletManager = useWalletManager();
6
6
  const chainAccount = walletManager.getWalletRepositoryByName(walletName)?.getChainAccountByName(chainName);
7
7
  useEffect(() => {
8
- if (chainAccount?.walletState === WalletState.Connected) {
8
+ if (chainAccount?.walletState === WalletState.Connected && chainName && walletName) {
9
9
  chainAccount.getAccount();
10
10
  }
11
11
  }, [chainName, walletName, chainAccount?.walletState]);
12
- if (chainAccount?.walletState === WalletState.Connected) {
12
+ if (chainAccount?.walletState === WalletState.Connected && chainName && walletName) {
13
13
  return {
14
14
  account: chainAccount?.account,
15
15
  isLoading: chainAccount.getAccountState().loading,
@@ -1,15 +1,14 @@
1
1
  import { useWalletManager } from "./useWalletManager";
2
2
  import { useAccount } from "./useAccount";
3
- import { useCurrentWallet } from './useCurrentWallet';
4
3
  import { useInterchainClient } from './useInterchainClient';
5
4
  import { useWalletModal } from "../modal";
6
5
  import { useRpcEndpoint } from "./useRpcEndpoint";
7
6
  import { WalletState } from "@interchain-kit/core";
7
+ import { useCurrentChainWallet } from "./useCurrentChainWallet";
8
8
  export const useChain = (chainName) => {
9
9
  const walletManager = useWalletManager();
10
- const currentWallet = useCurrentWallet();
11
- const chainAccount = currentWallet?.getChainAccountByName?.(chainName);
12
- const walletName = currentWallet?.info?.name;
10
+ const chainAccount = useCurrentChainWallet();
11
+ const walletName = chainAccount?.info?.name;
13
12
  const rpcEndpointHook = useRpcEndpoint(chainName, walletName);
14
13
  const accountHook = useAccount(chainName, walletName);
15
14
  const signingClientHook = useInterchainClient(chainName, walletName);
@@ -19,25 +18,30 @@ export const useChain = (chainName) => {
19
18
  if (chainAccount?.walletState === WalletState.Connected) {
20
19
  return;
21
20
  }
22
- else {
23
- open();
24
- }
21
+ walletManager.currentChainName = chainName;
22
+ open();
23
+ },
24
+ disconnect: () => {
25
+ walletManager.currentChainName = chainName;
26
+ chainAccount ?? chainAccount.disconnect();
27
+ },
28
+ openView: () => {
29
+ walletManager.currentChainName = chainName;
30
+ open();
25
31
  },
26
- disconnect: () => chainAccount.disconnect(),
27
- openView: open,
28
32
  closeView: close,
29
33
  getRpcEndpoint: () => chainAccount.getRpcEndpoint(),
30
- status: currentWallet?.walletState,
34
+ status: chainAccount?.walletState,
31
35
  username: accountHook.account?.username,
32
- message: currentWallet?.errorMessage
36
+ message: chainAccount?.errorMessage
33
37
  };
34
- if (currentWallet && chainAccount?.walletState === WalletState.Connected) {
38
+ if (chainAccount && chainAccount?.walletState === WalletState.Connected) {
35
39
  return {
36
40
  logoUrl: walletManager.getChainLogoUrl(chainName),
37
41
  chain: chainAccount?.chain,
38
42
  assetList: chainAccount?.assetList,
39
43
  address: accountHook.account?.address,
40
- wallet: currentWallet,
44
+ wallet: chainAccount,
41
45
  rpcEndpoint: rpcEndpointHook.rpcEndpoint,
42
46
  ...cosmosKitUserChainReturnType, //for migration cosmos kit
43
47
  signingClient: signingClientHook.signingClient,
@@ -56,7 +60,7 @@ export const useChain = (chainName) => {
56
60
  chain: chainAccount?.chain,
57
61
  assetList: chainAccount?.assetList,
58
62
  address: accountHook.account?.address,
59
- wallet: currentWallet,
63
+ wallet: chainAccount,
60
64
  rpcEndpoint: rpcEndpointHook.rpcEndpoint,
61
65
  ...cosmosKitUserChainReturnType, //for migration cosmos kit
62
66
  signingClient: signingClientHook.signingClient,
@@ -0,0 +1,11 @@
1
+ import { bindAllMethodsToContext } from "../utils/helpers";
2
+ import { useWalletManager } from "./useWalletManager";
3
+ export const useCurrentChainWallet = () => {
4
+ const walletManager = useWalletManager();
5
+ const { currentChainName, currentWalletName } = walletManager;
6
+ const chainWallet = walletManager.getWalletRepositoryByName(currentWalletName)?.getChainAccountByName(currentChainName);
7
+ if (chainWallet) {
8
+ return bindAllMethodsToContext(chainWallet);
9
+ }
10
+ return {};
11
+ };
@@ -9,7 +9,8 @@ export const useCurrentWallet = () => {
9
9
  // open()
10
10
  // }
11
11
  // }, [walletManager.currentWalletName, walletManager.state])
12
- const wallet = walletManager.getCurrentWallet();
12
+ const { currentWalletName, currentChainName, getWalletRepositoryByName } = walletManager;
13
+ const wallet = getWalletRepositoryByName(currentWalletName);
13
14
  if (wallet) {
14
15
  return bindAllMethodsToContext(wallet);
15
16
  }
@@ -1,46 +1,50 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { ConnectedContent, ConnectedHeader, ConnectingContent, ConnectingHeader, NotExistContent, NotExistHeader, QRCodeContent, QRCodeHeader, RejectContent, RejectHeader, WalletListContent, WalletListHeader, } from "./views";
3
3
  import { useWalletModal } from "./provider";
4
- import { useCurrentWallet, useWalletManager } from "../hooks";
4
+ import { useWalletManager } from "../hooks";
5
5
  import { useEffect, useMemo, useState } from "react";
6
6
  import { WalletState, } from "@interchain-kit/core";
7
7
  import { ConnectModal } from "@interchain-ui/react";
8
+ import { useCurrentChainWallet } from "../hooks/useCurrentChainWallet";
8
9
  export const WalletModal = () => {
9
10
  const { modalIsOpen, open, close } = useWalletModal();
10
- const currentWallet = useCurrentWallet();
11
- const currentChainAccount = currentWallet?.getChainAccountByName?.(currentWallet.currentChainName);
12
11
  const walletManager = useWalletManager();
13
12
  const handleSelectWallet = async (wallet) => {
14
- const selectedWallet = walletManager.getWalletByName(wallet.info.name);
13
+ walletManager.currentWalletName = wallet.info.name;
14
+ const currentWallet = walletManager
15
+ .getWalletRepositoryByName(wallet.info.name)
16
+ .getChainAccountByName(walletManager.currentChainName);
15
17
  setModalView({
16
18
  header: _jsx(ConnectingHeader, { wallet: wallet, onBack: gotoWalletList }),
17
19
  content: _jsx(ConnectingContent, { wallet: wallet }),
18
20
  });
19
- if (selectedWallet.info.mode === "extension" &&
20
- !selectedWallet.isExtensionInstalled) {
21
+ if (currentWallet.wallet.info.mode === "extension" &&
22
+ !currentWallet.wallet.isExtensionInstalled) {
21
23
  setModalView({
22
- header: (_jsx(NotExistHeader, { wallet: selectedWallet, onBack: gotoWalletList })),
23
- content: _jsx(NotExistContent, { wallet: selectedWallet }),
24
+ header: (_jsx(NotExistHeader, { wallet: currentWallet, onBack: gotoWalletList })),
25
+ content: _jsx(NotExistContent, { wallet: currentWallet }),
24
26
  });
25
27
  return;
26
28
  }
27
29
  try {
28
- if (selectedWallet.info.mode === "wallet-connect") {
29
- selectedWallet.setOnPairingUriCreatedCallback(() => {
30
+ if (currentWallet.wallet.info.mode === "wallet-connect") {
31
+ currentWallet.wallet.setOnPairingUriCreatedCallback(() => {
30
32
  setModalView({
31
33
  header: _jsx(QRCodeHeader, { onBack: gotoWalletList }),
32
34
  content: _jsx(QRCodeContent, {}),
33
35
  });
34
36
  });
35
- selectedWallet.setPairingToConnect(wallet.pairing);
37
+ currentWallet.wallet.setPairingToConnect(wallet.pairing);
36
38
  }
37
- await walletManager.connect(selectedWallet?.info?.name);
39
+ await currentWallet.connect();
40
+ await currentWallet.getAccount();
38
41
  setModalView({
39
42
  header: _jsx(ConnectedHeader, { onBack: gotoWalletList }),
40
43
  content: _jsx(ConnectedContent, {}),
41
44
  });
42
45
  }
43
46
  catch (error) {
47
+ console.log(error);
44
48
  setModalView({
45
49
  header: _jsx(RejectHeader, { wallet: wallet, onBack: gotoWalletList }),
46
50
  content: _jsx(RejectContent, { wallet: wallet }),
@@ -55,9 +59,9 @@ export const WalletModal = () => {
55
59
  }, []);
56
60
  const [modalView, setModalView] = useState(defaultModalView);
57
61
  const gotoWalletList = () => setModalView(defaultModalView);
62
+ const currentWallet = useCurrentChainWallet();
58
63
  useEffect(() => {
59
- if (modalIsOpen &&
60
- currentChainAccount?.walletState === WalletState.Connected) {
64
+ if (modalIsOpen && currentWallet?.walletState === WalletState.Connected) {
61
65
  setModalView({
62
66
  header: _jsx(ConnectedHeader, { onBack: gotoWalletList }),
63
67
  content: _jsx(ConnectedContent, {}),
@@ -1,18 +1,19 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { ConnectModalHead, ConnectModalStatus } from "@interchain-ui/react";
3
- import { useAccount, useCurrentWallet } from "../../hooks";
3
+ import { useAccount, useWalletManager } from "../../hooks";
4
4
  import { useWalletModal } from "../provider";
5
5
  import { getWalletInfo } from "../../utils";
6
6
  import { AstronautSvg } from "./Astronaut";
7
+ import { useCurrentChainWallet } from "../../hooks/useCurrentChainWallet";
7
8
  export const ConnectedHeader = ({ onBack }) => {
8
- const currentWallet = useCurrentWallet();
9
+ const currentWallet = useCurrentChainWallet();
9
10
  const { close } = useWalletModal();
10
11
  return (_jsx(ConnectModalHead, { title: currentWallet?.info?.prettyName || "", hasBackButton: true, onClose: close, onBack: onBack, closeButtonProps: { onClick: close } }));
11
12
  };
12
13
  export const ConnectedContent = () => {
13
- const currentWallet = useCurrentWallet();
14
- const chainAccount = currentWallet?.getChainAccountByName?.(currentWallet.currentChainName);
15
- const { account } = useAccount(currentWallet.currentChainName, currentWallet?.info?.name);
14
+ const currentWallet = useCurrentChainWallet();
15
+ const walletManager = useWalletManager();
16
+ const { account } = useAccount(walletManager.currentChainName, currentWallet?.info?.name);
16
17
  const { close } = useWalletModal();
17
18
  if (!currentWallet) {
18
19
  return null;
@@ -26,7 +27,7 @@ export const ConnectedContent = () => {
26
27
  } })),
27
28
  address: account?.address,
28
29
  }, onDisconnect: async () => {
29
- await chainAccount.disconnect();
30
+ await currentWallet.disconnect();
30
31
  close();
31
32
  } }));
32
33
  };
@@ -8,11 +8,11 @@ const useAccount = (chainName, walletName) => {
8
8
  const walletManager = (0, useWalletManager_1.useWalletManager)();
9
9
  const chainAccount = walletManager.getWalletRepositoryByName(walletName)?.getChainAccountByName(chainName);
10
10
  (0, react_1.useEffect)(() => {
11
- if (chainAccount?.walletState === core_1.WalletState.Connected) {
11
+ if (chainAccount?.walletState === core_1.WalletState.Connected && chainName && walletName) {
12
12
  chainAccount.getAccount();
13
13
  }
14
14
  }, [chainName, walletName, chainAccount?.walletState]);
15
- if (chainAccount?.walletState === core_1.WalletState.Connected) {
15
+ if (chainAccount?.walletState === core_1.WalletState.Connected && chainName && walletName) {
16
16
  return {
17
17
  account: chainAccount?.account,
18
18
  isLoading: chainAccount.getAccountState().loading,
package/hooks/useChain.js CHANGED
@@ -3,16 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useChain = void 0;
4
4
  const useWalletManager_1 = require("./useWalletManager");
5
5
  const useAccount_1 = require("./useAccount");
6
- const useCurrentWallet_1 = require("./useCurrentWallet");
7
6
  const useInterchainClient_1 = require("./useInterchainClient");
8
7
  const modal_1 = require("../modal");
9
8
  const useRpcEndpoint_1 = require("./useRpcEndpoint");
10
9
  const core_1 = require("@interchain-kit/core");
10
+ const useCurrentChainWallet_1 = require("./useCurrentChainWallet");
11
11
  const useChain = (chainName) => {
12
12
  const walletManager = (0, useWalletManager_1.useWalletManager)();
13
- const currentWallet = (0, useCurrentWallet_1.useCurrentWallet)();
14
- const chainAccount = currentWallet?.getChainAccountByName?.(chainName);
15
- const walletName = currentWallet?.info?.name;
13
+ const chainAccount = (0, useCurrentChainWallet_1.useCurrentChainWallet)();
14
+ const walletName = chainAccount?.info?.name;
16
15
  const rpcEndpointHook = (0, useRpcEndpoint_1.useRpcEndpoint)(chainName, walletName);
17
16
  const accountHook = (0, useAccount_1.useAccount)(chainName, walletName);
18
17
  const signingClientHook = (0, useInterchainClient_1.useInterchainClient)(chainName, walletName);
@@ -22,25 +21,30 @@ const useChain = (chainName) => {
22
21
  if (chainAccount?.walletState === core_1.WalletState.Connected) {
23
22
  return;
24
23
  }
25
- else {
26
- open();
27
- }
24
+ walletManager.currentChainName = chainName;
25
+ open();
26
+ },
27
+ disconnect: () => {
28
+ walletManager.currentChainName = chainName;
29
+ chainAccount ?? chainAccount.disconnect();
30
+ },
31
+ openView: () => {
32
+ walletManager.currentChainName = chainName;
33
+ open();
28
34
  },
29
- disconnect: () => chainAccount.disconnect(),
30
- openView: open,
31
35
  closeView: close,
32
36
  getRpcEndpoint: () => chainAccount.getRpcEndpoint(),
33
- status: currentWallet?.walletState,
37
+ status: chainAccount?.walletState,
34
38
  username: accountHook.account?.username,
35
- message: currentWallet?.errorMessage
39
+ message: chainAccount?.errorMessage
36
40
  };
37
- if (currentWallet && chainAccount?.walletState === core_1.WalletState.Connected) {
41
+ if (chainAccount && chainAccount?.walletState === core_1.WalletState.Connected) {
38
42
  return {
39
43
  logoUrl: walletManager.getChainLogoUrl(chainName),
40
44
  chain: chainAccount?.chain,
41
45
  assetList: chainAccount?.assetList,
42
46
  address: accountHook.account?.address,
43
- wallet: currentWallet,
47
+ wallet: chainAccount,
44
48
  rpcEndpoint: rpcEndpointHook.rpcEndpoint,
45
49
  ...cosmosKitUserChainReturnType, //for migration cosmos kit
46
50
  signingClient: signingClientHook.signingClient,
@@ -59,7 +63,7 @@ const useChain = (chainName) => {
59
63
  chain: chainAccount?.chain,
60
64
  assetList: chainAccount?.assetList,
61
65
  address: accountHook.account?.address,
62
- wallet: currentWallet,
66
+ wallet: chainAccount,
63
67
  rpcEndpoint: rpcEndpointHook.rpcEndpoint,
64
68
  ...cosmosKitUserChainReturnType, //for migration cosmos kit
65
69
  signingClient: signingClientHook.signingClient,
@@ -0,0 +1,2 @@
1
+ import { ChainAccount } from "@interchain-kit/core/chain-account";
2
+ export declare const useCurrentChainWallet: () => ChainAccount;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useCurrentChainWallet = void 0;
4
+ const helpers_1 = require("../utils/helpers");
5
+ const useWalletManager_1 = require("./useWalletManager");
6
+ const useCurrentChainWallet = () => {
7
+ const walletManager = (0, useWalletManager_1.useWalletManager)();
8
+ const { currentChainName, currentWalletName } = walletManager;
9
+ const chainWallet = walletManager.getWalletRepositoryByName(currentWalletName)?.getChainAccountByName(currentChainName);
10
+ if (chainWallet) {
11
+ return (0, helpers_1.bindAllMethodsToContext)(chainWallet);
12
+ }
13
+ return {};
14
+ };
15
+ exports.useCurrentChainWallet = useCurrentChainWallet;
@@ -1,2 +1,2 @@
1
- import { WalletRepository } from '@interchain-kit/core/wallet-repository';
1
+ import { WalletRepository } from "@interchain-kit/core/wallet-repository";
2
2
  export declare const useCurrentWallet: () => WalletRepository;
@@ -12,7 +12,8 @@ const useCurrentWallet = () => {
12
12
  // open()
13
13
  // }
14
14
  // }, [walletManager.currentWalletName, walletManager.state])
15
- const wallet = walletManager.getCurrentWallet();
15
+ const { currentWalletName, currentChainName, getWalletRepositoryByName } = walletManager;
16
+ const wallet = getWalletRepositoryByName(currentWalletName);
16
17
  if (wallet) {
17
18
  return (0, helpers_1.bindAllMethodsToContext)(wallet);
18
19
  }
package/modal/modal.js CHANGED
@@ -8,42 +8,46 @@ const hooks_1 = require("../hooks");
8
8
  const react_1 = require("react");
9
9
  const core_1 = require("@interchain-kit/core");
10
10
  const react_2 = require("@interchain-ui/react");
11
+ const useCurrentChainWallet_1 = require("../hooks/useCurrentChainWallet");
11
12
  const WalletModal = () => {
12
13
  const { modalIsOpen, open, close } = (0, provider_1.useWalletModal)();
13
- const currentWallet = (0, hooks_1.useCurrentWallet)();
14
- const currentChainAccount = currentWallet?.getChainAccountByName?.(currentWallet.currentChainName);
15
14
  const walletManager = (0, hooks_1.useWalletManager)();
16
15
  const handleSelectWallet = async (wallet) => {
17
- const selectedWallet = walletManager.getWalletByName(wallet.info.name);
16
+ walletManager.currentWalletName = wallet.info.name;
17
+ const currentWallet = walletManager
18
+ .getWalletRepositoryByName(wallet.info.name)
19
+ .getChainAccountByName(walletManager.currentChainName);
18
20
  setModalView({
19
21
  header: (0, jsx_runtime_1.jsx)(views_1.ConnectingHeader, { wallet: wallet, onBack: gotoWalletList }),
20
22
  content: (0, jsx_runtime_1.jsx)(views_1.ConnectingContent, { wallet: wallet }),
21
23
  });
22
- if (selectedWallet.info.mode === "extension" &&
23
- !selectedWallet.isExtensionInstalled) {
24
+ if (currentWallet.wallet.info.mode === "extension" &&
25
+ !currentWallet.wallet.isExtensionInstalled) {
24
26
  setModalView({
25
- header: ((0, jsx_runtime_1.jsx)(views_1.NotExistHeader, { wallet: selectedWallet, onBack: gotoWalletList })),
26
- content: (0, jsx_runtime_1.jsx)(views_1.NotExistContent, { wallet: selectedWallet }),
27
+ header: ((0, jsx_runtime_1.jsx)(views_1.NotExistHeader, { wallet: currentWallet, onBack: gotoWalletList })),
28
+ content: (0, jsx_runtime_1.jsx)(views_1.NotExistContent, { wallet: currentWallet }),
27
29
  });
28
30
  return;
29
31
  }
30
32
  try {
31
- if (selectedWallet.info.mode === "wallet-connect") {
32
- selectedWallet.setOnPairingUriCreatedCallback(() => {
33
+ if (currentWallet.wallet.info.mode === "wallet-connect") {
34
+ currentWallet.wallet.setOnPairingUriCreatedCallback(() => {
33
35
  setModalView({
34
36
  header: (0, jsx_runtime_1.jsx)(views_1.QRCodeHeader, { onBack: gotoWalletList }),
35
37
  content: (0, jsx_runtime_1.jsx)(views_1.QRCodeContent, {}),
36
38
  });
37
39
  });
38
- selectedWallet.setPairingToConnect(wallet.pairing);
40
+ currentWallet.wallet.setPairingToConnect(wallet.pairing);
39
41
  }
40
- await walletManager.connect(selectedWallet?.info?.name);
42
+ await currentWallet.connect();
43
+ await currentWallet.getAccount();
41
44
  setModalView({
42
45
  header: (0, jsx_runtime_1.jsx)(views_1.ConnectedHeader, { onBack: gotoWalletList }),
43
46
  content: (0, jsx_runtime_1.jsx)(views_1.ConnectedContent, {}),
44
47
  });
45
48
  }
46
49
  catch (error) {
50
+ console.log(error);
47
51
  setModalView({
48
52
  header: (0, jsx_runtime_1.jsx)(views_1.RejectHeader, { wallet: wallet, onBack: gotoWalletList }),
49
53
  content: (0, jsx_runtime_1.jsx)(views_1.RejectContent, { wallet: wallet }),
@@ -58,9 +62,9 @@ const WalletModal = () => {
58
62
  }, []);
59
63
  const [modalView, setModalView] = (0, react_1.useState)(defaultModalView);
60
64
  const gotoWalletList = () => setModalView(defaultModalView);
65
+ const currentWallet = (0, useCurrentChainWallet_1.useCurrentChainWallet)();
61
66
  (0, react_1.useEffect)(() => {
62
- if (modalIsOpen &&
63
- currentChainAccount?.walletState === core_1.WalletState.Connected) {
67
+ if (modalIsOpen && currentWallet?.walletState === core_1.WalletState.Connected) {
64
68
  setModalView({
65
69
  header: (0, jsx_runtime_1.jsx)(views_1.ConnectedHeader, { onBack: gotoWalletList }),
66
70
  content: (0, jsx_runtime_1.jsx)(views_1.ConnectedContent, {}),
@@ -7,16 +7,17 @@ const hooks_1 = require("../../hooks");
7
7
  const provider_1 = require("../provider");
8
8
  const utils_1 = require("../../utils");
9
9
  const Astronaut_1 = require("./Astronaut");
10
+ const useCurrentChainWallet_1 = require("../../hooks/useCurrentChainWallet");
10
11
  const ConnectedHeader = ({ onBack }) => {
11
- const currentWallet = (0, hooks_1.useCurrentWallet)();
12
+ const currentWallet = (0, useCurrentChainWallet_1.useCurrentChainWallet)();
12
13
  const { close } = (0, provider_1.useWalletModal)();
13
14
  return ((0, jsx_runtime_1.jsx)(react_1.ConnectModalHead, { title: currentWallet?.info?.prettyName || "", hasBackButton: true, onClose: close, onBack: onBack, closeButtonProps: { onClick: close } }));
14
15
  };
15
16
  exports.ConnectedHeader = ConnectedHeader;
16
17
  const ConnectedContent = () => {
17
- const currentWallet = (0, hooks_1.useCurrentWallet)();
18
- const chainAccount = currentWallet?.getChainAccountByName?.(currentWallet.currentChainName);
19
- const { account } = (0, hooks_1.useAccount)(currentWallet.currentChainName, currentWallet?.info?.name);
18
+ const currentWallet = (0, useCurrentChainWallet_1.useCurrentChainWallet)();
19
+ const walletManager = (0, hooks_1.useWalletManager)();
20
+ const { account } = (0, hooks_1.useAccount)(walletManager.currentChainName, currentWallet?.info?.name);
20
21
  const { close } = (0, provider_1.useWalletModal)();
21
22
  if (!currentWallet) {
22
23
  return null;
@@ -30,7 +31,7 @@ const ConnectedContent = () => {
30
31
  } })),
31
32
  address: account?.address,
32
33
  }, onDisconnect: async () => {
33
- await chainAccount.disconnect();
34
+ await currentWallet.disconnect();
34
35
  close();
35
36
  } }));
36
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interchain-kit/react",
3
- "version": "0.0.1-beta.47",
3
+ "version": "0.0.1-beta.48",
4
4
  "author": "cosmology-tech <developers@cosmology.zone>",
5
5
  "description": "interchain-kit wallet connector react package",
6
6
  "main": "index.js",
@@ -33,7 +33,7 @@
33
33
  "keywords": [],
34
34
  "dependencies": {
35
35
  "@chain-registry/v2-types": "^0.53.40",
36
- "@interchain-kit/core": "0.0.1-beta.47",
36
+ "@interchain-kit/core": "0.0.1-beta.48",
37
37
  "@interchain-ui/react": "1.26.1",
38
38
  "@interchainjs/cosmos": "1.6.3",
39
39
  "@interchainjs/cosmos-types": "1.6.3",
@@ -48,5 +48,5 @@
48
48
  "react": "^18.3.1",
49
49
  "react-dom": "^18.3.1"
50
50
  },
51
- "gitHead": "ecd10d66d0c74955a26c75659d998f31663fcb93"
51
+ "gitHead": "b78c7ffdf4e93298add4400bbc85148996ae5545"
52
52
  }