From b1aec2ca244f8c7cdd443000b9d0a75fee9be2af Mon Sep 17 00:00:00 2001 From: Jorge Sanmiguel <8038323+jsanmigimeno@users.noreply.github.com> Date: Fri, 19 Jul 2024 15:32:37 +0000 Subject: [PATCH] chore: Remove unnecessary LZ type --- src/collector/layer-zero/layer-zero.worker.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/collector/layer-zero/layer-zero.worker.ts b/src/collector/layer-zero/layer-zero.worker.ts index 4554d7e..da6463d 100644 --- a/src/collector/layer-zero/layer-zero.worker.ts +++ b/src/collector/layer-zero/layer-zero.worker.ts @@ -43,9 +43,6 @@ import { ParsePayload } from 'src/payload/decode.payload'; import { LayerZeroEnpointV2Interface, PacketSentEvent } from 'src/contracts/LayerZeroEnpointV2'; import { STATUS_LOG_INTERVAL } from 'src/logger/logger.service'; -interface LayerZeroWorkerDataWithMapping extends LayerZeroWorkerData { - layerZeroChainIdMap: Record; -} interface LayerZeroPayloadData { messageIdentifier: string, @@ -53,7 +50,7 @@ interface LayerZeroPayloadData { } class LayerZeroWorker { - private readonly config: LayerZeroWorkerDataWithMapping; + private readonly config: LayerZeroWorkerData; private readonly chainId: string; private readonly store: Store; private readonly provider: JsonRpcProvider; @@ -75,7 +72,7 @@ class LayerZeroWorker { private fromBlock: number = 0; constructor() { - this.config = workerData as LayerZeroWorkerDataWithMapping; + this.config = workerData as LayerZeroWorkerData; this.chainId = this.config.chainId; this.layerZeroChainIdMap = this.config.layerZeroChainIdMap; this.incentivesAddresses = this.config.incentivesAddresses;