Happy new year (#7814)

* Happy new year

Updates the copyright years and fixes wrong license headers.

* Fix the template

* Split HEADER into HEADER-APACHE & HEADER-GPL
This commit is contained in:
Bastian Köcher
2021-01-04 10:03:13 +01:00
committed by GitHub
parent e367d57baf
commit e3e651f72c
923 changed files with 1975 additions and 1740 deletions
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
+5 -6
View File
@@ -1,15 +1,14 @@
#!/usr/bin/env bash #!/usr/bin/env bash
SINGLE_DATES=$(grep -lr "// Copyright [0-9]* Parity Technologies (UK) Ltd.") SINGLE_DATES=$(grep -lr "// Copyright (C) [0-9]* Parity Technologies (UK) Ltd.")
RANGE_DATES=$(grep -lr "// Copyright [0-9]*-[0-9]* Parity Technologies (UK) Ltd.")
YEAR=$(date +%Y) YEAR=$(date +%Y)
for file in $SINGLE_DATES; do for file in $SINGLE_DATES; do
FILE_YEAR=$(cat $file | sed -n "s|// Copyright \([[:digit:]][[:digit:]][[:digit:]][[:digit:]]\) Parity Technologies (UK) Ltd.|\1|p") FILE_YEAR=$(cat $file | sed -n "s|// Copyright (C) \([[:digit:]][[:digit:]][[:digit:]][[:digit:]]\) Parity Technologies (UK) Ltd.|\1|p")
if [ $YEAR -ne $FILE_YEAR ]; then if [ $YEAR -ne $FILE_YEAR ]; then
sed -i -e "s|// Copyright \([[:digit:]][[:digit:]][[:digit:]][[:digit:]]\) Parity Technologies (UK) Ltd.|// Copyright \1-$YEAR Parity Technologies (UK) Ltd.|g" $file sed -i -e "s|// Copyright (C) \([[:digit:]][[:digit:]][[:digit:]][[:digit:]]\) Parity Technologies (UK) Ltd.|// Copyright (C) \1-$YEAR Parity Technologies (UK) Ltd.|g" $file
fi fi
done done
grep -lr "// Copyright [0-9]*-[0-9]* Parity Technologies (UK) Ltd." | grep -lr "// Copyright (C) [0-9]*-[0-9]* Parity Technologies (UK) Ltd." |
xargs sed -i -e "s|// Copyright \([[:digit:]][[:digit:]][[:digit:]][[:digit:]]\)-[[:digit:]][[:digit:]][[:digit:]][[:digit:]] Parity Technologies (UK) Ltd.|// Copyright \1-$YEAR Parity Technologies (UK) Ltd.|g" xargs sed -i -e "s|// Copyright (C) \([[:digit:]][[:digit:]][[:digit:]][[:digit:]]\)-[[:digit:]][[:digit:]][[:digit:]][[:digit:]] Parity Technologies (UK) Ltd.|// Copyright (C) \1-$YEAR Parity Technologies (UK) Ltd.|g"
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,15 +1,17 @@
// Copyright 2017-2020 Parity Technologies (UK) Ltd.
// This file is part of Substrate. // This file is part of Substrate.
// Substrate is free software: you can redistribute it and/or modify // Copyright (C) 2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// 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 // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// Substrate is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
+2 -3
View File
@@ -1,7 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -45,4 +44,4 @@ impl SizeType {
SizeType::Custom(val) => Some(*val), SizeType::Custom(val) => Some(*val),
} }
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+9 -7
View File
@@ -1,18 +1,20 @@
// Copyright 2015-2020 Parity Technologies (UK) Ltd. // This file is part of Substrate.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// 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 // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// Parity is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
/// Kusama value size distribution /// Kusama value size distribution
pub const KUSAMA_STATE_DISTRIBUTION: &'static[(u32, u32)] = &[ pub const KUSAMA_STATE_DISTRIBUTION: &'static[(u32, u32)] = &[
@@ -4753,4 +4755,4 @@ pub const KUSAMA_STATE_DISTRIBUTION: &'static[(u32, u32)] = &[
(1516670, 1), (1516670, 1),
(1605731, 1), (1605731, 1),
(1605821, 1), (1605821, 1),
]; ];
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2019-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// //
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2019-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2019-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2019-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2019-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2019-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2019-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2019-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2019-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2019-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2019-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2019-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2019-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+7 -5
View File
@@ -1,18 +1,20 @@
// Copyright 2019-2020 Parity Technologies (UK) Ltd.
// This file is part of Substrate. // This file is part of Substrate.
// Substrate is free software: you can redistribute it and/or modify // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// 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 // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// Substrate is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
//! A set of APIs supported by the client along with their primitives. //! A set of APIs supported by the client along with their primitives.
@@ -1,18 +1,20 @@
// Copyright 2019-2020 Parity Technologies (UK) Ltd.
// This file is part of Substrate. // This file is part of Substrate.
// Substrate is free software: you can redistribute it and/or modify // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// 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 // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// Substrate is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
//! Execution extensions for runtime calls. //! Execution extensions for runtime calls.
//! //!
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+7 -5
View File
@@ -1,18 +1,20 @@
// Copyright 2019-2020 Parity Technologies (UK) Ltd.
// This file is part of Substrate. // This file is part of Substrate.
// Substrate is free software: you can redistribute it and/or modify // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// 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 // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// Substrate is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
//! Substrate client interfaces. //! Substrate client interfaces.
#![warn(missing_docs)] #![warn(missing_docs)]
+7 -5
View File
@@ -1,18 +1,20 @@
// Copyright 2019-2020 Parity Technologies (UK) Ltd.
// This file is part of Substrate. // This file is part of Substrate.
// Substrate is free software: you can redistribute it and/or modify // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// 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 // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// Substrate is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
//! Substrate light client interfaces //! Substrate light client interfaces
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,18 +1,20 @@
// Copyright 2019-2020 Parity Technologies (UK) Ltd.
// This file is part of Substrate. // This file is part of Substrate.
// Substrate is free software: you can redistribute it and/or modify // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// 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 // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// Substrate is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
//! Authority discovery errors. //! Authority discovery errors.
@@ -1,18 +1,20 @@
// Copyright 2020 Parity Technologies (UK) Ltd.
// This file is part of Substrate. // This file is part of Substrate.
// Substrate is free software: you can redistribute it and/or modify // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// 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 // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// Substrate is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
use futures::stream::Stream; use futures::stream::Stream;
use futures::future::FutureExt; use futures::future::FutureExt;
@@ -1,18 +1,20 @@
// Copyright 2019-2020 Parity Technologies (UK) Ltd.
// This file is part of Substrate. // This file is part of Substrate.
// Substrate is free software: you can redistribute it and/or modify // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// 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 // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// Substrate is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
#![warn(missing_docs)] #![warn(missing_docs)]
#![recursion_limit = "1024"] #![recursion_limit = "1024"]
@@ -1,18 +1,20 @@
// Copyright 2020 Parity Technologies (UK) Ltd.
// This file is part of Substrate. // This file is part of Substrate.
// Substrate is free software: you can redistribute it and/or modify // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// 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 // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// Substrate is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
use crate::ServicetoWorkerMsg; use crate::ServicetoWorkerMsg;
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,18 +1,20 @@
// Copyright 2020 Parity Technologies (UK) Ltd.
// This file is part of Substrate. // This file is part of Substrate.
// Substrate is free software: you can redistribute it and/or modify // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// 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 // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// Substrate is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
use crate::{error::{Error, Result}, interval::ExpIncInterval, ServicetoWorkerMsg}; use crate::{error::{Error, Result}, interval::ExpIncInterval, ServicetoWorkerMsg};
@@ -1,18 +1,20 @@
// Copyright 2019-2020 Parity Technologies (UK) Ltd.
// This file is part of Substrate. // This file is part of Substrate.
// Substrate is free software: you can redistribute it and/or modify // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// 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 // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// Substrate is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
use libp2p::core::multiaddr::{Multiaddr, Protocol}; use libp2p::core::multiaddr::{Multiaddr, Protocol};
use rand::seq::SliceRandom; use rand::seq::SliceRandom;
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,18 +1,20 @@
// Copyright 2019-2020 Parity Technologies (UK) Ltd.
// This file is part of Substrate. // This file is part of Substrate.
// Substrate is free software: you can redistribute it and/or modify // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// 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 // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// Substrate is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
use proc_macro2::{Span, TokenStream}; use proc_macro2::{Span, TokenStream};
use quote::quote; use quote::quote;
@@ -1,18 +1,20 @@
// Copyright 2019-2020 Parity Technologies (UK) Ltd.
// This file is part of Substrate. // This file is part of Substrate.
// Substrate is free software: you can redistribute it and/or modify // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// 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 // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// Substrate is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
//! Macros to derive chain spec extension traits implementation. //! Macros to derive chain spec extension traits implementation.
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+7 -5
View File
@@ -1,18 +1,20 @@
// Copyright 2019-2020 Parity Technologies (UK) Ltd.
// This file is part of Substrate. // This file is part of Substrate.
// Substrate is free software: you can redistribute it and/or modify // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// 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 // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// Substrate is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
//! Chain Spec extensions helpers. //! Chain Spec extensions helpers.
+7 -5
View File
@@ -1,18 +1,20 @@
// Copyright 2019-2020 Parity Technologies (UK) Ltd.
// This file is part of Substrate. // This file is part of Substrate.
// Substrate is free software: you can redistribute it and/or modify // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// 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 // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// Substrate is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
//! Substrate chain configurations. //! Substrate chain configurations.
//! //!
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2020 Parity Technologies (UK) Ltd. // Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate. // This file is part of Substrate.
// Copyright (C) 2018-2020 Parity Technologies (UK) Ltd. // Copyright (C) 2018-2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 // SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify

Some files were not shown because too many files have changed in this diff Show More