UNPKG

@0xsplits/splits-sdk-react

Version:

React wrapper for the 0xSplits SDK

28 lines (27 loc) 1.18 kB
import { Log } from 'viem'; import { CreatePassThroughWalletConfig, PassThroughTokensConfig, PassThroughWalletPauseConfig, PassThroughWalletExecCallsConfig } from '@0xsplits/splits-sdk'; import { ContractExecutionStatus, RequestError } from '../types'; export declare const useCreatePassThroughWallet: () => { createPassThroughWallet: (arg0: CreatePassThroughWalletConfig) => Promise<Log[] | undefined>; status?: ContractExecutionStatus; txHash?: string; error?: RequestError; }; export declare const usePassThroughTokens: () => { passThroughTokens: (arg0: PassThroughTokensConfig) => Promise<Log[] | undefined>; status?: ContractExecutionStatus; txHash?: string; error?: RequestError; }; export declare const usePassThroughWalletPause: () => { setPaused: (arg0: PassThroughWalletPauseConfig) => Promise<Log[] | undefined>; status?: ContractExecutionStatus; txHash?: string; error?: RequestError; }; export declare const usePassThroughWalletExecCalls: () => { execCalls: (arg0: PassThroughWalletExecCallsConfig) => Promise<Log[] | undefined>; status?: ContractExecutionStatus; txHash?: string; error?: RequestError; };