forked from neo-project/neo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from neo-project/master
merge
- Loading branch information
Showing
554 changed files
with
36,089 additions
and
19,765 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
############################### | ||
# Core EditorConfig Options # | ||
############################### | ||
|
||
# dotnet-format requires version 3.1.37601 | ||
# dotnet tool update -g dotnet-format | ||
# remember to have: git config --global core.autocrlf false #(which is usually default) | ||
|
||
root = true | ||
|
||
# Every file | ||
|
||
[*] | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
charset = utf-8 | ||
end_of_line = lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to detail an error or unexpected behavior | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Open the project, run '...' | ||
2. Type '...' or do '...' | ||
3. ... | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Platform:** | ||
- OS: [e.g. Windows 10 x64] | ||
- Version [e.g. neo-cli 2.10.2] | ||
|
||
**(Optional) Additional context** | ||
Add any other context about the problem here. | ||
|
||
However, if your issue does not fit these aforementioned criteria, or it can be understood in another manner, feel free to open it in a different format. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: Feature or enhancement request | ||
about: Suggest an idea for Neo | ||
title: '' | ||
labels: discussion | ||
assignees: '' | ||
--- | ||
|
||
**Summary or problem description** | ||
A summary of the problem you want to solve or metric you want to improve | ||
|
||
**Do you have any solution you want to propose?** | ||
A clear and concise description of what you expect with this change. | ||
|
||
**Neo Version** | ||
- Neo 2 | ||
- Neo 3 | ||
|
||
**Where in the software does this update applies to?** | ||
- Compiler | ||
- Consensus | ||
- CLI | ||
- Plugins | ||
- Ledger | ||
- Network Policy | ||
- P2P (TCP) | ||
- RPC (HTTP) | ||
- SDK | ||
- VM | ||
- Other: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
name: Questions | ||
about: Questions about Neo Platform | ||
title: '' | ||
labels: question | ||
assignees: '' | ||
--- | ||
|
||
**Delete this: We would like to use GitHub for bug reports and feature requests only however if you are unable to get support from our team in: our [Discord](https://discord.io/neo) server or in our [offical documentation](https://docs.neo.org/docs/en-us/index.html), feel encouraged to create an issue here on GitHub.** |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
name: .NET Core Test and Publish | ||
|
||
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
|
||
env: | ||
DOTNET_VERSION: 5.0.100 | ||
|
||
jobs: | ||
|
||
Test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
- name: Check format | ||
run: | | ||
dotnet tool install --version 5.0.142902 --tool-path ./ dotnet-format --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json | ||
./dotnet-format --check -v diagnostic | ||
- name: Test | ||
run: | | ||
find tests -name *.csproj | xargs -I % dotnet add % package coverlet.msbuild | ||
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=${GITHUB_WORKSPACE}/coverage/lcov | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
PublishGithub: | ||
# Because sometimes this action is not working as expected we will disable it until determine that it's more stable | ||
if: false && github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') | ||
needs: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
- name: Setup NuGet.exe for use with actions | ||
uses: NuGet/setup-nuget@v1 | ||
- name: Pack with dotnet | ||
run: git rev-list --count HEAD |xargs printf "CI%05d" |xargs dotnet pack -c Debug -o out --include-source --version-suffix | ||
- name: Publish to Github Packages | ||
run: | | ||
nuget source Add -Name "GitHub" -Source "https://nuget.pkg.github.com/neo-project/index.json" -UserName neo-project -Password ${GITHUB_TOKEN} | ||
nuget push out/*.nupkg -Source "GitHub" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
PublishMyGet: | ||
if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') | ||
needs: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
- name: Pack with dotnet | ||
run: git rev-list --count HEAD |xargs printf "CI%05d" |xargs dotnet pack -c Debug -o out --include-source --version-suffix | ||
- name: Publish to MyGet | ||
run: dotnet nuget push out/*.nupkg -s https://www.myget.org/F/neo/api/v2/package -k ${MYGET_TOKEN} -ss https://www.myget.org/F/neo/symbols/api/v2/package -sk ${MYGET_TOKEN} | ||
env: | ||
MYGET_TOKEN: ${{ secrets.MYGET_TOKEN }} | ||
|
||
Release: | ||
if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') | ||
needs: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Get version | ||
id: get_version | ||
run: | | ||
sudo apt install xmlstarlet | ||
find src -name *.csproj | xargs xmlstarlet sel -t -v "concat('::set-output name=version::v',//VersionPrefix/text(),'-',//VersionSuffix/text())" | xargs echo | ||
- name: Check tag | ||
id: check_tag | ||
run: curl -s -I ${{ format('https://github.com/{0}/releases/tag/{1}', github.repository, steps.get_version.outputs.version) }} | head -n 1 | cut -d$' ' -f2 | xargs printf "::set-output name=statusCode::%s" | xargs echo | ||
- name: Create release | ||
if: steps.check_tag.outputs.statusCode == '404' | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.get_version.outputs.version }} | ||
release_name: ${{ steps.get_version.outputs.version }} | ||
prerelease: ${{ contains(steps.get_version.outputs.version, '-') }} | ||
- name: Setup .NET Core | ||
if: steps.check_tag.outputs.statusCode == '404' | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
- name: Publish to NuGet | ||
if: steps.check_tag.outputs.statusCode == '404' | ||
run: | | ||
dotnet pack -o out -c Release | ||
dotnet nuget push out/*.nupkg -s https://api.nuget.org/v3/index.json -k ${NUGET_TOKEN} | ||
env: | ||
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -255,3 +255,4 @@ paket-files/ | |
*.sln.iml | ||
|
||
PublishProfiles | ||
/.vscode |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
|
||
# Contributing to NEO | ||
Neo is an open-source project and it depends on its contributors and constant community feedback to implement the features required for a smart economy. You are more than welcome to join us in the development of Neo. | ||
|
||
Read this document to understand how issues are organized and how you can start contributing. | ||
|
||
*This document covers this repository only and does not include community repositories or repositories managed by NGD Shanghai and NGD Seattle.* | ||
|
||
### Questions and Support | ||
The issue list is reserved exclusively for bug reports and features discussions. If you have questions or need support, please visit us in our [Discord](https://discord.io/neo) server. | ||
|
||
### dApp Development | ||
This document does not relate to dApp development. If you are looking to build a dApp using Neo, please [start here](https://neo.org/dev). | ||
|
||
### Contributing to open source projects | ||
If you are new to open-source development, please [read here](https://opensource.guide/how-to-contribute/#opening-a-pull-request) how to submit your code. | ||
|
||
## Developer Guidance | ||
We try to have as few rules as possible, just enough to keep the project organized: | ||
|
||
|
||
1. **Discuss before coding**. Proposals must be discussed before being implemented. | ||
Avoid implementing issues with the discussion tag. | ||
2. **Tests during code review**. We expect reviewers to test the issue before approving or requesting changes. | ||
|
||
3. **Wait for at least 2 reviews before merging**. Changes can be merged after 2 approvals, for Neo 3.x branch, and 3 approvals for Neo 2.x branch. | ||
|
||
3. **Give time to other developers review an issue**. Even if the code has been approved, you should leave at least 24 hours for others to review it before merging the code. | ||
|
||
4. **Create unit tests**. It is important that the developer includes basic unit tests so reviewers can test it. | ||
|
||
5. **Task assignment**. If a developer wants to work in a specific issue, he may ask the team to assign it to himself. The proposer of an issue has priority in task assignment. | ||
|
||
|
||
### Issues for beginners | ||
If you are looking to start contributing to NEO, we suggest you start working on issues with  or  tags since they usually do not depend on extensive NEO platform knowledge. | ||
|
||
### Tags for Issues States | ||
|
||
 Whenever someone posts a new feature request, the tag discussion is added. This means that there is no consensus if the feature should be implemented or not. Avoid creating PR to solve issues in this state since it may be completely discarded. | ||
|
||
 When a feature request is accepted by the team, but there is no consensus about the implementation, the issue is tagged with design. We recommend the team to agree in the solution design before anyone attempts to implement it, using text or UML. It is not recommended, but developers can also present their solution using code. | ||
Note that PRs for issues in this state may also be discarded if the team disagree with the proposed solution. | ||
|
||
 Once the team has agreed on feature and the proposed solution, the issue is tagged with ready-to-implement. When implementing it, please follow the solution accepted by the team. | ||
|
||
### Tags for Issue Types | ||
|
||
 Issues with the cosmetic tag are usually changes in code or documentation that improve user experience without affecting current functionality. These issues are recommended for beginners because they require little to no knowledge about Neo platform. | ||
|
||
 Enhancements are platform changes that may affect performance, usability or add new features to existing modules. It is recommended that developers have previous knowledge in the platform to work in these improvements, specially in more complicated modules like the compiler, ledger and consensus. | ||
|
||
 New features may include large changes in the code base. Some are complex, but some are not. So, a few issues with new-feature may be recommended for starters, specially those related to the rpc and the sdk module. | ||
|
||
 Issues related to the migration from Neo 2 to Neo 3 are tagged with migration. These issues are usually the most complicated ones since they require a deep knowledge in both versions. | ||
|
||
### Tags for Project Modules | ||
These tags do not necessarily represent each module at code level. Modules consensus and compiler are not recommended for beginners. | ||
|
||
 Issues that are related or influence the behavior of our C# compiler. Note that the compiler itself is hosted in the [neo-devpack-dotnet](https://github.com/neo-project/neo-devpack-dotnet) repository. | ||
|
||
 Changes to consensus are usually harder to make and test. Avoid implementing issues in this module that are not yet decided. | ||
|
||
 The ledger is our 'database', any changes in the way we store information or the data-structures have this tag. | ||
|
||
 'Small' enhancements that need to be done in order to keep the project organised and ensure overall quality. These changes may be applied in any place in code, as long as they are small or do not alter current behavior. | ||
|
||
 Identify issues that affect the network-policy like fees, access list or other related issues. Voting may also be related to the network policy module. | ||
|
||
 This module includes peer-to-peer message exchange and network optimisations, at TCP or UDP level (not HTTP). | ||
|
||
 All HTTP communication is handled by the RPC module. This module usually provides support methods since the main communication protocol takes place at the p2p module. | ||
|
||
 New features that affect the Neo Virtual Machine or the Interop layer. | ||
|
||
 Neo provides an SDK to help developers to interact with the blockchain. Changes in this module must not impact other parts of the software. | ||
|
||
 Wallets are used to track funds and interact with the blockchain. Note that this module depends on a full node implementation (data stored on local disk). | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<clear /> | ||
<add key="MyGet-neo" value="https://www.myget.org/F/neo/api/v3/index.json" /> | ||
<add key="NuGet.org" value="https://api.nuget.org/v3/index.json" /> | ||
</packageSources> | ||
</configuration> |
Oops, something went wrong.