UNPKG

biuauthui

Version:
10 lines (9 loc) 406 B
import { TransactionResponse } from "@ethersproject/providers"; import BigNumber from "bignumber.js"; export declare enum ApprovalState { UNKNOWN = 0, NOT_APPROVED = 1, PENDING = 2, APPROVED = 3 } export declare function useApproveCallback(amount: BigNumber | null, tokenAddress: string, spender?: string): [ApprovalState, () => Promise<TransactionResponse | undefined>, boolean, boolean];