Convert to file-scoped namespaces.
MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Client/KeyChainTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Client/KeyChainTests.cs
using NBitcoin;
using System.Linq;
-using System.Threading.Tasks;
using WalletWasabi.Blockchain.Keys;
using WalletWasabi.Crypto;
using WalletWasabi.Tests.Helpers;
using WalletWasabi.WabiSabi.Client;
-using WalletWasabi.Wallets;
using Xunit;
-namespace WalletWasabi.Tests.UnitTests.WabiSabi.Client
-{
+namespace WalletWasabi.Tests.UnitTests.WabiSabi.Client;
+
public class KeyChainTests
{
[Fact]
@@ -32,4 +30,3 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Client
Assert.True(signedTx.HasWitness);
}
}
-}
\ No newline at end of file

MODIFY
WalletWasabi/WabiSabi/Client/IDestinationProvider.cs
WalletWasabi/WabiSabi/Client/IDestinationProvider.cs
using NBitcoin;
using System.Collections.Generic;
-namespace WalletWasabi.WabiSabi.Client
-{
+namespace WalletWasabi.WabiSabi.Client;
+
public interface IDestinationProvider
{
IEnumerable<IDestination> GetNextDestinations(int count);
}
-}

MODIFY
WalletWasabi/WabiSabi/Client/IKeyChain.cs
WalletWasabi/WabiSabi/Client/IKeyChain.cs
using NBitcoin;
using WalletWasabi.Crypto;
-namespace WalletWasabi.WabiSabi.Client
-{
+namespace WalletWasabi.WabiSabi.Client;
+
public interface IKeyChain
{
OwnershipProof GetOwnershipProof(IDestination destination, CoinJoinInputCommitmentData commitedData);
Transaction Sign(Transaction transaction, Coin coin, OwnershipProof ownershipProof);
}
-}

MODIFY
WalletWasabi/WabiSabi/Client/InternalDestinationProvider.cs
WalletWasabi/WabiSabi/Client/InternalDestinationProvider.cs
@@ -3,8 +3,8 @@ using System.Linq;
using System.Collections.Generic;
using WalletWasabi.Blockchain.Keys;
-namespace WalletWasabi.WabiSabi.Client
-{
+namespace WalletWasabi.WabiSabi.Client;
+
public class InternalDestinationProvider : IDestinationProvider
{
public InternalDestinationProvider(KeyManager keyManager)
@@ -21,4 +21,3 @@ namespace WalletWasabi.WabiSabi.Client
return KeyManager.GetKeys(x => x.IsInternal && x.KeyState == KeyState.Locked).Select(x => x.PubKey.WitHash);
}
}
-}

MODIFY
WalletWasabi/WabiSabi/Client/KeyChain.cs
WalletWasabi/WabiSabi/Client/KeyChain.cs
@@ -3,8 +3,8 @@ using System.Linq;
using WalletWasabi.Blockchain.Keys;
using WalletWasabi.Crypto;
-namespace WalletWasabi.WabiSabi.Client
-{
+namespace WalletWasabi.WabiSabi.Client;
+
public class KeyChain : IKeyChain
{
public KeyChain(KeyManager keyManager, string passPhrase = "")
@@ -72,4 +72,3 @@ namespace WalletWasabi.WabiSabi.Client
return secret;
}
}
-}

Convert to file-scoped namespaces.