From a24e002a9027e97c43dd547e02088189ccbb615d Mon Sep 17 00:00:00 2001 From: Hecate2 <2474101468@qq.com> Date: Fri, 25 Oct 2024 10:56:30 +0800 Subject: [PATCH] artifacts and gas --- .../TestingArtifacts/Contract_BigInteger.cs | 17 +- .../TestingArtifacts/Contract_Linq.cs | 68 +- .../TestingArtifacts/Contract_NEP11.cs | 340 +++-- .../TestingArtifacts/Contract_NEP17.cs | 233 ++-- .../TestingArtifacts/Contract_NULL.cs | 24 +- .../TestingArtifacts/Contract_NullableType.cs | 1208 ++++++++--------- .../TestingArtifacts/Contract_Pattern.cs | 13 +- .../TestingArtifacts/Contract_PostfixUnary.cs | 31 +- .../TestingArtifacts/Contract_Reentrancy.cs | 8 +- .../TestingArtifacts/Contract_String.cs | 8 +- .../TestingArtifacts/Contract_TryCatch.cs | 4 +- .../TestingArtifacts/Contract_UIntTypes.cs | 2 +- .../UnitTest_NullableType.cs | 88 +- .../TestingArtifacts/Contract_Attribute.cs | 4 +- .../TestingArtifacts/Contract_Blockchain.cs | 16 +- .../Contract_ManifestAttribute.cs | 4 +- .../TestingArtifacts/Contract_Nullable.cs | 201 ++- .../TestingArtifacts/Contract_Regex.cs | 12 +- .../TestingArtifacts/Contract_Storage.cs | 4 +- .../Contract_SupportedStandard11Enum.cs | 340 +++-- .../Contract_SupportedStandard17Enum.cs | 233 ++-- .../TestingArtifacts/Contract_UInt.cs | 14 +- .../Nep17ContractTemplate.artifacts.cs | 245 ++-- .../OwnableTemplate.artifacts.cs | 23 +- 24 files changed, 1539 insertions(+), 1601 deletions(-) diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_BigInteger.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_BigInteger.cs index de5e6e3a9..22121a470 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_BigInteger.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_BigInteger.cs @@ -10,12 +10,12 @@ public abstract class Contract_BigInteger(Neo.SmartContract.Testing.SmartContrac { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_BigInteger"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""testPow"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":0,""safe"":false},{""name"":""testSqrt"",""parameters"":[{""name"":""x"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":7,""safe"":false},{""name"":""testsbyte"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":13,""safe"":false},{""name"":""testbyte"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":48,""safe"":false},{""name"":""testshort"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":82,""safe"":false},{""name"":""testushort"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":120,""safe"":false},{""name"":""testint"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":156,""safe"":false},{""name"":""testuint"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":200,""safe"":false},{""name"":""testlong"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":240,""safe"":false},{""name"":""testulong"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":296,""safe"":false},{""name"":""testchar"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":344,""safe"":false},{""name"":""testchartostring"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""String"",""offset"":380,""safe"":false},{""name"":""testIsEven"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":400,""safe"":false},{""name"":""testIsZero"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":408,""safe"":false},{""name"":""testIsOne"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":415,""safe"":false},{""name"":""testSign"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":422,""safe"":false},{""name"":""testAdd"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":428,""safe"":false},{""name"":""testSubtract"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":435,""safe"":false},{""name"":""testNegate"",""parameters"":[{""name"":""x"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":442,""safe"":false},{""name"":""testMultiply"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":448,""safe"":false},{""name"":""testDivide"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":455,""safe"":false},{""name"":""testRemainder"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":462,""safe"":false},{""name"":""testCompare"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":469,""safe"":false},{""name"":""testGreatestCommonDivisor"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":477,""safe"":false},{""name"":""testEquals"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":494,""safe"":false},{""name"":""parseConstant"",""parameters"":[],""returntype"":""Integer"",""offset"":501,""safe"":false},{""name"":""testModPow"",""parameters"":[],""returntype"":""Integer"",""offset"":519,""safe"":false}],""events"":[]},""permissions"":[],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_BigInteger"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""testPow"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":0,""safe"":false},{""name"":""testSqrt"",""parameters"":[{""name"":""x"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":7,""safe"":false},{""name"":""testsbyte"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":13,""safe"":false},{""name"":""testbyte"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":48,""safe"":false},{""name"":""testshort"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":82,""safe"":false},{""name"":""testushort"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":120,""safe"":false},{""name"":""testint"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":156,""safe"":false},{""name"":""testuint"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":200,""safe"":false},{""name"":""testlong"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":240,""safe"":false},{""name"":""testulong"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":296,""safe"":false},{""name"":""testchar"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":344,""safe"":false},{""name"":""testchartostring"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""String"",""offset"":380,""safe"":false},{""name"":""testIsEven"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":400,""safe"":false},{""name"":""testIsZero"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":408,""safe"":false},{""name"":""testIsOne"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":415,""safe"":false},{""name"":""testSign"",""parameters"":[{""name"":""input"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":422,""safe"":false},{""name"":""testAdd"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":428,""safe"":false},{""name"":""testSubtract"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":435,""safe"":false},{""name"":""testNegate"",""parameters"":[{""name"":""x"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":442,""safe"":false},{""name"":""testMultiply"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":448,""safe"":false},{""name"":""testDivide"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":455,""safe"":false},{""name"":""testRemainder"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":462,""safe"":false},{""name"":""testCompare"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":469,""safe"":false},{""name"":""testGreatestCommonDivisor"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":477,""safe"":false},{""name"":""testEquals"",""parameters"":[{""name"":""x"",""type"":""Integer""},{""name"":""y"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":493,""safe"":false},{""name"":""parseConstant"",""parameters"":[],""returntype"":""Integer"",""offset"":500,""safe"":false},{""name"":""testModPow"",""parameters"":[],""returntype"":""Integer"",""offset"":518,""safe"":false}],""events"":[]},""permissions"":[],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0WAlcAAnh5o0BXAAF4pEBXAQE7EgB4SgCAAYAAuyQDOnBoPQ9wDAlleGNlcHRpb246QFcBATsRAHhKEAEAAbskAzpwaD0PcAwJZXhjZXB0aW9uOkBXAQE7FQB4SgEAgAIAgAAAuyQDOnBoPQ9wDAlleGNlcHRpb246QFcBATsTAHhKEAIAAAEAuyQDOnBoPQ9wDAlleGNlcHRpb246QFcBATsbAHhKAgAAAIADAAAAgAAAAAC7JAM6cGg9D3AMCWV4Y2VwdGlvbjpAVwEBOxcAeEoQAwAAAAABAAAAuyQDOnBoPQ9wDAlleGNlcHRpb246QFcBATsnAHhKAwAAAAAAAACABAAAAAAAAACAAAAAAAAAAAC7JAM6cGg9D3AMCWV4Y2VwdGlvbjpAVwEBOx8AeEoQBAAAAAAAAAAAAQAAAAAAAAC7JAM6cGg9D3AMCWV4Y2VwdGlvbjpAVwEBOxMAeEoQAgAAAQC7JAM6cGg9D3AMCWV4Y2VwdGlvbjpAVwEBeEoQAgAAAQC7JAM6cGjbKEBXAAF4EqKqQFcAAXgQs0BXAAF4EbNAVwABeJlAVwACeHmeQFcAAnh5n0BXAAF4m0BXAAJ4eaBAVwACeHmhQFcAAnh5okBXAAJ4eZ+ZQFcAAnh5SlNQokoQsyb5RZpAVwACeHmzQAQAAADk0gzI3NK3UgAAAAAAQFcDABpwE3EAHnJoaWqmQMZHWLU=")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0VAlcAAnh5o0BXAAF4pEBXAQE7EgB4SgCAAYAAuyQDOnBoPQ9wDAlleGNlcHRpb246QFcBATsRAHhKEAEAAbskAzpwaD0PcAwJZXhjZXB0aW9uOkBXAQE7FQB4SgEAgAIAgAAAuyQDOnBoPQ9wDAlleGNlcHRpb246QFcBATsTAHhKEAIAAAEAuyQDOnBoPQ9wDAlleGNlcHRpb246QFcBATsbAHhKAgAAAIADAAAAgAAAAAC7JAM6cGg9D3AMCWV4Y2VwdGlvbjpAVwEBOxcAeEoQAwAAAAABAAAAuyQDOnBoPQ9wDAlleGNlcHRpb246QFcBATsnAHhKAwAAAAAAAACABAAAAAAAAACAAAAAAAAAAAC7JAM6cGg9D3AMCWV4Y2VwdGlvbjpAVwEBOx8AeEoQBAAAAAAAAAAAAQAAAAAAAAC7JAM6cGg9D3AMCWV4Y2VwdGlvbjpAVwEBOxMAeEoQAgAAAQC7JAM6cGg9D3AMCWV4Y2VwdGlvbjpAVwEBeEoQAgAAAQC7JAM6cGjbKEBXAAF4EqKqQFcAAXixqkBXAAF4EbNAVwABeJlAVwACeHmeQFcAAnh5n0BXAAF4m0BXAAJ4eaBAVwACeHmhQFcAAnh5okBXAAJ4eZ+ZQFcAAnh5SlNQokqxJPpFmkBXAAJ4ebNABAAAAOTSDMjc0rdSAAAAAABAVwMAGnATcQAecmhpaqZAWB31KQ==")); #endregion @@ -111,7 +111,7 @@ public abstract class Contract_BigInteger(Neo.SmartContract.Testing.SmartContrac /// Unsafe method /// /// - /// Script: VwACeHlKU1CiShCzJvlFmkA= + /// Script: VwACeHlKU1CiSrEk+kWaQA== /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.LDARG1 @@ -120,12 +120,11 @@ public abstract class Contract_BigInteger(Neo.SmartContract.Testing.SmartContrac /// 07 : OpCode.SWAP /// 08 : OpCode.MOD /// 09 : OpCode.DUP - /// 0A : OpCode.PUSH0 - /// 0B : OpCode.NUMEQUAL - /// 0C : OpCode.JMPIFNOT F9 - /// 0E : OpCode.DROP - /// 0F : OpCode.ABS - /// 10 : OpCode.RET + /// 0A : OpCode.NZ + /// 0B : OpCode.JMPIF FA + /// 0D : OpCode.DROP + /// 0E : OpCode.ABS + /// 0F : OpCode.RET /// [DisplayName("testGreatestCommonDivisor")] public abstract BigInteger? TestGreatestCommonDivisor(BigInteger? x, BigInteger? y); diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Linq.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Linq.cs index 7a7e0d514..5282ebc21 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Linq.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Linq.cs @@ -10,12 +10,12 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_Linq"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""aggregateSum"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Integer"",""offset"":0,""safe"":false},{""name"":""allGreaterThanZero"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Boolean"",""offset"":158,""safe"":false},{""name"":""isEmpty"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Boolean"",""offset"":253,""safe"":false},{""name"":""anyGreaterThanZero"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Boolean"",""offset"":314,""safe"":false},{""name"":""anyGreaterThan"",""parameters"":[{""name"":""array"",""type"":""Array""},{""name"":""target"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":411,""safe"":false},{""name"":""average"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Integer"",""offset"":432,""safe"":false},{""name"":""averageTwice"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Integer"",""offset"":626,""safe"":false},{""name"":""count"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Integer"",""offset"":896,""safe"":false},{""name"":""countGreaterThanZero"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Integer"",""offset"":1010,""safe"":false},{""name"":""contains"",""parameters"":[{""name"":""array"",""type"":""Array""},{""name"":""target"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1158,""safe"":false},{""name"":""containsText"",""parameters"":[{""name"":""array"",""type"":""Array""},{""name"":""target"",""type"":""String""}],""returntype"":""Boolean"",""offset"":1242,""safe"":false},{""name"":""containsPerson"",""parameters"":[{""name"":""array"",""type"":""Array""},{""name"":""target"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1250,""safe"":false},{""name"":""containsPersonIndex"",""parameters"":[{""name"":""array"",""type"":""Array""},{""name"":""targetIndex"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1334,""safe"":false},{""name"":""containsPersonS"",""parameters"":[{""name"":""array"",""type"":""Array""},{""name"":""target"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1393,""safe"":false},{""name"":""firstGreaterThanZero"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Integer"",""offset"":1463,""safe"":false},{""name"":""selectTwice"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Any"",""offset"":1561,""safe"":false},{""name"":""selectPersonS"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Any"",""offset"":1703,""safe"":false},{""name"":""skip"",""parameters"":[{""name"":""array"",""type"":""Array""},{""name"":""count"",""type"":""Integer""}],""returntype"":""Any"",""offset"":1787,""safe"":false},{""name"":""sum"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Integer"",""offset"":1912,""safe"":false},{""name"":""sumTwice"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Integer"",""offset"":2002,""safe"":false},{""name"":""take"",""parameters"":[{""name"":""array"",""type"":""Array""},{""name"":""count"",""type"":""Integer""}],""returntype"":""Any"",""offset"":2191,""safe"":false},{""name"":""toMap"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Any"",""offset"":2316,""safe"":false},{""name"":""whereGreaterThanZero"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Any"",""offset"":2487,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":2587,""safe"":false}],""events"":[]},""permissions"":[{""contract"":""0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"",""methods"":[""itoa""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_Linq"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""aggregateSum"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Integer"",""offset"":0,""safe"":false},{""name"":""allGreaterThanZero"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Boolean"",""offset"":156,""safe"":false},{""name"":""isEmpty"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Boolean"",""offset"":249,""safe"":false},{""name"":""anyGreaterThanZero"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Boolean"",""offset"":309,""safe"":false},{""name"":""anyGreaterThan"",""parameters"":[{""name"":""array"",""type"":""Array""},{""name"":""target"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":405,""safe"":false},{""name"":""average"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Integer"",""offset"":426,""safe"":false},{""name"":""averageTwice"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Integer"",""offset"":619,""safe"":false},{""name"":""count"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Integer"",""offset"":888,""safe"":false},{""name"":""countGreaterThanZero"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Integer"",""offset"":1001,""safe"":false},{""name"":""contains"",""parameters"":[{""name"":""array"",""type"":""Array""},{""name"":""target"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1148,""safe"":false},{""name"":""containsText"",""parameters"":[{""name"":""array"",""type"":""Array""},{""name"":""target"",""type"":""String""}],""returntype"":""Boolean"",""offset"":1232,""safe"":false},{""name"":""containsPerson"",""parameters"":[{""name"":""array"",""type"":""Array""},{""name"":""target"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1240,""safe"":false},{""name"":""containsPersonIndex"",""parameters"":[{""name"":""array"",""type"":""Array""},{""name"":""targetIndex"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1324,""safe"":false},{""name"":""containsPersonS"",""parameters"":[{""name"":""array"",""type"":""Array""},{""name"":""target"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1383,""safe"":false},{""name"":""firstGreaterThanZero"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Integer"",""offset"":1453,""safe"":false},{""name"":""selectTwice"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Any"",""offset"":1550,""safe"":false},{""name"":""selectPersonS"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Any"",""offset"":1691,""safe"":false},{""name"":""skip"",""parameters"":[{""name"":""array"",""type"":""Array""},{""name"":""count"",""type"":""Integer""}],""returntype"":""Any"",""offset"":1775,""safe"":false},{""name"":""sum"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Integer"",""offset"":1899,""safe"":false},{""name"":""sumTwice"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Integer"",""offset"":1989,""safe"":false},{""name"":""take"",""parameters"":[{""name"":""array"",""type"":""Array""},{""name"":""count"",""type"":""Integer""}],""returntype"":""Any"",""offset"":2177,""safe"":false},{""name"":""toMap"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Any"",""offset"":2301,""safe"":false},{""name"":""whereGreaterThanZero"",""parameters"":[{""name"":""array"",""type"":""Array""}],""returntype"":""Any"",""offset"":2471,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":2570,""safe"":false}],""events"":[]},""permissions"":[{""contract"":""0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"",""methods"":[""itoa""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHA7znO4OTpJcbCoGp54UQN2G/OrARpdG9hAQABDwAA/R4KVwABCmYAAAAQeDQDQFcEA3g0JgwEZnVuY3o0N3hKcMpxEHIiDmhqznNreXo2gWqccmppMPJ5QFcAAXgLlyYTDA5zb3VyY2UgaXMgbnVsbDpAVwACeAuXJhF5DAggaXMgbnVsbIvbKDpAVwACeHmeSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn0BXAAEKVQAAAHg0A0BXBAJ4NC4MCXByZWRpY2F0ZXk0lXhKcMpxEHIiEWhqznNreTaqJgQJQGqccmppMO8IQFcAAXgLlyYTDA5zb3VyY2UgaXMgbnVsbDpAVwABeBC3QFcAAXg0BKpAVwQBeDQXeEpwynEQciIIaGrOcwhAamkw+AlAVwABeAuXJhMMDnNvdXJjZSBpcyBudWxsOkBXAAEKVwAAAHg0A0BXBAJ4NDAMCXByZWRpY2F0ZXk1+f7//3hKcMpxEHIiEGhqznNreTYmBAhAapxyamkw8AlAVwABeAuXJhMMDnNvdXJjZSBpcyBudWxsOkBXAAF4ELdAVwACeWAKCQAAAHg0oEBXAAF4WLdAVwABeDQDQFcGAXg1nQAAABBwEHF4SnLKcxB0Im5qbM51aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFaW2eSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3FsnHRsazCSaBCXJhQMD3NvdXJjZSBpcyBlbXB0eTppaKFAVwABeAuXJhMMDnNvdXJjZSBpcyBudWxsOkBXAAEK1gAAAHg0A0BXBgJ4Na8AAAAMCHNlbGVjdG9yeTW//f//EHAQcXhKcspzEHQicGpsznVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEVpbXk2nkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9xbJx0bGswkGgQlyYUDA9zb3VyY2UgaXMgZW1wdHk6aWihQFcAAXgLlyYTDA5zb3VyY2UgaXMgbnVsbDpAVwABEnigSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn0BXAAF4NANAVwUBeDRNEHB4SnHKchBzIjxpa850aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFa5xza2owxGhAVwABeAuXJhMMDnNvdXJjZSBpcyBudWxsOkBXAAEKigAAAHg0A0BXBQJ4NGMMCXByZWRpY2F0ZXk1Qfz//xBweEpxynIQcyJBaWvOdGx5NiY1aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFa5xza2owv2hAVwABeAuXJhMMDnNvdXJjZSBpcyBudWxsOkBXAAF4ELdAVwACeXg0A0BXAAJ5YQpAAAAAeDQDQFcEAng12vz//wwJcHJlZGljYXRleTWg+///eEpwynEQciIQaGrOc2t5NiYECEBqnHJqaTDwCUBXAAF4WZdAVwACeXg0r0BXBQLCcHhKccpyEHMiH2lrznRoEAsSwEo0NGw3AABLEFHQbEsRUdDPa5xza2ow4RALEsBKNBh5NwAASxBR0HlLEVHQcWloNWb///9AVwABeBAL0EBXBQLCcHhKccpyEHMiH2lrznRoEAsSwEo04Gw3AABLEFHQbEsRUdDPa5xza2ow4Wh5znFpaDUj////QFcFAsJweEpxynIQcyIcaWvOdGgQCxK/bDcAAEsQUdBsSxFR0M9rnHNrajDkEAsSv3k3AABLEFHQeUsRUdBxaWg13f7//0BXAAEPClcAAAB4NANAVwQDeDQwDAlwcmVkaWNhdGV5NXv6//94SnDKcRByIhBoas5za3k2JgRrQGqccmppMPB6QFcAAXgLlyYTDA5zb3VyY2UgaXMgbnVsbDpAVwABeBC3QFcAAQpWAAAAeDQDQFcFAng0LwwIc2VsZWN0b3J5NRv6///CcHhKccpyEHMiDmlrznRobHk2z2ucc2tqMPJoQFcAAXgLlyYTDA5zb3VyY2UgaXMgbnVsbDpAVwABeBKgSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn0BXBQHCcHhKccpyEHMiImlrznRoEAsSwEo1b/7//2w3AABLEFHQbEsRUdDPa5xza2ow3goMAAAAaDVG////QFcAARALEr94EM5LEFHQeBHOSxFR0EBXAAJ5eDQDQFcFAng0V8JweEpxynIQcyJGaWvOdHkQtyY3eUqdSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn4FFIgVobM9rnHNrajC6aEBXAAF4C5cmEwwOc291cmNlIGlzIG51bGw6QFcAAXg0A0BXBQF4NdX6//8QcHhKccpyEHMiO2lrznRobJ5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcGucc2tqMMVoQFcAAQqFAAAAeDQDQFcFAng0XgwIc2VsZWN0b3J5NWL4//8QcHhKccpyEHMiPWlrznRobHk2nkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wa5xza2oww2hAVwABeAuXJhMMDnNvdXJjZSBpcyBudWxsOkBXAAESeKBKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfQFcAAnl4NANAVwUCeDRXwnB4SnHKchBzIkZpa850eRC2JgQiP2hsz3lKnUoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ+BRWucc2tqMLpoQFcAAXgLlyYTDA5zb3VyY2UgaXMgbnVsbDpAVwEBChoAAAB4NRD9//9wCpAAAAAKkAAAAGg0GEBXAAEQCxK/eDcAAEsQUdB4SxFR0EBXBQN4NE8MC2tleVNlbGVjdG9yeTX/9v//DA9lbGVtZW50U2VsZWN0b3J6Nej2///IcHhKccpyEHMiFGlrznRsejZKbHk2aFPQRWucc2tqMOxoQFcAAXgLlyYTDA5zb3VyY2UgaXMgbnVsbDpAVwABeEBXAAF4EM5AVwABCloAAAB4NANAVwUCeDQzDAlwcmVkaWNhdGV5NXz2///CcHhKccpyEHMiEWlrznRseTYmBWhsz2ucc2tqMO9oQFcAAXgLlyYTDA5zb3VyY2UgaXMgbnVsbDpAVwABeBC3QFYCQJyv9n8=")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHA7znO4OTpJcbCoGp54UQN2G/OrARpdG9hAQABDwAA/Q0KVwABCmQAAAAQeDQDQFcEA3g0JgwEZnVuY3o0NnhKcMpxEHIiDmhqznNreXo2gWqccmppMPJ5QFcAAXjYJhMMDnNvdXJjZSBpcyBudWxsOkBXAAJ42CYReQwIIGlzIG51bGyL2yg6QFcAAnh5nkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9AVwABClMAAAB4NANAVwQCeDQtDAlwcmVkaWNhdGV5NJZ4SnDKcRByIhBoas5za3k2JAQJQGqccmppMPAIQFcAAXjYJhMMDnNvdXJjZSBpcyBudWxsOkBXAAF4ELdAVwABeDQEqkBXBAF4NBd4SnDKcRByIghoas5zCEBqaTD4CUBXAAF42CYTDA5zb3VyY2UgaXMgbnVsbDpAVwABClYAAAB4NANAVwQCeDQwDAlwcmVkaWNhdGV5Nf3+//94SnDKcRByIhBoas5za3k2JgQIQGqccmppMPAJQFcAAXjYJhMMDnNvdXJjZSBpcyBudWxsOkBXAAF4ELdAVwACeWAKCQAAAHg0oUBXAAF4WLdAVwABeDQDQFcGAXg1nQAAABBwEHF4SnLKcxB0Im5qbM51aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFaW2eSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3FsnHRsazCSaBCXJhQMD3NvdXJjZSBpcyBlbXB0eTppaKFAVwABeNgmEwwOc291cmNlIGlzIG51bGw6QFcAAQrVAAAAeDQDQFcGAng1rwAAAAwIc2VsZWN0b3J5NcX9//8QcBBxeEpyynMQdCJwamzOdWhKnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wRWlteTaeSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3FsnHRsazCQaBCXJhQMD3NvdXJjZSBpcyBlbXB0eTppaKFAVwABeNgmEwwOc291cmNlIGlzIG51bGw6QFcAARJ4oEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9AVwABeDQDQFcFAXg0TRBweEpxynIQcyI8aWvOdGhKnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wRWucc2tqMMRoQFcAAXjYJhMMDnNvdXJjZSBpcyBudWxsOkBXAAEKiQAAAHg0A0BXBQJ4NGMMCXByZWRpY2F0ZXk1Sfz//xBweEpxynIQcyJBaWvOdGx5NiY1aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFa5xza2owv2hAVwABeNgmEwwOc291cmNlIGlzIG51bGw6QFcAAXgQt0BXAAJ5eDQDQFcAAnlhCkAAAAB4NANAVwQCeDXf/P//DAlwcmVkaWNhdGV5Nan7//94SnDKcRByIhBoas5za3k2JgQIQGqccmppMPAJQFcAAXhZl0BXAAJ5eDSvQFcFAsJweEpxynIQcyIfaWvOdGgQCxLASjQ0bDcAAEsQUdBsSxFR0M9rnHNrajDhEAsSwEo0GHk3AABLEFHQeUsRUdBxaWg1Zv///0BXAAF4EAvQQFcFAsJweEpxynIQcyIfaWvOdGgQCxLASjTgbDcAAEsQUdBsSxFR0M9rnHNrajDhaHnOcWloNSP///9AVwUCwnB4SnHKchBzIhxpa850aBALEr9sNwAASxBR0GxLEVHQz2ucc2tqMOQQCxK/eTcAAEsQUdB5SxFR0HFpaDXd/v//QFcAAQ8KVgAAAHg0A0BXBAN4NDAMCXByZWRpY2F0ZXk1hPr//3hKcMpxEHIiEGhqznNreTYmBGtAapxyamkw8HpAVwABeNgmEwwOc291cmNlIGlzIG51bGw6QFcAAXgQt0BXAAEKVQAAAHg0A0BXBQJ4NC8MCHNlbGVjdG9yeTUl+v//wnB4SnHKchBzIg5pa850aGx5Ns9rnHNrajDyaEBXAAF42CYTDA5zb3VyY2UgaXMgbnVsbDpAVwABeBKgSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn0BXBQHCcHhKccpyEHMiImlrznRoEAsSwEo1cf7//2w3AABLEFHQbEsRUdDPa5xza2ow3goMAAAAaDVH////QFcAARALEr94EM5LEFHQeBHOSxFR0EBXAAJ5eDQDQFcFAng0V8JweEpxynIQcyJGaWvOdHkQtyY3eUqdSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn4FFIgVobM9rnHNrajC6aEBXAAF42CYTDA5zb3VyY2UgaXMgbnVsbDpAVwABeDQDQFcFAXg13Pr//xBweEpxynIQcyI7aWvOdGhsnkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wa5xza2owxWhAVwABCoQAAAB4NANAVwUCeDReDAhzZWxlY3Rvcnk1bvj//xBweEpxynIQcyI9aWvOdGhseTaeSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BrnHNrajDDaEBXAAF42CYTDA5zb3VyY2UgaXMgbnVsbDpAVwABEnigSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn0BXAAJ5eDQDQFcFAng0V8JweEpxynIQcyJGaWvOdHkQtiYEIj9obM95Sp1KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfgUVrnHNrajC6aEBXAAF42CYTDA5zb3VyY2UgaXMgbnVsbDpAVwEBChoAAAB4NRT9//9wCo8AAAAKjwAAAGg0GEBXAAEQCxK/eDcAAEsQUdB4SxFR0EBXBQN4NE8MC2tleVNlbGVjdG9yeTUN9///DA9lbGVtZW50U2VsZWN0b3J6Nfb2///IcHhKccpyEHMiFGlrznRsejZKbHk2aFPQRWucc2tqMOxoQFcAAXjYJhMMDnNvdXJjZSBpcyBudWxsOkBXAAF4QFcAAXgQzkBXAAEKWQAAAHg0A0BXBQJ4NDMMCXByZWRpY2F0ZXk1i/b//8JweEpxynIQcyIRaWvOdGx5NiYFaGzPa5xza2ow72hAVwABeNgmEwwOc291cmNlIGlzIG51bGw6QFcAAXgQt0BWAkCV3pI5")); #endregion @@ -25,9 +25,9 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwABCmYAAAAQeDQDQA== + /// Script: VwABCmQAAAAQeDQDQA== /// 00 : OpCode.INITSLOT 0001 - /// 03 : OpCode.PUSHA 66000000 + /// 03 : OpCode.PUSHA 64000000 /// 08 : OpCode.PUSH0 /// 09 : OpCode.LDARG0 /// 0A : OpCode.CALL 03 @@ -40,9 +40,9 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwABClUAAAB4NANA + /// Script: VwABClMAAAB4NANA /// 00 : OpCode.INITSLOT 0001 - /// 03 : OpCode.PUSHA 55000000 + /// 03 : OpCode.PUSHA 53000000 /// 08 : OpCode.LDARG0 /// 09 : OpCode.CALL 03 /// 0B : OpCode.RET @@ -54,13 +54,13 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwACeWAKCQAAAHg0oEA= + /// Script: VwACeWAKCQAAAHg0oUA= /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG1 /// 04 : OpCode.STSFLD0 /// 05 : OpCode.PUSHA 09000000 /// 0A : OpCode.LDARG0 - /// 0B : OpCode.CALL A0 + /// 0B : OpCode.CALL A1 /// 0D : OpCode.RET /// [DisplayName("anyGreaterThan")] @@ -70,9 +70,9 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwABClcAAAB4NANA + /// Script: VwABClYAAAB4NANA /// 00 : OpCode.INITSLOT 0001 - /// 03 : OpCode.PUSHA 57000000 + /// 03 : OpCode.PUSHA 56000000 /// 08 : OpCode.LDARG0 /// 09 : OpCode.CALL 03 /// 0B : OpCode.RET @@ -84,13 +84,13 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwYCeDWvAAAADHNlbGVjdG9yeTW//f//EHAQcXhKcspzEHQicGpsznVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEVpbXk2nkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9xbJx0bGswkGgQlyYUDHNvdXJjZSBpcyBlbXB0eTppaKFA + /// Script: VwYCeDWvAAAADHNlbGVjdG9yeTXF/f//EHAQcXhKcspzEHQicGpsznVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEVpbXk2nkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9xbJx0bGswkGgQlyYUDHNvdXJjZSBpcyBlbXB0eTppaKFA /// 00 : OpCode.INITSLOT 0602 /// 03 : OpCode.LDARG0 /// 04 : OpCode.CALL_L AF000000 /// 09 : OpCode.PUSHDATA1 73656C6563746F72 /// 13 : OpCode.LDARG1 - /// 14 : OpCode.CALL_L BFFDFFFF + /// 14 : OpCode.CALL_L C5FDFFFF /// 19 : OpCode.PUSH0 /// 1A : OpCode.STLOC0 /// 1B : OpCode.PUSH0 @@ -170,9 +170,9 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwABCtYAAAB4NANA + /// Script: VwABCtUAAAB4NANA /// 00 : OpCode.INITSLOT 0001 - /// 03 : OpCode.PUSHA D6000000 + /// 03 : OpCode.PUSHA D5000000 /// 08 : OpCode.LDARG0 /// 09 : OpCode.CALL 03 /// 0B : OpCode.RET @@ -409,13 +409,13 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwUCeDRjDHByZWRpY2F0ZXk1Qfz//xBweEpxynIQcyJBaWvOdGx5NiY1aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFa5xza2owv2hA + /// Script: VwUCeDRjDHByZWRpY2F0ZXk1Sfz//xBweEpxynIQcyJBaWvOdGx5NiY1aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFa5xza2owv2hA /// 00 : OpCode.INITSLOT 0502 /// 03 : OpCode.LDARG0 /// 04 : OpCode.CALL 63 /// 06 : OpCode.PUSHDATA1 707265646963617465 /// 11 : OpCode.LDARG1 - /// 12 : OpCode.CALL_L 41FCFFFF + /// 12 : OpCode.CALL_L 49FCFFFF /// 17 : OpCode.PUSH0 /// 18 : OpCode.STLOC0 /// 19 : OpCode.LDARG0 @@ -469,9 +469,9 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwABCooAAAB4NANA + /// Script: VwABCokAAAB4NANA /// 00 : OpCode.INITSLOT 0001 - /// 03 : OpCode.PUSHA 8A000000 + /// 03 : OpCode.PUSHA 89000000 /// 08 : OpCode.LDARG0 /// 09 : OpCode.CALL 03 /// 0B : OpCode.RET @@ -483,10 +483,10 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwABDwpXAAAAeDQDQA== + /// Script: VwABDwpWAAAAeDQDQA== /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.PUSHM1 - /// 04 : OpCode.PUSHA 57000000 + /// 04 : OpCode.PUSHA 56000000 /// 09 : OpCode.LDARG0 /// 0A : OpCode.CALL 03 /// 0C : OpCode.RET @@ -512,7 +512,7 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwUBwnB4SnHKchBzIiJpa850aBALEsBKNW/+//9sNwAASxBR0GxLEVHQz2ucc2tqMN4KDAAAAGg1Rv///0A= + /// Script: VwUBwnB4SnHKchBzIiJpa850aBALEsBKNXH+//9sNwAASxBR0GxLEVHQz2ucc2tqMN4KDAAAAGg1R////0A= /// 00 : OpCode.INITSLOT 0501 /// 03 : OpCode.NEWARRAY0 /// 04 : OpCode.STLOC0 @@ -534,7 +534,7 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// 15 : OpCode.PUSH2 /// 16 : OpCode.PACK /// 17 : OpCode.DUP - /// 18 : OpCode.CALL_L 6FFEFFFF + /// 18 : OpCode.CALL_L 71FEFFFF /// 1D : OpCode.LDLOC4 /// 1E : OpCode.CALLT 0000 /// 21 : OpCode.OVER @@ -555,7 +555,7 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// 30 : OpCode.JMPLT DE /// 32 : OpCode.PUSHA 0C000000 /// 37 : OpCode.LDLOC0 - /// 38 : OpCode.CALL_L 46FFFFFF + /// 38 : OpCode.CALL_L 47FFFFFF /// 3D : OpCode.RET /// [DisplayName("selectPersonS")] @@ -565,9 +565,9 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwABClYAAAB4NANA + /// Script: VwABClUAAAB4NANA /// 00 : OpCode.INITSLOT 0001 - /// 03 : OpCode.PUSHA 56000000 + /// 03 : OpCode.PUSHA 55000000 /// 08 : OpCode.LDARG0 /// 09 : OpCode.CALL 03 /// 0B : OpCode.RET @@ -640,13 +640,13 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwUCeDReDHNlbGVjdG9yeTVi+P//EHB4SnHKchBzIj1pa850aGx5Np5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcGucc2tqMMNoQA== + /// Script: VwUCeDReDHNlbGVjdG9yeTVu+P//EHB4SnHKchBzIj1pa850aGx5Np5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcGucc2tqMMNoQA== /// 00 : OpCode.INITSLOT 0502 /// 03 : OpCode.LDARG0 /// 04 : OpCode.CALL 5E /// 06 : OpCode.PUSHDATA1 73656C6563746F72 /// 10 : OpCode.LDARG1 - /// 11 : OpCode.CALL_L 62F8FFFF + /// 11 : OpCode.CALL_L 6EF8FFFF /// 16 : OpCode.PUSH0 /// 17 : OpCode.STLOC0 /// 18 : OpCode.LDARG0 @@ -697,9 +697,9 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwABCoUAAAB4NANA + /// Script: VwABCoQAAAB4NANA /// 00 : OpCode.INITSLOT 0001 - /// 03 : OpCode.PUSHA 85000000 + /// 03 : OpCode.PUSHA 84000000 /// 08 : OpCode.LDARG0 /// 09 : OpCode.CALL 03 /// 0B : OpCode.RET @@ -772,16 +772,16 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwUDeDRPDGtleVNlbGVjdG9yeTX/9v//DGVsZW1lbnRTZWxlY3Rvcno16Pb//8hweEpxynIQcyIUaWvOdGx6NkpseTZoU9BFa5xza2ow7GhA + /// Script: VwUDeDRPDGtleVNlbGVjdG9yeTUN9///DGVsZW1lbnRTZWxlY3Rvcno19vb//8hweEpxynIQcyIUaWvOdGx6NkpseTZoU9BFa5xza2ow7GhA /// 00 : OpCode.INITSLOT 0503 /// 03 : OpCode.LDARG0 /// 04 : OpCode.CALL 4F /// 06 : OpCode.PUSHDATA1 6B657953656C6563746F72 /// 13 : OpCode.LDARG1 - /// 14 : OpCode.CALL_L FFF6FFFF + /// 14 : OpCode.CALL_L 0DF7FFFF /// 19 : OpCode.PUSHDATA1 656C656D656E7453656C6563746F72 /// 2A : OpCode.LDARG2 - /// 2B : OpCode.CALL_L E8F6FFFF + /// 2B : OpCode.CALL_L F6F6FFFF /// 30 : OpCode.NEWMAP /// 31 : OpCode.STLOC0 /// 32 : OpCode.LDARG0 @@ -823,9 +823,9 @@ public abstract class Contract_Linq(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwABCloAAAB4NANA + /// Script: VwABClkAAAB4NANA /// 00 : OpCode.INITSLOT 0001 - /// 03 : OpCode.PUSHA 5A000000 + /// 03 : OpCode.PUSHA 59000000 /// 08 : OpCode.LDARG0 /// 09 : OpCode.CALL 03 /// 0B : OpCode.RET diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NEP11.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NEP11.cs index 782de98d6..cf662d4e3 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NEP11.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NEP11.cs @@ -10,12 +10,12 @@ public abstract class Contract_NEP11(Neo.SmartContract.Testing.SmartContractInit { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_NEP11"",""groups"":[],""features"":{},""supportedstandards"":[""NEP-11""],""abi"":{""methods"":[{""name"":""symbol"",""parameters"":[],""returntype"":""String"",""offset"":0,""safe"":true},{""name"":""decimals"",""parameters"":[],""returntype"":""Integer"",""offset"":7,""safe"":true},{""name"":""totalSupply"",""parameters"":[],""returntype"":""Integer"",""offset"":9,""safe"":true},{""name"":""balanceOf"",""parameters"":[{""name"":""owner"",""type"":""Hash160""}],""returntype"":""Integer"",""offset"":35,""safe"":true},{""name"":""ownerOf"",""parameters"":[{""name"":""tokenId"",""type"":""ByteArray""}],""returntype"":""Hash160"",""offset"":218,""safe"":true},{""name"":""properties"",""parameters"":[{""name"":""tokenId"",""type"":""ByteArray""}],""returntype"":""Map"",""offset"":377,""safe"":true},{""name"":""tokens"",""parameters"":[],""returntype"":""InteropInterface"",""offset"":424,""safe"":true},{""name"":""tokensOf"",""parameters"":[{""name"":""owner"",""type"":""Hash160""}],""returntype"":""InteropInterface"",""offset"":452,""safe"":true},{""name"":""transfer"",""parameters"":[{""name"":""to"",""type"":""Hash160""},{""name"":""tokenId"",""type"":""ByteArray""},{""name"":""data"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":541,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":835,""safe"":false}],""events"":[{""name"":""Transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""},{""name"":""tokenId"",""type"":""ByteArray""}]}]},""permissions"":[{""contract"":""0x726cb6e0cd8628a1350a611384688911ab75f51b"",""methods"":[""sha256""]},{""contract"":""0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"",""methods"":[""deserialize"",""serialize""]},{""contract"":""0xfffdc93764dbaddd97c48f252a53ea4643faa3fd"",""methods"":[""getContract""]},{""contract"":""*"",""methods"":[""onNEP11Payment""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_NEP11"",""groups"":[],""features"":{},""supportedstandards"":[""NEP-11""],""abi"":{""methods"":[{""name"":""symbol"",""parameters"":[],""returntype"":""String"",""offset"":0,""safe"":true},{""name"":""decimals"",""parameters"":[],""returntype"":""Integer"",""offset"":7,""safe"":true},{""name"":""totalSupply"",""parameters"":[],""returntype"":""Integer"",""offset"":9,""safe"":true},{""name"":""balanceOf"",""parameters"":[{""name"":""owner"",""type"":""Hash160""}],""returntype"":""Integer"",""offset"":35,""safe"":true},{""name"":""ownerOf"",""parameters"":[{""name"":""tokenId"",""type"":""ByteArray""}],""returntype"":""Hash160"",""offset"":216,""safe"":true},{""name"":""properties"",""parameters"":[{""name"":""tokenId"",""type"":""ByteArray""}],""returntype"":""Map"",""offset"":375,""safe"":true},{""name"":""tokens"",""parameters"":[],""returntype"":""InteropInterface"",""offset"":422,""safe"":true},{""name"":""tokensOf"",""parameters"":[{""name"":""owner"",""type"":""Hash160""}],""returntype"":""InteropInterface"",""offset"":450,""safe"":true},{""name"":""transfer"",""parameters"":[{""name"":""to"",""type"":""Hash160""},{""name"":""tokenId"",""type"":""ByteArray""},{""name"":""data"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":538,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":827,""safe"":false}],""events"":[{""name"":""Transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""},{""name"":""tokenId"",""type"":""ByteArray""}]}]},""permissions"":[{""contract"":""0x726cb6e0cd8628a1350a611384688911ab75f51b"",""methods"":[""sha256""]},{""contract"":""0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"",""methods"":[""deserialize"",""serialize""]},{""contract"":""0xfffdc93764dbaddd97c48f252a53ea4643faa3fd"",""methods"":[""getContract""]},{""contract"":""*"",""methods"":[""onNEP11Payment""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATA7znO4OTpJcbCoGp54UQN2G/OrAtkZXNlcmlhbGl6ZQEAAQ/A7znO4OTpJcbCoGp54UQN2G/OrAlzZXJpYWxpemUBAAEP/aP6Q0bqUyolj8SX3a3bZDfJ/f8LZ2V0Q29udHJhY3QBAAEPG/V1qxGJaIQTYQo1oSiGzeC2bHIGc2hhMjU2AQABDwAA/UYDDARURVNUQBBAWNgmFwwBAEH2tGviQZJd6DFK2CYERRBKYEBXAQF4cGgLlyYFCCINeErZKFDKABSzq6omJQwgVGhlIGFyZ3VtZW50ICJvd25lciIgaXMgaW52YWxpZC46QZv2Z84REYhOEFHQUBLAcHhowUVTi1BBkl3oMUrYJgRFENshQFcCAkGb9mfOERGIThBR0FASwHB4aMFFU4tQQZJd6DFK2CYERRDbIXFpeZ5xaRC1JgQJQGkQsyYQeGjBRVOLUEEvWMXtIg9peGjBRVOLUEHmPxiECEBXAwF4ygBAtyY8DDdUaGUgYXJndW1lbnQgInRva2VuSWQiIHNob3VsZCBiZSA2NCBvciBsZXNzIGJ5dGVzIGxvbmcuOhMRiE4QUdBBm/ZnzhLAcHhowUVTi1BBkl3oMUrYJjRFDC5UaGUgdG9rZW4gd2l0aCBnaXZlbiAidG9rZW5JZCIgZG9lcyBub3QgZXhpc3QuOnFpNwAAcmoQzkBXAgETEYhOEFHQQZv2Z84SwHB4aMFFU4tQQZJd6DE3AABxyEoMBG5hbWVpEc7QQFcBABMRiE4QUdBBm/ZnzhLAcBNowUVB3zC4mkBXAQF4cGgLlyYFCCINeErZKFDKABSzq6omJAwfVGhlIGFyZ3VtZW50ICJvd25lciIgaXMgaW52YWxpZDoUEYhOEFHQQZv2Z84SwHATeGjBRVOLUEHfMLiaQFcDA3hwaAuXJgUIIg14StkoUMoAFLOrqiYiDB1UaGUgYXJndW1lbnQgInRvIiBpcyBpbnZhbGlkLjoTEYhOEFHQQZv2Z84SwHB5aMFFU4tQQZJd6DE3AABxaRDOcmpB+CfsjKomBAlAaniYJiV4SmkQUdBFaTcBAEp5aMFFU4tQQeY/GIRFD3lqNA8ReXg0Cnp5eGo0RQhAVwIDeng1y/3//0VBm/ZnzhQRiE4QUdBQEsBweHmL2yhxehC3JhAQaWjBRVOLUEHmPxiEQGlowUVTi1BBL1jF7UBXAQR6EXl4FMAMCFRyYW5zZmVyQZUBb2F5cGgLl6okBQkiC3k3AgBwaAuXqiYge3oReBTAHwwOb25ORVAxMVBheW1lbnR5QWJ9W1JFQFYBQFLshJc=")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATA7znO4OTpJcbCoGp54UQN2G/OrAtkZXNlcmlhbGl6ZQEAAQ/A7znO4OTpJcbCoGp54UQN2G/OrAlzZXJpYWxpemUBAAEP/aP6Q0bqUyolj8SX3a3bZDfJ/f8LZ2V0Q29udHJhY3QBAAEPG/V1qxGJaIQTYQo1oSiGzeC2bHIGc2hhMjU2AQABDwAA/T4DDARURVNUQBBAWNgmFwwBAEH2tGviQZJd6DFK2CYERRBKYEBXAQF4cGjYJgUIIg14StkoUMoAFLOrqiYlDCBUaGUgYXJndW1lbnQgIm93bmVyIiBpcyBpbnZhbGlkLjpBm/ZnzhERiE4QUdBQEsBweGjBRVOLUEGSXegxStgmBEUQ2yFAVwICQZv2Z84REYhOEFHQUBLAcHhowUVTi1BBkl3oMUrYJgRFENshcWl5nnFpELUmBAlAabEkEHhowUVTi1BBL1jF7SIPaXhowUVTi1BB5j8YhAhAVwMBeMoAQLcmPAw3VGhlIGFyZ3VtZW50ICJ0b2tlbklkIiBzaG91bGQgYmUgNjQgb3IgbGVzcyBieXRlcyBsb25nLjoTEYhOEFHQQZv2Z84SwHB4aMFFU4tQQZJd6DFK2CY0RQwuVGhlIHRva2VuIHdpdGggZ2l2ZW4gInRva2VuSWQiIGRvZXMgbm90IGV4aXN0LjpxaTcAAHJqEM5AVwIBExGIThBR0EGb9mfOEsBweGjBRVOLUEGSXegxNwAAcchKDARuYW1laRHO0EBXAQATEYhOEFHQQZv2Z84SwHATaMFFQd8wuJpAVwEBeHBo2CYFCCINeErZKFDKABSzq6omJAwfVGhlIGFyZ3VtZW50ICJvd25lciIgaXMgaW52YWxpZDoUEYhOEFHQQZv2Z84SwHATeGjBRVOLUEHfMLiaQFcDA3hwaNgmBQgiDXhK2ShQygAUs6uqJiIMHVRoZSBhcmd1bWVudCAidG8iIGlzIGludmFsaWQuOhMRiE4QUdBBm/ZnzhLAcHlowUVTi1BBkl3oMTcAAHFpEM5yakH4J+yMJAQJQGp4mCYleEppEFHQRWk3AQBKeWjBRVOLUEHmPxiERQ95ajQPEXl4NAp6eXhqNEUIQFcCA3p4Nc/9//9FQZv2Z84UEYhOEFHQUBLAcHh5i9socXoQtyYQEGlowUVTi1BB5j8YhEBpaMFFU4tQQS9Yxe1AVwEEehF5eBTADAhUcmFuc2ZlckGVAW9heXBo2CYFCSIKeTcCAHBo2KomIHt6EXgUwB8MDm9uTkVQMTFQYXltZW50eUFifVtSRUBWAUAg8GE8")); #endregion @@ -58,55 +58,54 @@ public abstract class Contract_NEP11(Neo.SmartContract.Testing.SmartContractInit /// Safe method /// /// - /// Script: VwEBeHBoC5cmBQgiDXhK2ShQygAUs6uqJiUMVGhlIGFyZ3VtZW50ICJvd25lciIgaXMgaW52YWxpZC46QZv2Z84REYhOEFHQUBLAcHhowUVTi1BBkl3oMUrYJgRFENshQA== + /// Script: VwEBeHBo2CYFCCINeErZKFDKABSzq6omJQxUaGUgYXJndW1lbnQgIm93bmVyIiBpcyBpbnZhbGlkLjpBm/ZnzhERiE4QUdBQEsBweGjBRVOLUEGSXegxStgmBEUQ2yFA /// 00 : OpCode.INITSLOT 0101 /// 03 : OpCode.LDARG0 /// 04 : OpCode.STLOC0 /// 05 : OpCode.LDLOC0 - /// 06 : OpCode.PUSHNULL - /// 07 : OpCode.EQUAL - /// 08 : OpCode.JMPIFNOT 05 - /// 0A : OpCode.PUSHT - /// 0B : OpCode.JMP 0D - /// 0D : OpCode.LDARG0 - /// 0E : OpCode.DUP - /// 0F : OpCode.ISTYPE 28 - /// 11 : OpCode.SWAP - /// 12 : OpCode.SIZE - /// 13 : OpCode.PUSHINT8 14 - /// 15 : OpCode.NUMEQUAL - /// 16 : OpCode.BOOLAND - /// 17 : OpCode.NOT - /// 18 : OpCode.JMPIFNOT 25 - /// 1A : OpCode.PUSHDATA1 54686520617267756D656E7420226F776E65722220697320696E76616C69642E - /// 3C : OpCode.THROW - /// 3D : OpCode.SYSCALL 9BF667CE + /// 06 : OpCode.ISNULL + /// 07 : OpCode.JMPIFNOT 05 + /// 09 : OpCode.PUSHT + /// 0A : OpCode.JMP 0D + /// 0C : OpCode.LDARG0 + /// 0D : OpCode.DUP + /// 0E : OpCode.ISTYPE 28 + /// 10 : OpCode.SWAP + /// 11 : OpCode.SIZE + /// 12 : OpCode.PUSHINT8 14 + /// 14 : OpCode.NUMEQUAL + /// 15 : OpCode.BOOLAND + /// 16 : OpCode.NOT + /// 17 : OpCode.JMPIFNOT 25 + /// 19 : OpCode.PUSHDATA1 54686520617267756D656E7420226F776E65722220697320696E76616C69642E + /// 3B : OpCode.THROW + /// 3C : OpCode.SYSCALL 9BF667CE + /// 41 : OpCode.PUSH1 /// 42 : OpCode.PUSH1 - /// 43 : OpCode.PUSH1 - /// 44 : OpCode.NEWBUFFER - /// 45 : OpCode.TUCK - /// 46 : OpCode.PUSH0 - /// 47 : OpCode.ROT - /// 48 : OpCode.SETITEM - /// 49 : OpCode.SWAP - /// 4A : OpCode.PUSH2 - /// 4B : OpCode.PACK - /// 4C : OpCode.STLOC0 - /// 4D : OpCode.LDARG0 - /// 4E : OpCode.LDLOC0 - /// 4F : OpCode.UNPACK - /// 50 : OpCode.DROP - /// 51 : OpCode.REVERSE3 - /// 52 : OpCode.CAT - /// 53 : OpCode.SWAP - /// 54 : OpCode.SYSCALL 925DE831 - /// 59 : OpCode.DUP - /// 5A : OpCode.ISNULL - /// 5B : OpCode.JMPIFNOT 04 - /// 5D : OpCode.DROP - /// 5E : OpCode.PUSH0 - /// 5F : OpCode.CONVERT 21 - /// 61 : OpCode.RET + /// 43 : OpCode.NEWBUFFER + /// 44 : OpCode.TUCK + /// 45 : OpCode.PUSH0 + /// 46 : OpCode.ROT + /// 47 : OpCode.SETITEM + /// 48 : OpCode.SWAP + /// 49 : OpCode.PUSH2 + /// 4A : OpCode.PACK + /// 4B : OpCode.STLOC0 + /// 4C : OpCode.LDARG0 + /// 4D : OpCode.LDLOC0 + /// 4E : OpCode.UNPACK + /// 4F : OpCode.DROP + /// 50 : OpCode.REVERSE3 + /// 51 : OpCode.CAT + /// 52 : OpCode.SWAP + /// 53 : OpCode.SYSCALL 925DE831 + /// 58 : OpCode.DUP + /// 59 : OpCode.ISNULL + /// 5A : OpCode.JMPIFNOT 04 + /// 5C : OpCode.DROP + /// 5D : OpCode.PUSH0 + /// 5E : OpCode.CONVERT 21 + /// 60 : OpCode.RET /// [DisplayName("balanceOf")] public abstract BigInteger? BalanceOf(UInt160? owner); @@ -204,49 +203,48 @@ public abstract class Contract_NEP11(Neo.SmartContract.Testing.SmartContractInit /// Safe method /// /// - /// Script: VwEBeHBoC5cmBQgiDXhK2ShQygAUs6uqJiQMVGhlIGFyZ3VtZW50ICJvd25lciIgaXMgaW52YWxpZDoUEYhOEFHQQZv2Z84SwHATeGjBRVOLUEHfMLiaQA== + /// Script: VwEBeHBo2CYFCCINeErZKFDKABSzq6omJAxUaGUgYXJndW1lbnQgIm93bmVyIiBpcyBpbnZhbGlkOhQRiE4QUdBBm/ZnzhLAcBN4aMFFU4tQQd8wuJpA /// 00 : OpCode.INITSLOT 0101 /// 03 : OpCode.LDARG0 /// 04 : OpCode.STLOC0 /// 05 : OpCode.LDLOC0 - /// 06 : OpCode.PUSHNULL - /// 07 : OpCode.EQUAL - /// 08 : OpCode.JMPIFNOT 05 - /// 0A : OpCode.PUSHT - /// 0B : OpCode.JMP 0D - /// 0D : OpCode.LDARG0 - /// 0E : OpCode.DUP - /// 0F : OpCode.ISTYPE 28 - /// 11 : OpCode.SWAP - /// 12 : OpCode.SIZE - /// 13 : OpCode.PUSHINT8 14 - /// 15 : OpCode.NUMEQUAL - /// 16 : OpCode.BOOLAND - /// 17 : OpCode.NOT - /// 18 : OpCode.JMPIFNOT 24 - /// 1A : OpCode.PUSHDATA1 54686520617267756D656E7420226F776E65722220697320696E76616C6964 - /// 3B : OpCode.THROW - /// 3C : OpCode.PUSH4 - /// 3D : OpCode.PUSH1 - /// 3E : OpCode.NEWBUFFER - /// 3F : OpCode.TUCK - /// 40 : OpCode.PUSH0 - /// 41 : OpCode.ROT - /// 42 : OpCode.SETITEM - /// 43 : OpCode.SYSCALL 9BF667CE - /// 48 : OpCode.PUSH2 - /// 49 : OpCode.PACK - /// 4A : OpCode.STLOC0 - /// 4B : OpCode.PUSH3 - /// 4C : OpCode.LDARG0 - /// 4D : OpCode.LDLOC0 - /// 4E : OpCode.UNPACK - /// 4F : OpCode.DROP - /// 50 : OpCode.REVERSE3 - /// 51 : OpCode.CAT - /// 52 : OpCode.SWAP - /// 53 : OpCode.SYSCALL DF30B89A - /// 58 : OpCode.RET + /// 06 : OpCode.ISNULL + /// 07 : OpCode.JMPIFNOT 05 + /// 09 : OpCode.PUSHT + /// 0A : OpCode.JMP 0D + /// 0C : OpCode.LDARG0 + /// 0D : OpCode.DUP + /// 0E : OpCode.ISTYPE 28 + /// 10 : OpCode.SWAP + /// 11 : OpCode.SIZE + /// 12 : OpCode.PUSHINT8 14 + /// 14 : OpCode.NUMEQUAL + /// 15 : OpCode.BOOLAND + /// 16 : OpCode.NOT + /// 17 : OpCode.JMPIFNOT 24 + /// 19 : OpCode.PUSHDATA1 54686520617267756D656E7420226F776E65722220697320696E76616C6964 + /// 3A : OpCode.THROW + /// 3B : OpCode.PUSH4 + /// 3C : OpCode.PUSH1 + /// 3D : OpCode.NEWBUFFER + /// 3E : OpCode.TUCK + /// 3F : OpCode.PUSH0 + /// 40 : OpCode.ROT + /// 41 : OpCode.SETITEM + /// 42 : OpCode.SYSCALL 9BF667CE + /// 47 : OpCode.PUSH2 + /// 48 : OpCode.PACK + /// 49 : OpCode.STLOC0 + /// 4A : OpCode.PUSH3 + /// 4B : OpCode.LDARG0 + /// 4C : OpCode.LDLOC0 + /// 4D : OpCode.UNPACK + /// 4E : OpCode.DROP + /// 4F : OpCode.REVERSE3 + /// 50 : OpCode.CAT + /// 51 : OpCode.SWAP + /// 52 : OpCode.SYSCALL DF30B89A + /// 57 : OpCode.RET /// [DisplayName("tokensOf")] public abstract object? TokensOf(UInt160? owner); @@ -259,97 +257,95 @@ public abstract class Contract_NEP11(Neo.SmartContract.Testing.SmartContractInit /// Unsafe method /// /// - /// Script: VwMDeHBoC5cmBQgiDXhK2ShQygAUs6uqJiIMVGhlIGFyZ3VtZW50ICJ0byIgaXMgaW52YWxpZC46ExGIThBR0EGb9mfOEsBweWjBRVOLUEGSXegxNwAAcWkQznJqQfgn7IyqJgQJQGp4mCYleEppEFHQRWk3AQBKeWjBRVOLUEHmPxiERQ95ajQPEXl4NAp6eXhqNEUIQA== + /// Script: VwMDeHBo2CYFCCINeErZKFDKABSzq6omIgxUaGUgYXJndW1lbnQgInRvIiBpcyBpbnZhbGlkLjoTEYhOEFHQQZv2Z84SwHB5aMFFU4tQQZJd6DE3AABxaRDOcmpB+CfsjCQECUBqeJgmJXhKaRBR0EVpNwEASnlowUVTi1BB5j8YhEUPeWo0DxF5eDQKenl4ajRFCEA= /// 00 : OpCode.INITSLOT 0303 /// 03 : OpCode.LDARG0 /// 04 : OpCode.STLOC0 /// 05 : OpCode.LDLOC0 - /// 06 : OpCode.PUSHNULL - /// 07 : OpCode.EQUAL - /// 08 : OpCode.JMPIFNOT 05 - /// 0A : OpCode.PUSHT - /// 0B : OpCode.JMP 0D - /// 0D : OpCode.LDARG0 - /// 0E : OpCode.DUP - /// 0F : OpCode.ISTYPE 28 - /// 11 : OpCode.SWAP - /// 12 : OpCode.SIZE - /// 13 : OpCode.PUSHINT8 14 - /// 15 : OpCode.NUMEQUAL - /// 16 : OpCode.BOOLAND - /// 17 : OpCode.NOT - /// 18 : OpCode.JMPIFNOT 22 - /// 1A : OpCode.PUSHDATA1 54686520617267756D656E742022746F2220697320696E76616C69642E - /// 39 : OpCode.THROW - /// 3A : OpCode.PUSH3 - /// 3B : OpCode.PUSH1 - /// 3C : OpCode.NEWBUFFER - /// 3D : OpCode.TUCK - /// 3E : OpCode.PUSH0 - /// 3F : OpCode.ROT - /// 40 : OpCode.SETITEM - /// 41 : OpCode.SYSCALL 9BF667CE - /// 46 : OpCode.PUSH2 - /// 47 : OpCode.PACK - /// 48 : OpCode.STLOC0 - /// 49 : OpCode.LDARG1 - /// 4A : OpCode.LDLOC0 - /// 4B : OpCode.UNPACK - /// 4C : OpCode.DROP - /// 4D : OpCode.REVERSE3 - /// 4E : OpCode.CAT - /// 4F : OpCode.SWAP - /// 50 : OpCode.SYSCALL 925DE831 - /// 55 : OpCode.CALLT 0000 - /// 58 : OpCode.STLOC1 - /// 59 : OpCode.LDLOC1 - /// 5A : OpCode.PUSH0 - /// 5B : OpCode.PICKITEM - /// 5C : OpCode.STLOC2 - /// 5D : OpCode.LDLOC2 - /// 5E : OpCode.SYSCALL F827EC8C - /// 63 : OpCode.NOT - /// 64 : OpCode.JMPIFNOT 04 - /// 66 : OpCode.PUSHF - /// 67 : OpCode.RET - /// 68 : OpCode.LDLOC2 - /// 69 : OpCode.LDARG0 - /// 6A : OpCode.NOTEQUAL - /// 6B : OpCode.JMPIFNOT 25 - /// 6D : OpCode.LDARG0 - /// 6E : OpCode.DUP - /// 6F : OpCode.LDLOC1 - /// 70 : OpCode.PUSH0 - /// 71 : OpCode.ROT - /// 72 : OpCode.SETITEM - /// 73 : OpCode.DROP - /// 74 : OpCode.LDLOC1 - /// 75 : OpCode.CALLT 0100 - /// 78 : OpCode.DUP - /// 79 : OpCode.LDARG1 - /// 7A : OpCode.LDLOC0 - /// 7B : OpCode.UNPACK - /// 7C : OpCode.DROP - /// 7D : OpCode.REVERSE3 - /// 7E : OpCode.CAT - /// 7F : OpCode.SWAP - /// 80 : OpCode.SYSCALL E63F1884 - /// 85 : OpCode.DROP - /// 86 : OpCode.PUSHM1 - /// 87 : OpCode.LDARG1 - /// 88 : OpCode.LDLOC2 - /// 89 : OpCode.CALL 0F - /// 8B : OpCode.PUSH1 - /// 8C : OpCode.LDARG1 - /// 8D : OpCode.LDARG0 - /// 8E : OpCode.CALL 0A - /// 90 : OpCode.LDARG2 - /// 91 : OpCode.LDARG1 - /// 92 : OpCode.LDARG0 - /// 93 : OpCode.LDLOC2 - /// 94 : OpCode.CALL 45 - /// 96 : OpCode.PUSHT - /// 97 : OpCode.RET + /// 06 : OpCode.ISNULL + /// 07 : OpCode.JMPIFNOT 05 + /// 09 : OpCode.PUSHT + /// 0A : OpCode.JMP 0D + /// 0C : OpCode.LDARG0 + /// 0D : OpCode.DUP + /// 0E : OpCode.ISTYPE 28 + /// 10 : OpCode.SWAP + /// 11 : OpCode.SIZE + /// 12 : OpCode.PUSHINT8 14 + /// 14 : OpCode.NUMEQUAL + /// 15 : OpCode.BOOLAND + /// 16 : OpCode.NOT + /// 17 : OpCode.JMPIFNOT 22 + /// 19 : OpCode.PUSHDATA1 54686520617267756D656E742022746F2220697320696E76616C69642E + /// 38 : OpCode.THROW + /// 39 : OpCode.PUSH3 + /// 3A : OpCode.PUSH1 + /// 3B : OpCode.NEWBUFFER + /// 3C : OpCode.TUCK + /// 3D : OpCode.PUSH0 + /// 3E : OpCode.ROT + /// 3F : OpCode.SETITEM + /// 40 : OpCode.SYSCALL 9BF667CE + /// 45 : OpCode.PUSH2 + /// 46 : OpCode.PACK + /// 47 : OpCode.STLOC0 + /// 48 : OpCode.LDARG1 + /// 49 : OpCode.LDLOC0 + /// 4A : OpCode.UNPACK + /// 4B : OpCode.DROP + /// 4C : OpCode.REVERSE3 + /// 4D : OpCode.CAT + /// 4E : OpCode.SWAP + /// 4F : OpCode.SYSCALL 925DE831 + /// 54 : OpCode.CALLT 0000 + /// 57 : OpCode.STLOC1 + /// 58 : OpCode.LDLOC1 + /// 59 : OpCode.PUSH0 + /// 5A : OpCode.PICKITEM + /// 5B : OpCode.STLOC2 + /// 5C : OpCode.LDLOC2 + /// 5D : OpCode.SYSCALL F827EC8C + /// 62 : OpCode.JMPIF 04 + /// 64 : OpCode.PUSHF + /// 65 : OpCode.RET + /// 66 : OpCode.LDLOC2 + /// 67 : OpCode.LDARG0 + /// 68 : OpCode.NOTEQUAL + /// 69 : OpCode.JMPIFNOT 25 + /// 6B : OpCode.LDARG0 + /// 6C : OpCode.DUP + /// 6D : OpCode.LDLOC1 + /// 6E : OpCode.PUSH0 + /// 6F : OpCode.ROT + /// 70 : OpCode.SETITEM + /// 71 : OpCode.DROP + /// 72 : OpCode.LDLOC1 + /// 73 : OpCode.CALLT 0100 + /// 76 : OpCode.DUP + /// 77 : OpCode.LDARG1 + /// 78 : OpCode.LDLOC0 + /// 79 : OpCode.UNPACK + /// 7A : OpCode.DROP + /// 7B : OpCode.REVERSE3 + /// 7C : OpCode.CAT + /// 7D : OpCode.SWAP + /// 7E : OpCode.SYSCALL E63F1884 + /// 83 : OpCode.DROP + /// 84 : OpCode.PUSHM1 + /// 85 : OpCode.LDARG1 + /// 86 : OpCode.LDLOC2 + /// 87 : OpCode.CALL 0F + /// 89 : OpCode.PUSH1 + /// 8A : OpCode.LDARG1 + /// 8B : OpCode.LDARG0 + /// 8C : OpCode.CALL 0A + /// 8E : OpCode.LDARG2 + /// 8F : OpCode.LDARG1 + /// 90 : OpCode.LDARG0 + /// 91 : OpCode.LDLOC2 + /// 92 : OpCode.CALL 45 + /// 94 : OpCode.PUSHT + /// 95 : OpCode.RET /// [DisplayName("transfer")] public abstract bool? Transfer(UInt160? to, byte[]? tokenId, object? data = null); diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NEP17.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NEP17.cs index e7a5fbf1c..1cfa2215f 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NEP17.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NEP17.cs @@ -10,12 +10,12 @@ public abstract class Contract_NEP17(Neo.SmartContract.Testing.SmartContractInit { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_NEP17"",""groups"":[],""features"":{},""supportedstandards"":[""NEP-17""],""abi"":{""methods"":[{""name"":""symbol"",""parameters"":[],""returntype"":""String"",""offset"":0,""safe"":true},{""name"":""decimals"",""parameters"":[],""returntype"":""Integer"",""offset"":7,""safe"":true},{""name"":""totalSupply"",""parameters"":[],""returntype"":""Integer"",""offset"":9,""safe"":true},{""name"":""balanceOf"",""parameters"":[{""name"":""owner"",""type"":""Hash160""}],""returntype"":""Integer"",""offset"":35,""safe"":true},{""name"":""transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""},{""name"":""data"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":218,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":498,""safe"":false}],""events"":[{""name"":""Transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""}]}]},""permissions"":[{""contract"":""0xfffdc93764dbaddd97c48f252a53ea4643faa3fd"",""methods"":[""getContract""]},{""contract"":""*"",""methods"":[""onNEP17Payment""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_NEP17"",""groups"":[],""features"":{},""supportedstandards"":[""NEP-17""],""abi"":{""methods"":[{""name"":""symbol"",""parameters"":[],""returntype"":""String"",""offset"":0,""safe"":true},{""name"":""decimals"",""parameters"":[],""returntype"":""Integer"",""offset"":7,""safe"":true},{""name"":""totalSupply"",""parameters"":[],""returntype"":""Integer"",""offset"":9,""safe"":true},{""name"":""balanceOf"",""parameters"":[{""name"":""owner"",""type"":""Hash160""}],""returntype"":""Integer"",""offset"":35,""safe"":true},{""name"":""transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""},{""name"":""data"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":216,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":489,""safe"":false}],""events"":[{""name"":""Transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""}]}]},""permissions"":[{""contract"":""0xfffdc93764dbaddd97c48f252a53ea4643faa3fd"",""methods"":[""getContract""]},{""contract"":""*"",""methods"":[""onNEP17Payment""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH9o/pDRupTKiWPxJfdrdtkN8n9/wtnZXRDb250cmFjdAEAAQ8AAP31AQwEVEVTVEAYQFjYJhcMAQBB9rRr4kGSXegxStgmBEUQSmBAVwEBeHBoC5cmBQgiDXhK2ShQygAUs6uqJiUMIFRoZSBhcmd1bWVudCAib3duZXIiIGlzIGludmFsaWQuOkGb9mfOERGIThBR0FASwHB4aMFFU4tQQZJd6DFK2CYERRDbIUBXAgJBm/ZnzhERiE4QUdBQEsBweGjBRVOLUEGSXegxStgmBEUQ2yFxaXmecWkQtSYECUBpELMmEHhowUVTi1BBL1jF7SIPaXhowUVTi1BB5j8YhAhAVwEEeHBoC5cmBQgiDXhK2ShQygAUs6uqJiQMH1RoZSBhcmd1bWVudCAiZnJvbSIgaXMgaW52YWxpZC46eXBoC5cmBQgiDXlK2ShQygAUs6uqJiIMHVRoZSBhcmd1bWVudCAidG8iIGlzIGludmFsaWQuOnoQtSYqDCVUaGUgYW1vdW50IG11c3QgYmUgYSBwb3NpdGl2ZSBudW1iZXIuOnhB+CfsjKomBAlAehCYJhd6m3g1+P7//6omBAlAenk17P7//0V7enl4NAQIQFcBBHp5eBPADAhUcmFuc2ZlckGVAW9heXBoC5eqJAUJIgt5NwAAcGgLl6omH3t6eBPAHwwOb25ORVAxN1BheW1lbnR5QWJ9W1JFQFYBQGeyPz4=")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH9o/pDRupTKiWPxJfdrdtkN8n9/wtnZXRDb250cmFjdAEAAQ8AAP3sAQwEVEVTVEAYQFjYJhcMAQBB9rRr4kGSXegxStgmBEUQSmBAVwEBeHBo2CYFCCINeErZKFDKABSzq6omJQwgVGhlIGFyZ3VtZW50ICJvd25lciIgaXMgaW52YWxpZC46QZv2Z84REYhOEFHQUBLAcHhowUVTi1BBkl3oMUrYJgRFENshQFcCAkGb9mfOERGIThBR0FASwHB4aMFFU4tQQZJd6DFK2CYERRDbIXFpeZ5xaRC1JgQJQGmxJBB4aMFFU4tQQS9Yxe0iD2l4aMFFU4tQQeY/GIQIQFcBBHhwaNgmBQgiDXhK2ShQygAUs6uqJiQMH1RoZSBhcmd1bWVudCAiZnJvbSIgaXMgaW52YWxpZC46eXBo2CYFCCINeUrZKFDKABSzq6omIgwdVGhlIGFyZ3VtZW50ICJ0byIgaXMgaW52YWxpZC46ehC1JioMJVRoZSBhbW91bnQgbXVzdCBiZSBhIHBvc2l0aXZlIG51bWJlci46eEH4J+yMJAQJQHoQmCYWept4Nfz+//8kBAlAenk18f7//0V7enl4NAQIQFcBBHp5eBPADAhUcmFuc2ZlckGVAW9heXBo2CYFCSIKeTcAAHBo2KomH3t6eBPAHwwOb25ORVAxN1BheW1lbnR5QWJ9W1JFQFYBQGfMK50=")); #endregion @@ -51,55 +51,54 @@ public abstract class Contract_NEP17(Neo.SmartContract.Testing.SmartContractInit /// Safe method /// /// - /// Script: VwEBeHBoC5cmBQgiDXhK2ShQygAUs6uqJiUMVGhlIGFyZ3VtZW50ICJvd25lciIgaXMgaW52YWxpZC46QZv2Z84REYhOEFHQUBLAcHhowUVTi1BBkl3oMUrYJgRFENshQA== + /// Script: VwEBeHBo2CYFCCINeErZKFDKABSzq6omJQxUaGUgYXJndW1lbnQgIm93bmVyIiBpcyBpbnZhbGlkLjpBm/ZnzhERiE4QUdBQEsBweGjBRVOLUEGSXegxStgmBEUQ2yFA /// 00 : OpCode.INITSLOT 0101 /// 03 : OpCode.LDARG0 /// 04 : OpCode.STLOC0 /// 05 : OpCode.LDLOC0 - /// 06 : OpCode.PUSHNULL - /// 07 : OpCode.EQUAL - /// 08 : OpCode.JMPIFNOT 05 - /// 0A : OpCode.PUSHT - /// 0B : OpCode.JMP 0D - /// 0D : OpCode.LDARG0 - /// 0E : OpCode.DUP - /// 0F : OpCode.ISTYPE 28 - /// 11 : OpCode.SWAP - /// 12 : OpCode.SIZE - /// 13 : OpCode.PUSHINT8 14 - /// 15 : OpCode.NUMEQUAL - /// 16 : OpCode.BOOLAND - /// 17 : OpCode.NOT - /// 18 : OpCode.JMPIFNOT 25 - /// 1A : OpCode.PUSHDATA1 54686520617267756D656E7420226F776E65722220697320696E76616C69642E - /// 3C : OpCode.THROW - /// 3D : OpCode.SYSCALL 9BF667CE + /// 06 : OpCode.ISNULL + /// 07 : OpCode.JMPIFNOT 05 + /// 09 : OpCode.PUSHT + /// 0A : OpCode.JMP 0D + /// 0C : OpCode.LDARG0 + /// 0D : OpCode.DUP + /// 0E : OpCode.ISTYPE 28 + /// 10 : OpCode.SWAP + /// 11 : OpCode.SIZE + /// 12 : OpCode.PUSHINT8 14 + /// 14 : OpCode.NUMEQUAL + /// 15 : OpCode.BOOLAND + /// 16 : OpCode.NOT + /// 17 : OpCode.JMPIFNOT 25 + /// 19 : OpCode.PUSHDATA1 54686520617267756D656E7420226F776E65722220697320696E76616C69642E + /// 3B : OpCode.THROW + /// 3C : OpCode.SYSCALL 9BF667CE + /// 41 : OpCode.PUSH1 /// 42 : OpCode.PUSH1 - /// 43 : OpCode.PUSH1 - /// 44 : OpCode.NEWBUFFER - /// 45 : OpCode.TUCK - /// 46 : OpCode.PUSH0 - /// 47 : OpCode.ROT - /// 48 : OpCode.SETITEM - /// 49 : OpCode.SWAP - /// 4A : OpCode.PUSH2 - /// 4B : OpCode.PACK - /// 4C : OpCode.STLOC0 - /// 4D : OpCode.LDARG0 - /// 4E : OpCode.LDLOC0 - /// 4F : OpCode.UNPACK - /// 50 : OpCode.DROP - /// 51 : OpCode.REVERSE3 - /// 52 : OpCode.CAT - /// 53 : OpCode.SWAP - /// 54 : OpCode.SYSCALL 925DE831 - /// 59 : OpCode.DUP - /// 5A : OpCode.ISNULL - /// 5B : OpCode.JMPIFNOT 04 - /// 5D : OpCode.DROP - /// 5E : OpCode.PUSH0 - /// 5F : OpCode.CONVERT 21 - /// 61 : OpCode.RET + /// 43 : OpCode.NEWBUFFER + /// 44 : OpCode.TUCK + /// 45 : OpCode.PUSH0 + /// 46 : OpCode.ROT + /// 47 : OpCode.SETITEM + /// 48 : OpCode.SWAP + /// 49 : OpCode.PUSH2 + /// 4A : OpCode.PACK + /// 4B : OpCode.STLOC0 + /// 4C : OpCode.LDARG0 + /// 4D : OpCode.LDLOC0 + /// 4E : OpCode.UNPACK + /// 4F : OpCode.DROP + /// 50 : OpCode.REVERSE3 + /// 51 : OpCode.CAT + /// 52 : OpCode.SWAP + /// 53 : OpCode.SYSCALL 925DE831 + /// 58 : OpCode.DUP + /// 59 : OpCode.ISNULL + /// 5A : OpCode.JMPIFNOT 04 + /// 5C : OpCode.DROP + /// 5D : OpCode.PUSH0 + /// 5E : OpCode.CONVERT 21 + /// 60 : OpCode.RET /// [DisplayName("balanceOf")] public abstract BigInteger? BalanceOf(UInt160? owner); @@ -112,83 +111,79 @@ public abstract class Contract_NEP17(Neo.SmartContract.Testing.SmartContractInit /// Unsafe method /// /// - /// Script: VwEEeHBoC5cmBQgiDXhK2ShQygAUs6uqJiQMVGhlIGFyZ3VtZW50ICJmcm9tIiBpcyBpbnZhbGlkLjp5cGgLlyYFCCINeUrZKFDKABSzq6omIgxUaGUgYXJndW1lbnQgInRvIiBpcyBpbnZhbGlkLjp6ELUmKgxUaGUgYW1vdW50IG11c3QgYmUgYSBwb3NpdGl2ZSBudW1iZXIuOnhB+CfsjKomBAlAehCYJhd6m3g1+P7//6omBAlAenk17P7//0V7enl4NAQIQA== + /// Script: VwEEeHBo2CYFCCINeErZKFDKABSzq6omJAxUaGUgYXJndW1lbnQgImZyb20iIGlzIGludmFsaWQuOnlwaNgmBQgiDXlK2ShQygAUs6uqJiIMVGhlIGFyZ3VtZW50ICJ0byIgaXMgaW52YWxpZC46ehC1JioMVGhlIGFtb3VudCBtdXN0IGJlIGEgcG9zaXRpdmUgbnVtYmVyLjp4Qfgn7IwkBAlAehCYJhZ6m3g1/P7//yQECUB6eTXx/v//RXt6eXg0BAhA /// 00 : OpCode.INITSLOT 0104 /// 03 : OpCode.LDARG0 /// 04 : OpCode.STLOC0 /// 05 : OpCode.LDLOC0 - /// 06 : OpCode.PUSHNULL - /// 07 : OpCode.EQUAL - /// 08 : OpCode.JMPIFNOT 05 - /// 0A : OpCode.PUSHT - /// 0B : OpCode.JMP 0D - /// 0D : OpCode.LDARG0 - /// 0E : OpCode.DUP - /// 0F : OpCode.ISTYPE 28 - /// 11 : OpCode.SWAP - /// 12 : OpCode.SIZE - /// 13 : OpCode.PUSHINT8 14 - /// 15 : OpCode.NUMEQUAL - /// 16 : OpCode.BOOLAND - /// 17 : OpCode.NOT - /// 18 : OpCode.JMPIFNOT 24 - /// 1A : OpCode.PUSHDATA1 54686520617267756D656E74202266726F6D2220697320696E76616C69642E - /// 3B : OpCode.THROW - /// 3C : OpCode.LDARG1 - /// 3D : OpCode.STLOC0 - /// 3E : OpCode.LDLOC0 - /// 3F : OpCode.PUSHNULL - /// 40 : OpCode.EQUAL - /// 41 : OpCode.JMPIFNOT 05 - /// 43 : OpCode.PUSHT - /// 44 : OpCode.JMP 0D - /// 46 : OpCode.LDARG1 - /// 47 : OpCode.DUP - /// 48 : OpCode.ISTYPE 28 - /// 4A : OpCode.SWAP - /// 4B : OpCode.SIZE - /// 4C : OpCode.PUSHINT8 14 - /// 4E : OpCode.NUMEQUAL - /// 4F : OpCode.BOOLAND - /// 50 : OpCode.NOT - /// 51 : OpCode.JMPIFNOT 22 - /// 53 : OpCode.PUSHDATA1 54686520617267756D656E742022746F2220697320696E76616C69642E - /// 72 : OpCode.THROW - /// 73 : OpCode.LDARG2 - /// 74 : OpCode.PUSH0 - /// 75 : OpCode.LT - /// 76 : OpCode.JMPIFNOT 2A - /// 78 : OpCode.PUSHDATA1 54686520616D6F756E74206D757374206265206120706F736974697665206E756D6265722E - /// 9F : OpCode.THROW - /// A0 : OpCode.LDARG0 - /// A1 : OpCode.SYSCALL F827EC8C - /// A6 : OpCode.NOT - /// A7 : OpCode.JMPIFNOT 04 - /// A9 : OpCode.PUSHF - /// AA : OpCode.RET - /// AB : OpCode.LDARG2 - /// AC : OpCode.PUSH0 - /// AD : OpCode.NOTEQUAL - /// AE : OpCode.JMPIFNOT 17 - /// B0 : OpCode.LDARG2 - /// B1 : OpCode.NEGATE - /// B2 : OpCode.LDARG0 - /// B3 : OpCode.CALL_L F8FEFFFF - /// B8 : OpCode.NOT - /// B9 : OpCode.JMPIFNOT 04 - /// BB : OpCode.PUSHF - /// BC : OpCode.RET - /// BD : OpCode.LDARG2 - /// BE : OpCode.LDARG1 - /// BF : OpCode.CALL_L ECFEFFFF - /// C4 : OpCode.DROP - /// C5 : OpCode.LDARG3 - /// C6 : OpCode.LDARG2 - /// C7 : OpCode.LDARG1 - /// C8 : OpCode.LDARG0 - /// C9 : OpCode.CALL 04 - /// CB : OpCode.PUSHT - /// CC : OpCode.RET + /// 06 : OpCode.ISNULL + /// 07 : OpCode.JMPIFNOT 05 + /// 09 : OpCode.PUSHT + /// 0A : OpCode.JMP 0D + /// 0C : OpCode.LDARG0 + /// 0D : OpCode.DUP + /// 0E : OpCode.ISTYPE 28 + /// 10 : OpCode.SWAP + /// 11 : OpCode.SIZE + /// 12 : OpCode.PUSHINT8 14 + /// 14 : OpCode.NUMEQUAL + /// 15 : OpCode.BOOLAND + /// 16 : OpCode.NOT + /// 17 : OpCode.JMPIFNOT 24 + /// 19 : OpCode.PUSHDATA1 54686520617267756D656E74202266726F6D2220697320696E76616C69642E + /// 3A : OpCode.THROW + /// 3B : OpCode.LDARG1 + /// 3C : OpCode.STLOC0 + /// 3D : OpCode.LDLOC0 + /// 3E : OpCode.ISNULL + /// 3F : OpCode.JMPIFNOT 05 + /// 41 : OpCode.PUSHT + /// 42 : OpCode.JMP 0D + /// 44 : OpCode.LDARG1 + /// 45 : OpCode.DUP + /// 46 : OpCode.ISTYPE 28 + /// 48 : OpCode.SWAP + /// 49 : OpCode.SIZE + /// 4A : OpCode.PUSHINT8 14 + /// 4C : OpCode.NUMEQUAL + /// 4D : OpCode.BOOLAND + /// 4E : OpCode.NOT + /// 4F : OpCode.JMPIFNOT 22 + /// 51 : OpCode.PUSHDATA1 54686520617267756D656E742022746F2220697320696E76616C69642E + /// 70 : OpCode.THROW + /// 71 : OpCode.LDARG2 + /// 72 : OpCode.PUSH0 + /// 73 : OpCode.LT + /// 74 : OpCode.JMPIFNOT 2A + /// 76 : OpCode.PUSHDATA1 54686520616D6F756E74206D757374206265206120706F736974697665206E756D6265722E + /// 9D : OpCode.THROW + /// 9E : OpCode.LDARG0 + /// 9F : OpCode.SYSCALL F827EC8C + /// A4 : OpCode.JMPIF 04 + /// A6 : OpCode.PUSHF + /// A7 : OpCode.RET + /// A8 : OpCode.LDARG2 + /// A9 : OpCode.PUSH0 + /// AA : OpCode.NOTEQUAL + /// AB : OpCode.JMPIFNOT 16 + /// AD : OpCode.LDARG2 + /// AE : OpCode.NEGATE + /// AF : OpCode.LDARG0 + /// B0 : OpCode.CALL_L FCFEFFFF + /// B5 : OpCode.JMPIF 04 + /// B7 : OpCode.PUSHF + /// B8 : OpCode.RET + /// B9 : OpCode.LDARG2 + /// BA : OpCode.LDARG1 + /// BB : OpCode.CALL_L F1FEFFFF + /// C0 : OpCode.DROP + /// C1 : OpCode.LDARG3 + /// C2 : OpCode.LDARG2 + /// C3 : OpCode.LDARG1 + /// C4 : OpCode.LDARG0 + /// C5 : OpCode.CALL 04 + /// C7 : OpCode.PUSHT + /// C8 : OpCode.RET /// [DisplayName("transfer")] public abstract bool? Transfer(UInt160? from, UInt160? to, BigInteger? amount, object? data = null); diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NULL.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NULL.cs index 2afd85583..d1cf647b1 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NULL.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NULL.cs @@ -10,12 +10,12 @@ public abstract class Contract_NULL(Neo.SmartContract.Testing.SmartContractIniti { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_NULL"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""isNull"",""parameters"":[{""name"":""value"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":0,""safe"":false},{""name"":""equalNullA"",""parameters"":[{""name"":""value"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":9,""safe"":false},{""name"":""equalNullB"",""parameters"":[{""name"":""value"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":16,""safe"":false},{""name"":""equalNotNullA"",""parameters"":[{""name"":""value"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":23,""safe"":false},{""name"":""equalNotNullB"",""parameters"":[{""name"":""value"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":30,""safe"":false},{""name"":""nullCoalescing"",""parameters"":[{""name"":""code"",""type"":""String""}],""returntype"":""String"",""offset"":37,""safe"":false},{""name"":""nullCollation"",""parameters"":[{""name"":""code"",""type"":""String""}],""returntype"":""String"",""offset"":51,""safe"":false},{""name"":""nullPropertyGT"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""Boolean"",""offset"":70,""safe"":false},{""name"":""nullPropertyLT"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""Boolean"",""offset"":82,""safe"":false},{""name"":""nullPropertyGE"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""Boolean"",""offset"":94,""safe"":false},{""name"":""nullPropertyLE"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""Boolean"",""offset"":106,""safe"":false},{""name"":""nullProperty"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""Boolean"",""offset"":118,""safe"":false},{""name"":""ifNull"",""parameters"":[{""name"":""obj"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":130,""safe"":false},{""name"":""nullCollationAndCollation"",""parameters"":[{""name"":""code"",""type"":""String""}],""returntype"":""Any"",""offset"":140,""safe"":false},{""name"":""nullCollationAndCollation2"",""parameters"":[{""name"":""code"",""type"":""String""}],""returntype"":""Any"",""offset"":169,""safe"":false},{""name"":""nullType"",""parameters"":[],""returntype"":""Void"",""offset"":210,""safe"":false}],""events"":[]},""permissions"":[],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_NULL"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""isNull"",""parameters"":[{""name"":""value"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":0,""safe"":false},{""name"":""equalNullA"",""parameters"":[{""name"":""value"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":8,""safe"":false},{""name"":""equalNullB"",""parameters"":[{""name"":""value"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":15,""safe"":false},{""name"":""equalNotNullA"",""parameters"":[{""name"":""value"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":21,""safe"":false},{""name"":""equalNotNullB"",""parameters"":[{""name"":""value"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":28,""safe"":false},{""name"":""nullCoalescing"",""parameters"":[{""name"":""code"",""type"":""String""}],""returntype"":""String"",""offset"":35,""safe"":false},{""name"":""nullCollation"",""parameters"":[{""name"":""code"",""type"":""String""}],""returntype"":""String"",""offset"":49,""safe"":false},{""name"":""nullPropertyGT"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""Boolean"",""offset"":68,""safe"":false},{""name"":""nullPropertyLT"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""Boolean"",""offset"":80,""safe"":false},{""name"":""nullPropertyGE"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""Boolean"",""offset"":92,""safe"":false},{""name"":""nullPropertyLE"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""Boolean"",""offset"":104,""safe"":false},{""name"":""nullProperty"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""Boolean"",""offset"":116,""safe"":false},{""name"":""ifNull"",""parameters"":[{""name"":""obj"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":128,""safe"":false},{""name"":""nullCollationAndCollation"",""parameters"":[{""name"":""code"",""type"":""String""}],""returntype"":""Any"",""offset"":138,""safe"":false},{""name"":""nullCollationAndCollation2"",""parameters"":[{""name"":""code"",""type"":""String""}],""returntype"":""Any"",""offset"":167,""safe"":false},{""name"":""nullType"",""parameters"":[],""returntype"":""Void"",""offset"":208,""safe"":false}],""events"":[]},""permissions"":[],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN9XAQF4cGgLl0BXAAELeJdAVwABeAuXQFcAAQt4mEBXAAF4C5hAVwEBeErYJAUREoxwaEBXAQF4StgmCkUMBWxpbnV4cGhAVwABeErYJAPKELdAVwABeErYJAPKELVAVwABeErYJAPKELhAVwABeErYJAPKELZAVwABeErYJAPKEJhAVwABeCYECEAJQFcBAUGb9mfOcHhoQZJd6DFK2CYKRQwBe9sw2yhAVwEBQZv2Z85wDAMxMTF4aEHmPxiEeGhBkl3oMUrYJgpFDAF72zDbKEBXAQALcGhK2CQDQEVAaY7bZQ==")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN1XAQF4cGjYQFcAAQt4l0BXAAF42EBXAAELeJhAVwABeNiqQFcBAXhK2CQFERKMcGhAVwEBeErYJgpFDAVsaW51eHBoQFcAAXhK2CQDyhC3QFcAAXhK2CQDyhC1QFcAAXhK2CQDyhC4QFcAAXhK2CQDyhC2QFcAAXhK2CQDyhCYQFcAAXgmBAhACUBXAQFBm/ZnznB4aEGSXegxStgmCkUMAXvbMNsoQFcBAUGb9mfOcAwDMTExeGhB5j8YhHhoQZJd6DFK2CYKRQwBe9sw2yhAVwEAC3BoStgkA0BFQLsXm8A=")); #endregion @@ -39,11 +39,11 @@ public abstract class Contract_NULL(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwABeAuYQA== + /// Script: VwABeNiqQA== /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.LDARG0 - /// 04 : OpCode.PUSHNULL - /// 05 : OpCode.NOTEQUAL + /// 04 : OpCode.ISNULL + /// 05 : OpCode.NOT /// 06 : OpCode.RET /// [DisplayName("equalNotNullB")] @@ -67,12 +67,11 @@ public abstract class Contract_NULL(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwABeAuXQA== + /// Script: VwABeNhA /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.LDARG0 - /// 04 : OpCode.PUSHNULL - /// 05 : OpCode.EQUAL - /// 06 : OpCode.RET + /// 04 : OpCode.ISNULL + /// 05 : OpCode.RET /// [DisplayName("equalNullB")] public abstract bool? EqualNullB(object? value = null); @@ -97,14 +96,13 @@ public abstract class Contract_NULL(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwEBeHBoC5dA + /// Script: VwEBeHBo2EA= /// 00 : OpCode.INITSLOT 0101 /// 03 : OpCode.LDARG0 /// 04 : OpCode.STLOC0 /// 05 : OpCode.LDLOC0 - /// 06 : OpCode.PUSHNULL - /// 07 : OpCode.EQUAL - /// 08 : OpCode.RET + /// 06 : OpCode.ISNULL + /// 07 : OpCode.RET /// [DisplayName("isNull")] public abstract bool? IsNull(object? value = null); diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NullableType.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NullableType.cs index 6cb6565c3..40d72dc4b 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NullableType.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_NullableType.cs @@ -10,12 +10,12 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_NullableType"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""testBigIntegerAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":0,""safe"":false},{""name"":""testBigIntegerAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":32,""safe"":false},{""name"":""testBigIntegerCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":39,""safe"":false},{""name"":""testBigIntegerCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":71,""safe"":false},{""name"":""testBigIntegerDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":78,""safe"":false},{""name"":""testBigIntegerDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":89,""safe"":false},{""name"":""testIntAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":94,""safe"":false},{""name"":""testIntAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":172,""safe"":false},{""name"":""testIntCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":225,""safe"":false},{""name"":""testIntCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":257,""safe"":false},{""name"":""testIntDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":264,""safe"":false},{""name"":""testIntDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":275,""safe"":false},{""name"":""testUIntAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":280,""safe"":false},{""name"":""testUIntAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":340,""safe"":false},{""name"":""testUIntCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":375,""safe"":false},{""name"":""testUIntCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":407,""safe"":false},{""name"":""testUIntDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":414,""safe"":false},{""name"":""testUIntDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":425,""safe"":false},{""name"":""testLongAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":430,""safe"":false},{""name"":""testLongAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":536,""safe"":false},{""name"":""testLongCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":617,""safe"":false},{""name"":""testLongCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":649,""safe"":false},{""name"":""testLongDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":656,""safe"":false},{""name"":""testLongDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":667,""safe"":false},{""name"":""testULongAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":672,""safe"":false},{""name"":""testULongAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":748,""safe"":false},{""name"":""testULongCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":799,""safe"":false},{""name"":""testULongCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":831,""safe"":false},{""name"":""testULongDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":838,""safe"":false},{""name"":""testULongDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":849,""safe"":false},{""name"":""testShortAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":854,""safe"":false},{""name"":""testShortAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":964,""safe"":false},{""name"":""testShortCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1049,""safe"":false},{""name"":""testShortCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1081,""safe"":false},{""name"":""testShortDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1088,""safe"":false},{""name"":""testShortDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1099,""safe"":false},{""name"":""testUShortAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1104,""safe"":false},{""name"":""testUShortAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1202,""safe"":false},{""name"":""testUShortCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1275,""safe"":false},{""name"":""testUShortCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1307,""safe"":false},{""name"":""testUShortDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1314,""safe"":false},{""name"":""testUShortDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1325,""safe"":false},{""name"":""testSByteAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1330,""safe"":false},{""name"":""testSByteAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1433,""safe"":false},{""name"":""testSByteCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1511,""safe"":false},{""name"":""testSByteCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1543,""safe"":false},{""name"":""testSByteDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1550,""safe"":false},{""name"":""testSByteDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1561,""safe"":false},{""name"":""testByteAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1566,""safe"":false},{""name"":""testByteAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1660,""safe"":false},{""name"":""testByteCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1729,""safe"":false},{""name"":""testByteCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1761,""safe"":false},{""name"":""testByteDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1768,""safe"":false},{""name"":""testByteDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1779,""safe"":false},{""name"":""testBoolAnd"",""parameters"":[{""name"":""a"",""type"":""Boolean""},{""name"":""b"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1784,""safe"":false},{""name"":""testBoolAndNonNullable"",""parameters"":[{""name"":""a"",""type"":""Boolean""},{""name"":""b"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1819,""safe"":false},{""name"":""testBoolOr"",""parameters"":[{""name"":""a"",""type"":""Boolean""},{""name"":""b"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1829,""safe"":false},{""name"":""testBoolOrNonNullable"",""parameters"":[{""name"":""a"",""type"":""Boolean""},{""name"":""b"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1864,""safe"":false},{""name"":""testBoolDefault"",""parameters"":[{""name"":""a"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1874,""safe"":false},{""name"":""testBoolDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1885,""safe"":false},{""name"":""testUInt160Default"",""parameters"":[{""name"":""a"",""type"":""Hash160""}],""returntype"":""Hash160"",""offset"":1890,""safe"":false},{""name"":""testUInt160DefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Hash160""}],""returntype"":""Hash160"",""offset"":1922,""safe"":false},{""name"":""testUInt256Default"",""parameters"":[{""name"":""a"",""type"":""Hash256""}],""returntype"":""Hash256"",""offset"":1927,""safe"":false},{""name"":""testUInt256DefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Hash256""}],""returntype"":""Hash256"",""offset"":1971,""safe"":false},{""name"":""testUInt160ArrayLength"",""parameters"":[{""name"":""a"",""type"":""Array""}],""returntype"":""Integer"",""offset"":1976,""safe"":false},{""name"":""testUInt160ArrayLengthNonNullable"",""parameters"":[{""name"":""a"",""type"":""Array""}],""returntype"":""Integer"",""offset"":1992,""safe"":false},{""name"":""testUInt256ArrayLength"",""parameters"":[{""name"":""a"",""type"":""Array""}],""returntype"":""Integer"",""offset"":1998,""safe"":false},{""name"":""testUInt256ArrayLengthNonNullable"",""parameters"":[{""name"":""a"",""type"":""Array""}],""returntype"":""Integer"",""offset"":2014,""safe"":false},{""name"":""testByteArrayLength"",""parameters"":[{""name"":""a"",""type"":""Array""}],""returntype"":""Integer"",""offset"":2020,""safe"":false},{""name"":""testByteArrayLengthNonNullable"",""parameters"":[{""name"":""a"",""type"":""ByteArray""}],""returntype"":""Integer"",""offset"":2036,""safe"":false},{""name"":""testStringLength"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""Integer"",""offset"":2042,""safe"":false},{""name"":""testStringLengthNonNullable"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""Integer"",""offset"":2058,""safe"":false},{""name"":""testStringDefault"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""String"",""offset"":2064,""safe"":false},{""name"":""testStringDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""String"",""offset"":2076,""safe"":false},{""name"":""testStringConcat"",""parameters"":[{""name"":""a"",""type"":""String""},{""name"":""b"",""type"":""String""}],""returntype"":""String"",""offset"":2081,""safe"":false},{""name"":""testStringConcatNonNullable"",""parameters"":[{""name"":""a"",""type"":""String""},{""name"":""b"",""type"":""String""}],""returntype"":""String"",""offset"":2104,""safe"":false}],""events"":[]},""permissions"":[],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_NullableType"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""testBigIntegerAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":0,""safe"":false},{""name"":""testBigIntegerAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":31,""safe"":false},{""name"":""testBigIntegerCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":38,""safe"":false},{""name"":""testBigIntegerCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":69,""safe"":false},{""name"":""testBigIntegerDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":76,""safe"":false},{""name"":""testBigIntegerDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":87,""safe"":false},{""name"":""testIntAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":92,""safe"":false},{""name"":""testIntAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":169,""safe"":false},{""name"":""testIntCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":222,""safe"":false},{""name"":""testIntCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":253,""safe"":false},{""name"":""testIntDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":260,""safe"":false},{""name"":""testIntDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":271,""safe"":false},{""name"":""testUIntAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":276,""safe"":false},{""name"":""testUIntAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":335,""safe"":false},{""name"":""testUIntCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":370,""safe"":false},{""name"":""testUIntCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":401,""safe"":false},{""name"":""testUIntDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":408,""safe"":false},{""name"":""testUIntDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":419,""safe"":false},{""name"":""testLongAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":424,""safe"":false},{""name"":""testLongAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":529,""safe"":false},{""name"":""testLongCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":610,""safe"":false},{""name"":""testLongCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":641,""safe"":false},{""name"":""testLongDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":648,""safe"":false},{""name"":""testLongDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":659,""safe"":false},{""name"":""testULongAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":664,""safe"":false},{""name"":""testULongAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":739,""safe"":false},{""name"":""testULongCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":790,""safe"":false},{""name"":""testULongCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":821,""safe"":false},{""name"":""testULongDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":828,""safe"":false},{""name"":""testULongDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":839,""safe"":false},{""name"":""testShortAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":844,""safe"":false},{""name"":""testShortAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":953,""safe"":false},{""name"":""testShortCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1038,""safe"":false},{""name"":""testShortCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1069,""safe"":false},{""name"":""testShortDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1076,""safe"":false},{""name"":""testShortDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1087,""safe"":false},{""name"":""testUShortAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1092,""safe"":false},{""name"":""testUShortAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1189,""safe"":false},{""name"":""testUShortCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1262,""safe"":false},{""name"":""testUShortCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1293,""safe"":false},{""name"":""testUShortDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1300,""safe"":false},{""name"":""testUShortDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1311,""safe"":false},{""name"":""testSByteAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1316,""safe"":false},{""name"":""testSByteAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1418,""safe"":false},{""name"":""testSByteCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1496,""safe"":false},{""name"":""testSByteCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1527,""safe"":false},{""name"":""testSByteDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1534,""safe"":false},{""name"":""testSByteDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1545,""safe"":false},{""name"":""testByteAdd"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1550,""safe"":false},{""name"":""testByteAddNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1643,""safe"":false},{""name"":""testByteCompare"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1712,""safe"":false},{""name"":""testByteCompareNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1743,""safe"":false},{""name"":""testByteDefault"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1750,""safe"":false},{""name"":""testByteDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1761,""safe"":false},{""name"":""testBoolAnd"",""parameters"":[{""name"":""a"",""type"":""Boolean""},{""name"":""b"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1766,""safe"":false},{""name"":""testBoolAndNonNullable"",""parameters"":[{""name"":""a"",""type"":""Boolean""},{""name"":""b"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1800,""safe"":false},{""name"":""testBoolOr"",""parameters"":[{""name"":""a"",""type"":""Boolean""},{""name"":""b"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1810,""safe"":false},{""name"":""testBoolOrNonNullable"",""parameters"":[{""name"":""a"",""type"":""Boolean""},{""name"":""b"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1844,""safe"":false},{""name"":""testBoolDefault"",""parameters"":[{""name"":""a"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1854,""safe"":false},{""name"":""testBoolDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1865,""safe"":false},{""name"":""testUInt160Default"",""parameters"":[{""name"":""a"",""type"":""Hash160""}],""returntype"":""Hash160"",""offset"":1870,""safe"":false},{""name"":""testUInt160DefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Hash160""}],""returntype"":""Hash160"",""offset"":1902,""safe"":false},{""name"":""testUInt256Default"",""parameters"":[{""name"":""a"",""type"":""Hash256""}],""returntype"":""Hash256"",""offset"":1907,""safe"":false},{""name"":""testUInt256DefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""Hash256""}],""returntype"":""Hash256"",""offset"":1951,""safe"":false},{""name"":""testUInt160ArrayLength"",""parameters"":[{""name"":""a"",""type"":""Array""}],""returntype"":""Integer"",""offset"":1956,""safe"":false},{""name"":""testUInt160ArrayLengthNonNullable"",""parameters"":[{""name"":""a"",""type"":""Array""}],""returntype"":""Integer"",""offset"":1972,""safe"":false},{""name"":""testUInt256ArrayLength"",""parameters"":[{""name"":""a"",""type"":""Array""}],""returntype"":""Integer"",""offset"":1978,""safe"":false},{""name"":""testUInt256ArrayLengthNonNullable"",""parameters"":[{""name"":""a"",""type"":""Array""}],""returntype"":""Integer"",""offset"":1994,""safe"":false},{""name"":""testByteArrayLength"",""parameters"":[{""name"":""a"",""type"":""Array""}],""returntype"":""Integer"",""offset"":2000,""safe"":false},{""name"":""testByteArrayLengthNonNullable"",""parameters"":[{""name"":""a"",""type"":""ByteArray""}],""returntype"":""Integer"",""offset"":2016,""safe"":false},{""name"":""testStringLength"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""Integer"",""offset"":2022,""safe"":false},{""name"":""testStringLengthNonNullable"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""Integer"",""offset"":2038,""safe"":false},{""name"":""testStringDefault"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""String"",""offset"":2044,""safe"":false},{""name"":""testStringDefaultNonNullable"",""parameters"":[{""name"":""a"",""type"":""String""}],""returntype"":""String"",""offset"":2056,""safe"":false},{""name"":""testStringConcat"",""parameters"":[{""name"":""a"",""type"":""String""},{""name"":""b"",""type"":""String""}],""returntype"":""String"",""offset"":2061,""safe"":false},{""name"":""testStringConcatNonNullable"",""parameters"":[{""name"":""a"",""type"":""String""},{""name"":""b"",""type"":""String""}],""returntype"":""String"",""offset"":2084,""safe"":false}],""events"":[]},""permissions"":[],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP1BCFcAAnjYqiQFCSIFediqJhB4StgmAzp5StgmAzqeQBBAVwACeHmeQFcAAnjYqiQFCSIFediqJAQJQHhK2CYDOnlK2CYDOrdAVwACeHm3QFcAAXhK2CYERRBAVwABeEBXAAJ42KokBQkiBXnYqiY+eErYJgM6eUrYJgM6nkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9AEEBXAAJ4eZ5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfQFcAAnjYqiQFCSIFediqJAQJQHhK2CYDOnlK2CYDOrdAVwACeHm3QFcAAXhK2CYERRBAVwABeEBXAAJ42KokBQkiBXnYqiYseErYJgM6eUrYJgM6nkoQLgQiDkoD/////wAAAAAyDAP/////AAAAAJFAEEBXAAJ4eZ5KEC4EIg5KA/////8AAAAAMgwD/////wAAAACRQFcAAnjYqiQFCSIFediqJAQJQHhK2CYDOnlK2CYDOrdAVwACeHm3QFcAAXhK2CYERRBAVwABeEBXAAJ42KokBQkiBXnYqiZaeErYJgM6eUrYJgM6nkoDAAAAAAAAAIAuBCIOSgP/////////fzIyBP//////////AAAAAAAAAACRSgP/////////fzIUBAAAAAAAAAAAAQAAAAAAAACfQBBAVwACeHmeSgMAAAAAAAAAgC4EIg5KA/////////9/MjIE//////////8AAAAAAAAAAJFKA/////////9/MhQEAAAAAAAAAAABAAAAAAAAAJ9AVwACeNiqJAUJIgV52KokBAlAeErYJgM6eUrYJgM6t0BXAAJ4ebdAVwABeErYJgRFEEBXAAF4QFcAAnjYqiQFCSIFediqJjx4StgmAzp5StgmAzqeShAuBCIWSgT//////////wAAAAAAAAAAMhQE//////////8AAAAAAAAAAJFAEEBXAAJ4eZ5KEC4EIhZKBP//////////AAAAAAAAAAAyFAT//////////wAAAAAAAAAAkUBXAAJ42KokBQkiBXnYqiQECUB4StgmAzp5StgmAzq3QFcAAnh5t0BXAAF4StgmBEUQQFcAAXhAVwACeNiqJAUJIgV52KomXnhK2CYDOnlK2CYDOp5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfSgEAgC4EIghKAf9/MhQC//8AAJFKAf9/MggCAAABAJ9AEEBXAAJ4eZ5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfSgEAgC4EIghKAf9/MhQC//8AAJFKAf9/MggCAAABAJ9AVwACeNiqJAUJIgV52KokBAlAeErYJgM6eUrYJgM6t0BXAAJ4ebdAVwABeErYJgRFEEBXAAF4QFcAAnjYqiQFCSIFediqJlJ4StgmAzp5StgmAzqeSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn0oQLgQiCkoC//8AADIIAv//AACRQBBAVwACeHmeSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn0oQLgQiCkoC//8AADIIAv//AACRQFcAAnjYqiQFCSIFediqJAQJQHhK2CYDOnlK2CYDOrdAVwACeHm3QFcAAXhK2CYERRBAVwABeEBXAAJ42KokBQkiBXnYqiZXeErYJgM6eUrYJgM6nkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9KAIAuBCIHSgB/Mg8B/wCRSgB/MgYBAAGfQBBAVwACeHmeSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn0oAgC4EIgdKAH8yDwH/AJFKAH8yBgEAAZ9AVwACeNiqJAUJIgV52KokBAlAeErYJgM6eUrYJgM6t0BXAAJ4ebdAVwABeErYJgRFEEBXAAF4QFcAAnjYqiQFCSIFediqJk54StgmAzp5StgmAzqeSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn0oQLgQiCEoB/wAyBgH/AJFAEEBXAAJ4eZ5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfShAuBCIISgH/ADIGAf8AkUBXAAJ42KokBQkiBXnYqiQECUB4StgmAzp5StgmAzq3QFcAAnh5t0BXAAF4StgmBEUQQFcAAXhAVwACeNiqJAUJIgV52KokBAlAeErYJgM6JAQJQHlK2CYDOkBXAAJ4JAQJQHlAVwACeNiqJAUJIgV52KokBAlAeErYJgM6JgQIQHlK2CYDOkBXAAJ4JgQIQHlAVwABeErYJgRFCUBXAAF4QFcAAXhK2CYZRQwUAAAAAAAAAAAAAAAAAAAAAAAAAABAVwABeEBXAAF4StgmJUUMIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQFcAAXhAVwABeErYJAPKStgmBEUQQFcAAXjKQFcAAXhK2CQDykrYJgRFEEBXAAF4ykBXAAF4StgkA8pK2CYERRBAVwABeMpAVwABeErYJAPKStgmBEUQQFcAAXjKQFcAAXhK2CYFRQwAQFcAAXhAVwACeErYJgVFDAB5StgmBUUMAIvbKEBXAAJ4eYvbKEDPhfuc")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0tCFcAAnjYJgUJIgV52KomEHhK2CYDOnlK2CYDOp5AEEBXAAJ4eZ5AVwACeNgmBQkiBXnYqiQECUB4StgmAzp5StgmAzq3QFcAAnh5t0BXAAF4StgmBEUQQFcAAXhAVwACeNgmBQkiBXnYqiY+eErYJgM6eUrYJgM6nkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9AEEBXAAJ4eZ5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfQFcAAnjYJgUJIgV52KokBAlAeErYJgM6eUrYJgM6t0BXAAJ4ebdAVwABeErYJgRFEEBXAAF4QFcAAnjYJgUJIgV52KomLHhK2CYDOnlK2CYDOp5KEC4EIg5KA/////8AAAAAMgwD/////wAAAACRQBBAVwACeHmeShAuBCIOSgP/////AAAAADIMA/////8AAAAAkUBXAAJ42CYFCSIFediqJAQJQHhK2CYDOnlK2CYDOrdAVwACeHm3QFcAAXhK2CYERRBAVwABeEBXAAJ42CYFCSIFediqJlp4StgmAzp5StgmAzqeSgMAAAAAAAAAgC4EIg5KA/////////9/MjIE//////////8AAAAAAAAAAJFKA/////////9/MhQEAAAAAAAAAAABAAAAAAAAAJ9AEEBXAAJ4eZ5KAwAAAAAAAACALgQiDkoD/////////38yMgT//////////wAAAAAAAAAAkUoD/////////38yFAQAAAAAAAAAAAEAAAAAAAAAn0BXAAJ42CYFCSIFediqJAQJQHhK2CYDOnlK2CYDOrdAVwACeHm3QFcAAXhK2CYERRBAVwABeEBXAAJ42CYFCSIFediqJjx4StgmAzp5StgmAzqeShAuBCIWSgT//////////wAAAAAAAAAAMhQE//////////8AAAAAAAAAAJFAEEBXAAJ4eZ5KEC4EIhZKBP//////////AAAAAAAAAAAyFAT//////////wAAAAAAAAAAkUBXAAJ42CYFCSIFediqJAQJQHhK2CYDOnlK2CYDOrdAVwACeHm3QFcAAXhK2CYERRBAVwABeEBXAAJ42CYFCSIFediqJl54StgmAzp5StgmAzqeSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn0oBAIAuBCIISgH/fzIUAv//AACRSgH/fzIIAgAAAQCfQBBAVwACeHmeSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn0oBAIAuBCIISgH/fzIUAv//AACRSgH/fzIIAgAAAQCfQFcAAnjYJgUJIgV52KokBAlAeErYJgM6eUrYJgM6t0BXAAJ4ebdAVwABeErYJgRFEEBXAAF4QFcAAnjYJgUJIgV52KomUnhK2CYDOnlK2CYDOp5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfShAuBCIKSgL//wAAMggC//8AAJFAEEBXAAJ4eZ5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfShAuBCIKSgL//wAAMggC//8AAJFAVwACeNgmBQkiBXnYqiQECUB4StgmAzp5StgmAzq3QFcAAnh5t0BXAAF4StgmBEUQQFcAAXhAVwACeNgmBQkiBXnYqiZXeErYJgM6eUrYJgM6nkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9KAIAuBCIHSgB/Mg8B/wCRSgB/MgYBAAGfQBBAVwACeHmeSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn0oAgC4EIgdKAH8yDwH/AJFKAH8yBgEAAZ9AVwACeNgmBQkiBXnYqiQECUB4StgmAzp5StgmAzq3QFcAAnh5t0BXAAF4StgmBEUQQFcAAXhAVwACeNgmBQkiBXnYqiZOeErYJgM6eUrYJgM6nkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9KEC4EIghKAf8AMgYB/wCRQBBAVwACeHmeSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn0oQLgQiCEoB/wAyBgH/AJFAVwACeNgmBQkiBXnYqiQECUB4StgmAzp5StgmAzq3QFcAAnh5t0BXAAF4StgmBEUQQFcAAXhAVwACeNgmBQkiBXnYqiQECUB4StgmAzokBAlAeUrYJgM6QFcAAngkBAlAeUBXAAJ42CYFCSIFediqJAQJQHhK2CYDOiYECEB5StgmAzpAVwACeCYECEB5QFcAAXhK2CYERQlAVwABeEBXAAF4StgmGUUMFAAAAAAAAAAAAAAAAAAAAAAAAAAAQFcAAXhAVwABeErYJiVFDCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBXAAF4QFcAAXhK2CQDykrYJgRFEEBXAAF4ykBXAAF4StgkA8pK2CYERRBAVwABeMpAVwABeErYJAPKStgmBEUQQFcAAXjKQFcAAXhK2CQDykrYJgRFEEBXAAF4ykBXAAF4StgmBUUMAEBXAAF4QFcAAnhK2CYFRQwAeUrYJgVFDACL2yhAVwACeHmL2yhA9utLJA==")); #endregion @@ -25,32 +25,31 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KomEHhK2CYDOnlK2CYDOp5AEEA= + /// Script: VwACeNgmBQkiBXnYqiYQeErYJgM6eUrYJgM6nkAQQA== /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIFNOT 10 - /// 10 : OpCode.LDARG0 - /// 11 : OpCode.DUP - /// 12 : OpCode.ISNULL - /// 13 : OpCode.JMPIFNOT 03 - /// 15 : OpCode.THROW - /// 16 : OpCode.LDARG1 - /// 17 : OpCode.DUP - /// 18 : OpCode.ISNULL - /// 19 : OpCode.JMPIFNOT 03 - /// 1B : OpCode.THROW - /// 1C : OpCode.ADD - /// 1D : OpCode.RET - /// 1E : OpCode.PUSH0 - /// 1F : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIFNOT 10 + /// 0F : OpCode.LDARG0 + /// 10 : OpCode.DUP + /// 11 : OpCode.ISNULL + /// 12 : OpCode.JMPIFNOT 03 + /// 14 : OpCode.THROW + /// 15 : OpCode.LDARG1 + /// 16 : OpCode.DUP + /// 17 : OpCode.ISNULL + /// 18 : OpCode.JMPIFNOT 03 + /// 1A : OpCode.THROW + /// 1B : OpCode.ADD + /// 1C : OpCode.RET + /// 1D : OpCode.PUSH0 + /// 1E : OpCode.RET /// [DisplayName("testBigIntegerAdd")] public abstract BigInteger? TestBigIntegerAdd(BigInteger? a, BigInteger? b); @@ -73,32 +72,31 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KokBAlAeErYJgM6eUrYJgM6t0A= + /// Script: VwACeNgmBQkiBXnYqiQECUB4StgmAzp5StgmAzq3QA== /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIF 04 - /// 10 : OpCode.PUSHF - /// 11 : OpCode.RET - /// 12 : OpCode.LDARG0 - /// 13 : OpCode.DUP - /// 14 : OpCode.ISNULL - /// 15 : OpCode.JMPIFNOT 03 - /// 17 : OpCode.THROW - /// 18 : OpCode.LDARG1 - /// 19 : OpCode.DUP - /// 1A : OpCode.ISNULL - /// 1B : OpCode.JMPIFNOT 03 - /// 1D : OpCode.THROW - /// 1E : OpCode.GT - /// 1F : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIF 04 + /// 0F : OpCode.PUSHF + /// 10 : OpCode.RET + /// 11 : OpCode.LDARG0 + /// 12 : OpCode.DUP + /// 13 : OpCode.ISNULL + /// 14 : OpCode.JMPIFNOT 03 + /// 16 : OpCode.THROW + /// 17 : OpCode.LDARG1 + /// 18 : OpCode.DUP + /// 19 : OpCode.ISNULL + /// 1A : OpCode.JMPIFNOT 03 + /// 1C : OpCode.THROW + /// 1D : OpCode.GT + /// 1E : OpCode.RET /// [DisplayName("testBigIntegerCompare")] public abstract bool? TestBigIntegerCompare(BigInteger? a, BigInteger? b); @@ -150,34 +148,33 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KokBAlAeErYJgM6JAQJQHlK2CYDOkA= + /// Script: VwACeNgmBQkiBXnYqiQECUB4StgmAzokBAlAeUrYJgM6QA== /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIF 04 - /// 10 : OpCode.PUSHF - /// 11 : OpCode.RET - /// 12 : OpCode.LDARG0 - /// 13 : OpCode.DUP - /// 14 : OpCode.ISNULL - /// 15 : OpCode.JMPIFNOT 03 - /// 17 : OpCode.THROW - /// 18 : OpCode.JMPIF 04 - /// 1A : OpCode.PUSHF - /// 1B : OpCode.RET - /// 1C : OpCode.LDARG1 - /// 1D : OpCode.DUP - /// 1E : OpCode.ISNULL - /// 1F : OpCode.JMPIFNOT 03 - /// 21 : OpCode.THROW - /// 22 : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIF 04 + /// 0F : OpCode.PUSHF + /// 10 : OpCode.RET + /// 11 : OpCode.LDARG0 + /// 12 : OpCode.DUP + /// 13 : OpCode.ISNULL + /// 14 : OpCode.JMPIFNOT 03 + /// 16 : OpCode.THROW + /// 17 : OpCode.JMPIF 04 + /// 19 : OpCode.PUSHF + /// 1A : OpCode.RET + /// 1B : OpCode.LDARG1 + /// 1C : OpCode.DUP + /// 1D : OpCode.ISNULL + /// 1E : OpCode.JMPIFNOT 03 + /// 20 : OpCode.THROW + /// 21 : OpCode.RET /// [DisplayName("testBoolAnd")] public abstract bool? TestBoolAnd(bool? a, bool? b); @@ -231,34 +228,33 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KokBAlAeErYJgM6JgQIQHlK2CYDOkA= + /// Script: VwACeNgmBQkiBXnYqiQECUB4StgmAzomBAhAeUrYJgM6QA== /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIF 04 - /// 10 : OpCode.PUSHF - /// 11 : OpCode.RET - /// 12 : OpCode.LDARG0 - /// 13 : OpCode.DUP - /// 14 : OpCode.ISNULL - /// 15 : OpCode.JMPIFNOT 03 - /// 17 : OpCode.THROW - /// 18 : OpCode.JMPIFNOT 04 - /// 1A : OpCode.PUSHT - /// 1B : OpCode.RET - /// 1C : OpCode.LDARG1 - /// 1D : OpCode.DUP - /// 1E : OpCode.ISNULL - /// 1F : OpCode.JMPIFNOT 03 - /// 21 : OpCode.THROW - /// 22 : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIF 04 + /// 0F : OpCode.PUSHF + /// 10 : OpCode.RET + /// 11 : OpCode.LDARG0 + /// 12 : OpCode.DUP + /// 13 : OpCode.ISNULL + /// 14 : OpCode.JMPIFNOT 03 + /// 16 : OpCode.THROW + /// 17 : OpCode.JMPIFNOT 04 + /// 19 : OpCode.PUSHT + /// 1A : OpCode.RET + /// 1B : OpCode.LDARG1 + /// 1C : OpCode.DUP + /// 1D : OpCode.ISNULL + /// 1E : OpCode.JMPIFNOT 03 + /// 20 : OpCode.THROW + /// 21 : OpCode.RET /// [DisplayName("testBoolOr")] public abstract bool? TestBoolOr(bool? a, bool? b); @@ -283,55 +279,54 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KomTnhK2CYDOnlK2CYDOp5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfShAuBCIISgH/ADIGAf8AkUAQQA== + /// Script: VwACeNgmBQkiBXnYqiZOeErYJgM6eUrYJgM6nkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9KEC4EIghKAf8AMgYB/wCRQBBA /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIFNOT 4E - /// 10 : OpCode.LDARG0 - /// 11 : OpCode.DUP - /// 12 : OpCode.ISNULL - /// 13 : OpCode.JMPIFNOT 03 - /// 15 : OpCode.THROW - /// 16 : OpCode.LDARG1 - /// 17 : OpCode.DUP - /// 18 : OpCode.ISNULL - /// 19 : OpCode.JMPIFNOT 03 - /// 1B : OpCode.THROW - /// 1C : OpCode.ADD - /// 1D : OpCode.DUP - /// 1E : OpCode.PUSHINT32 00000080 - /// 23 : OpCode.JMPGE 04 - /// 25 : OpCode.JMP 0A - /// 27 : OpCode.DUP - /// 28 : OpCode.PUSHINT32 FFFFFF7F - /// 2D : OpCode.JMPLE 1E - /// 2F : OpCode.PUSHINT64 FFFFFFFF00000000 - /// 38 : OpCode.AND - /// 39 : OpCode.DUP - /// 3A : OpCode.PUSHINT32 FFFFFF7F - /// 3F : OpCode.JMPLE 0C - /// 41 : OpCode.PUSHINT64 0000000001000000 - /// 4A : OpCode.SUB - /// 4B : OpCode.DUP - /// 4C : OpCode.PUSH0 - /// 4D : OpCode.JMPGE 04 - /// 4F : OpCode.JMP 08 - /// 51 : OpCode.DUP - /// 52 : OpCode.PUSHINT16 FF00 - /// 55 : OpCode.JMPLE 06 - /// 57 : OpCode.PUSHINT16 FF00 - /// 5A : OpCode.AND - /// 5B : OpCode.RET - /// 5C : OpCode.PUSH0 - /// 5D : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIFNOT 4E + /// 0F : OpCode.LDARG0 + /// 10 : OpCode.DUP + /// 11 : OpCode.ISNULL + /// 12 : OpCode.JMPIFNOT 03 + /// 14 : OpCode.THROW + /// 15 : OpCode.LDARG1 + /// 16 : OpCode.DUP + /// 17 : OpCode.ISNULL + /// 18 : OpCode.JMPIFNOT 03 + /// 1A : OpCode.THROW + /// 1B : OpCode.ADD + /// 1C : OpCode.DUP + /// 1D : OpCode.PUSHINT32 00000080 + /// 22 : OpCode.JMPGE 04 + /// 24 : OpCode.JMP 0A + /// 26 : OpCode.DUP + /// 27 : OpCode.PUSHINT32 FFFFFF7F + /// 2C : OpCode.JMPLE 1E + /// 2E : OpCode.PUSHINT64 FFFFFFFF00000000 + /// 37 : OpCode.AND + /// 38 : OpCode.DUP + /// 39 : OpCode.PUSHINT32 FFFFFF7F + /// 3E : OpCode.JMPLE 0C + /// 40 : OpCode.PUSHINT64 0000000001000000 + /// 49 : OpCode.SUB + /// 4A : OpCode.DUP + /// 4B : OpCode.PUSH0 + /// 4C : OpCode.JMPGE 04 + /// 4E : OpCode.JMP 08 + /// 50 : OpCode.DUP + /// 51 : OpCode.PUSHINT16 FF00 + /// 54 : OpCode.JMPLE 06 + /// 56 : OpCode.PUSHINT16 FF00 + /// 59 : OpCode.AND + /// 5A : OpCode.RET + /// 5B : OpCode.PUSH0 + /// 5C : OpCode.RET /// [DisplayName("testByteAdd")] public abstract BigInteger? TestByteAdd(BigInteger? a, BigInteger? b); @@ -411,32 +406,31 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KokBAlAeErYJgM6eUrYJgM6t0A= + /// Script: VwACeNgmBQkiBXnYqiQECUB4StgmAzp5StgmAzq3QA== /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIF 04 - /// 10 : OpCode.PUSHF - /// 11 : OpCode.RET - /// 12 : OpCode.LDARG0 - /// 13 : OpCode.DUP - /// 14 : OpCode.ISNULL - /// 15 : OpCode.JMPIFNOT 03 - /// 17 : OpCode.THROW - /// 18 : OpCode.LDARG1 - /// 19 : OpCode.DUP - /// 1A : OpCode.ISNULL - /// 1B : OpCode.JMPIFNOT 03 - /// 1D : OpCode.THROW - /// 1E : OpCode.GT - /// 1F : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIF 04 + /// 0F : OpCode.PUSHF + /// 10 : OpCode.RET + /// 11 : OpCode.LDARG0 + /// 12 : OpCode.DUP + /// 13 : OpCode.ISNULL + /// 14 : OpCode.JMPIFNOT 03 + /// 16 : OpCode.THROW + /// 17 : OpCode.LDARG1 + /// 18 : OpCode.DUP + /// 19 : OpCode.ISNULL + /// 1A : OpCode.JMPIFNOT 03 + /// 1C : OpCode.THROW + /// 1D : OpCode.GT + /// 1E : OpCode.RET /// [DisplayName("testByteCompare")] public abstract bool? TestByteCompare(BigInteger? a, BigInteger? b); @@ -488,46 +482,45 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KomPnhK2CYDOnlK2CYDOp5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfQBBA + /// Script: VwACeNgmBQkiBXnYqiY+eErYJgM6eUrYJgM6nkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9AEEA= /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIFNOT 3E - /// 10 : OpCode.LDARG0 - /// 11 : OpCode.DUP - /// 12 : OpCode.ISNULL - /// 13 : OpCode.JMPIFNOT 03 - /// 15 : OpCode.THROW - /// 16 : OpCode.LDARG1 - /// 17 : OpCode.DUP - /// 18 : OpCode.ISNULL - /// 19 : OpCode.JMPIFNOT 03 - /// 1B : OpCode.THROW - /// 1C : OpCode.ADD - /// 1D : OpCode.DUP - /// 1E : OpCode.PUSHINT32 00000080 - /// 23 : OpCode.JMPGE 04 - /// 25 : OpCode.JMP 0A - /// 27 : OpCode.DUP - /// 28 : OpCode.PUSHINT32 FFFFFF7F - /// 2D : OpCode.JMPLE 1E - /// 2F : OpCode.PUSHINT64 FFFFFFFF00000000 - /// 38 : OpCode.AND - /// 39 : OpCode.DUP - /// 3A : OpCode.PUSHINT32 FFFFFF7F - /// 3F : OpCode.JMPLE 0C - /// 41 : OpCode.PUSHINT64 0000000001000000 - /// 4A : OpCode.SUB - /// 4B : OpCode.RET - /// 4C : OpCode.PUSH0 - /// 4D : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIFNOT 3E + /// 0F : OpCode.LDARG0 + /// 10 : OpCode.DUP + /// 11 : OpCode.ISNULL + /// 12 : OpCode.JMPIFNOT 03 + /// 14 : OpCode.THROW + /// 15 : OpCode.LDARG1 + /// 16 : OpCode.DUP + /// 17 : OpCode.ISNULL + /// 18 : OpCode.JMPIFNOT 03 + /// 1A : OpCode.THROW + /// 1B : OpCode.ADD + /// 1C : OpCode.DUP + /// 1D : OpCode.PUSHINT32 00000080 + /// 22 : OpCode.JMPGE 04 + /// 24 : OpCode.JMP 0A + /// 26 : OpCode.DUP + /// 27 : OpCode.PUSHINT32 FFFFFF7F + /// 2C : OpCode.JMPLE 1E + /// 2E : OpCode.PUSHINT64 FFFFFFFF00000000 + /// 37 : OpCode.AND + /// 38 : OpCode.DUP + /// 39 : OpCode.PUSHINT32 FFFFFF7F + /// 3E : OpCode.JMPLE 0C + /// 40 : OpCode.PUSHINT64 0000000001000000 + /// 49 : OpCode.SUB + /// 4A : OpCode.RET + /// 4B : OpCode.PUSH0 + /// 4C : OpCode.RET /// [DisplayName("testIntAdd")] public abstract BigInteger? TestIntAdd(BigInteger? a, BigInteger? b); @@ -564,32 +557,31 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KokBAlAeErYJgM6eUrYJgM6t0A= + /// Script: VwACeNgmBQkiBXnYqiQECUB4StgmAzp5StgmAzq3QA== /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIF 04 - /// 10 : OpCode.PUSHF - /// 11 : OpCode.RET - /// 12 : OpCode.LDARG0 - /// 13 : OpCode.DUP - /// 14 : OpCode.ISNULL - /// 15 : OpCode.JMPIFNOT 03 - /// 17 : OpCode.THROW - /// 18 : OpCode.LDARG1 - /// 19 : OpCode.DUP - /// 1A : OpCode.ISNULL - /// 1B : OpCode.JMPIFNOT 03 - /// 1D : OpCode.THROW - /// 1E : OpCode.GT - /// 1F : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIF 04 + /// 0F : OpCode.PUSHF + /// 10 : OpCode.RET + /// 11 : OpCode.LDARG0 + /// 12 : OpCode.DUP + /// 13 : OpCode.ISNULL + /// 14 : OpCode.JMPIFNOT 03 + /// 16 : OpCode.THROW + /// 17 : OpCode.LDARG1 + /// 18 : OpCode.DUP + /// 19 : OpCode.ISNULL + /// 1A : OpCode.JMPIFNOT 03 + /// 1C : OpCode.THROW + /// 1D : OpCode.GT + /// 1E : OpCode.RET /// [DisplayName("testIntCompare")] public abstract bool? TestIntCompare(BigInteger? a, BigInteger? b); @@ -641,46 +633,45 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KomWnhK2CYDOnlK2CYDOp5KAwAAAAAAAACALgQiDkoD/////////38yMgT//////////wAAAAAAAAAAkUoD/////////38yFAQAAAAAAAAAAAEAAAAAAAAAn0AQQA== + /// Script: VwACeNgmBQkiBXnYqiZaeErYJgM6eUrYJgM6nkoDAAAAAAAAAIAuBCIOSgP/////////fzIyBP//////////AAAAAAAAAACRSgP/////////fzIUBAAAAAAAAAAAAQAAAAAAAACfQBBA /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIFNOT 5A - /// 10 : OpCode.LDARG0 - /// 11 : OpCode.DUP - /// 12 : OpCode.ISNULL - /// 13 : OpCode.JMPIFNOT 03 - /// 15 : OpCode.THROW - /// 16 : OpCode.LDARG1 - /// 17 : OpCode.DUP - /// 18 : OpCode.ISNULL - /// 19 : OpCode.JMPIFNOT 03 - /// 1B : OpCode.THROW - /// 1C : OpCode.ADD - /// 1D : OpCode.DUP - /// 1E : OpCode.PUSHINT64 0000000000000080 - /// 27 : OpCode.JMPGE 04 - /// 29 : OpCode.JMP 0E - /// 2B : OpCode.DUP - /// 2C : OpCode.PUSHINT64 FFFFFFFFFFFFFF7F - /// 35 : OpCode.JMPLE 32 - /// 37 : OpCode.PUSHINT128 FFFFFFFFFFFFFFFF0000000000000000 - /// 48 : OpCode.AND - /// 49 : OpCode.DUP - /// 4A : OpCode.PUSHINT64 FFFFFFFFFFFFFF7F - /// 53 : OpCode.JMPLE 14 - /// 55 : OpCode.PUSHINT128 00000000000000000100000000000000 - /// 66 : OpCode.SUB - /// 67 : OpCode.RET - /// 68 : OpCode.PUSH0 - /// 69 : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIFNOT 5A + /// 0F : OpCode.LDARG0 + /// 10 : OpCode.DUP + /// 11 : OpCode.ISNULL + /// 12 : OpCode.JMPIFNOT 03 + /// 14 : OpCode.THROW + /// 15 : OpCode.LDARG1 + /// 16 : OpCode.DUP + /// 17 : OpCode.ISNULL + /// 18 : OpCode.JMPIFNOT 03 + /// 1A : OpCode.THROW + /// 1B : OpCode.ADD + /// 1C : OpCode.DUP + /// 1D : OpCode.PUSHINT64 0000000000000080 + /// 26 : OpCode.JMPGE 04 + /// 28 : OpCode.JMP 0E + /// 2A : OpCode.DUP + /// 2B : OpCode.PUSHINT64 FFFFFFFFFFFFFF7F + /// 34 : OpCode.JMPLE 32 + /// 36 : OpCode.PUSHINT128 FFFFFFFFFFFFFFFF0000000000000000 + /// 47 : OpCode.AND + /// 48 : OpCode.DUP + /// 49 : OpCode.PUSHINT64 FFFFFFFFFFFFFF7F + /// 52 : OpCode.JMPLE 14 + /// 54 : OpCode.PUSHINT128 00000000000000000100000000000000 + /// 65 : OpCode.SUB + /// 66 : OpCode.RET + /// 67 : OpCode.PUSH0 + /// 68 : OpCode.RET /// [DisplayName("testLongAdd")] public abstract BigInteger? TestLongAdd(BigInteger? a, BigInteger? b); @@ -717,32 +708,31 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KokBAlAeErYJgM6eUrYJgM6t0A= + /// Script: VwACeNgmBQkiBXnYqiQECUB4StgmAzp5StgmAzq3QA== /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIF 04 - /// 10 : OpCode.PUSHF - /// 11 : OpCode.RET - /// 12 : OpCode.LDARG0 - /// 13 : OpCode.DUP - /// 14 : OpCode.ISNULL - /// 15 : OpCode.JMPIFNOT 03 - /// 17 : OpCode.THROW - /// 18 : OpCode.LDARG1 - /// 19 : OpCode.DUP - /// 1A : OpCode.ISNULL - /// 1B : OpCode.JMPIFNOT 03 - /// 1D : OpCode.THROW - /// 1E : OpCode.GT - /// 1F : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIF 04 + /// 0F : OpCode.PUSHF + /// 10 : OpCode.RET + /// 11 : OpCode.LDARG0 + /// 12 : OpCode.DUP + /// 13 : OpCode.ISNULL + /// 14 : OpCode.JMPIFNOT 03 + /// 16 : OpCode.THROW + /// 17 : OpCode.LDARG1 + /// 18 : OpCode.DUP + /// 19 : OpCode.ISNULL + /// 1A : OpCode.JMPIFNOT 03 + /// 1C : OpCode.THROW + /// 1D : OpCode.GT + /// 1E : OpCode.RET /// [DisplayName("testLongCompare")] public abstract bool? TestLongCompare(BigInteger? a, BigInteger? b); @@ -794,60 +784,59 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KomV3hK2CYDOnlK2CYDOp5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfSgCALgQiB0oAfzIPAf8AkUoAfzIGAQABn0AQQA== + /// Script: VwACeNgmBQkiBXnYqiZXeErYJgM6eUrYJgM6nkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9KAIAuBCIHSgB/Mg8B/wCRSgB/MgYBAAGfQBBA /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIFNOT 57 - /// 10 : OpCode.LDARG0 - /// 11 : OpCode.DUP - /// 12 : OpCode.ISNULL - /// 13 : OpCode.JMPIFNOT 03 - /// 15 : OpCode.THROW - /// 16 : OpCode.LDARG1 - /// 17 : OpCode.DUP - /// 18 : OpCode.ISNULL - /// 19 : OpCode.JMPIFNOT 03 - /// 1B : OpCode.THROW - /// 1C : OpCode.ADD - /// 1D : OpCode.DUP - /// 1E : OpCode.PUSHINT32 00000080 - /// 23 : OpCode.JMPGE 04 - /// 25 : OpCode.JMP 0A - /// 27 : OpCode.DUP - /// 28 : OpCode.PUSHINT32 FFFFFF7F - /// 2D : OpCode.JMPLE 1E - /// 2F : OpCode.PUSHINT64 FFFFFFFF00000000 - /// 38 : OpCode.AND - /// 39 : OpCode.DUP - /// 3A : OpCode.PUSHINT32 FFFFFF7F - /// 3F : OpCode.JMPLE 0C - /// 41 : OpCode.PUSHINT64 0000000001000000 - /// 4A : OpCode.SUB - /// 4B : OpCode.DUP - /// 4C : OpCode.PUSHINT8 80 - /// 4E : OpCode.JMPGE 04 - /// 50 : OpCode.JMP 07 - /// 52 : OpCode.DUP - /// 53 : OpCode.PUSHINT8 7F - /// 55 : OpCode.JMPLE 0F - /// 57 : OpCode.PUSHINT16 FF00 - /// 5A : OpCode.AND - /// 5B : OpCode.DUP - /// 5C : OpCode.PUSHINT8 7F - /// 5E : OpCode.JMPLE 06 - /// 60 : OpCode.PUSHINT16 0001 - /// 63 : OpCode.SUB - /// 64 : OpCode.RET - /// 65 : OpCode.PUSH0 - /// 66 : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIFNOT 57 + /// 0F : OpCode.LDARG0 + /// 10 : OpCode.DUP + /// 11 : OpCode.ISNULL + /// 12 : OpCode.JMPIFNOT 03 + /// 14 : OpCode.THROW + /// 15 : OpCode.LDARG1 + /// 16 : OpCode.DUP + /// 17 : OpCode.ISNULL + /// 18 : OpCode.JMPIFNOT 03 + /// 1A : OpCode.THROW + /// 1B : OpCode.ADD + /// 1C : OpCode.DUP + /// 1D : OpCode.PUSHINT32 00000080 + /// 22 : OpCode.JMPGE 04 + /// 24 : OpCode.JMP 0A + /// 26 : OpCode.DUP + /// 27 : OpCode.PUSHINT32 FFFFFF7F + /// 2C : OpCode.JMPLE 1E + /// 2E : OpCode.PUSHINT64 FFFFFFFF00000000 + /// 37 : OpCode.AND + /// 38 : OpCode.DUP + /// 39 : OpCode.PUSHINT32 FFFFFF7F + /// 3E : OpCode.JMPLE 0C + /// 40 : OpCode.PUSHINT64 0000000001000000 + /// 49 : OpCode.SUB + /// 4A : OpCode.DUP + /// 4B : OpCode.PUSHINT8 80 + /// 4D : OpCode.JMPGE 04 + /// 4F : OpCode.JMP 07 + /// 51 : OpCode.DUP + /// 52 : OpCode.PUSHINT8 7F + /// 54 : OpCode.JMPLE 0F + /// 56 : OpCode.PUSHINT16 FF00 + /// 59 : OpCode.AND + /// 5A : OpCode.DUP + /// 5B : OpCode.PUSHINT8 7F + /// 5D : OpCode.JMPLE 06 + /// 5F : OpCode.PUSHINT16 0001 + /// 62 : OpCode.SUB + /// 63 : OpCode.RET + /// 64 : OpCode.PUSH0 + /// 65 : OpCode.RET /// [DisplayName("testSByteAdd")] public abstract BigInteger? TestSByteAdd(BigInteger? a, BigInteger? b); @@ -898,32 +887,31 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KokBAlAeErYJgM6eUrYJgM6t0A= + /// Script: VwACeNgmBQkiBXnYqiQECUB4StgmAzp5StgmAzq3QA== /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIF 04 - /// 10 : OpCode.PUSHF - /// 11 : OpCode.RET - /// 12 : OpCode.LDARG0 - /// 13 : OpCode.DUP - /// 14 : OpCode.ISNULL - /// 15 : OpCode.JMPIFNOT 03 - /// 17 : OpCode.THROW - /// 18 : OpCode.LDARG1 - /// 19 : OpCode.DUP - /// 1A : OpCode.ISNULL - /// 1B : OpCode.JMPIFNOT 03 - /// 1D : OpCode.THROW - /// 1E : OpCode.GT - /// 1F : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIF 04 + /// 0F : OpCode.PUSHF + /// 10 : OpCode.RET + /// 11 : OpCode.LDARG0 + /// 12 : OpCode.DUP + /// 13 : OpCode.ISNULL + /// 14 : OpCode.JMPIFNOT 03 + /// 16 : OpCode.THROW + /// 17 : OpCode.LDARG1 + /// 18 : OpCode.DUP + /// 19 : OpCode.ISNULL + /// 1A : OpCode.JMPIFNOT 03 + /// 1C : OpCode.THROW + /// 1D : OpCode.GT + /// 1E : OpCode.RET /// [DisplayName("testSByteCompare")] public abstract bool? TestSByteCompare(BigInteger? a, BigInteger? b); @@ -975,60 +963,59 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KomXnhK2CYDOnlK2CYDOp5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfSgEAgC4EIghKAf9/MhQC//8AAJFKAf9/MggCAAABAJ9AEEA= + /// Script: VwACeNgmBQkiBXnYqiZeeErYJgM6eUrYJgM6nkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9KAQCALgQiCEoB/38yFAL//wAAkUoB/38yCAIAAAEAn0AQQA== /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIFNOT 5E - /// 10 : OpCode.LDARG0 - /// 11 : OpCode.DUP - /// 12 : OpCode.ISNULL - /// 13 : OpCode.JMPIFNOT 03 - /// 15 : OpCode.THROW - /// 16 : OpCode.LDARG1 - /// 17 : OpCode.DUP - /// 18 : OpCode.ISNULL - /// 19 : OpCode.JMPIFNOT 03 - /// 1B : OpCode.THROW - /// 1C : OpCode.ADD - /// 1D : OpCode.DUP - /// 1E : OpCode.PUSHINT32 00000080 - /// 23 : OpCode.JMPGE 04 - /// 25 : OpCode.JMP 0A - /// 27 : OpCode.DUP - /// 28 : OpCode.PUSHINT32 FFFFFF7F - /// 2D : OpCode.JMPLE 1E - /// 2F : OpCode.PUSHINT64 FFFFFFFF00000000 - /// 38 : OpCode.AND - /// 39 : OpCode.DUP - /// 3A : OpCode.PUSHINT32 FFFFFF7F - /// 3F : OpCode.JMPLE 0C - /// 41 : OpCode.PUSHINT64 0000000001000000 - /// 4A : OpCode.SUB - /// 4B : OpCode.DUP - /// 4C : OpCode.PUSHINT16 0080 - /// 4F : OpCode.JMPGE 04 - /// 51 : OpCode.JMP 08 - /// 53 : OpCode.DUP - /// 54 : OpCode.PUSHINT16 FF7F - /// 57 : OpCode.JMPLE 14 - /// 59 : OpCode.PUSHINT32 FFFF0000 - /// 5E : OpCode.AND - /// 5F : OpCode.DUP - /// 60 : OpCode.PUSHINT16 FF7F - /// 63 : OpCode.JMPLE 08 - /// 65 : OpCode.PUSHINT32 00000100 - /// 6A : OpCode.SUB - /// 6B : OpCode.RET - /// 6C : OpCode.PUSH0 - /// 6D : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIFNOT 5E + /// 0F : OpCode.LDARG0 + /// 10 : OpCode.DUP + /// 11 : OpCode.ISNULL + /// 12 : OpCode.JMPIFNOT 03 + /// 14 : OpCode.THROW + /// 15 : OpCode.LDARG1 + /// 16 : OpCode.DUP + /// 17 : OpCode.ISNULL + /// 18 : OpCode.JMPIFNOT 03 + /// 1A : OpCode.THROW + /// 1B : OpCode.ADD + /// 1C : OpCode.DUP + /// 1D : OpCode.PUSHINT32 00000080 + /// 22 : OpCode.JMPGE 04 + /// 24 : OpCode.JMP 0A + /// 26 : OpCode.DUP + /// 27 : OpCode.PUSHINT32 FFFFFF7F + /// 2C : OpCode.JMPLE 1E + /// 2E : OpCode.PUSHINT64 FFFFFFFF00000000 + /// 37 : OpCode.AND + /// 38 : OpCode.DUP + /// 39 : OpCode.PUSHINT32 FFFFFF7F + /// 3E : OpCode.JMPLE 0C + /// 40 : OpCode.PUSHINT64 0000000001000000 + /// 49 : OpCode.SUB + /// 4A : OpCode.DUP + /// 4B : OpCode.PUSHINT16 0080 + /// 4E : OpCode.JMPGE 04 + /// 50 : OpCode.JMP 08 + /// 52 : OpCode.DUP + /// 53 : OpCode.PUSHINT16 FF7F + /// 56 : OpCode.JMPLE 14 + /// 58 : OpCode.PUSHINT32 FFFF0000 + /// 5D : OpCode.AND + /// 5E : OpCode.DUP + /// 5F : OpCode.PUSHINT16 FF7F + /// 62 : OpCode.JMPLE 08 + /// 64 : OpCode.PUSHINT32 00000100 + /// 69 : OpCode.SUB + /// 6A : OpCode.RET + /// 6B : OpCode.PUSH0 + /// 6C : OpCode.RET /// [DisplayName("testShortAdd")] public abstract BigInteger? TestShortAdd(BigInteger? a, BigInteger? b); @@ -1079,32 +1066,31 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KokBAlAeErYJgM6eUrYJgM6t0A= + /// Script: VwACeNgmBQkiBXnYqiQECUB4StgmAzp5StgmAzq3QA== /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIF 04 - /// 10 : OpCode.PUSHF - /// 11 : OpCode.RET - /// 12 : OpCode.LDARG0 - /// 13 : OpCode.DUP - /// 14 : OpCode.ISNULL - /// 15 : OpCode.JMPIFNOT 03 - /// 17 : OpCode.THROW - /// 18 : OpCode.LDARG1 - /// 19 : OpCode.DUP - /// 1A : OpCode.ISNULL - /// 1B : OpCode.JMPIFNOT 03 - /// 1D : OpCode.THROW - /// 1E : OpCode.GT - /// 1F : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIF 04 + /// 0F : OpCode.PUSHF + /// 10 : OpCode.RET + /// 11 : OpCode.LDARG0 + /// 12 : OpCode.DUP + /// 13 : OpCode.ISNULL + /// 14 : OpCode.JMPIFNOT 03 + /// 16 : OpCode.THROW + /// 17 : OpCode.LDARG1 + /// 18 : OpCode.DUP + /// 19 : OpCode.ISNULL + /// 1A : OpCode.JMPIFNOT 03 + /// 1C : OpCode.THROW + /// 1D : OpCode.GT + /// 1E : OpCode.RET /// [DisplayName("testShortCompare")] public abstract bool? TestShortCompare(BigInteger? a, BigInteger? b); @@ -1385,41 +1371,40 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KomLHhK2CYDOnlK2CYDOp5KEC4EIg5KA/////8AAAAAMgwD/////wAAAACRQBBA + /// Script: VwACeNgmBQkiBXnYqiYseErYJgM6eUrYJgM6nkoQLgQiDkoD/////wAAAAAyDAP/////AAAAAJFAEEA= /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIFNOT 2C - /// 10 : OpCode.LDARG0 - /// 11 : OpCode.DUP - /// 12 : OpCode.ISNULL - /// 13 : OpCode.JMPIFNOT 03 - /// 15 : OpCode.THROW - /// 16 : OpCode.LDARG1 - /// 17 : OpCode.DUP - /// 18 : OpCode.ISNULL - /// 19 : OpCode.JMPIFNOT 03 - /// 1B : OpCode.THROW - /// 1C : OpCode.ADD - /// 1D : OpCode.DUP - /// 1E : OpCode.PUSH0 - /// 1F : OpCode.JMPGE 04 - /// 21 : OpCode.JMP 0E - /// 23 : OpCode.DUP - /// 24 : OpCode.PUSHINT64 FFFFFFFF00000000 - /// 2D : OpCode.JMPLE 0C - /// 2F : OpCode.PUSHINT64 FFFFFFFF00000000 - /// 38 : OpCode.AND - /// 39 : OpCode.RET - /// 3A : OpCode.PUSH0 - /// 3B : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIFNOT 2C + /// 0F : OpCode.LDARG0 + /// 10 : OpCode.DUP + /// 11 : OpCode.ISNULL + /// 12 : OpCode.JMPIFNOT 03 + /// 14 : OpCode.THROW + /// 15 : OpCode.LDARG1 + /// 16 : OpCode.DUP + /// 17 : OpCode.ISNULL + /// 18 : OpCode.JMPIFNOT 03 + /// 1A : OpCode.THROW + /// 1B : OpCode.ADD + /// 1C : OpCode.DUP + /// 1D : OpCode.PUSH0 + /// 1E : OpCode.JMPGE 04 + /// 20 : OpCode.JMP 0E + /// 22 : OpCode.DUP + /// 23 : OpCode.PUSHINT64 FFFFFFFF00000000 + /// 2C : OpCode.JMPLE 0C + /// 2E : OpCode.PUSHINT64 FFFFFFFF00000000 + /// 37 : OpCode.AND + /// 38 : OpCode.RET + /// 39 : OpCode.PUSH0 + /// 3A : OpCode.RET /// [DisplayName("testUIntAdd")] public abstract BigInteger? TestUIntAdd(BigInteger? a, BigInteger? b); @@ -1451,32 +1436,31 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KokBAlAeErYJgM6eUrYJgM6t0A= + /// Script: VwACeNgmBQkiBXnYqiQECUB4StgmAzp5StgmAzq3QA== /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIF 04 - /// 10 : OpCode.PUSHF - /// 11 : OpCode.RET - /// 12 : OpCode.LDARG0 - /// 13 : OpCode.DUP - /// 14 : OpCode.ISNULL - /// 15 : OpCode.JMPIFNOT 03 - /// 17 : OpCode.THROW - /// 18 : OpCode.LDARG1 - /// 19 : OpCode.DUP - /// 1A : OpCode.ISNULL - /// 1B : OpCode.JMPIFNOT 03 - /// 1D : OpCode.THROW - /// 1E : OpCode.GT - /// 1F : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIF 04 + /// 0F : OpCode.PUSHF + /// 10 : OpCode.RET + /// 11 : OpCode.LDARG0 + /// 12 : OpCode.DUP + /// 13 : OpCode.ISNULL + /// 14 : OpCode.JMPIFNOT 03 + /// 16 : OpCode.THROW + /// 17 : OpCode.LDARG1 + /// 18 : OpCode.DUP + /// 19 : OpCode.ISNULL + /// 1A : OpCode.JMPIFNOT 03 + /// 1C : OpCode.THROW + /// 1D : OpCode.GT + /// 1E : OpCode.RET /// [DisplayName("testUIntCompare")] public abstract bool? TestUIntCompare(BigInteger? a, BigInteger? b); @@ -1528,41 +1512,40 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KomPHhK2CYDOnlK2CYDOp5KEC4EIhZKBP//////////AAAAAAAAAAAyFAT//////////wAAAAAAAAAAkUAQQA== + /// Script: VwACeNgmBQkiBXnYqiY8eErYJgM6eUrYJgM6nkoQLgQiFkoE//////////8AAAAAAAAAADIUBP//////////AAAAAAAAAACRQBBA /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIFNOT 3C - /// 10 : OpCode.LDARG0 - /// 11 : OpCode.DUP - /// 12 : OpCode.ISNULL - /// 13 : OpCode.JMPIFNOT 03 - /// 15 : OpCode.THROW - /// 16 : OpCode.LDARG1 - /// 17 : OpCode.DUP - /// 18 : OpCode.ISNULL - /// 19 : OpCode.JMPIFNOT 03 - /// 1B : OpCode.THROW - /// 1C : OpCode.ADD - /// 1D : OpCode.DUP - /// 1E : OpCode.PUSH0 - /// 1F : OpCode.JMPGE 04 - /// 21 : OpCode.JMP 16 - /// 23 : OpCode.DUP - /// 24 : OpCode.PUSHINT128 FFFFFFFFFFFFFFFF0000000000000000 - /// 35 : OpCode.JMPLE 14 - /// 37 : OpCode.PUSHINT128 FFFFFFFFFFFFFFFF0000000000000000 - /// 48 : OpCode.AND - /// 49 : OpCode.RET - /// 4A : OpCode.PUSH0 - /// 4B : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIFNOT 3C + /// 0F : OpCode.LDARG0 + /// 10 : OpCode.DUP + /// 11 : OpCode.ISNULL + /// 12 : OpCode.JMPIFNOT 03 + /// 14 : OpCode.THROW + /// 15 : OpCode.LDARG1 + /// 16 : OpCode.DUP + /// 17 : OpCode.ISNULL + /// 18 : OpCode.JMPIFNOT 03 + /// 1A : OpCode.THROW + /// 1B : OpCode.ADD + /// 1C : OpCode.DUP + /// 1D : OpCode.PUSH0 + /// 1E : OpCode.JMPGE 04 + /// 20 : OpCode.JMP 16 + /// 22 : OpCode.DUP + /// 23 : OpCode.PUSHINT128 FFFFFFFFFFFFFFFF0000000000000000 + /// 34 : OpCode.JMPLE 14 + /// 36 : OpCode.PUSHINT128 FFFFFFFFFFFFFFFF0000000000000000 + /// 47 : OpCode.AND + /// 48 : OpCode.RET + /// 49 : OpCode.PUSH0 + /// 4A : OpCode.RET /// [DisplayName("testULongAdd")] public abstract BigInteger? TestULongAdd(BigInteger? a, BigInteger? b); @@ -1594,32 +1577,31 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KokBAlAeErYJgM6eUrYJgM6t0A= + /// Script: VwACeNgmBQkiBXnYqiQECUB4StgmAzp5StgmAzq3QA== /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIF 04 - /// 10 : OpCode.PUSHF - /// 11 : OpCode.RET - /// 12 : OpCode.LDARG0 - /// 13 : OpCode.DUP - /// 14 : OpCode.ISNULL - /// 15 : OpCode.JMPIFNOT 03 - /// 17 : OpCode.THROW - /// 18 : OpCode.LDARG1 - /// 19 : OpCode.DUP - /// 1A : OpCode.ISNULL - /// 1B : OpCode.JMPIFNOT 03 - /// 1D : OpCode.THROW - /// 1E : OpCode.GT - /// 1F : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIF 04 + /// 0F : OpCode.PUSHF + /// 10 : OpCode.RET + /// 11 : OpCode.LDARG0 + /// 12 : OpCode.DUP + /// 13 : OpCode.ISNULL + /// 14 : OpCode.JMPIFNOT 03 + /// 16 : OpCode.THROW + /// 17 : OpCode.LDARG1 + /// 18 : OpCode.DUP + /// 19 : OpCode.ISNULL + /// 1A : OpCode.JMPIFNOT 03 + /// 1C : OpCode.THROW + /// 1D : OpCode.GT + /// 1E : OpCode.RET /// [DisplayName("testULongCompare")] public abstract bool? TestULongCompare(BigInteger? a, BigInteger? b); @@ -1671,55 +1653,54 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KomUnhK2CYDOnlK2CYDOp5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfShAuBCIKSgL//wAAMggC//8AAJFAEEA= + /// Script: VwACeNgmBQkiBXnYqiZSeErYJgM6eUrYJgM6nkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9KEC4EIgpKAv//AAAyCAL//wAAkUAQQA== /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIFNOT 52 - /// 10 : OpCode.LDARG0 - /// 11 : OpCode.DUP - /// 12 : OpCode.ISNULL - /// 13 : OpCode.JMPIFNOT 03 - /// 15 : OpCode.THROW - /// 16 : OpCode.LDARG1 - /// 17 : OpCode.DUP - /// 18 : OpCode.ISNULL - /// 19 : OpCode.JMPIFNOT 03 - /// 1B : OpCode.THROW - /// 1C : OpCode.ADD - /// 1D : OpCode.DUP - /// 1E : OpCode.PUSHINT32 00000080 - /// 23 : OpCode.JMPGE 04 - /// 25 : OpCode.JMP 0A - /// 27 : OpCode.DUP - /// 28 : OpCode.PUSHINT32 FFFFFF7F - /// 2D : OpCode.JMPLE 1E - /// 2F : OpCode.PUSHINT64 FFFFFFFF00000000 - /// 38 : OpCode.AND - /// 39 : OpCode.DUP - /// 3A : OpCode.PUSHINT32 FFFFFF7F - /// 3F : OpCode.JMPLE 0C - /// 41 : OpCode.PUSHINT64 0000000001000000 - /// 4A : OpCode.SUB - /// 4B : OpCode.DUP - /// 4C : OpCode.PUSH0 - /// 4D : OpCode.JMPGE 04 - /// 4F : OpCode.JMP 0A - /// 51 : OpCode.DUP - /// 52 : OpCode.PUSHINT32 FFFF0000 - /// 57 : OpCode.JMPLE 08 - /// 59 : OpCode.PUSHINT32 FFFF0000 - /// 5E : OpCode.AND - /// 5F : OpCode.RET - /// 60 : OpCode.PUSH0 - /// 61 : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIFNOT 52 + /// 0F : OpCode.LDARG0 + /// 10 : OpCode.DUP + /// 11 : OpCode.ISNULL + /// 12 : OpCode.JMPIFNOT 03 + /// 14 : OpCode.THROW + /// 15 : OpCode.LDARG1 + /// 16 : OpCode.DUP + /// 17 : OpCode.ISNULL + /// 18 : OpCode.JMPIFNOT 03 + /// 1A : OpCode.THROW + /// 1B : OpCode.ADD + /// 1C : OpCode.DUP + /// 1D : OpCode.PUSHINT32 00000080 + /// 22 : OpCode.JMPGE 04 + /// 24 : OpCode.JMP 0A + /// 26 : OpCode.DUP + /// 27 : OpCode.PUSHINT32 FFFFFF7F + /// 2C : OpCode.JMPLE 1E + /// 2E : OpCode.PUSHINT64 FFFFFFFF00000000 + /// 37 : OpCode.AND + /// 38 : OpCode.DUP + /// 39 : OpCode.PUSHINT32 FFFFFF7F + /// 3E : OpCode.JMPLE 0C + /// 40 : OpCode.PUSHINT64 0000000001000000 + /// 49 : OpCode.SUB + /// 4A : OpCode.DUP + /// 4B : OpCode.PUSH0 + /// 4C : OpCode.JMPGE 04 + /// 4E : OpCode.JMP 0A + /// 50 : OpCode.DUP + /// 51 : OpCode.PUSHINT32 FFFF0000 + /// 56 : OpCode.JMPLE 08 + /// 58 : OpCode.PUSHINT32 FFFF0000 + /// 5D : OpCode.AND + /// 5E : OpCode.RET + /// 5F : OpCode.PUSH0 + /// 60 : OpCode.RET /// [DisplayName("testUShortAdd")] public abstract BigInteger? TestUShortAdd(BigInteger? a, BigInteger? b); @@ -1765,32 +1746,31 @@ public abstract class Contract_NullableType(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACeNiqJAUJIgV52KokBAlAeErYJgM6eUrYJgM6t0A= + /// Script: VwACeNgmBQkiBXnYqiQECUB4StgmAzp5StgmAzq3QA== /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.LDARG0 /// 04 : OpCode.ISNULL - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIF 05 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.JMP 05 - /// 0B : OpCode.LDARG1 - /// 0C : OpCode.ISNULL - /// 0D : OpCode.NOT - /// 0E : OpCode.JMPIF 04 - /// 10 : OpCode.PUSHF - /// 11 : OpCode.RET - /// 12 : OpCode.LDARG0 - /// 13 : OpCode.DUP - /// 14 : OpCode.ISNULL - /// 15 : OpCode.JMPIFNOT 03 - /// 17 : OpCode.THROW - /// 18 : OpCode.LDARG1 - /// 19 : OpCode.DUP - /// 1A : OpCode.ISNULL - /// 1B : OpCode.JMPIFNOT 03 - /// 1D : OpCode.THROW - /// 1E : OpCode.GT - /// 1F : OpCode.RET + /// 05 : OpCode.JMPIFNOT 05 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.JMP 05 + /// 0A : OpCode.LDARG1 + /// 0B : OpCode.ISNULL + /// 0C : OpCode.NOT + /// 0D : OpCode.JMPIF 04 + /// 0F : OpCode.PUSHF + /// 10 : OpCode.RET + /// 11 : OpCode.LDARG0 + /// 12 : OpCode.DUP + /// 13 : OpCode.ISNULL + /// 14 : OpCode.JMPIFNOT 03 + /// 16 : OpCode.THROW + /// 17 : OpCode.LDARG1 + /// 18 : OpCode.DUP + /// 19 : OpCode.ISNULL + /// 1A : OpCode.JMPIFNOT 03 + /// 1C : OpCode.THROW + /// 1D : OpCode.GT + /// 1E : OpCode.RET /// [DisplayName("testUShortCompare")] public abstract bool? TestUShortCompare(BigInteger? a, BigInteger? b); diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Pattern.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Pattern.cs index c362002cc..1e0b9ade0 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Pattern.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Pattern.cs @@ -10,12 +10,12 @@ public abstract class Contract_Pattern(Neo.SmartContract.Testing.SmartContractIn { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_Pattern"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""between"",""parameters"":[{""name"":""value"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":0,""safe"":false},{""name"":""between2"",""parameters"":[{""name"":""value"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":17,""safe"":false},{""name"":""between3"",""parameters"":[{""name"":""value"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":34,""safe"":false},{""name"":""testRecursivePattern"",""parameters"":[],""returntype"":""Boolean"",""offset"":79,""safe"":false},{""name"":""between4"",""parameters"":[{""name"":""value"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":134,""safe"":false},{""name"":""testNotPattern"",""parameters"":[{""name"":""x"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":143,""safe"":false},{""name"":""classify"",""parameters"":[{""name"":""measurement"",""type"":""Integer""}],""returntype"":""String"",""offset"":153,""safe"":false},{""name"":""getCalendarSeason"",""parameters"":[{""name"":""month"",""type"":""Integer""}],""returntype"":""String"",""offset"":260,""safe"":false},{""name"":""testDeclarationPattern"",""parameters"":[],""returntype"":""Void"",""offset"":422,""safe"":false},{""name"":""testTypePattern"",""parameters"":[{""name"":""o1"",""type"":""Any""}],""returntype"":""Void"",""offset"":506,""safe"":false},{""name"":""testTypePattern2"",""parameters"":[{""name"":""t"",""type"":""Any""}],""returntype"":""Integer"",""offset"":532,""safe"":false}],""events"":[]},""permissions"":[{""contract"":""0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"",""methods"":[""itoa""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_Pattern"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""between"",""parameters"":[{""name"":""value"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":0,""safe"":false},{""name"":""between2"",""parameters"":[{""name"":""value"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":17,""safe"":false},{""name"":""between3"",""parameters"":[{""name"":""value"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":34,""safe"":false},{""name"":""testRecursivePattern"",""parameters"":[],""returntype"":""Boolean"",""offset"":79,""safe"":false},{""name"":""between4"",""parameters"":[{""name"":""value"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":134,""safe"":false},{""name"":""testNotPattern"",""parameters"":[{""name"":""x"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":143,""safe"":false},{""name"":""classify"",""parameters"":[{""name"":""measurement"",""type"":""Integer""}],""returntype"":""String"",""offset"":152,""safe"":false},{""name"":""getCalendarSeason"",""parameters"":[{""name"":""month"",""type"":""Integer""}],""returntype"":""String"",""offset"":259,""safe"":false},{""name"":""testDeclarationPattern"",""parameters"":[],""returntype"":""Void"",""offset"":421,""safe"":false},{""name"":""testTypePattern"",""parameters"":[{""name"":""o1"",""type"":""Any""}],""returntype"":""Void"",""offset"":505,""safe"":false},{""name"":""testTypePattern2"",""parameters"":[{""name"":""t"",""type"":""Any""}],""returntype"":""Integer"",""offset"":531,""safe"":false}],""events"":[]},""permissions"":[{""contract"":""0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"",""methods"":[""itoa""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHA7znO4OTpJcbCoGp54UQN2G/OrARpdG9hAQABDwAA/UoCVwEBeHBoEbckBAlAaABktUBXAQF4cGgRtyQECUBoAGS1QFcBAXhwaBG3JAUJIgZoADK1JgQIQGgAMrgkBQkiBmgAZLUmBAhACCYECUBoOlcCAAwUAAAAAAAAAAAAAAAAAAAAAAAAAABwaHFpStkoUMoAFLOrCJcQswmXJgQIQAgmBAlAaTpXAQF4cGgQtkBXAQF4cGgLl6pAVwEBeHBoANi1JgwMB1RvbyBsb3dAaADYuCQFCSIFaBC1JggMA0xvd0BoELgkBQkiBWgatSYPDApBY2NlcHRhYmxlQGgauCQFCSIGaAAUtSYJDARIaWdoQGgAFLgmDQwIVG9vIGhpZ2hAaDpXAQF4cGgTlyYFCCIFaBSXJgUIIgVoFZcmCwwGc3ByaW5nQGgWlyYFCCIFaBeXJgUIIgVoGJcmCwwGc3VtbWVyQGgZlyYFCCIFaBqXJgUIIgVoG5cmCwwGYXV0dW1uQGgclyYFCCIFaBGXJgUIIgVoEpcmCwwGd2ludGVyQAgmIgwSVW5leHBlY3RlZCBtb250aDogeDcAAIsMAS6L2yg6aDpXBAAMDUhlbGxvLCBXb3JsZCFwaHFp2ShpciYIakHP50eWDA1IZWxsbywgV29ybGQhcmpza9koJhwME2dyZWV0aW5nMiBpcyBzdHJpbmdBz+dHlkBXAQF4cGjZMCYDQGjZKCYDQGjZICYDQEBAQFcBAXhwaNkwJgUIIgVo2SgmBQgiB2jZKAiXJgQQQGjZICYEEUBo2SEIlyYEEkAIJgQVQGg6QGU5aS0=")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHA7znO4OTpJcbCoGp54UQN2G/OrARpdG9hAQABDwAA/UkCVwEBeHBoEbckBAlAaABktUBXAQF4cGgRtyQECUBoAGS1QFcBAXhwaBG3JAUJIgZoADK1JgQIQGgAMrgkBQkiBmgAZLUmBAhACCYECUBoOlcCAAwUAAAAAAAAAAAAAAAAAAAAAAAAAABwaHFpStkoUMoAFLOrCJexqgmXJgQIQAgmBAlAaTpXAQF4cGgQtkBXAQF4cGjYqkBXAQF4cGgA2LUmDAwHVG9vIGxvd0BoANi4JAUJIgVoELUmCAwDTG93QGgQuCQFCSIFaBq1Jg8MCkFjY2VwdGFibGVAaBq4JAUJIgZoABS1JgkMBEhpZ2hAaAAUuCYNDAhUb28gaGlnaEBoOlcBAXhwaBOXJgUIIgVoFJcmBQgiBWgVlyYLDAZzcHJpbmdAaBaXJgUIIgVoF5cmBQgiBWgYlyYLDAZzdW1tZXJAaBmXJgUIIgVoGpcmBQgiBWgblyYLDAZhdXR1bW5AaByXJgUIIgVoEZcmBQgiBWgSlyYLDAZ3aW50ZXJACCYiDBJVbmV4cGVjdGVkIG1vbnRoOiB4NwAAiwwBLovbKDpoOlcEAAwNSGVsbG8sIFdvcmxkIXBocWnZKGlyJghqQc/nR5YMDUhlbGxvLCBXb3JsZCFyanNr2SgmHAwTZ3JlZXRpbmcyIGlzIHN0cmluZ0HP50eWQFcBAXhwaNkwJgNAaNkoJgNAaNkgJgNAQEBAVwEBeHBo2TAmBQgiBWjZKCYFCCIHaNkoCJcmBBBAaNkgJgQRQGjZIQiXJgQSQAgmBBVAaDpAhNrwLg==")); #endregion @@ -238,15 +238,14 @@ public abstract class Contract_Pattern(Neo.SmartContract.Testing.SmartContractIn /// Unsafe method /// /// - /// Script: VwEBeHBoC5eqQA== + /// Script: VwEBeHBo2KpA /// 00 : OpCode.INITSLOT 0101 /// 03 : OpCode.LDARG0 /// 04 : OpCode.STLOC0 /// 05 : OpCode.LDLOC0 - /// 06 : OpCode.PUSHNULL - /// 07 : OpCode.EQUAL - /// 08 : OpCode.NOT - /// 09 : OpCode.RET + /// 06 : OpCode.ISNULL + /// 07 : OpCode.NOT + /// 08 : OpCode.RET /// [DisplayName("testNotPattern")] public abstract bool? TestNotPattern(bool? x); diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_PostfixUnary.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_PostfixUnary.cs index 20e934c35..7a3cf7472 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_PostfixUnary.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_PostfixUnary.cs @@ -15,7 +15,7 @@ public abstract class Contract_PostfixUnary(Neo.SmartContract.Testing.SmartContr /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMJXAQALEAsTwAwESm9obks1hwAAAHBoNZYAAAAmeWhKEc5OnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ8RUNBFaBLOEUtLzkpUU5xKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACf0EVoEM5AC0BXAAJ4EgBQADwAUBPA0HlKeBBR0EVAVwEBeHBoC5eqJAQJQHgQznBoC5eqQFsFvBY=")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL9XAQALEAsTwAwESm9obks1hwAAAHBoNZYAAAAmeWhKEc5OnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ8RUNBFaBLOEUtLzkpUU5xKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACf0EVoEM5AC0BXAAJ4EgBQADwAUBPA0HlKeBBR0EVAVwEBeHBo2CYECUB4EM5waNiqQAQGYzE=")); #endregion @@ -25,26 +25,23 @@ public abstract class Contract_PostfixUnary(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwEBeHBoC5eqJAQJQHgQznBoC5eqQA== + /// Script: VwEBeHBo2CYECUB4EM5waNiqQA== /// 00 : OpCode.INITSLOT 0101 /// 03 : OpCode.LDARG0 /// 04 : OpCode.STLOC0 /// 05 : OpCode.LDLOC0 - /// 06 : OpCode.PUSHNULL - /// 07 : OpCode.EQUAL - /// 08 : OpCode.NOT - /// 09 : OpCode.JMPIF 04 - /// 0B : OpCode.PUSHF - /// 0C : OpCode.RET - /// 0D : OpCode.LDARG0 - /// 0E : OpCode.PUSH0 - /// 0F : OpCode.PICKITEM - /// 10 : OpCode.STLOC0 - /// 11 : OpCode.LDLOC0 - /// 12 : OpCode.PUSHNULL - /// 13 : OpCode.EQUAL - /// 14 : OpCode.NOT - /// 15 : OpCode.RET + /// 06 : OpCode.ISNULL + /// 07 : OpCode.JMPIFNOT 04 + /// 09 : OpCode.PUSHF + /// 0A : OpCode.RET + /// 0B : OpCode.LDARG0 + /// 0C : OpCode.PUSH0 + /// 0D : OpCode.PICKITEM + /// 0E : OpCode.STLOC0 + /// 0F : OpCode.LDLOC0 + /// 10 : OpCode.ISNULL + /// 11 : OpCode.NOT + /// 12 : OpCode.RET /// [DisplayName("isValid")] public abstract bool? IsValid(object? person = null); diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Reentrancy.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Reentrancy.cs index e9a702302..f51e97adb 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Reentrancy.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_Reentrancy.cs @@ -10,12 +10,12 @@ public abstract class Contract_Reentrancy(Neo.SmartContract.Testing.SmartContrac { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_Reentrancy"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""hasReentrancy"",""parameters"":[],""returntype"":""Void"",""offset"":0,""safe"":false},{""name"":""hasReentrancyFromSingleBasicBlock"",""parameters"":[],""returntype"":""Void"",""offset"":115,""safe"":false},{""name"":""hasReentrancyFromCall"",""parameters"":[],""returntype"":""Void"",""offset"":219,""safe"":false},{""name"":""noReentrancy"",""parameters"":[],""returntype"":""Void"",""offset"":309,""safe"":false},{""name"":""noReentrancyFromCall"",""parameters"":[],""returntype"":""Void"",""offset"":413,""safe"":false},{""name"":""noReentrancyFromJump"",""parameters"":[{""name"":""input"",""type"":""Boolean""}],""returntype"":""Void"",""offset"":432,""safe"":false},{""name"":""noReentrancyByAttribute"",""parameters"":[],""returntype"":""Void"",""offset"":543,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":695,""safe"":false}],""events"":[]},""permissions"":[],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_Reentrancy"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""hasReentrancy"",""parameters"":[],""returntype"":""Void"",""offset"":0,""safe"":false},{""name"":""hasReentrancyFromSingleBasicBlock"",""parameters"":[],""returntype"":""Void"",""offset"":115,""safe"":false},{""name"":""hasReentrancyFromCall"",""parameters"":[],""returntype"":""Void"",""offset"":219,""safe"":false},{""name"":""noReentrancy"",""parameters"":[],""returntype"":""Void"",""offset"":309,""safe"":false},{""name"":""noReentrancyFromCall"",""parameters"":[],""returntype"":""Void"",""offset"":413,""safe"":false},{""name"":""noReentrancyFromJump"",""parameters"":[{""name"":""input"",""type"":""Boolean""}],""returntype"":""Void"",""offset"":432,""safe"":false},{""name"":""noReentrancyByAttribute"",""parameters"":[],""returntype"":""Void"",""offset"":543,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":694,""safe"":false}],""events"":[]},""permissions"":[],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP26AlcBADtcAAsQDBQAAAAAAAAAAAAAAAAAAAAAAAAAAAwUAAAAAAAAAAAAAAAAAAAAAAAAAAAUwB8MCHRyYW5zZmVyDBT1Y+pAvCg9TQ4FxI6jBbPyoHNA70FifVtSRT0VcBEMAQHbMEGb9mfOQeY/GIQ9AkALEAwUAAAAAAAAAAAAAAAAAAAAAAAAAAAMFAAAAAAAAAAAAAAAAAAAAAAAAAAAFMAfDAh0cmFuc2ZlcgwU9WPqQLwoPU0OBcSOowWz8qBzQO9BYn1bUkURDAEB2zBBm/ZnzkHmPxiEQAsQDBQAAAAAAAAAAAAAAAAAAAAAAAAAAAwUAAAAAAAAAAAAAAAAAAAAAAAAAAAUwB8MCHRyYW5zZmVyDBTPduKL0AYsSkeO41VhARMZ88+k0kFifVtSRTQDQBEMAQHbMEGb9mfOQeY/GIQLEAwUAAAAAAAAAAAAAAAAAAAAAAAAAAAMFAAAAAAAAAAAAAAAAAAAAAAAAAAAFMAfDAh0cmFuc2ZlcgwU9WPqQLwoPU0OBcSOowWz8qBzQO9BYn1bUkVAEQwBAdswQZv2Z85B5j8YhDSIQFcAAXgmWgsQDBQAAAAAAAAAAAAAAAAAAAAAAAAAAAwUAAAAAAAAAAAAAAAAAAAAAAAAAAAUwB8MCHRyYW5zZmVyDBTPduKL0AYsSkeO41VhARMZ88+k0kFifVtSRUARDAEB2zBBm/ZnzkHmPxiEQFjYJhsLCxLADAtub1JlZW50cmFudAH/ABJNNA9gWDQrNTT+//9YNF5AVwADekp4EVHQRUGb9mfOeRGIThBR0FASwEp4EFHQRUBXAQF4Ec54EM7BRVOLUEGSXegxcGgLlwwPQWxyZWFkeSBlbnRlcmVk4RF4Ec54EM7BRVOLUEHmPxiEQFcAAXgRzngQzsFFU4tQQS9Yxe1AVgFANEYRSA==")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP25AlcBADtcAAsQDBQAAAAAAAAAAAAAAAAAAAAAAAAAAAwUAAAAAAAAAAAAAAAAAAAAAAAAAAAUwB8MCHRyYW5zZmVyDBT1Y+pAvCg9TQ4FxI6jBbPyoHNA70FifVtSRT0VcBEMAQHbMEGb9mfOQeY/GIQ9AkALEAwUAAAAAAAAAAAAAAAAAAAAAAAAAAAMFAAAAAAAAAAAAAAAAAAAAAAAAAAAFMAfDAh0cmFuc2ZlcgwU9WPqQLwoPU0OBcSOowWz8qBzQO9BYn1bUkURDAEB2zBBm/ZnzkHmPxiEQAsQDBQAAAAAAAAAAAAAAAAAAAAAAAAAAAwUAAAAAAAAAAAAAAAAAAAAAAAAAAAUwB8MCHRyYW5zZmVyDBTPduKL0AYsSkeO41VhARMZ88+k0kFifVtSRTQDQBEMAQHbMEGb9mfOQeY/GIQLEAwUAAAAAAAAAAAAAAAAAAAAAAAAAAAMFAAAAAAAAAAAAAAAAAAAAAAAAAAAFMAfDAh0cmFuc2ZlcgwU9WPqQLwoPU0OBcSOowWz8qBzQO9BYn1bUkVAEQwBAdswQZv2Z85B5j8YhDSIQFcAAXgmWgsQDBQAAAAAAAAAAAAAAAAAAAAAAAAAAAwUAAAAAAAAAAAAAAAAAAAAAAAAAAAUwB8MCHRyYW5zZmVyDBTPduKL0AYsSkeO41VhARMZ88+k0kFifVtSRUARDAEB2zBBm/ZnzkHmPxiEQFjYJhsLCxLADAtub1JlZW50cmFudAH/ABJNNA9gWDQrNTT+//9YNF1AVwADekp4EVHQRUGb9mfOeRGIThBR0FASwEp4EFHQRUBXAQF4Ec54EM7BRVOLUEGSXegxcGjYDA9BbHJlYWR5IGVudGVyZWThEXgRzngQzsFFU4tQQeY/GIRAVwABeBHOeBDOwUVTi1BBL1jF7UBWAUBhsDXX")); #endregion @@ -130,7 +130,7 @@ public abstract class Contract_Reentrancy(Neo.SmartContract.Testing.SmartContrac /// Unsafe method /// /// - /// Script: WNgmGwsLEsAMbm9SZWVudHJhbnQB/wASTTQPYFg0KzU0/v//WDReQA== + /// Script: WNgmGwsLEsAMbm9SZWVudHJhbnQB/wASTTQPYFg0KzU0/v//WDRdQA== /// 00 : OpCode.LDSFLD0 /// 01 : OpCode.ISNULL /// 02 : OpCode.JMPIFNOT 1B @@ -148,7 +148,7 @@ public abstract class Contract_Reentrancy(Neo.SmartContract.Testing.SmartContrac /// 1E : OpCode.CALL 2B /// 20 : OpCode.CALL_L 34FEFFFF /// 25 : OpCode.LDSFLD0 - /// 26 : OpCode.CALL 5E + /// 26 : OpCode.CALL 5D /// 28 : OpCode.RET /// [DisplayName("noReentrancyByAttribute")] diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_String.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_String.cs index 62e0a80df..f202b7d2e 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_String.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_String.cs @@ -15,7 +15,7 @@ public abstract class Contract_String(Neo.SmartContract.Testing.SmartContractIni /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAS+8gQxQDYqd8FQmcfmTBL3ALZl2ghnZXRCbG9jawEAAQ++8gQxQDYqd8FQmcfmTBL3ALZl2gtjdXJyZW50SGFzaAAAAQ/A7znO4OTpJcbCoGp54UQN2G/OrARpdG9hAQABD8DvOc7g5OklxsKgannhRA3Yb86sDG1lbW9yeVNlYXJjaAIAAQ8AAP1UA1cDAAwETWFya3AMAHE3AQA3AAAUznIMB0hlbGxvLCBoiwwBIItpiwwXISBDdXJyZW50IHRpbWVzdGFtcCBpcyCLajcCAIsMAS6L2yhBz+dHlkBXAgAMBWhlbGxvcAwFaGVsbG9xaGmXJAsMBUZhbHNlIggMBFRydWVBz+dHlkBXAQAMCDAxMjM0NTY3cGgRS8pLn4xBz+dHlmgRFIxBz+dHlkAMAEBXAAF4StgkBsoQs0BFCEBXAAEMBXdvcmxkeErKUUrKShNSUJ9KECwIRUVFRQlAE1JTjNsol0BXAAEMBXdvcmxkeDcDABC4QFcAAQwFd29ybGR4NwMAQFcEAAQAAKDexa3JNTYAAAAAAAAAcAwiTlhWN1poSGl5TTFhSFh3cFZzUlpDNkJ3TkZQMmpnaFhBcXEMAwECA9swcgwHU0J5dGU6IADWNwIAiwwILCBCeXRlOiCLACo3AgCLDAosIFVTaG9ydDogiwHoAzcCAIsMAiwgi9soDAZVSW50OiACQEIPADcCAIsMCSwgVUxvbmc6IIsDABCl1OgAAAA3AgCLDAIsIIvbKIvbKAwMQmlnSW50ZWdlcjogaDcCAIsMCCwgQ2hhcjogiwBB2yiLDAosIFN0cmluZzogiwwFSGVsbG+LDAIsIIvbKIvbKAwJRUNQb2ludDogaYsMDiwgQnl0ZVN0cmluZzogiwwNU3lzdGVtLkJ5dGVbXYsMCCwgQm9vbDogiwgmCgwEVHJ1ZSIJDAVGYWxzZYvbKIvbKHNrQFcDAXjKcBBxaJ1yaWi1JhV4ac5KGR67UAAgl6wmB2mccSLqamm3JhV4as5KGR67UAAgl6wmB2qdciLqeGlqaZ+cjEBXAAJ4ec5AVwACeHlLykufjEBXAAJ5eErYJgVFDABQStgmBUUMAItAVwACeXg3AwBAVwABDAAQSnjKtSYiSnhQzkoAQQBbuyQJUVCLUJwi6QBBnwBhnlFQi1CcItxF2yhAVwABDAAQSnjKtSYiSnhQzkoAYQB7uyQJUVCLUJwi6QBhnwBBnlFQi1CcItxF2yhAVwMCeXjKcBBxaJ1yRWlotSYOeGnOebMmB2mccSLxamm3Jg54as55syYHap1yIvF4aWppn5yMQFcAAXjKQGi4rDg=")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAS+8gQxQDYqd8FQmcfmTBL3ALZl2ghnZXRCbG9jawEAAQ++8gQxQDYqd8FQmcfmTBL3ALZl2gtjdXJyZW50SGFzaAAAAQ/A7znO4OTpJcbCoGp54UQN2G/OrARpdG9hAQABD8DvOc7g5OklxsKgannhRA3Yb86sDG1lbW9yeVNlYXJjaAIAAQ8AAP1UA1cDAAwETWFya3AMAHE3AQA3AAAUznIMB0hlbGxvLCBoiwwBIItpiwwXISBDdXJyZW50IHRpbWVzdGFtcCBpcyCLajcCAIsMAS6L2yhBz+dHlkBXAgAMBWhlbGxvcAwFaGVsbG9xaGmXJAsMBUZhbHNlIggMBFRydWVBz+dHlkBXAQAMCDAxMjM0NTY3cGgRS8pLn4xBz+dHlmgRFIxBz+dHlkAMAEBXAAF4StgkBsqxqkBFCEBXAAEMBXdvcmxkeErKUUrKShNSUJ9KECwIRUVFRQlAE1JTjNsol0BXAAEMBXdvcmxkeDcDABC4QFcAAQwFd29ybGR4NwMAQFcEAAQAAKDexa3JNTYAAAAAAAAAcAwiTlhWN1poSGl5TTFhSFh3cFZzUlpDNkJ3TkZQMmpnaFhBcXEMAwECA9swcgwHU0J5dGU6IADWNwIAiwwILCBCeXRlOiCLACo3AgCLDAosIFVTaG9ydDogiwHoAzcCAIsMAiwgi9soDAZVSW50OiACQEIPADcCAIsMCSwgVUxvbmc6IIsDABCl1OgAAAA3AgCLDAIsIIvbKIvbKAwMQmlnSW50ZWdlcjogaDcCAIsMCCwgQ2hhcjogiwBB2yiLDAosIFN0cmluZzogiwwFSGVsbG+LDAIsIIvbKIvbKAwJRUNQb2ludDogaYsMDiwgQnl0ZVN0cmluZzogiwwNU3lzdGVtLkJ5dGVbXYsMCCwgQm9vbDogiwgmCgwEVHJ1ZSIJDAVGYWxzZYvbKIvbKHNrQFcDAXjKcBBxaJ1yaWi1JhV4ac5KGR67UAAgl6wmB2mccSLqamm3JhV4as5KGR67UAAgl6wmB2qdciLqeGlqaZ+cjEBXAAJ4ec5AVwACeHlLykufjEBXAAJ5eErYJgVFDABQStgmBUUMAItAVwACeXg3AwBAVwABDAAQSnjKtSYiSnhQzkoAQQBbuyQJUVCLUJwi6QBBnwBhnlFQi1CcItxF2yhAVwABDAAQSnjKtSYiSnhQzkoAYQB7uyQJUVCLUJwi6QBhnwBBnlFQi1CcItxF2yhAVwMCeXjKcBBxaJ1yRWlotSYOeGnOebMmB2mccSLxamm3Jg54as55syYHap1yIvF4aWppn5yMQFcAAXjKQEia5Tw=")); #endregion @@ -253,15 +253,15 @@ public abstract class Contract_String(Neo.SmartContract.Testing.SmartContractIni /// Unsafe method /// /// - /// Script: VwABeErYJAbKELNARQhA + /// Script: VwABeErYJAbKsapARQhA /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.LDARG0 /// 04 : OpCode.DUP /// 05 : OpCode.ISNULL /// 06 : OpCode.JMPIF 06 /// 08 : OpCode.SIZE - /// 09 : OpCode.PUSH0 - /// 0A : OpCode.NUMEQUAL + /// 09 : OpCode.NZ + /// 0A : OpCode.NOT /// 0B : OpCode.RET /// 0C : OpCode.DROP /// 0D : OpCode.PUSHT diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_TryCatch.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_TryCatch.cs index cdbcad1a6..74af3c952 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_TryCatch.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_TryCatch.cs @@ -10,12 +10,12 @@ public abstract class Contract_TryCatch(Neo.SmartContract.Testing.SmartContractI { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_TryCatch"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""try01"",""parameters"":[{""name"":""throwException"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":0,""safe"":false},{""name"":""try02"",""parameters"":[{""name"":""throwException"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":92,""safe"":false},{""name"":""try03"",""parameters"":[{""name"":""throwException"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":101,""safe"":false},{""name"":""tryNest"",""parameters"":[{""name"":""throwInTry"",""type"":""Boolean""},{""name"":""throwInCatch"",""type"":""Boolean""},{""name"":""throwInFinally"",""type"":""Boolean""},{""name"":""enterOuterCatch"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":196,""safe"":false},{""name"":""throwInCatch"",""parameters"":[{""name"":""throwInTry"",""type"":""Boolean""},{""name"":""throwInCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":346,""safe"":false},{""name"":""tryFinally"",""parameters"":[{""name"":""throwException"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":403,""safe"":false},{""name"":""tryFinallyAndRethrow"",""parameters"":[{""name"":""throwException"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":487,""safe"":false},{""name"":""tryCatch"",""parameters"":[{""name"":""throwException"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":565,""safe"":false},{""name"":""tryWithTwoFinally"",""parameters"":[{""name"":""throwInInner"",""type"":""Boolean""},{""name"":""throwInOuter"",""type"":""Boolean""},{""name"":""enterInnerCatch"",""type"":""Boolean""},{""name"":""enterOuterCatch"",""type"":""Boolean""},{""name"":""enterInnerFinally"",""type"":""Boolean""},{""name"":""enterOuterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":645,""safe"":false},{""name"":""tryecpointCast"",""parameters"":[{""name"":""useInvalidECpoint"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":969,""safe"":false},{""name"":""tryvalidByteString2Ecpoint"",""parameters"":[{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":1106,""safe"":false},{""name"":""tryinvalidByteArray2UInt160"",""parameters"":[{""name"":""useInvalidECpoint"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":1230,""safe"":false},{""name"":""tryvalidByteArray2UInt160"",""parameters"":[{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":1354,""safe"":false},{""name"":""tryinvalidByteArray2UInt256"",""parameters"":[{""name"":""useInvalidECpoint"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":1465,""safe"":false},{""name"":""tryvalidByteArray2UInt256"",""parameters"":[{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":1601,""safe"":false},{""name"":""tryNULL2Ecpoint_1"",""parameters"":[{""name"":""setToNull"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Array"",""offset"":1713,""safe"":false},{""name"":""tryNULL2Uint160_1"",""parameters"":[{""name"":""setToNull"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Array"",""offset"":1873,""safe"":false},{""name"":""tryNULL2Uint256_1"",""parameters"":[{""name"":""setToNull"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Array"",""offset"":2033,""safe"":false},{""name"":""tryNULL2Bytestring_1"",""parameters"":[{""name"":""setToNull"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Array"",""offset"":2193,""safe"":false},{""name"":""throwCall"",""parameters"":[],""returntype"":""Any"",""offset"":184,""safe"":false},{""name"":""tryUncatchableException"",""parameters"":[{""name"":""throwException"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":2342,""safe"":false}],""events"":[]},""permissions"":[],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_TryCatch"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""try01"",""parameters"":[{""name"":""throwException"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":0,""safe"":false},{""name"":""try02"",""parameters"":[{""name"":""throwException"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":92,""safe"":false},{""name"":""try03"",""parameters"":[{""name"":""throwException"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":101,""safe"":false},{""name"":""tryNest"",""parameters"":[{""name"":""throwInTry"",""type"":""Boolean""},{""name"":""throwInCatch"",""type"":""Boolean""},{""name"":""throwInFinally"",""type"":""Boolean""},{""name"":""enterOuterCatch"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":196,""safe"":false},{""name"":""throwInCatch"",""parameters"":[{""name"":""throwInTry"",""type"":""Boolean""},{""name"":""throwInCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":346,""safe"":false},{""name"":""tryFinally"",""parameters"":[{""name"":""throwException"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":403,""safe"":false},{""name"":""tryFinallyAndRethrow"",""parameters"":[{""name"":""throwException"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":487,""safe"":false},{""name"":""tryCatch"",""parameters"":[{""name"":""throwException"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":565,""safe"":false},{""name"":""tryWithTwoFinally"",""parameters"":[{""name"":""throwInInner"",""type"":""Boolean""},{""name"":""throwInOuter"",""type"":""Boolean""},{""name"":""enterInnerCatch"",""type"":""Boolean""},{""name"":""enterOuterCatch"",""type"":""Boolean""},{""name"":""enterInnerFinally"",""type"":""Boolean""},{""name"":""enterOuterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":645,""safe"":false},{""name"":""tryecpointCast"",""parameters"":[{""name"":""useInvalidECpoint"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":969,""safe"":false},{""name"":""tryvalidByteString2Ecpoint"",""parameters"":[{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":1106,""safe"":false},{""name"":""tryinvalidByteArray2UInt160"",""parameters"":[{""name"":""useInvalidECpoint"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":1230,""safe"":false},{""name"":""tryvalidByteArray2UInt160"",""parameters"":[{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":1354,""safe"":false},{""name"":""tryinvalidByteArray2UInt256"",""parameters"":[{""name"":""useInvalidECpoint"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":1465,""safe"":false},{""name"":""tryvalidByteArray2UInt256"",""parameters"":[{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":1601,""safe"":false},{""name"":""tryNULL2Ecpoint_1"",""parameters"":[{""name"":""setToNull"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Array"",""offset"":1713,""safe"":false},{""name"":""tryNULL2Uint160_1"",""parameters"":[{""name"":""setToNull"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Array"",""offset"":1872,""safe"":false},{""name"":""tryNULL2Uint256_1"",""parameters"":[{""name"":""setToNull"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Array"",""offset"":2031,""safe"":false},{""name"":""tryNULL2Bytestring_1"",""parameters"":[{""name"":""setToNull"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Array"",""offset"":2190,""safe"":false},{""name"":""throwCall"",""parameters"":[],""returntype"":""Any"",""offset"":184,""safe"":false},{""name"":""tryUncatchableException"",""parameters"":[{""name"":""throwException"",""type"":""Boolean""},{""name"":""enterCatch"",""type"":""Boolean""},{""name"":""enterFinally"",""type"":""Boolean""}],""returntype"":""Integer"",""offset"":2338,""safe"":false}],""events"":[]},""permissions"":[],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP13CVcCAxBwOxYeEnB4Jg4MCWV4Y2VwdGlvbjo9QXF5JgQTcD05eiY1aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFP2hAVwADenl4NJ5AVwIDEHA7DRUScHgmBTRGRT1BcXkmBBNwPTl6JjVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEU/aEAMCWV4Y2VwdGlvbjpXAgQQcDtWADsNGBJweCYFNORFPUZxE3B5JgU02UU9O3omBDTRaEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFPz07cXsmNWhKnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wRT0CaEBXAgMQcDsWKhFweCYODAlleGNlcHRpb246PRxxEnB5Jg4MCWV4Y2VwdGlvbjo9CHomBBNwPxRwaEBXAQIQcDsAFhJweCYODAlleGNlcHRpb246PTl5JjVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEU/aEBXAQIQcDsAEBJweCYINcT+//9FPTl5JjVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEU/aEBXAgIQcDsQABJweCYINXb+//9FPTtxeSY1aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFPQJoQFcCBhBwPM8AAAAHAQAAO0d/aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFeCYODAlleGNlcHRpb246PXBxeiY0aBKeSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3A9OHwmNGgTnkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wP3kmDgwJZXhjZXB0aW9uOj1wcXsmNGgUnkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wPTh9JjRoFZ5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcD9oQFcCAxBwO0NLEnB4JgwMBgoLDA0ODyIlDCECRwDbLpDZ8CxPn8hiq6ypJyX5W0/dzI1/+lOGk+z0Y6lK2CQJSsoAISgDOnE9QXF5JgQTcD05eiY1aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFP2hAVwICEHA7Nj4ScAwhAkcA2y6Q2fAsT5/IYqusqScl+VtP3cyNf/pThpPs9GOpStgkCUrKACEoAzpxPUFxeCYEE3A9OXkmNWhKnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wRT9oQFcCAxBwOzY+EnB4JgwMBgoLDA0ODyIYDBR+7hqr62ftHXkdROT1/POukXGocUrYJAlKygAUKAM6cT1BcXkmBBNwPTl6JjVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEU/aEBXAgIQcDspMRJwDBR+7hqr62ftHXkdROT1/POukXGocUrYJAlKygAUKAM6cT1BcXgmBBNwPTl5JjVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEU/aEBXAgMQcDtCShJweCYXDAYKCwwNDg9K2CQJSsoAICgDOiIkDCDtz4Z5EE7CkRpP4prX2yMqST5bmQ+x2nrwx7mJlIyJJXE9QXF5JgQTcD05eiY1aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFP2hAVwICEHA7KjIScAwg7c+GeRBOwpEaT+Ka19sjKkk+W5kPsdp68Me5iZSMiSVxPUFxeCYEE3A9OXkmNWhKnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wRT9oQFcDAxBwACGI2yhK2CQJSsoAISgDOnE7DBQScHgmBAtxPXtyeSYEE3A9c3omNWhKnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wRWlyaguXJjVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEU/aWgSv0BXAwMQcAAUiNsoStgkCUrKABQoAzpxOwwUEnB4JgQLcT17cnkmBBNwPXN6JjVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEVpcmoLlyY1aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFP2loEr9AVwMDEHAAIIjbKErYJAlKygAgKAM6cTsMFBJweCYEC3E9e3J5JgQTcD1zeiY1aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFaXJqC5cmNWhKnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wRT9paBK/QFcDAxBwDAMxMjNxOwwUEnB4JgQLcT17cnkmBBNwPXN6JjVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEVpcmoLlyY1aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFP2loEr9AVwIDEHA7CxMScHgmAzg9QXF5JgQTcD05eiY1aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFP2hA68zPMA==")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP1zCVcCAxBwOxYeEnB4Jg4MCWV4Y2VwdGlvbjo9QXF5JgQTcD05eiY1aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFP2hAVwADenl4NJ5AVwIDEHA7DRUScHgmBTRGRT1BcXkmBBNwPTl6JjVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEU/aEAMCWV4Y2VwdGlvbjpXAgQQcDtWADsNGBJweCYFNORFPUZxE3B5JgU02UU9O3omBDTRaEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFPz07cXsmNWhKnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wRT0CaEBXAgMQcDsWKhFweCYODAlleGNlcHRpb246PRxxEnB5Jg4MCWV4Y2VwdGlvbjo9CHomBBNwPxRwaEBXAQIQcDsAFhJweCYODAlleGNlcHRpb246PTl5JjVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEU/aEBXAQIQcDsAEBJweCYINcT+//9FPTl5JjVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEU/aEBXAgIQcDsQABJweCYINXb+//9FPTtxeSY1aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFPQJoQFcCBhBwPM8AAAAHAQAAO0d/aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFeCYODAlleGNlcHRpb246PXBxeiY0aBKeSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3A9OHwmNGgTnkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wP3kmDgwJZXhjZXB0aW9uOj1wcXsmNGgUnkoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wPTh9JjRoFZ5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcD9oQFcCAxBwO0NLEnB4JgwMBgoLDA0ODyIlDCECRwDbLpDZ8CxPn8hiq6ypJyX5W0/dzI1/+lOGk+z0Y6lK2CQJSsoAISgDOnE9QXF5JgQTcD05eiY1aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFP2hAVwICEHA7Nj4ScAwhAkcA2y6Q2fAsT5/IYqusqScl+VtP3cyNf/pThpPs9GOpStgkCUrKACEoAzpxPUFxeCYEE3A9OXkmNWhKnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wRT9oQFcCAxBwOzY+EnB4JgwMBgoLDA0ODyIYDBR+7hqr62ftHXkdROT1/POukXGocUrYJAlKygAUKAM6cT1BcXkmBBNwPTl6JjVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEU/aEBXAgIQcDspMRJwDBR+7hqr62ftHXkdROT1/POukXGocUrYJAlKygAUKAM6cT1BcXgmBBNwPTl5JjVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEU/aEBXAgMQcDtCShJweCYXDAYKCwwNDg9K2CQJSsoAICgDOiIkDCDtz4Z5EE7CkRpP4prX2yMqST5bmQ+x2nrwx7mJlIyJJXE9QXF5JgQTcD05eiY1aEqcSgIAAACALgQiCkoC////fzIeA/////8AAAAAkUoC////fzIMAwAAAAABAAAAn3BFP2hAVwICEHA7KjIScAwg7c+GeRBOwpEaT+Ka19sjKkk+W5kPsdp68Me5iZSMiSVxPUFxeCYEE3A9OXkmNWhKnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wRT9oQFcDAxBwACGI2yhK2CQJSsoAISgDOnE7DBQScHgmBAtxPXpyeSYEE3A9cnomNWhKnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wRWlyatgmNWhKnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wRT9paBK/QFcDAxBwABSI2yhK2CQJSsoAFCgDOnE7DBQScHgmBAtxPXpyeSYEE3A9cnomNWhKnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wRWlyatgmNWhKnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wRT9paBK/QFcDAxBwACCI2yhK2CQJSsoAICgDOnE7DBQScHgmBAtxPXpyeSYEE3A9cnomNWhKnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wRWlyatgmNWhKnEoCAAAAgC4EIgpKAv///38yHgP/////AAAAAJFKAv///38yDAMAAAAAAQAAAJ9wRT9paBK/QFcDAxBwDAMxMjNxOwwUEnB4JgQLcT16cnkmBBNwPXJ6JjVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEVpcmrYJjVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEU/aWgSv0BXAgMQcDsLExJweCYDOD1BcXkmBBNwPTl6JjVoSpxKAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfcEU/aED2uljw")); #endregion diff --git a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_UIntTypes.cs b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_UIntTypes.cs index dd5309427..1cc66a923 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_UIntTypes.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/TestingArtifacts/Contract_UIntTypes.cs @@ -15,7 +15,7 @@ public abstract class Contract_UIntTypes(Neo.SmartContract.Testing.SmartContract /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGBXAAF4DBT2ZENJjTh40yuZTk4Sg8aTRCHa/pdAVwABeAwUAAAAAAAAAAAAAAAAAAAAAAAAAACXQFcAAXjbKErYJAlKygAUKAM6QFcAAXhK2ShQygAUs6skBAlAeBCzqkAyScS2")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGBXAAF4DBT2ZENJjTh40yuZTk4Sg8aTRCHa/pdAVwABeAwUAAAAAAAAAAAAAAAAAAAAAAAAAACXQFcAAXjbKErYJAlKygAUKAM6QFcAAXhK2ShQygAUs6skBAlAeLGqqkB3oBkf")); #endregion diff --git a/tests/Neo.Compiler.CSharp.UnitTests/UnitTest_NullableType.cs b/tests/Neo.Compiler.CSharp.UnitTests/UnitTest_NullableType.cs index 72dfb6370..ee0b072f1 100644 --- a/tests/Neo.Compiler.CSharp.UnitTests/UnitTest_NullableType.cs +++ b/tests/Neo.Compiler.CSharp.UnitTests/UnitTest_NullableType.cs @@ -11,16 +11,16 @@ public class UnitTest_NullableType : DebugAndTestBase public void TestBigInteger() { Assert.AreEqual(BigInteger.Parse("3"), Contract.TestBigIntegerAdd(BigInteger.One, new BigInteger(2))); - Assert.AreEqual(1048320, Engine.FeeConsumed.Value); + Assert.AreEqual(1048200, Engine.FeeConsumed.Value); Assert.AreEqual(BigInteger.Zero, Contract.TestBigIntegerAdd(null, BigInteger.One)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.AreEqual(BigInteger.Parse("3"), Contract.TestBigIntegerAddNonNullable(BigInteger.One, new BigInteger(2))); Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestBigIntegerCompare(new BigInteger(2), BigInteger.One)); - Assert.AreEqual(1048320, Engine.FeeConsumed.Value); + Assert.AreEqual(1048200, Engine.FeeConsumed.Value); Assert.IsFalse(Contract.TestBigIntegerCompare(null, BigInteger.One)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestBigIntegerCompareNonNullable(new BigInteger(2), BigInteger.One)); Assert.AreEqual(1047360, Engine.FeeConsumed.Value); @@ -36,16 +36,16 @@ public void TestBigInteger() public void TestInt() { Assert.AreEqual(3, Contract.TestIntAdd(1, 2)); - Assert.AreEqual(1048620, Engine.FeeConsumed.Value); + Assert.AreEqual(1048500, Engine.FeeConsumed.Value); Assert.AreEqual(0, Contract.TestIntAdd(null, 1)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.AreEqual(3, Contract.TestIntAddNonNullable(1, 2)); Assert.AreEqual(1047660, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestIntCompare(2, 1)); - Assert.AreEqual(1048320, Engine.FeeConsumed.Value); + Assert.AreEqual(1048200, Engine.FeeConsumed.Value); Assert.IsFalse(Contract.TestIntCompare(null, 1)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestIntCompareNonNullable(2, 1)); Assert.AreEqual(1047360, Engine.FeeConsumed.Value); @@ -61,16 +61,16 @@ public void TestInt() public void TestUInt() { Assert.AreEqual(3u, Contract.TestUIntAdd(1u, 2u)); - Assert.AreEqual(1048620, Engine.FeeConsumed.Value); + Assert.AreEqual(1048500, Engine.FeeConsumed.Value); Assert.AreEqual(0u, Contract.TestUIntAdd(null, 1u)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.AreEqual(3u, Contract.TestUIntAddNonNullable(1u, 2u)); Assert.AreEqual(1047660, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestUIntCompare(2u, 1u)); - Assert.AreEqual(1048320, Engine.FeeConsumed.Value); + Assert.AreEqual(1048200, Engine.FeeConsumed.Value); Assert.IsFalse(Contract.TestUIntCompare(null, 1u)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestUIntCompareNonNullable(2u, 1u)); Assert.AreEqual(1047360, Engine.FeeConsumed.Value); @@ -86,16 +86,16 @@ public void TestUInt() public void TestLong() { Assert.AreEqual(3L, Contract.TestLongAdd(1L, 2L)); - Assert.AreEqual(1048620, Engine.FeeConsumed.Value); + Assert.AreEqual(1048500, Engine.FeeConsumed.Value); Assert.AreEqual(0L, Contract.TestLongAdd(null, 1L)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.AreEqual(3L, Contract.TestLongAddNonNullable(1L, 2L)); Assert.AreEqual(1047660, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestLongCompare(2L, 1L)); - Assert.AreEqual(1048320, Engine.FeeConsumed.Value); + Assert.AreEqual(1048200, Engine.FeeConsumed.Value); Assert.IsFalse(Contract.TestLongCompare(null, 1L)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestLongCompareNonNullable(2L, 1L)); Assert.AreEqual(1047360, Engine.FeeConsumed.Value); @@ -111,16 +111,16 @@ public void TestLong() public void TestULong() { Assert.AreEqual(3UL, Contract.TestULongAdd(1UL, 2UL)); - Assert.AreEqual(1048710, Engine.FeeConsumed.Value); + Assert.AreEqual(1048590, Engine.FeeConsumed.Value); Assert.AreEqual(0UL, Contract.TestULongAdd(null, 1UL)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.AreEqual(3UL, Contract.TestULongAddNonNullable(1UL, 2UL)); Assert.AreEqual(1047750, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestULongCompare(2UL, 1UL)); - Assert.AreEqual(1048320, Engine.FeeConsumed.Value); + Assert.AreEqual(1048200, Engine.FeeConsumed.Value); Assert.IsFalse(Contract.TestULongCompare(null, 1UL)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestULongCompareNonNullable(2UL, 1UL)); Assert.AreEqual(1047360, Engine.FeeConsumed.Value); @@ -136,16 +136,16 @@ public void TestULong() public void TestShort() { Assert.AreEqual((short)3, Contract.TestShortAdd((short)1, (short)2)); - Assert.AreEqual(1048920, Engine.FeeConsumed.Value); + Assert.AreEqual(1048800, Engine.FeeConsumed.Value); Assert.AreEqual((short)0, Contract.TestShortAdd(null, (short)1)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.AreEqual((short)3, Contract.TestShortAddNonNullable((short)1, (short)2)); Assert.AreEqual(1047960, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestShortCompare((short)2, (short)1)); - Assert.AreEqual(1048320, Engine.FeeConsumed.Value); + Assert.AreEqual(1048200, Engine.FeeConsumed.Value); Assert.IsFalse(Contract.TestShortCompare(null, (short)1)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestShortCompareNonNullable((short)2, (short)1)); Assert.AreEqual(1047360, Engine.FeeConsumed.Value); @@ -161,16 +161,16 @@ public void TestShort() public void TestUShort() { Assert.AreEqual((ushort)3, Contract.TestUShortAdd((ushort)1, (ushort)2)); - Assert.AreEqual(1048920, Engine.FeeConsumed.Value); + Assert.AreEqual(1048800, Engine.FeeConsumed.Value); Assert.AreEqual((ushort)0, Contract.TestUShortAdd(null, (ushort)1)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.AreEqual((ushort)3, Contract.TestUShortAddNonNullable((ushort)1, (ushort)2)); Assert.AreEqual(1047960, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestUShortCompare((ushort)2, (ushort)1)); - Assert.AreEqual(1048320, Engine.FeeConsumed.Value); + Assert.AreEqual(1048200, Engine.FeeConsumed.Value); Assert.IsFalse(Contract.TestUShortCompare(null, (ushort)1)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestUShortCompareNonNullable((ushort)2, (ushort)1)); Assert.AreEqual(1047360, Engine.FeeConsumed.Value); @@ -186,16 +186,16 @@ public void TestUShort() public void TestSByte() { Assert.AreEqual((sbyte)3, Contract.TestSByteAdd((sbyte)1, (sbyte)2)); - Assert.AreEqual(1048920, Engine.FeeConsumed.Value); + Assert.AreEqual(1048800, Engine.FeeConsumed.Value); Assert.AreEqual((sbyte)0, Contract.TestSByteAdd(null, (sbyte)1)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.AreEqual((sbyte)3, Contract.TestSByteAddNonNullable((sbyte)1, (sbyte)2)); Assert.AreEqual(1047960, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestSByteCompare((sbyte)2, (sbyte)1)); - Assert.AreEqual(1048320, Engine.FeeConsumed.Value); + Assert.AreEqual(1048200, Engine.FeeConsumed.Value); Assert.IsFalse(Contract.TestSByteCompare(null, (sbyte)1)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestSByteCompareNonNullable((sbyte)2, (sbyte)1)); Assert.AreEqual(1047360, Engine.FeeConsumed.Value); @@ -211,16 +211,16 @@ public void TestSByte() public void TestByte() { Assert.AreEqual((byte)3, Contract.TestByteAdd((byte)1, (byte)2)); - Assert.AreEqual(1048920, Engine.FeeConsumed.Value); + Assert.AreEqual(1048800, Engine.FeeConsumed.Value); Assert.AreEqual((byte)0, Contract.TestByteAdd(null, (byte)1)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.AreEqual((byte)3, Contract.TestByteAddNonNullable((byte)1, (byte)2)); Assert.AreEqual(1047960, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestByteCompare((byte)2, (byte)1)); - Assert.AreEqual(1048320, Engine.FeeConsumed.Value); + Assert.AreEqual(1048200, Engine.FeeConsumed.Value); Assert.IsFalse(Contract.TestByteCompare(null, (byte)1)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestByteCompareNonNullable((byte)2, (byte)1)); Assert.AreEqual(1047360, Engine.FeeConsumed.Value); @@ -236,16 +236,16 @@ public void TestByte() public void TestBool() { Assert.IsTrue(Contract.TestBoolAnd(true, true)); - Assert.AreEqual(1048140, Engine.FeeConsumed.Value); + Assert.AreEqual(1048020, Engine.FeeConsumed.Value); Assert.IsFalse(Contract.TestBoolAnd(null, true)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestBoolAndNonNullable(true, true)); Assert.AreEqual(1047180, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestBoolOr(true, false)); - Assert.AreEqual(1047930, Engine.FeeConsumed.Value); + Assert.AreEqual(1047810, Engine.FeeConsumed.Value); Assert.IsFalse(Contract.TestBoolOr(null, false)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.IsTrue(Contract.TestBoolOrNonNullable(true, false)); Assert.AreEqual(1047150, Engine.FeeConsumed.Value); @@ -291,21 +291,21 @@ public void TestArrays() Assert.AreEqual(1, Contract.TestUInt160ArrayLength([UInt160.Zero])); Assert.AreEqual(1109190, Engine.FeeConsumed.Value); Assert.AreEqual(0, Contract.TestUInt160ArrayLength(null)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.AreEqual(1, Contract.TestUInt160ArrayLengthNonNullable([UInt160.Zero])); Assert.AreEqual(1108830, Engine.FeeConsumed.Value); Assert.AreEqual(1, Contract.TestUInt256ArrayLength([UInt256.Zero])); Assert.AreEqual(1109190, Engine.FeeConsumed.Value); Assert.AreEqual(0, Contract.TestUInt256ArrayLength(null)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.AreEqual(1, Contract.TestUInt256ArrayLengthNonNullable([UInt256.Zero])); Assert.AreEqual(1108830, Engine.FeeConsumed.Value); Assert.AreEqual(1, Contract.TestByteArrayLength([1])); Assert.AreEqual(1108980, Engine.FeeConsumed.Value); Assert.AreEqual(0, Contract.TestByteArrayLength(null)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.AreEqual(1, Contract.TestByteArrayLengthNonNullable([1])); Assert.AreEqual(1047360, Engine.FeeConsumed.Value); } @@ -316,7 +316,7 @@ public void TestString() Assert.AreEqual(4, Contract.TestStringLength("test")); Assert.AreEqual(1047720, Engine.FeeConsumed.Value); Assert.AreEqual(0, Contract.TestStringLength(null)); - Assert.AreEqual(1047480, Engine.FeeConsumed.Value); + Assert.AreEqual(1047360, Engine.FeeConsumed.Value); Assert.AreEqual(4, Contract.TestStringLengthNonNullable("test")); Assert.AreEqual(1047360, Engine.FeeConsumed.Value); diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Attribute.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Attribute.cs index a705ae55c..5b5236f22 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Attribute.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Attribute.cs @@ -10,12 +10,12 @@ public abstract class Contract_Attribute(Neo.SmartContract.Testing.SmartContract { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_Attribute"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""test"",""parameters"":[],""returntype"":""Boolean"",""offset"":0,""safe"":false},{""name"":""reentrantB"",""parameters"":[],""returntype"":""Void"",""offset"":103,""safe"":false},{""name"":""reentrantA"",""parameters"":[],""returntype"":""Void"",""offset"":250,""safe"":false},{""name"":""reentrantTest"",""parameters"":[{""name"":""value"",""type"":""Integer""}],""returntype"":""Void"",""offset"":294,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":462,""safe"":false}],""events"":[]},""permissions"":[{""contract"":""0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"",""methods"":[""base64Decode""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_Attribute"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""test"",""parameters"":[],""returntype"":""Boolean"",""offset"":0,""safe"":false},{""name"":""reentrantB"",""parameters"":[],""returntype"":""Void"",""offset"":102,""safe"":false},{""name"":""reentrantA"",""parameters"":[],""returntype"":""Void"",""offset"":248,""safe"":false},{""name"":""reentrantTest"",""parameters"":[{""name"":""value"",""type"":""Integer""}],""returntype"":""Void"",""offset"":292,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":459,""safe"":false}],""events"":[]},""permissions"":[{""contract"":""0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"",""methods"":[""base64Decode""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHA7znO4OTpJcbCoGp54UQN2G/OrAxiYXNlNjREZWNvZGUBAAEPAAD90QFY2CYoCxHADBxBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUE9EU00CGBYNCEIQFcAAnk3AADbMNsoStgkCUrKABQoAzpKeBBR0EVAVwABeBDOQfgn7IyqJg4MCWV4Y2VwdGlvbjpAWdgmGwsLEsAMC25vUmVlbnRyYW50Af8AEk00CmFZNCZZNF5AVwADekp4EVHQRUGb9mfOeRGIThBR0FASwEp4EFHQRUBXAQF4Ec54EM7BRVOLUEGSXegxcGgLlwwPQWxyZWFkeSBlbnRlcmVk4RF4Ec54EM7BRVOLUEHmPxiEQFcAAXgRzngQzsFFU4tQQS9Yxe1AWtgmHgsLEsAMC25vUmVlbnRyYW50Af8AEk01d////2JaNJA1Sv///1o0w0BXAAFb2CYdCwsSwAwNcmVlbnRyYW50VGVzdAH/ABJNNBpjWzQ2eBCXJgQiC3gAe5cmBRA0zVs0XkBXAAN6SngRUdBFQZv2Z855EYhOEFHQUBLASngQUdBFQFcBAXgRzngQzsFFU4tQQZJd6DFwaAuXDA9BbHJlYWR5IGVudGVyZWThEXgRzngQzsFFU4tQQeY/GIRAVwABeBHOeBDOwUVTi1BBL1jF7UBWBEAWTqW6")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHA7znO4OTpJcbCoGp54UQN2G/OrAxiYXNlNjREZWNvZGUBAAEPAAD9zgFY2CYoCxHADBxBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUE9EU00CGBYNCEIQFcAAnk3AADbMNsoStgkCUrKABQoAzpKeBBR0EVAVwABeBDOQfgn7IwkDgwJZXhjZXB0aW9uOkBZ2CYbCwsSwAwLbm9SZWVudHJhbnQB/wASTTQKYVk0Jlk0XUBXAAN6SngRUdBFQZv2Z855EYhOEFHQUBLASngQUdBFQFcBAXgRzngQzsFFU4tQQZJd6DFwaNgMD0FscmVhZHkgZW50ZXJlZOEReBHOeBDOwUVTi1BB5j8YhEBXAAF4Ec54EM7BRVOLUEEvWMXtQFrYJh4LCxLADAtub1JlZW50cmFudAH/ABJNNXj///9iWjSRNUv///9aNMNAVwABW9gmHQsLEsAMDXJlZW50cmFudFRlc3QB/wASTTQaY1s0NngQlyYEIgt4AHuXJgUQNM1bNF1AVwADekp4EVHQRUGb9mfOeRGIThBR0FASwEp4EFHQRUBXAQF4Ec54EM7BRVOLUEGSXegxcGjYDA9BbHJlYWR5IGVudGVyZWThEXgRzngQzsFFU4tQQeY/GIRAVwABeBHOeBDOwUVTi1BBL1jF7UBWBEAWmRQS")); #endregion diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Blockchain.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Blockchain.cs index c52dd8d10..4db0866f7 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Blockchain.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Blockchain.cs @@ -10,12 +10,12 @@ public abstract class Contract_Blockchain(Neo.SmartContract.Testing.SmartContrac { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_Blockchain"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""getHeight"",""parameters"":[],""returntype"":""Integer"",""offset"":0,""safe"":false},{""name"":""getTransactionHeight"",""parameters"":[{""name"":""hash"",""type"":""Hash256""}],""returntype"":""Integer"",""offset"":4,""safe"":false},{""name"":""getBlockByHash"",""parameters"":[{""name"":""hash"",""type"":""Hash256""},{""name"":""whatReturn"",""type"":""String""}],""returntype"":""Any"",""offset"":12,""safe"":false},{""name"":""getBlockByIndex"",""parameters"":[{""name"":""index"",""type"":""Integer""},{""name"":""whatReturn"",""type"":""String""}],""returntype"":""Any"",""offset"":223,""safe"":false},{""name"":""getTxByHash"",""parameters"":[{""name"":""hash"",""type"":""Hash256""},{""name"":""whatReturn"",""type"":""String""}],""returntype"":""Any"",""offset"":239,""safe"":false},{""name"":""getTxByBlockHash"",""parameters"":[{""name"":""blockHash"",""type"":""Hash256""},{""name"":""txIndex"",""type"":""Integer""},{""name"":""whatReturn"",""type"":""String""}],""returntype"":""Any"",""offset"":483,""safe"":false},{""name"":""getTxByBlockIndex"",""parameters"":[{""name"":""blockIndex"",""type"":""Integer""},{""name"":""txIndex"",""type"":""Integer""},{""name"":""whatReturn"",""type"":""String""}],""returntype"":""Any"",""offset"":500,""safe"":false},{""name"":""getContract"",""parameters"":[{""name"":""hash"",""type"":""Hash160""},{""name"":""whatReturn"",""type"":""String""}],""returntype"":""Any"",""offset"":517,""safe"":false},{""name"":""getTxVMState"",""parameters"":[{""name"":""hash"",""type"":""Hash256""}],""returntype"":""Integer"",""offset"":658,""safe"":false}],""events"":[]},""permissions"":[{""contract"":""0xda65b600f7124ce6c79950c1772a36403104f2be"",""methods"":[""currentIndex"",""getBlock"",""getTransaction"",""getTransactionFromBlock"",""getTransactionHeight"",""getTransactionSigners"",""getTransactionVMState""]},{""contract"":""0xfffdc93764dbaddd97c48f252a53ea4643faa3fd"",""methods"":[""getContract""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_Blockchain"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""getHeight"",""parameters"":[],""returntype"":""Integer"",""offset"":0,""safe"":false},{""name"":""getTransactionHeight"",""parameters"":[{""name"":""hash"",""type"":""Hash256""}],""returntype"":""Integer"",""offset"":4,""safe"":false},{""name"":""getBlockByHash"",""parameters"":[{""name"":""hash"",""type"":""Hash256""},{""name"":""whatReturn"",""type"":""String""}],""returntype"":""Any"",""offset"":12,""safe"":false},{""name"":""getBlockByIndex"",""parameters"":[{""name"":""index"",""type"":""Integer""},{""name"":""whatReturn"",""type"":""String""}],""returntype"":""Any"",""offset"":222,""safe"":false},{""name"":""getTxByHash"",""parameters"":[{""name"":""hash"",""type"":""Hash256""},{""name"":""whatReturn"",""type"":""String""}],""returntype"":""Any"",""offset"":238,""safe"":false},{""name"":""getTxByBlockHash"",""parameters"":[{""name"":""blockHash"",""type"":""Hash256""},{""name"":""txIndex"",""type"":""Integer""},{""name"":""whatReturn"",""type"":""String""}],""returntype"":""Any"",""offset"":481,""safe"":false},{""name"":""getTxByBlockIndex"",""parameters"":[{""name"":""blockIndex"",""type"":""Integer""},{""name"":""txIndex"",""type"":""Integer""},{""name"":""whatReturn"",""type"":""String""}],""returntype"":""Any"",""offset"":498,""safe"":false},{""name"":""getContract"",""parameters"":[{""name"":""hash"",""type"":""Hash160""},{""name"":""whatReturn"",""type"":""String""}],""returntype"":""Any"",""offset"":515,""safe"":false},{""name"":""getTxVMState"",""parameters"":[{""name"":""hash"",""type"":""Hash256""}],""returntype"":""Integer"",""offset"":655,""safe"":false}],""events"":[]},""permissions"":[{""contract"":""0xda65b600f7124ce6c79950c1772a36403104f2be"",""methods"":[""currentIndex"",""getBlock"",""getTransaction"",""getTransactionFromBlock"",""getTransactionHeight"",""getTransactionSigners"",""getTransactionVMState""]},{""contract"":""0xfffdc93764dbaddd97c48f252a53ea4643faa3fd"",""methods"":[""getContract""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAi+8gQxQDYqd8FQmcfmTBL3ALZl2gxjdXJyZW50SW5kZXgAAAEPvvIEMUA2KnfBUJnH5kwS9wC2ZdoUZ2V0VHJhbnNhY3Rpb25IZWlnaHQBAAEPvvIEMUA2KnfBUJnH5kwS9wC2ZdoIZ2V0QmxvY2sBAAEPvvIEMUA2KnfBUJnH5kwS9wC2ZdoOZ2V0VHJhbnNhY3Rpb24BAAEPvvIEMUA2KnfBUJnH5kwS9wC2ZdoVZ2V0VHJhbnNhY3Rpb25TaWduZXJzAQABD77yBDFANip3wVCZx+ZMEvcAtmXaF2dldFRyYW5zYWN0aW9uRnJvbUJsb2NrAgABD/2j+kNG6lMqJY/El92t22Q3yf3/C2dldENvbnRyYWN0AQABD77yBDFANip3wVCZx+ZMEvcAtmXaFWdldFRyYW5zYWN0aW9uVk1TdGF0ZQEAAQ8AAP2aAjcAAEBXAAF4NwEAQFcBAng3AgBweWg0A0BXAAJ4C5cmFQwKTlVMTCBCbG9ja0HP50eWC0B5DARIYXNolyYGeBDOQHkMBUluZGV4lyYGeBbOQHkMCk1lcmtsZVJvb3SXJgZ4E85AeQwNTmV4dENvbnNlbnN1c5cmBngYzkB5DAhQcmV2SGFzaJcmBngSzkB5DAlUaW1lc3RhbXCXJgZ4FM5AeQwRVHJhbnNhY3Rpb25zQ291bnSXJgZ4Gc5AeQwHVmVyc2lvbpcmBngRzkAMD1Vrbm93biBwcm9wZXJ0eTpXAQJ4NwIAcHloNTD///9AVwECeDcDAHB5aDQDQFcAAngLlyYSDAdOVUxMIFR4Qc/nR5YLQHkMBEhhc2iXJgZ4EM5AeQwKTmV0d29ya0ZlZZcmBngVzkB5DAVOb25jZZcmBngSzkB5DAZTY3JpcHSXJgZ4F85AeQwGU2VuZGVylyYGeBPOQHkMCVN5c3RlbUZlZZcmBngUzkB5DA9WYWxpZFVudGlsQmxvY2uXJgZ4Fs5AeQwHVmVyc2lvbpcmBngRzkB5DAdTaWduZXJzlyYJeBDONwQAQHkMCkZpcnN0U2NvcGWXJg14EM43BAAQzhHOQAwPVWtub3duIHByb3BlcnR5OlcBA3l4NwUAcHpoNQ7///9AVwEDeXg3BQBwemg1/f7//0BXAQJ4NwYAcHloNANAVwACeAuXJhgMDU5VTEwgY29udHJhY3RBz+dHlgtAeQwCSWSXJgZ4EM5AeQwNVXBkYXRlQ291bnRlcpcmBngRzkB5DARIYXNolyYGeBLOQHkMCE1hbmlmZXN0lyYGeBTOQHkMA05lZpcmBngTzkAMD1Vrbm93biBwcm9wZXJ0eTpXAAF4NwcAQP1Rmag=")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAi+8gQxQDYqd8FQmcfmTBL3ALZl2gxjdXJyZW50SW5kZXgAAAEPvvIEMUA2KnfBUJnH5kwS9wC2ZdoUZ2V0VHJhbnNhY3Rpb25IZWlnaHQBAAEPvvIEMUA2KnfBUJnH5kwS9wC2ZdoIZ2V0QmxvY2sBAAEPvvIEMUA2KnfBUJnH5kwS9wC2ZdoOZ2V0VHJhbnNhY3Rpb24BAAEPvvIEMUA2KnfBUJnH5kwS9wC2ZdoVZ2V0VHJhbnNhY3Rpb25TaWduZXJzAQABD77yBDFANip3wVCZx+ZMEvcAtmXaF2dldFRyYW5zYWN0aW9uRnJvbUJsb2NrAgABD/2j+kNG6lMqJY/El92t22Q3yf3/C2dldENvbnRyYWN0AQABD77yBDFANip3wVCZx+ZMEvcAtmXaFWdldFRyYW5zYWN0aW9uVk1TdGF0ZQEAAQ8AAP2XAjcAAEBXAAF4NwEAQFcBAng3AgBweWg0A0BXAAJ42CYVDApOVUxMIEJsb2NrQc/nR5YLQHkMBEhhc2iXJgZ4EM5AeQwFSW5kZXiXJgZ4Fs5AeQwKTWVya2xlUm9vdJcmBngTzkB5DA1OZXh0Q29uc2Vuc3VzlyYGeBjOQHkMCFByZXZIYXNolyYGeBLOQHkMCVRpbWVzdGFtcJcmBngUzkB5DBFUcmFuc2FjdGlvbnNDb3VudJcmBngZzkB5DAdWZXJzaW9ulyYGeBHOQAwPVWtub3duIHByb3BlcnR5OlcBAng3AgBweWg1Mf///0BXAQJ4NwMAcHloNANAVwACeNgmEgwHTlVMTCBUeEHP50eWC0B5DARIYXNolyYGeBDOQHkMCk5ldHdvcmtGZWWXJgZ4Fc5AeQwFTm9uY2WXJgZ4Es5AeQwGU2NyaXB0lyYGeBfOQHkMBlNlbmRlcpcmBngTzkB5DAlTeXN0ZW1GZWWXJgZ4FM5AeQwPVmFsaWRVbnRpbEJsb2NrlyYGeBbOQHkMB1ZlcnNpb26XJgZ4Ec5AeQwHU2lnbmVyc5cmCXgQzjcEAEB5DApGaXJzdFNjb3BllyYNeBDONwQAEM4RzkAMD1Vrbm93biBwcm9wZXJ0eTpXAQN5eDcFAHB6aDUP////QFcBA3l4NwUAcHpoNf7+//9AVwECeDcGAHB5aDQDQFcAAnjYJhgMDU5VTEwgY29udHJhY3RBz+dHlgtAeQwCSWSXJgZ4EM5AeQwNVXBkYXRlQ291bnRlcpcmBngRzkB5DARIYXNolyYGeBLOQHkMCE1hbmlmZXN0lyYGeBTOQHkMA05lZpcmBngTzkAMD1Vrbm93biBwcm9wZXJ0eTpXAAF4NwcAQKsrR1s=")); #endregion @@ -42,14 +42,14 @@ public abstract class Contract_Blockchain(Neo.SmartContract.Testing.SmartContrac /// Unsafe method /// /// - /// Script: VwECeDcCAHB5aDUw////QA== + /// Script: VwECeDcCAHB5aDUx////QA== /// 00 : OpCode.INITSLOT 0102 /// 03 : OpCode.LDARG0 /// 04 : OpCode.CALLT 0200 /// 07 : OpCode.STLOC0 /// 08 : OpCode.LDARG1 /// 09 : OpCode.LDLOC0 - /// 0A : OpCode.CALL_L 30FFFFFF + /// 0A : OpCode.CALL_L 31FFFFFF /// 0F : OpCode.RET /// [DisplayName("getBlockByIndex")] @@ -100,7 +100,7 @@ public abstract class Contract_Blockchain(Neo.SmartContract.Testing.SmartContrac /// Unsafe method /// /// - /// Script: VwEDeXg3BQBwemg1Dv///0A= + /// Script: VwEDeXg3BQBwemg1D////0A= /// 00 : OpCode.INITSLOT 0103 /// 03 : OpCode.LDARG1 /// 04 : OpCode.LDARG0 @@ -108,7 +108,7 @@ public abstract class Contract_Blockchain(Neo.SmartContract.Testing.SmartContrac /// 08 : OpCode.STLOC0 /// 09 : OpCode.LDARG2 /// 0A : OpCode.LDLOC0 - /// 0B : OpCode.CALL_L 0EFFFFFF + /// 0B : OpCode.CALL_L 0FFFFFFF /// 10 : OpCode.RET /// [DisplayName("getTxByBlockHash")] @@ -118,7 +118,7 @@ public abstract class Contract_Blockchain(Neo.SmartContract.Testing.SmartContrac /// Unsafe method /// /// - /// Script: VwEDeXg3BQBwemg1/f7//0A= + /// Script: VwEDeXg3BQBwemg1/v7//0A= /// 00 : OpCode.INITSLOT 0103 /// 03 : OpCode.LDARG1 /// 04 : OpCode.LDARG0 @@ -126,7 +126,7 @@ public abstract class Contract_Blockchain(Neo.SmartContract.Testing.SmartContrac /// 08 : OpCode.STLOC0 /// 09 : OpCode.LDARG2 /// 0A : OpCode.LDLOC0 - /// 0B : OpCode.CALL_L FDFEFFFF + /// 0B : OpCode.CALL_L FEFEFFFF /// 10 : OpCode.RET /// [DisplayName("getTxByBlockIndex")] diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_ManifestAttribute.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_ManifestAttribute.cs index 42927e28e..448f4b61b 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_ManifestAttribute.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_ManifestAttribute.cs @@ -10,12 +10,12 @@ public abstract class Contract_ManifestAttribute(Neo.SmartContract.Testing.Smart { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_ManifestAttribute"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""reentrantTest"",""parameters"":[{""name"":""value"",""type"":""Integer""}],""returntype"":""Void"",""offset"":0,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":166,""safe"":false}],""events"":[]},""permissions"":[],""trusts"":[],""extra"":{""Author"":""core-dev"",""E-mail"":""dev@neo.org"",""Version"":""v3.6.3"",""Description"":""This is a test contract."",""ExtraKey"":""ExtraValue"",""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_ManifestAttribute"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""reentrantTest"",""parameters"":[{""name"":""value"",""type"":""Integer""}],""returntype"":""Void"",""offset"":0,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":165,""safe"":false}],""events"":[]},""permissions"":[],""trusts"":[],""extra"":{""Author"":""core-dev"",""E-mail"":""dev@neo.org"",""Version"":""v3.6.3"",""Description"":""This is a test contract."",""ExtraKey"":""ExtraValue"",""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKlXAAFY2CYbCwsSwAwLbm9SZWVudHJhbnQB/wASTTQaYFg0NngQlyYEIgt4AHuXJgUQNM9YNF5AVwADekp4EVHQRUGb9mfOeRGIThBR0FASwEp4EFHQRUBXAQF4Ec54EM7BRVOLUEGSXegxcGgLlwwPQWxyZWFkeSBlbnRlcmVk4RF4Ec54EM7BRVOLUEHmPxiEQFcAAXgRzngQzsFFU4tQQS9Yxe1AVgFAJTfg2g==")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKhXAAFY2CYbCwsSwAwLbm9SZWVudHJhbnQB/wASTTQaYFg0NngQlyYEIgt4AHuXJgUQNM9YNF1AVwADekp4EVHQRUGb9mfOeRGIThBR0FASwEp4EFHQRUBXAQF4Ec54EM7BRVOLUEGSXegxcGjYDA9BbHJlYWR5IGVudGVyZWThEXgRzngQzsFFU4tQQeY/GIRAVwABeBHOeBDOwUVTi1BBL1jF7UBWAUDRb4vx")); #endregion diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Nullable.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Nullable.cs index 136b93dc7..8a54ad617 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Nullable.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Nullable.cs @@ -10,12 +10,12 @@ public abstract class Contract_Nullable(Neo.SmartContract.Testing.SmartContractI { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_Nullable"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""bigIntegerNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":0,""safe"":false},{""name"":""bigIntegerNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":56,""safe"":false},{""name"":""bigIntegerNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":114,""safe"":false},{""name"":""h160NullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Hash160""},{""name"":""b"",""type"":""Hash160""}],""returntype"":""Boolean"",""offset"":129,""safe"":false},{""name"":""h160NullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Hash160""}],""returntype"":""Boolean"",""offset"":161,""safe"":false},{""name"":""h256NullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Hash256""},{""name"":""b"",""type"":""Hash256""}],""returntype"":""Boolean"",""offset"":168,""safe"":false},{""name"":""h256NullableEqual"",""parameters"":[{""name"":""a"",""type"":""Hash256""},{""name"":""b"",""type"":""Hash256""}],""returntype"":""Boolean"",""offset"":200,""safe"":false},{""name"":""byteNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":230,""safe"":false},{""name"":""byteNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":286,""safe"":false},{""name"":""byteNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":344,""safe"":false},{""name"":""sByteNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":359,""safe"":false},{""name"":""sByteNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":415,""safe"":false},{""name"":""sByteNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":473,""safe"":false},{""name"":""shortNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":488,""safe"":false},{""name"":""shortNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":544,""safe"":false},{""name"":""shortNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":602,""safe"":false},{""name"":""uShortNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":617,""safe"":false},{""name"":""uShortNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":673,""safe"":false},{""name"":""uShortNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":731,""safe"":false},{""name"":""intNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":746,""safe"":false},{""name"":""intNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":802,""safe"":false},{""name"":""intNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":860,""safe"":false},{""name"":""uIntNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":875,""safe"":false},{""name"":""uIntNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":931,""safe"":false},{""name"":""uIntNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":989,""safe"":false},{""name"":""longNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1004,""safe"":false},{""name"":""longNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1060,""safe"":false},{""name"":""longNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1118,""safe"":false},{""name"":""uLongNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1133,""safe"":false},{""name"":""uLongNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1189,""safe"":false},{""name"":""uLongNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1247,""safe"":false},{""name"":""boolNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Boolean""},{""name"":""b"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1262,""safe"":false},{""name"":""boolNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Boolean""},{""name"":""b"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1316,""safe"":false},{""name"":""boolNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1372,""safe"":false},{""name"":""byteNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1387,""safe"":false},{""name"":""sByteNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1410,""safe"":false},{""name"":""shortNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1433,""safe"":false},{""name"":""uShortNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1456,""safe"":false},{""name"":""intNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1479,""safe"":false},{""name"":""uIntNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1502,""safe"":false},{""name"":""longNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1525,""safe"":false},{""name"":""uLongNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1548,""safe"":false},{""name"":""boolNullableToString"",""parameters"":[{""name"":""a"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1571,""safe"":false},{""name"":""bigIntegerNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1611,""safe"":false}],""events"":[]},""permissions"":[{""contract"":""0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"",""methods"":[""itoa""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_Nullable"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""bigIntegerNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":0,""safe"":false},{""name"":""bigIntegerNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":56,""safe"":false},{""name"":""bigIntegerNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":114,""safe"":false},{""name"":""h160NullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Hash160""},{""name"":""b"",""type"":""Hash160""}],""returntype"":""Boolean"",""offset"":128,""safe"":false},{""name"":""h160NullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Hash160""}],""returntype"":""Boolean"",""offset"":160,""safe"":false},{""name"":""h256NullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Hash256""},{""name"":""b"",""type"":""Hash256""}],""returntype"":""Boolean"",""offset"":166,""safe"":false},{""name"":""h256NullableEqual"",""parameters"":[{""name"":""a"",""type"":""Hash256""},{""name"":""b"",""type"":""Hash256""}],""returntype"":""Boolean"",""offset"":198,""safe"":false},{""name"":""byteNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":228,""safe"":false},{""name"":""byteNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":284,""safe"":false},{""name"":""byteNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":342,""safe"":false},{""name"":""sByteNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":356,""safe"":false},{""name"":""sByteNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":412,""safe"":false},{""name"":""sByteNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":470,""safe"":false},{""name"":""shortNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":484,""safe"":false},{""name"":""shortNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":540,""safe"":false},{""name"":""shortNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":598,""safe"":false},{""name"":""uShortNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":612,""safe"":false},{""name"":""uShortNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":668,""safe"":false},{""name"":""uShortNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":726,""safe"":false},{""name"":""intNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":740,""safe"":false},{""name"":""intNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":796,""safe"":false},{""name"":""intNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":854,""safe"":false},{""name"":""uIntNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":868,""safe"":false},{""name"":""uIntNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":924,""safe"":false},{""name"":""uIntNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":982,""safe"":false},{""name"":""longNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":996,""safe"":false},{""name"":""longNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1052,""safe"":false},{""name"":""longNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1110,""safe"":false},{""name"":""uLongNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1124,""safe"":false},{""name"":""uLongNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Integer""},{""name"":""b"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1180,""safe"":false},{""name"":""uLongNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1238,""safe"":false},{""name"":""boolNullableEqual"",""parameters"":[{""name"":""a"",""type"":""Boolean""},{""name"":""b"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1252,""safe"":false},{""name"":""boolNullableNotEqual"",""parameters"":[{""name"":""a"",""type"":""Boolean""},{""name"":""b"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1306,""safe"":false},{""name"":""boolNullableEqualNull"",""parameters"":[{""name"":""a"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1362,""safe"":false},{""name"":""byteNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1376,""safe"":false},{""name"":""sByteNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1399,""safe"":false},{""name"":""shortNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1422,""safe"":false},{""name"":""uShortNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1445,""safe"":false},{""name"":""intNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1468,""safe"":false},{""name"":""uIntNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1491,""safe"":false},{""name"":""longNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1514,""safe"":false},{""name"":""uLongNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1537,""safe"":false},{""name"":""boolNullableToString"",""parameters"":[{""name"":""a"",""type"":""Boolean""}],""returntype"":""Boolean"",""offset"":1560,""safe"":false},{""name"":""bigIntegerNullableToString"",""parameters"":[{""name"":""a"",""type"":""Integer""}],""returntype"":""Boolean"",""offset"":1600,""safe"":false}],""events"":[]},""permissions"":[{""contract"":""0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"",""methods"":[""itoa""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHA7znO4OTpJcbCoGp54UQN2G/OrARpdG9hAQABDwAA/WIGVwACeHmXJAUJIg14eUrYJAWzIgRFCSQFCSIXeXhK2CQKUErYJAmzIglF2CIFRUUJJAQJQHl4l0BXAAJ4eZgkBQkiDnh5StgkBbMiBEUJqiQFCSIYeXhK2CQKUErYJAmzIglF2CIFRUUJqiQECUB5eJhAVwABeAuXJAQJQHjYqqpAVwACeHmYJAUJIgZ4eZeqJAUJIgZ5eJeqJAQJQHl4mEBXAAF4C5dAVwACeHmYJAUJIgZ4eZeqJAUJIgZ5eJeqJAQJQHl4mEBXAAJ4eZckBQkiBXh5lyQFCSIFeXiXJAQJQHl4l0BXAAJ4eZckBQkiDXh5StgkBbMiBEUJJAUJIhd5eErYJApQStgkCbMiCUXYIgVFRQkkBAlAeXiXQFcAAnh5mCQFCSIOeHlK2CQFsyIERQmqJAUJIhh5eErYJApQStgkCbMiCUXYIgVFRQmqJAQJQHl4mEBXAAF4C5ckBAlAeNiqqkBXAAJ4eZckBQkiDXh5StgkBbMiBEUJJAUJIhd5eErYJApQStgkCbMiCUXYIgVFRQkkBAlAeXiXQFcAAnh5mCQFCSIOeHlK2CQFsyIERQmqJAUJIhh5eErYJApQStgkCbMiCUXYIgVFRQmqJAQJQHl4mEBXAAF4C5ckBAlAeNiqqkBXAAJ4eZckBQkiDXh5StgkBbMiBEUJJAUJIhd5eErYJApQStgkCbMiCUXYIgVFRQkkBAlAeXiXQFcAAnh5mCQFCSIOeHlK2CQFsyIERQmqJAUJIhh5eErYJApQStgkCbMiCUXYIgVFRQmqJAQJQHl4mEBXAAF4C5ckBAlAeNiqqkBXAAJ4eZckBQkiDXh5StgkBbMiBEUJJAUJIhd5eErYJApQStgkCbMiCUXYIgVFRQkkBAlAeXiXQFcAAnh5mCQFCSIOeHlK2CQFsyIERQmqJAUJIhh5eErYJApQStgkCbMiCUXYIgVFRQmqJAQJQHl4mEBXAAF4C5ckBAlAeNiqqkBXAAJ4eZckBQkiDXh5StgkBbMiBEUJJAUJIhd5eErYJApQStgkCbMiCUXYIgVFRQkkBAlAeXiXQFcAAnh5mCQFCSIOeHlK2CQFsyIERQmqJAUJIhh5eErYJApQStgkCbMiCUXYIgVFRQmqJAQJQHl4mEBXAAF4C5ckBAlAeNiqqkBXAAJ4eZckBQkiDXh5StgkBbMiBEUJJAUJIhd5eErYJApQStgkCbMiCUXYIgVFRQkkBAlAeXiXQFcAAnh5mCQFCSIOeHlK2CQFsyIERQmqJAUJIhh5eErYJApQStgkCbMiCUXYIgVFRQmqJAQJQHl4mEBXAAF4C5ckBAlAeNiqqkBXAAJ4eZckBQkiDXh5StgkBbMiBEUJJAUJIhd5eErYJApQStgkCbMiCUXYIgVFRQkkBAlAeXiXQFcAAnh5mCQFCSIOeHlK2CQFsyIERQmqJAUJIhh5eErYJApQStgkCbMiCUXYIgVFRQmqJAQJQHl4mEBXAAF4C5ckBAlAeNiqqkBXAAJ4eZckBQkiDXh5StgkBbMiBEUJJAUJIhd5eErYJApQStgkCbMiCUXYIgVFRQkkBAlAeXiXQFcAAnh5mCQFCSIOeHlK2CQFsyIERQmqJAUJIhh5eErYJApQStgkCbMiCUXYIgVFRQmqJAQJQHl4mEBXAAF4C5ckBAlAeNiqqkBXAAJ4eZckBQkiDXh5StgkBZciBEUJJAUJIhV5eErYJAlK2CQJlyIIRdgiBEUJJAQJQHl4l0BXAAJ4eZgkBQkiDnh5StgkBZciBEUJqiQFCSIWeXhK2CQJStgkCZciCEXYIgRFCaokBAlAeXiYQFcAAXgLlyQECUB42KqqQFcAAXhK2CQFNwAAStgmBUUMAAwBMZdAVwABeErYJAU3AABK2CYFRQwADAExl0BXAAF4StgkBTcAAErYJgVFDAAMATGXQFcAAXhK2CQFNwAAStgmBUUMAAwBMZdAVwABeErYJAU3AABK2CYFRQwADAExl0BXAAF4StgkBTcAAErYJgVFDAAMATGXQFcAAXhK2CQFNwAAStgmBUUMAAwBMZdAVwABeErYJAU3AABK2CYFRQwADAExl0BXAAF4StgkEyQLDAVGYWxzZSIIDARUcnVlStgmBUUMAAwEVHJ1ZZdAVwABeErYJAU3AABK2CYFRQwADAExl0A5zJaO")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHA7znO4OTpJcbCoGp54UQN2G/OrARpdG9hAQABDwAA/VcGVwACeHmXJAUJIg14eUrYJAWzIgRFCSQFCSIXeXhK2CQKUErYJAmzIglF2CIFRUUJJAQJQHl4l0BXAAJ4eZgkBQkiDnh5StgkBbMiBEUJqiQFCSIYeXhK2CQKUErYJAmzIglF2CIFRUUJqiQECUB5eJhAVwABeNgkBAlAeNiqqkBXAAJ4eZgkBQkiBnh5l6okBQkiBnl4l6okBAlAeXiYQFcAAXjYQFcAAnh5mCQFCSIGeHmXqiQFCSIGeXiXqiQECUB5eJhAVwACeHmXJAUJIgV4eZckBQkiBXl4lyQECUB5eJdAVwACeHmXJAUJIg14eUrYJAWzIgRFCSQFCSIXeXhK2CQKUErYJAmzIglF2CIFRUUJJAQJQHl4l0BXAAJ4eZgkBQkiDnh5StgkBbMiBEUJqiQFCSIYeXhK2CQKUErYJAmzIglF2CIFRUUJqiQECUB5eJhAVwABeNgkBAlAeNiqqkBXAAJ4eZckBQkiDXh5StgkBbMiBEUJJAUJIhd5eErYJApQStgkCbMiCUXYIgVFRQkkBAlAeXiXQFcAAnh5mCQFCSIOeHlK2CQFsyIERQmqJAUJIhh5eErYJApQStgkCbMiCUXYIgVFRQmqJAQJQHl4mEBXAAF42CQECUB42KqqQFcAAnh5lyQFCSINeHlK2CQFsyIERQkkBQkiF3l4StgkClBK2CQJsyIJRdgiBUVFCSQECUB5eJdAVwACeHmYJAUJIg54eUrYJAWzIgRFCaokBQkiGHl4StgkClBK2CQJsyIJRdgiBUVFCaokBAlAeXiYQFcAAXjYJAQJQHjYqqpAVwACeHmXJAUJIg14eUrYJAWzIgRFCSQFCSIXeXhK2CQKUErYJAmzIglF2CIFRUUJJAQJQHl4l0BXAAJ4eZgkBQkiDnh5StgkBbMiBEUJqiQFCSIYeXhK2CQKUErYJAmzIglF2CIFRUUJqiQECUB5eJhAVwABeNgkBAlAeNiqqkBXAAJ4eZckBQkiDXh5StgkBbMiBEUJJAUJIhd5eErYJApQStgkCbMiCUXYIgVFRQkkBAlAeXiXQFcAAnh5mCQFCSIOeHlK2CQFsyIERQmqJAUJIhh5eErYJApQStgkCbMiCUXYIgVFRQmqJAQJQHl4mEBXAAF42CQECUB42KqqQFcAAnh5lyQFCSINeHlK2CQFsyIERQkkBQkiF3l4StgkClBK2CQJsyIJRdgiBUVFCSQECUB5eJdAVwACeHmYJAUJIg54eUrYJAWzIgRFCaokBQkiGHl4StgkClBK2CQJsyIJRdgiBUVFCaokBAlAeXiYQFcAAXjYJAQJQHjYqqpAVwACeHmXJAUJIg14eUrYJAWzIgRFCSQFCSIXeXhK2CQKUErYJAmzIglF2CIFRUUJJAQJQHl4l0BXAAJ4eZgkBQkiDnh5StgkBbMiBEUJqiQFCSIYeXhK2CQKUErYJAmzIglF2CIFRUUJqiQECUB5eJhAVwABeNgkBAlAeNiqqkBXAAJ4eZckBQkiDXh5StgkBbMiBEUJJAUJIhd5eErYJApQStgkCbMiCUXYIgVFRQkkBAlAeXiXQFcAAnh5mCQFCSIOeHlK2CQFsyIERQmqJAUJIhh5eErYJApQStgkCbMiCUXYIgVFRQmqJAQJQHl4mEBXAAF42CQECUB42KqqQFcAAnh5lyQFCSINeHlK2CQFlyIERQkkBQkiFXl4StgkCUrYJAmXIghF2CIERQkkBAlAeXiXQFcAAnh5mCQFCSIOeHlK2CQFlyIERQmqJAUJIhZ5eErYJAlK2CQJlyIIRdgiBEUJqiQECUB5eJhAVwABeNgkBAlAeNiqqkBXAAF4StgkBTcAAErYJgVFDAAMATGXQFcAAXhK2CQFNwAAStgmBUUMAAwBMZdAVwABeErYJAU3AABK2CYFRQwADAExl0BXAAF4StgkBTcAAErYJgVFDAAMATGXQFcAAXhK2CQFNwAAStgmBUUMAAwBMZdAVwABeErYJAU3AABK2CYFRQwADAExl0BXAAF4StgkBTcAAErYJgVFDAAMATGXQFcAAXhK2CQFNwAAStgmBUUMAAwBMZdAVwABeErYJBMkCwwFRmFsc2UiCAwEVHJ1ZUrYJgVFDAAMBFRydWWXQFcAAXhK2CQFNwAAStgmBUUMAAwBMZdAPCt62A==")); #endregion @@ -77,19 +77,18 @@ public abstract class Contract_Nullable(Neo.SmartContract.Testing.SmartContractI /// Unsafe method /// /// - /// Script: VwABeAuXJAQJQHjYqqpA + /// Script: VwABeNgkBAlAeNiqqkA= /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.LDARG0 - /// 04 : OpCode.PUSHNULL - /// 05 : OpCode.EQUAL - /// 06 : OpCode.JMPIF 04 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.RET - /// 0A : OpCode.LDARG0 - /// 0B : OpCode.ISNULL + /// 04 : OpCode.ISNULL + /// 05 : OpCode.JMPIF 04 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.RET + /// 09 : OpCode.LDARG0 + /// 0A : OpCode.ISNULL + /// 0B : OpCode.NOT /// 0C : OpCode.NOT - /// 0D : OpCode.NOT - /// 0E : OpCode.RET + /// 0D : OpCode.RET /// [DisplayName("bigIntegerNullableEqualNull")] public abstract bool? BigIntegerNullableEqualNull(BigInteger? a); @@ -225,19 +224,18 @@ public abstract class Contract_Nullable(Neo.SmartContract.Testing.SmartContractI /// Unsafe method /// /// - /// Script: VwABeAuXJAQJQHjYqqpA + /// Script: VwABeNgkBAlAeNiqqkA= /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.LDARG0 - /// 04 : OpCode.PUSHNULL - /// 05 : OpCode.EQUAL - /// 06 : OpCode.JMPIF 04 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.RET - /// 0A : OpCode.LDARG0 - /// 0B : OpCode.ISNULL + /// 04 : OpCode.ISNULL + /// 05 : OpCode.JMPIF 04 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.RET + /// 09 : OpCode.LDARG0 + /// 0A : OpCode.ISNULL + /// 0B : OpCode.NOT /// 0C : OpCode.NOT - /// 0D : OpCode.NOT - /// 0E : OpCode.RET + /// 0D : OpCode.RET /// [DisplayName("boolNullableEqualNull")] public abstract bool? BoolNullableEqualNull(bool? a); @@ -376,19 +374,18 @@ public abstract class Contract_Nullable(Neo.SmartContract.Testing.SmartContractI /// Unsafe method /// /// - /// Script: VwABeAuXJAQJQHjYqqpA + /// Script: VwABeNgkBAlAeNiqqkA= /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.LDARG0 - /// 04 : OpCode.PUSHNULL - /// 05 : OpCode.EQUAL - /// 06 : OpCode.JMPIF 04 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.RET - /// 0A : OpCode.LDARG0 - /// 0B : OpCode.ISNULL + /// 04 : OpCode.ISNULL + /// 05 : OpCode.JMPIF 04 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.RET + /// 09 : OpCode.LDARG0 + /// 0A : OpCode.ISNULL + /// 0B : OpCode.NOT /// 0C : OpCode.NOT - /// 0D : OpCode.NOT - /// 0E : OpCode.RET + /// 0D : OpCode.RET /// [DisplayName("byteNullableEqualNull")] public abstract bool? ByteNullableEqualNull(BigInteger? a); @@ -474,12 +471,11 @@ public abstract class Contract_Nullable(Neo.SmartContract.Testing.SmartContractI /// Unsafe method /// /// - /// Script: VwABeAuXQA== + /// Script: VwABeNhA /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.LDARG0 - /// 04 : OpCode.PUSHNULL - /// 05 : OpCode.EQUAL - /// 06 : OpCode.RET + /// 04 : OpCode.ISNULL + /// 05 : OpCode.RET /// [DisplayName("h160NullableEqualNull")] public abstract bool? H160NullableEqualNull(UInt160? a); @@ -640,19 +636,18 @@ public abstract class Contract_Nullable(Neo.SmartContract.Testing.SmartContractI /// Unsafe method /// /// - /// Script: VwABeAuXJAQJQHjYqqpA + /// Script: VwABeNgkBAlAeNiqqkA= /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.LDARG0 - /// 04 : OpCode.PUSHNULL - /// 05 : OpCode.EQUAL - /// 06 : OpCode.JMPIF 04 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.RET - /// 0A : OpCode.LDARG0 - /// 0B : OpCode.ISNULL + /// 04 : OpCode.ISNULL + /// 05 : OpCode.JMPIF 04 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.RET + /// 09 : OpCode.LDARG0 + /// 0A : OpCode.ISNULL + /// 0B : OpCode.NOT /// 0C : OpCode.NOT - /// 0D : OpCode.NOT - /// 0E : OpCode.RET + /// 0D : OpCode.RET /// [DisplayName("intNullableEqualNull")] public abstract bool? IntNullableEqualNull(BigInteger? a); @@ -790,19 +785,18 @@ public abstract class Contract_Nullable(Neo.SmartContract.Testing.SmartContractI /// Unsafe method /// /// - /// Script: VwABeAuXJAQJQHjYqqpA + /// Script: VwABeNgkBAlAeNiqqkA= /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.LDARG0 - /// 04 : OpCode.PUSHNULL - /// 05 : OpCode.EQUAL - /// 06 : OpCode.JMPIF 04 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.RET - /// 0A : OpCode.LDARG0 - /// 0B : OpCode.ISNULL + /// 04 : OpCode.ISNULL + /// 05 : OpCode.JMPIF 04 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.RET + /// 09 : OpCode.LDARG0 + /// 0A : OpCode.ISNULL + /// 0B : OpCode.NOT /// 0C : OpCode.NOT - /// 0D : OpCode.NOT - /// 0E : OpCode.RET + /// 0D : OpCode.RET /// [DisplayName("longNullableEqualNull")] public abstract bool? LongNullableEqualNull(BigInteger? a); @@ -940,19 +934,18 @@ public abstract class Contract_Nullable(Neo.SmartContract.Testing.SmartContractI /// Unsafe method /// /// - /// Script: VwABeAuXJAQJQHjYqqpA + /// Script: VwABeNgkBAlAeNiqqkA= /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.LDARG0 - /// 04 : OpCode.PUSHNULL - /// 05 : OpCode.EQUAL - /// 06 : OpCode.JMPIF 04 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.RET - /// 0A : OpCode.LDARG0 - /// 0B : OpCode.ISNULL + /// 04 : OpCode.ISNULL + /// 05 : OpCode.JMPIF 04 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.RET + /// 09 : OpCode.LDARG0 + /// 0A : OpCode.ISNULL + /// 0B : OpCode.NOT /// 0C : OpCode.NOT - /// 0D : OpCode.NOT - /// 0E : OpCode.RET + /// 0D : OpCode.RET /// [DisplayName("sByteNullableEqualNull")] public abstract bool? SByteNullableEqualNull(BigInteger? a); @@ -1090,19 +1083,18 @@ public abstract class Contract_Nullable(Neo.SmartContract.Testing.SmartContractI /// Unsafe method /// /// - /// Script: VwABeAuXJAQJQHjYqqpA + /// Script: VwABeNgkBAlAeNiqqkA= /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.LDARG0 - /// 04 : OpCode.PUSHNULL - /// 05 : OpCode.EQUAL - /// 06 : OpCode.JMPIF 04 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.RET - /// 0A : OpCode.LDARG0 - /// 0B : OpCode.ISNULL + /// 04 : OpCode.ISNULL + /// 05 : OpCode.JMPIF 04 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.RET + /// 09 : OpCode.LDARG0 + /// 0A : OpCode.ISNULL + /// 0B : OpCode.NOT /// 0C : OpCode.NOT - /// 0D : OpCode.NOT - /// 0E : OpCode.RET + /// 0D : OpCode.RET /// [DisplayName("shortNullableEqualNull")] public abstract bool? ShortNullableEqualNull(BigInteger? a); @@ -1240,19 +1232,18 @@ public abstract class Contract_Nullable(Neo.SmartContract.Testing.SmartContractI /// Unsafe method /// /// - /// Script: VwABeAuXJAQJQHjYqqpA + /// Script: VwABeNgkBAlAeNiqqkA= /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.LDARG0 - /// 04 : OpCode.PUSHNULL - /// 05 : OpCode.EQUAL - /// 06 : OpCode.JMPIF 04 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.RET - /// 0A : OpCode.LDARG0 - /// 0B : OpCode.ISNULL + /// 04 : OpCode.ISNULL + /// 05 : OpCode.JMPIF 04 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.RET + /// 09 : OpCode.LDARG0 + /// 0A : OpCode.ISNULL + /// 0B : OpCode.NOT /// 0C : OpCode.NOT - /// 0D : OpCode.NOT - /// 0E : OpCode.RET + /// 0D : OpCode.RET /// [DisplayName("uIntNullableEqualNull")] public abstract bool? UIntNullableEqualNull(BigInteger? a); @@ -1390,19 +1381,18 @@ public abstract class Contract_Nullable(Neo.SmartContract.Testing.SmartContractI /// Unsafe method /// /// - /// Script: VwABeAuXJAQJQHjYqqpA + /// Script: VwABeNgkBAlAeNiqqkA= /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.LDARG0 - /// 04 : OpCode.PUSHNULL - /// 05 : OpCode.EQUAL - /// 06 : OpCode.JMPIF 04 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.RET - /// 0A : OpCode.LDARG0 - /// 0B : OpCode.ISNULL + /// 04 : OpCode.ISNULL + /// 05 : OpCode.JMPIF 04 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.RET + /// 09 : OpCode.LDARG0 + /// 0A : OpCode.ISNULL + /// 0B : OpCode.NOT /// 0C : OpCode.NOT - /// 0D : OpCode.NOT - /// 0E : OpCode.RET + /// 0D : OpCode.RET /// [DisplayName("uLongNullableEqualNull")] public abstract bool? ULongNullableEqualNull(BigInteger? a); @@ -1540,19 +1530,18 @@ public abstract class Contract_Nullable(Neo.SmartContract.Testing.SmartContractI /// Unsafe method /// /// - /// Script: VwABeAuXJAQJQHjYqqpA + /// Script: VwABeNgkBAlAeNiqqkA= /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.LDARG0 - /// 04 : OpCode.PUSHNULL - /// 05 : OpCode.EQUAL - /// 06 : OpCode.JMPIF 04 - /// 08 : OpCode.PUSHF - /// 09 : OpCode.RET - /// 0A : OpCode.LDARG0 - /// 0B : OpCode.ISNULL + /// 04 : OpCode.ISNULL + /// 05 : OpCode.JMPIF 04 + /// 07 : OpCode.PUSHF + /// 08 : OpCode.RET + /// 09 : OpCode.LDARG0 + /// 0A : OpCode.ISNULL + /// 0B : OpCode.NOT /// 0C : OpCode.NOT - /// 0D : OpCode.NOT - /// 0E : OpCode.RET + /// 0D : OpCode.RET /// [DisplayName("uShortNullableEqualNull")] public abstract bool? UShortNullableEqualNull(BigInteger? a); diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Regex.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Regex.cs index d99de0af6..2ab1826aa 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Regex.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Regex.cs @@ -10,12 +10,12 @@ public abstract class Contract_Regex(Neo.SmartContract.Testing.SmartContractInit { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_Regex"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""testStartWith"",""parameters"":[],""returntype"":""Boolean"",""offset"":0,""safe"":false},{""name"":""testIndexOf"",""parameters"":[],""returntype"":""Integer"",""offset"":34,""safe"":false},{""name"":""testEndWith"",""parameters"":[],""returntype"":""Boolean"",""offset"":62,""safe"":false},{""name"":""testContains"",""parameters"":[],""returntype"":""Boolean"",""offset"":146,""safe"":false},{""name"":""testNumberOnly"",""parameters"":[],""returntype"":""Boolean"",""offset"":177,""safe"":false},{""name"":""testAlphabetOnly"",""parameters"":[],""returntype"":""Boolean"",""offset"":236,""safe"":false},{""name"":""testLowerAlphabetOnly"",""parameters"":[],""returntype"":""Boolean"",""offset"":354,""safe"":false},{""name"":""testUpperAlphabetOnly"",""parameters"":[],""returntype"":""Boolean"",""offset"":385,""safe"":false}],""events"":[]},""permissions"":[{""contract"":""0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"",""methods"":[""memorySearch""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_Regex"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""testStartWith"",""parameters"":[],""returntype"":""Boolean"",""offset"":0,""safe"":false},{""name"":""testIndexOf"",""parameters"":[],""returntype"":""Integer"",""offset"":34,""safe"":false},{""name"":""testEndWith"",""parameters"":[],""returntype"":""Boolean"",""offset"":62,""safe"":false},{""name"":""testContains"",""parameters"":[],""returntype"":""Boolean"",""offset"":146,""safe"":false},{""name"":""testNumberOnly"",""parameters"":[],""returntype"":""Boolean"",""offset"":177,""safe"":false},{""name"":""testAlphabetOnly"",""parameters"":[],""returntype"":""Boolean"",""offset"":236,""safe"":false},{""name"":""testLowerAlphabetOnly"",""parameters"":[],""returntype"":""Boolean"",""offset"":353,""safe"":false},{""name"":""testUpperAlphabetOnly"",""parameters"":[],""returntype"":""Boolean"",""offset"":384,""safe"":false}],""events"":[]},""permissions"":[{""contract"":""0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"",""methods"":[""memorySearch""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHA7znO4OTpJcbCoGp54UQN2G/OrAxtZW1vcnlTZWFyY2gCAAEPAAD9oAEMBUhlbGxvDAtIZWxsbyBXb3JsZDQDQFcAAnl4NwAAEJdADAFvDAtIZWxsbyBXb3JsZDQDQFcAAnl4NwAAQAwFV29ybGQMC0hlbGxvIFdvcmxkNANAVwACeXg3AAB5yp5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfeMqXQAwCbGwMC0hlbGxvIFdvcmxkNANAVwACeXg3AAAPmEAMCjAxMjM0NTY3ODk0A0BXBQF4SnDKcRByIhxoas5za3RsADC1JgUIIgZsADm3JgQJQGqccmppMOQIQAw0QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejQDQFcEAXhKcMpxEHIiLWhqznNrAEG4JAUJIgZrAFq2JgUIIg9rAGG4JAUJIgZrAHq2qiYECUBqnHJqaTDTCEAMGmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6NKdADBpBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWjSIQNFUrHQ=")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHA7znO4OTpJcbCoGp54UQN2G/OrAxtZW1vcnlTZWFyY2gCAAEPAAD9nwEMBUhlbGxvDAtIZWxsbyBXb3JsZDQDQFcAAnl4NwAAEJdADAFvDAtIZWxsbyBXb3JsZDQDQFcAAnl4NwAAQAwFV29ybGQMC0hlbGxvIFdvcmxkNANAVwACeXg3AAB5yp5KAgAAAIAuBCIKSgL///9/Mh4D/////wAAAACRSgL///9/MgwDAAAAAAEAAACfeMqXQAwCbGwMC0hlbGxvIFdvcmxkNANAVwACeXg3AAAPmEAMCjAxMjM0NTY3ODk0A0BXBQF4SnDKcRByIhxoas5za3RsADC1JgUIIgZsADm3JgQJQGqccmppMOQIQAw0QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejQDQFcEAXhKcMpxEHIiLGhqznNrAEG4JAUJIgZrAFq2JgUIIg9rAGG4JAUJIgZrAHq2JAQJQGqccmppMNQIQAwaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo0qEAMGkFCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaNIlAbZMVhw==")); #endregion @@ -76,9 +76,9 @@ public abstract class Contract_Regex(Neo.SmartContract.Testing.SmartContractInit /// Unsafe method /// /// - /// Script: DGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6NKdA + /// Script: DGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6NKhA /// 00 : OpCode.PUSHDATA1 6162636465666768696A6B6C6D6E6F707172737475767778797A - /// 1C : OpCode.CALL A7 + /// 1C : OpCode.CALL A8 /// 1E : OpCode.RET /// [DisplayName("testLowerAlphabetOnly")] @@ -113,9 +113,9 @@ public abstract class Contract_Regex(Neo.SmartContract.Testing.SmartContractInit /// Unsafe method /// /// - /// Script: DEFCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaNIhA + /// Script: DEFCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaNIlA /// 00 : OpCode.PUSHDATA1 4142434445464748494A4B4C4D4E4F505152535455565758595A - /// 1C : OpCode.CALL 88 + /// 1C : OpCode.CALL 89 /// 1E : OpCode.RET /// [DisplayName("testUpperAlphabetOnly")] diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Storage.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Storage.cs index 7b2fa81ed..2dc63af9f 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Storage.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_Storage.cs @@ -10,12 +10,12 @@ public abstract class Contract_Storage(Neo.SmartContract.Testing.SmartContractIn { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_Storage"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""testPutByte"",""parameters"":[{""name"":""key"",""type"":""ByteArray""},{""name"":""value"",""type"":""ByteArray""}],""returntype"":""Boolean"",""offset"":0,""safe"":false},{""name"":""testDeleteByte"",""parameters"":[{""name"":""key"",""type"":""ByteArray""}],""returntype"":""Void"",""offset"":39,""safe"":false},{""name"":""testGetByte"",""parameters"":[{""name"":""key"",""type"":""ByteArray""}],""returntype"":""ByteArray"",""offset"":74,""safe"":false},{""name"":""testOver16Bytes"",""parameters"":[],""returntype"":""ByteArray"",""offset"":115,""safe"":false},{""name"":""testPutString"",""parameters"":[{""name"":""key"",""type"":""ByteArray""},{""name"":""value"",""type"":""ByteArray""}],""returntype"":""Boolean"",""offset"":207,""safe"":false},{""name"":""testDeleteString"",""parameters"":[{""name"":""key"",""type"":""ByteArray""}],""returntype"":""Void"",""offset"":243,""safe"":false},{""name"":""testGetString"",""parameters"":[{""name"":""key"",""type"":""ByteArray""}],""returntype"":""ByteArray"",""offset"":275,""safe"":false},{""name"":""testPutByteArray"",""parameters"":[{""name"":""key"",""type"":""ByteArray""},{""name"":""value"",""type"":""ByteArray""}],""returntype"":""Boolean"",""offset"":313,""safe"":false},{""name"":""testDeleteByteArray"",""parameters"":[{""name"":""key"",""type"":""ByteArray""}],""returntype"":""Void"",""offset"":351,""safe"":false},{""name"":""testGetByteArray"",""parameters"":[{""name"":""key"",""type"":""ByteArray""}],""returntype"":""ByteArray"",""offset"":385,""safe"":false},{""name"":""testNewGetMethods"",""parameters"":[],""returntype"":""Boolean"",""offset"":430,""safe"":false},{""name"":""testNewGetByteArray"",""parameters"":[],""returntype"":""ByteArray"",""offset"":910,""safe"":false},{""name"":""testPutReadOnly"",""parameters"":[{""name"":""key"",""type"":""ByteArray""},{""name"":""value"",""type"":""ByteArray""}],""returntype"":""Boolean"",""offset"":988,""safe"":false},{""name"":""serializeTest"",""parameters"":[{""name"":""key"",""type"":""ByteArray""},{""name"":""value"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1033,""safe"":false},{""name"":""testFind"",""parameters"":[],""returntype"":""ByteArray"",""offset"":1126,""safe"":false},{""name"":""testIndexPut"",""parameters"":[{""name"":""key"",""type"":""ByteArray""},{""name"":""value"",""type"":""ByteArray""}],""returntype"":""Boolean"",""offset"":1200,""safe"":false},{""name"":""testIndexGet"",""parameters"":[{""name"":""key"",""type"":""ByteArray""}],""returntype"":""ByteArray"",""offset"":1238,""safe"":false}],""events"":[]},""permissions"":[{""contract"":""0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"",""methods"":[""deserialize"",""serialize""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_Storage"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""testPutByte"",""parameters"":[{""name"":""key"",""type"":""ByteArray""},{""name"":""value"",""type"":""ByteArray""}],""returntype"":""Boolean"",""offset"":0,""safe"":false},{""name"":""testDeleteByte"",""parameters"":[{""name"":""key"",""type"":""ByteArray""}],""returntype"":""Void"",""offset"":39,""safe"":false},{""name"":""testGetByte"",""parameters"":[{""name"":""key"",""type"":""ByteArray""}],""returntype"":""ByteArray"",""offset"":74,""safe"":false},{""name"":""testOver16Bytes"",""parameters"":[],""returntype"":""ByteArray"",""offset"":115,""safe"":false},{""name"":""testPutString"",""parameters"":[{""name"":""key"",""type"":""ByteArray""},{""name"":""value"",""type"":""ByteArray""}],""returntype"":""Boolean"",""offset"":207,""safe"":false},{""name"":""testDeleteString"",""parameters"":[{""name"":""key"",""type"":""ByteArray""}],""returntype"":""Void"",""offset"":243,""safe"":false},{""name"":""testGetString"",""parameters"":[{""name"":""key"",""type"":""ByteArray""}],""returntype"":""ByteArray"",""offset"":275,""safe"":false},{""name"":""testPutByteArray"",""parameters"":[{""name"":""key"",""type"":""ByteArray""},{""name"":""value"",""type"":""ByteArray""}],""returntype"":""Boolean"",""offset"":313,""safe"":false},{""name"":""testDeleteByteArray"",""parameters"":[{""name"":""key"",""type"":""ByteArray""}],""returntype"":""Void"",""offset"":351,""safe"":false},{""name"":""testGetByteArray"",""parameters"":[{""name"":""key"",""type"":""ByteArray""}],""returntype"":""ByteArray"",""offset"":385,""safe"":false},{""name"":""testNewGetMethods"",""parameters"":[],""returntype"":""Boolean"",""offset"":430,""safe"":false},{""name"":""testNewGetByteArray"",""parameters"":[],""returntype"":""ByteArray"",""offset"":910,""safe"":false},{""name"":""testPutReadOnly"",""parameters"":[{""name"":""key"",""type"":""ByteArray""},{""name"":""value"",""type"":""ByteArray""}],""returntype"":""Boolean"",""offset"":988,""safe"":false},{""name"":""serializeTest"",""parameters"":[{""name"":""key"",""type"":""ByteArray""},{""name"":""value"",""type"":""Integer""}],""returntype"":""Integer"",""offset"":1033,""safe"":false},{""name"":""testFind"",""parameters"":[],""returntype"":""ByteArray"",""offset"":1125,""safe"":false},{""name"":""testIndexPut"",""parameters"":[{""name"":""key"",""type"":""ByteArray""},{""name"":""value"",""type"":""ByteArray""}],""returntype"":""Boolean"",""offset"":1199,""safe"":false},{""name"":""testIndexGet"",""parameters"":[{""name"":""key"",""type"":""ByteArray""}],""returntype"":""ByteArray"",""offset"":1237,""safe"":false}],""events"":[]},""permissions"":[{""contract"":""0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"",""methods"":[""deserialize"",""serialize""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALA7znO4OTpJcbCoGp54UQN2G/OrAlzZXJpYWxpemUBAAEPwO85zuDk6SXGwqBqeeFEDdhvzqwLZGVzZXJpYWxpemUBAAEPAAD9/ARXAQJBm/ZnzgAREYhOEFHQUBLAcHnbKHjbKGjBRVOLUEHmPxiECEBXAQFBm/ZnzgAREYhOEFHQUBLAcHjbKGjBRVOLUEEvWMXtQFcDAUH2tGvicGgAERGIThBR0FASwHF42yhpwUVTi1BBkl3oMXJq2zBAVwIADBg7ADIDIyMjIwIjIwIjIwIjIwIjIwIjIwLbMHAMCHRlc3RfbWFwQZv2Z84SwHFo2ygMAQHbMNsoacFFU4tQQeY/GIQMAQHbMNsoacFFU4tQQZJd6DHbMEBXAgIMAmFhcGhBm/ZnzhLAcXnbKHjbKGnBRVOLUEHmPxiECEBXAgEMAmFhcGhBm/ZnzhLAcXjbKGnBRVOLUEEvWMXtQFcEAQwCYWFwQfa0a+JxaGkSwHJ42yhqwUVTi1BBkl3oMXNr2zBAVwICDAIA/9swcGhBm/ZnzhLAcXnbKHjbKGnBRVOLUEHmPxiECEBXAgEMAgD/2zBwaEGb9mfOEsBxeNsoacFFU4tQQS9Yxe1AVwQBDAIA/9swcEGb9mfOQXZMv+lxaGkSwHJ42yhqwUVTi1BBkl3oMXNr2zBAVw8ADAIA/9swcEGb9mfOcWhpEsByCHMAe3QMC2hlbGxvIHdvcmxkdQwUAAECAwQFBgcICQABAgMEBQYHCAnbMNsoStgkCUrKABQoAzp2DCAAAQIDBAUGBwgJAAECAwQFBgcICQABAgMEBQYHCAkAAdsw2yhK2CQJSsoAICgDOncHDCEAAQIDBAUGBwgJAAECAwQFBgcICQABAgMEBQYHCAkAAQLbMNsoStgkCUrKACEoAzp3CGsMBGJvb2xqwUVTi1BB5j8YhGwMA2ludGrBRVOLUEHmPxiEbQwGc3RyaW5nasFFU4tQQeY/GIRuDAd1aW50MTYwasFFU4tQQeY/GIRvBwwHdWludDI1NmrBRVOLUEHmPxiEbwgMB2VjcG9pbnRqwUVTi1BB5j8YhAwEYm9vbGrBRVOLUEGSXegxqqp3CQwDaW50asFFU4tQQZJd6DHbIXcKDAZzdHJpbmdqwUVTi1BBkl3oMXcLDAd1aW50MTYwasFFU4tQQZJd6DF3DAwHdWludDI1NmrBRVOLUEGSXegxdw0MB2VjcG9pbnRqwUVTi1BBkl3oMXcOa28JlyQFCSIGbG8KlyQFCSIGbW8LlyQFCSIGbm8MlyQFCSIHbwdvDZckBAlAbwhvDpdAVwUADAIA/9swcEGb9mfOcWhpEsByDAIAAdswc2sMCWJ5dGVBcnJheWrBRVOLUEHmPxiEDAlieXRlQXJyYXlqwUVTi1BBkl3oMdswdGxAVwMCDAIA/9swcEGb9mfOQXZMv+lxaGkSwHJ52yh42yhqwUVTi1BB5j8YhAhAVwQCDAIBqtswcEGb9mfOcWhpEsByEBHAShB50HNreGo0C3hqNBtzaxDOQFcAA3o3AAB5eMFFU4tQQeY/GIRAVwICeXjBRVOLUEGSXegxcGhxaQuXJgQLQGg3AQBAVwIAQZv2Z85wDAEB2zDbKAwEa2V5MWhB5j8YhAwBAtsw2ygMBGtleTJoQeY/GIQUDANrZXloQd8wuJpxaUGcCO2cRWlB81S/HUBXAgIMAmlpcGhBm/ZnzhLAcXnbKEp42yhpwUVTi1BB5j8YhEUIQFcEAQwCaWlwQfa0a+JxaGkSwHJ42yhqwUVTi1BBkl3oMXNr2zBAmqR3OQ==")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALA7znO4OTpJcbCoGp54UQN2G/OrAlzZXJpYWxpemUBAAEPwO85zuDk6SXGwqBqeeFEDdhvzqwLZGVzZXJpYWxpemUBAAEPAAD9+wRXAQJBm/ZnzgAREYhOEFHQUBLAcHnbKHjbKGjBRVOLUEHmPxiECEBXAQFBm/ZnzgAREYhOEFHQUBLAcHjbKGjBRVOLUEEvWMXtQFcDAUH2tGvicGgAERGIThBR0FASwHF42yhpwUVTi1BBkl3oMXJq2zBAVwIADBg7ADIDIyMjIwIjIwIjIwIjIwIjIwIjIwLbMHAMCHRlc3RfbWFwQZv2Z84SwHFo2ygMAQHbMNsoacFFU4tQQeY/GIQMAQHbMNsoacFFU4tQQZJd6DHbMEBXAgIMAmFhcGhBm/ZnzhLAcXnbKHjbKGnBRVOLUEHmPxiECEBXAgEMAmFhcGhBm/ZnzhLAcXjbKGnBRVOLUEEvWMXtQFcEAQwCYWFwQfa0a+JxaGkSwHJ42yhqwUVTi1BBkl3oMXNr2zBAVwICDAIA/9swcGhBm/ZnzhLAcXnbKHjbKGnBRVOLUEHmPxiECEBXAgEMAgD/2zBwaEGb9mfOEsBxeNsoacFFU4tQQS9Yxe1AVwQBDAIA/9swcEGb9mfOQXZMv+lxaGkSwHJ42yhqwUVTi1BBkl3oMXNr2zBAVw8ADAIA/9swcEGb9mfOcWhpEsByCHMAe3QMC2hlbGxvIHdvcmxkdQwUAAECAwQFBgcICQABAgMEBQYHCAnbMNsoStgkCUrKABQoAzp2DCAAAQIDBAUGBwgJAAECAwQFBgcICQABAgMEBQYHCAkAAdsw2yhK2CQJSsoAICgDOncHDCEAAQIDBAUGBwgJAAECAwQFBgcICQABAgMEBQYHCAkAAQLbMNsoStgkCUrKACEoAzp3CGsMBGJvb2xqwUVTi1BB5j8YhGwMA2ludGrBRVOLUEHmPxiEbQwGc3RyaW5nasFFU4tQQeY/GIRuDAd1aW50MTYwasFFU4tQQeY/GIRvBwwHdWludDI1NmrBRVOLUEHmPxiEbwgMB2VjcG9pbnRqwUVTi1BB5j8YhAwEYm9vbGrBRVOLUEGSXegxqqp3CQwDaW50asFFU4tQQZJd6DHbIXcKDAZzdHJpbmdqwUVTi1BBkl3oMXcLDAd1aW50MTYwasFFU4tQQZJd6DF3DAwHdWludDI1NmrBRVOLUEGSXegxdw0MB2VjcG9pbnRqwUVTi1BBkl3oMXcOa28JlyQFCSIGbG8KlyQFCSIGbW8LlyQFCSIGbm8MlyQFCSIHbwdvDZckBAlAbwhvDpdAVwUADAIA/9swcEGb9mfOcWhpEsByDAIAAdswc2sMCWJ5dGVBcnJheWrBRVOLUEHmPxiEDAlieXRlQXJyYXlqwUVTi1BBkl3oMdswdGxAVwMCDAIA/9swcEGb9mfOQXZMv+lxaGkSwHJ52yh42yhqwUVTi1BB5j8YhAhAVwQCDAIBqtswcEGb9mfOcWhpEsByEBHAShB50HNreGo0C3hqNBtzaxDOQFcAA3o3AAB5eMFFU4tQQeY/GIRAVwICeXjBRVOLUEGSXegxcGhxadgmBAtAaDcBAEBXAgBBm/ZnznAMAQHbMNsoDARrZXkxaEHmPxiEDAEC2zDbKAwEa2V5MmhB5j8YhBQMA2tleWhB3zC4mnFpQZwI7ZxFaUHzVL8dQFcCAgwCaWlwaEGb9mfOEsBxedsoSnjbKGnBRVOLUEHmPxiERQhAVwQBDAJpaXBB9rRr4nFoaRLAcnjbKGrBRVOLUEGSXegxc2vbMEAKXeJG")); #endregion diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard11Enum.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard11Enum.cs index 8daddc53f..7f6e62ea8 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard11Enum.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard11Enum.cs @@ -10,12 +10,12 @@ public abstract class Contract_SupportedStandard11Enum(Neo.SmartContract.Testing { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_SupportedStandard11Enum"",""groups"":[],""features"":{},""supportedstandards"":[""NEP-11""],""abi"":{""methods"":[{""name"":""symbol"",""parameters"":[],""returntype"":""String"",""offset"":0,""safe"":true},{""name"":""decimals"",""parameters"":[],""returntype"":""Integer"",""offset"":1,""safe"":true},{""name"":""totalSupply"",""parameters"":[],""returntype"":""Integer"",""offset"":3,""safe"":true},{""name"":""balanceOf"",""parameters"":[{""name"":""owner"",""type"":""Hash160""}],""returntype"":""Integer"",""offset"":29,""safe"":true},{""name"":""ownerOf"",""parameters"":[{""name"":""tokenId"",""type"":""ByteArray""}],""returntype"":""Hash160"",""offset"":212,""safe"":true},{""name"":""properties"",""parameters"":[{""name"":""tokenId"",""type"":""ByteArray""}],""returntype"":""Map"",""offset"":371,""safe"":true},{""name"":""tokens"",""parameters"":[],""returntype"":""InteropInterface"",""offset"":418,""safe"":true},{""name"":""tokensOf"",""parameters"":[{""name"":""owner"",""type"":""Hash160""}],""returntype"":""InteropInterface"",""offset"":446,""safe"":true},{""name"":""transfer"",""parameters"":[{""name"":""to"",""type"":""Hash160""},{""name"":""tokenId"",""type"":""ByteArray""},{""name"":""data"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":535,""safe"":false},{""name"":""testStandard"",""parameters"":[],""returntype"":""Boolean"",""offset"":829,""safe"":false},{""name"":""onNEP11Payment"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""},{""name"":""tokenId"",""type"":""String""},{""name"":""data"",""type"":""Any""}],""returntype"":""Void"",""offset"":831,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":835,""safe"":false}],""events"":[{""name"":""Transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""},{""name"":""tokenId"",""type"":""ByteArray""}]}]},""permissions"":[{""contract"":""0x726cb6e0cd8628a1350a611384688911ab75f51b"",""methods"":[""sha256""]},{""contract"":""0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"",""methods"":[""deserialize"",""serialize""]},{""contract"":""0xfffdc93764dbaddd97c48f252a53ea4643faa3fd"",""methods"":[""getContract""]},{""contract"":""*"",""methods"":[""onNEP11Payment""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_SupportedStandard11Enum"",""groups"":[],""features"":{},""supportedstandards"":[""NEP-11""],""abi"":{""methods"":[{""name"":""symbol"",""parameters"":[],""returntype"":""String"",""offset"":0,""safe"":true},{""name"":""decimals"",""parameters"":[],""returntype"":""Integer"",""offset"":1,""safe"":true},{""name"":""totalSupply"",""parameters"":[],""returntype"":""Integer"",""offset"":3,""safe"":true},{""name"":""balanceOf"",""parameters"":[{""name"":""owner"",""type"":""Hash160""}],""returntype"":""Integer"",""offset"":29,""safe"":true},{""name"":""ownerOf"",""parameters"":[{""name"":""tokenId"",""type"":""ByteArray""}],""returntype"":""Hash160"",""offset"":210,""safe"":true},{""name"":""properties"",""parameters"":[{""name"":""tokenId"",""type"":""ByteArray""}],""returntype"":""Map"",""offset"":369,""safe"":true},{""name"":""tokens"",""parameters"":[],""returntype"":""InteropInterface"",""offset"":416,""safe"":true},{""name"":""tokensOf"",""parameters"":[{""name"":""owner"",""type"":""Hash160""}],""returntype"":""InteropInterface"",""offset"":444,""safe"":true},{""name"":""transfer"",""parameters"":[{""name"":""to"",""type"":""Hash160""},{""name"":""tokenId"",""type"":""ByteArray""},{""name"":""data"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":532,""safe"":false},{""name"":""testStandard"",""parameters"":[],""returntype"":""Boolean"",""offset"":821,""safe"":false},{""name"":""onNEP11Payment"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""},{""name"":""tokenId"",""type"":""String""},{""name"":""data"",""type"":""Any""}],""returntype"":""Void"",""offset"":823,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":827,""safe"":false}],""events"":[{""name"":""Transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""},{""name"":""tokenId"",""type"":""ByteArray""}]}]},""permissions"":[{""contract"":""0x726cb6e0cd8628a1350a611384688911ab75f51b"",""methods"":[""sha256""]},{""contract"":""0xacce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"",""methods"":[""deserialize"",""serialize""]},{""contract"":""0xfffdc93764dbaddd97c48f252a53ea4643faa3fd"",""methods"":[""getContract""]},{""contract"":""*"",""methods"":[""onNEP11Payment""]}],""trusts"":[],""extra"":{""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATA7znO4OTpJcbCoGp54UQN2G/OrAtkZXNlcmlhbGl6ZQEAAQ/A7znO4OTpJcbCoGp54UQN2G/OrAlzZXJpYWxpemUBAAEP/aP6Q0bqUyolj8SX3a3bZDfJ/f8LZ2V0Q29udHJhY3QBAAEPG/V1qxGJaIQTYQo1oSiGzeC2bHIGc2hhMjU2AQABDwAA/UYDQBBAWNgmFwwBAEH2tGviQZJd6DFK2CYERRBKYEBXAQF4cGgLlyYFCCINeErZKFDKABSzq6omJQwgVGhlIGFyZ3VtZW50ICJvd25lciIgaXMgaW52YWxpZC46QZv2Z84REYhOEFHQUBLAcHhowUVTi1BBkl3oMUrYJgRFENshQFcCAkGb9mfOERGIThBR0FASwHB4aMFFU4tQQZJd6DFK2CYERRDbIXFpeZ5xaRC1JgQJQGkQsyYQeGjBRVOLUEEvWMXtIg9peGjBRVOLUEHmPxiECEBXAwF4ygBAtyY8DDdUaGUgYXJndW1lbnQgInRva2VuSWQiIHNob3VsZCBiZSA2NCBvciBsZXNzIGJ5dGVzIGxvbmcuOhMRiE4QUdBBm/ZnzhLAcHhowUVTi1BBkl3oMUrYJjRFDC5UaGUgdG9rZW4gd2l0aCBnaXZlbiAidG9rZW5JZCIgZG9lcyBub3QgZXhpc3QuOnFpNwAAcmoQzkBXAgETEYhOEFHQQZv2Z84SwHB4aMFFU4tQQZJd6DE3AABxyEoMBG5hbWVpEc7QQFcBABMRiE4QUdBBm/ZnzhLAcBNowUVB3zC4mkBXAQF4cGgLlyYFCCINeErZKFDKABSzq6omJAwfVGhlIGFyZ3VtZW50ICJvd25lciIgaXMgaW52YWxpZDoUEYhOEFHQQZv2Z84SwHATeGjBRVOLUEHfMLiaQFcDA3hwaAuXJgUIIg14StkoUMoAFLOrqiYiDB1UaGUgYXJndW1lbnQgInRvIiBpcyBpbnZhbGlkLjoTEYhOEFHQQZv2Z84SwHB5aMFFU4tQQZJd6DE3AABxaRDOcmpB+CfsjKomBAlAaniYJiV4SmkQUdBFaTcBAEp5aMFFU4tQQeY/GIRFD3lqNA8ReXg0Cnp5eGo0RQhAVwIDeng1y/3//0VBm/ZnzhQRiE4QUdBQEsBweHmL2yhxehC3JhAQaWjBRVOLUEHmPxiEQGlowUVTi1BBL1jF7UBXAQR6EXl4FMAMCFRyYW5zZmVyQZUBb2F5cGgLl6okBQkiC3k3AgBwaAuXqiYge3oReBTAHwwOb25ORVAxMVBheW1lbnR5QWJ9W1JFQAhAVwAEQFYBQA3dKZ0=")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATA7znO4OTpJcbCoGp54UQN2G/OrAtkZXNlcmlhbGl6ZQEAAQ/A7znO4OTpJcbCoGp54UQN2G/OrAlzZXJpYWxpemUBAAEP/aP6Q0bqUyolj8SX3a3bZDfJ/f8LZ2V0Q29udHJhY3QBAAEPG/V1qxGJaIQTYQo1oSiGzeC2bHIGc2hhMjU2AQABDwAA/T4DQBBAWNgmFwwBAEH2tGviQZJd6DFK2CYERRBKYEBXAQF4cGjYJgUIIg14StkoUMoAFLOrqiYlDCBUaGUgYXJndW1lbnQgIm93bmVyIiBpcyBpbnZhbGlkLjpBm/ZnzhERiE4QUdBQEsBweGjBRVOLUEGSXegxStgmBEUQ2yFAVwICQZv2Z84REYhOEFHQUBLAcHhowUVTi1BBkl3oMUrYJgRFENshcWl5nnFpELUmBAlAabEkEHhowUVTi1BBL1jF7SIPaXhowUVTi1BB5j8YhAhAVwMBeMoAQLcmPAw3VGhlIGFyZ3VtZW50ICJ0b2tlbklkIiBzaG91bGQgYmUgNjQgb3IgbGVzcyBieXRlcyBsb25nLjoTEYhOEFHQQZv2Z84SwHB4aMFFU4tQQZJd6DFK2CY0RQwuVGhlIHRva2VuIHdpdGggZ2l2ZW4gInRva2VuSWQiIGRvZXMgbm90IGV4aXN0LjpxaTcAAHJqEM5AVwIBExGIThBR0EGb9mfOEsBweGjBRVOLUEGSXegxNwAAcchKDARuYW1laRHO0EBXAQATEYhOEFHQQZv2Z84SwHATaMFFQd8wuJpAVwEBeHBo2CYFCCINeErZKFDKABSzq6omJAwfVGhlIGFyZ3VtZW50ICJvd25lciIgaXMgaW52YWxpZDoUEYhOEFHQQZv2Z84SwHATeGjBRVOLUEHfMLiaQFcDA3hwaNgmBQgiDXhK2ShQygAUs6uqJiIMHVRoZSBhcmd1bWVudCAidG8iIGlzIGludmFsaWQuOhMRiE4QUdBBm/ZnzhLAcHlowUVTi1BBkl3oMTcAAHFpEM5yakH4J+yMJAQJQGp4mCYleEppEFHQRWk3AQBKeWjBRVOLUEHmPxiERQ95ajQPEXl4NAp6eXhqNEUIQFcCA3p4Nc/9//9FQZv2Z84UEYhOEFHQUBLAcHh5i9socXoQtyYQEGlowUVTi1BB5j8YhEBpaMFFU4tQQS9Yxe1AVwEEehF5eBTADAhUcmFuc2ZlckGVAW9heXBo2CYFCSIKeTcCAHBo2KomIHt6EXgUwB8MDm9uTkVQMTFQYXltZW50eUFifVtSRUAIQFcABEBWAUAqM5uy")); #endregion @@ -58,55 +58,54 @@ public abstract class Contract_SupportedStandard11Enum(Neo.SmartContract.Testing /// Safe method /// /// - /// Script: VwEBeHBoC5cmBQgiDXhK2ShQygAUs6uqJiUMVGhlIGFyZ3VtZW50ICJvd25lciIgaXMgaW52YWxpZC46QZv2Z84REYhOEFHQUBLAcHhowUVTi1BBkl3oMUrYJgRFENshQA== + /// Script: VwEBeHBo2CYFCCINeErZKFDKABSzq6omJQxUaGUgYXJndW1lbnQgIm93bmVyIiBpcyBpbnZhbGlkLjpBm/ZnzhERiE4QUdBQEsBweGjBRVOLUEGSXegxStgmBEUQ2yFA /// 00 : OpCode.INITSLOT 0101 /// 03 : OpCode.LDARG0 /// 04 : OpCode.STLOC0 /// 05 : OpCode.LDLOC0 - /// 06 : OpCode.PUSHNULL - /// 07 : OpCode.EQUAL - /// 08 : OpCode.JMPIFNOT 05 - /// 0A : OpCode.PUSHT - /// 0B : OpCode.JMP 0D - /// 0D : OpCode.LDARG0 - /// 0E : OpCode.DUP - /// 0F : OpCode.ISTYPE 28 - /// 11 : OpCode.SWAP - /// 12 : OpCode.SIZE - /// 13 : OpCode.PUSHINT8 14 - /// 15 : OpCode.NUMEQUAL - /// 16 : OpCode.BOOLAND - /// 17 : OpCode.NOT - /// 18 : OpCode.JMPIFNOT 25 - /// 1A : OpCode.PUSHDATA1 54686520617267756D656E7420226F776E65722220697320696E76616C69642E - /// 3C : OpCode.THROW - /// 3D : OpCode.SYSCALL 9BF667CE + /// 06 : OpCode.ISNULL + /// 07 : OpCode.JMPIFNOT 05 + /// 09 : OpCode.PUSHT + /// 0A : OpCode.JMP 0D + /// 0C : OpCode.LDARG0 + /// 0D : OpCode.DUP + /// 0E : OpCode.ISTYPE 28 + /// 10 : OpCode.SWAP + /// 11 : OpCode.SIZE + /// 12 : OpCode.PUSHINT8 14 + /// 14 : OpCode.NUMEQUAL + /// 15 : OpCode.BOOLAND + /// 16 : OpCode.NOT + /// 17 : OpCode.JMPIFNOT 25 + /// 19 : OpCode.PUSHDATA1 54686520617267756D656E7420226F776E65722220697320696E76616C69642E + /// 3B : OpCode.THROW + /// 3C : OpCode.SYSCALL 9BF667CE + /// 41 : OpCode.PUSH1 /// 42 : OpCode.PUSH1 - /// 43 : OpCode.PUSH1 - /// 44 : OpCode.NEWBUFFER - /// 45 : OpCode.TUCK - /// 46 : OpCode.PUSH0 - /// 47 : OpCode.ROT - /// 48 : OpCode.SETITEM - /// 49 : OpCode.SWAP - /// 4A : OpCode.PUSH2 - /// 4B : OpCode.PACK - /// 4C : OpCode.STLOC0 - /// 4D : OpCode.LDARG0 - /// 4E : OpCode.LDLOC0 - /// 4F : OpCode.UNPACK - /// 50 : OpCode.DROP - /// 51 : OpCode.REVERSE3 - /// 52 : OpCode.CAT - /// 53 : OpCode.SWAP - /// 54 : OpCode.SYSCALL 925DE831 - /// 59 : OpCode.DUP - /// 5A : OpCode.ISNULL - /// 5B : OpCode.JMPIFNOT 04 - /// 5D : OpCode.DROP - /// 5E : OpCode.PUSH0 - /// 5F : OpCode.CONVERT 21 - /// 61 : OpCode.RET + /// 43 : OpCode.NEWBUFFER + /// 44 : OpCode.TUCK + /// 45 : OpCode.PUSH0 + /// 46 : OpCode.ROT + /// 47 : OpCode.SETITEM + /// 48 : OpCode.SWAP + /// 49 : OpCode.PUSH2 + /// 4A : OpCode.PACK + /// 4B : OpCode.STLOC0 + /// 4C : OpCode.LDARG0 + /// 4D : OpCode.LDLOC0 + /// 4E : OpCode.UNPACK + /// 4F : OpCode.DROP + /// 50 : OpCode.REVERSE3 + /// 51 : OpCode.CAT + /// 52 : OpCode.SWAP + /// 53 : OpCode.SYSCALL 925DE831 + /// 58 : OpCode.DUP + /// 59 : OpCode.ISNULL + /// 5A : OpCode.JMPIFNOT 04 + /// 5C : OpCode.DROP + /// 5D : OpCode.PUSH0 + /// 5E : OpCode.CONVERT 21 + /// 60 : OpCode.RET /// [DisplayName("balanceOf")] public abstract BigInteger? BalanceOf(UInt160? owner); @@ -204,49 +203,48 @@ public abstract class Contract_SupportedStandard11Enum(Neo.SmartContract.Testing /// Safe method /// /// - /// Script: VwEBeHBoC5cmBQgiDXhK2ShQygAUs6uqJiQMVGhlIGFyZ3VtZW50ICJvd25lciIgaXMgaW52YWxpZDoUEYhOEFHQQZv2Z84SwHATeGjBRVOLUEHfMLiaQA== + /// Script: VwEBeHBo2CYFCCINeErZKFDKABSzq6omJAxUaGUgYXJndW1lbnQgIm93bmVyIiBpcyBpbnZhbGlkOhQRiE4QUdBBm/ZnzhLAcBN4aMFFU4tQQd8wuJpA /// 00 : OpCode.INITSLOT 0101 /// 03 : OpCode.LDARG0 /// 04 : OpCode.STLOC0 /// 05 : OpCode.LDLOC0 - /// 06 : OpCode.PUSHNULL - /// 07 : OpCode.EQUAL - /// 08 : OpCode.JMPIFNOT 05 - /// 0A : OpCode.PUSHT - /// 0B : OpCode.JMP 0D - /// 0D : OpCode.LDARG0 - /// 0E : OpCode.DUP - /// 0F : OpCode.ISTYPE 28 - /// 11 : OpCode.SWAP - /// 12 : OpCode.SIZE - /// 13 : OpCode.PUSHINT8 14 - /// 15 : OpCode.NUMEQUAL - /// 16 : OpCode.BOOLAND - /// 17 : OpCode.NOT - /// 18 : OpCode.JMPIFNOT 24 - /// 1A : OpCode.PUSHDATA1 54686520617267756D656E7420226F776E65722220697320696E76616C6964 - /// 3B : OpCode.THROW - /// 3C : OpCode.PUSH4 - /// 3D : OpCode.PUSH1 - /// 3E : OpCode.NEWBUFFER - /// 3F : OpCode.TUCK - /// 40 : OpCode.PUSH0 - /// 41 : OpCode.ROT - /// 42 : OpCode.SETITEM - /// 43 : OpCode.SYSCALL 9BF667CE - /// 48 : OpCode.PUSH2 - /// 49 : OpCode.PACK - /// 4A : OpCode.STLOC0 - /// 4B : OpCode.PUSH3 - /// 4C : OpCode.LDARG0 - /// 4D : OpCode.LDLOC0 - /// 4E : OpCode.UNPACK - /// 4F : OpCode.DROP - /// 50 : OpCode.REVERSE3 - /// 51 : OpCode.CAT - /// 52 : OpCode.SWAP - /// 53 : OpCode.SYSCALL DF30B89A - /// 58 : OpCode.RET + /// 06 : OpCode.ISNULL + /// 07 : OpCode.JMPIFNOT 05 + /// 09 : OpCode.PUSHT + /// 0A : OpCode.JMP 0D + /// 0C : OpCode.LDARG0 + /// 0D : OpCode.DUP + /// 0E : OpCode.ISTYPE 28 + /// 10 : OpCode.SWAP + /// 11 : OpCode.SIZE + /// 12 : OpCode.PUSHINT8 14 + /// 14 : OpCode.NUMEQUAL + /// 15 : OpCode.BOOLAND + /// 16 : OpCode.NOT + /// 17 : OpCode.JMPIFNOT 24 + /// 19 : OpCode.PUSHDATA1 54686520617267756D656E7420226F776E65722220697320696E76616C6964 + /// 3A : OpCode.THROW + /// 3B : OpCode.PUSH4 + /// 3C : OpCode.PUSH1 + /// 3D : OpCode.NEWBUFFER + /// 3E : OpCode.TUCK + /// 3F : OpCode.PUSH0 + /// 40 : OpCode.ROT + /// 41 : OpCode.SETITEM + /// 42 : OpCode.SYSCALL 9BF667CE + /// 47 : OpCode.PUSH2 + /// 48 : OpCode.PACK + /// 49 : OpCode.STLOC0 + /// 4A : OpCode.PUSH3 + /// 4B : OpCode.LDARG0 + /// 4C : OpCode.LDLOC0 + /// 4D : OpCode.UNPACK + /// 4E : OpCode.DROP + /// 4F : OpCode.REVERSE3 + /// 50 : OpCode.CAT + /// 51 : OpCode.SWAP + /// 52 : OpCode.SYSCALL DF30B89A + /// 57 : OpCode.RET /// [DisplayName("tokensOf")] public abstract object? TokensOf(UInt160? owner); @@ -281,97 +279,95 @@ public abstract class Contract_SupportedStandard11Enum(Neo.SmartContract.Testing /// Unsafe method /// /// - /// Script: VwMDeHBoC5cmBQgiDXhK2ShQygAUs6uqJiIMVGhlIGFyZ3VtZW50ICJ0byIgaXMgaW52YWxpZC46ExGIThBR0EGb9mfOEsBweWjBRVOLUEGSXegxNwAAcWkQznJqQfgn7IyqJgQJQGp4mCYleEppEFHQRWk3AQBKeWjBRVOLUEHmPxiERQ95ajQPEXl4NAp6eXhqNEUIQA== + /// Script: VwMDeHBo2CYFCCINeErZKFDKABSzq6omIgxUaGUgYXJndW1lbnQgInRvIiBpcyBpbnZhbGlkLjoTEYhOEFHQQZv2Z84SwHB5aMFFU4tQQZJd6DE3AABxaRDOcmpB+CfsjCQECUBqeJgmJXhKaRBR0EVpNwEASnlowUVTi1BB5j8YhEUPeWo0DxF5eDQKenl4ajRFCEA= /// 00 : OpCode.INITSLOT 0303 /// 03 : OpCode.LDARG0 /// 04 : OpCode.STLOC0 /// 05 : OpCode.LDLOC0 - /// 06 : OpCode.PUSHNULL - /// 07 : OpCode.EQUAL - /// 08 : OpCode.JMPIFNOT 05 - /// 0A : OpCode.PUSHT - /// 0B : OpCode.JMP 0D - /// 0D : OpCode.LDARG0 - /// 0E : OpCode.DUP - /// 0F : OpCode.ISTYPE 28 - /// 11 : OpCode.SWAP - /// 12 : OpCode.SIZE - /// 13 : OpCode.PUSHINT8 14 - /// 15 : OpCode.NUMEQUAL - /// 16 : OpCode.BOOLAND - /// 17 : OpCode.NOT - /// 18 : OpCode.JMPIFNOT 22 - /// 1A : OpCode.PUSHDATA1 54686520617267756D656E742022746F2220697320696E76616C69642E - /// 39 : OpCode.THROW - /// 3A : OpCode.PUSH3 - /// 3B : OpCode.PUSH1 - /// 3C : OpCode.NEWBUFFER - /// 3D : OpCode.TUCK - /// 3E : OpCode.PUSH0 - /// 3F : OpCode.ROT - /// 40 : OpCode.SETITEM - /// 41 : OpCode.SYSCALL 9BF667CE - /// 46 : OpCode.PUSH2 - /// 47 : OpCode.PACK - /// 48 : OpCode.STLOC0 - /// 49 : OpCode.LDARG1 - /// 4A : OpCode.LDLOC0 - /// 4B : OpCode.UNPACK - /// 4C : OpCode.DROP - /// 4D : OpCode.REVERSE3 - /// 4E : OpCode.CAT - /// 4F : OpCode.SWAP - /// 50 : OpCode.SYSCALL 925DE831 - /// 55 : OpCode.CALLT 0000 - /// 58 : OpCode.STLOC1 - /// 59 : OpCode.LDLOC1 - /// 5A : OpCode.PUSH0 - /// 5B : OpCode.PICKITEM - /// 5C : OpCode.STLOC2 - /// 5D : OpCode.LDLOC2 - /// 5E : OpCode.SYSCALL F827EC8C - /// 63 : OpCode.NOT - /// 64 : OpCode.JMPIFNOT 04 - /// 66 : OpCode.PUSHF - /// 67 : OpCode.RET - /// 68 : OpCode.LDLOC2 - /// 69 : OpCode.LDARG0 - /// 6A : OpCode.NOTEQUAL - /// 6B : OpCode.JMPIFNOT 25 - /// 6D : OpCode.LDARG0 - /// 6E : OpCode.DUP - /// 6F : OpCode.LDLOC1 - /// 70 : OpCode.PUSH0 - /// 71 : OpCode.ROT - /// 72 : OpCode.SETITEM - /// 73 : OpCode.DROP - /// 74 : OpCode.LDLOC1 - /// 75 : OpCode.CALLT 0100 - /// 78 : OpCode.DUP - /// 79 : OpCode.LDARG1 - /// 7A : OpCode.LDLOC0 - /// 7B : OpCode.UNPACK - /// 7C : OpCode.DROP - /// 7D : OpCode.REVERSE3 - /// 7E : OpCode.CAT - /// 7F : OpCode.SWAP - /// 80 : OpCode.SYSCALL E63F1884 - /// 85 : OpCode.DROP - /// 86 : OpCode.PUSHM1 - /// 87 : OpCode.LDARG1 - /// 88 : OpCode.LDLOC2 - /// 89 : OpCode.CALL 0F - /// 8B : OpCode.PUSH1 - /// 8C : OpCode.LDARG1 - /// 8D : OpCode.LDARG0 - /// 8E : OpCode.CALL 0A - /// 90 : OpCode.LDARG2 - /// 91 : OpCode.LDARG1 - /// 92 : OpCode.LDARG0 - /// 93 : OpCode.LDLOC2 - /// 94 : OpCode.CALL 45 - /// 96 : OpCode.PUSHT - /// 97 : OpCode.RET + /// 06 : OpCode.ISNULL + /// 07 : OpCode.JMPIFNOT 05 + /// 09 : OpCode.PUSHT + /// 0A : OpCode.JMP 0D + /// 0C : OpCode.LDARG0 + /// 0D : OpCode.DUP + /// 0E : OpCode.ISTYPE 28 + /// 10 : OpCode.SWAP + /// 11 : OpCode.SIZE + /// 12 : OpCode.PUSHINT8 14 + /// 14 : OpCode.NUMEQUAL + /// 15 : OpCode.BOOLAND + /// 16 : OpCode.NOT + /// 17 : OpCode.JMPIFNOT 22 + /// 19 : OpCode.PUSHDATA1 54686520617267756D656E742022746F2220697320696E76616C69642E + /// 38 : OpCode.THROW + /// 39 : OpCode.PUSH3 + /// 3A : OpCode.PUSH1 + /// 3B : OpCode.NEWBUFFER + /// 3C : OpCode.TUCK + /// 3D : OpCode.PUSH0 + /// 3E : OpCode.ROT + /// 3F : OpCode.SETITEM + /// 40 : OpCode.SYSCALL 9BF667CE + /// 45 : OpCode.PUSH2 + /// 46 : OpCode.PACK + /// 47 : OpCode.STLOC0 + /// 48 : OpCode.LDARG1 + /// 49 : OpCode.LDLOC0 + /// 4A : OpCode.UNPACK + /// 4B : OpCode.DROP + /// 4C : OpCode.REVERSE3 + /// 4D : OpCode.CAT + /// 4E : OpCode.SWAP + /// 4F : OpCode.SYSCALL 925DE831 + /// 54 : OpCode.CALLT 0000 + /// 57 : OpCode.STLOC1 + /// 58 : OpCode.LDLOC1 + /// 59 : OpCode.PUSH0 + /// 5A : OpCode.PICKITEM + /// 5B : OpCode.STLOC2 + /// 5C : OpCode.LDLOC2 + /// 5D : OpCode.SYSCALL F827EC8C + /// 62 : OpCode.JMPIF 04 + /// 64 : OpCode.PUSHF + /// 65 : OpCode.RET + /// 66 : OpCode.LDLOC2 + /// 67 : OpCode.LDARG0 + /// 68 : OpCode.NOTEQUAL + /// 69 : OpCode.JMPIFNOT 25 + /// 6B : OpCode.LDARG0 + /// 6C : OpCode.DUP + /// 6D : OpCode.LDLOC1 + /// 6E : OpCode.PUSH0 + /// 6F : OpCode.ROT + /// 70 : OpCode.SETITEM + /// 71 : OpCode.DROP + /// 72 : OpCode.LDLOC1 + /// 73 : OpCode.CALLT 0100 + /// 76 : OpCode.DUP + /// 77 : OpCode.LDARG1 + /// 78 : OpCode.LDLOC0 + /// 79 : OpCode.UNPACK + /// 7A : OpCode.DROP + /// 7B : OpCode.REVERSE3 + /// 7C : OpCode.CAT + /// 7D : OpCode.SWAP + /// 7E : OpCode.SYSCALL E63F1884 + /// 83 : OpCode.DROP + /// 84 : OpCode.PUSHM1 + /// 85 : OpCode.LDARG1 + /// 86 : OpCode.LDLOC2 + /// 87 : OpCode.CALL 0F + /// 89 : OpCode.PUSH1 + /// 8A : OpCode.LDARG1 + /// 8B : OpCode.LDARG0 + /// 8C : OpCode.CALL 0A + /// 8E : OpCode.LDARG2 + /// 8F : OpCode.LDARG1 + /// 90 : OpCode.LDARG0 + /// 91 : OpCode.LDLOC2 + /// 92 : OpCode.CALL 45 + /// 94 : OpCode.PUSHT + /// 95 : OpCode.RET /// [DisplayName("transfer")] public abstract bool? Transfer(UInt160? to, byte[]? tokenId, object? data = null); diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard17Enum.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard17Enum.cs index 3689b072c..60a0bc492 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard17Enum.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_SupportedStandard17Enum.cs @@ -10,12 +10,12 @@ public abstract class Contract_SupportedStandard17Enum(Neo.SmartContract.Testing { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_SupportedStandard17Enum"",""groups"":[],""features"":{},""supportedstandards"":[""NEP-17""],""abi"":{""methods"":[{""name"":""symbol"",""parameters"":[],""returntype"":""String"",""offset"":0,""safe"":true},{""name"":""decimals"",""parameters"":[],""returntype"":""Integer"",""offset"":1,""safe"":true},{""name"":""totalSupply"",""parameters"":[],""returntype"":""Integer"",""offset"":2,""safe"":true},{""name"":""balanceOf"",""parameters"":[{""name"":""owner"",""type"":""Hash160""}],""returntype"":""Integer"",""offset"":28,""safe"":true},{""name"":""transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""},{""name"":""data"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":211,""safe"":false},{""name"":""onNEP17Payment"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""},{""name"":""data"",""type"":""Any""}],""returntype"":""Void"",""offset"":491,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":495,""safe"":false}],""events"":[{""name"":""Transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""}]}]},""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"",""Sourcecode"":""https://github.com/neo-project/neo-devpack-dotnet/tree/master/src/Neo.SmartContract.Template"",""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Contract_SupportedStandard17Enum"",""groups"":[],""features"":{},""supportedstandards"":[""NEP-17""],""abi"":{""methods"":[{""name"":""symbol"",""parameters"":[],""returntype"":""String"",""offset"":0,""safe"":true},{""name"":""decimals"",""parameters"":[],""returntype"":""Integer"",""offset"":1,""safe"":true},{""name"":""totalSupply"",""parameters"":[],""returntype"":""Integer"",""offset"":2,""safe"":true},{""name"":""balanceOf"",""parameters"":[{""name"":""owner"",""type"":""Hash160""}],""returntype"":""Integer"",""offset"":28,""safe"":true},{""name"":""transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""},{""name"":""data"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":209,""safe"":false},{""name"":""onNEP17Payment"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""},{""name"":""data"",""type"":""Any""}],""returntype"":""Void"",""offset"":482,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":486,""safe"":false}],""events"":[{""name"":""Transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""}]}]},""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"",""Sourcecode"":""https://github.com/neo-project/neo-devpack-dotnet/tree/master/src/Neo.SmartContract.Template"",""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH9o/pDRupTKiWPxJfdrdtkN8n9/wtnZXRDb250cmFjdAEAAQ8AAP3yAUBAWNgmFwwBAEH2tGviQZJd6DFK2CYERRBKYEBXAQF4cGgLlyYFCCINeErZKFDKABSzq6omJQwgVGhlIGFyZ3VtZW50ICJvd25lciIgaXMgaW52YWxpZC46QZv2Z84REYhOEFHQUBLAcHhowUVTi1BBkl3oMUrYJgRFENshQFcCAkGb9mfOERGIThBR0FASwHB4aMFFU4tQQZJd6DFK2CYERRDbIXFpeZ5xaRC1JgQJQGkQsyYQeGjBRVOLUEEvWMXtIg9peGjBRVOLUEHmPxiECEBXAQR4cGgLlyYFCCINeErZKFDKABSzq6omJAwfVGhlIGFyZ3VtZW50ICJmcm9tIiBpcyBpbnZhbGlkLjp5cGgLlyYFCCINeUrZKFDKABSzq6omIgwdVGhlIGFyZ3VtZW50ICJ0byIgaXMgaW52YWxpZC46ehC1JioMJVRoZSBhbW91bnQgbXVzdCBiZSBhIHBvc2l0aXZlIG51bWJlci46eEH4J+yMqiYECUB6EJgmF3qbeDX4/v//qiYECUB6eTXs/v//RXt6eXg0BAhAVwEEenl4E8AMCFRyYW5zZmVyQZUBb2F5cGgLl6okBQkiC3k3AABwaAuXqiYfe3p4E8AfDA5vbk5FUDE3UGF5bWVudHlBYn1bUkVAVwADQFYBQPvotps=")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH9o/pDRupTKiWPxJfdrdtkN8n9/wtnZXRDb250cmFjdAEAAQ8AAP3pAUBAWNgmFwwBAEH2tGviQZJd6DFK2CYERRBKYEBXAQF4cGjYJgUIIg14StkoUMoAFLOrqiYlDCBUaGUgYXJndW1lbnQgIm93bmVyIiBpcyBpbnZhbGlkLjpBm/ZnzhERiE4QUdBQEsBweGjBRVOLUEGSXegxStgmBEUQ2yFAVwICQZv2Z84REYhOEFHQUBLAcHhowUVTi1BBkl3oMUrYJgRFENshcWl5nnFpELUmBAlAabEkEHhowUVTi1BBL1jF7SIPaXhowUVTi1BB5j8YhAhAVwEEeHBo2CYFCCINeErZKFDKABSzq6omJAwfVGhlIGFyZ3VtZW50ICJmcm9tIiBpcyBpbnZhbGlkLjp5cGjYJgUIIg15StkoUMoAFLOrqiYiDB1UaGUgYXJndW1lbnQgInRvIiBpcyBpbnZhbGlkLjp6ELUmKgwlVGhlIGFtb3VudCBtdXN0IGJlIGEgcG9zaXRpdmUgbnVtYmVyLjp4Qfgn7IwkBAlAehCYJhZ6m3g1/P7//yQECUB6eTXx/v//RXt6eXg0BAhAVwEEenl4E8AMCFRyYW5zZmVyQZUBb2F5cGjYJgUJIgp5NwAAcGjYqiYfe3p4E8AfDA5vbk5FUDE3UGF5bWVudHlBYn1bUkVAVwADQFYBQH/4BXc=")); #endregion @@ -51,55 +51,54 @@ public abstract class Contract_SupportedStandard17Enum(Neo.SmartContract.Testing /// Safe method /// /// - /// Script: VwEBeHBoC5cmBQgiDXhK2ShQygAUs6uqJiUMVGhlIGFyZ3VtZW50ICJvd25lciIgaXMgaW52YWxpZC46QZv2Z84REYhOEFHQUBLAcHhowUVTi1BBkl3oMUrYJgRFENshQA== + /// Script: VwEBeHBo2CYFCCINeErZKFDKABSzq6omJQxUaGUgYXJndW1lbnQgIm93bmVyIiBpcyBpbnZhbGlkLjpBm/ZnzhERiE4QUdBQEsBweGjBRVOLUEGSXegxStgmBEUQ2yFA /// 00 : OpCode.INITSLOT 0101 /// 03 : OpCode.LDARG0 /// 04 : OpCode.STLOC0 /// 05 : OpCode.LDLOC0 - /// 06 : OpCode.PUSHNULL - /// 07 : OpCode.EQUAL - /// 08 : OpCode.JMPIFNOT 05 - /// 0A : OpCode.PUSHT - /// 0B : OpCode.JMP 0D - /// 0D : OpCode.LDARG0 - /// 0E : OpCode.DUP - /// 0F : OpCode.ISTYPE 28 - /// 11 : OpCode.SWAP - /// 12 : OpCode.SIZE - /// 13 : OpCode.PUSHINT8 14 - /// 15 : OpCode.NUMEQUAL - /// 16 : OpCode.BOOLAND - /// 17 : OpCode.NOT - /// 18 : OpCode.JMPIFNOT 25 - /// 1A : OpCode.PUSHDATA1 54686520617267756D656E7420226F776E65722220697320696E76616C69642E - /// 3C : OpCode.THROW - /// 3D : OpCode.SYSCALL 9BF667CE + /// 06 : OpCode.ISNULL + /// 07 : OpCode.JMPIFNOT 05 + /// 09 : OpCode.PUSHT + /// 0A : OpCode.JMP 0D + /// 0C : OpCode.LDARG0 + /// 0D : OpCode.DUP + /// 0E : OpCode.ISTYPE 28 + /// 10 : OpCode.SWAP + /// 11 : OpCode.SIZE + /// 12 : OpCode.PUSHINT8 14 + /// 14 : OpCode.NUMEQUAL + /// 15 : OpCode.BOOLAND + /// 16 : OpCode.NOT + /// 17 : OpCode.JMPIFNOT 25 + /// 19 : OpCode.PUSHDATA1 54686520617267756D656E7420226F776E65722220697320696E76616C69642E + /// 3B : OpCode.THROW + /// 3C : OpCode.SYSCALL 9BF667CE + /// 41 : OpCode.PUSH1 /// 42 : OpCode.PUSH1 - /// 43 : OpCode.PUSH1 - /// 44 : OpCode.NEWBUFFER - /// 45 : OpCode.TUCK - /// 46 : OpCode.PUSH0 - /// 47 : OpCode.ROT - /// 48 : OpCode.SETITEM - /// 49 : OpCode.SWAP - /// 4A : OpCode.PUSH2 - /// 4B : OpCode.PACK - /// 4C : OpCode.STLOC0 - /// 4D : OpCode.LDARG0 - /// 4E : OpCode.LDLOC0 - /// 4F : OpCode.UNPACK - /// 50 : OpCode.DROP - /// 51 : OpCode.REVERSE3 - /// 52 : OpCode.CAT - /// 53 : OpCode.SWAP - /// 54 : OpCode.SYSCALL 925DE831 - /// 59 : OpCode.DUP - /// 5A : OpCode.ISNULL - /// 5B : OpCode.JMPIFNOT 04 - /// 5D : OpCode.DROP - /// 5E : OpCode.PUSH0 - /// 5F : OpCode.CONVERT 21 - /// 61 : OpCode.RET + /// 43 : OpCode.NEWBUFFER + /// 44 : OpCode.TUCK + /// 45 : OpCode.PUSH0 + /// 46 : OpCode.ROT + /// 47 : OpCode.SETITEM + /// 48 : OpCode.SWAP + /// 49 : OpCode.PUSH2 + /// 4A : OpCode.PACK + /// 4B : OpCode.STLOC0 + /// 4C : OpCode.LDARG0 + /// 4D : OpCode.LDLOC0 + /// 4E : OpCode.UNPACK + /// 4F : OpCode.DROP + /// 50 : OpCode.REVERSE3 + /// 51 : OpCode.CAT + /// 52 : OpCode.SWAP + /// 53 : OpCode.SYSCALL 925DE831 + /// 58 : OpCode.DUP + /// 59 : OpCode.ISNULL + /// 5A : OpCode.JMPIFNOT 04 + /// 5C : OpCode.DROP + /// 5D : OpCode.PUSH0 + /// 5E : OpCode.CONVERT 21 + /// 60 : OpCode.RET /// [DisplayName("balanceOf")] public abstract BigInteger? BalanceOf(UInt160? owner); @@ -123,83 +122,79 @@ public abstract class Contract_SupportedStandard17Enum(Neo.SmartContract.Testing /// Unsafe method /// /// - /// Script: VwEEeHBoC5cmBQgiDXhK2ShQygAUs6uqJiQMVGhlIGFyZ3VtZW50ICJmcm9tIiBpcyBpbnZhbGlkLjp5cGgLlyYFCCINeUrZKFDKABSzq6omIgxUaGUgYXJndW1lbnQgInRvIiBpcyBpbnZhbGlkLjp6ELUmKgxUaGUgYW1vdW50IG11c3QgYmUgYSBwb3NpdGl2ZSBudW1iZXIuOnhB+CfsjKomBAlAehCYJhd6m3g1+P7//6omBAlAenk17P7//0V7enl4NAQIQA== + /// Script: VwEEeHBo2CYFCCINeErZKFDKABSzq6omJAxUaGUgYXJndW1lbnQgImZyb20iIGlzIGludmFsaWQuOnlwaNgmBQgiDXlK2ShQygAUs6uqJiIMVGhlIGFyZ3VtZW50ICJ0byIgaXMgaW52YWxpZC46ehC1JioMVGhlIGFtb3VudCBtdXN0IGJlIGEgcG9zaXRpdmUgbnVtYmVyLjp4Qfgn7IwkBAlAehCYJhZ6m3g1/P7//yQECUB6eTXx/v//RXt6eXg0BAhA /// 00 : OpCode.INITSLOT 0104 /// 03 : OpCode.LDARG0 /// 04 : OpCode.STLOC0 /// 05 : OpCode.LDLOC0 - /// 06 : OpCode.PUSHNULL - /// 07 : OpCode.EQUAL - /// 08 : OpCode.JMPIFNOT 05 - /// 0A : OpCode.PUSHT - /// 0B : OpCode.JMP 0D - /// 0D : OpCode.LDARG0 - /// 0E : OpCode.DUP - /// 0F : OpCode.ISTYPE 28 - /// 11 : OpCode.SWAP - /// 12 : OpCode.SIZE - /// 13 : OpCode.PUSHINT8 14 - /// 15 : OpCode.NUMEQUAL - /// 16 : OpCode.BOOLAND - /// 17 : OpCode.NOT - /// 18 : OpCode.JMPIFNOT 24 - /// 1A : OpCode.PUSHDATA1 54686520617267756D656E74202266726F6D2220697320696E76616C69642E - /// 3B : OpCode.THROW - /// 3C : OpCode.LDARG1 - /// 3D : OpCode.STLOC0 - /// 3E : OpCode.LDLOC0 - /// 3F : OpCode.PUSHNULL - /// 40 : OpCode.EQUAL - /// 41 : OpCode.JMPIFNOT 05 - /// 43 : OpCode.PUSHT - /// 44 : OpCode.JMP 0D - /// 46 : OpCode.LDARG1 - /// 47 : OpCode.DUP - /// 48 : OpCode.ISTYPE 28 - /// 4A : OpCode.SWAP - /// 4B : OpCode.SIZE - /// 4C : OpCode.PUSHINT8 14 - /// 4E : OpCode.NUMEQUAL - /// 4F : OpCode.BOOLAND - /// 50 : OpCode.NOT - /// 51 : OpCode.JMPIFNOT 22 - /// 53 : OpCode.PUSHDATA1 54686520617267756D656E742022746F2220697320696E76616C69642E - /// 72 : OpCode.THROW - /// 73 : OpCode.LDARG2 - /// 74 : OpCode.PUSH0 - /// 75 : OpCode.LT - /// 76 : OpCode.JMPIFNOT 2A - /// 78 : OpCode.PUSHDATA1 54686520616D6F756E74206D757374206265206120706F736974697665206E756D6265722E - /// 9F : OpCode.THROW - /// A0 : OpCode.LDARG0 - /// A1 : OpCode.SYSCALL F827EC8C - /// A6 : OpCode.NOT - /// A7 : OpCode.JMPIFNOT 04 - /// A9 : OpCode.PUSHF - /// AA : OpCode.RET - /// AB : OpCode.LDARG2 - /// AC : OpCode.PUSH0 - /// AD : OpCode.NOTEQUAL - /// AE : OpCode.JMPIFNOT 17 - /// B0 : OpCode.LDARG2 - /// B1 : OpCode.NEGATE - /// B2 : OpCode.LDARG0 - /// B3 : OpCode.CALL_L F8FEFFFF - /// B8 : OpCode.NOT - /// B9 : OpCode.JMPIFNOT 04 - /// BB : OpCode.PUSHF - /// BC : OpCode.RET - /// BD : OpCode.LDARG2 - /// BE : OpCode.LDARG1 - /// BF : OpCode.CALL_L ECFEFFFF - /// C4 : OpCode.DROP - /// C5 : OpCode.LDARG3 - /// C6 : OpCode.LDARG2 - /// C7 : OpCode.LDARG1 - /// C8 : OpCode.LDARG0 - /// C9 : OpCode.CALL 04 - /// CB : OpCode.PUSHT - /// CC : OpCode.RET + /// 06 : OpCode.ISNULL + /// 07 : OpCode.JMPIFNOT 05 + /// 09 : OpCode.PUSHT + /// 0A : OpCode.JMP 0D + /// 0C : OpCode.LDARG0 + /// 0D : OpCode.DUP + /// 0E : OpCode.ISTYPE 28 + /// 10 : OpCode.SWAP + /// 11 : OpCode.SIZE + /// 12 : OpCode.PUSHINT8 14 + /// 14 : OpCode.NUMEQUAL + /// 15 : OpCode.BOOLAND + /// 16 : OpCode.NOT + /// 17 : OpCode.JMPIFNOT 24 + /// 19 : OpCode.PUSHDATA1 54686520617267756D656E74202266726F6D2220697320696E76616C69642E + /// 3A : OpCode.THROW + /// 3B : OpCode.LDARG1 + /// 3C : OpCode.STLOC0 + /// 3D : OpCode.LDLOC0 + /// 3E : OpCode.ISNULL + /// 3F : OpCode.JMPIFNOT 05 + /// 41 : OpCode.PUSHT + /// 42 : OpCode.JMP 0D + /// 44 : OpCode.LDARG1 + /// 45 : OpCode.DUP + /// 46 : OpCode.ISTYPE 28 + /// 48 : OpCode.SWAP + /// 49 : OpCode.SIZE + /// 4A : OpCode.PUSHINT8 14 + /// 4C : OpCode.NUMEQUAL + /// 4D : OpCode.BOOLAND + /// 4E : OpCode.NOT + /// 4F : OpCode.JMPIFNOT 22 + /// 51 : OpCode.PUSHDATA1 54686520617267756D656E742022746F2220697320696E76616C69642E + /// 70 : OpCode.THROW + /// 71 : OpCode.LDARG2 + /// 72 : OpCode.PUSH0 + /// 73 : OpCode.LT + /// 74 : OpCode.JMPIFNOT 2A + /// 76 : OpCode.PUSHDATA1 54686520616D6F756E74206D757374206265206120706F736974697665206E756D6265722E + /// 9D : OpCode.THROW + /// 9E : OpCode.LDARG0 + /// 9F : OpCode.SYSCALL F827EC8C + /// A4 : OpCode.JMPIF 04 + /// A6 : OpCode.PUSHF + /// A7 : OpCode.RET + /// A8 : OpCode.LDARG2 + /// A9 : OpCode.PUSH0 + /// AA : OpCode.NOTEQUAL + /// AB : OpCode.JMPIFNOT 16 + /// AD : OpCode.LDARG2 + /// AE : OpCode.NEGATE + /// AF : OpCode.LDARG0 + /// B0 : OpCode.CALL_L FCFEFFFF + /// B5 : OpCode.JMPIF 04 + /// B7 : OpCode.PUSHF + /// B8 : OpCode.RET + /// B9 : OpCode.LDARG2 + /// BA : OpCode.LDARG1 + /// BB : OpCode.CALL_L F1FEFFFF + /// C0 : OpCode.DROP + /// C1 : OpCode.LDARG3 + /// C2 : OpCode.LDARG2 + /// C3 : OpCode.LDARG1 + /// C4 : OpCode.LDARG0 + /// C5 : OpCode.CALL 04 + /// C7 : OpCode.PUSHT + /// C8 : OpCode.RET /// [DisplayName("transfer")] public abstract bool? Transfer(UInt160? from, UInt160? to, BigInteger? amount, object? data = null); diff --git a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_UInt.cs b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_UInt.cs index bc81dc346..3c16b3a03 100644 --- a/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_UInt.cs +++ b/tests/Neo.SmartContract.Framework.UnitTests/TestingArtifacts/Contract_UInt.cs @@ -15,7 +15,7 @@ public abstract class Contract_UInt(Neo.SmartContract.Testing.SmartContractIniti /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHA7znO4OTpJcbCoGp54UQN2G/OrBFiYXNlNThDaGVja0VuY29kZQEAAQ8AAHBXAAF4NANAVwABeErZKFDKACCzqyQECUB4ELOqQFcAAXg0A0BXAAF4StkoUMoAFLOrJAQJQHgQs6pAVwABeBCzQFcAAXgQs0BXAAF4NANAVwABQUxJktx4NANAVwECEYhKEHnQcGh4i3Bo2yg3AABAaeV4IA==")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHA7znO4OTpJcbCoGp54UQN2G/OrBFiYXNlNThDaGVja0VuY29kZQEAAQ8AAHBXAAF4NANAVwABeErZKFDKACCzqyQECUB4saqqQFcAAXg0A0BXAAF4StkoUMoAFLOrJAQJQHixqqpAVwABeLGqQFcAAXixqkBXAAF4NANAVwABQUxJktx4NANAVwECEYhKEHnQcGh4i3Bo2yg3AABA66GeHw==")); #endregion @@ -51,11 +51,11 @@ public abstract class Contract_UInt(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwABeBCzQA== + /// Script: VwABeLGqQA== /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.LDARG0 - /// 04 : OpCode.PUSH0 - /// 05 : OpCode.NUMEQUAL + /// 04 : OpCode.NZ + /// 05 : OpCode.NOT /// 06 : OpCode.RET /// [DisplayName("isZeroUInt160")] @@ -65,11 +65,11 @@ public abstract class Contract_UInt(Neo.SmartContract.Testing.SmartContractIniti /// Unsafe method /// /// - /// Script: VwABeBCzQA== + /// Script: VwABeLGqQA== /// 00 : OpCode.INITSLOT 0001 /// 03 : OpCode.LDARG0 - /// 04 : OpCode.PUSH0 - /// 05 : OpCode.NUMEQUAL + /// 04 : OpCode.NZ + /// 05 : OpCode.NOT /// 06 : OpCode.RET /// [DisplayName("isZeroUInt256")] 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 75b4060d8..6a8cd3cb2 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 @@ -10,12 +10,12 @@ public abstract class Nep17ContractTemplate(Neo.SmartContract.Testing.SmartContr { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Nep17Contract"",""groups"":[],""features"":{},""supportedstandards"":[""NEP-17""],""abi"":{""methods"":[{""name"":""symbol"",""parameters"":[],""returntype"":""String"",""offset"":0,""safe"":true},{""name"":""decimals"",""parameters"":[],""returntype"":""Integer"",""offset"":10,""safe"":true},{""name"":""totalSupply"",""parameters"":[],""returntype"":""Integer"",""offset"":12,""safe"":true},{""name"":""balanceOf"",""parameters"":[{""name"":""owner"",""type"":""Hash160""}],""returntype"":""Integer"",""offset"":58,""safe"":true},{""name"":""transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""},{""name"":""data"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":241,""safe"":false},{""name"":""getOwner"",""parameters"":[],""returntype"":""Hash160"",""offset"":645,""safe"":true},{""name"":""setOwner"",""parameters"":[{""name"":""newOwner"",""type"":""Hash160""}],""returntype"":""Void"",""offset"":687,""safe"":false},{""name"":""burn"",""parameters"":[{""name"":""account"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""}],""returntype"":""Void"",""offset"":804,""safe"":false},{""name"":""mint"",""parameters"":[{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""}],""returntype"":""Void"",""offset"":841,""safe"":false},{""name"":""verify"",""parameters"":[],""returntype"":""Boolean"",""offset"":881,""safe"":true},{""name"":""myMethod"",""parameters"":[],""returntype"":""String"",""offset"":887,""safe"":false},{""name"":""_deploy"",""parameters"":[{""name"":""data"",""type"":""Any""},{""name"":""update"",""type"":""Boolean""}],""returntype"":""Void"",""offset"":905,""safe"":false},{""name"":""update"",""parameters"":[{""name"":""nefFile"",""type"":""ByteArray""},{""name"":""manifest"",""type"":""String""},{""name"":""data"",""type"":""Any""}],""returntype"":""Void"",""offset"":1023,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":1062,""safe"":false}],""events"":[{""name"":""Transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""}]},{""name"":""SetOwner"",""parameters"":[{""name"":""previousOwner"",""type"":""Hash160""},{""name"":""newOwner"",""type"":""Hash160""}]}]},""permissions"":[{""contract"":""*"",""methods"":""*""}],""trusts"":[],""extra"":{""Author"":""\u003CYour Name Or Company Here\u003E"",""Description"":""\u003CDescription Here\u003E"",""Version"":""\u003CVersion String Here\u003E"",""Sourcecode"":""https://github.com/neo-project/neo-devpack-dotnet/tree/master/src/Neo.SmartContract.Template/templates/neocontractnep17/Nep17Contract.cs"",""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Nep17Contract"",""groups"":[],""features"":{},""supportedstandards"":[""NEP-17""],""abi"":{""methods"":[{""name"":""symbol"",""parameters"":[],""returntype"":""String"",""offset"":0,""safe"":true},{""name"":""decimals"",""parameters"":[],""returntype"":""Integer"",""offset"":10,""safe"":true},{""name"":""totalSupply"",""parameters"":[],""returntype"":""Integer"",""offset"":12,""safe"":true},{""name"":""balanceOf"",""parameters"":[{""name"":""owner"",""type"":""Hash160""}],""returntype"":""Integer"",""offset"":58,""safe"":true},{""name"":""transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""},{""name"":""data"",""type"":""Any""}],""returntype"":""Boolean"",""offset"":239,""safe"":false},{""name"":""getOwner"",""parameters"":[],""returntype"":""Hash160"",""offset"":633,""safe"":true},{""name"":""setOwner"",""parameters"":[{""name"":""newOwner"",""type"":""Hash160""}],""returntype"":""Void"",""offset"":675,""safe"":false},{""name"":""burn"",""parameters"":[{""name"":""account"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""}],""returntype"":""Void"",""offset"":792,""safe"":false},{""name"":""mint"",""parameters"":[{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""}],""returntype"":""Void"",""offset"":829,""safe"":false},{""name"":""verify"",""parameters"":[],""returntype"":""Boolean"",""offset"":869,""safe"":true},{""name"":""myMethod"",""parameters"":[],""returntype"":""String"",""offset"":875,""safe"":false},{""name"":""_deploy"",""parameters"":[{""name"":""data"",""type"":""Any""},{""name"":""update"",""type"":""Boolean""}],""returntype"":""Void"",""offset"":893,""safe"":false},{""name"":""update"",""parameters"":[{""name"":""nefFile"",""type"":""ByteArray""},{""name"":""manifest"",""type"":""String""},{""name"":""data"",""type"":""Any""}],""returntype"":""Void"",""offset"":1010,""safe"":false},{""name"":""_initialize"",""parameters"":[],""returntype"":""Void"",""offset"":1049,""safe"":false}],""events"":[{""name"":""Transfer"",""parameters"":[{""name"":""from"",""type"":""Hash160""},{""name"":""to"",""type"":""Hash160""},{""name"":""amount"",""type"":""Integer""}]},{""name"":""SetOwner"",""parameters"":[{""name"":""previousOwner"",""type"":""Hash160""},{""name"":""newOwner"",""type"":""Hash160""}]}]},""permissions"":[{""contract"":""*"",""methods"":""*""}],""trusts"":[],""extra"":{""Author"":""\u003CYour Name Or Company Here\u003E"",""Description"":""\u003CDescription Here\u003E"",""Version"":""\u003CVersion String Here\u003E"",""Sourcecode"":""https://github.com/neo-project/neo-devpack-dotnet/tree/master/src/Neo.SmartContract.Template/templates/neocontractnep17/Nep17Contract.cs"",""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL9o/pDRupTKiWPxJfdrdtkN8n9/wtnZXRDb250cmFjdAEAAQ/9o/pDRupTKiWPxJfdrdtkN8n9/wZ1cGRhdGUDAAAPAAD9KQQMB0VYQU1QTEVAGEBY2CYXDAEAQfa0a+JBkl3oMUrYJgRFEEpgQFcAAXhgeAwBAEGb9mfOQeY/GIRAVwEBeHBoC5cmBQgiDXhK2ShQygAUs6uqJiUMIFRoZSBhcmd1bWVudCAib3duZXIiIGlzIGludmFsaWQuOkGb9mfOERGIThBR0FASwHB4aMFFU4tQQZJd6DFK2CYERRDbIUBXAgJBm/ZnzhERiE4QUdBQEsBweGjBRVOLUEGSXegxStgmBEUQ2yFxaXmecWkQtSYECUBpELMmEHhowUVTi1BBL1jF7SIPaXhowUVTi1BB5j8YhAhAVwEEeHBoC5cmBQgiDXhK2ShQygAUs6uqJiQMH1RoZSBhcmd1bWVudCAiZnJvbSIgaXMgaW52YWxpZC46eXBoC5cmBQgiDXlK2ShQygAUs6uqJiIMHVRoZSBhcmd1bWVudCAidG8iIGlzIGludmFsaWQuOnoQtSYqDCVUaGUgYW1vdW50IG11c3QgYmUgYSBwb3NpdGl2ZSBudW1iZXIuOnhB+CfsjKomBAlAehCYJhd6m3g1+P7//6omBAlAenk17P7//0V7enl4NAQIQFcBBHp5eBPADAhUcmFuc2ZlckGVAW9heXBoC5eqJAUJIgt5NwAAcGgLl6omH3t6eBPAHwwOb25ORVAxN1BheW1lbnR5QWJ9W1JFQFcAAnmZELUmCwwGYW1vdW50OnkQsyYDQHl4NXn+//9FNeP9//95nko19f3//0ULeXgLNINAVwACeZkQtSYLDAZhbW91bnQ6eRCzJgNAeZt4NUP+//+qJg4MCWV4Y2VwdGlvbjo1n/3//3mfSjWx/f//RQt5C3g1P////0AMAf/bMDQOStgkCUrKABQoAzpAVwABeEH2tGviQZJd6DFANN5B+CfsjEBXAQE09QmXJhYMEU5vIEF1dGhvcml6YXRpb24hOnhK2ShQygAUs6skBQkiBngQs6oME293bmVyIG11c3QgYmUgdmFsaWThNJBweAwB/9swNBZ4aBLADAhTZXRPd25lckGVAW9hQFcAAnl4QZv2Z85B5j8YhEBXAAI0gAmXJhYMEU5vIEF1dGhvcml6YXRpb24hOnl4Nfv+//9AVwACNVv///8JlyYWDBFObyBBdXRob3JpemF0aW9uITp5eDWe/v//QDU2////QAwFSGVsbG9Bm/ZnzkGSXegxQFcBAnkmA0B4cGgLlyYKQS1RCDATzoB4cGhK2ShQygAUs6skBQkiBmgQs6oMEW93bmVyIG11c3QgZXhpc3Rz4WgMAf/bMDVG////aAsSwAwIU2V0T3duZXJBlQFvYQwFV29ybGQMBUhlbGxvQZv2Z85B5j8YhEBXAAM1pf7//wmXJhYMEU5vIGF1dGhvcml6YXRpb24uOnp5eDcBAEBWAUCUhRP2")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL9o/pDRupTKiWPxJfdrdtkN8n9/wtnZXRDb250cmFjdAEAAQ/9o/pDRupTKiWPxJfdrdtkN8n9/wZ1cGRhdGUDAAAPAAD9HAQMB0VYQU1QTEVAGEBY2CYXDAEAQfa0a+JBkl3oMUrYJgRFEEpgQFcAAXhgeAwBAEGb9mfOQeY/GIRAVwEBeHBo2CYFCCINeErZKFDKABSzq6omJQwgVGhlIGFyZ3VtZW50ICJvd25lciIgaXMgaW52YWxpZC46QZv2Z84REYhOEFHQUBLAcHhowUVTi1BBkl3oMUrYJgRFENshQFcCAkGb9mfOERGIThBR0FASwHB4aMFFU4tQQZJd6DFK2CYERRDbIXFpeZ5xaRC1JgQJQGmxJBB4aMFFU4tQQS9Yxe0iD2l4aMFFU4tQQeY/GIQIQFcBBHhwaNgmBQgiDXhK2ShQygAUs6uqJiQMH1RoZSBhcmd1bWVudCAiZnJvbSIgaXMgaW52YWxpZC46eXBo2CYFCCINeUrZKFDKABSzq6omIgwdVGhlIGFyZ3VtZW50ICJ0byIgaXMgaW52YWxpZC46ehC1JioMJVRoZSBhbW91bnQgbXVzdCBiZSBhIHBvc2l0aXZlIG51bWJlci46eEH4J+yMJAQJQHoQmCYWept4Nfz+//8kBAlAenk18f7//0V7enl4NAQIQFcBBHp5eBPADAhUcmFuc2ZlckGVAW9heXBo2CYFCSIKeTcAAHBo2KomH3t6eBPAHwwOb25ORVAxN1BheW1lbnR5QWJ9W1JFQFcAAnmZELUmCwwGYW1vdW50OnmxJANAeXg1gv7//0U17f3//3meSjX//f//RQt5eAs0h0BXAAJ5mRC1JgsMBmFtb3VudDp5sSQDQHmbeDVN/v//JA4MCWV4Y2VwdGlvbjo1q/3//3mfSjW9/f//RQt5C3g1Rf///0AMAf/bMDQOStgkCUrKABQoAzpAVwABeEH2tGviQZJd6DFANN5B+CfsjEBXAQE09QmXJhYMEU5vIEF1dGhvcml6YXRpb24hOnhK2ShQygAUs6skBQkiBnixqqoME293bmVyIG11c3QgYmUgdmFsaWThNJBweAwB/9swNBZ4aBLADAhTZXRPd25lckGVAW9hQFcAAnl4QZv2Z85B5j8YhEBXAAI0gAmXJhYMEU5vIEF1dGhvcml6YXRpb24hOnl4Nf3+//9AVwACNVv///8JlyYWDBFObyBBdXRob3JpemF0aW9uITp5eDWh/v//QDU2////QAwFSGVsbG9Bm/ZnzkGSXegxQFcBAnkmA0B4cGjYJgpBLVEIMBPOgHhwaErZKFDKABSzqyQFCSIGaLGqqgwRb3duZXIgbXVzdCBleGlzdHPhaAwB/9swNUf///9oCxLADAhTZXRPd25lckGVAW9hDAVXb3JsZAwFSGVsbG9Bm/ZnzkHmPxiEQFcAAzWm/v//CZcmFgwRTm8gYXV0aG9yaXphdGlvbi46enl4NwEAQFYBQNPNKS8=")); #endregion @@ -64,55 +64,54 @@ public abstract class Nep17ContractTemplate(Neo.SmartContract.Testing.SmartContr /// Safe method /// /// - /// Script: VwEBeHBoC5cmBQgiDXhK2ShQygAUs6uqJiUMVGhlIGFyZ3VtZW50ICJvd25lciIgaXMgaW52YWxpZC46QZv2Z84REYhOEFHQUBLAcHhowUVTi1BBkl3oMUrYJgRFENshQA== + /// Script: VwEBeHBo2CYFCCINeErZKFDKABSzq6omJQxUaGUgYXJndW1lbnQgIm93bmVyIiBpcyBpbnZhbGlkLjpBm/ZnzhERiE4QUdBQEsBweGjBRVOLUEGSXegxStgmBEUQ2yFA /// 00 : OpCode.INITSLOT 0101 /// 03 : OpCode.LDARG0 /// 04 : OpCode.STLOC0 /// 05 : OpCode.LDLOC0 - /// 06 : OpCode.PUSHNULL - /// 07 : OpCode.EQUAL - /// 08 : OpCode.JMPIFNOT 05 - /// 0A : OpCode.PUSHT - /// 0B : OpCode.JMP 0D - /// 0D : OpCode.LDARG0 - /// 0E : OpCode.DUP - /// 0F : OpCode.ISTYPE 28 - /// 11 : OpCode.SWAP - /// 12 : OpCode.SIZE - /// 13 : OpCode.PUSHINT8 14 - /// 15 : OpCode.NUMEQUAL - /// 16 : OpCode.BOOLAND - /// 17 : OpCode.NOT - /// 18 : OpCode.JMPIFNOT 25 - /// 1A : OpCode.PUSHDATA1 54686520617267756D656E7420226F776E65722220697320696E76616C69642E - /// 3C : OpCode.THROW - /// 3D : OpCode.SYSCALL 9BF667CE + /// 06 : OpCode.ISNULL + /// 07 : OpCode.JMPIFNOT 05 + /// 09 : OpCode.PUSHT + /// 0A : OpCode.JMP 0D + /// 0C : OpCode.LDARG0 + /// 0D : OpCode.DUP + /// 0E : OpCode.ISTYPE 28 + /// 10 : OpCode.SWAP + /// 11 : OpCode.SIZE + /// 12 : OpCode.PUSHINT8 14 + /// 14 : OpCode.NUMEQUAL + /// 15 : OpCode.BOOLAND + /// 16 : OpCode.NOT + /// 17 : OpCode.JMPIFNOT 25 + /// 19 : OpCode.PUSHDATA1 54686520617267756D656E7420226F776E65722220697320696E76616C69642E + /// 3B : OpCode.THROW + /// 3C : OpCode.SYSCALL 9BF667CE + /// 41 : OpCode.PUSH1 /// 42 : OpCode.PUSH1 - /// 43 : OpCode.PUSH1 - /// 44 : OpCode.NEWBUFFER - /// 45 : OpCode.TUCK - /// 46 : OpCode.PUSH0 - /// 47 : OpCode.ROT - /// 48 : OpCode.SETITEM - /// 49 : OpCode.SWAP - /// 4A : OpCode.PUSH2 - /// 4B : OpCode.PACK - /// 4C : OpCode.STLOC0 - /// 4D : OpCode.LDARG0 - /// 4E : OpCode.LDLOC0 - /// 4F : OpCode.UNPACK - /// 50 : OpCode.DROP - /// 51 : OpCode.REVERSE3 - /// 52 : OpCode.CAT - /// 53 : OpCode.SWAP - /// 54 : OpCode.SYSCALL 925DE831 - /// 59 : OpCode.DUP - /// 5A : OpCode.ISNULL - /// 5B : OpCode.JMPIFNOT 04 - /// 5D : OpCode.DROP - /// 5E : OpCode.PUSH0 - /// 5F : OpCode.CONVERT 21 - /// 61 : OpCode.RET + /// 43 : OpCode.NEWBUFFER + /// 44 : OpCode.TUCK + /// 45 : OpCode.PUSH0 + /// 46 : OpCode.ROT + /// 47 : OpCode.SETITEM + /// 48 : OpCode.SWAP + /// 49 : OpCode.PUSH2 + /// 4A : OpCode.PACK + /// 4B : OpCode.STLOC0 + /// 4C : OpCode.LDARG0 + /// 4D : OpCode.LDLOC0 + /// 4E : OpCode.UNPACK + /// 4F : OpCode.DROP + /// 50 : OpCode.REVERSE3 + /// 51 : OpCode.CAT + /// 52 : OpCode.SWAP + /// 53 : OpCode.SYSCALL 925DE831 + /// 58 : OpCode.DUP + /// 59 : OpCode.ISNULL + /// 5A : OpCode.JMPIFNOT 04 + /// 5C : OpCode.DROP + /// 5D : OpCode.PUSH0 + /// 5E : OpCode.CONVERT 21 + /// 60 : OpCode.RET /// [DisplayName("balanceOf")] public abstract BigInteger? BalanceOf(UInt160? owner); @@ -125,7 +124,7 @@ public abstract class Nep17ContractTemplate(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACNIAJlyYWDE5vIEF1dGhvcml6YXRpb24hOnl4Nfv+//9A + /// Script: VwACNIAJlyYWDE5vIEF1dGhvcml6YXRpb24hOnl4Nf3+//9A /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.CALL 80 /// 05 : OpCode.PUSHF @@ -135,7 +134,7 @@ public abstract class Nep17ContractTemplate(Neo.SmartContract.Testing.SmartContr /// 1C : OpCode.THROW /// 1D : OpCode.LDARG1 /// 1E : OpCode.LDARG0 - /// 1F : OpCode.CALL_L FBFEFFFF + /// 1F : OpCode.CALL_L FDFEFFFF /// 24 : OpCode.RET /// [DisplayName("burn")] @@ -145,7 +144,7 @@ public abstract class Nep17ContractTemplate(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwACNVv///8JlyYWDE5vIEF1dGhvcml6YXRpb24hOnl4NZ7+//9A + /// Script: VwACNVv///8JlyYWDE5vIEF1dGhvcml6YXRpb24hOnl4NaH+//9A /// 00 : OpCode.INITSLOT 0002 /// 03 : OpCode.CALL_L 5BFFFFFF /// 08 : OpCode.PUSHF @@ -155,7 +154,7 @@ public abstract class Nep17ContractTemplate(Neo.SmartContract.Testing.SmartContr /// 1F : OpCode.THROW /// 20 : OpCode.LDARG1 /// 21 : OpCode.LDARG0 - /// 22 : OpCode.CALL_L 9EFEFFFF + /// 22 : OpCode.CALL_L A1FEFFFF /// 27 : OpCode.RET /// [DisplayName("mint")] @@ -178,83 +177,79 @@ public abstract class Nep17ContractTemplate(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwEEeHBoC5cmBQgiDXhK2ShQygAUs6uqJiQMVGhlIGFyZ3VtZW50ICJmcm9tIiBpcyBpbnZhbGlkLjp5cGgLlyYFCCINeUrZKFDKABSzq6omIgxUaGUgYXJndW1lbnQgInRvIiBpcyBpbnZhbGlkLjp6ELUmKgxUaGUgYW1vdW50IG11c3QgYmUgYSBwb3NpdGl2ZSBudW1iZXIuOnhB+CfsjKomBAlAehCYJhd6m3g1+P7//6omBAlAenk17P7//0V7enl4NAQIQA== + /// Script: VwEEeHBo2CYFCCINeErZKFDKABSzq6omJAxUaGUgYXJndW1lbnQgImZyb20iIGlzIGludmFsaWQuOnlwaNgmBQgiDXlK2ShQygAUs6uqJiIMVGhlIGFyZ3VtZW50ICJ0byIgaXMgaW52YWxpZC46ehC1JioMVGhlIGFtb3VudCBtdXN0IGJlIGEgcG9zaXRpdmUgbnVtYmVyLjp4Qfgn7IwkBAlAehCYJhZ6m3g1/P7//yQECUB6eTXx/v//RXt6eXg0BAhA /// 00 : OpCode.INITSLOT 0104 /// 03 : OpCode.LDARG0 /// 04 : OpCode.STLOC0 /// 05 : OpCode.LDLOC0 - /// 06 : OpCode.PUSHNULL - /// 07 : OpCode.EQUAL - /// 08 : OpCode.JMPIFNOT 05 - /// 0A : OpCode.PUSHT - /// 0B : OpCode.JMP 0D - /// 0D : OpCode.LDARG0 - /// 0E : OpCode.DUP - /// 0F : OpCode.ISTYPE 28 - /// 11 : OpCode.SWAP - /// 12 : OpCode.SIZE - /// 13 : OpCode.PUSHINT8 14 - /// 15 : OpCode.NUMEQUAL - /// 16 : OpCode.BOOLAND - /// 17 : OpCode.NOT - /// 18 : OpCode.JMPIFNOT 24 - /// 1A : OpCode.PUSHDATA1 54686520617267756D656E74202266726F6D2220697320696E76616C69642E - /// 3B : OpCode.THROW - /// 3C : OpCode.LDARG1 - /// 3D : OpCode.STLOC0 - /// 3E : OpCode.LDLOC0 - /// 3F : OpCode.PUSHNULL - /// 40 : OpCode.EQUAL - /// 41 : OpCode.JMPIFNOT 05 - /// 43 : OpCode.PUSHT - /// 44 : OpCode.JMP 0D - /// 46 : OpCode.LDARG1 - /// 47 : OpCode.DUP - /// 48 : OpCode.ISTYPE 28 - /// 4A : OpCode.SWAP - /// 4B : OpCode.SIZE - /// 4C : OpCode.PUSHINT8 14 - /// 4E : OpCode.NUMEQUAL - /// 4F : OpCode.BOOLAND - /// 50 : OpCode.NOT - /// 51 : OpCode.JMPIFNOT 22 - /// 53 : OpCode.PUSHDATA1 54686520617267756D656E742022746F2220697320696E76616C69642E - /// 72 : OpCode.THROW - /// 73 : OpCode.LDARG2 - /// 74 : OpCode.PUSH0 - /// 75 : OpCode.LT - /// 76 : OpCode.JMPIFNOT 2A - /// 78 : OpCode.PUSHDATA1 54686520616D6F756E74206D757374206265206120706F736974697665206E756D6265722E - /// 9F : OpCode.THROW - /// A0 : OpCode.LDARG0 - /// A1 : OpCode.SYSCALL F827EC8C - /// A6 : OpCode.NOT - /// A7 : OpCode.JMPIFNOT 04 - /// A9 : OpCode.PUSHF - /// AA : OpCode.RET - /// AB : OpCode.LDARG2 - /// AC : OpCode.PUSH0 - /// AD : OpCode.NOTEQUAL - /// AE : OpCode.JMPIFNOT 17 - /// B0 : OpCode.LDARG2 - /// B1 : OpCode.NEGATE - /// B2 : OpCode.LDARG0 - /// B3 : OpCode.CALL_L F8FEFFFF - /// B8 : OpCode.NOT - /// B9 : OpCode.JMPIFNOT 04 - /// BB : OpCode.PUSHF - /// BC : OpCode.RET - /// BD : OpCode.LDARG2 - /// BE : OpCode.LDARG1 - /// BF : OpCode.CALL_L ECFEFFFF - /// C4 : OpCode.DROP - /// C5 : OpCode.LDARG3 - /// C6 : OpCode.LDARG2 - /// C7 : OpCode.LDARG1 - /// C8 : OpCode.LDARG0 - /// C9 : OpCode.CALL 04 - /// CB : OpCode.PUSHT - /// CC : OpCode.RET + /// 06 : OpCode.ISNULL + /// 07 : OpCode.JMPIFNOT 05 + /// 09 : OpCode.PUSHT + /// 0A : OpCode.JMP 0D + /// 0C : OpCode.LDARG0 + /// 0D : OpCode.DUP + /// 0E : OpCode.ISTYPE 28 + /// 10 : OpCode.SWAP + /// 11 : OpCode.SIZE + /// 12 : OpCode.PUSHINT8 14 + /// 14 : OpCode.NUMEQUAL + /// 15 : OpCode.BOOLAND + /// 16 : OpCode.NOT + /// 17 : OpCode.JMPIFNOT 24 + /// 19 : OpCode.PUSHDATA1 54686520617267756D656E74202266726F6D2220697320696E76616C69642E + /// 3A : OpCode.THROW + /// 3B : OpCode.LDARG1 + /// 3C : OpCode.STLOC0 + /// 3D : OpCode.LDLOC0 + /// 3E : OpCode.ISNULL + /// 3F : OpCode.JMPIFNOT 05 + /// 41 : OpCode.PUSHT + /// 42 : OpCode.JMP 0D + /// 44 : OpCode.LDARG1 + /// 45 : OpCode.DUP + /// 46 : OpCode.ISTYPE 28 + /// 48 : OpCode.SWAP + /// 49 : OpCode.SIZE + /// 4A : OpCode.PUSHINT8 14 + /// 4C : OpCode.NUMEQUAL + /// 4D : OpCode.BOOLAND + /// 4E : OpCode.NOT + /// 4F : OpCode.JMPIFNOT 22 + /// 51 : OpCode.PUSHDATA1 54686520617267756D656E742022746F2220697320696E76616C69642E + /// 70 : OpCode.THROW + /// 71 : OpCode.LDARG2 + /// 72 : OpCode.PUSH0 + /// 73 : OpCode.LT + /// 74 : OpCode.JMPIFNOT 2A + /// 76 : OpCode.PUSHDATA1 54686520616D6F756E74206D757374206265206120706F736974697665206E756D6265722E + /// 9D : OpCode.THROW + /// 9E : OpCode.LDARG0 + /// 9F : OpCode.SYSCALL F827EC8C + /// A4 : OpCode.JMPIF 04 + /// A6 : OpCode.PUSHF + /// A7 : OpCode.RET + /// A8 : OpCode.LDARG2 + /// A9 : OpCode.PUSH0 + /// AA : OpCode.NOTEQUAL + /// AB : OpCode.JMPIFNOT 16 + /// AD : OpCode.LDARG2 + /// AE : OpCode.NEGATE + /// AF : OpCode.LDARG0 + /// B0 : OpCode.CALL_L FCFEFFFF + /// B5 : OpCode.JMPIF 04 + /// B7 : OpCode.PUSHF + /// B8 : OpCode.RET + /// B9 : OpCode.LDARG2 + /// BA : OpCode.LDARG1 + /// BB : OpCode.CALL_L F1FEFFFF + /// C0 : OpCode.DROP + /// C1 : OpCode.LDARG3 + /// C2 : OpCode.LDARG2 + /// C3 : OpCode.LDARG1 + /// C4 : OpCode.LDARG0 + /// C5 : OpCode.CALL 04 + /// C7 : OpCode.PUSHT + /// C8 : OpCode.RET /// [DisplayName("transfer")] public abstract bool? Transfer(UInt160? from, UInt160? to, BigInteger? amount, object? data = null); @@ -263,9 +258,9 @@ public abstract class Nep17ContractTemplate(Neo.SmartContract.Testing.SmartContr /// Unsafe method /// /// - /// Script: VwADNaX+//8JlyYWDE5vIGF1dGhvcml6YXRpb24uOnp5eDcBAEA= + /// Script: VwADNab+//8JlyYWDE5vIGF1dGhvcml6YXRpb24uOnp5eDcBAEA= /// 00 : OpCode.INITSLOT 0003 - /// 03 : OpCode.CALL_L A5FEFFFF + /// 03 : OpCode.CALL_L A6FEFFFF /// 08 : OpCode.PUSHF /// 09 : OpCode.EQUAL /// 0A : OpCode.JMPIFNOT 16 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 de391f79e..7c83bdc88 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 @@ -10,12 +10,12 @@ public abstract class OwnableTemplate(Neo.SmartContract.Testing.SmartContractIni { #region Compiled data - public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Ownable"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""getOwner"",""parameters"":[],""returntype"":""Hash160"",""offset"":0,""safe"":true},{""name"":""setOwner"",""parameters"":[{""name"":""newOwner"",""type"":""Hash160""}],""returntype"":""Void"",""offset"":42,""safe"":false},{""name"":""myMethod"",""parameters"":[],""returntype"":""String"",""offset"":159,""safe"":false},{""name"":""_deploy"",""parameters"":[{""name"":""data"",""type"":""Any""},{""name"":""update"",""type"":""Boolean""}],""returntype"":""Void"",""offset"":177,""safe"":false},{""name"":""update"",""parameters"":[{""name"":""nefFile"",""type"":""ByteArray""},{""name"":""manifest"",""type"":""String""},{""name"":""data"",""type"":""Any""}],""returntype"":""Void"",""offset"":292,""safe"":false},{""name"":""destroy"",""parameters"":[],""returntype"":""Void"",""offset"":331,""safe"":false}],""events"":[{""name"":""SetOwner"",""parameters"":[{""name"":""previousOwner"",""type"":""Hash160""},{""name"":""newOwner"",""type"":""Hash160""}]}]},""permissions"":[{""contract"":""*"",""methods"":""*""}],""trusts"":[],""extra"":{""Author"":""\u003CYour Name Or Company Here\u003E"",""Description"":""\u003CDescription Here\u003E"",""Version"":""\u003CVersion String Here\u003E"",""Sourcecode"":""https://github.com/neo-project/neo-devpack-dotnet/tree/master/src/Neo.SmartContract.Template/templates/neocontractowner/Ownable.cs"",""nef"":{""optimization"":""All""}}}"); + public static Neo.SmartContract.Manifest.ContractManifest Manifest => Neo.SmartContract.Manifest.ContractManifest.Parse(@"{""name"":""Ownable"",""groups"":[],""features"":{},""supportedstandards"":[],""abi"":{""methods"":[{""name"":""getOwner"",""parameters"":[],""returntype"":""Hash160"",""offset"":0,""safe"":true},{""name"":""setOwner"",""parameters"":[{""name"":""newOwner"",""type"":""Hash160""}],""returntype"":""Void"",""offset"":42,""safe"":false},{""name"":""myMethod"",""parameters"":[],""returntype"":""String"",""offset"":159,""safe"":false},{""name"":""_deploy"",""parameters"":[{""name"":""data"",""type"":""Any""},{""name"":""update"",""type"":""Boolean""}],""returntype"":""Void"",""offset"":177,""safe"":false},{""name"":""update"",""parameters"":[{""name"":""nefFile"",""type"":""ByteArray""},{""name"":""manifest"",""type"":""String""},{""name"":""data"",""type"":""Any""}],""returntype"":""Void"",""offset"":291,""safe"":false},{""name"":""destroy"",""parameters"":[],""returntype"":""Void"",""offset"":330,""safe"":false}],""events"":[{""name"":""SetOwner"",""parameters"":[{""name"":""previousOwner"",""type"":""Hash160""},{""name"":""newOwner"",""type"":""Hash160""}]}]},""permissions"":[{""contract"":""*"",""methods"":""*""}],""trusts"":[],""extra"":{""Author"":""\u003CYour Name Or Company Here\u003E"",""Description"":""\u003CDescription Here\u003E"",""Version"":""\u003CVersion String Here\u003E"",""Sourcecode"":""https://github.com/neo-project/neo-devpack-dotnet/tree/master/src/Neo.SmartContract.Template/templates/neocontractowner/Ownable.cs"",""nef"":{""optimization"":""All""}}}"); /// /// Optimization: "All" /// - public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL9o/pDRupTKiWPxJfdrdtkN8n9/wZ1cGRhdGUDAAAP/aP6Q0bqUyolj8SX3a3bZDfJ/f8HZGVzdHJveQAAAA8AAP1rAQwB/9swNA5K2CQJSsoAFCgDOkBXAAF4Qfa0a+JBkl3oMUA03kH4J+yMQFcBATT1CZcmFgwRTm8gQXV0aG9yaXphdGlvbiE6eErZKFDKABSzqyQFCSIGeBCzqgwTb3duZXIgbXVzdCBiZSB2YWxpZOE0kHB4DAH/2zA0FnhoEsAMCFNldE93bmVyQZUBb2FAVwACeXhBm/ZnzkHmPxiEQAwFSGVsbG9Bm/ZnzkGSXegxQFcBAnkmA0B4cGgLlyYKQS1RCDATzoB4cGhK2ShQygAUs6skBQkiBmgQs6oMEW93bmVyIG11c3QgZXhpc3Rz4WgMAf/bMDSZaAsSwAwIU2V0T3duZXJBlQFvYQwFV29ybGQMBUhlbGxvQZv2Z85B5j8YhEBXAAM1+/7//wmXJhYMEU5vIGF1dGhvcml6YXRpb24uOnp5eDcAAEA11/7//6omFgwRTm8gYXV0aG9yaXphdGlvbi46NwEAQACjrPU=")); + public static Neo.SmartContract.NefFile Nef => Neo.IO.Helper.AsSerializable(Convert.FromBase64String(@"TkVGM1Rlc3RpbmdFbmdpbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL9o/pDRupTKiWPxJfdrdtkN8n9/wZ1cGRhdGUDAAAP/aP6Q0bqUyolj8SX3a3bZDfJ/f8HZGVzdHJveQAAAA8AAP1pAQwB/9swNA5K2CQJSsoAFCgDOkBXAAF4Qfa0a+JBkl3oMUA03kH4J+yMQFcBATT1CZcmFgwRTm8gQXV0aG9yaXphdGlvbiE6eErZKFDKABSzqyQFCSIGeLGqqgwTb3duZXIgbXVzdCBiZSB2YWxpZOE0kHB4DAH/2zA0FnhoEsAMCFNldE93bmVyQZUBb2FAVwACeXhBm/ZnzkHmPxiEQAwFSGVsbG9Bm/ZnzkGSXegxQFcBAnkmA0B4cGjYJgpBLVEIMBPOgHhwaErZKFDKABSzqyQFCSIGaLGqqgwRb3duZXIgbXVzdCBleGlzdHPhaAwB/9swNJpoCxLADAhTZXRPd25lckGVAW9hDAVXb3JsZAwFSGVsbG9Bm/ZnzkHmPxiEQFcAAzX8/v//CZcmFgwRTm8gYXV0aG9yaXphdGlvbi46enl4NwAAQDXY/v//JBYMEU5vIGF1dGhvcml6YXRpb24uOjcBAEDdHiU9")); #endregion @@ -41,14 +41,13 @@ public abstract class OwnableTemplate(Neo.SmartContract.Testing.SmartContractIni /// Unsafe method /// /// - /// Script: Ndf+//+qJhYMTm8gYXV0aG9yaXphdGlvbi46NwEAQA== - /// 00 : OpCode.CALL_L D7FEFFFF - /// 05 : OpCode.NOT - /// 06 : OpCode.JMPIFNOT 16 - /// 08 : OpCode.PUSHDATA1 4E6F20617574686F72697A6174696F6E2E - /// 1B : OpCode.THROW - /// 1C : OpCode.CALLT 0100 - /// 1F : OpCode.RET + /// Script: Ndj+//8kFgxObyBhdXRob3JpemF0aW9uLjo3AQBA + /// 00 : OpCode.CALL_L D8FEFFFF + /// 05 : OpCode.JMPIF 16 + /// 07 : OpCode.PUSHDATA1 4E6F20617574686F72697A6174696F6E2E + /// 1A : OpCode.THROW + /// 1B : OpCode.CALLT 0100 + /// 1E : OpCode.RET /// [DisplayName("destroy")] public abstract void Destroy(); @@ -70,9 +69,9 @@ public abstract class OwnableTemplate(Neo.SmartContract.Testing.SmartContractIni /// Unsafe method /// /// - /// Script: VwADNfv+//8JlyYWDE5vIGF1dGhvcml6YXRpb24uOnp5eDcAAEA= + /// Script: VwADNfz+//8JlyYWDE5vIGF1dGhvcml6YXRpb24uOnp5eDcAAEA= /// 00 : OpCode.INITSLOT 0003 - /// 03 : OpCode.CALL_L FBFEFFFF + /// 03 : OpCode.CALL_L FCFEFFFF /// 08 : OpCode.PUSHF /// 09 : OpCode.EQUAL /// 0A : OpCode.JMPIFNOT 16