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.tsdiffbeforeafterboth1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34// import type lookup before we augment - in some environments5// this is required to allow for ambient/previous definitions6import '@polkadot/api-base/types/submittable';78import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';9import type { Bytes, Compact, Option, U256, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';10import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';11import type { AccountId32, Call, H160, H256, MultiAddress, Permill } from '@polkadot/types/interfaces/runtime';12import 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';1314export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;15export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;16export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;1718declare module '@polkadot/api-base/types/submittable' {19 interface AugmentedSubmittables<ApiType extends ApiTypes> {20 appPromotion: {21 /**22 * Recalculates interest for the specified number of stakers.23 * If all stakers are not recalculated, the next call of the extrinsic24 * will continue the recalculation, from those stakers for whom this25 * was not perform in last call.26 * 27 * # Permissions28 * 29 * * Pallet admin30 * 31 * # Arguments32 * 33 * * `stakers_number`: the number of stakers for which recalculation will be performed34 **/35 payoutStakers: AugmentedSubmittable<(stakersNumber: Option<u8> | null | Uint8Array | u8 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u8>]>;36 /**37 * Sets an address as the the admin.38 * 39 * # Permissions40 * 41 * * Sudo42 * 43 * # Arguments44 * 45 * * `admin`: account of the new admin.46 **/47 setAdminAddress: AugmentedSubmittable<(admin: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr]>;48 /**49 * Sets the pallet to be the sponsor for the collection.50 * 51 * # Permissions52 * 53 * * Pallet admin54 * 55 * # Arguments56 * 57 * * `collection_id`: ID of the collection that will be sponsored by `pallet_id`58 **/59 sponsorCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;60 /**61 * Sets the pallet to be the sponsor for the contract.62 * 63 * # Permissions64 * 65 * * Pallet admin66 * 67 * # Arguments68 * 69 * * `contract_id`: the contract address that will be sponsored by `pallet_id`70 **/71 sponsorContract: AugmentedSubmittable<(contractId: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;72 /**73 * Stakes the amount of native tokens.74 * Sets `amount` to the locked state.75 * The maximum number of stakes for a staker is 10.76 * 77 * # Arguments78 * 79 * * `amount`: in native tokens.80 **/81 stake: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;82 /**83 * Removes the pallet as the sponsor for the collection.84 * Returns [`NoPermission`][`Error::NoPermission`]85 * if the pallet wasn't the sponsor.86 * 87 * # Permissions88 * 89 * * Pallet admin90 * 91 * # Arguments92 * 93 * * `collection_id`: ID of the collection that is sponsored by `pallet_id`94 **/95 stopSponsoringCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;96 /**97 * Removes the pallet as the sponsor for the contract.98 * Returns [`NoPermission`][`Error::NoPermission`]99 * if the pallet wasn't the sponsor.100 * 101 * # Permissions102 * 103 * * Pallet admin104 * 105 * # Arguments106 * 107 * * `contract_id`: the contract address that is sponsored by `pallet_id`108 **/109 stopSponsoringContract: AugmentedSubmittable<(contractId: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;110 /**111 * Unstakes all stakes.112 * Moves the sum of all stakes to the `reserved` state.113 * After the end of `PendingInterval` this sum becomes completely114 * free for further use.115 **/116 unstake: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;117 /**118 * Generic tx119 **/120 [key: string]: SubmittableExtrinsicFunction<ApiType>;121 };122 balances: {123 /**124 * Exactly as `transfer`, except the origin must be root and the source account may be125 * specified.126 * # <weight>127 * - Same as transfer, but additional read and write because the source account is not128 * assumed to be in the overlay.129 * # </weight>130 **/131 forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;132 /**133 * Unreserve some balance from a user by force.134 * 135 * Can only be called by ROOT.136 **/137 forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;138 /**139 * Set the balances of a given account.140 * 141 * This will alter `FreeBalance` and `ReservedBalance` in storage. it will142 * also alter the total issuance of the system (`TotalIssuance`) appropriately.143 * If the new free or reserved balance is below the existential deposit,144 * it will reset the account nonce (`frame_system::AccountNonce`).145 * 146 * The dispatch origin for this call is `root`.147 **/148 setBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, newReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;149 /**150 * Transfer some liquid free balance to another account.151 * 152 * `transfer` will set the `FreeBalance` of the sender and receiver.153 * If the sender's account is below the existential deposit as a result154 * of the transfer, the account will be reaped.155 * 156 * The dispatch origin for this call must be `Signed` by the transactor.157 * 158 * # <weight>159 * - Dependent on arguments but not critical, given proper implementations for input config160 * types. See related functions below.161 * - It contains a limited number of reads and writes internally and no complex162 * computation.163 * 164 * Related functions:165 * 166 * - `ensure_can_withdraw` is always called internally but has a bounded complexity.167 * - Transferring balances to accounts that did not exist before will cause168 * `T::OnNewAccount::on_new_account` to be called.169 * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.170 * - `transfer_keep_alive` works the same way as `transfer`, but has an additional check171 * that the transfer will not kill the origin account.172 * ---------------------------------173 * - Origin account is already in memory, so no DB operations for them.174 * # </weight>175 **/176 transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;177 /**178 * Transfer the entire transferable balance from the caller account.179 * 180 * NOTE: This function only attempts to transfer _transferable_ balances. This means that181 * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be182 * transferred by this function. To ensure that this function results in a killed account,183 * you might need to prepare the account by removing any reference counters, storage184 * deposits, etc...185 * 186 * The dispatch origin of this call must be Signed.187 * 188 * - `dest`: The recipient of the transfer.189 * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all190 * of the funds the account has, causing the sender account to be killed (false), or191 * transfer everything except at least the existential deposit, which will guarantee to192 * keep the sender account alive (true). # <weight>193 * - O(1). Just like transfer, but reading the user's transferable balance first.194 * #</weight>195 **/196 transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;197 /**198 * Same as the [`transfer`] call, but with a check that the transfer will not kill the199 * origin account.200 * 201 * 99% of the time you want [`transfer`] instead.202 * 203 * [`transfer`]: struct.Pallet.html#method.transfer204 **/205 transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;206 /**207 * Generic tx208 **/209 [key: string]: SubmittableExtrinsicFunction<ApiType>;210 };211 charging: {212 /**213 * Generic tx214 **/215 [key: string]: SubmittableExtrinsicFunction<ApiType>;216 };217 configuration: {218 setAppPromotionConfigurationOverride: AugmentedSubmittable<(configuration: PalletConfigurationAppPromotionConfiguration | { recalculationInterval?: any; pendingInterval?: any; intervalIncome?: any; maxStakersPerCalculation?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletConfigurationAppPromotionConfiguration]>;219 setCollatorSelectionDesiredCollators: AugmentedSubmittable<(max: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;220 setCollatorSelectionKickThreshold: AugmentedSubmittable<(threshold: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;221 setCollatorSelectionLicenseBond: AugmentedSubmittable<(amount: Option<u128> | null | Uint8Array | u128 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u128>]>;222 setMinGasPriceOverride: AugmentedSubmittable<(coeff: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u64>]>;223 setWeightToFeeCoefficientOverride: AugmentedSubmittable<(coeff: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u64>]>;224 setXcmAllowedLocations: AugmentedSubmittable<(locations: Option<Vec<XcmV1MultiLocation>> | null | Uint8Array | Vec<XcmV1MultiLocation> | (XcmV1MultiLocation | { parents?: any; interior?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Option<Vec<XcmV1MultiLocation>>]>;225 /**226 * Generic tx227 **/228 [key: string]: SubmittableExtrinsicFunction<ApiType>;229 };230 cumulusXcm: {231 /**232 * Generic tx233 **/234 [key: string]: SubmittableExtrinsicFunction<ApiType>;235 };236 dmpQueue: {237 /**238 * Service a single overweight message.239 * 240 * - `origin`: Must pass `ExecuteOverweightOrigin`.241 * - `index`: The index of the overweight message to service.242 * - `weight_limit`: The amount of weight that message execution may take.243 * 244 * Errors:245 * - `Unknown`: Message of `index` is unknown.246 * - `OverLimit`: Message execution may use greater than `weight_limit`.247 * 248 * Events:249 * - `OverweightServiced`: On success.250 **/251 serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;252 /**253 * Generic tx254 **/255 [key: string]: SubmittableExtrinsicFunction<ApiType>;256 };257 ethereum: {258 /**259 * Transact an Ethereum transaction.260 **/261 transact: AugmentedSubmittable<(transaction: EthereumTransactionTransactionV2 | { Legacy: any } | { EIP2930: any } | { EIP1559: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [EthereumTransactionTransactionV2]>;262 /**263 * Generic tx264 **/265 [key: string]: SubmittableExtrinsicFunction<ApiType>;266 };267 evm: {268 /**269 * Issue an EVM call operation. This is similar to a message call transaction in Ethereum.270 **/271 call: AugmentedSubmittable<(source: H160 | string | Uint8Array, target: H160 | string | Uint8Array, input: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, H160, Bytes, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;272 /**273 * Issue an EVM create operation. This is similar to a contract creation transaction in274 * Ethereum.275 **/276 create: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, Bytes, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;277 /**278 * Issue an EVM create2 operation.279 **/280 create2: AugmentedSubmittable<(source: H160 | string | Uint8Array, init: Bytes | string | Uint8Array, salt: H256 | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, maxFeePerGas: U256 | AnyNumber | Uint8Array, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, accessList: Vec<ITuple<[H160, Vec<H256>]>> | ([H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]])[]) => SubmittableExtrinsic<ApiType>, [H160, Bytes, H256, U256, u64, U256, Option<U256>, Option<U256>, Vec<ITuple<[H160, Vec<H256>]>>]>;281 /**282 * Withdraw balance from EVM into currency/balances pallet.283 **/284 withdraw: AugmentedSubmittable<(address: H160 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, u128]>;285 /**286 * Generic tx287 **/288 [key: string]: SubmittableExtrinsicFunction<ApiType>;289 };290 evmMigration: {291 /**292 * Start contract migration, inserts contract stub at target address,293 * and marks account as pending, allowing to insert storage294 **/295 begin: AugmentedSubmittable<(address: H160 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160]>;296 /**297 * Finish contract migration, allows it to be called.298 * It is not possible to alter contract storage via [`Self::set_data`]299 * after this call.300 **/301 finish: AugmentedSubmittable<(address: H160 | string | Uint8Array, code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, Bytes]>;302 /**303 * Create ethereum events attached to the fake transaction304 **/305 insertEthLogs: AugmentedSubmittable<(logs: Vec<EthereumLog> | (EthereumLog | { address?: any; topics?: any; data?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<EthereumLog>]>;306 /**307 * Create substrate events308 **/309 insertEvents: AugmentedSubmittable<(events: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;310 /**311 * Insert items into contract storage, this method can be called312 * multiple times313 **/314 setData: AugmentedSubmittable<(address: H160 | string | Uint8Array, data: Vec<ITuple<[H256, H256]>> | ([H256 | string | Uint8Array, H256 | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [H160, Vec<ITuple<[H256, H256]>>]>;315 /**316 * Generic tx317 **/318 [key: string]: SubmittableExtrinsicFunction<ApiType>;319 };320 foreignAssets: {321 registerForeignAsset: AugmentedSubmittable<(owner: AccountId32 | string | Uint8Array, location: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, metadata: PalletForeignAssetsModuleAssetMetadata | { name?: any; symbol?: any; decimals?: any; minimalBalance?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, XcmVersionedMultiLocation, PalletForeignAssetsModuleAssetMetadata]>;322 updateForeignAsset: AugmentedSubmittable<(foreignAssetId: u32 | AnyNumber | Uint8Array, location: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, metadata: PalletForeignAssetsModuleAssetMetadata | { name?: any; symbol?: any; decimals?: any; minimalBalance?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, XcmVersionedMultiLocation, PalletForeignAssetsModuleAssetMetadata]>;323 /**324 * Generic tx325 **/326 [key: string]: SubmittableExtrinsicFunction<ApiType>;327 };328 inflation: {329 /**330 * This method sets the inflation start date. Can be only called once.331 * Inflation start block can be backdated and will catch up. The method will create Treasury332 * account if it does not exist and perform the first inflation deposit.333 * 334 * # Permissions335 * 336 * * Root337 * 338 * # Arguments339 * 340 * * inflation_start_relay_block: The relay chain block at which inflation should start341 **/342 startInflation: AugmentedSubmittable<(inflationStartRelayBlock: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;343 /**344 * Generic tx345 **/346 [key: string]: SubmittableExtrinsicFunction<ApiType>;347 };348 maintenance: {349 disable: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;350 enable: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;351 /**352 * Generic tx353 **/354 [key: string]: SubmittableExtrinsicFunction<ApiType>;355 };356 parachainSystem: {357 authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;358 enactAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;359 /**360 * Set the current validation data.361 * 362 * This should be invoked exactly once per block. It will panic at the finalization363 * phase if the call was not invoked.364 * 365 * The dispatch origin for this call must be `Inherent`366 * 367 * As a side effect, this function upgrades the current validation function368 * if the appropriate time has come.369 **/370 setValidationData: AugmentedSubmittable<(data: CumulusPrimitivesParachainInherentParachainInherentData | { validationData?: any; relayChainState?: any; downwardMessages?: any; horizontalMessages?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [CumulusPrimitivesParachainInherentParachainInherentData]>;371 sudoSendUpwardMessage: AugmentedSubmittable<(message: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;372 /**373 * Generic tx374 **/375 [key: string]: SubmittableExtrinsicFunction<ApiType>;376 };377 polkadotXcm: {378 /**379 * Execute an XCM message from a local, signed, origin.380 * 381 * An event is deposited indicating whether `msg` could be executed completely or only382 * partially.383 * 384 * No more than `max_weight` will be used in its attempted execution. If this is less than the385 * maximum amount of weight that the message could take to be executed, then no execution386 * attempt will be made.387 * 388 * NOTE: A successful return to this does *not* imply that the `msg` was executed successfully389 * to completion; only that *some* of it was executed.390 **/391 execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, u64]>;392 /**393 * Set a safe XCM version (the version that XCM should be encoded with if the most recent394 * version a destination can accept is unknown).395 * 396 * - `origin`: Must be Root.397 * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.398 **/399 forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;400 /**401 * Ask a location to notify us regarding their XCM version and any changes to it.402 * 403 * - `origin`: Must be Root.404 * - `location`: The location to which we should subscribe for XCM version notifications.405 **/406 forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;407 /**408 * Require that a particular destination should no longer notify us regarding any XCM409 * version changes.410 * 411 * - `origin`: Must be Root.412 * - `location`: The location to which we are currently subscribed for XCM version413 * notifications which we no longer desire.414 **/415 forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;416 /**417 * Extoll that a particular destination can be communicated with through a particular418 * version of XCM.419 * 420 * - `origin`: Must be Root.421 * - `location`: The destination that is being described.422 * - `xcm_version`: The latest version of XCM that `location` supports.423 **/424 forceXcmVersion: AugmentedSubmittable<(location: XcmV1MultiLocation | { parents?: any; interior?: any } | string | Uint8Array, xcmVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmV1MultiLocation, u32]>;425 /**426 * Transfer some assets from the local chain to the sovereign account of a destination427 * chain and forward a notification XCM.428 * 429 * Fee payment on the destination side is made from the asset in the `assets` vector of430 * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight431 * is needed than `weight_limit`, then the operation will fail and the assets send may be432 * at risk.433 * 434 * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.435 * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send436 * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.437 * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be438 * an `AccountId32` value.439 * - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the440 * `dest` side.441 * - `fee_asset_item`: The index into `assets` of the item which should be used to pay442 * fees.443 * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.444 **/445 limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV2WeightLimit]>;446 /**447 * Teleport some assets from the local chain to some destination chain.448 * 449 * Fee payment on the destination side is made from the asset in the `assets` vector of450 * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight451 * is needed than `weight_limit`, then the operation will fail and the assets send may be452 * at risk.453 * 454 * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.455 * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send456 * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.457 * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be458 * an `AccountId32` value.459 * - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the460 * `dest` side. May not be empty.461 * - `fee_asset_item`: The index into `assets` of the item which should be used to pay462 * fees.463 * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.464 **/465 limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32, XcmV2WeightLimit]>;466 /**467 * Transfer some assets from the local chain to the sovereign account of a destination468 * chain and forward a notification XCM.469 * 470 * Fee payment on the destination side is made from the asset in the `assets` vector of471 * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,472 * with all fees taken as needed from the asset.473 * 474 * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.475 * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send476 * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.477 * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be478 * an `AccountId32` value.479 * - `assets`: The assets to be withdrawn. This should include the assets used to pay the fee on the480 * `dest` side.481 * - `fee_asset_item`: The index into `assets` of the item which should be used to pay482 * fees.483 **/484 reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;485 send: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedXcm]>;486 /**487 * Teleport some assets from the local chain to some destination chain.488 * 489 * Fee payment on the destination side is made from the asset in the `assets` vector of490 * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,491 * with all fees taken as needed from the asset.492 * 493 * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.494 * - `dest`: Destination context for the assets. Will typically be `X2(Parent, Parachain(..))` to send495 * from parachain to parachain, or `X1(Parachain(..))` to send from relay to parachain.496 * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will generally be497 * an `AccountId32` value.498 * - `assets`: The assets to be withdrawn. The first item should be the currency used to to pay the fee on the499 * `dest` side. May not be empty.500 * - `fee_asset_item`: The index into `assets` of the item which should be used to pay501 * fees.502 **/503 teleportAssets: AugmentedSubmittable<(dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, beneficiary: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation, XcmVersionedMultiLocation, XcmVersionedMultiAssets, u32]>;504 /**505 * Generic tx506 **/507 [key: string]: SubmittableExtrinsicFunction<ApiType>;508 };509 rmrkCore: {510 /**511 * Accept an NFT sent from another account to self or an owned NFT.512 * 513 * The NFT in question must be pending, and, thus, be [sent](`Pallet::send`) first.514 * 515 * # Permissions:516 * - Token-owner-to-be517 * 518 * # Arguments:519 * - `origin`: sender of the transaction520 * - `rmrk_collection_id`: RMRK collection ID of the NFT to be accepted.521 * - `rmrk_nft_id`: ID of the NFT to be accepted.522 * - `new_owner`: Either the sender's account ID or a sender-owned NFT,523 * whichever the accepted NFT was sent to.524 **/525 acceptNft: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple | { AccountId: any } | { CollectionAndNftTuple: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, RmrkTraitsNftAccountIdOrCollectionNftTuple]>;526 /**527 * Accept the addition of a newly created pending resource to an existing NFT.528 * 529 * This transaction is needed when a resource is created and assigned to an NFT530 * by a non-owner, i.e. the collection issuer, with one of the531 * [`add_...` transactions](Pallet::add_basic_resource).532 * 533 * # Permissions:534 * - Token owner535 * 536 * # Arguments:537 * - `origin`: sender of the transaction538 * - `rmrk_collection_id`: RMRK collection ID of the NFT.539 * - `rmrk_nft_id`: ID of the NFT with a pending resource to be accepted.540 * - `resource_id`: ID of the newly created pending resource.541 * accept the addition of a new resource to an existing NFT542 **/543 acceptResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, resourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;544 /**545 * Accept the removal of a removal-pending resource from an NFT.546 * 547 * This transaction is needed when a non-owner, i.e. the collection issuer,548 * requests a [removal](`Pallet::remove_resource`) of a resource from an NFT.549 * 550 * # Permissions:551 * - Token owner552 * 553 * # Arguments:554 * - `origin`: sender of the transaction555 * - `rmrk_collection_id`: RMRK collection ID of the NFT.556 * - `rmrk_nft_id`: ID of the NFT with a resource to be removed.557 * - `resource_id`: ID of the removal-pending resource.558 **/559 acceptResourceRemoval: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, resourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;560 /**561 * Create and set/propose a basic resource for an NFT.562 * 563 * A basic resource is the simplest, lacking a Base and anything that comes with it.564 * See RMRK docs for more information and examples.565 * 566 * # Permissions:567 * - Collection issuer - if not the token owner, adding the resource will warrant568 * the owner's [acceptance](Pallet::accept_resource).569 * 570 * # Arguments:571 * - `origin`: sender of the transaction572 * - `rmrk_collection_id`: RMRK collection ID of the NFT.573 * - `nft_id`: ID of the NFT to assign a resource to.574 * - `resource`: Data of the resource to be created.575 **/576 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]>;577 /**578 * Create and set/propose a composable resource for an NFT.579 * 580 * A composable resource links to a Base and has a subset of its Parts it is composed of.581 * See RMRK docs for more information and examples.582 * 583 * # Permissions:584 * - Collection issuer - if not the token owner, adding the resource will warrant585 * the owner's [acceptance](Pallet::accept_resource).586 * 587 * # Arguments:588 * - `origin`: sender of the transaction589 * - `rmrk_collection_id`: RMRK collection ID of the NFT.590 * - `nft_id`: ID of the NFT to assign a resource to.591 * - `resource`: Data of the resource to be created.592 **/593 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]>;594 /**595 * Create and set/propose a slot resource for an NFT.596 * 597 * A slot resource links to a Base and a slot ID in it which it can fit into.598 * See RMRK docs for more information and examples.599 * 600 * # Permissions:601 * - Collection issuer - if not the token owner, adding the resource will warrant602 * the owner's [acceptance](Pallet::accept_resource).603 * 604 * # Arguments:605 * - `origin`: sender of the transaction606 * - `rmrk_collection_id`: RMRK collection ID of the NFT.607 * - `nft_id`: ID of the NFT to assign a resource to.608 * - `resource`: Data of the resource to be created.609 **/610 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]>;611 /**612 * Burn an NFT, destroying it and its nested tokens up to the specified limit.613 * If the burning budget is exceeded, the transaction is reverted.614 * 615 * This is the way to burn a nested token as well.616 * 617 * For more information, see [`burn_recursively`](pallet_nonfungible::pallet::Pallet::burn_recursively).618 * 619 * # Permissions:620 * * Token owner621 * 622 * # Arguments:623 * - `origin`: sender of the transaction624 * - `collection_id`: RMRK ID of the collection in which the NFT to burn belongs to.625 * - `nft_id`: ID of the NFT to be destroyed.626 * - `max_burns`: Maximum number of tokens to burn, assuming nesting. The transaction627 * is reverted if there are more tokens to burn in the nesting tree than this number.628 * This is primarily a mechanism of transaction weight control.629 **/630 burnNft: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, maxBurns: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;631 /**632 * Change the issuer of a collection. Analogous to Unique's collection's [`owner`](up_data_structs::Collection).633 * 634 * # Permissions:635 * * Collection issuer636 * 637 * # Arguments:638 * - `origin`: sender of the transaction639 * - `collection_id`: RMRK collection ID to change the issuer of.640 * - `new_issuer`: Collection's new issuer.641 **/642 changeCollectionIssuer: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newIssuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;643 /**644 * Create a new collection of NFTs.645 * 646 * # Permissions:647 * * Anyone - will be assigned as the issuer of the collection.648 * 649 * # Arguments:650 * - `origin`: sender of the transaction651 * - `metadata`: Metadata describing the collection, e.g. IPFS hash. Cannot be changed.652 * - `max`: Optional maximum number of tokens.653 * - `symbol`: UTF-8 string with token prefix, by which to represent the token in wallets and UIs.654 * Analogous to Unique's [`token_prefix`](up_data_structs::Collection). Cannot be changed.655 **/656 createCollection: AugmentedSubmittable<(metadata: Bytes | string | Uint8Array, max: Option<u32> | null | Uint8Array | u32 | AnyNumber, symbol: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Option<u32>, Bytes]>;657 /**658 * Destroy a collection.659 * 660 * Only empty collections can be destroyed. If it has any tokens, they must be burned first.661 * 662 * # Permissions:663 * * Collection issuer664 * 665 * # Arguments:666 * - `origin`: sender of the transaction667 * - `collection_id`: RMRK ID of the collection to destroy.668 **/669 destroyCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;670 /**671 * "Lock" the collection and prevent new token creation. Cannot be undone.672 * 673 * # Permissions:674 * * Collection issuer675 * 676 * # Arguments:677 * - `origin`: sender of the transaction678 * - `collection_id`: RMRK ID of the collection to lock.679 **/680 lockCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;681 /**682 * Mint an NFT in a specified collection.683 * 684 * # Permissions:685 * * Collection issuer686 * 687 * # Arguments:688 * - `origin`: sender of the transaction689 * - `owner`: Owner account of the NFT. If set to None, defaults to the sender (collection issuer).690 * - `collection_id`: RMRK collection ID for the NFT to be minted within. Cannot be changed.691 * - `recipient`: Receiver account of the royalty. Has no effect if the `royalty_amount` is not set. Cannot be changed.692 * - `royalty_amount`: Optional permillage reward from each trade for the `recipient`. Cannot be changed.693 * - `metadata`: Arbitrary data about an NFT, e.g. IPFS hash. Cannot be changed.694 * - `transferable`: Can this NFT be transferred? Cannot be changed.695 * - `resources`: Resource data to be added to the NFT immediately after minting.696 **/697 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>>]>;698 /**699 * Reject an NFT sent from another account to self or owned NFT.700 * The NFT in question will not be sent back and burnt instead.701 * 702 * The NFT in question must be pending, and, thus, be [sent](`Pallet::send`) first.703 * 704 * # Permissions:705 * - Token-owner-to-be-not706 * 707 * # Arguments:708 * - `origin`: sender of the transaction709 * - `rmrk_collection_id`: RMRK ID of the NFT to be rejected.710 * - `rmrk_nft_id`: ID of the NFT to be rejected.711 **/712 rejectNft: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;713 /**714 * Remove and erase a resource from an NFT.715 * 716 * If the sender does not own the NFT, then it will be pending confirmation,717 * and will have to be [accepted](Pallet::accept_resource_removal) by the token owner.718 * 719 * # Permissions720 * - Collection issuer721 * 722 * # Arguments723 * - `origin`: sender of the transaction724 * - `rmrk_collection_id`: RMRK ID of a collection to which the NFT making use of the resource belongs to.725 * - `nft_id`: ID of the NFT with a resource to be removed.726 * - `resource_id`: ID of the resource to be removed.727 **/728 removeResource: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, nftId: u32 | AnyNumber | Uint8Array, resourceId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;729 /**730 * Transfer an NFT from an account/NFT A to another account/NFT B.731 * The token must be transferable. Nesting cannot occur deeper than the [`NESTING_BUDGET`].732 * 733 * If the target owner is an NFT owned by another account, then the NFT will enter734 * the pending state and will have to be accepted by the other account.735 * 736 * # Permissions:737 * - Token owner738 * 739 * # Arguments:740 * - `origin`: sender of the transaction741 * - `rmrk_collection_id`: RMRK ID of the collection of the NFT to be transferred.742 * - `rmrk_nft_id`: ID of the NFT to be transferred.743 * - `new_owner`: New owner of the nft which can be either an account or a NFT.744 **/745 send: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, newOwner: RmrkTraitsNftAccountIdOrCollectionNftTuple | { AccountId: any } | { CollectionAndNftTuple: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, RmrkTraitsNftAccountIdOrCollectionNftTuple]>;746 /**747 * Set a different order of resource priorities for an NFT. Priorities can be used,748 * for example, for order of rendering.749 * 750 * Note that the priorities are not updated automatically, and are an empty vector751 * by default. There is no pre-set definition for the order to be particular,752 * it can be interpreted arbitrarily use-case by use-case.753 * 754 * # Permissions:755 * - Token owner756 * 757 * # Arguments:758 * - `origin`: sender of the transaction759 * - `rmrk_collection_id`: RMRK collection ID of the NFT.760 * - `rmrk_nft_id`: ID of the NFT to rearrange resource priorities for.761 * - `priorities`: Ordered vector of resource IDs.762 **/763 setPriority: AugmentedSubmittable<(rmrkCollectionId: u32 | AnyNumber | Uint8Array, rmrkNftId: u32 | AnyNumber | Uint8Array, priorities: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, u32, Vec<u32>]>;764 /**765 * Add or edit a custom user property, a key-value pair, describing the metadata766 * of a token or a collection, on either one of these.767 * 768 * Note that in this proxy implementation many details regarding RMRK are stored769 * as scoped properties prefixed with "rmrk:", normally inaccessible770 * to external transactions and RPCs.771 * 772 * # Permissions:773 * - Collection issuer - in case of collection property774 * - Token owner - in case of NFT property775 * 776 * # Arguments:777 * - `origin`: sender of the transaction778 * - `rmrk_collection_id`: RMRK collection ID.779 * - `maybe_nft_id`: Optional ID of the NFT. If left empty, then the property is set for the collection.780 * - `key`: Key of the custom property to be referenced by.781 * - `value`: Value of the custom property to be stored.782 **/783 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]>;784 /**785 * Generic tx786 **/787 [key: string]: SubmittableExtrinsicFunction<ApiType>;788 };789 rmrkEquip: {790 /**791 * Create a new Base.792 * 793 * Modeled after the [Base interaction](https://github.com/rmrk-team/rmrk-spec/blob/master/standards/rmrk2.0.0/interactions/base.md)794 * 795 * # Permissions796 * - Anyone - will be assigned as the issuer of the Base.797 * 798 * # Arguments:799 * - `origin`: Caller, will be assigned as the issuer of the Base800 * - `base_type`: Arbitrary media type, e.g. "svg".801 * - `symbol`: Arbitrary client-chosen symbol.802 * - `parts`: Array of Fixed and Slot Parts composing the Base,803 * confined in length by [`RmrkPartsLimit`](up_data_structs::RmrkPartsLimit).804 **/805 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>]>;806 /**807 * Update the array of Collections allowed to be equipped to a Base's specified Slot Part.808 * 809 * Modeled after [equippable interaction](https://github.com/rmrk-team/rmrk-spec/blob/master/standards/rmrk2.0.0/interactions/equippable.md).810 * 811 * # Permissions:812 * - Base issuer813 * 814 * # Arguments:815 * - `origin`: sender of the transaction816 * - `base_id`: Base containing the Slot Part to be updated.817 * - `slot_id`: Slot Part whose Equippable List is being updated .818 * - `equippables`: List of equippables that will override the current Equippables list.819 **/820 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]>;821 /**822 * Add a Theme to a Base.823 * A Theme named "default" is required prior to adding other Themes.824 * 825 * Modeled after [Themeadd interaction](https://github.com/rmrk-team/rmrk-spec/blob/master/standards/rmrk2.0.0/interactions/themeadd.md).826 * 827 * # Permissions:828 * - Base issuer829 * 830 * # Arguments:831 * - `origin`: sender of the transaction832 * - `base_id`: Base ID containing the Theme to be updated.833 * - `theme`: Theme to add to the Base. A Theme has a name and properties, which are an834 * array of [key, value, inherit].835 * - `key`: Arbitrary BoundedString, defined by client.836 * - `value`: Arbitrary BoundedString, defined by client.837 * - `inherit`: Optional bool.838 **/839 themeAdd: AugmentedSubmittable<(baseId: u32 | AnyNumber | Uint8Array, theme: RmrkTraitsTheme | { name?: any; properties?: any; inherit?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, RmrkTraitsTheme]>;840 /**841 * Generic tx842 **/843 [key: string]: SubmittableExtrinsicFunction<ApiType>;844 };845 structure: {846 /**847 * Generic tx848 **/849 [key: string]: SubmittableExtrinsicFunction<ApiType>;850 };851 sudo: {852 /**853 * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo854 * key.855 * 856 * The dispatch origin for this call must be _Signed_.857 * 858 * # <weight>859 * - O(1).860 * - Limited storage reads.861 * - One DB change.862 * # </weight>863 **/864 setKey: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;865 /**866 * Authenticates the sudo key and dispatches a function call with `Root` origin.867 * 868 * The dispatch origin for this call must be _Signed_.869 * 870 * # <weight>871 * - O(1).872 * - Limited storage reads.873 * - One DB write (event).874 * - Weight of derivative `call` execution + 10,000.875 * # </weight>876 **/877 sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;878 /**879 * Authenticates the sudo key and dispatches a function call with `Signed` origin from880 * a given account.881 * 882 * The dispatch origin for this call must be _Signed_.883 * 884 * # <weight>885 * - O(1).886 * - Limited storage reads.887 * - One DB write (event).888 * - Weight of derivative `call` execution + 10,000.889 * # </weight>890 **/891 sudoAs: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;892 /**893 * Authenticates the sudo key and dispatches a function call with `Root` origin.894 * This function does not check the weight of the call, and instead allows the895 * Sudo user to specify the weight of the call.896 * 897 * The dispatch origin for this call must be _Signed_.898 * 899 * # <weight>900 * - O(1).901 * - The weight of this call is defined by the caller.902 * # </weight>903 **/904 sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, SpWeightsWeightV2Weight]>;905 /**906 * Generic tx907 **/908 [key: string]: SubmittableExtrinsicFunction<ApiType>;909 };910 system: {911 /**912 * Kill all storage items with a key that starts with the given prefix.913 * 914 * **NOTE:** We rely on the Root origin to provide us the number of subkeys under915 * the prefix we are removing to accurately calculate the weight of this function.916 **/917 killPrefix: AugmentedSubmittable<(prefix: Bytes | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32]>;918 /**919 * Kill some items from storage.920 **/921 killStorage: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>]>;922 /**923 * Make some on-chain remark.924 * 925 * # <weight>926 * - `O(1)`927 * # </weight>928 **/929 remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;930 /**931 * Make some on-chain remark and emit event.932 **/933 remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;934 /**935 * Set the new runtime code.936 * 937 * # <weight>938 * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`939 * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is940 * expensive).941 * - 1 storage write (codec `O(C)`).942 * - 1 digest item.943 * - 1 event.944 * The weight of this function is dependent on the runtime, but generally this is very945 * expensive. We will treat this as a full block.946 * # </weight>947 **/948 setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;949 /**950 * Set the new runtime code without doing any checks of the given `code`.951 * 952 * # <weight>953 * - `O(C)` where `C` length of `code`954 * - 1 storage write (codec `O(C)`).955 * - 1 digest item.956 * - 1 event.957 * The weight of this function is dependent on the runtime. We will treat this as a full958 * block. # </weight>959 **/960 setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;961 /**962 * Set the number of pages in the WebAssembly environment's heap.963 **/964 setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;965 /**966 * Set some items of storage.967 **/968 setStorage: AugmentedSubmittable<(items: Vec<ITuple<[Bytes, Bytes]>> | ([Bytes | string | Uint8Array, Bytes | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[Bytes, Bytes]>>]>;969 /**970 * Generic tx971 **/972 [key: string]: SubmittableExtrinsicFunction<ApiType>;973 };974 testUtils: {975 batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;976 enable: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;977 incTestValue: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;978 justTakeFee: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;979 setTestValue: AugmentedSubmittable<(value: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;980 setTestValueAndRollback: AugmentedSubmittable<(value: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;981 /**982 * Generic tx983 **/984 [key: string]: SubmittableExtrinsicFunction<ApiType>;985 };986 timestamp: {987 /**988 * Set the current time.989 * 990 * This call should be invoked exactly once per block. It will panic at the finalization991 * phase, if this call hasn't been invoked by that time.992 * 993 * The timestamp should be greater than the previous one by the amount specified by994 * `MinimumPeriod`.995 * 996 * The dispatch origin for this call must be `Inherent`.997 * 998 * # <weight>999 * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)1000 * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in1001 * `on_finalize`)1002 * - 1 event handler `on_timestamp_set`. Must be `O(1)`.1003 * # </weight>1004 **/1005 set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;1006 /**1007 * Generic tx1008 **/1009 [key: string]: SubmittableExtrinsicFunction<ApiType>;1010 };1011 tokens: {1012 /**1013 * Exactly as `transfer`, except the origin must be root and the source1014 * account may be specified.1015 * 1016 * The dispatch origin for this call must be _Root_.1017 * 1018 * - `source`: The sender of the transfer.1019 * - `dest`: The recipient of the transfer.1020 * - `currency_id`: currency type.1021 * - `amount`: free balance amount to tranfer.1022 **/1023 forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, PalletForeignAssetsAssetIds, Compact<u128>]>;1024 /**1025 * Set the balances of a given account.1026 * 1027 * This will alter `FreeBalance` and `ReservedBalance` in storage. it1028 * will also decrease the total issuance of the system1029 * (`TotalIssuance`). If the new free or reserved balance is below the1030 * existential deposit, it will reap the `AccountInfo`.1031 * 1032 * The dispatch origin for this call is `root`.1033 **/1034 setBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, newReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletForeignAssetsAssetIds, Compact<u128>, Compact<u128>]>;1035 /**1036 * Transfer some liquid free balance to another account.1037 * 1038 * `transfer` will set the `FreeBalance` of the sender and receiver.1039 * It will decrease the total issuance of the system by the1040 * `TransferFee`. If the sender's account is below the existential1041 * deposit as a result of the transfer, the account will be reaped.1042 * 1043 * The dispatch origin for this call must be `Signed` by the1044 * transactor.1045 * 1046 * - `dest`: The recipient of the transfer.1047 * - `currency_id`: currency type.1048 * - `amount`: free balance amount to tranfer.1049 **/1050 transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletForeignAssetsAssetIds, Compact<u128>]>;1051 /**1052 * Transfer all remaining balance to the given account.1053 * 1054 * NOTE: This function only attempts to transfer _transferable_1055 * balances. This means that any locked, reserved, or existential1056 * deposits (when `keep_alive` is `true`), will not be transferred by1057 * this function. To ensure that this function results in a killed1058 * account, you might need to prepare the account by removing any1059 * reference counters, storage deposits, etc...1060 * 1061 * The dispatch origin for this call must be `Signed` by the1062 * transactor.1063 * 1064 * - `dest`: The recipient of the transfer.1065 * - `currency_id`: currency type.1066 * - `keep_alive`: A boolean to determine if the `transfer_all`1067 * operation should send all of the funds the account has, causing1068 * the sender account to be killed (false), or transfer everything1069 * except at least the existential deposit, which will guarantee to1070 * keep the sender account alive (true).1071 **/1072 transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletForeignAssetsAssetIds, bool]>;1073 /**1074 * Same as the [`transfer`] call, but with a check that the transfer1075 * will not kill the origin account.1076 * 1077 * 99% of the time you want [`transfer`] instead.1078 * 1079 * The dispatch origin for this call must be `Signed` by the1080 * transactor.1081 * 1082 * - `dest`: The recipient of the transfer.1083 * - `currency_id`: currency type.1084 * - `amount`: free balance amount to tranfer.1085 **/1086 transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletForeignAssetsAssetIds, Compact<u128>]>;1087 /**1088 * Generic tx1089 **/1090 [key: string]: SubmittableExtrinsicFunction<ApiType>;1091 };1092 treasury: {1093 /**1094 * Approve a proposal. At a later time, the proposal will be allocated to the beneficiary1095 * and the original deposit will be returned.1096 * 1097 * May only be called from `T::ApproveOrigin`.1098 * 1099 * # <weight>1100 * - Complexity: O(1).1101 * - DbReads: `Proposals`, `Approvals`1102 * - DbWrite: `Approvals`1103 * # </weight>1104 **/1105 approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;1106 /**1107 * Put forward a suggestion for spending. A deposit proportional to the value1108 * is reserved and slashed if the proposal is rejected. It is returned once the1109 * proposal is awarded.1110 * 1111 * # <weight>1112 * - Complexity: O(1)1113 * - DbReads: `ProposalCount`, `origin account`1114 * - DbWrites: `ProposalCount`, `Proposals`, `origin account`1115 * # </weight>1116 **/1117 proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;1118 /**1119 * Reject a proposed spend. The original deposit will be slashed.1120 * 1121 * May only be called from `T::RejectOrigin`.1122 * 1123 * # <weight>1124 * - Complexity: O(1)1125 * - DbReads: `Proposals`, `rejected proposer account`1126 * - DbWrites: `Proposals`, `rejected proposer account`1127 * # </weight>1128 **/1129 rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;1130 /**1131 * Force a previously approved proposal to be removed from the approval queue.1132 * The original deposit will no longer be returned.1133 * 1134 * May only be called from `T::RejectOrigin`.1135 * - `proposal_id`: The index of a proposal1136 * 1137 * # <weight>1138 * - Complexity: O(A) where `A` is the number of approvals1139 * - Db reads and writes: `Approvals`1140 * # </weight>1141 * 1142 * Errors:1143 * - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,1144 * i.e., the proposal has not been approved. This could also mean the proposal does not1145 * exist altogether, thus there is no way it would have been approved in the first place.1146 **/1147 removeApproval: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;1148 /**1149 * Propose and approve a spend of treasury funds.1150 * 1151 * - `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`.1152 * - `amount`: The amount to be transferred from the treasury to the `beneficiary`.1153 * - `beneficiary`: The destination account for the transfer.1154 * 1155 * NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the1156 * beneficiary.1157 **/1158 spend: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;1159 /**1160 * Generic tx1161 **/1162 [key: string]: SubmittableExtrinsicFunction<ApiType>;1163 };1164 unique: {1165 /**1166 * Add an admin to a collection.1167 * 1168 * NFT Collection can be controlled by multiple admin addresses1169 * (some which can also be servers, for example). Admins can issue1170 * and burn NFTs, as well as add and remove other admins,1171 * but cannot change NFT or Collection ownership.1172 * 1173 * # Permissions1174 * 1175 * * Collection owner1176 * * Collection admin1177 * 1178 * # Arguments1179 * 1180 * * `collection_id`: ID of the Collection to add an admin for.1181 * * `new_admin`: Address of new admin to add.1182 **/1183 addCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newAdminId: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1184 /**1185 * Add an address to allow list.1186 * 1187 * # Permissions1188 * 1189 * * Collection owner1190 * * Collection admin1191 * 1192 * # Arguments1193 * 1194 * * `collection_id`: ID of the modified collection.1195 * * `address`: ID of the address to be added to the allowlist.1196 **/1197 addToAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1198 /**1199 * Allow a non-permissioned address to transfer or burn an item.1200 * 1201 * # Permissions1202 * 1203 * * Collection owner1204 * * Collection admin1205 * * Current item owner1206 * 1207 * # Arguments1208 * 1209 * * `spender`: Account to be approved to make specific transactions on non-owned tokens.1210 * * `collection_id`: ID of the collection the item belongs to.1211 * * `item_id`: ID of the item transactions on which are now approved.1212 * * `amount`: Number of pieces of the item approved for a transaction (maximum of 1 for NFTs).1213 * Set to 0 to revoke the approval.1214 **/1215 approve: AugmentedSubmittable<(spender: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;1216 /**1217 * Allow a non-permissioned address to transfer or burn an item from owner's eth mirror.1218 * 1219 * # Permissions1220 * 1221 * * Collection owner1222 * * Collection admin1223 * * Current item owner1224 * 1225 * # Arguments1226 * 1227 * * `from`: Owner's account eth mirror1228 * * `to`: Account to be approved to make specific transactions on non-owned tokens.1229 * * `collection_id`: ID of the collection the item belongs to.1230 * * `item_id`: ID of the item transactions on which are now approved.1231 * * `amount`: Number of pieces of the item approved for a transaction (maximum of 1 for NFTs).1232 * Set to 0 to revoke the approval.1233 **/1234 approveFrom: AugmentedSubmittable<(from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, to: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;1235 /**1236 * Destroy a token on behalf of the owner as a non-owner account.1237 * 1238 * See also: [`approve`][`Pallet::approve`].1239 * 1240 * After this method executes, one approval is removed from the total so that1241 * the approved address will not be able to transfer this item again from this owner.1242 * 1243 * # Permissions1244 * 1245 * * Collection owner1246 * * Collection admin1247 * * Current token owner1248 * * Address approved by current item owner1249 * 1250 * # Arguments1251 * 1252 * * `from`: The owner of the burning item.1253 * * `collection_id`: ID of the collection to which the item belongs.1254 * * `item_id`: ID of item to burn.1255 * * `value`: Number of pieces to burn.1256 * * Non-Fungible Mode: An NFT is indivisible, there is always 1 corresponding to an ID.1257 * * Fungible Mode: The desired number of pieces to burn.1258 * * Re-Fungible Mode: The desired number of pieces to burn.1259 **/1260 burnFrom: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32, u128]>;1261 /**1262 * Destroy an item.1263 * 1264 * # Permissions1265 * 1266 * * Collection owner1267 * * Collection admin1268 * * Current item owner1269 * 1270 * # Arguments1271 * 1272 * * `collection_id`: ID of the collection to which the item belongs.1273 * * `item_id`: ID of item to burn.1274 * * `value`: Number of pieces of the item to destroy.1275 * * Non-Fungible Mode: An NFT is indivisible, there is always 1 corresponding to an ID.1276 * * Fungible Mode: The desired number of pieces to burn.1277 * * Re-Fungible Mode: The desired number of pieces to burn.1278 **/1279 burnItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;1280 /**1281 * Change the owner of the collection.1282 * 1283 * # Permissions1284 * 1285 * * Collection owner1286 * 1287 * # Arguments1288 * 1289 * * `collection_id`: ID of the modified collection.1290 * * `new_owner`: ID of the account that will become the owner.1291 **/1292 changeCollectionOwner: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newOwner: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32]>;1293 /**1294 * Confirm own sponsorship of a collection, becoming the sponsor.1295 * 1296 * An invitation must be pending, see [`set_collection_sponsor`][`Pallet::set_collection_sponsor`].1297 * Sponsor can pay the fees of a transaction instead of the sender,1298 * but only within specified limits.1299 * 1300 * # Permissions1301 * 1302 * * Sponsor-to-be1303 * 1304 * # Arguments1305 * 1306 * * `collection_id`: ID of the collection with the pending sponsor.1307 **/1308 confirmSponsorship: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1309 /**1310 * Create a collection of tokens.1311 * 1312 * Each Token may have multiple properties encoded as an array of bytes1313 * of certain length. The initial owner of the collection is set1314 * to the address that signed the transaction and can be changed later.1315 * 1316 * Prefer the more advanced [`create_collection_ex`][`Pallet::create_collection_ex`] instead.1317 * 1318 * # Permissions1319 * 1320 * * Anyone - becomes the owner of the new collection.1321 * 1322 * # Arguments1323 * 1324 * * `collection_name`: Wide-character string with collection name1325 * (limit [`MAX_COLLECTION_NAME_LENGTH`]).1326 * * `collection_description`: Wide-character string with collection description1327 * (limit [`MAX_COLLECTION_DESCRIPTION_LENGTH`]).1328 * * `token_prefix`: Byte string containing the token prefix to mark a collection1329 * to which a token belongs (limit [`MAX_TOKEN_PREFIX_LENGTH`]).1330 * * `mode`: Type of items stored in the collection and type dependent data.1331 **/1332 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]>;1333 /**1334 * Create a collection with explicit parameters.1335 * 1336 * Prefer it to the deprecated [`create_collection`][`Pallet::create_collection`] method.1337 * 1338 * # Permissions1339 * 1340 * * Anyone - becomes the owner of the new collection.1341 * 1342 * # Arguments1343 * 1344 * * `data`: Explicit data of a collection used for its creation.1345 **/1346 createCollectionEx: AugmentedSubmittable<(data: UpDataStructsCreateCollectionData | { mode?: any; access?: any; name?: any; description?: any; tokenPrefix?: any; pendingSponsor?: any; limits?: any; permissions?: any; tokenPropertyPermissions?: any; properties?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [UpDataStructsCreateCollectionData]>;1347 /**1348 * Mint an item within a collection.1349 * 1350 * A collection must exist first, see [`create_collection_ex`][`Pallet::create_collection_ex`].1351 * 1352 * # Permissions1353 * 1354 * * Collection owner1355 * * Collection admin1356 * * Anyone if1357 * * Allow List is enabled, and1358 * * Address is added to allow list, and1359 * * MintPermission is enabled (see [`set_collection_permissions`][`Pallet::set_collection_permissions`])1360 * 1361 * # Arguments1362 * 1363 * * `collection_id`: ID of the collection to which an item would belong.1364 * * `owner`: Address of the initial owner of the item.1365 * * `data`: Token data describing the item to store on chain.1366 **/1367 createItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, data: UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsCreateItemData]>;1368 /**1369 * Create multiple items within a collection.1370 * 1371 * A collection must exist first, see [`create_collection_ex`][`Pallet::create_collection_ex`].1372 * 1373 * # Permissions1374 * 1375 * * Collection owner1376 * * Collection admin1377 * * Anyone if1378 * * Allow List is enabled, and1379 * * Address is added to the allow list, and1380 * * MintPermission is enabled (see [`set_collection_permissions`][`Pallet::set_collection_permissions`])1381 * 1382 * # Arguments1383 * 1384 * * `collection_id`: ID of the collection to which the tokens would belong.1385 * * `owner`: Address of the initial owner of the tokens.1386 * * `items_data`: Vector of data describing each item to be created.1387 **/1388 createMultipleItems: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemsData: Vec<UpDataStructsCreateItemData> | (UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, Vec<UpDataStructsCreateItemData>]>;1389 /**1390 * Create multiple items within a collection with explicitly specified initial parameters.1391 * 1392 * # Permissions1393 * 1394 * * Collection owner1395 * * Collection admin1396 * * Anyone if1397 * * Allow List is enabled, and1398 * * Address is added to allow list, and1399 * * MintPermission is enabled (see [`set_collection_permissions`][`Pallet::set_collection_permissions`])1400 * 1401 * # Arguments1402 * 1403 * * `collection_id`: ID of the collection to which the tokens would belong.1404 * * `data`: Explicit item creation data.1405 **/1406 createMultipleItemsEx: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, data: UpDataStructsCreateItemExData | { NFT: any } | { Fungible: any } | { RefungibleMultipleItems: any } | { RefungibleMultipleOwners: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCreateItemExData]>;1407 /**1408 * Delete specified collection properties.1409 * 1410 * # Permissions1411 * 1412 * * Collection Owner1413 * * Collection Admin1414 * 1415 * # Arguments1416 * 1417 * * `collection_id`: ID of the modified collection.1418 * * `property_keys`: Vector of keys of the properties to be deleted.1419 * Keys support Latin letters, `-`, `_`, and `.` as symbols.1420 **/1421 deleteCollectionProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<Bytes>]>;1422 /**1423 * Delete specified token properties. Currently properties only work with NFTs.1424 * 1425 * # Permissions1426 * 1427 * * Depends on collection's token property permissions and specified property mutability:1428 * * Collection owner1429 * * Collection admin1430 * * Token owner1431 * 1432 * # Arguments1433 * 1434 * * `collection_id`: ID of the collection to which the token belongs.1435 * * `token_id`: ID of the modified token.1436 * * `property_keys`: Vector of keys of the properties to be deleted.1437 * Keys support Latin letters, `-`, `_`, and `.` as symbols.1438 **/1439 deleteTokenProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, propertyKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, u32, Vec<Bytes>]>;1440 /**1441 * Destroy a collection if no tokens exist within.1442 * 1443 * # Permissions1444 * 1445 * * Collection owner1446 * 1447 * # Arguments1448 * 1449 * * `collection_id`: Collection to destroy.1450 **/1451 destroyCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1452 /**1453 * Repairs a collection if the data was somehow corrupted.1454 * 1455 * # Arguments1456 * 1457 * * `collection_id`: ID of the collection to repair.1458 **/1459 forceRepairCollection: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1460 /**1461 * Repairs a token if the data was somehow corrupted.1462 * 1463 * # Arguments1464 * 1465 * * `collection_id`: ID of the collection the item belongs to.1466 * * `item_id`: ID of the item.1467 **/1468 forceRepairItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;1469 /**1470 * Remove admin of a collection.1471 * 1472 * An admin address can remove itself. List of admins may become empty,1473 * in which case only Collection Owner will be able to add an Admin.1474 * 1475 * # Permissions1476 * 1477 * * Collection owner1478 * * Collection admin1479 * 1480 * # Arguments1481 * 1482 * * `collection_id`: ID of the collection to remove the admin for.1483 * * `account_id`: Address of the admin to remove.1484 **/1485 removeCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, accountId: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1486 /**1487 * Remove a collection's a sponsor, making everyone pay for their own transactions.1488 * 1489 * # Permissions1490 * 1491 * * Collection owner1492 * 1493 * # Arguments1494 * 1495 * * `collection_id`: ID of the collection with the sponsor to remove.1496 **/1497 removeCollectionSponsor: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1498 /**1499 * Remove an address from allow list.1500 * 1501 * # Permissions1502 * 1503 * * Collection owner1504 * * Collection admin1505 * 1506 * # Arguments1507 * 1508 * * `collection_id`: ID of the modified collection.1509 * * `address`: ID of the address to be removed from the allowlist.1510 **/1511 removeFromAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;1512 /**1513 * Re-partition a refungible token, while owning all of its parts/pieces.1514 * 1515 * # Permissions1516 * 1517 * * Token owner (must own every part)1518 * 1519 * # Arguments1520 * 1521 * * `collection_id`: ID of the collection the RFT belongs to.1522 * * `token_id`: ID of the RFT.1523 * * `amount`: New number of parts/pieces into which the token shall be partitioned.1524 **/1525 repartition: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;1526 /**1527 * Sets or unsets the approval of a given operator.1528 * 1529 * The `operator` is allowed to transfer all tokens of the `owner` on their behalf.1530 * 1531 * # Arguments1532 * 1533 * * `owner`: Token owner1534 * * `operator`: Operator1535 * * `approve`: Should operator status be granted or revoked?1536 **/1537 setAllowanceForAll: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, operator: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, bool]>;1538 /**1539 * Set specific limits of a collection. Empty, or None fields mean chain default.1540 * 1541 * # Permissions1542 * 1543 * * Collection owner1544 * * Collection admin1545 * 1546 * # Arguments1547 * 1548 * * `collection_id`: ID of the modified collection.1549 * * `new_limit`: New limits of the collection. Fields that are not set (None)1550 * will not overwrite the old ones.1551 **/1552 setCollectionLimits: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newLimit: UpDataStructsCollectionLimits | { accountTokenOwnershipLimit?: any; sponsoredDataSize?: any; sponsoredDataRateLimit?: any; tokenLimit?: any; sponsorTransferTimeout?: any; sponsorApproveTimeout?: any; ownerCanTransfer?: any; ownerCanDestroy?: any; transfersEnabled?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionLimits]>;1553 /**1554 * Set specific permissions of a collection. Empty, or None fields mean chain default.1555 * 1556 * # Permissions1557 * 1558 * * Collection owner1559 * * Collection admin1560 * 1561 * # Arguments1562 * 1563 * * `collection_id`: ID of the modified collection.1564 * * `new_permission`: New permissions of the collection. Fields that are not set (None)1565 * will not overwrite the old ones.1566 **/1567 setCollectionPermissions: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newPermission: UpDataStructsCollectionPermissions | { access?: any; mintMode?: any; nesting?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionPermissions]>;1568 /**1569 * Add or change collection properties.1570 * 1571 * # Permissions1572 * 1573 * * Collection owner1574 * * Collection admin1575 * 1576 * # Arguments1577 * 1578 * * `collection_id`: ID of the modified collection.1579 * * `properties`: Vector of key-value pairs stored as the collection's metadata.1580 * Keys support Latin letters, `-`, `_`, and `.` as symbols.1581 **/1582 setCollectionProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, properties: Vec<UpDataStructsProperty> | (UpDataStructsProperty | { key?: any; value?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<UpDataStructsProperty>]>;1583 /**1584 * Set (invite) a new collection sponsor.1585 * 1586 * If successful, confirmation from the sponsor-to-be will be pending.1587 * 1588 * # Permissions1589 * 1590 * * Collection owner1591 * * Collection admin1592 * 1593 * # Arguments1594 * 1595 * * `collection_id`: ID of the modified collection.1596 * * `new_sponsor`: ID of the account of the sponsor-to-be.1597 **/1598 setCollectionSponsor: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newSponsor: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32]>;1599 /**1600 * Add or change token properties according to collection's permissions.1601 * Currently properties only work with NFTs.1602 * 1603 * # Permissions1604 * 1605 * * Depends on collection's token property permissions and specified property mutability:1606 * * Collection owner1607 * * Collection admin1608 * * Token owner1609 * 1610 * See [`set_token_property_permissions`][`Pallet::set_token_property_permissions`].1611 * 1612 * # Arguments1613 * 1614 * * `collection_id: ID of the collection to which the token belongs.1615 * * `token_id`: ID of the modified token.1616 * * `properties`: Vector of key-value pairs stored as the token's metadata.1617 * Keys support Latin letters, `-`, `_`, and `.` as symbols.1618 **/1619 setTokenProperties: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, properties: Vec<UpDataStructsProperty> | (UpDataStructsProperty | { key?: any; value?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, u32, Vec<UpDataStructsProperty>]>;1620 /**1621 * Add or change token property permissions of a collection.1622 * 1623 * Without a permission for a particular key, a property with that key1624 * cannot be created in a token.1625 * 1626 * # Permissions1627 * 1628 * * Collection owner1629 * * Collection admin1630 * 1631 * # Arguments1632 * 1633 * * `collection_id`: ID of the modified collection.1634 * * `property_permissions`: Vector of permissions for property keys.1635 * Keys support Latin letters, `-`, `_`, and `.` as symbols.1636 **/1637 setTokenPropertyPermissions: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, propertyPermissions: Vec<UpDataStructsPropertyKeyPermission> | (UpDataStructsPropertyKeyPermission | { key?: any; permission?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<UpDataStructsPropertyKeyPermission>]>;1638 /**1639 * Completely allow or disallow transfers for a particular collection.1640 * 1641 * # Permissions1642 * 1643 * * Collection owner1644 * 1645 * # Arguments1646 * 1647 * * `collection_id`: ID of the collection.1648 * * `value`: New value of the flag, are transfers allowed?1649 **/1650 setTransfersEnabledFlag: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, value: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, bool]>;1651 /**1652 * Change ownership of the token.1653 * 1654 * # Permissions1655 * 1656 * * Collection owner1657 * * Collection admin1658 * * Current token owner1659 * 1660 * # Arguments1661 * 1662 * * `recipient`: Address of token recipient.1663 * * `collection_id`: ID of the collection the item belongs to.1664 * * `item_id`: ID of the item.1665 * * Non-Fungible Mode: Required.1666 * * Fungible Mode: Ignored.1667 * * Re-Fungible Mode: Required.1668 * 1669 * * `value`: Amount to transfer.1670 * * Non-Fungible Mode: An NFT is indivisible, there is always 1 corresponding to an ID.1671 * * Fungible Mode: The desired number of pieces to transfer.1672 * * Re-Fungible Mode: The desired number of pieces to transfer.1673 **/1674 transfer: AugmentedSubmittable<(recipient: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;1675 /**1676 * Change ownership of an item on behalf of the owner as a non-owner account.1677 * 1678 * See the [`approve`][`Pallet::approve`] method for additional information.1679 * 1680 * After this method executes, one approval is removed from the total so that1681 * the approved address will not be able to transfer this item again from this owner.1682 * 1683 * # Permissions1684 * 1685 * * Collection owner1686 * * Collection admin1687 * * Current item owner1688 * * Address approved by current item owner1689 * 1690 * # Arguments1691 * 1692 * * `from`: Address that currently owns the token.1693 * * `recipient`: Address of the new token-owner-to-be.1694 * * `collection_id`: ID of the collection the item.1695 * * `item_id`: ID of the item to be transferred.1696 * * `value`: Amount to transfer.1697 * * Non-Fungible Mode: An NFT is indivisible, there is always 1 corresponding to an ID.1698 * * Fungible Mode: The desired number of pieces to transfer.1699 * * Re-Fungible Mode: The desired number of pieces to transfer.1700 **/1701 transferFrom: AugmentedSubmittable<(from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, recipient: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;1702 /**1703 * Generic tx1704 **/1705 [key: string]: SubmittableExtrinsicFunction<ApiType>;1706 };1707 vesting: {1708 claim: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1709 claimFor: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;1710 updateVestingSchedules: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, vestingSchedules: Vec<OrmlVestingVestingSchedule> | (OrmlVestingVestingSchedule | { start?: any; period?: any; periodCount?: any; perPeriod?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [MultiAddress, Vec<OrmlVestingVestingSchedule>]>;1711 vestedTransfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, schedule: OrmlVestingVestingSchedule | { start?: any; period?: any; periodCount?: any; perPeriod?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, OrmlVestingVestingSchedule]>;1712 /**1713 * Generic tx1714 **/1715 [key: string]: SubmittableExtrinsicFunction<ApiType>;1716 };1717 xcmpQueue: {1718 /**1719 * Resumes all XCM executions for the XCMP queue.1720 * 1721 * Note that this function doesn't change the status of the in/out bound channels.1722 * 1723 * - `origin`: Must pass `ControllerOrigin`.1724 **/1725 resumeXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1726 /**1727 * Services a single overweight XCM.1728 * 1729 * - `origin`: Must pass `ExecuteOverweightOrigin`.1730 * - `index`: The index of the overweight XCM to service1731 * - `weight_limit`: The amount of weight that XCM execution may take.1732 * 1733 * Errors:1734 * - `BadOverweightIndex`: XCM under `index` is not found in the `Overweight` storage map.1735 * - `BadXcm`: XCM under `index` cannot be properly decoded into a valid XCM format.1736 * - `WeightOverLimit`: XCM execution may use greater `weight_limit`.1737 * 1738 * Events:1739 * - `OverweightServiced`: On success.1740 **/1741 serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;1742 /**1743 * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin.1744 * 1745 * - `origin`: Must pass `ControllerOrigin`.1746 **/1747 suspendXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;1748 /**1749 * Overwrites the number of pages of messages which must be in the queue after which we drop any further1750 * messages from the channel.1751 * 1752 * - `origin`: Must pass `Root`.1753 * - `new`: Desired value for `QueueConfigData.drop_threshold`1754 **/1755 updateDropThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1756 /**1757 * Overwrites the number of pages of messages which the queue must be reduced to before it signals that1758 * message sending may recommence after it has been suspended.1759 * 1760 * - `origin`: Must pass `Root`.1761 * - `new`: Desired value for `QueueConfigData.resume_threshold`1762 **/1763 updateResumeThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1764 /**1765 * Overwrites the number of pages of messages which must be in the queue for the other side to be told to1766 * suspend their sending.1767 * 1768 * - `origin`: Must pass `Root`.1769 * - `new`: Desired value for `QueueConfigData.suspend_value`1770 **/1771 updateSuspendThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;1772 /**1773 * Overwrites the amount of remaining weight under which we stop processing messages.1774 * 1775 * - `origin`: Must pass `Root`.1776 * - `new`: Desired value for `QueueConfigData.threshold_weight`1777 **/1778 updateThresholdWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;1779 /**1780 * Overwrites the speed to which the available weight approaches the maximum weight.1781 * A lower number results in a faster progression. A value of 1 makes the entire weight available initially.1782 * 1783 * - `origin`: Must pass `Root`.1784 * - `new`: Desired value for `QueueConfigData.weight_restrict_decay`.1785 **/1786 updateWeightRestrictDecay: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;1787 /**1788 * Overwrite the maximum amount of weight any individual message may consume.1789 * Messages above this weight go into the overweight queue and may only be serviced explicitly.1790 * 1791 * - `origin`: Must pass `Root`.1792 * - `new`: Desired value for `QueueConfigData.xcmp_max_individual_weight`.1793 **/1794 updateXcmpMaxIndividualWeight: AugmentedSubmittable<(updated: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;1795 /**1796 * Generic tx1797 **/1798 [key: string]: SubmittableExtrinsicFunction<ApiType>;1799 };1800 xTokens: {1801 /**1802 * Transfer native currencies.1803 * 1804 * `dest_weight_limit` is the weight for XCM execution on the dest1805 * chain, and it would be charged from the transferred assets. If set1806 * below requirements, the execution may fail and assets wouldn't be1807 * received.1808 * 1809 * It's a no-op if any error on local XCM execution or message sending.1810 * Note sending assets out per se doesn't guarantee they would be1811 * received. Receiving depends on if the XCM message could be delivered1812 * by the network, and if the receiving chain would handle1813 * messages correctly.1814 **/1815 transfer: AugmentedSubmittable<(currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, destWeightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletForeignAssetsAssetIds, u128, XcmVersionedMultiLocation, XcmV2WeightLimit]>;1816 /**1817 * Transfer `MultiAsset`.1818 * 1819 * `dest_weight_limit` is the weight for XCM execution on the dest1820 * chain, and it would be charged from the transferred assets. If set1821 * below requirements, the execution may fail and assets wouldn't be1822 * received.1823 * 1824 * It's a no-op if any error on local XCM execution or message sending.1825 * Note sending assets out per se doesn't guarantee they would be1826 * received. Receiving depends on if the XCM message could be delivered1827 * by the network, and if the receiving chain would handle1828 * messages correctly.1829 **/1830 transferMultiasset: AugmentedSubmittable<(asset: XcmVersionedMultiAsset | { V0: any } | { V1: any } | string | Uint8Array, dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, destWeightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiAsset, XcmVersionedMultiLocation, XcmV2WeightLimit]>;1831 /**1832 * Transfer several `MultiAsset` specifying the item to be used as fee1833 * 1834 * `dest_weight_limit` is the weight for XCM execution on the dest1835 * chain, and it would be charged from the transferred assets. If set1836 * below requirements, the execution may fail and assets wouldn't be1837 * received.1838 * 1839 * `fee_item` is index of the MultiAssets that we want to use for1840 * payment1841 * 1842 * It's a no-op if any error on local XCM execution or message sending.1843 * Note sending assets out per se doesn't guarantee they would be1844 * received. Receiving depends on if the XCM message could be delivered1845 * by the network, and if the receiving chain would handle1846 * messages correctly.1847 **/1848 transferMultiassets: AugmentedSubmittable<(assets: XcmVersionedMultiAssets | { V0: any } | { V1: any } | string | Uint8Array, feeItem: u32 | AnyNumber | Uint8Array, dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, destWeightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiAssets, u32, XcmVersionedMultiLocation, XcmV2WeightLimit]>;1849 /**1850 * Transfer `MultiAsset` specifying the fee and amount as separate.1851 * 1852 * `dest_weight_limit` is the weight for XCM execution on the dest1853 * chain, and it would be charged from the transferred assets. If set1854 * below requirements, the execution may fail and assets wouldn't be1855 * received.1856 * 1857 * `fee` is the multiasset to be spent to pay for execution in1858 * destination chain. Both fee and amount will be subtracted form the1859 * callers balance For now we only accept fee and asset having the same1860 * `MultiLocation` id.1861 * 1862 * If `fee` is not high enough to cover for the execution costs in the1863 * destination chain, then the assets will be trapped in the1864 * destination chain1865 * 1866 * It's a no-op if any error on local XCM execution or message sending.1867 * Note sending assets out per se doesn't guarantee they would be1868 * received. Receiving depends on if the XCM message could be delivered1869 * by the network, and if the receiving chain would handle1870 * messages correctly.1871 **/1872 transferMultiassetWithFee: AugmentedSubmittable<(asset: XcmVersionedMultiAsset | { V0: any } | { V1: any } | string | Uint8Array, fee: XcmVersionedMultiAsset | { V0: any } | { V1: any } | string | Uint8Array, dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, destWeightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiAsset, XcmVersionedMultiAsset, XcmVersionedMultiLocation, XcmV2WeightLimit]>;1873 /**1874 * Transfer several currencies specifying the item to be used as fee1875 * 1876 * `dest_weight_limit` is the weight for XCM execution on the dest1877 * chain, and it would be charged from the transferred assets. If set1878 * below requirements, the execution may fail and assets wouldn't be1879 * received.1880 * 1881 * `fee_item` is index of the currencies tuple that we want to use for1882 * payment1883 * 1884 * It's a no-op if any error on local XCM execution or message sending.1885 * Note sending assets out per se doesn't guarantee they would be1886 * received. Receiving depends on if the XCM message could be delivered1887 * by the network, and if the receiving chain would handle1888 * messages correctly.1889 **/1890 transferMulticurrencies: AugmentedSubmittable<(currencies: Vec<ITuple<[PalletForeignAssetsAssetIds, u128]>> | ([PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, u128 | AnyNumber | Uint8Array])[], feeItem: u32 | AnyNumber | Uint8Array, dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, destWeightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[PalletForeignAssetsAssetIds, u128]>>, u32, XcmVersionedMultiLocation, XcmV2WeightLimit]>;1891 /**1892 * Transfer native currencies specifying the fee and amount as1893 * separate.1894 * 1895 * `dest_weight_limit` is the weight for XCM execution on the dest1896 * chain, and it would be charged from the transferred assets. If set1897 * below requirements, the execution may fail and assets wouldn't be1898 * received.1899 * 1900 * `fee` is the amount to be spent to pay for execution in destination1901 * chain. Both fee and amount will be subtracted form the callers1902 * balance.1903 * 1904 * If `fee` is not high enough to cover for the execution costs in the1905 * destination chain, then the assets will be trapped in the1906 * destination chain1907 * 1908 * It's a no-op if any error on local XCM execution or message sending.1909 * Note sending assets out per se doesn't guarantee they would be1910 * received. Receiving depends on if the XCM message could be delivered1911 * by the network, and if the receiving chain would handle1912 * messages correctly.1913 **/1914 transferWithFee: AugmentedSubmittable<(currencyId: PalletForeignAssetsAssetIds | { ForeignAssetId: any } | { NativeAssetId: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array, fee: u128 | AnyNumber | Uint8Array, dest: XcmVersionedMultiLocation | { V0: any } | { V1: any } | string | Uint8Array, destWeightLimit: XcmV2WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletForeignAssetsAssetIds, u128, u128, XcmVersionedMultiLocation, XcmV2WeightLimit]>;1915 /**1916 * Generic tx1917 **/1918 [key: string]: SubmittableExtrinsicFunction<ApiType>;1919 };1920 } // AugmentedSubmittables1921} // declare moduletests/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.tsdiffbeforeafterboth--- a/tests/src/interfaces/types-lookup.ts
+++ b/tests/src/interfaces/types-lookup.ts
@@ -5,9 +5,10 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/lookup';
-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 { Data } from '@polkadot/types';
+import 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';
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';
declare module '@polkadot/types/lookup' {
@@ -130,7 +131,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;
@@ -157,8 +158,8 @@
readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported';
}
- /** @name SpRuntimeArithmeticError (27) */
- interface SpRuntimeArithmeticError extends Enum {
+ /** @name SpArithmeticArithmeticError (27) */
+ interface SpArithmeticArithmeticError extends Enum {
readonly isUnderflow: boolean;
readonly isOverflow: boolean;
readonly isDivisionByZero: boolean;
@@ -196,7 +197,47 @@
readonly type: 'ValidationFunctionStored' | 'ValidationFunctionApplied' | 'ValidationFunctionDiscarded' | 'UpgradeAuthorized' | 'DownwardMessagesReceived' | 'DownwardMessagesProcessed';
}
- /** @name PalletBalancesEvent (30) */
+ /** @name PalletCollatorSelectionEvent (30) */
+ 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 PalletSessionEvent (31) */
+ interface PalletSessionEvent extends Enum {
+ readonly isNewSession: boolean;
+ readonly asNewSession: {
+ readonly sessionIndex: u32;
+ } & Struct;
+ readonly type: 'NewSession';
+ }
+
+ /** @name PalletBalancesEvent (32) */
interface PalletBalancesEvent extends Enum {
readonly isEndowed: boolean;
readonly asEndowed: {
@@ -255,14 +296,14 @@
readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'BalanceSet' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'Deposit' | 'Withdraw' | 'Slashed';
}
- /** @name FrameSupportTokensMiscBalanceStatus (31) */
+ /** @name FrameSupportTokensMiscBalanceStatus (33) */
interface FrameSupportTokensMiscBalanceStatus extends Enum {
readonly isFree: boolean;
readonly isReserved: boolean;
readonly type: 'Free' | 'Reserved';
}
- /** @name PalletTransactionPaymentEvent (32) */
+ /** @name PalletTransactionPaymentEvent (34) */
interface PalletTransactionPaymentEvent extends Enum {
readonly isTransactionFeePaid: boolean;
readonly asTransactionFeePaid: {
@@ -273,7 +314,7 @@
readonly type: 'TransactionFeePaid';
}
- /** @name PalletTreasuryEvent (33) */
+ /** @name PalletTreasuryEvent (35) */
interface PalletTreasuryEvent extends Enum {
readonly isProposed: boolean;
readonly asProposed: {
@@ -312,10 +353,15 @@
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 PalletSudoEvent (34) */
+ /** @name PalletSudoEvent (36) */
interface PalletSudoEvent extends Enum {
readonly isSudid: boolean;
readonly asSudid: {
@@ -332,7 +378,7 @@
readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';
}
- /** @name OrmlVestingModuleEvent (38) */
+ /** @name OrmlVestingModuleEvent (40) */
interface OrmlVestingModuleEvent extends Enum {
readonly isVestingScheduleAdded: boolean;
readonly asVestingScheduleAdded: {
@@ -352,7 +398,7 @@
readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated';
}
- /** @name OrmlVestingVestingSchedule (39) */
+ /** @name OrmlVestingVestingSchedule (41) */
interface OrmlVestingVestingSchedule extends Struct {
readonly start: u32;
readonly period: u32;
@@ -360,7 +406,7 @@
readonly perPeriod: Compact<u128>;
}
- /** @name OrmlXtokensModuleEvent (41) */
+ /** @name OrmlXtokensModuleEvent (43) */
interface OrmlXtokensModuleEvent extends Enum {
readonly isTransferredMultiAssets: boolean;
readonly asTransferredMultiAssets: {
@@ -372,16 +418,16 @@
readonly type: 'TransferredMultiAssets';
}
- /** @name XcmV1MultiassetMultiAssets (42) */
+ /** @name XcmV1MultiassetMultiAssets (44) */
interface XcmV1MultiassetMultiAssets extends Vec<XcmV1MultiAsset> {}
- /** @name XcmV1MultiAsset (44) */
+ /** @name XcmV1MultiAsset (46) */
interface XcmV1MultiAsset extends Struct {
readonly id: XcmV1MultiassetAssetId;
readonly fun: XcmV1MultiassetFungibility;
}
- /** @name XcmV1MultiassetAssetId (45) */
+ /** @name XcmV1MultiassetAssetId (47) */
interface XcmV1MultiassetAssetId extends Enum {
readonly isConcrete: boolean;
readonly asConcrete: XcmV1MultiLocation;
@@ -390,13 +436,13 @@
readonly type: 'Concrete' | 'Abstract';
}
- /** @name XcmV1MultiLocation (46) */
+ /** @name XcmV1MultiLocation (48) */
interface XcmV1MultiLocation extends Struct {
readonly parents: u8;
readonly interior: XcmV1MultilocationJunctions;
}
- /** @name XcmV1MultilocationJunctions (47) */
+ /** @name XcmV1MultilocationJunctions (49) */
interface XcmV1MultilocationJunctions extends Enum {
readonly isHere: boolean;
readonly isX1: boolean;
@@ -418,7 +464,7 @@
readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
}
- /** @name XcmV1Junction (48) */
+ /** @name XcmV1Junction (50) */
interface XcmV1Junction extends Enum {
readonly isParachain: boolean;
readonly asParachain: Compact<u32>;
@@ -452,7 +498,7 @@
readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
}
- /** @name XcmV0JunctionNetworkId (50) */
+ /** @name XcmV0JunctionNetworkId (52) */
interface XcmV0JunctionNetworkId extends Enum {
readonly isAny: boolean;
readonly isNamed: boolean;
@@ -462,7 +508,7 @@
readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';
}
- /** @name XcmV0JunctionBodyId (53) */
+ /** @name XcmV0JunctionBodyId (55) */
interface XcmV0JunctionBodyId extends Enum {
readonly isUnit: boolean;
readonly isNamed: boolean;
@@ -473,10 +519,13 @@
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 (54) */
+ /** @name XcmV0JunctionBodyPart (56) */
interface XcmV0JunctionBodyPart extends Enum {
readonly isVoice: boolean;
readonly isMembers: boolean;
@@ -501,7 +550,7 @@
readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';
}
- /** @name XcmV1MultiassetFungibility (55) */
+ /** @name XcmV1MultiassetFungibility (57) */
interface XcmV1MultiassetFungibility extends Enum {
readonly isFungible: boolean;
readonly asFungible: Compact<u128>;
@@ -510,7 +559,7 @@
readonly type: 'Fungible' | 'NonFungible';
}
- /** @name XcmV1MultiassetAssetInstance (56) */
+ /** @name XcmV1MultiassetAssetInstance (58) */
interface XcmV1MultiassetAssetInstance extends Enum {
readonly isUndefined: boolean;
readonly isIndex: boolean;
@@ -528,7 +577,7 @@
readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';
}
- /** @name OrmlTokensModuleEvent (59) */
+ /** @name OrmlTokensModuleEvent (61) */
interface OrmlTokensModuleEvent extends Enum {
readonly isEndowed: boolean;
readonly asEndowed: {
@@ -616,7 +665,7 @@
readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'BalanceSet' | 'TotalIssuanceSet' | 'Withdrawn' | 'Slashed' | 'Deposited' | 'LockSet' | 'LockRemoved';
}
- /** @name PalletForeignAssetsAssetIds (60) */
+ /** @name PalletForeignAssetsAssetIds (62) */
interface PalletForeignAssetsAssetIds extends Enum {
readonly isForeignAssetId: boolean;
readonly asForeignAssetId: u32;
@@ -625,14 +674,99 @@
readonly type: 'ForeignAssetId' | 'NativeAssetId';
}
- /** @name PalletForeignAssetsNativeCurrency (61) */
+ /** @name PalletForeignAssetsNativeCurrency (63) */
interface PalletForeignAssetsNativeCurrency extends Enum {
readonly isHere: boolean;
readonly isParent: boolean;
readonly type: 'Here' | 'Parent';
}
- /** @name CumulusPalletXcmpQueueEvent (62) */
+ /** @name PalletIdentityEvent (64) */
+ 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 PalletPreimageEvent (65) */
+ interface PalletPreimageEvent extends Enum {
+ readonly isNoted: boolean;
+ readonly asNoted: {
+ readonly hash_: H256;
+ } & Struct;
+ readonly isRequested: boolean;
+ readonly asRequested: {
+ readonly hash_: H256;
+ } & Struct;
+ readonly isCleared: boolean;
+ readonly asCleared: {
+ readonly hash_: H256;
+ } & Struct;
+ readonly type: 'Noted' | 'Requested' | 'Cleared';
+ }
+
+ /** @name CumulusPalletXcmpQueueEvent (66) */
interface CumulusPalletXcmpQueueEvent extends Enum {
readonly isSuccess: boolean;
readonly asSuccess: {
@@ -676,7 +810,7 @@
readonly type: 'Success' | 'Fail' | 'BadVersion' | 'BadFormat' | 'UpwardMessageSent' | 'XcmpMessageSent' | 'OverweightEnqueued' | 'OverweightServiced';
}
- /** @name XcmV2TraitsError (64) */
+ /** @name XcmV2TraitsError (68) */
interface XcmV2TraitsError extends Enum {
readonly isOverflow: boolean;
readonly isUnimplemented: boolean;
@@ -709,7 +843,7 @@
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';
}
- /** @name PalletXcmEvent (66) */
+ /** @name PalletXcmEvent (70) */
interface PalletXcmEvent extends Enum {
readonly isAttempted: boolean;
readonly asAttempted: XcmV2TraitsOutcome;
@@ -748,7 +882,7 @@
readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail' | 'AssetsClaimed';
}
- /** @name XcmV2TraitsOutcome (67) */
+ /** @name XcmV2TraitsOutcome (71) */
interface XcmV2TraitsOutcome extends Enum {
readonly isComplete: boolean;
readonly asComplete: u64;
@@ -759,10 +893,10 @@
readonly type: 'Complete' | 'Incomplete' | 'Error';
}
- /** @name XcmV2Xcm (68) */
+ /** @name XcmV2Xcm (72) */
interface XcmV2Xcm extends Vec<XcmV2Instruction> {}
- /** @name XcmV2Instruction (70) */
+ /** @name XcmV2Instruction (74) */
interface XcmV2Instruction extends Enum {
readonly isWithdrawAsset: boolean;
readonly asWithdrawAsset: XcmV1MultiassetMultiAssets;
@@ -882,7 +1016,7 @@
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';
}
- /** @name XcmV2Response (71) */
+ /** @name XcmV2Response (75) */
interface XcmV2Response extends Enum {
readonly isNull: boolean;
readonly isAssets: boolean;
@@ -894,7 +1028,7 @@
readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';
}
- /** @name XcmV0OriginKind (74) */
+ /** @name XcmV0OriginKind (78) */
interface XcmV0OriginKind extends Enum {
readonly isNative: boolean;
readonly isSovereignAccount: boolean;
@@ -903,12 +1037,12 @@
readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
}
- /** @name XcmDoubleEncoded (75) */
+ /** @name XcmDoubleEncoded (79) */
interface XcmDoubleEncoded extends Struct {
readonly encoded: Bytes;
}
- /** @name XcmV1MultiassetMultiAssetFilter (76) */
+ /** @name XcmV1MultiassetMultiAssetFilter (80) */
interface XcmV1MultiassetMultiAssetFilter extends Enum {
readonly isDefinite: boolean;
readonly asDefinite: XcmV1MultiassetMultiAssets;
@@ -917,7 +1051,7 @@
readonly type: 'Definite' | 'Wild';
}
- /** @name XcmV1MultiassetWildMultiAsset (77) */
+ /** @name XcmV1MultiassetWildMultiAsset (81) */
interface XcmV1MultiassetWildMultiAsset extends Enum {
readonly isAll: boolean;
readonly isAllOf: boolean;
@@ -928,14 +1062,14 @@
readonly type: 'All' | 'AllOf';
}
- /** @name XcmV1MultiassetWildFungibility (78) */
+ /** @name XcmV1MultiassetWildFungibility (82) */
interface XcmV1MultiassetWildFungibility extends Enum {
readonly isFungible: boolean;
readonly isNonFungible: boolean;
readonly type: 'Fungible' | 'NonFungible';
}
- /** @name XcmV2WeightLimit (79) */
+ /** @name XcmV2WeightLimit (83) */
interface XcmV2WeightLimit extends Enum {
readonly isUnlimited: boolean;
readonly isLimited: boolean;
@@ -943,7 +1077,7 @@
readonly type: 'Unlimited' | 'Limited';
}
- /** @name XcmVersionedMultiAssets (81) */
+ /** @name XcmVersionedMultiAssets (85) */
interface XcmVersionedMultiAssets extends Enum {
readonly isV0: boolean;
readonly asV0: Vec<XcmV0MultiAsset>;
@@ -952,7 +1086,7 @@
readonly type: 'V0' | 'V1';
}
- /** @name XcmV0MultiAsset (83) */
+ /** @name XcmV0MultiAsset (87) */
interface XcmV0MultiAsset extends Enum {
readonly isNone: boolean;
readonly isAll: boolean;
@@ -997,7 +1131,7 @@
readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';
}
- /** @name XcmV0MultiLocation (84) */
+ /** @name XcmV0MultiLocation (88) */
interface XcmV0MultiLocation extends Enum {
readonly isNull: boolean;
readonly isX1: boolean;
@@ -1019,7 +1153,7 @@
readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
}
- /** @name XcmV0Junction (85) */
+ /** @name XcmV0Junction (89) */
interface XcmV0Junction extends Enum {
readonly isParent: boolean;
readonly isParachain: boolean;
@@ -1054,7 +1188,7 @@
readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
}
- /** @name XcmVersionedMultiLocation (86) */
+ /** @name XcmVersionedMultiLocation (90) */
interface XcmVersionedMultiLocation extends Enum {
readonly isV0: boolean;
readonly asV0: XcmV0MultiLocation;
@@ -1063,7 +1197,7 @@
readonly type: 'V0' | 'V1';
}
- /** @name CumulusPalletXcmEvent (87) */
+ /** @name CumulusPalletXcmEvent (91) */
interface CumulusPalletXcmEvent extends Enum {
readonly isInvalidFormat: boolean;
readonly asInvalidFormat: U8aFixed;
@@ -1074,7 +1208,7 @@
readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward';
}
- /** @name CumulusPalletDmpQueueEvent (88) */
+ /** @name CumulusPalletDmpQueueEvent (92) */
interface CumulusPalletDmpQueueEvent extends Enum {
readonly isInvalidFormat: boolean;
readonly asInvalidFormat: {
@@ -1109,7 +1243,7 @@
readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedDownward' | 'WeightExhausted' | 'OverweightEnqueued' | 'OverweightServiced';
}
- /** @name PalletConfigurationEvent (89) */
+ /** @name PalletConfigurationEvent (93) */
interface PalletConfigurationEvent extends Enum {
readonly isNewDesiredCollators: boolean;
readonly asNewDesiredCollators: {
@@ -1126,7 +1260,7 @@
readonly type: 'NewDesiredCollators' | 'NewCollatorLicenseBond' | 'NewCollatorKickThreshold';
}
- /** @name PalletCommonEvent (92) */
+ /** @name PalletCommonEvent (96) */
interface PalletCommonEvent extends Enum {
readonly isCollectionCreated: boolean;
readonly asCollectionCreated: ITuple<[u32, u8, AccountId32]>;
@@ -1175,7 +1309,7 @@
readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved' | 'ApprovedForAll' | 'CollectionPropertySet' | 'CollectionPropertyDeleted' | 'TokenPropertySet' | 'TokenPropertyDeleted' | 'PropertyPermissionSet' | 'AllowListAddressAdded' | 'AllowListAddressRemoved' | 'CollectionAdminAdded' | 'CollectionAdminRemoved' | 'CollectionLimitSet' | 'CollectionOwnerChanged' | 'CollectionPermissionSet' | 'CollectionSponsorSet' | 'SponsorshipConfirmed' | 'CollectionSponsorRemoved';
}
- /** @name PalletEvmAccountBasicCrossAccountIdRepr (95) */
+ /** @name PalletEvmAccountBasicCrossAccountIdRepr (99) */
interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {
readonly isSubstrate: boolean;
readonly asSubstrate: AccountId32;
@@ -1184,128 +1318,14 @@
readonly type: 'Substrate' | 'Ethereum';
}
- /** @name PalletStructureEvent (99) */
+ /** @name PalletStructureEvent (103) */
interface PalletStructureEvent extends Enum {
readonly isExecuted: boolean;
readonly asExecuted: Result<Null, SpRuntimeDispatchError>;
readonly type: 'Executed';
}
- /** @name PalletRmrkCoreEvent (100) */
- interface PalletRmrkCoreEvent extends Enum {
- readonly isCollectionCreated: boolean;
- readonly asCollectionCreated: {
- readonly issuer: AccountId32;
- readonly collectionId: u32;
- } & Struct;
- readonly isCollectionDestroyed: boolean;
- readonly asCollectionDestroyed: {
- readonly issuer: AccountId32;
- readonly collectionId: u32;
- } & Struct;
- readonly isIssuerChanged: boolean;
- readonly asIssuerChanged: {
- readonly oldIssuer: AccountId32;
- readonly newIssuer: AccountId32;
- readonly collectionId: u32;
- } & Struct;
- readonly isCollectionLocked: boolean;
- readonly asCollectionLocked: {
- readonly issuer: AccountId32;
- readonly collectionId: u32;
- } & Struct;
- readonly isNftMinted: boolean;
- readonly asNftMinted: {
- readonly owner: AccountId32;
- readonly collectionId: u32;
- readonly nftId: 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';
- }
-
- /** @name RmrkTraitsNftAccountIdOrCollectionNftTuple (101) */
- interface RmrkTraitsNftAccountIdOrCollectionNftTuple extends Enum {
- readonly isAccountId: boolean;
- readonly asAccountId: AccountId32;
- readonly isCollectionAndNftTuple: boolean;
- readonly asCollectionAndNftTuple: ITuple<[u32, u32]>;
- readonly type: 'AccountId' | 'CollectionAndNftTuple';
- }
-
- /** @name PalletRmrkEquipEvent (104) */
- interface PalletRmrkEquipEvent extends Enum {
- readonly isBaseCreated: boolean;
- readonly asBaseCreated: {
- readonly issuer: AccountId32;
- readonly baseId: u32;
- } & Struct;
- readonly isEquippablesUpdated: boolean;
- readonly asEquippablesUpdated: {
- readonly baseId: u32;
- readonly slotId: u32;
- } & Struct;
- readonly type: 'BaseCreated' | 'EquippablesUpdated';
- }
-
- /** @name PalletAppPromotionEvent (105) */
+ /** @name PalletAppPromotionEvent (104) */
interface PalletAppPromotionEvent extends Enum {
readonly isStakingRecalculation: boolean;
readonly asStakingRecalculation: ITuple<[AccountId32, u128, u128]>;
@@ -1318,7 +1338,7 @@
readonly type: 'StakingRecalculation' | 'Stake' | 'Unstake' | 'SetAdmin';
}
- /** @name PalletForeignAssetsModuleEvent (106) */
+ /** @name PalletForeignAssetsModuleEvent (105) */
interface PalletForeignAssetsModuleEvent extends Enum {
readonly isForeignAssetRegistered: boolean;
readonly asForeignAssetRegistered: {
@@ -1345,7 +1365,7 @@
readonly type: 'ForeignAssetRegistered' | 'ForeignAssetUpdated' | 'AssetRegistered' | 'AssetUpdated';
}
- /** @name PalletForeignAssetsModuleAssetMetadata (107) */
+ /** @name PalletForeignAssetsModuleAssetMetadata (106) */
interface PalletForeignAssetsModuleAssetMetadata extends Struct {
readonly name: Bytes;
readonly symbol: Bytes;
@@ -1353,7 +1373,7 @@
readonly minimalBalance: u128;
}
- /** @name PalletEvmEvent (108) */
+ /** @name PalletEvmEvent (107) */
interface PalletEvmEvent extends Enum {
readonly isLog: boolean;
readonly asLog: {
@@ -1378,14 +1398,14 @@
readonly type: 'Log' | 'Created' | 'CreatedFailed' | 'Executed' | 'ExecutedFailed';
}
- /** @name EthereumLog (109) */
+ /** @name EthereumLog (108) */
interface EthereumLog extends Struct {
readonly address: H160;
readonly topics: Vec<H256>;
readonly data: Bytes;
}
- /** @name PalletEthereumEvent (111) */
+ /** @name PalletEthereumEvent (110) */
interface PalletEthereumEvent extends Enum {
readonly isExecuted: boolean;
readonly asExecuted: {
@@ -1397,7 +1417,7 @@
readonly type: 'Executed';
}
- /** @name EvmCoreErrorExitReason (112) */
+ /** @name EvmCoreErrorExitReason (111) */
interface EvmCoreErrorExitReason extends Enum {
readonly isSucceed: boolean;
readonly asSucceed: EvmCoreErrorExitSucceed;
@@ -1410,7 +1430,7 @@
readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';
}
- /** @name EvmCoreErrorExitSucceed (113) */
+ /** @name EvmCoreErrorExitSucceed (112) */
interface EvmCoreErrorExitSucceed extends Enum {
readonly isStopped: boolean;
readonly isReturned: boolean;
@@ -1418,7 +1438,7 @@
readonly type: 'Stopped' | 'Returned' | 'Suicided';
}
- /** @name EvmCoreErrorExitError (114) */
+ /** @name EvmCoreErrorExitError (113) */
interface EvmCoreErrorExitError extends Enum {
readonly isStackUnderflow: boolean;
readonly isStackOverflow: boolean;
@@ -1436,6 +1456,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';
}
@@ -1714,14 +1735,130 @@
readonly type: 'OverlappingUpgrades' | 'ProhibitedByPolkadot' | 'TooBig' | 'ValidationDataNotAvailable' | 'HostConfigurationNotAvailable' | 'NotScheduled' | 'NothingAuthorized' | 'Unauthorized';
}
- /** @name PalletBalancesBalanceLock (172) */
+ /** @name PalletAuthorshipUncleEntryItem (172) */
+ interface PalletAuthorshipUncleEntryItem extends Enum {
+ readonly isInclusionHeight: boolean;
+ readonly asInclusionHeight: u32;
+ readonly isUncle: boolean;
+ readonly asUncle: ITuple<[H256, Option<AccountId32>]>;
+ readonly type: 'InclusionHeight' | 'Uncle';
+ }
+
+ /** @name PalletAuthorshipCall (174) */
+ interface PalletAuthorshipCall extends Enum {
+ readonly isSetUncles: boolean;
+ readonly asSetUncles: {
+ readonly newUncles: Vec<SpRuntimeHeader>;
+ } & Struct;
+ readonly type: 'SetUncles';
+ }
+
+ /** @name SpRuntimeHeader (176) */
+ interface SpRuntimeHeader extends Struct {
+ readonly parentHash: H256;
+ readonly number: Compact<u32>;
+ readonly stateRoot: H256;
+ readonly extrinsicsRoot: H256;
+ readonly digest: SpRuntimeDigest;
+ }
+
+ /** @name SpRuntimeBlakeTwo256 (177) */
+ type SpRuntimeBlakeTwo256 = Null;
+
+ /** @name PalletAuthorshipError (178) */
+ 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 PalletCollatorSelectionCall (181) */
+ 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 (182) */
+ 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 OpalRuntimeRuntimeCommonSessionKeys (185) */
+ interface OpalRuntimeRuntimeCommonSessionKeys extends Struct {
+ readonly aura: SpConsensusAuraSr25519AppSr25519Public;
+ }
+
+ /** @name SpConsensusAuraSr25519AppSr25519Public (186) */
+ interface SpConsensusAuraSr25519AppSr25519Public extends SpCoreSr25519Public {}
+
+ /** @name SpCoreSr25519Public (187) */
+ interface SpCoreSr25519Public extends U8aFixed {}
+
+ /** @name SpCoreCryptoKeyTypeId (190) */
+ interface SpCoreCryptoKeyTypeId extends U8aFixed {}
+
+ /** @name PalletSessionCall (191) */
+ interface PalletSessionCall extends Enum {
+ readonly isSetKeys: boolean;
+ readonly asSetKeys: {
+ readonly keys_: OpalRuntimeRuntimeCommonSessionKeys;
+ readonly proof: Bytes;
+ } & Struct;
+ readonly isPurgeKeys: boolean;
+ readonly type: 'SetKeys' | 'PurgeKeys';
+ }
+
+ /** @name PalletSessionError (192) */
+ 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 PalletBalancesBalanceLock (194) */
interface PalletBalancesBalanceLock extends Struct {
readonly id: U8aFixed;
readonly amount: u128;
readonly reasons: PalletBalancesReasons;
}
- /** @name PalletBalancesReasons (173) */
+ /** @name PalletBalancesReasons (195) */
interface PalletBalancesReasons extends Enum {
readonly isFee: boolean;
readonly isMisc: boolean;
@@ -1729,13 +1866,13 @@
readonly type: 'Fee' | 'Misc' | 'All';
}
- /** @name PalletBalancesReserveData (176) */
+ /** @name PalletBalancesReserveData (198) */
interface PalletBalancesReserveData extends Struct {
readonly id: U8aFixed;
readonly amount: u128;
}
- /** @name PalletBalancesCall (178) */
+ /** @name PalletBalancesCall (200) */
interface PalletBalancesCall extends Enum {
readonly isTransfer: boolean;
readonly asTransfer: {
@@ -1772,7 +1909,7 @@
readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';
}
- /** @name PalletBalancesError (181) */
+ /** @name PalletBalancesError (203) */
interface PalletBalancesError extends Enum {
readonly isVestingBalance: boolean;
readonly isLiquidityRestrictions: boolean;
@@ -1785,7 +1922,7 @@
readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';
}
- /** @name PalletTimestampCall (183) */
+ /** @name PalletTimestampCall (205) */
interface PalletTimestampCall extends Enum {
readonly isSet: boolean;
readonly asSet: {
@@ -1794,14 +1931,14 @@
readonly type: 'Set';
}
- /** @name PalletTransactionPaymentReleases (185) */
+ /** @name PalletTransactionPaymentReleases (207) */
interface PalletTransactionPaymentReleases extends Enum {
readonly isV1Ancient: boolean;
readonly isV2: boolean;
readonly type: 'V1Ancient' | 'V2';
}
- /** @name PalletTreasuryProposal (186) */
+ /** @name PalletTreasuryProposal (208) */
interface PalletTreasuryProposal extends Struct {
readonly proposer: AccountId32;
readonly value: u128;
@@ -1809,7 +1946,7 @@
readonly bond: u128;
}
- /** @name PalletTreasuryCall (189) */
+ /** @name PalletTreasuryCall (210) */
interface PalletTreasuryCall extends Enum {
readonly isProposeSpend: boolean;
readonly asProposeSpend: {
@@ -1836,10 +1973,10 @@
readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'Spend' | 'RemoveApproval';
}
- /** @name FrameSupportPalletId (191) */
+ /** @name FrameSupportPalletId (212) */
interface FrameSupportPalletId extends U8aFixed {}
- /** @name PalletTreasuryError (192) */
+ /** @name PalletTreasuryError (213) */
interface PalletTreasuryError extends Enum {
readonly isInsufficientProposersBalance: boolean;
readonly isInvalidIndex: boolean;
@@ -1849,7 +1986,7 @@
readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'InsufficientPermission' | 'ProposalNotApproved';
}
- /** @name PalletSudoCall (193) */
+ /** @name PalletSudoCall (214) */
interface PalletSudoCall extends Enum {
readonly isSudo: boolean;
readonly asSudo: {
@@ -1872,7 +2009,7 @@
readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';
}
- /** @name OrmlVestingModuleCall (195) */
+ /** @name OrmlVestingModuleCall (216) */
interface OrmlVestingModuleCall extends Enum {
readonly isClaim: boolean;
readonly isVestedTransfer: boolean;
@@ -1892,7 +2029,7 @@
readonly type: 'Claim' | 'VestedTransfer' | 'UpdateVestingSchedules' | 'ClaimFor';
}
- /** @name OrmlXtokensModuleCall (197) */
+ /** @name OrmlXtokensModuleCall (218) */
interface OrmlXtokensModuleCall extends Enum {
readonly isTransfer: boolean;
readonly asTransfer: {
@@ -1939,7 +2076,7 @@
readonly type: 'Transfer' | 'TransferMultiasset' | 'TransferWithFee' | 'TransferMultiassetWithFee' | 'TransferMulticurrencies' | 'TransferMultiassets';
}
- /** @name XcmVersionedMultiAsset (198) */
+ /** @name XcmVersionedMultiAsset (219) */
interface XcmVersionedMultiAsset extends Enum {
readonly isV0: boolean;
readonly asV0: XcmV0MultiAsset;
@@ -1948,7 +2085,7 @@
readonly type: 'V0' | 'V1';
}
- /** @name OrmlTokensModuleCall (201) */
+ /** @name OrmlTokensModuleCall (222) */
interface OrmlTokensModuleCall extends Enum {
readonly isTransfer: boolean;
readonly asTransfer: {
@@ -1985,7 +2122,166 @@
readonly type: 'Transfer' | 'TransferAll' | 'TransferKeepAlive' | 'ForceTransfer' | 'SetBalance';
}
- /** @name CumulusPalletXcmpQueueCall (202) */
+ /** @name PalletIdentityCall (223) */
+ 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 PalletIdentityIdentityInfo (224) */
+ 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 PalletIdentityBitFlags (260) */
+ interface PalletIdentityBitFlags extends Set {
+ readonly isDisplay: boolean;
+ readonly isLegal: boolean;
+ readonly isWeb: boolean;
+ readonly isRiot: boolean;
+ readonly isEmail: boolean;
+ readonly isPgpFingerprint: boolean;
+ readonly isImage: boolean;
+ readonly isTwitter: boolean;
+ }
+
+ /** @name PalletIdentityIdentityField (261) */
+ 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 PalletIdentityJudgement (262) */
+ 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 PalletIdentityRegistration (265) */
+ interface PalletIdentityRegistration extends Struct {
+ readonly judgements: Vec<ITuple<[u32, PalletIdentityJudgement]>>;
+ readonly deposit: u128;
+ readonly info: PalletIdentityIdentityInfo;
+ }
+
+ /** @name PalletPreimageCall (273) */
+ interface PalletPreimageCall extends Enum {
+ readonly isNotePreimage: boolean;
+ readonly asNotePreimage: {
+ readonly bytes: Bytes;
+ } & Struct;
+ readonly isUnnotePreimage: boolean;
+ readonly asUnnotePreimage: {
+ readonly hash_: H256;
+ } & Struct;
+ readonly isRequestPreimage: boolean;
+ readonly asRequestPreimage: {
+ readonly hash_: H256;
+ } & Struct;
+ readonly isUnrequestPreimage: boolean;
+ readonly asUnrequestPreimage: {
+ readonly hash_: H256;
+ } & Struct;
+ readonly type: 'NotePreimage' | 'UnnotePreimage' | 'RequestPreimage' | 'UnrequestPreimage';
+ }
+
+ /** @name CumulusPalletXcmpQueueCall (274) */
interface CumulusPalletXcmpQueueCall extends Enum {
readonly isServiceOverweight: boolean;
readonly asServiceOverweight: {
@@ -2021,7 +2317,7 @@
readonly type: 'ServiceOverweight' | 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold' | 'UpdateThresholdWeight' | 'UpdateWeightRestrictDecay' | 'UpdateXcmpMaxIndividualWeight';
}
- /** @name PalletXcmCall (203) */
+ /** @name PalletXcmCall (275) */
interface PalletXcmCall extends Enum {
readonly isSend: boolean;
readonly asSend: {
@@ -2083,7 +2379,7 @@
readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';
}
- /** @name XcmVersionedXcm (204) */
+ /** @name XcmVersionedXcm (276) */
interface XcmVersionedXcm extends Enum {
readonly isV0: boolean;
readonly asV0: XcmV0Xcm;
@@ -2094,7 +2390,7 @@
readonly type: 'V0' | 'V1' | 'V2';
}
- /** @name XcmV0Xcm (205) */
+ /** @name XcmV0Xcm (277) */
interface XcmV0Xcm extends Enum {
readonly isWithdrawAsset: boolean;
readonly asWithdrawAsset: {
@@ -2157,7 +2453,7 @@
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';
}
- /** @name XcmV0Order (207) */
+ /** @name XcmV0Order (279) */
interface XcmV0Order extends Enum {
readonly isNull: boolean;
readonly isDepositAsset: boolean;
@@ -2205,14 +2501,14 @@
readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
}
- /** @name XcmV0Response (209) */
+ /** @name XcmV0Response (281) */
interface XcmV0Response extends Enum {
readonly isAssets: boolean;
readonly asAssets: Vec<XcmV0MultiAsset>;
readonly type: 'Assets';
}
- /** @name XcmV1Xcm (210) */
+ /** @name XcmV1Xcm (282) */
interface XcmV1Xcm extends Enum {
readonly isWithdrawAsset: boolean;
readonly asWithdrawAsset: {
@@ -2281,7 +2577,7 @@
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';
}
- /** @name XcmV1Order (212) */
+ /** @name XcmV1Order (284) */
interface XcmV1Order extends Enum {
readonly isNoop: boolean;
readonly isDepositAsset: boolean;
@@ -2331,7 +2627,7 @@
readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
}
- /** @name XcmV1Response (214) */
+ /** @name XcmV1Response (286) */
interface XcmV1Response extends Enum {
readonly isAssets: boolean;
readonly asAssets: XcmV1MultiassetMultiAssets;
@@ -2340,10 +2636,10 @@
readonly type: 'Assets' | 'Version';
}
- /** @name CumulusPalletXcmCall (228) */
+ /** @name CumulusPalletXcmCall (300) */
type CumulusPalletXcmCall = Null;
- /** @name CumulusPalletDmpQueueCall (229) */
+ /** @name CumulusPalletDmpQueueCall (301) */
interface CumulusPalletDmpQueueCall extends Enum {
readonly isServiceOverweight: boolean;
readonly asServiceOverweight: {
@@ -2353,7 +2649,7 @@
readonly type: 'ServiceOverweight';
}
- /** @name PalletInflationCall (230) */
+ /** @name PalletInflationCall (302) */
interface PalletInflationCall extends Enum {
readonly isStartInflation: boolean;
readonly asStartInflation: {
@@ -2362,7 +2658,7 @@
readonly type: 'StartInflation';
}
- /** @name PalletUniqueCall (231) */
+ /** @name PalletUniqueCall (303) */
interface PalletUniqueCall extends Enum {
readonly isCreateCollection: boolean;
readonly asCreateCollection: {
@@ -2543,7 +2839,7 @@
readonly type: 'CreateCollection' | 'CreateCollectionEx' | 'DestroyCollection' | 'AddToAllowList' | 'RemoveFromAllowList' | 'ChangeCollectionOwner' | 'AddCollectionAdmin' | 'RemoveCollectionAdmin' | 'SetCollectionSponsor' | 'ConfirmSponsorship' | 'RemoveCollectionSponsor' | 'CreateItem' | 'CreateMultipleItems' | 'SetCollectionProperties' | 'DeleteCollectionProperties' | 'SetTokenProperties' | 'DeleteTokenProperties' | 'SetTokenPropertyPermissions' | 'CreateMultipleItemsEx' | 'SetTransfersEnabledFlag' | 'BurnItem' | 'BurnFrom' | 'Transfer' | 'Approve' | 'ApproveFrom' | 'TransferFrom' | 'SetCollectionLimits' | 'SetCollectionPermissions' | 'Repartition' | 'SetAllowanceForAll' | 'ForceRepairCollection' | 'ForceRepairItem';
}
- /** @name UpDataStructsCollectionMode (236) */
+ /** @name UpDataStructsCollectionMode (308) */
interface UpDataStructsCollectionMode extends Enum {
readonly isNft: boolean;
readonly isFungible: boolean;
@@ -2552,7 +2848,7 @@
readonly type: 'Nft' | 'Fungible' | 'ReFungible';
}
- /** @name UpDataStructsCreateCollectionData (237) */
+ /** @name UpDataStructsCreateCollectionData (309) */
interface UpDataStructsCreateCollectionData extends Struct {
readonly mode: UpDataStructsCollectionMode;
readonly access: Option<UpDataStructsAccessMode>;
@@ -2566,14 +2862,14 @@
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name UpDataStructsAccessMode (239) */
+ /** @name UpDataStructsAccessMode (311) */
interface UpDataStructsAccessMode extends Enum {
readonly isNormal: boolean;
readonly isAllowList: boolean;
readonly type: 'Normal' | 'AllowList';
}
- /** @name UpDataStructsCollectionLimits (241) */
+ /** @name UpDataStructsCollectionLimits (313) */
interface UpDataStructsCollectionLimits extends Struct {
readonly accountTokenOwnershipLimit: Option<u32>;
readonly sponsoredDataSize: Option<u32>;
@@ -2586,7 +2882,7 @@
readonly transfersEnabled: Option<bool>;
}
- /** @name UpDataStructsSponsoringRateLimit (243) */
+ /** @name UpDataStructsSponsoringRateLimit (315) */
interface UpDataStructsSponsoringRateLimit extends Enum {
readonly isSponsoringDisabled: boolean;
readonly isBlocks: boolean;
@@ -2594,43 +2890,43 @@
readonly type: 'SponsoringDisabled' | 'Blocks';
}
- /** @name UpDataStructsCollectionPermissions (246) */
+ /** @name UpDataStructsCollectionPermissions (318) */
interface UpDataStructsCollectionPermissions extends Struct {
readonly access: Option<UpDataStructsAccessMode>;
readonly mintMode: Option<bool>;
readonly nesting: Option<UpDataStructsNestingPermissions>;
}
- /** @name UpDataStructsNestingPermissions (248) */
+ /** @name UpDataStructsNestingPermissions (320) */
interface UpDataStructsNestingPermissions extends Struct {
readonly tokenOwner: bool;
readonly collectionAdmin: bool;
readonly restricted: Option<UpDataStructsOwnerRestrictedSet>;
}
- /** @name UpDataStructsOwnerRestrictedSet (250) */
+ /** @name UpDataStructsOwnerRestrictedSet (322) */
interface UpDataStructsOwnerRestrictedSet extends BTreeSet<u32> {}
- /** @name UpDataStructsPropertyKeyPermission (255) */
+ /** @name UpDataStructsPropertyKeyPermission (327) */
interface UpDataStructsPropertyKeyPermission extends Struct {
readonly key: Bytes;
readonly permission: UpDataStructsPropertyPermission;
}
- /** @name UpDataStructsPropertyPermission (256) */
+ /** @name UpDataStructsPropertyPermission (328) */
interface UpDataStructsPropertyPermission extends Struct {
readonly mutable: bool;
readonly collectionAdmin: bool;
readonly tokenOwner: bool;
}
- /** @name UpDataStructsProperty (259) */
+ /** @name UpDataStructsProperty (331) */
interface UpDataStructsProperty extends Struct {
readonly key: Bytes;
readonly value: Bytes;
}
- /** @name UpDataStructsCreateItemData (262) */
+ /** @name UpDataStructsCreateItemData (334) */
interface UpDataStructsCreateItemData extends Enum {
readonly isNft: boolean;
readonly asNft: UpDataStructsCreateNftData;
@@ -2641,23 +2937,23 @@
readonly type: 'Nft' | 'Fungible' | 'ReFungible';
}
- /** @name UpDataStructsCreateNftData (263) */
+ /** @name UpDataStructsCreateNftData (335) */
interface UpDataStructsCreateNftData extends Struct {
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name UpDataStructsCreateFungibleData (264) */
+ /** @name UpDataStructsCreateFungibleData (336) */
interface UpDataStructsCreateFungibleData extends Struct {
readonly value: u128;
}
- /** @name UpDataStructsCreateReFungibleData (265) */
+ /** @name UpDataStructsCreateReFungibleData (337) */
interface UpDataStructsCreateReFungibleData extends Struct {
readonly pieces: u128;
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name UpDataStructsCreateItemExData (268) */
+ /** @name UpDataStructsCreateItemExData (340) */
interface UpDataStructsCreateItemExData extends Enum {
readonly isNft: boolean;
readonly asNft: Vec<UpDataStructsCreateNftExData>;
@@ -2670,26 +2966,26 @@
readonly type: 'Nft' | 'Fungible' | 'RefungibleMultipleItems' | 'RefungibleMultipleOwners';
}
- /** @name UpDataStructsCreateNftExData (270) */
+ /** @name UpDataStructsCreateNftExData (342) */
interface UpDataStructsCreateNftExData extends Struct {
readonly properties: Vec<UpDataStructsProperty>;
readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
}
- /** @name UpDataStructsCreateRefungibleExSingleOwner (277) */
+ /** @name UpDataStructsCreateRefungibleExSingleOwner (349) */
interface UpDataStructsCreateRefungibleExSingleOwner extends Struct {
readonly user: PalletEvmAccountBasicCrossAccountIdRepr;
readonly pieces: u128;
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name UpDataStructsCreateRefungibleExMultipleOwners (279) */
+ /** @name UpDataStructsCreateRefungibleExMultipleOwners (351) */
interface UpDataStructsCreateRefungibleExMultipleOwners extends Struct {
readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;
readonly properties: Vec<UpDataStructsProperty>;
}
- /** @name PalletConfigurationCall (280) */
+ /** @name PalletConfigurationCall (352) */
interface PalletConfigurationCall extends Enum {
readonly isSetWeightToFeeCoefficientOverride: boolean;
readonly asSetWeightToFeeCoefficientOverride: {
@@ -2722,7 +3018,7 @@
readonly type: 'SetWeightToFeeCoefficientOverride' | 'SetMinGasPriceOverride' | 'SetXcmAllowedLocations' | 'SetAppPromotionConfigurationOverride' | 'SetCollatorSelectionDesiredCollators' | 'SetCollatorSelectionLicenseBond' | 'SetCollatorSelectionKickThreshold';
}
- /** @name PalletConfigurationAppPromotionConfiguration (285) */
+ /** @name PalletConfigurationAppPromotionConfiguration (357) */
interface PalletConfigurationAppPromotionConfiguration extends Struct {
readonly recalculationInterval: Option<u32>;
readonly pendingInterval: Option<u32>;
@@ -2730,226 +3026,13 @@
readonly maxStakersPerCalculation: Option<u8>;
}
- /** @name PalletTemplateTransactionPaymentCall (289) */
+ /** @name PalletTemplateTransactionPaymentCall (361) */
type PalletTemplateTransactionPaymentCall = Null;
- /** @name PalletStructureCall (290) */
+ /** @name PalletStructureCall (362) */
type PalletStructureCall = Null;
- /** @name PalletRmrkCoreCall (291) */
- interface PalletRmrkCoreCall extends Enum {
- readonly isCreateCollection: boolean;
- readonly asCreateCollection: {
- readonly metadata: Bytes;
- readonly max: Option<u32>;
- readonly symbol: Bytes;
- } & Struct;
- readonly isDestroyCollection: boolean;
- readonly asDestroyCollection: {
- readonly collectionId: u32;
- } & Struct;
- readonly isChangeCollectionIssuer: boolean;
- readonly asChangeCollectionIssuer: {
- readonly collectionId: u32;
- readonly newIssuer: MultiAddress;
- } & Struct;
- readonly isLockCollection: boolean;
- readonly asLockCollection: {
- readonly collectionId: u32;
- } & 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';
- }
-
- /** @name RmrkTraitsResourceResourceTypes (297) */
- 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 RmrkTraitsResourceBasicResource (299) */
- interface RmrkTraitsResourceBasicResource extends Struct {
- readonly src: Option<Bytes>;
- readonly metadata: Option<Bytes>;
- readonly license: Option<Bytes>;
- readonly thumb: Option<Bytes>;
- }
-
- /** @name RmrkTraitsResourceComposableResource (301) */
- 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 RmrkTraitsResourceSlotResource (302) */
- 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 PalletRmrkEquipCall (305) */
- interface PalletRmrkEquipCall extends Enum {
- readonly isCreateBase: boolean;
- readonly asCreateBase: {
- readonly baseType: Bytes;
- readonly symbol: Bytes;
- readonly parts: Vec<RmrkTraitsPartPartType>;
- } & 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';
- }
-
- /** @name RmrkTraitsPartPartType (308) */
- interface RmrkTraitsPartPartType extends Enum {
- readonly isFixedPart: boolean;
- readonly asFixedPart: RmrkTraitsPartFixedPart;
- readonly isSlotPart: boolean;
- readonly asSlotPart: RmrkTraitsPartSlotPart;
- readonly type: 'FixedPart' | 'SlotPart';
- }
-
- /** @name RmrkTraitsPartFixedPart (310) */
- interface RmrkTraitsPartFixedPart extends Struct {
- readonly id: u32;
- readonly z: u32;
- readonly src: Bytes;
- }
-
- /** @name RmrkTraitsPartSlotPart (311) */
- interface RmrkTraitsPartSlotPart extends Struct {
- readonly id: u32;
- readonly equippable: RmrkTraitsPartEquippableList;
- readonly src: Bytes;
- readonly z: u32;
- }
-
- /** @name RmrkTraitsPartEquippableList (312) */
- interface RmrkTraitsPartEquippableList extends Enum {
- readonly isAll: boolean;
- readonly isEmpty: boolean;
- readonly isCustom: boolean;
- readonly asCustom: Vec<u32>;
- readonly type: 'All' | 'Empty' | 'Custom';
- }
-
- /** @name RmrkTraitsTheme (314) */
- interface RmrkTraitsTheme extends Struct {
- readonly name: Bytes;
- readonly properties: Vec<RmrkTraitsThemeThemeProperty>;
- readonly inherit: bool;
- }
-
- /** @name RmrkTraitsThemeThemeProperty (316) */
- interface RmrkTraitsThemeThemeProperty extends Struct {
- readonly key: Bytes;
- readonly value: Bytes;
- }
-
- /** @name PalletAppPromotionCall (318) */
+ /** @name PalletAppPromotionCall (363) */
interface PalletAppPromotionCall extends Enum {
readonly isSetAdminAddress: boolean;
readonly asSetAdminAddress: {
@@ -2959,7 +3042,7 @@
readonly asStake: {
readonly amount: u128;
} & Struct;
- readonly isUnstake: boolean;
+ readonly isUnstakeAll: boolean;
readonly isSponsorCollection: boolean;
readonly asSponsorCollection: {
readonly collectionId: u32;
@@ -2980,10 +3063,14 @@
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 PalletForeignAssetsModuleCall (319) */
+ /** @name PalletForeignAssetsModuleCall (364) */
interface PalletForeignAssetsModuleCall extends Enum {
readonly isRegisterForeignAsset: boolean;
readonly asRegisterForeignAsset: {
@@ -3000,7 +3087,7 @@
readonly type: 'RegisterForeignAsset' | 'UpdateForeignAsset';
}
- /** @name PalletEvmCall (320) */
+ /** @name PalletEvmCall (365) */
interface PalletEvmCall extends Enum {
readonly isWithdraw: boolean;
readonly asWithdraw: {
@@ -3045,7 +3132,7 @@
readonly type: 'Withdraw' | 'Call' | 'Create' | 'Create2';
}
- /** @name PalletEthereumCall (326) */
+ /** @name PalletEthereumCall (371) */
interface PalletEthereumCall extends Enum {
readonly isTransact: boolean;
readonly asTransact: {
@@ -3054,7 +3141,7 @@
readonly type: 'Transact';
}
- /** @name EthereumTransactionTransactionV2 (327) */
+ /** @name EthereumTransactionTransactionV2 (372) */
interface EthereumTransactionTransactionV2 extends Enum {
readonly isLegacy: boolean;
readonly asLegacy: EthereumTransactionLegacyTransaction;
@@ -3065,7 +3152,7 @@
readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
}
- /** @name EthereumTransactionLegacyTransaction (328) */
+ /** @name EthereumTransactionLegacyTransaction (373) */
interface EthereumTransactionLegacyTransaction extends Struct {
readonly nonce: U256;
readonly gasPrice: U256;
@@ -3076,7 +3163,7 @@
readonly signature: EthereumTransactionTransactionSignature;
}
- /** @name EthereumTransactionTransactionAction (329) */
+ /** @name EthereumTransactionTransactionAction (374) */
interface EthereumTransactionTransactionAction extends Enum {
readonly isCall: boolean;
readonly asCall: H160;
@@ -3084,14 +3171,14 @@
readonly type: 'Call' | 'Create';
}
- /** @name EthereumTransactionTransactionSignature (330) */
+ /** @name EthereumTransactionTransactionSignature (375) */
interface EthereumTransactionTransactionSignature extends Struct {
readonly v: u64;
readonly r: H256;
readonly s: H256;
}
- /** @name EthereumTransactionEip2930Transaction (332) */
+ /** @name EthereumTransactionEip2930Transaction (377) */
interface EthereumTransactionEip2930Transaction extends Struct {
readonly chainId: u64;
readonly nonce: U256;
@@ -3106,13 +3193,13 @@
readonly s: H256;
}
- /** @name EthereumTransactionAccessListItem (334) */
+ /** @name EthereumTransactionAccessListItem (379) */
interface EthereumTransactionAccessListItem extends Struct {
readonly address: H160;
readonly storageKeys: Vec<H256>;
}
- /** @name EthereumTransactionEip1559Transaction (335) */
+ /** @name EthereumTransactionEip1559Transaction (380) */
interface EthereumTransactionEip1559Transaction extends Struct {
readonly chainId: u64;
readonly nonce: U256;
@@ -3128,7 +3215,7 @@
readonly s: H256;
}
- /** @name PalletEvmMigrationCall (336) */
+ /** @name PalletEvmMigrationCall (381) */
interface PalletEvmMigrationCall extends Enum {
readonly isBegin: boolean;
readonly asBegin: {
@@ -3152,17 +3239,23 @@
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 PalletMaintenanceCall (340) */
+ /** @name PalletMaintenanceCall (385) */
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 PalletTestUtilsCall (341) */
+ /** @name PalletTestUtilsCall (386) */
interface PalletTestUtilsCall extends Enum {
readonly isEnable: boolean;
readonly isSetTestValue: boolean;
@@ -3182,13 +3275,13 @@
readonly type: 'Enable' | 'SetTestValue' | 'SetTestValueAndRollback' | 'IncTestValue' | 'JustTakeFee' | 'BatchAll';
}
- /** @name PalletSudoError (343) */
+ /** @name PalletSudoError (388) */
interface PalletSudoError extends Enum {
readonly isRequireSudo: boolean;
readonly type: 'RequireSudo';
}
- /** @name OrmlVestingModuleError (345) */
+ /** @name OrmlVestingModuleError (390) */
interface OrmlVestingModuleError extends Enum {
readonly isZeroVestingPeriod: boolean;
readonly isZeroVestingPeriodCount: boolean;
@@ -3199,7 +3292,7 @@
readonly type: 'ZeroVestingPeriod' | 'ZeroVestingPeriodCount' | 'InsufficientBalanceToLock' | 'TooManyVestingSchedules' | 'AmountLow' | 'MaxVestingSchedulesExceeded';
}
- /** @name OrmlXtokensModuleError (346) */
+ /** @name OrmlXtokensModuleError (391) */
interface OrmlXtokensModuleError extends Enum {
readonly isAssetHasNoReserve: boolean;
readonly isNotCrossChainTransfer: boolean;
@@ -3223,26 +3316,26 @@
readonly type: 'AssetHasNoReserve' | 'NotCrossChainTransfer' | 'InvalidDest' | 'NotCrossChainTransferableCurrency' | 'UnweighableMessage' | 'XcmExecutionFailed' | 'CannotReanchor' | 'InvalidAncestry' | 'InvalidAsset' | 'DestinationNotInvertible' | 'BadVersion' | 'DistinctReserveForAssetAndFee' | 'ZeroFee' | 'ZeroAmount' | 'TooManyAssetsBeingSent' | 'AssetIndexNonExistent' | 'FeeNotEnough' | 'NotSupportedMultiLocation' | 'MinXcmFeeNotDefined';
}
- /** @name OrmlTokensBalanceLock (349) */
+ /** @name OrmlTokensBalanceLock (394) */
interface OrmlTokensBalanceLock extends Struct {
readonly id: U8aFixed;
readonly amount: u128;
}
- /** @name OrmlTokensAccountData (351) */
+ /** @name OrmlTokensAccountData (396) */
interface OrmlTokensAccountData extends Struct {
readonly free: u128;
readonly reserved: u128;
readonly frozen: u128;
}
- /** @name OrmlTokensReserveData (353) */
+ /** @name OrmlTokensReserveData (398) */
interface OrmlTokensReserveData extends Struct {
readonly id: Null;
readonly amount: u128;
}
- /** @name OrmlTokensModuleError (355) */
+ /** @name OrmlTokensModuleError (400) */
interface OrmlTokensModuleError extends Enum {
readonly isBalanceTooLow: boolean;
readonly isAmountIntoBalanceFailed: boolean;
@@ -3255,21 +3348,78 @@
readonly type: 'BalanceTooLow' | 'AmountIntoBalanceFailed' | 'LiquidityRestrictions' | 'MaxLocksExceeded' | 'KeepAlive' | 'ExistentialDeposit' | 'DeadAccount' | 'TooManyReserves';
}
- /** @name CumulusPalletXcmpQueueInboundChannelDetails (357) */
+ /** @name PalletIdentityRegistrarInfo (405) */
+ interface PalletIdentityRegistrarInfo extends Struct {
+ readonly account: AccountId32;
+ readonly fee: u128;
+ readonly fields: PalletIdentityBitFlags;
+ }
+
+ /** @name PalletIdentityError (407) */
+ 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 PalletPreimageRequestStatus (408) */
+ interface PalletPreimageRequestStatus extends Enum {
+ readonly isUnrequested: boolean;
+ readonly asUnrequested: {
+ readonly deposit: ITuple<[AccountId32, u128]>;
+ readonly len: u32;
+ } & Struct;
+ readonly isRequested: boolean;
+ readonly asRequested: {
+ readonly deposit: Option<ITuple<[AccountId32, u128]>>;
+ readonly count: u32;
+ readonly len: Option<u32>;
+ } & Struct;
+ readonly type: 'Unrequested' | 'Requested';
+ }
+
+ /** @name PalletPreimageError (413) */
+ 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 CumulusPalletXcmpQueueInboundChannelDetails (415) */
interface CumulusPalletXcmpQueueInboundChannelDetails extends Struct {
readonly sender: u32;
readonly state: CumulusPalletXcmpQueueInboundState;
readonly messageMetadata: Vec<ITuple<[u32, PolkadotParachainPrimitivesXcmpMessageFormat]>>;
}
- /** @name CumulusPalletXcmpQueueInboundState (358) */
+ /** @name CumulusPalletXcmpQueueInboundState (416) */
interface CumulusPalletXcmpQueueInboundState extends Enum {
readonly isOk: boolean;
readonly isSuspended: boolean;
readonly type: 'Ok' | 'Suspended';
}
- /** @name PolkadotParachainPrimitivesXcmpMessageFormat (361) */
+ /** @name PolkadotParachainPrimitivesXcmpMessageFormat (419) */
interface PolkadotParachainPrimitivesXcmpMessageFormat extends Enum {
readonly isConcatenatedVersionedXcm: boolean;
readonly isConcatenatedEncodedBlob: boolean;
@@ -3277,7 +3427,7 @@
readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';
}
- /** @name CumulusPalletXcmpQueueOutboundChannelDetails (364) */
+ /** @name CumulusPalletXcmpQueueOutboundChannelDetails (422) */
interface CumulusPalletXcmpQueueOutboundChannelDetails extends Struct {
readonly recipient: u32;
readonly state: CumulusPalletXcmpQueueOutboundState;
@@ -3286,14 +3436,14 @@
readonly lastIndex: u16;
}
- /** @name CumulusPalletXcmpQueueOutboundState (365) */
+ /** @name CumulusPalletXcmpQueueOutboundState (423) */
interface CumulusPalletXcmpQueueOutboundState extends Enum {
readonly isOk: boolean;
readonly isSuspended: boolean;
readonly type: 'Ok' | 'Suspended';
}
- /** @name CumulusPalletXcmpQueueQueueConfigData (367) */
+ /** @name CumulusPalletXcmpQueueQueueConfigData (425) */
interface CumulusPalletXcmpQueueQueueConfigData extends Struct {
readonly suspendThreshold: u32;
readonly dropThreshold: u32;
@@ -3303,7 +3453,7 @@
readonly xcmpMaxIndividualWeight: SpWeightsWeightV2Weight;
}
- /** @name CumulusPalletXcmpQueueError (369) */
+ /** @name CumulusPalletXcmpQueueError (427) */
interface CumulusPalletXcmpQueueError extends Enum {
readonly isFailedToSend: boolean;
readonly isBadXcmOrigin: boolean;
@@ -3313,7 +3463,7 @@
readonly type: 'FailedToSend' | 'BadXcmOrigin' | 'BadXcm' | 'BadOverweightIndex' | 'WeightOverLimit';
}
- /** @name PalletXcmError (370) */
+ /** @name PalletXcmError (428) */
interface PalletXcmError extends Enum {
readonly isUnreachable: boolean;
readonly isSendFailure: boolean;
@@ -3331,29 +3481,29 @@
readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';
}
- /** @name CumulusPalletXcmError (371) */
+ /** @name CumulusPalletXcmError (429) */
type CumulusPalletXcmError = Null;
- /** @name CumulusPalletDmpQueueConfigData (372) */
+ /** @name CumulusPalletDmpQueueConfigData (430) */
interface CumulusPalletDmpQueueConfigData extends Struct {
readonly maxIndividual: SpWeightsWeightV2Weight;
}
- /** @name CumulusPalletDmpQueuePageIndexData (373) */
+ /** @name CumulusPalletDmpQueuePageIndexData (431) */
interface CumulusPalletDmpQueuePageIndexData extends Struct {
readonly beginUsed: u32;
readonly endUsed: u32;
readonly overweightCount: u64;
}
- /** @name CumulusPalletDmpQueueError (376) */
+ /** @name CumulusPalletDmpQueueError (434) */
interface CumulusPalletDmpQueueError extends Enum {
readonly isUnknown: boolean;
readonly isOverLimit: boolean;
readonly type: 'Unknown' | 'OverLimit';
}
- /** @name PalletUniqueError (380) */
+ /** @name PalletUniqueError (438) */
interface PalletUniqueError extends Enum {
readonly isCollectionDecimalPointLimitExceeded: boolean;
readonly isEmptyArgument: boolean;
@@ -3361,13 +3511,13 @@
readonly type: 'CollectionDecimalPointLimitExceeded' | 'EmptyArgument' | 'RepartitionCalledOnNonRefungibleCollection';
}
- /** @name PalletConfigurationError (381) */
+ /** @name PalletConfigurationError (439) */
interface PalletConfigurationError extends Enum {
readonly isInconsistentConfiguration: boolean;
readonly type: 'InconsistentConfiguration';
}
- /** @name UpDataStructsCollection (382) */
+ /** @name UpDataStructsCollection (440) */
interface UpDataStructsCollection extends Struct {
readonly owner: AccountId32;
readonly mode: UpDataStructsCollectionMode;
@@ -3380,7 +3530,7 @@
readonly flags: U8aFixed;
}
- /** @name UpDataStructsSponsorshipStateAccountId32 (383) */
+ /** @name UpDataStructsSponsorshipStateAccountId32 (441) */
interface UpDataStructsSponsorshipStateAccountId32 extends Enum {
readonly isDisabled: boolean;
readonly isUnconfirmed: boolean;
@@ -3390,43 +3540,43 @@
readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';
}
- /** @name UpDataStructsProperties (385) */
+ /** @name UpDataStructsProperties (442) */
interface UpDataStructsProperties extends Struct {
readonly map: UpDataStructsPropertiesMapBoundedVec;
readonly consumedSpace: u32;
readonly spaceLimit: u32;
}
- /** @name UpDataStructsPropertiesMapBoundedVec (386) */
+ /** @name UpDataStructsPropertiesMapBoundedVec (443) */
interface UpDataStructsPropertiesMapBoundedVec extends BTreeMap<Bytes, Bytes> {}
- /** @name UpDataStructsPropertiesMapPropertyPermission (391) */
+ /** @name UpDataStructsPropertiesMapPropertyPermission (448) */
interface UpDataStructsPropertiesMapPropertyPermission extends BTreeMap<Bytes, UpDataStructsPropertyPermission> {}
- /** @name UpDataStructsCollectionStats (398) */
+ /** @name UpDataStructsCollectionStats (455) */
interface UpDataStructsCollectionStats extends Struct {
readonly created: u32;
readonly destroyed: u32;
readonly alive: u32;
}
- /** @name UpDataStructsTokenChild (399) */
+ /** @name UpDataStructsTokenChild (456) */
interface UpDataStructsTokenChild extends Struct {
readonly token: u32;
readonly collection: u32;
}
- /** @name PhantomTypeUpDataStructs (400) */
- interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild, UpPovEstimateRpcPovInfo]>> {}
+ /** @name PhantomTypeUpDataStructs (457) */
+ interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, UpPovEstimateRpcPovInfo]>> {}
- /** @name UpDataStructsTokenData (402) */
+ /** @name UpDataStructsTokenData (459) */
interface UpDataStructsTokenData extends Struct {
readonly properties: Vec<UpDataStructsProperty>;
readonly owner: Option<PalletEvmAccountBasicCrossAccountIdRepr>;
readonly pieces: u128;
}
- /** @name UpDataStructsRpcCollection (404) */
+ /** @name UpDataStructsRpcCollection (461) */
interface UpDataStructsRpcCollection extends Struct {
readonly owner: AccountId32;
readonly mode: UpDataStructsCollectionMode;
@@ -3442,64 +3592,13 @@
readonly flags: UpDataStructsRpcCollectionFlags;
}
- /** @name UpDataStructsRpcCollectionFlags (405) */
+ /** @name UpDataStructsRpcCollectionFlags (462) */
interface UpDataStructsRpcCollectionFlags extends Struct {
readonly foreign: bool;
readonly erc721metadata: bool;
}
- /** @name RmrkTraitsCollectionCollectionInfo (406) */
- interface RmrkTraitsCollectionCollectionInfo extends Struct {
- readonly issuer: AccountId32;
- readonly metadata: Bytes;
- readonly max: Option<u32>;
- readonly symbol: Bytes;
- readonly nftsCount: u32;
- }
-
- /** @name RmrkTraitsNftNftInfo (407) */
- interface RmrkTraitsNftNftInfo extends Struct {
- readonly owner: RmrkTraitsNftAccountIdOrCollectionNftTuple;
- readonly royalty: Option<RmrkTraitsNftRoyaltyInfo>;
- readonly metadata: Bytes;
- readonly equipped: bool;
- readonly pending: bool;
- }
-
- /** @name RmrkTraitsNftRoyaltyInfo (409) */
- interface RmrkTraitsNftRoyaltyInfo extends Struct {
- readonly recipient: AccountId32;
- readonly amount: Permill;
- }
-
- /** @name RmrkTraitsResourceResourceInfo (410) */
- interface RmrkTraitsResourceResourceInfo extends Struct {
- readonly id: u32;
- readonly resource: RmrkTraitsResourceResourceTypes;
- readonly pending: bool;
- readonly pendingRemoval: bool;
- }
-
- /** @name RmrkTraitsPropertyPropertyInfo (411) */
- interface RmrkTraitsPropertyPropertyInfo extends Struct {
- readonly key: Bytes;
- readonly value: Bytes;
- }
-
- /** @name RmrkTraitsBaseBaseInfo (412) */
- interface RmrkTraitsBaseBaseInfo extends Struct {
- readonly issuer: AccountId32;
- readonly baseType: Bytes;
- readonly symbol: Bytes;
- }
-
- /** @name RmrkTraitsNftNftChild (413) */
- interface RmrkTraitsNftNftChild extends Struct {
- readonly collectionId: u32;
- readonly nftId: u32;
- }
-
- /** @name UpPovEstimateRpcPovInfo (414) */
+ /** @name UpPovEstimateRpcPovInfo (463) */
interface UpPovEstimateRpcPovInfo extends Struct {
readonly proofSize: u64;
readonly compactProofSize: u64;
@@ -3508,7 +3607,7 @@
readonly keyValues: Vec<UpPovEstimateRpcTrieKeyValue>;
}
- /** @name SpRuntimeTransactionValidityTransactionValidityError (417) */
+ /** @name SpRuntimeTransactionValidityTransactionValidityError (466) */
interface SpRuntimeTransactionValidityTransactionValidityError extends Enum {
readonly isInvalid: boolean;
readonly asInvalid: SpRuntimeTransactionValidityInvalidTransaction;
@@ -3517,7 +3616,7 @@
readonly type: 'Invalid' | 'Unknown';
}
- /** @name SpRuntimeTransactionValidityInvalidTransaction (418) */
+ /** @name SpRuntimeTransactionValidityInvalidTransaction (467) */
interface SpRuntimeTransactionValidityInvalidTransaction extends Enum {
readonly isCall: boolean;
readonly isPayment: boolean;
@@ -3534,7 +3633,7 @@
readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryValidation' | 'BadSigner';
}
- /** @name SpRuntimeTransactionValidityUnknownTransaction (419) */
+ /** @name SpRuntimeTransactionValidityUnknownTransaction (468) */
interface SpRuntimeTransactionValidityUnknownTransaction extends Enum {
readonly isCannotLookup: boolean;
readonly isNoUnsignedValidator: boolean;
@@ -3543,13 +3642,13 @@
readonly type: 'CannotLookup' | 'NoUnsignedValidator' | 'Custom';
}
- /** @name UpPovEstimateRpcTrieKeyValue (421) */
+ /** @name UpPovEstimateRpcTrieKeyValue (470) */
interface UpPovEstimateRpcTrieKeyValue extends Struct {
readonly key: Bytes;
readonly value: Bytes;
}
- /** @name PalletCommonError (423) */
+ /** @name PalletCommonError (472) */
interface PalletCommonError extends Enum {
readonly isCollectionNotFound: boolean;
readonly isMustBeTokenOwner: boolean;
@@ -3591,7 +3690,7 @@
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';
}
- /** @name PalletFungibleError (425) */
+ /** @name PalletFungibleError (474) */
interface PalletFungibleError extends Enum {
readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isFungibleItemsHaveNoId: boolean;
@@ -3603,7 +3702,7 @@
readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed' | 'FungibleTokensAreAlwaysValid';
}
- /** @name PalletRefungibleError (429) */
+ /** @name PalletRefungibleError (478) */
interface PalletRefungibleError extends Enum {
readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isWrongRefungiblePieces: boolean;
@@ -3613,19 +3712,19 @@
readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
}
- /** @name PalletNonfungibleItemData (430) */
+ /** @name PalletNonfungibleItemData (479) */
interface PalletNonfungibleItemData extends Struct {
readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
}
- /** @name UpDataStructsPropertyScope (432) */
+ /** @name UpDataStructsPropertyScope (481) */
interface UpDataStructsPropertyScope extends Enum {
readonly isNone: boolean;
readonly isRmrk: boolean;
readonly type: 'None' | 'Rmrk';
}
- /** @name PalletNonfungibleError (435) */
+ /** @name PalletNonfungibleError (484) */
interface PalletNonfungibleError extends Enum {
readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isNonfungibleItemsHaveNoAmount: boolean;
@@ -3633,52 +3732,17 @@
readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';
}
- /** @name PalletStructureError (436) */
+ /** @name PalletStructureError (485) */
interface PalletStructureError extends Enum {
readonly isOuroborosDetected: boolean;
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 PalletRmrkCoreError (437) */
- 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 PalletRmrkEquipError (439) */
- 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 PalletAppPromotionError (445) */
+ /** @name PalletAppPromotionError (490) */
interface PalletAppPromotionError extends Enum {
readonly isAdminNotSet: boolean;
readonly isNoPermission: boolean;
@@ -3686,10 +3750,11 @@
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 PalletForeignAssetsModuleError (446) */
+ /** @name PalletForeignAssetsModuleError (491) */
interface PalletForeignAssetsModuleError extends Enum {
readonly isBadLocation: boolean;
readonly isMultiLocationExisted: boolean;
@@ -3698,7 +3763,7 @@
readonly type: 'BadLocation' | 'MultiLocationExisted' | 'AssetIdNotExists' | 'AssetIdExisted';
}
- /** @name PalletEvmError (448) */
+ /** @name PalletEvmError (493) */
interface PalletEvmError extends Enum {
readonly isBalanceLow: boolean;
readonly isFeeOverflow: boolean;
@@ -3714,7 +3779,7 @@
readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce' | 'GasLimitTooLow' | 'GasLimitTooHigh' | 'Undefined' | 'Reentrancy' | 'TransactionMustComeFromEOA';
}
- /** @name FpRpcTransactionStatus (451) */
+ /** @name FpRpcTransactionStatus (496) */
interface FpRpcTransactionStatus extends Struct {
readonly transactionHash: H256;
readonly transactionIndex: u32;
@@ -3725,10 +3790,10 @@
readonly logsBloom: EthbloomBloom;
}
- /** @name EthbloomBloom (453) */
+ /** @name EthbloomBloom (498) */
interface EthbloomBloom extends U8aFixed {}
- /** @name EthereumReceiptReceiptV3 (455) */
+ /** @name EthereumReceiptReceiptV3 (500) */
interface EthereumReceiptReceiptV3 extends Enum {
readonly isLegacy: boolean;
readonly asLegacy: EthereumReceiptEip658ReceiptData;
@@ -3739,7 +3804,7 @@
readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
}
- /** @name EthereumReceiptEip658ReceiptData (456) */
+ /** @name EthereumReceiptEip658ReceiptData (501) */
interface EthereumReceiptEip658ReceiptData extends Struct {
readonly statusCode: u8;
readonly usedGas: U256;
@@ -3747,14 +3812,14 @@
readonly logs: Vec<EthereumLog>;
}
- /** @name EthereumBlock (457) */
+ /** @name EthereumBlock (502) */
interface EthereumBlock extends Struct {
readonly header: EthereumHeader;
readonly transactions: Vec<EthereumTransactionTransactionV2>;
readonly ommers: Vec<EthereumHeader>;
}
- /** @name EthereumHeader (458) */
+ /** @name EthereumHeader (503) */
interface EthereumHeader extends Struct {
readonly parentHash: H256;
readonly ommersHash: H256;
@@ -3773,24 +3838,24 @@
readonly nonce: EthereumTypesHashH64;
}
- /** @name EthereumTypesHashH64 (459) */
+ /** @name EthereumTypesHashH64 (504) */
interface EthereumTypesHashH64 extends U8aFixed {}
- /** @name PalletEthereumError (464) */
+ /** @name PalletEthereumError (509) */
interface PalletEthereumError extends Enum {
readonly isInvalidSignature: boolean;
readonly isPreLogExists: boolean;
readonly type: 'InvalidSignature' | 'PreLogExists';
}
- /** @name PalletEvmCoderSubstrateError (465) */
+ /** @name PalletEvmCoderSubstrateError (510) */
interface PalletEvmCoderSubstrateError extends Enum {
readonly isOutOfGas: boolean;
readonly isOutOfFund: boolean;
readonly type: 'OutOfGas' | 'OutOfFund';
}
- /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (466) */
+ /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (511) */
interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum {
readonly isDisabled: boolean;
readonly isUnconfirmed: boolean;
@@ -3800,7 +3865,7 @@
readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';
}
- /** @name PalletEvmContractHelpersSponsoringModeT (467) */
+ /** @name PalletEvmContractHelpersSponsoringModeT (512) */
interface PalletEvmContractHelpersSponsoringModeT extends Enum {
readonly isDisabled: boolean;
readonly isAllowlisted: boolean;
@@ -3808,7 +3873,7 @@
readonly type: 'Disabled' | 'Allowlisted' | 'Generous';
}
- /** @name PalletEvmContractHelpersError (473) */
+ /** @name PalletEvmContractHelpersError (518) */
interface PalletEvmContractHelpersError extends Enum {
readonly isNoPermission: boolean;
readonly isNoPendingSponsor: boolean;
@@ -3816,7 +3881,7 @@
readonly type: 'NoPermission' | 'NoPendingSponsor' | 'TooManyMethodsHaveSponsoredLimit';
}
- /** @name PalletEvmMigrationError (474) */
+ /** @name PalletEvmMigrationError (519) */
interface PalletEvmMigrationError extends Enum {
readonly isAccountNotEmpty: boolean;
readonly isAccountIsNotMigrating: boolean;
@@ -3824,17 +3889,17 @@
readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating' | 'BadEvent';
}
- /** @name PalletMaintenanceError (475) */
+ /** @name PalletMaintenanceError (520) */
type PalletMaintenanceError = Null;
- /** @name PalletTestUtilsError (476) */
+ /** @name PalletTestUtilsError (521) */
interface PalletTestUtilsError extends Enum {
readonly isTestPalletDisabled: boolean;
readonly isTriggerRollback: boolean;
readonly type: 'TestPalletDisabled' | 'TriggerRollback';
}
- /** @name SpRuntimeMultiSignature (478) */
+ /** @name SpRuntimeMultiSignature (523) */
interface SpRuntimeMultiSignature extends Enum {
readonly isEd25519: boolean;
readonly asEd25519: SpCoreEd25519Signature;
@@ -3845,43 +3910,43 @@
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
}
- /** @name SpCoreEd25519Signature (479) */
+ /** @name SpCoreEd25519Signature (524) */
interface SpCoreEd25519Signature extends U8aFixed {}
- /** @name SpCoreSr25519Signature (481) */
+ /** @name SpCoreSr25519Signature (526) */
interface SpCoreSr25519Signature extends U8aFixed {}
- /** @name SpCoreEcdsaSignature (482) */
+ /** @name SpCoreEcdsaSignature (527) */
interface SpCoreEcdsaSignature extends U8aFixed {}
- /** @name FrameSystemExtensionsCheckSpecVersion (485) */
+ /** @name FrameSystemExtensionsCheckSpecVersion (530) */
type FrameSystemExtensionsCheckSpecVersion = Null;
- /** @name FrameSystemExtensionsCheckTxVersion (486) */
+ /** @name FrameSystemExtensionsCheckTxVersion (531) */
type FrameSystemExtensionsCheckTxVersion = Null;
- /** @name FrameSystemExtensionsCheckGenesis (487) */
+ /** @name FrameSystemExtensionsCheckGenesis (532) */
type FrameSystemExtensionsCheckGenesis = Null;
- /** @name FrameSystemExtensionsCheckNonce (490) */
+ /** @name FrameSystemExtensionsCheckNonce (535) */
interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}
- /** @name FrameSystemExtensionsCheckWeight (491) */
+ /** @name FrameSystemExtensionsCheckWeight (536) */
type FrameSystemExtensionsCheckWeight = Null;
- /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (492) */
+ /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (537) */
type OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance = Null;
- /** @name OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls (493) */
+ /** @name OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls (538) */
type OpalRuntimeRuntimeCommonIdentityDisableIdentityCalls = Null;
- /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (494) */
+ /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (539) */
interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
- /** @name OpalRuntimeRuntime (495) */
+ /** @name OpalRuntimeRuntime (540) */
type OpalRuntimeRuntime = Null;
- /** @name PalletEthereumFakeTransactionFinalizer (496) */
+ /** @name PalletEthereumFakeTransactionFinalizer (541) */
type PalletEthereumFakeTransactionFinalizer = Null;
} // declare module
tests/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);