difftreelog
fix foreign-assets related docs
in: master
5 files changed
js-packages/playgrounds/types.tsdiffbeforeafterboth--- a/js-packages/playgrounds/types.ts
+++ b/js-packages/playgrounds/types.ts
@@ -160,7 +160,7 @@
External = 1,
/// Supports ERC721Metadata
Erc721metadata = 64,
- /// Tokens in foreign collections can be transferred, but not burnt
+ /// A collection of foreign assets
Foreign = 128,
}
js-packages/tests/eth/api/CollectionHelpers.soldiffbeforeafterboth--- a/js-packages/tests/eth/api/CollectionHelpers.sol
+++ b/js-packages/tests/eth/api/CollectionHelpers.sol
@@ -132,7 +132,7 @@
type CollectionFlags is uint8;
library CollectionFlagsLib {
- /// Tokens in foreign collections can be transferred, but not burnt
+ /// A collection of foreign assets
CollectionFlags constant foreignField = CollectionFlags.wrap(128);
/// Supports ERC721Metadata
CollectionFlags constant erc721metadataField = CollectionFlags.wrap(64);
pallets/foreign-assets/src/lib.rsdiffbeforeafterboth259 }259 }260 }260 }261261262 /// Converts a multiasset to a Unique Network's collection (either local or the foreign one).262 /// Converts a multiasset to a Unique Network's collection (either local or a foreign one).263 ///263 ///264 /// The function will try to convert the multiasset's reserve location264 /// The function will try to convert the multiasset's reserve location265 /// to the Unique Network's local collection.265 /// to the Unique Network's local collection.385 /// Withdraws an asset instance from the `from` account.385 /// Withdraws an asset instance from the `from` account.386 ///386 ///387 /// Transfers the asset instance to the pallet's account.387 /// Transfers the asset instance to the pallet's account.388 ///389 /// Won't withdraw the instance if it has children.390 fn withdraw_asset_instance(388 fn withdraw_asset_instance(391 xcm_ext: &dyn XcmExtensions<T>,389 xcm_ext: &dyn XcmExtensions<T>,392 collection_id: CollectionId,390 collection_id: CollectionId,pallets/unique/src/eth/stubs/CollectionHelpers.soldiffbeforeafterboth--- a/pallets/unique/src/eth/stubs/CollectionHelpers.sol
+++ b/pallets/unique/src/eth/stubs/CollectionHelpers.sol
@@ -199,7 +199,7 @@
type CollectionFlags is uint8;
library CollectionFlagsLib {
- /// Tokens in foreign collections can be transferred, but not burnt
+ /// A collection of foreign assets
CollectionFlags constant foreignField = CollectionFlags.wrap(128);
/// Supports ERC721Metadata
CollectionFlags constant erc721metadataField = CollectionFlags.wrap(64);
primitives/data-structs/src/lib.rsdiffbeforeafterboth--- a/primitives/data-structs/src/lib.rs
+++ b/primitives/data-structs/src/lib.rs
@@ -378,7 +378,7 @@
#[derive(AbiCoderFlags, Bitfields, Clone, Copy, PartialEq, Eq, Debug, Default)]
#[bondrewd(enforce_bytes = 1)]
pub struct CollectionFlags {
- /// Reserved flag
+ /// A collection of foreign assets
#[bondrewd(bits = "0..1")]
pub foreign: bool,
/// Supports ERC721Metadata