• 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/domain/interfaces/locking-api.interface.ts
1
import { Page } from '@/domain/entities/page.entity';
2
import { LockingEvent } from '@/domain/locking/entities/locking-event.entity';
3
import { Rank } from '@/domain/locking/entities/rank.entity';
4

NEW
5
export const ILockingApi = Symbol('ILockingApi');
×
6

7
export interface ILockingApi {
8
  getLeaderboard(args: {
9
    safeAddress?: string;
10
    limit?: number;
11
    offset?: number;
12
  }): Promise<Page<Rank>>;
13

14
  getLockingHistory(args: {
15
    safeAddress?: string;
16
    limit?: number;
17
    offset?: number;
18
  }): Promise<Page<LockingEvent>>;
19
}
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