• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-client-gateway / 8093846263

29 Feb 2024 09:32AM UTC coverage: 93.246% (-0.4%) from 93.665%
8093846263

push

github

web-flow
Add `trusted` query param. to `incoming-transfers` endpoint (#1214)

This adds a `trusted` query param. to the `incoming-transfers` endpoints, mirroring that of the `history` endpoint. If `true`, it filters ERC-20 transfers that are untrusted.

1661 of 1999 branches covered (83.09%)

Branch coverage included in aggregate %.

17 of 17 new or added lines in 3 files covered. (100.0%)

26 existing lines in 10 files now uncovered.

6126 of 6352 relevant lines covered (96.44%)

341.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.0
/src/routes/data-decode/data-decoded.controller.ts
1
import { Body, Controller, HttpCode, Param, Post } from '@nestjs/common';
76✔
2
import { ApiOkResponse, ApiTags } from '@nestjs/swagger';
76✔
3
import { DataDecodedService } from '@/routes/data-decode/data-decoded.service';
76✔
4
import { DataDecoded } from '@/routes/data-decode/entities/data-decoded.entity';
76✔
5
import { GetDataDecodedDto } from '@/routes/data-decode/entities/get-data-decoded.dto.entity';
76✔
6
import { GetDataDecodedDtoValidationPipe } from '@/routes/data-decode/pipes/get-data-decoded.dto.validation.pipe';
76✔
7

8
@ApiTags('data-decoded')
9
@Controller({
10
  path: '',
11
  version: '1',
12
})
13
export class DataDecodedController {
76✔
14
  constructor(private readonly dataDecodedService: DataDecodedService) {}
1,046✔
15

16
  @ApiOkResponse({ type: DataDecoded })
17
  @HttpCode(200)
18
  @Post('chains/:chainId/data-decoder')
19
  async getDataDecoded(
76✔
20
    @Param('chainId') chainId: string,
21
    @Body(GetDataDecodedDtoValidationPipe) getDataDecodedDto: GetDataDecodedDto,
22
  ): Promise<DataDecoded> {
UNCOV
23
    return this.dataDecodedService.getDataDecoded({
×
24
      chainId,
25
      getDataDecodedDto,
26
    });
27
  }
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc