fn unique_deposit_outputs( history: Vec<Transaction>, script: &ScriptBuf, ) -> Vec<(Transaction, OutPoint)>
Each output in history that pays script, once, even when the backend lists its transaction more than once.
history
script