difftreelog
Merge pull request #893 from UniqueNetwork/feature/preimage
in: master
34 files changed
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5541,6 +5541,7 @@
"pallet-inflation",
"pallet-maintenance",
"pallet-nonfungible",
+ "pallet-preimage",
"pallet-randomness-collective-flip",
"pallet-refungible",
"pallet-session",
@@ -6480,6 +6481,7 @@
"frame-system",
"parity-scale-codec",
"scale-info",
+ "sp-core",
"sp-std",
]
@@ -8968,6 +8970,7 @@
"pallet-inflation",
"pallet-maintenance",
"pallet-nonfungible",
+ "pallet-preimage",
"pallet-randomness-collective-flip",
"pallet-refungible",
"pallet-session",
@@ -13198,6 +13201,7 @@
"pallet-inflation",
"pallet-maintenance",
"pallet-nonfungible",
+ "pallet-preimage",
"pallet-randomness-collective-flip",
"pallet-refungible",
"pallet-session",
Cargo.tomldiffbeforeafterboth--- a/Cargo.toml
+++ b/Cargo.toml
@@ -98,6 +98,7 @@
pallet-aura = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" }
pallet-authorship = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" }
pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" }
+pallet-preimage = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" }
pallet-randomness-collective-flip = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" }
pallet-session = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" }
pallet-sudo = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" }
Makefilediffbeforeafterboth--- a/Makefile
+++ b/Makefile
@@ -137,9 +137,13 @@
bench-app-promotion:
make _bench PALLET=app-promotion PALLET_DIR=app-promotion
+.PHONY: bench-maintenance
+bench-maintenance:
+ make _bench PALLET=maintenance
+
.PHONY: bench
# Disabled: bench-scheduler, bench-collator-selection, bench-identity
-bench: bench-common bench-evm-migration bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible bench-configuration bench-foreign-assets
+bench: bench-common bench-evm-migration bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible bench-configuration bench-foreign-assets bench-maintenance
.PHONY: check
check:
pallets/maintenance/Cargo.tomldiffbeforeafterboth--- a/pallets/maintenance/Cargo.toml
+++ b/pallets/maintenance/Cargo.toml
@@ -18,10 +18,11 @@
frame-benchmarking = { workspace = true, optional = true }
frame-support = { workspace = true }
frame-system = { workspace = true }
+sp-core = { workspace = true }
sp-std = { workspace = true }
[features]
default = ["std"]
runtime-benchmarks = ["frame-benchmarking", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks"]
-std = ["codec/std", "frame-benchmarking/std", "frame-support/std", "frame-system/std", "scale-info/std", "sp-std/std"]
+std = ["codec/std", "frame-benchmarking/std", "frame-support/std", "frame-system/std", "scale-info/std", "sp-core/std", "sp-std/std"]
try-runtime = ["frame-support/try-runtime"]
pallets/maintenance/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/maintenance/src/benchmarking.rs
+++ b/pallets/maintenance/src/benchmarking.rs
@@ -17,9 +17,10 @@
use super::*;
use crate::{Pallet as Maintenance, Config};
+use codec::Encode;
use frame_benchmarking::benchmarks;
use frame_system::RawOrigin;
-use frame_support::ensure;
+use frame_support::{ensure, pallet_prelude::Weight, traits::StorePreimage};
benchmarks! {
enable {
@@ -34,4 +35,11 @@
verify {
ensure!(!<Enabled<T>>::get(), "didn't disable the MM");
}
+
+ execute_preimage {
+ let call = <T as Config>::RuntimeCall::from(frame_system::Call::<T>::remark { remark: 1u32.encode() });
+ let hash = T::Preimages::note(call.encode().into())?;
+ }: _(RawOrigin::Root, hash, Weight::from_parts(100000000000, 100000000000))
+ verify {
+ }
}
pallets/maintenance/src/lib.rsdiffbeforeafterboth--- a/pallets/maintenance/src/lib.rs
+++ b/pallets/maintenance/src/lib.rs
@@ -25,13 +25,36 @@
#[frame_support::pallet]
pub mod pallet {
- use frame_support::pallet_prelude::*;
+ use frame_support::{dispatch::*, pallet_prelude::*};
+ use frame_support::{
+ traits::{QueryPreimage, StorePreimage},
+ };
use frame_system::pallet_prelude::*;
+ use sp_core::H256;
+
use crate::weights::WeightInfo;
#[pallet::config]
pub trait Config: frame_system::Config {
+ /// The overarching event type.
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
+
+ /// The runtime origin type.
+ type RuntimeOrigin: From<RawOrigin<Self::AccountId>>
+ + IsType<<Self as frame_system::Config>::RuntimeOrigin>;
+
+ /// The aggregated call type.
+ type RuntimeCall: Parameter
+ + Dispatchable<
+ RuntimeOrigin = <Self as Config>::RuntimeOrigin,
+ PostInfo = PostDispatchInfo,
+ > + GetDispatchInfo
+ + From<frame_system::Call<Self>>;
+
+ /// The preimage provider with which we look up call hashes to get the call.
+ type Preimages: QueryPreimage + StorePreimage;
+
+ /// Weight information for extrinsics in this pallet.
type WeightInfo: WeightInfo;
}
@@ -78,5 +101,49 @@
Ok(())
}
+
+ /// Execute a runtime call stored as a preimage.
+ ///
+ /// `weight_bound` is the maximum weight that the caller is willing
+ /// to allow the extrinsic to be executed with.
+ #[pallet::call_index(2)]
+ #[pallet::weight(<T as Config>::WeightInfo::execute_preimage() + *weight_bound)]
+ pub fn execute_preimage(
+ origin: OriginFor<T>,
+ hash: H256,
+ weight_bound: Weight,
+ ) -> DispatchResultWithPostInfo {
+ use codec::Decode;
+
+ ensure_root(origin)?;
+
+ let data = T::Preimages::fetch(&hash, None)?;
+ weight_bound.set_proof_size(
+ weight_bound
+ .proof_size()
+ .checked_sub(
+ data.len()
+ .try_into()
+ .map_err(|_| DispatchError::Corruption)?,
+ )
+ .ok_or(DispatchError::Exhausted)?,
+ );
+
+ let call = <T as Config>::RuntimeCall::decode(&mut &data[..])
+ .map_err(|_| DispatchError::Corruption)?;
+
+ ensure!(
+ call.get_dispatch_info().weight.all_lte(weight_bound),
+ DispatchError::Exhausted
+ );
+
+ match call.dispatch(frame_system::RawOrigin::Root.into()) {
+ Ok(_) => Ok(Pays::No.into()),
+ Err(error_and_info) => Err(DispatchErrorWithPostInfo {
+ post_info: Pays::No.into(),
+ error: error_and_info.error,
+ }),
+ }
+ }
}
}
pallets/maintenance/src/weights.rsdiffbeforeafterboth--- a/pallets/maintenance/src/weights.rs
+++ b/pallets/maintenance/src/weights.rs
@@ -3,7 +3,7 @@
//! Autogenerated weights for pallet_maintenance
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2022-11-01, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! DATE: 2023-02-22, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
@@ -26,6 +26,7 @@
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
+#![allow(missing_docs)]
#![allow(clippy::unnecessary_cast)]
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
@@ -35,6 +36,7 @@
pub trait WeightInfo {
fn enable() -> Weight;
fn disable() -> Weight;
+ fn execute_preimage() -> Weight;
}
/// Weights for pallet_maintenance using the Substrate node and recommended hardware.
@@ -42,13 +44,19 @@
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Maintenance Enabled (r:0 w:1)
fn enable() -> Weight {
- Weight::from_ref_time(7_367_000)
- .saturating_add(T::DbWeight::get().writes(1))
+ Weight::from_ref_time(10_860_000 as u64)
+ .saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Maintenance Enabled (r:0 w:1)
fn disable() -> Weight {
- Weight::from_ref_time(7_273_000)
- .saturating_add(T::DbWeight::get().writes(1))
+ Weight::from_ref_time(10_871_000 as u64)
+ .saturating_add(T::DbWeight::get().writes(1 as u64))
+ }
+ // Storage: Preimage StatusFor (r:1 w:0)
+ // Storage: Preimage PreimageFor (r:1 w:0)
+ fn execute_preimage() -> Weight {
+ Weight::from_ref_time(10_068_000 as u64)
+ .saturating_add(T::DbWeight::get().reads(2 as u64))
}
}
@@ -56,12 +64,18 @@
impl WeightInfo for () {
// Storage: Maintenance Enabled (r:0 w:1)
fn enable() -> Weight {
- Weight::from_ref_time(7_367_000)
- .saturating_add(RocksDbWeight::get().writes(1))
+ Weight::from_ref_time(10_860_000 as u64)
+ .saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Maintenance Enabled (r:0 w:1)
fn disable() -> Weight {
- Weight::from_ref_time(7_273_000)
- .saturating_add(RocksDbWeight::get().writes(1))
+ Weight::from_ref_time(10_871_000 as u64)
+ .saturating_add(RocksDbWeight::get().writes(1 as u64))
+ }
+ // Storage: Preimage StatusFor (r:1 w:0)
+ // Storage: Preimage PreimageFor (r:1 w:0)
+ fn execute_preimage() -> Weight {
+ Weight::from_ref_time(10_068_000 as u64)
+ .saturating_add(RocksDbWeight::get().reads(2 as u64))
}
}
pallets/scheduler-v2/Cargo.tomldiffbeforeafterboth--- a/pallets/scheduler-v2/Cargo.toml
+++ b/pallets/scheduler-v2/Cargo.toml
@@ -24,7 +24,7 @@
sp-std = { workspace = true }
[dev-dependencies]
-pallet-preimage = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" }
+pallet-preimage = { workspace = true }
substrate-test-utils = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" }
[features]
runtime/common/config/pallets/mod.rsdiffbeforeafterboth--- a/runtime/common/config/pallets/mod.rs
+++ b/runtime/common/config/pallets/mod.rs
@@ -23,7 +23,7 @@
weights::CommonWeights,
RelayChainBlockNumberProvider,
},
- Runtime, RuntimeEvent, RuntimeCall, Balances,
+ Runtime, RuntimeEvent, RuntimeCall, RuntimeOrigin, Balances,
};
use frame_support::traits::{ConstU32, ConstU64};
use up_common::{
@@ -47,6 +47,9 @@
#[cfg(feature = "collator-selection")]
pub mod collator_selection;
+#[cfg(feature = "preimage")]
+pub mod preimage;
+
parameter_types! {
pub TreasuryAccountId: AccountId = TreasuryModuleId::get().into_account_truncating();
pub const CollectionCreationPrice: Balance = 2 * UNIQUE;
@@ -123,5 +126,11 @@
impl pallet_maintenance::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
+ type RuntimeOrigin = RuntimeOrigin;
+ type RuntimeCall = RuntimeCall;
+ #[cfg(feature = "preimage")]
+ type Preimages = crate::Preimage;
+ #[cfg(not(feature = "preimage"))]
+ type Preimages = ();
type WeightInfo = pallet_maintenance::weights::SubstrateWeight<Self>;
}
runtime/common/config/pallets/preimage.rsdiffbeforeafterboth--- /dev/null
+++ b/runtime/common/config/pallets/preimage.rs
@@ -0,0 +1,33 @@
+// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// Unique Network is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
+use frame_support::parameter_types;
+use frame_system::EnsureRoot;
+use crate::{AccountId, Balance, Balances, Runtime, RuntimeEvent};
+use up_common::constants::*;
+
+parameter_types! {
+ pub PreimageBaseDeposit: Balance = 1000 * UNIQUE;
+}
+
+impl pallet_preimage::Config for Runtime {
+ type WeightInfo = pallet_preimage::weights::SubstrateWeight<Runtime>;
+ type RuntimeEvent = RuntimeEvent;
+ type Currency = Balances;
+ type ManagerOrigin = EnsureRoot<AccountId>;
+ type BaseDeposit = PreimageBaseDeposit;
+ type ByteDeposit = TransactionByteFee;
+}
runtime/common/construct_runtime.rsdiffbeforeafterboth--- a/runtime/common/construct_runtime.rs
+++ b/runtime/common/construct_runtime.rs
@@ -56,6 +56,9 @@
#[cfg(feature = "collator-selection")]
Identity: pallet_identity::{Pallet, Call, Storage, Event<T>} = 40,
+ #[cfg(feature = "preimage")]
+ Preimage: pallet_preimage::{Pallet, Call, Storage, Event<T>} = 41,
+
// XCM helpers.
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 50,
PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin} = 51,
runtime/common/runtime_apis.rsdiffbeforeafterboth--- a/runtime/common/runtime_apis.rs
+++ b/runtime/common/runtime_apis.rs
@@ -568,6 +568,7 @@
#[cfg(feature = "foreign-assets")]
list_benchmark!(list, extra, pallet_foreign_assets, ForeignAssets);
+ list_benchmark!(list, extra, pallet_maintenance, Maintenance);
// list_benchmark!(list, extra, pallet_evm_coder_substrate, EvmCoderSubstrate);
@@ -632,6 +633,8 @@
#[cfg(feature = "foreign-assets")]
add_benchmark!(params, batches, pallet_foreign_assets, ForeignAssets);
+ add_benchmark!(params, batches, pallet_maintenance, Maintenance);
+
// add_benchmark!(params, batches, pallet_evm_coder_substrate, EvmCoderSubstrate);
if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) }
runtime/opal/Cargo.tomldiffbeforeafterboth--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -18,7 +18,7 @@
[features]
default = ['opal-runtime', 'std']
limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']
-opal-runtime = ['app-promotion', 'collator-selection', 'foreign-assets', 'pallet-test-utils', 'refungible']
+opal-runtime = ['app-promotion', 'collator-selection', 'foreign-assets', 'preimage', 'pallet-test-utils', 'refungible']
pov-estimate = []
runtime-benchmarks = [
'cumulus-pallet-parachain-system/runtime-benchmarks',
@@ -41,6 +41,7 @@
'pallet-inflation/runtime-benchmarks',
'pallet-maintenance/runtime-benchmarks',
'pallet-nonfungible/runtime-benchmarks',
+ "pallet-preimage/runtime-benchmarks",
'pallet-refungible/runtime-benchmarks',
'pallet-structure/runtime-benchmarks',
'pallet-timestamp/runtime-benchmarks',
@@ -69,6 +70,7 @@
# 'pallet-contracts-primitives/std',
# 'pallet-contracts-rpc-runtime-api/std',
# 'pallet-contract-helpers/std',
+ "pallet-preimage/std",
"pallet-authorship/std",
"pallet-session/std",
"sp-consensus-aura/std",
@@ -139,6 +141,7 @@
"pallet-collator-selection/try-runtime",
"pallet-identity/try-runtime",
"pallet-session/try-runtime",
+ "pallet-preimage/try-runtime",
'cumulus-pallet-aura-ext/try-runtime',
'cumulus-pallet-dmp-queue/try-runtime',
'cumulus-pallet-parachain-system/try-runtime',
@@ -188,6 +191,7 @@
app-promotion = []
collator-selection = []
foreign-assets = []
+preimage = []
pallet-test-utils = []
refungible = []
scheduler = []
@@ -218,6 +222,7 @@
pallet-aura = { workspace = true }
pallet-authorship = { workspace = true }
pallet-balances = { workspace = true }
+pallet-preimage = { workspace = true }
pallet-randomness-collective-flip = { workspace = true }
pallet-session = { workspace = true }
pallet-sudo = { workspace = true }
runtime/quartz/Cargo.tomldiffbeforeafterboth--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -20,7 +20,7 @@
default = ['quartz-runtime', 'std']
limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']
pov-estimate = []
-quartz-runtime = ['app-promotion', 'collator-selection', 'foreign-assets', 'refungible']
+quartz-runtime = ['app-promotion', 'collator-selection', 'foreign-assets', 'preimage', 'refungible']
runtime-benchmarks = [
'cumulus-pallet-parachain-system/runtime-benchmarks',
'frame-benchmarking',
@@ -42,6 +42,7 @@
'pallet-inflation/runtime-benchmarks',
'pallet-maintenance/runtime-benchmarks',
'pallet-nonfungible/runtime-benchmarks',
+ "pallet-preimage/runtime-benchmarks",
'pallet-refungible/runtime-benchmarks',
'pallet-structure/runtime-benchmarks',
'pallet-timestamp/runtime-benchmarks',
@@ -69,6 +70,7 @@
# 'pallet-contracts-primitives/std',
# 'pallet-contracts-rpc-runtime-api/std',
# 'pallet-contract-helpers/std',
+ "pallet-preimage/std",
"pallet-authorship/std",
"pallet-identity/std",
"pallet-session/std",
@@ -136,6 +138,7 @@
"pallet-collator-selection/try-runtime",
"pallet-identity/try-runtime",
"pallet-session/try-runtime",
+ "pallet-preimage/try-runtime",
'cumulus-pallet-aura-ext/try-runtime',
'cumulus-pallet-dmp-queue/try-runtime',
'cumulus-pallet-parachain-system/try-runtime',
@@ -181,6 +184,7 @@
app-promotion = []
collator-selection = []
foreign-assets = []
+preimage = []
refungible = []
scheduler = []
@@ -210,6 +214,7 @@
pallet-aura = { workspace = true }
pallet-authorship = { workspace = true }
pallet-balances = { workspace = true }
+pallet-preimage = { workspace = true }
pallet-randomness-collective-flip = { workspace = true }
pallet-session = { workspace = true }
pallet-sudo = { workspace = true }
runtime/unique/Cargo.tomldiffbeforeafterboth--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -39,6 +39,7 @@
'pallet-inflation/runtime-benchmarks',
'pallet-maintenance/runtime-benchmarks',
'pallet-nonfungible/runtime-benchmarks',
+ "pallet-preimage/runtime-benchmarks",
'pallet-refungible/runtime-benchmarks',
'pallet-structure/runtime-benchmarks',
'pallet-timestamp/runtime-benchmarks',
@@ -67,6 +68,7 @@
# 'pallet-contracts-primitives/std',
# 'pallet-contracts-rpc-runtime-api/std',
# 'pallet-contract-helpers/std',
+ "pallet-preimage/std",
"pallet-authorship/std",
"pallet-identity/std",
"pallet-session/std",
@@ -134,6 +136,7 @@
"pallet-collator-selection/try-runtime",
"pallet-identity/try-runtime",
"pallet-session/try-runtime",
+ "pallet-preimage/try-runtime",
'cumulus-pallet-aura-ext/try-runtime',
'cumulus-pallet-dmp-queue/try-runtime',
'cumulus-pallet-parachain-system/try-runtime',
@@ -180,6 +183,7 @@
app-promotion = []
collator-selection = []
foreign-assets = []
+preimage = []
refungible = []
scheduler = []
@@ -209,6 +213,7 @@
pallet-aura = { workspace = true }
pallet-authorship = { workspace = true }
pallet-balances = { workspace = true }
+pallet-preimage = { workspace = true }
pallet-randomness-collective-flip = { workspace = true }
pallet-session = { workspace = true }
pallet-sudo = { workspace = true }
tests/package.jsondiffbeforeafterboth--- a/tests/package.json
+++ b/tests/package.json
@@ -82,7 +82,7 @@
"testSetOffchainSchema": "mocha --timeout 9999999 -r ts-node/register ./**/setOffchainSchema.test.ts",
"testNextSponsoring": "mocha --timeout 9999999 -r ts-node/register ./**/nextSponsoring.test.ts",
"testOverflow": "mocha --timeout 9999999 -r ts-node/register ./**/overflow.test.ts",
- "testMaintenance": "mocha --timeout 9999999 -r ts-node/register ./**/maintenanceMode.seqtest.ts",
+ "testMaintenance": "mocha --timeout 9999999 -r ts-node/register ./**/maintenance.seqtest.ts",
"testInflation": "mocha --timeout 9999999 -r ts-node/register ./**/inflation.seqtest.ts",
"testScheduler": "mocha --timeout 9999999 -r ts-node/register ./**/scheduler.seqtest.ts",
"testSchedulingEVM": "mocha --timeout 9999999 -r ts-node/register ./**/eth/scheduling.test.ts",
tests/src/interfaces/augment-api-consts.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-consts.ts
+++ b/tests/src/interfaces/augment-api-consts.ts
@@ -41,6 +41,18 @@
**/
[key: string]: Codec;
};
+ authorship: {
+ /**
+ * The number of blocks back we should accept uncles.
+ * This means that we will deal with uncle-parents that are
+ * `UncleGenerations + 1` before `now`.
+ **/
+ uncleGenerations: u32 & AugmentedConst<ApiType>;
+ /**
+ * Generic const
+ **/
+ [key: string]: Codec;
+ };
balances: {
/**
* The minimum amount required to keep an account open.
@@ -102,6 +114,40 @@
**/
[key: string]: Codec;
};
+ identity: {
+ /**
+ * The amount held on deposit for a registered identity
+ **/
+ basicDeposit: u128 & AugmentedConst<ApiType>;
+ /**
+ * The amount held on deposit per additional field for a registered identity.
+ **/
+ fieldDeposit: u128 & AugmentedConst<ApiType>;
+ /**
+ * Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O
+ * required to access an identity, but can be pretty high.
+ **/
+ maxAdditionalFields: u32 & AugmentedConst<ApiType>;
+ /**
+ * Maxmimum number of registrars allowed in the system. Needed to bound the complexity
+ * of, e.g., updating judgements.
+ **/
+ maxRegistrars: u32 & AugmentedConst<ApiType>;
+ /**
+ * The maximum number of sub-accounts allowed per identified account.
+ **/
+ maxSubAccounts: u32 & AugmentedConst<ApiType>;
+ /**
+ * The amount held on deposit for a registered subaccount. This should account for the fact
+ * that one storage item's value will increase by the size of an account ID, and there will
+ * be another trie item whose value is the size of an account ID plus 32 bytes.
+ **/
+ subAccountDeposit: u128 & AugmentedConst<ApiType>;
+ /**
+ * Generic const
+ **/
+ [key: string]: Codec;
+ };
inflation: {
/**
* Number of blocks that pass between treasury balance updates due to inflation
tests/src/interfaces/augment-api-errors.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-errors.ts
+++ b/tests/src/interfaces/augment-api-errors.ts
@@ -21,6 +21,10 @@
**/
IncorrectLockedBalanceOperation: AugmentedError<ApiType>;
/**
+ * Errors caused by insufficient staked balance.
+ **/
+ InsufficientStakedBalance: AugmentedError<ApiType>;
+ /**
* No permission to perform an action.
**/
NoPermission: AugmentedError<ApiType>;
@@ -41,6 +45,40 @@
**/
[key: string]: AugmentedError<ApiType>;
};
+ authorship: {
+ /**
+ * The uncle is genesis.
+ **/
+ GenesisUncle: AugmentedError<ApiType>;
+ /**
+ * The uncle parent not in the chain.
+ **/
+ InvalidUncleParent: AugmentedError<ApiType>;
+ /**
+ * The uncle isn't recent enough to be included.
+ **/
+ OldUncle: AugmentedError<ApiType>;
+ /**
+ * The uncle is too high in chain.
+ **/
+ TooHighUncle: AugmentedError<ApiType>;
+ /**
+ * Too many uncles.
+ **/
+ TooManyUncles: AugmentedError<ApiType>;
+ /**
+ * The uncle is already included.
+ **/
+ UncleAlreadyIncluded: AugmentedError<ApiType>;
+ /**
+ * Uncles already set in the block.
+ **/
+ UnclesAlreadySet: AugmentedError<ApiType>;
+ /**
+ * Generic error
+ **/
+ [key: string]: AugmentedError<ApiType>;
+ };
balances: {
/**
* Beneficiary account must pre-exist
@@ -79,6 +117,64 @@
**/
[key: string]: AugmentedError<ApiType>;
};
+ collatorSelection: {
+ /**
+ * User is already a candidate
+ **/
+ AlreadyCandidate: AugmentedError<ApiType>;
+ /**
+ * User already holds license to collate
+ **/
+ AlreadyHoldingLicense: AugmentedError<ApiType>;
+ /**
+ * User is already an Invulnerable
+ **/
+ AlreadyInvulnerable: AugmentedError<ApiType>;
+ /**
+ * Account has no associated validator ID
+ **/
+ NoAssociatedValidatorId: AugmentedError<ApiType>;
+ /**
+ * User does not hold a license to collate
+ **/
+ NoLicense: AugmentedError<ApiType>;
+ /**
+ * User is not a candidate
+ **/
+ NotCandidate: AugmentedError<ApiType>;
+ /**
+ * User is not an Invulnerable
+ **/
+ NotInvulnerable: AugmentedError<ApiType>;
+ /**
+ * Permission issue
+ **/
+ Permission: AugmentedError<ApiType>;
+ /**
+ * Too few invulnerables
+ **/
+ TooFewInvulnerables: AugmentedError<ApiType>;
+ /**
+ * Too many candidates
+ **/
+ TooManyCandidates: AugmentedError<ApiType>;
+ /**
+ * Too many invulnerables
+ **/
+ TooManyInvulnerables: AugmentedError<ApiType>;
+ /**
+ * Unknown error
+ **/
+ Unknown: AugmentedError<ApiType>;
+ /**
+ * Validator ID is not yet registered
+ **/
+ ValidatorNotRegistered: AugmentedError<ApiType>;
+ /**
+ * Generic error
+ **/
+ [key: string]: AugmentedError<ApiType>;
+ };
common: {
/**
* Account token limit exceeded per collection
@@ -425,6 +521,84 @@
**/
[key: string]: AugmentedError<ApiType>;
};
+ identity: {
+ /**
+ * Account ID is already named.
+ **/
+ AlreadyClaimed: AugmentedError<ApiType>;
+ /**
+ * Empty index.
+ **/
+ EmptyIndex: AugmentedError<ApiType>;
+ /**
+ * Fee is changed.
+ **/
+ FeeChanged: AugmentedError<ApiType>;
+ /**
+ * The index is invalid.
+ **/
+ InvalidIndex: AugmentedError<ApiType>;
+ /**
+ * Invalid judgement.
+ **/
+ InvalidJudgement: AugmentedError<ApiType>;
+ /**
+ * The target is invalid.
+ **/
+ InvalidTarget: AugmentedError<ApiType>;
+ /**
+ * The provided judgement was for a different identity.
+ **/
+ JudgementForDifferentIdentity: AugmentedError<ApiType>;
+ /**
+ * Judgement given.
+ **/
+ JudgementGiven: AugmentedError<ApiType>;
+ /**
+ * Error that occurs when there is an issue paying for judgement.
+ **/
+ JudgementPaymentFailed: AugmentedError<ApiType>;
+ /**
+ * No identity found.
+ **/
+ NoIdentity: AugmentedError<ApiType>;
+ /**
+ * Account isn't found.
+ **/
+ NotFound: AugmentedError<ApiType>;
+ /**
+ * Account isn't named.
+ **/
+ NotNamed: AugmentedError<ApiType>;
+ /**
+ * Sub-account isn't owned by sender.
+ **/
+ NotOwned: AugmentedError<ApiType>;
+ /**
+ * Sender is not a sub-account.
+ **/
+ NotSub: AugmentedError<ApiType>;
+ /**
+ * Sticky judgement.
+ **/
+ StickyJudgement: AugmentedError<ApiType>;
+ /**
+ * Too many additional fields.
+ **/
+ TooManyFields: AugmentedError<ApiType>;
+ /**
+ * Maximum amount of registrars reached. Cannot add any more.
+ **/
+ TooManyRegistrars: AugmentedError<ApiType>;
+ /**
+ * Too many subs-accounts.
+ **/
+ TooManySubAccounts: AugmentedError<ApiType>;
+ /**
+ * Generic error
+ **/
+ [key: string]: AugmentedError<ApiType>;
+ };
maintenance: {
/**
* Generic error
@@ -549,145 +723,83 @@
**/
[key: string]: AugmentedError<ApiType>;
};
- refungible: {
+ preimage: {
/**
- * Not Refungible item data used to mint in Refungible collection.
+ * Preimage has already been noted on-chain.
**/
- NotRefungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;
+ AlreadyNoted: AugmentedError<ApiType>;
/**
- * Refungible token can't nest other tokens.
+ * The user is not authorized to perform this action.
**/
- RefungibleDisallowsNesting: AugmentedError<ApiType>;
+ NotAuthorized: AugmentedError<ApiType>;
/**
- * Refungible token can't be repartitioned by user who isn't owns all pieces.
+ * The preimage cannot be removed since it has not yet been noted.
**/
- RepartitionWhileNotOwningAllPieces: AugmentedError<ApiType>;
+ NotNoted: AugmentedError<ApiType>;
/**
- * Setting item properties is not allowed.
+ * The preimage request cannot be removed since no outstanding requests exist.
**/
- SettingPropertiesNotAllowed: AugmentedError<ApiType>;
+ NotRequested: AugmentedError<ApiType>;
/**
- * Maximum refungibility exceeded.
+ * A preimage may not be removed when there are outstanding requests.
**/
- WrongRefungiblePieces: AugmentedError<ApiType>;
+ Requested: AugmentedError<ApiType>;
/**
+ * Preimage is too large to store on-chain.
+ **/
+ TooBig: AugmentedError<ApiType>;
+ /**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
- rmrkCore: {
- /**
- * Not the target owner of the sent NFT.
- **/
- CannotAcceptNonOwnedNft: AugmentedError<ApiType>;
- /**
- * Not the target owner of the sent NFT.
- **/
- CannotRejectNonOwnedNft: AugmentedError<ApiType>;
- /**
- * NFT was not sent and is not pending.
- **/
- CannotRejectNonPendingNft: AugmentedError<ApiType>;
- /**
- * If an NFT is sent to a descendant, that would form a nesting loop, an ouroboros.
- * Sending to self is redundant.
- **/
- CannotSendToDescendentOrSelf: AugmentedError<ApiType>;
- /**
- * Too many tokens created in the collection, no new ones are allowed.
- **/
- CollectionFullOrLocked: AugmentedError<ApiType>;
- /**
- * Only destroying collections without tokens is allowed.
- **/
- CollectionNotEmpty: AugmentedError<ApiType>;
- /**
- * Collection does not exist, has a wrong type, or does not map to a Unique ID.
- **/
- CollectionUnknown: AugmentedError<ApiType>;
- /**
- * Property of the type of RMRK collection could not be read successfully.
- **/
- CorruptedCollectionType: AugmentedError<ApiType>;
- /**
- * Could not find an ID for a collection. It is likely there were too many collections created on the chain, causing an overflow.
- **/
- NoAvailableCollectionId: AugmentedError<ApiType>;
- /**
- * Token does not exist, or there is no suitable ID for it, likely too many tokens were created in a collection, causing an overflow.
- **/
- NoAvailableNftId: AugmentedError<ApiType>;
- /**
- * Could not find an ID for the resource. It is likely there were too many resources created on an NFT, causing an overflow.
- **/
- NoAvailableResourceId: AugmentedError<ApiType>;
- /**
- * Token is marked as non-transferable, and thus cannot be transferred.
- **/
- NonTransferable: AugmentedError<ApiType>;
+ refungible: {
/**
- * No permission to perform action.
- **/
- NoPermission: AugmentedError<ApiType>;
- /**
- * No such resource found.
+ * Not Refungible item data used to mint in Refungible collection.
**/
- ResourceDoesntExist: AugmentedError<ApiType>;
+ NotRefungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;
/**
- * Resource is not pending for the operation.
+ * Refungible token can't nest other tokens.
**/
- ResourceNotPending: AugmentedError<ApiType>;
+ RefungibleDisallowsNesting: AugmentedError<ApiType>;
/**
- * Could not find a property by the supplied key.
+ * Refungible token can't be repartitioned by user who isn't owns all pieces.
**/
- RmrkPropertyIsNotFound: AugmentedError<ApiType>;
+ RepartitionWhileNotOwningAllPieces: AugmentedError<ApiType>;
/**
- * Too many symbols supplied as the property key. The maximum is [256](up_data_structs::MAX_PROPERTY_KEY_LENGTH).
+ * Setting item properties is not allowed.
**/
- RmrkPropertyKeyIsTooLong: AugmentedError<ApiType>;
+ SettingPropertiesNotAllowed: AugmentedError<ApiType>;
/**
- * Too many bytes supplied as the property value. The maximum is [32768](up_data_structs::MAX_PROPERTY_VALUE_LENGTH).
+ * Maximum refungibility exceeded.
**/
- RmrkPropertyValueIsTooLong: AugmentedError<ApiType>;
+ WrongRefungiblePieces: AugmentedError<ApiType>;
/**
- * Something went wrong when decoding encoded data from the storage.
- * Perhaps, there was a wrong key supplied for the type, or the data was improperly stored.
- **/
- UnableToDecodeRmrkData: AugmentedError<ApiType>;
- /**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
- rmrkEquip: {
+ session: {
/**
- * Base collection linked to this ID does not exist.
+ * Registered duplicate key.
**/
- BaseDoesntExist: AugmentedError<ApiType>;
- /**
- * No Theme named "default" is associated with the Base.
- **/
- NeedsDefaultThemeFirst: AugmentedError<ApiType>;
+ DuplicatedKey: AugmentedError<ApiType>;
/**
- * Could not find an ID for a Base collection. It is likely there were too many collections created on the chain, causing an overflow.
- **/
- NoAvailableBaseId: AugmentedError<ApiType>;
- /**
- * Could not find a suitable ID for a Part, likely too many Part tokens were created in the Base, causing an overflow
+ * Invalid ownership proof.
**/
- NoAvailablePartId: AugmentedError<ApiType>;
+ InvalidProof: AugmentedError<ApiType>;
/**
- * Cannot assign equippables to a fixed Part.
+ * Key setting account is not live, so it's impossible to associate keys.
**/
- NoEquippableOnFixedPart: AugmentedError<ApiType>;
+ NoAccount: AugmentedError<ApiType>;
/**
- * Part linked to this ID does not exist.
+ * No associated validator ID for account.
**/
- PartDoesntExist: AugmentedError<ApiType>;
+ NoAssociatedValidatorId: AugmentedError<ApiType>;
/**
- * No permission to perform action.
+ * No keys are associated with this account.
**/
- PermissionError: AugmentedError<ApiType>;
+ NoKeys: AugmentedError<ApiType>;
/**
* Generic error
**/
@@ -699,6 +811,10 @@
**/
BreadthLimit: AugmentedError<ApiType>;
/**
+ * Tried to nest token under collection contract address, instead of token address
+ **/
+ CantNestTokenUnderCollection: AugmentedError<ApiType>;
+ /**
* While nesting, reached the depth limit of nesting, exceeding the provided budget.
**/
DepthLimit: AugmentedError<ApiType>;
tests/src/interfaces/augment-api-events.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-events.ts
+++ b/tests/src/interfaces/augment-api-events.ts
@@ -8,7 +8,7 @@
import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U8aFixed, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';
import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';
-import type { EthereumLog, EvmCoreErrorExitReason, FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, OrmlVestingVestingSchedule, PalletEvmAccountBasicCrossAccountIdRepr, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, RmrkTraitsNftAccountIdOrCollectionNftTuple, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetMultiAssets, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
+import type { EthereumLog, EvmCoreErrorExitReason, FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, OrmlVestingVestingSchedule, PalletEvmAccountBasicCrossAccountIdRepr, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetMultiAssets, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
@@ -100,6 +100,18 @@
**/
[key: string]: AugmentedEvent<ApiType>;
};
+ collatorSelection: {
+ CandidateAdded: AugmentedEvent<ApiType, [accountId: AccountId32], { accountId: AccountId32 }>;
+ CandidateRemoved: AugmentedEvent<ApiType, [accountId: AccountId32], { accountId: AccountId32 }>;
+ InvulnerableAdded: AugmentedEvent<ApiType, [invulnerable: AccountId32], { invulnerable: AccountId32 }>;
+ InvulnerableRemoved: AugmentedEvent<ApiType, [invulnerable: AccountId32], { invulnerable: AccountId32 }>;
+ LicenseObtained: AugmentedEvent<ApiType, [accountId: AccountId32, deposit: u128], { accountId: AccountId32, deposit: u128 }>;
+ LicenseReleased: AugmentedEvent<ApiType, [accountId: AccountId32, depositReturned: u128], { accountId: AccountId32, depositReturned: u128 }>;
+ /**
+ * Generic event
+ **/
+ [key: string]: AugmentedEvent<ApiType>;
+ };
common: {
/**
* Address was added to the allow list.
@@ -340,6 +352,65 @@
**/
[key: string]: AugmentedEvent<ApiType>;
};
+ identity: {
+ /**
+ * A number of identities and associated info were forcibly inserted.
+ **/
+ IdentitiesInserted: AugmentedEvent<ApiType, [amount: u32], { amount: u32 }>;
+ /**
+ * A number of identities and all associated info were forcibly removed.
+ **/
+ IdentitiesRemoved: AugmentedEvent<ApiType, [amount: u32], { amount: u32 }>;
+ /**
+ * A name was cleared, and the given balance returned.
+ **/
+ IdentityCleared: AugmentedEvent<ApiType, [who: AccountId32, deposit: u128], { who: AccountId32, deposit: u128 }>;
+ /**
+ * A name was removed and the given balance slashed.
+ **/
+ IdentityKilled: AugmentedEvent<ApiType, [who: AccountId32, deposit: u128], { who: AccountId32, deposit: u128 }>;
+ /**
+ * A name was set or reset (which will remove all judgements).
+ **/
+ IdentitySet: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
+ /**
+ * A judgement was given by a registrar.
+ **/
+ JudgementGiven: AugmentedEvent<ApiType, [target: AccountId32, registrarIndex: u32], { target: AccountId32, registrarIndex: u32 }>;
+ /**
+ * A judgement was asked from a registrar.
+ **/
+ JudgementRequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], { who: AccountId32, registrarIndex: u32 }>;
+ /**
+ * A judgement request was retracted.
+ **/
+ JudgementUnrequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], { who: AccountId32, registrarIndex: u32 }>;
+ /**
+ * A registrar was added.
+ **/
+ RegistrarAdded: AugmentedEvent<ApiType, [registrarIndex: u32], { registrarIndex: u32 }>;
+ /**
+ * A number of identities were forcibly updated with new sub-identities.
+ **/
+ SubIdentitiesInserted: AugmentedEvent<ApiType, [amount: u32], { amount: u32 }>;
+ /**
+ * A sub-identity was added to an identity and the deposit paid.
+ **/
+ SubIdentityAdded: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
+ /**
+ * A sub-identity was removed from an identity and the deposit freed.
+ **/
+ SubIdentityRemoved: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
+ /**
+ * A sub-identity was cleared, and the given deposit repatriated from the
+ * main identity account to the sub-identity account.
+ **/
+ SubIdentityRevoked: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], { sub: AccountId32, main: AccountId32, deposit: u128 }>;
+ /**
+ * Generic event
+ **/
+ [key: string]: AugmentedEvent<ApiType>;
+ };
maintenance: {
MaintenanceDisabled: AugmentedEvent<ApiType, []>;
MaintenanceEnabled: AugmentedEvent<ApiType, []>;
@@ -506,30 +577,30 @@
**/
[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 }>;
- CollectionLocked: AugmentedEvent<ApiType, [issuer: AccountId32, collectionId: u32], { issuer: AccountId32, collectionId: u32 }>;
- IssuerChanged: AugmentedEvent<ApiType, [oldIssuer: AccountId32, newIssuer: AccountId32, collectionId: u32], { oldIssuer: AccountId32, newIssuer: AccountId32, collectionId: u32 }>;
- NFTAccepted: AugmentedEvent<ApiType, [sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32], { sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32 }>;
- NFTBurned: AugmentedEvent<ApiType, [owner: AccountId32, nftId: u32], { owner: AccountId32, nftId: u32 }>;
- NftMinted: AugmentedEvent<ApiType, [owner: AccountId32, collectionId: u32, nftId: u32], { owner: AccountId32, collectionId: u32, nftId: u32 }>;
- NFTRejected: AugmentedEvent<ApiType, [sender: AccountId32, collectionId: u32, nftId: u32], { sender: AccountId32, collectionId: u32, nftId: u32 }>;
- NFTSent: AugmentedEvent<ApiType, [sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32, approvalRequired: bool], { sender: AccountId32, recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple, collectionId: u32, nftId: u32, approvalRequired: bool }>;
- PrioritySet: AugmentedEvent<ApiType, [collectionId: u32, nftId: u32], { collectionId: u32, nftId: u32 }>;
- PropertySet: AugmentedEvent<ApiType, [collectionId: u32, maybeNftId: Option<u32>, key: Bytes, value: Bytes], { collectionId: u32, maybeNftId: Option<u32>, key: Bytes, value: Bytes }>;
- ResourceAccepted: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;
- ResourceAdded: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;
- ResourceRemoval: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;
- ResourceRemovalAccepted: AugmentedEvent<ApiType, [nftId: u32, resourceId: u32], { nftId: u32, resourceId: u32 }>;
+ preimage: {
+ /**
+ * A preimage has ben cleared.
+ **/
+ Cleared: AugmentedEvent<ApiType, [hash_: H256], { hash_: H256 }>;
+ /**
+ * A preimage has been noted.
+ **/
+ Noted: AugmentedEvent<ApiType, [hash_: H256], { hash_: H256 }>;
+ /**
+ * A preimage has been requested.
+ **/
+ Requested: AugmentedEvent<ApiType, [hash_: H256], { hash_: H256 }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
- rmrkEquip: {
- BaseCreated: AugmentedEvent<ApiType, [issuer: AccountId32, baseId: u32], { issuer: AccountId32, baseId: u32 }>;
- EquippablesUpdated: AugmentedEvent<ApiType, [baseId: u32, slotId: u32], { baseId: u32, slotId: u32 }>;
+ session: {
+ /**
+ * New session has happened. Note that the argument is the session index, not the
+ * block number as the type might suggest.
+ **/
+ NewSession: AugmentedEvent<ApiType, [sessionIndex: u32], { sessionIndex: u32 }>;
/**
* Generic event
**/
@@ -707,6 +778,10 @@
**/
Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], { budgetRemaining: u128 }>;
/**
+ * The inactive funds of the pallet have been updated.
+ **/
+ UpdatedInactive: AugmentedEvent<ApiType, [reactivated: u128, deactivated: u128], { reactivated: u128, deactivated: u128 }>;
+ /**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
tests/src/interfaces/augment-api-query.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-query.ts
+++ b/tests/src/interfaces/augment-api-query.ts
@@ -6,10 +6,11 @@
import '@polkadot/api-base/types/storage';
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
+import type { Data } from '@polkadot/types';
import type { BTreeMap, Bytes, Option, U256, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';
-import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumLog, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensReserveData, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletConfigurationAppPromotionConfiguration, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmContractHelpersSponsoringModeT, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletNonfungibleItemData, PalletTransactionPaymentReleases, PalletTreasuryProposal, PhantomTypeUpDataStructs, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, UpDataStructsCollection, UpDataStructsCollectionStats, UpDataStructsProperties, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, UpDataStructsTokenChild, XcmV1MultiLocation } from '@polkadot/types/lookup';
+import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumLog, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, OpalRuntimeRuntimeCommonSessionKeys, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensReserveData, OrmlVestingVestingSchedule, PalletAuthorshipUncleEntryItem, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletConfigurationAppPromotionConfiguration, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmContractHelpersSponsoringModeT, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletNonfungibleItemData, PalletPreimageRequestStatus, PalletTransactionPaymentReleases, PalletTreasuryProposal, PhantomTypeUpDataStructs, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, UpDataStructsCollection, UpDataStructsCollectionStats, UpDataStructsProperties, UpDataStructsPropertiesMapPropertyPermission, UpDataStructsPropertyPermission, UpDataStructsPropertyScope, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, UpDataStructsTokenChild, XcmV1MultiLocation } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
@@ -23,7 +24,7 @@
**/
admin: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
- * Stores amount of stakes for an `Account`.
+ * Pending unstake records for an `Account`.
*
* * **Key** - Staker account.
* * **Value** - Amount of stakes.
@@ -44,7 +45,7 @@
**/
staked: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<ITuple<[u128, u32]>>, [AccountId32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32]>;
/**
- * Stores amount of stakes for an `Account`.
+ * Stores number of stake records for an `Account`.
*
* * **Key** - Staker account.
* * **Value** - Amount of stakes.
@@ -54,11 +55,30 @@
* Stores the total staked amount.
**/
totalStaked: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
+ upgradedToReserves: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
+ authorship: {
+ /**
+ * Author of current block.
+ **/
+ author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
+ /**
+ * Whether uncles were already set in this block.
+ **/
+ didSetUncles: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
+ /**
+ * Uncles
+ **/
+ uncles: AugmentedQuery<ApiType, () => Observable<Vec<PalletAuthorshipUncleEntryItem>>, []> & QueryableStorageEntry<ApiType, []>;
+ /**
+ * Generic query
+ **/
+ [key: string]: QueryableStorageEntry<ApiType>;
+ };
balances: {
/**
* The Balances pallet example of storing the balance of an account.
@@ -115,6 +135,28 @@
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
+ collatorSelection: {
+ /**
+ * The (community, limited) collation candidates.
+ **/
+ candidates: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
+ /**
+ * The invulnerable, fixed collators.
+ **/
+ invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
+ /**
+ * Last block authored by collator.
+ **/
+ lastAuthoredBlock: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u32>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
+ /**
+ * The (community) collation license holders.
+ **/
+ licenseDepositOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u128>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
+ /**
+ * Generic query
+ **/
+ [key: string]: QueryableStorageEntry<ApiType>;
+ };
common: {
/**
* Storage of the amount of collection admins.
@@ -267,6 +309,9 @@
* * **Value** - owner for contract.
**/
owner: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<H160>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
+ /**
+ * Deprecated: this storage is deprecated
+ **/
selfSponsoring: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<bool>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
sponsorBasket: AugmentedQuery<ApiType, (arg1: H160 | string | Uint8Array, arg2: H160 | string | Uint8Array) => Observable<Option<u32>>, [H160, H160]> & QueryableStorageEntry<ApiType, [H160, H160]>;
/**
@@ -366,6 +411,38 @@
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
+ identity: {
+ /**
+ * Information that is pertinent to identify the entity behind an account.
+ *
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
+ **/
+ identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityRegistration>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
+ /**
+ * The set of registrars. Not expected to get very big as can only be added through a
+ * special origin (likely a council motion).
+ *
+ * The index into this can be cast to `RegistrarIndex` to get a valid value.
+ **/
+ registrars: AugmentedQuery<ApiType, () => Observable<Vec<Option<PalletIdentityRegistrarInfo>>>, []> & QueryableStorageEntry<ApiType, []>;
+ /**
+ * Alternative "sub" identities of this account.
+ *
+ * The first item is the deposit, the second is a vector of the accounts.
+ *
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
+ **/
+ subsOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[u128, Vec<AccountId32>]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
+ /**
+ * The super-identity of an alternative "sub" identity together with its name, within that
+ * context. If the account is not some other account's sub-identity, then just `None`.
+ **/
+ superOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, Data]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
+ /**
+ * Generic query
+ **/
+ [key: string]: QueryableStorageEntry<ApiType>;
+ };
inflation: {
/**
* Current inflation for `InflationBlockInterval` number of blocks
@@ -425,7 +502,7 @@
* usual [`TokenProperties`] due to an unlimited number
* and separately stored and written-to key-value pairs.
*
- * Currently used to store RMRK data.
+ * Currently unused.
**/
tokenAuxProperties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: UpDataStructsPropertyScope | 'None' | 'Rmrk' | number | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable<Option<Bytes>>, [u32, u32, UpDataStructsPropertyScope, Bytes]> & QueryableStorageEntry<ApiType, [u32, u32, UpDataStructsPropertyScope, Bytes]>;
/**
@@ -602,6 +679,17 @@
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
+ preimage: {
+ preimageFor: AugmentedQuery<ApiType, (arg: ITuple<[H256, u32]> | [H256 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<Bytes>>, [ITuple<[H256, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[H256, u32]>]>;
+ /**
+ * The request status of a given hash.
+ **/
+ statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
+ /**
+ * Generic query
+ **/
+ [key: string]: QueryableStorageEntry<ApiType>;
+ };
randomnessCollectiveFlip: {
/**
* Series of block headers from the last 81 blocks that acts as random seed material. This
@@ -628,7 +716,7 @@
**/
balance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u128>, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
- * Operator set by a wallet owner that could perform certain transactions on all tokens in the wallet.
+ * Spender set by a wallet owner that could perform certain transactions on all tokens in the wallet.
**/
collectionAllowance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg3: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<bool>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
@@ -656,29 +744,41 @@
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
- rmrkCore: {
+ session: {
/**
- * Latest yet-unused collection ID.
+ * Current index of the session.
**/
- collectionIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
+ currentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
- * Mapping from RMRK collection ID to Unique's.
+ * Indices of disabled validators.
+ *
+ * The vec is always kept sorted so that we can find whether a given validator is
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
+ * a new set of identities.
**/
- uniqueCollectionId: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
+ disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
- * Generic query
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
+ **/
+ keyOwner: AugmentedQuery<ApiType, (arg: ITuple<[SpCoreCryptoKeyTypeId, Bytes]> | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<AccountId32>>, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]> & QueryableStorageEntry<ApiType, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]>;
+ /**
+ * The next session keys for a validator.
+ **/
+ nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<OpalRuntimeRuntimeCommonSessionKeys>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
+ /**
+ * True if the underlying economic identities or weighting behind the validators
+ * has changed in the queued validator set.
**/
- [key: string]: QueryableStorageEntry<ApiType>;
- };
- rmrkEquip: {
+ queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
/**
- * Checkmark that a Base has a Theme NFT named "default".
+ * The queued keys for the next session. When the next session begins, these keys
+ * will be used to determine the validator's session keys.
**/
- baseHasDefaultTheme: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<bool>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
+ queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, OpalRuntimeRuntimeCommonSessionKeys]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
- * Map of a Base ID and a Part ID to an NFT in the Base collection serving as the Part.
+ * The current set of validators.
**/
- inernalPartId: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
+ validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
**/
@@ -852,7 +952,7 @@
/**
* The amount which has been reported as inactive to Currency.
**/
- inactive: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
+ deactivated: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Number of proposals that have been made.
**/
tests/src/interfaces/augment-api-rpc.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-rpc.ts
+++ b/tests/src/interfaces/augment-api-rpc.ts
@@ -5,7 +5,7 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/rpc-core/types/jsonrpc';
-import type { PalletEvmAccountBasicCrossAccountIdRepr, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsPartPartType, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsTheme, UpDataStructsCollectionLimits, UpDataStructsCollectionStats, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsRpcCollection, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo } from './default';
+import type { PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsCollectionLimits, UpDataStructsCollectionStats, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsRpcCollection, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo } from './default';
import type { AugmentedRpc } from '@polkadot/rpc-core/types';
import type { Metadata, StorageKey } from '@polkadot/types';
import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u128, u32, u64 } from '@polkadot/types-codec';
@@ -26,7 +26,7 @@
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment';
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
-import type { AccountId, AccountId32, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime';
+import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime';
import type { MigrationStatusResult, ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state';
import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system';
import type { IExtrinsic, Observable } from '@polkadot/types/types';
@@ -441,60 +441,6 @@
* Estimate PoV size of encoded signed extrinsics
**/
estimateExtrinsicPoV: AugmentedRpc<(encodedXt: Vec<Bytes> | (Bytes | string | Uint8Array)[], at?: Hash | string | Uint8Array) => Observable<UpPovEstimateRpcPovInfo>>;
- };
- rmrk: {
- /**
- * Get tokens owned by an account in a collection
- **/
- accountTokens: AugmentedRpc<(accountId: AccountId32 | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<u32>>>;
- /**
- * Get base info
- **/
- base: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<RmrkTraitsBaseBaseInfo>>>;
- /**
- * Get all Base's parts
- **/
- baseParts: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsPartPartType>>>;
- /**
- * Get collection by id
- **/
- collectionById: AugmentedRpc<(id: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<RmrkTraitsCollectionCollectionInfo>>>;
- /**
- * Get collection properties
- **/
- collectionProperties: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, filterKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsPropertyPropertyInfo>>>;
- /**
- * Get the latest created collection id
- **/
- lastCollectionIdx: AugmentedRpc<(at?: Hash | string | Uint8Array) => Observable<u32>>;
- /**
- * Get NFT by collection id and NFT id
- **/
- nftById: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<RmrkTraitsNftNftInfo>>>;
- /**
- * Get NFT children
- **/
- nftChildren: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsNftNftChild>>>;
- /**
- * Get NFT properties
- **/
- nftProperties: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, filterKeys?: Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsPropertyPropertyInfo>>>;
- /**
- * Get NFT resource priorities
- **/
- nftResourcePriority: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resourceId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<u32>>>;
- /**
- * Get NFT resources
- **/
- nftResources: AugmentedRpc<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<RmrkTraitsResourceResourceInfo>>>;
- /**
- * Get Base's theme names
- **/
- themeNames: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<Bytes>>>;
- /**
- * Get Theme's keys values
- **/
- themes: AugmentedRpc<(baseId: u32 | AnyNumber | Uint8Array, themeName: Text | string, keys: Option<Vec<Text>> | null | Uint8Array | Vec<Text> | (Text | string)[], at?: Hash | string | Uint8Array) => Observable<Option<RmrkTraitsTheme>>>;
};
rpc: {
/**
tests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -6,10 +6,11 @@
import '@polkadot/api-base/types/submittable';
import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
+import type { Data } from '@polkadot/types';
import type { Bytes, Compact, Option, U256, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
-import type { AccountId32, Call, H160, H256, MultiAddress, Permill } from '@polkadot/types/interfaces/runtime';
-import type { CumulusPrimitivesParachainInherentParachainInherentData, EthereumLog, EthereumTransactionTransactionV2, OrmlVestingVestingSchedule, PalletConfigurationAppPromotionConfiguration, PalletEvmAccountBasicCrossAccountIdRepr, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, RmrkTraitsNftAccountIdOrCollectionNftTuple, RmrkTraitsPartEquippableList, RmrkTraitsPartPartType, RmrkTraitsResourceBasicResource, RmrkTraitsResourceComposableResource, RmrkTraitsResourceResourceTypes, RmrkTraitsResourceSlotResource, RmrkTraitsTheme, SpWeightsWeightV2Weight, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCreateCollectionData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
+import type { AccountId32, Call, H160, H256, MultiAddress } from '@polkadot/types/interfaces/runtime';
+import type { CumulusPrimitivesParachainInherentParachainInherentData, EthereumLog, EthereumTransactionTransactionV2, OpalRuntimeRuntimeCommonSessionKeys, OrmlVestingVestingSchedule, PalletConfigurationAppPromotionConfiguration, PalletEvmAccountBasicCrossAccountIdRepr, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletIdentityRegistration, SpRuntimeHeader, SpWeightsWeightV2Weight, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionPermissions, UpDataStructsCreateCollectionData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -109,11 +110,31 @@
stopSponsoringContract: AugmentedSubmittable<(contractId: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;
/**
* Unstakes all stakes.
- * Moves the sum of all stakes to the `reserved` state.
* After the end of `PendingInterval` this sum becomes completely
* free for further use.
**/
- unstake: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
+ unstakeAll: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
+ /**
+ * Unstakes the amount of balance for the staker.
+ * After the end of `PendingInterval` this sum becomes completely
+ * free for further use.
+ *
+ * # Arguments
+ *
+ * * `staker`: staker account.
+ * * `amount`: amount of unstaked funds.
+ **/
+ unstakePartial: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
+ /**
+ * Generic tx
+ **/
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
+ };
+ authorship: {
+ /**
+ * Provide a set of uncles.
+ **/
+ setUncles: AugmentedSubmittable<(newUncles: Vec<SpRuntimeHeader> | (SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<SpRuntimeHeader>]>;
/**
* Generic tx
**/
@@ -214,6 +235,54 @@
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
+ collatorSelection: {
+ /**
+ * Add a collator to the list of invulnerable (fixed) collators.
+ **/
+ addInvulnerable: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
+ /**
+ * Force deregister `origin` as a collator candidate as a governing authority, and revoke its license.
+ * Note that the collator can only leave on session change.
+ * The `LicenseBond` will be unreserved and returned immediately.
+ *
+ * This call is, of course, not applicable to `Invulnerable` collators.
+ **/
+ forceReleaseLicense: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
+ /**
+ * Purchase a license on block collation for this account.
+ * It does not make it a collator candidate, use `onboard` afterward. The account must
+ * (a) already have registered session keys and (b) be able to reserve the `LicenseBond`.
+ *
+ * This call is not available to `Invulnerable` collators.
+ **/
+ getLicense: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
+ /**
+ * Deregister `origin` as a collator candidate. Note that the collator can only leave on
+ * session change. The license to `onboard` later at any other time will remain.
+ **/
+ offboard: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
+ /**
+ * Register this account as a candidate for collators for next sessions.
+ * The account must already hold a license, and cannot offboard immediately during a session.
+ *
+ * This call is not available to `Invulnerable` collators.
+ **/
+ onboard: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
+ /**
+ * Forfeit `origin`'s own license. The `LicenseBond` will be unreserved immediately.
+ *
+ * This call is not available to `Invulnerable` collators.
+ **/
+ releaseLicense: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
+ /**
+ * Remove a collator from the list of invulnerable (fixed) collators.
+ **/
+ removeInvulnerable: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
+ /**
+ * Generic tx
+ **/
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
+ };
configuration: {
setAppPromotionConfigurationOverride: AugmentedSubmittable<(configuration: PalletConfigurationAppPromotionConfiguration | { recalculationInterval?: any; pendingInterval?: any; intervalIncome?: any; maxStakersPerCalculation?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletConfigurationAppPromotionConfiguration]>;
setCollatorSelectionDesiredCollators: AugmentedSubmittable<(max: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
@@ -308,6 +377,10 @@
**/
insertEvents: AugmentedSubmittable<(events: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;
/**
+ * Remove remark compatibility data leftovers
+ **/
+ removeRmrkData: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
+ /**
* Insert items into contract storage, this method can be called
* multiple times
**/
@@ -325,6 +398,298 @@
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
+ identity: {
+ /**
+ * Add a registrar to the system.
+ *
+ * The dispatch origin for this call must be `T::RegistrarOrigin`.
+ *
+ * - `account`: the account of the registrar.
+ *
+ * Emits `RegistrarAdded` if successful.
+ *
+ * # <weight>
+ * - `O(R)` where `R` registrar-count (governance-bounded and code-bounded).
+ * - One storage mutation (codec `O(R)`).
+ * - One event.
+ * # </weight>
+ **/
+ addRegistrar: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
+ /**
+ * Add the given account to the sender's subs.
+ *
+ * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated
+ * to the sender.
+ *
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
+ * sub identity of `sub`.
+ **/
+ addSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, data: Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Data]>;
+ /**
+ * Cancel a previous request.
+ *
+ * Payment: A previously reserved deposit is returned on success.
+ *
+ * The dispatch origin for this call must be _Signed_ and the sender must have a
+ * registered identity.
+ *
+ * - `reg_index`: The index of the registrar whose judgement is no longer requested.
+ *
+ * Emits `JudgementUnrequested` if successful.
+ *
+ * # <weight>
+ * - `O(R + X)`.
+ * - One balance-reserve operation.
+ * - One storage mutation `O(R + X)`.
+ * - One event
+ * # </weight>
+ **/
+ cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
+ /**
+ * Clear an account's identity info and all sub-accounts and return all deposits.
+ *
+ * Payment: All reserved balances on the account are returned.
+ *
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
+ * identity.
+ *
+ * Emits `IdentityCleared` if successful.
+ *
+ * # <weight>
+ * - `O(R + S + X)`
+ * - where `R` registrar-count (governance-bounded).
+ * - where `S` subs-count (hard- and deposit-bounded).
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
+ * - One balance-unreserve operation.
+ * - `2` storage reads and `S + 2` storage deletions.
+ * - One event.
+ * # </weight>
+ **/
+ clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
+ /**
+ * Set identities to be associated with the provided accounts as force origin.
+ *
+ * This is not meant to operate in tandem with the identity pallet as is,
+ * and be instead used to keep identities made and verified externally,
+ * forbidden from interacting with an ordinary user, since it ignores any safety mechanism.
+ **/
+ forceInsertIdentities: AugmentedSubmittable<(identities: Vec<ITuple<[AccountId32, PalletIdentityRegistration]>> | ([AccountId32 | string | Uint8Array, PalletIdentityRegistration | { judgements?: any; deposit?: any; info?: any } | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, PalletIdentityRegistration]>>]>;
+ /**
+ * Remove identities associated with the provided accounts as force origin.
+ *
+ * This is not meant to operate in tandem with the identity pallet as is,
+ * and be instead used to keep identities made and verified externally,
+ * forbidden from interacting with an ordinary user, since it ignores any safety mechanism.
+ **/
+ forceRemoveIdentities: AugmentedSubmittable<(identities: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
+ /**
+ * Set sub-identities to be associated with the provided accounts as force origin.
+ *
+ * This is not meant to operate in tandem with the identity pallet as is,
+ * and be instead used to keep identities made and verified externally,
+ * forbidden from interacting with an ordinary user, since it ignores any safety mechanism.
+ **/
+ forceSetSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, ITuple<[u128, Vec<ITuple<[AccountId32, Data]>>]>]>> | ([AccountId32 | string | Uint8Array, ITuple<[u128, Vec<ITuple<[AccountId32, Data]>>]> | [u128 | AnyNumber | Uint8Array, Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array])[]]])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, ITuple<[u128, Vec<ITuple<[AccountId32, Data]>>]>]>>]>;
+ /**
+ * Remove an account's identity and sub-account information and slash the deposits.
+ *
+ * Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by
+ * `Slash`. Verification request deposits are not returned; they should be cancelled
+ * manually using `cancel_request`.
+ *
+ * The dispatch origin for this call must match `T::ForceOrigin`.
+ *
+ * - `target`: the account whose identity the judgement is upon. This must be an account
+ * with a registered identity.
+ *
+ * Emits `IdentityKilled` if successful.
+ *
+ * # <weight>
+ * - `O(R + S + X)`.
+ * - One balance-reserve operation.
+ * - `S + 2` storage mutations.
+ * - One event.
+ * # </weight>
+ **/
+ killIdentity: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
+ /**
+ * Provide a judgement for an account's identity.
+ *
+ * The dispatch origin for this call must be _Signed_ and the sender must be the account
+ * of the registrar whose index is `reg_index`.
+ *
+ * - `reg_index`: the index of the registrar whose judgement is being made.
+ * - `target`: the account whose identity the judgement is upon. This must be an account
+ * with a registered identity.
+ * - `judgement`: the judgement of the registrar of index `reg_index` about `target`.
+ * - `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided.
+ *
+ * Emits `JudgementGiven` if successful.
+ *
+ * # <weight>
+ * - `O(R + X)`.
+ * - One balance-transfer operation.
+ * - Up to one account-lookup operation.
+ * - Storage: 1 read `O(R)`, 1 mutate `O(R + X)`.
+ * - One event.
+ * # </weight>
+ **/
+ provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, judgement: PalletIdentityJudgement | { Unknown: any } | { FeePaid: any } | { Reasonable: any } | { KnownGood: any } | { OutOfDate: any } | { LowQuality: any } | { Erroneous: any } | string | Uint8Array, identity: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, PalletIdentityJudgement, H256]>;
+ /**
+ * Remove the sender as a sub-account.
+ *
+ * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated
+ * to the sender (*not* the original depositor).
+ *
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
+ * super-identity.
+ *
+ * NOTE: This should not normally be used, but is provided in the case that the non-
+ * controller of an account is maliciously registered as a sub-account.
+ **/
+ quitSub: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
+ /**
+ * Remove the given account from the sender's subs.
+ *
+ * Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated
+ * to the sender.
+ *
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
+ * sub identity of `sub`.
+ **/
+ removeSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
+ /**
+ * Alter the associated name of the given sub-account.
+ *
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
+ * sub identity of `sub`.
+ **/
+ renameSub: AugmentedSubmittable<(sub: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, data: Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Data]>;
+ /**
+ * Request a judgement from a registrar.
+ *
+ * Payment: At most `max_fee` will be reserved for payment to the registrar if judgement
+ * given.
+ *
+ * The dispatch origin for this call must be _Signed_ and the sender must have a
+ * registered identity.
+ *
+ * - `reg_index`: The index of the registrar whose judgement is requested.
+ * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
+ *
+ * ```nocompile
+ * Self::registrars().get(reg_index).unwrap().fee
+ * ```
+ *
+ * Emits `JudgementRequested` if successful.
+ *
+ * # <weight>
+ * - `O(R + X)`.
+ * - One balance-reserve operation.
+ * - Storage: 1 read `O(R)`, 1 mutate `O(X + R)`.
+ * - One event.
+ * # </weight>
+ **/
+ requestJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, maxFee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
+ /**
+ * Change the account associated with a registrar.
+ *
+ * The dispatch origin for this call must be _Signed_ and the sender must be the account
+ * of the registrar whose index is `index`.
+ *
+ * - `index`: the index of the registrar whose fee is to be set.
+ * - `new`: the new account ID.
+ *
+ * # <weight>
+ * - `O(R)`.
+ * - One storage mutation `O(R)`.
+ * - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
+ * # </weight>
+ **/
+ setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
+ /**
+ * Set the fee required for a judgement to be requested from a registrar.
+ *
+ * The dispatch origin for this call must be _Signed_ and the sender must be the account
+ * of the registrar whose index is `index`.
+ *
+ * - `index`: the index of the registrar whose fee is to be set.
+ * - `fee`: the new fee.
+ *
+ * # <weight>
+ * - `O(R)`.
+ * - One storage mutation `O(R)`.
+ * - Benchmark: 7.315 + R * 0.329 µs (min squares analysis)
+ * # </weight>
+ **/
+ setFee: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
+ /**
+ * Set the field information for a registrar.
+ *
+ * The dispatch origin for this call must be _Signed_ and the sender must be the account
+ * of the registrar whose index is `index`.
+ *
+ * - `index`: the index of the registrar whose fee is to be set.
+ * - `fields`: the fields that the registrar concerns themselves with.
+ *
+ * # <weight>
+ * - `O(R)`.
+ * - One storage mutation `O(R)`.
+ * - Benchmark: 7.464 + R * 0.325 µs (min squares analysis)
+ * # </weight>
+ **/
+ setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
+ /**
+ * Set an account's identity information and reserve the appropriate deposit.
+ *
+ * If the account already has identity information, the deposit is taken as part payment
+ * for the new deposit.
+ *
+ * The dispatch origin for this call must be _Signed_.
+ *
+ * - `info`: The identity information.
+ *
+ * Emits `IdentitySet` if successful.
+ *
+ * # <weight>
+ * - `O(X + X' + R)`
+ * - where `X` additional-field-count (deposit-bounded and code-bounded)
+ * - where `R` judgements-count (registrar-count-bounded)
+ * - One balance reserve operation.
+ * - One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`).
+ * - One event.
+ * # </weight>
+ **/
+ setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | { additional?: any; display?: any; legal?: any; web?: any; riot?: any; email?: any; pgpFingerprint?: any; image?: any; twitter?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityIdentityInfo]>;
+ /**
+ * Set the sub-accounts of the sender.
+ *
+ * Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned
+ * and an amount `SubAccountDeposit` will be reserved for each item in `subs`.
+ *
+ * The dispatch origin for this call must be _Signed_ and the sender must have a registered
+ * identity.
+ *
+ * - `subs`: The identity's (new) sub-accounts.
+ *
+ * # <weight>
+ * - `O(P + S)`
+ * - where `P` old-subs-count (hard- and deposit-bounded).
+ * - where `S` subs-count (hard- and deposit-bounded).
+ * - At most one balance operations.
+ * - DB:
+ * - `P + S` storage mutations (codec complexity `O(1)`)
+ * - One storage read (codec complexity `O(P)`).
+ * - One storage write (codec complexity `O(S)`).
+ * - One storage-exists (`IdentityOf::contains_key`).
+ * # </weight>
+ **/
+ setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Data]>>]>;
+ /**
+ * Generic tx
+ **/
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
+ };
inflation: {
/**
* This method sets the inflation start date. Can be only called once.
@@ -349,6 +714,13 @@
disable: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
enable: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
+ * Execute a runtime call stored as a preimage.
+ *
+ * `weight_bound` is the maximum weight that the caller is willing
+ * to allow the extrinsic to be executed with.
+ **/
+ executePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array, weightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, SpWeightsWeightV2Weight]>;
+ /**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
@@ -506,337 +878,78 @@
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
- rmrkCore: {
- /**
- * Accept an NFT sent from another account to self or an owned NFT.
- *
- * The NFT in question must be pending, and, thus, be [sent](`Pallet::send`) first.
- *
- * # Permissions:
- * - Token-owner-to-be
- *
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `rmrk_collection_id`: RMRK collection ID of the NFT to be accepted.
- * - `rmrk_nft_id`: ID of the NFT to be accepted.
- * - `new_owner`: Either the sender's account ID or a sender-owned NFT,
- * whichever the accepted NFT was sent to.
- **/
- acceptNft: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple | { AccountId: any } | { CollectionAndNftTuple: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, RmrkTraitsNftAccountIdOrCollectionNftTuple]>;
- /**
- * Accept the addition of a newly created pending resource to an existing NFT.
- *
- * This transaction is needed when a resource is created and assigned to an NFT
- * by a non-owner, i.e. the collection issuer, with one of the
- * [`add_...` transactions](Pallet::add_basic_resource).
- *
- * # Permissions:
- * - Token owner
- *
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `rmrk_collection_id`: RMRK collection ID of the NFT.
- * - `rmrk_nft_id`: ID of the NFT with a pending resource to be accepted.
- * - `resource_id`: ID of the newly created pending resource.
- * accept the addition of a new resource to an existing NFT
- **/
- acceptResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, resourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
- /**
- * Accept the removal of a removal-pending resource from an NFT.
- *
- * This transaction is needed when a non-owner, i.e. the collection issuer,
- * requests a [removal](`Pallet::remove_resource`) of a resource from an NFT.
- *
- * # Permissions:
- * - Token owner
- *
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `rmrk_collection_id`: RMRK collection ID of the NFT.
- * - `rmrk_nft_id`: ID of the NFT with a resource to be removed.
- * - `resource_id`: ID of the removal-pending resource.
- **/
- acceptResourceRemoval: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, resourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
- /**
- * Create and set/propose a basic resource for an NFT.
- *
- * A basic resource is the simplest, lacking a Base and anything that comes with it.
- * See RMRK docs for more information and examples.
- *
- * # Permissions:
- * - Collection issuer - if not the token owner, adding the resource will warrant
- * the owner's [acceptance](Pallet::accept_resource).
- *
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `rmrk_collection_id`: RMRK collection ID of the NFT.
- * - `nft_id`: ID of the NFT to assign a resource to.
- * - `resource`: Data of the resource to be created.
- **/
- addBasicResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resource: RmrkTraitsResourceBasicResource | { src?: any; metadata?: any; license?: any; thumb?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, RmrkTraitsResourceBasicResource]>;
- /**
- * Create and set/propose a composable resource for an NFT.
- *
- * A composable resource links to a Base and has a subset of its Parts it is composed of.
- * See RMRK docs for more information and examples.
- *
- * # Permissions:
- * - Collection issuer - if not the token owner, adding the resource will warrant
- * the owner's [acceptance](Pallet::accept_resource).
- *
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `rmrk_collection_id`: RMRK collection ID of the NFT.
- * - `nft_id`: ID of the NFT to assign a resource to.
- * - `resource`: Data of the resource to be created.
- **/
- addComposableResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resource: RmrkTraitsResourceComposableResource | { parts?: any; base?: any; src?: any; metadata?: any; license?: any; thumb?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, RmrkTraitsResourceComposableResource]>;
+ preimage: {
/**
- * Create and set/propose a slot resource for an NFT.
- *
- * A slot resource links to a Base and a slot ID in it which it can fit into.
- * See RMRK docs for more information and examples.
- *
- * # Permissions:
- * - Collection issuer - if not the token owner, adding the resource will warrant
- * the owner's [acceptance](Pallet::accept_resource).
+ * Register a preimage on-chain.
*
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `rmrk_collection_id`: RMRK collection ID of the NFT.
- * - `nft_id`: ID of the NFT to assign a resource to.
- * - `resource`: Data of the resource to be created.
+ * If the preimage was previously requested, no fees or deposits are taken for providing
+ * the preimage. Otherwise, a deposit is taken proportional to the size of the preimage.
**/
- addSlotResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resource: RmrkTraitsResourceSlotResource | { base?: any; src?: any; metadata?: any; slot?: any; license?: any; thumb?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, RmrkTraitsResourceSlotResource]>;
- /**
- * Burn an NFT, destroying it and its nested tokens up to the specified limit.
- * If the burning budget is exceeded, the transaction is reverted.
- *
- * This is the way to burn a nested token as well.
- *
- * For more information, see [`burn_recursively`](pallet_nonfungible::pallet::Pallet::burn_recursively).
- *
- * # Permissions:
- * * Token owner
- *
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `collection_id`: RMRK ID of the collection in which the NFT to burn belongs to.
- * - `nft_id`: ID of the NFT to be destroyed.
- * - `max_burns`: Maximum number of tokens to burn, assuming nesting. The transaction
- * is reverted if there are more tokens to burn in the nesting tree than this number.
- * This is primarily a mechanism of transaction weight control.
- **/
- burnNft: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, maxBurns: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
+ notePreimage: AugmentedSubmittable<(bytes: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
- * Change the issuer of a collection. Analogous to Unique's collection's [`owner`](up_data_structs::Collection).
+ * Request a preimage be uploaded to the chain without paying any fees or deposits.
*
- * # Permissions:
- * * Collection issuer
- *
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `collection_id`: RMRK collection ID to change the issuer of.
- * - `new_issuer`: Collection's new issuer.
+ * If the preimage requests has already been provided on-chain, we unreserve any deposit
+ * a user may have paid, and take the control of the preimage out of their hands.
**/
- changeCollectionIssuer: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newIssuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;
+ requestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
/**
- * Create a new collection of NFTs.
+ * Clear an unrequested preimage from the runtime storage.
*
- * # Permissions:
- * * Anyone - will be assigned as the issuer of the collection.
+ * If `len` is provided, then it will be a much cheaper operation.
*
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `metadata`: Metadata describing the collection, e.g. IPFS hash. Cannot be changed.
- * - `max`: Optional maximum number of tokens.
- * - `symbol`: UTF-8 string with token prefix, by which to represent the token in wallets and UIs.
- * Analogous to Unique's [`token_prefix`](up_data_structs::Collection). Cannot be changed.
+ * - `hash`: The hash of the preimage to be removed from the store.
+ * - `len`: The length of the preimage of `hash`.
**/
- createCollection: AugmentedSubmittable<(metadata: Bytes | string | Uint8Array, max: Option<u32> | null | Uint8Array | u32 | AnyNumber, symbol: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Option<u32>, Bytes]>;
+ unnotePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
/**
- * Destroy a collection.
- *
- * Only empty collections can be destroyed. If it has any tokens, they must be burned first.
+ * Clear a previously made request for a preimage.
*
- * # Permissions:
- * * Collection issuer
- *
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `collection_id`: RMRK ID of the collection to destroy.
+ * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`.
**/
- destroyCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
- /**
- * "Lock" the collection and prevent new token creation. Cannot be undone.
- *
- * # Permissions:
- * * Collection issuer
- *
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `collection_id`: RMRK ID of the collection to lock.
- **/
- lockCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
- /**
- * Mint an NFT in a specified collection.
- *
- * # Permissions:
- * * Collection issuer
- *
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `owner`: Owner account of the NFT. If set to None, defaults to the sender (collection issuer).
- * - `collection_id`: RMRK collection ID for the NFT to be minted within. Cannot be changed.
- * - `recipient`: Receiver account of the royalty. Has no effect if the `royalty_amount` is not set. Cannot be changed.
- * - `royalty_amount`: Optional permillage reward from each trade for the `recipient`. Cannot be changed.
- * - `metadata`: Arbitrary data about an NFT, e.g. IPFS hash. Cannot be changed.
- * - `transferable`: Can this NFT be transferred? Cannot be changed.
- * - `resources`: Resource data to be added to the NFT immediately after minting.
- **/
- mintNft: AugmentedSubmittable<(owner: Option<AccountId32> | null | Uint8Array | AccountId32 | string, collectionId: u32 | AnyNumber | Uint8Array, recipient: Option<AccountId32> | null | Uint8Array | AccountId32 | string, royaltyAmount: Option<Permill> | null | Uint8Array | Permill | AnyNumber, metadata: Bytes | string | Uint8Array, transferable: bool | boolean | Uint8Array, resources: Option<Vec<RmrkTraitsResourceResourceTypes>> | null | Uint8Array | Vec<RmrkTraitsResourceResourceTypes> | (RmrkTraitsResourceResourceTypes | { Basic: any } | { Composable: any } | { Slot: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<AccountId32>, Option<Permill>, Bytes, bool, Option<Vec<RmrkTraitsResourceResourceTypes>>]>;
- /**
- * Reject an NFT sent from another account to self or owned NFT.
- * The NFT in question will not be sent back and burnt instead.
- *
- * The NFT in question must be pending, and, thus, be [sent](`Pallet::send`) first.
- *
- * # Permissions:
- * - Token-owner-to-be-not
- *
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `rmrk_collection_id`: RMRK ID of the NFT to be rejected.
- * - `rmrk_nft_id`: ID of the NFT to be rejected.
- **/
- rejectNft: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
- /**
- * Remove and erase a resource from an NFT.
- *
- * If the sender does not own the NFT, then it will be pending confirmation,
- * and will have to be [accepted](Pallet::accept_resource_removal) by the token owner.
- *
- * # Permissions
- * - Collection issuer
- *
- * # Arguments
- * - `origin`: sender of the transaction
- * - `rmrk_collection_id`: RMRK ID of a collection to which the NFT making use of the resource belongs to.
- * - `nft_id`: ID of the NFT with a resource to be removed.
- * - `resource_id`: ID of the resource to be removed.
- **/
- removeResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
- /**
- * Transfer an NFT from an account/NFT A to another account/NFT B.
- * The token must be transferable. Nesting cannot occur deeper than the [`NESTING_BUDGET`].
- *
- * If the target owner is an NFT owned by another account, then the NFT will enter
- * the pending state and will have to be accepted by the other account.
- *
- * # Permissions:
- * - Token owner
- *
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `rmrk_collection_id`: RMRK ID of the collection of the NFT to be transferred.
- * - `rmrk_nft_id`: ID of the NFT to be transferred.
- * - `new_owner`: New owner of the nft which can be either an account or a NFT.
- **/
- send: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple | { AccountId: any } | { CollectionAndNftTuple: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, RmrkTraitsNftAccountIdOrCollectionNftTuple]>;
+ unrequestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
/**
- * Set a different order of resource priorities for an NFT. Priorities can be used,
- * for example, for order of rendering.
- *
- * Note that the priorities are not updated automatically, and are an empty vector
- * by default. There is no pre-set definition for the order to be particular,
- * it can be interpreted arbitrarily use-case by use-case.
- *
- * # Permissions:
- * - Token owner
- *
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `rmrk_collection_id`: RMRK collection ID of the NFT.
- * - `rmrk_nft_id`: ID of the NFT to rearrange resource priorities for.
- * - `priorities`: Ordered vector of resource IDs.
- **/
- setPriority: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, priorities: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, u32, Vec<u32>]>;
- /**
- * Add or edit a custom user property, a key-value pair, describing the metadata
- * of a token or a collection, on either one of these.
- *
- * Note that in this proxy implementation many details regarding RMRK are stored
- * as scoped properties prefixed with "rmrk:", normally inaccessible
- * to external transactions and RPCs.
- *
- * # Permissions:
- * - Collection issuer - in case of collection property
- * - Token owner - in case of NFT property
- *
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `rmrk_collection_id`: RMRK collection ID.
- * - `maybe_nft_id`: Optional ID of the NFT. If left empty, then the property is set for the collection.
- * - `key`: Key of the custom property to be referenced by.
- * - `value`: Value of the custom property to be stored.
- **/
- setProperty: AugmentedSubmittable<(rmrkCollectionId: Compact<u32> | AnyNumber | Uint8Array, maybeNftId: Option<u32> | null | Uint8Array | u32 | AnyNumber, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Option<u32>, Bytes, Bytes]>;
- /**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
- rmrkEquip: {
+ session: {
/**
- * Create a new Base.
+ * Removes any session key(s) of the function caller.
*
- * Modeled after the [Base interaction](https://github.com/rmrk-team/rmrk-spec/blob/master/standards/rmrk2.0.0/interactions/base.md)
+ * This doesn't take effect until the next session.
*
- * # Permissions
- * - Anyone - will be assigned as the issuer of the Base.
- *
- * # Arguments:
- * - `origin`: Caller, will be assigned as the issuer of the Base
- * - `base_type`: Arbitrary media type, e.g. "svg".
- * - `symbol`: Arbitrary client-chosen symbol.
- * - `parts`: Array of Fixed and Slot Parts composing the Base,
- * confined in length by [`RmrkPartsLimit`](up_data_structs::RmrkPartsLimit).
- **/
- createBase: AugmentedSubmittable<(baseType: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, parts: Vec<RmrkTraitsPartPartType> | (RmrkTraitsPartPartType | { FixedPart: any } | { SlotPart: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Bytes, Bytes, Vec<RmrkTraitsPartPartType>]>;
- /**
- * Update the array of Collections allowed to be equipped to a Base's specified Slot Part.
- *
- * Modeled after [equippable interaction](https://github.com/rmrk-team/rmrk-spec/blob/master/standards/rmrk2.0.0/interactions/equippable.md).
- *
- * # Permissions:
- * - Base issuer
+ * The dispatch origin of this function must be Signed and the account must be either be
+ * convertible to a validator ID using the chain's typical addressing system (this usually
+ * means being a controller account) or directly convertible into a validator ID (which
+ * usually means being a stash account).
*
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `base_id`: Base containing the Slot Part to be updated.
- * - `slot_id`: Slot Part whose Equippable List is being updated .
- * - `equippables`: List of equippables that will override the current Equippables list.
+ * # <weight>
+ * - Complexity: `O(1)` in number of key types. Actual cost depends on the number of length
+ * of `T::Keys::key_ids()` which is fixed.
+ * - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
+ * - DbWrites: `NextKeys`, `origin account`
+ * - DbWrites per key id: `KeyOwner`
+ * # </weight>
**/
- equippable: AugmentedSubmittable<(baseId: u32 | AnyNumber | Uint8Array, slotId: u32 | AnyNumber | Uint8Array, equippables: RmrkTraitsPartEquippableList | { All: any } | { Empty: any } | { Custom: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, RmrkTraitsPartEquippableList]>;
+ purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
- * Add a Theme to a Base.
- * A Theme named "default" is required prior to adding other Themes.
- *
- * Modeled after [Themeadd interaction](https://github.com/rmrk-team/rmrk-spec/blob/master/standards/rmrk2.0.0/interactions/themeadd.md).
+ * Sets the session key(s) of the function caller to `keys`.
+ * Allows an account to set its session key prior to becoming a validator.
+ * This doesn't take effect until the next session.
*
- * # Permissions:
- * - Base issuer
+ * The dispatch origin of this function must be signed.
*
- * # Arguments:
- * - `origin`: sender of the transaction
- * - `base_id`: Base ID containing the Theme to be updated.
- * - `theme`: Theme to add to the Base. A Theme has a name and properties, which are an
- * array of [key, value, inherit].
- * - `key`: Arbitrary BoundedString, defined by client.
- * - `value`: Arbitrary BoundedString, defined by client.
- * - `inherit`: Optional bool.
+ * # <weight>
+ * - Complexity: `O(1)`. Actual cost depends on the number of length of
+ * `T::Keys::key_ids()` which is fixed.
+ * - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
+ * - DbWrites: `origin account`, `NextKeys`
+ * - DbReads per key id: `KeyOwner`
+ * - DbWrites per key id: `KeyOwner`
+ * # </weight>
**/
- themeAdd: AugmentedSubmittable<(baseId: u32 | AnyNumber | Uint8Array, theme: RmrkTraitsTheme | { name?: any; properties?: any; inherit?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, RmrkTraitsTheme]>;
+ setKeys: AugmentedSubmittable<(keys: OpalRuntimeRuntimeCommonSessionKeys | { aura?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpalRuntimeRuntimeCommonSessionKeys, Bytes]>;
/**
* Generic tx
**/
@@ -1328,6 +1441,10 @@
* * `token_prefix`: Byte string containing the token prefix to mark a collection
* to which a token belongs (limit [`MAX_TOKEN_PREFIX_LENGTH`]).
* * `mode`: Type of items stored in the collection and type dependent data.
+ *
+ * returns collection ID
+ *
+ * Deprecated: `create_collection_ex` is more up-to-date and advanced, prefer it instead.
**/
createCollection: AugmentedSubmittable<(collectionName: Vec<u16> | (u16 | AnyNumber | Uint8Array)[], collectionDescription: Vec<u16> | (u16 | AnyNumber | Uint8Array)[], tokenPrefix: Bytes | string | Uint8Array, mode: UpDataStructsCollectionMode | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<u16>, Vec<u16>, Bytes, UpDataStructsCollectionMode]>;
/**
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, 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, FrameSupportDispatchDispatchClass, FrameSupportDispatchDispatchInfo, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeRuntime, OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls, OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensModuleCall, OrmlTokensModuleError, OrmlTokensModuleEvent, OrmlTokensReserveData, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, OrmlXtokensModuleCall, OrmlXtokensModuleError, OrmlXtokensModuleEvent, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletConfigurationAppPromotionConfiguration, PalletConfigurationCall, PalletConfigurationError, PalletConfigurationEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersEvent, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletEvmMigrationEvent, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletForeignAssetsModuleCall, PalletForeignAssetsModuleError, PalletForeignAssetsModuleEvent, PalletForeignAssetsNativeCurrency, PalletFungibleError, PalletInflationCall, PalletMaintenanceCall, PalletMaintenanceError, PalletMaintenanceEvent, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTestUtilsCall, PalletTestUtilsError, PalletTestUtilsEvent, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletXcmCall, PalletXcmError, PalletXcmEvent, 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, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionValidityInvalidTransaction, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityUnknownTransaction, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, 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, UpDataStructsRpcCollectionFlags, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipStateAccountId32, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo, UpPovEstimateRpcTrieKeyValue, 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, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './default';
+import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, 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, FrameSupportDispatchDispatchClass, FrameSupportDispatchDispatchInfo, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeRuntime, OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls, OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance, OpalRuntimeRuntimeCommonSessionKeys, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensModuleCall, OrmlTokensModuleError, OrmlTokensModuleEvent, OrmlTokensReserveData, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, OrmlXtokensModuleCall, OrmlXtokensModuleError, OrmlXtokensModuleEvent, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletAuthorshipCall, PalletAuthorshipError, PalletAuthorshipUncleEntryItem, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReserveData, PalletCollatorSelectionCall, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletCommonError, PalletCommonEvent, PalletConfigurationAppPromotionConfiguration, PalletConfigurationCall, PalletConfigurationError, PalletConfigurationEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersEvent, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletEvmMigrationEvent, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletForeignAssetsModuleCall, PalletForeignAssetsModuleError, PalletForeignAssetsModuleEvent, PalletForeignAssetsNativeCurrency, PalletFungibleError, PalletIdentityBitFlags, PalletIdentityCall, PalletIdentityError, PalletIdentityEvent, PalletIdentityIdentityField, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletInflationCall, PalletMaintenanceCall, PalletMaintenanceError, PalletMaintenanceEvent, PalletNonfungibleError, PalletNonfungibleItemData, PalletPreimageCall, PalletPreimageError, PalletPreimageEvent, PalletPreimageRequestStatus, PalletRefungibleError, PalletSessionCall, PalletSessionError, PalletSessionEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTestUtilsCall, PalletTestUtilsError, PalletTestUtilsEvent, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletXcmCall, PalletXcmError, PalletXcmEvent, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpArithmeticArithmeticError, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Public, SpCoreSr25519Signature, SpRuntimeBlakeTwo256, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeHeader, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionValidityInvalidTransaction, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityUnknownTransaction, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, 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, UpDataStructsRpcCollectionFlags, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipStateAccountId32, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo, UpPovEstimateRpcTrieKeyValue, 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, XcmVersionedMultiAsset, 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';
@@ -774,6 +774,7 @@
OpalRuntimeRuntime: OpalRuntimeRuntime;
OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls: OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls;
OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance: OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance;
+ OpalRuntimeRuntimeCommonSessionKeys: OpalRuntimeRuntimeCommonSessionKeys;
OpaqueCall: OpaqueCall;
OpaqueKeyOwnershipProof: OpaqueKeyOwnershipProof;
OpaqueMetadata: OpaqueMetadata;
@@ -818,6 +819,9 @@
PalletAppPromotionCall: PalletAppPromotionCall;
PalletAppPromotionError: PalletAppPromotionError;
PalletAppPromotionEvent: PalletAppPromotionEvent;
+ PalletAuthorshipCall: PalletAuthorshipCall;
+ PalletAuthorshipError: PalletAuthorshipError;
+ PalletAuthorshipUncleEntryItem: PalletAuthorshipUncleEntryItem;
PalletBalancesAccountData: PalletBalancesAccountData;
PalletBalancesBalanceLock: PalletBalancesBalanceLock;
PalletBalancesCall: PalletBalancesCall;
@@ -827,6 +831,9 @@
PalletBalancesReserveData: PalletBalancesReserveData;
PalletCallMetadataLatest: PalletCallMetadataLatest;
PalletCallMetadataV14: PalletCallMetadataV14;
+ PalletCollatorSelectionCall: PalletCollatorSelectionCall;
+ PalletCollatorSelectionError: PalletCollatorSelectionError;
+ PalletCollatorSelectionEvent: PalletCollatorSelectionEvent;
PalletCommonError: PalletCommonError;
PalletCommonEvent: PalletCommonEvent;
PalletConfigurationAppPromotionConfiguration: PalletConfigurationAppPromotionConfiguration;
@@ -862,6 +869,15 @@
PalletForeignAssetsNativeCurrency: PalletForeignAssetsNativeCurrency;
PalletFungibleError: PalletFungibleError;
PalletId: PalletId;
+ PalletIdentityBitFlags: PalletIdentityBitFlags;
+ PalletIdentityCall: PalletIdentityCall;
+ PalletIdentityError: PalletIdentityError;
+ PalletIdentityEvent: PalletIdentityEvent;
+ PalletIdentityIdentityField: PalletIdentityIdentityField;
+ PalletIdentityIdentityInfo: PalletIdentityIdentityInfo;
+ PalletIdentityJudgement: PalletIdentityJudgement;
+ PalletIdentityRegistrarInfo: PalletIdentityRegistrarInfo;
+ PalletIdentityRegistration: PalletIdentityRegistration;
PalletInflationCall: PalletInflationCall;
PalletMaintenanceCall: PalletMaintenanceCall;
PalletMaintenanceError: PalletMaintenanceError;
@@ -870,13 +886,14 @@
PalletMetadataV14: PalletMetadataV14;
PalletNonfungibleError: PalletNonfungibleError;
PalletNonfungibleItemData: PalletNonfungibleItemData;
+ PalletPreimageCall: PalletPreimageCall;
+ PalletPreimageError: PalletPreimageError;
+ PalletPreimageEvent: PalletPreimageEvent;
+ PalletPreimageRequestStatus: PalletPreimageRequestStatus;
PalletRefungibleError: PalletRefungibleError;
- PalletRmrkCoreCall: PalletRmrkCoreCall;
- PalletRmrkCoreError: PalletRmrkCoreError;
- PalletRmrkCoreEvent: PalletRmrkCoreEvent;
- PalletRmrkEquipCall: PalletRmrkEquipCall;
- PalletRmrkEquipError: PalletRmrkEquipError;
- PalletRmrkEquipEvent: PalletRmrkEquipEvent;
+ PalletSessionCall: PalletSessionCall;
+ PalletSessionError: PalletSessionError;
+ PalletSessionEvent: PalletSessionEvent;
PalletsOrigin: PalletsOrigin;
PalletStorageMetadataLatest: PalletStorageMetadataLatest;
PalletStorageMetadataV14: PalletStorageMetadataV14;
@@ -1036,24 +1053,6 @@
Retriable: Retriable;
RewardDestination: RewardDestination;
RewardPoint: RewardPoint;
- RmrkTraitsBaseBaseInfo: RmrkTraitsBaseBaseInfo;
- RmrkTraitsCollectionCollectionInfo: RmrkTraitsCollectionCollectionInfo;
- RmrkTraitsNftAccountIdOrCollectionNftTuple: RmrkTraitsNftAccountIdOrCollectionNftTuple;
- RmrkTraitsNftNftChild: RmrkTraitsNftNftChild;
- RmrkTraitsNftNftInfo: RmrkTraitsNftNftInfo;
- RmrkTraitsNftRoyaltyInfo: RmrkTraitsNftRoyaltyInfo;
- RmrkTraitsPartEquippableList: RmrkTraitsPartEquippableList;
- RmrkTraitsPartFixedPart: RmrkTraitsPartFixedPart;
- RmrkTraitsPartPartType: RmrkTraitsPartPartType;
- RmrkTraitsPartSlotPart: RmrkTraitsPartSlotPart;
- RmrkTraitsPropertyPropertyInfo: RmrkTraitsPropertyPropertyInfo;
- RmrkTraitsResourceBasicResource: RmrkTraitsResourceBasicResource;
- RmrkTraitsResourceComposableResource: RmrkTraitsResourceComposableResource;
- RmrkTraitsResourceResourceInfo: RmrkTraitsResourceResourceInfo;
- RmrkTraitsResourceResourceTypes: RmrkTraitsResourceResourceTypes;
- RmrkTraitsResourceSlotResource: RmrkTraitsResourceSlotResource;
- RmrkTraitsTheme: RmrkTraitsTheme;
- RmrkTraitsThemeThemeProperty: RmrkTraitsThemeThemeProperty;
RoundSnapshot: RoundSnapshot;
RoundState: RoundState;
RpcMethods: RpcMethods;
@@ -1176,14 +1175,19 @@
SolutionSupports: SolutionSupports;
SpanIndex: SpanIndex;
SpanRecord: SpanRecord;
+ SpArithmeticArithmeticError: SpArithmeticArithmeticError;
+ SpConsensusAuraSr25519AppSr25519Public: SpConsensusAuraSr25519AppSr25519Public;
+ SpCoreCryptoKeyTypeId: SpCoreCryptoKeyTypeId;
SpCoreEcdsaSignature: SpCoreEcdsaSignature;
SpCoreEd25519Signature: SpCoreEd25519Signature;
+ SpCoreSr25519Public: SpCoreSr25519Public;
SpCoreSr25519Signature: SpCoreSr25519Signature;
SpecVersion: SpecVersion;
- SpRuntimeArithmeticError: SpRuntimeArithmeticError;
+ SpRuntimeBlakeTwo256: SpRuntimeBlakeTwo256;
SpRuntimeDigest: SpRuntimeDigest;
SpRuntimeDigestDigestItem: SpRuntimeDigestDigestItem;
SpRuntimeDispatchError: SpRuntimeDispatchError;
+ SpRuntimeHeader: SpRuntimeHeader;
SpRuntimeModuleError: SpRuntimeModuleError;
SpRuntimeMultiSignature: SpRuntimeMultiSignature;
SpRuntimeTokenError: SpRuntimeTokenError;
tests/src/interfaces/default/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/default/types.ts
+++ b/tests/src/interfaces/default/types.ts
@@ -1,9 +1,10 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
+import type { Data } from '@polkadot/types';
import type { BTreeMap, BTreeSet, Bytes, Compact, Enum, Null, Option, Result, Struct, Text, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
-import type { AccountId32, Call, H160, H256, MultiAddress, Perbill, Permill } from '@polkadot/types/interfaces/runtime';
+import type { AccountId32, Call, H160, H256, MultiAddress, Perbill } from '@polkadot/types/interfaces/runtime';
import type { Event } from '@polkadot/types/interfaces/system';
/** @name CumulusPalletDmpQueueCall */
@@ -441,6 +442,7 @@
readonly isOther: boolean;
readonly asOther: Text;
readonly isInvalidCode: boolean;
+ readonly asInvalidCode: u8;
readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'InvalidCode';
}
@@ -698,6 +700,11 @@
/** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance */
export interface OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance extends Null {}
+/** @name OpalRuntimeRuntimeCommonSessionKeys */
+export interface OpalRuntimeRuntimeCommonSessionKeys extends Struct {
+ readonly aura: SpConsensusAuraSr25519AppSr25519Public;
+}
+
/** @name OrmlTokensAccountData */
export interface OrmlTokensAccountData extends Struct {
readonly free: u128;
@@ -1007,7 +1014,7 @@
readonly asStake: {
readonly amount: u128;
} & Struct;
- readonly isUnstake: boolean;
+ readonly isUnstakeAll: boolean;
readonly isSponsorCollection: boolean;
readonly asSponsorCollection: {
readonly collectionId: u32;
@@ -1028,7 +1035,11 @@
readonly asPayoutStakers: {
readonly stakersNumber: Option<u8>;
} & Struct;
- readonly type: 'SetAdminAddress' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsoringCollection' | 'SponsorContract' | 'StopSponsoringContract' | 'PayoutStakers';
+ readonly isUnstakePartial: boolean;
+ readonly asUnstakePartial: {
+ readonly amount: u128;
+ } & Struct;
+ readonly type: 'SetAdminAddress' | 'Stake' | 'UnstakeAll' | 'SponsorCollection' | 'StopSponsoringCollection' | 'SponsorContract' | 'StopSponsoringContract' | 'PayoutStakers' | 'UnstakePartial';
}
/** @name PalletAppPromotionError */
@@ -1039,7 +1050,8 @@
readonly isPendingForBlockOverflow: boolean;
readonly isSponsorNotSet: boolean;
readonly isIncorrectLockedBalanceOperation: boolean;
- readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFunds' | 'PendingForBlockOverflow' | 'SponsorNotSet' | 'IncorrectLockedBalanceOperation';
+ readonly isInsufficientStakedBalance: boolean;
+ readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFunds' | 'PendingForBlockOverflow' | 'SponsorNotSet' | 'IncorrectLockedBalanceOperation' | 'InsufficientStakedBalance';
}
/** @name PalletAppPromotionEvent */
@@ -1055,6 +1067,36 @@
readonly type: 'StakingRecalculation' | 'Stake' | 'Unstake' | 'SetAdmin';
}
+/** @name PalletAuthorshipCall */
+export interface PalletAuthorshipCall extends Enum {
+ readonly isSetUncles: boolean;
+ readonly asSetUncles: {
+ readonly newUncles: Vec<SpRuntimeHeader>;
+ } & Struct;
+ readonly type: 'SetUncles';
+}
+
+/** @name PalletAuthorshipError */
+export interface PalletAuthorshipError extends Enum {
+ readonly isInvalidUncleParent: boolean;
+ readonly isUnclesAlreadySet: boolean;
+ readonly isTooManyUncles: boolean;
+ readonly isGenesisUncle: boolean;
+ readonly isTooHighUncle: boolean;
+ readonly isUncleAlreadyIncluded: boolean;
+ readonly isOldUncle: boolean;
+ readonly type: 'InvalidUncleParent' | 'UnclesAlreadySet' | 'TooManyUncles' | 'GenesisUncle' | 'TooHighUncle' | 'UncleAlreadyIncluded' | 'OldUncle';
+}
+
+/** @name PalletAuthorshipUncleEntryItem */
+export interface PalletAuthorshipUncleEntryItem extends Enum {
+ readonly isInclusionHeight: boolean;
+ readonly asInclusionHeight: u32;
+ readonly isUncle: boolean;
+ readonly asUncle: ITuple<[H256, Option<AccountId32>]>;
+ readonly type: 'InclusionHeight' | 'Uncle';
+}
+
/** @name PalletBalancesAccountData */
export interface PalletBalancesAccountData extends Struct {
readonly free: u128;
@@ -1193,6 +1235,76 @@
readonly amount: u128;
}
+/** @name PalletCollatorSelectionCall */
+export interface PalletCollatorSelectionCall extends Enum {
+ readonly isAddInvulnerable: boolean;
+ readonly asAddInvulnerable: {
+ readonly new_: AccountId32;
+ } & Struct;
+ readonly isRemoveInvulnerable: boolean;
+ readonly asRemoveInvulnerable: {
+ readonly who: AccountId32;
+ } & Struct;
+ readonly isGetLicense: boolean;
+ readonly isOnboard: boolean;
+ readonly isOffboard: boolean;
+ readonly isReleaseLicense: boolean;
+ readonly isForceReleaseLicense: boolean;
+ readonly asForceReleaseLicense: {
+ readonly who: AccountId32;
+ } & Struct;
+ readonly type: 'AddInvulnerable' | 'RemoveInvulnerable' | 'GetLicense' | 'Onboard' | 'Offboard' | 'ReleaseLicense' | 'ForceReleaseLicense';
+}
+
+/** @name PalletCollatorSelectionError */
+export interface PalletCollatorSelectionError extends Enum {
+ readonly isTooManyCandidates: boolean;
+ readonly isUnknown: boolean;
+ readonly isPermission: boolean;
+ readonly isAlreadyHoldingLicense: boolean;
+ readonly isNoLicense: boolean;
+ readonly isAlreadyCandidate: boolean;
+ readonly isNotCandidate: boolean;
+ readonly isTooManyInvulnerables: boolean;
+ readonly isTooFewInvulnerables: boolean;
+ readonly isAlreadyInvulnerable: boolean;
+ readonly isNotInvulnerable: boolean;
+ readonly isNoAssociatedValidatorId: boolean;
+ readonly isValidatorNotRegistered: boolean;
+ readonly type: 'TooManyCandidates' | 'Unknown' | 'Permission' | 'AlreadyHoldingLicense' | 'NoLicense' | 'AlreadyCandidate' | 'NotCandidate' | 'TooManyInvulnerables' | 'TooFewInvulnerables' | 'AlreadyInvulnerable' | 'NotInvulnerable' | 'NoAssociatedValidatorId' | 'ValidatorNotRegistered';
+}
+
+/** @name PalletCollatorSelectionEvent */
+export interface PalletCollatorSelectionEvent extends Enum {
+ readonly isInvulnerableAdded: boolean;
+ readonly asInvulnerableAdded: {
+ readonly invulnerable: AccountId32;
+ } & Struct;
+ readonly isInvulnerableRemoved: boolean;
+ readonly asInvulnerableRemoved: {
+ readonly invulnerable: AccountId32;
+ } & Struct;
+ readonly isLicenseObtained: boolean;
+ readonly asLicenseObtained: {
+ readonly accountId: AccountId32;
+ readonly deposit: u128;
+ } & Struct;
+ readonly isLicenseReleased: boolean;
+ readonly asLicenseReleased: {
+ readonly accountId: AccountId32;
+ readonly depositReturned: u128;
+ } & Struct;
+ readonly isCandidateAdded: boolean;
+ readonly asCandidateAdded: {
+ readonly accountId: AccountId32;
+ } & Struct;
+ readonly isCandidateRemoved: boolean;
+ readonly asCandidateRemoved: {
+ readonly accountId: AccountId32;
+ } & Struct;
+ readonly type: 'InvulnerableAdded' | 'InvulnerableRemoved' | 'LicenseObtained' | 'LicenseReleased' | 'CandidateAdded' | 'CandidateRemoved';
+}
+
/** @name PalletCommonError */
export interface PalletCommonError extends Enum {
readonly isCollectionNotFound: boolean;
@@ -1532,7 +1644,8 @@
readonly asInsertEvents: {
readonly events: Vec<Bytes>;
} & Struct;
- readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents';
+ readonly isRemoveRmrkData: boolean;
+ readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents' | 'RemoveRmrkData';
}
/** @name PalletEvmMigrationError */
@@ -1638,6 +1751,243 @@
readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed' | 'FungibleTokensAreAlwaysValid';
}
+/** @name PalletIdentityBitFlags */
+export interface PalletIdentityBitFlags extends Struct {
+ readonly _bitLength: 64;
+ readonly Display: 1;
+ readonly Legal: 2;
+ readonly Web: 4;
+ readonly Riot: 8;
+ readonly Email: 16;
+ readonly PgpFingerprint: 32;
+ readonly Image: 64;
+ readonly Twitter: 128;
+}
+
+/** @name PalletIdentityCall */
+export interface PalletIdentityCall extends Enum {
+ readonly isAddRegistrar: boolean;
+ readonly asAddRegistrar: {
+ readonly account: MultiAddress;
+ } & Struct;
+ readonly isSetIdentity: boolean;
+ readonly asSetIdentity: {
+ readonly info: PalletIdentityIdentityInfo;
+ } & Struct;
+ readonly isSetSubs: boolean;
+ readonly asSetSubs: {
+ readonly subs: Vec<ITuple<[AccountId32, Data]>>;
+ } & Struct;
+ readonly isClearIdentity: boolean;
+ readonly isRequestJudgement: boolean;
+ readonly asRequestJudgement: {
+ readonly regIndex: Compact<u32>;
+ readonly maxFee: Compact<u128>;
+ } & Struct;
+ readonly isCancelRequest: boolean;
+ readonly asCancelRequest: {
+ readonly regIndex: u32;
+ } & Struct;
+ readonly isSetFee: boolean;
+ readonly asSetFee: {
+ readonly index: Compact<u32>;
+ readonly fee: Compact<u128>;
+ } & Struct;
+ readonly isSetAccountId: boolean;
+ readonly asSetAccountId: {
+ readonly index: Compact<u32>;
+ readonly new_: MultiAddress;
+ } & Struct;
+ readonly isSetFields: boolean;
+ readonly asSetFields: {
+ readonly index: Compact<u32>;
+ readonly fields: PalletIdentityBitFlags;
+ } & Struct;
+ readonly isProvideJudgement: boolean;
+ readonly asProvideJudgement: {
+ readonly regIndex: Compact<u32>;
+ readonly target: MultiAddress;
+ readonly judgement: PalletIdentityJudgement;
+ readonly identity: H256;
+ } & Struct;
+ readonly isKillIdentity: boolean;
+ readonly asKillIdentity: {
+ readonly target: MultiAddress;
+ } & Struct;
+ readonly isAddSub: boolean;
+ readonly asAddSub: {
+ readonly sub: MultiAddress;
+ readonly data: Data;
+ } & Struct;
+ readonly isRenameSub: boolean;
+ readonly asRenameSub: {
+ readonly sub: MultiAddress;
+ readonly data: Data;
+ } & Struct;
+ readonly isRemoveSub: boolean;
+ readonly asRemoveSub: {
+ readonly sub: MultiAddress;
+ } & Struct;
+ readonly isQuitSub: boolean;
+ readonly isForceInsertIdentities: boolean;
+ readonly asForceInsertIdentities: {
+ readonly identities: Vec<ITuple<[AccountId32, PalletIdentityRegistration]>>;
+ } & Struct;
+ readonly isForceRemoveIdentities: boolean;
+ readonly asForceRemoveIdentities: {
+ readonly identities: Vec<AccountId32>;
+ } & Struct;
+ readonly isForceSetSubs: boolean;
+ readonly asForceSetSubs: {
+ readonly subs: Vec<ITuple<[AccountId32, ITuple<[u128, Vec<ITuple<[AccountId32, Data]>>]>]>>;
+ } & Struct;
+ readonly type: 'AddRegistrar' | 'SetIdentity' | 'SetSubs' | 'ClearIdentity' | 'RequestJudgement' | 'CancelRequest' | 'SetFee' | 'SetAccountId' | 'SetFields' | 'ProvideJudgement' | 'KillIdentity' | 'AddSub' | 'RenameSub' | 'RemoveSub' | 'QuitSub' | 'ForceInsertIdentities' | 'ForceRemoveIdentities' | 'ForceSetSubs';
+}
+
+/** @name PalletIdentityError */
+export interface PalletIdentityError extends Enum {
+ readonly isTooManySubAccounts: boolean;
+ readonly isNotFound: boolean;
+ readonly isNotNamed: boolean;
+ readonly isEmptyIndex: boolean;
+ readonly isFeeChanged: boolean;
+ readonly isNoIdentity: boolean;
+ readonly isStickyJudgement: boolean;
+ readonly isJudgementGiven: boolean;
+ readonly isInvalidJudgement: boolean;
+ readonly isInvalidIndex: boolean;
+ readonly isInvalidTarget: boolean;
+ readonly isTooManyFields: boolean;
+ readonly isTooManyRegistrars: boolean;
+ readonly isAlreadyClaimed: boolean;
+ readonly isNotSub: boolean;
+ readonly isNotOwned: boolean;
+ readonly isJudgementForDifferentIdentity: boolean;
+ readonly isJudgementPaymentFailed: boolean;
+ readonly type: 'TooManySubAccounts' | 'NotFound' | 'NotNamed' | 'EmptyIndex' | 'FeeChanged' | 'NoIdentity' | 'StickyJudgement' | 'JudgementGiven' | 'InvalidJudgement' | 'InvalidIndex' | 'InvalidTarget' | 'TooManyFields' | 'TooManyRegistrars' | 'AlreadyClaimed' | 'NotSub' | 'NotOwned' | 'JudgementForDifferentIdentity' | 'JudgementPaymentFailed';
+}
+
+/** @name PalletIdentityEvent */
+export interface PalletIdentityEvent extends Enum {
+ readonly isIdentitySet: boolean;
+ readonly asIdentitySet: {
+ readonly who: AccountId32;
+ } & Struct;
+ readonly isIdentityCleared: boolean;
+ readonly asIdentityCleared: {
+ readonly who: AccountId32;
+ readonly deposit: u128;
+ } & Struct;
+ readonly isIdentityKilled: boolean;
+ readonly asIdentityKilled: {
+ readonly who: AccountId32;
+ readonly deposit: u128;
+ } & Struct;
+ readonly isIdentitiesInserted: boolean;
+ readonly asIdentitiesInserted: {
+ readonly amount: u32;
+ } & Struct;
+ readonly isIdentitiesRemoved: boolean;
+ readonly asIdentitiesRemoved: {
+ readonly amount: u32;
+ } & Struct;
+ readonly isJudgementRequested: boolean;
+ readonly asJudgementRequested: {
+ readonly who: AccountId32;
+ readonly registrarIndex: u32;
+ } & Struct;
+ readonly isJudgementUnrequested: boolean;
+ readonly asJudgementUnrequested: {
+ readonly who: AccountId32;
+ readonly registrarIndex: u32;
+ } & Struct;
+ readonly isJudgementGiven: boolean;
+ readonly asJudgementGiven: {
+ readonly target: AccountId32;
+ readonly registrarIndex: u32;
+ } & Struct;
+ readonly isRegistrarAdded: boolean;
+ readonly asRegistrarAdded: {
+ readonly registrarIndex: u32;
+ } & Struct;
+ readonly isSubIdentityAdded: boolean;
+ readonly asSubIdentityAdded: {
+ readonly sub: AccountId32;
+ readonly main: AccountId32;
+ readonly deposit: u128;
+ } & Struct;
+ readonly isSubIdentityRemoved: boolean;
+ readonly asSubIdentityRemoved: {
+ readonly sub: AccountId32;
+ readonly main: AccountId32;
+ readonly deposit: u128;
+ } & Struct;
+ readonly isSubIdentityRevoked: boolean;
+ readonly asSubIdentityRevoked: {
+ readonly sub: AccountId32;
+ readonly main: AccountId32;
+ readonly deposit: u128;
+ } & Struct;
+ readonly isSubIdentitiesInserted: boolean;
+ readonly asSubIdentitiesInserted: {
+ readonly amount: u32;
+ } & Struct;
+ readonly type: 'IdentitySet' | 'IdentityCleared' | 'IdentityKilled' | 'IdentitiesInserted' | 'IdentitiesRemoved' | 'JudgementRequested' | 'JudgementUnrequested' | 'JudgementGiven' | 'RegistrarAdded' | 'SubIdentityAdded' | 'SubIdentityRemoved' | 'SubIdentityRevoked' | 'SubIdentitiesInserted';
+}
+
+/** @name PalletIdentityIdentityField */
+export interface PalletIdentityIdentityField extends Enum {
+ readonly isDisplay: boolean;
+ readonly isLegal: boolean;
+ readonly isWeb: boolean;
+ readonly isRiot: boolean;
+ readonly isEmail: boolean;
+ readonly isPgpFingerprint: boolean;
+ readonly isImage: boolean;
+ readonly isTwitter: boolean;
+ readonly type: 'Display' | 'Legal' | 'Web' | 'Riot' | 'Email' | 'PgpFingerprint' | 'Image' | 'Twitter';
+}
+
+/** @name PalletIdentityIdentityInfo */
+export interface PalletIdentityIdentityInfo extends Struct {
+ readonly additional: Vec<ITuple<[Data, Data]>>;
+ readonly display: Data;
+ readonly legal: Data;
+ readonly web: Data;
+ readonly riot: Data;
+ readonly email: Data;
+ readonly pgpFingerprint: Option<U8aFixed>;
+ readonly image: Data;
+ readonly twitter: Data;
+}
+
+/** @name PalletIdentityJudgement */
+export interface PalletIdentityJudgement extends Enum {
+ readonly isUnknown: boolean;
+ readonly isFeePaid: boolean;
+ readonly asFeePaid: u128;
+ readonly isReasonable: boolean;
+ readonly isKnownGood: boolean;
+ readonly isOutOfDate: boolean;
+ readonly isLowQuality: boolean;
+ readonly isErroneous: boolean;
+ readonly type: 'Unknown' | 'FeePaid' | 'Reasonable' | 'KnownGood' | 'OutOfDate' | 'LowQuality' | 'Erroneous';
+}
+
+/** @name PalletIdentityRegistrarInfo */
+export interface PalletIdentityRegistrarInfo extends Struct {
+ readonly account: AccountId32;
+ readonly fee: u128;
+ readonly fields: PalletIdentityBitFlags;
+}
+
+/** @name PalletIdentityRegistration */
+export interface PalletIdentityRegistration extends Struct {
+ readonly judgements: Vec<ITuple<[u32, PalletIdentityJudgement]>>;
+ readonly deposit: u128;
+ readonly info: PalletIdentityIdentityInfo;
+}
+
/** @name PalletInflationCall */
export interface PalletInflationCall extends Enum {
readonly isStartInflation: boolean;
@@ -1651,7 +2001,12 @@
export interface PalletMaintenanceCall extends Enum {
readonly isEnable: boolean;
readonly isDisable: boolean;
- readonly type: 'Enable' | 'Disable';
+ readonly isExecutePreimage: boolean;
+ readonly asExecutePreimage: {
+ readonly hash_: H256;
+ readonly weightBound: SpWeightsWeightV2Weight;
+ } & Struct;
+ readonly type: 'Enable' | 'Disable' | 'ExecutePreimage';
}
/** @name PalletMaintenanceError */
@@ -1677,283 +2032,109 @@
readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
}
-/** @name PalletRefungibleError */
-export interface PalletRefungibleError extends Enum {
- readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;
- readonly isWrongRefungiblePieces: boolean;
- readonly isRepartitionWhileNotOwningAllPieces: boolean;
- readonly isRefungibleDisallowsNesting: boolean;
- readonly isSettingPropertiesNotAllowed: boolean;
- readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
-}
-
-/** @name PalletRmrkCoreCall */
-export interface PalletRmrkCoreCall extends Enum {
- readonly isCreateCollection: boolean;
- readonly asCreateCollection: {
- readonly metadata: Bytes;
- readonly max: Option<u32>;
- readonly symbol: Bytes;
+/** @name PalletPreimageCall */
+export interface PalletPreimageCall extends Enum {
+ readonly isNotePreimage: boolean;
+ readonly asNotePreimage: {
+ readonly bytes: Bytes;
} & Struct;
- readonly isDestroyCollection: boolean;
- readonly asDestroyCollection: {
- readonly collectionId: u32;
+ readonly isUnnotePreimage: boolean;
+ readonly asUnnotePreimage: {
+ readonly hash_: H256;
} & Struct;
- readonly isChangeCollectionIssuer: boolean;
- readonly asChangeCollectionIssuer: {
- readonly collectionId: u32;
- readonly newIssuer: MultiAddress;
+ readonly isRequestPreimage: boolean;
+ readonly asRequestPreimage: {
+ readonly hash_: H256;
} & Struct;
- readonly isLockCollection: boolean;
- readonly asLockCollection: {
- readonly collectionId: u32;
+ readonly isUnrequestPreimage: boolean;
+ readonly asUnrequestPreimage: {
+ readonly hash_: H256;
} & Struct;
- readonly isMintNft: boolean;
- readonly asMintNft: {
- readonly owner: Option<AccountId32>;
- readonly collectionId: u32;
- readonly recipient: Option<AccountId32>;
- readonly royaltyAmount: Option<Permill>;
- readonly metadata: Bytes;
- readonly transferable: bool;
- readonly resources: Option<Vec<RmrkTraitsResourceResourceTypes>>;
- } & Struct;
- readonly isBurnNft: boolean;
- readonly asBurnNft: {
- readonly collectionId: u32;
- readonly nftId: u32;
- readonly maxBurns: u32;
- } & Struct;
- readonly isSend: boolean;
- readonly asSend: {
- readonly rmrkCollectionId: u32;
- readonly rmrkNftId: u32;
- readonly newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple;
- } & Struct;
- readonly isAcceptNft: boolean;
- readonly asAcceptNft: {
- readonly rmrkCollectionId: u32;
- readonly rmrkNftId: u32;
- readonly newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple;
- } & Struct;
- readonly isRejectNft: boolean;
- readonly asRejectNft: {
- readonly rmrkCollectionId: u32;
- readonly rmrkNftId: u32;
- } & Struct;
- readonly isAcceptResource: boolean;
- readonly asAcceptResource: {
- readonly rmrkCollectionId: u32;
- readonly rmrkNftId: u32;
- readonly resourceId: u32;
- } & Struct;
- readonly isAcceptResourceRemoval: boolean;
- readonly asAcceptResourceRemoval: {
- readonly rmrkCollectionId: u32;
- readonly rmrkNftId: u32;
- readonly resourceId: u32;
- } & Struct;
- readonly isSetProperty: boolean;
- readonly asSetProperty: {
- readonly rmrkCollectionId: Compact<u32>;
- readonly maybeNftId: Option<u32>;
- readonly key: Bytes;
- readonly value: Bytes;
- } & Struct;
- readonly isSetPriority: boolean;
- readonly asSetPriority: {
- readonly rmrkCollectionId: u32;
- readonly rmrkNftId: u32;
- readonly priorities: Vec<u32>;
- } & Struct;
- readonly isAddBasicResource: boolean;
- readonly asAddBasicResource: {
- readonly rmrkCollectionId: u32;
- readonly nftId: u32;
- readonly resource: RmrkTraitsResourceBasicResource;
- } & Struct;
- readonly isAddComposableResource: boolean;
- readonly asAddComposableResource: {
- readonly rmrkCollectionId: u32;
- readonly nftId: u32;
- readonly resource: RmrkTraitsResourceComposableResource;
- } & Struct;
- readonly isAddSlotResource: boolean;
- readonly asAddSlotResource: {
- readonly rmrkCollectionId: u32;
- readonly nftId: u32;
- readonly resource: RmrkTraitsResourceSlotResource;
- } & Struct;
- readonly isRemoveResource: boolean;
- readonly asRemoveResource: {
- readonly rmrkCollectionId: u32;
- readonly nftId: u32;
- readonly resourceId: u32;
- } & Struct;
- readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';
+ readonly type: 'NotePreimage' | 'UnnotePreimage' | 'RequestPreimage' | 'UnrequestPreimage';
}
-/** @name PalletRmrkCoreError */
-export interface PalletRmrkCoreError extends Enum {
- readonly isCorruptedCollectionType: boolean;
- readonly isRmrkPropertyKeyIsTooLong: boolean;
- readonly isRmrkPropertyValueIsTooLong: boolean;
- readonly isRmrkPropertyIsNotFound: boolean;
- readonly isUnableToDecodeRmrkData: boolean;
- readonly isCollectionNotEmpty: boolean;
- readonly isNoAvailableCollectionId: boolean;
- readonly isNoAvailableNftId: boolean;
- readonly isCollectionUnknown: boolean;
- readonly isNoPermission: boolean;
- readonly isNonTransferable: boolean;
- readonly isCollectionFullOrLocked: boolean;
- readonly isResourceDoesntExist: boolean;
- readonly isCannotSendToDescendentOrSelf: boolean;
- readonly isCannotAcceptNonOwnedNft: boolean;
- readonly isCannotRejectNonOwnedNft: boolean;
- readonly isCannotRejectNonPendingNft: boolean;
- readonly isResourceNotPending: boolean;
- readonly isNoAvailableResourceId: boolean;
- readonly type: 'CorruptedCollectionType' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';
+/** @name PalletPreimageError */
+export interface PalletPreimageError extends Enum {
+ readonly isTooBig: boolean;
+ readonly isAlreadyNoted: boolean;
+ readonly isNotAuthorized: boolean;
+ readonly isNotNoted: boolean;
+ readonly isRequested: boolean;
+ readonly isNotRequested: boolean;
+ readonly type: 'TooBig' | 'AlreadyNoted' | 'NotAuthorized' | 'NotNoted' | 'Requested' | 'NotRequested';
}
-/** @name PalletRmrkCoreEvent */
-export interface PalletRmrkCoreEvent extends Enum {
- readonly isCollectionCreated: boolean;
- readonly asCollectionCreated: {
- readonly issuer: AccountId32;
- readonly collectionId: u32;
+/** @name PalletPreimageEvent */
+export interface PalletPreimageEvent extends Enum {
+ readonly isNoted: boolean;
+ readonly asNoted: {
+ readonly hash_: H256;
} & Struct;
- readonly isCollectionDestroyed: boolean;
- readonly asCollectionDestroyed: {
- readonly issuer: AccountId32;
- readonly collectionId: u32;
+ readonly isRequested: boolean;
+ readonly asRequested: {
+ readonly hash_: H256;
} & Struct;
- readonly isIssuerChanged: boolean;
- readonly asIssuerChanged: {
- readonly oldIssuer: AccountId32;
- readonly newIssuer: AccountId32;
- readonly collectionId: u32;
+ readonly isCleared: boolean;
+ readonly asCleared: {
+ readonly hash_: H256;
} & Struct;
- readonly isCollectionLocked: boolean;
- readonly asCollectionLocked: {
- readonly issuer: AccountId32;
- readonly collectionId: u32;
+ readonly type: 'Noted' | 'Requested' | 'Cleared';
+}
+
+/** @name PalletPreimageRequestStatus */
+export interface PalletPreimageRequestStatus extends Enum {
+ readonly isUnrequested: boolean;
+ readonly asUnrequested: {
+ readonly deposit: ITuple<[AccountId32, u128]>;
+ readonly len: u32;
} & Struct;
- readonly isNftMinted: boolean;
- readonly asNftMinted: {
- readonly owner: AccountId32;
- readonly collectionId: u32;
- readonly nftId: u32;
+ readonly isRequested: boolean;
+ readonly asRequested: {
+ readonly deposit: Option<ITuple<[AccountId32, u128]>>;
+ readonly count: u32;
+ readonly len: Option<u32>;
} & Struct;
- readonly isNftBurned: boolean;
- readonly asNftBurned: {
- readonly owner: AccountId32;
- readonly nftId: u32;
- } & Struct;
- readonly isNftSent: boolean;
- readonly asNftSent: {
- readonly sender: AccountId32;
- readonly recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple;
- readonly collectionId: u32;
- readonly nftId: u32;
- readonly approvalRequired: bool;
- } & Struct;
- readonly isNftAccepted: boolean;
- readonly asNftAccepted: {
- readonly sender: AccountId32;
- readonly recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple;
- readonly collectionId: u32;
- readonly nftId: u32;
- } & Struct;
- readonly isNftRejected: boolean;
- readonly asNftRejected: {
- readonly sender: AccountId32;
- readonly collectionId: u32;
- readonly nftId: u32;
- } & Struct;
- readonly isPropertySet: boolean;
- readonly asPropertySet: {
- readonly collectionId: u32;
- readonly maybeNftId: Option<u32>;
- readonly key: Bytes;
- readonly value: Bytes;
- } & Struct;
- readonly isResourceAdded: boolean;
- readonly asResourceAdded: {
- readonly nftId: u32;
- readonly resourceId: u32;
- } & Struct;
- readonly isResourceRemoval: boolean;
- readonly asResourceRemoval: {
- readonly nftId: u32;
- readonly resourceId: u32;
- } & Struct;
- readonly isResourceAccepted: boolean;
- readonly asResourceAccepted: {
- readonly nftId: u32;
- readonly resourceId: u32;
- } & Struct;
- readonly isResourceRemovalAccepted: boolean;
- readonly asResourceRemovalAccepted: {
- readonly nftId: u32;
- readonly resourceId: u32;
- } & Struct;
- readonly isPrioritySet: boolean;
- readonly asPrioritySet: {
- readonly collectionId: u32;
- readonly nftId: u32;
- } & Struct;
- readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'IssuerChanged' | 'CollectionLocked' | 'NftMinted' | 'NftBurned' | 'NftSent' | 'NftAccepted' | 'NftRejected' | 'PropertySet' | 'ResourceAdded' | 'ResourceRemoval' | 'ResourceAccepted' | 'ResourceRemovalAccepted' | 'PrioritySet';
+ readonly type: 'Unrequested' | 'Requested';
+}
+
+/** @name PalletRefungibleError */
+export interface PalletRefungibleError extends Enum {
+ readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;
+ readonly isWrongRefungiblePieces: boolean;
+ readonly isRepartitionWhileNotOwningAllPieces: boolean;
+ readonly isRefungibleDisallowsNesting: boolean;
+ readonly isSettingPropertiesNotAllowed: boolean;
+ readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
}
-/** @name PalletRmrkEquipCall */
-export interface PalletRmrkEquipCall extends Enum {
- readonly isCreateBase: boolean;
- readonly asCreateBase: {
- readonly baseType: Bytes;
- readonly symbol: Bytes;
- readonly parts: Vec<RmrkTraitsPartPartType>;
+/** @name PalletSessionCall */
+export interface PalletSessionCall extends Enum {
+ readonly isSetKeys: boolean;
+ readonly asSetKeys: {
+ readonly keys_: OpalRuntimeRuntimeCommonSessionKeys;
+ readonly proof: Bytes;
} & Struct;
- readonly isThemeAdd: boolean;
- readonly asThemeAdd: {
- readonly baseId: u32;
- readonly theme: RmrkTraitsTheme;
- } & Struct;
- readonly isEquippable: boolean;
- readonly asEquippable: {
- readonly baseId: u32;
- readonly slotId: u32;
- readonly equippables: RmrkTraitsPartEquippableList;
- } & Struct;
- readonly type: 'CreateBase' | 'ThemeAdd' | 'Equippable';
+ readonly isPurgeKeys: boolean;
+ readonly type: 'SetKeys' | 'PurgeKeys';
}
-/** @name PalletRmrkEquipError */
-export interface PalletRmrkEquipError extends Enum {
- readonly isPermissionError: boolean;
- readonly isNoAvailableBaseId: boolean;
- readonly isNoAvailablePartId: boolean;
- readonly isBaseDoesntExist: boolean;
- readonly isNeedsDefaultThemeFirst: boolean;
- readonly isPartDoesntExist: boolean;
- readonly isNoEquippableOnFixedPart: boolean;
- readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';
+/** @name PalletSessionError */
+export interface PalletSessionError extends Enum {
+ readonly isInvalidProof: boolean;
+ readonly isNoAssociatedValidatorId: boolean;
+ readonly isDuplicatedKey: boolean;
+ readonly isNoKeys: boolean;
+ readonly isNoAccount: boolean;
+ readonly type: 'InvalidProof' | 'NoAssociatedValidatorId' | 'DuplicatedKey' | 'NoKeys' | 'NoAccount';
}
-/** @name PalletRmrkEquipEvent */
-export interface PalletRmrkEquipEvent extends Enum {
- readonly isBaseCreated: boolean;
- readonly asBaseCreated: {
- readonly issuer: AccountId32;
- readonly baseId: u32;
+/** @name PalletSessionEvent */
+export interface PalletSessionEvent extends Enum {
+ readonly isNewSession: boolean;
+ readonly asNewSession: {
+ readonly sessionIndex: u32;
} & Struct;
- readonly isEquippablesUpdated: boolean;
- readonly asEquippablesUpdated: {
- readonly baseId: u32;
- readonly slotId: u32;
- } & Struct;
- readonly type: 'BaseCreated' | 'EquippablesUpdated';
+ readonly type: 'NewSession';
}
/** @name PalletStructureCall */
@@ -1965,7 +2146,8 @@
readonly isDepthLimit: boolean;
readonly isBreadthLimit: boolean;
readonly isTokenNotFound: boolean;
- readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';
+ readonly isCantNestTokenUnderCollection: boolean;
+ readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound' | 'CantNestTokenUnderCollection';
}
/** @name PalletStructureEvent */
@@ -2165,7 +2347,12 @@
readonly amount: u128;
readonly beneficiary: AccountId32;
} & Struct;
- readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit' | 'SpendApproved';
+ readonly isUpdatedInactive: boolean;
+ readonly asUpdatedInactive: {
+ readonly reactivated: u128;
+ readonly deactivated: u128;
+ } & Struct;
+ readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit' | 'SpendApproved' | 'UpdatedInactive';
}
/** @name PalletTreasuryProposal */
@@ -2485,7 +2672,7 @@
}
/** @name PhantomTypeUpDataStructs */
-export interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild, UpPovEstimateRpcPovInfo]>> {}
+export interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, UpPovEstimateRpcPovInfo]>> {}
/** @name PolkadotCorePrimitivesInboundDownwardMessage */
export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
@@ -2550,150 +2737,19 @@
readonly type: 'Present';
}
-/** @name RmrkTraitsBaseBaseInfo */
-export interface RmrkTraitsBaseBaseInfo extends Struct {
- readonly issuer: AccountId32;
- readonly baseType: Bytes;
- readonly symbol: Bytes;
+/** @name SpArithmeticArithmeticError */
+export interface SpArithmeticArithmeticError extends Enum {
+ readonly isUnderflow: boolean;
+ readonly isOverflow: boolean;
+ readonly isDivisionByZero: boolean;
+ readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';
}
-/** @name RmrkTraitsCollectionCollectionInfo */
-export interface RmrkTraitsCollectionCollectionInfo extends Struct {
- readonly issuer: AccountId32;
- readonly metadata: Bytes;
- readonly max: Option<u32>;
- readonly symbol: Bytes;
- readonly nftsCount: u32;
-}
+/** @name SpConsensusAuraSr25519AppSr25519Public */
+export interface SpConsensusAuraSr25519AppSr25519Public extends SpCoreSr25519Public {}
-/** @name RmrkTraitsNftAccountIdOrCollectionNftTuple */
-export interface RmrkTraitsNftAccountIdOrCollectionNftTuple extends Enum {
- readonly isAccountId: boolean;
- readonly asAccountId: AccountId32;
- readonly isCollectionAndNftTuple: boolean;
- readonly asCollectionAndNftTuple: ITuple<[u32, u32]>;
- readonly type: 'AccountId' | 'CollectionAndNftTuple';
-}
-
-/** @name RmrkTraitsNftNftChild */
-export interface RmrkTraitsNftNftChild extends Struct {
- readonly collectionId: u32;
- readonly nftId: u32;
-}
-
-/** @name RmrkTraitsNftNftInfo */
-export interface RmrkTraitsNftNftInfo extends Struct {
- readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple;
- readonly royalty: Option<RmrkTraitsNftRoyaltyInfo>;
- readonly metadata: Bytes;
- readonly equipped: bool;
- readonly pending: bool;
-}
-
-/** @name RmrkTraitsNftRoyaltyInfo */
-export interface RmrkTraitsNftRoyaltyInfo extends Struct {
- readonly recipient: AccountId32;
- readonly amount: Permill;
-}
-
-/** @name RmrkTraitsPartEquippableList */
-export interface RmrkTraitsPartEquippableList extends Enum {
- readonly isAll: boolean;
- readonly isEmpty: boolean;
- readonly isCustom: boolean;
- readonly asCustom: Vec<u32>;
- readonly type: 'All' | 'Empty' | 'Custom';
-}
-
-/** @name RmrkTraitsPartFixedPart */
-export interface RmrkTraitsPartFixedPart extends Struct {
- readonly id: u32;
- readonly z: u32;
- readonly src: Bytes;
-}
-
-/** @name RmrkTraitsPartPartType */
-export interface RmrkTraitsPartPartType extends Enum {
- readonly isFixedPart: boolean;
- readonly asFixedPart: RmrkTraitsPartFixedPart;
- readonly isSlotPart: boolean;
- readonly asSlotPart: RmrkTraitsPartSlotPart;
- readonly type: 'FixedPart' | 'SlotPart';
-}
-
-/** @name RmrkTraitsPartSlotPart */
-export interface RmrkTraitsPartSlotPart extends Struct {
- readonly id: u32;
- readonly equippable: RmrkTraitsPartEquippableList;
- readonly src: Bytes;
- readonly z: u32;
-}
-
-/** @name RmrkTraitsPropertyPropertyInfo */
-export interface RmrkTraitsPropertyPropertyInfo extends Struct {
- readonly key: Bytes;
- readonly value: Bytes;
-}
-
-/** @name RmrkTraitsResourceBasicResource */
-export interface RmrkTraitsResourceBasicResource extends Struct {
- readonly src: Option<Bytes>;
- readonly metadata: Option<Bytes>;
- readonly license: Option<Bytes>;
- readonly thumb: Option<Bytes>;
-}
-
-/** @name RmrkTraitsResourceComposableResource */
-export interface RmrkTraitsResourceComposableResource extends Struct {
- readonly parts: Vec<u32>;
- readonly base: u32;
- readonly src: Option<Bytes>;
- readonly metadata: Option<Bytes>;
- readonly license: Option<Bytes>;
- readonly thumb: Option<Bytes>;
-}
-
-/** @name RmrkTraitsResourceResourceInfo */
-export interface RmrkTraitsResourceResourceInfo extends Struct {
- readonly id: u32;
- readonly resource: RmrkTraitsResourceResourceTypes;
- readonly pending: bool;
- readonly pendingRemoval: bool;
-}
-
-/** @name RmrkTraitsResourceResourceTypes */
-export interface RmrkTraitsResourceResourceTypes extends Enum {
- readonly isBasic: boolean;
- readonly asBasic: RmrkTraitsResourceBasicResource;
- readonly isComposable: boolean;
- readonly asComposable: RmrkTraitsResourceComposableResource;
- readonly isSlot: boolean;
- readonly asSlot: RmrkTraitsResourceSlotResource;
- readonly type: 'Basic' | 'Composable' | 'Slot';
-}
-
-/** @name RmrkTraitsResourceSlotResource */
-export interface RmrkTraitsResourceSlotResource extends Struct {
- readonly base: u32;
- readonly src: Option<Bytes>;
- readonly metadata: Option<Bytes>;
- readonly slot: u32;
- readonly license: Option<Bytes>;
- readonly thumb: Option<Bytes>;
-}
-
-/** @name RmrkTraitsTheme */
-export interface RmrkTraitsTheme extends Struct {
- readonly name: Bytes;
- readonly properties: Vec<RmrkTraitsThemeThemeProperty>;
- readonly inherit: bool;
-}
-
-/** @name RmrkTraitsThemeThemeProperty */
-export interface RmrkTraitsThemeThemeProperty extends Struct {
- readonly key: Bytes;
- readonly value: Bytes;
-}
+/** @name SpCoreCryptoKeyTypeId */
+export interface SpCoreCryptoKeyTypeId extends U8aFixed {}
/** @name SpCoreEcdsaSignature */
export interface SpCoreEcdsaSignature extends U8aFixed {}
@@ -2701,16 +2757,14 @@
/** @name SpCoreEd25519Signature */
export interface SpCoreEd25519Signature extends U8aFixed {}
+/** @name SpCoreSr25519Public */
+export interface SpCoreSr25519Public extends U8aFixed {}
+
/** @name SpCoreSr25519Signature */
export interface SpCoreSr25519Signature extends U8aFixed {}
-/** @name SpRuntimeArithmeticError */
-export interface SpRuntimeArithmeticError extends Enum {
- readonly isUnderflow: boolean;
- readonly isOverflow: boolean;
- readonly isDivisionByZero: boolean;
- readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';
-}
+/** @name SpRuntimeBlakeTwo256 */
+export interface SpRuntimeBlakeTwo256 extends Null {}
/** @name SpRuntimeDigest */
export interface SpRuntimeDigest extends Struct {
@@ -2744,7 +2798,7 @@
readonly isToken: boolean;
readonly asToken: SpRuntimeTokenError;
readonly isArithmetic: boolean;
- readonly asArithmetic: SpRuntimeArithmeticError;
+ readonly asArithmetic: SpArithmeticArithmeticError;
readonly isTransactional: boolean;
readonly asTransactional: SpRuntimeTransactionalError;
readonly isExhausted: boolean;
@@ -2753,6 +2807,15 @@
readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic' | 'Transactional' | 'Exhausted' | 'Corruption' | 'Unavailable';
}
+/** @name SpRuntimeHeader */
+export interface SpRuntimeHeader extends Struct {
+ readonly parentHash: H256;
+ readonly number: Compact<u32>;
+ readonly stateRoot: H256;
+ readonly extrinsicsRoot: H256;
+ readonly digest: SpRuntimeDigest;
+}
+
/** @name SpRuntimeModuleError */
export interface SpRuntimeModuleError extends Struct {
readonly index: u8;
@@ -3160,7 +3223,10 @@
readonly isTechnical: boolean;
readonly isLegislative: boolean;
readonly isJudicial: boolean;
- readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';
+ readonly isDefense: boolean;
+ readonly isAdministration: boolean;
+ readonly isTreasury: boolean;
+ readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial' | 'Defense' | 'Administration' | 'Treasury';
}
/** @name XcmV0JunctionBodyPart */
tests/src/interfaces/lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -129,7 +129,7 @@
NoProviders: 'Null',
TooManyConsumers: 'Null',
Token: 'SpRuntimeTokenError',
- Arithmetic: 'SpRuntimeArithmeticError',
+ Arithmetic: 'SpArithmeticArithmeticError',
Transactional: 'SpRuntimeTransactionalError',
Exhausted: 'Null',
Corruption: 'Null',
@@ -150,9 +150,9 @@
_enum: ['NoFunds', 'WouldDie', 'BelowMinimum', 'CannotCreate', 'UnknownAsset', 'Frozen', 'Unsupported']
},
/**
- * Lookup27: sp_runtime::ArithmeticError
+ * Lookup27: sp_arithmetic::ArithmeticError
**/
- SpRuntimeArithmeticError: {
+ SpArithmeticArithmeticError: {
_enum: ['Underflow', 'Overflow', 'DivisionByZero']
},
/**
@@ -184,7 +184,44 @@
}
},
/**
- * Lookup30: pallet_balances::pallet::Event<T, I>
+ * Lookup30: pallet_collator_selection::pallet::Event<T>
+ **/
+ PalletCollatorSelectionEvent: {
+ _enum: {
+ InvulnerableAdded: {
+ invulnerable: 'AccountId32',
+ },
+ InvulnerableRemoved: {
+ invulnerable: 'AccountId32',
+ },
+ LicenseObtained: {
+ accountId: 'AccountId32',
+ deposit: 'u128',
+ },
+ LicenseReleased: {
+ accountId: 'AccountId32',
+ depositReturned: 'u128',
+ },
+ CandidateAdded: {
+ accountId: 'AccountId32',
+ },
+ CandidateRemoved: {
+ accountId: 'AccountId32'
+ }
+ }
+ },
+ /**
+ * Lookup31: pallet_session::pallet::Event
+ **/
+ PalletSessionEvent: {
+ _enum: {
+ NewSession: {
+ sessionIndex: 'u32'
+ }
+ }
+ },
+ /**
+ * Lookup32: pallet_balances::pallet::Event<T, I>
**/
PalletBalancesEvent: {
_enum: {
@@ -235,13 +272,13 @@
}
},
/**
- * Lookup31: frame_support::traits::tokens::misc::BalanceStatus
+ * Lookup33: frame_support::traits::tokens::misc::BalanceStatus
**/
FrameSupportTokensMiscBalanceStatus: {
_enum: ['Free', 'Reserved']
},
/**
- * Lookup32: pallet_transaction_payment::pallet::Event<T>
+ * Lookup34: pallet_transaction_payment::pallet::Event<T>
**/
PalletTransactionPaymentEvent: {
_enum: {
@@ -253,7 +290,7 @@
}
},
/**
- * Lookup33: pallet_treasury::pallet::Event<T, I>
+ * Lookup35: pallet_treasury::pallet::Event<T, I>
**/
PalletTreasuryEvent: {
_enum: {
@@ -284,12 +321,16 @@
SpendApproved: {
proposalIndex: 'u32',
amount: 'u128',
- beneficiary: 'AccountId32'
+ beneficiary: 'AccountId32',
+ },
+ UpdatedInactive: {
+ reactivated: 'u128',
+ deactivated: 'u128'
}
}
},
/**
- * Lookup34: pallet_sudo::pallet::Event<T>
+ * Lookup36: pallet_sudo::pallet::Event<T>
**/
PalletSudoEvent: {
_enum: {
@@ -305,7 +346,7 @@
}
},
/**
- * Lookup38: orml_vesting::module::Event<T>
+ * Lookup40: orml_vesting::module::Event<T>
**/
OrmlVestingModuleEvent: {
_enum: {
@@ -324,7 +365,7 @@
}
},
/**
- * Lookup39: orml_vesting::VestingSchedule<BlockNumber, Balance>
+ * Lookup41: orml_vesting::VestingSchedule<BlockNumber, Balance>
**/
OrmlVestingVestingSchedule: {
start: 'u32',
@@ -333,7 +374,7 @@
perPeriod: 'Compact<u128>'
},
/**
- * Lookup41: orml_xtokens::module::Event<T>
+ * Lookup43: orml_xtokens::module::Event<T>
**/
OrmlXtokensModuleEvent: {
_enum: {
@@ -346,18 +387,18 @@
}
},
/**
- * Lookup42: xcm::v1::multiasset::MultiAssets
+ * Lookup44: xcm::v1::multiasset::MultiAssets
**/
XcmV1MultiassetMultiAssets: 'Vec<XcmV1MultiAsset>',
/**
- * Lookup44: xcm::v1::multiasset::MultiAsset
+ * Lookup46: xcm::v1::multiasset::MultiAsset
**/
XcmV1MultiAsset: {
id: 'XcmV1MultiassetAssetId',
fun: 'XcmV1MultiassetFungibility'
},
/**
- * Lookup45: xcm::v1::multiasset::AssetId
+ * Lookup47: xcm::v1::multiasset::AssetId
**/
XcmV1MultiassetAssetId: {
_enum: {
@@ -366,14 +407,14 @@
}
},
/**
- * Lookup46: xcm::v1::multilocation::MultiLocation
+ * Lookup48: xcm::v1::multilocation::MultiLocation
**/
XcmV1MultiLocation: {
parents: 'u8',
interior: 'XcmV1MultilocationJunctions'
},
/**
- * Lookup47: xcm::v1::multilocation::Junctions
+ * Lookup49: xcm::v1::multilocation::Junctions
**/
XcmV1MultilocationJunctions: {
_enum: {
@@ -389,7 +430,7 @@
}
},
/**
- * Lookup48: xcm::v1::junction::Junction
+ * Lookup50: xcm::v1::junction::Junction
**/
XcmV1Junction: {
_enum: {
@@ -417,7 +458,7 @@
}
},
/**
- * Lookup50: xcm::v0::junction::NetworkId
+ * Lookup52: xcm::v0::junction::NetworkId
**/
XcmV0JunctionNetworkId: {
_enum: {
@@ -428,7 +469,7 @@
}
},
/**
- * Lookup53: xcm::v0::junction::BodyId
+ * Lookup55: xcm::v0::junction::BodyId
**/
XcmV0JunctionBodyId: {
_enum: {
@@ -438,11 +479,14 @@
Executive: 'Null',
Technical: 'Null',
Legislative: 'Null',
- Judicial: 'Null'
+ Judicial: 'Null',
+ Defense: 'Null',
+ Administration: 'Null',
+ Treasury: 'Null'
}
},
/**
- * Lookup54: xcm::v0::junction::BodyPart
+ * Lookup56: xcm::v0::junction::BodyPart
**/
XcmV0JunctionBodyPart: {
_enum: {
@@ -465,7 +509,7 @@
}
},
/**
- * Lookup55: xcm::v1::multiasset::Fungibility
+ * Lookup57: xcm::v1::multiasset::Fungibility
**/
XcmV1MultiassetFungibility: {
_enum: {
@@ -474,7 +518,7 @@
}
},
/**
- * Lookup56: xcm::v1::multiasset::AssetInstance
+ * Lookup58: xcm::v1::multiasset::AssetInstance
**/
XcmV1MultiassetAssetInstance: {
_enum: {
@@ -488,7 +532,7 @@
}
},
/**
- * Lookup59: orml_tokens::module::Event<T>
+ * Lookup61: orml_tokens::module::Event<T>
**/
OrmlTokensModuleEvent: {
_enum: {
@@ -565,7 +609,7 @@
}
},
/**
- * Lookup60: pallet_foreign_assets::AssetIds
+ * Lookup62: pallet_foreign_assets::AssetIds
**/
PalletForeignAssetsAssetIds: {
_enum: {
@@ -574,14 +618,96 @@
}
},
/**
- * Lookup61: pallet_foreign_assets::NativeCurrency
+ * Lookup63: pallet_foreign_assets::NativeCurrency
**/
PalletForeignAssetsNativeCurrency: {
_enum: ['Here', 'Parent']
},
/**
- * Lookup62: cumulus_pallet_xcmp_queue::pallet::Event<T>
+ * Lookup64: pallet_identity::pallet::Event<T>
**/
+ PalletIdentityEvent: {
+ _enum: {
+ IdentitySet: {
+ who: 'AccountId32',
+ },
+ IdentityCleared: {
+ who: 'AccountId32',
+ deposit: 'u128',
+ },
+ IdentityKilled: {
+ who: 'AccountId32',
+ deposit: 'u128',
+ },
+ IdentitiesInserted: {
+ amount: 'u32',
+ },
+ IdentitiesRemoved: {
+ amount: 'u32',
+ },
+ JudgementRequested: {
+ who: 'AccountId32',
+ registrarIndex: 'u32',
+ },
+ JudgementUnrequested: {
+ who: 'AccountId32',
+ registrarIndex: 'u32',
+ },
+ JudgementGiven: {
+ target: 'AccountId32',
+ registrarIndex: 'u32',
+ },
+ RegistrarAdded: {
+ registrarIndex: 'u32',
+ },
+ SubIdentityAdded: {
+ sub: 'AccountId32',
+ main: 'AccountId32',
+ deposit: 'u128',
+ },
+ SubIdentityRemoved: {
+ sub: 'AccountId32',
+ main: 'AccountId32',
+ deposit: 'u128',
+ },
+ SubIdentityRevoked: {
+ sub: 'AccountId32',
+ main: 'AccountId32',
+ deposit: 'u128',
+ },
+ SubIdentitiesInserted: {
+ amount: 'u32'
+ }
+ }
+ },
+ /**
+ * Lookup65: pallet_preimage::pallet::Event<T>
+ **/
+ PalletPreimageEvent: {
+ _enum: {
+ Noted: {
+ _alias: {
+ hash_: 'hash',
+ },
+ hash_: 'H256',
+ },
+ Requested: {
+ _alias: {
+ hash_: 'hash',
+ },
+ hash_: 'H256',
+ },
+ Cleared: {
+ _alias: {
+ hash_: 'hash',
+ },
+ hash_: 'H256'
+ }
+ }
+ },
+ /**
+ * Lookup66: cumulus_pallet_xcmp_queue::pallet::Event<T>
+ **/
CumulusPalletXcmpQueueEvent: {
_enum: {
Success: {
@@ -618,7 +744,7 @@
}
},
/**
- * Lookup64: xcm::v2::traits::Error
+ * Lookup68: xcm::v2::traits::Error
**/
XcmV2TraitsError: {
_enum: {
@@ -651,7 +777,7 @@
}
},
/**
- * Lookup66: pallet_xcm::pallet::Event<T>
+ * Lookup70: pallet_xcm::pallet::Event<T>
**/
PalletXcmEvent: {
_enum: {
@@ -675,7 +801,7 @@
}
},
/**
- * Lookup67: xcm::v2::traits::Outcome
+ * Lookup71: xcm::v2::traits::Outcome
**/
XcmV2TraitsOutcome: {
_enum: {
@@ -685,11 +811,11 @@
}
},
/**
- * Lookup68: xcm::v2::Xcm<RuntimeCall>
+ * Lookup72: xcm::v2::Xcm<RuntimeCall>
**/
XcmV2Xcm: 'Vec<XcmV2Instruction>',
/**
- * Lookup70: xcm::v2::Instruction<RuntimeCall>
+ * Lookup74: xcm::v2::Instruction<RuntimeCall>
**/
XcmV2Instruction: {
_enum: {
@@ -787,7 +913,7 @@
}
},
/**
- * Lookup71: xcm::v2::Response
+ * Lookup75: xcm::v2::Response
**/
XcmV2Response: {
_enum: {
@@ -798,19 +924,19 @@
}
},
/**
- * Lookup74: xcm::v0::OriginKind
+ * Lookup78: xcm::v0::OriginKind
**/
XcmV0OriginKind: {
_enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']
},
/**
- * Lookup75: xcm::double_encoded::DoubleEncoded<T>
+ * Lookup79: xcm::double_encoded::DoubleEncoded<T>
**/
XcmDoubleEncoded: {
encoded: 'Bytes'
},
/**
- * Lookup76: xcm::v1::multiasset::MultiAssetFilter
+ * Lookup80: xcm::v1::multiasset::MultiAssetFilter
**/
XcmV1MultiassetMultiAssetFilter: {
_enum: {
@@ -819,7 +945,7 @@
}
},
/**
- * Lookup77: xcm::v1::multiasset::WildMultiAsset
+ * Lookup81: xcm::v1::multiasset::WildMultiAsset
**/
XcmV1MultiassetWildMultiAsset: {
_enum: {
@@ -831,13 +957,13 @@
}
},
/**
- * Lookup78: xcm::v1::multiasset::WildFungibility
+ * Lookup82: xcm::v1::multiasset::WildFungibility
**/
XcmV1MultiassetWildFungibility: {
_enum: ['Fungible', 'NonFungible']
},
/**
- * Lookup79: xcm::v2::WeightLimit
+ * Lookup83: xcm::v2::WeightLimit
**/
XcmV2WeightLimit: {
_enum: {
@@ -846,7 +972,7 @@
}
},
/**
- * Lookup81: xcm::VersionedMultiAssets
+ * Lookup85: xcm::VersionedMultiAssets
**/
XcmVersionedMultiAssets: {
_enum: {
@@ -855,7 +981,7 @@
}
},
/**
- * Lookup83: xcm::v0::multi_asset::MultiAsset
+ * Lookup87: xcm::v0::multi_asset::MultiAsset
**/
XcmV0MultiAsset: {
_enum: {
@@ -894,7 +1020,7 @@
}
},
/**
- * Lookup84: xcm::v0::multi_location::MultiLocation
+ * Lookup88: xcm::v0::multi_location::MultiLocation
**/
XcmV0MultiLocation: {
_enum: {
@@ -910,7 +1036,7 @@
}
},
/**
- * Lookup85: xcm::v0::junction::Junction
+ * Lookup89: xcm::v0::junction::Junction
**/
XcmV0Junction: {
_enum: {
@@ -939,7 +1065,7 @@
}
},
/**
- * Lookup86: xcm::VersionedMultiLocation
+ * Lookup90: xcm::VersionedMultiLocation
**/
XcmVersionedMultiLocation: {
_enum: {
@@ -948,7 +1074,7 @@
}
},
/**
- * Lookup87: cumulus_pallet_xcm::pallet::Event<T>
+ * Lookup91: cumulus_pallet_xcm::pallet::Event<T>
**/
CumulusPalletXcmEvent: {
_enum: {
@@ -958,7 +1084,7 @@
}
},
/**
- * Lookup88: cumulus_pallet_dmp_queue::pallet::Event<T>
+ * Lookup92: cumulus_pallet_dmp_queue::pallet::Event<T>
**/
CumulusPalletDmpQueueEvent: {
_enum: {
@@ -989,7 +1115,7 @@
}
},
/**
- * Lookup89: pallet_configuration::pallet::Event<T>
+ * Lookup93: pallet_configuration::pallet::Event<T>
**/
PalletConfigurationEvent: {
_enum: {
@@ -1005,7 +1131,7 @@
}
},
/**
- * Lookup92: pallet_common::pallet::Event<T>
+ * Lookup96: pallet_common::pallet::Event<T>
**/
PalletCommonEvent: {
_enum: {
@@ -1034,7 +1160,7 @@
}
},
/**
- * Lookup95: pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>
+ * Lookup99: pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>
**/
PalletEvmAccountBasicCrossAccountIdRepr: {
_enum: {
@@ -1043,116 +1169,15 @@
}
},
/**
- * Lookup99: pallet_structure::pallet::Event<T>
+ * Lookup103: pallet_structure::pallet::Event<T>
**/
PalletStructureEvent: {
_enum: {
Executed: 'Result<Null, SpRuntimeDispatchError>'
- }
- },
- /**
- * Lookup100: pallet_rmrk_core::pallet::Event<T>
- **/
- PalletRmrkCoreEvent: {
- _enum: {
- CollectionCreated: {
- issuer: 'AccountId32',
- collectionId: 'u32',
- },
- CollectionDestroyed: {
- issuer: 'AccountId32',
- collectionId: 'u32',
- },
- IssuerChanged: {
- oldIssuer: 'AccountId32',
- newIssuer: 'AccountId32',
- collectionId: 'u32',
- },
- CollectionLocked: {
- issuer: 'AccountId32',
- collectionId: 'u32',
- },
- NftMinted: {
- owner: 'AccountId32',
- collectionId: 'u32',
- nftId: 'u32',
- },
- NFTBurned: {
- owner: 'AccountId32',
- nftId: 'u32',
- },
- NFTSent: {
- sender: 'AccountId32',
- recipient: 'RmrkTraitsNftAccountIdOrCollectionNftTuple',
- collectionId: 'u32',
- nftId: 'u32',
- approvalRequired: 'bool',
- },
- NFTAccepted: {
- sender: 'AccountId32',
- recipient: 'RmrkTraitsNftAccountIdOrCollectionNftTuple',
- collectionId: 'u32',
- nftId: 'u32',
- },
- NFTRejected: {
- sender: 'AccountId32',
- collectionId: 'u32',
- nftId: 'u32',
- },
- PropertySet: {
- collectionId: 'u32',
- maybeNftId: 'Option<u32>',
- key: 'Bytes',
- value: 'Bytes',
- },
- ResourceAdded: {
- nftId: 'u32',
- resourceId: 'u32',
- },
- ResourceRemoval: {
- nftId: 'u32',
- resourceId: 'u32',
- },
- ResourceAccepted: {
- nftId: 'u32',
- resourceId: 'u32',
- },
- ResourceRemovalAccepted: {
- nftId: 'u32',
- resourceId: 'u32',
- },
- PrioritySet: {
- collectionId: 'u32',
- nftId: 'u32'
- }
}
},
/**
- * Lookup101: rmrk_traits::nft::AccountIdOrCollectionNftTuple<sp_core::crypto::AccountId32>
- **/
- RmrkTraitsNftAccountIdOrCollectionNftTuple: {
- _enum: {
- AccountId: 'AccountId32',
- CollectionAndNftTuple: '(u32,u32)'
- }
- },
- /**
- * Lookup104: pallet_rmrk_equip::pallet::Event<T>
- **/
- PalletRmrkEquipEvent: {
- _enum: {
- BaseCreated: {
- issuer: 'AccountId32',
- baseId: 'u32',
- },
- EquippablesUpdated: {
- baseId: 'u32',
- slotId: 'u32'
- }
- }
- },
- /**
- * Lookup105: pallet_app_promotion::pallet::Event<T>
+ * Lookup104: pallet_app_promotion::pallet::Event<T>
**/
PalletAppPromotionEvent: {
_enum: {
@@ -1163,7 +1188,7 @@
}
},
/**
- * Lookup106: pallet_foreign_assets::module::Event<T>
+ * Lookup105: pallet_foreign_assets::module::Event<T>
**/
PalletForeignAssetsModuleEvent: {
_enum: {
@@ -1188,7 +1213,7 @@
}
},
/**
- * Lookup107: pallet_foreign_assets::module::AssetMetadata<Balance>
+ * Lookup106: pallet_foreign_assets::module::AssetMetadata<Balance>
**/
PalletForeignAssetsModuleAssetMetadata: {
name: 'Bytes',
@@ -1197,7 +1222,7 @@
minimalBalance: 'u128'
},
/**
- * Lookup108: pallet_evm::pallet::Event<T>
+ * Lookup107: pallet_evm::pallet::Event<T>
**/
PalletEvmEvent: {
_enum: {
@@ -1219,7 +1244,7 @@
}
},
/**
- * Lookup109: ethereum::log::Log
+ * Lookup108: ethereum::log::Log
**/
EthereumLog: {
address: 'H160',
@@ -1227,7 +1252,7 @@
data: 'Bytes'
},
/**
- * Lookup111: pallet_ethereum::pallet::Event
+ * Lookup110: pallet_ethereum::pallet::Event
**/
PalletEthereumEvent: {
_enum: {
@@ -1240,7 +1265,7 @@
}
},
/**
- * Lookup112: evm_core::error::ExitReason
+ * Lookup111: evm_core::error::ExitReason
**/
EvmCoreErrorExitReason: {
_enum: {
@@ -1251,13 +1276,13 @@
}
},
/**
- * Lookup113: evm_core::error::ExitSucceed
+ * Lookup112: evm_core::error::ExitSucceed
**/
EvmCoreErrorExitSucceed: {
_enum: ['Stopped', 'Returned', 'Suicided']
},
/**
- * Lookup114: evm_core::error::ExitError
+ * Lookup113: evm_core::error::ExitError
**/
EvmCoreErrorExitError: {
_enum: {
@@ -1275,7 +1300,8 @@
PCUnderflow: 'Null',
CreateEmpty: 'Null',
Other: 'Text',
- InvalidCode: 'Null'
+ __Unused14: 'Null',
+ InvalidCode: 'u8'
}
},
/**
@@ -1551,28 +1577,135 @@
_enum: ['OverlappingUpgrades', 'ProhibitedByPolkadot', 'TooBig', 'ValidationDataNotAvailable', 'HostConfigurationNotAvailable', 'NotScheduled', 'NothingAuthorized', 'Unauthorized']
},
/**
- * Lookup172: pallet_balances::BalanceLock<Balance>
+ * Lookup172: pallet_authorship::UncleEntryItem<BlockNumber, primitive_types::H256, sp_core::crypto::AccountId32>
+ **/
+ PalletAuthorshipUncleEntryItem: {
+ _enum: {
+ InclusionHeight: 'u32',
+ Uncle: '(H256,Option<AccountId32>)'
+ }
+ },
+ /**
+ * Lookup174: pallet_authorship::pallet::Call<T>
+ **/
+ PalletAuthorshipCall: {
+ _enum: {
+ set_uncles: {
+ newUncles: 'Vec<SpRuntimeHeader>'
+ }
+ }
+ },
+ /**
+ * Lookup176: sp_runtime::generic::header::Header<Number, sp_runtime::traits::BlakeTwo256>
+ **/
+ SpRuntimeHeader: {
+ parentHash: 'H256',
+ number: 'Compact<u32>',
+ stateRoot: 'H256',
+ extrinsicsRoot: 'H256',
+ digest: 'SpRuntimeDigest'
+ },
+ /**
+ * Lookup177: sp_runtime::traits::BlakeTwo256
+ **/
+ SpRuntimeBlakeTwo256: 'Null',
+ /**
+ * Lookup178: pallet_authorship::pallet::Error<T>
+ **/
+ PalletAuthorshipError: {
+ _enum: ['InvalidUncleParent', 'UnclesAlreadySet', 'TooManyUncles', 'GenesisUncle', 'TooHighUncle', 'UncleAlreadyIncluded', 'OldUncle']
+ },
+ /**
+ * Lookup181: pallet_collator_selection::pallet::Call<T>
**/
+ PalletCollatorSelectionCall: {
+ _enum: {
+ add_invulnerable: {
+ _alias: {
+ new_: 'new',
+ },
+ new_: 'AccountId32',
+ },
+ remove_invulnerable: {
+ who: 'AccountId32',
+ },
+ get_license: 'Null',
+ onboard: 'Null',
+ offboard: 'Null',
+ release_license: 'Null',
+ force_release_license: {
+ who: 'AccountId32'
+ }
+ }
+ },
+ /**
+ * Lookup182: pallet_collator_selection::pallet::Error<T>
+ **/
+ PalletCollatorSelectionError: {
+ _enum: ['TooManyCandidates', 'Unknown', 'Permission', 'AlreadyHoldingLicense', 'NoLicense', 'AlreadyCandidate', 'NotCandidate', 'TooManyInvulnerables', 'TooFewInvulnerables', 'AlreadyInvulnerable', 'NotInvulnerable', 'NoAssociatedValidatorId', 'ValidatorNotRegistered']
+ },
+ /**
+ * Lookup185: opal_runtime::runtime_common::SessionKeys
+ **/
+ OpalRuntimeRuntimeCommonSessionKeys: {
+ aura: 'SpConsensusAuraSr25519AppSr25519Public'
+ },
+ /**
+ * Lookup186: sp_consensus_aura::sr25519::app_sr25519::Public
+ **/
+ SpConsensusAuraSr25519AppSr25519Public: 'SpCoreSr25519Public',
+ /**
+ * Lookup187: sp_core::sr25519::Public
+ **/
+ SpCoreSr25519Public: '[u8;32]',
+ /**
+ * Lookup190: sp_core::crypto::KeyTypeId
+ **/
+ SpCoreCryptoKeyTypeId: '[u8;4]',
+ /**
+ * Lookup191: pallet_session::pallet::Call<T>
+ **/
+ PalletSessionCall: {
+ _enum: {
+ set_keys: {
+ _alias: {
+ keys_: 'keys',
+ },
+ keys_: 'OpalRuntimeRuntimeCommonSessionKeys',
+ proof: 'Bytes',
+ },
+ purge_keys: 'Null'
+ }
+ },
+ /**
+ * Lookup192: pallet_session::pallet::Error<T>
+ **/
+ PalletSessionError: {
+ _enum: ['InvalidProof', 'NoAssociatedValidatorId', 'DuplicatedKey', 'NoKeys', 'NoAccount']
+ },
+ /**
+ * Lookup194: pallet_balances::BalanceLock<Balance>
+ **/
PalletBalancesBalanceLock: {
id: '[u8;8]',
amount: 'u128',
reasons: 'PalletBalancesReasons'
},
/**
- * Lookup173: pallet_balances::Reasons
+ * Lookup195: pallet_balances::Reasons
**/
PalletBalancesReasons: {
_enum: ['Fee', 'Misc', 'All']
},
/**
- * Lookup176: pallet_balances::ReserveData<ReserveIdentifier, Balance>
+ * Lookup198: pallet_balances::ReserveData<ReserveIdentifier, Balance>
**/
PalletBalancesReserveData: {
id: '[u8;16]',
amount: 'u128'
},
/**
- * Lookup178: pallet_balances::pallet::Call<T, I>
+ * Lookup200: pallet_balances::pallet::Call<T, I>
**/
PalletBalancesCall: {
_enum: {
@@ -1605,13 +1738,13 @@
}
},
/**
- * Lookup181: pallet_balances::pallet::Error<T, I>
+ * Lookup203: pallet_balances::pallet::Error<T, I>
**/
PalletBalancesError: {
_enum: ['VestingBalance', 'LiquidityRestrictions', 'InsufficientBalance', 'ExistentialDeposit', 'KeepAlive', 'ExistingVestingSchedule', 'DeadAccount', 'TooManyReserves']
},
/**
- * Lookup183: pallet_timestamp::pallet::Call<T>
+ * Lookup205: pallet_timestamp::pallet::Call<T>
**/
PalletTimestampCall: {
_enum: {
@@ -1621,13 +1754,13 @@
}
},
/**
- * Lookup185: pallet_transaction_payment::Releases
+ * Lookup207: pallet_transaction_payment::Releases
**/
PalletTransactionPaymentReleases: {
_enum: ['V1Ancient', 'V2']
},
/**
- * Lookup186: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
+ * Lookup208: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
**/
PalletTreasuryProposal: {
proposer: 'AccountId32',
@@ -1636,7 +1769,7 @@
bond: 'u128'
},
/**
- * Lookup189: pallet_treasury::pallet::Call<T, I>
+ * Lookup210: pallet_treasury::pallet::Call<T, I>
**/
PalletTreasuryCall: {
_enum: {
@@ -1660,17 +1793,17 @@
}
},
/**
- * Lookup191: frame_support::PalletId
+ * Lookup212: frame_support::PalletId
**/
FrameSupportPalletId: '[u8;8]',
/**
- * Lookup192: pallet_treasury::pallet::Error<T, I>
+ * Lookup213: pallet_treasury::pallet::Error<T, I>
**/
PalletTreasuryError: {
_enum: ['InsufficientProposersBalance', 'InvalidIndex', 'TooManyApprovals', 'InsufficientPermission', 'ProposalNotApproved']
},
/**
- * Lookup193: pallet_sudo::pallet::Call<T>
+ * Lookup214: pallet_sudo::pallet::Call<T>
**/
PalletSudoCall: {
_enum: {
@@ -1694,7 +1827,7 @@
}
},
/**
- * Lookup195: orml_vesting::module::Call<T>
+ * Lookup216: orml_vesting::module::Call<T>
**/
OrmlVestingModuleCall: {
_enum: {
@@ -1713,7 +1846,7 @@
}
},
/**
- * Lookup197: orml_xtokens::module::Call<T>
+ * Lookup218: orml_xtokens::module::Call<T>
**/
OrmlXtokensModuleCall: {
_enum: {
@@ -1756,7 +1889,7 @@
}
},
/**
- * Lookup198: xcm::VersionedMultiAsset
+ * Lookup219: xcm::VersionedMultiAsset
**/
XcmVersionedMultiAsset: {
_enum: {
@@ -1765,7 +1898,7 @@
}
},
/**
- * Lookup201: orml_tokens::module::Call<T>
+ * Lookup222: orml_tokens::module::Call<T>
**/
OrmlTokensModuleCall: {
_enum: {
@@ -1799,7 +1932,160 @@
}
},
/**
- * Lookup202: cumulus_pallet_xcmp_queue::pallet::Call<T>
+ * Lookup223: pallet_identity::pallet::Call<T>
+ **/
+ PalletIdentityCall: {
+ _enum: {
+ add_registrar: {
+ account: 'MultiAddress',
+ },
+ set_identity: {
+ info: 'PalletIdentityIdentityInfo',
+ },
+ set_subs: {
+ subs: 'Vec<(AccountId32,Data)>',
+ },
+ clear_identity: 'Null',
+ request_judgement: {
+ regIndex: 'Compact<u32>',
+ maxFee: 'Compact<u128>',
+ },
+ cancel_request: {
+ regIndex: 'u32',
+ },
+ set_fee: {
+ index: 'Compact<u32>',
+ fee: 'Compact<u128>',
+ },
+ set_account_id: {
+ _alias: {
+ new_: 'new',
+ },
+ index: 'Compact<u32>',
+ new_: 'MultiAddress',
+ },
+ set_fields: {
+ index: 'Compact<u32>',
+ fields: 'PalletIdentityBitFlags',
+ },
+ provide_judgement: {
+ regIndex: 'Compact<u32>',
+ target: 'MultiAddress',
+ judgement: 'PalletIdentityJudgement',
+ identity: 'H256',
+ },
+ kill_identity: {
+ target: 'MultiAddress',
+ },
+ add_sub: {
+ sub: 'MultiAddress',
+ data: 'Data',
+ },
+ rename_sub: {
+ sub: 'MultiAddress',
+ data: 'Data',
+ },
+ remove_sub: {
+ sub: 'MultiAddress',
+ },
+ quit_sub: 'Null',
+ force_insert_identities: {
+ identities: 'Vec<(AccountId32,PalletIdentityRegistration)>',
+ },
+ force_remove_identities: {
+ identities: 'Vec<AccountId32>',
+ },
+ force_set_subs: {
+ subs: 'Vec<(AccountId32,(u128,Vec<(AccountId32,Data)>))>'
+ }
+ }
+ },
+ /**
+ * Lookup224: pallet_identity::types::IdentityInfo<FieldLimit>
+ **/
+ PalletIdentityIdentityInfo: {
+ additional: 'Vec<(Data,Data)>',
+ display: 'Data',
+ legal: 'Data',
+ web: 'Data',
+ riot: 'Data',
+ email: 'Data',
+ pgpFingerprint: 'Option<[u8;20]>',
+ image: 'Data',
+ twitter: 'Data'
+ },
+ /**
+ * Lookup260: pallet_identity::types::BitFlags<pallet_identity::types::IdentityField>
+ **/
+ PalletIdentityBitFlags: {
+ _bitLength: 64,
+ Display: 1,
+ Legal: 2,
+ Web: 4,
+ Riot: 8,
+ Email: 16,
+ PgpFingerprint: 32,
+ Image: 64,
+ Twitter: 128
+ },
+ /**
+ * Lookup261: pallet_identity::types::IdentityField
+ **/
+ PalletIdentityIdentityField: {
+ _enum: ['__Unused0', 'Display', 'Legal', '__Unused3', 'Web', '__Unused5', '__Unused6', '__Unused7', 'Riot', '__Unused9', '__Unused10', '__Unused11', '__Unused12', '__Unused13', '__Unused14', '__Unused15', 'Email', '__Unused17', '__Unused18', '__Unused19', '__Unused20', '__Unused21', '__Unused22', '__Unused23', '__Unused24', '__Unused25', '__Unused26', '__Unused27', '__Unused28', '__Unused29', '__Unused30', '__Unused31', 'PgpFingerprint', '__Unused33', '__Unused34', '__Unused35', '__Unused36', '__Unused37', '__Unused38', '__Unused39', '__Unused40', '__Unused41', '__Unused42', '__Unused43', '__Unused44', '__Unused45', '__Unused46', '__Unused47', '__Unused48', '__Unused49', '__Unused50', '__Unused51', '__Unused52', '__Unused53', '__Unused54', '__Unused55', '__Unused56', '__Unused57', '__Unused58', '__Unused59', '__Unused60', '__Unused61', '__Unused62', '__Unused63', 'Image', '__Unused65', '__Unused66', '__Unused67', '__Unused68', '__Unused69', '__Unused70', '__Unused71', '__Unused72', '__Unused73', '__Unused74', '__Unused75', '__Unused76', '__Unused77', '__Unused78', '__Unused79', '__Unused80', '__Unused81', '__Unused82', '__Unused83', '__Unused84', '__Unused85', '__Unused86', '__Unused87', '__Unused88', '__Unused89', '__Unused90', '__Unused91', '__Unused92', '__Unused93', '__Unused94', '__Unused95', '__Unused96', '__Unused97', '__Unused98', '__Unused99', '__Unused100', '__Unused101', '__Unused102', '__Unused103', '__Unused104', '__Unused105', '__Unused106', '__Unused107', '__Unused108', '__Unused109', '__Unused110', '__Unused111', '__Unused112', '__Unused113', '__Unused114', '__Unused115', '__Unused116', '__Unused117', '__Unused118', '__Unused119', '__Unused120', '__Unused121', '__Unused122', '__Unused123', '__Unused124', '__Unused125', '__Unused126', '__Unused127', 'Twitter']
+ },
+ /**
+ * Lookup262: pallet_identity::types::Judgement<Balance>
+ **/
+ PalletIdentityJudgement: {
+ _enum: {
+ Unknown: 'Null',
+ FeePaid: 'u128',
+ Reasonable: 'Null',
+ KnownGood: 'Null',
+ OutOfDate: 'Null',
+ LowQuality: 'Null',
+ Erroneous: 'Null'
+ }
+ },
+ /**
+ * Lookup265: pallet_identity::types::Registration<Balance, MaxJudgements, MaxAdditionalFields>
+ **/
+ PalletIdentityRegistration: {
+ judgements: 'Vec<(u32,PalletIdentityJudgement)>',
+ deposit: 'u128',
+ info: 'PalletIdentityIdentityInfo'
+ },
+ /**
+ * Lookup273: pallet_preimage::pallet::Call<T>
+ **/
+ PalletPreimageCall: {
+ _enum: {
+ note_preimage: {
+ bytes: 'Bytes',
+ },
+ unnote_preimage: {
+ _alias: {
+ hash_: 'hash',
+ },
+ hash_: 'H256',
+ },
+ request_preimage: {
+ _alias: {
+ hash_: 'hash',
+ },
+ hash_: 'H256',
+ },
+ unrequest_preimage: {
+ _alias: {
+ hash_: 'hash',
+ },
+ hash_: 'H256'
+ }
+ }
+ },
+ /**
+ * Lookup274: cumulus_pallet_xcmp_queue::pallet::Call<T>
**/
CumulusPalletXcmpQueueCall: {
_enum: {
@@ -1848,7 +2134,7 @@
}
},
/**
- * Lookup203: pallet_xcm::pallet::Call<T>
+ * Lookup275: pallet_xcm::pallet::Call<T>
**/
PalletXcmCall: {
_enum: {
@@ -1902,7 +2188,7 @@
}
},
/**
- * Lookup204: xcm::VersionedXcm<RuntimeCall>
+ * Lookup276: xcm::VersionedXcm<RuntimeCall>
**/
XcmVersionedXcm: {
_enum: {
@@ -1912,7 +2198,7 @@
}
},
/**
- * Lookup205: xcm::v0::Xcm<RuntimeCall>
+ * Lookup277: xcm::v0::Xcm<RuntimeCall>
**/
XcmV0Xcm: {
_enum: {
@@ -1966,7 +2252,7 @@
}
},
/**
- * Lookup207: xcm::v0::order::Order<RuntimeCall>
+ * Lookup279: xcm::v0::order::Order<RuntimeCall>
**/
XcmV0Order: {
_enum: {
@@ -2009,7 +2295,7 @@
}
},
/**
- * Lookup209: xcm::v0::Response
+ * Lookup281: xcm::v0::Response
**/
XcmV0Response: {
_enum: {
@@ -2017,7 +2303,7 @@
}
},
/**
- * Lookup210: xcm::v1::Xcm<RuntimeCall>
+ * Lookup282: xcm::v1::Xcm<RuntimeCall>
**/
XcmV1Xcm: {
_enum: {
@@ -2076,7 +2362,7 @@
}
},
/**
- * Lookup212: xcm::v1::order::Order<RuntimeCall>
+ * Lookup284: xcm::v1::order::Order<RuntimeCall>
**/
XcmV1Order: {
_enum: {
@@ -2121,7 +2407,7 @@
}
},
/**
- * Lookup214: xcm::v1::Response
+ * Lookup286: xcm::v1::Response
**/
XcmV1Response: {
_enum: {
@@ -2130,11 +2416,11 @@
}
},
/**
- * Lookup228: cumulus_pallet_xcm::pallet::Call<T>
+ * Lookup300: cumulus_pallet_xcm::pallet::Call<T>
**/
CumulusPalletXcmCall: 'Null',
/**
- * Lookup229: cumulus_pallet_dmp_queue::pallet::Call<T>
+ * Lookup301: cumulus_pallet_dmp_queue::pallet::Call<T>
**/
CumulusPalletDmpQueueCall: {
_enum: {
@@ -2145,7 +2431,7 @@
}
},
/**
- * Lookup230: pallet_inflation::pallet::Call<T>
+ * Lookup302: pallet_inflation::pallet::Call<T>
**/
PalletInflationCall: {
_enum: {
@@ -2155,7 +2441,7 @@
}
},
/**
- * Lookup231: pallet_unique::Call<T>
+ * Lookup303: pallet_unique::Call<T>
**/
PalletUniqueCall: {
_enum: {
@@ -2306,7 +2592,7 @@
}
},
/**
- * Lookup236: up_data_structs::CollectionMode
+ * Lookup308: up_data_structs::CollectionMode
**/
UpDataStructsCollectionMode: {
_enum: {
@@ -2316,7 +2602,7 @@
}
},
/**
- * Lookup237: up_data_structs::CreateCollectionData<sp_core::crypto::AccountId32>
+ * Lookup309: up_data_structs::CreateCollectionData<sp_core::crypto::AccountId32>
**/
UpDataStructsCreateCollectionData: {
mode: 'UpDataStructsCollectionMode',
@@ -2331,13 +2617,13 @@
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup239: up_data_structs::AccessMode
+ * Lookup311: up_data_structs::AccessMode
**/
UpDataStructsAccessMode: {
_enum: ['Normal', 'AllowList']
},
/**
- * Lookup241: up_data_structs::CollectionLimits
+ * Lookup313: up_data_structs::CollectionLimits
**/
UpDataStructsCollectionLimits: {
accountTokenOwnershipLimit: 'Option<u32>',
@@ -2351,7 +2637,7 @@
transfersEnabled: 'Option<bool>'
},
/**
- * Lookup243: up_data_structs::SponsoringRateLimit
+ * Lookup315: up_data_structs::SponsoringRateLimit
**/
UpDataStructsSponsoringRateLimit: {
_enum: {
@@ -2360,7 +2646,7 @@
}
},
/**
- * Lookup246: up_data_structs::CollectionPermissions
+ * Lookup318: up_data_structs::CollectionPermissions
**/
UpDataStructsCollectionPermissions: {
access: 'Option<UpDataStructsAccessMode>',
@@ -2368,7 +2654,7 @@
nesting: 'Option<UpDataStructsNestingPermissions>'
},
/**
- * Lookup248: up_data_structs::NestingPermissions
+ * Lookup320: up_data_structs::NestingPermissions
**/
UpDataStructsNestingPermissions: {
tokenOwner: 'bool',
@@ -2376,18 +2662,18 @@
restricted: 'Option<UpDataStructsOwnerRestrictedSet>'
},
/**
- * Lookup250: up_data_structs::OwnerRestrictedSet
+ * Lookup322: up_data_structs::OwnerRestrictedSet
**/
UpDataStructsOwnerRestrictedSet: 'BTreeSet<u32>',
/**
- * Lookup255: up_data_structs::PropertyKeyPermission
+ * Lookup327: up_data_structs::PropertyKeyPermission
**/
UpDataStructsPropertyKeyPermission: {
key: 'Bytes',
permission: 'UpDataStructsPropertyPermission'
},
/**
- * Lookup256: up_data_structs::PropertyPermission
+ * Lookup328: up_data_structs::PropertyPermission
**/
UpDataStructsPropertyPermission: {
mutable: 'bool',
@@ -2395,14 +2681,14 @@
tokenOwner: 'bool'
},
/**
- * Lookup259: up_data_structs::Property
+ * Lookup331: up_data_structs::Property
**/
UpDataStructsProperty: {
key: 'Bytes',
value: 'Bytes'
},
/**
- * Lookup262: up_data_structs::CreateItemData
+ * Lookup334: up_data_structs::CreateItemData
**/
UpDataStructsCreateItemData: {
_enum: {
@@ -2412,26 +2698,26 @@
}
},
/**
- * Lookup263: up_data_structs::CreateNftData
+ * Lookup335: up_data_structs::CreateNftData
**/
UpDataStructsCreateNftData: {
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup264: up_data_structs::CreateFungibleData
+ * Lookup336: up_data_structs::CreateFungibleData
**/
UpDataStructsCreateFungibleData: {
value: 'u128'
},
/**
- * Lookup265: up_data_structs::CreateReFungibleData
+ * Lookup337: up_data_structs::CreateReFungibleData
**/
UpDataStructsCreateReFungibleData: {
pieces: 'u128',
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup268: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup340: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateItemExData: {
_enum: {
@@ -2442,14 +2728,14 @@
}
},
/**
- * Lookup270: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup342: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateNftExData: {
properties: 'Vec<UpDataStructsProperty>',
owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
},
/**
- * Lookup277: up_data_structs::CreateRefungibleExSingleOwner<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup349: up_data_structs::CreateRefungibleExSingleOwner<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateRefungibleExSingleOwner: {
user: 'PalletEvmAccountBasicCrossAccountIdRepr',
@@ -2457,14 +2743,14 @@
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup279: up_data_structs::CreateRefungibleExMultipleOwners<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup351: up_data_structs::CreateRefungibleExMultipleOwners<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateRefungibleExMultipleOwners: {
users: 'BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>',
properties: 'Vec<UpDataStructsProperty>'
},
/**
- * Lookup280: pallet_configuration::pallet::Call<T>
+ * Lookup352: pallet_configuration::pallet::Call<T>
**/
PalletConfigurationCall: {
_enum: {
@@ -2492,7 +2778,7 @@
}
},
/**
- * Lookup285: pallet_configuration::AppPromotionConfiguration<BlockNumber>
+ * Lookup357: pallet_configuration::AppPromotionConfiguration<BlockNumber>
**/
PalletConfigurationAppPromotionConfiguration: {
recalculationInterval: 'Option<u32>',
@@ -2501,220 +2787,16 @@
maxStakersPerCalculation: 'Option<u8>'
},
/**
- * Lookup289: pallet_template_transaction_payment::Call<T>
+ * Lookup361: pallet_template_transaction_payment::Call<T>
**/
PalletTemplateTransactionPaymentCall: 'Null',
/**
- * Lookup290: pallet_structure::pallet::Call<T>
+ * Lookup362: pallet_structure::pallet::Call<T>
**/
PalletStructureCall: 'Null',
/**
- * Lookup291: pallet_rmrk_core::pallet::Call<T>
- **/
- PalletRmrkCoreCall: {
- _enum: {
- create_collection: {
- metadata: 'Bytes',
- max: 'Option<u32>',
- symbol: 'Bytes',
- },
- destroy_collection: {
- collectionId: 'u32',
- },
- change_collection_issuer: {
- collectionId: 'u32',
- newIssuer: 'MultiAddress',
- },
- lock_collection: {
- collectionId: 'u32',
- },
- mint_nft: {
- owner: 'Option<AccountId32>',
- collectionId: 'u32',
- recipient: 'Option<AccountId32>',
- royaltyAmount: 'Option<Permill>',
- metadata: 'Bytes',
- transferable: 'bool',
- resources: 'Option<Vec<RmrkTraitsResourceResourceTypes>>',
- },
- burn_nft: {
- collectionId: 'u32',
- nftId: 'u32',
- maxBurns: 'u32',
- },
- send: {
- rmrkCollectionId: 'u32',
- rmrkNftId: 'u32',
- newOwner: 'RmrkTraitsNftAccountIdOrCollectionNftTuple',
- },
- accept_nft: {
- rmrkCollectionId: 'u32',
- rmrkNftId: 'u32',
- newOwner: 'RmrkTraitsNftAccountIdOrCollectionNftTuple',
- },
- reject_nft: {
- rmrkCollectionId: 'u32',
- rmrkNftId: 'u32',
- },
- accept_resource: {
- rmrkCollectionId: 'u32',
- rmrkNftId: 'u32',
- resourceId: 'u32',
- },
- accept_resource_removal: {
- rmrkCollectionId: 'u32',
- rmrkNftId: 'u32',
- resourceId: 'u32',
- },
- set_property: {
- rmrkCollectionId: 'Compact<u32>',
- maybeNftId: 'Option<u32>',
- key: 'Bytes',
- value: 'Bytes',
- },
- set_priority: {
- rmrkCollectionId: 'u32',
- rmrkNftId: 'u32',
- priorities: 'Vec<u32>',
- },
- add_basic_resource: {
- rmrkCollectionId: 'u32',
- nftId: 'u32',
- resource: 'RmrkTraitsResourceBasicResource',
- },
- add_composable_resource: {
- rmrkCollectionId: 'u32',
- nftId: 'u32',
- resource: 'RmrkTraitsResourceComposableResource',
- },
- add_slot_resource: {
- rmrkCollectionId: 'u32',
- nftId: 'u32',
- resource: 'RmrkTraitsResourceSlotResource',
- },
- remove_resource: {
- rmrkCollectionId: 'u32',
- nftId: 'u32',
- resourceId: 'u32'
- }
- }
- },
- /**
- * Lookup297: rmrk_traits::resource::ResourceTypes<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
- **/
- RmrkTraitsResourceResourceTypes: {
- _enum: {
- Basic: 'RmrkTraitsResourceBasicResource',
- Composable: 'RmrkTraitsResourceComposableResource',
- Slot: 'RmrkTraitsResourceSlotResource'
- }
- },
- /**
- * Lookup299: rmrk_traits::resource::BasicResource<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
- **/
- RmrkTraitsResourceBasicResource: {
- src: 'Option<Bytes>',
- metadata: 'Option<Bytes>',
- license: 'Option<Bytes>',
- thumb: 'Option<Bytes>'
- },
- /**
- * Lookup301: rmrk_traits::resource::ComposableResource<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
- **/
- RmrkTraitsResourceComposableResource: {
- parts: 'Vec<u32>',
- base: 'u32',
- src: 'Option<Bytes>',
- metadata: 'Option<Bytes>',
- license: 'Option<Bytes>',
- thumb: 'Option<Bytes>'
- },
- /**
- * Lookup302: rmrk_traits::resource::SlotResource<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
- **/
- RmrkTraitsResourceSlotResource: {
- base: 'u32',
- src: 'Option<Bytes>',
- metadata: 'Option<Bytes>',
- slot: 'u32',
- license: 'Option<Bytes>',
- thumb: 'Option<Bytes>'
- },
- /**
- * Lookup305: pallet_rmrk_equip::pallet::Call<T>
- **/
- PalletRmrkEquipCall: {
- _enum: {
- create_base: {
- baseType: 'Bytes',
- symbol: 'Bytes',
- parts: 'Vec<RmrkTraitsPartPartType>',
- },
- theme_add: {
- baseId: 'u32',
- theme: 'RmrkTraitsTheme',
- },
- equippable: {
- baseId: 'u32',
- slotId: 'u32',
- equippables: 'RmrkTraitsPartEquippableList'
- }
- }
- },
- /**
- * Lookup308: rmrk_traits::part::PartType<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup363: pallet_app_promotion::pallet::Call<T>
**/
- RmrkTraitsPartPartType: {
- _enum: {
- FixedPart: 'RmrkTraitsPartFixedPart',
- SlotPart: 'RmrkTraitsPartSlotPart'
- }
- },
- /**
- * Lookup310: rmrk_traits::part::FixedPart<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
- **/
- RmrkTraitsPartFixedPart: {
- id: 'u32',
- z: 'u32',
- src: 'Bytes'
- },
- /**
- * Lookup311: rmrk_traits::part::SlotPart<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
- **/
- RmrkTraitsPartSlotPart: {
- id: 'u32',
- equippable: 'RmrkTraitsPartEquippableList',
- src: 'Bytes',
- z: 'u32'
- },
- /**
- * Lookup312: rmrk_traits::part::EquippableList<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
- **/
- RmrkTraitsPartEquippableList: {
- _enum: {
- All: 'Null',
- Empty: 'Null',
- Custom: 'Vec<u32>'
- }
- },
- /**
- * Lookup314: rmrk_traits::theme::Theme<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<rmrk_traits::theme::ThemeProperty<sp_core::bounded::bounded_vec::BoundedVec<T, S>>, S>>
- **/
- RmrkTraitsTheme: {
- name: 'Bytes',
- properties: 'Vec<RmrkTraitsThemeThemeProperty>',
- inherit: 'bool'
- },
- /**
- * Lookup316: rmrk_traits::theme::ThemeProperty<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
- **/
- RmrkTraitsThemeThemeProperty: {
- key: 'Bytes',
- value: 'Bytes'
- },
- /**
- * Lookup318: pallet_app_promotion::pallet::Call<T>
- **/
PalletAppPromotionCall: {
_enum: {
set_admin_address: {
@@ -2723,7 +2805,7 @@
stake: {
amount: 'u128',
},
- unstake: 'Null',
+ unstake_all: 'Null',
sponsor_collection: {
collectionId: 'u32',
},
@@ -2737,12 +2819,15 @@
contractId: 'H160',
},
payout_stakers: {
- stakersNumber: 'Option<u8>'
+ stakersNumber: 'Option<u8>',
+ },
+ unstake_partial: {
+ amount: 'u128'
}
}
},
/**
- * Lookup319: pallet_foreign_assets::module::Call<T>
+ * Lookup364: pallet_foreign_assets::module::Call<T>
**/
PalletForeignAssetsModuleCall: {
_enum: {
@@ -2759,7 +2844,7 @@
}
},
/**
- * Lookup320: pallet_evm::pallet::Call<T>
+ * Lookup365: pallet_evm::pallet::Call<T>
**/
PalletEvmCall: {
_enum: {
@@ -2802,7 +2887,7 @@
}
},
/**
- * Lookup326: pallet_ethereum::pallet::Call<T>
+ * Lookup371: pallet_ethereum::pallet::Call<T>
**/
PalletEthereumCall: {
_enum: {
@@ -2812,7 +2897,7 @@
}
},
/**
- * Lookup327: ethereum::transaction::TransactionV2
+ * Lookup372: ethereum::transaction::TransactionV2
**/
EthereumTransactionTransactionV2: {
_enum: {
@@ -2822,7 +2907,7 @@
}
},
/**
- * Lookup328: ethereum::transaction::LegacyTransaction
+ * Lookup373: ethereum::transaction::LegacyTransaction
**/
EthereumTransactionLegacyTransaction: {
nonce: 'U256',
@@ -2834,7 +2919,7 @@
signature: 'EthereumTransactionTransactionSignature'
},
/**
- * Lookup329: ethereum::transaction::TransactionAction
+ * Lookup374: ethereum::transaction::TransactionAction
**/
EthereumTransactionTransactionAction: {
_enum: {
@@ -2843,7 +2928,7 @@
}
},
/**
- * Lookup330: ethereum::transaction::TransactionSignature
+ * Lookup375: ethereum::transaction::TransactionSignature
**/
EthereumTransactionTransactionSignature: {
v: 'u64',
@@ -2851,7 +2936,7 @@
s: 'H256'
},
/**
- * Lookup332: ethereum::transaction::EIP2930Transaction
+ * Lookup377: ethereum::transaction::EIP2930Transaction
**/
EthereumTransactionEip2930Transaction: {
chainId: 'u64',
@@ -2867,14 +2952,14 @@
s: 'H256'
},
/**
- * Lookup334: ethereum::transaction::AccessListItem
+ * Lookup379: ethereum::transaction::AccessListItem
**/
EthereumTransactionAccessListItem: {
address: 'H160',
storageKeys: 'Vec<H256>'
},
/**
- * Lookup335: ethereum::transaction::EIP1559Transaction
+ * Lookup380: ethereum::transaction::EIP1559Transaction
**/
EthereumTransactionEip1559Transaction: {
chainId: 'u64',
@@ -2891,7 +2976,7 @@
s: 'H256'
},
/**
- * Lookup336: pallet_evm_migration::pallet::Call<T>
+ * Lookup381: pallet_evm_migration::pallet::Call<T>
**/
PalletEvmMigrationCall: {
_enum: {
@@ -2910,18 +2995,29 @@
logs: 'Vec<EthereumLog>',
},
insert_events: {
- events: 'Vec<Bytes>'
- }
+ events: 'Vec<Bytes>',
+ },
+ remove_rmrk_data: 'Null'
}
},
/**
- * Lookup340: pallet_maintenance::pallet::Call<T>
+ * Lookup385: pallet_maintenance::pallet::Call<T>
**/
PalletMaintenanceCall: {
- _enum: ['enable', 'disable']
+ _enum: {
+ enable: 'Null',
+ disable: 'Null',
+ execute_preimage: {
+ _alias: {
+ hash_: 'hash',
+ },
+ hash_: 'H256',
+ weightBound: 'SpWeightsWeightV2Weight'
+ }
+ }
},
/**
- * Lookup341: pallet_test_utils::pallet::Call<T>
+ * Lookup386: pallet_test_utils::pallet::Call<T>
**/
PalletTestUtilsCall: {
_enum: {
@@ -2940,32 +3036,32 @@
}
},
/**
- * Lookup343: pallet_sudo::pallet::Error<T>
+ * Lookup388: pallet_sudo::pallet::Error<T>
**/
PalletSudoError: {
_enum: ['RequireSudo']
},
/**
- * Lookup345: orml_vesting::module::Error<T>
+ * Lookup390: orml_vesting::module::Error<T>
**/
OrmlVestingModuleError: {
_enum: ['ZeroVestingPeriod', 'ZeroVestingPeriodCount', 'InsufficientBalanceToLock', 'TooManyVestingSchedules', 'AmountLow', 'MaxVestingSchedulesExceeded']
},
/**
- * Lookup346: orml_xtokens::module::Error<T>
+ * Lookup391: orml_xtokens::module::Error<T>
**/
OrmlXtokensModuleError: {
_enum: ['AssetHasNoReserve', 'NotCrossChainTransfer', 'InvalidDest', 'NotCrossChainTransferableCurrency', 'UnweighableMessage', 'XcmExecutionFailed', 'CannotReanchor', 'InvalidAncestry', 'InvalidAsset', 'DestinationNotInvertible', 'BadVersion', 'DistinctReserveForAssetAndFee', 'ZeroFee', 'ZeroAmount', 'TooManyAssetsBeingSent', 'AssetIndexNonExistent', 'FeeNotEnough', 'NotSupportedMultiLocation', 'MinXcmFeeNotDefined']
},
/**
- * Lookup349: orml_tokens::BalanceLock<Balance>
+ * Lookup394: orml_tokens::BalanceLock<Balance>
**/
OrmlTokensBalanceLock: {
id: '[u8;8]',
amount: 'u128'
},
/**
- * Lookup351: orml_tokens::AccountData<Balance>
+ * Lookup396: orml_tokens::AccountData<Balance>
**/
OrmlTokensAccountData: {
free: 'u128',
@@ -2973,20 +3069,56 @@
frozen: 'u128'
},
/**
- * Lookup353: orml_tokens::ReserveData<ReserveIdentifier, Balance>
+ * Lookup398: orml_tokens::ReserveData<ReserveIdentifier, Balance>
**/
OrmlTokensReserveData: {
id: 'Null',
amount: 'u128'
},
/**
- * Lookup355: orml_tokens::module::Error<T>
+ * Lookup400: orml_tokens::module::Error<T>
**/
OrmlTokensModuleError: {
_enum: ['BalanceTooLow', 'AmountIntoBalanceFailed', 'LiquidityRestrictions', 'MaxLocksExceeded', 'KeepAlive', 'ExistentialDeposit', 'DeadAccount', 'TooManyReserves']
},
/**
- * Lookup357: cumulus_pallet_xcmp_queue::InboundChannelDetails
+ * Lookup405: pallet_identity::types::RegistrarInfo<Balance, sp_core::crypto::AccountId32>
+ **/
+ PalletIdentityRegistrarInfo: {
+ account: 'AccountId32',
+ fee: 'u128',
+ fields: 'PalletIdentityBitFlags'
+ },
+ /**
+ * Lookup407: pallet_identity::pallet::Error<T>
+ **/
+ PalletIdentityError: {
+ _enum: ['TooManySubAccounts', 'NotFound', 'NotNamed', 'EmptyIndex', 'FeeChanged', 'NoIdentity', 'StickyJudgement', 'JudgementGiven', 'InvalidJudgement', 'InvalidIndex', 'InvalidTarget', 'TooManyFields', 'TooManyRegistrars', 'AlreadyClaimed', 'NotSub', 'NotOwned', 'JudgementForDifferentIdentity', 'JudgementPaymentFailed']
+ },
+ /**
+ * Lookup408: pallet_preimage::RequestStatus<sp_core::crypto::AccountId32, Balance>
+ **/
+ PalletPreimageRequestStatus: {
+ _enum: {
+ Unrequested: {
+ deposit: '(AccountId32,u128)',
+ len: 'u32',
+ },
+ Requested: {
+ deposit: 'Option<(AccountId32,u128)>',
+ count: 'u32',
+ len: 'Option<u32>'
+ }
+ }
+ },
+ /**
+ * Lookup413: pallet_preimage::pallet::Error<T>
+ **/
+ PalletPreimageError: {
+ _enum: ['TooBig', 'AlreadyNoted', 'NotAuthorized', 'NotNoted', 'Requested', 'NotRequested']
+ },
+ /**
+ * Lookup415: cumulus_pallet_xcmp_queue::InboundChannelDetails
**/
CumulusPalletXcmpQueueInboundChannelDetails: {
sender: 'u32',
@@ -2994,19 +3126,19 @@
messageMetadata: 'Vec<(u32,PolkadotParachainPrimitivesXcmpMessageFormat)>'
},
/**
- * Lookup358: cumulus_pallet_xcmp_queue::InboundState
+ * Lookup416: cumulus_pallet_xcmp_queue::InboundState
**/
CumulusPalletXcmpQueueInboundState: {
_enum: ['Ok', 'Suspended']
},
/**
- * Lookup361: polkadot_parachain::primitives::XcmpMessageFormat
+ * Lookup419: polkadot_parachain::primitives::XcmpMessageFormat
**/
PolkadotParachainPrimitivesXcmpMessageFormat: {
_enum: ['ConcatenatedVersionedXcm', 'ConcatenatedEncodedBlob', 'Signals']
},
/**
- * Lookup364: cumulus_pallet_xcmp_queue::OutboundChannelDetails
+ * Lookup422: cumulus_pallet_xcmp_queue::OutboundChannelDetails
**/
CumulusPalletXcmpQueueOutboundChannelDetails: {
recipient: 'u32',
@@ -3016,13 +3148,13 @@
lastIndex: 'u16'
},
/**
- * Lookup365: cumulus_pallet_xcmp_queue::OutboundState
+ * Lookup423: cumulus_pallet_xcmp_queue::OutboundState
**/
CumulusPalletXcmpQueueOutboundState: {
_enum: ['Ok', 'Suspended']
},
/**
- * Lookup367: cumulus_pallet_xcmp_queue::QueueConfigData
+ * Lookup425: cumulus_pallet_xcmp_queue::QueueConfigData
**/
CumulusPalletXcmpQueueQueueConfigData: {
suspendThreshold: 'u32',
@@ -3033,29 +3165,29 @@
xcmpMaxIndividualWeight: 'SpWeightsWeightV2Weight'
},
/**
- * Lookup369: cumulus_pallet_xcmp_queue::pallet::Error<T>
+ * Lookup427: cumulus_pallet_xcmp_queue::pallet::Error<T>
**/
CumulusPalletXcmpQueueError: {
_enum: ['FailedToSend', 'BadXcmOrigin', 'BadXcm', 'BadOverweightIndex', 'WeightOverLimit']
},
/**
- * Lookup370: pallet_xcm::pallet::Error<T>
+ * Lookup428: pallet_xcm::pallet::Error<T>
**/
PalletXcmError: {
_enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed']
},
/**
- * Lookup371: cumulus_pallet_xcm::pallet::Error<T>
+ * Lookup429: cumulus_pallet_xcm::pallet::Error<T>
**/
CumulusPalletXcmError: 'Null',
/**
- * Lookup372: cumulus_pallet_dmp_queue::ConfigData
+ * Lookup430: cumulus_pallet_dmp_queue::ConfigData
**/
CumulusPalletDmpQueueConfigData: {
maxIndividual: 'SpWeightsWeightV2Weight'
},
/**
- * Lookup373: cumulus_pallet_dmp_queue::PageIndexData
+ * Lookup431: cumulus_pallet_dmp_queue::PageIndexData
**/
CumulusPalletDmpQueuePageIndexData: {
beginUsed: 'u32',
@@ -3063,25 +3195,25 @@
overweightCount: 'u64'
},
/**
- * Lookup376: cumulus_pallet_dmp_queue::pallet::Error<T>
+ * Lookup434: cumulus_pallet_dmp_queue::pallet::Error<T>
**/
CumulusPalletDmpQueueError: {
_enum: ['Unknown', 'OverLimit']
},
/**
- * Lookup380: pallet_unique::Error<T>
+ * Lookup438: pallet_unique::Error<T>
**/
PalletUniqueError: {
_enum: ['CollectionDecimalPointLimitExceeded', 'EmptyArgument', 'RepartitionCalledOnNonRefungibleCollection']
},
/**
- * Lookup381: pallet_configuration::pallet::Error<T>
+ * Lookup439: pallet_configuration::pallet::Error<T>
**/
PalletConfigurationError: {
_enum: ['InconsistentConfiguration']
},
/**
- * Lookup382: up_data_structs::Collection<sp_core::crypto::AccountId32>
+ * Lookup440: up_data_structs::Collection<sp_core::crypto::AccountId32>
**/
UpDataStructsCollection: {
owner: 'AccountId32',
@@ -3095,7 +3227,7 @@
flags: '[u8;1]'
},
/**
- * Lookup383: up_data_structs::SponsorshipState<sp_core::crypto::AccountId32>
+ * Lookup441: up_data_structs::SponsorshipState<sp_core::crypto::AccountId32>
**/
UpDataStructsSponsorshipStateAccountId32: {
_enum: {
@@ -3105,7 +3237,7 @@
}
},
/**
- * Lookup385: up_data_structs::Properties
+ * Lookup442: up_data_structs::Properties
**/
UpDataStructsProperties: {
map: 'UpDataStructsPropertiesMapBoundedVec',
@@ -3113,15 +3245,15 @@
spaceLimit: 'u32'
},
/**
- * Lookup386: up_data_structs::PropertiesMap<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
+ * Lookup443: up_data_structs::PropertiesMap<sp_core::bounded::bounded_vec::BoundedVec<T, S>>
**/
UpDataStructsPropertiesMapBoundedVec: 'BTreeMap<Bytes, Bytes>',
/**
- * Lookup391: up_data_structs::PropertiesMap<up_data_structs::PropertyPermission>
+ * Lookup448: up_data_structs::PropertiesMap<up_data_structs::PropertyPermission>
**/
UpDataStructsPropertiesMapPropertyPermission: 'BTreeMap<Bytes, UpDataStructsPropertyPermission>',
/**
- * Lookup398: up_data_structs::CollectionStats
+ * Lookup455: up_data_structs::CollectionStats
**/
UpDataStructsCollectionStats: {
created: 'u32',
@@ -3129,18 +3261,18 @@
alive: 'u32'
},
/**
- * Lookup399: up_data_structs::TokenChild
+ * Lookup456: up_data_structs::TokenChild
**/
UpDataStructsTokenChild: {
token: 'u32',
collection: 'u32'
},
/**
- * Lookup400: PhantomType::up_data_structs<T>
+ * Lookup457: PhantomType::up_data_structs<T>
**/
- PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,RmrkTraitsCollectionCollectionInfo,RmrkTraitsNftNftInfo,RmrkTraitsResourceResourceInfo,RmrkTraitsPropertyPropertyInfo,RmrkTraitsBaseBaseInfo,RmrkTraitsPartPartType,RmrkTraitsTheme,RmrkTraitsNftNftChild,UpPovEstimateRpcPovInfo);0]',
+ PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,UpPovEstimateRpcPovInfo);0]',
/**
- * Lookup402: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup459: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsTokenData: {
properties: 'Vec<UpDataStructsProperty>',
@@ -3148,7 +3280,7 @@
pieces: 'u128'
},
/**
- * Lookup404: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>
+ * Lookup461: up_data_structs::RpcCollection<sp_core::crypto::AccountId32>
**/
UpDataStructsRpcCollection: {
owner: 'AccountId32',
@@ -3165,73 +3297,15 @@
flags: 'UpDataStructsRpcCollectionFlags'
},
/**
- * Lookup405: up_data_structs::RpcCollectionFlags
+ * Lookup462: up_data_structs::RpcCollectionFlags
**/
UpDataStructsRpcCollectionFlags: {
foreign: 'bool',
erc721metadata: 'bool'
},
/**
- * Lookup406: rmrk_traits::collection::CollectionInfo<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::crypto::AccountId32>
- **/
- RmrkTraitsCollectionCollectionInfo: {
- issuer: 'AccountId32',
- metadata: 'Bytes',
- max: 'Option<u32>',
- symbol: 'Bytes',
- nftsCount: 'u32'
- },
- /**
- * Lookup407: rmrk_traits::nft::NftInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
- **/
- RmrkTraitsNftNftInfo: {
- owner: 'RmrkTraitsNftAccountIdOrCollectionNftTuple',
- royalty: 'Option<RmrkTraitsNftRoyaltyInfo>',
- metadata: 'Bytes',
- equipped: 'bool',
- pending: 'bool'
- },
- /**
- * Lookup409: rmrk_traits::nft::RoyaltyInfo<sp_core::crypto::AccountId32, sp_arithmetic::per_things::Permill>
+ * Lookup463: up_pov_estimate_rpc::PovInfo
**/
- RmrkTraitsNftRoyaltyInfo: {
- recipient: 'AccountId32',
- amount: 'Permill'
- },
- /**
- * Lookup410: rmrk_traits::resource::ResourceInfo<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
- **/
- RmrkTraitsResourceResourceInfo: {
- id: 'u32',
- resource: 'RmrkTraitsResourceResourceTypes',
- pending: 'bool',
- pendingRemoval: 'bool'
- },
- /**
- * Lookup411: rmrk_traits::property::PropertyInfo<sp_core::bounded::bounded_vec::BoundedVec<T, S>, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
- **/
- RmrkTraitsPropertyPropertyInfo: {
- key: 'Bytes',
- value: 'Bytes'
- },
- /**
- * Lookup412: rmrk_traits::base::BaseInfo<sp_core::crypto::AccountId32, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
- **/
- RmrkTraitsBaseBaseInfo: {
- issuer: 'AccountId32',
- baseType: 'Bytes',
- symbol: 'Bytes'
- },
- /**
- * Lookup413: rmrk_traits::nft::NftChild
- **/
- RmrkTraitsNftNftChild: {
- collectionId: 'u32',
- nftId: 'u32'
- },
- /**
- * Lookup414: up_pov_estimate_rpc::PovInfo
- **/
UpPovEstimateRpcPovInfo: {
proofSize: 'u64',
compactProofSize: 'u64',
@@ -3240,7 +3314,7 @@
keyValues: 'Vec<UpPovEstimateRpcTrieKeyValue>'
},
/**
- * Lookup417: sp_runtime::transaction_validity::TransactionValidityError
+ * Lookup466: sp_runtime::transaction_validity::TransactionValidityError
**/
SpRuntimeTransactionValidityTransactionValidityError: {
_enum: {
@@ -3249,7 +3323,7 @@
}
},
/**
- * Lookup418: sp_runtime::transaction_validity::InvalidTransaction
+ * Lookup467: sp_runtime::transaction_validity::InvalidTransaction
**/
SpRuntimeTransactionValidityInvalidTransaction: {
_enum: {
@@ -3267,7 +3341,7 @@
}
},
/**
- * Lookup419: sp_runtime::transaction_validity::UnknownTransaction
+ * Lookup468: sp_runtime::transaction_validity::UnknownTransaction
**/
SpRuntimeTransactionValidityUnknownTransaction: {
_enum: {
@@ -3277,86 +3351,74 @@
}
},
/**
- * Lookup421: up_pov_estimate_rpc::TrieKeyValue
+ * Lookup470: up_pov_estimate_rpc::TrieKeyValue
**/
UpPovEstimateRpcTrieKeyValue: {
key: 'Bytes',
value: 'Bytes'
},
/**
- * Lookup423: pallet_common::pallet::Error<T>
+ * Lookup472: 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', 'AddressIsNotEthMirror', 'AddressIsZero', 'UnsupportedOperation', 'NotSufficientFounds', 'UserIsNotAllowedToNest', 'SourceCollectionIsNotAllowedToNest', 'CollectionFieldSizeExceeded', 'NoSpaceForProperty', 'PropertyLimitReached', 'PropertyKeyIsTooLong', 'InvalidCharacterInPropertyKey', 'EmptyPropertyKey', 'CollectionIsExternal', 'CollectionIsInternal', 'ConfirmSponsorshipFail', 'UserIsNotCollectionAdmin']
},
/**
- * Lookup425: pallet_fungible::pallet::Error<T>
+ * Lookup474: pallet_fungible::pallet::Error<T>
**/
PalletFungibleError: {
_enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed', 'SettingAllowanceForAllNotAllowed', 'FungibleTokensAreAlwaysValid']
},
/**
- * Lookup429: pallet_refungible::pallet::Error<T>
+ * Lookup478: pallet_refungible::pallet::Error<T>
**/
PalletRefungibleError: {
_enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RepartitionWhileNotOwningAllPieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
},
/**
- * Lookup430: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup479: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
PalletNonfungibleItemData: {
owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
},
/**
- * Lookup432: up_data_structs::PropertyScope
+ * Lookup481: up_data_structs::PropertyScope
**/
UpDataStructsPropertyScope: {
_enum: ['None', 'Rmrk']
},
/**
- * Lookup435: pallet_nonfungible::pallet::Error<T>
+ * Lookup484: pallet_nonfungible::pallet::Error<T>
**/
PalletNonfungibleError: {
_enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount', 'CantBurnNftWithChildren']
},
/**
- * Lookup436: pallet_structure::pallet::Error<T>
+ * Lookup485: pallet_structure::pallet::Error<T>
**/
PalletStructureError: {
- _enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound']
+ _enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound', 'CantNestTokenUnderCollection']
},
/**
- * Lookup437: 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']
- },
- /**
- * Lookup439: pallet_rmrk_equip::pallet::Error<T>
- **/
- PalletRmrkEquipError: {
- _enum: ['PermissionError', 'NoAvailableBaseId', 'NoAvailablePartId', 'BaseDoesntExist', 'NeedsDefaultThemeFirst', 'PartDoesntExist', 'NoEquippableOnFixedPart']
- },
- /**
- * Lookup445: pallet_app_promotion::pallet::Error<T>
+ * Lookup490: pallet_app_promotion::pallet::Error<T>
**/
PalletAppPromotionError: {
- _enum: ['AdminNotSet', 'NoPermission', 'NotSufficientFunds', 'PendingForBlockOverflow', 'SponsorNotSet', 'IncorrectLockedBalanceOperation']
+ _enum: ['AdminNotSet', 'NoPermission', 'NotSufficientFunds', 'PendingForBlockOverflow', 'SponsorNotSet', 'IncorrectLockedBalanceOperation', 'InsufficientStakedBalance']
},
/**
- * Lookup446: pallet_foreign_assets::module::Error<T>
+ * Lookup491: pallet_foreign_assets::module::Error<T>
**/
PalletForeignAssetsModuleError: {
_enum: ['BadLocation', 'MultiLocationExisted', 'AssetIdNotExists', 'AssetIdExisted']
},
/**
- * Lookup448: pallet_evm::pallet::Error<T>
+ * Lookup493: pallet_evm::pallet::Error<T>
**/
PalletEvmError: {
_enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce', 'GasLimitTooLow', 'GasLimitTooHigh', 'Undefined', 'Reentrancy', 'TransactionMustComeFromEOA']
},
/**
- * Lookup451: fp_rpc::TransactionStatus
+ * Lookup496: fp_rpc::TransactionStatus
**/
FpRpcTransactionStatus: {
transactionHash: 'H256',
@@ -3368,11 +3430,11 @@
logsBloom: 'EthbloomBloom'
},
/**
- * Lookup453: ethbloom::Bloom
+ * Lookup498: ethbloom::Bloom
**/
EthbloomBloom: '[u8;256]',
/**
- * Lookup455: ethereum::receipt::ReceiptV3
+ * Lookup500: ethereum::receipt::ReceiptV3
**/
EthereumReceiptReceiptV3: {
_enum: {
@@ -3382,7 +3444,7 @@
}
},
/**
- * Lookup456: ethereum::receipt::EIP658ReceiptData
+ * Lookup501: ethereum::receipt::EIP658ReceiptData
**/
EthereumReceiptEip658ReceiptData: {
statusCode: 'u8',
@@ -3391,7 +3453,7 @@
logs: 'Vec<EthereumLog>'
},
/**
- * Lookup457: ethereum::block::Block<ethereum::transaction::TransactionV2>
+ * Lookup502: ethereum::block::Block<ethereum::transaction::TransactionV2>
**/
EthereumBlock: {
header: 'EthereumHeader',
@@ -3399,7 +3461,7 @@
ommers: 'Vec<EthereumHeader>'
},
/**
- * Lookup458: ethereum::header::Header
+ * Lookup503: ethereum::header::Header
**/
EthereumHeader: {
parentHash: 'H256',
@@ -3419,23 +3481,23 @@
nonce: 'EthereumTypesHashH64'
},
/**
- * Lookup459: ethereum_types::hash::H64
+ * Lookup504: ethereum_types::hash::H64
**/
EthereumTypesHashH64: '[u8;8]',
/**
- * Lookup464: pallet_ethereum::pallet::Error<T>
+ * Lookup509: pallet_ethereum::pallet::Error<T>
**/
PalletEthereumError: {
_enum: ['InvalidSignature', 'PreLogExists']
},
/**
- * Lookup465: pallet_evm_coder_substrate::pallet::Error<T>
+ * Lookup510: pallet_evm_coder_substrate::pallet::Error<T>
**/
PalletEvmCoderSubstrateError: {
_enum: ['OutOfGas', 'OutOfFund']
},
/**
- * Lookup466: up_data_structs::SponsorshipState<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup511: up_data_structs::SponsorshipState<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsSponsorshipStateBasicCrossAccountIdRepr: {
_enum: {
@@ -3445,35 +3507,35 @@
}
},
/**
- * Lookup467: pallet_evm_contract_helpers::SponsoringModeT
+ * Lookup512: pallet_evm_contract_helpers::SponsoringModeT
**/
PalletEvmContractHelpersSponsoringModeT: {
_enum: ['Disabled', 'Allowlisted', 'Generous']
},
/**
- * Lookup473: pallet_evm_contract_helpers::pallet::Error<T>
+ * Lookup518: pallet_evm_contract_helpers::pallet::Error<T>
**/
PalletEvmContractHelpersError: {
_enum: ['NoPermission', 'NoPendingSponsor', 'TooManyMethodsHaveSponsoredLimit']
},
/**
- * Lookup474: pallet_evm_migration::pallet::Error<T>
+ * Lookup519: pallet_evm_migration::pallet::Error<T>
**/
PalletEvmMigrationError: {
_enum: ['AccountNotEmpty', 'AccountIsNotMigrating', 'BadEvent']
},
/**
- * Lookup475: pallet_maintenance::pallet::Error<T>
+ * Lookup520: pallet_maintenance::pallet::Error<T>
**/
PalletMaintenanceError: 'Null',
/**
- * Lookup476: pallet_test_utils::pallet::Error<T>
+ * Lookup521: pallet_test_utils::pallet::Error<T>
**/
PalletTestUtilsError: {
_enum: ['TestPalletDisabled', 'TriggerRollback']
},
/**
- * Lookup478: sp_runtime::MultiSignature
+ * Lookup523: sp_runtime::MultiSignature
**/
SpRuntimeMultiSignature: {
_enum: {
@@ -3483,55 +3545,55 @@
}
},
/**
- * Lookup479: sp_core::ed25519::Signature
+ * Lookup524: sp_core::ed25519::Signature
**/
SpCoreEd25519Signature: '[u8;64]',
/**
- * Lookup481: sp_core::sr25519::Signature
+ * Lookup526: sp_core::sr25519::Signature
**/
SpCoreSr25519Signature: '[u8;64]',
/**
- * Lookup482: sp_core::ecdsa::Signature
+ * Lookup527: sp_core::ecdsa::Signature
**/
SpCoreEcdsaSignature: '[u8;65]',
/**
- * Lookup485: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
+ * Lookup530: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
**/
FrameSystemExtensionsCheckSpecVersion: 'Null',
/**
- * Lookup486: frame_system::extensions::check_tx_version::CheckTxVersion<T>
+ * Lookup531: frame_system::extensions::check_tx_version::CheckTxVersion<T>
**/
FrameSystemExtensionsCheckTxVersion: 'Null',
/**
- * Lookup487: frame_system::extensions::check_genesis::CheckGenesis<T>
+ * Lookup532: frame_system::extensions::check_genesis::CheckGenesis<T>
**/
FrameSystemExtensionsCheckGenesis: 'Null',
/**
- * Lookup490: frame_system::extensions::check_nonce::CheckNonce<T>
+ * Lookup535: frame_system::extensions::check_nonce::CheckNonce<T>
**/
FrameSystemExtensionsCheckNonce: 'Compact<u32>',
/**
- * Lookup491: frame_system::extensions::check_weight::CheckWeight<T>
+ * Lookup536: frame_system::extensions::check_weight::CheckWeight<T>
**/
FrameSystemExtensionsCheckWeight: 'Null',
/**
- * Lookup492: opal_runtime::runtime_common::maintenance::CheckMaintenance
+ * Lookup537: opal_runtime::runtime_common::maintenance::CheckMaintenance
**/
OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance: 'Null',
/**
- * Lookup493: opal_runtime::runtime_common::identity::DisableIdentityCalls
+ * Lookup538: opal_runtime::runtime_common::identity::DisableIdentityCalls
**/
OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls: 'Null',
/**
- * Lookup494: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
+ * Lookup539: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
**/
PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
/**
- * Lookup495: opal_runtime::Runtime
+ * Lookup540: opal_runtime::Runtime
**/
OpalRuntimeRuntime: 'Null',
/**
- * Lookup496: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
+ * Lookup541: 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, 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, FrameSupportDispatchDispatchClass, FrameSupportDispatchDispatchInfo, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeRuntime, OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls, OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensModuleCall, OrmlTokensModuleError, OrmlTokensModuleEvent, OrmlTokensReserveData, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, OrmlXtokensModuleCall, OrmlXtokensModuleError, OrmlXtokensModuleEvent, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletConfigurationAppPromotionConfiguration, PalletConfigurationCall, PalletConfigurationError, PalletConfigurationEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersEvent, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletEvmMigrationEvent, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletForeignAssetsModuleCall, PalletForeignAssetsModuleError, PalletForeignAssetsModuleEvent, PalletForeignAssetsNativeCurrency, PalletFungibleError, PalletInflationCall, PalletMaintenanceCall, PalletMaintenanceError, PalletMaintenanceEvent, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRmrkCoreCall, PalletRmrkCoreError, PalletRmrkCoreEvent, PalletRmrkEquipCall, PalletRmrkEquipError, PalletRmrkEquipEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTestUtilsCall, PalletTestUtilsError, PalletTestUtilsEvent, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletXcmCall, PalletXcmError, PalletXcmEvent, 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, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionValidityInvalidTransaction, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityUnknownTransaction, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, 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, UpDataStructsRpcCollectionFlags, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipStateAccountId32, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo, UpPovEstimateRpcTrieKeyValue, 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, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
+import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, 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, FrameSupportDispatchDispatchClass, FrameSupportDispatchDispatchInfo, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeRuntime, OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls, OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance, OpalRuntimeRuntimeCommonSessionKeys, OrmlTokensAccountData, OrmlTokensBalanceLock, OrmlTokensModuleCall, OrmlTokensModuleError, OrmlTokensModuleEvent, OrmlTokensReserveData, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, OrmlXtokensModuleCall, OrmlXtokensModuleError, OrmlXtokensModuleEvent, PalletAppPromotionCall, PalletAppPromotionError, PalletAppPromotionEvent, PalletAuthorshipCall, PalletAuthorshipError, PalletAuthorshipUncleEntryItem, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReserveData, PalletCollatorSelectionCall, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletCommonError, PalletCommonEvent, PalletConfigurationAppPromotionConfiguration, PalletConfigurationCall, PalletConfigurationError, PalletConfigurationEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEthereumFakeTransactionFinalizer, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersEvent, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletEvmMigrationEvent, PalletForeignAssetsAssetIds, PalletForeignAssetsModuleAssetMetadata, PalletForeignAssetsModuleCall, PalletForeignAssetsModuleError, PalletForeignAssetsModuleEvent, PalletForeignAssetsNativeCurrency, PalletFungibleError, PalletIdentityBitFlags, PalletIdentityCall, PalletIdentityError, PalletIdentityEvent, PalletIdentityIdentityField, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletInflationCall, PalletMaintenanceCall, PalletMaintenanceError, PalletMaintenanceEvent, PalletNonfungibleError, PalletNonfungibleItemData, PalletPreimageCall, PalletPreimageError, PalletPreimageEvent, PalletPreimageRequestStatus, PalletRefungibleError, PalletSessionCall, PalletSessionError, PalletSessionEvent, PalletStructureCall, PalletStructureError, PalletStructureEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTestUtilsCall, PalletTestUtilsError, PalletTestUtilsEvent, PalletTimestampCall, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletXcmCall, PalletXcmError, PalletXcmEvent, PhantomTypeUpDataStructs, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpArithmeticArithmeticError, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Public, SpCoreSr25519Signature, SpRuntimeBlakeTwo256, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeHeader, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionValidityInvalidTransaction, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityUnknownTransaction, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, 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, UpDataStructsRpcCollectionFlags, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipStateAccountId32, UpDataStructsSponsorshipStateBasicCrossAccountIdRepr, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo, UpPovEstimateRpcTrieKeyValue, 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, XcmVersionedMultiAsset, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
declare module '@polkadot/types/types/registry' {
interface InterfaceTypes {
@@ -76,6 +76,7 @@
OpalRuntimeRuntime: OpalRuntimeRuntime;
OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls: OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls;
OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance: OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance;
+ OpalRuntimeRuntimeCommonSessionKeys: OpalRuntimeRuntimeCommonSessionKeys;
OrmlTokensAccountData: OrmlTokensAccountData;
OrmlTokensBalanceLock: OrmlTokensBalanceLock;
OrmlTokensModuleCall: OrmlTokensModuleCall;
@@ -92,6 +93,9 @@
PalletAppPromotionCall: PalletAppPromotionCall;
PalletAppPromotionError: PalletAppPromotionError;
PalletAppPromotionEvent: PalletAppPromotionEvent;
+ PalletAuthorshipCall: PalletAuthorshipCall;
+ PalletAuthorshipError: PalletAuthorshipError;
+ PalletAuthorshipUncleEntryItem: PalletAuthorshipUncleEntryItem;
PalletBalancesAccountData: PalletBalancesAccountData;
PalletBalancesBalanceLock: PalletBalancesBalanceLock;
PalletBalancesCall: PalletBalancesCall;
@@ -99,6 +103,9 @@
PalletBalancesEvent: PalletBalancesEvent;
PalletBalancesReasons: PalletBalancesReasons;
PalletBalancesReserveData: PalletBalancesReserveData;
+ PalletCollatorSelectionCall: PalletCollatorSelectionCall;
+ PalletCollatorSelectionError: PalletCollatorSelectionError;
+ PalletCollatorSelectionEvent: PalletCollatorSelectionEvent;
PalletCommonError: PalletCommonError;
PalletCommonEvent: PalletCommonEvent;
PalletConfigurationAppPromotionConfiguration: PalletConfigurationAppPromotionConfiguration;
@@ -127,19 +134,29 @@
PalletForeignAssetsModuleEvent: PalletForeignAssetsModuleEvent;
PalletForeignAssetsNativeCurrency: PalletForeignAssetsNativeCurrency;
PalletFungibleError: PalletFungibleError;
+ PalletIdentityBitFlags: PalletIdentityBitFlags;
+ PalletIdentityCall: PalletIdentityCall;
+ PalletIdentityError: PalletIdentityError;
+ PalletIdentityEvent: PalletIdentityEvent;
+ PalletIdentityIdentityField: PalletIdentityIdentityField;
+ PalletIdentityIdentityInfo: PalletIdentityIdentityInfo;
+ PalletIdentityJudgement: PalletIdentityJudgement;
+ PalletIdentityRegistrarInfo: PalletIdentityRegistrarInfo;
+ PalletIdentityRegistration: PalletIdentityRegistration;
PalletInflationCall: PalletInflationCall;
PalletMaintenanceCall: PalletMaintenanceCall;
PalletMaintenanceError: PalletMaintenanceError;
PalletMaintenanceEvent: PalletMaintenanceEvent;
PalletNonfungibleError: PalletNonfungibleError;
PalletNonfungibleItemData: PalletNonfungibleItemData;
+ PalletPreimageCall: PalletPreimageCall;
+ PalletPreimageError: PalletPreimageError;
+ PalletPreimageEvent: PalletPreimageEvent;
+ PalletPreimageRequestStatus: PalletPreimageRequestStatus;
PalletRefungibleError: PalletRefungibleError;
- PalletRmrkCoreCall: PalletRmrkCoreCall;
- PalletRmrkCoreError: PalletRmrkCoreError;
- PalletRmrkCoreEvent: PalletRmrkCoreEvent;
- PalletRmrkEquipCall: PalletRmrkEquipCall;
- PalletRmrkEquipError: PalletRmrkEquipError;
- PalletRmrkEquipEvent: PalletRmrkEquipEvent;
+ PalletSessionCall: PalletSessionCall;
+ PalletSessionError: PalletSessionError;
+ PalletSessionEvent: PalletSessionEvent;
PalletStructureCall: PalletStructureCall;
PalletStructureError: PalletStructureError;
PalletStructureEvent: PalletStructureEvent;
@@ -172,31 +189,18 @@
PolkadotPrimitivesV2AbridgedHrmpChannel: PolkadotPrimitivesV2AbridgedHrmpChannel;
PolkadotPrimitivesV2PersistedValidationData: PolkadotPrimitivesV2PersistedValidationData;
PolkadotPrimitivesV2UpgradeRestriction: PolkadotPrimitivesV2UpgradeRestriction;
- RmrkTraitsBaseBaseInfo: RmrkTraitsBaseBaseInfo;
- RmrkTraitsCollectionCollectionInfo: RmrkTraitsCollectionCollectionInfo;
- RmrkTraitsNftAccountIdOrCollectionNftTuple: RmrkTraitsNftAccountIdOrCollectionNftTuple;
- RmrkTraitsNftNftChild: RmrkTraitsNftNftChild;
- RmrkTraitsNftNftInfo: RmrkTraitsNftNftInfo;
- RmrkTraitsNftRoyaltyInfo: RmrkTraitsNftRoyaltyInfo;
- RmrkTraitsPartEquippableList: RmrkTraitsPartEquippableList;
- RmrkTraitsPartFixedPart: RmrkTraitsPartFixedPart;
- RmrkTraitsPartPartType: RmrkTraitsPartPartType;
- RmrkTraitsPartSlotPart: RmrkTraitsPartSlotPart;
- RmrkTraitsPropertyPropertyInfo: RmrkTraitsPropertyPropertyInfo;
- RmrkTraitsResourceBasicResource: RmrkTraitsResourceBasicResource;
- RmrkTraitsResourceComposableResource: RmrkTraitsResourceComposableResource;
- RmrkTraitsResourceResourceInfo: RmrkTraitsResourceResourceInfo;
- RmrkTraitsResourceResourceTypes: RmrkTraitsResourceResourceTypes;
- RmrkTraitsResourceSlotResource: RmrkTraitsResourceSlotResource;
- RmrkTraitsTheme: RmrkTraitsTheme;
- RmrkTraitsThemeThemeProperty: RmrkTraitsThemeThemeProperty;
+ SpArithmeticArithmeticError: SpArithmeticArithmeticError;
+ SpConsensusAuraSr25519AppSr25519Public: SpConsensusAuraSr25519AppSr25519Public;
+ SpCoreCryptoKeyTypeId: SpCoreCryptoKeyTypeId;
SpCoreEcdsaSignature: SpCoreEcdsaSignature;
SpCoreEd25519Signature: SpCoreEd25519Signature;
+ SpCoreSr25519Public: SpCoreSr25519Public;
SpCoreSr25519Signature: SpCoreSr25519Signature;
- SpRuntimeArithmeticError: SpRuntimeArithmeticError;
+ SpRuntimeBlakeTwo256: SpRuntimeBlakeTwo256;
SpRuntimeDigest: SpRuntimeDigest;
SpRuntimeDigestDigestItem: SpRuntimeDigestDigestItem;
SpRuntimeDispatchError: SpRuntimeDispatchError;
+ SpRuntimeHeader: SpRuntimeHeader;
SpRuntimeModuleError: SpRuntimeModuleError;
SpRuntimeMultiSignature: SpRuntimeMultiSignature;
SpRuntimeTokenError: SpRuntimeTokenError;
tests/src/interfaces/types-lookup.tsdiffbeforeafterboth5// this is required to allow for ambient/previous definitions5// this is required to allow for ambient/previous definitions6import '@polkadot/types/lookup';6import '@polkadot/types/lookup';778import type { Data } from '@polkadot/types';8import type { BTreeMap, BTreeSet, Bytes, Compact, Enum, Null, Option, Result, Struct, Text, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';9import type { BTreeMap, BTreeSet, Bytes, Compact, Enum, Null, Option, Result, Set, Struct, Text, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';9import type { ITuple } from '@polkadot/types-codec/types';10import type { ITuple } from '@polkadot/types-codec/types';10import type { AccountId32, Call, H160, H256, MultiAddress, Perbill, Permill } from '@polkadot/types/interfaces/runtime';11import type { AccountId32, Call, H160, H256, MultiAddress, Perbill } from '@polkadot/types/interfaces/runtime';11import type { Event } from '@polkadot/types/interfaces/system';12import type { Event } from '@polkadot/types/interfaces/system';121313declare module '@polkadot/types/lookup' {14declare module '@polkadot/types/lookup' {130 readonly isToken: boolean;131 readonly isToken: boolean;131 readonly asToken: SpRuntimeTokenError;132 readonly asToken: SpRuntimeTokenError;132 readonly isArithmetic: boolean;133 readonly isArithmetic: boolean;133 readonly asArithmetic: SpRuntimeArithmeticError;134 readonly asArithmetic: SpArithmeticArithmeticError;134 readonly isTransactional: boolean;135 readonly isTransactional: boolean;135 readonly asTransactional: SpRuntimeTransactionalError;136 readonly asTransactional: SpRuntimeTransactionalError;136 readonly isExhausted: boolean;137 readonly isExhausted: boolean;157 readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported';158 readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported';158 }159 }159160160 /** @name SpRuntimeArithmeticError (27) */161 /** @name SpArithmeticArithmeticError (27) */161 interface SpRuntimeArithmeticError extends Enum {162 interface SpArithmeticArithmeticError extends Enum {162 readonly isUnderflow: boolean;163 readonly isUnderflow: boolean;163 readonly isOverflow: boolean;164 readonly isOverflow: boolean;164 readonly isDivisionByZero: boolean;165 readonly isDivisionByZero: boolean;196 readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';197 readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';197 }198 }199200 /** @name PalletCollatorSelectionEvent (30) */201 interface PalletCollatorSelectionEvent extends Enum {202 readonly isInvulnerableAdded: boolean;203 readonly asInvulnerableAdded: {204 readonly invulnerable: AccountId32;205 } & Struct;206 readonly isInvulnerableRemoved: boolean;207 readonly asInvulnerableRemoved: {208 readonly invulnerable: AccountId32;209 } & Struct;210 readonly isLicenseObtained: boolean;211 readonly asLicenseObtained: {212 readonly accountId: AccountId32;213 readonly deposit: u128;214 } & Struct;215 readonly isLicenseReleased: boolean;216 readonly asLicenseReleased: {217 readonly accountId: AccountId32;218 readonly depositReturned: u128;219 } & Struct;220 readonly isCandidateAdded: boolean;221 readonly asCandidateAdded: {222 readonly accountId: AccountId32;223 } & Struct;224 readonly isCandidateRemoved: boolean;225 readonly asCandidateRemoved: {226 readonly accountId: AccountId32;227 } & Struct;228 readonly type: 'InvulnerableAdded' | 'InvulnerableRemoved' | 'LicenseObtained' | 'LicenseReleased' | 'CandidateAdded' | 'CandidateRemoved';229 }230231 /** @name PalletSessionEvent (31) */232 interface PalletSessionEvent extends Enum {233 readonly isNewSession: boolean;234 readonly asNewSession: {235 readonly sessionIndex: u32;236 } & Struct;237 readonly type: 'NewSession';238 }198239199 /** @name PalletBalancesEvent (30) */240 /** @name PalletBalancesEvent (32) */200 interface PalletBalancesEvent extends Enum {241 interface PalletBalancesEvent extends Enum {201 readonly isEndowed: boolean;242 readonly isEndowed: boolean;202 readonly asEndowed: {243 readonly asEndowed: {255 readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'BalanceSet' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'Deposit' | 'Withdraw' | 'Slashed';296 readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'BalanceSet' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'Deposit' | 'Withdraw' | 'Slashed';256 }297 }257298258 /** @name FrameSupportTokensMiscBalanceStatus (31) */299 /** @name FrameSupportTokensMiscBalanceStatus (33) */259 interface FrameSupportTokensMiscBalanceStatus extends Enum {300 interface FrameSupportTokensMiscBalanceStatus extends Enum {260 readonly isFree: boolean;301 readonly isFree: boolean;261 readonly isReserved: boolean;302 readonly isReserved: boolean;262 readonly type: 'Free' | 'Reserved';303 readonly type: 'Free' | 'Reserved';263 }304 }264305265 /** @name PalletTransactionPaymentEvent (32) */306 /** @name PalletTransactionPaymentEvent (34) */266 interface PalletTransactionPaymentEvent extends Enum {307 interface PalletTransactionPaymentEvent extends Enum {267 readonly isTransactionFeePaid: boolean;308 readonly isTransactionFeePaid: boolean;268 readonly asTransactionFeePaid: {309 readonly asTransactionFeePaid: {273 readonly type: 'TransactionFeePaid';314 readonly type: 'TransactionFeePaid';274 }315 }275316276 /** @name PalletTreasuryEvent (33) */317 /** @name PalletTreasuryEvent (35) */277 interface PalletTreasuryEvent extends Enum {318 interface PalletTreasuryEvent extends Enum {278 readonly isProposed: boolean;319 readonly isProposed: boolean;279 readonly asProposed: {320 readonly asProposed: {312 readonly amount: u128;353 readonly amount: u128;313 readonly beneficiary: AccountId32;354 readonly beneficiary: AccountId32;314 } & Struct;355 } & Struct;356 readonly isUpdatedInactive: boolean;357 readonly asUpdatedInactive: {358 readonly reactivated: u128;359 readonly deactivated: u128;360 } & Struct;315 readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit' | 'SpendApproved';361 readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit' | 'SpendApproved' | 'UpdatedInactive';316 }362 }317363318 /** @name PalletSudoEvent (34) */364 /** @name PalletSudoEvent (36) */319 interface PalletSudoEvent extends Enum {365 interface PalletSudoEvent extends Enum {320 readonly isSudid: boolean;366 readonly isSudid: boolean;321 readonly asSudid: {367 readonly asSudid: {332 readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';378 readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';333 }379 }334380335 /** @name OrmlVestingModuleEvent (38) */381 /** @name OrmlVestingModuleEvent (40) */336 interface OrmlVestingModuleEvent extends Enum {382 interface OrmlVestingModuleEvent extends Enum {337 readonly isVestingScheduleAdded: boolean;383 readonly isVestingScheduleAdded: boolean;338 readonly asVestingScheduleAdded: {384 readonly asVestingScheduleAdded: {352 readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';398 readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';353 }399 }354400355 /** @name OrmlVestingVestingSchedule (39) */401 /** @name OrmlVestingVestingSchedule (41) */356 interface OrmlVestingVestingSchedule extends Struct {402 interface OrmlVestingVestingSchedule extends Struct {357 readonly start: u32;403 readonly start: u32;358 readonly period: u32;404 readonly period: u32;359 readonly periodCount: u32;405 readonly periodCount: u32;360 readonly perPeriod: Compact<u128>;406 readonly perPeriod: Compact<u128>;361 }407 }362408363 /** @name OrmlXtokensModuleEvent (41) */409 /** @name OrmlXtokensModuleEvent (43) */364 interface OrmlXtokensModuleEvent extends Enum {410 interface OrmlXtokensModuleEvent extends Enum {365 readonly isTransferredMultiAssets: boolean;411 readonly isTransferredMultiAssets: boolean;366 readonly asTransferredMultiAssets: {412 readonly asTransferredMultiAssets: {372 readonly type: 'TransferredMultiAssets';418 readonly type: 'TransferredMultiAssets';373 }419 }374420375 /** @name XcmV1MultiassetMultiAssets (42) */421 /** @name XcmV1MultiassetMultiAssets (44) */376 interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}422 interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}377423378 /** @name XcmV1MultiAsset (44) */424 /** @name XcmV1MultiAsset (46) */379 interface XcmV1MultiAsset extends Struct {425 interface XcmV1MultiAsset extends Struct {380 readonly id: XcmV1MultiassetAssetId;426 readonly id: XcmV1MultiassetAssetId;381 readonly fun: XcmV1MultiassetFungibility;427 readonly fun: XcmV1MultiassetFungibility;382 }428 }383429384 /** @name XcmV1MultiassetAssetId (45) */430 /** @name XcmV1MultiassetAssetId (47) */385 interface XcmV1MultiassetAssetId extends Enum {431 interface XcmV1MultiassetAssetId extends Enum {386 readonly isConcrete: boolean;432 readonly isConcrete: boolean;387 readonly asConcrete: XcmV1MultiLocation;433 readonly asConcrete: XcmV1MultiLocation;390 readonly type: 'Concrete' | 'Abstract';436 readonly type: 'Concrete' | 'Abstract';391 }437 }392438393 /** @name XcmV1MultiLocation (46) */439 /** @name XcmV1MultiLocation (48) */394 interface XcmV1MultiLocation extends Struct {440 interface XcmV1MultiLocation extends Struct {395 readonly parents: u8;441 readonly parents: u8;396 readonly interior: XcmV1MultilocationJunctions;442 readonly interior: XcmV1MultilocationJunctions;397 }443 }398444399 /** @name XcmV1MultilocationJunctions (47) */445 /** @name XcmV1MultilocationJunctions (49) */400 interface XcmV1MultilocationJunctions extends Enum {446 interface XcmV1MultilocationJunctions extends Enum {401 readonly isHere: boolean;447 readonly isHere: boolean;402 readonly isX1: boolean;448 readonly isX1: boolean;418 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';464 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';419 }465 }420466421 /** @name XcmV1Junction (48) */467 /** @name XcmV1Junction (50) */422 interface XcmV1Junction extends Enum {468 interface XcmV1Junction extends Enum {423 readonly isParachain: boolean;469 readonly isParachain: boolean;424 readonly asParachain: Compact<u32>;470 readonly asParachain: Compact<u32>;452 readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';498 readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';453 }499 }454500455 /** @name XcmV0JunctionNetworkId (50) */501 /** @name XcmV0JunctionNetworkId (52) */456 interface XcmV0JunctionNetworkId extends Enum {502 interface XcmV0JunctionNetworkId extends Enum {457 readonly isAny: boolean;503 readonly isAny: boolean;458 readonly isNamed: boolean;504 readonly isNamed: boolean;462 readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';508 readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';463 }509 }464510465 /** @name XcmV0JunctionBodyId (53) */511 /** @name XcmV0JunctionBodyId (55) */466 interface XcmV0JunctionBodyId extends Enum {512 interface XcmV0JunctionBodyId extends Enum {467 readonly isUnit: boolean;513 readonly isUnit: boolean;468 readonly isNamed: boolean;514 readonly isNamed: boolean;473 readonly isTechnical: boolean;519 readonly isTechnical: boolean;474 readonly isLegislative: boolean;520 readonly isLegislative: boolean;475 readonly isJudicial: boolean;521 readonly isJudicial: boolean;522 readonly isDefense: boolean;523 readonly isAdministration: boolean;524 readonly isTreasury: boolean;476 readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';525 readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial' | 'Defense' | 'Administration' | 'Treasury';477 }526 }478527479 /** @name XcmV0JunctionBodyPart (54) */528 /** @name XcmV0JunctionBodyPart (56) */480 interface XcmV0JunctionBodyPart extends Enum {529 interface XcmV0JunctionBodyPart extends Enum {481 readonly isVoice: boolean;530 readonly isVoice: boolean;482 readonly isMembers: boolean;531 readonly isMembers: boolean;501 readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';550 readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';502 }551 }503552504 /** @name XcmV1MultiassetFungibility (55) */553 /** @name XcmV1MultiassetFungibility (57) */505 interface XcmV1MultiassetFungibility extends Enum {554 interface XcmV1MultiassetFungibility extends Enum {506 readonly isFungible: boolean;555 readonly isFungible: boolean;507 readonly asFungible: Compact<u128>;556 readonly asFungible: Compact<u128>;510 readonly type: 'Fungible' | 'NonFungible';559 readonly type: 'Fungible' | 'NonFungible';511 }560 }512561513 /** @name XcmV1MultiassetAssetInstance (56) */562 /** @name XcmV1MultiassetAssetInstance (58) */514 interface XcmV1MultiassetAssetInstance extends Enum {563 interface XcmV1MultiassetAssetInstance extends Enum {515 readonly isUndefined: boolean;564 readonly isUndefined: boolean;516 readonly isIndex: boolean;565 readonly isIndex: boolean;528 readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';577 readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';529 }578 }530579531 /** @name OrmlTokensModuleEvent (59) */580 /** @name OrmlTokensModuleEvent (61) */532 interface OrmlTokensModuleEvent extends Enum {581 interface OrmlTokensModuleEvent extends Enum {533 readonly isEndowed: boolean;582 readonly isEndowed: boolean;534 readonly asEndowed: {583 readonly asEndowed: {616 readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'BalanceSet' | 'TotalIssuanceSet' | 'Withdrawn' | 'Slashed' | 'Deposited' | 'LockSet' | 'LockRemoved';665 readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'BalanceSet' | 'TotalIssuanceSet' | 'Withdrawn' | 'Slashed' | 'Deposited' | 'LockSet' | 'LockRemoved';617 }666 }618667619 /** @name PalletForeignAssetsAssetIds (60) */668 /** @name PalletForeignAssetsAssetIds (62) */620 interface PalletForeignAssetsAssetIds extends Enum {669 interface PalletForeignAssetsAssetIds extends Enum {621 readonly isForeignAssetId: boolean;670 readonly isForeignAssetId: boolean;622 readonly asForeignAssetId: u32;671 readonly asForeignAssetId: u32;625 readonly type: 'ForeignAssetId' | 'NativeAssetId';674 readonly type: 'ForeignAssetId' | 'NativeAssetId';626 }675 }627676628 /** @name PalletForeignAssetsNativeCurrency (61) */677 /** @name PalletForeignAssetsNativeCurrency (63) */629 interface PalletForeignAssetsNativeCurrency extends Enum {678 interface PalletForeignAssetsNativeCurrency extends Enum {630 readonly isHere: boolean;679 readonly isHere: boolean;631 readonly isParent: boolean;680 readonly isParent: boolean;632 readonly type: 'Here' | 'Parent';681 readonly type: 'Here' | 'Parent';633 }682 }683684 /** @name PalletIdentityEvent (64) */685 interface PalletIdentityEvent extends Enum {686 readonly isIdentitySet: boolean;687 readonly asIdentitySet: {688 readonly who: AccountId32;689 } & Struct;690 readonly isIdentityCleared: boolean;691 readonly asIdentityCleared: {692 readonly who: AccountId32;693 readonly deposit: u128;694 } & Struct;695 readonly isIdentityKilled: boolean;696 readonly asIdentityKilled: {697 readonly who: AccountId32;698 readonly deposit: u128;699 } & Struct;700 readonly isIdentitiesInserted: boolean;701 readonly asIdentitiesInserted: {702 readonly amount: u32;703 } & Struct;704 readonly isIdentitiesRemoved: boolean;705 readonly asIdentitiesRemoved: {706 readonly amount: u32;707 } & Struct;708 readonly isJudgementRequested: boolean;709 readonly asJudgementRequested: {710 readonly who: AccountId32;711 readonly registrarIndex: u32;712 } & Struct;713 readonly isJudgementUnrequested: boolean;714 readonly asJudgementUnrequested: {715 readonly who: AccountId32;716 readonly registrarIndex: u32;717 } & Struct;718 readonly isJudgementGiven: boolean;719 readonly asJudgementGiven: {720 readonly target: AccountId32;721 readonly registrarIndex: u32;722 } & Struct;723 readonly isRegistrarAdded: boolean;724 readonly asRegistrarAdded: {725 readonly registrarIndex: u32;726 } & Struct;727 readonly isSubIdentityAdded: boolean;728 readonly asSubIdentityAdded: {729 readonly sub: AccountId32;730 readonly main: AccountId32;731 readonly deposit: u128;732 } & Struct;733 readonly isSubIdentityRemoved: boolean;734 readonly asSubIdentityRemoved: {735 readonly sub: AccountId32;736 readonly main: AccountId32;737 readonly deposit: u128;738 } & Struct;739 readonly isSubIdentityRevoked: boolean;740 readonly asSubIdentityRevoked: {741 readonly sub: AccountId32;742 readonly main: AccountId32;743 readonly deposit: u128;744 } & Struct;745 readonly isSubIdentitiesInserted: boolean;746 readonly asSubIdentitiesInserted: {747 readonly amount: u32;748 } & Struct;749 readonly type: 'IdentitySet' | 'IdentityCleared' | 'IdentityKilled' | 'IdentitiesInserted' | 'IdentitiesRemoved' | 'JudgementRequested' | 'JudgementUnrequested' | 'JudgementGiven' | 'RegistrarAdded' | 'SubIdentityAdded' | 'SubIdentityRemoved' | 'SubIdentityRevoked' | 'SubIdentitiesInserted';750 }751752 /** @name PalletPreimageEvent (65) */753 interface PalletPreimageEvent extends Enum {754 readonly isNoted: boolean;755 readonly asNoted: {756 readonly hash_: H256;757 } & Struct;758 readonly isRequested: boolean;759 readonly asRequested: {760 readonly hash_: H256;761 } & Struct;762 readonly isCleared: boolean;763 readonly asCleared: {764 readonly hash_: H256;765 } & Struct;766 readonly type: 'Noted' | 'Requested' | 'Cleared';767 }634768635 /** @name CumulusPalletXcmpQueueEvent (62) */769 /** @name CumulusPalletXcmpQueueEvent (66) */636 interface CumulusPalletXcmpQueueEvent extends Enum {770 interface CumulusPalletXcmpQueueEvent extends Enum {637 readonly isSuccess: boolean;771 readonly isSuccess: boolean;638 readonly asSuccess: {772 readonly asSuccess: {676 readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'UpwardMessageSent' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';810 readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'UpwardMessageSent' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';677 }811 }678812679 /** @name XcmV2TraitsError (64) */813 /** @name XcmV2TraitsError (68) */680 interface XcmV2TraitsError extends Enum {814 interface XcmV2TraitsError extends Enum {681 readonly isOverflow: boolean;815 readonly isOverflow: boolean;682 readonly isUnimplemented: boolean;816 readonly isUnimplemented: boolean;709 readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable';843 readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable';710 }844 }711845712 /** @name PalletXcmEvent (66) */846 /** @name PalletXcmEvent (70) */713 interface PalletXcmEvent extends Enum {847 interface PalletXcmEvent extends Enum {714 readonly isAttempted: boolean;848 readonly isAttempted: boolean;715 readonly asAttempted: XcmV2TraitsOutcome;849 readonly asAttempted: XcmV2TraitsOutcome;748 readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail' | 'AssetsClaimed';882 readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail' | 'AssetsClaimed';749 }883 }750884751 /** @name XcmV2TraitsOutcome (67) */885 /** @name XcmV2TraitsOutcome (71) */752 interface XcmV2TraitsOutcome extends Enum {886 interface XcmV2TraitsOutcome extends Enum {753 readonly isComplete: boolean;887 readonly isComplete: boolean;754 readonly asComplete: u64;888 readonly asComplete: u64;759 readonly type: 'Complete' | 'Incomplete' | 'Error';893 readonly type: 'Complete' | 'Incomplete' | 'Error';760 }894 }761895762 /** @name XcmV2Xcm (68) */896 /** @name XcmV2Xcm (72) */763 interface XcmV2Xcm extends Vec<XcmV2Instruction> {}897 interface XcmV2Xcm extends Vec<XcmV2Instruction> {}764898765 /** @name XcmV2Instruction (70) */899 /** @name XcmV2Instruction (74) */766 interface XcmV2Instruction extends Enum {900 interface XcmV2Instruction extends Enum {767 readonly isWithdrawAsset: boolean;901 readonly isWithdrawAsset: boolean;768 readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;902 readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;882 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion';1016 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion';883 }1017 }8841018885 /** @name XcmV2Response (71) */1019 /** @name XcmV2Response (75) */886 interface XcmV2Response extends Enum {1020 interface XcmV2Response extends Enum {887 readonly isNull: boolean;1021 readonly isNull: boolean;888 readonly isAssets: boolean;1022 readonly isAssets: boolean;894 readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';1028 readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';895 }1029 }8961030897 /** @name XcmV0OriginKind (74) */1031 /** @name XcmV0OriginKind (78) */898 interface XcmV0OriginKind extends Enum {1032 interface XcmV0OriginKind extends Enum {899 readonly isNative: boolean;1033 readonly isNative: boolean;900 readonly isSovereignAccount: boolean;1034 readonly isSovereignAccount: boolean;903 readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';1037 readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';904 }1038 }9051039906 /** @name XcmDoubleEncoded (75) */1040 /** @name XcmDoubleEncoded (79) */907 interface XcmDoubleEncoded extends Struct {1041 interface XcmDoubleEncoded extends Struct {908 readonly encoded: Bytes;1042 readonly encoded: Bytes;909 }1043 }9101044911 /** @name XcmV1MultiassetMultiAssetFilter (76) */1045 /** @name XcmV1MultiassetMultiAssetFilter (80) */912 interface XcmV1MultiassetMultiAssetFilter extends Enum {1046 interface XcmV1MultiassetMultiAssetFilter extends Enum {913 readonly isDefinite: boolean;1047 readonly isDefinite: boolean;914 readonly asDefinite: XcmV1MultiassetMultiAssets;1048 readonly asDefinite: XcmV1MultiassetMultiAssets;917 readonly type: 'Definite' | 'Wild';1051 readonly type: 'Definite' | 'Wild';918 }1052 }9191053920 /** @name XcmV1MultiassetWildMultiAsset (77) */1054 /** @name XcmV1MultiassetWildMultiAsset (81) */921 interface XcmV1MultiassetWildMultiAsset extends Enum {1055 interface XcmV1MultiassetWildMultiAsset extends Enum {922 readonly isAll: boolean;1056 readonly isAll: boolean;923 readonly isAllOf: boolean;1057 readonly isAllOf: boolean;928 readonly type: 'All' | 'AllOf';1062 readonly type: 'All' | 'AllOf';929 }1063 }9301064931 /** @name XcmV1MultiassetWildFungibility (78) */1065 /** @name XcmV1MultiassetWildFungibility (82) */932 interface XcmV1MultiassetWildFungibility extends Enum {1066 interface XcmV1MultiassetWildFungibility extends Enum {933 readonly isFungible: boolean;1067 readonly isFungible: boolean;934 readonly isNonFungible: boolean;1068 readonly isNonFungible: boolean;935 readonly type: 'Fungible' | 'NonFungible';1069 readonly type: 'Fungible' | 'NonFungible';936 }1070 }9371071938 /** @name XcmV2WeightLimit (79) */1072 /** @name XcmV2WeightLimit (83) */939 interface XcmV2WeightLimit extends Enum {1073 interface XcmV2WeightLimit extends Enum {940 readonly isUnlimited: boolean;1074 readonly isUnlimited: boolean;941 readonly isLimited: boolean;1075 readonly isLimited: boolean;942 readonly asLimited: Compact<u64>;1076 readonly asLimited: Compact<u64>;943 readonly type: 'Unlimited' | 'Limited';1077 readonly type: 'Unlimited' | 'Limited';944 }1078 }9451079946 /** @name XcmVersionedMultiAssets (81) */1080 /** @name XcmVersionedMultiAssets (85) */947 interface XcmVersionedMultiAssets extends Enum {1081 interface XcmVersionedMultiAssets extends Enum {948 readonly isV0: boolean;1082 readonly isV0: boolean;949 readonly asV0: Vec<XcmV0MultiAsset>;1083 readonly asV0: Vec<XcmV0MultiAsset>;952 readonly type: 'V0' | 'V1';1086 readonly type: 'V0' | 'V1';953 }1087 }9541088955 /** @name XcmV0MultiAsset (83) */1089 /** @name XcmV0MultiAsset (87) */956 interface XcmV0MultiAsset extends Enum {1090 interface XcmV0MultiAsset extends Enum {957 readonly isNone: boolean;1091 readonly isNone: boolean;958 readonly isAll: boolean;1092 readonly isAll: boolean;997 readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';1131 readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';998 }1132 }99911331000 /** @name XcmV0MultiLocation (84) */1134 /** @name XcmV0MultiLocation (88) */1001 interface XcmV0MultiLocation extends Enum {1135 interface XcmV0MultiLocation extends Enum {1002 readonly isNull: boolean;1136 readonly isNull: boolean;1003 readonly isX1: boolean;1137 readonly isX1: boolean;1019 readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';1153 readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';1020 }1154 }102111551022 /** @name XcmV0Junction (85) */1156 /** @name XcmV0Junction (89) */1023 interface XcmV0Junction extends Enum {1157 interface XcmV0Junction extends Enum {1024 readonly isParent: boolean;1158 readonly isParent: boolean;1025 readonly isParachain: boolean;1159 readonly isParachain: boolean;1054 readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';1188 readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';1055 }1189 }105611901057 /** @name XcmVersionedMultiLocation (86) */1191 /** @name XcmVersionedMultiLocation (90) */1058 interface XcmVersionedMultiLocation extends Enum {1192 interface XcmVersionedMultiLocation extends Enum {1059 readonly isV0: boolean;1193 readonly isV0: boolean;1060 readonly asV0: XcmV0MultiLocation;1194 readonly asV0: XcmV0MultiLocation;1063 readonly type: 'V0' | 'V1';1197 readonly type: 'V0' | 'V1';1064 }1198 }106511991066 /** @name CumulusPalletXcmEvent (87) */1200 /** @name CumulusPalletXcmEvent (91) */1067 interface CumulusPalletXcmEvent extends Enum {1201 interface CumulusPalletXcmEvent extends Enum {1068 readonly isInvalidFormat: boolean;1202 readonly isInvalidFormat: boolean;1069 readonly asInvalidFormat: U8aFixed;1203 readonly asInvalidFormat: U8aFixed;1074 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';1208 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';1075 }1209 }107612101077 /** @name CumulusPalletDmpQueueEvent (88) */1211 /** @name CumulusPalletDmpQueueEvent (92) */1078 interface CumulusPalletDmpQueueEvent extends Enum {1212 interface CumulusPalletDmpQueueEvent extends Enum {1079 readonly isInvalidFormat: boolean;1213 readonly isInvalidFormat: boolean;1080 readonly asInvalidFormat: {1214 readonly asInvalidFormat: {1109 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';1243 readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';1110 }1244 }111112451112 /** @name PalletConfigurationEvent (89) */1246 /** @name PalletConfigurationEvent (93) */1113 interface PalletConfigurationEvent extends Enum {1247 interface PalletConfigurationEvent extends Enum {1114 readonly isNewDesiredCollators: boolean;1248 readonly isNewDesiredCollators: boolean;1115 readonly asNewDesiredCollators: {1249 readonly asNewDesiredCollators: {1126 readonly type: 'NewDesiredCollators' | 'NewCollatorLicenseBond' | 'NewCollatorKickThreshold';1260 readonly type: 'NewDesiredCollators' | 'NewCollatorLicenseBond' | 'NewCollatorKickThreshold';1127 }1261 }112812621129 /** @name PalletCommonEvent (92) */1263 /** @name PalletCommonEvent (96) */1130 interface PalletCommonEvent extends Enum {1264 interface PalletCommonEvent extends Enum {1131 readonly isCollectionCreated: boolean;1265 readonly isCollectionCreated: boolean;1132 readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>;1266 readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>;1175 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'ApprovedForAll' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet' | 'AllowListAddressAdded' | 'AllowListAddressRemoved' | 'CollectionAdminAdded' | 'CollectionAdminRemoved' | 'CollectionLimitSet' | 'CollectionOwnerChanged' | 'CollectionPermissionSet' | 'CollectionSponsorSet' | 'SponsorshipConfirmed' | 'CollectionSponsorRemoved';1309 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'ApprovedForAll' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet' | 'AllowListAddressAdded' | 'AllowListAddressRemoved' | 'CollectionAdminAdded' | 'CollectionAdminRemoved' | 'CollectionLimitSet' | 'CollectionOwnerChanged' | 'CollectionPermissionSet' | 'CollectionSponsorSet' | 'SponsorshipConfirmed' | 'CollectionSponsorRemoved';1176 }1310 }117713111178 /** @name PalletEvmAccountBasicCrossAccountIdRepr (95) */1312 /** @name PalletEvmAccountBasicCrossAccountIdRepr (99) */1179 interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {1313 interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {1180 readonly isSubstrate: boolean;1314 readonly isSubstrate: boolean;1181 readonly asSubstrate: AccountId32;1315 readonly asSubstrate: AccountId32;1184 readonly type: 'Substrate' | 'Ethereum';1318 readonly type: 'Substrate' | 'Ethereum';1185 }1319 }118613201187 /** @name PalletStructureEvent (99) */1321 /** @name PalletStructureEvent (103) */1188 interface PalletStructureEvent extends Enum {1322 interface PalletStructureEvent extends Enum {1189 readonly isExecuted: boolean;1323 readonly isExecuted: boolean;1190 readonly asExecuted: Result<Null, SpRuntimeDispatchError>;1324 readonly asExecuted: Result<Null, SpRuntimeDispatchError>;1191 readonly type: 'Executed';1325 readonly type: 'Executed';1192 }1326 }11931194 /** @name PalletRmrkCoreEvent (100) */1195 interface PalletRmrkCoreEvent extends Enum {1196 readonly isCollectionCreated: boolean;1197 readonly asCollectionCreated: {1198 readonly issuer: AccountId32;1199 readonly collectionId: u32;1200 } & Struct;1201 readonly isCollectionDestroyed: boolean;1202 readonly asCollectionDestroyed: {1203 readonly issuer: AccountId32;1204 readonly collectionId: u32;1205 } & Struct;1206 readonly isIssuerChanged: boolean;1207 readonly asIssuerChanged: {1208 readonly oldIssuer: AccountId32;1209 readonly newIssuer: AccountId32;1210 readonly collectionId: u32;1211 } & Struct;1212 readonly isCollectionLocked: boolean;1213 readonly asCollectionLocked: {1214 readonly issuer: AccountId32;1215 readonly collectionId: u32;1216 } & Struct;1217 readonly isNftMinted: boolean;1218 readonly asNftMinted: {1219 readonly owner: AccountId32;1220 readonly collectionId: u32;1221 readonly nftId: u32;1222 } & Struct;1223 readonly isNftBurned: boolean;1224 readonly asNftBurned: {1225 readonly owner: AccountId32;1226 readonly nftId: u32;1227 } & Struct;1228 readonly isNftSent: boolean;1229 readonly asNftSent: {1230 readonly sender: AccountId32;1231 readonly recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple;1232 readonly collectionId: u32;1233 readonly nftId: u32;1234 readonly approvalRequired: bool;1235 } & Struct;1236 readonly isNftAccepted: boolean;1237 readonly asNftAccepted: {1238 readonly sender: AccountId32;1239 readonly recipient: RmrkTraitsNftAccountIdOrCollectionNftTuple;1240 readonly collectionId: u32;1241 readonly nftId: u32;1242 } & Struct;1243 readonly isNftRejected: boolean;1244 readonly asNftRejected: {1245 readonly sender: AccountId32;1246 readonly collectionId: u32;1247 readonly nftId: u32;1248 } & Struct;1249 readonly isPropertySet: boolean;1250 readonly asPropertySet: {1251 readonly collectionId: u32;1252 readonly maybeNftId: Option<u32>;1253 readonly key: Bytes;1254 readonly value: Bytes;1255 } & Struct;1256 readonly isResourceAdded: boolean;1257 readonly asResourceAdded: {1258 readonly nftId: u32;1259 readonly resourceId: u32;1260 } & Struct;1261 readonly isResourceRemoval: boolean;1262 readonly asResourceRemoval: {1263 readonly nftId: u32;1264 readonly resourceId: u32;1265 } & Struct;1266 readonly isResourceAccepted: boolean;1267 readonly asResourceAccepted: {1268 readonly nftId: u32;1269 readonly resourceId: u32;1270 } & Struct;1271 readonly isResourceRemovalAccepted: boolean;1272 readonly asResourceRemovalAccepted: {1273 readonly nftId: u32;1274 readonly resourceId: u32;1275 } & Struct;1276 readonly isPrioritySet: boolean;1277 readonly asPrioritySet: {1278 readonly collectionId: u32;1279 readonly nftId: u32;1280 } & Struct;1281 readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'IssuerChanged' | 'CollectionLocked' | 'NftMinted' | 'NftBurned' | 'NftSent' | 'NftAccepted' | 'NftRejected' | 'PropertySet' | 'ResourceAdded' | 'ResourceRemoval' | 'ResourceAccepted' | 'ResourceRemovalAccepted' | 'PrioritySet';1282 }12831284 /** @name RmrkTraitsNftAccountIdOrCollectionNftTuple (101) */1285 interface RmrkTraitsNftAccountIdOrCollectionNftTuple extends Enum {1286 readonly isAccountId: boolean;1287 readonly asAccountId: AccountId32;1288 readonly isCollectionAndNftTuple: boolean;1289 readonly asCollectionAndNftTuple: ITuple<[u32, u32]>;1290 readonly type: 'AccountId' | 'CollectionAndNftTuple';1291 }12921293 /** @name PalletRmrkEquipEvent (104) */1294 interface PalletRmrkEquipEvent extends Enum {1295 readonly isBaseCreated: boolean;1296 readonly asBaseCreated: {1297 readonly issuer: AccountId32;1298 readonly baseId: u32;1299 } & Struct;1300 readonly isEquippablesUpdated: boolean;1301 readonly asEquippablesUpdated: {1302 readonly baseId: u32;1303 readonly slotId: u32;1304 } & Struct;1305 readonly type: 'BaseCreated' | 'EquippablesUpdated';1306 }130713271308 /** @name PalletAppPromotionEvent (105) */1328 /** @name PalletAppPromotionEvent (104) */1309 interface PalletAppPromotionEvent extends Enum {1329 interface PalletAppPromotionEvent extends Enum {1310 readonly isStakingRecalculation: boolean;1330 readonly isStakingRecalculation: boolean;1311 readonly asStakingRecalculation: ITuple<[AccountId32, u128, u128]>;1331 readonly asStakingRecalculation: ITuple<[AccountId32, u128, u128]>;1318 readonly type: 'StakingRecalculation' | 'Stake' | 'Unstake' | 'SetAdmin';1338 readonly type: 'StakingRecalculation' | 'Stake' | 'Unstake' | 'SetAdmin';1319 }1339 }132013401321 /** @name PalletForeignAssetsModuleEvent (106) */1341 /** @name PalletForeignAssetsModuleEvent (105) */1322 interface PalletForeignAssetsModuleEvent extends Enum {1342 interface PalletForeignAssetsModuleEvent extends Enum {1323 readonly isForeignAssetRegistered: boolean;1343 readonly isForeignAssetRegistered: boolean;1324 readonly asForeignAssetRegistered: {1344 readonly asForeignAssetRegistered: {1345 readonly type: 'ForeignAssetRegistered' | 'ForeignAssetUpdated' | 'AssetRegistered' | 'AssetUpdated';1365 readonly type: 'ForeignAssetRegistered' | 'ForeignAssetUpdated' | 'AssetRegistered' | 'AssetUpdated';1346 }1366 }134713671348 /** @name PalletForeignAssetsModuleAssetMetadata (107) */1368 /** @name PalletForeignAssetsModuleAssetMetadata (106) */1349 interface PalletForeignAssetsModuleAssetMetadata extends Struct {1369 interface PalletForeignAssetsModuleAssetMetadata extends Struct {1350 readonly name: Bytes;1370 readonly name: Bytes;1351 readonly symbol: Bytes;1371 readonly symbol: Bytes;1352 readonly decimals: u8;1372 readonly decimals: u8;1353 readonly minimalBalance: u128;1373 readonly minimalBalance: u128;1354 }1374 }135513751356 /** @name PalletEvmEvent (108) */1376 /** @name PalletEvmEvent (107) */1357 interface PalletEvmEvent extends Enum {1377 interface PalletEvmEvent extends Enum {1358 readonly isLog: boolean;1378 readonly isLog: boolean;1359 readonly asLog: {1379 readonly asLog: {1378 readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed';1398 readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed';1379 }1399 }138014001381 /** @name EthereumLog (109) */1401 /** @name EthereumLog (108) */1382 interface EthereumLog extends Struct {1402 interface EthereumLog extends Struct {1383 readonly address: H160;1403 readonly address: H160;1384 readonly topics: Vec<H256>;1404 readonly topics: Vec<H256>;1385 readonly data: Bytes;1405 readonly data: Bytes;1386 }1406 }138714071388 /** @name PalletEthereumEvent (111) */1408 /** @name PalletEthereumEvent (110) */1389 interface PalletEthereumEvent extends Enum {1409 interface PalletEthereumEvent extends Enum {1390 readonly isExecuted: boolean;1410 readonly isExecuted: boolean;1391 readonly asExecuted: {1411 readonly asExecuted: {1397 readonly type: 'Executed';1417 readonly type: 'Executed';1398 }1418 }139914191400 /** @name EvmCoreErrorExitReason (112) */1420 /** @name EvmCoreErrorExitReason (111) */1401 interface EvmCoreErrorExitReason extends Enum {1421 interface EvmCoreErrorExitReason extends Enum {1402 readonly isSucceed: boolean;1422 readonly isSucceed: boolean;1403 readonly asSucceed: EvmCoreErrorExitSucceed;1423 readonly asSucceed: EvmCoreErrorExitSucceed;1410 readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';1430 readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';1411 }1431 }141214321413 /** @name EvmCoreErrorExitSucceed (113) */1433 /** @name EvmCoreErrorExitSucceed (112) */1414 interface EvmCoreErrorExitSucceed extends Enum {1434 interface EvmCoreErrorExitSucceed extends Enum {1415 readonly isStopped: boolean;1435 readonly isStopped: boolean;1416 readonly isReturned: boolean;1436 readonly isReturned: boolean;1417 readonly isSuicided: boolean;1437 readonly isSuicided: boolean;1418 readonly type: 'Stopped' | 'Returned' | 'Suicided';1438 readonly type: 'Stopped' | 'Returned' | 'Suicided';1419 }1439 }142014401421 /** @name EvmCoreErrorExitError (114) */1441 /** @name EvmCoreErrorExitError (113) */1422 interface EvmCoreErrorExitError extends Enum {1442 interface EvmCoreErrorExitError extends Enum {1423 readonly isStackUnderflow: boolean;1443 readonly isStackUnderflow: boolean;1424 readonly isStackOverflow: boolean;1444 readonly isStackOverflow: boolean;1436 readonly isOther: boolean;1456 readonly isOther: boolean;1437 readonly asOther: Text;1457 readonly asOther: Text;1438 readonly isInvalidCode: boolean;1458 readonly isInvalidCode: boolean;1459 readonly asInvalidCode: u8;1439 readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'InvalidCode';1460 readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PcUnderflow' | 'CreateEmpty' | 'Other' | 'InvalidCode';1440 }1461 }144114621714 readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';1735 readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';1715 }1736 }17371738 /** @name PalletAuthorshipUncleEntryItem (172) */1739 interface PalletAuthorshipUncleEntryItem extends Enum {1740 readonly isInclusionHeight: boolean;1741 readonly asInclusionHeight: u32;1742 readonly isUncle: boolean;1743 readonly asUncle: ITuple<[H256, Option<AccountId32>]>;1744 readonly type: 'InclusionHeight' | 'Uncle';1745 }17461747 /** @name PalletAuthorshipCall (174) */1748 interface PalletAuthorshipCall extends Enum {1749 readonly isSetUncles: boolean;1750 readonly asSetUncles: {1751 readonly newUncles: Vec<SpRuntimeHeader>;1752 } & Struct;1753 readonly type: 'SetUncles';1754 }17551756 /** @name SpRuntimeHeader (176) */1757 interface SpRuntimeHeader extends Struct {1758 readonly parentHash: H256;1759 readonly number: Compact<u32>;1760 readonly stateRoot: H256;1761 readonly extrinsicsRoot: H256;1762 readonly digest: SpRuntimeDigest;1763 }17641765 /** @name SpRuntimeBlakeTwo256 (177) */1766 type SpRuntimeBlakeTwo256 = Null;17671768 /** @name PalletAuthorshipError (178) */1769 interface PalletAuthorshipError extends Enum {1770 readonly isInvalidUncleParent: boolean;1771 readonly isUnclesAlreadySet: boolean;1772 readonly isTooManyUncles: boolean;1773 readonly isGenesisUncle: boolean;1774 readonly isTooHighUncle: boolean;1775 readonly isUncleAlreadyIncluded: boolean;1776 readonly isOldUncle: boolean;1777 readonly type: 'InvalidUncleParent' | 'UnclesAlreadySet' | 'TooManyUncles' | 'GenesisUncle' | 'TooHighUncle' | 'UncleAlreadyIncluded' | 'OldUncle';1778 }17791780 /** @name PalletCollatorSelectionCall (181) */1781 interface PalletCollatorSelectionCall extends Enum {1782 readonly isAddInvulnerable: boolean;1783 readonly asAddInvulnerable: {1784 readonly new_: AccountId32;1785 } & Struct;1786 readonly isRemoveInvulnerable: boolean;1787 readonly asRemoveInvulnerable: {1788 readonly who: AccountId32;1789 } & Struct;1790 readonly isGetLicense: boolean;1791 readonly isOnboard: boolean;1792 readonly isOffboard: boolean;1793 readonly isReleaseLicense: boolean;1794 readonly isForceReleaseLicense: boolean;1795 readonly asForceReleaseLicense: {1796 readonly who: AccountId32;1797 } & Struct;1798 readonly type: 'AddInvulnerable' | 'RemoveInvulnerable' | 'GetLicense' | 'Onboard' | 'Offboard' | 'ReleaseLicense' | 'ForceReleaseLicense';1799 }18001801 /** @name PalletCollatorSelectionError (182) */1802 interface PalletCollatorSelectionError extends Enum {1803 readonly isTooManyCandidates: boolean;1804 readonly isUnknown: boolean;1805 readonly isPermission: boolean;1806 readonly isAlreadyHoldingLicense: boolean;1807 readonly isNoLicense: boolean;1808 readonly isAlreadyCandidate: boolean;1809 readonly isNotCandidate: boolean;1810 readonly isTooManyInvulnerables: boolean;1811 readonly isTooFewInvulnerables: boolean;1812 readonly isAlreadyInvulnerable: boolean;1813 readonly isNotInvulnerable: boolean;1814 readonly isNoAssociatedValidatorId: boolean;1815 readonly isValidatorNotRegistered: boolean;1816 readonly type: 'TooManyCandidates' | 'Unknown' | 'Permission' | 'AlreadyHoldingLicense' | 'NoLicense' | 'AlreadyCandidate' | 'NotCandidate' | 'TooManyInvulnerables' | 'TooFewInvulnerables' | 'AlreadyInvulnerable' | 'NotInvulnerable' | 'NoAssociatedValidatorId' | 'ValidatorNotRegistered';1817 }18181819 /** @name OpalRuntimeRuntimeCommonSessionKeys (185) */1820 interface OpalRuntimeRuntimeCommonSessionKeys extends Struct {1821 readonly aura: SpConsensusAuraSr25519AppSr25519Public;1822 }18231824 /** @name SpConsensusAuraSr25519AppSr25519Public (186) */1825 interface SpConsensusAuraSr25519AppSr25519Public extends SpCoreSr25519Public {}18261827 /** @name SpCoreSr25519Public (187) */1828 interface SpCoreSr25519Public extends U8aFixed {}18291830 /** @name SpCoreCryptoKeyTypeId (190) */1831 interface SpCoreCryptoKeyTypeId extends U8aFixed {}18321833 /** @name PalletSessionCall (191) */1834 interface PalletSessionCall extends Enum {1835 readonly isSetKeys: boolean;1836 readonly asSetKeys: {1837 readonly keys_: OpalRuntimeRuntimeCommonSessionKeys;1838 readonly proof: Bytes;1839 } & Struct;1840 readonly isPurgeKeys: boolean;1841 readonly type: 'SetKeys' | 'PurgeKeys';1842 }18431844 /** @name PalletSessionError (192) */1845 interface PalletSessionError extends Enum {1846 readonly isInvalidProof: boolean;1847 readonly isNoAssociatedValidatorId: boolean;1848 readonly isDuplicatedKey: boolean;1849 readonly isNoKeys: boolean;1850 readonly isNoAccount: boolean;1851 readonly type: 'InvalidProof' | 'NoAssociatedValidatorId' | 'DuplicatedKey' | 'NoKeys' | 'NoAccount';1852 }171618531717 /** @name PalletBalancesBalanceLock (172) */1854 /** @name PalletBalancesBalanceLock (194) */1718 interface PalletBalancesBalanceLock extends Struct {1855 interface PalletBalancesBalanceLock extends Struct {1719 readonly id: U8aFixed;1856 readonly id: U8aFixed;1720 readonly amount: u128;1857 readonly amount: u128;1721 readonly reasons: PalletBalancesReasons;1858 readonly reasons: PalletBalancesReasons;1722 }1859 }172318601724 /** @name PalletBalancesReasons (173) */1861 /** @name PalletBalancesReasons (195) */1725 interface PalletBalancesReasons extends Enum {1862 interface PalletBalancesReasons extends Enum {1726 readonly isFee: boolean;1863 readonly isFee: boolean;1727 readonly isMisc: boolean;1864 readonly isMisc: boolean;1728 readonly isAll: boolean;1865 readonly isAll: boolean;1729 readonly type: 'Fee' | 'Misc' | 'All';1866 readonly type: 'Fee' | 'Misc' | 'All';1730 }1867 }173118681732 /** @name PalletBalancesReserveData (176) */1869 /** @name PalletBalancesReserveData (198) */1733 interface PalletBalancesReserveData extends Struct {1870 interface PalletBalancesReserveData extends Struct {1734 readonly id: U8aFixed;1871 readonly id: U8aFixed;1735 readonly amount: u128;1872 readonly amount: u128;1736 }1873 }173718741738 /** @name PalletBalancesCall (178) */1875 /** @name PalletBalancesCall (200) */1739 interface PalletBalancesCall extends Enum {1876 interface PalletBalancesCall extends Enum {1740 readonly isTransfer: boolean;1877 readonly isTransfer: boolean;1741 readonly asTransfer: {1878 readonly asTransfer: {1772 readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';1909 readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';1773 }1910 }177419111775 /** @name PalletBalancesError (181) */1912 /** @name PalletBalancesError (203) */1776 interface PalletBalancesError extends Enum {1913 interface PalletBalancesError extends Enum {1777 readonly isVestingBalance: boolean;1914 readonly isVestingBalance: boolean;1778 readonly isLiquidityRestrictions: boolean;1915 readonly isLiquidityRestrictions: boolean;1785 readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';1922 readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';1786 }1923 }178719241788 /** @name PalletTimestampCall (183) */1925 /** @name PalletTimestampCall (205) */1789 interface PalletTimestampCall extends Enum {1926 interface PalletTimestampCall extends Enum {1790 readonly isSet: boolean;1927 readonly isSet: boolean;1791 readonly asSet: {1928 readonly asSet: {1794 readonly type: 'Set';1931 readonly type: 'Set';1795 }1932 }179619331797 /** @name PalletTransactionPaymentReleases (185) */1934 /** @name PalletTransactionPaymentReleases (207) */1798 interface PalletTransactionPaymentReleases extends Enum {1935 interface PalletTransactionPaymentReleases extends Enum {1799 readonly isV1Ancient: boolean;1936 readonly isV1Ancient: boolean;1800 readonly isV2: boolean;1937 readonly isV2: boolean;1801 readonly type: 'V1Ancient' | 'V2';1938 readonly type: 'V1Ancient' | 'V2';1802 }1939 }180319401804 /** @name PalletTreasuryProposal (186) */1941 /** @name PalletTreasuryProposal (208) */1805 interface PalletTreasuryProposal extends Struct {1942 interface PalletTreasuryProposal extends Struct {1806 readonly proposer: AccountId32;1943 readonly proposer: AccountId32;1807 readonly value: u128;1944 readonly value: u128;1808 readonly beneficiary: AccountId32;1945 readonly beneficiary: AccountId32;1809 readonly bond: u128;1946 readonly bond: u128;1810 }1947 }181119481812 /** @name PalletTreasuryCall (189) */1949 /** @name PalletTreasuryCall (210) */1813 interface PalletTreasuryCall extends Enum {1950 interface PalletTreasuryCall extends Enum {1814 readonly isProposeSpend: boolean;1951 readonly isProposeSpend: boolean;1815 readonly asProposeSpend: {1952 readonly asProposeSpend: {1836 readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'Spend' | 'RemoveApproval';1973 readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'Spend' | 'RemoveApproval';1837 }1974 }183819751839 /** @name FrameSupportPalletId (191) */1976 /** @name FrameSupportPalletId (212) */1840 interface FrameSupportPalletId extends U8aFixed {}1977 interface FrameSupportPalletId extends U8aFixed {}184119781842 /** @name PalletTreasuryError (192) */1979 /** @name PalletTreasuryError (213) */1843 interface PalletTreasuryError extends Enum {1980 interface PalletTreasuryError extends Enum {1844 readonly isInsufficientProposersBalance: boolean;1981 readonly isInsufficientProposersBalance: boolean;1845 readonly isInvalidIndex: boolean;1982 readonly isInvalidIndex: boolean;1849 readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'InsufficientPermission' | 'ProposalNotApproved';1986 readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'InsufficientPermission' | 'ProposalNotApproved';1850 }1987 }185119881852 /** @name PalletSudoCall (193) */1989 /** @name PalletSudoCall (214) */1853 interface PalletSudoCall extends Enum {1990 interface PalletSudoCall extends Enum {1854 readonly isSudo: boolean;1991 readonly isSudo: boolean;1855 readonly asSudo: {1992 readonly asSudo: {1872 readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';2009 readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';1873 }2010 }187420111875 /** @name OrmlVestingModuleCall (195) */2012 /** @name OrmlVestingModuleCall (216) */1876 interface OrmlVestingModuleCall extends Enum {2013 interface OrmlVestingModuleCall extends Enum {1877 readonly isClaim: boolean;2014 readonly isClaim: boolean;1878 readonly isVestedTransfer: boolean;2015 readonly isVestedTransfer: boolean;1892 readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';2029 readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';1893 }2030 }189420311895 /** @name OrmlXtokensModuleCall (197) */2032 /** @name OrmlXtokensModuleCall (218) */1896 interface OrmlXtokensModuleCall extends Enum {2033 interface OrmlXtokensModuleCall extends Enum {1897 readonly isTransfer: boolean;2034 readonly isTransfer: boolean;1898 readonly asTransfer: {2035 readonly asTransfer: {1939 readonly type: 'Transfer' | 'TransferMultiasset' | 'TransferWithFee' | 'TransferMultiassetWithFee' | 'TransferMulticurrencies' | 'TransferMultiassets';2076 readonly type: 'Transfer' | 'TransferMultiasset' | 'TransferWithFee' | 'TransferMultiassetWithFee' | 'TransferMulticurrencies' | 'TransferMultiassets';1940 }2077 }194120781942 /** @name XcmVersionedMultiAsset (198) */2079 /** @name XcmVersionedMultiAsset (219) */1943 interface XcmVersionedMultiAsset extends Enum {2080 interface XcmVersionedMultiAsset extends Enum {1944 readonly isV0: boolean;2081 readonly isV0: boolean;1945 readonly asV0: XcmV0MultiAsset;2082 readonly asV0: XcmV0MultiAsset;1948 readonly type: 'V0' | 'V1';2085 readonly type: 'V0' | 'V1';1949 }2086 }195020871951 /** @name OrmlTokensModuleCall (201) */2088 /** @name OrmlTokensModuleCall (222) */1952 interface OrmlTokensModuleCall extends Enum {2089 interface OrmlTokensModuleCall extends Enum {1953 readonly isTransfer: boolean;2090 readonly isTransfer: boolean;1954 readonly asTransfer: {2091 readonly asTransfer: {1985 readonly type: 'Transfer' | 'TransferAll' | 'TransferKeepAlive' | 'ForceTransfer' | 'SetBalance';2122 readonly type: 'Transfer' | 'TransferAll' | 'TransferKeepAlive' | 'ForceTransfer' | 'SetBalance';1986 }2123 }21242125 /** @name PalletIdentityCall (223) */2126 interface PalletIdentityCall extends Enum {2127 readonly isAddRegistrar: boolean;2128 readonly asAddRegistrar: {2129 readonly account: MultiAddress;2130 } & Struct;2131 readonly isSetIdentity: boolean;2132 readonly asSetIdentity: {2133 readonly info: PalletIdentityIdentityInfo;2134 } & Struct;2135 readonly isSetSubs: boolean;2136 readonly asSetSubs: {2137 readonly subs: Vec<ITuple<[AccountId32, Data]>>;2138 } & Struct;2139 readonly isClearIdentity: boolean;2140 readonly isRequestJudgement: boolean;2141 readonly asRequestJudgement: {2142 readonly regIndex: Compact<u32>;2143 readonly maxFee: Compact<u128>;2144 } & Struct;2145 readonly isCancelRequest: boolean;2146 readonly asCancelRequest: {2147 readonly regIndex: u32;2148 } & Struct;2149 readonly isSetFee: boolean;2150 readonly asSetFee: {2151 readonly index: Compact<u32>;2152 readonly fee: Compact<u128>;2153 } & Struct;2154 readonly isSetAccountId: boolean;2155 readonly asSetAccountId: {2156 readonly index: Compact<u32>;2157 readonly new_: MultiAddress;2158 } & Struct;2159 readonly isSetFields: boolean;2160 readonly asSetFields: {2161 readonly index: Compact<u32>;2162 readonly fields: PalletIdentityBitFlags;2163 } & Struct;2164 readonly isProvideJudgement: boolean;2165 readonly asProvideJudgement: {2166 readonly regIndex: Compact<u32>;2167 readonly target: MultiAddress;2168 readonly judgement: PalletIdentityJudgement;2169 readonly identity: H256;2170 } & Struct;2171 readonly isKillIdentity: boolean;2172 readonly asKillIdentity: {2173 readonly target: MultiAddress;2174 } & Struct;2175 readonly isAddSub: boolean;2176 readonly asAddSub: {2177 readonly sub: MultiAddress;2178 readonly data: Data;2179 } & Struct;2180 readonly isRenameSub: boolean;2181 readonly asRenameSub: {2182 readonly sub: MultiAddress;2183 readonly data: Data;2184 } & Struct;2185 readonly isRemoveSub: boolean;2186 readonly asRemoveSub: {2187 readonly sub: MultiAddress;2188 } & Struct;2189 readonly isQuitSub: boolean;2190 readonly isForceInsertIdentities: boolean;2191 readonly asForceInsertIdentities: {2192 readonly identities: Vec<ITuple<[AccountId32, PalletIdentityRegistration]>>;2193 } & Struct;2194 readonly isForceRemoveIdentities: boolean;2195 readonly asForceRemoveIdentities: {2196 readonly identities: Vec<AccountId32>;2197 } & Struct;2198 readonly isForceSetSubs: boolean;2199 readonly asForceSetSubs: {2200 readonly subs: Vec<ITuple<[AccountId32, ITuple<[u128, Vec<ITuple<[AccountId32, Data]>>]>]>>;2201 } & Struct;2202 readonly type: 'AddRegistrar' | 'SetIdentity' | 'SetSubs' | 'ClearIdentity' | 'RequestJudgement' | 'CancelRequest' | 'SetFee' | 'SetAccountId' | 'SetFields' | 'ProvideJudgement' | 'KillIdentity' | 'AddSub' | 'RenameSub' | 'RemoveSub' | 'QuitSub' | 'ForceInsertIdentities' | 'ForceRemoveIdentities' | 'ForceSetSubs';2203 }22042205 /** @name PalletIdentityIdentityInfo (224) */2206 interface PalletIdentityIdentityInfo extends Struct {2207 readonly additional: Vec<ITuple<[Data, Data]>>;2208 readonly display: Data;2209 readonly legal: Data;2210 readonly web: Data;2211 readonly riot: Data;2212 readonly email: Data;2213 readonly pgpFingerprint: Option<U8aFixed>;2214 readonly image: Data;2215 readonly twitter: Data;2216 }22172218 /** @name PalletIdentityBitFlags (260) */2219 interface PalletIdentityBitFlags extends Set {2220 readonly isDisplay: boolean;2221 readonly isLegal: boolean;2222 readonly isWeb: boolean;2223 readonly isRiot: boolean;2224 readonly isEmail: boolean;2225 readonly isPgpFingerprint: boolean;2226 readonly isImage: boolean;2227 readonly isTwitter: boolean;2228 }22292230 /** @name PalletIdentityIdentityField (261) */2231 interface PalletIdentityIdentityField extends Enum {2232 readonly isDisplay: boolean;2233 readonly isLegal: boolean;2234 readonly isWeb: boolean;2235 readonly isRiot: boolean;2236 readonly isEmail: boolean;2237 readonly isPgpFingerprint: boolean;2238 readonly isImage: boolean;2239 readonly isTwitter: boolean;2240 readonly type: 'Display' | 'Legal' | 'Web' | 'Riot' | 'Email' | 'PgpFingerprint' | 'Image' | 'Twitter';2241 }22422243 /** @name PalletIdentityJudgement (262) */2244 interface PalletIdentityJudgement extends Enum {2245 readonly isUnknown: boolean;2246 readonly isFeePaid: boolean;2247 readonly asFeePaid: u128;2248 readonly isReasonable: boolean;2249 readonly isKnownGood: boolean;2250 readonly isOutOfDate: boolean;2251 readonly isLowQuality: boolean;2252 readonly isErroneous: boolean;2253 readonly type: 'Unknown' | 'FeePaid' | 'Reasonable' | 'KnownGood' | 'OutOfDate' | 'LowQuality' | 'Erroneous';2254 }22552256 /** @name PalletIdentityRegistration (265) */2257 interface PalletIdentityRegistration extends Struct {2258 readonly judgements: Vec<ITuple<[u32, PalletIdentityJudgement]>>;2259 readonly deposit: u128;2260 readonly info: PalletIdentityIdentityInfo;2261 }22622263 /** @name PalletPreimageCall (273) */2264 interface PalletPreimageCall extends Enum {2265 readonly isNotePreimage: boolean;2266 readonly asNotePreimage: {2267 readonly bytes: Bytes;2268 } & Struct;2269 readonly isUnnotePreimage: boolean;2270 readonly asUnnotePreimage: {2271 readonly hash_: H256;2272 } & Struct;2273 readonly isRequestPreimage: boolean;2274 readonly asRequestPreimage: {2275 readonly hash_: H256;2276 } & Struct;2277 readonly isUnrequestPreimage: boolean;2278 readonly asUnrequestPreimage: {2279 readonly hash_: H256;2280 } & Struct;2281 readonly type: 'NotePreimage' | 'UnnotePreimage' | 'RequestPreimage' | 'UnrequestPreimage';2282 }198722831988 /** @name CumulusPalletXcmpQueueCall (202) */2284 /** @name CumulusPalletXcmpQueueCall (274) */1989 interface CumulusPalletXcmpQueueCall extends Enum {2285 interface CumulusPalletXcmpQueueCall extends Enum {1990 readonly isServiceOverweight: boolean;2286 readonly isServiceOverweight: boolean;1991 readonly asServiceOverweight: {2287 readonly asServiceOverweight: {2021 readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';2317 readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';2022 }2318 }202323192024 /** @name PalletXcmCall (203) */2320 /** @name PalletXcmCall (275) */2025 interface PalletXcmCall extends Enum {2321 interface PalletXcmCall extends Enum {2026 readonly isSend: boolean;2322 readonly isSend: boolean;2027 readonly asSend: {2323 readonly asSend: {2083 readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';2379 readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';2084 }2380 }208523812086 /** @name XcmVersionedXcm (204) */2382 /** @name XcmVersionedXcm (276) */2087 interface XcmVersionedXcm extends Enum {2383 interface XcmVersionedXcm extends Enum {2088 readonly isV0: boolean;2384 readonly isV0: boolean;2089 readonly asV0: XcmV0Xcm;2385 readonly asV0: XcmV0Xcm;2094 readonly type: 'V0' | 'V1' | 'V2';2390 readonly type: 'V0' | 'V1' | 'V2';2095 }2391 }209623922097 /** @name XcmV0Xcm (205) */2393 /** @name XcmV0Xcm (277) */2098 interface XcmV0Xcm extends Enum {2394 interface XcmV0Xcm extends Enum {2099 readonly isWithdrawAsset: boolean;2395 readonly isWithdrawAsset: boolean;2100 readonly asWithdrawAsset: {2396 readonly asWithdrawAsset: {2157 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';2453 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';2158 }2454 }215924552160 /** @name XcmV0Order (207) */2456 /** @name XcmV0Order (279) */2161 interface XcmV0Order extends Enum {2457 interface XcmV0Order extends Enum {2162 readonly isNull: boolean;2458 readonly isNull: boolean;2163 readonly isDepositAsset: boolean;2459 readonly isDepositAsset: boolean;2205 readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';2501 readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';2206 }2502 }220725032208 /** @name XcmV0Response (209) */2504 /** @name XcmV0Response (281) */2209 interface XcmV0Response extends Enum {2505 interface XcmV0Response extends Enum {2210 readonly isAssets: boolean;2506 readonly isAssets: boolean;2211 readonly asAssets: Vec<XcmV0MultiAsset>;2507 readonly asAssets: Vec<XcmV0MultiAsset>;2212 readonly type: 'Assets';2508 readonly type: 'Assets';2213 }2509 }221425102215 /** @name XcmV1Xcm (210) */2511 /** @name XcmV1Xcm (282) */2216 interface XcmV1Xcm extends Enum {2512 interface XcmV1Xcm extends Enum {2217 readonly isWithdrawAsset: boolean;2513 readonly isWithdrawAsset: boolean;2218 readonly asWithdrawAsset: {2514 readonly asWithdrawAsset: {2281 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';2577 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';2282 }2578 }228325792284 /** @name XcmV1Order (212) */2580 /** @name XcmV1Order (284) */2285 interface XcmV1Order extends Enum {2581 interface XcmV1Order extends Enum {2286 readonly isNoop: boolean;2582 readonly isNoop: boolean;2287 readonly isDepositAsset: boolean;2583 readonly isDepositAsset: boolean;2331 readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';2627 readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';2332 }2628 }233326292334 /** @name XcmV1Response (214) */2630 /** @name XcmV1Response (286) */2335 interface XcmV1Response extends Enum {2631 interface XcmV1Response extends Enum {2336 readonly isAssets: boolean;2632 readonly isAssets: boolean;2337 readonly asAssets: XcmV1MultiassetMultiAssets;2633 readonly asAssets: XcmV1MultiassetMultiAssets;2340 readonly type: 'Assets' | 'Version';2636 readonly type: 'Assets' | 'Version';2341 }2637 }234226382343 /** @name CumulusPalletXcmCall (228) */2639 /** @name CumulusPalletXcmCall (300) */2344 type CumulusPalletXcmCall = Null;2640 type CumulusPalletXcmCall = Null;234526412346 /** @name CumulusPalletDmpQueueCall (229) */2642 /** @name CumulusPalletDmpQueueCall (301) */2347 interface CumulusPalletDmpQueueCall extends Enum {2643 interface CumulusPalletDmpQueueCall extends Enum {2348 readonly isServiceOverweight: boolean;2644 readonly isServiceOverweight: boolean;2349 readonly asServiceOverweight: {2645 readonly asServiceOverweight: {2353 readonly type: 'ServiceOverweight';2649 readonly type: 'ServiceOverweight';2354 }2650 }235526512356 /** @name PalletInflationCall (230) */2652 /** @name PalletInflationCall (302) */2357 interface PalletInflationCall extends Enum {2653 interface PalletInflationCall extends Enum {2358 readonly isStartInflation: boolean;2654 readonly isStartInflation: boolean;2359 readonly asStartInflation: {2655 readonly asStartInflation: {2362 readonly type: 'StartInflation';2658 readonly type: 'StartInflation';2363 }2659 }236426602365 /** @name PalletUniqueCall (231) */2661 /** @name PalletUniqueCall (303) */2366 interface PalletUniqueCall extends Enum {2662 interface PalletUniqueCall extends Enum {2367 readonly isCreateCollection: boolean;2663 readonly isCreateCollection: boolean;2368 readonly asCreateCollection: {2664 readonly asCreateCollection: {2543 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' | 'ApproveFrom' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition' | 'SetAllowanceForAll' | 'ForceRepairCollection' | 'ForceRepairItem';2839 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' | 'ApproveFrom' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition' | 'SetAllowanceForAll' | 'ForceRepairCollection' | 'ForceRepairItem';2544 }2840 }254528412546 /** @name UpDataStructsCollectionMode (236) */2842 /** @name UpDataStructsCollectionMode (308) */2547 interface UpDataStructsCollectionMode extends Enum {2843 interface UpDataStructsCollectionMode extends Enum {2548 readonly isNft: boolean;2844 readonly isNft: boolean;2549 readonly isFungible: boolean;2845 readonly isFungible: boolean;2552 readonly type: 'Nft' | 'Fungible' | 'ReFungible';2848 readonly type: 'Nft' | 'Fungible' | 'ReFungible';2553 }2849 }255428502555 /** @name UpDataStructsCreateCollectionData (237) */2851 /** @name UpDataStructsCreateCollectionData (309) */2556 interface UpDataStructsCreateCollectionData extends Struct {2852 interface UpDataStructsCreateCollectionData extends Struct {2557 readonly mode: UpDataStructsCollectionMode;2853 readonly mode: UpDataStructsCollectionMode;2558 readonly access: Option<UpDataStructsAccessMode>;2854 readonly access: Option<UpDataStructsAccessMode>;2566 readonly properties: Vec<UpDataStructsProperty>;2862 readonly properties: Vec<UpDataStructsProperty>;2567 }2863 }256828642569 /** @name UpDataStructsAccessMode (239) */2865 /** @name UpDataStructsAccessMode (311) */2570 interface UpDataStructsAccessMode extends Enum {2866 interface UpDataStructsAccessMode extends Enum {2571 readonly isNormal: boolean;2867 readonly isNormal: boolean;2572 readonly isAllowList: boolean;2868 readonly isAllowList: boolean;2573 readonly type: 'Normal' | 'AllowList';2869 readonly type: 'Normal' | 'AllowList';2574 }2870 }257528712576 /** @name UpDataStructsCollectionLimits (241) */2872 /** @name UpDataStructsCollectionLimits (313) */2577 interface UpDataStructsCollectionLimits extends Struct {2873 interface UpDataStructsCollectionLimits extends Struct {2578 readonly accountTokenOwnershipLimit: Option<u32>;2874 readonly accountTokenOwnershipLimit: Option<u32>;2579 readonly sponsoredDataSize: Option<u32>;2875 readonly sponsoredDataSize: Option<u32>;2586 readonly transfersEnabled: Option<bool>;2882 readonly transfersEnabled: Option<bool>;2587 }2883 }258828842589 /** @name UpDataStructsSponsoringRateLimit (243) */2885 /** @name UpDataStructsSponsoringRateLimit (315) */2590 interface UpDataStructsSponsoringRateLimit extends Enum {2886 interface UpDataStructsSponsoringRateLimit extends Enum {2591 readonly isSponsoringDisabled: boolean;2887 readonly isSponsoringDisabled: boolean;2592 readonly isBlocks: boolean;2888 readonly isBlocks: boolean;2593 readonly asBlocks: u32;2889 readonly asBlocks: u32;2594 readonly type: 'SponsoringDisabled' | 'Blocks';2890 readonly type: 'SponsoringDisabled' | 'Blocks';2595 }2891 }259628922597 /** @name UpDataStructsCollectionPermissions (246) */2893 /** @name UpDataStructsCollectionPermissions (318) */2598 interface UpDataStructsCollectionPermissions extends Struct {2894 interface UpDataStructsCollectionPermissions extends Struct {2599 readonly access: Option<UpDataStructsAccessMode>;2895 readonly access: Option<UpDataStructsAccessMode>;2600 readonly mintMode: Option<bool>;2896 readonly mintMode: Option<bool>;2601 readonly nesting: Option<UpDataStructsNestingPermissions>;2897 readonly nesting: Option<UpDataStructsNestingPermissions>;2602 }2898 }260328992604 /** @name UpDataStructsNestingPermissions (248) */2900 /** @name UpDataStructsNestingPermissions (320) */2605 interface UpDataStructsNestingPermissions extends Struct {2901 interface UpDataStructsNestingPermissions extends Struct {2606 readonly tokenOwner: bool;2902 readonly tokenOwner: bool;2607 readonly collectionAdmin: bool;2903 readonly collectionAdmin: bool;2608 readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;2904 readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;2609 }2905 }261029062611 /** @name UpDataStructsOwnerRestrictedSet (250) */2907 /** @name UpDataStructsOwnerRestrictedSet (322) */2612 interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}2908 interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}261329092614 /** @name UpDataStructsPropertyKeyPermission (255) */2910 /** @name UpDataStructsPropertyKeyPermission (327) */2615 interface UpDataStructsPropertyKeyPermission extends Struct {2911 interface UpDataStructsPropertyKeyPermission extends Struct {2616 readonly key: Bytes;2912 readonly key: Bytes;2617 readonly permission: UpDataStructsPropertyPermission;2913 readonly permission: UpDataStructsPropertyPermission;2618 }2914 }261929152620 /** @name UpDataStructsPropertyPermission (256) */2916 /** @name UpDataStructsPropertyPermission (328) */2621 interface UpDataStructsPropertyPermission extends Struct {2917 interface UpDataStructsPropertyPermission extends Struct {2622 readonly mutable: bool;2918 readonly mutable: bool;2623 readonly collectionAdmin: bool;2919 readonly collectionAdmin: bool;2624 readonly tokenOwner: bool;2920 readonly tokenOwner: bool;2625 }2921 }262629222627 /** @name UpDataStructsProperty (259) */2923 /** @name UpDataStructsProperty (331) */2628 interface UpDataStructsProperty extends Struct {2924 interface UpDataStructsProperty extends Struct {2629 readonly key: Bytes;2925 readonly key: Bytes;2630 readonly value: Bytes;2926 readonly value: Bytes;2631 }2927 }263229282633 /** @name UpDataStructsCreateItemData (262) */2929 /** @name UpDataStructsCreateItemData (334) */2634 interface UpDataStructsCreateItemData extends Enum {2930 interface UpDataStructsCreateItemData extends Enum {2635 readonly isNft: boolean;2931 readonly isNft: boolean;2636 readonly asNft: UpDataStructsCreateNftData;2932 readonly asNft: UpDataStructsCreateNftData;2641 readonly type: 'Nft' | 'Fungible' | 'ReFungible';2937 readonly type: 'Nft' | 'Fungible' | 'ReFungible';2642 }2938 }264329392644 /** @name UpDataStructsCreateNftData (263) */2940 /** @name UpDataStructsCreateNftData (335) */2645 interface UpDataStructsCreateNftData extends Struct {2941 interface UpDataStructsCreateNftData extends Struct {2646 readonly properties: Vec<UpDataStructsProperty>;2942 readonly properties: Vec<UpDataStructsProperty>;2647 }2943 }264829442649 /** @name UpDataStructsCreateFungibleData (264) */2945 /** @name UpDataStructsCreateFungibleData (336) */2650 interface UpDataStructsCreateFungibleData extends Struct {2946 interface UpDataStructsCreateFungibleData extends Struct {2651 readonly value: u128;2947 readonly value: u128;2652 }2948 }265329492654 /** @name UpDataStructsCreateReFungibleData (265) */2950 /** @name UpDataStructsCreateReFungibleData (337) */2655 interface UpDataStructsCreateReFungibleData extends Struct {2951 interface UpDataStructsCreateReFungibleData extends Struct {2656 readonly pieces: u128;2952 readonly pieces: u128;2657 readonly properties: Vec<UpDataStructsProperty>;2953 readonly properties: Vec<UpDataStructsProperty>;2658 }2954 }265929552660 /** @name UpDataStructsCreateItemExData (268) */2956 /** @name UpDataStructsCreateItemExData (340) */2661 interface UpDataStructsCreateItemExData extends Enum {2957 interface UpDataStructsCreateItemExData extends Enum {2662 readonly isNft: boolean;2958 readonly isNft: boolean;2663 readonly asNft: Vec<UpDataStructsCreateNftExData>;2959 readonly asNft: Vec<UpDataStructsCreateNftExData>;2670 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';2966 readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';2671 }2967 }267229682673 /** @name UpDataStructsCreateNftExData (270) */2969 /** @name UpDataStructsCreateNftExData (342) */2674 interface UpDataStructsCreateNftExData extends Struct {2970 interface UpDataStructsCreateNftExData extends Struct {2675 readonly properties: Vec<UpDataStructsProperty>;2971 readonly properties: Vec<UpDataStructsProperty>;2676 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;2972 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;2677 }2973 }267829742679 /** @name UpDataStructsCreateRefungibleExSingleOwner (277) */2975 /** @name UpDataStructsCreateRefungibleExSingleOwner (349) */2680 interface UpDataStructsCreateRefungibleExSingleOwner extends Struct {2976 interface UpDataStructsCreateRefungibleExSingleOwner extends Struct {2681 readonly user: PalletEvmAccountBasicCrossAccountIdRepr;2977 readonly user: PalletEvmAccountBasicCrossAccountIdRepr;2682 readonly pieces: u128;2978 readonly pieces: u128;2683 readonly properties: Vec<UpDataStructsProperty>;2979 readonly properties: Vec<UpDataStructsProperty>;2684 }2980 }268529812686 /** @name UpDataStructsCreateRefungibleExMultipleOwners (279) */2982 /** @name UpDataStructsCreateRefungibleExMultipleOwners (351) */2687 interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct {2983 interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct {2688 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;2984 readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;2689 readonly properties: Vec<UpDataStructsProperty>;2985 readonly properties: Vec<UpDataStructsProperty>;2690 }2986 }269129872692 /** @name PalletConfigurationCall (280) */2988 /** @name PalletConfigurationCall (352) */2693 interface PalletConfigurationCall extends Enum {2989 interface PalletConfigurationCall extends Enum {2694 readonly isSetWeightToFeeCoefficientOverride: boolean;2990 readonly isSetWeightToFeeCoefficientOverride: boolean;2695 readonly asSetWeightToFeeCoefficientOverride: {2991 readonly asSetWeightToFeeCoefficientOverride: {2722 readonly type: 'SetWeightToFeeCoefficientOverride' | 'SetMinGasPriceOverride' | 'SetXcmAllowedLocations' | 'SetAppPromotionConfigurationOverride' | 'SetCollatorSelectionDesiredCollators' | 'SetCollatorSelectionLicenseBond' | 'SetCollatorSelectionKickThreshold';3018 readonly type: 'SetWeightToFeeCoefficientOverride' | 'SetMinGasPriceOverride' | 'SetXcmAllowedLocations' | 'SetAppPromotionConfigurationOverride' | 'SetCollatorSelectionDesiredCollators' | 'SetCollatorSelectionLicenseBond' | 'SetCollatorSelectionKickThreshold';2723 }3019 }272430202725 /** @name PalletConfigurationAppPromotionConfiguration (285) */3021 /** @name PalletConfigurationAppPromotionConfiguration (357) */2726 interface PalletConfigurationAppPromotionConfiguration extends Struct {3022 interface PalletConfigurationAppPromotionConfiguration extends Struct {2727 readonly recalculationInterval: Option<u32>;3023 readonly recalculationInterval: Option<u32>;2728 readonly pendingInterval: Option<u32>;3024 readonly pendingInterval: Option<u32>;2729 readonly intervalIncome: Option<Perbill>;3025 readonly intervalIncome: Option<Perbill>;2730 readonly maxStakersPerCalculation: Option<u8>;3026 readonly maxStakersPerCalculation: Option<u8>;2731 }3027 }273230282733 /** @name PalletTemplateTransactionPaymentCall (289) */3029 /** @name PalletTemplateTransactionPaymentCall (361) */2734 type PalletTemplateTransactionPaymentCall = Null;3030 type PalletTemplateTransactionPaymentCall = Null;273530312736 /** @name PalletStructureCall (290) */3032 /** @name PalletStructureCall (362) */2737 type PalletStructureCall = Null;3033 type PalletStructureCall = Null;27382739 /** @name PalletRmrkCoreCall (291) */2740 interface PalletRmrkCoreCall extends Enum {2741 readonly isCreateCollection: boolean;2742 readonly asCreateCollection: {2743 readonly metadata: Bytes;2744 readonly max: Option<u32>;2745 readonly symbol: Bytes;2746 } & Struct;2747 readonly isDestroyCollection: boolean;2748 readonly asDestroyCollection: {2749 readonly collectionId: u32;2750 } & Struct;2751 readonly isChangeCollectionIssuer: boolean;2752 readonly asChangeCollectionIssuer: {2753 readonly collectionId: u32;2754 readonly newIssuer: MultiAddress;2755 } & Struct;2756 readonly isLockCollection: boolean;2757 readonly asLockCollection: {2758 readonly collectionId: u32;2759 } & Struct;2760 readonly isMintNft: boolean;2761 readonly asMintNft: {2762 readonly owner: Option<AccountId32>;2763 readonly collectionId: u32;2764 readonly recipient: Option<AccountId32>;2765 readonly royaltyAmount: Option<Permill>;2766 readonly metadata: Bytes;2767 readonly transferable: bool;2768 readonly resources: Option<Vec<RmrkTraitsResourceResourceTypes>>;2769 } & Struct;2770 readonly isBurnNft: boolean;2771 readonly asBurnNft: {2772 readonly collectionId: u32;2773 readonly nftId: u32;2774 readonly maxBurns: u32;2775 } & Struct;2776 readonly isSend: boolean;2777 readonly asSend: {2778 readonly rmrkCollectionId: u32;2779 readonly rmrkNftId: u32;2780 readonly newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple;2781 } & Struct;2782 readonly isAcceptNft: boolean;2783 readonly asAcceptNft: {2784 readonly rmrkCollectionId: u32;2785 readonly rmrkNftId: u32;2786 readonly newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple;2787 } & Struct;2788 readonly isRejectNft: boolean;2789 readonly asRejectNft: {2790 readonly rmrkCollectionId: u32;2791 readonly rmrkNftId: u32;2792 } & Struct;2793 readonly isAcceptResource: boolean;2794 readonly asAcceptResource: {2795 readonly rmrkCollectionId: u32;2796 readonly rmrkNftId: u32;2797 readonly resourceId: u32;2798 } & Struct;2799 readonly isAcceptResourceRemoval: boolean;2800 readonly asAcceptResourceRemoval: {2801 readonly rmrkCollectionId: u32;2802 readonly rmrkNftId: u32;2803 readonly resourceId: u32;2804 } & Struct;2805 readonly isSetProperty: boolean;2806 readonly asSetProperty: {2807 readonly rmrkCollectionId: Compact<u32>;2808 readonly maybeNftId: Option<u32>;2809 readonly key: Bytes;2810 readonly value: Bytes;2811 } & Struct;2812 readonly isSetPriority: boolean;2813 readonly asSetPriority: {2814 readonly rmrkCollectionId: u32;2815 readonly rmrkNftId: u32;2816 readonly priorities: Vec<u32>;2817 } & Struct;2818 readonly isAddBasicResource: boolean;2819 readonly asAddBasicResource: {2820 readonly rmrkCollectionId: u32;2821 readonly nftId: u32;2822 readonly resource: RmrkTraitsResourceBasicResource;2823 } & Struct;2824 readonly isAddComposableResource: boolean;2825 readonly asAddComposableResource: {2826 readonly rmrkCollectionId: u32;2827 readonly nftId: u32;2828 readonly resource: RmrkTraitsResourceComposableResource;2829 } & Struct;2830 readonly isAddSlotResource: boolean;2831 readonly asAddSlotResource: {2832 readonly rmrkCollectionId: u32;2833 readonly nftId: u32;2834 readonly resource: RmrkTraitsResourceSlotResource;2835 } & Struct;2836 readonly isRemoveResource: boolean;2837 readonly asRemoveResource: {2838 readonly rmrkCollectionId: u32;2839 readonly nftId: u32;2840 readonly resourceId: u32;2841 } & Struct;2842 readonly type: 'CreateCollection' | 'DestroyCollection' | 'ChangeCollectionIssuer' | 'LockCollection' | 'MintNft' | 'BurnNft' | 'Send' | 'AcceptNft' | 'RejectNft' | 'AcceptResource' | 'AcceptResourceRemoval' | 'SetProperty' | 'SetPriority' | 'AddBasicResource' | 'AddComposableResource' | 'AddSlotResource' | 'RemoveResource';2843 }28442845 /** @name RmrkTraitsResourceResourceTypes (297) */2846 interface RmrkTraitsResourceResourceTypes extends Enum {2847 readonly isBasic: boolean;2848 readonly asBasic: RmrkTraitsResourceBasicResource;2849 readonly isComposable: boolean;2850 readonly asComposable: RmrkTraitsResourceComposableResource;2851 readonly isSlot: boolean;2852 readonly asSlot: RmrkTraitsResourceSlotResource;2853 readonly type: 'Basic' | 'Composable' | 'Slot';2854 }28552856 /** @name RmrkTraitsResourceBasicResource (299) */2857 interface RmrkTraitsResourceBasicResource extends Struct {2858 readonly src: Option<Bytes>;2859 readonly metadata: Option<Bytes>;2860 readonly license: Option<Bytes>;2861 readonly thumb: Option<Bytes>;2862 }28632864 /** @name RmrkTraitsResourceComposableResource (301) */2865 interface RmrkTraitsResourceComposableResource extends Struct {2866 readonly parts: Vec<u32>;2867 readonly base: u32;2868 readonly src: Option<Bytes>;2869 readonly metadata: Option<Bytes>;2870 readonly license: Option<Bytes>;2871 readonly thumb: Option<Bytes>;2872 }28732874 /** @name RmrkTraitsResourceSlotResource (302) */2875 interface RmrkTraitsResourceSlotResource extends Struct {2876 readonly base: u32;2877 readonly src: Option<Bytes>;2878 readonly metadata: Option<Bytes>;2879 readonly slot: u32;2880 readonly license: Option<Bytes>;2881 readonly thumb: Option<Bytes>;2882 }28832884 /** @name PalletRmrkEquipCall (305) */2885 interface PalletRmrkEquipCall extends Enum {2886 readonly isCreateBase: boolean;2887 readonly asCreateBase: {2888 readonly baseType: Bytes;2889 readonly symbol: Bytes;2890 readonly parts: Vec<RmrkTraitsPartPartType>;2891 } & Struct;2892 readonly isThemeAdd: boolean;2893 readonly asThemeAdd: {2894 readonly baseId: u32;2895 readonly theme: RmrkTraitsTheme;2896 } & Struct;2897 readonly isEquippable: boolean;2898 readonly asEquippable: {2899 readonly baseId: u32;2900 readonly slotId: u32;2901 readonly equippables: RmrkTraitsPartEquippableList;2902 } & Struct;2903 readonly type: 'CreateBase' | 'ThemeAdd' | 'Equippable';2904 }29052906 /** @name RmrkTraitsPartPartType (308) */2907 interface RmrkTraitsPartPartType extends Enum {2908 readonly isFixedPart: boolean;2909 readonly asFixedPart: RmrkTraitsPartFixedPart;2910 readonly isSlotPart: boolean;2911 readonly asSlotPart: RmrkTraitsPartSlotPart;2912 readonly type: 'FixedPart' | 'SlotPart';2913 }29142915 /** @name RmrkTraitsPartFixedPart (310) */2916 interface RmrkTraitsPartFixedPart extends Struct {2917 readonly id: u32;2918 readonly z: u32;2919 readonly src: Bytes;2920 }29212922 /** @name RmrkTraitsPartSlotPart (311) */2923 interface RmrkTraitsPartSlotPart extends Struct {2924 readonly id: u32;2925 readonly equippable: RmrkTraitsPartEquippableList;2926 readonly src: Bytes;2927 readonly z: u32;2928 }29292930 /** @name RmrkTraitsPartEquippableList (312) */2931 interface RmrkTraitsPartEquippableList extends Enum {2932 readonly isAll: boolean;2933 readonly isEmpty: boolean;2934 readonly isCustom: boolean;2935 readonly asCustom: Vec<u32>;2936 readonly type: 'All' | 'Empty' | 'Custom';2937 }29382939 /** @name RmrkTraitsTheme (314) */2940 interface RmrkTraitsTheme extends Struct {2941 readonly name: Bytes;2942 readonly properties: Vec<RmrkTraitsThemeThemeProperty>;2943 readonly inherit: bool;2944 }29452946 /** @name RmrkTraitsThemeThemeProperty (316) */2947 interface RmrkTraitsThemeThemeProperty extends Struct {2948 readonly key: Bytes;2949 readonly value: Bytes;2950 }295130342952 /** @name PalletAppPromotionCall (318) */3035 /** @name PalletAppPromotionCall (363) */2953 interface PalletAppPromotionCall extends Enum {3036 interface PalletAppPromotionCall extends Enum {2954 readonly isSetAdminAddress: boolean;3037 readonly isSetAdminAddress: boolean;2955 readonly asSetAdminAddress: {3038 readonly asSetAdminAddress: {2959 readonly asStake: {3042 readonly asStake: {2960 readonly amount: u128;3043 readonly amount: u128;2961 } & Struct;3044 } & Struct;2962 readonly isUnstake: boolean;3045 readonly isUnstakeAll: boolean;2963 readonly isSponsorCollection: boolean;3046 readonly isSponsorCollection: boolean;2964 readonly asSponsorCollection: {3047 readonly asSponsorCollection: {2965 readonly collectionId: u32;3048 readonly collectionId: u32;2980 readonly asPayoutStakers: {3063 readonly asPayoutStakers: {2981 readonly stakersNumber: Option<u8>;3064 readonly stakersNumber: Option<u8>;2982 } & Struct;3065 } & Struct;3066 readonly isUnstakePartial: boolean;3067 readonly asUnstakePartial: {3068 readonly amount: u128;3069 } & Struct;2983 readonly type: 'SetAdminAddress' | 'Stake' | 'Unstake' | 'SponsorCollection' | 'StopSponsoringCollection' | 'SponsorContract' | 'StopSponsoringContract' | 'PayoutStakers';3070 readonly type: 'SetAdminAddress' | 'Stake' | 'UnstakeAll' | 'SponsorCollection' | 'StopSponsoringCollection' | 'SponsorContract' | 'StopSponsoringContract' | 'PayoutStakers' | 'UnstakePartial';2984 }3071 }298530722986 /** @name PalletForeignAssetsModuleCall (319) */3073 /** @name PalletForeignAssetsModuleCall (364) */2987 interface PalletForeignAssetsModuleCall extends Enum {3074 interface PalletForeignAssetsModuleCall extends Enum {2988 readonly isRegisterForeignAsset: boolean;3075 readonly isRegisterForeignAsset: boolean;2989 readonly asRegisterForeignAsset: {3076 readonly asRegisterForeignAsset: {3000 readonly type: 'RegisterForeignAsset' | 'UpdateForeignAsset';3087 readonly type: 'RegisterForeignAsset' | 'UpdateForeignAsset';3001 }3088 }300230893003 /** @name PalletEvmCall (320) */3090 /** @name PalletEvmCall (365) */3004 interface PalletEvmCall extends Enum {3091 interface PalletEvmCall extends Enum {3005 readonly isWithdraw: boolean;3092 readonly isWithdraw: boolean;3006 readonly asWithdraw: {3093 readonly asWithdraw: {3045 readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';3132 readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';3046 }3133 }304731343048 /** @name PalletEthereumCall (326) */3135 /** @name PalletEthereumCall (371) */3049 interface PalletEthereumCall extends Enum {3136 interface PalletEthereumCall extends Enum {3050 readonly isTransact: boolean;3137 readonly isTransact: boolean;3051 readonly asTransact: {3138 readonly asTransact: {3054 readonly type: 'Transact';3141 readonly type: 'Transact';3055 }3142 }305631433057 /** @name EthereumTransactionTransactionV2 (327) */3144 /** @name EthereumTransactionTransactionV2 (372) */3058 interface EthereumTransactionTransactionV2 extends Enum {3145 interface EthereumTransactionTransactionV2 extends Enum {3059 readonly isLegacy: boolean;3146 readonly isLegacy: boolean;3060 readonly asLegacy: EthereumTransactionLegacyTransaction;3147 readonly asLegacy: EthereumTransactionLegacyTransaction;3065 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3152 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3066 }3153 }306731543068 /** @name EthereumTransactionLegacyTransaction (328) */3155 /** @name EthereumTransactionLegacyTransaction (373) */3069 interface EthereumTransactionLegacyTransaction extends Struct {3156 interface EthereumTransactionLegacyTransaction extends Struct {3070 readonly nonce: U256;3157 readonly nonce: U256;3071 readonly gasPrice: U256;3158 readonly gasPrice: U256;3076 readonly signature: EthereumTransactionTransactionSignature;3163 readonly signature: EthereumTransactionTransactionSignature;3077 }3164 }307831653079 /** @name EthereumTransactionTransactionAction (329) */3166 /** @name EthereumTransactionTransactionAction (374) */3080 interface EthereumTransactionTransactionAction extends Enum {3167 interface EthereumTransactionTransactionAction extends Enum {3081 readonly isCall: boolean;3168 readonly isCall: boolean;3082 readonly asCall: H160;3169 readonly asCall: H160;3083 readonly isCreate: boolean;3170 readonly isCreate: boolean;3084 readonly type: 'Call' | 'Create';3171 readonly type: 'Call' | 'Create';3085 }3172 }308631733087 /** @name EthereumTransactionTransactionSignature (330) */3174 /** @name EthereumTransactionTransactionSignature (375) */3088 interface EthereumTransactionTransactionSignature extends Struct {3175 interface EthereumTransactionTransactionSignature extends Struct {3089 readonly v: u64;3176 readonly v: u64;3090 readonly r: H256;3177 readonly r: H256;3091 readonly s: H256;3178 readonly s: H256;3092 }3179 }309331803094 /** @name EthereumTransactionEip2930Transaction (332) */3181 /** @name EthereumTransactionEip2930Transaction (377) */3095 interface EthereumTransactionEip2930Transaction extends Struct {3182 interface EthereumTransactionEip2930Transaction extends Struct {3096 readonly chainId: u64;3183 readonly chainId: u64;3097 readonly nonce: U256;3184 readonly nonce: U256;3106 readonly s: H256;3193 readonly s: H256;3107 }3194 }310831953109 /** @name EthereumTransactionAccessListItem (334) */3196 /** @name EthereumTransactionAccessListItem (379) */3110 interface EthereumTransactionAccessListItem extends Struct {3197 interface EthereumTransactionAccessListItem extends Struct {3111 readonly address: H160;3198 readonly address: H160;3112 readonly storageKeys: Vec<H256>;3199 readonly storageKeys: Vec<H256>;3113 }3200 }311432013115 /** @name EthereumTransactionEip1559Transaction (335) */3202 /** @name EthereumTransactionEip1559Transaction (380) */3116 interface EthereumTransactionEip1559Transaction extends Struct {3203 interface EthereumTransactionEip1559Transaction extends Struct {3117 readonly chainId: u64;3204 readonly chainId: u64;3118 readonly nonce: U256;3205 readonly nonce: U256;3128 readonly s: H256;3215 readonly s: H256;3129 }3216 }313032173131 /** @name PalletEvmMigrationCall (336) */3218 /** @name PalletEvmMigrationCall (381) */3132 interface PalletEvmMigrationCall extends Enum {3219 interface PalletEvmMigrationCall extends Enum {3133 readonly isBegin: boolean;3220 readonly isBegin: boolean;3134 readonly asBegin: {3221 readonly asBegin: {3152 readonly asInsertEvents: {3239 readonly asInsertEvents: {3153 readonly events: Vec<Bytes>;3240 readonly events: Vec<Bytes>;3154 } & Struct;3241 } & Struct;3242 readonly isRemoveRmrkData: boolean;3155 readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents';3243 readonly type: 'Begin' | 'SetData' | 'Finish' | 'InsertEthLogs' | 'InsertEvents' | 'RemoveRmrkData';3156 }3244 }315732453158 /** @name PalletMaintenanceCall (340) */3246 /** @name PalletMaintenanceCall (385) */3159 interface PalletMaintenanceCall extends Enum {3247 interface PalletMaintenanceCall extends Enum {3160 readonly isEnable: boolean;3248 readonly isEnable: boolean;3161 readonly isDisable: boolean;3249 readonly isDisable: boolean;3250 readonly isExecutePreimage: boolean;3251 readonly asExecutePreimage: {3252 readonly hash_: H256;3253 readonly weightBound: SpWeightsWeightV2Weight;3254 } & Struct;3162 readonly type: 'Enable' | 'Disable';3255 readonly type: 'Enable' | 'Disable' | 'ExecutePreimage';3163 }3256 }316432573165 /** @name PalletTestUtilsCall (341) */3258 /** @name PalletTestUtilsCall (386) */3166 interface PalletTestUtilsCall extends Enum {3259 interface PalletTestUtilsCall extends Enum {3167 readonly isEnable: boolean;3260 readonly isEnable: boolean;3168 readonly isSetTestValue: boolean;3261 readonly isSetTestValue: boolean;3182 readonly type: 'Enable' | 'SetTestValue' | 'SetTestValueAndRollback' | 'IncTestValue' | 'JustTakeFee' | 'BatchAll';3275 readonly type: 'Enable' | 'SetTestValue' | 'SetTestValueAndRollback' | 'IncTestValue' | 'JustTakeFee' | 'BatchAll';3183 }3276 }318432773185 /** @name PalletSudoError (343) */3278 /** @name PalletSudoError (388) */3186 interface PalletSudoError extends Enum {3279 interface PalletSudoError extends Enum {3187 readonly isRequireSudo: boolean;3280 readonly isRequireSudo: boolean;3188 readonly type: 'RequireSudo';3281 readonly type: 'RequireSudo';3189 }3282 }319032833191 /** @name OrmlVestingModuleError (345) */3284 /** @name OrmlVestingModuleError (390) */3192 interface OrmlVestingModuleError extends Enum {3285 interface OrmlVestingModuleError extends Enum {3193 readonly isZeroVestingPeriod: boolean;3286 readonly isZeroVestingPeriod: boolean;3194 readonly isZeroVestingPeriodCount: boolean;3287 readonly isZeroVestingPeriodCount: boolean;3199 readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';3292 readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';3200 }3293 }320132943202 /** @name OrmlXtokensModuleError (346) */3295 /** @name OrmlXtokensModuleError (391) */3203 interface OrmlXtokensModuleError extends Enum {3296 interface OrmlXtokensModuleError extends Enum {3204 readonly isAssetHasNoReserve: boolean;3297 readonly isAssetHasNoReserve: boolean;3205 readonly isNotCrossChainTransfer: boolean;3298 readonly isNotCrossChainTransfer: boolean;3223 readonly type: 'AssetHasNoReserve' | 'NotCrossChainTransfer' | 'InvalidDest' | 'NotCrossChainTransferableCurrency' | 'UnweighableMessage' | 'XcmExecutionFailed' | 'CannotReanchor' | 'InvalidAncestry' | 'InvalidAsset' | 'DestinationNotInvertible' | 'BadVersion' | 'DistinctReserveForAssetAndFee' | 'ZeroFee' | 'ZeroAmount' | 'TooManyAssetsBeingSent' | 'AssetIndexNonExistent' | 'FeeNotEnough' | 'NotSupportedMultiLocation' | 'MinXcmFeeNotDefined';3316 readonly type: 'AssetHasNoReserve' | 'NotCrossChainTransfer' | 'InvalidDest' | 'NotCrossChainTransferableCurrency' | 'UnweighableMessage' | 'XcmExecutionFailed' | 'CannotReanchor' | 'InvalidAncestry' | 'InvalidAsset' | 'DestinationNotInvertible' | 'BadVersion' | 'DistinctReserveForAssetAndFee' | 'ZeroFee' | 'ZeroAmount' | 'TooManyAssetsBeingSent' | 'AssetIndexNonExistent' | 'FeeNotEnough' | 'NotSupportedMultiLocation' | 'MinXcmFeeNotDefined';3224 }3317 }322533183226 /** @name OrmlTokensBalanceLock (349) */3319 /** @name OrmlTokensBalanceLock (394) */3227 interface OrmlTokensBalanceLock extends Struct {3320 interface OrmlTokensBalanceLock extends Struct {3228 readonly id: U8aFixed;3321 readonly id: U8aFixed;3229 readonly amount: u128;3322 readonly amount: u128;3230 }3323 }323133243232 /** @name OrmlTokensAccountData (351) */3325 /** @name OrmlTokensAccountData (396) */3233 interface OrmlTokensAccountData extends Struct {3326 interface OrmlTokensAccountData extends Struct {3234 readonly free: u128;3327 readonly free: u128;3235 readonly reserved: u128;3328 readonly reserved: u128;3236 readonly frozen: u128;3329 readonly frozen: u128;3237 }3330 }323833313239 /** @name OrmlTokensReserveData (353) */3332 /** @name OrmlTokensReserveData (398) */3240 interface OrmlTokensReserveData extends Struct {3333 interface OrmlTokensReserveData extends Struct {3241 readonly id: Null;3334 readonly id: Null;3242 readonly amount: u128;3335 readonly amount: u128;3243 }3336 }324433373245 /** @name OrmlTokensModuleError (355) */3338 /** @name OrmlTokensModuleError (400) */3246 interface OrmlTokensModuleError extends Enum {3339 interface OrmlTokensModuleError extends Enum {3247 readonly isBalanceTooLow: boolean;3340 readonly isBalanceTooLow: boolean;3248 readonly isAmountIntoBalanceFailed: boolean;3341 readonly isAmountIntoBalanceFailed: boolean;3255 readonly type: 'BalanceTooLow' | 'AmountIntoBalanceFailed' | 'LiquidityRestrictions' | 'MaxLocksExceeded' | 'KeepAlive' | 'ExistentialDeposit' | 'DeadAccount' | 'TooManyReserves';3348 readonly type: 'BalanceTooLow' | 'AmountIntoBalanceFailed' | 'LiquidityRestrictions' | 'MaxLocksExceeded' | 'KeepAlive' | 'ExistentialDeposit' | 'DeadAccount' | 'TooManyReserves';3256 }3349 }33503351 /** @name PalletIdentityRegistrarInfo (405) */3352 interface PalletIdentityRegistrarInfo extends Struct {3353 readonly account: AccountId32;3354 readonly fee: u128;3355 readonly fields: PalletIdentityBitFlags;3356 }33573358 /** @name PalletIdentityError (407) */3359 interface PalletIdentityError extends Enum {3360 readonly isTooManySubAccounts: boolean;3361 readonly isNotFound: boolean;3362 readonly isNotNamed: boolean;3363 readonly isEmptyIndex: boolean;3364 readonly isFeeChanged: boolean;3365 readonly isNoIdentity: boolean;3366 readonly isStickyJudgement: boolean;3367 readonly isJudgementGiven: boolean;3368 readonly isInvalidJudgement: boolean;3369 readonly isInvalidIndex: boolean;3370 readonly isInvalidTarget: boolean;3371 readonly isTooManyFields: boolean;3372 readonly isTooManyRegistrars: boolean;3373 readonly isAlreadyClaimed: boolean;3374 readonly isNotSub: boolean;3375 readonly isNotOwned: boolean;3376 readonly isJudgementForDifferentIdentity: boolean;3377 readonly isJudgementPaymentFailed: boolean;3378 readonly type: 'TooManySubAccounts' | 'NotFound' | 'NotNamed' | 'EmptyIndex' | 'FeeChanged' | 'NoIdentity' | 'StickyJudgement' | 'JudgementGiven' | 'InvalidJudgement' | 'InvalidIndex' | 'InvalidTarget' | 'TooManyFields' | 'TooManyRegistrars' | 'AlreadyClaimed' | 'NotSub' | 'NotOwned' | 'JudgementForDifferentIdentity' | 'JudgementPaymentFailed';3379 }33803381 /** @name PalletPreimageRequestStatus (408) */3382 interface PalletPreimageRequestStatus extends Enum {3383 readonly isUnrequested: boolean;3384 readonly asUnrequested: {3385 readonly deposit: ITuple<[AccountId32, u128]>;3386 readonly len: u32;3387 } & Struct;3388 readonly isRequested: boolean;3389 readonly asRequested: {3390 readonly deposit: Option<ITuple<[AccountId32, u128]>>;3391 readonly count: u32;3392 readonly len: Option<u32>;3393 } & Struct;3394 readonly type: 'Unrequested' | 'Requested';3395 }33963397 /** @name PalletPreimageError (413) */3398 interface PalletPreimageError extends Enum {3399 readonly isTooBig: boolean;3400 readonly isAlreadyNoted: boolean;3401 readonly isNotAuthorized: boolean;3402 readonly isNotNoted: boolean;3403 readonly isRequested: boolean;3404 readonly isNotRequested: boolean;3405 readonly type: 'TooBig' | 'AlreadyNoted' | 'NotAuthorized' | 'NotNoted' | 'Requested' | 'NotRequested';3406 }325734073258 /** @name CumulusPalletXcmpQueueInboundChannelDetails (357) */3408 /** @name CumulusPalletXcmpQueueInboundChannelDetails (415) */3259 interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {3409 interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {3260 readonly sender: u32;3410 readonly sender: u32;3261 readonly state: CumulusPalletXcmpQueueInboundState;3411 readonly state: CumulusPalletXcmpQueueInboundState;3262 readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;3412 readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;3263 }3413 }326434143265 /** @name CumulusPalletXcmpQueueInboundState (358) */3415 /** @name CumulusPalletXcmpQueueInboundState (416) */3266 interface CumulusPalletXcmpQueueInboundState extends Enum {3416 interface CumulusPalletXcmpQueueInboundState extends Enum {3267 readonly isOk: boolean;3417 readonly isOk: boolean;3268 readonly isSuspended: boolean;3418 readonly isSuspended: boolean;3269 readonly type: 'Ok' | 'Suspended';3419 readonly type: 'Ok' | 'Suspended';3270 }3420 }327134213272 /** @name PolkadotParachainPrimitivesXcmpMessageFormat (361) */3422 /** @name PolkadotParachainPrimitivesXcmpMessageFormat (419) */3273 interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {3423 interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {3274 readonly isConcatenatedVersionedXcm: boolean;3424 readonly isConcatenatedVersionedXcm: boolean;3275 readonly isConcatenatedEncodedBlob: boolean;3425 readonly isConcatenatedEncodedBlob: boolean;3276 readonly isSignals: boolean;3426 readonly isSignals: boolean;3277 readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';3427 readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';3278 }3428 }327934293280 /** @name CumulusPalletXcmpQueueOutboundChannelDetails (364) */3430 /** @name CumulusPalletXcmpQueueOutboundChannelDetails (422) */3281 interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {3431 interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {3282 readonly recipient: u32;3432 readonly recipient: u32;3283 readonly state: CumulusPalletXcmpQueueOutboundState;3433 readonly state: CumulusPalletXcmpQueueOutboundState;3286 readonly lastIndex: u16;3436 readonly lastIndex: u16;3287 }3437 }328834383289 /** @name CumulusPalletXcmpQueueOutboundState (365) */3439 /** @name CumulusPalletXcmpQueueOutboundState (423) */3290 interface CumulusPalletXcmpQueueOutboundState extends Enum {3440 interface CumulusPalletXcmpQueueOutboundState extends Enum {3291 readonly isOk: boolean;3441 readonly isOk: boolean;3292 readonly isSuspended: boolean;3442 readonly isSuspended: boolean;3293 readonly type: 'Ok' | 'Suspended';3443 readonly type: 'Ok' | 'Suspended';3294 }3444 }329534453296 /** @name CumulusPalletXcmpQueueQueueConfigData (367) */3446 /** @name CumulusPalletXcmpQueueQueueConfigData (425) */3297 interface CumulusPalletXcmpQueueQueueConfigData extends Struct {3447 interface CumulusPalletXcmpQueueQueueConfigData extends Struct {3298 readonly suspendThreshold: u32;3448 readonly suspendThreshold: u32;3299 readonly dropThreshold: u32;3449 readonly dropThreshold: u32;3303 readonly xcmpMaxIndividualWeight: SpWeightsWeightV2Weight;3453 readonly xcmpMaxIndividualWeight: SpWeightsWeightV2Weight;3304 }3454 }330534553306 /** @name CumulusPalletXcmpQueueError (369) */3456 /** @name CumulusPalletXcmpQueueError (427) */3307 interface CumulusPalletXcmpQueueError extends Enum {3457 interface CumulusPalletXcmpQueueError extends Enum {3308 readonly isFailedToSend: boolean;3458 readonly isFailedToSend: boolean;3309 readonly isBadXcmOrigin: boolean;3459 readonly isBadXcmOrigin: boolean;3313 readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';3463 readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';3314 }3464 }331534653316 /** @name PalletXcmError (370) */3466 /** @name PalletXcmError (428) */3317 interface PalletXcmError extends Enum {3467 interface PalletXcmError extends Enum {3318 readonly isUnreachable: boolean;3468 readonly isUnreachable: boolean;3319 readonly isSendFailure: boolean;3469 readonly isSendFailure: boolean;3331 readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';3481 readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';3332 }3482 }333334833334 /** @name CumulusPalletXcmError (371) */3484 /** @name CumulusPalletXcmError (429) */3335 type CumulusPalletXcmError = Null;3485 type CumulusPalletXcmError = Null;333634863337 /** @name CumulusPalletDmpQueueConfigData (372) */3487 /** @name CumulusPalletDmpQueueConfigData (430) */3338 interface CumulusPalletDmpQueueConfigData extends Struct {3488 interface CumulusPalletDmpQueueConfigData extends Struct {3339 readonly maxIndividual: SpWeightsWeightV2Weight;3489 readonly maxIndividual: SpWeightsWeightV2Weight;3340 }3490 }334134913342 /** @name CumulusPalletDmpQueuePageIndexData (373) */3492 /** @name CumulusPalletDmpQueuePageIndexData (431) */3343 interface CumulusPalletDmpQueuePageIndexData extends Struct {3493 interface CumulusPalletDmpQueuePageIndexData extends Struct {3344 readonly beginUsed: u32;3494 readonly beginUsed: u32;3345 readonly endUsed: u32;3495 readonly endUsed: u32;3346 readonly overweightCount: u64;3496 readonly overweightCount: u64;3347 }3497 }334834983349 /** @name CumulusPalletDmpQueueError (376) */3499 /** @name CumulusPalletDmpQueueError (434) */3350 interface CumulusPalletDmpQueueError extends Enum {3500 interface CumulusPalletDmpQueueError extends Enum {3351 readonly isUnknown: boolean;3501 readonly isUnknown: boolean;3352 readonly isOverLimit: boolean;3502 readonly isOverLimit: boolean;3353 readonly type: 'Unknown' | 'OverLimit';3503 readonly type: 'Unknown' | 'OverLimit';3354 }3504 }335535053356 /** @name PalletUniqueError (380) */3506 /** @name PalletUniqueError (438) */3357 interface PalletUniqueError extends Enum {3507 interface PalletUniqueError extends Enum {3358 readonly isCollectionDecimalPointLimitExceeded: boolean;3508 readonly isCollectionDecimalPointLimitExceeded: boolean;3359 readonly isEmptyArgument: boolean;3509 readonly isEmptyArgument: boolean;3360 readonly isRepartitionCalledOnNonRefungibleCollection: boolean;3510 readonly isRepartitionCalledOnNonRefungibleCollection: boolean;3361 readonly type: 'CollectionDecimalPointLimitExceeded' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';3511 readonly type: 'CollectionDecimalPointLimitExceeded' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';3362 }3512 }336335133364 /** @name PalletConfigurationError (381) */3514 /** @name PalletConfigurationError (439) */3365 interface PalletConfigurationError extends Enum {3515 interface PalletConfigurationError extends Enum {3366 readonly isInconsistentConfiguration: boolean;3516 readonly isInconsistentConfiguration: boolean;3367 readonly type: 'InconsistentConfiguration';3517 readonly type: 'InconsistentConfiguration';3368 }3518 }336935193370 /** @name UpDataStructsCollection (382) */3520 /** @name UpDataStructsCollection (440) */3371 interface UpDataStructsCollection extends Struct {3521 interface UpDataStructsCollection extends Struct {3372 readonly owner: AccountId32;3522 readonly owner: AccountId32;3373 readonly mode: UpDataStructsCollectionMode;3523 readonly mode: UpDataStructsCollectionMode;3380 readonly flags: U8aFixed;3530 readonly flags: U8aFixed;3381 }3531 }338235323383 /** @name UpDataStructsSponsorshipStateAccountId32 (383) */3533 /** @name UpDataStructsSponsorshipStateAccountId32 (441) */3384 interface UpDataStructsSponsorshipStateAccountId32 extends Enum {3534 interface UpDataStructsSponsorshipStateAccountId32 extends Enum {3385 readonly isDisabled: boolean;3535 readonly isDisabled: boolean;3386 readonly isUnconfirmed: boolean;3536 readonly isUnconfirmed: boolean;3390 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3540 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3391 }3541 }339235423393 /** @name UpDataStructsProperties (385) */3543 /** @name UpDataStructsProperties (442) */3394 interface UpDataStructsProperties extends Struct {3544 interface UpDataStructsProperties extends Struct {3395 readonly map: UpDataStructsPropertiesMapBoundedVec;3545 readonly map: UpDataStructsPropertiesMapBoundedVec;3396 readonly consumedSpace: u32;3546 readonly consumedSpace: u32;3397 readonly spaceLimit: u32;3547 readonly spaceLimit: u32;3398 }3548 }339935493400 /** @name UpDataStructsPropertiesMapBoundedVec (386) */3550 /** @name UpDataStructsPropertiesMapBoundedVec (443) */3401 interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}3551 interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}340235523403 /** @name UpDataStructsPropertiesMapPropertyPermission (391) */3553 /** @name UpDataStructsPropertiesMapPropertyPermission (448) */3404 interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}3554 interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}340535553406 /** @name UpDataStructsCollectionStats (398) */3556 /** @name UpDataStructsCollectionStats (455) */3407 interface UpDataStructsCollectionStats extends Struct {3557 interface UpDataStructsCollectionStats extends Struct {3408 readonly created: u32;3558 readonly created: u32;3409 readonly destroyed: u32;3559 readonly destroyed: u32;3410 readonly alive: u32;3560 readonly alive: u32;3411 }3561 }341235623413 /** @name UpDataStructsTokenChild (399) */3563 /** @name UpDataStructsTokenChild (456) */3414 interface UpDataStructsTokenChild extends Struct {3564 interface UpDataStructsTokenChild extends Struct {3415 readonly token: u32;3565 readonly token: u32;3416 readonly collection: u32;3566 readonly collection: u32;3417 }3567 }341835683419 /** @name PhantomTypeUpDataStructs (400) */3569 /** @name PhantomTypeUpDataStructs (457) */3420 interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild, UpPovEstimateRpcPovInfo]>> {}3570 interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, UpPovEstimateRpcPovInfo]>> {}342135713422 /** @name UpDataStructsTokenData (402) */3572 /** @name UpDataStructsTokenData (459) */3423 interface UpDataStructsTokenData extends Struct {3573 interface UpDataStructsTokenData extends Struct {3424 readonly properties: Vec<UpDataStructsProperty>;3574 readonly properties: Vec<UpDataStructsProperty>;3425 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;3575 readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;3426 readonly pieces: u128;3576 readonly pieces: u128;3427 }3577 }342835783429 /** @name UpDataStructsRpcCollection (404) */3579 /** @name UpDataStructsRpcCollection (461) */3430 interface UpDataStructsRpcCollection extends Struct {3580 interface UpDataStructsRpcCollection extends Struct {3431 readonly owner: AccountId32;3581 readonly owner: AccountId32;3432 readonly mode: UpDataStructsCollectionMode;3582 readonly mode: UpDataStructsCollectionMode;3442 readonly flags: UpDataStructsRpcCollectionFlags;3592 readonly flags: UpDataStructsRpcCollectionFlags;3443 }3593 }344435943445 /** @name UpDataStructsRpcCollectionFlags (405) */3595 /** @name UpDataStructsRpcCollectionFlags (462) */3446 interface UpDataStructsRpcCollectionFlags extends Struct {3596 interface UpDataStructsRpcCollectionFlags extends Struct {3447 readonly foreign: bool;3597 readonly foreign: bool;3448 readonly erc721metadata: bool;3598 readonly erc721metadata: bool;3449 }3599 }34503451 /** @name RmrkTraitsCollectionCollectionInfo (406) */3452 interface RmrkTraitsCollectionCollectionInfo extends Struct {3453 readonly issuer: AccountId32;3454 readonly metadata: Bytes;3455 readonly max: Option<u32>;3456 readonly symbol: Bytes;3457 readonly nftsCount: u32;3458 }34593460 /** @name RmrkTraitsNftNftInfo (407) */3461 interface RmrkTraitsNftNftInfo extends Struct {3462 readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple;3463 readonly royalty: Option<RmrkTraitsNftRoyaltyInfo>;3464 readonly metadata: Bytes;3465 readonly equipped: bool;3466 readonly pending: bool;3467 }34683469 /** @name RmrkTraitsNftRoyaltyInfo (409) */3470 interface RmrkTraitsNftRoyaltyInfo extends Struct {3471 readonly recipient: AccountId32;3472 readonly amount: Permill;3473 }34743475 /** @name RmrkTraitsResourceResourceInfo (410) */3476 interface RmrkTraitsResourceResourceInfo extends Struct {3477 readonly id: u32;3478 readonly resource: RmrkTraitsResourceResourceTypes;3479 readonly pending: bool;3480 readonly pendingRemoval: bool;3481 }34823483 /** @name RmrkTraitsPropertyPropertyInfo (411) */3484 interface RmrkTraitsPropertyPropertyInfo extends Struct {3485 readonly key: Bytes;3486 readonly value: Bytes;3487 }34883489 /** @name RmrkTraitsBaseBaseInfo (412) */3490 interface RmrkTraitsBaseBaseInfo extends Struct {3491 readonly issuer: AccountId32;3492 readonly baseType: Bytes;3493 readonly symbol: Bytes;3494 }34953496 /** @name RmrkTraitsNftNftChild (413) */3497 interface RmrkTraitsNftNftChild extends Struct {3498 readonly collectionId: u32;3499 readonly nftId: u32;3500 }350136003502 /** @name UpPovEstimateRpcPovInfo (414) */3601 /** @name UpPovEstimateRpcPovInfo (463) */3503 interface UpPovEstimateRpcPovInfo extends Struct {3602 interface UpPovEstimateRpcPovInfo extends Struct {3504 readonly proofSize: u64;3603 readonly proofSize: u64;3505 readonly compactProofSize: u64;3604 readonly compactProofSize: u64;3508 readonly keyValues: Vec<UpPovEstimateRpcTrieKeyValue>;3607 readonly keyValues: Vec<UpPovEstimateRpcTrieKeyValue>;3509 }3608 }351036093511 /** @name SpRuntimeTransactionValidityTransactionValidityError (417) */3610 /** @name SpRuntimeTransactionValidityTransactionValidityError (466) */3512 interface SpRuntimeTransactionValidityTransactionValidityError extends Enum {3611 interface SpRuntimeTransactionValidityTransactionValidityError extends Enum {3513 readonly isInvalid: boolean;3612 readonly isInvalid: boolean;3514 readonly asInvalid: SpRuntimeTransactionValidityInvalidTransaction;3613 readonly asInvalid: SpRuntimeTransactionValidityInvalidTransaction;3517 readonly type: 'Invalid' | 'Unknown';3616 readonly type: 'Invalid' | 'Unknown';3518 }3617 }351936183520 /** @name SpRuntimeTransactionValidityInvalidTransaction (418) */3619 /** @name SpRuntimeTransactionValidityInvalidTransaction (467) */3521 interface SpRuntimeTransactionValidityInvalidTransaction extends Enum {3620 interface SpRuntimeTransactionValidityInvalidTransaction extends Enum {3522 readonly isCall: boolean;3621 readonly isCall: boolean;3523 readonly isPayment: boolean;3622 readonly isPayment: boolean;3534 readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryValidation' | 'BadSigner';3633 readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryValidation' | 'BadSigner';3535 }3634 }353636353537 /** @name SpRuntimeTransactionValidityUnknownTransaction (419) */3636 /** @name SpRuntimeTransactionValidityUnknownTransaction (468) */3538 interface SpRuntimeTransactionValidityUnknownTransaction extends Enum {3637 interface SpRuntimeTransactionValidityUnknownTransaction extends Enum {3539 readonly isCannotLookup: boolean;3638 readonly isCannotLookup: boolean;3540 readonly isNoUnsignedValidator: boolean;3639 readonly isNoUnsignedValidator: boolean;3543 readonly type: 'CannotLookup' | 'NoUnsignedValidator' | 'Custom';3642 readonly type: 'CannotLookup' | 'NoUnsignedValidator' | 'Custom';3544 }3643 }354536443546 /** @name UpPovEstimateRpcTrieKeyValue (421) */3645 /** @name UpPovEstimateRpcTrieKeyValue (470) */3547 interface UpPovEstimateRpcTrieKeyValue extends Struct {3646 interface UpPovEstimateRpcTrieKeyValue extends Struct {3548 readonly key: Bytes;3647 readonly key: Bytes;3549 readonly value: Bytes;3648 readonly value: Bytes;3550 }3649 }355136503552 /** @name PalletCommonError (423) */3651 /** @name PalletCommonError (472) */3553 interface PalletCommonError extends Enum {3652 interface PalletCommonError extends Enum {3554 readonly isCollectionNotFound: boolean;3653 readonly isCollectionNotFound: boolean;3555 readonly isMustBeTokenOwner: boolean;3654 readonly isMustBeTokenOwner: boolean;3591 readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsNotEthMirror' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'UserIsNotAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey' | 'CollectionIsExternal' | 'CollectionIsInternal' | 'ConfirmSponsorshipFail' | 'UserIsNotCollectionAdmin';3690 readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsNotEthMirror' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'UserIsNotAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey' | 'CollectionIsExternal' | 'CollectionIsInternal' | 'ConfirmSponsorshipFail' | 'UserIsNotCollectionAdmin';3592 }3691 }359336923594 /** @name PalletFungibleError (425) */3693 /** @name PalletFungibleError (474) */3595 interface PalletFungibleError extends Enum {3694 interface PalletFungibleError extends Enum {3596 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;3695 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;3597 readonly isFungibleItemsHaveNoId: boolean;3696 readonly isFungibleItemsHaveNoId: boolean;3603 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed' | 'FungibleTokensAreAlwaysValid';3702 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed' | 'FungibleTokensAreAlwaysValid';3604 }3703 }360537043606 /** @name PalletRefungibleError (429) */3705 /** @name PalletRefungibleError (478) */3607 interface PalletRefungibleError extends Enum {3706 interface PalletRefungibleError extends Enum {3608 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;3707 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;3609 readonly isWrongRefungiblePieces: boolean;3708 readonly isWrongRefungiblePieces: boolean;3613 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3712 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3614 }3713 }361537143616 /** @name PalletNonfungibleItemData (430) */3715 /** @name PalletNonfungibleItemData (479) */3617 interface PalletNonfungibleItemData extends Struct {3716 interface PalletNonfungibleItemData extends Struct {3618 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3717 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3619 }3718 }362037193621 /** @name UpDataStructsPropertyScope (432) */3720 /** @name UpDataStructsPropertyScope (481) */3622 interface UpDataStructsPropertyScope extends Enum {3721 interface UpDataStructsPropertyScope extends Enum {3623 readonly isNone: boolean;3722 readonly isNone: boolean;3624 readonly isRmrk: boolean;3723 readonly isRmrk: boolean;3625 readonly type: 'None' | 'Rmrk';3724 readonly type: 'None' | 'Rmrk';3626 }3725 }362737263628 /** @name PalletNonfungibleError (435) */3727 /** @name PalletNonfungibleError (484) */3629 interface PalletNonfungibleError extends Enum {3728 interface PalletNonfungibleError extends Enum {3630 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;3729 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;3631 readonly isNonfungibleItemsHaveNoAmount: boolean;3730 readonly isNonfungibleItemsHaveNoAmount: boolean;3632 readonly isCantBurnNftWithChildren: boolean;3731 readonly isCantBurnNftWithChildren: boolean;3633 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';3732 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';3634 }3733 }363537343636 /** @name PalletStructureError (436) */3735 /** @name PalletStructureError (485) */3637 interface PalletStructureError extends Enum {3736 interface PalletStructureError extends Enum {3638 readonly isOuroborosDetected: boolean;3737 readonly isOuroborosDetected: boolean;3639 readonly isDepthLimit: boolean;3738 readonly isDepthLimit: boolean;3640 readonly isBreadthLimit: boolean;3739 readonly isBreadthLimit: boolean;3641 readonly isTokenNotFound: boolean;3740 readonly isTokenNotFound: boolean;3741 readonly isCantNestTokenUnderCollection: boolean;3642 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';3742 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound' | 'CantNestTokenUnderCollection';3643 }3743 }36443645 /** @name PalletRmrkCoreError (437) */3646 interface PalletRmrkCoreError extends Enum {3647 readonly isCorruptedCollectionType: boolean;3648 readonly isRmrkPropertyKeyIsTooLong: boolean;3649 readonly isRmrkPropertyValueIsTooLong: boolean;3650 readonly isRmrkPropertyIsNotFound: boolean;3651 readonly isUnableToDecodeRmrkData: boolean;3652 readonly isCollectionNotEmpty: boolean;3653 readonly isNoAvailableCollectionId: boolean;3654 readonly isNoAvailableNftId: boolean;3655 readonly isCollectionUnknown: boolean;3656 readonly isNoPermission: boolean;3657 readonly isNonTransferable: boolean;3658 readonly isCollectionFullOrLocked: boolean;3659 readonly isResourceDoesntExist: boolean;3660 readonly isCannotSendToDescendentOrSelf: boolean;3661 readonly isCannotAcceptNonOwnedNft: boolean;3662 readonly isCannotRejectNonOwnedNft: boolean;3663 readonly isCannotRejectNonPendingNft: boolean;3664 readonly isResourceNotPending: boolean;3665 readonly isNoAvailableResourceId: boolean;3666 readonly type: 'CorruptedCollectionType' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';3667 }36683669 /** @name PalletRmrkEquipError (439) */3670 interface PalletRmrkEquipError extends Enum {3671 readonly isPermissionError: boolean;3672 readonly isNoAvailableBaseId: boolean;3673 readonly isNoAvailablePartId: boolean;3674 readonly isBaseDoesntExist: boolean;3675 readonly isNeedsDefaultThemeFirst: boolean;3676 readonly isPartDoesntExist: boolean;3677 readonly isNoEquippableOnFixedPart: boolean;3678 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';3679 }368037443681 /** @name PalletAppPromotionError (445) */3745 /** @name PalletAppPromotionError (490) */3682 interface PalletAppPromotionError extends Enum {3746 interface PalletAppPromotionError extends Enum {3683 readonly isAdminNotSet: boolean;3747 readonly isAdminNotSet: boolean;3684 readonly isNoPermission: boolean;3748 readonly isNoPermission: boolean;3685 readonly isNotSufficientFunds: boolean;3749 readonly isNotSufficientFunds: boolean;3686 readonly isPendingForBlockOverflow: boolean;3750 readonly isPendingForBlockOverflow: boolean;3687 readonly isSponsorNotSet: boolean;3751 readonly isSponsorNotSet: boolean;3688 readonly isIncorrectLockedBalanceOperation: boolean;3752 readonly isIncorrectLockedBalanceOperation: boolean;3753 readonly isInsufficientStakedBalance: boolean;3689 readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFunds' | 'PendingForBlockOverflow' | 'SponsorNotSet' | 'IncorrectLockedBalanceOperation';3754 readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFunds' | 'PendingForBlockOverflow' | 'SponsorNotSet' | 'IncorrectLockedBalanceOperation' | 'InsufficientStakedBalance';3690 }3755 }369137563692 /** @name PalletForeignAssetsModuleError (446) */3757 /** @name PalletForeignAssetsModuleError (491) */3693 interface PalletForeignAssetsModuleError extends Enum {3758 interface PalletForeignAssetsModuleError extends Enum {3694 readonly isBadLocation: boolean;3759 readonly isBadLocation: boolean;3695 readonly isMultiLocationExisted: boolean;3760 readonly isMultiLocationExisted: boolean;3698 readonly type: 'BadLocation' | 'MultiLocationExisted' | 'AssetIdNotExists' | 'AssetIdExisted';3763 readonly type: 'BadLocation' | 'MultiLocationExisted' | 'AssetIdNotExists' | 'AssetIdExisted';3699 }3764 }370037653701 /** @name PalletEvmError (448) */3766 /** @name PalletEvmError (493) */3702 interface PalletEvmError extends Enum {3767 interface PalletEvmError extends Enum {3703 readonly isBalanceLow: boolean;3768 readonly isBalanceLow: boolean;3704 readonly isFeeOverflow: boolean;3769 readonly isFeeOverflow: boolean;3714 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce' | 'GasLimitTooLow' | 'GasLimitTooHigh' | 'Undefined' | 'Reentrancy' | 'TransactionMustComeFromEOA';3779 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce' | 'GasLimitTooLow' | 'GasLimitTooHigh' | 'Undefined' | 'Reentrancy' | 'TransactionMustComeFromEOA';3715 }3780 }371637813717 /** @name FpRpcTransactionStatus (451) */3782 /** @name FpRpcTransactionStatus (496) */3718 interface FpRpcTransactionStatus extends Struct {3783 interface FpRpcTransactionStatus extends Struct {3719 readonly transactionHash: H256;3784 readonly transactionHash: H256;3720 readonly transactionIndex: u32;3785 readonly transactionIndex: u32;3725 readonly logsBloom: EthbloomBloom;3790 readonly logsBloom: EthbloomBloom;3726 }3791 }372737923728 /** @name EthbloomBloom (453) */3793 /** @name EthbloomBloom (498) */3729 interface EthbloomBloom extends U8aFixed {}3794 interface EthbloomBloom extends U8aFixed {}373037953731 /** @name EthereumReceiptReceiptV3 (455) */3796 /** @name EthereumReceiptReceiptV3 (500) */3732 interface EthereumReceiptReceiptV3 extends Enum {3797 interface EthereumReceiptReceiptV3 extends Enum {3733 readonly isLegacy: boolean;3798 readonly isLegacy: boolean;3734 readonly asLegacy: EthereumReceiptEip658ReceiptData;3799 readonly asLegacy: EthereumReceiptEip658ReceiptData;3739 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3804 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3740 }3805 }374138063742 /** @name EthereumReceiptEip658ReceiptData (456) */3807 /** @name EthereumReceiptEip658ReceiptData (501) */3743 interface EthereumReceiptEip658ReceiptData extends Struct {3808 interface EthereumReceiptEip658ReceiptData extends Struct {3744 readonly statusCode: u8;3809 readonly statusCode: u8;3745 readonly usedGas: U256;3810 readonly usedGas: U256;3746 readonly logsBloom: EthbloomBloom;3811 readonly logsBloom: EthbloomBloom;3747 readonly logs: Vec<EthereumLog>;3812 readonly logs: Vec<EthereumLog>;3748 }3813 }374938143750 /** @name EthereumBlock (457) */3815 /** @name EthereumBlock (502) */3751 interface EthereumBlock extends Struct {3816 interface EthereumBlock extends Struct {3752 readonly header: EthereumHeader;3817 readonly header: EthereumHeader;3753 readonly transactions: Vec<EthereumTransactionTransactionV2>;3818 readonly transactions: Vec<EthereumTransactionTransactionV2>;3754 readonly ommers: Vec<EthereumHeader>;3819 readonly ommers: Vec<EthereumHeader>;3755 }3820 }375638213757 /** @name EthereumHeader (458) */3822 /** @name EthereumHeader (503) */3758 interface EthereumHeader extends Struct {3823 interface EthereumHeader extends Struct {3759 readonly parentHash: H256;3824 readonly parentHash: H256;3760 readonly ommersHash: H256;3825 readonly ommersHash: H256;3773 readonly nonce: EthereumTypesHashH64;3838 readonly nonce: EthereumTypesHashH64;3774 }3839 }377538403776 /** @name EthereumTypesHashH64 (459) */3841 /** @name EthereumTypesHashH64 (504) */3777 interface EthereumTypesHashH64 extends U8aFixed {}3842 interface EthereumTypesHashH64 extends U8aFixed {}377838433779 /** @name PalletEthereumError (464) */3844 /** @name PalletEthereumError (509) */3780 interface PalletEthereumError extends Enum {3845 interface PalletEthereumError extends Enum {3781 readonly isInvalidSignature: boolean;3846 readonly isInvalidSignature: boolean;3782 readonly isPreLogExists: boolean;3847 readonly isPreLogExists: boolean;3783 readonly type: 'InvalidSignature' | 'PreLogExists';3848 readonly type: 'InvalidSignature' | 'PreLogExists';3784 }3849 }378538503786 /** @name PalletEvmCoderSubstrateError (465) */3851 /** @name PalletEvmCoderSubstrateError (510) */3787 interface PalletEvmCoderSubstrateError extends Enum {3852 interface PalletEvmCoderSubstrateError extends Enum {3788 readonly isOutOfGas: boolean;3853 readonly isOutOfGas: boolean;3789 readonly isOutOfFund: boolean;3854 readonly isOutOfFund: boolean;3790 readonly type: 'OutOfGas' | 'OutOfFund';3855 readonly type: 'OutOfGas' | 'OutOfFund';3791 }3856 }379238573793 /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (466) */3858 /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (511) */3794 interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum {3859 interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum {3795 readonly isDisabled: boolean;3860 readonly isDisabled: boolean;3796 readonly isUnconfirmed: boolean;3861 readonly isUnconfirmed: boolean;3800 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3865 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3801 }3866 }380238673803 /** @name PalletEvmContractHelpersSponsoringModeT (467) */3868 /** @name PalletEvmContractHelpersSponsoringModeT (512) */3804 interface PalletEvmContractHelpersSponsoringModeT extends Enum {3869 interface PalletEvmContractHelpersSponsoringModeT extends Enum {3805 readonly isDisabled: boolean;3870 readonly isDisabled: boolean;3806 readonly isAllowlisted: boolean;3871 readonly isAllowlisted: boolean;3807 readonly isGenerous: boolean;3872 readonly isGenerous: boolean;3808 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';3873 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';3809 }3874 }381038753811 /** @name PalletEvmContractHelpersError (473) */3876 /** @name PalletEvmContractHelpersError (518) */3812 interface PalletEvmContractHelpersError extends Enum {3877 interface PalletEvmContractHelpersError extends Enum {3813 readonly isNoPermission: boolean;3878 readonly isNoPermission: boolean;3814 readonly isNoPendingSponsor: boolean;3879 readonly isNoPendingSponsor: boolean;3815 readonly isTooManyMethodsHaveSponsoredLimit: boolean;3880 readonly isTooManyMethodsHaveSponsoredLimit: boolean;3816 readonly type: 'NoPermission' | 'NoPendingSponsor' | 'TooManyMethodsHaveSponsoredLimit';3881 readonly type: 'NoPermission' | 'NoPendingSponsor' | 'TooManyMethodsHaveSponsoredLimit';3817 }3882 }381838833819 /** @name PalletEvmMigrationError (474) */3884 /** @name PalletEvmMigrationError (519) */3820 interface PalletEvmMigrationError extends Enum {3885 interface PalletEvmMigrationError extends Enum {3821 readonly isAccountNotEmpty: boolean;3886 readonly isAccountNotEmpty: boolean;3822 readonly isAccountIsNotMigrating: boolean;3887 readonly isAccountIsNotMigrating: boolean;3823 readonly isBadEvent: boolean;3888 readonly isBadEvent: boolean;3824 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating' | 'BadEvent';3889 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating' | 'BadEvent';3825 }3890 }382638913827 /** @name PalletMaintenanceError (475) */3892 /** @name PalletMaintenanceError (520) */3828 type PalletMaintenanceError = Null;3893 type PalletMaintenanceError = Null;382938943830 /** @name PalletTestUtilsError (476) */3895 /** @name PalletTestUtilsError (521) */3831 interface PalletTestUtilsError extends Enum {3896 interface PalletTestUtilsError extends Enum {3832 readonly isTestPalletDisabled: boolean;3897 readonly isTestPalletDisabled: boolean;3833 readonly isTriggerRollback: boolean;3898 readonly isTriggerRollback: boolean;3834 readonly type: 'TestPalletDisabled' | 'TriggerRollback';3899 readonly type: 'TestPalletDisabled' | 'TriggerRollback';3835 }3900 }383639013837 /** @name SpRuntimeMultiSignature (478) */3902 /** @name SpRuntimeMultiSignature (523) */3838 interface SpRuntimeMultiSignature extends Enum {3903 interface SpRuntimeMultiSignature extends Enum {3839 readonly isEd25519: boolean;3904 readonly isEd25519: boolean;3840 readonly asEd25519: SpCoreEd25519Signature;3905 readonly asEd25519: SpCoreEd25519Signature;3845 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';3910 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';3846 }3911 }384739123848 /** @name SpCoreEd25519Signature (479) */3913 /** @name SpCoreEd25519Signature (524) */3849 interface SpCoreEd25519Signature extends U8aFixed {}3914 interface SpCoreEd25519Signature extends U8aFixed {}385039153851 /** @name SpCoreSr25519Signature (481) */3916 /** @name SpCoreSr25519Signature (526) */3852 interface SpCoreSr25519Signature extends U8aFixed {}3917 interface SpCoreSr25519Signature extends U8aFixed {}385339183854 /** @name SpCoreEcdsaSignature (482) */3919 /** @name SpCoreEcdsaSignature (527) */3855 interface SpCoreEcdsaSignature extends U8aFixed {}3920 interface SpCoreEcdsaSignature extends U8aFixed {}385639213857 /** @name FrameSystemExtensionsCheckSpecVersion (485) */3922 /** @name FrameSystemExtensionsCheckSpecVersion (530) */3858 type FrameSystemExtensionsCheckSpecVersion = Null;3923 type FrameSystemExtensionsCheckSpecVersion = Null;385939243860 /** @name FrameSystemExtensionsCheckTxVersion (486) */3925 /** @name FrameSystemExtensionsCheckTxVersion (531) */3861 type FrameSystemExtensionsCheckTxVersion = Null;3926 type FrameSystemExtensionsCheckTxVersion = Null;386239273863 /** @name FrameSystemExtensionsCheckGenesis (487) */3928 /** @name FrameSystemExtensionsCheckGenesis (532) */3864 type FrameSystemExtensionsCheckGenesis = Null;3929 type FrameSystemExtensionsCheckGenesis = Null;386539303866 /** @name FrameSystemExtensionsCheckNonce (490) */3931 /** @name FrameSystemExtensionsCheckNonce (535) */3867 interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}3932 interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}386839333869 /** @name FrameSystemExtensionsCheckWeight (491) */3934 /** @name FrameSystemExtensionsCheckWeight (536) */3870 type FrameSystemExtensionsCheckWeight = Null;3935 type FrameSystemExtensionsCheckWeight = Null;387139363872 /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (492) */3937 /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (537) */3873 type OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance = Null;3938 type OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance = Null;387439393875 /** @name OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls (493) */3940 /** @name OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls (538) */3876 type OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls = Null;3941 type OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls = Null;387739423878 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (494) */3943 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (539) */3879 interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}3944 interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}388039453881 /** @name OpalRuntimeRuntime (495) */3946 /** @name OpalRuntimeRuntime (540) */3882 type OpalRuntimeRuntime = Null;3947 type OpalRuntimeRuntime = Null;388339483884 /** @name PalletEthereumFakeTransactionFinalizer (496) */3949 /** @name PalletEthereumFakeTransactionFinalizer (541) */3885 type PalletEthereumFakeTransactionFinalizer = Null;3950 type PalletEthereumFakeTransactionFinalizer = Null;388639513887} // declare module3952} // declare moduletests/src/interfaces/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/types.ts
+++ b/tests/src/interfaces/types.ts
@@ -3,6 +3,5 @@
export * from './unique/types';
export * from './appPromotion/types';
-export * from './rmrk/types';
export * from './povinfo/types';
export * from './default/types';
tests/src/maintenance.seqtest.tsdiffbeforeafterboth--- /dev/null
+++ b/tests/src/maintenance.seqtest.ts
@@ -0,0 +1,368 @@
+// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
+// This file is part of Unique Network.
+
+// Unique Network is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// Unique Network is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
+
+import {IKeyringPair} from '@polkadot/types/types';
+import {ApiPromise} from '@polkadot/api';
+import {expect, itSched, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from './util';
+import {itEth} from './eth/util';
+import {UniqueHelper} from './util/playgrounds/unique';
+
+async function maintenanceEnabled(api: ApiPromise): Promise<boolean> {
+ return (await api.query.maintenance.enabled()).toJSON() as boolean;
+}
+
+describe('Integration Test: Maintenance Functionality', () => {
+ let superuser: IKeyringPair;
+ let donor: IKeyringPair;
+ let bob: IKeyringPair;
+
+ before(async function() {
+ await usingPlaygrounds(async (helper, privateKey) => {
+ requirePalletsOrSkip(this, helper, [Pallets.Maintenance]);
+ superuser = await privateKey('//Alice');
+ donor = await privateKey({filename: __filename});
+ [bob] = await helper.arrange.createAccounts([10000n], donor);
+
+ });
+ });
+
+ describe('Maintenance Mode', () => {
+ before(async function() {
+ await usingPlaygrounds(async (helper) => {
+ if (await maintenanceEnabled(helper.getApi())) {
+ console.warn('\tMaintenance mode was left enabled BEFORE the test suite! Disabling it now.');
+ await expect(helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', [])).to.be.fulfilled;
+ }
+ });
+ });
+
+ itSub('Allows superuser to enable and disable maintenance mode - and disallows anyone else', async ({helper}) => {
+ // Make sure non-sudo can't enable maintenance mode
+ await expect(helper.executeExtrinsic(superuser, 'api.tx.maintenance.enable', []), 'on commoner enabling MM')
+ .to.be.rejectedWith(/BadOrigin/);
+
+ // Set maintenance mode
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.enable', []);
+ expect(await maintenanceEnabled(helper.getApi()), 'MM is OFF when it should be ON').to.be.true;
+
+ // Make sure non-sudo can't disable maintenance mode
+ await expect(helper.executeExtrinsic(bob, 'api.tx.maintenance.disable', []), 'on commoner disabling MM')
+ .to.be.rejectedWith(/BadOrigin/);
+
+ // Disable maintenance mode
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
+ expect(await maintenanceEnabled(helper.getApi()), 'MM is ON when it should be OFF').to.be.false;
+ });
+
+ itSub('MM blocks unique pallet calls', async ({helper}) => {
+ // Can create an NFT collection before enabling the MM
+ const nftCollection = await helper.nft.mintCollection(bob, {
+ tokenPropertyPermissions: [{key: 'test', permission: {
+ collectionAdmin: true,
+ tokenOwner: true,
+ mutable: true,
+ }}],
+ });
+
+ // Can mint an NFT before enabling the MM
+ const nft = await nftCollection.mintToken(bob);
+
+ // Can create an FT collection before enabling the MM
+ const ftCollection = await helper.ft.mintCollection(superuser);
+
+ // Can mint an FT before enabling the MM
+ await expect(ftCollection.mint(superuser)).to.be.fulfilled;
+
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.enable', []);
+ expect(await maintenanceEnabled(helper.getApi()), 'MM is OFF when it should be ON').to.be.true;
+
+ // Unable to create a collection when the MM is enabled
+ await expect(helper.nft.mintCollection(superuser), 'cudo forbidden stuff')
+ .to.be.rejectedWith(/Invalid Transaction: Transaction call is not expected/);
+
+ // Unable to set token properties when the MM is enabled
+ await expect(nft.setProperties(
+ bob,
+ [{key: 'test', value: 'test-val'}],
+ )).to.be.rejectedWith(/Invalid Transaction: Transaction call is not expected/);
+
+ // Unable to mint an NFT when the MM is enabled
+ await expect(nftCollection.mintToken(superuser))
+ .to.be.rejectedWith(/Invalid Transaction: Transaction call is not expected/);
+
+ // Unable to mint an FT when the MM is enabled
+ await expect(ftCollection.mint(superuser))
+ .to.be.rejectedWith(/Invalid Transaction: Transaction call is not expected/);
+
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
+ expect(await maintenanceEnabled(helper.getApi()), 'MM is ON when it should be OFF').to.be.false;
+
+ // Can create a collection after disabling the MM
+ await expect(helper.nft.mintCollection(bob), 'MM is disabled, the collection should be created').to.be.fulfilled;
+
+ // Can set token properties after disabling the MM
+ await nft.setProperties(bob, [{key: 'test', value: 'test-val'}]);
+
+ // Can mint an NFT after disabling the MM
+ await nftCollection.mintToken(bob);
+
+ // Can mint an FT after disabling the MM
+ await ftCollection.mint(superuser);
+ });
+
+ itSub.ifWithPallets('MM blocks unique pallet calls (Re-Fungible)', [Pallets.ReFungible], async ({helper}) => {
+ // Can create an RFT collection before enabling the MM
+ const rftCollection = await helper.rft.mintCollection(superuser);
+
+ // Can mint an RFT before enabling the MM
+ await expect(rftCollection.mintToken(superuser)).to.be.fulfilled;
+
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.enable', []);
+ expect(await maintenanceEnabled(helper.getApi()), 'MM is OFF when it should be ON').to.be.true;
+
+ // Unable to mint an RFT when the MM is enabled
+ await expect(rftCollection.mintToken(superuser))
+ .to.be.rejectedWith(/Invalid Transaction: Transaction call is not expected/);
+
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
+ expect(await maintenanceEnabled(helper.getApi()), 'MM is ON when it should be OFF').to.be.false;
+
+ // Can mint an RFT after disabling the MM
+ await rftCollection.mintToken(superuser);
+ });
+
+ itSub('MM allows native token transfers and RPC calls', async ({helper}) => {
+ // We can use RPC before the MM is enabled
+ const totalCount = await helper.collection.getTotalCount();
+
+ // We can transfer funds before the MM is enabled
+ await expect(helper.balance.transferToSubstrate(superuser, bob.address, 2n)).to.be.fulfilled;
+
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.enable', []);
+ expect(await maintenanceEnabled(helper.getApi()), 'MM is OFF when it should be ON').to.be.true;
+
+ // RPCs work while in maintenance
+ expect(await helper.collection.getTotalCount()).to.be.deep.equal(totalCount);
+
+ // We still able to transfer funds
+ await expect(helper.balance.transferToSubstrate(bob, superuser.address, 1n)).to.be.fulfilled;
+
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
+ expect(await maintenanceEnabled(helper.getApi()), 'MM is ON when it should be OFF').to.be.false;
+
+ // RPCs work after maintenance
+ expect(await helper.collection.getTotalCount()).to.be.deep.equal(totalCount);
+
+ // Transfers work after maintenance
+ await expect(helper.balance.transferToSubstrate(bob, superuser.address, 1n)).to.be.fulfilled;
+ });
+
+ itSched.ifWithPallets('MM blocks scheduled calls and the scheduler itself', [Pallets.Scheduler], async (scheduleKind, {helper}) => {
+ const collection = await helper.nft.mintCollection(bob);
+
+ const nftBeforeMM = await collection.mintToken(bob);
+ const nftDuringMM = await collection.mintToken(bob);
+ const nftAfterMM = await collection.mintToken(bob);
+
+ const [
+ scheduledIdBeforeMM,
+ scheduledIdDuringMM,
+ scheduledIdBunkerThroughMM,
+ scheduledIdAttemptDuringMM,
+ scheduledIdAfterMM,
+ ] = scheduleKind == 'named'
+ ? helper.arrange.makeScheduledIds(5)
+ : new Array(5);
+
+ const blocksToWait = 6;
+
+ // Scheduling works before the maintenance
+ await nftBeforeMM.scheduleAfter(blocksToWait, {scheduledId: scheduledIdBeforeMM})
+ .transfer(bob, {Substrate: superuser.address});
+
+ await helper.wait.newBlocks(blocksToWait + 1);
+ expect(await nftBeforeMM.getOwner()).to.be.deep.equal({Substrate: superuser.address});
+
+ // Schedule a transaction that should occur *during* the maintenance
+ await nftDuringMM.scheduleAfter(blocksToWait, {scheduledId: scheduledIdDuringMM})
+ .transfer(bob, {Substrate: superuser.address});
+
+ // Schedule a transaction that should occur *after* the maintenance
+ await nftDuringMM.scheduleAfter(blocksToWait * 2, {scheduledId: scheduledIdBunkerThroughMM})
+ .transfer(bob, {Substrate: superuser.address});
+
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.enable', []);
+ expect(await maintenanceEnabled(helper.getApi()), 'MM is OFF when it should be ON').to.be.true;
+
+ await helper.wait.newBlocks(blocksToWait + 1);
+ // The owner should NOT change since the scheduled transaction should be rejected
+ expect(await nftDuringMM.getOwner()).to.be.deep.equal({Substrate: bob.address});
+
+ // Any attempts to schedule a tx during the MM should be rejected
+ await expect(nftDuringMM.scheduleAfter(blocksToWait, {scheduledId: scheduledIdAttemptDuringMM})
+ .transfer(bob, {Substrate: superuser.address}))
+ .to.be.rejectedWith(/Invalid Transaction: Transaction call is not expected/);
+
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
+ expect(await maintenanceEnabled(helper.getApi()), 'MM is ON when it should be OFF').to.be.false;
+
+ // Scheduling works after the maintenance
+ await nftAfterMM.scheduleAfter(blocksToWait, {scheduledId: scheduledIdAfterMM})
+ .transfer(bob, {Substrate: superuser.address});
+
+ await helper.wait.newBlocks(blocksToWait + 1);
+
+ expect(await nftAfterMM.getOwner()).to.be.deep.equal({Substrate: superuser.address});
+ // The owner of the token scheduled for transaction *before* maintenance should now change *after* maintenance
+ expect(await nftDuringMM.getOwner()).to.be.deep.equal({Substrate: superuser.address});
+ });
+
+ itEth('Disallows Ethereum transactions to execute while in maintenance', async ({helper}) => {
+ const owner = await helper.eth.createAccountWithBalance(donor);
+ const receiver = helper.eth.createAccount();
+
+ const {collectionAddress} = await helper.eth.createERC721MetadataCompatibleNFTCollection(owner, 'A', 'B', 'C', '');
+
+ // Set maintenance mode
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.enable', []);
+ expect(await maintenanceEnabled(helper.getApi()), 'MM is OFF when it should be ON').to.be.true;
+
+ const contract = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner);
+ const tokenId = await contract.methods.nextTokenId().call();
+ expect(tokenId).to.be.equal('1');
+
+ await expect(contract.methods.mintWithTokenURI(receiver, 'Test URI').send())
+ .to.be.rejectedWith(/Returned error: unknown error/);
+
+ await expect(contract.methods.ownerOf(tokenId).call()).rejectedWith(/token not found/);
+
+ // Disable maintenance mode
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
+ expect(await maintenanceEnabled(helper.getApi()), 'MM is ON when it should be OFF').to.be.false;
+ });
+
+ itSub('Allows to enable and disable MM repeatedly', async ({helper}) => {
+ // Set maintenance mode
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.enable', []);
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.enable', []);
+ expect(await maintenanceEnabled(helper.getApi()), 'MM is OFF when it should be ON').to.be.true;
+
+ // Disable maintenance mode
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
+ expect(await maintenanceEnabled(helper.getApi()), 'MM is ON when it should be OFF').to.be.false;
+ });
+
+ afterEach(async () => {
+ await usingPlaygrounds(async helper => {
+ if (helper.fetchMissingPalletNames([Pallets.Maintenance]).length != 0) return;
+ if (await maintenanceEnabled(helper.getApi())) {
+ console.warn('\tMaintenance mode was left enabled AFTER a test has finished! Be careful. Disabling it now.');
+ await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
+ }
+ expect(await maintenanceEnabled(helper.getApi()), 'Disastrous! Exited the test suite with maintenance mode on.').to.be.false;
+ });
+ });
+ });
+
+ describe('Preimage Execution', () => {
+ const preimageHashes: string[] = [];
+
+ async function notePreimage(helper: UniqueHelper, preimage: any): Promise<string> {
+ const result = await helper.preimage.notePreimage(bob, preimage);
+ const events = result.result.events.filter(x => x.event.method === 'Noted' && x.event.section === 'preimage');
+ const preimageHash = events[0].event.data[0].toHuman();
+ return preimageHash;
+ }
+
+ before(async function() {
+ await usingPlaygrounds(async (helper) => {
+ requirePalletsOrSkip(this, helper, [Pallets.Preimage, Pallets.Maintenance]);
+
+ // create a preimage to be operated with in the tests
+ const randomAccounts = await helper.arrange.createCrowd(10, 0n, superuser);
+ const randomIdentities = randomAccounts.map((acc, i) => [
+ acc.address, {
+ deposit: 0n,
+ judgements: [],
+ info: {
+ display: {
+ raw: `Random Account #${i}`,
+ },
+ },
+ },
+ ]);
+ const preimage = helper.constructApiCall('api.tx.identity.forceInsertIdentities', [randomIdentities]).method.toHex();
+ preimageHashes.push(await notePreimage(helper, preimage));
+ });
+ });
+
+ itSub('Successfully executes call in a preimage', async ({helper}) => {
+ const result = await expect(helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.executePreimage', [
+ preimageHashes[0], {refTime: 10000000000, proofSize: 10000},
+ ])).to.be.fulfilled;
+
+ // preimage is executed, and an appropriate event is present
+ const events = result.result.events.filter((x: any) => x.event.method === 'IdentitiesInserted' && x.event.section === 'identity');
+ expect(events.length).to.be.equal(1);
+
+ // the preimage goes back to being unrequested
+ expect(await helper.preimage.getPreimageInfo(preimageHashes[0])).to.have.property('unrequested');
+ });
+
+ itSub('Does not allow execution of a preimage that would fail', async ({helper}) => {
+ const [zeroAccount] = await helper.arrange.createAccounts([0n], superuser);
+
+ const preimage = helper.constructApiCall('api.tx.balances.forceTransfer', [
+ {Id: zeroAccount.address}, {Id: superuser.address}, 1000n,
+ ]).method.toHex();
+ const preimageHash = await notePreimage(helper, preimage);
+ preimageHashes.push(preimageHash);
+
+ await expect(helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.executePreimage', [
+ preimageHash, {refTime: 10000000000, proofSize: 10000},
+ ])).to.be.rejectedWith(/balances\.InsufficientBalance/);
+ });
+
+ itSub('Does not allow preimage execution with non-root', async ({helper}) => {
+ await expect(helper.executeExtrinsic(bob, 'api.tx.maintenance.executePreimage', [
+ preimageHashes[0], {refTime: 10000000000, proofSize: 10000},
+ ])).to.be.rejectedWith(/BadOrigin/);
+ });
+
+ itSub('Does not allow execution of non-existent preimages', async ({helper}) => {
+ await expect(helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.executePreimage', [
+ '0x1010101010101010101010101010101010101010101010101010101010101010', {refTime: 10000000000, proofSize: 10000},
+ ])).to.be.rejectedWith(/Unavailable/);
+ });
+
+ itSub('Does not allow preimage execution with less than minimum weights', async ({helper}) => {
+ await expect(helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.executePreimage', [
+ preimageHashes[0], {refTime: 1000, proofSize: 100},
+ ])).to.be.rejectedWith(/Exhausted/);
+ });
+
+ after(async function() {
+ await usingPlaygrounds(async (helper) => {
+ if (helper.fetchMissingPalletNames([Pallets.Preimage, Pallets.Maintenance]).length != 0) return;
+
+ for (const hash of preimageHashes) {
+ await helper.preimage.unnotePreimage(bob, hash);
+ }
+ });
+ });
+ });
+});
tests/src/maintenanceMode.seqtest.tsdiffbeforeafterboth--- a/tests/src/maintenanceMode.seqtest.ts
+++ /dev/null
@@ -1,270 +0,0 @@
-// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
-// This file is part of Unique Network.
-
-// Unique Network is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// Unique Network is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License
-// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
-
-import {IKeyringPair} from '@polkadot/types/types';
-import {ApiPromise} from '@polkadot/api';
-import {expect, itSched, itSub, Pallets, usingPlaygrounds} from './util';
-import {itEth} from './eth/util';
-
-async function maintenanceEnabled(api: ApiPromise): Promise<boolean> {
- return (await api.query.maintenance.enabled()).toJSON() as boolean;
-}
-
-describe('Integration Test: Maintenance Mode', () => {
- let superuser: IKeyringPair;
- let donor: IKeyringPair;
- let bob: IKeyringPair;
-
- before(async () => {
- await usingPlaygrounds(async (helper, privateKey) => {
- superuser = await privateKey('//Alice');
- donor = await privateKey({filename: __filename});
- [bob] = await helper.arrange.createAccounts([100n], donor);
-
- if (await maintenanceEnabled(helper.getApi())) {
- console.warn('\tMaintenance mode was left enabled BEFORE the test suite! Disabling it now.');
- await expect(helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', [])).to.be.fulfilled;
- }
- });
- });
-
- itSub('Allows superuser to enable and disable maintenance mode - and disallows anyone else', async ({helper}) => {
- // Make sure non-sudo can't enable maintenance mode
- await expect(helper.executeExtrinsic(superuser, 'api.tx.maintenance.enable', []), 'on commoner enabling MM')
- .to.be.rejectedWith(/BadOrigin/);
-
- // Set maintenance mode
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.enable', []);
- expect(await maintenanceEnabled(helper.getApi()), 'MM is OFF when it should be ON').to.be.true;
-
- // Make sure non-sudo can't disable maintenance mode
- await expect(helper.executeExtrinsic(bob, 'api.tx.maintenance.disable', []), 'on commoner disabling MM')
- .to.be.rejectedWith(/BadOrigin/);
-
- // Disable maintenance mode
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
- expect(await maintenanceEnabled(helper.getApi()), 'MM is ON when it should be OFF').to.be.false;
- });
-
- itSub('MM blocks unique pallet calls', async ({helper}) => {
- // Can create an NFT collection before enabling the MM
- const nftCollection = await helper.nft.mintCollection(bob, {
- tokenPropertyPermissions: [{key: 'test', permission: {
- collectionAdmin: true,
- tokenOwner: true,
- mutable: true,
- }}],
- });
-
- // Can mint an NFT before enabling the MM
- const nft = await nftCollection.mintToken(bob);
-
- // Can create an FT collection before enabling the MM
- const ftCollection = await helper.ft.mintCollection(superuser);
-
- // Can mint an FT before enabling the MM
- await expect(ftCollection.mint(superuser)).to.be.fulfilled;
-
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.enable', []);
- expect(await maintenanceEnabled(helper.getApi()), 'MM is OFF when it should be ON').to.be.true;
-
- // Unable to create a collection when the MM is enabled
- await expect(helper.nft.mintCollection(superuser), 'cudo forbidden stuff')
- .to.be.rejectedWith(/Invalid Transaction: Transaction call is not expected/);
-
- // Unable to set token properties when the MM is enabled
- await expect(nft.setProperties(
- bob,
- [{key: 'test', value: 'test-val'}],
- )).to.be.rejectedWith(/Invalid Transaction: Transaction call is not expected/);
-
- // Unable to mint an NFT when the MM is enabled
- await expect(nftCollection.mintToken(superuser))
- .to.be.rejectedWith(/Invalid Transaction: Transaction call is not expected/);
-
- // Unable to mint an FT when the MM is enabled
- await expect(ftCollection.mint(superuser))
- .to.be.rejectedWith(/Invalid Transaction: Transaction call is not expected/);
-
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
- expect(await maintenanceEnabled(helper.getApi()), 'MM is ON when it should be OFF').to.be.false;
-
- // Can create a collection after disabling the MM
- await expect(helper.nft.mintCollection(bob), 'MM is disabled, the collection should be created').to.be.fulfilled;
-
- // Can set token properties after disabling the MM
- await nft.setProperties(bob, [{key: 'test', value: 'test-val'}]);
-
- // Can mint an NFT after disabling the MM
- await nftCollection.mintToken(bob);
-
- // Can mint an FT after disabling the MM
- await ftCollection.mint(superuser);
- });
-
- itSub.ifWithPallets('MM blocks unique pallet calls (Re-Fungible)', [Pallets.ReFungible], async ({helper}) => {
- // Can create an RFT collection before enabling the MM
- const rftCollection = await helper.rft.mintCollection(superuser);
-
- // Can mint an RFT before enabling the MM
- await expect(rftCollection.mintToken(superuser)).to.be.fulfilled;
-
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.enable', []);
- expect(await maintenanceEnabled(helper.getApi()), 'MM is OFF when it should be ON').to.be.true;
-
- // Unable to mint an RFT when the MM is enabled
- await expect(rftCollection.mintToken(superuser))
- .to.be.rejectedWith(/Invalid Transaction: Transaction call is not expected/);
-
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
- expect(await maintenanceEnabled(helper.getApi()), 'MM is ON when it should be OFF').to.be.false;
-
- // Can mint an RFT after disabling the MM
- await rftCollection.mintToken(superuser);
- });
-
- itSub('MM allows native token transfers and RPC calls', async ({helper}) => {
- // We can use RPC before the MM is enabled
- const totalCount = await helper.collection.getTotalCount();
-
- // We can transfer funds before the MM is enabled
- await expect(helper.balance.transferToSubstrate(superuser, bob.address, 2n)).to.be.fulfilled;
-
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.enable', []);
- expect(await maintenanceEnabled(helper.getApi()), 'MM is OFF when it should be ON').to.be.true;
-
- // RPCs work while in maintenance
- expect(await helper.collection.getTotalCount()).to.be.deep.equal(totalCount);
-
- // We still able to transfer funds
- await expect(helper.balance.transferToSubstrate(bob, superuser.address, 1n)).to.be.fulfilled;
-
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
- expect(await maintenanceEnabled(helper.getApi()), 'MM is ON when it should be OFF').to.be.false;
-
- // RPCs work after maintenance
- expect(await helper.collection.getTotalCount()).to.be.deep.equal(totalCount);
-
- // Transfers work after maintenance
- await expect(helper.balance.transferToSubstrate(bob, superuser.address, 1n)).to.be.fulfilled;
- });
-
- itSched.ifWithPallets('MM blocks scheduled calls and the scheduler itself', [Pallets.Scheduler], async (scheduleKind, {helper}) => {
- const collection = await helper.nft.mintCollection(bob);
-
- const nftBeforeMM = await collection.mintToken(bob);
- const nftDuringMM = await collection.mintToken(bob);
- const nftAfterMM = await collection.mintToken(bob);
-
- const [
- scheduledIdBeforeMM,
- scheduledIdDuringMM,
- scheduledIdBunkerThroughMM,
- scheduledIdAttemptDuringMM,
- scheduledIdAfterMM,
- ] = scheduleKind == 'named'
- ? helper.arrange.makeScheduledIds(5)
- : new Array(5);
-
- const blocksToWait = 6;
-
- // Scheduling works before the maintenance
- await nftBeforeMM.scheduleAfter(blocksToWait, {scheduledId: scheduledIdBeforeMM})
- .transfer(bob, {Substrate: superuser.address});
-
- await helper.wait.newBlocks(blocksToWait + 1);
- expect(await nftBeforeMM.getOwner()).to.be.deep.equal({Substrate: superuser.address});
-
- // Schedule a transaction that should occur *during* the maintenance
- await nftDuringMM.scheduleAfter(blocksToWait, {scheduledId: scheduledIdDuringMM})
- .transfer(bob, {Substrate: superuser.address});
-
- // Schedule a transaction that should occur *after* the maintenance
- await nftDuringMM.scheduleAfter(blocksToWait * 2, {scheduledId: scheduledIdBunkerThroughMM})
- .transfer(bob, {Substrate: superuser.address});
-
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.enable', []);
- expect(await maintenanceEnabled(helper.getApi()), 'MM is OFF when it should be ON').to.be.true;
-
- await helper.wait.newBlocks(blocksToWait + 1);
- // The owner should NOT change since the scheduled transaction should be rejected
- expect(await nftDuringMM.getOwner()).to.be.deep.equal({Substrate: bob.address});
-
- // Any attempts to schedule a tx during the MM should be rejected
- await expect(nftDuringMM.scheduleAfter(blocksToWait, {scheduledId: scheduledIdAttemptDuringMM})
- .transfer(bob, {Substrate: superuser.address}))
- .to.be.rejectedWith(/Invalid Transaction: Transaction call is not expected/);
-
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
- expect(await maintenanceEnabled(helper.getApi()), 'MM is ON when it should be OFF').to.be.false;
-
- // Scheduling works after the maintenance
- await nftAfterMM.scheduleAfter(blocksToWait, {scheduledId: scheduledIdAfterMM})
- .transfer(bob, {Substrate: superuser.address});
-
- await helper.wait.newBlocks(blocksToWait + 1);
-
- expect(await nftAfterMM.getOwner()).to.be.deep.equal({Substrate: superuser.address});
- // The owner of the token scheduled for transaction *before* maintenance should now change *after* maintenance
- expect(await nftDuringMM.getOwner()).to.be.deep.equal({Substrate: superuser.address});
- });
-
- itEth('Disallows Ethereum transactions to execute while in maintenance', async ({helper}) => {
- const owner = await helper.eth.createAccountWithBalance(donor);
- const receiver = helper.eth.createAccount();
-
- const {collectionAddress} = await helper.eth.createERC721MetadataCompatibleNFTCollection(owner, 'A', 'B', 'C', '');
-
- // Set maintenance mode
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.enable', []);
- expect(await maintenanceEnabled(helper.getApi()), 'MM is OFF when it should be ON').to.be.true;
-
- const contract = await helper.ethNativeContract.collection(collectionAddress, 'nft', owner);
- const tokenId = await contract.methods.nextTokenId().call();
- expect(tokenId).to.be.equal('1');
-
- await expect(contract.methods.mintWithTokenURI(receiver, 'Test URI').send())
- .to.be.rejectedWith(/Returned error: unknown error/);
-
- await expect(contract.methods.ownerOf(tokenId).call()).rejectedWith(/token not found/);
-
- // Disable maintenance mode
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
- expect(await maintenanceEnabled(helper.getApi()), 'MM is ON when it should be OFF').to.be.false;
- });
-
- itSub('Allows to enable and disable MM repeatedly', async ({helper}) => {
- // Set maintenance mode
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.enable', []);
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.enable', []);
- expect(await maintenanceEnabled(helper.getApi()), 'MM is OFF when it should be ON').to.be.true;
-
- // Disable maintenance mode
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
- expect(await maintenanceEnabled(helper.getApi()), 'MM is ON when it should be OFF').to.be.false;
- });
-
- afterEach(async () => {
- await usingPlaygrounds(async helper => {
- if (await maintenanceEnabled(helper.getApi())) {
- console.warn('\tMaintenance mode was left enabled AFTER a test has finished! Be careful. Disabling it now.');
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.disable', []);
- }
- expect(await maintenanceEnabled(helper.getApi()), 'Disastrous! Exited the test suite with maintenance mode on.').to.be.false;
- });
- });
-});
tests/src/pallet-presence.test.tsdiffbeforeafterboth--- a/tests/src/pallet-presence.test.ts
+++ b/tests/src/pallet-presence.test.ts
@@ -66,6 +66,7 @@
const foreignAssets = 'foreignassets';
const appPromotion = 'apppromotion';
const collatorSelection = ['authorship', 'session', 'collatorselection', 'identity'];
+ const preimage = ['preimage'];
const testUtils = 'testutils';
if (chain.eq('OPAL by UNIQUE')) {
@@ -75,6 +76,7 @@
appPromotion,
testUtils,
...collatorSelection,
+ ...preimage,
);
} else if (chain.eq('QUARTZ by UNIQUE') || chain.eq('SAPPHIRE by UNIQUE')) {
requiredPallets.push(
@@ -82,6 +84,7 @@
appPromotion,
foreignAssets,
...collatorSelection,
+ ...preimage,
);
} else if (chain.eq('UNIQUE')) {
// Insert Unique additional pallets here
tests/src/util/identitySetter.tsdiffbeforeafterboth--- a/tests/src/util/identitySetter.ts
+++ b/tests/src/util/identitySetter.ts
@@ -1,13 +1,14 @@
// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
// SPDX-License-Identifier: Apache-2.0
//
-// Pulls identities and sub-identities from a chain and then uses sudo to force upload them into another.
+// Pulls identities and sub-identities from a chain and then makes a preimage to later force upload them into another.
// Only changed or previously non-existent data are inserted.
//
-// Usage: `yarn setIdentities [relay WS URL] [parachain WS URL] [sudo key]`
+// Usage: `yarn setIdentities [relay WS URL] [parachain WS URL] [user key]
// Example: `yarn setIdentities wss://polkadot-rpc.dwellir.com ws://localhost:9944 escape pattern miracle train sudden cart adapt embark wedding alien lamp mesh`
import {encodeAddress} from '@polkadot/keyring';
+import {IKeyringPair} from '@polkadot/types/types';
import {usingPlaygrounds, Pallets} from './index';
import {ChainHelperBase} from './playgrounds/unique';
@@ -81,6 +82,18 @@
return (await helper.getApi().query.identity.superOf.entries()).map(([key, value]) => [extractAccountId(key), value as any]);
}
+async function uploadPreimage(helper: ChainHelperBase, preimageMaker: IKeyringPair, preimage: string) {
+ try {
+ await helper.executeExtrinsic(preimageMaker, 'api.tx.preimage.notePreimage', [preimage]);
+ } catch(e: any) {
+ if (e.message.includes('AlreadyNoted')) {
+ console.warn('Warning: The same preimage already exists on the chain. Nothing was uploaded.');
+ } else {
+ console.error(e);
+ }
+ }
+}
+
// The utility for pulling identity and sub-identity data
const forceInsertIdentities = async (): Promise<void> => {
let relaySS58Prefix = 0;
@@ -128,8 +141,10 @@
await usingPlaygrounds(async (helper, privateKey) => {
if (helper.fetchMissingPalletNames([Pallets.Identity]).length != 0) console.error('pallet-identity is not included in parachain.');
+ if (helper.fetchMissingPalletNames([Pallets.Preimage]).length != 0) console.error('pallet-preimage is not included in parachain.');
+
try {
- const superuser = await privateKey(key);
+ const preimageMaker = await privateKey(key);
const ss58Format = helper.chain.getChainProperties().ss58Format;
const paraIdentities = await getIdentities(helper);
const identitiesToAdd: any[] = [];
@@ -158,13 +173,21 @@
}
if (identitiesToRemove.length != 0)
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.identity.forceRemoveIdentities', [identitiesToRemove]);
+ await uploadPreimage(
+ helper,
+ preimageMaker,
+ helper.constructApiCall('api.tx.identity.forceRemoveIdentities', [identitiesToRemove]).method.toHex(),
+ );
if (identitiesToAdd.length != 0)
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.identity.forceInsertIdentities', [identitiesToAdd]);
+ await uploadPreimage(
+ helper,
+ preimageMaker,
+ helper.constructApiCall('api.tx.identity.forceInsertIdentities', [identitiesToAdd]).method.toHex(),
+ );
- console.log(`Tried to upload ${identitiesToAdd.length} identities`
+ console.log(`Tried to push ${identitiesToAdd.length} identities`
+ ` and found ${identitiesToRemove.length} identities for potential removal.`
- + ` Now there are ${(await helper.getApi().query.identity.identityOf.keys()).length}.`);
+ + ` Currently there are ${(await helper.getApi().query.identity.identityOf.keys()).length} identities on the chain.`);
// fill sub-identities
const paraSubs = await getSubs(helper);
@@ -187,10 +210,14 @@
}
if (subsToUpdate.length != 0)
- await helper.getSudo().executeExtrinsic(superuser, 'api.tx.identity.forceSetSubs', [subsToUpdate]);
+ await uploadPreimage(
+ helper,
+ preimageMaker,
+ helper.constructApiCall('api.tx.identity.forceSetSubs', [subsToUpdate]).method.toHex(),
+ );
- console.log(`Also tried to update ${subsToUpdate.length} identities with their sub-identities.`
- + ` Now there are ${(await helper.getApi().query.identity.subsOf.keys()).length} identities with subs.`);
+ console.log(`Also tried to push ${subsToUpdate.length} identities with their sub-identities.`
+ + ` Currently there are ${(await helper.getApi().query.identity.subsOf.keys()).length} identities with subs.`);
} catch (error) {
console.error(error);
throw Error('Error during setting identities');
tests/src/util/index.tsdiffbeforeafterboth--- a/tests/src/util/index.ts
+++ b/tests/src/util/index.ts
@@ -114,6 +114,8 @@
CollatorSelection = 'collatorselection',
Session = 'session',
Identity = 'identity',
+ Preimage = 'preimage',
+ Maintenance = 'maintenance',
TestUtils = 'testutils',
}
tests/src/util/playgrounds/unique.tsdiffbeforeafterboth--- a/tests/src/util/playgrounds/unique.ts
+++ b/tests/src/util/playgrounds/unique.ts
@@ -2869,6 +2869,55 @@
}
}
+class PreimageGroup extends HelperGroup<UniqueHelper> {
+ async getPreimageInfo(h256: string) {
+ return (await this.helper.callRpc('api.query.preimage.statusFor', [h256])).toJSON();
+ }
+
+ /**
+ * Create a preimage with a hex or a byte array.
+ * @param signer keyring of the signer.
+ * @param bytes preimage encoded in hex or a byte array, e.g. an extrinsic call.
+ * @example await notePreimage(preimageMaker,
+ * helper.constructApiCall('api.tx.identity.forceInsertIdentities', [identitiesToAdd]).method.toHex()
+ * );
+ * @returns promise of extrinsic execution.
+ */
+ notePreimage(signer: TSigner, bytes: string | Uint8Array) {
+ return this.helper.executeExtrinsic(signer, 'api.tx.preimage.notePreimage', [bytes]);
+ }
+
+ /**
+ * Delete an existing preimage and return the deposit.
+ * @param signer keyring of the signer - either the owner or the preimage manager (sudo).
+ * @param h256 hash of the preimage.
+ * @returns promise of extrinsic execution.
+ */
+ unnotePreimage(signer: TSigner, h256: string) {
+ return this.helper.executeExtrinsic(signer, 'api.tx.preimage.unnotePreimage', [h256]);
+ }
+
+ /**
+ * Request a preimage be uploaded to the chain without paying any fees or deposits.
+ * @param signer keyring of the signer - either the owner or the preimage manager (sudo).
+ * @param h256 hash of the preimage.
+ * @returns promise of extrinsic execution.
+ */
+ requestPreimage(signer: TSigner, h256: string) {
+ return this.helper.executeExtrinsic(signer, 'api.tx.preimage.requestPreimage', [h256]);
+ }
+
+ /**
+ * Clear a previously made request for a preimage.
+ * @param signer keyring of the signer - either the owner or the preimage manager (sudo).
+ * @param h256 hash of the preimage.
+ * @returns promise of extrinsic execution.
+ */
+ unrequestPreimage(signer: TSigner, h256: string) {
+ return this.helper.executeExtrinsic(signer, 'api.tx.preimage.unrequestPreimage', [h256]);
+ }
+}
+
class ForeignAssetsGroup extends HelperGroup<UniqueHelper> {
async register(signer: TSigner, ownerAddress: TSubstrateAccount, location: any, metadata: IForeignAssetMetadata) {
await this.helper.executeExtrinsic(
@@ -3094,6 +3143,7 @@
staking: StakingGroup;
scheduler: SchedulerGroup;
collatorSelection: CollatorSelectionGroup;
+ preimage: PreimageGroup;
foreignAssets: ForeignAssetsGroup;
xcm: XcmGroup<UniqueHelper>;
xTokens: XTokensGroup<UniqueHelper>;
@@ -3110,6 +3160,7 @@
this.staking = new StakingGroup(this);
this.scheduler = new SchedulerGroup(this);
this.collatorSelection = new CollatorSelectionGroup(this);
+ this.preimage = new PreimageGroup(this);
this.foreignAssets = new ForeignAssetsGroup(this);
this.xcm = new XcmGroup(this, 'polkadotXcm');
this.xTokens = new XTokensGroup(this);