Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Extend transaction history with spent outputs and attributions
- Enhanced Discovery class to support fetching and storing spent transaction outputs (STXOs) along with UTXOs. - Implemented detailed attribution for transactions, distinguishing between received and sent transactions. - Updated internal functions to support the new functionality: - `coreDeriveTxosByOutput` now derives both UTXOs and STXOs. - `deriveUtxosAndBalanceByOutputFactory` and related memoized functions updated to handle STXOs. - Introduced `deriveAttributions` to compute transaction attributions. - `deriveHistoryByOutputFactory` and related functions updated to optionally include attributions. - Adjusted Discovery class methods to accommodate these changes: - `getUtxosAndBalance` now returns both UTXOs and STXOs. - `getHistory` now optionally includes transaction attributions. - Updated integration tests to validate the new functionality. - Bumped version to 1.1.0. Other changes: - Updated package dependencies. - Improved TypeDoc comments for enhanced clarity and accuracy.
- Loading branch information