@0xsplits/splits-sdk-react
Version:
React wrapper for the 0xSplits SDK
17 lines (16 loc) • 748 B
TypeScript
import { Log } from 'viem';
import { WarehouseWithdrawConfig, WarehouseBatchWithdrawConfig, CallData } from '@0xsplits/splits-sdk';
import { ContractExecutionStatus, RequestError } from '../types';
export declare const useWithdrawWarehouse: () => {
withdrawWarehouse: (arg0: WarehouseWithdrawConfig) => Promise<Log[] | undefined>;
withdrawWarehouseCalldata: (arg0: WarehouseWithdrawConfig) => Promise<CallData>;
status?: ContractExecutionStatus;
txHash?: string;
error?: RequestError;
};
export declare const useBatchWithdrawWarehouse: () => {
batchWithdrawWarehouse: (arg0: WarehouseBatchWithdrawConfig) => Promise<Log[] | undefined>;
status?: ContractExecutionStatus;
txHash?: string;
error?: RequestError;
};