git.delta.rocks / unique-network / refs/commits / 6035f8d62cec

difftreelog

style cargo fmt

Farhad Hakimov2022-07-11parent: #1a56db7.patch.diff
in: master

3 files changed

modifiedpallets/common/src/lib.rsdiffbeforeafterboth
329 ItemDestroyed(CollectionId, TokenId, T::CrossAccountId, u128),329 ItemDestroyed(CollectionId, TokenId, T::CrossAccountId, u128),
330330
331 /// Item was transferred.331 /// Item was transferred.
332 /// 332 ///
333 /// # Arguments333 /// # Arguments
334 ///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 ),
351351
352 /// Sponsoring allowance was approved.352 /// Sponsoring allowance was approved.
353 /// 353 ///
354 /// # Arguments354 /// # Arguments
355 /// 355 ///
356 /// * collection_id356 /// * collection_id
357 ///357 ///
358 /// * item_id358 /// * item_id
371 ),371 ),
372372
373 /// Collection property was added or edited.373 /// Collection property was added or edited.
374 /// 374 ///
375 /// # Arguments375 /// # Arguments
376 /// 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),
381381
382 /// Collection property was deleted.382 /// Collection property was deleted.
383 /// 383 ///
384 /// # Arguments384 /// # Arguments
385 /// 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),
390390
391 /// Item property was added or edited.391 /// Item property was added or edited.
392 /// 392 ///
393 /// # Arguments393 /// # Arguments
394 /// 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),
401401
402 /// Item property was deleted.402 /// Item property was deleted.
403 /// 403 ///
404 /// # Arguments404 /// # Arguments
405 /// 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),
412412
413 /// 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 /// # Arguments
416 /// 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 }
modifiedpallets/refungible/src/lib.rsdiffbeforeafterboth

no syntactic changes

modifiedpallets/unique/src/lib.rsdiffbeforeafterboth
163 CollectionLimitSet(CollectionId),163 CollectionLimitSet(CollectionId),
164164
165 /// Collection permissions were set165 /// Collection permissions were set
166 /// 166 ///
167 /// # Arguments167 /// # Arguments
168 /// 168 ///
169 /// * collection_id: Globally unique collection identifier.169 /// * collection_id: Globally unique collection identifier.
170 CollectionPermissionSet(CollectionId),170 CollectionPermissionSet(CollectionId),
171 }171 }
219 /// Collection id (controlled?2), token id (controlled?2)219 /// Collection id (controlled?2), token id (controlled?2)
220 #[deprecated]220 #[deprecated]
221 pub VariableMetaDataBasket get(fn variable_meta_data_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option<T::BlockNumber>;221 pub VariableMetaDataBasket get(fn variable_meta_data_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option<T::BlockNumber>;
222 /// Last sponsoring of token property setting // todo:doc rephrase this and the following 222 /// Last sponsoring of token property setting // todo:doc rephrase this and the following
223 pub TokenPropertyBasket get(fn token_property_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option<T::BlockNumber>;223 pub TokenPropertyBasket get(fn token_property_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option<T::BlockNumber>;
224224
225 /// Last sponsoring of NFT approval in a collection225 /// Last sponsoring of NFT approval in a collection
294 /// * Anyone.294 /// * Anyone.
295 ///295 ///
296 /// # Arguments296 /// # Arguments
297 /// 297 ///
298 /// * data: explicit create-collection data.298 /// * data: explicit create-collection data.
299 #[weight = <SelfWeightOf<T>>::create_collection()]299 #[weight = <SelfWeightOf<T>>::create_collection()]
300 #[transactional]300 #[transactional]
495 }495 }
496496
497 /// Set (invite) a new collection sponsor. If successful, confirmation from the sponsor-to-be will be pending.497 /// Set (invite) a new collection sponsor. If successful, confirmation from the sponsor-to-be will be pending.
498 /// 498 ///
499 /// # Permissions499 /// # Permissions
500 ///500 ///
501 /// * Collection Owner501 /// * Collection Owner
526 }526 }
527527
528 /// Confirm own sponsorship of a collection.528 /// Confirm own sponsorship of a collection.
529 /// 529 ///
530 /// # Permissions530 /// # Permissions
531 ///531 ///
532 /// * The sponsor to-be532 /// * The sponsor to-be
699 /// # Arguments699 /// # Arguments
700 ///700 ///
701 /// * collection_id.701 /// * collection_id.
702 /// 702 ///
703 /// * token_id.703 /// * token_id.
704 ///704 ///
705 /// * properties: a vector of key-value pairs stored as the token's metadata. Keys support Latin letters, '-', '_', and '.' as symbols.705 /// * properties: a vector of key-value pairs stored as the token's metadata. Keys support Latin letters, '-', '_', and '.' as symbols.
778 }778 }
779779
780 /// Create multiple items inside a collection with explicitly specified initial parameters.780 /// Create multiple items inside a collection with explicitly specified initial parameters.
781 /// 781 ///
782 /// # Permissions782 /// # Permissions
783 ///783 ///
784 /// * Collection Owner784 /// * Collection Owner
792 ///792 ///
793 /// * collection_id: ID of the collection.793 /// * collection_id: ID of the collection.
794 ///794 ///
795 /// * data: explicit item creation data. 795 /// * data: explicit item creation data.
796 #[weight = T::CommonWeightInfo::create_multiple_items_ex(&data)]796 #[weight = T::CommonWeightInfo::create_multiple_items_ex(&data)]
797 #[transactional]797 #[transactional]
798 pub fn create_multiple_items_ex(origin, collection_id: CollectionId, data: CreateItemExData<T::CrossAccountId>) -> DispatchResultWithPostInfo {798 pub fn create_multiple_items_ex(origin, collection_id: CollectionId, data: CreateItemExData<T::CrossAccountId>) -> DispatchResultWithPostInfo {
939 /// 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.939 /// 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.
940 ///940 ///
941 /// # Permissions941 /// # Permissions
942 /// 942 ///
943 /// * Collection Owner943 /// * Collection Owner
944 /// * Collection Admin944 /// * Collection Admin
945 /// * Current NFT owner945 /// * Current NFT owner
968 /// Set specific limits of a collection. Empty, or None fields mean chain default.968 /// Set specific limits of a collection. Empty, or None fields mean chain default.
969 ///.969 ///.
970 /// # Permissions970 /// # Permissions
971 /// 971 ///
972 /// * Collection Owner972 /// * Collection Owner
973 /// * Collection Admin973 /// * Collection Admin
974 ///974 ///
1002 /// Set specific permissions of a collection. Empty, or None fields mean chain default.1002 /// Set specific permissions of a collection. Empty, or None fields mean chain default.
1003 ///1003 ///
1004 /// # Permissions1004 /// # Permissions
1005 /// 1005 ///
1006 /// * Collection Owner1006 /// * Collection Owner
1007 /// * Collection Admin1007 /// * Collection Admin
1008 ///1008 ///
1036 /// Re-partition a refungible token, while owning all of its parts.1036 /// Re-partition a refungible token, while owning all of its parts.
1037 ///1037 ///
1038 /// # Permissions1038 /// # Permissions
1039 /// 1039 ///
1040 /// * Token Owner (must own every part)1040 /// * Token Owner (must own every part)
1041 ///1041 ///
1042 /// # Arguments1042 /// # Arguments
1043 ///1043 ///
1044 /// * collection_id.1044 /// * collection_id.
1045 /// 1045 ///
1046 /// * token: the ID of the RFT. 1046 /// * token: the ID of the RFT.
1047 ///1047 ///
1048 /// * amount: The new number of parts into which the token shall be partitioned.1048 /// * amount: The new number of parts into which the token shall be partitioned.
1049 #[weight = T::RefungibleExtensionsWeightInfo::repartition()]1049 #[weight = T::RefungibleExtensionsWeightInfo::repartition()]