UNPKG

@mojito-inc/connect-wallet

Version:

Connecting wallet via metamask, wallet connect, email

24 lines (23 loc) 1.95 kB
import { Account } from 'thirdweb/wallets'; export declare const getThirdWebClient: (projectId?: string) => import("thirdweb").ThirdwebClient; export declare const getEthersSigner: (projectId: string, chainId: number, account: Account) => Promise<{ getAddress(): Promise<string>; signMessage(message: string | Uint8Array): Promise<string>; signTransaction(transaction: ethers5.ethers.utils.Deferrable<ethers5.ethers.providers.TransactionRequest>): Promise<string>; sendTransaction(transaction: ethers5.ethers.utils.Deferrable<ethers5.ethers.providers.TransactionRequest>): Promise<ethers5.ethers.providers.TransactionResponse>; _signTypedData(domain: ethers5.ethers.TypedDataDomain, types: Record<string, ethers5.ethers.TypedDataField[]>, value: Record<string, any>): Promise<string>; connect(): ethers5.ethers.Signer; readonly provider?: any; readonly _isSigner: boolean; getBalance(blockTag?: any): Promise<ethers5.ethers.BigNumber>; getTransactionCount(blockTag?: any): Promise<number>; estimateGas(transaction: ethers5.ethers.utils.Deferrable<ethers5.ethers.providers.TransactionRequest>): Promise<ethers5.ethers.BigNumber>; call(transaction: ethers5.ethers.utils.Deferrable<ethers5.ethers.providers.TransactionRequest>, blockTag?: any): Promise<string>; getChainId(): Promise<number>; getGasPrice(): Promise<ethers5.ethers.BigNumber>; getFeeData(): Promise<ethers5.ethers.providers.FeeData>; resolveName(name: string): Promise<string>; checkTransaction(transaction: ethers5.ethers.utils.Deferrable<ethers5.ethers.providers.TransactionRequest>): ethers5.ethers.utils.Deferrable<ethers5.ethers.providers.TransactionRequest>; populateTransaction(transaction: ethers5.ethers.utils.Deferrable<ethers5.ethers.providers.TransactionRequest>): Promise<ethers5.ethers.providers.TransactionRequest>; _checkProvider(operation?: string | undefined): void; }>;