@hashlike-official/extend-web3-react-wrapper
Version:
web3-react wrapper - it offers a common interface for different wallet providers
12 lines (11 loc) • 639 B
TypeScript
import { Web3Provider } from '@ethersproject/providers';
import { formatEther, parseEther, formatUnits, parseUnits } from '@ethersproject/units';
import { WalletLibrary } from '../types/WalletLibrary';
import { MetamaskContract } from '../contract';
export declare class MetamaskLibrary extends WalletLibrary<Web3Provider> {
getBalanceOf(address: string): Promise<string>;
getBlockNumber(): Promise<number>;
transfer(from: string, to: string, value: number): Promise<boolean>;
contract(jsonInterface: any, address: string, account?: string): MetamaskContract;
}
export { formatEther, parseEther, formatUnits, parseUnits };