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

difftreelog

doc: fix PR

Trubnikov Sergey2022-07-19parent: #2c21506.patch.diff
in: master

1 file changed

modifiedpallets/common/src/lib.rsdiffbeforeafterboth
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 an interface for common collection operations for different collection types
20//! (see [CommonCollectionOperations], as well as a generic dispatcher for these, see [dispatch] module.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.21//! It also provides this functionality to EVM, see [erc] and [eth] modules.
22//!22//!
23//! ## Overview23//! ## Overview
24//!
25//! The Common pallet provides functionality for handling collections.
24//!26//!
25//! The Common pallet provides functions for:27//! The Common pallet provides functions for:
26//!28//!
27//! - Setting and approving collection soponsor.29//! - Setting and approving collection sponsor.
28//! - Get\set\delete allow list.30//! - Get\set\delete allow list.
29//! - Get\set\delete collection properties.31//! - Get\set\delete collection properties.
30//! - Get\set\delete collection property permissions.32//! - Get\set\delete collection property permissions.
31//! - Get\set\delete token property permissions.33//! - Get\set\delete token property permissions.
32//! - Get\set\delete collection administrators.34//! - Get\set\delete collection administrators.
33//! - Checking access permissions.35//! - Checking access permissions.
34//! - Provides an interface for common collection operations for different collection types.
35//! - Provides dispatching for implementations of common collection operations, see [dispatch] module.
36//! - Provides functionality of collection into evm, see [erc] and [eth] module.
37//!36//!
38//! ### Terminology37//! ### Terminology
39//! **Collection sponsor** - For the collection, you can set a sponsor, at whose expense it will38//! **Collection sponsor** - For the collection, you can set a sponsor, at whose expense it will
331 /// Events compatible with [`frame_system::Config::Event`].330 /// Events compatible with [`frame_system::Config::Event`].
332 type Event: IsType<<Self as frame_system::Config>::Event> + From<Event<Self>>;331 type Event: IsType<<Self as frame_system::Config>::Event> + From<Event<Self>>;
333332
334 /// Currency.333 /// Handler of accounts and payment.
335 type Currency: Currency<Self::AccountId>;334 type Currency: Currency<Self::AccountId>;
336335
337 /// Price getter to create the collection.336 /// Set price to create a collection.
338 #[pallet::constant]337 #[pallet::constant]
339 type CollectionCreationPrice: Get<338 type CollectionCreationPrice: Get<
340 <<Self as Config>::Currency as Currency<Self::AccountId>>::Balance,339 <<Self as Config>::Currency as Currency<Self::AccountId>>::Balance,
343 /// Dispatcher of operations on collections.342 /// Dispatcher of operations on collections.
344 type CollectionDispatch: CollectionDispatch<Self>;343 type CollectionDispatch: CollectionDispatch<Self>;
345344
346 /// Treasury account id getter.345 /// Account which holds the chain's treasury.
347 type TreasuryAccountId: Get<Self::AccountId>;346 type TreasuryAccountId: Get<Self::AccountId>;
348347
349 /// Address under which the CollectionHelper contract would be available.348 /// Address under which the CollectionHelper contract would be available.
350 type ContractAddress: Get<H160>;349 type ContractAddress: Get<H160>;
351350
352 /// Mapper for tokens to Etherium addresses.351 /// Mapper for token addresses to Ethereum addresses.
353 type EvmTokenAddressMapping: TokenAddressMapping<H160>;352 type EvmTokenAddressMapping: TokenAddressMapping<H160>;
354353
355 /// Mapper for tokens to [`CrossAccountId`].354 /// Mapper for token addresses to [`CrossAccountId`].
356 type CrossTokenAddressMapping: TokenAddressMapping<Self::CrossAccountId>;355 type CrossTokenAddressMapping: TokenAddressMapping<Self::CrossAccountId>;
357 }356 }
358357