import { Contract } from 'ethers';
import abis from '../../lib/abis/index';
import ContractSettings from '../contractSettings';
const abi = abis.EscrowChecker;
/** @constructor
* @param contractSettings {ContractSettings}
*/
function EscrowChecker(contractSettings) {
this.contractSettings = contractSettings || new ContractSettings();
this.contract = new Contract(
this.contractSettings.addressList['EscrowChecker'],
abi,
this.contractSettings.signer || this.contractSettings.provider
);
/**
* Call (no gas consumed, doesn't require signer)
* @param account {String<EthAddress>}
* @returns uint256[16]
**/
this.checkAccountSchedule = async account => {
return await this.contract.checkAccountSchedule(account);
};
/**
* Call (no gas consumed, doesn't require signer)
* @returns String<EthAddress>
**/
this.havven_escrow = async () => {
return await this.contract.havven_escrow();
};
}
export default EscrowChecker;