-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): implement
balance/
endpoint (#388)
* Calculate balance of an address * Impl balance calc for ledger updates * Cleanup * Remove internal tagging for Address enum * Improve address balance query * Slight refactor * Match signature locked outputs * Fix referencing amount in document * Fix balance query * Format * Nits * Fix syntax * Add 'address' and 'is_trivial_unlock' to output collection * Move balances calculation to outputs collection * Create partial index * Fix refactor * Include 'ledger_index' to balances api response * Address comments * Remove pub(crate) visibility if not used from collections * Refactor newly added 'OutputDocument' fields into 'OutputDetails' struct * Update balance query * Address comments
- Loading branch information
Showing
5 changed files
with
146 additions
and
11 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
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