import { ISingleValidationResponse } from "./interfaces/single-validation-response.i"; /** * @description Contains all information about a transaction and as some enhanced properties to help make sens of the transaction data */ export class AddressValidation { constructor(public readonly info: ISingleValidationResponse) { } /** * @returns True if the number of confimrations is equal or higer than expected */ get isValid() { return this.info.currentNbConf >= this.info.requiredNbConf; } /** * @returns True if the number of confimrations is equal or higer than expected */ get isCompleted() { return this.info.currentNbConf >= this.info.requiredNbConf; } }