@interchain-kit/react 0.0.1-beta.22 → 0.0.1-beta.23

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,5 @@
1
1
  import { useEffect, useState } from "react";
2
- import { WalletState } from "@interChain-kit/core";
2
+ import { WalletState } from "@interchain-kit/core";
3
3
  import { useWalletManager } from './useWalletManager';
4
4
  export const useAccount = (chainName, walletName) => {
5
5
  const walletManager = useWalletManager();
@@ -3,7 +3,7 @@ import { useAccount } from "./useAccount";
3
3
  import { useActiveWallet } from './useActiveWallet';
4
4
  import { useInterchainClient } from './useInterchainClient';
5
5
  import { useWalletModal } from "../modal";
6
- import { ChainNameNotExist } from "@interChain-kit/core";
6
+ import { ChainNameNotExist } from "@interchain-kit/core";
7
7
  import { getChainLogoUrl } from "../utils";
8
8
  export const useChain = (chainName) => {
9
9
  const walletManager = useWalletManager();
@@ -1,7 +1,7 @@
1
1
  import { useEffect, useState } from "react";
2
2
  import { useWalletManager } from './useWalletManager';
3
3
  import { useAccount } from './useAccount';
4
- import { WalletState } from '@interChain-kit/core';
4
+ import { WalletState } from '@interchain-kit/core';
5
5
  export const useInterchainClient = (chainName, walletName) => {
6
6
  const [rpcEndpoint, setRpcEndpoint] = useState();
7
7
  //query
@@ -4,7 +4,7 @@ import { ConnectedContent, ConnectedHeader, ConnectingContent, ConnectingHeader,
4
4
  import { useWalletModal } from "./provider";
5
5
  import { useActiveWallet } from "../hooks";
6
6
  import { useEffect, useState } from "react";
7
- import { WalletState } from "@interChain-kit/core";
7
+ import { WalletState } from "@interchain-kit/core";
8
8
  const defaultModalView = {
9
9
  header: _jsx(WalletListHeader, {}),
10
10
  content: _jsx(WalletListContent, {}),
package/esm/provider.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useMemo, useState } from "react";
3
3
  import { createContext, useContext } from "react";
4
- import { WalletManager, } from "@interChain-kit/core";
4
+ import { WalletManager, } from "@interchain-kit/core";
5
5
  import { WalletModalProvider } from "./modal";
6
6
  const InterchainWalletContext = createContext(null);
7
7
  export const ChainProvider = ({ chains, assetLists, wallets, signerOptions, endpointOptions, children, }) => {
@@ -1,2 +1,2 @@
1
- import { WalletAccount } from "@interChain-kit/core";
1
+ import { WalletAccount } from "@interchain-kit/core";
2
2
  export declare const useAccount: (chainName: string, walletName: string) => WalletAccount | null;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useAccount = void 0;
4
4
  const react_1 = require("react");
5
- const core_1 = require("@interChain-kit/core");
5
+ const core_1 = require("@interchain-kit/core");
6
6
  const useWalletManager_1 = require("./useWalletManager");
7
7
  const useAccount = (chainName, walletName) => {
8
8
  const walletManager = (0, useWalletManager_1.useWalletManager)();
@@ -1 +1 @@
1
- export declare const useActiveWallet: () => import("@interChain-kit/core").BaseWallet;
1
+ export declare const useActiveWallet: () => import("@interchain-kit/core").BaseWallet;
package/hooks/useChain.js CHANGED
@@ -6,7 +6,7 @@ const useAccount_1 = require("./useAccount");
6
6
  const useActiveWallet_1 = require("./useActiveWallet");
7
7
  const useInterchainClient_1 = require("./useInterchainClient");
8
8
  const modal_1 = require("../modal");
9
- const core_1 = require("@interChain-kit/core");
9
+ const core_1 = require("@interchain-kit/core");
10
10
  const utils_1 = require("../utils");
11
11
  const useChain = (chainName) => {
12
12
  const walletManager = (0, useWalletManager_1.useWalletManager)();
@@ -1,5 +1,5 @@
1
1
  import { AssetList, Chain } from "@chain-registry/v2-types";
2
- import { EndpointOptions, SignerOptions } from "@interChain-kit/core";
2
+ import { EndpointOptions, SignerOptions } from "@interchain-kit/core";
3
3
  export declare const useConfig: () => {
4
4
  updateChains: (chains: Chain[]) => Chain[];
5
5
  updateAssetLists: (assetLists: AssetList[]) => AssetList[];
@@ -4,7 +4,7 @@ exports.useInterchainClient = void 0;
4
4
  const react_1 = require("react");
5
5
  const useWalletManager_1 = require("./useWalletManager");
6
6
  const useAccount_1 = require("./useAccount");
7
- const core_1 = require("@interChain-kit/core");
7
+ const core_1 = require("@interchain-kit/core");
8
8
  const useInterchainClient = (chainName, walletName) => {
9
9
  const [rpcEndpoint, setRpcEndpoint] = (0, react_1.useState)();
10
10
  //query
package/modal/modal.js CHANGED
@@ -7,7 +7,7 @@ const views_1 = require("./views");
7
7
  const provider_1 = require("./provider");
8
8
  const hooks_1 = require("../hooks");
9
9
  const react_2 = require("react");
10
- const core_1 = require("@interChain-kit/core");
10
+ const core_1 = require("@interchain-kit/core");
11
11
  const defaultModalView = {
12
12
  header: (0, jsx_runtime_1.jsx)(views_1.WalletListHeader, {}),
13
13
  content: (0, jsx_runtime_1.jsx)(views_1.WalletListContent, {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interchain-kit/react",
3
- "version": "0.0.1-beta.22",
3
+ "version": "0.0.1-beta.23",
4
4
  "author": "cosmology-tech <developers@cosmology.zone>",
5
5
  "description": "interchain-kit wallet connector react package",
6
6
  "main": "index.js",
@@ -32,7 +32,7 @@
32
32
  "keywords": [],
33
33
  "dependencies": {
34
34
  "@chain-registry/v2-types": "^0.49.6",
35
- "@interchain-kit/core": "0.0.1-beta.22",
35
+ "@interchain-kit/core": "0.0.1-beta.23",
36
36
  "@interchain-ui/react": "1.24.0",
37
37
  "@interchainjs/cosmos-types": "0.0.1-beta.9",
38
38
  "@interchainjs/injective": "0.0.1-beta.13",
@@ -42,5 +42,5 @@
42
42
  "react": "^18.3.1",
43
43
  "react-dom": "^18.3.1"
44
44
  },
45
- "gitHead": "4f812e296043ff768200bc125b31b31570257616"
45
+ "gitHead": "b683ebf8ba399f308a4a46ffe1e8c1a1eebc5947"
46
46
  }
package/provider.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { BaseWallet, SignerOptions, WalletManager, EndpointOptions } from "@interChain-kit/core";
2
+ import { BaseWallet, SignerOptions, WalletManager, EndpointOptions } from "@interchain-kit/core";
3
3
  import { AssetList, Chain } from "@chain-registry/v2-types";
4
4
  type InterchainWalletContextType = {
5
5
  walletManager: WalletManager;
package/provider.js CHANGED
@@ -4,7 +4,7 @@ exports.useInterchainWalletContext = exports.ChainProvider = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const react_2 = require("react");
7
- const core_1 = require("@interChain-kit/core");
7
+ const core_1 = require("@interchain-kit/core");
8
8
  const modal_1 = require("./modal");
9
9
  const InterchainWalletContext = (0, react_2.createContext)(null);
10
10
  const ChainProvider = ({ chains, assetLists, wallets, signerOptions, endpointOptions, children, }) => {
package/types/wallet.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BaseWallet } from "@interChain-kit/core";
1
+ import { BaseWallet } from "@interchain-kit/core";
2
2
  import { ConnectState } from "../enum";
3
3
  export type UseWalletReturnType = {
4
4
  wallet: BaseWallet;
package/utils/wallet.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BaseWallet } from "@interChain-kit/core";
1
+ import { BaseWallet } from "@interchain-kit/core";
2
2
  export declare const getWalletInfo: (wallet: BaseWallet) => {
3
3
  name: string;
4
4
  prettyName: string;