--- 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", --- 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, } --- a/pallets/nonfungible/CHANGELOG.md +++ b/pallets/nonfungible/CHANGELOG.md @@ -4,6 +4,16 @@ +## [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 --- 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" --- a/pallets/refungible/CHANGELOG.md +++ b/pallets/refungible/CHANGELOG.md @@ -4,6 +4,16 @@ +## [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 --- 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"