-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: filters icp ledger transactions based on range if provided (#5991)
# Motivation Users can select a date range before generating a report. We need to filter the results in the front end and stop fetching pages if we exceed the `from` date. The ledger canister returns transactions sorted by date, with the newest transaction listed first and the oldest transaction listed last. ``` Present Past (now) (t) 0-----------------------[TO]-----------------[FROM]--------------------------->t | | | | | | | | Current time Newer limit Older limit Earliest transaction - Transactions BETWEEN 'from' and 'to' are included - Transactions NEWER than 'from' are excluded - Transactions OLDER than 'to' are excluded ``` # Changes - Extends `getAllTransactionsFromAccountAndIdentity` to accept a date range for filtering results and to stop fetching. # Tests - Unit tests # Todos - [ ] Add entry to changelog (if necessary). Not necessary
- Loading branch information
Showing
3 changed files
with
295 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters