difftreelog
features : added full test coverage(except contract sponsoting) + switch to realay block for income calc + add recalc event
in: master
19 files changed
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5304,9 +5304,11 @@
"frame-support",
"frame-system",
"pallet-balances",
+ "pallet-common",
"pallet-evm",
"pallet-randomness-collective-flip",
"pallet-timestamp",
+ "pallet-unique",
"parity-scale-codec 3.1.5",
"scale-info",
"serde",
@@ -5314,6 +5316,7 @@
"sp-io",
"sp-runtime",
"sp-std",
+ "up-data-structs",
]
[[package]]
pallets/app-promotion/Cargo.tomldiffbeforeafterboth--- a/pallets/app-promotion/Cargo.toml
+++ b/pallets/app-promotion/Cargo.toml
@@ -104,6 +104,22 @@
git = "https://github.com/uniquenetwork/frontier"
branch = "unique-polkadot-v0.9.27"
+################################################################################
+# local dependencies
+[dependencies.up-data-structs]
+default-features = false
+path = "../../primitives/data-structs"
+
+[dependencies.pallet-common]
+default-features = false
+path = "../common"
+
+[dependencies.pallet-unique]
+default-features = false
+path = "../unique"
+
+################################################################################
+
[dependencies]
scale-info = { version = "2.0.1", default-features = false, features = [
"derive",
pallets/app-promotion/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/app-promotion/src/benchmarking.rs
+++ b/pallets/app-promotion/src/benchmarking.rs
@@ -59,7 +59,7 @@
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))?;
- } : {PromototionPallet::<T>::stake(RawOrigin::Signed(caller.clone()).into(), share * T::Currency::total_balance(&caller))?}
+ } : {PromototionPallet::<T>::unstake(RawOrigin::Signed(caller.clone()).into(), share * T::Currency::total_balance(&caller))?}
recalculate_stake {
let caller = account::<T::AccountId>("caller", 0, SEED);
pallets/app-promotion/src/lib.rsdiffbeforeafterboth--- a/pallets/app-promotion/src/lib.rs
+++ b/pallets/app-promotion/src/lib.rs
@@ -36,11 +36,14 @@
pub mod types;
pub mod weights;
-use sp_std::{vec::Vec, iter::Sum};
+use sp_std::{vec::Vec, iter::Sum, borrow::ToOwned};
use codec::EncodeLike;
use pallet_balances::BalanceLock;
pub use types::ExtendedLockableCurrency;
+// use up_common::constants::{DAYS, UNIQUE};
+use up_data_structs::CollectionId;
+
use frame_support::{
dispatch::{DispatchResult},
traits::{
@@ -55,38 +58,68 @@
use pallet_evm::account::CrossAccountId;
use sp_runtime::{
Perbill,
- traits::{BlockNumberProvider, CheckedAdd, CheckedSub},
+ traits::{BlockNumberProvider, CheckedAdd, CheckedSub, AccountIdConversion},
ArithmeticError,
};
type BalanceOf<T> =
<<T as Config>::Currency as Currency<<T as frame_system::Config>::AccountId>>::Balance;
-const SECONDS_TO_BLOCK: u32 = 6;
-const DAY: u32 = 60 * 60 * 24 / SECONDS_TO_BLOCK;
-const WEEK: u32 = 7 * DAY;
-const TWO_WEEK: u32 = 2 * WEEK;
-const YEAR: u32 = DAY * 365;
+// const SECONDS_TO_BLOCK: u32 = 6;
+// const DAY: u32 = 60 * 60 * 24 / SECONDS_TO_BLOCK;
+// const WEEK: u32 = 7 * DAY;
+// const TWO_WEEK: u32 = 2 * WEEK;
+// const YEAR: u32 = DAY * 365;
pub const LOCK_IDENTIFIER: [u8; 8] = *b"appstake";
#[frame_support::pallet]
pub mod pallet {
use super::*;
- use frame_support::{Blake2_128Concat, Twox64Concat, pallet_prelude::*, storage::Key};
+ use frame_support::{Blake2_128Concat, Twox64Concat, pallet_prelude::*, storage::Key, PalletId};
use frame_system::pallet_prelude::*;
+ use types::CollectionHandler;
#[pallet::config]
pub trait Config: frame_system::Config + pallet_evm::account::Config {
type Currency: ExtendedLockableCurrency<Self::AccountId>;
+ type CollectionHandler: CollectionHandler<
+ AccountId = Self::AccountId,
+ CollectionId = CollectionId,
+ >;
+
type TreasuryAccountId: Get<Self::AccountId>;
+ /// The app's pallet id, used for deriving its sovereign account ID.
+ #[pallet::constant]
+ type PalletId: Get<PalletId>;
+
+ /// In relay blocks.
+ #[pallet::constant]
+ type RecalculationInterval: Get<Self::BlockNumber>;
+ /// In chain blocks.
+ #[pallet::constant]
+ type PendingInterval: Get<Self::BlockNumber>;
+
+ /// In chain blocks.
+ #[pallet::constant]
+ type Day: Get<Self::BlockNumber>; // useless
+
+ #[pallet::constant]
+ type Nominal: Get<BalanceOf<Self>>;
+
+ #[pallet::constant]
+ type IntervalIncome: Get<Perbill>;
+
/// Weight information for extrinsics in this pallet.
type WeightInfo: WeightInfo;
- // The block number provider
- type BlockNumberProvider: BlockNumberProvider<BlockNumber = Self::BlockNumber>;
+ // The relay block number provider
+ type RelayBlockNumberProvider: BlockNumberProvider<BlockNumber = Self::BlockNumber>;
+
+ /// Events compatible with [`frame_system::Config::Event`].
+ type Event: IsType<<Self as frame_system::Config>::Event> + From<Event<Self>>;
// /// Number of blocks that pass between treasury balance updates due to inflation
// #[pallet::constant]
@@ -100,6 +133,28 @@
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(_);
+ #[pallet::event]
+ #[pallet::generate_deposit(fn deposit_event)]
+ pub enum Event<T: Config> {
+ StakingRecalculation(
+ /// Base on which interest is calculated
+ BalanceOf<T>,
+ /// Amount of accrued interest
+ BalanceOf<T>,
+ ),
+ }
+
+ #[pallet::error]
+ pub enum Error<T> {
+ AdminNotSet,
+ /// No permission to perform action
+ NoPermission,
+ /// Insufficient funds to perform an action
+ NotSufficientFounds,
+ InvalidArgument,
+ AlreadySponsored,
+ }
+
#[pallet::storage]
pub type TotalStaked<T: Config> = StorageValue<Value = BalanceOf<T>, QueryKind = ValueQuery>;
@@ -164,23 +219,33 @@
});
let next_interest_block = Self::get_interest_block();
-
- if next_interest_block != 0.into() && current_block >= next_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(current_block + DAY.into());
+ NextInterestBlock::<T>::set(
+ NextInterestBlock::<T>::get() + T::RecalculationInterval::get(),
+ );
add_weight(0, 1, 0);
Staked::<T>::iter()
- .filter(|((_, block), _)| *block + DAY.into() <= current_block)
+ .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)
};
consumed_weight
}
@@ -189,9 +254,9 @@
#[pallet::call]
impl<T: Config> Pallet<T> {
#[pallet::weight(T::WeightInfo::set_admin_address())]
- pub fn set_admin_address(origin: OriginFor<T>, admin: T::AccountId) -> DispatchResult {
+ pub fn set_admin_address(origin: OriginFor<T>, admin: T::CrossAccountId) -> DispatchResult {
ensure_root(origin)?;
- <Admin<T>>::set(Some(admin));
+ <Admin<T>>::set(Some(admin.as_sub().to_owned()));
Ok(())
}
@@ -199,7 +264,7 @@
#[pallet::weight(T::WeightInfo::start_app_promotion())]
pub fn start_app_promotion(
origin: OriginFor<T>,
- promotion_start_relay_block: T::BlockNumber,
+ promotion_start_relay_block: Option<T::BlockNumber>,
) -> DispatchResult
where
<T as frame_system::Config>::BlockNumber: From<u32>,
@@ -208,10 +273,13 @@
// Start app-promotion mechanics if it has not been yet initialized
if <StartBlock<T>>::get() == 0u32.into() {
+ let start_block = promotion_start_relay_block
+ .unwrap_or(T::RelayBlockNumberProvider::current_block_number());
+
// Set promotion global start block
- <StartBlock<T>>::set(promotion_start_relay_block);
+ <StartBlock<T>>::set(start_block);
- <NextInterestBlock<T>>::set(promotion_start_relay_block + DAY.into());
+ <NextInterestBlock<T>>::set(start_block + T::RecalculationInterval::get());
}
Ok(())
@@ -221,6 +289,8 @@
pub fn stake(staker: OriginFor<T>, amount: BalanceOf<T>) -> DispatchResult {
let staker_id = ensure_signed(staker)?;
+ ensure!(amount >= T::Nominal::get(), ArithmeticError::Underflow);
+
let balance =
<<T as Config>::Currency as Currency<T::AccountId>>::free_balance(&staker_id);
@@ -235,7 +305,7 @@
Self::add_lock_balance(&staker_id, amount)?;
- let block_number = frame_system::Pallet::<T>::block_number();
+ let block_number = T::RelayBlockNumberProvider::current_block_number();
<Staked<T>>::insert(
(&staker_id, block_number),
@@ -271,7 +341,7 @@
.ok_or(ArithmeticError::Underflow)?,
);
- let block = frame_system::Pallet::<T>::block_number() + WEEK.into();
+ let block = frame_system::Pallet::<T>::block_number() + T::PendingInterval::get();
<PendingUnstake<T>>::insert(
(&staker_id, block),
<PendingUnstake<T>>::get((&staker_id, block))
@@ -311,6 +381,40 @@
Ok(())
}
+
+ #[pallet::weight(0)]
+ pub fn sponsor_collection(
+ admin: OriginFor<T>,
+ collection_id: CollectionId,
+ ) -> DispatchResult {
+ let admin_id = ensure_signed(admin)?;
+ ensure!(
+ admin_id == Admin::<T>::get().ok_or(Error::<T>::AdminNotSet)?,
+ Error::<T>::NoPermission
+ );
+
+ T::CollectionHandler::set_sponsor(Self::account_id(), collection_id)
+ }
+ #[pallet::weight(0)]
+ pub fn stop_sponsorign_collection(
+ admin: OriginFor<T>,
+ collection_id: CollectionId,
+ ) -> DispatchResult {
+ let admin_id = ensure_signed(admin)?;
+
+ ensure!(
+ admin_id == Admin::<T>::get().ok_or(Error::<T>::AdminNotSet)?,
+ Error::<T>::NoPermission
+ );
+
+ ensure!(
+ T::CollectionHandler::get_sponsor(collection_id)?
+ .ok_or(<Error<T>>::InvalidArgument)?
+ == Self::account_id(),
+ <Error<T>>::NoPermission
+ );
+ T::CollectionHandler::remove_collection_sponsor(collection_id)
+ }
}
}
@@ -396,13 +500,13 @@
// Ok(())
// }
- pub fn sponsor_collection(admin: T::AccountId, collection_id: u32) -> DispatchResult {
- Ok(())
- }
+ // pub fn sponsor_collection(admin: T::AccountId, collection_id: u32) -> DispatchResult {
+ // Ok(())
+ // }
- pub fn stop_sponsorign_collection(admin: T::AccountId, collection_id: u32) -> DispatchResult {
- Ok(())
- }
+ // pub fn stop_sponsorign_collection(admin: T::AccountId, collection_id: u32) -> DispatchResult {
+ // Ok(())
+ // }
pub fn sponsor_conract(admin: T::AccountId, app_id: u32) -> DispatchResult {
Ok(())
@@ -411,6 +515,10 @@
pub fn stop_sponsorign_contract(admin: T::AccountId, app_id: u32) -> DispatchResult {
Ok(())
}
+
+ pub fn account_id() -> T::AccountId {
+ T::PalletId::get().into_account_truncating()
+ }
}
impl<T: Config> Pallet<T> {
@@ -514,8 +622,7 @@
where
I: EncodeLike<BalanceOf<T>> + Balance,
{
- let day_rate = Perbill::from_rational(5u32, 1_0000);
- day_rate * base
+ T::IntervalIncome::get() * base
}
}
pallets/app-promotion/src/tests.rsdiffbeforeafterboth--- a/pallets/app-promotion/src/tests.rs
+++ b/pallets/app-promotion/src/tests.rs
@@ -28,7 +28,7 @@
use sp_runtime::{
traits::{BlakeTwo256, BlockNumberProvider, IdentityLookup},
testing::Header,
- Perbill,
+ Perbill, Perquintill,
};
// type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Test>;
@@ -126,3 +126,25 @@
// test_benchmark_stake::<Test>();
// } )
// }
+
+#[test]
+fn test_perbill() {
+ const ONE_UNIQE: u128 = 1_000_000_000_000_000_000;
+ const SECONDS_TO_BLOCK: u32 = 12;
+ const DAY: u32 = 60 * 60 * 24 / SECONDS_TO_BLOCK;
+ const RECALCULATION_INTERVAL: u32 = 10;
+ let day_rate = Perbill::from_rational(5u64, 10_000);
+ let interval_rate =
+ Perbill::from_rational::<u64>(RECALCULATION_INTERVAL.into(), DAY.into()) * day_rate;
+ println!("{:?}", interval_rate * ONE_UNIQE + ONE_UNIQE);
+ println!("{:?}", day_rate * ONE_UNIQE);
+ println!("{:?}", Perbill::one() * ONE_UNIQE);
+ println!("{:?}", ONE_UNIQE);
+ let mut next_iters = ONE_UNIQE + interval_rate * ONE_UNIQE;
+ next_iters += interval_rate * next_iters;
+ println!("{:?}", next_iters);
+ let day_income = day_rate * ONE_UNIQE;
+ let interval_income = interval_rate * ONE_UNIQE;
+ let ratio = day_income / interval_income;
+ println!("{:?} || {:?}", ratio, DAY / RECALCULATION_INTERVAL);
+}
pallets/app-promotion/src/types.rsdiffbeforeafterboth--- a/pallets/app-promotion/src/types.rs
+++ b/pallets/app-promotion/src/types.rs
@@ -1,6 +1,14 @@
use codec::EncodeLike;
-use frame_support::{traits::LockableCurrency, WeakBoundedVec, Parameter};
+use frame_support::{
+ traits::LockableCurrency, WeakBoundedVec, Parameter, dispatch::DispatchResult, ensure,
+};
+use frame_system::Config;
use pallet_balances::{BalanceLock, Config as BalancesConfig, Pallet as PalletBalances};
+use pallet_common::CollectionHandle;
+use pallet_unique::{Event as UniqueEvent, Error as UniqueError};
+use sp_runtime::DispatchError;
+use up_data_structs::{CollectionId, SponsorshipState};
+use sp_std::borrow::ToOwned;
pub trait ExtendedLockableCurrency<AccountId: Parameter>: LockableCurrency<AccountId> {
fn locks<KArg>(who: KArg) -> WeakBoundedVec<BalanceLock<Self::Balance>, Self::MaxLocks>
@@ -18,3 +26,70 @@
Self::locks(who)
}
}
+
+pub trait CollectionHandler {
+ type CollectionId;
+ type AccountId;
+
+ fn set_sponsor(
+ sponsor_id: Self::AccountId,
+ collection_id: Self::CollectionId,
+ ) -> DispatchResult;
+
+ fn remove_collection_sponsor(collection_id: Self::CollectionId) -> DispatchResult;
+
+ fn get_sponsor(
+ collection_id: Self::CollectionId,
+ ) -> Result<Option<Self::AccountId>, DispatchError>;
+}
+
+impl<T: pallet_unique::Config> CollectionHandler for pallet_unique::Pallet<T> {
+ type CollectionId = CollectionId;
+
+ type AccountId = T::AccountId;
+
+ fn set_sponsor(
+ sponsor_id: Self::AccountId,
+ collection_id: Self::CollectionId,
+ ) -> DispatchResult {
+ let mut target_collection = <CollectionHandle<T>>::try_get(collection_id)?;
+ target_collection.check_is_internal()?;
+ target_collection.set_sponsor(sponsor_id.clone())?;
+
+ Self::deposit_event(UniqueEvent::<T>::CollectionSponsorSet(
+ collection_id,
+ sponsor_id.clone(),
+ ));
+
+ ensure!(
+ target_collection.confirm_sponsorship(&sponsor_id)?,
+ UniqueError::<T>::ConfirmUnsetSponsorFail
+ );
+
+ Self::deposit_event(UniqueEvent::<T>::SponsorshipConfirmed(
+ collection_id,
+ sponsor_id,
+ ));
+
+ target_collection.save()
+ }
+
+ fn remove_collection_sponsor(collection_id: Self::CollectionId) -> DispatchResult {
+ let mut target_collection = <CollectionHandle<T>>::try_get(collection_id)?;
+ target_collection.check_is_internal()?;
+ target_collection.sponsorship = SponsorshipState::Disabled;
+
+ Self::deposit_event(UniqueEvent::<T>::CollectionSponsorRemoved(collection_id));
+
+ target_collection.save()
+ }
+
+ fn get_sponsor(
+ collection_id: Self::CollectionId,
+ ) -> Result<Option<Self::AccountId>, DispatchError> {
+ Ok(<CollectionHandle<T>>::try_get(collection_id)?
+ .sponsorship
+ .pending_sponsor()
+ .map(|acc| acc.to_owned()))
+ }
+}
pallets/unique/src/lib.rsdiffbeforeafterboth--- a/pallets/unique/src/lib.rs
+++ b/pallets/unique/src/lib.rs
@@ -277,7 +277,7 @@
{
type Error = Error<T>;
- fn deposit_event() = default;
+ pub fn deposit_event() = default;
fn on_initialize(_now: T::BlockNumber) -> Weight {
0
runtime/common/config/pallets/app_promotion.rsdiffbeforeafterboth--- a/runtime/common/config/pallets/app_promotion.rs
+++ b/runtime/common/config/pallets/app_promotion.rs
@@ -16,12 +16,36 @@
use crate::{
runtime_common::config::pallets::{TreasuryAccountId, RelayChainBlockNumberProvider},
- Runtime, Balances,
+ Runtime, Balances, BlockNumber, Unique, Event,
+};
+
+use frame_support::{parameter_types, PalletId};
+use sp_arithmetic::Perbill;
+use up_common::{
+ constants::{DAYS, UNIQUE},
+ types::Balance,
};
+parameter_types! {
+ pub const AppPromotionId: PalletId = PalletId(*b"appstake");
+ pub const RecalculationInterval: BlockNumber = 20;
+ pub const PendingInterval: BlockNumber = 10;
+ pub const Nominal: Balance = UNIQUE;
+ pub const Day: BlockNumber = DAYS;
+ pub IntervalIncome: Perbill = Perbill::from_rational(RecalculationInterval::get(), 2 * DAYS) * Perbill::from_rational(5u32, 10_000);
+}
+
impl pallet_app_promotion::Config for Runtime {
+ type PalletId = AppPromotionId;
+ type CollectionHandler = Unique;
type Currency = Balances;
type WeightInfo = pallet_app_promotion::weights::SubstrateWeight<Self>;
type TreasuryAccountId = TreasuryAccountId;
- type BlockNumberProvider = RelayChainBlockNumberProvider<Runtime>;
+ type RelayBlockNumberProvider = RelayChainBlockNumberProvider<Runtime>;
+ type RecalculationInterval = RecalculationInterval;
+ type PendingInterval = PendingInterval;
+ type Day = Day;
+ type Nominal = Nominal;
+ type IntervalIncome = IntervalIncome;
+ type Event = Event;
}
runtime/common/construct_runtime/mod.rsdiffbeforeafterboth--- a/runtime/common/construct_runtime/mod.rs
+++ b/runtime/common/construct_runtime/mod.rs
@@ -78,7 +78,7 @@
RmrkEquip: pallet_proxy_rmrk_equip::{Pallet, Call, Storage, Event<T>} = 72,
#[runtimes(opal)]
- Promotion: pallet_app_promotion::{Pallet, Call, Storage} = 73,
+ Promotion: pallet_app_promotion::{Pallet, Call, Storage, Event<T>} = 73,
// Frontier
EVM: pallet_evm::{Pallet, Config, Call, Storage, Event<T>} = 100,
tests/src/app-promotion.test.tsdiffbeforeafterboth--- a/tests/src/app-promotion.test.ts
+++ b/tests/src/app-promotion.test.ts
@@ -40,32 +40,32 @@
import chai, {use} from 'chai';
import chaiAsPromised from 'chai-as-promised';
-import getBalance, {getBalanceSingle} from './substrate/get-balance';
-import {unique} from './interfaces/definitions';
import {usingPlaygrounds} from './util/playgrounds';
import {default as waitNewBlocks} from './substrate/wait-new-blocks';
-import BN from 'bn.js';
-import {mnemonicGenerate} from '@polkadot/util-crypto';
+import {encodeAddress, hdEthereum, mnemonicGenerate} from '@polkadot/util-crypto';
+import {stringToU8a} from '@polkadot/util';
import {UniqueHelper} from './util/playgrounds/unique';
+import {ApiPromise} from '@polkadot/api';
chai.use(chaiAsPromised);
const expect = chai.expect;
let alice: IKeyringPair;
let bob: IKeyringPair;
let palletAdmin: IKeyringPair;
-let nominal: bigint;
+let nominal: bigint;
+let promotionStartBlock: number | null = null;
-describe('integration test: AppPromotion', () => {
+describe('app-promotions.stake extrinsic', () => {
before(async function() {
await usingPlaygrounds(async (helper, privateKeyWrapper) => {
if (!getModuleNames(helper.api!).includes(Pallets.AppPromotion)) this.skip();
alice = privateKeyWrapper('//Alice');
bob = privateKeyWrapper('//Bob');
palletAdmin = privateKeyWrapper('//palletAdmin');
- const tx = helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.setAdminAddress(palletAdmin.addressRaw));
+ const tx = helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.setAdminAddress(normalizeAccountId(palletAdmin)));
nominal = helper.balance.getOneTokenNominal();
- await submitTransactionAsync(alice, tx);
+ await helper.signTransaction(alice, tx);
});
});
it('will change balance state to "locked", add it to "staked" map, and increase "totalStaked" amount', async () => {
@@ -85,18 +85,19 @@
const totalStakedBefore = (await helper.api!.rpc.unique.totalStaked()).toBigInt();
const staker = await createUser();
- const firstStakedBlock = await helper.chain.getLatestBlockNumber();
- await expect(submitTransactionAsync(staker, helper.api!.tx.promotion.stake(1n * nominal))).to.be.eventually.fulfilled;
+
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.stake(nominal / 2n))).to.be.eventually.rejected;
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.stake(1n * nominal))).to.be.eventually.fulfilled;
expect((await helper.api!.rpc.unique.totalStakingLocked(normalizeAccountId(staker))).toBigInt()).to.be.equal(nominal);
expect(9n * nominal - await helper.balance.getSubstrate(staker.address) <= nominal / 2n).to.be.true;
expect((await helper.api!.rpc.unique.totalStaked(normalizeAccountId(staker))).toBigInt()).to.be.equal(nominal);
expect((await helper.api!.rpc.unique.totalStaked()).toBigInt()).to.be.equal(totalStakedBefore + nominal);
await waitNewBlocks(helper.api!, 1);
- const secondStakedBlock = await helper.chain.getLatestBlockNumber();
- await expect(submitTransactionAsync(staker, helper.api!.tx.promotion.stake(2n * nominal))).to.be.eventually.fulfilled;
+
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.stake(2n * nominal))).to.be.eventually.fulfilled;
expect((await helper.api!.rpc.unique.totalStakingLocked(normalizeAccountId(staker))).toBigInt()).to.be.equal(3n * nominal);
const stakedPerBlock = (await helper.api!.rpc.unique.totalStakedPerBlock(normalizeAccountId(staker))).map(([block, amount]) => [block.toBigInt(), amount.toBigInt()]);
@@ -115,9 +116,9 @@
const staker = await createUser();
- await expect(submitTransactionAsync(staker, helper.api!.tx.promotion.stake(10n * nominal))).to.be.eventually.rejected;
- await expect(submitTransactionAsync(staker, helper.api!.tx.promotion.stake(7n * nominal))).to.be.eventually.fulfilled;
- await expect(submitTransactionAsync(staker, helper.api!.tx.promotion.stake(4n * nominal))).to.be.eventually.rejected;
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.stake(10n * nominal))).to.be.eventually.rejected;
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.stake(7n * nominal))).to.be.eventually.fulfilled;
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.stake(4n * nominal))).to.be.eventually.rejected;
});
});
@@ -128,17 +129,10 @@
// assert: query appPromotion.staked(Alice/Bob/Charlie/Dave) equal [100]
await usingPlaygrounds(async helper => {
- // const userOne = await createUser();
- // const userTwo = await createUser();
- // const userThree = await createUser();
- // const userFour = await createUser();
const crowd = [];
for(let i = 4; i--;) crowd.push(await createUser());
- // const crowd = await creteAccounts([10n, 10n, 10n, 10n], alice, helper);
- // const crowd = [userOne, userTwo, userThree, userFour];
-
- const promises = crowd.map(async user => submitTransactionAsync(user, helper.api!.tx.promotion.stake(nominal)));
+ const promises = crowd.map(async user => helper.signTransaction(user, helper.api!.tx.promotion.stake(nominal)));
await expect(Promise.all(promises)).to.be.eventually.fulfilled;
for (let i = 0; i < crowd.length; i++){
@@ -156,9 +150,9 @@
alice = privateKeyWrapper('//Alice');
bob = privateKeyWrapper('//Bob');
palletAdmin = privateKeyWrapper('//palletAdmin');
- const tx = helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.setAdminAddress(palletAdmin.addressRaw));
+ const tx = helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.setAdminAddress(normalizeAccountId(palletAdmin)));
nominal = helper.balance.getOneTokenNominal();
- await submitTransactionAsync(alice, tx);
+ await helper.signTransaction(alice, tx);
});
});
@@ -174,8 +168,8 @@
await usingPlaygrounds(async helper => {
const totalStakedBefore = (await helper.api!.rpc.unique.totalStaked()).toBigInt();
const staker = await createUser();
- await expect(submitTransactionAsync(staker, helper.api!.tx.promotion.stake(5n * nominal))).to.be.eventually.fulfilled;
- await expect(submitTransactionAsync(staker, helper.api!.tx.promotion.unstake(3n * nominal))).to.be.eventually.fulfilled;
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.stake(5n * nominal))).to.be.eventually.fulfilled;
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.unstake(3n * nominal))).to.be.eventually.fulfilled;
expect((await helper.api!.rpc.unique.pendingUnstake(normalizeAccountId(staker.address))).toBigInt()).to.be.equal(3n * nominal);
expect((await helper.api!.rpc.unique.totalStaked(normalizeAccountId(staker))).toBigInt()).to.be.equal(2n * nominal);
expect((await helper.api!.rpc.unique.totalStaked()).toBigInt()).to.be.equal(totalStakedBefore + 2n * nominal);
@@ -204,18 +198,18 @@
await usingPlaygrounds(async helper => {
const totalStakedBefore = (await helper.api!.rpc.unique.totalStaked()).toBigInt();
const staker = await createUser();
- await expect(submitTransactionAsync(staker, helper.api!.tx.promotion.stake(1n * nominal))).to.be.eventually.fulfilled;
- await expect(submitTransactionAsync(staker, helper.api!.tx.promotion.stake(2n * nominal))).to.be.eventually.fulfilled;
- await expect(submitTransactionAsync(staker, helper.api!.tx.promotion.stake(3n * nominal))).to.be.eventually.fulfilled;
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.stake(1n * nominal))).to.be.eventually.fulfilled;
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.stake(2n * nominal))).to.be.eventually.fulfilled;
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.stake(3n * nominal))).to.be.eventually.fulfilled;
let stakedPerBlock = (await helper.api!.rpc.unique.totalStakedPerBlock(normalizeAccountId(staker))).map(([_, amount]) => amount.toBigInt());
expect(stakedPerBlock).to.be.deep.equal([nominal, 2n * nominal, 3n * nominal]);
- await expect(submitTransactionAsync(staker, helper.api!.tx.promotion.unstake(3n * nominal / 10n))).to.be.eventually.fulfilled;
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.unstake(3n * nominal / 10n))).to.be.eventually.fulfilled;
expect((await helper.api!.rpc.unique.pendingUnstake(normalizeAccountId(staker.address))).toBigInt()).to.be.equal(3n * nominal / 10n);
stakedPerBlock = (await helper.api!.rpc.unique.totalStakedPerBlock(normalizeAccountId(staker))).map(([_, amount]) => amount.toBigInt());
expect(stakedPerBlock).to.be.deep.equal([7n * nominal / 10n, 2n * nominal, 3n * nominal]);
- await expect(submitTransactionAsync(staker, helper.api!.tx.promotion.unstake(17n * nominal / 10n))).to.be.eventually.fulfilled;
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.unstake(17n * nominal / 10n))).to.be.eventually.fulfilled;
stakedPerBlock = (await helper.api!.rpc.unique.totalStakedPerBlock(normalizeAccountId(staker))).map(([_, amount]) => amount.toBigInt());
expect(stakedPerBlock).to.be.deep.equal([nominal, 3n * nominal]);
const unstakedPerBlock = (await helper.api!.rpc.unique.pendingUnstakePerBlock(normalizeAccountId(staker))).map(([_, amount]) => amount.toBigInt());
@@ -223,7 +217,7 @@
expect(unstakedPerBlock).to.be.deep.equal([3n * nominal / 10n, 17n * nominal / 10n]);
await waitNewBlocks(helper.api!, 1);
- await expect(submitTransactionAsync(staker, helper.api!.tx.promotion.unstake(4n * nominal))).to.be.eventually.fulfilled;
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.unstake(4n * nominal))).to.be.eventually.fulfilled;
expect((await helper.api!.rpc.unique.totalStakedPerBlock(normalizeAccountId(staker))).map(([_, amount]) => amount.toBigInt())).to.be.deep.equal([]);
expect((await helper.api!.rpc.unique.pendingUnstakePerBlock(normalizeAccountId(staker))).map(([_, amount]) => amount.toBigInt())).to.be.deep.equal([3n * nominal / 10n, 17n * nominal / 10n, 4n * nominal]);
});
@@ -232,9 +226,643 @@
});
+
+describe('Admin adress', () => {
+ before(async function () {
+ await usingPlaygrounds(async (helper, privateKeyWrapper) => {
+ if (!getModuleNames(helper.api!).includes(Pallets.AppPromotion)) this.skip();
+ alice = privateKeyWrapper('//Alice');
+ bob = privateKeyWrapper('//Bob');
+ palletAdmin = privateKeyWrapper('//palletAdmin');
+ await helper.balance.transferToSubstrate(alice, palletAdmin.address, 10n * helper.balance.getOneTokenNominal());
+ const tx = helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.setAdminAddress(normalizeAccountId(palletAdmin)));
+
+ await helper.signTransaction(alice, tx);
+
+ nominal = helper.balance.getOneTokenNominal();
+ });
+ });
+
+ it('can be set by sudo only', async () => {
+ // assert: Sudo calls appPromotion.setAdminAddress(Alice) /// Sudo successfully sets Alice as admin
+ // assert: Bob calls appPromotion.setAdminAddress(Bob) throws /// Random account can not set admin
+ // assert: Alice calls appPromotion.setAdminAddress(Bob) throws /// Admin account can not set admin
+ await usingPlaygrounds(async (helper) => {
+ await expect(helper.signTransaction(alice, helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.setAdminAddress(normalizeAccountId(alice))))).to.be.eventually.fulfilled;
+ await expect(helper.signTransaction(bob, helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.setAdminAddress(normalizeAccountId(bob))))).to.be.eventually.rejected;
+ await expect(helper.signTransaction(alice, helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.setAdminAddress(normalizeAccountId(bob))))).to.be.eventually.fulfilled;
+ });
+
+ });
+
+ it('can be any valid CrossAccountId', async () => {
+ /// We are not going to set an eth address as a sponsor,
+ /// but we do want to check, it doesn't break anything;
+
+ // arrange: Charlie creates Punks
+ // arrange: Sudo calls appPromotion.setAdminAddress(0x0...) success
+ // arrange: Sudo calls appPromotion.setAdminAddress(Alice) success
+
+ // assert: Alice calls appPromotion.sponsorCollection(Punks.id) success
+
+ await usingPlaygrounds(async (helper) => {
+
+ const ethAcc = {Ethereum: '0x67fb3503a61b284dc83fa96dceec4192db47dc7c'};
+
+ await expect(helper.signTransaction(alice, helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.setAdminAddress(ethAcc)))).to.be.eventually.fulfilled;
+ await expect(helper.signTransaction(alice, helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.setAdminAddress(normalizeAccountId(palletAdmin))))).to.be.eventually.fulfilled;
+
+ const collection = await helper.nft.mintCollection(alice, {name: 'New', description: 'New Collection', tokenPrefix: 'Promotion'});
+
+ await expect(helper.signTransaction(palletAdmin, helper.api!.tx.promotion.sponsorCollection(collection.collectionId))).to.be.eventually.fulfilled;
+ });
+
+ });
+
+ it('can be reassigned', async () => {
+ // arrange: Charlie creates Punks
+ // arrange: Sudo calls appPromotion.setAdminAddress(Alice)
+ // act: Sudo calls appPromotion.setAdminAddress(Bob)
+
+ // assert: Alice calls appPromotion.sponsorCollection(Punks.id) throws /// Alice can not set collection sponsor
+ // assert: Bob calls appPromotion.sponsorCollection(Punks.id) successful /// Bob can set collection sponsor
+
+ // act: Sudo calls appPromotion.setAdminAddress(null) successful /// Sudo can set null as a sponsor
+ // assert: Bob calls appPromotion.stopSponsoringCollection(Punks.id) throws /// Bob is no longer an admin
+
+ await usingPlaygrounds(async (helper) => {
+ const collection = await helper.nft.mintCollection(alice, {name: 'New', description: 'New Collection', tokenPrefix: 'Promotion'});
+
+ await expect(helper.signTransaction(alice, helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.setAdminAddress(normalizeAccountId(alice))))).to.be.eventually.fulfilled;
+ await expect(helper.signTransaction(alice, helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.setAdminAddress(normalizeAccountId(bob))))).to.be.eventually.fulfilled;
+ await expect(helper.signTransaction(alice, helper.api!.tx.promotion.sponsorCollection(collection.collectionId))).to.be.eventually.rejected;
+
+ await expect(helper.signTransaction(bob, helper.api!.tx.promotion.sponsorCollection(collection.collectionId))).to.be.eventually.fulfilled;
+ });
+
+ });
+
+});
+
+describe('App-promotion collection sponsoring', () => {
+ before(async function () {
+ await usingPlaygrounds(async (helper, privateKeyWrapper) => {
+ if (!getModuleNames(helper.api!).includes(Pallets.AppPromotion)) this.skip();
+ alice = privateKeyWrapper('//Alice');
+ bob = privateKeyWrapper('//Bob');
+ palletAdmin = privateKeyWrapper('//palletAdmin');
+ await helper.balance.transferToSubstrate(alice, palletAdmin.address, 10n * helper.balance.getOneTokenNominal());
+ await helper.balance.transferToSubstrate(alice, calculatePalleteAddress('appstake'), 10n * helper.balance.getOneTokenNominal());
+
+
+ const tx = helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.setAdminAddress(normalizeAccountId(palletAdmin)));
+ await helper.signTransaction(alice, tx);
+
+ // const txStart = helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.startAppPromotion(promotionStartBlock));
+ // await helper.signTransaction(alice, txStart);
+
+ nominal = helper.balance.getOneTokenNominal();
+ });
+ });
+
+ it('can not be set by non admin', async () => {
+
+
+ // arrange: Charlie creates Punks
+ // arrange: Sudo calls appPromotion.setAdminAddress(Alice)
+
+ // assert: Random calls appPromotion.sponsorCollection(Punks.id) throws /// Random account can not set sponsoring
+ // assert: Alice calls appPromotion.sponsorCollection(Punks.id) success /// Admin account can set sponsoring
+
+ await usingPlaygrounds(async (helper) => {
+ const colletcion = await helper.nft.mintCollection(alice, {name: 'New', description: 'New Collection', tokenPrefix: 'Promotion'});
+
+ const collectionId = colletcion.collectionId;
+
+ await expect(helper.signTransaction(bob, helper.api!.tx.promotion.sponsorCollection(collectionId))).to.be.eventually.rejected;
+ await expect(helper.signTransaction(palletAdmin, helper.api!.tx.promotion.sponsorCollection(collectionId))).to.be.eventually.fulfilled;
+ });
+
+ });
+
+ it('will set pallet address as confirmed admin for collection without sponsor', async () => {
+ // arrange: Charlie creates Punks
+
+ // act: Admin calls appPromotion.sponsorCollection(Punks.id)
+
+ // assert: query collectionById: Punks sponsoring is confirmed by PalleteAddress
+
+ await usingPlaygrounds(async (helper) => {
+ const collection = await helper.nft.mintCollection(alice, {name: 'New', description: 'New Collection', tokenPrefix: 'Promotion'});
+ const collectionId = collection.collectionId;
+
+ await expect(helper.signTransaction(palletAdmin, helper.api!.tx.promotion.sponsorCollection(collectionId))).to.be.eventually.fulfilled;
+ expect((await collection.getData())?.raw.sponsorship).to.be.deep.equal({Confirmed: calculatePalleteAddress('appstake')});
+ });
+
+ });
+
+ it('will set pallet address as confirmed admin for collection with unconfirmed sponsor', async () => {
+ // arrange: Charlie creates Punks
+ // arrange: Charlie calls setCollectionSponsor(Punks.Id, Dave) /// Dave is unconfirmed sponsor
+
+ // act: Admin calls appPromotion.sponsorCollection(Punks.id)
+
+ // assert: query collectionById: Punks sponsoring is confirmed by PalleteAddress
+
+ await usingPlaygrounds(async (helper) => {
+ const collection = await helper.nft.mintCollection(alice, {name: 'New', description: 'New Collection', tokenPrefix: 'Promotion'});
+ await collection.setSponsor(alice, bob.address);
+ expect((await collection.getData())?.raw.sponsorship).to.be.deep.equal({Unconfirmed: bob.address});
+
+ const collectionId = collection.collectionId;
+
+ await expect(helper.signTransaction(palletAdmin, helper.api!.tx.promotion.sponsorCollection(collectionId))).to.be.eventually.fulfilled;
+ expect((await collection.getData())?.raw.sponsorship).to.be.deep.equal({Confirmed: calculatePalleteAddress('appstake')});
+ });
+
+ });
+
+ it('will set pallet address as confirmed admin for collection with confirmed sponsor', async () => {
+ // arrange: Charlie creates Punks
+ // arrange: setCollectionSponsor(Punks.Id, Dave)
+ // arrange: confirmSponsorship(Punks.Id, Dave) /// Dave is confirmed sponsor
+
+ // act: Admin calls appPromotion.sponsorCollection(Punks.id)
+
+ // assert: query collectionById: Punks sponsoring is confirmed by PalleteAddress
+
+ await usingPlaygrounds(async (helper) => {
+ const collection = await helper.nft.mintCollection(alice, {name: 'New', description: 'New Collection', tokenPrefix: 'Promotion'});
+ await collection.setSponsor(alice, bob.address);
+
+ expect((await collection.getData())?.raw.sponsorship).to.be.deep.equal({Unconfirmed: bob.address});
+ expect(await collection.confirmSponsorship(bob)).to.be.true;
+
+ const collectionId = collection.collectionId;
+
+ await expect(helper.signTransaction(palletAdmin, helper.api!.tx.promotion.sponsorCollection(collectionId))).to.be.eventually.fulfilled;
+ expect((await collection.getData())?.raw.sponsorship).to.be.deep.equal({Confirmed: calculatePalleteAddress('appstake')});
+ });
+ });
+
+ it('can be overwritten by collection owner', async () => {
+ // arrange: Charlie creates Punks
+ // arrange: appPromotion.sponsorCollection(Punks.Id) /// Sponsor of Punks is pallete
+
+ // act: Charlie calls unique.setCollectionLimits(limits) /// Charlie as owner can successfully change limits
+ // assert: query collectionById(Punks.id) 1. sponsored by pallete, 2. limits has been changed
+
+ // act: Charlie calls setCollectionSponsor(Dave) /// Collection owner reasignes sponsoring
+ // assert: query collectionById: Punks sponsoring is unconfirmed by Dave
+
+ await usingPlaygrounds(async (helper) => {
+ const collection = await helper.nft.mintCollection(alice, {name: 'New', description: 'New Collection', tokenPrefix: 'Promotion'});
+ const collectionId = collection.collectionId;
+
+ await expect(helper.signTransaction(palletAdmin, helper.api!.tx.promotion.sponsorCollection(collectionId))).to.be.eventually.fulfilled;
+ expect((await collection.getData())?.raw.sponsorship).to.be.deep.equal({Confirmed: calculatePalleteAddress('appstake')});
+
+ expect(await collection.setLimits(alice, {sponsorTransferTimeout: 0})).to.be.true;
+ expect((await collection.getData())?.raw.limits.sponsorTransferTimeout).to.be.equal(0);
+
+ expect((await collection.setSponsor(alice, bob.address))).to.be.true;
+ expect((await collection.getData())?.raw.sponsorship).to.be.deep.equal({Unconfirmed: bob.address});
+ });
+
+ });
+
+ it('will keep collection limits set by the owner earlier', async () => {
+ // arrange: const limits = {...all possible collection limits}
+ // arrange: Charlie creates Punks
+ // arrange: Charlie calls unique.setCollectionLimits(limits) /// Owner sets all possible limits
+
+ // act: Admin calls appPromotion.sponsorCollection(Punks.id)
+ // assert: query collectionById(Punks.id) returns limits
+
+ await usingPlaygrounds(async (helper) => {
+
+ const collection = await helper.nft.mintCollection(alice, {name: 'New', description: 'New Collection', tokenPrefix: 'Promotion'});
+ expect(await collection.setLimits(alice, {sponsorTransferTimeout: 0})).to.be.true;
+ const limits = (await collection.getData())?.raw.limits;
+
+ const collectionId = collection.collectionId;
+ await expect(helper.signTransaction(palletAdmin, helper.api!.tx.promotion.sponsorCollection(collectionId))).to.be.eventually.fulfilled;
+ expect((await collection.getData())?.raw.limits).to.be.deep.equal(limits);
+ });
+
+ });
+
+ it('will throw if collection doesn\'t exist', async () => {
+ // assert: Admin calls appPromotion.sponsorCollection(999999999999999) throw
+ await usingPlaygrounds(async (helper) => {
+ await expect(helper.signTransaction(palletAdmin, helper.api!.tx.promotion.sponsorCollection(999999999))).to.be.eventually.rejected;
+ });
+ });
+
+ it('will throw if collection was burnt', async () => {
+ // arrange: Charlie creates Punks
+ // arrange: Charlie burns Punks
+
+ // assert: Admin calls appPromotion.sponsorCollection(Punks.id) throw
+
+ await usingPlaygrounds(async (helper) => {
+ const collection = await helper.nft.mintCollection(alice, {name: 'New', description: 'New Collection', tokenPrefix: 'Promotion'});
+ const collectionId = collection.collectionId;
+
+ expect((await collection.burn(alice))).to.be.true;
+ await expect(helper.signTransaction(palletAdmin, helper.api!.tx.promotion.sponsorCollection(collectionId))).to.be.eventually.rejected;
+ });
+
+ });
+});
+
+
+describe('app-promotion stopSponsoringCollection', () => {
+ before(async function () {
+ await usingPlaygrounds(async (helper, privateKeyWrapper) => {
+ if (!getModuleNames(helper.api!).includes(Pallets.AppPromotion)) this.skip();
+ alice = privateKeyWrapper('//Alice');
+ bob = privateKeyWrapper('//Bob');
+ palletAdmin = privateKeyWrapper('//palletAdmin');
+ await helper.balance.transferToSubstrate(alice, palletAdmin.address, 10n * helper.balance.getOneTokenNominal());
+ await helper.balance.transferToSubstrate(alice, calculatePalleteAddress('appstake'), 10n * helper.balance.getOneTokenNominal());
+
+ const tx = helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.setAdminAddress(normalizeAccountId(palletAdmin)));
+ await helper.signTransaction(alice, tx);
+
+ nominal = helper.balance.getOneTokenNominal();
+ });
+ });
+
+ it('can not be called by non-admin', async () => {
+ // arrange: Alice creates Punks
+ // arrange: appPromotion.sponsorCollection(Punks.Id)
+
+ // assert: Random calls appPromotion.stopSponsoringCollection(Punks) throws
+ // assert: query collectionById(Punks.id): sponsoring confirmed by PalleteAddress
+
+ await usingPlaygrounds(async (helper) => {
+ const collection = await helper.nft.mintCollection(alice, {name: 'New', description: 'New Collection', tokenPrefix: 'Promotion'});
+ const collectionId = collection.collectionId;
+
+ await expect(helper.signTransaction(palletAdmin, helper.api!.tx.promotion.sponsorCollection(collectionId))).to.be.eventually.fulfilled;
+
+ await expect(helper.signTransaction(bob, helper.api!.tx.promotion.stopSponsorignCollection(collectionId))).to.be.eventually.rejected;
+ expect((await collection.getData())?.raw.sponsorship).to.be.deep.equal({Confirmed: calculatePalleteAddress('appstake')});
+ });
+ });
+
+ it('will set sponsoring as disabled', async () => {
+ // arrange: Alice creates Punks
+ // arrange: appPromotion.sponsorCollection(Punks.Id)
+
+ // act: Admin calls appPromotion.stopSponsoringCollection(Punks)
+
+ // assert: query collectionById(Punks.id): sponsoring unconfirmed
+
+ await usingPlaygrounds(async (helper) => {
+ const collection = await helper.nft.mintCollection(alice, {name: 'New', description: 'New Collection', tokenPrefix: 'Promotion'});
+ const collectionId = collection.collectionId;
+
+ await expect(helper.signTransaction(palletAdmin, helper.api!.tx.promotion.sponsorCollection(collectionId))).to.be.eventually.fulfilled;
+ await expect(helper.signTransaction(palletAdmin, helper.api!.tx.promotion.stopSponsorignCollection(collectionId))).to.be.eventually.fulfilled;
+
+ expect((await collection.getData())?.raw.sponsorship).to.be.equal('Disabled');
+ });
+ });
+
+ it('will not affect collection which is not sponsored by pallete', async () => {
+ // arrange: Alice creates Punks
+ // arrange: Alice calls setCollectionSponsoring(Punks)
+ // arrange: Alice calls confirmSponsorship(Punks)
+
+ // act: Admin calls appPromotion.stopSponsoringCollection(A)
+ // assert: query collectionById(Punks): Sponsoring: {Confirmed: Alice} /// Alice still collection owner
+
+ await usingPlaygrounds(async (helper) => {
+ const collection = await helper.nft.mintCollection(alice, {name: 'New', description: 'New Collection', tokenPrefix: 'Promotion'});
+ const collectionId = collection.collectionId;
+ expect(await collection.setSponsor(alice, alice.address)).to.be.true;
+ expect(await collection.confirmSponsorship(alice)).to.be.true;
+
+ await expect(helper.signTransaction(palletAdmin, helper.api!.tx.promotion.stopSponsorignCollection(collectionId))).to.be.eventually.rejected;
+
+ expect((await collection.getData())?.raw.sponsorship).to.be.deep.equal({Confirmed: alice.address});
+ });
+
+ });
+
+ it('will throw if collection does not exist', async () => {
+ // arrange: Alice creates Punks
+ // arrange: Alice burns Punks
+
+ // assert: Admin calls appPromotion.stopSponsoringCollection(Punks.id) throws
+ // assert: Admin calls appPromotion.stopSponsoringCollection(999999999999999) throw
+
+ await usingPlaygrounds(async (helper) => {
+ const collection = await helper.nft.mintCollection(alice, {name: 'New', description: 'New Collection', tokenPrefix: 'Promotion'});
+ const collectionId = collection.collectionId;
+
+ expect((await collection.burn(alice))).to.be.true;
+ await expect(helper.signTransaction(palletAdmin, helper.api!.tx.promotion.stopSponsorignCollection(collectionId))).to.be.eventually.rejected;
+ });
+ });
+});
+
+describe('app-promotion contract sponsoring', () => {
+ it('will set contract sponsoring mode and set palletes address as a sponsor', async () => {
+ // arrange: Alice deploys Flipper
+
+ // act: Admin calls appPromotion.sponsorContract(Flipper.address)
+
+ // assert: contract.sponsoringMode = TODO
+ // assert: contract.sponsor to be PalleteAddress
+ });
+
+ it('will overwrite sponsoring mode and existed sponsor', async () => {
+ // arrange: Alice deploys Flipper
+ // arrange: Alice sets self sponsoring for Flipper
+
+ // act: Admin calls appPromotion.sponsorContract(Flipper.address)
+
+ // assert: contract.sponsoringMode = TODO
+ // assert: contract.sponsor to be PalleteAddress
+ });
+
+ it('can be overwritten by contract owner', async () => {
+ // arrange: Alice deploys Flipper
+ // arrange: Admin calls appPromotion.sponsorContract(Flipper.address)
+
+ // act: Alice sets self sponsoring for Flipper
+
+ // assert: contract.sponsoringMode = Self
+ // assert: contract.sponsor to be contract
+ });
+
+ it('can not be set by non admin', async () => {
+ // arrange: Alice deploys Flipper
+ // arrange: Alice sets self sponsoring for Flipper
+
+ // assert: Random calls appPromotion.sponsorContract(Flipper.address) throws
+ // assert: contract.sponsoringMode = Self
+ // assert: contract.sponsor to be contract
+ });
+
+ it('will return unused gas fee to app-promotion pallete', async () => {
+ // arrange: Alice deploys Flipper
+ // arrange: Admin calls appPromotion.sponsorContract(Flipper.address)
+
+ // assert: Bob calls Flipper - expect balances deposit event do not appears for Bob /// Unused gas fee returns to contract
+ // assert: Bobs balance the same
+ });
+
+ it('will failed for non contract address', async () => {
+ // arrange: web3 creates new address - 0x0
+
+ // assert: Admin calls appPromotion.sponsorContract(0x0) throws
+ // assert: Admin calls appPromotion.sponsorContract(Substrate address) throws
+ });
+
+ it('will actually sponsor transactions', async () => {
+ // TODO test it because this is a new way of contract sponsoring
+ });
+});
+
+describe('app-promotion stopSponsoringContract', () => {
+ before(async function () {
+ await usingPlaygrounds(async (helper, privateKeyWrapper) => {
+ if (!getModuleNames(helper.api!).includes(Pallets.AppPromotion)) this.skip();
+ alice = privateKeyWrapper('//Alice');
+ bob = privateKeyWrapper('//Bob');
+ palletAdmin = privateKeyWrapper('//palletAdmin');
+ await helper.balance.transferToSubstrate(alice, palletAdmin.address, 10n * helper.balance.getOneTokenNominal());
+ await helper.balance.transferToSubstrate(alice, calculatePalleteAddress('appstake'), 10n * helper.balance.getOneTokenNominal());
+
+ const promotionStartBlock = await helper.chain.getLatestBlockNumber();
+ const tx = helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.setAdminAddress(normalizeAccountId(palletAdmin)));
+ await helper.signTransaction(alice, tx);
+
+ const txStart = helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.startAppPromotion(promotionStartBlock));
+ await helper.signTransaction(alice, txStart);
+
+ nominal = helper.balance.getOneTokenNominal();
+ });
+ });
+
+ it('will set contract sponsoring mode as disabled', async () => {
+ // arrange: Alice deploys Flipper
+ // arrange: Admin calls appPromotion.sponsorContract(Flipper.address)
+
+ // act: Admin calls appPromotion.stopSponsoringContract(Flipper.address)
+ // assert: contract sponsoring mode = TODO
+
+ // act: Bob calls Flipper
+
+ // assert: PalleteAddress balance did not change
+ // assert: Bobs balance less than before /// Bob payed some fee
+ });
+
+ it('can not be called by non-admin', async () => {
+ // arrange: Alice deploys Flipper
+ // arrange: Admin calls appPromotion.sponsorContract(Flipper.address)
+
+ // assert: Random calls appPromotion.stopSponsoringContract(Flipper.address) throws
+ // assert: contract sponsor is PallereAddress
+ });
+
+ it('will not affect a contract which is not sponsored by pallete', async () => {
+ // arrange: Alice deploys Flipper
+ // arrange: Alice sets self sponsoring for Flipper
+
+ // act: Admin calls appPromotion.stopSponsoringContract(Flipper.address) throws
+
+ // assert: contract.sponsoringMode = Self
+ // assert: contract.sponsor to be contract
+ });
+
+ it('will failed for non contract address', async () => {
+ // arrange: web3 creates new address - 0x0
+
+ // expect stopSponsoringContract(0x0) throws
+ });
+});
+
+describe('app-promotion rewards', () => {
+ const DAY = 7200n;
+
+
+ before(async function () {
+ await usingPlaygrounds(async (helper, privateKeyWrapper) => {
+ if (!getModuleNames(helper.api!).includes(Pallets.AppPromotion)) this.skip();
+ alice = privateKeyWrapper('//Alice');
+ bob = privateKeyWrapper('//Bob');
+ palletAdmin = privateKeyWrapper('//palletAdmin');
+ if (promotionStartBlock == null) {
+ promotionStartBlock = (await helper.api!.query.parachainSystem.lastRelayChainBlockNumber()).toNumber();
+ }
+ const tx = helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.setAdminAddress(normalizeAccountId(palletAdmin)));
+ await helper.signTransaction(alice, tx);
+
+ const txStart = helper.api!.tx.sudo.sudo(helper.api!.tx.promotion.startAppPromotion(promotionStartBlock!));
+ await helper.signTransaction(alice, txStart);
+
+ nominal = helper.balance.getOneTokenNominal();
+ });
+ });
+
+ it('will credit 0.05% for staking period', async () => {
+ // arrange: bob.stake(10000);
+ // arrange: bob.stake(20000);
+ // arrange: waitForRewards();
+
+ // assert: bob.staked to equal [10005, 20010]
+
+ await usingPlaygrounds(async helper => {
+ const staker = await createUser(50n * nominal);
+ await waitForRecalculationBlock(helper.api!);
+
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.stake(1n * nominal))).to.be.eventually.fulfilled;
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.stake(2n * nominal))).to.be.eventually.fulfilled;
+ await waitForRelayBlock(helper.api!, 36);
+
+
+ expect((await helper.api!.rpc.unique.totalStakedPerBlock(normalizeAccountId(staker)))
+ .map(([_, amount]) => amount.toBigInt()))
+ .to.be.deep.equal([calculateIncome(nominal, 10n), calculateIncome(2n * nominal, 10n)]);
+ });
+
+ });
+
+ it('will not be credited for unstaked (reserved) balance', async () => {
+ // arrange: bob.stake(10000);
+ // arrange: bob.unstake(5000);
+ // arrange: waitForRewards();
+
+ // assert: bob.staked to equal [5002.5]
+ await usingPlaygrounds(async helper => {
+ const staker = await createUser(20n * nominal);
+ await waitForRecalculationBlock(helper.api!);
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.stake(10n * nominal))).to.be.eventually.fulfilled;
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.unstake(5n * nominal))).to.be.eventually.fulfilled;
+ await waitForRelayBlock(helper.api!, 38);
+
+ expect((await helper.api!.rpc.unique.totalStakedPerBlock(normalizeAccountId(staker)))
+ .map(([_, amount]) => amount.toBigInt()))
+ .to.be.deep.equal([calculateIncome(5n * nominal, 10n)]);
+
+ });
+
+ });
+
+ it('will bring compound interest', async () => {
+ // arrange: bob balance = 30000
+ // arrange: bob.stake(10000);
+ // arrange: bob.stake(10000);
+ // arrange: waitForRewards();
+
+ // assert: bob.staked() equal [10005, 10005, 10005] /// 10_000 * 1.0005
+ // act: waitForRewards();
+
+ // assert: bob.staked() equal [10010.0025, 10010.0025, 10010.0025] /// 10_005 * 1.0005
+ // act: bob.unstake(10.0025)
+ // assert: bob.staked() equal [10000, 10010.0025, 10010.0025] /// 10_005 * 1.0005
+
+ // act: waitForRewards();
+ // assert: bob.staked() equal [10005, 10015,00750125, 10015,00750125] ///
+ await usingPlaygrounds(async helper => {
+ const staker = await createUser(40n * nominal);
+
+ await waitForRecalculationBlock(helper.api!);
+ // const foo = await helper.api!.registry.getChainProperties().
+
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.stake(10n * nominal))).to.be.eventually.fulfilled;
+ // await waitNewBlocks(helper.api!, 1);
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.stake(10n * nominal))).to.be.eventually.fulfilled;
+ // await waitNewBlocks(helper.api!, 1);
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.stake(10n * nominal))).to.be.eventually.fulfilled;
+ // console.log(await helper.balance.getSubstrate(staker.address));
+ // await waitNewBlocks(helper.api!, 17);
+ await waitForRelayBlock(helper.api!, 34);
+ expect((await helper.api!.rpc.unique.totalStakedPerBlock(normalizeAccountId(staker)))
+ .map(([_, amount]) => amount.toBigInt()))
+ .to.be.deep.equal([calculateIncome(10n * nominal, 10n), calculateIncome(10n * nominal, 10n), calculateIncome(10n * nominal, 10n)]);
+
+ // console.log(await getBlockNumber(helper.api!));
+ // console.log((await helper.api!.rpc.unique.totalStakedPerBlock(normalizeAccountId(staker))).map(([block, amount]) => [block.toBigInt(), amount.toBigInt()]));
+ // console.log(`${calculateIncome(10n * nominal, 10n)} || ${calculateIncome(10n * nominal, 10n, 2)}`);
+ // await waitNewBlocks(helper.api!, 10);
+ await waitForRelayBlock(helper.api!, 20);
+ // console.log((await helper.api!.rpc.unique.totalStakedPerBlock(normalizeAccountId(staker))).map(([_, amount]) => amount.toBigInt()));
+ // console.log(await helper.balance.getSubstrate(staker.address));
+ await expect(helper.signTransaction(staker, helper.api!.tx.promotion.unstake(calculateIncome(10n * nominal, 10n, 2) - 10n * nominal))).to.be.eventually.fulfilled;
+ // console.log(calculateIncome(10n * nominal, 10n, 2));
+ // console.log(calculateIncome(10n * nominal, 10n, 3));
+ // console.log(calculateIncome(10n * nominal, 10n, 4));
+ // console.log(calculateIncome(10n * nominal, 10n, 5));
+ expect((await helper.api!.rpc.unique.totalStakedPerBlock(normalizeAccountId(staker)))
+ .map(([_, amount]) => amount.toBigInt()))
+ .to.be.deep.equal([10n * nominal, calculateIncome(10n * nominal, 10n, 2), calculateIncome(10n * nominal, 10n, 2)]);
+
+ // console.log((await helper.api!.rpc.unique.totalStakedPerBlock(normalizeAccountId(staker))).map(([_, amount]) => amount.toBigInt()));
+
+ // console.log(await helper.balance.getSubstrate(staker.address));
+ });
+
+ });
+});
+
+
+function waitForRecalculationBlock(api: ApiPromise): Promise<void> {
+ return new Promise<void>(async (resolve, reject) => {
+ const unsubscribe = await api.query.system.events((events) => {
+
+ events.forEach((record) => {
+
+ const {event, phase} = record;
+ const types = event.typeDef;
+
+ if (event.section === 'promotion' && event.method === 'StakingRecalculation') {
+ unsubscribe();
+ resolve();
+ }
+ });
+ });
+ });
+}
+
+async function waitForRelayBlock(api: ApiPromise, blocks = 1): Promise<void> {
+ const current_block = (await api.query.parachainSystem.lastRelayChainBlockNumber()).toNumber();
+ return new Promise<void>(async (resolve, reject) => {
+ const unsubscribe = await api.query.parachainSystem.validationData(async (data) => {
+ // console.log(`${current_block} || ${data.value.relayParentNumber.toNumber()}`);
+ if (data.value.relayParentNumber.toNumber() - current_block >= blocks) {
+ unsubscribe();
+ resolve();
+ }
+ });
+ });
+
+}
+
+
+function calculatePalleteAddress(palletId: any) {
+ const address = stringToU8a(('modl' + palletId).padEnd(32, '\0'));
+ return encodeAddress(address);
+}
+function calculateIncome(base: bigint, calcPeriod: bigint, iter = 0): bigint {
+ const DAY = 7200n;
+ const ACCURACY = 1_000_000_000n;
+ const income = base + base * (ACCURACY * (calcPeriod * 5n) / (10_000n * DAY)) / ACCURACY ;
+
+ if (iter > 1) {
+ return calculateIncome(income, calcPeriod, iter - 1);
+ } else return income;
+}
+
async function createUser(amount?: bigint) {
- return await usingPlaygrounds(async (helper, privateKeyWrapper) => {
- const user: IKeyringPair = privateKeyWrapper(`//Alice+${(new Date()).getTime()}`);
+ return await usingPlaygrounds(async helper => {
+ const user: IKeyringPair = helper.util.fromSeed(mnemonicGenerate());
await helper.balance.transferToSubstrate(alice, user.address, amount ? amount : 10n * helper.balance.getOneTokenNominal());
return user;
});
tests/src/interfaces/augment-api-consts.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-consts.ts
+++ b/tests/src/interfaces/augment-api-consts.ts
@@ -8,7 +8,7 @@
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
import type { Option, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Codec } from '@polkadot/types-codec/types';
-import type { Permill } from '@polkadot/types/interfaces/runtime';
+import type { Perbill, Permill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
@@ -66,6 +66,30 @@
**/
[key: string]: Codec;
};
+ promotion: {
+ /**
+ * In chain blocks.
+ **/
+ day: u32 & AugmentedConst<ApiType>;
+ intervalIncome: Perbill & AugmentedConst<ApiType>;
+ nominal: u128 & AugmentedConst<ApiType>;
+ /**
+ * The app's pallet id, used for deriving its sovereign account ID.
+ **/
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
+ /**
+ * In chain blocks.
+ **/
+ pendingInterval: u32 & AugmentedConst<ApiType>;
+ /**
+ * In relay blocks.
+ **/
+ recalculationInterval: u32 & AugmentedConst<ApiType>;
+ /**
+ * Generic const
+ **/
+ [key: string]: Codec;
+ };
scheduler: {
/**
* The maximum weight that may be scheduled per block for any dispatchables of less
tests/src/interfaces/augment-api-errors.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-errors.ts
+++ b/tests/src/interfaces/augment-api-errors.ts
@@ -425,6 +425,23 @@
**/
[key: string]: AugmentedError<ApiType>;
};
+ promotion: {
+ AdminNotSet: AugmentedError<ApiType>;
+ AlreadySponsored: AugmentedError<ApiType>;
+ InvalidArgument: AugmentedError<ApiType>;
+ /**
+ * No permission to perform action
+ **/
+ NoPermission: AugmentedError<ApiType>;
+ /**
+ * Insufficient funds to perform an action
+ **/
+ NotSufficientFounds: AugmentedError<ApiType>;
+ /**
+ * Generic error
+ **/
+ [key: string]: AugmentedError<ApiType>;
+ };
refungible: {
/**
* Not Refungible item data used to mint in Refungible collection.
tests/src/interfaces/augment-api-events.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-events.ts
+++ b/tests/src/interfaces/augment-api-events.ts
@@ -360,6 +360,13 @@
**/
[key: string]: AugmentedEvent<ApiType>;
};
+ promotion: {
+ StakingRecalculation: AugmentedEvent<ApiType, [u128, u128]>;
+ /**
+ * Generic event
+ **/
+ [key: string]: AugmentedEvent<ApiType>;
+ };
rmrkCore: {
CollectionCreated: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;
CollectionDestroyed: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;
tests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -363,9 +363,11 @@
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
promotion: {
- setAdminAddress: AugmentedSubmittable<(admin: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
+ setAdminAddress: AugmentedSubmittable<(admin: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr]>;
+ sponsorCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
stake: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
- startAppPromotion: AugmentedSubmittable<(promotionStartRelayBlock: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
+ startAppPromotion: AugmentedSubmittable<(promotionStartRelayBlock: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
+ stopSponsorignCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
unstake: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
/**
* Generic tx
tests/src/interfaces/augment-types.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-types.ts
+++ b/tests/src/interfaces/augment-types.ts
@@ -5,7 +5,7 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/types/registry';
-import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletAppPromotionCall, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletConfigurationCall, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletUniqueSchedulerCall, PalletUniqueSchedulerError, PalletUniqueSchedulerEvent, PalletUniqueSchedulerScheduledV3, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExMultipleOwners, UpDataStructsCreateRefungibleExSingleOwner, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsRpcCollection, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, UpDataStructsTokenChild, UpDataStructsTokenData, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './default';
+import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletConfigurationCall, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletUniqueSchedulerCall, PalletUniqueSchedulerError, PalletUniqueSchedulerEvent, PalletUniqueSchedulerScheduledV3, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExMultipleOwners, UpDataStructsCreateRefungibleExSingleOwner, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsRpcCollection, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, UpDataStructsTokenChild, UpDataStructsTokenData, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './default';
import type { Data, StorageKey } from '@polkadot/types';
import type { BitVec, Bool, Bytes, F32, F64, I128, I16, I256, I32, I64, I8, Json, Null, OptionBool, Raw, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, f32, f64, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types-codec';
import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets';
@@ -805,6 +805,8 @@
PageCounter: PageCounter;
PageIndexData: PageIndexData;
PalletAppPromotionCall: PalletAppPromotionCall;
+ PalletAppPromotionError: PalletAppPromotionError;
+ PalletAppPromotionEvent: PalletAppPromotionEvent;
PalletBalancesAccountData: PalletBalancesAccountData;
PalletBalancesBalanceLock: PalletBalancesBalanceLock;
PalletBalancesCall: PalletBalancesCall;
tests/src/interfaces/default/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/default/types.ts
+++ b/tests/src/interfaces/default/types.ts
@@ -810,11 +810,11 @@
export interface PalletAppPromotionCall extends Enum {
readonly isSetAdminAddress: boolean;
readonly asSetAdminAddress: {
- readonly admin: AccountId32;
+ readonly admin: PalletEvmAccountBasicCrossAccountIdRepr;
} & Struct;
readonly isStartAppPromotion: boolean;
readonly asStartAppPromotion: {
- readonly promotionStartRelayBlock: u32;
+ readonly promotionStartRelayBlock: Option<u32>;
} & Struct;
readonly isStake: boolean;
readonly asStake: {
@@ -824,7 +824,32 @@
readonly asUnstake: {
readonly amount: u128;
} & Struct;
- readonly type: 'SetAdminAddress' | 'StartAppPromotion' | 'Stake' | 'Unstake';
+ readonly isSponsorCollection: boolean;
+ readonly asSponsorCollection: {
+ readonly collectionId: u32;
+ } & Struct;
+ readonly isStopSponsorignCollection: boolean;
+ readonly asStopSponsorignCollection: {
+ readonly collectionId: u32;
+ } & Struct;
+ readonly type: 'SetAdminAddress' | 'StartAppPromotion' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsorignCollection';
+}
+
+/** @name PalletAppPromotionError */
+export interface PalletAppPromotionError extends Enum {
+ readonly isAdminNotSet: boolean;
+ readonly isNoPermission: boolean;
+ readonly isNotSufficientFounds: boolean;
+ readonly isInvalidArgument: boolean;
+ readonly isAlreadySponsored: boolean;
+ readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFounds' | 'InvalidArgument' | 'AlreadySponsored';
+}
+
+/** @name PalletAppPromotionEvent */
+export interface PalletAppPromotionEvent extends Enum {
+ readonly isStakingRecalculation: boolean;
+ readonly asStakingRecalculation: ITuple<[u128, u128]>;
+ readonly type: 'StakingRecalculation';
}
/** @name PalletBalancesAccountData */
tests/src/interfaces/lookup.tsdiffbeforeafterboth1// Auto-generated via `yarn polkadot-types-from-defs`, do not edit2/* eslint-disable */34/* eslint-disable sort-keys */56export default {7 /**8 * Lookup3: frame_system::AccountInfo<Index, pallet_balances::AccountData<Balance>>9 **/10 FrameSystemAccountInfo: {11 nonce: 'u32',12 consumers: 'u32',13 providers: 'u32',14 sufficients: 'u32',15 data: 'PalletBalancesAccountData'16 },17 /**18 * Lookup5: pallet_balances::AccountData<Balance>19 **/20 PalletBalancesAccountData: {21 free: 'u128',22 reserved: 'u128',23 miscFrozen: 'u128',24 feeFrozen: 'u128'25 },26 /**27 * Lookup7: frame_support::weights::PerDispatchClass<T>28 **/29 FrameSupportWeightsPerDispatchClassU64: {30 normal: 'u64',31 operational: 'u64',32 mandatory: 'u64'33 },34 /**35 * Lookup11: sp_runtime::generic::digest::Digest36 **/37 SpRuntimeDigest: {38 logs: 'Vec<SpRuntimeDigestDigestItem>'39 },40 /**41 * Lookup13: sp_runtime::generic::digest::DigestItem42 **/43 SpRuntimeDigestDigestItem: {44 _enum: {45 Other: 'Bytes',46 __Unused1: 'Null',47 __Unused2: 'Null',48 __Unused3: 'Null',49 Consensus: '([u8;4],Bytes)',50 Seal: '([u8;4],Bytes)',51 PreRuntime: '([u8;4],Bytes)',52 __Unused7: 'Null',53 RuntimeEnvironmentUpdated: 'Null'54 }55 },56 /**57 * Lookup16: frame_system::EventRecord<opal_runtime::Event, primitive_types::H256>58 **/59 FrameSystemEventRecord: {60 phase: 'FrameSystemPhase',61 event: 'Event',62 topics: 'Vec<H256>'63 },64 /**65 * Lookup18: frame_system::pallet::Event<T>66 **/67 FrameSystemEvent: {68 _enum: {69 ExtrinsicSuccess: {70 dispatchInfo: 'FrameSupportWeightsDispatchInfo',71 },72 ExtrinsicFailed: {73 dispatchError: 'SpRuntimeDispatchError',74 dispatchInfo: 'FrameSupportWeightsDispatchInfo',75 },76 CodeUpdated: 'Null',77 NewAccount: {78 account: 'AccountId32',79 },80 KilledAccount: {81 account: 'AccountId32',82 },83 Remarked: {84 _alias: {85 hash_: 'hash',86 },87 sender: 'AccountId32',88 hash_: 'H256'89 }90 }91 },92 /**93 * Lookup19: frame_support::weights::DispatchInfo94 **/95 FrameSupportWeightsDispatchInfo: {96 weight: 'u64',97 class: 'FrameSupportWeightsDispatchClass',98 paysFee: 'FrameSupportWeightsPays'99 },100 /**101 * Lookup20: frame_support::weights::DispatchClass102 **/103 FrameSupportWeightsDispatchClass: {104 _enum: ['Normal', 'Operational', 'Mandatory']105 },106 /**107 * Lookup21: frame_support::weights::Pays108 **/109 FrameSupportWeightsPays: {110 _enum: ['Yes', 'No']111 },112 /**113 * Lookup22: sp_runtime::DispatchError114 **/115 SpRuntimeDispatchError: {116 _enum: {117 Other: 'Null',118 CannotLookup: 'Null',119 BadOrigin: 'Null',120 Module: 'SpRuntimeModuleError',121 ConsumerRemaining: 'Null',122 NoProviders: 'Null',123 TooManyConsumers: 'Null',124 Token: 'SpRuntimeTokenError',125 Arithmetic: 'SpRuntimeArithmeticError',126 Transactional: 'SpRuntimeTransactionalError'127 }128 },129 /**130 * Lookup23: sp_runtime::ModuleError131 **/132 SpRuntimeModuleError: {133 index: 'u8',134 error: '[u8;4]'135 },136 /**137 * Lookup24: sp_runtime::TokenError138 **/139 SpRuntimeTokenError: {140 _enum: ['NoFunds', 'WouldDie', 'BelowMinimum', 'CannotCreate', 'UnknownAsset', 'Frozen', 'Unsupported']141 },142 /**143 * Lookup25: sp_runtime::ArithmeticError144 **/145 SpRuntimeArithmeticError: {146 _enum: ['Underflow', 'Overflow', 'DivisionByZero']147 },148 /**149 * Lookup26: sp_runtime::TransactionalError150 **/151 SpRuntimeTransactionalError: {152 _enum: ['LimitReached', 'NoLayer']153 },154 /**155 * Lookup27: cumulus_pallet_parachain_system::pallet::Event<T>156 **/157 CumulusPalletParachainSystemEvent: {158 _enum: {159 ValidationFunctionStored: 'Null',160 ValidationFunctionApplied: {161 relayChainBlockNum: 'u32',162 },163 ValidationFunctionDiscarded: 'Null',164 UpgradeAuthorized: {165 codeHash: 'H256',166 },167 DownwardMessagesReceived: {168 count: 'u32',169 },170 DownwardMessagesProcessed: {171 weightUsed: 'u64',172 dmqHead: 'H256'173 }174 }175 },176 /**177 * Lookup28: pallet_balances::pallet::Event<T, I>178 **/179 PalletBalancesEvent: {180 _enum: {181 Endowed: {182 account: 'AccountId32',183 freeBalance: 'u128',184 },185 DustLost: {186 account: 'AccountId32',187 amount: 'u128',188 },189 Transfer: {190 from: 'AccountId32',191 to: 'AccountId32',192 amount: 'u128',193 },194 BalanceSet: {195 who: 'AccountId32',196 free: 'u128',197 reserved: 'u128',198 },199 Reserved: {200 who: 'AccountId32',201 amount: 'u128',202 },203 Unreserved: {204 who: 'AccountId32',205 amount: 'u128',206 },207 ReserveRepatriated: {208 from: 'AccountId32',209 to: 'AccountId32',210 amount: 'u128',211 destinationStatus: 'FrameSupportTokensMiscBalanceStatus',212 },213 Deposit: {214 who: 'AccountId32',215 amount: 'u128',216 },217 Withdraw: {218 who: 'AccountId32',219 amount: 'u128',220 },221 Slashed: {222 who: 'AccountId32',223 amount: 'u128'224 }225 }226 },227 /**228 * Lookup29: frame_support::traits::tokens::misc::BalanceStatus229 **/230 FrameSupportTokensMiscBalanceStatus: {231 _enum: ['Free', 'Reserved']232 },233 /**234 * Lookup30: pallet_transaction_payment::pallet::Event<T>235 **/236 PalletTransactionPaymentEvent: {237 _enum: {238 TransactionFeePaid: {239 who: 'AccountId32',240 actualFee: 'u128',241 tip: 'u128'242 }243 }244 },245 /**246 * Lookup31: pallet_treasury::pallet::Event<T, I>247 **/248 PalletTreasuryEvent: {249 _enum: {250 Proposed: {251 proposalIndex: 'u32',252 },253 Spending: {254 budgetRemaining: 'u128',255 },256 Awarded: {257 proposalIndex: 'u32',258 award: 'u128',259 account: 'AccountId32',260 },261 Rejected: {262 proposalIndex: 'u32',263 slashed: 'u128',264 },265 Burnt: {266 burntFunds: 'u128',267 },268 Rollover: {269 rolloverBalance: 'u128',270 },271 Deposit: {272 value: 'u128',273 },274 SpendApproved: {275 proposalIndex: 'u32',276 amount: 'u128',277 beneficiary: 'AccountId32'278 }279 }280 },281 /**282 * Lookup32: pallet_sudo::pallet::Event<T>283 **/284 PalletSudoEvent: {285 _enum: {286 Sudid: {287 sudoResult: 'Result<Null, SpRuntimeDispatchError>',288 },289 KeyChanged: {290 oldSudoer: 'Option<AccountId32>',291 },292 SudoAsDone: {293 sudoResult: 'Result<Null, SpRuntimeDispatchError>'294 }295 }296 },297 /**298 * Lookup36: orml_vesting::module::Event<T>299 **/300 OrmlVestingModuleEvent: {301 _enum: {302 VestingScheduleAdded: {303 from: 'AccountId32',304 to: 'AccountId32',305 vestingSchedule: 'OrmlVestingVestingSchedule',306 },307 Claimed: {308 who: 'AccountId32',309 amount: 'u128',310 },311 VestingSchedulesUpdated: {312 who: 'AccountId32'313 }314 }315 },316 /**317 * Lookup37: orml_vesting::VestingSchedule<BlockNumber, Balance>318 **/319 OrmlVestingVestingSchedule: {320 start: 'u32',321 period: 'u32',322 periodCount: 'u32',323 perPeriod: 'Compact<u128>'324 },325 /**326 * Lookup39: cumulus_pallet_xcmp_queue::pallet::Event<T>327 **/328 CumulusPalletXcmpQueueEvent: {329 _enum: {330 Success: {331 messageHash: 'Option<H256>',332 weight: 'u64',333 },334 Fail: {335 messageHash: 'Option<H256>',336 error: 'XcmV2TraitsError',337 weight: 'u64',338 },339 BadVersion: {340 messageHash: 'Option<H256>',341 },342 BadFormat: {343 messageHash: 'Option<H256>',344 },345 UpwardMessageSent: {346 messageHash: 'Option<H256>',347 },348 XcmpMessageSent: {349 messageHash: 'Option<H256>',350 },351 OverweightEnqueued: {352 sender: 'u32',353 sentAt: 'u32',354 index: 'u64',355 required: 'u64',356 },357 OverweightServiced: {358 index: 'u64',359 used: 'u64'360 }361 }362 },363 /**364 * Lookup41: xcm::v2::traits::Error365 **/366 XcmV2TraitsError: {367 _enum: {368 Overflow: 'Null',369 Unimplemented: 'Null',370 UntrustedReserveLocation: 'Null',371 UntrustedTeleportLocation: 'Null',372 MultiLocationFull: 'Null',373 MultiLocationNotInvertible: 'Null',374 BadOrigin: 'Null',375 InvalidLocation: 'Null',376 AssetNotFound: 'Null',377 FailedToTransactAsset: 'Null',378 NotWithdrawable: 'Null',379 LocationCannotHold: 'Null',380 ExceedsMaxMessageSize: 'Null',381 DestinationUnsupported: 'Null',382 Transport: 'Null',383 Unroutable: 'Null',384 UnknownClaim: 'Null',385 FailedToDecode: 'Null',386 MaxWeightInvalid: 'Null',387 NotHoldingFees: 'Null',388 TooExpensive: 'Null',389 Trap: 'u64',390 UnhandledXcmVersion: 'Null',391 WeightLimitReached: 'u64',392 Barrier: 'Null',393 WeightNotComputable: 'Null'394 }395 },396 /**397 * Lookup43: pallet_xcm::pallet::Event<T>398 **/399 PalletXcmEvent: {400 _enum: {401 Attempted: 'XcmV2TraitsOutcome',402 Sent: '(XcmV1MultiLocation,XcmV1MultiLocation,XcmV2Xcm)',403 UnexpectedResponse: '(XcmV1MultiLocation,u64)',404 ResponseReady: '(u64,XcmV2Response)',405 Notified: '(u64,u8,u8)',406 NotifyOverweight: '(u64,u8,u8,u64,u64)',407 NotifyDispatchError: '(u64,u8,u8)',408 NotifyDecodeFailed: '(u64,u8,u8)',409 InvalidResponder: '(XcmV1MultiLocation,u64,Option<XcmV1MultiLocation>)',410 InvalidResponderVersion: '(XcmV1MultiLocation,u64)',411 ResponseTaken: 'u64',412 AssetsTrapped: '(H256,XcmV1MultiLocation,XcmVersionedMultiAssets)',413 VersionChangeNotified: '(XcmV1MultiLocation,u32)',414 SupportedVersionChanged: '(XcmV1MultiLocation,u32)',415 NotifyTargetSendFail: '(XcmV1MultiLocation,u64,XcmV2TraitsError)',416 NotifyTargetMigrationFail: '(XcmVersionedMultiLocation,u64)'417 }418 },419 /**420 * Lookup44: xcm::v2::traits::Outcome421 **/422 XcmV2TraitsOutcome: {423 _enum: {424 Complete: 'u64',425 Incomplete: '(u64,XcmV2TraitsError)',426 Error: 'XcmV2TraitsError'427 }428 },429 /**430 * Lookup45: xcm::v1::multilocation::MultiLocation431 **/432 XcmV1MultiLocation: {433 parents: 'u8',434 interior: 'XcmV1MultilocationJunctions'435 },436 /**437 * Lookup46: xcm::v1::multilocation::Junctions438 **/439 XcmV1MultilocationJunctions: {440 _enum: {441 Here: 'Null',442 X1: 'XcmV1Junction',443 X2: '(XcmV1Junction,XcmV1Junction)',444 X3: '(XcmV1Junction,XcmV1Junction,XcmV1Junction)',445 X4: '(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)',446 X5: '(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)',447 X6: '(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)',448 X7: '(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)',449 X8: '(XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction,XcmV1Junction)'450 }451 },452 /**453 * Lookup47: xcm::v1::junction::Junction454 **/455 XcmV1Junction: {456 _enum: {457 Parachain: 'Compact<u32>',458 AccountId32: {459 network: 'XcmV0JunctionNetworkId',460 id: '[u8;32]',461 },462 AccountIndex64: {463 network: 'XcmV0JunctionNetworkId',464 index: 'Compact<u64>',465 },466 AccountKey20: {467 network: 'XcmV0JunctionNetworkId',468 key: '[u8;20]',469 },470 PalletInstance: 'u8',471 GeneralIndex: 'Compact<u128>',472 GeneralKey: 'Bytes',473 OnlyChild: 'Null',474 Plurality: {475 id: 'XcmV0JunctionBodyId',476 part: 'XcmV0JunctionBodyPart'477 }478 }479 },480 /**481 * Lookup49: xcm::v0::junction::NetworkId482 **/483 XcmV0JunctionNetworkId: {484 _enum: {485 Any: 'Null',486 Named: 'Bytes',487 Polkadot: 'Null',488 Kusama: 'Null'489 }490 },491 /**492 * Lookup53: xcm::v0::junction::BodyId493 **/494 XcmV0JunctionBodyId: {495 _enum: {496 Unit: 'Null',497 Named: 'Bytes',498 Index: 'Compact<u32>',499 Executive: 'Null',500 Technical: 'Null',501 Legislative: 'Null',502 Judicial: 'Null'503 }504 },505 /**506 * Lookup54: xcm::v0::junction::BodyPart507 **/508 XcmV0JunctionBodyPart: {509 _enum: {510 Voice: 'Null',511 Members: {512 count: 'Compact<u32>',513 },514 Fraction: {515 nom: 'Compact<u32>',516 denom: 'Compact<u32>',517 },518 AtLeastProportion: {519 nom: 'Compact<u32>',520 denom: 'Compact<u32>',521 },522 MoreThanProportion: {523 nom: 'Compact<u32>',524 denom: 'Compact<u32>'525 }526 }527 },528 /**529 * Lookup55: xcm::v2::Xcm<Call>530 **/531 XcmV2Xcm: 'Vec<XcmV2Instruction>',532 /**533 * Lookup57: xcm::v2::Instruction<Call>534 **/535 XcmV2Instruction: {536 _enum: {537 WithdrawAsset: 'XcmV1MultiassetMultiAssets',538 ReserveAssetDeposited: 'XcmV1MultiassetMultiAssets',539 ReceiveTeleportedAsset: 'XcmV1MultiassetMultiAssets',540 QueryResponse: {541 queryId: 'Compact<u64>',542 response: 'XcmV2Response',543 maxWeight: 'Compact<u64>',544 },545 TransferAsset: {546 assets: 'XcmV1MultiassetMultiAssets',547 beneficiary: 'XcmV1MultiLocation',548 },549 TransferReserveAsset: {550 assets: 'XcmV1MultiassetMultiAssets',551 dest: 'XcmV1MultiLocation',552 xcm: 'XcmV2Xcm',553 },554 Transact: {555 originType: 'XcmV0OriginKind',556 requireWeightAtMost: 'Compact<u64>',557 call: 'XcmDoubleEncoded',558 },559 HrmpNewChannelOpenRequest: {560 sender: 'Compact<u32>',561 maxMessageSize: 'Compact<u32>',562 maxCapacity: 'Compact<u32>',563 },564 HrmpChannelAccepted: {565 recipient: 'Compact<u32>',566 },567 HrmpChannelClosing: {568 initiator: 'Compact<u32>',569 sender: 'Compact<u32>',570 recipient: 'Compact<u32>',571 },572 ClearOrigin: 'Null',573 DescendOrigin: 'XcmV1MultilocationJunctions',574 ReportError: {575 queryId: 'Compact<u64>',576 dest: 'XcmV1MultiLocation',577 maxResponseWeight: 'Compact<u64>',578 },579 DepositAsset: {580 assets: 'XcmV1MultiassetMultiAssetFilter',581 maxAssets: 'Compact<u32>',582 beneficiary: 'XcmV1MultiLocation',583 },584 DepositReserveAsset: {585 assets: 'XcmV1MultiassetMultiAssetFilter',586 maxAssets: 'Compact<u32>',587 dest: 'XcmV1MultiLocation',588 xcm: 'XcmV2Xcm',589 },590 ExchangeAsset: {591 give: 'XcmV1MultiassetMultiAssetFilter',592 receive: 'XcmV1MultiassetMultiAssets',593 },594 InitiateReserveWithdraw: {595 assets: 'XcmV1MultiassetMultiAssetFilter',596 reserve: 'XcmV1MultiLocation',597 xcm: 'XcmV2Xcm',598 },599 InitiateTeleport: {600 assets: 'XcmV1MultiassetMultiAssetFilter',601 dest: 'XcmV1MultiLocation',602 xcm: 'XcmV2Xcm',603 },604 QueryHolding: {605 queryId: 'Compact<u64>',606 dest: 'XcmV1MultiLocation',607 assets: 'XcmV1MultiassetMultiAssetFilter',608 maxResponseWeight: 'Compact<u64>',609 },610 BuyExecution: {611 fees: 'XcmV1MultiAsset',612 weightLimit: 'XcmV2WeightLimit',613 },614 RefundSurplus: 'Null',615 SetErrorHandler: 'XcmV2Xcm',616 SetAppendix: 'XcmV2Xcm',617 ClearError: 'Null',618 ClaimAsset: {619 assets: 'XcmV1MultiassetMultiAssets',620 ticket: 'XcmV1MultiLocation',621 },622 Trap: 'Compact<u64>',623 SubscribeVersion: {624 queryId: 'Compact<u64>',625 maxResponseWeight: 'Compact<u64>',626 },627 UnsubscribeVersion: 'Null'628 }629 },630 /**631 * Lookup58: xcm::v1::multiasset::MultiAssets632 **/633 XcmV1MultiassetMultiAssets: 'Vec<XcmV1MultiAsset>',634 /**635 * Lookup60: xcm::v1::multiasset::MultiAsset636 **/637 XcmV1MultiAsset: {638 id: 'XcmV1MultiassetAssetId',639 fun: 'XcmV1MultiassetFungibility'640 },641 /**642 * Lookup61: xcm::v1::multiasset::AssetId643 **/644 XcmV1MultiassetAssetId: {645 _enum: {646 Concrete: 'XcmV1MultiLocation',647 Abstract: 'Bytes'648 }649 },650 /**651 * Lookup62: xcm::v1::multiasset::Fungibility652 **/653 XcmV1MultiassetFungibility: {654 _enum: {655 Fungible: 'Compact<u128>',656 NonFungible: 'XcmV1MultiassetAssetInstance'657 }658 },659 /**660 * Lookup63: xcm::v1::multiasset::AssetInstance661 **/662 XcmV1MultiassetAssetInstance: {663 _enum: {664 Undefined: 'Null',665 Index: 'Compact<u128>',666 Array4: '[u8;4]',667 Array8: '[u8;8]',668 Array16: '[u8;16]',669 Array32: '[u8;32]',670 Blob: 'Bytes'671 }672 },673 /**674 * Lookup66: xcm::v2::Response675 **/676 XcmV2Response: {677 _enum: {678 Null: 'Null',679 Assets: 'XcmV1MultiassetMultiAssets',680 ExecutionResult: 'Option<(u32,XcmV2TraitsError)>',681 Version: 'u32'682 }683 },684 /**685 * Lookup69: xcm::v0::OriginKind686 **/687 XcmV0OriginKind: {688 _enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']689 },690 /**691 * Lookup70: xcm::double_encoded::DoubleEncoded<T>692 **/693 XcmDoubleEncoded: {694 encoded: 'Bytes'695 },696 /**697 * Lookup71: xcm::v1::multiasset::MultiAssetFilter698 **/699 XcmV1MultiassetMultiAssetFilter: {700 _enum: {701 Definite: 'XcmV1MultiassetMultiAssets',702 Wild: 'XcmV1MultiassetWildMultiAsset'703 }704 },705 /**706 * Lookup72: xcm::v1::multiasset::WildMultiAsset707 **/708 XcmV1MultiassetWildMultiAsset: {709 _enum: {710 All: 'Null',711 AllOf: {712 id: 'XcmV1MultiassetAssetId',713 fun: 'XcmV1MultiassetWildFungibility'714 }715 }716 },717 /**718 * Lookup73: xcm::v1::multiasset::WildFungibility719 **/720 XcmV1MultiassetWildFungibility: {721 _enum: ['Fungible', 'NonFungible']722 },723 /**724 * Lookup74: xcm::v2::WeightLimit725 **/726 XcmV2WeightLimit: {727 _enum: {728 Unlimited: 'Null',729 Limited: 'Compact<u64>'730 }731 },732 /**733 * Lookup76: xcm::VersionedMultiAssets734 **/735 XcmVersionedMultiAssets: {736 _enum: {737 V0: 'Vec<XcmV0MultiAsset>',738 V1: 'XcmV1MultiassetMultiAssets'739 }740 },741 /**742 * Lookup78: xcm::v0::multi_asset::MultiAsset743 **/744 XcmV0MultiAsset: {745 _enum: {746 None: 'Null',747 All: 'Null',748 AllFungible: 'Null',749 AllNonFungible: 'Null',750 AllAbstractFungible: {751 id: 'Bytes',752 },753 AllAbstractNonFungible: {754 class: 'Bytes',755 },756 AllConcreteFungible: {757 id: 'XcmV0MultiLocation',758 },759 AllConcreteNonFungible: {760 class: 'XcmV0MultiLocation',761 },762 AbstractFungible: {763 id: 'Bytes',764 amount: 'Compact<u128>',765 },766 AbstractNonFungible: {767 class: 'Bytes',768 instance: 'XcmV1MultiassetAssetInstance',769 },770 ConcreteFungible: {771 id: 'XcmV0MultiLocation',772 amount: 'Compact<u128>',773 },774 ConcreteNonFungible: {775 class: 'XcmV0MultiLocation',776 instance: 'XcmV1MultiassetAssetInstance'777 }778 }779 },780 /**781 * Lookup79: xcm::v0::multi_location::MultiLocation782 **/783 XcmV0MultiLocation: {784 _enum: {785 Null: 'Null',786 X1: 'XcmV0Junction',787 X2: '(XcmV0Junction,XcmV0Junction)',788 X3: '(XcmV0Junction,XcmV0Junction,XcmV0Junction)',789 X4: '(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)',790 X5: '(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)',791 X6: '(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)',792 X7: '(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)',793 X8: '(XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction,XcmV0Junction)'794 }795 },796 /**797 * Lookup80: xcm::v0::junction::Junction798 **/799 XcmV0Junction: {800 _enum: {801 Parent: 'Null',802 Parachain: 'Compact<u32>',803 AccountId32: {804 network: 'XcmV0JunctionNetworkId',805 id: '[u8;32]',806 },807 AccountIndex64: {808 network: 'XcmV0JunctionNetworkId',809 index: 'Compact<u64>',810 },811 AccountKey20: {812 network: 'XcmV0JunctionNetworkId',813 key: '[u8;20]',814 },815 PalletInstance: 'u8',816 GeneralIndex: 'Compact<u128>',817 GeneralKey: 'Bytes',818 OnlyChild: 'Null',819 Plurality: {820 id: 'XcmV0JunctionBodyId',821 part: 'XcmV0JunctionBodyPart'822 }823 }824 },825 /**826 * Lookup81: xcm::VersionedMultiLocation827 **/828 XcmVersionedMultiLocation: {829 _enum: {830 V0: 'XcmV0MultiLocation',831 V1: 'XcmV1MultiLocation'832 }833 },834 /**835 * Lookup82: cumulus_pallet_xcm::pallet::Event<T>836 **/837 CumulusPalletXcmEvent: {838 _enum: {839 InvalidFormat: '[u8;8]',840 UnsupportedVersion: '[u8;8]',841 ExecutedDownward: '([u8;8],XcmV2TraitsOutcome)'842 }843 },844 /**845 * Lookup83: cumulus_pallet_dmp_queue::pallet::Event<T>846 **/847 CumulusPalletDmpQueueEvent: {848 _enum: {849 InvalidFormat: {850 messageId: '[u8;32]',851 },852 UnsupportedVersion: {853 messageId: '[u8;32]',854 },855 ExecutedDownward: {856 messageId: '[u8;32]',857 outcome: 'XcmV2TraitsOutcome',858 },859 WeightExhausted: {860 messageId: '[u8;32]',861 remainingWeight: 'u64',862 requiredWeight: 'u64',863 },864 OverweightEnqueued: {865 messageId: '[u8;32]',866 overweightIndex: 'u64',867 requiredWeight: 'u64',868 },869 OverweightServiced: {870 overweightIndex: 'u64',871 weightUsed: 'u64'872 }873 }874 },875 /**876 * Lookup84: pallet_unique::RawEvent<sp_core::crypto::AccountId32, pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>877 **/878 PalletUniqueRawEvent: {879 _enum: {880 CollectionSponsorRemoved: 'u32',881 CollectionAdminAdded: '(u32,PalletEvmAccountBasicCrossAccountIdRepr)',882 CollectionOwnedChanged: '(u32,AccountId32)',883 CollectionSponsorSet: '(u32,AccountId32)',884 SponsorshipConfirmed: '(u32,AccountId32)',885 CollectionAdminRemoved: '(u32,PalletEvmAccountBasicCrossAccountIdRepr)',886 AllowListAddressRemoved: '(u32,PalletEvmAccountBasicCrossAccountIdRepr)',887 AllowListAddressAdded: '(u32,PalletEvmAccountBasicCrossAccountIdRepr)',888 CollectionLimitSet: 'u32',889 CollectionPermissionSet: 'u32'890 }891 },892 /**893 * Lookup85: pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>894 **/895 PalletEvmAccountBasicCrossAccountIdRepr: {896 _enum: {897 Substrate: 'AccountId32',898 Ethereum: 'H160'899 }900 },901 /**902 * Lookup88: pallet_unique_scheduler::pallet::Event<T>903 **/904 PalletUniqueSchedulerEvent: {905 _enum: {906 Scheduled: {907 when: 'u32',908 index: 'u32',909 },910 Canceled: {911 when: 'u32',912 index: 'u32',913 },914 Dispatched: {915 task: '(u32,u32)',916 id: 'Option<[u8;16]>',917 result: 'Result<Null, SpRuntimeDispatchError>',918 },919 CallLookupFailed: {920 task: '(u32,u32)',921 id: 'Option<[u8;16]>',922 error: 'FrameSupportScheduleLookupError'923 }924 }925 },926 /**927 * Lookup91: frame_support::traits::schedule::LookupError928 **/929 FrameSupportScheduleLookupError: {930 _enum: ['Unknown', 'BadFormat']931 },932 /**933 * Lookup92: pallet_common::pallet::Event<T>934 **/935 PalletCommonEvent: {936 _enum: {937 CollectionCreated: '(u32,u8,AccountId32)',938 CollectionDestroyed: 'u32',939 ItemCreated: '(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,u128)',940 ItemDestroyed: '(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,u128)',941 Transfer: '(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,PalletEvmAccountBasicCrossAccountIdRepr,u128)',942 Approved: '(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,PalletEvmAccountBasicCrossAccountIdRepr,u128)',943 CollectionPropertySet: '(u32,Bytes)',944 CollectionPropertyDeleted: '(u32,Bytes)',945 TokenPropertySet: '(u32,u32,Bytes)',946 TokenPropertyDeleted: '(u32,u32,Bytes)',947 PropertyPermissionSet: '(u32,Bytes)'948 }949 },950 /**951 * Lookup95: pallet_structure::pallet::Event<T>952 **/953 PalletStructureEvent: {954 _enum: {955 Executed: 'Result<Null, SpRuntimeDispatchError>'956 }957 },958 /**959 * Lookup96: pallet_rmrk_core::pallet::Event<T>960 **/961 PalletRmrkCoreEvent: {962 _enum: {963 CollectionCreated: {964 issuer: 'AccountId32',965 collectionId: 'u32',966 },967 CollectionDestroyed: {968 issuer: 'AccountId32',969 collectionId: 'u32',970 },971 IssuerChanged: {972 oldIssuer: 'AccountId32',973 newIssuer: 'AccountId32',974 collectionId: 'u32',975 },976 CollectionLocked: {977 issuer: 'AccountId32',978 collectionId: 'u32',979 },980 NftMinted: {981 owner: 'AccountId32',982 collectionId: 'u32',983 nftId: 'u32',984 },985 NFTBurned: {986 owner: 'AccountId32',987 nftId: 'u32',988 },989 NFTSent: {990 sender: 'AccountId32',991 recipient: 'RmrkTraitsNftAccountIdOrCollectionNftTuple',992 collectionId: 'u32',993 nftId: 'u32',994 approvalRequired: 'bool',995 },996 NFTAccepted: {997 sender: 'AccountId32',998 recipient: 'RmrkTraitsNftAccountIdOrCollectionNftTuple',999 collectionId: 'u32',1000 nftId: 'u32',1001 },1002 NFTRejected: {1003 sender: 'AccountId32',1004 collectionId: 'u32',1005 nftId: 'u32',1006 },1007 PropertySet: {1008 collectionId: 'u32',1009 maybeNftId: 'Option<u32>',1010 key: 'Bytes',1011 value: 'Bytes',1012 },1013 ResourceAdded: {1014 nftId: 'u32',1015 resourceId: 'u32',1016 },1017 ResourceRemoval: {1018 nftId: 'u32',1019 resourceId: 'u32',1020 },1021 ResourceAccepted: {1022 nftId: 'u32',1023 resourceId: 'u32',1024 },1025 ResourceRemovalAccepted: {1026 nftId: 'u32',1027 resourceId: 'u32',1028 },1029 PrioritySet: {1030 collectionId: 'u32',1031 nftId: 'u32'1032 }1033 }1034 },1035 /**1036 * Lookup97: rmrk_traits::nft::AccountIdOrCollectionNftTuple<sp_core::crypto::AccountId32>1037 **/1038 RmrkTraitsNftAccountIdOrCollectionNftTuple: {1039 _enum: {1040 AccountId: 'AccountId32',1041 CollectionAndNftTuple: '(u32,u32)'1042 }1043 },1044 /**1045 * Lookup102: pallet_rmrk_equip::pallet::Event<T>1046 **/1047 PalletRmrkEquipEvent: {1048 _enum: {1049 BaseCreated: {1050 issuer: 'AccountId32',1051 baseId: 'u32',1052 },1053 EquippablesUpdated: {1054 baseId: 'u32',1055 slotId: 'u32'1056 }1057 }1058 },1059 /**1060 * Lookup103: pallet_evm::pallet::Event<T>1061 **/1062 PalletEvmEvent: {1063 _enum: {1064 Log: 'EthereumLog',1065 Created: 'H160',1066 CreatedFailed: 'H160',1067 Executed: 'H160',1068 ExecutedFailed: 'H160',1069 BalanceDeposit: '(AccountId32,H160,U256)',1070 BalanceWithdraw: '(AccountId32,H160,U256)'1071 }1072 },1073 /**1074 * Lookup104: ethereum::log::Log1075 **/1076 EthereumLog: {1077 address: 'H160',1078 topics: 'Vec<H256>',1079 data: 'Bytes'1080 },1081 /**1082 * Lookup108: pallet_ethereum::pallet::Event1083 **/1084 PalletEthereumEvent: {1085 _enum: {1086 Executed: '(H160,H160,H256,EvmCoreErrorExitReason)'1087 }1088 },1089 /**1090 * Lookup109: evm_core::error::ExitReason1091 **/1092 EvmCoreErrorExitReason: {1093 _enum: {1094 Succeed: 'EvmCoreErrorExitSucceed',1095 Error: 'EvmCoreErrorExitError',1096 Revert: 'EvmCoreErrorExitRevert',1097 Fatal: 'EvmCoreErrorExitFatal'1098 }1099 },1100 /**1101 * Lookup110: evm_core::error::ExitSucceed1102 **/1103 EvmCoreErrorExitSucceed: {1104 _enum: ['Stopped', 'Returned', 'Suicided']1105 },1106 /**1107 * Lookup111: evm_core::error::ExitError1108 **/1109 EvmCoreErrorExitError: {1110 _enum: {1111 StackUnderflow: 'Null',1112 StackOverflow: 'Null',1113 InvalidJump: 'Null',1114 InvalidRange: 'Null',1115 DesignatedInvalid: 'Null',1116 CallTooDeep: 'Null',1117 CreateCollision: 'Null',1118 CreateContractLimit: 'Null',1119 OutOfOffset: 'Null',1120 OutOfGas: 'Null',1121 OutOfFund: 'Null',1122 PCUnderflow: 'Null',1123 CreateEmpty: 'Null',1124 Other: 'Text',1125 InvalidCode: 'Null'1126 }1127 },1128 /**1129 * Lookup114: evm_core::error::ExitRevert1130 **/1131 EvmCoreErrorExitRevert: {1132 _enum: ['Reverted']1133 },1134 /**1135 * Lookup115: evm_core::error::ExitFatal1136 **/1137 EvmCoreErrorExitFatal: {1138 _enum: {1139 NotSupported: 'Null',1140 UnhandledInterrupt: 'Null',1141 CallErrorAsFatal: 'EvmCoreErrorExitError',1142 Other: 'Text'1143 }1144 },1145 /**1146 * Lookup116: frame_system::Phase1147 **/1148 FrameSystemPhase: {1149 _enum: {1150 ApplyExtrinsic: 'u32',1151 Finalization: 'Null',1152 Initialization: 'Null'1153 }1154 },1155 /**1156 * Lookup118: frame_system::LastRuntimeUpgradeInfo1157 **/1158 FrameSystemLastRuntimeUpgradeInfo: {1159 specVersion: 'Compact<u32>',1160 specName: 'Text'1161 },1162 /**1163 * Lookup119: frame_system::pallet::Call<T>1164 **/1165 FrameSystemCall: {1166 _enum: {1167 fill_block: {1168 ratio: 'Perbill',1169 },1170 remark: {1171 remark: 'Bytes',1172 },1173 set_heap_pages: {1174 pages: 'u64',1175 },1176 set_code: {1177 code: 'Bytes',1178 },1179 set_code_without_checks: {1180 code: 'Bytes',1181 },1182 set_storage: {1183 items: 'Vec<(Bytes,Bytes)>',1184 },1185 kill_storage: {1186 _alias: {1187 keys_: 'keys',1188 },1189 keys_: 'Vec<Bytes>',1190 },1191 kill_prefix: {1192 prefix: 'Bytes',1193 subkeys: 'u32',1194 },1195 remark_with_event: {1196 remark: 'Bytes'1197 }1198 }1199 },1200 /**1201 * Lookup124: frame_system::limits::BlockWeights1202 **/1203 FrameSystemLimitsBlockWeights: {1204 baseBlock: 'u64',1205 maxBlock: 'u64',1206 perClass: 'FrameSupportWeightsPerDispatchClassWeightsPerClass'1207 },1208 /**1209 * Lookup125: frame_support::weights::PerDispatchClass<frame_system::limits::WeightsPerClass>1210 **/1211 FrameSupportWeightsPerDispatchClassWeightsPerClass: {1212 normal: 'FrameSystemLimitsWeightsPerClass',1213 operational: 'FrameSystemLimitsWeightsPerClass',1214 mandatory: 'FrameSystemLimitsWeightsPerClass'1215 },1216 /**1217 * Lookup126: frame_system::limits::WeightsPerClass1218 **/1219 FrameSystemLimitsWeightsPerClass: {1220 baseExtrinsic: 'u64',1221 maxExtrinsic: 'Option<u64>',1222 maxTotal: 'Option<u64>',1223 reserved: 'Option<u64>'1224 },1225 /**1226 * Lookup128: frame_system::limits::BlockLength1227 **/1228 FrameSystemLimitsBlockLength: {1229 max: 'FrameSupportWeightsPerDispatchClassU32'1230 },1231 /**1232 * Lookup129: frame_support::weights::PerDispatchClass<T>1233 **/1234 FrameSupportWeightsPerDispatchClassU32: {1235 normal: 'u32',1236 operational: 'u32',1237 mandatory: 'u32'1238 },1239 /**1240 * Lookup130: frame_support::weights::RuntimeDbWeight1241 **/1242 FrameSupportWeightsRuntimeDbWeight: {1243 read: 'u64',1244 write: 'u64'1245 },1246 /**1247 * Lookup131: sp_version::RuntimeVersion1248 **/1249 SpVersionRuntimeVersion: {1250 specName: 'Text',1251 implName: 'Text',1252 authoringVersion: 'u32',1253 specVersion: 'u32',1254 implVersion: 'u32',1255 apis: 'Vec<([u8;8],u32)>',1256 transactionVersion: 'u32',1257 stateVersion: 'u8'1258 },1259 /**1260 * Lookup136: frame_system::pallet::Error<T>1261 **/1262 FrameSystemError: {1263 _enum: ['InvalidSpecName', 'SpecVersionNeedsToIncrease', 'FailedToExtractRuntimeVersion', 'NonDefaultComposite', 'NonZeroRefCount', 'CallFiltered']1264 },1265 /**1266 * Lookup137: polkadot_primitives::v2::PersistedValidationData<primitive_types::H256, N>1267 **/1268 PolkadotPrimitivesV2PersistedValidationData: {1269 parentHead: 'Bytes',1270 relayParentNumber: 'u32',1271 relayParentStorageRoot: 'H256',1272 maxPovSize: 'u32'1273 },1274 /**1275 * Lookup140: polkadot_primitives::v2::UpgradeRestriction1276 **/1277 PolkadotPrimitivesV2UpgradeRestriction: {1278 _enum: ['Present']1279 },1280 /**1281 * Lookup141: sp_trie::storage_proof::StorageProof1282 **/1283 SpTrieStorageProof: {1284 trieNodes: 'BTreeSet<Bytes>'1285 },1286 /**1287 * Lookup143: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot1288 **/1289 CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: {1290 dmqMqcHead: 'H256',1291 relayDispatchQueueSize: '(u32,u32)',1292 ingressChannels: 'Vec<(u32,PolkadotPrimitivesV2AbridgedHrmpChannel)>',1293 egressChannels: 'Vec<(u32,PolkadotPrimitivesV2AbridgedHrmpChannel)>'1294 },1295 /**1296 * Lookup146: polkadot_primitives::v2::AbridgedHrmpChannel1297 **/1298 PolkadotPrimitivesV2AbridgedHrmpChannel: {1299 maxCapacity: 'u32',1300 maxTotalSize: 'u32',1301 maxMessageSize: 'u32',1302 msgCount: 'u32',1303 totalSize: 'u32',1304 mqcHead: 'Option<H256>'1305 },1306 /**1307 * Lookup147: polkadot_primitives::v2::AbridgedHostConfiguration1308 **/1309 PolkadotPrimitivesV2AbridgedHostConfiguration: {1310 maxCodeSize: 'u32',1311 maxHeadDataSize: 'u32',1312 maxUpwardQueueCount: 'u32',1313 maxUpwardQueueSize: 'u32',1314 maxUpwardMessageSize: 'u32',1315 maxUpwardMessageNumPerCandidate: 'u32',1316 hrmpMaxMessageNumPerCandidate: 'u32',1317 validationUpgradeCooldown: 'u32',1318 validationUpgradeDelay: 'u32'1319 },1320 /**1321 * Lookup153: polkadot_core_primitives::OutboundHrmpMessage<polkadot_parachain::primitives::Id>1322 **/1323 PolkadotCorePrimitivesOutboundHrmpMessage: {1324 recipient: 'u32',1325 data: 'Bytes'1326 },1327 /**1328 * Lookup154: cumulus_pallet_parachain_system::pallet::Call<T>1329 **/1330 CumulusPalletParachainSystemCall: {1331 _enum: {1332 set_validation_data: {1333 data: 'CumulusPrimitivesParachainInherentParachainInherentData',1334 },1335 sudo_send_upward_message: {1336 message: 'Bytes',1337 },1338 authorize_upgrade: {1339 codeHash: 'H256',1340 },1341 enact_authorized_upgrade: {1342 code: 'Bytes'1343 }1344 }1345 },1346 /**1347 * Lookup155: cumulus_primitives_parachain_inherent::ParachainInherentData1348 **/1349 CumulusPrimitivesParachainInherentParachainInherentData: {1350 validationData: 'PolkadotPrimitivesV2PersistedValidationData',1351 relayChainState: 'SpTrieStorageProof',1352 downwardMessages: 'Vec<PolkadotCorePrimitivesInboundDownwardMessage>',1353 horizontalMessages: 'BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>'1354 },1355 /**1356 * Lookup157: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>1357 **/1358 PolkadotCorePrimitivesInboundDownwardMessage: {1359 sentAt: 'u32',1360 msg: 'Bytes'1361 },1362 /**1363 * Lookup160: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>1364 **/1365 PolkadotCorePrimitivesInboundHrmpMessage: {1366 sentAt: 'u32',1367 data: 'Bytes'1368 },1369 /**1370 * Lookup163: cumulus_pallet_parachain_system::pallet::Error<T>1371 **/1372 CumulusPalletParachainSystemError: {1373 _enum: ['OverlappingUpgrades', 'ProhibitedByPolkadot', 'TooBig', 'ValidationDataNotAvailable', 'HostConfigurationNotAvailable', 'NotScheduled', 'NothingAuthorized', 'Unauthorized']1374 },1375 /**1376 * Lookup165: pallet_balances::BalanceLock<Balance>1377 **/1378 PalletBalancesBalanceLock: {1379 id: '[u8;8]',1380 amount: 'u128',1381 reasons: 'PalletBalancesReasons'1382 },1383 /**1384 * Lookup166: pallet_balances::Reasons1385 **/1386 PalletBalancesReasons: {1387 _enum: ['Fee', 'Misc', 'All']1388 },1389 /**1390 * Lookup169: pallet_balances::ReserveData<ReserveIdentifier, Balance>1391 **/1392 PalletBalancesReserveData: {1393 id: '[u8;16]',1394 amount: 'u128'1395 },1396 /**1397 * Lookup171: pallet_balances::Releases1398 **/1399 PalletBalancesReleases: {1400 _enum: ['V1_0_0', 'V2_0_0']1401 },1402 /**1403 * Lookup172: pallet_balances::pallet::Call<T, I>1404 **/1405 PalletBalancesCall: {1406 _enum: {1407 transfer: {1408 dest: 'MultiAddress',1409 value: 'Compact<u128>',1410 },1411 set_balance: {1412 who: 'MultiAddress',1413 newFree: 'Compact<u128>',1414 newReserved: 'Compact<u128>',1415 },1416 force_transfer: {1417 source: 'MultiAddress',1418 dest: 'MultiAddress',1419 value: 'Compact<u128>',1420 },1421 transfer_keep_alive: {1422 dest: 'MultiAddress',1423 value: 'Compact<u128>',1424 },1425 transfer_all: {1426 dest: 'MultiAddress',1427 keepAlive: 'bool',1428 },1429 force_unreserve: {1430 who: 'MultiAddress',1431 amount: 'u128'1432 }1433 }1434 },1435 /**1436 * Lookup175: pallet_balances::pallet::Error<T, I>1437 **/1438 PalletBalancesError: {1439 _enum: ['VestingBalance', 'LiquidityRestrictions', 'InsufficientBalance', 'ExistentialDeposit', 'KeepAlive', 'ExistingVestingSchedule', 'DeadAccount', 'TooManyReserves']1440 },1441 /**1442 * Lookup177: pallet_timestamp::pallet::Call<T>1443 **/1444 PalletTimestampCall: {1445 _enum: {1446 set: {1447 now: 'Compact<u64>'1448 }1449 }1450 },1451 /**1452 * Lookup179: pallet_transaction_payment::Releases1453 **/1454 PalletTransactionPaymentReleases: {1455 _enum: ['V1Ancient', 'V2']1456 },1457 /**1458 * Lookup180: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>1459 **/1460 PalletTreasuryProposal: {1461 proposer: 'AccountId32',1462 value: 'u128',1463 beneficiary: 'AccountId32',1464 bond: 'u128'1465 },1466 /**1467 * Lookup183: pallet_treasury::pallet::Call<T, I>1468 **/1469 PalletTreasuryCall: {1470 _enum: {1471 propose_spend: {1472 value: 'Compact<u128>',1473 beneficiary: 'MultiAddress',1474 },1475 reject_proposal: {1476 proposalId: 'Compact<u32>',1477 },1478 approve_proposal: {1479 proposalId: 'Compact<u32>',1480 },1481 spend: {1482 amount: 'Compact<u128>',1483 beneficiary: 'MultiAddress',1484 },1485 remove_approval: {1486 proposalId: 'Compact<u32>'1487 }1488 }1489 },1490 /**1491 * Lookup186: frame_support::PalletId1492 **/1493 FrameSupportPalletId: '[u8;8]',1494 /**1495 * Lookup187: pallet_treasury::pallet::Error<T, I>1496 **/1497 PalletTreasuryError: {1498 _enum: ['InsufficientProposersBalance', 'InvalidIndex', 'TooManyApprovals', 'InsufficientPermission', 'ProposalNotApproved']1499 },1500 /**1501 * Lookup188: pallet_sudo::pallet::Call<T>1502 **/1503 PalletSudoCall: {1504 _enum: {1505 sudo: {1506 call: 'Call',1507 },1508 sudo_unchecked_weight: {1509 call: 'Call',1510 weight: 'u64',1511 },1512 set_key: {1513 _alias: {1514 new_: 'new',1515 },1516 new_: 'MultiAddress',1517 },1518 sudo_as: {1519 who: 'MultiAddress',1520 call: 'Call'1521 }1522 }1523 },1524 /**1525 * Lookup190: orml_vesting::module::Call<T>1526 **/1527 OrmlVestingModuleCall: {1528 _enum: {1529 claim: 'Null',1530 vested_transfer: {1531 dest: 'MultiAddress',1532 schedule: 'OrmlVestingVestingSchedule',1533 },1534 update_vesting_schedules: {1535 who: 'MultiAddress',1536 vestingSchedules: 'Vec<OrmlVestingVestingSchedule>',1537 },1538 claim_for: {1539 dest: 'MultiAddress'1540 }1541 }1542 },1543 /**1544 * Lookup192: cumulus_pallet_xcmp_queue::pallet::Call<T>1545 **/1546 CumulusPalletXcmpQueueCall: {1547 _enum: {1548 service_overweight: {1549 index: 'u64',1550 weightLimit: 'u64',1551 },1552 suspend_xcm_execution: 'Null',1553 resume_xcm_execution: 'Null',1554 update_suspend_threshold: {1555 _alias: {1556 new_: 'new',1557 },1558 new_: 'u32',1559 },1560 update_drop_threshold: {1561 _alias: {1562 new_: 'new',1563 },1564 new_: 'u32',1565 },1566 update_resume_threshold: {1567 _alias: {1568 new_: 'new',1569 },1570 new_: 'u32',1571 },1572 update_threshold_weight: {1573 _alias: {1574 new_: 'new',1575 },1576 new_: 'u64',1577 },1578 update_weight_restrict_decay: {1579 _alias: {1580 new_: 'new',1581 },1582 new_: 'u64',1583 },1584 update_xcmp_max_individual_weight: {1585 _alias: {1586 new_: 'new',1587 },1588 new_: 'u64'1589 }1590 }1591 },1592 /**1593 * Lookup193: pallet_xcm::pallet::Call<T>1594 **/1595 PalletXcmCall: {1596 _enum: {1597 send: {1598 dest: 'XcmVersionedMultiLocation',1599 message: 'XcmVersionedXcm',1600 },1601 teleport_assets: {1602 dest: 'XcmVersionedMultiLocation',1603 beneficiary: 'XcmVersionedMultiLocation',1604 assets: 'XcmVersionedMultiAssets',1605 feeAssetItem: 'u32',1606 },1607 reserve_transfer_assets: {1608 dest: 'XcmVersionedMultiLocation',1609 beneficiary: 'XcmVersionedMultiLocation',1610 assets: 'XcmVersionedMultiAssets',1611 feeAssetItem: 'u32',1612 },1613 execute: {1614 message: 'XcmVersionedXcm',1615 maxWeight: 'u64',1616 },1617 force_xcm_version: {1618 location: 'XcmV1MultiLocation',1619 xcmVersion: 'u32',1620 },1621 force_default_xcm_version: {1622 maybeXcmVersion: 'Option<u32>',1623 },1624 force_subscribe_version_notify: {1625 location: 'XcmVersionedMultiLocation',1626 },1627 force_unsubscribe_version_notify: {1628 location: 'XcmVersionedMultiLocation',1629 },1630 limited_reserve_transfer_assets: {1631 dest: 'XcmVersionedMultiLocation',1632 beneficiary: 'XcmVersionedMultiLocation',1633 assets: 'XcmVersionedMultiAssets',1634 feeAssetItem: 'u32',1635 weightLimit: 'XcmV2WeightLimit',1636 },1637 limited_teleport_assets: {1638 dest: 'XcmVersionedMultiLocation',1639 beneficiary: 'XcmVersionedMultiLocation',1640 assets: 'XcmVersionedMultiAssets',1641 feeAssetItem: 'u32',1642 weightLimit: 'XcmV2WeightLimit'1643 }1644 }1645 },1646 /**1647 * Lookup194: xcm::VersionedXcm<Call>1648 **/1649 XcmVersionedXcm: {1650 _enum: {1651 V0: 'XcmV0Xcm',1652 V1: 'XcmV1Xcm',1653 V2: 'XcmV2Xcm'1654 }1655 },1656 /**1657 * Lookup195: xcm::v0::Xcm<Call>1658 **/1659 XcmV0Xcm: {1660 _enum: {1661 WithdrawAsset: {1662 assets: 'Vec<XcmV0MultiAsset>',1663 effects: 'Vec<XcmV0Order>',1664 },1665 ReserveAssetDeposit: {1666 assets: 'Vec<XcmV0MultiAsset>',1667 effects: 'Vec<XcmV0Order>',1668 },1669 TeleportAsset: {1670 assets: 'Vec<XcmV0MultiAsset>',1671 effects: 'Vec<XcmV0Order>',1672 },1673 QueryResponse: {1674 queryId: 'Compact<u64>',1675 response: 'XcmV0Response',1676 },1677 TransferAsset: {1678 assets: 'Vec<XcmV0MultiAsset>',1679 dest: 'XcmV0MultiLocation',1680 },1681 TransferReserveAsset: {1682 assets: 'Vec<XcmV0MultiAsset>',1683 dest: 'XcmV0MultiLocation',1684 effects: 'Vec<XcmV0Order>',1685 },1686 Transact: {1687 originType: 'XcmV0OriginKind',1688 requireWeightAtMost: 'u64',1689 call: 'XcmDoubleEncoded',1690 },1691 HrmpNewChannelOpenRequest: {1692 sender: 'Compact<u32>',1693 maxMessageSize: 'Compact<u32>',1694 maxCapacity: 'Compact<u32>',1695 },1696 HrmpChannelAccepted: {1697 recipient: 'Compact<u32>',1698 },1699 HrmpChannelClosing: {1700 initiator: 'Compact<u32>',1701 sender: 'Compact<u32>',1702 recipient: 'Compact<u32>',1703 },1704 RelayedFrom: {1705 who: 'XcmV0MultiLocation',1706 message: 'XcmV0Xcm'1707 }1708 }1709 },1710 /**1711 * Lookup197: xcm::v0::order::Order<Call>1712 **/1713 XcmV0Order: {1714 _enum: {1715 Null: 'Null',1716 DepositAsset: {1717 assets: 'Vec<XcmV0MultiAsset>',1718 dest: 'XcmV0MultiLocation',1719 },1720 DepositReserveAsset: {1721 assets: 'Vec<XcmV0MultiAsset>',1722 dest: 'XcmV0MultiLocation',1723 effects: 'Vec<XcmV0Order>',1724 },1725 ExchangeAsset: {1726 give: 'Vec<XcmV0MultiAsset>',1727 receive: 'Vec<XcmV0MultiAsset>',1728 },1729 InitiateReserveWithdraw: {1730 assets: 'Vec<XcmV0MultiAsset>',1731 reserve: 'XcmV0MultiLocation',1732 effects: 'Vec<XcmV0Order>',1733 },1734 InitiateTeleport: {1735 assets: 'Vec<XcmV0MultiAsset>',1736 dest: 'XcmV0MultiLocation',1737 effects: 'Vec<XcmV0Order>',1738 },1739 QueryHolding: {1740 queryId: 'Compact<u64>',1741 dest: 'XcmV0MultiLocation',1742 assets: 'Vec<XcmV0MultiAsset>',1743 },1744 BuyExecution: {1745 fees: 'XcmV0MultiAsset',1746 weight: 'u64',1747 debt: 'u64',1748 haltOnError: 'bool',1749 xcm: 'Vec<XcmV0Xcm>'1750 }1751 }1752 },1753 /**1754 * Lookup199: xcm::v0::Response1755 **/1756 XcmV0Response: {1757 _enum: {1758 Assets: 'Vec<XcmV0MultiAsset>'1759 }1760 },1761 /**1762 * Lookup200: xcm::v1::Xcm<Call>1763 **/1764 XcmV1Xcm: {1765 _enum: {1766 WithdrawAsset: {1767 assets: 'XcmV1MultiassetMultiAssets',1768 effects: 'Vec<XcmV1Order>',1769 },1770 ReserveAssetDeposited: {1771 assets: 'XcmV1MultiassetMultiAssets',1772 effects: 'Vec<XcmV1Order>',1773 },1774 ReceiveTeleportedAsset: {1775 assets: 'XcmV1MultiassetMultiAssets',1776 effects: 'Vec<XcmV1Order>',1777 },1778 QueryResponse: {1779 queryId: 'Compact<u64>',1780 response: 'XcmV1Response',1781 },1782 TransferAsset: {1783 assets: 'XcmV1MultiassetMultiAssets',1784 beneficiary: 'XcmV1MultiLocation',1785 },1786 TransferReserveAsset: {1787 assets: 'XcmV1MultiassetMultiAssets',1788 dest: 'XcmV1MultiLocation',1789 effects: 'Vec<XcmV1Order>',1790 },1791 Transact: {1792 originType: 'XcmV0OriginKind',1793 requireWeightAtMost: 'u64',1794 call: 'XcmDoubleEncoded',1795 },1796 HrmpNewChannelOpenRequest: {1797 sender: 'Compact<u32>',1798 maxMessageSize: 'Compact<u32>',1799 maxCapacity: 'Compact<u32>',1800 },1801 HrmpChannelAccepted: {1802 recipient: 'Compact<u32>',1803 },1804 HrmpChannelClosing: {1805 initiator: 'Compact<u32>',1806 sender: 'Compact<u32>',1807 recipient: 'Compact<u32>',1808 },1809 RelayedFrom: {1810 who: 'XcmV1MultilocationJunctions',1811 message: 'XcmV1Xcm',1812 },1813 SubscribeVersion: {1814 queryId: 'Compact<u64>',1815 maxResponseWeight: 'Compact<u64>',1816 },1817 UnsubscribeVersion: 'Null'1818 }1819 },1820 /**1821 * Lookup202: xcm::v1::order::Order<Call>1822 **/1823 XcmV1Order: {1824 _enum: {1825 Noop: 'Null',1826 DepositAsset: {1827 assets: 'XcmV1MultiassetMultiAssetFilter',1828 maxAssets: 'u32',1829 beneficiary: 'XcmV1MultiLocation',1830 },1831 DepositReserveAsset: {1832 assets: 'XcmV1MultiassetMultiAssetFilter',1833 maxAssets: 'u32',1834 dest: 'XcmV1MultiLocation',1835 effects: 'Vec<XcmV1Order>',1836 },1837 ExchangeAsset: {1838 give: 'XcmV1MultiassetMultiAssetFilter',1839 receive: 'XcmV1MultiassetMultiAssets',1840 },1841 InitiateReserveWithdraw: {1842 assets: 'XcmV1MultiassetMultiAssetFilter',1843 reserve: 'XcmV1MultiLocation',1844 effects: 'Vec<XcmV1Order>',1845 },1846 InitiateTeleport: {1847 assets: 'XcmV1MultiassetMultiAssetFilter',1848 dest: 'XcmV1MultiLocation',1849 effects: 'Vec<XcmV1Order>',1850 },1851 QueryHolding: {1852 queryId: 'Compact<u64>',1853 dest: 'XcmV1MultiLocation',1854 assets: 'XcmV1MultiassetMultiAssetFilter',1855 },1856 BuyExecution: {1857 fees: 'XcmV1MultiAsset',1858 weight: 'u64',1859 debt: 'u64',1860 haltOnError: 'bool',1861 instructions: 'Vec<XcmV1Xcm>'1862 }1863 }1864 },1865 /**1866 * Lookup204: xcm::v1::Response1867 **/1868 XcmV1Response: {1869 _enum: {1870 Assets: 'XcmV1MultiassetMultiAssets',1871 Version: 'u32'1872 }1873 },1874 /**1875 * Lookup218: cumulus_pallet_xcm::pallet::Call<T>1876 **/1877 CumulusPalletXcmCall: 'Null',1878 /**1879 * Lookup219: cumulus_pallet_dmp_queue::pallet::Call<T>1880 **/1881 CumulusPalletDmpQueueCall: {1882 _enum: {1883 service_overweight: {1884 index: 'u64',1885 weightLimit: 'u64'1886 }1887 }1888 },1889 /**1890 * Lookup220: pallet_inflation::pallet::Call<T>1891 **/1892 PalletInflationCall: {1893 _enum: {1894 start_inflation: {1895 inflationStartRelayBlock: 'u32'1896 }1897 }1898 },1899 /**1900 * Lookup221: pallet_unique::Call<T>1901 **/1902 PalletUniqueCall: {1903 _enum: {1904 create_collection: {1905 collectionName: 'Vec<u16>',1906 collectionDescription: 'Vec<u16>',1907 tokenPrefix: 'Bytes',1908 mode: 'UpDataStructsCollectionMode',1909 },1910 create_collection_ex: {1911 data: 'UpDataStructsCreateCollectionData',1912 },1913 destroy_collection: {1914 collectionId: 'u32',1915 },1916 add_to_allow_list: {1917 collectionId: 'u32',1918 address: 'PalletEvmAccountBasicCrossAccountIdRepr',1919 },1920 remove_from_allow_list: {1921 collectionId: 'u32',1922 address: 'PalletEvmAccountBasicCrossAccountIdRepr',1923 },1924 change_collection_owner: {1925 collectionId: 'u32',1926 newOwner: 'AccountId32',1927 },1928 add_collection_admin: {1929 collectionId: 'u32',1930 newAdminId: 'PalletEvmAccountBasicCrossAccountIdRepr',1931 },1932 remove_collection_admin: {1933 collectionId: 'u32',1934 accountId: 'PalletEvmAccountBasicCrossAccountIdRepr',1935 },1936 set_collection_sponsor: {1937 collectionId: 'u32',1938 newSponsor: 'AccountId32',1939 },1940 confirm_sponsorship: {1941 collectionId: 'u32',1942 },1943 remove_collection_sponsor: {1944 collectionId: 'u32',1945 },1946 create_item: {1947 collectionId: 'u32',1948 owner: 'PalletEvmAccountBasicCrossAccountIdRepr',1949 data: 'UpDataStructsCreateItemData',1950 },1951 create_multiple_items: {1952 collectionId: 'u32',1953 owner: 'PalletEvmAccountBasicCrossAccountIdRepr',1954 itemsData: 'Vec<UpDataStructsCreateItemData>',1955 },1956 set_collection_properties: {1957 collectionId: 'u32',1958 properties: 'Vec<UpDataStructsProperty>',1959 },1960 delete_collection_properties: {1961 collectionId: 'u32',1962 propertyKeys: 'Vec<Bytes>',1963 },1964 set_token_properties: {1965 collectionId: 'u32',1966 tokenId: 'u32',1967 properties: 'Vec<UpDataStructsProperty>',1968 },1969 delete_token_properties: {1970 collectionId: 'u32',1971 tokenId: 'u32',1972 propertyKeys: 'Vec<Bytes>',1973 },1974 set_token_property_permissions: {1975 collectionId: 'u32',1976 propertyPermissions: 'Vec<UpDataStructsPropertyKeyPermission>',1977 },1978 create_multiple_items_ex: {1979 collectionId: 'u32',1980 data: 'UpDataStructsCreateItemExData',1981 },1982 set_transfers_enabled_flag: {1983 collectionId: 'u32',1984 value: 'bool',1985 },1986 burn_item: {1987 collectionId: 'u32',1988 itemId: 'u32',1989 value: 'u128',1990 },1991 burn_from: {1992 collectionId: 'u32',1993 from: 'PalletEvmAccountBasicCrossAccountIdRepr',1994 itemId: 'u32',1995 value: 'u128',1996 },1997 transfer: {1998 recipient: 'PalletEvmAccountBasicCrossAccountIdRepr',1999 collectionId: 'u32',2000 itemId: 'u32',2001 value: 'u128',2002 },2003 approve: {2004 spender: 'PalletEvmAccountBasicCrossAccountIdRepr',2005 collectionId: 'u32',2006 itemId: 'u32',2007 amount: 'u128',2008 },2009 transfer_from: {2010 from: 'PalletEvmAccountBasicCrossAccountIdRepr',2011 recipient: 'PalletEvmAccountBasicCrossAccountIdRepr',2012 collectionId: 'u32',2013 itemId: 'u32',2014 value: 'u128',2015 },2016 set_collection_limits: {2017 collectionId: 'u32',2018 newLimit: 'UpDataStructsCollectionLimits',2019 },2020 set_collection_permissions: {2021 collectionId: 'u32',2022 newPermission: 'UpDataStructsCollectionPermissions',2023 },2024 repartition: {2025 collectionId: 'u32',2026 tokenId: 'u32',2027 amount: 'u128'2028 }2029 }2030 },2031 /**2032 * Lookup226: up_data_structs::CollectionMode2033 **/2034 UpDataStructsCollectionMode: {2035 _enum: {2036 NFT: 'Null',2037 Fungible: 'u8',2038 ReFungible: 'Null'2039 }2040 },2041 /**2042 * Lookup227: up_data_structs::CreateCollectionData<sp_core::crypto::AccountId32>2043 **/2044 UpDataStructsCreateCollectionData: {2045 mode: 'UpDataStructsCollectionMode',2046 access: 'Option<UpDataStructsAccessMode>',2047 name: 'Vec<u16>',2048 description: 'Vec<u16>',2049 tokenPrefix: 'Bytes',2050 pendingSponsor: 'Option<AccountId32>',2051 limits: 'Option<UpDataStructsCollectionLimits>',2052 permissions: 'Option<UpDataStructsCollectionPermissions>',2053 tokenPropertyPermissions: 'Vec<UpDataStructsPropertyKeyPermission>',2054 properties: 'Vec<UpDataStructsProperty>'2055 },2056 /**2057 * Lookup229: up_data_structs::AccessMode2058 **/2059 UpDataStructsAccessMode: {2060 _enum: ['Normal', 'AllowList']2061 },2062 /**2063 * Lookup231: up_data_structs::CollectionLimits2064 **/2065 UpDataStructsCollectionLimits: {2066 accountTokenOwnershipLimit: 'Option<u32>',2067 sponsoredDataSize: 'Option<u32>',2068 sponsoredDataRateLimit: 'Option<UpDataStructsSponsoringRateLimit>',2069 tokenLimit: 'Option<u32>',2070 sponsorTransferTimeout: 'Option<u32>',2071 sponsorApproveTimeout: 'Option<u32>',2072 ownerCanTransfer: 'Option<bool>',2073 ownerCanDestroy: 'Option<bool>',2074 transfersEnabled: 'Option<bool>'2075 },2076 /**2077 * Lookup233: up_data_structs::SponsoringRateLimit2078 **/2079 UpDataStructsSponsoringRateLimit: {2080 _enum: {2081 SponsoringDisabled: 'Null',2082 Blocks: 'u32'2083 }2084 },2085 /**2086 * Lookup236: up_data_structs::CollectionPermissions2087 **/2088 UpDataStructsCollectionPermissions: {2089 access: 'Option<UpDataStructsAccessMode>',2090 mintMode: 'Option<bool>',2091 nesting: 'Option<UpDataStructsNestingPermissions>'2092 },2093 /**2094 * Lookup238: up_data_structs::NestingPermissions2095 **/2096 UpDataStructsNestingPermissions: {2097 tokenOwner: 'bool',2098 collectionAdmin: 'bool',2099 restricted: 'Option<UpDataStructsOwnerRestrictedSet>'2100 },2101 /**2102 * Lookup240: up_data_structs::OwnerRestrictedSet2103 **/2104 UpDataStructsOwnerRestrictedSet: 'BTreeSet<u32>',2105 /**2106 * Lookup245: up_data_structs::PropertyKeyPermission2107 **/2108 UpDataStructsPropertyKeyPermission: {2109 key: 'Bytes',2110 permission: 'UpDataStructsPropertyPermission'2111 },2112 /**2113 * Lookup246: up_data_structs::PropertyPermission2114 **/2115 UpDataStructsPropertyPermission: {2116 mutable: 'bool',2117 collectionAdmin: 'bool',2118 tokenOwner: 'bool'2119 },2120 /**2121 * Lookup249: up_data_structs::Property2122 **/2123 UpDataStructsProperty: {2124 key: 'Bytes',2125 value: 'Bytes'2126 },2127 /**2128 * Lookup252: up_data_structs::CreateItemData2129 **/2130 UpDataStructsCreateItemData: {2131 _enum: {2132 NFT: 'UpDataStructsCreateNftData',2133 Fungible: 'UpDataStructsCreateFungibleData',2134 ReFungible: 'UpDataStructsCreateReFungibleData'2135 }2136 },2137 /**2138 * Lookup253: up_data_structs::CreateNftData2139 **/2140 UpDataStructsCreateNftData: {2141 properties: 'Vec<UpDataStructsProperty>'2142 },2143 /**2144 * Lookup254: up_data_structs::CreateFungibleData2145 **/2146 UpDataStructsCreateFungibleData: {2147 value: 'u128'2148 },2149 /**2150 * Lookup255: up_data_structs::CreateReFungibleData2151 **/2152 UpDataStructsCreateReFungibleData: {2153 pieces: 'u128',2154 properties: 'Vec<UpDataStructsProperty>'2155 },2156 /**2157 * Lookup258: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>2158 **/2159 UpDataStructsCreateItemExData: {2160 _enum: {2161 NFT: 'Vec<UpDataStructsCreateNftExData>',2162 Fungible: 'BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>',2163 RefungibleMultipleItems: 'Vec<UpDataStructsCreateRefungibleExSingleOwner>',2164 RefungibleMultipleOwners: 'UpDataStructsCreateRefungibleExMultipleOwners'2165 }2166 },2167 /**2168 * Lookup260: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>2169 **/2170 UpDataStructsCreateNftExData: {2171 properties: 'Vec<UpDataStructsProperty>',2172 owner: 'PalletEvmAccountBasicCrossAccountIdRepr'2173 },2174 /**2175 * Lookup267: up_data_structs::CreateRefungibleExSingleOwner<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>2176 **/2177 UpDataStructsCreateRefungibleExSingleOwner: {2178 user: 'PalletEvmAccountBasicCrossAccountIdRepr',2179 pieces: 'u128',2180 properties: 'Vec<UpDataStructsProperty>'2181 },2182 /**2183 * Lookup269: up_data_structs::CreateRefungibleExMultipleOwners<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>2184 **/2185 UpDataStructsCreateRefungibleExMultipleOwners: {2186 users: 'BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>',2187 properties: 'Vec<UpDataStructsProperty>'2188 },2189 /**2190 * Lookup270: pallet_unique_scheduler::pallet::Call<T>2191 **/2192 PalletUniqueSchedulerCall: {2193 _enum: {2194 schedule_named: {2195 id: '[u8;16]',2196 when: 'u32',2197 maybePeriodic: 'Option<(u32,u32)>',2198 priority: 'u8',2199 call: 'FrameSupportScheduleMaybeHashed',2200 },2201 cancel_named: {2202 id: '[u8;16]',2203 },2204 schedule_named_after: {2205 id: '[u8;16]',2206 after: 'u32',2207 maybePeriodic: 'Option<(u32,u32)>',2208 priority: 'u8',2209 call: 'FrameSupportScheduleMaybeHashed'2210 }2211 }2212 },2213 /**2214 * Lookup272: frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>2215 **/2216 FrameSupportScheduleMaybeHashed: {2217 _enum: {2218 Value: 'Call',2219 Hash: 'H256'2220 }2221 },2222 /**2223 * Lookup273: pallet_configuration::pallet::Call<T>2224 **/2225 PalletConfigurationCall: {2226 _enum: {2227 set_weight_to_fee_coefficient_override: {2228 coeff: 'Option<u32>',2229 },2230 set_min_gas_price_override: {2231 coeff: 'Option<u64>'2232 }2233 }2234 },2235 /**2236 * Lookup274: pallet_template_transaction_payment::Call<T>2237 **/2238 PalletTemplateTransactionPaymentCall: 'Null',2239 /**2240 * Lookup275: pallet_structure::pallet::Call<T>2241 **/2242 PalletStructureCall: 'Null',2243 /**2244 * Lookup276: pallet_rmrk_core::pallet::Call<T>2245 **/2246 PalletRmrkCoreCall: {2247 _enum: {2248 create_collection: {2249 metadata: 'Bytes',2250 max: 'Option<u32>',2251 symbol: 'Bytes',2252 },2253 destroy_collection: {2254 collectionId: 'u32',2255 },2256 change_collection_issuer: {2257 collectionId: 'u32',2258 newIssuer: 'MultiAddress',2259 },2260 lock_collection: {2261 collectionId: 'u32',2262 },2263 mint_nft: {2264 owner: 'Option<AccountId32>',2265 collectionId: 'u32',2266 recipient: 'Option<AccountId32>',2267 royaltyAmount: 'Option<Permill>',2268 metadata: 'Bytes',2269 transferable: 'bool',2270 resources: 'Option<Vec<RmrkTraitsResourceResourceTypes>>',2271 },2272 burn_nft: {2273 collectionId: 'u32',2274 nftId: 'u32',2275 maxBurns: 'u32',2276 },2277 send: {2278 rmrkCollectionId: 'u32',2279 rmrkNftId: 'u32',2280 newOwner: 'RmrkTraitsNftAccountIdOrCollectionNftTuple',2281 },2282 accept_nft: {2283 rmrkCollectionId: 'u32',2284 rmrkNftId: 'u32',2285 newOwner: 'RmrkTraitsNftAccountIdOrCollectionNftTuple',2286 },2287 reject_nft: {2288 rmrkCollectionId: 'u32',2289 rmrkNftId: 'u32',2290 },2291 accept_resource: {2292 rmrkCollectionId: 'u32',2293 rmrkNftId: 'u32',2294 resourceId: 'u32',2295 },2296 accept_resource_removal: {2297 rmrkCollectionId: 'u32',2298 rmrkNftId: 'u32',2299 resourceId: 'u32',2300 },2301 set_property: {2302 rmrkCollectionId: 'Compact<u32>',2303 maybeNftId: 'Option<u32>',2304 key: 'Bytes',2305 value: 'Bytes',2306 },2307 set_priority: {2308 rmrkCollectionId: 'u32',2309 rmrkNftId: 'u32',2310 priorities: 'Vec<u32>',2311 },2312 add_basic_resource: {2313 rmrkCollectionId: 'u32',2314 nftId: 'u32',2315 resource: 'RmrkTraitsResourceBasicResource',2316 },2317 add_composable_resource: {2318 rmrkCollectionId: 'u32',2319 nftId: 'u32',2320 resource: 'RmrkTraitsResourceComposableResource',2321 },2322 add_slot_resource: {2323 rmrkCollectionId: 'u32',2324 nftId: 'u32',2325 resource: 'RmrkTraitsResourceSlotResource',2326 },2327 remove_resource: {2328 rmrkCollectionId: 'u32',2329 nftId: 'u32',2330 resourceId: 'u32'2331 }2332 }2333 },2334 /**2335 * Lookup282: rmrk_traits::resource::ResourceTypes<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>2336 **/2337 RmrkTraitsResourceResourceTypes: {2338 _enum: {2339 Basic: 'RmrkTraitsResourceBasicResource',2340 Composable: 'RmrkTraitsResourceComposableResource',2341 Slot: 'RmrkTraitsResourceSlotResource'2342 }2343 },2344 /**2345 * Lookup284: rmrk_traits::resource::BasicResource<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>2346 **/2347 RmrkTraitsResourceBasicResource: {2348 src: 'Option<Bytes>',2349 metadata: 'Option<Bytes>',2350 license: 'Option<Bytes>',2351 thumb: 'Option<Bytes>'2352 },2353 /**2354 * Lookup286: rmrk_traits::resource::ComposableResource<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>2355 **/2356 RmrkTraitsResourceComposableResource: {2357 parts: 'Vec<u32>',2358 base: 'u32',2359 src: 'Option<Bytes>',2360 metadata: 'Option<Bytes>',2361 license: 'Option<Bytes>',2362 thumb: 'Option<Bytes>'2363 },2364 /**2365 * Lookup287: rmrk_traits::resource::SlotResource<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>2366 **/2367 RmrkTraitsResourceSlotResource: {2368 base: 'u32',2369 src: 'Option<Bytes>',2370 metadata: 'Option<Bytes>',2371 slot: 'u32',2372 license: 'Option<Bytes>',2373 thumb: 'Option<Bytes>'2374 },2375 /**2376 * Lookup290: pallet_rmrk_equip::pallet::Call<T>2377 **/2378 PalletRmrkEquipCall: {2379 _enum: {2380 create_base: {2381 baseType: 'Bytes',2382 symbol: 'Bytes',2383 parts: 'Vec<RmrkTraitsPartPartType>',2384 },2385 theme_add: {2386 baseId: 'u32',2387 theme: 'RmrkTraitsTheme',2388 },2389 equippable: {2390 baseId: 'u32',2391 slotId: 'u32',2392 equippables: 'RmrkTraitsPartEquippableList'2393 }2394 }2395 },2396 /**2397 * Lookup293: rmrk_traits::part::PartType<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>2398 **/2399 RmrkTraitsPartPartType: {2400 _enum: {2401 FixedPart: 'RmrkTraitsPartFixedPart',2402 SlotPart: 'RmrkTraitsPartSlotPart'2403 }2404 },2405 /**2406 * Lookup295: rmrk_traits::part::FixedPart<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>2407 **/2408 RmrkTraitsPartFixedPart: {2409 id: 'u32',2410 z: 'u32',2411 src: 'Bytes'2412 },2413 /**2414 * Lookup296: rmrk_traits::part::SlotPart<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>2415 **/2416 RmrkTraitsPartSlotPart: {2417 id: 'u32',2418 equippable: 'RmrkTraitsPartEquippableList',2419 src: 'Bytes',2420 z: 'u32'2421 },2422 /**2423 * Lookup297: rmrk_traits::part::EquippableList<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>2424 **/2425 RmrkTraitsPartEquippableList: {2426 _enum: {2427 All: 'Null',2428 Empty: 'Null',2429 Custom: 'Vec<u32>'2430 }2431 },2432 /**2433 * Lookup299: rmrk_traits::theme::Theme<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<rmrk_traits::theme::ThemeProperty<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>, S>>2434 **/2435 RmrkTraitsTheme: {2436 name: 'Bytes',2437 properties: 'Vec<RmrkTraitsThemeThemeProperty>',2438 inherit: 'bool'2439 },2440 /**2441 * Lookup301: rmrk_traits::theme::ThemeProperty<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>2442 **/2443 RmrkTraitsThemeThemeProperty: {2444 key: 'Bytes',2445 value: 'Bytes'2446 },2447 /**2448 * Lookup303: pallet_app_promotion::pallet::Call<T>2449 **/2450 PalletAppPromotionCall: {2451 _enum: {2452 set_admin_address: {2453 admin: 'AccountId32',2454 },2455 start_app_promotion: {2456 promotionStartRelayBlock: 'u32',2457 },2458 stake: {2459 amount: 'u128',2460 },2461 unstake: {2462 amount: 'u128'2463 }2464 }2465 },2466 /**2467 * Lookup304: pallet_evm::pallet::Call<T>2468 **/2469 PalletEvmCall: {2470 _enum: {2471 withdraw: {2472 address: 'H160',2473 value: 'u128',2474 },2475 call: {2476 source: 'H160',2477 target: 'H160',2478 input: 'Bytes',2479 value: 'U256',2480 gasLimit: 'u64',2481 maxFeePerGas: 'U256',2482 maxPriorityFeePerGas: 'Option<U256>',2483 nonce: 'Option<U256>',2484 accessList: 'Vec<(H160,Vec<H256>)>',2485 },2486 create: {2487 source: 'H160',2488 init: 'Bytes',2489 value: 'U256',2490 gasLimit: 'u64',2491 maxFeePerGas: 'U256',2492 maxPriorityFeePerGas: 'Option<U256>',2493 nonce: 'Option<U256>',2494 accessList: 'Vec<(H160,Vec<H256>)>',2495 },2496 create2: {2497 source: 'H160',2498 init: 'Bytes',2499 salt: 'H256',2500 value: 'U256',2501 gasLimit: 'u64',2502 maxFeePerGas: 'U256',2503 maxPriorityFeePerGas: 'Option<U256>',2504 nonce: 'Option<U256>',2505 accessList: 'Vec<(H160,Vec<H256>)>'2506 }2507 }2508 },2509 /**2510 * Lookup308: pallet_ethereum::pallet::Call<T>2511 **/2512 PalletEthereumCall: {2513 _enum: {2514 transact: {2515 transaction: 'EthereumTransactionTransactionV2'2516 }2517 }2518 },2519 /**2520 * Lookup309: ethereum::transaction::TransactionV22521 **/2522 EthereumTransactionTransactionV2: {2523 _enum: {2524 Legacy: 'EthereumTransactionLegacyTransaction',2525 EIP2930: 'EthereumTransactionEip2930Transaction',2526 EIP1559: 'EthereumTransactionEip1559Transaction'2527 }2528 },2529 /**2530 * Lookup310: ethereum::transaction::LegacyTransaction2531 **/2532 EthereumTransactionLegacyTransaction: {2533 nonce: 'U256',2534 gasPrice: 'U256',2535 gasLimit: 'U256',2536 action: 'EthereumTransactionTransactionAction',2537 value: 'U256',2538 input: 'Bytes',2539 signature: 'EthereumTransactionTransactionSignature'2540 },2541 /**2542 * Lookup311: ethereum::transaction::TransactionAction2543 **/2544 EthereumTransactionTransactionAction: {2545 _enum: {2546 Call: 'H160',2547 Create: 'Null'2548 }2549 },2550 /**2551 * Lookup312: ethereum::transaction::TransactionSignature2552 **/2553 EthereumTransactionTransactionSignature: {2554 v: 'u64',2555 r: 'H256',2556 s: 'H256'2557 },2558 /**2559 * Lookup314: ethereum::transaction::EIP2930Transaction2560 **/2561 EthereumTransactionEip2930Transaction: {2562 chainId: 'u64',2563 nonce: 'U256',2564 gasPrice: 'U256',2565 gasLimit: 'U256',2566 action: 'EthereumTransactionTransactionAction',2567 value: 'U256',2568 input: 'Bytes',2569 accessList: 'Vec<EthereumTransactionAccessListItem>',2570 oddYParity: 'bool',2571 r: 'H256',2572 s: 'H256'2573 },2574 /**2575 * Lookup316: ethereum::transaction::AccessListItem2576 **/2577 EthereumTransactionAccessListItem: {2578 address: 'H160',2579 storageKeys: 'Vec<H256>'2580 },2581 /**2582 * Lookup317: ethereum::transaction::EIP1559Transaction2583 **/2584 EthereumTransactionEip1559Transaction: {2585 chainId: 'u64',2586 nonce: 'U256',2587 maxPriorityFeePerGas: 'U256',2588 maxFeePerGas: 'U256',2589 gasLimit: 'U256',2590 action: 'EthereumTransactionTransactionAction',2591 value: 'U256',2592 input: 'Bytes',2593 accessList: 'Vec<EthereumTransactionAccessListItem>',2594 oddYParity: 'bool',2595 r: 'H256',2596 s: 'H256'2597 },2598 /**2599 * Lookup318: pallet_evm_migration::pallet::Call<T>2600 **/2601 PalletEvmMigrationCall: {2602 _enum: {2603 begin: {2604 address: 'H160',2605 },2606 set_data: {2607 address: 'H160',2608 data: 'Vec<(H256,H256)>',2609 },2610 finish: {2611 address: 'H160',2612 code: 'Bytes'2613 }2614 }2615 },2616 /**2617 * Lookup321: pallet_sudo::pallet::Error<T>2618 **/2619 PalletSudoError: {2620 _enum: ['RequireSudo']2621 },2622 /**2623 * Lookup323: orml_vesting::module::Error<T>2624 **/2625 OrmlVestingModuleError: {2626 _enum: ['ZeroVestingPeriod', 'ZeroVestingPeriodCount', 'InsufficientBalanceToLock', 'TooManyVestingSchedules', 'AmountLow', 'MaxVestingSchedulesExceeded']2627 },2628 /**2629 * Lookup325: cumulus_pallet_xcmp_queue::InboundChannelDetails2630 **/2631 CumulusPalletXcmpQueueInboundChannelDetails: {2632 sender: 'u32',2633 state: 'CumulusPalletXcmpQueueInboundState',2634 messageMetadata: 'Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>'2635 },2636 /**2637 * Lookup326: cumulus_pallet_xcmp_queue::InboundState2638 **/2639 CumulusPalletXcmpQueueInboundState: {2640 _enum: ['Ok', 'Suspended']2641 },2642 /**2643 * Lookup329: polkadot_parachain::primitives::XcmpMessageFormat2644 **/2645 PolkadotParachainPrimitivesXcmpMessageFormat: {2646 _enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals']2647 },2648 /**2649 * Lookup332: cumulus_pallet_xcmp_queue::OutboundChannelDetails2650 **/2651 CumulusPalletXcmpQueueOutboundChannelDetails: {2652 recipient: 'u32',2653 state: 'CumulusPalletXcmpQueueOutboundState',2654 signalsExist: 'bool',2655 firstIndex: 'u16',2656 lastIndex: 'u16'2657 },2658 /**2659 * Lookup333: cumulus_pallet_xcmp_queue::OutboundState2660 **/2661 CumulusPalletXcmpQueueOutboundState: {2662 _enum: ['Ok', 'Suspended']2663 },2664 /**2665 * Lookup335: cumulus_pallet_xcmp_queue::QueueConfigData2666 **/2667 CumulusPalletXcmpQueueQueueConfigData: {2668 suspendThreshold: 'u32',2669 dropThreshold: 'u32',2670 resumeThreshold: 'u32',2671 thresholdWeight: 'u64',2672 weightRestrictDecay: 'u64',2673 xcmpMaxIndividualWeight: 'u64'2674 },2675 /**2676 * Lookup337: cumulus_pallet_xcmp_queue::pallet::Error<T>2677 **/2678 CumulusPalletXcmpQueueError: {2679 _enum: ['FailedToSend', 'BadXcmOrigin', 'BadXcm', 'BadOverweightIndex', 'WeightOverLimit']2680 },2681 /**2682 * Lookup338: pallet_xcm::pallet::Error<T>2683 **/2684 PalletXcmError: {2685 _enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed']2686 },2687 /**2688 * Lookup339: cumulus_pallet_xcm::pallet::Error<T>2689 **/2690 CumulusPalletXcmError: 'Null',2691 /**2692 * Lookup340: cumulus_pallet_dmp_queue::ConfigData2693 **/2694 CumulusPalletDmpQueueConfigData: {2695 maxIndividual: 'u64'2696 },2697 /**2698 * Lookup341: cumulus_pallet_dmp_queue::PageIndexData2699 **/2700 CumulusPalletDmpQueuePageIndexData: {2701 beginUsed: 'u32',2702 endUsed: 'u32',2703 overweightCount: 'u64'2704 },2705 /**2706 * Lookup344: cumulus_pallet_dmp_queue::pallet::Error<T>2707 **/2708 CumulusPalletDmpQueueError: {2709 _enum: ['Unknown', 'OverLimit']2710 },2711 /**2712 * Lookup348: pallet_unique::Error<T>2713 **/2714 PalletUniqueError: {2715 _enum: ['CollectionDecimalPointLimitExceeded', 'ConfirmUnsetSponsorFail', 'EmptyArgument', 'RepartitionCalledOnNonRefungibleCollection']2716 },2717 /**2718 * Lookup351: pallet_unique_scheduler::ScheduledV3<frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>, BlockNumber, opal_runtime::OriginCaller, sp_core::crypto::AccountId32>2719 **/2720 PalletUniqueSchedulerScheduledV3: {2721 maybeId: 'Option<[u8;16]>',2722 priority: 'u8',2723 call: 'FrameSupportScheduleMaybeHashed',2724 maybePeriodic: 'Option<(u32,u32)>',2725 origin: 'OpalRuntimeOriginCaller'2726 },2727 /**2728 * Lookup352: opal_runtime::OriginCaller2729 **/2730 OpalRuntimeOriginCaller: {2731 _enum: {2732 system: 'FrameSupportDispatchRawOrigin',2733 __Unused1: 'Null',2734 __Unused2: 'Null',2735 __Unused3: 'Null',2736 Void: 'SpCoreVoid',2737 __Unused5: 'Null',2738 __Unused6: 'Null',2739 __Unused7: 'Null',2740 __Unused8: 'Null',2741 __Unused9: 'Null',2742 __Unused10: 'Null',2743 __Unused11: 'Null',2744 __Unused12: 'Null',2745 __Unused13: 'Null',2746 __Unused14: 'Null',2747 __Unused15: 'Null',2748 __Unused16: 'Null',2749 __Unused17: 'Null',2750 __Unused18: 'Null',2751 __Unused19: 'Null',2752 __Unused20: 'Null',2753 __Unused21: 'Null',2754 __Unused22: 'Null',2755 __Unused23: 'Null',2756 __Unused24: 'Null',2757 __Unused25: 'Null',2758 __Unused26: 'Null',2759 __Unused27: 'Null',2760 __Unused28: 'Null',2761 __Unused29: 'Null',2762 __Unused30: 'Null',2763 __Unused31: 'Null',2764 __Unused32: 'Null',2765 __Unused33: 'Null',2766 __Unused34: 'Null',2767 __Unused35: 'Null',2768 __Unused36: 'Null',2769 __Unused37: 'Null',2770 __Unused38: 'Null',2771 __Unused39: 'Null',2772 __Unused40: 'Null',2773 __Unused41: 'Null',2774 __Unused42: 'Null',2775 __Unused43: 'Null',2776 __Unused44: 'Null',2777 __Unused45: 'Null',2778 __Unused46: 'Null',2779 __Unused47: 'Null',2780 __Unused48: 'Null',2781 __Unused49: 'Null',2782 __Unused50: 'Null',2783 PolkadotXcm: 'PalletXcmOrigin',2784 CumulusXcm: 'CumulusPalletXcmOrigin',2785 __Unused53: 'Null',2786 __Unused54: 'Null',2787 __Unused55: 'Null',2788 __Unused56: 'Null',2789 __Unused57: 'Null',2790 __Unused58: 'Null',2791 __Unused59: 'Null',2792 __Unused60: 'Null',2793 __Unused61: 'Null',2794 __Unused62: 'Null',2795 __Unused63: 'Null',2796 __Unused64: 'Null',2797 __Unused65: 'Null',2798 __Unused66: 'Null',2799 __Unused67: 'Null',2800 __Unused68: 'Null',2801 __Unused69: 'Null',2802 __Unused70: 'Null',2803 __Unused71: 'Null',2804 __Unused72: 'Null',2805 __Unused73: 'Null',2806 __Unused74: 'Null',2807 __Unused75: 'Null',2808 __Unused76: 'Null',2809 __Unused77: 'Null',2810 __Unused78: 'Null',2811 __Unused79: 'Null',2812 __Unused80: 'Null',2813 __Unused81: 'Null',2814 __Unused82: 'Null',2815 __Unused83: 'Null',2816 __Unused84: 'Null',2817 __Unused85: 'Null',2818 __Unused86: 'Null',2819 __Unused87: 'Null',2820 __Unused88: 'Null',2821 __Unused89: 'Null',2822 __Unused90: 'Null',2823 __Unused91: 'Null',2824 __Unused92: 'Null',2825 __Unused93: 'Null',2826 __Unused94: 'Null',2827 __Unused95: 'Null',2828 __Unused96: 'Null',2829 __Unused97: 'Null',2830 __Unused98: 'Null',2831 __Unused99: 'Null',2832 __Unused100: 'Null',2833 Ethereum: 'PalletEthereumRawOrigin'2834 }2835 },2836 /**2837 * Lookup353: frame_support::dispatch::RawOrigin<sp_core::crypto::AccountId32>2838 **/2839 FrameSupportDispatchRawOrigin: {2840 _enum: {2841 Root: 'Null',2842 Signed: 'AccountId32',2843 None: 'Null'2844 }2845 },2846 /**2847 * Lookup354: pallet_xcm::pallet::Origin2848 **/2849 PalletXcmOrigin: {2850 _enum: {2851 Xcm: 'XcmV1MultiLocation',2852 Response: 'XcmV1MultiLocation'2853 }2854 },2855 /**2856 * Lookup355: cumulus_pallet_xcm::pallet::Origin2857 **/2858 CumulusPalletXcmOrigin: {2859 _enum: {2860 Relay: 'Null',2861 SiblingParachain: 'u32'2862 }2863 },2864 /**2865 * Lookup356: pallet_ethereum::RawOrigin2866 **/2867 PalletEthereumRawOrigin: {2868 _enum: {2869 EthereumTransaction: 'H160'2870 }2871 },2872 /**2873 * Lookup357: sp_core::Void2874 **/2875 SpCoreVoid: 'Null',2876 /**2877 * Lookup358: pallet_unique_scheduler::pallet::Error<T>2878 **/2879 PalletUniqueSchedulerError: {2880 _enum: ['FailedToSchedule', 'NotFound', 'TargetBlockNumberInPast', 'RescheduleNoChange']2881 },2882 /**2883 * Lookup359: up_data_structs::Collection<sp_core::crypto::AccountId32>2884 **/2885 UpDataStructsCollection: {2886 owner: 'AccountId32',2887 mode: 'UpDataStructsCollectionMode',2888 name: 'Vec<u16>',2889 description: 'Vec<u16>',2890 tokenPrefix: 'Bytes',2891 sponsorship: 'UpDataStructsSponsorshipState',2892 limits: 'UpDataStructsCollectionLimits',2893 permissions: 'UpDataStructsCollectionPermissions',2894 externalCollection: 'bool'2895 },2896 /**2897 * Lookup360: up_data_structs::SponsorshipState<sp_core::crypto::AccountId32>2898 **/2899 UpDataStructsSponsorshipState: {2900 _enum: {2901 Disabled: 'Null',2902 Unconfirmed: 'AccountId32',2903 Confirmed: 'AccountId32'2904 }2905 },2906 /**2907 * Lookup361: up_data_structs::Properties2908 **/2909 UpDataStructsProperties: {2910 map: 'UpDataStructsPropertiesMapBoundedVec',2911 consumedSpace: 'u32',2912 spaceLimit: 'u32'2913 },2914 /**2915 * Lookup362: up_data_structs::PropertiesMap<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>2916 **/2917 UpDataStructsPropertiesMapBoundedVec: 'BTreeMap<Bytes, Bytes>',2918 /**2919 * Lookup367: up_data_structs::PropertiesMap<up_data_structs::PropertyPermission>2920 **/2921 UpDataStructsPropertiesMapPropertyPermission: 'BTreeMap<Bytes, UpDataStructsPropertyPermission>',2922 /**2923 * Lookup374: up_data_structs::CollectionStats2924 **/2925 UpDataStructsCollectionStats: {2926 created: 'u32',2927 destroyed: 'u32',2928 alive: 'u32'2929 },2930 /**2931 * Lookup375: up_data_structs::TokenChild2932 **/2933 UpDataStructsTokenChild: {2934 token: 'u32',2935 collection: 'u32'2936 },2937 /**2938 * Lookup376: PhantomType::up_data_structs<T>2939 **/2940 PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,RmrkTraitsCollectionCollectionInfo,RmrkTraitsNftNftInfo,RmrkTraitsResourceResourceInfo,RmrkTraitsPropertyPropertyInfo,RmrkTraitsBaseBaseInfo,RmrkTraitsPartPartType,RmrkTraitsTheme,RmrkTraitsNftNftChild);0]',2941 /**2942 * Lookup378: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>2943 **/2944 UpDataStructsTokenData: {2945 properties: 'Vec<UpDataStructsProperty>',2946 owner: 'Option<PalletEvmAccountBasicCrossAccountIdRepr>',2947 pieces: 'u128'2948 },2949 /**2950 * Lookup380: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>2951 **/2952 UpDataStructsRpcCollection: {2953 owner: 'AccountId32',2954 mode: 'UpDataStructsCollectionMode',2955 name: 'Vec<u16>',2956 description: 'Vec<u16>',2957 tokenPrefix: 'Bytes',2958 sponsorship: 'UpDataStructsSponsorshipState',2959 limits: 'UpDataStructsCollectionLimits',2960 permissions: 'UpDataStructsCollectionPermissions',2961 tokenPropertyPermissions: 'Vec<UpDataStructsPropertyKeyPermission>',2962 properties: 'Vec<UpDataStructsProperty>',2963 readOnly: 'bool'2964 },2965 /**2966 * Lookup381: rmrk_traits::collection::CollectionInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_core::crypto::AccountId32>2967 **/2968 RmrkTraitsCollectionCollectionInfo: {2969 issuer: 'AccountId32',2970 metadata: 'Bytes',2971 max: 'Option<u32>',2972 symbol: 'Bytes',2973 nftsCount: 'u32'2974 },2975 /**2976 * Lookup382: rmrk_traits::nft::NftInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>2977 **/2978 RmrkTraitsNftNftInfo: {2979 owner: 'RmrkTraitsNftAccountIdOrCollectionNftTuple',2980 royalty: 'Option<RmrkTraitsNftRoyaltyInfo>',2981 metadata: 'Bytes',2982 equipped: 'bool',2983 pending: 'bool'2984 },2985 /**2986 * Lookup384: rmrk_traits::nft::RoyaltyInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill>2987 **/2988 RmrkTraitsNftRoyaltyInfo: {2989 recipient: 'AccountId32',2990 amount: 'Permill'2991 },2992 /**2993 * Lookup385: rmrk_traits::resource::ResourceInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>2994 **/2995 RmrkTraitsResourceResourceInfo: {2996 id: 'u32',2997 resource: 'RmrkTraitsResourceResourceTypes',2998 pending: 'bool',2999 pendingRemoval: 'bool'3000 },3001 /**3002 * Lookup386: rmrk_traits::property::PropertyInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>3003 **/3004 RmrkTraitsPropertyPropertyInfo: {3005 key: 'Bytes',3006 value: 'Bytes'3007 },3008 /**3009 * Lookup387: rmrk_traits::base::BaseInfo<sp_core::crypto::AccountId32, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>3010 **/3011 RmrkTraitsBaseBaseInfo: {3012 issuer: 'AccountId32',3013 baseType: 'Bytes',3014 symbol: 'Bytes'3015 },3016 /**3017 * Lookup388: rmrk_traits::nft::NftChild3018 **/3019 RmrkTraitsNftNftChild: {3020 collectionId: 'u32',3021 nftId: 'u32'3022 },3023 /**3024 * Lookup390: pallet_common::pallet::Error<T>3025 **/3026 PalletCommonError: {3027 _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']3028 },3029 /**3030 * Lookup392: pallet_fungible::pallet::Error<T>3031 **/3032 PalletFungibleError: {3033 _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed']3034 },3035 /**3036 * Lookup393: pallet_refungible::ItemData3037 **/3038 PalletRefungibleItemData: {3039 constData: 'Bytes'3040 },3041 /**3042 * Lookup398: pallet_refungible::pallet::Error<T>3043 **/3044 PalletRefungibleError: {3045 _enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RepartitionWhileNotOwningAllPieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']3046 },3047 /**3048 * Lookup399: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>3049 **/3050 PalletNonfungibleItemData: {3051 owner: 'PalletEvmAccountBasicCrossAccountIdRepr'3052 },3053 /**3054 * Lookup401: up_data_structs::PropertyScope3055 **/3056 UpDataStructsPropertyScope: {3057 _enum: ['None', 'Rmrk', 'Eth']3058 },3059 /**3060 * Lookup403: pallet_nonfungible::pallet::Error<T>3061 **/3062 PalletNonfungibleError: {3063 _enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount', 'CantBurnNftWithChildren']3064 },3065 /**3066 * Lookup404: pallet_structure::pallet::Error<T>3067 **/3068 PalletStructureError: {3069 _enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound']3070 },3071 /**3072 * Lookup405: pallet_rmrk_core::pallet::Error<T>3073 **/3074 PalletRmrkCoreError: {3075 _enum: ['CorruptedCollectionType', 'RmrkPropertyKeyIsTooLong', 'RmrkPropertyValueIsTooLong', 'RmrkPropertyIsNotFound', 'UnableToDecodeRmrkData', 'CollectionNotEmpty', 'NoAvailableCollectionId', 'NoAvailableNftId', 'CollectionUnknown', 'NoPermission', 'NonTransferable', 'CollectionFullOrLocked', 'ResourceDoesntExist', 'CannotSendToDescendentOrSelf', 'CannotAcceptNonOwnedNft', 'CannotRejectNonOwnedNft', 'CannotRejectNonPendingNft', 'ResourceNotPending', 'NoAvailableResourceId']3076 },3077 /**3078 * Lookup407: pallet_rmrk_equip::pallet::Error<T>3079 **/3080 PalletRmrkEquipError: {3081 _enum: ['PermissionError', 'NoAvailableBaseId', 'NoAvailablePartId', 'BaseDoesntExist', 'NeedsDefaultThemeFirst', 'PartDoesntExist', 'NoEquippableOnFixedPart']3082 },3083 /**3084 * Lookup411: pallet_evm::pallet::Error<T>3085 **/3086 PalletEvmError: {3087 _enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce']3088 },3089 /**3090 * Lookup414: fp_rpc::TransactionStatus3091 **/3092 FpRpcTransactionStatus: {3093 transactionHash: 'H256',3094 transactionIndex: 'u32',3095 from: 'H160',3096 to: 'Option<H160>',3097 contractAddress: 'Option<H160>',3098 logs: 'Vec<EthereumLog>',3099 logsBloom: 'EthbloomBloom'3100 },3101 /**3102 * Lookup416: ethbloom::Bloom3103 **/3104 EthbloomBloom: '[u8;256]',3105 /**3106 * Lookup418: ethereum::receipt::ReceiptV33107 **/3108 EthereumReceiptReceiptV3: {3109 _enum: {3110 Legacy: 'EthereumReceiptEip658ReceiptData',3111 EIP2930: 'EthereumReceiptEip658ReceiptData',3112 EIP1559: 'EthereumReceiptEip658ReceiptData'3113 }3114 },3115 /**3116 * Lookup419: ethereum::receipt::EIP658ReceiptData3117 **/3118 EthereumReceiptEip658ReceiptData: {3119 statusCode: 'u8',3120 usedGas: 'U256',3121 logsBloom: 'EthbloomBloom',3122 logs: 'Vec<EthereumLog>'3123 },3124 /**3125 * Lookup420: ethereum::block::Block<ethereum::transaction::TransactionV2>3126 **/3127 EthereumBlock: {3128 header: 'EthereumHeader',3129 transactions: 'Vec<EthereumTransactionTransactionV2>',3130 ommers: 'Vec<EthereumHeader>'3131 },3132 /**3133 * Lookup421: ethereum::header::Header3134 **/3135 EthereumHeader: {3136 parentHash: 'H256',3137 ommersHash: 'H256',3138 beneficiary: 'H160',3139 stateRoot: 'H256',3140 transactionsRoot: 'H256',3141 receiptsRoot: 'H256',3142 logsBloom: 'EthbloomBloom',3143 difficulty: 'U256',3144 number: 'U256',3145 gasLimit: 'U256',3146 gasUsed: 'U256',3147 timestamp: 'u64',3148 extraData: 'Bytes',3149 mixHash: 'H256',3150 nonce: 'EthereumTypesHashH64'3151 },3152 /**3153 * Lookup422: ethereum_types::hash::H643154 **/3155 EthereumTypesHashH64: '[u8;8]',3156 /**3157 * Lookup427: pallet_ethereum::pallet::Error<T>3158 **/3159 PalletEthereumError: {3160 _enum: ['InvalidSignature', 'PreLogExists']3161 },3162 /**3163 * Lookup428: pallet_evm_coder_substrate::pallet::Error<T>3164 **/3165 PalletEvmCoderSubstrateError: {3166 _enum: ['OutOfGas', 'OutOfFund']3167 },3168 /**3169 * Lookup429: pallet_evm_contract_helpers::SponsoringModeT3170 **/3171 PalletEvmContractHelpersSponsoringModeT: {3172 _enum: ['Disabled', 'Allowlisted', 'Generous']3173 },3174 /**3175 * Lookup431: pallet_evm_contract_helpers::pallet::Error<T>3176 **/3177 PalletEvmContractHelpersError: {3178 _enum: ['NoPermission']3179 },3180 /**3181 * Lookup432: pallet_evm_migration::pallet::Error<T>3182 **/3183 PalletEvmMigrationError: {3184 _enum: ['AccountNotEmpty', 'AccountIsNotMigrating']3185 },3186 /**3187 * Lookup434: sp_runtime::MultiSignature3188 **/3189 SpRuntimeMultiSignature: {3190 _enum: {3191 Ed25519: 'SpCoreEd25519Signature',3192 Sr25519: 'SpCoreSr25519Signature',3193 Ecdsa: 'SpCoreEcdsaSignature'3194 }3195 },3196 /**3197 * Lookup435: sp_core::ed25519::Signature3198 **/3199 SpCoreEd25519Signature: '[u8;64]',3200 /**3201 * Lookup437: sp_core::sr25519::Signature3202 **/3203 SpCoreSr25519Signature: '[u8;64]',3204 /**3205 * Lookup438: sp_core::ecdsa::Signature3206 **/3207 SpCoreEcdsaSignature: '[u8;65]',3208 /**3209 * Lookup441: frame_system::extensions::check_spec_version::CheckSpecVersion<T>3210 **/3211 FrameSystemExtensionsCheckSpecVersion: 'Null',3212 /**3213 * Lookup442: frame_system::extensions::check_genesis::CheckGenesis<T>3214 **/3215 FrameSystemExtensionsCheckGenesis: 'Null',3216 /**3217 * Lookup445: frame_system::extensions::check_nonce::CheckNonce<T>3218 **/3219 FrameSystemExtensionsCheckNonce: 'Compact<u32>',3220 /**3221 * Lookup446: frame_system::extensions::check_weight::CheckWeight<T>3222 **/3223 FrameSystemExtensionsCheckWeight: 'Null',3224 /**3225 * Lookup447: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>3226 **/3227 PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',3228 /**3229 * Lookup448: opal_runtime::Runtime3230 **/3231 OpalRuntimeRuntime: 'Null',3232 /**3233 * Lookup449: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>3234 **/3235 PalletEthereumFakeTransactionFinalizer: 'Null'3236};tests/src/interfaces/registry.tsdiffbeforeafterboth--- a/tests/src/interfaces/registry.ts
+++ b/tests/src/interfaces/registry.ts
@@ -5,7 +5,7 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/types/registry';
-import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletAppPromotionCall, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletConfigurationCall, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletUniqueSchedulerCall, PalletUniqueSchedulerError, PalletUniqueSchedulerEvent, PalletUniqueSchedulerScheduledV3, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExMultipleOwners, UpDataStructsCreateRefungibleExSingleOwner, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsRpcCollection, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, UpDataStructsTokenChild, UpDataStructsTokenData, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
+import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeOriginCaller, OpalRuntimeRuntime, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletConfigurationCall, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEthereumRawOrigin, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletUniqueSchedulerCall, PalletUniqueSchedulerError, PalletUniqueSchedulerEvent, PalletUniqueSchedulerScheduledV3, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsNftRoyaltyInfo, RmrkTraitsPartEquippableList, RmrkTraitsPartFixedPart, RmrkTraitsPartPartType, RmrkTraitsPartSlotPart, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceInfo, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, RmrkTraitsThemeThemeProperty, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExMultipleOwners, UpDataStructsCreateRefungibleExSingleOwner, UpDataStructsNestingPermissions, UpDataStructsOwnerRestrictedSet, UpDataStructsProperties, UpDataStructsPropertiesMapBoundedVec, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsRpcCollection, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, UpDataStructsTokenChild, UpDataStructsTokenData, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
declare module '@polkadot/types/types/registry' {
interface InterfaceTypes {
@@ -84,6 +84,8 @@
OrmlVestingModuleEvent: OrmlVestingModuleEvent;
OrmlVestingVestingSchedule: OrmlVestingVestingSchedule;
PalletAppPromotionCall: PalletAppPromotionCall;
+ PalletAppPromotionError: PalletAppPromotionError;
+ PalletAppPromotionEvent: PalletAppPromotionEvent;
PalletBalancesAccountData: PalletBalancesAccountData;
PalletBalancesBalanceLock: PalletBalancesBalanceLock;
PalletBalancesCall: PalletBalancesCall;
tests/src/interfaces/types-lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/types-lookup.ts
+++ b/tests/src/interfaces/types-lookup.ts
@@ -1198,7 +1198,14 @@
readonly type: 'BaseCreated' | 'EquippablesUpdated';
}
- /** @name PalletEvmEvent (103) */
+ /** @name PalletAppPromotionEvent (103) */
+ interface PalletAppPromotionEvent extends Enum {
+ readonly isStakingRecalculation: boolean;
+ readonly asStakingRecalculation: ITuple<[u128, u128]>;
+ readonly type: 'StakingRecalculation';
+ }
+
+ /** @name PalletEvmEvent (104) */
interface PalletEvmEvent extends Enum {
readonly isLog: boolean;
readonly asLog: EthereumLog;
@@ -1217,21 +1224,21 @@
readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed' | 'BalanceDeposit' | 'BalanceWithdraw';
}
- /** @name EthereumLog (104) */
+ /** @name EthereumLog (105) */
interface EthereumLog extends Struct {
readonly address: H160;
readonly topics: Vec<H256>;
readonly data: Bytes;
}
- /** @name PalletEthereumEvent (108) */
+ /** @name PalletEthereumEvent (109) */
interface PalletEthereumEvent extends Enum {
readonly isExecuted: boolean;
readonly asExecuted: ITuple<[H160, H160, H256, EvmCoreErrorExitReason]>;
readonly type: 'Executed';
}
- /** @name EvmCoreErrorExitReason (109) */
+ /** @name EvmCoreErrorExitReason (110) */
interface EvmCoreErrorExitReason extends Enum {
readonly isSucceed: boolean;
readonly asSucceed: EvmCoreErrorExitSucceed;
@@ -1244,7 +1251,7 @@
readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';
}
- /** @name EvmCoreErrorExitSucceed (110) */
+ /** @name EvmCoreErrorExitSucceed (111) */
interface EvmCoreErrorExitSucceed extends Enum {
readonly isStopped: boolean;
readonly isReturned: boolean;
@@ -1252,7 +1259,7 @@
readonly type: 'Stopped' | 'Returned' | 'Suicided';
}
- /** @name EvmCoreErrorExitError (111) */
+ /** @name EvmCoreErrorExitError (112) */
interface EvmCoreErrorExitError extends Enum {
readonly isStackUnderflow: boolean;
readonly isStackOverflow: boolean;
@@ -1273,13 +1280,13 @@
readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'InvalidCode';
}
- /** @name EvmCoreErrorExitRevert (114) */
+ /** @name EvmCoreErrorExitRevert (115) */
interface EvmCoreErrorExitRevert extends Enum {
readonly isReverted: boolean;
readonly type: 'Reverted';
}
- /** @name EvmCoreErrorExitFatal (115) */
+ /** @name EvmCoreErrorExitFatal (116) */
interface EvmCoreErrorExitFatal extends Enum {
readonly isNotSupported: boolean;
readonly isUnhandledInterrupt: boolean;
@@ -1290,7 +1297,7 @@
readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';
}
- /** @name FrameSystemPhase (116) */
+ /** @name FrameSystemPhase (117) */
interface FrameSystemPhase extends Enum {
readonly isApplyExtrinsic: boolean;
readonly asApplyExtrinsic: u32;
@@ -1299,13 +1306,13 @@
readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';
}
- /** @name FrameSystemLastRuntimeUpgradeInfo (118) */
+ /** @name FrameSystemLastRuntimeUpgradeInfo (119) */
interface FrameSystemLastRuntimeUpgradeInfo extends Struct {
readonly specVersion: Compact<u32>;
readonly specName: Text;
}
- /** @name FrameSystemCall (119) */
+ /** @name FrameSystemCall (120) */
interface FrameSystemCall extends Enum {
readonly isFillBlock: boolean;
readonly asFillBlock: {
@@ -1347,21 +1354,21 @@
readonly type: 'FillBlock' | 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';
}
- /** @name FrameSystemLimitsBlockWeights (124) */
+ /** @name FrameSystemLimitsBlockWeights (125) */
interface FrameSystemLimitsBlockWeights extends Struct {
readonly baseBlock: u64;
readonly maxBlock: u64;
readonly perClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;
}
- /** @name FrameSupportWeightsPerDispatchClassWeightsPerClass (125) */
+ /** @name FrameSupportWeightsPerDispatchClassWeightsPerClass (126) */
interface FrameSupportWeightsPerDispatchClassWeightsPerClass extends Struct {
readonly normal: FrameSystemLimitsWeightsPerClass;
readonly operational: FrameSystemLimitsWeightsPerClass;
readonly mandatory: FrameSystemLimitsWeightsPerClass;
}
- /** @name FrameSystemLimitsWeightsPerClass (126) */
+ /** @name FrameSystemLimitsWeightsPerClass (127) */
interface FrameSystemLimitsWeightsPerClass extends Struct {
readonly baseExtrinsic: u64;
readonly maxExtrinsic: Option<u64>;
@@ -1369,25 +1376,25 @@
readonly reserved: Option<u64>;
}
- /** @name FrameSystemLimitsBlockLength (128) */
+ /** @name FrameSystemLimitsBlockLength (129) */
interface FrameSystemLimitsBlockLength extends Struct {
readonly max: FrameSupportWeightsPerDispatchClassU32;
}
- /** @name FrameSupportWeightsPerDispatchClassU32 (129) */
+ /** @name FrameSupportWeightsPerDispatchClassU32 (130) */
interface FrameSupportWeightsPerDispatchClassU32 extends Struct {
readonly normal: u32;
readonly operational: u32;
readonly mandatory: u32;
}
- /** @name FrameSupportWeightsRuntimeDbWeight (130) */
+ /** @name FrameSupportWeightsRuntimeDbWeight (131) */
interface FrameSupportWeightsRuntimeDbWeight extends Struct {
readonly read: u64;
readonly write: u64;
}
- /** @name SpVersionRuntimeVersion (131) */
+ /** @name SpVersionRuntimeVersion (132) */
interface SpVersionRuntimeVersion extends Struct {
readonly specName: Text;
readonly implName: Text;
@@ -1399,7 +1406,7 @@
readonly stateVersion: u8;
}
- /** @name FrameSystemError (136) */
+ /** @name FrameSystemError (137) */
interface FrameSystemError extends Enum {
readonly isInvalidSpecName: boolean;
readonly isSpecVersionNeedsToIncrease: boolean;
@@ -1410,7 +1417,7 @@
readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';
}
- /** @name PolkadotPrimitivesV2PersistedValidationData (137) */
+ /** @name PolkadotPrimitivesV2PersistedValidationData (138) */
interface PolkadotPrimitivesV2PersistedValidationData extends Struct {
readonly parentHead: Bytes;
readonly relayParentNumber: u32;
@@ -1418,18 +1425,18 @@
readonly maxPovSize: u32;
}
- /** @name PolkadotPrimitivesV2UpgradeRestriction (140) */
+ /** @name PolkadotPrimitivesV2UpgradeRestriction (141) */
interface PolkadotPrimitivesV2UpgradeRestriction extends Enum {
readonly isPresent: boolean;
readonly type: 'Present';
}
- /** @name SpTrieStorageProof (141) */
+ /** @name SpTrieStorageProof (142) */
interface SpTrieStorageProof extends Struct {
readonly trieNodes: BTreeSet<Bytes>;
}
- /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (143) */
+ /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (144) */
interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct {
readonly dmqMqcHead: H256;
readonly relayDispatchQueueSize: ITuple<[u32, u32]>;
@@ -1437,7 +1444,7 @@
readonly egressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;
}
- /** @name PolkadotPrimitivesV2AbridgedHrmpChannel (146) */
+ /** @name PolkadotPrimitivesV2AbridgedHrmpChannel (147) */
interface PolkadotPrimitivesV2AbridgedHrmpChannel extends Struct {
readonly maxCapacity: u32;
readonly maxTotalSize: u32;
@@ -1447,7 +1454,7 @@
readonly mqcHead: Option<H256>;
}
- /** @name PolkadotPrimitivesV2AbridgedHostConfiguration (147) */
+ /** @name PolkadotPrimitivesV2AbridgedHostConfiguration (148) */
interface PolkadotPrimitivesV2AbridgedHostConfiguration extends Struct {
readonly maxCodeSize: u32;
readonly maxHeadDataSize: u32;
@@ -1460,13 +1467,13 @@
readonly validationUpgradeDelay: u32;
}
- /** @name PolkadotCorePrimitivesOutboundHrmpMessage (153) */
+ /** @name PolkadotCorePrimitivesOutboundHrmpMessage (154) */
interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {
readonly recipient: u32;
readonly data: Bytes;
}
- /** @name CumulusPalletParachainSystemCall (154) */
+ /** @name CumulusPalletParachainSystemCall (155) */
interface CumulusPalletParachainSystemCall extends Enum {
readonly isSetValidationData: boolean;
readonly asSetValidationData: {
@@ -1487,7 +1494,7 @@
readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade';
}
- /** @name CumulusPrimitivesParachainInherentParachainInherentData (155) */
+ /** @name CumulusPrimitivesParachainInherentParachainInherentData (156) */
interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct {
readonly validationData: PolkadotPrimitivesV2PersistedValidationData;
readonly relayChainState: SpTrieStorageProof;
@@ -1495,19 +1502,19 @@
readonly horizontalMessages: BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>;
}
- /** @name PolkadotCorePrimitivesInboundDownwardMessage (157) */
+ /** @name PolkadotCorePrimitivesInboundDownwardMessage (158) */
interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
readonly sentAt: u32;
readonly msg: Bytes;
}
- /** @name PolkadotCorePrimitivesInboundHrmpMessage (160) */
+ /** @name PolkadotCorePrimitivesInboundHrmpMessage (161) */
interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
readonly sentAt: u32;
readonly data: Bytes;
}
- /** @name CumulusPalletParachainSystemError (163) */
+ /** @name CumulusPalletParachainSystemError (164) */
interface CumulusPalletParachainSystemError extends Enum {
readonly isOverlappingUpgrades: boolean;
readonly isProhibitedByPolkadot: boolean;
@@ -1520,14 +1527,14 @@
readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';
}
- /** @name PalletBalancesBalanceLock (165) */
+ /** @name PalletBalancesBalanceLock (166) */
interface PalletBalancesBalanceLock extends Struct {
readonly id: U8aFixed;
readonly amount: u128;
readonly reasons: PalletBalancesReasons;
}
- /** @name PalletBalancesReasons (166) */
+ /** @name PalletBalancesReasons (167) */
interface PalletBalancesReasons extends Enum {
readonly isFee: boolean;
readonly isMisc: boolean;
@@ -1535,20 +1542,20 @@
readonly type: 'Fee' | 'Misc' | 'All';
}
- /** @name PalletBalancesReserveData (169) */
+ /** @name PalletBalancesReserveData (170) */
interface PalletBalancesReserveData extends Struct {
readonly id: U8aFixed;
readonly amount: u128;
}
- /** @name PalletBalancesReleases (171) */
+ /** @name PalletBalancesReleases (172) */
interface PalletBalancesReleases extends Enum {
readonly isV100: boolean;
readonly isV200: boolean;
readonly type: 'V100' | 'V200';
}
- /** @name PalletBalancesCall (172) */
+ /** @name PalletBalancesCall (173) */
interface PalletBalancesCall extends Enum {
readonly isTransfer: boolean;
readonly asTransfer: {
@@ -1585,7 +1592,7 @@
readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';
}
- /** @name PalletBalancesError (175) */
+ /** @name PalletBalancesError (176) */
interface PalletBalancesError extends Enum {
readonly isVestingBalance: boolean;
readonly isLiquidityRestrictions: boolean;
@@ -1598,7 +1605,7 @@
readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';
}
- /** @name PalletTimestampCall (177) */
+ /** @name PalletTimestampCall (178) */
interface PalletTimestampCall extends Enum {
readonly isSet: boolean;
readonly asSet: {
@@ -1607,14 +1614,14 @@
readonly type: 'Set';
}
- /** @name PalletTransactionPaymentReleases (179) */
+ /** @name PalletTransactionPaymentReleases (180) */
interface PalletTransactionPaymentReleases extends Enum {
readonly isV1Ancient: boolean;
readonly isV2: boolean;
readonly type: 'V1Ancient' | 'V2';
}
- /** @name PalletTreasuryProposal (180) */
+ /** @name PalletTreasuryProposal (181) */
interface PalletTreasuryProposal extends Struct {
readonly proposer: AccountId32;
readonly value: u128;
@@ -1622,7 +1629,7 @@
readonly bond: u128;
}
- /** @name PalletTreasuryCall (183) */
+ /** @name PalletTreasuryCall (184) */
interface PalletTreasuryCall extends Enum {
readonly isProposeSpend: boolean;
readonly asProposeSpend: {
@@ -1649,10 +1656,10 @@
readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'Spend' | 'RemoveApproval';
}
- /** @name FrameSupportPalletId (186) */
+ /** @name FrameSupportPalletId (187) */
interface FrameSupportPalletId extends U8aFixed {}
- /** @name PalletTreasuryError (187) */
+ /** @name PalletTreasuryError (188) */
interface PalletTreasuryError extends Enum {
readonly isInsufficientProposersBalance: boolean;
readonly isInvalidIndex: boolean;
@@ -1662,7 +1669,7 @@
readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'InsufficientPermission' | 'ProposalNotApproved';
}
- /** @name PalletSudoCall (188) */
+ /** @name PalletSudoCall (189) */
interface PalletSudoCall extends Enum {
readonly isSudo: boolean;
readonly asSudo: {
@@ -1685,7 +1692,7 @@
readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';
}
- /** @name OrmlVestingModuleCall (190) */
+ /** @name OrmlVestingModuleCall (191) */
interface OrmlVestingModuleCall extends Enum {
readonly isClaim: boolean;
readonly isVestedTransfer: boolean;
@@ -1705,7 +1712,7 @@
readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';
}
- /** @name CumulusPalletXcmpQueueCall (192) */
+ /** @name CumulusPalletXcmpQueueCall (193) */
interface CumulusPalletXcmpQueueCall extends Enum {
readonly isServiceOverweight: boolean;
readonly asServiceOverweight: {
@@ -1741,7 +1748,7 @@
readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';
}
- /** @name PalletXcmCall (193) */
+ /** @name PalletXcmCall (194) */
interface PalletXcmCall extends Enum {
readonly isSend: boolean;
readonly asSend: {
@@ -1803,7 +1810,7 @@
readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';
}
- /** @name XcmVersionedXcm (194) */
+ /** @name XcmVersionedXcm (195) */
interface XcmVersionedXcm extends Enum {
readonly isV0: boolean;
readonly asV0: XcmV0Xcm;
@@ -1814,7 +1821,7 @@
readonly type: 'V0' | 'V1' | 'V2';
}
- /** @name XcmV0Xcm (195) */
+ /** @name XcmV0Xcm (196) */
interface XcmV0Xcm extends Enum {
readonly isWithdrawAsset: boolean;
readonly asWithdrawAsset: {
@@ -1877,7 +1884,7 @@
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';
}
- /** @name XcmV0Order (197) */
+ /** @name XcmV0Order (198) */
interface XcmV0Order extends Enum {
readonly isNull: boolean;
readonly isDepositAsset: boolean;
@@ -1925,14 +1932,14 @@
readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
}
- /** @name XcmV0Response (199) */
+ /** @name XcmV0Response (200) */
interface XcmV0Response extends Enum {
readonly isAssets: boolean;
readonly asAssets: Vec<XcmV0MultiAsset>;
readonly type: 'Assets';
}
- /** @name XcmV1Xcm (200) */
+ /** @name XcmV1Xcm (201) */
interface XcmV1Xcm extends Enum {
readonly isWithdrawAsset: boolean;
readonly asWithdrawAsset: {
@@ -2001,7 +2008,7 @@
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';
}
- /** @name XcmV1Order (202) */
+ /** @name XcmV1Order (203) */
interface XcmV1Order extends Enum {
readonly isNoop: boolean;
readonly isDepositAsset: boolean;
@@ -2051,7 +2058,7 @@
readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
}
- /** @name XcmV1Response (204) */
+ /** @name XcmV1Response (205) */
interface XcmV1Response extends Enum {
readonly isAssets: boolean;
readonly asAssets: XcmV1MultiassetMultiAssets;
@@ -2060,10 +2067,10 @@
readonly type: 'Assets' | 'Version';
}
- /** @name CumulusPalletXcmCall (218) */
+ /** @name CumulusPalletXcmCall (219) */
type CumulusPalletXcmCall = Null;
- /** @name CumulusPalletDmpQueueCall (219) */
+ /** @name CumulusPalletDmpQueueCall (220) */
interface CumulusPalletDmpQueueCall extends Enum {
readonly isServiceOverweight: boolean;
readonly asServiceOverweight: {
@@ -2073,7 +2080,7 @@
readonly type: 'ServiceOverweight';
}
- /** @name PalletInflationCall (220) */
+ /** @name PalletInflationCall (221) */
interface PalletInflationCall extends Enum {
readonly isStartInflation: boolean;
readonly asStartInflation: {
@@ -2082,7 +2089,7 @@
readonly type: 'StartInflation';
}
- /** @name PalletUniqueCall (221) */
+ /** @name PalletUniqueCall (222) */
interface PalletUniqueCall extends Enum {
readonly isCreateCollection: boolean;
readonly asCreateCollection: {
@@ -2240,7 +2247,7 @@
readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition';
}
- /** @name UpDataStructsCollectionMode (226) */
+ /** @name UpDataStructsCollectionMode (227) */
interface UpDataStructsCollectionMode extends Enum {
readonly isNft: boolean;
readonly isFungible: boolean;
@@ -2249,7 +2256,7 @@
readonly type: 'Nft' | 'Fungible' | 'ReFungible';
}
- /** @name UpDataStructsCreateCollectionData (227) */
+ /** @name UpDataStructsCreateCollectionData (228) */
interface UpDataStructsCreateCollectionData extends Struct {
readonly mode: UpDataStructsCollectionMode;
readonly access: Option<UpDataStructsAccessMode>;
@@ -2263,14 +2270,14 @@
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name UpDataStructsAccessMode (229) */
+ /** @name UpDataStructsAccessMode (230) */
interface UpDataStructsAccessMode extends Enum {
readonly isNormal: boolean;
readonly isAllowList: boolean;
readonly type: 'Normal' | 'AllowList';
}
- /** @name UpDataStructsCollectionLimits (231) */
+ /** @name UpDataStructsCollectionLimits (232) */
interface UpDataStructsCollectionLimits extends Struct {
readonly accountTokenOwnershipLimit: Option<u32>;
readonly sponsoredDataSize: Option<u32>;
@@ -2283,7 +2290,7 @@
readonly transfersEnabled: Option<bool>;
}
- /** @name UpDataStructsSponsoringRateLimit (233) */
+ /** @name UpDataStructsSponsoringRateLimit (234) */
interface UpDataStructsSponsoringRateLimit extends Enum {
readonly isSponsoringDisabled: boolean;
readonly isBlocks: boolean;
@@ -2291,43 +2298,43 @@
readonly type: 'SponsoringDisabled' | 'Blocks';
}
- /** @name UpDataStructsCollectionPermissions (236) */
+ /** @name UpDataStructsCollectionPermissions (237) */
interface UpDataStructsCollectionPermissions extends Struct {
readonly access: Option<UpDataStructsAccessMode>;
readonly mintMode: Option<bool>;
readonly nesting: Option<UpDataStructsNestingPermissions>;
}
- /** @name UpDataStructsNestingPermissions (238) */
+ /** @name UpDataStructsNestingPermissions (239) */
interface UpDataStructsNestingPermissions extends Struct {
readonly tokenOwner: bool;
readonly collectionAdmin: bool;
readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;
}
- /** @name UpDataStructsOwnerRestrictedSet (240) */
+ /** @name UpDataStructsOwnerRestrictedSet (241) */
interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}
- /** @name UpDataStructsPropertyKeyPermission (245) */
+ /** @name UpDataStructsPropertyKeyPermission (246) */
interface UpDataStructsPropertyKeyPermission extends Struct {
readonly key: Bytes;
readonly permission: UpDataStructsPropertyPermission;
}
- /** @name UpDataStructsPropertyPermission (246) */
+ /** @name UpDataStructsPropertyPermission (247) */
interface UpDataStructsPropertyPermission extends Struct {
readonly mutable: bool;
readonly collectionAdmin: bool;
readonly tokenOwner: bool;
}
- /** @name UpDataStructsProperty (249) */
+ /** @name UpDataStructsProperty (250) */
interface UpDataStructsProperty extends Struct {
readonly key: Bytes;
readonly value: Bytes;
}
- /** @name UpDataStructsCreateItemData (252) */
+ /** @name UpDataStructsCreateItemData (253) */
interface UpDataStructsCreateItemData extends Enum {
readonly isNft: boolean;
readonly asNft: UpDataStructsCreateNftData;
@@ -2338,23 +2345,23 @@
readonly type: 'Nft' | 'Fungible' | 'ReFungible';
}
- /** @name UpDataStructsCreateNftData (253) */
+ /** @name UpDataStructsCreateNftData (254) */
interface UpDataStructsCreateNftData extends Struct {
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name UpDataStructsCreateFungibleData (254) */
+ /** @name UpDataStructsCreateFungibleData (255) */
interface UpDataStructsCreateFungibleData extends Struct {
readonly value: u128;
}
- /** @name UpDataStructsCreateReFungibleData (255) */
+ /** @name UpDataStructsCreateReFungibleData (256) */
interface UpDataStructsCreateReFungibleData extends Struct {
readonly pieces: u128;
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name UpDataStructsCreateItemExData (258) */
+ /** @name UpDataStructsCreateItemExData (259) */
interface UpDataStructsCreateItemExData extends Enum {
readonly isNft: boolean;
readonly asNft: Vec<UpDataStructsCreateNftExData>;
@@ -2367,26 +2374,26 @@
readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';
}
- /** @name UpDataStructsCreateNftExData (260) */
+ /** @name UpDataStructsCreateNftExData (261) */
interface UpDataStructsCreateNftExData extends Struct {
readonly properties: Vec<UpDataStructsProperty>;
readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
}
- /** @name UpDataStructsCreateRefungibleExSingleOwner (267) */
+ /** @name UpDataStructsCreateRefungibleExSingleOwner (268) */
interface UpDataStructsCreateRefungibleExSingleOwner extends Struct {
readonly user: PalletEvmAccountBasicCrossAccountIdRepr;
readonly pieces: u128;
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name UpDataStructsCreateRefungibleExMultipleOwners (269) */
+ /** @name UpDataStructsCreateRefungibleExMultipleOwners (270) */
interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct {
readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name PalletUniqueSchedulerCall (270) */
+ /** @name PalletUniqueSchedulerCall (271) */
interface PalletUniqueSchedulerCall extends Enum {
readonly isScheduleNamed: boolean;
readonly asScheduleNamed: {
@@ -2411,7 +2418,7 @@
readonly type: 'ScheduleNamed' | 'CancelNamed' | 'ScheduleNamedAfter';
}
- /** @name FrameSupportScheduleMaybeHashed (272) */
+ /** @name FrameSupportScheduleMaybeHashed (273) */
interface FrameSupportScheduleMaybeHashed extends Enum {
readonly isValue: boolean;
readonly asValue: Call;
@@ -2420,7 +2427,7 @@
readonly type: 'Value' | 'Hash';
}
- /** @name PalletConfigurationCall (273) */
+ /** @name PalletConfigurationCall (274) */
interface PalletConfigurationCall extends Enum {
readonly isSetWeightToFeeCoefficientOverride: boolean;
readonly asSetWeightToFeeCoefficientOverride: {
@@ -2433,13 +2440,13 @@
readonly type: 'SetWeightToFeeCoefficientOverride' | 'SetMinGasPriceOverride';
}
- /** @name PalletTemplateTransactionPaymentCall (274) */
+ /** @name PalletTemplateTransactionPaymentCall (275) */
type PalletTemplateTransactionPaymentCall = Null;
- /** @name PalletStructureCall (275) */
+ /** @name PalletStructureCall (276) */
type PalletStructureCall = Null;
- /** @name PalletRmrkCoreCall (276) */
+ /** @name PalletRmrkCoreCall (277) */
interface PalletRmrkCoreCall extends Enum {
readonly isCreateCollection: boolean;
readonly asCreateCollection: {
@@ -2545,7 +2552,7 @@
readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';
}
- /** @name RmrkTraitsResourceResourceTypes (282) */
+ /** @name RmrkTraitsResourceResourceTypes (283) */
interface RmrkTraitsResourceResourceTypes extends Enum {
readonly isBasic: boolean;
readonly asBasic: RmrkTraitsResourceBasicResource;
@@ -2556,7 +2563,7 @@
readonly type: 'Basic' | 'Composable' | 'Slot';
}
- /** @name RmrkTraitsResourceBasicResource (284) */
+ /** @name RmrkTraitsResourceBasicResource (285) */
interface RmrkTraitsResourceBasicResource extends Struct {
readonly src: Option<Bytes>;
readonly metadata: Option<Bytes>;
@@ -2564,7 +2571,7 @@
readonly thumb: Option<Bytes>;
}
- /** @name RmrkTraitsResourceComposableResource (286) */
+ /** @name RmrkTraitsResourceComposableResource (287) */
interface RmrkTraitsResourceComposableResource extends Struct {
readonly parts: Vec<u32>;
readonly base: u32;
@@ -2574,7 +2581,7 @@
readonly thumb: Option<Bytes>;
}
- /** @name RmrkTraitsResourceSlotResource (287) */
+ /** @name RmrkTraitsResourceSlotResource (288) */
interface RmrkTraitsResourceSlotResource extends Struct {
readonly base: u32;
readonly src: Option<Bytes>;
@@ -2584,7 +2591,7 @@
readonly thumb: Option<Bytes>;
}
- /** @name PalletRmrkEquipCall (290) */
+ /** @name PalletRmrkEquipCall (291) */
interface PalletRmrkEquipCall extends Enum {
readonly isCreateBase: boolean;
readonly asCreateBase: {
@@ -2606,7 +2613,7 @@
readonly type: 'CreateBase' | 'ThemeAdd' | 'Equippable';
}
- /** @name RmrkTraitsPartPartType (293) */
+ /** @name RmrkTraitsPartPartType (294) */
interface RmrkTraitsPartPartType extends Enum {
readonly isFixedPart: boolean;
readonly asFixedPart: RmrkTraitsPartFixedPart;
@@ -2615,14 +2622,14 @@
readonly type: 'FixedPart' | 'SlotPart';
}
- /** @name RmrkTraitsPartFixedPart (295) */
+ /** @name RmrkTraitsPartFixedPart (296) */
interface RmrkTraitsPartFixedPart extends Struct {
readonly id: u32;
readonly z: u32;
readonly src: Bytes;
}
- /** @name RmrkTraitsPartSlotPart (296) */
+ /** @name RmrkTraitsPartSlotPart (297) */
interface RmrkTraitsPartSlotPart extends Struct {
readonly id: u32;
readonly equippable: RmrkTraitsPartEquippableList;
@@ -2630,7 +2637,7 @@
readonly z: u32;
}
- /** @name RmrkTraitsPartEquippableList (297) */
+ /** @name RmrkTraitsPartEquippableList (298) */
interface RmrkTraitsPartEquippableList extends Enum {
readonly isAll: boolean;
readonly isEmpty: boolean;
@@ -2639,28 +2646,28 @@
readonly type: 'All' | 'Empty' | 'Custom';
}
- /** @name RmrkTraitsTheme (299) */
+ /** @name RmrkTraitsTheme (300) */
interface RmrkTraitsTheme extends Struct {
readonly name: Bytes;
readonly properties: Vec<RmrkTraitsThemeThemeProperty>;
readonly inherit: bool;
}
- /** @name RmrkTraitsThemeThemeProperty (301) */
+ /** @name RmrkTraitsThemeThemeProperty (302) */
interface RmrkTraitsThemeThemeProperty extends Struct {
readonly key: Bytes;
readonly value: Bytes;
}
- /** @name PalletAppPromotionCall (303) */
+ /** @name PalletAppPromotionCall (304) */
interface PalletAppPromotionCall extends Enum {
readonly isSetAdminAddress: boolean;
readonly asSetAdminAddress: {
- readonly admin: AccountId32;
+ readonly admin: PalletEvmAccountBasicCrossAccountIdRepr;
} & Struct;
readonly isStartAppPromotion: boolean;
readonly asStartAppPromotion: {
- readonly promotionStartRelayBlock: u32;
+ readonly promotionStartRelayBlock: Option<u32>;
} & Struct;
readonly isStake: boolean;
readonly asStake: {
@@ -2670,10 +2677,18 @@
readonly asUnstake: {
readonly amount: u128;
} & Struct;
- readonly type: 'SetAdminAddress' | 'StartAppPromotion' | 'Stake' | 'Unstake';
+ readonly isSponsorCollection: boolean;
+ readonly asSponsorCollection: {
+ readonly collectionId: u32;
+ } & Struct;
+ readonly isStopSponsorignCollection: boolean;
+ readonly asStopSponsorignCollection: {
+ readonly collectionId: u32;
+ } & Struct;
+ readonly type: 'SetAdminAddress' | 'StartAppPromotion' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsorignCollection';
}
- /** @name PalletEvmCall (304) */
+ /** @name PalletEvmCall (305) */
interface PalletEvmCall extends Enum {
readonly isWithdraw: boolean;
readonly asWithdraw: {
@@ -2718,7 +2733,7 @@
readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';
}
- /** @name PalletEthereumCall (308) */
+ /** @name PalletEthereumCall (309) */
interface PalletEthereumCall extends Enum {
readonly isTransact: boolean;
readonly asTransact: {
@@ -2727,7 +2742,7 @@
readonly type: 'Transact';
}
- /** @name EthereumTransactionTransactionV2 (309) */
+ /** @name EthereumTransactionTransactionV2 (310) */
interface EthereumTransactionTransactionV2 extends Enum {
readonly isLegacy: boolean;
readonly asLegacy: EthereumTransactionLegacyTransaction;
@@ -2738,7 +2753,7 @@
readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
}
- /** @name EthereumTransactionLegacyTransaction (310) */
+ /** @name EthereumTransactionLegacyTransaction (311) */
interface EthereumTransactionLegacyTransaction extends Struct {
readonly nonce: U256;
readonly gasPrice: U256;
@@ -2749,7 +2764,7 @@
readonly signature: EthereumTransactionTransactionSignature;
}
- /** @name EthereumTransactionTransactionAction (311) */
+ /** @name EthereumTransactionTransactionAction (312) */
interface EthereumTransactionTransactionAction extends Enum {
readonly isCall: boolean;
readonly asCall: H160;
@@ -2757,14 +2772,14 @@
readonly type: 'Call' | 'Create';
}
- /** @name EthereumTransactionTransactionSignature (312) */
+ /** @name EthereumTransactionTransactionSignature (313) */
interface EthereumTransactionTransactionSignature extends Struct {
readonly v: u64;
readonly r: H256;
readonly s: H256;
}
- /** @name EthereumTransactionEip2930Transaction (314) */
+ /** @name EthereumTransactionEip2930Transaction (315) */
interface EthereumTransactionEip2930Transaction extends Struct {
readonly chainId: u64;
readonly nonce: U256;
@@ -2779,13 +2794,13 @@
readonly s: H256;
}
- /** @name EthereumTransactionAccessListItem (316) */
+ /** @name EthereumTransactionAccessListItem (317) */
interface EthereumTransactionAccessListItem extends Struct {
readonly address: H160;
readonly storageKeys: Vec<H256>;
}
- /** @name EthereumTransactionEip1559Transaction (317) */
+ /** @name EthereumTransactionEip1559Transaction (318) */
interface EthereumTransactionEip1559Transaction extends Struct {
readonly chainId: u64;
readonly nonce: U256;
@@ -2801,7 +2816,7 @@
readonly s: H256;
}
- /** @name PalletEvmMigrationCall (318) */
+ /** @name PalletEvmMigrationCall (319) */
interface PalletEvmMigrationCall extends Enum {
readonly isBegin: boolean;
readonly asBegin: {
@@ -2820,13 +2835,13 @@
readonly type: 'Begin' | 'SetData' | 'Finish';
}
- /** @name PalletSudoError (321) */
+ /** @name PalletSudoError (322) */
interface PalletSudoError extends Enum {
readonly isRequireSudo: boolean;
readonly type: 'RequireSudo';
}
- /** @name OrmlVestingModuleError (323) */
+ /** @name OrmlVestingModuleError (324) */
interface OrmlVestingModuleError extends Enum {
readonly isZeroVestingPeriod: boolean;
readonly isZeroVestingPeriodCount: boolean;
@@ -2837,21 +2852,21 @@
readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';
}
- /** @name CumulusPalletXcmpQueueInboundChannelDetails (325) */
+ /** @name CumulusPalletXcmpQueueInboundChannelDetails (326) */
interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {
readonly sender: u32;
readonly state: CumulusPalletXcmpQueueInboundState;
readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;
}
- /** @name CumulusPalletXcmpQueueInboundState (326) */
+ /** @name CumulusPalletXcmpQueueInboundState (327) */
interface CumulusPalletXcmpQueueInboundState extends Enum {
readonly isOk: boolean;
readonly isSuspended: boolean;
readonly type: 'Ok' | 'Suspended';
}
- /** @name PolkadotParachainPrimitivesXcmpMessageFormat (329) */
+ /** @name PolkadotParachainPrimitivesXcmpMessageFormat (330) */
interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {
readonly isConcatenatedVersionedXcm: boolean;
readonly isConcatenatedEncodedBlob: boolean;
@@ -2859,7 +2874,7 @@
readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';
}
- /** @name CumulusPalletXcmpQueueOutboundChannelDetails (332) */
+ /** @name CumulusPalletXcmpQueueOutboundChannelDetails (333) */
interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {
readonly recipient: u32;
readonly state: CumulusPalletXcmpQueueOutboundState;
@@ -2868,14 +2883,14 @@
readonly lastIndex: u16;
}
- /** @name CumulusPalletXcmpQueueOutboundState (333) */
+ /** @name CumulusPalletXcmpQueueOutboundState (334) */
interface CumulusPalletXcmpQueueOutboundState extends Enum {
readonly isOk: boolean;
readonly isSuspended: boolean;
readonly type: 'Ok' | 'Suspended';
}
- /** @name CumulusPalletXcmpQueueQueueConfigData (335) */
+ /** @name CumulusPalletXcmpQueueQueueConfigData (336) */
interface CumulusPalletXcmpQueueQueueConfigData extends Struct {
readonly suspendThreshold: u32;
readonly dropThreshold: u32;
@@ -2885,7 +2900,7 @@
readonly xcmpMaxIndividualWeight: u64;
}
- /** @name CumulusPalletXcmpQueueError (337) */
+ /** @name CumulusPalletXcmpQueueError (338) */
interface CumulusPalletXcmpQueueError extends Enum {
readonly isFailedToSend: boolean;
readonly isBadXcmOrigin: boolean;
@@ -2895,7 +2910,7 @@
readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';
}
- /** @name PalletXcmError (338) */
+ /** @name PalletXcmError (339) */
interface PalletXcmError extends Enum {
readonly isUnreachable: boolean;
readonly isSendFailure: boolean;
@@ -2913,29 +2928,29 @@
readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';
}
- /** @name CumulusPalletXcmError (339) */
+ /** @name CumulusPalletXcmError (340) */
type CumulusPalletXcmError = Null;
- /** @name CumulusPalletDmpQueueConfigData (340) */
+ /** @name CumulusPalletDmpQueueConfigData (341) */
interface CumulusPalletDmpQueueConfigData extends Struct {
readonly maxIndividual: u64;
}
- /** @name CumulusPalletDmpQueuePageIndexData (341) */
+ /** @name CumulusPalletDmpQueuePageIndexData (342) */
interface CumulusPalletDmpQueuePageIndexData extends Struct {
readonly beginUsed: u32;
readonly endUsed: u32;
readonly overweightCount: u64;
}
- /** @name CumulusPalletDmpQueueError (344) */
+ /** @name CumulusPalletDmpQueueError (345) */
interface CumulusPalletDmpQueueError extends Enum {
readonly isUnknown: boolean;
readonly isOverLimit: boolean;
readonly type: 'Unknown' | 'OverLimit';
}
- /** @name PalletUniqueError (348) */
+ /** @name PalletUniqueError (349) */
interface PalletUniqueError extends Enum {
readonly isCollectionDecimalPointLimitExceeded: boolean;
readonly isConfirmUnsetSponsorFail: boolean;
@@ -2944,7 +2959,7 @@
readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';
}
- /** @name PalletUniqueSchedulerScheduledV3 (351) */
+ /** @name PalletUniqueSchedulerScheduledV3 (352) */
interface PalletUniqueSchedulerScheduledV3 extends Struct {
readonly maybeId: Option<U8aFixed>;
readonly priority: u8;
@@ -2953,7 +2968,7 @@
readonly origin: OpalRuntimeOriginCaller;
}
- /** @name OpalRuntimeOriginCaller (352) */
+ /** @name OpalRuntimeOriginCaller (353) */
interface OpalRuntimeOriginCaller extends Enum {
readonly isSystem: boolean;
readonly asSystem: FrameSupportDispatchRawOrigin;
@@ -2967,7 +2982,7 @@
readonly type: 'System' | 'Void' | 'PolkadotXcm' | 'CumulusXcm' | 'Ethereum';
}
- /** @name FrameSupportDispatchRawOrigin (353) */
+ /** @name FrameSupportDispatchRawOrigin (354) */
interface FrameSupportDispatchRawOrigin extends Enum {
readonly isRoot: boolean;
readonly isSigned: boolean;
@@ -2976,7 +2991,7 @@
readonly type: 'Root' | 'Signed' | 'None';
}
- /** @name PalletXcmOrigin (354) */
+ /** @name PalletXcmOrigin (355) */
interface PalletXcmOrigin extends Enum {
readonly isXcm: boolean;
readonly asXcm: XcmV1MultiLocation;
@@ -2985,7 +3000,7 @@
readonly type: 'Xcm' | 'Response';
}
- /** @name CumulusPalletXcmOrigin (355) */
+ /** @name CumulusPalletXcmOrigin (356) */
interface CumulusPalletXcmOrigin extends Enum {
readonly isRelay: boolean;
readonly isSiblingParachain: boolean;
@@ -2993,17 +3008,17 @@
readonly type: 'Relay' | 'SiblingParachain';
}
- /** @name PalletEthereumRawOrigin (356) */
+ /** @name PalletEthereumRawOrigin (357) */
interface PalletEthereumRawOrigin extends Enum {
readonly isEthereumTransaction: boolean;
readonly asEthereumTransaction: H160;
readonly type: 'EthereumTransaction';
}
- /** @name SpCoreVoid (357) */
+ /** @name SpCoreVoid (358) */
type SpCoreVoid = Null;
- /** @name PalletUniqueSchedulerError (358) */
+ /** @name PalletUniqueSchedulerError (359) */
interface PalletUniqueSchedulerError extends Enum {
readonly isFailedToSchedule: boolean;
readonly isNotFound: boolean;
@@ -3012,7 +3027,7 @@
readonly type: 'FailedToSchedule' | 'NotFound' | 'TargetBlockNumberInPast' | 'RescheduleNoChange';
}
- /** @name UpDataStructsCollection (359) */
+ /** @name UpDataStructsCollection (360) */
interface UpDataStructsCollection extends Struct {
readonly owner: AccountId32;
readonly mode: UpDataStructsCollectionMode;
@@ -3025,7 +3040,7 @@
readonly externalCollection: bool;
}
- /** @name UpDataStructsSponsorshipState (360) */
+ /** @name UpDataStructsSponsorshipState (361) */
interface UpDataStructsSponsorshipState extends Enum {
readonly isDisabled: boolean;
readonly isUnconfirmed: boolean;
@@ -3035,43 +3050,43 @@
readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';
}
- /** @name UpDataStructsProperties (361) */
+ /** @name UpDataStructsProperties (362) */
interface UpDataStructsProperties extends Struct {
readonly map: UpDataStructsPropertiesMapBoundedVec;
readonly consumedSpace: u32;
readonly spaceLimit: u32;
}
- /** @name UpDataStructsPropertiesMapBoundedVec (362) */
+ /** @name UpDataStructsPropertiesMapBoundedVec (363) */
interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}
- /** @name UpDataStructsPropertiesMapPropertyPermission (367) */
+ /** @name UpDataStructsPropertiesMapPropertyPermission (368) */
interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}
- /** @name UpDataStructsCollectionStats (374) */
+ /** @name UpDataStructsCollectionStats (375) */
interface UpDataStructsCollectionStats extends Struct {
readonly created: u32;
readonly destroyed: u32;
readonly alive: u32;
}
- /** @name UpDataStructsTokenChild (375) */
+ /** @name UpDataStructsTokenChild (376) */
interface UpDataStructsTokenChild extends Struct {
readonly token: u32;
readonly collection: u32;
}
- /** @name PhantomTypeUpDataStructs (376) */
+ /** @name PhantomTypeUpDataStructs (377) */
interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild]>> {}
- /** @name UpDataStructsTokenData (378) */
+ /** @name UpDataStructsTokenData (379) */
interface UpDataStructsTokenData extends Struct {
readonly properties: Vec<UpDataStructsProperty>;
readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;
readonly pieces: u128;
}
- /** @name UpDataStructsRpcCollection (380) */
+ /** @name UpDataStructsRpcCollection (381) */
interface UpDataStructsRpcCollection extends Struct {
readonly owner: AccountId32;
readonly mode: UpDataStructsCollectionMode;
@@ -3086,7 +3101,7 @@
readonly readOnly: bool;
}
- /** @name RmrkTraitsCollectionCollectionInfo (381) */
+ /** @name RmrkTraitsCollectionCollectionInfo (382) */
interface RmrkTraitsCollectionCollectionInfo extends Struct {
readonly issuer: AccountId32;
readonly metadata: Bytes;
@@ -3095,7 +3110,7 @@
readonly nftsCount: u32;
}
- /** @name RmrkTraitsNftNftInfo (382) */
+ /** @name RmrkTraitsNftNftInfo (383) */
interface RmrkTraitsNftNftInfo extends Struct {
readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple;
readonly royalty: Option<RmrkTraitsNftRoyaltyInfo>;
@@ -3104,13 +3119,13 @@
readonly pending: bool;
}
- /** @name RmrkTraitsNftRoyaltyInfo (384) */
+ /** @name RmrkTraitsNftRoyaltyInfo (385) */
interface RmrkTraitsNftRoyaltyInfo extends Struct {
readonly recipient: AccountId32;
readonly amount: Permill;
}
- /** @name RmrkTraitsResourceResourceInfo (385) */
+ /** @name RmrkTraitsResourceResourceInfo (386) */
interface RmrkTraitsResourceResourceInfo extends Struct {
readonly id: u32;
readonly resource: RmrkTraitsResourceResourceTypes;
@@ -3118,26 +3133,26 @@
readonly pendingRemoval: bool;
}
- /** @name RmrkTraitsPropertyPropertyInfo (386) */
+ /** @name RmrkTraitsPropertyPropertyInfo (387) */
interface RmrkTraitsPropertyPropertyInfo extends Struct {
readonly key: Bytes;
readonly value: Bytes;
}
- /** @name RmrkTraitsBaseBaseInfo (387) */
+ /** @name RmrkTraitsBaseBaseInfo (388) */
interface RmrkTraitsBaseBaseInfo extends Struct {
readonly issuer: AccountId32;
readonly baseType: Bytes;
readonly symbol: Bytes;
}
- /** @name RmrkTraitsNftNftChild (388) */
+ /** @name RmrkTraitsNftNftChild (389) */
interface RmrkTraitsNftNftChild extends Struct {
readonly collectionId: u32;
readonly nftId: u32;
}
- /** @name PalletCommonError (390) */
+ /** @name PalletCommonError (391) */
interface PalletCommonError extends Enum {
readonly isCollectionNotFound: boolean;
readonly isMustBeTokenOwner: boolean;
@@ -3176,7 +3191,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 (392) */
+ /** @name PalletFungibleError (393) */
interface PalletFungibleError extends Enum {
readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isFungibleItemsHaveNoId: boolean;
@@ -3186,12 +3201,12 @@
readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
}
- /** @name PalletRefungibleItemData (393) */
+ /** @name PalletRefungibleItemData (394) */
interface PalletRefungibleItemData extends Struct {
readonly constData: Bytes;
}
- /** @name PalletRefungibleError (398) */
+ /** @name PalletRefungibleError (399) */
interface PalletRefungibleError extends Enum {
readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isWrongRefungiblePieces: boolean;
@@ -3201,12 +3216,12 @@
readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
}
- /** @name PalletNonfungibleItemData (399) */
+ /** @name PalletNonfungibleItemData (400) */
interface PalletNonfungibleItemData extends Struct {
readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
}
- /** @name UpDataStructsPropertyScope (401) */
+ /** @name UpDataStructsPropertyScope (402) */
interface UpDataStructsPropertyScope extends Enum {
readonly isNone: boolean;
readonly isRmrk: boolean;
@@ -3214,7 +3229,7 @@
readonly type: 'None' | 'Rmrk' | 'Eth';
}
- /** @name PalletNonfungibleError (403) */
+ /** @name PalletNonfungibleError (404) */
interface PalletNonfungibleError extends Enum {
readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isNonfungibleItemsHaveNoAmount: boolean;
@@ -3222,7 +3237,7 @@
readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';
}
- /** @name PalletStructureError (404) */
+ /** @name PalletStructureError (405) */
interface PalletStructureError extends Enum {
readonly isOuroborosDetected: boolean;
readonly isDepthLimit: boolean;
@@ -3231,7 +3246,7 @@
readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';
}
- /** @name PalletRmrkCoreError (405) */
+ /** @name PalletRmrkCoreError (406) */
interface PalletRmrkCoreError extends Enum {
readonly isCorruptedCollectionType: boolean;
readonly isRmrkPropertyKeyIsTooLong: boolean;
@@ -3255,7 +3270,7 @@
readonly type: 'CorruptedCollectionType' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';
}
- /** @name PalletRmrkEquipError (407) */
+ /** @name PalletRmrkEquipError (408) */
interface PalletRmrkEquipError extends Enum {
readonly isPermissionError: boolean;
readonly isNoAvailableBaseId: boolean;
@@ -3267,7 +3282,17 @@
readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';
}
- /** @name PalletEvmError (411) */
+ /** @name PalletAppPromotionError (410) */
+ interface PalletAppPromotionError extends Enum {
+ readonly isAdminNotSet: boolean;
+ readonly isNoPermission: boolean;
+ readonly isNotSufficientFounds: boolean;
+ readonly isInvalidArgument: boolean;
+ readonly isAlreadySponsored: boolean;
+ readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFounds' | 'InvalidArgument' | 'AlreadySponsored';
+ }
+
+ /** @name PalletEvmError (413) */
interface PalletEvmError extends Enum {
readonly isBalanceLow: boolean;
readonly isFeeOverflow: boolean;
@@ -3278,7 +3303,7 @@
readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';
}
- /** @name FpRpcTransactionStatus (414) */
+ /** @name FpRpcTransactionStatus (416) */
interface FpRpcTransactionStatus extends Struct {
readonly transactionHash: H256;
readonly transactionIndex: u32;
@@ -3289,10 +3314,10 @@
readonly logsBloom: EthbloomBloom;
}
- /** @name EthbloomBloom (416) */
+ /** @name EthbloomBloom (418) */
interface EthbloomBloom extends U8aFixed {}
- /** @name EthereumReceiptReceiptV3 (418) */
+ /** @name EthereumReceiptReceiptV3 (420) */
interface EthereumReceiptReceiptV3 extends Enum {
readonly isLegacy: boolean;
readonly asLegacy: EthereumReceiptEip658ReceiptData;
@@ -3303,7 +3328,7 @@
readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
}
- /** @name EthereumReceiptEip658ReceiptData (419) */
+ /** @name EthereumReceiptEip658ReceiptData (421) */
interface EthereumReceiptEip658ReceiptData extends Struct {
readonly statusCode: u8;
readonly usedGas: U256;
@@ -3311,14 +3336,14 @@
readonly logs: Vec<EthereumLog>;
}
- /** @name EthereumBlock (420) */
+ /** @name EthereumBlock (422) */
interface EthereumBlock extends Struct {
readonly header: EthereumHeader;
readonly transactions: Vec<EthereumTransactionTransactionV2>;
readonly ommers: Vec<EthereumHeader>;
}
- /** @name EthereumHeader (421) */
+ /** @name EthereumHeader (423) */
interface EthereumHeader extends Struct {
readonly parentHash: H256;
readonly ommersHash: H256;
@@ -3337,24 +3362,24 @@
readonly nonce: EthereumTypesHashH64;
}
- /** @name EthereumTypesHashH64 (422) */
+ /** @name EthereumTypesHashH64 (424) */
interface EthereumTypesHashH64 extends U8aFixed {}
- /** @name PalletEthereumError (427) */
+ /** @name PalletEthereumError (429) */
interface PalletEthereumError extends Enum {
readonly isInvalidSignature: boolean;
readonly isPreLogExists: boolean;
readonly type: 'InvalidSignature' | 'PreLogExists';
}
- /** @name PalletEvmCoderSubstrateError (428) */
+ /** @name PalletEvmCoderSubstrateError (430) */
interface PalletEvmCoderSubstrateError extends Enum {
readonly isOutOfGas: boolean;
readonly isOutOfFund: boolean;
readonly type: 'OutOfGas' | 'OutOfFund';
}
- /** @name PalletEvmContractHelpersSponsoringModeT (429) */
+ /** @name PalletEvmContractHelpersSponsoringModeT (431) */
interface PalletEvmContractHelpersSponsoringModeT extends Enum {
readonly isDisabled: boolean;
readonly isAllowlisted: boolean;
@@ -3362,20 +3387,20 @@
readonly type: 'Disabled' | 'Allowlisted' | 'Generous';
}
- /** @name PalletEvmContractHelpersError (431) */
+ /** @name PalletEvmContractHelpersError (433) */
interface PalletEvmContractHelpersError extends Enum {
readonly isNoPermission: boolean;
readonly type: 'NoPermission';
}
- /** @name PalletEvmMigrationError (432) */
+ /** @name PalletEvmMigrationError (434) */
interface PalletEvmMigrationError extends Enum {
readonly isAccountNotEmpty: boolean;
readonly isAccountIsNotMigrating: boolean;
readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';
}
- /** @name SpRuntimeMultiSignature (434) */
+ /** @name SpRuntimeMultiSignature (436) */
interface SpRuntimeMultiSignature extends Enum {
readonly isEd25519: boolean;
readonly asEd25519: SpCoreEd25519Signature;
@@ -3386,34 +3411,34 @@
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
}
- /** @name SpCoreEd25519Signature (435) */
+ /** @name SpCoreEd25519Signature (437) */
interface SpCoreEd25519Signature extends U8aFixed {}
- /** @name SpCoreSr25519Signature (437) */
+ /** @name SpCoreSr25519Signature (439) */
interface SpCoreSr25519Signature extends U8aFixed {}
- /** @name SpCoreEcdsaSignature (438) */
+ /** @name SpCoreEcdsaSignature (440) */
interface SpCoreEcdsaSignature extends U8aFixed {}
- /** @name FrameSystemExtensionsCheckSpecVersion (441) */
+ /** @name FrameSystemExtensionsCheckSpecVersion (443) */
type FrameSystemExtensionsCheckSpecVersion = Null;
- /** @name FrameSystemExtensionsCheckGenesis (442) */
+ /** @name FrameSystemExtensionsCheckGenesis (444) */
type FrameSystemExtensionsCheckGenesis = Null;
- /** @name FrameSystemExtensionsCheckNonce (445) */
+ /** @name FrameSystemExtensionsCheckNonce (447) */
interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}
- /** @name FrameSystemExtensionsCheckWeight (446) */
+ /** @name FrameSystemExtensionsCheckWeight (448) */
type FrameSystemExtensionsCheckWeight = Null;
- /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (447) */
+ /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (449) */
interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
- /** @name OpalRuntimeRuntime (448) */
+ /** @name OpalRuntimeRuntime (450) */
type OpalRuntimeRuntime = Null;
- /** @name PalletEthereumFakeTransactionFinalizer (449) */
+ /** @name PalletEthereumFakeTransactionFinalizer (451) */
type PalletEthereumFakeTransactionFinalizer = Null;
} // declare module