Introduce PrivacyLevel enum
MODIFY
WalletWasabi.Fluent/Helpers/CoinHelpers.cs
WalletWasabi.Fluent/Helpers/CoinHelpers.cs
using WalletWasabi.Blockchain.Analysis.Clustering;
using WalletWasabi.Blockchain.TransactionOutputs;
using WalletWasabi.Models;
+using WalletWasabi.Fluent.Models;
+using WalletWasabi.Wallets;
namespace WalletWasabi.Fluent.Helpers;
@@ -32,4 +34,21 @@ public static class CoinHelpers
}
public static int GetConfirmations(this SmartCoin coin) => coin.Height.Type == HeightType.Chain ? (int)Services.BitcoinStore.SmartHeaderChain.TipHeight - coin.Height.Value + 1 : 0;
+
+ public static PrivacyLevel GetPrivacyLevel(this SmartCoin coin, Wallet wallet)
+ {
+ var anonScoreTarget = wallet.AnonScoreTarget;
+
+ if (coin.IsPrivate(anonScoreTarget))
+ {
+ return PrivacyLevel.Private;
+ }
+
+ if (coin.IsSemiPrivate())
+ {
+ return PrivacyLevel.SemiPrivate;
+ }
+
+ return PrivacyLevel.NonPrivate;
+ }
}

ADD
WalletWasabi.Fluent/Models/PrivacyLevel.cs
+namespace WalletWasabi.Fluent.Models;
+
+public enum PrivacyLevel
+{
+ Private = 1,
+ SemiPrivate = 2,
+ NonPrivate = 3,
+}

Introduce PrivacyLevel enum