import { providers } from 'ethers'; import BaseService from '../commons/BaseService'; import { tEthereumAddress } from '../commons/types'; import { ReverseRecords } from './typechain/ReverseRecords'; import { ReverseRecords__factory } from './typechain/ReverseRecords__factory'; export class ReverseRecordsService extends BaseService { instance: ReverseRecords; constructor(provider: providers.Provider, address: string) { super(provider, ReverseRecords__factory); this.instance = this.getContractInstance(address); } public async getNames(users: tEthereumAddress[]): Promise { const reversRecords = await this.instance.getNames(users); return reversRecords; } }