httpay
Version:
HTTPay SDK for interacting with HTTPay smart contracts on Neutron
39 lines • 1.72 kB
TypeScript
import type { SigningCosmWasmClient } from "@cosmjs/cosmwasm-stargate";
import type { HTTPaySDKConfig, HTTPayClients } from "../types";
import type { ToastFunction } from "./use-registry";
interface UseWalletIntegrationReturn {
clients: HTTPayClients;
isConnected: boolean;
hasSigningCapabilities: boolean;
walletAddress: string | undefined;
isWalletConnected: boolean;
isWalletConnecting: boolean;
isWalletDisconnected: boolean;
isWalletError: boolean;
walletStatus: any;
walletMessage: string | undefined;
initializeSDK: () => Promise<void>;
initializeWalletSDK: () => Promise<void>;
forceReconnectWallet: () => Promise<void>;
connectWallet: () => Promise<void>;
disconnectWallet: () => Promise<void>;
}
export interface UseWalletIntegrationProps {
config: HTTPaySDKConfig;
setLoadingState: (key: string, loading: boolean) => void;
chainName: string;
toast: ToastFunction;
walletAddress?: string | null;
isWalletConnected?: boolean;
isWalletConnecting?: boolean;
isWalletDisconnected?: boolean;
isWalletError?: boolean;
walletStatus?: any;
walletMessage?: string;
getSigningCosmWasmClient?: () => Promise<SigningCosmWasmClient>;
connectWallet?: () => Promise<void>;
disconnectWallet?: () => Promise<void>;
}
export declare function useWalletIntegration({ config, setLoadingState, chainName, toast, walletAddress, isWalletConnected, isWalletConnecting, isWalletDisconnected, isWalletError, walletStatus, walletMessage, getSigningCosmWasmClient, connectWallet, disconnectWallet }: UseWalletIntegrationProps): UseWalletIntegrationReturn;
export {};
//# sourceMappingURL=use-wallet-integration.d.ts.map