git.delta.rocks / unique-network / refs/commits / 6c6ed89d2a53

difftreelog

doc: fix PR

Trubnikov Sergey2022-07-20parent: #ba8a9db.patch.diff
in: master

2 files changed

modifiedpallets/common/src/dispatch.rsdiffbeforeafterboth
7171
72/// Interface for working with different collections through the dispatcher.72/// Interface for working with different collections through the dispatcher.
73pub trait CollectionDispatch<T: Config> {73pub trait CollectionDispatch<T: Config> {
74 /// Create a collection. The collection will be created according to the value of [data.mode](CreateCollectionData::mode).74 /// Create a collection. The collection will be created according to the value of [`data.mode`](CreateCollectionData::mode).
75 ///75 ///
76 /// * `sender` - The user who will become the owner of the collection.76 /// * `sender` - The user who will become the owner of the collection.
77 /// * `data` - Description of the created collection.77 /// * `data` - Description of the created collection.
94 /// Get the collection handle for the corresponding implementation.94 /// Get the collection handle for the corresponding implementation.
95 fn into_inner(self) -> CollectionHandle<T>;95 fn into_inner(self) -> CollectionHandle<T>;
9696
97 /// Get the implementation of [CommonCollectionOperations].97 /// Get the implementation of [`CommonCollectionOperations`].
98 fn as_dyn(&self) -> &dyn CommonCollectionOperations<T>;98 fn as_dyn(&self) -> &dyn CommonCollectionOperations<T>;
99}99}
100100
modifiedpallets/common/src/lib.rsdiffbeforeafterboth
1616
17//! # Common pallet17//! # Common pallet
18//!18//!
19//! The Common pallet provides an interface for common collection operations for different collection types19//! The Common pallet provides functionality for handling collections.
20//! (see [CommonCollectionOperations]), as well as a generic dispatcher for these, see [dispatch] module.
21//! It also provides this functionality to EVM, see [erc] and [eth] modules.
22//!20//!
23//! ## Overview21//! ## Overview
24//!22//!
25//! The Common pallet provides functionality for handling collections.23//! The Common pallet provides an interface for common collection operations for different collection types
24//! (see [CommonCollectionOperations]), as well as a generic dispatcher for these, see [dispatch] module.
25//! It also provides this functionality to EVM, see [erc] and [eth] modules.
26//!26//!
27//! The Common pallet provides functions for:27//! The Common pallet provides functions for:
28//!28//!
44//! metadata can be placed.44//! metadata can be placed.
45//!45//!
46//! **Permissions on token properties** - For each property in the token can be set permission46//! **Permissions on token properties** - For each property in the token can be set permission
47//! to change, see [PropertyPermission].47//! to change, see [`PropertyPermission`].
48//!48//!
49//! **Collection administrator** - For a collection, you can set administrators who have the right49//! **Collection administrator** - For a collection, you can set administrators who have the right
50//! to most actions on the collection.50//! to most actions on the collection.