git.delta.rocks / unique-network / refs/commits / f9edb50d1095

difftreelog

added bench for sponsoring, logic broken , commit for rebase

PraetorP2022-08-30parent: #8ee0040.patch.diff
in: master

14 files changed

modifiedCargo.lockdiffbeforeafterboth
5307 "pallet-common",5307 "pallet-common",
5308 "pallet-evm",5308 "pallet-evm",
5309 "pallet-evm-contract-helpers",5309 "pallet-evm-contract-helpers",
5310 "pallet-evm-migration",
5310 "pallet-randomness-collective-flip",5311 "pallet-randomness-collective-flip",
5311 "pallet-timestamp",5312 "pallet-timestamp",
5312 "pallet-unique",5313 "pallet-unique",
modifiedpallets/app-promotion/Cargo.tomldiffbeforeafterboth
122default-features = false122default-features = false
123path = "../evm-contract-helpers"123path = "../evm-contract-helpers"
124
125[dev-dependencies]
126[dependencies.pallet-evm-migration]
127default-features = false
128path = "../evm-migration"
129
130
124################################################################################131################################################################################
modifiedpallets/app-promotion/src/benchmarking.rsdiffbeforeafterboth
20use crate::Pallet as PromototionPallet;20use crate::Pallet as PromototionPallet;
2121
22use sp_runtime::traits::Bounded;22use sp_runtime::traits::Bounded;
23use sp_std::vec;
2324
24use frame_benchmarking::{benchmarks, account};25use frame_benchmarking::{benchmarks, account};
26
27use frame_system::{Origin, RawOrigin};
25use frame_support::traits::OnInitialize;28use pallet_unique::benchmarking::create_nft_collection;
26use frame_system::{Origin, RawOrigin};29use pallet_evm_migration::Pallet as EvmMigrationPallet;
30
31// trait BenchmarkingConfig: Config + pallet_unique::Config { }
32
33// impl<T: Config + pallet_unique::Config> BenchmarkingConfig for T { }
2734
28const SEED: u32 = 0;35const SEED: u32 = 0;
29benchmarks! {36benchmarks! {
30 where_clause{37 where_clause{
31 where T: Config38 where T: Config + pallet_unique::Config + pallet_evm_migration::Config ,
32
33 }
34 on_initialize {
35 let block1: T::BlockNumber = T::BlockNumber::from(1u32);39 T::BlockNumber: From<u32>
40 }
41 start_app_promotion {
42
36 let block2: T::BlockNumber = T::BlockNumber::from(2u32);43 } : {PromototionPallet::<T>::start_app_promotion(RawOrigin::Root.into(), None)?}
44
45 stop_app_promotion{
37 PromototionPallet::<T>::on_initialize(block1); // Create Treasury account46 PromototionPallet::<T>::start_app_promotion(RawOrigin::Root.into(), Some(25.into()))?;
38 }: { PromototionPallet::<T>::on_initialize(block2); } // Benchmark deposit_into_existing path47 } : {PromototionPallet::<T>::stop_app_promotion(RawOrigin::Root.into())?}
3948
40 start_app_promotion {49 set_admin_address {
41 let caller = account::<T::AccountId>("caller", 0, SEED);50 let pallet_admin = account::<T::AccountId>("admin", 0, SEED);
4251 let _ = <T as Config>::Currency::make_free_balance_be(&pallet_admin, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
43 } : {PromototionPallet::<T>::start_app_promotion(RawOrigin::Root.into(), T::BlockNumber::from(2u32))?}52 } : {PromototionPallet::<T>::set_admin_address(RawOrigin::Root.into(), T::CrossAccountId::from_sub(pallet_admin))?}
4453
45 set_admin_address {54 payout_stakers{
46 let caller = account::<T::AccountId>("caller", 0, SEED);55 let pallet_admin = account::<T::AccountId>("admin", 0, SEED);
56 let share = Perbill::from_rational(1u32, 10);
57 PromototionPallet::<T>::set_admin_address(RawOrigin::Root.into(), T::CrossAccountId::from_sub(pallet_admin.clone()))?;
58 let _ = <T as Config>::Currency::make_free_balance_be(&pallet_admin, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
59 let staker: T::AccountId = account("caller", 0, SEED);
47 let _ = T::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());60 let _ = <T as Config>::Currency::make_free_balance_be(&staker, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
61 let _ = PromototionPallet::<T>::stake(RawOrigin::Signed(staker.clone()).into(), share * <T as Config>::Currency::total_balance(&staker))?;
48 } : {PromototionPallet::<T>::set_admin_address(RawOrigin::Root.into(), caller)?}62 } : {PromototionPallet::<T>::payout_stakers(RawOrigin::Signed(pallet_admin.clone()).into(), Some(1))?}
4963
50 stake {64 stake {
51 let caller = account::<T::AccountId>("caller", 0, SEED);65 let caller = account::<T::AccountId>("caller", 0, SEED);
52 let share = Perbill::from_rational(1u32, 10);66 let share = Perbill::from_rational(1u32, 10);
53 let _ = T::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());67 let _ = <T as Config>::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
54 } : {PromototionPallet::<T>::stake(RawOrigin::Signed(caller.clone()).into(), share * T::Currency::total_balance(&caller))?}68 } : {PromototionPallet::<T>::stake(RawOrigin::Signed(caller.clone()).into(), share * <T as Config>::Currency::total_balance(&caller))?}
5569
56 unstake {70 unstake {
57 let caller = account::<T::AccountId>("caller", 0, SEED);71 let caller = account::<T::AccountId>("caller", 0, SEED);
58 let share = Perbill::from_rational(1u32, 10);72 let share = Perbill::from_rational(1u32, 10);
59 let _ = T::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());73 let _ = <T as Config>::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
60 let _ = PromototionPallet::<T>::stake(RawOrigin::Signed(caller.clone()).into(), share * T::Currency::total_balance(&caller))?;74 let _ = PromototionPallet::<T>::stake(RawOrigin::Signed(caller.clone()).into(), share * <T as Config>::Currency::total_balance(&caller))?;
6175
62 } : {PromototionPallet::<T>::unstake(RawOrigin::Signed(caller.clone()).into(), share * T::Currency::total_balance(&caller))?}76 } : {PromototionPallet::<T>::unstake(RawOrigin::Signed(caller.clone()).into(), share * <T as Config>::Currency::total_balance(&caller))?}
6377
64 recalculate_stake {78 recalculate_stake {
65 let caller = account::<T::AccountId>("caller", 0, SEED);79 let caller = account::<T::AccountId>("caller", 0, SEED);
66 let share = Perbill::from_rational(1u32, 10);80 let share = Perbill::from_rational(1u32, 10);
67 let _ = T::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());81 let _ = <T as Config>::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
68 let _ = PromototionPallet::<T>::stake(RawOrigin::Signed(caller.clone()).into(), share * T::Currency::total_balance(&caller))?;82 let _ = PromototionPallet::<T>::stake(RawOrigin::Signed(caller.clone()).into(), share * <T as Config>::Currency::total_balance(&caller))?;
69 let block = <T::BlockNumberProvider as BlockNumberProvider>::current_block_number();83 let block = <T::RelayBlockNumberProvider as BlockNumberProvider>::current_block_number();
70 let mut acc = <BalanceOf<T>>::default();84 let mut acc = <BalanceOf<T>>::default();
71 } : {PromototionPallet::<T>::recalculate_stake(&caller, block, share * T::Currency::total_balance(&caller), &mut acc)}85 } : {PromototionPallet::<T>::recalculate_stake(&caller, block, share * <T as Config>::Currency::total_balance(&caller), &mut acc)}
86
87 sponsor_collection {
88 let pallet_admin = account::<T::AccountId>("admin", 0, SEED);
89 PromototionPallet::<T>::set_admin_address(RawOrigin::Root.into(), T::CrossAccountId::from_sub(pallet_admin.clone()))?;
90 let _ = <T as Config>::Currency::make_free_balance_be(&pallet_admin, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
91 let caller: T::AccountId = account("caller", 0, SEED);
92 let _ = <T as Config>::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
93 let collection = create_nft_collection::<T>(caller.clone())?;
94 } : {PromototionPallet::<T>::sponsor_collection(RawOrigin::Signed(pallet_admin.clone()).into(), collection)?}
95
96 stop_sponsoring_collection {
97 let pallet_admin = account::<T::AccountId>("admin", 0, SEED);
98 PromototionPallet::<T>::set_admin_address(RawOrigin::Root.into(), T::CrossAccountId::from_sub(pallet_admin.clone()))?;
99 let _ = <T as Config>::Currency::make_free_balance_be(&pallet_admin, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
100 let caller: T::AccountId = account("caller", 0, SEED);
101 let _ = <T as Config>::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
102 let collection = create_nft_collection::<T>(caller.clone())?;
103 PromototionPallet::<T>::sponsor_collection(RawOrigin::Signed(pallet_admin.clone()).into(), collection)?;
104 } : {PromototionPallet::<T>::stop_sponsoring_collection(RawOrigin::Signed(pallet_admin.clone()).into(), collection)?}
105
106 sponsor_contract {
107 let pallet_admin = account::<T::AccountId>("admin", 0, SEED);
108 PromototionPallet::<T>::set_admin_address(RawOrigin::Root.into(), T::CrossAccountId::from_sub(pallet_admin.clone()))?;
109
110 let _ = <T as Config>::Currency::make_free_balance_be(&pallet_admin, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
111 let address = H160::from_low_u64_be(SEED as u64);
112 let data: Vec<u8> = (0..20 as u8).collect();
113 <EvmMigrationPallet<T>>::begin(RawOrigin::Root.into(), address)?;
114 <EvmMigrationPallet<T>>::finish(RawOrigin::Root.into(), address, data)?;
115 } : {PromototionPallet::<T>::sponsor_conract(RawOrigin::Signed(pallet_admin.clone()).into(), address)?}
116
117 stop_sponsoring_contract {
118 let pallet_admin = account::<T::AccountId>("admin", 0, SEED);
119 PromototionPallet::<T>::set_admin_address(RawOrigin::Root.into(), T::CrossAccountId::from_sub(pallet_admin.clone()))?;
120
121 let _ = <T as Config>::Currency::make_free_balance_be(&pallet_admin, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
122 let address = H160::from_low_u64_be(SEED as u64);
123 let data: Vec<u8> = (0..20 as u8).collect();
124 <EvmMigrationPallet<T>>::begin(RawOrigin::Root.into(), address)?;
125 <EvmMigrationPallet<T>>::finish(RawOrigin::Root.into(), address, data)?;
126 PromototionPallet::<T>::sponsor_conract(RawOrigin::Signed(pallet_admin.clone()).into(), address)?;
127 } : {PromototionPallet::<T>::stop_sponsoring_contract(RawOrigin::Signed(pallet_admin.clone()).into(), address)?}
72}128}
73129
modifiedpallets/app-promotion/src/lib.rsdiffbeforeafterboth
132 #[pallet::generate_deposit(fn deposit_event)]132 #[pallet::generate_deposit(fn deposit_event)]
133 pub enum Event<T: Config> {133 pub enum Event<T: Config> {
134 StakingRecalculation(134 StakingRecalculation(
135 /// An recalculated staker
136 T::AccountId,
135 /// Base on which interest is calculated137 /// Base on which interest is calculated
136 BalanceOf<T>,138 BalanceOf<T>,
137 /// Amount of accrued interest139 /// Amount of accrued interest
164 Key<Blake2_128Concat, T::AccountId>,166 Key<Blake2_128Concat, T::AccountId>,
165 Key<Twox64Concat, T::BlockNumber>,167 Key<Twox64Concat, T::BlockNumber>,
166 ),168 ),
167 Value = BalanceOf<T>,169 Value = (BalanceOf<T>, T::BlockNumber),
168 QueryKind = ValueQuery,170 QueryKind = ValueQuery,
169 >;171 >;
170172
189 pub type NextInterestBlock<T: Config> =191 pub type NextInterestBlock<T: Config> =
190 StorageValue<Value = T::BlockNumber, QueryKind = ValueQuery>;192 StorageValue<Value = T::BlockNumber, QueryKind = ValueQuery>;
191193
194 /// Stores the address of the staker for which the last revenue recalculation was performed.
195 /// If `None`, then recalculation has not yet been performed or calculations have been completed for all stakers.
196 #[pallet::storage]
197 #[pallet::getter(fn get_last_calculated_staker)]
198 pub type LastCalcucaltedStaker<T: Config> =
199 StorageValue<Value = T::AccountId, QueryKind = OptionQuery>;
200
192 #[pallet::hooks]201 #[pallet::hooks]
193 impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {202 impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
194 fn on_initialize(current_block: T::BlockNumber) -> Weight203 fn on_initialize(current_block: T::BlockNumber) -> Weight
195 where204 where
196 <T as frame_system::Config>::BlockNumber: From<u32>,205 <T as frame_system::Config>::BlockNumber: From<u32>,
197 {206 {
198 let mut consumed_weight = 0;207 let mut consumed_weight = 0;
199 let mut add_weight = |reads, writes, weight| {208 // let mut add_weight = |reads, writes, weight| {
200 consumed_weight += T::DbWeight::get().reads_writes(reads, writes);209 // consumed_weight += T::DbWeight::get().reads_writes(reads, writes);
201 consumed_weight += weight;210 // consumed_weight += weight;
202 };211 // };
203212
204 PendingUnstake::<T>::iter()213 PendingUnstake::<T>::iter()
205 .filter_map(|((staker, block), amount)| {214 .filter_map(|((staker, block), amount)| {
214 <PendingUnstake<T>>::remove((staker, block));223 <PendingUnstake<T>>::remove((staker, block));
215 });224 });
216225
217 let next_interest_block = Self::get_interest_block();226 // let next_interest_block = Self::get_interest_block();
218 let current_relay_block = T::RelayBlockNumberProvider::current_block_number();227 // let current_relay_block = T::RelayBlockNumberProvider::current_block_number();
219 if next_interest_block != 0.into() && current_relay_block >= next_interest_block {228 // if next_interest_block != 0.into() && current_relay_block >= next_interest_block {
220 let mut acc = <BalanceOf<T>>::default();229 // let mut acc = <BalanceOf<T>>::default();
221 let mut base_acc = <BalanceOf<T>>::default();230 // let mut base_acc = <BalanceOf<T>>::default();
222231
223 NextInterestBlock::<T>::set(232 // NextInterestBlock::<T>::set(
224 NextInterestBlock::<T>::get() + T::RecalculationInterval::get(),233 // NextInterestBlock::<T>::get() + T::RecalculationInterval::get(),
225 );234 // );
226 add_weight(0, 1, 0);235 // add_weight(0, 1, 0);
227236
228 Staked::<T>::iter()237 // Staked::<T>::iter()
229 .filter(|((_, block), _)| {238 // .filter(|((_, block), _)| {
230 *block + T::RecalculationInterval::get() <= current_relay_block239 // *block + T::RecalculationInterval::get() <= current_relay_block
231 })240 // })
232 .for_each(|((staker, block), amount)| {241 // .for_each(|((staker, block), amount)| {
233 Self::recalculate_stake(&staker, block, amount, &mut acc);242 // Self::recalculate_stake(&staker, block, amount, &mut acc);
234 add_weight(0, 0, T::WeightInfo::recalculate_stake());243 // add_weight(0, 0, T::WeightInfo::recalculate_stake());
235 base_acc += amount;244 // base_acc += amount;
236 });245 // });
237 <TotalStaked<T>>::get()246 // <TotalStaked<T>>::get()
238 .checked_add(&acc)247 // .checked_add(&acc)
239 .map(|res| <TotalStaked<T>>::set(res));248 // .map(|res| <TotalStaked<T>>::set(res));
240249
241 Self::deposit_event(Event::StakingRecalculation(base_acc, acc));250 // Self::deposit_event(Event::StakingRecalculation(base_acc, acc));
242 add_weight(0, 1, 0);251 // add_weight(0, 1, 0);
243 } else {252 // } else {
244 add_weight(1, 0, 0)253 // add_weight(1, 0, 0)
245 };254 // };
246 consumed_weight255 consumed_weight
247 }256 }
248 }257 }
249258
250 #[pallet::call]259 #[pallet::call]
251 impl<T: Config> Pallet<T> {260 impl<T: Config> Pallet<T>
261 where
262 T::BlockNumber: From<u32>,
263 {
252 #[pallet::weight(T::WeightInfo::set_admin_address())]264 #[pallet::weight(T::WeightInfo::set_admin_address())]
253 pub fn set_admin_address(origin: OriginFor<T>, admin: T::CrossAccountId) -> DispatchResult {265 pub fn set_admin_address(origin: OriginFor<T>, admin: T::CrossAccountId) -> DispatchResult {
254 ensure_root(origin)?;266 ensure_root(origin)?;
281 Ok(())293 Ok(())
282 }294 }
283295
284 #[pallet::weight(0)]296 #[pallet::weight(T::WeightInfo::stop_app_promotion())]
285 pub fn stop_app_promotion(origin: OriginFor<T>) -> DispatchResult297 pub fn stop_app_promotion(origin: OriginFor<T>) -> DispatchResult
286 where298 where
287 <T as frame_system::Config>::BlockNumber: From<u32>,299 <T as frame_system::Config>::BlockNumber: From<u32>,
317 Self::add_lock_balance(&staker_id, amount)?;329 Self::add_lock_balance(&staker_id, amount)?;
318330
319 let block_number = T::RelayBlockNumberProvider::current_block_number();331 let block_number = T::RelayBlockNumberProvider::current_block_number();
332 let recalc_block = (block_number / T::RecalculationInterval::get() + 2u32.into())
333 * T::RecalculationInterval::get();
320334
321 <Staked<T>>::insert(335 <Staked<T>>::insert((&staker_id, block_number), {
322 (&staker_id, block_number),
323 <Staked<T>>::get((&staker_id, block_number))336 let mut balance_and_recalc_block = <Staked<T>>::get((&staker_id, block_number));
337 balance_and_recalc_block.0 = balance_and_recalc_block
338 .0
324 .checked_add(&amount)339 .checked_add(&amount)
325 .ok_or(ArithmeticError::Overflow)?,340 .ok_or(ArithmeticError::Overflow)?;
341 balance_and_recalc_block.1 = recalc_block;
342 balance_and_recalc_block
326 );343 });
327344
328 <TotalStaked<T>>::set(345 // <TotalStaked<T>>::set(
329 <TotalStaked<T>>::get()346 // <TotalStaked<T>>::get()
330 .checked_add(&amount)347 // .checked_add(&amount)
331 .ok_or(ArithmeticError::Overflow)?,348 // .ok_or(ArithmeticError::Overflow)?,
332 );349 // );
333350
334 Ok(())351 Ok(())
335 }352 }
338 pub fn unstake(staker: OriginFor<T>, amount: BalanceOf<T>) -> DispatchResult {355 pub fn unstake(staker: OriginFor<T>, amount: BalanceOf<T>) -> DispatchResult {
339 let staker_id = ensure_signed(staker)?;356 let staker_id = ensure_signed(staker)?;
340357
341 let mut stakes = Staked::<T>::iter_prefix((&staker_id,)).collect::<Vec<_>>();358 let mut stakes = Staked::<T>::drain_prefix((&staker_id,));
342359
343 let total_staked = stakes360 // let total_staked = stakes
344 .iter()361 // .iter()
345 .fold(<BalanceOf<T>>::default(), |acc, (_, amount)| acc + *amount);362 // .fold(<BalanceOf<T>>::default(), |acc, (_, amount)| acc + *amount);
346363
347 ensure!(total_staked >= amount, ArithmeticError::Underflow);364 // ensure!(total_staked >= amount, ArithmeticError::Underflow);
348365
349 <TotalStaked<T>>::set(366 // <TotalStaked<T>>::set(
350 <TotalStaked<T>>::get()367 // <TotalStaked<T>>::get()
351 .checked_sub(&amount)368 // .checked_sub(&amount)
352 .ok_or(ArithmeticError::Underflow)?,369 // .ok_or(ArithmeticError::Underflow)?,
353 );370 // );
354371
355 let block =372 // let block =
356 T::RelayBlockNumberProvider::current_block_number() + T::PendingInterval::get();373 // T::RelayBlockNumberProvider::current_block_number() + T::PendingInterval::get();
357 <PendingUnstake<T>>::insert(374 // <PendingUnstake<T>>::insert(
358 (&staker_id, block),375 // (&staker_id, block),
359 <PendingUnstake<T>>::get((&staker_id, block))376 // <PendingUnstake<T>>::get((&staker_id, block))
360 .checked_add(&amount)377 // .checked_add(&amount)
361 .ok_or(ArithmeticError::Overflow)?,378 // .ok_or(ArithmeticError::Overflow)?,
362 );379 // );
363380
364 stakes.sort_by_key(|(block, _)| *block);381 // stakes.sort_by_key(|(block, _)| *block);
365382
366 let mut acc_amount = amount;383 // let mut acc_amount = amount;
367 let new_state = stakes384 // let new_state = stakes
368 .into_iter()385 // .into_iter()
369 .map_while(|(block, balance_per_block)| {386 // .map_while(|(block, balance_per_block)| {
370 if acc_amount == <BalanceOf<T>>::default() {387 // if acc_amount == <BalanceOf<T>>::default() {
371 return None;388 // return None;
372 }389 // }
373 if acc_amount <= balance_per_block {390 // if acc_amount <= balance_per_block {
374 let res = (block, balance_per_block - acc_amount, acc_amount);391 // let res = (block, balance_per_block - acc_amount, acc_amount);
375 acc_amount = <BalanceOf<T>>::default();392 // acc_amount = <BalanceOf<T>>::default();
376 return Some(res);393 // return Some(res);
377 } else {394 // } else {
378 acc_amount -= balance_per_block;395 // acc_amount -= balance_per_block;
379 return Some((block, <BalanceOf<T>>::default(), acc_amount));396 // return Some((block, <BalanceOf<T>>::default(), acc_amount));
380 }397 // }
381 })398 // })
382 .collect::<Vec<_>>();399 // .collect::<Vec<_>>();
383400
384 new_state401 // new_state
385 .into_iter()402 // .into_iter()
386 .for_each(|(block, to_staked, _to_pending)| {403 // .for_each(|(block, to_staked, _to_pending)| {
387 if to_staked == <BalanceOf<T>>::default() {404 // if to_staked == <BalanceOf<T>>::default() {
388 <Staked<T>>::remove((&staker_id, block));405 // <Staked<T>>::remove((&staker_id, block));
389 } else {406 // } else {
390 <Staked<T>>::insert((&staker_id, block), to_staked);407 // <Staked<T>>::insert((&staker_id, block), to_staked);
391 }408 // }
392 });409 // });
393410
394 Ok(())411 Ok(())
412
413 // let staker_id = ensure_signed(staker)?;
414
415 // let mut stakes = Staked::<T>::iter_prefix((&staker_id,)).collect::<Vec<_>>();
416
417 // let total_staked = stakes
418 // .iter()
419 // .fold(<BalanceOf<T>>::default(), |acc, (_, amount)| acc + *amount);
420
421 // ensure!(total_staked >= amount, ArithmeticError::Underflow);
422
423 // <TotalStaked<T>>::set(
424 // <TotalStaked<T>>::get()
425 // .checked_sub(&amount)
426 // .ok_or(ArithmeticError::Underflow)?,
427 // );
428
429 // let block =
430 // T::RelayBlockNumberProvider::current_block_number() + T::PendingInterval::get();
431 // <PendingUnstake<T>>::insert(
432 // (&staker_id, block),
433 // <PendingUnstake<T>>::get((&staker_id, block))
434 // .checked_add(&amount)
435 // .ok_or(ArithmeticError::Overflow)?,
436 // );
437
438 // stakes.sort_by_key(|(block, _)| *block);
439
440 // let mut acc_amount = amount;
441 // let new_state = stakes
442 // .into_iter()
443 // .map_while(|(block, balance_per_block)| {
444 // if acc_amount == <BalanceOf<T>>::default() {
445 // return None;
446 // }
447 // if acc_amount <= balance_per_block {
448 // let res = (block, balance_per_block - acc_amount, acc_amount);
449 // acc_amount = <BalanceOf<T>>::default();
450 // return Some(res);
451 // } else {
452 // acc_amount -= balance_per_block;
453 // return Some((block, <BalanceOf<T>>::default(), acc_amount));
454 // }
455 // })
456 // .collect::<Vec<_>>();
457
458 // new_state
459 // .into_iter()
460 // .for_each(|(block, to_staked, _to_pending)| {
461 // if to_staked == <BalanceOf<T>>::default() {
462 // <Staked<T>>::remove((&staker_id, block));
463 // } else {
464 // <Staked<T>>::insert((&staker_id, block), to_staked);
465 // }
466 // });
467
468 // Ok(())
395 }469 }
396470
397 #[pallet::weight(0)]471 #[pallet::weight(T::WeightInfo::sponsor_collection())]
398 pub fn sponsor_collection(472 pub fn sponsor_collection(
399 admin: OriginFor<T>,473 admin: OriginFor<T>,
400 collection_id: CollectionId,474 collection_id: CollectionId,
407481
408 T::CollectionHandler::set_sponsor(Self::account_id(), collection_id)482 T::CollectionHandler::set_sponsor(Self::account_id(), collection_id)
409 }483 }
410 #[pallet::weight(0)]484 #[pallet::weight(T::WeightInfo::stop_sponsoring_collection())]
411 pub fn stop_sponsorign_collection(485 pub fn stop_sponsoring_collection(
412 admin: OriginFor<T>,486 admin: OriginFor<T>,
413 collection_id: CollectionId,487 collection_id: CollectionId,
414 ) -> DispatchResult {488 ) -> DispatchResult {
428 T::CollectionHandler::remove_collection_sponsor(collection_id)502 T::CollectionHandler::remove_collection_sponsor(collection_id)
429 }503 }
430504
431 #[pallet::weight(0)]505 #[pallet::weight(T::WeightInfo::sponsor_contract())]
432 pub fn sponsor_conract(admin: OriginFor<T>, contract_id: H160) -> DispatchResult {506 pub fn sponsor_conract(admin: OriginFor<T>, contract_id: H160) -> DispatchResult {
433 let admin_id = ensure_signed(admin)?;507 let admin_id = ensure_signed(admin)?;
434508
443 )517 )
444 }518 }
445519
446 #[pallet::weight(0)]520 #[pallet::weight(T::WeightInfo::stop_sponsoring_contract())]
447 pub fn stop_sponsorign_contract(admin: OriginFor<T>, contract_id: H160) -> DispatchResult {521 pub fn stop_sponsoring_contract(admin: OriginFor<T>, contract_id: H160) -> DispatchResult {
448 let admin_id = ensure_signed(admin)?;522 let admin_id = ensure_signed(admin)?;
449523
450 ensure!(524 ensure!(
459 );533 );
460 T::ContractHandler::remove_contract_sponsor(contract_id)534 T::ContractHandler::remove_contract_sponsor(contract_id)
461 }535 }
536
537 #[pallet::weight(0)]
538 pub fn payout_stakers(admin: OriginFor<T>, stakers_number: Option<u8>) -> DispatchResult {
539 let admin_id = ensure_signed(admin)?;
540
541 ensure!(
542 admin_id == Admin::<T>::get().ok_or(Error::<T>::AdminNotSet)?,
543 Error::<T>::NoPermission
544 );
545
546 Ok(())
547 }
462 }548 }
463}549}
464550
501 pub fn total_staked_by_id(staker: impl EncodeLike<T::AccountId>) -> Option<BalanceOf<T>> {587 pub fn total_staked_by_id(staker: impl EncodeLike<T::AccountId>) -> Option<BalanceOf<T>> {
502 let staked = Staked::<T>::iter_prefix((staker,))588 let staked = Staked::<T>::iter_prefix((staker,))
503 .into_iter()589 .into_iter()
504 .fold(<BalanceOf<T>>::default(), |acc, (_, amount)| acc + amount);590 .fold(<BalanceOf<T>>::default(), |acc, (_, (amount, _))| {
591 acc + amount
592 });
505 if staked != <BalanceOf<T>>::default() {593 if staked != <BalanceOf<T>>::default() {
506 Some(staked)594 Some(staked)
507 } else {595 } else {
514 ) -> Option<Vec<(T::BlockNumber, BalanceOf<T>)>> {602 ) -> Option<Vec<(T::BlockNumber, BalanceOf<T>)>> {
515 let mut staked = Staked::<T>::iter_prefix((staker,))603 let mut staked = Staked::<T>::iter_prefix((staker,))
516 .into_iter()604 .into_iter()
517 .map(|(block, amount)| (block, amount))605 .map(|(block, (amount, _))| (block, amount))
518 .collect::<Vec<_>>();606 .collect::<Vec<_>>();
519 staked.sort_by_key(|(block, _)| *block);607 staked.sort_by_key(|(block, _)| *block);
520 if !staked.is_empty() {608 if !staked.is_empty() {
550 income_acc: &mut BalanceOf<T>,638 income_acc: &mut BalanceOf<T>,
551 ) {639 ) {
552 let income = Self::calculate_income(base);640 let income = Self::calculate_income(base);
553 base.checked_add(&income).map(|res| {641 // base.checked_add(&income).map(|res| {
554 <Staked<T>>::insert((staker, block), res);642 // <Staked<T>>::insert((staker, block), res);
555 *income_acc += income;643 // *income_acc += income;
556 <T::Currency as Currency<T::AccountId>>::transfer(644 // <T::Currency as Currency<T::AccountId>>::transfer(
557 &T::TreasuryAccountId::get(),645 // &T::TreasuryAccountId::get(),
558 staker,646 // staker,
559 income,647 // income,
560 ExistenceRequirement::KeepAlive,648 // ExistenceRequirement::KeepAlive,
561 )649 // )
562 .and_then(|_| Self::add_lock_balance(staker, income));650 // .and_then(|_| Self::add_lock_balance(staker, income));
563 });651 // });
564 }652 }
565653
566 fn calculate_income<I>(base: I) -> I654 fn calculate_income<I>(base: I) -> I
modifiedpallets/app-promotion/src/types.rsdiffbeforeafterboth
101101
102 fn set_sponsor(sponsor_id: Self::AccountId, contract_id: Self::ContractId) -> DispatchResult;102 fn set_sponsor(sponsor_id: Self::AccountId, contract_id: Self::ContractId) -> DispatchResult;
103103
104 fn remove_contract_sponsor(collection_id: Self::ContractId) -> DispatchResult;104 fn remove_contract_sponsor(contract_id: Self::ContractId) -> DispatchResult;
105105
106 fn get_sponsor(contract_id: Self::ContractId)106 fn get_sponsor(contract_id: Self::ContractId)
107 -> Result<Option<Self::AccountId>, DispatchError>;107 -> Result<Option<Self::AccountId>, DispatchError>;
modifiedpallets/app-promotion/src/weights.rsdiffbeforeafterboth
3//! Autogenerated weights for pallet_app_promotion3//! Autogenerated weights for pallet_app_promotion
4//!4//!
5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
6//! DATE: 2022-08-09, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`6//! DATE: 2022-08-30, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10247//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
88
9// Executed Command:9// Executed Command:
3333
34/// Weight functions needed for pallet_app_promotion.34/// Weight functions needed for pallet_app_promotion.
35pub trait WeightInfo {35pub trait WeightInfo {
36 fn on_initialize() -> Weight;36 fn start_app_promotion() -> Weight;
37 fn start_app_promotion() -> Weight;37 fn stop_app_promotion() -> Weight;
38 fn set_admin_address() -> Weight;38 fn set_admin_address() -> Weight;
39 fn payout_stakers() -> Weight;
39 fn stake() -> Weight;40 fn stake() -> Weight;
40 fn unstake() -> Weight;41 fn unstake() -> Weight;
41 fn recalculate_stake() -> Weight;42 fn recalculate_stake() -> Weight;
43 fn sponsor_collection() -> Weight;
44 fn stop_sponsoring_collection() -> Weight;
45 fn sponsor_contract() -> Weight;
46 fn stop_sponsoring_contract() -> Weight;
42}47}
4348
44/// Weights for pallet_app_promotion using the Substrate node and recommended hardware.49/// Weights for pallet_app_promotion using the Substrate node and recommended hardware.
45pub struct SubstrateWeight<T>(PhantomData<T>);50pub struct SubstrateWeight<T>(PhantomData<T>);
46impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {51impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
47 // Storage: Promotion PendingUnstake (r:1 w:0)52 // Storage: Promotion StartBlock (r:1 w:1)
53 // Storage: ParachainSystem ValidationData (r:1 w:0)
48 // Storage: Promotion NextInterestBlock (r:1 w:0)54 // Storage: Promotion NextInterestBlock (r:0 w:1)
49 fn on_initialize() -> Weight {55 fn start_app_promotion() -> Weight {
50 (2_705_000 as Weight)56 (2_299_000 as Weight)
57 .saturating_add(T::DbWeight::get().reads(2 as Weight))
51 .saturating_add(T::DbWeight::get().reads(2 as Weight))58 .saturating_add(T::DbWeight::get().writes(2 as Weight))
52 }59 }
53 // Storage: Promotion StartBlock (r:1 w:1)60 // Storage: Promotion StartBlock (r:1 w:1)
54 // Storage: Promotion NextInterestBlock (r:0 w:1)61 // Storage: Promotion NextInterestBlock (r:0 w:1)
55 fn start_app_promotion() -> Weight {62 fn stop_app_promotion() -> Weight {
56 (1_436_000 as Weight)63 (1_733_000 as Weight)
57 .saturating_add(T::DbWeight::get().reads(1 as Weight))64 .saturating_add(T::DbWeight::get().reads(1 as Weight))
58 .saturating_add(T::DbWeight::get().writes(2 as Weight))65 .saturating_add(T::DbWeight::get().writes(2 as Weight))
59 }66 }
60 // Storage: Promotion Admin (r:0 w:1)67 // Storage: Promotion Admin (r:0 w:1)
61 fn set_admin_address() -> Weight {68 fn set_admin_address() -> Weight {
62 (516_000 as Weight)69 (553_000 as Weight)
63 .saturating_add(T::DbWeight::get().writes(1 as Weight))70 .saturating_add(T::DbWeight::get().writes(1 as Weight))
64 }71 }
72 // Storage: Promotion Admin (r:1 w:0)
73 fn payout_stakers() -> Weight {
74 (1_398_000 as Weight)
75 .saturating_add(T::DbWeight::get().reads(1 as Weight))
76 }
65 // Storage: System Account (r:1 w:1)77 // Storage: System Account (r:1 w:1)
66 // Storage: Balances Locks (r:1 w:1)78 // Storage: Balances Locks (r:1 w:1)
67 // Storage: ParachainSystem ValidationData (r:1 w:0)79 // Storage: ParachainSystem ValidationData (r:1 w:0)
68 // Storage: Promotion Staked (r:1 w:1)80 // Storage: Promotion Staked (r:1 w:1)
69 // Storage: Promotion TotalStaked (r:1 w:1)
70 fn stake() -> Weight {81 fn stake() -> Weight {
71 (10_019_000 as Weight)82 (9_506_000 as Weight)
72 .saturating_add(T::DbWeight::get().reads(5 as Weight))83 .saturating_add(T::DbWeight::get().reads(4 as Weight))
73 .saturating_add(T::DbWeight::get().writes(4 as Weight))84 .saturating_add(T::DbWeight::get().writes(3 as Weight))
74 }85 }
75 // Storage: System Account (r:1 w:1)86 // Storage: System Account (r:1 w:0)
87 fn unstake() -> Weight {
88 (2_529_000 as Weight)
89 .saturating_add(T::DbWeight::get().reads(1 as Weight))
90 }
76 // Storage: Balances Locks (r:1 w:1)91 // Storage: System Account (r:1 w:0)
92 fn recalculate_stake() -> Weight {
93 (2_203_000 as Weight)
94 .saturating_add(T::DbWeight::get().reads(1 as Weight))
95 }
77 // Storage: ParachainSystem ValidationData (r:1 w:0)96 // Storage: Promotion Admin (r:1 w:0)
97 // Storage: Common CollectionById (r:1 w:1)
98 fn sponsor_collection() -> Weight {
99 (10_882_000 as Weight)
100 .saturating_add(T::DbWeight::get().reads(2 as Weight))
101 .saturating_add(T::DbWeight::get().writes(1 as Weight))
102 }
78 // Storage: Promotion Staked (r:1 w:1)103 // Storage: Promotion Admin (r:1 w:0)
79 // Storage: Promotion TotalStaked (r:1 w:1)104 // Storage: Common CollectionById (r:1 w:1)
80 fn unstake() -> Weight {105 fn stop_sponsoring_collection() -> Weight {
81 (10_619_000 as Weight)106 (10_544_000 as Weight)
82 .saturating_add(T::DbWeight::get().reads(5 as Weight))107 .saturating_add(T::DbWeight::get().reads(2 as Weight))
83 .saturating_add(T::DbWeight::get().writes(4 as Weight))108 .saturating_add(T::DbWeight::get().writes(1 as Weight))
84 }109 }
85 // Storage: System Account (r:2 w:0)110 // Storage: Promotion Admin (r:1 w:0)
111 // Storage: EvmContractHelpers Sponsoring (r:0 w:1)
112 fn sponsor_contract() -> Weight {
113 (2_163_000 as Weight)
114 .saturating_add(T::DbWeight::get().reads(1 as Weight))
115 .saturating_add(T::DbWeight::get().writes(1 as Weight))
116 }
86 // Storage: Promotion Staked (r:0 w:1)117 // Storage: Promotion Admin (r:1 w:0)
118 // Storage: EvmContractHelpers Sponsoring (r:1 w:1)
87 fn recalculate_stake() -> Weight {119 fn stop_sponsoring_contract() -> Weight {
88 (4_932_000 as Weight)120 (3_511_000 as Weight)
89 .saturating_add(T::DbWeight::get().reads(2 as Weight))121 .saturating_add(T::DbWeight::get().reads(2 as Weight))
90 .saturating_add(T::DbWeight::get().writes(1 as Weight))122 .saturating_add(T::DbWeight::get().writes(1 as Weight))
91 }123 }
92}124}
93125
94// For backwards compatibility and tests126// For backwards compatibility and tests
95impl WeightInfo for () {127impl WeightInfo for () {
96 // Storage: Promotion PendingUnstake (r:1 w:0)128 // Storage: Promotion StartBlock (r:1 w:1)
129 // Storage: ParachainSystem ValidationData (r:1 w:0)
97 // Storage: Promotion NextInterestBlock (r:1 w:0)130 // Storage: Promotion NextInterestBlock (r:0 w:1)
98 fn on_initialize() -> Weight {131 fn start_app_promotion() -> Weight {
99 (2_705_000 as Weight)132 (2_299_000 as Weight)
133 .saturating_add(RocksDbWeight::get().reads(2 as Weight))
100 .saturating_add(RocksDbWeight::get().reads(2 as Weight))134 .saturating_add(RocksDbWeight::get().writes(2 as Weight))
101 }135 }
102 // Storage: Promotion StartBlock (r:1 w:1)136 // Storage: Promotion StartBlock (r:1 w:1)
103 // Storage: Promotion NextInterestBlock (r:0 w:1)137 // Storage: Promotion NextInterestBlock (r:0 w:1)
104 fn start_app_promotion() -> Weight {138 fn stop_app_promotion() -> Weight {
105 (1_436_000 as Weight)139 (1_733_000 as Weight)
106 .saturating_add(RocksDbWeight::get().reads(1 as Weight))140 .saturating_add(RocksDbWeight::get().reads(1 as Weight))
107 .saturating_add(RocksDbWeight::get().writes(2 as Weight))141 .saturating_add(RocksDbWeight::get().writes(2 as Weight))
108 }142 }
109 // Storage: Promotion Admin (r:0 w:1)143 // Storage: Promotion Admin (r:0 w:1)
110 fn set_admin_address() -> Weight {144 fn set_admin_address() -> Weight {
111 (516_000 as Weight)145 (553_000 as Weight)
112 .saturating_add(RocksDbWeight::get().writes(1 as Weight))146 .saturating_add(RocksDbWeight::get().writes(1 as Weight))
113 }147 }
148 // Storage: Promotion Admin (r:1 w:0)
149 fn payout_stakers() -> Weight {
150 (1_398_000 as Weight)
151 .saturating_add(RocksDbWeight::get().reads(1 as Weight))
152 }
114 // Storage: System Account (r:1 w:1)153 // Storage: System Account (r:1 w:1)
115 // Storage: Balances Locks (r:1 w:1)154 // Storage: Balances Locks (r:1 w:1)
116 // Storage: ParachainSystem ValidationData (r:1 w:0)155 // Storage: ParachainSystem ValidationData (r:1 w:0)
117 // Storage: Promotion Staked (r:1 w:1)156 // Storage: Promotion Staked (r:1 w:1)
118 // Storage: Promotion TotalStaked (r:1 w:1)
119 fn stake() -> Weight {157 fn stake() -> Weight {
120 (10_019_000 as Weight)158 (9_506_000 as Weight)
121 .saturating_add(RocksDbWeight::get().reads(5 as Weight))159 .saturating_add(RocksDbWeight::get().reads(4 as Weight))
122 .saturating_add(RocksDbWeight::get().writes(4 as Weight))160 .saturating_add(RocksDbWeight::get().writes(3 as Weight))
123 }161 }
124 // Storage: System Account (r:1 w:1)162 // Storage: System Account (r:1 w:0)
163 fn unstake() -> Weight {
164 (2_529_000 as Weight)
165 .saturating_add(RocksDbWeight::get().reads(1 as Weight))
166 }
125 // Storage: Balances Locks (r:1 w:1)167 // Storage: System Account (r:1 w:0)
168 fn recalculate_stake() -> Weight {
169 (2_203_000 as Weight)
170 .saturating_add(RocksDbWeight::get().reads(1 as Weight))
171 }
126 // Storage: ParachainSystem ValidationData (r:1 w:0)172 // Storage: Promotion Admin (r:1 w:0)
173 // Storage: Common CollectionById (r:1 w:1)
174 fn sponsor_collection() -> Weight {
175 (10_882_000 as Weight)
176 .saturating_add(RocksDbWeight::get().reads(2 as Weight))
177 .saturating_add(RocksDbWeight::get().writes(1 as Weight))
178 }
127 // Storage: Promotion Staked (r:1 w:1)179 // Storage: Promotion Admin (r:1 w:0)
128 // Storage: Promotion TotalStaked (r:1 w:1)180 // Storage: Common CollectionById (r:1 w:1)
129 fn unstake() -> Weight {181 fn stop_sponsoring_collection() -> Weight {
130 (10_619_000 as Weight)182 (10_544_000 as Weight)
131 .saturating_add(RocksDbWeight::get().reads(5 as Weight))183 .saturating_add(RocksDbWeight::get().reads(2 as Weight))
132 .saturating_add(RocksDbWeight::get().writes(4 as Weight))184 .saturating_add(RocksDbWeight::get().writes(1 as Weight))
133 }185 }
134 // Storage: System Account (r:2 w:0)186 // Storage: Promotion Admin (r:1 w:0)
187 // Storage: EvmContractHelpers Sponsoring (r:0 w:1)
188 fn sponsor_contract() -> Weight {
189 (2_163_000 as Weight)
190 .saturating_add(RocksDbWeight::get().reads(1 as Weight))
191 .saturating_add(RocksDbWeight::get().writes(1 as Weight))
192 }
135 // Storage: Promotion Staked (r:0 w:1)193 // Storage: Promotion Admin (r:1 w:0)
194 // Storage: EvmContractHelpers Sponsoring (r:1 w:1)
136 fn recalculate_stake() -> Weight {195 fn stop_sponsoring_contract() -> Weight {
137 (4_932_000 as Weight)196 (3_511_000 as Weight)
138 .saturating_add(RocksDbWeight::get().reads(2 as Weight))197 .saturating_add(RocksDbWeight::get().reads(2 as Weight))
139 .saturating_add(RocksDbWeight::get().writes(1 as Weight))198 .saturating_add(RocksDbWeight::get().writes(1 as Weight))
140 }199 }
modifiedpallets/unique/src/benchmarking.rsdiffbeforeafterboth
46 )?;46 )?;
47 Ok(<pallet_common::CreatedCollectionCount<T>>::get())47 Ok(<pallet_common::CreatedCollectionCount<T>>::get())
48}48}
49fn create_nft_collection<T: Config>(owner: T::AccountId) -> Result<CollectionId, DispatchError> {49pub fn create_nft_collection<T: Config>(
50 owner: T::AccountId,
51) -> Result<CollectionId, DispatchError> {
50 create_collection_helper::<T>(owner, CollectionMode::NFT)52 create_collection_helper::<T>(owner, CollectionMode::NFT)
modifiedpallets/unique/src/lib.rsdiffbeforeafterboth
98pub mod eth;98pub mod eth;
9999
100#[cfg(feature = "runtime-benchmarks")]100#[cfg(feature = "runtime-benchmarks")]
101mod benchmarking;101pub mod benchmarking;
102pub mod weights;102pub mod weights;
103use weights::WeightInfo;103use weights::WeightInfo;
104104
modifiedtests/src/interfaces/augment-api-events.tsdiffbeforeafterboth
361 [key: string]: AugmentedEvent<ApiType>;361 [key: string]: AugmentedEvent<ApiType>;
362 };362 };
363 promotion: {363 promotion: {
364 StakingRecalculation: AugmentedEvent<ApiType, [u128, u128]>;364 StakingRecalculation: AugmentedEvent<ApiType, [AccountId32, u128, u128]>;
365 /**365 /**
366 * Generic event366 * Generic event
367 **/367 **/
modifiedtests/src/interfaces/augment-api-query.tsdiffbeforeafterboth
512 };512 };
513 promotion: {513 promotion: {
514 admin: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;514 admin: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
515 /**
516 * Stores the address of the staker for which the last revenue recalculation was performed.
517 * If `None`, then recalculation has not yet been performed or calculations have been completed for all stakers.
518 **/
519 lastCalcucaltedStaker: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
515 /**520 /**
516 * Next target block when interest is recalculated521 * Next target block when interest is recalculated
517 **/522 **/
523 /**528 /**
524 * Amount of tokens staked by account in the blocknumber.529 * Amount of tokens staked by account in the blocknumber.
525 **/530 **/
526 staked: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<u128>, [AccountId32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32]>;531 staked: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<ITuple<[u128, u32]>>, [AccountId32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32]>;
527 /**532 /**
528 * A block when app-promotion has started .I think this is redundant, because we only need `NextInterestBlock`.533 * A block when app-promotion has started .I think this is redundant, because we only need `NextInterestBlock`.
529 **/534 **/
modifiedtests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth
363 [key: string]: SubmittableExtrinsicFunction<ApiType>;363 [key: string]: SubmittableExtrinsicFunction<ApiType>;
364 };364 };
365 promotion: {365 promotion: {
366 payoutStakers: AugmentedSubmittable<(stakersNumber: Option<u8> | null | Uint8Array | u8 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u8>]>;
366 setAdminAddress: AugmentedSubmittable<(admin: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr]>;367 setAdminAddress: AugmentedSubmittable<(admin: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr]>;
367 sponsorCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;368 sponsorCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
368 sponsorConract: AugmentedSubmittable<(contractId: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;369 sponsorConract: AugmentedSubmittable<(contractId: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;
369 stake: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;370 stake: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
370 startAppPromotion: AugmentedSubmittable<(promotionStartRelayBlock: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;371 startAppPromotion: AugmentedSubmittable<(promotionStartRelayBlock: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
371 stopAppPromotion: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;372 stopAppPromotion: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
372 stopSponsorignCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;373 stopSponsoringCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
373 stopSponsorignContract: AugmentedSubmittable<(contractId: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;374 stopSponsoringContract: AugmentedSubmittable<(contractId: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;
374 unstake: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;375 unstake: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
375 /**376 /**
376 * Generic tx377 * Generic tx
modifiedtests/src/interfaces/default/types.tsdiffbeforeafterboth
829 readonly asSponsorCollection: {829 readonly asSponsorCollection: {
830 readonly collectionId: u32;830 readonly collectionId: u32;
831 } & Struct;831 } & Struct;
832 readonly isStopSponsorignCollection: boolean;832 readonly isStopSponsoringCollection: boolean;
833 readonly asStopSponsorignCollection: {833 readonly asStopSponsoringCollection: {
834 readonly collectionId: u32;834 readonly collectionId: u32;
835 } & Struct;835 } & Struct;
836 readonly isSponsorConract: boolean;836 readonly isSponsorConract: boolean;
837 readonly asSponsorConract: {837 readonly asSponsorConract: {
838 readonly contractId: H160;838 readonly contractId: H160;
839 } & Struct;839 } & Struct;
840 readonly isStopSponsorignContract: boolean;840 readonly isStopSponsoringContract: boolean;
841 readonly asStopSponsorignContract: {841 readonly asStopSponsoringContract: {
842 readonly contractId: H160;842 readonly contractId: H160;
843 } & Struct;843 } & Struct;
844 readonly isPayoutStakers: boolean;
845 readonly asPayoutStakers: {
846 readonly stakersNumber: Option<u8>;
847 } & Struct;
844 readonly type: 'SetAdminAddress' | 'StartAppPromotion' | 'StopAppPromotion' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsorignCollection' | 'SponsorConract' | 'StopSponsorignContract';848 readonly type: 'SetAdminAddress' | 'StartAppPromotion' | 'StopAppPromotion' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsoringCollection' | 'SponsorConract' | 'StopSponsoringContract' | 'PayoutStakers';
845}849}
846850
847/** @name PalletAppPromotionError */851/** @name PalletAppPromotionError */
856/** @name PalletAppPromotionEvent */860/** @name PalletAppPromotionEvent */
857export interface PalletAppPromotionEvent extends Enum {861export interface PalletAppPromotionEvent extends Enum {
858 readonly isStakingRecalculation: boolean;862 readonly isStakingRecalculation: boolean;
859 readonly asStakingRecalculation: ITuple<[u128, u128]>;863 readonly asStakingRecalculation: ITuple<[AccountId32, u128, u128]>;
860 readonly type: 'StakingRecalculation';864 readonly type: 'StakingRecalculation';
861}865}
862866
modifiedtests/src/interfaces/lookup.tsdiffbeforeafterboth
1061 **/1061 **/
1062 PalletAppPromotionEvent: {1062 PalletAppPromotionEvent: {
1063 _enum: {1063 _enum: {
1064 StakingRecalculation: '(u128,u128)'1064 StakingRecalculation: '(AccountId32,u128,u128)'
1065 }1065 }
1066 },1066 },
1067 /**1067 /**
2473 sponsor_collection: {2473 sponsor_collection: {
2474 collectionId: 'u32',2474 collectionId: 'u32',
2475 },2475 },
2476 stop_sponsorign_collection: {2476 stop_sponsoring_collection: {
2477 collectionId: 'u32',2477 collectionId: 'u32',
2478 },2478 },
2479 sponsor_conract: {2479 sponsor_conract: {
2480 contractId: 'H160',2480 contractId: 'H160',
2481 },2481 },
2482 stop_sponsorign_contract: {2482 stop_sponsoring_contract: {
2483 contractId: 'H160'2483 contractId: 'H160',
2484 }2484 },
2485 payout_stakers: {
2486 stakersNumber: 'Option<u8>'
2487 }
2485 }2488 }
2486 },2489 },
2487 /**2490 /**
2488 * Lookup305: pallet_evm::pallet::Call<T>2491 * Lookup306: pallet_evm::pallet::Call<T>
2489 **/2492 **/
2490 PalletEvmCall: {2493 PalletEvmCall: {
2491 _enum: {2494 _enum: {
2492 withdraw: {2495 withdraw: {
2527 }2530 }
2528 }2531 }
2529 },2532 },
2530 /**2533 /**
2531 * Lookup309: pallet_ethereum::pallet::Call<T>2534 * Lookup310: pallet_ethereum::pallet::Call<T>
2532 **/2535 **/
2533 PalletEthereumCall: {2536 PalletEthereumCall: {
2534 _enum: {2537 _enum: {
2535 transact: {2538 transact: {
2536 transaction: 'EthereumTransactionTransactionV2'2539 transaction: 'EthereumTransactionTransactionV2'
2537 }2540 }
2538 }2541 }
2539 },2542 },
2540 /**2543 /**
2541 * Lookup310: ethereum::transaction::TransactionV22544 * Lookup311: ethereum::transaction::TransactionV2
2542 **/2545 **/
2543 EthereumTransactionTransactionV2: {2546 EthereumTransactionTransactionV2: {
2544 _enum: {2547 _enum: {
2545 Legacy: 'EthereumTransactionLegacyTransaction',2548 Legacy: 'EthereumTransactionLegacyTransaction',
2546 EIP2930: 'EthereumTransactionEip2930Transaction',2549 EIP2930: 'EthereumTransactionEip2930Transaction',
2547 EIP1559: 'EthereumTransactionEip1559Transaction'2550 EIP1559: 'EthereumTransactionEip1559Transaction'
2548 }2551 }
2549 },2552 },
2550 /**2553 /**
2551 * Lookup311: ethereum::transaction::LegacyTransaction2554 * Lookup312: ethereum::transaction::LegacyTransaction
2552 **/2555 **/
2553 EthereumTransactionLegacyTransaction: {2556 EthereumTransactionLegacyTransaction: {
2554 nonce: 'U256',2557 nonce: 'U256',
2555 gasPrice: 'U256',2558 gasPrice: 'U256',
2559 input: 'Bytes',2562 input: 'Bytes',
2560 signature: 'EthereumTransactionTransactionSignature'2563 signature: 'EthereumTransactionTransactionSignature'
2561 },2564 },
2562 /**2565 /**
2563 * Lookup312: ethereum::transaction::TransactionAction2566 * Lookup313: ethereum::transaction::TransactionAction
2564 **/2567 **/
2565 EthereumTransactionTransactionAction: {2568 EthereumTransactionTransactionAction: {
2566 _enum: {2569 _enum: {
2567 Call: 'H160',2570 Call: 'H160',
2568 Create: 'Null'2571 Create: 'Null'
2569 }2572 }
2570 },2573 },
2571 /**2574 /**
2572 * Lookup313: ethereum::transaction::TransactionSignature2575 * Lookup314: ethereum::transaction::TransactionSignature
2573 **/2576 **/
2574 EthereumTransactionTransactionSignature: {2577 EthereumTransactionTransactionSignature: {
2575 v: 'u64',2578 v: 'u64',
2576 r: 'H256',2579 r: 'H256',
2577 s: 'H256'2580 s: 'H256'
2578 },2581 },
2579 /**2582 /**
2580 * Lookup315: ethereum::transaction::EIP2930Transaction2583 * Lookup316: ethereum::transaction::EIP2930Transaction
2581 **/2584 **/
2582 EthereumTransactionEip2930Transaction: {2585 EthereumTransactionEip2930Transaction: {
2583 chainId: 'u64',2586 chainId: 'u64',
2584 nonce: 'U256',2587 nonce: 'U256',
2592 r: 'H256',2595 r: 'H256',
2593 s: 'H256'2596 s: 'H256'
2594 },2597 },
2595 /**2598 /**
2596 * Lookup317: ethereum::transaction::AccessListItem2599 * Lookup318: ethereum::transaction::AccessListItem
2597 **/2600 **/
2598 EthereumTransactionAccessListItem: {2601 EthereumTransactionAccessListItem: {
2599 address: 'H160',2602 address: 'H160',
2600 storageKeys: 'Vec<H256>'2603 storageKeys: 'Vec<H256>'
2601 },2604 },
2602 /**2605 /**
2603 * Lookup318: ethereum::transaction::EIP1559Transaction2606 * Lookup319: ethereum::transaction::EIP1559Transaction
2604 **/2607 **/
2605 EthereumTransactionEip1559Transaction: {2608 EthereumTransactionEip1559Transaction: {
2606 chainId: 'u64',2609 chainId: 'u64',
2607 nonce: 'U256',2610 nonce: 'U256',
2616 r: 'H256',2619 r: 'H256',
2617 s: 'H256'2620 s: 'H256'
2618 },2621 },
2619 /**2622 /**
2620 * Lookup319: pallet_evm_migration::pallet::Call<T>2623 * Lookup320: pallet_evm_migration::pallet::Call<T>
2621 **/2624 **/
2622 PalletEvmMigrationCall: {2625 PalletEvmMigrationCall: {
2623 _enum: {2626 _enum: {
2624 begin: {2627 begin: {
2634 }2637 }
2635 }2638 }
2636 },2639 },
2637 /**2640 /**
2638 * Lookup322: pallet_sudo::pallet::Error<T>2641 * Lookup323: pallet_sudo::pallet::Error<T>
2639 **/2642 **/
2640 PalletSudoError: {2643 PalletSudoError: {
2641 _enum: ['RequireSudo']2644 _enum: ['RequireSudo']
2642 },2645 },
2643 /**2646 /**
2644 * Lookup324: orml_vesting::module::Error<T>2647 * Lookup325: orml_vesting::module::Error<T>
2645 **/2648 **/
2646 OrmlVestingModuleError: {2649 OrmlVestingModuleError: {
2647 _enum: ['ZeroVestingPeriod', 'ZeroVestingPeriodCount', 'InsufficientBalanceToLock', 'TooManyVestingSchedules', 'AmountLow', 'MaxVestingSchedulesExceeded']2650 _enum: ['ZeroVestingPeriod', 'ZeroVestingPeriodCount', 'InsufficientBalanceToLock', 'TooManyVestingSchedules', 'AmountLow', 'MaxVestingSchedulesExceeded']
2648 },2651 },
2649 /**2652 /**
2650 * Lookup326: cumulus_pallet_xcmp_queue::InboundChannelDetails2653 * Lookup327: cumulus_pallet_xcmp_queue::InboundChannelDetails
2651 **/2654 **/
2652 CumulusPalletXcmpQueueInboundChannelDetails: {2655 CumulusPalletXcmpQueueInboundChannelDetails: {
2653 sender: 'u32',2656 sender: 'u32',
2654 state: 'CumulusPalletXcmpQueueInboundState',2657 state: 'CumulusPalletXcmpQueueInboundState',
2655 messageMetadata: 'Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>'2658 messageMetadata: 'Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>'
2656 },2659 },
2657 /**2660 /**
2658 * Lookup327: cumulus_pallet_xcmp_queue::InboundState2661 * Lookup328: cumulus_pallet_xcmp_queue::InboundState
2659 **/2662 **/
2660 CumulusPalletXcmpQueueInboundState: {2663 CumulusPalletXcmpQueueInboundState: {
2661 _enum: ['Ok', 'Suspended']2664 _enum: ['Ok', 'Suspended']
2662 },2665 },
2663 /**2666 /**
2664 * Lookup330: polkadot_parachain::primitives::XcmpMessageFormat2667 * Lookup331: polkadot_parachain::primitives::XcmpMessageFormat
2665 **/2668 **/
2666 PolkadotParachainPrimitivesXcmpMessageFormat: {2669 PolkadotParachainPrimitivesXcmpMessageFormat: {
2667 _enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals']2670 _enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals']
2668 },2671 },
2669 /**2672 /**
2670 * Lookup333: cumulus_pallet_xcmp_queue::OutboundChannelDetails2673 * Lookup334: cumulus_pallet_xcmp_queue::OutboundChannelDetails
2671 **/2674 **/
2672 CumulusPalletXcmpQueueOutboundChannelDetails: {2675 CumulusPalletXcmpQueueOutboundChannelDetails: {
2673 recipient: 'u32',2676 recipient: 'u32',
2674 state: 'CumulusPalletXcmpQueueOutboundState',2677 state: 'CumulusPalletXcmpQueueOutboundState',
2675 signalsExist: 'bool',2678 signalsExist: 'bool',
2676 firstIndex: 'u16',2679 firstIndex: 'u16',
2677 lastIndex: 'u16'2680 lastIndex: 'u16'
2678 },2681 },
2679 /**2682 /**
2680 * Lookup334: cumulus_pallet_xcmp_queue::OutboundState2683 * Lookup335: cumulus_pallet_xcmp_queue::OutboundState
2681 **/2684 **/
2682 CumulusPalletXcmpQueueOutboundState: {2685 CumulusPalletXcmpQueueOutboundState: {
2683 _enum: ['Ok', 'Suspended']2686 _enum: ['Ok', 'Suspended']
2684 },2687 },
2685 /**2688 /**
2686 * Lookup336: cumulus_pallet_xcmp_queue::QueueConfigData2689 * Lookup337: cumulus_pallet_xcmp_queue::QueueConfigData
2687 **/2690 **/
2688 CumulusPalletXcmpQueueQueueConfigData: {2691 CumulusPalletXcmpQueueQueueConfigData: {
2689 suspendThreshold: 'u32',2692 suspendThreshold: 'u32',
2690 dropThreshold: 'u32',2693 dropThreshold: 'u32',
2693 weightRestrictDecay: 'u64',2696 weightRestrictDecay: 'u64',
2694 xcmpMaxIndividualWeight: 'u64'2697 xcmpMaxIndividualWeight: 'u64'
2695 },2698 },
2696 /**2699 /**
2697 * Lookup338: cumulus_pallet_xcmp_queue::pallet::Error<T>2700 * Lookup339: cumulus_pallet_xcmp_queue::pallet::Error<T>
2698 **/2701 **/
2699 CumulusPalletXcmpQueueError: {2702 CumulusPalletXcmpQueueError: {
2700 _enum: ['FailedToSend', 'BadXcmOrigin', 'BadXcm', 'BadOverweightIndex', 'WeightOverLimit']2703 _enum: ['FailedToSend', 'BadXcmOrigin', 'BadXcm', 'BadOverweightIndex', 'WeightOverLimit']
2701 },2704 },
2702 /**2705 /**
2703 * Lookup339: pallet_xcm::pallet::Error<T>2706 * Lookup340: pallet_xcm::pallet::Error<T>
2704 **/2707 **/
2705 PalletXcmError: {2708 PalletXcmError: {
2706 _enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed']2709 _enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed']
2707 },2710 },
2708 /**2711 /**
2709 * Lookup340: cumulus_pallet_xcm::pallet::Error<T>2712 * Lookup341: cumulus_pallet_xcm::pallet::Error<T>
2710 **/2713 **/
2711 CumulusPalletXcmError: 'Null',2714 CumulusPalletXcmError: 'Null',
2712 /**2715 /**
2713 * Lookup341: cumulus_pallet_dmp_queue::ConfigData2716 * Lookup342: cumulus_pallet_dmp_queue::ConfigData
2714 **/2717 **/
2715 CumulusPalletDmpQueueConfigData: {2718 CumulusPalletDmpQueueConfigData: {
2716 maxIndividual: 'u64'2719 maxIndividual: 'u64'
2717 },2720 },
2718 /**2721 /**
2719 * Lookup342: cumulus_pallet_dmp_queue::PageIndexData2722 * Lookup343: cumulus_pallet_dmp_queue::PageIndexData
2720 **/2723 **/
2721 CumulusPalletDmpQueuePageIndexData: {2724 CumulusPalletDmpQueuePageIndexData: {
2722 beginUsed: 'u32',2725 beginUsed: 'u32',
2723 endUsed: 'u32',2726 endUsed: 'u32',
2724 overweightCount: 'u64'2727 overweightCount: 'u64'
2725 },2728 },
2726 /**2729 /**
2727 * Lookup345: cumulus_pallet_dmp_queue::pallet::Error<T>2730 * Lookup346: cumulus_pallet_dmp_queue::pallet::Error<T>
2728 **/2731 **/
2729 CumulusPalletDmpQueueError: {2732 CumulusPalletDmpQueueError: {
2730 _enum: ['Unknown', 'OverLimit']2733 _enum: ['Unknown', 'OverLimit']
2731 },2734 },
2732 /**2735 /**
2733 * Lookup349: pallet_unique::Error<T>2736 * Lookup350: pallet_unique::Error<T>
2734 **/2737 **/
2735 PalletUniqueError: {2738 PalletUniqueError: {
2736 _enum: ['CollectionDecimalPointLimitExceeded', 'ConfirmUnsetSponsorFail', 'EmptyArgument', 'RepartitionCalledOnNonRefungibleCollection']2739 _enum: ['CollectionDecimalPointLimitExceeded', 'ConfirmUnsetSponsorFail', 'EmptyArgument', 'RepartitionCalledOnNonRefungibleCollection']
2737 },2740 },
2738 /**2741 /**
2739 * Lookup352: pallet_unique_scheduler::ScheduledV3<frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>, BlockNumber, opal_runtime::OriginCaller, sp_core::crypto::AccountId32>2742 * Lookup353: pallet_unique_scheduler::ScheduledV3<frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>, BlockNumber, opal_runtime::OriginCaller, sp_core::crypto::AccountId32>
2740 **/2743 **/
2741 PalletUniqueSchedulerScheduledV3: {2744 PalletUniqueSchedulerScheduledV3: {
2742 maybeId: 'Option<[u8;16]>',2745 maybeId: 'Option<[u8;16]>',
2743 priority: 'u8',2746 priority: 'u8',
2744 call: 'FrameSupportScheduleMaybeHashed',2747 call: 'FrameSupportScheduleMaybeHashed',
2745 maybePeriodic: 'Option<(u32,u32)>',2748 maybePeriodic: 'Option<(u32,u32)>',
2746 origin: 'OpalRuntimeOriginCaller'2749 origin: 'OpalRuntimeOriginCaller'
2747 },2750 },
2748 /**2751 /**
2749 * Lookup353: opal_runtime::OriginCaller2752 * Lookup354: opal_runtime::OriginCaller
2750 **/2753 **/
2751 OpalRuntimeOriginCaller: {2754 OpalRuntimeOriginCaller: {
2752 _enum: {2755 _enum: {
2753 system: 'FrameSupportDispatchRawOrigin',2756 system: 'FrameSupportDispatchRawOrigin',
2854 Ethereum: 'PalletEthereumRawOrigin'2857 Ethereum: 'PalletEthereumRawOrigin'
2855 }2858 }
2856 },2859 },
2857 /**2860 /**
2858 * Lookup354: frame_support::dispatch::RawOrigin<sp_core::crypto::AccountId32>2861 * Lookup355: frame_support::dispatch::RawOrigin<sp_core::crypto::AccountId32>
2859 **/2862 **/
2860 FrameSupportDispatchRawOrigin: {2863 FrameSupportDispatchRawOrigin: {
2861 _enum: {2864 _enum: {
2862 Root: 'Null',2865 Root: 'Null',
2863 Signed: 'AccountId32',2866 Signed: 'AccountId32',
2864 None: 'Null'2867 None: 'Null'
2865 }2868 }
2866 },2869 },
2867 /**2870 /**
2868 * Lookup355: pallet_xcm::pallet::Origin2871 * Lookup356: pallet_xcm::pallet::Origin
2869 **/2872 **/
2870 PalletXcmOrigin: {2873 PalletXcmOrigin: {
2871 _enum: {2874 _enum: {
2872 Xcm: 'XcmV1MultiLocation',2875 Xcm: 'XcmV1MultiLocation',
2873 Response: 'XcmV1MultiLocation'2876 Response: 'XcmV1MultiLocation'
2874 }2877 }
2875 },2878 },
2876 /**2879 /**
2877 * Lookup356: cumulus_pallet_xcm::pallet::Origin2880 * Lookup357: cumulus_pallet_xcm::pallet::Origin
2878 **/2881 **/
2879 CumulusPalletXcmOrigin: {2882 CumulusPalletXcmOrigin: {
2880 _enum: {2883 _enum: {
2881 Relay: 'Null',2884 Relay: 'Null',
2882 SiblingParachain: 'u32'2885 SiblingParachain: 'u32'
2883 }2886 }
2884 },2887 },
2885 /**2888 /**
2886 * Lookup357: pallet_ethereum::RawOrigin2889 * Lookup358: pallet_ethereum::RawOrigin
2887 **/2890 **/
2888 PalletEthereumRawOrigin: {2891 PalletEthereumRawOrigin: {
2889 _enum: {2892 _enum: {
2890 EthereumTransaction: 'H160'2893 EthereumTransaction: 'H160'
2891 }2894 }
2892 },2895 },
2893 /**2896 /**
2894 * Lookup358: sp_core::Void2897 * Lookup359: sp_core::Void
2895 **/2898 **/
2896 SpCoreVoid: 'Null',2899 SpCoreVoid: 'Null',
2897 /**2900 /**
2898 * Lookup359: pallet_unique_scheduler::pallet::Error<T>2901 * Lookup360: pallet_unique_scheduler::pallet::Error<T>
2899 **/2902 **/
2900 PalletUniqueSchedulerError: {2903 PalletUniqueSchedulerError: {
2901 _enum: ['FailedToSchedule', 'NotFound', 'TargetBlockNumberInPast', 'RescheduleNoChange']2904 _enum: ['FailedToSchedule', 'NotFound', 'TargetBlockNumberInPast', 'RescheduleNoChange']
2902 },2905 },
2903 /**2906 /**
2904 * Lookup360: up_data_structs::Collection<sp_core::crypto::AccountId32>2907 * Lookup361: up_data_structs::Collection<sp_core::crypto::AccountId32>
2905 **/2908 **/
2906 UpDataStructsCollection: {2909 UpDataStructsCollection: {
2907 owner: 'AccountId32',2910 owner: 'AccountId32',
2908 mode: 'UpDataStructsCollectionMode',2911 mode: 'UpDataStructsCollectionMode',
2914 permissions: 'UpDataStructsCollectionPermissions',2917 permissions: 'UpDataStructsCollectionPermissions',
2915 externalCollection: 'bool'2918 externalCollection: 'bool'
2916 },2919 },
2917 /**2920 /**
2918 * Lookup361: up_data_structs::SponsorshipState<sp_core::crypto::AccountId32>2921 * Lookup362: up_data_structs::SponsorshipState<sp_core::crypto::AccountId32>
2919 **/2922 **/
2920 UpDataStructsSponsorshipStateAccountId32: {2923 UpDataStructsSponsorshipStateAccountId32: {
2921 _enum: {2924 _enum: {
2922 Disabled: 'Null',2925 Disabled: 'Null',
2923 Unconfirmed: 'AccountId32',2926 Unconfirmed: 'AccountId32',
2924 Confirmed: 'AccountId32'2927 Confirmed: 'AccountId32'
2925 }2928 }
2926 },2929 },
2927 /**2930 /**
2928 * Lookup362: up_data_structs::Properties2931 * Lookup363: up_data_structs::Properties
2929 **/2932 **/
2930 UpDataStructsProperties: {2933 UpDataStructsProperties: {
2931 map: 'UpDataStructsPropertiesMapBoundedVec',2934 map: 'UpDataStructsPropertiesMapBoundedVec',
2932 consumedSpace: 'u32',2935 consumedSpace: 'u32',
2933 spaceLimit: 'u32'2936 spaceLimit: 'u32'
2934 },2937 },
2935 /**2938 /**
2936 * Lookup363: up_data_structs::PropertiesMap<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>2939 * Lookup364: up_data_structs::PropertiesMap<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
2937 **/2940 **/
2938 UpDataStructsPropertiesMapBoundedVec: 'BTreeMap<Bytes, Bytes>',2941 UpDataStructsPropertiesMapBoundedVec: 'BTreeMap<Bytes, Bytes>',
2939 /**2942 /**
2940 * Lookup368: up_data_structs::PropertiesMap<up_data_structs::PropertyPermission>2943 * Lookup369: up_data_structs::PropertiesMap<up_data_structs::PropertyPermission>
2941 **/2944 **/
2942 UpDataStructsPropertiesMapPropertyPermission: 'BTreeMap<Bytes, UpDataStructsPropertyPermission>',2945 UpDataStructsPropertiesMapPropertyPermission: 'BTreeMap<Bytes, UpDataStructsPropertyPermission>',
2943 /**2946 /**
2944 * Lookup375: up_data_structs::CollectionStats2947 * Lookup376: up_data_structs::CollectionStats
2945 **/2948 **/
2946 UpDataStructsCollectionStats: {2949 UpDataStructsCollectionStats: {
2947 created: 'u32',2950 created: 'u32',
2948 destroyed: 'u32',2951 destroyed: 'u32',
2949 alive: 'u32'2952 alive: 'u32'
2950 },2953 },
2951 /**2954 /**
2952 * Lookup376: up_data_structs::TokenChild2955 * Lookup377: up_data_structs::TokenChild
2953 **/2956 **/
2954 UpDataStructsTokenChild: {2957 UpDataStructsTokenChild: {
2955 token: 'u32',2958 token: 'u32',
2956 collection: 'u32'2959 collection: 'u32'
2957 },2960 },
2958 /**2961 /**
2959 * Lookup377: PhantomType::up_data_structs<T>2962 * Lookup378: PhantomType::up_data_structs<T>
2960 **/2963 **/
2961 PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,RmrkTraitsCollectionCollectionInfo,RmrkTraitsNftNftInfo,RmrkTraitsResourceResourceInfo,RmrkTraitsPropertyPropertyInfo,RmrkTraitsBaseBaseInfo,RmrkTraitsPartPartType,RmrkTraitsTheme,RmrkTraitsNftNftChild);0]',2964 PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,RmrkTraitsCollectionCollectionInfo,RmrkTraitsNftNftInfo,RmrkTraitsResourceResourceInfo,RmrkTraitsPropertyPropertyInfo,RmrkTraitsBaseBaseInfo,RmrkTraitsPartPartType,RmrkTraitsTheme,RmrkTraitsNftNftChild);0]',
2962 /**2965 /**
2963 * Lookup379: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>2966 * Lookup380: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
2964 **/2967 **/
2965 UpDataStructsTokenData: {2968 UpDataStructsTokenData: {
2966 properties: 'Vec<UpDataStructsProperty>',2969 properties: 'Vec<UpDataStructsProperty>',
2967 owner: 'Option<PalletEvmAccountBasicCrossAccountIdRepr>',2970 owner: 'Option<PalletEvmAccountBasicCrossAccountIdRepr>',
2968 pieces: 'u128'2971 pieces: 'u128'
2969 },2972 },
2970 /**2973 /**
2971 * Lookup381: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>2974 * Lookup382: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>
2972 **/2975 **/
2973 UpDataStructsRpcCollection: {2976 UpDataStructsRpcCollection: {
2974 owner: 'AccountId32',2977 owner: 'AccountId32',
2975 mode: 'UpDataStructsCollectionMode',2978 mode: 'UpDataStructsCollectionMode',
2983 properties: 'Vec<UpDataStructsProperty>',2986 properties: 'Vec<UpDataStructsProperty>',
2984 readOnly: 'bool'2987 readOnly: 'bool'
2985 },2988 },
2986 /**2989 /**
2987 * Lookup382: rmrk_traits::collection::CollectionInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_core::crypto::AccountId32>2990 * Lookup383: rmrk_traits::collection::CollectionInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_core::crypto::AccountId32>
2988 **/2991 **/
2989 RmrkTraitsCollectionCollectionInfo: {2992 RmrkTraitsCollectionCollectionInfo: {
2990 issuer: 'AccountId32',2993 issuer: 'AccountId32',
2991 metadata: 'Bytes',2994 metadata: 'Bytes',
2992 max: 'Option<u32>',2995 max: 'Option<u32>',
2993 symbol: 'Bytes',2996 symbol: 'Bytes',
2994 nftsCount: 'u32'2997 nftsCount: 'u32'
2995 },2998 },
2996 /**2999 /**
2997 * Lookup383: rmrk_traits::nft::NftInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>3000 * Lookup384: rmrk_traits::nft::NftInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
2998 **/3001 **/
2999 RmrkTraitsNftNftInfo: {3002 RmrkTraitsNftNftInfo: {
3000 owner: 'RmrkTraitsNftAccountIdOrCollectionNftTuple',3003 owner: 'RmrkTraitsNftAccountIdOrCollectionNftTuple',
3001 royalty: 'Option<RmrkTraitsNftRoyaltyInfo>',3004 royalty: 'Option<RmrkTraitsNftRoyaltyInfo>',
3002 metadata: 'Bytes',3005 metadata: 'Bytes',
3003 equipped: 'bool',3006 equipped: 'bool',
3004 pending: 'bool'3007 pending: 'bool'
3005 },3008 },
3006 /**3009 /**
3007 * Lookup385: rmrk_traits::nft::RoyaltyInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill>3010 * Lookup386: rmrk_traits::nft::RoyaltyInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill>
3008 **/3011 **/
3009 RmrkTraitsNftRoyaltyInfo: {3012 RmrkTraitsNftRoyaltyInfo: {
3010 recipient: 'AccountId32',3013 recipient: 'AccountId32',
3011 amount: 'Permill'3014 amount: 'Permill'
3012 },3015 },
3013 /**3016 /**
3014 * Lookup386: rmrk_traits::resource::ResourceInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>3017 * Lookup387: rmrk_traits::resource::ResourceInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
3015 **/3018 **/
3016 RmrkTraitsResourceResourceInfo: {3019 RmrkTraitsResourceResourceInfo: {
3017 id: 'u32',3020 id: 'u32',
3018 resource: 'RmrkTraitsResourceResourceTypes',3021 resource: 'RmrkTraitsResourceResourceTypes',
3019 pending: 'bool',3022 pending: 'bool',
3020 pendingRemoval: 'bool'3023 pendingRemoval: 'bool'
3021 },3024 },
3022 /**3025 /**
3023 * Lookup387: rmrk_traits::property::PropertyInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>3026 * Lookup388: rmrk_traits::property::PropertyInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
3024 **/3027 **/
3025 RmrkTraitsPropertyPropertyInfo: {3028 RmrkTraitsPropertyPropertyInfo: {
3026 key: 'Bytes',3029 key: 'Bytes',
3027 value: 'Bytes'3030 value: 'Bytes'
3028 },3031 },
3029 /**3032 /**
3030 * Lookup388: rmrk_traits::base::BaseInfo<sp_core::crypto::AccountId32, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>3033 * Lookup389: rmrk_traits::base::BaseInfo<sp_core::crypto::AccountId32, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
3031 **/3034 **/
3032 RmrkTraitsBaseBaseInfo: {3035 RmrkTraitsBaseBaseInfo: {
3033 issuer: 'AccountId32',3036 issuer: 'AccountId32',
3034 baseType: 'Bytes',3037 baseType: 'Bytes',
3035 symbol: 'Bytes'3038 symbol: 'Bytes'
3036 },3039 },
3037 /**3040 /**
3038 * Lookup389: rmrk_traits::nft::NftChild3041 * Lookup390: rmrk_traits::nft::NftChild
3039 **/3042 **/
3040 RmrkTraitsNftNftChild: {3043 RmrkTraitsNftNftChild: {
3041 collectionId: 'u32',3044 collectionId: 'u32',
3042 nftId: 'u32'3045 nftId: 'u32'
3043 },3046 },
3044 /**3047 /**
3045 * Lookup391: pallet_common::pallet::Error<T>3048 * Lookup392: pallet_common::pallet::Error<T>
3046 **/3049 **/
3047 PalletCommonError: {3050 PalletCommonError: {
3048 _enum: ['CollectionNotFound', 'MustBeTokenOwner', 'NoPermission', 'CantDestroyNotEmptyCollection', 'PublicMintingNotAllowed', 'AddressNotInAllowlist', 'CollectionNameLimitExceeded', 'CollectionDescriptionLimitExceeded', 'CollectionTokenPrefixLimitExceeded', 'TotalCollectionsLimitExceeded', 'CollectionAdminCountExceeded', 'CollectionLimitBoundsExceeded', 'OwnerPermissionsCantBeReverted', 'TransferNotAllowed', 'AccountTokenLimitExceeded', 'CollectionTokenLimitExceeded', 'MetadataFlagFrozen', 'TokenNotFound', 'TokenValueTooLow', 'ApprovedValueTooLow', 'CantApproveMoreThanOwned', 'AddressIsZero', 'UnsupportedOperation', 'NotSufficientFounds', 'UserIsNotAllowedToNest', 'SourceCollectionIsNotAllowedToNest', 'CollectionFieldSizeExceeded', 'NoSpaceForProperty', 'PropertyLimitReached', 'PropertyKeyIsTooLong', 'InvalidCharacterInPropertyKey', 'EmptyPropertyKey', 'CollectionIsExternal', 'CollectionIsInternal']3051 _enum: ['CollectionNotFound', 'MustBeTokenOwner', 'NoPermission', 'CantDestroyNotEmptyCollection', 'PublicMintingNotAllowed', 'AddressNotInAllowlist', 'CollectionNameLimitExceeded', 'CollectionDescriptionLimitExceeded', 'CollectionTokenPrefixLimitExceeded', 'TotalCollectionsLimitExceeded', 'CollectionAdminCountExceeded', 'CollectionLimitBoundsExceeded', 'OwnerPermissionsCantBeReverted', 'TransferNotAllowed', 'AccountTokenLimitExceeded', 'CollectionTokenLimitExceeded', 'MetadataFlagFrozen', 'TokenNotFound', 'TokenValueTooLow', 'ApprovedValueTooLow', 'CantApproveMoreThanOwned', 'AddressIsZero', 'UnsupportedOperation', 'NotSufficientFounds', 'UserIsNotAllowedToNest', 'SourceCollectionIsNotAllowedToNest', 'CollectionFieldSizeExceeded', 'NoSpaceForProperty', 'PropertyLimitReached', 'PropertyKeyIsTooLong', 'InvalidCharacterInPropertyKey', 'EmptyPropertyKey', 'CollectionIsExternal', 'CollectionIsInternal']
3049 },3052 },
3050 /**3053 /**
3051 * Lookup393: pallet_fungible::pallet::Error<T>3054 * Lookup394: pallet_fungible::pallet::Error<T>
3052 **/3055 **/
3053 PalletFungibleError: {3056 PalletFungibleError: {
3054 _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed']3057 _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
3055 },3058 },
3056 /**3059 /**
3057 * Lookup394: pallet_refungible::ItemData3060 * Lookup395: pallet_refungible::ItemData
3058 **/3061 **/
3059 PalletRefungibleItemData: {3062 PalletRefungibleItemData: {
3060 constData: 'Bytes'3063 constData: 'Bytes'
3061 },3064 },
3062 /**3065 /**
3063 * Lookup399: pallet_refungible::pallet::Error<T>3066 * Lookup400: pallet_refungible::pallet::Error<T>
3064 **/3067 **/
3065 PalletRefungibleError: {3068 PalletRefungibleError: {
3066 _enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RepartitionWhileNotOwningAllPieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']3069 _enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RepartitionWhileNotOwningAllPieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
3067 },3070 },
3068 /**3071 /**
3069 * Lookup400: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>3072 * Lookup401: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
3070 **/3073 **/
3071 PalletNonfungibleItemData: {3074 PalletNonfungibleItemData: {
3072 owner: 'PalletEvmAccountBasicCrossAccountIdRepr'3075 owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
3073 },3076 },
3074 /**3077 /**
3075 * Lookup402: up_data_structs::PropertyScope3078 * Lookup403: up_data_structs::PropertyScope
3076 **/3079 **/
3077 UpDataStructsPropertyScope: {3080 UpDataStructsPropertyScope: {
3078 _enum: ['None', 'Rmrk', 'Eth']3081 _enum: ['None', 'Rmrk', 'Eth']
3079 },3082 },
3080 /**3083 /**
3081 * Lookup404: pallet_nonfungible::pallet::Error<T>3084 * Lookup405: pallet_nonfungible::pallet::Error<T>
3082 **/3085 **/
3083 PalletNonfungibleError: {3086 PalletNonfungibleError: {
3084 _enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount', 'CantBurnNftWithChildren']3087 _enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount', 'CantBurnNftWithChildren']
3085 },3088 },
3086 /**3089 /**
3087 * Lookup405: pallet_structure::pallet::Error<T>3090 * Lookup406: pallet_structure::pallet::Error<T>
3088 **/3091 **/
3089 PalletStructureError: {3092 PalletStructureError: {
3090 _enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound']3093 _enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound']
3091 },3094 },
3092 /**3095 /**
3093 * Lookup406: pallet_rmrk_core::pallet::Error<T>3096 * Lookup407: pallet_rmrk_core::pallet::Error<T>
3094 **/3097 **/
3095 PalletRmrkCoreError: {3098 PalletRmrkCoreError: {
3096 _enum: ['CorruptedCollectionType', 'RmrkPropertyKeyIsTooLong', 'RmrkPropertyValueIsTooLong', 'RmrkPropertyIsNotFound', 'UnableToDecodeRmrkData', 'CollectionNotEmpty', 'NoAvailableCollectionId', 'NoAvailableNftId', 'CollectionUnknown', 'NoPermission', 'NonTransferable', 'CollectionFullOrLocked', 'ResourceDoesntExist', 'CannotSendToDescendentOrSelf', 'CannotAcceptNonOwnedNft', 'CannotRejectNonOwnedNft', 'CannotRejectNonPendingNft', 'ResourceNotPending', 'NoAvailableResourceId']3099 _enum: ['CorruptedCollectionType', 'RmrkPropertyKeyIsTooLong', 'RmrkPropertyValueIsTooLong', 'RmrkPropertyIsNotFound', 'UnableToDecodeRmrkData', 'CollectionNotEmpty', 'NoAvailableCollectionId', 'NoAvailableNftId', 'CollectionUnknown', 'NoPermission', 'NonTransferable', 'CollectionFullOrLocked', 'ResourceDoesntExist', 'CannotSendToDescendentOrSelf', 'CannotAcceptNonOwnedNft', 'CannotRejectNonOwnedNft', 'CannotRejectNonPendingNft', 'ResourceNotPending', 'NoAvailableResourceId']
3097 },3100 },
3098 /**3101 /**
3099 * Lookup408: pallet_rmrk_equip::pallet::Error<T>3102 * Lookup409: pallet_rmrk_equip::pallet::Error<T>
3100 **/3103 **/
3101 PalletRmrkEquipError: {3104 PalletRmrkEquipError: {
3102 _enum: ['PermissionError', 'NoAvailableBaseId', 'NoAvailablePartId', 'BaseDoesntExist', 'NeedsDefaultThemeFirst', 'PartDoesntExist', 'NoEquippableOnFixedPart']3105 _enum: ['PermissionError', 'NoAvailableBaseId', 'NoAvailablePartId', 'BaseDoesntExist', 'NeedsDefaultThemeFirst', 'PartDoesntExist', 'NoEquippableOnFixedPart']
3103 },3106 },
3104 /**3107 /**
3105 * Lookup410: pallet_app_promotion::pallet::Error<T>3108 * Lookup412: pallet_app_promotion::pallet::Error<T>
3106 **/3109 **/
3107 PalletAppPromotionError: {3110 PalletAppPromotionError: {
3108 _enum: ['AdminNotSet', 'NoPermission', 'NotSufficientFounds', 'InvalidArgument']3111 _enum: ['AdminNotSet', 'NoPermission', 'NotSufficientFounds', 'InvalidArgument']
3109 },3112 },
3110 /**3113 /**
3111 * Lookup413: pallet_evm::pallet::Error<T>3114 * Lookup415: pallet_evm::pallet::Error<T>
3112 **/3115 **/
3113 PalletEvmError: {3116 PalletEvmError: {
3114 _enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce']3117 _enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce']
3115 },3118 },
3116 /**3119 /**
3117 * Lookup416: fp_rpc::TransactionStatus3120 * Lookup418: fp_rpc::TransactionStatus
3118 **/3121 **/
3119 FpRpcTransactionStatus: {3122 FpRpcTransactionStatus: {
3120 transactionHash: 'H256',3123 transactionHash: 'H256',
3121 transactionIndex: 'u32',3124 transactionIndex: 'u32',
3125 logs: 'Vec<EthereumLog>',3128 logs: 'Vec<EthereumLog>',
3126 logsBloom: 'EthbloomBloom'3129 logsBloom: 'EthbloomBloom'
3127 },3130 },
3128 /**3131 /**
3129 * Lookup418: ethbloom::Bloom3132 * Lookup420: ethbloom::Bloom
3130 **/3133 **/
3131 EthbloomBloom: '[u8;256]',3134 EthbloomBloom: '[u8;256]',
3132 /**3135 /**
3133 * Lookup420: ethereum::receipt::ReceiptV33136 * Lookup422: ethereum::receipt::ReceiptV3
3134 **/3137 **/
3135 EthereumReceiptReceiptV3: {3138 EthereumReceiptReceiptV3: {
3136 _enum: {3139 _enum: {
3137 Legacy: 'EthereumReceiptEip658ReceiptData',3140 Legacy: 'EthereumReceiptEip658ReceiptData',
3138 EIP2930: 'EthereumReceiptEip658ReceiptData',3141 EIP2930: 'EthereumReceiptEip658ReceiptData',
3139 EIP1559: 'EthereumReceiptEip658ReceiptData'3142 EIP1559: 'EthereumReceiptEip658ReceiptData'
3140 }3143 }
3141 },3144 },
3142 /**3145 /**
3143 * Lookup421: ethereum::receipt::EIP658ReceiptData3146 * Lookup423: ethereum::receipt::EIP658ReceiptData
3144 **/3147 **/
3145 EthereumReceiptEip658ReceiptData: {3148 EthereumReceiptEip658ReceiptData: {
3146 statusCode: 'u8',3149 statusCode: 'u8',
3147 usedGas: 'U256',3150 usedGas: 'U256',
3148 logsBloom: 'EthbloomBloom',3151 logsBloom: 'EthbloomBloom',
3149 logs: 'Vec<EthereumLog>'3152 logs: 'Vec<EthereumLog>'
3150 },3153 },
3151 /**3154 /**
3152 * Lookup422: ethereum::block::Block<ethereum::transaction::TransactionV2>3155 * Lookup424: ethereum::block::Block<ethereum::transaction::TransactionV2>
3153 **/3156 **/
3154 EthereumBlock: {3157 EthereumBlock: {
3155 header: 'EthereumHeader',3158 header: 'EthereumHeader',
3156 transactions: 'Vec<EthereumTransactionTransactionV2>',3159 transactions: 'Vec<EthereumTransactionTransactionV2>',
3157 ommers: 'Vec<EthereumHeader>'3160 ommers: 'Vec<EthereumHeader>'
3158 },3161 },
3159 /**3162 /**
3160 * Lookup423: ethereum::header::Header3163 * Lookup425: ethereum::header::Header
3161 **/3164 **/
3162 EthereumHeader: {3165 EthereumHeader: {
3163 parentHash: 'H256',3166 parentHash: 'H256',
3164 ommersHash: 'H256',3167 ommersHash: 'H256',
3176 mixHash: 'H256',3179 mixHash: 'H256',
3177 nonce: 'EthereumTypesHashH64'3180 nonce: 'EthereumTypesHashH64'
3178 },3181 },
3179 /**3182 /**
3180 * Lookup424: ethereum_types::hash::H643183 * Lookup426: ethereum_types::hash::H64
3181 **/3184 **/
3182 EthereumTypesHashH64: '[u8;8]',3185 EthereumTypesHashH64: '[u8;8]',
3183 /**3186 /**
3184 * Lookup429: pallet_ethereum::pallet::Error<T>3187 * Lookup431: pallet_ethereum::pallet::Error<T>
3185 **/3188 **/
3186 PalletEthereumError: {3189 PalletEthereumError: {
3187 _enum: ['InvalidSignature', 'PreLogExists']3190 _enum: ['InvalidSignature', 'PreLogExists']
3188 },3191 },
3189 /**3192 /**
3190 * Lookup430: pallet_evm_coder_substrate::pallet::Error<T>3193 * Lookup432: pallet_evm_coder_substrate::pallet::Error<T>
3191 **/3194 **/
3192 PalletEvmCoderSubstrateError: {3195 PalletEvmCoderSubstrateError: {
3193 _enum: ['OutOfGas', 'OutOfFund']3196 _enum: ['OutOfGas', 'OutOfFund']
3194 },3197 },
3195 /**3198 /**
3196 * Lookup431: up_data_structs::SponsorshipState<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>3199 * Lookup433: up_data_structs::SponsorshipState<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
3197 **/3200 **/
3198 UpDataStructsSponsorshipStateBasicCrossAccountIdRepr: {3201 UpDataStructsSponsorshipStateBasicCrossAccountIdRepr: {
3199 _enum: {3202 _enum: {
3200 Disabled: 'Null',3203 Disabled: 'Null',
3201 Unconfirmed: 'PalletEvmAccountBasicCrossAccountIdRepr',3204 Unconfirmed: 'PalletEvmAccountBasicCrossAccountIdRepr',
3202 Confirmed: 'PalletEvmAccountBasicCrossAccountIdRepr'3205 Confirmed: 'PalletEvmAccountBasicCrossAccountIdRepr'
3203 }3206 }
3204 },3207 },
3205 /**3208 /**
3206 * Lookup432: pallet_evm_contract_helpers::SponsoringModeT3209 * Lookup434: pallet_evm_contract_helpers::SponsoringModeT
3207 **/3210 **/
3208 PalletEvmContractHelpersSponsoringModeT: {3211 PalletEvmContractHelpersSponsoringModeT: {
3209 _enum: ['Disabled', 'Allowlisted', 'Generous']3212 _enum: ['Disabled', 'Allowlisted', 'Generous']
3210 },3213 },
3211 /**3214 /**
3212 * Lookup434: pallet_evm_contract_helpers::pallet::Error<T>3215 * Lookup436: pallet_evm_contract_helpers::pallet::Error<T>
3213 **/3216 **/
3214 PalletEvmContractHelpersError: {3217 PalletEvmContractHelpersError: {
3215 _enum: ['NoPermission', 'NoPendingSponsor']3218 _enum: ['NoPermission', 'NoPendingSponsor']
3216 },3219 },
3217 /**3220 /**
3218 * Lookup435: pallet_evm_migration::pallet::Error<T>3221 * Lookup437: pallet_evm_migration::pallet::Error<T>
3219 **/3222 **/
3220 PalletEvmMigrationError: {3223 PalletEvmMigrationError: {
3221 _enum: ['AccountNotEmpty', 'AccountIsNotMigrating']3224 _enum: ['AccountNotEmpty', 'AccountIsNotMigrating']
3222 },3225 },
3223 /**3226 /**
3224 * Lookup437: sp_runtime::MultiSignature3227 * Lookup439: sp_runtime::MultiSignature
3225 **/3228 **/
3226 SpRuntimeMultiSignature: {3229 SpRuntimeMultiSignature: {
3227 _enum: {3230 _enum: {
3228 Ed25519: 'SpCoreEd25519Signature',3231 Ed25519: 'SpCoreEd25519Signature',
3229 Sr25519: 'SpCoreSr25519Signature',3232 Sr25519: 'SpCoreSr25519Signature',
3230 Ecdsa: 'SpCoreEcdsaSignature'3233 Ecdsa: 'SpCoreEcdsaSignature'
3231 }3234 }
3232 },3235 },
3233 /**3236 /**
3234 * Lookup438: sp_core::ed25519::Signature3237 * Lookup440: sp_core::ed25519::Signature
3235 **/3238 **/
3236 SpCoreEd25519Signature: '[u8;64]',3239 SpCoreEd25519Signature: '[u8;64]',
3237 /**3240 /**
3238 * Lookup440: sp_core::sr25519::Signature3241 * Lookup442: sp_core::sr25519::Signature
3239 **/3242 **/
3240 SpCoreSr25519Signature: '[u8;64]',3243 SpCoreSr25519Signature: '[u8;64]',
3241 /**3244 /**
3242 * Lookup441: sp_core::ecdsa::Signature3245 * Lookup443: sp_core::ecdsa::Signature
3243 **/3246 **/
3244 SpCoreEcdsaSignature: '[u8;65]',3247 SpCoreEcdsaSignature: '[u8;65]',
3245 /**3248 /**
3246 * Lookup444: frame_system::extensions::check_spec_version::CheckSpecVersion<T>3249 * Lookup446: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
3247 **/3250 **/
3248 FrameSystemExtensionsCheckSpecVersion: 'Null',3251 FrameSystemExtensionsCheckSpecVersion: 'Null',
3249 /**3252 /**
3250 * Lookup445: frame_system::extensions::check_genesis::CheckGenesis<T>3253 * Lookup447: frame_system::extensions::check_genesis::CheckGenesis<T>
3251 **/3254 **/
3252 FrameSystemExtensionsCheckGenesis: 'Null',3255 FrameSystemExtensionsCheckGenesis: 'Null',
3253 /**3256 /**
3254 * Lookup448: frame_system::extensions::check_nonce::CheckNonce<T>3257 * Lookup450: frame_system::extensions::check_nonce::CheckNonce<T>
3255 **/3258 **/
3256 FrameSystemExtensionsCheckNonce: 'Compact<u32>',3259 FrameSystemExtensionsCheckNonce: 'Compact<u32>',
3257 /**3260 /**
3258 * Lookup449: frame_system::extensions::check_weight::CheckWeight<T>3261 * Lookup451: frame_system::extensions::check_weight::CheckWeight<T>
3259 **/3262 **/
3260 FrameSystemExtensionsCheckWeight: 'Null',3263 FrameSystemExtensionsCheckWeight: 'Null',
3261 /**3264 /**
3262 * Lookup450: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>3265 * Lookup452: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
3263 **/3266 **/
3264 PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',3267 PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
3265 /**3268 /**
3266 * Lookup451: opal_runtime::Runtime3269 * Lookup453: opal_runtime::Runtime
3267 **/3270 **/
3268 OpalRuntimeRuntime: 'Null',3271 OpalRuntimeRuntime: 'Null',
3269 /**3272 /**
3270 * Lookup452: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>3273 * Lookup454: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
3271 **/3274 **/
3272 PalletEthereumFakeTransactionFinalizer: 'Null'3275 PalletEthereumFakeTransactionFinalizer: 'Null'
3273};3276};
32743277
modifiedtests/src/interfaces/types-lookup.tsdiffbeforeafterboth
1201 /** @name PalletAppPromotionEvent (103) */1201 /** @name PalletAppPromotionEvent (103) */
1202 interface PalletAppPromotionEvent extends Enum {1202 interface PalletAppPromotionEvent extends Enum {
1203 readonly isStakingRecalculation: boolean;1203 readonly isStakingRecalculation: boolean;
1204 readonly asStakingRecalculation: ITuple<[u128, u128]>;1204 readonly asStakingRecalculation: ITuple<[AccountId32, u128, u128]>;
1205 readonly type: 'StakingRecalculation';1205 readonly type: 'StakingRecalculation';
1206 }1206 }
12071207
2682 readonly asSponsorCollection: {2682 readonly asSponsorCollection: {
2683 readonly collectionId: u32;2683 readonly collectionId: u32;
2684 } & Struct;2684 } & Struct;
2685 readonly isStopSponsorignCollection: boolean;2685 readonly isStopSponsoringCollection: boolean;
2686 readonly asStopSponsorignCollection: {2686 readonly asStopSponsoringCollection: {
2687 readonly collectionId: u32;2687 readonly collectionId: u32;
2688 } & Struct;2688 } & Struct;
2689 readonly isSponsorConract: boolean;2689 readonly isSponsorConract: boolean;
2690 readonly asSponsorConract: {2690 readonly asSponsorConract: {
2691 readonly contractId: H160;2691 readonly contractId: H160;
2692 } & Struct;2692 } & Struct;
2693 readonly isStopSponsorignContract: boolean;2693 readonly isStopSponsoringContract: boolean;
2694 readonly asStopSponsorignContract: {2694 readonly asStopSponsoringContract: {
2695 readonly contractId: H160;2695 readonly contractId: H160;
2696 } & Struct;2696 } & Struct;
2697 readonly isPayoutStakers: boolean;
2698 readonly asPayoutStakers: {
2699 readonly stakersNumber: Option<u8>;
2700 } & Struct;
2697 readonly type: 'SetAdminAddress' | 'StartAppPromotion' | 'StopAppPromotion' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsorignCollection' | 'SponsorConract' | 'StopSponsorignContract';2701 readonly type: 'SetAdminAddress' | 'StartAppPromotion' | 'StopAppPromotion' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsoringCollection' | 'SponsorConract' | 'StopSponsoringContract' | 'PayoutStakers';
2698 }2702 }
26992703
2700 /** @name PalletEvmCall (305) */2704 /** @name PalletEvmCall (306) */
2701 interface PalletEvmCall extends Enum {2705 interface PalletEvmCall extends Enum {
2702 readonly isWithdraw: boolean;2706 readonly isWithdraw: boolean;
2703 readonly asWithdraw: {2707 readonly asWithdraw: {
2742 readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';2746 readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';
2743 }2747 }
27442748
2745 /** @name PalletEthereumCall (309) */2749 /** @name PalletEthereumCall (310) */
2746 interface PalletEthereumCall extends Enum {2750 interface PalletEthereumCall extends Enum {
2747 readonly isTransact: boolean;2751 readonly isTransact: boolean;
2748 readonly asTransact: {2752 readonly asTransact: {
2751 readonly type: 'Transact';2755 readonly type: 'Transact';
2752 }2756 }
27532757
2754 /** @name EthereumTransactionTransactionV2 (310) */2758 /** @name EthereumTransactionTransactionV2 (311) */
2755 interface EthereumTransactionTransactionV2 extends Enum {2759 interface EthereumTransactionTransactionV2 extends Enum {
2756 readonly isLegacy: boolean;2760 readonly isLegacy: boolean;
2757 readonly asLegacy: EthereumTransactionLegacyTransaction;2761 readonly asLegacy: EthereumTransactionLegacyTransaction;
2762 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';2766 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
2763 }2767 }
27642768
2765 /** @name EthereumTransactionLegacyTransaction (311) */2769 /** @name EthereumTransactionLegacyTransaction (312) */
2766 interface EthereumTransactionLegacyTransaction extends Struct {2770 interface EthereumTransactionLegacyTransaction extends Struct {
2767 readonly nonce: U256;2771 readonly nonce: U256;
2768 readonly gasPrice: U256;2772 readonly gasPrice: U256;
2773 readonly signature: EthereumTransactionTransactionSignature;2777 readonly signature: EthereumTransactionTransactionSignature;
2774 }2778 }
27752779
2776 /** @name EthereumTransactionTransactionAction (312) */2780 /** @name EthereumTransactionTransactionAction (313) */
2777 interface EthereumTransactionTransactionAction extends Enum {2781 interface EthereumTransactionTransactionAction extends Enum {
2778 readonly isCall: boolean;2782 readonly isCall: boolean;
2779 readonly asCall: H160;2783 readonly asCall: H160;
2780 readonly isCreate: boolean;2784 readonly isCreate: boolean;
2781 readonly type: 'Call' | 'Create';2785 readonly type: 'Call' | 'Create';
2782 }2786 }
27832787
2784 /** @name EthereumTransactionTransactionSignature (313) */2788 /** @name EthereumTransactionTransactionSignature (314) */
2785 interface EthereumTransactionTransactionSignature extends Struct {2789 interface EthereumTransactionTransactionSignature extends Struct {
2786 readonly v: u64;2790 readonly v: u64;
2787 readonly r: H256;2791 readonly r: H256;
2788 readonly s: H256;2792 readonly s: H256;
2789 }2793 }
27902794
2791 /** @name EthereumTransactionEip2930Transaction (315) */2795 /** @name EthereumTransactionEip2930Transaction (316) */
2792 interface EthereumTransactionEip2930Transaction extends Struct {2796 interface EthereumTransactionEip2930Transaction extends Struct {
2793 readonly chainId: u64;2797 readonly chainId: u64;
2794 readonly nonce: U256;2798 readonly nonce: U256;
2803 readonly s: H256;2807 readonly s: H256;
2804 }2808 }
28052809
2806 /** @name EthereumTransactionAccessListItem (317) */2810 /** @name EthereumTransactionAccessListItem (318) */
2807 interface EthereumTransactionAccessListItem extends Struct {2811 interface EthereumTransactionAccessListItem extends Struct {
2808 readonly address: H160;2812 readonly address: H160;
2809 readonly storageKeys: Vec<H256>;2813 readonly storageKeys: Vec<H256>;
2810 }2814 }
28112815
2812 /** @name EthereumTransactionEip1559Transaction (318) */2816 /** @name EthereumTransactionEip1559Transaction (319) */
2813 interface EthereumTransactionEip1559Transaction extends Struct {2817 interface EthereumTransactionEip1559Transaction extends Struct {
2814 readonly chainId: u64;2818 readonly chainId: u64;
2815 readonly nonce: U256;2819 readonly nonce: U256;
2825 readonly s: H256;2829 readonly s: H256;
2826 }2830 }
28272831
2828 /** @name PalletEvmMigrationCall (319) */2832 /** @name PalletEvmMigrationCall (320) */
2829 interface PalletEvmMigrationCall extends Enum {2833 interface PalletEvmMigrationCall extends Enum {
2830 readonly isBegin: boolean;2834 readonly isBegin: boolean;
2831 readonly asBegin: {2835 readonly asBegin: {
2844 readonly type: 'Begin' | 'SetData' | 'Finish';2848 readonly type: 'Begin' | 'SetData' | 'Finish';
2845 }2849 }
28462850
2847 /** @name PalletSudoError (322) */2851 /** @name PalletSudoError (323) */
2848 interface PalletSudoError extends Enum {2852 interface PalletSudoError extends Enum {
2849 readonly isRequireSudo: boolean;2853 readonly isRequireSudo: boolean;
2850 readonly type: 'RequireSudo';2854 readonly type: 'RequireSudo';
2851 }2855 }
28522856
2853 /** @name OrmlVestingModuleError (324) */2857 /** @name OrmlVestingModuleError (325) */
2854 interface OrmlVestingModuleError extends Enum {2858 interface OrmlVestingModuleError extends Enum {
2855 readonly isZeroVestingPeriod: boolean;2859 readonly isZeroVestingPeriod: boolean;
2856 readonly isZeroVestingPeriodCount: boolean;2860 readonly isZeroVestingPeriodCount: boolean;
2861 readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';2865 readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';
2862 }2866 }
28632867
2864 /** @name CumulusPalletXcmpQueueInboundChannelDetails (326) */2868 /** @name CumulusPalletXcmpQueueInboundChannelDetails (327) */
2865 interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {2869 interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {
2866 readonly sender: u32;2870 readonly sender: u32;
2867 readonly state: CumulusPalletXcmpQueueInboundState;2871 readonly state: CumulusPalletXcmpQueueInboundState;
2868 readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;2872 readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;
2869 }2873 }
28702874
2871 /** @name CumulusPalletXcmpQueueInboundState (327) */2875 /** @name CumulusPalletXcmpQueueInboundState (328) */
2872 interface CumulusPalletXcmpQueueInboundState extends Enum {2876 interface CumulusPalletXcmpQueueInboundState extends Enum {
2873 readonly isOk: boolean;2877 readonly isOk: boolean;
2874 readonly isSuspended: boolean;2878 readonly isSuspended: boolean;
2875 readonly type: 'Ok' | 'Suspended';2879 readonly type: 'Ok' | 'Suspended';
2876 }2880 }
28772881
2878 /** @name PolkadotParachainPrimitivesXcmpMessageFormat (330) */2882 /** @name PolkadotParachainPrimitivesXcmpMessageFormat (331) */
2879 interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {2883 interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {
2880 readonly isConcatenatedVersionedXcm: boolean;2884 readonly isConcatenatedVersionedXcm: boolean;
2881 readonly isConcatenatedEncodedBlob: boolean;2885 readonly isConcatenatedEncodedBlob: boolean;
2882 readonly isSignals: boolean;2886 readonly isSignals: boolean;
2883 readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';2887 readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';
2884 }2888 }
28852889
2886 /** @name CumulusPalletXcmpQueueOutboundChannelDetails (333) */2890 /** @name CumulusPalletXcmpQueueOutboundChannelDetails (334) */
2887 interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {2891 interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {
2888 readonly recipient: u32;2892 readonly recipient: u32;
2889 readonly state: CumulusPalletXcmpQueueOutboundState;2893 readonly state: CumulusPalletXcmpQueueOutboundState;
2892 readonly lastIndex: u16;2896 readonly lastIndex: u16;
2893 }2897 }
28942898
2895 /** @name CumulusPalletXcmpQueueOutboundState (334) */2899 /** @name CumulusPalletXcmpQueueOutboundState (335) */
2896 interface CumulusPalletXcmpQueueOutboundState extends Enum {2900 interface CumulusPalletXcmpQueueOutboundState extends Enum {
2897 readonly isOk: boolean;2901 readonly isOk: boolean;
2898 readonly isSuspended: boolean;2902 readonly isSuspended: boolean;
2899 readonly type: 'Ok' | 'Suspended';2903 readonly type: 'Ok' | 'Suspended';
2900 }2904 }
29012905
2902 /** @name CumulusPalletXcmpQueueQueueConfigData (336) */2906 /** @name CumulusPalletXcmpQueueQueueConfigData (337) */
2903 interface CumulusPalletXcmpQueueQueueConfigData extends Struct {2907 interface CumulusPalletXcmpQueueQueueConfigData extends Struct {
2904 readonly suspendThreshold: u32;2908 readonly suspendThreshold: u32;
2905 readonly dropThreshold: u32;2909 readonly dropThreshold: u32;
2909 readonly xcmpMaxIndividualWeight: u64;2913 readonly xcmpMaxIndividualWeight: u64;
2910 }2914 }
29112915
2912 /** @name CumulusPalletXcmpQueueError (338) */2916 /** @name CumulusPalletXcmpQueueError (339) */
2913 interface CumulusPalletXcmpQueueError extends Enum {2917 interface CumulusPalletXcmpQueueError extends Enum {
2914 readonly isFailedToSend: boolean;2918 readonly isFailedToSend: boolean;
2915 readonly isBadXcmOrigin: boolean;2919 readonly isBadXcmOrigin: boolean;
2919 readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';2923 readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';
2920 }2924 }
29212925
2922 /** @name PalletXcmError (339) */2926 /** @name PalletXcmError (340) */
2923 interface PalletXcmError extends Enum {2927 interface PalletXcmError extends Enum {
2924 readonly isUnreachable: boolean;2928 readonly isUnreachable: boolean;
2925 readonly isSendFailure: boolean;2929 readonly isSendFailure: boolean;
2937 readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';2941 readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';
2938 }2942 }
29392943
2940 /** @name CumulusPalletXcmError (340) */2944 /** @name CumulusPalletXcmError (341) */
2941 type CumulusPalletXcmError = Null;2945 type CumulusPalletXcmError = Null;
29422946
2943 /** @name CumulusPalletDmpQueueConfigData (341) */2947 /** @name CumulusPalletDmpQueueConfigData (342) */
2944 interface CumulusPalletDmpQueueConfigData extends Struct {2948 interface CumulusPalletDmpQueueConfigData extends Struct {
2945 readonly maxIndividual: u64;2949 readonly maxIndividual: u64;
2946 }2950 }
29472951
2948 /** @name CumulusPalletDmpQueuePageIndexData (342) */2952 /** @name CumulusPalletDmpQueuePageIndexData (343) */
2949 interface CumulusPalletDmpQueuePageIndexData extends Struct {2953 interface CumulusPalletDmpQueuePageIndexData extends Struct {
2950 readonly beginUsed: u32;2954 readonly beginUsed: u32;
2951 readonly endUsed: u32;2955 readonly endUsed: u32;
2952 readonly overweightCount: u64;2956 readonly overweightCount: u64;
2953 }2957 }
29542958
2955 /** @name CumulusPalletDmpQueueError (345) */2959 /** @name CumulusPalletDmpQueueError (346) */
2956 interface CumulusPalletDmpQueueError extends Enum {2960 interface CumulusPalletDmpQueueError extends Enum {
2957 readonly isUnknown: boolean;2961 readonly isUnknown: boolean;
2958 readonly isOverLimit: boolean;2962 readonly isOverLimit: boolean;
2959 readonly type: 'Unknown' | 'OverLimit';2963 readonly type: 'Unknown' | 'OverLimit';
2960 }2964 }
29612965
2962 /** @name PalletUniqueError (349) */2966 /** @name PalletUniqueError (350) */
2963 interface PalletUniqueError extends Enum {2967 interface PalletUniqueError extends Enum {
2964 readonly isCollectionDecimalPointLimitExceeded: boolean;2968 readonly isCollectionDecimalPointLimitExceeded: boolean;
2965 readonly isConfirmUnsetSponsorFail: boolean;2969 readonly isConfirmUnsetSponsorFail: boolean;
2968 readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';2972 readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';
2969 }2973 }
29702974
2971 /** @name PalletUniqueSchedulerScheduledV3 (352) */2975 /** @name PalletUniqueSchedulerScheduledV3 (353) */
2972 interface PalletUniqueSchedulerScheduledV3 extends Struct {2976 interface PalletUniqueSchedulerScheduledV3 extends Struct {
2973 readonly maybeId: Option<U8aFixed>;2977 readonly maybeId: Option<U8aFixed>;
2974 readonly priority: u8;2978 readonly priority: u8;
2977 readonly origin: OpalRuntimeOriginCaller;2981 readonly origin: OpalRuntimeOriginCaller;
2978 }2982 }
29792983
2980 /** @name OpalRuntimeOriginCaller (353) */2984 /** @name OpalRuntimeOriginCaller (354) */
2981 interface OpalRuntimeOriginCaller extends Enum {2985 interface OpalRuntimeOriginCaller extends Enum {
2982 readonly isSystem: boolean;2986 readonly isSystem: boolean;
2983 readonly asSystem: FrameSupportDispatchRawOrigin;2987 readonly asSystem: FrameSupportDispatchRawOrigin;
2991 readonly type: 'System' | 'Void' | 'PolkadotXcm' | 'CumulusXcm' | 'Ethereum';2995 readonly type: 'System' | 'Void' | 'PolkadotXcm' | 'CumulusXcm' | 'Ethereum';
2992 }2996 }
29932997
2994 /** @name FrameSupportDispatchRawOrigin (354) */2998 /** @name FrameSupportDispatchRawOrigin (355) */
2995 interface FrameSupportDispatchRawOrigin extends Enum {2999 interface FrameSupportDispatchRawOrigin extends Enum {
2996 readonly isRoot: boolean;3000 readonly isRoot: boolean;
2997 readonly isSigned: boolean;3001 readonly isSigned: boolean;
3000 readonly type: 'Root' | 'Signed' | 'None';3004 readonly type: 'Root' | 'Signed' | 'None';
3001 }3005 }
30023006
3003 /** @name PalletXcmOrigin (355) */3007 /** @name PalletXcmOrigin (356) */
3004 interface PalletXcmOrigin extends Enum {3008 interface PalletXcmOrigin extends Enum {
3005 readonly isXcm: boolean;3009 readonly isXcm: boolean;
3006 readonly asXcm: XcmV1MultiLocation;3010 readonly asXcm: XcmV1MultiLocation;
3009 readonly type: 'Xcm' | 'Response';3013 readonly type: 'Xcm' | 'Response';
3010 }3014 }
30113015
3012 /** @name CumulusPalletXcmOrigin (356) */3016 /** @name CumulusPalletXcmOrigin (357) */
3013 interface CumulusPalletXcmOrigin extends Enum {3017 interface CumulusPalletXcmOrigin extends Enum {
3014 readonly isRelay: boolean;3018 readonly isRelay: boolean;
3015 readonly isSiblingParachain: boolean;3019 readonly isSiblingParachain: boolean;
3016 readonly asSiblingParachain: u32;3020 readonly asSiblingParachain: u32;
3017 readonly type: 'Relay' | 'SiblingParachain';3021 readonly type: 'Relay' | 'SiblingParachain';
3018 }3022 }
30193023
3020 /** @name PalletEthereumRawOrigin (357) */3024 /** @name PalletEthereumRawOrigin (358) */
3021 interface PalletEthereumRawOrigin extends Enum {3025 interface PalletEthereumRawOrigin extends Enum {
3022 readonly isEthereumTransaction: boolean;3026 readonly isEthereumTransaction: boolean;
3023 readonly asEthereumTransaction: H160;3027 readonly asEthereumTransaction: H160;
3024 readonly type: 'EthereumTransaction';3028 readonly type: 'EthereumTransaction';
3025 }3029 }
30263030
3027 /** @name SpCoreVoid (358) */3031 /** @name SpCoreVoid (359) */
3028 type SpCoreVoid = Null;3032 type SpCoreVoid = Null;
30293033
3030 /** @name PalletUniqueSchedulerError (359) */3034 /** @name PalletUniqueSchedulerError (360) */
3031 interface PalletUniqueSchedulerError extends Enum {3035 interface PalletUniqueSchedulerError extends Enum {
3032 readonly isFailedToSchedule: boolean;3036 readonly isFailedToSchedule: boolean;
3033 readonly isNotFound: boolean;3037 readonly isNotFound: boolean;
3036 readonly type: 'FailedToSchedule' | 'NotFound' | 'TargetBlockNumberInPast' | 'RescheduleNoChange';3040 readonly type: 'FailedToSchedule' | 'NotFound' | 'TargetBlockNumberInPast' | 'RescheduleNoChange';
3037 }3041 }
30383042
3039 /** @name UpDataStructsCollection (360) */3043 /** @name UpDataStructsCollection (361) */
3040 interface UpDataStructsCollection extends Struct {3044 interface UpDataStructsCollection extends Struct {
3041 readonly owner: AccountId32;3045 readonly owner: AccountId32;
3042 readonly mode: UpDataStructsCollectionMode;3046 readonly mode: UpDataStructsCollectionMode;
3049 readonly externalCollection: bool;3053 readonly externalCollection: bool;
3050 }3054 }
30513055
3052 /** @name UpDataStructsSponsorshipStateAccountId32 (361) */3056 /** @name UpDataStructsSponsorshipStateAccountId32 (362) */
3053 interface UpDataStructsSponsorshipStateAccountId32 extends Enum {3057 interface UpDataStructsSponsorshipStateAccountId32 extends Enum {
3054 readonly isDisabled: boolean;3058 readonly isDisabled: boolean;
3055 readonly isUnconfirmed: boolean;3059 readonly isUnconfirmed: boolean;
3059 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3063 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';
3060 }3064 }
30613065
3062 /** @name UpDataStructsProperties (362) */3066 /** @name UpDataStructsProperties (363) */
3063 interface UpDataStructsProperties extends Struct {3067 interface UpDataStructsProperties extends Struct {
3064 readonly map: UpDataStructsPropertiesMapBoundedVec;3068 readonly map: UpDataStructsPropertiesMapBoundedVec;
3065 readonly consumedSpace: u32;3069 readonly consumedSpace: u32;
3066 readonly spaceLimit: u32;3070 readonly spaceLimit: u32;
3067 }3071 }
30683072
3069 /** @name UpDataStructsPropertiesMapBoundedVec (363) */3073 /** @name UpDataStructsPropertiesMapBoundedVec (364) */
3070 interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}3074 interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}
30713075
3072 /** @name UpDataStructsPropertiesMapPropertyPermission (368) */3076 /** @name UpDataStructsPropertiesMapPropertyPermission (369) */
3073 interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}3077 interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}
30743078
3075 /** @name UpDataStructsCollectionStats (375) */3079 /** @name UpDataStructsCollectionStats (376) */
3076 interface UpDataStructsCollectionStats extends Struct {3080 interface UpDataStructsCollectionStats extends Struct {
3077 readonly created: u32;3081 readonly created: u32;
3078 readonly destroyed: u32;3082 readonly destroyed: u32;
3079 readonly alive: u32;3083 readonly alive: u32;
3080 }3084 }
30813085
3082 /** @name UpDataStructsTokenChild (376) */3086 /** @name UpDataStructsTokenChild (377) */
3083 interface UpDataStructsTokenChild extends Struct {3087 interface UpDataStructsTokenChild extends Struct {
3084 readonly token: u32;3088 readonly token: u32;
3085 readonly collection: u32;3089 readonly collection: u32;
3086 }3090 }
30873091
3088 /** @name PhantomTypeUpDataStructs (377) */3092 /** @name PhantomTypeUpDataStructs (378) */
3089 interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild]>> {}3093 interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild]>> {}
30903094
3091 /** @name UpDataStructsTokenData (379) */3095 /** @name UpDataStructsTokenData (380) */
3092 interface UpDataStructsTokenData extends Struct {3096 interface UpDataStructsTokenData extends Struct {
3093 readonly properties: Vec<UpDataStructsProperty>;3097 readonly properties: Vec<UpDataStructsProperty>;
3094 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;3098 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;
3095 readonly pieces: u128;3099 readonly pieces: u128;
3096 }3100 }
30973101
3098 /** @name UpDataStructsRpcCollection (381) */3102 /** @name UpDataStructsRpcCollection (382) */
3099 interface UpDataStructsRpcCollection extends Struct {3103 interface UpDataStructsRpcCollection extends Struct {
3100 readonly owner: AccountId32;3104 readonly owner: AccountId32;
3101 readonly mode: UpDataStructsCollectionMode;3105 readonly mode: UpDataStructsCollectionMode;
3110 readonly readOnly: bool;3114 readonly readOnly: bool;
3111 }3115 }
31123116
3113 /** @name RmrkTraitsCollectionCollectionInfo (382) */3117 /** @name RmrkTraitsCollectionCollectionInfo (383) */
3114 interface RmrkTraitsCollectionCollectionInfo extends Struct {3118 interface RmrkTraitsCollectionCollectionInfo extends Struct {
3115 readonly issuer: AccountId32;3119 readonly issuer: AccountId32;
3116 readonly metadata: Bytes;3120 readonly metadata: Bytes;
3119 readonly nftsCount: u32;3123 readonly nftsCount: u32;
3120 }3124 }
31213125
3122 /** @name RmrkTraitsNftNftInfo (383) */3126 /** @name RmrkTraitsNftNftInfo (384) */
3123 interface RmrkTraitsNftNftInfo extends Struct {3127 interface RmrkTraitsNftNftInfo extends Struct {
3124 readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple;3128 readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple;
3125 readonly royalty: Option<RmrkTraitsNftRoyaltyInfo>;3129 readonly royalty: Option<RmrkTraitsNftRoyaltyInfo>;
3128 readonly pending: bool;3132 readonly pending: bool;
3129 }3133 }
31303134
3131 /** @name RmrkTraitsNftRoyaltyInfo (385) */3135 /** @name RmrkTraitsNftRoyaltyInfo (386) */
3132 interface RmrkTraitsNftRoyaltyInfo extends Struct {3136 interface RmrkTraitsNftRoyaltyInfo extends Struct {
3133 readonly recipient: AccountId32;3137 readonly recipient: AccountId32;
3134 readonly amount: Permill;3138 readonly amount: Permill;
3135 }3139 }
31363140
3137 /** @name RmrkTraitsResourceResourceInfo (386) */3141 /** @name RmrkTraitsResourceResourceInfo (387) */
3138 interface RmrkTraitsResourceResourceInfo extends Struct {3142 interface RmrkTraitsResourceResourceInfo extends Struct {
3139 readonly id: u32;3143 readonly id: u32;
3140 readonly resource: RmrkTraitsResourceResourceTypes;3144 readonly resource: RmrkTraitsResourceResourceTypes;
3141 readonly pending: bool;3145 readonly pending: bool;
3142 readonly pendingRemoval: bool;3146 readonly pendingRemoval: bool;
3143 }3147 }
31443148
3145 /** @name RmrkTraitsPropertyPropertyInfo (387) */3149 /** @name RmrkTraitsPropertyPropertyInfo (388) */
3146 interface RmrkTraitsPropertyPropertyInfo extends Struct {3150 interface RmrkTraitsPropertyPropertyInfo extends Struct {
3147 readonly key: Bytes;3151 readonly key: Bytes;
3148 readonly value: Bytes;3152 readonly value: Bytes;
3149 }3153 }
31503154
3151 /** @name RmrkTraitsBaseBaseInfo (388) */3155 /** @name RmrkTraitsBaseBaseInfo (389) */
3152 interface RmrkTraitsBaseBaseInfo extends Struct {3156 interface RmrkTraitsBaseBaseInfo extends Struct {
3153 readonly issuer: AccountId32;3157 readonly issuer: AccountId32;
3154 readonly baseType: Bytes;3158 readonly baseType: Bytes;
3155 readonly symbol: Bytes;3159 readonly symbol: Bytes;
3156 }3160 }
31573161
3158 /** @name RmrkTraitsNftNftChild (389) */3162 /** @name RmrkTraitsNftNftChild (390) */
3159 interface RmrkTraitsNftNftChild extends Struct {3163 interface RmrkTraitsNftNftChild extends Struct {
3160 readonly collectionId: u32;3164 readonly collectionId: u32;
3161 readonly nftId: u32;3165 readonly nftId: u32;
3162 }3166 }
31633167
3164 /** @name PalletCommonError (391) */3168 /** @name PalletCommonError (392) */
3165 interface PalletCommonError extends Enum {3169 interface PalletCommonError extends Enum {
3166 readonly isCollectionNotFound: boolean;3170 readonly isCollectionNotFound: boolean;
3167 readonly isMustBeTokenOwner: boolean;3171 readonly isMustBeTokenOwner: boolean;
3200 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';3204 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';
3201 }3205 }
32023206
3203 /** @name PalletFungibleError (393) */3207 /** @name PalletFungibleError (394) */
3204 interface PalletFungibleError extends Enum {3208 interface PalletFungibleError extends Enum {
3205 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;3209 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;
3206 readonly isFungibleItemsHaveNoId: boolean;3210 readonly isFungibleItemsHaveNoId: boolean;
3210 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3214 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
3211 }3215 }
32123216
3213 /** @name PalletRefungibleItemData (394) */3217 /** @name PalletRefungibleItemData (395) */
3214 interface PalletRefungibleItemData extends Struct {3218 interface PalletRefungibleItemData extends Struct {
3215 readonly constData: Bytes;3219 readonly constData: Bytes;
3216 }3220 }
32173221
3218 /** @name PalletRefungibleError (399) */3222 /** @name PalletRefungibleError (400) */
3219 interface PalletRefungibleError extends Enum {3223 interface PalletRefungibleError extends Enum {
3220 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;3224 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;
3221 readonly isWrongRefungiblePieces: boolean;3225 readonly isWrongRefungiblePieces: boolean;
3225 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3229 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
3226 }3230 }
32273231
3228 /** @name PalletNonfungibleItemData (400) */3232 /** @name PalletNonfungibleItemData (401) */
3229 interface PalletNonfungibleItemData extends Struct {3233 interface PalletNonfungibleItemData extends Struct {
3230 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3234 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
3231 }3235 }
32323236
3233 /** @name UpDataStructsPropertyScope (402) */3237 /** @name UpDataStructsPropertyScope (403) */
3234 interface UpDataStructsPropertyScope extends Enum {3238 interface UpDataStructsPropertyScope extends Enum {
3235 readonly isNone: boolean;3239 readonly isNone: boolean;
3236 readonly isRmrk: boolean;3240 readonly isRmrk: boolean;
3237 readonly isEth: boolean;3241 readonly isEth: boolean;
3238 readonly type: 'None' | 'Rmrk' | 'Eth';3242 readonly type: 'None' | 'Rmrk' | 'Eth';
3239 }3243 }
32403244
3241 /** @name PalletNonfungibleError (404) */3245 /** @name PalletNonfungibleError (405) */
3242 interface PalletNonfungibleError extends Enum {3246 interface PalletNonfungibleError extends Enum {
3243 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;3247 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;
3244 readonly isNonfungibleItemsHaveNoAmount: boolean;3248 readonly isNonfungibleItemsHaveNoAmount: boolean;
3245 readonly isCantBurnNftWithChildren: boolean;3249 readonly isCantBurnNftWithChildren: boolean;
3246 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';3250 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';
3247 }3251 }
32483252
3249 /** @name PalletStructureError (405) */3253 /** @name PalletStructureError (406) */
3250 interface PalletStructureError extends Enum {3254 interface PalletStructureError extends Enum {
3251 readonly isOuroborosDetected: boolean;3255 readonly isOuroborosDetected: boolean;
3252 readonly isDepthLimit: boolean;3256 readonly isDepthLimit: boolean;
3255 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';3259 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';
3256 }3260 }
32573261
3258 /** @name PalletRmrkCoreError (406) */3262 /** @name PalletRmrkCoreError (407) */
3259 interface PalletRmrkCoreError extends Enum {3263 interface PalletRmrkCoreError extends Enum {
3260 readonly isCorruptedCollectionType: boolean;3264 readonly isCorruptedCollectionType: boolean;
3261 readonly isRmrkPropertyKeyIsTooLong: boolean;3265 readonly isRmrkPropertyKeyIsTooLong: boolean;
3279 readonly type: 'CorruptedCollectionType' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';3283 readonly type: 'CorruptedCollectionType' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';
3280 }3284 }
32813285
3282 /** @name PalletRmrkEquipError (408) */3286 /** @name PalletRmrkEquipError (409) */
3283 interface PalletRmrkEquipError extends Enum {3287 interface PalletRmrkEquipError extends Enum {
3284 readonly isPermissionError: boolean;3288 readonly isPermissionError: boolean;
3285 readonly isNoAvailableBaseId: boolean;3289 readonly isNoAvailableBaseId: boolean;
3291 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';3295 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';
3292 }3296 }
32933297
3294 /** @name PalletAppPromotionError (410) */3298 /** @name PalletAppPromotionError (412) */
3295 interface PalletAppPromotionError extends Enum {3299 interface PalletAppPromotionError extends Enum {
3296 readonly isAdminNotSet: boolean;3300 readonly isAdminNotSet: boolean;
3297 readonly isNoPermission: boolean;3301 readonly isNoPermission: boolean;
3300 readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFounds' | 'InvalidArgument';3304 readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFounds' | 'InvalidArgument';
3301 }3305 }
33023306
3303 /** @name PalletEvmError (413) */3307 /** @name PalletEvmError (415) */
3304 interface PalletEvmError extends Enum {3308 interface PalletEvmError extends Enum {
3305 readonly isBalanceLow: boolean;3309 readonly isBalanceLow: boolean;
3306 readonly isFeeOverflow: boolean;3310 readonly isFeeOverflow: boolean;
3311 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';3315 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';
3312 }3316 }
33133317
3314 /** @name FpRpcTransactionStatus (416) */3318 /** @name FpRpcTransactionStatus (418) */
3315 interface FpRpcTransactionStatus extends Struct {3319 interface FpRpcTransactionStatus extends Struct {
3316 readonly transactionHash: H256;3320 readonly transactionHash: H256;
3317 readonly transactionIndex: u32;3321 readonly transactionIndex: u32;
3322 readonly logsBloom: EthbloomBloom;3326 readonly logsBloom: EthbloomBloom;
3323 }3327 }
33243328
3325 /** @name EthbloomBloom (418) */3329 /** @name EthbloomBloom (420) */
3326 interface EthbloomBloom extends U8aFixed {}3330 interface EthbloomBloom extends U8aFixed {}
33273331
3328 /** @name EthereumReceiptReceiptV3 (420) */3332 /** @name EthereumReceiptReceiptV3 (422) */
3329 interface EthereumReceiptReceiptV3 extends Enum {3333 interface EthereumReceiptReceiptV3 extends Enum {
3330 readonly isLegacy: boolean;3334 readonly isLegacy: boolean;
3331 readonly asLegacy: EthereumReceiptEip658ReceiptData;3335 readonly asLegacy: EthereumReceiptEip658ReceiptData;
3336 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3340 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
3337 }3341 }
33383342
3339 /** @name EthereumReceiptEip658ReceiptData (421) */3343 /** @name EthereumReceiptEip658ReceiptData (423) */
3340 interface EthereumReceiptEip658ReceiptData extends Struct {3344 interface EthereumReceiptEip658ReceiptData extends Struct {
3341 readonly statusCode: u8;3345 readonly statusCode: u8;
3342 readonly usedGas: U256;3346 readonly usedGas: U256;
3343 readonly logsBloom: EthbloomBloom;3347 readonly logsBloom: EthbloomBloom;
3344 readonly logs: Vec<EthereumLog>;3348 readonly logs: Vec<EthereumLog>;
3345 }3349 }
33463350
3347 /** @name EthereumBlock (422) */3351 /** @name EthereumBlock (424) */
3348 interface EthereumBlock extends Struct {3352 interface EthereumBlock extends Struct {
3349 readonly header: EthereumHeader;3353 readonly header: EthereumHeader;
3350 readonly transactions: Vec<EthereumTransactionTransactionV2>;3354 readonly transactions: Vec<EthereumTransactionTransactionV2>;
3351 readonly ommers: Vec<EthereumHeader>;3355 readonly ommers: Vec<EthereumHeader>;
3352 }3356 }
33533357
3354 /** @name EthereumHeader (423) */3358 /** @name EthereumHeader (425) */
3355 interface EthereumHeader extends Struct {3359 interface EthereumHeader extends Struct {
3356 readonly parentHash: H256;3360 readonly parentHash: H256;
3357 readonly ommersHash: H256;3361 readonly ommersHash: H256;
3370 readonly nonce: EthereumTypesHashH64;3374 readonly nonce: EthereumTypesHashH64;
3371 }3375 }
33723376
3373 /** @name EthereumTypesHashH64 (424) */3377 /** @name EthereumTypesHashH64 (426) */
3374 interface EthereumTypesHashH64 extends U8aFixed {}3378 interface EthereumTypesHashH64 extends U8aFixed {}
33753379
3376 /** @name PalletEthereumError (429) */3380 /** @name PalletEthereumError (431) */
3377 interface PalletEthereumError extends Enum {3381 interface PalletEthereumError extends Enum {
3378 readonly isInvalidSignature: boolean;3382 readonly isInvalidSignature: boolean;
3379 readonly isPreLogExists: boolean;3383 readonly isPreLogExists: boolean;
3380 readonly type: 'InvalidSignature' | 'PreLogExists';3384 readonly type: 'InvalidSignature' | 'PreLogExists';
3381 }3385 }
33823386
3383 /** @name PalletEvmCoderSubstrateError (430) */3387 /** @name PalletEvmCoderSubstrateError (432) */
3384 interface PalletEvmCoderSubstrateError extends Enum {3388 interface PalletEvmCoderSubstrateError extends Enum {
3385 readonly isOutOfGas: boolean;3389 readonly isOutOfGas: boolean;
3386 readonly isOutOfFund: boolean;3390 readonly isOutOfFund: boolean;
3387 readonly type: 'OutOfGas' | 'OutOfFund';3391 readonly type: 'OutOfGas' | 'OutOfFund';
3388 }3392 }
33893393
3390 /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (431) */3394 /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (433) */
3391 interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum {3395 interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum {
3392 readonly isDisabled: boolean;3396 readonly isDisabled: boolean;
3393 readonly isUnconfirmed: boolean;3397 readonly isUnconfirmed: boolean;
3397 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3401 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';
3398 }3402 }
33993403
3400 /** @name PalletEvmContractHelpersSponsoringModeT (432) */3404 /** @name PalletEvmContractHelpersSponsoringModeT (434) */
3401 interface PalletEvmContractHelpersSponsoringModeT extends Enum {3405 interface PalletEvmContractHelpersSponsoringModeT extends Enum {
3402 readonly isDisabled: boolean;3406 readonly isDisabled: boolean;
3403 readonly isAllowlisted: boolean;3407 readonly isAllowlisted: boolean;
3404 readonly isGenerous: boolean;3408 readonly isGenerous: boolean;
3405 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';3409 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';
3406 }3410 }
34073411
3408 /** @name PalletEvmContractHelpersError (434) */3412 /** @name PalletEvmContractHelpersError (436) */
3409 interface PalletEvmContractHelpersError extends Enum {3413 interface PalletEvmContractHelpersError extends Enum {
3410 readonly isNoPermission: boolean;3414 readonly isNoPermission: boolean;
3411 readonly isNoPendingSponsor: boolean;3415 readonly isNoPendingSponsor: boolean;
3412 readonly type: 'NoPermission' | 'NoPendingSponsor';3416 readonly type: 'NoPermission' | 'NoPendingSponsor';
3413 }3417 }
34143418
3415 /** @name PalletEvmMigrationError (435) */3419 /** @name PalletEvmMigrationError (437) */
3416 interface PalletEvmMigrationError extends Enum {3420 interface PalletEvmMigrationError extends Enum {
3417 readonly isAccountNotEmpty: boolean;3421 readonly isAccountNotEmpty: boolean;
3418 readonly isAccountIsNotMigrating: boolean;3422 readonly isAccountIsNotMigrating: boolean;
3419 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';3423 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';
3420 }3424 }
34213425
3422 /** @name SpRuntimeMultiSignature (437) */3426 /** @name SpRuntimeMultiSignature (439) */
3423 interface SpRuntimeMultiSignature extends Enum {3427 interface SpRuntimeMultiSignature extends Enum {
3424 readonly isEd25519: boolean;3428 readonly isEd25519: boolean;
3425 readonly asEd25519: SpCoreEd25519Signature;3429 readonly asEd25519: SpCoreEd25519Signature;
3430 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';3434 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
3431 }3435 }
34323436
3433 /** @name SpCoreEd25519Signature (438) */3437 /** @name SpCoreEd25519Signature (440) */
3434 interface SpCoreEd25519Signature extends U8aFixed {}3438 interface SpCoreEd25519Signature extends U8aFixed {}
34353439
3436 /** @name SpCoreSr25519Signature (440) */3440 /** @name SpCoreSr25519Signature (442) */
3437 interface SpCoreSr25519Signature extends U8aFixed {}3441 interface SpCoreSr25519Signature extends U8aFixed {}
34383442
3439 /** @name SpCoreEcdsaSignature (441) */3443 /** @name SpCoreEcdsaSignature (443) */
3440 interface SpCoreEcdsaSignature extends U8aFixed {}3444 interface SpCoreEcdsaSignature extends U8aFixed {}
34413445
3442 /** @name FrameSystemExtensionsCheckSpecVersion (444) */3446 /** @name FrameSystemExtensionsCheckSpecVersion (446) */
3443 type FrameSystemExtensionsCheckSpecVersion = Null;3447 type FrameSystemExtensionsCheckSpecVersion = Null;
34443448
3445 /** @name FrameSystemExtensionsCheckGenesis (445) */3449 /** @name FrameSystemExtensionsCheckGenesis (447) */
3446 type FrameSystemExtensionsCheckGenesis = Null;3450 type FrameSystemExtensionsCheckGenesis = Null;
34473451
3448 /** @name FrameSystemExtensionsCheckNonce (448) */3452 /** @name FrameSystemExtensionsCheckNonce (450) */
3449 interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}3453 interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}
34503454
3451 /** @name FrameSystemExtensionsCheckWeight (449) */3455 /** @name FrameSystemExtensionsCheckWeight (451) */
3452 type FrameSystemExtensionsCheckWeight = Null;3456 type FrameSystemExtensionsCheckWeight = Null;
34533457
3454 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (450) */3458 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (452) */
3455 interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}3459 interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
34563460
3457 /** @name OpalRuntimeRuntime (451) */3461 /** @name OpalRuntimeRuntime (453) */
3458 type OpalRuntimeRuntime = Null;3462 type OpalRuntimeRuntime = Null;
34593463
3460 /** @name PalletEthereumFakeTransactionFinalizer (452) */3464 /** @name PalletEthereumFakeTransactionFinalizer (454) */
3461 type PalletEthereumFakeTransactionFinalizer = Null;3465 type PalletEthereumFakeTransactionFinalizer = Null;
34623466
3463} // declare module3467} // declare module