Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Jan 28, 2022
0 parents commit 02203f8
Show file tree
Hide file tree
Showing 50 changed files with 13,754 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

[*.yml]
indent_style=space
indent_size=2
tab_width=8
end_of_line=lf
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Report a Bug
about: Report a problem with this project.
title: ''
labels: bug
assignees: ''
---

**Description**

> Tell us what happened. In particular, tell us how and why you are using this project, and describe the bug that you encountered. Please note that we are not able to support all conceivable use cases, but the more information you are able to provide the more equipped we will be to help.
**Steps to Reproduce**

> Replace the example steps below with actual steps to reproduce the bug you're reporting.
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected vs. Actual Behavior**

> What did you expect to happen after you followed the steps you described in the last section? What actually happened?
**Environment**

> Describe the environment in which you encountered this bug. Use the list below as a starting point and add additional information if you think it's relevant.
- Operating system:
- Project version/tag:
- Rust version (run `rustup show`):

**Logs, Errors or Screenshots**

> Please provide the text of any logs or errors that you experienced; if applicable, provide screenshots to help illustrate the problem.
**Additional Information**

> Please add any other details that you think may help us solve your problem.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Custom issue template
about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''

---


13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Description
{write description of what the feature should be}

## Required Tasks
- [ ] {task 1}
- [ ] {task 2}
- [ ] ...

## Expired(Estimating).
{When finished this task?}

## Dependencies
{Dependencies issue or PR.}
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/future_task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Future task issue template
about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''

---

# Description
{write description of what the feature should be}

## Required Tasks
- [ ] {task 1}
- [ ] {task 2}
- [ ] ...

## Estimated done.
{When finished this task?}

## Dependencies
{Dependencies issue or PR.}
29 changes: 29 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
**Pull Request Summary**

> Describe what changes this pull request makes to the repository
**Check list**
- [ ] contains breaking changes
- [ ] adds new feature
- [ ] modifies existing feature (bug fix or improvements)
- [ ] updated spec version
- [ ] relies on other tasks
- [ ] documentation changes
- [ ] tests and/or benchmarks are included
- [ ] changed API client type definition or chain metadata

**This pull request makes the following changes:**

**Adds**
- (ex: Add feature A)

**Fixes**
- (ex: Fix validation function)

**Changes**
- (ex: Change document B)

**To-dos**
> *Feel free to remove this section if it's not applicable
- [ ] (ex: add user list)
13 changes: 13 additions & 0 deletions .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: fmt
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
- name: Checkout the source code
uses: actions/checkout@master
- name: Check targets are installed correctly
run: rustup target list --installed
- name: Check fmt
run: cargo fmt -- --check
73 changes: 73 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
on: [push]

name: Integration

env:
RUST_VERSION: 'nightly-2021-11-01'

jobs:
native:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ env.RUST_VERSION }}
targets: 'wasm32-unknown-unknown'

- name: Checkout the source code
uses: actions/checkout@master
with:
submodules: true

- name: Check targets are installed correctly
run: rustup target list --installed

- name: Run all tests
run: cargo test --all

- name: Cleanup after tests
run: cargo clean

- name: Build optimized binary
run: cargo check --release --verbose

runtime-benchmarks:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ env.RUST_VERSION }}
targets: 'wasm32-unknown-unknown'

- name: Checkout the source code
uses: actions/checkout@master
with:
submodules: true

- name: Check targets are installed correctly
run: rustup target list --installed

- name: Build optimized binary for benchmarking
run: cargo check --release --features runtime-benchmarks

try-runtime:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ env.RUST_VERSION }}
targets: 'wasm32-unknown-unknown'

- name: Checkout the source code
uses: actions/checkout@master
with:
submodules: true

- name: Check targets are installed correctly
run: rustup target list --installed

- name: Check try-runtime compilation
run: cargo check --release --features try-runtime
144 changes: 144 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
# Created by https://www.gitignore.io/api/rust,macos,linux,jetbrains
# Edit at https://www.gitignore.io/?templates=rust,macos,linux,jetbrains

### JetBrains ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### JetBrains Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721

# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr

# Sonarlint plugin
.idea/sonarlint

.idea/**

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Rust ###
# Generated by Cargo
# will have compiled files and executables
**/target/**

# These are backup files generated by rustfmt
**/*.rs.bk

# End of https://www.gitignore.io/api/rust,macos,linux,jetbrains

### build-for-debian ###
**/target-debian/**

# Testnet keys
.keys

.vscode

0 comments on commit 02203f8

Please sign in to comment.