git.delta.rocks / unique-network / refs/commits / 0fae602fb292

difftreelog

fix foreign-assets related docs

Daniel Shiposha2023-10-25parent: #68c3995.patch.diff
in: master

5 files changed

modifiedjs-packages/playgrounds/types.tsdiffbeforeafterboth
160 External = 1,160 External = 1,
161 /// Supports ERC721Metadata161 /// Supports ERC721Metadata
162 Erc721metadata = 64,162 Erc721metadata = 64,
163 /// Tokens in foreign collections can be transferred, but not burnt163 /// A collection of foreign assets
164 Foreign = 128,164 Foreign = 128,
165}165}
166166
modifiedjs-packages/tests/eth/api/CollectionHelpers.soldiffbeforeafterboth
132type CollectionFlags is uint8;132type CollectionFlags is uint8;
133133
134library CollectionFlagsLib {134library CollectionFlagsLib {
135 /// Tokens in foreign collections can be transferred, but not burnt135 /// A collection of foreign assets
136 CollectionFlags constant foreignField = CollectionFlags.wrap(128);136 CollectionFlags constant foreignField = CollectionFlags.wrap(128);
137 /// Supports ERC721Metadata137 /// Supports ERC721Metadata
138 CollectionFlags constant erc721metadataField = CollectionFlags.wrap(64);138 CollectionFlags constant erc721metadataField = CollectionFlags.wrap(64);
modifiedpallets/foreign-assets/src/lib.rsdiffbeforeafterboth
259 }259 }
260 }260 }
261261
262 /// 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 location
265 /// 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,
modifiedpallets/unique/src/eth/stubs/CollectionHelpers.soldiffbeforeafterboth
199type CollectionFlags is uint8;199type CollectionFlags is uint8;
200200
201library CollectionFlagsLib {201library CollectionFlagsLib {
202 /// Tokens in foreign collections can be transferred, but not burnt202 /// A collection of foreign assets
203 CollectionFlags constant foreignField = CollectionFlags.wrap(128);203 CollectionFlags constant foreignField = CollectionFlags.wrap(128);
204 /// Supports ERC721Metadata204 /// Supports ERC721Metadata
205 CollectionFlags constant erc721metadataField = CollectionFlags.wrap(64);205 CollectionFlags constant erc721metadataField = CollectionFlags.wrap(64);
modifiedprimitives/data-structs/src/lib.rsdiffbeforeafterboth
378#[derive(AbiCoderFlags, Bitfields, Clone, Copy, PartialEq, Eq, Debug, Default)]378#[derive(AbiCoderFlags, Bitfields, Clone, Copy, PartialEq, Eq, Debug, Default)]
379#[bondrewd(enforce_bytes = 1)]379#[bondrewd(enforce_bytes = 1)]
380pub struct CollectionFlags {380pub struct CollectionFlags {
381 /// Reserved flag381 /// A collection of foreign assets
382 #[bondrewd(bits = "0..1")]382 #[bondrewd(bits = "0..1")]
383 pub foreign: bool,383 pub foreign: bool,
384 /// Supports ERC721Metadata384 /// Supports ERC721Metadata