UNPKG

@0xsplits/splits-sdk-react

Version:

React wrapper for the 0xSplits SDK

58 lines (57 loc) 2.49 kB
import { Log } from 'viem'; import { CreateSwapperConfig, UniV3FlashSwapConfig, SwapperExecCallsConfig, SwapperPauseConfig, SwapperSetBeneficiaryConfig, SwapperSetTokenToBeneficiaryConfig, SwapperSetOracleConfig, SwapperSetDefaultScaledOfferFactorConfig, SwapperSetScaledOfferFactorOverridesConfig } from '@0xsplits/splits-sdk'; import { ContractExecutionStatus, RequestError } from '../types'; export declare const useCreateSwapper: () => { createSwapper: (arg0: CreateSwapperConfig) => Promise<Log[] | undefined>; status?: ContractExecutionStatus; txHash?: string; error?: RequestError; }; export declare const useUniV3FlashSwap: () => { uniV3FlashSwap: (arg0: UniV3FlashSwapConfig) => Promise<Log[] | undefined>; status?: ContractExecutionStatus; txHash?: string; error?: RequestError; }; export declare const useSwapperExecCalls: () => { execCalls: (arg0: SwapperExecCallsConfig) => Promise<Log[] | undefined>; status?: ContractExecutionStatus; txHash?: string; error?: RequestError; }; export declare const useSwapperPause: () => { setPaused: (arg0: SwapperPauseConfig) => Promise<Log[] | undefined>; status?: ContractExecutionStatus; txHash?: string; error?: RequestError; }; export declare const useSwapperSetBeneficiary: () => { setBeneficiary: (arg0: SwapperSetBeneficiaryConfig) => Promise<Log[] | undefined>; status?: ContractExecutionStatus; txHash?: string; error?: RequestError; }; export declare const useSwapperSetTokenToBeneficiary: () => { setTokenToBeneficiary: (arg0: SwapperSetTokenToBeneficiaryConfig) => Promise<Log[] | undefined>; status?: ContractExecutionStatus; txHash?: string; error?: RequestError; }; export declare const useSwapperSetOracle: () => { setOracle: (arg0: SwapperSetOracleConfig) => Promise<Log[] | undefined>; status?: ContractExecutionStatus; txHash?: string; error?: RequestError; }; export declare const useSwapperSetDefaultScaledOfferFactor: () => { setDefaultScaledOfferFactor: (arg0: SwapperSetDefaultScaledOfferFactorConfig) => Promise<Log[] | undefined>; status?: ContractExecutionStatus; txHash?: string; error?: RequestError; }; export declare const useSwapperSetScaledOfferFactorOverrides: () => { setScaledOfferFactorOverrides: (arg0: SwapperSetScaledOfferFactorOverridesConfig) => Promise<Log[] | undefined>; status?: ContractExecutionStatus; txHash?: string; error?: RequestError; };