forked from AElfProject/AElf
-
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 #8 from gldeng/experiment/crypto-funcs-in-sdk
Experiment crypto funcs in sdk
- Loading branch information
Showing
423 changed files
with
7,028 additions
and
1,870 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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# Depth of components to analyze (2 levels deep) | ||
component_depth: 2 | ||
|
||
# Programming languages to analyze | ||
languages: | ||
- csharp |
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 |
---|---|---|
@@ -1,31 +1,33 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
name: 👾 Bug Report | ||
about: Report a bug or issue with the project. | ||
title: '' | ||
labels: '' | ||
labels: 'bug' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
### Description | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
### Steps To Reproduce | ||
1. Log in... | ||
2. Ensure that... | ||
3. Allow a long period of inactivity to pass... | ||
4. Observe that... | ||
5. Attempt to log in... | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
### Current Behavior | ||
- After the period of inactivity... | ||
- When the user tries to log in using another method... | ||
- This causes a bug due to... | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
### Expected Behavior | ||
- After a long period of inactivity... | ||
- When a user logs in successfully... | ||
- This ensures that only... | ||
|
||
**Environment (please complete the following information):** | ||
- OS and version: [e.g. Ubuntu 18.04] | ||
- Dotnet core version [e.g. 2.2.106] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. | ||
### Environment | ||
- Platform: PC | ||
- Node: v18.18.0 | ||
- Browser: Chrome 126.0.6478.56 |
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,10 @@ | ||
blank_issues_enabled: false | ||
issue_template: | ||
- name: 👾 Bug Report | ||
description: Report a bug or issue with the project. | ||
labels: ["bug"] | ||
template: bug_report.md | ||
- name: 💡 Feature Request | ||
description: Create a new ticket for a new feature request. | ||
labels: ["enhancement"] | ||
template: feature_request.md |
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 |
---|---|---|
@@ -1,20 +1,27 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
name: 💡 Feature Request | ||
about: Create a new ticket for a new feature request | ||
title: '' | ||
labels: '' | ||
labels: 'enhancement' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
### Expected Behavior | ||
Describe the expected behavior here. | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
### Specifications | ||
As a `user`, I would like to `action` so that `reason`. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
**Features:** | ||
- describe feature details here. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. | ||
**Development Tasks:** | ||
- [ ] Task 1 | ||
- [ ] Task 2 | ||
|
||
### Dependencies | ||
List any dependencies that are required for this feature by providing links to the issues or repositories. | ||
|
||
### References | ||
List any references that are related to this feature request. |
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,48 @@ | ||
name: benchmark_action | ||
on: | ||
push: | ||
tags: | ||
- '**' | ||
branches: | ||
- '**' | ||
|
||
|
||
|
||
env: | ||
DOTNET_INSTALL_DIR: "./.dotnet" | ||
Solution_Name: AElf.All.sln | ||
Service_Name: AELF | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '8.0' | ||
|
||
- name: 'Download AElf build tools' | ||
run: bash scripts/download_binary.sh | ||
|
||
- name: 'Install protobuf' | ||
run: bash scripts/install_protobuf.sh | ||
|
||
- name: Install dependencies | ||
run: dotnet restore bench/AElf.Benchmark/AElf.Benchmark.csproj --verbosity quiet | ||
|
||
- name: BenchMark | ||
run: | | ||
cd bench/AElf.Benchmark | ||
dotnet run --filter '*MinerTests*' | ||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ env.Service_Name }} | ||
path: bench/AElf.Benchmark/BenchmarkDotNet.Artifacts/results | ||
retention-days: 30 |
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,35 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
- master | ||
- feature/use-github-actions | ||
|
||
env: | ||
DOTNET_INSTALL_DIR: "./.dotnet" | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '8.0' | ||
|
||
- name: Download AElf build tools | ||
run: bash scripts/download_binary.sh | ||
|
||
- name: Install Protobuf | ||
run: bash scripts/install_protobuf.sh | ||
|
||
- name: Build Solution | ||
run: bash scripts/build.sh | ||
|
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,49 @@ | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
name: PR Static Code Analysis | ||
jobs: | ||
static-code-analysis: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Code Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '8.0' | ||
- name: Create temporary global.json | ||
run: echo '{"sdk":{"version":"8.0.303"}}' > ./global.json | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
- name: Cache SonarQube packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.sonar/cache | ||
key: ${{ runner.os }}-sonar | ||
restore-keys: ${{ runner.os }}-sonar | ||
- name: Cache SonarQube scanner | ||
id: cache-sonar-scanner | ||
uses: actions/cache@v1 | ||
with: | ||
path: ./.sonar/scanner | ||
key: ${{ runner.os }}-sonar-scanner | ||
restore-keys: ${{ runner.os }}-sonar-scanner | ||
- name: Install SonarScanner for .NET | ||
run: dotnet tool update dotnet-sonarscanner --tool-path ./.sonar/scanner | ||
- name: Add .NET global tools to PATH | ||
run: echo "$HOME/.dotnet/tools" >> $GITHUB_PATH | ||
- name: Install protobuf | ||
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | ||
- name: Begin SonarQube analysis | ||
run: | | ||
./.sonar/scanner/dotnet-sonarscanner begin /k:"AElf" /d:sonar.host.url="${{ secrets.SONAR_HOST_URL }}" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" | ||
dotnet build AElf.All.sln | ||
./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Test | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
- master | ||
- feature/use-github-actions | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
steps: | ||
- name: Run dotnet ci action | ||
uses: AElfProject/[email protected] | ||
with: | ||
commit-token: ${{ secrets.COMMIT_TOKEN }} | ||
codecov-token: ${{ secrets.CODECOV_TOKEN }} | ||
branch-name: "feature/badge-json" | ||
solution-name: "AElf.All.sln" |
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
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
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
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
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
Oops, something went wrong.