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

safe-global / safe-client-gateway / 7264075956
89%

Build:
DEFAULT BRANCH: main
Ran 19 Dec 2023 03:39PM UTC
Jobs 2
Files 522
Run time 58s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Dec 2023 03:37PM UTC coverage: 90.36% (-0.007%) from 90.367%
7264075956

push

github

web-flow
feat: add `getSafesByModule` and `clearSafesByModule` to `SafeRepository` (#954)

This adds the following functionality to the `SafeRepository`, as well as integrating within the `CacheHooksService`:

- `getSafesByModule` - fetches and caches endpoint result
- `clearSafesByModule` - clears existing cache of endpoint result

`clearSafesByModule` is called within the `CacheHooksService` whenever a `EventType.MODULE_TRANSACTION` event occurs.

Please note that the cache should also invalidate on an `EXECUTED_MULTISIG_TRANSACTION` event but as this is primarily focused on recovery (for the time being) this should not be an issue due to the specificity of recovery modules to individual Safes.

* feat: implement `IModulesRepository` + cache clearing

* fix: use static method

* fix: migrate to `SafeRepository`, add validation + remove network mock

* feat: add Safes by module

* fix: add `TODO` for future PR

* fix: update comment

1427 of 1702 branches covered (0.0%)

Branch coverage included in aggregate %.

1 of 6 new or added lines in 2 files covered. (16.67%)

1 existing line in 1 file now uncovered.

5350 of 5798 relevant lines covered (92.27%)

147.46 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
81.37
-4.19% src/domain/safe/safe.repository.ts

Uncovered Existing Lines

Lines Coverage ∆ File
1
24.32
0.0% src/routes/cache-hooks/cache-hooks.service.ts
Jobs
ID Job ID Ran Files Coverage
1 run-test:cov - 7264075956.1 19 Dec 2023 03:40PM UTC 1040
90.73
GitHub Action Run
2 run-test:e2e:cov - 7264075956.2 19 Dec 2023 03:39PM UTC 874
54.83
GitHub Action Run
Source Files on build 7264075956
  • Tree
  • List 522
  • Changed 179
  • Source Changed 5
  • Coverage Changed 131
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #7264075956
  • f55c0b5a on github
  • Prev Build on main (#7262135972)
  • Next Build on main (#7274288029)
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