From a59ea80cecbee507488270baa3cd8df9e5c9a833 Mon Sep 17 00:00:00 2001
From: Aaron Bassett <aaronbassett@gmail.com>
Date: Mon, 27 Mar 2023 22:36:20 +0200
Subject: [PATCH] Change license of node-template and FRAME examples to MIT-0
 (#13465)

* Change node-template license from Unlicense to MIT-0

* Change frame examples license from Unlicense to MIT-0

* Update bin/node-template/LICENSE

---------

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: parity-processbot <>
---
 substrate/bin/node-template/LICENSE           | 34 +++++++------------
 substrate/bin/node-template/node/Cargo.toml   |  2 +-
 .../node-template/pallets/template/Cargo.toml |  2 +-
 .../node-template/pallets/template/README.md  |  2 +-
 .../bin/node-template/runtime/Cargo.toml      |  2 +-
 substrate/frame/examples/basic/Cargo.toml     |  2 +-
 substrate/frame/examples/basic/README.md      |  2 +-
 .../frame/examples/offchain-worker/Cargo.toml |  2 +-
 .../frame/examples/offchain-worker/README.md  |  2 +-
 9 files changed, 21 insertions(+), 29 deletions(-)

diff --git a/substrate/bin/node-template/LICENSE b/substrate/bin/node-template/LICENSE
index cf1ab25da03..ffa0b3f2df0 100644
--- a/substrate/bin/node-template/LICENSE
+++ b/substrate/bin/node-template/LICENSE
@@ -1,24 +1,16 @@
-This is free and unencumbered software released into the public domain.
+MIT No Attribution
 
-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.
+Copyright Parity Technologies (UK) Ltd.
 
-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.
+Permission is hereby granted, free of charge, to any person obtaining a copy of this
+software and associated documentation files (the "Software"), to deal in the Software
+without restriction, including without limitation the rights to use, copy, modify,
+merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so.
 
-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 <http://unlicense.org>
+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 OR COPYRIGHT
+HOLDERS 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.
\ No newline at end of file
diff --git a/substrate/bin/node-template/node/Cargo.toml b/substrate/bin/node-template/node/Cargo.toml
index 979c00120dd..ac64b8881ca 100644
--- a/substrate/bin/node-template/node/Cargo.toml
+++ b/substrate/bin/node-template/node/Cargo.toml
@@ -5,7 +5,7 @@ description = "A fresh FRAME-based Substrate node, ready for hacking."
 authors = ["Substrate DevHub <https://github.com/substrate-developer-hub>"]
 homepage = "https://substrate.io/"
 edition = "2021"
-license = "Unlicense"
+license = "MIT-0"
 publish = false
 repository = "https://github.com/substrate-developer-hub/substrate-node-template/"
 build = "build.rs"
diff --git a/substrate/bin/node-template/pallets/template/Cargo.toml b/substrate/bin/node-template/pallets/template/Cargo.toml
index f6607b25c4d..ddf7c6e52fb 100644
--- a/substrate/bin/node-template/pallets/template/Cargo.toml
+++ b/substrate/bin/node-template/pallets/template/Cargo.toml
@@ -5,7 +5,7 @@ description = "FRAME pallet template for defining custom runtime logic."
 authors = ["Substrate DevHub <https://github.com/substrate-developer-hub>"]
 homepage = "https://substrate.io"
 edition = "2021"
-license = "Unlicense"
+license = "MIT-0"
 publish = false
 repository = "https://github.com/substrate-developer-hub/substrate-node-template/"
 
diff --git a/substrate/bin/node-template/pallets/template/README.md b/substrate/bin/node-template/pallets/template/README.md
index 8d751a42207..d0d59537c12 100644
--- a/substrate/bin/node-template/pallets/template/README.md
+++ b/substrate/bin/node-template/pallets/template/README.md
@@ -1 +1 @@
-License: Unlicense
\ No newline at end of file
+License: MIT-0
\ No newline at end of file
diff --git a/substrate/bin/node-template/runtime/Cargo.toml b/substrate/bin/node-template/runtime/Cargo.toml
index 90fa6269ebe..8915061c17c 100644
--- a/substrate/bin/node-template/runtime/Cargo.toml
+++ b/substrate/bin/node-template/runtime/Cargo.toml
@@ -5,7 +5,7 @@ description = "A fresh FRAME-based Substrate node, ready for hacking."
 authors = ["Substrate DevHub <https://github.com/substrate-developer-hub>"]
 homepage = "https://substrate.io/"
 edition = "2021"
-license = "Unlicense"
+license = "MIT-0"
 publish = false
 repository = "https://github.com/substrate-developer-hub/substrate-node-template/"
 
diff --git a/substrate/frame/examples/basic/Cargo.toml b/substrate/frame/examples/basic/Cargo.toml
index 47f623f4538..2f854011b0a 100644
--- a/substrate/frame/examples/basic/Cargo.toml
+++ b/substrate/frame/examples/basic/Cargo.toml
@@ -3,7 +3,7 @@ name = "pallet-example-basic"
 version = "4.0.0-dev"
 authors = ["Parity Technologies <admin@parity.io>"]
 edition = "2021"
-license = "Unlicense"
+license = "MIT-0"
 homepage = "https://substrate.io"
 repository = "https://github.com/paritytech/substrate/"
 description = "FRAME example pallet"
diff --git a/substrate/frame/examples/basic/README.md b/substrate/frame/examples/basic/README.md
index 358829192f1..2af50573f80 100644
--- a/substrate/frame/examples/basic/README.md
+++ b/substrate/frame/examples/basic/README.md
@@ -237,4 +237,4 @@ pub trait Config: <INSERT_CUSTOM_PALLET_NAME>::Config { }
 // that the implementation is based on.
 </pre></p></details>
 
-License: Unlicense
+License: MIT-0
diff --git a/substrate/frame/examples/offchain-worker/Cargo.toml b/substrate/frame/examples/offchain-worker/Cargo.toml
index f94cf36b2b9..fb4c12ae0b6 100644
--- a/substrate/frame/examples/offchain-worker/Cargo.toml
+++ b/substrate/frame/examples/offchain-worker/Cargo.toml
@@ -3,7 +3,7 @@ name = "pallet-example-offchain-worker"
 version = "4.0.0-dev"
 authors = ["Parity Technologies <admin@parity.io>"]
 edition = "2021"
-license = "Unlicense"
+license = "MIT-0"
 homepage = "https://substrate.io"
 repository = "https://github.com/paritytech/substrate/"
 description = "FRAME example pallet for offchain worker"
diff --git a/substrate/frame/examples/offchain-worker/README.md b/substrate/frame/examples/offchain-worker/README.md
index 587431c92c0..7b8905cda30 100644
--- a/substrate/frame/examples/offchain-worker/README.md
+++ b/substrate/frame/examples/offchain-worker/README.md
@@ -26,4 +26,4 @@ Additional logic in OCW is put in place to prevent spamming the network with bot
 and unsigned transactions, and custom `UnsignedValidator` makes sure that there is only
 one unsigned transaction floating in the network.
 
-License: Unlicense
+License: MIT-0
-- 
GitLab