Skip to content

Commit

Permalink
Cleanup repo (neo-project#350)
Browse files Browse the repository at this point in the history
* Cleanup repo

* updated issue links

* updated changelog.md

* update changelog.md

* Updated bctklib

* Ran code analyzers

* Updated github action to use  `macos-13`

* added  paths-ignore to pr.yml
Updated  paths-ignore on push.yml
  • Loading branch information
cschuchardt88 authored Nov 17, 2023
1 parent 626206d commit 4eb0e0d
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 164 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- master
- release/*
paths-ignore:
- '.gitignore'
- '.gitattributes'
- 'LICENSE'
- '**/*.md'

jobs:
pack:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ on:
- master
- release/*
paths-ignore:
- 'readme.md'
- 'CHANGELOG.md'
- 'docs/**'
- '.gitignore'
- '.gitattributes'
- 'LICENSE'
- '**/*.md'

env:
AZURE_ARTIFACTS_FEED_URL: https://nuget.pkg.github.com/neo-project/index.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, macos-12, ubuntu-20.04, ubuntu-22.04, windows-2019, windows-2022]
os: [macos-11, macos-12, macos-13, ubuntu-20.04, ubuntu-22.04, windows-2019, windows-2022]
steps:
- name: Checkout Code
uses: actions/checkout@v3
Expand Down
44 changes: 0 additions & 44 deletions .vscode/launch.json

This file was deleted.

28 changes: 0 additions & 28 deletions .vscode/settings.json

This file was deleted.

48 changes: 0 additions & 48 deletions .vscode/tasks.json

This file was deleted.

21 changes: 18 additions & 3 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,28 @@ may not exactly match a publicly released version.

### Added

* WIF encoded private keys can be used to specify signing and non-signing accounts
* Option for private key on `create` or `wallet create` command (`WIF` or `HEX` formats)
* `wallet create` command to batch files
* Global directory to search for files; _Note: still can be used in current directory_
* Windows Path: `%USERPROFILE%\.neo-express`
* Linux Path: `$HOME/.neo-express`
* autorun `setup.batch` on `create` command
* WIF encoded private keys can be used to specify signing and non-signing accounts
* `contract update` command

### Changed

* use `UInt160.ToString` to write wallet account script hash to console in
`wallet list` command
* use `UInt160.ToString` to write wallet account script hash to console in
`wallet list` command

### Issues Fixed
* [#254](https://github.com/neo-project/neo-express/issues/254) - issues transferring genesis funds
* [#257](https://github.com/neo-project/neo-express/issues/257) - How to specify public key as argument for contract run?
* [#307](https://github.com/neo-project/neo-express/issues/307) - getapplicationlog response differs from neo-cli
* [#302](https://github.com/neo-project/neo-express/issues/302) - Fixed wording for contract download height
* [#298](https://github.com/neo-project/neo-express/issues/298) - Wrong command color
* [#320](https://github.com/neo-project/neo-express/pull/320) - neoxp help suggests help
* [#254](https://github.com/neo-project/neo-express/issues/345) - Updated vulnerable & package dependencies

## [3.5] - 2023-01-03

Expand Down
8 changes: 0 additions & 8 deletions dirs.proj

This file was deleted.

9 changes: 2 additions & 7 deletions src/bctklib/bctklib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@
<DebugType>Embedded</DebugType>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<PackageIcon>ngdsea.png</PackageIcon>
<PackageId>Neo.BlockchainToolkit.Library</PackageId>
<RootNamespace>Neo.BlockchainToolkit</RootNamespace>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup Condition="'$(CI)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<ItemGroup>
<None Include="../ngdsea.png" Pack="true" Visible="false" PackagePath="" />
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="test.bctklib" />
</ItemGroup>
Expand All @@ -24,8 +19,8 @@
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
<PackageReference Include="Nerdbank.Streams" Version="2.10.72" />
<PackageReference Include="OneOf" Version="3.0.263" />
<PackageReference Include="rocksdb" Version="8.5.3.42578" />
<PackageReference Include="System.IO.Abstractions" Version="19.2.69" />
<PackageReference Include="rocksdb" Version="8.6.7.43630" />
<PackageReference Include="System.IO.Abstractions" Version="19.2.87" />
<PackageReference Include="Neo.Cryptography.MPT" Version="$(NeoVersion)" />
<PackageReference Include="Neo.Network.RPC.RpcClient" Version="$(NeoVersion)" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/bctklib/plugins/ToolkitRpcServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public static (string name, string symbol, byte decimals) GetTokenDetails(this D
return (name, symbol, decimals);
}
}
return ("<Unknown>", "<UNK>", (byte)0);
return ("<Unknown>", "<UNK>", 0);
}

public static IEnumerable<ReadOnlyMemory<byte>> GetNep11Tokens(this DataCache snapshot, UInt160 asset, UInt160 address, ProtocolSettings settings)
Expand Down
19 changes: 0 additions & 19 deletions src/neoxp/launch.ps1

This file was deleted.

Binary file removed src/ngdsea.png
Binary file not shown.
2 changes: 1 addition & 1 deletion test/test.bctklib/ReadWriteStoreTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public static IStore GetPopulatedNeoRocksDbStore(string path)
var storeType = typeof(Neo.Plugins.Storage.RocksDBStore).Assembly
.GetType("Neo.Plugins.Storage.Store");
var storeCtor = storeType?.GetConstructor(new[] { typeof(string) });
var store = storeCtor?.Invoke(new object[] { (string)path }) as IStore;
var store = storeCtor?.Invoke(new object[] { path }) as IStore;
if (store is null)
throw new NullReferenceException(nameof(Neo.Plugins.Storage.RocksDBStore));
return store;
Expand Down
2 changes: 1 addition & 1 deletion test/test.bctklib/Utility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static IStore CreateNeoRocksDb(string path)
const string storeTypeName = "Neo.Plugins.Storage.Store";
var storeType = typeof(Neo.Plugins.Storage.RocksDBStore).Assembly.GetType(storeTypeName);
var storeCtor = storeType?.GetConstructor(new[] { typeof(string) });
var store = storeCtor?.Invoke(new object[] { (string)path }) as IStore;
var store = storeCtor?.Invoke(new object[] { path }) as IStore;
if (store == null)
throw new Exception($"Failed to create {storeTypeName} instance");
return store;
Expand Down

0 comments on commit 4eb0e0d

Please sign in to comment.