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

safe-global / safe-client-gateway / 8630594257

10 Apr 2024 11:38AM UTC coverage: 45.232% (-47.6%) from 92.862%
8630594257

Pull #1369

github

iamacook
Only store signer address in JWT payload
Pull Request #1369: Add `AuthGuard`

293 of 2225 branches covered (13.17%)

Branch coverage included in aggregate %.

4 of 9 new or added lines in 3 files covered. (44.44%)

2495 existing lines in 237 files now uncovered.

3540 of 6249 relevant lines covered (56.65%)

8.62 hits per line

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

78.26
/src/routes/chains/chains.controller.ts
1
import { Controller, Get, Param } from '@nestjs/common';
14✔
2
import { ApiOkResponse, ApiQuery, ApiTags } from '@nestjs/swagger';
14✔
3
import { ChainsService } from '@/routes/chains/chains.service';
14✔
4
import { AboutChain } from '@/routes/chains/entities/about-chain.entity';
14✔
5
import { ChainPage } from '@/routes/chains/entities/chain-page.entity';
14✔
6
import { Chain } from '@/routes/chains/entities/chain.entity';
14✔
7
import { MasterCopy } from '@/routes/chains/entities/master-copy.entity';
14✔
8
import { PaginationDataDecorator } from '@/routes/common/decorators/pagination.data.decorator';
14✔
9
import { RouteUrlDecorator } from '@/routes/common/decorators/route.url.decorator';
14✔
10
import { Page } from '@/routes/common/entities/page.entity';
11
import { PaginationData } from '@/routes/common/pagination/pagination.data';
14✔
12
import {
14✔
13
  Backbone as ApiBackbone,
14
  Backbone,
15
} from '@/routes/chains/entities/backbone.entity';
16

17
@ApiTags('chains')
18
@Controller({
19
  path: 'chains',
20
  version: '1',
21
})
22
export class ChainsController {
14✔
23
  constructor(private readonly chainsService: ChainsService) {}
14✔
24

25
  @ApiQuery({
26
    name: 'cursor',
27
    required: false,
28
    type: String,
29
  })
30
  @ApiOkResponse({ type: ChainPage })
31
  @Get()
32
  async getChains(
14✔
33
    @RouteUrlDecorator() routeUrl: URL,
34
    @PaginationDataDecorator() paginationData: PaginationData,
35
  ): Promise<Page<Chain>> {
UNCOV
36
    return this.chainsService.getChains(routeUrl, paginationData);
×
37
  }
38

39
  @ApiOkResponse({ type: Chain })
40
  @Get('/:chainId')
41
  async getChain(@Param('chainId') chainId: string): Promise<Chain> {
14✔
UNCOV
42
    return this.chainsService.getChain(chainId);
×
43
  }
44

45
  @ApiOkResponse({ type: AboutChain })
46
  @Get('/:chainId/about')
47
  async getAboutChain(@Param('chainId') chainId: string): Promise<AboutChain> {
14✔
UNCOV
48
    return this.chainsService.getAboutChain(chainId);
×
49
  }
50

51
  @ApiOkResponse({ type: ApiBackbone })
52
  @Get('/:chainId/about/backbone')
53
  async getBackbone(@Param('chainId') chainId: string): Promise<Backbone> {
14✔
UNCOV
54
    return this.chainsService.getBackbone(chainId);
×
55
  }
56

57
  @ApiOkResponse({ type: MasterCopy, isArray: true })
58
  @Get('/:chainId/about/master-copies')
59
  async getMasterCopies(
14✔
60
    @Param('chainId') chainId: string,
61
  ): Promise<MasterCopy[]> {
UNCOV
62
    return this.chainsService.getMasterCopies(chainId);
×
63
  }
64
}
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

© 2026 Coveralls, Inc