diff --git a/src/Neo.Compiler.CSharp/CompilationEngine/CompilationException.cs b/src/Neo.Compiler.CSharp/Diagnostic/CompilationException.cs similarity index 100% rename from src/Neo.Compiler.CSharp/CompilationEngine/CompilationException.cs rename to src/Neo.Compiler.CSharp/Diagnostic/CompilationException.cs diff --git a/src/Neo.SmartContract.Testing/Extensions/ArtifactExtensions.cs b/src/Neo.SmartContract.Testing/Extensions/ArtifactExtensions.cs index da5383c4b..19cd109d0 100644 --- a/src/Neo.SmartContract.Testing/Extensions/ArtifactExtensions.cs +++ b/src/Neo.SmartContract.Testing/Extensions/ArtifactExtensions.cs @@ -63,7 +63,7 @@ public static string GetArtifactsSource(this ContractManifest manifest, string? sourceCode.WriteLine(""); sourceCode.WriteLine("namespace Neo.SmartContract.Testing;"); sourceCode.WriteLine(""); - sourceCode.WriteLine($"public abstract class {name} : " + string.Join(", ", inheritance) + ", IContractInfo"); + sourceCode.WriteLine($"public abstract class {name}({typeof(SmartContractInitialize).FullName} initialize) : " + FormatInheritance(inheritance, "initialize") + ", IContractInfo"); sourceCode.WriteLine("{"); // Write compiled data @@ -172,14 +172,6 @@ public static string GetArtifactsSource(this ContractManifest manifest, string? sourceCode.WriteLine(); } - // Create constructor - - sourceCode.WriteLine(" #region Constructor for internal use only"); - sourceCode.WriteLine(); - sourceCode.WriteLine($" protected {name}({typeof(SmartContractInitialize).FullName} initialize) : base(initialize) {{ }}"); - sourceCode.WriteLine(); - sourceCode.WriteLine(" #endregion"); - sourceCode.WriteLine("}"); return sourceCode.ToString(); @@ -369,7 +361,7 @@ private static string CreateSourceMethodFromManifest(ContractMethodDescriptor me if (isLast && arg.Type == ContractParameterType.Any) { - // it will be object X, we can add a default value + // it will be `object X`, we can add a default value sourceCode.Write($"{TypeToSource(arg.Type)} {EscapeName(arg.Name)} = null"); } @@ -436,5 +428,14 @@ private static string TypeToSource(ContractParameterType type) _ => "object?", }; } + + private static string FormatInheritance(List inheritance, string initializeParam) + { + var formattedInheritance = inheritance.Select(type => (type == typeof(SmartContract) + ? $"{type.FullName}({initializeParam})" + : type.FullName)!) + .ToList(); + return string.Join(", ", formattedInheritance); + } } } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract1.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract1.cs index d0dd3eb59..73a6d9e3d 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract1.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract1.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract1 : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract1(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -59,9 +59,4 @@ public abstract class Contract1 : Neo.SmartContract.Testing.SmartContract, ICont #endregion - #region Constructor for internal use only - - protected Contract1(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract2.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract2.cs index cbf6aed08..b7bfacdc3 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract2.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract2.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract2 : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract2(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract2 : Neo.SmartContract.Testing.SmartContract, ICont #endregion - #region Constructor for internal use only - - protected Contract2(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ABIAttributes.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ABIAttributes.cs index ddae06ac6..002f3ebc5 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ABIAttributes.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ABIAttributes.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_ABIAttributes : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_ABIAttributes(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_ABIAttributes : Neo.SmartContract.Testing.SmartCo #endregion - #region Constructor for internal use only - - protected Contract_ABIAttributes(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ABIAttributes2.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ABIAttributes2.cs index 4908b215d..4d4a9ed84 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ABIAttributes2.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ABIAttributes2.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_ABIAttributes2 : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_ABIAttributes2(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_ABIAttributes2 : Neo.SmartContract.Testing.SmartC #endregion - #region Constructor for internal use only - - protected Contract_ABIAttributes2(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ABIAttributes3.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ABIAttributes3.cs index 70d0ead29..e325de2de 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ABIAttributes3.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ABIAttributes3.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_ABIAttributes3 : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_ABIAttributes3(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_ABIAttributes3 : Neo.SmartContract.Testing.SmartC #endregion - #region Constructor for internal use only - - protected Contract_ABIAttributes3(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ABISafe.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ABISafe.cs index f873bf1e9..16635f529 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ABISafe.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ABISafe.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_ABISafe : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_ABISafe(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -44,9 +44,4 @@ public abstract class Contract_ABISafe : Neo.SmartContract.Testing.SmartContract #endregion - #region Constructor for internal use only - - protected Contract_ABISafe(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Abort.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Abort.cs index ebe91e43f..336980cec 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Abort.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Abort.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Abort : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Abort(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -59,9 +59,4 @@ public abstract class Contract_Abort : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Abort(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Array.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Array.cs index fa775ddff..bcbd1f093 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Array.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Array.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Array : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Array(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -143,9 +143,4 @@ public abstract class Contract_Array : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Array(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Assert.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Assert.cs index 96473cc8a..fe46523a9 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Assert.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Assert.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Assert : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Assert(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -53,9 +53,4 @@ public abstract class Contract_Assert : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Assert(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_AttributeChanged.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_AttributeChanged.cs index c242db141..bc4c3cae2 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_AttributeChanged.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_AttributeChanged.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_AttributeChanged : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_AttributeChanged(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_AttributeChanged : Neo.SmartContract.Testing.Smar #endregion - #region Constructor for internal use only - - protected Contract_AttributeChanged(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_BigInteger.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_BigInteger.cs index 1dd89345b..bf531a3c9 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_BigInteger.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_BigInteger.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_BigInteger : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_BigInteger(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -179,9 +179,4 @@ public abstract class Contract_BigInteger : Neo.SmartContract.Testing.SmartContr #endregion - #region Constructor for internal use only - - protected Contract_BigInteger(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Boolean.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Boolean.cs index 51cb806e2..08af61387 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Boolean.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Boolean.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Boolean : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Boolean(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_Boolean : Neo.SmartContract.Testing.SmartContract #endregion - #region Constructor for internal use only - - protected Contract_Boolean(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ByteArrayAssignment.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ByteArrayAssignment.cs index 77f0a2a09..dc8a5468c 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ByteArrayAssignment.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ByteArrayAssignment.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_ByteArrayAssignment : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_ByteArrayAssignment(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -53,9 +53,4 @@ public abstract class Contract_ByteArrayAssignment : Neo.SmartContract.Testing.S #endregion - #region Constructor for internal use only - - protected Contract_ByteArrayAssignment(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Char.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Char.cs index 536d45225..b8baa121d 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Char.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Char.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Char : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Char(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -119,9 +119,4 @@ public abstract class Contract_Char : Neo.SmartContract.Testing.SmartContract, I #endregion - #region Constructor for internal use only - - protected Contract_Char(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_CheckedUnchecked.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_CheckedUnchecked.cs index 049da888c..4c2f7a7dc 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_CheckedUnchecked.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_CheckedUnchecked.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_CheckedUnchecked : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_CheckedUnchecked(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -47,9 +47,4 @@ public abstract class Contract_CheckedUnchecked : Neo.SmartContract.Testing.Smar #endregion - #region Constructor for internal use only - - protected Contract_CheckedUnchecked(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ComplexAssign.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ComplexAssign.cs index 89cf39c3a..d0231bf94 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ComplexAssign.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ComplexAssign.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_ComplexAssign : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_ComplexAssign(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -83,9 +83,4 @@ public abstract class Contract_ComplexAssign : Neo.SmartContract.Testing.SmartCo #endregion - #region Constructor for internal use only - - protected Contract_ComplexAssign(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Concat.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Concat.cs index 406dcc9f9..512aefa71 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Concat.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Concat.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Concat : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Concat(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -47,9 +47,4 @@ public abstract class Contract_Concat : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Concat(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ConcatByteStringAddAssign.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ConcatByteStringAddAssign.cs index cbb0fc8c7..270595874 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ConcatByteStringAddAssign.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ConcatByteStringAddAssign.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_ConcatByteStringAddAssign : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_ConcatByteStringAddAssign(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_ConcatByteStringAddAssign : Neo.SmartContract.Tes #endregion - #region Constructor for internal use only - - protected Contract_ConcatByteStringAddAssign(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ContractCall.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ContractCall.cs index 2825ebfb7..b59305e19 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ContractCall.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_ContractCall.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_ContractCall : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_ContractCall(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -35,9 +35,4 @@ public abstract class Contract_ContractCall : Neo.SmartContract.Testing.SmartCon #endregion - #region Constructor for internal use only - - protected Contract_ContractCall(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Debug.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Debug.cs index c2f3830b4..3355898fb 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Debug.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Debug.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Debug : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Debug(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -44,9 +44,4 @@ public abstract class Contract_Debug : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Debug(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Default.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Default.cs index 073d8d9f9..8810704a4 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Default.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Default.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Default : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Default(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -113,9 +113,4 @@ public abstract class Contract_Default : Neo.SmartContract.Testing.SmartContract #endregion - #region Constructor for internal use only - - protected Contract_Default(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Delegate.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Delegate.cs index f8c1d0943..972f68ec4 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Delegate.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Delegate.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Delegate : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Delegate(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -35,9 +35,4 @@ public abstract class Contract_Delegate : Neo.SmartContract.Testing.SmartContrac #endregion - #region Constructor for internal use only - - protected Contract_Delegate(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_DirectInit.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_DirectInit.cs index 85a938686..07a888041 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_DirectInit.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_DirectInit.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_DirectInit : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_DirectInit(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -47,9 +47,4 @@ public abstract class Contract_DirectInit : Neo.SmartContract.Testing.SmartContr #endregion - #region Constructor for internal use only - - protected Contract_DirectInit(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Event.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Event.cs index f1442ac98..5846fdc2a 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Event.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Event.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Event : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Event(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -38,9 +38,4 @@ public abstract class Contract_Event : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Event(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Extensions.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Extensions.cs index abb08ec42..b86dd9df3 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Extensions.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Extensions.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Extensions : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Extensions(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_Extensions : Neo.SmartContract.Testing.SmartContr #endregion - #region Constructor for internal use only - - protected Contract_Extensions(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Foreach.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Foreach.cs index f324e7166..882d7ec47 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Foreach.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Foreach.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Foreach : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Foreach(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -131,9 +131,4 @@ public abstract class Contract_Foreach : Neo.SmartContract.Testing.SmartContract #endregion - #region Constructor for internal use only - - protected Contract_Foreach(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_GoTo.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_GoTo.cs index 6f3743774..0151f4483 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_GoTo.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_GoTo.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_GoTo : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_GoTo(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -35,9 +35,4 @@ public abstract class Contract_GoTo : Neo.SmartContract.Testing.SmartContract, I #endregion - #region Constructor for internal use only - - protected Contract_GoTo(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Inc_Dec.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Inc_Dec.cs index 5f8cf04fc..e323dde8e 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Inc_Dec.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Inc_Dec.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Inc_Dec : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Inc_Dec(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -173,9 +173,4 @@ public abstract class Contract_Inc_Dec : Neo.SmartContract.Testing.SmartContract #endregion - #region Constructor for internal use only - - protected Contract_Inc_Dec(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_IndexOrRange.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_IndexOrRange.cs index 80ff7d3f7..6d07fb6d5 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_IndexOrRange.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_IndexOrRange.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_IndexOrRange : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_IndexOrRange(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_IndexOrRange : Neo.SmartContract.Testing.SmartCon #endregion - #region Constructor for internal use only - - protected Contract_IndexOrRange(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Initializer.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Initializer.cs index aa0643cc6..aca09eb0a 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Initializer.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Initializer.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Initializer : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Initializer(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -47,9 +47,4 @@ public abstract class Contract_Initializer : Neo.SmartContract.Testing.SmartCont #endregion - #region Constructor for internal use only - - protected Contract_Initializer(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Inline.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Inline.cs index 6bbf48bea..c0208a40a 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Inline.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Inline.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Inline : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Inline(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_Inline : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Inline(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Instance.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Instance.cs index 240909d63..0a5945da5 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Instance.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Instance.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Instance : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Instance(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -35,9 +35,4 @@ public abstract class Contract_Instance : Neo.SmartContract.Testing.SmartContrac #endregion - #region Constructor for internal use only - - protected Contract_Instance(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Integer.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Integer.cs index fdfeeab82..14767b134 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Integer.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Integer.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Integer : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Integer(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -653,9 +653,4 @@ public abstract class Contract_Integer : Neo.SmartContract.Testing.SmartContract #endregion - #region Constructor for internal use only - - protected Contract_Integer(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_IntegerParse.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_IntegerParse.cs index e7cb25229..2515cd19f 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_IntegerParse.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_IntegerParse.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_IntegerParse : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_IntegerParse(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -71,9 +71,4 @@ public abstract class Contract_IntegerParse : Neo.SmartContract.Testing.SmartCon #endregion - #region Constructor for internal use only - - protected Contract_IntegerParse(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_InvokeCsNef.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_InvokeCsNef.cs index 090650e54..00db43b57 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_InvokeCsNef.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_InvokeCsNef.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_InvokeCsNef : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_InvokeCsNef(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -41,9 +41,4 @@ public abstract class Contract_InvokeCsNef : Neo.SmartContract.Testing.SmartCont #endregion - #region Constructor for internal use only - - protected Contract_InvokeCsNef(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Lambda.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Lambda.cs index 188ca695c..5b61b54fa 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Lambda.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Lambda.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Lambda : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Lambda(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -119,9 +119,4 @@ public abstract class Contract_Lambda : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Lambda(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Linq.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Linq.cs index 64652ba73..72f7e3058 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Linq.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Linq.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Linq : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -161,9 +161,4 @@ public abstract class Contract_Linq : Neo.SmartContract.Testing.SmartContract, I #endregion - #region Constructor for internal use only - - protected Contract_Linq(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Logical.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Logical.cs index bb2512328..81bf7699d 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Logical.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Logical.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Logical : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Logical(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -59,9 +59,4 @@ public abstract class Contract_Logical : Neo.SmartContract.Testing.SmartContract #endregion - #region Constructor for internal use only - - protected Contract_Logical(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Math.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Math.cs index 043b06df3..5d983488a 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Math.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Math.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Math : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Math(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -149,9 +149,4 @@ public abstract class Contract_Math : Neo.SmartContract.Testing.SmartContract, I #endregion - #region Constructor for internal use only - - protected Contract_Math(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_MemberAccess.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_MemberAccess.cs index 937779eb6..8997925b8 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_MemberAccess.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_MemberAccess.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_MemberAccess : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_MemberAccess(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_MemberAccess : Neo.SmartContract.Testing.SmartCon #endregion - #region Constructor for internal use only - - protected Contract_MemberAccess(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_MultipleA.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_MultipleA.cs index 62215745c..cbc4c223c 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_MultipleA.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_MultipleA.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_MultipleA : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_MultipleA(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_MultipleA : Neo.SmartContract.Testing.SmartContra #endregion - #region Constructor for internal use only - - protected Contract_MultipleA(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_MultipleB.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_MultipleB.cs index 0e234810c..defd45e77 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_MultipleB.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_MultipleB.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_MultipleB : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_MultipleB(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_MultipleB : Neo.SmartContract.Testing.SmartContra #endregion - #region Constructor for internal use only - - protected Contract_MultipleB(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NEP11.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NEP11.cs index 6f4525b89..78b3f4bb6 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NEP11.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NEP11.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_NEP11 : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_NEP11(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -90,9 +90,4 @@ public abstract class Contract_NEP11 : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_NEP11(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NEP17.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NEP17.cs index 8649c776d..3822bf5da 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NEP17.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NEP17.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_NEP17 : Neo.SmartContract.Testing.SmartContract, Neo.SmartContract.Testing.TestingStandards.INep17Standard, IContractInfo +public abstract class Contract_NEP17(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), Neo.SmartContract.Testing.TestingStandards.INep17Standard, IContractInfo { #region Compiled data @@ -65,9 +65,4 @@ public abstract class Contract_NEP17 : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_NEP17(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NULL.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NULL.cs index a467a81c1..4792a9a31 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NULL.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NULL.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_NULL : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_NULL(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -119,9 +119,4 @@ public abstract class Contract_NULL : Neo.SmartContract.Testing.SmartContract, I #endregion - #region Constructor for internal use only - - protected Contract_NULL(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NativeContracts.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NativeContracts.cs index 092a5abe1..a5d853047 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NativeContracts.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NativeContracts.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_NativeContracts : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_NativeContracts(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -71,9 +71,4 @@ public abstract class Contract_NativeContracts : Neo.SmartContract.Testing.Smart #endregion - #region Constructor for internal use only - - protected Contract_NativeContracts(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NullableType.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NullableType.cs index ceed92ec8..58707d28d 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NullableType.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NullableType.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_NullableType : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -479,9 +479,4 @@ public abstract class Contract_NullableType : Neo.SmartContract.Testing.SmartCon #endregion - #region Constructor for internal use only - - protected Contract_NullableType(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_OnDeployment1.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_OnDeployment1.cs index f73a1ad6c..7866290a6 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_OnDeployment1.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_OnDeployment1.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_OnDeployment1 : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_OnDeployment1(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -23,9 +23,4 @@ public abstract class Contract_OnDeployment1 : Neo.SmartContract.Testing.SmartCo #endregion - #region Constructor for internal use only - - protected Contract_OnDeployment1(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_OnDeployment2.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_OnDeployment2.cs index 09cb87094..f1dd037bb 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_OnDeployment2.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_OnDeployment2.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_OnDeployment2 : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_OnDeployment2(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -23,9 +23,4 @@ public abstract class Contract_OnDeployment2 : Neo.SmartContract.Testing.SmartCo #endregion - #region Constructor for internal use only - - protected Contract_OnDeployment2(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Optimize.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Optimize.cs index 5c25fd68a..b0f0244ff 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Optimize.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Optimize.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Optimize : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Optimize(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -47,9 +47,4 @@ public abstract class Contract_Optimize : Neo.SmartContract.Testing.SmartContrac #endregion - #region Constructor for internal use only - - protected Contract_Optimize(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Out.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Out.cs index a5e80c359..ede7f9483 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Out.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Out.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Out : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Out(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -71,9 +71,4 @@ public abstract class Contract_Out : Neo.SmartContract.Testing.SmartContract, IC #endregion - #region Constructor for internal use only - - protected Contract_Out(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Params.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Params.cs index a82c8d4f7..d1c8bb615 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Params.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Params.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Params : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Params(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_Params : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Params(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Partial.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Partial.cs index 3129d183a..d2335232a 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Partial.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Partial.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Partial : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Partial(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -35,9 +35,4 @@ public abstract class Contract_Partial : Neo.SmartContract.Testing.SmartContract #endregion - #region Constructor for internal use only - - protected Contract_Partial(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Pattern.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Pattern.cs index 71a5d39d4..7a00f1cfb 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Pattern.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Pattern.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Pattern : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Pattern(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -89,9 +89,4 @@ public abstract class Contract_Pattern : Neo.SmartContract.Testing.SmartContract #endregion - #region Constructor for internal use only - - protected Contract_Pattern(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Polymorphism.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Polymorphism.cs index 7c460d73d..5a732ded1 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Polymorphism.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Polymorphism.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Polymorphism : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Polymorphism(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -47,9 +47,4 @@ public abstract class Contract_Polymorphism : Neo.SmartContract.Testing.SmartCon #endregion - #region Constructor for internal use only - - protected Contract_Polymorphism(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_PostfixUnary.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_PostfixUnary.cs index 6f2905b71..1bf3a8aed 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_PostfixUnary.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_PostfixUnary.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_PostfixUnary : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_PostfixUnary(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -35,9 +35,4 @@ public abstract class Contract_PostfixUnary : Neo.SmartContract.Testing.SmartCon #endregion - #region Constructor for internal use only - - protected Contract_PostfixUnary(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Property.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Property.cs index b8557d072..5fb765974 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Property.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Property.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Property : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Property(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_Property : Neo.SmartContract.Testing.SmartContrac #endregion - #region Constructor for internal use only - - protected Contract_Property(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_PropertyMethod.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_PropertyMethod.cs index 70f1e1f85..6c5463d4f 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_PropertyMethod.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_PropertyMethod.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_PropertyMethod : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_PropertyMethod(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -35,9 +35,4 @@ public abstract class Contract_PropertyMethod : Neo.SmartContract.Testing.SmartC #endregion - #region Constructor for internal use only - - protected Contract_PropertyMethod(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Record.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Record.cs index 48769a3c2..b3f4446b8 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Record.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Record.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Record : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Record(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -53,9 +53,4 @@ public abstract class Contract_Record : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Record(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Recursion.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Recursion.cs index a7be5eea0..51ff786c2 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Recursion.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Recursion.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Recursion : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Recursion(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -47,9 +47,4 @@ public abstract class Contract_Recursion : Neo.SmartContract.Testing.SmartContra #endregion - #region Constructor for internal use only - - protected Contract_Recursion(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Returns.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Returns.cs index dc1b767c3..4fdd1356e 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Returns.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Returns.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Returns : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Returns(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -53,9 +53,4 @@ public abstract class Contract_Returns : Neo.SmartContract.Testing.SmartContract #endregion - #region Constructor for internal use only - - protected Contract_Returns(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Stack.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Stack.cs index 1a486be53..a587766b9 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Stack.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Stack.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Stack : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Stack(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -41,9 +41,4 @@ public abstract class Contract_Stack : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Stack(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticByteArray.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticByteArray.cs index 6ef8d3c09..afec33524 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticByteArray.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticByteArray.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_StaticByteArray : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_StaticByteArray(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -38,9 +38,4 @@ public abstract class Contract_StaticByteArray : Neo.SmartContract.Testing.Smart #endregion - #region Constructor for internal use only - - protected Contract_StaticByteArray(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticClass.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticClass.cs index 1ec4348b0..e97f3ff9d 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticClass.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticClass.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_StaticClass : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_StaticClass(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_StaticClass : Neo.SmartContract.Testing.SmartCont #endregion - #region Constructor for internal use only - - protected Contract_StaticClass(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticConstruct.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticConstruct.cs index 2f8e195af..5c154cf43 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticConstruct.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticConstruct.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_StaticConstruct : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_StaticConstruct(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_StaticConstruct : Neo.SmartContract.Testing.Smart #endregion - #region Constructor for internal use only - - protected Contract_StaticConstruct(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticVar.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticVar.cs index a8eb0ad0e..fac5553f6 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticVar.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticVar.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_StaticVar : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_StaticVar(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -65,9 +65,4 @@ public abstract class Contract_StaticVar : Neo.SmartContract.Testing.SmartContra #endregion - #region Constructor for internal use only - - protected Contract_StaticVar(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticVarInit.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticVarInit.cs index 9d8d807a1..2be5a29be 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticVarInit.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_StaticVarInit.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_StaticVarInit : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_StaticVarInit(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -35,9 +35,4 @@ public abstract class Contract_StaticVarInit : Neo.SmartContract.Testing.SmartCo #endregion - #region Constructor for internal use only - - protected Contract_StaticVarInit(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_String.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_String.cs index 6b387a0bc..a86416619 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_String.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_String.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_String : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_String(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -77,9 +77,4 @@ public abstract class Contract_String : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_String(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Switch.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Switch.cs index bfeb92844..315fee134 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Switch.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Switch.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Switch : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Switch(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -53,9 +53,4 @@ public abstract class Contract_Switch : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Switch(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Syscall_Out.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Syscall_Out.cs index a9669fd35..d75d295f9 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Syscall_Out.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Syscall_Out.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Syscall_Out : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Syscall_Out(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -77,9 +77,4 @@ public abstract class Contract_Syscall_Out : Neo.SmartContract.Testing.SmartCont #endregion - #region Constructor for internal use only - - protected Contract_Syscall_Out(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Throw.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Throw.cs index 8c638e473..8d4c98a9f 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Throw.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Throw.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Throw : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Throw(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_Throw : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Throw(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_TryCatch.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_TryCatch.cs index b87b21828..f24ba734b 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_TryCatch.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_TryCatch.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_TryCatch : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_TryCatch(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -149,9 +149,4 @@ public abstract class Contract_TryCatch : Neo.SmartContract.Testing.SmartContrac #endregion - #region Constructor for internal use only - - protected Contract_TryCatch(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Tuple.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Tuple.cs index 463fbe634..6adb927cb 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Tuple.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Tuple.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Tuple : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Tuple(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -35,9 +35,4 @@ public abstract class Contract_Tuple : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Tuple(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_TypeConvert.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_TypeConvert.cs index bc214ef7a..0ee2e68f1 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_TypeConvert.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_TypeConvert.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_TypeConvert : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_TypeConvert(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_TypeConvert : Neo.SmartContract.Testing.SmartCont #endregion - #region Constructor for internal use only - - protected Contract_TypeConvert(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Types.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Types.cs index 8710cf5a2..5bb84543b 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Types.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Types.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Types : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Types(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -224,9 +224,4 @@ public abstract class Contract_Types : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Types(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Types_BigInteger.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Types_BigInteger.cs index dbf8d14bc..2fec1a9ae 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Types_BigInteger.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Types_BigInteger.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Types_BigInteger : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Types_BigInteger(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -59,9 +59,4 @@ public abstract class Contract_Types_BigInteger : Neo.SmartContract.Testing.Smar #endregion - #region Constructor for internal use only - - protected Contract_Types_BigInteger(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Types_ECPoint.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Types_ECPoint.cs index bd5ee6973..a99bf29db 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Types_ECPoint.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Types_ECPoint.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Types_ECPoint : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Types_ECPoint(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -47,9 +47,4 @@ public abstract class Contract_Types_ECPoint : Neo.SmartContract.Testing.SmartCo #endregion - #region Constructor for internal use only - - protected Contract_Types_ECPoint(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_UIntTypes.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_UIntTypes.cs index 6da17401d..275fd46d0 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_UIntTypes.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_UIntTypes.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_UIntTypes : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_UIntTypes(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -47,9 +47,4 @@ public abstract class Contract_UIntTypes : Neo.SmartContract.Testing.SmartContra #endregion - #region Constructor for internal use only - - protected Contract_UIntTypes(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_shift.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_shift.cs index 43d52bdc5..7d895deb3 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_shift.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_shift.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_shift : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_shift(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -35,9 +35,4 @@ public abstract class Contract_shift : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_shift(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Attribute.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Attribute.cs index f3a154771..87ee1948d 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Attribute.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Attribute.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Attribute : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Attribute(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -35,9 +35,4 @@ public abstract class Contract_Attribute : Neo.SmartContract.Testing.SmartContra #endregion - #region Constructor for internal use only - - protected Contract_Attribute(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Blockchain.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Blockchain.cs index 0f594e1d5..44f73da3c 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Blockchain.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Blockchain.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Blockchain : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Blockchain(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -77,9 +77,4 @@ public abstract class Contract_Blockchain : Neo.SmartContract.Testing.SmartContr #endregion - #region Constructor for internal use only - - protected Contract_Blockchain(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Contract.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Contract.cs index bff13a138..4d3869133 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Contract.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Contract.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Contract : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Contract(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -47,9 +47,4 @@ public abstract class Contract_Contract : Neo.SmartContract.Testing.SmartContrac #endregion - #region Constructor for internal use only - - protected Contract_Contract(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Create.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Create.cs index 9112f7e95..9173aa23a 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Create.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Create.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Create : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Create(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -59,9 +59,4 @@ public abstract class Contract_Create : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Create(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Crypto.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Crypto.cs index 1f8281c26..faef8fc64 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Crypto.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Crypto.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Crypto : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Crypto(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -99,9 +99,4 @@ public abstract class Contract_Crypto : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Crypto(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_ExecutionEngine.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_ExecutionEngine.cs index ee1bbd877..4c8851d0f 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_ExecutionEngine.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_ExecutionEngine.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_ExecutionEngine : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_ExecutionEngine(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -53,9 +53,4 @@ public abstract class Contract_ExecutionEngine : Neo.SmartContract.Testing.Smart #endregion - #region Constructor for internal use only - - protected Contract_ExecutionEngine(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_ExtraAttribute.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_ExtraAttribute.cs index 325c01c95..396e41687 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_ExtraAttribute.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_ExtraAttribute.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_ExtraAttribute : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_ExtraAttribute(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_ExtraAttribute : Neo.SmartContract.Testing.SmartC #endregion - #region Constructor for internal use only - - protected Contract_ExtraAttribute(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Helper.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Helper.cs index 346c79dac..11ae1c7fc 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Helper.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Helper.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Helper : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Helper(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -131,9 +131,4 @@ public abstract class Contract_Helper : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Helper(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_IOracle.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_IOracle.cs index 9331f5be2..a3aa3350b 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_IOracle.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_IOracle.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_IOracle : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_IOracle(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_IOracle : Neo.SmartContract.Testing.SmartContract #endregion - #region Constructor for internal use only - - protected Contract_IOracle(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Json.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Json.cs index 1890a528f..4525cbcc3 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Json.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Json.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Json : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Json(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -35,9 +35,4 @@ public abstract class Contract_Json : Neo.SmartContract.Testing.SmartContract, I #endregion - #region Constructor for internal use only - - protected Contract_Json(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_List.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_List.cs index 927a6e3f7..7fef88787 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_List.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_List.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_List : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_List(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -53,9 +53,4 @@ public abstract class Contract_List : Neo.SmartContract.Testing.SmartContract, I #endregion - #region Constructor for internal use only - - protected Contract_List(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_ManifestAttribute.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_ManifestAttribute.cs index a63b94501..5675c8289 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_ManifestAttribute.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_ManifestAttribute.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_ManifestAttribute : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_ManifestAttribute(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_ManifestAttribute : Neo.SmartContract.Testing.Sma #endregion - #region Constructor for internal use only - - protected Contract_ManifestAttribute(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Map.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Map.cs index 9185b177c..babdf010b 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Map.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Map.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Map : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Map(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -89,9 +89,4 @@ public abstract class Contract_Map : Neo.SmartContract.Testing.SmartContract, IC #endregion - #region Constructor for internal use only - - protected Contract_Map(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Native.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Native.cs index cf292b0fb..bd3b8d415 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Native.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Native.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Native : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Native(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -78,9 +78,4 @@ public abstract class Contract_Native : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Native(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Nullable.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Nullable.cs index 9136e2317..3a9bf9a18 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Nullable.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Nullable.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Nullable : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Nullable(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -287,9 +287,4 @@ public abstract class Contract_Nullable : Neo.SmartContract.Testing.SmartContrac #endregion - #region Constructor for internal use only - - protected Contract_Nullable(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Pointers.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Pointers.cs index 0f2f9dd95..1dfe28a16 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Pointers.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Pointers.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Pointers : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Pointers(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -59,9 +59,4 @@ public abstract class Contract_Pointers : Neo.SmartContract.Testing.SmartContrac #endregion - #region Constructor for internal use only - - protected Contract_Pointers(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Regex.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Regex.cs index 59b77ab0e..cbdfbf5fe 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Regex.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Regex.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Regex : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Regex(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -71,9 +71,4 @@ public abstract class Contract_Regex : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Regex(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Runtime.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Runtime.cs index 758be0f7c..750be0232 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Runtime.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Runtime.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Runtime : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Runtime(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -161,9 +161,4 @@ public abstract class Contract_Runtime : Neo.SmartContract.Testing.SmartContract #endregion - #region Constructor for internal use only - - protected Contract_Runtime(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SequencePointInserter.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SequencePointInserter.cs index 275f33db4..0425a3d94 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SequencePointInserter.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SequencePointInserter.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_SequencePointInserter : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_SequencePointInserter(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_SequencePointInserter : Neo.SmartContract.Testing #endregion - #region Constructor for internal use only - - protected Contract_SequencePointInserter(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_StaticStorageMap.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_StaticStorageMap.cs index f0bf20f1e..ed85ee583 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_StaticStorageMap.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_StaticStorageMap.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_StaticStorageMap : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_StaticStorageMap(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -71,9 +71,4 @@ public abstract class Contract_StaticStorageMap : Neo.SmartContract.Testing.Smar #endregion - #region Constructor for internal use only - - protected Contract_StaticStorageMap(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_StdLib.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_StdLib.cs index 9cc890463..af2ae4e77 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_StdLib.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_StdLib.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_StdLib : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_StdLib(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -107,9 +107,4 @@ public abstract class Contract_StdLib : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_StdLib(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Storage.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Storage.cs index 80e15aaed..9289359ab 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Storage.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Storage.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Storage : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Storage(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -125,9 +125,4 @@ public abstract class Contract_Storage : Neo.SmartContract.Testing.SmartContract #endregion - #region Constructor for internal use only - - protected Contract_Storage(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Stored.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Stored.cs index 92acb10c4..d93d71a84 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Stored.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Stored.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Stored : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Stored(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -92,9 +92,4 @@ public abstract class Contract_Stored : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Stored(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_String.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_String.cs index 9aa2ebb42..bbcb5f9d6 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_String.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_String.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_String : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_String(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -35,9 +35,4 @@ public abstract class Contract_String : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_String(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard11Enum.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard11Enum.cs index e3f0c4b6e..12ee0263a 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard11Enum.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard11Enum.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_SupportedStandard11Enum : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_SupportedStandard11Enum(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -102,9 +102,4 @@ public abstract class Contract_SupportedStandard11Enum : Neo.SmartContract.Testi #endregion - #region Constructor for internal use only - - protected Contract_SupportedStandard11Enum(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard11Payable.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard11Payable.cs index c708761d0..40624197b 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard11Payable.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard11Payable.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_SupportedStandard11Payable : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_SupportedStandard11Payable(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_SupportedStandard11Payable : Neo.SmartContract.Te #endregion - #region Constructor for internal use only - - protected Contract_SupportedStandard11Payable(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard17Enum.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard17Enum.cs index f841276b3..55993a778 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard17Enum.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard17Enum.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_SupportedStandard17Enum : Neo.SmartContract.Testing.SmartContract, Neo.SmartContract.Testing.TestingStandards.INep17Standard, IContractInfo +public abstract class Contract_SupportedStandard17Enum(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), Neo.SmartContract.Testing.TestingStandards.INep17Standard, IContractInfo { #region Compiled data @@ -71,9 +71,4 @@ public abstract class Contract_SupportedStandard17Enum : Neo.SmartContract.Testi #endregion - #region Constructor for internal use only - - protected Contract_SupportedStandard17Enum(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard17Payable.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard17Payable.cs index c2e11b3e9..871362b2b 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard17Payable.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard17Payable.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_SupportedStandard17Payable : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_SupportedStandard17Payable(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_SupportedStandard17Payable : Neo.SmartContract.Te #endregion - #region Constructor for internal use only - - protected Contract_SupportedStandard17Payable(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandards.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandards.cs index 34ff7fb23..ce23438dc 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandards.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandards.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_SupportedStandards : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_SupportedStandards(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_SupportedStandards : Neo.SmartContract.Testing.Sm #endregion - #region Constructor for internal use only - - protected Contract_SupportedStandards(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_UInt.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_UInt.cs index c7371de56..bdb93fe3d 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_UInt.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_UInt.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_UInt : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_UInt(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -41,9 +41,4 @@ public abstract class Contract_UInt : Neo.SmartContract.Testing.SmartContract, I #endregion - #region Constructor for internal use only - - protected Contract_UInt(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Update.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Update.cs index 04b5111aa..61cb95896 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Update.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Update.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Contract_Update : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class Contract_Update(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -29,9 +29,4 @@ public abstract class Contract_Update : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected Contract_Update(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Template.UnitTests/templates/neocontractnep17/TestingArtifacts/Nep17ContractTemplate.artifacts.cs b/tests/Neo.SmartContract.Template.UnitTests/templates/neocontractnep17/TestingArtifacts/Nep17ContractTemplate.artifacts.cs index acc724990..d14b1094f 100644 --- a/tests/Neo.SmartContract.Template.UnitTests/templates/neocontractnep17/TestingArtifacts/Nep17ContractTemplate.artifacts.cs +++ b/tests/Neo.SmartContract.Template.UnitTests/templates/neocontractnep17/TestingArtifacts/Nep17ContractTemplate.artifacts.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class Nep17ContractTemplate : Neo.SmartContract.Testing.SmartContract, Neo.SmartContract.Testing.TestingStandards.INep17Standard, Neo.SmartContract.Testing.TestingStandards.IOwnable, Neo.SmartContract.Testing.TestingStandards.IVerificable, IContractInfo +public abstract class Nep17ContractTemplate(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), Neo.SmartContract.Testing.TestingStandards.INep17Standard, Neo.SmartContract.Testing.TestingStandards.IOwnable, Neo.SmartContract.Testing.TestingStandards.IVerificable, IContractInfo { #region Compiled data @@ -102,9 +102,4 @@ public abstract class Nep17ContractTemplate : Neo.SmartContract.Testing.SmartCon #endregion - #region Constructor for internal use only - - protected Nep17ContractTemplate(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Template.UnitTests/templates/neocontractoracle/TestingArtifacts/OracleRequestTemplate.artifacts.cs b/tests/Neo.SmartContract.Template.UnitTests/templates/neocontractoracle/TestingArtifacts/OracleRequestTemplate.artifacts.cs index 39634796d..690a8f852 100644 --- a/tests/Neo.SmartContract.Template.UnitTests/templates/neocontractoracle/TestingArtifacts/OracleRequestTemplate.artifacts.cs +++ b/tests/Neo.SmartContract.Template.UnitTests/templates/neocontractoracle/TestingArtifacts/OracleRequestTemplate.artifacts.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class OracleRequestTemplate : Neo.SmartContract.Testing.SmartContract, IContractInfo +public abstract class OracleRequestTemplate(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), IContractInfo { #region Compiled data @@ -44,9 +44,4 @@ public abstract class OracleRequestTemplate : Neo.SmartContract.Testing.SmartCon #endregion - #region Constructor for internal use only - - protected OracleRequestTemplate(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Template.UnitTests/templates/neocontractowner/TestingArtifacts/OwnableTemplate.artifacts.cs b/tests/Neo.SmartContract.Template.UnitTests/templates/neocontractowner/TestingArtifacts/OwnableTemplate.artifacts.cs index 4f2e22ffe..e59cbed97 100644 --- a/tests/Neo.SmartContract.Template.UnitTests/templates/neocontractowner/TestingArtifacts/OwnableTemplate.artifacts.cs +++ b/tests/Neo.SmartContract.Template.UnitTests/templates/neocontractowner/TestingArtifacts/OwnableTemplate.artifacts.cs @@ -6,7 +6,7 @@ namespace Neo.SmartContract.Testing; -public abstract class OwnableTemplate : Neo.SmartContract.Testing.SmartContract, Neo.SmartContract.Testing.TestingStandards.IOwnable, IContractInfo +public abstract class OwnableTemplate(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), Neo.SmartContract.Testing.TestingStandards.IOwnable, IContractInfo { #region Compiled data @@ -57,9 +57,4 @@ public abstract class OwnableTemplate : Neo.SmartContract.Testing.SmartContract, #endregion - #region Constructor for internal use only - - protected OwnableTemplate(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } - - #endregion } diff --git a/tests/Neo.SmartContract.Testing.UnitTests/Extensions/ArtifactExtensionsTests.cs b/tests/Neo.SmartContract.Testing.UnitTests/Extensions/ArtifactExtensionsTests.cs index c30e76152..194ea821f 100644 --- a/tests/Neo.SmartContract.Testing.UnitTests/Extensions/ArtifactExtensionsTests.cs +++ b/tests/Neo.SmartContract.Testing.UnitTests/Extensions/ArtifactExtensionsTests.cs @@ -18,127 +18,123 @@ public void TestGetArtifactsSource() var source = manifest.GetArtifactsSource(manifest.Name, generateProperties: true); - Assert.AreEqual(source, @" -using Neo.Cryptography.ECC; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Numerics; + Assert.AreEqual(source, """ + using Neo.Cryptography.ECC; + using System; + using System.Collections.Generic; + using System.ComponentModel; + using System.Numerics; -namespace Neo.SmartContract.Testing; + namespace Neo.SmartContract.Testing; -public abstract class Contract1 : Neo.SmartContract.Testing.SmartContract, Neo.SmartContract.Testing.TestingStandards.INep17Standard, Neo.SmartContract.Testing.TestingStandards.IVerificable, IContractInfo -{ - #region Compiled data - - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@""{""""name"""":""""Contract1"""",""""groups"""":[],""""features"""":{},""""supportedstandards"""":[""""NEP-17""""],""""abi"""":{""""methods"""":[{""""name"""":""""symbol"""",""""parameters"""":[],""""returntype"""":""""String"""",""""offset"""":1406,""""safe"""":true},{""""name"""":""""decimals"""",""""parameters"""":[],""""returntype"""":""""Integer"""",""""offset"""":1421,""""safe"""":true},{""""name"""":""""totalSupply"""",""""parameters"""":[],""""returntype"""":""""Integer"""",""""offset"""":43,""""safe"""":true},{""""name"""":""""balanceOf"""",""""parameters"""":[{""""name"""":""""owner"""",""""type"""":""""Hash160""""}],""""returntype"""":""""Integer"""",""""offset"""":85,""""safe"""":true},{""""name"""":""""transfer"""",""""parameters"""":[{""""name"""":""""from"""",""""type"""":""""Hash160""""},{""""name"""":""""to"""",""""type"""":""""Hash160""""},{""""name"""":""""amount"""",""""type"""":""""Integer""""},{""""name"""":""""data"""",""""type"""":""""Any""""}],""""returntype"""":""""Boolean"""",""""offset"""":281,""""safe"""":false},{""""name"""":""""getOwner"""",""""parameters"""":[],""""returntype"""":""""Hash160"""",""""offset"""":711,""""safe"""":true},{""""name"""":""""setOwner"""",""""parameters"""":[{""""name"""":""""newOwner"""",""""type"""":""""Hash160""""}],""""returntype"""":""""Void"""",""""offset"""":755,""""safe"""":false},{""""name"""":""""burn"""",""""parameters"""":[{""""name"""":""""account"""",""""type"""":""""Hash160""""},{""""name"""":""""amount"""",""""type"""":""""Integer""""}],""""returntype"""":""""Void"""",""""offset"""":873,""""safe"""":false},{""""name"""":""""mint"""",""""parameters"""":[{""""name"""":""""to"""",""""type"""":""""Hash160""""},{""""name"""":""""amount"""",""""type"""":""""Integer""""}],""""returntype"""":""""Void"""",""""offset"""":915,""""safe"""":false},{""""name"""":""""withdraw"""",""""parameters"""":[{""""name"""":""""token"""",""""type"""":""""Hash160""""},{""""name"""":""""to"""",""""type"""":""""Hash160""""},{""""name"""":""""amount"""",""""type"""":""""Integer""""}],""""returntype"""":""""Boolean"""",""""offset"""":957,""""safe"""":false},{""""name"""":""""onNEP17Payment"""",""""parameters"""":[{""""name"""":""""from"""",""""type"""":""""Hash160""""},{""""name"""":""""amount"""",""""type"""":""""Integer""""},{""""name"""":""""data"""",""""type"""":""""Any""""}],""""returntype"""":""""Void"""",""""offset"""":1139,""""safe"""":false},{""""name"""":""""verify"""",""""parameters"""":[],""""returntype"""":""""Boolean"""",""""offset"""":1203,""""safe"""":true},{""""name"""":""""myMethod"""",""""parameters"""":[],""""returntype"""":""""String"""",""""offset"""":1209,""""safe"""":false},{""""name"""":""""_deploy"""",""""parameters"""":[{""""name"""":""""data"""",""""type"""":""""Any""""},{""""name"""":""""update"""",""""type"""":""""Boolean""""}],""""returntype"""":""""Void"""",""""offset"""":1229,""""safe"""":false},{""""name"""":""""update"""",""""parameters"""":[{""""name"""":""""nefFile"""",""""type"""":""""ByteArray""""},{""""name"""":""""manifest"""",""""type"""":""""String""""}],""""returntype"""":""""Void"""",""""offset"""":1352,""""safe"""":false},{""""name"""":""""_initialize"""",""""parameters"""":[],""""returntype"""":""""Void"""",""""offset"""":1390,""""safe"""":false}],""""events"""":[{""""name"""":""""Transfer"""",""""parameters"""":[{""""name"""":""""from"""",""""type"""":""""Hash160""""},{""""name"""":""""to"""",""""type"""":""""Hash160""""},{""""name"""":""""amount"""",""""type"""":""""Integer""""}]},{""""name"""":""""SetOwner"""",""""parameters"""":[{""""name"""":""""newOwner"""",""""type"""":""""Hash160""""}]}]},""""permissions"""":[{""""contract"""":""""*"""",""""methods"""":""""*""""}],""""trusts"""":[],""""extra"""":{""""Author"""":""""\u003CYour Name Or Company Here\u003E"""",""""Description"""":""""\u003CDescription Here\u003E"""",""""Email"""":""""\u003CYour Public Email Here\u003E"""",""""Version"""":""""\u003CVersion String Here\u003E""""}}""); + public abstract class Contract1(Neo.SmartContract.Testing.SmartContractInitialize initialize) : Neo.SmartContract.Testing.SmartContract(initialize), Neo.SmartContract.Testing.TestingStandards.INep17Standard, Neo.SmartContract.Testing.TestingStandards.IVerificable, IContractInfo + { + #region Compiled data - #endregion + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract1"",""groups"":[],""features"":{},""supportedstandards"":[""NEP-17""],""abi"":{""methods"":[{""name"":""symbol"",""parameters"":[],""returntype"":""String"",""offset"":1406,""safe"":true},{""name"":""decimals"",""parameters"":[],""returntype"":""Integer"",""offset"":1421,""safe"":true},{""name"":""totalSupply"",""parameters"":[],""returntype"":""Integer"",""offset"":43,""safe"":true},{""name"":""balanceOf"",""parameters"":[{""name"":""owner"",""type"":""Hash160""}],""returntype"":""Integer"",""offset"":85,""safe"":true},{""name"":""transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""},{""name"":""data"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":281,""safe"":false},{""name"":""getOwner"",""parameters"":[],""returntype"":""Hash160"",""offset"":711,""safe"":true},{""name"":""setOwner"",""parameters"":[{""name"":""newOwner"",""type"":""Hash160""}],""returntype"":""Void"",""offset"":755,""safe"":false},{""name"":""burn"",""parameters"":[{""name"":""account"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""}],""returntype"":""Void"",""offset"":873,""safe"":false},{""name"":""mint"",""parameters"":[{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""}],""returntype"":""Void"",""offset"":915,""safe"":false},{""name"":""withdraw"",""parameters"":[{""name"":""token"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":957,""safe"":false},{""name"":""onNEP17Payment"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""},{""name"":""data"",""type"":""Any""}],""returntype"":""Void"",""offset"":1139,""safe"":false},{""name"":""verify"",""parameters"":[],""returntype"":""Boolean"",""offset"":1203,""safe"":true},{""name"":""myMethod"",""parameters"":[],""returntype"":""String"",""offset"":1209,""safe"":false},{""name"":""_deploy"",""parameters"":[{""name"":""data"",""type"":""Any""},{""name"":""update"",""type"":""Boolean""}],""returntype"":""Void"",""offset"":1229,""safe"":false},{""name"":""update"",""parameters"":[{""name"":""nefFile"",""type"":""ByteArray""},{""name"":""manifest"",""type"":""String""}],""returntype"":""Void"",""offset"":1352,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":1390,""safe"":false}],""events"":[{""name"":""Transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""}]},{""name"":""SetOwner"",""parameters"":[{""name"":""newOwner"",""type"":""Hash160""}]}]},""permissions"":[{""contract"":""*"",""methods"":""*""}],""trusts"":[],""extra"":{""Author"":""\u003CYour Name Or Company Here\u003E"",""Description"":""\u003CDescription Here\u003E"",""Email"":""\u003CYour Public Email Here\u003E"",""Version"":""\u003CVersion String Here\u003E""}}"); - #region Events + #endregion - public delegate void delSetOwner(UInt160? newOwner); + #region Events - [DisplayName(""SetOwner"")] - public event delSetOwner? OnSetOwner; + public delegate void delSetOwner(UInt160? newOwner); - [DisplayName(""Transfer"")] - public event Neo.SmartContract.Testing.TestingStandards.INep17Standard.delTransfer? OnTransfer; + [DisplayName("SetOwner")] + public event delSetOwner? OnSetOwner; - #endregion + [DisplayName("Transfer")] + public event Neo.SmartContract.Testing.TestingStandards.INep17Standard.delTransfer? OnTransfer; - #region Properties + #endregion - /// - /// Safe property - /// - public abstract BigInteger? Decimals { [DisplayName(""decimals"")] get; } + #region Properties - /// - /// Safe property - /// - public abstract UInt160? Owner { [DisplayName(""getOwner"")] get; [DisplayName(""setOwner"")] set; } + /// + /// Safe property + /// + public abstract BigInteger? Decimals { [DisplayName("decimals")] get; } - /// - /// Safe property - /// - public abstract string? Symbol { [DisplayName(""symbol"")] get; } + /// + /// Safe property + /// + public abstract UInt160? Owner { [DisplayName("getOwner")] get; [DisplayName("setOwner")] set; } - /// - /// Safe property - /// - public abstract BigInteger? TotalSupply { [DisplayName(""totalSupply"")] get; } + /// + /// Safe property + /// + public abstract string? Symbol { [DisplayName("symbol")] get; } - /// - /// Safe property - /// - public abstract bool? Verify { [DisplayName(""verify"")] get; } + /// + /// Safe property + /// + public abstract BigInteger? TotalSupply { [DisplayName("totalSupply")] get; } - #endregion + /// + /// Safe property + /// + public abstract bool? Verify { [DisplayName("verify")] get; } - #region Safe methods + #endregion - /// - /// Safe method - /// - [DisplayName(""balanceOf"")] - public abstract BigInteger? BalanceOf(UInt160? owner); + #region Safe methods - #endregion + /// + /// Safe method + /// + [DisplayName("balanceOf")] + public abstract BigInteger? BalanceOf(UInt160? owner); - #region Unsafe methods + #endregion - /// - /// Unsafe method - /// - [DisplayName(""burn"")] - public abstract void Burn(UInt160? account, BigInteger? amount); + #region Unsafe methods - /// - /// Unsafe method - /// - [DisplayName(""mint"")] - public abstract void Mint(UInt160? to, BigInteger? amount); + /// + /// Unsafe method + /// + [DisplayName("burn")] + public abstract void Burn(UInt160? account, BigInteger? amount); - /// - /// Unsafe method - /// - [DisplayName(""myMethod"")] - public abstract string? MyMethod(); + /// + /// Unsafe method + /// + [DisplayName("mint")] + public abstract void Mint(UInt160? to, BigInteger? amount); - /// - /// Unsafe method - /// - [DisplayName(""onNEP17Payment"")] - public abstract void OnNEP17Payment(UInt160? from, BigInteger? amount, object? data = null); + /// + /// Unsafe method + /// + [DisplayName("myMethod")] + public abstract string? MyMethod(); - /// - /// Unsafe method - /// - [DisplayName(""transfer"")] - public abstract bool? Transfer(UInt160? from, UInt160? to, BigInteger? amount, object? data = null); + /// + /// Unsafe method + /// + [DisplayName("onNEP17Payment")] + public abstract void OnNEP17Payment(UInt160? from, BigInteger? amount, object? data = null); - /// - /// Unsafe method - /// - [DisplayName(""update"")] - public abstract void Update(byte[]? nefFile, string? manifest); + /// + /// Unsafe method + /// + [DisplayName("transfer")] + public abstract bool? Transfer(UInt160? from, UInt160? to, BigInteger? amount, object? data = null); - /// - /// Unsafe method - /// - [DisplayName(""withdraw"")] - public abstract bool? Withdraw(UInt160? token, UInt160? to, BigInteger? amount); + /// + /// Unsafe method + /// + [DisplayName("update")] + public abstract void Update(byte[]? nefFile, string? manifest); - #endregion + /// + /// Unsafe method + /// + [DisplayName("withdraw")] + public abstract bool? Withdraw(UInt160? token, UInt160? to, BigInteger? amount); - #region Constructor for internal use only + #endregion - protected Contract1(Neo.SmartContract.Testing.SmartContractInitialize initialize) : base(initialize) { } + } - #endregion -} -".Replace("\r\n", "\n").TrimStart()); + """.Replace("\r\n", "\n").TrimStart()); } } }