httpay
Version:
HTTPay SDK for interacting with HTTPay smart contracts on Neutron
26 lines • 1.38 kB
TypeScript
import type { EscrowCreationForm, EscrowVerificationForm, UsagePostingForm, EscrowsFilter, LockFundsResult, VerificationResult, LoadingStates, HTTPayClients } from "../types";
import type { ToastFunction } from "./use-registry";
interface UseEscrowProps {
clients: HTTPayClients;
walletAddress: string | null;
isWalletConnected: boolean;
hasSigningCapabilities: boolean;
loading: LoadingStates;
setLoadingState: (key: string, loading: boolean) => void;
getCurrentBlockHeight: () => Promise<number>;
toast: ToastFunction;
}
export declare function useEscrow({ clients, walletAddress, isWalletConnected, hasSigningCapabilities, loading, setLoadingState, getCurrentBlockHeight, toast, }: UseEscrowProps): {
escrows: import("../Escrow/Escrow.types").EscrowResponse[];
hasMoreEscrows: boolean;
loadEscrows: (filter?: EscrowsFilter) => Promise<void>;
loadMoreEscrows: () => Promise<void>;
resetEscrowsFilter: () => Promise<void>;
lockFunds: (escrowData: EscrowCreationForm) => Promise<LockFundsResult | undefined>;
verifyEscrow: (verificationData: EscrowVerificationForm) => Promise<VerificationResult>;
postUsage: (usageData: UsagePostingForm) => Promise<void>;
refundExpired: (escrowId: number) => Promise<void>;
claimFees: (denom?: string) => Promise<void>;
};
export {};
//# sourceMappingURL=use-escrow.d.ts.map