@hashlike-official/extend-web3-react-wrapper
Version:
web3-react wrapper - it offers a common interface for different wallet providers
11 lines (10 loc) • 562 B
TypeScript
import { SupportedContract } from '.';
import { WrappedContract } from './WrappedContract';
export declare abstract class WalletLibrary<SupportedProvider> {
protected readonly provider: SupportedProvider;
constructor(provider: SupportedProvider);
abstract getBalanceOf(address: string): Promise<string>;
abstract getBlockNumber(): Promise<number>;
abstract transfer(from: string, to: string, value: number): Promise<boolean>;
abstract contract(jsonInterface: any, address: string, account?: string): WrappedContract<SupportedContract>;
}