@hashlike-official/extend-web3-react-wrapper
Version:
web3-react wrapper - it offers a common interface for different wallet providers
9 lines (8 loc) • 495 B
TypeScript
import { Contract } from '@ethersproject/contracts';
import { CallParamType, SendParamType, WrappedContract } from '../types/WrappedContract';
export declare class MetamaskContract extends WrappedContract<Contract> {
constructor(originContract: Contract);
call({ methodName, params, option }: CallParamType): Promise<any>;
send({ methodName, params, option, callback }: SendParamType): Promise<any>;
estimateGas({ methodName, params, option }: SendParamType): Promise<string>;
}