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

safe-global / safe-client-gateway / 11340871916

15 Oct 2024 06:58AM UTC coverage: 46.83% (-45.0%) from 91.836%
11340871916

push

github

web-flow
Bump typescript from 5.6.2 to 5.6.3 (#2015)

Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.6.2 to 5.6.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.6.2...v5.6.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

500 of 3096 branches covered (16.15%)

Branch coverage included in aggregate %.

5092 of 8845 relevant lines covered (57.57%)

12.16 hits per line

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

81.82
/src/routes/delegates/v2/delegates.v2.controller.ts
1
import { PaginationDataDecorator } from '@/routes/common/decorators/pagination.data.decorator';
16✔
2
import { RouteUrlDecorator } from '@/routes/common/decorators/route.url.decorator';
16✔
3
import { Page } from '@/routes/common/entities/page.entity';
4
import { PaginationData } from '@/routes/common/pagination/pagination.data';
16✔
5
import { CreateDelegateDto } from '@/routes/delegates/entities/create-delegate.dto.entity';
16✔
6
import { Delegate } from '@/routes/delegates/entities/delegate.entity';
7
import { DelegatePage } from '@/routes/delegates/entities/delegate.page.entity';
16✔
8
import { GetDelegateDto } from '@/routes/delegates/entities/get-delegate.dto.entity';
16✔
9
import { CreateDelegateDtoSchema } from '@/routes/delegates/entities/schemas/create-delegate.dto.schema';
16✔
10
import { GetDelegateDtoSchema } from '@/routes/delegates/entities/schemas/get-delegate.dto.schema';
16✔
11
import { DelegatesV2Service } from '@/routes/delegates/v2/delegates.v2.service';
16✔
12
import { DeleteDelegateV2Dto } from '@/routes/delegates/v2/entities/delete-delegate.v2.dto.entity';
16✔
13
import { DeleteDelegateV2DtoSchema } from '@/routes/delegates/v2/entities/schemas/delete-delegate.v2.dto.schema';
16✔
14
import { ValidationPipe } from '@/validation/pipes/validation.pipe';
16✔
15
import {
16✔
16
  Body,
17
  Controller,
18
  Delete,
19
  Get,
20
  HttpCode,
21
  Param,
22
  Post,
23
  Query,
24
} from '@nestjs/common';
25
import { ApiOkResponse, ApiQuery, ApiTags } from '@nestjs/swagger';
16✔
26

27
@ApiTags('delegates')
28
@Controller({ version: '2' })
29
export class DelegatesV2Controller {
16✔
30
  constructor(private readonly service: DelegatesV2Service) {}
×
31

32
  @ApiOkResponse({ type: DelegatePage })
33
  @ApiQuery({
34
    name: 'safe',
35
    required: false,
36
    type: String,
37
  })
38
  @ApiQuery({
39
    name: 'delegate',
40
    required: false,
41
    type: String,
42
  })
43
  @ApiQuery({
44
    name: 'delegator',
45
    required: false,
46
    type: String,
47
  })
48
  @ApiQuery({
49
    name: 'label',
50
    required: false,
51
    type: String,
52
  })
53
  @ApiQuery({
54
    name: 'cursor',
55
    required: false,
56
    type: String,
57
  })
58
  @Get('chains/:chainId/delegates')
59
  async getDelegates(
16✔
60
    @Param('chainId') chainId: string,
61
    @RouteUrlDecorator() routeUrl: URL,
62
    @Query(new ValidationPipe(GetDelegateDtoSchema))
63
    getDelegateDto: GetDelegateDto,
64
    @PaginationDataDecorator() paginationData: PaginationData,
65
  ): Promise<Page<Delegate>> {
66
    return this.service.getDelegates({
×
67
      chainId,
68
      routeUrl,
69
      getDelegateDto,
70
      paginationData,
71
    });
72
  }
73

74
  @HttpCode(200)
75
  @Post('chains/:chainId/delegates')
76
  async postDelegate(
16✔
77
    @Param('chainId') chainId: string,
78
    @Body(new ValidationPipe(CreateDelegateDtoSchema))
79
    createDelegateDto: CreateDelegateDto,
80
  ): Promise<void> {
81
    await this.service.postDelegate({ chainId, createDelegateDto });
×
82
  }
83

84
  @Delete('chains/:chainId/delegates/:delegateAddress')
85
  async deleteDelegate(
16✔
86
    @Param('chainId') chainId: string,
87
    @Param('delegateAddress') delegateAddress: `0x${string}`,
88
    @Body(new ValidationPipe(DeleteDelegateV2DtoSchema))
89
    deleteDelegateV2Dto: DeleteDelegateV2Dto,
90
  ): Promise<unknown> {
91
    return this.service.deleteDelegate({
×
92
      chainId,
93
      delegateAddress,
94
      deleteDelegateV2Dto: deleteDelegateV2Dto,
95
    });
96
  }
97
}
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