difftreelog
doc: minor fixes + typos
in: master
7 files changed
client/rpc/src/lib.rsdiffbeforeafterbothno syntactic changes
pallets/common/src/lib.rsdiffbeforeafterboth334 ///334 ///335 /// * collection_id: ID of the collection to which the item belongs.335 /// * collection_id: ID of the collection to which the item belongs.336 ///336 ///337 /// * item_id: ID of the item trasnferred.337 /// * item_id: ID of the item transferred.338 ///338 ///339 /// * sender: Original owner of the item.339 /// * sender: Original owner of the item.340 ///340 ///pallets/fungible/src/lib.rsdiffbeforeafterboth58 pub enum Error<T> {58 pub enum Error<T> {59 /// Not Fungible item data used to mint in Fungible collection.59 /// Not Fungible item data used to mint in Fungible collection.60 NotFungibleDataUsedToMintFungibleCollectionToken,60 NotFungibleDataUsedToMintFungibleCollectionToken,61 /// Not default id passed as TokenId argument61 /// Not default id passed as TokenId argument.62 FungibleItemsHaveNoId,62 FungibleItemsHaveNoId,63 /// Tried to set data for fungible item63 /// Tried to set data for fungible item.64 FungibleItemsDontHaveData,64 FungibleItemsDontHaveData,65 /// Fungible token does not support nested65 /// Fungible token does not support nesting.66 FungibleDisallowsNesting,66 FungibleDisallowsNesting,67 /// Setting item properties is not allowed67 /// Setting item properties is not allowed.68 SettingPropertiesNotAllowed,68 SettingPropertiesNotAllowed,69 }69 }7070pallets/nonfungible/src/lib.rsdiffbeforeafterboth171 QueryKind = ValueQuery,171 QueryKind = ValueQuery,172 >;172 >;173173174 /// Amount of tokens owned in a collection.s174 /// Amount of tokens owned in a collection.175 #[pallet::storage]175 #[pallet::storage]176 pub type AccountBalance<T: Config> = StorageNMap<176 pub type AccountBalance<T: Config> = StorageNMap<177 Key = (177 Key = (182 QueryKind = ValueQuery,182 QueryKind = ValueQuery,183 >;183 >;184184185 /// todo doc185 /// todo:doc186 #[pallet::storage]186 #[pallet::storage]187 pub type Allowance<T: Config> = StorageNMap<187 pub type Allowance<T: Config> = StorageNMap<188 Key = (Key<Twox64Concat, CollectionId>, Key<Twox64Concat, TokenId>),188 Key = (Key<Twox64Concat, CollectionId>, Key<Twox64Concat, TokenId>),pallets/refungible/src/lib.rsdiffbeforeafterboth64 pub enum Error<T> {64 pub enum Error<T> {65 /// Not Refungible item data used to mint in Refungible collection.65 /// Not Refungible item data used to mint in Refungible collection.66 NotRefungibleDataUsedToMintFungibleCollectionToken,66 NotRefungibleDataUsedToMintFungibleCollectionToken,67 /// Maximum refungibility exceeded67 /// Maximum refungibility exceeded.68 WrongRefungiblePieces,68 WrongRefungiblePieces,69 /// Refungible token can't be repartitioned by user who isn't owns all pieces69 /// Refungible token can't be repartitioned by user who isn't owns all pieces.70 RepartitionWhileNotOwningAllPieces,70 RepartitionWhileNotOwningAllPieces,71 /// Refungible token can't nest other tokens71 /// Refungible token can't nest other tokens.72 RefungibleDisallowsNesting,72 RefungibleDisallowsNesting,73 /// Setting item properties is not allowed73 /// Setting item properties is not allowed.74 SettingPropertiesNotAllowed,74 SettingPropertiesNotAllowed,75 }75 }7676605 Ok(())605 Ok(())606 }606 }607607608 /// todo:doc oh look, a precedent. not pub, too. but it has an unclear use-case.609 /// Returns allowance, which should be set after transaction608 /// Returns allowance, which should be set after transaction610 fn check_allowed(609 fn check_allowed(611 collection: &RefungibleHandle<T>,610 collection: &RefungibleHandle<T>,pallets/structure/src/lib.rsdiffbeforeafterboth31 DepthLimit,31 DepthLimit,32 /// While iterating over children, reached the breadth limit.32 /// While iterating over children, reached the breadth limit.33 BreadthLimit,33 BreadthLimit,34 /// Couldn't find the token owner that is a token. Perhaps, it does not yet exist. todo:doc? rephrase?34 /// Couldn't find the token owner that is itself a token.35 TokenNotFound,35 TokenNotFound,36 }36 }3737primitives/data-structs/src/lib.rsdiffbeforeafterboth286 }286 }287}287}288288289/// Collection parameters, used in storage (see [`RpcCollection`] for the RPC version)289/// Collection parameters, used in storage (see [`RpcCollection`] for the RPC version).290#[struct_versioning::versioned(version = 2, upper)]290#[struct_versioning::versioned(version = 2, upper)]291#[derive(Encode, Decode, Clone, PartialEq, TypeInfo, MaxEncodedLen)]291#[derive(Encode, Decode, Clone, PartialEq, TypeInfo, MaxEncodedLen)]292pub struct Collection<AccountId> {292pub struct Collection<AccountId> {327 pub meta_update_permission: MetaUpdatePermission,327 pub meta_update_permission: MetaUpdatePermission,328}328}329329330/// Collection parameters, used in RPC calls (see [`Collection`] for the storage version)330/// Collection parameters, used in RPC calls (see [`Collection`] for the storage version).331#[derive(Encode, Decode, Clone, PartialEq, TypeInfo)]331#[derive(Encode, Decode, Clone, PartialEq, TypeInfo)]332#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]332#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]333pub struct RpcCollection<AccountId> {333pub struct RpcCollection<AccountId> {568 ReFungible(CreateReFungibleData),568 ReFungible(CreateReFungibleData),569}569}570570571/// Explicit NFT creation data with meta parameters571/// Explicit NFT creation data with meta parameters.572#[derive(Encode, Decode, MaxEncodedLen, PartialEq, Clone, TypeInfo, Derivative)]572#[derive(Encode, Decode, MaxEncodedLen, PartialEq, Clone, TypeInfo, Derivative)]573#[derivative(Debug)]573#[derivative(Debug)]574pub struct CreateNftExData<CrossAccountId> {574pub struct CreateNftExData<CrossAccountId> {577 pub owner: CrossAccountId,577 pub owner: CrossAccountId,578}578}579579580/// Explicit RFT creation data with meta parameters580/// Explicit RFT creation data with meta parameters.581#[derive(Encode, Decode, MaxEncodedLen, PartialEq, Clone, TypeInfo, Derivative)]581#[derive(Encode, Decode, MaxEncodedLen, PartialEq, Clone, TypeInfo, Derivative)]582#[derivative(Debug(bound = "CrossAccountId: fmt::Debug + Ord"))]582#[derivative(Debug(bound = "CrossAccountId: fmt::Debug + Ord"))]583pub struct CreateRefungibleExData<CrossAccountId> {583pub struct CreateRefungibleExData<CrossAccountId> {587 pub users: BoundedBTreeMap<CrossAccountId, u128, ConstU32<MAX_ITEMS_PER_BATCH>>,587 pub users: BoundedBTreeMap<CrossAccountId, u128, ConstU32<MAX_ITEMS_PER_BATCH>>,588}588}589589590/// Explicit item creation data with meta parameters, namely the owner590/// Explicit item creation data with meta parameters, namely the owner.591#[derive(Encode, Decode, MaxEncodedLen, PartialEq, Clone, TypeInfo, Derivative)]591#[derive(Encode, Decode, MaxEncodedLen, PartialEq, Clone, TypeInfo, Derivative)]592#[derivative(Debug(bound = "CrossAccountId: fmt::Debug + Ord"))]592#[derivative(Debug(bound = "CrossAccountId: fmt::Debug + Ord"))]593pub enum CreateItemExData<CrossAccountId> {593pub enum CreateItemExData<CrossAccountId> {635 }635 }636}636}637637638/// Token's address, dictated by its collection and token IDs638/// Token's address, dictated by its collection and token IDs.639#[derive(Encode, Decode, MaxEncodedLen, PartialEq, Clone, Debug, TypeInfo)]639#[derive(Encode, Decode, MaxEncodedLen, PartialEq, Clone, Debug, TypeInfo)]640#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]640#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]641// todo possibly rename to be used generally as an address pair641// todo possibly rename to be used generally as an address pair