git.delta.rocks / unique-network / refs/commits / 0ade15e6efe1

difftreelog

docs and bump versions

Trubnikov Sergey2022-12-16parent: #1fe93b2.patch.diff
in: master

6 files changed

modifiedCargo.lockdiffbeforeafterboth
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6328,7 +6328,7 @@
 
 [[package]]
 name = "pallet-nonfungible"
-version = "0.1.9"
+version = "0.1.11"
 dependencies = [
  "ethereum 0.14.0",
  "evm-coder",
@@ -6487,7 +6487,7 @@
 
 [[package]]
 name = "pallet-refungible"
-version = "0.2.8"
+version = "0.2.10"
 dependencies = [
  "derivative",
  "ethereum 0.14.0",
modifiedpallets/common/src/eth.rsdiffbeforeafterboth
--- a/pallets/common/src/eth.rs
+++ b/pallets/common/src/eth.rs
@@ -163,11 +163,17 @@
 	TokenOwner,
 }
 
+/// Ethereum representation of TokenPermissions (see [`up_data_structs::PropertyPermission`]) fields as an enumeration.
 #[derive(AbiCoder, Copy, Clone, Default, Debug)]
 #[repr(u8)]
 pub enum EthTokenPermissions {
+	/// Permission to change the property and property permission. See [`up_data_structs::PropertyPermission::mutable`]
 	#[default]
 	Mutable,
+
+	/// Change permission for the collection administrator. See [`up_data_structs::PropertyPermission::token_owner`]
 	TokenOwner,
+
+	/// Permission to change the property for the owner of the token. See [`up_data_structs::PropertyPermission::collection_admin`]
 	CollectionAdmin,
 }
modifiedpallets/nonfungible/CHANGELOG.mddiffbeforeafterboth
--- a/pallets/nonfungible/CHANGELOG.md
+++ b/pallets/nonfungible/CHANGELOG.md
@@ -4,6 +4,16 @@
 
 <!-- bureaucrate goes here -->
 
+## [0.1.11] - 2022-12-16
+
+### Added
+
+- The function `tokenPropertyPermissions` and `setTokenPropertyPermissions` to `TokenProperties` interface.
+
+### Changed
+
+- Hide `setTokenPropertyPermission` function in `TokenProperties` interface.
+
 ## [0.1.10] - 2022-11-18
 
 ### Added
modifiedpallets/nonfungible/Cargo.tomldiffbeforeafterboth
--- a/pallets/nonfungible/Cargo.toml
+++ b/pallets/nonfungible/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "pallet-nonfungible"
-version = "0.1.9"
+version = "0.1.11"
 license = "GPLv3"
 edition = "2021"
 
modifiedpallets/refungible/CHANGELOG.mddiffbeforeafterboth
--- a/pallets/refungible/CHANGELOG.md
+++ b/pallets/refungible/CHANGELOG.md
@@ -4,6 +4,16 @@
 
 <!-- bureaucrate goes here -->
 
+## [0.2.10] - 2022-12-16
+
+### Added
+
+- The function `tokenPropertyPermissions` and `setTokenPropertyPermissions` to `TokenProperties` interface.
+
+### Changed
+
+- Hide `setTokenPropertyPermission` function in `TokenProperties` interface.
+
 ## [0.2.9] - 2022-11-18
 
 ### Added
modifiedpallets/refungible/Cargo.tomldiffbeforeafterboth
before · pallets/refungible/Cargo.toml
1[package]2name = "pallet-refungible"3version = "0.2.8"4license = "GPLv3"5edition = "2021"67[dependencies.codec]8default-features = false9features = ['derive']10package = 'parity-scale-codec'11version = '3.1.2'1213[dependencies]14frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }15frame-system = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }16sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }17sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }18sp-core = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }19pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }20evm-coder = { default-features = false, path = '../../crates/evm-coder' }21pallet-evm-coder-substrate = { default-features = false, path = '../../pallets/evm-coder-substrate' }22pallet-common = { default-features = false, path = '../common' }23pallet-structure = { default-features = false, path = '../structure' }24frame-benchmarking = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }2526struct-versioning = { path = "../../crates/struct-versioning" }27up-data-structs = { default-features = false, path = '../../primitives/data-structs' }28ethereum = { version = "0.14.0", default-features = false }29scale-info = { version = "2.0.1", default-features = false, features = [30    "derive",31] }32derivative = { version = "2.2.0", features = ["use_core"] }3334[features]35default = ["std"]36std = [37    "ethereum/std",38    "evm-coder/std",39    'frame-benchmarking/std',40    "frame-support/std",41    "frame-system/std",42    "pallet-common/std",43    "pallet-evm/std",44    "pallet-evm-coder-substrate/std",45    "pallet-structure/std",46    "sp-runtime/std",47    "sp-std/std",48    "up-data-structs/std",49]50runtime-benchmarks = [51    'frame-benchmarking',52    'frame-support/runtime-benchmarks',53    'frame-system/runtime-benchmarks',54    'up-data-structs/runtime-benchmarks',55]56try-runtime = ["frame-support/try-runtime"]57stubgen = ["evm-coder/stubgen", "pallet-common/stubgen"]
after · pallets/refungible/Cargo.toml
1[package]2name = "pallet-refungible"3version = "0.2.10"4license = "GPLv3"5edition = "2021"67[dependencies.codec]8default-features = false9features = ['derive']10package = 'parity-scale-codec'11version = '3.1.2'1213[dependencies]14frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }15frame-system = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }16sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }17sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }18sp-core = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }19pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.33" }20evm-coder = { default-features = false, path = '../../crates/evm-coder' }21pallet-evm-coder-substrate = { default-features = false, path = '../../pallets/evm-coder-substrate' }22pallet-common = { default-features = false, path = '../common' }23pallet-structure = { default-features = false, path = '../structure' }24frame-benchmarking = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }2526struct-versioning = { path = "../../crates/struct-versioning" }27up-data-structs = { default-features = false, path = '../../primitives/data-structs' }28ethereum = { version = "0.14.0", default-features = false }29scale-info = { version = "2.0.1", default-features = false, features = [30    "derive",31] }32derivative = { version = "2.2.0", features = ["use_core"] }3334[features]35default = ["std"]36std = [37    "ethereum/std",38    "evm-coder/std",39    'frame-benchmarking/std',40    "frame-support/std",41    "frame-system/std",42    "pallet-common/std",43    "pallet-evm/std",44    "pallet-evm-coder-substrate/std",45    "pallet-structure/std",46    "sp-runtime/std",47    "sp-std/std",48    "up-data-structs/std",49]50runtime-benchmarks = [51    'frame-benchmarking',52    'frame-support/runtime-benchmarks',53    'frame-system/runtime-benchmarks',54    'up-data-structs/runtime-benchmarks',55]56try-runtime = ["frame-support/try-runtime"]57stubgen = ["evm-coder/stubgen", "pallet-common/stubgen"]