Rename RoundParameters.AllowedOutputTypes to AllowedOutputScriptTypes
MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Models/MultipartyTransactionTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Models/MultipartyTransactionTests.cs
@@ -305,7 +305,7 @@ public class MultipartyTransactionTests
[Fact]
public void OnlyAllowedOutputTypes()
{
- var legacyOnly = new ConstructionState(DefaultParameters with { AllowedOutputTypes = ImmutableSortedSet<ScriptType>.Empty.Add(ScriptType.P2PKH) });
+ var legacyOnly = new ConstructionState(DefaultParameters with { AllowedOutputScriptTypes = ImmutableSortedSet<ScriptType>.Empty.Add(ScriptType.P2PKH) });
var p2wpkh = BitcoinFactory.CreateScript();
ThrowsProtocolException(WabiSabiProtocolErrorCode.ScriptNotAllowed, () => legacyOnly.AddOutput(new TxOut(Money.Coins(1), p2wpkh)));
}

MODIFY
WalletWasabi/WabiSabi/Backend/Rounds/Round.cs
WalletWasabi/WabiSabi/Backend/Rounds/Round.cs
@@ -149,7 +149,7 @@ public class Round
Parameters.AllowedInputAmounts,
Parameters.AllowedInputScriptTypes,
Parameters.AllowedOutputAmounts,
- Parameters.AllowedOutputTypes,
+ Parameters.AllowedOutputScriptTypes,
Parameters.Network,
Parameters.MiningFeeRate.FeePerK,
Parameters.CoordinationFeeRate,

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

MODIFY
WalletWasabi/WabiSabi/Models/MultipartyTransaction/ConstructionState.cs
WalletWasabi/WabiSabi/Models/MultipartyTransaction/ConstructionState.cs
@@ -95,7 +95,7 @@ public record ConstructionState : MultipartyTransactionState
// Only one OP_RETURN is allowed per standard transaction, but this
// check is not implemented since there is no OP_RETURN ScriptType,
// which means no OP_RETURN outputs can be registered at all.
- if (!Parameters.AllowedOutputTypes.Any(x => output.ScriptPubKey.IsScriptType(x)))
+ if (!Parameters.AllowedOutputScriptTypes.Any(x => output.ScriptPubKey.IsScriptType(x)))
{
throw new WabiSabiProtocolException(WabiSabiProtocolErrorCode.ScriptNotAllowed);
}

Rename RoundParameters.AllowedOutputTypes to AllowedOutputScriptTypes