difftreelog
style cargo fmt
in: master
3 files changed
pallets/common/src/lib.rsdiffbeforeafterboth329 ItemDestroyed(CollectionId, TokenId, T::CrossAccountId, u128),329 ItemDestroyed(CollectionId, TokenId, T::CrossAccountId, u128),330330331 /// Item was transferred.331 /// Item was transferred.332 /// 332 ///333 /// # Arguments333 /// # Arguments334 ///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.350 ),350 ),351351352 /// Sponsoring allowance was approved.352 /// Sponsoring allowance was approved.353 /// 353 ///354 /// # Arguments354 /// # Arguments355 /// 355 ///356 /// * collection_id356 /// * collection_id357 ///357 ///358 /// * item_id358 /// * item_id371 ),371 ),372372373 /// Collection property was added or edited.373 /// Collection property was added or edited.374 /// 374 ///375 /// # Arguments375 /// # Arguments376 /// 376 ///377 /// * collection_id: ID of the collection, whose property was just set.377 /// * collection_id: ID of the collection, whose property was just set.378 /// 378 ///379 /// * property_key: Key of the property that was just set.379 /// * property_key: Key of the property that was just set.380 CollectionPropertySet(CollectionId, PropertyKey),380 CollectionPropertySet(CollectionId, PropertyKey),381381382 /// Collection property was deleted.382 /// Collection property was deleted.383 /// 383 ///384 /// # Arguments384 /// # Arguments385 /// 385 ///386 /// * collection_id: ID of the collection, whose property was just deleted.386 /// * collection_id: ID of the collection, whose property was just deleted.387 /// 387 ///388 /// * property_key: Key of the property that was just deleted.388 /// * property_key: Key of the property that was just deleted.389 CollectionPropertyDeleted(CollectionId, PropertyKey),389 CollectionPropertyDeleted(CollectionId, PropertyKey),390390391 /// Item property was added or edited.391 /// Item property was added or edited.392 /// 392 ///393 /// # Arguments393 /// # Arguments394 /// 394 ///395 /// * collection_id: ID of the collection, whose token's property was just set.395 /// * collection_id: ID of the collection, whose token's property was just set.396 /// 396 ///397 /// * item_id: ID of the item, whose property was just set.397 /// * item_id: ID of the item, whose property was just set.398 /// 398 ///399 /// * property_key: Key of the property that was just set.399 /// * property_key: Key of the property that was just set.400 TokenPropertySet(CollectionId, TokenId, PropertyKey),400 TokenPropertySet(CollectionId, TokenId, PropertyKey),401401402 /// Item property was deleted.402 /// Item property was deleted.403 /// 403 ///404 /// # Arguments404 /// # Arguments405 /// 405 ///406 /// * collection_id: ID of the collection, whose token's property was just deleted.406 /// * collection_id: ID of the collection, whose token's property was just deleted.407 /// 407 ///408 /// * item_id: ID of the item, whose property was just deleted.408 /// * item_id: ID of the item, whose property was just deleted.409 /// 409 ///410 /// * property_key: Key of the property that was just deleted.410 /// * property_key: Key of the property that was just deleted.411 TokenPropertyDeleted(CollectionId, TokenId, PropertyKey),411 TokenPropertyDeleted(CollectionId, TokenId, PropertyKey),412412413 /// Token property permission was added or updated for a collection.413 /// Token property permission was added or updated for a collection.414 /// 414 ///415 /// # Arguments415 /// # Arguments416 /// 416 ///417 /// * collection_id: ID of the collection, whose permissions were just set/updated.417 /// * collection_id: ID of the collection, whose permissions were just set/updated.418 /// 418 ///419 /// * property_key: Key of the property of the set/updated permission.419 /// * property_key: Key of the property of the set/updated permission.420 PropertyPermissionSet(CollectionId, PropertyKey),420 PropertyPermissionSet(CollectionId, PropertyKey),421 }421 }pallets/refungible/src/lib.rsdiffbeforeafterboth--- a/pallets/refungible/src/lib.rs
+++ b/pallets/refungible/src/lib.rs
@@ -92,7 +92,7 @@
#[pallet::storage]
pub type TokensMinted<T: Config> =
StorageMap<Hasher = Twox64Concat, Key = CollectionId, Value = u32, QueryKind = ValueQuery>;
-
+
/// Amount of tokens burnt in a collection.
#[pallet::storage]
pub type TokensBurnt<T: Config> =
@@ -258,7 +258,7 @@
// TODO: ERC721 transfer event
Ok(())
}
-
+
pub fn burn(
collection: &RefungibleHandle<T>,
owner: &T::CrossAccountId,
pallets/unique/src/lib.rsdiffbeforeafterboth--- a/pallets/unique/src/lib.rs
+++ b/pallets/unique/src/lib.rs
@@ -163,9 +163,9 @@
CollectionLimitSet(CollectionId),
/// Collection permissions were set
- ///
+ ///
/// # Arguments
- ///
+ ///
/// * collection_id: Globally unique collection identifier.
CollectionPermissionSet(CollectionId),
}
@@ -219,7 +219,7 @@
/// Collection id (controlled?2), token id (controlled?2)
#[deprecated]
pub VariableMetaDataBasket get(fn variable_meta_data_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option<T::BlockNumber>;
- /// Last sponsoring of token property setting // todo:doc rephrase this and the following
+ /// Last sponsoring of token property setting // todo:doc rephrase this and the following
pub TokenPropertyBasket get(fn token_property_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option<T::BlockNumber>;
/// Last sponsoring of NFT approval in a collection
@@ -294,7 +294,7 @@
/// * Anyone.
///
/// # Arguments
- ///
+ ///
/// * data: explicit create-collection data.
#[weight = <SelfWeightOf<T>>::create_collection()]
#[transactional]
@@ -495,7 +495,7 @@
}
/// Set (invite) a new collection sponsor. If successful, confirmation from the sponsor-to-be will be pending.
- ///
+ ///
/// # Permissions
///
/// * Collection Owner
@@ -526,7 +526,7 @@
}
/// Confirm own sponsorship of a collection.
- ///
+ ///
/// # Permissions
///
/// * The sponsor to-be
@@ -699,7 +699,7 @@
/// # Arguments
///
/// * collection_id.
- ///
+ ///
/// * token_id.
///
/// * properties: a vector of key-value pairs stored as the token's metadata. Keys support Latin letters, '-', '_', and '.' as symbols.
@@ -778,7 +778,7 @@
}
/// Create multiple items inside a collection with explicitly specified initial parameters.
- ///
+ ///
/// # Permissions
///
/// * Collection Owner
@@ -792,7 +792,7 @@
///
/// * collection_id: ID of the collection.
///
- /// * data: explicit item creation data.
+ /// * data: explicit item creation data.
#[weight = T::CommonWeightInfo::create_multiple_items_ex(&data)]
#[transactional]
pub fn create_multiple_items_ex(origin, collection_id: CollectionId, data: CreateItemExData<T::CrossAccountId>) -> DispatchResultWithPostInfo {
@@ -939,7 +939,7 @@
/// Change ownership of a NFT on behalf of the owner. See Approve method for additional information. After this method executes, the approval is removed so that the approved address will not be able to transfer this NFT again from this owner.
///
/// # Permissions
- ///
+ ///
/// * Collection Owner
/// * Collection Admin
/// * Current NFT owner
@@ -968,7 +968,7 @@
/// Set specific limits of a collection. Empty, or None fields mean chain default.
///.
/// # Permissions
- ///
+ ///
/// * Collection Owner
/// * Collection Admin
///
@@ -1002,7 +1002,7 @@
/// Set specific permissions of a collection. Empty, or None fields mean chain default.
///
/// # Permissions
- ///
+ ///
/// * Collection Owner
/// * Collection Admin
///
@@ -1036,15 +1036,15 @@
/// Re-partition a refungible token, while owning all of its parts.
///
/// # Permissions
- ///
+ ///
/// * Token Owner (must own every part)
///
/// # Arguments
///
/// * collection_id.
- ///
- /// * token: the ID of the RFT.
///
+ /// * token: the ID of the RFT.
+ ///
/// * amount: The new number of parts into which the token shall be partitioned.
#[weight = T::RefungibleExtensionsWeightInfo::repartition()]
#[transactional]