Commit 83e6095
Update neo (#1285)
* Update neo
* update neo
* Revert some of them
* Fix
* Fix ut
---------
Co-authored-by: Jimmy <[email protected]>1 parent 465637f commit 83e6095
File tree
10 files changed
+49
-55
lines changed- src
- Neo.Compiler.CSharp/MethodConvert/System
- Neo.SmartContract.Testing
- tests
- Neo.Compiler.CSharp.TestContracts
- Contract_SecurityAnalyzer
- Neo.SmartContract.Framework.TestContracts
- Neo.SmartContract.Framework.UnitTests/Services
- Neo.SmartContract.Testing.UnitTests/Coverage
10 files changed
+49
-55
lines changed- .devcontainer/devcontainer.dockerfile+1-1
- benchmarks/Directory.Build.props+4
- benchmarks/Neo.Benchmarks/Persistence/Bechmarks_LevelDB.cs+59
- benchmarks/Neo.Benchmarks/Program.cs+1
- benchmarks/Neo.Json.Benchmarks/Benchmark_JsonDeserialize.cs+38-46
- benchmarks/Neo.Json.Benchmarks/Benchmark_OrderedDictionary.cs+1-7
- benchmarks/Neo.Json.Benchmarks/Neo.Json.Benchmarks.csproj-1
- benchmarks/Neo.Json.Benchmarks/Program.cs+2-2
- global.json+1-1
- src/Directory.Build.props+3
- src/Neo.CLI/CLI/MainService.cs+3-3
- src/Neo.Extensions/ByteExtensions.cs+5-5
- src/Neo.Extensions/Collections/CollectionExtensions.cs+1-1
- src/Neo.Extensions/StringExtensions.cs+3-1
- src/Neo.VM/JumpTable/JumpTable.Splice.cs+1-1
- src/Neo/Cryptography/Ed25519.cs+99
- src/Neo/Hardfork.cs+2-1
- src/Neo/Neo.csproj+2
- src/Neo/Persistence/IReadOnlyStore.cs+7-4
- src/Neo/Persistence/MemorySnapshot.cs+4-3
- src/Neo/Persistence/MemoryStore.cs+6-7
- src/Neo/ProtocolSettings.cs+59-7
- src/Neo/SmartContract/ApplicationEngine.cs+37-1
- src/Neo/SmartContract/Contract.cs+1-1
- src/Neo/SmartContract/Native/ContractMethodAttribute.cs+2-1
- src/Neo/SmartContract/Native/ContractMethodMetadata.cs+2-1
- src/Neo/SmartContract/Native/CryptoLib.cs+31
- src/Neo/SmartContract/Native/FungibleToken.cs+1-1
- src/Neo/SmartContract/Native/NativeContract.cs+18-11
- src/Neo/SmartContract/Native/NeoToken.cs+48-4
- src/Neo/SmartContract/Native/RoleManagement.cs+21-2
- src/Neo/SmartContract/Native/StdLib.cs+23
- src/Plugins/LevelDBStore/IO/Data/LevelDB/DB.cs+2-4
- src/Plugins/LevelDBStore/IO/Data/LevelDB/Helper.cs+8-6
- src/Plugins/LevelDBStore/IO/Data/LevelDB/Iterator.cs+2-2
- src/Plugins/LevelDBStore/IO/Data/LevelDB/Native.cs+19-4
- src/Plugins/LevelDBStore/LevelDBStore.csproj+1
- src/Plugins/LevelDBStore/Plugins/Storage/Snapshot.cs+20-10
- src/Plugins/LevelDBStore/Plugins/Storage/Store.cs+4-3
- src/Plugins/RocksDBStore/Plugins/Storage/Options.cs+3-3
- src/Plugins/RocksDBStore/Plugins/Storage/Snapshot.cs+36-23
- src/Plugins/RocksDBStore/Plugins/Storage/Store.cs+16-15
- src/Plugins/RocksDBStore/RocksDBStore.csproj+1
- src/Plugins/RpcServer/Result.cs+7-5
- src/Plugins/StatelessBlock/StatelessBlock.cs
- src/Plugins/StatelessBlock/StatelessBlock.csproj
- tests/Directory.Build.props+4-2
- tests/Neo.Cryptography.MPTTrie.Tests/Cryptography/MPTTrie/UT_Node.cs+4-2
- tests/Neo.Cryptography.MPTTrie.Tests/Cryptography/MPTTrie/UT_Trie.cs+2-2
- tests/Neo.Extensions.Tests/Collections/UT_CollectionExtensions.cs-1
- tests/Neo.Extensions.Tests/Collections/UT_HashSetExtensions.cs+1-2
- tests/Neo.Extensions.Tests/UT_ByteArrayComparer.cs+1-2
- tests/Neo.Extensions.Tests/UT_ByteExtensions.cs+2-3
- tests/Neo.Extensions.Tests/UT_StringExtensions.cs+2-5
- tests/Neo.Extensions.Tests/UT_UnsafeData.cs+11
- tests/Neo.Json.UnitTests/UT_JArray.cs+4-2
- tests/Neo.Network.RPC.Tests/UT_Utility.cs+19-11
- tests/Neo.Plugins.ApplicationLogs.Tests/Setup/TestStorage.cs+1-1
- tests/Neo.Plugins.ApplicationLogs.Tests/UT_LogReader.cs+15-25
- tests/Neo.Plugins.OracleService.Tests/E2E_Https.cs+1-1
- tests/Neo.Plugins.OracleService.Tests/TestBlockchain.cs+36-20
- tests/Neo.Plugins.RpcServer.Tests/UT_Result.cs+2
- tests/Neo.Plugins.RpcServer.Tests/UT_RpcServer.SmartContract.cs+2-8
- tests/Neo.Plugins.RpcServer.Tests/UT_RpcServer.Utilities.cs+1-1
- tests/Neo.Plugins.RpcServer.Tests/UT_RpcServer.Wallet.cs+3-18
- tests/Neo.Plugins.Storage.Tests/StoreTest.cs+19-1
- tests/Neo.UnitTests/Cryptography/UT_Ed25519.cs+162
- tests/Neo.UnitTests/IO/Caching/UT_KeyedCollectionSlim.cs+3-7
- tests/Neo.UnitTests/Ledger/UT_HeaderCache.cs+4-2
- tests/Neo.UnitTests/Network/P2P/Capabilities/UT_ArchivalNodeCapability.cs+1-1
- tests/Neo.UnitTests/Network/P2P/Capabilities/UT_UnknownCapability.cs+1-1
- tests/Neo.UnitTests/Network/P2P/Payloads/UT_Header.cs+1-2
- tests/Neo.UnitTests/Persistence/UT_CloneCache.cs+1-2
- tests/Neo.UnitTests/Persistence/UT_MemoryClonedCache.cs+2-1
- tests/Neo.UnitTests/Persistence/UT_MemorySnapshot.cs+4-2
- tests/Neo.UnitTests/SmartContract/Native/UT_CryptoLib.cs+55
- tests/Neo.UnitTests/SmartContract/Native/UT_NativeContract.cs+25-7
- tests/Neo.UnitTests/SmartContract/Native/UT_NeoToken.cs+109
- tests/Neo.UnitTests/SmartContract/Native/UT_StdLib.cs+20
- tests/Neo.UnitTests/SmartContract/UT_ApplicationEngine.Contract.cs+13-2
- tests/Neo.UnitTests/SmartContract/UT_ApplicationEngineProvider.cs+8-3
- tests/Neo.UnitTests/SmartContract/UT_Contract.cs+15-2
- tests/Neo.UnitTests/SmartContract/UT_Helper.cs+8-3
- tests/Neo.UnitTests/SmartContract/UT_InteropPrices.cs+29-19
- tests/Neo.UnitTests/SmartContract/UT_InteropService.NEO.cs+4-4
- tests/Neo.UnitTests/SmartContract/UT_InteropService.cs+24-18
- tests/Neo.UnitTests/SmartContract/UT_JsonSerializer.cs+21-6
- tests/Neo.UnitTests/SmartContract/UT_NotifyEventArgs.cs+11-2
- tests/Neo.UnitTests/SmartContract/UT_SmartContractHelper.cs+1-3
- tests/Neo.UnitTests/SmartContract/UT_Syscalls.cs+31-22
- tests/Neo.UnitTests/TestBlockchain.cs+1-1
- tests/Neo.UnitTests/UT_DataCache.cs+3-3
- tests/Neo.UnitTests/UT_ProtocolSettings.cs+5-5
- tests/Neo.UnitTests/UT_UInt160.cs+4-1
- tests/Neo.UnitTests/VM/UT_Helper.cs+17-5
- tests/Neo.VM.Tests/Tests/OpCodes/Splice/SUBSTR.json+44
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | | - | |
| 46 | + | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
| 52 | + | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
| 417 | + | |
| 418 | + | |
423 | 419 | | |
424 | 420 | | |
425 | 421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
19 | | - | |
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | | - | |
28 | 24 | | |
29 | 25 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
Lines changed: 31 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
100 | | - | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
163 | | - | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
171 | | - | |
| 172 | + | |
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
| |||
0 commit comments