Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #27 from PureStake/elois-licensing-and-copyright
Browse files Browse the repository at this point in the history
apply purestake licensing and copyright
  • Loading branch information
librelois authored Dec 2, 2021
2 parents 7d54dc6 + bda8f44 commit 828f6e3
Show file tree
Hide file tree
Showing 13 changed files with 760 additions and 58 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ on:
- main

jobs:
check:
name: Check
cargo-check:
name: Cargo check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
Expand All @@ -28,4 +28,20 @@ jobs:
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
command: check

check-copyright:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Find un-copyrighted files
run: |
find . -name '*.rs' -not -path "*/parachain-template/*" -exec grep -H -E -o -c Copyright {} \; | grep ':0' || true
FILECOUNT=$(find . -name '*.rs' -not -path "*/parachain-template/*" -exec grep -H -E -o -c 'Copyright' {} \; | grep -c ':0' || true)
if [[ $FILECOUNT -eq 0 ]]; then
true
else
false
fi
4 changes: 0 additions & 4 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@
reorder_imports = true
hard_tabs = true
max_width = 100

# TODO: add template for license checking.
# this will still fail for some licenses where e.g. Parity's license is used
# license_template_path = "FILE_TEMPLATE"
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions nimbus-consensus/src/import_queue.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// Copyright 2019 Parity Technologies (UK) Ltd.
// This file is part of Cumulus.
// Copyright 2019-2021 PureStake Inc.
// This file is part of Nimbus.

// Cumulus is free software: you can redistribute it and/or modify
// Nimbus is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Cumulus is distributed in the hope that it will be useful,
// Nimbus is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
// along with Nimbus. If not, see <http://www.gnu.org/licenses/>.

use std::{marker::PhantomData, sync::Arc};

Expand Down
10 changes: 5 additions & 5 deletions nimbus-consensus/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// Copyright 2021 Parity Technologies (UK) Ltd.
// This file is part of Cumulus.
// Copyright 2019-2021 PureStake Inc.
// This file is part of Nimbus.

// Cumulus is free software: you can redistribute it and/or modify
// Nimbus is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Cumulus is distributed in the hope that it will be useful,
// Nimbus is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
// along with Nimbus. If not, see <http://www.gnu.org/licenses/>.

//! The nimbus consensus client-side worker
//!
Expand Down
16 changes: 16 additions & 0 deletions nimbus-primitives/src/digests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2019-2021 PureStake Inc.
// This file is part of Nimbus.

// Nimbus is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Nimbus is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Nimbus. If not, see <http://www.gnu.org/licenses/>.

//! A convenient interface over the digests used in nimbus.
//!
//! Currently Nimbus has two digests;
Expand Down
16 changes: 16 additions & 0 deletions nimbus-primitives/src/inherents.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2019-2021 PureStake Inc.
// This file is part of Nimbus.

// Nimbus is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Nimbus is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Nimbus. If not, see <http://www.gnu.org/licenses/>.

use sp_inherents::{InherentData, InherentIdentifier};
use parity_scale_codec::Encode;

Expand Down
10 changes: 5 additions & 5 deletions nimbus-primitives/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// Copyright 2021 Parity Technologies (UK) Ltd.
// This file is part of Cumulus.
// Copyright 2019-2021 PureStake Inc.
// This file is part of Nimbus.

// Cumulus is free software: you can redistribute it and/or modify
// Nimbus is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Cumulus is distributed in the hope that it will be useful,
// Nimbus is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
// along with Nimbus. If not, see <http://www.gnu.org/licenses/>.

//! Nimbus Consensus Primitives
//!
Expand Down
10 changes: 5 additions & 5 deletions pallets/aura-style-filter/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// Copyright 2021 Parity Technologies (UK) Ltd.
// This file is part of Cumulus.
// Copyright 2019-2021 PureStake Inc.
// This file is part of Nimbus.

// Cumulus is free software: you can redistribute it and/or modify
// Nimbus is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Cumulus is distributed in the hope that it will be useful,
// Nimbus is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
// along with Nimbus. If not, see <http://www.gnu.org/licenses/>.

//! A Nimbus filter for the AuRa consensus algorithm. This filter does not use any entropy, it
//! simply rotates authors in order. A single author is eligible at each slot.
Expand Down
10 changes: 5 additions & 5 deletions pallets/author-inherent/src/exec.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// Copyright 2021 Parity Technologies (UK) Ltd.
// This file is part of Cumulus.
// Copyright 2019-2021 PureStake Inc.
// This file is part of Nimbus.

// Cumulus is free software: you can redistribute it and/or modify
// Nimbus is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Cumulus is distributed in the hope that it will be useful,
// Nimbus is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
// along with Nimbus. If not, see <http://www.gnu.org/licenses/>.

//! Block executive to be used by relay chain validators when validating parachain blocks built
//! with the nimubs consensus family.
Expand Down
10 changes: 5 additions & 5 deletions pallets/author-inherent/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// Copyright 2021 Parity Technologies (UK) Ltd.
// This file is part of Cumulus.
// Copyright 2019-2021 PureStake Inc.
// This file is part of Nimbus.

// Cumulus is free software: you can redistribute it and/or modify
// Nimbus is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Cumulus is distributed in the hope that it will be useful,
// Nimbus is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
// along with Nimbus. If not, see <http://www.gnu.org/licenses/>.

//! Pallet that allows block authors to include their identity in a block via an inherent.
//! Currently the author does not _prove_ their identity, just states it. So it should not be used,
Expand Down
10 changes: 5 additions & 5 deletions pallets/author-slot-filter/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// Copyright 2021 Parity Technologies (UK) Ltd.
// This file is part of Cumulus.
// Copyright 2019-2021 PureStake Inc.
// This file is part of Nimbus.

// Cumulus is free software: you can redistribute it and/or modify
// Nimbus is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Cumulus is distributed in the hope that it will be useful,
// Nimbus is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
// along with Nimbus. If not, see <http://www.gnu.org/licenses/>.

//! Small pallet responsible determining which accounts are eligible to author at the current
//! slot.
Expand Down
16 changes: 0 additions & 16 deletions parachain-template/runtime/src/pallet_account_set.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
// Copyright 2021 Parity Technologies (UK) Ltd.
// This file is part of Cumulus.

// Cumulus is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Cumulus is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.

//! Small pallet responsible for storing a set of accounts, and their associated session keys.
//! This is a minimal solution where staking would be used in practice.
//! The accounts are set and genesis and never change.
Expand Down

0 comments on commit 828f6e3

Please sign in to comment.