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

Add pagination support for listaccounthistory #1643

Merged
merged 15 commits into from
Jan 14, 2023

Conversation

shohamc1
Copy link
Contributor

@shohamc1 shohamc1 commented Dec 9, 2022

What kind of PR is this?:

/kind feature

What this PR does / why we need it:

  • Adds pagination support for listaccounthistory
  • Adds a txtypes argument to allow filtering multiple CustomTxTypes
  • Allow owner to be an array, returns results for all addresses in the array

@Jouzo Jouzo added the v3.2.2 label Dec 28, 2022
@prasannavl prasannavl added v/3.2.2 and removed v3.2.2 labels Jan 13, 2023
@shohamc1
Copy link
Contributor Author

Ignore Jellyfish failure - flaky test.

@Bushstar Bushstar merged commit dfd27c2 into master Jan 14, 2023
@Bushstar Bushstar deleted the listaccounthistory-pagination branch January 14, 2023 07:10
fuxingloh pushed a commit to BirthdayResearch/jellyfishsdk that referenced this pull request Jan 19, 2023
…accounthistory` RPC (#1923)

<!--  Thanks for sending a pull request! -->

#### What this PR does / why we need it:

**Requirement:** Upcoming consortium transaction history page on
[defiscan.live](https://defiscan.live/) requires a way to paginate the
list of transactions among consortium members.

**Issue:** Currently we only have `blockHeight` and `depth` based
pagination/cursor which we're unable to use to address the requirement
as it only cursor through blocks but not transactions., More info
[here](#1868 (comment)).

**Solution:** 
- Add index based pagination support.
- Add multi transaction types filter support.
- Add multi address filter support.

Huge thanks to @shohamc1 for supporting me on defich/ain side, refer
[defich/ain PR](DeFiCh/ain#1643)

Signed-off-by: Dilshan Madushanka <[email protected]>
Co-authored-by: Isaac Yong <[email protected]>
Co-authored-by: Kven Ho <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants