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 multi-txtype, multi-address query support for accounthistorycount RPC #1943

Merged
merged 14 commits into from
Jan 20, 2023

Conversation

helloscoopa
Copy link
Contributor

@helloscoopa helloscoopa commented Dec 23, 2022

What this PR does / why we need it:

As stated in the title, this PR adds support to accounthistorycount RPC to query with multiple txtypes/addresses.

We need this because with the current implementation we're only allowed to fetch one address and/or one tx type at once thus needing to make multiple RPC calls if we need to query history count of multple txtypes/addresses.

Refer: Defich/ain PR

@netlify
Copy link

netlify bot commented Dec 23, 2022

Deploy Preview for jellyfishsdk ready!

Name Link
🔨 Latest commit e45bcc3
🔍 Latest deploy log https://app.netlify.com/sites/jellyfishsdk/deploys/63ca06a375af9f00090c8135
😎 Deploy Preview https://deploy-preview-1943--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.

@codeclimate
Copy link

codeclimate bot commented Dec 23, 2022

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

View more on Code Climate.

@codecov
Copy link

codecov bot commented Dec 23, 2022

Codecov Report

Base: 59.81% // Head: 92.52% // Increases project coverage by +32.70% 🎉

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

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1943       +/-   ##
===========================================
+ Coverage   59.81%   92.52%   +32.70%     
===========================================
  Files         290      357       +67     
  Lines        9331    10589     +1258     
  Branches     1251     1349       +98     
===========================================
+ Hits         5581     9797     +4216     
+ Misses       3528      754     -2774     
+ Partials      222       38      -184     
Impacted Files Coverage Δ
...ackages/jellyfish-api-core/src/category/account.ts 100.00% <100.00%> (+23.52%) ⬆️
...atus-api/src/controllers/OracleStatusController.ts 19.56% <0.00%> (-78.27%) ⬇️
packages/whale-api-client/src/api/oracles.ts 22.22% <0.00%> (-77.78%) ⬇️
packages/whale-api-client/src/api/blocks.ts 50.00% <0.00%> (-50.00%) ⬇️
...ckages/jellyfish-network/src/TransactionSkipped.ts 37.50% <0.00%> (-50.00%) ⬇️
...nsaction-builder/src/txn/txn_builder_masternode.ts 33.33% <0.00%> (-46.67%) ⬇️
apps/whale-api/src/module.api/oracle.controller.ts 44.00% <0.00%> (-44.00%) ⬇️
packages/jellyfish-testing/src/poolpair.ts 80.95% <0.00%> (-19.05%) ⬇️
...llyfish-transaction-builder/src/txn/txn_builder.ts 89.28% <0.00%> (-8.93%) ⬇️
...t-core/src/saga/AddressParser/UtxoAddressParser.ts 91.66% <0.00%> (-8.34%) ⬇️
... and 280 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 Dec 23, 2022

Docker build preview for jellyfish/apps is ready!

Built with commit db9e3d0

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

You can also get an immutable image with the commit hash

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

@delphk
Copy link
Contributor

delphk commented Jan 3, 2023

need to also update docs

infinia-yzl
infinia-yzl previously approved these changes Jan 3, 2023
marktanrj
marktanrj previously approved these changes Jan 4, 2023
@helloscoopa helloscoopa dismissed stale reviews from marktanrj and infinia-yzl via fe75304 January 5, 2023 08:14
…storycount

Signed-off-by: Dilshan Madushanka <helloscoopz@gmail.com>
…storycount

Signed-off-by: Dilshan Madushanka <helloscoopz@gmail.com>
@fuxingloh fuxingloh requested review from delphk, marktanrj, infinia-yzl and fuxingloh and removed request for marktanrj January 19, 2023 10:24
infinia-yzl
infinia-yzl previously approved these changes Jan 19, 2023
Copy link
Contributor

@infinia-yzl infinia-yzl left a comment

Choose a reason for hiding this comment

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

nit, otherwise LGTM

packages/jellyfish-api-core/src/category/account.ts Outdated Show resolved Hide resolved
delphk
delphk previously approved these changes Jan 19, 2023
@helloscoopa helloscoopa dismissed stale reviews from delphk and infinia-yzl via 8b12991 January 19, 2023 10:46
@fuxingloh fuxingloh merged commit 4c8f2ba into main Jan 20, 2023
@fuxingloh fuxingloh deleted the dilshan/add-more-filter-options-to-accounthistorycount branch January 20, 2023 03:33
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.

5 participants