celestia-node
celestia-node copied to clipboard
feat(rpc): Add client wrapper
Based on #1175 Closes #1185 Closes #1186
Also adds the basis for the new rpc tests:
- Making sure all methods we expose over the API actually exist
- Making sure all the types we return can be marshalled in and out of json
- RPC specific special behaviors, like authentication
Codecov Report
Merging #1195 (b7ba257) into main (21aed31) will decrease coverage by
5.20%
. The diff coverage is64.79%
.
@@ Coverage Diff @@
## main #1195 +/- ##
==========================================
- Coverage 60.25% 55.04% -5.21%
==========================================
Files 161 163 +2
Lines 9736 9575 -161
==========================================
- Hits 5866 5271 -595
- Misses 3337 3777 +440
+ Partials 533 527 -6
Impacted Files | Coverage Δ | |
---|---|---|
api/gateway/availability.go | 0.00% <0.00%> (ø) |
|
api/gateway/config.go | 0.00% <0.00%> (ø) |
|
api/gateway/das.go | 0.00% <ø> (ø) |
|
api/gateway/endpoints.go | 0.00% <ø> (ø) |
|
api/gateway/handler.go | 0.00% <0.00%> (ø) |
|
api/gateway/header.go | 0.00% <ø> (ø) |
|
api/gateway/middleware.go | 29.41% <0.00%> (ø) |
|
api/gateway/server.go | 68.88% <ø> (ø) |
|
api/gateway/share.go | 0.00% <ø> (ø) |
|
api/gateway/state.go | 0.00% <ø> (ø) |
|
... and 102 more |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.