difftreelog
doc: fix PR
in: master
1 file changed
pallets/common/src/lib.rsdiffbeforeafterboth17//! # Common pallet17//! # Common pallet18//!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 types20//! (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//! ## Overview24//! 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//! ### Terminology39//! **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 will331 /// 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>>;333332334 /// Currency.333 /// Handler of accounts and payment.335 type Currency: Currency<Self::AccountId>;334 type Currency: Currency<Self::AccountId>;336335337 /// 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>;345344346 /// Treasury account id getter.345 /// Account which holds the chain's treasury.347 type TreasuryAccountId: Get<Self::AccountId>;346 type TreasuryAccountId: Get<Self::AccountId>;348347349 /// 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>;351350352 /// Mapper for tokens to Etherium addresses.351 /// Mapper for token addresses to Ethereum addresses.353 type EvmTokenAddressMapping: TokenAddressMapping<H160>;352 type EvmTokenAddressMapping: TokenAddressMapping<H160>;354353355 /// 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