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

safe-global / safe-client-gateway / 8114475824

01 Mar 2024 04:50PM UTC coverage: 93.683% (-0.2%) from 93.922%
8114475824

push

github

web-flow
Scaffold locking API data source (#1227)

This scaffolds a `ILockingApi`-based service, including functionality for leaderboard and locking history retrieval.

1687 of 2017 branches covered (83.64%)

Branch coverage included in aggregate %.

0 of 12 new or added lines in 4 files covered. (0.0%)

3 existing lines in 1 file now uncovered.

6203 of 6405 relevant lines covered (96.85%)

351.92 hits per line

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

0.0
/src/datasources/locking-api/locking-api.service.ts
1
import { Page } from '@/domain/entities/page.entity';
2
import { ILockingApi } from '@/domain/interfaces/locking-api.interface';
3
import { LockingEvent } from '@/domain/locking/entities/locking-event.entity';
4
import { Rank } from '@/domain/locking/entities/rank.entity';
5

NEW
6
export class LockingApi implements ILockingApi {
×
7
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
8
  async getLeaderboard(args: {
9
    safeAddress?: string;
10
    limit?: number;
11
    offset?: number;
12
  }): Promise<Page<Rank>> {
NEW
13
    throw new Error('Method not implemented.');
×
14
  }
15

16
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
17
  async getLockingHistory(args: {
18
    safeAddress?: string;
19
    limit?: number;
20
    offset?: number;
21
  }): Promise<Page<LockingEvent>> {
NEW
22
    throw new Error('Method not implemented.');
×
23
  }
24
}
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