Rename RoundParameters.AllowedInputTypes to AllowedInputScriptTypes
MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Models/MultipartyTransactionTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Models/MultipartyTransactionTests.cs
@@ -255,7 +255,7 @@ public class MultipartyTransactionTests
[Fact]
public void OnlyAllowedInputTypes()
{
- var legacyOnly = new ConstructionState(DefaultParameters with { AllowedInputTypes = ImmutableSortedSet.Create<ScriptType>(ScriptType.P2PKH) });
+ var legacyOnly = new ConstructionState(DefaultParameters with { AllowedInputScriptTypes = ImmutableSortedSet.Create<ScriptType>(ScriptType.P2PKH) });
(var coin, var ownershipProof) = WabiSabiFactory.CreateCoinWithOwnershipProof();
ThrowsProtocolException(WabiSabiProtocolErrorCode.ScriptNotAllowed, () => legacyOnly.AddInput(coin, ownershipProof, commitmentData));
}

MODIFY
WalletWasabi/WabiSabi/Backend/Rounds/Round.cs
WalletWasabi/WabiSabi/Backend/Rounds/Round.cs
@@ -147,7 +147,7 @@ public class Round
OutputRegistrationTimeFrame.Duration,
TransactionSigningTimeFrame.Duration,
Parameters.AllowedInputAmounts,
- Parameters.AllowedInputTypes,
+ Parameters.AllowedInputScriptTypes,
Parameters.AllowedOutputAmounts,
Parameters.AllowedOutputTypes,
Parameters.Network,

MODIFY
WalletWasabi/WabiSabi/Backend/Rounds/RoundParameters.cs
WalletWasabi/WabiSabi/Backend/Rounds/RoundParameters.cs
@@ -60,7 +60,7 @@ public record RoundParameters
public TimeSpan TransactionSigningTimeout { get; init; }
public TimeSpan BlameInputRegistrationTimeout { get; init; }
- public ImmutableSortedSet<ScriptType> AllowedInputTypes { get; init; } = OnlyP2WPKH;
+ public ImmutableSortedSet<ScriptType> AllowedInputScriptTypes { get; init; } = OnlyP2WPKH;
public ImmutableSortedSet<ScriptType> AllowedOutputTypes { get; init; } = OnlyP2WPKH;
public Money MinAmountCredentialValue => AllowedInputAmounts.Min;

MODIFY
WalletWasabi/WabiSabi/Client/CoinJoinClient.cs
WalletWasabi/WabiSabi/Client/CoinJoinClient.cs
@@ -603,7 +603,7 @@ public class CoinJoinClient
var filteredCoins = coins
.Where(x => parameters.AllowedInputAmounts.Contains(x.Amount))
- .Where(x => parameters.AllowedInputTypes.Any(t => x.ScriptPubKey.IsScriptType(t)))
+ .Where(x => parameters.AllowedInputScriptTypes.Any(t => x.ScriptPubKey.IsScriptType(t)))
.Where(x => x.EffectiveValue(parameters.MiningFeeRate) > Money.Zero)
.ToArray();

MODIFY
WalletWasabi/WabiSabi/Models/MultipartyTransaction/ConstructionState.cs
WalletWasabi/WabiSabi/Models/MultipartyTransaction/ConstructionState.cs
@@ -24,7 +24,7 @@ public record ConstructionState : MultipartyTransactionState
throw new WabiSabiProtocolException(WabiSabiProtocolErrorCode.NonStandardInput);
}
- if (!Parameters.AllowedInputTypes.Any(x => prevout.ScriptPubKey.IsScriptType(x)))
+ if (!Parameters.AllowedInputScriptTypes.Any(x => prevout.ScriptPubKey.IsScriptType(x)))
{
throw new WabiSabiProtocolException(WabiSabiProtocolErrorCode.ScriptNotAllowed);
}

Rename RoundParameters.AllowedInputTypes to AllowedInputScriptTypes