difftreelog
Merge pull request #730 from UniqueNetwork/feature/pov-estimate-api
in: master
Feature/pov estimate api
34 files changed
Cargo.lockdiffbeforeafterboth5362 "substrate-wasm-builder",5362 "substrate-wasm-builder",5363 "up-common",5363 "up-common",5364 "up-data-structs",5364 "up-data-structs",5365 "up-pov-estimate-rpc",5365 "up-rpc",5366 "up-rpc",5366 "up-sponsorship",5367 "up-sponsorship",5367 "xcm",5368 "xcm",5806 "sp-runtime",5807 "sp-runtime",5807 "sp-std",5808 "sp-std",5808 "up-data-structs",5809 "up-data-structs",5810 "up-pov-estimate-rpc",5809]5811]581058125811[[package]]5813[[package]]8917 "substrate-wasm-builder",8919 "substrate-wasm-builder",8918 "up-common",8920 "up-common",8919 "up-data-structs",8921 "up-data-structs",8922 "up-pov-estimate-rpc",8920 "up-rpc",8923 "up-rpc",8921 "up-sponsorship",8924 "up-sponsorship",8922 "xcm",8925 "xcm",12824dependencies = [12827dependencies = [12825 "anyhow",12828 "anyhow",12826 "app-promotion-rpc",12829 "app-promotion-rpc",12830 "frame-benchmarking",12827 "jsonrpsee",12831 "jsonrpsee",12832 "opal-runtime",12828 "pallet-common",12833 "pallet-common",12829 "pallet-evm",12834 "pallet-evm",12830 "parity-scale-codec 3.2.1",12835 "parity-scale-codec 3.2.1",12836 "quartz-runtime",12831 "rmrk-rpc",12837 "rmrk-rpc",12838 "sc-client-api",12839 "sc-executor",12840 "sc-rpc-api",12841 "sc-service",12832 "sp-api",12842 "sp-api",12833 "sp-blockchain",12843 "sp-blockchain",12834 "sp-core",12844 "sp-core",12845 "sp-externalities",12846 "sp-keystore",12835 "sp-rpc",12847 "sp-rpc",12836 "sp-runtime",12848 "sp-runtime",12849 "sp-state-machine",12850 "sp-trie",12851 "trie-db",12852 "unique-runtime",12853 "up-common",12837 "up-data-structs",12854 "up-data-structs",12855 "up-pov-estimate-rpc",12838 "up-rpc",12856 "up-rpc",12857 "zstd",12839]12858]128401285912841[[package]]12860[[package]]12978 "substrate-prometheus-endpoint",12997 "substrate-prometheus-endpoint",12979 "tokio",12998 "tokio",12980 "try-runtime-cli",12999 "try-runtime-cli",13000 "uc-rpc",12981 "unique-rpc",13001 "unique-rpc",12982 "unique-runtime",13002 "unique-runtime",12983 "up-common",13003 "up-common",12984 "up-data-structs",13004 "up-data-structs",13005 "up-pov-estimate-rpc",12985 "up-rpc",13006 "up-rpc",12986]13007]129871300813032 "uc-rpc",13053 "uc-rpc",13033 "up-common",13054 "up-common",13034 "up-data-structs",13055 "up-data-structs",13056 "up-pov-estimate-rpc",13035 "up-rpc",13057 "up-rpc",13036]13058]130371305913125 "substrate-wasm-builder",13147 "substrate-wasm-builder",13126 "up-common",13148 "up-common",13127 "up-data-structs",13149 "up-data-structs",13150 "up-pov-estimate-rpc",13128 "up-rpc",13151 "up-rpc",13129 "up-sponsorship",13152 "up-sponsorship",13130 "xcm",13153 "xcm",13193 "struct-versioning",13216 "struct-versioning",13194]13217]1321813219[[package]]13220name = "up-pov-estimate-rpc"13221version = "0.1.0"13222dependencies = [13223 "parity-scale-codec 3.2.1",13224 "scale-info",13225 "serde",13226 "sp-api",13227 "sp-core",13228 "sp-runtime",13229 "sp-std",13230]131951323113196[[package]]13232[[package]]13197name = "up-rpc"13233name = "up-rpc"Cargo.tomldiffbeforeafterboth11 'runtime/unique',11 'runtime/unique',12 'runtime/tests',12 'runtime/tests',13]13]14default-members = ['node/*', 'runtime/opal']14default-members = ['node/*', 'client/*', 'runtime/opal']15package.version = "0.9.36"15package.version = "0.9.36"161617[profile.release]17[profile.release]client/rpc/Cargo.tomldiffbeforeafterboth7[dependencies]7[dependencies]8pallet-common = { default-features = false, path = '../../pallets/common' }8pallet-common = { default-features = false, path = '../../pallets/common' }9up-data-structs = { default-features = false, path = '../../primitives/data-structs' }9up-data-structs = { default-features = false, path = '../../primitives/data-structs' }10up-common = { default-features = false, path = '../../primitives/common' }10up-rpc = { path = "../../primitives/rpc" }11up-rpc = { path = "../../primitives/rpc" }11app-promotion-rpc = { path = "../../primitives/app_promotion_rpc" }12app-promotion-rpc = { path = "../../primitives/app_promotion_rpc" }12rmrk-rpc = { path = "../../primitives/rmrk-rpc" }13rmrk-rpc = { path = "../../primitives/rmrk-rpc" }14up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", optional = true }13codec = { package = "parity-scale-codec", version = "3.1.2" }15codec = { package = "parity-scale-codec", version = "3.1.2" }14jsonrpsee = { version = "0.16.2", features = ["server", "macros"] }16jsonrpsee = { version = "0.16.2", features = ["server", "macros"] }15anyhow = "1.0.57"17anyhow = "1.0.57"1618zstd = { version = "0.11.2", default-features = false }19trie-db = { version = "0.24.0", default-features = false }2021sc-rpc-api = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }22sc-service = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }23sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }24sp-state-machine = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }25sp-externalities = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }17sp-api = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }26sp-api = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }18sp-blockchain = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }27sp-blockchain = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }19sp-core = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }28sp-core = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }29sp-keystore = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }20sp-rpc = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }30sp-rpc = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }31sp-trie = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }21sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }32sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }22pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }33pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }3435frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }3637sc-executor = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }3839unique-runtime = { path = '../../runtime/unique', optional = true }40quartz-runtime = { path = '../../runtime/quartz', optional = true }41opal-runtime = { path = '../../runtime/opal' }4243[features]44pov-estimate = [45 'up-pov-estimate-rpc',46 'unique-runtime?/pov-estimate',47 'quartz-runtime?/pov-estimate',48 'opal-runtime/pov-estimate',49]2350client/rpc/src/lib.rsdiffbeforeafterboth42pub use app_promotion_unique_rpc::AppPromotionApiServer;42pub use app_promotion_unique_rpc::AppPromotionApiServer;43pub use rmrk_unique_rpc::RmrkApiServer;43pub use rmrk_unique_rpc::RmrkApiServer;4445#[cfg(feature = "pov-estimate")]46pub mod pov_estimate;444745#[rpc(server)]48#[rpc(server)]46#[async_trait]49#[async_trait]420 }423 }421}424}422425426#[macro_export]423macro_rules! define_struct_for_server_api {427macro_rules! define_struct_for_server_api {424 ($name:ident) => {428 ($name:ident { $($arg:ident: $arg_ty:ty),+ $(,)? }) => {425 pub struct $name<C, P> {429 pub struct $name<Client, Block: BlockT> {426 client: Arc<C>,430 $($arg: $arg_ty),+,427 _marker: std::marker::PhantomData<P>,431 _marker: std::marker::PhantomData<Block>,428 }432 }429433430 impl<C, P> $name<C, P> {434 impl<Client, Block: BlockT> $name<Client, Block> {431 pub fn new(client: Arc<C>) -> Self {435 pub fn new($($arg: $arg_ty),+) -> Self {432 Self {436 Self {433 client,437 $($arg),+,434 _marker: Default::default(),438 _marker: Default::default(),435 }439 }436 }440 }437 }441 }438 };442 };439}443}440444441define_struct_for_server_api!(Unique);445define_struct_for_server_api! {446 Unique {447 client: Arc<Client>448 }449}450442define_struct_for_server_api!(AppPromotion);451define_struct_for_server_api! {452 AppPromotion {453 client: Arc<Client>454 }455}456443define_struct_for_server_api!(Rmrk);457define_struct_for_server_api! {458 Rmrk {459 client: Arc<Client>460 }461}444462445macro_rules! pass_method {463macro_rules! pass_method {446 (464 (client/rpc/src/pov_estimate.rsdiffbeforeafterbothno changes
node/cli/Cargo.tomldiffbeforeafterboth319pallet-ethereum = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }319pallet-ethereum = { git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }320320321unique-rpc = { default-features = false, path = "../rpc" }321unique-rpc = { default-features = false, path = "../rpc" }322uc-rpc = { default-features = false, path = "../../client/rpc" }322app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }323app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }323rmrk-rpc = { path = "../../primitives/rmrk-rpc" }324rmrk-rpc = { path = "../../primitives/rmrk-rpc" }325up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", default-features = false }324326325[features]327[features]326default = ["opal-runtime"]328default = ["opal-runtime"]339 'try-runtime-cli/try-runtime',341 'try-runtime-cli/try-runtime',340]342]341sapphire-runtime = ['opal-runtime', 'opal-runtime/become-sapphire']343sapphire-runtime = ['opal-runtime', 'opal-runtime/become-sapphire']344pov-estimate = [345 'unique-runtime?/pov-estimate',346 'quartz-runtime?/pov-estimate',347 'opal-runtime/pov-estimate',348 'uc-rpc/pov-estimate',349 'unique-rpc/pov-estimate',350]342351node/cli/src/chain_spec.rsdiffbeforeafterboth54#[cfg(all(not(feature = "unique-runtime"), not(feature = "quartz-runtime")))]54#[cfg(all(not(feature = "unique-runtime"), not(feature = "quartz-runtime")))]55pub type DefaultChainSpec = OpalChainSpec;55pub type DefaultChainSpec = OpalChainSpec;5657pub enum RuntimeId {58 #[cfg(feature = "unique-runtime")]59 Unique,6061 #[cfg(feature = "quartz-runtime")]62 Quartz,6364 Opal,65 Unknown(String),66}675668#[cfg(not(feature = "unique-runtime"))]57#[cfg(not(feature = "unique-runtime"))]69/// PARA_ID for Opal/Sapphire/Quartz58/// PARA_ID for Opal/Sapphire/Quartznode/cli/src/command.rsdiffbeforeafterboth33// limitations under the License.33// limitations under the License.343435use crate::{35use crate::{36 chain_spec::{self, RuntimeId, RuntimeIdentification, ServiceId, ServiceIdentification},36 chain_spec::{self, RuntimeIdentification, ServiceId, ServiceIdentification},37 cli::{Cli, RelayChainCli, Subcommand},37 cli::{Cli, RelayChainCli, Subcommand},38 service::{new_partial, start_node, start_dev_node},38 service::{new_partial, start_node, start_dev_node},39};39};66use sp_runtime::traits::{AccountIdConversion, Block as BlockT};66use sp_runtime::traits::{AccountIdConversion, Block as BlockT};67use std::{net::SocketAddr, time::Duration};67use std::{net::SocketAddr, time::Duration};686869use up_common::types::opaque::Block;69use up_common::types::opaque::{Block, RuntimeId};707071macro_rules! no_runtime_err {71macro_rules! no_runtime_err {72 ($chain_name:expr) => {72 ($runtime_id:expr) => {73 format!(73 format!(74 "No runtime valid runtime was found for chain {}",74 "No runtime valid runtime was found for chain {:#?}",75 $chain_name75 $runtime_id76 )76 )77 };77 };78}78}94 RuntimeId::Quartz => Box::new(chain_spec::QuartzChainSpec::from_json_file(path)?),94 RuntimeId::Quartz => Box::new(chain_spec::QuartzChainSpec::from_json_file(path)?),959596 RuntimeId::Opal => chain_spec,96 RuntimeId::Opal => chain_spec,97 RuntimeId::Unknown(chain) => return Err(no_runtime_err!(chain)),97 runtime_id => return Err(no_runtime_err!(runtime_id)),98 }98 }99 }99 }100 })100 })147 RuntimeId::Quartz => &quartz_runtime::VERSION,147 RuntimeId::Quartz => &quartz_runtime::VERSION,148148149 RuntimeId::Opal => &opal_runtime::VERSION,149 RuntimeId::Opal => &opal_runtime::VERSION,150 RuntimeId::Unknown(chain) => panic!("{}", no_runtime_err!(chain)),150 runtime_id => panic!("{}", no_runtime_err!(runtime_id)),151 }151 }152 }152 }153}153}235 runner, $components, $cli, $cmd, $config, $( $code )*235 runner, $components, $cli, $cmd, $config, $( $code )*236 ),236 ),237237238 RuntimeId::Unknown(chain) => Err(no_runtime_err!(chain).into())238 runtime_id => Err(no_runtime_err!(runtime_id).into())239 }239 }240 }}240 }}241}241}274 runner, $components, $cli, $cmd, $config, $( $code )*274 runner, $components, $cli, $cmd, $config, $( $code )*275 ),275 ),276276277 RuntimeId::Unknown(chain) => Err(no_runtime_err!(chain).into())277 runtime_id => Err(no_runtime_err!(runtime_id).into())278 }278 }279 }}279 }}280}280}302 OpalRuntimeExecutor,302 OpalRuntimeExecutor,303 >($config $(, $($args),+)?) $($code)*,303 >($config $(, $($args),+)?) $($code)*,304304305 RuntimeId::Unknown(chain) => Err(no_runtime_err!(chain).into()),305 runtime_id => Err(no_runtime_err!(runtime_id).into()),306 }306 }307 };307 };308}308}445 sp_io::SubstrateHostFunctions,445 sp_io::SubstrateHostFunctions,446 <OpalRuntimeExecutor as NativeExecutionDispatch>::ExtendHostFunctions,446 <OpalRuntimeExecutor as NativeExecutionDispatch>::ExtendHostFunctions,447 >>()),447 >>()),448 RuntimeId::Unknown(chain) => return Err(no_runtime_err!(chain).into()),448 runtime_id => return Err(no_runtime_err!(runtime_id).into()),449 },449 },450 task_manager,450 task_manager,451 ))451 ))node/cli/src/service.rsdiffbeforeafterboth66use fc_rpc_core::types::FilterPool;66use fc_rpc_core::types::FilterPool;67use fc_mapping_sync::{MappingSyncWorker, SyncStrategy};67use fc_mapping_sync::{MappingSyncWorker, SyncStrategy};686869use up_common::types::opaque::{69use up_common::types::opaque::*;70 AuraId, RuntimeInstance, AccountId, Balance, Index, Hash, Block, BlockNumber,7071};71#[cfg(feature = "pov-estimate")]72use crate::chain_spec::RuntimeIdentification;727373// RMRK74// RMRK74use up_data_structs::{75use up_data_structs::{412 RmrkBaseInfo<AccountId>,413 RmrkBaseInfo<AccountId>,413 RmrkPartType,414 RmrkPartType,414 RmrkTheme,415 RmrkTheme,415 > + substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>416 > + up_pov_estimate_rpc::PovEstimateApi<Block>417 + substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>416 + sp_api::Metadata<Block>418 + sp_api::Metadata<Block>417 + sp_offchain::OffchainWorkerApi<Block>419 + sp_offchain::OffchainWorkerApi<Block>517 .for_each(|()| futures::future::ready(())),519 .for_each(|()| futures::future::ready(())),518 );520 );521522 #[cfg(feature = "pov-estimate")]523 let rpc_backend = backend.clone();524525 #[cfg(feature = "pov-estimate")]526 let runtime_id = parachain_config.chain_spec.runtime_id();519527520 let rpc_builder = Box::new(move |deny_unsafe, subscription_task_executor| {528 let rpc_builder = Box::new(move |deny_unsafe, subscription_task_executor| {521 let full_deps = unique_rpc::FullDeps {529 let full_deps = unique_rpc::FullDeps {530 #[cfg(feature = "pov-estimate")]531 runtime_id: runtime_id.clone(),532533 #[cfg(feature = "pov-estimate")]534 exec_params: uc_rpc::pov_estimate::ExecutorParams {535 wasm_method: parachain_config.wasm_method,536 default_heap_pages: parachain_config.default_heap_pages,537 max_runtime_instances: parachain_config.max_runtime_instances,538 runtime_cache_size: parachain_config.runtime_cache_size,539 },540541 #[cfg(feature = "pov-estimate")]522 backend: rpc_frontier_backend.clone(),542 backend: rpc_backend.clone(),543544 eth_backend: rpc_frontier_backend.clone(),523 deny_unsafe,545 deny_unsafe,524 client: rpc_client.clone(),546 client: rpc_client.clone(),525 pool: rpc_pool.clone(),547 pool: rpc_pool.clone(),720 RmrkBaseInfo<AccountId>,742 RmrkBaseInfo<AccountId>,721 RmrkPartType,743 RmrkPartType,722 RmrkTheme,744 RmrkTheme,723 > + substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>745 > + up_pov_estimate_rpc::PovEstimateApi<Block>746 + substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>724 + sp_api::Metadata<Block>747 + sp_api::Metadata<Block>725 + sp_offchain::OffchainWorkerApi<Block>748 + sp_offchain::OffchainWorkerApi<Block>869 RmrkBaseInfo<AccountId>,892 RmrkBaseInfo<AccountId>,870 RmrkPartType,893 RmrkPartType,871 RmrkTheme,894 RmrkTheme,872 > + substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>895 > + up_pov_estimate_rpc::PovEstimateApi<Block>896 + substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>873 + sp_api::Metadata<Block>897 + sp_api::Metadata<Block>874 + sp_offchain::OffchainWorkerApi<Block>898 + sp_offchain::OffchainWorkerApi<Block>1041 let rpc_network = network.clone();1065 let rpc_network = network.clone();1042 let rpc_frontier_backend = frontier_backend.clone();1066 let rpc_frontier_backend = frontier_backend.clone();10671068 #[cfg(feature = "pov-estimate")]1069 let rpc_backend = backend.clone();10701071 #[cfg(feature = "pov-estimate")]1072 let runtime_id = config.chain_spec.runtime_id();10731043 let rpc_builder = Box::new(move |deny_unsafe, subscription_executor| {1074 let rpc_builder = Box::new(move |deny_unsafe, subscription_executor| {1044 let full_deps = unique_rpc::FullDeps {1075 let full_deps = unique_rpc::FullDeps {1076 #[cfg(feature = "pov-estimate")]1077 runtime_id: runtime_id.clone(),10781079 #[cfg(feature = "pov-estimate")]1080 exec_params: uc_rpc::pov_estimate::ExecutorParams {1081 wasm_method: config.wasm_method,1082 default_heap_pages: config.default_heap_pages,1083 max_runtime_instances: config.max_runtime_instances,1084 runtime_cache_size: config.runtime_cache_size,1085 },10861087 #[cfg(feature = "pov-estimate")]1045 backend: rpc_frontier_backend.clone(),1088 backend: rpc_backend.clone(),1089 eth_backend: rpc_frontier_backend.clone(),1046 deny_unsafe,1090 deny_unsafe,1047 client: rpc_client.clone(),1091 client: rpc_client.clone(),1048 pool: rpc_pool.clone(),1092 pool: rpc_pool.clone(),node/rpc/Cargo.tomldiffbeforeafterboth55up-rpc = { path = "../../primitives/rpc" }55up-rpc = { path = "../../primitives/rpc" }56app-promotion-rpc = { path = "../../primitives/app_promotion_rpc" }56app-promotion-rpc = { path = "../../primitives/app_promotion_rpc" }57rmrk-rpc = { path = "../../primitives/rmrk-rpc" }57rmrk-rpc = { path = "../../primitives/rmrk-rpc" }58up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc" }58up-data-structs = { default-features = false, path = "../../primitives/data-structs" }59up-data-structs = { default-features = false, path = "../../primitives/data-structs" }596060[dependencies.serde]61[dependencies.serde]65default = []66default = []66std = []67std = []67unique-runtime = []68unique-runtime = []69pov-estimate = ['uc-rpc/pov-estimate']6870node/rpc/src/lib.rsdiffbeforeafterboth40use sc_service::TransactionPool;40use sc_service::TransactionPool;41use std::{collections::BTreeMap, sync::Arc};41use std::{collections::BTreeMap, sync::Arc};424243use up_common::types::opaque::{Hash, AccountId, RuntimeInstance, Index, Block, BlockNumber, Balance};43use up_common::types::opaque::*;444445// RMRK45// RMRK46use up_data_structs::{46use up_data_structs::{47 RmrkCollectionInfo, RmrkInstanceInfo, RmrkResourceInfo, RmrkPropertyInfo, RmrkBaseInfo,47 RmrkCollectionInfo, RmrkInstanceInfo, RmrkResourceInfo, RmrkPropertyInfo, RmrkBaseInfo,48 RmrkPartType, RmrkTheme,48 RmrkPartType, RmrkTheme,49};49};5051#[cfg(feature = "pov-estimate")]52type FullBackend = sc_service::TFullBackend<Block>;505351/// Extra dependencies for GRANDPA54/// Extra dependencies for GRANDPA52pub struct GrandpaDeps<B> {55pub struct GrandpaDeps<B> {83 /// EthFilterApi pool.86 /// EthFilterApi pool.84 pub filter_pool: Option<FilterPool>,87 pub filter_pool: Option<FilterPool>,8889 #[cfg(feature = "pov-estimate")]90 pub runtime_id: RuntimeId,91 /// Executor params for PoV estimating92 #[cfg(feature = "pov-estimate")]93 pub exec_params: uc_rpc::pov_estimate::ExecutorParams,85 /// Backend.94 /// Substrate Backend.95 #[cfg(feature = "pov-estimate")]86 pub backend: Arc<fc_db::Backend<Block>>,96 pub backend: Arc<FullBackend>,9798 /// Ethereum Backend.99 pub eth_backend: Arc<fc_db::Backend<Block>>,87 /// Maximum number of logs in a query.100 /// Maximum number of logs in a query.88 pub max_past_logs: u32,101 pub max_past_logs: u32,89 /// Maximum fee history cache size.102 /// Maximum fee history cache size.162 RmrkPartType,175 RmrkPartType,163 RmrkTheme,176 RmrkTheme,164 >,177 >,178 C::Api: up_pov_estimate_rpc::PovEstimateApi<Block>,165 B: sc_client_api::Backend<Block> + Send + Sync + 'static,179 B: sc_client_api::Backend<Block> + Send + Sync + 'static,166 B::State: sc_client_api::backend::StateBackend<sp_runtime::traits::HashFor<Block>>,180 B::State: sc_client_api::backend::StateBackend<sp_runtime::traits::HashFor<Block>>,167 P: TransactionPool<Block = Block> + 'static,181 P: TransactionPool<Block = Block> + 'static,182 #[cfg(not(feature = "unique-runtime"))]196 #[cfg(not(feature = "unique-runtime"))]183 use uc_rpc::{RmrkApiServer, Rmrk};197 use uc_rpc::{RmrkApiServer, Rmrk};198199 #[cfg(feature = "pov-estimate")]200 use uc_rpc::pov_estimate::{PovEstimateApiServer, PovEstimate};184201185 // use pallet_contracts_rpc::{Contracts, ContractsApi};202 // use pallet_contracts_rpc::{Contracts, ContractsApi};186 use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApiServer};203 use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApiServer};201 deny_unsafe,218 deny_unsafe,202 filter_pool,219 filter_pool,220221 #[cfg(feature = "pov-estimate")]222 runtime_id,223224 #[cfg(feature = "pov-estimate")]225 exec_params,226227 #[cfg(feature = "pov-estimate")]203 backend,228 backend,229230 eth_backend,204 max_past_logs,231 max_past_logs,205 } = deps;232 } = deps;206233226 network.clone(),253 network.clone(),227 signers,254 signers,228 overrides.clone(),255 overrides.clone(),229 backend.clone(),256 eth_backend.clone(),230 is_authority,257 is_authority,231 block_data_cache.clone(),258 block_data_cache.clone(),232 fee_history_cache,259 fee_history_cache,244 #[cfg(not(feature = "unique-runtime"))]271 #[cfg(not(feature = "unique-runtime"))]245 io.merge(Rmrk::new(client.clone()).into_rpc())?;272 io.merge(Rmrk::new(client.clone()).into_rpc())?;273274 #[cfg(feature = "pov-estimate")]275 io.merge(276 PovEstimate::new(277 client.clone(),278 backend,279 deny_unsafe,280 exec_params,281 runtime_id,282 )283 .into_rpc(),284 )?;246285247 if let Some(filter_pool) = filter_pool {286 if let Some(filter_pool) = filter_pool {248 io.merge(287 io.merge(249 EthFilter::new(288 EthFilter::new(250 client.clone(),289 client.clone(),251 backend,290 eth_backend,252 filter_pool,291 filter_pool,253 500_usize, // max stored filters292 500_usize, // max stored filters254 max_past_logs,293 max_past_logs,pallets/common/Cargo.tomldiffbeforeafterboth23evm-coder = { default-features = false, path = '../../crates/evm-coder' }23evm-coder = { default-features = false, path = '../../crates/evm-coder' }24ethereum = { version = "0.14.0", default-features = false }24ethereum = { version = "0.14.0", default-features = false }25pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }25pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }26up-pov-estimate-rpc = { default-features = false, path = "../../primitives/pov-estimate-rpc" }262727serde = { version = "1.0.130", default-features = false }28serde = { version = "1.0.130", default-features = false }28scale-info = { version = "2.0.1", default-features = false, features = [29scale-info = { version = "2.0.1", default-features = false, features = [39 "fp-evm-mapping/std",40 "fp-evm-mapping/std",40 "up-data-structs/std",41 "up-data-structs/std",41 "pallet-evm/std",42 "pallet-evm/std",43 "up-pov-estimate-rpc/std",42]44]43runtime-benchmarks = [45runtime-benchmarks = [44 "frame-benchmarking/runtime-benchmarks",46 "frame-benchmarking/runtime-benchmarks",pallets/common/src/lib.rsdiffbeforeafterboth115 RmrkNftChild,115 RmrkNftChild,116 CollectionPermissions,116 CollectionPermissions,117};117};118use up_pov_estimate_rpc::PovInfo;118119119pub use pallet::*;120pub use pallet::*;120use sp_core::H160;121use sp_core::H160;881 RmrkPartType,882 RmrkPartType,882 RmrkBoundedTheme,883 RmrkBoundedTheme,883 RmrkNftChild,884 RmrkNftChild,885 // PoV Estimate Info886 PovInfo,884 )>,887 )>,885 ),888 ),886 QueryKind = OptionQuery,889 QueryKind = OptionQuery,primitives/common/src/types.rsdiffbeforeafterboth292930 pub use super::{BlockNumber, Signature, AccountId, Balance, Index, Hash, AuraId};30 pub use super::{BlockNumber, Signature, AccountId, Balance, Index, Hash, AuraId};3132 #[derive(Debug, Clone)]33 pub enum RuntimeId {34 Unique,35 Quartz,36 Opal,37 Unknown(sp_std::vec::Vec<u8>),38 }313932 /// Opaque block header type.40 /// Opaque block header type.33 pub type Header = generic::Header<BlockNumber, BlakeTwo256>;41 pub type Header = generic::Header<BlockNumber, BlakeTwo256>;primitives/pov-estimate-rpc/Cargo.tomldiffbeforeafterbothno changes
primitives/pov-estimate-rpc/src/lib.rsdiffbeforeafterbothno changes
runtime/common/runtime_apis.rsdiffbeforeafterboth35 ) => {35 ) => {36 use sp_std::prelude::*;36 use sp_std::prelude::*;37 use sp_api::impl_runtime_apis;37 use sp_api::impl_runtime_apis;38 use sp_core::{crypto::KeyTypeId, OpaqueMetadata, H256, U256, H160};38 use sp_core::{crypto::KeyTypeId, OpaqueMetadata, H256, U256, H160, Bytes};39 use sp_runtime::{39 use sp_runtime::{40 Permill,40 Permill,41 traits::Block as BlockT,41 traits::Block as BlockT,778 }778 }779 }779 }780781 impl up_pov_estimate_rpc::PovEstimateApi<Block> for Runtime {782 #[allow(unused_variables)]783 fn pov_estimate(uxt: Bytes) -> ApplyExtrinsicResult {784 #[cfg(feature = "pov-estimate")]785 {786 use codec::Decode;787788 let uxt_decode = <<Block as BlockT>::Extrinsic as Decode>::decode(&mut &*uxt)789 .map_err(|_| DispatchError::Other("failed to decode the extrinsic"));790791 let uxt = match uxt_decode {792 Ok(uxt) => uxt,793 Err(err) => return Ok(err.into()),794 };795796 Executive::apply_extrinsic(uxt)797 }798799 #[cfg(not(feature = "pov-estimate"))]800 return Ok(unsupported!());801 }802 }780803781 #[cfg(feature = "try-runtime")]804 #[cfg(feature = "try-runtime")]782 impl frame_try_runtime::TryRuntime<Block> for Runtime {805 impl frame_try_runtime::TryRuntime<Block> for Runtime {runtime/opal/Cargo.tomldiffbeforeafterboth127 'pallet-base-fee/std',127 'pallet-base-fee/std',128 'fp-rpc/std',128 'fp-rpc/std',129 'up-rpc/std',129 'up-rpc/std',130 'up-pov-estimate-rpc/std',130 'app-promotion-rpc/std',131 'app-promotion-rpc/std',131 'fp-evm-mapping/std',132 'fp-evm-mapping/std',132 'fp-self-contained/std',133 'fp-self-contained/std',184 'pallet-test-utils',185 'pallet-test-utils',185]186]186become-sapphire = []187become-sapphire = []188pov-estimate = []187189188refungible = []190refungible = []189scheduler = []191scheduler = []468derivative = "2.2.0"470derivative = "2.2.0"469pallet-unique = { path = '../../pallets/unique', default-features = false }471pallet-unique = { path = '../../pallets/unique', default-features = false }470up-rpc = { path = "../../primitives/rpc", default-features = false }472up-rpc = { path = "../../primitives/rpc", default-features = false }473up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", default-features = false }471app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }474app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }472rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }475rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }473fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }476fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }runtime/quartz/Cargo.tomldiffbeforeafterboth122 'pallet-base-fee/std',122 'pallet-base-fee/std',123 'fp-rpc/std',123 'fp-rpc/std',124 'up-rpc/std',124 'up-rpc/std',125 'up-pov-estimate-rpc/std',125 'app-promotion-rpc/std',126 'app-promotion-rpc/std',126 'fp-evm-mapping/std',127 'fp-evm-mapping/std',127 'fp-self-contained/std',128 'fp-self-contained/std',169]170]170limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']171limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']171quartz-runtime = ['refungible', 'app-promotion', 'foreign-assets']172quartz-runtime = ['refungible', 'app-promotion', 'foreign-assets']173pov-estimate = []172174173refungible = []175refungible = []174scheduler = []176scheduler = []461derivative = "2.2.0"463derivative = "2.2.0"462pallet-unique = { path = '../../pallets/unique', default-features = false }464pallet-unique = { path = '../../pallets/unique', default-features = false }463up-rpc = { path = "../../primitives/rpc", default-features = false }465up-rpc = { path = "../../primitives/rpc", default-features = false }466up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", default-features = false }464app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }467app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }465fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }468fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }466fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }469fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.36" }runtime/unique/Cargo.tomldiffbeforeafterboth123 'pallet-base-fee/std',123 'pallet-base-fee/std',124 'fp-rpc/std',124 'fp-rpc/std',125 'up-rpc/std',125 'up-rpc/std',126 'up-pov-estimate-rpc/std',126 'app-promotion-rpc/std',127 'app-promotion-rpc/std',127 'fp-evm-mapping/std',128 'fp-evm-mapping/std',128 'fp-self-contained/std',129 'fp-self-contained/std',170]171]171limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']172limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']172unique-runtime = ['foreign-assets']173unique-runtime = ['foreign-assets']174pov-estimate = []173stubgen = ["evm-coder/stubgen"]175stubgen = ["evm-coder/stubgen"]174176175refungible = []177refungible = []454derivative = "2.2.0"456derivative = "2.2.0"455pallet-unique = { path = '../../pallets/unique', default-features = false }457pallet-unique = { path = '../../pallets/unique', default-features = false }456up-rpc = { path = "../../primitives/rpc", default-features = false }458up-rpc = { path = "../../primitives/rpc", default-features = false }459up-pov-estimate-rpc = { path = "../../primitives/pov-estimate-rpc", default-features = false }457app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }460app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }458rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }461rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }459pallet-inflation = { path = '../../pallets/inflation', default-features = false }462pallet-inflation = { path = '../../pallets/inflation', default-features = false }tests/src/interfaces/augment-api-rpc.tsdiffbeforeafterboth5// this is required to allow for ambient/previous definitions5// this is required to allow for ambient/previous definitions6import '@polkadot/rpc-core/types/jsonrpc';6import '@polkadot/rpc-core/types/jsonrpc';778import type { PalletEvmAccountBasicCrossAccountIdRepr, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsPartPartType, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsTheme, UpDataStructsCollectionLimits, UpDataStructsCollectionStats, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsRpcCollection, UpDataStructsTokenChild, UpDataStructsTokenData } from './default';8import type { PalletEvmAccountBasicCrossAccountIdRepr, RmrkTraitsBaseBaseInfo, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftChild, RmrkTraitsNftNftInfo, RmrkTraitsPartPartType, RmrkTraitsPropertyPropertyInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsTheme, UpDataStructsCollectionLimits, UpDataStructsCollectionStats, UpDataStructsProperty, UpDataStructsPropertyKeyPermission, UpDataStructsRpcCollection, UpDataStructsTokenChild, UpDataStructsTokenData, UpPovEstimateRpcPovInfo } from './default';9import type { AugmentedRpc } from '@polkadot/rpc-core/types';9import type { AugmentedRpc } from '@polkadot/rpc-core/types';10import type { Metadata, StorageKey } from '@polkadot/types';10import type { Metadata, StorageKey } from '@polkadot/types';11import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u128, u32, u64 } from '@polkadot/types-codec';11import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u128, u32, u64 } from '@polkadot/types-codec';436 **/436 **/437 queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfoV1>>;437 queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfoV1>>;438 };438 };439 povinfo: {440 /**441 * Estimate PoV size of encoded signed extrinsics442 **/443 estimateExtrinsicPoV: AugmentedRpc<(encodedXt: Vec<Bytes> | (Bytes | string | Uint8Array)[], at?: Hash | string | Uint8Array) => Observable<UpPovEstimateRpcPovInfo>>;444 };439 rmrk: {445 rmrk: {440 /**446 /**441 * Get tokens owned by an account in a collection447 * Get tokens owned by an account in a collectiontests/src/interfaces/augment-types.tsdiffbeforeafterboth5// this is required to allow for ambient/previous definitions5// this is required to allow for ambient/previous definitions6import '@polkadot/types/types/registry';6import '@polkadot/types/types/registry';778import 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 './default';8import 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';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';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';11import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets';1186 SpRuntimeMultiSignature: SpRuntimeMultiSignature;1186 SpRuntimeMultiSignature: SpRuntimeMultiSignature;1187 SpRuntimeTokenError: SpRuntimeTokenError;1187 SpRuntimeTokenError: SpRuntimeTokenError;1188 SpRuntimeTransactionalError: SpRuntimeTransactionalError;1188 SpRuntimeTransactionalError: SpRuntimeTransactionalError;1189 SpRuntimeTransactionValidityInvalidTransaction: SpRuntimeTransactionValidityInvalidTransaction;1190 SpRuntimeTransactionValidityTransactionValidityError: SpRuntimeTransactionValidityTransactionValidityError;1191 SpRuntimeTransactionValidityUnknownTransaction: SpRuntimeTransactionValidityUnknownTransaction;1189 SpTrieStorageProof: SpTrieStorageProof;1192 SpTrieStorageProof: SpTrieStorageProof;1190 SpVersionRuntimeVersion: SpVersionRuntimeVersion;1193 SpVersionRuntimeVersion: SpVersionRuntimeVersion;1191 SpWeightsRuntimeDbWeight: SpWeightsRuntimeDbWeight;1194 SpWeightsRuntimeDbWeight: SpWeightsRuntimeDbWeight;1325 UpDataStructsTokenData: UpDataStructsTokenData;1328 UpDataStructsTokenData: UpDataStructsTokenData;1326 UpgradeGoAhead: UpgradeGoAhead;1329 UpgradeGoAhead: UpgradeGoAhead;1327 UpgradeRestriction: UpgradeRestriction;1330 UpgradeRestriction: UpgradeRestriction;1331 UpPovEstimateRpcPovInfo: UpPovEstimateRpcPovInfo;1332 UpPovEstimateRpcTrieKeyValue: UpPovEstimateRpcTrieKeyValue;1328 UpwardMessage: UpwardMessage;1333 UpwardMessage: UpwardMessage;1329 usize: usize;1334 usize: usize;1330 USize: USize;1335 USize: USize;tests/src/interfaces/default/types.tsdiffbeforeafterboth2444}2444}244524452446/** @name PhantomTypeUpDataStructs */2446/** @name PhantomTypeUpDataStructs */2447export interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild]>> {}2447export interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild, UpPovEstimateRpcPovInfo]>> {}244824482449/** @name PolkadotCorePrimitivesInboundDownwardMessage */2449/** @name PolkadotCorePrimitivesInboundDownwardMessage */2450export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {2450export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {2748 readonly type: 'LimitReached' | 'NoLayer';2748 readonly type: 'LimitReached' | 'NoLayer';2749}2749}27502751/** @name SpRuntimeTransactionValidityInvalidTransaction */2752export interface SpRuntimeTransactionValidityInvalidTransaction extends Enum {2753 readonly isCall: boolean;2754 readonly isPayment: boolean;2755 readonly isFuture: boolean;2756 readonly isStale: boolean;2757 readonly isBadProof: boolean;2758 readonly isAncientBirthBlock: boolean;2759 readonly isExhaustsResources: boolean;2760 readonly isCustom: boolean;2761 readonly asCustom: u8;2762 readonly isBadMandatory: boolean;2763 readonly isMandatoryValidation: boolean;2764 readonly isBadSigner: boolean;2765 readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryValidation' | 'BadSigner';2766}27672768/** @name SpRuntimeTransactionValidityTransactionValidityError */2769export interface SpRuntimeTransactionValidityTransactionValidityError extends Enum {2770 readonly isInvalid: boolean;2771 readonly asInvalid: SpRuntimeTransactionValidityInvalidTransaction;2772 readonly isUnknown: boolean;2773 readonly asUnknown: SpRuntimeTransactionValidityUnknownTransaction;2774 readonly type: 'Invalid' | 'Unknown';2775}27762777/** @name SpRuntimeTransactionValidityUnknownTransaction */2778export interface SpRuntimeTransactionValidityUnknownTransaction extends Enum {2779 readonly isCannotLookup: boolean;2780 readonly isNoUnsignedValidator: boolean;2781 readonly isCustom: boolean;2782 readonly asCustom: u8;2783 readonly type: 'CannotLookup' | 'NoUnsignedValidator' | 'Custom';2784}275027852751/** @name SpTrieStorageProof */2786/** @name SpTrieStorageProof */2752export interface SpTrieStorageProof extends Struct {2787export interface SpTrieStorageProof extends Struct {3018 readonly pieces: u128;3053 readonly pieces: u128;3019}3054}30553056/** @name UpPovEstimateRpcPovInfo */3057export interface UpPovEstimateRpcPovInfo extends Struct {3058 readonly proofSize: u64;3059 readonly compactProofSize: u64;3060 readonly compressedProofSize: u64;3061 readonly results: Vec<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>;3062 readonly keyValues: Vec<UpPovEstimateRpcTrieKeyValue>;3063}30643065/** @name UpPovEstimateRpcTrieKeyValue */3066export interface UpPovEstimateRpcTrieKeyValue extends Struct {3067 readonly key: Bytes;3068 readonly value: Bytes;3069}302030703021/** @name XcmDoubleEncoded */3071/** @name XcmDoubleEncoded */3022export interface XcmDoubleEncoded extends Struct {3072export interface XcmDoubleEncoded extends Struct {tests/src/interfaces/definitions.tsdiffbeforeafterboth17export {default as unique} from './unique/definitions';17export {default as unique} from './unique/definitions';18export {default as appPromotion} from './appPromotion/definitions';18export {default as appPromotion} from './appPromotion/definitions';19export {default as rmrk} from './rmrk/definitions';19export {default as rmrk} from './rmrk/definitions';20export {default as povinfo} from './povinfo/definitions';20export {default as default} from './default/definitions';21export {default as default} from './default/definitions';22tests/src/interfaces/lookup.tsdiffbeforeafterboth3106 /**3106 /**3107 * Lookup399: PhantomType::up_data_structs<T>3107 * Lookup399: PhantomType::up_data_structs<T>3108 **/3108 **/3109 PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,RmrkTraitsCollectionCollectionInfo,RmrkTraitsNftNftInfo,RmrkTraitsResourceResourceInfo,RmrkTraitsPropertyPropertyInfo,RmrkTraitsBaseBaseInfo,RmrkTraitsPartPartType,RmrkTraitsTheme,RmrkTraitsNftNftChild);0]',3109 PhantomTypeUpDataStructs: '[(UpDataStructsTokenData,UpDataStructsRpcCollection,RmrkTraitsCollectionCollectionInfo,RmrkTraitsNftNftInfo,RmrkTraitsResourceResourceInfo,RmrkTraitsPropertyPropertyInfo,RmrkTraitsBaseBaseInfo,RmrkTraitsPartPartType,RmrkTraitsTheme,RmrkTraitsNftNftChild,UpPovEstimateRpcPovInfo);0]',3110 /**3110 /**3111 * Lookup401: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>3111 * Lookup401: up_data_structs::TokenData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>3112 **/3112 **/3197 collectionId: 'u32',3197 collectionId: 'u32',3198 nftId: 'u32'3198 nftId: 'u32'3199 },3199 },3200 /**3201 * Lookup413: up_pov_estimate_rpc::PovInfo3202 **/3203 UpPovEstimateRpcPovInfo: {3204 proofSize: 'u64',3205 compactProofSize: 'u64',3206 compressedProofSize: 'u64',3207 results: 'Vec<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>',3208 keyValues: 'Vec<UpPovEstimateRpcTrieKeyValue>'3209 },3210 /**3211 * Lookup416: sp_runtime::transaction_validity::TransactionValidityError3212 **/3213 SpRuntimeTransactionValidityTransactionValidityError: {3214 _enum: {3215 Invalid: 'SpRuntimeTransactionValidityInvalidTransaction',3216 Unknown: 'SpRuntimeTransactionValidityUnknownTransaction'3217 }3218 },3219 /**3220 * Lookup417: sp_runtime::transaction_validity::InvalidTransaction3221 **/3222 SpRuntimeTransactionValidityInvalidTransaction: {3223 _enum: {3224 Call: 'Null',3225 Payment: 'Null',3226 Future: 'Null',3227 Stale: 'Null',3228 BadProof: 'Null',3229 AncientBirthBlock: 'Null',3230 ExhaustsResources: 'Null',3231 Custom: 'u8',3232 BadMandatory: 'Null',3233 MandatoryValidation: 'Null',3234 BadSigner: 'Null'3235 }3236 },3237 /**3238 * Lookup418: sp_runtime::transaction_validity::UnknownTransaction3239 **/3240 SpRuntimeTransactionValidityUnknownTransaction: {3241 _enum: {3242 CannotLookup: 'Null',3243 NoUnsignedValidator: 'Null',3244 Custom: 'u8'3245 }3246 },3247 /**3248 * Lookup420: up_pov_estimate_rpc::TrieKeyValue3249 **/3250 UpPovEstimateRpcTrieKeyValue: {3251 key: 'Bytes',3252 value: 'Bytes'3253 },3200 /**3254 /**3201 * Lookup414: pallet_common::pallet::Error<T>3255 * Lookup422: pallet_common::pallet::Error<T>3202 **/3256 **/3203 PalletCommonError: {3257 PalletCommonError: {3204 _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']3258 _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']3205 },3259 },3206 /**3260 /**3207 * Lookup416: pallet_fungible::pallet::Error<T>3261 * Lookup424: pallet_fungible::pallet::Error<T>3208 **/3262 **/3209 PalletFungibleError: {3263 PalletFungibleError: {3210 _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed', 'SettingAllowanceForAllNotAllowed', 'FungibleTokensAreAlwaysValid']3264 _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed', 'SettingAllowanceForAllNotAllowed', 'FungibleTokensAreAlwaysValid']3211 },3265 },3212 /**3266 /**3213 * Lookup420: pallet_refungible::pallet::Error<T>3267 * Lookup428: pallet_refungible::pallet::Error<T>3214 **/3268 **/3215 PalletRefungibleError: {3269 PalletRefungibleError: {3216 _enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RepartitionWhileNotOwningAllPieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']3270 _enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces', 'RepartitionWhileNotOwningAllPieces', 'RefungibleDisallowsNesting', 'SettingPropertiesNotAllowed']3217 },3271 },3218 /**3272 /**3219 * Lookup421: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>3273 * Lookup429: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>3220 **/3274 **/3221 PalletNonfungibleItemData: {3275 PalletNonfungibleItemData: {3222 owner: 'PalletEvmAccountBasicCrossAccountIdRepr'3276 owner: 'PalletEvmAccountBasicCrossAccountIdRepr'3223 },3277 },3224 /**3278 /**3225 * Lookup423: up_data_structs::PropertyScope3279 * Lookup431: up_data_structs::PropertyScope3226 **/3280 **/3227 UpDataStructsPropertyScope: {3281 UpDataStructsPropertyScope: {3228 _enum: ['None', 'Rmrk']3282 _enum: ['None', 'Rmrk']3229 },3283 },3230 /**3284 /**3231 * Lookup426: pallet_nonfungible::pallet::Error<T>3285 * Lookup434: pallet_nonfungible::pallet::Error<T>3232 **/3286 **/3233 PalletNonfungibleError: {3287 PalletNonfungibleError: {3234 _enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount', 'CantBurnNftWithChildren']3288 _enum: ['NotNonfungibleDataUsedToMintFungibleCollectionToken', 'NonfungibleItemsHaveNoAmount', 'CantBurnNftWithChildren']3235 },3289 },3236 /**3290 /**3237 * Lookup427: pallet_structure::pallet::Error<T>3291 * Lookup435: pallet_structure::pallet::Error<T>3238 **/3292 **/3239 PalletStructureError: {3293 PalletStructureError: {3240 _enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound']3294 _enum: ['OuroborosDetected', 'DepthLimit', 'BreadthLimit', 'TokenNotFound']3241 },3295 },3242 /**3296 /**3243 * Lookup428: pallet_rmrk_core::pallet::Error<T>3297 * Lookup436: pallet_rmrk_core::pallet::Error<T>3244 **/3298 **/3245 PalletRmrkCoreError: {3299 PalletRmrkCoreError: {3246 _enum: ['CorruptedCollectionType', 'RmrkPropertyKeyIsTooLong', 'RmrkPropertyValueIsTooLong', 'RmrkPropertyIsNotFound', 'UnableToDecodeRmrkData', 'CollectionNotEmpty', 'NoAvailableCollectionId', 'NoAvailableNftId', 'CollectionUnknown', 'NoPermission', 'NonTransferable', 'CollectionFullOrLocked', 'ResourceDoesntExist', 'CannotSendToDescendentOrSelf', 'CannotAcceptNonOwnedNft', 'CannotRejectNonOwnedNft', 'CannotRejectNonPendingNft', 'ResourceNotPending', 'NoAvailableResourceId']3300 _enum: ['CorruptedCollectionType', 'RmrkPropertyKeyIsTooLong', 'RmrkPropertyValueIsTooLong', 'RmrkPropertyIsNotFound', 'UnableToDecodeRmrkData', 'CollectionNotEmpty', 'NoAvailableCollectionId', 'NoAvailableNftId', 'CollectionUnknown', 'NoPermission', 'NonTransferable', 'CollectionFullOrLocked', 'ResourceDoesntExist', 'CannotSendToDescendentOrSelf', 'CannotAcceptNonOwnedNft', 'CannotRejectNonOwnedNft', 'CannotRejectNonPendingNft', 'ResourceNotPending', 'NoAvailableResourceId']3247 },3301 },3248 /**3302 /**3249 * Lookup430: pallet_rmrk_equip::pallet::Error<T>3303 * Lookup438: pallet_rmrk_equip::pallet::Error<T>3250 **/3304 **/3251 PalletRmrkEquipError: {3305 PalletRmrkEquipError: {3252 _enum: ['PermissionError', 'NoAvailableBaseId', 'NoAvailablePartId', 'BaseDoesntExist', 'NeedsDefaultThemeFirst', 'PartDoesntExist', 'NoEquippableOnFixedPart']3306 _enum: ['PermissionError', 'NoAvailableBaseId', 'NoAvailablePartId', 'BaseDoesntExist', 'NeedsDefaultThemeFirst', 'PartDoesntExist', 'NoEquippableOnFixedPart']3253 },3307 },3254 /**3308 /**3255 * Lookup436: pallet_app_promotion::pallet::Error<T>3309 * Lookup444: pallet_app_promotion::pallet::Error<T>3256 **/3310 **/3257 PalletAppPromotionError: {3311 PalletAppPromotionError: {3258 _enum: ['AdminNotSet', 'NoPermission', 'NotSufficientFunds', 'PendingForBlockOverflow', 'SponsorNotSet', 'IncorrectLockedBalanceOperation']3312 _enum: ['AdminNotSet', 'NoPermission', 'NotSufficientFunds', 'PendingForBlockOverflow', 'SponsorNotSet', 'IncorrectLockedBalanceOperation']3259 },3313 },3260 /**3314 /**3261 * Lookup437: pallet_foreign_assets::module::Error<T>3315 * Lookup445: pallet_foreign_assets::module::Error<T>3262 **/3316 **/3263 PalletForeignAssetsModuleError: {3317 PalletForeignAssetsModuleError: {3264 _enum: ['BadLocation', 'MultiLocationExisted', 'AssetIdNotExists', 'AssetIdExisted']3318 _enum: ['BadLocation', 'MultiLocationExisted', 'AssetIdNotExists', 'AssetIdExisted']3265 },3319 },3266 /**3320 /**3267 * Lookup439: pallet_evm::pallet::Error<T>3321 * Lookup447: pallet_evm::pallet::Error<T>3268 **/3322 **/3269 PalletEvmError: {3323 PalletEvmError: {3270 _enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce', 'GasLimitTooLow', 'GasLimitTooHigh', 'Undefined', 'Reentrancy', 'TransactionMustComeFromEOA']3324 _enum: ['BalanceLow', 'FeeOverflow', 'PaymentOverflow', 'WithdrawFailed', 'GasPriceTooLow', 'InvalidNonce', 'GasLimitTooLow', 'GasLimitTooHigh', 'Undefined', 'Reentrancy', 'TransactionMustComeFromEOA']3271 },3325 },3272 /**3326 /**3273 * Lookup442: fp_rpc::TransactionStatus3327 * Lookup450: fp_rpc::TransactionStatus3274 **/3328 **/3275 FpRpcTransactionStatus: {3329 FpRpcTransactionStatus: {3276 transactionHash: 'H256',3330 transactionHash: 'H256',3277 transactionIndex: 'u32',3331 transactionIndex: 'u32',3281 logs: 'Vec<EthereumLog>',3335 logs: 'Vec<EthereumLog>',3282 logsBloom: 'EthbloomBloom'3336 logsBloom: 'EthbloomBloom'3283 },3337 },3284 /**3338 /**3285 * Lookup444: ethbloom::Bloom3339 * Lookup452: ethbloom::Bloom3286 **/3340 **/3287 EthbloomBloom: '[u8;256]',3341 EthbloomBloom: '[u8;256]',3288 /**3342 /**3289 * Lookup446: ethereum::receipt::ReceiptV33343 * Lookup454: ethereum::receipt::ReceiptV33290 **/3344 **/3291 EthereumReceiptReceiptV3: {3345 EthereumReceiptReceiptV3: {3292 _enum: {3346 _enum: {3293 Legacy: 'EthereumReceiptEip658ReceiptData',3347 Legacy: 'EthereumReceiptEip658ReceiptData',3294 EIP2930: 'EthereumReceiptEip658ReceiptData',3348 EIP2930: 'EthereumReceiptEip658ReceiptData',3295 EIP1559: 'EthereumReceiptEip658ReceiptData'3349 EIP1559: 'EthereumReceiptEip658ReceiptData'3296 }3350 }3297 },3351 },3298 /**3352 /**3299 * Lookup447: ethereum::receipt::EIP658ReceiptData3353 * Lookup455: ethereum::receipt::EIP658ReceiptData3300 **/3354 **/3301 EthereumReceiptEip658ReceiptData: {3355 EthereumReceiptEip658ReceiptData: {3302 statusCode: 'u8',3356 statusCode: 'u8',3303 usedGas: 'U256',3357 usedGas: 'U256',3304 logsBloom: 'EthbloomBloom',3358 logsBloom: 'EthbloomBloom',3305 logs: 'Vec<EthereumLog>'3359 logs: 'Vec<EthereumLog>'3306 },3360 },3307 /**3361 /**3308 * Lookup448: ethereum::block::Block<ethereum::transaction::TransactionV2>3362 * Lookup456: ethereum::block::Block<ethereum::transaction::TransactionV2>3309 **/3363 **/3310 EthereumBlock: {3364 EthereumBlock: {3311 header: 'EthereumHeader',3365 header: 'EthereumHeader',3312 transactions: 'Vec<EthereumTransactionTransactionV2>',3366 transactions: 'Vec<EthereumTransactionTransactionV2>',3313 ommers: 'Vec<EthereumHeader>'3367 ommers: 'Vec<EthereumHeader>'3314 },3368 },3315 /**3369 /**3316 * Lookup449: ethereum::header::Header3370 * Lookup457: ethereum::header::Header3317 **/3371 **/3318 EthereumHeader: {3372 EthereumHeader: {3319 parentHash: 'H256',3373 parentHash: 'H256',3320 ommersHash: 'H256',3374 ommersHash: 'H256',3332 mixHash: 'H256',3386 mixHash: 'H256',3333 nonce: 'EthereumTypesHashH64'3387 nonce: 'EthereumTypesHashH64'3334 },3388 },3335 /**3389 /**3336 * Lookup450: ethereum_types::hash::H643390 * Lookup458: ethereum_types::hash::H643337 **/3391 **/3338 EthereumTypesHashH64: '[u8;8]',3392 EthereumTypesHashH64: '[u8;8]',3339 /**3393 /**3340 * Lookup455: pallet_ethereum::pallet::Error<T>3394 * Lookup463: pallet_ethereum::pallet::Error<T>3341 **/3395 **/3342 PalletEthereumError: {3396 PalletEthereumError: {3343 _enum: ['InvalidSignature', 'PreLogExists']3397 _enum: ['InvalidSignature', 'PreLogExists']3344 },3398 },3345 /**3399 /**3346 * Lookup456: pallet_evm_coder_substrate::pallet::Error<T>3400 * Lookup464: pallet_evm_coder_substrate::pallet::Error<T>3347 **/3401 **/3348 PalletEvmCoderSubstrateError: {3402 PalletEvmCoderSubstrateError: {3349 _enum: ['OutOfGas', 'OutOfFund']3403 _enum: ['OutOfGas', 'OutOfFund']3350 },3404 },3351 /**3405 /**3352 * Lookup457: up_data_structs::SponsorshipState<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>3406 * Lookup465: up_data_structs::SponsorshipState<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>3353 **/3407 **/3354 UpDataStructsSponsorshipStateBasicCrossAccountIdRepr: {3408 UpDataStructsSponsorshipStateBasicCrossAccountIdRepr: {3355 _enum: {3409 _enum: {3356 Disabled: 'Null',3410 Disabled: 'Null',3357 Unconfirmed: 'PalletEvmAccountBasicCrossAccountIdRepr',3411 Unconfirmed: 'PalletEvmAccountBasicCrossAccountIdRepr',3358 Confirmed: 'PalletEvmAccountBasicCrossAccountIdRepr'3412 Confirmed: 'PalletEvmAccountBasicCrossAccountIdRepr'3359 }3413 }3360 },3414 },3361 /**3415 /**3362 * Lookup458: pallet_evm_contract_helpers::SponsoringModeT3416 * Lookup466: pallet_evm_contract_helpers::SponsoringModeT3363 **/3417 **/3364 PalletEvmContractHelpersSponsoringModeT: {3418 PalletEvmContractHelpersSponsoringModeT: {3365 _enum: ['Disabled', 'Allowlisted', 'Generous']3419 _enum: ['Disabled', 'Allowlisted', 'Generous']3366 },3420 },3367 /**3421 /**3368 * Lookup464: pallet_evm_contract_helpers::pallet::Error<T>3422 * Lookup472: pallet_evm_contract_helpers::pallet::Error<T>3369 **/3423 **/3370 PalletEvmContractHelpersError: {3424 PalletEvmContractHelpersError: {3371 _enum: ['NoPermission', 'NoPendingSponsor', 'TooManyMethodsHaveSponsoredLimit']3425 _enum: ['NoPermission', 'NoPendingSponsor', 'TooManyMethodsHaveSponsoredLimit']3372 },3426 },3373 /**3427 /**3374 * Lookup465: pallet_evm_migration::pallet::Error<T>3428 * Lookup473: pallet_evm_migration::pallet::Error<T>3375 **/3429 **/3376 PalletEvmMigrationError: {3430 PalletEvmMigrationError: {3377 _enum: ['AccountNotEmpty', 'AccountIsNotMigrating', 'BadEvent']3431 _enum: ['AccountNotEmpty', 'AccountIsNotMigrating', 'BadEvent']3378 },3432 },3379 /**3433 /**3380 * Lookup466: pallet_maintenance::pallet::Error<T>3434 * Lookup474: pallet_maintenance::pallet::Error<T>3381 **/3435 **/3382 PalletMaintenanceError: 'Null',3436 PalletMaintenanceError: 'Null',3383 /**3437 /**3384 * Lookup467: pallet_test_utils::pallet::Error<T>3438 * Lookup475: pallet_test_utils::pallet::Error<T>3385 **/3439 **/3386 PalletTestUtilsError: {3440 PalletTestUtilsError: {3387 _enum: ['TestPalletDisabled', 'TriggerRollback']3441 _enum: ['TestPalletDisabled', 'TriggerRollback']3388 },3442 },3389 /**3443 /**3390 * Lookup469: sp_runtime::MultiSignature3444 * Lookup477: sp_runtime::MultiSignature3391 **/3445 **/3392 SpRuntimeMultiSignature: {3446 SpRuntimeMultiSignature: {3393 _enum: {3447 _enum: {3394 Ed25519: 'SpCoreEd25519Signature',3448 Ed25519: 'SpCoreEd25519Signature',3395 Sr25519: 'SpCoreSr25519Signature',3449 Sr25519: 'SpCoreSr25519Signature',3396 Ecdsa: 'SpCoreEcdsaSignature'3450 Ecdsa: 'SpCoreEcdsaSignature'3397 }3451 }3398 },3452 },3399 /**3453 /**3400 * Lookup470: sp_core::ed25519::Signature3454 * Lookup478: sp_core::ed25519::Signature3401 **/3455 **/3402 SpCoreEd25519Signature: '[u8;64]',3456 SpCoreEd25519Signature: '[u8;64]',3403 /**3457 /**3404 * Lookup472: sp_core::sr25519::Signature3458 * Lookup480: sp_core::sr25519::Signature3405 **/3459 **/3406 SpCoreSr25519Signature: '[u8;64]',3460 SpCoreSr25519Signature: '[u8;64]',3407 /**3461 /**3408 * Lookup473: sp_core::ecdsa::Signature3462 * Lookup481: sp_core::ecdsa::Signature3409 **/3463 **/3410 SpCoreEcdsaSignature: '[u8;65]',3464 SpCoreEcdsaSignature: '[u8;65]',3411 /**3465 /**3412 * Lookup476: frame_system::extensions::check_spec_version::CheckSpecVersion<T>3466 * Lookup484: frame_system::extensions::check_spec_version::CheckSpecVersion<T>3413 **/3467 **/3414 FrameSystemExtensionsCheckSpecVersion: 'Null',3468 FrameSystemExtensionsCheckSpecVersion: 'Null',3415 /**3469 /**3416 * Lookup477: frame_system::extensions::check_tx_version::CheckTxVersion<T>3470 * Lookup485: frame_system::extensions::check_tx_version::CheckTxVersion<T>3417 **/3471 **/3418 FrameSystemExtensionsCheckTxVersion: 'Null',3472 FrameSystemExtensionsCheckTxVersion: 'Null',3419 /**3473 /**3420 * Lookup478: frame_system::extensions::check_genesis::CheckGenesis<T>3474 * Lookup486: frame_system::extensions::check_genesis::CheckGenesis<T>3421 **/3475 **/3422 FrameSystemExtensionsCheckGenesis: 'Null',3476 FrameSystemExtensionsCheckGenesis: 'Null',3423 /**3477 /**3424 * Lookup481: frame_system::extensions::check_nonce::CheckNonce<T>3478 * Lookup489: frame_system::extensions::check_nonce::CheckNonce<T>3425 **/3479 **/3426 FrameSystemExtensionsCheckNonce: 'Compact<u32>',3480 FrameSystemExtensionsCheckNonce: 'Compact<u32>',3427 /**3481 /**3428 * Lookup482: frame_system::extensions::check_weight::CheckWeight<T>3482 * Lookup490: frame_system::extensions::check_weight::CheckWeight<T>3429 **/3483 **/3430 FrameSystemExtensionsCheckWeight: 'Null',3484 FrameSystemExtensionsCheckWeight: 'Null',3431 /**3485 /**3432 * Lookup483: opal_runtime::runtime_common::maintenance::CheckMaintenance3486 * Lookup491: opal_runtime::runtime_common::maintenance::CheckMaintenance3433 **/3487 **/3434 OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance: 'Null',3488 OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance: 'Null',3435 /**3489 /**3436 * Lookup484: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>3490 * Lookup492: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>3437 **/3491 **/3438 PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',3492 PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',3439 /**3493 /**3440 * Lookup485: opal_runtime::Runtime3494 * Lookup493: opal_runtime::Runtime3441 **/3495 **/3442 OpalRuntimeRuntime: 'Null',3496 OpalRuntimeRuntime: 'Null',3443 /**3497 /**3444 * Lookup486: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>3498 * Lookup494: pallet_ethereum::FakeTransactionFinalizer<opal_runtime::Runtime>3445 **/3499 **/3446 PalletEthereumFakeTransactionFinalizer: 'Null'3500 PalletEthereumFakeTransactionFinalizer: 'Null'3447};3501};34483502tests/src/interfaces/povinfo/definitions.tsdiffbeforeafterbothno changes
tests/src/interfaces/povinfo/index.tsdiffbeforeafterbothno changes
tests/src/interfaces/povinfo/types.tsdiffbeforeafterbothno changes
tests/src/interfaces/registry.tsdiffbeforeafterboth5// this is required to allow for ambient/previous definitions5// this is required to allow for ambient/previous definitions6import '@polkadot/types/types/registry';6import '@polkadot/types/types/registry';778import 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';8import 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';9910declare module '@polkadot/types/types/registry' {10declare module '@polkadot/types/types/registry' {11 interface InterfaceTypes {11 interface InterfaceTypes {198 SpRuntimeModuleError: SpRuntimeModuleError;198 SpRuntimeModuleError: SpRuntimeModuleError;199 SpRuntimeMultiSignature: SpRuntimeMultiSignature;199 SpRuntimeMultiSignature: SpRuntimeMultiSignature;200 SpRuntimeTokenError: SpRuntimeTokenError;200 SpRuntimeTokenError: SpRuntimeTokenError;201 SpRuntimeTransactionValidityInvalidTransaction: SpRuntimeTransactionValidityInvalidTransaction;202 SpRuntimeTransactionValidityTransactionValidityError: SpRuntimeTransactionValidityTransactionValidityError;203 SpRuntimeTransactionValidityUnknownTransaction: SpRuntimeTransactionValidityUnknownTransaction;201 SpRuntimeTransactionalError: SpRuntimeTransactionalError;204 SpRuntimeTransactionalError: SpRuntimeTransactionalError;202 SpTrieStorageProof: SpTrieStorageProof;205 SpTrieStorageProof: SpTrieStorageProof;203 SpVersionRuntimeVersion: SpVersionRuntimeVersion;206 SpVersionRuntimeVersion: SpVersionRuntimeVersion;234 UpDataStructsSponsorshipStateBasicCrossAccountIdRepr: UpDataStructsSponsorshipStateBasicCrossAccountIdRepr;237 UpDataStructsSponsorshipStateBasicCrossAccountIdRepr: UpDataStructsSponsorshipStateBasicCrossAccountIdRepr;235 UpDataStructsTokenChild: UpDataStructsTokenChild;238 UpDataStructsTokenChild: UpDataStructsTokenChild;236 UpDataStructsTokenData: UpDataStructsTokenData;239 UpDataStructsTokenData: UpDataStructsTokenData;240 UpPovEstimateRpcPovInfo: UpPovEstimateRpcPovInfo;241 UpPovEstimateRpcTrieKeyValue: UpPovEstimateRpcTrieKeyValue;237 XcmDoubleEncoded: XcmDoubleEncoded;242 XcmDoubleEncoded: XcmDoubleEncoded;238 XcmV0Junction: XcmV0Junction;243 XcmV0Junction: XcmV0Junction;239 XcmV0JunctionBodyId: XcmV0JunctionBodyId;244 XcmV0JunctionBodyId: XcmV0JunctionBodyId;tests/src/interfaces/types-lookup.tsdiffbeforeafterboth3380 }3380 }338133813382 /** @name PhantomTypeUpDataStructs (399) */3382 /** @name PhantomTypeUpDataStructs (399) */3383 interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild]>> {}3383 interface PhantomTypeUpDataStructs extends Vec<ITuple<[UpDataStructsTokenData, UpDataStructsRpcCollection, RmrkTraitsCollectionCollectionInfo, RmrkTraitsNftNftInfo, RmrkTraitsResourceResourceInfo, RmrkTraitsPropertyPropertyInfo, RmrkTraitsBaseBaseInfo, RmrkTraitsPartPartType, RmrkTraitsTheme, RmrkTraitsNftNftChild, UpPovEstimateRpcPovInfo]>> {}338433843385 /** @name UpDataStructsTokenData (401) */3385 /** @name UpDataStructsTokenData (401) */3386 interface UpDataStructsTokenData extends Struct {3386 interface UpDataStructsTokenData extends Struct {3462 readonly nftId: u32;3462 readonly nftId: u32;3463 }3463 }34643465 /** @name UpPovEstimateRpcPovInfo (413) */3466 interface UpPovEstimateRpcPovInfo extends Struct {3467 readonly proofSize: u64;3468 readonly compactProofSize: u64;3469 readonly compressedProofSize: u64;3470 readonly results: Vec<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>;3471 readonly keyValues: Vec<UpPovEstimateRpcTrieKeyValue>;3472 }34733474 /** @name SpRuntimeTransactionValidityTransactionValidityError (416) */3475 interface SpRuntimeTransactionValidityTransactionValidityError extends Enum {3476 readonly isInvalid: boolean;3477 readonly asInvalid: SpRuntimeTransactionValidityInvalidTransaction;3478 readonly isUnknown: boolean;3479 readonly asUnknown: SpRuntimeTransactionValidityUnknownTransaction;3480 readonly type: 'Invalid' | 'Unknown';3481 }34823483 /** @name SpRuntimeTransactionValidityInvalidTransaction (417) */3484 interface SpRuntimeTransactionValidityInvalidTransaction extends Enum {3485 readonly isCall: boolean;3486 readonly isPayment: boolean;3487 readonly isFuture: boolean;3488 readonly isStale: boolean;3489 readonly isBadProof: boolean;3490 readonly isAncientBirthBlock: boolean;3491 readonly isExhaustsResources: boolean;3492 readonly isCustom: boolean;3493 readonly asCustom: u8;3494 readonly isBadMandatory: boolean;3495 readonly isMandatoryValidation: boolean;3496 readonly isBadSigner: boolean;3497 readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryValidation' | 'BadSigner';3498 }34993500 /** @name SpRuntimeTransactionValidityUnknownTransaction (418) */3501 interface SpRuntimeTransactionValidityUnknownTransaction extends Enum {3502 readonly isCannotLookup: boolean;3503 readonly isNoUnsignedValidator: boolean;3504 readonly isCustom: boolean;3505 readonly asCustom: u8;3506 readonly type: 'CannotLookup' | 'NoUnsignedValidator' | 'Custom';3507 }35083509 /** @name UpPovEstimateRpcTrieKeyValue (420) */3510 interface UpPovEstimateRpcTrieKeyValue extends Struct {3511 readonly key: Bytes;3512 readonly value: Bytes;3513 }346435143465 /** @name PalletCommonError (414) */3515 /** @name PalletCommonError (422) */3466 interface PalletCommonError extends Enum {3516 interface PalletCommonError extends Enum {3467 readonly isCollectionNotFound: boolean;3517 readonly isCollectionNotFound: boolean;3468 readonly isMustBeTokenOwner: boolean;3518 readonly isMustBeTokenOwner: boolean;3503 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';3553 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';3504 }3554 }350535553506 /** @name PalletFungibleError (416) */3556 /** @name PalletFungibleError (424) */3507 interface PalletFungibleError extends Enum {3557 interface PalletFungibleError extends Enum {3508 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;3558 readonly isNotFungibleDataUsedToMintFungibleCollectionToken: boolean;3509 readonly isFungibleItemsHaveNoId: boolean;3559 readonly isFungibleItemsHaveNoId: boolean;3515 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed' | 'FungibleTokensAreAlwaysValid';3565 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed' | 'FungibleTokensAreAlwaysValid';3516 }3566 }351735673518 /** @name PalletRefungibleError (420) */3568 /** @name PalletRefungibleError (428) */3519 interface PalletRefungibleError extends Enum {3569 interface PalletRefungibleError extends Enum {3520 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;3570 readonly isNotRefungibleDataUsedToMintFungibleCollectionToken: boolean;3521 readonly isWrongRefungiblePieces: boolean;3571 readonly isWrongRefungiblePieces: boolean;3525 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3575 readonly type: 'NotRefungibleDataUsedToMintFungibleCollectionToken' | 'WrongRefungiblePieces' | 'RepartitionWhileNotOwningAllPieces' | 'RefungibleDisallowsNesting' | 'SettingPropertiesNotAllowed';3526 }3576 }352735773528 /** @name PalletNonfungibleItemData (421) */3578 /** @name PalletNonfungibleItemData (429) */3529 interface PalletNonfungibleItemData extends Struct {3579 interface PalletNonfungibleItemData extends Struct {3530 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3580 readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;3531 }3581 }353235823533 /** @name UpDataStructsPropertyScope (423) */3583 /** @name UpDataStructsPropertyScope (431) */3534 interface UpDataStructsPropertyScope extends Enum {3584 interface UpDataStructsPropertyScope extends Enum {3535 readonly isNone: boolean;3585 readonly isNone: boolean;3536 readonly isRmrk: boolean;3586 readonly isRmrk: boolean;3537 readonly type: 'None' | 'Rmrk';3587 readonly type: 'None' | 'Rmrk';3538 }3588 }353935893540 /** @name PalletNonfungibleError (426) */3590 /** @name PalletNonfungibleError (434) */3541 interface PalletNonfungibleError extends Enum {3591 interface PalletNonfungibleError extends Enum {3542 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;3592 readonly isNotNonfungibleDataUsedToMintFungibleCollectionToken: boolean;3543 readonly isNonfungibleItemsHaveNoAmount: boolean;3593 readonly isNonfungibleItemsHaveNoAmount: boolean;3544 readonly isCantBurnNftWithChildren: boolean;3594 readonly isCantBurnNftWithChildren: boolean;3545 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';3595 readonly type: 'NotNonfungibleDataUsedToMintFungibleCollectionToken' | 'NonfungibleItemsHaveNoAmount' | 'CantBurnNftWithChildren';3546 }3596 }354735973548 /** @name PalletStructureError (427) */3598 /** @name PalletStructureError (435) */3549 interface PalletStructureError extends Enum {3599 interface PalletStructureError extends Enum {3550 readonly isOuroborosDetected: boolean;3600 readonly isOuroborosDetected: boolean;3551 readonly isDepthLimit: boolean;3601 readonly isDepthLimit: boolean;3554 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';3604 readonly type: 'OuroborosDetected' | 'DepthLimit' | 'BreadthLimit' | 'TokenNotFound';3555 }3605 }355636063557 /** @name PalletRmrkCoreError (428) */3607 /** @name PalletRmrkCoreError (436) */3558 interface PalletRmrkCoreError extends Enum {3608 interface PalletRmrkCoreError extends Enum {3559 readonly isCorruptedCollectionType: boolean;3609 readonly isCorruptedCollectionType: boolean;3560 readonly isRmrkPropertyKeyIsTooLong: boolean;3610 readonly isRmrkPropertyKeyIsTooLong: boolean;3578 readonly type: 'CorruptedCollectionType' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';3628 readonly type: 'CorruptedCollectionType' | 'RmrkPropertyKeyIsTooLong' | 'RmrkPropertyValueIsTooLong' | 'RmrkPropertyIsNotFound' | 'UnableToDecodeRmrkData' | 'CollectionNotEmpty' | 'NoAvailableCollectionId' | 'NoAvailableNftId' | 'CollectionUnknown' | 'NoPermission' | 'NonTransferable' | 'CollectionFullOrLocked' | 'ResourceDoesntExist' | 'CannotSendToDescendentOrSelf' | 'CannotAcceptNonOwnedNft' | 'CannotRejectNonOwnedNft' | 'CannotRejectNonPendingNft' | 'ResourceNotPending' | 'NoAvailableResourceId';3579 }3629 }358036303581 /** @name PalletRmrkEquipError (430) */3631 /** @name PalletRmrkEquipError (438) */3582 interface PalletRmrkEquipError extends Enum {3632 interface PalletRmrkEquipError extends Enum {3583 readonly isPermissionError: boolean;3633 readonly isPermissionError: boolean;3584 readonly isNoAvailableBaseId: boolean;3634 readonly isNoAvailableBaseId: boolean;3590 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';3640 readonly type: 'PermissionError' | 'NoAvailableBaseId' | 'NoAvailablePartId' | 'BaseDoesntExist' | 'NeedsDefaultThemeFirst' | 'PartDoesntExist' | 'NoEquippableOnFixedPart';3591 }3641 }359236423593 /** @name PalletAppPromotionError (436) */3643 /** @name PalletAppPromotionError (444) */3594 interface PalletAppPromotionError extends Enum {3644 interface PalletAppPromotionError extends Enum {3595 readonly isAdminNotSet: boolean;3645 readonly isAdminNotSet: boolean;3596 readonly isNoPermission: boolean;3646 readonly isNoPermission: boolean;3601 readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFunds' | 'PendingForBlockOverflow' | 'SponsorNotSet' | 'IncorrectLockedBalanceOperation';3651 readonly type: 'AdminNotSet' | 'NoPermission' | 'NotSufficientFunds' | 'PendingForBlockOverflow' | 'SponsorNotSet' | 'IncorrectLockedBalanceOperation';3602 }3652 }360336533604 /** @name PalletForeignAssetsModuleError (437) */3654 /** @name PalletForeignAssetsModuleError (445) */3605 interface PalletForeignAssetsModuleError extends Enum {3655 interface PalletForeignAssetsModuleError extends Enum {3606 readonly isBadLocation: boolean;3656 readonly isBadLocation: boolean;3607 readonly isMultiLocationExisted: boolean;3657 readonly isMultiLocationExisted: boolean;3610 readonly type: 'BadLocation' | 'MultiLocationExisted' | 'AssetIdNotExists' | 'AssetIdExisted';3660 readonly type: 'BadLocation' | 'MultiLocationExisted' | 'AssetIdNotExists' | 'AssetIdExisted';3611 }3661 }361236623613 /** @name PalletEvmError (439) */3663 /** @name PalletEvmError (447) */3614 interface PalletEvmError extends Enum {3664 interface PalletEvmError extends Enum {3615 readonly isBalanceLow: boolean;3665 readonly isBalanceLow: boolean;3616 readonly isFeeOverflow: boolean;3666 readonly isFeeOverflow: boolean;3626 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce' | 'GasLimitTooLow' | 'GasLimitTooHigh' | 'Undefined' | 'Reentrancy' | 'TransactionMustComeFromEOA';3676 readonly type: 'BalanceLow' | 'FeeOverflow' | 'PaymentOverflow' | 'WithdrawFailed' | 'GasPriceTooLow' | 'InvalidNonce' | 'GasLimitTooLow' | 'GasLimitTooHigh' | 'Undefined' | 'Reentrancy' | 'TransactionMustComeFromEOA';3627 }3677 }362836783629 /** @name FpRpcTransactionStatus (442) */3679 /** @name FpRpcTransactionStatus (450) */3630 interface FpRpcTransactionStatus extends Struct {3680 interface FpRpcTransactionStatus extends Struct {3631 readonly transactionHash: H256;3681 readonly transactionHash: H256;3632 readonly transactionIndex: u32;3682 readonly transactionIndex: u32;3637 readonly logsBloom: EthbloomBloom;3687 readonly logsBloom: EthbloomBloom;3638 }3688 }363936893640 /** @name EthbloomBloom (444) */3690 /** @name EthbloomBloom (452) */3641 interface EthbloomBloom extends U8aFixed {}3691 interface EthbloomBloom extends U8aFixed {}364236923643 /** @name EthereumReceiptReceiptV3 (446) */3693 /** @name EthereumReceiptReceiptV3 (454) */3644 interface EthereumReceiptReceiptV3 extends Enum {3694 interface EthereumReceiptReceiptV3 extends Enum {3645 readonly isLegacy: boolean;3695 readonly isLegacy: boolean;3646 readonly asLegacy: EthereumReceiptEip658ReceiptData;3696 readonly asLegacy: EthereumReceiptEip658ReceiptData;3651 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3701 readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';3652 }3702 }365337033654 /** @name EthereumReceiptEip658ReceiptData (447) */3704 /** @name EthereumReceiptEip658ReceiptData (455) */3655 interface EthereumReceiptEip658ReceiptData extends Struct {3705 interface EthereumReceiptEip658ReceiptData extends Struct {3656 readonly statusCode: u8;3706 readonly statusCode: u8;3657 readonly usedGas: U256;3707 readonly usedGas: U256;3658 readonly logsBloom: EthbloomBloom;3708 readonly logsBloom: EthbloomBloom;3659 readonly logs: Vec<EthereumLog>;3709 readonly logs: Vec<EthereumLog>;3660 }3710 }366137113662 /** @name EthereumBlock (448) */3712 /** @name EthereumBlock (456) */3663 interface EthereumBlock extends Struct {3713 interface EthereumBlock extends Struct {3664 readonly header: EthereumHeader;3714 readonly header: EthereumHeader;3665 readonly transactions: Vec<EthereumTransactionTransactionV2>;3715 readonly transactions: Vec<EthereumTransactionTransactionV2>;3666 readonly ommers: Vec<EthereumHeader>;3716 readonly ommers: Vec<EthereumHeader>;3667 }3717 }366837183669 /** @name EthereumHeader (449) */3719 /** @name EthereumHeader (457) */3670 interface EthereumHeader extends Struct {3720 interface EthereumHeader extends Struct {3671 readonly parentHash: H256;3721 readonly parentHash: H256;3672 readonly ommersHash: H256;3722 readonly ommersHash: H256;3685 readonly nonce: EthereumTypesHashH64;3735 readonly nonce: EthereumTypesHashH64;3686 }3736 }368737373688 /** @name EthereumTypesHashH64 (450) */3738 /** @name EthereumTypesHashH64 (458) */3689 interface EthereumTypesHashH64 extends U8aFixed {}3739 interface EthereumTypesHashH64 extends U8aFixed {}369037403691 /** @name PalletEthereumError (455) */3741 /** @name PalletEthereumError (463) */3692 interface PalletEthereumError extends Enum {3742 interface PalletEthereumError extends Enum {3693 readonly isInvalidSignature: boolean;3743 readonly isInvalidSignature: boolean;3694 readonly isPreLogExists: boolean;3744 readonly isPreLogExists: boolean;3695 readonly type: 'InvalidSignature' | 'PreLogExists';3745 readonly type: 'InvalidSignature' | 'PreLogExists';3696 }3746 }369737473698 /** @name PalletEvmCoderSubstrateError (456) */3748 /** @name PalletEvmCoderSubstrateError (464) */3699 interface PalletEvmCoderSubstrateError extends Enum {3749 interface PalletEvmCoderSubstrateError extends Enum {3700 readonly isOutOfGas: boolean;3750 readonly isOutOfGas: boolean;3701 readonly isOutOfFund: boolean;3751 readonly isOutOfFund: boolean;3702 readonly type: 'OutOfGas' | 'OutOfFund';3752 readonly type: 'OutOfGas' | 'OutOfFund';3703 }3753 }370437543705 /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (457) */3755 /** @name UpDataStructsSponsorshipStateBasicCrossAccountIdRepr (465) */3706 interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum {3756 interface UpDataStructsSponsorshipStateBasicCrossAccountIdRepr extends Enum {3707 readonly isDisabled: boolean;3757 readonly isDisabled: boolean;3708 readonly isUnconfirmed: boolean;3758 readonly isUnconfirmed: boolean;3712 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3762 readonly type: 'Disabled' | 'Unconfirmed' | 'Confirmed';3713 }3763 }371437643715 /** @name PalletEvmContractHelpersSponsoringModeT (458) */3765 /** @name PalletEvmContractHelpersSponsoringModeT (466) */3716 interface PalletEvmContractHelpersSponsoringModeT extends Enum {3766 interface PalletEvmContractHelpersSponsoringModeT extends Enum {3717 readonly isDisabled: boolean;3767 readonly isDisabled: boolean;3718 readonly isAllowlisted: boolean;3768 readonly isAllowlisted: boolean;3719 readonly isGenerous: boolean;3769 readonly isGenerous: boolean;3720 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';3770 readonly type: 'Disabled' | 'Allowlisted' | 'Generous';3721 }3771 }372237723723 /** @name PalletEvmContractHelpersError (464) */3773 /** @name PalletEvmContractHelpersError (472) */3724 interface PalletEvmContractHelpersError extends Enum {3774 interface PalletEvmContractHelpersError extends Enum {3725 readonly isNoPermission: boolean;3775 readonly isNoPermission: boolean;3726 readonly isNoPendingSponsor: boolean;3776 readonly isNoPendingSponsor: boolean;3727 readonly isTooManyMethodsHaveSponsoredLimit: boolean;3777 readonly isTooManyMethodsHaveSponsoredLimit: boolean;3728 readonly type: 'NoPermission' | 'NoPendingSponsor' | 'TooManyMethodsHaveSponsoredLimit';3778 readonly type: 'NoPermission' | 'NoPendingSponsor' | 'TooManyMethodsHaveSponsoredLimit';3729 }3779 }373037803731 /** @name PalletEvmMigrationError (465) */3781 /** @name PalletEvmMigrationError (473) */3732 interface PalletEvmMigrationError extends Enum {3782 interface PalletEvmMigrationError extends Enum {3733 readonly isAccountNotEmpty: boolean;3783 readonly isAccountNotEmpty: boolean;3734 readonly isAccountIsNotMigrating: boolean;3784 readonly isAccountIsNotMigrating: boolean;3735 readonly isBadEvent: boolean;3785 readonly isBadEvent: boolean;3736 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating' | 'BadEvent';3786 readonly type: 'AccountNotEmpty' | 'AccountIsNotMigrating' | 'BadEvent';3737 }3787 }373837883739 /** @name PalletMaintenanceError (466) */3789 /** @name PalletMaintenanceError (474) */3740 type PalletMaintenanceError = Null;3790 type PalletMaintenanceError = Null;374137913742 /** @name PalletTestUtilsError (467) */3792 /** @name PalletTestUtilsError (475) */3743 interface PalletTestUtilsError extends Enum {3793 interface PalletTestUtilsError extends Enum {3744 readonly isTestPalletDisabled: boolean;3794 readonly isTestPalletDisabled: boolean;3745 readonly isTriggerRollback: boolean;3795 readonly isTriggerRollback: boolean;3746 readonly type: 'TestPalletDisabled' | 'TriggerRollback';3796 readonly type: 'TestPalletDisabled' | 'TriggerRollback';3747 }3797 }374837983749 /** @name SpRuntimeMultiSignature (469) */3799 /** @name SpRuntimeMultiSignature (477) */3750 interface SpRuntimeMultiSignature extends Enum {3800 interface SpRuntimeMultiSignature extends Enum {3751 readonly isEd25519: boolean;3801 readonly isEd25519: boolean;3752 readonly asEd25519: SpCoreEd25519Signature;3802 readonly asEd25519: SpCoreEd25519Signature;3757 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';3807 readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';3758 }3808 }375938093760 /** @name SpCoreEd25519Signature (470) */3810 /** @name SpCoreEd25519Signature (478) */3761 interface SpCoreEd25519Signature extends U8aFixed {}3811 interface SpCoreEd25519Signature extends U8aFixed {}376238123763 /** @name SpCoreSr25519Signature (472) */3813 /** @name SpCoreSr25519Signature (480) */3764 interface SpCoreSr25519Signature extends U8aFixed {}3814 interface SpCoreSr25519Signature extends U8aFixed {}376538153766 /** @name SpCoreEcdsaSignature (473) */3816 /** @name SpCoreEcdsaSignature (481) */3767 interface SpCoreEcdsaSignature extends U8aFixed {}3817 interface SpCoreEcdsaSignature extends U8aFixed {}376838183769 /** @name FrameSystemExtensionsCheckSpecVersion (476) */3819 /** @name FrameSystemExtensionsCheckSpecVersion (484) */3770 type FrameSystemExtensionsCheckSpecVersion = Null;3820 type FrameSystemExtensionsCheckSpecVersion = Null;377138213772 /** @name FrameSystemExtensionsCheckTxVersion (477) */3822 /** @name FrameSystemExtensionsCheckTxVersion (485) */3773 type FrameSystemExtensionsCheckTxVersion = Null;3823 type FrameSystemExtensionsCheckTxVersion = Null;377438243775 /** @name FrameSystemExtensionsCheckGenesis (478) */3825 /** @name FrameSystemExtensionsCheckGenesis (486) */3776 type FrameSystemExtensionsCheckGenesis = Null;3826 type FrameSystemExtensionsCheckGenesis = Null;377738273778 /** @name FrameSystemExtensionsCheckNonce (481) */3828 /** @name FrameSystemExtensionsCheckNonce (489) */3779 interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}3829 interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}378038303781 /** @name FrameSystemExtensionsCheckWeight (482) */3831 /** @name FrameSystemExtensionsCheckWeight (490) */3782 type FrameSystemExtensionsCheckWeight = Null;3832 type FrameSystemExtensionsCheckWeight = Null;378338333784 /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (483) */3834 /** @name OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance (491) */3785 type OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance = Null;3835 type OpalRuntimeRuntimeCommonMaintenanceCheckMaintenance = Null;378638363787 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (484) */3837 /** @name PalletTemplateTransactionPaymentChargeTransactionPayment (492) */3788 interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}3838 interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}378938393790 /** @name OpalRuntimeRuntime (485) */3840 /** @name OpalRuntimeRuntime (493) */3791 type OpalRuntimeRuntime = Null;3841 type OpalRuntimeRuntime = Null;379238423793 /** @name PalletEthereumFakeTransactionFinalizer (486) */3843 /** @name PalletEthereumFakeTransactionFinalizer (494) */3794 type PalletEthereumFakeTransactionFinalizer = Null;3844 type PalletEthereumFakeTransactionFinalizer = Null;379538453796} // declare module3846} // declare moduletests/src/interfaces/types.tsdiffbeforeafterboth4export * from './unique/types';4export * from './unique/types';5export * from './appPromotion/types';5export * from './appPromotion/types';6export * from './rmrk/types';6export * from './rmrk/types';7export * from './povinfo/types';7export * from './default/types';8export * from './default/types';89tests/src/util/playgrounds/types.tsdiffbeforeafterboth171 amount: bigint,171 amount: bigint,172}172}173174export interface IPovInfo {175 proofSize: number,176 compactProofSize: number,177 compressedProofSize: number,178 results: any[],179 kv: any,180}173181174export interface ISchedulerOptions {182export interface ISchedulerOptions {175 scheduledId?: string,183 scheduledId?: string,tests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth8import * as defs from '../../interfaces/definitions';8import * as defs from '../../interfaces/definitions';9import {IKeyringPair} from '@polkadot/types/types';9import {IKeyringPair} from '@polkadot/types/types';10import {EventRecord} from '@polkadot/types/interfaces';10import {EventRecord} from '@polkadot/types/interfaces';11import {ICrossAccountId, TSigner} from './types';11import {ICrossAccountId, IPovInfo, TSigner} from './types';12import {FrameSystemEventRecord} from '@polkadot/types/lookup';12import {FrameSystemEventRecord} from '@polkadot/types/lookup';13import {VoidFn} from '@polkadot/api/types';13import {VoidFn} from '@polkadot/api/types';14import {Pallets} from '..';14import {Pallets} from '..';15import {spawnSync} from 'child_process';151616export class SilentLogger {17export class SilentLogger {17 log(_msg: any, _level: any): void { }18 log(_msg: any, _level: any): void { }98 rpc: {99 rpc: {99 unique: defs.unique.rpc,100 unique: defs.unique.rpc,100 appPromotion: defs.appPromotion.rpc,101 appPromotion: defs.appPromotion.rpc,102 povinfo: defs.povinfo.rpc,101 rmrk: defs.rmrk.rpc,103 rmrk: defs.rmrk.rpc,102 eth: {104 eth: {103 feeHistory: {105 feeHistory: {115 });117 });116 await this.api.isReadyOrError;118 await this.api.isReadyOrError;117 this.network = await UniqueHelper.detectNetwork(this.api);119 this.network = await UniqueHelper.detectNetwork(this.api);120 this.wsEndpoint = wsEndpoint;118 }121 }119}122}120123322 return balance;325 return balance;323 }326 }327328 async calculatePoVInfo(txs: any[]): Promise<IPovInfo> {329 const rawPovInfo = await this.helper.callRpc('api.rpc.povinfo.estimateExtrinsicPoV', [txs]);330331 const kvJson: {[key: string]: string} = {};332333 for (const kv of rawPovInfo.keyValues) {334 kvJson[kv.key.toHex()] = kv.value.toHex();335 }336337 const kvStr = JSON.stringify(kvJson);338339 const chainql = spawnSync(340 'chainql', 341 [342 `--tla-code=data=${kvStr}`,343 '-e', `function(data) cql.dump(cql.chain("${this.helper.getEndpoint()}").latest._meta, data, {omit_empty:true})`,344 ],345 );346347 if (!chainql.stdout) {348 throw Error('unable to get an output from the `chainql`');349 }350351 return {352 proofSize: rawPovInfo.proofSize.toNumber(),353 compactProofSize: rawPovInfo.compactProofSize.toNumber(),354 compressedProofSize: rawPovInfo.compressedProofSize.toNumber(),355 results: rawPovInfo.results,356 kv: JSON.parse(chainql.stdout.toString()),357 };358 }324359325 calculatePalletAddress(palletId: any) {360 calculatePalletAddress(palletId: any) {326 const address = stringToU8a(('modl' + palletId).padEnd(32, '\0'));361 const address = stringToU8a(('modl' + palletId).padEnd(32, '\0'));tests/src/util/playgrounds/unique.tsdiffbeforeafterboth371 api: ApiPromise | null;371 api: ApiPromise | null;372 forcedNetwork: TNetworks | null;372 forcedNetwork: TNetworks | null;373 network: TNetworks | null;373 network: TNetworks | null;374 wsEndpoint: string | null;374 chainLog: IUniqueHelperLog[];375 chainLog: IUniqueHelperLog[];375 children: ChainHelperBase[];376 children: ChainHelperBase[];376 address: AddressGroup;377 address: AddressGroup;386 this.api = null;387 this.api = null;387 this.forcedNetwork = null;388 this.forcedNetwork = null;388 this.network = null;389 this.network = null;390 this.wsEndpoint = null;389 this.chainLog = [];391 this.chainLog = [];390 this.children = [];392 this.children = [];391 this.address = new AddressGroup(this);393 this.address = new AddressGroup(this);405 return newHelper;407 return newHelper;406 }408 }409410 getEndpoint(): string {411 if (this.wsEndpoint === null) throw Error('No connection was established');412 return this.wsEndpoint;413 }407414408 getApi(): ApiPromise {415 getApi(): ApiPromise {409 if(this.api === null) throw Error('API not initialized');416 if(this.api === null) throw Error('API not initialized');436 async connect(wsEndpoint: string, listeners?: IApiListeners) {443 async connect(wsEndpoint: string, listeners?: IApiListeners) {437 if (this.api !== null) throw Error('Already connected');444 if (this.api !== null) throw Error('Already connected');438 const {api, network} = await ChainHelperBase.createConnection(wsEndpoint, listeners, this.forcedNetwork);445 const {api, network} = await ChainHelperBase.createConnection(wsEndpoint, listeners, this.forcedNetwork);446 this.wsEndpoint = wsEndpoint;439 this.api = api;447 this.api = api;440 this.network = network;448 this.network = network;441 }449 }586 });594 });587 }595 }596597 async signTransactionWithoutSending(signer: TSigner, tx: any) {598 const api = this.getApi();599 const signingInfo = await api.derive.tx.signingInfo(signer.address);600601 tx.sign(signer, {602 blockHash: api.genesisHash,603 genesisHash: api.genesisHash,604 runtimeVersion: api.runtimeVersion,605 nonce: signingInfo.nonce,606 });607608 return tx.toHex();609 }588610589 async getPaymentInfo(signer: TSigner, tx: any, len: number | null) {611 async getPaymentInfo(signer: TSigner, tx: any, len: number | null) {590 const api = this.getApi();612 const api = this.getApi();