hashgraph / hedera-mirror-node

Hedera Mirror Node archives data from consensus nodes and serves it via an API
Apache License 2.0
117 stars 110 forks source link

feat: Extends getContractLogs endpoint to support querying by transaction hash #8649

Open georgi-l95 opened 4 days ago

georgi-l95 commented 4 days ago

Description: This PR extends api/v1/contracts/results/logs to support querying by transaction hash. Because synthetic transactions (HTS transactions) does not exist anywhere else, but in contract.log table, it's imposibble to access them using ethereum tools, as they are only aware of this transaction by it's hash. Therefore allowing searching by transaction hash will unblock tools.

Related issue(s):

Fixes #

Notes for reviewer:

Checklist

sonarcloud[bot] commented 4 days ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

codecov[bot] commented 4 days ago

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.

Project coverage is 92.00%. Comparing base (106300c) to head (b8585ce). Report is 1 commits behind head on main.

Files Patch % Lines
...dera-mirror-rest/controllers/contractController.js 0.00% 4 Missing and 1 partial :warning:
hedera-mirror-rest/utils.js 0.00% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #8649 +/- ## ============================================ - Coverage 92.02% 92.00% -0.03% Complexity 7529 7529 ============================================ Files 920 920 Lines 30066 30074 +8 Branches 3659 3662 +3 ============================================ Hits 27669 27669 - Misses 1568 1575 +7 - Partials 829 830 +1 ```

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