juno
juno copied to clipboard
Refactor rpc handlers and tests
Fixes #1750
All handlers and related helper methods was moved from rpc/handlers
to the corresponding "category" file, e.g. block, transaction, trace...
Handlers tests were refactor the same way.
I introduced new files in rpc/
folder:
-
chain.go
- withChainId
handler -
class.go
-Class*
handlers -
contract.go
-Nonce
&StorageAt
-
estimate_fee.go
-
rpc/helpers.go
which contains helper functionality used in more than one "category".
Codecov Report
Attention: Patch coverage is 59.87762%
with 459 lines
in your changes are missing coverage. Please review.
Project coverage is 74.53%. Comparing base (
e43b0f3
) to head (19169ee
).
Additional details and impacted files
@@ Coverage Diff @@
## main #1768 +/- ##
==========================================
- Coverage 74.81% 74.53% -0.29%
==========================================
Files 90 96 +6
Lines 8177 8177
==========================================
- Hits 6118 6095 -23
- Misses 1543 1565 +22
- Partials 516 517 +1
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.