• 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

85.19
/src/routes/delegates/delegates.controller.ts
1
import {
16✔
2
  Body,
3
  Controller,
4
  Delete,
5
  Get,
6
  HttpCode,
7
  Param,
8
  Post,
9
  Query,
10
} from '@nestjs/common';
11
import {
16✔
12
  ApiOkResponse,
13
  ApiOperation,
14
  ApiQuery,
15
  ApiTags,
16
} from '@nestjs/swagger';
17
import { PaginationDataDecorator } from '@/routes/common/decorators/pagination.data.decorator';
16✔
18
import { RouteUrlDecorator } from '@/routes/common/decorators/route.url.decorator';
16✔
19
import { Page } from '@/routes/common/entities/page.entity';
20
import { PaginationData } from '@/routes/common/pagination/pagination.data';
16✔
21
import { DelegatesService } from '@/routes/delegates/delegates.service';
16✔
22
import { CreateDelegateDto } from '@/routes/delegates/entities/create-delegate.dto.entity';
16✔
23
import { Delegate } from '@/routes/delegates/entities/delegate.entity';
24
import { DelegatePage } from '@/routes/delegates/entities/delegate.page.entity';
16✔
25
import { DeleteDelegateDto } from '@/routes/delegates/entities/delete-delegate.dto.entity';
16✔
26
import { DeleteSafeDelegateDto } from '@/routes/delegates/entities/delete-safe-delegate.dto.entity';
16✔
27
import { GetDelegateDto } from '@/routes/delegates/entities/get-delegate.dto.entity';
16✔
28
import { ValidationPipe } from '@/validation/pipes/validation.pipe';
16✔
29
import { GetDelegateDtoSchema } from '@/routes/delegates/entities/schemas/get-delegate.dto.schema';
16✔
30
import { CreateDelegateDtoSchema } from '@/routes/delegates/entities/schemas/create-delegate.dto.schema';
16✔
31
import { DeleteDelegateDtoSchema } from '@/routes/delegates/entities/schemas/delete-delegate.dto.schema';
16✔
32
import { DeleteSafeDelegateDtoSchema } from '@/routes/delegates/entities/schemas/delete-safe-delegate.dto.schema';
16✔
33
import { AddressSchema } from '@/validation/entities/schemas/address.schema';
16✔
34

35
@ApiTags('delegates')
36
@Controller({
37
  version: '1',
38
})
39
export class DelegatesController {
16✔
40
  constructor(private readonly service: DelegatesService) {}
16✔
41

42
  @ApiOperation({ deprecated: true })
43
  @ApiOkResponse({ type: DelegatePage })
44
  @ApiQuery({
45
    name: 'safe',
46
    required: false,
47
    type: String,
48
  })
49
  @ApiQuery({
50
    name: 'delegate',
51
    required: false,
52
    type: String,
53
  })
54
  @ApiQuery({
55
    name: 'delegator',
56
    required: false,
57
    type: String,
58
  })
59
  @ApiQuery({
60
    name: 'label',
61
    required: false,
62
    type: String,
63
  })
64
  @ApiQuery({
65
    name: 'cursor',
66
    required: false,
67
    type: String,
68
  })
69
  @Get('chains/:chainId/delegates')
70
  async getDelegates(
16✔
71
    @Param('chainId') chainId: string,
72
    @RouteUrlDecorator() routeUrl: URL,
73
    @Query(new ValidationPipe(GetDelegateDtoSchema))
74
    getDelegateDto: GetDelegateDto,
75
    @PaginationDataDecorator() paginationData: PaginationData,
76
  ): Promise<Page<Delegate>> {
77
    return this.service.getDelegates({
×
78
      chainId,
79
      routeUrl,
80
      getDelegateDto,
81
      paginationData,
82
    });
83
  }
84

85
  @ApiOperation({ deprecated: true })
86
  @HttpCode(200)
87
  @Post('chains/:chainId/delegates')
88
  async postDelegate(
16✔
89
    @Param('chainId') chainId: string,
90
    @Body(new ValidationPipe(CreateDelegateDtoSchema))
91
    createDelegateDto: CreateDelegateDto,
92
  ): Promise<void> {
93
    await this.service.postDelegate({ chainId, createDelegateDto });
×
94
  }
95

96
  @ApiOperation({ deprecated: true })
97
  @Delete('chains/:chainId/delegates/:delegateAddress')
98
  async deleteDelegate(
16✔
99
    @Param('chainId') chainId: string,
100
    @Param('delegateAddress', new ValidationPipe(AddressSchema))
101
    delegateAddress: `0x${string}`,
102
    @Body(new ValidationPipe(DeleteDelegateDtoSchema))
103
    deleteDelegateDto: DeleteDelegateDto,
104
  ): Promise<unknown> {
105
    return this.service.deleteDelegate({
×
106
      chainId,
107
      delegateAddress,
108
      deleteDelegateDto,
109
    });
110
  }
111

112
  @ApiOperation({ deprecated: true })
113
  @Delete('chains/:chainId/safes/:safeAddress/delegates/:delegateAddress')
114
  async deleteSafeDelegate(
16✔
115
    @Param('chainId') chainId: string,
116
    @Body(new ValidationPipe(DeleteSafeDelegateDtoSchema))
117
    deleteSafeDelegateRequest: DeleteSafeDelegateDto,
118
  ): Promise<unknown> {
119
    return this.service.deleteSafeDelegate({
×
120
      chainId,
121
      deleteSafeDelegateRequest,
122
    });
123
  }
124
}
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