difftreelog
Merge pull request #419 from UniqueNetwork/release-v924010
in: master
Release v924010
74 files changed
.gitignorediffbeforeafterboth121213/.idea/13/.idea/14/.cargo/14/.cargo/15/.vscode/151616tests/.vscode17tests/.vscode17cumulus-parachain/18cumulus-parachain/README.mddiffbeforeafterboth421. Install Rust:421. Install Rust:434344```bash44```bash45sudo apt-get install git curl libssl-dev llvm pkg-config libclang-dev clang make45sudo apt-get install git curl libssl-dev llvm pkg-config libclang-dev clang make cmake46curl https://sh.rustup.rs -sSf | sh46curl https://sh.rustup.rs -sSf | sh47```47```484883### Polkadot launch utility83### Polkadot launch utility848485```85```86git clone https://github.com/paritytech/polkadot-launch86git clone https://github.com/UniqueNetwork/polkadot-launch.git87git checkout feature/runtime-upgrade-testing87```88```888989### Build relay90### Build relaypallets/common/src/lib.rsdiffbeforeafterboth1258 }1258 }1259}1259}12601261pub trait RefungibleExtensionsWeightInfo {1262 fn repartition() -> Weight;1263}126012641261pub trait CommonCollectionOperations<T: Config> {1265pub trait CommonCollectionOperations<T: Config> {1262 fn create_item(1266 fn create_item(1307 sender: T::CrossAccountId,1311 sender: T::CrossAccountId,1308 token_id: TokenId,1312 token_id: TokenId,1309 property: Vec<Property>,1313 property: Vec<Property>,1314 nesting_budget: &dyn Budget,1310 ) -> DispatchResultWithPostInfo;1315 ) -> DispatchResultWithPostInfo;1311 fn delete_token_properties(1316 fn delete_token_properties(1312 &self,1317 &self,1313 sender: T::CrossAccountId,1318 sender: T::CrossAccountId,1314 token_id: TokenId,1319 token_id: TokenId,1315 property_keys: Vec<PropertyKey>,1320 property_keys: Vec<PropertyKey>,1321 nesting_budget: &dyn Budget,1316 ) -> DispatchResultWithPostInfo;1322 ) -> DispatchResultWithPostInfo;1317 fn set_token_property_permissions(1323 fn set_token_property_permissions(1318 &self,1324 &self,1357 sender: T::CrossAccountId,1363 sender: T::CrossAccountId,1358 from: (CollectionId, TokenId),1364 from: (CollectionId, TokenId),1359 under: TokenId,1365 under: TokenId,1360 budget: &dyn Budget,1366 nesting_budget: &dyn Budget,1361 ) -> DispatchResult;1367 ) -> DispatchResult;136213681363 fn nest(&self, under: TokenId, to_nest: (CollectionId, TokenId));1369 fn nest(&self, under: TokenId, to_nest: (CollectionId, TokenId));1384 spender: T::CrossAccountId,1390 spender: T::CrossAccountId,1385 token: TokenId,1391 token: TokenId,1386 ) -> u128;1392 ) -> u128;1393 fn refungible_extensions(&self) -> Option<&dyn RefungibleExtensions<T>>;1387}1394}13951396pub trait RefungibleExtensions<T>1397where1398 T: Config,1399{1400 fn repartition(1401 &self,1402 owner: &T::CrossAccountId,1403 token: TokenId,1404 amount: u128,1405 ) -> DispatchResultWithPostInfo;1406}138814071389// Flexible enough for implementing CommonCollectionOperations1408// Flexible enough for implementing CommonCollectionOperations1390pub fn with_weight(res: DispatchResult, weight: Weight) -> DispatchResultWithPostInfo {1409pub fn with_weight(res: DispatchResult, weight: Weight) -> DispatchResultWithPostInfo {pallets/fungible/src/common.rsdiffbeforeafterboth181819use frame_support::{dispatch::DispatchResultWithPostInfo, ensure, fail, weights::Weight, traits::Get};19use frame_support::{dispatch::DispatchResultWithPostInfo, ensure, fail, weights::Weight, traits::Get};20use up_data_structs::{TokenId, CollectionId, CreateItemExData, budget::Budget, CreateItemData};20use up_data_structs::{TokenId, CollectionId, CreateItemExData, budget::Budget, CreateItemData};21use pallet_common::{CommonCollectionOperations, CommonWeightInfo, with_weight};21use pallet_common::{CommonCollectionOperations, CommonWeightInfo, RefungibleExtensions, with_weight};22use pallet_structure::Error as StructureError;22use pallet_structure::Error as StructureError;23use sp_runtime::ArithmeticError;23use sp_runtime::ArithmeticError;24use sp_std::{vec::Vec, vec};24use sp_std::{vec::Vec, vec};298 _sender: T::CrossAccountId,298 _sender: T::CrossAccountId,299 _token_id: TokenId,299 _token_id: TokenId,300 _property: Vec<Property>,300 _property: Vec<Property>,301 _nesting_budget: &dyn Budget,301 ) -> DispatchResultWithPostInfo {302 ) -> DispatchResultWithPostInfo {302 fail!(<Error<T>>::SettingPropertiesNotAllowed)303 fail!(<Error<T>>::SettingPropertiesNotAllowed)303 }304 }315 _sender: T::CrossAccountId,316 _sender: T::CrossAccountId,316 _token_id: TokenId,317 _token_id: TokenId,317 _property_keys: Vec<PropertyKey>,318 _property_keys: Vec<PropertyKey>,319 _nesting_budget: &dyn Budget,318 ) -> DispatchResultWithPostInfo {320 ) -> DispatchResultWithPostInfo {319 fail!(<Error<T>>::SettingPropertiesNotAllowed)321 fail!(<Error<T>>::SettingPropertiesNotAllowed)320 }322 }324 _sender: <T>::CrossAccountId,326 _sender: <T>::CrossAccountId,325 _from: (CollectionId, TokenId),327 _from: (CollectionId, TokenId),326 _under: TokenId,328 _under: TokenId,327 _budget: &dyn Budget,329 _nesting_budget: &dyn Budget,328 ) -> sp_runtime::DispatchResult {330 ) -> sp_runtime::DispatchResult {329 fail!(<Error<T>>::FungibleDisallowsNesting)331 fail!(<Error<T>>::FungibleDisallowsNesting)330 }332 }400 <Allowance<T>>::get((self.id, sender, spender))402 <Allowance<T>>::get((self.id, sender, spender))401 }403 }404405 fn refungible_extensions(&self) -> Option<&dyn RefungibleExtensions<T>> {406 None407 }402}408}403409pallets/nonfungible/src/benchmarking.rsdiffbeforeafterboth183 value: property_value(),183 value: property_value(),184 }).collect::<Vec<_>>();184 }).collect::<Vec<_>>();185 let item = create_max_item(&collection, &owner, owner.clone())?;185 let item = create_max_item(&collection, &owner, owner.clone())?;186 }: {<Pallet<T>>::set_token_properties(&collection, &owner, item, props, false)?}186 }: {<Pallet<T>>::set_token_properties(&collection, &owner, item, props, false, &Unlimited)?}187187188 delete_token_properties {188 delete_token_properties {189 let b in 0..MAX_PROPERTIES_PER_ITEM;189 let b in 0..MAX_PROPERTIES_PER_ITEM;205 value: property_value(),205 value: property_value(),206 }).collect::<Vec<_>>();206 }).collect::<Vec<_>>();207 let item = create_max_item(&collection, &owner, owner.clone())?;207 let item = create_max_item(&collection, &owner, owner.clone())?;208 <Pallet<T>>::set_token_properties(&collection, &owner, item, props, false)?;208 <Pallet<T>>::set_token_properties(&collection, &owner, item, props, false, &Unlimited)?;209 let to_delete = (0..b).map(|k| property_key(k as usize)).collect::<Vec<_>>();209 let to_delete = (0..b).map(|k| property_key(k as usize)).collect::<Vec<_>>();210 }: {<Pallet<T>>::delete_token_properties(&collection, &owner, item, to_delete)?}210 }: {<Pallet<T>>::delete_token_properties(&collection, &owner, item, to_delete, &Unlimited)?}211}211}212212pallets/nonfungible/src/common.rsdiffbeforeafterboth22 PropertyKeyPermission, PropertyValue,22 PropertyKeyPermission, PropertyValue,23};23};24use pallet_common::{24use pallet_common::{25 CommonCollectionOperations, CommonWeightInfo, with_weight, weights::WeightInfo as _,25 CommonCollectionOperations, CommonWeightInfo, RefungibleExtensions, with_weight,26 weights::WeightInfo as _,26};27};27use sp_runtime::DispatchError;28use sp_runtime::DispatchError;219 sender: T::CrossAccountId,220 sender: T::CrossAccountId,220 token_id: TokenId,221 token_id: TokenId,221 properties: Vec<Property>,222 properties: Vec<Property>,223 nesting_budget: &dyn Budget,222 ) -> DispatchResultWithPostInfo {224 ) -> DispatchResultWithPostInfo {223 let weight = <CommonWeights<T>>::set_token_properties(properties.len() as u32);225 let weight = <CommonWeights<T>>::set_token_properties(properties.len() as u32);224226225 with_weight(227 with_weight(226 <Pallet<T>>::set_token_properties(self, &sender, token_id, properties, false),228 <Pallet<T>>::set_token_properties(229 self,230 &sender,231 token_id,232 properties.into_iter(),233 false,234 nesting_budget,235 ),227 weight,236 weight,228 )237 )233 sender: T::CrossAccountId,242 sender: T::CrossAccountId,234 token_id: TokenId,243 token_id: TokenId,235 property_keys: Vec<PropertyKey>,244 property_keys: Vec<PropertyKey>,245 nesting_budget: &dyn Budget,236 ) -> DispatchResultWithPostInfo {246 ) -> DispatchResultWithPostInfo {237 let weight = <CommonWeights<T>>::delete_token_properties(property_keys.len() as u32);247 let weight = <CommonWeights<T>>::delete_token_properties(property_keys.len() as u32);238248239 with_weight(249 with_weight(240 <Pallet<T>>::delete_token_properties(self, &sender, token_id, property_keys),250 <Pallet<T>>::delete_token_properties(251 self,252 &sender,253 token_id,254 property_keys.into_iter(),255 nesting_budget,256 ),241 weight,257 weight,242 )258 )367 sender: T::CrossAccountId,383 sender: T::CrossAccountId,368 from: (CollectionId, TokenId),384 from: (CollectionId, TokenId),369 under: TokenId,385 under: TokenId,370 budget: &dyn Budget,386 nesting_budget: &dyn Budget,371 ) -> sp_runtime::DispatchResult {387 ) -> sp_runtime::DispatchResult {372 <Pallet<T>>::check_nesting(self, sender, from, under, budget)388 <Pallet<T>>::check_nesting(self, sender, from, under, nesting_budget)373 }389 }374390375 fn nest(&self, under: TokenId, to_nest: (CollectionId, TokenId)) {391 fn nest(&self, under: TokenId, to_nest: (CollectionId, TokenId)) {468 }484 }469 }485 }486487 fn refungible_extensions(&self) -> Option<&dyn RefungibleExtensions<T>> {488 None489 }470}490}471491pallets/nonfungible/src/erc.rsdiffbeforeafterboth82 .map_err(|_| "key too long")?;82 .map_err(|_| "key too long")?;83 let value = value.try_into().map_err(|_| "value too long")?;83 let value = value.try_into().map_err(|_| "value too long")?;8485 let nesting_budget = self86 .recorder87 .weight_calls_budget(<StructureWeight<T>>::find_parent());848885 <Pallet<T>>::set_token_property(89 <Pallet<T>>::set_token_property(86 self,90 self,87 &caller,91 &caller,88 TokenId(token_id),92 TokenId(token_id),89 Property { key, value },93 Property { key, value },90 false,94 &nesting_budget,91 )95 )92 .map_err(dispatch_to_evm::<T>)96 .map_err(dispatch_to_evm::<T>)93 }97 }99 .try_into()103 .try_into()100 .map_err(|_| "key too long")?;104 .map_err(|_| "key too long")?;105106 let nesting_budget = self107 .recorder108 .weight_calls_budget(<StructureWeight<T>>::find_parent());101109102 <Pallet<T>>::delete_token_property(self, &caller, TokenId(token_id), key)110 <Pallet<T>>::delete_token_property(self, &caller, TokenId(token_id), key, &nesting_budget)103 .map_err(dispatch_to_evm::<T>)111 .map_err(dispatch_to_evm::<T>)104 }112 }105113pallets/nonfungible/src/lib.rsdiffbeforeafterboth28use up_data_structs::{28use up_data_structs::{29 AccessMode, CollectionId, CustomDataLimit, TokenId, CreateCollectionData, CreateNftExData,29 AccessMode, CollectionId, CustomDataLimit, TokenId, CreateCollectionData, CreateNftExData,30 mapping::TokenAddressMapping, budget::Budget, Property, PropertyPermission, PropertyKey,30 mapping::TokenAddressMapping, budget::Budget, Property, PropertyPermission, PropertyKey,31 PropertyKeyPermission, Properties, PropertyScope, TrySetProperty, TokenChild, AuxPropertyValue,31 PropertyValue, PropertyKeyPermission, Properties, PropertyScope, TrySetProperty, TokenChild,32 AuxPropertyValue,32};33};33use pallet_evm::{account::CrossAccountId, Pallet as PalletEvm};34use pallet_evm::{account::CrossAccountId, Pallet as PalletEvm};381 <TokenData<T>>::get((collection.id, token)).ok_or(<CommonError<T>>::TokenNotFound)?;382 <TokenData<T>>::get((collection.id, token)).ok_or(<CommonError<T>>::TokenNotFound)?;382 ensure!(383 ensure!(&token_data.owner == sender, <CommonError<T>>::NoPermission);383 &token_data.owner == sender384 || (collection.limits.owner_can_transfer() && collection.is_owner_or_admin(sender)),385 <CommonError<T>>::NoPermission386 );387384484 })481 })485 }482 }486483484 #[transactional]487 pub fn set_token_property(485 fn modify_token_properties(488 collection: &NonfungibleHandle<T>,486 collection: &NonfungibleHandle<T>,489 sender: &T::CrossAccountId,487 sender: &T::CrossAccountId,490 token_id: TokenId,488 token_id: TokenId,491 property: Property,489 properties: impl Iterator<Item = (PropertyKey, Option<PropertyValue>)>,492 is_token_create: bool,490 is_token_create: bool,491 nesting_budget: &dyn Budget,493 ) -> DispatchResult {492 ) -> DispatchResult {493 let mut collection_admin_status = None;494 let mut token_owner_result = None;495496 let mut is_collection_admin =497 || *collection_admin_status.get_or_insert_with(|| collection.is_owner_or_admin(sender));498499 let mut is_token_owner = || {494 Self::check_token_change_permission(500 *token_owner_result.get_or_insert_with(|| -> Result<bool, DispatchError> {495 collection,501 let is_owned = <PalletStructure<T>>::check_indirectly_owned(496 sender,502 sender.clone(),503 collection.id,497 token_id,504 token_id,498 &property.key,505 None,499 is_token_create,506 nesting_budget,507 )?;508509 Ok(is_owned)500 )?;510 })501511 };512513 for (key, value) in properties {514 let permission = <PalletCommon<T>>::property_permissions(collection.id)515 .get(&key)516 .cloned()517 .unwrap_or_else(PropertyPermission::none);518519 let is_property_exists = TokenProperties::<T>::get((collection.id, token_id))520 .get(&key)521 .is_some();522523 match permission {524 PropertyPermission { mutable: false, .. } if is_property_exists => {525 return Err(<CommonError<T>>::NoPermission.into());526 }527528 PropertyPermission {529 collection_admin,530 token_owner,531 ..532 } => {533 //TODO: investigate threats during public minting.534 if is_token_create && (collection_admin || token_owner) && value.is_some() {535 // Pass536 } else if collection_admin && is_collection_admin() {537 // Pass538 } else if token_owner && is_token_owner()? {539 // Pass540 } else {541 fail!(<CommonError<T>>::NoPermission);542 }543 }544 }545546 match value {547 Some(value) => {502 <TokenProperties<T>>::try_mutate((collection.id, token_id), |properties| {548 <TokenProperties<T>>::try_mutate((collection.id, token_id), |properties| {503 let property = property.clone();504 properties.try_set(property.key, property.value)549 properties.try_set(key.clone(), value)505 })550 })551 .map_err(<CommonError<T>>::from)?;552506 .map_err(<CommonError<T>>::from)?;553 <PalletCommon<T>>::deposit_event(CommonEvent::TokenPropertySet(507554 collection.id,508 <PalletCommon<T>>::deposit_event(CommonEvent::TokenPropertySet(555 token_id,509 collection.id,556 key,510 token_id,557 ));511 property.key,558 }512 ));559 None => {560 <TokenProperties<T>>::try_mutate((collection.id, token_id), |properties| {561 properties.remove(&key)562 })563 .map_err(<CommonError<T>>::from)?;564565 <PalletCommon<T>>::deposit_event(CommonEvent::TokenPropertyDeleted(566 collection.id,567 token_id,568 key,569 ));570 }571 }572 }513573514 Ok(())574 Ok(())515 }575 }516576517 #[transactional]518 pub fn set_token_properties(577 pub fn set_token_properties(519 collection: &NonfungibleHandle<T>,578 collection: &NonfungibleHandle<T>,520 sender: &T::CrossAccountId,579 sender: &T::CrossAccountId,521 token_id: TokenId,580 token_id: TokenId,522 properties: Vec<Property>,581 properties: impl Iterator<Item = Property>,523 is_token_create: bool,582 is_token_create: bool,583 nesting_budget: &dyn Budget,524 ) -> DispatchResult {584 ) -> DispatchResult {525 for property in properties {526 Self::set_token_property(collection, sender, token_id, property, is_token_create)?;585 Self::modify_token_properties(527 }586 collection,528587 sender,529 Ok(())588 token_id,589 properties.map(|p| (p.key, Some(p.value))),590 is_token_create,591 nesting_budget,592 )530 }593 }531594532 pub fn delete_token_property(595 pub fn set_token_property(533 collection: &NonfungibleHandle<T>,596 collection: &NonfungibleHandle<T>,534 sender: &T::CrossAccountId,597 sender: &T::CrossAccountId,535 token_id: TokenId,598 token_id: TokenId,536 property_key: PropertyKey,599 property: Property,600 nesting_budget: &dyn Budget,537 ) -> DispatchResult {601 ) -> DispatchResult {602 let is_token_create = false;603538 Self::check_token_change_permission(collection, sender, token_id, &property_key, false)?;604 Self::set_token_properties(539605 collection,540 <TokenProperties<T>>::try_mutate((collection.id, token_id), |properties| {606 sender,541 properties.remove(&property_key)607 token_id,542 })608 [property].into_iter(),543 .map_err(<CommonError<T>>::from)?;609 is_token_create,544610 nesting_budget,545 <PalletCommon<T>>::deposit_event(CommonEvent::TokenPropertyDeleted(611 )546 collection.id,547 token_id,548 property_key,549 ));550551 Ok(())552 }612 }553613554 fn check_token_change_permission(614 pub fn delete_token_properties(555 collection: &NonfungibleHandle<T>,615 collection: &NonfungibleHandle<T>,556 sender: &T::CrossAccountId,616 sender: &T::CrossAccountId,557 token_id: TokenId,617 token_id: TokenId,558 property_key: &PropertyKey,618 property_keys: impl Iterator<Item = PropertyKey>,559 is_token_create: bool,619 nesting_budget: &dyn Budget,560 ) -> DispatchResult {620 ) -> DispatchResult {561 let permission = <PalletCommon<T>>::property_permissions(collection.id)621 let is_token_create = false;562 .get(property_key)622563 .cloned()564 .unwrap_or_else(PropertyPermission::none);565566 let token_data = <TokenData<T>>::get((collection.id, token_id))567 .ok_or(<CommonError<T>>::TokenNotFound)?;568569 let check_token_owner = || -> DispatchResult {570 ensure!(&token_data.owner == sender, <CommonError<T>>::NoPermission);571 Ok(())572 };573574 let is_property_exists = TokenProperties::<T>::get((collection.id, token_id))575 .get(property_key)576 .is_some();577578 match permission {579 PropertyPermission { mutable: false, .. } if is_property_exists => {580 Err(<CommonError<T>>::NoPermission.into())623 Self::modify_token_properties(581 }582583 PropertyPermission {584 collection_admin,624 collection,585 token_owner,625 sender,586 ..626 token_id,587 } => {588 //TODO: investigate threats during public minting.589 if is_token_create && (collection_admin || token_owner) {590 return Ok(());627 property_keys.into_iter().map(|key| (key, None)),591 }628 is_token_create,592629 nesting_budget,593 let mut check_result = Err(<CommonError<T>>::NoPermission.into());630 )594595 if collection_admin {596 check_result = collection.check_is_owner_or_admin(sender);597 }598599 if token_owner {600 check_result.or_else(|_| check_token_owner())601 } else {602 check_result603 }604 }605 }606 }631 }607632608 #[transactional]609 pub fn delete_token_properties(633 pub fn delete_token_property(610 collection: &NonfungibleHandle<T>,634 collection: &NonfungibleHandle<T>,611 sender: &T::CrossAccountId,635 sender: &T::CrossAccountId,612 token_id: TokenId,636 token_id: TokenId,613 property_keys: Vec<PropertyKey>,637 property_key: PropertyKey,638 nesting_budget: &dyn Budget,614 ) -> DispatchResult {639 ) -> DispatchResult {615 for key in property_keys {616 Self::delete_token_property(collection, sender, token_id, key)?;640 Self::delete_token_properties(617 }641 collection,618642 sender,619 Ok(())643 token_id,644 [property_key].into_iter(),645 nesting_budget,646 )620 }647 }621648665692666 let token_data =693 let token_data =667 <TokenData<T>>::get((collection.id, token)).ok_or(<CommonError<T>>::TokenNotFound)?;694 <TokenData<T>>::get((collection.id, token)).ok_or(<CommonError<T>>::TokenNotFound)?;668 // TODO: require sender to be token, owner, require admins to go through transfer_from669 ensure!(695 ensure!(&token_data.owner == from, <CommonError<T>>::NoPermission);670 &token_data.owner == from671 || (collection.limits.owner_can_transfer() && collection.is_owner_or_admin(from)),672 <CommonError<T>>::NoPermission673 );674696827 collection,849 collection,828 sender,850 sender,829 TokenId(token),851 TokenId(token),830 data.properties.clone().into_inner(),852 data.properties.clone().into_iter(),831 true,853 true,854 nesting_budget,832 ) {855 ) {833 return TransactionOutcome::Rollback(Err(e));856 return TransactionOutcome::Rollback(Err(e));834 }857 }977 collection.check_allowlist(spender)?;1000 collection.check_allowlist(spender)?;978 }1001 }10021003 if collection.limits.owner_can_transfer() && collection.is_owner_or_admin(spender) {1004 return Ok(());1005 }1006979 if let Some(source) = T::CrossTokenAddressMapping::address_to_token(from) {1007 if let Some(source) = T::CrossTokenAddressMapping::address_to_token(from) {980 // TODO: should collection owner be allowed to perform this transfer?981 ensure!(1008 ensure!(982 <PalletStructure<T>>::check_indirectly_owned(1009 <PalletStructure<T>>::check_indirectly_owned(983 spender.clone(),1010 spender.clone(),pallets/proxy-rmrk-core/src/lib.rsdiffbeforeafterboth19use frame_support::{pallet_prelude::*, transactional, BoundedVec, dispatch::DispatchResult};19use frame_support::{pallet_prelude::*, transactional, BoundedVec, dispatch::DispatchResult};20use frame_system::{pallet_prelude::*, ensure_signed};20use frame_system::{pallet_prelude::*, ensure_signed};21use sp_runtime::{DispatchError, Permill, traits::StaticLookup};21use sp_runtime::{DispatchError, Permill, traits::StaticLookup};22use sp_std::vec::Vec;22use sp_std::{23 vec::Vec,24 collections::{btree_set::BTreeSet, btree_map::BTreeMap},25};23use up_data_structs::{*, mapping::TokenAddressMapping};26use up_data_structs::{*, mapping::TokenAddressMapping};24use pallet_common::{27use pallet_common::{25 Pallet as PalletCommon, Error as CommonError, CollectionHandle, CommonCollectionOperations,28 Pallet as PalletCommon, Error as CommonError, CollectionHandle, CommonCollectionOperations,485149pub const NESTING_BUDGET: u32 = 5;52pub const NESTING_BUDGET: u32 = 5;5354type PendingTarget = (CollectionId, TokenId);55type PendingChild = (RmrkCollectionId, RmrkNftId);56type PendingChildrenSet = BTreeSet<PendingChild>;5758type BasesMap = BTreeMap<RmrkBaseId, u32>;505951#[frame_support::pallet]60#[frame_support::pallet]52pub mod pallet {61pub mod pallet {383 [392 [384 Self::rmrk_property(TokenType, &NftType::Regular)?,393 Self::rmrk_property(TokenType, &NftType::Regular)?,385 Self::rmrk_property(Transferable, &transferable)?,394 Self::rmrk_property(Transferable, &transferable)?,386 Self::rmrk_property(PendingNftAccept, &false)?,395 Self::rmrk_property(PendingNftAccept, &None::<PendingTarget>)?,387 Self::rmrk_property(RoyaltyInfo, &royalty_info)?,396 Self::rmrk_property(RoyaltyInfo, &royalty_info)?,388 Self::rmrk_property(Metadata, &metadata)?,397 Self::rmrk_property(Metadata, &metadata)?,389 Self::rmrk_property(Equipped, &false)?,398 Self::rmrk_property(Equipped, &false)?,390 Self::rmrk_property(ResourcePriorities, &<Vec<u8>>::new())?,399 Self::rmrk_property(ResourcePriorities, &<Vec<u8>>::new())?,391 Self::rmrk_property(NextResourceId, &(0 as RmrkResourceId))?,400 Self::rmrk_property(NextResourceId, &(0 as RmrkResourceId))?,401 Self::rmrk_property(PendingChildren, &PendingChildrenSet::new())?,402 Self::rmrk_property(AssociatedBases, &BasesMap::new())?,392 ]403 ]393 .into_iter(),404 .into_iter(),394 )405 )483 );494 );484495485 ensure!(496 ensure!(486 !Self::get_nft_property_decoded(497 Self::get_nft_property_decoded::<Option<PendingTarget>>(487 collection_id,498 collection_id,488 nft_id,499 nft_id,489 RmrkProperty::PendingNftAccept500 RmrkProperty::PendingNftAccept490 )?,501 )?502 .is_none(),491 <Error<T>>::NoPermission503 <Error<T>>::NoPermission492 );504 );493505524 collection.id,536 collection.id,525 nft_id,537 nft_id,526 PropertyScope::Rmrk,538 PropertyScope::Rmrk,527 Self::rmrk_property(PendingNftAccept, &approval_required)?,539 Self::rmrk_property::<Option<PendingTarget>>(540 PendingNftAccept,541 &Some((target_collection_id, target_nft_id.into())),542 )?,528 )?;543 )?;544545 Self::insert_pending_child(546 (target_collection_id, target_nft_id.into()),547 (rmrk_collection_id, rmrk_nft_id),548 )?;529 } else {549 } else {530 target_owner = T::CrossTokenAddressMapping::token_to_address(550 target_owner = T::CrossTokenAddressMapping::token_to_address(531 target_collection_id,551 target_collection_id,618 }638 }619 })?;639 })?;640641 let pending_target = Self::get_nft_property_decoded::<Option<PendingTarget>>(642 collection_id,643 nft_id,644 RmrkProperty::PendingNftAccept,645 )?;646647 if let Some(pending_target) = pending_target {648 Self::remove_pending_child(pending_target, (rmrk_collection_id, rmrk_nft_id))?;620649621 <PalletNft<T>>::set_scoped_token_property(650 <PalletNft<T>>::set_scoped_token_property(622 collection.id,651 collection.id,623 nft_id,652 nft_id,624 PropertyScope::Rmrk,653 PropertyScope::Rmrk,625 Self::rmrk_property(PendingNftAccept, &false)?,654 Self::rmrk_property(PendingNftAccept, &None::<PendingTarget>)?,626 )?;655 )?;656 }627657628 Self::deposit_event(Event::NFTAccepted {658 Self::deposit_event(Event::NFTAccepted {629 sender,659 sender,663 <Error<T>>::NoAvailableNftId693 <Error<T>>::NoAvailableNftId664 );694 );665695666 ensure!(667 Self::get_nft_property_decoded(696 let pending_target = Self::get_nft_property_decoded::<Option<PendingTarget>>(668 collection_id,697 collection_id,669 nft_id,698 nft_id,670 RmrkProperty::PendingNftAccept699 RmrkProperty::PendingNftAccept,671 )?,700 )?;672 <Error<T>>::CannotRejectNonPendingNft701673 );702 match pending_target {703 Some(pending_target) => {704 Self::remove_pending_child(pending_target, (rmrk_collection_id, rmrk_nft_id))?705 }706 None => return Err(<Error<T>>::CannotRejectNonPendingNft.into()),707 }674708675 Self::destroy_nft(709 Self::destroy_nft(676 cross_sender,710 cross_sender,785 resource_id_key,819 resource_id_key,786 );820 );821822 if let RmrkResourceTypes::Composable(resource) = resource_info.resource {823 let base_id = resource.base;824825 Self::remove_associated_base_id(collection_id, nft_id, base_id)?;826 }787827788 Self::deposit_event(Event::<T>::ResourceRemovalAccepted {828 Self::deposit_event(Event::<T>::ResourceRemovalAccepted {789 nft_id: rmrk_nft_id,829 nft_id: rmrk_nft_id,938 Self::get_typed_nft_collection(collection_id, misc::CollectionType::Regular)?;978 Self::get_typed_nft_collection(collection_id, misc::CollectionType::Regular)?;939 collection.check_is_external()?;979 collection.check_is_external()?;980981 let base_id = resource.base;940982941 let resource_id = Self::resource_add(983 let resource_id = Self::resource_add(942 sender,984 sender,945 RmrkResourceTypes::Composable(resource),987 RmrkResourceTypes::Composable(resource),946 )?;988 )?;989990 <PalletNft<T>>::try_mutate_token_aux_property(991 collection_id,992 nft_id.into(),993 PropertyScope::Rmrk,994 Self::rmrk_property_key(AssociatedBases)?,995 |value| -> DispatchResult {996 let mut bases: BasesMap = match value {997 Some(value) => Self::decode_property(value)?,998 None => BasesMap::new(),999 };10001001 *bases.entry(base_id).or_insert(0) += 1;10021003 *value = Some(Self::encode_property(&bases)?);1004 Ok(())1005 },1006 )?;9471007948 Self::deposit_event(Event::ResourceAdded {1008 Self::deposit_event(Event::ResourceAdded {949 nft_id,1009 nft_id,1147 )1207 )1148 }1208 }12091210 fn insert_pending_child(1211 target: (CollectionId, TokenId),1212 child: (RmrkCollectionId, RmrkNftId),1213 ) -> DispatchResult {1214 Self::mutate_pending_child(target, |pending_children| {1215 pending_children.insert(child);1216 })1217 }12181219 fn remove_pending_child(1220 target: (CollectionId, TokenId),1221 child: (RmrkCollectionId, RmrkNftId),1222 ) -> DispatchResult {1223 Self::mutate_pending_child(target, |pending_children| {1224 pending_children.remove(&child);1225 })1226 }12271228 fn mutate_pending_child(1229 (target_collection_id, target_nft_id): (CollectionId, TokenId),1230 f: impl FnOnce(&mut PendingChildrenSet),1231 ) -> DispatchResult {1232 <PalletNft<T>>::try_mutate_token_aux_property(1233 target_collection_id,1234 target_nft_id,1235 PropertyScope::Rmrk,1236 Self::rmrk_property_key(PendingChildren)?,1237 |pending_children| -> DispatchResult {1238 let mut map = match pending_children {1239 Some(map) => Self::decode_property(map)?,1240 None => PendingChildrenSet::new(),1241 };12421243 f(&mut map);12441245 *pending_children = Some(Self::encode_property(&map)?);12461247 Ok(())1248 },1249 )1250 }12511252 fn iterate_pending_children(1253 collection_id: CollectionId,1254 nft_id: TokenId,1255 ) -> Result<impl Iterator<Item = PendingChild>, DispatchError> {1256 let property = <PalletNft<T>>::token_aux_property((1257 collection_id,1258 nft_id,1259 PropertyScope::Rmrk,1260 Self::rmrk_property_key(PendingChildren)?,1261 ));12621263 let pending_children = match property {1264 Some(map) => Self::decode_property(&map)?,1265 None => PendingChildrenSet::new(),1266 };12671268 Ok(pending_children.into_iter())1269 }114912701150 fn acquire_next_resource_id(1271 fn acquire_next_resource_id(1151 collection_id: CollectionId,1272 collection_id: CollectionId,1223 let resource_id_key = Self::rmrk_property_key(ResourceId(resource_id))?;1344 let resource_id_key = Self::rmrk_property_key(ResourceId(resource_id))?;1224 let scope = PropertyScope::Rmrk;1345 let scope = PropertyScope::Rmrk;122513461226 ensure!(1227 <PalletNft<T>>::token_aux_property((1347 let resource = <PalletNft<T>>::token_aux_property((1228 collection_id,1348 collection_id,1229 nft_id,1349 nft_id,1230 scope,1350 scope,1231 resource_id_key.clone()1351 resource_id_key.clone(),1232 ))1352 ))1233 .is_some(),1353 .ok_or(<Error<T>>::ResourceDoesntExist)?;1234 <Error<T>>::ResourceDoesntExist13541235 );1355 let resource_info: RmrkResourceInfo = Self::decode_property(&resource)?;123613561237 let budget = up_data_structs::budget::Value::new(NESTING_BUDGET);1357 let budget = up_data_structs::budget::Value::new(NESTING_BUDGET);1238 let topmost_owner =1358 let topmost_owner =1247 Self::rmrk_property_key(ResourceId(resource_id))?,1367 Self::rmrk_property_key(ResourceId(resource_id))?,1248 );1368 );13691370 if let RmrkResourceTypes::Composable(resource) = resource_info.resource {1371 let base_id = resource.base;13721373 Self::remove_associated_base_id(collection_id, nft_id, base_id)?;1374 }1249 } else {1375 } else {1250 Self::try_mutate_resource_info(collection_id, nft_id, resource_id, |res| {1376 Self::try_mutate_resource_info(collection_id, nft_id, resource_id, |res| {1251 res.pending_removal = true;1377 res.pending_removal = true;1257 Ok(())1383 Ok(())1258 }1384 }13851386 fn remove_associated_base_id(1387 collection_id: CollectionId,1388 nft_id: TokenId,1389 base_id: RmrkBaseId,1390 ) -> DispatchResult {1391 <PalletNft<T>>::try_mutate_token_aux_property(1392 collection_id,1393 nft_id,1394 PropertyScope::Rmrk,1395 Self::rmrk_property_key(AssociatedBases)?,1396 |value| -> DispatchResult {1397 let mut bases: BasesMap = match value {1398 Some(value) => Self::decode_property(value)?,1399 None => BasesMap::new(),1400 };14011402 let remaining = bases.get(&base_id);14031404 if let Some(remaining) = remaining {1405 if let Some(0) | None = remaining.checked_sub(1) {1406 bases.remove(&base_id);1407 }1408 }14091410 *value = Some(Self::encode_property(&bases)?);1411 Ok(())1412 },1413 )1414 }125914151260 fn try_mutate_resource_info(1416 fn try_mutate_resource_info(1261 collection_id: CollectionId,1417 collection_id: CollectionId,1526 Value: Decode + Default,1682 Value: Decode + Default,1527 Mapper: Fn(Key, Value) -> R,1683 Mapper: Fn(Key, Value) -> R,1528 {1684 {1529 let key_prefix = Self::rmrk_property_key(UserProperty(b""))?;15301531 let properties = match token_id {1685 let properties = match token_id {1532 Some(token_id) => <PalletNft<T>>::token_properties((collection_id, token_id)),1686 Some(token_id) => <PalletNft<T>>::token_properties((collection_id, token_id)),1533 None => <PalletCommon<T>>::collection_properties(collection_id),1687 None => <PalletCommon<T>>::collection_properties(collection_id),1534 };1688 };153516891536 let properties = properties.into_iter().filter_map(move |(key, value)| {1690 let properties = properties.into_iter().filter_map(move |(key, value)| {1537 let key = key.as_slice().strip_prefix(key_prefix.as_slice())?;1691 let key = strip_key_prefix(&key, USER_PROPERTY_PREFIX)?;153816921539 let key: Key = key.to_vec().try_into().ok()?;1693 let key: Key = key.to_vec().try_into().ok()?;1540 let value: Value = value.decode().ok()?;1694 let value: Value = value.decode().ok()?;pallets/proxy-rmrk-core/src/property.rsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617use super::*;17use super::*;18use up_data_structs::PropertyScope;18use core::convert::AsRef;19use core::convert::AsRef;192020const RESOURCE_ID_PREFIX: &str = "rsid-";21pub const RESOURCE_ID_PREFIX: &str = "rsid-";22pub const USER_PROPERTY_PREFIX: &str = "userprop-";212322pub enum RmrkProperty<'r> {24pub enum RmrkProperty<'r> {23 Metadata,25 Metadata,31 NextResourceId,33 NextResourceId,32 ResourceId(RmrkResourceId),34 ResourceId(RmrkResourceId),33 PendingNftAccept,35 PendingNftAccept,36 PendingChildren,37 AssociatedBases,34 Parts,38 Parts,35 Base,39 Base,36 Src,40 Src,73 Self::NextResourceId => key!("next-resource-id"),77 Self::NextResourceId => key!("next-resource-id"),74 Self::ResourceId(id) => key!(RESOURCE_ID_PREFIX, id.to_le_bytes()),78 Self::ResourceId(id) => key!(RESOURCE_ID_PREFIX, id.to_le_bytes()),75 Self::PendingNftAccept => key!("pending-nft-accept"),79 Self::PendingNftAccept => key!("pending-nft-accept"),80 Self::PendingChildren => key!("pending-children"),81 Self::AssociatedBases => key!("assoc-bases"),76 Self::Parts => key!("parts"),82 Self::Parts => key!("parts"),77 Self::Base => key!("base"),83 Self::Base => key!("base"),78 Self::Src => key!("src"),84 Self::Src => key!("src"),83 Self::ZIndex => key!("z-index"),89 Self::ZIndex => key!("z-index"),84 Self::ThemeName => key!("theme-name"),90 Self::ThemeName => key!("theme-name"),85 Self::ThemeInherit => key!("theme-inherit"),91 Self::ThemeInherit => key!("theme-inherit"),86 Self::UserProperty(name) => key!("userprop-", name),92 Self::UserProperty(name) => key!(USER_PROPERTY_PREFIX, name),87 }93 }88 }94 }89}95}9697pub fn strip_key_prefix(key: &PropertyKey, prefix: &str) -> Option<PropertyKey> {98 let key_prefix = PropertyKey::try_from(prefix.as_bytes().to_vec()).ok()?;99 let key_prefix = PropertyScope::Rmrk.apply(key_prefix).ok()?;100101 key.as_slice()102 .strip_prefix(key_prefix.as_slice())?103 .to_vec()104 .try_into()105 .ok()106}107108pub fn is_valid_key_prefix(key: &PropertyKey, prefix: &str) -> bool {109 strip_key_prefix(key, prefix).is_some()110}90111pallets/proxy-rmrk-core/src/rpc.rsdiffbeforeafterboth131131132 Ok(132 Ok(133 pallet_nonfungible::TokenChildren::<T>::iter_prefix((collection_id, nft_id))133 pallet_nonfungible::TokenChildren::<T>::iter_prefix((collection_id, nft_id))134 .filter_map(|((child_collection, child_token), _)| {134 .filter_map(|((child_collection, child_token), _)| {135 let is_pending = <Pallet<T>>::get_nft_property_decoded(136 child_collection,137 child_token,138 RmrkProperty::PendingNftAccept,139 )140 .ok()?;141142 if is_pending {143 return None;144 }145146 let rmrk_child_collection =135 let rmrk_child_collection =147 <Pallet<T>>::rmrk_collection_id(child_collection).ok()?;136 <Pallet<T>>::rmrk_collection_id(child_collection).ok()?;150 collection_id: rmrk_child_collection,139 collection_id: rmrk_child_collection,151 nft_id: child_token.0,140 nft_id: child_token.0,152 })141 })153 })142 })143 .chain(144 <Pallet<T>>::iterate_pending_children(collection_id, nft_id)?.map(145 |(child_collection, child_nft_id)| RmrkNftChild {146 collection_id: child_collection,147 nft_id: child_nft_id,148 },149 ),150 )154 .collect(),151 .collect(),155 )152 )156}153}224 nft_id,221 nft_id,225 PropertyScope::Rmrk,222 PropertyScope::Rmrk,226 )223 )227 .filter_map(|(_, value)| {224 .filter_map(|(key, value)| {225 if !is_valid_key_prefix(&key, RESOURCE_ID_PREFIX) {226 return None;227 }228228 let resource_info: RmrkResourceInfo = <Pallet<T>>::decode_property(&value).ok()?;229 let resource_info: RmrkResourceInfo = <Pallet<T>>::decode_property(&value).ok()?;229230pallets/proxy-rmrk-core/src/weights.rsdiffbeforeafterboth3//! Autogenerated weights for pallet_proxy_rmrk_core3//! Autogenerated weights for pallet_proxy_rmrk_core4//!4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2022-06-21, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`6//! DATE: 2022-07-01, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10247//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024889// Executed Command:9// Executed Command:64 // Storage: Common CollectionById (r:0 w:1)64 // Storage: Common CollectionById (r:0 w:1)65 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)65 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)66 fn create_collection() -> Weight {66 fn create_collection() -> Weight {67 (49_986_000 as Weight)67 (49_365_000 as Weight)68 .saturating_add(T::DbWeight::get().reads(5 as Weight))68 .saturating_add(T::DbWeight::get().reads(5 as Weight))69 .saturating_add(T::DbWeight::get().writes(8 as Weight))69 .saturating_add(T::DbWeight::get().writes(8 as Weight))70 }70 }77 // Storage: Nonfungible TokensBurnt (r:0 w:1)77 // Storage: Nonfungible TokensBurnt (r:0 w:1)78 // Storage: Common AdminAmount (r:0 w:1)78 // Storage: Common AdminAmount (r:0 w:1)79 fn destroy_collection() -> Weight {79 fn destroy_collection() -> Weight {80 (50_177_000 as Weight)80 (49_903_000 as Weight)81 .saturating_add(T::DbWeight::get().reads(5 as Weight))81 .saturating_add(T::DbWeight::get().reads(5 as Weight))82 .saturating_add(T::DbWeight::get().writes(6 as Weight))82 .saturating_add(T::DbWeight::get().writes(6 as Weight))83 }83 }84 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)84 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)85 // Storage: Common CollectionById (r:1 w:1)85 // Storage: Common CollectionById (r:1 w:1)86 // Storage: Common CollectionProperties (r:1 w:0)86 // Storage: Common CollectionProperties (r:1 w:0)87 fn change_collection_issuer() -> Weight {87 fn change_collection_issuer() -> Weight {88 (25_949_000 as Weight)88 (26_134_000 as Weight)89 .saturating_add(T::DbWeight::get().reads(3 as Weight))89 .saturating_add(T::DbWeight::get().reads(3 as Weight))90 .saturating_add(T::DbWeight::get().writes(1 as Weight))90 .saturating_add(T::DbWeight::get().writes(1 as Weight))91 }91 }95 // Storage: Nonfungible TokensMinted (r:1 w:0)95 // Storage: Nonfungible TokensMinted (r:1 w:0)96 // Storage: Nonfungible TokensBurnt (r:1 w:0)96 // Storage: Nonfungible TokensBurnt (r:1 w:0)97 fn lock_collection() -> Weight {97 fn lock_collection() -> Weight {98 (27_183_000 as Weight)98 (28_020_000 as Weight)99 .saturating_add(T::DbWeight::get().reads(5 as Weight))99 .saturating_add(T::DbWeight::get().reads(5 as Weight))100 .saturating_add(T::DbWeight::get().writes(1 as Weight))100 .saturating_add(T::DbWeight::get().writes(1 as Weight))101 }101 }109 // Storage: Nonfungible Owned (r:0 w:1)109 // Storage: Nonfungible Owned (r:0 w:1)110 // Storage: Nonfungible TokenAuxProperties (r:2 w:2)110 // Storage: Nonfungible TokenAuxProperties (r:2 w:2)111 fn mint_nft(b: u32, ) -> Weight {111 fn mint_nft(b: u32, ) -> Weight {112 (65_512_000 as Weight)112 (67_476_000 as Weight)113 // Standard Error: 12_000113 // Standard Error: 19_000114 .saturating_add((11_525_000 as Weight).saturating_mul(b as Weight))114 .saturating_add((12_373_000 as Weight).saturating_mul(b as Weight))115 .saturating_add(T::DbWeight::get().reads(6 as Weight))115 .saturating_add(T::DbWeight::get().reads(6 as Weight))116 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))116 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))117 .saturating_add(T::DbWeight::get().writes(5 as Weight))117 .saturating_add(T::DbWeight::get().writes(5 as Weight))129 // Storage: Nonfungible TokenProperties (r:0 w:1)129 // Storage: Nonfungible TokenProperties (r:0 w:1)130 fn burn_nft(b: u32, ) -> Weight {130 fn burn_nft(b: u32, ) -> Weight {131 (0 as Weight)131 (0 as Weight)132 // Standard Error: 1_472_000132 // Standard Error: 1_500_000133 .saturating_add((296_221_000 as Weight).saturating_mul(b as Weight))133 .saturating_add((300_520_000 as Weight).saturating_mul(b as Weight))134 .saturating_add(T::DbWeight::get().reads(9 as Weight))134 .saturating_add(T::DbWeight::get().reads(9 as Weight))135 .saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))135 .saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))136 .saturating_add(T::DbWeight::get().writes(6 as Weight))136 .saturating_add(T::DbWeight::get().writes(6 as Weight))146 // Storage: Nonfungible TokenChildren (r:0 w:1)146 // Storage: Nonfungible TokenChildren (r:0 w:1)147 // Storage: Nonfungible Owned (r:0 w:2)147 // Storage: Nonfungible Owned (r:0 w:2)148 fn send() -> Weight {148 fn send() -> Weight {149 (82_778_000 as Weight)149 (84_023_000 as Weight)150 .saturating_add(T::DbWeight::get().reads(12 as Weight))150 .saturating_add(T::DbWeight::get().reads(12 as Weight))151 .saturating_add(T::DbWeight::get().writes(6 as Weight))151 .saturating_add(T::DbWeight::get().writes(6 as Weight))152 }152 }157 // Storage: Nonfungible AccountBalance (r:2 w:2)157 // Storage: Nonfungible AccountBalance (r:2 w:2)158 // Storage: Nonfungible Allowance (r:1 w:0)158 // Storage: Nonfungible Allowance (r:1 w:0)159 // Storage: Nonfungible TokenProperties (r:1 w:1)159 // Storage: Nonfungible TokenProperties (r:1 w:1)160 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)160 // Storage: Nonfungible TokenChildren (r:0 w:1)161 // Storage: Nonfungible TokenChildren (r:0 w:1)161 // Storage: Nonfungible Owned (r:0 w:2)162 // Storage: Nonfungible Owned (r:0 w:2)162 fn accept_nft() -> Weight {163 fn accept_nft() -> Weight {163 (90_190_000 as Weight)164 (98_502_000 as Weight)164 .saturating_add(T::DbWeight::get().reads(15 as Weight))165 .saturating_add(T::DbWeight::get().reads(16 as Weight))165 .saturating_add(T::DbWeight::get().writes(7 as Weight))166 .saturating_add(T::DbWeight::get().writes(8 as Weight))166 }167 }167 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)168 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)168 // Storage: Common CollectionProperties (r:1 w:0)169 // Storage: Common CollectionProperties (r:1 w:0)169 // Storage: Common CollectionById (r:1 w:0)170 // Storage: Common CollectionById (r:1 w:0)170 // Storage: Nonfungible TokenData (r:5 w:5)171 // Storage: Nonfungible TokenData (r:5 w:5)171 // Storage: Nonfungible TokenProperties (r:1 w:5)172 // Storage: Nonfungible TokenProperties (r:1 w:5)173 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)172 // Storage: Nonfungible TokenChildren (r:9 w:4)174 // Storage: Nonfungible TokenChildren (r:9 w:4)173 // Storage: Nonfungible TokensBurnt (r:1 w:1)175 // Storage: Nonfungible TokensBurnt (r:1 w:1)174 // Storage: Nonfungible AccountBalance (r:5 w:5)176 // Storage: Nonfungible AccountBalance (r:5 w:5)175 // Storage: Nonfungible Allowance (r:5 w:0)177 // Storage: Nonfungible Allowance (r:5 w:0)176 // Storage: Nonfungible Owned (r:0 w:5)178 // Storage: Nonfungible Owned (r:0 w:5)177 fn reject_nft() -> Weight {179 fn reject_nft() -> Weight {178 (262_238_000 as Weight)180 (277_017_000 as Weight)179 .saturating_add(T::DbWeight::get().reads(29 as Weight))181 .saturating_add(T::DbWeight::get().reads(30 as Weight))180 .saturating_add(T::DbWeight::get().writes(25 as Weight))182 .saturating_add(T::DbWeight::get().writes(26 as Weight))181 }183 }182 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)184 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)183 // Storage: Common CollectionProperties (r:1 w:0)185 // Storage: Common CollectionProperties (r:1 w:0)184 // Storage: Common CollectionById (r:1 w:0)186 // Storage: Common CollectionById (r:1 w:0)185 // Storage: Nonfungible TokenProperties (r:1 w:1)187 // Storage: Nonfungible TokenProperties (r:1 w:1)186 // Storage: Nonfungible TokenData (r:5 w:0)188 // Storage: Nonfungible TokenData (r:5 w:0)187 fn set_property() -> Weight {189 fn set_property() -> Weight {188 (55_187_000 as Weight)190 (55_408_000 as Weight)189 .saturating_add(T::DbWeight::get().reads(9 as Weight))191 .saturating_add(T::DbWeight::get().reads(9 as Weight))190 .saturating_add(T::DbWeight::get().writes(1 as Weight))192 .saturating_add(T::DbWeight::get().writes(1 as Weight))191 }193 }195 // Storage: Nonfungible TokenProperties (r:1 w:1)197 // Storage: Nonfungible TokenProperties (r:1 w:1)196 // Storage: Nonfungible TokenData (r:5 w:0)198 // Storage: Nonfungible TokenData (r:5 w:0)197 fn set_priority() -> Weight {199 fn set_priority() -> Weight {198 (54_092_000 as Weight)200 (55_063_000 as Weight)199 .saturating_add(T::DbWeight::get().reads(9 as Weight))201 .saturating_add(T::DbWeight::get().reads(9 as Weight))200 .saturating_add(T::DbWeight::get().writes(1 as Weight))202 .saturating_add(T::DbWeight::get().writes(1 as Weight))201 }203 }206 // Storage: Nonfungible TokenProperties (r:1 w:1)208 // Storage: Nonfungible TokenProperties (r:1 w:1)207 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)209 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)208 fn add_basic_resource() -> Weight {210 fn add_basic_resource() -> Weight {209 (62_551_000 as Weight)211 (64_656_000 as Weight)210 .saturating_add(T::DbWeight::get().reads(10 as Weight))212 .saturating_add(T::DbWeight::get().reads(10 as Weight))211 .saturating_add(T::DbWeight::get().writes(2 as Weight))213 .saturating_add(T::DbWeight::get().writes(2 as Weight))212 }214 }215 // Storage: Common CollectionById (r:1 w:0)217 // Storage: Common CollectionById (r:1 w:0)216 // Storage: Nonfungible TokenData (r:5 w:0)218 // Storage: Nonfungible TokenData (r:5 w:0)217 // Storage: Nonfungible TokenProperties (r:1 w:1)219 // Storage: Nonfungible TokenProperties (r:1 w:1)218 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)220 // Storage: Nonfungible TokenAuxProperties (r:2 w:2)219 fn add_composable_resource() -> Weight {221 fn add_composable_resource() -> Weight {220 (61_778_000 as Weight)222 (67_593_000 as Weight)221 .saturating_add(T::DbWeight::get().reads(10 as Weight))223 .saturating_add(T::DbWeight::get().reads(11 as Weight))222 .saturating_add(T::DbWeight::get().writes(2 as Weight))224 .saturating_add(T::DbWeight::get().writes(3 as Weight))223 }225 }224 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)226 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)225 // Storage: Common CollectionProperties (r:1 w:0)227 // Storage: Common CollectionProperties (r:1 w:0)228 // Storage: Nonfungible TokenProperties (r:1 w:1)230 // Storage: Nonfungible TokenProperties (r:1 w:1)229 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)231 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)230 fn add_slot_resource() -> Weight {232 fn add_slot_resource() -> Weight {231 (62_700_000 as Weight)233 (63_845_000 as Weight)232 .saturating_add(T::DbWeight::get().reads(10 as Weight))234 .saturating_add(T::DbWeight::get().reads(10 as Weight))233 .saturating_add(T::DbWeight::get().writes(2 as Weight))235 .saturating_add(T::DbWeight::get().writes(2 as Weight))234 }236 }238 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)240 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)239 // Storage: Nonfungible TokenData (r:5 w:0)241 // Storage: Nonfungible TokenData (r:5 w:0)240 fn remove_resource() -> Weight {242 fn remove_resource() -> Weight {241 (52_920_000 as Weight)243 (53_414_000 as Weight)242 .saturating_add(T::DbWeight::get().reads(9 as Weight))244 .saturating_add(T::DbWeight::get().reads(9 as Weight))243 .saturating_add(T::DbWeight::get().writes(1 as Weight))245 .saturating_add(T::DbWeight::get().writes(1 as Weight))244 }246 }248 // Storage: Nonfungible TokenData (r:5 w:0)250 // Storage: Nonfungible TokenData (r:5 w:0)249 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)251 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)250 fn accept_resource() -> Weight {252 fn accept_resource() -> Weight {251 (52_450_000 as Weight)253 (51_869_000 as Weight)252 .saturating_add(T::DbWeight::get().reads(9 as Weight))254 .saturating_add(T::DbWeight::get().reads(9 as Weight))253 .saturating_add(T::DbWeight::get().writes(1 as Weight))255 .saturating_add(T::DbWeight::get().writes(1 as Weight))254 }256 }258 // Storage: Nonfungible TokenData (r:5 w:0)260 // Storage: Nonfungible TokenData (r:5 w:0)259 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)261 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)260 fn accept_resource_removal() -> Weight {262 fn accept_resource_removal() -> Weight {261 (50_901_000 as Weight)263 (53_168_000 as Weight)262 .saturating_add(T::DbWeight::get().reads(9 as Weight))264 .saturating_add(T::DbWeight::get().reads(9 as Weight))263 .saturating_add(T::DbWeight::get().writes(1 as Weight))265 .saturating_add(T::DbWeight::get().writes(1 as Weight))264 }266 }275 // Storage: Common CollectionById (r:0 w:1)277 // Storage: Common CollectionById (r:0 w:1)276 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)278 // Storage: RmrkCore UniqueCollectionId (r:0 w:1)277 fn create_collection() -> Weight {279 fn create_collection() -> Weight {278 (49_986_000 as Weight)280 (49_365_000 as Weight)279 .saturating_add(RocksDbWeight::get().reads(5 as Weight))281 .saturating_add(RocksDbWeight::get().reads(5 as Weight))280 .saturating_add(RocksDbWeight::get().writes(8 as Weight))282 .saturating_add(RocksDbWeight::get().writes(8 as Weight))281 }283 }288 // Storage: Nonfungible TokensBurnt (r:0 w:1)290 // Storage: Nonfungible TokensBurnt (r:0 w:1)289 // Storage: Common AdminAmount (r:0 w:1)291 // Storage: Common AdminAmount (r:0 w:1)290 fn destroy_collection() -> Weight {292 fn destroy_collection() -> Weight {291 (50_177_000 as Weight)293 (49_903_000 as Weight)292 .saturating_add(RocksDbWeight::get().reads(5 as Weight))294 .saturating_add(RocksDbWeight::get().reads(5 as Weight))293 .saturating_add(RocksDbWeight::get().writes(6 as Weight))295 .saturating_add(RocksDbWeight::get().writes(6 as Weight))294 }296 }295 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)297 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)296 // Storage: Common CollectionById (r:1 w:1)298 // Storage: Common CollectionById (r:1 w:1)297 // Storage: Common CollectionProperties (r:1 w:0)299 // Storage: Common CollectionProperties (r:1 w:0)298 fn change_collection_issuer() -> Weight {300 fn change_collection_issuer() -> Weight {299 (25_949_000 as Weight)301 (26_134_000 as Weight)300 .saturating_add(RocksDbWeight::get().reads(3 as Weight))302 .saturating_add(RocksDbWeight::get().reads(3 as Weight))301 .saturating_add(RocksDbWeight::get().writes(1 as Weight))303 .saturating_add(RocksDbWeight::get().writes(1 as Weight))302 }304 }306 // Storage: Nonfungible TokensMinted (r:1 w:0)308 // Storage: Nonfungible TokensMinted (r:1 w:0)307 // Storage: Nonfungible TokensBurnt (r:1 w:0)309 // Storage: Nonfungible TokensBurnt (r:1 w:0)308 fn lock_collection() -> Weight {310 fn lock_collection() -> Weight {309 (27_183_000 as Weight)311 (28_020_000 as Weight)310 .saturating_add(RocksDbWeight::get().reads(5 as Weight))312 .saturating_add(RocksDbWeight::get().reads(5 as Weight))311 .saturating_add(RocksDbWeight::get().writes(1 as Weight))313 .saturating_add(RocksDbWeight::get().writes(1 as Weight))312 }314 }320 // Storage: Nonfungible Owned (r:0 w:1)322 // Storage: Nonfungible Owned (r:0 w:1)321 // Storage: Nonfungible TokenAuxProperties (r:2 w:2)323 // Storage: Nonfungible TokenAuxProperties (r:2 w:2)322 fn mint_nft(b: u32, ) -> Weight {324 fn mint_nft(b: u32, ) -> Weight {323 (65_512_000 as Weight)325 (67_476_000 as Weight)324 // Standard Error: 12_000326 // Standard Error: 19_000325 .saturating_add((11_525_000 as Weight).saturating_mul(b as Weight))327 .saturating_add((12_373_000 as Weight).saturating_mul(b as Weight))326 .saturating_add(RocksDbWeight::get().reads(6 as Weight))328 .saturating_add(RocksDbWeight::get().reads(6 as Weight))327 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))329 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))328 .saturating_add(RocksDbWeight::get().writes(5 as Weight))330 .saturating_add(RocksDbWeight::get().writes(5 as Weight))340 // Storage: Nonfungible TokenProperties (r:0 w:1)342 // Storage: Nonfungible TokenProperties (r:0 w:1)341 fn burn_nft(b: u32, ) -> Weight {343 fn burn_nft(b: u32, ) -> Weight {342 (0 as Weight)344 (0 as Weight)343 // Standard Error: 1_472_000345 // Standard Error: 1_500_000344 .saturating_add((296_221_000 as Weight).saturating_mul(b as Weight))346 .saturating_add((300_520_000 as Weight).saturating_mul(b as Weight))345 .saturating_add(RocksDbWeight::get().reads(9 as Weight))347 .saturating_add(RocksDbWeight::get().reads(9 as Weight))346 .saturating_add(RocksDbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))348 .saturating_add(RocksDbWeight::get().reads((4 as Weight).saturating_mul(b as Weight)))347 .saturating_add(RocksDbWeight::get().writes(6 as Weight))349 .saturating_add(RocksDbWeight::get().writes(6 as Weight))357 // Storage: Nonfungible TokenChildren (r:0 w:1)359 // Storage: Nonfungible TokenChildren (r:0 w:1)358 // Storage: Nonfungible Owned (r:0 w:2)360 // Storage: Nonfungible Owned (r:0 w:2)359 fn send() -> Weight {361 fn send() -> Weight {360 (82_778_000 as Weight)362 (84_023_000 as Weight)361 .saturating_add(RocksDbWeight::get().reads(12 as Weight))363 .saturating_add(RocksDbWeight::get().reads(12 as Weight))362 .saturating_add(RocksDbWeight::get().writes(6 as Weight))364 .saturating_add(RocksDbWeight::get().writes(6 as Weight))363 }365 }368 // Storage: Nonfungible AccountBalance (r:2 w:2)370 // Storage: Nonfungible AccountBalance (r:2 w:2)369 // Storage: Nonfungible Allowance (r:1 w:0)371 // Storage: Nonfungible Allowance (r:1 w:0)370 // Storage: Nonfungible TokenProperties (r:1 w:1)372 // Storage: Nonfungible TokenProperties (r:1 w:1)373 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)371 // Storage: Nonfungible TokenChildren (r:0 w:1)374 // Storage: Nonfungible TokenChildren (r:0 w:1)372 // Storage: Nonfungible Owned (r:0 w:2)375 // Storage: Nonfungible Owned (r:0 w:2)373 fn accept_nft() -> Weight {376 fn accept_nft() -> Weight {374 (90_190_000 as Weight)377 (98_502_000 as Weight)375 .saturating_add(RocksDbWeight::get().reads(15 as Weight))378 .saturating_add(RocksDbWeight::get().reads(16 as Weight))376 .saturating_add(RocksDbWeight::get().writes(7 as Weight))379 .saturating_add(RocksDbWeight::get().writes(8 as Weight))377 }380 }378 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)381 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)379 // Storage: Common CollectionProperties (r:1 w:0)382 // Storage: Common CollectionProperties (r:1 w:0)380 // Storage: Common CollectionById (r:1 w:0)383 // Storage: Common CollectionById (r:1 w:0)381 // Storage: Nonfungible TokenData (r:5 w:5)384 // Storage: Nonfungible TokenData (r:5 w:5)382 // Storage: Nonfungible TokenProperties (r:1 w:5)385 // Storage: Nonfungible TokenProperties (r:1 w:5)386 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)383 // Storage: Nonfungible TokenChildren (r:9 w:4)387 // Storage: Nonfungible TokenChildren (r:9 w:4)384 // Storage: Nonfungible TokensBurnt (r:1 w:1)388 // Storage: Nonfungible TokensBurnt (r:1 w:1)385 // Storage: Nonfungible AccountBalance (r:5 w:5)389 // Storage: Nonfungible AccountBalance (r:5 w:5)386 // Storage: Nonfungible Allowance (r:5 w:0)390 // Storage: Nonfungible Allowance (r:5 w:0)387 // Storage: Nonfungible Owned (r:0 w:5)391 // Storage: Nonfungible Owned (r:0 w:5)388 fn reject_nft() -> Weight {392 fn reject_nft() -> Weight {389 (262_238_000 as Weight)393 (277_017_000 as Weight)390 .saturating_add(RocksDbWeight::get().reads(29 as Weight))394 .saturating_add(RocksDbWeight::get().reads(30 as Weight))391 .saturating_add(RocksDbWeight::get().writes(25 as Weight))395 .saturating_add(RocksDbWeight::get().writes(26 as Weight))392 }396 }393 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)397 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)394 // Storage: Common CollectionProperties (r:1 w:0)398 // Storage: Common CollectionProperties (r:1 w:0)395 // Storage: Common CollectionById (r:1 w:0)399 // Storage: Common CollectionById (r:1 w:0)396 // Storage: Nonfungible TokenProperties (r:1 w:1)400 // Storage: Nonfungible TokenProperties (r:1 w:1)397 // Storage: Nonfungible TokenData (r:5 w:0)401 // Storage: Nonfungible TokenData (r:5 w:0)398 fn set_property() -> Weight {402 fn set_property() -> Weight {399 (55_187_000 as Weight)403 (55_408_000 as Weight)400 .saturating_add(RocksDbWeight::get().reads(9 as Weight))404 .saturating_add(RocksDbWeight::get().reads(9 as Weight))401 .saturating_add(RocksDbWeight::get().writes(1 as Weight))405 .saturating_add(RocksDbWeight::get().writes(1 as Weight))402 }406 }406 // Storage: Nonfungible TokenProperties (r:1 w:1)410 // Storage: Nonfungible TokenProperties (r:1 w:1)407 // Storage: Nonfungible TokenData (r:5 w:0)411 // Storage: Nonfungible TokenData (r:5 w:0)408 fn set_priority() -> Weight {412 fn set_priority() -> Weight {409 (54_092_000 as Weight)413 (55_063_000 as Weight)410 .saturating_add(RocksDbWeight::get().reads(9 as Weight))414 .saturating_add(RocksDbWeight::get().reads(9 as Weight))411 .saturating_add(RocksDbWeight::get().writes(1 as Weight))415 .saturating_add(RocksDbWeight::get().writes(1 as Weight))412 }416 }417 // Storage: Nonfungible TokenProperties (r:1 w:1)421 // Storage: Nonfungible TokenProperties (r:1 w:1)418 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)422 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)419 fn add_basic_resource() -> Weight {423 fn add_basic_resource() -> Weight {420 (62_551_000 as Weight)424 (64_656_000 as Weight)421 .saturating_add(RocksDbWeight::get().reads(10 as Weight))425 .saturating_add(RocksDbWeight::get().reads(10 as Weight))422 .saturating_add(RocksDbWeight::get().writes(2 as Weight))426 .saturating_add(RocksDbWeight::get().writes(2 as Weight))423 }427 }426 // Storage: Common CollectionById (r:1 w:0)430 // Storage: Common CollectionById (r:1 w:0)427 // Storage: Nonfungible TokenData (r:5 w:0)431 // Storage: Nonfungible TokenData (r:5 w:0)428 // Storage: Nonfungible TokenProperties (r:1 w:1)432 // Storage: Nonfungible TokenProperties (r:1 w:1)429 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)433 // Storage: Nonfungible TokenAuxProperties (r:2 w:2)430 fn add_composable_resource() -> Weight {434 fn add_composable_resource() -> Weight {431 (61_778_000 as Weight)435 (67_593_000 as Weight)432 .saturating_add(RocksDbWeight::get().reads(10 as Weight))436 .saturating_add(RocksDbWeight::get().reads(11 as Weight))433 .saturating_add(RocksDbWeight::get().writes(2 as Weight))437 .saturating_add(RocksDbWeight::get().writes(3 as Weight))434 }438 }435 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)439 // Storage: RmrkCore UniqueCollectionId (r:1 w:0)436 // Storage: Common CollectionProperties (r:1 w:0)440 // Storage: Common CollectionProperties (r:1 w:0)439 // Storage: Nonfungible TokenProperties (r:1 w:1)443 // Storage: Nonfungible TokenProperties (r:1 w:1)440 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)444 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)441 fn add_slot_resource() -> Weight {445 fn add_slot_resource() -> Weight {442 (62_700_000 as Weight)446 (63_845_000 as Weight)443 .saturating_add(RocksDbWeight::get().reads(10 as Weight))447 .saturating_add(RocksDbWeight::get().reads(10 as Weight))444 .saturating_add(RocksDbWeight::get().writes(2 as Weight))448 .saturating_add(RocksDbWeight::get().writes(2 as Weight))445 }449 }449 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)453 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)450 // Storage: Nonfungible TokenData (r:5 w:0)454 // Storage: Nonfungible TokenData (r:5 w:0)451 fn remove_resource() -> Weight {455 fn remove_resource() -> Weight {452 (52_920_000 as Weight)456 (53_414_000 as Weight)453 .saturating_add(RocksDbWeight::get().reads(9 as Weight))457 .saturating_add(RocksDbWeight::get().reads(9 as Weight))454 .saturating_add(RocksDbWeight::get().writes(1 as Weight))458 .saturating_add(RocksDbWeight::get().writes(1 as Weight))455 }459 }459 // Storage: Nonfungible TokenData (r:5 w:0)463 // Storage: Nonfungible TokenData (r:5 w:0)460 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)464 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)461 fn accept_resource() -> Weight {465 fn accept_resource() -> Weight {462 (52_450_000 as Weight)466 (51_869_000 as Weight)463 .saturating_add(RocksDbWeight::get().reads(9 as Weight))467 .saturating_add(RocksDbWeight::get().reads(9 as Weight))464 .saturating_add(RocksDbWeight::get().writes(1 as Weight))468 .saturating_add(RocksDbWeight::get().writes(1 as Weight))465 }469 }469 // Storage: Nonfungible TokenData (r:5 w:0)473 // Storage: Nonfungible TokenData (r:5 w:0)470 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)474 // Storage: Nonfungible TokenAuxProperties (r:1 w:1)471 fn accept_resource_removal() -> Weight {475 fn accept_resource_removal() -> Weight {472 (50_901_000 as Weight)476 (53_168_000 as Weight)473 .saturating_add(RocksDbWeight::get().reads(9 as Weight))477 .saturating_add(RocksDbWeight::get().reads(9 as Weight))474 .saturating_add(RocksDbWeight::get().writes(1 as Weight))478 .saturating_add(RocksDbWeight::get().writes(1 as Weight))475 }479 }pallets/proxy-rmrk-equip/src/weights.rsdiffbeforeafterboth3//! Autogenerated weights for pallet_proxy_rmrk_equip3//! Autogenerated weights for pallet_proxy_rmrk_equip4//!4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2022-06-21, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`6//! DATE: 2022-07-01, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10247//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024889// Executed Command:9// Executed Command:54 // Storage: Nonfungible TokenData (r:0 w:1)54 // Storage: Nonfungible TokenData (r:0 w:1)55 // Storage: Nonfungible Owned (r:0 w:1)55 // Storage: Nonfungible Owned (r:0 w:1)56 fn create_base(b: u32, ) -> Weight {56 fn create_base(b: u32, ) -> Weight {57 (62_832_000 as Weight)57 (57_871_000 as Weight)58 // Standard Error: 22_00058 // Standard Error: 21_00059 .saturating_add((20_106_000 as Weight).saturating_mul(b as Weight))59 .saturating_add((19_870_000 as Weight).saturating_mul(b as Weight))60 .saturating_add(T::DbWeight::get().reads(6 as Weight))60 .saturating_add(T::DbWeight::get().reads(6 as Weight))61 .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(b as Weight)))61 .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(b as Weight)))62 .saturating_add(T::DbWeight::get().writes(8 as Weight))62 .saturating_add(T::DbWeight::get().writes(8 as Weight))71 // Storage: Nonfungible TokenData (r:0 w:1)71 // Storage: Nonfungible TokenData (r:0 w:1)72 // Storage: Nonfungible Owned (r:0 w:1)72 // Storage: Nonfungible Owned (r:0 w:1)73 fn theme_add(b: u32, ) -> Weight {73 fn theme_add(b: u32, ) -> Weight {74 (46_793_000 as Weight)74 (46_121_000 as Weight)75 // Standard Error: 61_00075 // Standard Error: 31_00076 .saturating_add((3_061_000 as Weight).saturating_mul(b as Weight))76 .saturating_add((2_988_000 as Weight).saturating_mul(b as Weight))77 .saturating_add(T::DbWeight::get().reads(6 as Weight))77 .saturating_add(T::DbWeight::get().reads(6 as Weight))78 .saturating_add(T::DbWeight::get().writes(5 as Weight))78 .saturating_add(T::DbWeight::get().writes(5 as Weight))79 }79 }82 // Storage: RmrkEquip InernalPartId (r:1 w:0)82 // Storage: RmrkEquip InernalPartId (r:1 w:0)83 // Storage: Nonfungible TokenProperties (r:1 w:1)83 // Storage: Nonfungible TokenProperties (r:1 w:1)84 fn equippable() -> Weight {84 fn equippable() -> Weight {85 (32_495_000 as Weight)85 (32_032_000 as Weight)86 .saturating_add(T::DbWeight::get().reads(4 as Weight))86 .saturating_add(T::DbWeight::get().reads(4 as Weight))87 .saturating_add(T::DbWeight::get().writes(1 as Weight))87 .saturating_add(T::DbWeight::get().writes(1 as Weight))88 }88 }103 // Storage: Nonfungible TokenData (r:0 w:1)103 // Storage: Nonfungible TokenData (r:0 w:1)104 // Storage: Nonfungible Owned (r:0 w:1)104 // Storage: Nonfungible Owned (r:0 w:1)105 fn create_base(b: u32, ) -> Weight {105 fn create_base(b: u32, ) -> Weight {106 (62_832_000 as Weight)106 (57_871_000 as Weight)107 // Standard Error: 22_000107 // Standard Error: 21_000108 .saturating_add((20_106_000 as Weight).saturating_mul(b as Weight))108 .saturating_add((19_870_000 as Weight).saturating_mul(b as Weight))109 .saturating_add(RocksDbWeight::get().reads(6 as Weight))109 .saturating_add(RocksDbWeight::get().reads(6 as Weight))110 .saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(b as Weight)))110 .saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(b as Weight)))111 .saturating_add(RocksDbWeight::get().writes(8 as Weight))111 .saturating_add(RocksDbWeight::get().writes(8 as Weight))120 // Storage: Nonfungible TokenData (r:0 w:1)120 // Storage: Nonfungible TokenData (r:0 w:1)121 // Storage: Nonfungible Owned (r:0 w:1)121 // Storage: Nonfungible Owned (r:0 w:1)122 fn theme_add(b: u32, ) -> Weight {122 fn theme_add(b: u32, ) -> Weight {123 (46_793_000 as Weight)123 (46_121_000 as Weight)124 // Standard Error: 61_000124 // Standard Error: 31_000125 .saturating_add((3_061_000 as Weight).saturating_mul(b as Weight))125 .saturating_add((2_988_000 as Weight).saturating_mul(b as Weight))126 .saturating_add(RocksDbWeight::get().reads(6 as Weight))126 .saturating_add(RocksDbWeight::get().reads(6 as Weight))127 .saturating_add(RocksDbWeight::get().writes(5 as Weight))127 .saturating_add(RocksDbWeight::get().writes(5 as Weight))128 }128 }131 // Storage: RmrkEquip InernalPartId (r:1 w:0)131 // Storage: RmrkEquip InernalPartId (r:1 w:0)132 // Storage: Nonfungible TokenProperties (r:1 w:1)132 // Storage: Nonfungible TokenProperties (r:1 w:1)133 fn equippable() -> Weight {133 fn equippable() -> Weight {134 (32_495_000 as Weight)134 (32_032_000 as Weight)135 .saturating_add(RocksDbWeight::get().reads(4 as Weight))135 .saturating_add(RocksDbWeight::get().reads(4 as Weight))136 .saturating_add(RocksDbWeight::get().writes(1 as Weight))136 .saturating_add(RocksDbWeight::get().writes(1 as Weight))137 }137 }pallets/refungible/src/benchmarking.rsdiffbeforeafterboth204 <Pallet<T>>::set_allowance(&collection, &sender, &burner, item, 200)?;204 <Pallet<T>>::set_allowance(&collection, &sender, &burner, item, 200)?;205 }: {<Pallet<T>>::burn_from(&collection, &burner, &sender, item, 200, &Unlimited)?}205 }: {<Pallet<T>>::burn_from(&collection, &burner, &sender, item, 200, &Unlimited)?}206207 repartition_item {208 bench_init!{209 owner: sub; collection: collection(owner);210 sender: cross_from_sub(owner); owner: cross_sub;211 };212 let item = create_max_item(&collection, &sender, [(owner.clone(), 100)])?;213 }: {<Pallet<T>>::repartition(&collection, &owner, item, 200)?}206}214}207215pallets/refungible/src/common.rsdiffbeforeafterboth22 CollectionId, TokenId, CreateItemExData, CreateRefungibleExData, budget::Budget, Property,22 CollectionId, TokenId, CreateItemExData, CreateRefungibleExData, budget::Budget, Property,23 PropertyKey, PropertyValue, PropertyKeyPermission, CreateItemData,23 PropertyKey, PropertyValue, PropertyKeyPermission, CreateItemData,24};24};25use pallet_common::{CommonCollectionOperations, CommonWeightInfo, with_weight};25use pallet_common::{CommonCollectionOperations, CommonWeightInfo, RefungibleExtensions, with_weight};26use pallet_structure::Error as StructureError;26use pallet_structure::Error as StructureError;27use sp_runtime::DispatchError;27use sp_runtime::{DispatchError};28use sp_std::{vec::Vec, vec};28use sp_std::{vec::Vec, vec};292930use crate::{30use crate::{314 _sender: T::CrossAccountId,314 _sender: T::CrossAccountId,315 _token_id: TokenId,315 _token_id: TokenId,316 _property: Vec<Property>,316 _property: Vec<Property>,317 _nesting_budget: &dyn Budget,317 ) -> DispatchResultWithPostInfo {318 ) -> DispatchResultWithPostInfo {318 fail!(<Error<T>>::SettingPropertiesNotAllowed)319 fail!(<Error<T>>::SettingPropertiesNotAllowed)319 }320 }331 _sender: T::CrossAccountId,332 _sender: T::CrossAccountId,332 _token_id: TokenId,333 _token_id: TokenId,333 _property_keys: Vec<PropertyKey>,334 _property_keys: Vec<PropertyKey>,335 _nesting_budget: &dyn Budget,334 ) -> DispatchResultWithPostInfo {336 ) -> DispatchResultWithPostInfo {335 fail!(<Error<T>>::SettingPropertiesNotAllowed)337 fail!(<Error<T>>::SettingPropertiesNotAllowed)336 }338 }340 _sender: <T>::CrossAccountId,342 _sender: <T>::CrossAccountId,341 _from: (CollectionId, TokenId),343 _from: (CollectionId, TokenId),342 _under: TokenId,344 _under: TokenId,343 _budget: &dyn Budget,345 _nesting_budget: &dyn Budget,344 ) -> sp_runtime::DispatchResult {346 ) -> sp_runtime::DispatchResult {345 fail!(<Error<T>>::RefungibleDisallowsNesting)347 fail!(<Error<T>>::RefungibleDisallowsNesting)346 }348 }406 <Allowance<T>>::get((self.id, token, sender, spender))408 <Allowance<T>>::get((self.id, token, sender, spender))407 }409 }410411 fn refungible_extensions(&self) -> Option<&dyn RefungibleExtensions<T>> {412 Some(self)413 }408}414}415416impl<T: Config> RefungibleExtensions<T> for RefungibleHandle<T> {417 fn repartition(418 &self,419 owner: &T::CrossAccountId,420 token: TokenId,421 amount: u128,422 ) -> DispatchResultWithPostInfo {423 with_weight(424 <Pallet<T>>::repartition(self, owner, token, amount),425 <SelfWeightOf<T>>::repartition_item(),426 )427 }428}409429pallets/refungible/src/lib.rsdiffbeforeafterboth64 NotRefungibleDataUsedToMintFungibleCollectionToken,64 NotRefungibleDataUsedToMintFungibleCollectionToken,65 /// Maximum refungibility exceeded65 /// Maximum refungibility exceeded66 WrongRefungiblePieces,66 WrongRefungiblePieces,67 /// Refungible token can't be repartitioned by user who isn't owns all pieces68 RepartitionWhileNotOwningAllPieces,67 /// Refungible token can't nest other tokens69 /// Refungible token can't nest other tokens68 RefungibleDisallowsNesting,70 RefungibleDisallowsNesting,69 /// Setting item properties is not allowed71 /// Setting item properties is not allowed685 Self::create_multiple_items(collection, sender, vec![data], nesting_budget)687 Self::create_multiple_items(collection, sender, vec![data], nesting_budget)686 }688 }689690 pub fn repartition(691 collection: &RefungibleHandle<T>,692 owner: &T::CrossAccountId,693 token: TokenId,694 amount: u128,695 ) -> DispatchResult {696 ensure!(697 amount <= MAX_REFUNGIBLE_PIECES,698 <Error<T>>::WrongRefungiblePieces699 );700 ensure!(amount > 0, <CommonError<T>>::TokenValueTooLow);701 // Ensure user owns all pieces702 let total_supply = <TotalSupply<T>>::get((collection.id, token));703 let balance = <Balance<T>>::get((collection.id, token, owner));704 ensure!(705 total_supply == balance,706 <Error<T>>::RepartitionWhileNotOwningAllPieces707 );708709 <Balance<T>>::insert((collection.id, token, owner), amount);710 <TotalSupply<T>>::insert((collection.id, token), amount);711 Ok(())712 }687}713}688714pallets/refungible/src/weights.rsdiffbeforeafterboth3//! Autogenerated weights for pallet_refungible3//! Autogenerated weights for pallet_refungible4//!4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2022-06-15, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`6//! DATE: 2022-06-27, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10247//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024889// Executed Command:9// Executed Command:49 fn transfer_from_removing() -> Weight;49 fn transfer_from_removing() -> Weight;50 fn transfer_from_creating_removing() -> Weight;50 fn transfer_from_creating_removing() -> Weight;51 fn burn_from() -> Weight;51 fn burn_from() -> Weight;52 fn repartition_item() -> Weight;52}53}535454/// Weights for pallet_refungible using the Substrate node and recommended hardware.55/// Weights for pallet_refungible using the Substrate node and recommended hardware.61 // Storage: Refungible TokenData (r:0 w:1)62 // Storage: Refungible TokenData (r:0 w:1)62 // Storage: Refungible Owned (r:0 w:1)63 // Storage: Refungible Owned (r:0 w:1)63 fn create_item() -> Weight {64 fn create_item() -> Weight {64 (21_321_000 as Weight)65 (17_553_000 as Weight)65 .saturating_add(T::DbWeight::get().reads(2 as Weight))66 .saturating_add(T::DbWeight::get().reads(2 as Weight))66 .saturating_add(T::DbWeight::get().writes(6 as Weight))67 .saturating_add(T::DbWeight::get().writes(6 as Weight))67 }68 }72 // Storage: Refungible TokenData (r:0 w:4)73 // Storage: Refungible TokenData (r:0 w:4)73 // Storage: Refungible Owned (r:0 w:4)74 // Storage: Refungible Owned (r:0 w:4)74 fn create_multiple_items(b: u32, ) -> Weight {75 fn create_multiple_items(b: u32, ) -> Weight {75 (16_313_000 as Weight)76 (10_654_000 as Weight)76 // Standard Error: 4_00077 // Standard Error: 1_00077 .saturating_add((5_464_000 as Weight).saturating_mul(b as Weight))78 .saturating_add((5_114_000 as Weight).saturating_mul(b as Weight))78 .saturating_add(T::DbWeight::get().reads(2 as Weight))79 .saturating_add(T::DbWeight::get().reads(2 as Weight))79 .saturating_add(T::DbWeight::get().writes(2 as Weight))80 .saturating_add(T::DbWeight::get().writes(2 as Weight))80 .saturating_add(T::DbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))81 .saturating_add(T::DbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))86 // Storage: Refungible TokenData (r:0 w:4)87 // Storage: Refungible TokenData (r:0 w:4)87 // Storage: Refungible Owned (r:0 w:4)88 // Storage: Refungible Owned (r:0 w:4)88 fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight {89 fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight {89 (15_631_000 as Weight)90 (3_587_000 as Weight)90 // Standard Error: 5_00091 // Standard Error: 2_00091 .saturating_add((8_141_000 as Weight).saturating_mul(b as Weight))92 .saturating_add((7_931_000 as Weight).saturating_mul(b as Weight))92 .saturating_add(T::DbWeight::get().reads(1 as Weight))93 .saturating_add(T::DbWeight::get().reads(1 as Weight))93 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))94 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))94 .saturating_add(T::DbWeight::get().writes(1 as Weight))95 .saturating_add(T::DbWeight::get().writes(1 as Weight))101 // Storage: Refungible Balance (r:0 w:4)102 // Storage: Refungible Balance (r:0 w:4)102 // Storage: Refungible Owned (r:0 w:4)103 // Storage: Refungible Owned (r:0 w:4)103 fn create_multiple_items_ex_multiple_owners(b: u32, ) -> Weight {104 fn create_multiple_items_ex_multiple_owners(b: u32, ) -> Weight {104 (11_191_000 as Weight)105 (1_980_000 as Weight)105 // Standard Error: 4_000106 // Standard Error: 2_000106 .saturating_add((6_321_000 as Weight).saturating_mul(b as Weight))107 .saturating_add((6_305_000 as Weight).saturating_mul(b as Weight))107 .saturating_add(T::DbWeight::get().reads(1 as Weight))108 .saturating_add(T::DbWeight::get().reads(1 as Weight))108 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))109 .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))109 .saturating_add(T::DbWeight::get().writes(3 as Weight))110 .saturating_add(T::DbWeight::get().writes(3 as Weight))114 // Storage: Refungible AccountBalance (r:1 w:1)115 // Storage: Refungible AccountBalance (r:1 w:1)115 // Storage: Refungible Owned (r:0 w:1)116 // Storage: Refungible Owned (r:0 w:1)116 fn burn_item_partial() -> Weight {117 fn burn_item_partial() -> Weight {117 (24_421_000 as Weight)118 (21_010_000 as Weight)118 .saturating_add(T::DbWeight::get().reads(3 as Weight))119 .saturating_add(T::DbWeight::get().reads(3 as Weight))119 .saturating_add(T::DbWeight::get().writes(4 as Weight))120 .saturating_add(T::DbWeight::get().writes(4 as Weight))120 }121 }125 // Storage: Refungible TokenData (r:0 w:1)126 // Storage: Refungible TokenData (r:0 w:1)126 // Storage: Refungible Owned (r:0 w:1)127 // Storage: Refungible Owned (r:0 w:1)127 fn burn_item_fully() -> Weight {128 fn burn_item_fully() -> Weight {128 (32_900_000 as Weight)129 (28_413_000 as Weight)129 .saturating_add(T::DbWeight::get().reads(4 as Weight))130 .saturating_add(T::DbWeight::get().reads(4 as Weight))130 .saturating_add(T::DbWeight::get().writes(6 as Weight))131 .saturating_add(T::DbWeight::get().writes(6 as Weight))131 }132 }132 // Storage: Refungible Balance (r:2 w:2)133 // Storage: Refungible Balance (r:2 w:2)133 fn transfer_normal() -> Weight {134 fn transfer_normal() -> Weight {134 (20_215_000 as Weight)135 (17_513_000 as Weight)135 .saturating_add(T::DbWeight::get().reads(2 as Weight))136 .saturating_add(T::DbWeight::get().reads(2 as Weight))136 .saturating_add(T::DbWeight::get().writes(2 as Weight))137 .saturating_add(T::DbWeight::get().writes(2 as Weight))137 }138 }138 // Storage: Refungible Balance (r:2 w:2)139 // Storage: Refungible Balance (r:2 w:2)139 // Storage: Refungible AccountBalance (r:1 w:1)140 // Storage: Refungible AccountBalance (r:1 w:1)140 // Storage: Refungible Owned (r:0 w:1)141 // Storage: Refungible Owned (r:0 w:1)141 fn transfer_creating() -> Weight {142 fn transfer_creating() -> Weight {142 (24_809_000 as Weight)143 (20_469_000 as Weight)143 .saturating_add(T::DbWeight::get().reads(3 as Weight))144 .saturating_add(T::DbWeight::get().reads(3 as Weight))144 .saturating_add(T::DbWeight::get().writes(4 as Weight))145 .saturating_add(T::DbWeight::get().writes(4 as Weight))145 }146 }146 // Storage: Refungible Balance (r:2 w:2)147 // Storage: Refungible Balance (r:2 w:2)147 // Storage: Refungible AccountBalance (r:1 w:1)148 // Storage: Refungible AccountBalance (r:1 w:1)148 // Storage: Refungible Owned (r:0 w:1)149 // Storage: Refungible Owned (r:0 w:1)149 fn transfer_removing() -> Weight {150 fn transfer_removing() -> Weight {150 (26_704_000 as Weight)151 (22_472_000 as Weight)151 .saturating_add(T::DbWeight::get().reads(3 as Weight))152 .saturating_add(T::DbWeight::get().reads(3 as Weight))152 .saturating_add(T::DbWeight::get().writes(4 as Weight))153 .saturating_add(T::DbWeight::get().writes(4 as Weight))153 }154 }154 // Storage: Refungible Balance (r:2 w:2)155 // Storage: Refungible Balance (r:2 w:2)155 // Storage: Refungible AccountBalance (r:2 w:2)156 // Storage: Refungible AccountBalance (r:2 w:2)156 // Storage: Refungible Owned (r:0 w:2)157 // Storage: Refungible Owned (r:0 w:2)157 fn transfer_creating_removing() -> Weight {158 fn transfer_creating_removing() -> Weight {158 (28_728_000 as Weight)159 (24_866_000 as Weight)159 .saturating_add(T::DbWeight::get().reads(4 as Weight))160 .saturating_add(T::DbWeight::get().reads(4 as Weight))160 .saturating_add(T::DbWeight::get().writes(6 as Weight))161 .saturating_add(T::DbWeight::get().writes(6 as Weight))161 }162 }162 // Storage: Refungible Balance (r:1 w:0)163 // Storage: Refungible Balance (r:1 w:0)163 // Storage: Refungible Allowance (r:0 w:1)164 // Storage: Refungible Allowance (r:0 w:1)164 fn approve() -> Weight {165 fn approve() -> Weight {165 (16_107_000 as Weight)166 (13_475_000 as Weight)166 .saturating_add(T::DbWeight::get().reads(1 as Weight))167 .saturating_add(T::DbWeight::get().reads(1 as Weight))167 .saturating_add(T::DbWeight::get().writes(1 as Weight))168 .saturating_add(T::DbWeight::get().writes(1 as Weight))168 }169 }169 // Storage: Refungible Allowance (r:1 w:1)170 // Storage: Refungible Allowance (r:1 w:1)170 // Storage: Refungible Balance (r:2 w:2)171 // Storage: Refungible Balance (r:2 w:2)171 fn transfer_from_normal() -> Weight {172 fn transfer_from_normal() -> Weight {172 (28_765_000 as Weight)173 (24_707_000 as Weight)173 .saturating_add(T::DbWeight::get().reads(3 as Weight))174 .saturating_add(T::DbWeight::get().reads(3 as Weight))174 .saturating_add(T::DbWeight::get().writes(3 as Weight))175 .saturating_add(T::DbWeight::get().writes(3 as Weight))175 }176 }178 // Storage: Refungible AccountBalance (r:1 w:1)179 // Storage: Refungible AccountBalance (r:1 w:1)179 // Storage: Refungible Owned (r:0 w:1)180 // Storage: Refungible Owned (r:0 w:1)180 fn transfer_from_creating() -> Weight {181 fn transfer_from_creating() -> Weight {181 (32_788_000 as Weight)182 (27_812_000 as Weight)182 .saturating_add(T::DbWeight::get().reads(4 as Weight))183 .saturating_add(T::DbWeight::get().reads(4 as Weight))183 .saturating_add(T::DbWeight::get().writes(5 as Weight))184 .saturating_add(T::DbWeight::get().writes(5 as Weight))184 }185 }187 // Storage: Refungible AccountBalance (r:1 w:1)188 // Storage: Refungible AccountBalance (r:1 w:1)188 // Storage: Refungible Owned (r:0 w:1)189 // Storage: Refungible Owned (r:0 w:1)189 fn transfer_from_removing() -> Weight {190 fn transfer_from_removing() -> Weight {190 (34_523_000 as Weight)191 (29_966_000 as Weight)191 .saturating_add(T::DbWeight::get().reads(4 as Weight))192 .saturating_add(T::DbWeight::get().reads(4 as Weight))192 .saturating_add(T::DbWeight::get().writes(5 as Weight))193 .saturating_add(T::DbWeight::get().writes(5 as Weight))193 }194 }196 // Storage: Refungible AccountBalance (r:2 w:2)197 // Storage: Refungible AccountBalance (r:2 w:2)197 // Storage: Refungible Owned (r:0 w:2)198 // Storage: Refungible Owned (r:0 w:2)198 fn transfer_from_creating_removing() -> Weight {199 fn transfer_from_creating_removing() -> Weight {199 (36_749_000 as Weight)200 (31_660_000 as Weight)200 .saturating_add(T::DbWeight::get().reads(5 as Weight))201 .saturating_add(T::DbWeight::get().reads(5 as Weight))201 .saturating_add(T::DbWeight::get().writes(7 as Weight))202 .saturating_add(T::DbWeight::get().writes(7 as Weight))202 }203 }208 // Storage: Refungible TokenData (r:0 w:1)209 // Storage: Refungible TokenData (r:0 w:1)209 // Storage: Refungible Owned (r:0 w:1)210 // Storage: Refungible Owned (r:0 w:1)210 fn burn_from() -> Weight {211 fn burn_from() -> Weight {211 (42_259_000 as Weight)212 (36_248_000 as Weight)212 .saturating_add(T::DbWeight::get().reads(5 as Weight))213 .saturating_add(T::DbWeight::get().reads(5 as Weight))213 .saturating_add(T::DbWeight::get().writes(7 as Weight))214 .saturating_add(T::DbWeight::get().writes(7 as Weight))214 }215 }216 // Storage: Refungible TotalSupply (r:1 w:1)217 // Storage: Refungible Balance (r:1 w:1)218 fn repartition_item() -> Weight {219 (8_226_000 as Weight)220 .saturating_add(T::DbWeight::get().reads(2 as Weight))221 .saturating_add(T::DbWeight::get().writes(2 as Weight))222 }215}223}216224217// For backwards compatibility and tests225// For backwards compatibility and tests223 // Storage: Refungible TokenData (r:0 w:1)231 // Storage: Refungible TokenData (r:0 w:1)224 // Storage: Refungible Owned (r:0 w:1)232 // Storage: Refungible Owned (r:0 w:1)225 fn create_item() -> Weight {233 fn create_item() -> Weight {226 (21_321_000 as Weight)234 (17_553_000 as Weight)227 .saturating_add(RocksDbWeight::get().reads(2 as Weight))235 .saturating_add(RocksDbWeight::get().reads(2 as Weight))228 .saturating_add(RocksDbWeight::get().writes(6 as Weight))236 .saturating_add(RocksDbWeight::get().writes(6 as Weight))229 }237 }234 // Storage: Refungible TokenData (r:0 w:4)242 // Storage: Refungible TokenData (r:0 w:4)235 // Storage: Refungible Owned (r:0 w:4)243 // Storage: Refungible Owned (r:0 w:4)236 fn create_multiple_items(b: u32, ) -> Weight {244 fn create_multiple_items(b: u32, ) -> Weight {237 (16_313_000 as Weight)245 (10_654_000 as Weight)238 // Standard Error: 4_000246 // Standard Error: 1_000239 .saturating_add((5_464_000 as Weight).saturating_mul(b as Weight))247 .saturating_add((5_114_000 as Weight).saturating_mul(b as Weight))240 .saturating_add(RocksDbWeight::get().reads(2 as Weight))248 .saturating_add(RocksDbWeight::get().reads(2 as Weight))241 .saturating_add(RocksDbWeight::get().writes(2 as Weight))249 .saturating_add(RocksDbWeight::get().writes(2 as Weight))242 .saturating_add(RocksDbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))250 .saturating_add(RocksDbWeight::get().writes((4 as Weight).saturating_mul(b as Weight)))248 // Storage: Refungible TokenData (r:0 w:4)256 // Storage: Refungible TokenData (r:0 w:4)249 // Storage: Refungible Owned (r:0 w:4)257 // Storage: Refungible Owned (r:0 w:4)250 fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight {258 fn create_multiple_items_ex_multiple_items(b: u32, ) -> Weight {251 (15_631_000 as Weight)259 (3_587_000 as Weight)252 // Standard Error: 5_000260 // Standard Error: 2_000253 .saturating_add((8_141_000 as Weight).saturating_mul(b as Weight))261 .saturating_add((7_931_000 as Weight).saturating_mul(b as Weight))254 .saturating_add(RocksDbWeight::get().reads(1 as Weight))262 .saturating_add(RocksDbWeight::get().reads(1 as Weight))255 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))263 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))256 .saturating_add(RocksDbWeight::get().writes(1 as Weight))264 .saturating_add(RocksDbWeight::get().writes(1 as Weight))263 // Storage: Refungible Balance (r:0 w:4)271 // Storage: Refungible Balance (r:0 w:4)264 // Storage: Refungible Owned (r:0 w:4)272 // Storage: Refungible Owned (r:0 w:4)265 fn create_multiple_items_ex_multiple_owners(b: u32, ) -> Weight {273 fn create_multiple_items_ex_multiple_owners(b: u32, ) -> Weight {266 (11_191_000 as Weight)274 (1_980_000 as Weight)267 // Standard Error: 4_000275 // Standard Error: 2_000268 .saturating_add((6_321_000 as Weight).saturating_mul(b as Weight))276 .saturating_add((6_305_000 as Weight).saturating_mul(b as Weight))269 .saturating_add(RocksDbWeight::get().reads(1 as Weight))277 .saturating_add(RocksDbWeight::get().reads(1 as Weight))270 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))278 .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(b as Weight)))271 .saturating_add(RocksDbWeight::get().writes(3 as Weight))279 .saturating_add(RocksDbWeight::get().writes(3 as Weight))276 // Storage: Refungible AccountBalance (r:1 w:1)284 // Storage: Refungible AccountBalance (r:1 w:1)277 // Storage: Refungible Owned (r:0 w:1)285 // Storage: Refungible Owned (r:0 w:1)278 fn burn_item_partial() -> Weight {286 fn burn_item_partial() -> Weight {279 (24_421_000 as Weight)287 (21_010_000 as Weight)280 .saturating_add(RocksDbWeight::get().reads(3 as Weight))288 .saturating_add(RocksDbWeight::get().reads(3 as Weight))281 .saturating_add(RocksDbWeight::get().writes(4 as Weight))289 .saturating_add(RocksDbWeight::get().writes(4 as Weight))282 }290 }287 // Storage: Refungible TokenData (r:0 w:1)295 // Storage: Refungible TokenData (r:0 w:1)288 // Storage: Refungible Owned (r:0 w:1)296 // Storage: Refungible Owned (r:0 w:1)289 fn burn_item_fully() -> Weight {297 fn burn_item_fully() -> Weight {290 (32_900_000 as Weight)298 (28_413_000 as Weight)291 .saturating_add(RocksDbWeight::get().reads(4 as Weight))299 .saturating_add(RocksDbWeight::get().reads(4 as Weight))292 .saturating_add(RocksDbWeight::get().writes(6 as Weight))300 .saturating_add(RocksDbWeight::get().writes(6 as Weight))293 }301 }294 // Storage: Refungible Balance (r:2 w:2)302 // Storage: Refungible Balance (r:2 w:2)295 fn transfer_normal() -> Weight {303 fn transfer_normal() -> Weight {296 (20_215_000 as Weight)304 (17_513_000 as Weight)297 .saturating_add(RocksDbWeight::get().reads(2 as Weight))305 .saturating_add(RocksDbWeight::get().reads(2 as Weight))298 .saturating_add(RocksDbWeight::get().writes(2 as Weight))306 .saturating_add(RocksDbWeight::get().writes(2 as Weight))299 }307 }300 // Storage: Refungible Balance (r:2 w:2)308 // Storage: Refungible Balance (r:2 w:2)301 // Storage: Refungible AccountBalance (r:1 w:1)309 // Storage: Refungible AccountBalance (r:1 w:1)302 // Storage: Refungible Owned (r:0 w:1)310 // Storage: Refungible Owned (r:0 w:1)303 fn transfer_creating() -> Weight {311 fn transfer_creating() -> Weight {304 (24_809_000 as Weight)312 (20_469_000 as Weight)305 .saturating_add(RocksDbWeight::get().reads(3 as Weight))313 .saturating_add(RocksDbWeight::get().reads(3 as Weight))306 .saturating_add(RocksDbWeight::get().writes(4 as Weight))314 .saturating_add(RocksDbWeight::get().writes(4 as Weight))307 }315 }308 // Storage: Refungible Balance (r:2 w:2)316 // Storage: Refungible Balance (r:2 w:2)309 // Storage: Refungible AccountBalance (r:1 w:1)317 // Storage: Refungible AccountBalance (r:1 w:1)310 // Storage: Refungible Owned (r:0 w:1)318 // Storage: Refungible Owned (r:0 w:1)311 fn transfer_removing() -> Weight {319 fn transfer_removing() -> Weight {312 (26_704_000 as Weight)320 (22_472_000 as Weight)313 .saturating_add(RocksDbWeight::get().reads(3 as Weight))321 .saturating_add(RocksDbWeight::get().reads(3 as Weight))314 .saturating_add(RocksDbWeight::get().writes(4 as Weight))322 .saturating_add(RocksDbWeight::get().writes(4 as Weight))315 }323 }316 // Storage: Refungible Balance (r:2 w:2)324 // Storage: Refungible Balance (r:2 w:2)317 // Storage: Refungible AccountBalance (r:2 w:2)325 // Storage: Refungible AccountBalance (r:2 w:2)318 // Storage: Refungible Owned (r:0 w:2)326 // Storage: Refungible Owned (r:0 w:2)319 fn transfer_creating_removing() -> Weight {327 fn transfer_creating_removing() -> Weight {320 (28_728_000 as Weight)328 (24_866_000 as Weight)321 .saturating_add(RocksDbWeight::get().reads(4 as Weight))329 .saturating_add(RocksDbWeight::get().reads(4 as Weight))322 .saturating_add(RocksDbWeight::get().writes(6 as Weight))330 .saturating_add(RocksDbWeight::get().writes(6 as Weight))323 }331 }324 // Storage: Refungible Balance (r:1 w:0)332 // Storage: Refungible Balance (r:1 w:0)325 // Storage: Refungible Allowance (r:0 w:1)333 // Storage: Refungible Allowance (r:0 w:1)326 fn approve() -> Weight {334 fn approve() -> Weight {327 (16_107_000 as Weight)335 (13_475_000 as Weight)328 .saturating_add(RocksDbWeight::get().reads(1 as Weight))336 .saturating_add(RocksDbWeight::get().reads(1 as Weight))329 .saturating_add(RocksDbWeight::get().writes(1 as Weight))337 .saturating_add(RocksDbWeight::get().writes(1 as Weight))330 }338 }331 // Storage: Refungible Allowance (r:1 w:1)339 // Storage: Refungible Allowance (r:1 w:1)332 // Storage: Refungible Balance (r:2 w:2)340 // Storage: Refungible Balance (r:2 w:2)333 fn transfer_from_normal() -> Weight {341 fn transfer_from_normal() -> Weight {334 (28_765_000 as Weight)342 (24_707_000 as Weight)335 .saturating_add(RocksDbWeight::get().reads(3 as Weight))343 .saturating_add(RocksDbWeight::get().reads(3 as Weight))336 .saturating_add(RocksDbWeight::get().writes(3 as Weight))344 .saturating_add(RocksDbWeight::get().writes(3 as Weight))337 }345 }340 // Storage: Refungible AccountBalance (r:1 w:1)348 // Storage: Refungible AccountBalance (r:1 w:1)341 // Storage: Refungible Owned (r:0 w:1)349 // Storage: Refungible Owned (r:0 w:1)342 fn transfer_from_creating() -> Weight {350 fn transfer_from_creating() -> Weight {343 (32_788_000 as Weight)351 (27_812_000 as Weight)344 .saturating_add(RocksDbWeight::get().reads(4 as Weight))352 .saturating_add(RocksDbWeight::get().reads(4 as Weight))345 .saturating_add(RocksDbWeight::get().writes(5 as Weight))353 .saturating_add(RocksDbWeight::get().writes(5 as Weight))346 }354 }349 // Storage: Refungible AccountBalance (r:1 w:1)357 // Storage: Refungible AccountBalance (r:1 w:1)350 // Storage: Refungible Owned (r:0 w:1)358 // Storage: Refungible Owned (r:0 w:1)351 fn transfer_from_removing() -> Weight {359 fn transfer_from_removing() -> Weight {352 (34_523_000 as Weight)360 (29_966_000 as Weight)353 .saturating_add(RocksDbWeight::get().reads(4 as Weight))361 .saturating_add(RocksDbWeight::get().reads(4 as Weight))354 .saturating_add(RocksDbWeight::get().writes(5 as Weight))362 .saturating_add(RocksDbWeight::get().writes(5 as Weight))355 }363 }358 // Storage: Refungible AccountBalance (r:2 w:2)366 // Storage: Refungible AccountBalance (r:2 w:2)359 // Storage: Refungible Owned (r:0 w:2)367 // Storage: Refungible Owned (r:0 w:2)360 fn transfer_from_creating_removing() -> Weight {368 fn transfer_from_creating_removing() -> Weight {361 (36_749_000 as Weight)369 (31_660_000 as Weight)362 .saturating_add(RocksDbWeight::get().reads(5 as Weight))370 .saturating_add(RocksDbWeight::get().reads(5 as Weight))363 .saturating_add(RocksDbWeight::get().writes(7 as Weight))371 .saturating_add(RocksDbWeight::get().writes(7 as Weight))364 }372 }370 // Storage: Refungible TokenData (r:0 w:1)378 // Storage: Refungible TokenData (r:0 w:1)371 // Storage: Refungible Owned (r:0 w:1)379 // Storage: Refungible Owned (r:0 w:1)372 fn burn_from() -> Weight {380 fn burn_from() -> Weight {373 (42_259_000 as Weight)381 (36_248_000 as Weight)374 .saturating_add(RocksDbWeight::get().reads(5 as Weight))382 .saturating_add(RocksDbWeight::get().reads(5 as Weight))375 .saturating_add(RocksDbWeight::get().writes(7 as Weight))383 .saturating_add(RocksDbWeight::get().writes(7 as Weight))376 }384 }385 // Storage: Refungible TotalSupply (r:1 w:1)386 // Storage: Refungible Balance (r:1 w:1)387 fn repartition_item() -> Weight {388 (8_226_000 as Weight)389 .saturating_add(RocksDbWeight::get().reads(2 as Weight))390 .saturating_add(RocksDbWeight::get().writes(2 as Weight))391 }377}392}378393pallets/unique/src/eth/mod.rsdiffbeforeafterboth48impl<T: Config + pallet_nonfungible::Config> EvmCollectionHelpers<T> {48impl<T: Config + pallet_nonfungible::Config> EvmCollectionHelpers<T> {49 #[weight(<SelfWeightOf<T>>::create_collection())]49 #[weight(<SelfWeightOf<T>>::create_collection())]50 fn create_nonfungible_collection(50 fn create_nonfungible_collection(51 &self,51 &mut self,52 caller: caller,52 caller: caller,53 name: string,53 name: string,54 description: string,54 description: string,pallets/unique/src/eth/stubs/CollectionHelpers.rawdiffbeforeafterbothbinary blob — no preview
pallets/unique/src/eth/stubs/CollectionHelpers.soldiffbeforeafterboth36 string memory name,36 string memory name,37 string memory description,37 string memory description,38 string memory tokenPrefix38 string memory tokenPrefix39 ) public view returns (address) {39 ) public returns (address) {40 require(false, stub_error);40 require(false, stub_error);41 name;41 name;42 description;42 description;43 tokenPrefix;43 tokenPrefix;44 dummy;44 dummy = 0;45 return 0x0000000000000000000000000000000000000000;45 return 0x0000000000000000000000000000000000000000;46 }46 }4747pallets/unique/src/lib.rsdiffbeforeafterboth27use frame_support::{27use frame_support::{28 decl_module, decl_storage, decl_error, decl_event,28 decl_module, decl_storage, decl_error, decl_event,29 dispatch::DispatchResult,29 dispatch::DispatchResult,30 ensure,30 ensure, fail,31 weights::{Weight},31 weights::{Weight},32 transactional,32 transactional,33 pallet_prelude::{DispatchResultWithPostInfo, ConstU32},33 pallet_prelude::{DispatchResultWithPostInfo, ConstU32},45use pallet_evm::account::CrossAccountId;45use pallet_evm::account::CrossAccountId;46use pallet_common::{46use pallet_common::{47 CollectionHandle, Pallet as PalletCommon, CommonWeightInfo, dispatch::dispatch_tx,47 CollectionHandle, Pallet as PalletCommon, CommonWeightInfo, dispatch::dispatch_tx,48 dispatch::CollectionDispatch,48 dispatch::CollectionDispatch, RefungibleExtensionsWeightInfo,49};49};50pub mod eth;50pub mod eth;515165 ConfirmUnsetSponsorFail,65 ConfirmUnsetSponsorFail,66 /// Length of items properties must be greater than 0.66 /// Length of items properties must be greater than 0.67 EmptyArgument,67 EmptyArgument,68 /// Repertition is only supported by refungible collection69 RepartitionCalledOnNonRefungibleCollection,68 }70 }69}71}707274 /// Weight information for extrinsics in this pallet.76 /// Weight information for extrinsics in this pallet.75 type WeightInfo: WeightInfo;77 type WeightInfo: WeightInfo;76 type CommonWeightInfo: CommonWeightInfo<Self::CrossAccountId>;78 type CommonWeightInfo: CommonWeightInfo<Self::CrossAccountId>;79 type RefungibleExtensionsWeightInfo: RefungibleExtensionsWeightInfo;77}80}788179decl_event! {82decl_event! {651 ensure!(!properties.is_empty(), Error::<T>::EmptyArgument);654 ensure!(!properties.is_empty(), Error::<T>::EmptyArgument);652655653 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);656 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);657 let budget = budget::Value::new(NESTING_BUDGET);654658655 dispatch_tx::<T, _>(collection_id, |d| d.set_token_properties(sender, token_id, properties))659 dispatch_tx::<T, _>(collection_id, |d| d.set_token_properties(sender, token_id, properties, &budget))656 }660 }657661658 #[weight = T::CommonWeightInfo::delete_token_properties(property_keys.len() as u32)]662 #[weight = T::CommonWeightInfo::delete_token_properties(property_keys.len() as u32)]666 ensure!(!property_keys.is_empty(), Error::<T>::EmptyArgument);670 ensure!(!property_keys.is_empty(), Error::<T>::EmptyArgument);667671668 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);672 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);673 let budget = budget::Value::new(NESTING_BUDGET);669674670 dispatch_tx::<T, _>(collection_id, |d| d.delete_token_properties(sender, token_id, property_keys))675 dispatch_tx::<T, _>(collection_id, |d| d.delete_token_properties(sender, token_id, property_keys, &budget))671 }676 }672677673 #[weight = T::CommonWeightInfo::set_token_property_permissions(property_permissions.len() as u32)]678 #[weight = T::CommonWeightInfo::set_token_property_permissions(property_permissions.len() as u32)]899 target_collection.save()904 target_collection.save()900 }905 }906907 #[weight = T::RefungibleExtensionsWeightInfo::repartition()]908 #[transactional]909 pub fn repartition(910 origin,911 collection_id: CollectionId,912 token: TokenId,913 amount: u128,914 ) -> DispatchResultWithPostInfo {915 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);916 dispatch_tx::<T, _>(collection_id, |d| {917 if let Some(refungible_extensions) = d.refungible_extensions() {918 refungible_extensions.repartition(&sender, token, amount)919 } else {920 fail!(<Error<T>>::RepartitionCalledOnNonRefungibleCollection)921 }922 })923 }901 }924 }902}925}903926pallets/unique/src/weights.rsdiffbeforeafterboth3//! Autogenerated weights for pallet_unique3//! Autogenerated weights for pallet_unique4//!4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2022-06-15, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`6//! DATE: 2022-06-28, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10247//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024889// Executed Command:9// Executed Command:57 // Storage: Common CollectionProperties (r:0 w:1)57 // Storage: Common CollectionProperties (r:0 w:1)58 // Storage: Common CollectionById (r:0 w:1)58 // Storage: Common CollectionById (r:0 w:1)59 fn create_collection() -> Weight {59 fn create_collection() -> Weight {60 (39_427_000 as Weight)60 (53_511_000 as Weight)61 .saturating_add(T::DbWeight::get().reads(4 as Weight))61 .saturating_add(T::DbWeight::get().reads(4 as Weight))62 .saturating_add(T::DbWeight::get().writes(6 as Weight))62 .saturating_add(T::DbWeight::get().writes(6 as Weight))63 }63 }69 // Storage: Common AdminAmount (r:0 w:1)69 // Storage: Common AdminAmount (r:0 w:1)70 // Storage: Common CollectionProperties (r:0 w:1)70 // Storage: Common CollectionProperties (r:0 w:1)71 fn destroy_collection() -> Weight {71 fn destroy_collection() -> Weight {72 (48_339_000 as Weight)72 (69_481_000 as Weight)73 .saturating_add(T::DbWeight::get().reads(3 as Weight))73 .saturating_add(T::DbWeight::get().reads(3 as Weight))74 .saturating_add(T::DbWeight::get().writes(6 as Weight))74 .saturating_add(T::DbWeight::get().writes(6 as Weight))75 }75 }76 // Storage: Common CollectionById (r:1 w:0)76 // Storage: Common CollectionById (r:1 w:0)77 // Storage: Common Allowlist (r:0 w:1)77 // Storage: Common Allowlist (r:0 w:1)78 fn add_to_allow_list() -> Weight {78 fn add_to_allow_list() -> Weight {79 (17_379_000 as Weight)79 (22_892_000 as Weight)80 .saturating_add(T::DbWeight::get().reads(1 as Weight))80 .saturating_add(T::DbWeight::get().reads(1 as Weight))81 .saturating_add(T::DbWeight::get().writes(1 as Weight))81 .saturating_add(T::DbWeight::get().writes(1 as Weight))82 }82 }83 // Storage: Common CollectionById (r:1 w:0)83 // Storage: Common CollectionById (r:1 w:0)84 // Storage: Common Allowlist (r:0 w:1)84 // Storage: Common Allowlist (r:0 w:1)85 fn remove_from_allow_list() -> Weight {85 fn remove_from_allow_list() -> Weight {86 (17_490_000 as Weight)86 (22_973_000 as Weight)87 .saturating_add(T::DbWeight::get().reads(1 as Weight))87 .saturating_add(T::DbWeight::get().reads(1 as Weight))88 .saturating_add(T::DbWeight::get().writes(1 as Weight))88 .saturating_add(T::DbWeight::get().writes(1 as Weight))89 }89 }90 // Storage: Common CollectionById (r:1 w:1)90 // Storage: Common CollectionById (r:1 w:1)91 fn change_collection_owner() -> Weight {91 fn change_collection_owner() -> Weight {92 (17_701_000 as Weight)92 (22_392_000 as Weight)93 .saturating_add(T::DbWeight::get().reads(1 as Weight))93 .saturating_add(T::DbWeight::get().reads(1 as Weight))94 .saturating_add(T::DbWeight::get().writes(1 as Weight))94 .saturating_add(T::DbWeight::get().writes(1 as Weight))95 }95 }96 // Storage: Common CollectionById (r:1 w:0)96 // Storage: Common CollectionById (r:1 w:0)97 // Storage: Common IsAdmin (r:1 w:1)97 // Storage: Common IsAdmin (r:1 w:1)98 // Storage: Common AdminAmount (r:1 w:1)98 // Storage: Common AdminAmount (r:1 w:1)99 fn add_collection_admin() -> Weight {99 fn add_collection_admin() -> Weight {100 (23_301_000 as Weight)100 (30_298_000 as Weight)101 .saturating_add(T::DbWeight::get().reads(3 as Weight))101 .saturating_add(T::DbWeight::get().reads(3 as Weight))102 .saturating_add(T::DbWeight::get().writes(2 as Weight))102 .saturating_add(T::DbWeight::get().writes(2 as Weight))103 }103 }104 // Storage: Common CollectionById (r:1 w:0)104 // Storage: Common CollectionById (r:1 w:0)105 // Storage: Common IsAdmin (r:1 w:1)105 // Storage: Common IsAdmin (r:1 w:1)106 // Storage: Common AdminAmount (r:1 w:1)106 // Storage: Common AdminAmount (r:1 w:1)107 fn remove_collection_admin() -> Weight {107 fn remove_collection_admin() -> Weight {108 (24_859_000 as Weight)108 (32_842_000 as Weight)109 .saturating_add(T::DbWeight::get().reads(3 as Weight))109 .saturating_add(T::DbWeight::get().reads(3 as Weight))110 .saturating_add(T::DbWeight::get().writes(2 as Weight))110 .saturating_add(T::DbWeight::get().writes(2 as Weight))111 }111 }112 // Storage: Common CollectionById (r:1 w:1)112 // Storage: Common CollectionById (r:1 w:1)113 fn set_collection_sponsor() -> Weight {113 fn set_collection_sponsor() -> Weight {114 (17_795_000 as Weight)114 (22_613_000 as Weight)115 .saturating_add(T::DbWeight::get().reads(1 as Weight))115 .saturating_add(T::DbWeight::get().reads(1 as Weight))116 .saturating_add(T::DbWeight::get().writes(1 as Weight))116 .saturating_add(T::DbWeight::get().writes(1 as Weight))117 }117 }118 // Storage: Common CollectionById (r:1 w:1)118 // Storage: Common CollectionById (r:1 w:1)119 fn confirm_sponsorship() -> Weight {119 fn confirm_sponsorship() -> Weight {120 (17_297_000 as Weight)120 (22_462_000 as Weight)121 .saturating_add(T::DbWeight::get().reads(1 as Weight))121 .saturating_add(T::DbWeight::get().reads(1 as Weight))122 .saturating_add(T::DbWeight::get().writes(1 as Weight))122 .saturating_add(T::DbWeight::get().writes(1 as Weight))123 }123 }124 // Storage: Common CollectionById (r:1 w:1)124 // Storage: Common CollectionById (r:1 w:1)125 fn remove_collection_sponsor() -> Weight {125 fn remove_collection_sponsor() -> Weight {126 (17_079_000 as Weight)126 (21_730_000 as Weight)127 .saturating_add(T::DbWeight::get().reads(1 as Weight))127 .saturating_add(T::DbWeight::get().reads(1 as Weight))128 .saturating_add(T::DbWeight::get().writes(1 as Weight))128 .saturating_add(T::DbWeight::get().writes(1 as Weight))129 }129 }130 // Storage: Common CollectionById (r:1 w:1)130 // Storage: Common CollectionById (r:1 w:1)131 fn set_transfers_enabled_flag() -> Weight {131 fn set_transfers_enabled_flag() -> Weight {132 (9_734_000 as Weight)132 (10_941_000 as Weight)133 .saturating_add(T::DbWeight::get().reads(1 as Weight))133 .saturating_add(T::DbWeight::get().reads(1 as Weight))134 .saturating_add(T::DbWeight::get().writes(1 as Weight))134 .saturating_add(T::DbWeight::get().writes(1 as Weight))135 }135 }136 // Storage: Common CollectionById (r:1 w:1)136 // Storage: Common CollectionById (r:1 w:1)137 fn set_collection_limits() -> Weight {137 fn set_collection_limits() -> Weight {138 (17_998_000 as Weight)138 (22_363_000 as Weight)139 .saturating_add(T::DbWeight::get().reads(1 as Weight))139 .saturating_add(T::DbWeight::get().reads(1 as Weight))140 .saturating_add(T::DbWeight::get().writes(1 as Weight))140 .saturating_add(T::DbWeight::get().writes(1 as Weight))141 }141 }150 // Storage: Common CollectionProperties (r:0 w:1)150 // Storage: Common CollectionProperties (r:0 w:1)151 // Storage: Common CollectionById (r:0 w:1)151 // Storage: Common CollectionById (r:0 w:1)152 fn create_collection() -> Weight {152 fn create_collection() -> Weight {153 (39_427_000 as Weight)153 (53_511_000 as Weight)154 .saturating_add(RocksDbWeight::get().reads(4 as Weight))154 .saturating_add(RocksDbWeight::get().reads(4 as Weight))155 .saturating_add(RocksDbWeight::get().writes(6 as Weight))155 .saturating_add(RocksDbWeight::get().writes(6 as Weight))156 }156 }162 // Storage: Common AdminAmount (r:0 w:1)162 // Storage: Common AdminAmount (r:0 w:1)163 // Storage: Common CollectionProperties (r:0 w:1)163 // Storage: Common CollectionProperties (r:0 w:1)164 fn destroy_collection() -> Weight {164 fn destroy_collection() -> Weight {165 (48_339_000 as Weight)165 (69_481_000 as Weight)166 .saturating_add(RocksDbWeight::get().reads(3 as Weight))166 .saturating_add(RocksDbWeight::get().reads(3 as Weight))167 .saturating_add(RocksDbWeight::get().writes(6 as Weight))167 .saturating_add(RocksDbWeight::get().writes(6 as Weight))168 }168 }169 // Storage: Common CollectionById (r:1 w:0)169 // Storage: Common CollectionById (r:1 w:0)170 // Storage: Common Allowlist (r:0 w:1)170 // Storage: Common Allowlist (r:0 w:1)171 fn add_to_allow_list() -> Weight {171 fn add_to_allow_list() -> Weight {172 (17_379_000 as Weight)172 (22_892_000 as Weight)173 .saturating_add(RocksDbWeight::get().reads(1 as Weight))173 .saturating_add(RocksDbWeight::get().reads(1 as Weight))174 .saturating_add(RocksDbWeight::get().writes(1 as Weight))174 .saturating_add(RocksDbWeight::get().writes(1 as Weight))175 }175 }176 // Storage: Common CollectionById (r:1 w:0)176 // Storage: Common CollectionById (r:1 w:0)177 // Storage: Common Allowlist (r:0 w:1)177 // Storage: Common Allowlist (r:0 w:1)178 fn remove_from_allow_list() -> Weight {178 fn remove_from_allow_list() -> Weight {179 (17_490_000 as Weight)179 (22_973_000 as Weight)180 .saturating_add(RocksDbWeight::get().reads(1 as Weight))180 .saturating_add(RocksDbWeight::get().reads(1 as Weight))181 .saturating_add(RocksDbWeight::get().writes(1 as Weight))181 .saturating_add(RocksDbWeight::get().writes(1 as Weight))182 }182 }183 // Storage: Common CollectionById (r:1 w:1)183 // Storage: Common CollectionById (r:1 w:1)184 fn change_collection_owner() -> Weight {184 fn change_collection_owner() -> Weight {185 (17_701_000 as Weight)185 (22_392_000 as Weight)186 .saturating_add(RocksDbWeight::get().reads(1 as Weight))186 .saturating_add(RocksDbWeight::get().reads(1 as Weight))187 .saturating_add(RocksDbWeight::get().writes(1 as Weight))187 .saturating_add(RocksDbWeight::get().writes(1 as Weight))188 }188 }189 // Storage: Common CollectionById (r:1 w:0)189 // Storage: Common CollectionById (r:1 w:0)190 // Storage: Common IsAdmin (r:1 w:1)190 // Storage: Common IsAdmin (r:1 w:1)191 // Storage: Common AdminAmount (r:1 w:1)191 // Storage: Common AdminAmount (r:1 w:1)192 fn add_collection_admin() -> Weight {192 fn add_collection_admin() -> Weight {193 (23_301_000 as Weight)193 (30_298_000 as Weight)194 .saturating_add(RocksDbWeight::get().reads(3 as Weight))194 .saturating_add(RocksDbWeight::get().reads(3 as Weight))195 .saturating_add(RocksDbWeight::get().writes(2 as Weight))195 .saturating_add(RocksDbWeight::get().writes(2 as Weight))196 }196 }197 // Storage: Common CollectionById (r:1 w:0)197 // Storage: Common CollectionById (r:1 w:0)198 // Storage: Common IsAdmin (r:1 w:1)198 // Storage: Common IsAdmin (r:1 w:1)199 // Storage: Common AdminAmount (r:1 w:1)199 // Storage: Common AdminAmount (r:1 w:1)200 fn remove_collection_admin() -> Weight {200 fn remove_collection_admin() -> Weight {201 (24_859_000 as Weight)201 (32_842_000 as Weight)202 .saturating_add(RocksDbWeight::get().reads(3 as Weight))202 .saturating_add(RocksDbWeight::get().reads(3 as Weight))203 .saturating_add(RocksDbWeight::get().writes(2 as Weight))203 .saturating_add(RocksDbWeight::get().writes(2 as Weight))204 }204 }205 // Storage: Common CollectionById (r:1 w:1)205 // Storage: Common CollectionById (r:1 w:1)206 fn set_collection_sponsor() -> Weight {206 fn set_collection_sponsor() -> Weight {207 (17_795_000 as Weight)207 (22_613_000 as Weight)208 .saturating_add(RocksDbWeight::get().reads(1 as Weight))208 .saturating_add(RocksDbWeight::get().reads(1 as Weight))209 .saturating_add(RocksDbWeight::get().writes(1 as Weight))209 .saturating_add(RocksDbWeight::get().writes(1 as Weight))210 }210 }211 // Storage: Common CollectionById (r:1 w:1)211 // Storage: Common CollectionById (r:1 w:1)212 fn confirm_sponsorship() -> Weight {212 fn confirm_sponsorship() -> Weight {213 (17_297_000 as Weight)213 (22_462_000 as Weight)214 .saturating_add(RocksDbWeight::get().reads(1 as Weight))214 .saturating_add(RocksDbWeight::get().reads(1 as Weight))215 .saturating_add(RocksDbWeight::get().writes(1 as Weight))215 .saturating_add(RocksDbWeight::get().writes(1 as Weight))216 }216 }217 // Storage: Common CollectionById (r:1 w:1)217 // Storage: Common CollectionById (r:1 w:1)218 fn remove_collection_sponsor() -> Weight {218 fn remove_collection_sponsor() -> Weight {219 (17_079_000 as Weight)219 (21_730_000 as Weight)220 .saturating_add(RocksDbWeight::get().reads(1 as Weight))220 .saturating_add(RocksDbWeight::get().reads(1 as Weight))221 .saturating_add(RocksDbWeight::get().writes(1 as Weight))221 .saturating_add(RocksDbWeight::get().writes(1 as Weight))222 }222 }223 // Storage: Common CollectionById (r:1 w:1)223 // Storage: Common CollectionById (r:1 w:1)224 fn set_transfers_enabled_flag() -> Weight {224 fn set_transfers_enabled_flag() -> Weight {225 (9_734_000 as Weight)225 (10_941_000 as Weight)226 .saturating_add(RocksDbWeight::get().reads(1 as Weight))226 .saturating_add(RocksDbWeight::get().reads(1 as Weight))227 .saturating_add(RocksDbWeight::get().writes(1 as Weight))227 .saturating_add(RocksDbWeight::get().writes(1 as Weight))228 }228 }229 // Storage: Common CollectionById (r:1 w:1)229 // Storage: Common CollectionById (r:1 w:1)230 fn set_collection_limits() -> Weight {230 fn set_collection_limits() -> Weight {231 (17_998_000 as Weight)231 (22_363_000 as Weight)232 .saturating_add(RocksDbWeight::get().reads(1 as Weight))232 .saturating_add(RocksDbWeight::get().reads(1 as Weight))233 .saturating_add(RocksDbWeight::get().writes(1 as Weight))233 .saturating_add(RocksDbWeight::get().writes(1 as Weight))234 }234 }runtime/common/src/weights.rsdiffbeforeafterboth161617use core::marker::PhantomData;17use core::marker::PhantomData;18use frame_support::{weights::Weight};18use frame_support::{weights::Weight};19use pallet_common::{CommonWeightInfo, dispatch::dispatch_weight};19use pallet_common::{CommonWeightInfo, dispatch::dispatch_weight, RefungibleExtensionsWeightInfo};202021use pallet_fungible::{Config as FungibleConfig, common::CommonWeights as FungibleWeights};21use pallet_fungible::{Config as FungibleConfig, common::CommonWeights as FungibleWeights};22use pallet_nonfungible::{Config as NonfungibleConfig, common::CommonWeights as NonfungibleWeights};22use pallet_nonfungible::{Config as NonfungibleConfig, common::CommonWeights as NonfungibleWeights};23use pallet_refungible::{Config as RefungibleConfig, common::CommonWeights as RefungibleWeights};23use pallet_refungible::{24 Config as RefungibleConfig, weights::WeightInfo, common::CommonWeights as RefungibleWeights,25};24use up_data_structs::{CreateItemExData, CreateItemData};26use up_data_structs::{CreateItemExData, CreateItemData};252799 }101 }100}102}103104impl<T> RefungibleExtensionsWeightInfo for CommonWeights<T>105where106 T: FungibleConfig + NonfungibleConfig + RefungibleConfig,107{108 fn repartition() -> Weight {109 dispatch_weight::<T>() + <<T as RefungibleConfig>::WeightInfo>::repartition_item()110 }111}101112runtime/opal/src/lib.rsdiffbeforeafterboth192 spec_name: create_runtime_str!(RUNTIME_NAME),192 spec_name: create_runtime_str!(RUNTIME_NAME),193 impl_name: create_runtime_str!(RUNTIME_NAME),193 impl_name: create_runtime_str!(RUNTIME_NAME),194 authoring_version: 1,194 authoring_version: 1,195 spec_version: 924000,195 spec_version: 924010,196 impl_version: 0,196 impl_version: 0,197 apis: RUNTIME_API_VERSIONS,197 apis: RUNTIME_API_VERSIONS,198 transaction_version: 1,198 transaction_version: 1,925 type Event = Event;925 type Event = Event;926 type WeightInfo = pallet_unique::weights::SubstrateWeight<Self>;926 type WeightInfo = pallet_unique::weights::SubstrateWeight<Self>;927 type CommonWeightInfo = CommonWeights<Self>;927 type CommonWeightInfo = CommonWeights<Self>;928 type RefungibleExtensionsWeightInfo = CommonWeights<Self>;928}929}929930930parameter_types! {931parameter_types! {runtime/quartz/src/lib.rsdiffbeforeafterboth191 spec_name: create_runtime_str!(RUNTIME_NAME),191 spec_name: create_runtime_str!(RUNTIME_NAME),192 impl_name: create_runtime_str!(RUNTIME_NAME),192 impl_name: create_runtime_str!(RUNTIME_NAME),193 authoring_version: 1,193 authoring_version: 1,194 spec_version: 924000,194 spec_version: 924010,195 impl_version: 0,195 impl_version: 0,196 apis: RUNTIME_API_VERSIONS,196 apis: RUNTIME_API_VERSIONS,197 transaction_version: 1,197 transaction_version: 1,924 type Event = Event;924 type Event = Event;925 type WeightInfo = pallet_unique::weights::SubstrateWeight<Self>;925 type WeightInfo = pallet_unique::weights::SubstrateWeight<Self>;926 type CommonWeightInfo = CommonWeights<Self>;926 type CommonWeightInfo = CommonWeights<Self>;927 type RefungibleExtensionsWeightInfo = CommonWeights<Self>;927}928}928929929parameter_types! {930parameter_types! {runtime/tests/src/lib.rsdiffbeforeafterboth255 type Event = ();255 type Event = ();256 type WeightInfo = ();256 type WeightInfo = ();257 type CommonWeightInfo = CommonWeights<Self>;257 type CommonWeightInfo = CommonWeights<Self>;258 type RefungibleExtensionsWeightInfo = CommonWeights<Self>;258}259}259260260// Build genesis storage according to the mock runtime.261// Build genesis storage according to the mock runtime.runtime/tests/src/tests.rsdiffbeforeafterboth21 CreateReFungibleData, MAX_DECIMAL_POINTS, COLLECTION_ADMINS_LIMIT, TokenId,21 CreateReFungibleData, MAX_DECIMAL_POINTS, COLLECTION_ADMINS_LIMIT, TokenId,22 MAX_TOKEN_OWNERSHIP, CreateCollectionData, CollectionMode, AccessMode, CollectionPermissions,22 MAX_TOKEN_OWNERSHIP, CreateCollectionData, CollectionMode, AccessMode, CollectionPermissions,23 PropertyKeyPermission, PropertyPermission, Property, CollectionPropertiesVec,23 PropertyKeyPermission, PropertyPermission, Property, CollectionPropertiesVec,24 CollectionPropertiesPermissionsVec, TokenChild,24 CollectionPropertiesPermissionsVec,25};25};26use frame_support::{assert_noop, assert_ok, assert_err};26use frame_support::{assert_noop, assert_ok, assert_err};27use sp_std::convert::TryInto;27use sp_std::convert::TryInto;runtime/unique/src/lib.rsdiffbeforeafterboth190 spec_name: create_runtime_str!(RUNTIME_NAME),190 spec_name: create_runtime_str!(RUNTIME_NAME),191 impl_name: create_runtime_str!(RUNTIME_NAME),191 impl_name: create_runtime_str!(RUNTIME_NAME),192 authoring_version: 1,192 authoring_version: 1,193 spec_version: 924000,193 spec_version: 924010,194 impl_version: 0,194 impl_version: 0,195 apis: RUNTIME_API_VERSIONS,195 apis: RUNTIME_API_VERSIONS,196 transaction_version: 1,196 transaction_version: 1,913 type Event = Event;913 type Event = Event;914 type WeightInfo = pallet_unique::weights::SubstrateWeight<Self>;914 type WeightInfo = pallet_unique::weights::SubstrateWeight<Self>;915 type CommonWeightInfo = CommonWeights<Self>;915 type CommonWeightInfo = CommonWeights<Self>;916 type RefungibleExtensionsWeightInfo = CommonWeights<Self>;916}917}917918918parameter_types! {919parameter_types! {tests/package.jsondiffbeforeafterboth60 "testAddToContractAllowList": "mocha --timeout 9999999 -r ts-node/register ./**/addToContractAllowList.test.ts",60 "testAddToContractAllowList": "mocha --timeout 9999999 -r ts-node/register ./**/addToContractAllowList.test.ts",61 "testTransfer": "mocha --timeout 9999999 -r ts-node/register ./**/transfer.test.ts",61 "testTransfer": "mocha --timeout 9999999 -r ts-node/register ./**/transfer.test.ts",62 "testBurnItem": "mocha --timeout 9999999 -r ts-node/register ./**/burnItem.test.ts",62 "testBurnItem": "mocha --timeout 9999999 -r ts-node/register ./**/burnItem.test.ts",63 "testAdminTransferAndBurn": "mocha --timeout 9999999 -r ts-node/register ./**/adminTransferAndBurn.test.ts",63 "testSetMintPermission": "mocha --timeout 9999999 -r ts-node/register ./**/setMintPermission.test.ts",64 "testSetMintPermission": "mocha --timeout 9999999 -r ts-node/register ./**/setMintPermission.test.ts",64 "testCreditFeesToTreasury": "mocha --timeout 9999999 -r ts-node/register ./**/creditFeesToTreasury.test.ts",65 "testCreditFeesToTreasury": "mocha --timeout 9999999 -r ts-node/register ./**/creditFeesToTreasury.test.ts",65 "testContractSponsoring": "mocha --timeout 9999999 -r ts-node/register ./**/contractSponsoring.test.ts",66 "testContractSponsoring": "mocha --timeout 9999999 -r ts-node/register ./**/contractSponsoring.test.ts",78 "testEnableDisableTransfers": "mocha --timeout 9999999 -r ts-node/register ./**/enableDisableTransfer.test.ts",79 "testEnableDisableTransfers": "mocha --timeout 9999999 -r ts-node/register ./**/enableDisableTransfer.test.ts",79 "testLimits": "mocha --timeout 9999999 -r ts-node/register ./**/limits.test.ts",80 "testLimits": "mocha --timeout 9999999 -r ts-node/register ./**/limits.test.ts",80 "testEthCreateCollection": "mocha --timeout 9999999 -r ts-node/register ./**/eth/createCollection.test.ts",81 "testEthCreateCollection": "mocha --timeout 9999999 -r ts-node/register ./**/eth/createCollection.test.ts",82 "testRFT": "mocha --timeout 9999999 -r ts-node/register ./**/refungible.test.ts",81 "polkadot-types-fetch-metadata": "curl -H 'Content-Type: application/json' -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9933 > src/interfaces/metadata.json",83 "polkadot-types-fetch-metadata": "curl -H 'Content-Type: application/json' -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9933 > src/interfaces/metadata.json",82 "polkadot-types-from-defs": "ts-node ./node_modules/.bin/polkadot-types-from-defs --endpoint src/interfaces/metadata.json --input src/interfaces/ --package .",84 "polkadot-types-from-defs": "ts-node ./node_modules/.bin/polkadot-types-from-defs --endpoint src/interfaces/metadata.json --input src/interfaces/ --package .",83 "polkadot-types-from-chain": "ts-node ./node_modules/.bin/polkadot-types-from-chain --endpoint src/interfaces/metadata.json --output src/interfaces/ --package .",85 "polkadot-types-from-chain": "ts-node ./node_modules/.bin/polkadot-types-from-chain --endpoint src/interfaces/metadata.json --output src/interfaces/ --package .",tests/src/adminTransferAndBurn.test.tsdiffbeforeafterbothno changes
tests/src/burnItem.test.tsdiffbeforeafterboth155 await addCollectionAdminExpectSuccess(alice, collectionId, bob.address);155 await addCollectionAdminExpectSuccess(alice, collectionId, bob.address);156156157 await usingApi(async (api) => {157 await usingApi(async (api) => {158 const tx = api.tx.unique.burnItem(collectionId, tokenId, 1);158 const tx = api.tx.unique.burnFrom(collectionId, {Substrate: alice.address}, tokenId, 1);159 const events = await submitTransactionAsync(bob, tx);159 const events = await submitTransactionAsync(bob, tx);160 const result = getGenericResult(events);160 const result = getGenericResult(events);161161tests/src/createMultipleItemsEx.test.tsdiffbeforeafterboth161617import {expect} from 'chai';17import {expect} from 'chai';18import usingApi, {executeTransaction} from './substrate/substrate-api';18import usingApi, {executeTransaction} from './substrate/substrate-api';19import {addCollectionAdminExpectSuccess, createCollectionExpectSuccess, createCollectionWithPropsExpectSuccess} from './util/helpers';19import {addCollectionAdminExpectSuccess, createCollectionExpectSuccess, createCollectionWithPropsExpectSuccess, getBalance, getLastTokenId} from './util/helpers';202021describe('createMultipleItemsEx', () => {21describe('Integration Test: createMultipleItemsEx', () => {22 it('can initialize multiple NFT with different owners', async () => {22 it('can initialize multiple NFT with different owners', async () => {23 const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});23 const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});24 await usingApi(async (api, privateKeyWrapper) => {24 await usingApi(async (api, privateKeyWrapper) => {128 });128 });129 });129 });130130131 it('can initialize fungible with multiple owners', async () => {132 const collection = await createCollectionExpectSuccess({mode: {type: 'Fungible', decimalPoints: 0}});133 await usingApi(async (api, privateKeyWrapper) => {134 const alice = privateKeyWrapper('//Alice');135 const bob = privateKeyWrapper('//Bob');136137 const users = new Map();138 users.set(JSON.stringify({Substrate: alice.address}), 50);139 users.set(JSON.stringify({Substrate: bob.address}), 100);140141 await executeTransaction(api, alice, api.tx.unique.createMultipleItemsEx(collection, {142 Fungible: users,143 }));144145 expect(await getBalance(api, collection, alice.address, 0)).to.equal(50n);146 expect(await getBalance(api, collection, bob.address, 0)).to.equal(100n);147 });148 });149150 it('can initialize an RFT with multiple owners', async () => {151 const collection = await createCollectionExpectSuccess({mode: {type: 'ReFungible'}});152 await usingApi(async (api, privateKeyWrapper) => {153 const alice = privateKeyWrapper('//Alice');154 const bob = privateKeyWrapper('//Bob');155156 const users = new Map();157 users.set(JSON.stringify({Substrate: alice.address}), 1);158 users.set(JSON.stringify({Substrate: bob.address}), 2);159160 await executeTransaction(api, alice, api.tx.unique.createMultipleItemsEx(collection, {161 RefungibleMultipleOwners: {162 users: users,163 },164 }));165 166 const itemsListIndexAfter = await getLastTokenId(api, collection);167 expect(itemsListIndexAfter).to.be.equal(1);168169 expect(await getBalance(api, collection, alice.address, 1)).to.be.equal(1n);170 expect(await getBalance(api, collection, bob.address, 1)).to.be.equal(2n);171 });172 });173174 it('can initialize multiple RFTs with the same owner', async () => {175 const collection = await createCollectionExpectSuccess({mode: {type: 'ReFungible'}});176 await usingApi(async (api, privateKeyWrapper) => {177 const alice = privateKeyWrapper('//Alice');178179 const item1User = new Map();180 item1User.set(JSON.stringify({Substrate: alice.address}), 1);181182 const item2User = new Map();183 item2User.set(JSON.stringify({Substrate: alice.address}), 3);184185 await executeTransaction(api, alice, api.tx.unique.createMultipleItemsEx(collection, {186 RefungibleMultipleItems: [187 {users: item1User},188 {users: item2User},189 ],190 }));191 192 const itemsListIndexAfter = await getLastTokenId(api, collection);193 expect(itemsListIndexAfter).to.be.equal(2);194195 expect(await getBalance(api, collection, alice.address, 1)).to.be.equal(1n);196 expect(await getBalance(api, collection, alice.address, 2)).to.be.equal(3n);197 });198 });199});200201describe('Negative test: createMultipleItemsEx', () => {131 it('No editing rights', async () => {202 it('No editing rights', async () => {132 const collection = await createCollectionWithPropsExpectSuccess({properties: [{key: 'key1', value: 'v'}],203 const collection = await createCollectionWithPropsExpectSuccess({properties: [{key: 'key1', value: 'v'}],133 propPerm: [{key: 'key1', permission: {mutable: true, collectionAdmin: false, tokenOwner: false}}]});204 propPerm: [{key: 'key1', permission: {mutable: true, collectionAdmin: false, tokenOwner: false}}]});321 });392 });322 });393 });323});394});324'';325395tests/src/eth/api/CollectionHelpers.soldiffbeforeafterboth27 string memory name,27 string memory name,28 string memory description,28 string memory description,29 string memory tokenPrefix29 string memory tokenPrefix30 ) external view returns (address);30 ) external returns (address);313132 // Selector: isCollectionExist(address) c3de149432 // Selector: isCollectionExist(address) c3de149433 function isCollectionExist(address collectionAddress)33 function isCollectionExist(address collectionAddress)tests/src/eth/collectionHelpersAbi.jsondiffbeforeafterboth26 ],26 ],27 "name": "createNonfungibleCollection",27 "name": "createNonfungibleCollection",28 "outputs": [{ "internalType": "address", "name": "", "type": "address" }],28 "outputs": [{ "internalType": "address", "name": "", "type": "address" }],29 "stateMutability": "view",29 "stateMutability": "nonpayable",30 "type": "function"30 "type": "function"31 },31 },32 {32 {tests/src/interfaces/augment-api-consts.tsdiffbeforeafterboth2/* eslint-disable */2/* eslint-disable */334import type { ApiTypes } from '@polkadot/api-base/types';4import type { ApiTypes } from '@polkadot/api-base/types';5import type { Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';5import type { Option, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';6import type { Codec } from '@polkadot/types-codec/types';6import type { Codec } from '@polkadot/types-codec/types';7import type { Permill } from '@polkadot/types/interfaces/runtime';7import type { Permill } from '@polkadot/types/interfaces/runtime';8import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';8import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';9910declare module '@polkadot/api-base/types/consts' {10declare module '@polkadot/api-base/types/consts' {11 export interface AugmentedConsts<ApiType extends ApiTypes> {11 export interface AugmentedConsts<ApiType extends ApiTypes> {110 [key: string]: Codec;110 [key: string]: Codec;111 };111 };112 transactionPayment: {112 transactionPayment: {113 /**114 * The polynomial that is applied in order to derive fee from length.115 **/116 lengthToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;117 /**113 /**118 * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their114 * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their119 * `priority`115 * `priority`138 * transactions.134 * transactions.139 **/135 **/140 operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;136 operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;141 /**142 * The polynomial that is applied in order to derive fee from weight.143 **/144 weightToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;145 /**137 /**146 * Generic const138 * Generic const147 **/139 **/tests/src/interfaces/augment-api-errors.tsdiffbeforeafterboth428 * Refungible token can't nest other tokens428 * Refungible token can't nest other tokens429 **/429 **/430 RefungibleDisallowsNesting: AugmentedError<ApiType>;430 RefungibleDisallowsNesting: AugmentedError<ApiType>;431 /**432 * Refungible token can't be repartitioned by user who isn't owns all pieces433 **/434 RepartitionWhileNotOwningAllPieces: AugmentedError<ApiType>;431 /**435 /**432 * Setting item properties is not allowed436 * Setting item properties is not allowed433 **/437 **/444 rmrkCore: {448 rmrkCore: {445 CannotAcceptNonOwnedNft: AugmentedError<ApiType>;449 CannotAcceptNonOwnedNft: AugmentedError<ApiType>;446 CannotRejectNonOwnedNft: AugmentedError<ApiType>;450 CannotRejectNonOwnedNft: AugmentedError<ApiType>;451 CannotRejectNonPendingNft: AugmentedError<ApiType>;447 CannotSendToDescendentOrSelf: AugmentedError<ApiType>;452 CannotSendToDescendentOrSelf: AugmentedError<ApiType>;448 CollectionFullOrLocked: AugmentedError<ApiType>;453 CollectionFullOrLocked: AugmentedError<ApiType>;449 CollectionNotEmpty: AugmentedError<ApiType>;454 CollectionNotEmpty: AugmentedError<ApiType>;452 NftTypeEncodeError: AugmentedError<ApiType>;457 NftTypeEncodeError: AugmentedError<ApiType>;453 NoAvailableCollectionId: AugmentedError<ApiType>;458 NoAvailableCollectionId: AugmentedError<ApiType>;454 NoAvailableNftId: AugmentedError<ApiType>;459 NoAvailableNftId: AugmentedError<ApiType>;460 NoAvailableResourceId: AugmentedError<ApiType>;455 NonTransferable: AugmentedError<ApiType>;461 NonTransferable: AugmentedError<ApiType>;456 NoPermission: AugmentedError<ApiType>;462 NoPermission: AugmentedError<ApiType>;457 ResourceDoesntExist: AugmentedError<ApiType>;463 ResourceDoesntExist: AugmentedError<ApiType>;458 ResourceNotPending: AugmentedError<ApiType>;464 ResourceNotPending: AugmentedError<ApiType>;465 RmrkPropertyIsNotFound: AugmentedError<ApiType>;459 RmrkPropertyKeyIsTooLong: AugmentedError<ApiType>;466 RmrkPropertyKeyIsTooLong: AugmentedError<ApiType>;460 RmrkPropertyValueIsTooLong: AugmentedError<ApiType>;467 RmrkPropertyValueIsTooLong: AugmentedError<ApiType>;461 UnableToDecodeRmrkData: AugmentedError<ApiType>;468 UnableToDecodeRmrkData: AugmentedError<ApiType>;469 NeedsDefaultThemeFirst: AugmentedError<ApiType>;476 NeedsDefaultThemeFirst: AugmentedError<ApiType>;470 NoAvailableBaseId: AugmentedError<ApiType>;477 NoAvailableBaseId: AugmentedError<ApiType>;471 NoAvailablePartId: AugmentedError<ApiType>;478 NoAvailablePartId: AugmentedError<ApiType>;479 NoEquippableOnFixedPart: AugmentedError<ApiType>;480 PartDoesntExist: AugmentedError<ApiType>;472 PermissionError: AugmentedError<ApiType>;481 PermissionError: AugmentedError<ApiType>;473 /**482 /**474 * Generic error483 * Generic error598 * Length of items properties must be greater than 0.607 * Length of items properties must be greater than 0.599 **/608 **/600 EmptyArgument: AugmentedError<ApiType>;609 EmptyArgument: AugmentedError<ApiType>;610 /**611 * Repertition is only supported by refungible collection612 **/613 RepartitionCalledOnNonRefungibleCollection: AugmentedError<ApiType>;601 /**614 /**602 * Generic error615 * Generic error603 **/616 **/tests/src/interfaces/augment-api-events.tsdiffbeforeafterboth13 /**13 /**14 * A balance was set by root.14 * A balance was set by root.15 **/15 **/16 BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128, reserved: u128], { who: AccountId32, free: u128, reserved: u128 }>;16 BalanceSet: AugmentedEvent<ApiType, [AccountId32, u128, u128]>;17 /**17 /**18 * Some amount was deposited (e.g. for transaction fees).18 * Some amount was deposited (e.g. for transaction fees).19 **/19 **/20 Deposit: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;20 Deposit: AugmentedEvent<ApiType, [AccountId32, u128]>;21 /**21 /**22 * An account was removed whose balance was non-zero but below ExistentialDeposit,22 * An account was removed whose balance was non-zero but below ExistentialDeposit,23 * resulting in an outright loss.23 * resulting in an outright loss.24 **/24 **/25 DustLost: AugmentedEvent<ApiType, [account: AccountId32, amount: u128], { account: AccountId32, amount: u128 }>;25 DustLost: AugmentedEvent<ApiType, [AccountId32, u128]>;26 /**26 /**27 * An account was created with some free balance.27 * An account was created with some free balance.28 **/28 **/29 Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;29 Endowed: AugmentedEvent<ApiType, [AccountId32, u128]>;30 /**30 /**31 * Some balance was reserved (moved from free to reserved).31 * Some balance was reserved (moved from free to reserved).32 **/32 **/33 Reserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;33 Reserved: AugmentedEvent<ApiType, [AccountId32, u128]>;34 /**34 /**35 * Some balance was moved from the reserve of the first account to the second account.35 * Some balance was moved from the reserve of the first account to the second account.36 * Final argument indicates the destination balance type.36 * Final argument indicates the destination balance type.37 **/37 **/38 ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;38 ReserveRepatriated: AugmentedEvent<ApiType, [AccountId32, AccountId32, u128, FrameSupportTokensMiscBalanceStatus]>;39 /**39 /**40 * Some amount was removed from the account (e.g. for misbehavior).40 * Some amount was removed from the account (e.g. for misbehavior).41 **/41 **/42 Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;42 Slashed: AugmentedEvent<ApiType, [AccountId32, u128]>;43 /**43 /**44 * Transfer succeeded.44 * Transfer succeeded.45 **/45 **/46 Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;46 Transfer: AugmentedEvent<ApiType, [AccountId32, AccountId32, u128]>;47 /**47 /**48 * Some balance was unreserved (moved from reserved to free).48 * Some balance was unreserved (moved from reserved to free).49 **/49 **/50 Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;50 Unreserved: AugmentedEvent<ApiType, [AccountId32, u128]>;51 /**51 /**52 * Some amount was withdrawn from the account (e.g. for transaction fees).52 * Some amount was withdrawn from the account (e.g. for transaction fees).53 **/53 **/54 Withdraw: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;54 Withdraw: AugmentedEvent<ApiType, [AccountId32, u128]>;55 /**55 /**56 * Generic event56 * Generic event57 **/57 **/164 [key: string]: AugmentedEvent<ApiType>;164 [key: string]: AugmentedEvent<ApiType>;165 };165 };166 dmpQueue: {166 dmpQueue: {167 /**167 /**168 * Downward message executed with the given outcome.168 * Downward message executed with the given outcome.169 * \[ id, outcome \]169 **/170 **/171 ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, XcmV2TraitsOutcome]>;170 ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, XcmV2TraitsOutcome]>;172 /**171 /**173 * Downward message is invalid XCM.172 * Downward message is invalid XCM.174 * \[ id \]173 **/175 **/176 InvalidFormat: AugmentedEvent<ApiType, [U8aFixed]>;174 InvalidFormat: AugmentedEvent<ApiType, [U8aFixed]>;177 /**175 /**178 * Downward message is overweight and was placed in the overweight queue.176 * Downward message is overweight and was placed in the overweight queue.179 * \[ id, index, required \]177 **/180 **/181 OverweightEnqueued: AugmentedEvent<ApiType, [U8aFixed, u64, u64]>;178 OverweightEnqueued: AugmentedEvent<ApiType, [U8aFixed, u64, u64]>;182 /**179 /**183 * Downward message from the overweight queue was executed.180 * Downward message from the overweight queue was executed.184 * \[ index, used \]181 **/185 **/186 OverweightServiced: AugmentedEvent<ApiType, [u64, u64]>;182 OverweightServiced: AugmentedEvent<ApiType, [u64, u64]>;187 /**183 /**188 * Downward message is unsupported version of XCM.184 * Downward message is unsupported version of XCM.189 * \[ id \]185 **/190 **/191 UnsupportedVersion: AugmentedEvent<ApiType, [U8aFixed]>;186 UnsupportedVersion: AugmentedEvent<ApiType, [U8aFixed]>;192 /**187 /**193 * The weight limit for handling downward messages was reached.188 * The weight limit for handling downward messages was reached.194 * \[ id, remaining, required \]189 **/195 **/196 WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, u64, u64]>;190 WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, u64, u64]>;197 /**191 /**198 * Generic event192 * Generic event244 [key: string]: AugmentedEvent<ApiType>;238 [key: string]: AugmentedEvent<ApiType>;245 };239 };246 parachainSystem: {240 parachainSystem: {247 /**241 /**248 * Downward messages were processed using the given weight.242 * Downward messages were processed using the given weight.249 * \[ weight_used, result_mqc_head \]243 **/250 **/251 DownwardMessagesProcessed: AugmentedEvent<ApiType, [u64, H256]>;244 DownwardMessagesProcessed: AugmentedEvent<ApiType, [u64, H256]>;252 /**245 /**253 * Some downward messages have been received and will be processed.246 * Some downward messages have been received and will be processed.254 * \[ count \]247 **/255 **/256 DownwardMessagesReceived: AugmentedEvent<ApiType, [u32]>;248 DownwardMessagesReceived: AugmentedEvent<ApiType, [u32]>;257 /**249 /**258 * An upgrade has been authorized.250 * An upgrade has been authorized.398 [key: string]: AugmentedEvent<ApiType>;390 [key: string]: AugmentedEvent<ApiType>;399 };391 };400 rmrkCore: {392 rmrkCore: {401 CollectionCreated: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;393 CollectionCreated: AugmentedEvent<ApiType, [AccountId32, u32]>;402 CollectionDestroyed: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;394 CollectionDestroyed: AugmentedEvent<ApiType, [AccountId32, u32]>;403 CollectionLocked: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;395 CollectionLocked: AugmentedEvent<ApiType, [AccountId32, u32]>;404 IssuerChanged: AugmentedEvent<ApiType, [oldIssuer: AccountId32, newIssuer: AccountId32, collectionId: u32], { oldIssuer: AccountId32, newIssuer: AccountId32, collectionId: u32 }>;396 IssuerChanged: AugmentedEvent<ApiType, [AccountId32, AccountId32, u32]>;405 NFTAccepted: AugmentedEvent<ApiType, [sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32], { sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32 }>;397 NFTAccepted: AugmentedEvent<ApiType, [AccountId32, RmrkTraitsNftAccountIdOrCollectionNftTuple, u32, u32]>;406 NFTBurned: AugmentedEvent<ApiType, [owner: AccountId32, nftId: u32], { owner: AccountId32, nftId: u32 }>;398 NFTBurned: AugmentedEvent<ApiType, [AccountId32, u32]>;407 NftMinted: AugmentedEvent<ApiType, [owner: AccountId32, collectionId: u32, nftId: u32], { owner: AccountId32, collectionId: u32, nftId: u32 }>;399 NftMinted: AugmentedEvent<ApiType, [AccountId32, u32, u32]>;408 NFTRejected: AugmentedEvent<ApiType, [sender: AccountId32, collectionId: u32, nftId: u32], { sender: AccountId32, collectionId: u32, nftId: u32 }>;400 NFTRejected: AugmentedEvent<ApiType, [AccountId32, u32, u32]>;409 NFTSent: AugmentedEvent<ApiType, [sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32, approvalRequired: bool], { sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32, approvalRequired: bool }>;401 NFTSent: AugmentedEvent<ApiType, [AccountId32, RmrkTraitsNftAccountIdOrCollectionNftTuple, u32, u32, bool]>;410 PrioritySet: AugmentedEvent<ApiType, [collectionId: u32, nftId: u32], { collectionId: u32, nftId: u32 }>;402 PrioritySet: AugmentedEvent<ApiType, [u32, u32]>;411 PropertySet: AugmentedEvent<ApiType, [collectionId: u32, maybeNftId: Option<u32>, key: Bytes, value: Bytes], { collectionId: u32, maybeNftId: Option<u32>, key: Bytes, value: Bytes }>;403 PropertySet: AugmentedEvent<ApiType, [u32, Option<u32>, Bytes, Bytes]>;412 ResourceAccepted: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;404 ResourceAccepted: AugmentedEvent<ApiType, [u32, u32]>;413 ResourceAdded: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;405 ResourceAdded: AugmentedEvent<ApiType, [u32, u32]>;414 ResourceRemoval: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;406 ResourceRemoval: AugmentedEvent<ApiType, [u32, u32]>;415 ResourceRemovalAccepted: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;407 ResourceRemovalAccepted: AugmentedEvent<ApiType, [u32, u32]>;416 /**408 /**417 * Generic event409 * Generic event418 **/410 **/419 [key: string]: AugmentedEvent<ApiType>;411 [key: string]: AugmentedEvent<ApiType>;420 };412 };421 rmrkEquip: {413 rmrkEquip: {422 BaseCreated: AugmentedEvent<ApiType, [issuer: AccountId32, baseId: u32], { issuer: AccountId32, baseId: u32 }>;414 BaseCreated: AugmentedEvent<ApiType, [AccountId32, u32]>;415 EquippablesUpdated: AugmentedEvent<ApiType, [u32, u32]>;423 /**416 /**424 * Generic event417 * Generic event425 **/418 **/429 /**422 /**430 * The call for the provided hash was not found so the task has been aborted.423 * The call for the provided hash was not found so the task has been aborted.431 **/424 **/432 CallLookupFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, error: FrameSupportScheduleLookupError], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, error: FrameSupportScheduleLookupError }>;425 CallLookupFailed: AugmentedEvent<ApiType, [ITuple<[u32, u32]>, Option<U8aFixed>, FrameSupportScheduleLookupError]>;433 /**426 /**434 * Canceled some task.427 * Canceled some task.435 **/428 **/436 Canceled: AugmentedEvent<ApiType, [when: u32, index: u32], { when: u32, index: u32 }>;429 Canceled: AugmentedEvent<ApiType, [u32, u32]>;437 /**430 /**438 * Dispatched some task.431 * Dispatched some task.439 **/432 **/440 Dispatched: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, result: Result<Null, SpRuntimeDispatchError>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, result: Result<Null, SpRuntimeDispatchError> }>;433 Dispatched: AugmentedEvent<ApiType, [ITuple<[u32, u32]>, Option<U8aFixed>, Result<Null, SpRuntimeDispatchError>]>;441 /**434 /**442 * Scheduled some task.435 * Scheduled some task.443 **/436 **/444 Scheduled: AugmentedEvent<ApiType, [when: u32, index: u32], { when: u32, index: u32 }>;437 Scheduled: AugmentedEvent<ApiType, [u32, u32]>;445 /**438 /**446 * Generic event439 * Generic event447 **/440 **/461 /**454 /**462 * The \[sudoer\] just switched identity; the old key is supplied if one existed.455 * The \[sudoer\] just switched identity; the old key is supplied if one existed.463 **/456 **/464 KeyChanged: AugmentedEvent<ApiType, [oldSudoer: Option<AccountId32>], { oldSudoer: Option<AccountId32> }>;457 KeyChanged: AugmentedEvent<ApiType, [Option<AccountId32>]>;465 /**458 /**466 * A sudo just took place. \[result\]459 * A sudo just took place. \[result\]467 **/460 **/468 Sudid: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;461 Sudid: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;469 /**462 /**470 * A sudo just took place. \[result\]463 * A sudo just took place. \[result\]471 **/464 **/472 SudoAsDone: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;465 SudoAsDone: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;473 /**466 /**474 * Generic event467 * Generic event475 **/468 **/483 /**476 /**484 * An extrinsic failed.477 * An extrinsic failed.485 **/478 **/486 ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo }>;479 ExtrinsicFailed: AugmentedEvent<ApiType, [SpRuntimeDispatchError, FrameSupportWeightsDispatchInfo]>;487 /**480 /**488 * An extrinsic completed successfully.481 * An extrinsic completed successfully.489 **/482 **/490 ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchInfo: FrameSupportWeightsDispatchInfo }>;483 ExtrinsicSuccess: AugmentedEvent<ApiType, [FrameSupportWeightsDispatchInfo]>;491 /**484 /**492 * An account was reaped.485 * An account was reaped.493 **/486 **/494 KilledAccount: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;487 KilledAccount: AugmentedEvent<ApiType, [AccountId32]>;495 /**488 /**496 * A new account was created.489 * A new account was created.497 **/490 **/498 NewAccount: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;491 NewAccount: AugmentedEvent<ApiType, [AccountId32]>;499 /**492 /**500 * On on-chain remark happened.493 * On on-chain remark happened.501 **/494 **/502 Remarked: AugmentedEvent<ApiType, [sender: AccountId32, hash_: H256], { sender: AccountId32, hash_: H256 }>;495 Remarked: AugmentedEvent<ApiType, [AccountId32, H256]>;503 /**496 /**504 * Generic event497 * Generic event505 **/498 **/509 /**502 /**510 * Some funds have been allocated.503 * Some funds have been allocated.511 **/504 **/512 Awarded: AugmentedEvent<ApiType, [proposalIndex: u32, award: u128, account: AccountId32], { proposalIndex: u32, award: u128, account: AccountId32 }>;505 Awarded: AugmentedEvent<ApiType, [u32, u128, AccountId32]>;513 /**506 /**514 * Some of our funds have been burnt.507 * Some of our funds have been burnt.515 **/508 **/516 Burnt: AugmentedEvent<ApiType, [burntFunds: u128], { burntFunds: u128 }>;509 Burnt: AugmentedEvent<ApiType, [u128]>;517 /**510 /**518 * Some funds have been deposited.511 * Some funds have been deposited.519 **/512 **/520 Deposit: AugmentedEvent<ApiType, [value: u128], { value: u128 }>;513 Deposit: AugmentedEvent<ApiType, [u128]>;521 /**514 /**522 * New proposal.515 * New proposal.523 **/516 **/524 Proposed: AugmentedEvent<ApiType, [proposalIndex: u32], { proposalIndex: u32 }>;517 Proposed: AugmentedEvent<ApiType, [u32]>;525 /**518 /**526 * A proposal was rejected; funds were slashed.519 * A proposal was rejected; funds were slashed.527 **/520 **/528 Rejected: AugmentedEvent<ApiType, [proposalIndex: u32, slashed: u128], { proposalIndex: u32, slashed: u128 }>;521 Rejected: AugmentedEvent<ApiType, [u32, u128]>;529 /**522 /**530 * Spending has finished; this is the amount that rolls over until next spend.523 * Spending has finished; this is the amount that rolls over until next spend.531 **/524 **/532 Rollover: AugmentedEvent<ApiType, [rolloverBalance: u128], { rolloverBalance: u128 }>;525 Rollover: AugmentedEvent<ApiType, [u128]>;533 /**526 /**534 * We have ended a spend period and will now allocate funds.527 * We have ended a spend period and will now allocate funds.535 **/528 **/536 Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;529 Spending: AugmentedEvent<ApiType, [u128]>;537 /**530 /**538 * Generic event531 * Generic event539 **/532 **/636 /**629 /**637 * Claimed vesting.630 * Claimed vesting.638 **/631 **/639 Claimed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;632 Claimed: AugmentedEvent<ApiType, [AccountId32, u128]>;640 /**633 /**641 * Added new vesting schedule.634 * Added new vesting schedule.642 **/635 **/643 VestingScheduleAdded: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, vestingSchedule: OrmlVestingVestingSchedule], { from: AccountId32, to: AccountId32, vestingSchedule: OrmlVestingVestingSchedule }>;636 VestingScheduleAdded: AugmentedEvent<ApiType, [AccountId32, AccountId32, OrmlVestingVestingSchedule]>;644 /**637 /**645 * Updated vesting schedules.638 * Updated vesting schedules.646 **/639 **/647 VestingSchedulesUpdated: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;640 VestingSchedulesUpdated: AugmentedEvent<ApiType, [AccountId32]>;648 /**641 /**649 * Generic event642 * Generic event650 **/643 **/tests/src/interfaces/augment-api-query.tsdiffbeforeafterboth5import type { BTreeMap, Bytes, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';5import type { BTreeMap, Bytes, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';6import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';6import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';7import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';7import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';8import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumLog, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmContractHelpersSponsoringModeT, PalletNonfungibleItemData, PalletRefungibleItemData, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletUniqueSchedulerScheduledV3, PhantomTypeUpDataStructs, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpRuntimeDigest, SpTrieStorageProof, UpDataStructsCollection, UpDataStructsCollectionStats, UpDataStructsProperties, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsPropertyPermission, UpDataStructsTokenChild } from '@polkadot/types/lookup';8import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumLog, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmContractHelpersSponsoringModeT, PalletNonfungibleItemData, PalletRefungibleItemData, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletUniqueSchedulerScheduledV3, PhantomTypeUpDataStructs, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpRuntimeDigest, SpTrieStorageProof, UpDataStructsCollection, UpDataStructsCollectionStats, UpDataStructsProperties, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsTokenChild } from '@polkadot/types/lookup';9import type { Observable } from '@polkadot/types/types';9import type { Observable } from '@polkadot/types/types';101011declare module '@polkadot/api-base/types/storage' {11declare module '@polkadot/api-base/types/storage' {228 * Used to enumerate tokens owned by account228 * Used to enumerate tokens owned by account229 **/229 **/230 owned: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<bool>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32]>;230 owned: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<bool>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32]>;231 tokenAuxProperties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: UpDataStructsPropertyScope | 'None' | 'Rmrk' | number | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable<Option<Bytes>>, [u32, u32, UpDataStructsPropertyScope, Bytes]> & QueryableStorageEntry<ApiType, [u32, u32, UpDataStructsPropertyScope, Bytes]>;231 /**232 /**232 * Used to enumerate token's children233 * Used to enumerate token's children233 **/234 **/tests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth5import type { Bytes, Compact, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';5import type { Bytes, Compact, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';6import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';6import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';7import type { AccountId32, Call, H160, H256, MultiAddress, Perbill, Permill } from '@polkadot/types/interfaces/runtime';7import type { AccountId32, Call, H160, H256, MultiAddress, Perbill, Permill } from '@polkadot/types/interfaces/runtime';8import type { CumulusPrimitivesParachainInherentParachainInherentData, EthereumTransactionTransactionV2, FrameSupportScheduleMaybeHashed, OrmlVestingVestingSchedule, PalletEvmAccountBasicCrossAccountIdRepr, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsPartPartType, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCreateCollectionData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';8import type { CumulusPrimitivesParachainInherentParachainInherentData, EthereumTransactionTransactionV2, FrameSupportScheduleMaybeHashed, OrmlVestingVestingSchedule, PalletEvmAccountBasicCrossAccountIdRepr, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsPartEquippableList, RmrkTraitsPartPartType, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCreateCollectionData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';9910declare module '@polkadot/api-base/types/submittable' {10declare module '@polkadot/api-base/types/submittable' {11 export interface AugmentedSubmittables<ApiType extends ApiTypes> {11 export interface AugmentedSubmittables<ApiType extends ApiTypes> {361 /**361 /**362 * accept the addition of a new resource to an existing NFT362 * accept the addition of a new resource to an existing NFT363 **/363 **/364 acceptResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, rmrkResourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;364 acceptResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, resourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;365 /**365 /**366 * accept the removal of a resource of an existing NFT366 * accept the removal of a resource of an existing NFT367 **/367 **/368 acceptResourceRemoval: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, rmrkResourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;368 acceptResourceRemoval: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, resourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;369 /**369 /**370 * Create basic resource370 * Create basic resource371 **/371 **/415 * - `metadata`: Arbitrary data about an nft, e.g. IPFS hash415 * - `metadata`: Arbitrary data about an nft, e.g. IPFS hash416 * - `transferable`: Ability to transfer this NFT416 * - `transferable`: Ability to transfer this NFT417 **/417 **/418 mintNft: AugmentedSubmittable<(owner: AccountId32 | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, recipient: Option<AccountId32> | null | object | string | Uint8Array, royaltyAmount: Option<Permill> | null | object | string | Uint8Array, metadata: Bytes | string | Uint8Array, transferable: bool | boolean | Uint8Array, resources: Option<Vec<RmrkTraitsResourceResourceTypes>> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, Option<AccountId32>, Option<Permill>, Bytes, bool, Option<Vec<RmrkTraitsResourceResourceTypes>>]>;418 mintNft: AugmentedSubmittable<(owner: Option<AccountId32> | null | object | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, recipient: Option<AccountId32> | null | object | string | Uint8Array, royaltyAmount: Option<Permill> | null | object | string | Uint8Array, metadata: Bytes | string | Uint8Array, transferable: bool | boolean | Uint8Array, resources: Option<Vec<RmrkTraitsResourceResourceTypes>> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<AccountId32>, Option<Permill>, Bytes, bool, Option<Vec<RmrkTraitsResourceResourceTypes>>]>;419 /**419 /**420 * Rejects an NFT sent from another account to self or owned NFT420 * Rejects an NFT sent from another account to self or owned NFT421 * 421 * 465 * RmrkPartsLimit465 * RmrkPartsLimit466 **/466 **/467 createBase: AugmentedSubmittable<(baseType: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, parts: Vec<RmrkTraitsPartPartType> | (RmrkTraitsPartPartType | { FixedPart: any } | { SlotPart: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Bytes, Bytes, Vec<RmrkTraitsPartPartType>]>;467 createBase: AugmentedSubmittable<(baseType: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, parts: Vec<RmrkTraitsPartPartType> | (RmrkTraitsPartPartType | { FixedPart: any } | { SlotPart: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Bytes, Bytes, Vec<RmrkTraitsPartPartType>]>;468 equippable: AugmentedSubmittable<(baseId: u32 | AnyNumber | Uint8Array, slotId: u32 | AnyNumber | Uint8Array, equippables: RmrkTraitsPartEquippableList | { All: any } | { Empty: any } | { Custom: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, RmrkTraitsPartEquippableList]>;468 /**469 /**469 * Adds a Theme to a Base.470 * Adds a Theme to a Base.470 * Modeled after [themeadd interaction](https://github.com/rmrk-team/rmrk-spec/blob/master/standards/rmrk2.0.0/interactions/themeadd.md)471 * Modeled after [themeadd interaction](https://github.com/rmrk-team/rmrk-spec/blob/master/standards/rmrk2.0.0/interactions/themeadd.md)905 createMultipleItemsEx: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, data: UpDataStructsCreateItemExData | { NFT: any } | { Fungible: any } | { RefungibleMultipleItems: any } | { RefungibleMultipleOwners: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCreateItemExData]>;906 createMultipleItemsEx: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, data: UpDataStructsCreateItemExData | { NFT: any } | { Fungible: any } | { RefungibleMultipleItems: any } | { RefungibleMultipleOwners: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCreateItemExData]>;906 deleteCollectionProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<Bytes>]>;907 deleteCollectionProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<Bytes>]>;907 deleteTokenProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, u32, Vec<Bytes>]>;908 deleteTokenProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, u32, Vec<Bytes>]>;908 /**909 /**909 * **DANGEROUS**: Destroys collection and all NFTs within this collection. Users irrecoverably lose their assets and may lose real money.910 * Destroys collection if no tokens within this collection910 * 911 * 911 * # Permissions912 * # Permissions912 * 913 * 913 * * Collection Owner.914 * * Collection Owner.914 * 915 * 915 * # Arguments916 * # Arguments916 * 917 * 917 * * collection_id: collection to destroy.918 * * collection_id: collection to destroy.918 **/919 **/919 destroyCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;920 destroyCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;920 /**921 /**921 * Remove admin address of the Collection. An admin address can remove itself. List of admins may become empty, in which case only Collection Owner will be able to add an Admin.922 * Remove admin address of the Collection. An admin address can remove itself. List of admins may become empty, in which case only Collection Owner will be able to add an Admin.959 * * address.960 * * address.960 **/961 **/961 removeFromAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;962 removeFromAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;963 repartition: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, token: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;962 setCollectionLimits: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newLimit: UpDataStructsCollectionLimits | { accountTokenOwnershipLimit?: any; sponsoredDataSize?: any; sponsoredDataRateLimit?: any; tokenLimit?: any; sponsorTransferTimeout?: any; sponsorApproveTimeout?: any; ownerCanTransfer?: any; ownerCanDestroy?: any; transfersEnabled?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionLimits]>;964 setCollectionLimits: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newLimit: UpDataStructsCollectionLimits | { accountTokenOwnershipLimit?: any; sponsoredDataSize?: any; sponsoredDataRateLimit?: any; tokenLimit?: any; sponsorTransferTimeout?: any; sponsorApproveTimeout?: any; ownerCanTransfer?: any; ownerCanDestroy?: any; transfersEnabled?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionLimits]>;963 setCollectionPermissions: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newLimit: UpDataStructsCollectionPermissions | { access?: any; mintMode?: any; nesting?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionPermissions]>;965 setCollectionPermissions: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newLimit: UpDataStructsCollectionPermissions | { access?: any; mintMode?: any; nesting?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionPermissions]>;964 setCollectionProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, properties: Vec<UpDataStructsProperty> | (UpDataStructsProperty | { key?: any; value?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<UpDataStructsProperty>]>;966 setCollectionProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, properties: Vec<UpDataStructsProperty> | (UpDataStructsProperty | { key?: any; value?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<UpDataStructsProperty>]>;tests/src/interfaces/augment-types.tsdiffbeforeafterboth1// Auto-generated via `yarn polkadot-types-from-defs`, do not edit1// Auto-generated via `yarn polkadot-types-from-defs`, do not edit2/* eslint-disable */2/* eslint-disable */334import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletUniqueSchedulerCall, PalletUniqueSchedulerError, PalletUniqueSchedulerEvent, PalletUniqueSchedulerScheduledV3, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsRpcCollection, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, UpDataStructsTokenChild, UpDataStructsTokenData, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './default';4import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletUniqueSchedulerCall, PalletUniqueSchedulerError, PalletUniqueSchedulerEvent, PalletUniqueSchedulerScheduledV3, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsRpcCollection, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, UpDataStructsTokenChild, UpDataStructsTokenData, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './default';5import type { Data, StorageKey } from '@polkadot/types';5import type { Data, StorageKey } from '@polkadot/types';6import type { BitVec, Bool, Bytes, I128, I16, I256, I32, I64, I8, Json, Null, OptionBool, Raw, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types-codec';6import type { BitVec, Bool, Bytes, I128, I16, I256, I32, I64, I8, Json, Null, OptionBool, Raw, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types-codec';7import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets';7import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets';489 FrameSupportWeightsPerDispatchClassU64: FrameSupportWeightsPerDispatchClassU64;489 FrameSupportWeightsPerDispatchClassU64: FrameSupportWeightsPerDispatchClassU64;490 FrameSupportWeightsPerDispatchClassWeightsPerClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;490 FrameSupportWeightsPerDispatchClassWeightsPerClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;491 FrameSupportWeightsRuntimeDbWeight: FrameSupportWeightsRuntimeDbWeight;491 FrameSupportWeightsRuntimeDbWeight: FrameSupportWeightsRuntimeDbWeight;492 FrameSupportWeightsWeightToFeeCoefficient: FrameSupportWeightsWeightToFeeCoefficient;493 FrameSystemAccountInfo: FrameSystemAccountInfo;492 FrameSystemAccountInfo: FrameSystemAccountInfo;494 FrameSystemCall: FrameSystemCall;493 FrameSystemCall: FrameSystemCall;495 FrameSystemError: FrameSystemError;494 FrameSystemError: FrameSystemError;1226 UpDataStructsProperty: UpDataStructsProperty;1225 UpDataStructsProperty: UpDataStructsProperty;1227 UpDataStructsPropertyKeyPermission: UpDataStructsPropertyKeyPermission;1226 UpDataStructsPropertyKeyPermission: UpDataStructsPropertyKeyPermission;1228 UpDataStructsPropertyPermission: UpDataStructsPropertyPermission;1227 UpDataStructsPropertyPermission: UpDataStructsPropertyPermission;1228 UpDataStructsPropertyScope: UpDataStructsPropertyScope;1229 UpDataStructsRpcCollection: UpDataStructsRpcCollection;1229 UpDataStructsRpcCollection: UpDataStructsRpcCollection;1230 UpDataStructsSponsoringRateLimit: UpDataStructsSponsoringRateLimit;1230 UpDataStructsSponsoringRateLimit: UpDataStructsSponsoringRateLimit;1231 UpDataStructsSponsorshipState: UpDataStructsSponsorshipState;1231 UpDataStructsSponsorshipState: UpDataStructsSponsorshipState;tests/src/interfaces/default/types.tsdiffbeforeafterboth31/** @name CumulusPalletDmpQueueEvent */31/** @name CumulusPalletDmpQueueEvent */32export interface CumulusPalletDmpQueueEvent extends Enum {32export interface CumulusPalletDmpQueueEvent extends Enum {33 readonly isInvalidFormat: boolean;33 readonly isInvalidFormat: boolean;34 readonly asInvalidFormat: U8aFixed;34 readonly asInvalidFormat: {35 readonly messageId: U8aFixed;36 } & Struct;35 readonly isUnsupportedVersion: boolean;37 readonly isUnsupportedVersion: boolean;36 readonly asUnsupportedVersion: U8aFixed;38 readonly asUnsupportedVersion: {39 readonly messageId: U8aFixed;40 } & Struct;37 readonly isExecutedDownward: boolean;41 readonly isExecutedDownward: boolean;38 readonly asExecutedDownward: ITuple<[U8aFixed, XcmV2TraitsOutcome]>;42 readonly asExecutedDownward: {43 readonly messageId: U8aFixed;44 readonly outcome: XcmV2TraitsOutcome;45 } & Struct;39 readonly isWeightExhausted: boolean;46 readonly isWeightExhausted: boolean;40 readonly asWeightExhausted: ITuple<[U8aFixed, u64, u64]>;47 readonly asWeightExhausted: {48 readonly messageId: U8aFixed;49 readonly remainingWeight: u64;50 readonly requiredWeight: u64;51 } & Struct;41 readonly isOverweightEnqueued: boolean;52 readonly isOverweightEnqueued: boolean;42 readonly asOverweightEnqueued: ITuple<[U8aFixed, u64, u64]>;53 readonly asOverweightEnqueued: {54 readonly messageId: U8aFixed;55 readonly overweightIndex: u64;56 readonly requiredWeight: u64;57 } & Struct;43 readonly isOverweightServiced: boolean;58 readonly isOverweightServiced: boolean;44 readonly asOverweightServiced: ITuple<[u64, u64]>;59 readonly asOverweightServiced: {60 readonly overweightIndex: u64;61 readonly weightUsed: u64;62 } & Struct;45 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';63 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';46}64}476590export interface CumulusPalletParachainSystemEvent extends Enum {108export interface CumulusPalletParachainSystemEvent extends Enum {91 readonly isValidationFunctionStored: boolean;109 readonly isValidationFunctionStored: boolean;92 readonly isValidationFunctionApplied: boolean;110 readonly isValidationFunctionApplied: boolean;93 readonly asValidationFunctionApplied: u32;111 readonly asValidationFunctionApplied: {112 readonly relayChainBlockNum: u32;113 } & Struct;94 readonly isValidationFunctionDiscarded: boolean;114 readonly isValidationFunctionDiscarded: boolean;95 readonly isUpgradeAuthorized: boolean;115 readonly isUpgradeAuthorized: boolean;96 readonly asUpgradeAuthorized: H256;116 readonly asUpgradeAuthorized: {117 readonly codeHash: H256;118 } & Struct;97 readonly isDownwardMessagesReceived: boolean;119 readonly isDownwardMessagesReceived: boolean;98 readonly asDownwardMessagesReceived: u32;120 readonly asDownwardMessagesReceived: {121 readonly count: u32;122 } & Struct;99 readonly isDownwardMessagesProcessed: boolean;123 readonly isDownwardMessagesProcessed: boolean;100 readonly asDownwardMessagesProcessed: ITuple<[u64, H256]>;124 readonly asDownwardMessagesProcessed: {125 readonly weightUsed: u64;126 readonly dmqHead: H256;127 } & Struct;101 readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';128 readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';102}129}103130535 readonly write: u64;562 readonly write: u64;536}563}537538/** @name FrameSupportWeightsWeightToFeeCoefficient */539export interface FrameSupportWeightsWeightToFeeCoefficient extends Struct {540 readonly coeffInteger: u128;541 readonly coeffFrac: Perbill;542 readonly negative: bool;543 readonly degree: u8;544}545564546/** @name FrameSystemAccountInfo */565/** @name FrameSystemAccountInfo */547export interface FrameSystemAccountInfo extends Struct {566export interface FrameSystemAccountInfo extends Struct {1175export interface PalletRefungibleError extends Enum {1194export interface PalletRefungibleError extends Enum {1176 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;1195 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;1177 readonly isWrongRefungiblePieces: boolean;1196 readonly isWrongRefungiblePieces: boolean;1197 readonly isRepartitionWhileNotOwningAllPieces: boolean;1178 readonly isRefungibleDisallowsNesting: boolean;1198 readonly isRefungibleDisallowsNesting: boolean;1179 readonly isSettingPropertiesNotAllowed: boolean;1199 readonly isSettingPropertiesNotAllowed: boolean;1180 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';1200 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';1181}1201}118212021183/** @name PalletRefungibleItemData */1203/** @name PalletRefungibleItemData */1208 } & Struct;1228 } & Struct;1209 readonly isMintNft: boolean;1229 readonly isMintNft: boolean;1210 readonly asMintNft: {1230 readonly asMintNft: {1211 readonly owner: AccountId32;1231 readonly owner: Option<AccountId32>;1212 readonly collectionId: u32;1232 readonly collectionId: u32;1213 readonly recipient: Option<AccountId32>;1233 readonly recipient: Option<AccountId32>;1214 readonly royaltyAmount: Option<Permill>;1234 readonly royaltyAmount: Option<Permill>;1243 readonly asAcceptResource: {1263 readonly asAcceptResource: {1244 readonly rmrkCollectionId: u32;1264 readonly rmrkCollectionId: u32;1245 readonly rmrkNftId: u32;1265 readonly rmrkNftId: u32;1246 readonly rmrkResourceId: u32;1266 readonly resourceId: u32;1247 } & Struct;1267 } & Struct;1248 readonly isAcceptResourceRemoval: boolean;1268 readonly isAcceptResourceRemoval: boolean;1249 readonly asAcceptResourceRemoval: {1269 readonly asAcceptResourceRemoval: {1250 readonly rmrkCollectionId: u32;1270 readonly rmrkCollectionId: u32;1251 readonly rmrkNftId: u32;1271 readonly rmrkNftId: u32;1252 readonly rmrkResourceId: u32;1272 readonly resourceId: u32;1253 } & Struct;1273 } & Struct;1254 readonly isSetProperty: boolean;1274 readonly isSetProperty: boolean;1255 readonly asSetProperty: {1275 readonly asSetProperty: {1297 readonly isNftTypeEncodeError: boolean;1317 readonly isNftTypeEncodeError: boolean;1298 readonly isRmrkPropertyKeyIsTooLong: boolean;1318 readonly isRmrkPropertyKeyIsTooLong: boolean;1299 readonly isRmrkPropertyValueIsTooLong: boolean;1319 readonly isRmrkPropertyValueIsTooLong: boolean;1320 readonly isRmrkPropertyIsNotFound: boolean;1300 readonly isUnableToDecodeRmrkData: boolean;1321 readonly isUnableToDecodeRmrkData: boolean;1301 readonly isCollectionNotEmpty: boolean;1322 readonly isCollectionNotEmpty: boolean;1302 readonly isNoAvailableCollectionId: boolean;1323 readonly isNoAvailableCollectionId: boolean;1309 readonly isCannotSendToDescendentOrSelf: boolean;1330 readonly isCannotSendToDescendentOrSelf: boolean;1310 readonly isCannotAcceptNonOwnedNft: boolean;1331 readonly isCannotAcceptNonOwnedNft: boolean;1311 readonly isCannotRejectNonOwnedNft: boolean;1332 readonly isCannotRejectNonOwnedNft: boolean;1333 readonly isCannotRejectNonPendingNft: boolean;1312 readonly isResourceNotPending: boolean;1334 readonly isResourceNotPending: boolean;1335 readonly isNoAvailableResourceId: boolean;1313 readonly type: 'CorruptedCollectionType' | 'NftTypeEncodeError' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'ResourceNotPending';1336 readonly type: 'CorruptedCollectionType' | 'NftTypeEncodeError' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';1314}1337}131513381316/** @name PalletRmrkCoreEvent */1339/** @name PalletRmrkCoreEvent */1416 readonly baseId: u32;1439 readonly baseId: u32;1417 readonly theme: RmrkTraitsTheme;1440 readonly theme: RmrkTraitsTheme;1418 } & Struct;1441 } & Struct;1442 readonly isEquippable: boolean;1443 readonly asEquippable: {1444 readonly baseId: u32;1445 readonly slotId: u32;1446 readonly equippables: RmrkTraitsPartEquippableList;1447 } & Struct;1419 readonly type: 'CreateBase' | 'ThemeAdd';1448 readonly type: 'CreateBase' | 'ThemeAdd' | 'Equippable';1420}1449}142114501422/** @name PalletRmrkEquipError */1451/** @name PalletRmrkEquipError */1426 readonly isNoAvailablePartId: boolean;1455 readonly isNoAvailablePartId: boolean;1427 readonly isBaseDoesntExist: boolean;1456 readonly isBaseDoesntExist: boolean;1428 readonly isNeedsDefaultThemeFirst: boolean;1457 readonly isNeedsDefaultThemeFirst: boolean;1458 readonly isPartDoesntExist: boolean;1459 readonly isNoEquippableOnFixedPart: boolean;1429 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst';1460 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';1430}1461}143114621432/** @name PalletRmrkEquipEvent */1463/** @name PalletRmrkEquipEvent */1436 readonly issuer: AccountId32;1467 readonly issuer: AccountId32;1437 readonly baseId: u32;1468 readonly baseId: u32;1438 } & Struct;1469 } & Struct;1470 readonly isEquippablesUpdated: boolean;1471 readonly asEquippablesUpdated: {1472 readonly baseId: u32;1473 readonly slotId: u32;1474 } & Struct;1439 readonly type: 'BaseCreated';1475 readonly type: 'BaseCreated' | 'EquippablesUpdated';1440}1476}144114771442/** @name PalletStructureCall */1478/** @name PalletStructureCall */1750 readonly collectionId: u32;1786 readonly collectionId: u32;1751 readonly newLimit: UpDataStructsCollectionPermissions;1787 readonly newLimit: UpDataStructsCollectionPermissions;1752 } & Struct;1788 } & Struct;1789 readonly isRepartition: boolean;1790 readonly asRepartition: {1791 readonly collectionId: u32;1792 readonly token: u32;1793 readonly amount: u128;1794 } & Struct;1753 readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions';1795 readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition';1754}1796}175517971756/** @name PalletUniqueError */1798/** @name PalletUniqueError */1757export interface PalletUniqueError extends Enum {1799export interface PalletUniqueError extends Enum {1758 readonly isCollectionDecimalPointLimitExceeded: boolean;1800 readonly isCollectionDecimalPointLimitExceeded: boolean;1759 readonly isConfirmUnsetSponsorFail: boolean;1801 readonly isConfirmUnsetSponsorFail: boolean;1760 readonly isEmptyArgument: boolean;1802 readonly isEmptyArgument: boolean;1803 readonly isRepartitionCalledOnNonRefungibleCollection: boolean;1761 readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument';1804 readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';1762}1805}176318061764/** @name PalletUniqueRawEvent */1807/** @name PalletUniqueRawEvent */2431 readonly tokenOwner: bool;2474 readonly tokenOwner: bool;2432 readonly collectionAdmin: bool;2475 readonly collectionAdmin: bool;2433 readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;2476 readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;2434 readonly permissive: bool;2435}2477}243624782437/** @name UpDataStructsOwnerRestrictedSet */2479/** @name UpDataStructsOwnerRestrictedSet */2469 readonly tokenOwner: bool;2511 readonly tokenOwner: bool;2470}2512}25132514/** @name UpDataStructsPropertyScope */2515export interface UpDataStructsPropertyScope extends Enum {2516 readonly isNone: boolean;2517 readonly isRmrk: boolean;2518 readonly type: 'None' | 'Rmrk';2519}247125202472/** @name UpDataStructsRpcCollection */2521/** @name UpDataStructsRpcCollection */2473export interface UpDataStructsRpcCollection extends Struct {2522export interface UpDataStructsRpcCollection extends Struct {tests/src/interfaces/lookup.tsdiffbeforeafterboth114 CumulusPalletParachainSystemEvent: {114 CumulusPalletParachainSystemEvent: {115 _enum: {115 _enum: {116 ValidationFunctionStored: 'Null',116 ValidationFunctionStored: 'Null',117 ValidationFunctionApplied: 'u32',117 ValidationFunctionApplied: {118 relayChainBlockNum: 'u32',119 },118 ValidationFunctionDiscarded: 'Null',120 ValidationFunctionDiscarded: 'Null',119 UpgradeAuthorized: 'H256',121 UpgradeAuthorized: {122 codeHash: 'H256',123 },120 DownwardMessagesReceived: 'u32',124 DownwardMessagesReceived: {125 count: 'u32',126 },121 DownwardMessagesProcessed: '(u64,H256)'127 DownwardMessagesProcessed: {128 weightUsed: 'u64',129 dmqHead: 'H256'130 }122 }131 }123 },132 },124 /**133 /**275 PalletTransactionPaymentReleases: {284 PalletTransactionPaymentReleases: {276 _enum: ['V1Ancient', 'V2']285 _enum: ['V1Ancient', 'V2']277 },286 },278 /**279 * Lookup68: frame_support::weights::WeightToFeeCoefficient<Balance>280 **/281 FrameSupportWeightsWeightToFeeCoefficient: {282 coeffInteger: 'u128',283 coeffFrac: 'Perbill',284 negative: 'bool',285 degree: 'u8'286 },287 /**287 /**288 * Lookup70: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>288 * Lookup67: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>289 **/289 **/290 PalletTreasuryProposal: {290 PalletTreasuryProposal: {291 proposer: 'AccountId32',291 proposer: 'AccountId32',292 value: 'u128',292 value: 'u128',293 beneficiary: 'AccountId32',293 beneficiary: 'AccountId32',294 bond: 'u128'294 bond: 'u128'295 },295 },296 /**296 /**297 * Lookup73: pallet_treasury::pallet::Call<T, I>297 * Lookup70: pallet_treasury::pallet::Call<T, I>298 **/298 **/299 PalletTreasuryCall: {299 PalletTreasuryCall: {300 _enum: {300 _enum: {301 propose_spend: {301 propose_spend: {313 }313 }314 }314 }315 },315 },316 /**316 /**317 * Lookup75: pallet_treasury::pallet::Event<T, I>317 * Lookup72: pallet_treasury::pallet::Event<T, I>318 **/318 **/319 PalletTreasuryEvent: {319 PalletTreasuryEvent: {320 _enum: {320 _enum: {321 Proposed: {321 Proposed: {344 }344 }345 }345 }346 },346 },347 /**347 /**348 * Lookup78: frame_support::PalletId348 * Lookup75: frame_support::PalletId349 **/349 **/350 FrameSupportPalletId: '[u8;8]',350 FrameSupportPalletId: '[u8;8]',351 /**351 /**352 * Lookup79: pallet_treasury::pallet::Error<T, I>352 * Lookup76: pallet_treasury::pallet::Error<T, I>353 **/353 **/354 PalletTreasuryError: {354 PalletTreasuryError: {355 _enum: ['InsufficientProposersBalance', 'InvalidIndex', 'TooManyApprovals', 'ProposalNotApproved']355 _enum: ['InsufficientProposersBalance', 'InvalidIndex', 'TooManyApprovals', 'ProposalNotApproved']356 },356 },357 /**357 /**358 * Lookup80: pallet_sudo::pallet::Call<T>358 * Lookup77: pallet_sudo::pallet::Call<T>359 **/359 **/360 PalletSudoCall: {360 PalletSudoCall: {361 _enum: {361 _enum: {362 sudo: {362 sudo: {378 }378 }379 }379 }380 },380 },381 /**381 /**382 * Lookup82: frame_system::pallet::Call<T>382 * Lookup79: frame_system::pallet::Call<T>383 **/383 **/384 FrameSystemCall: {384 FrameSystemCall: {385 _enum: {385 _enum: {386 fill_block: {386 fill_block: {416 }416 }417 }417 }418 },418 },419 /**419 /**420 * Lookup85: orml_vesting::module::Call<T>420 * Lookup83: orml_vesting::module::Call<T>421 **/421 **/422 OrmlVestingModuleCall: {422 OrmlVestingModuleCall: {423 _enum: {423 _enum: {424 claim: 'Null',424 claim: 'Null',435 }435 }436 }436 }437 },437 },438 /**438 /**439 * Lookup86: orml_vesting::VestingSchedule<BlockNumber, Balance>439 * Lookup84: orml_vesting::VestingSchedule<BlockNumber, Balance>440 **/440 **/441 OrmlVestingVestingSchedule: {441 OrmlVestingVestingSchedule: {442 start: 'u32',442 start: 'u32',443 period: 'u32',443 period: 'u32',444 periodCount: 'u32',444 periodCount: 'u32',445 perPeriod: 'Compact<u128>'445 perPeriod: 'Compact<u128>'446 },446 },447 /**447 /**448 * Lookup88: cumulus_pallet_xcmp_queue::pallet::Call<T>448 * Lookup86: cumulus_pallet_xcmp_queue::pallet::Call<T>449 **/449 **/450 CumulusPalletXcmpQueueCall: {450 CumulusPalletXcmpQueueCall: {451 _enum: {451 _enum: {452 service_overweight: {452 service_overweight: {493 }493 }494 }494 }495 },495 },496 /**496 /**497 * Lookup89: pallet_xcm::pallet::Call<T>497 * Lookup87: pallet_xcm::pallet::Call<T>498 **/498 **/499 PalletXcmCall: {499 PalletXcmCall: {500 _enum: {500 _enum: {501 send: {501 send: {547 }547 }548 }548 }549 },549 },550 /**550 /**551 * Lookup90: xcm::VersionedMultiLocation551 * Lookup88: xcm::VersionedMultiLocation552 **/552 **/553 XcmVersionedMultiLocation: {553 XcmVersionedMultiLocation: {554 _enum: {554 _enum: {555 V0: 'XcmV0MultiLocation',555 V0: 'XcmV0MultiLocation',556 V1: 'XcmV1MultiLocation'556 V1: 'XcmV1MultiLocation'557 }557 }558 },558 },559 /**559 /**560 * Lookup91: xcm::v0::multi_location::MultiLocation560 * Lookup89: xcm::v0::multi_location::MultiLocation561 **/561 **/562 XcmV0MultiLocation: {562 XcmV0MultiLocation: {563 _enum: {563 _enum: {564 Null: 'Null',564 Null: 'Null',572 X8: '(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)'572 X8: '(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)'573 }573 }574 },574 },575 /**575 /**576 * Lookup92: xcm::v0::junction::Junction576 * Lookup90: xcm::v0::junction::Junction577 **/577 **/578 XcmV0Junction: {578 XcmV0Junction: {579 _enum: {579 _enum: {580 Parent: 'Null',580 Parent: 'Null',601 }601 }602 }602 }603 },603 },604 /**604 /**605 * Lookup93: xcm::v0::junction::NetworkId605 * Lookup91: xcm::v0::junction::NetworkId606 **/606 **/607 XcmV0JunctionNetworkId: {607 XcmV0JunctionNetworkId: {608 _enum: {608 _enum: {609 Any: 'Null',609 Any: 'Null',612 Kusama: 'Null'612 Kusama: 'Null'613 }613 }614 },614 },615 /**615 /**616 * Lookup94: xcm::v0::junction::BodyId616 * Lookup92: xcm::v0::junction::BodyId617 **/617 **/618 XcmV0JunctionBodyId: {618 XcmV0JunctionBodyId: {619 _enum: {619 _enum: {620 Unit: 'Null',620 Unit: 'Null',626 Judicial: 'Null'626 Judicial: 'Null'627 }627 }628 },628 },629 /**629 /**630 * Lookup95: xcm::v0::junction::BodyPart630 * Lookup93: xcm::v0::junction::BodyPart631 **/631 **/632 XcmV0JunctionBodyPart: {632 XcmV0JunctionBodyPart: {633 _enum: {633 _enum: {634 Voice: 'Null',634 Voice: 'Null',649 }649 }650 }650 }651 },651 },652 /**652 /**653 * Lookup96: xcm::v1::multilocation::MultiLocation653 * Lookup94: xcm::v1::multilocation::MultiLocation654 **/654 **/655 XcmV1MultiLocation: {655 XcmV1MultiLocation: {656 parents: 'u8',656 parents: 'u8',657 interior: 'XcmV1MultilocationJunctions'657 interior: 'XcmV1MultilocationJunctions'658 },658 },659 /**659 /**660 * Lookup97: xcm::v1::multilocation::Junctions660 * Lookup95: xcm::v1::multilocation::Junctions661 **/661 **/662 XcmV1MultilocationJunctions: {662 XcmV1MultilocationJunctions: {663 _enum: {663 _enum: {664 Here: 'Null',664 Here: 'Null',672 X8: '(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)'672 X8: '(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)'673 }673 }674 },674 },675 /**675 /**676 * Lookup98: xcm::v1::junction::Junction676 * Lookup96: xcm::v1::junction::Junction677 **/677 **/678 XcmV1Junction: {678 XcmV1Junction: {679 _enum: {679 _enum: {680 Parachain: 'Compact<u32>',680 Parachain: 'Compact<u32>',700 }700 }701 }701 }702 },702 },703 /**703 /**704 * Lookup99: xcm::VersionedXcm<Call>704 * Lookup97: xcm::VersionedXcm<Call>705 **/705 **/706 XcmVersionedXcm: {706 XcmVersionedXcm: {707 _enum: {707 _enum: {708 V0: 'XcmV0Xcm',708 V0: 'XcmV0Xcm',709 V1: 'XcmV1Xcm',709 V1: 'XcmV1Xcm',710 V2: 'XcmV2Xcm'710 V2: 'XcmV2Xcm'711 }711 }712 },712 },713 /**713 /**714 * Lookup100: xcm::v0::Xcm<Call>714 * Lookup98: xcm::v0::Xcm<Call>715 **/715 **/716 XcmV0Xcm: {716 XcmV0Xcm: {717 _enum: {717 _enum: {718 WithdrawAsset: {718 WithdrawAsset: {764 }764 }765 }765 }766 },766 },767 /**767 /**768 * Lookup102: xcm::v0::multi_asset::MultiAsset768 * Lookup100: xcm::v0::multi_asset::MultiAsset769 **/769 **/770 XcmV0MultiAsset: {770 XcmV0MultiAsset: {771 _enum: {771 _enum: {772 None: 'Null',772 None: 'Null',803 }803 }804 }804 }805 },805 },806 /**806 /**807 * Lookup103: xcm::v1::multiasset::AssetInstance807 * Lookup101: xcm::v1::multiasset::AssetInstance808 **/808 **/809 XcmV1MultiassetAssetInstance: {809 XcmV1MultiassetAssetInstance: {810 _enum: {810 _enum: {811 Undefined: 'Null',811 Undefined: 'Null',817 Blob: 'Bytes'817 Blob: 'Bytes'818 }818 }819 },819 },820 /**820 /**821 * Lookup106: xcm::v0::order::Order<Call>821 * Lookup104: xcm::v0::order::Order<Call>822 **/822 **/823 XcmV0Order: {823 XcmV0Order: {824 _enum: {824 _enum: {825 Null: 'Null',825 Null: 'Null',860 }860 }861 }861 }862 },862 },863 /**863 /**864 * Lookup108: xcm::v0::Response864 * Lookup106: xcm::v0::Response865 **/865 **/866 XcmV0Response: {866 XcmV0Response: {867 _enum: {867 _enum: {868 Assets: 'Vec<XcmV0MultiAsset>'868 Assets: 'Vec<XcmV0MultiAsset>'869 }869 }870 },870 },871 /**871 /**872 * Lookup109: xcm::v0::OriginKind872 * Lookup107: xcm::v0::OriginKind873 **/873 **/874 XcmV0OriginKind: {874 XcmV0OriginKind: {875 _enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']875 _enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']876 },876 },877 /**877 /**878 * Lookup110: xcm::double_encoded::DoubleEncoded<T>878 * Lookup108: xcm::double_encoded::DoubleEncoded<T>879 **/879 **/880 XcmDoubleEncoded: {880 XcmDoubleEncoded: {881 encoded: 'Bytes'881 encoded: 'Bytes'882 },882 },883 /**883 /**884 * Lookup111: xcm::v1::Xcm<Call>884 * Lookup109: xcm::v1::Xcm<Call>885 **/885 **/886 XcmV1Xcm: {886 XcmV1Xcm: {887 _enum: {887 _enum: {888 WithdrawAsset: {888 WithdrawAsset: {939 UnsubscribeVersion: 'Null'939 UnsubscribeVersion: 'Null'940 }940 }941 },941 },942 /**942 /**943 * Lookup112: xcm::v1::multiasset::MultiAssets943 * Lookup110: xcm::v1::multiasset::MultiAssets944 **/944 **/945 XcmV1MultiassetMultiAssets: 'Vec<XcmV1MultiAsset>',945 XcmV1MultiassetMultiAssets: 'Vec<XcmV1MultiAsset>',946 /**946 /**947 * Lookup114: xcm::v1::multiasset::MultiAsset947 * Lookup112: xcm::v1::multiasset::MultiAsset948 **/948 **/949 XcmV1MultiAsset: {949 XcmV1MultiAsset: {950 id: 'XcmV1MultiassetAssetId',950 id: 'XcmV1MultiassetAssetId',951 fun: 'XcmV1MultiassetFungibility'951 fun: 'XcmV1MultiassetFungibility'952 },952 },953 /**953 /**954 * Lookup115: xcm::v1::multiasset::AssetId954 * Lookup113: xcm::v1::multiasset::AssetId955 **/955 **/956 XcmV1MultiassetAssetId: {956 XcmV1MultiassetAssetId: {957 _enum: {957 _enum: {958 Concrete: 'XcmV1MultiLocation',958 Concrete: 'XcmV1MultiLocation',959 Abstract: 'Bytes'959 Abstract: 'Bytes'960 }960 }961 },961 },962 /**962 /**963 * Lookup116: xcm::v1::multiasset::Fungibility963 * Lookup114: xcm::v1::multiasset::Fungibility964 **/964 **/965 XcmV1MultiassetFungibility: {965 XcmV1MultiassetFungibility: {966 _enum: {966 _enum: {967 Fungible: 'Compact<u128>',967 Fungible: 'Compact<u128>',968 NonFungible: 'XcmV1MultiassetAssetInstance'968 NonFungible: 'XcmV1MultiassetAssetInstance'969 }969 }970 },970 },971 /**971 /**972 * Lookup118: xcm::v1::order::Order<Call>972 * Lookup116: xcm::v1::order::Order<Call>973 **/973 **/974 XcmV1Order: {974 XcmV1Order: {975 _enum: {975 _enum: {976 Noop: 'Null',976 Noop: 'Null',1013 }1013 }1014 }1014 }1015 },1015 },1016 /**1016 /**1017 * Lookup119: xcm::v1::multiasset::MultiAssetFilter1017 * Lookup117: xcm::v1::multiasset::MultiAssetFilter1018 **/1018 **/1019 XcmV1MultiassetMultiAssetFilter: {1019 XcmV1MultiassetMultiAssetFilter: {1020 _enum: {1020 _enum: {1021 Definite: 'XcmV1MultiassetMultiAssets',1021 Definite: 'XcmV1MultiassetMultiAssets',1022 Wild: 'XcmV1MultiassetWildMultiAsset'1022 Wild: 'XcmV1MultiassetWildMultiAsset'1023 }1023 }1024 },1024 },1025 /**1025 /**1026 * Lookup120: xcm::v1::multiasset::WildMultiAsset1026 * Lookup118: xcm::v1::multiasset::WildMultiAsset1027 **/1027 **/1028 XcmV1MultiassetWildMultiAsset: {1028 XcmV1MultiassetWildMultiAsset: {1029 _enum: {1029 _enum: {1030 All: 'Null',1030 All: 'Null',1034 }1034 }1035 }1035 }1036 },1036 },1037 /**1037 /**1038 * Lookup121: xcm::v1::multiasset::WildFungibility1038 * Lookup119: xcm::v1::multiasset::WildFungibility1039 **/1039 **/1040 XcmV1MultiassetWildFungibility: {1040 XcmV1MultiassetWildFungibility: {1041 _enum: ['Fungible', 'NonFungible']1041 _enum: ['Fungible', 'NonFungible']1042 },1042 },1043 /**1043 /**1044 * Lookup123: xcm::v1::Response1044 * Lookup121: xcm::v1::Response1045 **/1045 **/1046 XcmV1Response: {1046 XcmV1Response: {1047 _enum: {1047 _enum: {1048 Assets: 'XcmV1MultiassetMultiAssets',1048 Assets: 'XcmV1MultiassetMultiAssets',1049 Version: 'u32'1049 Version: 'u32'1050 }1050 }1051 },1051 },1052 /**1052 /**1053 * Lookup124: xcm::v2::Xcm<Call>1053 * Lookup122: xcm::v2::Xcm<Call>1054 **/1054 **/1055 XcmV2Xcm: 'Vec<XcmV2Instruction>',1055 XcmV2Xcm: 'Vec<XcmV2Instruction>',1056 /**1056 /**1057 * Lookup126: xcm::v2::Instruction<Call>1057 * Lookup124: xcm::v2::Instruction<Call>1058 **/1058 **/1059 XcmV2Instruction: {1059 XcmV2Instruction: {1060 _enum: {1060 _enum: {1061 WithdrawAsset: 'XcmV1MultiassetMultiAssets',1061 WithdrawAsset: 'XcmV1MultiassetMultiAssets',1151 UnsubscribeVersion: 'Null'1151 UnsubscribeVersion: 'Null'1152 }1152 }1153 },1153 },1154 /**1154 /**1155 * Lookup127: xcm::v2::Response1155 * Lookup125: xcm::v2::Response1156 **/1156 **/1157 XcmV2Response: {1157 XcmV2Response: {1158 _enum: {1158 _enum: {1159 Null: 'Null',1159 Null: 'Null',1162 Version: 'u32'1162 Version: 'u32'1163 }1163 }1164 },1164 },1165 /**1165 /**1166 * Lookup130: xcm::v2::traits::Error1166 * Lookup128: xcm::v2::traits::Error1167 **/1167 **/1168 XcmV2TraitsError: {1168 XcmV2TraitsError: {1169 _enum: {1169 _enum: {1170 Overflow: 'Null',1170 Overflow: 'Null',1195 WeightNotComputable: 'Null'1195 WeightNotComputable: 'Null'1196 }1196 }1197 },1197 },1198 /**1198 /**1199 * Lookup131: xcm::v2::WeightLimit1199 * Lookup129: xcm::v2::WeightLimit1200 **/1200 **/1201 XcmV2WeightLimit: {1201 XcmV2WeightLimit: {1202 _enum: {1202 _enum: {1203 Unlimited: 'Null',1203 Unlimited: 'Null',1204 Limited: 'Compact<u64>'1204 Limited: 'Compact<u64>'1205 }1205 }1206 },1206 },1207 /**1207 /**1208 * Lookup132: xcm::VersionedMultiAssets1208 * Lookup130: xcm::VersionedMultiAssets1209 **/1209 **/1210 XcmVersionedMultiAssets: {1210 XcmVersionedMultiAssets: {1211 _enum: {1211 _enum: {1212 V0: 'Vec<XcmV0MultiAsset>',1212 V0: 'Vec<XcmV0MultiAsset>',1213 V1: 'XcmV1MultiassetMultiAssets'1213 V1: 'XcmV1MultiassetMultiAssets'1214 }1214 }1215 },1215 },1216 /**1216 /**1217 * Lookup147: cumulus_pallet_xcm::pallet::Call<T>1217 * Lookup145: cumulus_pallet_xcm::pallet::Call<T>1218 **/1218 **/1219 CumulusPalletXcmCall: 'Null',1219 CumulusPalletXcmCall: 'Null',1220 /**1220 /**1221 * Lookup148: cumulus_pallet_dmp_queue::pallet::Call<T>1221 * Lookup146: cumulus_pallet_dmp_queue::pallet::Call<T>1222 **/1222 **/1223 CumulusPalletDmpQueueCall: {1223 CumulusPalletDmpQueueCall: {1224 _enum: {1224 _enum: {1225 service_overweight: {1225 service_overweight: {1228 }1228 }1229 }1229 }1230 },1230 },1231 /**1231 /**1232 * Lookup149: pallet_inflation::pallet::Call<T>1232 * Lookup147: pallet_inflation::pallet::Call<T>1233 **/1233 **/1234 PalletInflationCall: {1234 PalletInflationCall: {1235 _enum: {1235 _enum: {1236 start_inflation: {1236 start_inflation: {1237 inflationStartRelayBlock: 'u32'1237 inflationStartRelayBlock: 'u32'1238 }1238 }1239 }1239 }1240 },1240 },1241 /**1241 /**1242 * Lookup150: pallet_unique::Call<T>1242 * Lookup148: pallet_unique::Call<T>1243 **/1243 **/1244 PalletUniqueCall: {1244 PalletUniqueCall: {1245 _enum: {1245 _enum: {1246 create_collection: {1246 create_collection: {1362 set_collection_permissions: {1362 set_collection_permissions: {1363 collectionId: 'u32',1363 collectionId: 'u32',1364 newLimit: 'UpDataStructsCollectionPermissions'1364 newLimit: 'UpDataStructsCollectionPermissions',1365 }1365 },1366 repartition: {1367 collectionId: 'u32',1368 token: 'u32',1369 amount: 'u128'1370 }1366 }1371 }1367 },1372 },1368 /**1373 /**1369 * Lookup156: up_data_structs::CollectionMode1374 * Lookup154: up_data_structs::CollectionMode1370 **/1375 **/1371 UpDataStructsCollectionMode: {1376 UpDataStructsCollectionMode: {1372 _enum: {1377 _enum: {1373 NFT: 'Null',1378 NFT: 'Null',1374 Fungible: 'u8',1379 Fungible: 'u8',1375 ReFungible: 'Null'1380 ReFungible: 'Null'1376 }1381 }1377 },1382 },1378 /**1383 /**1379 * Lookup157: up_data_structs::CreateCollectionData<sp_core::crypto::AccountId32>1384 * Lookup155: up_data_structs::CreateCollectionData<sp_core::crypto::AccountId32>1380 **/1385 **/1381 UpDataStructsCreateCollectionData: {1386 UpDataStructsCreateCollectionData: {1382 mode: 'UpDataStructsCollectionMode',1387 mode: 'UpDataStructsCollectionMode',1383 access: 'Option<UpDataStructsAccessMode>',1388 access: 'Option<UpDataStructsAccessMode>',1390 tokenPropertyPermissions: 'Vec<UpDataStructsPropertyKeyPermission>',1395 tokenPropertyPermissions: 'Vec<UpDataStructsPropertyKeyPermission>',1391 properties: 'Vec<UpDataStructsProperty>'1396 properties: 'Vec<UpDataStructsProperty>'1392 },1397 },1393 /**1398 /**1394 * Lookup159: up_data_structs::AccessMode1399 * Lookup157: up_data_structs::AccessMode1395 **/1400 **/1396 UpDataStructsAccessMode: {1401 UpDataStructsAccessMode: {1397 _enum: ['Normal', 'AllowList']1402 _enum: ['Normal', 'AllowList']1398 },1403 },1399 /**1404 /**1400 * Lookup162: up_data_structs::CollectionLimits1405 * Lookup160: up_data_structs::CollectionLimits1401 **/1406 **/1402 UpDataStructsCollectionLimits: {1407 UpDataStructsCollectionLimits: {1403 accountTokenOwnershipLimit: 'Option<u32>',1408 accountTokenOwnershipLimit: 'Option<u32>',1404 sponsoredDataSize: 'Option<u32>',1409 sponsoredDataSize: 'Option<u32>',1410 ownerCanDestroy: 'Option<bool>',1415 ownerCanDestroy: 'Option<bool>',1411 transfersEnabled: 'Option<bool>'1416 transfersEnabled: 'Option<bool>'1412 },1417 },1413 /**1418 /**1414 * Lookup164: up_data_structs::SponsoringRateLimit1419 * Lookup162: up_data_structs::SponsoringRateLimit1415 **/1420 **/1416 UpDataStructsSponsoringRateLimit: {1421 UpDataStructsSponsoringRateLimit: {1417 _enum: {1422 _enum: {1418 SponsoringDisabled: 'Null',1423 SponsoringDisabled: 'Null',1419 Blocks: 'u32'1424 Blocks: 'u32'1420 }1425 }1421 },1426 },1422 /**1427 /**1423 * Lookup167: up_data_structs::CollectionPermissions1428 * Lookup165: up_data_structs::CollectionPermissions1424 **/1429 **/1425 UpDataStructsCollectionPermissions: {1430 UpDataStructsCollectionPermissions: {1426 access: 'Option<UpDataStructsAccessMode>',1431 access: 'Option<UpDataStructsAccessMode>',1427 mintMode: 'Option<bool>',1432 mintMode: 'Option<bool>',1428 nesting: 'Option<UpDataStructsNestingPermissions>'1433 nesting: 'Option<UpDataStructsNestingPermissions>'1429 },1434 },1430 /**1435 /**1431 * Lookup169: up_data_structs::NestingPermissions1436 * Lookup167: up_data_structs::NestingPermissions1432 **/1437 **/1433 UpDataStructsNestingPermissions: {1438 UpDataStructsNestingPermissions: {1434 tokenOwner: 'bool',1439 tokenOwner: 'bool',1435 collectionAdmin: 'bool',1440 collectionAdmin: 'bool',1436 restricted: 'Option<UpDataStructsOwnerRestrictedSet>',1441 restricted: 'Option<UpDataStructsOwnerRestrictedSet>'1437 permissive: 'bool'1438 },1442 },1439 /**1443 /**1440 * Lookup171: up_data_structs::OwnerRestrictedSet1444 * Lookup169: up_data_structs::OwnerRestrictedSet1441 **/1445 **/1442 UpDataStructsOwnerRestrictedSet: 'BTreeSet<u32>',1446 UpDataStructsOwnerRestrictedSet: 'BTreeSet<u32>',1443 /**1447 /**1444 * Lookup177: up_data_structs::PropertyKeyPermission1448 * Lookup175: up_data_structs::PropertyKeyPermission1445 **/1449 **/1446 UpDataStructsPropertyKeyPermission: {1450 UpDataStructsPropertyKeyPermission: {1447 key: 'Bytes',1451 key: 'Bytes',1448 permission: 'UpDataStructsPropertyPermission'1452 permission: 'UpDataStructsPropertyPermission'1449 },1453 },1450 /**1454 /**1451 * Lookup179: up_data_structs::PropertyPermission1455 * Lookup177: up_data_structs::PropertyPermission1452 **/1456 **/1453 UpDataStructsPropertyPermission: {1457 UpDataStructsPropertyPermission: {1454 mutable: 'bool',1458 mutable: 'bool',1455 collectionAdmin: 'bool',1459 collectionAdmin: 'bool',1456 tokenOwner: 'bool'1460 tokenOwner: 'bool'1457 },1461 },1458 /**1462 /**1459 * Lookup182: up_data_structs::Property1463 * Lookup180: up_data_structs::Property1460 **/1464 **/1461 UpDataStructsProperty: {1465 UpDataStructsProperty: {1462 key: 'Bytes',1466 key: 'Bytes',1463 value: 'Bytes'1467 value: 'Bytes'1464 },1468 },1465 /**1469 /**1466 * Lookup185: pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>1470 * Lookup183: pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>1467 **/1471 **/1468 PalletEvmAccountBasicCrossAccountIdRepr: {1472 PalletEvmAccountBasicCrossAccountIdRepr: {1469 _enum: {1473 _enum: {1470 Substrate: 'AccountId32',1474 Substrate: 'AccountId32',1471 Ethereum: 'H160'1475 Ethereum: 'H160'1472 }1476 }1473 },1477 },1474 /**1478 /**1475 * Lookup187: up_data_structs::CreateItemData1479 * Lookup185: up_data_structs::CreateItemData1476 **/1480 **/1477 UpDataStructsCreateItemData: {1481 UpDataStructsCreateItemData: {1478 _enum: {1482 _enum: {1479 NFT: 'UpDataStructsCreateNftData',1483 NFT: 'UpDataStructsCreateNftData',1480 Fungible: 'UpDataStructsCreateFungibleData',1484 Fungible: 'UpDataStructsCreateFungibleData',1481 ReFungible: 'UpDataStructsCreateReFungibleData'1485 ReFungible: 'UpDataStructsCreateReFungibleData'1482 }1486 }1483 },1487 },1484 /**1488 /**1485 * Lookup188: up_data_structs::CreateNftData1489 * Lookup186: up_data_structs::CreateNftData1486 **/1490 **/1487 UpDataStructsCreateNftData: {1491 UpDataStructsCreateNftData: {1488 properties: 'Vec<UpDataStructsProperty>'1492 properties: 'Vec<UpDataStructsProperty>'1489 },1493 },1490 /**1494 /**1491 * Lookup189: up_data_structs::CreateFungibleData1495 * Lookup187: up_data_structs::CreateFungibleData1492 **/1496 **/1493 UpDataStructsCreateFungibleData: {1497 UpDataStructsCreateFungibleData: {1494 value: 'u128'1498 value: 'u128'1495 },1499 },1496 /**1500 /**1497 * Lookup190: up_data_structs::CreateReFungibleData1501 * Lookup188: up_data_structs::CreateReFungibleData1498 **/1502 **/1499 UpDataStructsCreateReFungibleData: {1503 UpDataStructsCreateReFungibleData: {1500 constData: 'Bytes',1504 constData: 'Bytes',1501 pieces: 'u128'1505 pieces: 'u128'1502 },1506 },1503 /**1507 /**1504 * Lookup195: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>1508 * Lookup193: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>1505 **/1509 **/1506 UpDataStructsCreateItemExData: {1510 UpDataStructsCreateItemExData: {1507 _enum: {1511 _enum: {1508 NFT: 'Vec<UpDataStructsCreateNftExData>',1512 NFT: 'Vec<UpDataStructsCreateNftExData>',1511 RefungibleMultipleOwners: 'UpDataStructsCreateRefungibleExData'1515 RefungibleMultipleOwners: 'UpDataStructsCreateRefungibleExData'1512 }1516 }1513 },1517 },1514 /**1518 /**1515 * Lookup197: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>1519 * Lookup195: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>1516 **/1520 **/1517 UpDataStructsCreateNftExData: {1521 UpDataStructsCreateNftExData: {1518 properties: 'Vec<UpDataStructsProperty>',1522 properties: 'Vec<UpDataStructsProperty>',1519 owner: 'PalletEvmAccountBasicCrossAccountIdRepr'1523 owner: 'PalletEvmAccountBasicCrossAccountIdRepr'1520 },1524 },1521 /**1525 /**1522 * Lookup204: up_data_structs::CreateRefungibleExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>1526 * Lookup202: up_data_structs::CreateRefungibleExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>1523 **/1527 **/1524 UpDataStructsCreateRefungibleExData: {1528 UpDataStructsCreateRefungibleExData: {1525 constData: 'Bytes',1529 constData: 'Bytes',1526 users: 'BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>'1530 users: 'BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>'1527 },1531 },1528 /**1532 /**1529 * Lookup206: pallet_unique_scheduler::pallet::Call<T>1533 * Lookup204: pallet_unique_scheduler::pallet::Call<T>1530 **/1534 **/1531 PalletUniqueSchedulerCall: {1535 PalletUniqueSchedulerCall: {1532 _enum: {1536 _enum: {1533 schedule_named: {1537 schedule_named: {1549 }1553 }1550 }1554 }1551 },1555 },1552 /**1556 /**1553 * Lookup208: frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>1557 * Lookup206: frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>1554 **/1558 **/1555 FrameSupportScheduleMaybeHashed: {1559 FrameSupportScheduleMaybeHashed: {1556 _enum: {1560 _enum: {1557 Value: 'Call',1561 Value: 'Call',1558 Hash: 'H256'1562 Hash: 'H256'1559 }1563 }1560 },1564 },1561 /**1565 /**1562 * Lookup209: pallet_template_transaction_payment::Call<T>1566 * Lookup207: pallet_template_transaction_payment::Call<T>1563 **/1567 **/1564 PalletTemplateTransactionPaymentCall: 'Null',1568 PalletTemplateTransactionPaymentCall: 'Null',1565 /**1569 /**1566 * Lookup210: pallet_structure::pallet::Call<T>1570 * Lookup208: pallet_structure::pallet::Call<T>1567 **/1571 **/1568 PalletStructureCall: 'Null',1572 PalletStructureCall: 'Null',1569 /**1573 /**1570 * Lookup211: pallet_rmrk_core::pallet::Call<T>1574 * Lookup209: pallet_rmrk_core::pallet::Call<T>1571 **/1575 **/1572 PalletRmrkCoreCall: {1576 PalletRmrkCoreCall: {1573 _enum: {1577 _enum: {1574 create_collection: {1578 create_collection: {1587 collectionId: 'u32',1591 collectionId: 'u32',1588 },1592 },1589 mint_nft: {1593 mint_nft: {1590 owner: 'AccountId32',1594 owner: 'Option<AccountId32>',1591 collectionId: 'u32',1595 collectionId: 'u32',1592 recipient: 'Option<AccountId32>',1596 recipient: 'Option<AccountId32>',1593 royaltyAmount: 'Option<Permill>',1597 royaltyAmount: 'Option<Permill>',1617 accept_resource: {1621 accept_resource: {1618 rmrkCollectionId: 'u32',1622 rmrkCollectionId: 'u32',1619 rmrkNftId: 'u32',1623 rmrkNftId: 'u32',1620 rmrkResourceId: 'u32',1624 resourceId: 'u32',1621 },1625 },1622 accept_resource_removal: {1626 accept_resource_removal: {1623 rmrkCollectionId: 'u32',1627 rmrkCollectionId: 'u32',1624 rmrkNftId: 'u32',1628 rmrkNftId: 'u32',1625 rmrkResourceId: 'u32',1629 resourceId: 'u32',1626 },1630 },1627 set_property: {1631 set_property: {1628 rmrkCollectionId: 'Compact<u32>',1632 rmrkCollectionId: 'Compact<u32>',1657 }1661 }1658 }1662 }1659 },1663 },1660 /**1664 /**1661 * Lookup217: rmrk_traits::resource::ResourceTypes<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>1665 * Lookup215: rmrk_traits::resource::ResourceTypes<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>1662 **/1666 **/1663 RmrkTraitsResourceResourceTypes: {1667 RmrkTraitsResourceResourceTypes: {1664 _enum: {1668 _enum: {1665 Basic: 'RmrkTraitsResourceBasicResource',1669 Basic: 'RmrkTraitsResourceBasicResource',1666 Composable: 'RmrkTraitsResourceComposableResource',1670 Composable: 'RmrkTraitsResourceComposableResource',1667 Slot: 'RmrkTraitsResourceSlotResource'1671 Slot: 'RmrkTraitsResourceSlotResource'1668 }1672 }1669 },1673 },1670 /**1674 /**1671 * Lookup219: rmrk_traits::resource::BasicResource<frame_support::storage::bounded_vec::BoundedVec<T, S>>1675 * Lookup217: rmrk_traits::resource::BasicResource<frame_support::storage::bounded_vec::BoundedVec<T, S>>1672 **/1676 **/1673 RmrkTraitsResourceBasicResource: {1677 RmrkTraitsResourceBasicResource: {1674 src: 'Option<Bytes>',1678 src: 'Option<Bytes>',1675 metadata: 'Option<Bytes>',1679 metadata: 'Option<Bytes>',1676 license: 'Option<Bytes>',1680 license: 'Option<Bytes>',1677 thumb: 'Option<Bytes>'1681 thumb: 'Option<Bytes>'1678 },1682 },1679 /**1683 /**1680 * Lookup221: rmrk_traits::resource::ComposableResource<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>1684 * Lookup219: rmrk_traits::resource::ComposableResource<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>1681 **/1685 **/1682 RmrkTraitsResourceComposableResource: {1686 RmrkTraitsResourceComposableResource: {1683 parts: 'Vec<u32>',1687 parts: 'Vec<u32>',1684 base: 'u32',1688 base: 'u32',1687 license: 'Option<Bytes>',1691 license: 'Option<Bytes>',1688 thumb: 'Option<Bytes>'1692 thumb: 'Option<Bytes>'1689 },1693 },1690 /**1694 /**1691 * Lookup222: rmrk_traits::resource::SlotResource<frame_support::storage::bounded_vec::BoundedVec<T, S>>1695 * Lookup220: rmrk_traits::resource::SlotResource<frame_support::storage::bounded_vec::BoundedVec<T, S>>1692 **/1696 **/1693 RmrkTraitsResourceSlotResource: {1697 RmrkTraitsResourceSlotResource: {1694 base: 'u32',1698 base: 'u32',1695 src: 'Option<Bytes>',1699 src: 'Option<Bytes>',1698 license: 'Option<Bytes>',1702 license: 'Option<Bytes>',1699 thumb: 'Option<Bytes>'1703 thumb: 'Option<Bytes>'1700 },1704 },1701 /**1705 /**1702 * Lookup224: rmrk_traits::nft::AccountIdOrCollectionNftTuple<sp_core::crypto::AccountId32>1706 * Lookup222: rmrk_traits::nft::AccountIdOrCollectionNftTuple<sp_core::crypto::AccountId32>1703 **/1707 **/1704 RmrkTraitsNftAccountIdOrCollectionNftTuple: {1708 RmrkTraitsNftAccountIdOrCollectionNftTuple: {1705 _enum: {1709 _enum: {1706 AccountId: 'AccountId32',1710 AccountId: 'AccountId32',1707 CollectionAndNftTuple: '(u32,u32)'1711 CollectionAndNftTuple: '(u32,u32)'1708 }1712 }1709 },1713 },1710 /**1714 /**1711 * Lookup228: pallet_rmrk_equip::pallet::Call<T>1715 * Lookup226: pallet_rmrk_equip::pallet::Call<T>1712 **/1716 **/1713 PalletRmrkEquipCall: {1717 PalletRmrkEquipCall: {1714 _enum: {1718 _enum: {1715 create_base: {1719 create_base: {1720 theme_add: {1724 theme_add: {1721 baseId: 'u32',1725 baseId: 'u32',1722 theme: 'RmrkTraitsTheme'1726 theme: 'RmrkTraitsTheme',1723 }1727 },1728 equippable: {1729 baseId: 'u32',1730 slotId: 'u32',1731 equippables: 'RmrkTraitsPartEquippableList'1732 }1724 }1733 }1725 },1734 },1726 /**1735 /**1727 * Lookup230: rmrk_traits::part::PartType<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>1736 * Lookup229: rmrk_traits::part::PartType<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>1728 **/1737 **/1729 RmrkTraitsPartPartType: {1738 RmrkTraitsPartPartType: {1730 _enum: {1739 _enum: {1731 FixedPart: 'RmrkTraitsPartFixedPart',1740 FixedPart: 'RmrkTraitsPartFixedPart',1732 SlotPart: 'RmrkTraitsPartSlotPart'1741 SlotPart: 'RmrkTraitsPartSlotPart'1733 }1742 }1734 },1743 },1735 /**1744 /**1736 * Lookup232: rmrk_traits::part::FixedPart<frame_support::storage::bounded_vec::BoundedVec<T, S>>1745 * Lookup231: rmrk_traits::part::FixedPart<frame_support::storage::bounded_vec::BoundedVec<T, S>>1737 **/1746 **/1738 RmrkTraitsPartFixedPart: {1747 RmrkTraitsPartFixedPart: {1739 id: 'u32',1748 id: 'u32',1740 z: 'u32',1749 z: 'u32',1741 src: 'Bytes'1750 src: 'Bytes'1742 },1751 },1743 /**1752 /**1744 * Lookup233: rmrk_traits::part::SlotPart<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>1753 * Lookup232: rmrk_traits::part::SlotPart<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>1745 **/1754 **/1746 RmrkTraitsPartSlotPart: {1755 RmrkTraitsPartSlotPart: {1747 id: 'u32',1756 id: 'u32',1748 equippable: 'RmrkTraitsPartEquippableList',1757 equippable: 'RmrkTraitsPartEquippableList',1749 src: 'Bytes',1758 src: 'Bytes',1750 z: 'u32'1759 z: 'u32'1751 },1760 },1752 /**1761 /**1753 * Lookup234: rmrk_traits::part::EquippableList<frame_support::storage::bounded_vec::BoundedVec<T, S>>1762 * Lookup233: rmrk_traits::part::EquippableList<frame_support::storage::bounded_vec::BoundedVec<T, S>>1754 **/1763 **/1755 RmrkTraitsPartEquippableList: {1764 RmrkTraitsPartEquippableList: {1756 _enum: {1765 _enum: {1757 All: 'Null',1766 All: 'Null',1758 Empty: 'Null',1767 Empty: 'Null',1759 Custom: 'Vec<u32>'1768 Custom: 'Vec<u32>'1760 }1769 }1761 },1770 },1762 /**1771 /**1763 * Lookup236: rmrk_traits::theme::Theme<frame_support::storage::bounded_vec::BoundedVec<T, S>, PropertyList>1772 * Lookup235: rmrk_traits::theme::Theme<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<rmrk_traits::theme::ThemeProperty<frame_support::storage::bounded_vec::BoundedVec<T, S>>, S>>1764 **/1773 **/1765 RmrkTraitsTheme: {1774 RmrkTraitsTheme: {1766 name: 'Bytes',1775 name: 'Bytes',1767 properties: 'Vec<RmrkTraitsThemeThemeProperty>',1776 properties: 'Vec<RmrkTraitsThemeThemeProperty>',1768 inherit: 'bool'1777 inherit: 'bool'1769 },1778 },1770 /**1779 /**1771 * Lookup238: rmrk_traits::theme::ThemeProperty<frame_support::storage::bounded_vec::BoundedVec<T, S>>1780 * Lookup237: rmrk_traits::theme::ThemeProperty<frame_support::storage::bounded_vec::BoundedVec<T, S>>1772 **/1781 **/1773 RmrkTraitsThemeThemeProperty: {1782 RmrkTraitsThemeThemeProperty: {1774 key: 'Bytes',1783 key: 'Bytes',1775 value: 'Bytes'1784 value: 'Bytes'2166 **/2175 **/2167 CumulusPalletDmpQueueEvent: {2176 CumulusPalletDmpQueueEvent: {2168 _enum: {2177 _enum: {2169 InvalidFormat: '[u8;32]',2178 InvalidFormat: {2179 messageId: '[u8;32]',2180 },2170 UnsupportedVersion: '[u8;32]',2181 UnsupportedVersion: {2182 messageId: '[u8;32]',2183 },2171 ExecutedDownward: '([u8;32],XcmV2TraitsOutcome)',2184 ExecutedDownward: {2185 messageId: '[u8;32]',2186 outcome: 'XcmV2TraitsOutcome',2187 },2172 WeightExhausted: '([u8;32],u64,u64)',2188 WeightExhausted: {2189 messageId: '[u8;32]',2190 remainingWeight: 'u64',2191 requiredWeight: 'u64',2192 },2173 OverweightEnqueued: '([u8;32],u64,u64)',2193 OverweightEnqueued: {2194 messageId: '[u8;32]',2195 overweightIndex: 'u64',2196 requiredWeight: 'u64',2197 },2174 OverweightServiced: '(u64,u64)'2198 OverweightServiced: {2199 overweightIndex: 'u64',2200 weightUsed: 'u64'2201 }2175 }2202 }2176 },2203 },2177 /**2204 /**2333 BaseCreated: {2360 BaseCreated: {2334 issuer: 'AccountId32',2361 issuer: 'AccountId32',2335 baseId: 'u32'2362 baseId: 'u32',2336 }2363 },2364 EquippablesUpdated: {2365 baseId: 'u32',2366 slotId: 'u32'2367 }2337 }2368 }2338 },2369 },2339 /**2370 /**2597 * Lookup344: pallet_unique::Error<T>2628 * Lookup344: pallet_unique::Error<T>2598 **/2629 **/2599 PalletUniqueError: {2630 PalletUniqueError: {2600 _enum: ['CollectionDecimalPointLimitExceeded', 'ConfirmUnsetSponsorFail', 'EmptyArgument']2631 _enum: ['CollectionDecimalPointLimitExceeded', 'ConfirmUnsetSponsorFail', 'EmptyArgument', 'RepartitionCalledOnNonRefungibleCollection']2601 },2632 },2602 /**2633 /**2603 * Lookup347: pallet_unique_scheduler::ScheduledV3<frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>, BlockNumber, opal_runtime::OriginCaller, sp_core::crypto::AccountId32>2634 * Lookup347: pallet_unique_scheduler::ScheduledV3<frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>, BlockNumber, opal_runtime::OriginCaller, sp_core::crypto::AccountId32>2926 * Lookup393: pallet_refungible::pallet::Error<T>2957 * Lookup393: pallet_refungible::pallet::Error<T>2927 **/2958 **/2928 PalletRefungibleError: {2959 PalletRefungibleError: {2929 _enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']2960 _enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RepartitionWhileNotOwningAllPieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']2930 },2961 },2931 /**2962 /**2932 * Lookup394: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>2963 * Lookup394: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>2933 **/2964 **/2934 PalletNonfungibleItemData: {2965 PalletNonfungibleItemData: {2935 owner: 'PalletEvmAccountBasicCrossAccountIdRepr'2966 owner: 'PalletEvmAccountBasicCrossAccountIdRepr'2936 },2967 },2968 /**2969 * Lookup396: up_data_structs::PropertyScope2970 **/2971 UpDataStructsPropertyScope: {2972 _enum: ['None', 'Rmrk']2973 },2937 /**2974 /**2938 * Lookup396: pallet_nonfungible::pallet::Error<T>2975 * Lookup398: pallet_nonfungible::pallet::Error<T>2939 **/2976 **/2940 PalletNonfungibleError: {2977 PalletNonfungibleError: {2941 _enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount', 'CantBurnNftWithChildren']2978 _enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount', 'CantBurnNftWithChildren']2942 },2979 },2943 /**2980 /**2944 * Lookup397: pallet_structure::pallet::Error<T>2981 * Lookup399: pallet_structure::pallet::Error<T>2945 **/2982 **/2946 PalletStructureError: {2983 PalletStructureError: {2947 _enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound']2984 _enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound']2948 },2985 },2949 /**2986 /**2950 * Lookup398: pallet_rmrk_core::pallet::Error<T>2987 * Lookup400: pallet_rmrk_core::pallet::Error<T>2951 **/2988 **/2952 PalletRmrkCoreError: {2989 PalletRmrkCoreError: {2953 _enum: ['CorruptedCollectionType', 'NftTypeEncodeError', 'RmrkPropertyKeyIsTooLong', 'RmrkPropertyValueIsTooLong', 'UnableToDecodeRmrkData', 'CollectionNotEmpty', 'NoAvailableCollectionId', 'NoAvailableNftId', 'CollectionUnknown', 'NoPermission', 'NonTransferable', 'CollectionFullOrLocked', 'ResourceDoesntExist', 'CannotSendToDescendentOrSelf', 'CannotAcceptNonOwnedNft', 'CannotRejectNonOwnedNft', 'ResourceNotPending']2990 _enum: ['CorruptedCollectionType', 'NftTypeEncodeError', 'RmrkPropertyKeyIsTooLong', 'RmrkPropertyValueIsTooLong', 'RmrkPropertyIsNotFound', 'UnableToDecodeRmrkData', 'CollectionNotEmpty', 'NoAvailableCollectionId', 'NoAvailableNftId', 'CollectionUnknown', 'NoPermission', 'NonTransferable', 'CollectionFullOrLocked', 'ResourceDoesntExist', 'CannotSendToDescendentOrSelf', 'CannotAcceptNonOwnedNft', 'CannotRejectNonOwnedNft', 'CannotRejectNonPendingNft', 'ResourceNotPending', 'NoAvailableResourceId']2954 },2991 },2955 /**2992 /**2956 * Lookup400: pallet_rmrk_equip::pallet::Error<T>2993 * Lookup402: pallet_rmrk_equip::pallet::Error<T>2957 **/2994 **/2958 PalletRmrkEquipError: {2995 PalletRmrkEquipError: {2959 _enum: ['PermissionError', 'NoAvailableBaseId', 'NoAvailablePartId', 'BaseDoesntExist', 'NeedsDefaultThemeFirst']2996 _enum: ['PermissionError', 'NoAvailableBaseId', 'NoAvailablePartId', 'BaseDoesntExist', 'NeedsDefaultThemeFirst', 'PartDoesntExist', 'NoEquippableOnFixedPart']2960 },2997 },2961 /**2998 /**2962 * Lookup403: pallet_evm::pallet::Error<T>2999 * Lookup405: pallet_evm::pallet::Error<T>2963 **/3000 **/2964 PalletEvmError: {3001 PalletEvmError: {2965 _enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce']3002 _enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce']2966 },3003 },2967 /**3004 /**2968 * Lookup406: fp_rpc::TransactionStatus3005 * Lookup408: fp_rpc::TransactionStatus2969 **/3006 **/2970 FpRpcTransactionStatus: {3007 FpRpcTransactionStatus: {2971 transactionHash: 'H256',3008 transactionHash: 'H256',2972 transactionIndex: 'u32',3009 transactionIndex: 'u32',2976 logs: 'Vec<EthereumLog>',3013 logs: 'Vec<EthereumLog>',2977 logsBloom: 'EthbloomBloom'3014 logsBloom: 'EthbloomBloom'2978 },3015 },2979 /**3016 /**2980 * Lookup408: ethbloom::Bloom3017 * Lookup410: ethbloom::Bloom2981 **/3018 **/2982 EthbloomBloom: '[u8;256]',3019 EthbloomBloom: '[u8;256]',2983 /**3020 /**2984 * Lookup410: ethereum::receipt::ReceiptV33021 * Lookup412: ethereum::receipt::ReceiptV32985 **/3022 **/2986 EthereumReceiptReceiptV3: {3023 EthereumReceiptReceiptV3: {2987 _enum: {3024 _enum: {2988 Legacy: 'EthereumReceiptEip658ReceiptData',3025 Legacy: 'EthereumReceiptEip658ReceiptData',2989 EIP2930: 'EthereumReceiptEip658ReceiptData',3026 EIP2930: 'EthereumReceiptEip658ReceiptData',2990 EIP1559: 'EthereumReceiptEip658ReceiptData'3027 EIP1559: 'EthereumReceiptEip658ReceiptData'2991 }3028 }2992 },3029 },2993 /**3030 /**2994 * Lookup411: ethereum::receipt::EIP658ReceiptData3031 * Lookup413: ethereum::receipt::EIP658ReceiptData2995 **/3032 **/2996 EthereumReceiptEip658ReceiptData: {3033 EthereumReceiptEip658ReceiptData: {2997 statusCode: 'u8',3034 statusCode: 'u8',2998 usedGas: 'U256',3035 usedGas: 'U256',2999 logsBloom: 'EthbloomBloom',3036 logsBloom: 'EthbloomBloom',3000 logs: 'Vec<EthereumLog>'3037 logs: 'Vec<EthereumLog>'3001 },3038 },3002 /**3039 /**3003 * Lookup412: ethereum::block::Block<ethereum::transaction::TransactionV2>3040 * Lookup414: ethereum::block::Block<ethereum::transaction::TransactionV2>3004 **/3041 **/3005 EthereumBlock: {3042 EthereumBlock: {3006 header: 'EthereumHeader',3043 header: 'EthereumHeader',3007 transactions: 'Vec<EthereumTransactionTransactionV2>',3044 transactions: 'Vec<EthereumTransactionTransactionV2>',3008 ommers: 'Vec<EthereumHeader>'3045 ommers: 'Vec<EthereumHeader>'3009 },3046 },3010 /**3047 /**3011 * Lookup413: ethereum::header::Header3048 * Lookup415: ethereum::header::Header3012 **/3049 **/3013 EthereumHeader: {3050 EthereumHeader: {3014 parentHash: 'H256',3051 parentHash: 'H256',3015 ommersHash: 'H256',3052 ommersHash: 'H256',3027 mixHash: 'H256',3064 mixHash: 'H256',3028 nonce: 'EthereumTypesHashH64'3065 nonce: 'EthereumTypesHashH64'3029 },3066 },3030 /**3067 /**3031 * Lookup414: ethereum_types::hash::H643068 * Lookup416: ethereum_types::hash::H643032 **/3069 **/3033 EthereumTypesHashH64: '[u8;8]',3070 EthereumTypesHashH64: '[u8;8]',3034 /**3071 /**3035 * Lookup419: pallet_ethereum::pallet::Error<T>3072 * Lookup421: pallet_ethereum::pallet::Error<T>3036 **/3073 **/3037 PalletEthereumError: {3074 PalletEthereumError: {3038 _enum: ['InvalidSignature', 'PreLogExists']3075 _enum: ['InvalidSignature', 'PreLogExists']3039 },3076 },3040 /**3077 /**3041 * Lookup420: pallet_evm_coder_substrate::pallet::Error<T>3078 * Lookup422: pallet_evm_coder_substrate::pallet::Error<T>3042 **/3079 **/3043 PalletEvmCoderSubstrateError: {3080 PalletEvmCoderSubstrateError: {3044 _enum: ['OutOfGas', 'OutOfFund']3081 _enum: ['OutOfGas', 'OutOfFund']3045 },3082 },3046 /**3083 /**3047 * Lookup421: pallet_evm_contract_helpers::SponsoringModeT3084 * Lookup423: pallet_evm_contract_helpers::SponsoringModeT3048 **/3085 **/3049 PalletEvmContractHelpersSponsoringModeT: {3086 PalletEvmContractHelpersSponsoringModeT: {3050 _enum: ['Disabled', 'Allowlisted', 'Generous']3087 _enum: ['Disabled', 'Allowlisted', 'Generous']3051 },3088 },3052 /**3089 /**3053 * Lookup423: pallet_evm_contract_helpers::pallet::Error<T>3090 * Lookup425: pallet_evm_contract_helpers::pallet::Error<T>3054 **/3091 **/3055 PalletEvmContractHelpersError: {3092 PalletEvmContractHelpersError: {3056 _enum: ['NoPermission']3093 _enum: ['NoPermission']3057 },3094 },3058 /**3095 /**3059 * Lookup424: pallet_evm_migration::pallet::Error<T>3096 * Lookup426: pallet_evm_migration::pallet::Error<T>3060 **/3097 **/3061 PalletEvmMigrationError: {3098 PalletEvmMigrationError: {3062 _enum: ['AccountNotEmpty', 'AccountIsNotMigrating']3099 _enum: ['AccountNotEmpty', 'AccountIsNotMigrating']3063 },3100 },3064 /**3101 /**3065 * Lookup426: sp_runtime::MultiSignature3102 * Lookup428: sp_runtime::MultiSignature3066 **/3103 **/3067 SpRuntimeMultiSignature: {3104 SpRuntimeMultiSignature: {3068 _enum: {3105 _enum: {3069 Ed25519: 'SpCoreEd25519Signature',3106 Ed25519: 'SpCoreEd25519Signature',3070 Sr25519: 'SpCoreSr25519Signature',3107 Sr25519: 'SpCoreSr25519Signature',3071 Ecdsa: 'SpCoreEcdsaSignature'3108 Ecdsa: 'SpCoreEcdsaSignature'3072 }3109 }3073 },3110 },3074 /**3111 /**3075 * Lookup427: sp_core::ed25519::Signature3112 * Lookup429: sp_core::ed25519::Signature3076 **/3113 **/3077 SpCoreEd25519Signature: '[u8;64]',3114 SpCoreEd25519Signature: '[u8;64]',3078 /**3115 /**3079 * Lookup429: sp_core::sr25519::Signature3116 * Lookup431: sp_core::sr25519::Signature3080 **/3117 **/3081 SpCoreSr25519Signature: '[u8;64]',3118 SpCoreSr25519Signature: '[u8;64]',3082 /**3119 /**3083 * Lookup430: sp_core::ecdsa::Signature3120 * Lookup432: sp_core::ecdsa::Signature3084 **/3121 **/3085 SpCoreEcdsaSignature: '[u8;65]',3122 SpCoreEcdsaSignature: '[u8;65]',3086 /**3123 /**3087 * Lookup433: frame_system::extensions::check_spec_version::CheckSpecVersion<T>3124 * Lookup435: frame_system::extensions::check_spec_version::CheckSpecVersion<T>3088 **/3125 **/3089 FrameSystemExtensionsCheckSpecVersion: 'Null',3126 FrameSystemExtensionsCheckSpecVersion: 'Null',3090 /**3127 /**3091 * Lookup434: frame_system::extensions::check_genesis::CheckGenesis<T>3128 * Lookup436: frame_system::extensions::check_genesis::CheckGenesis<T>3092 **/3129 **/3093 FrameSystemExtensionsCheckGenesis: 'Null',3130 FrameSystemExtensionsCheckGenesis: 'Null',3094 /**3131 /**3095 * Lookup437: frame_system::extensions::check_nonce::CheckNonce<T>3132 * Lookup439: frame_system::extensions::check_nonce::CheckNonce<T>3096 **/3133 **/3097 FrameSystemExtensionsCheckNonce: 'Compact<u32>',3134 FrameSystemExtensionsCheckNonce: 'Compact<u32>',3098 /**3135 /**3099 * Lookup438: frame_system::extensions::check_weight::CheckWeight<T>3136 * Lookup440: frame_system::extensions::check_weight::CheckWeight<T>3100 **/3137 **/3101 FrameSystemExtensionsCheckWeight: 'Null',3138 FrameSystemExtensionsCheckWeight: 'Null',3102 /**3139 /**3103 * Lookup439: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>3140 * Lookup441: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>3104 **/3141 **/3105 PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',3142 PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',3106 /**3143 /**3107 * Lookup440: opal_runtime::Runtime3144 * Lookup442: opal_runtime::Runtime3108 **/3145 **/3109 OpalRuntimeRuntime: 'Null',3146 OpalRuntimeRuntime: 'Null',3110 /**3147 /**3111 * Lookup441: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>3148 * Lookup443: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>3112 **/3149 **/3113 PalletEthereumFakeTransactionFinalizer: 'Null'3150 PalletEthereumFakeTransactionFinalizer: 'Null'3114};3151};31153152tests/src/interfaces/registry.tsdiffbeforeafterboth1// Auto-generated via `yarn polkadot-types-from-defs`, do not edit1// Auto-generated via `yarn polkadot-types-from-defs`, do not edit2/* eslint-disable */2/* eslint-disable */334import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletUniqueSchedulerCall, PalletUniqueSchedulerError, PalletUniqueSchedulerEvent, PalletUniqueSchedulerScheduledV3, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsRpcCollection, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, UpDataStructsTokenChild, UpDataStructsTokenData, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';4import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletUniqueSchedulerCall, PalletUniqueSchedulerError, PalletUniqueSchedulerEvent, PalletUniqueSchedulerScheduledV3, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsRpcCollection, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, UpDataStructsTokenChild, UpDataStructsTokenData, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';556declare module '@polkadot/types/types/registry' {6declare module '@polkadot/types/types/registry' {7 export interface InterfaceTypes {7 export interface InterfaceTypes {59 FrameSupportWeightsPerDispatchClassU64: FrameSupportWeightsPerDispatchClassU64;59 FrameSupportWeightsPerDispatchClassU64: FrameSupportWeightsPerDispatchClassU64;60 FrameSupportWeightsPerDispatchClassWeightsPerClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;60 FrameSupportWeightsPerDispatchClassWeightsPerClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;61 FrameSupportWeightsRuntimeDbWeight: FrameSupportWeightsRuntimeDbWeight;61 FrameSupportWeightsRuntimeDbWeight: FrameSupportWeightsRuntimeDbWeight;62 FrameSupportWeightsWeightToFeeCoefficient: FrameSupportWeightsWeightToFeeCoefficient;63 FrameSystemAccountInfo: FrameSystemAccountInfo;62 FrameSystemAccountInfo: FrameSystemAccountInfo;64 FrameSystemCall: FrameSystemCall;63 FrameSystemCall: FrameSystemCall;65 FrameSystemError: FrameSystemError;64 FrameSystemError: FrameSystemError;204 UpDataStructsProperty: UpDataStructsProperty;203 UpDataStructsProperty: UpDataStructsProperty;205 UpDataStructsPropertyKeyPermission: UpDataStructsPropertyKeyPermission;204 UpDataStructsPropertyKeyPermission: UpDataStructsPropertyKeyPermission;206 UpDataStructsPropertyPermission: UpDataStructsPropertyPermission;205 UpDataStructsPropertyPermission: UpDataStructsPropertyPermission;206 UpDataStructsPropertyScope: UpDataStructsPropertyScope;207 UpDataStructsRpcCollection: UpDataStructsRpcCollection;207 UpDataStructsRpcCollection: UpDataStructsRpcCollection;208 UpDataStructsSponsoringRateLimit: UpDataStructsSponsoringRateLimit;208 UpDataStructsSponsoringRateLimit: UpDataStructsSponsoringRateLimit;209 UpDataStructsSponsorshipState: UpDataStructsSponsorshipState;209 UpDataStructsSponsorshipState: UpDataStructsSponsorshipState;tests/src/interfaces/types-lookup.tsdiffbeforeafterboth108 export interface CumulusPalletParachainSystemEvent extends Enum {108 export interface CumulusPalletParachainSystemEvent extends Enum {109 readonly isValidationFunctionStored: boolean;109 readonly isValidationFunctionStored: boolean;110 readonly isValidationFunctionApplied: boolean;110 readonly isValidationFunctionApplied: boolean;111 readonly asValidationFunctionApplied: u32;111 readonly asValidationFunctionApplied: {112 readonly relayChainBlockNum: u32;113 } & Struct;112 readonly isValidationFunctionDiscarded: boolean;114 readonly isValidationFunctionDiscarded: boolean;113 readonly isUpgradeAuthorized: boolean;115 readonly isUpgradeAuthorized: boolean;114 readonly asUpgradeAuthorized: H256;116 readonly asUpgradeAuthorized: {117 readonly codeHash: H256;118 } & Struct;115 readonly isDownwardMessagesReceived: boolean;119 readonly isDownwardMessagesReceived: boolean;116 readonly asDownwardMessagesReceived: u32;120 readonly asDownwardMessagesReceived: {121 readonly count: u32;122 } & Struct;117 readonly isDownwardMessagesProcessed: boolean;123 readonly isDownwardMessagesProcessed: boolean;118 readonly asDownwardMessagesProcessed: ITuple<[u64, H256]>;124 readonly asDownwardMessagesProcessed: {125 readonly weightUsed: u64;126 readonly dmqHead: H256;127 } & Struct;119 readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';128 readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';120 }129 }121130300 readonly type: 'V1Ancient' | 'V2';309 readonly type: 'V1Ancient' | 'V2';301 }310 }302303 /** @name FrameSupportWeightsWeightToFeeCoefficient (68) */304 export interface FrameSupportWeightsWeightToFeeCoefficient extends Struct {305 readonly coeffInteger: u128;306 readonly coeffFrac: Perbill;307 readonly negative: bool;308 readonly degree: u8;309 }310311311 /** @name PalletTreasuryProposal (70) */312 /** @name PalletTreasuryProposal (67) */312 export interface PalletTreasuryProposal extends Struct {313 export interface PalletTreasuryProposal extends Struct {313 readonly proposer: AccountId32;314 readonly proposer: AccountId32;314 readonly value: u128;315 readonly value: u128;315 readonly beneficiary: AccountId32;316 readonly beneficiary: AccountId32;316 readonly bond: u128;317 readonly bond: u128;317 }318 }318319319 /** @name PalletTreasuryCall (73) */320 /** @name PalletTreasuryCall (70) */320 export interface PalletTreasuryCall extends Enum {321 export interface PalletTreasuryCall extends Enum {321 readonly isProposeSpend: boolean;322 readonly isProposeSpend: boolean;322 readonly asProposeSpend: {323 readonly asProposeSpend: {338 readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'RemoveApproval';339 readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'RemoveApproval';339 }340 }340341341 /** @name PalletTreasuryEvent (75) */342 /** @name PalletTreasuryEvent (72) */342 export interface PalletTreasuryEvent extends Enum {343 export interface PalletTreasuryEvent extends Enum {343 readonly isProposed: boolean;344 readonly isProposed: boolean;344 readonly asProposed: {345 readonly asProposed: {374 readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit';375 readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit';375 }376 }376377377 /** @name FrameSupportPalletId (78) */378 /** @name FrameSupportPalletId (75) */378 export interface FrameSupportPalletId extends U8aFixed {}379 export interface FrameSupportPalletId extends U8aFixed {}379380380 /** @name PalletTreasuryError (79) */381 /** @name PalletTreasuryError (76) */381 export interface PalletTreasuryError extends Enum {382 export interface PalletTreasuryError extends Enum {382 readonly isInsufficientProposersBalance: boolean;383 readonly isInsufficientProposersBalance: boolean;383 readonly isInvalidIndex: boolean;384 readonly isInvalidIndex: boolean;386 readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'ProposalNotApproved';387 readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'ProposalNotApproved';387 }388 }388389389 /** @name PalletSudoCall (80) */390 /** @name PalletSudoCall (77) */390 export interface PalletSudoCall extends Enum {391 export interface PalletSudoCall extends Enum {391 readonly isSudo: boolean;392 readonly isSudo: boolean;392 readonly asSudo: {393 readonly asSudo: {409 readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';410 readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';410 }411 }411412412 /** @name FrameSystemCall (82) */413 /** @name FrameSystemCall (79) */413 export interface FrameSystemCall extends Enum {414 export interface FrameSystemCall extends Enum {414 readonly isFillBlock: boolean;415 readonly isFillBlock: boolean;415 readonly asFillBlock: {416 readonly asFillBlock: {451 readonly type: 'FillBlock' | 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';452 readonly type: 'FillBlock' | 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';452 }453 }453454454 /** @name OrmlVestingModuleCall (85) */455 /** @name OrmlVestingModuleCall (83) */455 export interface OrmlVestingModuleCall extends Enum {456 export interface OrmlVestingModuleCall extends Enum {456 readonly isClaim: boolean;457 readonly isClaim: boolean;457 readonly isVestedTransfer: boolean;458 readonly isVestedTransfer: boolean;471 readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';472 readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';472 }473 }473474474 /** @name OrmlVestingVestingSchedule (86) */475 /** @name OrmlVestingVestingSchedule (84) */475 export interface OrmlVestingVestingSchedule extends Struct {476 export interface OrmlVestingVestingSchedule extends Struct {476 readonly start: u32;477 readonly start: u32;477 readonly period: u32;478 readonly period: u32;478 readonly periodCount: u32;479 readonly periodCount: u32;479 readonly perPeriod: Compact<u128>;480 readonly perPeriod: Compact<u128>;480 }481 }481482482 /** @name CumulusPalletXcmpQueueCall (88) */483 /** @name CumulusPalletXcmpQueueCall (86) */483 export interface CumulusPalletXcmpQueueCall extends Enum {484 export interface CumulusPalletXcmpQueueCall extends Enum {484 readonly isServiceOverweight: boolean;485 readonly isServiceOverweight: boolean;485 readonly asServiceOverweight: {486 readonly asServiceOverweight: {515 readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';516 readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';516 }517 }517518518 /** @name PalletXcmCall (89) */519 /** @name PalletXcmCall (87) */519 export interface PalletXcmCall extends Enum {520 export interface PalletXcmCall extends Enum {520 readonly isSend: boolean;521 readonly isSend: boolean;521 readonly asSend: {522 readonly asSend: {577 readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';578 readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';578 }579 }579580580 /** @name XcmVersionedMultiLocation (90) */581 /** @name XcmVersionedMultiLocation (88) */581 export interface XcmVersionedMultiLocation extends Enum {582 export interface XcmVersionedMultiLocation extends Enum {582 readonly isV0: boolean;583 readonly isV0: boolean;583 readonly asV0: XcmV0MultiLocation;584 readonly asV0: XcmV0MultiLocation;586 readonly type: 'V0' | 'V1';587 readonly type: 'V0' | 'V1';587 }588 }588589589 /** @name XcmV0MultiLocation (91) */590 /** @name XcmV0MultiLocation (89) */590 export interface XcmV0MultiLocation extends Enum {591 export interface XcmV0MultiLocation extends Enum {591 readonly isNull: boolean;592 readonly isNull: boolean;592 readonly isX1: boolean;593 readonly isX1: boolean;608 readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';609 readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';609 }610 }610611611 /** @name XcmV0Junction (92) */612 /** @name XcmV0Junction (90) */612 export interface XcmV0Junction extends Enum {613 export interface XcmV0Junction extends Enum {613 readonly isParent: boolean;614 readonly isParent: boolean;614 readonly isParachain: boolean;615 readonly isParachain: boolean;643 readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';644 readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';644 }645 }645646646 /** @name XcmV0JunctionNetworkId (93) */647 /** @name XcmV0JunctionNetworkId (91) */647 export interface XcmV0JunctionNetworkId extends Enum {648 export interface XcmV0JunctionNetworkId extends Enum {648 readonly isAny: boolean;649 readonly isAny: boolean;649 readonly isNamed: boolean;650 readonly isNamed: boolean;653 readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';654 readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';654 }655 }655656656 /** @name XcmV0JunctionBodyId (94) */657 /** @name XcmV0JunctionBodyId (92) */657 export interface XcmV0JunctionBodyId extends Enum {658 export interface XcmV0JunctionBodyId extends Enum {658 readonly isUnit: boolean;659 readonly isUnit: boolean;659 readonly isNamed: boolean;660 readonly isNamed: boolean;667 readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';668 readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';668 }669 }669670670 /** @name XcmV0JunctionBodyPart (95) */671 /** @name XcmV0JunctionBodyPart (93) */671 export interface XcmV0JunctionBodyPart extends Enum {672 export interface XcmV0JunctionBodyPart extends Enum {672 readonly isVoice: boolean;673 readonly isVoice: boolean;673 readonly isMembers: boolean;674 readonly isMembers: boolean;692 readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';693 readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';693 }694 }694695695 /** @name XcmV1MultiLocation (96) */696 /** @name XcmV1MultiLocation (94) */696 export interface XcmV1MultiLocation extends Struct {697 export interface XcmV1MultiLocation extends Struct {697 readonly parents: u8;698 readonly parents: u8;698 readonly interior: XcmV1MultilocationJunctions;699 readonly interior: XcmV1MultilocationJunctions;699 }700 }700701701 /** @name XcmV1MultilocationJunctions (97) */702 /** @name XcmV1MultilocationJunctions (95) */702 export interface XcmV1MultilocationJunctions extends Enum {703 export interface XcmV1MultilocationJunctions extends Enum {703 readonly isHere: boolean;704 readonly isHere: boolean;704 readonly isX1: boolean;705 readonly isX1: boolean;720 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';721 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';721 }722 }722723723 /** @name XcmV1Junction (98) */724 /** @name XcmV1Junction (96) */724 export interface XcmV1Junction extends Enum {725 export interface XcmV1Junction extends Enum {725 readonly isParachain: boolean;726 readonly isParachain: boolean;726 readonly asParachain: Compact<u32>;727 readonly asParachain: Compact<u32>;754 readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';755 readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';755 }756 }756757757 /** @name XcmVersionedXcm (99) */758 /** @name XcmVersionedXcm (97) */758 export interface XcmVersionedXcm extends Enum {759 export interface XcmVersionedXcm extends Enum {759 readonly isV0: boolean;760 readonly isV0: boolean;760 readonly asV0: XcmV0Xcm;761 readonly asV0: XcmV0Xcm;765 readonly type: 'V0' | 'V1' | 'V2';766 readonly type: 'V0' | 'V1' | 'V2';766 }767 }767768768 /** @name XcmV0Xcm (100) */769 /** @name XcmV0Xcm (98) */769 export interface XcmV0Xcm extends Enum {770 export interface XcmV0Xcm extends Enum {770 readonly isWithdrawAsset: boolean;771 readonly isWithdrawAsset: boolean;771 readonly asWithdrawAsset: {772 readonly asWithdrawAsset: {828 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';829 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';829 }830 }830831831 /** @name XcmV0MultiAsset (102) */832 /** @name XcmV0MultiAsset (100) */832 export interface XcmV0MultiAsset extends Enum {833 export interface XcmV0MultiAsset extends Enum {833 readonly isNone: boolean;834 readonly isNone: boolean;834 readonly isAll: boolean;835 readonly isAll: boolean;873 readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';874 readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';874 }875 }875876876 /** @name XcmV1MultiassetAssetInstance (103) */877 /** @name XcmV1MultiassetAssetInstance (101) */877 export interface XcmV1MultiassetAssetInstance extends Enum {878 export interface XcmV1MultiassetAssetInstance extends Enum {878 readonly isUndefined: boolean;879 readonly isUndefined: boolean;879 readonly isIndex: boolean;880 readonly isIndex: boolean;891 readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';892 readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';892 }893 }893894894 /** @name XcmV0Order (106) */895 /** @name XcmV0Order (104) */895 export interface XcmV0Order extends Enum {896 export interface XcmV0Order extends Enum {896 readonly isNull: boolean;897 readonly isNull: boolean;897 readonly isDepositAsset: boolean;898 readonly isDepositAsset: boolean;939 readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';940 readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';940 }941 }941942942 /** @name XcmV0Response (108) */943 /** @name XcmV0Response (106) */943 export interface XcmV0Response extends Enum {944 export interface XcmV0Response extends Enum {944 readonly isAssets: boolean;945 readonly isAssets: boolean;945 readonly asAssets: Vec<XcmV0MultiAsset>;946 readonly asAssets: Vec<XcmV0MultiAsset>;946 readonly type: 'Assets';947 readonly type: 'Assets';947 }948 }948949949 /** @name XcmV0OriginKind (109) */950 /** @name XcmV0OriginKind (107) */950 export interface XcmV0OriginKind extends Enum {951 export interface XcmV0OriginKind extends Enum {951 readonly isNative: boolean;952 readonly isNative: boolean;952 readonly isSovereignAccount: boolean;953 readonly isSovereignAccount: boolean;955 readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';956 readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';956 }957 }957958958 /** @name XcmDoubleEncoded (110) */959 /** @name XcmDoubleEncoded (108) */959 export interface XcmDoubleEncoded extends Struct {960 export interface XcmDoubleEncoded extends Struct {960 readonly encoded: Bytes;961 readonly encoded: Bytes;961 }962 }962963963 /** @name XcmV1Xcm (111) */964 /** @name XcmV1Xcm (109) */964 export interface XcmV1Xcm extends Enum {965 export interface XcmV1Xcm extends Enum {965 readonly isWithdrawAsset: boolean;966 readonly isWithdrawAsset: boolean;966 readonly asWithdrawAsset: {967 readonly asWithdrawAsset: {1029 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';1030 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';1030 }1031 }103110321032 /** @name XcmV1MultiassetMultiAssets (112) */1033 /** @name XcmV1MultiassetMultiAssets (110) */1033 export interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}1034 export interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}103410351035 /** @name XcmV1MultiAsset (114) */1036 /** @name XcmV1MultiAsset (112) */1036 export interface XcmV1MultiAsset extends Struct {1037 export interface XcmV1MultiAsset extends Struct {1037 readonly id: XcmV1MultiassetAssetId;1038 readonly id: XcmV1MultiassetAssetId;1038 readonly fun: XcmV1MultiassetFungibility;1039 readonly fun: XcmV1MultiassetFungibility;1039 }1040 }104010411041 /** @name XcmV1MultiassetAssetId (115) */1042 /** @name XcmV1MultiassetAssetId (113) */1042 export interface XcmV1MultiassetAssetId extends Enum {1043 export interface XcmV1MultiassetAssetId extends Enum {1043 readonly isConcrete: boolean;1044 readonly isConcrete: boolean;1044 readonly asConcrete: XcmV1MultiLocation;1045 readonly asConcrete: XcmV1MultiLocation;1047 readonly type: 'Concrete' | 'Abstract';1048 readonly type: 'Concrete' | 'Abstract';1048 }1049 }104910501050 /** @name XcmV1MultiassetFungibility (116) */1051 /** @name XcmV1MultiassetFungibility (114) */1051 export interface XcmV1MultiassetFungibility extends Enum {1052 export interface XcmV1MultiassetFungibility extends Enum {1052 readonly isFungible: boolean;1053 readonly isFungible: boolean;1053 readonly asFungible: Compact<u128>;1054 readonly asFungible: Compact<u128>;1056 readonly type: 'Fungible' | 'NonFungible';1057 readonly type: 'Fungible' | 'NonFungible';1057 }1058 }105810591059 /** @name XcmV1Order (118) */1060 /** @name XcmV1Order (116) */1060 export interface XcmV1Order extends Enum {1061 export interface XcmV1Order extends Enum {1061 readonly isNoop: boolean;1062 readonly isNoop: boolean;1062 readonly isDepositAsset: boolean;1063 readonly isDepositAsset: boolean;1106 readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';1107 readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';1107 }1108 }110811091109 /** @name XcmV1MultiassetMultiAssetFilter (119) */1110 /** @name XcmV1MultiassetMultiAssetFilter (117) */1110 export interface XcmV1MultiassetMultiAssetFilter extends Enum {1111 export interface XcmV1MultiassetMultiAssetFilter extends Enum {1111 readonly isDefinite: boolean;1112 readonly isDefinite: boolean;1112 readonly asDefinite: XcmV1MultiassetMultiAssets;1113 readonly asDefinite: XcmV1MultiassetMultiAssets;1115 readonly type: 'Definite' | 'Wild';1116 readonly type: 'Definite' | 'Wild';1116 }1117 }111711181118 /** @name XcmV1MultiassetWildMultiAsset (120) */1119 /** @name XcmV1MultiassetWildMultiAsset (118) */1119 export interface XcmV1MultiassetWildMultiAsset extends Enum {1120 export interface XcmV1MultiassetWildMultiAsset extends Enum {1120 readonly isAll: boolean;1121 readonly isAll: boolean;1121 readonly isAllOf: boolean;1122 readonly isAllOf: boolean;1126 readonly type: 'All' | 'AllOf';1127 readonly type: 'All' | 'AllOf';1127 }1128 }112811291129 /** @name XcmV1MultiassetWildFungibility (121) */1130 /** @name XcmV1MultiassetWildFungibility (119) */1130 export interface XcmV1MultiassetWildFungibility extends Enum {1131 export interface XcmV1MultiassetWildFungibility extends Enum {1131 readonly isFungible: boolean;1132 readonly isFungible: boolean;1132 readonly isNonFungible: boolean;1133 readonly isNonFungible: boolean;1133 readonly type: 'Fungible' | 'NonFungible';1134 readonly type: 'Fungible' | 'NonFungible';1134 }1135 }113511361136 /** @name XcmV1Response (123) */1137 /** @name XcmV1Response (121) */1137 export interface XcmV1Response extends Enum {1138 export interface XcmV1Response extends Enum {1138 readonly isAssets: boolean;1139 readonly isAssets: boolean;1139 readonly asAssets: XcmV1MultiassetMultiAssets;1140 readonly asAssets: XcmV1MultiassetMultiAssets;1142 readonly type: 'Assets' | 'Version';1143 readonly type: 'Assets' | 'Version';1143 }1144 }114411451145 /** @name XcmV2Xcm (124) */1146 /** @name XcmV2Xcm (122) */1146 export interface XcmV2Xcm extends Vec<XcmV2Instruction> {}1147 export interface XcmV2Xcm extends Vec<XcmV2Instruction> {}114711481148 /** @name XcmV2Instruction (126) */1149 /** @name XcmV2Instruction (124) */1149 export interface XcmV2Instruction extends Enum {1150 export interface XcmV2Instruction extends Enum {1150 readonly isWithdrawAsset: boolean;1151 readonly isWithdrawAsset: boolean;1151 readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;1152 readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;1265 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion';1266 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion';1266 }1267 }126712681268 /** @name XcmV2Response (127) */1269 /** @name XcmV2Response (125) */1269 export interface XcmV2Response extends Enum {1270 export interface XcmV2Response extends Enum {1270 readonly isNull: boolean;1271 readonly isNull: boolean;1271 readonly isAssets: boolean;1272 readonly isAssets: boolean;1277 readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';1278 readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';1278 }1279 }127912801280 /** @name XcmV2TraitsError (130) */1281 /** @name XcmV2TraitsError (128) */1281 export interface XcmV2TraitsError extends Enum {1282 export interface XcmV2TraitsError extends Enum {1282 readonly isOverflow: boolean;1283 readonly isOverflow: boolean;1283 readonly isUnimplemented: boolean;1284 readonly isUnimplemented: boolean;1310 readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable';1311 readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable';1311 }1312 }131213131313 /** @name XcmV2WeightLimit (131) */1314 /** @name XcmV2WeightLimit (129) */1314 export interface XcmV2WeightLimit extends Enum {1315 export interface XcmV2WeightLimit extends Enum {1315 readonly isUnlimited: boolean;1316 readonly isUnlimited: boolean;1316 readonly isLimited: boolean;1317 readonly isLimited: boolean;1317 readonly asLimited: Compact<u64>;1318 readonly asLimited: Compact<u64>;1318 readonly type: 'Unlimited' | 'Limited';1319 readonly type: 'Unlimited' | 'Limited';1319 }1320 }132013211321 /** @name XcmVersionedMultiAssets (132) */1322 /** @name XcmVersionedMultiAssets (130) */1322 export interface XcmVersionedMultiAssets extends Enum {1323 export interface XcmVersionedMultiAssets extends Enum {1323 readonly isV0: boolean;1324 readonly isV0: boolean;1324 readonly asV0: Vec<XcmV0MultiAsset>;1325 readonly asV0: Vec<XcmV0MultiAsset>;1327 readonly type: 'V0' | 'V1';1328 readonly type: 'V0' | 'V1';1328 }1329 }132913301330 /** @name CumulusPalletXcmCall (147) */1331 /** @name CumulusPalletXcmCall (145) */1331 export type CumulusPalletXcmCall = Null;1332 export type CumulusPalletXcmCall = Null;133213331333 /** @name CumulusPalletDmpQueueCall (148) */1334 /** @name CumulusPalletDmpQueueCall (146) */1334 export interface CumulusPalletDmpQueueCall extends Enum {1335 export interface CumulusPalletDmpQueueCall extends Enum {1335 readonly isServiceOverweight: boolean;1336 readonly isServiceOverweight: boolean;1336 readonly asServiceOverweight: {1337 readonly asServiceOverweight: {1340 readonly type: 'ServiceOverweight';1341 readonly type: 'ServiceOverweight';1341 }1342 }134213431343 /** @name PalletInflationCall (149) */1344 /** @name PalletInflationCall (147) */1344 export interface PalletInflationCall extends Enum {1345 export interface PalletInflationCall extends Enum {1345 readonly isStartInflation: boolean;1346 readonly isStartInflation: boolean;1346 readonly asStartInflation: {1347 readonly asStartInflation: {1349 readonly type: 'StartInflation';1350 readonly type: 'StartInflation';1350 }1351 }135113521352 /** @name PalletUniqueCall (150) */1353 /** @name PalletUniqueCall (148) */1353 export interface PalletUniqueCall extends Enum {1354 export interface PalletUniqueCall extends Enum {1354 readonly isCreateCollection: boolean;1355 readonly isCreateCollection: boolean;1355 readonly asCreateCollection: {1356 readonly asCreateCollection: {1498 readonly collectionId: u32;1499 readonly collectionId: u32;1499 readonly newLimit: UpDataStructsCollectionPermissions;1500 readonly newLimit: UpDataStructsCollectionPermissions;1500 } & Struct;1501 } & Struct;1502 readonly isRepartition: boolean;1503 readonly asRepartition: {1504 readonly collectionId: u32;1505 readonly token: u32;1506 readonly amount: u128;1507 } & Struct;1501 readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions';1508 readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition';1502 }1509 }150315101504 /** @name UpDataStructsCollectionMode (156) */1511 /** @name UpDataStructsCollectionMode (154) */1505 export interface UpDataStructsCollectionMode extends Enum {1512 export interface UpDataStructsCollectionMode extends Enum {1506 readonly isNft: boolean;1513 readonly isNft: boolean;1507 readonly isFungible: boolean;1514 readonly isFungible: boolean;1510 readonly type: 'Nft' | 'Fungible' | 'ReFungible';1517 readonly type: 'Nft' | 'Fungible' | 'ReFungible';1511 }1518 }151215191513 /** @name UpDataStructsCreateCollectionData (157) */1520 /** @name UpDataStructsCreateCollectionData (155) */1514 export interface UpDataStructsCreateCollectionData extends Struct {1521 export interface UpDataStructsCreateCollectionData extends Struct {1515 readonly mode: UpDataStructsCollectionMode;1522 readonly mode: UpDataStructsCollectionMode;1516 readonly access: Option<UpDataStructsAccessMode>;1523 readonly access: Option<UpDataStructsAccessMode>;1524 readonly properties: Vec<UpDataStructsProperty>;1531 readonly properties: Vec<UpDataStructsProperty>;1525 }1532 }152615331527 /** @name UpDataStructsAccessMode (159) */1534 /** @name UpDataStructsAccessMode (157) */1528 export interface UpDataStructsAccessMode extends Enum {1535 export interface UpDataStructsAccessMode extends Enum {1529 readonly isNormal: boolean;1536 readonly isNormal: boolean;1530 readonly isAllowList: boolean;1537 readonly isAllowList: boolean;1531 readonly type: 'Normal' | 'AllowList';1538 readonly type: 'Normal' | 'AllowList';1532 }1539 }153315401534 /** @name UpDataStructsCollectionLimits (162) */1541 /** @name UpDataStructsCollectionLimits (160) */1535 export interface UpDataStructsCollectionLimits extends Struct {1542 export interface UpDataStructsCollectionLimits extends Struct {1536 readonly accountTokenOwnershipLimit: Option<u32>;1543 readonly accountTokenOwnershipLimit: Option<u32>;1537 readonly sponsoredDataSize: Option<u32>;1544 readonly sponsoredDataSize: Option<u32>;1544 readonly transfersEnabled: Option<bool>;1551 readonly transfersEnabled: Option<bool>;1545 }1552 }154615531547 /** @name UpDataStructsSponsoringRateLimit (164) */1554 /** @name UpDataStructsSponsoringRateLimit (162) */1548 export interface UpDataStructsSponsoringRateLimit extends Enum {1555 export interface UpDataStructsSponsoringRateLimit extends Enum {1549 readonly isSponsoringDisabled: boolean;1556 readonly isSponsoringDisabled: boolean;1550 readonly isBlocks: boolean;1557 readonly isBlocks: boolean;1551 readonly asBlocks: u32;1558 readonly asBlocks: u32;1552 readonly type: 'SponsoringDisabled' | 'Blocks';1559 readonly type: 'SponsoringDisabled' | 'Blocks';1553 }1560 }155415611555 /** @name UpDataStructsCollectionPermissions (167) */1562 /** @name UpDataStructsCollectionPermissions (165) */1556 export interface UpDataStructsCollectionPermissions extends Struct {1563 export interface UpDataStructsCollectionPermissions extends Struct {1557 readonly access: Option<UpDataStructsAccessMode>;1564 readonly access: Option<UpDataStructsAccessMode>;1558 readonly mintMode: Option<bool>;1565 readonly mintMode: Option<bool>;1559 readonly nesting: Option<UpDataStructsNestingPermissions>;1566 readonly nesting: Option<UpDataStructsNestingPermissions>;1560 }1567 }156115681562 /** @name UpDataStructsNestingPermissions (169) */1569 /** @name UpDataStructsNestingPermissions (167) */1563 export interface UpDataStructsNestingPermissions extends Struct {1570 export interface UpDataStructsNestingPermissions extends Struct {1564 readonly tokenOwner: bool;1571 readonly tokenOwner: bool;1565 readonly collectionAdmin: bool;1572 readonly collectionAdmin: bool;1566 readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;1573 readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;1567 readonly permissive: bool;1568 }1574 }156915751570 /** @name UpDataStructsOwnerRestrictedSet (171) */1576 /** @name UpDataStructsOwnerRestrictedSet (169) */1571 export interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}1577 export interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}157215781573 /** @name UpDataStructsPropertyKeyPermission (177) */1579 /** @name UpDataStructsPropertyKeyPermission (175) */1574 export interface UpDataStructsPropertyKeyPermission extends Struct {1580 export interface UpDataStructsPropertyKeyPermission extends Struct {1575 readonly key: Bytes;1581 readonly key: Bytes;1576 readonly permission: UpDataStructsPropertyPermission;1582 readonly permission: UpDataStructsPropertyPermission;1577 }1583 }157815841579 /** @name UpDataStructsPropertyPermission (179) */1585 /** @name UpDataStructsPropertyPermission (177) */1580 export interface UpDataStructsPropertyPermission extends Struct {1586 export interface UpDataStructsPropertyPermission extends Struct {1581 readonly mutable: bool;1587 readonly mutable: bool;1582 readonly collectionAdmin: bool;1588 readonly collectionAdmin: bool;1583 readonly tokenOwner: bool;1589 readonly tokenOwner: bool;1584 }1590 }158515911586 /** @name UpDataStructsProperty (182) */1592 /** @name UpDataStructsProperty (180) */1587 export interface UpDataStructsProperty extends Struct {1593 export interface UpDataStructsProperty extends Struct {1588 readonly key: Bytes;1594 readonly key: Bytes;1589 readonly value: Bytes;1595 readonly value: Bytes;1590 }1596 }159115971592 /** @name PalletEvmAccountBasicCrossAccountIdRepr (185) */1598 /** @name PalletEvmAccountBasicCrossAccountIdRepr (183) */1593 export interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {1599 export interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {1594 readonly isSubstrate: boolean;1600 readonly isSubstrate: boolean;1595 readonly asSubstrate: AccountId32;1601 readonly asSubstrate: AccountId32;1598 readonly type: 'Substrate' | 'Ethereum';1604 readonly type: 'Substrate' | 'Ethereum';1599 }1605 }160016061601 /** @name UpDataStructsCreateItemData (187) */1607 /** @name UpDataStructsCreateItemData (185) */1602 export interface UpDataStructsCreateItemData extends Enum {1608 export interface UpDataStructsCreateItemData extends Enum {1603 readonly isNft: boolean;1609 readonly isNft: boolean;1604 readonly asNft: UpDataStructsCreateNftData;1610 readonly asNft: UpDataStructsCreateNftData;1609 readonly type: 'Nft' | 'Fungible' | 'ReFungible';1615 readonly type: 'Nft' | 'Fungible' | 'ReFungible';1610 }1616 }161116171612 /** @name UpDataStructsCreateNftData (188) */1618 /** @name UpDataStructsCreateNftData (186) */1613 export interface UpDataStructsCreateNftData extends Struct {1619 export interface UpDataStructsCreateNftData extends Struct {1614 readonly properties: Vec<UpDataStructsProperty>;1620 readonly properties: Vec<UpDataStructsProperty>;1615 }1621 }161616221617 /** @name UpDataStructsCreateFungibleData (189) */1623 /** @name UpDataStructsCreateFungibleData (187) */1618 export interface UpDataStructsCreateFungibleData extends Struct {1624 export interface UpDataStructsCreateFungibleData extends Struct {1619 readonly value: u128;1625 readonly value: u128;1620 }1626 }162116271622 /** @name UpDataStructsCreateReFungibleData (190) */1628 /** @name UpDataStructsCreateReFungibleData (188) */1623 export interface UpDataStructsCreateReFungibleData extends Struct {1629 export interface UpDataStructsCreateReFungibleData extends Struct {1624 readonly constData: Bytes;1630 readonly constData: Bytes;1625 readonly pieces: u128;1631 readonly pieces: u128;1626 }1632 }162716331628 /** @name UpDataStructsCreateItemExData (195) */1634 /** @name UpDataStructsCreateItemExData (193) */1629 export interface UpDataStructsCreateItemExData extends Enum {1635 export interface UpDataStructsCreateItemExData extends Enum {1630 readonly isNft: boolean;1636 readonly isNft: boolean;1631 readonly asNft: Vec<UpDataStructsCreateNftExData>;1637 readonly asNft: Vec<UpDataStructsCreateNftExData>;1638 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';1644 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';1639 }1645 }164016461641 /** @name UpDataStructsCreateNftExData (197) */1647 /** @name UpDataStructsCreateNftExData (195) */1642 export interface UpDataStructsCreateNftExData extends Struct {1648 export interface UpDataStructsCreateNftExData extends Struct {1643 readonly properties: Vec<UpDataStructsProperty>;1649 readonly properties: Vec<UpDataStructsProperty>;1644 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;1650 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;1645 }1651 }164616521647 /** @name UpDataStructsCreateRefungibleExData (204) */1653 /** @name UpDataStructsCreateRefungibleExData (202) */1648 export interface UpDataStructsCreateRefungibleExData extends Struct {1654 export interface UpDataStructsCreateRefungibleExData extends Struct {1649 readonly constData: Bytes;1655 readonly constData: Bytes;1650 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;1656 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;1651 }1657 }165216581653 /** @name PalletUniqueSchedulerCall (206) */1659 /** @name PalletUniqueSchedulerCall (204) */1654 export interface PalletUniqueSchedulerCall extends Enum {1660 export interface PalletUniqueSchedulerCall extends Enum {1655 readonly isScheduleNamed: boolean;1661 readonly isScheduleNamed: boolean;1656 readonly asScheduleNamed: {1662 readonly asScheduleNamed: {1675 readonly type: 'ScheduleNamed' | 'CancelNamed' | 'ScheduleNamedAfter';1681 readonly type: 'ScheduleNamed' | 'CancelNamed' | 'ScheduleNamedAfter';1676 }1682 }167716831678 /** @name FrameSupportScheduleMaybeHashed (208) */1684 /** @name FrameSupportScheduleMaybeHashed (206) */1679 export interface FrameSupportScheduleMaybeHashed extends Enum {1685 export interface FrameSupportScheduleMaybeHashed extends Enum {1680 readonly isValue: boolean;1686 readonly isValue: boolean;1681 readonly asValue: Call;1687 readonly asValue: Call;1684 readonly type: 'Value' | 'Hash';1690 readonly type: 'Value' | 'Hash';1685 }1691 }168616921687 /** @name PalletTemplateTransactionPaymentCall (209) */1693 /** @name PalletTemplateTransactionPaymentCall (207) */1688 export type PalletTemplateTransactionPaymentCall = Null;1694 export type PalletTemplateTransactionPaymentCall = Null;168916951690 /** @name PalletStructureCall (210) */1696 /** @name PalletStructureCall (208) */1691 export type PalletStructureCall = Null;1697 export type PalletStructureCall = Null;169216981693 /** @name PalletRmrkCoreCall (211) */1699 /** @name PalletRmrkCoreCall (209) */1694 export interface PalletRmrkCoreCall extends Enum {1700 export interface PalletRmrkCoreCall extends Enum {1695 readonly isCreateCollection: boolean;1701 readonly isCreateCollection: boolean;1696 readonly asCreateCollection: {1702 readonly asCreateCollection: {1713 } & Struct;1719 } & Struct;1714 readonly isMintNft: boolean;1720 readonly isMintNft: boolean;1715 readonly asMintNft: {1721 readonly asMintNft: {1716 readonly owner: AccountId32;1722 readonly owner: Option<AccountId32>;1717 readonly collectionId: u32;1723 readonly collectionId: u32;1718 readonly recipient: Option<AccountId32>;1724 readonly recipient: Option<AccountId32>;1719 readonly royaltyAmount: Option<Permill>;1725 readonly royaltyAmount: Option<Permill>;1748 readonly asAcceptResource: {1754 readonly asAcceptResource: {1749 readonly rmrkCollectionId: u32;1755 readonly rmrkCollectionId: u32;1750 readonly rmrkNftId: u32;1756 readonly rmrkNftId: u32;1751 readonly rmrkResourceId: u32;1757 readonly resourceId: u32;1752 } & Struct;1758 } & Struct;1753 readonly isAcceptResourceRemoval: boolean;1759 readonly isAcceptResourceRemoval: boolean;1754 readonly asAcceptResourceRemoval: {1760 readonly asAcceptResourceRemoval: {1755 readonly rmrkCollectionId: u32;1761 readonly rmrkCollectionId: u32;1756 readonly rmrkNftId: u32;1762 readonly rmrkNftId: u32;1757 readonly rmrkResourceId: u32;1763 readonly resourceId: u32;1758 } & Struct;1764 } & Struct;1759 readonly isSetProperty: boolean;1765 readonly isSetProperty: boolean;1760 readonly asSetProperty: {1766 readonly asSetProperty: {1796 readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';1802 readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';1797 }1803 }179818041799 /** @name RmrkTraitsResourceResourceTypes (217) */1805 /** @name RmrkTraitsResourceResourceTypes (215) */1800 export interface RmrkTraitsResourceResourceTypes extends Enum {1806 export interface RmrkTraitsResourceResourceTypes extends Enum {1801 readonly isBasic: boolean;1807 readonly isBasic: boolean;1802 readonly asBasic: RmrkTraitsResourceBasicResource;1808 readonly asBasic: RmrkTraitsResourceBasicResource;1807 readonly type: 'Basic' | 'Composable' | 'Slot';1813 readonly type: 'Basic' | 'Composable' | 'Slot';1808 }1814 }180918151810 /** @name RmrkTraitsResourceBasicResource (219) */1816 /** @name RmrkTraitsResourceBasicResource (217) */1811 export interface RmrkTraitsResourceBasicResource extends Struct {1817 export interface RmrkTraitsResourceBasicResource extends Struct {1812 readonly src: Option<Bytes>;1818 readonly src: Option<Bytes>;1813 readonly metadata: Option<Bytes>;1819 readonly metadata: Option<Bytes>;1814 readonly license: Option<Bytes>;1820 readonly license: Option<Bytes>;1815 readonly thumb: Option<Bytes>;1821 readonly thumb: Option<Bytes>;1816 }1822 }181718231818 /** @name RmrkTraitsResourceComposableResource (221) */1824 /** @name RmrkTraitsResourceComposableResource (219) */1819 export interface RmrkTraitsResourceComposableResource extends Struct {1825 export interface RmrkTraitsResourceComposableResource extends Struct {1820 readonly parts: Vec<u32>;1826 readonly parts: Vec<u32>;1821 readonly base: u32;1827 readonly base: u32;1825 readonly thumb: Option<Bytes>;1831 readonly thumb: Option<Bytes>;1826 }1832 }182718331828 /** @name RmrkTraitsResourceSlotResource (222) */1834 /** @name RmrkTraitsResourceSlotResource (220) */1829 export interface RmrkTraitsResourceSlotResource extends Struct {1835 export interface RmrkTraitsResourceSlotResource extends Struct {1830 readonly base: u32;1836 readonly base: u32;1831 readonly src: Option<Bytes>;1837 readonly src: Option<Bytes>;1835 readonly thumb: Option<Bytes>;1841 readonly thumb: Option<Bytes>;1836 }1842 }183718431838 /** @name RmrkTraitsNftAccountIdOrCollectionNftTuple (224) */1844 /** @name RmrkTraitsNftAccountIdOrCollectionNftTuple (222) */1839 export interface RmrkTraitsNftAccountIdOrCollectionNftTuple extends Enum {1845 export interface RmrkTraitsNftAccountIdOrCollectionNftTuple extends Enum {1840 readonly isAccountId: boolean;1846 readonly isAccountId: boolean;1841 readonly asAccountId: AccountId32;1847 readonly asAccountId: AccountId32;1844 readonly type: 'AccountId' | 'CollectionAndNftTuple';1850 readonly type: 'AccountId' | 'CollectionAndNftTuple';1845 }1851 }184618521847 /** @name PalletRmrkEquipCall (228) */1853 /** @name PalletRmrkEquipCall (226) */1848 export interface PalletRmrkEquipCall extends Enum {1854 export interface PalletRmrkEquipCall extends Enum {1849 readonly isCreateBase: boolean;1855 readonly isCreateBase: boolean;1850 readonly asCreateBase: {1856 readonly asCreateBase: {1857 readonly baseId: u32;1863 readonly baseId: u32;1858 readonly theme: RmrkTraitsTheme;1864 readonly theme: RmrkTraitsTheme;1859 } & Struct;1865 } & Struct;1866 readonly isEquippable: boolean;1867 readonly asEquippable: {1868 readonly baseId: u32;1869 readonly slotId: u32;1870 readonly equippables: RmrkTraitsPartEquippableList;1871 } & Struct;1860 readonly type: 'CreateBase' | 'ThemeAdd';1872 readonly type: 'CreateBase' | 'ThemeAdd' | 'Equippable';1861 }1873 }186218741863 /** @name RmrkTraitsPartPartType (230) */1875 /** @name RmrkTraitsPartPartType (229) */1864 export interface RmrkTraitsPartPartType extends Enum {1876 export interface RmrkTraitsPartPartType extends Enum {1865 readonly isFixedPart: boolean;1877 readonly isFixedPart: boolean;1866 readonly asFixedPart: RmrkTraitsPartFixedPart;1878 readonly asFixedPart: RmrkTraitsPartFixedPart;1869 readonly type: 'FixedPart' | 'SlotPart';1881 readonly type: 'FixedPart' | 'SlotPart';1870 }1882 }187118831872 /** @name RmrkTraitsPartFixedPart (232) */1884 /** @name RmrkTraitsPartFixedPart (231) */1873 export interface RmrkTraitsPartFixedPart extends Struct {1885 export interface RmrkTraitsPartFixedPart extends Struct {1874 readonly id: u32;1886 readonly id: u32;1875 readonly z: u32;1887 readonly z: u32;1876 readonly src: Bytes;1888 readonly src: Bytes;1877 }1889 }187818901879 /** @name RmrkTraitsPartSlotPart (233) */1891 /** @name RmrkTraitsPartSlotPart (232) */1880 export interface RmrkTraitsPartSlotPart extends Struct {1892 export interface RmrkTraitsPartSlotPart extends Struct {1881 readonly id: u32;1893 readonly id: u32;1882 readonly equippable: RmrkTraitsPartEquippableList;1894 readonly equippable: RmrkTraitsPartEquippableList;1883 readonly src: Bytes;1895 readonly src: Bytes;1884 readonly z: u32;1896 readonly z: u32;1885 }1897 }188618981887 /** @name RmrkTraitsPartEquippableList (234) */1899 /** @name RmrkTraitsPartEquippableList (233) */1888 export interface RmrkTraitsPartEquippableList extends Enum {1900 export interface RmrkTraitsPartEquippableList extends Enum {1889 readonly isAll: boolean;1901 readonly isAll: boolean;1890 readonly isEmpty: boolean;1902 readonly isEmpty: boolean;1893 readonly type: 'All' | 'Empty' | 'Custom';1905 readonly type: 'All' | 'Empty' | 'Custom';1894 }1906 }189519071896 /** @name RmrkTraitsTheme (236) */1908 /** @name RmrkTraitsTheme (235) */1897 export interface RmrkTraitsTheme extends Struct {1909 export interface RmrkTraitsTheme extends Struct {1898 readonly name: Bytes;1910 readonly name: Bytes;1899 readonly properties: Vec<RmrkTraitsThemeThemeProperty>;1911 readonly properties: Vec<RmrkTraitsThemeThemeProperty>;1900 readonly inherit: bool;1912 readonly inherit: bool;1901 }1913 }190219141903 /** @name RmrkTraitsThemeThemeProperty (238) */1915 /** @name RmrkTraitsThemeThemeProperty (237) */1904 export interface RmrkTraitsThemeThemeProperty extends Struct {1916 export interface RmrkTraitsThemeThemeProperty extends Struct {1905 readonly key: Bytes;1917 readonly key: Bytes;1906 readonly value: Bytes;1918 readonly value: Bytes;2323 /** @name CumulusPalletDmpQueueEvent (284) */2335 /** @name CumulusPalletDmpQueueEvent (284) */2324 export interface CumulusPalletDmpQueueEvent extends Enum {2336 export interface CumulusPalletDmpQueueEvent extends Enum {2325 readonly isInvalidFormat: boolean;2337 readonly isInvalidFormat: boolean;2326 readonly asInvalidFormat: U8aFixed;2338 readonly asInvalidFormat: {2339 readonly messageId: U8aFixed;2340 } & Struct;2327 readonly isUnsupportedVersion: boolean;2341 readonly isUnsupportedVersion: boolean;2328 readonly asUnsupportedVersion: U8aFixed;2342 readonly asUnsupportedVersion: {2343 readonly messageId: U8aFixed;2344 } & Struct;2329 readonly isExecutedDownward: boolean;2345 readonly isExecutedDownward: boolean;2330 readonly asExecutedDownward: ITuple<[U8aFixed, XcmV2TraitsOutcome]>;2346 readonly asExecutedDownward: {2347 readonly messageId: U8aFixed;2348 readonly outcome: XcmV2TraitsOutcome;2349 } & Struct;2331 readonly isWeightExhausted: boolean;2350 readonly isWeightExhausted: boolean;2332 readonly asWeightExhausted: ITuple<[U8aFixed, u64, u64]>;2351 readonly asWeightExhausted: {2352 readonly messageId: U8aFixed;2353 readonly remainingWeight: u64;2354 readonly requiredWeight: u64;2355 } & Struct;2333 readonly isOverweightEnqueued: boolean;2356 readonly isOverweightEnqueued: boolean;2334 readonly asOverweightEnqueued: ITuple<[U8aFixed, u64, u64]>;2357 readonly asOverweightEnqueued: {2358 readonly messageId: U8aFixed;2359 readonly overweightIndex: u64;2360 readonly requiredWeight: u64;2361 } & Struct;2335 readonly isOverweightServiced: boolean;2362 readonly isOverweightServiced: boolean;2336 readonly asOverweightServiced: ITuple<[u64, u64]>;2363 readonly asOverweightServiced: {2364 readonly overweightIndex: u64;2365 readonly weightUsed: u64;2366 } & Struct;2337 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';2367 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';2338 }2368 }233923692527 readonly issuer: AccountId32;2557 readonly issuer: AccountId32;2528 readonly baseId: u32;2558 readonly baseId: u32;2529 } & Struct;2559 } & Struct;2560 readonly isEquippablesUpdated: boolean;2561 readonly asEquippablesUpdated: {2562 readonly baseId: u32;2563 readonly slotId: u32;2564 } & Struct;2530 readonly type: 'BaseCreated';2565 readonly type: 'BaseCreated' | 'EquippablesUpdated';2531 }2566 }253225672533 /** @name PalletEvmEvent (293) */2568 /** @name PalletEvmEvent (293) */2814 readonly isCollectionDecimalPointLimitExceeded: boolean;2849 readonly isCollectionDecimalPointLimitExceeded: boolean;2815 readonly isConfirmUnsetSponsorFail: boolean;2850 readonly isConfirmUnsetSponsorFail: boolean;2816 readonly isEmptyArgument: boolean;2851 readonly isEmptyArgument: boolean;2852 readonly isRepartitionCalledOnNonRefungibleCollection: boolean;2817 readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument';2853 readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';2818 }2854 }281928552820 /** @name PalletUniqueSchedulerScheduledV3 (347) */2856 /** @name PalletUniqueSchedulerScheduledV3 (347) */3067 export interface PalletRefungibleError extends Enum {3103 export interface PalletRefungibleError extends Enum {3068 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;3104 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;3069 readonly isWrongRefungiblePieces: boolean;3105 readonly isWrongRefungiblePieces: boolean;3106 readonly isRepartitionWhileNotOwningAllPieces: boolean;3070 readonly isRefungibleDisallowsNesting: boolean;3107 readonly isRefungibleDisallowsNesting: boolean;3071 readonly isSettingPropertiesNotAllowed: boolean;3108 readonly isSettingPropertiesNotAllowed: boolean;3072 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3109 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3073 }3110 }307431113075 /** @name PalletNonfungibleItemData (394) */3112 /** @name PalletNonfungibleItemData (394) */3076 export interface PalletNonfungibleItemData extends Struct {3113 export interface PalletNonfungibleItemData extends Struct {3077 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3114 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3078 }3115 }31163117 /** @name UpDataStructsPropertyScope (396) */3118 export interface UpDataStructsPropertyScope extends Enum {3119 readonly isNone: boolean;3120 readonly isRmrk: boolean;3121 readonly type: 'None' | 'Rmrk';3122 }307931233080 /** @name PalletNonfungibleError (396) */3124 /** @name PalletNonfungibleError (398) */3081 export interface PalletNonfungibleError extends Enum {3125 export interface PalletNonfungibleError extends Enum {3082 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;3126 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;3083 readonly isNonfungibleItemsHaveNoAmount: boolean;3127 readonly isNonfungibleItemsHaveNoAmount: boolean;3084 readonly isCantBurnNftWithChildren: boolean;3128 readonly isCantBurnNftWithChildren: boolean;3085 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';3129 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';3086 }3130 }308731313088 /** @name PalletStructureError (397) */3132 /** @name PalletStructureError (399) */3089 export interface PalletStructureError extends Enum {3133 export interface PalletStructureError extends Enum {3090 readonly isOuroborosDetected: boolean;3134 readonly isOuroborosDetected: boolean;3091 readonly isDepthLimit: boolean;3135 readonly isDepthLimit: boolean;3094 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';3138 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';3095 }3139 }309631403097 /** @name PalletRmrkCoreError (398) */3141 /** @name PalletRmrkCoreError (400) */3098 export interface PalletRmrkCoreError extends Enum {3142 export interface PalletRmrkCoreError extends Enum {3099 readonly isCorruptedCollectionType: boolean;3143 readonly isCorruptedCollectionType: boolean;3100 readonly isNftTypeEncodeError: boolean;3144 readonly isNftTypeEncodeError: boolean;3101 readonly isRmrkPropertyKeyIsTooLong: boolean;3145 readonly isRmrkPropertyKeyIsTooLong: boolean;3102 readonly isRmrkPropertyValueIsTooLong: boolean;3146 readonly isRmrkPropertyValueIsTooLong: boolean;3147 readonly isRmrkPropertyIsNotFound: boolean;3103 readonly isUnableToDecodeRmrkData: boolean;3148 readonly isUnableToDecodeRmrkData: boolean;3104 readonly isCollectionNotEmpty: boolean;3149 readonly isCollectionNotEmpty: boolean;3105 readonly isNoAvailableCollectionId: boolean;3150 readonly isNoAvailableCollectionId: boolean;3112 readonly isCannotSendToDescendentOrSelf: boolean;3157 readonly isCannotSendToDescendentOrSelf: boolean;3113 readonly isCannotAcceptNonOwnedNft: boolean;3158 readonly isCannotAcceptNonOwnedNft: boolean;3114 readonly isCannotRejectNonOwnedNft: boolean;3159 readonly isCannotRejectNonOwnedNft: boolean;3160 readonly isCannotRejectNonPendingNft: boolean;3115 readonly isResourceNotPending: boolean;3161 readonly isResourceNotPending: boolean;3162 readonly isNoAvailableResourceId: boolean;3116 readonly type: 'CorruptedCollectionType' | 'NftTypeEncodeError' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'ResourceNotPending';3163 readonly type: 'CorruptedCollectionType' | 'NftTypeEncodeError' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';3117 }3164 }311831653119 /** @name PalletRmrkEquipError (400) */3166 /** @name PalletRmrkEquipError (402) */3120 export interface PalletRmrkEquipError extends Enum {3167 export interface PalletRmrkEquipError extends Enum {3121 readonly isPermissionError: boolean;3168 readonly isPermissionError: boolean;3122 readonly isNoAvailableBaseId: boolean;3169 readonly isNoAvailableBaseId: boolean;3123 readonly isNoAvailablePartId: boolean;3170 readonly isNoAvailablePartId: boolean;3124 readonly isBaseDoesntExist: boolean;3171 readonly isBaseDoesntExist: boolean;3125 readonly isNeedsDefaultThemeFirst: boolean;3172 readonly isNeedsDefaultThemeFirst: boolean;3173 readonly isPartDoesntExist: boolean;3174 readonly isNoEquippableOnFixedPart: boolean;3126 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst';3175 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';3127 }3176 }312831773129 /** @name PalletEvmError (403) */3178 /** @name PalletEvmError (405) */3130 export interface PalletEvmError extends Enum {3179 export interface PalletEvmError extends Enum {3131 readonly isBalanceLow: boolean;3180 readonly isBalanceLow: boolean;3132 readonly isFeeOverflow: boolean;3181 readonly isFeeOverflow: boolean;3137 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';3186 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';3138 }3187 }313931883140 /** @name FpRpcTransactionStatus (406) */3189 /** @name FpRpcTransactionStatus (408) */3141 export interface FpRpcTransactionStatus extends Struct {3190 export interface FpRpcTransactionStatus extends Struct {3142 readonly transactionHash: H256;3191 readonly transactionHash: H256;3143 readonly transactionIndex: u32;3192 readonly transactionIndex: u32;3148 readonly logsBloom: EthbloomBloom;3197 readonly logsBloom: EthbloomBloom;3149 }3198 }315031993151 /** @name EthbloomBloom (408) */3200 /** @name EthbloomBloom (410) */3152 export interface EthbloomBloom extends U8aFixed {}3201 export interface EthbloomBloom extends U8aFixed {}315332023154 /** @name EthereumReceiptReceiptV3 (410) */3203 /** @name EthereumReceiptReceiptV3 (412) */3155 export interface EthereumReceiptReceiptV3 extends Enum {3204 export interface EthereumReceiptReceiptV3 extends Enum {3156 readonly isLegacy: boolean;3205 readonly isLegacy: boolean;3157 readonly asLegacy: EthereumReceiptEip658ReceiptData;3206 readonly asLegacy: EthereumReceiptEip658ReceiptData;3162 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3211 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3163 }3212 }316432133165 /** @name EthereumReceiptEip658ReceiptData (411) */3214 /** @name EthereumReceiptEip658ReceiptData (413) */3166 export interface EthereumReceiptEip658ReceiptData extends Struct {3215 export interface EthereumReceiptEip658ReceiptData extends Struct {3167 readonly statusCode: u8;3216 readonly statusCode: u8;3168 readonly usedGas: U256;3217 readonly usedGas: U256;3169 readonly logsBloom: EthbloomBloom;3218 readonly logsBloom: EthbloomBloom;3170 readonly logs: Vec<EthereumLog>;3219 readonly logs: Vec<EthereumLog>;3171 }3220 }317232213173 /** @name EthereumBlock (412) */3222 /** @name EthereumBlock (414) */3174 export interface EthereumBlock extends Struct {3223 export interface EthereumBlock extends Struct {3175 readonly header: EthereumHeader;3224 readonly header: EthereumHeader;3176 readonly transactions: Vec<EthereumTransactionTransactionV2>;3225 readonly transactions: Vec<EthereumTransactionTransactionV2>;3177 readonly ommers: Vec<EthereumHeader>;3226 readonly ommers: Vec<EthereumHeader>;3178 }3227 }317932283180 /** @name EthereumHeader (413) */3229 /** @name EthereumHeader (415) */3181 export interface EthereumHeader extends Struct {3230 export interface EthereumHeader extends Struct {3182 readonly parentHash: H256;3231 readonly parentHash: H256;3183 readonly ommersHash: H256;3232 readonly ommersHash: H256;3196 readonly nonce: EthereumTypesHashH64;3245 readonly nonce: EthereumTypesHashH64;3197 }3246 }319832473199 /** @name EthereumTypesHashH64 (414) */3248 /** @name EthereumTypesHashH64 (416) */3200 export interface EthereumTypesHashH64 extends U8aFixed {}3249 export interface EthereumTypesHashH64 extends U8aFixed {}320132503202 /** @name PalletEthereumError (419) */3251 /** @name PalletEthereumError (421) */3203 export interface PalletEthereumError extends Enum {3252 export interface PalletEthereumError extends Enum {3204 readonly isInvalidSignature: boolean;3253 readonly isInvalidSignature: boolean;3205 readonly isPreLogExists: boolean;3254 readonly isPreLogExists: boolean;3206 readonly type: 'InvalidSignature' | 'PreLogExists';3255 readonly type: 'InvalidSignature' | 'PreLogExists';3207 }3256 }320832573209 /** @name PalletEvmCoderSubstrateError (420) */3258 /** @name PalletEvmCoderSubstrateError (422) */3210 export interface PalletEvmCoderSubstrateError extends Enum {3259 export interface PalletEvmCoderSubstrateError extends Enum {3211 readonly isOutOfGas: boolean;3260 readonly isOutOfGas: boolean;3212 readonly isOutOfFund: boolean;3261 readonly isOutOfFund: boolean;3213 readonly type: 'OutOfGas' | 'OutOfFund';3262 readonly type: 'OutOfGas' | 'OutOfFund';3214 }3263 }321532643216 /** @name PalletEvmContractHelpersSponsoringModeT (421) */3265 /** @name PalletEvmContractHelpersSponsoringModeT (423) */3217 export interface PalletEvmContractHelpersSponsoringModeT extends Enum {3266 export interface PalletEvmContractHelpersSponsoringModeT extends Enum {3218 readonly isDisabled: boolean;3267 readonly isDisabled: boolean;3219 readonly isAllowlisted: boolean;3268 readonly isAllowlisted: boolean;3220 readonly isGenerous: boolean;3269 readonly isGenerous: boolean;3221 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';3270 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';3222 }3271 }322332723224 /** @name PalletEvmContractHelpersError (423) */3273 /** @name PalletEvmContractHelpersError (425) */3225 export interface PalletEvmContractHelpersError extends Enum {3274 export interface PalletEvmContractHelpersError extends Enum {3226 readonly isNoPermission: boolean;3275 readonly isNoPermission: boolean;3227 readonly type: 'NoPermission';3276 readonly type: 'NoPermission';3228 }3277 }322932783230 /** @name PalletEvmMigrationError (424) */3279 /** @name PalletEvmMigrationError (426) */3231 export interface PalletEvmMigrationError extends Enum {3280 export interface PalletEvmMigrationError extends Enum {3232 readonly isAccountNotEmpty: boolean;3281 readonly isAccountNotEmpty: boolean;3233 readonly isAccountIsNotMigrating: boolean;3282 readonly isAccountIsNotMigrating: boolean;3234 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';3283 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';3235 }3284 }323632853237 /** @name SpRuntimeMultiSignature (426) */3286 /** @name SpRuntimeMultiSignature (428) */3238 export interface SpRuntimeMultiSignature extends Enum {3287 export interface SpRuntimeMultiSignature extends Enum {3239 readonly isEd25519: boolean;3288 readonly isEd25519: boolean;3240 readonly asEd25519: SpCoreEd25519Signature;3289 readonly asEd25519: SpCoreEd25519Signature;3245 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';3294 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';3246 }3295 }324732963248 /** @name SpCoreEd25519Signature (427) */3297 /** @name SpCoreEd25519Signature (429) */3249 export interface SpCoreEd25519Signature extends U8aFixed {}3298 export interface SpCoreEd25519Signature extends U8aFixed {}325032993251 /** @name SpCoreSr25519Signature (429) */3300 /** @name SpCoreSr25519Signature (431) */3252 export interface SpCoreSr25519Signature extends U8aFixed {}3301 export interface SpCoreSr25519Signature extends U8aFixed {}325333023254 /** @name SpCoreEcdsaSignature (430) */3303 /** @name SpCoreEcdsaSignature (432) */3255 export interface SpCoreEcdsaSignature extends U8aFixed {}3304 export interface SpCoreEcdsaSignature extends U8aFixed {}325633053257 /** @name FrameSystemExtensionsCheckSpecVersion (433) */3306 /** @name FrameSystemExtensionsCheckSpecVersion (435) */3258 export type FrameSystemExtensionsCheckSpecVersion = Null;3307 export type FrameSystemExtensionsCheckSpecVersion = Null;325933083260 /** @name FrameSystemExtensionsCheckGenesis (434) */3309 /** @name FrameSystemExtensionsCheckGenesis (436) */3261 export type FrameSystemExtensionsCheckGenesis = Null;3310 export type FrameSystemExtensionsCheckGenesis = Null;326233113263 /** @name FrameSystemExtensionsCheckNonce (437) */3312 /** @name FrameSystemExtensionsCheckNonce (439) */3264 export interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}3313 export interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}326533143266 /** @name FrameSystemExtensionsCheckWeight (438) */3315 /** @name FrameSystemExtensionsCheckWeight (440) */3267 export type FrameSystemExtensionsCheckWeight = Null;3316 export type FrameSystemExtensionsCheckWeight = Null;326833173269 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (439) */3318 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (441) */3270 export interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}3319 export interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}327133203272 /** @name OpalRuntimeRuntime (440) */3321 /** @name OpalRuntimeRuntime (442) */3273 export type OpalRuntimeRuntime = Null;3322 export type OpalRuntimeRuntime = Null;327433233275 /** @name PalletEthereumFakeTransactionFinalizer (441) */3324 /** @name PalletEthereumFakeTransactionFinalizer (443) */3276 export type PalletEthereumFakeTransactionFinalizer = Null;3325 export type PalletEthereumFakeTransactionFinalizer = Null;327733263278} // declare module3327} // declare moduletests/src/nesting/graphs.test.tsdiffbeforeafterboth36 await usingApi(async (api, privateKeyWrapper) => {36 await usingApi(async (api, privateKeyWrapper) => {37 const alice = privateKeyWrapper('//Alice');37 const alice = privateKeyWrapper('//Alice');38 const collection = await buildComplexObjectGraph(api, alice);38 const collection = await buildComplexObjectGraph(api, alice);39 await setCollectionLimitsExpectSuccess(alice, collection, {ownerCanTransfer: true});39 const tokenTwoParent = tokenIdToCross(collection, 1);404041 // to self41 // to self42 await expect(42 await expect(49 'second transaction',49 'second transaction',50 ).to.be.rejectedWith(/structure\.OuroborosDetected/);50 ).to.be.rejectedWith(/structure\.OuroborosDetected/);51 await expect(51 await expect(52 executeTransaction(api, alice, api.tx.unique.transfer(tokenIdToCross(collection, 8), collection, 2, 1)),52 executeTransaction(api, alice, api.tx.unique.transferFrom(tokenTwoParent, tokenIdToCross(collection, 8), collection, 2, 1)),53 'third transaction',53 'third transaction',54 ).to.be.rejectedWith(/structure\.OuroborosDetected/);54 ).to.be.rejectedWith(/structure\.OuroborosDetected/);55 });55 });tests/src/nesting/nest.test.tsdiffbeforeafterboth123 ], 'Children contents check at nesting #2');123 ], 'Children contents check at nesting #2');124124125 // Move token B to a different user outside the nesting tree125 // Move token B to a different user outside the nesting tree126 await transferExpectSuccess(collectionA, tokenB, alice, bob);126 await transferFromExpectSuccess(collectionA, tokenB, alice, targetAddress, bob);127 children = await getTokenChildren(api, collectionA, targetToken);127 children = await getTokenChildren(api, collectionA, targetToken);128 expect(children.length).to.be.equal(1, 'Children length check at unnesting');128 expect(children.length).to.be.equal(1, 'Children length check at unnesting');129 expect(children).to.be.have.deep.members([129 expect(children).to.be.have.deep.members([470 await expect(executeTransaction(470 await expect(executeTransaction(471 api, 471 api, 472 alice, 472 alice, 473 api.tx.unique.transfer(targetAddress, collection, newToken, 1),473 api.tx.unique.transferFrom(targetAddress, {Substrate: bob.address}, collection, newToken, 1),474 ), 'while nesting another\'s token token').to.be.rejectedWith(/common\.AddressNotInAllowlist/);474 ), 'while nesting another\'s token token').to.be.rejectedWith(/common\.AddressNotInAllowlist/);475 expect(await getTokenOwner(api, collection, newToken)).to.be.deep.equal({Substrate: bob.address});475 expect(await getTokenOwner(api, collection, newToken)).to.be.deep.equal({Substrate: bob.address});476476tests/src/nesting/properties.test.tsdiffbeforeafterboth3import {3import {4 addCollectionAdminExpectSuccess,4 addCollectionAdminExpectSuccess,5 createCollectionExpectSuccess,5 createCollectionExpectSuccess,6 setCollectionPermissionsExpectSuccess,6 createItemExpectSuccess,7 createItemExpectSuccess,7 getCreateCollectionResult,8 getCreateCollectionResult,8 transferExpectSuccess,9 transferExpectSuccess,9} from '../util/helpers';10} from '../util/helpers';10import {IKeyringPair} from '@polkadot/types/types';11import {IKeyringPair} from '@polkadot/types/types';12import {tokenIdToAddress} from '../eth/util/helpers';111312let alice: IKeyringPair;14let alice: IKeyringPair;13let bob: IKeyringPair;15let bob: IKeyringPair;522describe('Integration Test: Token Properties', () => {524describe('Integration Test: Token Properties', () => {523 let collection: number;525 let collection: number;524 let token: number;526 let token: number;527 let nestedToken: number;525 let permissions: {permission: any, signers: IKeyringPair[]}[];528 let permissions: {permission: any, signers: IKeyringPair[]}[];526529527 before(async () => {530 before(async () => {544 beforeEach(async () => {547 beforeEach(async () => {545 await usingApi(async () => {548 await usingApi(async () => {546 collection = await createCollectionExpectSuccess();549 collection = await createCollectionExpectSuccess();550 await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {tokenOwner: true}});551547 token = await createItemExpectSuccess(alice, collection, 'NFT');552 token = await createItemExpectSuccess(alice, collection, 'NFT');553 nestedToken = await createItemExpectSuccess(alice, collection, 'NFT', {Ethereum: tokenIdToAddress(collection, token)});554548 await addCollectionAdminExpectSuccess(alice, collection, bob.address);555 await addCollectionAdminExpectSuccess(alice, collection, bob.address);549 await transferExpectSuccess(collection, token, alice, charlie);556 await transferExpectSuccess(collection, token, alice, charlie);682 });689 });683 });690 });691692 it('Assigns properties to a nested token according to permissions', async () => {693 await usingApi(async api => {694 const propertyKeys: string[] = [];695 let i = 0;696 for (const permission of permissions) {697 for (const signer of permission.signers) {698 const key = i + '_' + signer.address;699 propertyKeys.push(key);700701 await expect(executeTransaction(702 api, 703 alice, 704 api.tx.unique.setTokenPropertyPermissions(collection, [{key: key, permission: permission.permission}]), 705 ), `on setting permission ${i} by ${signer.address}`).to.not.be.rejected;706707 await expect(executeTransaction(708 api, 709 signer, 710 api.tx.unique.setTokenProperties(collection, nestedToken, [{key: key, value: 'Serotonin increase'}]), 711 ), `on adding property ${i} by ${signer.address}`).to.not.be.rejected;712 }713714 i++;715 }716717 const properties = (await api.rpc.unique.tokenProperties(collection, nestedToken, propertyKeys)).toHuman() as any[];718 const tokensData = (await api.rpc.unique.tokenData(collection, nestedToken, propertyKeys)).toHuman().properties as any[];719 for (let i = 0; i < properties.length; i++) {720 expect(properties[i].value).to.be.equal('Serotonin increase');721 expect(tokensData[i].value).to.be.equal('Serotonin increase');722 }723 });724 });725726 it('Changes properties of a nested token according to permissions', async () => {727 await usingApi(async api => {728 const propertyKeys: string[] = [];729 let i = 0;730 for (const permission of permissions) {731 if (!permission.permission.mutable) continue;732 733 for (const signer of permission.signers) {734 const key = i + '_' + signer.address;735 propertyKeys.push(key);736737 await expect(executeTransaction(738 api, 739 alice, 740 api.tx.unique.setTokenPropertyPermissions(collection, [{key: key, permission: permission.permission}]), 741 ), `on setting permission ${i} by ${signer.address}`).to.not.be.rejected;742743 await expect(executeTransaction(744 api, 745 signer, 746 api.tx.unique.setTokenProperties(collection, nestedToken, [{key: key, value: 'Serotonin increase'}]), 747 ), `on adding property ${i} by ${signer.address}`).to.not.be.rejected;748749 await expect(executeTransaction(750 api, 751 signer, 752 api.tx.unique.setTokenProperties(collection, nestedToken, [{key: key, value: 'Serotonin stable'}]), 753 ), `on changing property ${i} by ${signer.address}`).to.not.be.rejected;754 }755756 i++;757 }758759 const properties = (await api.rpc.unique.tokenProperties(collection, nestedToken, propertyKeys)).toHuman() as any[];760 const tokensData = (await api.rpc.unique.tokenData(collection, nestedToken, propertyKeys)).toHuman().properties as any[];761 for (let i = 0; i < properties.length; i++) {762 expect(properties[i].value).to.be.equal('Serotonin stable');763 expect(tokensData[i].value).to.be.equal('Serotonin stable');764 }765 });766 });767768 it('Deletes properties of a nested token according to permissions', async () => {769 await usingApi(async api => {770 const propertyKeys: string[] = [];771 let i = 0;772773 for (const permission of permissions) {774 if (!permission.permission.mutable) continue;775 776 for (const signer of permission.signers) {777 const key = i + '_' + signer.address;778 propertyKeys.push(key);779780 await expect(executeTransaction(781 api, 782 alice, 783 api.tx.unique.setTokenPropertyPermissions(collection, [{key: key, permission: permission.permission}]), 784 ), `on setting permission ${i} by ${signer.address}`).to.not.be.rejected;785786 await expect(executeTransaction(787 api, 788 signer, 789 api.tx.unique.setTokenProperties(collection, nestedToken, [{key: key, value: 'Serotonin increase'}]), 790 ), `on adding property ${i} by ${signer.address}`).to.not.be.rejected;791792 await expect(executeTransaction(793 api, 794 signer, 795 api.tx.unique.deleteTokenProperties(collection, nestedToken, [key]), 796 ), `on deleting property ${i} by ${signer.address}`).to.not.be.rejected;797 }798 799 i++;800 }801802 const properties = (await api.rpc.unique.tokenProperties(collection, nestedToken, propertyKeys)).toJSON() as any[];803 expect(properties).to.be.empty;804 const tokensData = (await api.rpc.unique.tokenData(collection, nestedToken, propertyKeys)).toJSON().properties as any[];805 expect(tokensData).to.be.empty;806 expect((await api.query.nonfungible.tokenProperties(collection, nestedToken)).toJSON().consumedSpace).to.be.equal(0);807 });808 });684});809});685810686describe('Negative Integration Test: Token Properties', () => {811describe('Negative Integration Test: Token Properties', () => {tests/src/refungible.test.tsdiffbeforeafterboth29 createRefungibleToken,29 createRefungibleToken,30 transfer,30 transfer,31 burnItem,31 burnItem,32 repartitionRFT,32} from './util/helpers';33} from './util/helpers';333434import chai from 'chai';35import chai from 'chai';163 });164 });164 });165 });166167 it('Repartition', async () => {168 await usingApi(async api => {169 const collectionId = (await createCollection(api, alice, {mode: {type: 'ReFungible'}})).collectionId;170 const tokenId = (await createRefungibleToken(api, alice, collectionId, 100n)).itemId;171172 expect(await repartitionRFT(api, collectionId, alice, tokenId, 200n)).to.be.true;173 expect(await getBalance(api, collectionId, alice, tokenId)).to.be.equal(200n);174175 expect(await transfer(api, collectionId, tokenId, alice, bob, 110n)).to.be.true;176 expect(await getBalance(api, collectionId, alice, tokenId)).to.be.equal(90n);177 expect(await getBalance(api, collectionId, bob, tokenId)).to.be.equal(110n);178179 await expect(repartitionRFT(api, collectionId, alice, tokenId, 80n)).to.eventually.be.rejected;180181 expect(await transfer(api, collectionId, tokenId, alice, bob, 90n)).to.be.true;182 expect(await getBalance(api, collectionId, alice, tokenId)).to.be.equal(0n);183 expect(await getBalance(api, collectionId, bob, tokenId)).to.be.equal(200n);184185 expect(await repartitionRFT(api, collectionId, bob, tokenId, 150n)).to.be.true;186 await expect(transfer(api, collectionId, tokenId, bob, alice, 160n)).to.eventually.be.rejected;187 });188 });165});189});166190tests/src/rmrk/acceptNft.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/addResource.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/addTheme.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/burnNft.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/changeCollectionIssuer.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/createBase.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/createCollection.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/deleteCollection.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/equipNft.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/getOwnedNfts.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/lockCollection.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/mintNft.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/rejectNft.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/removeResource.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/rmrk.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/rmrkIsolation.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/sendNft.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/setCollectionProperty.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/setEquippableList.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/setNftProperty.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/setResourcePriorities.test.tsdiffbeforeafterbothno changes
tests/src/rmrk/util/fetch.tsdiffbeforeafterbothno changes
tests/src/rmrk/util/helpers.tsdiffbeforeafterbothno changes
tests/src/rmrk/util/tx.tsdiffbeforeafterbothno changes
tests/src/substrate/substrate-api.tsdiffbeforeafterboth59 };59 };60}60}6162export async function getApiConnection(settings: ApiOptions | undefined = undefined): Promise<ApiPromise> {63 settings = settings || defaultApiOptions();64 const api = new ApiPromise(settings);6566 if (api) {67 await api.isReadyOrError;68 }6970 return api;71}617262export default async function usingApi<T = void>(action: (api: ApiPromise, privateKeyWrapper: (account: string) => IKeyringPair) => Promise<T>, settings: ApiOptions | undefined = undefined): Promise<T> {73export default async function usingApi<T = void>(action: (api: ApiPromise, privateKeyWrapper: (account: string) => IKeyringPair) => Promise<T>, settings: ApiOptions | undefined = undefined): Promise<T> {63 settings = settings || defaultApiOptions();74 settings = settings || defaultApiOptions();tests/src/util/helpers.tsdiffbeforeafterboth830 });830 });831}831}832833export async function burnItemExpectFailure(sender: IKeyringPair, collectionId: number, tokenId: number, value: number | bigint = 1) {834 await usingApi(async (api) => {835 const tx = api.tx.unique.burnItem(collectionId, tokenId, value);836837 const events = await expect(submitTransactionExpectFailAsync(sender, tx)).to.be.rejected;838 const result = getCreateCollectionResult(events);839 // tslint:disable-next-line:no-unused-expression840 expect(result.success).to.be.false;841 });842}843844export async function burnFromExpectSuccess(sender: IKeyringPair, from: IKeyringPair | CrossAccountId, collectionId: number, tokenId: number, value: number | bigint = 1) {845 await usingApi(async (api) => {846 const tx = api.tx.unique.burnFrom(collectionId, normalizeAccountId(from), tokenId, value);847 const events = await submitTransactionAsync(sender, tx);848 return getGenericResult(events).success;849 });850}832851833export async function852export async function834approve(853approve(1005 expectedBlockNumber, 1024 expectedBlockNumber, 1006 repetitions > 1 ? [period, repetitions] : null, 1025 repetitions > 1 ? [period, repetitions] : null, 1007 0, 1026 0, 1008 {value: operationTx as any},1027 {Value: operationTx as any},1009 );1028 );101010291011 const events = await submitTransactionAsync(sender, scheduleTx);1030 const events = await submitTransactionAsync(sender, scheduleTx);1032 expectedBlockNumber, 1051 expectedBlockNumber, 1033 repetitions <= 1 ? null : [period, repetitions], 1052 repetitions <= 1 ? null : [period, repetitions], 1034 0, 1053 0, 1035 {value: operationTx as any},1054 {Value: operationTx as any},1036 );1055 );103710561038 //const events = 1057 //const events = 136113801362 let tx;1381 let tx;1363 if (createMode === 'NFT') {1382 if (createMode === 'NFT') {1364 const data = api.createType('UpDataStructsCreateItemData', {NFT: {properties: props}});1383 const data = api.createType('UpDataStructsCreateItemData', {NFT: {properties: props}}) as UpDataStructsCreateItemData;1365 tx = api.tx.unique.createItem(collectionId, normalizeAccountId(owner), data);1384 tx = api.tx.unique.createItem(collectionId, normalizeAccountId(owner), data);1366 } else {1385 } else {1367 tx = api.tx.unique.createItem(collectionId, normalizeAccountId(owner), createMode);1386 tx = api.tx.unique.createItem(collectionId, normalizeAccountId(owner), createMode);1631 });1650 });1632}1651}16521653export async function repartitionRFT(1654 api: ApiPromise,1655 collectionId: number,1656 sender: IKeyringPair,1657 tokenId: number,1658 amount: bigint,1659): Promise<boolean> {1660 const tx = api.tx.unique.repartition(collectionId, tokenId, amount);1661 const events = await submitTransactionAsync(sender, tx);1662 const result = getGenericResult(events);16631664 return result.success;1665}16331666