import { TYPE_TRANSACTION_WRITE_RESULT } from "../types"; import { ITransactionRequestConfig } from "./transaction_request_config"; export interface IERC20 { getName(): Promise; getDecimals(): Promise; getSymbol(): Promise; getBalance(userAdddress: string): Promise; getTotalSupply(): Promise; getAllowance(owner: string, spender: string): Promise; approve(spender: string, amount: any, tx?: ITransactionRequestConfig): TYPE_TRANSACTION_WRITE_RESULT; transfer(to: string, amount: any, tx?: ITransactionRequestConfig): TYPE_TRANSACTION_WRITE_RESULT; transferFrom(from: string, to: string, amount: any, tx?: ITransactionRequestConfig): TYPE_TRANSACTION_WRITE_RESULT; increaseAllowance(spender: string, addedValue: any, tx?: ITransactionRequestConfig): TYPE_TRANSACTION_WRITE_RESULT; decreaseAllowance(spender: string, subtractedValue: any, tx?: ITransactionRequestConfig): TYPE_TRANSACTION_WRITE_RESULT; }