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.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -1057,7 +1057,15 @@
}
},
/**
- * Lookup103: pallet_evm::pallet::Event<T>
+ * Lookup103: pallet_app_promotion::pallet::Event<T>
+ **/
+ PalletAppPromotionEvent: {
+ _enum: {
+ StakingRecalculation: '(u128,u128)'
+ }
+ },
+ /**
+ * Lookup104: pallet_evm::pallet::Event<T>
**/
PalletEvmEvent: {
_enum: {
@@ -1071,7 +1079,7 @@
}
},
/**
- * Lookup104: ethereum::log::Log
+ * Lookup105: ethereum::log::Log
**/
EthereumLog: {
address: 'H160',
@@ -1079,7 +1087,7 @@
data: 'Bytes'
},
/**
- * Lookup108: pallet_ethereum::pallet::Event
+ * Lookup109: pallet_ethereum::pallet::Event
**/
PalletEthereumEvent: {
_enum: {
@@ -1087,7 +1095,7 @@
}
},
/**
- * Lookup109: evm_core::error::ExitReason
+ * Lookup110: evm_core::error::ExitReason
**/
EvmCoreErrorExitReason: {
_enum: {
@@ -1098,13 +1106,13 @@
}
},
/**
- * Lookup110: evm_core::error::ExitSucceed
+ * Lookup111: evm_core::error::ExitSucceed
**/
EvmCoreErrorExitSucceed: {
_enum: ['Stopped', 'Returned', 'Suicided']
},
/**
- * Lookup111: evm_core::error::ExitError
+ * Lookup112: evm_core::error::ExitError
**/
EvmCoreErrorExitError: {
_enum: {
@@ -1126,13 +1134,13 @@
}
},
/**
- * Lookup114: evm_core::error::ExitRevert
+ * Lookup115: evm_core::error::ExitRevert
**/
EvmCoreErrorExitRevert: {
_enum: ['Reverted']
},
/**
- * Lookup115: evm_core::error::ExitFatal
+ * Lookup116: evm_core::error::ExitFatal
**/
EvmCoreErrorExitFatal: {
_enum: {
@@ -1143,7 +1151,7 @@
}
},
/**
- * Lookup116: frame_system::Phase
+ * Lookup117: frame_system::Phase
**/
FrameSystemPhase: {
_enum: {
@@ -1153,14 +1161,14 @@
}
},
/**
- * Lookup118: frame_system::LastRuntimeUpgradeInfo
+ * Lookup119: frame_system::LastRuntimeUpgradeInfo
**/
FrameSystemLastRuntimeUpgradeInfo: {
specVersion: 'Compact<u32>',
specName: 'Text'
},
/**
- * Lookup119: frame_system::pallet::Call<T>
+ * Lookup120: frame_system::pallet::Call<T>
**/
FrameSystemCall: {
_enum: {
@@ -1198,7 +1206,7 @@
}
},
/**
- * Lookup124: frame_system::limits::BlockWeights
+ * Lookup125: frame_system::limits::BlockWeights
**/
FrameSystemLimitsBlockWeights: {
baseBlock: 'u64',
@@ -1206,7 +1214,7 @@
perClass: 'FrameSupportWeightsPerDispatchClassWeightsPerClass'
},
/**
- * Lookup125: frame_support::weights::PerDispatchClass<frame_system::limits::WeightsPerClass>
+ * Lookup126: frame_support::weights::PerDispatchClass<frame_system::limits::WeightsPerClass>
**/
FrameSupportWeightsPerDispatchClassWeightsPerClass: {
normal: 'FrameSystemLimitsWeightsPerClass',
@@ -1214,7 +1222,7 @@
mandatory: 'FrameSystemLimitsWeightsPerClass'
},
/**
- * Lookup126: frame_system::limits::WeightsPerClass
+ * Lookup127: frame_system::limits::WeightsPerClass
**/
FrameSystemLimitsWeightsPerClass: {
baseExtrinsic: 'u64',
@@ -1223,13 +1231,13 @@
reserved: 'Option<u64>'
},
/**
- * Lookup128: frame_system::limits::BlockLength
+ * Lookup129: frame_system::limits::BlockLength
**/
FrameSystemLimitsBlockLength: {
max: 'FrameSupportWeightsPerDispatchClassU32'
},
/**
- * Lookup129: frame_support::weights::PerDispatchClass<T>
+ * Lookup130: frame_support::weights::PerDispatchClass<T>
**/
FrameSupportWeightsPerDispatchClassU32: {
normal: 'u32',
@@ -1237,14 +1245,14 @@
mandatory: 'u32'
},
/**
- * Lookup130: frame_support::weights::RuntimeDbWeight
+ * Lookup131: frame_support::weights::RuntimeDbWeight
**/
FrameSupportWeightsRuntimeDbWeight: {
read: 'u64',
write: 'u64'
},
/**
- * Lookup131: sp_version::RuntimeVersion
+ * Lookup132: sp_version::RuntimeVersion
**/
SpVersionRuntimeVersion: {
specName: 'Text',
@@ -1257,13 +1265,13 @@
stateVersion: 'u8'
},
/**
- * Lookup136: frame_system::pallet::Error<T>
+ * Lookup137: frame_system::pallet::Error<T>
**/
FrameSystemError: {
_enum: ['InvalidSpecName', 'SpecVersionNeedsToIncrease', 'FailedToExtractRuntimeVersion', 'NonDefaultComposite', 'NonZeroRefCount', 'CallFiltered']
},
/**
- * Lookup137: polkadot_primitives::v2::PersistedValidationData<primitive_types::H256, N>
+ * Lookup138: polkadot_primitives::v2::PersistedValidationData<primitive_types::H256, N>
**/
PolkadotPrimitivesV2PersistedValidationData: {
parentHead: 'Bytes',
@@ -1272,19 +1280,19 @@
maxPovSize: 'u32'
},
/**
- * Lookup140: polkadot_primitives::v2::UpgradeRestriction
+ * Lookup141: polkadot_primitives::v2::UpgradeRestriction
**/
PolkadotPrimitivesV2UpgradeRestriction: {
_enum: ['Present']
},
/**
- * Lookup141: sp_trie::storage_proof::StorageProof
+ * Lookup142: sp_trie::storage_proof::StorageProof
**/
SpTrieStorageProof: {
trieNodes: 'BTreeSet<Bytes>'
},
/**
- * Lookup143: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot
+ * Lookup144: cumulus_pallet_parachain_system::relay_state_snapshot::MessagingStateSnapshot
**/
CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: {
dmqMqcHead: 'H256',
@@ -1293,7 +1301,7 @@
egressChannels: 'Vec<(u32,PolkadotPrimitivesV2AbridgedHrmpChannel)>'
},
/**
- * Lookup146: polkadot_primitives::v2::AbridgedHrmpChannel
+ * Lookup147: polkadot_primitives::v2::AbridgedHrmpChannel
**/
PolkadotPrimitivesV2AbridgedHrmpChannel: {
maxCapacity: 'u32',
@@ -1304,7 +1312,7 @@
mqcHead: 'Option<H256>'
},
/**
- * Lookup147: polkadot_primitives::v2::AbridgedHostConfiguration
+ * Lookup148: polkadot_primitives::v2::AbridgedHostConfiguration
**/
PolkadotPrimitivesV2AbridgedHostConfiguration: {
maxCodeSize: 'u32',
@@ -1318,14 +1326,14 @@
validationUpgradeDelay: 'u32'
},
/**
- * Lookup153: polkadot_core_primitives::OutboundHrmpMessage<polkadot_parachain::primitives::Id>
+ * Lookup154: polkadot_core_primitives::OutboundHrmpMessage<polkadot_parachain::primitives::Id>
**/
PolkadotCorePrimitivesOutboundHrmpMessage: {
recipient: 'u32',
data: 'Bytes'
},
/**
- * Lookup154: cumulus_pallet_parachain_system::pallet::Call<T>
+ * Lookup155: cumulus_pallet_parachain_system::pallet::Call<T>
**/
CumulusPalletParachainSystemCall: {
_enum: {
@@ -1344,7 +1352,7 @@
}
},
/**
- * Lookup155: cumulus_primitives_parachain_inherent::ParachainInherentData
+ * Lookup156: cumulus_primitives_parachain_inherent::ParachainInherentData
**/
CumulusPrimitivesParachainInherentParachainInherentData: {
validationData: 'PolkadotPrimitivesV2PersistedValidationData',
@@ -1353,27 +1361,27 @@
horizontalMessages: 'BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>'
},
/**
- * Lookup157: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
+ * Lookup158: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
**/
PolkadotCorePrimitivesInboundDownwardMessage: {
sentAt: 'u32',
msg: 'Bytes'
},
/**
- * Lookup160: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
+ * Lookup161: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
**/
PolkadotCorePrimitivesInboundHrmpMessage: {
sentAt: 'u32',
data: 'Bytes'
},
/**
- * Lookup163: cumulus_pallet_parachain_system::pallet::Error<T>
+ * Lookup164: cumulus_pallet_parachain_system::pallet::Error<T>
**/
CumulusPalletParachainSystemError: {
_enum: ['OverlappingUpgrades', 'ProhibitedByPolkadot', 'TooBig', 'ValidationDataNotAvailable', 'HostConfigurationNotAvailable', 'NotScheduled', 'NothingAuthorized', 'Unauthorized']
},
/**
- * Lookup165: pallet_balances::BalanceLock<Balance>
+ * Lookup166: pallet_balances::BalanceLock<Balance>
**/
PalletBalancesBalanceLock: {
id: '[u8;8]',
@@ -1381,26 +1389,26 @@
reasons: 'PalletBalancesReasons'
},
/**
- * Lookup166: pallet_balances::Reasons
+ * Lookup167: pallet_balances::Reasons
**/
PalletBalancesReasons: {
_enum: ['Fee', 'Misc', 'All']
},
/**
- * Lookup169: pallet_balances::ReserveData<ReserveIdentifier, Balance>
+ * Lookup170: pallet_balances::ReserveData<ReserveIdentifier, Balance>
**/
PalletBalancesReserveData: {
id: '[u8;16]',
amount: 'u128'
},
/**
- * Lookup171: pallet_balances::Releases
+ * Lookup172: pallet_balances::Releases
**/
PalletBalancesReleases: {
_enum: ['V1_0_0', 'V2_0_0']
},
/**
- * Lookup172: pallet_balances::pallet::Call<T, I>
+ * Lookup173: pallet_balances::pallet::Call<T, I>
**/
PalletBalancesCall: {
_enum: {
@@ -1433,13 +1441,13 @@
}
},
/**
- * Lookup175: pallet_balances::pallet::Error<T, I>
+ * Lookup176: pallet_balances::pallet::Error<T, I>
**/
PalletBalancesError: {
_enum: ['VestingBalance', 'LiquidityRestrictions', 'InsufficientBalance', 'ExistentialDeposit', 'KeepAlive', 'ExistingVestingSchedule', 'DeadAccount', 'TooManyReserves']
},
/**
- * Lookup177: pallet_timestamp::pallet::Call<T>
+ * Lookup178: pallet_timestamp::pallet::Call<T>
**/
PalletTimestampCall: {
_enum: {
@@ -1449,13 +1457,13 @@
}
},
/**
- * Lookup179: pallet_transaction_payment::Releases
+ * Lookup180: pallet_transaction_payment::Releases
**/
PalletTransactionPaymentReleases: {
_enum: ['V1Ancient', 'V2']
},
/**
- * Lookup180: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
+ * Lookup181: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
**/
PalletTreasuryProposal: {
proposer: 'AccountId32',
@@ -1464,7 +1472,7 @@
bond: 'u128'
},
/**
- * Lookup183: pallet_treasury::pallet::Call<T, I>
+ * Lookup184: pallet_treasury::pallet::Call<T, I>
**/
PalletTreasuryCall: {
_enum: {
@@ -1488,17 +1496,17 @@
}
},
/**
- * Lookup186: frame_support::PalletId
+ * Lookup187: frame_support::PalletId
**/
FrameSupportPalletId: '[u8;8]',
/**
- * Lookup187: pallet_treasury::pallet::Error<T, I>
+ * Lookup188: pallet_treasury::pallet::Error<T, I>
**/
PalletTreasuryError: {
_enum: ['InsufficientProposersBalance', 'InvalidIndex', 'TooManyApprovals', 'InsufficientPermission', 'ProposalNotApproved']
},
/**
- * Lookup188: pallet_sudo::pallet::Call<T>
+ * Lookup189: pallet_sudo::pallet::Call<T>
**/
PalletSudoCall: {
_enum: {
@@ -1522,7 +1530,7 @@
}
},
/**
- * Lookup190: orml_vesting::module::Call<T>
+ * Lookup191: orml_vesting::module::Call<T>
**/
OrmlVestingModuleCall: {
_enum: {
@@ -1541,7 +1549,7 @@
}
},
/**
- * Lookup192: cumulus_pallet_xcmp_queue::pallet::Call<T>
+ * Lookup193: cumulus_pallet_xcmp_queue::pallet::Call<T>
**/
CumulusPalletXcmpQueueCall: {
_enum: {
@@ -1590,7 +1598,7 @@
}
},
/**
- * Lookup193: pallet_xcm::pallet::Call<T>
+ * Lookup194: pallet_xcm::pallet::Call<T>
**/
PalletXcmCall: {
_enum: {
@@ -1644,7 +1652,7 @@
}
},
/**
- * Lookup194: xcm::VersionedXcm<Call>
+ * Lookup195: xcm::VersionedXcm<Call>
**/
XcmVersionedXcm: {
_enum: {
@@ -1654,7 +1662,7 @@
}
},
/**
- * Lookup195: xcm::v0::Xcm<Call>
+ * Lookup196: xcm::v0::Xcm<Call>
**/
XcmV0Xcm: {
_enum: {
@@ -1708,7 +1716,7 @@
}
},
/**
- * Lookup197: xcm::v0::order::Order<Call>
+ * Lookup198: xcm::v0::order::Order<Call>
**/
XcmV0Order: {
_enum: {
@@ -1751,7 +1759,7 @@
}
},
/**
- * Lookup199: xcm::v0::Response
+ * Lookup200: xcm::v0::Response
**/
XcmV0Response: {
_enum: {
@@ -1759,7 +1767,7 @@
}
},
/**
- * Lookup200: xcm::v1::Xcm<Call>
+ * Lookup201: xcm::v1::Xcm<Call>
**/
XcmV1Xcm: {
_enum: {
@@ -1818,7 +1826,7 @@
}
},
/**
- * Lookup202: xcm::v1::order::Order<Call>
+ * Lookup203: xcm::v1::order::Order<Call>
**/
XcmV1Order: {
_enum: {
@@ -1863,7 +1871,7 @@
}
},
/**
- * Lookup204: xcm::v1::Response
+ * Lookup205: xcm::v1::Response
**/
XcmV1Response: {
_enum: {
@@ -1872,11 +1880,11 @@
}
},
/**
- * Lookup218: cumulus_pallet_xcm::pallet::Call<T>
+ * Lookup219: cumulus_pallet_xcm::pallet::Call<T>
**/
CumulusPalletXcmCall: 'Null',
/**
- * Lookup219: cumulus_pallet_dmp_queue::pallet::Call<T>
+ * Lookup220: cumulus_pallet_dmp_queue::pallet::Call<T>
**/
CumulusPalletDmpQueueCall: {
_enum: {
@@ -1887,7 +1895,7 @@
}
},
/**
- * Lookup220: pallet_inflation::pallet::Call<T>
+ * Lookup221: pallet_inflation::pallet::Call<T>
**/
PalletInflationCall: {
_enum: {
@@ -1897,7 +1905,7 @@
}
},
/**
- * Lookup221: pallet_unique::Call<T>
+ * Lookup222: pallet_unique::Call<T>
**/
PalletUniqueCall: {
_enum: {
@@ -2029,7 +2037,7 @@
}
},
/**
- * Lookup226: up_data_structs::CollectionMode
+ * Lookup227: up_data_structs::CollectionMode
**/
UpDataStructsCollectionMode: {
_enum: {
@@ -2039,7 +2047,7 @@
}
},
/**
- * Lookup227: up_data_structs::CreateCollectionData<sp_core::crypto::AccountId32>
+ * Lookup228: up_data_structs::CreateCollectionData<sp_core::crypto::AccountId32>
**/
UpDataStructsCreateCollectionData: {
mode: 'UpDataStructsCollectionMode',
@@ -2054,13 +2062,13 @@
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup229: up_data_structs::AccessMode
+ * Lookup230: up_data_structs::AccessMode
**/
UpDataStructsAccessMode: {
_enum: ['Normal', 'AllowList']
},
/**
- * Lookup231: up_data_structs::CollectionLimits
+ * Lookup232: up_data_structs::CollectionLimits
**/
UpDataStructsCollectionLimits: {
accountTokenOwnershipLimit: 'Option<u32>',
@@ -2074,7 +2082,7 @@
transfersEnabled: 'Option<bool>'
},
/**
- * Lookup233: up_data_structs::SponsoringRateLimit
+ * Lookup234: up_data_structs::SponsoringRateLimit
**/
UpDataStructsSponsoringRateLimit: {
_enum: {
@@ -2083,7 +2091,7 @@
}
},
/**
- * Lookup236: up_data_structs::CollectionPermissions
+ * Lookup237: up_data_structs::CollectionPermissions
**/
UpDataStructsCollectionPermissions: {
access: 'Option<UpDataStructsAccessMode>',
@@ -2091,7 +2099,7 @@
nesting: 'Option<UpDataStructsNestingPermissions>'
},
/**
- * Lookup238: up_data_structs::NestingPermissions
+ * Lookup239: up_data_structs::NestingPermissions
**/
UpDataStructsNestingPermissions: {
tokenOwner: 'bool',
@@ -2099,18 +2107,18 @@
restricted: 'Option<UpDataStructsOwnerRestrictedSet>'
},
/**
- * Lookup240: up_data_structs::OwnerRestrictedSet
+ * Lookup241: up_data_structs::OwnerRestrictedSet
**/
UpDataStructsOwnerRestrictedSet: 'BTreeSet<u32>',
/**
- * Lookup245: up_data_structs::PropertyKeyPermission
+ * Lookup246: up_data_structs::PropertyKeyPermission
**/
UpDataStructsPropertyKeyPermission: {
key: 'Bytes',
permission: 'UpDataStructsPropertyPermission'
},
/**
- * Lookup246: up_data_structs::PropertyPermission
+ * Lookup247: up_data_structs::PropertyPermission
**/
UpDataStructsPropertyPermission: {
mutable: 'bool',
@@ -2118,14 +2126,14 @@
tokenOwner: 'bool'
},
/**
- * Lookup249: up_data_structs::Property
+ * Lookup250: up_data_structs::Property
**/
UpDataStructsProperty: {
key: 'Bytes',
value: 'Bytes'
},
/**
- * Lookup252: up_data_structs::CreateItemData
+ * Lookup253: up_data_structs::CreateItemData
**/
UpDataStructsCreateItemData: {
_enum: {
@@ -2135,26 +2143,26 @@
}
},
/**
- * Lookup253: up_data_structs::CreateNftData
+ * Lookup254: up_data_structs::CreateNftData
**/
UpDataStructsCreateNftData: {
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup254: up_data_structs::CreateFungibleData
+ * Lookup255: up_data_structs::CreateFungibleData
**/
UpDataStructsCreateFungibleData: {
value: 'u128'
},
/**
- * Lookup255: up_data_structs::CreateReFungibleData
+ * Lookup256: up_data_structs::CreateReFungibleData
**/
UpDataStructsCreateReFungibleData: {
pieces: 'u128',
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup258: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup259: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateItemExData: {
_enum: {
@@ -2165,14 +2173,14 @@
}
},
/**
- * Lookup260: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup261: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateNftExData: {
properties: 'Vec<UpDataStructsProperty>',
owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
},
/**
- * Lookup267: up_data_structs::CreateRefungibleExSingleOwner<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup268: up_data_structs::CreateRefungibleExSingleOwner<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateRefungibleExSingleOwner: {
user: 'PalletEvmAccountBasicCrossAccountIdRepr',
@@ -2180,14 +2188,14 @@
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup269: up_data_structs::CreateRefungibleExMultipleOwners<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup270: up_data_structs::CreateRefungibleExMultipleOwners<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateRefungibleExMultipleOwners: {
users: 'BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>',
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup270: pallet_unique_scheduler::pallet::Call<T>
+ * Lookup271: pallet_unique_scheduler::pallet::Call<T>
**/
PalletUniqueSchedulerCall: {
_enum: {
@@ -2211,7 +2219,7 @@
}
},
/**
- * Lookup272: frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>
+ * Lookup273: frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>
**/
FrameSupportScheduleMaybeHashed: {
_enum: {
@@ -2220,7 +2228,7 @@
}
},
/**
- * Lookup273: pallet_configuration::pallet::Call<T>
+ * Lookup274: pallet_configuration::pallet::Call<T>
**/
PalletConfigurationCall: {
_enum: {
@@ -2233,15 +2241,15 @@
}
},
/**
- * Lookup274: pallet_template_transaction_payment::Call<T>
+ * Lookup275: pallet_template_transaction_payment::Call<T>
**/
PalletTemplateTransactionPaymentCall: 'Null',
/**
- * Lookup275: pallet_structure::pallet::Call<T>
+ * Lookup276: pallet_structure::pallet::Call<T>
**/
PalletStructureCall: 'Null',
/**
- * Lookup276: pallet_rmrk_core::pallet::Call<T>
+ * Lookup277: pallet_rmrk_core::pallet::Call<T>
**/
PalletRmrkCoreCall: {
_enum: {
@@ -2332,7 +2340,7 @@
}
},
/**
- * Lookup282: rmrk_traits::resource::ResourceTypes<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup283: rmrk_traits::resource::ResourceTypes<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceResourceTypes: {
_enum: {
@@ -2342,7 +2350,7 @@
}
},
/**
- * Lookup284: rmrk_traits::resource::BasicResource<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup285: rmrk_traits::resource::BasicResource<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceBasicResource: {
src: 'Option<Bytes>',
@@ -2351,7 +2359,7 @@
thumb: 'Option<Bytes>'
},
/**
- * Lookup286: rmrk_traits::resource::ComposableResource<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup287: rmrk_traits::resource::ComposableResource<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceComposableResource: {
parts: 'Vec<u32>',
@@ -2362,7 +2370,7 @@
thumb: 'Option<Bytes>'
},
/**
- * Lookup287: rmrk_traits::resource::SlotResource<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup288: rmrk_traits::resource::SlotResource<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceSlotResource: {
base: 'u32',
@@ -2373,7 +2381,7 @@
thumb: 'Option<Bytes>'
},
/**
- * Lookup290: pallet_rmrk_equip::pallet::Call<T>
+ * Lookup291: pallet_rmrk_equip::pallet::Call<T>
**/
PalletRmrkEquipCall: {
_enum: {
@@ -2394,7 +2402,7 @@
}
},
/**
- * Lookup293: rmrk_traits::part::PartType<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup294: rmrk_traits::part::PartType<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPartPartType: {
_enum: {
@@ -2403,7 +2411,7 @@
}
},
/**
- * Lookup295: rmrk_traits::part::FixedPart<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup296: rmrk_traits::part::FixedPart<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPartFixedPart: {
id: 'u32',
@@ -2411,7 +2419,7 @@
src: 'Bytes'
},
/**
- * Lookup296: rmrk_traits::part::SlotPart<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup297: rmrk_traits::part::SlotPart<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPartSlotPart: {
id: 'u32',
@@ -2420,7 +2428,7 @@
z: 'u32'
},
/**
- * Lookup297: rmrk_traits::part::EquippableList<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup298: rmrk_traits::part::EquippableList<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPartEquippableList: {
_enum: {
@@ -2430,7 +2438,7 @@
}
},
/**
- * 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>>
+ * Lookup300: 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>>
**/
RmrkTraitsTheme: {
name: 'Bytes',
@@ -2438,33 +2446,39 @@
inherit: 'bool'
},
/**
- * Lookup301: rmrk_traits::theme::ThemeProperty<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup302: rmrk_traits::theme::ThemeProperty<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsThemeThemeProperty: {
key: 'Bytes',
value: 'Bytes'
},
/**
- * Lookup303: pallet_app_promotion::pallet::Call<T>
+ * Lookup304: pallet_app_promotion::pallet::Call<T>
**/
PalletAppPromotionCall: {
_enum: {
set_admin_address: {
- admin: 'AccountId32',
+ admin: 'PalletEvmAccountBasicCrossAccountIdRepr',
},
start_app_promotion: {
- promotionStartRelayBlock: 'u32',
+ promotionStartRelayBlock: 'Option<u32>',
},
stake: {
amount: 'u128',
},
unstake: {
- amount: 'u128'
+ amount: 'u128',
+ },
+ sponsor_collection: {
+ collectionId: 'u32',
+ },
+ stop_sponsorign_collection: {
+ collectionId: 'u32'
}
}
},
/**
- * Lookup304: pallet_evm::pallet::Call<T>
+ * Lookup305: pallet_evm::pallet::Call<T>
**/
PalletEvmCall: {
_enum: {
@@ -2507,7 +2521,7 @@
}
},
/**
- * Lookup308: pallet_ethereum::pallet::Call<T>
+ * Lookup309: pallet_ethereum::pallet::Call<T>
**/
PalletEthereumCall: {
_enum: {
@@ -2517,7 +2531,7 @@
}
},
/**
- * Lookup309: ethereum::transaction::TransactionV2
+ * Lookup310: ethereum::transaction::TransactionV2
**/
EthereumTransactionTransactionV2: {
_enum: {
@@ -2527,7 +2541,7 @@
}
},
/**
- * Lookup310: ethereum::transaction::LegacyTransaction
+ * Lookup311: ethereum::transaction::LegacyTransaction
**/
EthereumTransactionLegacyTransaction: {
nonce: 'U256',
@@ -2539,7 +2553,7 @@
signature: 'EthereumTransactionTransactionSignature'
},
/**
- * Lookup311: ethereum::transaction::TransactionAction
+ * Lookup312: ethereum::transaction::TransactionAction
**/
EthereumTransactionTransactionAction: {
_enum: {
@@ -2548,7 +2562,7 @@
}
},
/**
- * Lookup312: ethereum::transaction::TransactionSignature
+ * Lookup313: ethereum::transaction::TransactionSignature
**/
EthereumTransactionTransactionSignature: {
v: 'u64',
@@ -2556,7 +2570,7 @@
s: 'H256'
},
/**
- * Lookup314: ethereum::transaction::EIP2930Transaction
+ * Lookup315: ethereum::transaction::EIP2930Transaction
**/
EthereumTransactionEip2930Transaction: {
chainId: 'u64',
@@ -2572,14 +2586,14 @@
s: 'H256'
},
/**
- * Lookup316: ethereum::transaction::AccessListItem
+ * Lookup317: ethereum::transaction::AccessListItem
**/
EthereumTransactionAccessListItem: {
address: 'H160',
storageKeys: 'Vec<H256>'
},
/**
- * Lookup317: ethereum::transaction::EIP1559Transaction
+ * Lookup318: ethereum::transaction::EIP1559Transaction
**/
EthereumTransactionEip1559Transaction: {
chainId: 'u64',
@@ -2596,7 +2610,7 @@
s: 'H256'
},
/**
- * Lookup318: pallet_evm_migration::pallet::Call<T>
+ * Lookup319: pallet_evm_migration::pallet::Call<T>
**/
PalletEvmMigrationCall: {
_enum: {
@@ -2614,19 +2628,19 @@
}
},
/**
- * Lookup321: pallet_sudo::pallet::Error<T>
+ * Lookup322: pallet_sudo::pallet::Error<T>
**/
PalletSudoError: {
_enum: ['RequireSudo']
},
/**
- * Lookup323: orml_vesting::module::Error<T>
+ * Lookup324: orml_vesting::module::Error<T>
**/
OrmlVestingModuleError: {
_enum: ['ZeroVestingPeriod', 'ZeroVestingPeriodCount', 'InsufficientBalanceToLock', 'TooManyVestingSchedules', 'AmountLow', 'MaxVestingSchedulesExceeded']
},
/**
- * Lookup325: cumulus_pallet_xcmp_queue::InboundChannelDetails
+ * Lookup326: cumulus_pallet_xcmp_queue::InboundChannelDetails
**/
CumulusPalletXcmpQueueInboundChannelDetails: {
sender: 'u32',
@@ -2634,19 +2648,19 @@
messageMetadata: 'Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>'
},
/**
- * Lookup326: cumulus_pallet_xcmp_queue::InboundState
+ * Lookup327: cumulus_pallet_xcmp_queue::InboundState
**/
CumulusPalletXcmpQueueInboundState: {
_enum: ['Ok', 'Suspended']
},
/**
- * Lookup329: polkadot_parachain::primitives::XcmpMessageFormat
+ * Lookup330: polkadot_parachain::primitives::XcmpMessageFormat
**/
PolkadotParachainPrimitivesXcmpMessageFormat: {
_enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals']
},
/**
- * Lookup332: cumulus_pallet_xcmp_queue::OutboundChannelDetails
+ * Lookup333: cumulus_pallet_xcmp_queue::OutboundChannelDetails
**/
CumulusPalletXcmpQueueOutboundChannelDetails: {
recipient: 'u32',
@@ -2656,13 +2670,13 @@
lastIndex: 'u16'
},
/**
- * Lookup333: cumulus_pallet_xcmp_queue::OutboundState
+ * Lookup334: cumulus_pallet_xcmp_queue::OutboundState
**/
CumulusPalletXcmpQueueOutboundState: {
_enum: ['Ok', 'Suspended']
},
/**
- * Lookup335: cumulus_pallet_xcmp_queue::QueueConfigData
+ * Lookup336: cumulus_pallet_xcmp_queue::QueueConfigData
**/
CumulusPalletXcmpQueueQueueConfigData: {
suspendThreshold: 'u32',
@@ -2673,29 +2687,29 @@
xcmpMaxIndividualWeight: 'u64'
},
/**
- * Lookup337: cumulus_pallet_xcmp_queue::pallet::Error<T>
+ * Lookup338: cumulus_pallet_xcmp_queue::pallet::Error<T>
**/
CumulusPalletXcmpQueueError: {
_enum: ['FailedToSend', 'BadXcmOrigin', 'BadXcm', 'BadOverweightIndex', 'WeightOverLimit']
},
/**
- * Lookup338: pallet_xcm::pallet::Error<T>
+ * Lookup339: pallet_xcm::pallet::Error<T>
**/
PalletXcmError: {
_enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed']
},
/**
- * Lookup339: cumulus_pallet_xcm::pallet::Error<T>
+ * Lookup340: cumulus_pallet_xcm::pallet::Error<T>
**/
CumulusPalletXcmError: 'Null',
/**
- * Lookup340: cumulus_pallet_dmp_queue::ConfigData
+ * Lookup341: cumulus_pallet_dmp_queue::ConfigData
**/
CumulusPalletDmpQueueConfigData: {
maxIndividual: 'u64'
},
/**
- * Lookup341: cumulus_pallet_dmp_queue::PageIndexData
+ * Lookup342: cumulus_pallet_dmp_queue::PageIndexData
**/
CumulusPalletDmpQueuePageIndexData: {
beginUsed: 'u32',
@@ -2703,19 +2717,19 @@
overweightCount: 'u64'
},
/**
- * Lookup344: cumulus_pallet_dmp_queue::pallet::Error<T>
+ * Lookup345: cumulus_pallet_dmp_queue::pallet::Error<T>
**/
CumulusPalletDmpQueueError: {
_enum: ['Unknown', 'OverLimit']
},
/**
- * Lookup348: pallet_unique::Error<T>
+ * Lookup349: pallet_unique::Error<T>
**/
PalletUniqueError: {
_enum: ['CollectionDecimalPointLimitExceeded', 'ConfirmUnsetSponsorFail', 'EmptyArgument', 'RepartitionCalledOnNonRefungibleCollection']
},
/**
- * Lookup351: pallet_unique_scheduler::ScheduledV3<frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>, BlockNumber, opal_runtime::OriginCaller, sp_core::crypto::AccountId32>
+ * Lookup352: pallet_unique_scheduler::ScheduledV3<frame_support::traits::schedule::MaybeHashed<opal_runtime::Call, primitive_types::H256>, BlockNumber, opal_runtime::OriginCaller, sp_core::crypto::AccountId32>
**/
PalletUniqueSchedulerScheduledV3: {
maybeId: 'Option<[u8;16]>',
@@ -2725,7 +2739,7 @@
origin: 'OpalRuntimeOriginCaller'
},
/**
- * Lookup352: opal_runtime::OriginCaller
+ * Lookup353: opal_runtime::OriginCaller
**/
OpalRuntimeOriginCaller: {
_enum: {
@@ -2834,7 +2848,7 @@
}
},
/**
- * Lookup353: frame_support::dispatch::RawOrigin<sp_core::crypto::AccountId32>
+ * Lookup354: frame_support::dispatch::RawOrigin<sp_core::crypto::AccountId32>
**/
FrameSupportDispatchRawOrigin: {
_enum: {
@@ -2844,7 +2858,7 @@
}
},
/**
- * Lookup354: pallet_xcm::pallet::Origin
+ * Lookup355: pallet_xcm::pallet::Origin
**/
PalletXcmOrigin: {
_enum: {
@@ -2853,7 +2867,7 @@
}
},
/**
- * Lookup355: cumulus_pallet_xcm::pallet::Origin
+ * Lookup356: cumulus_pallet_xcm::pallet::Origin
**/
CumulusPalletXcmOrigin: {
_enum: {
@@ -2862,7 +2876,7 @@
}
},
/**
- * Lookup356: pallet_ethereum::RawOrigin
+ * Lookup357: pallet_ethereum::RawOrigin
**/
PalletEthereumRawOrigin: {
_enum: {
@@ -2870,17 +2884,17 @@
}
},
/**
- * Lookup357: sp_core::Void
+ * Lookup358: sp_core::Void
**/
SpCoreVoid: 'Null',
/**
- * Lookup358: pallet_unique_scheduler::pallet::Error<T>
+ * Lookup359: pallet_unique_scheduler::pallet::Error<T>
**/
PalletUniqueSchedulerError: {
_enum: ['FailedToSchedule', 'NotFound', 'TargetBlockNumberInPast', 'RescheduleNoChange']
},
/**
- * Lookup359: up_data_structs::Collection<sp_core::crypto::AccountId32>
+ * Lookup360: up_data_structs::Collection<sp_core::crypto::AccountId32>
**/
UpDataStructsCollection: {
owner: 'AccountId32',
@@ -2894,7 +2908,7 @@
externalCollection: 'bool'
},
/**
- * Lookup360: up_data_structs::SponsorshipState<sp_core::crypto::AccountId32>
+ * Lookup361: up_data_structs::SponsorshipState<sp_core::crypto::AccountId32>
**/
UpDataStructsSponsorshipState: {
_enum: {
@@ -2904,7 +2918,7 @@
}
},
/**
- * Lookup361: up_data_structs::Properties
+ * Lookup362: up_data_structs::Properties
**/
UpDataStructsProperties: {
map: 'UpDataStructsPropertiesMapBoundedVec',
@@ -2912,15 +2926,15 @@
spaceLimit: 'u32'
},
/**
- * Lookup362: up_data_structs::PropertiesMap<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup363: up_data_structs::PropertiesMap<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
UpDataStructsPropertiesMapBoundedVec: 'BTreeMap<Bytes, Bytes>',
/**
- * Lookup367: up_data_structs::PropertiesMap<up_data_structs::PropertyPermission>
+ * Lookup368: up_data_structs::PropertiesMap<up_data_structs::PropertyPermission>
**/
UpDataStructsPropertiesMapPropertyPermission: 'BTreeMap<Bytes, UpDataStructsPropertyPermission>',
/**
- * Lookup374: up_data_structs::CollectionStats
+ * Lookup375: up_data_structs::CollectionStats
**/
UpDataStructsCollectionStats: {
created: 'u32',
@@ -2928,18 +2942,18 @@
alive: 'u32'
},
/**
- * Lookup375: up_data_structs::TokenChild
+ * Lookup376: up_data_structs::TokenChild
**/
UpDataStructsTokenChild: {
token: 'u32',
collection: 'u32'
},
/**
- * Lookup376: PhantomType::up_data_structs<T>
+ * Lookup377: PhantomType::up_data_structs<T>
**/
PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,RmrkTraitsCollectionCollectionInfo,RmrkTraitsNftNftInfo,RmrkTraitsResourceResourceInfo,RmrkTraitsPropertyPropertyInfo,RmrkTraitsBaseBaseInfo,RmrkTraitsPartPartType,RmrkTraitsTheme,RmrkTraitsNftNftChild);0]',
/**
- * Lookup378: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup379: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsTokenData: {
properties: 'Vec<UpDataStructsProperty>',
@@ -2947,7 +2961,7 @@
pieces: 'u128'
},
/**
- * Lookup380: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>
+ * Lookup381: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>
**/
UpDataStructsRpcCollection: {
owner: 'AccountId32',
@@ -2963,7 +2977,7 @@
readOnly: 'bool'
},
/**
- * 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>
+ * Lookup382: rmrk_traits::collection::CollectionInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_core::crypto::AccountId32>
**/
RmrkTraitsCollectionCollectionInfo: {
issuer: 'AccountId32',
@@ -2973,7 +2987,7 @@
nftsCount: 'u32'
},
/**
- * Lookup382: rmrk_traits::nft::NftInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup383: rmrk_traits::nft::NftInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsNftNftInfo: {
owner: 'RmrkTraitsNftAccountIdOrCollectionNftTuple',
@@ -2983,14 +2997,14 @@
pending: 'bool'
},
/**
- * Lookup384: rmrk_traits::nft::RoyaltyInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill>
+ * Lookup385: rmrk_traits::nft::RoyaltyInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill>
**/
RmrkTraitsNftRoyaltyInfo: {
recipient: 'AccountId32',
amount: 'Permill'
},
/**
- * Lookup385: rmrk_traits::resource::ResourceInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup386: rmrk_traits::resource::ResourceInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsResourceResourceInfo: {
id: 'u32',
@@ -2999,14 +3013,14 @@
pendingRemoval: 'bool'
},
/**
- * Lookup386: rmrk_traits::property::PropertyInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup387: rmrk_traits::property::PropertyInfo<sp_runtime::bounded::bounded_vec::BoundedVec<T, S>, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsPropertyPropertyInfo: {
key: 'Bytes',
value: 'Bytes'
},
/**
- * Lookup387: rmrk_traits::base::BaseInfo<sp_core::crypto::AccountId32, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup388: rmrk_traits::base::BaseInfo<sp_core::crypto::AccountId32, sp_runtime::bounded::bounded_vec::BoundedVec<T, S>>
**/
RmrkTraitsBaseBaseInfo: {
issuer: 'AccountId32',
@@ -3014,80 +3028,86 @@
symbol: 'Bytes'
},
/**
- * Lookup388: rmrk_traits::nft::NftChild
+ * Lookup389: rmrk_traits::nft::NftChild
**/
RmrkTraitsNftNftChild: {
collectionId: 'u32',
nftId: 'u32'
},
/**
- * Lookup390: pallet_common::pallet::Error<T>
+ * Lookup391: pallet_common::pallet::Error<T>
**/
PalletCommonError: {
_enum: ['CollectionNotFound', 'MustBeTokenOwner', 'NoPermission', 'CantDestroyNotEmptyCollection', 'PublicMintingNotAllowed', 'AddressNotInAllowlist', 'CollectionNameLimitExceeded', 'CollectionDescriptionLimitExceeded', 'CollectionTokenPrefixLimitExceeded', 'TotalCollectionsLimitExceeded', 'CollectionAdminCountExceeded', 'CollectionLimitBoundsExceeded', 'OwnerPermissionsCantBeReverted', 'TransferNotAllowed', 'AccountTokenLimitExceeded', 'CollectionTokenLimitExceeded', 'MetadataFlagFrozen', 'TokenNotFound', 'TokenValueTooLow', 'ApprovedValueTooLow', 'CantApproveMoreThanOwned', 'AddressIsZero', 'UnsupportedOperation', 'NotSufficientFounds', 'UserIsNotAllowedToNest', 'SourceCollectionIsNotAllowedToNest', 'CollectionFieldSizeExceeded', 'NoSpaceForProperty', 'PropertyLimitReached', 'PropertyKeyIsTooLong', 'InvalidCharacterInPropertyKey', 'EmptyPropertyKey', 'CollectionIsExternal', 'CollectionIsInternal']
},
/**
- * Lookup392: pallet_fungible::pallet::Error<T>
+ * Lookup393: pallet_fungible::pallet::Error<T>
**/
PalletFungibleError: {
_enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
},
/**
- * Lookup393: pallet_refungible::ItemData
+ * Lookup394: pallet_refungible::ItemData
**/
PalletRefungibleItemData: {
constData: 'Bytes'
},
/**
- * Lookup398: pallet_refungible::pallet::Error<T>
+ * Lookup399: pallet_refungible::pallet::Error<T>
**/
PalletRefungibleError: {
_enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RepartitionWhileNotOwningAllPieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
},
/**
- * Lookup399: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup400: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
PalletNonfungibleItemData: {
owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
},
/**
- * Lookup401: up_data_structs::PropertyScope
+ * Lookup402: up_data_structs::PropertyScope
**/
UpDataStructsPropertyScope: {
_enum: ['None', 'Rmrk', 'Eth']
},
/**
- * Lookup403: pallet_nonfungible::pallet::Error<T>
+ * Lookup404: pallet_nonfungible::pallet::Error<T>
**/
PalletNonfungibleError: {
_enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount', 'CantBurnNftWithChildren']
},
/**
- * Lookup404: pallet_structure::pallet::Error<T>
+ * Lookup405: pallet_structure::pallet::Error<T>
**/
PalletStructureError: {
_enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound']
},
/**
- * Lookup405: pallet_rmrk_core::pallet::Error<T>
+ * Lookup406: pallet_rmrk_core::pallet::Error<T>
**/
PalletRmrkCoreError: {
_enum: ['CorruptedCollectionType', 'RmrkPropertyKeyIsTooLong', 'RmrkPropertyValueIsTooLong', 'RmrkPropertyIsNotFound', 'UnableToDecodeRmrkData', 'CollectionNotEmpty', 'NoAvailableCollectionId', 'NoAvailableNftId', 'CollectionUnknown', 'NoPermission', 'NonTransferable', 'CollectionFullOrLocked', 'ResourceDoesntExist', 'CannotSendToDescendentOrSelf', 'CannotAcceptNonOwnedNft', 'CannotRejectNonOwnedNft', 'CannotRejectNonPendingNft', 'ResourceNotPending', 'NoAvailableResourceId']
},
/**
- * Lookup407: pallet_rmrk_equip::pallet::Error<T>
+ * Lookup408: pallet_rmrk_equip::pallet::Error<T>
**/
PalletRmrkEquipError: {
_enum: ['PermissionError', 'NoAvailableBaseId', 'NoAvailablePartId', 'BaseDoesntExist', 'NeedsDefaultThemeFirst', 'PartDoesntExist', 'NoEquippableOnFixedPart']
},
/**
- * Lookup411: pallet_evm::pallet::Error<T>
+ * Lookup410: pallet_app_promotion::pallet::Error<T>
+ **/
+ PalletAppPromotionError: {
+ _enum: ['AdminNotSet', 'NoPermission', 'NotSufficientFounds', 'InvalidArgument', 'AlreadySponsored']
+ },
+ /**
+ * Lookup413: pallet_evm::pallet::Error<T>
**/
PalletEvmError: {
_enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce']
},
/**
- * Lookup414: fp_rpc::TransactionStatus
+ * Lookup416: fp_rpc::TransactionStatus
**/
FpRpcTransactionStatus: {
transactionHash: 'H256',
@@ -3099,11 +3119,11 @@
logsBloom: 'EthbloomBloom'
},
/**
- * Lookup416: ethbloom::Bloom
+ * Lookup418: ethbloom::Bloom
**/
EthbloomBloom: '[u8;256]',
/**
- * Lookup418: ethereum::receipt::ReceiptV3
+ * Lookup420: ethereum::receipt::ReceiptV3
**/
EthereumReceiptReceiptV3: {
_enum: {
@@ -3113,7 +3133,7 @@
}
},
/**
- * Lookup419: ethereum::receipt::EIP658ReceiptData
+ * Lookup421: ethereum::receipt::EIP658ReceiptData
**/
EthereumReceiptEip658ReceiptData: {
statusCode: 'u8',
@@ -3122,7 +3142,7 @@
logs: 'Vec<EthereumLog>'
},
/**
- * Lookup420: ethereum::block::Block<ethereum::transaction::TransactionV2>
+ * Lookup422: ethereum::block::Block<ethereum::transaction::TransactionV2>
**/
EthereumBlock: {
header: 'EthereumHeader',
@@ -3130,7 +3150,7 @@
ommers: 'Vec<EthereumHeader>'
},
/**
- * Lookup421: ethereum::header::Header
+ * Lookup423: ethereum::header::Header
**/
EthereumHeader: {
parentHash: 'H256',
@@ -3150,41 +3170,41 @@
nonce: 'EthereumTypesHashH64'
},
/**
- * Lookup422: ethereum_types::hash::H64
+ * Lookup424: ethereum_types::hash::H64
**/
EthereumTypesHashH64: '[u8;8]',
/**
- * Lookup427: pallet_ethereum::pallet::Error<T>
+ * Lookup429: pallet_ethereum::pallet::Error<T>
**/
PalletEthereumError: {
_enum: ['InvalidSignature', 'PreLogExists']
},
/**
- * Lookup428: pallet_evm_coder_substrate::pallet::Error<T>
+ * Lookup430: pallet_evm_coder_substrate::pallet::Error<T>
**/
PalletEvmCoderSubstrateError: {
_enum: ['OutOfGas', 'OutOfFund']
},
/**
- * Lookup429: pallet_evm_contract_helpers::SponsoringModeT
+ * Lookup431: pallet_evm_contract_helpers::SponsoringModeT
**/
PalletEvmContractHelpersSponsoringModeT: {
_enum: ['Disabled', 'Allowlisted', 'Generous']
},
/**
- * Lookup431: pallet_evm_contract_helpers::pallet::Error<T>
+ * Lookup433: pallet_evm_contract_helpers::pallet::Error<T>
**/
PalletEvmContractHelpersError: {
_enum: ['NoPermission']
},
/**
- * Lookup432: pallet_evm_migration::pallet::Error<T>
+ * Lookup434: pallet_evm_migration::pallet::Error<T>
**/
PalletEvmMigrationError: {
_enum: ['AccountNotEmpty', 'AccountIsNotMigrating']
},
/**
- * Lookup434: sp_runtime::MultiSignature
+ * Lookup436: sp_runtime::MultiSignature
**/
SpRuntimeMultiSignature: {
_enum: {
@@ -3194,43 +3214,43 @@
}
},
/**
- * Lookup435: sp_core::ed25519::Signature
+ * Lookup437: sp_core::ed25519::Signature
**/
SpCoreEd25519Signature: '[u8;64]',
/**
- * Lookup437: sp_core::sr25519::Signature
+ * Lookup439: sp_core::sr25519::Signature
**/
SpCoreSr25519Signature: '[u8;64]',
/**
- * Lookup438: sp_core::ecdsa::Signature
+ * Lookup440: sp_core::ecdsa::Signature
**/
SpCoreEcdsaSignature: '[u8;65]',
/**
- * Lookup441: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
+ * Lookup443: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
**/
FrameSystemExtensionsCheckSpecVersion: 'Null',
/**
- * Lookup442: frame_system::extensions::check_genesis::CheckGenesis<T>
+ * Lookup444: frame_system::extensions::check_genesis::CheckGenesis<T>
**/
FrameSystemExtensionsCheckGenesis: 'Null',
/**
- * Lookup445: frame_system::extensions::check_nonce::CheckNonce<T>
+ * Lookup447: frame_system::extensions::check_nonce::CheckNonce<T>
**/
FrameSystemExtensionsCheckNonce: 'Compact<u32>',
/**
- * Lookup446: frame_system::extensions::check_weight::CheckWeight<T>
+ * Lookup448: frame_system::extensions::check_weight::CheckWeight<T>
**/
FrameSystemExtensionsCheckWeight: 'Null',
/**
- * Lookup447: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
+ * Lookup449: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
**/
PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
/**
- * Lookup448: opal_runtime::Runtime
+ * Lookup450: opal_runtime::Runtime
**/
OpalRuntimeRuntime: 'Null',
/**
- * Lookup449: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
+ * Lookup451: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
**/
PalletEthereumFakeTransactionFinalizer: 'Null'
};
tests/src/interfaces/registry.tsdiffbeforeafterboth--- a/tests/src/interfaces/registry.ts
+++ b/tests/src/interfaces/registry.ts
@@ -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.tsdiffbeforeafterboth1198 readonly type: 'BaseCreated' | 'EquippablesUpdated';1198 readonly type: 'BaseCreated' | 'EquippablesUpdated';1199 }1199 }12001201 /** @name PalletAppPromotionEvent (103) */1202 interface PalletAppPromotionEvent extends Enum {1203 readonly isStakingRecalculation: boolean;1204 readonly asStakingRecalculation: ITuple<[u128, u128]>;1205 readonly type: 'StakingRecalculation';1206 }120012071201 /** @name PalletEvmEvent (103) */1208 /** @name PalletEvmEvent (104) */1202 interface PalletEvmEvent extends Enum {1209 interface PalletEvmEvent extends Enum {1203 readonly isLog: boolean;1210 readonly isLog: boolean;1204 readonly asLog: EthereumLog;1211 readonly asLog: EthereumLog;1217 readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed' | 'BalanceDeposit' | 'BalanceWithdraw';1224 readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed' | 'BalanceDeposit' | 'BalanceWithdraw';1218 }1225 }121912261220 /** @name EthereumLog (104) */1227 /** @name EthereumLog (105) */1221 interface EthereumLog extends Struct {1228 interface EthereumLog extends Struct {1222 readonly address: H160;1229 readonly address: H160;1223 readonly topics: Vec<H256>;1230 readonly topics: Vec<H256>;1224 readonly data: Bytes;1231 readonly data: Bytes;1225 }1232 }122612331227 /** @name PalletEthereumEvent (108) */1234 /** @name PalletEthereumEvent (109) */1228 interface PalletEthereumEvent extends Enum {1235 interface PalletEthereumEvent extends Enum {1229 readonly isExecuted: boolean;1236 readonly isExecuted: boolean;1230 readonly asExecuted: ITuple<[H160, H160, H256, EvmCoreErrorExitReason]>;1237 readonly asExecuted: ITuple<[H160, H160, H256, EvmCoreErrorExitReason]>;1231 readonly type: 'Executed';1238 readonly type: 'Executed';1232 }1239 }123312401234 /** @name EvmCoreErrorExitReason (109) */1241 /** @name EvmCoreErrorExitReason (110) */1235 interface EvmCoreErrorExitReason extends Enum {1242 interface EvmCoreErrorExitReason extends Enum {1236 readonly isSucceed: boolean;1243 readonly isSucceed: boolean;1237 readonly asSucceed: EvmCoreErrorExitSucceed;1244 readonly asSucceed: EvmCoreErrorExitSucceed;1244 readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';1251 readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';1245 }1252 }124612531247 /** @name EvmCoreErrorExitSucceed (110) */1254 /** @name EvmCoreErrorExitSucceed (111) */1248 interface EvmCoreErrorExitSucceed extends Enum {1255 interface EvmCoreErrorExitSucceed extends Enum {1249 readonly isStopped: boolean;1256 readonly isStopped: boolean;1250 readonly isReturned: boolean;1257 readonly isReturned: boolean;1251 readonly isSuicided: boolean;1258 readonly isSuicided: boolean;1252 readonly type: 'Stopped' | 'Returned' | 'Suicided';1259 readonly type: 'Stopped' | 'Returned' | 'Suicided';1253 }1260 }125412611255 /** @name EvmCoreErrorExitError (111) */1262 /** @name EvmCoreErrorExitError (112) */1256 interface EvmCoreErrorExitError extends Enum {1263 interface EvmCoreErrorExitError extends Enum {1257 readonly isStackUnderflow: boolean;1264 readonly isStackUnderflow: boolean;1258 readonly isStackOverflow: boolean;1265 readonly isStackOverflow: boolean;1273 readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'InvalidCode';1280 readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'InvalidCode';1274 }1281 }127512821276 /** @name EvmCoreErrorExitRevert (114) */1283 /** @name EvmCoreErrorExitRevert (115) */1277 interface EvmCoreErrorExitRevert extends Enum {1284 interface EvmCoreErrorExitRevert extends Enum {1278 readonly isReverted: boolean;1285 readonly isReverted: boolean;1279 readonly type: 'Reverted';1286 readonly type: 'Reverted';1280 }1287 }128112881282 /** @name EvmCoreErrorExitFatal (115) */1289 /** @name EvmCoreErrorExitFatal (116) */1283 interface EvmCoreErrorExitFatal extends Enum {1290 interface EvmCoreErrorExitFatal extends Enum {1284 readonly isNotSupported: boolean;1291 readonly isNotSupported: boolean;1285 readonly isUnhandledInterrupt: boolean;1292 readonly isUnhandledInterrupt: boolean;1290 readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';1297 readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';1291 }1298 }129212991293 /** @name FrameSystemPhase (116) */1300 /** @name FrameSystemPhase (117) */1294 interface FrameSystemPhase extends Enum {1301 interface FrameSystemPhase extends Enum {1295 readonly isApplyExtrinsic: boolean;1302 readonly isApplyExtrinsic: boolean;1296 readonly asApplyExtrinsic: u32;1303 readonly asApplyExtrinsic: u32;1299 readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';1306 readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';1300 }1307 }130113081302 /** @name FrameSystemLastRuntimeUpgradeInfo (118) */1309 /** @name FrameSystemLastRuntimeUpgradeInfo (119) */1303 interface FrameSystemLastRuntimeUpgradeInfo extends Struct {1310 interface FrameSystemLastRuntimeUpgradeInfo extends Struct {1304 readonly specVersion: Compact<u32>;1311 readonly specVersion: Compact<u32>;1305 readonly specName: Text;1312 readonly specName: Text;1306 }1313 }130713141308 /** @name FrameSystemCall (119) */1315 /** @name FrameSystemCall (120) */1309 interface FrameSystemCall extends Enum {1316 interface FrameSystemCall extends Enum {1310 readonly isFillBlock: boolean;1317 readonly isFillBlock: boolean;1311 readonly asFillBlock: {1318 readonly asFillBlock: {1347 readonly type: 'FillBlock' | 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';1354 readonly type: 'FillBlock' | 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';1348 }1355 }134913561350 /** @name FrameSystemLimitsBlockWeights (124) */1357 /** @name FrameSystemLimitsBlockWeights (125) */1351 interface FrameSystemLimitsBlockWeights extends Struct {1358 interface FrameSystemLimitsBlockWeights extends Struct {1352 readonly baseBlock: u64;1359 readonly baseBlock: u64;1353 readonly maxBlock: u64;1360 readonly maxBlock: u64;1354 readonly perClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;1361 readonly perClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;1355 }1362 }135613631357 /** @name FrameSupportWeightsPerDispatchClassWeightsPerClass (125) */1364 /** @name FrameSupportWeightsPerDispatchClassWeightsPerClass (126) */1358 interface FrameSupportWeightsPerDispatchClassWeightsPerClass extends Struct {1365 interface FrameSupportWeightsPerDispatchClassWeightsPerClass extends Struct {1359 readonly normal: FrameSystemLimitsWeightsPerClass;1366 readonly normal: FrameSystemLimitsWeightsPerClass;1360 readonly operational: FrameSystemLimitsWeightsPerClass;1367 readonly operational: FrameSystemLimitsWeightsPerClass;1361 readonly mandatory: FrameSystemLimitsWeightsPerClass;1368 readonly mandatory: FrameSystemLimitsWeightsPerClass;1362 }1369 }136313701364 /** @name FrameSystemLimitsWeightsPerClass (126) */1371 /** @name FrameSystemLimitsWeightsPerClass (127) */1365 interface FrameSystemLimitsWeightsPerClass extends Struct {1372 interface FrameSystemLimitsWeightsPerClass extends Struct {1366 readonly baseExtrinsic: u64;1373 readonly baseExtrinsic: u64;1367 readonly maxExtrinsic: Option<u64>;1374 readonly maxExtrinsic: Option<u64>;1368 readonly maxTotal: Option<u64>;1375 readonly maxTotal: Option<u64>;1369 readonly reserved: Option<u64>;1376 readonly reserved: Option<u64>;1370 }1377 }137113781372 /** @name FrameSystemLimitsBlockLength (128) */1379 /** @name FrameSystemLimitsBlockLength (129) */1373 interface FrameSystemLimitsBlockLength extends Struct {1380 interface FrameSystemLimitsBlockLength extends Struct {1374 readonly max: FrameSupportWeightsPerDispatchClassU32;1381 readonly max: FrameSupportWeightsPerDispatchClassU32;1375 }1382 }137613831377 /** @name FrameSupportWeightsPerDispatchClassU32 (129) */1384 /** @name FrameSupportWeightsPerDispatchClassU32 (130) */1378 interface FrameSupportWeightsPerDispatchClassU32 extends Struct {1385 interface FrameSupportWeightsPerDispatchClassU32 extends Struct {1379 readonly normal: u32;1386 readonly normal: u32;1380 readonly operational: u32;1387 readonly operational: u32;1381 readonly mandatory: u32;1388 readonly mandatory: u32;1382 }1389 }138313901384 /** @name FrameSupportWeightsRuntimeDbWeight (130) */1391 /** @name FrameSupportWeightsRuntimeDbWeight (131) */1385 interface FrameSupportWeightsRuntimeDbWeight extends Struct {1392 interface FrameSupportWeightsRuntimeDbWeight extends Struct {1386 readonly read: u64;1393 readonly read: u64;1387 readonly write: u64;1394 readonly write: u64;1388 }1395 }138913961390 /** @name SpVersionRuntimeVersion (131) */1397 /** @name SpVersionRuntimeVersion (132) */1391 interface SpVersionRuntimeVersion extends Struct {1398 interface SpVersionRuntimeVersion extends Struct {1392 readonly specName: Text;1399 readonly specName: Text;1393 readonly implName: Text;1400 readonly implName: Text;1399 readonly stateVersion: u8;1406 readonly stateVersion: u8;1400 }1407 }140114081402 /** @name FrameSystemError (136) */1409 /** @name FrameSystemError (137) */1403 interface FrameSystemError extends Enum {1410 interface FrameSystemError extends Enum {1404 readonly isInvalidSpecName: boolean;1411 readonly isInvalidSpecName: boolean;1405 readonly isSpecVersionNeedsToIncrease: boolean;1412 readonly isSpecVersionNeedsToIncrease: boolean;1410 readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';1417 readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';1411 }1418 }141214191413 /** @name PolkadotPrimitivesV2PersistedValidationData (137) */1420 /** @name PolkadotPrimitivesV2PersistedValidationData (138) */1414 interface PolkadotPrimitivesV2PersistedValidationData extends Struct {1421 interface PolkadotPrimitivesV2PersistedValidationData extends Struct {1415 readonly parentHead: Bytes;1422 readonly parentHead: Bytes;1416 readonly relayParentNumber: u32;1423 readonly relayParentNumber: u32;1417 readonly relayParentStorageRoot: H256;1424 readonly relayParentStorageRoot: H256;1418 readonly maxPovSize: u32;1425 readonly maxPovSize: u32;1419 }1426 }142014271421 /** @name PolkadotPrimitivesV2UpgradeRestriction (140) */1428 /** @name PolkadotPrimitivesV2UpgradeRestriction (141) */1422 interface PolkadotPrimitivesV2UpgradeRestriction extends Enum {1429 interface PolkadotPrimitivesV2UpgradeRestriction extends Enum {1423 readonly isPresent: boolean;1430 readonly isPresent: boolean;1424 readonly type: 'Present';1431 readonly type: 'Present';1425 }1432 }142614331427 /** @name SpTrieStorageProof (141) */1434 /** @name SpTrieStorageProof (142) */1428 interface SpTrieStorageProof extends Struct {1435 interface SpTrieStorageProof extends Struct {1429 readonly trieNodes: BTreeSet<Bytes>;1436 readonly trieNodes: BTreeSet<Bytes>;1430 }1437 }143114381432 /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (143) */1439 /** @name CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot (144) */1433 interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct {1440 interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct {1434 readonly dmqMqcHead: H256;1441 readonly dmqMqcHead: H256;1435 readonly relayDispatchQueueSize: ITuple<[u32, u32]>;1442 readonly relayDispatchQueueSize: ITuple<[u32, u32]>;1436 readonly ingressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;1443 readonly ingressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;1437 readonly egressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;1444 readonly egressChannels: Vec<ITuple<[u32, PolkadotPrimitivesV2AbridgedHrmpChannel]>>;1438 }1445 }143914461440 /** @name PolkadotPrimitivesV2AbridgedHrmpChannel (146) */1447 /** @name PolkadotPrimitivesV2AbridgedHrmpChannel (147) */1441 interface PolkadotPrimitivesV2AbridgedHrmpChannel extends Struct {1448 interface PolkadotPrimitivesV2AbridgedHrmpChannel extends Struct {1442 readonly maxCapacity: u32;1449 readonly maxCapacity: u32;1443 readonly maxTotalSize: u32;1450 readonly maxTotalSize: u32;1447 readonly mqcHead: Option<H256>;1454 readonly mqcHead: Option<H256>;1448 }1455 }144914561450 /** @name PolkadotPrimitivesV2AbridgedHostConfiguration (147) */1457 /** @name PolkadotPrimitivesV2AbridgedHostConfiguration (148) */1451 interface PolkadotPrimitivesV2AbridgedHostConfiguration extends Struct {1458 interface PolkadotPrimitivesV2AbridgedHostConfiguration extends Struct {1452 readonly maxCodeSize: u32;1459 readonly maxCodeSize: u32;1453 readonly maxHeadDataSize: u32;1460 readonly maxHeadDataSize: u32;1460 readonly validationUpgradeDelay: u32;1467 readonly validationUpgradeDelay: u32;1461 }1468 }146214691463 /** @name PolkadotCorePrimitivesOutboundHrmpMessage (153) */1470 /** @name PolkadotCorePrimitivesOutboundHrmpMessage (154) */1464 interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {1471 interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {1465 readonly recipient: u32;1472 readonly recipient: u32;1466 readonly data: Bytes;1473 readonly data: Bytes;1467 }1474 }146814751469 /** @name CumulusPalletParachainSystemCall (154) */1476 /** @name CumulusPalletParachainSystemCall (155) */1470 interface CumulusPalletParachainSystemCall extends Enum {1477 interface CumulusPalletParachainSystemCall extends Enum {1471 readonly isSetValidationData: boolean;1478 readonly isSetValidationData: boolean;1472 readonly asSetValidationData: {1479 readonly asSetValidationData: {1487 readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade';1494 readonly type: 'SetValidationData' | 'SudoSendUpwardMessage' | 'AuthorizeUpgrade' | 'EnactAuthorizedUpgrade';1488 }1495 }148914961490 /** @name CumulusPrimitivesParachainInherentParachainInherentData (155) */1497 /** @name CumulusPrimitivesParachainInherentParachainInherentData (156) */1491 interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct {1498 interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct {1492 readonly validationData: PolkadotPrimitivesV2PersistedValidationData;1499 readonly validationData: PolkadotPrimitivesV2PersistedValidationData;1493 readonly relayChainState: SpTrieStorageProof;1500 readonly relayChainState: SpTrieStorageProof;1494 readonly downwardMessages: Vec<PolkadotCorePrimitivesInboundDownwardMessage>;1501 readonly downwardMessages: Vec<PolkadotCorePrimitivesInboundDownwardMessage>;1495 readonly horizontalMessages: BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>;1502 readonly horizontalMessages: BTreeMap<u32, Vec<PolkadotCorePrimitivesInboundHrmpMessage>>;1496 }1503 }149715041498 /** @name PolkadotCorePrimitivesInboundDownwardMessage (157) */1505 /** @name PolkadotCorePrimitivesInboundDownwardMessage (158) */1499 interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {1506 interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {1500 readonly sentAt: u32;1507 readonly sentAt: u32;1501 readonly msg: Bytes;1508 readonly msg: Bytes;1502 }1509 }150315101504 /** @name PolkadotCorePrimitivesInboundHrmpMessage (160) */1511 /** @name PolkadotCorePrimitivesInboundHrmpMessage (161) */1505 interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {1512 interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {1506 readonly sentAt: u32;1513 readonly sentAt: u32;1507 readonly data: Bytes;1514 readonly data: Bytes;1508 }1515 }150915161510 /** @name CumulusPalletParachainSystemError (163) */1517 /** @name CumulusPalletParachainSystemError (164) */1511 interface CumulusPalletParachainSystemError extends Enum {1518 interface CumulusPalletParachainSystemError extends Enum {1512 readonly isOverlappingUpgrades: boolean;1519 readonly isOverlappingUpgrades: boolean;1513 readonly isProhibitedByPolkadot: boolean;1520 readonly isProhibitedByPolkadot: boolean;1520 readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';1527 readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';1521 }1528 }152215291523 /** @name PalletBalancesBalanceLock (165) */1530 /** @name PalletBalancesBalanceLock (166) */1524 interface PalletBalancesBalanceLock extends Struct {1531 interface PalletBalancesBalanceLock extends Struct {1525 readonly id: U8aFixed;1532 readonly id: U8aFixed;1526 readonly amount: u128;1533 readonly amount: u128;1527 readonly reasons: PalletBalancesReasons;1534 readonly reasons: PalletBalancesReasons;1528 }1535 }152915361530 /** @name PalletBalancesReasons (166) */1537 /** @name PalletBalancesReasons (167) */1531 interface PalletBalancesReasons extends Enum {1538 interface PalletBalancesReasons extends Enum {1532 readonly isFee: boolean;1539 readonly isFee: boolean;1533 readonly isMisc: boolean;1540 readonly isMisc: boolean;1534 readonly isAll: boolean;1541 readonly isAll: boolean;1535 readonly type: 'Fee' | 'Misc' | 'All';1542 readonly type: 'Fee' | 'Misc' | 'All';1536 }1543 }153715441538 /** @name PalletBalancesReserveData (169) */1545 /** @name PalletBalancesReserveData (170) */1539 interface PalletBalancesReserveData extends Struct {1546 interface PalletBalancesReserveData extends Struct {1540 readonly id: U8aFixed;1547 readonly id: U8aFixed;1541 readonly amount: u128;1548 readonly amount: u128;1542 }1549 }154315501544 /** @name PalletBalancesReleases (171) */1551 /** @name PalletBalancesReleases (172) */1545 interface PalletBalancesReleases extends Enum {1552 interface PalletBalancesReleases extends Enum {1546 readonly isV100: boolean;1553 readonly isV100: boolean;1547 readonly isV200: boolean;1554 readonly isV200: boolean;1548 readonly type: 'V100' | 'V200';1555 readonly type: 'V100' | 'V200';1549 }1556 }155015571551 /** @name PalletBalancesCall (172) */1558 /** @name PalletBalancesCall (173) */1552 interface PalletBalancesCall extends Enum {1559 interface PalletBalancesCall extends Enum {1553 readonly isTransfer: boolean;1560 readonly isTransfer: boolean;1554 readonly asTransfer: {1561 readonly asTransfer: {1585 readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';1592 readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';1586 }1593 }158715941588 /** @name PalletBalancesError (175) */1595 /** @name PalletBalancesError (176) */1589 interface PalletBalancesError extends Enum {1596 interface PalletBalancesError extends Enum {1590 readonly isVestingBalance: boolean;1597 readonly isVestingBalance: boolean;1591 readonly isLiquidityRestrictions: boolean;1598 readonly isLiquidityRestrictions: boolean;1598 readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';1605 readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';1599 }1606 }160016071601 /** @name PalletTimestampCall (177) */1608 /** @name PalletTimestampCall (178) */1602 interface PalletTimestampCall extends Enum {1609 interface PalletTimestampCall extends Enum {1603 readonly isSet: boolean;1610 readonly isSet: boolean;1604 readonly asSet: {1611 readonly asSet: {1607 readonly type: 'Set';1614 readonly type: 'Set';1608 }1615 }160916161610 /** @name PalletTransactionPaymentReleases (179) */1617 /** @name PalletTransactionPaymentReleases (180) */1611 interface PalletTransactionPaymentReleases extends Enum {1618 interface PalletTransactionPaymentReleases extends Enum {1612 readonly isV1Ancient: boolean;1619 readonly isV1Ancient: boolean;1613 readonly isV2: boolean;1620 readonly isV2: boolean;1614 readonly type: 'V1Ancient' | 'V2';1621 readonly type: 'V1Ancient' | 'V2';1615 }1622 }161616231617 /** @name PalletTreasuryProposal (180) */1624 /** @name PalletTreasuryProposal (181) */1618 interface PalletTreasuryProposal extends Struct {1625 interface PalletTreasuryProposal extends Struct {1619 readonly proposer: AccountId32;1626 readonly proposer: AccountId32;1620 readonly value: u128;1627 readonly value: u128;1621 readonly beneficiary: AccountId32;1628 readonly beneficiary: AccountId32;1622 readonly bond: u128;1629 readonly bond: u128;1623 }1630 }162416311625 /** @name PalletTreasuryCall (183) */1632 /** @name PalletTreasuryCall (184) */1626 interface PalletTreasuryCall extends Enum {1633 interface PalletTreasuryCall extends Enum {1627 readonly isProposeSpend: boolean;1634 readonly isProposeSpend: boolean;1628 readonly asProposeSpend: {1635 readonly asProposeSpend: {1649 readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'Spend' | 'RemoveApproval';1656 readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'Spend' | 'RemoveApproval';1650 }1657 }165116581652 /** @name FrameSupportPalletId (186) */1659 /** @name FrameSupportPalletId (187) */1653 interface FrameSupportPalletId extends U8aFixed {}1660 interface FrameSupportPalletId extends U8aFixed {}165416611655 /** @name PalletTreasuryError (187) */1662 /** @name PalletTreasuryError (188) */1656 interface PalletTreasuryError extends Enum {1663 interface PalletTreasuryError extends Enum {1657 readonly isInsufficientProposersBalance: boolean;1664 readonly isInsufficientProposersBalance: boolean;1658 readonly isInvalidIndex: boolean;1665 readonly isInvalidIndex: boolean;1662 readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'InsufficientPermission' | 'ProposalNotApproved';1669 readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'InsufficientPermission' | 'ProposalNotApproved';1663 }1670 }166416711665 /** @name PalletSudoCall (188) */1672 /** @name PalletSudoCall (189) */1666 interface PalletSudoCall extends Enum {1673 interface PalletSudoCall extends Enum {1667 readonly isSudo: boolean;1674 readonly isSudo: boolean;1668 readonly asSudo: {1675 readonly asSudo: {1685 readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';1692 readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';1686 }1693 }168716941688 /** @name OrmlVestingModuleCall (190) */1695 /** @name OrmlVestingModuleCall (191) */1689 interface OrmlVestingModuleCall extends Enum {1696 interface OrmlVestingModuleCall extends Enum {1690 readonly isClaim: boolean;1697 readonly isClaim: boolean;1691 readonly isVestedTransfer: boolean;1698 readonly isVestedTransfer: boolean;1705 readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';1712 readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';1706 }1713 }170717141708 /** @name CumulusPalletXcmpQueueCall (192) */1715 /** @name CumulusPalletXcmpQueueCall (193) */1709 interface CumulusPalletXcmpQueueCall extends Enum {1716 interface CumulusPalletXcmpQueueCall extends Enum {1710 readonly isServiceOverweight: boolean;1717 readonly isServiceOverweight: boolean;1711 readonly asServiceOverweight: {1718 readonly asServiceOverweight: {1741 readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';1748 readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';1742 }1749 }174317501744 /** @name PalletXcmCall (193) */1751 /** @name PalletXcmCall (194) */1745 interface PalletXcmCall extends Enum {1752 interface PalletXcmCall extends Enum {1746 readonly isSend: boolean;1753 readonly isSend: boolean;1747 readonly asSend: {1754 readonly asSend: {1803 readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';1810 readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';1804 }1811 }180518121806 /** @name XcmVersionedXcm (194) */1813 /** @name XcmVersionedXcm (195) */1807 interface XcmVersionedXcm extends Enum {1814 interface XcmVersionedXcm extends Enum {1808 readonly isV0: boolean;1815 readonly isV0: boolean;1809 readonly asV0: XcmV0Xcm;1816 readonly asV0: XcmV0Xcm;1814 readonly type: 'V0' | 'V1' | 'V2';1821 readonly type: 'V0' | 'V1' | 'V2';1815 }1822 }181618231817 /** @name XcmV0Xcm (195) */1824 /** @name XcmV0Xcm (196) */1818 interface XcmV0Xcm extends Enum {1825 interface XcmV0Xcm extends Enum {1819 readonly isWithdrawAsset: boolean;1826 readonly isWithdrawAsset: boolean;1820 readonly asWithdrawAsset: {1827 readonly asWithdrawAsset: {1877 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';1884 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';1878 }1885 }187918861880 /** @name XcmV0Order (197) */1887 /** @name XcmV0Order (198) */1881 interface XcmV0Order extends Enum {1888 interface XcmV0Order extends Enum {1882 readonly isNull: boolean;1889 readonly isNull: boolean;1883 readonly isDepositAsset: boolean;1890 readonly isDepositAsset: boolean;1925 readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';1932 readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';1926 }1933 }192719341928 /** @name XcmV0Response (199) */1935 /** @name XcmV0Response (200) */1929 interface XcmV0Response extends Enum {1936 interface XcmV0Response extends Enum {1930 readonly isAssets: boolean;1937 readonly isAssets: boolean;1931 readonly asAssets: Vec<XcmV0MultiAsset>;1938 readonly asAssets: Vec<XcmV0MultiAsset>;1932 readonly type: 'Assets';1939 readonly type: 'Assets';1933 }1940 }193419411935 /** @name XcmV1Xcm (200) */1942 /** @name XcmV1Xcm (201) */1936 interface XcmV1Xcm extends Enum {1943 interface XcmV1Xcm extends Enum {1937 readonly isWithdrawAsset: boolean;1944 readonly isWithdrawAsset: boolean;1938 readonly asWithdrawAsset: {1945 readonly asWithdrawAsset: {2001 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';2008 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';2002 }2009 }200320102004 /** @name XcmV1Order (202) */2011 /** @name XcmV1Order (203) */2005 interface XcmV1Order extends Enum {2012 interface XcmV1Order extends Enum {2006 readonly isNoop: boolean;2013 readonly isNoop: boolean;2007 readonly isDepositAsset: boolean;2014 readonly isDepositAsset: boolean;2051 readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';2058 readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';2052 }2059 }205320602054 /** @name XcmV1Response (204) */2061 /** @name XcmV1Response (205) */2055 interface XcmV1Response extends Enum {2062 interface XcmV1Response extends Enum {2056 readonly isAssets: boolean;2063 readonly isAssets: boolean;2057 readonly asAssets: XcmV1MultiassetMultiAssets;2064 readonly asAssets: XcmV1MultiassetMultiAssets;2060 readonly type: 'Assets' | 'Version';2067 readonly type: 'Assets' | 'Version';2061 }2068 }206220692063 /** @name CumulusPalletXcmCall (218) */2070 /** @name CumulusPalletXcmCall (219) */2064 type CumulusPalletXcmCall = Null;2071 type CumulusPalletXcmCall = Null;206520722066 /** @name CumulusPalletDmpQueueCall (219) */2073 /** @name CumulusPalletDmpQueueCall (220) */2067 interface CumulusPalletDmpQueueCall extends Enum {2074 interface CumulusPalletDmpQueueCall extends Enum {2068 readonly isServiceOverweight: boolean;2075 readonly isServiceOverweight: boolean;2069 readonly asServiceOverweight: {2076 readonly asServiceOverweight: {2073 readonly type: 'ServiceOverweight';2080 readonly type: 'ServiceOverweight';2074 }2081 }207520822076 /** @name PalletInflationCall (220) */2083 /** @name PalletInflationCall (221) */2077 interface PalletInflationCall extends Enum {2084 interface PalletInflationCall extends Enum {2078 readonly isStartInflation: boolean;2085 readonly isStartInflation: boolean;2079 readonly asStartInflation: {2086 readonly asStartInflation: {2082 readonly type: 'StartInflation';2089 readonly type: 'StartInflation';2083 }2090 }208420912085 /** @name PalletUniqueCall (221) */2092 /** @name PalletUniqueCall (222) */2086 interface PalletUniqueCall extends Enum {2093 interface PalletUniqueCall extends Enum {2087 readonly isCreateCollection: boolean;2094 readonly isCreateCollection: boolean;2088 readonly asCreateCollection: {2095 readonly asCreateCollection: {2240 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';2247 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';2241 }2248 }224222492243 /** @name UpDataStructsCollectionMode (226) */2250 /** @name UpDataStructsCollectionMode (227) */2244 interface UpDataStructsCollectionMode extends Enum {2251 interface UpDataStructsCollectionMode extends Enum {2245 readonly isNft: boolean;2252 readonly isNft: boolean;2246 readonly isFungible: boolean;2253 readonly isFungible: boolean;2249 readonly type: 'Nft' | 'Fungible' | 'ReFungible';2256 readonly type: 'Nft' | 'Fungible' | 'ReFungible';2250 }2257 }225122582252 /** @name UpDataStructsCreateCollectionData (227) */2259 /** @name UpDataStructsCreateCollectionData (228) */2253 interface UpDataStructsCreateCollectionData extends Struct {2260 interface UpDataStructsCreateCollectionData extends Struct {2254 readonly mode: UpDataStructsCollectionMode;2261 readonly mode: UpDataStructsCollectionMode;2255 readonly access: Option<UpDataStructsAccessMode>;2262 readonly access: Option<UpDataStructsAccessMode>;2263 readonly properties: Vec<UpDataStructsProperty>;2270 readonly properties: Vec<UpDataStructsProperty>;2264 }2271 }226522722266 /** @name UpDataStructsAccessMode (229) */2273 /** @name UpDataStructsAccessMode (230) */2267 interface UpDataStructsAccessMode extends Enum {2274 interface UpDataStructsAccessMode extends Enum {2268 readonly isNormal: boolean;2275 readonly isNormal: boolean;2269 readonly isAllowList: boolean;2276 readonly isAllowList: boolean;2270 readonly type: 'Normal' | 'AllowList';2277 readonly type: 'Normal' | 'AllowList';2271 }2278 }227222792273 /** @name UpDataStructsCollectionLimits (231) */2280 /** @name UpDataStructsCollectionLimits (232) */2274 interface UpDataStructsCollectionLimits extends Struct {2281 interface UpDataStructsCollectionLimits extends Struct {2275 readonly accountTokenOwnershipLimit: Option<u32>;2282 readonly accountTokenOwnershipLimit: Option<u32>;2276 readonly sponsoredDataSize: Option<u32>;2283 readonly sponsoredDataSize: Option<u32>;2283 readonly transfersEnabled: Option<bool>;2290 readonly transfersEnabled: Option<bool>;2284 }2291 }228522922286 /** @name UpDataStructsSponsoringRateLimit (233) */2293 /** @name UpDataStructsSponsoringRateLimit (234) */2287 interface UpDataStructsSponsoringRateLimit extends Enum {2294 interface UpDataStructsSponsoringRateLimit extends Enum {2288 readonly isSponsoringDisabled: boolean;2295 readonly isSponsoringDisabled: boolean;2289 readonly isBlocks: boolean;2296 readonly isBlocks: boolean;2290 readonly asBlocks: u32;2297 readonly asBlocks: u32;2291 readonly type: 'SponsoringDisabled' | 'Blocks';2298 readonly type: 'SponsoringDisabled' | 'Blocks';2292 }2299 }229323002294 /** @name UpDataStructsCollectionPermissions (236) */2301 /** @name UpDataStructsCollectionPermissions (237) */2295 interface UpDataStructsCollectionPermissions extends Struct {2302 interface UpDataStructsCollectionPermissions extends Struct {2296 readonly access: Option<UpDataStructsAccessMode>;2303 readonly access: Option<UpDataStructsAccessMode>;2297 readonly mintMode: Option<bool>;2304 readonly mintMode: Option<bool>;2298 readonly nesting: Option<UpDataStructsNestingPermissions>;2305 readonly nesting: Option<UpDataStructsNestingPermissions>;2299 }2306 }230023072301 /** @name UpDataStructsNestingPermissions (238) */2308 /** @name UpDataStructsNestingPermissions (239) */2302 interface UpDataStructsNestingPermissions extends Struct {2309 interface UpDataStructsNestingPermissions extends Struct {2303 readonly tokenOwner: bool;2310 readonly tokenOwner: bool;2304 readonly collectionAdmin: bool;2311 readonly collectionAdmin: bool;2305 readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;2312 readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;2306 }2313 }230723142308 /** @name UpDataStructsOwnerRestrictedSet (240) */2315 /** @name UpDataStructsOwnerRestrictedSet (241) */2309 interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}2316 interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}231023172311 /** @name UpDataStructsPropertyKeyPermission (245) */2318 /** @name UpDataStructsPropertyKeyPermission (246) */2312 interface UpDataStructsPropertyKeyPermission extends Struct {2319 interface UpDataStructsPropertyKeyPermission extends Struct {2313 readonly key: Bytes;2320 readonly key: Bytes;2314 readonly permission: UpDataStructsPropertyPermission;2321 readonly permission: UpDataStructsPropertyPermission;2315 }2322 }231623232317 /** @name UpDataStructsPropertyPermission (246) */2324 /** @name UpDataStructsPropertyPermission (247) */2318 interface UpDataStructsPropertyPermission extends Struct {2325 interface UpDataStructsPropertyPermission extends Struct {2319 readonly mutable: bool;2326 readonly mutable: bool;2320 readonly collectionAdmin: bool;2327 readonly collectionAdmin: bool;2321 readonly tokenOwner: bool;2328 readonly tokenOwner: bool;2322 }2329 }232323302324 /** @name UpDataStructsProperty (249) */2331 /** @name UpDataStructsProperty (250) */2325 interface UpDataStructsProperty extends Struct {2332 interface UpDataStructsProperty extends Struct {2326 readonly key: Bytes;2333 readonly key: Bytes;2327 readonly value: Bytes;2334 readonly value: Bytes;2328 }2335 }232923362330 /** @name UpDataStructsCreateItemData (252) */2337 /** @name UpDataStructsCreateItemData (253) */2331 interface UpDataStructsCreateItemData extends Enum {2338 interface UpDataStructsCreateItemData extends Enum {2332 readonly isNft: boolean;2339 readonly isNft: boolean;2333 readonly asNft: UpDataStructsCreateNftData;2340 readonly asNft: UpDataStructsCreateNftData;2338 readonly type: 'Nft' | 'Fungible' | 'ReFungible';2345 readonly type: 'Nft' | 'Fungible' | 'ReFungible';2339 }2346 }234023472341 /** @name UpDataStructsCreateNftData (253) */2348 /** @name UpDataStructsCreateNftData (254) */2342 interface UpDataStructsCreateNftData extends Struct {2349 interface UpDataStructsCreateNftData extends Struct {2343 readonly properties: Vec<UpDataStructsProperty>;2350 readonly properties: Vec<UpDataStructsProperty>;2344 }2351 }234523522346 /** @name UpDataStructsCreateFungibleData (254) */2353 /** @name UpDataStructsCreateFungibleData (255) */2347 interface UpDataStructsCreateFungibleData extends Struct {2354 interface UpDataStructsCreateFungibleData extends Struct {2348 readonly value: u128;2355 readonly value: u128;2349 }2356 }235023572351 /** @name UpDataStructsCreateReFungibleData (255) */2358 /** @name UpDataStructsCreateReFungibleData (256) */2352 interface UpDataStructsCreateReFungibleData extends Struct {2359 interface UpDataStructsCreateReFungibleData extends Struct {2353 readonly pieces: u128;2360 readonly pieces: u128;2354 readonly properties: Vec<UpDataStructsProperty>;2361 readonly properties: Vec<UpDataStructsProperty>;2355 }2362 }235623632357 /** @name UpDataStructsCreateItemExData (258) */2364 /** @name UpDataStructsCreateItemExData (259) */2358 interface UpDataStructsCreateItemExData extends Enum {2365 interface UpDataStructsCreateItemExData extends Enum {2359 readonly isNft: boolean;2366 readonly isNft: boolean;2360 readonly asNft: Vec<UpDataStructsCreateNftExData>;2367 readonly asNft: Vec<UpDataStructsCreateNftExData>;2367 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';2374 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';2368 }2375 }236923762370 /** @name UpDataStructsCreateNftExData (260) */2377 /** @name UpDataStructsCreateNftExData (261) */2371 interface UpDataStructsCreateNftExData extends Struct {2378 interface UpDataStructsCreateNftExData extends Struct {2372 readonly properties: Vec<UpDataStructsProperty>;2379 readonly properties: Vec<UpDataStructsProperty>;2373 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;2380 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;2374 }2381 }237523822376 /** @name UpDataStructsCreateRefungibleExSingleOwner (267) */2383 /** @name UpDataStructsCreateRefungibleExSingleOwner (268) */2377 interface UpDataStructsCreateRefungibleExSingleOwner extends Struct {2384 interface UpDataStructsCreateRefungibleExSingleOwner extends Struct {2378 readonly user: PalletEvmAccountBasicCrossAccountIdRepr;2385 readonly user: PalletEvmAccountBasicCrossAccountIdRepr;2379 readonly pieces: u128;2386 readonly pieces: u128;2380 readonly properties: Vec<UpDataStructsProperty>;2387 readonly properties: Vec<UpDataStructsProperty>;2381 }2388 }238223892383 /** @name UpDataStructsCreateRefungibleExMultipleOwners (269) */2390 /** @name UpDataStructsCreateRefungibleExMultipleOwners (270) */2384 interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct {2391 interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct {2385 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;2392 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;2386 readonly properties: Vec<UpDataStructsProperty>;2393 readonly properties: Vec<UpDataStructsProperty>;2387 }2394 }238823952389 /** @name PalletUniqueSchedulerCall (270) */2396 /** @name PalletUniqueSchedulerCall (271) */2390 interface PalletUniqueSchedulerCall extends Enum {2397 interface PalletUniqueSchedulerCall extends Enum {2391 readonly isScheduleNamed: boolean;2398 readonly isScheduleNamed: boolean;2392 readonly asScheduleNamed: {2399 readonly asScheduleNamed: {2411 readonly type: 'ScheduleNamed' | 'CancelNamed' | 'ScheduleNamedAfter';2418 readonly type: 'ScheduleNamed' | 'CancelNamed' | 'ScheduleNamedAfter';2412 }2419 }241324202414 /** @name FrameSupportScheduleMaybeHashed (272) */2421 /** @name FrameSupportScheduleMaybeHashed (273) */2415 interface FrameSupportScheduleMaybeHashed extends Enum {2422 interface FrameSupportScheduleMaybeHashed extends Enum {2416 readonly isValue: boolean;2423 readonly isValue: boolean;2417 readonly asValue: Call;2424 readonly asValue: Call;2420 readonly type: 'Value' | 'Hash';2427 readonly type: 'Value' | 'Hash';2421 }2428 }242224292423 /** @name PalletConfigurationCall (273) */2430 /** @name PalletConfigurationCall (274) */2424 interface PalletConfigurationCall extends Enum {2431 interface PalletConfigurationCall extends Enum {2425 readonly isSetWeightToFeeCoefficientOverride: boolean;2432 readonly isSetWeightToFeeCoefficientOverride: boolean;2426 readonly asSetWeightToFeeCoefficientOverride: {2433 readonly asSetWeightToFeeCoefficientOverride: {2433 readonly type: 'SetWeightToFeeCoefficientOverride' | 'SetMinGasPriceOverride';2440 readonly type: 'SetWeightToFeeCoefficientOverride' | 'SetMinGasPriceOverride';2434 }2441 }243524422436 /** @name PalletTemplateTransactionPaymentCall (274) */2443 /** @name PalletTemplateTransactionPaymentCall (275) */2437 type PalletTemplateTransactionPaymentCall = Null;2444 type PalletTemplateTransactionPaymentCall = Null;243824452439 /** @name PalletStructureCall (275) */2446 /** @name PalletStructureCall (276) */2440 type PalletStructureCall = Null;2447 type PalletStructureCall = Null;244124482442 /** @name PalletRmrkCoreCall (276) */2449 /** @name PalletRmrkCoreCall (277) */2443 interface PalletRmrkCoreCall extends Enum {2450 interface PalletRmrkCoreCall extends Enum {2444 readonly isCreateCollection: boolean;2451 readonly isCreateCollection: boolean;2445 readonly asCreateCollection: {2452 readonly asCreateCollection: {2545 readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';2552 readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';2546 }2553 }254725542548 /** @name RmrkTraitsResourceResourceTypes (282) */2555 /** @name RmrkTraitsResourceResourceTypes (283) */2549 interface RmrkTraitsResourceResourceTypes extends Enum {2556 interface RmrkTraitsResourceResourceTypes extends Enum {2550 readonly isBasic: boolean;2557 readonly isBasic: boolean;2551 readonly asBasic: RmrkTraitsResourceBasicResource;2558 readonly asBasic: RmrkTraitsResourceBasicResource;2556 readonly type: 'Basic' | 'Composable' | 'Slot';2563 readonly type: 'Basic' | 'Composable' | 'Slot';2557 }2564 }255825652559 /** @name RmrkTraitsResourceBasicResource (284) */2566 /** @name RmrkTraitsResourceBasicResource (285) */2560 interface RmrkTraitsResourceBasicResource extends Struct {2567 interface RmrkTraitsResourceBasicResource extends Struct {2561 readonly src: Option<Bytes>;2568 readonly src: Option<Bytes>;2562 readonly metadata: Option<Bytes>;2569 readonly metadata: Option<Bytes>;2563 readonly license: Option<Bytes>;2570 readonly license: Option<Bytes>;2564 readonly thumb: Option<Bytes>;2571 readonly thumb: Option<Bytes>;2565 }2572 }256625732567 /** @name RmrkTraitsResourceComposableResource (286) */2574 /** @name RmrkTraitsResourceComposableResource (287) */2568 interface RmrkTraitsResourceComposableResource extends Struct {2575 interface RmrkTraitsResourceComposableResource extends Struct {2569 readonly parts: Vec<u32>;2576 readonly parts: Vec<u32>;2570 readonly base: u32;2577 readonly base: u32;2574 readonly thumb: Option<Bytes>;2581 readonly thumb: Option<Bytes>;2575 }2582 }257625832577 /** @name RmrkTraitsResourceSlotResource (287) */2584 /** @name RmrkTraitsResourceSlotResource (288) */2578 interface RmrkTraitsResourceSlotResource extends Struct {2585 interface RmrkTraitsResourceSlotResource extends Struct {2579 readonly base: u32;2586 readonly base: u32;2580 readonly src: Option<Bytes>;2587 readonly src: Option<Bytes>;2584 readonly thumb: Option<Bytes>;2591 readonly thumb: Option<Bytes>;2585 }2592 }258625932587 /** @name PalletRmrkEquipCall (290) */2594 /** @name PalletRmrkEquipCall (291) */2588 interface PalletRmrkEquipCall extends Enum {2595 interface PalletRmrkEquipCall extends Enum {2589 readonly isCreateBase: boolean;2596 readonly isCreateBase: boolean;2590 readonly asCreateBase: {2597 readonly asCreateBase: {2606 readonly type: 'CreateBase' | 'ThemeAdd' | 'Equippable';2613 readonly type: 'CreateBase' | 'ThemeAdd' | 'Equippable';2607 }2614 }260826152609 /** @name RmrkTraitsPartPartType (293) */2616 /** @name RmrkTraitsPartPartType (294) */2610 interface RmrkTraitsPartPartType extends Enum {2617 interface RmrkTraitsPartPartType extends Enum {2611 readonly isFixedPart: boolean;2618 readonly isFixedPart: boolean;2612 readonly asFixedPart: RmrkTraitsPartFixedPart;2619 readonly asFixedPart: RmrkTraitsPartFixedPart;2615 readonly type: 'FixedPart' | 'SlotPart';2622 readonly type: 'FixedPart' | 'SlotPart';2616 }2623 }261726242618 /** @name RmrkTraitsPartFixedPart (295) */2625 /** @name RmrkTraitsPartFixedPart (296) */2619 interface RmrkTraitsPartFixedPart extends Struct {2626 interface RmrkTraitsPartFixedPart extends Struct {2620 readonly id: u32;2627 readonly id: u32;2621 readonly z: u32;2628 readonly z: u32;2622 readonly src: Bytes;2629 readonly src: Bytes;2623 }2630 }262426312625 /** @name RmrkTraitsPartSlotPart (296) */2632 /** @name RmrkTraitsPartSlotPart (297) */2626 interface RmrkTraitsPartSlotPart extends Struct {2633 interface RmrkTraitsPartSlotPart extends Struct {2627 readonly id: u32;2634 readonly id: u32;2628 readonly equippable: RmrkTraitsPartEquippableList;2635 readonly equippable: RmrkTraitsPartEquippableList;2629 readonly src: Bytes;2636 readonly src: Bytes;2630 readonly z: u32;2637 readonly z: u32;2631 }2638 }263226392633 /** @name RmrkTraitsPartEquippableList (297) */2640 /** @name RmrkTraitsPartEquippableList (298) */2634 interface RmrkTraitsPartEquippableList extends Enum {2641 interface RmrkTraitsPartEquippableList extends Enum {2635 readonly isAll: boolean;2642 readonly isAll: boolean;2636 readonly isEmpty: boolean;2643 readonly isEmpty: boolean;2639 readonly type: 'All' | 'Empty' | 'Custom';2646 readonly type: 'All' | 'Empty' | 'Custom';2640 }2647 }264126482642 /** @name RmrkTraitsTheme (299) */2649 /** @name RmrkTraitsTheme (300) */2643 interface RmrkTraitsTheme extends Struct {2650 interface RmrkTraitsTheme extends Struct {2644 readonly name: Bytes;2651 readonly name: Bytes;2645 readonly properties: Vec<RmrkTraitsThemeThemeProperty>;2652 readonly properties: Vec<RmrkTraitsThemeThemeProperty>;2646 readonly inherit: bool;2653 readonly inherit: bool;2647 }2654 }264826552649 /** @name RmrkTraitsThemeThemeProperty (301) */2656 /** @name RmrkTraitsThemeThemeProperty (302) */2650 interface RmrkTraitsThemeThemeProperty extends Struct {2657 interface RmrkTraitsThemeThemeProperty extends Struct {2651 readonly key: Bytes;2658 readonly key: Bytes;2652 readonly value: Bytes;2659 readonly value: Bytes;2653 }2660 }265426612655 /** @name PalletAppPromotionCall (303) */2662 /** @name PalletAppPromotionCall (304) */2656 interface PalletAppPromotionCall extends Enum {2663 interface PalletAppPromotionCall extends Enum {2657 readonly isSetAdminAddress: boolean;2664 readonly isSetAdminAddress: boolean;2658 readonly asSetAdminAddress: {2665 readonly asSetAdminAddress: {2659 readonly admin: AccountId32;2666 readonly admin: PalletEvmAccountBasicCrossAccountIdRepr;2660 } & Struct;2667 } & Struct;2661 readonly isStartAppPromotion: boolean;2668 readonly isStartAppPromotion: boolean;2662 readonly asStartAppPromotion: {2669 readonly asStartAppPromotion: {2663 readonly promotionStartRelayBlock: u32;2670 readonly promotionStartRelayBlock: Option<u32>;2664 } & Struct;2671 } & Struct;2665 readonly isStake: boolean;2672 readonly isStake: boolean;2666 readonly asStake: {2673 readonly asStake: {2670 readonly asUnstake: {2677 readonly asUnstake: {2671 readonly amount: u128;2678 readonly amount: u128;2672 } & Struct;2679 } & Struct;2680 readonly isSponsorCollection: boolean;2681 readonly asSponsorCollection: {2682 readonly collectionId: u32;2683 } & Struct;2684 readonly isStopSponsorignCollection: boolean;2685 readonly asStopSponsorignCollection: {2686 readonly collectionId: u32;2687 } & Struct;2673 readonly type: 'SetAdminAddress' | 'StartAppPromotion' | 'Stake' | 'Unstake';2688 readonly type: 'SetAdminAddress' | 'StartAppPromotion' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsorignCollection';2674 }2689 }267526902676 /** @name PalletEvmCall (304) */2691 /** @name PalletEvmCall (305) */2677 interface PalletEvmCall extends Enum {2692 interface PalletEvmCall extends Enum {2678 readonly isWithdraw: boolean;2693 readonly isWithdraw: boolean;2679 readonly asWithdraw: {2694 readonly asWithdraw: {2718 readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';2733 readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';2719 }2734 }272027352721 /** @name PalletEthereumCall (308) */2736 /** @name PalletEthereumCall (309) */2722 interface PalletEthereumCall extends Enum {2737 interface PalletEthereumCall extends Enum {2723 readonly isTransact: boolean;2738 readonly isTransact: boolean;2724 readonly asTransact: {2739 readonly asTransact: {2727 readonly type: 'Transact';2742 readonly type: 'Transact';2728 }2743 }272927442730 /** @name EthereumTransactionTransactionV2 (309) */2745 /** @name EthereumTransactionTransactionV2 (310) */2731 interface EthereumTransactionTransactionV2 extends Enum {2746 interface EthereumTransactionTransactionV2 extends Enum {2732 readonly isLegacy: boolean;2747 readonly isLegacy: boolean;2733 readonly asLegacy: EthereumTransactionLegacyTransaction;2748 readonly asLegacy: EthereumTransactionLegacyTransaction;2738 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';2753 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';2739 }2754 }274027552741 /** @name EthereumTransactionLegacyTransaction (310) */2756 /** @name EthereumTransactionLegacyTransaction (311) */2742 interface EthereumTransactionLegacyTransaction extends Struct {2757 interface EthereumTransactionLegacyTransaction extends Struct {2743 readonly nonce: U256;2758 readonly nonce: U256;2744 readonly gasPrice: U256;2759 readonly gasPrice: U256;2749 readonly signature: EthereumTransactionTransactionSignature;2764 readonly signature: EthereumTransactionTransactionSignature;2750 }2765 }275127662752 /** @name EthereumTransactionTransactionAction (311) */2767 /** @name EthereumTransactionTransactionAction (312) */2753 interface EthereumTransactionTransactionAction extends Enum {2768 interface EthereumTransactionTransactionAction extends Enum {2754 readonly isCall: boolean;2769 readonly isCall: boolean;2755 readonly asCall: H160;2770 readonly asCall: H160;2756 readonly isCreate: boolean;2771 readonly isCreate: boolean;2757 readonly type: 'Call' | 'Create';2772 readonly type: 'Call' | 'Create';2758 }2773 }275927742760 /** @name EthereumTransactionTransactionSignature (312) */2775 /** @name EthereumTransactionTransactionSignature (313) */2761 interface EthereumTransactionTransactionSignature extends Struct {2776 interface EthereumTransactionTransactionSignature extends Struct {2762 readonly v: u64;2777 readonly v: u64;2763 readonly r: H256;2778 readonly r: H256;2764 readonly s: H256;2779 readonly s: H256;2765 }2780 }276627812767 /** @name EthereumTransactionEip2930Transaction (314) */2782 /** @name EthereumTransactionEip2930Transaction (315) */2768 interface EthereumTransactionEip2930Transaction extends Struct {2783 interface EthereumTransactionEip2930Transaction extends Struct {2769 readonly chainId: u64;2784 readonly chainId: u64;2770 readonly nonce: U256;2785 readonly nonce: U256;2779 readonly s: H256;2794 readonly s: H256;2780 }2795 }278127962782 /** @name EthereumTransactionAccessListItem (316) */2797 /** @name EthereumTransactionAccessListItem (317) */2783 interface EthereumTransactionAccessListItem extends Struct {2798 interface EthereumTransactionAccessListItem extends Struct {2784 readonly address: H160;2799 readonly address: H160;2785 readonly storageKeys: Vec<H256>;2800 readonly storageKeys: Vec<H256>;2786 }2801 }278728022788 /** @name EthereumTransactionEip1559Transaction (317) */2803 /** @name EthereumTransactionEip1559Transaction (318) */2789 interface EthereumTransactionEip1559Transaction extends Struct {2804 interface EthereumTransactionEip1559Transaction extends Struct {2790 readonly chainId: u64;2805 readonly chainId: u64;2791 readonly nonce: U256;2806 readonly nonce: U256;2801 readonly s: H256;2816 readonly s: H256;2802 }2817 }280328182804 /** @name PalletEvmMigrationCall (318) */2819 /** @name PalletEvmMigrationCall (319) */2805 interface PalletEvmMigrationCall extends Enum {2820 interface PalletEvmMigrationCall extends Enum {2806 readonly isBegin: boolean;2821 readonly isBegin: boolean;2807 readonly asBegin: {2822 readonly asBegin: {2820 readonly type: 'Begin' | 'SetData' | 'Finish';2835 readonly type: 'Begin' | 'SetData' | 'Finish';2821 }2836 }282228372823 /** @name PalletSudoError (321) */2838 /** @name PalletSudoError (322) */2824 interface PalletSudoError extends Enum {2839 interface PalletSudoError extends Enum {2825 readonly isRequireSudo: boolean;2840 readonly isRequireSudo: boolean;2826 readonly type: 'RequireSudo';2841 readonly type: 'RequireSudo';2827 }2842 }282828432829 /** @name OrmlVestingModuleError (323) */2844 /** @name OrmlVestingModuleError (324) */2830 interface OrmlVestingModuleError extends Enum {2845 interface OrmlVestingModuleError extends Enum {2831 readonly isZeroVestingPeriod: boolean;2846 readonly isZeroVestingPeriod: boolean;2832 readonly isZeroVestingPeriodCount: boolean;2847 readonly isZeroVestingPeriodCount: boolean;2837 readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';2852 readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';2838 }2853 }283928542840 /** @name CumulusPalletXcmpQueueInboundChannelDetails (325) */2855 /** @name CumulusPalletXcmpQueueInboundChannelDetails (326) */2841 interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {2856 interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {2842 readonly sender: u32;2857 readonly sender: u32;2843 readonly state: CumulusPalletXcmpQueueInboundState;2858 readonly state: CumulusPalletXcmpQueueInboundState;2844 readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;2859 readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;2845 }2860 }284628612847 /** @name CumulusPalletXcmpQueueInboundState (326) */2862 /** @name CumulusPalletXcmpQueueInboundState (327) */2848 interface CumulusPalletXcmpQueueInboundState extends Enum {2863 interface CumulusPalletXcmpQueueInboundState extends Enum {2849 readonly isOk: boolean;2864 readonly isOk: boolean;2850 readonly isSuspended: boolean;2865 readonly isSuspended: boolean;2851 readonly type: 'Ok' | 'Suspended';2866 readonly type: 'Ok' | 'Suspended';2852 }2867 }285328682854 /** @name PolkadotParachainPrimitivesXcmpMessageFormat (329) */2869 /** @name PolkadotParachainPrimitivesXcmpMessageFormat (330) */2855 interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {2870 interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {2856 readonly isConcatenatedVersionedXcm: boolean;2871 readonly isConcatenatedVersionedXcm: boolean;2857 readonly isConcatenatedEncodedBlob: boolean;2872 readonly isConcatenatedEncodedBlob: boolean;2858 readonly isSignals: boolean;2873 readonly isSignals: boolean;2859 readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';2874 readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';2860 }2875 }286128762862 /** @name CumulusPalletXcmpQueueOutboundChannelDetails (332) */2877 /** @name CumulusPalletXcmpQueueOutboundChannelDetails (333) */2863 interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {2878 interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {2864 readonly recipient: u32;2879 readonly recipient: u32;2865 readonly state: CumulusPalletXcmpQueueOutboundState;2880 readonly state: CumulusPalletXcmpQueueOutboundState;2868 readonly lastIndex: u16;2883 readonly lastIndex: u16;2869 }2884 }287028852871 /** @name CumulusPalletXcmpQueueOutboundState (333) */2886 /** @name CumulusPalletXcmpQueueOutboundState (334) */2872 interface CumulusPalletXcmpQueueOutboundState extends Enum {2887 interface CumulusPalletXcmpQueueOutboundState extends Enum {2873 readonly isOk: boolean;2888 readonly isOk: boolean;2874 readonly isSuspended: boolean;2889 readonly isSuspended: boolean;2875 readonly type: 'Ok' | 'Suspended';2890 readonly type: 'Ok' | 'Suspended';2876 }2891 }287728922878 /** @name CumulusPalletXcmpQueueQueueConfigData (335) */2893 /** @name CumulusPalletXcmpQueueQueueConfigData (336) */2879 interface CumulusPalletXcmpQueueQueueConfigData extends Struct {2894 interface CumulusPalletXcmpQueueQueueConfigData extends Struct {2880 readonly suspendThreshold: u32;2895 readonly suspendThreshold: u32;2881 readonly dropThreshold: u32;2896 readonly dropThreshold: u32;2885 readonly xcmpMaxIndividualWeight: u64;2900 readonly xcmpMaxIndividualWeight: u64;2886 }2901 }288729022888 /** @name CumulusPalletXcmpQueueError (337) */2903 /** @name CumulusPalletXcmpQueueError (338) */2889 interface CumulusPalletXcmpQueueError extends Enum {2904 interface CumulusPalletXcmpQueueError extends Enum {2890 readonly isFailedToSend: boolean;2905 readonly isFailedToSend: boolean;2891 readonly isBadXcmOrigin: boolean;2906 readonly isBadXcmOrigin: boolean;2895 readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';2910 readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';2896 }2911 }289729122898 /** @name PalletXcmError (338) */2913 /** @name PalletXcmError (339) */2899 interface PalletXcmError extends Enum {2914 interface PalletXcmError extends Enum {2900 readonly isUnreachable: boolean;2915 readonly isUnreachable: boolean;2901 readonly isSendFailure: boolean;2916 readonly isSendFailure: boolean;2913 readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';2928 readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';2914 }2929 }291529302916 /** @name CumulusPalletXcmError (339) */2931 /** @name CumulusPalletXcmError (340) */2917 type CumulusPalletXcmError = Null;2932 type CumulusPalletXcmError = Null;291829332919 /** @name CumulusPalletDmpQueueConfigData (340) */2934 /** @name CumulusPalletDmpQueueConfigData (341) */2920 interface CumulusPalletDmpQueueConfigData extends Struct {2935 interface CumulusPalletDmpQueueConfigData extends Struct {2921 readonly maxIndividual: u64;2936 readonly maxIndividual: u64;2922 }2937 }292329382924 /** @name CumulusPalletDmpQueuePageIndexData (341) */2939 /** @name CumulusPalletDmpQueuePageIndexData (342) */2925 interface CumulusPalletDmpQueuePageIndexData extends Struct {2940 interface CumulusPalletDmpQueuePageIndexData extends Struct {2926 readonly beginUsed: u32;2941 readonly beginUsed: u32;2927 readonly endUsed: u32;2942 readonly endUsed: u32;2928 readonly overweightCount: u64;2943 readonly overweightCount: u64;2929 }2944 }293029452931 /** @name CumulusPalletDmpQueueError (344) */2946 /** @name CumulusPalletDmpQueueError (345) */2932 interface CumulusPalletDmpQueueError extends Enum {2947 interface CumulusPalletDmpQueueError extends Enum {2933 readonly isUnknown: boolean;2948 readonly isUnknown: boolean;2934 readonly isOverLimit: boolean;2949 readonly isOverLimit: boolean;2935 readonly type: 'Unknown' | 'OverLimit';2950 readonly type: 'Unknown' | 'OverLimit';2936 }2951 }293729522938 /** @name PalletUniqueError (348) */2953 /** @name PalletUniqueError (349) */2939 interface PalletUniqueError extends Enum {2954 interface PalletUniqueError extends Enum {2940 readonly isCollectionDecimalPointLimitExceeded: boolean;2955 readonly isCollectionDecimalPointLimitExceeded: boolean;2941 readonly isConfirmUnsetSponsorFail: boolean;2956 readonly isConfirmUnsetSponsorFail: boolean;2944 readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';2959 readonly type: 'CollectionDecimalPointLimitExceeded' | 'ConfirmUnsetSponsorFail' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';2945 }2960 }294629612947 /** @name PalletUniqueSchedulerScheduledV3 (351) */2962 /** @name PalletUniqueSchedulerScheduledV3 (352) */2948 interface PalletUniqueSchedulerScheduledV3 extends Struct {2963 interface PalletUniqueSchedulerScheduledV3 extends Struct {2949 readonly maybeId: Option<U8aFixed>;2964 readonly maybeId: Option<U8aFixed>;2950 readonly priority: u8;2965 readonly priority: u8;2953 readonly origin: OpalRuntimeOriginCaller;2968 readonly origin: OpalRuntimeOriginCaller;2954 }2969 }295529702956 /** @name OpalRuntimeOriginCaller (352) */2971 /** @name OpalRuntimeOriginCaller (353) */2957 interface OpalRuntimeOriginCaller extends Enum {2972 interface OpalRuntimeOriginCaller extends Enum {2958 readonly isSystem: boolean;2973 readonly isSystem: boolean;2959 readonly asSystem: FrameSupportDispatchRawOrigin;2974 readonly asSystem: FrameSupportDispatchRawOrigin;2967 readonly type: 'System' | 'Void' | 'PolkadotXcm' | 'CumulusXcm' | 'Ethereum';2982 readonly type: 'System' | 'Void' | 'PolkadotXcm' | 'CumulusXcm' | 'Ethereum';2968 }2983 }296929842970 /** @name FrameSupportDispatchRawOrigin (353) */2985 /** @name FrameSupportDispatchRawOrigin (354) */2971 interface FrameSupportDispatchRawOrigin extends Enum {2986 interface FrameSupportDispatchRawOrigin extends Enum {2972 readonly isRoot: boolean;2987 readonly isRoot: boolean;2973 readonly isSigned: boolean;2988 readonly isSigned: boolean;2976 readonly type: 'Root' | 'Signed' | 'None';2991 readonly type: 'Root' | 'Signed' | 'None';2977 }2992 }297829932979 /** @name PalletXcmOrigin (354) */2994 /** @name PalletXcmOrigin (355) */2980 interface PalletXcmOrigin extends Enum {2995 interface PalletXcmOrigin extends Enum {2981 readonly isXcm: boolean;2996 readonly isXcm: boolean;2982 readonly asXcm: XcmV1MultiLocation;2997 readonly asXcm: XcmV1MultiLocation;2985 readonly type: 'Xcm' | 'Response';3000 readonly type: 'Xcm' | 'Response';2986 }3001 }298730022988 /** @name CumulusPalletXcmOrigin (355) */3003 /** @name CumulusPalletXcmOrigin (356) */2989 interface CumulusPalletXcmOrigin extends Enum {3004 interface CumulusPalletXcmOrigin extends Enum {2990 readonly isRelay: boolean;3005 readonly isRelay: boolean;2991 readonly isSiblingParachain: boolean;3006 readonly isSiblingParachain: boolean;2992 readonly asSiblingParachain: u32;3007 readonly asSiblingParachain: u32;2993 readonly type: 'Relay' | 'SiblingParachain';3008 readonly type: 'Relay' | 'SiblingParachain';2994 }3009 }299530102996 /** @name PalletEthereumRawOrigin (356) */3011 /** @name PalletEthereumRawOrigin (357) */2997 interface PalletEthereumRawOrigin extends Enum {3012 interface PalletEthereumRawOrigin extends Enum {2998 readonly isEthereumTransaction: boolean;3013 readonly isEthereumTransaction: boolean;2999 readonly asEthereumTransaction: H160;3014 readonly asEthereumTransaction: H160;3000 readonly type: 'EthereumTransaction';3015 readonly type: 'EthereumTransaction';3001 }3016 }300230173003 /** @name SpCoreVoid (357) */3018 /** @name SpCoreVoid (358) */3004 type SpCoreVoid = Null;3019 type SpCoreVoid = Null;300530203006 /** @name PalletUniqueSchedulerError (358) */3021 /** @name PalletUniqueSchedulerError (359) */3007 interface PalletUniqueSchedulerError extends Enum {3022 interface PalletUniqueSchedulerError extends Enum {3008 readonly isFailedToSchedule: boolean;3023 readonly isFailedToSchedule: boolean;3009 readonly isNotFound: boolean;3024 readonly isNotFound: boolean;3012 readonly type: 'FailedToSchedule' | 'NotFound' | 'TargetBlockNumberInPast' | 'RescheduleNoChange';3027 readonly type: 'FailedToSchedule' | 'NotFound' | 'TargetBlockNumberInPast' | 'RescheduleNoChange';3013 }3028 }301430293015 /** @name UpDataStructsCollection (359) */3030 /** @name UpDataStructsCollection (360) */3016 interface UpDataStructsCollection extends Struct {3031 interface UpDataStructsCollection extends Struct {3017 readonly owner: AccountId32;3032 readonly owner: AccountId32;3018 readonly mode: UpDataStructsCollectionMode;3033 readonly mode: UpDataStructsCollectionMode;3025 readonly externalCollection: bool;3040 readonly externalCollection: bool;3026 }3041 }302730423028 /** @name UpDataStructsSponsorshipState (360) */3043 /** @name UpDataStructsSponsorshipState (361) */3029 interface UpDataStructsSponsorshipState extends Enum {3044 interface UpDataStructsSponsorshipState extends Enum {3030 readonly isDisabled: boolean;3045 readonly isDisabled: boolean;3031 readonly isUnconfirmed: boolean;3046 readonly isUnconfirmed: boolean;3035 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3050 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3036 }3051 }303730523038 /** @name UpDataStructsProperties (361) */3053 /** @name UpDataStructsProperties (362) */3039 interface UpDataStructsProperties extends Struct {3054 interface UpDataStructsProperties extends Struct {3040 readonly map: UpDataStructsPropertiesMapBoundedVec;3055 readonly map: UpDataStructsPropertiesMapBoundedVec;3041 readonly consumedSpace: u32;3056 readonly consumedSpace: u32;3042 readonly spaceLimit: u32;3057 readonly spaceLimit: u32;3043 }3058 }304430593045 /** @name UpDataStructsPropertiesMapBoundedVec (362) */3060 /** @name UpDataStructsPropertiesMapBoundedVec (363) */3046 interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}3061 interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}304730623048 /** @name UpDataStructsPropertiesMapPropertyPermission (367) */3063 /** @name UpDataStructsPropertiesMapPropertyPermission (368) */3049 interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}3064 interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}305030653051 /** @name UpDataStructsCollectionStats (374) */3066 /** @name UpDataStructsCollectionStats (375) */3052 interface UpDataStructsCollectionStats extends Struct {3067 interface UpDataStructsCollectionStats extends Struct {3053 readonly created: u32;3068 readonly created: u32;3054 readonly destroyed: u32;3069 readonly destroyed: u32;3055 readonly alive: u32;3070 readonly alive: u32;3056 }3071 }305730723058 /** @name UpDataStructsTokenChild (375) */3073 /** @name UpDataStructsTokenChild (376) */3059 interface UpDataStructsTokenChild extends Struct {3074 interface UpDataStructsTokenChild extends Struct {3060 readonly token: u32;3075 readonly token: u32;3061 readonly collection: u32;3076 readonly collection: u32;3062 }3077 }306330783064 /** @name PhantomTypeUpDataStructs (376) */3079 /** @name PhantomTypeUpDataStructs (377) */3065 interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild]>> {}3080 interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild]>> {}306630813067 /** @name UpDataStructsTokenData (378) */3082 /** @name UpDataStructsTokenData (379) */3068 interface UpDataStructsTokenData extends Struct {3083 interface UpDataStructsTokenData extends Struct {3069 readonly properties: Vec<UpDataStructsProperty>;3084 readonly properties: Vec<UpDataStructsProperty>;3070 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;3085 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;3071 readonly pieces: u128;3086 readonly pieces: u128;3072 }3087 }307330883074 /** @name UpDataStructsRpcCollection (380) */3089 /** @name UpDataStructsRpcCollection (381) */3075 interface UpDataStructsRpcCollection extends Struct {3090 interface UpDataStructsRpcCollection extends Struct {3076 readonly owner: AccountId32;3091 readonly owner: AccountId32;3077 readonly mode: UpDataStructsCollectionMode;3092 readonly mode: UpDataStructsCollectionMode;3086 readonly readOnly: bool;3101 readonly readOnly: bool;3087 }3102 }308831033089 /** @name RmrkTraitsCollectionCollectionInfo (381) */3104 /** @name RmrkTraitsCollectionCollectionInfo (382) */3090 interface RmrkTraitsCollectionCollectionInfo extends Struct {3105 interface RmrkTraitsCollectionCollectionInfo extends Struct {3091 readonly issuer: AccountId32;3106 readonly issuer: AccountId32;3092 readonly metadata: Bytes;3107 readonly metadata: Bytes;3095 readonly nftsCount: u32;3110 readonly nftsCount: u32;3096 }3111 }309731123098 /** @name RmrkTraitsNftNftInfo (382) */3113 /** @name RmrkTraitsNftNftInfo (383) */3099 interface RmrkTraitsNftNftInfo extends Struct {3114 interface RmrkTraitsNftNftInfo extends Struct {3100 readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple;3115 readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple;3101 readonly royalty: Option<RmrkTraitsNftRoyaltyInfo>;3116 readonly royalty: Option<RmrkTraitsNftRoyaltyInfo>;3104 readonly pending: bool;3119 readonly pending: bool;3105 }3120 }310631213107 /** @name RmrkTraitsNftRoyaltyInfo (384) */3122 /** @name RmrkTraitsNftRoyaltyInfo (385) */3108 interface RmrkTraitsNftRoyaltyInfo extends Struct {3123 interface RmrkTraitsNftRoyaltyInfo extends Struct {3109 readonly recipient: AccountId32;3124 readonly recipient: AccountId32;3110 readonly amount: Permill;3125 readonly amount: Permill;3111 }3126 }311231273113 /** @name RmrkTraitsResourceResourceInfo (385) */3128 /** @name RmrkTraitsResourceResourceInfo (386) */3114 interface RmrkTraitsResourceResourceInfo extends Struct {3129 interface RmrkTraitsResourceResourceInfo extends Struct {3115 readonly id: u32;3130 readonly id: u32;3116 readonly resource: RmrkTraitsResourceResourceTypes;3131 readonly resource: RmrkTraitsResourceResourceTypes;3117 readonly pending: bool;3132 readonly pending: bool;3118 readonly pendingRemoval: bool;3133 readonly pendingRemoval: bool;3119 }3134 }312031353121 /** @name RmrkTraitsPropertyPropertyInfo (386) */3136 /** @name RmrkTraitsPropertyPropertyInfo (387) */3122 interface RmrkTraitsPropertyPropertyInfo extends Struct {3137 interface RmrkTraitsPropertyPropertyInfo extends Struct {3123 readonly key: Bytes;3138 readonly key: Bytes;3124 readonly value: Bytes;3139 readonly value: Bytes;3125 }3140 }312631413127 /** @name RmrkTraitsBaseBaseInfo (387) */3142 /** @name RmrkTraitsBaseBaseInfo (388) */3128 interface RmrkTraitsBaseBaseInfo extends Struct {3143 interface RmrkTraitsBaseBaseInfo extends Struct {3129 readonly issuer: AccountId32;3144 readonly issuer: AccountId32;3130 readonly baseType: Bytes;3145 readonly baseType: Bytes;3131 readonly symbol: Bytes;3146 readonly symbol: Bytes;3132 }3147 }313331483134 /** @name RmrkTraitsNftNftChild (388) */3149 /** @name RmrkTraitsNftNftChild (389) */3135 interface RmrkTraitsNftNftChild extends Struct {3150 interface RmrkTraitsNftNftChild extends Struct {3136 readonly collectionId: u32;3151 readonly collectionId: u32;3137 readonly nftId: u32;3152 readonly nftId: u32;3138 }3153 }313931543140 /** @name PalletCommonError (390) */3155 /** @name PalletCommonError (391) */3141 interface PalletCommonError extends Enum {3156 interface PalletCommonError extends Enum {3142 readonly isCollectionNotFound: boolean;3157 readonly isCollectionNotFound: boolean;3143 readonly isMustBeTokenOwner: boolean;3158 readonly isMustBeTokenOwner: boolean;3176 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';3191 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';3177 }3192 }317831933179 /** @name PalletFungibleError (392) */3194 /** @name PalletFungibleError (393) */3180 interface PalletFungibleError extends Enum {3195 interface PalletFungibleError extends Enum {3181 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;3196 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;3182 readonly isFungibleItemsHaveNoId: boolean;3197 readonly isFungibleItemsHaveNoId: boolean;3186 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3201 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3187 }3202 }318832033189 /** @name PalletRefungibleItemData (393) */3204 /** @name PalletRefungibleItemData (394) */3190 interface PalletRefungibleItemData extends Struct {3205 interface PalletRefungibleItemData extends Struct {3191 readonly constData: Bytes;3206 readonly constData: Bytes;3192 }3207 }319332083194 /** @name PalletRefungibleError (398) */3209 /** @name PalletRefungibleError (399) */3195 interface PalletRefungibleError extends Enum {3210 interface PalletRefungibleError extends Enum {3196 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;3211 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;3197 readonly isWrongRefungiblePieces: boolean;3212 readonly isWrongRefungiblePieces: boolean;3201 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3216 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3202 }3217 }320332183204 /** @name PalletNonfungibleItemData (399) */3219 /** @name PalletNonfungibleItemData (400) */3205 interface PalletNonfungibleItemData extends Struct {3220 interface PalletNonfungibleItemData extends Struct {3206 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3221 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3207 }3222 }320832233209 /** @name UpDataStructsPropertyScope (401) */3224 /** @name UpDataStructsPropertyScope (402) */3210 interface UpDataStructsPropertyScope extends Enum {3225 interface UpDataStructsPropertyScope extends Enum {3211 readonly isNone: boolean;3226 readonly isNone: boolean;3212 readonly isRmrk: boolean;3227 readonly isRmrk: boolean;3213 readonly isEth: boolean;3228 readonly isEth: boolean;3214 readonly type: 'None' | 'Rmrk' | 'Eth';3229 readonly type: 'None' | 'Rmrk' | 'Eth';3215 }3230 }321632313217 /** @name PalletNonfungibleError (403) */3232 /** @name PalletNonfungibleError (404) */3218 interface PalletNonfungibleError extends Enum {3233 interface PalletNonfungibleError extends Enum {3219 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;3234 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;3220 readonly isNonfungibleItemsHaveNoAmount: boolean;3235 readonly isNonfungibleItemsHaveNoAmount: boolean;3221 readonly isCantBurnNftWithChildren: boolean;3236 readonly isCantBurnNftWithChildren: boolean;3222 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';3237 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';3223 }3238 }322432393225 /** @name PalletStructureError (404) */3240 /** @name PalletStructureError (405) */3226 interface PalletStructureError extends Enum {3241 interface PalletStructureError extends Enum {3227 readonly isOuroborosDetected: boolean;3242 readonly isOuroborosDetected: boolean;3228 readonly isDepthLimit: boolean;3243 readonly isDepthLimit: boolean;3231 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';3246 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';3232 }3247 }323332483234 /** @name PalletRmrkCoreError (405) */3249 /** @name PalletRmrkCoreError (406) */3235 interface PalletRmrkCoreError extends Enum {3250 interface PalletRmrkCoreError extends Enum {3236 readonly isCorruptedCollectionType: boolean;3251 readonly isCorruptedCollectionType: boolean;3237 readonly isRmrkPropertyKeyIsTooLong: boolean;3252 readonly isRmrkPropertyKeyIsTooLong: boolean;3255 readonly type: 'CorruptedCollectionType' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';3270 readonly type: 'CorruptedCollectionType' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';3256 }3271 }325732723258 /** @name PalletRmrkEquipError (407) */3273 /** @name PalletRmrkEquipError (408) */3259 interface PalletRmrkEquipError extends Enum {3274 interface PalletRmrkEquipError extends Enum {3260 readonly isPermissionError: boolean;3275 readonly isPermissionError: boolean;3261 readonly isNoAvailableBaseId: boolean;3276 readonly isNoAvailableBaseId: boolean;3267 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';3282 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';3268 }3283 }32843285 /** @name PalletAppPromotionError (410) */3286 interface PalletAppPromotionError extends Enum {3287 readonly isAdminNotSet: boolean;3288 readonly isNoPermission: boolean;3289 readonly isNotSufficientFounds: boolean;3290 readonly isInvalidArgument: boolean;3291 readonly isAlreadySponsored: boolean;3292 readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFounds' | 'InvalidArgument' | 'AlreadySponsored';3293 }326932943270 /** @name PalletEvmError (411) */3295 /** @name PalletEvmError (413) */3271 interface PalletEvmError extends Enum {3296 interface PalletEvmError extends Enum {3272 readonly isBalanceLow: boolean;3297 readonly isBalanceLow: boolean;3273 readonly isFeeOverflow: boolean;3298 readonly isFeeOverflow: boolean;3278 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';3303 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce';3279 }3304 }328033053281 /** @name FpRpcTransactionStatus (414) */3306 /** @name FpRpcTransactionStatus (416) */3282 interface FpRpcTransactionStatus extends Struct {3307 interface FpRpcTransactionStatus extends Struct {3283 readonly transactionHash: H256;3308 readonly transactionHash: H256;3284 readonly transactionIndex: u32;3309 readonly transactionIndex: u32;3289 readonly logsBloom: EthbloomBloom;3314 readonly logsBloom: EthbloomBloom;3290 }3315 }329133163292 /** @name EthbloomBloom (416) */3317 /** @name EthbloomBloom (418) */3293 interface EthbloomBloom extends U8aFixed {}3318 interface EthbloomBloom extends U8aFixed {}329433193295 /** @name EthereumReceiptReceiptV3 (418) */3320 /** @name EthereumReceiptReceiptV3 (420) */3296 interface EthereumReceiptReceiptV3 extends Enum {3321 interface EthereumReceiptReceiptV3 extends Enum {3297 readonly isLegacy: boolean;3322 readonly isLegacy: boolean;3298 readonly asLegacy: EthereumReceiptEip658ReceiptData;3323 readonly asLegacy: EthereumReceiptEip658ReceiptData;3303 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3328 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3304 }3329 }330533303306 /** @name EthereumReceiptEip658ReceiptData (419) */3331 /** @name EthereumReceiptEip658ReceiptData (421) */3307 interface EthereumReceiptEip658ReceiptData extends Struct {3332 interface EthereumReceiptEip658ReceiptData extends Struct {3308 readonly statusCode: u8;3333 readonly statusCode: u8;3309 readonly usedGas: U256;3334 readonly usedGas: U256;3310 readonly logsBloom: EthbloomBloom;3335 readonly logsBloom: EthbloomBloom;3311 readonly logs: Vec<EthereumLog>;3336 readonly logs: Vec<EthereumLog>;3312 }3337 }331333383314 /** @name EthereumBlock (420) */3339 /** @name EthereumBlock (422) */3315 interface EthereumBlock extends Struct {3340 interface EthereumBlock extends Struct {3316 readonly header: EthereumHeader;3341 readonly header: EthereumHeader;3317 readonly transactions: Vec<EthereumTransactionTransactionV2>;3342 readonly transactions: Vec<EthereumTransactionTransactionV2>;3318 readonly ommers: Vec<EthereumHeader>;3343 readonly ommers: Vec<EthereumHeader>;3319 }3344 }332033453321 /** @name EthereumHeader (421) */3346 /** @name EthereumHeader (423) */3322 interface EthereumHeader extends Struct {3347 interface EthereumHeader extends Struct {3323 readonly parentHash: H256;3348 readonly parentHash: H256;3324 readonly ommersHash: H256;3349 readonly ommersHash: H256;3337 readonly nonce: EthereumTypesHashH64;3362 readonly nonce: EthereumTypesHashH64;3338 }3363 }333933643340 /** @name EthereumTypesHashH64 (422) */3365 /** @name EthereumTypesHashH64 (424) */3341 interface EthereumTypesHashH64 extends U8aFixed {}3366 interface EthereumTypesHashH64 extends U8aFixed {}334233673343 /** @name PalletEthereumError (427) */3368 /** @name PalletEthereumError (429) */3344 interface PalletEthereumError extends Enum {3369 interface PalletEthereumError extends Enum {3345 readonly isInvalidSignature: boolean;3370 readonly isInvalidSignature: boolean;3346 readonly isPreLogExists: boolean;3371 readonly isPreLogExists: boolean;3347 readonly type: 'InvalidSignature' | 'PreLogExists';3372 readonly type: 'InvalidSignature' | 'PreLogExists';3348 }3373 }334933743350 /** @name PalletEvmCoderSubstrateError (428) */3375 /** @name PalletEvmCoderSubstrateError (430) */3351 interface PalletEvmCoderSubstrateError extends Enum {3376 interface PalletEvmCoderSubstrateError extends Enum {3352 readonly isOutOfGas: boolean;3377 readonly isOutOfGas: boolean;3353 readonly isOutOfFund: boolean;3378 readonly isOutOfFund: boolean;3354 readonly type: 'OutOfGas' | 'OutOfFund';3379 readonly type: 'OutOfGas' | 'OutOfFund';3355 }3380 }335633813357 /** @name PalletEvmContractHelpersSponsoringModeT (429) */3382 /** @name PalletEvmContractHelpersSponsoringModeT (431) */3358 interface PalletEvmContractHelpersSponsoringModeT extends Enum {3383 interface PalletEvmContractHelpersSponsoringModeT extends Enum {3359 readonly isDisabled: boolean;3384 readonly isDisabled: boolean;3360 readonly isAllowlisted: boolean;3385 readonly isAllowlisted: boolean;3361 readonly isGenerous: boolean;3386 readonly isGenerous: boolean;3362 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';3387 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';3363 }3388 }336433893365 /** @name PalletEvmContractHelpersError (431) */3390 /** @name PalletEvmContractHelpersError (433) */3366 interface PalletEvmContractHelpersError extends Enum {3391 interface PalletEvmContractHelpersError extends Enum {3367 readonly isNoPermission: boolean;3392 readonly isNoPermission: boolean;3368 readonly type: 'NoPermission';3393 readonly type: 'NoPermission';3369 }3394 }337033953371 /** @name PalletEvmMigrationError (432) */3396 /** @name PalletEvmMigrationError (434) */3372 interface PalletEvmMigrationError extends Enum {3397 interface PalletEvmMigrationError extends Enum {3373 readonly isAccountNotEmpty: boolean;3398 readonly isAccountNotEmpty: boolean;3374 readonly isAccountIsNotMigrating: boolean;3399 readonly isAccountIsNotMigrating: boolean;3375 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';3400 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating';3376 }3401 }337734023378 /** @name SpRuntimeMultiSignature (434) */3403 /** @name SpRuntimeMultiSignature (436) */3379 interface SpRuntimeMultiSignature extends Enum {3404 interface SpRuntimeMultiSignature extends Enum {3380 readonly isEd25519: boolean;3405 readonly isEd25519: boolean;3381 readonly asEd25519: SpCoreEd25519Signature;3406 readonly asEd25519: SpCoreEd25519Signature;3386 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';3411 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';3387 }3412 }338834133389 /** @name SpCoreEd25519Signature (435) */3414 /** @name SpCoreEd25519Signature (437) */3390 interface SpCoreEd25519Signature extends U8aFixed {}3415 interface SpCoreEd25519Signature extends U8aFixed {}339134163392 /** @name SpCoreSr25519Signature (437) */3417 /** @name SpCoreSr25519Signature (439) */3393 interface SpCoreSr25519Signature extends U8aFixed {}3418 interface SpCoreSr25519Signature extends U8aFixed {}339434193395 /** @name SpCoreEcdsaSignature (438) */3420 /** @name SpCoreEcdsaSignature (440) */3396 interface SpCoreEcdsaSignature extends U8aFixed {}3421 interface SpCoreEcdsaSignature extends U8aFixed {}339734223398 /** @name FrameSystemExtensionsCheckSpecVersion (441) */3423 /** @name FrameSystemExtensionsCheckSpecVersion (443) */3399 type FrameSystemExtensionsCheckSpecVersion = Null;3424 type FrameSystemExtensionsCheckSpecVersion = Null;340034253401 /** @name FrameSystemExtensionsCheckGenesis (442) */3426 /** @name FrameSystemExtensionsCheckGenesis (444) */3402 type FrameSystemExtensionsCheckGenesis = Null;3427 type FrameSystemExtensionsCheckGenesis = Null;340334283404 /** @name FrameSystemExtensionsCheckNonce (445) */3429 /** @name FrameSystemExtensionsCheckNonce (447) */3405 interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}3430 interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}340634313407 /** @name FrameSystemExtensionsCheckWeight (446) */3432 /** @name FrameSystemExtensionsCheckWeight (448) */3408 type FrameSystemExtensionsCheckWeight = Null;3433 type FrameSystemExtensionsCheckWeight = Null;340934343410 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (447) */3435 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (449) */3411 interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}3436 interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}341234373413 /** @name OpalRuntimeRuntime (448) */3438 /** @name OpalRuntimeRuntime (450) */3414 type OpalRuntimeRuntime = Null;3439 type OpalRuntimeRuntime = Null;341534403416 /** @name PalletEthereumFakeTransactionFinalizer (449) */3441 /** @name PalletEthereumFakeTransactionFinalizer (451) */3417 type PalletEthereumFakeTransactionFinalizer = Null;3442 type PalletEthereumFakeTransactionFinalizer = Null;341834433419} // declare module3444} // declare module