multiversx / mx-api-service

Unified REST API facade for providing data related to the MultiversX blockchain
https://api.multiversx.com
GNU General Public License v3.0
30 stars 48 forks source link

TPS Support #1254

Closed tanghel closed 3 months ago

tanghel commented 3 months ago

Proposed Changes

How to test

After enabling the tps feature, try out these endpoints:

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 43.75000% with 45 lines in your changes are missing coverage. Please review.

Project coverage is 46.54%. Comparing base (ecf9f53) to head (5c2d570). Report is 151 commits behind head on development.

:exclamation: Current head 5c2d570 differs from pull request most recent head b110131

Please upload reports for the commit b110131 to get more accurate results.

Files Patch % Lines
src/endpoints/tps/tps.service.ts 30.43% 14 Missing and 2 partials :warning:
src/utils/tps.utils.ts 27.77% 10 Missing and 3 partials :warning:
src/common/gateway/gateway.service.ts 0.00% 2 Missing and 1 partial :warning:
src/endpoints/tps/entities/tps.ts 25.00% 3 Missing :warning:
src/utils/cache.info.ts 0.00% 3 Missing :warning:
src/common/api-config/api.config.service.ts 0.00% 0 Missing and 2 partials :warning:
src/endpoints/tps/tps.controller.ts 84.61% 2 Missing :warning:
src/endpoints/endpoints.controllers.module.ts 75.00% 0 Missing and 1 partial :warning:
src/endpoints/tps/entities/tps.frequency.ts 66.66% 0 Missing and 1 partial :warning:
src/endpoints/tps/entities/tps.interval.ts 66.66% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #1254 +/- ## ================================================ - Coverage 63.99% 46.54% -17.46% ================================================ Files 576 608 +32 Lines 14895 16209 +1314 Branches 1525 1748 +223 ================================================ - Hits 9532 7544 -1988 - Misses 4021 6987 +2966 - Partials 1342 1678 +336 ``` | [Flag](https://app.codecov.io/gh/multiversx/mx-api-service/pull/1254/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=multiversx) | Coverage Δ | | |---|---|---| | [integrationtests](https://app.codecov.io/gh/multiversx/mx-api-service/pull/1254/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=multiversx) | `?` | | | [unittests](https://app.codecov.io/gh/multiversx/mx-api-service/pull/1254/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=multiversx) | `46.54% <43.75%> (+12.46%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=multiversx#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.