difftreelog
added bench for sponsoring, logic broken , commit for rebase
in: master
14 files changed
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5307,6 +5307,7 @@
"pallet-common",
"pallet-evm",
"pallet-evm-contract-helpers",
+ "pallet-evm-migration",
"pallet-randomness-collective-flip",
"pallet-timestamp",
"pallet-unique",
pallets/app-promotion/Cargo.tomldiffbeforeafterboth--- a/pallets/app-promotion/Cargo.toml
+++ b/pallets/app-promotion/Cargo.toml
@@ -15,7 +15,7 @@
targets = ['x86_64-unknown-linux-gnu']
[features]
-default = ['std']
+default = ['std',]
runtime-benchmarks = [
'frame-benchmarking',
'frame-support/runtime-benchmarks',
@@ -121,6 +121,13 @@
[dependencies.pallet-evm-contract-helpers]
default-features = false
path = "../evm-contract-helpers"
+
+[dev-dependencies]
+[dependencies.pallet-evm-migration]
+default-features = false
+path = "../evm-migration"
+
+
################################################################################
[dependencies]
pallets/app-promotion/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/app-promotion/src/benchmarking.rs
+++ b/pallets/app-promotion/src/benchmarking.rs
@@ -20,53 +20,109 @@
use crate::Pallet as PromototionPallet;
use sp_runtime::traits::Bounded;
+use sp_std::vec;
use frame_benchmarking::{benchmarks, account};
-use frame_support::traits::OnInitialize;
+
use frame_system::{Origin, RawOrigin};
+use pallet_unique::benchmarking::create_nft_collection;
+use pallet_evm_migration::Pallet as EvmMigrationPallet;
+
+// trait BenchmarkingConfig: Config + pallet_unique::Config { }
+
+// impl<T: Config + pallet_unique::Config> BenchmarkingConfig for T { }
const SEED: u32 = 0;
benchmarks! {
where_clause{
- where T: Config
-
+ where T: Config + pallet_unique::Config + pallet_evm_migration::Config ,
+ T::BlockNumber: From<u32>
}
- on_initialize {
- let block1: T::BlockNumber = T::BlockNumber::from(1u32);
- let block2: T::BlockNumber = T::BlockNumber::from(2u32);
- PromototionPallet::<T>::on_initialize(block1); // Create Treasury account
- }: { PromototionPallet::<T>::on_initialize(block2); } // Benchmark deposit_into_existing path
-
start_app_promotion {
- let caller = account::<T::AccountId>("caller", 0, SEED);
- } : {PromototionPallet::<T>::start_app_promotion(RawOrigin::Root.into(), T::BlockNumber::from(2u32))?}
+ } : {PromototionPallet::<T>::start_app_promotion(RawOrigin::Root.into(), None)?}
+
+ stop_app_promotion{
+ PromototionPallet::<T>::start_app_promotion(RawOrigin::Root.into(), Some(25.into()))?;
+ } : {PromototionPallet::<T>::stop_app_promotion(RawOrigin::Root.into())?}
set_admin_address {
- let caller = account::<T::AccountId>("caller", 0, SEED);
- let _ = T::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
- } : {PromototionPallet::<T>::set_admin_address(RawOrigin::Root.into(), caller)?}
+ let pallet_admin = account::<T::AccountId>("admin", 0, SEED);
+ let _ = <T as Config>::Currency::make_free_balance_be(&pallet_admin, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
+ } : {PromototionPallet::<T>::set_admin_address(RawOrigin::Root.into(), T::CrossAccountId::from_sub(pallet_admin))?}
+ payout_stakers{
+ let pallet_admin = account::<T::AccountId>("admin", 0, SEED);
+ let share = Perbill::from_rational(1u32, 10);
+ PromototionPallet::<T>::set_admin_address(RawOrigin::Root.into(), T::CrossAccountId::from_sub(pallet_admin.clone()))?;
+ let _ = <T as Config>::Currency::make_free_balance_be(&pallet_admin, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
+ let staker: T::AccountId = account("caller", 0, SEED);
+ let _ = <T as Config>::Currency::make_free_balance_be(&staker, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
+ let _ = PromototionPallet::<T>::stake(RawOrigin::Signed(staker.clone()).into(), share * <T as Config>::Currency::total_balance(&staker))?;
+ } : {PromototionPallet::<T>::payout_stakers(RawOrigin::Signed(pallet_admin.clone()).into(), Some(1))?}
+
stake {
let caller = account::<T::AccountId>("caller", 0, SEED);
let share = Perbill::from_rational(1u32, 10);
- let _ = T::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
- } : {PromototionPallet::<T>::stake(RawOrigin::Signed(caller.clone()).into(), share * T::Currency::total_balance(&caller))?}
+ let _ = <T as Config>::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
+ } : {PromototionPallet::<T>::stake(RawOrigin::Signed(caller.clone()).into(), share * <T as Config>::Currency::total_balance(&caller))?}
unstake {
let caller = account::<T::AccountId>("caller", 0, SEED);
let share = Perbill::from_rational(1u32, 10);
- let _ = T::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
- let _ = PromototionPallet::<T>::stake(RawOrigin::Signed(caller.clone()).into(), share * T::Currency::total_balance(&caller))?;
+ let _ = <T as Config>::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
+ let _ = PromototionPallet::<T>::stake(RawOrigin::Signed(caller.clone()).into(), share * <T as Config>::Currency::total_balance(&caller))?;
- } : {PromototionPallet::<T>::unstake(RawOrigin::Signed(caller.clone()).into(), share * T::Currency::total_balance(&caller))?}
+ } : {PromototionPallet::<T>::unstake(RawOrigin::Signed(caller.clone()).into(), share * <T as Config>::Currency::total_balance(&caller))?}
recalculate_stake {
let caller = account::<T::AccountId>("caller", 0, SEED);
let share = Perbill::from_rational(1u32, 10);
- let _ = T::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
- let _ = PromototionPallet::<T>::stake(RawOrigin::Signed(caller.clone()).into(), share * T::Currency::total_balance(&caller))?;
- let block = <T::BlockNumberProvider as BlockNumberProvider>::current_block_number();
+ let _ = <T as Config>::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
+ let _ = PromototionPallet::<T>::stake(RawOrigin::Signed(caller.clone()).into(), share * <T as Config>::Currency::total_balance(&caller))?;
+ let block = <T::RelayBlockNumberProvider as BlockNumberProvider>::current_block_number();
let mut acc = <BalanceOf<T>>::default();
- } : {PromototionPallet::<T>::recalculate_stake(&caller, block, share * T::Currency::total_balance(&caller), &mut acc)}
+ } : {PromototionPallet::<T>::recalculate_stake(&caller, block, share * <T as Config>::Currency::total_balance(&caller), &mut acc)}
+
+ sponsor_collection {
+ let pallet_admin = account::<T::AccountId>("admin", 0, SEED);
+ PromototionPallet::<T>::set_admin_address(RawOrigin::Root.into(), T::CrossAccountId::from_sub(pallet_admin.clone()))?;
+ let _ = <T as Config>::Currency::make_free_balance_be(&pallet_admin, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
+ let caller: T::AccountId = account("caller", 0, SEED);
+ let _ = <T as Config>::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
+ let collection = create_nft_collection::<T>(caller.clone())?;
+ } : {PromototionPallet::<T>::sponsor_collection(RawOrigin::Signed(pallet_admin.clone()).into(), collection)?}
+
+ stop_sponsoring_collection {
+ let pallet_admin = account::<T::AccountId>("admin", 0, SEED);
+ PromototionPallet::<T>::set_admin_address(RawOrigin::Root.into(), T::CrossAccountId::from_sub(pallet_admin.clone()))?;
+ let _ = <T as Config>::Currency::make_free_balance_be(&pallet_admin, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
+ let caller: T::AccountId = account("caller", 0, SEED);
+ let _ = <T as Config>::Currency::make_free_balance_be(&caller, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
+ let collection = create_nft_collection::<T>(caller.clone())?;
+ PromototionPallet::<T>::sponsor_collection(RawOrigin::Signed(pallet_admin.clone()).into(), collection)?;
+ } : {PromototionPallet::<T>::stop_sponsoring_collection(RawOrigin::Signed(pallet_admin.clone()).into(), collection)?}
+
+ sponsor_contract {
+ let pallet_admin = account::<T::AccountId>("admin", 0, SEED);
+ PromototionPallet::<T>::set_admin_address(RawOrigin::Root.into(), T::CrossAccountId::from_sub(pallet_admin.clone()))?;
+
+ let _ = <T as Config>::Currency::make_free_balance_be(&pallet_admin, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
+ let address = H160::from_low_u64_be(SEED as u64);
+ let data: Vec<u8> = (0..20 as u8).collect();
+ <EvmMigrationPallet<T>>::begin(RawOrigin::Root.into(), address)?;
+ <EvmMigrationPallet<T>>::finish(RawOrigin::Root.into(), address, data)?;
+ } : {PromototionPallet::<T>::sponsor_conract(RawOrigin::Signed(pallet_admin.clone()).into(), address)?}
+
+ stop_sponsoring_contract {
+ let pallet_admin = account::<T::AccountId>("admin", 0, SEED);
+ PromototionPallet::<T>::set_admin_address(RawOrigin::Root.into(), T::CrossAccountId::from_sub(pallet_admin.clone()))?;
+
+ let _ = <T as Config>::Currency::make_free_balance_be(&pallet_admin, Perbill::from_rational(1u32, 2) * BalanceOf::<T>::max_value());
+ let address = H160::from_low_u64_be(SEED as u64);
+ let data: Vec<u8> = (0..20 as u8).collect();
+ <EvmMigrationPallet<T>>::begin(RawOrigin::Root.into(), address)?;
+ <EvmMigrationPallet<T>>::finish(RawOrigin::Root.into(), address, data)?;
+ PromototionPallet::<T>::sponsor_conract(RawOrigin::Signed(pallet_admin.clone()).into(), address)?;
+ } : {PromototionPallet::<T>::stop_sponsoring_contract(RawOrigin::Signed(pallet_admin.clone()).into(), address)?}
}
pallets/app-promotion/src/lib.rsdiffbeforeafterboth--- a/pallets/app-promotion/src/lib.rs
+++ b/pallets/app-promotion/src/lib.rs
@@ -132,6 +132,8 @@
#[pallet::generate_deposit(fn deposit_event)]
pub enum Event<T: Config> {
StakingRecalculation(
+ /// An recalculated staker
+ T::AccountId,
/// Base on which interest is calculated
BalanceOf<T>,
/// Amount of accrued interest
@@ -164,7 +166,7 @@
Key<Blake2_128Concat, T::AccountId>,
Key<Twox64Concat, T::BlockNumber>,
),
- Value = BalanceOf<T>,
+ Value = (BalanceOf<T>, T::BlockNumber),
QueryKind = ValueQuery,
>;
@@ -189,6 +191,13 @@
pub type NextInterestBlock<T: Config> =
StorageValue<Value = T::BlockNumber, QueryKind = ValueQuery>;
+ /// Stores the address of the staker for which the last revenue recalculation was performed.
+ /// If `None`, then recalculation has not yet been performed or calculations have been completed for all stakers.
+ #[pallet::storage]
+ #[pallet::getter(fn get_last_calculated_staker)]
+ pub type LastCalcucaltedStaker<T: Config> =
+ StorageValue<Value = T::AccountId, QueryKind = OptionQuery>;
+
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
fn on_initialize(current_block: T::BlockNumber) -> Weight
@@ -196,10 +205,10 @@
<T as frame_system::Config>::BlockNumber: From<u32>,
{
let mut consumed_weight = 0;
- let mut add_weight = |reads, writes, weight| {
- consumed_weight += T::DbWeight::get().reads_writes(reads, writes);
- consumed_weight += weight;
- };
+ // let mut add_weight = |reads, writes, weight| {
+ // consumed_weight += T::DbWeight::get().reads_writes(reads, writes);
+ // consumed_weight += weight;
+ // };
PendingUnstake::<T>::iter()
.filter_map(|((staker, block), amount)| {
@@ -214,41 +223,44 @@
<PendingUnstake<T>>::remove((staker, block));
});
- let next_interest_block = Self::get_interest_block();
- let current_relay_block = T::RelayBlockNumberProvider::current_block_number();
- if next_interest_block != 0.into() && current_relay_block >= next_interest_block {
- let mut acc = <BalanceOf<T>>::default();
- let mut base_acc = <BalanceOf<T>>::default();
+ // let next_interest_block = Self::get_interest_block();
+ // let current_relay_block = T::RelayBlockNumberProvider::current_block_number();
+ // if next_interest_block != 0.into() && current_relay_block >= next_interest_block {
+ // let mut acc = <BalanceOf<T>>::default();
+ // let mut base_acc = <BalanceOf<T>>::default();
- NextInterestBlock::<T>::set(
- NextInterestBlock::<T>::get() + T::RecalculationInterval::get(),
- );
- add_weight(0, 1, 0);
+ // NextInterestBlock::<T>::set(
+ // NextInterestBlock::<T>::get() + T::RecalculationInterval::get(),
+ // );
+ // add_weight(0, 1, 0);
- Staked::<T>::iter()
- .filter(|((_, block), _)| {
- *block + T::RecalculationInterval::get() <= current_relay_block
- })
- .for_each(|((staker, block), amount)| {
- Self::recalculate_stake(&staker, block, amount, &mut acc);
- add_weight(0, 0, T::WeightInfo::recalculate_stake());
- base_acc += amount;
- });
- <TotalStaked<T>>::get()
- .checked_add(&acc)
- .map(|res| <TotalStaked<T>>::set(res));
+ // Staked::<T>::iter()
+ // .filter(|((_, block), _)| {
+ // *block + T::RecalculationInterval::get() <= current_relay_block
+ // })
+ // .for_each(|((staker, block), amount)| {
+ // Self::recalculate_stake(&staker, block, amount, &mut acc);
+ // add_weight(0, 0, T::WeightInfo::recalculate_stake());
+ // base_acc += amount;
+ // });
+ // <TotalStaked<T>>::get()
+ // .checked_add(&acc)
+ // .map(|res| <TotalStaked<T>>::set(res));
- Self::deposit_event(Event::StakingRecalculation(base_acc, acc));
- add_weight(0, 1, 0);
- } else {
- add_weight(1, 0, 0)
- };
+ // Self::deposit_event(Event::StakingRecalculation(base_acc, acc));
+ // add_weight(0, 1, 0);
+ // } else {
+ // add_weight(1, 0, 0)
+ // };
consumed_weight
}
}
#[pallet::call]
- impl<T: Config> Pallet<T> {
+ impl<T: Config> Pallet<T>
+ where
+ T::BlockNumber: From<u32>,
+ {
#[pallet::weight(T::WeightInfo::set_admin_address())]
pub fn set_admin_address(origin: OriginFor<T>, admin: T::CrossAccountId) -> DispatchResult {
ensure_root(origin)?;
@@ -281,7 +293,7 @@
Ok(())
}
- #[pallet::weight(0)]
+ #[pallet::weight(T::WeightInfo::stop_app_promotion())]
pub fn stop_app_promotion(origin: OriginFor<T>) -> DispatchResult
where
<T as frame_system::Config>::BlockNumber: From<u32>,
@@ -317,19 +329,24 @@
Self::add_lock_balance(&staker_id, amount)?;
let block_number = T::RelayBlockNumberProvider::current_block_number();
+ let recalc_block = (block_number / T::RecalculationInterval::get() + 2u32.into())
+ * T::RecalculationInterval::get();
- <Staked<T>>::insert(
- (&staker_id, block_number),
- <Staked<T>>::get((&staker_id, block_number))
+ <Staked<T>>::insert((&staker_id, block_number), {
+ let mut balance_and_recalc_block = <Staked<T>>::get((&staker_id, block_number));
+ balance_and_recalc_block.0 = balance_and_recalc_block
+ .0
.checked_add(&amount)
- .ok_or(ArithmeticError::Overflow)?,
- );
+ .ok_or(ArithmeticError::Overflow)?;
+ balance_and_recalc_block.1 = recalc_block;
+ balance_and_recalc_block
+ });
- <TotalStaked<T>>::set(
- <TotalStaked<T>>::get()
- .checked_add(&amount)
- .ok_or(ArithmeticError::Overflow)?,
- );
+ // <TotalStaked<T>>::set(
+ // <TotalStaked<T>>::get()
+ // .checked_add(&amount)
+ // .ok_or(ArithmeticError::Overflow)?,
+ // );
Ok(())
}
@@ -338,63 +355,120 @@
pub fn unstake(staker: OriginFor<T>, amount: BalanceOf<T>) -> DispatchResult {
let staker_id = ensure_signed(staker)?;
- let mut stakes = Staked::<T>::iter_prefix((&staker_id,)).collect::<Vec<_>>();
+ let mut stakes = Staked::<T>::drain_prefix((&staker_id,));
- let total_staked = stakes
- .iter()
- .fold(<BalanceOf<T>>::default(), |acc, (_, amount)| acc + *amount);
+ // let total_staked = stakes
+ // .iter()
+ // .fold(<BalanceOf<T>>::default(), |acc, (_, amount)| acc + *amount);
- ensure!(total_staked >= amount, ArithmeticError::Underflow);
+ // ensure!(total_staked >= amount, ArithmeticError::Underflow);
- <TotalStaked<T>>::set(
- <TotalStaked<T>>::get()
- .checked_sub(&amount)
- .ok_or(ArithmeticError::Underflow)?,
- );
+ // <TotalStaked<T>>::set(
+ // <TotalStaked<T>>::get()
+ // .checked_sub(&amount)
+ // .ok_or(ArithmeticError::Underflow)?,
+ // );
- let block =
- T::RelayBlockNumberProvider::current_block_number() + T::PendingInterval::get();
- <PendingUnstake<T>>::insert(
- (&staker_id, block),
- <PendingUnstake<T>>::get((&staker_id, block))
- .checked_add(&amount)
- .ok_or(ArithmeticError::Overflow)?,
- );
+ // let block =
+ // T::RelayBlockNumberProvider::current_block_number() + T::PendingInterval::get();
+ // <PendingUnstake<T>>::insert(
+ // (&staker_id, block),
+ // <PendingUnstake<T>>::get((&staker_id, block))
+ // .checked_add(&amount)
+ // .ok_or(ArithmeticError::Overflow)?,
+ // );
- stakes.sort_by_key(|(block, _)| *block);
+ // stakes.sort_by_key(|(block, _)| *block);
- let mut acc_amount = amount;
- let new_state = stakes
- .into_iter()
- .map_while(|(block, balance_per_block)| {
- if acc_amount == <BalanceOf<T>>::default() {
- return None;
- }
- if acc_amount <= balance_per_block {
- let res = (block, balance_per_block - acc_amount, acc_amount);
- acc_amount = <BalanceOf<T>>::default();
- return Some(res);
- } else {
- acc_amount -= balance_per_block;
- return Some((block, <BalanceOf<T>>::default(), acc_amount));
- }
- })
- .collect::<Vec<_>>();
+ // let mut acc_amount = amount;
+ // let new_state = stakes
+ // .into_iter()
+ // .map_while(|(block, balance_per_block)| {
+ // if acc_amount == <BalanceOf<T>>::default() {
+ // return None;
+ // }
+ // if acc_amount <= balance_per_block {
+ // let res = (block, balance_per_block - acc_amount, acc_amount);
+ // acc_amount = <BalanceOf<T>>::default();
+ // return Some(res);
+ // } else {
+ // acc_amount -= balance_per_block;
+ // return Some((block, <BalanceOf<T>>::default(), acc_amount));
+ // }
+ // })
+ // .collect::<Vec<_>>();
- new_state
- .into_iter()
- .for_each(|(block, to_staked, _to_pending)| {
- if to_staked == <BalanceOf<T>>::default() {
- <Staked<T>>::remove((&staker_id, block));
- } else {
- <Staked<T>>::insert((&staker_id, block), to_staked);
- }
- });
+ // new_state
+ // .into_iter()
+ // .for_each(|(block, to_staked, _to_pending)| {
+ // if to_staked == <BalanceOf<T>>::default() {
+ // <Staked<T>>::remove((&staker_id, block));
+ // } else {
+ // <Staked<T>>::insert((&staker_id, block), to_staked);
+ // }
+ // });
Ok(())
+
+ // let staker_id = ensure_signed(staker)?;
+
+ // let mut stakes = Staked::<T>::iter_prefix((&staker_id,)).collect::<Vec<_>>();
+
+ // let total_staked = stakes
+ // .iter()
+ // .fold(<BalanceOf<T>>::default(), |acc, (_, amount)| acc + *amount);
+
+ // ensure!(total_staked >= amount, ArithmeticError::Underflow);
+
+ // <TotalStaked<T>>::set(
+ // <TotalStaked<T>>::get()
+ // .checked_sub(&amount)
+ // .ok_or(ArithmeticError::Underflow)?,
+ // );
+
+ // let block =
+ // T::RelayBlockNumberProvider::current_block_number() + T::PendingInterval::get();
+ // <PendingUnstake<T>>::insert(
+ // (&staker_id, block),
+ // <PendingUnstake<T>>::get((&staker_id, block))
+ // .checked_add(&amount)
+ // .ok_or(ArithmeticError::Overflow)?,
+ // );
+
+ // stakes.sort_by_key(|(block, _)| *block);
+
+ // let mut acc_amount = amount;
+ // let new_state = stakes
+ // .into_iter()
+ // .map_while(|(block, balance_per_block)| {
+ // if acc_amount == <BalanceOf<T>>::default() {
+ // return None;
+ // }
+ // if acc_amount <= balance_per_block {
+ // let res = (block, balance_per_block - acc_amount, acc_amount);
+ // acc_amount = <BalanceOf<T>>::default();
+ // return Some(res);
+ // } else {
+ // acc_amount -= balance_per_block;
+ // return Some((block, <BalanceOf<T>>::default(), acc_amount));
+ // }
+ // })
+ // .collect::<Vec<_>>();
+
+ // new_state
+ // .into_iter()
+ // .for_each(|(block, to_staked, _to_pending)| {
+ // if to_staked == <BalanceOf<T>>::default() {
+ // <Staked<T>>::remove((&staker_id, block));
+ // } else {
+ // <Staked<T>>::insert((&staker_id, block), to_staked);
+ // }
+ // });
+
+ // Ok(())
}
- #[pallet::weight(0)]
+ #[pallet::weight(T::WeightInfo::sponsor_collection())]
pub fn sponsor_collection(
admin: OriginFor<T>,
collection_id: CollectionId,
@@ -407,8 +481,8 @@
T::CollectionHandler::set_sponsor(Self::account_id(), collection_id)
}
- #[pallet::weight(0)]
- pub fn stop_sponsorign_collection(
+ #[pallet::weight(T::WeightInfo::stop_sponsoring_collection())]
+ pub fn stop_sponsoring_collection(
admin: OriginFor<T>,
collection_id: CollectionId,
) -> DispatchResult {
@@ -428,7 +502,7 @@
T::CollectionHandler::remove_collection_sponsor(collection_id)
}
- #[pallet::weight(0)]
+ #[pallet::weight(T::WeightInfo::sponsor_contract())]
pub fn sponsor_conract(admin: OriginFor<T>, contract_id: H160) -> DispatchResult {
let admin_id = ensure_signed(admin)?;
@@ -443,8 +517,8 @@
)
}
- #[pallet::weight(0)]
- pub fn stop_sponsorign_contract(admin: OriginFor<T>, contract_id: H160) -> DispatchResult {
+ #[pallet::weight(T::WeightInfo::stop_sponsoring_contract())]
+ pub fn stop_sponsoring_contract(admin: OriginFor<T>, contract_id: H160) -> DispatchResult {
let admin_id = ensure_signed(admin)?;
ensure!(
@@ -459,6 +533,18 @@
);
T::ContractHandler::remove_contract_sponsor(contract_id)
}
+
+ #[pallet::weight(0)]
+ pub fn payout_stakers(admin: OriginFor<T>, stakers_number: Option<u8>) -> DispatchResult {
+ let admin_id = ensure_signed(admin)?;
+
+ ensure!(
+ admin_id == Admin::<T>::get().ok_or(Error::<T>::AdminNotSet)?,
+ Error::<T>::NoPermission
+ );
+
+ Ok(())
+ }
}
}
@@ -501,7 +587,9 @@
pub fn total_staked_by_id(staker: impl EncodeLike<T::AccountId>) -> Option<BalanceOf<T>> {
let staked = Staked::<T>::iter_prefix((staker,))
.into_iter()
- .fold(<BalanceOf<T>>::default(), |acc, (_, amount)| acc + amount);
+ .fold(<BalanceOf<T>>::default(), |acc, (_, (amount, _))| {
+ acc + amount
+ });
if staked != <BalanceOf<T>>::default() {
Some(staked)
} else {
@@ -514,7 +602,7 @@
) -> Option<Vec<(T::BlockNumber, BalanceOf<T>)>> {
let mut staked = Staked::<T>::iter_prefix((staker,))
.into_iter()
- .map(|(block, amount)| (block, amount))
+ .map(|(block, (amount, _))| (block, amount))
.collect::<Vec<_>>();
staked.sort_by_key(|(block, _)| *block);
if !staked.is_empty() {
@@ -550,17 +638,17 @@
income_acc: &mut BalanceOf<T>,
) {
let income = Self::calculate_income(base);
- base.checked_add(&income).map(|res| {
- <Staked<T>>::insert((staker, block), res);
- *income_acc += income;
- <T::Currency as Currency<T::AccountId>>::transfer(
- &T::TreasuryAccountId::get(),
- staker,
- income,
- ExistenceRequirement::KeepAlive,
- )
- .and_then(|_| Self::add_lock_balance(staker, income));
- });
+ // base.checked_add(&income).map(|res| {
+ // <Staked<T>>::insert((staker, block), res);
+ // *income_acc += income;
+ // <T::Currency as Currency<T::AccountId>>::transfer(
+ // &T::TreasuryAccountId::get(),
+ // staker,
+ // income,
+ // ExistenceRequirement::KeepAlive,
+ // )
+ // .and_then(|_| Self::add_lock_balance(staker, income));
+ // });
}
fn calculate_income<I>(base: I) -> I
pallets/app-promotion/src/types.rsdiffbeforeafterboth--- a/pallets/app-promotion/src/types.rs
+++ b/pallets/app-promotion/src/types.rs
@@ -101,7 +101,7 @@
fn set_sponsor(sponsor_id: Self::AccountId, contract_id: Self::ContractId) -> DispatchResult;
- fn remove_contract_sponsor(collection_id: Self::ContractId) -> DispatchResult;
+ fn remove_contract_sponsor(contract_id: Self::ContractId) -> DispatchResult;
fn get_sponsor(contract_id: Self::ContractId)
-> Result<Option<Self::AccountId>, DispatchError>;
pallets/app-promotion/src/weights.rsdiffbeforeafterboth--- a/pallets/app-promotion/src/weights.rs
+++ b/pallets/app-promotion/src/weights.rs
@@ -3,7 +3,7 @@
//! Autogenerated weights for pallet_app_promotion
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2022-08-09, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2022-08-30, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
@@ -33,108 +33,167 @@
/// Weight functions needed for pallet_app_promotion.
pub trait WeightInfo {
- fn on_initialize() -> Weight;
fn start_app_promotion() -> Weight;
+ fn stop_app_promotion() -> Weight;
fn set_admin_address() -> Weight;
+ fn payout_stakers() -> Weight;
fn stake() -> Weight;
fn unstake() -> Weight;
fn recalculate_stake() -> Weight;
+ fn sponsor_collection() -> Weight;
+ fn stop_sponsoring_collection() -> Weight;
+ fn sponsor_contract() -> Weight;
+ fn stop_sponsoring_contract() -> Weight;
}
/// Weights for pallet_app_promotion using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
- // Storage: Promotion PendingUnstake (r:1 w:0)
- // Storage: Promotion NextInterestBlock (r:1 w:0)
- fn on_initialize() -> Weight {
- (2_705_000 as Weight)
+ // Storage: Promotion StartBlock (r:1 w:1)
+ // Storage: ParachainSystem ValidationData (r:1 w:0)
+ // Storage: Promotion NextInterestBlock (r:0 w:1)
+ fn start_app_promotion() -> Weight {
+ (2_299_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
+ .saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Promotion StartBlock (r:1 w:1)
// Storage: Promotion NextInterestBlock (r:0 w:1)
- fn start_app_promotion() -> Weight {
- (1_436_000 as Weight)
+ fn stop_app_promotion() -> Weight {
+ (1_733_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Promotion Admin (r:0 w:1)
fn set_admin_address() -> Weight {
- (516_000 as Weight)
+ (553_000 as Weight)
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
+ // Storage: Promotion Admin (r:1 w:0)
+ fn payout_stakers() -> Weight {
+ (1_398_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(1 as Weight))
+ }
// Storage: System Account (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
// Storage: ParachainSystem ValidationData (r:1 w:0)
// Storage: Promotion Staked (r:1 w:1)
- // Storage: Promotion TotalStaked (r:1 w:1)
fn stake() -> Weight {
- (10_019_000 as Weight)
- .saturating_add(T::DbWeight::get().reads(5 as Weight))
- .saturating_add(T::DbWeight::get().writes(4 as Weight))
+ (9_506_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(4 as Weight))
+ .saturating_add(T::DbWeight::get().writes(3 as Weight))
}
- // Storage: System Account (r:1 w:1)
- // Storage: Balances Locks (r:1 w:1)
- // Storage: ParachainSystem ValidationData (r:1 w:0)
- // Storage: Promotion Staked (r:1 w:1)
- // Storage: Promotion TotalStaked (r:1 w:1)
+ // Storage: System Account (r:1 w:0)
fn unstake() -> Weight {
- (10_619_000 as Weight)
- .saturating_add(T::DbWeight::get().reads(5 as Weight))
- .saturating_add(T::DbWeight::get().writes(4 as Weight))
+ (2_529_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(1 as Weight))
}
- // Storage: System Account (r:2 w:0)
- // Storage: Promotion Staked (r:0 w:1)
+ // Storage: System Account (r:1 w:0)
fn recalculate_stake() -> Weight {
- (4_932_000 as Weight)
+ (2_203_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(1 as Weight))
+ }
+ // Storage: Promotion Admin (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:1)
+ fn sponsor_collection() -> Weight {
+ (10_882_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(2 as Weight))
+ .saturating_add(T::DbWeight::get().writes(1 as Weight))
+ }
+ // Storage: Promotion Admin (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:1)
+ fn stop_sponsoring_collection() -> Weight {
+ (10_544_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
+ // Storage: Promotion Admin (r:1 w:0)
+ // Storage: EvmContractHelpers Sponsoring (r:0 w:1)
+ fn sponsor_contract() -> Weight {
+ (2_163_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(1 as Weight))
+ .saturating_add(T::DbWeight::get().writes(1 as Weight))
+ }
+ // Storage: Promotion Admin (r:1 w:0)
+ // Storage: EvmContractHelpers Sponsoring (r:1 w:1)
+ fn stop_sponsoring_contract() -> Weight {
+ (3_511_000 as Weight)
+ .saturating_add(T::DbWeight::get().reads(2 as Weight))
+ .saturating_add(T::DbWeight::get().writes(1 as Weight))
+ }
}
// For backwards compatibility and tests
impl WeightInfo for () {
- // Storage: Promotion PendingUnstake (r:1 w:0)
- // Storage: Promotion NextInterestBlock (r:1 w:0)
- fn on_initialize() -> Weight {
- (2_705_000 as Weight)
+ // Storage: Promotion StartBlock (r:1 w:1)
+ // Storage: ParachainSystem ValidationData (r:1 w:0)
+ // Storage: Promotion NextInterestBlock (r:0 w:1)
+ fn start_app_promotion() -> Weight {
+ (2_299_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
// Storage: Promotion StartBlock (r:1 w:1)
// Storage: Promotion NextInterestBlock (r:0 w:1)
- fn start_app_promotion() -> Weight {
- (1_436_000 as Weight)
+ fn stop_app_promotion() -> Weight {
+ (1_733_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
// Storage: Promotion Admin (r:0 w:1)
fn set_admin_address() -> Weight {
- (516_000 as Weight)
+ (553_000 as Weight)
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
+ // Storage: Promotion Admin (r:1 w:0)
+ fn payout_stakers() -> Weight {
+ (1_398_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(1 as Weight))
+ }
// Storage: System Account (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
// Storage: ParachainSystem ValidationData (r:1 w:0)
// Storage: Promotion Staked (r:1 w:1)
- // Storage: Promotion TotalStaked (r:1 w:1)
fn stake() -> Weight {
- (10_019_000 as Weight)
- .saturating_add(RocksDbWeight::get().reads(5 as Weight))
- .saturating_add(RocksDbWeight::get().writes(4 as Weight))
+ (9_506_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(4 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
- // Storage: System Account (r:1 w:1)
- // Storage: Balances Locks (r:1 w:1)
- // Storage: ParachainSystem ValidationData (r:1 w:0)
- // Storage: Promotion Staked (r:1 w:1)
- // Storage: Promotion TotalStaked (r:1 w:1)
+ // Storage: System Account (r:1 w:0)
fn unstake() -> Weight {
- (10_619_000 as Weight)
- .saturating_add(RocksDbWeight::get().reads(5 as Weight))
- .saturating_add(RocksDbWeight::get().writes(4 as Weight))
+ (2_529_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(1 as Weight))
}
- // Storage: System Account (r:2 w:0)
- // Storage: Promotion Staked (r:0 w:1)
+ // Storage: System Account (r:1 w:0)
fn recalculate_stake() -> Weight {
- (4_932_000 as Weight)
+ (2_203_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(1 as Weight))
+ }
+ // Storage: Promotion Admin (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:1)
+ fn sponsor_collection() -> Weight {
+ (10_882_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(2 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(1 as Weight))
+ }
+ // Storage: Promotion Admin (r:1 w:0)
+ // Storage: Common CollectionById (r:1 w:1)
+ fn stop_sponsoring_collection() -> Weight {
+ (10_544_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(2 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(1 as Weight))
+ }
+ // Storage: Promotion Admin (r:1 w:0)
+ // Storage: EvmContractHelpers Sponsoring (r:0 w:1)
+ fn sponsor_contract() -> Weight {
+ (2_163_000 as Weight)
+ .saturating_add(RocksDbWeight::get().reads(1 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(1 as Weight))
+ }
+ // Storage: Promotion Admin (r:1 w:0)
+ // Storage: EvmContractHelpers Sponsoring (r:1 w:1)
+ fn stop_sponsoring_contract() -> Weight {
+ (3_511_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
pallets/unique/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/unique/src/benchmarking.rs
+++ b/pallets/unique/src/benchmarking.rs
@@ -46,7 +46,9 @@
)?;
Ok(<pallet_common::CreatedCollectionCount<T>>::get())
}
-fn create_nft_collection<T: Config>(owner: T::AccountId) -> Result<CollectionId, DispatchError> {
+pub fn create_nft_collection<T: Config>(
+ owner: T::AccountId,
+) -> Result<CollectionId, DispatchError> {
create_collection_helper::<T>(owner, CollectionMode::NFT)
}
pallets/unique/src/lib.rsdiffbeforeafterboth--- a/pallets/unique/src/lib.rs
+++ b/pallets/unique/src/lib.rs
@@ -98,7 +98,7 @@
pub mod eth;
#[cfg(feature = "runtime-benchmarks")]
-mod benchmarking;
+pub mod benchmarking;
pub mod weights;
use weights::WeightInfo;
tests/src/interfaces/augment-api-events.tsdiffbeforeafterboth1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34// import type lookup before we augment - in some environments5// this is required to allow for ambient/previous definitions6import '@polkadot/api-base/types/events';78import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';9import type { Bytes, Null, Option, Result, U256, U8aFixed, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';10import type { ITuple } from '@polkadot/types-codec/types';11import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';12import type { EthereumLog, EvmCoreErrorExitReason, FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, OrmlVestingVestingSchedule, PalletEvmAccountBasicCrossAccountIdRepr, RmrkTraitsNftAccountIdOrCollectionNftTuple, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';1314export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;1516declare module '@polkadot/api-base/types/events' {17 interface AugmentedEvents<ApiType extends ApiTypes> {18 balances: {19 /**20 * A balance was set by root.21 **/22 BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128, reserved: u128], { who: AccountId32, free: u128, reserved: u128 }>;23 /**24 * Some amount was deposited (e.g. for transaction fees).25 **/26 Deposit: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;27 /**28 * An account was removed whose balance was non-zero but below ExistentialDeposit,29 * resulting in an outright loss.30 **/31 DustLost: AugmentedEvent<ApiType, [account: AccountId32, amount: u128], { account: AccountId32, amount: u128 }>;32 /**33 * An account was created with some free balance.34 **/35 Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;36 /**37 * Some balance was reserved (moved from free to reserved).38 **/39 Reserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;40 /**41 * Some balance was moved from the reserve of the first account to the second account.42 * Final argument indicates the destination balance type.43 **/44 ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;45 /**46 * Some amount was removed from the account (e.g. for misbehavior).47 **/48 Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;49 /**50 * Transfer succeeded.51 **/52 Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;53 /**54 * Some balance was unreserved (moved from reserved to free).55 **/56 Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;57 /**58 * Some amount was withdrawn from the account (e.g. for transaction fees).59 **/60 Withdraw: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;61 /**62 * Generic event63 **/64 [key: string]: AugmentedEvent<ApiType>;65 };66 common: {67 /**68 * Amount pieces of token owned by `sender` was approved for `spender`.69 **/70 Approved: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;71 /**72 * New collection was created73 **/74 CollectionCreated: AugmentedEvent<ApiType, [u32, u8, AccountId32]>;75 /**76 * New collection was destroyed77 **/78 CollectionDestroyed: AugmentedEvent<ApiType, [u32]>;79 /**80 * The property has been deleted.81 **/82 CollectionPropertyDeleted: AugmentedEvent<ApiType, [u32, Bytes]>;83 /**84 * The colletion property has been added or edited.85 **/86 CollectionPropertySet: AugmentedEvent<ApiType, [u32, Bytes]>;87 /**88 * New item was created.89 **/90 ItemCreated: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;91 /**92 * Collection item was burned.93 **/94 ItemDestroyed: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;95 /**96 * The token property permission of a collection has been set.97 **/98 PropertyPermissionSet: AugmentedEvent<ApiType, [u32, Bytes]>;99 /**100 * The token property has been deleted.101 **/102 TokenPropertyDeleted: AugmentedEvent<ApiType, [u32, u32, Bytes]>;103 /**104 * The token property has been added or edited.105 **/106 TokenPropertySet: AugmentedEvent<ApiType, [u32, u32, Bytes]>;107 /**108 * Item was transferred109 **/110 Transfer: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;111 /**112 * Generic event113 **/114 [key: string]: AugmentedEvent<ApiType>;115 };116 cumulusXcm: {117 /**118 * Downward message executed with the given outcome.119 * \[ id, outcome \]120 **/121 ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, XcmV2TraitsOutcome]>;122 /**123 * Downward message is invalid XCM.124 * \[ id \]125 **/126 InvalidFormat: AugmentedEvent<ApiType, [U8aFixed]>;127 /**128 * Downward message is unsupported version of XCM.129 * \[ id \]130 **/131 UnsupportedVersion: AugmentedEvent<ApiType, [U8aFixed]>;132 /**133 * Generic event134 **/135 [key: string]: AugmentedEvent<ApiType>;136 };137 dmpQueue: {138 /**139 * Downward message executed with the given outcome.140 **/141 ExecutedDownward: AugmentedEvent<ApiType, [messageId: U8aFixed, outcome: XcmV2TraitsOutcome], { messageId: U8aFixed, outcome: XcmV2TraitsOutcome }>;142 /**143 * Downward message is invalid XCM.144 **/145 InvalidFormat: AugmentedEvent<ApiType, [messageId: U8aFixed], { messageId: U8aFixed }>;146 /**147 * Downward message is overweight and was placed in the overweight queue.148 **/149 OverweightEnqueued: AugmentedEvent<ApiType, [messageId: U8aFixed, overweightIndex: u64, requiredWeight: u64], { messageId: U8aFixed, overweightIndex: u64, requiredWeight: u64 }>;150 /**151 * Downward message from the overweight queue was executed.152 **/153 OverweightServiced: AugmentedEvent<ApiType, [overweightIndex: u64, weightUsed: u64], { overweightIndex: u64, weightUsed: u64 }>;154 /**155 * Downward message is unsupported version of XCM.156 **/157 UnsupportedVersion: AugmentedEvent<ApiType, [messageId: U8aFixed], { messageId: U8aFixed }>;158 /**159 * The weight limit for handling downward messages was reached.160 **/161 WeightExhausted: AugmentedEvent<ApiType, [messageId: U8aFixed, remainingWeight: u64, requiredWeight: u64], { messageId: U8aFixed, remainingWeight: u64, requiredWeight: u64 }>;162 /**163 * Generic event164 **/165 [key: string]: AugmentedEvent<ApiType>;166 };167 ethereum: {168 /**169 * An ethereum transaction was successfully executed. [from, to/contract_address, transaction_hash, exit_reason]170 **/171 Executed: AugmentedEvent<ApiType, [H160, H160, H256, EvmCoreErrorExitReason]>;172 /**173 * Generic event174 **/175 [key: string]: AugmentedEvent<ApiType>;176 };177 evm: {178 /**179 * A deposit has been made at a given address. \[sender, address, value\]180 **/181 BalanceDeposit: AugmentedEvent<ApiType, [AccountId32, H160, U256]>;182 /**183 * A withdrawal has been made from a given address. \[sender, address, value\]184 **/185 BalanceWithdraw: AugmentedEvent<ApiType, [AccountId32, H160, U256]>;186 /**187 * A contract has been created at given \[address\].188 **/189 Created: AugmentedEvent<ApiType, [H160]>;190 /**191 * A \[contract\] was attempted to be created, but the execution failed.192 **/193 CreatedFailed: AugmentedEvent<ApiType, [H160]>;194 /**195 * A \[contract\] has been executed successfully with states applied.196 **/197 Executed: AugmentedEvent<ApiType, [H160]>;198 /**199 * A \[contract\] has been executed with errors. States are reverted with only gas fees applied.200 **/201 ExecutedFailed: AugmentedEvent<ApiType, [H160]>;202 /**203 * Ethereum events from contracts.204 **/205 Log: AugmentedEvent<ApiType, [EthereumLog]>;206 /**207 * Generic event208 **/209 [key: string]: AugmentedEvent<ApiType>;210 };211 parachainSystem: {212 /**213 * Downward messages were processed using the given weight.214 **/215 DownwardMessagesProcessed: AugmentedEvent<ApiType, [weightUsed: u64, dmqHead: H256], { weightUsed: u64, dmqHead: H256 }>;216 /**217 * Some downward messages have been received and will be processed.218 **/219 DownwardMessagesReceived: AugmentedEvent<ApiType, [count: u32], { count: u32 }>;220 /**221 * An upgrade has been authorized.222 **/223 UpgradeAuthorized: AugmentedEvent<ApiType, [codeHash: H256], { codeHash: H256 }>;224 /**225 * The validation function was applied as of the contained relay chain block number.226 **/227 ValidationFunctionApplied: AugmentedEvent<ApiType, [relayChainBlockNum: u32], { relayChainBlockNum: u32 }>;228 /**229 * The relay-chain aborted the upgrade process.230 **/231 ValidationFunctionDiscarded: AugmentedEvent<ApiType, []>;232 /**233 * The validation function has been scheduled to apply.234 **/235 ValidationFunctionStored: AugmentedEvent<ApiType, []>;236 /**237 * Generic event238 **/239 [key: string]: AugmentedEvent<ApiType>;240 };241 polkadotXcm: {242 /**243 * Some assets have been placed in an asset trap.244 * 245 * \[ hash, origin, assets \]246 **/247 AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;248 /**249 * Execution of an XCM message was attempted.250 * 251 * \[ outcome \]252 **/253 Attempted: AugmentedEvent<ApiType, [XcmV2TraitsOutcome]>;254 /**255 * Expected query response has been received but the origin location of the response does256 * not match that expected. The query remains registered for a later, valid, response to257 * be received and acted upon.258 * 259 * \[ origin location, id, expected location \]260 **/261 InvalidResponder: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;262 /**263 * Expected query response has been received but the expected origin location placed in264 * storage by this runtime previously cannot be decoded. The query remains registered.265 * 266 * This is unexpected (since a location placed in storage in a previously executing267 * runtime should be readable prior to query timeout) and dangerous since the possibly268 * valid response will be dropped. Manual governance intervention is probably going to be269 * needed.270 * 271 * \[ origin location, id \]272 **/273 InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;274 /**275 * Query response has been received and query is removed. The registered notification has276 * been dispatched and executed successfully.277 * 278 * \[ id, pallet index, call index \]279 **/280 Notified: AugmentedEvent<ApiType, [u64, u8, u8]>;281 /**282 * Query response has been received and query is removed. The dispatch was unable to be283 * decoded into a `Call`; this might be due to dispatch function having a signature which284 * is not `(origin, QueryId, Response)`.285 * 286 * \[ id, pallet index, call index \]287 **/288 NotifyDecodeFailed: AugmentedEvent<ApiType, [u64, u8, u8]>;289 /**290 * Query response has been received and query is removed. There was a general error with291 * dispatching the notification call.292 * 293 * \[ id, pallet index, call index \]294 **/295 NotifyDispatchError: AugmentedEvent<ApiType, [u64, u8, u8]>;296 /**297 * Query response has been received and query is removed. The registered notification could298 * not be dispatched because the dispatch weight is greater than the maximum weight299 * originally budgeted by this runtime for the query result.300 * 301 * \[ id, pallet index, call index, actual weight, max budgeted weight \]302 **/303 NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, u64, u64]>;304 /**305 * A given location which had a version change subscription was dropped owing to an error306 * migrating the location to our new XCM format.307 * 308 * \[ location, query ID \]309 **/310 NotifyTargetMigrationFail: AugmentedEvent<ApiType, [XcmVersionedMultiLocation, u64]>;311 /**312 * A given location which had a version change subscription was dropped owing to an error313 * sending the notification to it.314 * 315 * \[ location, query ID, error \]316 **/317 NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, XcmV2TraitsError]>;318 /**319 * Query response has been received and is ready for taking with `take_response`. There is320 * no registered notification call.321 * 322 * \[ id, response \]323 **/324 ResponseReady: AugmentedEvent<ApiType, [u64, XcmV2Response]>;325 /**326 * Received query response has been read and removed.327 * 328 * \[ id \]329 **/330 ResponseTaken: AugmentedEvent<ApiType, [u64]>;331 /**332 * A XCM message was sent.333 * 334 * \[ origin, destination, message \]335 **/336 Sent: AugmentedEvent<ApiType, [XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;337 /**338 * The supported version of a location has been changed. This might be through an339 * automatic notification or a manual intervention.340 * 341 * \[ location, XCM version \]342 **/343 SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;344 /**345 * Query response received which does not match a registered query. This may be because a346 * matching query was never registered, it may be because it is a duplicate response, or347 * because the query timed out.348 * 349 * \[ origin location, id \]350 **/351 UnexpectedResponse: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;352 /**353 * An XCM version change notification message has been attempted to be sent.354 * 355 * \[ destination, result \]356 **/357 VersionChangeNotified: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;358 /**359 * Generic event360 **/361 [key: string]: AugmentedEvent<ApiType>;362 };363 promotion: {364 StakingRecalculation: AugmentedEvent<ApiType, [u128, u128]>;365 /**366 * Generic event367 **/368 [key: string]: AugmentedEvent<ApiType>;369 };370 rmrkCore: {371 CollectionCreated: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;372 CollectionDestroyed: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;373 CollectionLocked: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;374 IssuerChanged: AugmentedEvent<ApiType, [oldIssuer: AccountId32, newIssuer: AccountId32, collectionId: u32], { oldIssuer: AccountId32, newIssuer: AccountId32, collectionId: u32 }>;375 NFTAccepted: AugmentedEvent<ApiType, [sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32], { sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32 }>;376 NFTBurned: AugmentedEvent<ApiType, [owner: AccountId32, nftId: u32], { owner: AccountId32, nftId: u32 }>;377 NftMinted: AugmentedEvent<ApiType, [owner: AccountId32, collectionId: u32, nftId: u32], { owner: AccountId32, collectionId: u32, nftId: u32 }>;378 NFTRejected: AugmentedEvent<ApiType, [sender: AccountId32, collectionId: u32, nftId: u32], { sender: AccountId32, collectionId: u32, nftId: u32 }>;379 NFTSent: AugmentedEvent<ApiType, [sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32, approvalRequired: bool], { sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32, approvalRequired: bool }>;380 PrioritySet: AugmentedEvent<ApiType, [collectionId: u32, nftId: u32], { collectionId: u32, nftId: u32 }>;381 PropertySet: AugmentedEvent<ApiType, [collectionId: u32, maybeNftId: Option<u32>, key: Bytes, value: Bytes], { collectionId: u32, maybeNftId: Option<u32>, key: Bytes, value: Bytes }>;382 ResourceAccepted: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;383 ResourceAdded: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;384 ResourceRemoval: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;385 ResourceRemovalAccepted: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;386 /**387 * Generic event388 **/389 [key: string]: AugmentedEvent<ApiType>;390 };391 rmrkEquip: {392 BaseCreated: AugmentedEvent<ApiType, [issuer: AccountId32, baseId: u32], { issuer: AccountId32, baseId: u32 }>;393 EquippablesUpdated: AugmentedEvent<ApiType, [baseId: u32, slotId: u32], { baseId: u32, slotId: u32 }>;394 /**395 * Generic event396 **/397 [key: string]: AugmentedEvent<ApiType>;398 };399 scheduler: {400 /**401 * The call for the provided hash was not found so the task has been aborted.402 **/403 CallLookupFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, error: FrameSupportScheduleLookupError], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, error: FrameSupportScheduleLookupError }>;404 /**405 * Canceled some task.406 **/407 Canceled: AugmentedEvent<ApiType, [when: u32, index: u32], { when: u32, index: u32 }>;408 /**409 * Dispatched some task.410 **/411 Dispatched: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, result: Result<Null, SpRuntimeDispatchError>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, result: Result<Null, SpRuntimeDispatchError> }>;412 /**413 * Scheduled some task.414 **/415 Scheduled: AugmentedEvent<ApiType, [when: u32, index: u32], { when: u32, index: u32 }>;416 /**417 * Generic event418 **/419 [key: string]: AugmentedEvent<ApiType>;420 };421 structure: {422 /**423 * Executed call on behalf of the token.424 **/425 Executed: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;426 /**427 * Generic event428 **/429 [key: string]: AugmentedEvent<ApiType>;430 };431 sudo: {432 /**433 * The \[sudoer\] just switched identity; the old key is supplied if one existed.434 **/435 KeyChanged: AugmentedEvent<ApiType, [oldSudoer: Option<AccountId32>], { oldSudoer: Option<AccountId32> }>;436 /**437 * A sudo just took place. \[result\]438 **/439 Sudid: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;440 /**441 * A sudo just took place. \[result\]442 **/443 SudoAsDone: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;444 /**445 * Generic event446 **/447 [key: string]: AugmentedEvent<ApiType>;448 };449 system: {450 /**451 * `:code` was updated.452 **/453 CodeUpdated: AugmentedEvent<ApiType, []>;454 /**455 * An extrinsic failed.456 **/457 ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo }>;458 /**459 * An extrinsic completed successfully.460 **/461 ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchInfo: FrameSupportWeightsDispatchInfo }>;462 /**463 * An account was reaped.464 **/465 KilledAccount: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;466 /**467 * A new account was created.468 **/469 NewAccount: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;470 /**471 * On on-chain remark happened.472 **/473 Remarked: AugmentedEvent<ApiType, [sender: AccountId32, hash_: H256], { sender: AccountId32, hash_: H256 }>;474 /**475 * Generic event476 **/477 [key: string]: AugmentedEvent<ApiType>;478 };479 transactionPayment: {480 /**481 * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,482 * has been paid by `who`.483 **/484 TransactionFeePaid: AugmentedEvent<ApiType, [who: AccountId32, actualFee: u128, tip: u128], { who: AccountId32, actualFee: u128, tip: u128 }>;485 /**486 * Generic event487 **/488 [key: string]: AugmentedEvent<ApiType>;489 };490 treasury: {491 /**492 * Some funds have been allocated.493 **/494 Awarded: AugmentedEvent<ApiType, [proposalIndex: u32, award: u128, account: AccountId32], { proposalIndex: u32, award: u128, account: AccountId32 }>;495 /**496 * Some of our funds have been burnt.497 **/498 Burnt: AugmentedEvent<ApiType, [burntFunds: u128], { burntFunds: u128 }>;499 /**500 * Some funds have been deposited.501 **/502 Deposit: AugmentedEvent<ApiType, [value: u128], { value: u128 }>;503 /**504 * New proposal.505 **/506 Proposed: AugmentedEvent<ApiType, [proposalIndex: u32], { proposalIndex: u32 }>;507 /**508 * A proposal was rejected; funds were slashed.509 **/510 Rejected: AugmentedEvent<ApiType, [proposalIndex: u32, slashed: u128], { proposalIndex: u32, slashed: u128 }>;511 /**512 * Spending has finished; this is the amount that rolls over until next spend.513 **/514 Rollover: AugmentedEvent<ApiType, [rolloverBalance: u128], { rolloverBalance: u128 }>;515 /**516 * A new spend proposal has been approved.517 **/518 SpendApproved: AugmentedEvent<ApiType, [proposalIndex: u32, amount: u128, beneficiary: AccountId32], { proposalIndex: u32, amount: u128, beneficiary: AccountId32 }>;519 /**520 * We have ended a spend period and will now allocate funds.521 **/522 Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;523 /**524 * Generic event525 **/526 [key: string]: AugmentedEvent<ApiType>;527 };528 unique: {529 /**530 * Address was added to the allow list531 * 532 * # Arguments533 * * collection_id: ID of the affected collection.534 * * user: Address of the added account.535 **/536 AllowListAddressAdded: AugmentedEvent<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;537 /**538 * Address was removed from the allow list539 * 540 * # Arguments541 * * collection_id: ID of the affected collection.542 * * user: Address of the removed account.543 **/544 AllowListAddressRemoved: AugmentedEvent<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;545 /**546 * Collection admin was added547 * 548 * # Arguments549 * * collection_id: ID of the affected collection.550 * * admin: Admin address.551 **/552 CollectionAdminAdded: AugmentedEvent<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;553 /**554 * Collection admin was removed555 * 556 * # Arguments557 * * collection_id: ID of the affected collection.558 * * admin: Removed admin address.559 **/560 CollectionAdminRemoved: AugmentedEvent<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;561 /**562 * Collection limits were set563 * 564 * # Arguments565 * * collection_id: ID of the affected collection.566 **/567 CollectionLimitSet: AugmentedEvent<ApiType, [u32]>;568 /**569 * Collection owned was changed570 * 571 * # Arguments572 * * collection_id: ID of the affected collection.573 * * owner: New owner address.574 **/575 CollectionOwnedChanged: AugmentedEvent<ApiType, [u32, AccountId32]>;576 /**577 * Collection permissions were set578 * 579 * # Arguments580 * * collection_id: ID of the affected collection.581 **/582 CollectionPermissionSet: AugmentedEvent<ApiType, [u32]>;583 /**584 * Collection sponsor was removed585 * 586 * # Arguments587 * * collection_id: ID of the affected collection.588 **/589 CollectionSponsorRemoved: AugmentedEvent<ApiType, [u32]>;590 /**591 * Collection sponsor was set592 * 593 * # Arguments594 * * collection_id: ID of the affected collection.595 * * owner: New sponsor address.596 **/597 CollectionSponsorSet: AugmentedEvent<ApiType, [u32, AccountId32]>;598 /**599 * New sponsor was confirm600 * 601 * # Arguments602 * * collection_id: ID of the affected collection.603 * * sponsor: New sponsor address.604 **/605 SponsorshipConfirmed: AugmentedEvent<ApiType, [u32, AccountId32]>;606 /**607 * Generic event608 **/609 [key: string]: AugmentedEvent<ApiType>;610 };611 vesting: {612 /**613 * Claimed vesting.614 **/615 Claimed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;616 /**617 * Added new vesting schedule.618 **/619 VestingScheduleAdded: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, vestingSchedule: OrmlVestingVestingSchedule], { from: AccountId32, to: AccountId32, vestingSchedule: OrmlVestingVestingSchedule }>;620 /**621 * Updated vesting schedules.622 **/623 VestingSchedulesUpdated: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;624 /**625 * Generic event626 **/627 [key: string]: AugmentedEvent<ApiType>;628 };629 xcmpQueue: {630 /**631 * Bad XCM format used.632 **/633 BadFormat: AugmentedEvent<ApiType, [messageHash: Option<H256>], { messageHash: Option<H256> }>;634 /**635 * Bad XCM version used.636 **/637 BadVersion: AugmentedEvent<ApiType, [messageHash: Option<H256>], { messageHash: Option<H256> }>;638 /**639 * Some XCM failed.640 **/641 Fail: AugmentedEvent<ApiType, [messageHash: Option<H256>, error: XcmV2TraitsError, weight: u64], { messageHash: Option<H256>, error: XcmV2TraitsError, weight: u64 }>;642 /**643 * An XCM exceeded the individual message weight budget.644 **/645 OverweightEnqueued: AugmentedEvent<ApiType, [sender: u32, sentAt: u32, index: u64, required: u64], { sender: u32, sentAt: u32, index: u64, required: u64 }>;646 /**647 * An XCM from the overweight queue was executed with the given actual weight used.648 **/649 OverweightServiced: AugmentedEvent<ApiType, [index: u64, used: u64], { index: u64, used: u64 }>;650 /**651 * Some XCM was executed ok.652 **/653 Success: AugmentedEvent<ApiType, [messageHash: Option<H256>, weight: u64], { messageHash: Option<H256>, weight: u64 }>;654 /**655 * An upward message was sent to the relay chain.656 **/657 UpwardMessageSent: AugmentedEvent<ApiType, [messageHash: Option<H256>], { messageHash: Option<H256> }>;658 /**659 * An HRMP message was sent to a sibling parachain.660 **/661 XcmpMessageSent: AugmentedEvent<ApiType, [messageHash: Option<H256>], { messageHash: Option<H256> }>;662 /**663 * Generic event664 **/665 [key: string]: AugmentedEvent<ApiType>;666 };667 } // AugmentedEvents668} // declare module1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34// import type lookup before we augment - in some environments5// this is required to allow for ambient/previous definitions6import '@polkadot/api-base/types/events';78import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';9import type { Bytes, Null, Option, Result, U256, U8aFixed, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';10import type { ITuple } from '@polkadot/types-codec/types';11import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';12import type { EthereumLog, EvmCoreErrorExitReason, FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, OrmlVestingVestingSchedule, PalletEvmAccountBasicCrossAccountIdRepr, RmrkTraitsNftAccountIdOrCollectionNftTuple, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';1314export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;1516declare module '@polkadot/api-base/types/events' {17 interface AugmentedEvents<ApiType extends ApiTypes> {18 balances: {19 /**20 * A balance was set by root.21 **/22 BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128, reserved: u128], { who: AccountId32, free: u128, reserved: u128 }>;23 /**24 * Some amount was deposited (e.g. for transaction fees).25 **/26 Deposit: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;27 /**28 * An account was removed whose balance was non-zero but below ExistentialDeposit,29 * resulting in an outright loss.30 **/31 DustLost: AugmentedEvent<ApiType, [account: AccountId32, amount: u128], { account: AccountId32, amount: u128 }>;32 /**33 * An account was created with some free balance.34 **/35 Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;36 /**37 * Some balance was reserved (moved from free to reserved).38 **/39 Reserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;40 /**41 * Some balance was moved from the reserve of the first account to the second account.42 * Final argument indicates the destination balance type.43 **/44 ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;45 /**46 * Some amount was removed from the account (e.g. for misbehavior).47 **/48 Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;49 /**50 * Transfer succeeded.51 **/52 Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;53 /**54 * Some balance was unreserved (moved from reserved to free).55 **/56 Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;57 /**58 * Some amount was withdrawn from the account (e.g. for transaction fees).59 **/60 Withdraw: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;61 /**62 * Generic event63 **/64 [key: string]: AugmentedEvent<ApiType>;65 };66 common: {67 /**68 * Amount pieces of token owned by `sender` was approved for `spender`.69 **/70 Approved: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;71 /**72 * New collection was created73 **/74 CollectionCreated: AugmentedEvent<ApiType, [u32, u8, AccountId32]>;75 /**76 * New collection was destroyed77 **/78 CollectionDestroyed: AugmentedEvent<ApiType, [u32]>;79 /**80 * The property has been deleted.81 **/82 CollectionPropertyDeleted: AugmentedEvent<ApiType, [u32, Bytes]>;83 /**84 * The colletion property has been added or edited.85 **/86 CollectionPropertySet: AugmentedEvent<ApiType, [u32, Bytes]>;87 /**88 * New item was created.89 **/90 ItemCreated: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;91 /**92 * Collection item was burned.93 **/94 ItemDestroyed: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;95 /**96 * The token property permission of a collection has been set.97 **/98 PropertyPermissionSet: AugmentedEvent<ApiType, [u32, Bytes]>;99 /**100 * The token property has been deleted.101 **/102 TokenPropertyDeleted: AugmentedEvent<ApiType, [u32, u32, Bytes]>;103 /**104 * The token property has been added or edited.105 **/106 TokenPropertySet: AugmentedEvent<ApiType, [u32, u32, Bytes]>;107 /**108 * Item was transferred109 **/110 Transfer: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;111 /**112 * Generic event113 **/114 [key: string]: AugmentedEvent<ApiType>;115 };116 cumulusXcm: {117 /**118 * Downward message executed with the given outcome.119 * \[ id, outcome \]120 **/121 ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, XcmV2TraitsOutcome]>;122 /**123 * Downward message is invalid XCM.124 * \[ id \]125 **/126 InvalidFormat: AugmentedEvent<ApiType, [U8aFixed]>;127 /**128 * Downward message is unsupported version of XCM.129 * \[ id \]130 **/131 UnsupportedVersion: AugmentedEvent<ApiType, [U8aFixed]>;132 /**133 * Generic event134 **/135 [key: string]: AugmentedEvent<ApiType>;136 };137 dmpQueue: {138 /**139 * Downward message executed with the given outcome.140 **/141 ExecutedDownward: AugmentedEvent<ApiType, [messageId: U8aFixed, outcome: XcmV2TraitsOutcome], { messageId: U8aFixed, outcome: XcmV2TraitsOutcome }>;142 /**143 * Downward message is invalid XCM.144 **/145 InvalidFormat: AugmentedEvent<ApiType, [messageId: U8aFixed], { messageId: U8aFixed }>;146 /**147 * Downward message is overweight and was placed in the overweight queue.148 **/149 OverweightEnqueued: AugmentedEvent<ApiType, [messageId: U8aFixed, overweightIndex: u64, requiredWeight: u64], { messageId: U8aFixed, overweightIndex: u64, requiredWeight: u64 }>;150 /**151 * Downward message from the overweight queue was executed.152 **/153 OverweightServiced: AugmentedEvent<ApiType, [overweightIndex: u64, weightUsed: u64], { overweightIndex: u64, weightUsed: u64 }>;154 /**155 * Downward message is unsupported version of XCM.156 **/157 UnsupportedVersion: AugmentedEvent<ApiType, [messageId: U8aFixed], { messageId: U8aFixed }>;158 /**159 * The weight limit for handling downward messages was reached.160 **/161 WeightExhausted: AugmentedEvent<ApiType, [messageId: U8aFixed, remainingWeight: u64, requiredWeight: u64], { messageId: U8aFixed, remainingWeight: u64, requiredWeight: u64 }>;162 /**163 * Generic event164 **/165 [key: string]: AugmentedEvent<ApiType>;166 };167 ethereum: {168 /**169 * An ethereum transaction was successfully executed. [from, to/contract_address, transaction_hash, exit_reason]170 **/171 Executed: AugmentedEvent<ApiType, [H160, H160, H256, EvmCoreErrorExitReason]>;172 /**173 * Generic event174 **/175 [key: string]: AugmentedEvent<ApiType>;176 };177 evm: {178 /**179 * A deposit has been made at a given address. \[sender, address, value\]180 **/181 BalanceDeposit: AugmentedEvent<ApiType, [AccountId32, H160, U256]>;182 /**183 * A withdrawal has been made from a given address. \[sender, address, value\]184 **/185 BalanceWithdraw: AugmentedEvent<ApiType, [AccountId32, H160, U256]>;186 /**187 * A contract has been created at given \[address\].188 **/189 Created: AugmentedEvent<ApiType, [H160]>;190 /**191 * A \[contract\] was attempted to be created, but the execution failed.192 **/193 CreatedFailed: AugmentedEvent<ApiType, [H160]>;194 /**195 * A \[contract\] has been executed successfully with states applied.196 **/197 Executed: AugmentedEvent<ApiType, [H160]>;198 /**199 * A \[contract\] has been executed with errors. States are reverted with only gas fees applied.200 **/201 ExecutedFailed: AugmentedEvent<ApiType, [H160]>;202 /**203 * Ethereum events from contracts.204 **/205 Log: AugmentedEvent<ApiType, [EthereumLog]>;206 /**207 * Generic event208 **/209 [key: string]: AugmentedEvent<ApiType>;210 };211 parachainSystem: {212 /**213 * Downward messages were processed using the given weight.214 **/215 DownwardMessagesProcessed: AugmentedEvent<ApiType, [weightUsed: u64, dmqHead: H256], { weightUsed: u64, dmqHead: H256 }>;216 /**217 * Some downward messages have been received and will be processed.218 **/219 DownwardMessagesReceived: AugmentedEvent<ApiType, [count: u32], { count: u32 }>;220 /**221 * An upgrade has been authorized.222 **/223 UpgradeAuthorized: AugmentedEvent<ApiType, [codeHash: H256], { codeHash: H256 }>;224 /**225 * The validation function was applied as of the contained relay chain block number.226 **/227 ValidationFunctionApplied: AugmentedEvent<ApiType, [relayChainBlockNum: u32], { relayChainBlockNum: u32 }>;228 /**229 * The relay-chain aborted the upgrade process.230 **/231 ValidationFunctionDiscarded: AugmentedEvent<ApiType, []>;232 /**233 * The validation function has been scheduled to apply.234 **/235 ValidationFunctionStored: AugmentedEvent<ApiType, []>;236 /**237 * Generic event238 **/239 [key: string]: AugmentedEvent<ApiType>;240 };241 polkadotXcm: {242 /**243 * Some assets have been placed in an asset trap.244 * 245 * \[ hash, origin, assets \]246 **/247 AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;248 /**249 * Execution of an XCM message was attempted.250 * 251 * \[ outcome \]252 **/253 Attempted: AugmentedEvent<ApiType, [XcmV2TraitsOutcome]>;254 /**255 * Expected query response has been received but the origin location of the response does256 * not match that expected. The query remains registered for a later, valid, response to257 * be received and acted upon.258 * 259 * \[ origin location, id, expected location \]260 **/261 InvalidResponder: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;262 /**263 * Expected query response has been received but the expected origin location placed in264 * storage by this runtime previously cannot be decoded. The query remains registered.265 * 266 * This is unexpected (since a location placed in storage in a previously executing267 * runtime should be readable prior to query timeout) and dangerous since the possibly268 * valid response will be dropped. Manual governance intervention is probably going to be269 * needed.270 * 271 * \[ origin location, id \]272 **/273 InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;274 /**275 * Query response has been received and query is removed. The registered notification has276 * been dispatched and executed successfully.277 * 278 * \[ id, pallet index, call index \]279 **/280 Notified: AugmentedEvent<ApiType, [u64, u8, u8]>;281 /**282 * Query response has been received and query is removed. The dispatch was unable to be283 * decoded into a `Call`; this might be due to dispatch function having a signature which284 * is not `(origin, QueryId, Response)`.285 * 286 * \[ id, pallet index, call index \]287 **/288 NotifyDecodeFailed: AugmentedEvent<ApiType, [u64, u8, u8]>;289 /**290 * Query response has been received and query is removed. There was a general error with291 * dispatching the notification call.292 * 293 * \[ id, pallet index, call index \]294 **/295 NotifyDispatchError: AugmentedEvent<ApiType, [u64, u8, u8]>;296 /**297 * Query response has been received and query is removed. The registered notification could298 * not be dispatched because the dispatch weight is greater than the maximum weight299 * originally budgeted by this runtime for the query result.300 * 301 * \[ id, pallet index, call index, actual weight, max budgeted weight \]302 **/303 NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, u64, u64]>;304 /**305 * A given location which had a version change subscription was dropped owing to an error306 * migrating the location to our new XCM format.307 * 308 * \[ location, query ID \]309 **/310 NotifyTargetMigrationFail: AugmentedEvent<ApiType, [XcmVersionedMultiLocation, u64]>;311 /**312 * A given location which had a version change subscription was dropped owing to an error313 * sending the notification to it.314 * 315 * \[ location, query ID, error \]316 **/317 NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, XcmV2TraitsError]>;318 /**319 * Query response has been received and is ready for taking with `take_response`. There is320 * no registered notification call.321 * 322 * \[ id, response \]323 **/324 ResponseReady: AugmentedEvent<ApiType, [u64, XcmV2Response]>;325 /**326 * Received query response has been read and removed.327 * 328 * \[ id \]329 **/330 ResponseTaken: AugmentedEvent<ApiType, [u64]>;331 /**332 * A XCM message was sent.333 * 334 * \[ origin, destination, message \]335 **/336 Sent: AugmentedEvent<ApiType, [XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;337 /**338 * The supported version of a location has been changed. This might be through an339 * automatic notification or a manual intervention.340 * 341 * \[ location, XCM version \]342 **/343 SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;344 /**345 * Query response received which does not match a registered query. This may be because a346 * matching query was never registered, it may be because it is a duplicate response, or347 * because the query timed out.348 * 349 * \[ origin location, id \]350 **/351 UnexpectedResponse: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;352 /**353 * An XCM version change notification message has been attempted to be sent.354 * 355 * \[ destination, result \]356 **/357 VersionChangeNotified: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;358 /**359 * Generic event360 **/361 [key: string]: AugmentedEvent<ApiType>;362 };363 promotion: {364 StakingRecalculation: AugmentedEvent<ApiType, [AccountId32, u128, u128]>;365 /**366 * Generic event367 **/368 [key: string]: AugmentedEvent<ApiType>;369 };370 rmrkCore: {371 CollectionCreated: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;372 CollectionDestroyed: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;373 CollectionLocked: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;374 IssuerChanged: AugmentedEvent<ApiType, [oldIssuer: AccountId32, newIssuer: AccountId32, collectionId: u32], { oldIssuer: AccountId32, newIssuer: AccountId32, collectionId: u32 }>;375 NFTAccepted: AugmentedEvent<ApiType, [sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32], { sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32 }>;376 NFTBurned: AugmentedEvent<ApiType, [owner: AccountId32, nftId: u32], { owner: AccountId32, nftId: u32 }>;377 NftMinted: AugmentedEvent<ApiType, [owner: AccountId32, collectionId: u32, nftId: u32], { owner: AccountId32, collectionId: u32, nftId: u32 }>;378 NFTRejected: AugmentedEvent<ApiType, [sender: AccountId32, collectionId: u32, nftId: u32], { sender: AccountId32, collectionId: u32, nftId: u32 }>;379 NFTSent: AugmentedEvent<ApiType, [sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32, approvalRequired: bool], { sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32, approvalRequired: bool }>;380 PrioritySet: AugmentedEvent<ApiType, [collectionId: u32, nftId: u32], { collectionId: u32, nftId: u32 }>;381 PropertySet: AugmentedEvent<ApiType, [collectionId: u32, maybeNftId: Option<u32>, key: Bytes, value: Bytes], { collectionId: u32, maybeNftId: Option<u32>, key: Bytes, value: Bytes }>;382 ResourceAccepted: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;383 ResourceAdded: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;384 ResourceRemoval: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;385 ResourceRemovalAccepted: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;386 /**387 * Generic event388 **/389 [key: string]: AugmentedEvent<ApiType>;390 };391 rmrkEquip: {392 BaseCreated: AugmentedEvent<ApiType, [issuer: AccountId32, baseId: u32], { issuer: AccountId32, baseId: u32 }>;393 EquippablesUpdated: AugmentedEvent<ApiType, [baseId: u32, slotId: u32], { baseId: u32, slotId: u32 }>;394 /**395 * Generic event396 **/397 [key: string]: AugmentedEvent<ApiType>;398 };399 scheduler: {400 /**401 * The call for the provided hash was not found so the task has been aborted.402 **/403 CallLookupFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, error: FrameSupportScheduleLookupError], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, error: FrameSupportScheduleLookupError }>;404 /**405 * Canceled some task.406 **/407 Canceled: AugmentedEvent<ApiType, [when: u32, index: u32], { when: u32, index: u32 }>;408 /**409 * Dispatched some task.410 **/411 Dispatched: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, result: Result<Null, SpRuntimeDispatchError>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, result: Result<Null, SpRuntimeDispatchError> }>;412 /**413 * Scheduled some task.414 **/415 Scheduled: AugmentedEvent<ApiType, [when: u32, index: u32], { when: u32, index: u32 }>;416 /**417 * Generic event418 **/419 [key: string]: AugmentedEvent<ApiType>;420 };421 structure: {422 /**423 * Executed call on behalf of the token.424 **/425 Executed: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;426 /**427 * Generic event428 **/429 [key: string]: AugmentedEvent<ApiType>;430 };431 sudo: {432 /**433 * The \[sudoer\] just switched identity; the old key is supplied if one existed.434 **/435 KeyChanged: AugmentedEvent<ApiType, [oldSudoer: Option<AccountId32>], { oldSudoer: Option<AccountId32> }>;436 /**437 * A sudo just took place. \[result\]438 **/439 Sudid: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;440 /**441 * A sudo just took place. \[result\]442 **/443 SudoAsDone: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;444 /**445 * Generic event446 **/447 [key: string]: AugmentedEvent<ApiType>;448 };449 system: {450 /**451 * `:code` was updated.452 **/453 CodeUpdated: AugmentedEvent<ApiType, []>;454 /**455 * An extrinsic failed.456 **/457 ExtrinsicFailed: AugmentedEvent<ApiType, [dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchError: SpRuntimeDispatchError, dispatchInfo: FrameSupportWeightsDispatchInfo }>;458 /**459 * An extrinsic completed successfully.460 **/461 ExtrinsicSuccess: AugmentedEvent<ApiType, [dispatchInfo: FrameSupportWeightsDispatchInfo], { dispatchInfo: FrameSupportWeightsDispatchInfo }>;462 /**463 * An account was reaped.464 **/465 KilledAccount: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;466 /**467 * A new account was created.468 **/469 NewAccount: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;470 /**471 * On on-chain remark happened.472 **/473 Remarked: AugmentedEvent<ApiType, [sender: AccountId32, hash_: H256], { sender: AccountId32, hash_: H256 }>;474 /**475 * Generic event476 **/477 [key: string]: AugmentedEvent<ApiType>;478 };479 transactionPayment: {480 /**481 * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,482 * has been paid by `who`.483 **/484 TransactionFeePaid: AugmentedEvent<ApiType, [who: AccountId32, actualFee: u128, tip: u128], { who: AccountId32, actualFee: u128, tip: u128 }>;485 /**486 * Generic event487 **/488 [key: string]: AugmentedEvent<ApiType>;489 };490 treasury: {491 /**492 * Some funds have been allocated.493 **/494 Awarded: AugmentedEvent<ApiType, [proposalIndex: u32, award: u128, account: AccountId32], { proposalIndex: u32, award: u128, account: AccountId32 }>;495 /**496 * Some of our funds have been burnt.497 **/498 Burnt: AugmentedEvent<ApiType, [burntFunds: u128], { burntFunds: u128 }>;499 /**500 * Some funds have been deposited.501 **/502 Deposit: AugmentedEvent<ApiType, [value: u128], { value: u128 }>;503 /**504 * New proposal.505 **/506 Proposed: AugmentedEvent<ApiType, [proposalIndex: u32], { proposalIndex: u32 }>;507 /**508 * A proposal was rejected; funds were slashed.509 **/510 Rejected: AugmentedEvent<ApiType, [proposalIndex: u32, slashed: u128], { proposalIndex: u32, slashed: u128 }>;511 /**512 * Spending has finished; this is the amount that rolls over until next spend.513 **/514 Rollover: AugmentedEvent<ApiType, [rolloverBalance: u128], { rolloverBalance: u128 }>;515 /**516 * A new spend proposal has been approved.517 **/518 SpendApproved: AugmentedEvent<ApiType, [proposalIndex: u32, amount: u128, beneficiary: AccountId32], { proposalIndex: u32, amount: u128, beneficiary: AccountId32 }>;519 /**520 * We have ended a spend period and will now allocate funds.521 **/522 Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;523 /**524 * Generic event525 **/526 [key: string]: AugmentedEvent<ApiType>;527 };528 unique: {529 /**530 * Address was added to the allow list531 * 532 * # Arguments533 * * collection_id: ID of the affected collection.534 * * user: Address of the added account.535 **/536 AllowListAddressAdded: AugmentedEvent<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;537 /**538 * Address was removed from the allow list539 * 540 * # Arguments541 * * collection_id: ID of the affected collection.542 * * user: Address of the removed account.543 **/544 AllowListAddressRemoved: AugmentedEvent<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;545 /**546 * Collection admin was added547 * 548 * # Arguments549 * * collection_id: ID of the affected collection.550 * * admin: Admin address.551 **/552 CollectionAdminAdded: AugmentedEvent<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;553 /**554 * Collection admin was removed555 * 556 * # Arguments557 * * collection_id: ID of the affected collection.558 * * admin: Removed admin address.559 **/560 CollectionAdminRemoved: AugmentedEvent<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;561 /**562 * Collection limits were set563 * 564 * # Arguments565 * * collection_id: ID of the affected collection.566 **/567 CollectionLimitSet: AugmentedEvent<ApiType, [u32]>;568 /**569 * Collection owned was changed570 * 571 * # Arguments572 * * collection_id: ID of the affected collection.573 * * owner: New owner address.574 **/575 CollectionOwnedChanged: AugmentedEvent<ApiType, [u32, AccountId32]>;576 /**577 * Collection permissions were set578 * 579 * # Arguments580 * * collection_id: ID of the affected collection.581 **/582 CollectionPermissionSet: AugmentedEvent<ApiType, [u32]>;583 /**584 * Collection sponsor was removed585 * 586 * # Arguments587 * * collection_id: ID of the affected collection.588 **/589 CollectionSponsorRemoved: AugmentedEvent<ApiType, [u32]>;590 /**591 * Collection sponsor was set592 * 593 * # Arguments594 * * collection_id: ID of the affected collection.595 * * owner: New sponsor address.596 **/597 CollectionSponsorSet: AugmentedEvent<ApiType, [u32, AccountId32]>;598 /**599 * New sponsor was confirm600 * 601 * # Arguments602 * * collection_id: ID of the affected collection.603 * * sponsor: New sponsor address.604 **/605 SponsorshipConfirmed: AugmentedEvent<ApiType, [u32, AccountId32]>;606 /**607 * Generic event608 **/609 [key: string]: AugmentedEvent<ApiType>;610 };611 vesting: {612 /**613 * Claimed vesting.614 **/615 Claimed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;616 /**617 * Added new vesting schedule.618 **/619 VestingScheduleAdded: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, vestingSchedule: OrmlVestingVestingSchedule], { from: AccountId32, to: AccountId32, vestingSchedule: OrmlVestingVestingSchedule }>;620 /**621 * Updated vesting schedules.622 **/623 VestingSchedulesUpdated: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;624 /**625 * Generic event626 **/627 [key: string]: AugmentedEvent<ApiType>;628 };629 xcmpQueue: {630 /**631 * Bad XCM format used.632 **/633 BadFormat: AugmentedEvent<ApiType, [messageHash: Option<H256>], { messageHash: Option<H256> }>;634 /**635 * Bad XCM version used.636 **/637 BadVersion: AugmentedEvent<ApiType, [messageHash: Option<H256>], { messageHash: Option<H256> }>;638 /**639 * Some XCM failed.640 **/641 Fail: AugmentedEvent<ApiType, [messageHash: Option<H256>, error: XcmV2TraitsError, weight: u64], { messageHash: Option<H256>, error: XcmV2TraitsError, weight: u64 }>;642 /**643 * An XCM exceeded the individual message weight budget.644 **/645 OverweightEnqueued: AugmentedEvent<ApiType, [sender: u32, sentAt: u32, index: u64, required: u64], { sender: u32, sentAt: u32, index: u64, required: u64 }>;646 /**647 * An XCM from the overweight queue was executed with the given actual weight used.648 **/649 OverweightServiced: AugmentedEvent<ApiType, [index: u64, used: u64], { index: u64, used: u64 }>;650 /**651 * Some XCM was executed ok.652 **/653 Success: AugmentedEvent<ApiType, [messageHash: Option<H256>, weight: u64], { messageHash: Option<H256>, weight: u64 }>;654 /**655 * An upward message was sent to the relay chain.656 **/657 UpwardMessageSent: AugmentedEvent<ApiType, [messageHash: Option<H256>], { messageHash: Option<H256> }>;658 /**659 * An HRMP message was sent to a sibling parachain.660 **/661 XcmpMessageSent: AugmentedEvent<ApiType, [messageHash: Option<H256>], { messageHash: Option<H256> }>;662 /**663 * Generic event664 **/665 [key: string]: AugmentedEvent<ApiType>;666 };667 } // AugmentedEvents668} // declare moduletests/src/interfaces/augment-api-query.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-query.ts
+++ b/tests/src/interfaces/augment-api-query.ts
@@ -513,6 +513,11 @@
promotion: {
admin: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
+ * Stores the address of the staker for which the last revenue recalculation was performed.
+ * If `None`, then recalculation has not yet been performed or calculations have been completed for all stakers.
+ **/
+ lastCalcucaltedStaker: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
+ /**
* Next target block when interest is recalculated
**/
nextInterestBlock: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
@@ -523,7 +528,7 @@
/**
* Amount of tokens staked by account in the blocknumber.
**/
- staked: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<u128>, [AccountId32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32]>;
+ staked: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<ITuple<[u128, u32]>>, [AccountId32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32]>;
/**
* A block when app-promotion has started .I think this is redundant, because we only need `NextInterestBlock`.
**/
tests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -363,14 +363,15 @@
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
promotion: {
+ payoutStakers: AugmentedSubmittable<(stakersNumber: Option<u8> | null | Uint8Array | u8 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u8>]>;
setAdminAddress: AugmentedSubmittable<(admin: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr]>;
sponsorCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
sponsorConract: AugmentedSubmittable<(contractId: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;
stake: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
startAppPromotion: AugmentedSubmittable<(promotionStartRelayBlock: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
stopAppPromotion: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
- stopSponsorignCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
- stopSponsorignContract: AugmentedSubmittable<(contractId: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;
+ stopSponsoringCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
+ stopSponsoringContract: AugmentedSubmittable<(contractId: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;
unstake: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
/**
* Generic tx
tests/src/interfaces/default/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/default/types.ts
+++ b/tests/src/interfaces/default/types.ts
@@ -829,19 +829,23 @@
readonly asSponsorCollection: {
readonly collectionId: u32;
} & Struct;
- readonly isStopSponsorignCollection: boolean;
- readonly asStopSponsorignCollection: {
+ readonly isStopSponsoringCollection: boolean;
+ readonly asStopSponsoringCollection: {
readonly collectionId: u32;
} & Struct;
readonly isSponsorConract: boolean;
readonly asSponsorConract: {
readonly contractId: H160;
} & Struct;
- readonly isStopSponsorignContract: boolean;
- readonly asStopSponsorignContract: {
+ readonly isStopSponsoringContract: boolean;
+ readonly asStopSponsoringContract: {
readonly contractId: H160;
} & Struct;
- readonly type: 'SetAdminAddress' | 'StartAppPromotion' | 'StopAppPromotion' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsorignCollection' | 'SponsorConract' | 'StopSponsorignContract';
+ readonly isPayoutStakers: boolean;
+ readonly asPayoutStakers: {
+ readonly stakersNumber: Option<u8>;
+ } & Struct;
+ readonly type: 'SetAdminAddress' | 'StartAppPromotion' | 'StopAppPromotion' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsoringCollection' | 'SponsorConract' | 'StopSponsoringContract' | 'PayoutStakers';
}
/** @name PalletAppPromotionError */
@@ -856,7 +860,7 @@
/** @name PalletAppPromotionEvent */
export interface PalletAppPromotionEvent extends Enum {
readonly isStakingRecalculation: boolean;
- readonly asStakingRecalculation: ITuple<[u128, u128]>;
+ readonly asStakingRecalculation: ITuple<[AccountId32, u128, u128]>;
readonly type: 'StakingRecalculation';
}
tests/src/interfaces/lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -1061,7 +1061,7 @@
**/
PalletAppPromotionEvent: {
_enum: {
- StakingRecalculation: '(u128,u128)'
+ StakingRecalculation: '(AccountId32,u128,u128)'
}
},
/**
@@ -2473,19 +2473,22 @@
sponsor_collection: {
collectionId: 'u32',
},
- stop_sponsorign_collection: {
+ stop_sponsoring_collection: {
collectionId: 'u32',
},
sponsor_conract: {
contractId: 'H160',
},
- stop_sponsorign_contract: {
- contractId: 'H160'
+ stop_sponsoring_contract: {
+ contractId: 'H160',
+ },
+ payout_stakers: {
+ stakersNumber: 'Option<u8>'
}
}
},
/**
- * Lookup305: pallet_evm::pallet::Call<T>
+ * Lookup306: pallet_evm::pallet::Call<T>
**/
PalletEvmCall: {
_enum: {
@@ -2528,7 +2531,7 @@
}
},
/**
- * Lookup309: pallet_ethereum::pallet::Call<T>
+ * Lookup310: pallet_ethereum::pallet::Call<T>
**/
PalletEthereumCall: {
_enum: {
@@ -2538,7 +2541,7 @@
}
},
/**
- * Lookup310: ethereum::transaction::TransactionV2
+ * Lookup311: ethereum::transaction::TransactionV2
**/
EthereumTransactionTransactionV2: {
_enum: {
@@ -2548,7 +2551,7 @@
}
},
/**
- * Lookup311: ethereum::transaction::LegacyTransaction
+ * Lookup312: ethereum::transaction::LegacyTransaction
**/
EthereumTransactionLegacyTransaction: {
nonce: 'U256',
@@ -2560,7 +2563,7 @@
signature: 'EthereumTransactionTransactionSignature'
},
/**
- * Lookup312: ethereum::transaction::TransactionAction
+ * Lookup313: ethereum::transaction::TransactionAction
**/
EthereumTransactionTransactionAction: {
_enum: {
@@ -2569,7 +2572,7 @@
}
},
/**
- * Lookup313: ethereum::transaction::TransactionSignature
+ * Lookup314: ethereum::transaction::TransactionSignature
**/
EthereumTransactionTransactionSignature: {
v: 'u64',
@@ -2577,7 +2580,7 @@
s: 'H256'
},
/**
- * Lookup315: ethereum::transaction::EIP2930Transaction
+ * Lookup316: ethereum::transaction::EIP2930Transaction
**/
EthereumTransactionEip2930Transaction: {
chainId: 'u64',
@@ -2593,14 +2596,14 @@
s: 'H256'
},
/**
- * Lookup317: ethereum::transaction::AccessListItem
+ * Lookup318: ethereum::transaction::AccessListItem
**/
EthereumTransactionAccessListItem: {
address: 'H160',
storageKeys: 'Vec<H256>'
},
/**
- * Lookup318: ethereum::transaction::EIP1559Transaction
+ * Lookup319: ethereum::transaction::EIP1559Transaction
**/
EthereumTransactionEip1559Transaction: {
chainId: 'u64',
@@ -2617,7 +2620,7 @@
s: 'H256'
},
/**
- * Lookup319: pallet_evm_migration::pallet::Call<T>
+ * Lookup320: pallet_evm_migration::pallet::Call<T>
**/
PalletEvmMigrationCall: {
_enum: {
@@ -2635,19 +2638,19 @@
}
},
/**
- * Lookup322: pallet_sudo::pallet::Error<T>
+ * Lookup323: pallet_sudo::pallet::Error<T>
**/
PalletSudoError: {
_enum: ['RequireSudo']
},
/**
- * Lookup324: orml_vesting::module::Error<T>
+ * Lookup325: orml_vesting::module::Error<T>
**/
OrmlVestingModuleError: {
_enum: ['ZeroVestingPeriod', 'ZeroVestingPeriodCount', 'InsufficientBalanceToLock', 'TooManyVestingSchedules', 'AmountLow', 'MaxVestingSchedulesExceeded']
},
/**
- * Lookup326: cumulus_pallet_xcmp_queue::InboundChannelDetails
+ * Lookup327: cumulus_pallet_xcmp_queue::InboundChannelDetails
**/
CumulusPalletXcmpQueueInboundChannelDetails: {
sender: 'u32',
@@ -2655,19 +2658,19 @@
messageMetadata: 'Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>'
},
/**
- * Lookup327: cumulus_pallet_xcmp_queue::InboundState
+ * Lookup328: cumulus_pallet_xcmp_queue::InboundState
**/
CumulusPalletXcmpQueueInboundState: {
_enum: ['Ok', 'Suspended']
},
/**
- * Lookup330: polkadot_parachain::primitives::XcmpMessageFormat
+ * Lookup331: polkadot_parachain::primitives::XcmpMessageFormat
**/
PolkadotParachainPrimitivesXcmpMessageFormat: {
_enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals']
},
/**
- * Lookup333: cumulus_pallet_xcmp_queue::OutboundChannelDetails
+ * Lookup334: cumulus_pallet_xcmp_queue::OutboundChannelDetails
**/
CumulusPalletXcmpQueueOutboundChannelDetails: {
recipient: 'u32',
@@ -2677,13 +2680,13 @@
lastIndex: 'u16'
},
/**
- * Lookup334: cumulus_pallet_xcmp_queue::OutboundState
+ * Lookup335: cumulus_pallet_xcmp_queue::OutboundState
**/
CumulusPalletXcmpQueueOutboundState: {
_enum: ['Ok', 'Suspended']
},
/**
- * Lookup336: cumulus_pallet_xcmp_queue::QueueConfigData
+ * Lookup337: cumulus_pallet_xcmp_queue::QueueConfigData
**/
CumulusPalletXcmpQueueQueueConfigData: {
suspendThreshold: 'u32',
@@ -2694,29 +2697,29 @@
xcmpMaxIndividualWeight: 'u64'
},
/**
- * Lookup338: cumulus_pallet_xcmp_queue::pallet::Error<T>
+ * Lookup339: cumulus_pallet_xcmp_queue::pallet::Error<T>
**/
CumulusPalletXcmpQueueError: {
_enum: ['FailedToSend', 'BadXcmOrigin', 'BadXcm', 'BadOverweightIndex', 'WeightOverLimit']
},
/**
- * Lookup339: pallet_xcm::pallet::Error<T>
+ * Lookup340: pallet_xcm::pallet::Error<T>
**/
PalletXcmError: {
_enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed']
},
/**
- * Lookup340: cumulus_pallet_xcm::pallet::Error<T>
+ * Lookup341: cumulus_pallet_xcm::pallet::Error<T>
**/
CumulusPalletXcmError: 'Null',
/**
- * Lookup341: cumulus_pallet_dmp_queue::ConfigData
+ * Lookup342: cumulus_pallet_dmp_queue::ConfigData
**/
CumulusPalletDmpQueueConfigData: {
maxIndividual: 'u64'
},
/**
- * Lookup342: cumulus_pallet_dmp_queue::PageIndexData
+ * Lookup343: cumulus_pallet_dmp_queue::PageIndexData
**/
CumulusPalletDmpQueuePageIndexData: {
beginUsed: 'u32',
@@ -2724,19 +2727,19 @@
overweightCount: 'u64'
},
/**
- * Lookup345: cumulus_pallet_dmp_queue::pallet::Error<T>
+ * Lookup346: cumulus_pallet_dmp_queue::pallet::Error<T>
**/
CumulusPalletDmpQueueError: {
_enum: ['Unknown', 'OverLimit']
},
/**
- * Lookup349: pallet_unique::Error<T>
+ * Lookup350: pallet_unique::Error<T>
**/
PalletUniqueError: {
_enum: ['CollectionDecimalPointLimitExceeded', 'ConfirmUnsetSponsorFail', 'EmptyArgument', 'RepartitionCalledOnNonRefungibleCollection']
},
/**
- * Lookup352: pallet_unique_scheduler::ScheduledV3<frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>, BlockNumber, opal_runtime::OriginCaller, sp_core::crypto::AccountId32>
+ * Lookup353: pallet_unique_scheduler::ScheduledV3<frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>, BlockNumber, opal_runtime::OriginCaller, sp_core::crypto::AccountId32>
**/
PalletUniqueSchedulerScheduledV3: {
maybeId: 'Option<[u8;16]>',
@@ -2746,7 +2749,7 @@
origin: 'OpalRuntimeOriginCaller'
},
/**
- * Lookup353: opal_runtime::OriginCaller
+ * Lookup354: opal_runtime::OriginCaller
**/
OpalRuntimeOriginCaller: {
_enum: {
@@ -2855,7 +2858,7 @@
}
},
/**
- * Lookup354: frame_support::dispatch::RawOrigin<sp_core::crypto::AccountId32>
+ * Lookup355: frame_support::dispatch::RawOrigin<sp_core::crypto::AccountId32>
**/
FrameSupportDispatchRawOrigin: {
_enum: {
@@ -2865,7 +2868,7 @@
}
},
/**
- * Lookup355: pallet_xcm::pallet::Origin
+ * Lookup356: pallet_xcm::pallet::Origin
**/
PalletXcmOrigin: {
_enum: {
@@ -2874,7 +2877,7 @@
}
},
/**
- * Lookup356: cumulus_pallet_xcm::pallet::Origin
+ * Lookup357: cumulus_pallet_xcm::pallet::Origin
**/
CumulusPalletXcmOrigin: {
_enum: {
@@ -2883,7 +2886,7 @@
}
},
/**
- * Lookup357: pallet_ethereum::RawOrigin
+ * Lookup358: pallet_ethereum::RawOrigin
**/
PalletEthereumRawOrigin: {
_enum: {
@@ -2891,17 +2894,17 @@
}
},
/**
- * Lookup358: sp_core::Void
+ * Lookup359: sp_core::Void
**/
SpCoreVoid: 'Null',
/**
- * Lookup359: pallet_unique_scheduler::pallet::Error<T>
+ * Lookup360: pallet_unique_scheduler::pallet::Error<T>
**/
PalletUniqueSchedulerError: {
_enum: ['FailedToSchedule', 'NotFound', 'TargetBlockNumberInPast', 'RescheduleNoChange']
},
/**
- * Lookup360: up_data_structs::Collection<sp_core::crypto::AccountId32>
+ * Lookup361: up_data_structs::Collection<sp_core::crypto::AccountId32>
**/
UpDataStructsCollection: {
owner: 'AccountId32',
@@ -2915,7 +2918,7 @@
externalCollection: 'bool'
},
/**
- * Lookup361: up_data_structs::SponsorshipState<sp_core::crypto::AccountId32>
+ * Lookup362: up_data_structs::SponsorshipState<sp_core::crypto::AccountId32>
**/
UpDataStructsSponsorshipStateAccountId32: {
_enum: {
@@ -2925,7 +2928,7 @@
}
},
/**
- * Lookup362: up_data_structs::Properties
+ * Lookup363: up_data_structs::Properties
**/
UpDataStructsProperties: {
map: 'UpDataStructsPropertiesMapBoundedVec',
@@ -2933,15 +2936,15 @@
spaceLimit: 'u32'
},
/**
- * Lookup363: up_data_structs::PropertiesMap<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup364: up_data_structs::PropertiesMap<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
UpDataStructsPropertiesMapBoundedVec: 'BTreeMap<Bytes, Bytes>',
/**
- * Lookup368: up_data_structs::PropertiesMap<up_data_structs::PropertyPermission>
+ * Lookup369: up_data_structs::PropertiesMap<up_data_structs::PropertyPermission>
**/
UpDataStructsPropertiesMapPropertyPermission: 'BTreeMap<Bytes, UpDataStructsPropertyPermission>',
/**
- * Lookup375: up_data_structs::CollectionStats
+ * Lookup376: up_data_structs::CollectionStats
**/
UpDataStructsCollectionStats: {
created: 'u32',
@@ -2949,18 +2952,18 @@
alive: 'u32'
},
/**
- * Lookup376: up_data_structs::TokenChild
+ * Lookup377: up_data_structs::TokenChild
**/
UpDataStructsTokenChild: {
token: 'u32',
collection: 'u32'
},
/**
- * Lookup377: PhantomType::up_data_structs<T>
+ * Lookup378: PhantomType::up_data_structs<T>
**/
PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,RmrkTraitsCollectionCollectionInfo,RmrkTraitsNftNftInfo,RmrkTraitsResourceResourceInfo,RmrkTraitsPropertyPropertyInfo,RmrkTraitsBaseBaseInfo,RmrkTraitsPartPartType,RmrkTraitsTheme,RmrkTraitsNftNftChild);0]',
/**
- * Lookup379: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup380: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsTokenData: {
properties: 'Vec<UpDataStructsProperty>',
@@ -2968,7 +2971,7 @@
pieces: 'u128'
},
/**
- * Lookup381: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>
+ * Lookup382: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>
**/
UpDataStructsRpcCollection: {
owner: 'AccountId32',
@@ -2984,7 +2987,7 @@
readOnly: 'bool'
},
/**
- * 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>
+ * 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>
**/
RmrkTraitsCollectionCollectionInfo: {
issuer: 'AccountId32',
@@ -2994,7 +2997,7 @@
nftsCount: 'u32'
},
/**
- * Lookup383: rmrk_traits::nft::NftInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup384: rmrk_traits::nft::NftInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsNftNftInfo: {
owner: 'RmrkTraitsNftAccountIdOrCollectionNftTuple',
@@ -3004,14 +3007,14 @@
pending: 'bool'
},
/**
- * Lookup385: rmrk_traits::nft::RoyaltyInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill>
+ * Lookup386: rmrk_traits::nft::RoyaltyInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill>
**/
RmrkTraitsNftRoyaltyInfo: {
recipient: 'AccountId32',
amount: 'Permill'
},
/**
- * Lookup386: rmrk_traits::resource::ResourceInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup387: rmrk_traits::resource::ResourceInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceResourceInfo: {
id: 'u32',
@@ -3020,14 +3023,14 @@
pendingRemoval: 'bool'
},
/**
- * Lookup387: rmrk_traits::property::PropertyInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup388: rmrk_traits::property::PropertyInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPropertyPropertyInfo: {
key: 'Bytes',
value: 'Bytes'
},
/**
- * Lookup388: rmrk_traits::base::BaseInfo<sp_core::crypto::AccountId32, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup389: rmrk_traits::base::BaseInfo<sp_core::crypto::AccountId32, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsBaseBaseInfo: {
issuer: 'AccountId32',
@@ -3035,86 +3038,86 @@
symbol: 'Bytes'
},
/**
- * Lookup389: rmrk_traits::nft::NftChild
+ * Lookup390: rmrk_traits::nft::NftChild
**/
RmrkTraitsNftNftChild: {
collectionId: 'u32',
nftId: 'u32'
},
/**
- * Lookup391: pallet_common::pallet::Error<T>
+ * Lookup392: pallet_common::pallet::Error<T>
**/
PalletCommonError: {
_enum: ['CollectionNotFound', 'MustBeTokenOwner', 'NoPermission', 'CantDestroyNotEmptyCollection', 'PublicMintingNotAllowed', 'AddressNotInAllowlist', 'CollectionNameLimitExceeded', 'CollectionDescriptionLimitExceeded', 'CollectionTokenPrefixLimitExceeded', 'TotalCollectionsLimitExceeded', 'CollectionAdminCountExceeded', 'CollectionLimitBoundsExceeded', 'OwnerPermissionsCantBeReverted', 'TransferNotAllowed', 'AccountTokenLimitExceeded', 'CollectionTokenLimitExceeded', 'MetadataFlagFrozen', 'TokenNotFound', 'TokenValueTooLow', 'ApprovedValueTooLow', 'CantApproveMoreThanOwned', 'AddressIsZero', 'UnsupportedOperation', 'NotSufficientFounds', 'UserIsNotAllowedToNest', 'SourceCollectionIsNotAllowedToNest', 'CollectionFieldSizeExceeded', 'NoSpaceForProperty', 'PropertyLimitReached', 'PropertyKeyIsTooLong', 'InvalidCharacterInPropertyKey', 'EmptyPropertyKey', 'CollectionIsExternal', 'CollectionIsInternal']
},
/**
- * Lookup393: pallet_fungible::pallet::Error<T>
+ * Lookup394: pallet_fungible::pallet::Error<T>
**/
PalletFungibleError: {
_enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
},
/**
- * Lookup394: pallet_refungible::ItemData
+ * Lookup395: pallet_refungible::ItemData
**/
PalletRefungibleItemData: {
constData: 'Bytes'
},
/**
- * Lookup399: pallet_refungible::pallet::Error<T>
+ * Lookup400: pallet_refungible::pallet::Error<T>
**/
PalletRefungibleError: {
_enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RepartitionWhileNotOwningAllPieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
},
/**
- * Lookup400: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup401: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
PalletNonfungibleItemData: {
owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
},
/**
- * Lookup402: up_data_structs::PropertyScope
+ * Lookup403: up_data_structs::PropertyScope
**/
UpDataStructsPropertyScope: {
_enum: ['None', 'Rmrk', 'Eth']
},
/**
- * Lookup404: pallet_nonfungible::pallet::Error<T>
+ * Lookup405: pallet_nonfungible::pallet::Error<T>
**/
PalletNonfungibleError: {
_enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount', 'CantBurnNftWithChildren']
},
/**
- * Lookup405: pallet_structure::pallet::Error<T>
+ * Lookup406: pallet_structure::pallet::Error<T>
**/
PalletStructureError: {
_enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound']
},
/**
- * Lookup406: pallet_rmrk_core::pallet::Error<T>
+ * Lookup407: pallet_rmrk_core::pallet::Error<T>
**/
PalletRmrkCoreError: {
_enum: ['CorruptedCollectionType', 'RmrkPropertyKeyIsTooLong', 'RmrkPropertyValueIsTooLong', 'RmrkPropertyIsNotFound', 'UnableToDecodeRmrkData', 'CollectionNotEmpty', 'NoAvailableCollectionId', 'NoAvailableNftId', 'CollectionUnknown', 'NoPermission', 'NonTransferable', 'CollectionFullOrLocked', 'ResourceDoesntExist', 'CannotSendToDescendentOrSelf', 'CannotAcceptNonOwnedNft', 'CannotRejectNonOwnedNft', 'CannotRejectNonPendingNft', 'ResourceNotPending', 'NoAvailableResourceId']
},
/**
- * Lookup408: pallet_rmrk_equip::pallet::Error<T>
+ * Lookup409: pallet_rmrk_equip::pallet::Error<T>
**/
PalletRmrkEquipError: {
_enum: ['PermissionError', 'NoAvailableBaseId', 'NoAvailablePartId', 'BaseDoesntExist', 'NeedsDefaultThemeFirst', 'PartDoesntExist', 'NoEquippableOnFixedPart']
},
/**
- * Lookup410: pallet_app_promotion::pallet::Error<T>
+ * Lookup412: pallet_app_promotion::pallet::Error<T>
**/
PalletAppPromotionError: {
_enum: ['AdminNotSet', 'NoPermission', 'NotSufficientFounds', 'InvalidArgument']
},
/**
- * Lookup413: pallet_evm::pallet::Error<T>
+ * Lookup415: pallet_evm::pallet::Error<T>
**/
PalletEvmError: {
_enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce']
},
/**
- * Lookup416: fp_rpc::TransactionStatus
+ * Lookup418: fp_rpc::TransactionStatus
**/
FpRpcTransactionStatus: {
transactionHash: 'H256',
@@ -3126,11 +3129,11 @@
logsBloom: 'EthbloomBloom'
},
/**
- * Lookup418: ethbloom::Bloom
+ * Lookup420: ethbloom::Bloom
**/
EthbloomBloom: '[u8;256]',
/**
- * Lookup420: ethereum::receipt::ReceiptV3
+ * Lookup422: ethereum::receipt::ReceiptV3
**/
EthereumReceiptReceiptV3: {
_enum: {
@@ -3140,7 +3143,7 @@
}
},
/**
- * Lookup421: ethereum::receipt::EIP658ReceiptData
+ * Lookup423: ethereum::receipt::EIP658ReceiptData
**/
EthereumReceiptEip658ReceiptData: {
statusCode: 'u8',
@@ -3149,7 +3152,7 @@
logs: 'Vec<EthereumLog>'
},
/**
- * Lookup422: ethereum::block::Block<ethereum::transaction::TransactionV2>
+ * Lookup424: ethereum::block::Block<ethereum::transaction::TransactionV2>
**/
EthereumBlock: {
header: 'EthereumHeader',
@@ -3157,7 +3160,7 @@
ommers: 'Vec<EthereumHeader>'
},
/**
- * Lookup423: ethereum::header::Header
+ * Lookup425: ethereum::header::Header
**/
EthereumHeader: {
parentHash: 'H256',
@@ -3177,23 +3180,23 @@
nonce: 'EthereumTypesHashH64'
},
/**
- * Lookup424: ethereum_types::hash::H64
+ * Lookup426: ethereum_types::hash::H64
**/
EthereumTypesHashH64: '[u8;8]',
/**
- * Lookup429: pallet_ethereum::pallet::Error<T>
+ * Lookup431: pallet_ethereum::pallet::Error<T>
**/
PalletEthereumError: {
_enum: ['InvalidSignature', 'PreLogExists']
},
/**
- * Lookup430: pallet_evm_coder_substrate::pallet::Error<T>
+ * Lookup432: pallet_evm_coder_substrate::pallet::Error<T>
**/
PalletEvmCoderSubstrateError: {
_enum: ['OutOfGas', 'OutOfFund']
},
/**
- * Lookup431: up_data_structs::SponsorshipState<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup433: up_data_structs::SponsorshipState<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsSponsorshipStateBasicCrossAccountIdRepr: {
_enum: {
@@ -3203,25 +3206,25 @@
}
},
/**
- * Lookup432: pallet_evm_contract_helpers::SponsoringModeT
+ * Lookup434: pallet_evm_contract_helpers::SponsoringModeT
**/
PalletEvmContractHelpersSponsoringModeT: {
_enum: ['Disabled', 'Allowlisted', 'Generous']
},
/**
- * Lookup434: pallet_evm_contract_helpers::pallet::Error<T>
+ * Lookup436: pallet_evm_contract_helpers::pallet::Error<T>
**/
PalletEvmContractHelpersError: {
_enum: ['NoPermission', 'NoPendingSponsor']
},
/**
- * Lookup435: pallet_evm_migration::pallet::Error<T>
+ * Lookup437: pallet_evm_migration::pallet::Error<T>
**/
PalletEvmMigrationError: {
_enum: ['AccountNotEmpty', 'AccountIsNotMigrating']
},
/**
- * Lookup437: sp_runtime::MultiSignature
+ * Lookup439: sp_runtime::MultiSignature
**/
SpRuntimeMultiSignature: {
_enum: {
@@ -3231,43 +3234,43 @@
}
},
/**
- * Lookup438: sp_core::ed25519::Signature
+ * Lookup440: sp_core::ed25519::Signature
**/
SpCoreEd25519Signature: '[u8;64]',
/**
- * Lookup440: sp_core::sr25519::Signature
+ * Lookup442: sp_core::sr25519::Signature
**/
SpCoreSr25519Signature: '[u8;64]',
/**
- * Lookup441: sp_core::ecdsa::Signature
+ * Lookup443: sp_core::ecdsa::Signature
**/
SpCoreEcdsaSignature: '[u8;65]',
/**
- * Lookup444: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
+ * Lookup446: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
**/
FrameSystemExtensionsCheckSpecVersion: 'Null',
/**
- * Lookup445: frame_system::extensions::check_genesis::CheckGenesis<T>
+ * Lookup447: frame_system::extensions::check_genesis::CheckGenesis<T>
**/
FrameSystemExtensionsCheckGenesis: 'Null',
/**
- * Lookup448: frame_system::extensions::check_nonce::CheckNonce<T>
+ * Lookup450: frame_system::extensions::check_nonce::CheckNonce<T>
**/
FrameSystemExtensionsCheckNonce: 'Compact<u32>',
/**
- * Lookup449: frame_system::extensions::check_weight::CheckWeight<T>
+ * Lookup451: frame_system::extensions::check_weight::CheckWeight<T>
**/
FrameSystemExtensionsCheckWeight: 'Null',
/**
- * Lookup450: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
+ * Lookup452: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
**/
PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
/**
- * Lookup451: opal_runtime::Runtime
+ * Lookup453: opal_runtime::Runtime
**/
OpalRuntimeRuntime: 'Null',
/**
- * Lookup452: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
+ * Lookup454: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
**/
PalletEthereumFakeTransactionFinalizer: 'Null'
};
tests/src/interfaces/types-lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/types-lookup.ts
+++ b/tests/src/interfaces/types-lookup.ts
@@ -1201,7 +1201,7 @@
/** @name PalletAppPromotionEvent (103) */
interface PalletAppPromotionEvent extends Enum {
readonly isStakingRecalculation: boolean;
- readonly asStakingRecalculation: ITuple<[u128, u128]>;
+ readonly asStakingRecalculation: ITuple<[AccountId32, u128, u128]>;
readonly type: 'StakingRecalculation';
}
@@ -2682,22 +2682,26 @@
readonly asSponsorCollection: {
readonly collectionId: u32;
} & Struct;
- readonly isStopSponsorignCollection: boolean;
- readonly asStopSponsorignCollection: {
+ readonly isStopSponsoringCollection: boolean;
+ readonly asStopSponsoringCollection: {
readonly collectionId: u32;
} & Struct;
readonly isSponsorConract: boolean;
readonly asSponsorConract: {
readonly contractId: H160;
} & Struct;
- readonly isStopSponsorignContract: boolean;
- readonly asStopSponsorignContract: {
+ readonly isStopSponsoringContract: boolean;
+ readonly asStopSponsoringContract: {
readonly contractId: H160;
} & Struct;
- readonly type: 'SetAdminAddress' | 'StartAppPromotion' | 'StopAppPromotion' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsorignCollection' | 'SponsorConract' | 'StopSponsorignContract';
+ readonly isPayoutStakers: boolean;
+ readonly asPayoutStakers: {
+ readonly stakersNumber: Option<u8>;
+ } & Struct;
+ readonly type: 'SetAdminAddress' | 'StartAppPromotion' | 'StopAppPromotion' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsoringCollection' | 'SponsorConract' | 'StopSponsoringContract' | 'PayoutStakers';
}
- /** @name PalletEvmCall (305) */
+ /** @name PalletEvmCall (306) */
interface PalletEvmCall extends Enum {
readonly isWithdraw: boolean;
readonly asWithdraw: {
@@ -2742,7 +2746,7 @@
readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';
}
- /** @name PalletEthereumCall (309) */
+ /** @name PalletEthereumCall (310) */
interface PalletEthereumCall extends Enum {
readonly isTransact: boolean;
readonly asTransact: {
@@ -2751,7 +2755,7 @@
readonly type: 'Transact';
}
- /** @name EthereumTransactionTransactionV2 (310) */
+ /** @name EthereumTransactionTransactionV2 (311) */
interface EthereumTransactionTransactionV2 extends Enum {
readonly isLegacy: boolean;
readonly asLegacy: EthereumTransactionLegacyTransaction;
@@ -2762,7 +2766,7 @@
readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
}
- /** @name EthereumTransactionLegacyTransaction (311) */
+ /** @name EthereumTransactionLegacyTransaction (312) */
interface EthereumTransactionLegacyTransaction extends Struct {
readonly nonce: U256;
readonly gasPrice: U256;
@@ -2773,7 +2777,7 @@
readonly signature: EthereumTransactionTransactionSignature;
}
- /** @name EthereumTransactionTransactionAction (312) */
+ /** @name EthereumTransactionTransactionAction (313) */
interface EthereumTransactionTransactionAction extends Enum {
readonly isCall: boolean;
readonly asCall: H160;
@@ -2781,14 +2785,14 @@
readonly type: 'Call' | 'Create';
}
- /** @name EthereumTransactionTransactionSignature (313) */
+ /** @name EthereumTransactionTransactionSignature (314) */
interface EthereumTransactionTransactionSignature extends Struct {
readonly v: u64;
readonly r: H256;
readonly s: H256;
}
- /** @name EthereumTransactionEip2930Transaction (315) */
+ /** @name EthereumTransactionEip2930Transaction (316) */
interface EthereumTransactionEip2930Transaction extends Struct {
readonly chainId: u64;
readonly nonce: U256;
@@ -2803,13 +2807,13 @@
readonly s: H256;
}
- /** @name EthereumTransactionAccessListItem (317) */
+ /** @name EthereumTransactionAccessListItem (318) */
interface EthereumTransactionAccessListItem extends Struct {
readonly address: H160;
readonly storageKeys: Vec<H256>;
}
- /** @name EthereumTransactionEip1559Transaction (318) */
+ /** @name EthereumTransactionEip1559Transaction (319) */
interface EthereumTransactionEip1559Transaction extends Struct {
readonly chainId: u64;
readonly nonce: U256;
@@ -2825,7 +2829,7 @@
readonly s: H256;
}
- /** @name PalletEvmMigrationCall (319) */
+ /** @name PalletEvmMigrationCall (320) */
interface PalletEvmMigrationCall extends Enum {
readonly isBegin: boolean;
readonly asBegin: {
@@ -2844,13 +2848,13 @@
readonly type: 'Begin' | 'SetData' | 'Finish';
}
- /** @name PalletSudoError (322) */
+ /** @name PalletSudoError (323) */
interface PalletSudoError extends Enum {
readonly isRequireSudo: boolean;
readonly type: 'RequireSudo';
}
- /** @name OrmlVestingModuleError (324) */
+ /** @name OrmlVestingModuleError (325) */
interface OrmlVestingModuleError extends Enum {
readonly isZeroVestingPeriod: boolean;
readonly isZeroVestingPeriodCount: boolean;
@@ -2861,21 +2865,21 @@
readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';
}
- /** @name CumulusPalletXcmpQueueInboundChannelDetails (326) */
+ /** @name CumulusPalletXcmpQueueInboundChannelDetails (327) */
interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {
readonly sender: u32;
readonly state: CumulusPalletXcmpQueueInboundState;
readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;
}
- /** @name CumulusPalletXcmpQueueInboundState (327) */
+ /** @name CumulusPalletXcmpQueueInboundState (328) */
interface CumulusPalletXcmpQueueInboundState extends Enum {
readonly isOk: boolean;
readonly isSuspended: boolean;
readonly type: 'Ok' | 'Suspended';
}
- /** @name PolkadotParachainPrimitivesXcmpMessageFormat (330) */
+ /** @name PolkadotParachainPrimitivesXcmpMessageFormat (331) */
interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {
readonly isConcatenatedVersionedXcm: boolean;
readonly isConcatenatedEncodedBlob: boolean;
@@ -2883,7 +2887,7 @@
readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';
}
- /** @name CumulusPalletXcmpQueueOutboundChannelDetails (333) */
+ /** @name CumulusPalletXcmpQueueOutboundChannelDetails (334) */
interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {
readonly recipient: u32;
readonly state: CumulusPalletXcmpQueueOutboundState;
@@ -2892,14 +2896,14 @@
readonly lastIndex: u16;
}
- /** @name CumulusPalletXcmpQueueOutboundState (334) */
+ /** @name CumulusPalletXcmpQueueOutboundState (335) */
interface CumulusPalletXcmpQueueOutboundState extends Enum {
readonly isOk: boolean;
readonly isSuspended: boolean;
readonly type: 'Ok' | 'Suspended';
}
- /** @name CumulusPalletXcmpQueueQueueConfigData (336) */
+ /** @name CumulusPalletXcmpQueueQueueConfigData (337) */
interface CumulusPalletXcmpQueueQueueConfigData extends Struct {
readonly suspendThreshold: u32;
readonly dropThreshold: u32;
@@ -2909,7 +2913,7 @@
readonly xcmpMaxIndividualWeight: u64;
}
- /** @name CumulusPalletXcmpQueueError (338) */
+ /** @name CumulusPalletXcmpQueueError (339) */
interface CumulusPalletXcmpQueueError extends Enum {
readonly isFailedToSend: boolean;
readonly isBadXcmOrigin: boolean;
@@ -2919,7 +2923,7 @@
readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';
}
- /** @name PalletXcmError (339) */
+ /** @name PalletXcmError (340) */
interface PalletXcmError extends Enum {
readonly isUnreachable: boolean;
readonly isSendFailure: boolean;
@@ -2937,29 +2941,29 @@
readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';
}
- /** @name CumulusPalletXcmError (340) */
+ /** @name CumulusPalletXcmError (341) */
type CumulusPalletXcmError = Null;
- /** @name CumulusPalletDmpQueueConfigData (341) */
+ /** @name CumulusPalletDmpQueueConfigData (342) */
interface CumulusPalletDmpQueueConfigData extends Struct {
readonly maxIndividual: u64;
}
- /** @name CumulusPalletDmpQueuePageIndexData (342) */
+ /** @name CumulusPalletDmpQueuePageIndexData (343) */
interface CumulusPalletDmpQueuePageIndexData extends Struct {
readonly beginUsed: u32;
readonly endUsed: u32;
readonly overweightCount: u64;
}
- /** @name CumulusPalletDmpQueueError (345) */
+ /** @name CumulusPalletDmpQueueError (346) */
interface CumulusPalletDmpQueueError extends Enum {
readonly isUnknown: boolean;
readonly isOverLimit: boolean;
readonly type: 'Unknown' | 'OverLimit';
}
- /** @name PalletUniqueError (349) */
+ /** @name PalletUniqueError (350) */
interface PalletUniqueError extends Enum {
readonly isCollectionDecimalPointLimitExceeded: boolean;
readonly isConfirmUnsetSponsorFail: boolean;
@@ -2968,7 +2972,7 @@
readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';
}
- /** @name PalletUniqueSchedulerScheduledV3 (352) */
+ /** @name PalletUniqueSchedulerScheduledV3 (353) */
interface PalletUniqueSchedulerScheduledV3 extends Struct {
readonly maybeId: Option<U8aFixed>;
readonly priority: u8;
@@ -2977,7 +2981,7 @@
readonly origin: OpalRuntimeOriginCaller;
}
- /** @name OpalRuntimeOriginCaller (353) */
+ /** @name OpalRuntimeOriginCaller (354) */
interface OpalRuntimeOriginCaller extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSupportDispatchRawOrigin;
@@ -2991,7 +2995,7 @@
readonly type: 'System' | 'Void' | 'PolkadotXcm' | 'CumulusXcm' | 'Ethereum';
}
- /** @name FrameSupportDispatchRawOrigin (354) */
+ /** @name FrameSupportDispatchRawOrigin (355) */
interface FrameSupportDispatchRawOrigin extends Enum {
readonly isRoot: boolean;
readonly isSigned: boolean;
@@ -3000,7 +3004,7 @@
readonly type: 'Root' | 'Signed' | 'None';
}
- /** @name PalletXcmOrigin (355) */
+ /** @name PalletXcmOrigin (356) */
interface PalletXcmOrigin extends Enum {
readonly isXcm: boolean;
readonly asXcm: XcmV1MultiLocation;
@@ -3009,7 +3013,7 @@
readonly type: 'Xcm' | 'Response';
}
- /** @name CumulusPalletXcmOrigin (356) */
+ /** @name CumulusPalletXcmOrigin (357) */
interface CumulusPalletXcmOrigin extends Enum {
readonly isRelay: boolean;
readonly isSiblingParachain: boolean;
@@ -3017,17 +3021,17 @@
readonly type: 'Relay' | 'SiblingParachain';
}
- /** @name PalletEthereumRawOrigin (357) */
+ /** @name PalletEthereumRawOrigin (358) */
interface PalletEthereumRawOrigin extends Enum {
readonly isEthereumTransaction: boolean;
readonly asEthereumTransaction: H160;
readonly type: 'EthereumTransaction';
}
- /** @name SpCoreVoid (358) */
+ /** @name SpCoreVoid (359) */
type SpCoreVoid = Null;
- /** @name PalletUniqueSchedulerError (359) */
+ /** @name PalletUniqueSchedulerError (360) */
interface PalletUniqueSchedulerError extends Enum {
readonly isFailedToSchedule: boolean;
readonly isNotFound: boolean;
@@ -3036,7 +3040,7 @@
readonly type: 'FailedToSchedule' | 'NotFound' | 'TargetBlockNumberInPast' | 'RescheduleNoChange';
}
- /** @name UpDataStructsCollection (360) */
+ /** @name UpDataStructsCollection (361) */
interface UpDataStructsCollection extends Struct {
readonly owner: AccountId32;
readonly mode: UpDataStructsCollectionMode;
@@ -3049,7 +3053,7 @@
readonly externalCollection: bool;
}
- /** @name UpDataStructsSponsorshipStateAccountId32 (361) */
+ /** @name UpDataStructsSponsorshipStateAccountId32 (362) */
interface UpDataStructsSponsorshipStateAccountId32 extends Enum {
readonly isDisabled: boolean;
readonly isUnconfirmed: boolean;
@@ -3059,43 +3063,43 @@
readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';
}
- /** @name UpDataStructsProperties (362) */
+ /** @name UpDataStructsProperties (363) */
interface UpDataStructsProperties extends Struct {
readonly map: UpDataStructsPropertiesMapBoundedVec;
readonly consumedSpace: u32;
readonly spaceLimit: u32;
}
- /** @name UpDataStructsPropertiesMapBoundedVec (363) */
+ /** @name UpDataStructsPropertiesMapBoundedVec (364) */
interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}
- /** @name UpDataStructsPropertiesMapPropertyPermission (368) */
+ /** @name UpDataStructsPropertiesMapPropertyPermission (369) */
interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}
- /** @name UpDataStructsCollectionStats (375) */
+ /** @name UpDataStructsCollectionStats (376) */
interface UpDataStructsCollectionStats extends Struct {
readonly created: u32;
readonly destroyed: u32;
readonly alive: u32;
}
- /** @name UpDataStructsTokenChild (376) */
+ /** @name UpDataStructsTokenChild (377) */
interface UpDataStructsTokenChild extends Struct {
readonly token: u32;
readonly collection: u32;
}
- /** @name PhantomTypeUpDataStructs (377) */
+ /** @name PhantomTypeUpDataStructs (378) */
interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild]>> {}
- /** @name UpDataStructsTokenData (379) */
+ /** @name UpDataStructsTokenData (380) */
interface UpDataStructsTokenData extends Struct {
readonly properties: Vec<UpDataStructsProperty>;
readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;
readonly pieces: u128;
}
- /** @name UpDataStructsRpcCollection (381) */
+ /** @name UpDataStructsRpcCollection (382) */
interface UpDataStructsRpcCollection extends Struct {
readonly owner: AccountId32;
readonly mode: UpDataStructsCollectionMode;
@@ -3110,7 +3114,7 @@
readonly readOnly: bool;
}
- /** @name RmrkTraitsCollectionCollectionInfo (382) */
+ /** @name RmrkTraitsCollectionCollectionInfo (383) */
interface RmrkTraitsCollectionCollectionInfo extends Struct {
readonly issuer: AccountId32;
readonly metadata: Bytes;
@@ -3119,7 +3123,7 @@
readonly nftsCount: u32;
}
- /** @name RmrkTraitsNftNftInfo (383) */
+ /** @name RmrkTraitsNftNftInfo (384) */
interface RmrkTraitsNftNftInfo extends Struct {
readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple;
readonly royalty: Option<RmrkTraitsNftRoyaltyInfo>;
@@ -3128,13 +3132,13 @@
readonly pending: bool;
}
- /** @name RmrkTraitsNftRoyaltyInfo (385) */
+ /** @name RmrkTraitsNftRoyaltyInfo (386) */
interface RmrkTraitsNftRoyaltyInfo extends Struct {
readonly recipient: AccountId32;
readonly amount: Permill;
}
- /** @name RmrkTraitsResourceResourceInfo (386) */
+ /** @name RmrkTraitsResourceResourceInfo (387) */
interface RmrkTraitsResourceResourceInfo extends Struct {
readonly id: u32;
readonly resource: RmrkTraitsResourceResourceTypes;
@@ -3142,26 +3146,26 @@
readonly pendingRemoval: bool;
}
- /** @name RmrkTraitsPropertyPropertyInfo (387) */
+ /** @name RmrkTraitsPropertyPropertyInfo (388) */
interface RmrkTraitsPropertyPropertyInfo extends Struct {
readonly key: Bytes;
readonly value: Bytes;
}
- /** @name RmrkTraitsBaseBaseInfo (388) */
+ /** @name RmrkTraitsBaseBaseInfo (389) */
interface RmrkTraitsBaseBaseInfo extends Struct {
readonly issuer: AccountId32;
readonly baseType: Bytes;
readonly symbol: Bytes;
}
- /** @name RmrkTraitsNftNftChild (389) */
+ /** @name RmrkTraitsNftNftChild (390) */
interface RmrkTraitsNftNftChild extends Struct {
readonly collectionId: u32;
readonly nftId: u32;
}
- /** @name PalletCommonError (391) */
+ /** @name PalletCommonError (392) */
interface PalletCommonError extends Enum {
readonly isCollectionNotFound: boolean;
readonly isMustBeTokenOwner: boolean;
@@ -3200,7 +3204,7 @@
readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'UserIsNotAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey' | 'CollectionIsExternal' | 'CollectionIsInternal';
}
- /** @name PalletFungibleError (393) */
+ /** @name PalletFungibleError (394) */
interface PalletFungibleError extends Enum {
readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isFungibleItemsHaveNoId: boolean;
@@ -3210,12 +3214,12 @@
readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
}
- /** @name PalletRefungibleItemData (394) */
+ /** @name PalletRefungibleItemData (395) */
interface PalletRefungibleItemData extends Struct {
readonly constData: Bytes;
}
- /** @name PalletRefungibleError (399) */
+ /** @name PalletRefungibleError (400) */
interface PalletRefungibleError extends Enum {
readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isWrongRefungiblePieces: boolean;
@@ -3225,12 +3229,12 @@
readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
}
- /** @name PalletNonfungibleItemData (400) */
+ /** @name PalletNonfungibleItemData (401) */
interface PalletNonfungibleItemData extends Struct {
readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
}
- /** @name UpDataStructsPropertyScope (402) */
+ /** @name UpDataStructsPropertyScope (403) */
interface UpDataStructsPropertyScope extends Enum {
readonly isNone: boolean;
readonly isRmrk: boolean;
@@ -3238,7 +3242,7 @@
readonly type: 'None' | 'Rmrk' | 'Eth';
}
- /** @name PalletNonfungibleError (404) */
+ /** @name PalletNonfungibleError (405) */
interface PalletNonfungibleError extends Enum {
readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isNonfungibleItemsHaveNoAmount: boolean;
@@ -3246,7 +3250,7 @@
readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';
}
- /** @name PalletStructureError (405) */
+ /** @name PalletStructureError (406) */
interface PalletStructureError extends Enum {
readonly isOuroborosDetected: boolean;
readonly isDepthLimit: boolean;
@@ -3255,7 +3259,7 @@
readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';
}
- /** @name PalletRmrkCoreError (406) */
+ /** @name PalletRmrkCoreError (407) */
interface PalletRmrkCoreError extends Enum {
readonly isCorruptedCollectionType: boolean;
readonly isRmrkPropertyKeyIsTooLong: boolean;
@@ -3279,7 +3283,7 @@
readonly type: 'CorruptedCollectionType' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';
}
- /** @name PalletRmrkEquipError (408) */
+ /** @name PalletRmrkEquipError (409) */
interface PalletRmrkEquipError extends Enum {
readonly isPermissionError: boolean;
readonly isNoAvailableBaseId: boolean;
@@ -3291,7 +3295,7 @@
readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';
}
- /** @name PalletAppPromotionError (410) */
+ /** @name PalletAppPromotionError (412) */
interface PalletAppPromotionError extends Enum {
readonly isAdminNotSet: boolean;
readonly isNoPermission: boolean;
@@ -3300,7 +3304,7 @@
readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFounds' | 'InvalidArgument';
}
- /** @name PalletEvmError (413) */
+ /** @name PalletEvmError (415) */
interface PalletEvmError extends Enum {
readonly isBalanceLow: boolean;
readonly isFeeOverflow: boolean;
@@ -3311,7 +3315,7 @@
readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';
}
- /** @name FpRpcTransactionStatus (416) */
+ /** @name FpRpcTransactionStatus (418) */
interface FpRpcTransactionStatus extends Struct {
readonly transactionHash: H256;
readonly transactionIndex: u32;
@@ -3322,10 +3326,10 @@
readonly logsBloom: EthbloomBloom;
}
- /** @name EthbloomBloom (418) */
+ /** @name EthbloomBloom (420) */
interface EthbloomBloom extends U8aFixed {}
- /** @name EthereumReceiptReceiptV3 (420) */
+ /** @name EthereumReceiptReceiptV3 (422) */
interface EthereumReceiptReceiptV3 extends Enum {
readonly isLegacy: boolean;
readonly asLegacy: EthereumReceiptEip658ReceiptData;
@@ -3336,7 +3340,7 @@
readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
}
- /** @name EthereumReceiptEip658ReceiptData (421) */
+ /** @name EthereumReceiptEip658ReceiptData (423) */
interface EthereumReceiptEip658ReceiptData extends Struct {
readonly statusCode: u8;
readonly usedGas: U256;
@@ -3344,14 +3348,14 @@
readonly logs: Vec<EthereumLog>;
}
- /** @name EthereumBlock (422) */
+ /** @name EthereumBlock (424) */
interface EthereumBlock extends Struct {
readonly header: EthereumHeader;
readonly transactions: Vec<EthereumTransactionTransactionV2>;
readonly ommers: Vec<EthereumHeader>;
}
- /** @name EthereumHeader (423) */
+ /** @name EthereumHeader (425) */
interface EthereumHeader extends Struct {
readonly parentHash: H256;
readonly ommersHash: H256;
@@ -3370,24 +3374,24 @@
readonly nonce: EthereumTypesHashH64;
}
- /** @name EthereumTypesHashH64 (424) */
+ /** @name EthereumTypesHashH64 (426) */
interface EthereumTypesHashH64 extends U8aFixed {}
- /** @name PalletEthereumError (429) */
+ /** @name PalletEthereumError (431) */
interface PalletEthereumError extends Enum {
readonly isInvalidSignature: boolean;
readonly isPreLogExists: boolean;
readonly type: 'InvalidSignature' | 'PreLogExists';
}
- /** @name PalletEvmCoderSubstrateError (430) */
+ /** @name PalletEvmCoderSubstrateError (432) */
interface PalletEvmCoderSubstrateError extends Enum {
readonly isOutOfGas: boolean;
readonly isOutOfFund: boolean;
readonly type: 'OutOfGas' | 'OutOfFund';
}
- /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (431) */
+ /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (433) */
interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum {
readonly isDisabled: boolean;
readonly isUnconfirmed: boolean;
@@ -3397,7 +3401,7 @@
readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';
}
- /** @name PalletEvmContractHelpersSponsoringModeT (432) */
+ /** @name PalletEvmContractHelpersSponsoringModeT (434) */
interface PalletEvmContractHelpersSponsoringModeT extends Enum {
readonly isDisabled: boolean;
readonly isAllowlisted: boolean;
@@ -3405,21 +3409,21 @@
readonly type: 'Disabled' | 'Allowlisted' | 'Generous';
}
- /** @name PalletEvmContractHelpersError (434) */
+ /** @name PalletEvmContractHelpersError (436) */
interface PalletEvmContractHelpersError extends Enum {
readonly isNoPermission: boolean;
readonly isNoPendingSponsor: boolean;
readonly type: 'NoPermission' | 'NoPendingSponsor';
}
- /** @name PalletEvmMigrationError (435) */
+ /** @name PalletEvmMigrationError (437) */
interface PalletEvmMigrationError extends Enum {
readonly isAccountNotEmpty: boolean;
readonly isAccountIsNotMigrating: boolean;
readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';
}
- /** @name SpRuntimeMultiSignature (437) */
+ /** @name SpRuntimeMultiSignature (439) */
interface SpRuntimeMultiSignature extends Enum {
readonly isEd25519: boolean;
readonly asEd25519: SpCoreEd25519Signature;
@@ -3430,34 +3434,34 @@
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
}
- /** @name SpCoreEd25519Signature (438) */
+ /** @name SpCoreEd25519Signature (440) */
interface SpCoreEd25519Signature extends U8aFixed {}
- /** @name SpCoreSr25519Signature (440) */
+ /** @name SpCoreSr25519Signature (442) */
interface SpCoreSr25519Signature extends U8aFixed {}
- /** @name SpCoreEcdsaSignature (441) */
+ /** @name SpCoreEcdsaSignature (443) */
interface SpCoreEcdsaSignature extends U8aFixed {}
- /** @name FrameSystemExtensionsCheckSpecVersion (444) */
+ /** @name FrameSystemExtensionsCheckSpecVersion (446) */
type FrameSystemExtensionsCheckSpecVersion = Null;
- /** @name FrameSystemExtensionsCheckGenesis (445) */
+ /** @name FrameSystemExtensionsCheckGenesis (447) */
type FrameSystemExtensionsCheckGenesis = Null;
- /** @name FrameSystemExtensionsCheckNonce (448) */
+ /** @name FrameSystemExtensionsCheckNonce (450) */
interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}
- /** @name FrameSystemExtensionsCheckWeight (449) */
+ /** @name FrameSystemExtensionsCheckWeight (451) */
type FrameSystemExtensionsCheckWeight = Null;
- /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (450) */
+ /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (452) */
interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
- /** @name OpalRuntimeRuntime (451) */
+ /** @name OpalRuntimeRuntime (453) */
type OpalRuntimeRuntime = Null;
- /** @name PalletEthereumFakeTransactionFinalizer (452) */
+ /** @name PalletEthereumFakeTransactionFinalizer (454) */
type PalletEthereumFakeTransactionFinalizer = Null;
} // declare module