Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(jellyfish-api-core): add net getNetTotals RPC #1843

Merged
merged 5 commits into from
Oct 27, 2022

Conversation

marktanrj
Copy link
Contributor

What this PR does / why we need it:

/kind feature

Which issue(s) does this PR fixes?:

Fixes part of #48

  • Implements getnettotals type for RPC.

@codeclimate
Copy link

codeclimate bot commented Oct 26, 2022

Code Climate has analyzed commit d3c5763 and detected 0 issues on this pull request.

View more on Code Climate.

@netlify
Copy link

netlify bot commented Oct 26, 2022

Deploy Preview for jellyfishsdk ready!

Name Link
🔨 Latest commit d3c5763
🔍 Latest deploy log https://app.netlify.com/sites/jellyfishsdk/deploys/635a52f7bd70170008164791
😎 Deploy Preview https://deploy-preview-1843--jellyfishsdk.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@codecov
Copy link

codecov bot commented Oct 26, 2022

Codecov Report

Base: 93.30% // Head: 93.65% // Increases project coverage by +0.34% 🎉

Coverage data is based on head (d3c5763) compared to base (406808a).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1843      +/-   ##
==========================================
+ Coverage   93.30%   93.65%   +0.34%     
==========================================
  Files         361      361              
  Lines       10445    10447       +2     
  Branches     1308     1308              
==========================================
+ Hits         9746     9784      +38     
+ Misses        666      634      -32     
+ Partials       33       29       -4     
Impacted Files Coverage Δ
packages/jellyfish-api-core/src/category/net.ts 100.00% <100.00%> (ø)
...kages/playground-api-client/src/apis/Playground.ts 50.00% <0.00%> (-50.00%) ⬇️
...ground-api/src/controllers/PlaygroundController.ts 71.42% <0.00%> (-28.58%) ⬇️
...pps/whale-api/src/module.api/masternode.service.ts 66.66% <0.00%> (-27.28%) ⬇️
...ale-api/src/module.indexer/model/dftx/pool.swap.ts 66.03% <0.00%> (-24.53%) ⬇️
apps/whale-api/src/module.model/pool.swap.ts 84.61% <0.00%> (-15.39%) ⬇️
...whale-api/src/module.model/pool.swap.aggregated.ts 73.33% <0.00%> (-13.34%) ⬇️
.../whale-api/src/module.api/masternode.controller.ts 93.33% <0.00%> (-6.67%) ⬇️
...whale-api/src/module.indexer/rpc.block.provider.ts 89.28% <0.00%> (-4.77%) ⬇️
...ages/jellyfish-api-core/src/category/blockchain.ts 95.34% <0.00%> (-4.66%) ⬇️
... and 18 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link

github-actions bot commented Oct 26, 2022

Docker build preview for jellyfish/apps is ready!

Built with commit f21aaab

  • ghcr.io/jellyfishsdk/legacy-api:pr-1843
  • ghcr.io/jellyfishsdk/ocean-api:pr-1843
  • ghcr.io/jellyfishsdk/playground-api:pr-1843
  • ghcr.io/jellyfishsdk/status-api:pr-1843
  • ghcr.io/jellyfishsdk/whale-api:pr-1843

You can also get an immutable image with the commit hash

  • ghcr.io/jellyfishsdk/legacy-api:f21aaab74cad1dc8d64ce94b12fa33ae6890e692
  • ghcr.io/jellyfishsdk/ocean-api:f21aaab74cad1dc8d64ce94b12fa33ae6890e692
  • ghcr.io/jellyfishsdk/playground-api:f21aaab74cad1dc8d64ce94b12fa33ae6890e692
  • ghcr.io/jellyfishsdk/status-api:f21aaab74cad1dc8d64ce94b12fa33ae6890e692
  • ghcr.io/jellyfishsdk/whale-api:f21aaab74cad1dc8d64ce94b12fa33ae6890e692

Copy link
Member

@fuxingloh fuxingloh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with 1 request

marktanrj and others added 2 commits October 27, 2022 10:54
…s.test.ts

Co-authored-by: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com>
Signed-off-by: Mark Tan <35588098+marktanrj@users.noreply.github.com>
@fuxingloh fuxingloh merged commit cfde140 into main Oct 27, 2022
@fuxingloh fuxingloh deleted the rpc-net-getnettotals branch October 27, 2022 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants