UNPKG

httpay

Version:

HTTPay SDK for interacting with HTTPay smart contracts on Neutron

29 lines 1.22 kB
import type { ToolRegistrationForm, LoadingStates, HTTPayClients } from "../types"; export interface ToastFunction { (options: { title: string; description: string; variant?: "default" | "destructive"; }): void; } interface UseRegistryProps { clients: HTTPayClients; walletAddress: string | null; isWalletConnected: boolean; hasSigningCapabilities: boolean; loading: LoadingStates; setLoadingState: (key: string, loading: boolean) => void; toast: ToastFunction; } export declare function useRegistry({ clients, walletAddress, isWalletConnected, hasSigningCapabilities, loading, setLoadingState, toast, }: UseRegistryProps): { tools: import("../Registry/Registry.types").ToolResponse[]; loadTools: () => Promise<void>; registerTool: (toolData: ToolRegistrationForm) => Promise<void>; updateEndpoint: (toolId: string, endpoint: string) => Promise<void>; updatePrice: (toolId: string, price: string) => Promise<void>; updateDenom: (toolId: string, denom: string) => Promise<void>; pauseTool: (toolId: string) => Promise<void>; resumeTool: (toolId: string) => Promise<void>; }; export {}; //# sourceMappingURL=use-registry.d.ts.map