difftreelog
Merge pull request #730 from UniqueNetwork/feature/pov-estimate-api
in: master
Feature/pov estimate api
34 files changed
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5362,6 +5362,7 @@
"substrate-wasm-builder",
"up-common",
"up-data-structs",
+ "up-pov-estimate-rpc",
"up-rpc",
"up-sponsorship",
"xcm",
@@ -5806,6 +5807,7 @@
"sp-runtime",
"sp-std",
"up-data-structs",
+ "up-pov-estimate-rpc",
]
[[package]]
@@ -8917,6 +8919,7 @@
"substrate-wasm-builder",
"up-common",
"up-data-structs",
+ "up-pov-estimate-rpc",
"up-rpc",
"up-sponsorship",
"xcm",
@@ -12824,18 +12827,34 @@
dependencies = [
"anyhow",
"app-promotion-rpc",
+ "frame-benchmarking",
"jsonrpsee",
+ "opal-runtime",
"pallet-common",
"pallet-evm",
"parity-scale-codec 3.2.1",
+ "quartz-runtime",
"rmrk-rpc",
+ "sc-client-api",
+ "sc-executor",
+ "sc-rpc-api",
+ "sc-service",
"sp-api",
"sp-blockchain",
"sp-core",
+ "sp-externalities",
+ "sp-keystore",
"sp-rpc",
"sp-runtime",
+ "sp-state-machine",
+ "sp-trie",
+ "trie-db",
+ "unique-runtime",
+ "up-common",
"up-data-structs",
+ "up-pov-estimate-rpc",
"up-rpc",
+ "zstd",
]
[[package]]
@@ -12978,10 +12997,12 @@
"substrate-prometheus-endpoint",
"tokio",
"try-runtime-cli",
+ "uc-rpc",
"unique-rpc",
"unique-runtime",
"up-common",
"up-data-structs",
+ "up-pov-estimate-rpc",
"up-rpc",
]
@@ -13032,6 +13053,7 @@
"uc-rpc",
"up-common",
"up-data-structs",
+ "up-pov-estimate-rpc",
"up-rpc",
]
@@ -13125,6 +13147,7 @@
"substrate-wasm-builder",
"up-common",
"up-data-structs",
+ "up-pov-estimate-rpc",
"up-rpc",
"up-sponsorship",
"xcm",
@@ -13194,6 +13217,19 @@
]
[[package]]
+name = "up-pov-estimate-rpc"
+version = "0.1.0"
+dependencies = [
+ "parity-scale-codec 3.2.1",
+ "scale-info",
+ "serde",
+ "sp-api",
+ "sp-core",
+ "sp-runtime",
+ "sp-std",
+]
+
+[[package]]
name = "up-rpc"
version = "0.1.3"
dependencies = [
Cargo.tomldiffbeforeafterboth--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,7 +11,7 @@
'runtime/unique',
'runtime/tests',
]
-default-members = ['node/*', 'runtime/opal']
+default-members = ['node/*', 'client/*', 'runtime/opal']
package.version = "0.9.36"
[profile.release]
client/rpc/Cargo.tomldiffbeforeafterboth--- a/client/rpc/Cargo.toml
+++ b/client/rpc/Cargo.toml
@@ -7,16 +7,43 @@
[dependencies]
pallet-common = { default-features = false, path = '../../pallets/common' }
up-data-structs = { default-features = false, path = '../../primitives/data-structs' }
+up-common = { default-features = false, path = '../../primitives/common' }
up-rpc = { path = "../../primitives/rpc" }
app-promotion-rpc = { path = "../../primitives/app_promotion_rpc" }
rmrk-rpc = { path = "../../primitives/rmrk-rpc" }
+up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", optional = true }
codec = { package = "parity-scale-codec", version = "3.1.2" }
jsonrpsee = { version = "0.16.2", features = ["server", "macros"] }
anyhow = "1.0.57"
+zstd = { version = "0.11.2", default-features = false }
+trie-db = { version = "0.24.0", default-features = false }
+sc-rpc-api = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
+sc-service = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
+sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
+sp-state-machine = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
+sp-externalities = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
sp-api = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
sp-blockchain = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
+sp-keystore = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
sp-rpc = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
+sp-trie = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }
+
+frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
+
+sc-executor = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
+
+unique-runtime = { path = '../../runtime/unique', optional = true }
+quartz-runtime = { path = '../../runtime/quartz', optional = true }
+opal-runtime = { path = '../../runtime/opal' }
+
+[features]
+pov-estimate = [
+ 'up-pov-estimate-rpc',
+ 'unique-runtime?/pov-estimate',
+ 'quartz-runtime?/pov-estimate',
+ 'opal-runtime/pov-estimate',
+]
client/rpc/src/lib.rsdiffbeforeafterboth--- a/client/rpc/src/lib.rs
+++ b/client/rpc/src/lib.rs
@@ -42,6 +42,9 @@
pub use app_promotion_unique_rpc::AppPromotionApiServer;
pub use rmrk_unique_rpc::RmrkApiServer;
+#[cfg(feature = "pov-estimate")]
+pub mod pov_estimate;
+
#[rpc(server)]
#[async_trait]
pub trait UniqueApi<BlockHash, CrossAccountId, AccountId> {
@@ -420,17 +423,18 @@
}
}
+#[macro_export]
macro_rules! define_struct_for_server_api {
- ($name:ident) => {
- pub struct $name<C, P> {
- client: Arc<C>,
- _marker: std::marker::PhantomData<P>,
+ ($name:ident { $($arg:ident: $arg_ty:ty),+ $(,)? }) => {
+ pub struct $name<Client, Block: BlockT> {
+ $($arg: $arg_ty),+,
+ _marker: std::marker::PhantomData<Block>,
}
- impl<C, P> $name<C, P> {
- pub fn new(client: Arc<C>) -> Self {
+ impl<Client, Block: BlockT> $name<Client, Block> {
+ pub fn new($($arg: $arg_ty),+) -> Self {
Self {
- client,
+ $($arg),+,
_marker: Default::default(),
}
}
@@ -438,9 +442,23 @@
};
}
-define_struct_for_server_api!(Unique);
-define_struct_for_server_api!(AppPromotion);
-define_struct_for_server_api!(Rmrk);
+define_struct_for_server_api! {
+ Unique {
+ client: Arc<Client>
+ }
+}
+
+define_struct_for_server_api! {
+ AppPromotion {
+ client: Arc<Client>
+ }
+}
+
+define_struct_for_server_api! {
+ Rmrk {
+ client: Arc<Client>
+ }
+}
macro_rules! pass_method {
(
client/rpc/src/pov_estimate.rsdiffbeforeafterboth--- /dev/null
+++ b/client/rpc/src/pov_estimate.rs
@@ -0,0 +1,290 @@
+// 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 std::sync::Arc;
+
+use codec::{Encode, Decode};
+use sp_externalities::Extensions;
+
+use up_pov_estimate_rpc::{PovEstimateApi as PovEstimateRuntimeApi};
+use up_common::types::opaque::RuntimeId;
+
+use sc_service::{NativeExecutionDispatch, config::ExecutionStrategy};
+use sp_state_machine::{StateMachine, TrieBackendBuilder};
+use trie_db::{Trie, TrieDBBuilder};
+
+use jsonrpsee::{core::RpcResult as Result, proc_macros::rpc};
+use anyhow::anyhow;
+
+use sc_client_api::backend::Backend;
+use sp_blockchain::HeaderBackend;
+use sp_core::{
+ Bytes,
+ offchain::{
+ testing::{TestOffchainExt, TestTransactionPoolExt},
+ OffchainDbExt, OffchainWorkerExt, TransactionPoolExt,
+ },
+ testing::TaskExecutor,
+ traits::TaskExecutorExt,
+};
+use sp_keystore::{testing::KeyStore, KeystoreExt};
+use sp_api::{AsTrieBackend, BlockId, BlockT, ProvideRuntimeApi};
+
+use sc_executor::NativeElseWasmExecutor;
+use sc_rpc_api::DenyUnsafe;
+
+use sp_runtime::traits::Header;
+
+use up_pov_estimate_rpc::{PovInfo, TrieKeyValue};
+
+use crate::define_struct_for_server_api;
+
+type HasherOf<Block> = <<Block as BlockT>::Header as Header>::Hashing;
+type StateOf<Block> = <sc_service::TFullBackend<Block> as Backend<Block>>::State;
+
+pub struct ExecutorParams {
+ pub wasm_method: sc_service::config::WasmExecutionMethod,
+ pub default_heap_pages: Option<u64>,
+ pub max_runtime_instances: usize,
+ pub runtime_cache_size: u8,
+}
+
+#[cfg(feature = "unique-runtime")]
+pub struct UniqueRuntimeExecutor;
+
+#[cfg(feature = "quartz-runtime")]
+pub struct QuartzRuntimeExecutor;
+
+pub struct OpalRuntimeExecutor;
+
+#[cfg(feature = "unique-runtime")]
+impl NativeExecutionDispatch for UniqueRuntimeExecutor {
+ type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
+
+ fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
+ unique_runtime::api::dispatch(method, data)
+ }
+
+ fn native_version() -> sc_executor::NativeVersion {
+ unique_runtime::native_version()
+ }
+}
+
+#[cfg(feature = "quartz-runtime")]
+impl NativeExecutionDispatch for QuartzRuntimeExecutor {
+ type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
+
+ fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
+ quartz_runtime::api::dispatch(method, data)
+ }
+
+ fn native_version() -> sc_executor::NativeVersion {
+ quartz_runtime::native_version()
+ }
+}
+
+impl NativeExecutionDispatch for OpalRuntimeExecutor {
+ type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
+
+ fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
+ opal_runtime::api::dispatch(method, data)
+ }
+
+ fn native_version() -> sc_executor::NativeVersion {
+ opal_runtime::native_version()
+ }
+}
+
+#[cfg(feature = "pov-estimate")]
+define_struct_for_server_api! {
+ PovEstimate {
+ client: Arc<Client>,
+ backend: Arc<sc_service::TFullBackend<Block>>,
+ deny_unsafe: DenyUnsafe,
+ exec_params: ExecutorParams,
+ runtime_id: RuntimeId,
+ }
+}
+
+#[rpc(server)]
+#[async_trait]
+pub trait PovEstimateApi<BlockHash> {
+ #[method(name = "povinfo_estimateExtrinsicPoV")]
+ fn estimate_extrinsic_pov(
+ &self,
+ encoded_xts: Vec<Bytes>,
+ at: Option<BlockHash>,
+ ) -> Result<PovInfo>;
+}
+
+#[allow(deprecated)]
+#[cfg(feature = "pov-estimate")]
+impl<C, Block> PovEstimateApiServer<<Block as BlockT>::Hash> for PovEstimate<C, Block>
+where
+ Block: BlockT,
+ C: 'static + ProvideRuntimeApi<Block> + HeaderBackend<Block>,
+ C::Api: PovEstimateRuntimeApi<Block>,
+{
+ fn estimate_extrinsic_pov(
+ &self,
+ encoded_xts: Vec<Bytes>,
+ at: Option<<Block as BlockT>::Hash>,
+ ) -> Result<PovInfo> {
+ self.deny_unsafe.check_if_safe()?;
+
+ let at = at.unwrap_or_else(|| self.client.info().best_hash);
+ let state = self
+ .backend
+ .state_at(at)
+ .map_err(|_| anyhow!("unable to fetch the state at {at:?}"))?;
+
+ match &self.runtime_id {
+ #[cfg(feature = "unique-runtime")]
+ RuntimeId::Unique => execute_extrinsic_in_sandbox::<Block, UniqueRuntimeExecutor>(
+ state,
+ &self.exec_params,
+ encoded_xts,
+ ),
+
+ #[cfg(feature = "quartz-runtime")]
+ RuntimeId::Quartz => execute_extrinsic_in_sandbox::<Block, QuartzRuntimeExecutor>(
+ state,
+ &self.exec_params,
+ encoded_xts,
+ ),
+
+ RuntimeId::Opal => execute_extrinsic_in_sandbox::<Block, OpalRuntimeExecutor>(
+ state,
+ &self.exec_params,
+ encoded_xts,
+ ),
+
+ runtime_id => Err(anyhow!("unknown runtime id {:?}", runtime_id).into()),
+ }
+ }
+}
+
+fn full_extensions() -> Extensions {
+ let mut extensions = Extensions::default();
+ extensions.register(TaskExecutorExt::new(TaskExecutor::new()));
+ let (offchain, _offchain_state) = TestOffchainExt::new();
+ let (pool, _pool_state) = TestTransactionPoolExt::new();
+ extensions.register(OffchainDbExt::new(offchain.clone()));
+ extensions.register(OffchainWorkerExt::new(offchain));
+ extensions.register(KeystoreExt(std::sync::Arc::new(KeyStore::new())));
+ extensions.register(TransactionPoolExt::new(pool));
+
+ extensions
+}
+
+fn execute_extrinsic_in_sandbox<Block, D>(
+ state: StateOf<Block>,
+ exec_params: &ExecutorParams,
+ encoded_xts: Vec<Bytes>,
+) -> Result<PovInfo>
+where
+ Block: BlockT,
+ D: NativeExecutionDispatch + 'static,
+{
+ let backend = state.as_trie_backend().clone();
+ let mut changes = Default::default();
+ let runtime_code_backend = sp_state_machine::backend::BackendRuntimeCode::new(backend);
+
+ let proving_backend = TrieBackendBuilder::wrap(&backend)
+ .with_recorder(Default::default())
+ .build();
+
+ let runtime_code = runtime_code_backend
+ .runtime_code()
+ .map_err(|_| anyhow!("runtime code backend creation failed"))?;
+
+ let pre_root = *backend.root();
+
+ let executor = NativeElseWasmExecutor::<D>::new(
+ exec_params.wasm_method,
+ exec_params.default_heap_pages,
+ exec_params.max_runtime_instances,
+ exec_params.runtime_cache_size,
+ );
+ let execution = ExecutionStrategy::NativeElseWasm;
+
+ let mut results = Vec::new();
+
+ for encoded_xt in encoded_xts {
+ let encoded_bytes = encoded_xt.encode();
+
+ let xt_result = StateMachine::new(
+ &proving_backend,
+ &mut changes,
+ &executor,
+ "PovEstimateApi_pov_estimate",
+ encoded_bytes.as_slice(),
+ full_extensions(),
+ &runtime_code,
+ sp_core::testing::TaskExecutor::new(),
+ )
+ .execute(execution.into())
+ .map_err(|e| anyhow!("failed to execute the extrinsic {:?}", e))?;
+
+ let xt_result = Decode::decode(&mut &*xt_result)
+ .map_err(|e| anyhow!("failed to decode the extrinsic result {:?}", e))?;
+
+ results.push(xt_result);
+ }
+
+ let root = proving_backend.root().clone();
+
+ let proof = proving_backend
+ .extract_proof()
+ .expect("A recorder was set and thus, a storage proof can be extracted; qed");
+ let proof_size = proof.encoded_size();
+
+ let memory_db = proof.clone().into_memory_db();
+
+ let tree_db =
+ TrieDBBuilder::<sp_trie::LayoutV1<HasherOf<Block>>>::new(&memory_db, &root).build();
+
+ let key_values = tree_db
+ .iter()
+ .map_err(|e| anyhow!("failed to retrieve tree db key values: {:?}", e))?
+ .filter_map(|item| {
+ let item = item.ok()?;
+
+ Some(TrieKeyValue {
+ key: item.0,
+ value: item.1,
+ })
+ })
+ .collect();
+
+ let compact_proof = proof
+ .clone()
+ .into_compact_proof::<HasherOf<Block>>(pre_root)
+ .map_err(|e| anyhow!("failed to generate compact proof {:?}", e))?;
+ let compact_proof_size = compact_proof.encoded_size();
+
+ let compressed_proof = zstd::stream::encode_all(&compact_proof.encode()[..], 0)
+ .map_err(|e| anyhow!("failed to generate compact proof {:?}", e))?;
+ let compressed_proof_size = compressed_proof.len();
+
+ Ok(PovInfo {
+ proof_size: proof_size as u64,
+ compact_proof_size: compact_proof_size as u64,
+ compressed_proof_size: compressed_proof_size as u64,
+ results,
+ key_values,
+ })
+}
node/cli/Cargo.tomldiffbeforeafterboth--- a/node/cli/Cargo.toml
+++ b/node/cli/Cargo.toml
@@ -319,8 +319,10 @@
pallet-ethereum = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }
unique-rpc = { default-features = false, path = "../rpc" }
+uc-rpc = { default-features = false, path = "../../client/rpc" }
app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }
rmrk-rpc = { path = "../../primitives/rmrk-rpc" }
+up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", default-features = false }
[features]
default = ["opal-runtime"]
@@ -339,3 +341,10 @@
'try-runtime-cli/try-runtime',
]
sapphire-runtime = ['opal-runtime', 'opal-runtime/become-sapphire']
+pov-estimate = [
+ 'unique-runtime?/pov-estimate',
+ 'quartz-runtime?/pov-estimate',
+ 'opal-runtime/pov-estimate',
+ 'uc-rpc/pov-estimate',
+ 'unique-rpc/pov-estimate',
+]
node/cli/src/chain_spec.rsdiffbeforeafterboth--- a/node/cli/src/chain_spec.rs
+++ b/node/cli/src/chain_spec.rs
@@ -54,17 +54,6 @@
#[cfg(all(not(feature = "unique-runtime"), not(feature = "quartz-runtime")))]
pub type DefaultChainSpec = OpalChainSpec;
-pub enum RuntimeId {
- #[cfg(feature = "unique-runtime")]
- Unique,
-
- #[cfg(feature = "quartz-runtime")]
- Quartz,
-
- Opal,
- Unknown(String),
-}
-
#[cfg(not(feature = "unique-runtime"))]
/// PARA_ID for Opal/Sapphire/Quartz
const PARA_ID: u32 = 2095;
node/cli/src/command.rsdiffbeforeafterboth--- a/node/cli/src/command.rs
+++ b/node/cli/src/command.rs
@@ -33,7 +33,7 @@
// limitations under the License.
use crate::{
- chain_spec::{self, RuntimeId, RuntimeIdentification, ServiceId, ServiceIdentification},
+ chain_spec::{self, RuntimeIdentification, ServiceId, ServiceIdentification},
cli::{Cli, RelayChainCli, Subcommand},
service::{new_partial, start_node, start_dev_node},
};
@@ -66,13 +66,13 @@
use sp_runtime::traits::{AccountIdConversion, Block as BlockT};
use std::{net::SocketAddr, time::Duration};
-use up_common::types::opaque::Block;
+use up_common::types::opaque::{Block, RuntimeId};
macro_rules! no_runtime_err {
- ($chain_name:expr) => {
+ ($runtime_id:expr) => {
format!(
- "No runtime valid runtime was found for chain {}",
- $chain_name
+ "No runtime valid runtime was found for chain {:#?}",
+ $runtime_id
)
};
}
@@ -94,7 +94,7 @@
RuntimeId::Quartz => Box::new(chain_spec::QuartzChainSpec::from_json_file(path)?),
RuntimeId::Opal => chain_spec,
- RuntimeId::Unknown(chain) => return Err(no_runtime_err!(chain)),
+ runtime_id => return Err(no_runtime_err!(runtime_id)),
}
}
})
@@ -147,7 +147,7 @@
RuntimeId::Quartz => &quartz_runtime::VERSION,
RuntimeId::Opal => &opal_runtime::VERSION,
- RuntimeId::Unknown(chain) => panic!("{}", no_runtime_err!(chain)),
+ runtime_id => panic!("{}", no_runtime_err!(runtime_id)),
}
}
}
@@ -235,7 +235,7 @@
runner, $components, $cli, $cmd, $config, $( $code )*
),
- RuntimeId::Unknown(chain) => Err(no_runtime_err!(chain).into())
+ runtime_id => Err(no_runtime_err!(runtime_id).into())
}
}}
}
@@ -274,7 +274,7 @@
runner, $components, $cli, $cmd, $config, $( $code )*
),
- RuntimeId::Unknown(chain) => Err(no_runtime_err!(chain).into())
+ runtime_id => Err(no_runtime_err!(runtime_id).into())
}
}}
}
@@ -302,7 +302,7 @@
OpalRuntimeExecutor,
>($config $(, $($args),+)?) $($code)*,
- RuntimeId::Unknown(chain) => Err(no_runtime_err!(chain).into()),
+ runtime_id => Err(no_runtime_err!(runtime_id).into()),
}
};
}
@@ -445,7 +445,7 @@
sp_io::SubstrateHostFunctions,
<OpalRuntimeExecutor as NativeExecutionDispatch>::ExtendHostFunctions,
>>()),
- RuntimeId::Unknown(chain) => return Err(no_runtime_err!(chain).into()),
+ runtime_id => return Err(no_runtime_err!(runtime_id).into()),
},
task_manager,
))
node/cli/src/service.rsdiffbeforeafterboth--- a/node/cli/src/service.rs
+++ b/node/cli/src/service.rs
@@ -66,9 +66,10 @@
use fc_rpc_core::types::FilterPool;
use fc_mapping_sync::{MappingSyncWorker, SyncStrategy};
-use up_common::types::opaque::{
- AuraId, RuntimeInstance, AccountId, Balance, Index, Hash, Block, BlockNumber,
-};
+use up_common::types::opaque::*;
+
+#[cfg(feature = "pov-estimate")]
+use crate::chain_spec::RuntimeIdentification;
// RMRK
use up_data_structs::{
@@ -412,7 +413,8 @@
RmrkBaseInfo<AccountId>,
RmrkPartType,
RmrkTheme,
- > + substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>
+ > + up_pov_estimate_rpc::PovEstimateApi<Block>
+ + substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>
+ sp_api::Metadata<Block>
+ sp_offchain::OffchainWorkerApi<Block>
+ cumulus_primitives_core::CollectCollationInfo<Block>,
@@ -517,9 +519,29 @@
.for_each(|()| futures::future::ready(())),
);
+ #[cfg(feature = "pov-estimate")]
+ let rpc_backend = backend.clone();
+
+ #[cfg(feature = "pov-estimate")]
+ let runtime_id = parachain_config.chain_spec.runtime_id();
+
let rpc_builder = Box::new(move |deny_unsafe, subscription_task_executor| {
let full_deps = unique_rpc::FullDeps {
- backend: rpc_frontier_backend.clone(),
+ #[cfg(feature = "pov-estimate")]
+ runtime_id: runtime_id.clone(),
+
+ #[cfg(feature = "pov-estimate")]
+ exec_params: uc_rpc::pov_estimate::ExecutorParams {
+ wasm_method: parachain_config.wasm_method,
+ default_heap_pages: parachain_config.default_heap_pages,
+ max_runtime_instances: parachain_config.max_runtime_instances,
+ runtime_cache_size: parachain_config.runtime_cache_size,
+ },
+
+ #[cfg(feature = "pov-estimate")]
+ backend: rpc_backend.clone(),
+
+ eth_backend: rpc_frontier_backend.clone(),
deny_unsafe,
client: rpc_client.clone(),
pool: rpc_pool.clone(),
@@ -720,7 +742,8 @@
RmrkBaseInfo<AccountId>,
RmrkPartType,
RmrkTheme,
- > + substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>
+ > + up_pov_estimate_rpc::PovEstimateApi<Block>
+ + substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>
+ sp_api::Metadata<Block>
+ sp_offchain::OffchainWorkerApi<Block>
+ cumulus_primitives_core::CollectCollationInfo<Block>
@@ -869,7 +892,8 @@
RmrkBaseInfo<AccountId>,
RmrkPartType,
RmrkTheme,
- > + substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>
+ > + up_pov_estimate_rpc::PovEstimateApi<Block>
+ + substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>
+ sp_api::Metadata<Block>
+ sp_offchain::OffchainWorkerApi<Block>
+ cumulus_primitives_core::CollectCollationInfo<Block>
@@ -1040,9 +1064,29 @@
let rpc_pool = transaction_pool.clone();
let rpc_network = network.clone();
let rpc_frontier_backend = frontier_backend.clone();
+
+ #[cfg(feature = "pov-estimate")]
+ let rpc_backend = backend.clone();
+
+ #[cfg(feature = "pov-estimate")]
+ let runtime_id = config.chain_spec.runtime_id();
+
let rpc_builder = Box::new(move |deny_unsafe, subscription_executor| {
let full_deps = unique_rpc::FullDeps {
- backend: rpc_frontier_backend.clone(),
+ #[cfg(feature = "pov-estimate")]
+ runtime_id: runtime_id.clone(),
+
+ #[cfg(feature = "pov-estimate")]
+ exec_params: uc_rpc::pov_estimate::ExecutorParams {
+ wasm_method: config.wasm_method,
+ default_heap_pages: config.default_heap_pages,
+ max_runtime_instances: config.max_runtime_instances,
+ runtime_cache_size: config.runtime_cache_size,
+ },
+
+ #[cfg(feature = "pov-estimate")]
+ backend: rpc_backend.clone(),
+ eth_backend: rpc_frontier_backend.clone(),
deny_unsafe,
client: rpc_client.clone(),
pool: rpc_pool.clone(),
node/rpc/Cargo.tomldiffbeforeafterboth--- a/node/rpc/Cargo.toml
+++ b/node/rpc/Cargo.toml
@@ -55,6 +55,7 @@
up-rpc = { path = "../../primitives/rpc" }
app-promotion-rpc = { path = "../../primitives/app_promotion_rpc" }
rmrk-rpc = { path = "../../primitives/rmrk-rpc" }
+up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc" }
up-data-structs = { default-features = false, path = "../../primitives/data-structs" }
[dependencies.serde]
@@ -65,3 +66,4 @@
default = []
std = []
unique-runtime = []
+pov-estimate = ['uc-rpc/pov-estimate']
node/rpc/src/lib.rsdiffbeforeafterboth--- a/node/rpc/src/lib.rs
+++ b/node/rpc/src/lib.rs
@@ -40,7 +40,7 @@
use sc_service::TransactionPool;
use std::{collections::BTreeMap, sync::Arc};
-use up_common::types::opaque::{Hash, AccountId, RuntimeInstance, Index, Block, BlockNumber, Balance};
+use up_common::types::opaque::*;
// RMRK
use up_data_structs::{
@@ -48,6 +48,9 @@
RmrkPartType, RmrkTheme,
};
+#[cfg(feature = "pov-estimate")]
+type FullBackend = sc_service::TFullBackend<Block>;
+
/// Extra dependencies for GRANDPA
pub struct GrandpaDeps<B> {
/// Voting round info.
@@ -82,8 +85,18 @@
pub deny_unsafe: DenyUnsafe,
/// EthFilterApi pool.
pub filter_pool: Option<FilterPool>,
- /// Backend.
- pub backend: Arc<fc_db::Backend<Block>>,
+
+ #[cfg(feature = "pov-estimate")]
+ pub runtime_id: RuntimeId,
+ /// Executor params for PoV estimating
+ #[cfg(feature = "pov-estimate")]
+ pub exec_params: uc_rpc::pov_estimate::ExecutorParams,
+ /// Substrate Backend.
+ #[cfg(feature = "pov-estimate")]
+ pub backend: Arc<FullBackend>,
+
+ /// Ethereum Backend.
+ pub eth_backend: Arc<fc_db::Backend<Block>>,
/// Maximum number of logs in a query.
pub max_past_logs: u32,
/// Maximum fee history cache size.
@@ -162,6 +175,7 @@
RmrkPartType,
RmrkTheme,
>,
+ C::Api: up_pov_estimate_rpc::PovEstimateApi<Block>,
B: sc_client_api::Backend<Block> + Send + Sync + 'static,
B::State: sc_client_api::backend::StateBackend<sp_runtime::traits::HashFor<Block>>,
P: TransactionPool<Block = Block> + 'static,
@@ -182,6 +196,9 @@
#[cfg(not(feature = "unique-runtime"))]
use uc_rpc::{RmrkApiServer, Rmrk};
+ #[cfg(feature = "pov-estimate")]
+ use uc_rpc::pov_estimate::{PovEstimateApiServer, PovEstimate};
+
// use pallet_contracts_rpc::{Contracts, ContractsApi};
use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApiServer};
use substrate_frame_rpc_system::{System, SystemApiServer};
@@ -200,7 +217,17 @@
network,
deny_unsafe,
filter_pool,
+
+ #[cfg(feature = "pov-estimate")]
+ runtime_id,
+
+ #[cfg(feature = "pov-estimate")]
+ exec_params,
+
+ #[cfg(feature = "pov-estimate")]
backend,
+
+ eth_backend,
max_past_logs,
} = deps;
@@ -226,7 +253,7 @@
network.clone(),
signers,
overrides.clone(),
- backend.clone(),
+ eth_backend.clone(),
is_authority,
block_data_cache.clone(),
fee_history_cache,
@@ -244,11 +271,23 @@
#[cfg(not(feature = "unique-runtime"))]
io.merge(Rmrk::new(client.clone()).into_rpc())?;
+ #[cfg(feature = "pov-estimate")]
+ io.merge(
+ PovEstimate::new(
+ client.clone(),
+ backend,
+ deny_unsafe,
+ exec_params,
+ runtime_id,
+ )
+ .into_rpc(),
+ )?;
+
if let Some(filter_pool) = filter_pool {
io.merge(
EthFilter::new(
client.clone(),
- backend,
+ eth_backend,
filter_pool,
500_usize, // max stored filters
max_past_logs,
pallets/common/Cargo.tomldiffbeforeafterboth--- a/pallets/common/Cargo.toml
+++ b/pallets/common/Cargo.toml
@@ -23,6 +23,7 @@
evm-coder = { default-features = false, path = '../../crates/evm-coder' }
ethereum = { version = "0.14.0", default-features = false }
pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }
+up-pov-estimate-rpc = { default-features = false, path = "../../primitives/pov-estimate-rpc" }
serde = { version = "1.0.130", default-features = false }
scale-info = { version = "2.0.1", default-features = false, features = [
@@ -39,6 +40,7 @@
"fp-evm-mapping/std",
"up-data-structs/std",
"pallet-evm/std",
+ "up-pov-estimate-rpc/std",
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
pallets/common/src/lib.rsdiffbeforeafterboth--- a/pallets/common/src/lib.rs
+++ b/pallets/common/src/lib.rs
@@ -115,6 +115,7 @@
RmrkNftChild,
CollectionPermissions,
};
+use up_pov_estimate_rpc::PovInfo;
pub use pallet::*;
use sp_core::H160;
@@ -881,6 +882,8 @@
RmrkPartType,
RmrkBoundedTheme,
RmrkNftChild,
+ // PoV Estimate Info
+ PovInfo,
)>,
),
QueryKind = OptionQuery,
primitives/common/src/types.rsdiffbeforeafterboth--- a/primitives/common/src/types.rs
+++ b/primitives/common/src/types.rs
@@ -29,6 +29,14 @@
pub use super::{BlockNumber, Signature, AccountId, Balance, Index, Hash, AuraId};
+ #[derive(Debug, Clone)]
+ pub enum RuntimeId {
+ Unique,
+ Quartz,
+ Opal,
+ Unknown(sp_std::vec::Vec<u8>),
+ }
+
/// Opaque block header type.
pub type Header = generic::Header<BlockNumber, BlakeTwo256>;
primitives/pov-estimate-rpc/Cargo.tomldiffbeforeafterboth--- /dev/null
+++ b/primitives/pov-estimate-rpc/Cargo.toml
@@ -0,0 +1,28 @@
+[package]
+name = "up-pov-estimate-rpc"
+version = "0.1.0"
+license = "GPLv3"
+edition = "2021"
+
+[dependencies]
+codec = { package = "parity-scale-codec", version = "3.1.2", default-features = false, features = [
+ "derive",
+] }
+serde = { version = "1.0.130", features = ["derive"], default-features = false, optional = true }
+scale-info = { version = "2.0.1", default-features = false, features = ["derive"] }
+sp-core = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
+sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
+sp-api = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
+sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
+
+[features]
+default = ["std"]
+std = [
+ "codec/std",
+ "serde/std",
+ "scale-info/std",
+ "sp-core/std",
+ "sp-std/std",
+ "sp-api/std",
+ "sp-runtime/std",
+]
primitives/pov-estimate-rpc/src/lib.rsdiffbeforeafterboth--- /dev/null
+++ b/primitives/pov-estimate-rpc/src/lib.rs
@@ -0,0 +1,49 @@
+// 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/>.
+
+#![cfg_attr(not(feature = "std"), no_std)]
+
+use scale_info::TypeInfo;
+use sp_std::vec::Vec;
+
+#[cfg(feature = "std")]
+use serde::Serialize;
+
+use sp_runtime::ApplyExtrinsicResult;
+use sp_core::Bytes;
+
+#[cfg_attr(feature = "std", derive(Serialize))]
+#[derive(Debug, TypeInfo)]
+pub struct PovInfo {
+ pub proof_size: u64,
+ pub compact_proof_size: u64,
+ pub compressed_proof_size: u64,
+ pub results: Vec<ApplyExtrinsicResult>,
+ pub key_values: Vec<TrieKeyValue>,
+}
+
+#[cfg_attr(feature = "std", derive(Serialize))]
+#[derive(Debug, TypeInfo)]
+pub struct TrieKeyValue {
+ pub key: Vec<u8>,
+ pub value: Vec<u8>,
+}
+
+sp_api::decl_runtime_apis! {
+ pub trait PovEstimateApi {
+ fn pov_estimate(uxt: Bytes) -> ApplyExtrinsicResult;
+ }
+}
runtime/common/runtime_apis.rsdiffbeforeafterboth--- a/runtime/common/runtime_apis.rs
+++ b/runtime/common/runtime_apis.rs
@@ -35,7 +35,7 @@
) => {
use sp_std::prelude::*;
use sp_api::impl_runtime_apis;
- use sp_core::{crypto::KeyTypeId, OpaqueMetadata, H256, U256, H160};
+ use sp_core::{crypto::KeyTypeId, OpaqueMetadata, H256, U256, H160, Bytes};
use sp_runtime::{
Permill,
traits::Block as BlockT,
@@ -778,6 +778,29 @@
}
}
+ impl up_pov_estimate_rpc::PovEstimateApi<Block> for Runtime {
+ #[allow(unused_variables)]
+ fn pov_estimate(uxt: Bytes) -> ApplyExtrinsicResult {
+ #[cfg(feature = "pov-estimate")]
+ {
+ use codec::Decode;
+
+ let uxt_decode = <<Block as BlockT>::Extrinsic as Decode>::decode(&mut &*uxt)
+ .map_err(|_| DispatchError::Other("failed to decode the extrinsic"));
+
+ let uxt = match uxt_decode {
+ Ok(uxt) => uxt,
+ Err(err) => return Ok(err.into()),
+ };
+
+ Executive::apply_extrinsic(uxt)
+ }
+
+ #[cfg(not(feature = "pov-estimate"))]
+ return Ok(unsupported!());
+ }
+ }
+
#[cfg(feature = "try-runtime")]
impl frame_try_runtime::TryRuntime<Block> for Runtime {
fn on_runtime_upgrade(checks: bool) -> (frame_support::pallet_prelude::Weight, frame_support::pallet_prelude::Weight) {
runtime/opal/Cargo.tomldiffbeforeafterboth--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -127,6 +127,7 @@
'pallet-base-fee/std',
'fp-rpc/std',
'up-rpc/std',
+ 'up-pov-estimate-rpc/std',
'app-promotion-rpc/std',
'fp-evm-mapping/std',
'fp-self-contained/std',
@@ -184,6 +185,7 @@
'pallet-test-utils',
]
become-sapphire = []
+pov-estimate = []
refungible = []
scheduler = []
@@ -468,6 +470,7 @@
derivative = "2.2.0"
pallet-unique = { path = '../../pallets/unique', default-features = false }
up-rpc = { path = "../../primitives/rpc", default-features = false }
+up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", default-features = false }
app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }
rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }
fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }
runtime/quartz/Cargo.tomldiffbeforeafterboth--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -122,6 +122,7 @@
'pallet-base-fee/std',
'fp-rpc/std',
'up-rpc/std',
+ 'up-pov-estimate-rpc/std',
'app-promotion-rpc/std',
'fp-evm-mapping/std',
'fp-self-contained/std',
@@ -169,6 +170,7 @@
]
limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']
quartz-runtime = ['refungible', 'app-promotion', 'foreign-assets']
+pov-estimate = []
refungible = []
scheduler = []
@@ -461,6 +463,7 @@
derivative = "2.2.0"
pallet-unique = { path = '../../pallets/unique', default-features = false }
up-rpc = { path = "../../primitives/rpc", default-features = false }
+up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", default-features = false }
app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }
fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }
fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }
runtime/unique/Cargo.tomldiffbeforeafterboth--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -123,6 +123,7 @@
'pallet-base-fee/std',
'fp-rpc/std',
'up-rpc/std',
+ 'up-pov-estimate-rpc/std',
'app-promotion-rpc/std',
'fp-evm-mapping/std',
'fp-self-contained/std',
@@ -170,6 +171,7 @@
]
limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']
unique-runtime = ['foreign-assets']
+pov-estimate = []
stubgen = ["evm-coder/stubgen"]
refungible = []
@@ -454,6 +456,7 @@
derivative = "2.2.0"
pallet-unique = { path = '../../pallets/unique', default-features = false }
up-rpc = { path = "../../primitives/rpc", default-features = false }
+up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", default-features = false }
app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }
rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }
pallet-inflation = { path = '../../pallets/inflation', default-features = false }
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 } from './default';
+import type { PalletEvmAccountBasicCrossAccountIdRepr, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsPartPartType, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsTheme, 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';
@@ -436,6 +436,12 @@
**/
queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfoV1>>;
};
+ povinfo: {
+ /**
+ * 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
tests/src/interfaces/augment-types.tsdiffbeforeafterboth1// Auto-generated via `yarn polkadot-types-from-defs`, 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/types/types/registry';78import 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, 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, 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';9import type { Data, StorageKey } from '@polkadot/types';10import 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';11import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets';12import type { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations';13import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura';14import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';15import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';16import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeGenesisConfiguration, BabeGenesisConfigurationV1, BabeWeight, Epoch, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, OpaqueKeyOwnershipProof, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe';17import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, ReserveData, ReserveIdentifier, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances';18import type { BeefyAuthoritySet, BeefyCommitment, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefyPayloadId, BeefySignedCommitment, MmrRootHash, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';19import type { BenchmarkBatch, BenchmarkConfig, BenchmarkList, BenchmarkMetadata, BenchmarkParameter, BenchmarkResult } from '@polkadot/types/interfaces/benchmark';20import type { CheckInherentsResult, InherentData, InherentIdentifier } from '@polkadot/types/interfaces/blockbuilder';21import type { BridgeMessageId, BridgedBlockHash, BridgedBlockNumber, BridgedHeader, CallOrigin, ChainId, DeliveredMessages, DispatchFeePayment, InboundLaneData, InboundRelayer, InitializationData, LaneId, MessageData, MessageKey, MessageNonce, MessagesDeliveryProofOf, MessagesProofOf, OperatingMode, OutboundLaneData, OutboundMessageFee, OutboundPayload, Parameter, RelayerId, UnrewardedRelayer, UnrewardedRelayersState } from '@polkadot/types/interfaces/bridges';22import type { BlockHash } from '@polkadot/types/interfaces/chain';23import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';24import type { StatementKind } from '@polkadot/types/interfaces/claims';25import type { CollectiveOrigin, MemberCount, ProposalIndex, Votes, VotesTo230 } from '@polkadot/types/interfaces/collective';26import type { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus';27import type { AliveContractInfo, CodeHash, CodeSource, CodeUploadRequest, CodeUploadResult, CodeUploadResultValue, ContractCallFlags, ContractCallRequest, ContractExecResult, ContractExecResultOk, ContractExecResultResult, ContractExecResultSuccessTo255, ContractExecResultSuccessTo260, ContractExecResultTo255, ContractExecResultTo260, ContractExecResultTo267, ContractExecResultU64, ContractInfo, ContractInstantiateResult, ContractInstantiateResultTo267, ContractInstantiateResultTo299, ContractInstantiateResultU64, ContractReturnFlags, ContractStorageKey, DeletedContract, ExecReturnValue, Gas, HostFnWeights, HostFnWeightsTo264, InstantiateRequest, InstantiateRequestV1, InstantiateRequestV2, InstantiateReturnValue, InstantiateReturnValueOk, InstantiateReturnValueTo267, InstructionWeights, Limits, LimitsTo264, PrefabWasmModule, RentProjection, Schedule, ScheduleTo212, ScheduleTo258, ScheduleTo264, SeedOf, StorageDeposit, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts';28import type { ContractConstructorSpecLatest, ContractConstructorSpecV0, ContractConstructorSpecV1, ContractConstructorSpecV2, ContractConstructorSpecV3, ContractContractSpecV0, ContractContractSpecV1, ContractContractSpecV2, ContractContractSpecV3, ContractContractSpecV4, ContractCryptoHasher, ContractDiscriminant, ContractDisplayName, ContractEventParamSpecLatest, ContractEventParamSpecV0, ContractEventParamSpecV2, ContractEventSpecLatest, ContractEventSpecV0, ContractEventSpecV1, ContractEventSpecV2, ContractLayoutArray, ContractLayoutCell, ContractLayoutEnum, ContractLayoutHash, ContractLayoutHashingStrategy, ContractLayoutKey, ContractLayoutStruct, ContractLayoutStructField, ContractMessageParamSpecLatest, ContractMessageParamSpecV0, ContractMessageParamSpecV2, ContractMessageSpecLatest, ContractMessageSpecV0, ContractMessageSpecV1, ContractMessageSpecV2, ContractMetadata, ContractMetadataLatest, ContractMetadataV0, ContractMetadataV1, ContractMetadataV2, ContractMetadataV3, ContractMetadataV4, ContractProject, ContractProjectContract, ContractProjectInfo, ContractProjectSource, ContractProjectV0, ContractSelector, ContractStorageLayout, ContractTypeSpec } from '@polkadot/types/interfaces/contractsAbi';29import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot/types/interfaces/crowdloan';30import type { CollationInfo, CollationInfoV1, ConfigData, MessageId, OverweightIndex, PageCounter, PageIndexData } from '@polkadot/types/interfaces/cumulus';31import type { AccountVote, AccountVoteSplit, AccountVoteStandard, Conviction, Delegations, PreimageStatus, PreimageStatusAvailable, PriorLock, PropIndex, Proposal, ProxyState, ReferendumIndex, ReferendumInfo, ReferendumInfoFinished, ReferendumInfoTo239, ReferendumStatus, Tally, Voting, VotingDelegating, VotingDirect, VotingDirectVote } from '@polkadot/types/interfaces/democracy';32import type { BlockStats } from '@polkadot/types/interfaces/dev';33import type { ApprovalFlag, DefunctVoter, Renouncing, SetIndex, Vote, VoteIndex, VoteThreshold, VoterInfo } from '@polkadot/types/interfaces/elections';34import type { CreatedBlock, ImportedAux } from '@polkadot/types/interfaces/engine';35import type { BlockV0, BlockV1, BlockV2, EIP1559Transaction, EIP2930Transaction, EthAccessList, EthAccessListItem, EthAccount, EthAddress, EthBlock, EthBloom, EthCallRequest, EthFeeHistory, EthFilter, EthFilterAddress, EthFilterChanges, EthFilterTopic, EthFilterTopicEntry, EthFilterTopicInner, EthHeader, EthLog, EthReceipt, EthReceiptV0, EthReceiptV3, EthRichBlock, EthRichHeader, EthStorageProof, EthSubKind, EthSubParams, EthSubResult, EthSyncInfo, EthSyncStatus, EthTransaction, EthTransactionAction, EthTransactionCondition, EthTransactionRequest, EthTransactionSignature, EthTransactionStatus, EthWork, EthereumAccountId, EthereumAddress, EthereumLookupSource, EthereumSignature, LegacyTransaction, TransactionV0, TransactionV1, TransactionV2 } from '@polkadot/types/interfaces/eth';36import type { EvmAccount, EvmCallInfo, EvmCreateInfo, EvmLog, EvmVicinity, ExitError, ExitFatal, ExitReason, ExitRevert, ExitSucceed } from '@polkadot/types/interfaces/evm';37import type { AnySignature, EcdsaSignature, Ed25519Signature, Era, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV4, ExtrinsicSignature, ExtrinsicSignatureV4, ExtrinsicUnknown, ExtrinsicV4, ImmortalEra, MortalEra, MultiSignature, Signature, SignerPayload, Sr25519Signature } from '@polkadot/types/interfaces/extrinsics';38import type { AssetOptions, Owner, PermissionLatest, PermissionVersions, PermissionsV1 } from '@polkadot/types/interfaces/genericAsset';39import type { ActiveGilt, ActiveGiltsTotal, ActiveIndex, GiltBid } from '@polkadot/types/interfaces/gilt';40import type { AuthorityIndex, AuthorityList, AuthoritySet, AuthoritySetChange, AuthoritySetChanges, AuthorityWeight, DelayKind, DelayKindBest, EncodedFinalityProofs, ForkTreePendingChange, ForkTreePendingChangeNode, GrandpaCommit, GrandpaEquivocation, GrandpaEquivocationProof, GrandpaEquivocationValue, GrandpaJustification, GrandpaPrecommit, GrandpaPrevote, GrandpaSignedPrecommit, JustificationNotification, KeyOwnerProof, NextAuthority, PendingChange, PendingPause, PendingResume, Precommits, Prevotes, ReportedRoundStates, RoundState, SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa';41import type { IdentityFields, IdentityInfo, IdentityInfoAdditional, IdentityInfoTo198, IdentityJudgement, RegistrarIndex, RegistrarInfo, Registration, RegistrationJudgement, RegistrationTo198 } from '@polkadot/types/interfaces/identity';42import type { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from '@polkadot/types/interfaces/imOnline';43import type { CallIndex, LotteryConfig } from '@polkadot/types/interfaces/lottery';44import type { ErrorMetadataLatest, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV12, ErrorMetadataV13, ErrorMetadataV14, ErrorMetadataV9, EventMetadataLatest, EventMetadataV10, EventMetadataV11, EventMetadataV12, EventMetadataV13, EventMetadataV14, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, ExtrinsicMetadataV12, ExtrinsicMetadataV13, ExtrinsicMetadataV14, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV12, FunctionArgumentMetadataV13, FunctionArgumentMetadataV14, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV12, FunctionMetadataV13, FunctionMetadataV14, FunctionMetadataV9, MetadataAll, MetadataLatest, MetadataV10, MetadataV11, MetadataV12, MetadataV13, MetadataV14, MetadataV9, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV12, ModuleConstantMetadataV13, ModuleConstantMetadataV9, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV12, ModuleMetadataV13, ModuleMetadataV9, OpaqueMetadata, PalletCallMetadataLatest, PalletCallMetadataV14, PalletConstantMetadataLatest, PalletConstantMetadataV14, PalletErrorMetadataLatest, PalletErrorMetadataV14, PalletEventMetadataLatest, PalletEventMetadataV14, PalletMetadataLatest, PalletMetadataV14, PalletStorageMetadataLatest, PalletStorageMetadataV14, PortableType, PortableTypeV14, SignedExtensionMetadataLatest, SignedExtensionMetadataV14, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV12, StorageEntryMetadataV13, StorageEntryMetadataV14, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV12, StorageEntryModifierV13, StorageEntryModifierV14, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV12, StorageEntryTypeV13, StorageEntryTypeV14, StorageEntryTypeV9, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV12, StorageHasherV13, StorageHasherV14, StorageHasherV9, StorageMetadataV10, StorageMetadataV11, StorageMetadataV12, StorageMetadataV13, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata';45import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafBatchProof, MmrLeafIndex, MmrLeafProof, MmrNodeIndex, MmrProof } from '@polkadot/types/interfaces/mmr';46import type { NpApiError } from '@polkadot/types/interfaces/nompools';47import type { StorageKind } from '@polkadot/types/interfaces/offchain';48import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';49import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateEvent, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, CoreAssignment, CoreIndex, CoreOccupied, CoreState, DisputeLocation, DisputeResult, DisputeState, DisputeStatement, DisputeStatementSet, DoubleVoteReport, DownwardMessage, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, GroupRotationInfo, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, OccupiedCore, OccupiedCoreAssumption, OldV1SessionInfo, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PersistedValidationData, PvfCheckStatement, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, ScheduledCore, Scheduling, ScrapedOnChainVotes, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, SlotRange10, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersData10, WinnersDataTuple, WinnersDataTuple10, WinningData, WinningData10, WinningDataEntry } from '@polkadot/types/interfaces/parachains';50import type { FeeDetails, InclusionFee, RuntimeDispatchInfo, RuntimeDispatchInfoV1, RuntimeDispatchInfoV2 } from '@polkadot/types/interfaces/payment';51import type { Approvals } from '@polkadot/types/interfaces/poll';52import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy';53import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';54import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';55import type { RpcMethods } from '@polkadot/types/interfaces/rpc';56import type { AccountId, AccountId20, AccountId32, AccountId33, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, SlotDuration, StorageData, StorageInfo, StorageProof, TransactionInfo, TransactionLongevity, TransactionPriority, TransactionStorageProof, TransactionTag, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier, WeightV1, WeightV2 } from '@polkadot/types/interfaces/runtime';57import type { Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDef, Si0TypeDefArray, Si0TypeDefBitSequence, Si0TypeDefCompact, Si0TypeDefComposite, Si0TypeDefPhantom, Si0TypeDefPrimitive, Si0TypeDefSequence, Si0TypeDefTuple, Si0TypeDefVariant, Si0TypeParameter, Si0Variant, Si1Field, Si1LookupTypeId, Si1Path, Si1Type, Si1TypeDef, Si1TypeDefArray, Si1TypeDefBitSequence, Si1TypeDefCompact, Si1TypeDefComposite, Si1TypeDefPrimitive, Si1TypeDefSequence, Si1TypeDefTuple, Si1TypeDefVariant, Si1TypeParameter, Si1Variant, SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray, SiTypeDefBitSequence, SiTypeDefCompact, SiTypeDefComposite, SiTypeDefPrimitive, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiTypeParameter, SiVariant } from '@polkadot/types/interfaces/scaleInfo';58import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';59import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';60import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';61import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactAssignmentsTo265, CompactAssignmentsWith16, CompactAssignmentsWith24, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, RawSolutionTo265, RawSolutionWith16, RawSolutionWith24, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SignedSubmission, SignedSubmissionOf, SignedSubmissionTo276, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, Supports, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking';62import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, MigrationStatusResult, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, RuntimeVersionPre3, RuntimeVersionPre4, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from '@polkadot/types/interfaces/state';63import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';64import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ApplyExtrinsicResultPre6, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorModulePre6, DispatchErrorModuleU8, DispatchErrorModuleU8a, DispatchErrorPre6, DispatchErrorPre6First, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchOutcomePre6, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, PerDispatchClassU32, PerDispatchClassWeight, PerDispatchClassWeightsPerClass, Phase, RawOrigin, RefCount, RefCountTo259, SyncState, SystemOrigin, TokenError, TransactionValidityError, TransactionalError, UnknownTransaction, WeightPerClass } from '@polkadot/types/interfaces/system';65import type { Bounty, BountyIndex, BountyStatus, BountyStatusActive, BountyStatusCuratorProposed, BountyStatusPendingPayout, OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal } from '@polkadot/types/interfaces/treasury';66import type { Multiplier } from '@polkadot/types/interfaces/txpayment';67import type { TransactionSource, TransactionValidity, ValidTransaction } from '@polkadot/types/interfaces/txqueue';68import type { ClassDetails, ClassId, ClassMetadata, DepositBalance, DepositBalanceOf, DestroyWitness, InstanceDetails, InstanceId, InstanceMetadata } from '@polkadot/types/interfaces/uniques';69import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';70import type { VestingInfo } from '@polkadot/types/interfaces/vesting';71import type { AssetInstance, AssetInstanceV0, AssetInstanceV1, AssetInstanceV2, BodyId, BodyPart, DoubleEncodedCall, Fungibility, FungibilityV0, FungibilityV1, FungibilityV2, InboundStatus, InstructionV2, InteriorMultiLocation, Junction, JunctionV0, JunctionV1, JunctionV2, Junctions, JunctionsV1, JunctionsV2, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, NetworkId, OriginKindV0, OriginKindV1, OriginKindV2, OutboundStatus, Outcome, QueryId, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV2Result, VersionMigrationStage, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WildFungibility, WildFungibilityV0, WildFungibilityV1, WildFungibilityV2, WildMultiAsset, WildMultiAssetV1, WildMultiAssetV2, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmOrder, XcmOrderV0, XcmOrderV1, XcmOrderV2, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm';7273declare module '@polkadot/types/types/registry' {74 interface InterfaceTypes {75 AbridgedCandidateReceipt: AbridgedCandidateReceipt;76 AbridgedHostConfiguration: AbridgedHostConfiguration;77 AbridgedHrmpChannel: AbridgedHrmpChannel;78 AccountData: AccountData;79 AccountId: AccountId;80 AccountId20: AccountId20;81 AccountId32: AccountId32;82 AccountId33: AccountId33;83 AccountIdOf: AccountIdOf;84 AccountIndex: AccountIndex;85 AccountInfo: AccountInfo;86 AccountInfoWithDualRefCount: AccountInfoWithDualRefCount;87 AccountInfoWithProviders: AccountInfoWithProviders;88 AccountInfoWithRefCount: AccountInfoWithRefCount;89 AccountInfoWithRefCountU8: AccountInfoWithRefCountU8;90 AccountInfoWithTripleRefCount: AccountInfoWithTripleRefCount;91 AccountStatus: AccountStatus;92 AccountValidity: AccountValidity;93 AccountVote: AccountVote;94 AccountVoteSplit: AccountVoteSplit;95 AccountVoteStandard: AccountVoteStandard;96 ActiveEraInfo: ActiveEraInfo;97 ActiveGilt: ActiveGilt;98 ActiveGiltsTotal: ActiveGiltsTotal;99 ActiveIndex: ActiveIndex;100 ActiveRecovery: ActiveRecovery;101 Address: Address;102 AliveContractInfo: AliveContractInfo;103 AllowedSlots: AllowedSlots;104 AnySignature: AnySignature;105 ApiId: ApiId;106 ApplyExtrinsicResult: ApplyExtrinsicResult;107 ApplyExtrinsicResultPre6: ApplyExtrinsicResultPre6;108 ApprovalFlag: ApprovalFlag;109 Approvals: Approvals;110 ArithmeticError: ArithmeticError;111 AssetApproval: AssetApproval;112 AssetApprovalKey: AssetApprovalKey;113 AssetBalance: AssetBalance;114 AssetDestroyWitness: AssetDestroyWitness;115 AssetDetails: AssetDetails;116 AssetId: AssetId;117 AssetInstance: AssetInstance;118 AssetInstanceV0: AssetInstanceV0;119 AssetInstanceV1: AssetInstanceV1;120 AssetInstanceV2: AssetInstanceV2;121 AssetMetadata: AssetMetadata;122 AssetOptions: AssetOptions;123 AssignmentId: AssignmentId;124 AssignmentKind: AssignmentKind;125 AttestedCandidate: AttestedCandidate;126 AuctionIndex: AuctionIndex;127 AuthIndex: AuthIndex;128 AuthorityDiscoveryId: AuthorityDiscoveryId;129 AuthorityId: AuthorityId;130 AuthorityIndex: AuthorityIndex;131 AuthorityList: AuthorityList;132 AuthoritySet: AuthoritySet;133 AuthoritySetChange: AuthoritySetChange;134 AuthoritySetChanges: AuthoritySetChanges;135 AuthoritySignature: AuthoritySignature;136 AuthorityWeight: AuthorityWeight;137 AvailabilityBitfield: AvailabilityBitfield;138 AvailabilityBitfieldRecord: AvailabilityBitfieldRecord;139 BabeAuthorityWeight: BabeAuthorityWeight;140 BabeBlockWeight: BabeBlockWeight;141 BabeEpochConfiguration: BabeEpochConfiguration;142 BabeEquivocationProof: BabeEquivocationProof;143 BabeGenesisConfiguration: BabeGenesisConfiguration;144 BabeGenesisConfigurationV1: BabeGenesisConfigurationV1;145 BabeWeight: BabeWeight;146 BackedCandidate: BackedCandidate;147 Balance: Balance;148 BalanceLock: BalanceLock;149 BalanceLockTo212: BalanceLockTo212;150 BalanceOf: BalanceOf;151 BalanceStatus: BalanceStatus;152 BeefyAuthoritySet: BeefyAuthoritySet;153 BeefyCommitment: BeefyCommitment;154 BeefyId: BeefyId;155 BeefyKey: BeefyKey;156 BeefyNextAuthoritySet: BeefyNextAuthoritySet;157 BeefyPayload: BeefyPayload;158 BeefyPayloadId: BeefyPayloadId;159 BeefySignedCommitment: BeefySignedCommitment;160 BenchmarkBatch: BenchmarkBatch;161 BenchmarkConfig: BenchmarkConfig;162 BenchmarkList: BenchmarkList;163 BenchmarkMetadata: BenchmarkMetadata;164 BenchmarkParameter: BenchmarkParameter;165 BenchmarkResult: BenchmarkResult;166 Bid: Bid;167 Bidder: Bidder;168 BidKind: BidKind;169 BitVec: BitVec;170 Block: Block;171 BlockAttestations: BlockAttestations;172 BlockHash: BlockHash;173 BlockLength: BlockLength;174 BlockNumber: BlockNumber;175 BlockNumberFor: BlockNumberFor;176 BlockNumberOf: BlockNumberOf;177 BlockStats: BlockStats;178 BlockTrace: BlockTrace;179 BlockTraceEvent: BlockTraceEvent;180 BlockTraceEventData: BlockTraceEventData;181 BlockTraceSpan: BlockTraceSpan;182 BlockV0: BlockV0;183 BlockV1: BlockV1;184 BlockV2: BlockV2;185 BlockWeights: BlockWeights;186 BodyId: BodyId;187 BodyPart: BodyPart;188 bool: bool;189 Bool: Bool;190 Bounty: Bounty;191 BountyIndex: BountyIndex;192 BountyStatus: BountyStatus;193 BountyStatusActive: BountyStatusActive;194 BountyStatusCuratorProposed: BountyStatusCuratorProposed;195 BountyStatusPendingPayout: BountyStatusPendingPayout;196 BridgedBlockHash: BridgedBlockHash;197 BridgedBlockNumber: BridgedBlockNumber;198 BridgedHeader: BridgedHeader;199 BridgeMessageId: BridgeMessageId;200 BufferedSessionChange: BufferedSessionChange;201 Bytes: Bytes;202 Call: Call;203 CallHash: CallHash;204 CallHashOf: CallHashOf;205 CallIndex: CallIndex;206 CallOrigin: CallOrigin;207 CandidateCommitments: CandidateCommitments;208 CandidateDescriptor: CandidateDescriptor;209 CandidateEvent: CandidateEvent;210 CandidateHash: CandidateHash;211 CandidateInfo: CandidateInfo;212 CandidatePendingAvailability: CandidatePendingAvailability;213 CandidateReceipt: CandidateReceipt;214 ChainId: ChainId;215 ChainProperties: ChainProperties;216 ChainType: ChainType;217 ChangesTrieConfiguration: ChangesTrieConfiguration;218 ChangesTrieSignal: ChangesTrieSignal;219 CheckInherentsResult: CheckInherentsResult;220 ClassDetails: ClassDetails;221 ClassId: ClassId;222 ClassMetadata: ClassMetadata;223 CodecHash: CodecHash;224 CodeHash: CodeHash;225 CodeSource: CodeSource;226 CodeUploadRequest: CodeUploadRequest;227 CodeUploadResult: CodeUploadResult;228 CodeUploadResultValue: CodeUploadResultValue;229 CollationInfo: CollationInfo;230 CollationInfoV1: CollationInfoV1;231 CollatorId: CollatorId;232 CollatorSignature: CollatorSignature;233 CollectiveOrigin: CollectiveOrigin;234 CommittedCandidateReceipt: CommittedCandidateReceipt;235 CompactAssignments: CompactAssignments;236 CompactAssignmentsTo257: CompactAssignmentsTo257;237 CompactAssignmentsTo265: CompactAssignmentsTo265;238 CompactAssignmentsWith16: CompactAssignmentsWith16;239 CompactAssignmentsWith24: CompactAssignmentsWith24;240 CompactScore: CompactScore;241 CompactScoreCompact: CompactScoreCompact;242 ConfigData: ConfigData;243 Consensus: Consensus;244 ConsensusEngineId: ConsensusEngineId;245 ConsumedWeight: ConsumedWeight;246 ContractCallFlags: ContractCallFlags;247 ContractCallRequest: ContractCallRequest;248 ContractConstructorSpecLatest: ContractConstructorSpecLatest;249 ContractConstructorSpecV0: ContractConstructorSpecV0;250 ContractConstructorSpecV1: ContractConstructorSpecV1;251 ContractConstructorSpecV2: ContractConstructorSpecV2;252 ContractConstructorSpecV3: ContractConstructorSpecV3;253 ContractContractSpecV0: ContractContractSpecV0;254 ContractContractSpecV1: ContractContractSpecV1;255 ContractContractSpecV2: ContractContractSpecV2;256 ContractContractSpecV3: ContractContractSpecV3;257 ContractContractSpecV4: ContractContractSpecV4;258 ContractCryptoHasher: ContractCryptoHasher;259 ContractDiscriminant: ContractDiscriminant;260 ContractDisplayName: ContractDisplayName;261 ContractEventParamSpecLatest: ContractEventParamSpecLatest;262 ContractEventParamSpecV0: ContractEventParamSpecV0;263 ContractEventParamSpecV2: ContractEventParamSpecV2;264 ContractEventSpecLatest: ContractEventSpecLatest;265 ContractEventSpecV0: ContractEventSpecV0;266 ContractEventSpecV1: ContractEventSpecV1;267 ContractEventSpecV2: ContractEventSpecV2;268 ContractExecResult: ContractExecResult;269 ContractExecResultOk: ContractExecResultOk;270 ContractExecResultResult: ContractExecResultResult;271 ContractExecResultSuccessTo255: ContractExecResultSuccessTo255;272 ContractExecResultSuccessTo260: ContractExecResultSuccessTo260;273 ContractExecResultTo255: ContractExecResultTo255;274 ContractExecResultTo260: ContractExecResultTo260;275 ContractExecResultTo267: ContractExecResultTo267;276 ContractExecResultU64: ContractExecResultU64;277 ContractInfo: ContractInfo;278 ContractInstantiateResult: ContractInstantiateResult;279 ContractInstantiateResultTo267: ContractInstantiateResultTo267;280 ContractInstantiateResultTo299: ContractInstantiateResultTo299;281 ContractInstantiateResultU64: ContractInstantiateResultU64;282 ContractLayoutArray: ContractLayoutArray;283 ContractLayoutCell: ContractLayoutCell;284 ContractLayoutEnum: ContractLayoutEnum;285 ContractLayoutHash: ContractLayoutHash;286 ContractLayoutHashingStrategy: ContractLayoutHashingStrategy;287 ContractLayoutKey: ContractLayoutKey;288 ContractLayoutStruct: ContractLayoutStruct;289 ContractLayoutStructField: ContractLayoutStructField;290 ContractMessageParamSpecLatest: ContractMessageParamSpecLatest;291 ContractMessageParamSpecV0: ContractMessageParamSpecV0;292 ContractMessageParamSpecV2: ContractMessageParamSpecV2;293 ContractMessageSpecLatest: ContractMessageSpecLatest;294 ContractMessageSpecV0: ContractMessageSpecV0;295 ContractMessageSpecV1: ContractMessageSpecV1;296 ContractMessageSpecV2: ContractMessageSpecV2;297 ContractMetadata: ContractMetadata;298 ContractMetadataLatest: ContractMetadataLatest;299 ContractMetadataV0: ContractMetadataV0;300 ContractMetadataV1: ContractMetadataV1;301 ContractMetadataV2: ContractMetadataV2;302 ContractMetadataV3: ContractMetadataV3;303 ContractMetadataV4: ContractMetadataV4;304 ContractProject: ContractProject;305 ContractProjectContract: ContractProjectContract;306 ContractProjectInfo: ContractProjectInfo;307 ContractProjectSource: ContractProjectSource;308 ContractProjectV0: ContractProjectV0;309 ContractReturnFlags: ContractReturnFlags;310 ContractSelector: ContractSelector;311 ContractStorageKey: ContractStorageKey;312 ContractStorageLayout: ContractStorageLayout;313 ContractTypeSpec: ContractTypeSpec;314 Conviction: Conviction;315 CoreAssignment: CoreAssignment;316 CoreIndex: CoreIndex;317 CoreOccupied: CoreOccupied;318 CoreState: CoreState;319 CrateVersion: CrateVersion;320 CreatedBlock: CreatedBlock;321 CumulusPalletDmpQueueCall: CumulusPalletDmpQueueCall;322 CumulusPalletDmpQueueConfigData: CumulusPalletDmpQueueConfigData;323 CumulusPalletDmpQueueError: CumulusPalletDmpQueueError;324 CumulusPalletDmpQueueEvent: CumulusPalletDmpQueueEvent;325 CumulusPalletDmpQueuePageIndexData: CumulusPalletDmpQueuePageIndexData;326 CumulusPalletParachainSystemCall: CumulusPalletParachainSystemCall;327 CumulusPalletParachainSystemError: CumulusPalletParachainSystemError;328 CumulusPalletParachainSystemEvent: CumulusPalletParachainSystemEvent;329 CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot;330 CumulusPalletXcmCall: CumulusPalletXcmCall;331 CumulusPalletXcmError: CumulusPalletXcmError;332 CumulusPalletXcmEvent: CumulusPalletXcmEvent;333 CumulusPalletXcmpQueueCall: CumulusPalletXcmpQueueCall;334 CumulusPalletXcmpQueueError: CumulusPalletXcmpQueueError;335 CumulusPalletXcmpQueueEvent: CumulusPalletXcmpQueueEvent;336 CumulusPalletXcmpQueueInboundChannelDetails: CumulusPalletXcmpQueueInboundChannelDetails;337 CumulusPalletXcmpQueueInboundState: CumulusPalletXcmpQueueInboundState;338 CumulusPalletXcmpQueueOutboundChannelDetails: CumulusPalletXcmpQueueOutboundChannelDetails;339 CumulusPalletXcmpQueueOutboundState: CumulusPalletXcmpQueueOutboundState;340 CumulusPalletXcmpQueueQueueConfigData: CumulusPalletXcmpQueueQueueConfigData;341 CumulusPrimitivesParachainInherentParachainInherentData: CumulusPrimitivesParachainInherentParachainInherentData;342 Data: Data;343 DeferredOffenceOf: DeferredOffenceOf;344 DefunctVoter: DefunctVoter;345 DelayKind: DelayKind;346 DelayKindBest: DelayKindBest;347 Delegations: Delegations;348 DeletedContract: DeletedContract;349 DeliveredMessages: DeliveredMessages;350 DepositBalance: DepositBalance;351 DepositBalanceOf: DepositBalanceOf;352 DestroyWitness: DestroyWitness;353 Digest: Digest;354 DigestItem: DigestItem;355 DigestOf: DigestOf;356 DispatchClass: DispatchClass;357 DispatchError: DispatchError;358 DispatchErrorModule: DispatchErrorModule;359 DispatchErrorModulePre6: DispatchErrorModulePre6;360 DispatchErrorModuleU8: DispatchErrorModuleU8;361 DispatchErrorModuleU8a: DispatchErrorModuleU8a;362 DispatchErrorPre6: DispatchErrorPre6;363 DispatchErrorPre6First: DispatchErrorPre6First;364 DispatchErrorTo198: DispatchErrorTo198;365 DispatchFeePayment: DispatchFeePayment;366 DispatchInfo: DispatchInfo;367 DispatchInfoTo190: DispatchInfoTo190;368 DispatchInfoTo244: DispatchInfoTo244;369 DispatchOutcome: DispatchOutcome;370 DispatchOutcomePre6: DispatchOutcomePre6;371 DispatchResult: DispatchResult;372 DispatchResultOf: DispatchResultOf;373 DispatchResultTo198: DispatchResultTo198;374 DisputeLocation: DisputeLocation;375 DisputeResult: DisputeResult;376 DisputeState: DisputeState;377 DisputeStatement: DisputeStatement;378 DisputeStatementSet: DisputeStatementSet;379 DoubleEncodedCall: DoubleEncodedCall;380 DoubleVoteReport: DoubleVoteReport;381 DownwardMessage: DownwardMessage;382 EcdsaSignature: EcdsaSignature;383 Ed25519Signature: Ed25519Signature;384 EIP1559Transaction: EIP1559Transaction;385 EIP2930Transaction: EIP2930Transaction;386 ElectionCompute: ElectionCompute;387 ElectionPhase: ElectionPhase;388 ElectionResult: ElectionResult;389 ElectionScore: ElectionScore;390 ElectionSize: ElectionSize;391 ElectionStatus: ElectionStatus;392 EncodedFinalityProofs: EncodedFinalityProofs;393 EncodedJustification: EncodedJustification;394 Epoch: Epoch;395 EpochAuthorship: EpochAuthorship;396 Era: Era;397 EraIndex: EraIndex;398 EraPoints: EraPoints;399 EraRewardPoints: EraRewardPoints;400 EraRewards: EraRewards;401 ErrorMetadataLatest: ErrorMetadataLatest;402 ErrorMetadataV10: ErrorMetadataV10;403 ErrorMetadataV11: ErrorMetadataV11;404 ErrorMetadataV12: ErrorMetadataV12;405 ErrorMetadataV13: ErrorMetadataV13;406 ErrorMetadataV14: ErrorMetadataV14;407 ErrorMetadataV9: ErrorMetadataV9;408 EthAccessList: EthAccessList;409 EthAccessListItem: EthAccessListItem;410 EthAccount: EthAccount;411 EthAddress: EthAddress;412 EthBlock: EthBlock;413 EthBloom: EthBloom;414 EthbloomBloom: EthbloomBloom;415 EthCallRequest: EthCallRequest;416 EthereumAccountId: EthereumAccountId;417 EthereumAddress: EthereumAddress;418 EthereumBlock: EthereumBlock;419 EthereumHeader: EthereumHeader;420 EthereumLog: EthereumLog;421 EthereumLookupSource: EthereumLookupSource;422 EthereumReceiptEip658ReceiptData: EthereumReceiptEip658ReceiptData;423 EthereumReceiptReceiptV3: EthereumReceiptReceiptV3;424 EthereumSignature: EthereumSignature;425 EthereumTransactionAccessListItem: EthereumTransactionAccessListItem;426 EthereumTransactionEip1559Transaction: EthereumTransactionEip1559Transaction;427 EthereumTransactionEip2930Transaction: EthereumTransactionEip2930Transaction;428 EthereumTransactionLegacyTransaction: EthereumTransactionLegacyTransaction;429 EthereumTransactionTransactionAction: EthereumTransactionTransactionAction;430 EthereumTransactionTransactionSignature: EthereumTransactionTransactionSignature;431 EthereumTransactionTransactionV2: EthereumTransactionTransactionV2;432 EthereumTypesHashH64: EthereumTypesHashH64;433 EthFeeHistory: EthFeeHistory;434 EthFilter: EthFilter;435 EthFilterAddress: EthFilterAddress;436 EthFilterChanges: EthFilterChanges;437 EthFilterTopic: EthFilterTopic;438 EthFilterTopicEntry: EthFilterTopicEntry;439 EthFilterTopicInner: EthFilterTopicInner;440 EthHeader: EthHeader;441 EthLog: EthLog;442 EthReceipt: EthReceipt;443 EthReceiptV0: EthReceiptV0;444 EthReceiptV3: EthReceiptV3;445 EthRichBlock: EthRichBlock;446 EthRichHeader: EthRichHeader;447 EthStorageProof: EthStorageProof;448 EthSubKind: EthSubKind;449 EthSubParams: EthSubParams;450 EthSubResult: EthSubResult;451 EthSyncInfo: EthSyncInfo;452 EthSyncStatus: EthSyncStatus;453 EthTransaction: EthTransaction;454 EthTransactionAction: EthTransactionAction;455 EthTransactionCondition: EthTransactionCondition;456 EthTransactionRequest: EthTransactionRequest;457 EthTransactionSignature: EthTransactionSignature;458 EthTransactionStatus: EthTransactionStatus;459 EthWork: EthWork;460 Event: Event;461 EventId: EventId;462 EventIndex: EventIndex;463 EventMetadataLatest: EventMetadataLatest;464 EventMetadataV10: EventMetadataV10;465 EventMetadataV11: EventMetadataV11;466 EventMetadataV12: EventMetadataV12;467 EventMetadataV13: EventMetadataV13;468 EventMetadataV14: EventMetadataV14;469 EventMetadataV9: EventMetadataV9;470 EventRecord: EventRecord;471 EvmAccount: EvmAccount;472 EvmCallInfo: EvmCallInfo;473 EvmCoreErrorExitError: EvmCoreErrorExitError;474 EvmCoreErrorExitFatal: EvmCoreErrorExitFatal;475 EvmCoreErrorExitReason: EvmCoreErrorExitReason;476 EvmCoreErrorExitRevert: EvmCoreErrorExitRevert;477 EvmCoreErrorExitSucceed: EvmCoreErrorExitSucceed;478 EvmCreateInfo: EvmCreateInfo;479 EvmLog: EvmLog;480 EvmVicinity: EvmVicinity;481 ExecReturnValue: ExecReturnValue;482 ExitError: ExitError;483 ExitFatal: ExitFatal;484 ExitReason: ExitReason;485 ExitRevert: ExitRevert;486 ExitSucceed: ExitSucceed;487 ExplicitDisputeStatement: ExplicitDisputeStatement;488 Exposure: Exposure;489 ExtendedBalance: ExtendedBalance;490 Extrinsic: Extrinsic;491 ExtrinsicEra: ExtrinsicEra;492 ExtrinsicMetadataLatest: ExtrinsicMetadataLatest;493 ExtrinsicMetadataV11: ExtrinsicMetadataV11;494 ExtrinsicMetadataV12: ExtrinsicMetadataV12;495 ExtrinsicMetadataV13: ExtrinsicMetadataV13;496 ExtrinsicMetadataV14: ExtrinsicMetadataV14;497 ExtrinsicOrHash: ExtrinsicOrHash;498 ExtrinsicPayload: ExtrinsicPayload;499 ExtrinsicPayloadUnknown: ExtrinsicPayloadUnknown;500 ExtrinsicPayloadV4: ExtrinsicPayloadV4;501 ExtrinsicSignature: ExtrinsicSignature;502 ExtrinsicSignatureV4: ExtrinsicSignatureV4;503 ExtrinsicStatus: ExtrinsicStatus;504 ExtrinsicsWeight: ExtrinsicsWeight;505 ExtrinsicUnknown: ExtrinsicUnknown;506 ExtrinsicV4: ExtrinsicV4;507 f32: f32;508 F32: F32;509 f64: f64;510 F64: F64;511 FeeDetails: FeeDetails;512 Fixed128: Fixed128;513 Fixed64: Fixed64;514 FixedI128: FixedI128;515 FixedI64: FixedI64;516 FixedU128: FixedU128;517 FixedU64: FixedU64;518 Forcing: Forcing;519 ForkTreePendingChange: ForkTreePendingChange;520 ForkTreePendingChangeNode: ForkTreePendingChangeNode;521 FpRpcTransactionStatus: FpRpcTransactionStatus;522 FrameSupportDispatchDispatchClass: FrameSupportDispatchDispatchClass;523 FrameSupportDispatchDispatchInfo: FrameSupportDispatchDispatchInfo;524 FrameSupportDispatchPays: FrameSupportDispatchPays;525 FrameSupportDispatchPerDispatchClassU32: FrameSupportDispatchPerDispatchClassU32;526 FrameSupportDispatchPerDispatchClassWeight: FrameSupportDispatchPerDispatchClassWeight;527 FrameSupportDispatchPerDispatchClassWeightsPerClass: FrameSupportDispatchPerDispatchClassWeightsPerClass;528 FrameSupportPalletId: FrameSupportPalletId;529 FrameSupportTokensMiscBalanceStatus: FrameSupportTokensMiscBalanceStatus;530 FrameSystemAccountInfo: FrameSystemAccountInfo;531 FrameSystemCall: FrameSystemCall;532 FrameSystemError: FrameSystemError;533 FrameSystemEvent: FrameSystemEvent;534 FrameSystemEventRecord: FrameSystemEventRecord;535 FrameSystemExtensionsCheckGenesis: FrameSystemExtensionsCheckGenesis;536 FrameSystemExtensionsCheckNonce: FrameSystemExtensionsCheckNonce;537 FrameSystemExtensionsCheckSpecVersion: FrameSystemExtensionsCheckSpecVersion;538 FrameSystemExtensionsCheckTxVersion: FrameSystemExtensionsCheckTxVersion;539 FrameSystemExtensionsCheckWeight: FrameSystemExtensionsCheckWeight;540 FrameSystemLastRuntimeUpgradeInfo: FrameSystemLastRuntimeUpgradeInfo;541 FrameSystemLimitsBlockLength: FrameSystemLimitsBlockLength;542 FrameSystemLimitsBlockWeights: FrameSystemLimitsBlockWeights;543 FrameSystemLimitsWeightsPerClass: FrameSystemLimitsWeightsPerClass;544 FrameSystemPhase: FrameSystemPhase;545 FullIdentification: FullIdentification;546 FunctionArgumentMetadataLatest: FunctionArgumentMetadataLatest;547 FunctionArgumentMetadataV10: FunctionArgumentMetadataV10;548 FunctionArgumentMetadataV11: FunctionArgumentMetadataV11;549 FunctionArgumentMetadataV12: FunctionArgumentMetadataV12;550 FunctionArgumentMetadataV13: FunctionArgumentMetadataV13;551 FunctionArgumentMetadataV14: FunctionArgumentMetadataV14;552 FunctionArgumentMetadataV9: FunctionArgumentMetadataV9;553 FunctionMetadataLatest: FunctionMetadataLatest;554 FunctionMetadataV10: FunctionMetadataV10;555 FunctionMetadataV11: FunctionMetadataV11;556 FunctionMetadataV12: FunctionMetadataV12;557 FunctionMetadataV13: FunctionMetadataV13;558 FunctionMetadataV14: FunctionMetadataV14;559 FunctionMetadataV9: FunctionMetadataV9;560 FundIndex: FundIndex;561 FundInfo: FundInfo;562 Fungibility: Fungibility;563 FungibilityV0: FungibilityV0;564 FungibilityV1: FungibilityV1;565 FungibilityV2: FungibilityV2;566 Gas: Gas;567 GiltBid: GiltBid;568 GlobalValidationData: GlobalValidationData;569 GlobalValidationSchedule: GlobalValidationSchedule;570 GrandpaCommit: GrandpaCommit;571 GrandpaEquivocation: GrandpaEquivocation;572 GrandpaEquivocationProof: GrandpaEquivocationProof;573 GrandpaEquivocationValue: GrandpaEquivocationValue;574 GrandpaJustification: GrandpaJustification;575 GrandpaPrecommit: GrandpaPrecommit;576 GrandpaPrevote: GrandpaPrevote;577 GrandpaSignedPrecommit: GrandpaSignedPrecommit;578 GroupIndex: GroupIndex;579 GroupRotationInfo: GroupRotationInfo;580 H1024: H1024;581 H128: H128;582 H160: H160;583 H2048: H2048;584 H256: H256;585 H32: H32;586 H512: H512;587 H64: H64;588 Hash: Hash;589 HeadData: HeadData;590 Header: Header;591 HeaderPartial: HeaderPartial;592 Health: Health;593 Heartbeat: Heartbeat;594 HeartbeatTo244: HeartbeatTo244;595 HostConfiguration: HostConfiguration;596 HostFnWeights: HostFnWeights;597 HostFnWeightsTo264: HostFnWeightsTo264;598 HrmpChannel: HrmpChannel;599 HrmpChannelId: HrmpChannelId;600 HrmpOpenChannelRequest: HrmpOpenChannelRequest;601 i128: i128;602 I128: I128;603 i16: i16;604 I16: I16;605 i256: i256;606 I256: I256;607 i32: i32;608 I32: I32;609 I32F32: I32F32;610 i64: i64;611 I64: I64;612 i8: i8;613 I8: I8;614 IdentificationTuple: IdentificationTuple;615 IdentityFields: IdentityFields;616 IdentityInfo: IdentityInfo;617 IdentityInfoAdditional: IdentityInfoAdditional;618 IdentityInfoTo198: IdentityInfoTo198;619 IdentityJudgement: IdentityJudgement;620 ImmortalEra: ImmortalEra;621 ImportedAux: ImportedAux;622 InboundDownwardMessage: InboundDownwardMessage;623 InboundHrmpMessage: InboundHrmpMessage;624 InboundHrmpMessages: InboundHrmpMessages;625 InboundLaneData: InboundLaneData;626 InboundRelayer: InboundRelayer;627 InboundStatus: InboundStatus;628 IncludedBlocks: IncludedBlocks;629 InclusionFee: InclusionFee;630 IncomingParachain: IncomingParachain;631 IncomingParachainDeploy: IncomingParachainDeploy;632 IncomingParachainFixed: IncomingParachainFixed;633 Index: Index;634 IndicesLookupSource: IndicesLookupSource;635 IndividualExposure: IndividualExposure;636 InherentData: InherentData;637 InherentIdentifier: InherentIdentifier;638 InitializationData: InitializationData;639 InstanceDetails: InstanceDetails;640 InstanceId: InstanceId;641 InstanceMetadata: InstanceMetadata;642 InstantiateRequest: InstantiateRequest;643 InstantiateRequestV1: InstantiateRequestV1;644 InstantiateRequestV2: InstantiateRequestV2;645 InstantiateReturnValue: InstantiateReturnValue;646 InstantiateReturnValueOk: InstantiateReturnValueOk;647 InstantiateReturnValueTo267: InstantiateReturnValueTo267;648 InstructionV2: InstructionV2;649 InstructionWeights: InstructionWeights;650 InteriorMultiLocation: InteriorMultiLocation;651 InvalidDisputeStatementKind: InvalidDisputeStatementKind;652 InvalidTransaction: InvalidTransaction;653 Json: Json;654 Junction: Junction;655 Junctions: Junctions;656 JunctionsV1: JunctionsV1;657 JunctionsV2: JunctionsV2;658 JunctionV0: JunctionV0;659 JunctionV1: JunctionV1;660 JunctionV2: JunctionV2;661 Justification: Justification;662 JustificationNotification: JustificationNotification;663 Justifications: Justifications;664 Key: Key;665 KeyOwnerProof: KeyOwnerProof;666 Keys: Keys;667 KeyType: KeyType;668 KeyTypeId: KeyTypeId;669 KeyValue: KeyValue;670 KeyValueOption: KeyValueOption;671 Kind: Kind;672 LaneId: LaneId;673 LastContribution: LastContribution;674 LastRuntimeUpgradeInfo: LastRuntimeUpgradeInfo;675 LeasePeriod: LeasePeriod;676 LeasePeriodOf: LeasePeriodOf;677 LegacyTransaction: LegacyTransaction;678 Limits: Limits;679 LimitsTo264: LimitsTo264;680 LocalValidationData: LocalValidationData;681 LockIdentifier: LockIdentifier;682 LookupSource: LookupSource;683 LookupTarget: LookupTarget;684 LotteryConfig: LotteryConfig;685 MaybeRandomness: MaybeRandomness;686 MaybeVrf: MaybeVrf;687 MemberCount: MemberCount;688 MembershipProof: MembershipProof;689 MessageData: MessageData;690 MessageId: MessageId;691 MessageIngestionType: MessageIngestionType;692 MessageKey: MessageKey;693 MessageNonce: MessageNonce;694 MessageQueueChain: MessageQueueChain;695 MessagesDeliveryProofOf: MessagesDeliveryProofOf;696 MessagesProofOf: MessagesProofOf;697 MessagingStateSnapshot: MessagingStateSnapshot;698 MessagingStateSnapshotEgressEntry: MessagingStateSnapshotEgressEntry;699 MetadataAll: MetadataAll;700 MetadataLatest: MetadataLatest;701 MetadataV10: MetadataV10;702 MetadataV11: MetadataV11;703 MetadataV12: MetadataV12;704 MetadataV13: MetadataV13;705 MetadataV14: MetadataV14;706 MetadataV9: MetadataV9;707 MigrationStatusResult: MigrationStatusResult;708 MmrBatchProof: MmrBatchProof;709 MmrEncodableOpaqueLeaf: MmrEncodableOpaqueLeaf;710 MmrError: MmrError;711 MmrLeafBatchProof: MmrLeafBatchProof;712 MmrLeafIndex: MmrLeafIndex;713 MmrLeafProof: MmrLeafProof;714 MmrNodeIndex: MmrNodeIndex;715 MmrProof: MmrProof;716 MmrRootHash: MmrRootHash;717 ModuleConstantMetadataV10: ModuleConstantMetadataV10;718 ModuleConstantMetadataV11: ModuleConstantMetadataV11;719 ModuleConstantMetadataV12: ModuleConstantMetadataV12;720 ModuleConstantMetadataV13: ModuleConstantMetadataV13;721 ModuleConstantMetadataV9: ModuleConstantMetadataV9;722 ModuleId: ModuleId;723 ModuleMetadataV10: ModuleMetadataV10;724 ModuleMetadataV11: ModuleMetadataV11;725 ModuleMetadataV12: ModuleMetadataV12;726 ModuleMetadataV13: ModuleMetadataV13;727 ModuleMetadataV9: ModuleMetadataV9;728 Moment: Moment;729 MomentOf: MomentOf;730 MoreAttestations: MoreAttestations;731 MortalEra: MortalEra;732 MultiAddress: MultiAddress;733 MultiAsset: MultiAsset;734 MultiAssetFilter: MultiAssetFilter;735 MultiAssetFilterV1: MultiAssetFilterV1;736 MultiAssetFilterV2: MultiAssetFilterV2;737 MultiAssets: MultiAssets;738 MultiAssetsV1: MultiAssetsV1;739 MultiAssetsV2: MultiAssetsV2;740 MultiAssetV0: MultiAssetV0;741 MultiAssetV1: MultiAssetV1;742 MultiAssetV2: MultiAssetV2;743 MultiDisputeStatementSet: MultiDisputeStatementSet;744 MultiLocation: MultiLocation;745 MultiLocationV0: MultiLocationV0;746 MultiLocationV1: MultiLocationV1;747 MultiLocationV2: MultiLocationV2;748 Multiplier: Multiplier;749 Multisig: Multisig;750 MultiSignature: MultiSignature;751 MultiSigner: MultiSigner;752 NetworkId: NetworkId;753 NetworkState: NetworkState;754 NetworkStatePeerset: NetworkStatePeerset;755 NetworkStatePeersetInfo: NetworkStatePeersetInfo;756 NewBidder: NewBidder;757 NextAuthority: NextAuthority;758 NextConfigDescriptor: NextConfigDescriptor;759 NextConfigDescriptorV1: NextConfigDescriptorV1;760 NodeRole: NodeRole;761 Nominations: Nominations;762 NominatorIndex: NominatorIndex;763 NominatorIndexCompact: NominatorIndexCompact;764 NotConnectedPeer: NotConnectedPeer;765 NpApiError: NpApiError;766 Null: Null;767 OccupiedCore: OccupiedCore;768 OccupiedCoreAssumption: OccupiedCoreAssumption;769 OffchainAccuracy: OffchainAccuracy;770 OffchainAccuracyCompact: OffchainAccuracyCompact;771 OffenceDetails: OffenceDetails;772 Offender: Offender;773 OldV1SessionInfo: OldV1SessionInfo;774 OpalRuntimeRuntime: OpalRuntimeRuntime;775 OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance: OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance;776 OpaqueCall: OpaqueCall;777 OpaqueKeyOwnershipProof: OpaqueKeyOwnershipProof;778 OpaqueMetadata: OpaqueMetadata;779 OpaqueMultiaddr: OpaqueMultiaddr;780 OpaqueNetworkState: OpaqueNetworkState;781 OpaquePeerId: OpaquePeerId;782 OpaqueTimeSlot: OpaqueTimeSlot;783 OpenTip: OpenTip;784 OpenTipFinderTo225: OpenTipFinderTo225;785 OpenTipTip: OpenTipTip;786 OpenTipTo225: OpenTipTo225;787 OperatingMode: OperatingMode;788 OptionBool: OptionBool;789 Origin: Origin;790 OriginCaller: OriginCaller;791 OriginKindV0: OriginKindV0;792 OriginKindV1: OriginKindV1;793 OriginKindV2: OriginKindV2;794 OrmlTokensAccountData: OrmlTokensAccountData;795 OrmlTokensBalanceLock: OrmlTokensBalanceLock;796 OrmlTokensModuleCall: OrmlTokensModuleCall;797 OrmlTokensModuleError: OrmlTokensModuleError;798 OrmlTokensModuleEvent: OrmlTokensModuleEvent;799 OrmlTokensReserveData: OrmlTokensReserveData;800 OrmlVestingModuleCall: OrmlVestingModuleCall;801 OrmlVestingModuleError: OrmlVestingModuleError;802 OrmlVestingModuleEvent: OrmlVestingModuleEvent;803 OrmlVestingVestingSchedule: OrmlVestingVestingSchedule;804 OrmlXtokensModuleCall: OrmlXtokensModuleCall;805 OrmlXtokensModuleError: OrmlXtokensModuleError;806 OrmlXtokensModuleEvent: OrmlXtokensModuleEvent;807 OutboundHrmpMessage: OutboundHrmpMessage;808 OutboundLaneData: OutboundLaneData;809 OutboundMessageFee: OutboundMessageFee;810 OutboundPayload: OutboundPayload;811 OutboundStatus: OutboundStatus;812 Outcome: Outcome;813 OverweightIndex: OverweightIndex;814 Owner: Owner;815 PageCounter: PageCounter;816 PageIndexData: PageIndexData;817 PalletAppPromotionCall: PalletAppPromotionCall;818 PalletAppPromotionError: PalletAppPromotionError;819 PalletAppPromotionEvent: PalletAppPromotionEvent;820 PalletBalancesAccountData: PalletBalancesAccountData;821 PalletBalancesBalanceLock: PalletBalancesBalanceLock;822 PalletBalancesCall: PalletBalancesCall;823 PalletBalancesError: PalletBalancesError;824 PalletBalancesEvent: PalletBalancesEvent;825 PalletBalancesReasons: PalletBalancesReasons;826 PalletBalancesReserveData: PalletBalancesReserveData;827 PalletCallMetadataLatest: PalletCallMetadataLatest;828 PalletCallMetadataV14: PalletCallMetadataV14;829 PalletCommonError: PalletCommonError;830 PalletCommonEvent: PalletCommonEvent;831 PalletConfigurationAppPromotionConfiguration: PalletConfigurationAppPromotionConfiguration;832 PalletConfigurationCall: PalletConfigurationCall;833 PalletConfigurationError: PalletConfigurationError;834 PalletConstantMetadataLatest: PalletConstantMetadataLatest;835 PalletConstantMetadataV14: PalletConstantMetadataV14;836 PalletErrorMetadataLatest: PalletErrorMetadataLatest;837 PalletErrorMetadataV14: PalletErrorMetadataV14;838 PalletEthereumCall: PalletEthereumCall;839 PalletEthereumError: PalletEthereumError;840 PalletEthereumEvent: PalletEthereumEvent;841 PalletEthereumFakeTransactionFinalizer: PalletEthereumFakeTransactionFinalizer;842 PalletEventMetadataLatest: PalletEventMetadataLatest;843 PalletEventMetadataV14: PalletEventMetadataV14;844 PalletEvmAccountBasicCrossAccountIdRepr: PalletEvmAccountBasicCrossAccountIdRepr;845 PalletEvmCall: PalletEvmCall;846 PalletEvmCoderSubstrateError: PalletEvmCoderSubstrateError;847 PalletEvmContractHelpersError: PalletEvmContractHelpersError;848 PalletEvmContractHelpersEvent: PalletEvmContractHelpersEvent;849 PalletEvmContractHelpersSponsoringModeT: PalletEvmContractHelpersSponsoringModeT;850 PalletEvmError: PalletEvmError;851 PalletEvmEvent: PalletEvmEvent;852 PalletEvmMigrationCall: PalletEvmMigrationCall;853 PalletEvmMigrationError: PalletEvmMigrationError;854 PalletEvmMigrationEvent: PalletEvmMigrationEvent;855 PalletForeignAssetsAssetIds: PalletForeignAssetsAssetIds;856 PalletForeignAssetsModuleAssetMetadata: PalletForeignAssetsModuleAssetMetadata;857 PalletForeignAssetsModuleCall: PalletForeignAssetsModuleCall;858 PalletForeignAssetsModuleError: PalletForeignAssetsModuleError;859 PalletForeignAssetsModuleEvent: PalletForeignAssetsModuleEvent;860 PalletForeignAssetsNativeCurrency: PalletForeignAssetsNativeCurrency;861 PalletFungibleError: PalletFungibleError;862 PalletId: PalletId;863 PalletInflationCall: PalletInflationCall;864 PalletMaintenanceCall: PalletMaintenanceCall;865 PalletMaintenanceError: PalletMaintenanceError;866 PalletMaintenanceEvent: PalletMaintenanceEvent;867 PalletMetadataLatest: PalletMetadataLatest;868 PalletMetadataV14: PalletMetadataV14;869 PalletNonfungibleError: PalletNonfungibleError;870 PalletNonfungibleItemData: PalletNonfungibleItemData;871 PalletRefungibleError: PalletRefungibleError;872 PalletRmrkCoreCall: PalletRmrkCoreCall;873 PalletRmrkCoreError: PalletRmrkCoreError;874 PalletRmrkCoreEvent: PalletRmrkCoreEvent;875 PalletRmrkEquipCall: PalletRmrkEquipCall;876 PalletRmrkEquipError: PalletRmrkEquipError;877 PalletRmrkEquipEvent: PalletRmrkEquipEvent;878 PalletsOrigin: PalletsOrigin;879 PalletStorageMetadataLatest: PalletStorageMetadataLatest;880 PalletStorageMetadataV14: PalletStorageMetadataV14;881 PalletStructureCall: PalletStructureCall;882 PalletStructureError: PalletStructureError;883 PalletStructureEvent: PalletStructureEvent;884 PalletSudoCall: PalletSudoCall;885 PalletSudoError: PalletSudoError;886 PalletSudoEvent: PalletSudoEvent;887 PalletTemplateTransactionPaymentCall: PalletTemplateTransactionPaymentCall;888 PalletTemplateTransactionPaymentChargeTransactionPayment: PalletTemplateTransactionPaymentChargeTransactionPayment;889 PalletTestUtilsCall: PalletTestUtilsCall;890 PalletTestUtilsError: PalletTestUtilsError;891 PalletTestUtilsEvent: PalletTestUtilsEvent;892 PalletTimestampCall: PalletTimestampCall;893 PalletTransactionPaymentEvent: PalletTransactionPaymentEvent;894 PalletTransactionPaymentReleases: PalletTransactionPaymentReleases;895 PalletTreasuryCall: PalletTreasuryCall;896 PalletTreasuryError: PalletTreasuryError;897 PalletTreasuryEvent: PalletTreasuryEvent;898 PalletTreasuryProposal: PalletTreasuryProposal;899 PalletUniqueCall: PalletUniqueCall;900 PalletUniqueError: PalletUniqueError;901 PalletVersion: PalletVersion;902 PalletXcmCall: PalletXcmCall;903 PalletXcmError: PalletXcmError;904 PalletXcmEvent: PalletXcmEvent;905 ParachainDispatchOrigin: ParachainDispatchOrigin;906 ParachainInherentData: ParachainInherentData;907 ParachainProposal: ParachainProposal;908 ParachainsInherentData: ParachainsInherentData;909 ParaGenesisArgs: ParaGenesisArgs;910 ParaId: ParaId;911 ParaInfo: ParaInfo;912 ParaLifecycle: ParaLifecycle;913 Parameter: Parameter;914 ParaPastCodeMeta: ParaPastCodeMeta;915 ParaScheduling: ParaScheduling;916 ParathreadClaim: ParathreadClaim;917 ParathreadClaimQueue: ParathreadClaimQueue;918 ParathreadEntry: ParathreadEntry;919 ParaValidatorIndex: ParaValidatorIndex;920 Pays: Pays;921 Peer: Peer;922 PeerEndpoint: PeerEndpoint;923 PeerEndpointAddr: PeerEndpointAddr;924 PeerInfo: PeerInfo;925 PeerPing: PeerPing;926 PendingChange: PendingChange;927 PendingPause: PendingPause;928 PendingResume: PendingResume;929 Perbill: Perbill;930 Percent: Percent;931 PerDispatchClassU32: PerDispatchClassU32;932 PerDispatchClassWeight: PerDispatchClassWeight;933 PerDispatchClassWeightsPerClass: PerDispatchClassWeightsPerClass;934 Period: Period;935 Permill: Permill;936 PermissionLatest: PermissionLatest;937 PermissionsV1: PermissionsV1;938 PermissionVersions: PermissionVersions;939 Perquintill: Perquintill;940 PersistedValidationData: PersistedValidationData;941 PerU16: PerU16;942 Phantom: Phantom;943 PhantomData: PhantomData;944 PhantomTypeUpDataStructs: PhantomTypeUpDataStructs;945 Phase: Phase;946 PhragmenScore: PhragmenScore;947 Points: Points;948 PolkadotCorePrimitivesInboundDownwardMessage: PolkadotCorePrimitivesInboundDownwardMessage;949 PolkadotCorePrimitivesInboundHrmpMessage: PolkadotCorePrimitivesInboundHrmpMessage;950 PolkadotCorePrimitivesOutboundHrmpMessage: PolkadotCorePrimitivesOutboundHrmpMessage;951 PolkadotParachainPrimitivesXcmpMessageFormat: PolkadotParachainPrimitivesXcmpMessageFormat;952 PolkadotPrimitivesV2AbridgedHostConfiguration: PolkadotPrimitivesV2AbridgedHostConfiguration;953 PolkadotPrimitivesV2AbridgedHrmpChannel: PolkadotPrimitivesV2AbridgedHrmpChannel;954 PolkadotPrimitivesV2PersistedValidationData: PolkadotPrimitivesV2PersistedValidationData;955 PolkadotPrimitivesV2UpgradeRestriction: PolkadotPrimitivesV2UpgradeRestriction;956 PortableType: PortableType;957 PortableTypeV14: PortableTypeV14;958 Precommits: Precommits;959 PrefabWasmModule: PrefabWasmModule;960 PrefixedStorageKey: PrefixedStorageKey;961 PreimageStatus: PreimageStatus;962 PreimageStatusAvailable: PreimageStatusAvailable;963 PreRuntime: PreRuntime;964 Prevotes: Prevotes;965 Priority: Priority;966 PriorLock: PriorLock;967 PropIndex: PropIndex;968 Proposal: Proposal;969 ProposalIndex: ProposalIndex;970 ProxyAnnouncement: ProxyAnnouncement;971 ProxyDefinition: ProxyDefinition;972 ProxyState: ProxyState;973 ProxyType: ProxyType;974 PvfCheckStatement: PvfCheckStatement;975 QueryId: QueryId;976 QueryStatus: QueryStatus;977 QueueConfigData: QueueConfigData;978 QueuedParathread: QueuedParathread;979 Randomness: Randomness;980 Raw: Raw;981 RawAuraPreDigest: RawAuraPreDigest;982 RawBabePreDigest: RawBabePreDigest;983 RawBabePreDigestCompat: RawBabePreDigestCompat;984 RawBabePreDigestPrimary: RawBabePreDigestPrimary;985 RawBabePreDigestPrimaryTo159: RawBabePreDigestPrimaryTo159;986 RawBabePreDigestSecondaryPlain: RawBabePreDigestSecondaryPlain;987 RawBabePreDigestSecondaryTo159: RawBabePreDigestSecondaryTo159;988 RawBabePreDigestSecondaryVRF: RawBabePreDigestSecondaryVRF;989 RawBabePreDigestTo159: RawBabePreDigestTo159;990 RawOrigin: RawOrigin;991 RawSolution: RawSolution;992 RawSolutionTo265: RawSolutionTo265;993 RawSolutionWith16: RawSolutionWith16;994 RawSolutionWith24: RawSolutionWith24;995 RawVRFOutput: RawVRFOutput;996 ReadProof: ReadProof;997 ReadySolution: ReadySolution;998 Reasons: Reasons;999 RecoveryConfig: RecoveryConfig;1000 RefCount: RefCount;1001 RefCountTo259: RefCountTo259;1002 ReferendumIndex: ReferendumIndex;1003 ReferendumInfo: ReferendumInfo;1004 ReferendumInfoFinished: ReferendumInfoFinished;1005 ReferendumInfoTo239: ReferendumInfoTo239;1006 ReferendumStatus: ReferendumStatus;1007 RegisteredParachainInfo: RegisteredParachainInfo;1008 RegistrarIndex: RegistrarIndex;1009 RegistrarInfo: RegistrarInfo;1010 Registration: Registration;1011 RegistrationJudgement: RegistrationJudgement;1012 RegistrationTo198: RegistrationTo198;1013 RelayBlockNumber: RelayBlockNumber;1014 RelayChainBlockNumber: RelayChainBlockNumber;1015 RelayChainHash: RelayChainHash;1016 RelayerId: RelayerId;1017 RelayHash: RelayHash;1018 Releases: Releases;1019 Remark: Remark;1020 Renouncing: Renouncing;1021 RentProjection: RentProjection;1022 ReplacementTimes: ReplacementTimes;1023 ReportedRoundStates: ReportedRoundStates;1024 Reporter: Reporter;1025 ReportIdOf: ReportIdOf;1026 ReserveData: ReserveData;1027 ReserveIdentifier: ReserveIdentifier;1028 Response: Response;1029 ResponseV0: ResponseV0;1030 ResponseV1: ResponseV1;1031 ResponseV2: ResponseV2;1032 ResponseV2Error: ResponseV2Error;1033 ResponseV2Result: ResponseV2Result;1034 Retriable: Retriable;1035 RewardDestination: RewardDestination;1036 RewardPoint: RewardPoint;1037 RmrkTraitsBaseBaseInfo: RmrkTraitsBaseBaseInfo;1038 RmrkTraitsCollectionCollectionInfo: RmrkTraitsCollectionCollectionInfo;1039 RmrkTraitsNftAccountIdOrCollectionNftTuple: RmrkTraitsNftAccountIdOrCollectionNftTuple;1040 RmrkTraitsNftNftChild: RmrkTraitsNftNftChild;1041 RmrkTraitsNftNftInfo: RmrkTraitsNftNftInfo;1042 RmrkTraitsNftRoyaltyInfo: RmrkTraitsNftRoyaltyInfo;1043 RmrkTraitsPartEquippableList: RmrkTraitsPartEquippableList;1044 RmrkTraitsPartFixedPart: RmrkTraitsPartFixedPart;1045 RmrkTraitsPartPartType: RmrkTraitsPartPartType;1046 RmrkTraitsPartSlotPart: RmrkTraitsPartSlotPart;1047 RmrkTraitsPropertyPropertyInfo: RmrkTraitsPropertyPropertyInfo;1048 RmrkTraitsResourceBasicResource: RmrkTraitsResourceBasicResource;1049 RmrkTraitsResourceComposableResource: RmrkTraitsResourceComposableResource;1050 RmrkTraitsResourceResourceInfo: RmrkTraitsResourceResourceInfo;1051 RmrkTraitsResourceResourceTypes: RmrkTraitsResourceResourceTypes;1052 RmrkTraitsResourceSlotResource: RmrkTraitsResourceSlotResource;1053 RmrkTraitsTheme: RmrkTraitsTheme;1054 RmrkTraitsThemeThemeProperty: RmrkTraitsThemeThemeProperty;1055 RoundSnapshot: RoundSnapshot;1056 RoundState: RoundState;1057 RpcMethods: RpcMethods;1058 RuntimeDbWeight: RuntimeDbWeight;1059 RuntimeDispatchInfo: RuntimeDispatchInfo;1060 RuntimeDispatchInfoV1: RuntimeDispatchInfoV1;1061 RuntimeDispatchInfoV2: RuntimeDispatchInfoV2;1062 RuntimeVersion: RuntimeVersion;1063 RuntimeVersionApi: RuntimeVersionApi;1064 RuntimeVersionPartial: RuntimeVersionPartial;1065 RuntimeVersionPre3: RuntimeVersionPre3;1066 RuntimeVersionPre4: RuntimeVersionPre4;1067 Schedule: Schedule;1068 Scheduled: Scheduled;1069 ScheduledCore: ScheduledCore;1070 ScheduledTo254: ScheduledTo254;1071 SchedulePeriod: SchedulePeriod;1072 SchedulePriority: SchedulePriority;1073 ScheduleTo212: ScheduleTo212;1074 ScheduleTo258: ScheduleTo258;1075 ScheduleTo264: ScheduleTo264;1076 Scheduling: Scheduling;1077 ScrapedOnChainVotes: ScrapedOnChainVotes;1078 Seal: Seal;1079 SealV0: SealV0;1080 SeatHolder: SeatHolder;1081 SeedOf: SeedOf;1082 ServiceQuality: ServiceQuality;1083 SessionIndex: SessionIndex;1084 SessionInfo: SessionInfo;1085 SessionInfoValidatorGroup: SessionInfoValidatorGroup;1086 SessionKeys1: SessionKeys1;1087 SessionKeys10: SessionKeys10;1088 SessionKeys10B: SessionKeys10B;1089 SessionKeys2: SessionKeys2;1090 SessionKeys3: SessionKeys3;1091 SessionKeys4: SessionKeys4;1092 SessionKeys5: SessionKeys5;1093 SessionKeys6: SessionKeys6;1094 SessionKeys6B: SessionKeys6B;1095 SessionKeys7: SessionKeys7;1096 SessionKeys7B: SessionKeys7B;1097 SessionKeys8: SessionKeys8;1098 SessionKeys8B: SessionKeys8B;1099 SessionKeys9: SessionKeys9;1100 SessionKeys9B: SessionKeys9B;1101 SetId: SetId;1102 SetIndex: SetIndex;1103 Si0Field: Si0Field;1104 Si0LookupTypeId: Si0LookupTypeId;1105 Si0Path: Si0Path;1106 Si0Type: Si0Type;1107 Si0TypeDef: Si0TypeDef;1108 Si0TypeDefArray: Si0TypeDefArray;1109 Si0TypeDefBitSequence: Si0TypeDefBitSequence;1110 Si0TypeDefCompact: Si0TypeDefCompact;1111 Si0TypeDefComposite: Si0TypeDefComposite;1112 Si0TypeDefPhantom: Si0TypeDefPhantom;1113 Si0TypeDefPrimitive: Si0TypeDefPrimitive;1114 Si0TypeDefSequence: Si0TypeDefSequence;1115 Si0TypeDefTuple: Si0TypeDefTuple;1116 Si0TypeDefVariant: Si0TypeDefVariant;1117 Si0TypeParameter: Si0TypeParameter;1118 Si0Variant: Si0Variant;1119 Si1Field: Si1Field;1120 Si1LookupTypeId: Si1LookupTypeId;1121 Si1Path: Si1Path;1122 Si1Type: Si1Type;1123 Si1TypeDef: Si1TypeDef;1124 Si1TypeDefArray: Si1TypeDefArray;1125 Si1TypeDefBitSequence: Si1TypeDefBitSequence;1126 Si1TypeDefCompact: Si1TypeDefCompact;1127 Si1TypeDefComposite: Si1TypeDefComposite;1128 Si1TypeDefPrimitive: Si1TypeDefPrimitive;1129 Si1TypeDefSequence: Si1TypeDefSequence;1130 Si1TypeDefTuple: Si1TypeDefTuple;1131 Si1TypeDefVariant: Si1TypeDefVariant;1132 Si1TypeParameter: Si1TypeParameter;1133 Si1Variant: Si1Variant;1134 SiField: SiField;1135 Signature: Signature;1136 SignedAvailabilityBitfield: SignedAvailabilityBitfield;1137 SignedAvailabilityBitfields: SignedAvailabilityBitfields;1138 SignedBlock: SignedBlock;1139 SignedBlockWithJustification: SignedBlockWithJustification;1140 SignedBlockWithJustifications: SignedBlockWithJustifications;1141 SignedExtensionMetadataLatest: SignedExtensionMetadataLatest;1142 SignedExtensionMetadataV14: SignedExtensionMetadataV14;1143 SignedSubmission: SignedSubmission;1144 SignedSubmissionOf: SignedSubmissionOf;1145 SignedSubmissionTo276: SignedSubmissionTo276;1146 SignerPayload: SignerPayload;1147 SigningContext: SigningContext;1148 SiLookupTypeId: SiLookupTypeId;1149 SiPath: SiPath;1150 SiType: SiType;1151 SiTypeDef: SiTypeDef;1152 SiTypeDefArray: SiTypeDefArray;1153 SiTypeDefBitSequence: SiTypeDefBitSequence;1154 SiTypeDefCompact: SiTypeDefCompact;1155 SiTypeDefComposite: SiTypeDefComposite;1156 SiTypeDefPrimitive: SiTypeDefPrimitive;1157 SiTypeDefSequence: SiTypeDefSequence;1158 SiTypeDefTuple: SiTypeDefTuple;1159 SiTypeDefVariant: SiTypeDefVariant;1160 SiTypeParameter: SiTypeParameter;1161 SiVariant: SiVariant;1162 SlashingSpans: SlashingSpans;1163 SlashingSpansTo204: SlashingSpansTo204;1164 SlashJournalEntry: SlashJournalEntry;1165 Slot: Slot;1166 SlotDuration: SlotDuration;1167 SlotNumber: SlotNumber;1168 SlotRange: SlotRange;1169 SlotRange10: SlotRange10;1170 SocietyJudgement: SocietyJudgement;1171 SocietyVote: SocietyVote;1172 SolutionOrSnapshotSize: SolutionOrSnapshotSize;1173 SolutionSupport: SolutionSupport;1174 SolutionSupports: SolutionSupports;1175 SpanIndex: SpanIndex;1176 SpanRecord: SpanRecord;1177 SpCoreEcdsaSignature: SpCoreEcdsaSignature;1178 SpCoreEd25519Signature: SpCoreEd25519Signature;1179 SpCoreSr25519Signature: SpCoreSr25519Signature;1180 SpecVersion: SpecVersion;1181 SpRuntimeArithmeticError: SpRuntimeArithmeticError;1182 SpRuntimeDigest: SpRuntimeDigest;1183 SpRuntimeDigestDigestItem: SpRuntimeDigestDigestItem;1184 SpRuntimeDispatchError: SpRuntimeDispatchError;1185 SpRuntimeModuleError: SpRuntimeModuleError;1186 SpRuntimeMultiSignature: SpRuntimeMultiSignature;1187 SpRuntimeTokenError: SpRuntimeTokenError;1188 SpRuntimeTransactionalError: SpRuntimeTransactionalError;1189 SpRuntimeTransactionValidityInvalidTransaction: SpRuntimeTransactionValidityInvalidTransaction;1190 SpRuntimeTransactionValidityTransactionValidityError: SpRuntimeTransactionValidityTransactionValidityError;1191 SpRuntimeTransactionValidityUnknownTransaction: SpRuntimeTransactionValidityUnknownTransaction;1192 SpTrieStorageProof: SpTrieStorageProof;1193 SpVersionRuntimeVersion: SpVersionRuntimeVersion;1194 SpWeightsRuntimeDbWeight: SpWeightsRuntimeDbWeight;1195 SpWeightsWeightV2Weight: SpWeightsWeightV2Weight;1196 Sr25519Signature: Sr25519Signature;1197 StakingLedger: StakingLedger;1198 StakingLedgerTo223: StakingLedgerTo223;1199 StakingLedgerTo240: StakingLedgerTo240;1200 Statement: Statement;1201 StatementKind: StatementKind;1202 StorageChangeSet: StorageChangeSet;1203 StorageData: StorageData;1204 StorageDeposit: StorageDeposit;1205 StorageEntryMetadataLatest: StorageEntryMetadataLatest;1206 StorageEntryMetadataV10: StorageEntryMetadataV10;1207 StorageEntryMetadataV11: StorageEntryMetadataV11;1208 StorageEntryMetadataV12: StorageEntryMetadataV12;1209 StorageEntryMetadataV13: StorageEntryMetadataV13;1210 StorageEntryMetadataV14: StorageEntryMetadataV14;1211 StorageEntryMetadataV9: StorageEntryMetadataV9;1212 StorageEntryModifierLatest: StorageEntryModifierLatest;1213 StorageEntryModifierV10: StorageEntryModifierV10;1214 StorageEntryModifierV11: StorageEntryModifierV11;1215 StorageEntryModifierV12: StorageEntryModifierV12;1216 StorageEntryModifierV13: StorageEntryModifierV13;1217 StorageEntryModifierV14: StorageEntryModifierV14;1218 StorageEntryModifierV9: StorageEntryModifierV9;1219 StorageEntryTypeLatest: StorageEntryTypeLatest;1220 StorageEntryTypeV10: StorageEntryTypeV10;1221 StorageEntryTypeV11: StorageEntryTypeV11;1222 StorageEntryTypeV12: StorageEntryTypeV12;1223 StorageEntryTypeV13: StorageEntryTypeV13;1224 StorageEntryTypeV14: StorageEntryTypeV14;1225 StorageEntryTypeV9: StorageEntryTypeV9;1226 StorageHasher: StorageHasher;1227 StorageHasherV10: StorageHasherV10;1228 StorageHasherV11: StorageHasherV11;1229 StorageHasherV12: StorageHasherV12;1230 StorageHasherV13: StorageHasherV13;1231 StorageHasherV14: StorageHasherV14;1232 StorageHasherV9: StorageHasherV9;1233 StorageInfo: StorageInfo;1234 StorageKey: StorageKey;1235 StorageKind: StorageKind;1236 StorageMetadataV10: StorageMetadataV10;1237 StorageMetadataV11: StorageMetadataV11;1238 StorageMetadataV12: StorageMetadataV12;1239 StorageMetadataV13: StorageMetadataV13;1240 StorageMetadataV9: StorageMetadataV9;1241 StorageProof: StorageProof;1242 StoredPendingChange: StoredPendingChange;1243 StoredState: StoredState;1244 StrikeCount: StrikeCount;1245 SubId: SubId;1246 SubmissionIndicesOf: SubmissionIndicesOf;1247 Supports: Supports;1248 SyncState: SyncState;1249 SystemInherentData: SystemInherentData;1250 SystemOrigin: SystemOrigin;1251 Tally: Tally;1252 TaskAddress: TaskAddress;1253 TAssetBalance: TAssetBalance;1254 TAssetDepositBalance: TAssetDepositBalance;1255 Text: Text;1256 Timepoint: Timepoint;1257 TokenError: TokenError;1258 TombstoneContractInfo: TombstoneContractInfo;1259 TraceBlockResponse: TraceBlockResponse;1260 TraceError: TraceError;1261 TransactionalError: TransactionalError;1262 TransactionInfo: TransactionInfo;1263 TransactionLongevity: TransactionLongevity;1264 TransactionPriority: TransactionPriority;1265 TransactionSource: TransactionSource;1266 TransactionStorageProof: TransactionStorageProof;1267 TransactionTag: TransactionTag;1268 TransactionV0: TransactionV0;1269 TransactionV1: TransactionV1;1270 TransactionV2: TransactionV2;1271 TransactionValidity: TransactionValidity;1272 TransactionValidityError: TransactionValidityError;1273 TransientValidationData: TransientValidationData;1274 TreasuryProposal: TreasuryProposal;1275 TrieId: TrieId;1276 TrieIndex: TrieIndex;1277 Type: Type;1278 u128: u128;1279 U128: U128;1280 u16: u16;1281 U16: U16;1282 u256: u256;1283 U256: U256;1284 u32: u32;1285 U32: U32;1286 U32F32: U32F32;1287 u64: u64;1288 U64: U64;1289 u8: u8;1290 U8: U8;1291 UnappliedSlash: UnappliedSlash;1292 UnappliedSlashOther: UnappliedSlashOther;1293 UncleEntryItem: UncleEntryItem;1294 UnknownTransaction: UnknownTransaction;1295 UnlockChunk: UnlockChunk;1296 UnrewardedRelayer: UnrewardedRelayer;1297 UnrewardedRelayersState: UnrewardedRelayersState;1298 UpDataStructsAccessMode: UpDataStructsAccessMode;1299 UpDataStructsCollection: UpDataStructsCollection;1300 UpDataStructsCollectionLimits: UpDataStructsCollectionLimits;1301 UpDataStructsCollectionMode: UpDataStructsCollectionMode;1302 UpDataStructsCollectionPermissions: UpDataStructsCollectionPermissions;1303 UpDataStructsCollectionStats: UpDataStructsCollectionStats;1304 UpDataStructsCreateCollectionData: UpDataStructsCreateCollectionData;1305 UpDataStructsCreateFungibleData: UpDataStructsCreateFungibleData;1306 UpDataStructsCreateItemData: UpDataStructsCreateItemData;1307 UpDataStructsCreateItemExData: UpDataStructsCreateItemExData;1308 UpDataStructsCreateNftData: UpDataStructsCreateNftData;1309 UpDataStructsCreateNftExData: UpDataStructsCreateNftExData;1310 UpDataStructsCreateReFungibleData: UpDataStructsCreateReFungibleData;1311 UpDataStructsCreateRefungibleExMultipleOwners: UpDataStructsCreateRefungibleExMultipleOwners;1312 UpDataStructsCreateRefungibleExSingleOwner: UpDataStructsCreateRefungibleExSingleOwner;1313 UpDataStructsNestingPermissions: UpDataStructsNestingPermissions;1314 UpDataStructsOwnerRestrictedSet: UpDataStructsOwnerRestrictedSet;1315 UpDataStructsProperties: UpDataStructsProperties;1316 UpDataStructsPropertiesMapBoundedVec: UpDataStructsPropertiesMapBoundedVec;1317 UpDataStructsPropertiesMapPropertyPermission: UpDataStructsPropertiesMapPropertyPermission;1318 UpDataStructsProperty: UpDataStructsProperty;1319 UpDataStructsPropertyKeyPermission: UpDataStructsPropertyKeyPermission;1320 UpDataStructsPropertyPermission: UpDataStructsPropertyPermission;1321 UpDataStructsPropertyScope: UpDataStructsPropertyScope;1322 UpDataStructsRpcCollection: UpDataStructsRpcCollection;1323 UpDataStructsRpcCollectionFlags: UpDataStructsRpcCollectionFlags;1324 UpDataStructsSponsoringRateLimit: UpDataStructsSponsoringRateLimit;1325 UpDataStructsSponsorshipStateAccountId32: UpDataStructsSponsorshipStateAccountId32;1326 UpDataStructsSponsorshipStateBasicCrossAccountIdRepr: UpDataStructsSponsorshipStateBasicCrossAccountIdRepr;1327 UpDataStructsTokenChild: UpDataStructsTokenChild;1328 UpDataStructsTokenData: UpDataStructsTokenData;1329 UpgradeGoAhead: UpgradeGoAhead;1330 UpgradeRestriction: UpgradeRestriction;1331 UpPovEstimateRpcPovInfo: UpPovEstimateRpcPovInfo;1332 UpPovEstimateRpcTrieKeyValue: UpPovEstimateRpcTrieKeyValue;1333 UpwardMessage: UpwardMessage;1334 usize: usize;1335 USize: USize;1336 ValidationCode: ValidationCode;1337 ValidationCodeHash: ValidationCodeHash;1338 ValidationData: ValidationData;1339 ValidationDataType: ValidationDataType;1340 ValidationFunctionParams: ValidationFunctionParams;1341 ValidatorCount: ValidatorCount;1342 ValidatorId: ValidatorId;1343 ValidatorIdOf: ValidatorIdOf;1344 ValidatorIndex: ValidatorIndex;1345 ValidatorIndexCompact: ValidatorIndexCompact;1346 ValidatorPrefs: ValidatorPrefs;1347 ValidatorPrefsTo145: ValidatorPrefsTo145;1348 ValidatorPrefsTo196: ValidatorPrefsTo196;1349 ValidatorPrefsWithBlocked: ValidatorPrefsWithBlocked;1350 ValidatorPrefsWithCommission: ValidatorPrefsWithCommission;1351 ValidatorSet: ValidatorSet;1352 ValidatorSetId: ValidatorSetId;1353 ValidatorSignature: ValidatorSignature;1354 ValidDisputeStatementKind: ValidDisputeStatementKind;1355 ValidityAttestation: ValidityAttestation;1356 ValidTransaction: ValidTransaction;1357 VecInboundHrmpMessage: VecInboundHrmpMessage;1358 VersionedMultiAsset: VersionedMultiAsset;1359 VersionedMultiAssets: VersionedMultiAssets;1360 VersionedMultiLocation: VersionedMultiLocation;1361 VersionedResponse: VersionedResponse;1362 VersionedXcm: VersionedXcm;1363 VersionMigrationStage: VersionMigrationStage;1364 VestingInfo: VestingInfo;1365 VestingSchedule: VestingSchedule;1366 Vote: Vote;1367 VoteIndex: VoteIndex;1368 Voter: Voter;1369 VoterInfo: VoterInfo;1370 Votes: Votes;1371 VotesTo230: VotesTo230;1372 VoteThreshold: VoteThreshold;1373 VoteWeight: VoteWeight;1374 Voting: Voting;1375 VotingDelegating: VotingDelegating;1376 VotingDirect: VotingDirect;1377 VotingDirectVote: VotingDirectVote;1378 VouchingStatus: VouchingStatus;1379 VrfData: VrfData;1380 VrfOutput: VrfOutput;1381 VrfProof: VrfProof;1382 Weight: Weight;1383 WeightLimitV2: WeightLimitV2;1384 WeightMultiplier: WeightMultiplier;1385 WeightPerClass: WeightPerClass;1386 WeightToFeeCoefficient: WeightToFeeCoefficient;1387 WeightV1: WeightV1;1388 WeightV2: WeightV2;1389 WildFungibility: WildFungibility;1390 WildFungibilityV0: WildFungibilityV0;1391 WildFungibilityV1: WildFungibilityV1;1392 WildFungibilityV2: WildFungibilityV2;1393 WildMultiAsset: WildMultiAsset;1394 WildMultiAssetV1: WildMultiAssetV1;1395 WildMultiAssetV2: WildMultiAssetV2;1396 WinnersData: WinnersData;1397 WinnersData10: WinnersData10;1398 WinnersDataTuple: WinnersDataTuple;1399 WinnersDataTuple10: WinnersDataTuple10;1400 WinningData: WinningData;1401 WinningData10: WinningData10;1402 WinningDataEntry: WinningDataEntry;1403 WithdrawReasons: WithdrawReasons;1404 Xcm: Xcm;1405 XcmAssetId: XcmAssetId;1406 XcmDoubleEncoded: XcmDoubleEncoded;1407 XcmError: XcmError;1408 XcmErrorV0: XcmErrorV0;1409 XcmErrorV1: XcmErrorV1;1410 XcmErrorV2: XcmErrorV2;1411 XcmOrder: XcmOrder;1412 XcmOrderV0: XcmOrderV0;1413 XcmOrderV1: XcmOrderV1;1414 XcmOrderV2: XcmOrderV2;1415 XcmOrigin: XcmOrigin;1416 XcmOriginKind: XcmOriginKind;1417 XcmpMessageFormat: XcmpMessageFormat;1418 XcmV0: XcmV0;1419 XcmV0Junction: XcmV0Junction;1420 XcmV0JunctionBodyId: XcmV0JunctionBodyId;1421 XcmV0JunctionBodyPart: XcmV0JunctionBodyPart;1422 XcmV0JunctionNetworkId: XcmV0JunctionNetworkId;1423 XcmV0MultiAsset: XcmV0MultiAsset;1424 XcmV0MultiLocation: XcmV0MultiLocation;1425 XcmV0Order: XcmV0Order;1426 XcmV0OriginKind: XcmV0OriginKind;1427 XcmV0Response: XcmV0Response;1428 XcmV0Xcm: XcmV0Xcm;1429 XcmV1: XcmV1;1430 XcmV1Junction: XcmV1Junction;1431 XcmV1MultiAsset: XcmV1MultiAsset;1432 XcmV1MultiassetAssetId: XcmV1MultiassetAssetId;1433 XcmV1MultiassetAssetInstance: XcmV1MultiassetAssetInstance;1434 XcmV1MultiassetFungibility: XcmV1MultiassetFungibility;1435 XcmV1MultiassetMultiAssetFilter: XcmV1MultiassetMultiAssetFilter;1436 XcmV1MultiassetMultiAssets: XcmV1MultiassetMultiAssets;1437 XcmV1MultiassetWildFungibility: XcmV1MultiassetWildFungibility;1438 XcmV1MultiassetWildMultiAsset: XcmV1MultiassetWildMultiAsset;1439 XcmV1MultiLocation: XcmV1MultiLocation;1440 XcmV1MultilocationJunctions: XcmV1MultilocationJunctions;1441 XcmV1Order: XcmV1Order;1442 XcmV1Response: XcmV1Response;1443 XcmV1Xcm: XcmV1Xcm;1444 XcmV2: XcmV2;1445 XcmV2Instruction: XcmV2Instruction;1446 XcmV2Response: XcmV2Response;1447 XcmV2TraitsError: XcmV2TraitsError;1448 XcmV2TraitsOutcome: XcmV2TraitsOutcome;1449 XcmV2WeightLimit: XcmV2WeightLimit;1450 XcmV2Xcm: XcmV2Xcm;1451 XcmVersion: XcmVersion;1452 XcmVersionedMultiAsset: XcmVersionedMultiAsset;1453 XcmVersionedMultiAssets: XcmVersionedMultiAssets;1454 XcmVersionedMultiLocation: XcmVersionedMultiLocation;1455 XcmVersionedXcm: XcmVersionedXcm;1456 } // InterfaceTypes1457} // declare moduletests/src/interfaces/default/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/default/types.ts
+++ b/tests/src/interfaces/default/types.ts
@@ -2444,7 +2444,7 @@
}
/** @name PhantomTypeUpDataStructs */
-export interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild]>> {}
+export interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild, UpPovEstimateRpcPovInfo]>> {}
/** @name PolkadotCorePrimitivesInboundDownwardMessage */
export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
@@ -2748,6 +2748,41 @@
readonly type: 'LimitReached' | 'NoLayer';
}
+/** @name SpRuntimeTransactionValidityInvalidTransaction */
+export interface SpRuntimeTransactionValidityInvalidTransaction extends Enum {
+ readonly isCall: boolean;
+ readonly isPayment: boolean;
+ readonly isFuture: boolean;
+ readonly isStale: boolean;
+ readonly isBadProof: boolean;
+ readonly isAncientBirthBlock: boolean;
+ readonly isExhaustsResources: boolean;
+ readonly isCustom: boolean;
+ readonly asCustom: u8;
+ readonly isBadMandatory: boolean;
+ readonly isMandatoryValidation: boolean;
+ readonly isBadSigner: boolean;
+ readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryValidation' | 'BadSigner';
+}
+
+/** @name SpRuntimeTransactionValidityTransactionValidityError */
+export interface SpRuntimeTransactionValidityTransactionValidityError extends Enum {
+ readonly isInvalid: boolean;
+ readonly asInvalid: SpRuntimeTransactionValidityInvalidTransaction;
+ readonly isUnknown: boolean;
+ readonly asUnknown: SpRuntimeTransactionValidityUnknownTransaction;
+ readonly type: 'Invalid' | 'Unknown';
+}
+
+/** @name SpRuntimeTransactionValidityUnknownTransaction */
+export interface SpRuntimeTransactionValidityUnknownTransaction extends Enum {
+ readonly isCannotLookup: boolean;
+ readonly isNoUnsignedValidator: boolean;
+ readonly isCustom: boolean;
+ readonly asCustom: u8;
+ readonly type: 'CannotLookup' | 'NoUnsignedValidator' | 'Custom';
+}
+
/** @name SpTrieStorageProof */
export interface SpTrieStorageProof extends Struct {
readonly trieNodes: BTreeSet<Bytes>;
@@ -3018,6 +3053,21 @@
readonly pieces: u128;
}
+/** @name UpPovEstimateRpcPovInfo */
+export interface UpPovEstimateRpcPovInfo extends Struct {
+ readonly proofSize: u64;
+ readonly compactProofSize: u64;
+ readonly compressedProofSize: u64;
+ readonly results: Vec<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>;
+ readonly keyValues: Vec<UpPovEstimateRpcTrieKeyValue>;
+}
+
+/** @name UpPovEstimateRpcTrieKeyValue */
+export interface UpPovEstimateRpcTrieKeyValue extends Struct {
+ readonly key: Bytes;
+ readonly value: Bytes;
+}
+
/** @name XcmDoubleEncoded */
export interface XcmDoubleEncoded extends Struct {
readonly encoded: Bytes;
tests/src/interfaces/definitions.tsdiffbeforeafterboth--- a/tests/src/interfaces/definitions.ts
+++ b/tests/src/interfaces/definitions.ts
@@ -17,4 +17,5 @@
export {default as unique} from './unique/definitions';
export {default as appPromotion} from './appPromotion/definitions';
export {default as rmrk} from './rmrk/definitions';
-export {default as default} from './default/definitions';
\ No newline at end of file
+export {default as povinfo} from './povinfo/definitions';
+export {default as default} from './default/definitions';
tests/src/interfaces/lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -3106,7 +3106,7 @@
/**
* Lookup399: PhantomType::up_data_structs<T>
**/
- PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,RmrkTraitsCollectionCollectionInfo,RmrkTraitsNftNftInfo,RmrkTraitsResourceResourceInfo,RmrkTraitsPropertyPropertyInfo,RmrkTraitsBaseBaseInfo,RmrkTraitsPartPartType,RmrkTraitsTheme,RmrkTraitsNftNftChild);0]',
+ PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,RmrkTraitsCollectionCollectionInfo,RmrkTraitsNftNftInfo,RmrkTraitsResourceResourceInfo,RmrkTraitsPropertyPropertyInfo,RmrkTraitsBaseBaseInfo,RmrkTraitsPartPartType,RmrkTraitsTheme,RmrkTraitsNftNftChild,UpPovEstimateRpcPovInfo);0]',
/**
* Lookup401: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
@@ -3198,79 +3198,133 @@
nftId: 'u32'
},
/**
- * Lookup414: pallet_common::pallet::Error<T>
+ * Lookup413: up_pov_estimate_rpc::PovInfo
+ **/
+ UpPovEstimateRpcPovInfo: {
+ proofSize: 'u64',
+ compactProofSize: 'u64',
+ compressedProofSize: 'u64',
+ results: 'Vec<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>',
+ keyValues: 'Vec<UpPovEstimateRpcTrieKeyValue>'
+ },
+ /**
+ * Lookup416: sp_runtime::transaction_validity::TransactionValidityError
+ **/
+ SpRuntimeTransactionValidityTransactionValidityError: {
+ _enum: {
+ Invalid: 'SpRuntimeTransactionValidityInvalidTransaction',
+ Unknown: 'SpRuntimeTransactionValidityUnknownTransaction'
+ }
+ },
+ /**
+ * Lookup417: sp_runtime::transaction_validity::InvalidTransaction
+ **/
+ SpRuntimeTransactionValidityInvalidTransaction: {
+ _enum: {
+ Call: 'Null',
+ Payment: 'Null',
+ Future: 'Null',
+ Stale: 'Null',
+ BadProof: 'Null',
+ AncientBirthBlock: 'Null',
+ ExhaustsResources: 'Null',
+ Custom: 'u8',
+ BadMandatory: 'Null',
+ MandatoryValidation: 'Null',
+ BadSigner: 'Null'
+ }
+ },
+ /**
+ * Lookup418: sp_runtime::transaction_validity::UnknownTransaction
+ **/
+ SpRuntimeTransactionValidityUnknownTransaction: {
+ _enum: {
+ CannotLookup: 'Null',
+ NoUnsignedValidator: 'Null',
+ Custom: 'u8'
+ }
+ },
+ /**
+ * Lookup420: up_pov_estimate_rpc::TrieKeyValue
+ **/
+ UpPovEstimateRpcTrieKeyValue: {
+ key: 'Bytes',
+ value: 'Bytes'
+ },
+ /**
+ * Lookup422: pallet_common::pallet::Error<T>
**/
PalletCommonError: {
_enum: ['CollectionNotFound', 'MustBeTokenOwner', 'NoPermission', 'CantDestroyNotEmptyCollection', 'PublicMintingNotAllowed', 'AddressNotInAllowlist', 'CollectionNameLimitExceeded', 'CollectionDescriptionLimitExceeded', 'CollectionTokenPrefixLimitExceeded', 'TotalCollectionsLimitExceeded', 'CollectionAdminCountExceeded', 'CollectionLimitBoundsExceeded', 'OwnerPermissionsCantBeReverted', 'TransferNotAllowed', 'AccountTokenLimitExceeded', 'CollectionTokenLimitExceeded', 'MetadataFlagFrozen', 'TokenNotFound', 'TokenValueTooLow', 'ApprovedValueTooLow', 'CantApproveMoreThanOwned', 'AddressIsZero', 'UnsupportedOperation', 'NotSufficientFounds', 'UserIsNotAllowedToNest', 'SourceCollectionIsNotAllowedToNest', 'CollectionFieldSizeExceeded', 'NoSpaceForProperty', 'PropertyLimitReached', 'PropertyKeyIsTooLong', 'InvalidCharacterInPropertyKey', 'EmptyPropertyKey', 'CollectionIsExternal', 'CollectionIsInternal', 'ConfirmSponsorshipFail', 'UserIsNotCollectionAdmin']
},
/**
- * Lookup416: pallet_fungible::pallet::Error<T>
+ * Lookup424: pallet_fungible::pallet::Error<T>
**/
PalletFungibleError: {
_enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed', 'SettingAllowanceForAllNotAllowed', 'FungibleTokensAreAlwaysValid']
},
/**
- * Lookup420: pallet_refungible::pallet::Error<T>
+ * Lookup428: pallet_refungible::pallet::Error<T>
**/
PalletRefungibleError: {
_enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RepartitionWhileNotOwningAllPieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']
},
/**
- * Lookup421: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup429: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
PalletNonfungibleItemData: {
owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
},
/**
- * Lookup423: up_data_structs::PropertyScope
+ * Lookup431: up_data_structs::PropertyScope
**/
UpDataStructsPropertyScope: {
_enum: ['None', 'Rmrk']
},
/**
- * Lookup426: pallet_nonfungible::pallet::Error<T>
+ * Lookup434: pallet_nonfungible::pallet::Error<T>
**/
PalletNonfungibleError: {
_enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount', 'CantBurnNftWithChildren']
},
/**
- * Lookup427: pallet_structure::pallet::Error<T>
+ * Lookup435: pallet_structure::pallet::Error<T>
**/
PalletStructureError: {
_enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound']
},
/**
- * Lookup428: pallet_rmrk_core::pallet::Error<T>
+ * Lookup436: 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']
},
/**
- * Lookup430: pallet_rmrk_equip::pallet::Error<T>
+ * Lookup438: pallet_rmrk_equip::pallet::Error<T>
**/
PalletRmrkEquipError: {
_enum: ['PermissionError', 'NoAvailableBaseId', 'NoAvailablePartId', 'BaseDoesntExist', 'NeedsDefaultThemeFirst', 'PartDoesntExist', 'NoEquippableOnFixedPart']
},
/**
- * Lookup436: pallet_app_promotion::pallet::Error<T>
+ * Lookup444: pallet_app_promotion::pallet::Error<T>
**/
PalletAppPromotionError: {
_enum: ['AdminNotSet', 'NoPermission', 'NotSufficientFunds', 'PendingForBlockOverflow', 'SponsorNotSet', 'IncorrectLockedBalanceOperation']
},
/**
- * Lookup437: pallet_foreign_assets::module::Error<T>
+ * Lookup445: pallet_foreign_assets::module::Error<T>
**/
PalletForeignAssetsModuleError: {
_enum: ['BadLocation', 'MultiLocationExisted', 'AssetIdNotExists', 'AssetIdExisted']
},
/**
- * Lookup439: pallet_evm::pallet::Error<T>
+ * Lookup447: pallet_evm::pallet::Error<T>
**/
PalletEvmError: {
_enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce', 'GasLimitTooLow', 'GasLimitTooHigh', 'Undefined', 'Reentrancy', 'TransactionMustComeFromEOA']
},
/**
- * Lookup442: fp_rpc::TransactionStatus
+ * Lookup450: fp_rpc::TransactionStatus
**/
FpRpcTransactionStatus: {
transactionHash: 'H256',
@@ -3282,11 +3336,11 @@
logsBloom: 'EthbloomBloom'
},
/**
- * Lookup444: ethbloom::Bloom
+ * Lookup452: ethbloom::Bloom
**/
EthbloomBloom: '[u8;256]',
/**
- * Lookup446: ethereum::receipt::ReceiptV3
+ * Lookup454: ethereum::receipt::ReceiptV3
**/
EthereumReceiptReceiptV3: {
_enum: {
@@ -3296,7 +3350,7 @@
}
},
/**
- * Lookup447: ethereum::receipt::EIP658ReceiptData
+ * Lookup455: ethereum::receipt::EIP658ReceiptData
**/
EthereumReceiptEip658ReceiptData: {
statusCode: 'u8',
@@ -3305,7 +3359,7 @@
logs: 'Vec<EthereumLog>'
},
/**
- * Lookup448: ethereum::block::Block<ethereum::transaction::TransactionV2>
+ * Lookup456: ethereum::block::Block<ethereum::transaction::TransactionV2>
**/
EthereumBlock: {
header: 'EthereumHeader',
@@ -3313,7 +3367,7 @@
ommers: 'Vec<EthereumHeader>'
},
/**
- * Lookup449: ethereum::header::Header
+ * Lookup457: ethereum::header::Header
**/
EthereumHeader: {
parentHash: 'H256',
@@ -3333,23 +3387,23 @@
nonce: 'EthereumTypesHashH64'
},
/**
- * Lookup450: ethereum_types::hash::H64
+ * Lookup458: ethereum_types::hash::H64
**/
EthereumTypesHashH64: '[u8;8]',
/**
- * Lookup455: pallet_ethereum::pallet::Error<T>
+ * Lookup463: pallet_ethereum::pallet::Error<T>
**/
PalletEthereumError: {
_enum: ['InvalidSignature', 'PreLogExists']
},
/**
- * Lookup456: pallet_evm_coder_substrate::pallet::Error<T>
+ * Lookup464: pallet_evm_coder_substrate::pallet::Error<T>
**/
PalletEvmCoderSubstrateError: {
_enum: ['OutOfGas', 'OutOfFund']
},
/**
- * Lookup457: up_data_structs::SponsorshipState<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup465: up_data_structs::SponsorshipState<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsSponsorshipStateBasicCrossAccountIdRepr: {
_enum: {
@@ -3359,35 +3413,35 @@
}
},
/**
- * Lookup458: pallet_evm_contract_helpers::SponsoringModeT
+ * Lookup466: pallet_evm_contract_helpers::SponsoringModeT
**/
PalletEvmContractHelpersSponsoringModeT: {
_enum: ['Disabled', 'Allowlisted', 'Generous']
},
/**
- * Lookup464: pallet_evm_contract_helpers::pallet::Error<T>
+ * Lookup472: pallet_evm_contract_helpers::pallet::Error<T>
**/
PalletEvmContractHelpersError: {
_enum: ['NoPermission', 'NoPendingSponsor', 'TooManyMethodsHaveSponsoredLimit']
},
/**
- * Lookup465: pallet_evm_migration::pallet::Error<T>
+ * Lookup473: pallet_evm_migration::pallet::Error<T>
**/
PalletEvmMigrationError: {
_enum: ['AccountNotEmpty', 'AccountIsNotMigrating', 'BadEvent']
},
/**
- * Lookup466: pallet_maintenance::pallet::Error<T>
+ * Lookup474: pallet_maintenance::pallet::Error<T>
**/
PalletMaintenanceError: 'Null',
/**
- * Lookup467: pallet_test_utils::pallet::Error<T>
+ * Lookup475: pallet_test_utils::pallet::Error<T>
**/
PalletTestUtilsError: {
_enum: ['TestPalletDisabled', 'TriggerRollback']
},
/**
- * Lookup469: sp_runtime::MultiSignature
+ * Lookup477: sp_runtime::MultiSignature
**/
SpRuntimeMultiSignature: {
_enum: {
@@ -3397,51 +3451,51 @@
}
},
/**
- * Lookup470: sp_core::ed25519::Signature
+ * Lookup478: sp_core::ed25519::Signature
**/
SpCoreEd25519Signature: '[u8;64]',
/**
- * Lookup472: sp_core::sr25519::Signature
+ * Lookup480: sp_core::sr25519::Signature
**/
SpCoreSr25519Signature: '[u8;64]',
/**
- * Lookup473: sp_core::ecdsa::Signature
+ * Lookup481: sp_core::ecdsa::Signature
**/
SpCoreEcdsaSignature: '[u8;65]',
/**
- * Lookup476: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
+ * Lookup484: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
**/
FrameSystemExtensionsCheckSpecVersion: 'Null',
/**
- * Lookup477: frame_system::extensions::check_tx_version::CheckTxVersion<T>
+ * Lookup485: frame_system::extensions::check_tx_version::CheckTxVersion<T>
**/
FrameSystemExtensionsCheckTxVersion: 'Null',
/**
- * Lookup478: frame_system::extensions::check_genesis::CheckGenesis<T>
+ * Lookup486: frame_system::extensions::check_genesis::CheckGenesis<T>
**/
FrameSystemExtensionsCheckGenesis: 'Null',
/**
- * Lookup481: frame_system::extensions::check_nonce::CheckNonce<T>
+ * Lookup489: frame_system::extensions::check_nonce::CheckNonce<T>
**/
FrameSystemExtensionsCheckNonce: 'Compact<u32>',
/**
- * Lookup482: frame_system::extensions::check_weight::CheckWeight<T>
+ * Lookup490: frame_system::extensions::check_weight::CheckWeight<T>
**/
FrameSystemExtensionsCheckWeight: 'Null',
/**
- * Lookup483: opal_runtime::runtime_common::maintenance::CheckMaintenance
+ * Lookup491: opal_runtime::runtime_common::maintenance::CheckMaintenance
**/
OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance: 'Null',
/**
- * Lookup484: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
+ * Lookup492: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
**/
PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
/**
- * Lookup485: opal_runtime::Runtime
+ * Lookup493: opal_runtime::Runtime
**/
OpalRuntimeRuntime: 'Null',
/**
- * Lookup486: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
+ * Lookup494: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>
**/
PalletEthereumFakeTransactionFinalizer: 'Null'
};
tests/src/interfaces/povinfo/definitions.tsdiffbeforeafterboth--- /dev/null
+++ b/tests/src/interfaces/povinfo/definitions.ts
@@ -0,0 +1,40 @@
+// 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/>.
+
+type RpcParam = {
+ name: string;
+ type: string;
+ isOptional?: true;
+};
+
+const atParam = {name: 'at', type: 'Hash', isOptional: true};
+
+const fun = (description: string, params: RpcParam[], type: string) => ({
+ description,
+ params: [...params, atParam],
+ type,
+});
+
+export default {
+ types: {},
+ rpc: {
+ estimateExtrinsicPoV: fun(
+ 'Estimate PoV size of encoded signed extrinsics',
+ [{name: 'encodedXt', type: 'Vec<Bytes>'}],
+ 'UpPovEstimateRpcPovInfo',
+ ),
+ },
+};
tests/src/interfaces/povinfo/index.tsdiffbeforeafterboth--- /dev/null
+++ b/tests/src/interfaces/povinfo/index.ts
@@ -0,0 +1,4 @@
+// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
+/* eslint-disable */
+
+export * from './types';
tests/src/interfaces/povinfo/types.tsdiffbeforeafterboth--- /dev/null
+++ b/tests/src/interfaces/povinfo/types.ts
@@ -0,0 +1,4 @@
+// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
+/* eslint-disable */
+
+export type PHANTOM_POVINFO = 'povinfo';
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, 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, 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, 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, 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, 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, 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';
declare module '@polkadot/types/types/registry' {
interface InterfaceTypes {
@@ -198,6 +198,9 @@
SpRuntimeModuleError: SpRuntimeModuleError;
SpRuntimeMultiSignature: SpRuntimeMultiSignature;
SpRuntimeTokenError: SpRuntimeTokenError;
+ SpRuntimeTransactionValidityInvalidTransaction: SpRuntimeTransactionValidityInvalidTransaction;
+ SpRuntimeTransactionValidityTransactionValidityError: SpRuntimeTransactionValidityTransactionValidityError;
+ SpRuntimeTransactionValidityUnknownTransaction: SpRuntimeTransactionValidityUnknownTransaction;
SpRuntimeTransactionalError: SpRuntimeTransactionalError;
SpTrieStorageProof: SpTrieStorageProof;
SpVersionRuntimeVersion: SpVersionRuntimeVersion;
@@ -234,6 +237,8 @@
UpDataStructsSponsorshipStateBasicCrossAccountIdRepr: UpDataStructsSponsorshipStateBasicCrossAccountIdRepr;
UpDataStructsTokenChild: UpDataStructsTokenChild;
UpDataStructsTokenData: UpDataStructsTokenData;
+ UpPovEstimateRpcPovInfo: UpPovEstimateRpcPovInfo;
+ UpPovEstimateRpcTrieKeyValue: UpPovEstimateRpcTrieKeyValue;
XcmDoubleEncoded: XcmDoubleEncoded;
XcmV0Junction: XcmV0Junction;
XcmV0JunctionBodyId: XcmV0JunctionBodyId;
tests/src/interfaces/types-lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/types-lookup.ts
+++ b/tests/src/interfaces/types-lookup.ts
@@ -3380,7 +3380,7 @@
}
/** @name PhantomTypeUpDataStructs (399) */
- interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild]>> {}
+ interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild, UpPovEstimateRpcPovInfo]>> {}
/** @name UpDataStructsTokenData (401) */
interface UpDataStructsTokenData extends Struct {
@@ -3462,7 +3462,57 @@
readonly nftId: u32;
}
- /** @name PalletCommonError (414) */
+ /** @name UpPovEstimateRpcPovInfo (413) */
+ interface UpPovEstimateRpcPovInfo extends Struct {
+ readonly proofSize: u64;
+ readonly compactProofSize: u64;
+ readonly compressedProofSize: u64;
+ readonly results: Vec<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>;
+ readonly keyValues: Vec<UpPovEstimateRpcTrieKeyValue>;
+ }
+
+ /** @name SpRuntimeTransactionValidityTransactionValidityError (416) */
+ interface SpRuntimeTransactionValidityTransactionValidityError extends Enum {
+ readonly isInvalid: boolean;
+ readonly asInvalid: SpRuntimeTransactionValidityInvalidTransaction;
+ readonly isUnknown: boolean;
+ readonly asUnknown: SpRuntimeTransactionValidityUnknownTransaction;
+ readonly type: 'Invalid' | 'Unknown';
+ }
+
+ /** @name SpRuntimeTransactionValidityInvalidTransaction (417) */
+ interface SpRuntimeTransactionValidityInvalidTransaction extends Enum {
+ readonly isCall: boolean;
+ readonly isPayment: boolean;
+ readonly isFuture: boolean;
+ readonly isStale: boolean;
+ readonly isBadProof: boolean;
+ readonly isAncientBirthBlock: boolean;
+ readonly isExhaustsResources: boolean;
+ readonly isCustom: boolean;
+ readonly asCustom: u8;
+ readonly isBadMandatory: boolean;
+ readonly isMandatoryValidation: boolean;
+ readonly isBadSigner: boolean;
+ readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryValidation' | 'BadSigner';
+ }
+
+ /** @name SpRuntimeTransactionValidityUnknownTransaction (418) */
+ interface SpRuntimeTransactionValidityUnknownTransaction extends Enum {
+ readonly isCannotLookup: boolean;
+ readonly isNoUnsignedValidator: boolean;
+ readonly isCustom: boolean;
+ readonly asCustom: u8;
+ readonly type: 'CannotLookup' | 'NoUnsignedValidator' | 'Custom';
+ }
+
+ /** @name UpPovEstimateRpcTrieKeyValue (420) */
+ interface UpPovEstimateRpcTrieKeyValue extends Struct {
+ readonly key: Bytes;
+ readonly value: Bytes;
+ }
+
+ /** @name PalletCommonError (422) */
interface PalletCommonError extends Enum {
readonly isCollectionNotFound: boolean;
readonly isMustBeTokenOwner: boolean;
@@ -3503,7 +3553,7 @@
readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'CantDestroyNotEmptyCollection' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds' | 'UserIsNotAllowedToNest' | 'SourceCollectionIsNotAllowedToNest' | 'CollectionFieldSizeExceeded' | 'NoSpaceForProperty' | 'PropertyLimitReached' | 'PropertyKeyIsTooLong' | 'InvalidCharacterInPropertyKey' | 'EmptyPropertyKey' | 'CollectionIsExternal' | 'CollectionIsInternal' | 'ConfirmSponsorshipFail' | 'UserIsNotCollectionAdmin';
}
- /** @name PalletFungibleError (416) */
+ /** @name PalletFungibleError (424) */
interface PalletFungibleError extends Enum {
readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isFungibleItemsHaveNoId: boolean;
@@ -3515,7 +3565,7 @@
readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed' | 'FungibleTokensAreAlwaysValid';
}
- /** @name PalletRefungibleError (420) */
+ /** @name PalletRefungibleError (428) */
interface PalletRefungibleError extends Enum {
readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isWrongRefungiblePieces: boolean;
@@ -3525,19 +3575,19 @@
readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';
}
- /** @name PalletNonfungibleItemData (421) */
+ /** @name PalletNonfungibleItemData (429) */
interface PalletNonfungibleItemData extends Struct {
readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
}
- /** @name UpDataStructsPropertyScope (423) */
+ /** @name UpDataStructsPropertyScope (431) */
interface UpDataStructsPropertyScope extends Enum {
readonly isNone: boolean;
readonly isRmrk: boolean;
readonly type: 'None' | 'Rmrk';
}
- /** @name PalletNonfungibleError (426) */
+ /** @name PalletNonfungibleError (434) */
interface PalletNonfungibleError extends Enum {
readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;
readonly isNonfungibleItemsHaveNoAmount: boolean;
@@ -3545,7 +3595,7 @@
readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';
}
- /** @name PalletStructureError (427) */
+ /** @name PalletStructureError (435) */
interface PalletStructureError extends Enum {
readonly isOuroborosDetected: boolean;
readonly isDepthLimit: boolean;
@@ -3554,7 +3604,7 @@
readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';
}
- /** @name PalletRmrkCoreError (428) */
+ /** @name PalletRmrkCoreError (436) */
interface PalletRmrkCoreError extends Enum {
readonly isCorruptedCollectionType: boolean;
readonly isRmrkPropertyKeyIsTooLong: boolean;
@@ -3578,7 +3628,7 @@
readonly type: 'CorruptedCollectionType' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';
}
- /** @name PalletRmrkEquipError (430) */
+ /** @name PalletRmrkEquipError (438) */
interface PalletRmrkEquipError extends Enum {
readonly isPermissionError: boolean;
readonly isNoAvailableBaseId: boolean;
@@ -3590,7 +3640,7 @@
readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';
}
- /** @name PalletAppPromotionError (436) */
+ /** @name PalletAppPromotionError (444) */
interface PalletAppPromotionError extends Enum {
readonly isAdminNotSet: boolean;
readonly isNoPermission: boolean;
@@ -3601,7 +3651,7 @@
readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFunds' | 'PendingForBlockOverflow' | 'SponsorNotSet' | 'IncorrectLockedBalanceOperation';
}
- /** @name PalletForeignAssetsModuleError (437) */
+ /** @name PalletForeignAssetsModuleError (445) */
interface PalletForeignAssetsModuleError extends Enum {
readonly isBadLocation: boolean;
readonly isMultiLocationExisted: boolean;
@@ -3610,7 +3660,7 @@
readonly type: 'BadLocation' | 'MultiLocationExisted' | 'AssetIdNotExists' | 'AssetIdExisted';
}
- /** @name PalletEvmError (439) */
+ /** @name PalletEvmError (447) */
interface PalletEvmError extends Enum {
readonly isBalanceLow: boolean;
readonly isFeeOverflow: boolean;
@@ -3626,7 +3676,7 @@
readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce' | 'GasLimitTooLow' | 'GasLimitTooHigh' | 'Undefined' | 'Reentrancy' | 'TransactionMustComeFromEOA';
}
- /** @name FpRpcTransactionStatus (442) */
+ /** @name FpRpcTransactionStatus (450) */
interface FpRpcTransactionStatus extends Struct {
readonly transactionHash: H256;
readonly transactionIndex: u32;
@@ -3637,10 +3687,10 @@
readonly logsBloom: EthbloomBloom;
}
- /** @name EthbloomBloom (444) */
+ /** @name EthbloomBloom (452) */
interface EthbloomBloom extends U8aFixed {}
- /** @name EthereumReceiptReceiptV3 (446) */
+ /** @name EthereumReceiptReceiptV3 (454) */
interface EthereumReceiptReceiptV3 extends Enum {
readonly isLegacy: boolean;
readonly asLegacy: EthereumReceiptEip658ReceiptData;
@@ -3651,7 +3701,7 @@
readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
}
- /** @name EthereumReceiptEip658ReceiptData (447) */
+ /** @name EthereumReceiptEip658ReceiptData (455) */
interface EthereumReceiptEip658ReceiptData extends Struct {
readonly statusCode: u8;
readonly usedGas: U256;
@@ -3659,14 +3709,14 @@
readonly logs: Vec<EthereumLog>;
}
- /** @name EthereumBlock (448) */
+ /** @name EthereumBlock (456) */
interface EthereumBlock extends Struct {
readonly header: EthereumHeader;
readonly transactions: Vec<EthereumTransactionTransactionV2>;
readonly ommers: Vec<EthereumHeader>;
}
- /** @name EthereumHeader (449) */
+ /** @name EthereumHeader (457) */
interface EthereumHeader extends Struct {
readonly parentHash: H256;
readonly ommersHash: H256;
@@ -3685,24 +3735,24 @@
readonly nonce: EthereumTypesHashH64;
}
- /** @name EthereumTypesHashH64 (450) */
+ /** @name EthereumTypesHashH64 (458) */
interface EthereumTypesHashH64 extends U8aFixed {}
- /** @name PalletEthereumError (455) */
+ /** @name PalletEthereumError (463) */
interface PalletEthereumError extends Enum {
readonly isInvalidSignature: boolean;
readonly isPreLogExists: boolean;
readonly type: 'InvalidSignature' | 'PreLogExists';
}
- /** @name PalletEvmCoderSubstrateError (456) */
+ /** @name PalletEvmCoderSubstrateError (464) */
interface PalletEvmCoderSubstrateError extends Enum {
readonly isOutOfGas: boolean;
readonly isOutOfFund: boolean;
readonly type: 'OutOfGas' | 'OutOfFund';
}
- /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (457) */
+ /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (465) */
interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum {
readonly isDisabled: boolean;
readonly isUnconfirmed: boolean;
@@ -3712,7 +3762,7 @@
readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';
}
- /** @name PalletEvmContractHelpersSponsoringModeT (458) */
+ /** @name PalletEvmContractHelpersSponsoringModeT (466) */
interface PalletEvmContractHelpersSponsoringModeT extends Enum {
readonly isDisabled: boolean;
readonly isAllowlisted: boolean;
@@ -3720,7 +3770,7 @@
readonly type: 'Disabled' | 'Allowlisted' | 'Generous';
}
- /** @name PalletEvmContractHelpersError (464) */
+ /** @name PalletEvmContractHelpersError (472) */
interface PalletEvmContractHelpersError extends Enum {
readonly isNoPermission: boolean;
readonly isNoPendingSponsor: boolean;
@@ -3728,7 +3778,7 @@
readonly type: 'NoPermission' | 'NoPendingSponsor' | 'TooManyMethodsHaveSponsoredLimit';
}
- /** @name PalletEvmMigrationError (465) */
+ /** @name PalletEvmMigrationError (473) */
interface PalletEvmMigrationError extends Enum {
readonly isAccountNotEmpty: boolean;
readonly isAccountIsNotMigrating: boolean;
@@ -3736,17 +3786,17 @@
readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating' | 'BadEvent';
}
- /** @name PalletMaintenanceError (466) */
+ /** @name PalletMaintenanceError (474) */
type PalletMaintenanceError = Null;
- /** @name PalletTestUtilsError (467) */
+ /** @name PalletTestUtilsError (475) */
interface PalletTestUtilsError extends Enum {
readonly isTestPalletDisabled: boolean;
readonly isTriggerRollback: boolean;
readonly type: 'TestPalletDisabled' | 'TriggerRollback';
}
- /** @name SpRuntimeMultiSignature (469) */
+ /** @name SpRuntimeMultiSignature (477) */
interface SpRuntimeMultiSignature extends Enum {
readonly isEd25519: boolean;
readonly asEd25519: SpCoreEd25519Signature;
@@ -3757,40 +3807,40 @@
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
}
- /** @name SpCoreEd25519Signature (470) */
+ /** @name SpCoreEd25519Signature (478) */
interface SpCoreEd25519Signature extends U8aFixed {}
- /** @name SpCoreSr25519Signature (472) */
+ /** @name SpCoreSr25519Signature (480) */
interface SpCoreSr25519Signature extends U8aFixed {}
- /** @name SpCoreEcdsaSignature (473) */
+ /** @name SpCoreEcdsaSignature (481) */
interface SpCoreEcdsaSignature extends U8aFixed {}
- /** @name FrameSystemExtensionsCheckSpecVersion (476) */
+ /** @name FrameSystemExtensionsCheckSpecVersion (484) */
type FrameSystemExtensionsCheckSpecVersion = Null;
- /** @name FrameSystemExtensionsCheckTxVersion (477) */
+ /** @name FrameSystemExtensionsCheckTxVersion (485) */
type FrameSystemExtensionsCheckTxVersion = Null;
- /** @name FrameSystemExtensionsCheckGenesis (478) */
+ /** @name FrameSystemExtensionsCheckGenesis (486) */
type FrameSystemExtensionsCheckGenesis = Null;
- /** @name FrameSystemExtensionsCheckNonce (481) */
+ /** @name FrameSystemExtensionsCheckNonce (489) */
interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}
- /** @name FrameSystemExtensionsCheckWeight (482) */
+ /** @name FrameSystemExtensionsCheckWeight (490) */
type FrameSystemExtensionsCheckWeight = Null;
- /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (483) */
+ /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (491) */
type OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance = Null;
- /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (484) */
+ /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (492) */
interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
- /** @name OpalRuntimeRuntime (485) */
+ /** @name OpalRuntimeRuntime (493) */
type OpalRuntimeRuntime = Null;
- /** @name PalletEthereumFakeTransactionFinalizer (486) */
+ /** @name PalletEthereumFakeTransactionFinalizer (494) */
type PalletEthereumFakeTransactionFinalizer = Null;
} // declare module
tests/src/interfaces/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/types.ts
+++ b/tests/src/interfaces/types.ts
@@ -4,4 +4,5 @@
export * from './unique/types';
export * from './appPromotion/types';
export * from './rmrk/types';
+export * from './povinfo/types';
export * from './default/types';
tests/src/util/playgrounds/types.tsdiffbeforeafterboth--- a/tests/src/util/playgrounds/types.ts
+++ b/tests/src/util/playgrounds/types.ts
@@ -171,6 +171,14 @@
amount: bigint,
}
+export interface IPovInfo {
+ proofSize: number,
+ compactProofSize: number,
+ compressedProofSize: number,
+ results: any[],
+ kv: any,
+}
+
export interface ISchedulerOptions {
scheduledId?: string,
priority?: number,
tests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth--- a/tests/src/util/playgrounds/unique.dev.ts
+++ b/tests/src/util/playgrounds/unique.dev.ts
@@ -8,10 +8,11 @@
import * as defs from '../../interfaces/definitions';
import {IKeyringPair} from '@polkadot/types/types';
import {EventRecord} from '@polkadot/types/interfaces';
-import {ICrossAccountId, TSigner} from './types';
+import {ICrossAccountId, IPovInfo, TSigner} from './types';
import {FrameSystemEventRecord} from '@polkadot/types/lookup';
import {VoidFn} from '@polkadot/api/types';
import {Pallets} from '..';
+import {spawnSync} from 'child_process';
export class SilentLogger {
log(_msg: any, _level: any): void { }
@@ -98,6 +99,7 @@
rpc: {
unique: defs.unique.rpc,
appPromotion: defs.appPromotion.rpc,
+ povinfo: defs.povinfo.rpc,
rmrk: defs.rmrk.rpc,
eth: {
feeHistory: {
@@ -115,6 +117,7 @@
});
await this.api.isReadyOrError;
this.network = await UniqueHelper.detectNetwork(this.api);
+ this.wsEndpoint = wsEndpoint;
}
}
@@ -322,6 +325,38 @@
return balance;
}
+ async calculatePoVInfo(txs: any[]): Promise<IPovInfo> {
+ const rawPovInfo = await this.helper.callRpc('api.rpc.povinfo.estimateExtrinsicPoV', [txs]);
+
+ const kvJson: {[key: string]: string} = {};
+
+ for (const kv of rawPovInfo.keyValues) {
+ kvJson[kv.key.toHex()] = kv.value.toHex();
+ }
+
+ const kvStr = JSON.stringify(kvJson);
+
+ const chainql = spawnSync(
+ 'chainql',
+ [
+ `--tla-code=data=${kvStr}`,
+ '-e', `function(data) cql.dump(cql.chain("${this.helper.getEndpoint()}").latest._meta, data, {omit_empty:true})`,
+ ],
+ );
+
+ if (!chainql.stdout) {
+ throw Error('unable to get an output from the `chainql`');
+ }
+
+ return {
+ proofSize: rawPovInfo.proofSize.toNumber(),
+ compactProofSize: rawPovInfo.compactProofSize.toNumber(),
+ compressedProofSize: rawPovInfo.compressedProofSize.toNumber(),
+ results: rawPovInfo.results,
+ kv: JSON.parse(chainql.stdout.toString()),
+ };
+ }
+
calculatePalletAddress(palletId: any) {
const address = stringToU8a(('modl' + palletId).padEnd(32, '\0'));
return encodeAddress(address, this.helper.chain.getChainProperties().ss58Format);
tests/src/util/playgrounds/unique.tsdiffbeforeafterboth--- a/tests/src/util/playgrounds/unique.ts
+++ b/tests/src/util/playgrounds/unique.ts
@@ -371,6 +371,7 @@
api: ApiPromise | null;
forcedNetwork: TNetworks | null;
network: TNetworks | null;
+ wsEndpoint: string | null;
chainLog: IUniqueHelperLog[];
children: ChainHelperBase[];
address: AddressGroup;
@@ -386,6 +387,7 @@
this.api = null;
this.forcedNetwork = null;
this.network = null;
+ this.wsEndpoint = null;
this.chainLog = [];
this.children = [];
this.address = new AddressGroup(this);
@@ -405,6 +407,11 @@
return newHelper;
}
+ getEndpoint(): string {
+ if (this.wsEndpoint === null) throw Error('No connection was established');
+ return this.wsEndpoint;
+ }
+
getApi(): ApiPromise {
if(this.api === null) throw Error('API not initialized');
return this.api;
@@ -436,6 +443,7 @@
async connect(wsEndpoint: string, listeners?: IApiListeners) {
if (this.api !== null) throw Error('Already connected');
const {api, network} = await ChainHelperBase.createConnection(wsEndpoint, listeners, this.forcedNetwork);
+ this.wsEndpoint = wsEndpoint;
this.api = api;
this.network = network;
}
@@ -586,6 +594,20 @@
});
}
+ async signTransactionWithoutSending(signer: TSigner, tx: any) {
+ const api = this.getApi();
+ const signingInfo = await api.derive.tx.signingInfo(signer.address);
+
+ tx.sign(signer, {
+ blockHash: api.genesisHash,
+ genesisHash: api.genesisHash,
+ runtimeVersion: api.runtimeVersion,
+ nonce: signingInfo.nonce,
+ });
+
+ return tx.toHex();
+ }
+
async getPaymentInfo(signer: TSigner, tx: any, len: number | null) {
const api = this.getApi();
const signingInfo = await api.derive.tx.signingInfo(signer.address);