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
before · pallets/nonfungible/CHANGELOG.md
1# Change Log23All notable changes to this project will be documented in this file.45<!-- bureaucrate goes here -->67## [0.1.10] - 2022-11-1889### Added1011- The functions `description`, `crossOwnerOf`, `tokenProperties` to `ERC721UniqueExtensions` interface.1213## [0.1.9] - 2022-11-141415### Changed1617- Added `transfer_cross` in eth functions.1819## [v0.1.8] - 2022-11-112021### Changed2223- Added `delete_properties` in eth functions. The `delete_property` function is now deprecated.2425## [v0.1.7] - 2022-11-022627### Changed2829- Use named structure `EthCrossAccount` in eth functions.3031## [v0.1.6] - 2022-20-103233### Change3435- Added `set_properties` method for `TokenProperties` interface.3637## [v0.1.5] - 2022-08-243839### Change4041- Add bound `AsRef<[u8; 32]>` to `T::CrossAccountId`.4243## [v0.1.4] 2022-08-164445### Other changes4647- build: Upgrade polkadot to v0.9.27 2c498572636f2b34d53b1c51b7283a761a7dc90a4849- build: Upgrade polkadot to v0.9.26 85515e54c4ca1b82a2630034e55dcc804c643bf85051- refactor: Switch to new prefix removal methods 26734e9567589d75cdd99e404eabf11d5a97d9755253New methods allows to call `remove_prefix` with limit multiple times54in the same block55However, we don't use prefix removal limits, so upgrade is56straightforward5758Upstream-Change: https://github.com/paritytech/substrate/pull/114905960- build: Upgrade polkadot to v0.9.25 cdfb9bdc7b205ff1b5134f034ef9973d769e5e6b6162## [0.1.2] - 2022-07-256364### Changed6566- New `token_uri` retrieval logic:6768      If the collection has a `url` property and it is not empty, it is returned.69      Else If the collection does not have a property with key `schemaName` or its value is not equal to `ERC721Metadata`, it return an error `tokenURI not set`.7071      If the property `baseURI` is empty or absent, return "" (empty string)72      otherwise, if property `suffix` present and is non-empty, return concatenation of baseURI and suffix73      otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).7475## [0.1.1] - 2022-07-147677### Added7879- Implementation of RPC method `token_owners`.80  For reasons of compatibility with this pallet, returns only one owner if token exists.81  This was an internal request to improve the web interface and support fractionalization event.
after · pallets/nonfungible/CHANGELOG.md
1# Change Log23All notable changes to this project will be documented in this file.45<!-- bureaucrate goes here -->67## [0.1.11] - 2022-12-1689### Added1011- The function `tokenPropertyPermissions` and `setTokenPropertyPermissions` to `TokenProperties` interface.1213### Changed1415- Hide `setTokenPropertyPermission` function in `TokenProperties` interface.1617## [0.1.10] - 2022-11-181819### Added2021- The functions `description`, `crossOwnerOf`, `tokenProperties` to `ERC721UniqueExtensions` interface.2223## [0.1.9] - 2022-11-142425### Changed2627- Added `transfer_cross` in eth functions.2829## [v0.1.8] - 2022-11-113031### Changed3233- Added `delete_properties` in eth functions. The `delete_property` function is now deprecated.3435## [v0.1.7] - 2022-11-023637### Changed3839- Use named structure `EthCrossAccount` in eth functions.4041## [v0.1.6] - 2022-20-104243### Change4445- Added `set_properties` method for `TokenProperties` interface.4647## [v0.1.5] - 2022-08-244849### Change5051- Add bound `AsRef<[u8; 32]>` to `T::CrossAccountId`.5253## [v0.1.4] 2022-08-165455### Other changes5657- build: Upgrade polkadot to v0.9.27 2c498572636f2b34d53b1c51b7283a761a7dc90a5859- build: Upgrade polkadot to v0.9.26 85515e54c4ca1b82a2630034e55dcc804c643bf86061- refactor: Switch to new prefix removal methods 26734e9567589d75cdd99e404eabf11d5a97d9756263New methods allows to call `remove_prefix` with limit multiple times64in the same block65However, we don't use prefix removal limits, so upgrade is66straightforward6768Upstream-Change: https://github.com/paritytech/substrate/pull/114906970- build: Upgrade polkadot to v0.9.25 cdfb9bdc7b205ff1b5134f034ef9973d769e5e6b7172## [0.1.2] - 2022-07-257374### Changed7576- New `token_uri` retrieval logic:7778      If the collection has a `url` property and it is not empty, it is returned.79      Else If the collection does not have a property with key `schemaName` or its value is not equal to `ERC721Metadata`, it return an error `tokenURI not set`.8081      If the property `baseURI` is empty or absent, return "" (empty string)82      otherwise, if property `suffix` present and is non-empty, return concatenation of baseURI and suffix83      otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).8485## [0.1.1] - 2022-07-148687### Added8889- Implementation of RPC method `token_owners`.90  For reasons of compatibility with this pallet, returns only one owner if token exists.91  This was an internal request to improve the web interface and support fractionalization event.
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
--- a/pallets/refungible/Cargo.toml
+++ b/pallets/refungible/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "pallet-refungible"
-version = "0.2.8"
+version = "0.2.10"
 license = "GPLv3"
 edition = "2021"