httpay
Version:
HTTPay SDK for interacting with HTTPay smart contracts on Neutron
114 lines • 5.05 kB
TypeScript
/**
* 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 { EscrowClient, EscrowQueryClient } from "./Escrow.client";
import { CollectedFeesResponse, EscrowResponse, EscrowsResponse, Uint128 } from "./Escrow.types";
export declare const escrowQueryKeys: {
contract: readonly [{
readonly contract: "escrow";
}];
address: (contractAddress: string | undefined) => readonly [{
readonly address: string;
readonly contract: "escrow";
}];
getEscrow: (contractAddress: string | undefined, args?: Record<string, unknown>) => readonly [{
readonly method: "get_escrow";
readonly args: Record<string, unknown>;
readonly address: string;
readonly contract: "escrow";
}];
getCollectedFees: (contractAddress: string | undefined, args?: Record<string, unknown>) => readonly [{
readonly method: "get_collected_fees";
readonly args: Record<string, unknown>;
readonly address: string;
readonly contract: "escrow";
}];
getEscrows: (contractAddress: string | undefined, args?: Record<string, unknown>) => readonly [{
readonly method: "get_escrows";
readonly args: Record<string, unknown>;
readonly address: string;
readonly contract: "escrow";
}];
};
export interface EscrowReactQuery<TResponse, TData = TResponse> {
client: EscrowQueryClient | undefined;
options?: Omit<UseQueryOptions<TResponse, Error, TData>, "'queryKey' | 'queryFn' | 'initialData'"> & {
initialData?: undefined;
};
}
export interface EscrowGetEscrowsQuery<TData> extends EscrowReactQuery<EscrowsResponse, TData> {
args: {
caller?: string;
limit?: number;
provider?: string;
startAfter?: number;
};
}
export declare function useEscrowGetEscrowsQuery<TData = EscrowsResponse>({ client, args, options, }: EscrowGetEscrowsQuery<TData>): import("@tanstack/react-query").UseQueryResult<TData, Error>;
export interface EscrowGetCollectedFeesQuery<TData> extends EscrowReactQuery<CollectedFeesResponse, TData> {
}
export declare function useEscrowGetCollectedFeesQuery<TData = CollectedFeesResponse>({ client, options, }: EscrowGetCollectedFeesQuery<TData>): import("@tanstack/react-query").UseQueryResult<TData, Error>;
export interface EscrowGetEscrowQuery<TData> extends EscrowReactQuery<EscrowResponse, TData> {
args: {
escrowId: number;
};
}
export declare function useEscrowGetEscrowQuery<TData = EscrowResponse>({ client, args, options, }: EscrowGetEscrowQuery<TData>): import("@tanstack/react-query").UseQueryResult<TData, Error>;
export interface EscrowClaimFeesMutation {
client: EscrowClient;
msg: {
denom?: string;
};
args?: {
fee?: number | StdFee | "auto";
memo?: string;
funds?: Coin[];
};
}
export declare function useEscrowClaimFeesMutation(options?: Omit<UseMutationOptions<ExecuteResult, Error, EscrowClaimFeesMutation>, "mutationFn">): import("@tanstack/react-query").UseMutationResult<ExecuteResult, Error, EscrowClaimFeesMutation, unknown>;
export interface EscrowRefundExpiredMutation {
client: EscrowClient;
msg: {
escrowId: number;
};
args?: {
fee?: number | StdFee | "auto";
memo?: string;
funds?: Coin[];
};
}
export declare function useEscrowRefundExpiredMutation(options?: Omit<UseMutationOptions<ExecuteResult, Error, EscrowRefundExpiredMutation>, "mutationFn">): import("@tanstack/react-query").UseMutationResult<ExecuteResult, Error, EscrowRefundExpiredMutation, unknown>;
export interface EscrowReleaseMutation {
client: EscrowClient;
msg: {
escrowId: number;
usageFee: Uint128;
};
args?: {
fee?: number | StdFee | "auto";
memo?: string;
funds?: Coin[];
};
}
export declare function useEscrowReleaseMutation(options?: Omit<UseMutationOptions<ExecuteResult, Error, EscrowReleaseMutation>, "mutationFn">): import("@tanstack/react-query").UseMutationResult<ExecuteResult, Error, EscrowReleaseMutation, unknown>;
export interface EscrowLockFundsMutation {
client: EscrowClient;
msg: {
authToken: string;
expires: number;
maxFee: Uint128;
toolId: string;
};
args?: {
fee?: number | StdFee | "auto";
memo?: string;
funds?: Coin[];
};
}
export declare function useEscrowLockFundsMutation(options?: Omit<UseMutationOptions<ExecuteResult, Error, EscrowLockFundsMutation>, "mutationFn">): import("@tanstack/react-query").UseMutationResult<ExecuteResult, Error, EscrowLockFundsMutation, unknown>;
//# sourceMappingURL=Escrow.react-query.d.ts.map