Skip to content

Commit

Permalink
initial parachain-template
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekaanth committed Sep 26, 2023
1 parent e986808 commit 7bc3fef
Show file tree
Hide file tree
Showing 61 changed files with 12,580 additions and 5,521 deletions.
25 changes: 0 additions & 25 deletions .devcontainer/devcontainer.json

This file was deleted.

9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.git
**/target/
**/*.txt
**/*.md
/docker/
!/target/release/polkadot-collator

# dotfiles in the repo root
/.*
33 changes: 23 additions & 10 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
root = true

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

[*.{rs,toml}]
indent_style=tab
indent_size=tab
tab_width=4
end_of_line=lf
charset=utf-8
trim_trailing_whitespace=true
max_line_length=100
insert_final_newline=true

[*.yml]
indent_style=space
indent_size=2
tab_width=8
end_of_line=lf

[*.sh]
indent_style=space
indent_size=4
tab_width=8
end_of_line=lf

[*.json]
indent_style=space
indent_size=2
tab_width=8
end_of_line=lf

12 changes: 0 additions & 12 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/build-publish-image.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Build, test and lint

on:
push:
branches:
- release-**
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: Free up space on runner
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Rust Setup
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: wasm32-unknown-unknown
override: true
components: rustfmt, clippy

- name: Install protoc
run: |
sudo apt-get install -y protobuf-compiler
protoc --version
- uses: actions/checkout@v3

- name: Rustfmt
uses: actions-rs/cargo@v1
with:
toolchain: stable
command: fmt
args: --all --check

- name: Rust Cache
uses: Swatinem/[email protected]
with:
cache-on-failure: true
cache-all-crates: true

- name: Check Build
run: |
cargo check --release
- name: Run tests
run: cargo test --release --locked --verbose --all

- name: Check try-runtime build
run: cargo check --release --features=try-runtime

- name: Ensure benchmarking compiles
run: >
pushd node &&
cargo check --release --features=runtime-benchmarks
44 changes: 0 additions & 44 deletions .github/workflows/check.yml

This file was deleted.

29 changes: 24 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
# Generated by Cargo
# will have compiled files and executables
# Cargo compiled files and executables
**/target/

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

# Local chain databases (defalut location)
**/chains/

# The cache for chain data in container
.local

# The cache for docker container dependency
/.cargo/config

.DS_Store
.idea
.vscode

# polkadot-launch logs
*.log

# node binaries
bin/*

# zombienet binaries
zombienet-macos
zombient-linux-x64

# direnv files
.envrc
.direnv
polkadot-sdk/*
14 changes: 9 additions & 5 deletions rustfmt.toml → .rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,26 @@
hard_tabs = true
max_width = 100
use_small_heuristics = "Max"

# Imports
imports_granularity = "Crate"
reorder_imports = true

# Consistency
newline_style = "Unix"

# Format comments
comment_width = 100
wrap_comments = true

# Misc
chain_width = 80
spaces_around_ranges = false
binop_separator = "Back"
reorder_impl_items = false
match_arm_leading_pipes = "Preserve"
chain_width = 80
match_arm_blocks = false
match_arm_leading_pipes = "Preserve"
match_block_trailing_comma = true
reorder_impl_items = false
spaces_around_ranges = false
trailing_comma = "Vertical"
trailing_semicolon = false
use_field_init_shorthand = true
use_field_init_shorthand = true
37 changes: 0 additions & 37 deletions .vscode/tasks.json

This file was deleted.

1 change: 0 additions & 1 deletion CODEOWNERS

This file was deleted.

Loading

0 comments on commit 7bc3fef

Please sign in to comment.