UNPKG

@0xfutbol/id

Version:

React component library with shared providers for 0xFutbol ID

21 lines (20 loc) 1.03 kB
export declare const useOxFutbolIdContext: () => { address?: string; defaultChain?: import("@0xfutbol/constants").ChainName; signer?: Record<import("@0xfutbol/constants").ChainName, import("ethers").Signer>; status: string; userDetails?: import("@/providers").Web3ContextState["userDetails"]; walletProvider: "matchain_id" | "thirdweb" | "unknown"; web3Ready: boolean; connect: (walletKey: string) => Promise<void>; disconnect: () => Promise<void>; nativeBalanceOf: (address: string, chainId: number) => Promise<import("ethers").BigNumber>; newContract: (chain: import("@0xfutbol/constants").ChainName, contractAddress: string, contractAbi: any) => import("ethers").Contract; switchChain: (chain: import("@0xfutbol/constants").ChainName) => Promise<void>; authStatus: import("./types").AuthStatus; isClaimPending: boolean; isWaitingForSignature: boolean; username?: string; userClaims?: Record<string, any>; claim: (username: string) => Promise<void>; };