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

safe-global / safe-client-gateway / 15022933939

14 May 2025 02:09PM UTC coverage: 90.28% (-0.02%) from 90.296%
15022933939

Pull #2582

github

iamacook
fix: don't pass all arguments
Pull Request #2582: feat: add caching to the Decoder Service

3286 of 3972 branches covered (82.73%)

Branch coverage included in aggregate %.

19 of 19 new or added lines in 4 files covered. (100.0%)

68 existing lines in 12 files now uncovered.

11399 of 12294 relevant lines covered (92.72%)

560.77 hits per line

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

80.0
/src/domain/data-decoder/v2/data-decoder.repository.ts
1
import { Inject, Injectable } from '@nestjs/common';
106✔
2
import {
106✔
3
  DataDecoded,
4
  DataDecodedSchema,
5
} from '@/domain/data-decoder/v2/entities/data-decoded.entity';
6
import { IDataDecoderRepository } from '@/domain/data-decoder/v2/data-decoder.repository.interface';
7
import { IDataDecoderApi } from '@/domain/interfaces/data-decoder-api.interface';
106✔
8
import { Page } from '@/domain/entities/page.entity';
9
import {
106✔
10
  Contract,
11
  ContractPageSchema,
12
} from '@/domain/data-decoder/v2/entities/contract.entity';
13

14
@Injectable()
15
export class DataDecoderRepository implements IDataDecoderRepository {
106✔
16
  constructor(
17
    @Inject(IDataDecoderApi)
18
    private readonly dataDecoderApi: IDataDecoderApi,
1,608✔
19
  ) {}
20

21
  public async getDecodedData(args: {
22
    chainId: string;
23
    data: `0x${string}`;
24
    to: `0x${string}`;
25
  }): Promise<DataDecoded> {
26
    const dataDecoded = await this.dataDecoderApi.getDecodedData(args);
78✔
27
    return DataDecodedSchema.parse(dataDecoded);
76✔
28
  }
29

30
  public async getContracts(args: {
31
    chainIds: Array<string>;
32
    address: `0x${string}`;
33
  }): Promise<Page<Contract>> {
UNCOV
34
    const contracts = await this.dataDecoderApi.getContracts(args);
×
UNCOV
35
    return ContractPageSchema.parse(contracts);
×
36
  }
37
}
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