From 538271026100ae9a6a9918ff9b4c40af023046b7 Mon Sep 17 00:00:00 2001 From: Sergej Date: Thu, 11 Apr 2024 16:57:18 +0200 Subject: [PATCH] Add GPL license --- LICENSE | 33 +++++++------------ node/build.rs | 15 +++++++++ node/src/chain_spec.rs | 15 +++++++++ node/src/cli.rs | 15 +++++++++ node/src/command.rs | 15 +++++++++ node/src/main.rs | 15 +++++++++ node/src/rpc.rs | 15 +++++++++ node/src/service.rs | 15 +++++++++ pallets/template/src/benchmarking.rs | 15 +++++++++ pallets/template/src/lib.rs | 15 +++++++++ pallets/template/src/mock.rs | 15 +++++++++ pallets/template/src/tests.rs | 15 +++++++++ runtime/primitives/src/lib.rs | 15 +++++++++ runtime/regionx/build.rs | 15 +++++++++ runtime/regionx/src/ismp.rs | 15 +++++++++ runtime/regionx/src/lib.rs | 15 +++++++++ runtime/regionx/src/weights/block_weights.rs | 15 +++++++++ .../regionx/src/weights/extrinsic_weights.rs | 15 +++++++++ runtime/regionx/src/weights/mod.rs | 15 +++++++++ .../regionx/src/weights/paritydb_weights.rs | 15 +++++++++ .../regionx/src/weights/rocksdb_weights.rs | 15 +++++++++ runtime/regionx/src/xcm_config.rs | 15 +++++++++ 22 files changed, 327 insertions(+), 21 deletions(-) diff --git a/LICENSE b/LICENSE index cf1ab25d..2e9e5513 100644 --- a/LICENSE +++ b/LICENSE @@ -1,24 +1,15 @@ -This is free and unencumbered software released into the public domain. +RegionX +Copyright (C) 2024 Master Union -Anyone is free to copy, modify, publish, use, compile, sell, or -distribute this software, either in source code form or as a compiled -binary, for any purpose, commercial or non-commercial, and by any -means. +This program 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. -In jurisdictions that recognize copyright laws, the author or authors -of this software dedicate any and all copyright interest in the -software to the public domain. We make this dedication for the benefit -of the public at large and to the detriment of our heirs and -successors. We intend this dedication to be an overt act of -relinquishment in perpetuity of all present and future rights to this -software under copyright law. +This program 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. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR -OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - -For more information, please refer to +You should have received a copy of the GNU General Public License +along with this program. If not, see . diff --git a/node/build.rs b/node/build.rs index e3bfe311..f6a1539c 100644 --- a/node/build.rs +++ b/node/build.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + use substrate_build_script_utils::{generate_cargo_keys, rerun_if_git_head_changed}; fn main() { diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index 96212e13..d4f5eb81 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + use cumulus_primitives_core::ParaId; use regionx_primitives::{AccountId, Signature}; use regionx_runtime::{AuraId, EXISTENTIAL_DEPOSIT}; diff --git a/node/src/cli.rs b/node/src/cli.rs index 647d01ef..6cb232c6 100644 --- a/node/src/cli.rs +++ b/node/src/cli.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + use std::path::PathBuf; /// Sub-commands supported by the collator. diff --git a/node/src/command.rs b/node/src/command.rs index c50e2ecd..42a54e48 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + use std::net::SocketAddr; use cumulus_primitives_core::ParaId; diff --git a/node/src/main.rs b/node/src/main.rs index ba9f28b3..b4326f62 100644 --- a/node/src/main.rs +++ b/node/src/main.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + //! Substrate Parachain Node Template CLI #![warn(missing_docs)] diff --git a/node/src/rpc.rs b/node/src/rpc.rs index bdf79049..2a8de6fc 100644 --- a/node/src/rpc.rs +++ b/node/src/rpc.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + //! A collection of node-specific RPC methods. //! Substrate provides the `sc-rpc` crate, which defines the core RPC layer //! used by Substrate nodes. This file extends those RPC definitions with diff --git a/node/src/service.rs b/node/src/service.rs index af74a9c5..d00c2cd8 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + //! Service and ServiceFactory implementation. Specialized wrapper over substrate service. // std diff --git a/pallets/template/src/benchmarking.rs b/pallets/template/src/benchmarking.rs index 8bba2a09..354f8f51 100644 --- a/pallets/template/src/benchmarking.rs +++ b/pallets/template/src/benchmarking.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + //! Benchmarking setup for pallet-parachain-template use super::*; diff --git a/pallets/template/src/lib.rs b/pallets/template/src/lib.rs index 5f3252bf..80137287 100644 --- a/pallets/template/src/lib.rs +++ b/pallets/template/src/lib.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + #![cfg_attr(not(feature = "std"), no_std)] /// Edit this file to define custom logic or remove it if it is not needed. diff --git a/pallets/template/src/mock.rs b/pallets/template/src/mock.rs index 6a7d1da9..2c9783aa 100644 --- a/pallets/template/src/mock.rs +++ b/pallets/template/src/mock.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + use frame_support::{parameter_types, traits::Everything}; use frame_system as system; use sp_core::H256; diff --git a/pallets/template/src/tests.rs b/pallets/template/src/tests.rs index 527aec8e..a5a38896 100644 --- a/pallets/template/src/tests.rs +++ b/pallets/template/src/tests.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + use crate::{mock::*, Error}; use frame_support::{assert_noop, assert_ok}; diff --git a/runtime/primitives/src/lib.rs b/runtime/primitives/src/lib.rs index 7b061e68..b0117db2 100644 --- a/runtime/primitives/src/lib.rs +++ b/runtime/primitives/src/lib.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + #![cfg_attr(not(feature = "std"), no_std)] use sp_runtime::{ diff --git a/runtime/regionx/build.rs b/runtime/regionx/build.rs index 02d6973f..b3aac5e8 100644 --- a/runtime/regionx/build.rs +++ b/runtime/regionx/build.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + #[cfg(feature = "std")] fn main() { substrate_wasm_builder::WasmBuilder::new() diff --git a/runtime/regionx/src/ismp.rs b/runtime/regionx/src/ismp.rs index 457587ab..82eca5a5 100644 --- a/runtime/regionx/src/ismp.rs +++ b/runtime/regionx/src/ismp.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + #[cfg(not(feature = "std"))] use crate::alloc::string::ToString; use crate::{AccountId, Ismp, IsmpParachain, ParachainInfo, Runtime, RuntimeEvent, Timestamp}; diff --git a/runtime/regionx/src/lib.rs b/runtime/regionx/src/lib.rs index bd00a184..ce92f9b9 100644 --- a/runtime/regionx/src/lib.rs +++ b/runtime/regionx/src/lib.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + #![cfg_attr(not(feature = "std"), no_std)] // `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256. #![recursion_limit = "256"] diff --git a/runtime/regionx/src/weights/block_weights.rs b/runtime/regionx/src/weights/block_weights.rs index b2092d87..58a3cd31 100644 --- a/runtime/regionx/src/weights/block_weights.rs +++ b/runtime/regionx/src/weights/block_weights.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + // This file is part of Substrate. // Copyright (C) 2022 Parity Technologies (UK) Ltd. diff --git a/runtime/regionx/src/weights/extrinsic_weights.rs b/runtime/regionx/src/weights/extrinsic_weights.rs index 332c3b32..660511fa 100644 --- a/runtime/regionx/src/weights/extrinsic_weights.rs +++ b/runtime/regionx/src/weights/extrinsic_weights.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + // This file is part of Substrate. // Copyright (C) 2022 Parity Technologies (UK) Ltd. diff --git a/runtime/regionx/src/weights/mod.rs b/runtime/regionx/src/weights/mod.rs index ef1ab0d1..24679188 100644 --- a/runtime/regionx/src/weights/mod.rs +++ b/runtime/regionx/src/weights/mod.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + // This file is part of Substrate. // Copyright (C) 2022 Parity Technologies (UK) Ltd. diff --git a/runtime/regionx/src/weights/paritydb_weights.rs b/runtime/regionx/src/weights/paritydb_weights.rs index 4338d928..26f1fcbf 100644 --- a/runtime/regionx/src/weights/paritydb_weights.rs +++ b/runtime/regionx/src/weights/paritydb_weights.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + // This file is part of Substrate. // Copyright (C) 2022 Parity Technologies (UK) Ltd. diff --git a/runtime/regionx/src/weights/rocksdb_weights.rs b/runtime/regionx/src/weights/rocksdb_weights.rs index 1d115d96..4591f5db 100644 --- a/runtime/regionx/src/weights/rocksdb_weights.rs +++ b/runtime/regionx/src/weights/rocksdb_weights.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + // This file is part of Substrate. // Copyright (C) 2022 Parity Technologies (UK) Ltd. diff --git a/runtime/regionx/src/xcm_config.rs b/runtime/regionx/src/xcm_config.rs index 03b697f3..51f55038 100644 --- a/runtime/regionx/src/xcm_config.rs +++ b/runtime/regionx/src/xcm_config.rs @@ -1,3 +1,18 @@ +// This file is part of RegionX. +// +// RegionX 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. +// +// RegionX 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 RegionX. If not, see . + use super::{ AccountId, AllPalletsWithSystem, Balances, ParachainInfo, ParachainSystem, PolkadotXcm, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, WeightToFee, XcmpQueue,