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

safe-global / safe-client-gateway / 21748551581

06 Feb 2026 10:23AM UTC coverage: 88.687% (-0.7%) from 89.395%
21748551581

Pull #2909

github

PooyaRaki
fix: fix lint errors
Pull Request #2909: Release 1.100.0

2980 of 3772 branches covered (79.0%)

Branch coverage included in aggregate %.

137 of 167 new or added lines in 15 files covered. (82.04%)

252 existing lines in 34 files now uncovered.

14079 of 15463 relevant lines covered (91.05%)

553.43 hits per line

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

84.62
/src/datasources/network/tx-auth.network.module.ts
1
import { Module } from '@nestjs/common';
154✔
2
import { IConfigurationService } from '@/config/configuration.service.interface';
154✔
3
import { getTxAuthHeaders } from '@/datasources/network/auth/tx-auth-headers.helper';
154✔
4
import { FetchNetworkService } from '@/datasources/network/fetch.network.service';
154✔
5
import { NetworkService } from '@/datasources/network/network.service.interface';
154✔
6
import type { FetchClient } from '@/datasources/network/network.module';
7
import { FetchClientToken } from '@/datasources/network/network.module';
154✔
8
import { ILoggingService, LoggingService } from '@/logging/logging.interface';
154✔
9
import { CacheFirstDataSource } from '@/datasources/cache/cache.first.data.source';
154✔
10
import { HttpErrorFactory } from '@/datasources/errors/http-error-factory';
154✔
11
import { CacheFirstDataSourceModule } from '@/datasources/cache/cache.first.data.source.module';
154✔
12

13
/**
14
 * Provides a NetworkService instance configured with TX Service authentication headers
15
 * and CacheFirstDataSource that uses this NetworkService.
16
 * This module should be imported by modules that need to communicate with the Transaction Service
17
 * in local development mode (when running with local instance of Safe{Wallet}).
18
 */
19
@Module({
20
  imports: [CacheFirstDataSourceModule],
21
  providers: [
22
    {
23
      provide: NetworkService,
24
      useFactory: (
25
        client: FetchClient,
26
        loggingService: ILoggingService,
27
        configService: IConfigurationService,
28
      ): FetchNetworkService => {
UNCOV
29
        const txHeaders = getTxAuthHeaders(configService);
×
UNCOV
30
        return new FetchNetworkService(client, loggingService, txHeaders);
×
31
      },
32
      inject: [FetchClientToken, LoggingService, IConfigurationService],
33
    },
34
    CacheFirstDataSource,
35
    HttpErrorFactory,
36
  ],
37
  exports: [NetworkService, CacheFirstDataSource, HttpErrorFactory],
38
})
39
export class TxAuthNetworkModule {}
154✔
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