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

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

Build:
DEFAULT BRANCH: main
Ran 22 Apr 2024 10:24AM UTC
Jobs 2
Files 617
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

22 Apr 2024 10:22AM UTC coverage: 92.637% (-0.3%) from 92.966%
8782448346

push

github

web-flow
Add SwapOrderHelper (#1434)

The functionality that was present in the `SwapOrderMapper` can be shared with other components (outside of the mapping module for a collection of transactions).

This functionality was then extracted to a `SwapOrderHelper` which contains the following functionality:
- `findSwapOrder` – no changes. Given a transaction, extract the Swap Order from it if available (supports MultiSend).
- `getOrder` – given an Order ID, attempts to retrieve its data alongside the buy and sell token information.
- `getOrderExplorerUrl` – no changes. Given an `Order` object, builds the Swap Order explorer URL.

This helper is available via the `SwapOrderHelperModule`.

Changes:

- Adds a `SwapOrderHelper`.
- Moves functionality from `SwapOrderMapper` and `MultisigTransactionInfoMapper` to the `SwapOrderHelper`.
- Extracts the `TokenInfo` schema in order to be used by other components.

---------

Co-authored-by: Aaron Cook <aaron@safe.global>

1925 of 2327 branches covered (82.72%)

Branch coverage included in aggregate %.

44 of 60 new or added lines in 7 files covered. (73.33%)

4 existing lines in 1 file now uncovered.

6869 of 7166 relevant lines covered (95.86%)

313.96 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
40.0
-48.1% src/routes/transactions/mappers/common/swap-order.mapper.ts
6
57.14
src/routes/transactions/entities/swaps/token-info.entity.ts
9
63.04
src/routes/transactions/helpers/swap-order.helper.ts

Uncovered Existing Lines

Lines Coverage ∆ File
4
40.0
-48.1% src/routes/transactions/mappers/common/swap-order.mapper.ts
Jobs
ID Job ID Ran Files Coverage
1 run-test:cov - 8782448346.1 22 Apr 2024 10:26AM UTC 1223
93.45
GitHub Action Run
2 run-test:e2e:cov - 8782448346.2 22 Apr 2024 10:24AM UTC 1020
51.05
GitHub Action Run
Source Files on build 8782448346
  • Tree
  • List 617
  • Changed 68
  • Source Changed 4
  • Coverage Changed 153
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #8782448346
  • 8f93ef19 on github
  • Prev Build on main (#8780527762)
  • Next Build on main (#8783016962)
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