difftreelog
feat(collator-selection) benchmarks for collator-selection and data-management + cargo fmt
in: master
21 files changed
Makefilediffbeforeafterboth--- a/Makefile
+++ b/Makefile
@@ -127,16 +127,16 @@
.PHONY: bench-foreign-assets
bench-foreign-assets:
- make _bench PALLET=foreign-assets
+ make _bench PALLET=foreign-assets
+
+.PHONY: bench-collator-selection
+bench-collator-selection:
+ make _bench PALLET=collator-selection
.PHONY: bench-app-promotion
bench-app-promotion:
make _bench PALLET=app-promotion PALLET_DIR=app-promotion
.PHONY: bench
-<<<<<<< HEAD
-bench: bench-data-management bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible bench-scheduler bench-rmrk-core bench-rmrk-equip bench-foreign-assets
-=======
# Disabled: bench-scheduler, bench-rmrk-core, bench-rmrk-equip
-bench: bench-evm-migration bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible bench-foreign-assets
->>>>>>> develop
+bench: bench-data-management bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible bench-foreign-assets
pallets/collator-selection/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/collator-selection/src/benchmarking.rs
+++ b/pallets/collator-selection/src/benchmarking.rs
@@ -45,10 +45,15 @@
use frame_system::{EventRecord, RawOrigin};
use pallet_authorship::EventHandler;
use pallet_session::{self as session, SessionManager};
+use pallet_configuration::{
+ self as configuration, BalanceOf,
+ CollatorSelectionDesiredCollatorsOverride as DesiredCollators,
+ CollatorSelectionLicenseBondOverride as LicenseBond,
+};
use sp_std::prelude::*;
-pub type BalanceOf<T> =
- <<T as Config>::Currency as Currency<<T as frame_system::Config>::AccountId>>::Balance;
+/*pub type BalanceOf<T> =
+<<T as Config>::Currency as Currency<<T as frame_system::Config>::AccountId>>::Balance;*/
const SEED: u32 = 0;
@@ -111,7 +116,7 @@
validators.into_iter().map(|(who, _)| who).collect()
}
-fn register_candidates<T: Config>(count: u32) {
+fn register_candidates<T: Config + configuration::Config>(count: u32) {
let candidates = (0..count)
.map(|c| account("candidate", c, SEED))
.collect::<Vec<_>>();
@@ -122,27 +127,44 @@
for who in candidates {
T::Currency::make_free_balance_be(&who, <LicenseBond<T>>::get() * 2u32.into());
- <CollatorSelection<T>>::register_as_candidate(RawOrigin::Signed(who).into()).unwrap();
+ <CollatorSelection<T>>::get_license(RawOrigin::Signed(who.clone()).into()).unwrap();
+ <CollatorSelection<T>>::onboard(RawOrigin::Signed(who).into()).unwrap();
}
}
benchmarks! {
- where_clause { where T: pallet_authorship::Config + session::Config }
+ where_clause { where T: pallet_authorship::Config + session::Config + configuration::Config }
+
+ add_invulnerable {
+ let b in 1 .. T::MaxCollators::get();
+ let new_invulnerable = register_validators::<T>(b)[0].clone();
+ let origin = T::UpdateOrigin::successful_origin();
+ }: {
+ assert_ok!(
+ <CollatorSelection<T>>::add_invulnerable(origin, new_invulnerable.clone())
+ );
+ }
+ verify {
+ assert_last_event::<T>(Event::InvulnerableAdded{invulnerable: new_invulnerable}.into());
+ }
- set_invulnerables {
+ remove_invulnerable {
let b in 1 .. T::MaxCollators::get();
- let new_invulnerables = register_validators::<T>(b);
+ let new_invulnerable = register_validators::<T>(b)[0].clone();
let origin = T::UpdateOrigin::successful_origin();
+ assert_ok!(
+ <CollatorSelection<T>>::add_invulnerable(origin.clone(), new_invulnerable.clone())
+ );
}: {
assert_ok!(
- <CollatorSelection<T>>::set_invulnerables(origin, new_invulnerables.clone())
+ <CollatorSelection<T>>::remove_invulnerable(origin, new_invulnerable.clone())
);
}
verify {
- assert_last_event::<T>(Event::NewInvulnerables{invulnerables: new_invulnerables}.into());
+ assert_last_event::<T>(Event::InvulnerableRemoved{invulnerable: new_invulnerable}.into());
}
- set_desired_collators {
+ /*set_desired_collators {
let max: u32 = 999;
let origin = T::UpdateOrigin::successful_origin();
}: {
@@ -164,11 +186,9 @@
}
verify {
assert_last_event::<T>(Event::NewLicenseBond{bond_amount}.into());
- }
+ }*/
- // worse case is when we have all the max-candidate slots filled except one, and we fill that
- // one.
- register_as_candidate {
+ get_license {
let c in 1 .. T::MaxCollators::get();
<LicenseBond<T>>::put(T::Currency::minimum_balance());
@@ -189,27 +209,96 @@
}: _(RawOrigin::Signed(caller.clone()))
verify {
- assert_last_event::<T>(Event::CandidateAdded{account_id: caller, deposit: bond / 2u32.into()}.into());
+ assert_last_event::<T>(Event::LicenseObtained{account_id: caller, deposit: bond / 2u32.into()}.into());
}
- // worse case is the last candidate leaving.
- leave_intent {
- let c in (T::MinCandidates::get() + 1) .. T::MaxCollators::get();
+ // worst case is when we have all the max-candidate slots filled except one, and we fill that
+ // one.
+ onboard {
+ let c in 1 .. T::MaxCollators::get();
+
<LicenseBond<T>>::put(T::Currency::minimum_balance());
+ <DesiredCollators<T>>::put(c + 1);
+
+ register_validators::<T>(c);
+ register_candidates::<T>(c);
+
+ let caller: T::AccountId = whitelisted_caller();
+ let bond: BalanceOf<T> = T::Currency::minimum_balance() * 2u32.into();
+ T::Currency::make_free_balance_be(&caller, bond.clone());
+
+ let origin = RawOrigin::Signed(caller.clone());
+
+ <session::Pallet<T>>::set_keys(
+ origin.clone().into(),
+ keys::<T>(c + 1),
+ Vec::new()
+ ).unwrap();
+
+ assert_ok!(
+ <CollatorSelection<T>>::get_license(origin.clone().into())
+ );
+ }: _(origin)
+ verify {
+ assert_last_event::<T>(Event::CandidateAdded{account_id: caller}.into());
+ }
+
+ // worst case is the last candidate leaving.
+ offboard {
+ let c in 1 .. T::MaxCollators::get();
+ <LicenseBond<T>>::put(T::Currency::minimum_balance());
<DesiredCollators<T>>::put(c);
register_validators::<T>(c);
register_candidates::<T>(c);
- let leaving = <Candidates<T>>::get().last().unwrap().who.clone();
+ let leaving = <Candidates<T>>::get().last().unwrap().clone();
whitelist!(leaving);
}: _(RawOrigin::Signed(leaving.clone()))
verify {
- // todo:collator verify these
- assert_last_event::<T>(Event::CandidateRemoved{account_id: leaving, deposit_returned: bond / 2u32.into() }.into());
+ assert_last_event::<T>(Event::CandidateRemoved{account_id: leaving}.into());
}
- // worse case is paying a non-existing candidate account.
+ // worst case is the last candidate leaving.
+ release_license {
+ let c in 1 .. T::MaxCollators::get();
+ let bond = T::Currency::minimum_balance();
+ <LicenseBond<T>>::put(bond);
+ <DesiredCollators<T>>::put(c);
+
+ register_validators::<T>(c);
+ register_candidates::<T>(c);
+
+ let leaving = <Candidates<T>>::get().last().unwrap().clone();
+ whitelist!(leaving);
+ }: _(RawOrigin::Signed(leaving.clone()))
+ verify {
+ assert_last_event::<T>(Event::LicenseReleased{account_id: leaving, deposit_returned: bond}.into());
+ }
+
+ // worst case is the last candidate leaving.
+ force_release_license {
+ let c in 1 .. T::MaxCollators::get();
+ let bond = T::Currency::minimum_balance();
+ <LicenseBond<T>>::put(bond);
+ <DesiredCollators<T>>::put(c);
+
+ register_validators::<T>(c);
+ register_candidates::<T>(c);
+
+ let leaving = <Candidates<T>>::get().last().unwrap().clone();
+ whitelist!(leaving);
+ let origin = T::UpdateOrigin::successful_origin();
+ }: {
+ assert_ok!(
+ <CollatorSelection<T>>::force_release_license(origin, leaving.clone())
+ );
+ }
+ verify {
+ assert_last_event::<T>(Event::LicenseReleased{account_id: leaving, deposit_returned: bond}.into());
+ }
+
+ // worst case is paying a non-existing candidate account.
note_author {
<LicenseBond<T>>::put(T::Currency::minimum_balance());
T::Currency::make_free_balance_be(
@@ -247,16 +336,16 @@
let non_removals = c.saturating_sub(r);
for i in 0..c {
- <LastAuthoredBlock<T>>::insert(candidates[i as usize].who.clone(), zero_block);
+ <LastAuthoredBlock<T>>::insert(candidates[i as usize].clone(), zero_block);
}
if non_removals > 0 {
for i in 0..non_removals {
- <LastAuthoredBlock<T>>::insert(candidates[i as usize].who.clone(), new_block);
+ <LastAuthoredBlock<T>>::insert(candidates[i as usize].clone(), new_block);
}
} else {
for i in 0..c {
- <LastAuthoredBlock<T>>::insert(candidates[i as usize].who.clone(), new_block);
+ <LastAuthoredBlock<T>>::insert(candidates[i as usize].clone(), new_block);
}
}
@@ -268,10 +357,8 @@
}: {
<CollatorSelection<T> as SessionManager<_>>::new_session(0)
} verify {
- if c > r && non_removals >= T::MinCandidates::get() {
+ if c > r {
assert!(<Candidates<T>>::get().len() < pre_length);
- } else if c > r && non_removals < T::MinCandidates::get() {
- assert!(<Candidates<T>>::get().len() == T::MinCandidates::get() as usize);
} else {
assert!(<Candidates<T>>::get().len() == pre_length);
}
pallets/collator-selection/src/lib.rsdiffbeforeafterboth--- a/pallets/collator-selection/src/lib.rs
+++ b/pallets/collator-selection/src/lib.rs
@@ -235,7 +235,7 @@
account_id: T::AccountId,
deposit: BalanceOf<T>,
},
- LicenseForfeited {
+ LicenseReleased {
account_id: T::AccountId,
deposit_returned: BalanceOf<T>,
},
@@ -285,7 +285,7 @@
impl<T: Config> Pallet<T> {
/// Add a collator to the list of invulnerable (fixed) collators.
#[pallet::call_index(0)]
- #[pallet::weight(T::WeightInfo::set_invulnerables(1u32))] // todo:collator weight
+ #[pallet::weight(T::WeightInfo::add_invulnerable(T::MaxCollators::get()))] // todo:collator weight
pub fn add_invulnerable(
origin: OriginFor<T>,
new: T::AccountId,
@@ -315,7 +315,7 @@
/// Remove a collator from the list of invulnerable (fixed) collators.
#[pallet::call_index(1)]
- #[pallet::weight(T::WeightInfo::set_invulnerables(1))] // todo:collator weight
+ #[pallet::weight(T::WeightInfo::remove_invulnerable(T::MaxCollators::get()))] // todo:collator weight
pub fn remove_invulnerable(
origin: OriginFor<T>,
who: T::AccountId,
@@ -344,7 +344,7 @@
///
/// This call is not available to `Invulnerable` collators.
#[pallet::call_index(2)]
- #[pallet::weight(T::WeightInfo::register_as_candidate(T::MaxCollators::get()))] // todo:collator weight
+ #[pallet::weight(T::WeightInfo::get_license(T::MaxCollators::get()))] // todo:collator weight
pub fn get_license(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
// register_as_candidate
let who = ensure_signed(origin)?;
@@ -377,7 +377,7 @@
///
/// This call is not available to `Invulnerable` collators.
#[pallet::call_index(3)]
- #[pallet::weight(T::WeightInfo::register_as_candidate(T::MaxCollators::get()))] // todo:collator weight
+ #[pallet::weight(T::WeightInfo::onboard(T::MaxCollators::get()))] // todo:collator weight
pub fn onboard(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
// register_as_candidate
let who = ensure_signed(origin)?;
@@ -417,33 +417,33 @@
})?;
Self::deposit_event(Event::CandidateAdded { account_id: who });
- Ok(Some(T::WeightInfo::register_as_candidate(current_count as u32)).into())
+ Ok(Some(T::WeightInfo::onboard(current_count as u32)).into())
}
/// Deregister `origin` as a collator candidate. Note that the collator can only leave on
/// session change. The license to `onboard` later at any other time will remain.
#[pallet::call_index(4)]
- #[pallet::weight(T::WeightInfo::leave_intent(T::MaxCollators::get()))] // todo:collator weight
+ #[pallet::weight(T::WeightInfo::offboard(T::MaxCollators::get()))] // todo:collator weight
pub fn offboard(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
// leave_intent
let who = ensure_signed(origin)?;
let current_count = Self::try_remove_candidate(&who)?;
- Ok(Some(T::WeightInfo::leave_intent(current_count as u32)).into()) // todo:collator weight
+ Ok(Some(T::WeightInfo::offboard(current_count as u32)).into()) // todo:collator weight
}
/// Forfeit `origin`'s own license. The `LicenseBond` will be unreserved immediately.
///
/// This call is not available to `Invulnerable` collators.
#[pallet::call_index(5)]
- #[pallet::weight(T::WeightInfo::leave_intent(T::MaxCollators::get()))] // todo:collator weight
+ #[pallet::weight(T::WeightInfo::release_license(T::MaxCollators::get()))] // todo:collator weight
pub fn release_license(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
// leave_intent
let who = ensure_signed(origin)?;
let current_count = Self::try_remove_candidate_and_release_license(&who, false, true)?;
- Ok(Some(T::WeightInfo::leave_intent(current_count as u32)).into()) // todo:collator weight
+ Ok(Some(T::WeightInfo::release_license(current_count as u32)).into()) // todo:collator weight
}
/// Force deregister `origin` as a collator candidate as a governing authority, and revoke its license.
@@ -452,7 +452,7 @@
///
/// This call is, of course, not applicable to `Invulnerable` collators.
#[pallet::call_index(6)]
- #[pallet::weight(T::WeightInfo::leave_intent(T::MaxCollators::get()))] // todo:collator weight
+ #[pallet::weight(T::WeightInfo::force_release_license(T::MaxCollators::get()))] // todo:collator weight
pub fn force_release_license(
origin: OriginFor<T>,
who: T::AccountId,
@@ -462,7 +462,7 @@
let current_count = Self::try_remove_candidate_and_release_license(&who, false, true)?;
- Ok(Some(T::WeightInfo::leave_intent(current_count as u32)).into()) // todo:collator weight
+ Ok(Some(T::WeightInfo::force_release_license(current_count as u32)).into()) // todo:collator weight
}
}
@@ -534,7 +534,7 @@
Err(Error::<T>::NoLicense.into())
}
})?;
- Self::deposit_event(Event::LicenseForfeited {
+ Self::deposit_event(Event::LicenseReleased {
account_id: who.clone(),
deposit_returned,
});
pallets/collator-selection/src/weights.rsdiffbeforeafterboth--- a/pallets/collator-selection/src/weights.rs
+++ b/pallets/collator-selection/src/weights.rs
@@ -44,11 +44,13 @@
// todo:collator re-generate weights
// The weight info trait for `pallet_collator_selection`.
pub trait WeightInfo {
- fn set_invulnerables(_b: u32) -> Weight;
- fn set_desired_collators() -> Weight;
- fn set_license_bond() -> Weight;
- fn register_as_candidate(_c: u32) -> Weight;
- fn leave_intent(_c: u32) -> Weight;
+ fn add_invulnerable(_b: u32) -> Weight;
+ fn remove_invulnerable(_b: u32) -> Weight;
+ fn get_license(_c: u32) -> Weight;
+ fn onboard(_c: u32) -> Weight;
+ fn offboard(_c: u32) -> Weight;
+ fn release_license(_c: u32) -> Weight;
+ fn force_release_license(_c: u32) -> Weight;
fn note_author() -> Weight;
fn new_session(_c: u32, _r: u32) -> Weight;
}
@@ -56,26 +58,47 @@
/// Weights for pallet_collator_selection using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
- fn set_invulnerables(b: u32) -> Weight {
+ fn add_invulnerable(b: u32) -> Weight {
Weight::from_ref_time(18_563_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(68_000 as u64).saturating_mul(b as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
- fn set_desired_collators() -> Weight {
- Weight::from_ref_time(16_363_000 as u64).saturating_add(T::DbWeight::get().writes(1 as u64))
+ fn remove_invulnerable(b: u32) -> Weight {
+ Weight::from_ref_time(18_563_000 as u64)
+ // Standard Error: 0
+ .saturating_add(Weight::from_ref_time(68_000 as u64).saturating_mul(b as u64))
+ .saturating_add(T::DbWeight::get().writes(1 as u64))
}
- fn set_license_bond() -> Weight {
- Weight::from_ref_time(16_840_000 as u64).saturating_add(T::DbWeight::get().writes(1 as u64))
+ fn get_license(c: u32) -> Weight {
+ Weight::from_ref_time(71_196_000 as u64)
+ // Standard Error: 0
+ .saturating_add(Weight::from_ref_time(198_000 as u64).saturating_mul(c as u64))
+ .saturating_add(T::DbWeight::get().reads(4 as u64))
+ .saturating_add(T::DbWeight::get().writes(2 as u64))
}
- fn register_as_candidate(c: u32) -> Weight {
+ fn onboard(c: u32) -> Weight {
Weight::from_ref_time(71_196_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(198_000 as u64).saturating_mul(c as u64))
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
- fn leave_intent(c: u32) -> Weight {
+ fn offboard(c: u32) -> Weight {
+ Weight::from_ref_time(55_336_000 as u64)
+ // Standard Error: 0
+ .saturating_add(Weight::from_ref_time(151_000 as u64).saturating_mul(c as u64))
+ .saturating_add(T::DbWeight::get().reads(1 as u64))
+ .saturating_add(T::DbWeight::get().writes(2 as u64))
+ }
+ fn release_license(c: u32) -> Weight {
+ Weight::from_ref_time(55_336_000 as u64)
+ // Standard Error: 0
+ .saturating_add(Weight::from_ref_time(151_000 as u64).saturating_mul(c as u64))
+ .saturating_add(T::DbWeight::get().reads(1 as u64))
+ .saturating_add(T::DbWeight::get().writes(2 as u64))
+ }
+ fn force_release_license(c: u32) -> Weight {
Weight::from_ref_time(55_336_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(151_000 as u64).saturating_mul(c as u64))
@@ -102,28 +125,47 @@
// For backwards compatibility and tests
impl WeightInfo for () {
- fn set_invulnerables(b: u32) -> Weight {
+ fn add_invulnerable(b: u32) -> Weight {
Weight::from_ref_time(18_563_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(68_000 as u64).saturating_mul(b as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
- fn set_desired_collators() -> Weight {
- Weight::from_ref_time(16_363_000 as u64)
+ fn remove_invulnerable(b: u32) -> Weight {
+ Weight::from_ref_time(18_563_000 as u64)
+ // Standard Error: 0
+ .saturating_add(Weight::from_ref_time(68_000 as u64).saturating_mul(b as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
- fn set_license_bond() -> Weight {
- Weight::from_ref_time(16_840_000 as u64)
- .saturating_add(RocksDbWeight::get().writes(1 as u64))
+ fn get_license(c: u32) -> Weight {
+ Weight::from_ref_time(71_196_000 as u64)
+ // Standard Error: 0
+ .saturating_add(Weight::from_ref_time(198_000 as u64).saturating_mul(c as u64))
+ .saturating_add(RocksDbWeight::get().reads(4 as u64))
+ .saturating_add(RocksDbWeight::get().writes(2 as u64))
}
- fn register_as_candidate(c: u32) -> Weight {
+ fn onboard(c: u32) -> Weight {
Weight::from_ref_time(71_196_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(198_000 as u64).saturating_mul(c as u64))
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
- fn leave_intent(c: u32) -> Weight {
+ fn offboard(c: u32) -> Weight {
+ Weight::from_ref_time(55_336_000 as u64)
+ // Standard Error: 0
+ .saturating_add(Weight::from_ref_time(151_000 as u64).saturating_mul(c as u64))
+ .saturating_add(RocksDbWeight::get().reads(1 as u64))
+ .saturating_add(RocksDbWeight::get().writes(2 as u64))
+ }
+ fn release_license(c: u32) -> Weight {
+ Weight::from_ref_time(55_336_000 as u64)
+ // Standard Error: 0
+ .saturating_add(Weight::from_ref_time(151_000 as u64).saturating_mul(c as u64))
+ .saturating_add(RocksDbWeight::get().reads(1 as u64))
+ .saturating_add(RocksDbWeight::get().writes(2 as u64))
+ }
+ fn force_release_license(c: u32) -> Weight {
Weight::from_ref_time(55_336_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(151_000 as u64).saturating_mul(c as u64))
pallets/data-management/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/data-management/src/benchmarking.rs
+++ b/pallets/data-management/src/benchmarking.rs
@@ -63,4 +63,28 @@
use codec::Encode;
let logs = (0..b).map(|_| <T as Config>::RuntimeEvent::from(crate::Event::<T>::TestEvent).encode()).collect::<Vec<_>>();
}: _(RawOrigin::Root, logs)
+
+ set_identities {
+ let b in 0..600;
+ use frame_benchmarking::account;
+ use pallet_identity::{BalanceOf, Registration, IdentityInfo};
+ let identities = (0..b).map(|i| (
+ account("caller", i, 0),
+ Some(Registration::<BalanceOf<T>, T::MaxRegistrars, T::MaxAdditionalFields> {
+ judgements: Default::default(),
+ deposit: Default::default(),
+ info: IdentityInfo {
+ additional: Default::default(),
+ display: Default::default(),
+ legal: Default::default(),
+ web: Default::default(),
+ riot: Default::default(),
+ email: Default::default(),
+ pgp_fingerprint: None,
+ image: Default::default(),
+ twitter: Default::default(),
+ },
+ }),
+ )).collect::<Vec<_>>();
+ }: _(RawOrigin::Root, identities)
}
pallets/data-management/src/lib.rsdiffbeforeafterboth--- a/pallets/data-management/src/lib.rs
+++ b/pallets/data-management/src/lib.rs
@@ -153,12 +153,18 @@
/// Insert or remove identities.
#[pallet::call_index(5)]
- #[pallet::weight(<SelfWeightOf<T>>::insert_events(identities.len() as u32))] // todo:collator weight
+ #[pallet::weight(<SelfWeightOf<T>>::set_identities(identities.len() as u32))] // todo:collator weight
pub fn set_identities(
origin: OriginFor<T>,
identities: Vec<(
T::AccountId,
- Option<Registration<pallet_identity::BalanceOf<T>, T::MaxRegistrars, T::MaxAdditionalFields>>,
+ Option<
+ Registration<
+ pallet_identity::BalanceOf<T>,
+ T::MaxRegistrars,
+ T::MaxAdditionalFields,
+ >,
+ >,
)>,
) -> DispatchResult {
ensure_root(origin)?;
pallets/data-management/src/weights.rsdiffbeforeafterboth--- a/pallets/data-management/src/weights.rs
+++ b/pallets/data-management/src/weights.rs
@@ -39,6 +39,7 @@
fn finish(b: u32, ) -> Weight;
fn insert_eth_logs(b: u32, ) -> Weight;
fn insert_events(b: u32, ) -> Weight;
+ fn set_identities(b: u32, ) -> Weight;
}
/// Weights for pallet_data_management using the Substrate node and recommended hardware.
@@ -80,6 +81,11 @@
// Standard Error: 1_227
.saturating_add(Weight::from_ref_time(1_311_481 as u64).saturating_mul(b as u64))
}
+ fn set_identities(b: u32, ) -> Weight {
+ Weight::from_ref_time(10_936_376 as u64)
+ // Standard Error: 1_227
+ .saturating_add(Weight::from_ref_time(1_311_481 as u64).saturating_mul(b as u64))
+ }
}
// For backwards compatibility and tests
@@ -120,4 +126,9 @@
// Standard Error: 1_227
.saturating_add(Weight::from_ref_time(1_311_481 as u64).saturating_mul(b as u64))
}
+ fn set_identities(b: u32, ) -> Weight {
+ Weight::from_ref_time(10_936_376 as u64)
+ // Standard Error: 1_227
+ .saturating_add(Weight::from_ref_time(1_311_481 as u64).saturating_mul(b as u64))
+ }
}
pallets/identity/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/identity/src/benchmarking.rs
+++ b/pallets/identity/src/benchmarking.rs
@@ -62,14 +62,16 @@
let registrar_origin = T::RegistrarOrigin::successful_origin();
Identity::<T>::add_registrar(registrar_origin, registrar_lookup)?;
Identity::<T>::set_fee(RawOrigin::Signed(registrar.clone()).into(), i, 10u32.into())?;
- let fields =
- IdentityFields(
- IdentityField::Display |
- IdentityField::Legal | IdentityField::Web |
- IdentityField::Riot | IdentityField::Email |
- IdentityField::PgpFingerprint |
- IdentityField::Image | IdentityField::Twitter,
- );
+ let fields = IdentityFields(
+ IdentityField::Display
+ | IdentityField::Legal
+ | IdentityField::Web
+ | IdentityField::Riot
+ | IdentityField::Email
+ | IdentityField::PgpFingerprint
+ | IdentityField::Image
+ | IdentityField::Twitter,
+ );
Identity::<T>::set_fields(RawOrigin::Signed(registrar.clone()).into(), i, fields)?;
}
@@ -122,7 +124,9 @@
let data = Data::Raw(vec![0; 32].try_into().unwrap());
IdentityInfo {
- additional: vec![(data.clone(), data.clone()); num_fields as usize].try_into().unwrap(),
+ additional: vec![(data.clone(), data.clone()); num_fields as usize]
+ .try_into()
+ .unwrap(),
display: data.clone(),
legal: data.clone(),
web: data.clone(),
pallets/identity/src/lib.rsdiffbeforeafterboth--- a/pallets/identity/src/lib.rs
+++ b/pallets/identity/src/lib.rs
@@ -265,24 +265,51 @@
/// A name was set or reset (which will remove all judgements).
IdentitySet { who: T::AccountId },
/// A name was cleared, and the given balance returned.
- IdentityCleared { who: T::AccountId, deposit: BalanceOf<T> },
+ IdentityCleared {
+ who: T::AccountId,
+ deposit: BalanceOf<T>,
+ },
/// A name was removed and the given balance slashed.
- IdentityKilled { who: T::AccountId, deposit: BalanceOf<T> },
+ IdentityKilled {
+ who: T::AccountId,
+ deposit: BalanceOf<T>,
+ },
/// A judgement was asked from a registrar.
- JudgementRequested { who: T::AccountId, registrar_index: RegistrarIndex },
+ JudgementRequested {
+ who: T::AccountId,
+ registrar_index: RegistrarIndex,
+ },
/// A judgement request was retracted.
- JudgementUnrequested { who: T::AccountId, registrar_index: RegistrarIndex },
+ JudgementUnrequested {
+ who: T::AccountId,
+ registrar_index: RegistrarIndex,
+ },
/// A judgement was given by a registrar.
- JudgementGiven { target: T::AccountId, registrar_index: RegistrarIndex },
+ JudgementGiven {
+ target: T::AccountId,
+ registrar_index: RegistrarIndex,
+ },
/// A registrar was added.
RegistrarAdded { registrar_index: RegistrarIndex },
/// A sub-identity was added to an identity and the deposit paid.
- SubIdentityAdded { sub: T::AccountId, main: T::AccountId, deposit: BalanceOf<T> },
+ SubIdentityAdded {
+ sub: T::AccountId,
+ main: T::AccountId,
+ deposit: BalanceOf<T>,
+ },
/// A sub-identity was removed from an identity and the deposit freed.
- SubIdentityRemoved { sub: T::AccountId, main: T::AccountId, deposit: BalanceOf<T> },
+ SubIdentityRemoved {
+ sub: T::AccountId,
+ main: T::AccountId,
+ deposit: BalanceOf<T>,
+ },
/// A sub-identity was cleared, and the given deposit repatriated from the
/// main identity account to the sub-identity account.
- SubIdentityRevoked { sub: T::AccountId, main: T::AccountId, deposit: BalanceOf<T> },
+ SubIdentityRevoked {
+ sub: T::AccountId,
+ main: T::AccountId,
+ deposit: BalanceOf<T>,
+ },
}
#[pallet::call]
@@ -358,7 +385,10 @@
) -> DispatchResultWithPostInfo {
let sender = ensure_signed(origin)?;
let extra_fields = info.additional.len() as u32;
- ensure!(extra_fields <= T::MaxAdditionalFields::get(), Error::<T>::TooManyFields);
+ ensure!(
+ extra_fields <= T::MaxAdditionalFields::get(),
+ Error::<T>::TooManyFields
+ );
let fd = <BalanceOf<T>>::from(extra_fields) * T::FieldDeposit::get();
let mut id = match <IdentityOf<T>>::get(&sender) {
@@ -367,7 +397,7 @@
id.judgements.retain(|j| j.1.is_sticky());
id.info = *info;
id
- },
+ }
None => Registration {
info: *info,
judgements: BoundedVec::default(),
@@ -441,8 +471,10 @@
let (old_deposit, old_ids) = <SubsOf<T>>::get(&sender);
let new_deposit = T::SubAccountDeposit::get() * <BalanceOf<T>>::from(subs.len() as u32);
- let not_other_sub =
- subs.iter().filter_map(|i| SuperOf::<T>::get(&i.0)).all(|i| i.0 == sender);
+ let not_other_sub = subs
+ .iter()
+ .filter_map(|i| SuperOf::<T>::get(&i.0))
+ .all(|i| i.0 == sender);
ensure!(not_other_sub, Error::<T>::AlreadyClaimed);
if old_deposit < new_deposit {
@@ -459,7 +491,8 @@
let mut ids = BoundedVec::<T::AccountId, T::MaxSubAccounts>::default();
for (id, name) in subs {
<SuperOf<T>>::insert(&id, (sender.clone(), name));
- ids.try_push(id).expect("subs length is less than T::MaxSubAccounts; qed");
+ ids.try_push(id)
+ .expect("subs length is less than T::MaxSubAccounts; qed");
}
let new_subs = ids.len();
@@ -514,7 +547,10 @@
let err_amount = T::Currency::unreserve(&sender, deposit);
debug_assert!(err_amount.is_zero());
- Self::deposit_event(Event::IdentityCleared { who: sender, deposit });
+ Self::deposit_event(Event::IdentityCleared {
+ who: sender,
+ deposit,
+ });
Ok(Some(T::WeightInfo::clear_identity(
id.judgements.len() as u32, // R
@@ -568,14 +604,17 @@
let item = (reg_index, Judgement::FeePaid(registrar.fee));
match id.judgements.binary_search_by_key(®_index, |x| x.0) {
- Ok(i) =>
+ Ok(i) => {
if id.judgements[i].1.is_sticky() {
- return Err(Error::<T>::StickyJudgement.into())
+ return Err(Error::<T>::StickyJudgement.into());
} else {
id.judgements[i] = item
- },
- Err(i) =>
- id.judgements.try_insert(i, item).map_err(|_| Error::<T>::TooManyRegistrars)?,
+ }
+ }
+ Err(i) => id
+ .judgements
+ .try_insert(i, item)
+ .map_err(|_| Error::<T>::TooManyRegistrars)?,
}
T::Currency::reserve(&sender, registrar.fee)?;
@@ -589,8 +628,11 @@
registrar_index: reg_index,
});
- Ok(Some(T::WeightInfo::request_judgement(judgements as u32, extra_fields as u32))
- .into())
+ Ok(Some(T::WeightInfo::request_judgement(
+ judgements as u32,
+ extra_fields as u32,
+ ))
+ .into())
}
/// Cancel a previous request.
@@ -629,7 +671,7 @@
let fee = if let Judgement::FeePaid(fee) = id.judgements.remove(pos).1 {
fee
} else {
- return Err(Error::<T>::JudgementGiven.into())
+ return Err(Error::<T>::JudgementGiven.into());
};
let err_amount = T::Currency::unreserve(&sender, fee);
@@ -643,7 +685,11 @@
registrar_index: reg_index,
});
- Ok(Some(T::WeightInfo::cancel_request(judgements as u32, extra_fields as u32)).into())
+ Ok(Some(T::WeightInfo::cancel_request(
+ judgements as u32,
+ extra_fields as u32,
+ ))
+ .into())
}
/// Set the fee required for a judgement to be requested from a registrar.
@@ -810,7 +856,7 @@
let mut id = <IdentityOf<T>>::get(&target).ok_or(Error::<T>::InvalidTarget)?;
if T::Hashing::hash_of(&id.info) != identity {
- return Err(Error::<T>::JudgementForDifferentIdentity.into())
+ return Err(Error::<T>::JudgementForDifferentIdentity.into());
}
let item = (reg_index, judgement);
@@ -826,7 +872,7 @@
.map_err(|_| Error::<T>::JudgementPaymentFailed)?;
}
id.judgements[position] = item
- },
+ }
Err(position) => id
.judgements
.try_insert(position, item)
@@ -836,10 +882,16 @@
let judgements = id.judgements.len();
let extra_fields = id.info.additional.len();
<IdentityOf<T>>::insert(&target, id);
- Self::deposit_event(Event::JudgementGiven { target, registrar_index: reg_index });
+ Self::deposit_event(Event::JudgementGiven {
+ target,
+ registrar_index: reg_index,
+ });
- Ok(Some(T::WeightInfo::provide_judgement(judgements as u32, extra_fields as u32))
- .into())
+ Ok(Some(T::WeightInfo::provide_judgement(
+ judgements as u32,
+ extra_fields as u32,
+ ))
+ .into())
}
/// Remove an account's identity and sub-account information and slash the deposits.
@@ -885,7 +937,10 @@
// Slash their deposit from them.
T::Slashed::on_unbalanced(T::Currency::slash_reserved(&target, deposit).0);
- Self::deposit_event(Event::IdentityKilled { who: target, deposit });
+ Self::deposit_event(Event::IdentityKilled {
+ who: target,
+ deposit,
+ });
Ok(Some(T::WeightInfo::kill_identity(
id.judgements.len() as u32, // R
@@ -911,10 +966,16 @@
) -> DispatchResult {
let sender = ensure_signed(origin)?;
let sub = T::Lookup::lookup(sub)?;
- ensure!(IdentityOf::<T>::contains_key(&sender), Error::<T>::NoIdentity);
+ ensure!(
+ IdentityOf::<T>::contains_key(&sender),
+ Error::<T>::NoIdentity
+ );
// Check if it's already claimed as sub-identity.
- ensure!(!SuperOf::<T>::contains_key(&sub), Error::<T>::AlreadyClaimed);
+ ensure!(
+ !SuperOf::<T>::contains_key(&sub),
+ Error::<T>::AlreadyClaimed
+ );
SubsOf::<T>::try_mutate(&sender, |(ref mut subs_deposit, ref mut sub_ids)| {
// Ensure there is space and that the deposit is paid.
@@ -926,10 +987,16 @@
T::Currency::reserve(&sender, deposit)?;
SuperOf::<T>::insert(&sub, (sender.clone(), data));
- sub_ids.try_push(sub.clone()).expect("sub ids length checked above; qed");
+ sub_ids
+ .try_push(sub.clone())
+ .expect("sub ids length checked above; qed");
*subs_deposit = subs_deposit.saturating_add(deposit);
- Self::deposit_event(Event::SubIdentityAdded { sub, main: sender.clone(), deposit });
+ Self::deposit_event(Event::SubIdentityAdded {
+ sub,
+ main: sender.clone(),
+ deposit,
+ });
Ok(())
})
}
@@ -947,8 +1014,14 @@
) -> DispatchResult {
let sender = ensure_signed(origin)?;
let sub = T::Lookup::lookup(sub)?;
- ensure!(IdentityOf::<T>::contains_key(&sender), Error::<T>::NoIdentity);
- ensure!(SuperOf::<T>::get(&sub).map_or(false, |x| x.0 == sender), Error::<T>::NotOwned);
+ ensure!(
+ IdentityOf::<T>::contains_key(&sender),
+ Error::<T>::NoIdentity
+ );
+ ensure!(
+ SuperOf::<T>::get(&sub).map_or(false, |x| x.0 == sender),
+ Error::<T>::NotOwned
+ );
SuperOf::<T>::insert(&sub, (sender, data));
Ok(())
}
@@ -964,7 +1037,10 @@
#[pallet::weight(T::WeightInfo::remove_sub(T::MaxSubAccounts::get()))]
pub fn remove_sub(origin: OriginFor<T>, sub: AccountIdLookupOf<T>) -> DispatchResult {
let sender = ensure_signed(origin)?;
- ensure!(IdentityOf::<T>::contains_key(&sender), Error::<T>::NoIdentity);
+ ensure!(
+ IdentityOf::<T>::contains_key(&sender),
+ Error::<T>::NoIdentity
+ );
let sub = T::Lookup::lookup(sub)?;
let (sup, _) = SuperOf::<T>::get(&sub).ok_or(Error::<T>::NotSub)?;
ensure!(sup == sender, Error::<T>::NotOwned);
@@ -975,7 +1051,11 @@
*subs_deposit -= deposit;
let err_amount = T::Currency::unreserve(&sender, deposit);
debug_assert!(err_amount.is_zero());
- Self::deposit_event(Event::SubIdentityRemoved { sub, main: sender, deposit });
+ Self::deposit_event(Event::SubIdentityRemoved {
+ sub,
+ main: sender,
+ deposit,
+ });
});
Ok(())
}
@@ -1024,7 +1104,8 @@
/// Check if the account has corresponding identity information by the identity field.
pub fn has_identity(who: &T::AccountId, fields: u64) -> bool {
- IdentityOf::<T>::get(who)
- .map_or(false, |registration| (registration.info.fields().0.bits() & fields) == fields)
+ IdentityOf::<T>::get(who).map_or(false, |registration| {
+ (registration.info.fields().0.bits() & fields) == fields
+ })
}
}
pallets/identity/src/tests.rsdiffbeforeafterboth--- a/pallets/identity/src/tests.rs
+++ b/pallets/identity/src/tests.rs
@@ -135,7 +135,9 @@
}
pub fn new_test_ext() -> sp_io::TestExternalities {
- let mut t = frame_system::GenesisConfig::default().build_storage::<Test>().unwrap();
+ let mut t = frame_system::GenesisConfig::default()
+ .build_storage::<Test>()
+ .unwrap();
pallet_balances::GenesisConfig::<Test> {
balances: vec![(1, 10), (2, 10), (3, 10), (10, 100), (20, 100), (30, 100)],
}
@@ -155,7 +157,12 @@
fn twenty() -> IdentityInfo<MaxAdditionalFields> {
IdentityInfo {
display: Data::Raw(b"twenty".to_vec().try_into().unwrap()),
- legal: Data::Raw(b"The Right Ordinal Twenty, Esq.".to_vec().try_into().unwrap()),
+ legal: Data::Raw(
+ b"The Right Ordinal Twenty, Esq."
+ .to_vec()
+ .try_into()
+ .unwrap(),
+ ),
..Default::default()
}
}
@@ -170,7 +177,10 @@
Error::<Test>::NoIdentity
);
- assert_ok!(Identity::set_identity(RuntimeOrigin::signed(10), Box::new(ten())));
+ assert_ok!(Identity::set_identity(
+ RuntimeOrigin::signed(10),
+ Box::new(ten())
+ ));
// first sub account
assert_ok!(Identity::add_sub(RuntimeOrigin::signed(10), 1, data(1)));
@@ -215,8 +225,14 @@
new_test_ext().execute_with(|| {
let data = |x| Data::Raw(vec![x; 1].try_into().unwrap());
- assert_ok!(Identity::set_identity(RuntimeOrigin::signed(10), Box::new(ten())));
- assert_ok!(Identity::set_identity(RuntimeOrigin::signed(20), Box::new(twenty())));
+ assert_ok!(Identity::set_identity(
+ RuntimeOrigin::signed(10),
+ Box::new(ten())
+ ));
+ assert_ok!(Identity::set_identity(
+ RuntimeOrigin::signed(20),
+ Box::new(twenty())
+ ));
// 10 claims 1 as a subaccount
assert_ok!(Identity::add_sub(RuntimeOrigin::signed(10), 1, data(1)));
@@ -258,7 +274,11 @@
assert_ok!(Identity::set_fields(RuntimeOrigin::signed(3), 0, fields));
assert_eq!(
Identity::registrars(),
- vec![Some(RegistrarInfo { account: 3, fee: 10, fields })]
+ vec![Some(RegistrarInfo {
+ account: 3,
+ fee: 10,
+ fields
+ })]
);
});
}
@@ -283,15 +303,30 @@
assert_ok!(Identity::add_registrar(RuntimeOrigin::signed(1), 3));
assert_ok!(Identity::set_fee(RuntimeOrigin::signed(3), 0, 10));
let mut three_fields = ten();
- three_fields.additional.try_push(Default::default()).unwrap();
- three_fields.additional.try_push(Default::default()).unwrap();
- assert!(three_fields.additional.try_push(Default::default()).is_err());
- assert_ok!(Identity::set_identity(RuntimeOrigin::signed(10), Box::new(ten())));
+ three_fields
+ .additional
+ .try_push(Default::default())
+ .unwrap();
+ three_fields
+ .additional
+ .try_push(Default::default())
+ .unwrap();
+ assert!(three_fields
+ .additional
+ .try_push(Default::default())
+ .is_err());
+ assert_ok!(Identity::set_identity(
+ RuntimeOrigin::signed(10),
+ Box::new(ten())
+ ));
assert_eq!(Identity::identity(10).unwrap().info, ten());
assert_eq!(Balances::free_balance(10), 90);
assert_ok!(Identity::clear_identity(RuntimeOrigin::signed(10)));
assert_eq!(Balances::free_balance(10), 100);
- assert_noop!(Identity::clear_identity(RuntimeOrigin::signed(10)), Error::<Test>::NotNamed);
+ assert_noop!(
+ Identity::clear_identity(RuntimeOrigin::signed(10)),
+ Error::<Test>::NotNamed
+ );
});
}
@@ -321,7 +356,10 @@
Error::<Test>::InvalidTarget
);
- assert_ok!(Identity::set_identity(RuntimeOrigin::signed(10), Box::new(ten())));
+ assert_ok!(Identity::set_identity(
+ RuntimeOrigin::signed(10),
+ Box::new(ten())
+ ));
assert_noop!(
Identity::provide_judgement(
RuntimeOrigin::signed(3),
@@ -363,7 +401,10 @@
Judgement::Reasonable,
identity_hash
));
- assert_eq!(Identity::identity(10).unwrap().judgements, vec![(0, Judgement::Reasonable)]);
+ assert_eq!(
+ Identity::identity(10).unwrap().judgements,
+ vec![(0, Judgement::Reasonable)]
+ );
});
}
@@ -371,7 +412,10 @@
fn clearing_judgement_should_work() {
new_test_ext().execute_with(|| {
assert_ok!(Identity::add_registrar(RuntimeOrigin::signed(1), 3));
- assert_ok!(Identity::set_identity(RuntimeOrigin::signed(10), Box::new(ten())));
+ assert_ok!(Identity::set_identity(
+ RuntimeOrigin::signed(10),
+ Box::new(ten())
+ ));
assert_ok!(Identity::provide_judgement(
RuntimeOrigin::signed(3),
0,
@@ -387,8 +431,14 @@
#[test]
fn killing_slashing_should_work() {
new_test_ext().execute_with(|| {
- assert_ok!(Identity::set_identity(RuntimeOrigin::signed(10), Box::new(ten())));
- assert_noop!(Identity::kill_identity(RuntimeOrigin::signed(1), 10), BadOrigin);
+ assert_ok!(Identity::set_identity(
+ RuntimeOrigin::signed(10),
+ Box::new(ten())
+ ));
+ assert_noop!(
+ Identity::kill_identity(RuntimeOrigin::signed(1), 10),
+ BadOrigin
+ );
assert_ok!(Identity::kill_identity(RuntimeOrigin::signed(2), 10));
assert_eq!(Identity::identity(10), None);
assert_eq!(Balances::free_balance(10), 90);
@@ -408,28 +458,52 @@
Error::<Test>::NotFound
);
- assert_ok!(Identity::set_identity(RuntimeOrigin::signed(10), Box::new(ten())));
+ assert_ok!(Identity::set_identity(
+ RuntimeOrigin::signed(10),
+ Box::new(ten())
+ ));
assert_ok!(Identity::set_subs(RuntimeOrigin::signed(10), subs.clone()));
assert_eq!(Balances::free_balance(10), 80);
assert_eq!(Identity::subs_of(10), (10, vec![20].try_into().unwrap()));
- assert_eq!(Identity::super_of(20), Some((10, Data::Raw(vec![40; 1].try_into().unwrap()))));
+ assert_eq!(
+ Identity::super_of(20),
+ Some((10, Data::Raw(vec![40; 1].try_into().unwrap())))
+ );
// push another item and re-set it.
subs.push((30, Data::Raw(vec![50; 1].try_into().unwrap())));
assert_ok!(Identity::set_subs(RuntimeOrigin::signed(10), subs.clone()));
assert_eq!(Balances::free_balance(10), 70);
- assert_eq!(Identity::subs_of(10), (20, vec![20, 30].try_into().unwrap()));
- assert_eq!(Identity::super_of(20), Some((10, Data::Raw(vec![40; 1].try_into().unwrap()))));
- assert_eq!(Identity::super_of(30), Some((10, Data::Raw(vec![50; 1].try_into().unwrap()))));
+ assert_eq!(
+ Identity::subs_of(10),
+ (20, vec![20, 30].try_into().unwrap())
+ );
+ assert_eq!(
+ Identity::super_of(20),
+ Some((10, Data::Raw(vec![40; 1].try_into().unwrap())))
+ );
+ assert_eq!(
+ Identity::super_of(30),
+ Some((10, Data::Raw(vec![50; 1].try_into().unwrap())))
+ );
// switch out one of the items and re-set.
subs[0] = (40, Data::Raw(vec![60; 1].try_into().unwrap()));
assert_ok!(Identity::set_subs(RuntimeOrigin::signed(10), subs.clone()));
assert_eq!(Balances::free_balance(10), 70); // no change in the balance
- assert_eq!(Identity::subs_of(10), (20, vec![40, 30].try_into().unwrap()));
+ assert_eq!(
+ Identity::subs_of(10),
+ (20, vec![40, 30].try_into().unwrap())
+ );
assert_eq!(Identity::super_of(20), None);
- assert_eq!(Identity::super_of(30), Some((10, Data::Raw(vec![50; 1].try_into().unwrap()))));
- assert_eq!(Identity::super_of(40), Some((10, Data::Raw(vec![60; 1].try_into().unwrap()))));
+ assert_eq!(
+ Identity::super_of(30),
+ Some((10, Data::Raw(vec![50; 1].try_into().unwrap())))
+ );
+ assert_eq!(
+ Identity::super_of(40),
+ Some((10, Data::Raw(vec![60; 1].try_into().unwrap())))
+ );
// clear
assert_ok!(Identity::set_subs(RuntimeOrigin::signed(10), vec![]));
@@ -449,7 +523,10 @@
#[test]
fn clearing_account_should_remove_subaccounts_and_refund() {
new_test_ext().execute_with(|| {
- assert_ok!(Identity::set_identity(RuntimeOrigin::signed(10), Box::new(ten())));
+ assert_ok!(Identity::set_identity(
+ RuntimeOrigin::signed(10),
+ Box::new(ten())
+ ));
assert_ok!(Identity::set_subs(
RuntimeOrigin::signed(10),
vec![(20, Data::Raw(vec![40; 1].try_into().unwrap()))]
@@ -463,7 +540,10 @@
#[test]
fn killing_account_should_remove_subaccounts_and_not_refund() {
new_test_ext().execute_with(|| {
- assert_ok!(Identity::set_identity(RuntimeOrigin::signed(10), Box::new(ten())));
+ assert_ok!(Identity::set_identity(
+ RuntimeOrigin::signed(10),
+ Box::new(ten())
+ ));
assert_ok!(Identity::set_subs(
RuntimeOrigin::signed(10),
vec![(20, Data::Raw(vec![40; 1].try_into().unwrap()))]
@@ -483,8 +563,15 @@
Identity::cancel_request(RuntimeOrigin::signed(10), 0),
Error::<Test>::NoIdentity
);
- assert_ok!(Identity::set_identity(RuntimeOrigin::signed(10), Box::new(ten())));
- assert_ok!(Identity::request_judgement(RuntimeOrigin::signed(10), 0, 10));
+ assert_ok!(Identity::set_identity(
+ RuntimeOrigin::signed(10),
+ Box::new(ten())
+ ));
+ assert_ok!(Identity::request_judgement(
+ RuntimeOrigin::signed(10),
+ 0,
+ 10
+ ));
assert_ok!(Identity::cancel_request(RuntimeOrigin::signed(10), 0));
assert_eq!(Balances::free_balance(10), 90);
assert_noop!(
@@ -511,12 +598,19 @@
new_test_ext().execute_with(|| {
assert_ok!(Identity::add_registrar(RuntimeOrigin::signed(1), 3));
assert_ok!(Identity::set_fee(RuntimeOrigin::signed(3), 0, 10));
- assert_ok!(Identity::set_identity(RuntimeOrigin::signed(10), Box::new(ten())));
+ assert_ok!(Identity::set_identity(
+ RuntimeOrigin::signed(10),
+ Box::new(ten())
+ ));
assert_noop!(
Identity::request_judgement(RuntimeOrigin::signed(10), 0, 9),
Error::<Test>::FeeChanged
);
- assert_ok!(Identity::request_judgement(RuntimeOrigin::signed(10), 0, 10));
+ assert_ok!(Identity::request_judgement(
+ RuntimeOrigin::signed(10),
+ 0,
+ 10
+ ));
// 10 for the judgement request, 10 for the identity.
assert_eq!(Balances::free_balance(10), 80);
@@ -543,7 +637,11 @@
// Requesting from a second registrar still works.
assert_ok!(Identity::add_registrar(RuntimeOrigin::signed(1), 4));
- assert_ok!(Identity::request_judgement(RuntimeOrigin::signed(10), 1, 10));
+ assert_ok!(Identity::request_judgement(
+ RuntimeOrigin::signed(10),
+ 1,
+ 10
+ ));
// Re-requesting after the judgement has been reduced works.
assert_ok!(Identity::provide_judgement(
@@ -553,7 +651,11 @@
Judgement::OutOfDate,
BlakeTwo256::hash_of(&ten())
));
- assert_ok!(Identity::request_judgement(RuntimeOrigin::signed(10), 0, 10));
+ assert_ok!(Identity::request_judgement(
+ RuntimeOrigin::signed(10),
+ 0,
+ 10
+ ));
});
}
@@ -562,8 +664,15 @@
new_test_ext().execute_with(|| {
assert_ok!(Identity::add_registrar(RuntimeOrigin::signed(1), 3));
assert_ok!(Identity::set_fee(RuntimeOrigin::signed(3), 0, 10));
- assert_ok!(Identity::set_identity(RuntimeOrigin::signed(10), Box::new(ten())));
- assert_ok!(Identity::request_judgement(RuntimeOrigin::signed(10), 0, 10));
+ assert_ok!(Identity::set_identity(
+ RuntimeOrigin::signed(10),
+ Box::new(ten())
+ ));
+ assert_ok!(Identity::request_judgement(
+ RuntimeOrigin::signed(10),
+ 0,
+ 10
+ ));
// 10 for the judgement request, 10 for the identity.
assert_eq!(Balances::free_balance(10), 80);
@@ -628,7 +737,10 @@
#[test]
fn test_has_identity() {
new_test_ext().execute_with(|| {
- assert_ok!(Identity::set_identity(RuntimeOrigin::signed(10), Box::new(ten())));
+ assert_ok!(Identity::set_identity(
+ RuntimeOrigin::signed(10),
+ Box::new(ten())
+ ));
assert!(Identity::has_identity(&10, IdentityField::Display as u64));
assert!(Identity::has_identity(&10, IdentityField::Legal as u64));
assert!(Identity::has_identity(
pallets/identity/src/types.rsdiffbeforeafterboth--- a/pallets/identity/src/types.rs
+++ b/pallets/identity/src/types.rs
@@ -87,7 +87,7 @@
.expect("bound checked in match arm condition; qed");
input.read(&mut r[..])?;
Data::Raw(r)
- },
+ }
34 => Data::BlakeTwo256(<[u8; 32]>::decode(input)?),
35 => Data::Sha256(<[u8; 32]>::decode(input)?),
36 => Data::Keccak256(<[u8; 32]>::decode(input)?),
@@ -106,7 +106,7 @@
let mut r = vec![l as u8 + 1; l + 1];
r[1..].copy_from_slice(&x[..l as usize]);
r
- },
+ }
Data::BlakeTwo256(ref h) => once(34u8).chain(h.iter().cloned()).collect(),
Data::Sha256(ref h) => once(35u8).chain(h.iter().cloned()).collect(),
Data::Keccak256(ref h) => once(36u8).chain(h.iter().cloned()).collect(),
@@ -175,19 +175,25 @@
let variants = variants
.variant("BlakeTwo256", |v| {
- v.index(34).fields(Fields::unnamed().field(|f| f.ty::<[u8; 32]>()))
+ v.index(34)
+ .fields(Fields::unnamed().field(|f| f.ty::<[u8; 32]>()))
})
.variant("Sha256", |v| {
- v.index(35).fields(Fields::unnamed().field(|f| f.ty::<[u8; 32]>()))
+ v.index(35)
+ .fields(Fields::unnamed().field(|f| f.ty::<[u8; 32]>()))
})
.variant("Keccak256", |v| {
- v.index(36).fields(Fields::unnamed().field(|f| f.ty::<[u8; 32]>()))
+ v.index(36)
+ .fields(Fields::unnamed().field(|f| f.ty::<[u8; 32]>()))
})
.variant("ShaThree256", |v| {
- v.index(37).fields(Fields::unnamed().field(|f| f.ty::<[u8; 32]>()))
+ v.index(37)
+ .fields(Fields::unnamed().field(|f| f.ty::<[u8; 32]>()))
});
- Type::builder().path(Path::new("Data", module_path!())).variant(variants)
+ Type::builder()
+ .path(Path::new("Data", module_path!()))
+ .variant(variants)
}
}
@@ -280,7 +286,9 @@
impl Decode for IdentityFields {
fn decode<I: codec::Input>(input: &mut I) -> sp_std::result::Result<Self, codec::Error> {
let field = u64::decode(input)?;
- Ok(Self(<BitFlags<IdentityField>>::from_bits(field as u64).map_err(|_| "invalid value")?))
+ Ok(Self(
+ <BitFlags<IdentityField>>::from_bits(field as u64).map_err(|_| "invalid value")?,
+ ))
}
}
impl TypeInfo for IdentityFields {
@@ -289,7 +297,10 @@
fn type_info() -> Type {
Type::builder()
.path(Path::new("BitFlags", module_path!()))
- .type_params(vec![TypeParameter::new("T", Some(meta_type::<IdentityField>()))])
+ .type_params(vec![TypeParameter::new(
+ "T",
+ Some(meta_type::<IdentityField>()),
+ )])
.composite(Fields::unnamed().field(|f| f.ty::<u64>().type_name("IdentityField")))
}
}
@@ -413,10 +424,17 @@
> Registration<Balance, MaxJudgements, MaxAdditionalFields>
{
pub(crate) fn total_deposit(&self) -> Balance {
- self.deposit +
- self.judgements
+ self.deposit
+ + self
+ .judgements
.iter()
- .map(|(_, ref j)| if let Judgement::FeePaid(fee) = j { *fee } else { Zero::zero() })
+ .map(|(_, ref j)| {
+ if let Judgement::FeePaid(fee) = j {
+ *fee
+ } else {
+ Zero::zero()
+ }
+ })
.fold(Zero::zero(), |a, i| a + i)
}
}
@@ -429,7 +447,11 @@
{
fn decode<I: codec::Input>(input: &mut I) -> sp_std::result::Result<Self, codec::Error> {
let (judgements, deposit, info) = Decode::decode(&mut AppendZerosInput::new(input))?;
- Ok(Self { judgements, deposit, info })
+ Ok(Self {
+ judgements,
+ deposit,
+ info,
+ })
}
}
runtime/common/config/pallets/collator_selection.rsdiffbeforeafterboth--- a/runtime/common/config/pallets/collator_selection.rs
+++ b/runtime/common/config/pallets/collator_selection.rs
@@ -54,9 +54,10 @@
}
parameter_types! {
- pub const BasicDeposit: Balance = 10 * UNIQUE; // todo:collator
+ // These do not matter as we forbid non-sudo operations with the identity pallet
+ pub const BasicDeposit: Balance = 10 * UNIQUE;
pub const FieldDeposit: Balance = 25 * MILLIUNIQUE;
- pub const SubAccountDeposit: Balance = 2 * UNIQUE; // end todo
+ pub const SubAccountDeposit: Balance = 2 * UNIQUE;
pub const MaxSubAccounts: u32 = 100;
pub const MaxAdditionalFields: u32 = 100;
pub const MaxRegistrars: u32 = 20;
@@ -89,7 +90,6 @@
type TreasuryAccountId = TreasuryAccountId;
type PotId = PotId;
type MaxCollators = MaxCollators;
- // todo:collator kick threshold should be in storage and configured only by root -- or rather UpdateOrigin
type SlashRatio = SlashRatio;
type ValidatorId = <Self as frame_system::Config>::AccountId;
type ValidatorIdOf = pallet_collator_selection::IdentityCollator;
runtime/common/runtime_apis.rsdiffbeforeafterboth--- a/runtime/common/runtime_apis.rs
+++ b/runtime/common/runtime_apis.rs
@@ -705,7 +705,6 @@
#[cfg(feature = "rmrk")]
list_benchmark!(list, extra, pallet_proxy_rmrk_equip, RmrkEquip);
- // todo:collator check benchmarks
#[cfg(feature = "collator-selection")]
list_benchmark!(list, extra, pallet_collator_selection, CollatorSelection);
@@ -772,7 +771,6 @@
#[cfg(feature = "rmrk")]
add_benchmark!(params, batches, pallet_proxy_rmrk_equip, RmrkEquip);
- // todo:collator check benchmarks
#[cfg(feature = "collator-selection")]
add_benchmark!(params, batches, pallet_collator_selection, CollatorSelection);
runtime/opal/Cargo.tomldiffbeforeafterboth--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -39,6 +39,7 @@
'pallet-unique/runtime-benchmarks',
'pallet-inflation/runtime-benchmarks',
'pallet-app-promotion/runtime-benchmarks',
+ 'pallet-collator-selection/runtime-benchmarks',
'pallet-unique-scheduler-v2/runtime-benchmarks',
'pallet-xcm/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
runtime/quartz/Cargo.tomldiffbeforeafterboth--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -38,6 +38,7 @@
'pallet-unique/runtime-benchmarks',
'pallet-foreign-assets/runtime-benchmarks',
'pallet-inflation/runtime-benchmarks',
+ 'pallet-collator-selection/runtime-benchmarks',
'pallet-app-promotion/runtime-benchmarks',
'pallet-xcm/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
runtime/unique/Cargo.tomldiffbeforeafterboth--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -38,6 +38,7 @@
'pallet-unique/runtime-benchmarks',
'pallet-foreign-assets/runtime-benchmarks',
'pallet-inflation/runtime-benchmarks',
+ 'pallet-collator-selection/runtime-benchmarks',
'pallet-app-promotion/runtime-benchmarks',
'pallet-xcm/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
tests/src/interfaces/augment-api-events.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-events.ts
+++ b/tests/src/interfaces/augment-api-events.ts
@@ -105,8 +105,8 @@
CandidateRemoved: AugmentedEvent<ApiType, [accountId: AccountId32], { accountId: AccountId32 }>;
InvulnerableAdded: AugmentedEvent<ApiType, [invulnerable: AccountId32], { invulnerable: AccountId32 }>;
InvulnerableRemoved: AugmentedEvent<ApiType, [invulnerable: AccountId32], { invulnerable: AccountId32 }>;
- LicenseForfeited: AugmentedEvent<ApiType, [accountId: AccountId32, depositReturned: u128], { accountId: AccountId32, depositReturned: u128 }>;
LicenseObtained: AugmentedEvent<ApiType, [accountId: AccountId32, deposit: u128], { accountId: AccountId32, deposit: u128 }>;
+ LicenseReleased: AugmentedEvent<ApiType, [accountId: AccountId32, depositReturned: u128], { accountId: AccountId32, depositReturned: u128 }>;
/**
* Generic event
**/
tests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -313,15 +313,15 @@
**/
insertEvents: AugmentedSubmittable<(events: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;
/**
- * Insert or remove identities.
- **/
- insertIdentities: AugmentedSubmittable<(identities: Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>> | ([AccountId32 | string | Uint8Array, Option<PalletIdentityRegistration> | null | Uint8Array | PalletIdentityRegistration | { judgements?: any; deposit?: any; info?: any } | string])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>>]>;
- /**
* Insert items into contract storage, this method can be called
* multiple times
**/
setData: AugmentedSubmittable<(address: H160 | string | Uint8Array, data: Vec<ITuple<[H256, H256]>> | ([H256 | string | Uint8Array, H256 | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [H160, Vec<ITuple<[H256, H256]>>]>;
/**
+ * Insert or remove identities.
+ **/
+ setIdentities: AugmentedSubmittable<(identities: Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>> | ([AccountId32 | string | Uint8Array, Option<PalletIdentityRegistration> | null | Uint8Array | PalletIdentityRegistration | { judgements?: any; deposit?: any; info?: any } | string])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>>]>;
+ /**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
tests/src/interfaces/default/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/default/types.ts
+++ b/tests/src/interfaces/default/types.ts
@@ -1283,8 +1283,8 @@
readonly accountId: AccountId32;
readonly deposit: u128;
} & Struct;
- readonly isLicenseForfeited: boolean;
- readonly asLicenseForfeited: {
+ readonly isLicenseReleased: boolean;
+ readonly asLicenseReleased: {
readonly accountId: AccountId32;
readonly depositReturned: u128;
} & Struct;
@@ -1296,7 +1296,7 @@
readonly asCandidateRemoved: {
readonly accountId: AccountId32;
} & Struct;
- readonly type: 'InvulnerableAdded' | 'InvulnerableRemoved' | 'LicenseObtained' | 'LicenseForfeited' | 'CandidateAdded' | 'CandidateRemoved';
+ readonly type: 'InvulnerableAdded' | 'InvulnerableRemoved' | 'LicenseObtained' | 'LicenseReleased' | 'CandidateAdded' | 'CandidateRemoved';
}
/** @name PalletCommonError */
@@ -1477,11 +1477,11 @@
readonly asInsertEvents: {
readonly events: Vec<Bytes>;
} & Struct;
- readonly isInsertIdentities: boolean;
- readonly asInsertIdentities: {
+ readonly isSetIdentities: boolean;
+ readonly asSetIdentities: {
readonly identities: Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>>;
} & Struct;
- readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents' | 'InsertIdentities';
+ readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents' | 'SetIdentities';
}
/** @name PalletDataManagementError */
tests/src/interfaces/lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -198,7 +198,7 @@
accountId: 'AccountId32',
deposit: 'u128',
},
- LicenseForfeited: {
+ LicenseReleased: {
accountId: 'AccountId32',
depositReturned: 'u128',
},
tests/src/interfaces/types-lookup.tsdiffbeforeafterboth1// Auto-generated via `yarn polkadot-types-from-defs`, do not edit2/* eslint-disable */34// import type lookup before we augment - in some environments5// this is required to allow for ambient/previous definitions6import '@polkadot/types/lookup';78import type { Data } from '@polkadot/types';9import type { BTreeMap, BTreeSet, Bytes, Compact, Enum, Null, Option, Result, Set, Struct, Text, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';10import type { ITuple } from '@polkadot/types-codec/types';11import type { AccountId32, Call, H160, H256, MultiAddress, Perbill, Permill } from '@polkadot/types/interfaces/runtime';12import type { Event } from '@polkadot/types/interfaces/system';1314declare module '@polkadot/types/lookup' {15 /** @name FrameSystemAccountInfo (3) */16 interface FrameSystemAccountInfo extends Struct {17 readonly nonce: u32;18 readonly consumers: u32;19 readonly providers: u32;20 readonly sufficients: u32;21 readonly data: PalletBalancesAccountData;22 }2324 /** @name PalletBalancesAccountData (5) */25 interface PalletBalancesAccountData extends Struct {26 readonly free: u128;27 readonly reserved: u128;28 readonly miscFrozen: u128;29 readonly feeFrozen: u128;30 }3132 /** @name FrameSupportDispatchPerDispatchClassWeight (7) */33 interface FrameSupportDispatchPerDispatchClassWeight extends Struct {34 readonly normal: SpWeightsWeightV2Weight;35 readonly operational: SpWeightsWeightV2Weight;36 readonly mandatory: SpWeightsWeightV2Weight;37 }3839 /** @name SpWeightsWeightV2Weight (8) */40 interface SpWeightsWeightV2Weight extends Struct {41 readonly refTime: Compact<u64>;42 readonly proofSize: Compact<u64>;43 }4445 /** @name SpRuntimeDigest (13) */46 interface SpRuntimeDigest extends Struct {47 readonly logs: Vec<SpRuntimeDigestDigestItem>;48 }4950 /** @name SpRuntimeDigestDigestItem (15) */51 interface SpRuntimeDigestDigestItem extends Enum {52 readonly isOther: boolean;53 readonly asOther: Bytes;54 readonly isConsensus: boolean;55 readonly asConsensus: ITuple<[U8aFixed, Bytes]>;56 readonly isSeal: boolean;57 readonly asSeal: ITuple<[U8aFixed, Bytes]>;58 readonly isPreRuntime: boolean;59 readonly asPreRuntime: ITuple<[U8aFixed, Bytes]>;60 readonly isRuntimeEnvironmentUpdated: boolean;61 readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated';62 }6364 /** @name FrameSystemEventRecord (18) */65 interface FrameSystemEventRecord extends Struct {66 readonly phase: FrameSystemPhase;67 readonly event: Event;68 readonly topics: Vec<H256>;69 }7071 /** @name FrameSystemEvent (20) */72 interface FrameSystemEvent extends Enum {73 readonly isExtrinsicSuccess: boolean;74 readonly asExtrinsicSuccess: {75 readonly dispatchInfo: FrameSupportDispatchDispatchInfo;76 } & Struct;77 readonly isExtrinsicFailed: boolean;78 readonly asExtrinsicFailed: {79 readonly dispatchError: SpRuntimeDispatchError;80 readonly dispatchInfo: FrameSupportDispatchDispatchInfo;81 } & Struct;82 readonly isCodeUpdated: boolean;83 readonly isNewAccount: boolean;84 readonly asNewAccount: {85 readonly account: AccountId32;86 } & Struct;87 readonly isKilledAccount: boolean;88 readonly asKilledAccount: {89 readonly account: AccountId32;90 } & Struct;91 readonly isRemarked: boolean;92 readonly asRemarked: {93 readonly sender: AccountId32;94 readonly hash_: H256;95 } & Struct;96 readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked';97 }9899 /** @name FrameSupportDispatchDispatchInfo (21) */100 interface FrameSupportDispatchDispatchInfo extends Struct {101 readonly weight: SpWeightsWeightV2Weight;102 readonly class: FrameSupportDispatchDispatchClass;103 readonly paysFee: FrameSupportDispatchPays;104 }105106 /** @name FrameSupportDispatchDispatchClass (22) */107 interface FrameSupportDispatchDispatchClass extends Enum {108 readonly isNormal: boolean;109 readonly isOperational: boolean;110 readonly isMandatory: boolean;111 readonly type: 'Normal' | 'Operational' | 'Mandatory';112 }113114 /** @name FrameSupportDispatchPays (23) */115 interface FrameSupportDispatchPays extends Enum {116 readonly isYes: boolean;117 readonly isNo: boolean;118 readonly type: 'Yes' | 'No';119 }120121 /** @name SpRuntimeDispatchError (24) */122 interface SpRuntimeDispatchError extends Enum {123 readonly isOther: boolean;124 readonly isCannotLookup: boolean;125 readonly isBadOrigin: boolean;126 readonly isModule: boolean;127 readonly asModule: SpRuntimeModuleError;128 readonly isConsumerRemaining: boolean;129 readonly isNoProviders: boolean;130 readonly isTooManyConsumers: boolean;131 readonly isToken: boolean;132 readonly asToken: SpRuntimeTokenError;133 readonly isArithmetic: boolean;134 readonly asArithmetic: SpRuntimeArithmeticError;135 readonly isTransactional: boolean;136 readonly asTransactional: SpRuntimeTransactionalError;137 readonly isExhausted: boolean;138 readonly isCorruption: boolean;139 readonly isUnavailable: boolean;140 readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic' | 'Transactional' | 'Exhausted' | 'Corruption' | 'Unavailable';141 }142143 /** @name SpRuntimeModuleError (25) */144 interface SpRuntimeModuleError extends Struct {145 readonly index: u8;146 readonly error: U8aFixed;147 }148149 /** @name SpRuntimeTokenError (26) */150 interface SpRuntimeTokenError extends Enum {151 readonly isNoFunds: boolean;152 readonly isWouldDie: boolean;153 readonly isBelowMinimum: boolean;154 readonly isCannotCreate: boolean;155 readonly isUnknownAsset: boolean;156 readonly isFrozen: boolean;157 readonly isUnsupported: boolean;158 readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported';159 }160161 /** @name SpRuntimeArithmeticError (27) */162 interface SpRuntimeArithmeticError extends Enum {163 readonly isUnderflow: boolean;164 readonly isOverflow: boolean;165 readonly isDivisionByZero: boolean;166 readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';167 }168169 /** @name SpRuntimeTransactionalError (28) */170 interface SpRuntimeTransactionalError extends Enum {171 readonly isLimitReached: boolean;172 readonly isNoLayer: boolean;173 readonly type: 'LimitReached' | 'NoLayer';174 }175176 /** @name CumulusPalletParachainSystemEvent (29) */177 interface CumulusPalletParachainSystemEvent extends Enum {178 readonly isValidationFunctionStored: boolean;179 readonly isValidationFunctionApplied: boolean;180 readonly asValidationFunctionApplied: {181 readonly relayChainBlockNum: u32;182 } & Struct;183 readonly isValidationFunctionDiscarded: boolean;184 readonly isUpgradeAuthorized: boolean;185 readonly asUpgradeAuthorized: {186 readonly codeHash: H256;187 } & Struct;188 readonly isDownwardMessagesReceived: boolean;189 readonly asDownwardMessagesReceived: {190 readonly count: u32;191 } & Struct;192 readonly isDownwardMessagesProcessed: boolean;193 readonly asDownwardMessagesProcessed: {194 readonly weightUsed: SpWeightsWeightV2Weight;195 readonly dmqHead: H256;196 } & Struct;197 readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';198 }199200 /** @name PalletCollatorSelectionEvent (30) */201 interface PalletCollatorSelectionEvent extends Enum {202 readonly isInvulnerableAdded: boolean;203 readonly asInvulnerableAdded: {204 readonly invulnerable: AccountId32;205 } & Struct;206 readonly isInvulnerableRemoved: boolean;207 readonly asInvulnerableRemoved: {208 readonly invulnerable: AccountId32;209 } & Struct;210 readonly isLicenseObtained: boolean;211 readonly asLicenseObtained: {212 readonly accountId: AccountId32;213 readonly deposit: u128;214 } & Struct;215 readonly isLicenseForfeited: boolean;216 readonly asLicenseForfeited: {217 readonly accountId: AccountId32;218 readonly depositReturned: u128;219 } & Struct;220 readonly isCandidateAdded: boolean;221 readonly asCandidateAdded: {222 readonly accountId: AccountId32;223 } & Struct;224 readonly isCandidateRemoved: boolean;225 readonly asCandidateRemoved: {226 readonly accountId: AccountId32;227 } & Struct;228 readonly type: 'InvulnerableAdded' | 'InvulnerableRemoved' | 'LicenseObtained' | 'LicenseForfeited' | 'CandidateAdded' | 'CandidateRemoved';229 }230231 /** @name PalletSessionEvent (31) */232 interface PalletSessionEvent extends Enum {233 readonly isNewSession: boolean;234 readonly asNewSession: {235 readonly sessionIndex: u32;236 } & Struct;237 readonly type: 'NewSession';238 }239240 /** @name PalletIdentityEvent (32) */241 interface PalletIdentityEvent extends Enum {242 readonly isIdentitySet: boolean;243 readonly asIdentitySet: {244 readonly who: AccountId32;245 } & Struct;246 readonly isIdentityCleared: boolean;247 readonly asIdentityCleared: {248 readonly who: AccountId32;249 readonly deposit: u128;250 } & Struct;251 readonly isIdentityKilled: boolean;252 readonly asIdentityKilled: {253 readonly who: AccountId32;254 readonly deposit: u128;255 } & Struct;256 readonly isJudgementRequested: boolean;257 readonly asJudgementRequested: {258 readonly who: AccountId32;259 readonly registrarIndex: u32;260 } & Struct;261 readonly isJudgementUnrequested: boolean;262 readonly asJudgementUnrequested: {263 readonly who: AccountId32;264 readonly registrarIndex: u32;265 } & Struct;266 readonly isJudgementGiven: boolean;267 readonly asJudgementGiven: {268 readonly target: AccountId32;269 readonly registrarIndex: u32;270 } & Struct;271 readonly isRegistrarAdded: boolean;272 readonly asRegistrarAdded: {273 readonly registrarIndex: u32;274 } & Struct;275 readonly isSubIdentityAdded: boolean;276 readonly asSubIdentityAdded: {277 readonly sub: AccountId32;278 readonly main: AccountId32;279 readonly deposit: u128;280 } & Struct;281 readonly isSubIdentityRemoved: boolean;282 readonly asSubIdentityRemoved: {283 readonly sub: AccountId32;284 readonly main: AccountId32;285 readonly deposit: u128;286 } & Struct;287 readonly isSubIdentityRevoked: boolean;288 readonly asSubIdentityRevoked: {289 readonly sub: AccountId32;290 readonly main: AccountId32;291 readonly deposit: u128;292 } & Struct;293 readonly type: 'IdentitySet' | 'IdentityCleared' | 'IdentityKilled' | 'JudgementRequested' | 'JudgementUnrequested' | 'JudgementGiven' | 'RegistrarAdded' | 'SubIdentityAdded' | 'SubIdentityRemoved' | 'SubIdentityRevoked';294 }295296 /** @name PalletBalancesEvent (33) */297 interface PalletBalancesEvent extends Enum {298 readonly isEndowed: boolean;299 readonly asEndowed: {300 readonly account: AccountId32;301 readonly freeBalance: u128;302 } & Struct;303 readonly isDustLost: boolean;304 readonly asDustLost: {305 readonly account: AccountId32;306 readonly amount: u128;307 } & Struct;308 readonly isTransfer: boolean;309 readonly asTransfer: {310 readonly from: AccountId32;311 readonly to: AccountId32;312 readonly amount: u128;313 } & Struct;314 readonly isBalanceSet: boolean;315 readonly asBalanceSet: {316 readonly who: AccountId32;317 readonly free: u128;318 readonly reserved: u128;319 } & Struct;320 readonly isReserved: boolean;321 readonly asReserved: {322 readonly who: AccountId32;323 readonly amount: u128;324 } & Struct;325 readonly isUnreserved: boolean;326 readonly asUnreserved: {327 readonly who: AccountId32;328 readonly amount: u128;329 } & Struct;330 readonly isReserveRepatriated: boolean;331 readonly asReserveRepatriated: {332 readonly from: AccountId32;333 readonly to: AccountId32;334 readonly amount: u128;335 readonly destinationStatus: FrameSupportTokensMiscBalanceStatus;336 } & Struct;337 readonly isDeposit: boolean;338 readonly asDeposit: {339 readonly who: AccountId32;340 readonly amount: u128;341 } & Struct;342 readonly isWithdraw: boolean;343 readonly asWithdraw: {344 readonly who: AccountId32;345 readonly amount: u128;346 } & Struct;347 readonly isSlashed: boolean;348 readonly asSlashed: {349 readonly who: AccountId32;350 readonly amount: u128;351 } & Struct;352 readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'BalanceSet' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'Deposit' | 'Withdraw' | 'Slashed';353 }354355 /** @name FrameSupportTokensMiscBalanceStatus (34) */356 interface FrameSupportTokensMiscBalanceStatus extends Enum {357 readonly isFree: boolean;358 readonly isReserved: boolean;359 readonly type: 'Free' | 'Reserved';360 }361362 /** @name PalletTransactionPaymentEvent (35) */363 interface PalletTransactionPaymentEvent extends Enum {364 readonly isTransactionFeePaid: boolean;365 readonly asTransactionFeePaid: {366 readonly who: AccountId32;367 readonly actualFee: u128;368 readonly tip: u128;369 } & Struct;370 readonly type: 'TransactionFeePaid';371 }372373 /** @name PalletTreasuryEvent (36) */374 interface PalletTreasuryEvent extends Enum {375 readonly isProposed: boolean;376 readonly asProposed: {377 readonly proposalIndex: u32;378 } & Struct;379 readonly isSpending: boolean;380 readonly asSpending: {381 readonly budgetRemaining: u128;382 } & Struct;383 readonly isAwarded: boolean;384 readonly asAwarded: {385 readonly proposalIndex: u32;386 readonly award: u128;387 readonly account: AccountId32;388 } & Struct;389 readonly isRejected: boolean;390 readonly asRejected: {391 readonly proposalIndex: u32;392 readonly slashed: u128;393 } & Struct;394 readonly isBurnt: boolean;395 readonly asBurnt: {396 readonly burntFunds: u128;397 } & Struct;398 readonly isRollover: boolean;399 readonly asRollover: {400 readonly rolloverBalance: u128;401 } & Struct;402 readonly isDeposit: boolean;403 readonly asDeposit: {404 readonly value: u128;405 } & Struct;406 readonly isSpendApproved: boolean;407 readonly asSpendApproved: {408 readonly proposalIndex: u32;409 readonly amount: u128;410 readonly beneficiary: AccountId32;411 } & Struct;412 readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit' | 'SpendApproved';413 }414415 /** @name PalletSudoEvent (37) */416 interface PalletSudoEvent extends Enum {417 readonly isSudid: boolean;418 readonly asSudid: {419 readonly sudoResult: Result<Null, SpRuntimeDispatchError>;420 } & Struct;421 readonly isKeyChanged: boolean;422 readonly asKeyChanged: {423 readonly oldSudoer: Option<AccountId32>;424 } & Struct;425 readonly isSudoAsDone: boolean;426 readonly asSudoAsDone: {427 readonly sudoResult: Result<Null, SpRuntimeDispatchError>;428 } & Struct;429 readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';430 }431432 /** @name OrmlVestingModuleEvent (41) */433 interface OrmlVestingModuleEvent extends Enum {434 readonly isVestingScheduleAdded: boolean;435 readonly asVestingScheduleAdded: {436 readonly from: AccountId32;437 readonly to: AccountId32;438 readonly vestingSchedule: OrmlVestingVestingSchedule;439 } & Struct;440 readonly isClaimed: boolean;441 readonly asClaimed: {442 readonly who: AccountId32;443 readonly amount: u128;444 } & Struct;445 readonly isVestingSchedulesUpdated: boolean;446 readonly asVestingSchedulesUpdated: {447 readonly who: AccountId32;448 } & Struct;449 readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';450 }451452 /** @name OrmlVestingVestingSchedule (42) */453 interface OrmlVestingVestingSchedule extends Struct {454 readonly start: u32;455 readonly period: u32;456 readonly periodCount: u32;457 readonly perPeriod: Compact<u128>;458 }459460 /** @name OrmlXtokensModuleEvent (44) */461 interface OrmlXtokensModuleEvent extends Enum {462 readonly isTransferredMultiAssets: boolean;463 readonly asTransferredMultiAssets: {464 readonly sender: AccountId32;465 readonly assets: XcmV1MultiassetMultiAssets;466 readonly fee: XcmV1MultiAsset;467 readonly dest: XcmV1MultiLocation;468 } & Struct;469 readonly type: 'TransferredMultiAssets';470 }471472 /** @name XcmV1MultiassetMultiAssets (45) */473 interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}474475 /** @name XcmV1MultiAsset (47) */476 interface XcmV1MultiAsset extends Struct {477 readonly id: XcmV1MultiassetAssetId;478 readonly fun: XcmV1MultiassetFungibility;479 }480481 /** @name XcmV1MultiassetAssetId (48) */482 interface XcmV1MultiassetAssetId extends Enum {483 readonly isConcrete: boolean;484 readonly asConcrete: XcmV1MultiLocation;485 readonly isAbstract: boolean;486 readonly asAbstract: Bytes;487 readonly type: 'Concrete' | 'Abstract';488 }489490 /** @name XcmV1MultiLocation (49) */491 interface XcmV1MultiLocation extends Struct {492 readonly parents: u8;493 readonly interior: XcmV1MultilocationJunctions;494 }495496 /** @name XcmV1MultilocationJunctions (50) */497 interface XcmV1MultilocationJunctions extends Enum {498 readonly isHere: boolean;499 readonly isX1: boolean;500 readonly asX1: XcmV1Junction;501 readonly isX2: boolean;502 readonly asX2: ITuple<[XcmV1Junction, XcmV1Junction]>;503 readonly isX3: boolean;504 readonly asX3: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction]>;505 readonly isX4: boolean;506 readonly asX4: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;507 readonly isX5: boolean;508 readonly asX5: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;509 readonly isX6: boolean;510 readonly asX6: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;511 readonly isX7: boolean;512 readonly asX7: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;513 readonly isX8: boolean;514 readonly asX8: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;515 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';516 }517518 /** @name XcmV1Junction (51) */519 interface XcmV1Junction extends Enum {520 readonly isParachain: boolean;521 readonly asParachain: Compact<u32>;522 readonly isAccountId32: boolean;523 readonly asAccountId32: {524 readonly network: XcmV0JunctionNetworkId;525 readonly id: U8aFixed;526 } & Struct;527 readonly isAccountIndex64: boolean;528 readonly asAccountIndex64: {529 readonly network: XcmV0JunctionNetworkId;530 readonly index: Compact<u64>;531 } & Struct;532 readonly isAccountKey20: boolean;533 readonly asAccountKey20: {534 readonly network: XcmV0JunctionNetworkId;535 readonly key: U8aFixed;536 } & Struct;537 readonly isPalletInstance: boolean;538 readonly asPalletInstance: u8;539 readonly isGeneralIndex: boolean;540 readonly asGeneralIndex: Compact<u128>;541 readonly isGeneralKey: boolean;542 readonly asGeneralKey: Bytes;543 readonly isOnlyChild: boolean;544 readonly isPlurality: boolean;545 readonly asPlurality: {546 readonly id: XcmV0JunctionBodyId;547 readonly part: XcmV0JunctionBodyPart;548 } & Struct;549 readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';550 }551552 /** @name XcmV0JunctionNetworkId (53) */553 interface XcmV0JunctionNetworkId extends Enum {554 readonly isAny: boolean;555 readonly isNamed: boolean;556 readonly asNamed: Bytes;557 readonly isPolkadot: boolean;558 readonly isKusama: boolean;559 readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';560 }561562 /** @name XcmV0JunctionBodyId (56) */563 interface XcmV0JunctionBodyId extends Enum {564 readonly isUnit: boolean;565 readonly isNamed: boolean;566 readonly asNamed: Bytes;567 readonly isIndex: boolean;568 readonly asIndex: Compact<u32>;569 readonly isExecutive: boolean;570 readonly isTechnical: boolean;571 readonly isLegislative: boolean;572 readonly isJudicial: boolean;573 readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';574 }575576 /** @name XcmV0JunctionBodyPart (57) */577 interface XcmV0JunctionBodyPart extends Enum {578 readonly isVoice: boolean;579 readonly isMembers: boolean;580 readonly asMembers: {581 readonly count: Compact<u32>;582 } & Struct;583 readonly isFraction: boolean;584 readonly asFraction: {585 readonly nom: Compact<u32>;586 readonly denom: Compact<u32>;587 } & Struct;588 readonly isAtLeastProportion: boolean;589 readonly asAtLeastProportion: {590 readonly nom: Compact<u32>;591 readonly denom: Compact<u32>;592 } & Struct;593 readonly isMoreThanProportion: boolean;594 readonly asMoreThanProportion: {595 readonly nom: Compact<u32>;596 readonly denom: Compact<u32>;597 } & Struct;598 readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';599 }600601 /** @name XcmV1MultiassetFungibility (58) */602 interface XcmV1MultiassetFungibility extends Enum {603 readonly isFungible: boolean;604 readonly asFungible: Compact<u128>;605 readonly isNonFungible: boolean;606 readonly asNonFungible: XcmV1MultiassetAssetInstance;607 readonly type: 'Fungible' | 'NonFungible';608 }609610 /** @name XcmV1MultiassetAssetInstance (59) */611 interface XcmV1MultiassetAssetInstance extends Enum {612 readonly isUndefined: boolean;613 readonly isIndex: boolean;614 readonly asIndex: Compact<u128>;615 readonly isArray4: boolean;616 readonly asArray4: U8aFixed;617 readonly isArray8: boolean;618 readonly asArray8: U8aFixed;619 readonly isArray16: boolean;620 readonly asArray16: U8aFixed;621 readonly isArray32: boolean;622 readonly asArray32: U8aFixed;623 readonly isBlob: boolean;624 readonly asBlob: Bytes;625 readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';626 }627628 /** @name OrmlTokensModuleEvent (62) */629 interface OrmlTokensModuleEvent extends Enum {630 readonly isEndowed: boolean;631 readonly asEndowed: {632 readonly currencyId: PalletForeignAssetsAssetIds;633 readonly who: AccountId32;634 readonly amount: u128;635 } & Struct;636 readonly isDustLost: boolean;637 readonly asDustLost: {638 readonly currencyId: PalletForeignAssetsAssetIds;639 readonly who: AccountId32;640 readonly amount: u128;641 } & Struct;642 readonly isTransfer: boolean;643 readonly asTransfer: {644 readonly currencyId: PalletForeignAssetsAssetIds;645 readonly from: AccountId32;646 readonly to: AccountId32;647 readonly amount: u128;648 } & Struct;649 readonly isReserved: boolean;650 readonly asReserved: {651 readonly currencyId: PalletForeignAssetsAssetIds;652 readonly who: AccountId32;653 readonly amount: u128;654 } & Struct;655 readonly isUnreserved: boolean;656 readonly asUnreserved: {657 readonly currencyId: PalletForeignAssetsAssetIds;658 readonly who: AccountId32;659 readonly amount: u128;660 } & Struct;661 readonly isReserveRepatriated: boolean;662 readonly asReserveRepatriated: {663 readonly currencyId: PalletForeignAssetsAssetIds;664 readonly from: AccountId32;665 readonly to: AccountId32;666 readonly amount: u128;667 readonly status: FrameSupportTokensMiscBalanceStatus;668 } & Struct;669 readonly isBalanceSet: boolean;670 readonly asBalanceSet: {671 readonly currencyId: PalletForeignAssetsAssetIds;672 readonly who: AccountId32;673 readonly free: u128;674 readonly reserved: u128;675 } & Struct;676 readonly isTotalIssuanceSet: boolean;677 readonly asTotalIssuanceSet: {678 readonly currencyId: PalletForeignAssetsAssetIds;679 readonly amount: u128;680 } & Struct;681 readonly isWithdrawn: boolean;682 readonly asWithdrawn: {683 readonly currencyId: PalletForeignAssetsAssetIds;684 readonly who: AccountId32;685 readonly amount: u128;686 } & Struct;687 readonly isSlashed: boolean;688 readonly asSlashed: {689 readonly currencyId: PalletForeignAssetsAssetIds;690 readonly who: AccountId32;691 readonly freeAmount: u128;692 readonly reservedAmount: u128;693 } & Struct;694 readonly isDeposited: boolean;695 readonly asDeposited: {696 readonly currencyId: PalletForeignAssetsAssetIds;697 readonly who: AccountId32;698 readonly amount: u128;699 } & Struct;700 readonly isLockSet: boolean;701 readonly asLockSet: {702 readonly lockId: U8aFixed;703 readonly currencyId: PalletForeignAssetsAssetIds;704 readonly who: AccountId32;705 readonly amount: u128;706 } & Struct;707 readonly isLockRemoved: boolean;708 readonly asLockRemoved: {709 readonly lockId: U8aFixed;710 readonly currencyId: PalletForeignAssetsAssetIds;711 readonly who: AccountId32;712 } & Struct;713 readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'BalanceSet' | 'TotalIssuanceSet' | 'Withdrawn' | 'Slashed' | 'Deposited' | 'LockSet' | 'LockRemoved';714 }715716 /** @name PalletForeignAssetsAssetIds (63) */717 interface PalletForeignAssetsAssetIds extends Enum {718 readonly isForeignAssetId: boolean;719 readonly asForeignAssetId: u32;720 readonly isNativeAssetId: boolean;721 readonly asNativeAssetId: PalletForeignAssetsNativeCurrency;722 readonly type: 'ForeignAssetId' | 'NativeAssetId';723 }724725 /** @name PalletForeignAssetsNativeCurrency (64) */726 interface PalletForeignAssetsNativeCurrency extends Enum {727 readonly isHere: boolean;728 readonly isParent: boolean;729 readonly type: 'Here' | 'Parent';730 }731732 /** @name CumulusPalletXcmpQueueEvent (65) */733 interface CumulusPalletXcmpQueueEvent extends Enum {734 readonly isSuccess: boolean;735 readonly asSuccess: {736 readonly messageHash: Option<H256>;737 readonly weight: SpWeightsWeightV2Weight;738 } & Struct;739 readonly isFail: boolean;740 readonly asFail: {741 readonly messageHash: Option<H256>;742 readonly error: XcmV2TraitsError;743 readonly weight: SpWeightsWeightV2Weight;744 } & Struct;745 readonly isBadVersion: boolean;746 readonly asBadVersion: {747 readonly messageHash: Option<H256>;748 } & Struct;749 readonly isBadFormat: boolean;750 readonly asBadFormat: {751 readonly messageHash: Option<H256>;752 } & Struct;753 readonly isUpwardMessageSent: boolean;754 readonly asUpwardMessageSent: {755 readonly messageHash: Option<H256>;756 } & Struct;757 readonly isXcmpMessageSent: boolean;758 readonly asXcmpMessageSent: {759 readonly messageHash: Option<H256>;760 } & Struct;761 readonly isOverweightEnqueued: boolean;762 readonly asOverweightEnqueued: {763 readonly sender: u32;764 readonly sentAt: u32;765 readonly index: u64;766 readonly required: SpWeightsWeightV2Weight;767 } & Struct;768 readonly isOverweightServiced: boolean;769 readonly asOverweightServiced: {770 readonly index: u64;771 readonly used: SpWeightsWeightV2Weight;772 } & Struct;773 readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'UpwardMessageSent' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';774 }775776 /** @name XcmV2TraitsError (67) */777 interface XcmV2TraitsError extends Enum {778 readonly isOverflow: boolean;779 readonly isUnimplemented: boolean;780 readonly isUntrustedReserveLocation: boolean;781 readonly isUntrustedTeleportLocation: boolean;782 readonly isMultiLocationFull: boolean;783 readonly isMultiLocationNotInvertible: boolean;784 readonly isBadOrigin: boolean;785 readonly isInvalidLocation: boolean;786 readonly isAssetNotFound: boolean;787 readonly isFailedToTransactAsset: boolean;788 readonly isNotWithdrawable: boolean;789 readonly isLocationCannotHold: boolean;790 readonly isExceedsMaxMessageSize: boolean;791 readonly isDestinationUnsupported: boolean;792 readonly isTransport: boolean;793 readonly isUnroutable: boolean;794 readonly isUnknownClaim: boolean;795 readonly isFailedToDecode: boolean;796 readonly isMaxWeightInvalid: boolean;797 readonly isNotHoldingFees: boolean;798 readonly isTooExpensive: boolean;799 readonly isTrap: boolean;800 readonly asTrap: u64;801 readonly isUnhandledXcmVersion: boolean;802 readonly isWeightLimitReached: boolean;803 readonly asWeightLimitReached: u64;804 readonly isBarrier: boolean;805 readonly isWeightNotComputable: boolean;806 readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable';807 }808809 /** @name PalletXcmEvent (69) */810 interface PalletXcmEvent extends Enum {811 readonly isAttempted: boolean;812 readonly asAttempted: XcmV2TraitsOutcome;813 readonly isSent: boolean;814 readonly asSent: ITuple<[XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;815 readonly isUnexpectedResponse: boolean;816 readonly asUnexpectedResponse: ITuple<[XcmV1MultiLocation, u64]>;817 readonly isResponseReady: boolean;818 readonly asResponseReady: ITuple<[u64, XcmV2Response]>;819 readonly isNotified: boolean;820 readonly asNotified: ITuple<[u64, u8, u8]>;821 readonly isNotifyOverweight: boolean;822 readonly asNotifyOverweight: ITuple<[u64, u8, u8, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>;823 readonly isNotifyDispatchError: boolean;824 readonly asNotifyDispatchError: ITuple<[u64, u8, u8]>;825 readonly isNotifyDecodeFailed: boolean;826 readonly asNotifyDecodeFailed: ITuple<[u64, u8, u8]>;827 readonly isInvalidResponder: boolean;828 readonly asInvalidResponder: ITuple<[XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;829 readonly isInvalidResponderVersion: boolean;830 readonly asInvalidResponderVersion: ITuple<[XcmV1MultiLocation, u64]>;831 readonly isResponseTaken: boolean;832 readonly asResponseTaken: u64;833 readonly isAssetsTrapped: boolean;834 readonly asAssetsTrapped: ITuple<[H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;835 readonly isVersionChangeNotified: boolean;836 readonly asVersionChangeNotified: ITuple<[XcmV1MultiLocation, u32]>;837 readonly isSupportedVersionChanged: boolean;838 readonly asSupportedVersionChanged: ITuple<[XcmV1MultiLocation, u32]>;839 readonly isNotifyTargetSendFail: boolean;840 readonly asNotifyTargetSendFail: ITuple<[XcmV1MultiLocation, u64, XcmV2TraitsError]>;841 readonly isNotifyTargetMigrationFail: boolean;842 readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>;843 readonly isAssetsClaimed: boolean;844 readonly asAssetsClaimed: ITuple<[H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;845 readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail' | 'AssetsClaimed';846 }847848 /** @name XcmV2TraitsOutcome (70) */849 interface XcmV2TraitsOutcome extends Enum {850 readonly isComplete: boolean;851 readonly asComplete: u64;852 readonly isIncomplete: boolean;853 readonly asIncomplete: ITuple<[u64, XcmV2TraitsError]>;854 readonly isError: boolean;855 readonly asError: XcmV2TraitsError;856 readonly type: 'Complete' | 'Incomplete' | 'Error';857 }858859 /** @name XcmV2Xcm (71) */860 interface XcmV2Xcm extends Vec<XcmV2Instruction> {}861862 /** @name XcmV2Instruction (73) */863 interface XcmV2Instruction extends Enum {864 readonly isWithdrawAsset: boolean;865 readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;866 readonly isReserveAssetDeposited: boolean;867 readonly asReserveAssetDeposited: XcmV1MultiassetMultiAssets;868 readonly isReceiveTeleportedAsset: boolean;869 readonly asReceiveTeleportedAsset: XcmV1MultiassetMultiAssets;870 readonly isQueryResponse: boolean;871 readonly asQueryResponse: {872 readonly queryId: Compact<u64>;873 readonly response: XcmV2Response;874 readonly maxWeight: Compact<u64>;875 } & Struct;876 readonly isTransferAsset: boolean;877 readonly asTransferAsset: {878 readonly assets: XcmV1MultiassetMultiAssets;879 readonly beneficiary: XcmV1MultiLocation;880 } & Struct;881 readonly isTransferReserveAsset: boolean;882 readonly asTransferReserveAsset: {883 readonly assets: XcmV1MultiassetMultiAssets;884 readonly dest: XcmV1MultiLocation;885 readonly xcm: XcmV2Xcm;886 } & Struct;887 readonly isTransact: boolean;888 readonly asTransact: {889 readonly originType: XcmV0OriginKind;890 readonly requireWeightAtMost: Compact<u64>;891 readonly call: XcmDoubleEncoded;892 } & Struct;893 readonly isHrmpNewChannelOpenRequest: boolean;894 readonly asHrmpNewChannelOpenRequest: {895 readonly sender: Compact<u32>;896 readonly maxMessageSize: Compact<u32>;897 readonly maxCapacity: Compact<u32>;898 } & Struct;899 readonly isHrmpChannelAccepted: boolean;900 readonly asHrmpChannelAccepted: {901 readonly recipient: Compact<u32>;902 } & Struct;903 readonly isHrmpChannelClosing: boolean;904 readonly asHrmpChannelClosing: {905 readonly initiator: Compact<u32>;906 readonly sender: Compact<u32>;907 readonly recipient: Compact<u32>;908 } & Struct;909 readonly isClearOrigin: boolean;910 readonly isDescendOrigin: boolean;911 readonly asDescendOrigin: XcmV1MultilocationJunctions;912 readonly isReportError: boolean;913 readonly asReportError: {914 readonly queryId: Compact<u64>;915 readonly dest: XcmV1MultiLocation;916 readonly maxResponseWeight: Compact<u64>;917 } & Struct;918 readonly isDepositAsset: boolean;919 readonly asDepositAsset: {920 readonly assets: XcmV1MultiassetMultiAssetFilter;921 readonly maxAssets: Compact<u32>;922 readonly beneficiary: XcmV1MultiLocation;923 } & Struct;924 readonly isDepositReserveAsset: boolean;925 readonly asDepositReserveAsset: {926 readonly assets: XcmV1MultiassetMultiAssetFilter;927 readonly maxAssets: Compact<u32>;928 readonly dest: XcmV1MultiLocation;929 readonly xcm: XcmV2Xcm;930 } & Struct;931 readonly isExchangeAsset: boolean;932 readonly asExchangeAsset: {933 readonly give: XcmV1MultiassetMultiAssetFilter;934 readonly receive: XcmV1MultiassetMultiAssets;935 } & Struct;936 readonly isInitiateReserveWithdraw: boolean;937 readonly asInitiateReserveWithdraw: {938 readonly assets: XcmV1MultiassetMultiAssetFilter;939 readonly reserve: XcmV1MultiLocation;940 readonly xcm: XcmV2Xcm;941 } & Struct;942 readonly isInitiateTeleport: boolean;943 readonly asInitiateTeleport: {944 readonly assets: XcmV1MultiassetMultiAssetFilter;945 readonly dest: XcmV1MultiLocation;946 readonly xcm: XcmV2Xcm;947 } & Struct;948 readonly isQueryHolding: boolean;949 readonly asQueryHolding: {950 readonly queryId: Compact<u64>;951 readonly dest: XcmV1MultiLocation;952 readonly assets: XcmV1MultiassetMultiAssetFilter;953 readonly maxResponseWeight: Compact<u64>;954 } & Struct;955 readonly isBuyExecution: boolean;956 readonly asBuyExecution: {957 readonly fees: XcmV1MultiAsset;958 readonly weightLimit: XcmV2WeightLimit;959 } & Struct;960 readonly isRefundSurplus: boolean;961 readonly isSetErrorHandler: boolean;962 readonly asSetErrorHandler: XcmV2Xcm;963 readonly isSetAppendix: boolean;964 readonly asSetAppendix: XcmV2Xcm;965 readonly isClearError: boolean;966 readonly isClaimAsset: boolean;967 readonly asClaimAsset: {968 readonly assets: XcmV1MultiassetMultiAssets;969 readonly ticket: XcmV1MultiLocation;970 } & Struct;971 readonly isTrap: boolean;972 readonly asTrap: Compact<u64>;973 readonly isSubscribeVersion: boolean;974 readonly asSubscribeVersion: {975 readonly queryId: Compact<u64>;976 readonly maxResponseWeight: Compact<u64>;977 } & Struct;978 readonly isUnsubscribeVersion: boolean;979 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion';980 }981982 /** @name XcmV2Response (74) */983 interface XcmV2Response extends Enum {984 readonly isNull: boolean;985 readonly isAssets: boolean;986 readonly asAssets: XcmV1MultiassetMultiAssets;987 readonly isExecutionResult: boolean;988 readonly asExecutionResult: Option<ITuple<[u32, XcmV2TraitsError]>>;989 readonly isVersion: boolean;990 readonly asVersion: u32;991 readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';992 }993994 /** @name XcmV0OriginKind (77) */995 interface XcmV0OriginKind extends Enum {996 readonly isNative: boolean;997 readonly isSovereignAccount: boolean;998 readonly isSuperuser: boolean;999 readonly isXcm: boolean;1000 readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';1001 }10021003 /** @name XcmDoubleEncoded (78) */1004 interface XcmDoubleEncoded extends Struct {1005 readonly encoded: Bytes;1006 }10071008 /** @name XcmV1MultiassetMultiAssetFilter (79) */1009 interface XcmV1MultiassetMultiAssetFilter extends Enum {1010 readonly isDefinite: boolean;1011 readonly asDefinite: XcmV1MultiassetMultiAssets;1012 readonly isWild: boolean;1013 readonly asWild: XcmV1MultiassetWildMultiAsset;1014 readonly type: 'Definite' | 'Wild';1015 }10161017 /** @name XcmV1MultiassetWildMultiAsset (80) */1018 interface XcmV1MultiassetWildMultiAsset extends Enum {1019 readonly isAll: boolean;1020 readonly isAllOf: boolean;1021 readonly asAllOf: {1022 readonly id: XcmV1MultiassetAssetId;1023 readonly fun: XcmV1MultiassetWildFungibility;1024 } & Struct;1025 readonly type: 'All' | 'AllOf';1026 }10271028 /** @name XcmV1MultiassetWildFungibility (81) */1029 interface XcmV1MultiassetWildFungibility extends Enum {1030 readonly isFungible: boolean;1031 readonly isNonFungible: boolean;1032 readonly type: 'Fungible' | 'NonFungible';1033 }10341035 /** @name XcmV2WeightLimit (82) */1036 interface XcmV2WeightLimit extends Enum {1037 readonly isUnlimited: boolean;1038 readonly isLimited: boolean;1039 readonly asLimited: Compact<u64>;1040 readonly type: 'Unlimited' | 'Limited';1041 }10421043 /** @name XcmVersionedMultiAssets (84) */1044 interface XcmVersionedMultiAssets extends Enum {1045 readonly isV0: boolean;1046 readonly asV0: Vec<XcmV0MultiAsset>;1047 readonly isV1: boolean;1048 readonly asV1: XcmV1MultiassetMultiAssets;1049 readonly type: 'V0' | 'V1';1050 }10511052 /** @name XcmV0MultiAsset (86) */1053 interface XcmV0MultiAsset extends Enum {1054 readonly isNone: boolean;1055 readonly isAll: boolean;1056 readonly isAllFungible: boolean;1057 readonly isAllNonFungible: boolean;1058 readonly isAllAbstractFungible: boolean;1059 readonly asAllAbstractFungible: {1060 readonly id: Bytes;1061 } & Struct;1062 readonly isAllAbstractNonFungible: boolean;1063 readonly asAllAbstractNonFungible: {1064 readonly class: Bytes;1065 } & Struct;1066 readonly isAllConcreteFungible: boolean;1067 readonly asAllConcreteFungible: {1068 readonly id: XcmV0MultiLocation;1069 } & Struct;1070 readonly isAllConcreteNonFungible: boolean;1071 readonly asAllConcreteNonFungible: {1072 readonly class: XcmV0MultiLocation;1073 } & Struct;1074 readonly isAbstractFungible: boolean;1075 readonly asAbstractFungible: {1076 readonly id: Bytes;1077 readonly amount: Compact<u128>;1078 } & Struct;1079 readonly isAbstractNonFungible: boolean;1080 readonly asAbstractNonFungible: {1081 readonly class: Bytes;1082 readonly instance: XcmV1MultiassetAssetInstance;1083 } & Struct;1084 readonly isConcreteFungible: boolean;1085 readonly asConcreteFungible: {1086 readonly id: XcmV0MultiLocation;1087 readonly amount: Compact<u128>;1088 } & Struct;1089 readonly isConcreteNonFungible: boolean;1090 readonly asConcreteNonFungible: {1091 readonly class: XcmV0MultiLocation;1092 readonly instance: XcmV1MultiassetAssetInstance;1093 } & Struct;1094 readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';1095 }10961097 /** @name XcmV0MultiLocation (87) */1098 interface XcmV0MultiLocation extends Enum {1099 readonly isNull: boolean;1100 readonly isX1: boolean;1101 readonly asX1: XcmV0Junction;1102 readonly isX2: boolean;1103 readonly asX2: ITuple<[XcmV0Junction, XcmV0Junction]>;1104 readonly isX3: boolean;1105 readonly asX3: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1106 readonly isX4: boolean;1107 readonly asX4: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1108 readonly isX5: boolean;1109 readonly asX5: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1110 readonly isX6: boolean;1111 readonly asX6: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1112 readonly isX7: boolean;1113 readonly asX7: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1114 readonly isX8: boolean;1115 readonly asX8: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;1116 readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';1117 }11181119 /** @name XcmV0Junction (88) */1120 interface XcmV0Junction extends Enum {1121 readonly isParent: boolean;1122 readonly isParachain: boolean;1123 readonly asParachain: Compact<u32>;1124 readonly isAccountId32: boolean;1125 readonly asAccountId32: {1126 readonly network: XcmV0JunctionNetworkId;1127 readonly id: U8aFixed;1128 } & Struct;1129 readonly isAccountIndex64: boolean;1130 readonly asAccountIndex64: {1131 readonly network: XcmV0JunctionNetworkId;1132 readonly index: Compact<u64>;1133 } & Struct;1134 readonly isAccountKey20: boolean;1135 readonly asAccountKey20: {1136 readonly network: XcmV0JunctionNetworkId;1137 readonly key: U8aFixed;1138 } & Struct;1139 readonly isPalletInstance: boolean;1140 readonly asPalletInstance: u8;1141 readonly isGeneralIndex: boolean;1142 readonly asGeneralIndex: Compact<u128>;1143 readonly isGeneralKey: boolean;1144 readonly asGeneralKey: Bytes;1145 readonly isOnlyChild: boolean;1146 readonly isPlurality: boolean;1147 readonly asPlurality: {1148 readonly id: XcmV0JunctionBodyId;1149 readonly part: XcmV0JunctionBodyPart;1150 } & Struct;1151 readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';1152 }11531154 /** @name XcmVersionedMultiLocation (89) */1155 interface XcmVersionedMultiLocation extends Enum {1156 readonly isV0: boolean;1157 readonly asV0: XcmV0MultiLocation;1158 readonly isV1: boolean;1159 readonly asV1: XcmV1MultiLocation;1160 readonly type: 'V0' | 'V1';1161 }11621163 /** @name CumulusPalletXcmEvent (90) */1164 interface CumulusPalletXcmEvent extends Enum {1165 readonly isInvalidFormat: boolean;1166 readonly asInvalidFormat: U8aFixed;1167 readonly isUnsupportedVersion: boolean;1168 readonly asUnsupportedVersion: U8aFixed;1169 readonly isExecutedDownward: boolean;1170 readonly asExecutedDownward: ITuple<[U8aFixed, XcmV2TraitsOutcome]>;1171 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';1172 }11731174 /** @name CumulusPalletDmpQueueEvent (91) */1175 interface CumulusPalletDmpQueueEvent extends Enum {1176 readonly isInvalidFormat: boolean;1177 readonly asInvalidFormat: {1178 readonly messageId: U8aFixed;1179 } & Struct;1180 readonly isUnsupportedVersion: boolean;1181 readonly asUnsupportedVersion: {1182 readonly messageId: U8aFixed;1183 } & Struct;1184 readonly isExecutedDownward: boolean;1185 readonly asExecutedDownward: {1186 readonly messageId: U8aFixed;1187 readonly outcome: XcmV2TraitsOutcome;1188 } & Struct;1189 readonly isWeightExhausted: boolean;1190 readonly asWeightExhausted: {1191 readonly messageId: U8aFixed;1192 readonly remainingWeight: SpWeightsWeightV2Weight;1193 readonly requiredWeight: SpWeightsWeightV2Weight;1194 } & Struct;1195 readonly isOverweightEnqueued: boolean;1196 readonly asOverweightEnqueued: {1197 readonly messageId: U8aFixed;1198 readonly overweightIndex: u64;1199 readonly requiredWeight: SpWeightsWeightV2Weight;1200 } & Struct;1201 readonly isOverweightServiced: boolean;1202 readonly asOverweightServiced: {1203 readonly overweightIndex: u64;1204 readonly weightUsed: SpWeightsWeightV2Weight;1205 } & Struct;1206 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';1207 }12081209 /** @name PalletConfigurationEvent (92) */1210 interface PalletConfigurationEvent extends Enum {1211 readonly isNewDesiredCollators: boolean;1212 readonly asNewDesiredCollators: {1213 readonly desiredCollators: Option<u32>;1214 } & Struct;1215 readonly isNewCollatorLicenseBond: boolean;1216 readonly asNewCollatorLicenseBond: {1217 readonly bondCost: Option<u128>;1218 } & Struct;1219 readonly isNewCollatorKickThreshold: boolean;1220 readonly asNewCollatorKickThreshold: {1221 readonly lengthInBlocks: Option<u32>;1222 } & Struct;1223 readonly type: 'NewDesiredCollators' | 'NewCollatorLicenseBond' | 'NewCollatorKickThreshold';1224 }12251226 /** @name PalletCommonEvent (95) */1227 interface PalletCommonEvent extends Enum {1228 readonly isCollectionCreated: boolean;1229 readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>;1230 readonly isCollectionDestroyed: boolean;1231 readonly asCollectionDestroyed: u32;1232 readonly isItemCreated: boolean;1233 readonly asItemCreated: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1234 readonly isItemDestroyed: boolean;1235 readonly asItemDestroyed: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1236 readonly isTransfer: boolean;1237 readonly asTransfer: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1238 readonly isApproved: boolean;1239 readonly asApproved: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;1240 readonly isApprovedForAll: boolean;1241 readonly asApprovedForAll: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, bool]>;1242 readonly isCollectionPropertySet: boolean;1243 readonly asCollectionPropertySet: ITuple<[u32, Bytes]>;1244 readonly isCollectionPropertyDeleted: boolean;1245 readonly asCollectionPropertyDeleted: ITuple<[u32, Bytes]>;1246 readonly isTokenPropertySet: boolean;1247 readonly asTokenPropertySet: ITuple<[u32, u32, Bytes]>;1248 readonly isTokenPropertyDeleted: boolean;1249 readonly asTokenPropertyDeleted: ITuple<[u32, u32, Bytes]>;1250 readonly isPropertyPermissionSet: boolean;1251 readonly asPropertyPermissionSet: ITuple<[u32, Bytes]>;1252 readonly isAllowListAddressAdded: boolean;1253 readonly asAllowListAddressAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1254 readonly isAllowListAddressRemoved: boolean;1255 readonly asAllowListAddressRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1256 readonly isCollectionAdminAdded: boolean;1257 readonly asCollectionAdminAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1258 readonly isCollectionAdminRemoved: boolean;1259 readonly asCollectionAdminRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1260 readonly isCollectionLimitSet: boolean;1261 readonly asCollectionLimitSet: u32;1262 readonly isCollectionOwnerChanged: boolean;1263 readonly asCollectionOwnerChanged: ITuple<[u32, AccountId32]>;1264 readonly isCollectionPermissionSet: boolean;1265 readonly asCollectionPermissionSet: u32;1266 readonly isCollectionSponsorSet: boolean;1267 readonly asCollectionSponsorSet: ITuple<[u32, AccountId32]>;1268 readonly isSponsorshipConfirmed: boolean;1269 readonly asSponsorshipConfirmed: ITuple<[u32, AccountId32]>;1270 readonly isCollectionSponsorRemoved: boolean;1271 readonly asCollectionSponsorRemoved: u32;1272 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'ApprovedForAll' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet' | 'AllowListAddressAdded' | 'AllowListAddressRemoved' | 'CollectionAdminAdded' | 'CollectionAdminRemoved' | 'CollectionLimitSet' | 'CollectionOwnerChanged' | 'CollectionPermissionSet' | 'CollectionSponsorSet' | 'SponsorshipConfirmed' | 'CollectionSponsorRemoved';1273 }12741275 /** @name PalletEvmAccountBasicCrossAccountIdRepr (98) */1276 interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {1277 readonly isSubstrate: boolean;1278 readonly asSubstrate: AccountId32;1279 readonly isEthereum: boolean;1280 readonly asEthereum: H160;1281 readonly type: 'Substrate' | 'Ethereum';1282 }12831284 /** @name PalletStructureEvent (102) */1285 interface PalletStructureEvent extends Enum {1286 readonly isExecuted: boolean;1287 readonly asExecuted: Result<Null, SpRuntimeDispatchError>;1288 readonly type: 'Executed';1289 }12901291 /** @name PalletRmrkCoreEvent (103) */1292 interface PalletRmrkCoreEvent extends Enum {1293 readonly isCollectionCreated: boolean;1294 readonly asCollectionCreated: {1295 readonly issuer: AccountId32;1296 readonly collectionId: u32;1297 } & Struct;1298 readonly isCollectionDestroyed: boolean;1299 readonly asCollectionDestroyed: {1300 readonly issuer: AccountId32;1301 readonly collectionId: u32;1302 } & Struct;1303 readonly isIssuerChanged: boolean;1304 readonly asIssuerChanged: {1305 readonly oldIssuer: AccountId32;1306 readonly newIssuer: AccountId32;1307 readonly collectionId: u32;1308 } & Struct;1309 readonly isCollectionLocked: boolean;1310 readonly asCollectionLocked: {1311 readonly issuer: AccountId32;1312 readonly collectionId: u32;1313 } & Struct;1314 readonly isNftMinted: boolean;1315 readonly asNftMinted: {1316 readonly owner: AccountId32;1317 readonly collectionId: u32;1318 readonly nftId: u32;1319 } & Struct;1320 readonly isNftBurned: boolean;1321 readonly asNftBurned: {1322 readonly owner: AccountId32;1323 readonly nftId: u32;1324 } & Struct;1325 readonly isNftSent: boolean;1326 readonly asNftSent: {1327 readonly sender: AccountId32;1328 readonly recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple;1329 readonly collectionId: u32;1330 readonly nftId: u32;1331 readonly approvalRequired: bool;1332 } & Struct;1333 readonly isNftAccepted: boolean;1334 readonly asNftAccepted: {1335 readonly sender: AccountId32;1336 readonly recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple;1337 readonly collectionId: u32;1338 readonly nftId: u32;1339 } & Struct;1340 readonly isNftRejected: boolean;1341 readonly asNftRejected: {1342 readonly sender: AccountId32;1343 readonly collectionId: u32;1344 readonly nftId: u32;1345 } & Struct;1346 readonly isPropertySet: boolean;1347 readonly asPropertySet: {1348 readonly collectionId: u32;1349 readonly maybeNftId: Option<u32>;1350 readonly key: Bytes;1351 readonly value: Bytes;1352 } & Struct;1353 readonly isResourceAdded: boolean;1354 readonly asResourceAdded: {1355 readonly nftId: u32;1356 readonly resourceId: u32;1357 } & Struct;1358 readonly isResourceRemoval: boolean;1359 readonly asResourceRemoval: {1360 readonly nftId: u32;1361 readonly resourceId: u32;1362 } & Struct;1363 readonly isResourceAccepted: boolean;1364 readonly asResourceAccepted: {1365 readonly nftId: u32;1366 readonly resourceId: u32;1367 } & Struct;1368 readonly isResourceRemovalAccepted: boolean;1369 readonly asResourceRemovalAccepted: {1370 readonly nftId: u32;1371 readonly resourceId: u32;1372 } & Struct;1373 readonly isPrioritySet: boolean;1374 readonly asPrioritySet: {1375 readonly collectionId: u32;1376 readonly nftId: u32;1377 } & Struct;1378 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'IssuerChanged' | 'CollectionLocked' | 'NftMinted' | 'NftBurned' | 'NftSent' | 'NftAccepted' | 'NftRejected' | 'PropertySet' | 'ResourceAdded' | 'ResourceRemoval' | 'ResourceAccepted' | 'ResourceRemovalAccepted' | 'PrioritySet';1379 }13801381 /** @name RmrkTraitsNftAccountIdOrCollectionNftTuple (104) */1382 interface RmrkTraitsNftAccountIdOrCollectionNftTuple extends Enum {1383 readonly isAccountId: boolean;1384 readonly asAccountId: AccountId32;1385 readonly isCollectionAndNftTuple: boolean;1386 readonly asCollectionAndNftTuple: ITuple<[u32, u32]>;1387 readonly type: 'AccountId' | 'CollectionAndNftTuple';1388 }13891390 /** @name PalletRmrkEquipEvent (107) */1391 interface PalletRmrkEquipEvent extends Enum {1392 readonly isBaseCreated: boolean;1393 readonly asBaseCreated: {1394 readonly issuer: AccountId32;1395 readonly baseId: u32;1396 } & Struct;1397 readonly isEquippablesUpdated: boolean;1398 readonly asEquippablesUpdated: {1399 readonly baseId: u32;1400 readonly slotId: u32;1401 } & Struct;1402 readonly type: 'BaseCreated' | 'EquippablesUpdated';1403 }14041405 /** @name PalletAppPromotionEvent (108) */1406 interface PalletAppPromotionEvent extends Enum {1407 readonly isStakingRecalculation: boolean;1408 readonly asStakingRecalculation: ITuple<[AccountId32, u128, u128]>;1409 readonly isStake: boolean;1410 readonly asStake: ITuple<[AccountId32, u128]>;1411 readonly isUnstake: boolean;1412 readonly asUnstake: ITuple<[AccountId32, u128]>;1413 readonly isSetAdmin: boolean;1414 readonly asSetAdmin: AccountId32;1415 readonly type: 'StakingRecalculation' | 'Stake' | 'Unstake' | 'SetAdmin';1416 }14171418 /** @name PalletForeignAssetsModuleEvent (109) */1419 interface PalletForeignAssetsModuleEvent extends Enum {1420 readonly isForeignAssetRegistered: boolean;1421 readonly asForeignAssetRegistered: {1422 readonly assetId: u32;1423 readonly assetAddress: XcmV1MultiLocation;1424 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1425 } & Struct;1426 readonly isForeignAssetUpdated: boolean;1427 readonly asForeignAssetUpdated: {1428 readonly assetId: u32;1429 readonly assetAddress: XcmV1MultiLocation;1430 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1431 } & Struct;1432 readonly isAssetRegistered: boolean;1433 readonly asAssetRegistered: {1434 readonly assetId: PalletForeignAssetsAssetIds;1435 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1436 } & Struct;1437 readonly isAssetUpdated: boolean;1438 readonly asAssetUpdated: {1439 readonly assetId: PalletForeignAssetsAssetIds;1440 readonly metadata: PalletForeignAssetsModuleAssetMetadata;1441 } & Struct;1442 readonly type: 'ForeignAssetRegistered' | 'ForeignAssetUpdated' | 'AssetRegistered' | 'AssetUpdated';1443 }14441445 /** @name PalletForeignAssetsModuleAssetMetadata (110) */1446 interface PalletForeignAssetsModuleAssetMetadata extends Struct {1447 readonly name: Bytes;1448 readonly symbol: Bytes;1449 readonly decimals: u8;1450 readonly minimalBalance: u128;1451 }14521453 /** @name PalletEvmEvent (111) */1454 interface PalletEvmEvent extends Enum {1455 readonly isLog: boolean;1456 readonly asLog: {1457 readonly log: EthereumLog;1458 } & Struct;1459 readonly isCreated: boolean;1460 readonly asCreated: {1461 readonly address: H160;1462 } & Struct;1463 readonly isCreatedFailed: boolean;1464 readonly asCreatedFailed: {1465 readonly address: H160;1466 } & Struct;1467 readonly isExecuted: boolean;1468 readonly asExecuted: {1469 readonly address: H160;1470 } & Struct;1471 readonly isExecutedFailed: boolean;1472 readonly asExecutedFailed: {1473 readonly address: H160;1474 } & Struct;1475 readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed';1476 }14771478 /** @name EthereumLog (112) */1479 interface EthereumLog extends Struct {1480 readonly address: H160;1481 readonly topics: Vec<H256>;1482 readonly data: Bytes;1483 }14841485 /** @name PalletEthereumEvent (114) */1486 interface PalletEthereumEvent extends Enum {1487 readonly isExecuted: boolean;1488 readonly asExecuted: {1489 readonly from: H160;1490 readonly to: H160;1491 readonly transactionHash: H256;1492 readonly exitReason: EvmCoreErrorExitReason;1493 } & Struct;1494 readonly type: 'Executed';1495 }14961497 /** @name EvmCoreErrorExitReason (115) */1498 interface EvmCoreErrorExitReason extends Enum {1499 readonly isSucceed: boolean;1500 readonly asSucceed: EvmCoreErrorExitSucceed;1501 readonly isError: boolean;1502 readonly asError: EvmCoreErrorExitError;1503 readonly isRevert: boolean;1504 readonly asRevert: EvmCoreErrorExitRevert;1505 readonly isFatal: boolean;1506 readonly asFatal: EvmCoreErrorExitFatal;1507 readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';1508 }15091510 /** @name EvmCoreErrorExitSucceed (116) */1511 interface EvmCoreErrorExitSucceed extends Enum {1512 readonly isStopped: boolean;1513 readonly isReturned: boolean;1514 readonly isSuicided: boolean;1515 readonly type: 'Stopped' | 'Returned' | 'Suicided';1516 }15171518 /** @name EvmCoreErrorExitError (117) */1519 interface EvmCoreErrorExitError extends Enum {1520 readonly isStackUnderflow: boolean;1521 readonly isStackOverflow: boolean;1522 readonly isInvalidJump: boolean;1523 readonly isInvalidRange: boolean;1524 readonly isDesignatedInvalid: boolean;1525 readonly isCallTooDeep: boolean;1526 readonly isCreateCollision: boolean;1527 readonly isCreateContractLimit: boolean;1528 readonly isOutOfOffset: boolean;1529 readonly isOutOfGas: boolean;1530 readonly isOutOfFund: boolean;1531 readonly isPcUnderflow: boolean;1532 readonly isCreateEmpty: boolean;1533 readonly isOther: boolean;1534 readonly asOther: Text;1535 readonly isInvalidCode: boolean;1536 readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'InvalidCode';1537 }15381539 /** @name EvmCoreErrorExitRevert (120) */1540 interface EvmCoreErrorExitRevert extends Enum {1541 readonly isReverted: boolean;1542 readonly type: 'Reverted';1543 }15441545 /** @name EvmCoreErrorExitFatal (121) */1546 interface EvmCoreErrorExitFatal extends Enum {1547 readonly isNotSupported: boolean;1548 readonly isUnhandledInterrupt: boolean;1549 readonly isCallErrorAsFatal: boolean;1550 readonly asCallErrorAsFatal: EvmCoreErrorExitError;1551 readonly isOther: boolean;1552 readonly asOther: Text;1553 readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';1554 }15551556 /** @name PalletEvmContractHelpersEvent (122) */1557 interface PalletEvmContractHelpersEvent extends Enum {1558 readonly isContractSponsorSet: boolean;1559 readonly asContractSponsorSet: ITuple<[H160, AccountId32]>;1560 readonly isContractSponsorshipConfirmed: boolean;1561 readonly asContractSponsorshipConfirmed: ITuple<[H160, AccountId32]>;1562 readonly isContractSponsorRemoved: boolean;1563 readonly asContractSponsorRemoved: H160;1564 readonly type: 'ContractSponsorSet' | 'ContractSponsorshipConfirmed' | 'ContractSponsorRemoved';1565 }15661567 /** @name PalletDataManagementEvent (123) */1568 interface PalletDataManagementEvent extends Enum {1569 readonly isTestEvent: boolean;1570 readonly type: 'TestEvent';1571 }15721573 /** @name PalletMaintenanceEvent (124) */1574 interface PalletMaintenanceEvent extends Enum {1575 readonly isMaintenanceEnabled: boolean;1576 readonly isMaintenanceDisabled: boolean;1577 readonly type: 'MaintenanceEnabled' | 'MaintenanceDisabled';1578 }15791580 /** @name PalletTestUtilsEvent (125) */1581 interface PalletTestUtilsEvent extends Enum {1582 readonly isValueIsSet: boolean;1583 readonly isShouldRollback: boolean;1584 readonly isBatchCompleted: boolean;1585 readonly type: 'ValueIsSet' | 'ShouldRollback' | 'BatchCompleted';1586 }15871588 /** @name FrameSystemPhase (126) */1589 interface FrameSystemPhase extends Enum {1590 readonly isApplyExtrinsic: boolean;1591 readonly asApplyExtrinsic: u32;1592 readonly isFinalization: boolean;1593 readonly isInitialization: boolean;1594 readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';1595 }15961597 /** @name FrameSystemLastRuntimeUpgradeInfo (129) */1598 interface FrameSystemLastRuntimeUpgradeInfo extends Struct {1599 readonly specVersion: Compact<u32>;1600 readonly specName: Text;1601 }16021603 /** @name FrameSystemCall (130) */1604 interface FrameSystemCall extends Enum {1605 readonly isRemark: boolean;1606 readonly asRemark: {1607 readonly remark: Bytes;1608 } & Struct;1609 readonly isSetHeapPages: boolean;1610 readonly asSetHeapPages: {1611 readonly pages: u64;1612 } & Struct;1613 readonly isSetCode: boolean;1614 readonly asSetCode: {1615 readonly code: Bytes;1616 } & Struct;1617 readonly isSetCodeWithoutChecks: boolean;1618 readonly asSetCodeWithoutChecks: {1619 readonly code: Bytes;1620 } & Struct;1621 readonly isSetStorage: boolean;1622 readonly asSetStorage: {1623 readonly items: Vec<ITuple<[Bytes, Bytes]>>;1624 } & Struct;1625 readonly isKillStorage: boolean;1626 readonly asKillStorage: {1627 readonly keys_: Vec<Bytes>;1628 } & Struct;1629 readonly isKillPrefix: boolean;1630 readonly asKillPrefix: {1631 readonly prefix: Bytes;1632 readonly subkeys: u32;1633 } & Struct;1634 readonly isRemarkWithEvent: boolean;1635 readonly asRemarkWithEvent: {1636 readonly remark: Bytes;1637 } & Struct;1638 readonly type: 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';1639 }16401641 /** @name FrameSystemLimitsBlockWeights (134) */1642 interface FrameSystemLimitsBlockWeights extends Struct {1643 readonly baseBlock: SpWeightsWeightV2Weight;1644 readonly maxBlock: SpWeightsWeightV2Weight;1645 readonly perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass;1646 }16471648 /** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (135) */1649 interface FrameSupportDispatchPerDispatchClassWeightsPerClass extends Struct {1650 readonly normal: FrameSystemLimitsWeightsPerClass;1651 readonly operational: FrameSystemLimitsWeightsPerClass;1652 readonly mandatory: FrameSystemLimitsWeightsPerClass;1653 }16541655 /** @name FrameSystemLimitsWeightsPerClass (136) */1656 interface FrameSystemLimitsWeightsPerClass extends Struct {1657 readonly baseExtrinsic: SpWeightsWeightV2Weight;1658 readonly maxExtrinsic: Option<SpWeightsWeightV2Weight>;1659 readonly maxTotal: Option<SpWeightsWeightV2Weight>;1660 readonly reserved: Option<SpWeightsWeightV2Weight>;1661 }16621663 /** @name FrameSystemLimitsBlockLength (138) */1664 interface FrameSystemLimitsBlockLength extends Struct {1665 readonly max: FrameSupportDispatchPerDispatchClassU32;1666 }16671668 /** @name FrameSupportDispatchPerDispatchClassU32 (139) */1669 interface FrameSupportDispatchPerDispatchClassU32 extends Struct {1670 readonly normal: u32;1671 readonly operational: u32;1672 readonly mandatory: u32;1673 }16741675 /** @name SpWeightsRuntimeDbWeight (140) */1676 interface SpWeightsRuntimeDbWeight extends Struct {1677 readonly read: u64;1678 readonly write: u64;1679 }16801681 /** @name SpVersionRuntimeVersion (141) */1682 interface SpVersionRuntimeVersion extends Struct {1683 readonly specName: Text;1684 readonly implName: Text;1685 readonly authoringVersion: u32;1686 readonly specVersion: u32;1687 readonly implVersion: u32;1688 readonly apis: Vec<ITuple<[U8aFixed, u32]>>;1689 readonly transactionVersion: u32;1690 readonly stateVersion: u8;1691 }16921693 /** @name FrameSystemError (146) */1694 interface FrameSystemError extends Enum {1695 readonly isInvalidSpecName: boolean;1696 readonly isSpecVersionNeedsToIncrease: boolean;1697 readonly isFailedToExtractRuntimeVersion: boolean;1698 readonly isNonDefaultComposite: boolean;1699 readonly isNonZeroRefCount: boolean;1700 readonly isCallFiltered: boolean;1701 readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';1702 }17031704 /** @name PolkadotPrimitivesV2PersistedValidationData (147) */1705 interface PolkadotPrimitivesV2PersistedValidationData extends Struct {1706 readonly parentHead: Bytes;1707 readonly relayParentNumber: u32;1708 readonly relayParentStorageRoot: H256;1709 readonly maxPovSize: u32;1710 }17111712 /** @name PolkadotPrimitivesV2UpgradeRestriction (150) */1713 interface PolkadotPrimitivesV2UpgradeRestriction extends Enum {1714 readonly isPresent: boolean;1715 readonly type: 'Present';1716 }17171718 /** @name SpTrieStorageProof (151) */1719 interface SpTrieStorageProof extends Struct {1720 readonly trieNodes: BTreeSet<Bytes>;1721 }17221723 /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (153) */1724 interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct {1725 readonly dmqMqcHead: H256;1726 readonly relayDispatchQueueSize: ITuple<[u32, u32]>;1727 readonly ingressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;1728 readonly egressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;1729 }17301731 /** @name PolkadotPrimitivesV2AbridgedHrmpChannel (156) */1732 interface PolkadotPrimitivesV2AbridgedHrmpChannel extends Struct {1733 readonly maxCapacity: u32;1734 readonly maxTotalSize: u32;1735 readonly maxMessageSize: u32;1736 readonly msgCount: u32;1737 readonly totalSize: u32;1738 readonly mqcHead: Option<H256>;1739 }17401741 /** @name PolkadotPrimitivesV2AbridgedHostConfiguration (157) */1742 interface PolkadotPrimitivesV2AbridgedHostConfiguration extends Struct {1743 readonly maxCodeSize: u32;1744 readonly maxHeadDataSize: u32;1745 readonly maxUpwardQueueCount: u32;1746 readonly maxUpwardQueueSize: u32;1747 readonly maxUpwardMessageSize: u32;1748 readonly maxUpwardMessageNumPerCandidate: u32;1749 readonly hrmpMaxMessageNumPerCandidate: u32;1750 readonly validationUpgradeCooldown: u32;1751 readonly validationUpgradeDelay: u32;1752 }17531754 /** @name PolkadotCorePrimitivesOutboundHrmpMessage (163) */1755 interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {1756 readonly recipient: u32;1757 readonly data: Bytes;1758 }17591760 /** @name CumulusPalletParachainSystemCall (164) */1761 interface CumulusPalletParachainSystemCall extends Enum {1762 readonly isSetValidationData: boolean;1763 readonly asSetValidationData: {1764 readonly data: CumulusPrimitivesParachainInherentParachainInherentData;1765 } & Struct;1766 readonly isSudoSendUpwardMessage: boolean;1767 readonly asSudoSendUpwardMessage: {1768 readonly message: Bytes;1769 } & Struct;1770 readonly isAuthorizeUpgrade: boolean;1771 readonly asAuthorizeUpgrade: {1772 readonly codeHash: H256;1773 } & Struct;1774 readonly isEnactAuthorizedUpgrade: boolean;1775 readonly asEnactAuthorizedUpgrade: {1776 readonly code: Bytes;1777 } & Struct;1778 readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade';1779 }17801781 /** @name CumulusPrimitivesParachainInherentParachainInherentData (165) */1782 interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct {1783 readonly validationData: PolkadotPrimitivesV2PersistedValidationData;1784 readonly relayChainState: SpTrieStorageProof;1785 readonly downwardMessages: Vec<PolkadotCorePrimitivesInboundDownwardMessage>;1786 readonly horizontalMessages: BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>;1787 }17881789 /** @name PolkadotCorePrimitivesInboundDownwardMessage (167) */1790 interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {1791 readonly sentAt: u32;1792 readonly msg: Bytes;1793 }17941795 /** @name PolkadotCorePrimitivesInboundHrmpMessage (170) */1796 interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {1797 readonly sentAt: u32;1798 readonly data: Bytes;1799 }18001801 /** @name CumulusPalletParachainSystemError (173) */1802 interface CumulusPalletParachainSystemError extends Enum {1803 readonly isOverlappingUpgrades: boolean;1804 readonly isProhibitedByPolkadot: boolean;1805 readonly isTooBig: boolean;1806 readonly isValidationDataNotAvailable: boolean;1807 readonly isHostConfigurationNotAvailable: boolean;1808 readonly isNotScheduled: boolean;1809 readonly isNothingAuthorized: boolean;1810 readonly isUnauthorized: boolean;1811 readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';1812 }18131814 /** @name PalletAuthorshipUncleEntryItem (175) */1815 interface PalletAuthorshipUncleEntryItem extends Enum {1816 readonly isInclusionHeight: boolean;1817 readonly asInclusionHeight: u32;1818 readonly isUncle: boolean;1819 readonly asUncle: ITuple<[H256, Option<AccountId32>]>;1820 readonly type: 'InclusionHeight' | 'Uncle';1821 }18221823 /** @name PalletAuthorshipCall (177) */1824 interface PalletAuthorshipCall extends Enum {1825 readonly isSetUncles: boolean;1826 readonly asSetUncles: {1827 readonly newUncles: Vec<SpRuntimeHeader>;1828 } & Struct;1829 readonly type: 'SetUncles';1830 }18311832 /** @name SpRuntimeHeader (179) */1833 interface SpRuntimeHeader extends Struct {1834 readonly parentHash: H256;1835 readonly number: Compact<u32>;1836 readonly stateRoot: H256;1837 readonly extrinsicsRoot: H256;1838 readonly digest: SpRuntimeDigest;1839 }18401841 /** @name SpRuntimeBlakeTwo256 (180) */1842 type SpRuntimeBlakeTwo256 = Null;18431844 /** @name PalletAuthorshipError (181) */1845 interface PalletAuthorshipError extends Enum {1846 readonly isInvalidUncleParent: boolean;1847 readonly isUnclesAlreadySet: boolean;1848 readonly isTooManyUncles: boolean;1849 readonly isGenesisUncle: boolean;1850 readonly isTooHighUncle: boolean;1851 readonly isUncleAlreadyIncluded: boolean;1852 readonly isOldUncle: boolean;1853 readonly type: 'InvalidUncleParent' | 'UnclesAlreadySet' | 'TooManyUncles' | 'GenesisUncle' | 'TooHighUncle' | 'UncleAlreadyIncluded' | 'OldUncle';1854 }18551856 /** @name PalletCollatorSelectionCall (184) */1857 interface PalletCollatorSelectionCall extends Enum {1858 readonly isAddInvulnerable: boolean;1859 readonly asAddInvulnerable: {1860 readonly new_: AccountId32;1861 } & Struct;1862 readonly isRemoveInvulnerable: boolean;1863 readonly asRemoveInvulnerable: {1864 readonly who: AccountId32;1865 } & Struct;1866 readonly isGetLicense: boolean;1867 readonly isOnboard: boolean;1868 readonly isOffboard: boolean;1869 readonly isReleaseLicense: boolean;1870 readonly isForceReleaseLicense: boolean;1871 readonly asForceReleaseLicense: {1872 readonly who: AccountId32;1873 } & Struct;1874 readonly type: 'AddInvulnerable' | 'RemoveInvulnerable' | 'GetLicense' | 'Onboard' | 'Offboard' | 'ReleaseLicense' | 'ForceReleaseLicense';1875 }18761877 /** @name PalletCollatorSelectionError (185) */1878 interface PalletCollatorSelectionError extends Enum {1879 readonly isTooManyCandidates: boolean;1880 readonly isUnknown: boolean;1881 readonly isPermission: boolean;1882 readonly isAlreadyHoldingLicense: boolean;1883 readonly isNoLicense: boolean;1884 readonly isAlreadyCandidate: boolean;1885 readonly isNotCandidate: boolean;1886 readonly isTooManyInvulnerables: boolean;1887 readonly isTooFewInvulnerables: boolean;1888 readonly isAlreadyInvulnerable: boolean;1889 readonly isNotInvulnerable: boolean;1890 readonly isNoAssociatedValidatorId: boolean;1891 readonly isValidatorNotRegistered: boolean;1892 readonly type: 'TooManyCandidates' | 'Unknown' | 'Permission' | 'AlreadyHoldingLicense' | 'NoLicense' | 'AlreadyCandidate' | 'NotCandidate' | 'TooManyInvulnerables' | 'TooFewInvulnerables' | 'AlreadyInvulnerable' | 'NotInvulnerable' | 'NoAssociatedValidatorId' | 'ValidatorNotRegistered';1893 }18941895 /** @name OpalRuntimeRuntimeCommonSessionKeys (188) */1896 interface OpalRuntimeRuntimeCommonSessionKeys extends Struct {1897 readonly aura: SpConsensusAuraSr25519AppSr25519Public;1898 }18991900 /** @name SpConsensusAuraSr25519AppSr25519Public (189) */1901 interface SpConsensusAuraSr25519AppSr25519Public extends SpCoreSr25519Public {}19021903 /** @name SpCoreSr25519Public (190) */1904 interface SpCoreSr25519Public extends U8aFixed {}19051906 /** @name SpCoreCryptoKeyTypeId (193) */1907 interface SpCoreCryptoKeyTypeId extends U8aFixed {}19081909 /** @name PalletSessionCall (194) */1910 interface PalletSessionCall extends Enum {1911 readonly isSetKeys: boolean;1912 readonly asSetKeys: {1913 readonly keys_: OpalRuntimeRuntimeCommonSessionKeys;1914 readonly proof: Bytes;1915 } & Struct;1916 readonly isPurgeKeys: boolean;1917 readonly type: 'SetKeys' | 'PurgeKeys';1918 }19191920 /** @name PalletSessionError (195) */1921 interface PalletSessionError extends Enum {1922 readonly isInvalidProof: boolean;1923 readonly isNoAssociatedValidatorId: boolean;1924 readonly isDuplicatedKey: boolean;1925 readonly isNoKeys: boolean;1926 readonly isNoAccount: boolean;1927 readonly type: 'InvalidProof' | 'NoAssociatedValidatorId' | 'DuplicatedKey' | 'NoKeys' | 'NoAccount';1928 }19291930 /** @name PalletIdentityRegistration (196) */1931 interface PalletIdentityRegistration extends Struct {1932 readonly judgements: Vec<ITuple<[u32, PalletIdentityJudgement]>>;1933 readonly deposit: u128;1934 readonly info: PalletIdentityIdentityInfo;1935 }19361937 /** @name PalletIdentityJudgement (199) */1938 interface PalletIdentityJudgement extends Enum {1939 readonly isUnknown: boolean;1940 readonly isFeePaid: boolean;1941 readonly asFeePaid: u128;1942 readonly isReasonable: boolean;1943 readonly isKnownGood: boolean;1944 readonly isOutOfDate: boolean;1945 readonly isLowQuality: boolean;1946 readonly isErroneous: boolean;1947 readonly type: 'Unknown' | 'FeePaid' | 'Reasonable' | 'KnownGood' | 'OutOfDate' | 'LowQuality' | 'Erroneous';1948 }19491950 /** @name PalletIdentityIdentityInfo (201) */1951 interface PalletIdentityIdentityInfo extends Struct {1952 readonly additional: Vec<ITuple<[Data, Data]>>;1953 readonly display: Data;1954 readonly legal: Data;1955 readonly web: Data;1956 readonly riot: Data;1957 readonly email: Data;1958 readonly pgpFingerprint: Option<U8aFixed>;1959 readonly image: Data;1960 readonly twitter: Data;1961 }19621963 /** @name PalletIdentityRegistrarInfo (240) */1964 interface PalletIdentityRegistrarInfo extends Struct {1965 readonly account: AccountId32;1966 readonly fee: u128;1967 readonly fields: PalletIdentityBitFlags;1968 }19691970 /** @name PalletIdentityBitFlags (241) */1971 interface PalletIdentityBitFlags extends Set {1972 readonly isDisplay: boolean;1973 readonly isLegal: boolean;1974 readonly isWeb: boolean;1975 readonly isRiot: boolean;1976 readonly isEmail: boolean;1977 readonly isPgpFingerprint: boolean;1978 readonly isImage: boolean;1979 readonly isTwitter: boolean;1980 }19811982 /** @name PalletIdentityIdentityField (242) */1983 interface PalletIdentityIdentityField extends Enum {1984 readonly isDisplay: boolean;1985 readonly isLegal: boolean;1986 readonly isWeb: boolean;1987 readonly isRiot: boolean;1988 readonly isEmail: boolean;1989 readonly isPgpFingerprint: boolean;1990 readonly isImage: boolean;1991 readonly isTwitter: boolean;1992 readonly type: 'Display' | 'Legal' | 'Web' | 'Riot' | 'Email' | 'PgpFingerprint' | 'Image' | 'Twitter';1993 }19941995 /** @name PalletIdentityCall (244) */1996 interface PalletIdentityCall extends Enum {1997 readonly isAddRegistrar: boolean;1998 readonly asAddRegistrar: {1999 readonly account: MultiAddress;2000 } & Struct;2001 readonly isSetIdentity: boolean;2002 readonly asSetIdentity: {2003 readonly info: PalletIdentityIdentityInfo;2004 } & Struct;2005 readonly isSetSubs: boolean;2006 readonly asSetSubs: {2007 readonly subs: Vec<ITuple<[AccountId32, Data]>>;2008 } & Struct;2009 readonly isClearIdentity: boolean;2010 readonly isRequestJudgement: boolean;2011 readonly asRequestJudgement: {2012 readonly regIndex: Compact<u32>;2013 readonly maxFee: Compact<u128>;2014 } & Struct;2015 readonly isCancelRequest: boolean;2016 readonly asCancelRequest: {2017 readonly regIndex: u32;2018 } & Struct;2019 readonly isSetFee: boolean;2020 readonly asSetFee: {2021 readonly index: Compact<u32>;2022 readonly fee: Compact<u128>;2023 } & Struct;2024 readonly isSetAccountId: boolean;2025 readonly asSetAccountId: {2026 readonly index: Compact<u32>;2027 readonly new_: MultiAddress;2028 } & Struct;2029 readonly isSetFields: boolean;2030 readonly asSetFields: {2031 readonly index: Compact<u32>;2032 readonly fields: PalletIdentityBitFlags;2033 } & Struct;2034 readonly isProvideJudgement: boolean;2035 readonly asProvideJudgement: {2036 readonly regIndex: Compact<u32>;2037 readonly target: MultiAddress;2038 readonly judgement: PalletIdentityJudgement;2039 readonly identity: H256;2040 } & Struct;2041 readonly isKillIdentity: boolean;2042 readonly asKillIdentity: {2043 readonly target: MultiAddress;2044 } & Struct;2045 readonly isAddSub: boolean;2046 readonly asAddSub: {2047 readonly sub: MultiAddress;2048 readonly data: Data;2049 } & Struct;2050 readonly isRenameSub: boolean;2051 readonly asRenameSub: {2052 readonly sub: MultiAddress;2053 readonly data: Data;2054 } & Struct;2055 readonly isRemoveSub: boolean;2056 readonly asRemoveSub: {2057 readonly sub: MultiAddress;2058 } & Struct;2059 readonly isQuitSub: boolean;2060 readonly type: 'AddRegistrar' | 'SetIdentity' | 'SetSubs' | 'ClearIdentity' | 'RequestJudgement' | 'CancelRequest' | 'SetFee' | 'SetAccountId' | 'SetFields' | 'ProvideJudgement' | 'KillIdentity' | 'AddSub' | 'RenameSub' | 'RemoveSub' | 'QuitSub';2061 }20622063 /** @name PalletIdentityError (248) */2064 interface PalletIdentityError extends Enum {2065 readonly isTooManySubAccounts: boolean;2066 readonly isNotFound: boolean;2067 readonly isNotNamed: boolean;2068 readonly isEmptyIndex: boolean;2069 readonly isFeeChanged: boolean;2070 readonly isNoIdentity: boolean;2071 readonly isStickyJudgement: boolean;2072 readonly isJudgementGiven: boolean;2073 readonly isInvalidJudgement: boolean;2074 readonly isInvalidIndex: boolean;2075 readonly isInvalidTarget: boolean;2076 readonly isTooManyFields: boolean;2077 readonly isTooManyRegistrars: boolean;2078 readonly isAlreadyClaimed: boolean;2079 readonly isNotSub: boolean;2080 readonly isNotOwned: boolean;2081 readonly isJudgementForDifferentIdentity: boolean;2082 readonly isJudgementPaymentFailed: boolean;2083 readonly type: 'TooManySubAccounts' | 'NotFound' | 'NotNamed' | 'EmptyIndex' | 'FeeChanged' | 'NoIdentity' | 'StickyJudgement' | 'JudgementGiven' | 'InvalidJudgement' | 'InvalidIndex' | 'InvalidTarget' | 'TooManyFields' | 'TooManyRegistrars' | 'AlreadyClaimed' | 'NotSub' | 'NotOwned' | 'JudgementForDifferentIdentity' | 'JudgementPaymentFailed';2084 }20852086 /** @name PalletBalancesBalanceLock (250) */2087 interface PalletBalancesBalanceLock extends Struct {2088 readonly id: U8aFixed;2089 readonly amount: u128;2090 readonly reasons: PalletBalancesReasons;2091 }20922093 /** @name PalletBalancesReasons (251) */2094 interface PalletBalancesReasons extends Enum {2095 readonly isFee: boolean;2096 readonly isMisc: boolean;2097 readonly isAll: boolean;2098 readonly type: 'Fee' | 'Misc' | 'All';2099 }21002101 /** @name PalletBalancesReserveData (254) */2102 interface PalletBalancesReserveData extends Struct {2103 readonly id: U8aFixed;2104 readonly amount: u128;2105 }21062107 /** @name PalletBalancesCall (256) */2108 interface PalletBalancesCall extends Enum {2109 readonly isTransfer: boolean;2110 readonly asTransfer: {2111 readonly dest: MultiAddress;2112 readonly value: Compact<u128>;2113 } & Struct;2114 readonly isSetBalance: boolean;2115 readonly asSetBalance: {2116 readonly who: MultiAddress;2117 readonly newFree: Compact<u128>;2118 readonly newReserved: Compact<u128>;2119 } & Struct;2120 readonly isForceTransfer: boolean;2121 readonly asForceTransfer: {2122 readonly source: MultiAddress;2123 readonly dest: MultiAddress;2124 readonly value: Compact<u128>;2125 } & Struct;2126 readonly isTransferKeepAlive: boolean;2127 readonly asTransferKeepAlive: {2128 readonly dest: MultiAddress;2129 readonly value: Compact<u128>;2130 } & Struct;2131 readonly isTransferAll: boolean;2132 readonly asTransferAll: {2133 readonly dest: MultiAddress;2134 readonly keepAlive: bool;2135 } & Struct;2136 readonly isForceUnreserve: boolean;2137 readonly asForceUnreserve: {2138 readonly who: MultiAddress;2139 readonly amount: u128;2140 } & Struct;2141 readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';2142 }21432144 /** @name PalletBalancesError (257) */2145 interface PalletBalancesError extends Enum {2146 readonly isVestingBalance: boolean;2147 readonly isLiquidityRestrictions: boolean;2148 readonly isInsufficientBalance: boolean;2149 readonly isExistentialDeposit: boolean;2150 readonly isKeepAlive: boolean;2151 readonly isExistingVestingSchedule: boolean;2152 readonly isDeadAccount: boolean;2153 readonly isTooManyReserves: boolean;2154 readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';2155 }21562157 /** @name PalletTimestampCall (259) */2158 interface PalletTimestampCall extends Enum {2159 readonly isSet: boolean;2160 readonly asSet: {2161 readonly now: Compact<u64>;2162 } & Struct;2163 readonly type: 'Set';2164 }21652166 /** @name PalletTransactionPaymentReleases (261) */2167 interface PalletTransactionPaymentReleases extends Enum {2168 readonly isV1Ancient: boolean;2169 readonly isV2: boolean;2170 readonly type: 'V1Ancient' | 'V2';2171 }21722173 /** @name PalletTreasuryProposal (262) */2174 interface PalletTreasuryProposal extends Struct {2175 readonly proposer: AccountId32;2176 readonly value: u128;2177 readonly beneficiary: AccountId32;2178 readonly bond: u128;2179 }21802181 /** @name PalletTreasuryCall (264) */2182 interface PalletTreasuryCall extends Enum {2183 readonly isProposeSpend: boolean;2184 readonly asProposeSpend: {2185 readonly value: Compact<u128>;2186 readonly beneficiary: MultiAddress;2187 } & Struct;2188 readonly isRejectProposal: boolean;2189 readonly asRejectProposal: {2190 readonly proposalId: Compact<u32>;2191 } & Struct;2192 readonly isApproveProposal: boolean;2193 readonly asApproveProposal: {2194 readonly proposalId: Compact<u32>;2195 } & Struct;2196 readonly isSpend: boolean;2197 readonly asSpend: {2198 readonly amount: Compact<u128>;2199 readonly beneficiary: MultiAddress;2200 } & Struct;2201 readonly isRemoveApproval: boolean;2202 readonly asRemoveApproval: {2203 readonly proposalId: Compact<u32>;2204 } & Struct;2205 readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'Spend' | 'RemoveApproval';2206 }22072208 /** @name FrameSupportPalletId (266) */2209 interface FrameSupportPalletId extends U8aFixed {}22102211 /** @name PalletTreasuryError (267) */2212 interface PalletTreasuryError extends Enum {2213 readonly isInsufficientProposersBalance: boolean;2214 readonly isInvalidIndex: boolean;2215 readonly isTooManyApprovals: boolean;2216 readonly isInsufficientPermission: boolean;2217 readonly isProposalNotApproved: boolean;2218 readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'InsufficientPermission' | 'ProposalNotApproved';2219 }22202221 /** @name PalletSudoCall (268) */2222 interface PalletSudoCall extends Enum {2223 readonly isSudo: boolean;2224 readonly asSudo: {2225 readonly call: Call;2226 } & Struct;2227 readonly isSudoUncheckedWeight: boolean;2228 readonly asSudoUncheckedWeight: {2229 readonly call: Call;2230 readonly weight: SpWeightsWeightV2Weight;2231 } & Struct;2232 readonly isSetKey: boolean;2233 readonly asSetKey: {2234 readonly new_: MultiAddress;2235 } & Struct;2236 readonly isSudoAs: boolean;2237 readonly asSudoAs: {2238 readonly who: MultiAddress;2239 readonly call: Call;2240 } & Struct;2241 readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';2242 }22432244 /** @name OrmlVestingModuleCall (270) */2245 interface OrmlVestingModuleCall extends Enum {2246 readonly isClaim: boolean;2247 readonly isVestedTransfer: boolean;2248 readonly asVestedTransfer: {2249 readonly dest: MultiAddress;2250 readonly schedule: OrmlVestingVestingSchedule;2251 } & Struct;2252 readonly isUpdateVestingSchedules: boolean;2253 readonly asUpdateVestingSchedules: {2254 readonly who: MultiAddress;2255 readonly vestingSchedules: Vec<OrmlVestingVestingSchedule>;2256 } & Struct;2257 readonly isClaimFor: boolean;2258 readonly asClaimFor: {2259 readonly dest: MultiAddress;2260 } & Struct;2261 readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';2262 }22632264 /** @name OrmlXtokensModuleCall (272) */2265 interface OrmlXtokensModuleCall extends Enum {2266 readonly isTransfer: boolean;2267 readonly asTransfer: {2268 readonly currencyId: PalletForeignAssetsAssetIds;2269 readonly amount: u128;2270 readonly dest: XcmVersionedMultiLocation;2271 readonly destWeightLimit: XcmV2WeightLimit;2272 } & Struct;2273 readonly isTransferMultiasset: boolean;2274 readonly asTransferMultiasset: {2275 readonly asset: XcmVersionedMultiAsset;2276 readonly dest: XcmVersionedMultiLocation;2277 readonly destWeightLimit: XcmV2WeightLimit;2278 } & Struct;2279 readonly isTransferWithFee: boolean;2280 readonly asTransferWithFee: {2281 readonly currencyId: PalletForeignAssetsAssetIds;2282 readonly amount: u128;2283 readonly fee: u128;2284 readonly dest: XcmVersionedMultiLocation;2285 readonly destWeightLimit: XcmV2WeightLimit;2286 } & Struct;2287 readonly isTransferMultiassetWithFee: boolean;2288 readonly asTransferMultiassetWithFee: {2289 readonly asset: XcmVersionedMultiAsset;2290 readonly fee: XcmVersionedMultiAsset;2291 readonly dest: XcmVersionedMultiLocation;2292 readonly destWeightLimit: XcmV2WeightLimit;2293 } & Struct;2294 readonly isTransferMulticurrencies: boolean;2295 readonly asTransferMulticurrencies: {2296 readonly currencies: Vec<ITuple<[PalletForeignAssetsAssetIds, u128]>>;2297 readonly feeItem: u32;2298 readonly dest: XcmVersionedMultiLocation;2299 readonly destWeightLimit: XcmV2WeightLimit;2300 } & Struct;2301 readonly isTransferMultiassets: boolean;2302 readonly asTransferMultiassets: {2303 readonly assets: XcmVersionedMultiAssets;2304 readonly feeItem: u32;2305 readonly dest: XcmVersionedMultiLocation;2306 readonly destWeightLimit: XcmV2WeightLimit;2307 } & Struct;2308 readonly type: 'Transfer' | 'TransferMultiasset' | 'TransferWithFee' | 'TransferMultiassetWithFee' | 'TransferMulticurrencies' | 'TransferMultiassets';2309 }23102311 /** @name XcmVersionedMultiAsset (273) */2312 interface XcmVersionedMultiAsset extends Enum {2313 readonly isV0: boolean;2314 readonly asV0: XcmV0MultiAsset;2315 readonly isV1: boolean;2316 readonly asV1: XcmV1MultiAsset;2317 readonly type: 'V0' | 'V1';2318 }23192320 /** @name OrmlTokensModuleCall (276) */2321 interface OrmlTokensModuleCall extends Enum {2322 readonly isTransfer: boolean;2323 readonly asTransfer: {2324 readonly dest: MultiAddress;2325 readonly currencyId: PalletForeignAssetsAssetIds;2326 readonly amount: Compact<u128>;2327 } & Struct;2328 readonly isTransferAll: boolean;2329 readonly asTransferAll: {2330 readonly dest: MultiAddress;2331 readonly currencyId: PalletForeignAssetsAssetIds;2332 readonly keepAlive: bool;2333 } & Struct;2334 readonly isTransferKeepAlive: boolean;2335 readonly asTransferKeepAlive: {2336 readonly dest: MultiAddress;2337 readonly currencyId: PalletForeignAssetsAssetIds;2338 readonly amount: Compact<u128>;2339 } & Struct;2340 readonly isForceTransfer: boolean;2341 readonly asForceTransfer: {2342 readonly source: MultiAddress;2343 readonly dest: MultiAddress;2344 readonly currencyId: PalletForeignAssetsAssetIds;2345 readonly amount: Compact<u128>;2346 } & Struct;2347 readonly isSetBalance: boolean;2348 readonly asSetBalance: {2349 readonly who: MultiAddress;2350 readonly currencyId: PalletForeignAssetsAssetIds;2351 readonly newFree: Compact<u128>;2352 readonly newReserved: Compact<u128>;2353 } & Struct;2354 readonly type: 'Transfer' | 'TransferAll' | 'TransferKeepAlive' | 'ForceTransfer' | 'SetBalance';2355 }23562357 /** @name CumulusPalletXcmpQueueCall (277) */2358 interface CumulusPalletXcmpQueueCall extends Enum {2359 readonly isServiceOverweight: boolean;2360 readonly asServiceOverweight: {2361 readonly index: u64;2362 readonly weightLimit: u64;2363 } & Struct;2364 readonly isSuspendXcmExecution: boolean;2365 readonly isResumeXcmExecution: boolean;2366 readonly isUpdateSuspendThreshold: boolean;2367 readonly asUpdateSuspendThreshold: {2368 readonly new_: u32;2369 } & Struct;2370 readonly isUpdateDropThreshold: boolean;2371 readonly asUpdateDropThreshold: {2372 readonly new_: u32;2373 } & Struct;2374 readonly isUpdateResumeThreshold: boolean;2375 readonly asUpdateResumeThreshold: {2376 readonly new_: u32;2377 } & Struct;2378 readonly isUpdateThresholdWeight: boolean;2379 readonly asUpdateThresholdWeight: {2380 readonly new_: u64;2381 } & Struct;2382 readonly isUpdateWeightRestrictDecay: boolean;2383 readonly asUpdateWeightRestrictDecay: {2384 readonly new_: u64;2385 } & Struct;2386 readonly isUpdateXcmpMaxIndividualWeight: boolean;2387 readonly asUpdateXcmpMaxIndividualWeight: {2388 readonly new_: u64;2389 } & Struct;2390 readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';2391 }23922393 /** @name PalletXcmCall (278) */2394 interface PalletXcmCall extends Enum {2395 readonly isSend: boolean;2396 readonly asSend: {2397 readonly dest: XcmVersionedMultiLocation;2398 readonly message: XcmVersionedXcm;2399 } & Struct;2400 readonly isTeleportAssets: boolean;2401 readonly asTeleportAssets: {2402 readonly dest: XcmVersionedMultiLocation;2403 readonly beneficiary: XcmVersionedMultiLocation;2404 readonly assets: XcmVersionedMultiAssets;2405 readonly feeAssetItem: u32;2406 } & Struct;2407 readonly isReserveTransferAssets: boolean;2408 readonly asReserveTransferAssets: {2409 readonly dest: XcmVersionedMultiLocation;2410 readonly beneficiary: XcmVersionedMultiLocation;2411 readonly assets: XcmVersionedMultiAssets;2412 readonly feeAssetItem: u32;2413 } & Struct;2414 readonly isExecute: boolean;2415 readonly asExecute: {2416 readonly message: XcmVersionedXcm;2417 readonly maxWeight: u64;2418 } & Struct;2419 readonly isForceXcmVersion: boolean;2420 readonly asForceXcmVersion: {2421 readonly location: XcmV1MultiLocation;2422 readonly xcmVersion: u32;2423 } & Struct;2424 readonly isForceDefaultXcmVersion: boolean;2425 readonly asForceDefaultXcmVersion: {2426 readonly maybeXcmVersion: Option<u32>;2427 } & Struct;2428 readonly isForceSubscribeVersionNotify: boolean;2429 readonly asForceSubscribeVersionNotify: {2430 readonly location: XcmVersionedMultiLocation;2431 } & Struct;2432 readonly isForceUnsubscribeVersionNotify: boolean;2433 readonly asForceUnsubscribeVersionNotify: {2434 readonly location: XcmVersionedMultiLocation;2435 } & Struct;2436 readonly isLimitedReserveTransferAssets: boolean;2437 readonly asLimitedReserveTransferAssets: {2438 readonly dest: XcmVersionedMultiLocation;2439 readonly beneficiary: XcmVersionedMultiLocation;2440 readonly assets: XcmVersionedMultiAssets;2441 readonly feeAssetItem: u32;2442 readonly weightLimit: XcmV2WeightLimit;2443 } & Struct;2444 readonly isLimitedTeleportAssets: boolean;2445 readonly asLimitedTeleportAssets: {2446 readonly dest: XcmVersionedMultiLocation;2447 readonly beneficiary: XcmVersionedMultiLocation;2448 readonly assets: XcmVersionedMultiAssets;2449 readonly feeAssetItem: u32;2450 readonly weightLimit: XcmV2WeightLimit;2451 } & Struct;2452 readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';2453 }24542455 /** @name XcmVersionedXcm (279) */2456 interface XcmVersionedXcm extends Enum {2457 readonly isV0: boolean;2458 readonly asV0: XcmV0Xcm;2459 readonly isV1: boolean;2460 readonly asV1: XcmV1Xcm;2461 readonly isV2: boolean;2462 readonly asV2: XcmV2Xcm;2463 readonly type: 'V0' | 'V1' | 'V2';2464 }24652466 /** @name XcmV0Xcm (280) */2467 interface XcmV0Xcm extends Enum {2468 readonly isWithdrawAsset: boolean;2469 readonly asWithdrawAsset: {2470 readonly assets: Vec<XcmV0MultiAsset>;2471 readonly effects: Vec<XcmV0Order>;2472 } & Struct;2473 readonly isReserveAssetDeposit: boolean;2474 readonly asReserveAssetDeposit: {2475 readonly assets: Vec<XcmV0MultiAsset>;2476 readonly effects: Vec<XcmV0Order>;2477 } & Struct;2478 readonly isTeleportAsset: boolean;2479 readonly asTeleportAsset: {2480 readonly assets: Vec<XcmV0MultiAsset>;2481 readonly effects: Vec<XcmV0Order>;2482 } & Struct;2483 readonly isQueryResponse: boolean;2484 readonly asQueryResponse: {2485 readonly queryId: Compact<u64>;2486 readonly response: XcmV0Response;2487 } & Struct;2488 readonly isTransferAsset: boolean;2489 readonly asTransferAsset: {2490 readonly assets: Vec<XcmV0MultiAsset>;2491 readonly dest: XcmV0MultiLocation;2492 } & Struct;2493 readonly isTransferReserveAsset: boolean;2494 readonly asTransferReserveAsset: {2495 readonly assets: Vec<XcmV0MultiAsset>;2496 readonly dest: XcmV0MultiLocation;2497 readonly effects: Vec<XcmV0Order>;2498 } & Struct;2499 readonly isTransact: boolean;2500 readonly asTransact: {2501 readonly originType: XcmV0OriginKind;2502 readonly requireWeightAtMost: u64;2503 readonly call: XcmDoubleEncoded;2504 } & Struct;2505 readonly isHrmpNewChannelOpenRequest: boolean;2506 readonly asHrmpNewChannelOpenRequest: {2507 readonly sender: Compact<u32>;2508 readonly maxMessageSize: Compact<u32>;2509 readonly maxCapacity: Compact<u32>;2510 } & Struct;2511 readonly isHrmpChannelAccepted: boolean;2512 readonly asHrmpChannelAccepted: {2513 readonly recipient: Compact<u32>;2514 } & Struct;2515 readonly isHrmpChannelClosing: boolean;2516 readonly asHrmpChannelClosing: {2517 readonly initiator: Compact<u32>;2518 readonly sender: Compact<u32>;2519 readonly recipient: Compact<u32>;2520 } & Struct;2521 readonly isRelayedFrom: boolean;2522 readonly asRelayedFrom: {2523 readonly who: XcmV0MultiLocation;2524 readonly message: XcmV0Xcm;2525 } & Struct;2526 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';2527 }25282529 /** @name XcmV0Order (282) */2530 interface XcmV0Order extends Enum {2531 readonly isNull: boolean;2532 readonly isDepositAsset: boolean;2533 readonly asDepositAsset: {2534 readonly assets: Vec<XcmV0MultiAsset>;2535 readonly dest: XcmV0MultiLocation;2536 } & Struct;2537 readonly isDepositReserveAsset: boolean;2538 readonly asDepositReserveAsset: {2539 readonly assets: Vec<XcmV0MultiAsset>;2540 readonly dest: XcmV0MultiLocation;2541 readonly effects: Vec<XcmV0Order>;2542 } & Struct;2543 readonly isExchangeAsset: boolean;2544 readonly asExchangeAsset: {2545 readonly give: Vec<XcmV0MultiAsset>;2546 readonly receive: Vec<XcmV0MultiAsset>;2547 } & Struct;2548 readonly isInitiateReserveWithdraw: boolean;2549 readonly asInitiateReserveWithdraw: {2550 readonly assets: Vec<XcmV0MultiAsset>;2551 readonly reserve: XcmV0MultiLocation;2552 readonly effects: Vec<XcmV0Order>;2553 } & Struct;2554 readonly isInitiateTeleport: boolean;2555 readonly asInitiateTeleport: {2556 readonly assets: Vec<XcmV0MultiAsset>;2557 readonly dest: XcmV0MultiLocation;2558 readonly effects: Vec<XcmV0Order>;2559 } & Struct;2560 readonly isQueryHolding: boolean;2561 readonly asQueryHolding: {2562 readonly queryId: Compact<u64>;2563 readonly dest: XcmV0MultiLocation;2564 readonly assets: Vec<XcmV0MultiAsset>;2565 } & Struct;2566 readonly isBuyExecution: boolean;2567 readonly asBuyExecution: {2568 readonly fees: XcmV0MultiAsset;2569 readonly weight: u64;2570 readonly debt: u64;2571 readonly haltOnError: bool;2572 readonly xcm: Vec<XcmV0Xcm>;2573 } & Struct;2574 readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';2575 }25762577 /** @name XcmV0Response (284) */2578 interface XcmV0Response extends Enum {2579 readonly isAssets: boolean;2580 readonly asAssets: Vec<XcmV0MultiAsset>;2581 readonly type: 'Assets';2582 }25832584 /** @name XcmV1Xcm (285) */2585 interface XcmV1Xcm extends Enum {2586 readonly isWithdrawAsset: boolean;2587 readonly asWithdrawAsset: {2588 readonly assets: XcmV1MultiassetMultiAssets;2589 readonly effects: Vec<XcmV1Order>;2590 } & Struct;2591 readonly isReserveAssetDeposited: boolean;2592 readonly asReserveAssetDeposited: {2593 readonly assets: XcmV1MultiassetMultiAssets;2594 readonly effects: Vec<XcmV1Order>;2595 } & Struct;2596 readonly isReceiveTeleportedAsset: boolean;2597 readonly asReceiveTeleportedAsset: {2598 readonly assets: XcmV1MultiassetMultiAssets;2599 readonly effects: Vec<XcmV1Order>;2600 } & Struct;2601 readonly isQueryResponse: boolean;2602 readonly asQueryResponse: {2603 readonly queryId: Compact<u64>;2604 readonly response: XcmV1Response;2605 } & Struct;2606 readonly isTransferAsset: boolean;2607 readonly asTransferAsset: {2608 readonly assets: XcmV1MultiassetMultiAssets;2609 readonly beneficiary: XcmV1MultiLocation;2610 } & Struct;2611 readonly isTransferReserveAsset: boolean;2612 readonly asTransferReserveAsset: {2613 readonly assets: XcmV1MultiassetMultiAssets;2614 readonly dest: XcmV1MultiLocation;2615 readonly effects: Vec<XcmV1Order>;2616 } & Struct;2617 readonly isTransact: boolean;2618 readonly asTransact: {2619 readonly originType: XcmV0OriginKind;2620 readonly requireWeightAtMost: u64;2621 readonly call: XcmDoubleEncoded;2622 } & Struct;2623 readonly isHrmpNewChannelOpenRequest: boolean;2624 readonly asHrmpNewChannelOpenRequest: {2625 readonly sender: Compact<u32>;2626 readonly maxMessageSize: Compact<u32>;2627 readonly maxCapacity: Compact<u32>;2628 } & Struct;2629 readonly isHrmpChannelAccepted: boolean;2630 readonly asHrmpChannelAccepted: {2631 readonly recipient: Compact<u32>;2632 } & Struct;2633 readonly isHrmpChannelClosing: boolean;2634 readonly asHrmpChannelClosing: {2635 readonly initiator: Compact<u32>;2636 readonly sender: Compact<u32>;2637 readonly recipient: Compact<u32>;2638 } & Struct;2639 readonly isRelayedFrom: boolean;2640 readonly asRelayedFrom: {2641 readonly who: XcmV1MultilocationJunctions;2642 readonly message: XcmV1Xcm;2643 } & Struct;2644 readonly isSubscribeVersion: boolean;2645 readonly asSubscribeVersion: {2646 readonly queryId: Compact<u64>;2647 readonly maxResponseWeight: Compact<u64>;2648 } & Struct;2649 readonly isUnsubscribeVersion: boolean;2650 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';2651 }26522653 /** @name XcmV1Order (287) */2654 interface XcmV1Order extends Enum {2655 readonly isNoop: boolean;2656 readonly isDepositAsset: boolean;2657 readonly asDepositAsset: {2658 readonly assets: XcmV1MultiassetMultiAssetFilter;2659 readonly maxAssets: u32;2660 readonly beneficiary: XcmV1MultiLocation;2661 } & Struct;2662 readonly isDepositReserveAsset: boolean;2663 readonly asDepositReserveAsset: {2664 readonly assets: XcmV1MultiassetMultiAssetFilter;2665 readonly maxAssets: u32;2666 readonly dest: XcmV1MultiLocation;2667 readonly effects: Vec<XcmV1Order>;2668 } & Struct;2669 readonly isExchangeAsset: boolean;2670 readonly asExchangeAsset: {2671 readonly give: XcmV1MultiassetMultiAssetFilter;2672 readonly receive: XcmV1MultiassetMultiAssets;2673 } & Struct;2674 readonly isInitiateReserveWithdraw: boolean;2675 readonly asInitiateReserveWithdraw: {2676 readonly assets: XcmV1MultiassetMultiAssetFilter;2677 readonly reserve: XcmV1MultiLocation;2678 readonly effects: Vec<XcmV1Order>;2679 } & Struct;2680 readonly isInitiateTeleport: boolean;2681 readonly asInitiateTeleport: {2682 readonly assets: XcmV1MultiassetMultiAssetFilter;2683 readonly dest: XcmV1MultiLocation;2684 readonly effects: Vec<XcmV1Order>;2685 } & Struct;2686 readonly isQueryHolding: boolean;2687 readonly asQueryHolding: {2688 readonly queryId: Compact<u64>;2689 readonly dest: XcmV1MultiLocation;2690 readonly assets: XcmV1MultiassetMultiAssetFilter;2691 } & Struct;2692 readonly isBuyExecution: boolean;2693 readonly asBuyExecution: {2694 readonly fees: XcmV1MultiAsset;2695 readonly weight: u64;2696 readonly debt: u64;2697 readonly haltOnError: bool;2698 readonly instructions: Vec<XcmV1Xcm>;2699 } & Struct;2700 readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';2701 }27022703 /** @name XcmV1Response (289) */2704 interface XcmV1Response extends Enum {2705 readonly isAssets: boolean;2706 readonly asAssets: XcmV1MultiassetMultiAssets;2707 readonly isVersion: boolean;2708 readonly asVersion: u32;2709 readonly type: 'Assets' | 'Version';2710 }27112712 /** @name CumulusPalletXcmCall (303) */2713 type CumulusPalletXcmCall = Null;27142715 /** @name CumulusPalletDmpQueueCall (304) */2716 interface CumulusPalletDmpQueueCall extends Enum {2717 readonly isServiceOverweight: boolean;2718 readonly asServiceOverweight: {2719 readonly index: u64;2720 readonly weightLimit: u64;2721 } & Struct;2722 readonly type: 'ServiceOverweight';2723 }27242725 /** @name PalletInflationCall (305) */2726 interface PalletInflationCall extends Enum {2727 readonly isStartInflation: boolean;2728 readonly asStartInflation: {2729 readonly inflationStartRelayBlock: u32;2730 } & Struct;2731 readonly type: 'StartInflation';2732 }27332734 /** @name PalletUniqueCall (306) */2735 interface PalletUniqueCall extends Enum {2736 readonly isCreateCollection: boolean;2737 readonly asCreateCollection: {2738 readonly collectionName: Vec<u16>;2739 readonly collectionDescription: Vec<u16>;2740 readonly tokenPrefix: Bytes;2741 readonly mode: UpDataStructsCollectionMode;2742 } & Struct;2743 readonly isCreateCollectionEx: boolean;2744 readonly asCreateCollectionEx: {2745 readonly data: UpDataStructsCreateCollectionData;2746 } & Struct;2747 readonly isDestroyCollection: boolean;2748 readonly asDestroyCollection: {2749 readonly collectionId: u32;2750 } & Struct;2751 readonly isAddToAllowList: boolean;2752 readonly asAddToAllowList: {2753 readonly collectionId: u32;2754 readonly address: PalletEvmAccountBasicCrossAccountIdRepr;2755 } & Struct;2756 readonly isRemoveFromAllowList: boolean;2757 readonly asRemoveFromAllowList: {2758 readonly collectionId: u32;2759 readonly address: PalletEvmAccountBasicCrossAccountIdRepr;2760 } & Struct;2761 readonly isChangeCollectionOwner: boolean;2762 readonly asChangeCollectionOwner: {2763 readonly collectionId: u32;2764 readonly newOwner: AccountId32;2765 } & Struct;2766 readonly isAddCollectionAdmin: boolean;2767 readonly asAddCollectionAdmin: {2768 readonly collectionId: u32;2769 readonly newAdminId: PalletEvmAccountBasicCrossAccountIdRepr;2770 } & Struct;2771 readonly isRemoveCollectionAdmin: boolean;2772 readonly asRemoveCollectionAdmin: {2773 readonly collectionId: u32;2774 readonly accountId: PalletEvmAccountBasicCrossAccountIdRepr;2775 } & Struct;2776 readonly isSetCollectionSponsor: boolean;2777 readonly asSetCollectionSponsor: {2778 readonly collectionId: u32;2779 readonly newSponsor: AccountId32;2780 } & Struct;2781 readonly isConfirmSponsorship: boolean;2782 readonly asConfirmSponsorship: {2783 readonly collectionId: u32;2784 } & Struct;2785 readonly isRemoveCollectionSponsor: boolean;2786 readonly asRemoveCollectionSponsor: {2787 readonly collectionId: u32;2788 } & Struct;2789 readonly isCreateItem: boolean;2790 readonly asCreateItem: {2791 readonly collectionId: u32;2792 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;2793 readonly data: UpDataStructsCreateItemData;2794 } & Struct;2795 readonly isCreateMultipleItems: boolean;2796 readonly asCreateMultipleItems: {2797 readonly collectionId: u32;2798 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;2799 readonly itemsData: Vec<UpDataStructsCreateItemData>;2800 } & Struct;2801 readonly isSetCollectionProperties: boolean;2802 readonly asSetCollectionProperties: {2803 readonly collectionId: u32;2804 readonly properties: Vec<UpDataStructsProperty>;2805 } & Struct;2806 readonly isDeleteCollectionProperties: boolean;2807 readonly asDeleteCollectionProperties: {2808 readonly collectionId: u32;2809 readonly propertyKeys: Vec<Bytes>;2810 } & Struct;2811 readonly isSetTokenProperties: boolean;2812 readonly asSetTokenProperties: {2813 readonly collectionId: u32;2814 readonly tokenId: u32;2815 readonly properties: Vec<UpDataStructsProperty>;2816 } & Struct;2817 readonly isDeleteTokenProperties: boolean;2818 readonly asDeleteTokenProperties: {2819 readonly collectionId: u32;2820 readonly tokenId: u32;2821 readonly propertyKeys: Vec<Bytes>;2822 } & Struct;2823 readonly isSetTokenPropertyPermissions: boolean;2824 readonly asSetTokenPropertyPermissions: {2825 readonly collectionId: u32;2826 readonly propertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;2827 } & Struct;2828 readonly isCreateMultipleItemsEx: boolean;2829 readonly asCreateMultipleItemsEx: {2830 readonly collectionId: u32;2831 readonly data: UpDataStructsCreateItemExData;2832 } & Struct;2833 readonly isSetTransfersEnabledFlag: boolean;2834 readonly asSetTransfersEnabledFlag: {2835 readonly collectionId: u32;2836 readonly value: bool;2837 } & Struct;2838 readonly isBurnItem: boolean;2839 readonly asBurnItem: {2840 readonly collectionId: u32;2841 readonly itemId: u32;2842 readonly value: u128;2843 } & Struct;2844 readonly isBurnFrom: boolean;2845 readonly asBurnFrom: {2846 readonly collectionId: u32;2847 readonly from: PalletEvmAccountBasicCrossAccountIdRepr;2848 readonly itemId: u32;2849 readonly value: u128;2850 } & Struct;2851 readonly isTransfer: boolean;2852 readonly asTransfer: {2853 readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;2854 readonly collectionId: u32;2855 readonly itemId: u32;2856 readonly value: u128;2857 } & Struct;2858 readonly isApprove: boolean;2859 readonly asApprove: {2860 readonly spender: PalletEvmAccountBasicCrossAccountIdRepr;2861 readonly collectionId: u32;2862 readonly itemId: u32;2863 readonly amount: u128;2864 } & Struct;2865 readonly isTransferFrom: boolean;2866 readonly asTransferFrom: {2867 readonly from: PalletEvmAccountBasicCrossAccountIdRepr;2868 readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;2869 readonly collectionId: u32;2870 readonly itemId: u32;2871 readonly value: u128;2872 } & Struct;2873 readonly isSetCollectionLimits: boolean;2874 readonly asSetCollectionLimits: {2875 readonly collectionId: u32;2876 readonly newLimit: UpDataStructsCollectionLimits;2877 } & Struct;2878 readonly isSetCollectionPermissions: boolean;2879 readonly asSetCollectionPermissions: {2880 readonly collectionId: u32;2881 readonly newPermission: UpDataStructsCollectionPermissions;2882 } & Struct;2883 readonly isRepartition: boolean;2884 readonly asRepartition: {2885 readonly collectionId: u32;2886 readonly tokenId: u32;2887 readonly amount: u128;2888 } & Struct;2889 readonly isSetAllowanceForAll: boolean;2890 readonly asSetAllowanceForAll: {2891 readonly collectionId: u32;2892 readonly operator: PalletEvmAccountBasicCrossAccountIdRepr;2893 readonly approve: bool;2894 } & Struct;2895 readonly isForceRepairCollection: boolean;2896 readonly asForceRepairCollection: {2897 readonly collectionId: u32;2898 } & Struct;2899 readonly isForceRepairItem: boolean;2900 readonly asForceRepairItem: {2901 readonly collectionId: u32;2902 readonly itemId: u32;2903 } & Struct;2904 readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition' | 'SetAllowanceForAll' | 'ForceRepairCollection' | 'ForceRepairItem';2905 }29062907 /** @name UpDataStructsCollectionMode (311) */2908 interface UpDataStructsCollectionMode extends Enum {2909 readonly isNft: boolean;2910 readonly isFungible: boolean;2911 readonly asFungible: u8;2912 readonly isReFungible: boolean;2913 readonly type: 'Nft' | 'Fungible' | 'ReFungible';2914 }29152916 /** @name UpDataStructsCreateCollectionData (312) */2917 interface UpDataStructsCreateCollectionData extends Struct {2918 readonly mode: UpDataStructsCollectionMode;2919 readonly access: Option<UpDataStructsAccessMode>;2920 readonly name: Vec<u16>;2921 readonly description: Vec<u16>;2922 readonly tokenPrefix: Bytes;2923 readonly pendingSponsor: Option<AccountId32>;2924 readonly limits: Option<UpDataStructsCollectionLimits>;2925 readonly permissions: Option<UpDataStructsCollectionPermissions>;2926 readonly tokenPropertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;2927 readonly properties: Vec<UpDataStructsProperty>;2928 }29292930 /** @name UpDataStructsAccessMode (314) */2931 interface UpDataStructsAccessMode extends Enum {2932 readonly isNormal: boolean;2933 readonly isAllowList: boolean;2934 readonly type: 'Normal' | 'AllowList';2935 }29362937 /** @name UpDataStructsCollectionLimits (316) */2938 interface UpDataStructsCollectionLimits extends Struct {2939 readonly accountTokenOwnershipLimit: Option<u32>;2940 readonly sponsoredDataSize: Option<u32>;2941 readonly sponsoredDataRateLimit: Option<UpDataStructsSponsoringRateLimit>;2942 readonly tokenLimit: Option<u32>;2943 readonly sponsorTransferTimeout: Option<u32>;2944 readonly sponsorApproveTimeout: Option<u32>;2945 readonly ownerCanTransfer: Option<bool>;2946 readonly ownerCanDestroy: Option<bool>;2947 readonly transfersEnabled: Option<bool>;2948 }29492950 /** @name UpDataStructsSponsoringRateLimit (318) */2951 interface UpDataStructsSponsoringRateLimit extends Enum {2952 readonly isSponsoringDisabled: boolean;2953 readonly isBlocks: boolean;2954 readonly asBlocks: u32;2955 readonly type: 'SponsoringDisabled' | 'Blocks';2956 }29572958 /** @name UpDataStructsCollectionPermissions (321) */2959 interface UpDataStructsCollectionPermissions extends Struct {2960 readonly access: Option<UpDataStructsAccessMode>;2961 readonly mintMode: Option<bool>;2962 readonly nesting: Option<UpDataStructsNestingPermissions>;2963 }29642965 /** @name UpDataStructsNestingPermissions (323) */2966 interface UpDataStructsNestingPermissions extends Struct {2967 readonly tokenOwner: bool;2968 readonly collectionAdmin: bool;2969 readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;2970 }29712972 /** @name UpDataStructsOwnerRestrictedSet (325) */2973 interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}29742975 /** @name UpDataStructsPropertyKeyPermission (330) */2976 interface UpDataStructsPropertyKeyPermission extends Struct {2977 readonly key: Bytes;2978 readonly permission: UpDataStructsPropertyPermission;2979 }29802981 /** @name UpDataStructsPropertyPermission (331) */2982 interface UpDataStructsPropertyPermission extends Struct {2983 readonly mutable: bool;2984 readonly collectionAdmin: bool;2985 readonly tokenOwner: bool;2986 }29872988 /** @name UpDataStructsProperty (334) */2989 interface UpDataStructsProperty extends Struct {2990 readonly key: Bytes;2991 readonly value: Bytes;2992 }29932994 /** @name UpDataStructsCreateItemData (337) */2995 interface UpDataStructsCreateItemData extends Enum {2996 readonly isNft: boolean;2997 readonly asNft: UpDataStructsCreateNftData;2998 readonly isFungible: boolean;2999 readonly asFungible: UpDataStructsCreateFungibleData;3000 readonly isReFungible: boolean;3001 readonly asReFungible: UpDataStructsCreateReFungibleData;3002 readonly type: 'Nft' | 'Fungible' | 'ReFungible';3003 }30043005 /** @name UpDataStructsCreateNftData (338) */3006 interface UpDataStructsCreateNftData extends Struct {3007 readonly properties: Vec<UpDataStructsProperty>;3008 }30093010 /** @name UpDataStructsCreateFungibleData (339) */3011 interface UpDataStructsCreateFungibleData extends Struct {3012 readonly value: u128;3013 }30143015 /** @name UpDataStructsCreateReFungibleData (340) */3016 interface UpDataStructsCreateReFungibleData extends Struct {3017 readonly pieces: u128;3018 readonly properties: Vec<UpDataStructsProperty>;3019 }30203021 /** @name UpDataStructsCreateItemExData (343) */3022 interface UpDataStructsCreateItemExData extends Enum {3023 readonly isNft: boolean;3024 readonly asNft: Vec<UpDataStructsCreateNftExData>;3025 readonly isFungible: boolean;3026 readonly asFungible: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;3027 readonly isRefungibleMultipleItems: boolean;3028 readonly asRefungibleMultipleItems: Vec<UpDataStructsCreateRefungibleExSingleOwner>;3029 readonly isRefungibleMultipleOwners: boolean;3030 readonly asRefungibleMultipleOwners: UpDataStructsCreateRefungibleExMultipleOwners;3031 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';3032 }30333034 /** @name UpDataStructsCreateNftExData (345) */3035 interface UpDataStructsCreateNftExData extends Struct {3036 readonly properties: Vec<UpDataStructsProperty>;3037 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3038 }30393040 /** @name UpDataStructsCreateRefungibleExSingleOwner (352) */3041 interface UpDataStructsCreateRefungibleExSingleOwner extends Struct {3042 readonly user: PalletEvmAccountBasicCrossAccountIdRepr;3043 readonly pieces: u128;3044 readonly properties: Vec<UpDataStructsProperty>;3045 }30463047 /** @name UpDataStructsCreateRefungibleExMultipleOwners (354) */3048 interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct {3049 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;3050 readonly properties: Vec<UpDataStructsProperty>;3051 }30523053 /** @name PalletConfigurationCall (355) */3054 interface PalletConfigurationCall extends Enum {3055 readonly isSetWeightToFeeCoefficientOverride: boolean;3056 readonly asSetWeightToFeeCoefficientOverride: {3057 readonly coeff: Option<u64>;3058 } & Struct;3059 readonly isSetMinGasPriceOverride: boolean;3060 readonly asSetMinGasPriceOverride: {3061 readonly coeff: Option<u64>;3062 } & Struct;3063 readonly isSetXcmAllowedLocations: boolean;3064 readonly asSetXcmAllowedLocations: {3065 readonly locations: Option<Vec<XcmV1MultiLocation>>;3066 } & Struct;3067 readonly isSetAppPromotionConfigurationOverride: boolean;3068 readonly asSetAppPromotionConfigurationOverride: {3069 readonly configuration: PalletConfigurationAppPromotionConfiguration;3070 } & Struct;3071 readonly isSetCollatorSelectionDesiredCollators: boolean;3072 readonly asSetCollatorSelectionDesiredCollators: {3073 readonly max: Option<u32>;3074 } & Struct;3075 readonly isSetCollatorSelectionLicenseBond: boolean;3076 readonly asSetCollatorSelectionLicenseBond: {3077 readonly amount: Option<u128>;3078 } & Struct;3079 readonly isSetCollatorSelectionKickThreshold: boolean;3080 readonly asSetCollatorSelectionKickThreshold: {3081 readonly threshold: Option<u32>;3082 } & Struct;3083 readonly type: 'SetWeightToFeeCoefficientOverride' | 'SetMinGasPriceOverride' | 'SetXcmAllowedLocations' | 'SetAppPromotionConfigurationOverride' | 'SetCollatorSelectionDesiredCollators' | 'SetCollatorSelectionLicenseBond' | 'SetCollatorSelectionKickThreshold';3084 }30853086 /** @name PalletConfigurationAppPromotionConfiguration (360) */3087 interface PalletConfigurationAppPromotionConfiguration extends Struct {3088 readonly recalculationInterval: Option<u32>;3089 readonly pendingInterval: Option<u32>;3090 readonly intervalIncome: Option<Perbill>;3091 readonly maxStakersPerCalculation: Option<u8>;3092 }30933094 /** @name PalletTemplateTransactionPaymentCall (364) */3095 type PalletTemplateTransactionPaymentCall = Null;30963097 /** @name PalletStructureCall (365) */3098 type PalletStructureCall = Null;30993100 /** @name PalletRmrkCoreCall (366) */3101 interface PalletRmrkCoreCall extends Enum {3102 readonly isCreateCollection: boolean;3103 readonly asCreateCollection: {3104 readonly metadata: Bytes;3105 readonly max: Option<u32>;3106 readonly symbol: Bytes;3107 } & Struct;3108 readonly isDestroyCollection: boolean;3109 readonly asDestroyCollection: {3110 readonly collectionId: u32;3111 } & Struct;3112 readonly isChangeCollectionIssuer: boolean;3113 readonly asChangeCollectionIssuer: {3114 readonly collectionId: u32;3115 readonly newIssuer: MultiAddress;3116 } & Struct;3117 readonly isLockCollection: boolean;3118 readonly asLockCollection: {3119 readonly collectionId: u32;3120 } & Struct;3121 readonly isMintNft: boolean;3122 readonly asMintNft: {3123 readonly owner: Option<AccountId32>;3124 readonly collectionId: u32;3125 readonly recipient: Option<AccountId32>;3126 readonly royaltyAmount: Option<Permill>;3127 readonly metadata: Bytes;3128 readonly transferable: bool;3129 readonly resources: Option<Vec<RmrkTraitsResourceResourceTypes>>;3130 } & Struct;3131 readonly isBurnNft: boolean;3132 readonly asBurnNft: {3133 readonly collectionId: u32;3134 readonly nftId: u32;3135 readonly maxBurns: u32;3136 } & Struct;3137 readonly isSend: boolean;3138 readonly asSend: {3139 readonly rmrkCollectionId: u32;3140 readonly rmrkNftId: u32;3141 readonly newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple;3142 } & Struct;3143 readonly isAcceptNft: boolean;3144 readonly asAcceptNft: {3145 readonly rmrkCollectionId: u32;3146 readonly rmrkNftId: u32;3147 readonly newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple;3148 } & Struct;3149 readonly isRejectNft: boolean;3150 readonly asRejectNft: {3151 readonly rmrkCollectionId: u32;3152 readonly rmrkNftId: u32;3153 } & Struct;3154 readonly isAcceptResource: boolean;3155 readonly asAcceptResource: {3156 readonly rmrkCollectionId: u32;3157 readonly rmrkNftId: u32;3158 readonly resourceId: u32;3159 } & Struct;3160 readonly isAcceptResourceRemoval: boolean;3161 readonly asAcceptResourceRemoval: {3162 readonly rmrkCollectionId: u32;3163 readonly rmrkNftId: u32;3164 readonly resourceId: u32;3165 } & Struct;3166 readonly isSetProperty: boolean;3167 readonly asSetProperty: {3168 readonly rmrkCollectionId: Compact<u32>;3169 readonly maybeNftId: Option<u32>;3170 readonly key: Bytes;3171 readonly value: Bytes;3172 } & Struct;3173 readonly isSetPriority: boolean;3174 readonly asSetPriority: {3175 readonly rmrkCollectionId: u32;3176 readonly rmrkNftId: u32;3177 readonly priorities: Vec<u32>;3178 } & Struct;3179 readonly isAddBasicResource: boolean;3180 readonly asAddBasicResource: {3181 readonly rmrkCollectionId: u32;3182 readonly nftId: u32;3183 readonly resource: RmrkTraitsResourceBasicResource;3184 } & Struct;3185 readonly isAddComposableResource: boolean;3186 readonly asAddComposableResource: {3187 readonly rmrkCollectionId: u32;3188 readonly nftId: u32;3189 readonly resource: RmrkTraitsResourceComposableResource;3190 } & Struct;3191 readonly isAddSlotResource: boolean;3192 readonly asAddSlotResource: {3193 readonly rmrkCollectionId: u32;3194 readonly nftId: u32;3195 readonly resource: RmrkTraitsResourceSlotResource;3196 } & Struct;3197 readonly isRemoveResource: boolean;3198 readonly asRemoveResource: {3199 readonly rmrkCollectionId: u32;3200 readonly nftId: u32;3201 readonly resourceId: u32;3202 } & Struct;3203 readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';3204 }32053206 /** @name RmrkTraitsResourceResourceTypes (372) */3207 interface RmrkTraitsResourceResourceTypes extends Enum {3208 readonly isBasic: boolean;3209 readonly asBasic: RmrkTraitsResourceBasicResource;3210 readonly isComposable: boolean;3211 readonly asComposable: RmrkTraitsResourceComposableResource;3212 readonly isSlot: boolean;3213 readonly asSlot: RmrkTraitsResourceSlotResource;3214 readonly type: 'Basic' | 'Composable' | 'Slot';3215 }32163217 /** @name RmrkTraitsResourceBasicResource (374) */3218 interface RmrkTraitsResourceBasicResource extends Struct {3219 readonly src: Option<Bytes>;3220 readonly metadata: Option<Bytes>;3221 readonly license: Option<Bytes>;3222 readonly thumb: Option<Bytes>;3223 }32243225 /** @name RmrkTraitsResourceComposableResource (376) */3226 interface RmrkTraitsResourceComposableResource extends Struct {3227 readonly parts: Vec<u32>;3228 readonly base: u32;3229 readonly src: Option<Bytes>;3230 readonly metadata: Option<Bytes>;3231 readonly license: Option<Bytes>;3232 readonly thumb: Option<Bytes>;3233 }32343235 /** @name RmrkTraitsResourceSlotResource (377) */3236 interface RmrkTraitsResourceSlotResource extends Struct {3237 readonly base: u32;3238 readonly src: Option<Bytes>;3239 readonly metadata: Option<Bytes>;3240 readonly slot: u32;3241 readonly license: Option<Bytes>;3242 readonly thumb: Option<Bytes>;3243 }32443245 /** @name PalletRmrkEquipCall (380) */3246 interface PalletRmrkEquipCall extends Enum {3247 readonly isCreateBase: boolean;3248 readonly asCreateBase: {3249 readonly baseType: Bytes;3250 readonly symbol: Bytes;3251 readonly parts: Vec<RmrkTraitsPartPartType>;3252 } & Struct;3253 readonly isThemeAdd: boolean;3254 readonly asThemeAdd: {3255 readonly baseId: u32;3256 readonly theme: RmrkTraitsTheme;3257 } & Struct;3258 readonly isEquippable: boolean;3259 readonly asEquippable: {3260 readonly baseId: u32;3261 readonly slotId: u32;3262 readonly equippables: RmrkTraitsPartEquippableList;3263 } & Struct;3264 readonly type: 'CreateBase' | 'ThemeAdd' | 'Equippable';3265 }32663267 /** @name RmrkTraitsPartPartType (383) */3268 interface RmrkTraitsPartPartType extends Enum {3269 readonly isFixedPart: boolean;3270 readonly asFixedPart: RmrkTraitsPartFixedPart;3271 readonly isSlotPart: boolean;3272 readonly asSlotPart: RmrkTraitsPartSlotPart;3273 readonly type: 'FixedPart' | 'SlotPart';3274 }32753276 /** @name RmrkTraitsPartFixedPart (385) */3277 interface RmrkTraitsPartFixedPart extends Struct {3278 readonly id: u32;3279 readonly z: u32;3280 readonly src: Bytes;3281 }32823283 /** @name RmrkTraitsPartSlotPart (386) */3284 interface RmrkTraitsPartSlotPart extends Struct {3285 readonly id: u32;3286 readonly equippable: RmrkTraitsPartEquippableList;3287 readonly src: Bytes;3288 readonly z: u32;3289 }32903291 /** @name RmrkTraitsPartEquippableList (387) */3292 interface RmrkTraitsPartEquippableList extends Enum {3293 readonly isAll: boolean;3294 readonly isEmpty: boolean;3295 readonly isCustom: boolean;3296 readonly asCustom: Vec<u32>;3297 readonly type: 'All' | 'Empty' | 'Custom';3298 }32993300 /** @name RmrkTraitsTheme (389) */3301 interface RmrkTraitsTheme extends Struct {3302 readonly name: Bytes;3303 readonly properties: Vec<RmrkTraitsThemeThemeProperty>;3304 readonly inherit: bool;3305 }33063307 /** @name RmrkTraitsThemeThemeProperty (391) */3308 interface RmrkTraitsThemeThemeProperty extends Struct {3309 readonly key: Bytes;3310 readonly value: Bytes;3311 }33123313 /** @name PalletAppPromotionCall (393) */3314 interface PalletAppPromotionCall extends Enum {3315 readonly isSetAdminAddress: boolean;3316 readonly asSetAdminAddress: {3317 readonly admin: PalletEvmAccountBasicCrossAccountIdRepr;3318 } & Struct;3319 readonly isStake: boolean;3320 readonly asStake: {3321 readonly amount: u128;3322 } & Struct;3323 readonly isUnstake: boolean;3324 readonly isSponsorCollection: boolean;3325 readonly asSponsorCollection: {3326 readonly collectionId: u32;3327 } & Struct;3328 readonly isStopSponsoringCollection: boolean;3329 readonly asStopSponsoringCollection: {3330 readonly collectionId: u32;3331 } & Struct;3332 readonly isSponsorContract: boolean;3333 readonly asSponsorContract: {3334 readonly contractId: H160;3335 } & Struct;3336 readonly isStopSponsoringContract: boolean;3337 readonly asStopSponsoringContract: {3338 readonly contractId: H160;3339 } & Struct;3340 readonly isPayoutStakers: boolean;3341 readonly asPayoutStakers: {3342 readonly stakersNumber: Option<u8>;3343 } & Struct;3344 readonly type: 'SetAdminAddress' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsoringCollection' | 'SponsorContract' | 'StopSponsoringContract' | 'PayoutStakers';3345 }33463347 /** @name PalletForeignAssetsModuleCall (394) */3348 interface PalletForeignAssetsModuleCall extends Enum {3349 readonly isRegisterForeignAsset: boolean;3350 readonly asRegisterForeignAsset: {3351 readonly owner: AccountId32;3352 readonly location: XcmVersionedMultiLocation;3353 readonly metadata: PalletForeignAssetsModuleAssetMetadata;3354 } & Struct;3355 readonly isUpdateForeignAsset: boolean;3356 readonly asUpdateForeignAsset: {3357 readonly foreignAssetId: u32;3358 readonly location: XcmVersionedMultiLocation;3359 readonly metadata: PalletForeignAssetsModuleAssetMetadata;3360 } & Struct;3361 readonly type: 'RegisterForeignAsset' | 'UpdateForeignAsset';3362 }33633364 /** @name PalletEvmCall (395) */3365 interface PalletEvmCall extends Enum {3366 readonly isWithdraw: boolean;3367 readonly asWithdraw: {3368 readonly address: H160;3369 readonly value: u128;3370 } & Struct;3371 readonly isCall: boolean;3372 readonly asCall: {3373 readonly source: H160;3374 readonly target: H160;3375 readonly input: Bytes;3376 readonly value: U256;3377 readonly gasLimit: u64;3378 readonly maxFeePerGas: U256;3379 readonly maxPriorityFeePerGas: Option<U256>;3380 readonly nonce: Option<U256>;3381 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;3382 } & Struct;3383 readonly isCreate: boolean;3384 readonly asCreate: {3385 readonly source: H160;3386 readonly init: Bytes;3387 readonly value: U256;3388 readonly gasLimit: u64;3389 readonly maxFeePerGas: U256;3390 readonly maxPriorityFeePerGas: Option<U256>;3391 readonly nonce: Option<U256>;3392 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;3393 } & Struct;3394 readonly isCreate2: boolean;3395 readonly asCreate2: {3396 readonly source: H160;3397 readonly init: Bytes;3398 readonly salt: H256;3399 readonly value: U256;3400 readonly gasLimit: u64;3401 readonly maxFeePerGas: U256;3402 readonly maxPriorityFeePerGas: Option<U256>;3403 readonly nonce: Option<U256>;3404 readonly accessList: Vec<ITuple<[H160, Vec<H256>]>>;3405 } & Struct;3406 readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';3407 }34083409 /** @name PalletEthereumCall (401) */3410 interface PalletEthereumCall extends Enum {3411 readonly isTransact: boolean;3412 readonly asTransact: {3413 readonly transaction: EthereumTransactionTransactionV2;3414 } & Struct;3415 readonly type: 'Transact';3416 }34173418 /** @name EthereumTransactionTransactionV2 (402) */3419 interface EthereumTransactionTransactionV2 extends Enum {3420 readonly isLegacy: boolean;3421 readonly asLegacy: EthereumTransactionLegacyTransaction;3422 readonly isEip2930: boolean;3423 readonly asEip2930: EthereumTransactionEip2930Transaction;3424 readonly isEip1559: boolean;3425 readonly asEip1559: EthereumTransactionEip1559Transaction;3426 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3427 }34283429 /** @name EthereumTransactionLegacyTransaction (403) */3430 interface EthereumTransactionLegacyTransaction extends Struct {3431 readonly nonce: U256;3432 readonly gasPrice: U256;3433 readonly gasLimit: U256;3434 readonly action: EthereumTransactionTransactionAction;3435 readonly value: U256;3436 readonly input: Bytes;3437 readonly signature: EthereumTransactionTransactionSignature;3438 }34393440 /** @name EthereumTransactionTransactionAction (404) */3441 interface EthereumTransactionTransactionAction extends Enum {3442 readonly isCall: boolean;3443 readonly asCall: H160;3444 readonly isCreate: boolean;3445 readonly type: 'Call' | 'Create';3446 }34473448 /** @name EthereumTransactionTransactionSignature (405) */3449 interface EthereumTransactionTransactionSignature extends Struct {3450 readonly v: u64;3451 readonly r: H256;3452 readonly s: H256;3453 }34543455 /** @name EthereumTransactionEip2930Transaction (407) */3456 interface EthereumTransactionEip2930Transaction extends Struct {3457 readonly chainId: u64;3458 readonly nonce: U256;3459 readonly gasPrice: U256;3460 readonly gasLimit: U256;3461 readonly action: EthereumTransactionTransactionAction;3462 readonly value: U256;3463 readonly input: Bytes;3464 readonly accessList: Vec<EthereumTransactionAccessListItem>;3465 readonly oddYParity: bool;3466 readonly r: H256;3467 readonly s: H256;3468 }34693470 /** @name EthereumTransactionAccessListItem (409) */3471 interface EthereumTransactionAccessListItem extends Struct {3472 readonly address: H160;3473 readonly storageKeys: Vec<H256>;3474 }34753476 /** @name EthereumTransactionEip1559Transaction (410) */3477 interface EthereumTransactionEip1559Transaction extends Struct {3478 readonly chainId: u64;3479 readonly nonce: U256;3480 readonly maxPriorityFeePerGas: U256;3481 readonly maxFeePerGas: U256;3482 readonly gasLimit: U256;3483 readonly action: EthereumTransactionTransactionAction;3484 readonly value: U256;3485 readonly input: Bytes;3486 readonly accessList: Vec<EthereumTransactionAccessListItem>;3487 readonly oddYParity: bool;3488 readonly r: H256;3489 readonly s: H256;3490 }34913492 /** @name PalletDataManagementCall (411) */3493 interface PalletDataManagementCall extends Enum {3494 readonly isBegin: boolean;3495 readonly asBegin: {3496 readonly address: H160;3497 } & Struct;3498 readonly isSetData: boolean;3499 readonly asSetData: {3500 readonly address: H160;3501 readonly data: Vec<ITuple<[H256, H256]>>;3502 } & Struct;3503 readonly isFinish: boolean;3504 readonly asFinish: {3505 readonly address: H160;3506 readonly code: Bytes;3507 } & Struct;3508 readonly isInsertEthLogs: boolean;3509 readonly asInsertEthLogs: {3510 readonly logs: Vec<EthereumLog>;3511 } & Struct;3512 readonly isInsertEvents: boolean;3513 readonly asInsertEvents: {3514 readonly events: Vec<Bytes>;3515 } & Struct;3516 readonly isInsertIdentities: boolean;3517 readonly asInsertIdentities: {3518 readonly identities: Vec<ITuple<[AccountId32, Option<PalletIdentityRegistration>]>>;3519 } & Struct;3520 readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents' | 'InsertIdentities';3521 }35223523 /** @name PalletMaintenanceCall (418) */3524 interface PalletMaintenanceCall extends Enum {3525 readonly isEnable: boolean;3526 readonly isDisable: boolean;3527 readonly type: 'Enable' | 'Disable';3528 }35293530 /** @name PalletTestUtilsCall (419) */3531 interface PalletTestUtilsCall extends Enum {3532 readonly isEnable: boolean;3533 readonly isSetTestValue: boolean;3534 readonly asSetTestValue: {3535 readonly value: u32;3536 } & Struct;3537 readonly isSetTestValueAndRollback: boolean;3538 readonly asSetTestValueAndRollback: {3539 readonly value: u32;3540 } & Struct;3541 readonly isIncTestValue: boolean;3542 readonly isJustTakeFee: boolean;3543 readonly isBatchAll: boolean;3544 readonly asBatchAll: {3545 readonly calls: Vec<Call>;3546 } & Struct;3547 readonly type: 'Enable' | 'SetTestValue' | 'SetTestValueAndRollback' | 'IncTestValue' | 'JustTakeFee' | 'BatchAll';3548 }35493550 /** @name PalletSudoError (421) */3551 interface PalletSudoError extends Enum {3552 readonly isRequireSudo: boolean;3553 readonly type: 'RequireSudo';3554 }35553556 /** @name OrmlVestingModuleError (423) */3557 interface OrmlVestingModuleError extends Enum {3558 readonly isZeroVestingPeriod: boolean;3559 readonly isZeroVestingPeriodCount: boolean;3560 readonly isInsufficientBalanceToLock: boolean;3561 readonly isTooManyVestingSchedules: boolean;3562 readonly isAmountLow: boolean;3563 readonly isMaxVestingSchedulesExceeded: boolean;3564 readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';3565 }35663567 /** @name OrmlXtokensModuleError (424) */3568 interface OrmlXtokensModuleError extends Enum {3569 readonly isAssetHasNoReserve: boolean;3570 readonly isNotCrossChainTransfer: boolean;3571 readonly isInvalidDest: boolean;3572 readonly isNotCrossChainTransferableCurrency: boolean;3573 readonly isUnweighableMessage: boolean;3574 readonly isXcmExecutionFailed: boolean;3575 readonly isCannotReanchor: boolean;3576 readonly isInvalidAncestry: boolean;3577 readonly isInvalidAsset: boolean;3578 readonly isDestinationNotInvertible: boolean;3579 readonly isBadVersion: boolean;3580 readonly isDistinctReserveForAssetAndFee: boolean;3581 readonly isZeroFee: boolean;3582 readonly isZeroAmount: boolean;3583 readonly isTooManyAssetsBeingSent: boolean;3584 readonly isAssetIndexNonExistent: boolean;3585 readonly isFeeNotEnough: boolean;3586 readonly isNotSupportedMultiLocation: boolean;3587 readonly isMinXcmFeeNotDefined: boolean;3588 readonly type: 'AssetHasNoReserve' | 'NotCrossChainTransfer' | 'InvalidDest' | 'NotCrossChainTransferableCurrency' | 'UnweighableMessage' | 'XcmExecutionFailed' | 'CannotReanchor' | 'InvalidAncestry' | 'InvalidAsset' | 'DestinationNotInvertible' | 'BadVersion' | 'DistinctReserveForAssetAndFee' | 'ZeroFee' | 'ZeroAmount' | 'TooManyAssetsBeingSent' | 'AssetIndexNonExistent' | 'FeeNotEnough' | 'NotSupportedMultiLocation' | 'MinXcmFeeNotDefined';3589 }35903591 /** @name OrmlTokensBalanceLock (427) */3592 interface OrmlTokensBalanceLock extends Struct {3593 readonly id: U8aFixed;3594 readonly amount: u128;3595 }35963597 /** @name OrmlTokensAccountData (429) */3598 interface OrmlTokensAccountData extends Struct {3599 readonly free: u128;3600 readonly reserved: u128;3601 readonly frozen: u128;3602 }36033604 /** @name OrmlTokensReserveData (431) */3605 interface OrmlTokensReserveData extends Struct {3606 readonly id: Null;3607 readonly amount: u128;3608 }36093610 /** @name OrmlTokensModuleError (433) */3611 interface OrmlTokensModuleError extends Enum {3612 readonly isBalanceTooLow: boolean;3613 readonly isAmountIntoBalanceFailed: boolean;3614 readonly isLiquidityRestrictions: boolean;3615 readonly isMaxLocksExceeded: boolean;3616 readonly isKeepAlive: boolean;3617 readonly isExistentialDeposit: boolean;3618 readonly isDeadAccount: boolean;3619 readonly isTooManyReserves: boolean;3620 readonly type: 'BalanceTooLow' | 'AmountIntoBalanceFailed' | 'LiquidityRestrictions' | 'MaxLocksExceeded' | 'KeepAlive' | 'ExistentialDeposit' | 'DeadAccount' | 'TooManyReserves';3621 }36223623 /** @name CumulusPalletXcmpQueueInboundChannelDetails (435) */3624 interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {3625 readonly sender: u32;3626 readonly state: CumulusPalletXcmpQueueInboundState;3627 readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;3628 }36293630 /** @name CumulusPalletXcmpQueueInboundState (436) */3631 interface CumulusPalletXcmpQueueInboundState extends Enum {3632 readonly isOk: boolean;3633 readonly isSuspended: boolean;3634 readonly type: 'Ok' | 'Suspended';3635 }36363637 /** @name PolkadotParachainPrimitivesXcmpMessageFormat (439) */3638 interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {3639 readonly isConcatenatedVersionedXcm: boolean;3640 readonly isConcatenatedEncodedBlob: boolean;3641 readonly isSignals: boolean;3642 readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';3643 }36443645 /** @name CumulusPalletXcmpQueueOutboundChannelDetails (442) */3646 interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {3647 readonly recipient: u32;3648 readonly state: CumulusPalletXcmpQueueOutboundState;3649 readonly signalsExist: bool;3650 readonly firstIndex: u16;3651 readonly lastIndex: u16;3652 }36533654 /** @name CumulusPalletXcmpQueueOutboundState (443) */3655 interface CumulusPalletXcmpQueueOutboundState extends Enum {3656 readonly isOk: boolean;3657 readonly isSuspended: boolean;3658 readonly type: 'Ok' | 'Suspended';3659 }36603661 /** @name CumulusPalletXcmpQueueQueueConfigData (445) */3662 interface CumulusPalletXcmpQueueQueueConfigData extends Struct {3663 readonly suspendThreshold: u32;3664 readonly dropThreshold: u32;3665 readonly resumeThreshold: u32;3666 readonly thresholdWeight: SpWeightsWeightV2Weight;3667 readonly weightRestrictDecay: SpWeightsWeightV2Weight;3668 readonly xcmpMaxIndividualWeight: SpWeightsWeightV2Weight;3669 }36703671 /** @name CumulusPalletXcmpQueueError (447) */3672 interface CumulusPalletXcmpQueueError extends Enum {3673 readonly isFailedToSend: boolean;3674 readonly isBadXcmOrigin: boolean;3675 readonly isBadXcm: boolean;3676 readonly isBadOverweightIndex: boolean;3677 readonly isWeightOverLimit: boolean;3678 readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';3679 }36803681 /** @name PalletXcmError (448) */3682 interface PalletXcmError extends Enum {3683 readonly isUnreachable: boolean;3684 readonly isSendFailure: boolean;3685 readonly isFiltered: boolean;3686 readonly isUnweighableMessage: boolean;3687 readonly isDestinationNotInvertible: boolean;3688 readonly isEmpty: boolean;3689 readonly isCannotReanchor: boolean;3690 readonly isTooManyAssets: boolean;3691 readonly isInvalidOrigin: boolean;3692 readonly isBadVersion: boolean;3693 readonly isBadLocation: boolean;3694 readonly isNoSubscription: boolean;3695 readonly isAlreadySubscribed: boolean;3696 readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';3697 }36983699 /** @name CumulusPalletXcmError (449) */3700 type CumulusPalletXcmError = Null;37013702 /** @name CumulusPalletDmpQueueConfigData (450) */3703 interface CumulusPalletDmpQueueConfigData extends Struct {3704 readonly maxIndividual: SpWeightsWeightV2Weight;3705 }37063707 /** @name CumulusPalletDmpQueuePageIndexData (451) */3708 interface CumulusPalletDmpQueuePageIndexData extends Struct {3709 readonly beginUsed: u32;3710 readonly endUsed: u32;3711 readonly overweightCount: u64;3712 }37133714 /** @name CumulusPalletDmpQueueError (454) */3715 interface CumulusPalletDmpQueueError extends Enum {3716 readonly isUnknown: boolean;3717 readonly isOverLimit: boolean;3718 readonly type: 'Unknown' | 'OverLimit';3719 }37203721 /** @name PalletUniqueError (458) */3722 interface PalletUniqueError extends Enum {3723 readonly isCollectionDecimalPointLimitExceeded: boolean;3724 readonly isEmptyArgument: boolean;3725 readonly isRepartitionCalledOnNonRefungibleCollection: boolean;3726 readonly type: 'CollectionDecimalPointLimitExceeded' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';3727 }37283729 /** @name PalletConfigurationError (459) */3730 interface PalletConfigurationError extends Enum {3731 readonly isInconsistentConfiguration: boolean;3732 readonly type: 'InconsistentConfiguration';3733 }37343735 /** @name UpDataStructsCollection (460) */3736 interface UpDataStructsCollection extends Struct {3737 readonly owner: AccountId32;3738 readonly mode: UpDataStructsCollectionMode;3739 readonly name: Vec<u16>;3740 readonly description: Vec<u16>;3741 readonly tokenPrefix: Bytes;3742 readonly sponsorship: UpDataStructsSponsorshipStateAccountId32;3743 readonly limits: UpDataStructsCollectionLimits;3744 readonly permissions: UpDataStructsCollectionPermissions;3745 readonly flags: U8aFixed;3746 }37473748 /** @name UpDataStructsSponsorshipStateAccountId32 (461) */3749 interface UpDataStructsSponsorshipStateAccountId32 extends Enum {3750 readonly isDisabled: boolean;3751 readonly isUnconfirmed: boolean;3752 readonly asUnconfirmed: AccountId32;3753 readonly isConfirmed: boolean;3754 readonly asConfirmed: AccountId32;3755 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3756 }37573758 /** @name UpDataStructsProperties (462) */3759 interface UpDataStructsProperties extends Struct {3760 readonly map: UpDataStructsPropertiesMapBoundedVec;3761 readonly consumedSpace: u32;3762 readonly spaceLimit: u32;3763 }37643765 /** @name UpDataStructsPropertiesMapBoundedVec (463) */3766 interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}37673768 /** @name UpDataStructsPropertiesMapPropertyPermission (468) */3769 interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}37703771 /** @name UpDataStructsCollectionStats (475) */3772 interface UpDataStructsCollectionStats extends Struct {3773 readonly created: u32;3774 readonly destroyed: u32;3775 readonly alive: u32;3776 }37773778 /** @name UpDataStructsTokenChild (476) */3779 interface UpDataStructsTokenChild extends Struct {3780 readonly token: u32;3781 readonly collection: u32;3782 }37833784 /** @name PhantomTypeUpDataStructs (477) */3785 interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild, UpPovEstimateRpcPovInfo]>> {}37863787 /** @name UpDataStructsTokenData (479) */3788 interface UpDataStructsTokenData extends Struct {3789 readonly properties: Vec<UpDataStructsProperty>;3790 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;3791 readonly pieces: u128;3792 }37933794 /** @name UpDataStructsRpcCollection (481) */3795 interface UpDataStructsRpcCollection extends Struct {3796 readonly owner: AccountId32;3797 readonly mode: UpDataStructsCollectionMode;3798 readonly name: Vec<u16>;3799 readonly description: Vec<u16>;3800 readonly tokenPrefix: Bytes;3801 readonly sponsorship: UpDataStructsSponsorshipStateAccountId32;3802 readonly limits: UpDataStructsCollectionLimits;3803 readonly permissions: UpDataStructsCollectionPermissions;3804 readonly tokenPropertyPermissions: Vec<UpDataStructsPropertyKeyPermission>;3805 readonly properties: Vec<UpDataStructsProperty>;3806 readonly readOnly: bool;3807 readonly flags: UpDataStructsRpcCollectionFlags;3808 }38093810 /** @name UpDataStructsRpcCollectionFlags (482) */3811 interface UpDataStructsRpcCollectionFlags extends Struct {3812 readonly foreign: bool;3813 readonly erc721metadata: bool;3814 }38153816 /** @name RmrkTraitsCollectionCollectionInfo (483) */3817 interface RmrkTraitsCollectionCollectionInfo extends Struct {3818 readonly issuer: AccountId32;3819 readonly metadata: Bytes;3820 readonly max: Option<u32>;3821 readonly symbol: Bytes;3822 readonly nftsCount: u32;3823 }38243825 /** @name RmrkTraitsNftNftInfo (484) */3826 interface RmrkTraitsNftNftInfo extends Struct {3827 readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple;3828 readonly royalty: Option<RmrkTraitsNftRoyaltyInfo>;3829 readonly metadata: Bytes;3830 readonly equipped: bool;3831 readonly pending: bool;3832 }38333834 /** @name RmrkTraitsNftRoyaltyInfo (486) */3835 interface RmrkTraitsNftRoyaltyInfo extends Struct {3836 readonly recipient: AccountId32;3837 readonly amount: Permill;3838 }38393840 /** @name RmrkTraitsResourceResourceInfo (487) */3841 interface RmrkTraitsResourceResourceInfo extends Struct {3842 readonly id: u32;3843 readonly resource: RmrkTraitsResourceResourceTypes;3844 readonly pending: bool;3845 readonly pendingRemoval: bool;3846 }38473848 /** @name RmrkTraitsPropertyPropertyInfo (488) */3849 interface RmrkTraitsPropertyPropertyInfo extends Struct {3850 readonly key: Bytes;3851 readonly value: Bytes;3852 }38533854 /** @name RmrkTraitsBaseBaseInfo (489) */3855 interface RmrkTraitsBaseBaseInfo extends Struct {3856 readonly issuer: AccountId32;3857 readonly baseType: Bytes;3858 readonly symbol: Bytes;3859 }38603861 /** @name RmrkTraitsNftNftChild (490) */3862 interface RmrkTraitsNftNftChild extends Struct {3863 readonly collectionId: u32;3864 readonly nftId: u32;3865 }38663867 /** @name UpPovEstimateRpcPovInfo (491) */3868 interface UpPovEstimateRpcPovInfo extends Struct {3869 readonly proofSize: u64;3870 readonly compactProofSize: u64;3871 readonly compressedProofSize: u64;3872 readonly results: Vec<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>;3873 readonly keyValues: Vec<UpPovEstimateRpcTrieKeyValue>;3874 }38753876 /** @name SpRuntimeTransactionValidityTransactionValidityError (494) */3877 interface SpRuntimeTransactionValidityTransactionValidityError extends Enum {3878 readonly isInvalid: boolean;3879 readonly asInvalid: SpRuntimeTransactionValidityInvalidTransaction;3880 readonly isUnknown: boolean;3881 readonly asUnknown: SpRuntimeTransactionValidityUnknownTransaction;3882 readonly type: 'Invalid' | 'Unknown';3883 }38843885 /** @name SpRuntimeTransactionValidityInvalidTransaction (495) */3886 interface SpRuntimeTransactionValidityInvalidTransaction extends Enum {3887 readonly isCall: boolean;3888 readonly isPayment: boolean;3889 readonly isFuture: boolean;3890 readonly isStale: boolean;3891 readonly isBadProof: boolean;3892 readonly isAncientBirthBlock: boolean;3893 readonly isExhaustsResources: boolean;3894 readonly isCustom: boolean;3895 readonly asCustom: u8;3896 readonly isBadMandatory: boolean;3897 readonly isMandatoryValidation: boolean;3898 readonly isBadSigner: boolean;3899 readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryValidation' | 'BadSigner';3900 }39013902 /** @name SpRuntimeTransactionValidityUnknownTransaction (496) */3903 interface SpRuntimeTransactionValidityUnknownTransaction extends Enum {3904 readonly isCannotLookup: boolean;3905 readonly isNoUnsignedValidator: boolean;3906 readonly isCustom: boolean;3907 readonly asCustom: u8;3908 readonly type: 'CannotLookup' | 'NoUnsignedValidator' | 'Custom';3909 }39103911 /** @name UpPovEstimateRpcTrieKeyValue (498) */3912 interface UpPovEstimateRpcTrieKeyValue extends Struct {3913 readonly key: Bytes;3914 readonly value: Bytes;3915 }39163917 /** @name PalletCommonError (500) */3918 interface PalletCommonError extends Enum {3919 readonly isCollectionNotFound: boolean;3920 readonly isMustBeTokenOwner: boolean;3921 readonly isNoPermission: boolean;3922 readonly isCantDestroyNotEmptyCollection: boolean;3923 readonly isPublicMintingNotAllowed: boolean;3924 readonly isAddressNotInAllowlist: boolean;3925 readonly isCollectionNameLimitExceeded: boolean;3926 readonly isCollectionDescriptionLimitExceeded: boolean;3927 readonly isCollectionTokenPrefixLimitExceeded: boolean;3928 readonly isTotalCollectionsLimitExceeded: boolean;3929 readonly isCollectionAdminCountExceeded: boolean;3930 readonly isCollectionLimitBoundsExceeded: boolean;3931 readonly isOwnerPermissionsCantBeReverted: boolean;3932 readonly isTransferNotAllowed: boolean;3933 readonly isAccountTokenLimitExceeded: boolean;3934 readonly isCollectionTokenLimitExceeded: boolean;3935 readonly isMetadataFlagFrozen: boolean;3936 readonly isTokenNotFound: boolean;3937 readonly isTokenValueTooLow: boolean;3938 readonly isApprovedValueTooLow: boolean;3939 readonly isCantApproveMoreThanOwned: boolean;3940 readonly isAddressIsZero: boolean;3941 readonly isUnsupportedOperation: boolean;3942 readonly isNotSufficientFounds: boolean;3943 readonly isUserIsNotAllowedToNest: boolean;3944 readonly isSourceCollectionIsNotAllowedToNest: boolean;3945 readonly isCollectionFieldSizeExceeded: boolean;3946 readonly isNoSpaceForProperty: boolean;3947 readonly isPropertyLimitReached: boolean;3948 readonly isPropertyKeyIsTooLong: boolean;3949 readonly isInvalidCharacterInPropertyKey: boolean;3950 readonly isEmptyPropertyKey: boolean;3951 readonly isCollectionIsExternal: boolean;3952 readonly isCollectionIsInternal: boolean;3953 readonly isConfirmSponsorshipFail: boolean;3954 readonly isUserIsNotCollectionAdmin: boolean;3955 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' | 'ConfirmSponsorshipFail' | 'UserIsNotCollectionAdmin';3956 }39573958 /** @name PalletFungibleError (502) */3959 interface PalletFungibleError extends Enum {3960 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;3961 readonly isFungibleItemsHaveNoId: boolean;3962 readonly isFungibleItemsDontHaveData: boolean;3963 readonly isFungibleDisallowsNesting: boolean;3964 readonly isSettingPropertiesNotAllowed: boolean;3965 readonly isSettingAllowanceForAllNotAllowed: boolean;3966 readonly isFungibleTokensAreAlwaysValid: boolean;3967 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed' | 'FungibleTokensAreAlwaysValid';3968 }39693970 /** @name PalletRefungibleError (506) */3971 interface PalletRefungibleError extends Enum {3972 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;3973 readonly isWrongRefungiblePieces: boolean;3974 readonly isRepartitionWhileNotOwningAllPieces: boolean;3975 readonly isRefungibleDisallowsNesting: boolean;3976 readonly isSettingPropertiesNotAllowed: boolean;3977 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3978 }39793980 /** @name PalletNonfungibleItemData (507) */3981 interface PalletNonfungibleItemData extends Struct {3982 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3983 }39843985 /** @name UpDataStructsPropertyScope (509) */3986 interface UpDataStructsPropertyScope extends Enum {3987 readonly isNone: boolean;3988 readonly isRmrk: boolean;3989 readonly type: 'None' | 'Rmrk';3990 }39913992 /** @name PalletNonfungibleError (512) */3993 interface PalletNonfungibleError extends Enum {3994 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;3995 readonly isNonfungibleItemsHaveNoAmount: boolean;3996 readonly isCantBurnNftWithChildren: boolean;3997 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';3998 }39994000 /** @name PalletStructureError (513) */4001 interface PalletStructureError extends Enum {4002 readonly isOuroborosDetected: boolean;4003 readonly isDepthLimit: boolean;4004 readonly isBreadthLimit: boolean;4005 readonly isTokenNotFound: boolean;4006 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';4007 }40084009 /** @name PalletRmrkCoreError (514) */4010 interface PalletRmrkCoreError extends Enum {4011 readonly isCorruptedCollectionType: boolean;4012 readonly isRmrkPropertyKeyIsTooLong: boolean;4013 readonly isRmrkPropertyValueIsTooLong: boolean;4014 readonly isRmrkPropertyIsNotFound: boolean;4015 readonly isUnableToDecodeRmrkData: boolean;4016 readonly isCollectionNotEmpty: boolean;4017 readonly isNoAvailableCollectionId: boolean;4018 readonly isNoAvailableNftId: boolean;4019 readonly isCollectionUnknown: boolean;4020 readonly isNoPermission: boolean;4021 readonly isNonTransferable: boolean;4022 readonly isCollectionFullOrLocked: boolean;4023 readonly isResourceDoesntExist: boolean;4024 readonly isCannotSendToDescendentOrSelf: boolean;4025 readonly isCannotAcceptNonOwnedNft: boolean;4026 readonly isCannotRejectNonOwnedNft: boolean;4027 readonly isCannotRejectNonPendingNft: boolean;4028 readonly isResourceNotPending: boolean;4029 readonly isNoAvailableResourceId: boolean;4030 readonly type: 'CorruptedCollectionType' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';4031 }40324033 /** @name PalletRmrkEquipError (516) */4034 interface PalletRmrkEquipError extends Enum {4035 readonly isPermissionError: boolean;4036 readonly isNoAvailableBaseId: boolean;4037 readonly isNoAvailablePartId: boolean;4038 readonly isBaseDoesntExist: boolean;4039 readonly isNeedsDefaultThemeFirst: boolean;4040 readonly isPartDoesntExist: boolean;4041 readonly isNoEquippableOnFixedPart: boolean;4042 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';4043 }40444045 /** @name PalletAppPromotionError (522) */4046 interface PalletAppPromotionError extends Enum {4047 readonly isAdminNotSet: boolean;4048 readonly isNoPermission: boolean;4049 readonly isNotSufficientFunds: boolean;4050 readonly isPendingForBlockOverflow: boolean;4051 readonly isSponsorNotSet: boolean;4052 readonly isIncorrectLockedBalanceOperation: boolean;4053 readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFunds' | 'PendingForBlockOverflow' | 'SponsorNotSet' | 'IncorrectLockedBalanceOperation';4054 }40554056 /** @name PalletForeignAssetsModuleError (523) */4057 interface PalletForeignAssetsModuleError extends Enum {4058 readonly isBadLocation: boolean;4059 readonly isMultiLocationExisted: boolean;4060 readonly isAssetIdNotExists: boolean;4061 readonly isAssetIdExisted: boolean;4062 readonly type: 'BadLocation' | 'MultiLocationExisted' | 'AssetIdNotExists' | 'AssetIdExisted';4063 }40644065 /** @name PalletEvmError (525) */4066 interface PalletEvmError extends Enum {4067 readonly isBalanceLow: boolean;4068 readonly isFeeOverflow: boolean;4069 readonly isPaymentOverflow: boolean;4070 readonly isWithdrawFailed: boolean;4071 readonly isGasPriceTooLow: boolean;4072 readonly isInvalidNonce: boolean;4073 readonly isGasLimitTooLow: boolean;4074 readonly isGasLimitTooHigh: boolean;4075 readonly isUndefined: boolean;4076 readonly isReentrancy: boolean;4077 readonly isTransactionMustComeFromEOA: boolean;4078 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce' | 'GasLimitTooLow' | 'GasLimitTooHigh' | 'Undefined' | 'Reentrancy' | 'TransactionMustComeFromEOA';4079 }40804081 /** @name FpRpcTransactionStatus (528) */4082 interface FpRpcTransactionStatus extends Struct {4083 readonly transactionHash: H256;4084 readonly transactionIndex: u32;4085 readonly from: H160;4086 readonly to: Option<H160>;4087 readonly contractAddress: Option<H160>;4088 readonly logs: Vec<EthereumLog>;4089 readonly logsBloom: EthbloomBloom;4090 }40914092 /** @name EthbloomBloom (530) */4093 interface EthbloomBloom extends U8aFixed {}40944095 /** @name EthereumReceiptReceiptV3 (532) */4096 interface EthereumReceiptReceiptV3 extends Enum {4097 readonly isLegacy: boolean;4098 readonly asLegacy: EthereumReceiptEip658ReceiptData;4099 readonly isEip2930: boolean;4100 readonly asEip2930: EthereumReceiptEip658ReceiptData;4101 readonly isEip1559: boolean;4102 readonly asEip1559: EthereumReceiptEip658ReceiptData;4103 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';4104 }41054106 /** @name EthereumReceiptEip658ReceiptData (533) */4107 interface EthereumReceiptEip658ReceiptData extends Struct {4108 readonly statusCode: u8;4109 readonly usedGas: U256;4110 readonly logsBloom: EthbloomBloom;4111 readonly logs: Vec<EthereumLog>;4112 }41134114 /** @name EthereumBlock (534) */4115 interface EthereumBlock extends Struct {4116 readonly header: EthereumHeader;4117 readonly transactions: Vec<EthereumTransactionTransactionV2>;4118 readonly ommers: Vec<EthereumHeader>;4119 }41204121 /** @name EthereumHeader (535) */4122 interface EthereumHeader extends Struct {4123 readonly parentHash: H256;4124 readonly ommersHash: H256;4125 readonly beneficiary: H160;4126 readonly stateRoot: H256;4127 readonly transactionsRoot: H256;4128 readonly receiptsRoot: H256;4129 readonly logsBloom: EthbloomBloom;4130 readonly difficulty: U256;4131 readonly number: U256;4132 readonly gasLimit: U256;4133 readonly gasUsed: U256;4134 readonly timestamp: u64;4135 readonly extraData: Bytes;4136 readonly mixHash: H256;4137 readonly nonce: EthereumTypesHashH64;4138 }41394140 /** @name EthereumTypesHashH64 (536) */4141 interface EthereumTypesHashH64 extends U8aFixed {}41424143 /** @name PalletEthereumError (541) */4144 interface PalletEthereumError extends Enum {4145 readonly isInvalidSignature: boolean;4146 readonly isPreLogExists: boolean;4147 readonly type: 'InvalidSignature' | 'PreLogExists';4148 }41494150 /** @name PalletEvmCoderSubstrateError (542) */4151 interface PalletEvmCoderSubstrateError extends Enum {4152 readonly isOutOfGas: boolean;4153 readonly isOutOfFund: boolean;4154 readonly type: 'OutOfGas' | 'OutOfFund';4155 }41564157 /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (543) */4158 interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum {4159 readonly isDisabled: boolean;4160 readonly isUnconfirmed: boolean;4161 readonly asUnconfirmed: PalletEvmAccountBasicCrossAccountIdRepr;4162 readonly isConfirmed: boolean;4163 readonly asConfirmed: PalletEvmAccountBasicCrossAccountIdRepr;4164 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';4165 }41664167 /** @name PalletEvmContractHelpersSponsoringModeT (544) */4168 interface PalletEvmContractHelpersSponsoringModeT extends Enum {4169 readonly isDisabled: boolean;4170 readonly isAllowlisted: boolean;4171 readonly isGenerous: boolean;4172 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';4173 }41744175 /** @name PalletEvmContractHelpersError (550) */4176 interface PalletEvmContractHelpersError extends Enum {4177 readonly isNoPermission: boolean;4178 readonly isNoPendingSponsor: boolean;4179 readonly isTooManyMethodsHaveSponsoredLimit: boolean;4180 readonly type: 'NoPermission' | 'NoPendingSponsor' | 'TooManyMethodsHaveSponsoredLimit';4181 }41824183 /** @name PalletDataManagementError (551) */4184 interface PalletDataManagementError extends Enum {4185 readonly isAccountNotEmpty: boolean;4186 readonly isAccountIsNotMigrating: boolean;4187 readonly isBadEvent: boolean;4188 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating' | 'BadEvent';4189 }41904191 /** @name PalletMaintenanceError (552) */4192 type PalletMaintenanceError = Null;41934194 /** @name PalletTestUtilsError (553) */4195 interface PalletTestUtilsError extends Enum {4196 readonly isTestPalletDisabled: boolean;4197 readonly isTriggerRollback: boolean;4198 readonly type: 'TestPalletDisabled' | 'TriggerRollback';4199 }42004201 /** @name SpRuntimeMultiSignature (555) */4202 interface SpRuntimeMultiSignature extends Enum {4203 readonly isEd25519: boolean;4204 readonly asEd25519: SpCoreEd25519Signature;4205 readonly isSr25519: boolean;4206 readonly asSr25519: SpCoreSr25519Signature;4207 readonly isEcdsa: boolean;4208 readonly asEcdsa: SpCoreEcdsaSignature;4209 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';4210 }42114212 /** @name SpCoreEd25519Signature (556) */4213 interface SpCoreEd25519Signature extends U8aFixed {}42144215 /** @name SpCoreSr25519Signature (558) */4216 interface SpCoreSr25519Signature extends U8aFixed {}42174218 /** @name SpCoreEcdsaSignature (559) */4219 interface SpCoreEcdsaSignature extends U8aFixed {}42204221 /** @name FrameSystemExtensionsCheckSpecVersion (562) */4222 type FrameSystemExtensionsCheckSpecVersion = Null;42234224 /** @name FrameSystemExtensionsCheckTxVersion (563) */4225 type FrameSystemExtensionsCheckTxVersion = Null;42264227 /** @name FrameSystemExtensionsCheckGenesis (564) */4228 type FrameSystemExtensionsCheckGenesis = Null;42294230 /** @name FrameSystemExtensionsCheckNonce (567) */4231 interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}42324233 /** @name FrameSystemExtensionsCheckWeight (568) */4234 type FrameSystemExtensionsCheckWeight = Null;42354236 /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (569) */4237 type OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance = Null;42384239 /** @name OpalRuntimeRuntimeCommonDataManagementFilterIdentity (570) */4240 type OpalRuntimeRuntimeCommonDataManagementFilterIdentity = Null;42414242 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (571) */4243 interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}42444245 /** @name OpalRuntimeRuntime (572) */4246 type OpalRuntimeRuntime = Null;42474248 /** @name PalletEthereumFakeTransactionFinalizer (573) */4249 type PalletEthereumFakeTransactionFinalizer = Null;42504251} // declare module