Remove unused JsonConverters
DELETE
WalletWasabi/JsonConverters/FeeRatePerKbJsonConverter.cs
-using NBitcoin;
-using Newtonsoft.Json;
-using System;
-
-namespace WalletWasabi.JsonConverters
-{
- public class FeeRatePerKbJsonConverter : JsonConverter
- {
- /// <inheritdoc />
- public override bool CanConvert(Type objectType)
- {
- return objectType == typeof(FeeRate);
- }
-
- /// <inheritdoc />
- public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
- {
- var value = ((long)reader.Value);
- return new FeeRate(new Money(value));
- }
-
- /// <inheritdoc />
- public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
- {
- writer.WriteValue(((FeeRate)value).FeePerK.Satoshi.ToString());
- }
- }
-}

DELETE
WalletWasabi/JsonConverters/FunnyBoolJsonConverter.cs
-using Newtonsoft.Json;
-using System;
-
-namespace WalletWasabi.JsonConverters
-{
- public class FunnyBoolJsonConverter : JsonConverter
- {
- /// <inheritdoc />
- public override bool CanConvert(Type objectType)
- {
- return objectType == typeof(bool);
- }
-
- /// <inheritdoc />
- public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
- {
- // check additional strings that are not checked by GetNetwork
- string canSpendUnconfirmedString = ((string)reader.Value).Trim();
- if ("true".Equals(canSpendUnconfirmedString, StringComparison.OrdinalIgnoreCase)
- || "yes".Equals(canSpendUnconfirmedString, StringComparison.OrdinalIgnoreCase)
- || "fuckyeah".Equals(canSpendUnconfirmedString, StringComparison.OrdinalIgnoreCase)
- || canSpendUnconfirmedString == "1")
- {
- return true;
- }
-
- if ("false".Equals(canSpendUnconfirmedString, StringComparison.OrdinalIgnoreCase)
- || "no".Equals(canSpendUnconfirmedString, StringComparison.OrdinalIgnoreCase)
- || "nah".Equals(canSpendUnconfirmedString, StringComparison.OrdinalIgnoreCase)
- || canSpendUnconfirmedString == "0")
- {
- return false;
- }
-
- return bool.Parse(canSpendUnconfirmedString);
- }
-
- /// <inheritdoc />
- public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
- {
- writer.WriteValue(((bool)value).ToString());
- }
- }
-}

DELETE
WalletWasabi/JsonConverters/GolombRiceFilterJsonConverter.cs
-using NBitcoin;
-using NBitcoin.DataEncoders;
-using Newtonsoft.Json;
-using System;
-using WalletWasabi.Helpers;
-
-namespace WalletWasabi.JsonConverters
-{
- public class GolombRiceFilterJsonConverter : JsonConverter
- {
- /// <inheritdoc />
- public override bool CanConvert(Type objectType)
- {
- return objectType == typeof(GolombRiceFilter);
- }
-
- /// <inheritdoc />
- public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
- {
- var value = Guard.Correct((string)reader.Value);
-
- var data = Encoders.Hex.DecodeData(value);
- return data.Length == 0 ? null : new GolombRiceFilter(data, 20, 1 << 20);
- }
-
- /// <inheritdoc />
- public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
- {
- writer.WriteValue(((GolombRiceFilter)value).ToString());
- }
- }
-}

DELETE
WalletWasabi/JsonConverters/ScriptJsonConverter.cs
-using NBitcoin;
-using Newtonsoft.Json;
-using System;
-
-namespace WalletWasabi.JsonConverters
-{
- public class ScriptJsonConverter : JsonConverter
- {
- /// <inheritdoc />
- public override bool CanConvert(Type objectType)
- {
- return objectType == typeof(Script);
- }
-
- /// <inheritdoc />
- public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
- {
- var serialized = (string)reader.Value;
-
- return new Script(serialized);
- }
-
- /// <inheritdoc />
- public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
- {
- var script = (Script)value;
-
- writer.WriteValue(script.ToString());
- }
- }
-}

Remove unused JsonConverters