Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
amateima committed Feb 21, 2024
1 parent 2dc34fb commit 4ce4138
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
12 changes: 0 additions & 12 deletions src/modules/scraper/adapter/messaging/BlocksEventsConsumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ import {
import { Deposit } from "../../../deposit/model/deposit.entity";
import { ScraperQueuesService } from "../../service/ScraperQueuesService";
import {
RequestedSpeedUpDepositEv,
FilledRelayEv,
FundsDepositedEv,
FundsDepositedEvent2,
FundsDepositedEvent2_5,
FilledRelayEvent2,
Expand All @@ -45,10 +42,6 @@ export class BlocksEventsConsumer {
constructor(
private providers: EthProvidersService,
@InjectRepository(Deposit) private depositRepository: Repository<Deposit>,
@InjectRepository(FundsDepositedEv) private fundsDepositedEvRepository: Repository<FundsDepositedEv>,
@InjectRepository(FilledRelayEv) private filledRelayEvRepository: Repository<FilledRelayEv>,
@InjectRepository(RequestedSpeedUpDepositEv)
private requestedSpeedUpDepositEvRepository: Repository<RequestedSpeedUpDepositEv>,
private scraperQueuesService: ScraperQueuesService,
private appConfig: AppConfig,
) {}
Expand Down Expand Up @@ -229,11 +222,6 @@ export class BlocksEventsConsumer {
// await this.insertRawFillEvents(chainId, events);

for (const event of events) {
const { address } = event;
const { acrossVersion } = this.appConfig.values.web3.spokePoolContracts[chainId].filter(
(contract) => contract.address === address,
)[0];

if (event.args.appliedRelayerFeePct) {
const typedEvent = event as FilledRelayEvent2;
const message: FillEventsQueueMessage = {
Expand Down
10 changes: 2 additions & 8 deletions src/modules/scraper/adapter/messaging/FillEventsV3Consumer.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
import { OnQueueFailed, Process, Processor } from "@nestjs/bull";
import { Logger } from "@nestjs/common";
import { Job } from "bull";
import {
DepositFilledDateQueueMessage,
FeeBreakdownQueueMessage,
FillEventsQueueMessage2,
FillEventsV3QueueMessage,
ScraperQueue,
} from ".";
import { DepositFilledDateQueueMessage, FeeBreakdownQueueMessage, FillEventsV3QueueMessage, ScraperQueue } from ".";
import { InjectRepository } from "@nestjs/typeorm";
import { Deposit, DepositFillTx2, DepositFillTxV3 } from "../../../deposit/model/deposit.entity";
import { Deposit, DepositFillTxV3 } from "../../../deposit/model/deposit.entity";
import { Repository } from "typeorm";
import { BigNumber } from "bignumber.js";
import { ScraperQueuesService } from "../../service/ScraperQueuesService";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { OnQueueFailed, Process, Processor } from "@nestjs/bull";
import { Logger } from "@nestjs/common";
import { Job } from "bull";
import { DepositFilledDateQueueMessage, ScraperQueue, SpeedUpEventsQueueMessage } from ".";
import { ScraperQueue, SpeedUpEventsQueueMessage } from ".";
import { InjectRepository } from "@nestjs/typeorm";
import { Deposit, RequestedSpeedUpDepositTx } from "../../../deposit/model/deposit.entity";
import { Repository } from "typeorm";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { OnQueueFailed, Process, Processor } from "@nestjs/bull";
import { Logger } from "@nestjs/common";
import { Job } from "bull";
import { DepositFilledDateQueueMessage, SpeedUpEventsV3QueueMessage, ScraperQueue } from ".";
import { SpeedUpEventsV3QueueMessage, ScraperQueue } from ".";
import { InjectRepository } from "@nestjs/typeorm";
import { Deposit, RequestedSpeedUpDepositTxV3 } from "../../../deposit/model/deposit.entity";
import { Repository } from "typeorm";
Expand Down

0 comments on commit 4ce4138

Please sign in to comment.