Raname to ReissueCredential
MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Client/ArenaClientTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Client/ArenaClientTests.cs
@@ -91,8 +91,8 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Client
var bobArenaClient = new ArenaClient(round.AmountCredentialIssuerParameters, round.WeightCredentialIssuerParameters, amountCredentials, weightCredentials, coordinator, new InsecureRandom());
- await bobArenaClient.ReissuanceAsync(round.Id, reissuanceAmounts[0], amountCredentials.Valuable);
- await bobArenaClient.ReissuanceAsync(round.Id, reissuanceAmounts[1], amountCredentials.Valuable);
+ await bobArenaClient.ReissueCredentialAsync(round.Id, reissuanceAmounts[0], amountCredentials.Valuable);
+ await bobArenaClient.ReissueCredentialAsync(round.Id, reissuanceAmounts[1], amountCredentials.Valuable);
var cred1 = amountCredentials.Valuable.First(ac => ac.Amount.ToMoney().Satoshi == reissuanceAmounts[0].Satoshi);
var cred2 = amountCredentials.Valuable.First(ac => ac.Amount.ToMoney().Satoshi == reissuanceAmounts[1].Satoshi);

MODIFY
WalletWasabi/WabiSabi/Backend/PostRequests/ArenaRequestHandler.cs
WalletWasabi/WabiSabi/Backend/PostRequests/ArenaRequestHandler.cs
@@ -96,7 +96,7 @@ namespace WalletWasabi.WabiSabi.Backend.PostRequests
}
}
- public async Task<ReissuanceResponse> ReissuanceAsync(ReissuanceRequest request)
+ public async Task<ReissueCredentialResponse> ReissueCredentialAsync(ReissueCredentialRequest request)
{
DisposeGuard();
using (RunningTasks.RememberWith(RunningRequests))

MODIFY
WalletWasabi/WabiSabi/Backend/PostRequests/IArenaRequestHandler.cs
WalletWasabi/WabiSabi/Backend/PostRequests/IArenaRequestHandler.cs
@@ -15,6 +15,6 @@ namespace WalletWasabi.WabiSabi.Backend.PostRequests
Task SignTransactionAsync(TransactionSignaturesRequest request);
- Task<ReissuanceResponse> ReissuanceAsync(ReissuanceRequest request);
+ Task<ReissueCredentialResponse> ReissueCredentialAsync(ReissueCredentialRequest request);
}
}

MODIFY
WalletWasabi/WabiSabi/Backend/Rounds/Arena.cs
WalletWasabi/WabiSabi/Backend/Rounds/Arena.cs
@@ -457,7 +457,7 @@ namespace WalletWasabi.WabiSabi.Backend.Rounds
}
}
- public async Task<ReissuanceResponse> ReissuanceAsync(ReissuanceRequest request)
+ public async Task<ReissueCredentialResponse> ReissuanceAsync(ReissueCredentialRequest request)
{
using (await AsyncLock.LockAsync().ConfigureAwait(false))
{

MODIFY
WalletWasabi/WabiSabi/Client/ArenaClient.cs
WalletWasabi/WabiSabi/Client/ArenaClient.cs
@@ -114,7 +114,7 @@ namespace WalletWasabi.WabiSabi.Client
WeightCredentialClient.HandleResponse(outputRegistrationResponse.WeightCredentials, realWeightCredentialResponseValidation);
}
- public async Task ReissuanceAsync(Guid roundId, long value, IEnumerable<Credential> amountCredentialsToPresent)
+ public async Task ReissueCredentialAsync(Guid roundId, long value, IEnumerable<Credential> amountCredentialsToPresent)
{
Guard.InRange(nameof(amountCredentialsToPresent), amountCredentialsToPresent, 0, AmountCredentialClient.NumberOfCredentials);
@@ -129,8 +129,8 @@ namespace WalletWasabi.WabiSabi.Client
var zeroAmountCredentialRequestData = AmountCredentialClient.CreateRequestForZeroAmount();
- var reissuanceResponse = await RequestHandler.ReissuanceAsync(
- new ReissuanceRequest(
+ var reissuanceResponse = await RequestHandler.ReissueCredentialAsync(
+ new ReissueCredentialRequest(
roundId,
realAmountCredentialRequest,
zeroAmountCredentialRequestData.CredentialsRequest)).ConfigureAwait(false);

RENAME
WalletWasabi/WabiSabi/Models/ReissuanceRequest.cs
WalletWasabi/WabiSabi/Models/ReissueCredentialRequest.cs
@@ -3,7 +3,7 @@ using WalletWasabi.WabiSabi.Crypto.CredentialRequesting;
namespace WalletWasabi.WabiSabi.Models
{
- public record ReissuanceRequest(
+ public record ReissueCredentialRequest(
Guid RoundId,
RealCredentialsRequest RealAmountCredentialRequests,
ZeroCredentialsRequest ZeroAmountCredentialRequests

RENAME
WalletWasabi/WabiSabi/Models/ReissuanceResponse.cs
WalletWasabi/WabiSabi/Models/ReissueCredentialResponse.cs
@@ -7,7 +7,7 @@ using WalletWasabi.WabiSabi.Crypto.CredentialRequesting;
namespace WalletWasabi.WabiSabi.Models
{
- public record ReissuanceResponse(
+ public record ReissueCredentialResponse(
CredentialsResponse RealAmountCredentials,
CredentialsResponse ZeroAmountCredentials
);

Raname to ReissueCredential