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

safe-global / safe-client-gateway / 14084650728

26 Mar 2025 01:34PM UTC coverage: 90.809% (+0.2%) from 90.64%
14084650728

push

github

iamacook
refactor: migrate to Safe Decoder Service

3199 of 3828 branches covered (83.57%)

Branch coverage included in aggregate %.

34 of 37 new or added lines in 11 files covered. (91.89%)

14 existing lines in 3 files now uncovered.

11226 of 12057 relevant lines covered (93.11%)

539.49 hits per line

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

90.48
/src/routes/data-decode/entities/data-decoded.entity.ts
1
import {
120✔
2
  ApiProperty,
3
  ApiPropertyOptional,
4
  getSchemaPath,
5
} from '@nestjs/swagger';
6
import {
120✔
7
  BaseDataDecoded as DomainBaseDataDecoded,
8
  MultiSend as DomainMultiSend,
9
  DataDecoded as DomainDataDecoded,
10
  DataDecodedParameter as DomainDataDecodedParameter,
11
  DataDecodedAccuracy,
12
} from '@/domain/data-decoder/v2/entities/data-decoded.entity';
13
import { Operation } from '@/domain/safe/entities/operation.entity';
120✔
14

15
class BaseDataDecoded implements DomainBaseDataDecoded {
16
  @ApiProperty()
17
  method!: string;
120✔
18

NEW
19
  @ApiPropertyOptional({ type: () => DataDecodedParameter, isArray: true })
×
20
  parameters!: Array<DataDecodedParameter> | null;
120✔
21
}
22

23
class MultiSend implements DomainMultiSend {
24
  @ApiProperty({ enum: Operation })
25
  operation!: Operation;
120✔
26

27
  @ApiProperty()
28
  value!: string;
120✔
29

NEW
30
  @ApiPropertyOptional({ type: () => BaseDataDecoded })
×
31
  dataDecoded!: BaseDataDecoded;
120✔
32

33
  @ApiProperty()
34
  to!: `0x${string}`;
120✔
35

36
  @ApiPropertyOptional()
37
  data!: `0x${string}` | null;
120✔
38
}
39

40
export class DataDecodedParameter implements DomainDataDecodedParameter {
120✔
41
  @ApiProperty()
42
  name!: string;
120✔
43

44
  @ApiProperty()
45
  type!: string;
120✔
46

47
  @ApiProperty()
48
  value!: Required<unknown>;
120✔
49

50
  @ApiPropertyOptional({
51
    oneOf: [
52
      { type: 'array', items: { $ref: getSchemaPath(MultiSend) } },
53
      { $ref: getSchemaPath(BaseDataDecoded) },
54
    ],
55
  })
56
  valueDecoded?: Array<DomainMultiSend> | DomainBaseDataDecoded | null;
120✔
57
}
58

59
export class DataDecoded implements DomainDataDecoded {
120✔
60
  @ApiProperty()
61
  method!: string;
120✔
62

63
  @ApiPropertyOptional({
64
    type: DataDecodedParameter,
65
    isArray: true,
66
    nullable: true,
67
  })
68
  parameters!: Array<DataDecodedParameter> | null;
120✔
69

70
  @ApiPropertyOptional({
71
    enum: [...DataDecodedAccuracy, 'UNKNOWN'],
72
    default: 'UNKNOWN',
73
  })
74
  accuracy!: (typeof DataDecodedAccuracy)[number] | 'UNKNOWN';
120✔
75
}
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