Skip to content

Commit

Permalink
Merge pull request #24 from Metaquity-Network/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Ekaanth authored Dec 11, 2023
2 parents e986808 + 6bd4c14 commit a4bc105
Show file tree
Hide file tree
Showing 68 changed files with 13,576 additions and 5,307 deletions.
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
**/target/
**/*.txt
**/*.md
/docker/
Dockerfile
!/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

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/chain-specs/*.json filter=lfs diff=lfs merge=lfs -text
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.

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

on:
push:
branches: ["**"]

workflow_dispatch:

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: Install protoc
run: |
sudo apt-get install -y protobuf-compiler
protoc --version
- uses: actions/checkout@v3

- name: Rust Setup
uses: dtolnay/rust-toolchain@master
with:
targets: wasm32-unknown-unknown
toolchain: nightly-2023-05-22

- name: Rustfmt
uses: actions-rs/cargo@v1
with:
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.

27 changes: 22 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
# 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/*

# direnv files
.envrc
.direnv
# zombienet binaries
zombienet-macos
zombient-linux-x64
13 changes: 3 additions & 10 deletions rustfmt.toml → .rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,15 @@
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"
match_arm_blocks = false
match_block_trailing_comma = true
trailing_comma = "Vertical"
trailing_semicolon = false
use_field_init_shorthand = true
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.formatOnSave": true
}
}
1 change: 0 additions & 1 deletion CODEOWNERS

This file was deleted.

Loading

0 comments on commit a4bc105

Please sign in to comment.