Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
zk-robin committed Aug 28, 2024
1 parent 335f594 commit f4c061c
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 461 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ L1_ERC20_BRIDGE_LINEA=0x62cE247f34dc316f93D3830e4Bf10959FCe630f8
L1_ERC20_BRIDGE_BLAST=0x8Df0c2bA3916bF4789c50dEc5A79b2fc719F500b

NOVA_POINT_REDISTRIBUTE_GRAPH_API=
NOVA_POINT_PUFFER_EL_POINTS_GRAPH_API=http://3.114.68.110:8000/subgraphs/name/puffer-eth-points-v2
NOVA_POINT_BLOCK_GRAPH_API=https://graph.zklink.io/subgraphs/name/nova-blocks
NOVA_POINT_PUFFER_EL_POINTS_GRAPH_API=http://3.114.68.110:8000/subgraphs/name/puffer-eth-points-v2
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"@nestjs/config": "^3.2.0",
"@nestjs/core": "^10.0.0",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/schedule": "^4.1.0",
"@nestjs/swagger": "^7.3.0",
"@nestjs/typeorm": "^10.0.2",
"@willsoto/nestjs-prometheus": "^6.0.0",
Expand Down Expand Up @@ -94,4 +93,4 @@
"^src/(.*)$": "<rootDir>/src/$1"
}
}
}
}
2 changes: 0 additions & 2 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ import { ReferralRepository } from "./repositories/referral.repository";
import { SeasonTotalPointRepository } from "./repositories/seasonTotalPoint.repository";
import { SupplementPointRepository } from "./repositories/supplementPoint.repository";
import { supplementPoint } from "./entities/supplementPoint.entity";
import { StatisticService } from "./statistics/statistic.service";
import { StatisticController } from "./statistics/statistic.controller";
import { ScheduleModule } from "@nestjs/schedule";
import { ProtocolDau } from "./entities/dau.entity";
Expand Down Expand Up @@ -171,7 +170,6 @@ import { BlockTokenPrice } from "./entities/blockTokenPrice.entity";
TvlService,
TxDataOfPointsRepository,
ReferralService,
StatisticService,
ReferralRepository,
SeasonTotalPointRepository,
SupplementPointRepository,
Expand Down
27 changes: 0 additions & 27 deletions src/statistics/statistic.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { StatisticService } from "./statistic.service";
import { Controller, Get, Logger, Query } from "@nestjs/common";
import {
ApiExcludeController,
Expand All @@ -23,7 +22,6 @@ export class StatisticController {
private readonly protocolDauRepository: Repository<ProtocolDau>,
@InjectRepository(Project)
private readonly projectRepository: Repository<Project>,
private readonly statisticService: StatisticService,
) {}

@Get("/protocol/dau")
Expand Down Expand Up @@ -144,29 +142,4 @@ export class StatisticController {
data: all,
};
}

@Get("/protocol/invoke")
public async test(@Query("type") type: number) {
switch (Number(type)) {
case 1:
await this.statisticService.statisticHistoryProtocolDauAndCumulative();
break;
case 2:
await this.statisticService.statisticHistoryTvl();
}

return {
errno: 0,
errmsg: "no error",
};
}

@Get("/protocol/abc")
public async abc() {
await this.statisticService.statisticProtocolDau();
return {
errno: 0,
errmsg: "no error",
};
}
}
Loading

0 comments on commit f4c061c

Please sign in to comment.