UNPKG

httpay

Version:

HTTPay SDK for interacting with HTTPay smart contracts on Neutron

126 lines 5.43 kB
/** * This file was automatically generated by @cosmwasm/ts-codegen@1.12.1. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ import { Coin, StdFee } from "@cosmjs/amino"; import { ExecuteResult } from "@cosmjs/cosmwasm-stargate"; import { UseMutationOptions, UseQueryOptions } from "@tanstack/react-query"; import { RegistryClient, RegistryQueryClient } from "./Registry.client"; import { ToolResponse, ToolsResponse, Uint128 } from "./Registry.types"; export declare const registryQueryKeys: { contract: readonly [{ readonly contract: "registry"; }]; address: (contractAddress: string | undefined) => readonly [{ readonly address: string; readonly contract: "registry"; }]; getTool: (contractAddress: string | undefined, args?: Record<string, unknown>) => readonly [{ readonly method: "get_tool"; readonly args: Record<string, unknown>; readonly address: string; readonly contract: "registry"; }]; getTools: (contractAddress: string | undefined, args?: Record<string, unknown>) => readonly [{ readonly method: "get_tools"; readonly args: Record<string, unknown>; readonly address: string; readonly contract: "registry"; }]; }; export interface RegistryReactQuery<TResponse, TData = TResponse> { client: RegistryQueryClient | undefined; options?: Omit<UseQueryOptions<TResponse, Error, TData>, "'queryKey' | 'queryFn' | 'initialData'"> & { initialData?: undefined; }; } export interface RegistryGetToolsQuery<TData> extends RegistryReactQuery<ToolsResponse, TData> { } export declare function useRegistryGetToolsQuery<TData = ToolsResponse>({ client, options, }: RegistryGetToolsQuery<TData>): import("@tanstack/react-query").UseQueryResult<TData, Error>; export interface RegistryGetToolQuery<TData> extends RegistryReactQuery<ToolResponse, TData> { args: { toolId: string; }; } export declare function useRegistryGetToolQuery<TData = ToolResponse>({ client, args, options, }: RegistryGetToolQuery<TData>): import("@tanstack/react-query").UseQueryResult<TData, Error>; export interface RegistryResumeToolMutation { client: RegistryClient; msg: { toolId: string; }; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useRegistryResumeToolMutation(options?: Omit<UseMutationOptions<ExecuteResult, Error, RegistryResumeToolMutation>, "mutationFn">): import("@tanstack/react-query").UseMutationResult<ExecuteResult, Error, RegistryResumeToolMutation, unknown>; export interface RegistryPauseToolMutation { client: RegistryClient; msg: { toolId: string; }; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useRegistryPauseToolMutation(options?: Omit<UseMutationOptions<ExecuteResult, Error, RegistryPauseToolMutation>, "mutationFn">): import("@tanstack/react-query").UseMutationResult<ExecuteResult, Error, RegistryPauseToolMutation, unknown>; export interface RegistryUpdateEndpointMutation { client: RegistryClient; msg: { endpoint: string; toolId: string; }; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useRegistryUpdateEndpointMutation(options?: Omit<UseMutationOptions<ExecuteResult, Error, RegistryUpdateEndpointMutation>, "mutationFn">): import("@tanstack/react-query").UseMutationResult<ExecuteResult, Error, RegistryUpdateEndpointMutation, unknown>; export interface RegistryUpdateDenomMutation { client: RegistryClient; msg: { denom: string; toolId: string; }; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useRegistryUpdateDenomMutation(options?: Omit<UseMutationOptions<ExecuteResult, Error, RegistryUpdateDenomMutation>, "mutationFn">): import("@tanstack/react-query").UseMutationResult<ExecuteResult, Error, RegistryUpdateDenomMutation, unknown>; export interface RegistryUpdatePriceMutation { client: RegistryClient; msg: { price: Uint128; toolId: string; }; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useRegistryUpdatePriceMutation(options?: Omit<UseMutationOptions<ExecuteResult, Error, RegistryUpdatePriceMutation>, "mutationFn">): import("@tanstack/react-query").UseMutationResult<ExecuteResult, Error, RegistryUpdatePriceMutation, unknown>; export interface RegistryRegisterToolMutation { client: RegistryClient; msg: { denom?: string; description: string; endpoint: string; price: Uint128; toolId: string; }; args?: { fee?: number | StdFee | "auto"; memo?: string; funds?: Coin[]; }; } export declare function useRegistryRegisterToolMutation(options?: Omit<UseMutationOptions<ExecuteResult, Error, RegistryRegisterToolMutation>, "mutationFn">): import("@tanstack/react-query").UseMutationResult<ExecuteResult, Error, RegistryRegisterToolMutation, unknown>; //# sourceMappingURL=Registry.react-query.d.ts.map