UNPKG

@safe-global/safe-react-hooks

Version:

A collection of React Hooks that facilitates the interaction of React apps with Safe Smart Accounts

20 lines (19 loc) 944 B
import { useBalance, useChain, UseConnectSignerReturnType, usePendingTransactions, useSafeInfo, useSignerAddress, useTransaction, useTransactions, usePendingSafeOperations, useSafeOperation, useSafeOperations } from '../hooks/index.js'; export type UseSafeReturnType = UseConnectSignerReturnType & { isInitialized: boolean; getBalance: typeof useBalance; getChain: typeof useChain; getPendingTransactions: typeof usePendingTransactions; getTransaction: typeof useTransaction; getTransactions: typeof useTransactions; getSafeInfo: typeof useSafeInfo; getSignerAddress: typeof useSignerAddress; getPendingSafeOperations: typeof usePendingSafeOperations; getSafeOperation: typeof useSafeOperation; getSafeOperations: typeof useSafeOperations; }; /** * Top-level hook to get Safe-related information. * @returns Object wrapping the Safe hooks. */ export declare function useSafe(): UseSafeReturnType;