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

safe-global / safe-client-gateway / 14131637198

28 Mar 2025 02:50PM UTC coverage: 90.473% (-0.1%) from 90.577%
14131637198

push

github

web-flow
Add datasource for Safe Decoder Service (#2313)

The new [Safe Decoder Service](https://safe-decoder.safe.global/docs) improves upon the decoder of the Safe Transaction Service. As such, we intend to migrate to it.

This lays the foundation of usage, by creating a datasource (with manager) and base repository for validating the responses:

- Add `safeDataDecoder.baseUri` (test) configuration
- Add `DataDecoderApiManager` interface, implementation and module
- Add `DataDecoderApi` interface, implementation and module
- Add validation schemas for `DataDecoded` and `Contract, with inferred types and builders
- Add base `DataDecoderRepository` for accessing/validating datasource responses
- Add appropriate test coverage of service and schemas

3207 of 3846 branches covered (83.39%)

Branch coverage included in aggregate %.

46 of 68 new or added lines in 8 files covered. (67.65%)

10980 of 11835 relevant lines covered (92.78%)

535.66 hits per line

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

0.0
/src/datasources/data-decoder-api/data-decoder-api.module.ts
NEW
1
import { Module } from '@nestjs/common';
×
NEW
2
import { DataDecoderApi } from '@/datasources/data-decoder-api/data-decoder-api.service';
×
NEW
3
import { HttpErrorFactory } from '@/datasources/errors/http-error-factory';
×
NEW
4
import { IDataDecoderApi } from '@/domain/interfaces/data-decoder-api.interface';
×
5

6
@Module({
7
  providers: [
8
    HttpErrorFactory,
9
    { provide: IDataDecoderApi, useClass: DataDecoderApi },
10
  ],
11
  exports: [IDataDecoderApi],
12
})
NEW
13
export class DataDecodedApiModule {}
×
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

© 2025 Coveralls, Inc