git.delta.rocks / unique-network / refs/commits / 95a6d9728b8c

difftreelog

fix insert missing licenses

Daniel Shiposha2022-06-09parent: #4469adb.patch.diff
in: master

17 files changed

modifiedpallets/proxy-rmrk-core/src/misc.rsdiffbeforeafterboth
--- a/pallets/proxy-rmrk-core/src/misc.rs
+++ b/pallets/proxy-rmrk-core/src/misc.rs
@@ -1,3 +1,19 @@
+// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network 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.
+
+// Unique Network 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 Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
 use super::*;
 use codec::{Encode, Decode, Error};
 
modifiedpallets/proxy-rmrk-core/src/property.rsdiffbeforeafterboth
--- a/pallets/proxy-rmrk-core/src/property.rs
+++ b/pallets/proxy-rmrk-core/src/property.rs
@@ -1,3 +1,19 @@
+// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network 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.
+
+// Unique Network 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 Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
 use super::*;
 use core::convert::AsRef;
 
modifiedprimitives/rmrk-rpc/src/lib.rsdiffbeforeafterboth
--- a/primitives/rmrk-rpc/src/lib.rs
+++ b/primitives/rmrk-rpc/src/lib.rs
@@ -1,3 +1,19 @@
+// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network 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.
+
+// Unique Network 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 Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
 #![cfg_attr(not(feature = "std"), no_std)]
 
 use sp_api::{Encode, Decode};
modifiedprimitives/rmrk-traits/src/base.rsdiffbeforeafterboth
--- a/primitives/rmrk-traits/src/base.rs
+++ b/primitives/rmrk-traits/src/base.rs
@@ -1,3 +1,7 @@
+// Copyright (C) 2021-2022 RMRK
+// This file is part of rmrk-substrate.
+// License: Apache 2.0 modified by RMRK, see https://github.com/rmrk-team/rmrk-substrate/blob/main/LICENSE
+
 use codec::{Decode, Encode, MaxEncodedLen};
 use scale_info::TypeInfo;
 
modifiedprimitives/rmrk-traits/src/collection.rsdiffbeforeafterboth
--- a/primitives/rmrk-traits/src/collection.rs
+++ b/primitives/rmrk-traits/src/collection.rs
@@ -1,3 +1,7 @@
+// Copyright (C) 2021-2022 RMRK
+// This file is part of rmrk-substrate.
+// License: Apache 2.0 modified by RMRK, see https://github.com/rmrk-team/rmrk-substrate/blob/main/LICENSE
+
 use codec::{Decode, Encode, MaxEncodedLen};
 use scale_info::TypeInfo;
 
modifiedprimitives/rmrk-traits/src/lib.rsdiffbeforeafterboth
--- a/primitives/rmrk-traits/src/lib.rs
+++ b/primitives/rmrk-traits/src/lib.rs
@@ -1,3 +1,7 @@
+// Copyright (C) 2021-2022 RMRK
+// This file is part of rmrk-substrate.
+// License: Apache 2.0 modified by RMRK, see https://github.com/rmrk-team/rmrk-substrate/blob/main/LICENSE
+
 #![cfg_attr(not(feature = "std"), no_std)]
 
 pub mod base;
modifiedprimitives/rmrk-traits/src/nft.rsdiffbeforeafterboth
--- a/primitives/rmrk-traits/src/nft.rs
+++ b/primitives/rmrk-traits/src/nft.rs
@@ -1,3 +1,7 @@
+// Copyright (C) 2021-2022 RMRK
+// This file is part of rmrk-substrate.
+// License: Apache 2.0 modified by RMRK, see https://github.com/rmrk-team/rmrk-substrate/blob/main/LICENSE
+
 use codec::{Decode, Encode, MaxEncodedLen};
 use scale_info::TypeInfo;
 
modifiedprimitives/rmrk-traits/src/part.rsdiffbeforeafterboth
--- a/primitives/rmrk-traits/src/part.rs
+++ b/primitives/rmrk-traits/src/part.rs
@@ -1,3 +1,7 @@
+// Copyright (C) 2021-2022 RMRK
+// This file is part of rmrk-substrate.
+// License: Apache 2.0 modified by RMRK, see https://github.com/rmrk-team/rmrk-substrate/blob/main/LICENSE
+
 use codec::{Decode, Encode, MaxEncodedLen};
 use scale_info::TypeInfo;
 
modifiedprimitives/rmrk-traits/src/property.rsdiffbeforeafterboth
--- a/primitives/rmrk-traits/src/property.rs
+++ b/primitives/rmrk-traits/src/property.rs
@@ -1,3 +1,7 @@
+// Copyright (C) 2021-2022 RMRK
+// This file is part of rmrk-substrate.
+// License: Apache 2.0 modified by RMRK, see https://github.com/rmrk-team/rmrk-substrate/blob/main/LICENSE
+
 use codec::{Decode, Encode};
 use scale_info::TypeInfo;
 
modifiedprimitives/rmrk-traits/src/resource.rsdiffbeforeafterboth
before · primitives/rmrk-traits/src/resource.rs
1use codec::{Decode, Encode, MaxEncodedLen};2use scale_info::TypeInfo;34#[cfg(feature = "std")]5use serde::Serialize;67#[cfg(feature = "std")]8use crate::serialize;910use crate::primitives::*;1112#[derive(Encode, Decode, Eq, PartialEq, Clone, Debug, TypeInfo, MaxEncodedLen)]13#[cfg_attr(feature = "std", derive(Serialize))]14#[cfg_attr(feature = "std", serde(bound = "BoundedString: AsRef<[u8]>"))]15pub struct BasicResource<BoundedString> {16	/// If the resource is Media, the base property is absent. Media src should be a URI like an17	/// IPFS hash.18	#[cfg_attr(feature = "std", serde(with = "serialize::opt_vec"))]19	pub src: Option<BoundedString>,2021	/// Reference to IPFS location of metadata22	#[cfg_attr(feature = "std", serde(with = "serialize::opt_vec"))]23	pub metadata: Option<BoundedString>,2425	/// Optional location or identier of license26	#[cfg_attr(feature = "std", serde(with = "serialize::opt_vec"))]27	pub license: Option<BoundedString>,2829	/// If the resource has the thumb property, this will be a URI to a thumbnail of the given30	/// resource. For example, if we have a composable NFT like a Kanaria bird, the resource is31	/// complex and too detailed to show in a search-results page or a list. Also, if a bird owns32	/// another bird, showing the full render of one bird inside the other's inventory might be a33	/// bit of a strain on the browser. For this reason, the thumb value can contain a URI to an34	/// image that is lighter and faster to load but representative of this resource.35	#[cfg_attr(feature = "std", serde(with = "serialize::opt_vec"))]36	pub thumb: Option<BoundedString>,37}3839#[derive(Encode, Decode, Eq, PartialEq, Clone, Debug, TypeInfo, MaxEncodedLen)]40#[cfg_attr(feature = "std", derive(Serialize))]41#[cfg_attr(42	feature = "std",43	serde(bound = r#"44			BoundedString: AsRef<[u8]>,45			BoundedParts: AsRef<[PartId]>46		"#)47)]48pub struct ComposableResource<BoundedString, BoundedParts> {49	/// If a resource is composed, it will have an array of parts that compose it50	#[cfg_attr(feature = "std", serde(with = "serialize::vec"))]51	pub parts: BoundedParts,5253	/// A Base is uniquely identified by the combination of the word `base`, its minting block54	/// number, and user provided symbol during Base creation, glued by dashes `-`, e.g.55	/// base-4477293-kanaria_superbird.56	pub base: BaseId,5758	/// If the resource is Media, the base property is absent. Media src should be a URI like an59	/// IPFS hash.60	#[cfg_attr(feature = "std", serde(with = "serialize::opt_vec"))]61	pub src: Option<BoundedString>,6263	/// Reference to IPFS location of metadata64	#[cfg_attr(feature = "std", serde(with = "serialize::opt_vec"))]65	pub metadata: Option<BoundedString>,6667	/// If the resource has the slot property, it was designed to fit into a specific Base's slot.68	/// The baseslot will be composed of two dot-delimited values, like so:69	/// "base-4477293-kanaria_superbird.machine_gun_scope". This means: "This resource is70	/// compatible with the machine_gun_scope slot of base base-4477293-kanaria_superbird7172	/// Optional location or identier of license73	#[cfg_attr(feature = "std", serde(with = "serialize::opt_vec"))]74	pub license: Option<BoundedString>,7576	/// If the resource has the thumb property, this will be a URI to a thumbnail of the given77	/// resource. For example, if we have a composable NFT like a Kanaria bird, the resource is78	/// complex and too detailed to show in a search-results page or a list. Also, if a bird owns79	/// another bird, showing the full render of one bird inside the other's inventory might be a80	/// bit of a strain on the browser. For this reason, the thumb value can contain a URI to an81	/// image that is lighter and faster to load but representative of this resource.82	#[cfg_attr(feature = "std", serde(with = "serialize::opt_vec"))]83	pub thumb: Option<BoundedString>,84}8586#[derive(Encode, Decode, Eq, PartialEq, Clone, Debug, TypeInfo, MaxEncodedLen)]87#[cfg_attr(feature = "std", derive(Serialize))]88#[cfg_attr(feature = "std", serde(bound = "BoundedString: AsRef<[u8]>"))]89pub struct SlotResource<BoundedString> {90	/// A Base is uniquely identified by the combination of the word `base`, its minting block91	/// number, and user provided symbol during Base creation, glued by dashes `-`, e.g.92	/// base-4477293-kanaria_superbird.93	pub base: BaseId,9495	/// If the resource is Media, the base property is absent. Media src should be a URI like an96	/// IPFS hash.97	#[cfg_attr(feature = "std", serde(with = "serialize::opt_vec"))]98	pub src: Option<BoundedString>,99100	/// Reference to IPFS location of metadata101	#[cfg_attr(feature = "std", serde(with = "serialize::opt_vec"))]102	pub metadata: Option<BoundedString>,103104	/// If the resource has the slot property, it was designed to fit into a specific Base's slot.105	/// The baseslot will be composed of two dot-delimited values, like so:106	/// "base-4477293-kanaria_superbird.machine_gun_scope". This means: "This resource is107	/// compatible with the machine_gun_scope slot of base base-4477293-kanaria_superbird108	pub slot: SlotId,109110	/// The license field, if present, should contain a link to a license (IPFS or static HTTP111	/// url), or an identifier, like RMRK_nocopy or ipfs://ipfs/someHashOfLicense.112	#[cfg_attr(feature = "std", serde(with = "serialize::opt_vec"))]113	pub license: Option<BoundedString>,114115	/// If the resource has the thumb property, this will be a URI to a thumbnail of the given116	/// resource. For example, if we have a composable NFT like a Kanaria bird, the resource is117	/// complex and too detailed to show in a search-results page or a list. Also, if a bird owns118	/// another bird, showing the full render of one bird inside the other's inventory might be a119	/// bit of a strain on the browser. For this reason, the thumb value can contain a URI to an120	/// image that is lighter and faster to load but representative of this resource.121	#[cfg_attr(feature = "std", serde(with = "serialize::opt_vec"))]122	pub thumb: Option<BoundedString>,123}124125#[derive(Encode, Decode, Eq, PartialEq, Clone, Debug, TypeInfo, MaxEncodedLen)]126#[cfg_attr(feature = "std", derive(Serialize))]127#[cfg_attr(128	feature = "std",129	serde(bound = r#"130			BoundedString: AsRef<[u8]>,131			BoundedParts: AsRef<[PartId]>132		"#)133)]134pub enum ResourceTypes<BoundedString, BoundedParts> {135	Basic(BasicResource<BoundedString>),136	Composable(ComposableResource<BoundedString, BoundedParts>),137	Slot(SlotResource<BoundedString>),138}139140#[derive(Encode, Decode, Eq, PartialEq, Clone, Debug, TypeInfo, MaxEncodedLen)]141#[cfg_attr(feature = "std", derive(Serialize))]142#[cfg_attr(143	feature = "std",144	serde(bound = r#"145			BoundedString: AsRef<[u8]>,146			BoundedParts: AsRef<[PartId]>147		"#)148)]149pub struct ResourceInfo<BoundedString, BoundedParts> {150	/// id is a 5-character string of reasonable uniqueness.151	/// The combination of base ID and resource id should be unique across the entire RMRK152	/// ecosystem which153	//#[cfg_attr(feature = "std", serde(with = "serialize::vec"))]154	pub id: ResourceId,155156	/// Resource157	pub resource: ResourceTypes<BoundedString, BoundedParts>,158159	/// If resource is sent to non-rootowned NFT, pending will be false and need to be accepted160	pub pending: bool,161162	/// If resource removal request is sent by non-rootowned NFT, pending will be true and need to be accepted163	pub pending_removal: bool,164}
modifiedprimitives/rmrk-traits/src/serialize.rsdiffbeforeafterboth
--- a/primitives/rmrk-traits/src/serialize.rs
+++ b/primitives/rmrk-traits/src/serialize.rs
@@ -1,3 +1,7 @@
+// Copyright (C) 2021-2022 RMRK
+// This file is part of rmrk-substrate.
+// License: Apache 2.0 modified by RMRK, see https://github.com/rmrk-team/rmrk-substrate/blob/main/LICENSE
+
 use core::convert::AsRef;
 use serde::ser::{self, Serialize};
 
modifiedprimitives/rmrk-traits/src/theme.rsdiffbeforeafterboth
--- a/primitives/rmrk-traits/src/theme.rs
+++ b/primitives/rmrk-traits/src/theme.rs
@@ -1,3 +1,7 @@
+// Copyright (C) 2021-2022 RMRK
+// This file is part of rmrk-substrate.
+// License: Apache 2.0 modified by RMRK, see https://github.com/rmrk-team/rmrk-substrate/blob/main/LICENSE
+
 use codec::{Decode, Encode};
 use scale_info::TypeInfo;
 
modifiedruntime/common/src/constants.rsdiffbeforeafterboth
--- a/runtime/common/src/constants.rs
+++ b/runtime/common/src/constants.rs
@@ -1,3 +1,19 @@
+// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network 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.
+
+// Unique Network 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 Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
 use sp_runtime::Perbill;
 use frame_support::{
 	parameter_types,
modifiedruntime/common/src/dispatch.rsdiffbeforeafterboth
--- a/runtime/common/src/dispatch.rs
+++ b/runtime/common/src/dispatch.rs
@@ -1,3 +1,19 @@
+// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network 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.
+
+// Unique Network 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 Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
 use frame_support::{dispatch::DispatchResult, ensure};
 use pallet_evm::{PrecompileHandle, PrecompileResult};
 use sp_core::H160;
modifiedruntime/common/src/lib.rsdiffbeforeafterboth
--- a/runtime/common/src/lib.rs
+++ b/runtime/common/src/lib.rs
@@ -1,3 +1,19 @@
+// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network 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.
+
+// Unique Network 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 Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
 #![cfg_attr(not(feature = "std"), no_std)]
 
 pub mod constants;
modifiedruntime/common/src/runtime_apis.rsdiffbeforeafterboth
--- a/runtime/common/src/runtime_apis.rs
+++ b/runtime/common/src/runtime_apis.rs
@@ -1,3 +1,19 @@
+// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network 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.
+
+// Unique Network 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 Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
 #[macro_export]
 macro_rules! impl_common_runtime_apis {
     (
modifiedruntime/common/src/types.rsdiffbeforeafterboth
--- a/runtime/common/src/types.rs
+++ b/runtime/common/src/types.rs
@@ -1,3 +1,19 @@
+// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network 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.
+
+// Unique Network 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 Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
 use sp_runtime::{
 	traits::{Verify, IdentifyAccount, BlakeTwo256},
 	generic, MultiSignature,