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

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

Build:
DEFAULT BRANCH: main
Ran 09 Nov 2023 12:13PM UTC
Jobs 2
Files 502
Run time 1min
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

09 Nov 2023 12:12PM UTC coverage: 90.966% (-0.1%) from 91.066%
6811589784

push

github

web-flow
Increase TTL for not found token prices (#828)

**Motivation**
This PR reduces the amount of calls to our token prices provider by increasing the TTL for the addresses that can't be retrieved. So subsequent retries for these addresses are delayed more than the usual token price refreshes.

**Included changes**
- Adds a function to `ICacheService` to allow setting a TTL for a given cache key.
- Injects `CacheService` into `CoingeckoApi`, to make the latter able to register prices as not found.
- Adds logic to `PricesRepositiory` to mark a token price as not found, and therefore adds an extended TTL.

1352 of 1630 branches covered (0.0%)

Branch coverage included in aggregate %.

13 of 16 new or added lines in 4 files covered. (81.25%)

1 existing line in 1 file now uncovered.

5082 of 5443 relevant lines covered (93.37%)

164.17 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
96.88
-3.13% src/datasources/cache/__tests__/fake.cache.service.ts
1
83.33
-2.87% src/datasources/cache/redis.cache.service.ts
1
82.93
-5.96% src/domain/prices/prices.repository.ts

Uncovered Existing Lines

Lines Coverage ∆ File
1
77.78
-3.47% src/routes/transactions/mappers/common/transaction-info.mapper.ts
Jobs
ID Job ID Ran Files Coverage
1 run-test:e2e:cov - 6811589784.1 09 Nov 2023 12:13PM UTC 820
56.42
GitHub Action Run
2 run-test:cov - 6811589784.2 09 Nov 2023 12:19PM UTC 1000
91.51
GitHub Action Run
Source Files on build 6811589784
  • Tree
  • List 502
  • Changed 58
  • Source Changed 8
  • Coverage Changed 119
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #6811589784
  • 4bc84cf0 on github
  • Prev Build on main (#6786871755)
  • Next Build on main (#6812531637)
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