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

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

Build:
DEFAULT BRANCH: main
Ran 15 Apr 2025 10:24AM UTC
Jobs 1
Files 846
Run time 2min
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

15 Apr 2025 10:19AM UTC coverage: 90.428% (+0.03%) from 90.399%
14467029111

push

github

web-flow
feat: map batched `TokenInfo` into `tokenInfoIndex` (#2537)

Batched transfers are mapped client-side from the `dataDecoded`. As there is no associated `TokenInfo` for each transfer, it is not possible to parse the `value`, display the `name`, etc.

This adds a new `TransactionData['tokenInfoIndex']` property (similar to `addressInfoIndex`) which is populated with the `TokenInfo` of transferred assets.

The `dataDecoded` of a transfer is traversed, parsing the relevant token addresses interacted with and subsequently fetched for mapping into the aforementioned.

Note: this is preliminarily limited to 100 tokens but can be set dynamically according to a new `MAX_TOKEN_INFO` env. var.

- Add `mapping.transactionData.maxTokenInfoIndexSize` configuration.
- Add new `TransactionData['tokenInfoIndex']` property.
- Tweak types for parsing ERC-20 `dataDecoded`.
- Add new method to map batched `TokenInfo`.
- Add/update tests accordingly.

3240 of 3898 branches covered (83.12%)

Branch coverage included in aggregate %.

45 of 45 new or added lines in 4 files covered. (100.0%)

11091 of 11950 relevant lines covered (92.81%)

563.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-test:cov - 14467029111.1 15 Apr 2025 10:24AM UTC 1691
91.41
GitHub Action Run
Source Files on build 14467029111
  • Tree
  • List 846
  • Changed 229
  • Source Changed 9
  • Coverage Changed 229
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #14467029111
  • c4b43583 on github
  • Prev Build on main (#14465486627)
  • Next Build on main (#14467935232)
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

© 2025 Coveralls, Inc