From e8e3296be010c741591e7e4ff03d530508f6c17f Mon Sep 17 00:00:00 2001 From: Sebastian Gerske Date: Thu, 29 Aug 2019 09:02:39 +0200 Subject: [PATCH] fix lint issues --- src/keeper/EventHandler.ts | 2 ++ src/keeper/contracts/templates/AgreementTemplate.abstract.ts | 2 ++ src/ocean/OceanAgreements.ts | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/keeper/EventHandler.ts b/src/keeper/EventHandler.ts index 89cf091..50d6e26 100644 --- a/src/keeper/EventHandler.ts +++ b/src/keeper/EventHandler.ts @@ -7,6 +7,8 @@ export class EventHandler extends Instantiable { get count() { return this.events.size } + + private events = new Set<(blockNumber) => void>() private lastBlock: number private interval = 200 diff --git a/src/keeper/contracts/templates/AgreementTemplate.abstract.ts b/src/keeper/contracts/templates/AgreementTemplate.abstract.ts index 963928a..ecc5c72 100644 --- a/src/keeper/contracts/templates/AgreementTemplate.abstract.ts +++ b/src/keeper/contracts/templates/AgreementTemplate.abstract.ts @@ -44,6 +44,8 @@ export abstract class AgreementTemplate extends ContractBase { timeOuts: number[], ...args: any[] ) + + public createAgreement( agreementId: string, did: string, diff --git a/src/ocean/OceanAgreements.ts b/src/ocean/OceanAgreements.ts index 59055e7..0bae3ea 100644 --- a/src/ocean/OceanAgreements.ts +++ b/src/ocean/OceanAgreements.ts @@ -155,10 +155,12 @@ export class OceanAgreements extends Instantiable { agreementId: string, extended?: false ): Promise<{ [condition: string]: ConditionState }> + public async status( agreementId: string, extended: true ): Promise + public async status(agreementId: string, extended: boolean = false) { const { templateId