Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
ae998ee
Remove comments in `nuget.yml` (#3359)
cschuchardt88 Jul 1, 2024
5f66404
Fix: `MemPool` null checks (#3367)
shargon Jul 1, 2024
96c9e77
plugins: remove expressions that are always true (#3393)
chenzhitong Jul 3, 2024
20b7409
[**Part-1] Add `github` Release Workflow (#3308)
cschuchardt88 Jul 4, 2024
a80fca6
cli: Fix `plugins` command (#3394)
shargon Jul 4, 2024
188028b
Added blame logging for `dotnet test` (#3384)
cschuchardt88 Jul 4, 2024
5a14bf2
Fix download tips (#3395)
superboyiii Jul 5, 2024
b7bc07b
`DeprecatedIn` for events (#3362)
shargon Jul 5, 2024
2c20820
Fix crash when comparing ContractPermissionDescriptor (#3396)
chenzhitong Jul 5, 2024
c537f87
`[neo-cli]` Error Message and Warning - LevelDb (#3380)
cschuchardt88 Jul 5, 2024
8e1e661
Fixed Props Pathing for `dotnet pack` with `nuget` (#3379)
cschuchardt88 Jul 5, 2024
15d36b7
Part-1 `Neo.IO` - move (#3387)
cschuchardt88 Jul 5, 2024
94f1a72
`[Fix]` Test Problems (#3398)
cschuchardt88 Jul 5, 2024
e5abfa1
`[Typo]` Unit Tests - UT_ProtocolSettings.CreateHKSettings (#3383)
cschuchardt88 Jul 7, 2024
c54c204
Bump System.Text.Json from 8.0.3 to 8.0.4 in /src/Neo.Json (#3416)
dependabot[bot] Jul 10, 2024
1c45832
[Neo Plugin Store] Unit test (#3399)
Jul 11, 2024
97e24ed
`[Add]` Debug Output to `Expect` (#3407)
cschuchardt88 Jul 11, 2024
bfb3440
Improve code coverage (#3354)
chenzhitong Jul 11, 2024
3351533
[Neo Plugin UT] Rpcserver unit test on node (#3353)
Jul 11, 2024
06e087f
Fix release compilation (#3417)
shargon Jul 12, 2024
53eaa39
Fixed Publish Step (#3411)
cschuchardt88 Jul 12, 2024
bf50823
[Neo Core MemoryStore] MemoryStore Unit Tests. (#3404)
Jul 15, 2024
6c29bde
[Neo Core Storage] Implicit methods and tests (#3403)
Jul 16, 2024
096f472
[Neo Core Store] Rename various snapshots. (#3406)
Jul 16, 2024
03fc303
`[Move]` Part-2 Classes into Different Library - `Neo.IO` (#3388)
cschuchardt88 Jul 16, 2024
f307a31
Revert "Plugin unhandled exception (#3349)" (#3366)
vncoelho Jul 17, 2024
e73fc00
fix obsolete warning (#3428)
Jul 22, 2024
79a539f
Neo.CLI: update MaxTraceableBlocks setting for NeoFS networks (#3424)
AnnaShaleva Jul 22, 2024
d0a2028
Upgrade `nuget` packages (#3421)
cschuchardt88 Jul 22, 2024
d8a4564
[Neo Core Fix]use strong randomness (#3432)
Jul 22, 2024
677b1fa
Fixed warning (#3430)
cschuchardt88 Jul 23, 2024
21765dc
[Neo Core UT] Fix ut and style (#3413)
Jul 23, 2024
e9e7155
[**Added**] Build `neo-cli` Docker Image (#3355)
cschuchardt88 Jul 23, 2024
f8b090b
[Neo Core Doc]create a docs folder and move existing doc to it. (#3435)
Jul 24, 2024
e73f533
[**Part-1**] Added `ApplicationLogs` Unit Tests (#3346)
cschuchardt88 Jul 24, 2024
31f8374
add unit tests for json (#2993)
Jul 27, 2024
97a4417
[Neo Core VM] complete opcode comments (#3437)
Jul 29, 2024
eb167b3
[Neo Core] Obsolete applicationengine snapshot (#3436)
Jul 29, 2024
c2141e8
[Neo Plugin RpcServer UT]Plugin rpcserver wallet UTs (#3433)
Jul 29, 2024
1c3fe45
`[Move]` Part-3 Classes into Different Library - `Neo.Extensions` (#3…
cschuchardt88 Jul 30, 2024
ffb3100
[`Optimization`] Parsing Smart Contract Script Analysis (#3420)
cschuchardt88 Jul 30, 2024
3c7d249
update benchmark system (#3442)
Jul 30, 2024
450cb61
[rpc] Extend `getversion` RPC response with additional protocol setti…
shargon Jul 30, 2024
6278961
[Neo Core Add] add char support (#3441)
Aug 1, 2024
bd820fb
Stopped `RecoveryLogs` store from being created when `IgnoreRecoveryL…
cschuchardt88 Aug 6, 2024
1dcec2e
[Neo Core Bug] fix compound type reference issue (#3334)
Aug 6, 2024
1488958
Fix plugin exception (#3426)
Aug 6, 2024
28043cb
[Neo Json Fix] Json null tests (#3450)
Aug 8, 2024
a93adb7
Update README.md (#3459)
chenzhitong Aug 13, 2024
0d46c20
Update RpcServer.Blockchain.cs (#3458)
chenzhitong Aug 13, 2024
5fb2262
Set `Password` to `SecureString` for Wallet (#3468)
cschuchardt88 Aug 23, 2024
71da68d
[Neo Plugin RPCServer] Rpc parameters. Part I (#3457)
Aug 23, 2024
436906c
test RpcServer.Utilities, .SmartContract and .Wallet (#3461)
Hecate2 Aug 23, 2024
ab46242
`[Move]` Part-4 Classes into Different Library - `Neo.Extensions` (#3…
cschuchardt88 Aug 23, 2024
23f1bce
Add UT Neo.IO (#3466)
chenzhitong Aug 23, 2024
dc926f7
improve error message when wrong wallet is opened (#3469)
Hecate2 Aug 24, 2024
9ce9c6f
Update UT RpcServer (#3460)
chenzhitong Aug 26, 2024
5fe5462
[`fixes`] UInt160 Class (#3422)
cschuchardt88 Aug 29, 2024
e018bc3
test GetApplicationLog (#3470)
Hecate2 Aug 29, 2024
c69791f
Add UT Neo.Extensions (#3467)
chenzhitong Aug 30, 2024
da193e9
Add some UT (#3476)
chenzhitong Sep 5, 2024
3d663f2
Update ConstantTimeUtility.cs (#3472)
kov072299 Sep 6, 2024
2b118b4
Test OracleService (#3475)
Hecate2 Sep 6, 2024
9788280
[Neo Plugin RPC] update rpc node methods signatures to use explicit p…
Sep 6, 2024
ff58726
Fixing errors in comments (#3483)
chenzhitong Sep 12, 2024
c6282cd
parse nef file scripts (#3482)
Hecate2 Sep 13, 2024
9946450
[Neo VM Style] Throw exception for Integer that is larger than 32 byt…
Sep 14, 2024
a52e321
Update RpcError.cs (#3498)
chenzhitong Sep 24, 2024
d6ed5a5
fix: concurrency conflict in HeaderCache.Count (#3501)
nan01ab Sep 26, 2024
73cea01
[`Add`] Transaction Builder (#3477)
cschuchardt88 Sep 27, 2024
6a4ea1f
[`Fix`] Neo Plugins github nuget (#3493)
cschuchardt88 Sep 27, 2024
9287c66
`[Move]` Part-5 Classes into Different Library - `Neo.Extensions` (#3…
cschuchardt88 Sep 28, 2024
33d0913
fix: always throw `DivideByZeroException ` when `BloomFilter` is empt…
nan01ab Sep 29, 2024
6e74e33
fix: concurrency conflict in MemPool.TryRemoveUnVerified (#3500)
nan01ab Sep 30, 2024
1688a7a
update rvcount error message (#3504)
Sep 30, 2024
a38d618
Added `CreateStruct` & Fixed `CreateMap` (#3494)
cschuchardt88 Oct 4, 2024
bb32a79
benchmark convert (#3509)
Oct 7, 2024
6067f67
OpCodes: extend MODMUL tests with negative base/multiplier/mod (#3513)
AnnaShaleva Oct 8, 2024
331fa24
fix: sensitive data compare should use constant time compare to avoid…
nan01ab Oct 8, 2024
a817e29
Related to https://github.com/neo-project/neo/pull/3508#discussion_r1…
shargon Oct 9, 2024
8290697
[Benchmark] this pr adds more pocs to benchmark (#3512)
Oct 9, 2024
52393be
Bump System.Text.Json from 8.0.4 to 8.0.5 in /src/Neo.Json (#3519)
dependabot[bot] Oct 10, 2024
5d2d8da
Circular reference error info in ToJson (#3522)
Hecate2 Oct 10, 2024
20c8661
[Benchmark] Benchmark OpCode and VM (#3514)
Oct 10, 2024
018e17b
Move `ReferenceCounter` to an interface (#3524)
shargon Oct 11, 2024
a326939
[Neo VM] optimize newstruct (#3525)
Oct 11, 2024
b752efe
fea: use canonical TryGet style in IReadOnlyStore (#3533)
nan01ab Oct 14, 2024
3f2f78c
Add references (#3529)
shargon Oct 14, 2024
bb71676
fix: concurrency conflict in NEP6Wallet.ToJson (#3527)
nan01ab Oct 14, 2024
16bde11
fix cref "OpCode.SUBSTR" in comment (#3542)
Hecate2 Oct 21, 2024
6d7ea43
ApplicationEngine helper to get engine error info (#3541)
Hecate2 Oct 23, 2024
85f52f5
stack opcode example comments (#3546)
Hecate2 Oct 23, 2024
9ed6cac
Expose `GetInteropDescriptor` (#3545)
shargon Oct 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ indent_size = 2
end_of_line = lf
indent_size = 2

# YAML files
[*.yml]
end_of_line = lf
indent_size = 2

# Dotnet code style settings:
[*.{cs,vb}]
# Member can be made 'readonly'
Expand Down
77 changes: 77 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Publish (docker-image)

on:
release:
types: [published]

env:
DOTNET_VERSION: 8.0.x
DIST_DIR: ./dist

jobs:
neo-cli-build:
runs-on: ubuntu-latest

steps:
- name: Set Application Version (Environment Variable)
run: |
APP_VERSION=$(echo '${{ github.event.release.tag_name }}' | cut -d 'v' -f 2)
echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV

- name: Checkout (GitHub)
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Build (neo-cli)
run: |
dotnet publish ./src/Neo.CLI \
--framework net8.0 \
--configuration Release \
--runtime linux-x64 \
--self-contained true \
--output ${{ env.DIST_DIR }} \
--verbosity normal \
-p:VersionPrefix=${{ env.APP_VERSION }} \
-p:RuntimeIdentifier=linux-x64 \
-p:SelfContained=true \
-p:IncludeNativeLibrariesForSelfExtract=false \
-p:PublishTrimmed=false \
-p:PublishSingleFile=true \
-p:PublishReadyToRun=true \
-p:EnableCompressionInSingleFile=true \
-p:DebugType=embedded \
-p:ServerGarbageCollection=true

- name: Build (LevelDbStore)
run: |
dotnet build ./src/Plugins/LevelDBStore \
--framework net8.0 \
--configuration Release \
--output ${{ env.DIST_DIR }}/Plugins/LevelDBStore \
--verbosity normal \
-p:VersionPrefix=${{ env.APP_VERSION }}

- name: Remove (junk)
run: |
rm -v ${{ env.DIST_DIR }}/Plugins/LevelDBStore/Neo*
rm -v ${{ env.DIST_DIR }}/Plugins/LevelDBStore/*.pdb
rm -v ${{ env.DIST_DIR }}/Plugins/LevelDBStore/*.xml
rm -v ${{ env.DIST_DIR }}/*.xml

- name: Docker Login
run: |
docker login ghcr.io \
--username ${{ github.repository_owner }} \
--password ${{ secrets.GITHUB_TOKEN }}

- name: Docker Build
run: |
docker build . \
--file ./.neo/docker/neo-cli/Dockerfile \
--tag ghcr.io/${{ github.repository_owner }}/neo-cli:latest \
--tag ghcr.io/${{ github.repository_owner }}/neo-cli:${{ env.APP_VERSION }} \
--push
25 changes: 12 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Check Format (*.cs)
run: dotnet format --verify-no-changes --verbosity diagnostic

Build-Test-Neo-Cli:
Test-Everything:
needs: [Format]
timeout-minutes: 15
runs-on: ubuntu-latest
Expand All @@ -37,16 +37,16 @@ jobs:
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Build (Neo.CLI)
run: dotnet build ./src/Neo.CLI --output ./out/Neo.CLI
- name: Build (Everything)
run: dotnet build

- name: Install dependencies
run: |
sudo apt-get install libleveldb-dev expect
find ./out -name 'config.json' | xargs perl -pi -e 's|LevelDBStore|MemoryStore|g'
find ./bin -name 'config.json' | xargs perl -pi -e 's|LevelDBStore|MemoryStore|g'

- name: Run tests with expect
run: expect ./scripts/Neo.CLI/test-neo-cli.expect
run: expect ./scripts/Neo.CLI/test-neo-cli.exp

Test:
needs: [Format]
Expand All @@ -68,7 +68,8 @@ jobs:
if: matrix.os != 'ubuntu-latest'
run: |
dotnet sln neo.sln remove ./tests/Neo.Plugins.Storage.Tests/Neo.Plugins.Storage.Tests.csproj
dotnet test
dotnet build
dotnet test --blame-hang --blame-crash --no-build

- name: Test for coverall
if: matrix.os == 'ubuntu-latest'
Expand All @@ -80,13 +81,15 @@ jobs:
dotnet test ./tests/Neo.UnitTests --output ./bin/tests/Neo.UnitTests
dotnet test ./tests/Neo.VM.Tests --output ./bin/tests/Neo.VM.Tests
dotnet test ./tests/Neo.Json.UnitTests --output ./bin/tests/Neo.Json.UnitTests
dotnet test ./tests/Neo.Extensions.Tests --output ./bin/tests/Neo.Extensions.Tests

# Plugins
dotnet test ./tests/Neo.Cryptography.MPTTrie.Tests --output ./bin/tests/Neo.Cryptography.MPTTrie.Tests
dotnet test ./tests/Neo.Network.RPC.Tests --output ./bin/tests/Neo.Network.RPC.Tests
dotnet test ./tests/Neo.Plugins.OracleService.Tests --output ./bin/tests/Neo.Plugins.OracleService.Tests
dotnet test ./tests/Neo.Plugins.RpcServer.Tests --output ./bin/tests/Neo.Plugins.RpcServer.Tests
dotnet test ./tests/Neo.Plugins.Storage.Tests --output ./bin/tests/Neo.Plugins.Storage.Tests
dotnet test ./tests/Neo.Plugins.ApplicationLogs.Tests --output ./bin/tests/Neo.Plugins.ApplicationLogs.Tests

- name: Coveralls
if: matrix.os == 'ubuntu-latest'
Expand All @@ -104,6 +107,8 @@ jobs:
${{ github.workspace }}/tests/Neo.Plugins.OracleService.Tests/TestResults/coverage.info
${{ github.workspace }}/tests/Neo.Plugins.RpcServer.Tests/TestResults/coverage.info
${{ github.workspace }}/tests/Neo.Plugins.Storage.Tests/TestResults/coverage.info
${{ github.workspace }}/tests/Neo.Plugins.ApplicationLogs.Tests/TestResults/coverage.info
${{ github.workspace }}/tests/Neo.Extensions.Tests/TestResults/coverage.info

PublishPackage:
if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/')
Expand All @@ -123,19 +128,13 @@ jobs:
- name: Set Version
run: git rev-list --count HEAD | xargs printf 'CI%05d' | xargs -I{} echo 'VERSION_SUFFIX={}' >> $GITHUB_ENV

- name : Pack (Neo)
- name : Pack (Everything)
run: |
dotnet pack \
--configuration Release \
--output ./out \
--version-suffix ${{ env.VERSION_SUFFIX }}

- name: Remove Unwanted Files
working-directory: ./out
run: |
rm -v Neo.CLI*
rm -v Neo.GUI*

- name: Publish to Github Packages
working-directory: ./out
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
dotnet pack ./neo.sln \
--configuration Release \
--output ./sbin \
--verbosity normal \ # Normal verbosity level
-p:VersionPrefix=${{ env.APP_VERSION }} # Set the version prefix from tag_name
--verbosity normal \
-p:VersionPrefix=${{ env.APP_VERSION }}

- name: Publish to NuGet.org
run: |
Expand Down
88 changes: 37 additions & 51 deletions .github/workflows/pkgs-delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,67 +61,53 @@ jobs:

shell: python

delete-git-pkgs:
name: Delete Old Nuget Packages
delete-git-docker-pkgs:
name: Delete Old Docker Images
runs-on: ubuntu-latest

steps:
- name: Delete Neo.Cryptography.BLS12_381 Package
- name: Delete Neo Package (docker)
uses: actions/delete-package-versions@v4
continue-on-error: true
with:
package-name: Neo.Cryptography.BLS12_381
package-type: nuget
min-versions-to-keep: 3
delete-only-pre-release-versions: "true"
token: "${{ secrets.GITHUB_TOKEN }}"

- name: Delete Neo.VM Package
uses: actions/delete-package-versions@v4
with:
package-name: Neo.VM
package-type: nuget
min-versions-to-keep: 3
delete-only-pre-release-versions: "true"
token: "${{ secrets.GITHUB_TOKEN }}"

- name: Delete Neo.Json Package
uses: actions/delete-package-versions@v4
with:
package-name: Neo.Json
package-type: nuget
min-versions-to-keep: 3
delete-only-pre-release-versions: "true"
package-name: Neo
package-type: docker
min-versions-to-keep: 1
token: "${{ secrets.GITHUB_TOKEN }}"

- name: Delete Neo.IO Package
uses: actions/delete-package-versions@v4
with:
package-name: Neo.IO
package-type: nuget
min-versions-to-keep: 3
delete-only-pre-release-versions: "true"
token: "${{ secrets.GITHUB_TOKEN }}"
delete-git-nuget-pkgs:
name: Delete Old Nuget Packages
strategy:
matrix:
pkgs:
- "Neo.Plugins.StatesDumper"
- "Neo.Plugins.StateService"
- "Neo.Plugins.Storage.LevelDBStore"
- "Neo.Plugins.Storage.RocksDBStore"
- "Neo.Plugins.StorageDumper"
- "Neo.Plugins.TokensTracker"
- "Neo.Wallets.SQLite"
- "Neo.Consensus.DBFT"
- "Neo.ConsoleService"
- "Neo.Cryptography.MPT"
- "Neo.Extensions"
- "Neo.Network.RPC.RpcClient"
- "Neo.Plugins.ApplicationLogs"
- "Neo.Plugins.OracleService"
- "Neo.Plugins.RpcServer"
- "Neo.Cryptography.BLS12_381"
- "Neo.VM"
- "Neo.Json"
- "Neo.IO"
- "Neo"
runs-on: ubuntu-latest

- name: Delete Neo Package
uses: actions/delete-package-versions@v4
with:
package-name: Neo
package-type: nuget
min-versions-to-keep: 3
delete-only-pre-release-versions: "true"
token: "${{ secrets.GITHUB_TOKEN }}"
- name: Delete Neo.ConsoleService Package
uses: actions/delete-package-versions@v4
with:
package-name: Neo.ConsoleService
package-type: nuget
min-versions-to-keep: 3
delete-only-pre-release-versions: "true"
token: "${{ secrets.GITHUB_TOKEN }}"
- name: Delete Neo.Extensions Package
steps:
- name: Delete ${{ matrix.pkgs }} Package
uses: actions/delete-package-versions@v4
continue-on-error: true
with:
package-name: Neo.Extensions
package-name: ${{ matrix.pkgs }}
package-type: nuget
min-versions-to-keep: 3
delete-only-pre-release-versions: "true"
Expand Down
Loading
Loading