difftreelog
Merge branch 'develop' into feature/CORE-386_1
in: master
37 files changed
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5356,7 +5356,7 @@
"pallet-transaction-payment-rpc-runtime-api",
"pallet-treasury",
"pallet-unique",
- "pallet-unq-scheduler",
+ "pallet-unique-scheduler",
"pallet-xcm",
"parachain-info",
"parity-scale-codec 3.1.2",
@@ -6646,7 +6646,7 @@
]
[[package]]
-name = "pallet-unq-scheduler"
+name = "pallet-unique-scheduler"
version = "0.1.0"
dependencies = [
"frame-benchmarking",
@@ -8590,7 +8590,7 @@
"pallet-transaction-payment-rpc-runtime-api",
"pallet-treasury",
"pallet-unique",
- "pallet-unq-scheduler",
+ "pallet-unique-scheduler",
"pallet-xcm",
"parachain-info",
"parity-scale-codec 3.1.2",
@@ -12643,7 +12643,7 @@
"pallet-transaction-payment-rpc-runtime-api",
"pallet-treasury",
"pallet-unique",
- "pallet-unq-scheduler",
+ "pallet-unique-scheduler",
"pallet-xcm",
"parachain-info",
"parity-scale-codec 3.1.2",
@@ -12688,6 +12688,7 @@
"pallet-nonfungible",
"pallet-refungible",
"pallet-unique",
+ "pallet-unique-scheduler",
"parity-scale-codec 3.1.2",
"rmrk-rpc",
"scale-info",
Makefilediffbeforeafterboth--- a/Makefile
+++ b/Makefile
@@ -65,6 +65,14 @@
--template .maintain/frame-weight-template.hbs --steps=50 --repeat=200 --heap-pages=4096 \
--output=./pallets/$(PALLET)/src/weights.rs
+.PHONY: _bench2
+_bench2:
+ cargo run --release --features runtime-benchmarks,unique-runtime -- \
+ benchmark pallet --pallet pallet-$(PALLET) \
+ --wasm-execution compiled --extrinsic '*' \
+ --template .maintain/frame-weight-template.hbs --steps=50 --repeat=200 --heap-pages=4096 \
+ --output=./pallets/$(PALLET_DIR)/src/weights.rs
+
.PHONY: bench-evm-migration
bench-evm-migration:
make _bench PALLET=evm-migration
@@ -93,9 +101,13 @@
bench-structure:
make _bench PALLET=structure
+.PHONY: bench-scheduler
+bench-scheduler:
+ make _bench2 PALLET=unique-scheduler PALLET_DIR=scheduler
+
.PHONY: bench-rmrk-core
bench-rmrk-core:
make _bench PALLET=proxy-rmrk-core
.PHONY: bench
-bench: bench-evm-migration bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible bench-rmrk-core
+bench: bench-evm-migration bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible bench-scheduler bench-rmrk-core
pallets/common/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/common/src/benchmarking.rs
+++ b/pallets/common/src/benchmarking.rs
@@ -20,7 +20,7 @@
use frame_benchmarking::{benchmarks, account};
use up_data_structs::{
CollectionMode, CreateCollectionData, CollectionId, Property, PropertyKey, PropertyValue,
- CollectionPermissions, NestingRule, MAX_COLLECTION_NAME_LENGTH,
+ CollectionPermissions, NestingPermissions, MAX_COLLECTION_NAME_LENGTH,
MAX_COLLECTION_DESCRIPTION_LENGTH, MAX_TOKEN_PREFIX_LENGTH, MAX_PROPERTIES_PER_ITEM,
};
use frame_support::{
@@ -94,7 +94,12 @@
description,
token_prefix,
permissions: Some(CollectionPermissions {
- nesting: Some(NestingRule::Permissive),
+ nesting: Some(NestingPermissions {
+ token_owner: false,
+ admin: false,
+ restricted: None,
+ permissive: true,
+ }),
..Default::default()
}),
..Default::default()
pallets/common/src/erc.rsdiffbeforeafterboth--- a/pallets/common/src/erc.rs
+++ b/pallets/common/src/erc.rs
@@ -22,10 +22,7 @@
pub use pallet_evm::{PrecompileOutput, PrecompileResult, PrecompileHandle, account::CrossAccountId};
use pallet_evm_coder_substrate::dispatch_to_evm;
use sp_std::vec::Vec;
-use up_data_structs::{
- Property, SponsoringRateLimit, NestingRule, OwnerRestrictedSet, AccessMode,
- CollectionPermissions,
-};
+use up_data_structs::{Property, SponsoringRateLimit, OwnerRestrictedSet, AccessMode, CollectionPermissions};
use alloc::format;
use crate::{Pallet, CollectionHandle, Config, CollectionProperties};
@@ -219,13 +216,13 @@
#[solidity(rename_selector = "setCollectionNesting")]
fn set_nesting_bool(&mut self, caller: caller, enable: bool) -> Result<void> {
check_is_owner_or_admin(caller, self)?;
- let permissions = CollectionPermissions {
- nesting: Some(match enable {
- false => NestingRule::Disabled,
- true => NestingRule::Owner,
- }),
- ..Default::default()
- };
+
+ let mut permissions = self.collection.permissions.clone();
+ let mut nesting = permissions.nesting().clone();
+ nesting.token_owner = enable;
+ nesting.restricted = None;
+ permissions.nesting = Some(nesting);
+
self.collection.permissions = <Pallet<T>>::clamp_permissions(
self.collection.mode.clone(),
&self.collection.permissions,
@@ -246,30 +243,31 @@
if collections.is_empty() {
return Err("no addresses provided".into());
}
- if collections.len() >= OwnerRestrictedSet::bound() {
- return Err(Error::Revert(format!(
- "out of bound: {} >= {}",
- collections.len(),
- OwnerRestrictedSet::bound()
- )));
- }
check_is_owner_or_admin(caller, self)?;
- let permissions = CollectionPermissions {
- nesting: Some(match enable {
- false => NestingRule::Disabled,
- true => {
- let mut bv = OwnerRestrictedSet::new();
- for i in collections {
- bv.try_insert(crate::eth::map_eth_to_id(&i).ok_or_else(|| {
- Error::Revert("can't convert address into collection id".into())
- })?)
- .map_err(|e| Error::Revert(format!("{:?}", e)))?;
- }
- NestingRule::OwnerRestricted(bv)
+
+ let mut permissions = self.collection.permissions.clone();
+ match enable {
+ false => {
+ let mut nesting = permissions.nesting().clone();
+ nesting.token_owner = false;
+ nesting.restricted = None;
+ permissions.nesting = Some(nesting);
+ }
+ true => {
+ let mut bv = OwnerRestrictedSet::new();
+ for i in collections {
+ bv.try_insert(crate::eth::map_eth_to_id(&i).ok_or(Error::Revert(
+ "Can't convert address into collection id".into(),
+ ))?)
+ .map_err(|_| "too many collections")?;
}
- }),
- ..Default::default()
+ let mut nesting = permissions.nesting().clone();
+ nesting.token_owner = true;
+ nesting.restricted = Some(bv);
+ permissions.nesting = Some(nesting);
+ }
};
+
self.collection.permissions = <Pallet<T>>::clamp_permissions(
self.collection.mode.clone(),
&self.collection.permissions,
pallets/common/src/lib.rsdiffbeforeafterboth--- a/pallets/common/src/lib.rs
+++ b/pallets/common/src/lib.rs
@@ -430,10 +430,8 @@
/// Not sufficient funds to perform action
NotSufficientFounds,
- /// Collection has nesting disabled
- NestingIsDisabled,
- /// Only owner may nest tokens under this collection
- OnlyOwnerAllowedToNest,
+ /// User not passed nesting rule
+ UserIsNotAllowedToNest,
/// Only tokens from specific collections may nest tokens under this
SourceCollectionIsNotAllowedToNest,
@@ -1212,7 +1210,11 @@
limit_default_clone!(old_limit, new_limit,
access => {},
mint_mode => {},
- nesting => {},
+ nesting => ensure!(
+ // Permissive is only allowed for tests and internal usage of chain for now
+ old_limit.permissive || !new_limit.permissive,
+ <Error<T>>::NoPermission,
+ ),
);
Ok(new_limit)
}
pallets/nonfungible/src/lib.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/lib.rs
+++ b/pallets/nonfungible/src/lib.rs
@@ -27,8 +27,8 @@
};
use up_data_structs::{
AccessMode, CollectionId, CustomDataLimit, TokenId, CreateCollectionData, CreateNftExData,
- mapping::TokenAddressMapping, NestingRule, budget::Budget, Property, PropertyPermission,
- PropertyKey, PropertyKeyPermission, Properties, PropertyScope, TrySetProperty, TokenChild,
+ mapping::TokenAddressMapping, budget::Budget, Property, PropertyPermission, PropertyKey,
+ PropertyKeyPermission, Properties, PropertyScope, TrySetProperty, TokenChild,
};
use pallet_evm::{account::CrossAccountId, Pallet as PalletEvm};
use pallet_common::{
@@ -996,38 +996,29 @@
under: TokenId,
nesting_budget: &dyn Budget,
) -> DispatchResult {
- fn ensure_sender_allowed<T: Config>(
- collection: CollectionId,
- token: TokenId,
- for_nest: (CollectionId, TokenId),
- sender: T::CrossAccountId,
- budget: &dyn Budget,
- ) -> DispatchResult {
+ let nesting = handle.permissions.nesting();
+ if nesting.permissive {
+ // Pass
+ } else if nesting.token_owner
+ && <PalletStructure<T>>::check_indirectly_owned(
+ sender.clone(),
+ handle.id,
+ under,
+ Some(from),
+ nesting_budget,
+ )? {
+ // Pass
+ } else if nesting.admin && handle.is_owner_or_admin(&sender) {
+ // Pass
+ } else {
+ fail!(<CommonError<T>>::UserIsNotAllowedToNest);
+ }
+
+ if let Some(whitelist) = &nesting.restricted {
ensure!(
- <PalletStructure<T>>::check_indirectly_owned(
- sender,
- collection,
- token,
- Some(for_nest),
- budget
- )?,
- <CommonError<T>>::OnlyOwnerAllowedToNest,
+ whitelist.contains(&from.0),
+ <CommonError<T>>::SourceCollectionIsNotAllowedToNest
);
- Ok(())
- }
- match handle.permissions.nesting() {
- NestingRule::Disabled => fail!(<CommonError<T>>::NestingIsDisabled),
- NestingRule::Owner => {
- ensure_sender_allowed::<T>(handle.id, under, from, sender, nesting_budget)?
- }
- NestingRule::OwnerRestricted(whitelist) => {
- ensure!(
- whitelist.contains(&from.0),
- <CommonError<T>>::SourceCollectionIsNotAllowedToNest
- );
- ensure_sender_allowed::<T>(handle.id, under, from, sender, nesting_budget)?
- }
- NestingRule::Permissive => {}
}
Ok(())
}
pallets/proxy-rmrk-core/src/lib.rsdiffbeforeafterboth--- a/pallets/proxy-rmrk-core/src/lib.rs
+++ b/pallets/proxy-rmrk-core/src/lib.rs
@@ -200,7 +200,13 @@
.try_into()
.map_err(|_| <CommonError<T>>::CollectionTokenPrefixLimitExceeded)?,
permissions: Some(CollectionPermissions {
- nesting: Some(NestingRule::Owner),
+ nesting: Some(NestingPermissions {
+ token_owner: true,
+ admin: false,
+ restricted: None,
+
+ permissive: false,
+ }),
..Default::default()
}),
..Default::default()
@@ -600,7 +606,7 @@
&budget,
)
.map_err(|err| {
- if err == <CommonError<T>>::OnlyOwnerAllowedToNest.into() {
+ if err == <CommonError<T>>::UserIsNotAllowedToNest.into() {
<Error<T>>::CannotAcceptNonOwnedNft.into()
} else {
Self::map_unique_err_to_proxy(err)
pallets/scheduler/Cargo.tomldiffbeforeafterboth--- a/pallets/scheduler/Cargo.toml
+++ b/pallets/scheduler/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "pallet-unq-scheduler"
+name = "pallet-unique-scheduler"
version = "0.1.0"
authors = ["Unique Network <support@uniquenetwork.io>"]
edition = "2021"
pallets/scheduler/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/scheduler/src/benchmarking.rs
+++ b/pallets/scheduler/src/benchmarking.rs
@@ -34,35 +34,57 @@
//! Scheduler pallet benchmarking.
-#![cfg(feature = "runtime-benchmarks")]
-
use super::*;
-use sp_std::{vec, prelude::*};
+use frame_benchmarking::{benchmarks, account};
+use frame_support::{
+ ensure,
+ traits::{OnInitialize},
+};
use frame_system::RawOrigin;
-use frame_support::{ensure, traits::OnInitialize};
-use frame_benchmarking::{benchmarks, impl_benchmark_test_suite};
+use sp_runtime::traits::Hash;
+use sp_std::{prelude::*, vec};
-use crate::Module as Scheduler;
+use crate::Pallet as Scheduler;
use frame_system::Pallet as System;
+use frame_support::traits::Currency;
const BLOCK_NUMBER: u32 = 2;
-// Add `n` named items to the schedule
-fn fill_schedule<T: Config>(when: T::BlockNumber, n: u32) -> Result<(), &'static str> {
- // Essentially a no-op call.
- let call = frame_system::Call::set_storage { items: vec![] };
+/// Add `n` named items to the schedule.
+///
+/// For `resolved`:
+/// - `None`: aborted (hash without preimage)
+/// - `Some(true)`: hash resolves into call if possible, plain call otherwise
+/// - `Some(false)`: plain call
+fn fill_schedule<T: Config>(
+ when: T::BlockNumber,
+ n: u32,
+ periodic: bool,
+ resolved: Option<bool>,
+) -> Result<(), &'static str> {
+ let t = DispatchTime::At(when);
+ let caller = account("user", 0, 1);
+
+ // Give the sender account max funds for transfer (their account will never reasonably be killed).
+ T::Currency::make_free_balance_be(&caller, T::Currency::minimum_balance());
+
for i in 0..n {
- // Named schedule is strictly heavier than anonymous
- Scheduler::<T>::do_schedule_named(
- i.encode(),
- DispatchTime::At(when),
- // Add periodicity
- Some((T::BlockNumber::one(), 100)),
- // HARD_DEADLINE priority means it gets executed no matter what
- 0,
- frame_system::RawOrigin::Root.into(),
- call.clone().into(),
- )?;
+ let (call, hash) = call_and_hash::<T>(i);
+ let call_or_hash = match resolved {
+ Some(_) => call.into(),
+ None => CallOrHashOf::<T>::Hash(hash),
+ };
+ let period = match periodic {
+ true => Some(((i + 100).into(), 100)),
+ false => None,
+ };
+
+ let slice_id: [u8; 4] = i.encode().try_into().unwrap();
+ let mut id: [u8; 16] = [0; 16];
+ id[..4].clone_from_slice(&slice_id);
+
+ let origin = frame_system::RawOrigin::Signed(caller.clone()).into();
+ Scheduler::<T>::do_schedule_named(id, t, period, 0, origin, call_or_hash)?;
}
ensure!(
Agenda::<T>::get(when).len() == n as usize,
@@ -71,54 +93,121 @@
Ok(())
}
+fn call_and_hash<T: Config>(i: u32) -> (<T as Config>::Call, T::Hash) {
+ // Essentially a no-op call.
+ let call: <T as Config>::Call = frame_system::Call::remark { remark: i.encode() }.into();
+ let hash = T::Hashing::hash_of(&call);
+ (call, hash)
+}
+
benchmarks! {
- schedule {
- let s in 0 .. T::MaxScheduledPerBlock::get();
+ on_initialize_periodic_named_resolved {
+ let s in 1 .. T::MaxScheduledPerBlock::get();
let when = BLOCK_NUMBER.into();
- let periodic = Some((T::BlockNumber::one(), 100));
- let priority = 0;
- // Essentially a no-op call.
- let call = Box::new(frame_system::Call::set_storage { items: vec![] }.into());
+ fill_schedule::<T>(when, s, true, Some(true))?;
+ }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }
+ verify {
+ assert_eq!(System::<T>::event_count(), s);
+ for i in 0..s {
+ assert_eq!(Agenda::<T>::get(when + (i + 100).into()).len(), 1 as usize);
+ }
+ }
- fill_schedule::<T>(when, s)?;
- }: _(RawOrigin::Root, when, periodic, priority, call)
+ on_initialize_named_resolved {
+ let s in 1 .. T::MaxScheduledPerBlock::get();
+ let when = BLOCK_NUMBER.into();
+ fill_schedule::<T>(when, s, false, Some(true))?;
+ }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }
verify {
- ensure!(
- Agenda::<T>::get(when).len() == (s + 1) as usize,
- "didn't add to schedule"
- );
+ assert_eq!(System::<T>::event_count(), s);
+ assert!(Agenda::<T>::iter().count() == 0);
}
- cancel {
+ on_initialize_periodic {
let s in 1 .. T::MaxScheduledPerBlock::get();
let when = BLOCK_NUMBER.into();
+ fill_schedule::<T>(when, s, true, Some(false))?;
+ }: { Scheduler::<T>::on_initialize(when); }
+ verify {
+ assert_eq!(System::<T>::event_count(), s);
+ for i in 0..s {
+ assert_eq!(Agenda::<T>::get(when + (i + 100).into()).len(), 1 as usize);
+ }
+ }
- fill_schedule::<T>(when, s)?;
- assert_eq!(Agenda::<T>::get(when).len(), s as usize);
- }: _(RawOrigin::Root, when, 0)
+ on_initialize_periodic_resolved {
+ let s in 1 .. T::MaxScheduledPerBlock::get();
+ let when = BLOCK_NUMBER.into();
+ fill_schedule::<T>(when, s, true, Some(true))?;
+ }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }
verify {
- ensure!(
- Lookup::<T>::get(0.encode()).is_none(),
- "didn't remove from lookup"
- );
- // Removed schedule is NONE
- ensure!(
- Agenda::<T>::get(when)[0].is_none(),
- "didn't remove from schedule"
- );
+ assert_eq!(System::<T>::event_count(), s );
+ for i in 0..s {
+ assert_eq!(Agenda::<T>::get(when + (i + 100).into()).len(), 1 as usize);
+ }
}
+ on_initialize_aborted {
+ let s in 1 .. T::MaxScheduledPerBlock::get();
+ let when = BLOCK_NUMBER.into();
+ fill_schedule::<T>(when, s, false, None)?;
+ }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }
+ verify {
+ assert_eq!(System::<T>::event_count(), 0);
+ }
+
+ on_initialize_named_aborted {
+ let s in 1 .. T::MaxScheduledPerBlock::get();
+ let when = BLOCK_NUMBER.into();
+ fill_schedule::<T>(when, s, false, Some(false))?;
+ }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }
+ verify {
+ }
+
+ on_initialize_named {
+ let s in 1 .. T::MaxScheduledPerBlock::get();
+ let when = BLOCK_NUMBER.into();
+ fill_schedule::<T>(when, s, false, None)?;
+ }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }
+ verify {
+ assert_eq!(System::<T>::event_count(), 0);
+ }
+
+ on_initialize {
+ let s in 1 .. T::MaxScheduledPerBlock::get();
+ let when = BLOCK_NUMBER.into();
+ fill_schedule::<T>(when, s, false, Some(false))?;
+ }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }
+ verify {
+ assert_eq!(System::<T>::event_count(), s);
+ assert!(Agenda::<T>::iter().count() == 0);
+ }
+
+ on_initialize_resolved {
+ let s in 1 .. T::MaxScheduledPerBlock::get();
+ let when = BLOCK_NUMBER.into();
+ fill_schedule::<T>(when, s, false, Some(true))?;
+ }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }
+ verify {
+ assert_eq!(System::<T>::event_count(), s);
+ assert!(Agenda::<T>::iter().count() == 0);
+ }
+
schedule_named {
+ let caller: T::AccountId = account("user", 0, 1);
+ let origin: RawOrigin<T::AccountId> = frame_system::RawOrigin::Signed(caller.clone());
let s in 0 .. T::MaxScheduledPerBlock::get();
- let id = s.encode();
+ let slice_id: [u8; 4] = s.encode().try_into().unwrap();
+ let mut id: [u8; 16] = [0; 16];
+ id[..4].clone_from_slice(&slice_id);
let when = BLOCK_NUMBER.into();
let periodic = Some((T::BlockNumber::one(), 100));
let priority = 0;
// Essentially a no-op call.
- let call = Box::new(frame_system::Call::set_storage { items: vec![] }.into());
-
- fill_schedule::<T>(when, s)?;
- }: _(RawOrigin::Root, id, when, periodic, priority, call)
+ let inner_call = frame_system::Call::set_storage { items: vec![] }.into();
+ let call = Box::new(CallOrHashOf::<T>::Value(inner_call));
+ fill_schedule::<T>(when, s, true, Some(false))?;
+ }: _(origin, id, when, periodic, priority, call)
verify {
ensure!(
Agenda::<T>::get(when).len() == (s + 1) as usize,
@@ -127,14 +216,16 @@
}
cancel_named {
+ let caller: T::AccountId = account("user", 0, 1);
+ let origin: RawOrigin<T::AccountId> = frame_system::RawOrigin::Signed(caller.clone());
let s in 1 .. T::MaxScheduledPerBlock::get();
let when = BLOCK_NUMBER.into();
-
- fill_schedule::<T>(when, s)?;
- }: _(RawOrigin::Root, 0.encode())
+ let id = 0.encode().try_into().unwrap_or([0; MAX_TASK_ID_LENGTH_IN_BYTES as usize]);
+ fill_schedule::<T>(when, s, true, Some(false))?;
+ }: _(origin, id)
verify {
ensure!(
- Lookup::<T>::get(0.encode()).is_none(),
+ Lookup::<T>::get(id).is_none(),
"didn't remove from lookup"
);
// Removed schedule is NONE
@@ -144,21 +235,5 @@
);
}
- // TODO [#7141]: Make this more complex and flexible so it can be used in automation.
- #[extra]
- on_initialize {
- let s in 0 .. T::MaxScheduledPerBlock::get();
- let when = BLOCK_NUMBER.into();
- fill_schedule::<T>(when, s)?;
- }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }
- verify {
- assert_eq!(System::<T>::event_count(), s);
- // Next block should have all the schedules again
- ensure!(
- Agenda::<T>::get(when + T::BlockNumber::one()).len() == s as usize,
- "didn't append schedule"
- );
- }
+ impl_benchmark_test_suite!(Scheduler, crate::mock::new_test_ext(), crate::mock::Test);
}
-
-impl_benchmark_test_suite!(Scheduler, crate::tests::new_test_ext(), crate::tests::Test,);
pallets/scheduler/src/lib.rsdiffbeforeafterboth--- a/pallets/scheduler/src/lib.rs
+++ b/pallets/scheduler/src/lib.rs
@@ -60,9 +60,8 @@
// Ensure we're `no_std` when compiling for Wasm.
#![cfg_attr(not(feature = "std"), no_std)]
-// FIXME
-// #[cfg(feature = "runtime-benchmarks")]
-// mod benchmarking;
+#[cfg(feature = "runtime-benchmarks")]
+mod benchmarking;
pub mod weights;
@@ -159,11 +158,10 @@
Self::on_initialize_periodic(2) - Self::on_initialize_periodic(1)
}
(true, true, Some(false)) => {
- Self::on_initialize_periodic_named(2) - Self::on_initialize_periodic_named(1)
- }
- (false, false, Some(true)) => {
- Self::on_initialize_resolved(2) - Self::on_initialize_resolved(1)
+ Self::on_initialize_periodic_named_resolved(2)
+ - Self::on_initialize_periodic_named_resolved(1)
}
+ (false, false, Some(true)) => Self::on_initialize(2) - Self::on_initialize(1),
(false, true, Some(true)) => {
Self::on_initialize_named_resolved(2) - Self::on_initialize_named_resolved(1)
}
@@ -608,97 +606,8 @@
}
Ok(when)
- }
-
- fn do_schedule(
- when: DispatchTime<T::BlockNumber>,
- maybe_periodic: Option<schedule::Period<T::BlockNumber>>,
- priority: schedule::Priority,
- origin: T::PalletsOrigin,
- call: CallOrHashOf<T>,
- ) -> Result<TaskAddress<T::BlockNumber>, DispatchError> {
- let when = Self::resolve_time(when)?;
- call.ensure_requested::<T::PreimageProvider>();
-
- // sanitize maybe_periodic
- let maybe_periodic = maybe_periodic
- .filter(|p| p.1 > 1 && !p.0.is_zero())
- // Remove one from the number of repetitions since we will schedule one now.
- .map(|(p, c)| (p, c - 1));
- let s = Some(Scheduled {
- maybe_id: None,
- priority,
- call,
- maybe_periodic,
- origin,
- _phantom: PhantomData::<T::AccountId>::default(),
- });
- Agenda::<T>::append(when, s);
- let index = Agenda::<T>::decode_len(when).unwrap_or(1) as u32 - 1;
- Self::deposit_event(Event::Scheduled { when, index });
-
- Ok((when, index))
}
- fn do_cancel(
- origin: Option<T::PalletsOrigin>,
- (when, index): TaskAddress<T::BlockNumber>,
- ) -> Result<(), DispatchError> {
- let scheduled = Agenda::<T>::try_mutate(when, |agenda| {
- agenda.get_mut(index as usize).map_or(
- Ok(None),
- |s| -> Result<Option<Scheduled<_, _, _, _>>, DispatchError> {
- if let (Some(ref o), Some(ref s)) = (origin, s.borrow()) {
- if matches!(
- T::OriginPrivilegeCmp::cmp_privilege(o, &s.origin),
- Some(Ordering::Less) | None
- ) {
- return Err(BadOrigin.into());
- }
- };
- Ok(s.take())
- },
- )
- })?;
- if let Some(s) = scheduled {
- s.call.ensure_unrequested::<T::PreimageProvider>();
- if let Some(id) = s.maybe_id {
- Lookup::<T>::remove(id);
- }
- Self::deposit_event(Event::Canceled { when, index });
- Ok(())
- } else {
- Err(Error::<T>::NotFound)?
- }
- }
-
- fn do_reschedule(
- (when, index): TaskAddress<T::BlockNumber>,
- new_time: DispatchTime<T::BlockNumber>,
- ) -> Result<TaskAddress<T::BlockNumber>, DispatchError> {
- let new_time = Self::resolve_time(new_time)?;
-
- if new_time == when {
- return Err(Error::<T>::RescheduleNoChange.into());
- }
-
- Agenda::<T>::try_mutate(when, |agenda| -> DispatchResult {
- let task = agenda.get_mut(index as usize).ok_or(Error::<T>::NotFound)?;
- let task = task.take().ok_or(Error::<T>::NotFound)?;
- Agenda::<T>::append(new_time, Some(task));
- Ok(())
- })?;
-
- let new_index = Agenda::<T>::decode_len(new_time).unwrap_or(1) as u32 - 1;
- Self::deposit_event(Event::Canceled { when, index });
- Self::deposit_event(Event::Scheduled {
- when: new_time,
- index: new_index,
- });
-
- Ok((new_time, new_index))
- }
-
fn do_schedule_named(
id: ScheduledId,
when: DispatchTime<T::BlockNumber>,
@@ -789,125 +698,5 @@
Err(Error::<T>::NotFound)?
}
})
- }
-
- fn do_reschedule_named(
- id: ScheduledId,
- new_time: DispatchTime<T::BlockNumber>,
- ) -> Result<TaskAddress<T::BlockNumber>, DispatchError> {
- let new_time = Self::resolve_time(new_time)?;
-
- Lookup::<T>::try_mutate_exists(
- id,
- |lookup| -> Result<TaskAddress<T::BlockNumber>, DispatchError> {
- let (when, index) = lookup.ok_or(Error::<T>::NotFound)?;
-
- if new_time == when {
- return Err(Error::<T>::RescheduleNoChange.into());
- }
-
- Agenda::<T>::try_mutate(when, |agenda| -> DispatchResult {
- let task = agenda.get_mut(index as usize).ok_or(Error::<T>::NotFound)?;
- let task = task.take().ok_or(Error::<T>::NotFound)?;
- Agenda::<T>::append(new_time, Some(task));
-
- Ok(())
- })?;
-
- let new_index = Agenda::<T>::decode_len(new_time).unwrap_or(1) as u32 - 1;
- Self::deposit_event(Event::Canceled { when, index });
- Self::deposit_event(Event::Scheduled {
- when: new_time,
- index: new_index,
- });
-
- *lookup = Some((new_time, new_index));
-
- Ok((new_time, new_index))
- },
- )
- }
-}
-
-impl<T: Config> schedule::v2::Anon<T::BlockNumber, <T as Config>::Call, T::PalletsOrigin>
- for Pallet<T>
-{
- type Address = TaskAddress<T::BlockNumber>;
- type Hash = T::Hash;
-
- fn schedule(
- when: DispatchTime<T::BlockNumber>,
- maybe_periodic: Option<schedule::Period<T::BlockNumber>>,
- priority: schedule::Priority,
- origin: T::PalletsOrigin,
- call: CallOrHashOf<T>,
- ) -> Result<Self::Address, DispatchError> {
- Self::do_schedule(when, maybe_periodic, priority, origin, call)
- }
-
- fn cancel((when, index): Self::Address) -> Result<(), ()> {
- Self::do_cancel(None, (when, index)).map_err(|_| ())
- }
-
- fn reschedule(
- address: Self::Address,
- when: DispatchTime<T::BlockNumber>,
- ) -> Result<Self::Address, DispatchError> {
- Self::do_reschedule(address, when)
- }
-
- fn next_dispatch_time((when, index): Self::Address) -> Result<T::BlockNumber, ()> {
- Agenda::<T>::get(when)
- .get(index as usize)
- .ok_or(())
- .map(|_| when)
- }
-}
-
-impl<T: Config> schedule::v2::Named<T::BlockNumber, <T as Config>::Call, T::PalletsOrigin>
- for Pallet<T>
-{
- type Address = TaskAddress<T::BlockNumber>;
- type Hash = T::Hash;
-
- fn schedule_named(
- id: Vec<u8>,
- when: DispatchTime<T::BlockNumber>,
- maybe_periodic: Option<schedule::Period<T::BlockNumber>>,
- priority: schedule::Priority,
- origin: T::PalletsOrigin,
- call: CallOrHashOf<T>,
- ) -> Result<Self::Address, ()> {
- let inner_id: ScheduledId = id
- .try_into()
- .unwrap_or([0; MAX_TASK_ID_LENGTH_IN_BYTES as usize]);
- Self::do_schedule_named(inner_id, when, maybe_periodic, priority, origin, call)
- .map_err(|_| ())
- }
-
- fn cancel_named(id: Vec<u8>) -> Result<(), ()> {
- let inner_id: ScheduledId = id
- .try_into()
- .unwrap_or([0; MAX_TASK_ID_LENGTH_IN_BYTES as usize]);
- Self::do_cancel_named(None, inner_id).map_err(|_| ())
- }
-
- fn reschedule_named(
- id: Vec<u8>,
- when: DispatchTime<T::BlockNumber>,
- ) -> Result<Self::Address, DispatchError> {
- let inner_id: ScheduledId = id
- .try_into()
- .unwrap_or([0; MAX_TASK_ID_LENGTH_IN_BYTES as usize]);
- Self::do_reschedule_named(inner_id, when)
- }
-
- fn next_dispatch_time(id: Vec<u8>) -> Result<T::BlockNumber, ()> {
- let inner_id: ScheduledId = id
- .try_into()
- .unwrap_or([0; MAX_TASK_ID_LENGTH_IN_BYTES as usize]);
- Lookup::<T>::get(inner_id)
- .and_then(|(when, index)| Agenda::<T>::get(when).get(index as usize).map(|_| when))
- .ok_or(())
}
}
pallets/scheduler/src/weights.rsdiffbeforeafterboth--- a/pallets/scheduler/src/weights.rs
+++ b/pallets/scheduler/src/weights.rs
@@ -1,213 +1,183 @@
-// This file is part of Substrate.
-
-// Copyright (C) 2022 Parity Technologies (UK) Ltd.
-// SPDX-License-Identifier: Apache-2.0
-
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
+// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs
-//! Autogenerated weights for pallet_scheduler
+//! Autogenerated weights for pallet_unique_scheduler
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2022-01-31, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
-//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
+//! DATE: 2022-06-09, STEPS: `50`, REPEAT: 200, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
-// ./target/production/substrate
+// target/release/unique-collator
// benchmark
-// --chain=dev
+// pallet
+// --pallet
+// pallet-unique-scheduler
+// --wasm-execution
+// compiled
+// --extrinsic
+// *
+// --template
+// .maintain/frame-weight-template.hbs
// --steps=50
-// --repeat=20
-// --pallet=pallet_scheduler
-// --extrinsic=*
-// --execution=wasm
-// --wasm-execution=compiled
+// --repeat=200
// --heap-pages=4096
-// --output=./frame/scheduler/src/weights.rs
-// --template=.maintain/frame-weight-template.hbs
-// --header=HEADER-APACHE2
-// --raw
+// --output=./pallets/scheduler/src/weights.rs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
+#![allow(clippy::unnecessary_cast)]
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use sp_std::marker::PhantomData;
-/// Weight functions needed for pallet_scheduler.
+/// Weight functions needed for pallet_unique_scheduler.
pub trait WeightInfo {
fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight;
fn on_initialize_named_resolved(s: u32, ) -> Weight;
+ fn on_initialize_periodic(s: u32, ) -> Weight;
fn on_initialize_periodic_resolved(s: u32, ) -> Weight;
- fn on_initialize_resolved(s: u32, ) -> Weight;
+ fn on_initialize_aborted(s: u32, ) -> Weight;
fn on_initialize_named_aborted(s: u32, ) -> Weight;
- fn on_initialize_aborted(s: u32, ) -> Weight;
- fn on_initialize_periodic_named(s: u32, ) -> Weight;
- fn on_initialize_periodic(s: u32, ) -> Weight;
fn on_initialize_named(s: u32, ) -> Weight;
fn on_initialize(s: u32, ) -> Weight;
- fn schedule(s: u32, ) -> Weight;
- fn cancel(s: u32, ) -> Weight;
+ fn on_initialize_resolved(s: u32, ) -> Weight;
fn schedule_named(s: u32, ) -> Weight;
fn cancel_named(s: u32, ) -> Weight;
}
-/// Weights for pallet_scheduler using the Substrate node and recommended hardware.
+/// Weights for pallet_unique_scheduler using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Scheduler Agenda (r:2 w:2)
- // Storage: Preimage PreimageFor (r:1 w:1)
- // Storage: Preimage StatusFor (r:1 w:1)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {
- (11_587_000 as Weight)
- // Standard Error: 17_000
- .saturating_add((17_428_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(T::DbWeight::get().reads(1 as Weight))
- .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(s as Weight)))
- .saturating_add(T::DbWeight::get().writes(1 as Weight))
- .saturating_add(T::DbWeight::get().writes((4 as Weight).saturating_mul(s as Weight)))
+ (35_999_000 as Weight)
+ // Standard Error: 3_000
+ .saturating_add((32_234_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(4 as Weight))
+ .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
+ .saturating_add(T::DbWeight::get().writes(4 as Weight))
+ .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
}
// Storage: Scheduler Agenda (r:1 w:1)
- // Storage: Preimage PreimageFor (r:1 w:1)
- // Storage: Preimage StatusFor (r:1 w:1)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize_named_resolved(s: u32, ) -> Weight {
- (8_965_000 as Weight)
- // Standard Error: 11_000
- .saturating_add((13_410_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(T::DbWeight::get().reads(1 as Weight))
- .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
- .saturating_add(T::DbWeight::get().writes(1 as Weight))
- .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(s as Weight)))
+ (34_874_000 as Weight)
+ // Standard Error: 2_000
+ .saturating_add((23_114_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(4 as Weight))
+ .saturating_add(T::DbWeight::get().writes(4 as Weight))
+ .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
}
// Storage: Scheduler Agenda (r:2 w:2)
- // Storage: Preimage PreimageFor (r:1 w:1)
- // Storage: Preimage StatusFor (r:1 w:1)
- fn on_initialize_periodic_resolved(s: u32, ) -> Weight {
- (8_654_000 as Weight)
- // Standard Error: 17_000
- .saturating_add((14_990_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(T::DbWeight::get().reads(1 as Weight))
- .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(s as Weight)))
- .saturating_add(T::DbWeight::get().writes(1 as Weight))
- .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(s as Weight)))
- }
- // Storage: Scheduler Agenda (r:1 w:1)
- // Storage: Preimage PreimageFor (r:1 w:1)
- // Storage: Preimage StatusFor (r:1 w:1)
- fn on_initialize_resolved(s: u32, ) -> Weight {
- (9_303_000 as Weight)
- // Standard Error: 10_000
- .saturating_add((12_244_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(T::DbWeight::get().reads(1 as Weight))
- .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
- .saturating_add(T::DbWeight::get().writes(1 as Weight))
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
+ // Storage: Scheduler Lookup (r:0 w:1)
+ fn on_initialize_periodic(s: u32, ) -> Weight {
+ (36_469_000 as Weight)
+ // Standard Error: 3_000
+ .saturating_add((32_202_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(4 as Weight))
+ .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
+ .saturating_add(T::DbWeight::get().writes(4 as Weight))
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
}
// Storage: Scheduler Agenda (r:2 w:2)
- // Storage: Preimage PreimageFor (r:1 w:0)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
- fn on_initialize_named_aborted(s: u32, ) -> Weight {
- (7_506_000 as Weight)
+ fn on_initialize_periodic_resolved(s: u32, ) -> Weight {
+ (35_352_000 as Weight)
// Standard Error: 3_000
- .saturating_add((5_208_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(T::DbWeight::get().reads(2 as Weight))
+ .saturating_add((32_309_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
- .saturating_add(T::DbWeight::get().writes(2 as Weight))
- .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
+ .saturating_add(T::DbWeight::get().writes(4 as Weight))
+ .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
}
// Storage: Scheduler Agenda (r:2 w:2)
- // Storage: Preimage PreimageFor (r:1 w:0)
+ // Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize_aborted(s: u32, ) -> Weight {
- (8_046_000 as Weight)
- // Standard Error: 3_000
- .saturating_add((2_914_000 as Weight).saturating_mul(s as Weight))
+ (11_267_000 as Weight)
+ // Standard Error: 1_000
+ .saturating_add((9_368_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
- .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
+ .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
}
- // Storage: Scheduler Agenda (r:2 w:2)
+ // Storage: Scheduler Agenda (r:1 w:1)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
- fn on_initialize_periodic_named(s: u32, ) -> Weight {
- (13_704_000 as Weight)
- // Standard Error: 4_000
- .saturating_add((8_186_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(T::DbWeight::get().reads(1 as Weight))
- .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
- .saturating_add(T::DbWeight::get().writes(1 as Weight))
- .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
- }
- // Storage: Scheduler Agenda (r:2 w:2)
- fn on_initialize_periodic(s: u32, ) -> Weight {
- (12_668_000 as Weight)
- // Standard Error: 5_000
- .saturating_add((5_868_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(T::DbWeight::get().reads(1 as Weight))
- .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
- .saturating_add(T::DbWeight::get().writes(1 as Weight))
+ fn on_initialize_named_aborted(s: u32, ) -> Weight {
+ (35_937_000 as Weight)
+ // Standard Error: 3_000
+ .saturating_add((23_037_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(4 as Weight))
+ .saturating_add(T::DbWeight::get().writes(4 as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
}
- // Storage: Scheduler Agenda (r:1 w:1)
+ // Storage: Scheduler Agenda (r:2 w:2)
// Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize_named(s: u32, ) -> Weight {
- (13_946_000 as Weight)
- // Standard Error: 4_000
- .saturating_add((4_367_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(T::DbWeight::get().reads(1 as Weight))
- .saturating_add(T::DbWeight::get().writes(1 as Weight))
+ (10_338_000 as Weight)
+ // Standard Error: 2_000
+ .saturating_add((9_422_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(2 as Weight))
+ .saturating_add(T::DbWeight::get().writes(2 as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
}
// Storage: Scheduler Agenda (r:1 w:1)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
+ // Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize(s: u32, ) -> Weight {
- (13_151_000 as Weight)
- // Standard Error: 4_000
- .saturating_add((3_455_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(T::DbWeight::get().reads(1 as Weight))
- .saturating_add(T::DbWeight::get().writes(1 as Weight))
+ (37_448_000 as Weight)
+ // Standard Error: 7_000
+ .saturating_add((22_907_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(4 as Weight))
+ .saturating_add(T::DbWeight::get().writes(4 as Weight))
+ .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
}
// Storage: Scheduler Agenda (r:1 w:1)
- fn schedule(s: u32, ) -> Weight {
- (14_040_000 as Weight)
- // Standard Error: 1_000
- .saturating_add((89_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(T::DbWeight::get().reads(1 as Weight))
- .saturating_add(T::DbWeight::get().writes(1 as Weight))
- }
- // Storage: Scheduler Agenda (r:1 w:1)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
- fn cancel(s: u32, ) -> Weight {
- (14_376_000 as Weight)
- // Standard Error: 1_000
- .saturating_add((576_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(T::DbWeight::get().reads(1 as Weight))
- .saturating_add(T::DbWeight::get().writes(2 as Weight))
+ fn on_initialize_resolved(s: u32, ) -> Weight {
+ (34_841_000 as Weight)
+ // Standard Error: 7_000
+ .saturating_add((22_966_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(4 as Weight))
+ .saturating_add(T::DbWeight::get().writes(4 as Weight))
+ .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
}
// Storage: Scheduler Lookup (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn schedule_named(s: u32, ) -> Weight {
- (16_806_000 as Weight)
- // Standard Error: 1_000
- .saturating_add((102_000 as Weight).saturating_mul(s as Weight))
+ (33_845_000 as Weight)
+ // Standard Error: 0
+ .saturating_add((168_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Scheduler Lookup (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn cancel_named(s: u32, ) -> Weight {
- (15_852_000 as Weight)
- // Standard Error: 2_000
- .saturating_add((590_000 as Weight).saturating_mul(s as Weight))
+ (31_169_000 as Weight)
+ // Standard Error: 1_000
+ .saturating_add((1_565_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
@@ -216,148 +186,134 @@
// For backwards compatibility and tests
impl WeightInfo for () {
// Storage: Scheduler Agenda (r:2 w:2)
- // Storage: Preimage PreimageFor (r:1 w:1)
- // Storage: Preimage StatusFor (r:1 w:1)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {
- (11_587_000 as Weight)
- // Standard Error: 17_000
- .saturating_add((17_428_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(RocksDbWeight::get().reads(1 as Weight))
- .saturating_add(RocksDbWeight::get().reads((3 as Weight).saturating_mul(s as Weight)))
- .saturating_add(RocksDbWeight::get().writes(1 as Weight))
- .saturating_add(RocksDbWeight::get().writes((4 as Weight).saturating_mul(s as Weight)))
+ (35_999_000 as Weight)
+ // Standard Error: 3_000
+ .saturating_add((32_234_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(4 as Weight))
+ .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
+ .saturating_add(RocksDbWeight::get().writes(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
}
// Storage: Scheduler Agenda (r:1 w:1)
- // Storage: Preimage PreimageFor (r:1 w:1)
- // Storage: Preimage StatusFor (r:1 w:1)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize_named_resolved(s: u32, ) -> Weight {
- (8_965_000 as Weight)
- // Standard Error: 11_000
- .saturating_add((13_410_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(RocksDbWeight::get().reads(1 as Weight))
- .saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
- .saturating_add(RocksDbWeight::get().writes(1 as Weight))
- .saturating_add(RocksDbWeight::get().writes((3 as Weight).saturating_mul(s as Weight)))
+ (34_874_000 as Weight)
+ // Standard Error: 2_000
+ .saturating_add((23_114_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
}
// Storage: Scheduler Agenda (r:2 w:2)
- // Storage: Preimage PreimageFor (r:1 w:1)
- // Storage: Preimage StatusFor (r:1 w:1)
- fn on_initialize_periodic_resolved(s: u32, ) -> Weight {
- (8_654_000 as Weight)
- // Standard Error: 17_000
- .saturating_add((14_990_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(RocksDbWeight::get().reads(1 as Weight))
- .saturating_add(RocksDbWeight::get().reads((3 as Weight).saturating_mul(s as Weight)))
- .saturating_add(RocksDbWeight::get().writes(1 as Weight))
- .saturating_add(RocksDbWeight::get().writes((3 as Weight).saturating_mul(s as Weight)))
- }
- // Storage: Scheduler Agenda (r:1 w:1)
- // Storage: Preimage PreimageFor (r:1 w:1)
- // Storage: Preimage StatusFor (r:1 w:1)
- fn on_initialize_resolved(s: u32, ) -> Weight {
- (9_303_000 as Weight)
- // Standard Error: 10_000
- .saturating_add((12_244_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(RocksDbWeight::get().reads(1 as Weight))
- .saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
- .saturating_add(RocksDbWeight::get().writes(1 as Weight))
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
+ // Storage: Scheduler Lookup (r:0 w:1)
+ fn on_initialize_periodic(s: u32, ) -> Weight {
+ (36_469_000 as Weight)
+ // Standard Error: 3_000
+ .saturating_add((32_202_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(4 as Weight))
+ .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
+ .saturating_add(RocksDbWeight::get().writes(4 as Weight))
.saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
}
// Storage: Scheduler Agenda (r:2 w:2)
- // Storage: Preimage PreimageFor (r:1 w:0)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
- fn on_initialize_named_aborted(s: u32, ) -> Weight {
- (7_506_000 as Weight)
+ fn on_initialize_periodic_resolved(s: u32, ) -> Weight {
+ (35_352_000 as Weight)
// Standard Error: 3_000
- .saturating_add((5_208_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(RocksDbWeight::get().reads(2 as Weight))
+ .saturating_add((32_309_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
- .saturating_add(RocksDbWeight::get().writes(2 as Weight))
- .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
+ .saturating_add(RocksDbWeight::get().writes(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
}
// Storage: Scheduler Agenda (r:2 w:2)
- // Storage: Preimage PreimageFor (r:1 w:0)
+ // Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize_aborted(s: u32, ) -> Weight {
- (8_046_000 as Weight)
- // Standard Error: 3_000
- .saturating_add((2_914_000 as Weight).saturating_mul(s as Weight))
+ (11_267_000 as Weight)
+ // Standard Error: 1_000
+ .saturating_add((9_368_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
- .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
+ .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
}
- // Storage: Scheduler Agenda (r:2 w:2)
+ // Storage: Scheduler Agenda (r:1 w:1)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
- fn on_initialize_periodic_named(s: u32, ) -> Weight {
- (13_704_000 as Weight)
- // Standard Error: 4_000
- .saturating_add((8_186_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(RocksDbWeight::get().reads(1 as Weight))
- .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
- .saturating_add(RocksDbWeight::get().writes(1 as Weight))
- .saturating_add(RocksDbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
- }
- // Storage: Scheduler Agenda (r:2 w:2)
- fn on_initialize_periodic(s: u32, ) -> Weight {
- (12_668_000 as Weight)
- // Standard Error: 5_000
- .saturating_add((5_868_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(RocksDbWeight::get().reads(1 as Weight))
- .saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
- .saturating_add(RocksDbWeight::get().writes(1 as Weight))
+ fn on_initialize_named_aborted(s: u32, ) -> Weight {
+ (35_937_000 as Weight)
+ // Standard Error: 3_000
+ .saturating_add((23_037_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(4 as Weight))
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
}
- // Storage: Scheduler Agenda (r:1 w:1)
+ // Storage: Scheduler Agenda (r:2 w:2)
// Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize_named(s: u32, ) -> Weight {
- (13_946_000 as Weight)
- // Standard Error: 4_000
- .saturating_add((4_367_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(RocksDbWeight::get().reads(1 as Weight))
- .saturating_add(RocksDbWeight::get().writes(1 as Weight))
+ (10_338_000 as Weight)
+ // Standard Error: 2_000
+ .saturating_add((9_422_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(2 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(2 as Weight))
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
}
// Storage: Scheduler Agenda (r:1 w:1)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
+ // Storage: Scheduler Lookup (r:0 w:1)
fn on_initialize(s: u32, ) -> Weight {
- (13_151_000 as Weight)
- // Standard Error: 4_000
- .saturating_add((3_455_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(RocksDbWeight::get().reads(1 as Weight))
- .saturating_add(RocksDbWeight::get().writes(1 as Weight))
+ (37_448_000 as Weight)
+ // Standard Error: 7_000
+ .saturating_add((22_907_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
}
// Storage: Scheduler Agenda (r:1 w:1)
- fn schedule(s: u32, ) -> Weight {
- (14_040_000 as Weight)
- // Standard Error: 1_000
- .saturating_add((89_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(RocksDbWeight::get().reads(1 as Weight))
- .saturating_add(RocksDbWeight::get().writes(1 as Weight))
- }
- // Storage: Scheduler Agenda (r:1 w:1)
+ // Storage: System Account (r:1 w:1)
+ // Storage: System AllExtrinsicsLen (r:1 w:1)
+ // Storage: System BlockWeight (r:1 w:1)
// Storage: Scheduler Lookup (r:0 w:1)
- fn cancel(s: u32, ) -> Weight {
- (14_376_000 as Weight)
- // Standard Error: 1_000
- .saturating_add((576_000 as Weight).saturating_mul(s as Weight))
- .saturating_add(RocksDbWeight::get().reads(1 as Weight))
- .saturating_add(RocksDbWeight::get().writes(2 as Weight))
+ fn on_initialize_resolved(s: u32, ) -> Weight {
+ (34_841_000 as Weight)
+ // Standard Error: 7_000
+ .saturating_add((22_966_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
}
// Storage: Scheduler Lookup (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn schedule_named(s: u32, ) -> Weight {
- (16_806_000 as Weight)
- // Standard Error: 1_000
- .saturating_add((102_000 as Weight).saturating_mul(s as Weight))
+ (33_845_000 as Weight)
+ // Standard Error: 0
+ .saturating_add((168_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
// Storage: Scheduler Lookup (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn cancel_named(s: u32, ) -> Weight {
- (15_852_000 as Weight)
- // Standard Error: 2_000
- .saturating_add((590_000 as Weight).saturating_mul(s as Weight))
+ (31_169_000 as Weight)
+ // Standard Error: 1_000
+ .saturating_add((1_565_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
primitives/data-structs/src/lib.rsdiffbeforeafterboth--- a/primitives/data-structs/src/lib.rs
+++ b/primitives/data-structs/src/lib.rs
@@ -441,7 +441,7 @@
pub struct CollectionPermissions {
pub access: Option<AccessMode>,
pub mint_mode: Option<bool>,
- pub nesting: Option<NestingRule>,
+ pub nesting: Option<NestingPermissions>,
}
impl CollectionPermissions {
@@ -451,30 +451,58 @@
pub fn mint_mode(&self) -> bool {
self.mint_mode.unwrap_or(false)
}
- pub fn nesting(&self) -> &NestingRule {
- static DEFAULT: NestingRule = NestingRule::Disabled;
+ pub fn nesting(&self) -> &NestingPermissions {
+ static DEFAULT: NestingPermissions = NestingPermissions {
+ token_owner: false,
+ admin: false,
+ restricted: None,
+
+ permissive: false,
+ };
self.nesting.as_ref().unwrap_or(&DEFAULT)
}
}
-pub type OwnerRestrictedSet = BoundedBTreeSet<CollectionId, ConstU32<16>>;
+type OwnerRestrictedSetInner = BoundedBTreeSet<CollectionId, ConstU32<16>>;
+
+#[derive(Encode, Decode, Clone, PartialEq, TypeInfo, MaxEncodedLen, Derivative)]
+#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
+#[derivative(Debug)]
+pub struct OwnerRestrictedSet(
+ #[cfg_attr(feature = "serde1", serde(with = "bounded::set_serde"))]
+ #[derivative(Debug(format_with = "bounded::set_debug"))]
+ pub OwnerRestrictedSetInner,
+);
+impl OwnerRestrictedSet {
+ pub fn new() -> Self {
+ Self(Default::default())
+ }
+}
+impl core::ops::Deref for OwnerRestrictedSet {
+ type Target = OwnerRestrictedSetInner;
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl core::ops::DerefMut for OwnerRestrictedSet {
+ fn deref_mut(&mut self) -> &mut Self::Target {
+ &mut self.0
+ }
+}
#[derive(Encode, Decode, Clone, PartialEq, TypeInfo, MaxEncodedLen, Derivative)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
#[derivative(Debug)]
-pub enum NestingRule {
- /// No one can nest tokens
- Disabled,
- /// Owner can nest any tokens
- Owner,
- /// Owner can nest tokens from specified collections
- OwnerRestricted(
- #[cfg_attr(feature = "serde1", serde(with = "bounded::set_serde"))]
- #[derivative(Debug(format_with = "bounded::set_debug"))]
- OwnerRestrictedSet,
- ),
- /// Used for tests
- Permissive,
+pub struct NestingPermissions {
+ /// Owner of token can nest tokens under it
+ pub token_owner: bool,
+ /// Admin of token collection can nest tokens under token
+ pub admin: bool,
+ /// If set - only tokens from specified collections can be nested
+ pub restricted: Option<OwnerRestrictedSet>,
+
+ /// Anyone can nest tokens, mutually exclusive with `token_owner`, `admin`
+ pub permissive: bool,
}
#[derive(Encode, Decode, Debug, Clone, Copy, PartialEq, TypeInfo, MaxEncodedLen)]
runtime/common/Cargo.tomldiffbeforeafterboth--- a/runtime/common/Cargo.toml
+++ b/runtime/common/Cargo.toml
@@ -89,6 +89,10 @@
default-features = false
path = "../../pallets/refungible"
+[dependencies.pallet-unique-scheduler]
+default-features = false
+path = "../../pallets/scheduler"
+
[dependencies.up-data-structs]
default-features = false
path = "../../primitives/data-structs"
runtime/common/src/runtime_apis.rsdiffbeforeafterboth--- a/runtime/common/src/runtime_apis.rs
+++ b/runtime/common/src/runtime_apis.rs
@@ -843,6 +843,7 @@
list_benchmark!(list, extra, pallet_fungible, Fungible);
list_benchmark!(list, extra, pallet_refungible, Refungible);
list_benchmark!(list, extra, pallet_nonfungible, Nonfungible);
+ list_benchmark!(list, extra, pallet_unique_scheduler, Scheduler);
list_benchmark!(list, extra, pallet_proxy_rmrk_core, RmrkCore);
// list_benchmark!(list, extra, pallet_evm_coder_substrate, EvmCoderSubstrate);
@@ -887,6 +888,7 @@
add_benchmark!(params, batches, pallet_fungible, Fungible);
add_benchmark!(params, batches, pallet_refungible, Refungible);
add_benchmark!(params, batches, pallet_nonfungible, Nonfungible);
+ add_benchmark!(params, batches, pallet_unique_scheduler, Scheduler);
add_benchmark!(params, batches, pallet_proxy_rmrk_core, RmrkCore);
// add_benchmark!(params, batches, pallet_evm_coder_substrate, EvmCoderSubstrate);
runtime/opal/Cargo.tomldiffbeforeafterboth--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -36,6 +36,7 @@
'pallet-proxy-rmrk-core/runtime-benchmarks',
'pallet-unique/runtime-benchmarks',
'pallet-inflation/runtime-benchmarks',
+ 'pallet-unique-scheduler/runtime-benchmarks',
'pallet-xcm/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
'xcm-builder/runtime-benchmarks',
@@ -93,7 +94,7 @@
'pallet-proxy-rmrk-core/std',
'pallet-proxy-rmrk-equip/std',
'pallet-unique/std',
- 'pallet-unq-scheduler/std',
+ 'pallet-unique-scheduler/std',
'pallet-charge-transaction/std',
'up-data-structs/std',
'sp-api/std',
@@ -412,7 +413,7 @@
pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }
pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }
pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }
-pallet-unq-scheduler = { path = '../../pallets/scheduler', default-features = false }
+pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }
# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }
pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.22", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }
pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }
runtime/opal/src/lib.rsdiffbeforeafterboth--- a/runtime/opal/src/lib.rs
+++ b/runtime/opal/src/lib.rs
@@ -68,7 +68,7 @@
WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, ConstantMultiplier,
},
};
-use pallet_unq_scheduler::DispatchCall;
+use pallet_unique_scheduler::DispatchCall;
use up_data_structs::{
CollectionId, TokenId, TokenData, Property, PropertyKeyPermission, CollectionLimits,
CollectionStats, RpcCollection,
@@ -969,7 +969,7 @@
}
pub struct SchedulerPaymentExecutor;
-impl<T: frame_system::Config + pallet_unq_scheduler::Config, SelfContainedSignedInfo>
+impl<T: frame_system::Config + pallet_unique_scheduler::Config, SelfContainedSignedInfo>
DispatchCall<T, SelfContainedSignedInfo> for SchedulerPaymentExecutor
where
<T as frame_system::Config>::Call: Member
@@ -979,13 +979,13 @@
+ From<frame_system::Call<Runtime>>,
SelfContainedSignedInfo: Send + Sync + 'static,
Call: From<<T as frame_system::Config>::Call>
- + From<<T as pallet_unq_scheduler::Config>::Call>
+ + From<<T as pallet_unique_scheduler::Config>::Call>
+ SelfContainedCall<SignedInfo = SelfContainedSignedInfo>,
sp_runtime::AccountId32: From<<T as frame_system::Config>::AccountId>,
{
fn dispatch_call(
signer: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
) -> Result<
Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>,
TransactionValidityError,
@@ -1011,7 +1011,7 @@
fn reserve_balance(
id: [u8; 16],
sponsor: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
count: u32,
) -> Result<(), DispatchError> {
let dispatch_info = call.get_dispatch_info();
@@ -1028,7 +1028,7 @@
fn pay_for_call(
id: [u8; 16],
sponsor: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
) -> Result<u128, DispatchError> {
let dispatch_info = call.get_dispatch_info();
let weight: Balance = ChargeTransactionPayment::traditional_fee(0, &dispatch_info, 0);
@@ -1069,7 +1069,7 @@
}
}
-impl pallet_unq_scheduler::Config for Runtime {
+impl pallet_unique_scheduler::Config for Runtime {
type Event = Event;
type Origin = Origin;
type Currency = Balances;
@@ -1158,7 +1158,7 @@
// Unique Pallets
Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,
Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,
- Scheduler: pallet_unq_scheduler::{Pallet, Call, Storage, Event<T>} = 62,
+ Scheduler: pallet_unique_scheduler::{Pallet, Call, Storage, Event<T>} = 62,
// free = 63
Charging: pallet_charge_transaction::{Pallet, Call, Storage } = 64,
// ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,
runtime/quartz/Cargo.tomldiffbeforeafterboth--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -37,6 +37,7 @@
'pallet-proxy-rmrk-equip/runtime-benchmarks',
'pallet-unique/runtime-benchmarks',
'pallet-inflation/runtime-benchmarks',
+ 'pallet-unique-scheduler/runtime-benchmarks',
'pallet-xcm/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
'xcm-builder/runtime-benchmarks',
@@ -94,7 +95,7 @@
'pallet-proxy-rmrk-core/std',
'pallet-proxy-rmrk-equip/std',
'pallet-unique/std',
- 'pallet-unq-scheduler/std',
+ 'pallet-unique-scheduler/std',
'pallet-charge-transaction/std',
'up-data-structs/std',
'sp-api/std',
@@ -419,7 +420,7 @@
pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }
pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }
pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }
-pallet-unq-scheduler = { path = '../../pallets/scheduler', default-features = false }
+pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }
# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }
pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.22", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }
pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }
runtime/quartz/src/lib.rsdiffbeforeafterboth--- a/runtime/quartz/src/lib.rs
+++ b/runtime/quartz/src/lib.rs
@@ -68,7 +68,7 @@
WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, ConstantMultiplier,
},
};
-use pallet_unq_scheduler::DispatchCall;
+use pallet_unique_scheduler::DispatchCall;
use up_data_structs::{
CollectionId, TokenId, TokenData, Property, PropertyKeyPermission, CollectionLimits,
CollectionStats, RpcCollection,
@@ -968,7 +968,7 @@
}
pub struct SchedulerPaymentExecutor;
-impl<T: frame_system::Config + pallet_unq_scheduler::Config, SelfContainedSignedInfo>
+impl<T: frame_system::Config + pallet_unique_scheduler::Config, SelfContainedSignedInfo>
DispatchCall<T, SelfContainedSignedInfo> for SchedulerPaymentExecutor
where
<T as frame_system::Config>::Call: Member
@@ -978,13 +978,13 @@
+ From<frame_system::Call<Runtime>>,
SelfContainedSignedInfo: Send + Sync + 'static,
Call: From<<T as frame_system::Config>::Call>
- + From<<T as pallet_unq_scheduler::Config>::Call>
+ + From<<T as pallet_unique_scheduler::Config>::Call>
+ SelfContainedCall<SignedInfo = SelfContainedSignedInfo>,
sp_runtime::AccountId32: From<<T as frame_system::Config>::AccountId>,
{
fn dispatch_call(
signer: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
) -> Result<
Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>,
TransactionValidityError,
@@ -1010,7 +1010,7 @@
fn reserve_balance(
id: [u8; 16],
sponsor: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
count: u32,
) -> Result<(), DispatchError> {
let dispatch_info = call.get_dispatch_info();
@@ -1027,7 +1027,7 @@
fn pay_for_call(
id: [u8; 16],
sponsor: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
) -> Result<u128, DispatchError> {
let dispatch_info = call.get_dispatch_info();
let weight: Balance = ChargeTransactionPayment::traditional_fee(0, &dispatch_info, 0);
@@ -1068,7 +1068,7 @@
}
}
-impl pallet_unq_scheduler::Config for Runtime {
+impl pallet_unique_scheduler::Config for Runtime {
type Event = Event;
type Origin = Origin;
type Currency = Balances;
@@ -1156,7 +1156,7 @@
// Unique Pallets
Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,
Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,
- Scheduler: pallet_unq_scheduler::{Pallet, Call, Storage, Event<T>} = 62,
+ Scheduler: pallet_unique_scheduler::{Pallet, Call, Storage, Event<T>} = 62,
// free = 63
Charging: pallet_charge_transaction::{Pallet, Call, Storage } = 64,
// ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,
runtime/unique/Cargo.tomldiffbeforeafterboth--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -37,6 +37,7 @@
'pallet-proxy-rmrk-equip/runtime-benchmarks',
'pallet-unique/runtime-benchmarks',
'pallet-inflation/runtime-benchmarks',
+ 'pallet-unique-scheduler/runtime-benchmarks',
'pallet-xcm/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
'xcm-builder/runtime-benchmarks',
@@ -95,7 +96,7 @@
'pallet-proxy-rmrk-core/std',
'pallet-proxy-rmrk-equip/std',
'pallet-unique/std',
- 'pallet-unq-scheduler/std',
+ 'pallet-unique-scheduler/std',
'pallet-charge-transaction/std',
'up-data-structs/std',
'sp-api/std',
@@ -412,7 +413,7 @@
pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }
pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }
pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }
-pallet-unq-scheduler = { path = '../../pallets/scheduler', default-features = false }
+pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }
# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }
pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.22", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }
pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }
runtime/unique/src/lib.rsdiffbeforeafterboth--- a/runtime/unique/src/lib.rs
+++ b/runtime/unique/src/lib.rs
@@ -68,7 +68,7 @@
WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients, ConstantMultiplier,
},
};
-use pallet_unq_scheduler::DispatchCall;
+use pallet_unique_scheduler::DispatchCall;
use up_data_structs::{
CollectionId, TokenId, TokenData, Property, PropertyKeyPermission, CollectionLimits,
CollectionStats, RpcCollection,
@@ -967,7 +967,7 @@
}
pub struct SchedulerPaymentExecutor;
-impl<T: frame_system::Config + pallet_unq_scheduler::Config, SelfContainedSignedInfo>
+impl<T: frame_system::Config + pallet_unique_scheduler::Config, SelfContainedSignedInfo>
DispatchCall<T, SelfContainedSignedInfo> for SchedulerPaymentExecutor
where
<T as frame_system::Config>::Call: Member
@@ -977,13 +977,13 @@
+ From<frame_system::Call<Runtime>>,
SelfContainedSignedInfo: Send + Sync + 'static,
Call: From<<T as frame_system::Config>::Call>
- + From<<T as pallet_unq_scheduler::Config>::Call>
+ + From<<T as pallet_unique_scheduler::Config>::Call>
+ SelfContainedCall<SignedInfo = SelfContainedSignedInfo>,
sp_runtime::AccountId32: From<<T as frame_system::Config>::AccountId>,
{
fn dispatch_call(
signer: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
) -> Result<
Result<PostDispatchInfo, DispatchErrorWithPostInfo<PostDispatchInfo>>,
TransactionValidityError,
@@ -1009,7 +1009,7 @@
fn reserve_balance(
id: [u8; 16],
sponsor: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
count: u32,
) -> Result<(), DispatchError> {
let dispatch_info = call.get_dispatch_info();
@@ -1026,7 +1026,7 @@
fn pay_for_call(
id: [u8; 16],
sponsor: <T as frame_system::Config>::AccountId,
- call: <T as pallet_unq_scheduler::Config>::Call,
+ call: <T as pallet_unique_scheduler::Config>::Call,
) -> Result<u128, DispatchError> {
let dispatch_info = call.get_dispatch_info();
let weight: Balance = ChargeTransactionPayment::traditional_fee(0, &dispatch_info, 0);
@@ -1067,7 +1067,7 @@
}
}
-impl pallet_unq_scheduler::Config for Runtime {
+impl pallet_unique_scheduler::Config for Runtime {
type Event = Event;
type Origin = Origin;
type Currency = Balances;
@@ -1155,7 +1155,7 @@
// Unique Pallets
Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,
Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,
- Scheduler: pallet_unq_scheduler::{Pallet, Call, Storage, Event<T>} = 62,
+ Scheduler: pallet_unique_scheduler::{Pallet, Call, Storage, Event<T>} = 62,
// free = 63
Charging: pallet_charge_transaction::{Pallet, Call, Storage } = 64,
// ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65,
tests/package.jsondiffbeforeafterboth--- a/tests/package.json
+++ b/tests/package.json
@@ -5,7 +5,7 @@
"main": "",
"devDependencies": {
"@polkadot/ts": "0.4.22",
- "@polkadot/typegen": "8.7.2-11",
+ "@polkadot/typegen": "8.7.2-15",
"@types/chai": "^4.3.1",
"@types/chai-as-promised": "^7.1.5",
"@types/mocha": "^9.1.1",
@@ -86,8 +86,8 @@
"license": "SEE LICENSE IN ../LICENSE",
"homepage": "",
"dependencies": {
- "@polkadot/api": "8.7.2-11",
- "@polkadot/api-contract": "8.7.2-11",
+ "@polkadot/api": "8.7.2-15",
+ "@polkadot/api-contract": "8.7.2-15",
"@polkadot/util-crypto": "9.4.1",
"bignumber.js": "^9.0.2",
"chai-as-promised": "^7.1.1",
tests/src/interfaces/augment-api-errors.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-errors.ts
+++ b/tests/src/interfaces/augment-api-errors.ts
@@ -125,10 +125,6 @@
**/
MustBeTokenOwner: AugmentedError<ApiType>;
/**
- * Collection has nesting disabled
- **/
- NestingIsDisabled: AugmentedError<ApiType>;
- /**
* No permission to perform action
**/
NoPermission: AugmentedError<ApiType>;
@@ -137,13 +133,9 @@
**/
NoSpaceForProperty: AugmentedError<ApiType>;
/**
- * Not sufficient founds to perform action
+ * Not sufficient funds to perform action
**/
NotSufficientFounds: AugmentedError<ApiType>;
- /**
- * Only owner may nest tokens under this collection
- **/
- OnlyOwnerAllowedToNest: AugmentedError<ApiType>;
/**
* Tried to enable permissions which are only permitted to be disabled
**/
@@ -185,6 +177,10 @@
**/
UnsupportedOperation: AugmentedError<ApiType>;
/**
+ * User not passed nesting rule
+ **/
+ UserIsNotAllowedToNest: AugmentedError<ApiType>;
+ /**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
@@ -502,6 +498,10 @@
};
structure: {
/**
+ * While iterating over children, encountered breadth limit
+ **/
+ BreadthLimit: AugmentedError<ApiType>;
+ /**
* While searched for owner, encountered depth limit
**/
DepthLimit: AugmentedError<ApiType>;
tests/src/interfaces/augment-api-events.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-events.ts
+++ b/tests/src/interfaces/augment-api-events.ts
@@ -13,45 +13,45 @@
/**
* A balance was set by root.
**/
- BalanceSet: AugmentedEvent<ApiType, [AccountId32, u128, u128]>;
+ BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128, reserved: u128], { who: AccountId32, free: u128, reserved: u128 }>;
/**
* Some amount was deposited (e.g. for transaction fees).
**/
- Deposit: AugmentedEvent<ApiType, [AccountId32, u128]>;
+ Deposit: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
* An account was removed whose balance was non-zero but below ExistentialDeposit,
* resulting in an outright loss.
**/
- DustLost: AugmentedEvent<ApiType, [AccountId32, u128]>;
+ DustLost: AugmentedEvent<ApiType, [account: AccountId32, amount: u128], { account: AccountId32, amount: u128 }>;
/**
* An account was created with some free balance.
**/
- Endowed: AugmentedEvent<ApiType, [AccountId32, u128]>;
+ Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
/**
* Some balance was reserved (moved from free to reserved).
**/
- Reserved: AugmentedEvent<ApiType, [AccountId32, u128]>;
+ Reserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
* Some balance was moved from the reserve of the first account to the second account.
* Final argument indicates the destination balance type.
**/
- ReserveRepatriated: AugmentedEvent<ApiType, [AccountId32, AccountId32, u128, FrameSupportTokensMiscBalanceStatus]>;
+ ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;
/**
* Some amount was removed from the account (e.g. for misbehavior).
**/
- Slashed: AugmentedEvent<ApiType, [AccountId32, u128]>;
+ Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
* Transfer succeeded.
**/
- Transfer: AugmentedEvent<ApiType, [AccountId32, AccountId32, u128]>;
+ Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
/**
* Some balance was unreserved (moved from reserved to free).
**/
- Unreserved: AugmentedEvent<ApiType, [AccountId32, u128]>;
+ Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
* Some amount was withdrawn from the account (e.g. for transaction fees).
**/
- Withdraw: AugmentedEvent<ApiType, [AccountId32, u128]>;
+ Withdraw: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
* Generic event
**/
@@ -398,28 +398,28 @@
[key: string]: AugmentedEvent<ApiType>;
};
rmrkCore: {
- CollectionCreated: AugmentedEvent<ApiType, [AccountId32, u32]>;
- CollectionDestroyed: AugmentedEvent<ApiType, [AccountId32, u32]>;
- CollectionLocked: AugmentedEvent<ApiType, [AccountId32, u32]>;
- IssuerChanged: AugmentedEvent<ApiType, [AccountId32, AccountId32, u32]>;
- NFTAccepted: AugmentedEvent<ApiType, [AccountId32, RmrkTraitsNftAccountIdOrCollectionNftTuple, u32, u32]>;
- NFTBurned: AugmentedEvent<ApiType, [AccountId32, u32]>;
- NftMinted: AugmentedEvent<ApiType, [AccountId32, u32, u32]>;
- NFTRejected: AugmentedEvent<ApiType, [AccountId32, u32, u32]>;
- NFTSent: AugmentedEvent<ApiType, [AccountId32, RmrkTraitsNftAccountIdOrCollectionNftTuple, u32, u32, bool]>;
- PrioritySet: AugmentedEvent<ApiType, [u32, u32]>;
- PropertySet: AugmentedEvent<ApiType, [u32, Option<u32>, Bytes, Bytes]>;
- ResourceAccepted: AugmentedEvent<ApiType, [u32, u32]>;
- ResourceAdded: AugmentedEvent<ApiType, [u32, u32]>;
- ResourceRemoval: AugmentedEvent<ApiType, [u32, u32]>;
- ResourceRemovalAccepted: AugmentedEvent<ApiType, [u32, u32]>;
+ CollectionCreated: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;
+ CollectionDestroyed: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;
+ CollectionLocked: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;
+ IssuerChanged: AugmentedEvent<ApiType, [oldIssuer: AccountId32, newIssuer: AccountId32, collectionId: u32], { oldIssuer: AccountId32, newIssuer: AccountId32, collectionId: u32 }>;
+ NFTAccepted: AugmentedEvent<ApiType, [sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32], { sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32 }>;
+ NFTBurned: AugmentedEvent<ApiType, [owner: AccountId32, nftId: u32], { owner: AccountId32, nftId: u32 }>;
+ NftMinted: AugmentedEvent<ApiType, [owner: AccountId32, collectionId: u32, nftId: u32], { owner: AccountId32, collectionId: u32, nftId: u32 }>;
+ NFTRejected: AugmentedEvent<ApiType, [sender: AccountId32, collectionId: u32, nftId: u32], { sender: AccountId32, collectionId: u32, nftId: u32 }>;
+ NFTSent: AugmentedEvent<ApiType, [sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32, approvalRequired: bool], { sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32, approvalRequired: bool }>;
+ PrioritySet: AugmentedEvent<ApiType, [collectionId: u32, nftId: u32], { collectionId: u32, nftId: u32 }>;
+ PropertySet: AugmentedEvent<ApiType, [collectionId: u32, maybeNftId: Option<u32>, key: Bytes, value: Bytes], { collectionId: u32, maybeNftId: Option<u32>, key: Bytes, value: Bytes }>;
+ ResourceAccepted: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;
+ ResourceAdded: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;
+ ResourceRemoval: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;
+ ResourceRemovalAccepted: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
rmrkEquip: {
- BaseCreated: AugmentedEvent<ApiType, [AccountId32, u32]>;
+ BaseCreated: AugmentedEvent<ApiType, [issuer: AccountId32, baseId: u32], { issuer: AccountId32, baseId: u32 }>;
/**
* Generic event
**/
@@ -429,19 +429,19 @@
/**
* The call for the provided hash was not found so the task has been aborted.
**/
- CallLookupFailed: AugmentedEvent<ApiType, [ITuple<[u32, u32]>, Option<U8aFixed>, FrameSupportScheduleLookupError]>;
+ CallLookupFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, error: FrameSupportScheduleLookupError], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, error: FrameSupportScheduleLookupError }>;
/**
* Canceled some task.
**/
- Canceled: AugmentedEvent<ApiType, [u32, u32]>;
+ Canceled: AugmentedEvent<ApiType, [when: u32, index: u32], { when: u32, index: u32 }>;
/**
* Dispatched some task.
**/
- Dispatched: AugmentedEvent<ApiType, [ITuple<[u32, u32]>, Option<U8aFixed>, Result<Null, SpRuntimeDispatchError>]>;
+ 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> }>;
/**
* Scheduled some task.
**/
- Scheduled: AugmentedEvent<ApiType, [u32, u32]>;
+ Scheduled: AugmentedEvent<ApiType, [when: u32, index: u32], { when: u32, index: u32 }>;
/**
* Generic event
**/
@@ -461,15 +461,15 @@
/**
* The \[sudoer\] just switched identity; the old key is supplied if one existed.
**/
- KeyChanged: AugmentedEvent<ApiType, [Option<AccountId32>]>;
+ KeyChanged: AugmentedEvent<ApiType, [oldSudoer: Option<AccountId32>], { oldSudoer: Option<AccountId32> }>;
/**
* A sudo just took place. \[result\]
**/
- Sudid: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;
+ Sudid: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;
/**
* A sudo just took place. \[result\]
**/
- SudoAsDone: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;
+ SudoAsDone: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;
/**
* Generic event
**/
@@ -483,23 +483,23 @@
/**
* An extrinsic failed.
**/
- ExtrinsicFailed: AugmentedEvent<ApiType, [SpRuntimeDispatchError, FrameSupportWeightsDispatchInfo]>;
+ ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo }>;
/**
* An extrinsic completed successfully.
**/
- ExtrinsicSuccess: AugmentedEvent<ApiType, [FrameSupportWeightsDispatchInfo]>;
+ ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchInfo: FrameSupportWeightsDispatchInfo }>;
/**
* An account was reaped.
**/
- KilledAccount: AugmentedEvent<ApiType, [AccountId32]>;
+ KilledAccount: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;
/**
* A new account was created.
**/
- NewAccount: AugmentedEvent<ApiType, [AccountId32]>;
+ NewAccount: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;
/**
* On on-chain remark happened.
**/
- Remarked: AugmentedEvent<ApiType, [AccountId32, H256]>;
+ Remarked: AugmentedEvent<ApiType, [sender: AccountId32, hash_: H256], { sender: AccountId32, hash_: H256 }>;
/**
* Generic event
**/
@@ -509,31 +509,31 @@
/**
* Some funds have been allocated.
**/
- Awarded: AugmentedEvent<ApiType, [u32, u128, AccountId32]>;
+ Awarded: AugmentedEvent<ApiType, [proposalIndex: u32, award: u128, account: AccountId32], { proposalIndex: u32, award: u128, account: AccountId32 }>;
/**
* Some of our funds have been burnt.
**/
- Burnt: AugmentedEvent<ApiType, [u128]>;
+ Burnt: AugmentedEvent<ApiType, [burntFunds: u128], { burntFunds: u128 }>;
/**
* Some funds have been deposited.
**/
- Deposit: AugmentedEvent<ApiType, [u128]>;
+ Deposit: AugmentedEvent<ApiType, [value: u128], { value: u128 }>;
/**
* New proposal.
**/
- Proposed: AugmentedEvent<ApiType, [u32]>;
+ Proposed: AugmentedEvent<ApiType, [proposalIndex: u32], { proposalIndex: u32 }>;
/**
* A proposal was rejected; funds were slashed.
**/
- Rejected: AugmentedEvent<ApiType, [u32, u128]>;
+ Rejected: AugmentedEvent<ApiType, [proposalIndex: u32, slashed: u128], { proposalIndex: u32, slashed: u128 }>;
/**
* Spending has finished; this is the amount that rolls over until next spend.
**/
- Rollover: AugmentedEvent<ApiType, [u128]>;
+ Rollover: AugmentedEvent<ApiType, [rolloverBalance: u128], { rolloverBalance: u128 }>;
/**
* We have ended a spend period and will now allocate funds.
**/
- Spending: AugmentedEvent<ApiType, [u128]>;
+ Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;
/**
* Generic event
**/
@@ -636,15 +636,15 @@
/**
* Claimed vesting.
**/
- Claimed: AugmentedEvent<ApiType, [AccountId32, u128]>;
+ Claimed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
/**
* Added new vesting schedule.
**/
- VestingScheduleAdded: AugmentedEvent<ApiType, [AccountId32, AccountId32, OrmlVestingVestingSchedule]>;
+ VestingScheduleAdded: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, vestingSchedule: OrmlVestingVestingSchedule], { from: AccountId32, to: AccountId32, vestingSchedule: OrmlVestingVestingSchedule }>;
/**
* Updated vesting schedules.
**/
- VestingSchedulesUpdated: AugmentedEvent<ApiType, [AccountId32]>;
+ VestingSchedulesUpdated: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
/**
* Generic event
**/
tests/src/interfaces/augment-api-query.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-query.ts
+++ b/tests/src/interfaces/augment-api-query.ts
@@ -5,7 +5,7 @@
import type { BTreeMap, Bytes, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';
-import 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, PalletUnqSchedulerScheduledV3, PhantomTypeUpDataStructs, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpRuntimeDigest, SpTrieStorageProof, UpDataStructsCollection, UpDataStructsCollectionStats, UpDataStructsProperties, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsPropertyPermission, UpDataStructsTokenChild } from '@polkadot/types/lookup';
+import 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';
import type { Observable } from '@polkadot/types/types';
declare module '@polkadot/api-base/types/storage' {
@@ -436,7 +436,7 @@
/**
* Items to be executed, indexed by the block number that they should be executed on.
**/
- agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletUnqSchedulerScheduledV3>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
+ agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletUniqueSchedulerScheduledV3>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Lookup from identity to the block number and index of the task.
**/
tests/src/interfaces/augment-api-rpc.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-rpc.ts
+++ b/tests/src/interfaces/augment-api-rpc.ts
@@ -18,7 +18,7 @@
import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
-import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr';
+import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr';
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
@@ -355,9 +355,13 @@
};
mmr: {
/**
+ * Generate MMR proof for the given leaf indices.
+ **/
+ generateBatchProof: AugmentedRpc<(leafIndices: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], at?: BlockHash | string | Uint8Array) => Observable<MmrLeafProof>>;
+ /**
* Generate MMR proof for given leaf index.
**/
- generateProof: AugmentedRpc<(leafIndex: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafProof>>;
+ generateProof: AugmentedRpc<(leafIndex: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafBatchProof>>;
};
net: {
/**
tests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -347,22 +347,105 @@
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
rmrkCore: {
+ /**
+ * Accepts an NFT sent from another account to self or owned NFT
+ *
+ * Parameters:
+ * - `origin`: sender of the transaction
+ * - `rmrk_collection_id`: collection id of the nft to be accepted
+ * - `rmrk_nft_id`: nft id of the nft to be accepted
+ * - `new_owner`: either origin's account ID or origin-owned NFT, whichever the NFT was
+ * sent to
+ **/
acceptNft: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple | { AccountId: any } | { CollectionAndNftTuple: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, RmrkTraitsNftAccountIdOrCollectionNftTuple]>;
+ /**
+ * accept the addition of a new resource to an existing NFT
+ **/
acceptResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, rmrkResourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
+ /**
+ * accept the removal of a resource of an existing NFT
+ **/
acceptResourceRemoval: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, rmrkResourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
+ /**
+ * Create basic resource
+ **/
addBasicResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resource: RmrkTraitsResourceBasicResource | { src?: any; metadata?: any; license?: any; thumb?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, RmrkTraitsResourceBasicResource]>;
+ /**
+ * Create composable resource
+ **/
addComposableResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resourceId: Bytes | string | Uint8Array, resource: RmrkTraitsResourceComposableResource | { parts?: any; base?: any; src?: any; metadata?: any; license?: any; thumb?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Bytes, RmrkTraitsResourceComposableResource]>;
+ /**
+ * Create slot resource
+ **/
addSlotResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resource: RmrkTraitsResourceSlotResource | { base?: any; src?: any; metadata?: any; slot?: any; license?: any; thumb?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, RmrkTraitsResourceSlotResource]>;
+ /**
+ * burn nft
+ **/
burnNft: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
+ /**
+ * Change the issuer of a collection
+ *
+ * Parameters:
+ * - `origin`: sender of the transaction
+ * - `collection_id`: collection id of the nft to change issuer of
+ * - `new_issuer`: Collection's new issuer
+ **/
changeCollectionIssuer: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newIssuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;
+ /**
+ * Create a collection
+ **/
createCollection: AugmentedSubmittable<(metadata: Bytes | string | Uint8Array, max: Option<u32> | null | object | string | Uint8Array, symbol: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Option<u32>, Bytes]>;
+ /**
+ * destroy collection
+ **/
destroyCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
+ /**
+ * lock collection
+ **/
lockCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
+ /**
+ * Mints an NFT in the specified collection
+ * Sets metadata and the royalty attribute
+ *
+ * Parameters:
+ * - `collection_id`: The class of the asset to be minted.
+ * - `nft_id`: The nft value of the asset to be minted.
+ * - `recipient`: Receiver of the royalty
+ * - `royalty`: Permillage reward from each trade for the Recipient
+ * - `metadata`: Arbitrary data about an nft, e.g. IPFS hash
+ * - `transferable`: Ability to transfer this NFT
+ **/
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) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, Option<AccountId32>, Option<Permill>, Bytes, bool]>;
+ /**
+ * Rejects an NFT sent from another account to self or owned NFT
+ *
+ * Parameters:
+ * - `origin`: sender of the transaction
+ * - `rmrk_collection_id`: collection id of the nft to be accepted
+ * - `rmrk_nft_id`: nft id of the nft to be accepted
+ **/
rejectNft: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
+ /**
+ * remove resource
+ **/
removeResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
+ /**
+ * Transfers a NFT from an Account or NFT A to another Account or NFT B
+ *
+ * Parameters:
+ * - `origin`: sender of the transaction
+ * - `rmrk_collection_id`: collection id of the nft to be transferred
+ * - `rmrk_nft_id`: nft id of the nft to be transferred
+ * - `new_owner`: new owner of the nft which can be either an account or a NFT
+ **/
send: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple | { AccountId: any } | { CollectionAndNftTuple: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, RmrkTraitsNftAccountIdOrCollectionNftTuple]>;
+ /**
+ * set a different order of resource priority
+ **/
setPriority: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, priorities: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, u32, Vec<u32>]>;
+ /**
+ * set a custom value on an NFT
+ **/
setProperty: AugmentedSubmittable<(rmrkCollectionId: Compact<u32> | AnyNumber | Uint8Array, maybeNftId: Option<u32> | null | object | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Option<u32>, Bytes, Bytes]>;
/**
* Generic tx
@@ -370,7 +453,33 @@
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
rmrkEquip: {
+ /**
+ * Creates a new Base.
+ * Modeled after [base interaction](https://github.com/rmrk-team/rmrk-spec/blob/master/standards/rmrk2.0.0/interactions/base.md)
+ *
+ * Parameters:
+ * - origin: Caller, will be assigned as the issuer of the Base
+ * - base_type: media type, e.g. "svg"
+ * - symbol: arbitrary client-chosen symbol
+ * - parts: array of Fixed and Slot parts composing the base, confined in length by
+ * RmrkPartsLimit
+ **/
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>]>;
+ /**
+ * Adds a Theme to a Base.
+ * Modeled after [themeadd interaction](https://github.com/rmrk-team/rmrk-spec/blob/master/standards/rmrk2.0.0/interactions/themeadd.md)
+ * Themes are stored in the Themes storage
+ * A Theme named "default" is required prior to adding other Themes.
+ *
+ * Parameters:
+ * - origin: The caller of the function, must be issuer of the base
+ * - base_id: The Base containing the Theme to be updated
+ * - theme: The Theme to add to the Base. A Theme has a name and properties, which are an
+ * array of [key, value, inherit].
+ * - key: arbitrary BoundedString, defined by client
+ * - value: arbitrary BoundedString, defined by client
+ * - inherit: optional bool
+ **/
themeAdd: AugmentedSubmittable<(baseId: u32 | AnyNumber | Uint8Array, theme: RmrkTraitsTheme | { name?: any; properties?: any; inherit?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, RmrkTraitsTheme]>;
/**
* Generic tx
tests/src/interfaces/augment-types.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-types.ts
+++ b/tests/src/interfaces/augment-types.ts
@@ -1,9 +1,9 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
-import 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, PalletUnqSchedulerCall, PalletUnqSchedulerError, PalletUnqSchedulerEvent, PalletUnqSchedulerScheduledV3, 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, UpDataStructsNestingRule, 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';
+import 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';
import type { Data, StorageKey } from '@polkadot/types';
-import type { BitVec, Bool, Bytes, I128, I16, I256, I32, I64, I8, Json, Null, 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';
+import 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';
import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets';
import type { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations';
import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura';
@@ -36,7 +36,7 @@
import type { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from '@polkadot/types/interfaces/imOnline';
import type { CallIndex, LotteryConfig } from '@polkadot/types/interfaces/lottery';
import type { ErrorMetadataLatest, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV12, ErrorMetadataV13, ErrorMetadataV14, ErrorMetadataV9, EventMetadataLatest, EventMetadataV10, EventMetadataV11, EventMetadataV12, EventMetadataV13, EventMetadataV14, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, ExtrinsicMetadataV12, ExtrinsicMetadataV13, ExtrinsicMetadataV14, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV12, FunctionArgumentMetadataV13, FunctionArgumentMetadataV14, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV12, FunctionMetadataV13, FunctionMetadataV14, FunctionMetadataV9, MetadataAll, MetadataLatest, MetadataV10, MetadataV11, MetadataV12, MetadataV13, MetadataV14, MetadataV9, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV12, ModuleConstantMetadataV13, ModuleConstantMetadataV9, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV12, ModuleMetadataV13, ModuleMetadataV9, PalletCallMetadataLatest, PalletCallMetadataV14, PalletConstantMetadataLatest, PalletConstantMetadataV14, PalletErrorMetadataLatest, PalletErrorMetadataV14, PalletEventMetadataLatest, PalletEventMetadataV14, PalletMetadataLatest, PalletMetadataV14, PalletStorageMetadataLatest, PalletStorageMetadataV14, PortableType, PortableTypeV14, SignedExtensionMetadataLatest, SignedExtensionMetadataV14, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV12, StorageEntryMetadataV13, StorageEntryMetadataV14, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV12, StorageEntryModifierV13, StorageEntryModifierV14, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV12, StorageEntryTypeV13, StorageEntryTypeV14, StorageEntryTypeV9, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV12, StorageHasherV13, StorageHasherV14, StorageHasherV9, StorageMetadataV10, StorageMetadataV11, StorageMetadataV12, StorageMetadataV13, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata';
-import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr';
+import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr';
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';
import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, CoreAssignment, CoreIndex, CoreOccupied, DisputeLocation, DisputeResult, DisputeState, DisputeStatement, DisputeStatementSet, DoubleVoteReport, DownwardMessage, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PersistedValidationData, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, Scheduling, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, SlotRange10, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersData10, WinnersDataTuple, WinnersDataTuple10, WinningData, WinningData10, WinningDataEntry } from '@polkadot/types/interfaces/parachains';
@@ -664,6 +664,7 @@
MetadataV14: MetadataV14;
MetadataV9: MetadataV9;
MigrationStatusResult: MigrationStatusResult;
+ MmrLeafBatchProof: MmrLeafBatchProof;
MmrLeafProof: MmrLeafProof;
MmrRootHash: MmrRootHash;
ModuleConstantMetadataV10: ModuleConstantMetadataV10;
@@ -731,6 +732,7 @@
OpenTipTip: OpenTipTip;
OpenTipTo225: OpenTipTo225;
OperatingMode: OperatingMode;
+ OptionBool: OptionBool;
Origin: Origin;
OriginCaller: OriginCaller;
OriginKindV0: OriginKindV0;
@@ -817,10 +819,10 @@
PalletUniqueCall: PalletUniqueCall;
PalletUniqueError: PalletUniqueError;
PalletUniqueRawEvent: PalletUniqueRawEvent;
- PalletUnqSchedulerCall: PalletUnqSchedulerCall;
- PalletUnqSchedulerError: PalletUnqSchedulerError;
- PalletUnqSchedulerEvent: PalletUnqSchedulerEvent;
- PalletUnqSchedulerScheduledV3: PalletUnqSchedulerScheduledV3;
+ PalletUniqueSchedulerCall: PalletUniqueSchedulerCall;
+ PalletUniqueSchedulerError: PalletUniqueSchedulerError;
+ PalletUniqueSchedulerEvent: PalletUniqueSchedulerEvent;
+ PalletUniqueSchedulerScheduledV3: PalletUniqueSchedulerScheduledV3;
PalletVersion: PalletVersion;
PalletXcmCall: PalletXcmCall;
PalletXcmError: PalletXcmError;
@@ -1216,7 +1218,8 @@
UpDataStructsCreateNftExData: UpDataStructsCreateNftExData;
UpDataStructsCreateReFungibleData: UpDataStructsCreateReFungibleData;
UpDataStructsCreateRefungibleExData: UpDataStructsCreateRefungibleExData;
- UpDataStructsNestingRule: UpDataStructsNestingRule;
+ UpDataStructsNestingPermissions: UpDataStructsNestingPermissions;
+ UpDataStructsOwnerRestrictedSet: UpDataStructsOwnerRestrictedSet;
UpDataStructsProperties: UpDataStructsProperties;
UpDataStructsPropertiesMapBoundedVec: UpDataStructsPropertiesMapBoundedVec;
UpDataStructsPropertiesMapPropertyPermission: UpDataStructsPropertiesMapPropertyPermission;
tests/src/interfaces/default/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/default/types.ts
+++ b/tests/src/interfaces/default/types.ts
@@ -935,8 +935,7 @@
readonly isAddressIsZero: boolean;
readonly isUnsupportedOperation: boolean;
readonly isNotSufficientFounds: boolean;
- readonly isNestingIsDisabled: boolean;
- readonly isOnlyOwnerAllowedToNest: boolean;
+ readonly isUserIsNotAllowedToNest: boolean;
readonly isSourceCollectionIsNotAllowedToNest: boolean;
readonly isCollectionFieldSizeExceeded: boolean;
readonly isNoSpaceForProperty: boolean;
@@ -946,7 +945,7 @@
readonly isEmptyPropertyKey: boolean;
readonly isCollectionIsExternal: boolean;
readonly isCollectionIsInternal: boolean;
- readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'NestingIsDisabled' | 'OnlyOwnerAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey' | 'CollectionIsExternal' | 'CollectionIsInternal';
+ readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'UserIsNotAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey' | 'CollectionIsExternal' | 'CollectionIsInternal';
}
/** @name PalletCommonEvent */
@@ -1445,8 +1444,9 @@
export interface PalletStructureError extends Enum {
readonly isOuroborosDetected: boolean;
readonly isDepthLimit: boolean;
+ readonly isBreadthLimit: boolean;
readonly isTokenNotFound: boolean;
- readonly type: 'OuroborosDetected' | 'DepthLimit' | 'TokenNotFound';
+ readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';
}
/** @name PalletStructureEvent */
@@ -1784,8 +1784,8 @@
readonly type: 'CollectionSponsorRemoved' | 'CollectionAdminAdded' | 'CollectionOwnedChanged' | 'CollectionSponsorSet' | 'SponsorshipConfirmed' | 'CollectionAdminRemoved' | 'AllowListAddressRemoved' | 'AllowListAddressAdded' | 'CollectionLimitSet' | 'CollectionPermissionSet';
}
-/** @name PalletUnqSchedulerCall */
-export interface PalletUnqSchedulerCall extends Enum {
+/** @name PalletUniqueSchedulerCall */
+export interface PalletUniqueSchedulerCall extends Enum {
readonly isScheduleNamed: boolean;
readonly asScheduleNamed: {
readonly id: U8aFixed;
@@ -1809,8 +1809,8 @@
readonly type: 'ScheduleNamed' | 'CancelNamed' | 'ScheduleNamedAfter';
}
-/** @name PalletUnqSchedulerError */
-export interface PalletUnqSchedulerError extends Enum {
+/** @name PalletUniqueSchedulerError */
+export interface PalletUniqueSchedulerError extends Enum {
readonly isFailedToSchedule: boolean;
readonly isNotFound: boolean;
readonly isTargetBlockNumberInPast: boolean;
@@ -1818,8 +1818,8 @@
readonly type: 'FailedToSchedule' | 'NotFound' | 'TargetBlockNumberInPast' | 'RescheduleNoChange';
}
-/** @name PalletUnqSchedulerEvent */
-export interface PalletUnqSchedulerEvent extends Enum {
+/** @name PalletUniqueSchedulerEvent */
+export interface PalletUniqueSchedulerEvent extends Enum {
readonly isScheduled: boolean;
readonly asScheduled: {
readonly when: u32;
@@ -1845,8 +1845,8 @@
readonly type: 'Scheduled' | 'Canceled' | 'Dispatched' | 'CallLookupFailed';
}
-/** @name PalletUnqSchedulerScheduledV3 */
-export interface PalletUnqSchedulerScheduledV3 extends Struct {
+/** @name PalletUniqueSchedulerScheduledV3 */
+export interface PalletUniqueSchedulerScheduledV3 extends Struct {
readonly maybeId: Option<U8aFixed>;
readonly priority: u8;
readonly call: FrameSupportScheduleMaybeHashed;
@@ -2348,7 +2348,7 @@
export interface UpDataStructsCollectionPermissions extends Struct {
readonly access: Option<UpDataStructsAccessMode>;
readonly mintMode: Option<bool>;
- readonly nesting: Option<UpDataStructsNestingRule>;
+ readonly nesting: Option<UpDataStructsNestingPermissions>;
}
/** @name UpDataStructsCollectionStats */
@@ -2424,15 +2424,17 @@
readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;
}
-/** @name UpDataStructsNestingRule */
-export interface UpDataStructsNestingRule extends Enum {
- readonly isDisabled: boolean;
- readonly isOwner: boolean;
- readonly isOwnerRestricted: boolean;
- readonly asOwnerRestricted: BTreeSet<u32>;
- readonly type: 'Disabled' | 'Owner' | 'OwnerRestricted';
+/** @name UpDataStructsNestingPermissions */
+export interface UpDataStructsNestingPermissions extends Struct {
+ readonly tokenOwner: bool;
+ readonly admin: bool;
+ readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;
+ readonly permissive: bool;
}
+/** @name UpDataStructsOwnerRestrictedSet */
+export interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}
+
/** @name UpDataStructsProperties */
export interface UpDataStructsProperties extends Struct {
readonly map: UpDataStructsPropertiesMapBoundedVec;
tests/src/interfaces/lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -1425,27 +1425,30 @@
UpDataStructsCollectionPermissions: {
access: 'Option<UpDataStructsAccessMode>',
mintMode: 'Option<bool>',
- nesting: 'Option<UpDataStructsNestingRule>'
+ nesting: 'Option<UpDataStructsNestingPermissions>'
},
/**
- * Lookup169: up_data_structs::NestingRule
+ * Lookup169: up_data_structs::NestingPermissions
**/
- UpDataStructsNestingRule: {
- _enum: {
- Disabled: 'Null',
- Owner: 'Null',
- OwnerRestricted: 'BTreeSet<u32>'
- }
+ UpDataStructsNestingPermissions: {
+ tokenOwner: 'bool',
+ admin: 'bool',
+ restricted: 'Option<UpDataStructsOwnerRestrictedSet>',
+ permissive: 'bool'
},
/**
- * Lookup175: up_data_structs::PropertyKeyPermission
+ * Lookup171: up_data_structs::OwnerRestrictedSet
**/
+ UpDataStructsOwnerRestrictedSet: 'BTreeSet<u32>',
+ /**
+ * Lookup177: up_data_structs::PropertyKeyPermission
+ **/
UpDataStructsPropertyKeyPermission: {
key: 'Bytes',
permission: 'UpDataStructsPropertyPermission'
},
/**
- * Lookup177: up_data_structs::PropertyPermission
+ * Lookup179: up_data_structs::PropertyPermission
**/
UpDataStructsPropertyPermission: {
mutable: 'bool',
@@ -1453,14 +1456,14 @@
tokenOwner: 'bool'
},
/**
- * Lookup180: up_data_structs::Property
+ * Lookup182: up_data_structs::Property
**/
UpDataStructsProperty: {
key: 'Bytes',
value: 'Bytes'
},
/**
- * Lookup183: pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>
+ * Lookup185: pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>
**/
PalletEvmAccountBasicCrossAccountIdRepr: {
_enum: {
@@ -1469,7 +1472,7 @@
}
},
/**
- * Lookup185: up_data_structs::CreateItemData
+ * Lookup187: up_data_structs::CreateItemData
**/
UpDataStructsCreateItemData: {
_enum: {
@@ -1479,26 +1482,26 @@
}
},
/**
- * Lookup186: up_data_structs::CreateNftData
+ * Lookup188: up_data_structs::CreateNftData
**/
UpDataStructsCreateNftData: {
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup187: up_data_structs::CreateFungibleData
+ * Lookup189: up_data_structs::CreateFungibleData
**/
UpDataStructsCreateFungibleData: {
value: 'u128'
},
/**
- * Lookup188: up_data_structs::CreateReFungibleData
+ * Lookup190: up_data_structs::CreateReFungibleData
**/
UpDataStructsCreateReFungibleData: {
constData: 'Bytes',
pieces: 'u128'
},
/**
- * Lookup193: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup195: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateItemExData: {
_enum: {
@@ -1509,23 +1512,23 @@
}
},
/**
- * Lookup195: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup197: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateNftExData: {
properties: 'Vec<UpDataStructsProperty>',
owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
},
/**
- * Lookup202: up_data_structs::CreateRefungibleExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup204: up_data_structs::CreateRefungibleExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateRefungibleExData: {
constData: 'Bytes',
users: 'BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>'
},
/**
- * Lookup204: pallet_unq_scheduler::pallet::Call<T>
+ * Lookup206: pallet_unique_scheduler::pallet::Call<T>
**/
- PalletUnqSchedulerCall: {
+ PalletUniqueSchedulerCall: {
_enum: {
schedule_named: {
id: '[u8;16]',
@@ -1547,7 +1550,7 @@
}
},
/**
- * Lookup206: frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>
+ * Lookup208: frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>
**/
FrameSupportScheduleMaybeHashed: {
_enum: {
@@ -1556,15 +1559,15 @@
}
},
/**
- * Lookup207: pallet_template_transaction_payment::Call<T>
+ * Lookup209: pallet_template_transaction_payment::Call<T>
**/
PalletTemplateTransactionPaymentCall: 'Null',
/**
- * Lookup208: pallet_structure::pallet::Call<T>
+ * Lookup210: pallet_structure::pallet::Call<T>
**/
PalletStructureCall: 'Null',
/**
- * Lookup209: pallet_rmrk_core::pallet::Call<T>
+ * Lookup211: pallet_rmrk_core::pallet::Call<T>
**/
PalletRmrkCoreCall: {
_enum: {
@@ -1654,7 +1657,7 @@
}
},
/**
- * Lookup213: rmrk_traits::nft::AccountIdOrCollectionNftTuple<sp_core::crypto::AccountId32>
+ * Lookup215: rmrk_traits::nft::AccountIdOrCollectionNftTuple<sp_core::crypto::AccountId32>
**/
RmrkTraitsNftAccountIdOrCollectionNftTuple: {
_enum: {
@@ -1663,7 +1666,7 @@
}
},
/**
- * Lookup217: rmrk_traits::resource::BasicResource<frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup219: rmrk_traits::resource::BasicResource<frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceBasicResource: {
src: 'Option<Bytes>',
@@ -1672,7 +1675,7 @@
thumb: 'Option<Bytes>'
},
/**
- * Lookup220: rmrk_traits::resource::ComposableResource<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup222: rmrk_traits::resource::ComposableResource<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceComposableResource: {
parts: 'Vec<u32>',
@@ -1683,7 +1686,7 @@
thumb: 'Option<Bytes>'
},
/**
- * Lookup222: rmrk_traits::resource::SlotResource<frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup224: rmrk_traits::resource::SlotResource<frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceSlotResource: {
base: 'u32',
@@ -1694,7 +1697,7 @@
thumb: 'Option<Bytes>'
},
/**
- * Lookup223: pallet_rmrk_equip::pallet::Call<T>
+ * Lookup225: pallet_rmrk_equip::pallet::Call<T>
**/
PalletRmrkEquipCall: {
_enum: {
@@ -1710,7 +1713,7 @@
}
},
/**
- * Lookup225: rmrk_traits::part::PartType<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup227: rmrk_traits::part::PartType<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPartPartType: {
_enum: {
@@ -1719,7 +1722,7 @@
}
},
/**
- * Lookup227: rmrk_traits::part::FixedPart<frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup229: rmrk_traits::part::FixedPart<frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPartFixedPart: {
id: 'u32',
@@ -1727,7 +1730,7 @@
src: 'Bytes'
},
/**
- * Lookup228: rmrk_traits::part::SlotPart<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup230: rmrk_traits::part::SlotPart<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPartSlotPart: {
id: 'u32',
@@ -1736,7 +1739,7 @@
z: 'u32'
},
/**
- * Lookup229: rmrk_traits::part::EquippableList<frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup231: rmrk_traits::part::EquippableList<frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPartEquippableList: {
_enum: {
@@ -1746,7 +1749,7 @@
}
},
/**
- * Lookup231: rmrk_traits::theme::Theme<frame_support::storage::bounded_vec::BoundedVec<T, S>, PropertyList>
+ * Lookup233: rmrk_traits::theme::Theme<frame_support::storage::bounded_vec::BoundedVec<T, S>, PropertyList>
**/
RmrkTraitsTheme: {
name: 'Bytes',
@@ -1754,14 +1757,14 @@
inherit: 'bool'
},
/**
- * Lookup233: rmrk_traits::theme::ThemeProperty<frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup235: rmrk_traits::theme::ThemeProperty<frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsThemeThemeProperty: {
key: 'Bytes',
value: 'Bytes'
},
/**
- * Lookup234: pallet_evm::pallet::Call<T>
+ * Lookup236: pallet_evm::pallet::Call<T>
**/
PalletEvmCall: {
_enum: {
@@ -1804,7 +1807,7 @@
}
},
/**
- * Lookup240: pallet_ethereum::pallet::Call<T>
+ * Lookup242: pallet_ethereum::pallet::Call<T>
**/
PalletEthereumCall: {
_enum: {
@@ -1814,7 +1817,7 @@
}
},
/**
- * Lookup241: ethereum::transaction::TransactionV2
+ * Lookup243: ethereum::transaction::TransactionV2
**/
EthereumTransactionTransactionV2: {
_enum: {
@@ -1824,7 +1827,7 @@
}
},
/**
- * Lookup242: ethereum::transaction::LegacyTransaction
+ * Lookup244: ethereum::transaction::LegacyTransaction
**/
EthereumTransactionLegacyTransaction: {
nonce: 'U256',
@@ -1836,7 +1839,7 @@
signature: 'EthereumTransactionTransactionSignature'
},
/**
- * Lookup243: ethereum::transaction::TransactionAction
+ * Lookup245: ethereum::transaction::TransactionAction
**/
EthereumTransactionTransactionAction: {
_enum: {
@@ -1845,7 +1848,7 @@
}
},
/**
- * Lookup244: ethereum::transaction::TransactionSignature
+ * Lookup246: ethereum::transaction::TransactionSignature
**/
EthereumTransactionTransactionSignature: {
v: 'u64',
@@ -1853,7 +1856,7 @@
s: 'H256'
},
/**
- * Lookup246: ethereum::transaction::EIP2930Transaction
+ * Lookup248: ethereum::transaction::EIP2930Transaction
**/
EthereumTransactionEip2930Transaction: {
chainId: 'u64',
@@ -1869,14 +1872,14 @@
s: 'H256'
},
/**
- * Lookup248: ethereum::transaction::AccessListItem
+ * Lookup250: ethereum::transaction::AccessListItem
**/
EthereumTransactionAccessListItem: {
address: 'H160',
storageKeys: 'Vec<H256>'
},
/**
- * Lookup249: ethereum::transaction::EIP1559Transaction
+ * Lookup251: ethereum::transaction::EIP1559Transaction
**/
EthereumTransactionEip1559Transaction: {
chainId: 'u64',
@@ -1893,7 +1896,7 @@
s: 'H256'
},
/**
- * Lookup250: pallet_evm_migration::pallet::Call<T>
+ * Lookup252: pallet_evm_migration::pallet::Call<T>
**/
PalletEvmMigrationCall: {
_enum: {
@@ -1911,7 +1914,7 @@
}
},
/**
- * Lookup253: pallet_sudo::pallet::Event<T>
+ * Lookup255: pallet_sudo::pallet::Event<T>
**/
PalletSudoEvent: {
_enum: {
@@ -1927,7 +1930,7 @@
}
},
/**
- * Lookup255: sp_runtime::DispatchError
+ * Lookup257: sp_runtime::DispatchError
**/
SpRuntimeDispatchError: {
_enum: {
@@ -1944,38 +1947,38 @@
}
},
/**
- * Lookup256: sp_runtime::ModuleError
+ * Lookup258: sp_runtime::ModuleError
**/
SpRuntimeModuleError: {
index: 'u8',
error: '[u8;4]'
},
/**
- * Lookup257: sp_runtime::TokenError
+ * Lookup259: sp_runtime::TokenError
**/
SpRuntimeTokenError: {
_enum: ['NoFunds', 'WouldDie', 'BelowMinimum', 'CannotCreate', 'UnknownAsset', 'Frozen', 'Unsupported']
},
/**
- * Lookup258: sp_runtime::ArithmeticError
+ * Lookup260: sp_runtime::ArithmeticError
**/
SpRuntimeArithmeticError: {
_enum: ['Underflow', 'Overflow', 'DivisionByZero']
},
/**
- * Lookup259: sp_runtime::TransactionalError
+ * Lookup261: sp_runtime::TransactionalError
**/
SpRuntimeTransactionalError: {
_enum: ['LimitReached', 'NoLayer']
},
/**
- * Lookup260: pallet_sudo::pallet::Error<T>
+ * Lookup262: pallet_sudo::pallet::Error<T>
**/
PalletSudoError: {
_enum: ['RequireSudo']
},
/**
- * Lookup261: frame_system::AccountInfo<Index, pallet_balances::AccountData<Balance>>
+ * Lookup263: frame_system::AccountInfo<Index, pallet_balances::AccountData<Balance>>
**/
FrameSystemAccountInfo: {
nonce: 'u32',
@@ -1985,7 +1988,7 @@
data: 'PalletBalancesAccountData'
},
/**
- * Lookup262: frame_support::weights::PerDispatchClass<T>
+ * Lookup264: frame_support::weights::PerDispatchClass<T>
**/
FrameSupportWeightsPerDispatchClassU64: {
normal: 'u64',
@@ -1993,13 +1996,13 @@
mandatory: 'u64'
},
/**
- * Lookup263: sp_runtime::generic::digest::Digest
+ * Lookup265: sp_runtime::generic::digest::Digest
**/
SpRuntimeDigest: {
logs: 'Vec<SpRuntimeDigestDigestItem>'
},
/**
- * Lookup265: sp_runtime::generic::digest::DigestItem
+ * Lookup267: sp_runtime::generic::digest::DigestItem
**/
SpRuntimeDigestDigestItem: {
_enum: {
@@ -2015,7 +2018,7 @@
}
},
/**
- * Lookup267: frame_system::EventRecord<opal_runtime::Event, primitive_types::H256>
+ * Lookup269: frame_system::EventRecord<opal_runtime::Event, primitive_types::H256>
**/
FrameSystemEventRecord: {
phase: 'FrameSystemPhase',
@@ -2023,7 +2026,7 @@
topics: 'Vec<H256>'
},
/**
- * Lookup269: frame_system::pallet::Event<T>
+ * Lookup271: frame_system::pallet::Event<T>
**/
FrameSystemEvent: {
_enum: {
@@ -2051,7 +2054,7 @@
}
},
/**
- * Lookup270: frame_support::weights::DispatchInfo
+ * Lookup272: frame_support::weights::DispatchInfo
**/
FrameSupportWeightsDispatchInfo: {
weight: 'u64',
@@ -2059,19 +2062,19 @@
paysFee: 'FrameSupportWeightsPays'
},
/**
- * Lookup271: frame_support::weights::DispatchClass
+ * Lookup273: frame_support::weights::DispatchClass
**/
FrameSupportWeightsDispatchClass: {
_enum: ['Normal', 'Operational', 'Mandatory']
},
/**
- * Lookup272: frame_support::weights::Pays
+ * Lookup274: frame_support::weights::Pays
**/
FrameSupportWeightsPays: {
_enum: ['Yes', 'No']
},
/**
- * Lookup273: orml_vesting::module::Event<T>
+ * Lookup275: orml_vesting::module::Event<T>
**/
OrmlVestingModuleEvent: {
_enum: {
@@ -2090,7 +2093,7 @@
}
},
/**
- * Lookup274: cumulus_pallet_xcmp_queue::pallet::Event<T>
+ * Lookup276: cumulus_pallet_xcmp_queue::pallet::Event<T>
**/
CumulusPalletXcmpQueueEvent: {
_enum: {
@@ -2105,7 +2108,7 @@
}
},
/**
- * Lookup275: pallet_xcm::pallet::Event<T>
+ * Lookup277: pallet_xcm::pallet::Event<T>
**/
PalletXcmEvent: {
_enum: {
@@ -2128,7 +2131,7 @@
}
},
/**
- * Lookup276: xcm::v2::traits::Outcome
+ * Lookup278: xcm::v2::traits::Outcome
**/
XcmV2TraitsOutcome: {
_enum: {
@@ -2138,7 +2141,7 @@
}
},
/**
- * Lookup278: cumulus_pallet_xcm::pallet::Event<T>
+ * Lookup280: cumulus_pallet_xcm::pallet::Event<T>
**/
CumulusPalletXcmEvent: {
_enum: {
@@ -2148,7 +2151,7 @@
}
},
/**
- * Lookup279: cumulus_pallet_dmp_queue::pallet::Event<T>
+ * Lookup281: cumulus_pallet_dmp_queue::pallet::Event<T>
**/
CumulusPalletDmpQueueEvent: {
_enum: {
@@ -2161,7 +2164,7 @@
}
},
/**
- * Lookup280: pallet_unique::RawEvent<sp_core::crypto::AccountId32, pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup282: pallet_unique::RawEvent<sp_core::crypto::AccountId32, pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
PalletUniqueRawEvent: {
_enum: {
@@ -2178,9 +2181,9 @@
}
},
/**
- * Lookup281: pallet_unq_scheduler::pallet::Event<T>
+ * Lookup283: pallet_unique_scheduler::pallet::Event<T>
**/
- PalletUnqSchedulerEvent: {
+ PalletUniqueSchedulerEvent: {
_enum: {
Scheduled: {
when: 'u32',
@@ -2203,13 +2206,13 @@
}
},
/**
- * Lookup283: frame_support::traits::schedule::LookupError
+ * Lookup285: frame_support::traits::schedule::LookupError
**/
FrameSupportScheduleLookupError: {
_enum: ['Unknown', 'BadFormat']
},
/**
- * Lookup284: pallet_common::pallet::Event<T>
+ * Lookup286: pallet_common::pallet::Event<T>
**/
PalletCommonEvent: {
_enum: {
@@ -2227,7 +2230,7 @@
}
},
/**
- * Lookup285: pallet_structure::pallet::Event<T>
+ * Lookup287: pallet_structure::pallet::Event<T>
**/
PalletStructureEvent: {
_enum: {
@@ -2235,7 +2238,7 @@
}
},
/**
- * Lookup286: pallet_rmrk_core::pallet::Event<T>
+ * Lookup288: pallet_rmrk_core::pallet::Event<T>
**/
PalletRmrkCoreEvent: {
_enum: {
@@ -2312,7 +2315,7 @@
}
},
/**
- * Lookup287: pallet_rmrk_equip::pallet::Event<T>
+ * Lookup289: pallet_rmrk_equip::pallet::Event<T>
**/
PalletRmrkEquipEvent: {
_enum: {
@@ -2323,7 +2326,7 @@
}
},
/**
- * Lookup288: pallet_evm::pallet::Event<T>
+ * Lookup290: pallet_evm::pallet::Event<T>
**/
PalletEvmEvent: {
_enum: {
@@ -2337,7 +2340,7 @@
}
},
/**
- * Lookup289: ethereum::log::Log
+ * Lookup291: ethereum::log::Log
**/
EthereumLog: {
address: 'H160',
@@ -2345,7 +2348,7 @@
data: 'Bytes'
},
/**
- * Lookup290: pallet_ethereum::pallet::Event
+ * Lookup292: pallet_ethereum::pallet::Event
**/
PalletEthereumEvent: {
_enum: {
@@ -2353,7 +2356,7 @@
}
},
/**
- * Lookup291: evm_core::error::ExitReason
+ * Lookup293: evm_core::error::ExitReason
**/
EvmCoreErrorExitReason: {
_enum: {
@@ -2364,13 +2367,13 @@
}
},
/**
- * Lookup292: evm_core::error::ExitSucceed
+ * Lookup294: evm_core::error::ExitSucceed
**/
EvmCoreErrorExitSucceed: {
_enum: ['Stopped', 'Returned', 'Suicided']
},
/**
- * Lookup293: evm_core::error::ExitError
+ * Lookup295: evm_core::error::ExitError
**/
EvmCoreErrorExitError: {
_enum: {
@@ -2392,13 +2395,13 @@
}
},
/**
- * Lookup296: evm_core::error::ExitRevert
+ * Lookup298: evm_core::error::ExitRevert
**/
EvmCoreErrorExitRevert: {
_enum: ['Reverted']
},
/**
- * Lookup297: evm_core::error::ExitFatal
+ * Lookup299: evm_core::error::ExitFatal
**/
EvmCoreErrorExitFatal: {
_enum: {
@@ -2409,7 +2412,7 @@
}
},
/**
- * Lookup298: frame_system::Phase
+ * Lookup300: frame_system::Phase
**/
FrameSystemPhase: {
_enum: {
@@ -2419,14 +2422,14 @@
}
},
/**
- * Lookup300: frame_system::LastRuntimeUpgradeInfo
+ * Lookup302: frame_system::LastRuntimeUpgradeInfo
**/
FrameSystemLastRuntimeUpgradeInfo: {
specVersion: 'Compact<u32>',
specName: 'Text'
},
/**
- * Lookup301: frame_system::limits::BlockWeights
+ * Lookup303: frame_system::limits::BlockWeights
**/
FrameSystemLimitsBlockWeights: {
baseBlock: 'u64',
@@ -2434,7 +2437,7 @@
perClass: 'FrameSupportWeightsPerDispatchClassWeightsPerClass'
},
/**
- * Lookup302: frame_support::weights::PerDispatchClass<frame_system::limits::WeightsPerClass>
+ * Lookup304: frame_support::weights::PerDispatchClass<frame_system::limits::WeightsPerClass>
**/
FrameSupportWeightsPerDispatchClassWeightsPerClass: {
normal: 'FrameSystemLimitsWeightsPerClass',
@@ -2442,7 +2445,7 @@
mandatory: 'FrameSystemLimitsWeightsPerClass'
},
/**
- * Lookup303: frame_system::limits::WeightsPerClass
+ * Lookup305: frame_system::limits::WeightsPerClass
**/
FrameSystemLimitsWeightsPerClass: {
baseExtrinsic: 'u64',
@@ -2451,13 +2454,13 @@
reserved: 'Option<u64>'
},
/**
- * Lookup305: frame_system::limits::BlockLength
+ * Lookup307: frame_system::limits::BlockLength
**/
FrameSystemLimitsBlockLength: {
max: 'FrameSupportWeightsPerDispatchClassU32'
},
/**
- * Lookup306: frame_support::weights::PerDispatchClass<T>
+ * Lookup308: frame_support::weights::PerDispatchClass<T>
**/
FrameSupportWeightsPerDispatchClassU32: {
normal: 'u32',
@@ -2465,14 +2468,14 @@
mandatory: 'u32'
},
/**
- * Lookup307: frame_support::weights::RuntimeDbWeight
+ * Lookup309: frame_support::weights::RuntimeDbWeight
**/
FrameSupportWeightsRuntimeDbWeight: {
read: 'u64',
write: 'u64'
},
/**
- * Lookup308: sp_version::RuntimeVersion
+ * Lookup310: sp_version::RuntimeVersion
**/
SpVersionRuntimeVersion: {
specName: 'Text',
@@ -2485,19 +2488,19 @@
stateVersion: 'u8'
},
/**
- * Lookup312: frame_system::pallet::Error<T>
+ * Lookup314: frame_system::pallet::Error<T>
**/
FrameSystemError: {
_enum: ['InvalidSpecName', 'SpecVersionNeedsToIncrease', 'FailedToExtractRuntimeVersion', 'NonDefaultComposite', 'NonZeroRefCount', 'CallFiltered']
},
/**
- * Lookup314: orml_vesting::module::Error<T>
+ * Lookup316: orml_vesting::module::Error<T>
**/
OrmlVestingModuleError: {
_enum: ['ZeroVestingPeriod', 'ZeroVestingPeriodCount', 'InsufficientBalanceToLock', 'TooManyVestingSchedules', 'AmountLow', 'MaxVestingSchedulesExceeded']
},
/**
- * Lookup316: cumulus_pallet_xcmp_queue::InboundChannelDetails
+ * Lookup318: cumulus_pallet_xcmp_queue::InboundChannelDetails
**/
CumulusPalletXcmpQueueInboundChannelDetails: {
sender: 'u32',
@@ -2505,19 +2508,19 @@
messageMetadata: 'Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>'
},
/**
- * Lookup317: cumulus_pallet_xcmp_queue::InboundState
+ * Lookup319: cumulus_pallet_xcmp_queue::InboundState
**/
CumulusPalletXcmpQueueInboundState: {
_enum: ['Ok', 'Suspended']
},
/**
- * Lookup320: polkadot_parachain::primitives::XcmpMessageFormat
+ * Lookup322: polkadot_parachain::primitives::XcmpMessageFormat
**/
PolkadotParachainPrimitivesXcmpMessageFormat: {
_enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals']
},
/**
- * Lookup323: cumulus_pallet_xcmp_queue::OutboundChannelDetails
+ * Lookup325: cumulus_pallet_xcmp_queue::OutboundChannelDetails
**/
CumulusPalletXcmpQueueOutboundChannelDetails: {
recipient: 'u32',
@@ -2527,13 +2530,13 @@
lastIndex: 'u16'
},
/**
- * Lookup324: cumulus_pallet_xcmp_queue::OutboundState
+ * Lookup326: cumulus_pallet_xcmp_queue::OutboundState
**/
CumulusPalletXcmpQueueOutboundState: {
_enum: ['Ok', 'Suspended']
},
/**
- * Lookup326: cumulus_pallet_xcmp_queue::QueueConfigData
+ * Lookup328: cumulus_pallet_xcmp_queue::QueueConfigData
**/
CumulusPalletXcmpQueueQueueConfigData: {
suspendThreshold: 'u32',
@@ -2544,29 +2547,29 @@
xcmpMaxIndividualWeight: 'u64'
},
/**
- * Lookup328: cumulus_pallet_xcmp_queue::pallet::Error<T>
+ * Lookup330: cumulus_pallet_xcmp_queue::pallet::Error<T>
**/
CumulusPalletXcmpQueueError: {
_enum: ['FailedToSend', 'BadXcmOrigin', 'BadXcm', 'BadOverweightIndex', 'WeightOverLimit']
},
/**
- * Lookup329: pallet_xcm::pallet::Error<T>
+ * Lookup331: pallet_xcm::pallet::Error<T>
**/
PalletXcmError: {
_enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed']
},
/**
- * Lookup330: cumulus_pallet_xcm::pallet::Error<T>
+ * Lookup332: cumulus_pallet_xcm::pallet::Error<T>
**/
CumulusPalletXcmError: 'Null',
/**
- * Lookup331: cumulus_pallet_dmp_queue::ConfigData
+ * Lookup333: cumulus_pallet_dmp_queue::ConfigData
**/
CumulusPalletDmpQueueConfigData: {
maxIndividual: 'u64'
},
/**
- * Lookup332: cumulus_pallet_dmp_queue::PageIndexData
+ * Lookup334: cumulus_pallet_dmp_queue::PageIndexData
**/
CumulusPalletDmpQueuePageIndexData: {
beginUsed: 'u32',
@@ -2574,21 +2577,21 @@
overweightCount: 'u64'
},
/**
- * Lookup335: cumulus_pallet_dmp_queue::pallet::Error<T>
+ * Lookup337: cumulus_pallet_dmp_queue::pallet::Error<T>
**/
CumulusPalletDmpQueueError: {
_enum: ['Unknown', 'OverLimit']
},
/**
- * Lookup339: pallet_unique::Error<T>
+ * Lookup341: pallet_unique::Error<T>
**/
PalletUniqueError: {
_enum: ['CollectionDecimalPointLimitExceeded', 'ConfirmUnsetSponsorFail', 'EmptyArgument']
},
/**
- * Lookup342: pallet_unq_scheduler::ScheduledV3<frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>, BlockNumber, opal_runtime::OriginCaller, sp_core::crypto::AccountId32>
+ * Lookup344: pallet_unique_scheduler::ScheduledV3<frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>, BlockNumber, opal_runtime::OriginCaller, sp_core::crypto::AccountId32>
**/
- PalletUnqSchedulerScheduledV3: {
+ PalletUniqueSchedulerScheduledV3: {
maybeId: 'Option<[u8;16]>',
priority: 'u8',
call: 'FrameSupportScheduleMaybeHashed',
@@ -2596,7 +2599,7 @@
origin: 'OpalRuntimeOriginCaller'
},
/**
- * Lookup343: opal_runtime::OriginCaller
+ * Lookup345: opal_runtime::OriginCaller
**/
OpalRuntimeOriginCaller: {
_enum: {
@@ -2705,7 +2708,7 @@
}
},
/**
- * Lookup344: frame_support::dispatch::RawOrigin<sp_core::crypto::AccountId32>
+ * Lookup346: frame_support::dispatch::RawOrigin<sp_core::crypto::AccountId32>
**/
FrameSupportDispatchRawOrigin: {
_enum: {
@@ -2715,7 +2718,7 @@
}
},
/**
- * Lookup345: pallet_xcm::pallet::Origin
+ * Lookup347: pallet_xcm::pallet::Origin
**/
PalletXcmOrigin: {
_enum: {
@@ -2724,7 +2727,7 @@
}
},
/**
- * Lookup346: cumulus_pallet_xcm::pallet::Origin
+ * Lookup348: cumulus_pallet_xcm::pallet::Origin
**/
CumulusPalletXcmOrigin: {
_enum: {
@@ -2733,7 +2736,7 @@
}
},
/**
- * Lookup347: pallet_ethereum::RawOrigin
+ * Lookup349: pallet_ethereum::RawOrigin
**/
PalletEthereumRawOrigin: {
_enum: {
@@ -2741,17 +2744,17 @@
}
},
/**
- * Lookup348: sp_core::Void
+ * Lookup350: sp_core::Void
**/
SpCoreVoid: 'Null',
/**
- * Lookup349: pallet_unq_scheduler::pallet::Error<T>
+ * Lookup351: pallet_unique_scheduler::pallet::Error<T>
**/
- PalletUnqSchedulerError: {
+ PalletUniqueSchedulerError: {
_enum: ['FailedToSchedule', 'NotFound', 'TargetBlockNumberInPast', 'RescheduleNoChange']
},
/**
- * Lookup350: up_data_structs::Collection<sp_core::crypto::AccountId32>
+ * Lookup352: up_data_structs::Collection<sp_core::crypto::AccountId32>
**/
UpDataStructsCollection: {
owner: 'AccountId32',
@@ -2765,7 +2768,7 @@
externalCollection: 'bool'
},
/**
- * Lookup351: up_data_structs::SponsorshipState<sp_core::crypto::AccountId32>
+ * Lookup353: up_data_structs::SponsorshipState<sp_core::crypto::AccountId32>
**/
UpDataStructsSponsorshipState: {
_enum: {
@@ -2775,7 +2778,7 @@
}
},
/**
- * Lookup352: up_data_structs::Properties
+ * Lookup354: up_data_structs::Properties
**/
UpDataStructsProperties: {
map: 'UpDataStructsPropertiesMapBoundedVec',
@@ -2783,15 +2786,15 @@
spaceLimit: 'u32'
},
/**
- * Lookup353: up_data_structs::PropertiesMap<frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup355: up_data_structs::PropertiesMap<frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
UpDataStructsPropertiesMapBoundedVec: 'BTreeMap<Bytes, Bytes>',
/**
- * Lookup358: up_data_structs::PropertiesMap<up_data_structs::PropertyPermission>
+ * Lookup360: up_data_structs::PropertiesMap<up_data_structs::PropertyPermission>
**/
UpDataStructsPropertiesMapPropertyPermission: 'BTreeMap<Bytes, UpDataStructsPropertyPermission>',
/**
- * Lookup365: up_data_structs::CollectionStats
+ * Lookup367: up_data_structs::CollectionStats
**/
UpDataStructsCollectionStats: {
created: 'u32',
@@ -2799,25 +2802,25 @@
alive: 'u32'
},
/**
- * Lookup366: up_data_structs::TokenChild
+ * Lookup368: up_data_structs::TokenChild
**/
UpDataStructsTokenChild: {
token: 'u32',
collection: 'u32'
},
/**
- * Lookup367: PhantomType::up_data_structs<T>
+ * Lookup369: PhantomType::up_data_structs<T>
**/
PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,RmrkTraitsCollectionCollectionInfo,RmrkTraitsNftNftInfo,RmrkTraitsResourceResourceInfo,RmrkTraitsPropertyPropertyInfo,RmrkTraitsBaseBaseInfo,RmrkTraitsPartPartType,RmrkTraitsTheme,RmrkTraitsNftNftChild);0]',
/**
- * Lookup369: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup371: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsTokenData: {
properties: 'Vec<UpDataStructsProperty>',
owner: 'Option<PalletEvmAccountBasicCrossAccountIdRepr>'
},
/**
- * Lookup371: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>
+ * Lookup373: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>
**/
UpDataStructsRpcCollection: {
owner: 'AccountId32',
@@ -2833,7 +2836,7 @@
readOnly: 'bool'
},
/**
- * Lookup372: rmrk_traits::collection::CollectionInfo<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>, sp_core::crypto::AccountId32>
+ * Lookup374: rmrk_traits::collection::CollectionInfo<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>, sp_core::crypto::AccountId32>
**/
RmrkTraitsCollectionCollectionInfo: {
issuer: 'AccountId32',
@@ -2843,7 +2846,7 @@
nftsCount: 'u32'
},
/**
- * Lookup373: rmrk_traits::nft::NftInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill, frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup375: rmrk_traits::nft::NftInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill, frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsNftNftInfo: {
owner: 'RmrkTraitsNftAccountIdOrCollectionNftTuple',
@@ -2853,14 +2856,14 @@
pending: 'bool'
},
/**
- * Lookup375: rmrk_traits::nft::RoyaltyInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill>
+ * Lookup377: rmrk_traits::nft::RoyaltyInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill>
**/
RmrkTraitsNftRoyaltyInfo: {
recipient: 'AccountId32',
amount: 'Permill'
},
/**
- * Lookup376: rmrk_traits::resource::ResourceInfo<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup378: rmrk_traits::resource::ResourceInfo<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceResourceInfo: {
id: 'u32',
@@ -2869,7 +2872,7 @@
pendingRemoval: 'bool'
},
/**
- * Lookup377: rmrk_traits::resource::ResourceTypes<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup379: rmrk_traits::resource::ResourceTypes<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceResourceTypes: {
_enum: {
@@ -2879,14 +2882,14 @@
}
},
/**
- * Lookup378: rmrk_traits::property::PropertyInfo<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup380: rmrk_traits::property::PropertyInfo<frame_support::storage::bounded_vec::BoundedVec<T, S>, frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPropertyPropertyInfo: {
key: 'Bytes',
value: 'Bytes'
},
/**
- * Lookup379: rmrk_traits::base::BaseInfo<sp_core::crypto::AccountId32, frame_support::storage::bounded_vec::BoundedVec<T, S>>
+ * Lookup381: rmrk_traits::base::BaseInfo<sp_core::crypto::AccountId32, frame_support::storage::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsBaseBaseInfo: {
issuer: 'AccountId32',
@@ -2894,74 +2897,74 @@
symbol: 'Bytes'
},
/**
- * Lookup380: rmrk_traits::nft::NftChild
+ * Lookup382: rmrk_traits::nft::NftChild
**/
RmrkTraitsNftNftChild: {
collectionId: 'u32',
nftId: 'u32'
},
/**
- * Lookup382: pallet_common::pallet::Error<T>
+ * Lookup384: pallet_common::pallet::Error<T>
**/
PalletCommonError: {
- _enum: ['CollectionNotFound', 'MustBeTokenOwner', 'NoPermission', 'CantDestroyNotEmptyCollection', 'PublicMintingNotAllowed', 'AddressNotInAllowlist', 'CollectionNameLimitExceeded', 'CollectionDescriptionLimitExceeded', 'CollectionTokenPrefixLimitExceeded', 'TotalCollectionsLimitExceeded', 'CollectionAdminCountExceeded', 'CollectionLimitBoundsExceeded', 'OwnerPermissionsCantBeReverted', 'TransferNotAllowed', 'AccountTokenLimitExceeded', 'CollectionTokenLimitExceeded', 'MetadataFlagFrozen', 'TokenNotFound', 'TokenValueTooLow', 'ApprovedValueTooLow', 'CantApproveMoreThanOwned', 'AddressIsZero', 'UnsupportedOperation', 'NotSufficientFounds', 'NestingIsDisabled', 'OnlyOwnerAllowedToNest', 'SourceCollectionIsNotAllowedToNest', 'CollectionFieldSizeExceeded', 'NoSpaceForProperty', 'PropertyLimitReached', 'PropertyKeyIsTooLong', 'InvalidCharacterInPropertyKey', 'EmptyPropertyKey', 'CollectionIsExternal', 'CollectionIsInternal']
+ _enum: ['CollectionNotFound', 'MustBeTokenOwner', 'NoPermission', 'CantDestroyNotEmptyCollection', 'PublicMintingNotAllowed', 'AddressNotInAllowlist', 'CollectionNameLimitExceeded', 'CollectionDescriptionLimitExceeded', 'CollectionTokenPrefixLimitExceeded', 'TotalCollectionsLimitExceeded', 'CollectionAdminCountExceeded', 'CollectionLimitBoundsExceeded', 'OwnerPermissionsCantBeReverted', 'TransferNotAllowed', 'AccountTokenLimitExceeded', 'CollectionTokenLimitExceeded', 'MetadataFlagFrozen', 'TokenNotFound', 'TokenValueTooLow', 'ApprovedValueTooLow', 'CantApproveMoreThanOwned', 'AddressIsZero', 'UnsupportedOperation', 'NotSufficientFounds', 'UserIsNotAllowedToNest', 'SourceCollectionIsNotAllowedToNest', 'CollectionFieldSizeExceeded', 'NoSpaceForProperty', 'PropertyLimitReached', 'PropertyKeyIsTooLong', 'InvalidCharacterInPropertyKey', 'EmptyPropertyKey', 'CollectionIsExternal', 'CollectionIsInternal']
},
/**
- * Lookup384: pallet_fungible::pallet::Error<T>
+ * Lookup386: pallet_fungible::pallet::Error<T>
**/
PalletFungibleError: {
_enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
},
/**
- * Lookup385: pallet_refungible::ItemData
+ * Lookup387: pallet_refungible::ItemData
**/
PalletRefungibleItemData: {
constData: 'Bytes'
},
/**
- * Lookup389: pallet_refungible::pallet::Error<T>
+ * Lookup391: pallet_refungible::pallet::Error<T>
**/
PalletRefungibleError: {
_enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
},
/**
- * Lookup390: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup392: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
PalletNonfungibleItemData: {
owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
},
/**
- * Lookup392: pallet_nonfungible::pallet::Error<T>
+ * Lookup394: pallet_nonfungible::pallet::Error<T>
**/
PalletNonfungibleError: {
_enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount', 'CantBurnNftWithChildren']
},
/**
- * Lookup393: pallet_structure::pallet::Error<T>
+ * Lookup395: pallet_structure::pallet::Error<T>
**/
PalletStructureError: {
- _enum: ['OuroborosDetected', 'DepthLimit', 'TokenNotFound']
+ _enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound']
},
/**
- * Lookup394: pallet_rmrk_core::pallet::Error<T>
+ * Lookup396: pallet_rmrk_core::pallet::Error<T>
**/
PalletRmrkCoreError: {
_enum: ['CorruptedCollectionType', 'NftTypeEncodeError', 'RmrkPropertyKeyIsTooLong', 'RmrkPropertyValueIsTooLong', 'CollectionNotEmpty', 'NoAvailableCollectionId', 'NoAvailableNftId', 'CollectionUnknown', 'NoPermission', 'NonTransferable', 'CollectionFullOrLocked', 'ResourceDoesntExist', 'CannotSendToDescendentOrSelf', 'CannotAcceptNonOwnedNft', 'CannotRejectNonOwnedNft', 'ResourceNotPending']
},
/**
- * Lookup396: pallet_rmrk_equip::pallet::Error<T>
+ * Lookup398: pallet_rmrk_equip::pallet::Error<T>
**/
PalletRmrkEquipError: {
_enum: ['PermissionError', 'NoAvailableBaseId', 'NoAvailablePartId', 'BaseDoesntExist', 'NeedsDefaultThemeFirst']
},
/**
- * Lookup399: pallet_evm::pallet::Error<T>
+ * Lookup401: pallet_evm::pallet::Error<T>
**/
PalletEvmError: {
_enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce']
},
/**
- * Lookup402: fp_rpc::TransactionStatus
+ * Lookup404: fp_rpc::TransactionStatus
**/
FpRpcTransactionStatus: {
transactionHash: 'H256',
@@ -2973,11 +2976,11 @@
logsBloom: 'EthbloomBloom'
},
/**
- * Lookup404: ethbloom::Bloom
+ * Lookup406: ethbloom::Bloom
**/
EthbloomBloom: '[u8;256]',
/**
- * Lookup406: ethereum::receipt::ReceiptV3
+ * Lookup408: ethereum::receipt::ReceiptV3
**/
EthereumReceiptReceiptV3: {
_enum: {
@@ -2987,7 +2990,7 @@
}
},
/**
- * Lookup407: ethereum::receipt::EIP658ReceiptData
+ * Lookup409: ethereum::receipt::EIP658ReceiptData
**/
EthereumReceiptEip658ReceiptData: {
statusCode: 'u8',
@@ -2996,7 +2999,7 @@
logs: 'Vec<EthereumLog>'
},
/**
- * Lookup408: ethereum::block::Block<ethereum::transaction::TransactionV2>
+ * Lookup410: ethereum::block::Block<ethereum::transaction::TransactionV2>
**/
EthereumBlock: {
header: 'EthereumHeader',
@@ -3004,7 +3007,7 @@
ommers: 'Vec<EthereumHeader>'
},
/**
- * Lookup409: ethereum::header::Header
+ * Lookup411: ethereum::header::Header
**/
EthereumHeader: {
parentHash: 'H256',
@@ -3024,41 +3027,41 @@
nonce: 'EthereumTypesHashH64'
},
/**
- * Lookup410: ethereum_types::hash::H64
+ * Lookup412: ethereum_types::hash::H64
**/
EthereumTypesHashH64: '[u8;8]',
/**
- * Lookup415: pallet_ethereum::pallet::Error<T>
+ * Lookup417: pallet_ethereum::pallet::Error<T>
**/
PalletEthereumError: {
_enum: ['InvalidSignature', 'PreLogExists']
},
/**
- * Lookup416: pallet_evm_coder_substrate::pallet::Error<T>
+ * Lookup418: pallet_evm_coder_substrate::pallet::Error<T>
**/
PalletEvmCoderSubstrateError: {
_enum: ['OutOfGas', 'OutOfFund']
},
/**
- * Lookup417: pallet_evm_contract_helpers::SponsoringModeT
+ * Lookup419: pallet_evm_contract_helpers::SponsoringModeT
**/
PalletEvmContractHelpersSponsoringModeT: {
_enum: ['Disabled', 'Allowlisted', 'Generous']
},
/**
- * Lookup419: pallet_evm_contract_helpers::pallet::Error<T>
+ * Lookup421: pallet_evm_contract_helpers::pallet::Error<T>
**/
PalletEvmContractHelpersError: {
_enum: ['NoPermission']
},
/**
- * Lookup420: pallet_evm_migration::pallet::Error<T>
+ * Lookup422: pallet_evm_migration::pallet::Error<T>
**/
PalletEvmMigrationError: {
_enum: ['AccountNotEmpty', 'AccountIsNotMigrating']
},
/**
- * Lookup422: sp_runtime::MultiSignature
+ * Lookup424: sp_runtime::MultiSignature
**/
SpRuntimeMultiSignature: {
_enum: {
@@ -3068,43 +3071,43 @@
}
},
/**
- * Lookup423: sp_core::ed25519::Signature
+ * Lookup425: sp_core::ed25519::Signature
**/
SpCoreEd25519Signature: '[u8;64]',
/**
- * Lookup425: sp_core::sr25519::Signature
+ * Lookup427: sp_core::sr25519::Signature
**/
SpCoreSr25519Signature: '[u8;64]',
/**
- * Lookup426: sp_core::ecdsa::Signature
+ * Lookup428: sp_core::ecdsa::Signature
**/
SpCoreEcdsaSignature: '[u8;65]',
/**
- * Lookup429: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
+ * Lookup431: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
**/
FrameSystemExtensionsCheckSpecVersion: 'Null',
/**
- * Lookup430: frame_system::extensions::check_genesis::CheckGenesis<T>
+ * Lookup432: frame_system::extensions::check_genesis::CheckGenesis<T>
**/
FrameSystemExtensionsCheckGenesis: 'Null',
/**
- * Lookup433: frame_system::extensions::check_nonce::CheckNonce<T>
+ * Lookup435: frame_system::extensions::check_nonce::CheckNonce<T>
**/
FrameSystemExtensionsCheckNonce: 'Compact<u32>',
/**
- * Lookup434: frame_system::extensions::check_weight::CheckWeight<T>
+ * Lookup436: frame_system::extensions::check_weight::CheckWeight<T>
**/
FrameSystemExtensionsCheckWeight: 'Null',
/**
- * Lookup435: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
+ * Lookup437: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
**/
PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
/**
- * Lookup436: opal_runtime::Runtime
+ * Lookup438: opal_runtime::Runtime
**/
OpalRuntimeRuntime: 'Null',
/**
- * Lookup437: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
+ * Lookup439: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
**/
PalletEthereumFakeTransactionFinalizer: 'Null'
};
tests/src/interfaces/registry.tsdiffbeforeafterboth--- a/tests/src/interfaces/registry.ts
+++ b/tests/src/interfaces/registry.ts
@@ -1,7 +1,7 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
-import 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, PalletUnqSchedulerCall, PalletUnqSchedulerError, PalletUnqSchedulerEvent, PalletUnqSchedulerScheduledV3, 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, UpDataStructsNestingRule, 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';
+import 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';
declare module '@polkadot/types/types/registry' {
export interface InterfaceTypes {
@@ -133,10 +133,10 @@
PalletUniqueCall: PalletUniqueCall;
PalletUniqueError: PalletUniqueError;
PalletUniqueRawEvent: PalletUniqueRawEvent;
- PalletUnqSchedulerCall: PalletUnqSchedulerCall;
- PalletUnqSchedulerError: PalletUnqSchedulerError;
- PalletUnqSchedulerEvent: PalletUnqSchedulerEvent;
- PalletUnqSchedulerScheduledV3: PalletUnqSchedulerScheduledV3;
+ PalletUniqueSchedulerCall: PalletUniqueSchedulerCall;
+ PalletUniqueSchedulerError: PalletUniqueSchedulerError;
+ PalletUniqueSchedulerEvent: PalletUniqueSchedulerEvent;
+ PalletUniqueSchedulerScheduledV3: PalletUniqueSchedulerScheduledV3;
PalletXcmCall: PalletXcmCall;
PalletXcmError: PalletXcmError;
PalletXcmEvent: PalletXcmEvent;
@@ -196,7 +196,8 @@
UpDataStructsCreateNftExData: UpDataStructsCreateNftExData;
UpDataStructsCreateReFungibleData: UpDataStructsCreateReFungibleData;
UpDataStructsCreateRefungibleExData: UpDataStructsCreateRefungibleExData;
- UpDataStructsNestingRule: UpDataStructsNestingRule;
+ UpDataStructsNestingPermissions: UpDataStructsNestingPermissions;
+ UpDataStructsOwnerRestrictedSet: UpDataStructsOwnerRestrictedSet;
UpDataStructsProperties: UpDataStructsProperties;
UpDataStructsPropertiesMapBoundedVec: UpDataStructsPropertiesMapBoundedVec;
UpDataStructsPropertiesMapPropertyPermission: UpDataStructsPropertiesMapPropertyPermission;
tests/src/interfaces/types-lookup.tsdiffbeforeafterboth1556 export interface UpDataStructsCollectionPermissions extends Struct {1556 export interface UpDataStructsCollectionPermissions extends Struct {1557 readonly access: Option<UpDataStructsAccessMode>;1557 readonly access: Option<UpDataStructsAccessMode>;1558 readonly mintMode: Option<bool>;1558 readonly mintMode: Option<bool>;1559 readonly nesting: Option<UpDataStructsNestingRule>;1559 readonly nesting: Option<UpDataStructsNestingPermissions>;1560 }1560 }156115611562 /** @name UpDataStructsNestingRule (169) */1562 /** @name UpDataStructsNestingPermissions (169) */1563 export interface UpDataStructsNestingRule extends Enum {1563 export interface UpDataStructsNestingPermissions extends Struct {1564 readonly isDisabled: boolean;1564 readonly tokenOwner: bool;1565 readonly isOwner: boolean;1565 readonly admin: bool;1566 readonly isOwnerRestricted: boolean;1567 readonly asOwnerRestricted: BTreeSet<u32>;1566 readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;1568 readonly type: 'Disabled' | 'Owner' | 'OwnerRestricted';1567 readonly permissive: bool;1569 }1568 }15691570 /** @name UpDataStructsOwnerRestrictedSet (171) */1571 export interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}157015721571 /** @name UpDataStructsPropertyKeyPermission (175) */1573 /** @name UpDataStructsPropertyKeyPermission (177) */1572 export interface UpDataStructsPropertyKeyPermission extends Struct {1574 export interface UpDataStructsPropertyKeyPermission extends Struct {1573 readonly key: Bytes;1575 readonly key: Bytes;1574 readonly permission: UpDataStructsPropertyPermission;1576 readonly permission: UpDataStructsPropertyPermission;1575 }1577 }157615781577 /** @name UpDataStructsPropertyPermission (177) */1579 /** @name UpDataStructsPropertyPermission (179) */1578 export interface UpDataStructsPropertyPermission extends Struct {1580 export interface UpDataStructsPropertyPermission extends Struct {1579 readonly mutable: bool;1581 readonly mutable: bool;1580 readonly collectionAdmin: bool;1582 readonly collectionAdmin: bool;1581 readonly tokenOwner: bool;1583 readonly tokenOwner: bool;1582 }1584 }158315851584 /** @name UpDataStructsProperty (180) */1586 /** @name UpDataStructsProperty (182) */1585 export interface UpDataStructsProperty extends Struct {1587 export interface UpDataStructsProperty extends Struct {1586 readonly key: Bytes;1588 readonly key: Bytes;1587 readonly value: Bytes;1589 readonly value: Bytes;1588 }1590 }158915911590 /** @name PalletEvmAccountBasicCrossAccountIdRepr (183) */1592 /** @name PalletEvmAccountBasicCrossAccountIdRepr (185) */1591 export interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {1593 export interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {1592 readonly isSubstrate: boolean;1594 readonly isSubstrate: boolean;1593 readonly asSubstrate: AccountId32;1595 readonly asSubstrate: AccountId32;1596 readonly type: 'Substrate' | 'Ethereum';1598 readonly type: 'Substrate' | 'Ethereum';1597 }1599 }159816001599 /** @name UpDataStructsCreateItemData (185) */1601 /** @name UpDataStructsCreateItemData (187) */1600 export interface UpDataStructsCreateItemData extends Enum {1602 export interface UpDataStructsCreateItemData extends Enum {1601 readonly isNft: boolean;1603 readonly isNft: boolean;1602 readonly asNft: UpDataStructsCreateNftData;1604 readonly asNft: UpDataStructsCreateNftData;1607 readonly type: 'Nft' | 'Fungible' | 'ReFungible';1609 readonly type: 'Nft' | 'Fungible' | 'ReFungible';1608 }1610 }160916111610 /** @name UpDataStructsCreateNftData (186) */1612 /** @name UpDataStructsCreateNftData (188) */1611 export interface UpDataStructsCreateNftData extends Struct {1613 export interface UpDataStructsCreateNftData extends Struct {1612 readonly properties: Vec<UpDataStructsProperty>;1614 readonly properties: Vec<UpDataStructsProperty>;1613 }1615 }161416161615 /** @name UpDataStructsCreateFungibleData (187) */1617 /** @name UpDataStructsCreateFungibleData (189) */1616 export interface UpDataStructsCreateFungibleData extends Struct {1618 export interface UpDataStructsCreateFungibleData extends Struct {1617 readonly value: u128;1619 readonly value: u128;1618 }1620 }161916211620 /** @name UpDataStructsCreateReFungibleData (188) */1622 /** @name UpDataStructsCreateReFungibleData (190) */1621 export interface UpDataStructsCreateReFungibleData extends Struct {1623 export interface UpDataStructsCreateReFungibleData extends Struct {1622 readonly constData: Bytes;1624 readonly constData: Bytes;1623 readonly pieces: u128;1625 readonly pieces: u128;1624 }1626 }162516271626 /** @name UpDataStructsCreateItemExData (193) */1628 /** @name UpDataStructsCreateItemExData (195) */1627 export interface UpDataStructsCreateItemExData extends Enum {1629 export interface UpDataStructsCreateItemExData extends Enum {1628 readonly isNft: boolean;1630 readonly isNft: boolean;1629 readonly asNft: Vec<UpDataStructsCreateNftExData>;1631 readonly asNft: Vec<UpDataStructsCreateNftExData>;1636 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';1638 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';1637 }1639 }163816401639 /** @name UpDataStructsCreateNftExData (195) */1641 /** @name UpDataStructsCreateNftExData (197) */1640 export interface UpDataStructsCreateNftExData extends Struct {1642 export interface UpDataStructsCreateNftExData extends Struct {1641 readonly properties: Vec<UpDataStructsProperty>;1643 readonly properties: Vec<UpDataStructsProperty>;1642 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;1644 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;1643 }1645 }164416461645 /** @name UpDataStructsCreateRefungibleExData (202) */1647 /** @name UpDataStructsCreateRefungibleExData (204) */1646 export interface UpDataStructsCreateRefungibleExData extends Struct {1648 export interface UpDataStructsCreateRefungibleExData extends Struct {1647 readonly constData: Bytes;1649 readonly constData: Bytes;1648 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;1650 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;1649 }1651 }165016521651 /** @name PalletUnqSchedulerCall (204) */1653 /** @name PalletUniqueSchedulerCall (206) */1652 export interface PalletUnqSchedulerCall extends Enum {1654 export interface PalletUniqueSchedulerCall extends Enum {1653 readonly isScheduleNamed: boolean;1655 readonly isScheduleNamed: boolean;1654 readonly asScheduleNamed: {1656 readonly asScheduleNamed: {1655 readonly id: U8aFixed;1657 readonly id: U8aFixed;1673 readonly type: 'ScheduleNamed' | 'CancelNamed' | 'ScheduleNamedAfter';1675 readonly type: 'ScheduleNamed' | 'CancelNamed' | 'ScheduleNamedAfter';1674 }1676 }167516771676 /** @name FrameSupportScheduleMaybeHashed (206) */1678 /** @name FrameSupportScheduleMaybeHashed (208) */1677 export interface FrameSupportScheduleMaybeHashed extends Enum {1679 export interface FrameSupportScheduleMaybeHashed extends Enum {1678 readonly isValue: boolean;1680 readonly isValue: boolean;1679 readonly asValue: Call;1681 readonly asValue: Call;1682 readonly type: 'Value' | 'Hash';1684 readonly type: 'Value' | 'Hash';1683 }1685 }168416861685 /** @name PalletTemplateTransactionPaymentCall (207) */1687 /** @name PalletTemplateTransactionPaymentCall (209) */1686 export type PalletTemplateTransactionPaymentCall = Null;1688 export type PalletTemplateTransactionPaymentCall = Null;168716891688 /** @name PalletStructureCall (208) */1690 /** @name PalletStructureCall (210) */1689 export type PalletStructureCall = Null;1691 export type PalletStructureCall = Null;169016921691 /** @name PalletRmrkCoreCall (209) */1693 /** @name PalletRmrkCoreCall (211) */1692 export interface PalletRmrkCoreCall extends Enum {1694 export interface PalletRmrkCoreCall extends Enum {1693 readonly isCreateCollection: boolean;1695 readonly isCreateCollection: boolean;1694 readonly asCreateCollection: {1696 readonly asCreateCollection: {1793 readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';1795 readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';1794 }1796 }179517971796 /** @name RmrkTraitsNftAccountIdOrCollectionNftTuple (213) */1798 /** @name RmrkTraitsNftAccountIdOrCollectionNftTuple (215) */1797 export interface RmrkTraitsNftAccountIdOrCollectionNftTuple extends Enum {1799 export interface RmrkTraitsNftAccountIdOrCollectionNftTuple extends Enum {1798 readonly isAccountId: boolean;1800 readonly isAccountId: boolean;1799 readonly asAccountId: AccountId32;1801 readonly asAccountId: AccountId32;1802 readonly type: 'AccountId' | 'CollectionAndNftTuple';1804 readonly type: 'AccountId' | 'CollectionAndNftTuple';1803 }1805 }180418061805 /** @name RmrkTraitsResourceBasicResource (217) */1807 /** @name RmrkTraitsResourceBasicResource (219) */1806 export interface RmrkTraitsResourceBasicResource extends Struct {1808 export interface RmrkTraitsResourceBasicResource extends Struct {1807 readonly src: Option<Bytes>;1809 readonly src: Option<Bytes>;1808 readonly metadata: Option<Bytes>;1810 readonly metadata: Option<Bytes>;1809 readonly license: Option<Bytes>;1811 readonly license: Option<Bytes>;1810 readonly thumb: Option<Bytes>;1812 readonly thumb: Option<Bytes>;1811 }1813 }181218141813 /** @name RmrkTraitsResourceComposableResource (220) */1815 /** @name RmrkTraitsResourceComposableResource (222) */1814 export interface RmrkTraitsResourceComposableResource extends Struct {1816 export interface RmrkTraitsResourceComposableResource extends Struct {1815 readonly parts: Vec<u32>;1817 readonly parts: Vec<u32>;1816 readonly base: u32;1818 readonly base: u32;1820 readonly thumb: Option<Bytes>;1822 readonly thumb: Option<Bytes>;1821 }1823 }182218241823 /** @name RmrkTraitsResourceSlotResource (222) */1825 /** @name RmrkTraitsResourceSlotResource (224) */1824 export interface RmrkTraitsResourceSlotResource extends Struct {1826 export interface RmrkTraitsResourceSlotResource extends Struct {1825 readonly base: u32;1827 readonly base: u32;1826 readonly src: Option<Bytes>;1828 readonly src: Option<Bytes>;1830 readonly thumb: Option<Bytes>;1832 readonly thumb: Option<Bytes>;1831 }1833 }183218341833 /** @name PalletRmrkEquipCall (223) */1835 /** @name PalletRmrkEquipCall (225) */1834 export interface PalletRmrkEquipCall extends Enum {1836 export interface PalletRmrkEquipCall extends Enum {1835 readonly isCreateBase: boolean;1837 readonly isCreateBase: boolean;1836 readonly asCreateBase: {1838 readonly asCreateBase: {1846 readonly type: 'CreateBase' | 'ThemeAdd';1848 readonly type: 'CreateBase' | 'ThemeAdd';1847 }1849 }184818501849 /** @name RmrkTraitsPartPartType (225) */1851 /** @name RmrkTraitsPartPartType (227) */1850 export interface RmrkTraitsPartPartType extends Enum {1852 export interface RmrkTraitsPartPartType extends Enum {1851 readonly isFixedPart: boolean;1853 readonly isFixedPart: boolean;1852 readonly asFixedPart: RmrkTraitsPartFixedPart;1854 readonly asFixedPart: RmrkTraitsPartFixedPart;1855 readonly type: 'FixedPart' | 'SlotPart';1857 readonly type: 'FixedPart' | 'SlotPart';1856 }1858 }185718591858 /** @name RmrkTraitsPartFixedPart (227) */1860 /** @name RmrkTraitsPartFixedPart (229) */1859 export interface RmrkTraitsPartFixedPart extends Struct {1861 export interface RmrkTraitsPartFixedPart extends Struct {1860 readonly id: u32;1862 readonly id: u32;1861 readonly z: u32;1863 readonly z: u32;1862 readonly src: Bytes;1864 readonly src: Bytes;1863 }1865 }186418661865 /** @name RmrkTraitsPartSlotPart (228) */1867 /** @name RmrkTraitsPartSlotPart (230) */1866 export interface RmrkTraitsPartSlotPart extends Struct {1868 export interface RmrkTraitsPartSlotPart extends Struct {1867 readonly id: u32;1869 readonly id: u32;1868 readonly equippable: RmrkTraitsPartEquippableList;1870 readonly equippable: RmrkTraitsPartEquippableList;1869 readonly src: Bytes;1871 readonly src: Bytes;1870 readonly z: u32;1872 readonly z: u32;1871 }1873 }187218741873 /** @name RmrkTraitsPartEquippableList (229) */1875 /** @name RmrkTraitsPartEquippableList (231) */1874 export interface RmrkTraitsPartEquippableList extends Enum {1876 export interface RmrkTraitsPartEquippableList extends Enum {1875 readonly isAll: boolean;1877 readonly isAll: boolean;1876 readonly isEmpty: boolean;1878 readonly isEmpty: boolean;1879 readonly type: 'All' | 'Empty' | 'Custom';1881 readonly type: 'All' | 'Empty' | 'Custom';1880 }1882 }188118831882 /** @name RmrkTraitsTheme (231) */1884 /** @name RmrkTraitsTheme (233) */1883 export interface RmrkTraitsTheme extends Struct {1885 export interface RmrkTraitsTheme extends Struct {1884 readonly name: Bytes;1886 readonly name: Bytes;1885 readonly properties: Vec<RmrkTraitsThemeThemeProperty>;1887 readonly properties: Vec<RmrkTraitsThemeThemeProperty>;1886 readonly inherit: bool;1888 readonly inherit: bool;1887 }1889 }188818901889 /** @name RmrkTraitsThemeThemeProperty (233) */1891 /** @name RmrkTraitsThemeThemeProperty (235) */1890 export interface RmrkTraitsThemeThemeProperty extends Struct {1892 export interface RmrkTraitsThemeThemeProperty extends Struct {1891 readonly key: Bytes;1893 readonly key: Bytes;1892 readonly value: Bytes;1894 readonly value: Bytes;1893 }1895 }189418961895 /** @name PalletEvmCall (234) */1897 /** @name PalletEvmCall (236) */1896 export interface PalletEvmCall extends Enum {1898 export interface PalletEvmCall extends Enum {1897 readonly isWithdraw: boolean;1899 readonly isWithdraw: boolean;1898 readonly asWithdraw: {1900 readonly asWithdraw: {1937 readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';1939 readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';1938 }1940 }193919411940 /** @name PalletEthereumCall (240) */1942 /** @name PalletEthereumCall (242) */1941 export interface PalletEthereumCall extends Enum {1943 export interface PalletEthereumCall extends Enum {1942 readonly isTransact: boolean;1944 readonly isTransact: boolean;1943 readonly asTransact: {1945 readonly asTransact: {1946 readonly type: 'Transact';1948 readonly type: 'Transact';1947 }1949 }194819501949 /** @name EthereumTransactionTransactionV2 (241) */1951 /** @name EthereumTransactionTransactionV2 (243) */1950 export interface EthereumTransactionTransactionV2 extends Enum {1952 export interface EthereumTransactionTransactionV2 extends Enum {1951 readonly isLegacy: boolean;1953 readonly isLegacy: boolean;1952 readonly asLegacy: EthereumTransactionLegacyTransaction;1954 readonly asLegacy: EthereumTransactionLegacyTransaction;1957 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';1959 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';1958 }1960 }195919611960 /** @name EthereumTransactionLegacyTransaction (242) */1962 /** @name EthereumTransactionLegacyTransaction (244) */1961 export interface EthereumTransactionLegacyTransaction extends Struct {1963 export interface EthereumTransactionLegacyTransaction extends Struct {1962 readonly nonce: U256;1964 readonly nonce: U256;1963 readonly gasPrice: U256;1965 readonly gasPrice: U256;1968 readonly signature: EthereumTransactionTransactionSignature;1970 readonly signature: EthereumTransactionTransactionSignature;1969 }1971 }197019721971 /** @name EthereumTransactionTransactionAction (243) */1973 /** @name EthereumTransactionTransactionAction (245) */1972 export interface EthereumTransactionTransactionAction extends Enum {1974 export interface EthereumTransactionTransactionAction extends Enum {1973 readonly isCall: boolean;1975 readonly isCall: boolean;1974 readonly asCall: H160;1976 readonly asCall: H160;1975 readonly isCreate: boolean;1977 readonly isCreate: boolean;1976 readonly type: 'Call' | 'Create';1978 readonly type: 'Call' | 'Create';1977 }1979 }197819801979 /** @name EthereumTransactionTransactionSignature (244) */1981 /** @name EthereumTransactionTransactionSignature (246) */1980 export interface EthereumTransactionTransactionSignature extends Struct {1982 export interface EthereumTransactionTransactionSignature extends Struct {1981 readonly v: u64;1983 readonly v: u64;1982 readonly r: H256;1984 readonly r: H256;1983 readonly s: H256;1985 readonly s: H256;1984 }1986 }198519871986 /** @name EthereumTransactionEip2930Transaction (246) */1988 /** @name EthereumTransactionEip2930Transaction (248) */1987 export interface EthereumTransactionEip2930Transaction extends Struct {1989 export interface EthereumTransactionEip2930Transaction extends Struct {1988 readonly chainId: u64;1990 readonly chainId: u64;1989 readonly nonce: U256;1991 readonly nonce: U256;1998 readonly s: H256;2000 readonly s: H256;1999 }2001 }200020022001 /** @name EthereumTransactionAccessListItem (248) */2003 /** @name EthereumTransactionAccessListItem (250) */2002 export interface EthereumTransactionAccessListItem extends Struct {2004 export interface EthereumTransactionAccessListItem extends Struct {2003 readonly address: H160;2005 readonly address: H160;2004 readonly storageKeys: Vec<H256>;2006 readonly storageKeys: Vec<H256>;2005 }2007 }200620082007 /** @name EthereumTransactionEip1559Transaction (249) */2009 /** @name EthereumTransactionEip1559Transaction (251) */2008 export interface EthereumTransactionEip1559Transaction extends Struct {2010 export interface EthereumTransactionEip1559Transaction extends Struct {2009 readonly chainId: u64;2011 readonly chainId: u64;2010 readonly nonce: U256;2012 readonly nonce: U256;2020 readonly s: H256;2022 readonly s: H256;2021 }2023 }202220242023 /** @name PalletEvmMigrationCall (250) */2025 /** @name PalletEvmMigrationCall (252) */2024 export interface PalletEvmMigrationCall extends Enum {2026 export interface PalletEvmMigrationCall extends Enum {2025 readonly isBegin: boolean;2027 readonly isBegin: boolean;2026 readonly asBegin: {2028 readonly asBegin: {2039 readonly type: 'Begin' | 'SetData' | 'Finish';2041 readonly type: 'Begin' | 'SetData' | 'Finish';2040 }2042 }204120432042 /** @name PalletSudoEvent (253) */2044 /** @name PalletSudoEvent (255) */2043 export interface PalletSudoEvent extends Enum {2045 export interface PalletSudoEvent extends Enum {2044 readonly isSudid: boolean;2046 readonly isSudid: boolean;2045 readonly asSudid: {2047 readonly asSudid: {2056 readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';2058 readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';2057 }2059 }205820602059 /** @name SpRuntimeDispatchError (255) */2061 /** @name SpRuntimeDispatchError (257) */2060 export interface SpRuntimeDispatchError extends Enum {2062 export interface SpRuntimeDispatchError extends Enum {2061 readonly isOther: boolean;2063 readonly isOther: boolean;2062 readonly isCannotLookup: boolean;2064 readonly isCannotLookup: boolean;2075 readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic' | 'Transactional';2077 readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic' | 'Transactional';2076 }2078 }207720792078 /** @name SpRuntimeModuleError (256) */2080 /** @name SpRuntimeModuleError (258) */2079 export interface SpRuntimeModuleError extends Struct {2081 export interface SpRuntimeModuleError extends Struct {2080 readonly index: u8;2082 readonly index: u8;2081 readonly error: U8aFixed;2083 readonly error: U8aFixed;2082 }2084 }208320852084 /** @name SpRuntimeTokenError (257) */2086 /** @name SpRuntimeTokenError (259) */2085 export interface SpRuntimeTokenError extends Enum {2087 export interface SpRuntimeTokenError extends Enum {2086 readonly isNoFunds: boolean;2088 readonly isNoFunds: boolean;2087 readonly isWouldDie: boolean;2089 readonly isWouldDie: boolean;2093 readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported';2095 readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported';2094 }2096 }209520972096 /** @name SpRuntimeArithmeticError (258) */2098 /** @name SpRuntimeArithmeticError (260) */2097 export interface SpRuntimeArithmeticError extends Enum {2099 export interface SpRuntimeArithmeticError extends Enum {2098 readonly isUnderflow: boolean;2100 readonly isUnderflow: boolean;2099 readonly isOverflow: boolean;2101 readonly isOverflow: boolean;2100 readonly isDivisionByZero: boolean;2102 readonly isDivisionByZero: boolean;2101 readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';2103 readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';2102 }2104 }210321052104 /** @name SpRuntimeTransactionalError (259) */2106 /** @name SpRuntimeTransactionalError (261) */2105 export interface SpRuntimeTransactionalError extends Enum {2107 export interface SpRuntimeTransactionalError extends Enum {2106 readonly isLimitReached: boolean;2108 readonly isLimitReached: boolean;2107 readonly isNoLayer: boolean;2109 readonly isNoLayer: boolean;2108 readonly type: 'LimitReached' | 'NoLayer';2110 readonly type: 'LimitReached' | 'NoLayer';2109 }2111 }211021122111 /** @name PalletSudoError (260) */2113 /** @name PalletSudoError (262) */2112 export interface PalletSudoError extends Enum {2114 export interface PalletSudoError extends Enum {2113 readonly isRequireSudo: boolean;2115 readonly isRequireSudo: boolean;2114 readonly type: 'RequireSudo';2116 readonly type: 'RequireSudo';2115 }2117 }211621182117 /** @name FrameSystemAccountInfo (261) */2119 /** @name FrameSystemAccountInfo (263) */2118 export interface FrameSystemAccountInfo extends Struct {2120 export interface FrameSystemAccountInfo extends Struct {2119 readonly nonce: u32;2121 readonly nonce: u32;2120 readonly consumers: u32;2122 readonly consumers: u32;2123 readonly data: PalletBalancesAccountData;2125 readonly data: PalletBalancesAccountData;2124 }2126 }212521272126 /** @name FrameSupportWeightsPerDispatchClassU64 (262) */2128 /** @name FrameSupportWeightsPerDispatchClassU64 (264) */2127 export interface FrameSupportWeightsPerDispatchClassU64 extends Struct {2129 export interface FrameSupportWeightsPerDispatchClassU64 extends Struct {2128 readonly normal: u64;2130 readonly normal: u64;2129 readonly operational: u64;2131 readonly operational: u64;2130 readonly mandatory: u64;2132 readonly mandatory: u64;2131 }2133 }213221342133 /** @name SpRuntimeDigest (263) */2135 /** @name SpRuntimeDigest (265) */2134 export interface SpRuntimeDigest extends Struct {2136 export interface SpRuntimeDigest extends Struct {2135 readonly logs: Vec<SpRuntimeDigestDigestItem>;2137 readonly logs: Vec<SpRuntimeDigestDigestItem>;2136 }2138 }213721392138 /** @name SpRuntimeDigestDigestItem (265) */2140 /** @name SpRuntimeDigestDigestItem (267) */2139 export interface SpRuntimeDigestDigestItem extends Enum {2141 export interface SpRuntimeDigestDigestItem extends Enum {2140 readonly isOther: boolean;2142 readonly isOther: boolean;2141 readonly asOther: Bytes;2143 readonly asOther: Bytes;2149 readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated';2151 readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated';2150 }2152 }215121532152 /** @name FrameSystemEventRecord (267) */2154 /** @name FrameSystemEventRecord (269) */2153 export interface FrameSystemEventRecord extends Struct {2155 export interface FrameSystemEventRecord extends Struct {2154 readonly phase: FrameSystemPhase;2156 readonly phase: FrameSystemPhase;2155 readonly event: Event;2157 readonly event: Event;2156 readonly topics: Vec<H256>;2158 readonly topics: Vec<H256>;2157 }2159 }215821602159 /** @name FrameSystemEvent (269) */2161 /** @name FrameSystemEvent (271) */2160 export interface FrameSystemEvent extends Enum {2162 export interface FrameSystemEvent extends Enum {2161 readonly isExtrinsicSuccess: boolean;2163 readonly isExtrinsicSuccess: boolean;2162 readonly asExtrinsicSuccess: {2164 readonly asExtrinsicSuccess: {2184 readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked';2186 readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked';2185 }2187 }218621882187 /** @name FrameSupportWeightsDispatchInfo (270) */2189 /** @name FrameSupportWeightsDispatchInfo (272) */2188 export interface FrameSupportWeightsDispatchInfo extends Struct {2190 export interface FrameSupportWeightsDispatchInfo extends Struct {2189 readonly weight: u64;2191 readonly weight: u64;2190 readonly class: FrameSupportWeightsDispatchClass;2192 readonly class: FrameSupportWeightsDispatchClass;2191 readonly paysFee: FrameSupportWeightsPays;2193 readonly paysFee: FrameSupportWeightsPays;2192 }2194 }219321952194 /** @name FrameSupportWeightsDispatchClass (271) */2196 /** @name FrameSupportWeightsDispatchClass (273) */2195 export interface FrameSupportWeightsDispatchClass extends Enum {2197 export interface FrameSupportWeightsDispatchClass extends Enum {2196 readonly isNormal: boolean;2198 readonly isNormal: boolean;2197 readonly isOperational: boolean;2199 readonly isOperational: boolean;2198 readonly isMandatory: boolean;2200 readonly isMandatory: boolean;2199 readonly type: 'Normal' | 'Operational' | 'Mandatory';2201 readonly type: 'Normal' | 'Operational' | 'Mandatory';2200 }2202 }220122032202 /** @name FrameSupportWeightsPays (272) */2204 /** @name FrameSupportWeightsPays (274) */2203 export interface FrameSupportWeightsPays extends Enum {2205 export interface FrameSupportWeightsPays extends Enum {2204 readonly isYes: boolean;2206 readonly isYes: boolean;2205 readonly isNo: boolean;2207 readonly isNo: boolean;2206 readonly type: 'Yes' | 'No';2208 readonly type: 'Yes' | 'No';2207 }2209 }220822102209 /** @name OrmlVestingModuleEvent (273) */2211 /** @name OrmlVestingModuleEvent (275) */2210 export interface OrmlVestingModuleEvent extends Enum {2212 export interface OrmlVestingModuleEvent extends Enum {2211 readonly isVestingScheduleAdded: boolean;2213 readonly isVestingScheduleAdded: boolean;2212 readonly asVestingScheduleAdded: {2214 readonly asVestingScheduleAdded: {2226 readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';2228 readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';2227 }2229 }222822302229 /** @name CumulusPalletXcmpQueueEvent (274) */2231 /** @name CumulusPalletXcmpQueueEvent (276) */2230 export interface CumulusPalletXcmpQueueEvent extends Enum {2232 export interface CumulusPalletXcmpQueueEvent extends Enum {2231 readonly isSuccess: boolean;2233 readonly isSuccess: boolean;2232 readonly asSuccess: Option<H256>;2234 readonly asSuccess: Option<H256>;2247 readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'UpwardMessageSent' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';2249 readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'UpwardMessageSent' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';2248 }2250 }224922512250 /** @name PalletXcmEvent (275) */2252 /** @name PalletXcmEvent (277) */2251 export interface PalletXcmEvent extends Enum {2253 export interface PalletXcmEvent extends Enum {2252 readonly isAttempted: boolean;2254 readonly isAttempted: boolean;2253 readonly asAttempted: XcmV2TraitsOutcome;2255 readonly asAttempted: XcmV2TraitsOutcome;2284 readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail';2286 readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail';2285 }2287 }228622882287 /** @name XcmV2TraitsOutcome (276) */2289 /** @name XcmV2TraitsOutcome (278) */2288 export interface XcmV2TraitsOutcome extends Enum {2290 export interface XcmV2TraitsOutcome extends Enum {2289 readonly isComplete: boolean;2291 readonly isComplete: boolean;2290 readonly asComplete: u64;2292 readonly asComplete: u64;2295 readonly type: 'Complete' | 'Incomplete' | 'Error';2297 readonly type: 'Complete' | 'Incomplete' | 'Error';2296 }2298 }229722992298 /** @name CumulusPalletXcmEvent (278) */2300 /** @name CumulusPalletXcmEvent (280) */2299 export interface CumulusPalletXcmEvent extends Enum {2301 export interface CumulusPalletXcmEvent extends Enum {2300 readonly isInvalidFormat: boolean;2302 readonly isInvalidFormat: boolean;2301 readonly asInvalidFormat: U8aFixed;2303 readonly asInvalidFormat: U8aFixed;2306 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';2308 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';2307 }2309 }230823102309 /** @name CumulusPalletDmpQueueEvent (279) */2311 /** @name CumulusPalletDmpQueueEvent (281) */2310 export interface CumulusPalletDmpQueueEvent extends Enum {2312 export interface CumulusPalletDmpQueueEvent extends Enum {2311 readonly isInvalidFormat: boolean;2313 readonly isInvalidFormat: boolean;2312 readonly asInvalidFormat: U8aFixed;2314 readonly asInvalidFormat: U8aFixed;2323 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';2325 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';2324 }2326 }232523272326 /** @name PalletUniqueRawEvent (280) */2328 /** @name PalletUniqueRawEvent (282) */2327 export interface PalletUniqueRawEvent extends Enum {2329 export interface PalletUniqueRawEvent extends Enum {2328 readonly isCollectionSponsorRemoved: boolean;2330 readonly isCollectionSponsorRemoved: boolean;2329 readonly asCollectionSponsorRemoved: u32;2331 readonly asCollectionSponsorRemoved: u32;2348 readonly type: 'CollectionSponsorRemoved' | 'CollectionAdminAdded' | 'CollectionOwnedChanged' | 'CollectionSponsorSet' | 'SponsorshipConfirmed' | 'CollectionAdminRemoved' | 'AllowListAddressRemoved' | 'AllowListAddressAdded' | 'CollectionLimitSet' | 'CollectionPermissionSet';2350 readonly type: 'CollectionSponsorRemoved' | 'CollectionAdminAdded' | 'CollectionOwnedChanged' | 'CollectionSponsorSet' | 'SponsorshipConfirmed' | 'CollectionAdminRemoved' | 'AllowListAddressRemoved' | 'AllowListAddressAdded' | 'CollectionLimitSet' | 'CollectionPermissionSet';2349 }2351 }235023522351 /** @name PalletUnqSchedulerEvent (281) */2353 /** @name PalletUniqueSchedulerEvent (283) */2352 export interface PalletUnqSchedulerEvent extends Enum {2354 export interface PalletUniqueSchedulerEvent extends Enum {2353 readonly isScheduled: boolean;2355 readonly isScheduled: boolean;2354 readonly asScheduled: {2356 readonly asScheduled: {2355 readonly when: u32;2357 readonly when: u32;2375 readonly type: 'Scheduled' | 'Canceled' | 'Dispatched' | 'CallLookupFailed';2377 readonly type: 'Scheduled' | 'Canceled' | 'Dispatched' | 'CallLookupFailed';2376 }2378 }237723792378 /** @name FrameSupportScheduleLookupError (283) */2380 /** @name FrameSupportScheduleLookupError (285) */2379 export interface FrameSupportScheduleLookupError extends Enum {2381 export interface FrameSupportScheduleLookupError extends Enum {2380 readonly isUnknown: boolean;2382 readonly isUnknown: boolean;2381 readonly isBadFormat: boolean;2383 readonly isBadFormat: boolean;2382 readonly type: 'Unknown' | 'BadFormat';2384 readonly type: 'Unknown' | 'BadFormat';2383 }2385 }238423862385 /** @name PalletCommonEvent (284) */2387 /** @name PalletCommonEvent (286) */2386 export interface PalletCommonEvent extends Enum {2388 export interface PalletCommonEvent extends Enum {2387 readonly isCollectionCreated: boolean;2389 readonly isCollectionCreated: boolean;2388 readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>;2390 readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>;2409 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet';2411 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet';2410 }2412 }241124132412 /** @name PalletStructureEvent (285) */2414 /** @name PalletStructureEvent (287) */2413 export interface PalletStructureEvent extends Enum {2415 export interface PalletStructureEvent extends Enum {2414 readonly isExecuted: boolean;2416 readonly isExecuted: boolean;2415 readonly asExecuted: Result<Null, SpRuntimeDispatchError>;2417 readonly asExecuted: Result<Null, SpRuntimeDispatchError>;2416 readonly type: 'Executed';2418 readonly type: 'Executed';2417 }2419 }241824202419 /** @name PalletRmrkCoreEvent (286) */2421 /** @name PalletRmrkCoreEvent (288) */2420 export interface PalletRmrkCoreEvent extends Enum {2422 export interface PalletRmrkCoreEvent extends Enum {2421 readonly isCollectionCreated: boolean;2423 readonly isCollectionCreated: boolean;2422 readonly asCollectionCreated: {2424 readonly asCollectionCreated: {2506 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'IssuerChanged' | 'CollectionLocked' | 'NftMinted' | 'NftBurned' | 'NftSent' | 'NftAccepted' | 'NftRejected' | 'PropertySet' | 'ResourceAdded' | 'ResourceRemoval' | 'ResourceAccepted' | 'ResourceRemovalAccepted' | 'PrioritySet';2508 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'IssuerChanged' | 'CollectionLocked' | 'NftMinted' | 'NftBurned' | 'NftSent' | 'NftAccepted' | 'NftRejected' | 'PropertySet' | 'ResourceAdded' | 'ResourceRemoval' | 'ResourceAccepted' | 'ResourceRemovalAccepted' | 'PrioritySet';2507 }2509 }250825102509 /** @name PalletRmrkEquipEvent (287) */2511 /** @name PalletRmrkEquipEvent (289) */2510 export interface PalletRmrkEquipEvent extends Enum {2512 export interface PalletRmrkEquipEvent extends Enum {2511 readonly isBaseCreated: boolean;2513 readonly isBaseCreated: boolean;2512 readonly asBaseCreated: {2514 readonly asBaseCreated: {2516 readonly type: 'BaseCreated';2518 readonly type: 'BaseCreated';2517 }2519 }251825202519 /** @name PalletEvmEvent (288) */2521 /** @name PalletEvmEvent (290) */2520 export interface PalletEvmEvent extends Enum {2522 export interface PalletEvmEvent extends Enum {2521 readonly isLog: boolean;2523 readonly isLog: boolean;2522 readonly asLog: EthereumLog;2524 readonly asLog: EthereumLog;2535 readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed' | 'BalanceDeposit' | 'BalanceWithdraw';2537 readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed' | 'BalanceDeposit' | 'BalanceWithdraw';2536 }2538 }253725392538 /** @name EthereumLog (289) */2540 /** @name EthereumLog (291) */2539 export interface EthereumLog extends Struct {2541 export interface EthereumLog extends Struct {2540 readonly address: H160;2542 readonly address: H160;2541 readonly topics: Vec<H256>;2543 readonly topics: Vec<H256>;2542 readonly data: Bytes;2544 readonly data: Bytes;2543 }2545 }254425462545 /** @name PalletEthereumEvent (290) */2547 /** @name PalletEthereumEvent (292) */2546 export interface PalletEthereumEvent extends Enum {2548 export interface PalletEthereumEvent extends Enum {2547 readonly isExecuted: boolean;2549 readonly isExecuted: boolean;2548 readonly asExecuted: ITuple<[H160, H160, H256, EvmCoreErrorExitReason]>;2550 readonly asExecuted: ITuple<[H160, H160, H256, EvmCoreErrorExitReason]>;2549 readonly type: 'Executed';2551 readonly type: 'Executed';2550 }2552 }255125532552 /** @name EvmCoreErrorExitReason (291) */2554 /** @name EvmCoreErrorExitReason (293) */2553 export interface EvmCoreErrorExitReason extends Enum {2555 export interface EvmCoreErrorExitReason extends Enum {2554 readonly isSucceed: boolean;2556 readonly isSucceed: boolean;2555 readonly asSucceed: EvmCoreErrorExitSucceed;2557 readonly asSucceed: EvmCoreErrorExitSucceed;2562 readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';2564 readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';2563 }2565 }256425662565 /** @name EvmCoreErrorExitSucceed (292) */2567 /** @name EvmCoreErrorExitSucceed (294) */2566 export interface EvmCoreErrorExitSucceed extends Enum {2568 export interface EvmCoreErrorExitSucceed extends Enum {2567 readonly isStopped: boolean;2569 readonly isStopped: boolean;2568 readonly isReturned: boolean;2570 readonly isReturned: boolean;2569 readonly isSuicided: boolean;2571 readonly isSuicided: boolean;2570 readonly type: 'Stopped' | 'Returned' | 'Suicided';2572 readonly type: 'Stopped' | 'Returned' | 'Suicided';2571 }2573 }257225742573 /** @name EvmCoreErrorExitError (293) */2575 /** @name EvmCoreErrorExitError (295) */2574 export interface EvmCoreErrorExitError extends Enum {2576 export interface EvmCoreErrorExitError extends Enum {2575 readonly isStackUnderflow: boolean;2577 readonly isStackUnderflow: boolean;2576 readonly isStackOverflow: boolean;2578 readonly isStackOverflow: boolean;2591 readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'InvalidCode';2593 readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'InvalidCode';2592 }2594 }259325952594 /** @name EvmCoreErrorExitRevert (296) */2596 /** @name EvmCoreErrorExitRevert (298) */2595 export interface EvmCoreErrorExitRevert extends Enum {2597 export interface EvmCoreErrorExitRevert extends Enum {2596 readonly isReverted: boolean;2598 readonly isReverted: boolean;2597 readonly type: 'Reverted';2599 readonly type: 'Reverted';2598 }2600 }259926012600 /** @name EvmCoreErrorExitFatal (297) */2602 /** @name EvmCoreErrorExitFatal (299) */2601 export interface EvmCoreErrorExitFatal extends Enum {2603 export interface EvmCoreErrorExitFatal extends Enum {2602 readonly isNotSupported: boolean;2604 readonly isNotSupported: boolean;2603 readonly isUnhandledInterrupt: boolean;2605 readonly isUnhandledInterrupt: boolean;2608 readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';2610 readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';2609 }2611 }261026122611 /** @name FrameSystemPhase (298) */2613 /** @name FrameSystemPhase (300) */2612 export interface FrameSystemPhase extends Enum {2614 export interface FrameSystemPhase extends Enum {2613 readonly isApplyExtrinsic: boolean;2615 readonly isApplyExtrinsic: boolean;2614 readonly asApplyExtrinsic: u32;2616 readonly asApplyExtrinsic: u32;2617 readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';2619 readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';2618 }2620 }261926212620 /** @name FrameSystemLastRuntimeUpgradeInfo (300) */2622 /** @name FrameSystemLastRuntimeUpgradeInfo (302) */2621 export interface FrameSystemLastRuntimeUpgradeInfo extends Struct {2623 export interface FrameSystemLastRuntimeUpgradeInfo extends Struct {2622 readonly specVersion: Compact<u32>;2624 readonly specVersion: Compact<u32>;2623 readonly specName: Text;2625 readonly specName: Text;2624 }2626 }262526272626 /** @name FrameSystemLimitsBlockWeights (301) */2628 /** @name FrameSystemLimitsBlockWeights (303) */2627 export interface FrameSystemLimitsBlockWeights extends Struct {2629 export interface FrameSystemLimitsBlockWeights extends Struct {2628 readonly baseBlock: u64;2630 readonly baseBlock: u64;2629 readonly maxBlock: u64;2631 readonly maxBlock: u64;2630 readonly perClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;2632 readonly perClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;2631 }2633 }263226342633 /** @name FrameSupportWeightsPerDispatchClassWeightsPerClass (302) */2635 /** @name FrameSupportWeightsPerDispatchClassWeightsPerClass (304) */2634 export interface FrameSupportWeightsPerDispatchClassWeightsPerClass extends Struct {2636 export interface FrameSupportWeightsPerDispatchClassWeightsPerClass extends Struct {2635 readonly normal: FrameSystemLimitsWeightsPerClass;2637 readonly normal: FrameSystemLimitsWeightsPerClass;2636 readonly operational: FrameSystemLimitsWeightsPerClass;2638 readonly operational: FrameSystemLimitsWeightsPerClass;2637 readonly mandatory: FrameSystemLimitsWeightsPerClass;2639 readonly mandatory: FrameSystemLimitsWeightsPerClass;2638 }2640 }263926412640 /** @name FrameSystemLimitsWeightsPerClass (303) */2642 /** @name FrameSystemLimitsWeightsPerClass (305) */2641 export interface FrameSystemLimitsWeightsPerClass extends Struct {2643 export interface FrameSystemLimitsWeightsPerClass extends Struct {2642 readonly baseExtrinsic: u64;2644 readonly baseExtrinsic: u64;2643 readonly maxExtrinsic: Option<u64>;2645 readonly maxExtrinsic: Option<u64>;2644 readonly maxTotal: Option<u64>;2646 readonly maxTotal: Option<u64>;2645 readonly reserved: Option<u64>;2647 readonly reserved: Option<u64>;2646 }2648 }264726492648 /** @name FrameSystemLimitsBlockLength (305) */2650 /** @name FrameSystemLimitsBlockLength (307) */2649 export interface FrameSystemLimitsBlockLength extends Struct {2651 export interface FrameSystemLimitsBlockLength extends Struct {2650 readonly max: FrameSupportWeightsPerDispatchClassU32;2652 readonly max: FrameSupportWeightsPerDispatchClassU32;2651 }2653 }265226542653 /** @name FrameSupportWeightsPerDispatchClassU32 (306) */2655 /** @name FrameSupportWeightsPerDispatchClassU32 (308) */2654 export interface FrameSupportWeightsPerDispatchClassU32 extends Struct {2656 export interface FrameSupportWeightsPerDispatchClassU32 extends Struct {2655 readonly normal: u32;2657 readonly normal: u32;2656 readonly operational: u32;2658 readonly operational: u32;2657 readonly mandatory: u32;2659 readonly mandatory: u32;2658 }2660 }265926612660 /** @name FrameSupportWeightsRuntimeDbWeight (307) */2662 /** @name FrameSupportWeightsRuntimeDbWeight (309) */2661 export interface FrameSupportWeightsRuntimeDbWeight extends Struct {2663 export interface FrameSupportWeightsRuntimeDbWeight extends Struct {2662 readonly read: u64;2664 readonly read: u64;2663 readonly write: u64;2665 readonly write: u64;2664 }2666 }266526672666 /** @name SpVersionRuntimeVersion (308) */2668 /** @name SpVersionRuntimeVersion (310) */2667 export interface SpVersionRuntimeVersion extends Struct {2669 export interface SpVersionRuntimeVersion extends Struct {2668 readonly specName: Text;2670 readonly specName: Text;2669 readonly implName: Text;2671 readonly implName: Text;2675 readonly stateVersion: u8;2677 readonly stateVersion: u8;2676 }2678 }267726792678 /** @name FrameSystemError (312) */2680 /** @name FrameSystemError (314) */2679 export interface FrameSystemError extends Enum {2681 export interface FrameSystemError extends Enum {2680 readonly isInvalidSpecName: boolean;2682 readonly isInvalidSpecName: boolean;2681 readonly isSpecVersionNeedsToIncrease: boolean;2683 readonly isSpecVersionNeedsToIncrease: boolean;2686 readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';2688 readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';2687 }2689 }268826902689 /** @name OrmlVestingModuleError (314) */2691 /** @name OrmlVestingModuleError (316) */2690 export interface OrmlVestingModuleError extends Enum {2692 export interface OrmlVestingModuleError extends Enum {2691 readonly isZeroVestingPeriod: boolean;2693 readonly isZeroVestingPeriod: boolean;2692 readonly isZeroVestingPeriodCount: boolean;2694 readonly isZeroVestingPeriodCount: boolean;2697 readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';2699 readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';2698 }2700 }269927012700 /** @name CumulusPalletXcmpQueueInboundChannelDetails (316) */2702 /** @name CumulusPalletXcmpQueueInboundChannelDetails (318) */2701 export interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {2703 export interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {2702 readonly sender: u32;2704 readonly sender: u32;2703 readonly state: CumulusPalletXcmpQueueInboundState;2705 readonly state: CumulusPalletXcmpQueueInboundState;2704 readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;2706 readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;2705 }2707 }270627082707 /** @name CumulusPalletXcmpQueueInboundState (317) */2709 /** @name CumulusPalletXcmpQueueInboundState (319) */2708 export interface CumulusPalletXcmpQueueInboundState extends Enum {2710 export interface CumulusPalletXcmpQueueInboundState extends Enum {2709 readonly isOk: boolean;2711 readonly isOk: boolean;2710 readonly isSuspended: boolean;2712 readonly isSuspended: boolean;2711 readonly type: 'Ok' | 'Suspended';2713 readonly type: 'Ok' | 'Suspended';2712 }2714 }271327152714 /** @name PolkadotParachainPrimitivesXcmpMessageFormat (320) */2716 /** @name PolkadotParachainPrimitivesXcmpMessageFormat (322) */2715 export interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {2717 export interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {2716 readonly isConcatenatedVersionedXcm: boolean;2718 readonly isConcatenatedVersionedXcm: boolean;2717 readonly isConcatenatedEncodedBlob: boolean;2719 readonly isConcatenatedEncodedBlob: boolean;2718 readonly isSignals: boolean;2720 readonly isSignals: boolean;2719 readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';2721 readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';2720 }2722 }272127232722 /** @name CumulusPalletXcmpQueueOutboundChannelDetails (323) */2724 /** @name CumulusPalletXcmpQueueOutboundChannelDetails (325) */2723 export interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {2725 export interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {2724 readonly recipient: u32;2726 readonly recipient: u32;2725 readonly state: CumulusPalletXcmpQueueOutboundState;2727 readonly state: CumulusPalletXcmpQueueOutboundState;2728 readonly lastIndex: u16;2730 readonly lastIndex: u16;2729 }2731 }273027322731 /** @name CumulusPalletXcmpQueueOutboundState (324) */2733 /** @name CumulusPalletXcmpQueueOutboundState (326) */2732 export interface CumulusPalletXcmpQueueOutboundState extends Enum {2734 export interface CumulusPalletXcmpQueueOutboundState extends Enum {2733 readonly isOk: boolean;2735 readonly isOk: boolean;2734 readonly isSuspended: boolean;2736 readonly isSuspended: boolean;2735 readonly type: 'Ok' | 'Suspended';2737 readonly type: 'Ok' | 'Suspended';2736 }2738 }273727392738 /** @name CumulusPalletXcmpQueueQueueConfigData (326) */2740 /** @name CumulusPalletXcmpQueueQueueConfigData (328) */2739 export interface CumulusPalletXcmpQueueQueueConfigData extends Struct {2741 export interface CumulusPalletXcmpQueueQueueConfigData extends Struct {2740 readonly suspendThreshold: u32;2742 readonly suspendThreshold: u32;2741 readonly dropThreshold: u32;2743 readonly dropThreshold: u32;2745 readonly xcmpMaxIndividualWeight: u64;2747 readonly xcmpMaxIndividualWeight: u64;2746 }2748 }274727492748 /** @name CumulusPalletXcmpQueueError (328) */2750 /** @name CumulusPalletXcmpQueueError (330) */2749 export interface CumulusPalletXcmpQueueError extends Enum {2751 export interface CumulusPalletXcmpQueueError extends Enum {2750 readonly isFailedToSend: boolean;2752 readonly isFailedToSend: boolean;2751 readonly isBadXcmOrigin: boolean;2753 readonly isBadXcmOrigin: boolean;2755 readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';2757 readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';2756 }2758 }275727592758 /** @name PalletXcmError (329) */2760 /** @name PalletXcmError (331) */2759 export interface PalletXcmError extends Enum {2761 export interface PalletXcmError extends Enum {2760 readonly isUnreachable: boolean;2762 readonly isUnreachable: boolean;2761 readonly isSendFailure: boolean;2763 readonly isSendFailure: boolean;2773 readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';2775 readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';2774 }2776 }277527772776 /** @name CumulusPalletXcmError (330) */2778 /** @name CumulusPalletXcmError (332) */2777 export type CumulusPalletXcmError = Null;2779 export type CumulusPalletXcmError = Null;277827802779 /** @name CumulusPalletDmpQueueConfigData (331) */2781 /** @name CumulusPalletDmpQueueConfigData (333) */2780 export interface CumulusPalletDmpQueueConfigData extends Struct {2782 export interface CumulusPalletDmpQueueConfigData extends Struct {2781 readonly maxIndividual: u64;2783 readonly maxIndividual: u64;2782 }2784 }278327852784 /** @name CumulusPalletDmpQueuePageIndexData (332) */2786 /** @name CumulusPalletDmpQueuePageIndexData (334) */2785 export interface CumulusPalletDmpQueuePageIndexData extends Struct {2787 export interface CumulusPalletDmpQueuePageIndexData extends Struct {2786 readonly beginUsed: u32;2788 readonly beginUsed: u32;2787 readonly endUsed: u32;2789 readonly endUsed: u32;2788 readonly overweightCount: u64;2790 readonly overweightCount: u64;2789 }2791 }279027922791 /** @name CumulusPalletDmpQueueError (335) */2793 /** @name CumulusPalletDmpQueueError (337) */2792 export interface CumulusPalletDmpQueueError extends Enum {2794 export interface CumulusPalletDmpQueueError extends Enum {2793 readonly isUnknown: boolean;2795 readonly isUnknown: boolean;2794 readonly isOverLimit: boolean;2796 readonly isOverLimit: boolean;2795 readonly type: 'Unknown' | 'OverLimit';2797 readonly type: 'Unknown' | 'OverLimit';2796 }2798 }279727992798 /** @name PalletUniqueError (339) */2800 /** @name PalletUniqueError (341) */2799 export interface PalletUniqueError extends Enum {2801 export interface PalletUniqueError extends Enum {2800 readonly isCollectionDecimalPointLimitExceeded: boolean;2802 readonly isCollectionDecimalPointLimitExceeded: boolean;2801 readonly isConfirmUnsetSponsorFail: boolean;2803 readonly isConfirmUnsetSponsorFail: boolean;2802 readonly isEmptyArgument: boolean;2804 readonly isEmptyArgument: boolean;2803 readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument';2805 readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument';2804 }2806 }280528072806 /** @name PalletUnqSchedulerScheduledV3 (342) */2808 /** @name PalletUniqueSchedulerScheduledV3 (344) */2807 export interface PalletUnqSchedulerScheduledV3 extends Struct {2809 export interface PalletUniqueSchedulerScheduledV3 extends Struct {2808 readonly maybeId: Option<U8aFixed>;2810 readonly maybeId: Option<U8aFixed>;2809 readonly priority: u8;2811 readonly priority: u8;2810 readonly call: FrameSupportScheduleMaybeHashed;2812 readonly call: FrameSupportScheduleMaybeHashed;2811 readonly maybePeriodic: Option<ITuple<[u32, u32]>>;2813 readonly maybePeriodic: Option<ITuple<[u32, u32]>>;2812 readonly origin: OpalRuntimeOriginCaller;2814 readonly origin: OpalRuntimeOriginCaller;2813 }2815 }281428162815 /** @name OpalRuntimeOriginCaller (343) */2817 /** @name OpalRuntimeOriginCaller (345) */2816 export interface OpalRuntimeOriginCaller extends Enum {2818 export interface OpalRuntimeOriginCaller extends Enum {2817 readonly isVoid: boolean;2819 readonly isVoid: boolean;2818 readonly isSystem: boolean;2820 readonly isSystem: boolean;2826 readonly type: 'Void' | 'System' | 'PolkadotXcm' | 'CumulusXcm' | 'Ethereum';2828 readonly type: 'Void' | 'System' | 'PolkadotXcm' | 'CumulusXcm' | 'Ethereum';2827 }2829 }282828302829 /** @name FrameSupportDispatchRawOrigin (344) */2831 /** @name FrameSupportDispatchRawOrigin (346) */2830 export interface FrameSupportDispatchRawOrigin extends Enum {2832 export interface FrameSupportDispatchRawOrigin extends Enum {2831 readonly isRoot: boolean;2833 readonly isRoot: boolean;2832 readonly isSigned: boolean;2834 readonly isSigned: boolean;2835 readonly type: 'Root' | 'Signed' | 'None';2837 readonly type: 'Root' | 'Signed' | 'None';2836 }2838 }283728392838 /** @name PalletXcmOrigin (345) */2840 /** @name PalletXcmOrigin (347) */2839 export interface PalletXcmOrigin extends Enum {2841 export interface PalletXcmOrigin extends Enum {2840 readonly isXcm: boolean;2842 readonly isXcm: boolean;2841 readonly asXcm: XcmV1MultiLocation;2843 readonly asXcm: XcmV1MultiLocation;2844 readonly type: 'Xcm' | 'Response';2846 readonly type: 'Xcm' | 'Response';2845 }2847 }284628482847 /** @name CumulusPalletXcmOrigin (346) */2849 /** @name CumulusPalletXcmOrigin (348) */2848 export interface CumulusPalletXcmOrigin extends Enum {2850 export interface CumulusPalletXcmOrigin extends Enum {2849 readonly isRelay: boolean;2851 readonly isRelay: boolean;2850 readonly isSiblingParachain: boolean;2852 readonly isSiblingParachain: boolean;2851 readonly asSiblingParachain: u32;2853 readonly asSiblingParachain: u32;2852 readonly type: 'Relay' | 'SiblingParachain';2854 readonly type: 'Relay' | 'SiblingParachain';2853 }2855 }285428562855 /** @name PalletEthereumRawOrigin (347) */2857 /** @name PalletEthereumRawOrigin (349) */2856 export interface PalletEthereumRawOrigin extends Enum {2858 export interface PalletEthereumRawOrigin extends Enum {2857 readonly isEthereumTransaction: boolean;2859 readonly isEthereumTransaction: boolean;2858 readonly asEthereumTransaction: H160;2860 readonly asEthereumTransaction: H160;2859 readonly type: 'EthereumTransaction';2861 readonly type: 'EthereumTransaction';2860 }2862 }286128632862 /** @name SpCoreVoid (348) */2864 /** @name SpCoreVoid (350) */2863 export type SpCoreVoid = Null;2865 export type SpCoreVoid = Null;286428662865 /** @name PalletUnqSchedulerError (349) */2867 /** @name PalletUniqueSchedulerError (351) */2866 export interface PalletUnqSchedulerError extends Enum {2868 export interface PalletUniqueSchedulerError extends Enum {2867 readonly isFailedToSchedule: boolean;2869 readonly isFailedToSchedule: boolean;2868 readonly isNotFound: boolean;2870 readonly isNotFound: boolean;2869 readonly isTargetBlockNumberInPast: boolean;2871 readonly isTargetBlockNumberInPast: boolean;2870 readonly isRescheduleNoChange: boolean;2872 readonly isRescheduleNoChange: boolean;2871 readonly type: 'FailedToSchedule' | 'NotFound' | 'TargetBlockNumberInPast' | 'RescheduleNoChange';2873 readonly type: 'FailedToSchedule' | 'NotFound' | 'TargetBlockNumberInPast' | 'RescheduleNoChange';2872 }2874 }287328752874 /** @name UpDataStructsCollection (350) */2876 /** @name UpDataStructsCollection (352) */2875 export interface UpDataStructsCollection extends Struct {2877 export interface UpDataStructsCollection extends Struct {2876 readonly owner: AccountId32;2878 readonly owner: AccountId32;2877 readonly mode: UpDataStructsCollectionMode;2879 readonly mode: UpDataStructsCollectionMode;2884 readonly externalCollection: bool;2886 readonly externalCollection: bool;2885 }2887 }288628882887 /** @name UpDataStructsSponsorshipState (351) */2889 /** @name UpDataStructsSponsorshipState (353) */2888 export interface UpDataStructsSponsorshipState extends Enum {2890 export interface UpDataStructsSponsorshipState extends Enum {2889 readonly isDisabled: boolean;2891 readonly isDisabled: boolean;2890 readonly isUnconfirmed: boolean;2892 readonly isUnconfirmed: boolean;2894 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';2896 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';2895 }2897 }289628982897 /** @name UpDataStructsProperties (352) */2899 /** @name UpDataStructsProperties (354) */2898 export interface UpDataStructsProperties extends Struct {2900 export interface UpDataStructsProperties extends Struct {2899 readonly map: UpDataStructsPropertiesMapBoundedVec;2901 readonly map: UpDataStructsPropertiesMapBoundedVec;2900 readonly consumedSpace: u32;2902 readonly consumedSpace: u32;2901 readonly spaceLimit: u32;2903 readonly spaceLimit: u32;2902 }2904 }290329052904 /** @name UpDataStructsPropertiesMapBoundedVec (353) */2906 /** @name UpDataStructsPropertiesMapBoundedVec (355) */2905 export interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}2907 export interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}290629082907 /** @name UpDataStructsPropertiesMapPropertyPermission (358) */2909 /** @name UpDataStructsPropertiesMapPropertyPermission (360) */2908 export interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}2910 export interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}290929112910 /** @name UpDataStructsCollectionStats (365) */2912 /** @name UpDataStructsCollectionStats (367) */2911 export interface UpDataStructsCollectionStats extends Struct {2913 export interface UpDataStructsCollectionStats extends Struct {2912 readonly created: u32;2914 readonly created: u32;2913 readonly destroyed: u32;2915 readonly destroyed: u32;2914 readonly alive: u32;2916 readonly alive: u32;2915 }2917 }291629182917 /** @name UpDataStructsTokenChild (366) */2919 /** @name UpDataStructsTokenChild (368) */2918 export interface UpDataStructsTokenChild extends Struct {2920 export interface UpDataStructsTokenChild extends Struct {2919 readonly token: u32;2921 readonly token: u32;2920 readonly collection: u32;2922 readonly collection: u32;2921 }2923 }292229242923 /** @name PhantomTypeUpDataStructs (367) */2925 /** @name PhantomTypeUpDataStructs (369) */2924 export interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild]>> {}2926 export interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild]>> {}292529272926 /** @name UpDataStructsTokenData (369) */2928 /** @name UpDataStructsTokenData (371) */2927 export interface UpDataStructsTokenData extends Struct {2929 export interface UpDataStructsTokenData extends Struct {2928 readonly properties: Vec<UpDataStructsProperty>;2930 readonly properties: Vec<UpDataStructsProperty>;2929 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;2931 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;2930 }2932 }293129332932 /** @name UpDataStructsRpcCollection (371) */2934 /** @name UpDataStructsRpcCollection (373) */2933 export interface UpDataStructsRpcCollection extends Struct {2935 export interface UpDataStructsRpcCollection extends Struct {2934 readonly owner: AccountId32;2936 readonly owner: AccountId32;2935 readonly mode: UpDataStructsCollectionMode;2937 readonly mode: UpDataStructsCollectionMode;2944 readonly readOnly: bool;2946 readonly readOnly: bool;2945 }2947 }294629482947 /** @name RmrkTraitsCollectionCollectionInfo (372) */2949 /** @name RmrkTraitsCollectionCollectionInfo (374) */2948 export interface RmrkTraitsCollectionCollectionInfo extends Struct {2950 export interface RmrkTraitsCollectionCollectionInfo extends Struct {2949 readonly issuer: AccountId32;2951 readonly issuer: AccountId32;2950 readonly metadata: Bytes;2952 readonly metadata: Bytes;2953 readonly nftsCount: u32;2955 readonly nftsCount: u32;2954 }2956 }295529572956 /** @name RmrkTraitsNftNftInfo (373) */2958 /** @name RmrkTraitsNftNftInfo (375) */2957 export interface RmrkTraitsNftNftInfo extends Struct {2959 export interface RmrkTraitsNftNftInfo extends Struct {2958 readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple;2960 readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple;2959 readonly royalty: Option<RmrkTraitsNftRoyaltyInfo>;2961 readonly royalty: Option<RmrkTraitsNftRoyaltyInfo>;2962 readonly pending: bool;2964 readonly pending: bool;2963 }2965 }296429662965 /** @name RmrkTraitsNftRoyaltyInfo (375) */2967 /** @name RmrkTraitsNftRoyaltyInfo (377) */2966 export interface RmrkTraitsNftRoyaltyInfo extends Struct {2968 export interface RmrkTraitsNftRoyaltyInfo extends Struct {2967 readonly recipient: AccountId32;2969 readonly recipient: AccountId32;2968 readonly amount: Permill;2970 readonly amount: Permill;2969 }2971 }297029722971 /** @name RmrkTraitsResourceResourceInfo (376) */2973 /** @name RmrkTraitsResourceResourceInfo (378) */2972 export interface RmrkTraitsResourceResourceInfo extends Struct {2974 export interface RmrkTraitsResourceResourceInfo extends Struct {2973 readonly id: u32;2975 readonly id: u32;2974 readonly resource: RmrkTraitsResourceResourceTypes;2976 readonly resource: RmrkTraitsResourceResourceTypes;2975 readonly pending: bool;2977 readonly pending: bool;2976 readonly pendingRemoval: bool;2978 readonly pendingRemoval: bool;2977 }2979 }297829802979 /** @name RmrkTraitsResourceResourceTypes (377) */2981 /** @name RmrkTraitsResourceResourceTypes (379) */2980 export interface RmrkTraitsResourceResourceTypes extends Enum {2982 export interface RmrkTraitsResourceResourceTypes extends Enum {2981 readonly isBasic: boolean;2983 readonly isBasic: boolean;2982 readonly asBasic: RmrkTraitsResourceBasicResource;2984 readonly asBasic: RmrkTraitsResourceBasicResource;2987 readonly type: 'Basic' | 'Composable' | 'Slot';2989 readonly type: 'Basic' | 'Composable' | 'Slot';2988 }2990 }298929912990 /** @name RmrkTraitsPropertyPropertyInfo (378) */2992 /** @name RmrkTraitsPropertyPropertyInfo (380) */2991 export interface RmrkTraitsPropertyPropertyInfo extends Struct {2993 export interface RmrkTraitsPropertyPropertyInfo extends Struct {2992 readonly key: Bytes;2994 readonly key: Bytes;2993 readonly value: Bytes;2995 readonly value: Bytes;2994 }2996 }299529972996 /** @name RmrkTraitsBaseBaseInfo (379) */2998 /** @name RmrkTraitsBaseBaseInfo (381) */2997 export interface RmrkTraitsBaseBaseInfo extends Struct {2999 export interface RmrkTraitsBaseBaseInfo extends Struct {2998 readonly issuer: AccountId32;3000 readonly issuer: AccountId32;2999 readonly baseType: Bytes;3001 readonly baseType: Bytes;3000 readonly symbol: Bytes;3002 readonly symbol: Bytes;3001 }3003 }300230043003 /** @name RmrkTraitsNftNftChild (380) */3005 /** @name RmrkTraitsNftNftChild (382) */3004 export interface RmrkTraitsNftNftChild extends Struct {3006 export interface RmrkTraitsNftNftChild extends Struct {3005 readonly collectionId: u32;3007 readonly collectionId: u32;3006 readonly nftId: u32;3008 readonly nftId: u32;3007 }3009 }300830103009 /** @name PalletCommonError (382) */3011 /** @name PalletCommonError (384) */3010 export interface PalletCommonError extends Enum {3012 export interface PalletCommonError extends Enum {3011 readonly isCollectionNotFound: boolean;3013 readonly isCollectionNotFound: boolean;3012 readonly isMustBeTokenOwner: boolean;3014 readonly isMustBeTokenOwner: boolean;3032 readonly isAddressIsZero: boolean;3034 readonly isAddressIsZero: boolean;3033 readonly isUnsupportedOperation: boolean;3035 readonly isUnsupportedOperation: boolean;3034 readonly isNotSufficientFounds: boolean;3036 readonly isNotSufficientFounds: boolean;3035 readonly isNestingIsDisabled: boolean;3037 readonly isUserIsNotAllowedToNest: boolean;3036 readonly isOnlyOwnerAllowedToNest: boolean;3037 readonly isSourceCollectionIsNotAllowedToNest: boolean;3038 readonly isSourceCollectionIsNotAllowedToNest: boolean;3038 readonly isCollectionFieldSizeExceeded: boolean;3039 readonly isCollectionFieldSizeExceeded: boolean;3039 readonly isNoSpaceForProperty: boolean;3040 readonly isNoSpaceForProperty: boolean;3043 readonly isEmptyPropertyKey: boolean;3044 readonly isEmptyPropertyKey: boolean;3044 readonly isCollectionIsExternal: boolean;3045 readonly isCollectionIsExternal: boolean;3045 readonly isCollectionIsInternal: boolean;3046 readonly isCollectionIsInternal: boolean;3046 readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'NestingIsDisabled' | 'OnlyOwnerAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey' | 'CollectionIsExternal' | 'CollectionIsInternal';3047 readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'UserIsNotAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey' | 'CollectionIsExternal' | 'CollectionIsInternal';3047 }3048 }304830493049 /** @name PalletFungibleError (384) */3050 /** @name PalletFungibleError (386) */3050 export interface PalletFungibleError extends Enum {3051 export interface PalletFungibleError extends Enum {3051 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;3052 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;3052 readonly isFungibleItemsHaveNoId: boolean;3053 readonly isFungibleItemsHaveNoId: boolean;3056 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3057 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3057 }3058 }305830593059 /** @name PalletRefungibleItemData (385) */3060 /** @name PalletRefungibleItemData (387) */3060 export interface PalletRefungibleItemData extends Struct {3061 export interface PalletRefungibleItemData extends Struct {3061 readonly constData: Bytes;3062 readonly constData: Bytes;3062 }3063 }306330643064 /** @name PalletRefungibleError (389) */3065 /** @name PalletRefungibleError (391) */3065 export interface PalletRefungibleError extends Enum {3066 export interface PalletRefungibleError extends Enum {3066 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;3067 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;3067 readonly isWrongRefungiblePieces: boolean;3068 readonly isWrongRefungiblePieces: boolean;3070 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3071 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3071 }3072 }307230733073 /** @name PalletNonfungibleItemData (390) */3074 /** @name PalletNonfungibleItemData (392) */3074 export interface PalletNonfungibleItemData extends Struct {3075 export interface PalletNonfungibleItemData extends Struct {3075 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3076 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3076 }3077 }307730783078 /** @name PalletNonfungibleError (392) */3079 /** @name PalletNonfungibleError (394) */3079 export interface PalletNonfungibleError extends Enum {3080 export interface PalletNonfungibleError extends Enum {3080 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;3081 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;3081 readonly isNonfungibleItemsHaveNoAmount: boolean;3082 readonly isNonfungibleItemsHaveNoAmount: boolean;3082 readonly isCantBurnNftWithChildren: boolean;3083 readonly isCantBurnNftWithChildren: boolean;3083 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';3084 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';3084 }3085 }308530863086 /** @name PalletStructureError (393) */3087 /** @name PalletStructureError (395) */3087 export interface PalletStructureError extends Enum {3088 export interface PalletStructureError extends Enum {3088 readonly isOuroborosDetected: boolean;3089 readonly isOuroborosDetected: boolean;3089 readonly isDepthLimit: boolean;3090 readonly isDepthLimit: boolean;3091 readonly isBreadthLimit: boolean;3090 readonly isTokenNotFound: boolean;3092 readonly isTokenNotFound: boolean;3091 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'TokenNotFound';3093 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';3092 }3094 }309330953094 /** @name PalletRmrkCoreError (394) */3096 /** @name PalletRmrkCoreError (396) */3095 export interface PalletRmrkCoreError extends Enum {3097 export interface PalletRmrkCoreError extends Enum {3096 readonly isCorruptedCollectionType: boolean;3098 readonly isCorruptedCollectionType: boolean;3097 readonly isNftTypeEncodeError: boolean;3099 readonly isNftTypeEncodeError: boolean;3112 readonly type: 'CorruptedCollectionType' | 'NftTypeEncodeError' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'ResourceNotPending';3114 readonly type: 'CorruptedCollectionType' | 'NftTypeEncodeError' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'ResourceNotPending';3113 }3115 }311431163115 /** @name PalletRmrkEquipError (396) */3117 /** @name PalletRmrkEquipError (398) */3116 export interface PalletRmrkEquipError extends Enum {3118 export interface PalletRmrkEquipError extends Enum {3117 readonly isPermissionError: boolean;3119 readonly isPermissionError: boolean;3118 readonly isNoAvailableBaseId: boolean;3120 readonly isNoAvailableBaseId: boolean;3122 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst';3124 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst';3123 }3125 }312431263125 /** @name PalletEvmError (399) */3127 /** @name PalletEvmError (401) */3126 export interface PalletEvmError extends Enum {3128 export interface PalletEvmError extends Enum {3127 readonly isBalanceLow: boolean;3129 readonly isBalanceLow: boolean;3128 readonly isFeeOverflow: boolean;3130 readonly isFeeOverflow: boolean;3133 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';3135 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';3134 }3136 }313531373136 /** @name FpRpcTransactionStatus (402) */3138 /** @name FpRpcTransactionStatus (404) */3137 export interface FpRpcTransactionStatus extends Struct {3139 export interface FpRpcTransactionStatus extends Struct {3138 readonly transactionHash: H256;3140 readonly transactionHash: H256;3139 readonly transactionIndex: u32;3141 readonly transactionIndex: u32;3144 readonly logsBloom: EthbloomBloom;3146 readonly logsBloom: EthbloomBloom;3145 }3147 }314631483147 /** @name EthbloomBloom (404) */3149 /** @name EthbloomBloom (406) */3148 export interface EthbloomBloom extends U8aFixed {}3150 export interface EthbloomBloom extends U8aFixed {}314931513150 /** @name EthereumReceiptReceiptV3 (406) */3152 /** @name EthereumReceiptReceiptV3 (408) */3151 export interface EthereumReceiptReceiptV3 extends Enum {3153 export interface EthereumReceiptReceiptV3 extends Enum {3152 readonly isLegacy: boolean;3154 readonly isLegacy: boolean;3153 readonly asLegacy: EthereumReceiptEip658ReceiptData;3155 readonly asLegacy: EthereumReceiptEip658ReceiptData;3158 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3160 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3159 }3161 }316031623161 /** @name EthereumReceiptEip658ReceiptData (407) */3163 /** @name EthereumReceiptEip658ReceiptData (409) */3162 export interface EthereumReceiptEip658ReceiptData extends Struct {3164 export interface EthereumReceiptEip658ReceiptData extends Struct {3163 readonly statusCode: u8;3165 readonly statusCode: u8;3164 readonly usedGas: U256;3166 readonly usedGas: U256;3165 readonly logsBloom: EthbloomBloom;3167 readonly logsBloom: EthbloomBloom;3166 readonly logs: Vec<EthereumLog>;3168 readonly logs: Vec<EthereumLog>;3167 }3169 }316831703169 /** @name EthereumBlock (408) */3171 /** @name EthereumBlock (410) */3170 export interface EthereumBlock extends Struct {3172 export interface EthereumBlock extends Struct {3171 readonly header: EthereumHeader;3173 readonly header: EthereumHeader;3172 readonly transactions: Vec<EthereumTransactionTransactionV2>;3174 readonly transactions: Vec<EthereumTransactionTransactionV2>;3173 readonly ommers: Vec<EthereumHeader>;3175 readonly ommers: Vec<EthereumHeader>;3174 }3176 }317531773176 /** @name EthereumHeader (409) */3178 /** @name EthereumHeader (411) */3177 export interface EthereumHeader extends Struct {3179 export interface EthereumHeader extends Struct {3178 readonly parentHash: H256;3180 readonly parentHash: H256;3179 readonly ommersHash: H256;3181 readonly ommersHash: H256;3192 readonly nonce: EthereumTypesHashH64;3194 readonly nonce: EthereumTypesHashH64;3193 }3195 }319431963195 /** @name EthereumTypesHashH64 (410) */3197 /** @name EthereumTypesHashH64 (412) */3196 export interface EthereumTypesHashH64 extends U8aFixed {}3198 export interface EthereumTypesHashH64 extends U8aFixed {}319731993198 /** @name PalletEthereumError (415) */3200 /** @name PalletEthereumError (417) */3199 export interface PalletEthereumError extends Enum {3201 export interface PalletEthereumError extends Enum {3200 readonly isInvalidSignature: boolean;3202 readonly isInvalidSignature: boolean;3201 readonly isPreLogExists: boolean;3203 readonly isPreLogExists: boolean;3202 readonly type: 'InvalidSignature' | 'PreLogExists';3204 readonly type: 'InvalidSignature' | 'PreLogExists';3203 }3205 }320432063205 /** @name PalletEvmCoderSubstrateError (416) */3207 /** @name PalletEvmCoderSubstrateError (418) */3206 export interface PalletEvmCoderSubstrateError extends Enum {3208 export interface PalletEvmCoderSubstrateError extends Enum {3207 readonly isOutOfGas: boolean;3209 readonly isOutOfGas: boolean;3208 readonly isOutOfFund: boolean;3210 readonly isOutOfFund: boolean;3209 readonly type: 'OutOfGas' | 'OutOfFund';3211 readonly type: 'OutOfGas' | 'OutOfFund';3210 }3212 }321132133212 /** @name PalletEvmContractHelpersSponsoringModeT (417) */3214 /** @name PalletEvmContractHelpersSponsoringModeT (419) */3213 export interface PalletEvmContractHelpersSponsoringModeT extends Enum {3215 export interface PalletEvmContractHelpersSponsoringModeT extends Enum {3214 readonly isDisabled: boolean;3216 readonly isDisabled: boolean;3215 readonly isAllowlisted: boolean;3217 readonly isAllowlisted: boolean;3216 readonly isGenerous: boolean;3218 readonly isGenerous: boolean;3217 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';3219 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';3218 }3220 }321932213220 /** @name PalletEvmContractHelpersError (419) */3222 /** @name PalletEvmContractHelpersError (421) */3221 export interface PalletEvmContractHelpersError extends Enum {3223 export interface PalletEvmContractHelpersError extends Enum {3222 readonly isNoPermission: boolean;3224 readonly isNoPermission: boolean;3223 readonly type: 'NoPermission';3225 readonly type: 'NoPermission';3224 }3226 }322532273226 /** @name PalletEvmMigrationError (420) */3228 /** @name PalletEvmMigrationError (422) */3227 export interface PalletEvmMigrationError extends Enum {3229 export interface PalletEvmMigrationError extends Enum {3228 readonly isAccountNotEmpty: boolean;3230 readonly isAccountNotEmpty: boolean;3229 readonly isAccountIsNotMigrating: boolean;3231 readonly isAccountIsNotMigrating: boolean;3230 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';3232 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';3231 }3233 }323232343233 /** @name SpRuntimeMultiSignature (422) */3235 /** @name SpRuntimeMultiSignature (424) */3234 export interface SpRuntimeMultiSignature extends Enum {3236 export interface SpRuntimeMultiSignature extends Enum {3235 readonly isEd25519: boolean;3237 readonly isEd25519: boolean;3236 readonly asEd25519: SpCoreEd25519Signature;3238 readonly asEd25519: SpCoreEd25519Signature;3241 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';3243 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';3242 }3244 }324332453244 /** @name SpCoreEd25519Signature (423) */3246 /** @name SpCoreEd25519Signature (425) */3245 export interface SpCoreEd25519Signature extends U8aFixed {}3247 export interface SpCoreEd25519Signature extends U8aFixed {}324632483247 /** @name SpCoreSr25519Signature (425) */3249 /** @name SpCoreSr25519Signature (427) */3248 export interface SpCoreSr25519Signature extends U8aFixed {}3250 export interface SpCoreSr25519Signature extends U8aFixed {}324932513250 /** @name SpCoreEcdsaSignature (426) */3252 /** @name SpCoreEcdsaSignature (428) */3251 export interface SpCoreEcdsaSignature extends U8aFixed {}3253 export interface SpCoreEcdsaSignature extends U8aFixed {}325232543253 /** @name FrameSystemExtensionsCheckSpecVersion (429) */3255 /** @name FrameSystemExtensionsCheckSpecVersion (431) */3254 export type FrameSystemExtensionsCheckSpecVersion = Null;3256 export type FrameSystemExtensionsCheckSpecVersion = Null;325532573256 /** @name FrameSystemExtensionsCheckGenesis (430) */3258 /** @name FrameSystemExtensionsCheckGenesis (432) */3257 export type FrameSystemExtensionsCheckGenesis = Null;3259 export type FrameSystemExtensionsCheckGenesis = Null;325832603259 /** @name FrameSystemExtensionsCheckNonce (433) */3261 /** @name FrameSystemExtensionsCheckNonce (435) */3260 export interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}3262 export interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}326132633262 /** @name FrameSystemExtensionsCheckWeight (434) */3264 /** @name FrameSystemExtensionsCheckWeight (436) */3263 export type FrameSystemExtensionsCheckWeight = Null;3265 export type FrameSystemExtensionsCheckWeight = Null;326432663265 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (435) */3267 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (437) */3266 export interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}3268 export interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}326732693268 /** @name OpalRuntimeRuntime (436) */3270 /** @name OpalRuntimeRuntime (438) */3269 export type OpalRuntimeRuntime = Null;3271 export type OpalRuntimeRuntime = Null;327032723271 /** @name PalletEthereumFakeTransactionFinalizer (437) */3273 /** @name PalletEthereumFakeTransactionFinalizer (439) */3272 export type PalletEthereumFakeTransactionFinalizer = Null;3274 export type PalletEthereumFakeTransactionFinalizer = Null;327332753274} // declare module3276} // declare moduletests/src/nesting/nest.test.tsdiffbeforeafterboth--- a/tests/src/nesting/nest.test.ts
+++ b/tests/src/nesting/nest.test.ts
@@ -32,7 +32,7 @@
it('Performs the full suite: bundles a token, transfers, and unnests', async () => {
await usingApi(async api => {
const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: 'Owner'});
+ await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {tokenOwner: true}});
const targetToken = await createItemExpectSuccess(alice, collection, 'NFT');
// Create a nested token
@@ -62,7 +62,7 @@
it('Transfers an already bundled token', async () => {
await usingApi(async api => {
const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: 'Owner'});
+ await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {tokenOwner: true}});
const tokenA = await createItemExpectSuccess(alice, collection, 'NFT');
const tokenB = await createItemExpectSuccess(alice, collection, 'NFT');
@@ -92,7 +92,7 @@
it('Checks token children', async () => {
await usingApi(async api => {
const collectionA = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collectionA, {nesting: 'Owner'});
+ await setCollectionPermissionsExpectSuccess(alice, collectionA, {nesting: {tokenOwner: true}});
const collectionB = await createCollectionExpectSuccess({mode: {type: 'Fungible', decimalPoints: 0}});
const targetToken = await createItemExpectSuccess(alice, collectionA, 'NFT');
@@ -151,7 +151,7 @@
it('NFT: allows an Owner to nest/unnest their token', async () => {
await usingApi(async api => {
const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: 'Owner'});
+ await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {tokenOwner: true}});
const targetToken = await createItemExpectSuccess(alice, collection, 'NFT');
// Create a nested token
@@ -170,7 +170,7 @@
it('NFT: allows an Owner to nest/unnest their token (Restricted nesting)', async () => {
await usingApi(async api => {
const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {OwnerRestricted:[collection]}});
+ await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {tokenOwner: true, restricted:[collection]}});
const targetToken = await createItemExpectSuccess(alice, collection, 'NFT');
// Create a nested token
@@ -191,7 +191,7 @@
it('Fungible: allows an Owner to nest/unnest their token', async () => {
await usingApi(async api => {
const collectionNFT = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: 'Owner'});
+ await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {tokenOwner: true}});
const targetToken = await createItemExpectSuccess(alice, collectionNFT, 'NFT', {Substrate: alice.address});
const targetAddress = {Ethereum: tokenIdToAddress(collectionNFT, targetToken)};
@@ -218,7 +218,7 @@
const collectionFT = await createCollectionExpectSuccess({mode: {type: 'Fungible', decimalPoints: 0}});
- await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {OwnerRestricted: [collectionFT]}});
+ await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {tokenOwner: true, restricted: [collectionFT]}});
// Create a nested token
await expect(executeTransaction(api, alice, api.tx.unique.createItem(
@@ -238,7 +238,7 @@
it('ReFungible: allows an Owner to nest/unnest their token', async () => {
await usingApi(async api => {
const collectionNFT = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: 'Owner'});
+ await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {tokenOwner: true}});
const targetToken = await createItemExpectSuccess(alice, collectionNFT, 'NFT', {Substrate: alice.address});
const targetAddress = {Ethereum: tokenIdToAddress(collectionNFT, targetToken)};
@@ -265,7 +265,7 @@
const collectionRFT = await createCollectionExpectSuccess({mode: {type: 'ReFungible'}});
- await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {OwnerRestricted:[collectionRFT]}});
+ await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {tokenOwner: true, restricted:[collectionRFT]}});
// Create a nested token
await expect(executeTransaction(api, alice, api.tx.unique.createItem(
@@ -292,7 +292,7 @@
it('Disallows excessive token nesting', async () => {
await usingApi(async api => {
const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: 'Owner'});
+ await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {tokenOwner: true}});
const targetToken = await createItemExpectSuccess(alice, collection, 'NFT');
const maxNestingLevel = 5;
@@ -326,7 +326,7 @@
it('NFT: disallows to nest token if nesting is disabled', async () => {
await usingApi(async api => {
const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: 'Disabled'});
+ await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {}});
const targetToken = await createItemExpectSuccess(alice, collection, 'NFT');
// Try to create a nested token
@@ -334,12 +334,12 @@
collection,
{Ethereum: tokenIdToAddress(collection, targetToken)},
{nft: {const_data: [], variable_data: []}} as any,
- )), 'while creating nested token').to.be.rejectedWith(/^common\.NestingIsDisabled$/);
+ )), 'while creating nested token').to.be.rejectedWith(/^common\.UserIsNotAllowedToNest$/);
// Create a token to be nested
const newToken = await createItemExpectSuccess(alice, collection, 'NFT');
// Try to nest
- await expect(executeTransaction(api, alice, api.tx.unique.transfer({Ethereum: tokenIdToAddress(collection, targetToken)}, collection, newToken, 1)), 'while nesting new token').to.be.rejectedWith(/common\.NestingIsDisabled/);
+ await expect(executeTransaction(api, alice, api.tx.unique.transfer({Ethereum: tokenIdToAddress(collection, targetToken)}, collection, newToken, 1)), 'while nesting new token').to.be.rejectedWith(/common\.UserIsNotAllowedToNest/);
expect(await getTopmostTokenOwner(api, collection, newToken)).to.be.deep.equal({Substrate: alice.address});
expect(await getTokenOwner(api, collection, newToken)).to.be.deep.equal({Substrate: alice.address});
});
@@ -348,7 +348,7 @@
it('NFT: disallows a non-Owner to nest someone else\'s token', async () => {
await usingApi(async api => {
const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: 'Owner'});
+ await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {tokenOwner: true}});
await addToAllowListExpectSuccess(alice, collection, bob.address);
await enableAllowListExpectSuccess(alice, collection);
@@ -362,7 +362,7 @@
collection,
{Ethereum: tokenIdToAddress(collection, targetToken)},
{nft: {const_data: [], variable_data: []}} as any,
- )), 'while creating nested token').to.be.rejectedWith(/common\.OnlyOwnerAllowedToNest/);
+ )), 'while creating nested token').to.be.rejectedWith(/common\.UserIsNotAllowedToNest/);
// Try to create and nest a token in the wrong collection
const newToken = await createItemExpectSuccess(alice, collection, 'NFT');
@@ -374,7 +374,7 @@
it('NFT: disallows a non-Owner to nest someone else\'s token (Restricted nesting)', async () => {
await usingApi(async api => {
const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {OwnerRestricted:[collection]}});
+ await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {tokenOwner: true, restricted:[collection]}});
await addToAllowListExpectSuccess(alice, collection, bob.address);
await enableAllowListExpectSuccess(alice, collection);
@@ -388,7 +388,7 @@
collection,
{Ethereum: tokenIdToAddress(collection, targetToken)},
{nft: {const_data: [], variable_data: []}} as any,
- )), 'while creating nested token').to.be.rejectedWith(/common\.OnlyOwnerAllowedToNest/);
+ )), 'while creating nested token').to.be.rejectedWith(/common\.UserIsNotAllowedToNest/);
// Try to create and nest a token in the wrong collection
const newToken = await createItemExpectSuccess(alice, collection, 'NFT');
@@ -400,7 +400,7 @@
it('NFT: disallows to nest token in an unlisted collection', async () => {
await usingApi(async api => {
const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {OwnerRestricted:[]}});
+ await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {tokenOwner: true, restricted:[]}});
// Create a token to attempt to be nested into
const targetToken = await createItemExpectSuccess(alice, collection, 'NFT');
@@ -424,7 +424,7 @@
it('Fungible: disallows to nest token if nesting is disabled', async () => {
await usingApi(async api => {
const collectionNFT = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: 'Disabled'});
+ await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {}});
const targetToken = await createItemExpectSuccess(alice, collectionNFT, 'NFT');
const targetAddress = {Ethereum: tokenIdToAddress(collectionNFT, targetToken)};
@@ -435,12 +435,12 @@
collectionFT,
targetAddress,
{Fungible: {Value: 10}},
- )), 'while creating nested token').to.be.rejectedWith(/^common\.NestingIsDisabled$/);
+ )), 'while creating nested token').to.be.rejectedWith(/^common\.UserIsNotAllowedToNest$/);
// Create a token to be nested
const newToken = await createItemExpectSuccess(alice, collectionFT, 'Fungible');
// Try to nest
- await expect(executeTransaction(api, alice, api.tx.unique.transfer(targetAddress, collectionFT, newToken, 1)), 'while nesting new token').to.be.rejectedWith(/common\.NestingIsDisabled/);
+ await expect(executeTransaction(api, alice, api.tx.unique.transfer(targetAddress, collectionFT, newToken, 1)), 'while nesting new token').to.be.rejectedWith(/common\.UserIsNotAllowedToNest/);
// Create another token to be nested
const newToken2 = await createItemExpectSuccess(alice, collectionFT, 'Fungible');
@@ -452,7 +452,7 @@
it('Fungible: disallows a non-Owner to nest someone else\'s token', async () => {
await usingApi(async api => {
const collectionNFT = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: 'Owner'});
+ await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {tokenOwner: true}});
await addToAllowListExpectSuccess(alice, collectionNFT, bob.address);
await enableAllowListExpectSuccess(alice, collectionNFT);
@@ -469,11 +469,11 @@
collectionFT,
targetAddress,
{Fungible: {Value: 10}},
- )), 'while creating nested token').to.be.rejectedWith(/common\.OnlyOwnerAllowedToNest/);
+ )), 'while creating nested token').to.be.rejectedWith(/common\.UserIsNotAllowedToNest/);
// Try to create and nest a token in the wrong collection
const newToken = await createItemExpectSuccess(alice, collectionFT, 'Fungible');
- await expect(executeTransaction(api, alice, api.tx.unique.transfer(targetAddress, collectionFT, newToken, 1)), 'while nesting new token').to.be.rejectedWith(/common\.OnlyOwnerAllowedToNest/);
+ await expect(executeTransaction(api, alice, api.tx.unique.transfer(targetAddress, collectionFT, newToken, 1)), 'while nesting new token').to.be.rejectedWith(/common\.UserIsNotAllowedToNest/);
});
});
@@ -489,25 +489,25 @@
const targetAddress = {Ethereum: tokenIdToAddress(collectionNFT, targetToken)};
const collectionFT = await createCollectionExpectSuccess({mode: {type: 'Fungible', decimalPoints: 0}});
- await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {OwnerRestricted:[collectionFT]}});
+ await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {tokenOwner: true, restricted:[collectionFT]}});
// Try to create a nested token in the wrong collection
await expect(executeTransaction(api, alice, api.tx.unique.createItem(
collectionFT,
targetAddress,
{Fungible: {Value: 10}},
- )), 'while creating nested token').to.be.rejectedWith(/common\.OnlyOwnerAllowedToNest/);
+ )), 'while creating nested token').to.be.rejectedWith(/common\.UserIsNotAllowedToNest/);
// Try to create and nest a token in the wrong collection
const newToken = await createItemExpectSuccess(alice, collectionFT, 'Fungible');
- await expect(executeTransaction(api, alice, api.tx.unique.transfer(targetAddress, collectionFT, newToken, 1)), 'while nesting new token').to.be.rejectedWith(/common\.OnlyOwnerAllowedToNest/);
+ await expect(executeTransaction(api, alice, api.tx.unique.transfer(targetAddress, collectionFT, newToken, 1)), 'while nesting new token').to.be.rejectedWith(/common\.UserIsNotAllowedToNest/);
});
});
it('Fungible: disallows to nest token in an unlisted collection', async () => {
await usingApi(async api => {
const collectionNFT = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {OwnerRestricted:[]}});
+ await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {tokenOwner: true, restricted:[]}});
// Create a token to attempt to be nested into
const targetToken = await createItemExpectSuccess(alice, collectionNFT, 'NFT');
@@ -533,7 +533,7 @@
it('ReFungible: disallows to nest token if nesting is disabled', async () => {
await usingApi(async api => {
const collectionNFT = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: 'Disabled'});
+ await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {}});
const targetToken = await createItemExpectSuccess(alice, collectionNFT, 'NFT');
const targetAddress = {Ethereum: tokenIdToAddress(collectionNFT, targetToken)};
@@ -544,14 +544,14 @@
collectionRFT,
targetAddress,
{ReFungible: {const_data: [], pieces: 100}},
- )), 'while creating a nested token').to.be.rejectedWith(/^common\.NestingIsDisabled$/);
+ )), 'while creating a nested token').to.be.rejectedWith(/^common\.UserIsNotAllowedToNest$/);
// Create a token to be nested
const newToken = await createItemExpectSuccess(alice, collectionRFT, 'ReFungible');
// Try to nest
await transferExpectFailure(collectionRFT, newToken, alice, targetAddress, 100);
// Try to nest
- await expect(executeTransaction(api, alice, api.tx.unique.transfer(targetAddress, collectionRFT, newToken, 1)), 'while nesting new token').to.be.rejectedWith(/common\.NestingIsDisabled/);
+ await expect(executeTransaction(api, alice, api.tx.unique.transfer(targetAddress, collectionRFT, newToken, 1)), 'while nesting new token').to.be.rejectedWith(/common\.UserIsNotAllowedToNest/);
// Create another token to be nested
const newToken2 = await createItemExpectSuccess(alice, collectionRFT, 'ReFungible');
@@ -563,7 +563,7 @@
it('ReFungible: disallows a non-Owner to nest someone else\'s token', async () => {
await usingApi(async api => {
const collectionNFT = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: 'Owner'});
+ await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {tokenOwner: true}});
await addToAllowListExpectSuccess(alice, collectionNFT, bob.address);
await enableAllowListExpectSuccess(alice, collectionNFT);
@@ -580,11 +580,11 @@
collectionRFT,
targetAddress,
{ReFungible: {const_data: [], pieces: 100}},
- )), 'while creating a nested token').to.be.rejectedWith(/common\.OnlyOwnerAllowedToNest/);
+ )), 'while creating a nested token').to.be.rejectedWith(/common\.UserIsNotAllowedToNest/);
// Try to create and nest a token in the wrong collection
const newToken = await createItemExpectSuccess(alice, collectionRFT, 'ReFungible');
- await expect(executeTransaction(api, alice, api.tx.unique.transfer(targetAddress, collectionRFT, newToken, 1)), 'while nesting new token').to.be.rejectedWith(/common\.OnlyOwnerAllowedToNest/);
+ await expect(executeTransaction(api, alice, api.tx.unique.transfer(targetAddress, collectionRFT, newToken, 1)), 'while nesting new token').to.be.rejectedWith(/common\.UserIsNotAllowedToNest/);
});
});
@@ -600,25 +600,25 @@
const targetAddress = {Ethereum: tokenIdToAddress(collectionNFT, targetToken)};
const collectionRFT = await createCollectionExpectSuccess({mode: {type: 'ReFungible'}});
- await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {OwnerRestricted:[collectionRFT]}});
+ await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {tokenOwner: true, restricted:[collectionRFT]}});
// Try to create a nested token in the wrong collection
await expect(executeTransaction(api, alice, api.tx.unique.createItem(
collectionRFT,
targetAddress,
{ReFungible: {const_data: [], pieces: 100}},
- )), 'while creating a nested token').to.be.rejectedWith(/common\.OnlyOwnerAllowedToNest/);
+ )), 'while creating a nested token').to.be.rejectedWith(/common\.UserIsNotAllowedToNest/);
// Try to create and nest a token in the wrong collection
const newToken = await createItemExpectSuccess(alice, collectionRFT, 'ReFungible');
- await expect(executeTransaction(api, alice, api.tx.unique.transfer(targetAddress, collectionRFT, newToken, 1)), 'while nesting new token').to.be.rejectedWith(/common\.OnlyOwnerAllowedToNest/);
+ await expect(executeTransaction(api, alice, api.tx.unique.transfer(targetAddress, collectionRFT, newToken, 1)), 'while nesting new token').to.be.rejectedWith(/common\.UserIsNotAllowedToNest/);
});
});
it('ReFungible: disallows to nest token to an unlisted collection', async () => {
await usingApi(async api => {
const collectionNFT = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {OwnerRestricted:[]}});
+ await setCollectionPermissionsExpectSuccess(alice, collectionNFT, {nesting: {tokenOwner: true, restricted:[]}});
// Create a token to attempt to be nested into
const targetToken = await createItemExpectSuccess(alice, collectionNFT, 'NFT');
tests/src/nesting/rules-smoke.test.tsdiffbeforeafterboth--- a/tests/src/nesting/rules-smoke.test.ts
+++ b/tests/src/nesting/rules-smoke.test.ts
@@ -14,7 +14,7 @@
const events = await executeTransaction(api, alice, api.tx.unique.createCollectionEx({
mode: 'NFT',
permissions: {
- nesting: {OwnerRestricted: []},
+ nesting: {tokenOwner: true, restricted: []},
},
}));
const collection = getCreateCollectionResult(events).collectionId;
tests/src/nesting/unnest.test.tsdiffbeforeafterboth--- a/tests/src/nesting/unnest.test.ts
+++ b/tests/src/nesting/unnest.test.ts
@@ -27,7 +27,7 @@
it('NFT: allows the owner to successfully unnest a token', async () => {
await usingApi(async api => {
const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: 'Owner'});
+ await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {tokenOwner: true}});
const targetToken = await createItemExpectSuccess(alice, collection, 'NFT');
const targetAddress = {Ethereum: tokenIdToAddress(collection, targetToken)};
@@ -56,7 +56,7 @@
it('Fungible: allows the owner to successfully unnest a token', async () => {
await usingApi(async api => {
const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: 'Owner'});
+ await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {tokenOwner: true}});
const targetToken = await createItemExpectSuccess(alice, collection, 'NFT');
const targetAddress = {Ethereum: tokenIdToAddress(collection, targetToken)};
@@ -83,7 +83,7 @@
it('ReFungible: allows the owner to successfully unnest a token', async () => {
await usingApi(async api => {
const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: 'Owner'});
+ await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {tokenOwner: true}});
const targetToken = await createItemExpectSuccess(alice, collection, 'NFT');
const targetAddress = {Ethereum: tokenIdToAddress(collection, targetToken)};
@@ -118,7 +118,7 @@
it('Disallows a non-owner to unnest/burn a token', async () => {
await usingApi(async api => {
const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: 'Owner'});
+ await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {tokenOwner: true}});
const targetToken = await createItemExpectSuccess(alice, collection, 'NFT');
const targetAddress = {Ethereum: tokenIdToAddress(collection, targetToken)};
@@ -148,7 +148,7 @@
// Recursive nesting
it('Prevents Ouroboros creation', async () => {
const collection = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
- await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: 'Owner'});
+ await setCollectionPermissionsExpectSuccess(alice, collection, {nesting: {tokenOwner: true}});
const targetToken = await createItemExpectSuccess(alice, collection, 'NFT');
// Create a nested token ouroboros
tests/src/removeCollectionAdmin.test.tsdiffbeforeafterboth--- a/tests/src/removeCollectionAdmin.test.ts
+++ b/tests/src/removeCollectionAdmin.test.ts
@@ -111,7 +111,7 @@
});
});
- it.only('Admin can\'t remove collection admin.', async () => {
+ it('Admin can\'t remove collection admin.', async () => {
await usingApi(async (api, privateKeyWrapper) => {
const collectionId = await createCollectionExpectSuccess();
const alice = privateKeyWrapper('//Alice');
tests/src/util/helpers.tsdiffbeforeafterboth--- a/tests/src/util/helpers.ts
+++ b/tests/src/util/helpers.ts
@@ -193,7 +193,7 @@
if (method === 'ExtrinsicSuccess') {
success = true;
} else if ((expectSection == section) && (expectMethod == method)) {
- successData = extractAction!(data);
+ successData = extractAction!(data as any);
}
});
@@ -547,7 +547,7 @@
});
}
-export const setCollectionPermissionsExpectSuccess = async (sender: IKeyringPair, collectionId: number, permissions: {mintMode?: boolean, access?: 'Normal' | 'AllowList', nesting?: 'Disabled' | 'Owner' | {OwnerRestricted: number[]}}) => {
+export const setCollectionPermissionsExpectSuccess = async (sender: IKeyringPair, collectionId: number, permissions: any) => {
await usingApi(async(api) => {
const tx = api.tx.unique.setCollectionPermissions(collectionId, permissions);
const events = await submitTransactionAsync(sender, tx);
tests/yarn.lockdiffbeforeafterboth--- a/tests/yarn.lock
+++ b/tests/yarn.lock
@@ -508,78 +508,78 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"
-"@polkadot/api-augment@8.7.2-11":
- version "8.7.2-11"
- resolved "https://registry.yarnpkg.com/@polkadot/api-augment/-/api-augment-8.7.2-11.tgz#7f174f830c181d82863eb41f48e24fd6bbde3065"
- integrity sha512-yKsuxjez1ArwSEZJ+g8mausm38CgOtaWBG5ob5cmO9M2v45HBXy3Kmviqr8Dputtu23deT85p7m/8RFLlAnzSA==
+"@polkadot/api-augment@8.7.2-15":
+ version "8.7.2-15"
+ resolved "https://registry.yarnpkg.com/@polkadot/api-augment/-/api-augment-8.7.2-15.tgz#a141d3cd595a39e7e2965330268b5eb92bdd5849"
+ integrity sha512-QGXosX6p0RFYNhWepZCIaRiyCvHnVt5Pb6U7/77UxIszgGRHfHFDsYr4v5bGiaRTOj/E8moc2Ufi/+VgOiG9sw==
dependencies:
"@babel/runtime" "^7.18.3"
- "@polkadot/api-base" "8.7.2-11"
- "@polkadot/rpc-augment" "8.7.2-11"
- "@polkadot/types" "8.7.2-11"
- "@polkadot/types-augment" "8.7.2-11"
- "@polkadot/types-codec" "8.7.2-11"
+ "@polkadot/api-base" "8.7.2-15"
+ "@polkadot/rpc-augment" "8.7.2-15"
+ "@polkadot/types" "8.7.2-15"
+ "@polkadot/types-augment" "8.7.2-15"
+ "@polkadot/types-codec" "8.7.2-15"
"@polkadot/util" "^9.4.1"
-"@polkadot/api-base@8.7.2-11":
- version "8.7.2-11"
- resolved "https://registry.yarnpkg.com/@polkadot/api-base/-/api-base-8.7.2-11.tgz#7e297a0ca283a58bc9d8d11c1edb099bc61da9f1"
- integrity sha512-WQE5uvb7W7AKSfy4ekW2i6mJJzZYLMS/eNPNXYpURW/cRPt9NhT9lNz2Ae2d7gaWgWil+jNLecXTHTUzxobRbA==
+"@polkadot/api-base@8.7.2-15":
+ version "8.7.2-15"
+ resolved "https://registry.yarnpkg.com/@polkadot/api-base/-/api-base-8.7.2-15.tgz#c909d3bf0fbfb3cc46ca7067199e36e72b959bdb"
+ integrity sha512-HXdtaqbpnfFbOazjI9CPSYM37S4mzhxUs8hLMKrWqpHL//at4tiMa5dRyev9VSKeE6gqeqCT9JTBvEAZ9eNR6Q==
dependencies:
"@babel/runtime" "^7.18.3"
- "@polkadot/rpc-core" "8.7.2-11"
- "@polkadot/types" "8.7.2-11"
+ "@polkadot/rpc-core" "8.7.2-15"
+ "@polkadot/types" "8.7.2-15"
"@polkadot/util" "^9.4.1"
rxjs "^7.5.5"
-"@polkadot/api-contract@8.7.2-11":
- version "8.7.2-11"
- resolved "https://registry.yarnpkg.com/@polkadot/api-contract/-/api-contract-8.7.2-11.tgz#9487394286e536a7b1edfb6296529722fa63a43a"
- integrity sha512-vOi4FX33ttkotJDzSum0nFUworWJ2+yfDejZkC33mM8zb+ne0Quggfz2nQqiKS2lgkj2z4YwJbsf/9paRQeS3w==
+"@polkadot/api-contract@8.7.2-15":
+ version "8.7.2-15"
+ resolved "https://registry.yarnpkg.com/@polkadot/api-contract/-/api-contract-8.7.2-15.tgz#687706fb4bd33c4a88187db3a269292f6e559892"
+ integrity sha512-Pr1Nm5zBpW9foCKm/Q6hIT5KHCeFVE8EFSfHBgjbitYpFOGnz19kduEpa0vxIcfq2WVXcVPTQ2eqjGtHoThNqA==
dependencies:
"@babel/runtime" "^7.18.3"
- "@polkadot/api" "8.7.2-11"
- "@polkadot/types" "8.7.2-11"
- "@polkadot/types-codec" "8.7.2-11"
- "@polkadot/types-create" "8.7.2-11"
+ "@polkadot/api" "8.7.2-15"
+ "@polkadot/types" "8.7.2-15"
+ "@polkadot/types-codec" "8.7.2-15"
+ "@polkadot/types-create" "8.7.2-15"
"@polkadot/util" "^9.4.1"
"@polkadot/util-crypto" "^9.4.1"
rxjs "^7.5.5"
-"@polkadot/api-derive@8.7.2-11":
- version "8.7.2-11"
- resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-8.7.2-11.tgz#21e315d554a8cd31bb1f3b10077960e35391a311"
- integrity sha512-8fkYidDgNjJcWHtiRfJQaI4H386uGZh5Ie0t21KG4sSC5R+Lbnm0CJwIX4scJvQ/U+38gCyQW07b+Pxt9oDwvg==
+"@polkadot/api-derive@8.7.2-15":
+ version "8.7.2-15"
+ resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-8.7.2-15.tgz#b29f24d435c036c9bf5624d18a9d93196cf2c4f4"
+ integrity sha512-0R3M9LFKoQ0d7elIDQjPKuV5EAHTtkU/72Lgxw2GYStsOqcnfFNomfLoLMuk8Xy4ETUAp/Kq1eMJpvsY6hSTtA==
dependencies:
"@babel/runtime" "^7.18.3"
- "@polkadot/api" "8.7.2-11"
- "@polkadot/api-augment" "8.7.2-11"
- "@polkadot/api-base" "8.7.2-11"
- "@polkadot/rpc-core" "8.7.2-11"
- "@polkadot/types" "8.7.2-11"
- "@polkadot/types-codec" "8.7.2-11"
+ "@polkadot/api" "8.7.2-15"
+ "@polkadot/api-augment" "8.7.2-15"
+ "@polkadot/api-base" "8.7.2-15"
+ "@polkadot/rpc-core" "8.7.2-15"
+ "@polkadot/types" "8.7.2-15"
+ "@polkadot/types-codec" "8.7.2-15"
"@polkadot/util" "^9.4.1"
"@polkadot/util-crypto" "^9.4.1"
rxjs "^7.5.5"
-"@polkadot/api@8.7.2-11":
- version "8.7.2-11"
- resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-8.7.2-11.tgz#d76ad24f96fc9eba49825c11277105d12bf5e05c"
- integrity sha512-eFQtZOJOVK5IbNSjvrk1JrOZJrtZRjaecMAhnQiglMPoIfQJiRbnXhUslGbXsgFoJsfWW6DAVY5aJi/PjuF9OQ==
+"@polkadot/api@8.7.2-15":
+ version "8.7.2-15"
+ resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-8.7.2-15.tgz#c7ede416e4d277c227fc93fdfdc4d27634935d08"
+ integrity sha512-tzEUWsXIPzPbnpn/3LTGtJ7SXzMgCJ/da5d9q0UH3vsx1gDEjuZEWXOeSYLHgbqQSgwPukvMVuGtRjcC+A/WZQ==
dependencies:
"@babel/runtime" "^7.18.3"
- "@polkadot/api-augment" "8.7.2-11"
- "@polkadot/api-base" "8.7.2-11"
- "@polkadot/api-derive" "8.7.2-11"
+ "@polkadot/api-augment" "8.7.2-15"
+ "@polkadot/api-base" "8.7.2-15"
+ "@polkadot/api-derive" "8.7.2-15"
"@polkadot/keyring" "^9.4.1"
- "@polkadot/rpc-augment" "8.7.2-11"
- "@polkadot/rpc-core" "8.7.2-11"
- "@polkadot/rpc-provider" "8.7.2-11"
- "@polkadot/types" "8.7.2-11"
- "@polkadot/types-augment" "8.7.2-11"
- "@polkadot/types-codec" "8.7.2-11"
- "@polkadot/types-create" "8.7.2-11"
- "@polkadot/types-known" "8.7.2-11"
+ "@polkadot/rpc-augment" "8.7.2-15"
+ "@polkadot/rpc-core" "8.7.2-15"
+ "@polkadot/rpc-provider" "8.7.2-15"
+ "@polkadot/types" "8.7.2-15"
+ "@polkadot/types-augment" "8.7.2-15"
+ "@polkadot/types-codec" "8.7.2-15"
+ "@polkadot/types-create" "8.7.2-15"
+ "@polkadot/types-known" "8.7.2-15"
"@polkadot/util" "^9.4.1"
"@polkadot/util-crypto" "^9.4.1"
eventemitter3 "^4.0.7"
@@ -603,38 +603,38 @@
"@polkadot/util" "9.4.1"
"@substrate/ss58-registry" "^1.22.0"
-"@polkadot/rpc-augment@8.7.2-11":
- version "8.7.2-11"
- resolved "https://registry.yarnpkg.com/@polkadot/rpc-augment/-/rpc-augment-8.7.2-11.tgz#b118303653fb6f80688c62600fde2ed489e1c974"
- integrity sha512-/h50Kzz/UZwhsV+g7bwGWf0fkVvlWIQ/zaA7H9xtuE4VGvmZRE4Uu06011ToVWNyAwM5xQfXBx1gUznRhem+pg==
+"@polkadot/rpc-augment@8.7.2-15":
+ version "8.7.2-15"
+ resolved "https://registry.yarnpkg.com/@polkadot/rpc-augment/-/rpc-augment-8.7.2-15.tgz#6175126968dfb79ba5549b03cac8c3860666e72b"
+ integrity sha512-IgfkR9CHT8jDuGYkb75DBFu+yJNW32+vOt3oS0sf57VqkHketSq9rD3mtZD37V/21Q4a17yrqKQOte7mMl9kcg==
dependencies:
"@babel/runtime" "^7.18.3"
- "@polkadot/rpc-core" "8.7.2-11"
- "@polkadot/types" "8.7.2-11"
- "@polkadot/types-codec" "8.7.2-11"
+ "@polkadot/rpc-core" "8.7.2-15"
+ "@polkadot/types" "8.7.2-15"
+ "@polkadot/types-codec" "8.7.2-15"
"@polkadot/util" "^9.4.1"
-"@polkadot/rpc-core@8.7.2-11":
- version "8.7.2-11"
- resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-8.7.2-11.tgz#9c31a34bc2f70e4dab40f9ba08ca9b89c8f3e5c0"
- integrity sha512-DyHYgzBusMFfsDJ/2VBaVTNHRwZ2cf/woaeJA/ijJbxK2Ke/sg9UW6zr+3Ip8T62GnSNnJoSHMOaMdqvebkNVQ==
+"@polkadot/rpc-core@8.7.2-15":
+ version "8.7.2-15"
+ resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-8.7.2-15.tgz#827a31adf833fb866cb5f39dbd86c5f0b44d63a4"
+ integrity sha512-yGmpESOmGyzY7+D3yUxbKToz/eP/q8vDyOGajLnHn12TcnjgbAfMdc4xdU6cQex+mSsPwS0YQFuPrPXGloCOHA==
dependencies:
"@babel/runtime" "^7.18.3"
- "@polkadot/rpc-augment" "8.7.2-11"
- "@polkadot/rpc-provider" "8.7.2-11"
- "@polkadot/types" "8.7.2-11"
+ "@polkadot/rpc-augment" "8.7.2-15"
+ "@polkadot/rpc-provider" "8.7.2-15"
+ "@polkadot/types" "8.7.2-15"
"@polkadot/util" "^9.4.1"
rxjs "^7.5.5"
-"@polkadot/rpc-provider@8.7.2-11":
- version "8.7.2-11"
- resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-8.7.2-11.tgz#1f4ef542aee83e0c4e1b2a126ed00ade7c818660"
- integrity sha512-LE5kKEMxL4mZ+dLbU8lOPG2GuPYliYtX1SnXv509zAgUjSCWW9fkdeMBF3tFCjSJJcUmle3mlxG8kYuAqNUScA==
+"@polkadot/rpc-provider@8.7.2-15":
+ version "8.7.2-15"
+ resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-8.7.2-15.tgz#99dd30085284442265225e0f12aef3849b7bfe44"
+ integrity sha512-EwgBnUIpGhEfSanDXVviQQ784HYD3DWUPdv9pIvn9qnCZPk7o+MGPvKW73A+XbQpPV9j8tAGnVsSnbDuoSVp1g==
dependencies:
"@babel/runtime" "^7.18.3"
"@polkadot/keyring" "^9.4.1"
- "@polkadot/types" "8.7.2-11"
- "@polkadot/types-support" "8.7.2-11"
+ "@polkadot/types" "8.7.2-15"
+ "@polkadot/types-support" "8.7.2-15"
"@polkadot/util" "^9.4.1"
"@polkadot/util-crypto" "^9.4.1"
"@polkadot/x-fetch" "^9.4.1"
@@ -652,86 +652,86 @@
dependencies:
"@types/chrome" "^0.0.171"
-"@polkadot/typegen@8.7.2-11":
- version "8.7.2-11"
- resolved "https://registry.yarnpkg.com/@polkadot/typegen/-/typegen-8.7.2-11.tgz#047c3c91f4b34f0188853bed606fd12f6a0fbf4d"
- integrity sha512-YZpyT8LJFm3akFurrxHpRWxZU50yKvrfdgyZpJh+JJOhSIIDtkx58JNj2+lv0QvhUFOUkd4IWap9bbCPmeLf6w==
+"@polkadot/typegen@8.7.2-15":
+ version "8.7.2-15"
+ resolved "https://registry.yarnpkg.com/@polkadot/typegen/-/typegen-8.7.2-15.tgz#06e9d054db1c63d9862186429a8017b2b80bce2a"
+ integrity sha512-NC8Ticirh20k1Co17D8cqQawIJ8W9HWDuq6oDyEMT4XkeBbZ1hQRO9JBO14neWDJmYJBhlUotP65jgjs8D5bMw==
dependencies:
"@babel/core" "^7.18.2"
"@babel/register" "^7.17.7"
"@babel/runtime" "^7.18.3"
- "@polkadot/api" "8.7.2-11"
- "@polkadot/api-augment" "8.7.2-11"
- "@polkadot/rpc-augment" "8.7.2-11"
- "@polkadot/rpc-provider" "8.7.2-11"
- "@polkadot/types" "8.7.2-11"
- "@polkadot/types-augment" "8.7.2-11"
- "@polkadot/types-codec" "8.7.2-11"
- "@polkadot/types-create" "8.7.2-11"
- "@polkadot/types-support" "8.7.2-11"
+ "@polkadot/api" "8.7.2-15"
+ "@polkadot/api-augment" "8.7.2-15"
+ "@polkadot/rpc-augment" "8.7.2-15"
+ "@polkadot/rpc-provider" "8.7.2-15"
+ "@polkadot/types" "8.7.2-15"
+ "@polkadot/types-augment" "8.7.2-15"
+ "@polkadot/types-codec" "8.7.2-15"
+ "@polkadot/types-create" "8.7.2-15"
+ "@polkadot/types-support" "8.7.2-15"
"@polkadot/util" "^9.4.1"
"@polkadot/x-ws" "^9.4.1"
handlebars "^4.7.7"
websocket "^1.0.34"
yargs "^17.5.1"
-"@polkadot/types-augment@8.7.2-11":
- version "8.7.2-11"
- resolved "https://registry.yarnpkg.com/@polkadot/types-augment/-/types-augment-8.7.2-11.tgz#c63105c76f8d85f7e642f8e81e16c3ffc3b3e7c4"
- integrity sha512-1meIbpS0Synfdz+Jo90jc/utxwbwl9XQiH5WoFCUYLlbtE/H/yQcIoeme5o6gr/q7BalFQMYYwGBfctGT/KGjA==
+"@polkadot/types-augment@8.7.2-15":
+ version "8.7.2-15"
+ resolved "https://registry.yarnpkg.com/@polkadot/types-augment/-/types-augment-8.7.2-15.tgz#7ab077a1a31190ad17183196efb1da065c0d0bcd"
+ integrity sha512-th1jVBDqpyQVB2gCNzo/HV0dIeNinjyPla01BFdhQ5mDKYXJ8fugsLCk5oKUPpItBrj+5NWCgynVvCwm0YJw3g==
dependencies:
"@babel/runtime" "^7.18.3"
- "@polkadot/types" "8.7.2-11"
- "@polkadot/types-codec" "8.7.2-11"
+ "@polkadot/types" "8.7.2-15"
+ "@polkadot/types-codec" "8.7.2-15"
"@polkadot/util" "^9.4.1"
-"@polkadot/types-codec@8.7.2-11":
- version "8.7.2-11"
- resolved "https://registry.yarnpkg.com/@polkadot/types-codec/-/types-codec-8.7.2-11.tgz#a852d3493062ee1052f7a837d07cce4146f2c67e"
- integrity sha512-ZvRBiVo5IwZ+vcbKIMv6l0kRG2bVpBmU+pCPdWV9zGtKpgumz1FTvxBmjXoNo6OJVX23fKNMF8qBD/DEiC9ZwA==
+"@polkadot/types-codec@8.7.2-15":
+ version "8.7.2-15"
+ resolved "https://registry.yarnpkg.com/@polkadot/types-codec/-/types-codec-8.7.2-15.tgz#6afa4ff45dc7afb9250f283f70a40be641367941"
+ integrity sha512-k8t7/Ern7sY4ZKQc5cYY3h1bg7/GAEaTPmKz094DhPJmEhi3NNgeJ4uyeB/JYCo5GbxXQG6W2M021s582urjMw==
dependencies:
"@babel/runtime" "^7.18.3"
"@polkadot/util" "^9.4.1"
-"@polkadot/types-create@8.7.2-11":
- version "8.7.2-11"
- resolved "https://registry.yarnpkg.com/@polkadot/types-create/-/types-create-8.7.2-11.tgz#2489409155d55c941a322349d740e9f8f8325147"
- integrity sha512-489UaZP7JKfZ2Fn0oDQ32setAiV7vv9Q3Kg4a+j4m2TGEEXAVeiNE4Uvijmsw3ayLTtzO9hL0WtMpFWa8GlIMg==
+"@polkadot/types-create@8.7.2-15":
+ version "8.7.2-15"
+ resolved "https://registry.yarnpkg.com/@polkadot/types-create/-/types-create-8.7.2-15.tgz#106a11eb71dc2743b140d8640a3b3e7fc5ccf10e"
+ integrity sha512-xB9jAJ3XQh/U05b+X77m5TPh4N9oBwwpePkAmLhovTSOSeobj7qeUKrZqccs0BSxJnJPlLwrwuusjeTtTfZCHw==
dependencies:
"@babel/runtime" "^7.18.3"
- "@polkadot/types-codec" "8.7.2-11"
+ "@polkadot/types-codec" "8.7.2-15"
"@polkadot/util" "^9.4.1"
-"@polkadot/types-known@8.7.2-11":
- version "8.7.2-11"
- resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-8.7.2-11.tgz#89cb0cdea197ed3887b30948a560b0cd13b39c23"
- integrity sha512-ulPQCmwJTJ/MGJGVJZfjWEGq28HGl7D4sOrigbfLOlo6/KyFl2p5H4GUFeF/s+/lGfUQsxfu4Q6QgXDZAOkB1A==
+"@polkadot/types-known@8.7.2-15":
+ version "8.7.2-15"
+ resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-8.7.2-15.tgz#171b8d3963a5c38d46f98a7c14be59033f9a4da8"
+ integrity sha512-c5YuuauPCu70chDnV7Fphh7SbAQl8JWj+PoY37I5BACCNFxtUx5KnP93BChiD0QxcHs2QqD6RdjW6O7cVRUKfA==
dependencies:
"@babel/runtime" "^7.18.3"
"@polkadot/networks" "^9.4.1"
- "@polkadot/types" "8.7.2-11"
- "@polkadot/types-codec" "8.7.2-11"
- "@polkadot/types-create" "8.7.2-11"
+ "@polkadot/types" "8.7.2-15"
+ "@polkadot/types-codec" "8.7.2-15"
+ "@polkadot/types-create" "8.7.2-15"
"@polkadot/util" "^9.4.1"
-"@polkadot/types-support@8.7.2-11":
- version "8.7.2-11"
- resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-8.7.2-11.tgz#ed08331ba1faf7a803e35aafa0692eefd28baa90"
- integrity sha512-oflUi0eahFMoS3Sxz6EKjZKNl7GMRnd91kClEV0FzR1wEha+3CL1BCXTGV3n8YoJtfztUUNInVHPQTvMW78WvQ==
+"@polkadot/types-support@8.7.2-15":
+ version "8.7.2-15"
+ resolved "https://registry.yarnpkg.com/@polkadot/types-support/-/types-support-8.7.2-15.tgz#2d726e3d5615383ca97db3f32ee21e2aad077fcb"
+ integrity sha512-Tl6xm9r/uqrKQK1OUdi5X9MaTgplBYPj3tY9677ZPV7QGYWt0Uz912u9fC2v0PGNReDXtzvrlgvk0aoErwzF5Q==
dependencies:
"@babel/runtime" "^7.18.3"
"@polkadot/util" "^9.4.1"
-"@polkadot/types@8.7.2-11":
- version "8.7.2-11"
- resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-8.7.2-11.tgz#84b1dca2896fec4af23d4096fa810b59f44071ac"
- integrity sha512-PSreCXr/csWpMVqtByEj7Pk5j+JEqxOiipsP+PdtOJaRnWtBMFpMqs7Fj2uULVYqFJKKPyp+JofnRDRcH1YDYg==
+"@polkadot/types@8.7.2-15":
+ version "8.7.2-15"
+ resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-8.7.2-15.tgz#5b25b6b76c916637a1d15133b5880a73079e65bc"
+ integrity sha512-KfJKzk6/Ta8vZVJH8+xYYPvd9SD+4fdl4coGgKuPGYZFsjDGnYvAX4ls6/WKby51JK5s24sqaUP3vZisIgh4wA==
dependencies:
"@babel/runtime" "^7.18.3"
"@polkadot/keyring" "^9.4.1"
- "@polkadot/types-augment" "8.7.2-11"
- "@polkadot/types-codec" "8.7.2-11"
- "@polkadot/types-create" "8.7.2-11"
+ "@polkadot/types-augment" "8.7.2-15"
+ "@polkadot/types-codec" "8.7.2-15"
+ "@polkadot/types-create" "8.7.2-15"
"@polkadot/util" "^9.4.1"
"@polkadot/util-crypto" "^9.4.1"
rxjs "^7.5.5"