import IERC20ServiceInterface from '../interfaces/ERC20'; import { Configuration, EthereumTransactionTypeExtended, tEthereumAddress, tStringCurrencyUnits, tStringDecimalUnits, TokenMetadataType } from '../types'; import { IERC20Detailed } from '../contract-types'; import BaseService from './BaseService'; export default class ERC20Service extends BaseService implements IERC20ServiceInterface { readonly tokenDecimals: { [address: string]: number; }; constructor(config: Configuration); approve: (user: tEthereumAddress, token: tEthereumAddress, spender: tEthereumAddress, amount: tStringDecimalUnits) => EthereumTransactionTypeExtended; isApproved: (token: tEthereumAddress, userAddress: tEthereumAddress, spender: tEthereumAddress, amount: tStringCurrencyUnits) => Promise; decimalsOf: (token: tEthereumAddress) => Promise; getTokenData: (token: tEthereumAddress) => Promise; }