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

safe-global / safe-client-gateway / 11233174198

08 Oct 2024 10:05AM UTC coverage: 46.725% (-44.0%) from 90.725%
11233174198

push

github

web-flow
Increase relay rate limit TTL (#1971)

Increases the relay rate limit TTL fallback value to 24 hours:

- Change `relay.ttlSeconds` value to `60 * 60 * 24`

498 of 3105 branches covered (16.04%)

Branch coverage included in aggregate %.

5024 of 8713 relevant lines covered (57.66%)

12.19 hits per line

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

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

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

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

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

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

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

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

66
  @ApiOkResponse({ type: IndexingStatus })
67
  @Get('/:chainId/about/indexing')
68
  async getIndexingStatus(
16✔
69
    @Param('chainId') chainId: string,
70
  ): Promise<IndexingStatus> {
71
    return this.chainsService.getIndexingStatus(chainId);
×
72
  }
73
}
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