From 94fa3c3e564132d8b4dc485eb3b47636152bb7e0 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 20 Apr 2022 14:10:37 +0300 Subject: [PATCH 01/35] subxt: Add subscription to runtime upgrades Signed-off-by: Alexandru Vasile --- subxt/src/rpc.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/subxt/src/rpc.rs b/subxt/src/rpc.rs index b606c1964d..ea49095a71 100644 --- a/subxt/src/rpc.rs +++ b/subxt/src/rpc.rs @@ -480,6 +480,21 @@ impl Rpc { Ok(subscription) } + /// Subscribe to runtime version updates that produce changes in the metadata. + pub async fn subscribe_runtime_version( + &self, + ) -> Result, BasicError> { + let subscription = self + .client + .subscribe( + "state_subscribeRuntimeVersion", + rpc_params![], + "state_unsubscribeRuntimeVersion", + ) + .await?; + Ok(subscription) + } + /// Create and submit an extrinsic and return corresponding Hash if successful pub async fn submit_extrinsic( &self, From dc8e0aff5eb70a78d13b391343ecbbe41bf5aaa3 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 20 Apr 2022 16:49:29 +0300 Subject: [PATCH 02/35] subxt: Synchronize and expose inner `RuntimeVersion` of the `Client` Signed-off-by: Alexandru Vasile --- subxt/src/client.rs | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/subxt/src/client.rs b/subxt/src/client.rs index 3033271b96..c6dc5909e0 100644 --- a/subxt/src/client.rs +++ b/subxt/src/client.rs @@ -46,7 +46,10 @@ use codec::{ Encode, }; use derivative::Derivative; -use std::sync::Arc; +use std::sync::{ + Arc, + RwLock, +}; /// ClientBuilder for constructing a Client. #[derive(Default)] @@ -107,7 +110,7 @@ impl ClientBuilder { genesis_hash: genesis_hash?, metadata: Arc::new(metadata), properties: properties.unwrap_or_else(|_| Default::default()), - runtime_version: runtime_version?, + runtime_version: Arc::new(RwLock::new(runtime_version?)), iter_page_size: self.page_size.unwrap_or(10), }) } @@ -121,7 +124,7 @@ pub struct Client { genesis_hash: T::Hash, metadata: Arc, properties: SystemProperties, - runtime_version: RuntimeVersion, + runtime_version: Arc>, iter_page_size: u32, } @@ -179,6 +182,18 @@ impl Client { pub fn to_runtime_api>(self) -> R { self.into() } + + /// Returns a snapshot of the client Runtime Version. + pub fn runtime_version(&self) -> RuntimeVersion { + let runtime = self.runtime_version.read().unwrap(); + runtime.clone() + } + + /// Set the given Runtime Version on the client. + pub fn set_runtime_version(&self, runtime: RuntimeVersion) { + let mut actual = self.runtime_version.write().unwrap(); + *actual = runtime; + } } /// A constructed call ready to be signed and submitted. @@ -305,10 +320,13 @@ where Encoded(bytes) }; + // Obtain spec version and transaction version from the runtime version of the client. + let runtime = self.client.runtime_version(); + // 3. Construct our custom additional/extra params. let additional_and_extra_params = X::new( - self.client.runtime_version.spec_version, - self.client.runtime_version.transaction_version, + runtime.spec_version, + runtime.transaction_version, account_nonce, self.client.genesis_hash, other_params, From 934d6b546ceb1f4346da1076556b817cbaaef10e Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 20 Apr 2022 17:15:25 +0300 Subject: [PATCH 03/35] examples: Add runtime update example Signed-off-by: Alexandru Vasile --- .../examples/subscribe_runtime_updates.rs | 130 ++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 examples/examples/subscribe_runtime_updates.rs diff --git a/examples/examples/subscribe_runtime_updates.rs b/examples/examples/subscribe_runtime_updates.rs new file mode 100644 index 0000000000..8177b70094 --- /dev/null +++ b/examples/examples/subscribe_runtime_updates.rs @@ -0,0 +1,130 @@ +// Copyright 2019-2022 Parity Technologies (UK) Ltd. +// This file is part of subxt. +// +// subxt is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// subxt is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with subxt. If not, see . + +//! To run this example, a local polkadot node should be running. Example verified against polkadot 0.9.18-f6d6ab005d-aarch64-macos. +//! +//! E.g. +//! ```bash +//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.13/polkadot" --output /usr/local/bin/polkadot --location +//! polkadot --dev --tmp +//! ``` + +use sp_keyring::AccountKeyring; +use std::time::Duration; +use subxt::{ + ClientBuilder, + DefaultConfig, + PairSigner, + PolkadotExtrinsicParams, +}; + +#[subxt::subxt(runtime_metadata_path = "examples/polkadot_metadata.scale")] +pub mod polkadot {} + +type RuntimeApi = + polkadot::RuntimeApi>; + +/// This function is representative of the main customer use case. +async fn user_use_case(api: &RuntimeApi) { + let signer = PairSigner::new(AccountKeyring::Alice.pair()); + + // Make small balance transfers from Alice to Bob: + for _ in 0..10 { + let hash = api + .tx() + .balances() + .transfer( + AccountKeyring::Bob.to_account_id().into(), + 123_456_789_012_345, + ) + .sign_and_submit_default(&signer) + .await + .unwrap(); + + println!("Balance transfer extrinsic submitted: {}", hash); + tokio::time::sleep(Duration::from_secs(30)).await; + } +} + +/// This function handles runtime updates via subscribing to the +/// node's RuntimeVersion. +async fn runtime_update(api: &RuntimeApi) { + // Obtain an update subscription to further detect changes in the runtime version of the node. + let mut update_subscription = + api.client.rpc().subscribe_runtime_version().await.unwrap(); + println!(" [RuntimeUpdate] Application subscribed to RuntimeVersion updates"); + + while let Some(runtime_version) = update_subscription.next().await { + // The Runtime Version obtained via subscription. + let runtime_version = runtime_version.unwrap(); + // The Runtime Version of the client, as set during building the client. + let current_runtime = api.client.runtime_version(); + + // Ensure that the provided Runtime Version can be applied to the current + // version of the client. There are cases when the subscription to the + // Runtime Version of the node would produce spurious update events. + // In those cases, set the Runtime Version on the client if and only if + // the provided runtime version is bigger than what the client currently + // has stored. + if current_runtime.spec_version >= runtime_version.spec_version { + println!( + " [RuntimeUpdate] Update not performed for received spec_version={}, client has spec_version={}", + runtime_version.spec_version, current_runtime.spec_version + ); + continue + } + + // Perform the actual client update to ensure that further extrinsics + // include the appropriate `spec_version` and `transaction_version`. + println!( + " [RuntimeUpdate] Updating RuntimeVersion from {} to {}", + current_runtime.spec_version, runtime_version.spec_version + ); + api.client.set_runtime_version(runtime_version); + println!(" [RuntimeUpdate] Update completed"); + } +} + +#[tokio::main] +async fn main() -> Result<(), Box> { + env_logger::init(); + + let api = ClientBuilder::new() + .build() + .await? + .to_runtime_api::(); + + // Start two concurrent branches: + // - One branch performs runtime update + // - Another branch performs the main customer use case. + // + // Ideally this examples should be targeting a node that would perform + // runtime updates to demonstrate the functionality. + // + // For more details on how to perform updates on a node, please follow: + // https://docs.substrate.io/tutorials/v3/forkless-upgrades/ + tokio::select! { + _ = runtime_update(&api) => { + println!("Runtime update branch finished"); + } + _ = user_use_case(&api) => + { + println!("User main use case finished"); + } + } + + Ok(()) +} From cebb74b7f76cfcf694f441791c9a94a40d4e8869 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Mon, 2 May 2022 16:59:06 +0300 Subject: [PATCH 04/35] subxt: Expose `RuntimeVersion` as locked Signed-off-by: Alexandru Vasile --- subxt/src/client.rs | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/subxt/src/client.rs b/subxt/src/client.rs index 2a6f291303..82e90d8085 100644 --- a/subxt/src/client.rs +++ b/subxt/src/client.rs @@ -198,10 +198,9 @@ impl Client { self.into() } - /// Returns a snapshot of the client Runtime Version. - pub fn runtime_version(&self) -> RuntimeVersion { - let runtime = self.runtime_version.read().unwrap(); - runtime.clone() + /// Returns the client's Runtime Version. + pub fn runtime_version(&self) -> Arc> { + Arc::clone(&self.runtime_version) } /// Set the given Runtime Version on the client. @@ -335,17 +334,19 @@ where Encoded(bytes) }; - // Obtain spec version and transaction version from the runtime version of the client. - let runtime = self.client.runtime_version(); - // 3. Construct our custom additional/extra params. - let additional_and_extra_params = X::new( - runtime.spec_version, - runtime.transaction_version, - account_nonce, - self.client.genesis_hash, - other_params, - ); + let additional_and_extra_params = { + // Obtain spec version and transaction version from the runtime version of the client. + let locked_runtime = self.client.runtime_version(); + let runtime = locked_runtime.read().unwrap(); + X::new( + runtime.spec_version, + runtime.transaction_version, + account_nonce, + self.client.genesis_hash, + other_params, + ) + }; // 4. Construct signature. This is compatible with the Encode impl // for SignedPayload (which is this payload of bytes that we'd like) From fea8441f5097061091a63b8ca386612ffb4f28af Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Mon, 2 May 2022 17:02:23 +0300 Subject: [PATCH 05/35] subxt: Expose `Metadata` as locked Signed-off-by: Alexandru Vasile --- subxt/src/client.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subxt/src/client.rs b/subxt/src/client.rs index 82e90d8085..94c0c6566d 100644 --- a/subxt/src/client.rs +++ b/subxt/src/client.rs @@ -123,7 +123,7 @@ impl ClientBuilder { Ok(Client { rpc, genesis_hash: genesis_hash?, - metadata, + metadata: Arc::new(RwLock::new(metadata)), properties: properties.unwrap_or_else(|_| Default::default()), runtime_version: Arc::new(RwLock::new(runtime_version?)), iter_page_size: self.page_size.unwrap_or(10), @@ -137,7 +137,7 @@ impl ClientBuilder { pub struct Client { rpc: Rpc, genesis_hash: T::Hash, - metadata: Metadata, + metadata: Arc>, properties: SystemProperties, runtime_version: Arc>, iter_page_size: u32, @@ -164,8 +164,8 @@ impl Client { } /// Returns the chain metadata. - pub fn metadata(&self) -> &Metadata { - &self.metadata + pub fn metadata(&self) -> Arc> { + Arc::clone(&self.metadata) } /// Returns the properties defined in the chain spec as a JSON object. From 532a2e83c79259547e8f4cd3e50e4392a1b285b9 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Mon, 2 May 2022 17:06:28 +0300 Subject: [PATCH 06/35] subxt/storage: Use locked metadata Signed-off-by: Alexandru Vasile --- subxt/src/storage.rs | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/subxt/src/storage.rs b/subxt/src/storage.rs index 206d477efd..7d41278dbb 100644 --- a/subxt/src/storage.rs +++ b/subxt/src/storage.rs @@ -20,13 +20,17 @@ use codec::{ Decode, Encode, }; +use parking_lot::RwLock; use sp_core::storage::{ StorageChangeSet, StorageData, StorageKey, }; pub use sp_runtime::traits::SignedExtension; -use std::marker::PhantomData; +use std::{ + marker::PhantomData, + sync::Arc, +}; use crate::{ error::BasicError, @@ -133,7 +137,7 @@ impl StorageMapKey { /// Client for querying runtime storage. pub struct StorageClient<'a, T: Config> { rpc: &'a Rpc, - metadata: &'a Metadata, + metadata: Arc>, iter_page_size: u32, } @@ -141,7 +145,7 @@ impl<'a, T: Config> Clone for StorageClient<'a, T> { fn clone(&self) -> Self { Self { rpc: self.rpc, - metadata: self.metadata, + metadata: Arc::clone(&self.metadata), iter_page_size: self.iter_page_size, } } @@ -149,7 +153,11 @@ impl<'a, T: Config> Clone for StorageClient<'a, T> { impl<'a, T: Config> StorageClient<'a, T> { /// Create a new [`StorageClient`] - pub fn new(rpc: &'a Rpc, metadata: &'a Metadata, iter_page_size: u32) -> Self { + pub fn new( + rpc: &'a Rpc, + metadata: Arc>, + iter_page_size: u32, + ) -> Self { Self { rpc, metadata, @@ -199,7 +207,8 @@ impl<'a, T: Config> StorageClient<'a, T> { if let Some(data) = self.fetch(store, hash).await? { Ok(data) } else { - let pallet_metadata = self.metadata.pallet(F::PALLET)?; + let metadata = self.metadata.read(); + let pallet_metadata = metadata.pallet(F::PALLET)?; let storage_metadata = pallet_metadata.storage(F::STORAGE)?; let default = Decode::decode(&mut &storage_metadata.default[..]) .map_err(MetadataError::DefaultError)?; From 90b69fcdb82b9338eb6e86833318a137d77c8dbe Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Mon, 2 May 2022 17:07:51 +0300 Subject: [PATCH 07/35] subxt: Use parking lot RwLock variant for locked metadata Signed-off-by: Alexandru Vasile --- subxt/src/client.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/subxt/src/client.rs b/subxt/src/client.rs index 94c0c6566d..3dec0d77e9 100644 --- a/subxt/src/client.rs +++ b/subxt/src/client.rs @@ -46,10 +46,8 @@ use codec::{ Encode, }; use derivative::Derivative; -use std::sync::{ - Arc, - RwLock, -}; +use parking_lot::RwLock; +use std::sync::Arc; /// ClientBuilder for constructing a Client. #[derive(Default)] @@ -187,7 +185,7 @@ impl Client { /// Create a client for accessing runtime storage pub fn storage(&self) -> StorageClient { - StorageClient::new(&self.rpc, &self.metadata, self.iter_page_size) + StorageClient::new(&self.rpc, self.metadata(), self.iter_page_size) } /// Convert the client to a runtime api wrapper for custom runtime access. @@ -202,12 +200,6 @@ impl Client { pub fn runtime_version(&self) -> Arc> { Arc::clone(&self.runtime_version) } - - /// Set the given Runtime Version on the client. - pub fn set_runtime_version(&self, runtime: RuntimeVersion) { - let mut actual = self.runtime_version.write().unwrap(); - *actual = runtime; - } } /// A constructed call ready to be signed and submitted. @@ -338,7 +330,7 @@ where let additional_and_extra_params = { // Obtain spec version and transaction version from the runtime version of the client. let locked_runtime = self.client.runtime_version(); - let runtime = locked_runtime.read().unwrap(); + let runtime = locked_runtime.read(); X::new( runtime.spec_version, runtime.transaction_version, From 3402f6dfd1a4f47b50990e638e9213c56d0c3caa Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Mon, 2 May 2022 17:11:37 +0300 Subject: [PATCH 08/35] subxt: Utilize locked metadata variant Signed-off-by: Alexandru Vasile --- subxt/src/client.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subxt/src/client.rs b/subxt/src/client.rs index 3dec0d77e9..62d18f570c 100644 --- a/subxt/src/client.rs +++ b/subxt/src/client.rs @@ -319,7 +319,9 @@ where // 2. SCALE encode call data to bytes (pallet u8, call u8, call params). let call_data = { let mut bytes = Vec::new(); - let pallet = self.client.metadata().pallet(C::PALLET)?; + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + let pallet = metadata.pallet(C::PALLET)?; bytes.push(pallet.index()); bytes.push(pallet.call_index::()?); self.call.encode_to(&mut bytes); From 90c9f62a933ea4b7fefb37aa2b0a46921c44ae50 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Mon, 2 May 2022 17:13:17 +0300 Subject: [PATCH 09/35] subxt/transaction: Use locked metadata variant Signed-off-by: Alexandru Vasile --- subxt/src/transaction.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subxt/src/transaction.rs b/subxt/src/transaction.rs index 1b1bedd15a..db59ccb32e 100644 --- a/subxt/src/transaction.rs +++ b/subxt/src/transaction.rs @@ -391,9 +391,9 @@ impl<'client, T: Config, E: Decode + HasModuleError, Evs: Decode> let dispatch_error = E::decode(&mut &*ev.data)?; if let Some(error_data) = dispatch_error.module_error_data() { // Error index is utilized as the first byte from the error array. - let details = self - .client - .metadata() + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + let details = metadata .error(error_data.pallet_index, error_data.error_index())?; return Err(Error::Module(ModuleError { pallet: details.pallet().to_string(), From f3442065b8bc7894d4b65040a8dad4a5eb7ddb10 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Mon, 2 May 2022 17:47:09 +0300 Subject: [PATCH 10/35] Update subxt to use locked version of the Metadata Signed-off-by: Alexandru Vasile --- codegen/src/api/calls.rs | 4 +- codegen/src/api/constants.rs | 6 +- codegen/src/api/mod.rs | 6 +- codegen/src/api/storage.rs | 8 +- integration-tests/src/codegen/polkadot.rs | 7108 ++++++++++-------- integration-tests/src/frame/balances.rs | 4 +- integration-tests/src/metadata/validation.rs | 10 +- subxt/src/events/event_subscription.rs | 4 +- subxt/src/events/events_type.rs | 65 +- subxt/src/events/filter_events.rs | 35 +- subxt/src/transaction.rs | 18 +- 11 files changed, 4028 insertions(+), 3240 deletions(-) diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index aa58dbcf6e..ca441f0198 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -100,7 +100,9 @@ pub fn generate_calls( &self, #( #call_fn_args, )* ) -> Result<::subxt::SubmittableExtrinsic<'a, T, X, #struct_name, DispatchError, root_mod::Event>, ::subxt::BasicError> { - if self.client.metadata().call_hash::<#struct_name>()? == [#(#call_hash,)*] { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::<#struct_name>()? == [#(#call_hash,)*] { let call = #struct_name { #( #call_args, )* }; Ok(::subxt::SubmittableExtrinsic::new(self.client, call)) } else { diff --git a/codegen/src/api/constants.rs b/codegen/src/api/constants.rs index a6fba29979..4750ed59ba 100644 --- a/codegen/src/api/constants.rs +++ b/codegen/src/api/constants.rs @@ -49,8 +49,10 @@ pub fn generate_constants( quote! { #( #[doc = #docs ] )* pub fn #fn_name(&self) -> ::core::result::Result<#return_ty, ::subxt::BasicError> { - if self.client.metadata().constant_hash(#pallet_name, #constant_name)? == [#(#constant_hash,)*] { - let pallet = self.client.metadata().pallet(#pallet_name)?; + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash(#pallet_name, #constant_name)? == [#(#constant_hash,)*] { + let pallet = metadata.pallet(#pallet_name)?; let constant = pallet.constant(#constant_name)?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; Ok(value) diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index a437f610c8..6ecd296f48 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -312,7 +312,9 @@ impl RuntimeGenerator { X: ::subxt::extrinsic::ExtrinsicParams, { pub fn validate_metadata(&'a self) -> Result<(), ::subxt::MetadataError> { - if self.client.metadata().metadata_hash(&PALLETS) != [ #(#metadata_hash,)* ] { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.metadata_hash(&PALLETS) != [ #(#metadata_hash,)* ] { Err(::subxt::MetadataError::IncompatibleMetadata) } else { Ok(()) @@ -341,7 +343,7 @@ impl RuntimeGenerator { } impl <'a, T: ::subxt::Config> EventsApi<'a, T> { - pub async fn at(&self, block_hash: T::Hash) -> Result<::subxt::events::Events<'a, T, Event>, ::subxt::BasicError> { + pub async fn at(&self, block_hash: T::Hash) -> Result<::subxt::events::Events, ::subxt::BasicError> { ::subxt::events::at::(self.client, block_hash).await } diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index 5bc2ffa989..d1ef95dd58 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -271,7 +271,9 @@ fn generate_storage_entry_fns( &self, block_hash: ::core::option::Option, ) -> ::core::result::Result<::subxt::KeyIter<'a, T, #entry_struct_ident #lifetime_param>, ::subxt::BasicError> { - if self.client.metadata().storage_hash::<#entry_struct_ident>()? == [#(#storage_hash,)*] { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::<#entry_struct_ident>()? == [#(#storage_hash,)*] { self.client.storage().iter(block_hash).await } else { Err(::subxt::MetadataError::IncompatibleMetadata.into()) @@ -300,7 +302,9 @@ fn generate_storage_entry_fns( #( #key_args, )* block_hash: ::core::option::Option, ) -> ::core::result::Result<#return_ty, ::subxt::BasicError> { - if self.client.metadata().storage_hash::<#entry_struct_ident>()? == [#(#storage_hash,)*] { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::<#entry_struct_ident>()? == [#(#storage_hash,)*] { let entry = #constructor; self.client.storage().#fetch(&entry, block_hash).await } else { diff --git a/integration-tests/src/codegen/polkadot.rs b/integration-tests/src/codegen/polkadot.rs index d9dc9e17a8..79e4a93f5d 100644 --- a/integration-tests/src/codegen/polkadot.rs +++ b/integration-tests/src/codegen/polkadot.rs @@ -54,7 +54,7 @@ pub mod api { "Crowdloan", "XcmPallet", ]; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum Event { #[codec(index = 0)] System(system::Event), @@ -142,7 +142,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct FillBlock { pub ratio: runtime_types::sp_arithmetic::per_things::Perbill, } @@ -150,7 +150,7 @@ pub mod api { const PALLET: &'static str = "System"; const FUNCTION: &'static str = "fill_block"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Remark { pub remark: ::std::vec::Vec<::core::primitive::u8>, } @@ -159,10 +159,10 @@ pub mod api { const FUNCTION: &'static str = "remark"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetHeapPages { pub pages: ::core::primitive::u64, @@ -171,7 +171,7 @@ pub mod api { const PALLET: &'static str = "System"; const FUNCTION: &'static str = "set_heap_pages"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetCode { pub code: ::std::vec::Vec<::core::primitive::u8>, } @@ -179,7 +179,7 @@ pub mod api { const PALLET: &'static str = "System"; const FUNCTION: &'static str = "set_code"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetCodeWithoutChecks { pub code: ::std::vec::Vec<::core::primitive::u8>, } @@ -187,7 +187,7 @@ pub mod api { const PALLET: &'static str = "System"; const FUNCTION: &'static str = "set_code_without_checks"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetStorage { pub items: ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, @@ -198,7 +198,7 @@ pub mod api { const PALLET: &'static str = "System"; const FUNCTION: &'static str = "set_storage"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct KillStorage { pub keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, } @@ -206,7 +206,7 @@ pub mod api { const PALLET: &'static str = "System"; const FUNCTION: &'static str = "kill_storage"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct KillPrefix { pub prefix: ::std::vec::Vec<::core::primitive::u8>, pub subkeys: ::core::primitive::u32, @@ -215,7 +215,7 @@ pub mod api { const PALLET: &'static str = "System"; const FUNCTION: &'static str = "kill_prefix"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RemarkWithEvent { pub remark: ::std::vec::Vec<::core::primitive::u8>, } @@ -253,7 +253,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 228u8, 117u8, 251u8, 95u8, 47u8, 56u8, 32u8, 177u8, 191u8, 72u8, 75u8, 23u8, 193u8, 175u8, 227u8, 218u8, 127u8, 94u8, @@ -286,7 +288,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 186u8, 79u8, 33u8, 199u8, 216u8, 115u8, 19u8, 146u8, 220u8, 174u8, 98u8, 61u8, 179u8, 230u8, 40u8, 70u8, 22u8, 251u8, @@ -315,7 +319,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 77u8, 138u8, 122u8, 55u8, 179u8, 101u8, 60u8, 137u8, 173u8, 39u8, 28u8, 36u8, 237u8, 243u8, 232u8, 162u8, 76u8, 176u8, @@ -355,7 +361,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 35u8, 75u8, 103u8, 203u8, 91u8, 141u8, 77u8, 95u8, 37u8, 157u8, 107u8, 240u8, 54u8, 242u8, 245u8, 205u8, 104u8, 165u8, @@ -392,7 +400,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 150u8, 148u8, 119u8, 129u8, 77u8, 216u8, 135u8, 187u8, 127u8, 24u8, 238u8, 15u8, 227u8, 229u8, 191u8, 217u8, 106u8, 129u8, @@ -424,7 +434,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 197u8, 12u8, 119u8, 205u8, 152u8, 103u8, 211u8, 170u8, 146u8, 253u8, 25u8, 56u8, 180u8, 146u8, 74u8, 75u8, 38u8, 108u8, @@ -453,7 +465,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 154u8, 115u8, 185u8, 20u8, 126u8, 90u8, 222u8, 131u8, 199u8, 57u8, 184u8, 226u8, 43u8, 245u8, 161u8, 176u8, 194u8, 123u8, @@ -486,7 +500,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 214u8, 101u8, 191u8, 241u8, 1u8, 241u8, 144u8, 116u8, 246u8, 199u8, 159u8, 249u8, 155u8, 164u8, 220u8, 221u8, 75u8, 33u8, @@ -515,7 +531,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 171u8, 82u8, 75u8, 237u8, 69u8, 197u8, 223u8, 125u8, 123u8, 51u8, 241u8, 35u8, 202u8, 210u8, 227u8, 109u8, 1u8, 241u8, @@ -534,7 +552,7 @@ pub mod api { pub type Event = runtime_types::frame_system::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An extrinsic completed successfully."] pub struct ExtrinsicSuccess { pub dispatch_info: runtime_types::frame_support::weights::DispatchInfo, @@ -543,7 +561,7 @@ pub mod api { const PALLET: &'static str = "System"; const EVENT: &'static str = "ExtrinsicSuccess"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An extrinsic failed."] pub struct ExtrinsicFailed { pub dispatch_error: runtime_types::sp_runtime::DispatchError, @@ -553,14 +571,14 @@ pub mod api { const PALLET: &'static str = "System"; const EVENT: &'static str = "ExtrinsicFailed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "`:code` was updated."] pub struct CodeUpdated; impl ::subxt::Event for CodeUpdated { const PALLET: &'static str = "System"; const EVENT: &'static str = "CodeUpdated"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A new account was created."] pub struct NewAccount { pub account: ::subxt::sp_core::crypto::AccountId32, @@ -569,7 +587,7 @@ pub mod api { const PALLET: &'static str = "System"; const EVENT: &'static str = "NewAccount"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An account was reaped."] pub struct KilledAccount { pub account: ::subxt::sp_core::crypto::AccountId32, @@ -578,7 +596,7 @@ pub mod api { const PALLET: &'static str = "System"; const EVENT: &'static str = "KilledAccount"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "On on-chain remark happened."] pub struct Remarked { pub sender: ::subxt::sp_core::crypto::AccountId32, @@ -779,7 +797,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 224u8, 184u8, 2u8, 14u8, 38u8, 177u8, 223u8, 98u8, 223u8, 15u8, 130u8, 23u8, 212u8, 69u8, 61u8, 165u8, 171u8, 61u8, @@ -804,7 +824,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Account<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 224u8, 184u8, 2u8, 14u8, 38u8, 177u8, 223u8, 98u8, 223u8, 15u8, 130u8, 23u8, 212u8, 69u8, 61u8, 165u8, 171u8, 61u8, @@ -825,7 +847,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 223u8, 60u8, 201u8, 120u8, 36u8, 44u8, 180u8, 210u8, 242u8, 53u8, 222u8, 154u8, 123u8, 176u8, 249u8, 8u8, 225u8, 28u8, @@ -849,7 +873,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 2u8, 236u8, 190u8, 174u8, 244u8, 98u8, 194u8, 168u8, 89u8, 208u8, 7u8, 45u8, 175u8, 171u8, 177u8, 121u8, 215u8, 190u8, @@ -874,7 +900,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 202u8, 145u8, 209u8, 225u8, 40u8, 220u8, 174u8, 74u8, 93u8, 164u8, 254u8, 248u8, 254u8, 192u8, 32u8, 117u8, 96u8, 149u8, @@ -895,7 +923,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 24u8, 99u8, 146u8, 142u8, 205u8, 166u8, 4u8, 32u8, 218u8, 213u8, 24u8, 236u8, 45u8, 116u8, 145u8, 204u8, 27u8, 141u8, @@ -920,7 +950,9 @@ pub mod api { ::subxt::KeyIter<'a, T, BlockHash<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 24u8, 99u8, 146u8, 142u8, 205u8, 166u8, 4u8, 32u8, 218u8, 213u8, 24u8, 236u8, 45u8, 116u8, 145u8, 204u8, 27u8, 141u8, @@ -942,7 +974,9 @@ pub mod api { ::std::vec::Vec<::core::primitive::u8>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 210u8, 224u8, 211u8, 186u8, 118u8, 210u8, 185u8, 194u8, 238u8, 211u8, 254u8, 73u8, 67u8, 184u8, 31u8, 229u8, 168u8, @@ -967,7 +1001,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ExtrinsicData<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 210u8, 224u8, 211u8, 186u8, 118u8, 210u8, 185u8, 194u8, 238u8, 211u8, 254u8, 73u8, 67u8, 184u8, 31u8, 229u8, 168u8, @@ -986,7 +1022,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 228u8, 96u8, 102u8, 190u8, 252u8, 130u8, 239u8, 172u8, 126u8, 235u8, 246u8, 139u8, 208u8, 15u8, 88u8, 245u8, 141u8, 232u8, @@ -1009,7 +1047,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 194u8, 221u8, 147u8, 22u8, 68u8, 141u8, 32u8, 6u8, 202u8, 39u8, 164u8, 184u8, 69u8, 126u8, 190u8, 101u8, 215u8, 27u8, @@ -1034,7 +1074,9 @@ pub mod api { runtime_types::sp_runtime::generic::digest::Digest, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 10u8, 176u8, 13u8, 228u8, 226u8, 42u8, 210u8, 151u8, 107u8, 212u8, 136u8, 15u8, 38u8, 182u8, 225u8, 12u8, 250u8, 56u8, @@ -1067,7 +1109,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 51u8, 117u8, 189u8, 125u8, 155u8, 137u8, 63u8, 1u8, 80u8, 211u8, 18u8, 228u8, 58u8, 237u8, 241u8, 176u8, 127u8, 189u8, @@ -1090,7 +1134,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 236u8, 93u8, 90u8, 177u8, 250u8, 211u8, 138u8, 187u8, 26u8, 208u8, 203u8, 113u8, 221u8, 233u8, 227u8, 9u8, 249u8, 25u8, @@ -1125,7 +1171,9 @@ pub mod api { ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 231u8, 73u8, 172u8, 223u8, 210u8, 145u8, 151u8, 102u8, 73u8, 23u8, 140u8, 55u8, 97u8, 40u8, 219u8, 239u8, 229u8, 177u8, @@ -1159,7 +1207,9 @@ pub mod api { ::subxt::KeyIter<'a, T, EventTopics<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 231u8, 73u8, 172u8, 223u8, 210u8, 145u8, 151u8, 102u8, 73u8, 23u8, 140u8, 55u8, 97u8, 40u8, 219u8, 239u8, 229u8, 177u8, @@ -1182,10 +1232,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 219u8, 153u8, 158u8, 38u8, 45u8, 65u8, 151u8, 137u8, 53u8, 76u8, 11u8, 181u8, 218u8, 248u8, 125u8, 190u8, 100u8, 240u8, @@ -1205,10 +1254,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 171u8, 88u8, 244u8, 92u8, 122u8, 67u8, 27u8, 18u8, 59u8, 175u8, 175u8, 178u8, 20u8, 150u8, 213u8, 59u8, 222u8, 141u8, @@ -1232,10 +1280,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 90u8, 33u8, 56u8, 86u8, 90u8, 101u8, 89u8, 133u8, 203u8, 56u8, 201u8, 210u8, 244u8, 232u8, 150u8, 18u8, 51u8, 105u8, @@ -1260,7 +1307,9 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 174u8, 13u8, 230u8, 220u8, 239u8, 161u8, 172u8, 122u8, 188u8, 95u8, 141u8, 118u8, 91u8, 158u8, 111u8, 145u8, 243u8, 173u8, @@ -1292,18 +1341,17 @@ pub mod api { runtime_types::frame_system::limits::BlockWeights, ::subxt::BasicError, > { - if self - .client - .metadata() - .constant_hash("System", "BlockWeights")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("System", "BlockWeights")? == [ - 204u8, 48u8, 167u8, 131u8, 33u8, 100u8, 198u8, 189u8, 195u8, - 1u8, 117u8, 121u8, 184u8, 221u8, 144u8, 199u8, 43u8, 212u8, - 40u8, 31u8, 121u8, 47u8, 154u8, 102u8, 87u8, 136u8, 106u8, - 147u8, 213u8, 167u8, 193u8, 209u8, + 12u8, 113u8, 191u8, 55u8, 3u8, 129u8, 43u8, 135u8, 41u8, + 245u8, 198u8, 178u8, 233u8, 206u8, 94u8, 128u8, 153u8, 187u8, + 63u8, 159u8, 156u8, 53u8, 165u8, 201u8, 38u8, 121u8, 80u8, + 64u8, 93u8, 151u8, 48u8, 116u8, ] { - let pallet = self.client.metadata().pallet("System")?; + let pallet = metadata.pallet("System")?; let constant = pallet.constant("BlockWeights")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -1319,18 +1367,17 @@ pub mod api { runtime_types::frame_system::limits::BlockLength, ::subxt::BasicError, > { - if self - .client - .metadata() - .constant_hash("System", "BlockLength")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("System", "BlockLength")? == [ - 162u8, 232u8, 19u8, 135u8, 181u8, 6u8, 183u8, 230u8, 146u8, - 3u8, 140u8, 106u8, 44u8, 46u8, 50u8, 144u8, 239u8, 69u8, - 100u8, 195u8, 13u8, 73u8, 52u8, 140u8, 204u8, 91u8, 32u8, - 153u8, 179u8, 7u8, 207u8, 49u8, + 120u8, 249u8, 182u8, 103u8, 246u8, 214u8, 149u8, 44u8, 42u8, + 64u8, 2u8, 56u8, 157u8, 184u8, 43u8, 195u8, 214u8, 251u8, + 207u8, 207u8, 249u8, 105u8, 203u8, 108u8, 179u8, 93u8, 93u8, + 246u8, 40u8, 175u8, 160u8, 114u8, ] { - let pallet = self.client.metadata().pallet("System")?; + let pallet = metadata.pallet("System")?; let constant = pallet.constant("BlockLength")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -1344,18 +1391,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("System", "BlockHashCount")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("System", "BlockHashCount")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 123u8, 126u8, 182u8, 103u8, 71u8, 187u8, 233u8, 8u8, 47u8, + 226u8, 159u8, 139u8, 0u8, 59u8, 190u8, 135u8, 189u8, 77u8, + 190u8, 81u8, 39u8, 198u8, 224u8, 219u8, 70u8, 143u8, 6u8, + 132u8, 196u8, 61u8, 117u8, 194u8, ] { - let pallet = self.client.metadata().pallet("System")?; + let pallet = metadata.pallet("System")?; let constant = pallet.constant("BlockHashCount")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -1371,15 +1417,17 @@ pub mod api { runtime_types::frame_support::weights::RuntimeDbWeight, ::subxt::BasicError, > { - if self.client.metadata().constant_hash("System", "DbWeight")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("System", "DbWeight")? == [ - 148u8, 162u8, 51u8, 245u8, 246u8, 116u8, 90u8, 22u8, 43u8, - 254u8, 84u8, 59u8, 121u8, 135u8, 46u8, 37u8, 5u8, 71u8, - 146u8, 64u8, 252u8, 95u8, 226u8, 64u8, 137u8, 198u8, 222u8, - 159u8, 14u8, 92u8, 175u8, 174u8, + 159u8, 93u8, 33u8, 204u8, 10u8, 85u8, 53u8, 104u8, 180u8, + 190u8, 30u8, 135u8, 158u8, 108u8, 240u8, 172u8, 234u8, 169u8, + 6u8, 147u8, 95u8, 39u8, 231u8, 137u8, 204u8, 38u8, 100u8, + 46u8, 252u8, 94u8, 119u8, 213u8, ] { - let pallet = self.client.metadata().pallet("System")?; + let pallet = metadata.pallet("System")?; let constant = pallet.constant("DbWeight")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -1395,15 +1443,17 @@ pub mod api { runtime_types::sp_version::RuntimeVersion, ::subxt::BasicError, > { - if self.client.metadata().constant_hash("System", "Version")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("System", "Version")? == [ - 121u8, 146u8, 105u8, 234u8, 154u8, 125u8, 117u8, 194u8, - 183u8, 62u8, 171u8, 26u8, 86u8, 200u8, 90u8, 254u8, 176u8, - 67u8, 111u8, 241u8, 185u8, 244u8, 208u8, 140u8, 94u8, 2u8, - 48u8, 138u8, 231u8, 151u8, 157u8, 217u8, + 237u8, 208u8, 32u8, 121u8, 44u8, 122u8, 19u8, 109u8, 43u8, + 24u8, 52u8, 255u8, 23u8, 97u8, 22u8, 44u8, 108u8, 76u8, 62u8, + 1u8, 199u8, 112u8, 36u8, 209u8, 209u8, 0u8, 160u8, 169u8, + 175u8, 33u8, 189u8, 194u8, ] { - let pallet = self.client.metadata().pallet("System")?; + let pallet = metadata.pallet("System")?; let constant = pallet.constant("Version")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -1421,18 +1471,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("System", "SS58Prefix")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("System", "SS58Prefix")? == [ - 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, - 227u8, 41u8, 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, - 184u8, 72u8, 169u8, 90u8, 208u8, 135u8, 15u8, 117u8, 10u8, - 123u8, 128u8, 193u8, 29u8, 70u8, + 80u8, 239u8, 133u8, 243u8, 151u8, 113u8, 37u8, 41u8, 100u8, + 145u8, 201u8, 253u8, 29u8, 81u8, 203u8, 97u8, 202u8, 212u8, + 105u8, 25u8, 177u8, 227u8, 114u8, 66u8, 40u8, 194u8, 250u8, + 96u8, 166u8, 87u8, 32u8, 185u8, ] { - let pallet = self.client.metadata().pallet("System")?; + let pallet = metadata.pallet("System")?; let constant = pallet.constant("SS58Prefix")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -1455,7 +1504,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Schedule { pub when: ::core::primitive::u32, pub maybe_periodic: ::core::option::Option<( @@ -1474,7 +1523,7 @@ pub mod api { const PALLET: &'static str = "Scheduler"; const FUNCTION: &'static str = "schedule"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Cancel { pub when: ::core::primitive::u32, pub index: ::core::primitive::u32, @@ -1483,7 +1532,7 @@ pub mod api { const PALLET: &'static str = "Scheduler"; const FUNCTION: &'static str = "cancel"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ScheduleNamed { pub id: ::std::vec::Vec<::core::primitive::u8>, pub when: ::core::primitive::u32, @@ -1503,7 +1552,7 @@ pub mod api { const PALLET: &'static str = "Scheduler"; const FUNCTION: &'static str = "schedule_named"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct CancelNamed { pub id: ::std::vec::Vec<::core::primitive::u8>, } @@ -1511,7 +1560,7 @@ pub mod api { const PALLET: &'static str = "Scheduler"; const FUNCTION: &'static str = "cancel_named"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ScheduleAfter { pub after: ::core::primitive::u32, pub maybe_periodic: ::core::option::Option<( @@ -1530,7 +1579,7 @@ pub mod api { const PALLET: &'static str = "Scheduler"; const FUNCTION: &'static str = "schedule_after"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ScheduleNamedAfter { pub id: ::std::vec::Vec<::core::primitive::u8>, pub after: ::core::primitive::u32, @@ -1589,7 +1638,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 171u8, 203u8, 174u8, 141u8, 138u8, 30u8, 100u8, 95u8, 14u8, 2u8, 34u8, 14u8, 199u8, 60u8, 129u8, 160u8, 8u8, 166u8, 4u8, @@ -1624,7 +1675,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 118u8, 0u8, 188u8, 218u8, 148u8, 86u8, 139u8, 15u8, 3u8, 161u8, 6u8, 150u8, 46u8, 32u8, 85u8, 179u8, 106u8, 113u8, @@ -1663,7 +1716,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 47u8, 156u8, 239u8, 248u8, 198u8, 13u8, 10u8, 156u8, 176u8, 254u8, 247u8, 152u8, 108u8, 255u8, 224u8, 185u8, 109u8, 56u8, @@ -1698,7 +1753,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 118u8, 221u8, 232u8, 126u8, 67u8, 134u8, 33u8, 7u8, 224u8, 110u8, 181u8, 18u8, 57u8, 39u8, 15u8, 64u8, 90u8, 132u8, 2u8, @@ -1740,7 +1797,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 150u8, 70u8, 131u8, 52u8, 50u8, 73u8, 176u8, 193u8, 17u8, 31u8, 218u8, 113u8, 220u8, 23u8, 160u8, 196u8, 100u8, 27u8, @@ -1788,7 +1847,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 127u8, 121u8, 141u8, 162u8, 95u8, 211u8, 214u8, 15u8, 22u8, 28u8, 23u8, 71u8, 92u8, 58u8, 249u8, 163u8, 216u8, 85u8, @@ -1813,7 +1874,7 @@ pub mod api { pub type Event = runtime_types::pallet_scheduler::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Scheduled some task."] pub struct Scheduled { pub when: ::core::primitive::u32, @@ -1823,7 +1884,7 @@ pub mod api { const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "Scheduled"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Canceled some task."] pub struct Canceled { pub when: ::core::primitive::u32, @@ -1833,7 +1894,7 @@ pub mod api { const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "Canceled"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Dispatched some task."] pub struct Dispatched { pub task: (::core::primitive::u32, ::core::primitive::u32), @@ -1845,7 +1906,7 @@ pub mod api { const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "Dispatched"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The call for the provided hash was not found so the task has been aborted."] pub struct CallLookupFailed { pub task: (::core::primitive::u32, ::core::primitive::u32), @@ -1903,7 +1964,9 @@ pub mod api { Self { client } } #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub async fn agenda (& self , _0 : & :: core :: primitive :: u32 , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_scheduler :: ScheduledV3 < runtime_types :: frame_support :: traits :: schedule :: MaybeHashed < runtime_types :: polkadot_runtime :: Call , :: subxt :: sp_core :: H256 > , :: core :: primitive :: u32 , runtime_types :: polkadot_runtime :: OriginCaller , :: subxt :: sp_core :: crypto :: AccountId32 > > > , :: subxt :: BasicError >{ - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 235u8, 95u8, 118u8, 134u8, 98u8, 235u8, 250u8, 110u8, 250u8, 7u8, 75u8, 190u8, 53u8, 194u8, 153u8, 51u8, 125u8, 69u8, @@ -1928,7 +1991,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Agenda<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 235u8, 95u8, 118u8, 134u8, 98u8, 235u8, 250u8, 110u8, 250u8, 7u8, 75u8, 190u8, 53u8, 194u8, 153u8, 51u8, 125u8, 69u8, @@ -1953,7 +2018,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 56u8, 105u8, 156u8, 110u8, 251u8, 141u8, 219u8, 56u8, 131u8, 57u8, 180u8, 33u8, 48u8, 30u8, 193u8, 194u8, 169u8, 182u8, @@ -1975,7 +2042,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Lookup<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 56u8, 105u8, 156u8, 110u8, 251u8, 141u8, 219u8, 56u8, 131u8, 57u8, 180u8, 33u8, 48u8, 30u8, 193u8, 194u8, 169u8, 182u8, @@ -2005,18 +2074,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Scheduler", "MaximumWeight")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Scheduler", "MaximumWeight")? == [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, - 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, - 65u8, 18u8, 191u8, 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, - 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, + 235u8, 167u8, 74u8, 91u8, 5u8, 188u8, 76u8, 138u8, 208u8, + 10u8, 100u8, 241u8, 65u8, 185u8, 195u8, 212u8, 38u8, 161u8, + 27u8, 113u8, 220u8, 214u8, 28u8, 214u8, 67u8, 169u8, 21u8, + 10u8, 230u8, 130u8, 251u8, 175u8, ] { - let pallet = self.client.metadata().pallet("Scheduler")?; + let pallet = metadata.pallet("Scheduler")?; let constant = pallet.constant("MaximumWeight")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -2031,18 +2099,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Scheduler", "MaxScheduledPerBlock")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Scheduler", "MaxScheduledPerBlock")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 64u8, 25u8, 128u8, 202u8, 165u8, 97u8, 30u8, 196u8, 174u8, + 132u8, 139u8, 223u8, 88u8, 20u8, 228u8, 203u8, 253u8, 201u8, + 83u8, 157u8, 161u8, 120u8, 187u8, 165u8, 4u8, 64u8, 184u8, + 34u8, 28u8, 129u8, 136u8, 13u8, ] { - let pallet = self.client.metadata().pallet("Scheduler")?; + let pallet = metadata.pallet("Scheduler")?; let constant = pallet.constant("MaxScheduledPerBlock")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -2065,7 +2132,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct NotePreimage { pub bytes: ::std::vec::Vec<::core::primitive::u8>, } @@ -2073,7 +2140,7 @@ pub mod api { const PALLET: &'static str = "Preimage"; const FUNCTION: &'static str = "note_preimage"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct UnnotePreimage { pub hash: ::subxt::sp_core::H256, } @@ -2081,7 +2148,7 @@ pub mod api { const PALLET: &'static str = "Preimage"; const FUNCTION: &'static str = "unnote_preimage"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RequestPreimage { pub hash: ::subxt::sp_core::H256, } @@ -2089,7 +2156,7 @@ pub mod api { const PALLET: &'static str = "Preimage"; const FUNCTION: &'static str = "request_preimage"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct UnrequestPreimage { pub hash: ::subxt::sp_core::H256, } @@ -2130,7 +2197,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 116u8, 66u8, 88u8, 251u8, 187u8, 86u8, 82u8, 136u8, 215u8, 82u8, 240u8, 255u8, 70u8, 190u8, 116u8, 187u8, 232u8, 168u8, @@ -2159,7 +2228,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 162u8, 195u8, 220u8, 134u8, 147u8, 150u8, 145u8, 130u8, 231u8, 104u8, 83u8, 70u8, 42u8, 90u8, 248u8, 61u8, 223u8, @@ -2191,7 +2262,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 186u8, 108u8, 235u8, 145u8, 104u8, 29u8, 22u8, 33u8, 21u8, 121u8, 32u8, 75u8, 141u8, 125u8, 205u8, 186u8, 210u8, 184u8, @@ -2222,7 +2295,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 160u8, 6u8, 6u8, 198u8, 77u8, 37u8, 28u8, 86u8, 240u8, 160u8, 128u8, 123u8, 144u8, 150u8, 150u8, 60u8, 107u8, 148u8, 189u8, @@ -2241,7 +2316,7 @@ pub mod api { pub type Event = runtime_types::pallet_preimage::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A preimage has been noted."] pub struct Noted { pub hash: ::subxt::sp_core::H256, @@ -2250,7 +2325,7 @@ pub mod api { const PALLET: &'static str = "Preimage"; const EVENT: &'static str = "Noted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A preimage has been requested."] pub struct Requested { pub hash: ::subxt::sp_core::H256, @@ -2259,7 +2334,7 @@ pub mod api { const PALLET: &'static str = "Preimage"; const EVENT: &'static str = "Requested"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A preimage has ben cleared."] pub struct Cleared { pub hash: ::subxt::sp_core::H256, @@ -2322,7 +2397,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 239u8, 53u8, 52u8, 248u8, 196u8, 74u8, 99u8, 113u8, 135u8, 186u8, 100u8, 46u8, 246u8, 245u8, 160u8, 102u8, 81u8, 96u8, @@ -2344,7 +2421,9 @@ pub mod api { ::subxt::KeyIter<'a, T, StatusFor<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 239u8, 53u8, 52u8, 248u8, 196u8, 74u8, 99u8, 113u8, 135u8, 186u8, 100u8, 46u8, 246u8, 245u8, 160u8, 102u8, 81u8, 96u8, @@ -2370,7 +2449,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 153u8, 48u8, 185u8, 144u8, 57u8, 68u8, 133u8, 92u8, 225u8, 172u8, 36u8, 62u8, 152u8, 162u8, 15u8, 139u8, 140u8, 82u8, @@ -2392,7 +2473,9 @@ pub mod api { ::subxt::KeyIter<'a, T, PreimageFor<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 153u8, 48u8, 185u8, 144u8, 57u8, 68u8, 133u8, 92u8, 225u8, 172u8, 36u8, 62u8, 152u8, 162u8, 15u8, 139u8, 140u8, 82u8, @@ -2419,7 +2502,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ReportEquivocation { pub equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< @@ -2436,7 +2519,7 @@ pub mod api { const PALLET: &'static str = "Babe"; const FUNCTION: &'static str = "report_equivocation"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ReportEquivocationUnsigned { pub equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< @@ -2453,7 +2536,7 @@ pub mod api { const PALLET: &'static str = "Babe"; const FUNCTION: &'static str = "report_equivocation_unsigned"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct PlanConfigChange { pub config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, @@ -2496,7 +2579,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 123u8, 212u8, 216u8, 77u8, 79u8, 132u8, 201u8, 155u8, 166u8, 230u8, 50u8, 89u8, 98u8, 68u8, 56u8, 213u8, 206u8, 245u8, @@ -2538,10 +2623,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 32u8, 163u8, 168u8, 251u8, 251u8, 9u8, 1u8, 195u8, 173u8, 32u8, 235u8, 125u8, 141u8, 201u8, 130u8, 207u8, 239u8, 76u8, @@ -2578,7 +2662,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 215u8, 121u8, 90u8, 87u8, 178u8, 247u8, 114u8, 53u8, 174u8, 28u8, 20u8, 33u8, 139u8, 216u8, 13u8, 187u8, 74u8, 198u8, @@ -2760,7 +2846,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 51u8, 27u8, 91u8, 156u8, 118u8, 99u8, 46u8, 219u8, 190u8, 147u8, 205u8, 23u8, 106u8, 169u8, 121u8, 218u8, 208u8, 235u8, @@ -2778,7 +2866,9 @@ pub mod api { } } #[doc = " Current epoch authorities."] pub async fn authorities (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , :: subxt :: BasicError >{ - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 39u8, 102u8, 251u8, 125u8, 230u8, 247u8, 174u8, 255u8, 2u8, 81u8, 86u8, 69u8, 182u8, 92u8, 191u8, 163u8, 66u8, 181u8, @@ -2804,7 +2894,9 @@ pub mod api { runtime_types::sp_consensus_slots::Slot, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 136u8, 244u8, 7u8, 142u8, 224u8, 33u8, 144u8, 186u8, 155u8, 144u8, 68u8, 81u8, 241u8, 57u8, 40u8, 207u8, 35u8, 39u8, @@ -2829,7 +2921,9 @@ pub mod api { runtime_types::sp_consensus_slots::Slot, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 233u8, 102u8, 77u8, 99u8, 103u8, 50u8, 151u8, 229u8, 46u8, 226u8, 181u8, 37u8, 117u8, 204u8, 234u8, 120u8, 116u8, 166u8, @@ -2863,7 +2957,9 @@ pub mod api { [::core::primitive::u8; 32usize], ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 191u8, 197u8, 25u8, 164u8, 104u8, 248u8, 247u8, 193u8, 244u8, 60u8, 181u8, 195u8, 248u8, 90u8, 41u8, 199u8, 82u8, 123u8, @@ -2890,10 +2986,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 98u8, 52u8, 22u8, 32u8, 76u8, 196u8, 89u8, 78u8, 119u8, 181u8, 17u8, 49u8, 220u8, 159u8, 195u8, 74u8, 33u8, 59u8, @@ -2915,7 +3010,9 @@ pub mod api { [::core::primitive::u8; 32usize], ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 185u8, 98u8, 45u8, 109u8, 253u8, 38u8, 238u8, 221u8, 240u8, 29u8, 38u8, 107u8, 118u8, 117u8, 131u8, 115u8, 21u8, 255u8, @@ -2933,7 +3030,9 @@ pub mod api { } } #[doc = " Next epoch authorities."] pub async fn next_authorities (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , :: subxt :: BasicError >{ - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 211u8, 175u8, 218u8, 0u8, 212u8, 114u8, 210u8, 137u8, 146u8, 135u8, 78u8, 133u8, 85u8, 253u8, 140u8, 242u8, 101u8, 155u8, @@ -2964,7 +3063,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 128u8, 45u8, 87u8, 58u8, 174u8, 152u8, 241u8, 156u8, 56u8, 192u8, 19u8, 45u8, 75u8, 160u8, 35u8, 253u8, 145u8, 11u8, @@ -2992,7 +3093,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 12u8, 167u8, 30u8, 96u8, 161u8, 63u8, 210u8, 63u8, 91u8, 199u8, 188u8, 78u8, 254u8, 255u8, 253u8, 202u8, 203u8, 26u8, @@ -3017,7 +3120,9 @@ pub mod api { ::subxt::KeyIter<'a, T, UnderConstruction<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 12u8, 167u8, 30u8, 96u8, 161u8, 63u8, 210u8, 63u8, 91u8, 199u8, 188u8, 78u8, 254u8, 255u8, 253u8, 202u8, 203u8, 26u8, @@ -3041,7 +3146,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 48u8, 206u8, 111u8, 118u8, 149u8, 175u8, 148u8, 53u8, 233u8, 82u8, 220u8, 57u8, 22u8, 164u8, 116u8, 228u8, 134u8, 237u8, @@ -3066,10 +3173,9 @@ pub mod api { ::core::option::Option<[::core::primitive::u8; 32usize]>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 66u8, 235u8, 74u8, 252u8, 222u8, 135u8, 19u8, 28u8, 74u8, 191u8, 170u8, 197u8, 207u8, 127u8, 77u8, 121u8, 138u8, 138u8, @@ -3098,7 +3204,9 @@ pub mod api { (::core::primitive::u32, ::core::primitive::u32), ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 196u8, 39u8, 241u8, 20u8, 150u8, 180u8, 136u8, 4u8, 195u8, 205u8, 218u8, 10u8, 130u8, 131u8, 168u8, 243u8, 207u8, 249u8, @@ -3125,7 +3233,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 229u8, 230u8, 224u8, 89u8, 49u8, 213u8, 198u8, 236u8, 144u8, 56u8, 193u8, 234u8, 62u8, 242u8, 191u8, 199u8, 105u8, 131u8, @@ -3153,7 +3263,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 169u8, 189u8, 214u8, 159u8, 181u8, 232u8, 243u8, 4u8, 113u8, 24u8, 221u8, 229u8, 27u8, 35u8, 3u8, 121u8, 136u8, 88u8, @@ -3178,7 +3290,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 239u8, 125u8, 203u8, 223u8, 161u8, 107u8, 232u8, 54u8, 158u8, 100u8, 244u8, 140u8, 119u8, 58u8, 253u8, 245u8, 73u8, 236u8, @@ -3210,18 +3324,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Babe", "EpochDuration")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Babe", "EpochDuration")? == [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, - 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, - 65u8, 18u8, 191u8, 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, - 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, + 40u8, 54u8, 255u8, 20u8, 89u8, 2u8, 38u8, 235u8, 70u8, 145u8, + 128u8, 227u8, 177u8, 3u8, 153u8, 91u8, 102u8, 159u8, 160u8, + 139u8, 88u8, 111u8, 116u8, 90u8, 139u8, 12u8, 31u8, 236u8, + 11u8, 113u8, 213u8, 254u8, ] { - let pallet = self.client.metadata().pallet("Babe")?; + let pallet = metadata.pallet("Babe")?; let constant = pallet.constant("EpochDuration")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -3239,18 +3352,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Babe", "ExpectedBlockTime")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Babe", "ExpectedBlockTime")? == [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, - 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, - 65u8, 18u8, 191u8, 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, - 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, + 249u8, 170u8, 37u8, 7u8, 132u8, 115u8, 106u8, 71u8, 116u8, + 166u8, 78u8, 251u8, 242u8, 146u8, 99u8, 207u8, 204u8, 225u8, + 157u8, 57u8, 19u8, 17u8, 202u8, 231u8, 50u8, 67u8, 17u8, + 205u8, 238u8, 80u8, 154u8, 125u8, ] { - let pallet = self.client.metadata().pallet("Babe")?; + let pallet = metadata.pallet("Babe")?; let constant = pallet.constant("ExpectedBlockTime")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -3264,18 +3376,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Babe", "MaxAuthorities")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Babe", "MaxAuthorities")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 248u8, 195u8, 131u8, 166u8, 10u8, 50u8, 71u8, 223u8, 41u8, + 49u8, 43u8, 99u8, 251u8, 113u8, 75u8, 193u8, 159u8, 15u8, + 77u8, 217u8, 147u8, 205u8, 165u8, 50u8, 6u8, 166u8, 77u8, + 189u8, 102u8, 22u8, 201u8, 19u8, ] { - let pallet = self.client.metadata().pallet("Babe")?; + let pallet = metadata.pallet("Babe")?; let constant = pallet.constant("MaxAuthorities")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -3298,7 +3409,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Set { #[codec(compact)] pub now: ::core::primitive::u64, @@ -3352,7 +3463,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 191u8, 73u8, 102u8, 150u8, 65u8, 157u8, 172u8, 194u8, 7u8, 72u8, 1u8, 35u8, 54u8, 99u8, 245u8, 139u8, 40u8, 136u8, @@ -3401,7 +3514,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 148u8, 53u8, 50u8, 54u8, 13u8, 161u8, 57u8, 150u8, 16u8, 83u8, 144u8, 221u8, 59u8, 75u8, 158u8, 130u8, 39u8, 123u8, @@ -3424,7 +3539,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 70u8, 13u8, 92u8, 186u8, 80u8, 151u8, 167u8, 90u8, 158u8, 232u8, 175u8, 13u8, 103u8, 135u8, 2u8, 78u8, 16u8, 6u8, 39u8, @@ -3460,18 +3577,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Timestamp", "MinimumPeriod")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Timestamp", "MinimumPeriod")? == [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, - 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, - 65u8, 18u8, 191u8, 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, - 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, + 141u8, 242u8, 40u8, 24u8, 83u8, 43u8, 33u8, 194u8, 156u8, + 149u8, 219u8, 61u8, 10u8, 123u8, 120u8, 247u8, 228u8, 22u8, + 25u8, 24u8, 214u8, 188u8, 54u8, 135u8, 240u8, 162u8, 41u8, + 216u8, 3u8, 58u8, 238u8, 39u8, ] { - let pallet = self.client.metadata().pallet("Timestamp")?; + let pallet = metadata.pallet("Timestamp")?; let constant = pallet.constant("MinimumPeriod")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -3495,10 +3611,10 @@ pub mod api { }; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct Claim { pub index: ::core::primitive::u32, @@ -3507,7 +3623,7 @@ pub mod api { const PALLET: &'static str = "Indices"; const FUNCTION: &'static str = "claim"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Transfer { pub new: ::subxt::sp_core::crypto::AccountId32, pub index: ::core::primitive::u32, @@ -3517,10 +3633,10 @@ pub mod api { const FUNCTION: &'static str = "transfer"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct Free { pub index: ::core::primitive::u32, @@ -3529,7 +3645,7 @@ pub mod api { const PALLET: &'static str = "Indices"; const FUNCTION: &'static str = "free"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceTransfer { pub new: ::subxt::sp_core::crypto::AccountId32, pub index: ::core::primitive::u32, @@ -3540,10 +3656,10 @@ pub mod api { const FUNCTION: &'static str = "force_transfer"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct Freeze { pub index: ::core::primitive::u32, @@ -3599,7 +3715,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 27u8, 4u8, 108u8, 55u8, 23u8, 109u8, 175u8, 25u8, 201u8, 230u8, 228u8, 51u8, 164u8, 15u8, 79u8, 10u8, 219u8, 182u8, @@ -3648,7 +3766,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 124u8, 83u8, 33u8, 230u8, 23u8, 70u8, 83u8, 59u8, 76u8, 100u8, 219u8, 100u8, 165u8, 163u8, 102u8, 193u8, 11u8, 22u8, @@ -3694,7 +3814,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 153u8, 143u8, 162u8, 33u8, 229u8, 3u8, 159u8, 153u8, 111u8, 100u8, 160u8, 250u8, 227u8, 24u8, 157u8, 226u8, 173u8, 39u8, @@ -3745,7 +3867,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 181u8, 143u8, 90u8, 135u8, 132u8, 11u8, 145u8, 85u8, 4u8, 211u8, 56u8, 110u8, 213u8, 153u8, 224u8, 106u8, 198u8, 250u8, @@ -3791,7 +3915,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 204u8, 127u8, 214u8, 137u8, 138u8, 28u8, 171u8, 169u8, 184u8, 164u8, 235u8, 114u8, 132u8, 176u8, 14u8, 207u8, 72u8, 39u8, @@ -3810,7 +3936,7 @@ pub mod api { pub type Event = runtime_types::pallet_indices::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A account index was assigned."] pub struct IndexAssigned { pub who: ::subxt::sp_core::crypto::AccountId32, @@ -3821,10 +3947,10 @@ pub mod api { const EVENT: &'static str = "IndexAssigned"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "A account index has been freed up (unassigned)."] pub struct IndexFreed { @@ -3834,7 +3960,7 @@ pub mod api { const PALLET: &'static str = "Indices"; const EVENT: &'static str = "IndexFreed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A account index has been frozen to its current account ID."] pub struct IndexFrozen { pub index: ::core::primitive::u32, @@ -3883,7 +4009,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 105u8, 208u8, 81u8, 30u8, 157u8, 108u8, 22u8, 122u8, 152u8, 220u8, 40u8, 97u8, 255u8, 166u8, 222u8, 11u8, 81u8, 245u8, @@ -3905,7 +4033,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Accounts<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 105u8, 208u8, 81u8, 30u8, 157u8, 108u8, 22u8, 122u8, 152u8, 220u8, 40u8, 97u8, 255u8, 166u8, 222u8, 11u8, 81u8, 245u8, @@ -3934,15 +4064,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self.client.metadata().constant_hash("Indices", "Deposit")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Indices", "Deposit")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 249u8, 18u8, 129u8, 140u8, 50u8, 11u8, 128u8, 63u8, 198u8, + 178u8, 202u8, 62u8, 51u8, 99u8, 138u8, 112u8, 96u8, 138u8, + 30u8, 159u8, 53u8, 65u8, 250u8, 156u8, 199u8, 99u8, 129u8, + 80u8, 116u8, 156u8, 82u8, 42u8, ] { - let pallet = self.client.metadata().pallet("Indices")?; + let pallet = metadata.pallet("Indices")?; let constant = pallet.constant("Deposit")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -3965,7 +4097,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Transfer { pub dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -3978,7 +4110,7 @@ pub mod api { const PALLET: &'static str = "Balances"; const FUNCTION: &'static str = "transfer"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetBalance { pub who: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -3993,7 +4125,7 @@ pub mod api { const PALLET: &'static str = "Balances"; const FUNCTION: &'static str = "set_balance"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceTransfer { pub source: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -4010,7 +4142,7 @@ pub mod api { const PALLET: &'static str = "Balances"; const FUNCTION: &'static str = "force_transfer"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct TransferKeepAlive { pub dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -4023,7 +4155,7 @@ pub mod api { const PALLET: &'static str = "Balances"; const FUNCTION: &'static str = "transfer_keep_alive"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct TransferAll { pub dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -4035,7 +4167,7 @@ pub mod api { const PALLET: &'static str = "Balances"; const FUNCTION: &'static str = "transfer_all"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceUnreserve { pub who: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -4105,7 +4237,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 250u8, 8u8, 164u8, 186u8, 80u8, 220u8, 134u8, 247u8, 142u8, 121u8, 34u8, 22u8, 169u8, 39u8, 6u8, 93u8, 72u8, 47u8, 44u8, @@ -4146,7 +4280,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 232u8, 6u8, 27u8, 131u8, 163u8, 72u8, 148u8, 197u8, 14u8, 239u8, 94u8, 1u8, 32u8, 94u8, 17u8, 14u8, 123u8, 82u8, 39u8, @@ -4192,7 +4328,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 120u8, 66u8, 111u8, 84u8, 176u8, 241u8, 214u8, 118u8, 219u8, 75u8, 127u8, 222u8, 45u8, 33u8, 204u8, 147u8, 126u8, 214u8, @@ -4234,7 +4372,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 111u8, 233u8, 125u8, 71u8, 223u8, 141u8, 112u8, 94u8, 157u8, 11u8, 88u8, 7u8, 239u8, 145u8, 247u8, 183u8, 245u8, 87u8, @@ -4283,7 +4423,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 240u8, 165u8, 185u8, 144u8, 24u8, 149u8, 15u8, 46u8, 60u8, 147u8, 19u8, 187u8, 96u8, 24u8, 150u8, 53u8, 151u8, 232u8, @@ -4318,7 +4460,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 106u8, 42u8, 48u8, 136u8, 41u8, 155u8, 214u8, 112u8, 99u8, 122u8, 202u8, 250u8, 95u8, 60u8, 182u8, 13u8, 25u8, 149u8, @@ -4337,7 +4481,7 @@ pub mod api { pub type Event = runtime_types::pallet_balances::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An account was created with some free balance."] pub struct Endowed { pub account: ::subxt::sp_core::crypto::AccountId32, @@ -4347,7 +4491,7 @@ pub mod api { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Endowed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] #[doc = "resulting in an outright loss."] pub struct DustLost { @@ -4358,7 +4502,7 @@ pub mod api { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "DustLost"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Transfer succeeded."] pub struct Transfer { pub from: ::subxt::sp_core::crypto::AccountId32, @@ -4369,7 +4513,7 @@ pub mod api { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Transfer"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A balance was set by root."] pub struct BalanceSet { pub who: ::subxt::sp_core::crypto::AccountId32, @@ -4380,7 +4524,7 @@ pub mod api { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "BalanceSet"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Some balance was reserved (moved from free to reserved)."] pub struct Reserved { pub who: ::subxt::sp_core::crypto::AccountId32, @@ -4390,7 +4534,7 @@ pub mod api { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Reserved"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Some balance was unreserved (moved from reserved to free)."] pub struct Unreserved { pub who: ::subxt::sp_core::crypto::AccountId32, @@ -4400,7 +4544,7 @@ pub mod api { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Unreserved"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Some balance was moved from the reserve of the first account to the second account."] #[doc = "Final argument indicates the destination balance type."] pub struct ReserveRepatriated { @@ -4414,7 +4558,7 @@ pub mod api { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "ReserveRepatriated"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Some amount was deposited (e.g. for transaction fees)."] pub struct Deposit { pub who: ::subxt::sp_core::crypto::AccountId32, @@ -4424,7 +4568,7 @@ pub mod api { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Deposit"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] pub struct Withdraw { pub who: ::subxt::sp_core::crypto::AccountId32, @@ -4434,7 +4578,7 @@ pub mod api { const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Withdraw"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] pub struct Slashed { pub who: ::subxt::sp_core::crypto::AccountId32, @@ -4521,7 +4665,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 1u8, 206u8, 252u8, 237u8, 6u8, 30u8, 20u8, 232u8, 164u8, 115u8, 51u8, 156u8, 156u8, 206u8, 241u8, 187u8, 44u8, 84u8, @@ -4570,7 +4716,9 @@ pub mod api { runtime_types::pallet_balances::AccountData<::core::primitive::u128>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 129u8, 169u8, 171u8, 206u8, 229u8, 178u8, 69u8, 118u8, 199u8, 64u8, 254u8, 67u8, 16u8, 154u8, 160u8, 197u8, 177u8, 161u8, @@ -4618,7 +4766,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Account<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 129u8, 169u8, 171u8, 206u8, 229u8, 178u8, 69u8, 118u8, 199u8, 64u8, 254u8, 67u8, 16u8, 154u8, 160u8, 197u8, 177u8, 161u8, @@ -4633,7 +4783,9 @@ pub mod api { } #[doc = " Any liquidity locks on some account balances."] #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub async fn locks (& self , _0 : & :: subxt :: sp_core :: crypto :: AccountId32 , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , :: subxt :: BasicError >{ - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 31u8, 76u8, 213u8, 60u8, 86u8, 11u8, 155u8, 151u8, 33u8, 212u8, 74u8, 89u8, 174u8, 74u8, 195u8, 107u8, 29u8, 163u8, @@ -4659,7 +4811,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Locks<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 31u8, 76u8, 213u8, 60u8, 86u8, 11u8, 155u8, 151u8, 33u8, 212u8, 74u8, 89u8, 174u8, 74u8, 195u8, 107u8, 29u8, 163u8, @@ -4686,7 +4840,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 103u8, 6u8, 69u8, 151u8, 81u8, 40u8, 146u8, 113u8, 56u8, 239u8, 104u8, 31u8, 168u8, 242u8, 141u8, 121u8, 213u8, 213u8, @@ -4711,7 +4867,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Reserves<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 103u8, 6u8, 69u8, 151u8, 81u8, 40u8, 146u8, 113u8, 56u8, 239u8, 104u8, 31u8, 168u8, 242u8, 141u8, 121u8, 213u8, 213u8, @@ -4734,7 +4892,9 @@ pub mod api { runtime_types::pallet_balances::Releases, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 135u8, 96u8, 28u8, 234u8, 124u8, 212u8, 56u8, 140u8, 40u8, 101u8, 235u8, 128u8, 136u8, 221u8, 182u8, 81u8, 17u8, 9u8, @@ -4767,18 +4927,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Balances", "ExistentialDeposit")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Balances", "ExistentialDeposit")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 100u8, 197u8, 144u8, 241u8, 166u8, 142u8, 204u8, 246u8, + 114u8, 229u8, 145u8, 5u8, 133u8, 180u8, 23u8, 117u8, 117u8, + 204u8, 228u8, 32u8, 70u8, 243u8, 110u8, 36u8, 218u8, 106u8, + 47u8, 136u8, 193u8, 46u8, 121u8, 242u8, ] { - let pallet = self.client.metadata().pallet("Balances")?; + let pallet = metadata.pallet("Balances")?; let constant = pallet.constant("ExistentialDeposit")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -4793,18 +4952,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Balances", "MaxLocks")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Balances", "MaxLocks")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 250u8, 58u8, 19u8, 15u8, 35u8, 113u8, 227u8, 89u8, 39u8, + 75u8, 21u8, 108u8, 202u8, 32u8, 163u8, 167u8, 207u8, 233u8, + 69u8, 151u8, 53u8, 164u8, 230u8, 16u8, 14u8, 22u8, 172u8, + 46u8, 36u8, 216u8, 29u8, 1u8, ] { - let pallet = self.client.metadata().pallet("Balances")?; + let pallet = metadata.pallet("Balances")?; let constant = pallet.constant("MaxLocks")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -4818,18 +4976,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Balances", "MaxReserves")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Balances", "MaxReserves")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 24u8, 30u8, 77u8, 89u8, 216u8, 114u8, 140u8, 11u8, 127u8, + 252u8, 130u8, 203u8, 4u8, 55u8, 62u8, 240u8, 65u8, 182u8, + 187u8, 189u8, 140u8, 6u8, 177u8, 216u8, 159u8, 108u8, 18u8, + 73u8, 95u8, 67u8, 62u8, 50u8, ] { - let pallet = self.client.metadata().pallet("Balances")?; + let pallet = metadata.pallet("Balances")?; let constant = pallet.constant("MaxReserves")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -4880,7 +5037,9 @@ pub mod api { runtime_types::sp_arithmetic::fixed_point::FixedU128, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 232u8, 48u8, 68u8, 202u8, 209u8, 29u8, 249u8, 71u8, 0u8, 84u8, 229u8, 250u8, 176u8, 203u8, 27u8, 26u8, 34u8, 55u8, @@ -4904,7 +5063,9 @@ pub mod api { runtime_types::pallet_transaction_payment::Releases, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 219u8, 243u8, 82u8, 176u8, 65u8, 5u8, 132u8, 114u8, 8u8, 82u8, 176u8, 200u8, 97u8, 150u8, 177u8, 164u8, 166u8, 11u8, @@ -4937,19 +5098,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata .constant_hash("TransactionPayment", "TransactionByteFee")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 11u8, 116u8, 163u8, 230u8, 115u8, 191u8, 171u8, 134u8, 67u8, + 204u8, 192u8, 56u8, 0u8, 127u8, 48u8, 184u8, 38u8, 207u8, + 167u8, 252u8, 43u8, 152u8, 15u8, 29u8, 171u8, 202u8, 103u8, + 163u8, 14u8, 13u8, 177u8, 134u8, ] { - let pallet = - self.client.metadata().pallet("TransactionPayment")?; + let pallet = metadata.pallet("TransactionPayment")?; let constant = pallet.constant("TransactionByteFee")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -4983,19 +5143,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u8, ::subxt::BasicError> { - if self - .client - .metadata() + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata .constant_hash("TransactionPayment", "OperationalFeeMultiplier")? == [ - 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, 179u8, 168u8, - 110u8, 28u8, 91u8, 221u8, 64u8, 4u8, 148u8, 201u8, 193u8, - 185u8, 66u8, 226u8, 114u8, 97u8, 79u8, 62u8, 212u8, 202u8, - 114u8, 237u8, 228u8, 183u8, 165u8, + 161u8, 232u8, 150u8, 43u8, 106u8, 83u8, 56u8, 248u8, 54u8, + 123u8, 244u8, 73u8, 5u8, 49u8, 245u8, 150u8, 70u8, 92u8, + 158u8, 207u8, 127u8, 115u8, 211u8, 21u8, 24u8, 136u8, 89u8, + 44u8, 151u8, 211u8, 235u8, 196u8, ] { - let pallet = - self.client.metadata().pallet("TransactionPayment")?; + let pallet = metadata.pallet("TransactionPayment")?; let constant = pallet.constant("OperationalFeeMultiplier")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -5015,19 +5174,17 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .constant_hash("TransactionPayment", "WeightToFee")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("TransactionPayment", "WeightToFee")? == [ - 99u8, 211u8, 10u8, 189u8, 123u8, 171u8, 119u8, 79u8, 112u8, - 33u8, 10u8, 47u8, 119u8, 55u8, 237u8, 32u8, 127u8, 21u8, - 117u8, 156u8, 153u8, 243u8, 128u8, 211u8, 243u8, 75u8, 15u8, - 181u8, 126u8, 73u8, 51u8, 47u8, + 194u8, 136u8, 54u8, 114u8, 5u8, 242u8, 3u8, 197u8, 151u8, + 113u8, 78u8, 143u8, 235u8, 147u8, 73u8, 236u8, 218u8, 115u8, + 53u8, 211u8, 62u8, 158u8, 185u8, 222u8, 129u8, 142u8, 100u8, + 191u8, 33u8, 240u8, 219u8, 34u8, ] { - let pallet = - self.client.metadata().pallet("TransactionPayment")?; + let pallet = metadata.pallet("TransactionPayment")?; let constant = pallet.constant("WeightToFee")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -5050,7 +5207,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetUncles { pub new_uncles: ::std::vec::Vec< runtime_types::sp_runtime::generic::header::Header< @@ -5098,7 +5255,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 5u8, 56u8, 71u8, 152u8, 103u8, 232u8, 101u8, 171u8, 200u8, 2u8, 177u8, 102u8, 0u8, 93u8, 210u8, 90u8, 56u8, 151u8, 5u8, @@ -5170,7 +5329,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 71u8, 135u8, 85u8, 172u8, 221u8, 165u8, 212u8, 2u8, 208u8, 50u8, 9u8, 92u8, 251u8, 25u8, 194u8, 123u8, 210u8, 4u8, @@ -5195,7 +5356,9 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 191u8, 57u8, 3u8, 242u8, 220u8, 123u8, 103u8, 215u8, 149u8, 120u8, 20u8, 139u8, 146u8, 234u8, 180u8, 105u8, 129u8, 128u8, @@ -5215,7 +5378,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 64u8, 3u8, 208u8, 187u8, 50u8, 45u8, 37u8, 88u8, 163u8, 226u8, 37u8, 126u8, 232u8, 107u8, 156u8, 187u8, 29u8, 15u8, @@ -5250,18 +5415,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Authorship", "UncleGenerations")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Authorship", "UncleGenerations")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 0u8, 72u8, 57u8, 175u8, 222u8, 143u8, 191u8, 33u8, 163u8, + 157u8, 202u8, 83u8, 186u8, 103u8, 162u8, 103u8, 227u8, 158u8, + 239u8, 212u8, 205u8, 193u8, 226u8, 138u8, 5u8, 220u8, 221u8, + 42u8, 7u8, 146u8, 173u8, 205u8, ] { - let pallet = self.client.metadata().pallet("Authorship")?; + let pallet = metadata.pallet("Authorship")?; let constant = pallet.constant("UncleGenerations")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -5284,7 +5448,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Bond { pub controller: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -5300,7 +5464,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "bond"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct BondExtra { #[codec(compact)] pub max_additional: ::core::primitive::u128, @@ -5309,7 +5473,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "bond_extra"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Unbond { #[codec(compact)] pub value: ::core::primitive::u128, @@ -5319,10 +5483,10 @@ pub mod api { const FUNCTION: &'static str = "unbond"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct WithdrawUnbonded { pub num_slashing_spans: ::core::primitive::u32, @@ -5331,7 +5495,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "withdraw_unbonded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Validate { pub prefs: runtime_types::pallet_staking::ValidatorPrefs, } @@ -5339,7 +5503,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "validate"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Nominate { pub targets: ::std::vec::Vec< ::subxt::sp_runtime::MultiAddress< @@ -5352,13 +5516,13 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "nominate"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Chill; impl ::subxt::Call for Chill { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "chill"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetPayee { pub payee: runtime_types::pallet_staking::RewardDestination< ::subxt::sp_core::crypto::AccountId32, @@ -5368,7 +5532,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "set_payee"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetController { pub controller: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -5379,7 +5543,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "set_controller"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetValidatorCount { #[codec(compact)] pub new: ::core::primitive::u32, @@ -5388,7 +5552,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "set_validator_count"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct IncreaseValidatorCount { #[codec(compact)] pub additional: ::core::primitive::u32, @@ -5397,7 +5561,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "increase_validator_count"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ScaleValidatorCount { pub factor: runtime_types::sp_arithmetic::per_things::Percent, } @@ -5405,19 +5569,19 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "scale_validator_count"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceNoEras; impl ::subxt::Call for ForceNoEras { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "force_no_eras"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceNewEra; impl ::subxt::Call for ForceNewEra { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "force_new_era"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetInvulnerables { pub invulnerables: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, } @@ -5425,7 +5589,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "set_invulnerables"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceUnstake { pub stash: ::subxt::sp_core::crypto::AccountId32, pub num_slashing_spans: ::core::primitive::u32, @@ -5434,13 +5598,13 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "force_unstake"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceNewEraAlways; impl ::subxt::Call for ForceNewEraAlways { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "force_new_era_always"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct CancelDeferredSlash { pub era: ::core::primitive::u32, pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, @@ -5449,7 +5613,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "cancel_deferred_slash"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct PayoutStakers { pub validator_stash: ::subxt::sp_core::crypto::AccountId32, pub era: ::core::primitive::u32, @@ -5458,7 +5622,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "payout_stakers"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Rebond { #[codec(compact)] pub value: ::core::primitive::u128, @@ -5467,7 +5631,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "rebond"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetHistoryDepth { #[codec(compact)] pub new_history_depth: ::core::primitive::u32, @@ -5478,7 +5642,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "set_history_depth"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ReapStash { pub stash: ::subxt::sp_core::crypto::AccountId32, pub num_slashing_spans: ::core::primitive::u32, @@ -5487,7 +5651,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "reap_stash"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Kick { pub who: ::std::vec::Vec< ::subxt::sp_runtime::MultiAddress< @@ -5500,7 +5664,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "kick"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetStakingConfigs { pub min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< @@ -5531,7 +5695,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "set_staking_configs"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ChillOther { pub controller: ::subxt::sp_core::crypto::AccountId32, } @@ -5539,7 +5703,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "chill_other"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceApplyMinCommission { pub validator_stash: ::subxt::sp_core::crypto::AccountId32, } @@ -5600,7 +5764,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 41u8, 8u8, 237u8, 132u8, 236u8, 61u8, 222u8, 146u8, 255u8, 136u8, 174u8, 104u8, 120u8, 64u8, 198u8, 147u8, 80u8, 237u8, @@ -5647,7 +5813,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 170u8, 38u8, 37u8, 71u8, 243u8, 41u8, 24u8, 59u8, 17u8, 229u8, 61u8, 20u8, 130u8, 167u8, 1u8, 1u8, 158u8, 180u8, @@ -5694,7 +5862,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 85u8, 188u8, 141u8, 62u8, 242u8, 15u8, 6u8, 20u8, 96u8, 220u8, 201u8, 163u8, 29u8, 136u8, 24u8, 4u8, 143u8, 13u8, @@ -5737,7 +5907,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 252u8, 47u8, 185u8, 86u8, 179u8, 203u8, 20u8, 5u8, 88u8, 252u8, 212u8, 173u8, 20u8, 202u8, 206u8, 56u8, 10u8, 186u8, @@ -5770,7 +5942,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 138u8, 13u8, 146u8, 216u8, 4u8, 27u8, 20u8, 159u8, 148u8, 25u8, 169u8, 229u8, 145u8, 2u8, 251u8, 58u8, 13u8, 128u8, @@ -5814,7 +5988,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 199u8, 181u8, 123u8, 171u8, 186u8, 9u8, 23u8, 220u8, 147u8, 7u8, 252u8, 26u8, 25u8, 195u8, 126u8, 175u8, 181u8, 118u8, @@ -5852,7 +6028,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 94u8, 20u8, 196u8, 31u8, 220u8, 125u8, 115u8, 167u8, 140u8, 3u8, 20u8, 132u8, 81u8, 120u8, 215u8, 166u8, 230u8, 56u8, @@ -5898,7 +6076,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 185u8, 62u8, 154u8, 65u8, 135u8, 104u8, 38u8, 171u8, 237u8, 16u8, 169u8, 38u8, 53u8, 161u8, 170u8, 232u8, 249u8, 185u8, @@ -5945,7 +6125,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 239u8, 105u8, 43u8, 234u8, 201u8, 103u8, 93u8, 252u8, 26u8, 52u8, 27u8, 23u8, 219u8, 153u8, 195u8, 150u8, 244u8, 13u8, @@ -5981,7 +6163,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 181u8, 82u8, 21u8, 239u8, 81u8, 194u8, 166u8, 66u8, 55u8, 156u8, 68u8, 22u8, 76u8, 251u8, 241u8, 113u8, 168u8, 8u8, @@ -6016,10 +6200,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 219u8, 143u8, 69u8, 205u8, 182u8, 155u8, 101u8, 39u8, 59u8, 214u8, 81u8, 47u8, 247u8, 54u8, 106u8, 92u8, 183u8, 42u8, @@ -6054,7 +6237,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 170u8, 156u8, 101u8, 109u8, 117u8, 199u8, 38u8, 157u8, 132u8, 210u8, 54u8, 66u8, 251u8, 10u8, 123u8, 120u8, 237u8, 31u8, @@ -6096,7 +6281,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 16u8, 81u8, 207u8, 168u8, 23u8, 236u8, 11u8, 75u8, 141u8, 107u8, 92u8, 2u8, 53u8, 111u8, 252u8, 116u8, 91u8, 120u8, @@ -6139,7 +6326,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 230u8, 242u8, 169u8, 196u8, 78u8, 145u8, 24u8, 191u8, 113u8, 68u8, 5u8, 138u8, 48u8, 51u8, 109u8, 126u8, 73u8, 136u8, @@ -6170,7 +6359,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 0u8, 119u8, 27u8, 243u8, 238u8, 65u8, 133u8, 89u8, 210u8, 202u8, 154u8, 243u8, 168u8, 158u8, 9u8, 147u8, 146u8, 215u8, @@ -6202,7 +6393,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 254u8, 115u8, 250u8, 15u8, 235u8, 119u8, 2u8, 131u8, 237u8, 144u8, 247u8, 66u8, 150u8, 92u8, 12u8, 112u8, 137u8, 195u8, @@ -6241,7 +6434,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 179u8, 118u8, 189u8, 54u8, 248u8, 141u8, 207u8, 142u8, 80u8, 37u8, 241u8, 185u8, 138u8, 254u8, 117u8, 147u8, 225u8, 118u8, @@ -6275,7 +6470,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 217u8, 175u8, 246u8, 108u8, 78u8, 134u8, 98u8, 49u8, 178u8, 209u8, 98u8, 178u8, 52u8, 242u8, 173u8, 135u8, 171u8, 70u8, @@ -6325,7 +6522,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 235u8, 65u8, 65u8, 249u8, 162u8, 235u8, 127u8, 48u8, 216u8, 51u8, 252u8, 111u8, 186u8, 191u8, 174u8, 245u8, 144u8, 77u8, @@ -6365,7 +6564,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 138u8, 156u8, 164u8, 170u8, 178u8, 236u8, 221u8, 242u8, 157u8, 176u8, 173u8, 145u8, 254u8, 94u8, 158u8, 27u8, 138u8, @@ -6416,7 +6617,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 128u8, 149u8, 139u8, 192u8, 213u8, 239u8, 248u8, 215u8, 57u8, 145u8, 177u8, 225u8, 43u8, 214u8, 228u8, 14u8, 213u8, 181u8, @@ -6460,7 +6663,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 84u8, 192u8, 207u8, 193u8, 133u8, 53u8, 93u8, 148u8, 153u8, 112u8, 54u8, 145u8, 68u8, 195u8, 42u8, 158u8, 17u8, 230u8, @@ -6507,7 +6712,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 145u8, 201u8, 168u8, 147u8, 25u8, 39u8, 62u8, 48u8, 236u8, 44u8, 45u8, 233u8, 178u8, 196u8, 117u8, 117u8, 74u8, 193u8, @@ -6557,7 +6764,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 249u8, 192u8, 107u8, 126u8, 200u8, 50u8, 63u8, 120u8, 116u8, 53u8, 183u8, 80u8, 134u8, 135u8, 49u8, 112u8, 232u8, 140u8, @@ -6618,7 +6827,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 219u8, 114u8, 146u8, 43u8, 175u8, 216u8, 70u8, 148u8, 137u8, 192u8, 77u8, 247u8, 134u8, 80u8, 188u8, 100u8, 79u8, 141u8, @@ -6649,10 +6860,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 8u8, 57u8, 61u8, 141u8, 175u8, 100u8, 174u8, 161u8, 236u8, 2u8, 133u8, 169u8, 249u8, 168u8, 236u8, 188u8, 168u8, 221u8, @@ -6671,7 +6881,7 @@ pub mod api { pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] #[doc = "the remainder from the maximum amount of reward."] #[doc = "\\[era_index, validator_payout, remainder\\]"] @@ -6684,7 +6894,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "EraPaid"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The nominator has been rewarded by this amount. \\[stash, amount\\]"] pub struct Rewarded( pub ::subxt::sp_core::crypto::AccountId32, @@ -6694,7 +6904,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Rewarded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "One validator (and its nominators) has been slashed by the given amount."] #[doc = "\\[validator, amount\\]"] pub struct Slashed( @@ -6706,10 +6916,10 @@ pub mod api { const EVENT: &'static str = "Slashed"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "An old slashing report from a prior era was discarded because it could"] #[doc = "not be processed. \\[session_index\\]"] @@ -6718,14 +6928,14 @@ pub mod api { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "OldSlashingReportDiscarded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A new set of stakers was elected."] pub struct StakersElected; impl ::subxt::Event for StakersElected { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "StakersElected"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An account has bonded this amount. \\[stash, amount\\]"] #[doc = ""] #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] @@ -6738,7 +6948,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Bonded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An account has unbonded this amount. \\[stash, amount\\]"] pub struct Unbonded( pub ::subxt::sp_core::crypto::AccountId32, @@ -6748,7 +6958,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Unbonded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] #[doc = "from the unlocking queue. \\[stash, amount\\]"] pub struct Withdrawn( @@ -6759,7 +6969,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Withdrawn"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A nominator has been kicked from a validator. \\[nominator, stash\\]"] pub struct Kicked( pub ::subxt::sp_core::crypto::AccountId32, @@ -6769,14 +6979,14 @@ pub mod api { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Kicked"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The election failed. No new era is planned."] pub struct StakingElectionFailed; impl ::subxt::Event for StakingElectionFailed { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "StakingElectionFailed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An account has stopped participating as either a validator or nominator."] #[doc = "\\[stash\\]"] pub struct Chilled(pub ::subxt::sp_core::crypto::AccountId32); @@ -6784,7 +6994,7 @@ pub mod api { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Chilled"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The stakers' rewards are getting paid. \\[era_index, validator_stash\\]"] pub struct PayoutStarted( pub ::core::primitive::u32, @@ -7291,7 +7501,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 41u8, 54u8, 118u8, 245u8, 75u8, 136u8, 220u8, 25u8, 55u8, 255u8, 149u8, 177u8, 49u8, 155u8, 167u8, 188u8, 170u8, 29u8, @@ -7314,7 +7526,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 245u8, 75u8, 214u8, 110u8, 66u8, 164u8, 86u8, 206u8, 69u8, 89u8, 12u8, 111u8, 117u8, 16u8, 228u8, 184u8, 207u8, 6u8, @@ -7337,10 +7551,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 82u8, 95u8, 128u8, 55u8, 136u8, 134u8, 71u8, 117u8, 135u8, 76u8, 44u8, 46u8, 174u8, 34u8, 170u8, 228u8, 175u8, 1u8, @@ -7367,7 +7580,9 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 103u8, 93u8, 29u8, 166u8, 244u8, 19u8, 78u8, 182u8, 235u8, 37u8, 199u8, 127u8, 211u8, 124u8, 168u8, 145u8, 111u8, 251u8, @@ -7393,7 +7608,9 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 9u8, 214u8, 190u8, 93u8, 116u8, 143u8, 174u8, 103u8, 102u8, 25u8, 123u8, 201u8, 12u8, 44u8, 188u8, 241u8, 74u8, 33u8, @@ -7415,7 +7632,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Bonded<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 9u8, 214u8, 190u8, 93u8, 116u8, 143u8, 174u8, 103u8, 102u8, 25u8, 123u8, 201u8, 12u8, 44u8, 188u8, 241u8, 74u8, 33u8, @@ -7434,7 +7653,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 187u8, 66u8, 149u8, 226u8, 72u8, 219u8, 57u8, 246u8, 102u8, 47u8, 71u8, 12u8, 219u8, 204u8, 127u8, 223u8, 58u8, 134u8, @@ -7457,7 +7678,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 48u8, 105u8, 85u8, 178u8, 142u8, 208u8, 208u8, 19u8, 236u8, 130u8, 129u8, 169u8, 35u8, 245u8, 66u8, 182u8, 92u8, 20u8, @@ -7484,7 +7707,9 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 198u8, 29u8, 53u8, 56u8, 181u8, 170u8, 164u8, 240u8, 27u8, 171u8, 69u8, 57u8, 151u8, 40u8, 23u8, 166u8, 157u8, 68u8, @@ -7515,7 +7740,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 91u8, 46u8, 130u8, 228u8, 126u8, 95u8, 46u8, 57u8, 222u8, 98u8, 250u8, 145u8, 83u8, 135u8, 240u8, 153u8, 57u8, 21u8, @@ -7537,7 +7764,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Ledger<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 91u8, 46u8, 130u8, 228u8, 126u8, 95u8, 46u8, 57u8, 222u8, 98u8, 250u8, 145u8, 83u8, 135u8, 240u8, 153u8, 57u8, 21u8, @@ -7561,7 +7790,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 108u8, 35u8, 28u8, 189u8, 146u8, 103u8, 200u8, 73u8, 220u8, 230u8, 193u8, 7u8, 66u8, 147u8, 55u8, 34u8, 1u8, 21u8, 255u8, @@ -7586,7 +7817,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Payee<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 108u8, 35u8, 28u8, 189u8, 146u8, 103u8, 200u8, 73u8, 220u8, 230u8, 193u8, 7u8, 66u8, 147u8, 55u8, 34u8, 1u8, 21u8, 255u8, @@ -7608,7 +7841,9 @@ pub mod api { runtime_types::pallet_staking::ValidatorPrefs, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 45u8, 57u8, 106u8, 30u8, 123u8, 251u8, 148u8, 37u8, 52u8, 129u8, 103u8, 88u8, 54u8, 216u8, 174u8, 181u8, 51u8, 181u8, @@ -7633,7 +7868,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Validators<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 45u8, 57u8, 106u8, 30u8, 123u8, 251u8, 148u8, 37u8, 52u8, 129u8, 103u8, 88u8, 54u8, 216u8, 174u8, 181u8, 51u8, 181u8, @@ -7652,10 +7889,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 139u8, 25u8, 223u8, 6u8, 160u8, 239u8, 212u8, 85u8, 36u8, 185u8, 69u8, 63u8, 21u8, 156u8, 144u8, 241u8, 112u8, 85u8, @@ -7682,10 +7918,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 250u8, 62u8, 16u8, 68u8, 192u8, 216u8, 236u8, 211u8, 217u8, 9u8, 213u8, 49u8, 41u8, 37u8, 58u8, 62u8, 131u8, 112u8, 64u8, @@ -7723,7 +7958,9 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 176u8, 26u8, 169u8, 68u8, 99u8, 216u8, 95u8, 198u8, 5u8, 123u8, 21u8, 83u8, 220u8, 140u8, 122u8, 111u8, 22u8, 133u8, @@ -7760,7 +7997,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Nominators<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 176u8, 26u8, 169u8, 68u8, 99u8, 216u8, 95u8, 198u8, 5u8, 123u8, 21u8, 83u8, 220u8, 140u8, 122u8, 111u8, 22u8, 133u8, @@ -7779,10 +8018,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 31u8, 94u8, 130u8, 138u8, 75u8, 8u8, 38u8, 162u8, 181u8, 5u8, 125u8, 116u8, 9u8, 51u8, 22u8, 234u8, 40u8, 117u8, 215u8, @@ -7809,10 +8047,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 180u8, 190u8, 180u8, 66u8, 235u8, 173u8, 76u8, 160u8, 197u8, 92u8, 96u8, 165u8, 220u8, 188u8, 32u8, 119u8, 3u8, 73u8, @@ -7837,7 +8074,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 105u8, 150u8, 49u8, 122u8, 4u8, 78u8, 8u8, 121u8, 34u8, 136u8, 157u8, 227u8, 59u8, 139u8, 7u8, 253u8, 7u8, 10u8, @@ -7862,7 +8101,9 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 230u8, 144u8, 49u8, 201u8, 36u8, 253u8, 97u8, 135u8, 57u8, 169u8, 157u8, 138u8, 21u8, 35u8, 14u8, 2u8, 151u8, 214u8, @@ -7888,10 +8129,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 92u8, 157u8, 168u8, 144u8, 132u8, 3u8, 212u8, 80u8, 230u8, 229u8, 251u8, 218u8, 97u8, 55u8, 79u8, 100u8, 163u8, 91u8, @@ -7916,10 +8156,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasStartSessionIndex<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 92u8, 157u8, 168u8, 144u8, 132u8, 3u8, 212u8, 80u8, 230u8, 229u8, 251u8, 218u8, 97u8, 55u8, 79u8, 100u8, 163u8, 91u8, @@ -7950,7 +8189,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 176u8, 250u8, 76u8, 183u8, 219u8, 180u8, 156u8, 138u8, 111u8, 153u8, 154u8, 90u8, 14u8, 194u8, 56u8, 133u8, 197u8, 199u8, @@ -7980,7 +8221,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasStakers<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 176u8, 250u8, 76u8, 183u8, 219u8, 180u8, 156u8, 138u8, 111u8, 153u8, 154u8, 90u8, 14u8, 194u8, 56u8, 133u8, 197u8, 199u8, @@ -8016,10 +8259,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 91u8, 87u8, 165u8, 255u8, 253u8, 169u8, 48u8, 28u8, 254u8, 124u8, 93u8, 108u8, 252u8, 15u8, 141u8, 139u8, 152u8, 118u8, @@ -8054,10 +8296,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasStakersClipped<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 91u8, 87u8, 165u8, 255u8, 253u8, 169u8, 48u8, 28u8, 254u8, 124u8, 93u8, 108u8, 252u8, 15u8, 141u8, 139u8, 152u8, 118u8, @@ -8084,10 +8325,9 @@ pub mod api { runtime_types::pallet_staking::ValidatorPrefs, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 8u8, 55u8, 222u8, 216u8, 126u8, 126u8, 131u8, 18u8, 145u8, 58u8, 91u8, 123u8, 92u8, 19u8, 178u8, 200u8, 133u8, 140u8, @@ -8116,10 +8356,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasValidatorPrefs<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 8u8, 55u8, 222u8, 216u8, 126u8, 126u8, 131u8, 18u8, 145u8, 58u8, 91u8, 123u8, 92u8, 19u8, 178u8, 200u8, 133u8, 140u8, @@ -8143,10 +8382,9 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 87u8, 80u8, 156u8, 123u8, 107u8, 77u8, 203u8, 37u8, 231u8, 84u8, 124u8, 155u8, 227u8, 212u8, 212u8, 179u8, 84u8, 161u8, @@ -8170,10 +8408,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasValidatorReward<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 87u8, 80u8, 156u8, 123u8, 107u8, 77u8, 203u8, 37u8, 231u8, 84u8, 124u8, 155u8, 227u8, 212u8, 212u8, 179u8, 84u8, 161u8, @@ -8198,7 +8435,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 76u8, 221u8, 158u8, 62u8, 3u8, 254u8, 139u8, 170u8, 103u8, 218u8, 191u8, 103u8, 57u8, 212u8, 208u8, 7u8, 105u8, 52u8, @@ -8224,7 +8463,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasRewardPoints<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 76u8, 221u8, 158u8, 62u8, 3u8, 254u8, 139u8, 170u8, 103u8, 218u8, 191u8, 103u8, 57u8, 212u8, 208u8, 7u8, 105u8, 52u8, @@ -8245,7 +8486,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 224u8, 240u8, 168u8, 69u8, 148u8, 140u8, 249u8, 240u8, 4u8, 46u8, 77u8, 11u8, 224u8, 65u8, 26u8, 239u8, 1u8, 110u8, 53u8, @@ -8271,7 +8514,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasTotalStake<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 224u8, 240u8, 168u8, 69u8, 148u8, 140u8, 249u8, 240u8, 4u8, 46u8, 77u8, 11u8, 224u8, 65u8, 26u8, 239u8, 1u8, 110u8, 53u8, @@ -8292,7 +8537,9 @@ pub mod api { runtime_types::pallet_staking::Forcing, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 221u8, 41u8, 71u8, 21u8, 28u8, 193u8, 65u8, 97u8, 103u8, 37u8, 145u8, 146u8, 183u8, 194u8, 57u8, 131u8, 214u8, 136u8, @@ -8319,10 +8566,9 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 92u8, 55u8, 255u8, 233u8, 174u8, 125u8, 32u8, 21u8, 78u8, 237u8, 123u8, 241u8, 113u8, 243u8, 48u8, 101u8, 190u8, 165u8, @@ -8346,10 +8592,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 126u8, 218u8, 66u8, 92u8, 82u8, 124u8, 145u8, 161u8, 40u8, 176u8, 14u8, 211u8, 178u8, 216u8, 8u8, 156u8, 83u8, 14u8, @@ -8380,7 +8625,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 213u8, 28u8, 144u8, 139u8, 187u8, 184u8, 7u8, 192u8, 114u8, 57u8, 238u8, 66u8, 7u8, 254u8, 41u8, 230u8, 189u8, 188u8, @@ -8405,7 +8652,9 @@ pub mod api { ::subxt::KeyIter<'a, T, UnappliedSlashes<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 213u8, 28u8, 144u8, 139u8, 187u8, 184u8, 7u8, 192u8, 114u8, 57u8, 238u8, 66u8, 7u8, 254u8, 41u8, 230u8, 189u8, 188u8, @@ -8429,7 +8678,9 @@ pub mod api { ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 243u8, 162u8, 236u8, 198u8, 122u8, 182u8, 37u8, 55u8, 171u8, 156u8, 235u8, 223u8, 226u8, 129u8, 89u8, 206u8, 2u8, 155u8, @@ -8460,10 +8711,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 241u8, 177u8, 227u8, 239u8, 150u8, 186u8, 50u8, 97u8, 144u8, 224u8, 24u8, 149u8, 189u8, 166u8, 71u8, 232u8, 221u8, 129u8, @@ -8486,10 +8736,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ValidatorSlashInEra<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 241u8, 177u8, 227u8, 239u8, 150u8, 186u8, 50u8, 97u8, 144u8, 224u8, 24u8, 149u8, 189u8, 166u8, 71u8, 232u8, 221u8, 129u8, @@ -8512,10 +8761,9 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 149u8, 144u8, 51u8, 167u8, 71u8, 119u8, 218u8, 110u8, 25u8, 45u8, 168u8, 149u8, 62u8, 195u8, 248u8, 50u8, 215u8, 216u8, @@ -8537,10 +8785,9 @@ pub mod api { ::subxt::KeyIter<'a, T, NominatorSlashInEra<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 149u8, 144u8, 51u8, 167u8, 71u8, 119u8, 218u8, 110u8, 25u8, 45u8, 168u8, 149u8, 62u8, 195u8, 248u8, 50u8, 215u8, 216u8, @@ -8564,7 +8811,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 22u8, 73u8, 200u8, 194u8, 106u8, 157u8, 84u8, 5u8, 119u8, 5u8, 73u8, 247u8, 125u8, 213u8, 80u8, 37u8, 154u8, 192u8, @@ -8586,7 +8835,9 @@ pub mod api { ::subxt::KeyIter<'a, T, SlashingSpans<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 22u8, 73u8, 200u8, 194u8, 106u8, 157u8, 84u8, 5u8, 119u8, 5u8, 73u8, 247u8, 125u8, 213u8, 80u8, 37u8, 154u8, 192u8, @@ -8612,7 +8863,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 95u8, 42u8, 40u8, 167u8, 201u8, 140u8, 142u8, 55u8, 69u8, 238u8, 248u8, 118u8, 209u8, 11u8, 117u8, 132u8, 179u8, 33u8, @@ -8638,7 +8891,9 @@ pub mod api { ::subxt::KeyIter<'a, T, SpanSlash<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 95u8, 42u8, 40u8, 167u8, 201u8, 140u8, 142u8, 55u8, 69u8, 238u8, 248u8, 118u8, 209u8, 11u8, 117u8, 132u8, 179u8, 33u8, @@ -8659,10 +8914,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 2u8, 167u8, 88u8, 76u8, 113u8, 225u8, 232u8, 80u8, 183u8, 162u8, 104u8, 28u8, 162u8, 13u8, 120u8, 45u8, 200u8, 130u8, @@ -8684,10 +8938,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 38u8, 22u8, 56u8, 250u8, 17u8, 154u8, 99u8, 37u8, 155u8, 253u8, 100u8, 117u8, 5u8, 239u8, 31u8, 190u8, 53u8, 241u8, @@ -8720,10 +8973,9 @@ pub mod api { ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::bool)>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 94u8, 254u8, 0u8, 50u8, 76u8, 232u8, 51u8, 153u8, 118u8, 14u8, 70u8, 101u8, 112u8, 215u8, 173u8, 82u8, 182u8, 104u8, @@ -8751,7 +9003,9 @@ pub mod api { runtime_types::pallet_staking::Releases, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 156u8, 107u8, 113u8, 89u8, 107u8, 89u8, 171u8, 229u8, 13u8, 96u8, 203u8, 67u8, 119u8, 153u8, 199u8, 158u8, 63u8, 114u8, @@ -8780,7 +9034,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 254u8, 131u8, 112u8, 90u8, 234u8, 72u8, 26u8, 240u8, 38u8, 14u8, 128u8, 234u8, 133u8, 169u8, 66u8, 48u8, 234u8, 170u8, @@ -8810,18 +9066,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Staking", "MaxNominations")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Staking", "MaxNominations")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 155u8, 58u8, 120u8, 225u8, 19u8, 30u8, 64u8, 6u8, 16u8, 72u8, + 160u8, 120u8, 99u8, 8u8, 170u8, 47u8, 217u8, 196u8, 184u8, + 183u8, 199u8, 156u8, 76u8, 154u8, 143u8, 172u8, 67u8, 133u8, + 95u8, 36u8, 60u8, 50u8, ] { - let pallet = self.client.metadata().pallet("Staking")?; + let pallet = metadata.pallet("Staking")?; let constant = pallet.constant("MaxNominations")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -8835,18 +9090,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Staking", "SessionsPerEra")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Staking", "SessionsPerEra")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 73u8, 207u8, 178u8, 212u8, 159u8, 9u8, 41u8, 31u8, 205u8, + 221u8, 166u8, 159u8, 104u8, 218u8, 113u8, 160u8, 174u8, 66u8, + 95u8, 0u8, 237u8, 42u8, 120u8, 171u8, 68u8, 78u8, 136u8, + 162u8, 163u8, 225u8, 199u8, 138u8, ] { - let pallet = self.client.metadata().pallet("Staking")?; + let pallet = metadata.pallet("Staking")?; let constant = pallet.constant("SessionsPerEra")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -8860,18 +9114,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Staking", "BondingDuration")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Staking", "BondingDuration")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 205u8, 83u8, 35u8, 244u8, 140u8, 127u8, 183u8, 152u8, 242u8, + 60u8, 44u8, 77u8, 252u8, 245u8, 35u8, 157u8, 71u8, 124u8, + 99u8, 243u8, 122u8, 252u8, 104u8, 33u8, 28u8, 86u8, 63u8, + 26u8, 3u8, 22u8, 193u8, 237u8, ] { - let pallet = self.client.metadata().pallet("Staking")?; + let pallet = metadata.pallet("Staking")?; let constant = pallet.constant("BondingDuration")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -8888,18 +9141,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Staking", "SlashDeferDuration")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Staking", "SlashDeferDuration")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 119u8, 238u8, 165u8, 29u8, 118u8, 219u8, 225u8, 241u8, 249u8, + 202u8, 99u8, 86u8, 123u8, 152u8, 33u8, 200u8, 166u8, 24u8, + 240u8, 111u8, 6u8, 56u8, 94u8, 70u8, 198u8, 4u8, 223u8, 19u8, + 39u8, 246u8, 190u8, 167u8, ] { - let pallet = self.client.metadata().pallet("Staking")?; + let pallet = metadata.pallet("Staking")?; let constant = pallet.constant("SlashDeferDuration")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -8916,18 +9168,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata .constant_hash("Staking", "MaxNominatorRewardedPerValidator")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 203u8, 67u8, 240u8, 15u8, 205u8, 129u8, 216u8, 42u8, 197u8, + 166u8, 179u8, 175u8, 9u8, 179u8, 182u8, 19u8, 57u8, 206u8, + 237u8, 79u8, 204u8, 135u8, 76u8, 243u8, 108u8, 191u8, 151u8, + 127u8, 38u8, 154u8, 193u8, 142u8, ] { - let pallet = self.client.metadata().pallet("Staking")?; + let pallet = metadata.pallet("Staking")?; let constant = pallet.constant("MaxNominatorRewardedPerValidator")?; let value = @@ -8943,18 +9195,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Staking", "MaxUnlockingChunks")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Staking", "MaxUnlockingChunks")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 60u8, 255u8, 33u8, 12u8, 50u8, 253u8, 93u8, 203u8, 3u8, + 245u8, 156u8, 201u8, 121u8, 119u8, 72u8, 58u8, 38u8, 133u8, + 127u8, 51u8, 21u8, 223u8, 40u8, 23u8, 116u8, 158u8, 77u8, + 24u8, 139u8, 219u8, 197u8, 150u8, ] { - let pallet = self.client.metadata().pallet("Staking")?; + let pallet = metadata.pallet("Staking")?; let constant = pallet.constant("MaxUnlockingChunks")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -8974,7 +9225,7 @@ pub mod api { pub type Event = runtime_types::pallet_offences::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "There is an offence reported of the given `kind` happened at the `session_index` and"] #[doc = "(kind-specific) time slot. This event is not deposited for duplicate slashes."] #[doc = "\\[kind, timeslot\\]."] @@ -9070,7 +9321,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 82u8, 209u8, 30u8, 189u8, 152u8, 16u8, 7u8, 24u8, 178u8, 140u8, 17u8, 226u8, 97u8, 37u8, 80u8, 211u8, 252u8, 36u8, @@ -9092,7 +9345,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Reports<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 82u8, 209u8, 30u8, 189u8, 152u8, 16u8, 7u8, 24u8, 178u8, 140u8, 17u8, 226u8, 97u8, 37u8, 80u8, 211u8, 252u8, 36u8, @@ -9115,10 +9370,9 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::H256>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 110u8, 42u8, 178u8, 19u8, 180u8, 109u8, 26u8, 134u8, 74u8, 223u8, 19u8, 172u8, 149u8, 194u8, 228u8, 11u8, 205u8, 189u8, @@ -9143,10 +9397,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ConcurrentReportsIndex<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 110u8, 42u8, 178u8, 19u8, 180u8, 109u8, 26u8, 134u8, 74u8, 223u8, 19u8, 172u8, 149u8, 194u8, 228u8, 11u8, 205u8, 189u8, @@ -9173,10 +9426,9 @@ pub mod api { ::std::vec::Vec<::core::primitive::u8>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 162u8, 66u8, 131u8, 48u8, 250u8, 237u8, 179u8, 214u8, 36u8, 137u8, 226u8, 136u8, 120u8, 61u8, 215u8, 43u8, 164u8, 50u8, @@ -9206,10 +9458,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ReportsByKindIndex<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 162u8, 66u8, 131u8, 48u8, 250u8, 237u8, 179u8, 214u8, 36u8, 137u8, 226u8, 136u8, 120u8, 61u8, 215u8, 43u8, 164u8, 50u8, @@ -9242,7 +9493,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetKeys { pub keys: runtime_types::polkadot_runtime::SessionKeys, pub proof: ::std::vec::Vec<::core::primitive::u8>, @@ -9251,7 +9502,7 @@ pub mod api { const PALLET: &'static str = "Session"; const FUNCTION: &'static str = "set_keys"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct PurgeKeys; impl ::subxt::Call for PurgeKeys { const PALLET: &'static str = "Session"; @@ -9301,7 +9552,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 194u8, 88u8, 145u8, 74u8, 215u8, 181u8, 126u8, 21u8, 193u8, 174u8, 42u8, 142u8, 229u8, 213u8, 104u8, 36u8, 134u8, 83u8, @@ -9344,7 +9597,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 200u8, 255u8, 4u8, 213u8, 188u8, 92u8, 99u8, 116u8, 163u8, 152u8, 29u8, 35u8, 133u8, 119u8, 246u8, 44u8, 91u8, 31u8, @@ -9364,10 +9619,10 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "New session has happened. Note that the argument is the session index, not the"] #[doc = "block number as the type might suggest."] @@ -9471,7 +9726,9 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 186u8, 248u8, 234u8, 74u8, 245u8, 141u8, 90u8, 152u8, 226u8, 220u8, 255u8, 104u8, 174u8, 1u8, 37u8, 152u8, 23u8, 208u8, @@ -9494,7 +9751,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 148u8, 179u8, 159u8, 15u8, 197u8, 95u8, 214u8, 30u8, 209u8, 251u8, 183u8, 231u8, 91u8, 25u8, 181u8, 191u8, 143u8, 252u8, @@ -9518,7 +9777,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 105u8, 140u8, 235u8, 218u8, 96u8, 100u8, 252u8, 10u8, 58u8, 221u8, 244u8, 251u8, 67u8, 91u8, 80u8, 202u8, 152u8, 42u8, @@ -9547,7 +9808,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 94u8, 85u8, 104u8, 215u8, 108u8, 102u8, 70u8, 179u8, 201u8, 132u8, 63u8, 148u8, 29u8, 97u8, 185u8, 117u8, 153u8, 236u8, @@ -9576,10 +9839,9 @@ pub mod api { ::std::vec::Vec<::core::primitive::u32>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 135u8, 22u8, 22u8, 97u8, 82u8, 217u8, 144u8, 141u8, 121u8, 240u8, 189u8, 16u8, 176u8, 88u8, 177u8, 31u8, 20u8, 242u8, @@ -9605,7 +9867,9 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 18u8, 229u8, 236u8, 115u8, 189u8, 239u8, 3u8, 100u8, 6u8, 254u8, 237u8, 61u8, 223u8, 21u8, 226u8, 203u8, 214u8, 213u8, @@ -9627,7 +9891,9 @@ pub mod api { ::subxt::KeyIter<'a, T, NextKeys<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 18u8, 229u8, 236u8, 115u8, 189u8, 239u8, 3u8, 100u8, 6u8, 254u8, 237u8, 61u8, 223u8, 21u8, 226u8, 203u8, 214u8, 213u8, @@ -9650,7 +9916,9 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 49u8, 245u8, 212u8, 141u8, 211u8, 208u8, 109u8, 102u8, 249u8, 161u8, 41u8, 93u8, 220u8, 230u8, 14u8, 59u8, 251u8, 176u8, @@ -9672,7 +9940,9 @@ pub mod api { ::subxt::KeyIter<'a, T, KeyOwner<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 49u8, 245u8, 212u8, 141u8, 211u8, 208u8, 109u8, 102u8, 249u8, 161u8, 41u8, 93u8, 220u8, 230u8, 14u8, 59u8, 251u8, 176u8, @@ -9699,7 +9969,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ReportEquivocation { pub equivocation_proof: ::std::boxed::Box< runtime_types::sp_finality_grandpa::EquivocationProof< @@ -9713,7 +9983,7 @@ pub mod api { const PALLET: &'static str = "Grandpa"; const FUNCTION: &'static str = "report_equivocation"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ReportEquivocationUnsigned { pub equivocation_proof: ::std::boxed::Box< runtime_types::sp_finality_grandpa::EquivocationProof< @@ -9727,7 +9997,7 @@ pub mod api { const PALLET: &'static str = "Grandpa"; const FUNCTION: &'static str = "report_equivocation_unsigned"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct NoteStalled { pub delay: ::core::primitive::u32, pub best_finalized_block_number: ::core::primitive::u32, @@ -9770,7 +10040,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 230u8, 252u8, 24u8, 207u8, 164u8, 127u8, 177u8, 30u8, 113u8, 175u8, 207u8, 252u8, 230u8, 225u8, 181u8, 190u8, 236u8, @@ -9813,10 +10085,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 141u8, 235u8, 27u8, 135u8, 124u8, 124u8, 234u8, 51u8, 100u8, 105u8, 188u8, 248u8, 133u8, 10u8, 84u8, 14u8, 40u8, 235u8, @@ -9857,7 +10128,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 227u8, 98u8, 249u8, 158u8, 96u8, 124u8, 72u8, 188u8, 27u8, 215u8, 73u8, 62u8, 103u8, 79u8, 38u8, 48u8, 212u8, 88u8, @@ -9879,7 +10152,7 @@ pub mod api { pub type Event = runtime_types::pallet_grandpa::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "New authority set has been applied."] pub struct NewAuthorities { pub authority_set: ::std::vec::Vec<( @@ -9891,14 +10164,14 @@ pub mod api { const PALLET: &'static str = "Grandpa"; const EVENT: &'static str = "NewAuthorities"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Current authority set has been paused."] pub struct Paused; impl ::subxt::Event for Paused { const PALLET: &'static str = "Grandpa"; const EVENT: &'static str = "Paused"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Current authority set has been resumed."] pub struct Resumed; impl ::subxt::Event for Resumed { @@ -9983,7 +10256,9 @@ pub mod api { runtime_types::pallet_grandpa::StoredState<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 159u8, 75u8, 78u8, 23u8, 98u8, 89u8, 239u8, 230u8, 192u8, 67u8, 139u8, 222u8, 151u8, 237u8, 216u8, 20u8, 235u8, 247u8, @@ -10012,7 +10287,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 128u8, 176u8, 209u8, 41u8, 231u8, 111u8, 205u8, 198u8, 154u8, 44u8, 228u8, 231u8, 44u8, 110u8, 74u8, 9u8, 31u8, 86u8, @@ -10034,7 +10311,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 99u8, 43u8, 245u8, 201u8, 60u8, 9u8, 122u8, 99u8, 188u8, 29u8, 67u8, 6u8, 193u8, 133u8, 179u8, 67u8, 202u8, 208u8, @@ -10059,7 +10338,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 219u8, 8u8, 37u8, 78u8, 150u8, 55u8, 0u8, 57u8, 201u8, 170u8, 186u8, 189u8, 56u8, 161u8, 44u8, 15u8, 53u8, 178u8, 224u8, @@ -10080,7 +10361,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 129u8, 7u8, 62u8, 101u8, 199u8, 60u8, 56u8, 33u8, 54u8, 158u8, 20u8, 178u8, 244u8, 145u8, 189u8, 197u8, 157u8, 163u8, @@ -10109,7 +10392,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 91u8, 175u8, 145u8, 127u8, 242u8, 81u8, 13u8, 231u8, 110u8, 11u8, 166u8, 169u8, 103u8, 146u8, 123u8, 133u8, 157u8, 15u8, @@ -10134,7 +10419,9 @@ pub mod api { ::subxt::KeyIter<'a, T, SetIdSession<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 91u8, 175u8, 145u8, 127u8, 242u8, 81u8, 13u8, 231u8, 110u8, 11u8, 166u8, 169u8, 103u8, 146u8, 123u8, 133u8, 157u8, 15u8, @@ -10163,18 +10450,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Grandpa", "MaxAuthorities")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Grandpa", "MaxAuthorities")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 248u8, 195u8, 131u8, 166u8, 10u8, 50u8, 71u8, 223u8, 41u8, + 49u8, 43u8, 99u8, 251u8, 113u8, 75u8, 193u8, 159u8, 15u8, + 77u8, 217u8, 147u8, 205u8, 165u8, 50u8, 6u8, 166u8, 77u8, + 189u8, 102u8, 22u8, 201u8, 19u8, ] { - let pallet = self.client.metadata().pallet("Grandpa")?; + let pallet = metadata.pallet("Grandpa")?; let constant = pallet.constant("MaxAuthorities")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -10197,7 +10483,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Heartbeat { pub heartbeat: runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>, @@ -10249,7 +10535,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 246u8, 83u8, 28u8, 233u8, 69u8, 55u8, 28u8, 178u8, 82u8, 159u8, 56u8, 241u8, 111u8, 78u8, 194u8, 15u8, 14u8, 250u8, @@ -10271,7 +10559,7 @@ pub mod api { pub type Event = runtime_types::pallet_im_online::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A new heartbeat was received from `AuthorityId`."] pub struct HeartbeatReceived { pub authority_id: @@ -10281,14 +10569,14 @@ pub mod api { const PALLET: &'static str = "ImOnline"; const EVENT: &'static str = "HeartbeatReceived"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "At the end of the session, no offence was committed."] pub struct AllGood; impl ::subxt::Event for AllGood { const PALLET: &'static str = "ImOnline"; const EVENT: &'static str = "AllGood"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "At the end of the session, at least one validator was found to be offline."] pub struct SomeOffline { pub offline: ::std::vec::Vec<( @@ -10391,7 +10679,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 108u8, 100u8, 85u8, 198u8, 226u8, 122u8, 94u8, 225u8, 97u8, 154u8, 135u8, 95u8, 106u8, 28u8, 185u8, 78u8, 192u8, 196u8, @@ -10409,7 +10699,9 @@ pub mod api { } } #[doc = " The current set of keys that may issue a heartbeat."] pub async fn keys (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > , :: subxt :: BasicError >{ - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 105u8, 250u8, 99u8, 106u8, 9u8, 29u8, 73u8, 176u8, 158u8, 247u8, 28u8, 171u8, 95u8, 1u8, 109u8, 11u8, 231u8, 52u8, @@ -10441,10 +10733,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 29u8, 40u8, 67u8, 222u8, 59u8, 104u8, 24u8, 193u8, 249u8, 200u8, 152u8, 225u8, 72u8, 243u8, 140u8, 114u8, 121u8, 216u8, @@ -10467,10 +10758,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ReceivedHeartbeats<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 29u8, 40u8, 67u8, 222u8, 59u8, 104u8, 24u8, 193u8, 249u8, 200u8, 152u8, 225u8, 72u8, 243u8, 140u8, 114u8, 121u8, 216u8, @@ -10492,7 +10782,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 94u8, 193u8, 107u8, 126u8, 3u8, 13u8, 28u8, 151u8, 197u8, 226u8, 224u8, 48u8, 138u8, 113u8, 31u8, 57u8, 111u8, 184u8, @@ -10518,7 +10810,9 @@ pub mod api { ::subxt::KeyIter<'a, T, AuthoredBlocks<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 94u8, 193u8, 107u8, 126u8, 3u8, 13u8, 28u8, 151u8, 197u8, 226u8, 224u8, 48u8, 138u8, 113u8, 31u8, 57u8, 111u8, 184u8, @@ -10550,18 +10844,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("ImOnline", "UnsignedPriority")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("ImOnline", "UnsignedPriority")? == [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, - 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, - 65u8, 18u8, 191u8, 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, - 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, + 78u8, 226u8, 84u8, 70u8, 162u8, 23u8, 167u8, 100u8, 156u8, + 228u8, 119u8, 16u8, 28u8, 202u8, 21u8, 71u8, 72u8, 244u8, + 3u8, 255u8, 243u8, 55u8, 109u8, 238u8, 26u8, 180u8, 207u8, + 175u8, 221u8, 27u8, 213u8, 217u8, ] { - let pallet = self.client.metadata().pallet("ImOnline")?; + let pallet = metadata.pallet("ImOnline")?; let constant = pallet.constant("UnsignedPriority")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -10590,7 +10883,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Propose { pub proposal_hash: ::subxt::sp_core::H256, #[codec(compact)] @@ -10600,7 +10893,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "propose"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Second { #[codec(compact)] pub proposal: ::core::primitive::u32, @@ -10611,7 +10904,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "second"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Vote { #[codec(compact)] pub ref_index: ::core::primitive::u32, @@ -10624,10 +10917,10 @@ pub mod api { const FUNCTION: &'static str = "vote"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct EmergencyCancel { pub ref_index: ::core::primitive::u32, @@ -10636,7 +10929,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "emergency_cancel"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ExternalPropose { pub proposal_hash: ::subxt::sp_core::H256, } @@ -10644,7 +10937,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "external_propose"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ExternalProposeMajority { pub proposal_hash: ::subxt::sp_core::H256, } @@ -10652,7 +10945,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "external_propose_majority"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ExternalProposeDefault { pub proposal_hash: ::subxt::sp_core::H256, } @@ -10660,7 +10953,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "external_propose_default"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct FastTrack { pub proposal_hash: ::subxt::sp_core::H256, pub voting_period: ::core::primitive::u32, @@ -10670,7 +10963,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "fast_track"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct VetoExternal { pub proposal_hash: ::subxt::sp_core::H256, } @@ -10678,7 +10971,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "veto_external"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct CancelReferendum { #[codec(compact)] pub ref_index: ::core::primitive::u32, @@ -10688,10 +10981,10 @@ pub mod api { const FUNCTION: &'static str = "cancel_referendum"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct CancelQueued { pub which: ::core::primitive::u32, @@ -10700,7 +10993,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "cancel_queued"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Delegate { pub to: ::subxt::sp_core::crypto::AccountId32, pub conviction: runtime_types::pallet_democracy::conviction::Conviction, @@ -10710,19 +11003,19 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "delegate"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Undelegate; impl ::subxt::Call for Undelegate { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "undelegate"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ClearPublicProposals; impl ::subxt::Call for ClearPublicProposals { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "clear_public_proposals"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct NotePreimage { pub encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, } @@ -10730,7 +11023,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "note_preimage"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct NotePreimageOperational { pub encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, } @@ -10738,7 +11031,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "note_preimage_operational"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct NoteImminentPreimage { pub encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, } @@ -10746,7 +11039,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "note_imminent_preimage"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct NoteImminentPreimageOperational { pub encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, } @@ -10754,7 +11047,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "note_imminent_preimage_operational"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ReapPreimage { pub proposal_hash: ::subxt::sp_core::H256, #[codec(compact)] @@ -10764,7 +11057,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "reap_preimage"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Unlock { pub target: ::subxt::sp_core::crypto::AccountId32, } @@ -10773,10 +11066,10 @@ pub mod api { const FUNCTION: &'static str = "unlock"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct RemoveVote { pub index: ::core::primitive::u32, @@ -10785,7 +11078,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "remove_vote"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RemoveOtherVote { pub target: ::subxt::sp_core::crypto::AccountId32, pub index: ::core::primitive::u32, @@ -10794,7 +11087,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "remove_other_vote"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct EnactProposal { pub proposal_hash: ::subxt::sp_core::H256, pub index: ::core::primitive::u32, @@ -10803,7 +11096,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "enact_proposal"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Blacklist { pub proposal_hash: ::subxt::sp_core::H256, pub maybe_ref_index: ::core::option::Option<::core::primitive::u32>, @@ -10812,7 +11105,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const FUNCTION: &'static str = "blacklist"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct CancelProposal { #[codec(compact)] pub prop_index: ::core::primitive::u32, @@ -10862,7 +11155,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 149u8, 60u8, 16u8, 143u8, 114u8, 16u8, 124u8, 96u8, 97u8, 5u8, 176u8, 137u8, 188u8, 164u8, 65u8, 145u8, 142u8, 104u8, @@ -10904,7 +11199,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 37u8, 226u8, 138u8, 26u8, 138u8, 46u8, 39u8, 147u8, 22u8, 32u8, 245u8, 40u8, 49u8, 228u8, 218u8, 225u8, 72u8, 89u8, @@ -10947,7 +11244,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 1u8, 235u8, 77u8, 58u8, 54u8, 224u8, 30u8, 168u8, 150u8, 169u8, 20u8, 172u8, 137u8, 191u8, 189u8, 184u8, 28u8, 118u8, @@ -10983,7 +11282,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 4u8, 129u8, 205u8, 102u8, 202u8, 197u8, 75u8, 155u8, 24u8, 125u8, 157u8, 73u8, 50u8, 243u8, 173u8, 103u8, 49u8, 60u8, @@ -11020,7 +11321,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 50u8, 82u8, 155u8, 206u8, 57u8, 61u8, 64u8, 43u8, 30u8, 71u8, 89u8, 91u8, 221u8, 46u8, 15u8, 222u8, 15u8, 211u8, 56u8, @@ -11059,10 +11362,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 18u8, 92u8, 204u8, 120u8, 189u8, 60u8, 223u8, 166u8, 213u8, 49u8, 20u8, 131u8, 202u8, 1u8, 87u8, 226u8, 168u8, 156u8, @@ -11101,10 +11403,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 51u8, 75u8, 236u8, 51u8, 53u8, 39u8, 26u8, 231u8, 212u8, 191u8, 175u8, 233u8, 181u8, 156u8, 210u8, 221u8, 181u8, @@ -11149,7 +11450,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 232u8, 255u8, 150u8, 13u8, 151u8, 28u8, 253u8, 37u8, 183u8, 127u8, 53u8, 228u8, 160u8, 11u8, 223u8, 48u8, 74u8, 5u8, @@ -11190,7 +11493,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 230u8, 207u8, 43u8, 137u8, 173u8, 97u8, 143u8, 183u8, 193u8, 78u8, 252u8, 104u8, 237u8, 32u8, 151u8, 164u8, 91u8, 247u8, @@ -11225,7 +11530,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 107u8, 144u8, 114u8, 224u8, 39u8, 217u8, 156u8, 202u8, 62u8, 4u8, 196u8, 63u8, 145u8, 196u8, 107u8, 241u8, 3u8, 61u8, @@ -11260,7 +11567,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 130u8, 218u8, 212u8, 143u8, 89u8, 134u8, 207u8, 161u8, 165u8, 202u8, 237u8, 237u8, 81u8, 125u8, 165u8, 147u8, 222u8, 198u8, @@ -11310,7 +11619,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 33u8, 155u8, 180u8, 53u8, 39u8, 251u8, 59u8, 100u8, 16u8, 124u8, 209u8, 40u8, 42u8, 152u8, 3u8, 109u8, 97u8, 211u8, @@ -11353,7 +11664,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 165u8, 40u8, 183u8, 209u8, 57u8, 153u8, 111u8, 29u8, 114u8, 109u8, 107u8, 235u8, 97u8, 61u8, 53u8, 155u8, 44u8, 245u8, @@ -11385,7 +11698,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 59u8, 126u8, 254u8, 223u8, 252u8, 225u8, 75u8, 185u8, 188u8, 181u8, 42u8, 179u8, 211u8, 73u8, 12u8, 141u8, 243u8, 197u8, @@ -11423,7 +11738,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 121u8, 179u8, 204u8, 32u8, 104u8, 133u8, 99u8, 153u8, 226u8, 190u8, 89u8, 121u8, 232u8, 154u8, 89u8, 133u8, 124u8, 222u8, @@ -11452,10 +11769,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 102u8, 20u8, 213u8, 32u8, 64u8, 28u8, 150u8, 241u8, 173u8, 182u8, 201u8, 70u8, 52u8, 211u8, 95u8, 211u8, 127u8, 12u8, @@ -11495,7 +11811,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 240u8, 77u8, 42u8, 178u8, 110u8, 117u8, 152u8, 158u8, 64u8, 26u8, 49u8, 37u8, 177u8, 178u8, 203u8, 227u8, 23u8, 251u8, @@ -11524,10 +11842,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 119u8, 17u8, 140u8, 81u8, 7u8, 103u8, 162u8, 112u8, 160u8, 179u8, 116u8, 34u8, 126u8, 150u8, 64u8, 117u8, 93u8, 225u8, @@ -11571,7 +11888,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 45u8, 191u8, 46u8, 19u8, 87u8, 216u8, 48u8, 29u8, 124u8, 205u8, 39u8, 178u8, 158u8, 95u8, 163u8, 116u8, 232u8, 58u8, @@ -11609,7 +11928,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 106u8, 17u8, 189u8, 71u8, 208u8, 26u8, 49u8, 71u8, 162u8, 196u8, 126u8, 192u8, 242u8, 239u8, 77u8, 196u8, 62u8, 171u8, @@ -11664,7 +11985,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 33u8, 72u8, 14u8, 166u8, 152u8, 18u8, 232u8, 153u8, 163u8, 96u8, 146u8, 180u8, 98u8, 155u8, 119u8, 75u8, 247u8, 175u8, @@ -11708,7 +12031,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 43u8, 194u8, 32u8, 219u8, 87u8, 143u8, 240u8, 34u8, 236u8, 232u8, 128u8, 7u8, 99u8, 113u8, 106u8, 124u8, 92u8, 115u8, @@ -11738,7 +12063,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 246u8, 188u8, 9u8, 244u8, 56u8, 81u8, 201u8, 59u8, 212u8, 11u8, 204u8, 7u8, 173u8, 7u8, 212u8, 34u8, 173u8, 248u8, @@ -11785,7 +12112,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 105u8, 99u8, 153u8, 150u8, 122u8, 234u8, 105u8, 238u8, 152u8, 152u8, 121u8, 181u8, 133u8, 246u8, 159u8, 35u8, 8u8, 65u8, @@ -11823,7 +12152,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 26u8, 117u8, 180u8, 24u8, 12u8, 177u8, 77u8, 254u8, 113u8, 53u8, 146u8, 48u8, 164u8, 255u8, 45u8, 205u8, 207u8, 46u8, @@ -11842,7 +12173,7 @@ pub mod api { pub type Event = runtime_types::pallet_democracy::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A motion has been proposed by a public account."] pub struct Proposed { pub proposal_index: ::core::primitive::u32, @@ -11852,7 +12183,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Proposed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A public proposal has been tabled for referendum vote."] pub struct Tabled { pub proposal_index: ::core::primitive::u32, @@ -11863,14 +12194,14 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Tabled"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An external proposal has been tabled."] pub struct ExternalTabled; impl ::subxt::Event for ExternalTabled { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "ExternalTabled"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A referendum has begun."] pub struct Started { pub ref_index: ::core::primitive::u32, @@ -11882,10 +12213,10 @@ pub mod api { const EVENT: &'static str = "Started"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "A proposal has been approved by referendum."] pub struct Passed { @@ -11896,10 +12227,10 @@ pub mod api { const EVENT: &'static str = "Passed"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "A proposal has been rejected by referendum."] pub struct NotPassed { @@ -11910,10 +12241,10 @@ pub mod api { const EVENT: &'static str = "NotPassed"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "A referendum has been cancelled."] pub struct Cancelled { @@ -11923,7 +12254,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Cancelled"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A proposal has been enacted."] pub struct Executed { pub ref_index: ::core::primitive::u32, @@ -11934,7 +12265,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Executed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An account has delegated their vote to another account."] pub struct Delegated { pub who: ::subxt::sp_core::crypto::AccountId32, @@ -11944,7 +12275,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Delegated"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An account has cancelled a previous delegation operation."] pub struct Undelegated { pub account: ::subxt::sp_core::crypto::AccountId32, @@ -11953,7 +12284,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Undelegated"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An external proposal has been vetoed."] pub struct Vetoed { pub who: ::subxt::sp_core::crypto::AccountId32, @@ -11964,7 +12295,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Vetoed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A proposal's preimage was noted, and the deposit taken."] pub struct PreimageNoted { pub proposal_hash: ::subxt::sp_core::H256, @@ -11975,7 +12306,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "PreimageNoted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A proposal preimage was removed and used (the deposit was returned)."] pub struct PreimageUsed { pub proposal_hash: ::subxt::sp_core::H256, @@ -11986,7 +12317,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "PreimageUsed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A proposal could not be executed because its preimage was invalid."] pub struct PreimageInvalid { pub proposal_hash: ::subxt::sp_core::H256, @@ -11996,7 +12327,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "PreimageInvalid"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A proposal could not be executed because its preimage was missing."] pub struct PreimageMissing { pub proposal_hash: ::subxt::sp_core::H256, @@ -12006,7 +12337,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "PreimageMissing"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A registered preimage was removed and the deposit collected by the reaper."] pub struct PreimageReaped { pub proposal_hash: ::subxt::sp_core::H256, @@ -12018,7 +12349,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "PreimageReaped"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A proposal_hash has been blacklisted permanently."] pub struct Blacklisted { pub proposal_hash: ::subxt::sp_core::H256, @@ -12027,7 +12358,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Blacklisted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An account has voted in a referendum"] pub struct Voted { pub voter: ::subxt::sp_core::crypto::AccountId32, @@ -12040,7 +12371,7 @@ pub mod api { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Voted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An account has secconded a proposal"] pub struct Seconded { pub seconder: ::subxt::sp_core::crypto::AccountId32, @@ -12226,7 +12557,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 91u8, 14u8, 171u8, 94u8, 37u8, 157u8, 46u8, 157u8, 254u8, 13u8, 68u8, 144u8, 23u8, 146u8, 128u8, 159u8, 9u8, 174u8, @@ -12255,7 +12588,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 78u8, 208u8, 211u8, 20u8, 85u8, 237u8, 161u8, 149u8, 99u8, 158u8, 6u8, 54u8, 204u8, 228u8, 132u8, 10u8, 75u8, 247u8, @@ -12286,7 +12621,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 116u8, 57u8, 200u8, 96u8, 150u8, 62u8, 162u8, 169u8, 28u8, 18u8, 134u8, 161u8, 210u8, 217u8, 80u8, 225u8, 22u8, 185u8, @@ -12310,7 +12647,9 @@ pub mod api { ::subxt::KeyIter<'a, T, DepositOf<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 116u8, 57u8, 200u8, 96u8, 150u8, 62u8, 162u8, 169u8, 28u8, 18u8, 134u8, 161u8, 210u8, 217u8, 80u8, 225u8, 22u8, 185u8, @@ -12339,7 +12678,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 20u8, 82u8, 223u8, 51u8, 178u8, 115u8, 71u8, 83u8, 23u8, 15u8, 85u8, 66u8, 0u8, 69u8, 68u8, 20u8, 28u8, 159u8, 74u8, @@ -12362,7 +12703,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Preimages<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 20u8, 82u8, 223u8, 51u8, 178u8, 115u8, 71u8, 83u8, 23u8, 15u8, 85u8, 66u8, 0u8, 69u8, 68u8, 20u8, 28u8, 159u8, 74u8, @@ -12381,7 +12724,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 153u8, 210u8, 106u8, 244u8, 156u8, 70u8, 124u8, 251u8, 123u8, 75u8, 7u8, 189u8, 199u8, 145u8, 95u8, 119u8, 137u8, 11u8, @@ -12405,7 +12750,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 4u8, 51u8, 108u8, 11u8, 48u8, 165u8, 19u8, 251u8, 182u8, 76u8, 163u8, 73u8, 227u8, 2u8, 212u8, 74u8, 128u8, 27u8, @@ -12439,7 +12786,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 112u8, 206u8, 173u8, 93u8, 255u8, 76u8, 85u8, 122u8, 24u8, 97u8, 177u8, 67u8, 44u8, 143u8, 53u8, 159u8, 206u8, 135u8, @@ -12463,7 +12812,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ReferendumInfoOf<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 112u8, 206u8, 173u8, 93u8, 255u8, 76u8, 85u8, 122u8, 24u8, 97u8, 177u8, 67u8, 44u8, 143u8, 53u8, 159u8, 206u8, 135u8, @@ -12492,7 +12843,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 194u8, 13u8, 151u8, 207u8, 194u8, 79u8, 233u8, 214u8, 193u8, 52u8, 78u8, 62u8, 71u8, 35u8, 139u8, 11u8, 41u8, 163u8, @@ -12520,7 +12873,9 @@ pub mod api { ::subxt::KeyIter<'a, T, VotingOf<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 194u8, 13u8, 151u8, 207u8, 194u8, 79u8, 233u8, 214u8, 193u8, 52u8, 78u8, 62u8, 71u8, 35u8, 139u8, 11u8, 41u8, 163u8, @@ -12540,10 +12895,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 3u8, 67u8, 106u8, 1u8, 89u8, 204u8, 4u8, 145u8, 121u8, 44u8, 34u8, 76u8, 18u8, 206u8, 65u8, 214u8, 222u8, 82u8, 31u8, @@ -12574,7 +12928,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 167u8, 226u8, 113u8, 10u8, 12u8, 157u8, 190u8, 117u8, 233u8, 177u8, 254u8, 126u8, 2u8, 55u8, 100u8, 249u8, 78u8, 127u8, @@ -12601,7 +12957,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 9u8, 76u8, 174u8, 143u8, 210u8, 103u8, 197u8, 219u8, 152u8, 134u8, 67u8, 78u8, 109u8, 39u8, 246u8, 214u8, 3u8, 51u8, @@ -12624,7 +12982,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Blacklist<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 9u8, 76u8, 174u8, 143u8, 210u8, 103u8, 197u8, 219u8, 152u8, 134u8, 67u8, 78u8, 109u8, 39u8, 246u8, 214u8, 3u8, 51u8, @@ -12644,7 +13004,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 176u8, 55u8, 142u8, 79u8, 35u8, 110u8, 215u8, 163u8, 134u8, 172u8, 171u8, 71u8, 180u8, 175u8, 7u8, 29u8, 126u8, 141u8, @@ -12669,7 +13031,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Cancellations<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 176u8, 55u8, 142u8, 79u8, 35u8, 110u8, 215u8, 163u8, 134u8, 172u8, 171u8, 71u8, 180u8, 175u8, 7u8, 29u8, 126u8, 141u8, @@ -12692,7 +13056,9 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 39u8, 219u8, 134u8, 64u8, 250u8, 96u8, 95u8, 156u8, 100u8, 236u8, 18u8, 78u8, 59u8, 146u8, 5u8, 245u8, 113u8, 125u8, @@ -12726,18 +13092,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Democracy", "EnactmentPeriod")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Democracy", "EnactmentPeriod")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 227u8, 73u8, 197u8, 72u8, 142u8, 160u8, 229u8, 180u8, 110u8, + 6u8, 124u8, 129u8, 184u8, 113u8, 222u8, 215u8, 48u8, 18u8, + 122u8, 154u8, 102u8, 11u8, 104u8, 133u8, 113u8, 173u8, 206u8, + 238u8, 58u8, 198u8, 200u8, 246u8, ] { - let pallet = self.client.metadata().pallet("Democracy")?; + let pallet = metadata.pallet("Democracy")?; let constant = pallet.constant("EnactmentPeriod")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -12751,18 +13116,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Democracy", "LaunchPeriod")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Democracy", "LaunchPeriod")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 107u8, 166u8, 54u8, 10u8, 127u8, 204u8, 15u8, 249u8, 71u8, + 253u8, 175u8, 240u8, 150u8, 89u8, 148u8, 152u8, 66u8, 26u8, + 113u8, 84u8, 118u8, 106u8, 160u8, 240u8, 157u8, 248u8, 230u8, + 38u8, 62u8, 210u8, 23u8, 60u8, ] { - let pallet = self.client.metadata().pallet("Democracy")?; + let pallet = metadata.pallet("Democracy")?; let constant = pallet.constant("LaunchPeriod")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -12776,18 +13140,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Democracy", "VotingPeriod")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Democracy", "VotingPeriod")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 53u8, 228u8, 6u8, 131u8, 171u8, 179u8, 33u8, 29u8, 46u8, + 186u8, 198u8, 72u8, 94u8, 151u8, 172u8, 181u8, 89u8, 81u8, + 247u8, 11u8, 103u8, 94u8, 225u8, 61u8, 194u8, 169u8, 18u8, + 100u8, 162u8, 17u8, 202u8, 243u8, ] { - let pallet = self.client.metadata().pallet("Democracy")?; + let pallet = metadata.pallet("Democracy")?; let constant = pallet.constant("VotingPeriod")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -12804,18 +13167,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Democracy", "VoteLockingPeriod")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Democracy", "VoteLockingPeriod")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 30u8, 71u8, 100u8, 117u8, 139u8, 71u8, 77u8, 189u8, 33u8, + 64u8, 110u8, 164u8, 172u8, 225u8, 163u8, 83u8, 210u8, 130u8, + 108u8, 57u8, 169u8, 55u8, 190u8, 140u8, 68u8, 0u8, 45u8, + 179u8, 115u8, 239u8, 13u8, 179u8, ] { - let pallet = self.client.metadata().pallet("Democracy")?; + let pallet = metadata.pallet("Democracy")?; let constant = pallet.constant("VoteLockingPeriod")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -12829,18 +13191,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Democracy", "MinimumDeposit")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Democracy", "MinimumDeposit")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 13u8, 97u8, 190u8, 80u8, 197u8, 219u8, 115u8, 167u8, 134u8, + 146u8, 163u8, 219u8, 46u8, 173u8, 77u8, 197u8, 212u8, 95u8, + 47u8, 29u8, 234u8, 36u8, 175u8, 32u8, 16u8, 46u8, 180u8, + 141u8, 204u8, 178u8, 56u8, 123u8, ] { - let pallet = self.client.metadata().pallet("Democracy")?; + let pallet = metadata.pallet("Democracy")?; let constant = pallet.constant("MinimumDeposit")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -12856,18 +13217,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Democracy", "InstantAllowed")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Democracy", "InstantAllowed")? == [ - 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, 206u8, 237u8, - 1u8, 68u8, 252u8, 125u8, 234u8, 185u8, 50u8, 149u8, 164u8, - 47u8, 126u8, 134u8, 100u8, 14u8, 86u8, 209u8, 39u8, 20u8, - 4u8, 233u8, 115u8, 102u8, 131u8, + 66u8, 19u8, 43u8, 75u8, 149u8, 2u8, 157u8, 136u8, 33u8, + 102u8, 57u8, 127u8, 246u8, 72u8, 14u8, 94u8, 240u8, 2u8, + 162u8, 86u8, 232u8, 70u8, 22u8, 133u8, 209u8, 205u8, 115u8, + 236u8, 17u8, 9u8, 37u8, 14u8, ] { - let pallet = self.client.metadata().pallet("Democracy")?; + let pallet = metadata.pallet("Democracy")?; let constant = pallet.constant("InstantAllowed")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -12881,18 +13241,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Democracy", "FastTrackVotingPeriod")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Democracy", "FastTrackVotingPeriod")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 72u8, 110u8, 169u8, 125u8, 65u8, 142u8, 75u8, 117u8, 252u8, + 246u8, 35u8, 219u8, 65u8, 54u8, 101u8, 225u8, 34u8, 125u8, + 233u8, 19u8, 193u8, 67u8, 103u8, 150u8, 205u8, 226u8, 235u8, + 246u8, 251u8, 38u8, 254u8, 243u8, ] { - let pallet = self.client.metadata().pallet("Democracy")?; + let pallet = metadata.pallet("Democracy")?; let constant = pallet.constant("FastTrackVotingPeriod")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -12906,18 +13265,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Democracy", "CooloffPeriod")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Democracy", "CooloffPeriod")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 216u8, 225u8, 208u8, 207u8, 23u8, 216u8, 8u8, 144u8, 183u8, + 173u8, 133u8, 8u8, 63u8, 177u8, 86u8, 208u8, 183u8, 201u8, + 123u8, 18u8, 235u8, 166u8, 192u8, 226u8, 172u8, 212u8, 62u8, + 73u8, 89u8, 181u8, 16u8, 103u8, ] { - let pallet = self.client.metadata().pallet("Democracy")?; + let pallet = metadata.pallet("Democracy")?; let constant = pallet.constant("CooloffPeriod")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -12931,18 +13289,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Democracy", "PreimageByteDeposit")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Democracy", "PreimageByteDeposit")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 123u8, 228u8, 214u8, 37u8, 90u8, 98u8, 166u8, 29u8, 231u8, + 48u8, 110u8, 195u8, 211u8, 149u8, 127u8, 243u8, 22u8, 2u8, + 191u8, 68u8, 128u8, 133u8, 246u8, 20u8, 158u8, 117u8, 181u8, + 154u8, 141u8, 104u8, 128u8, 68u8, ] { - let pallet = self.client.metadata().pallet("Democracy")?; + let pallet = metadata.pallet("Democracy")?; let constant = pallet.constant("PreimageByteDeposit")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -12959,18 +13316,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Democracy", "MaxVotes")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Democracy", "MaxVotes")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 218u8, 111u8, 73u8, 160u8, 254u8, 247u8, 22u8, 113u8, 78u8, + 79u8, 145u8, 255u8, 29u8, 155u8, 89u8, 144u8, 4u8, 167u8, + 134u8, 190u8, 232u8, 124u8, 36u8, 207u8, 7u8, 204u8, 40u8, + 32u8, 38u8, 216u8, 249u8, 29u8, ] { - let pallet = self.client.metadata().pallet("Democracy")?; + let pallet = metadata.pallet("Democracy")?; let constant = pallet.constant("MaxVotes")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -12984,18 +13340,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Democracy", "MaxProposals")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Democracy", "MaxProposals")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 125u8, 103u8, 31u8, 211u8, 29u8, 50u8, 100u8, 13u8, 229u8, + 120u8, 216u8, 228u8, 4u8, 121u8, 229u8, 90u8, 172u8, 228u8, + 86u8, 73u8, 64u8, 153u8, 249u8, 48u8, 232u8, 150u8, 150u8, + 65u8, 205u8, 182u8, 12u8, 81u8, ] { - let pallet = self.client.metadata().pallet("Democracy")?; + let pallet = metadata.pallet("Democracy")?; let constant = pallet.constant("MaxProposals")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -13018,7 +13373,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetMembers { pub new_members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, pub prime: ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, @@ -13028,7 +13383,7 @@ pub mod api { const PALLET: &'static str = "Council"; const FUNCTION: &'static str = "set_members"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Execute { pub proposal: ::std::boxed::Box, #[codec(compact)] @@ -13038,7 +13393,7 @@ pub mod api { const PALLET: &'static str = "Council"; const FUNCTION: &'static str = "execute"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Propose { #[codec(compact)] pub threshold: ::core::primitive::u32, @@ -13050,7 +13405,7 @@ pub mod api { const PALLET: &'static str = "Council"; const FUNCTION: &'static str = "propose"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Vote { pub proposal: ::subxt::sp_core::H256, #[codec(compact)] @@ -13061,7 +13416,7 @@ pub mod api { const PALLET: &'static str = "Council"; const FUNCTION: &'static str = "vote"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Close { pub proposal_hash: ::subxt::sp_core::H256, #[codec(compact)] @@ -13075,7 +13430,7 @@ pub mod api { const PALLET: &'static str = "Council"; const FUNCTION: &'static str = "close"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct DisapproveProposal { pub proposal_hash: ::subxt::sp_core::H256, } @@ -13146,7 +13501,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 228u8, 186u8, 17u8, 12u8, 231u8, 231u8, 139u8, 15u8, 96u8, 200u8, 68u8, 27u8, 61u8, 106u8, 245u8, 199u8, 120u8, 141u8, @@ -13190,7 +13547,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 170u8, 77u8, 65u8, 3u8, 95u8, 88u8, 81u8, 103u8, 220u8, 72u8, 237u8, 80u8, 181u8, 46u8, 196u8, 106u8, 142u8, 55u8, 244u8, @@ -13250,7 +13609,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 180u8, 170u8, 72u8, 21u8, 96u8, 25u8, 177u8, 147u8, 98u8, 143u8, 186u8, 112u8, 99u8, 197u8, 146u8, 170u8, 35u8, 195u8, @@ -13299,7 +13660,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 184u8, 236u8, 80u8, 133u8, 26u8, 207u8, 3u8, 2u8, 120u8, 27u8, 38u8, 135u8, 195u8, 86u8, 169u8, 229u8, 125u8, 253u8, @@ -13366,7 +13729,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 242u8, 208u8, 108u8, 202u8, 24u8, 139u8, 8u8, 150u8, 108u8, 217u8, 30u8, 209u8, 178u8, 1u8, 80u8, 25u8, 154u8, 146u8, @@ -13413,7 +13778,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 199u8, 113u8, 221u8, 167u8, 60u8, 241u8, 77u8, 166u8, 205u8, 191u8, 183u8, 121u8, 191u8, 206u8, 230u8, 212u8, 215u8, @@ -13432,7 +13799,7 @@ pub mod api { pub type Event = runtime_types::pallet_collective::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] #[doc = "`MemberCount`)."] pub struct Proposed { @@ -13445,7 +13812,7 @@ pub mod api { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Proposed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A motion (given hash) has been voted on by given account, leaving"] #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] pub struct Voted { @@ -13459,7 +13826,7 @@ pub mod api { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Voted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A motion was approved by the required threshold."] pub struct Approved { pub proposal_hash: ::subxt::sp_core::H256, @@ -13468,7 +13835,7 @@ pub mod api { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Approved"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A motion was not approved by the required threshold."] pub struct Disapproved { pub proposal_hash: ::subxt::sp_core::H256, @@ -13477,7 +13844,7 @@ pub mod api { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Disapproved"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A motion was executed; result will be `Ok` if it returned without error."] pub struct Executed { pub proposal_hash: ::subxt::sp_core::H256, @@ -13488,7 +13855,7 @@ pub mod api { const PALLET: &'static str = "Council"; const EVENT: &'static str = "Executed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A single member did some action; result will be `Ok` if it returned without error."] pub struct MemberExecuted { pub proposal_hash: ::subxt::sp_core::H256, @@ -13499,7 +13866,7 @@ pub mod api { const PALLET: &'static str = "Council"; const EVENT: &'static str = "MemberExecuted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] pub struct Closed { pub proposal_hash: ::subxt::sp_core::H256, @@ -13596,7 +13963,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 174u8, 75u8, 108u8, 245u8, 86u8, 50u8, 107u8, 212u8, 244u8, 113u8, 232u8, 168u8, 194u8, 33u8, 247u8, 97u8, 54u8, 115u8, @@ -13622,7 +13991,9 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 75u8, 36u8, 235u8, 242u8, 206u8, 251u8, 227u8, 94u8, 96u8, 26u8, 160u8, 127u8, 226u8, 27u8, 55u8, 177u8, 75u8, 102u8, @@ -13644,7 +14015,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ProposalOf<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 75u8, 36u8, 235u8, 242u8, 206u8, 251u8, 227u8, 94u8, 96u8, 26u8, 160u8, 127u8, 226u8, 27u8, 55u8, 177u8, 75u8, 102u8, @@ -13671,7 +14044,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 145u8, 223u8, 203u8, 2u8, 137u8, 33u8, 22u8, 239u8, 175u8, 149u8, 254u8, 185u8, 0u8, 139u8, 71u8, 134u8, 109u8, 95u8, @@ -13693,7 +14068,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Voting<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 145u8, 223u8, 203u8, 2u8, 137u8, 33u8, 22u8, 239u8, 175u8, 149u8, 254u8, 185u8, 0u8, 139u8, 71u8, 134u8, 109u8, 95u8, @@ -13712,7 +14089,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 132u8, 145u8, 78u8, 218u8, 51u8, 189u8, 55u8, 172u8, 143u8, 33u8, 140u8, 99u8, 124u8, 208u8, 57u8, 232u8, 154u8, 110u8, @@ -13737,7 +14116,9 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 136u8, 91u8, 140u8, 173u8, 238u8, 221u8, 4u8, 132u8, 238u8, 99u8, 195u8, 142u8, 10u8, 35u8, 210u8, 227u8, 22u8, 72u8, @@ -13762,7 +14143,9 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 70u8, 101u8, 20u8, 160u8, 173u8, 87u8, 190u8, 85u8, 60u8, 249u8, 144u8, 77u8, 175u8, 195u8, 51u8, 196u8, 234u8, 62u8, @@ -13790,7 +14173,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetMembers { pub new_members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, pub prime: ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, @@ -13800,7 +14183,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const FUNCTION: &'static str = "set_members"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Execute { pub proposal: ::std::boxed::Box, #[codec(compact)] @@ -13810,7 +14193,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const FUNCTION: &'static str = "execute"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Propose { #[codec(compact)] pub threshold: ::core::primitive::u32, @@ -13822,7 +14205,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const FUNCTION: &'static str = "propose"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Vote { pub proposal: ::subxt::sp_core::H256, #[codec(compact)] @@ -13833,7 +14216,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const FUNCTION: &'static str = "vote"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Close { pub proposal_hash: ::subxt::sp_core::H256, #[codec(compact)] @@ -13847,7 +14230,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const FUNCTION: &'static str = "close"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct DisapproveProposal { pub proposal_hash: ::subxt::sp_core::H256, } @@ -13918,7 +14301,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 228u8, 186u8, 17u8, 12u8, 231u8, 231u8, 139u8, 15u8, 96u8, 200u8, 68u8, 27u8, 61u8, 106u8, 245u8, 199u8, 120u8, 141u8, @@ -13962,7 +14347,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 170u8, 77u8, 65u8, 3u8, 95u8, 88u8, 81u8, 103u8, 220u8, 72u8, 237u8, 80u8, 181u8, 46u8, 196u8, 106u8, 142u8, 55u8, 244u8, @@ -14022,7 +14409,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 180u8, 170u8, 72u8, 21u8, 96u8, 25u8, 177u8, 147u8, 98u8, 143u8, 186u8, 112u8, 99u8, 197u8, 146u8, 170u8, 35u8, 195u8, @@ -14071,7 +14460,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 184u8, 236u8, 80u8, 133u8, 26u8, 207u8, 3u8, 2u8, 120u8, 27u8, 38u8, 135u8, 195u8, 86u8, 169u8, 229u8, 125u8, 253u8, @@ -14138,7 +14529,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 242u8, 208u8, 108u8, 202u8, 24u8, 139u8, 8u8, 150u8, 108u8, 217u8, 30u8, 209u8, 178u8, 1u8, 80u8, 25u8, 154u8, 146u8, @@ -14185,7 +14578,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 199u8, 113u8, 221u8, 167u8, 60u8, 241u8, 77u8, 166u8, 205u8, 191u8, 183u8, 121u8, 191u8, 206u8, 230u8, 212u8, 215u8, @@ -14204,7 +14599,7 @@ pub mod api { pub type Event = runtime_types::pallet_collective::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] #[doc = "`MemberCount`)."] pub struct Proposed { @@ -14217,7 +14612,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Proposed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A motion (given hash) has been voted on by given account, leaving"] #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] pub struct Voted { @@ -14231,7 +14626,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Voted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A motion was approved by the required threshold."] pub struct Approved { pub proposal_hash: ::subxt::sp_core::H256, @@ -14240,7 +14635,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Approved"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A motion was not approved by the required threshold."] pub struct Disapproved { pub proposal_hash: ::subxt::sp_core::H256, @@ -14249,7 +14644,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Disapproved"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A motion was executed; result will be `Ok` if it returned without error."] pub struct Executed { pub proposal_hash: ::subxt::sp_core::H256, @@ -14260,7 +14655,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Executed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A single member did some action; result will be `Ok` if it returned without error."] pub struct MemberExecuted { pub proposal_hash: ::subxt::sp_core::H256, @@ -14271,7 +14666,7 @@ pub mod api { const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "MemberExecuted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] pub struct Closed { pub proposal_hash: ::subxt::sp_core::H256, @@ -14368,7 +14763,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 174u8, 75u8, 108u8, 245u8, 86u8, 50u8, 107u8, 212u8, 244u8, 113u8, 232u8, 168u8, 194u8, 33u8, 247u8, 97u8, 54u8, 115u8, @@ -14394,7 +14791,9 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 75u8, 36u8, 235u8, 242u8, 206u8, 251u8, 227u8, 94u8, 96u8, 26u8, 160u8, 127u8, 226u8, 27u8, 55u8, 177u8, 75u8, 102u8, @@ -14416,7 +14815,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ProposalOf<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 75u8, 36u8, 235u8, 242u8, 206u8, 251u8, 227u8, 94u8, 96u8, 26u8, 160u8, 127u8, 226u8, 27u8, 55u8, 177u8, 75u8, 102u8, @@ -14443,7 +14844,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 145u8, 223u8, 203u8, 2u8, 137u8, 33u8, 22u8, 239u8, 175u8, 149u8, 254u8, 185u8, 0u8, 139u8, 71u8, 134u8, 109u8, 95u8, @@ -14465,7 +14868,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Voting<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 145u8, 223u8, 203u8, 2u8, 137u8, 33u8, 22u8, 239u8, 175u8, 149u8, 254u8, 185u8, 0u8, 139u8, 71u8, 134u8, 109u8, 95u8, @@ -14484,7 +14889,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 132u8, 145u8, 78u8, 218u8, 51u8, 189u8, 55u8, 172u8, 143u8, 33u8, 140u8, 99u8, 124u8, 208u8, 57u8, 232u8, 154u8, 110u8, @@ -14509,7 +14916,9 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 136u8, 91u8, 140u8, 173u8, 238u8, 221u8, 4u8, 132u8, 238u8, 99u8, 195u8, 142u8, 10u8, 35u8, 210u8, 227u8, 22u8, 72u8, @@ -14534,7 +14943,9 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 70u8, 101u8, 20u8, 160u8, 173u8, 87u8, 190u8, 85u8, 60u8, 249u8, 144u8, 77u8, 175u8, 195u8, 51u8, 196u8, 234u8, 62u8, @@ -14562,7 +14973,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Vote { pub votes: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, #[codec(compact)] @@ -14572,13 +14983,13 @@ pub mod api { const PALLET: &'static str = "PhragmenElection"; const FUNCTION: &'static str = "vote"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RemoveVoter; impl ::subxt::Call for RemoveVoter { const PALLET: &'static str = "PhragmenElection"; const FUNCTION: &'static str = "remove_voter"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SubmitCandidacy { #[codec(compact)] pub candidate_count: ::core::primitive::u32, @@ -14587,7 +14998,7 @@ pub mod api { const PALLET: &'static str = "PhragmenElection"; const FUNCTION: &'static str = "submit_candidacy"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RenounceCandidacy { pub renouncing: runtime_types::pallet_elections_phragmen::Renouncing, } @@ -14595,7 +15006,7 @@ pub mod api { const PALLET: &'static str = "PhragmenElection"; const FUNCTION: &'static str = "renounce_candidacy"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RemoveMember { pub who: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -14607,7 +15018,7 @@ pub mod api { const PALLET: &'static str = "PhragmenElection"; const FUNCTION: &'static str = "remove_member"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct CleanDefunctVoters { pub num_voters: ::core::primitive::u32, pub num_defunct: ::core::primitive::u32, @@ -14669,7 +15080,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 245u8, 122u8, 160u8, 64u8, 234u8, 121u8, 191u8, 224u8, 12u8, 16u8, 153u8, 70u8, 41u8, 236u8, 211u8, 145u8, 238u8, 112u8, @@ -14701,7 +15114,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 254u8, 46u8, 140u8, 4u8, 218u8, 45u8, 150u8, 72u8, 67u8, 131u8, 108u8, 201u8, 46u8, 157u8, 104u8, 161u8, 53u8, 155u8, @@ -14744,7 +15159,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 100u8, 38u8, 146u8, 5u8, 234u8, 101u8, 193u8, 9u8, 245u8, 237u8, 220u8, 21u8, 36u8, 64u8, 205u8, 103u8, 11u8, 194u8, @@ -14790,7 +15207,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 184u8, 45u8, 220u8, 198u8, 21u8, 54u8, 15u8, 235u8, 192u8, 78u8, 96u8, 172u8, 12u8, 152u8, 147u8, 183u8, 172u8, 85u8, @@ -14836,7 +15255,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 0u8, 99u8, 154u8, 250u8, 4u8, 102u8, 172u8, 220u8, 86u8, 147u8, 113u8, 248u8, 152u8, 189u8, 179u8, 149u8, 73u8, 97u8, @@ -14878,7 +15299,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 80u8, 248u8, 122u8, 6u8, 88u8, 255u8, 17u8, 206u8, 104u8, 208u8, 66u8, 191u8, 118u8, 163u8, 154u8, 9u8, 37u8, 106u8, @@ -14900,7 +15323,7 @@ pub mod api { pub type Event = runtime_types::pallet_elections_phragmen::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] #[doc = "the election, not that enough have has been elected. The inner value must be examined"] #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] @@ -14916,7 +15339,7 @@ pub mod api { const PALLET: &'static str = "PhragmenElection"; const EVENT: &'static str = "NewTerm"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "No (or not enough) candidates existed for this round. This is different from"] #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] pub struct EmptyTerm; @@ -14924,14 +15347,14 @@ pub mod api { const PALLET: &'static str = "PhragmenElection"; const EVENT: &'static str = "EmptyTerm"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Internal error happened while trying to perform election."] pub struct ElectionError; impl ::subxt::Event for ElectionError { const PALLET: &'static str = "PhragmenElection"; const EVENT: &'static str = "ElectionError"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] #[doc = "`EmptyTerm`."] pub struct MemberKicked { @@ -14941,7 +15364,7 @@ pub mod api { const PALLET: &'static str = "PhragmenElection"; const EVENT: &'static str = "MemberKicked"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Someone has renounced their candidacy."] pub struct Renounced { pub candidate: ::subxt::sp_core::crypto::AccountId32, @@ -14950,7 +15373,7 @@ pub mod api { const PALLET: &'static str = "PhragmenElection"; const EVENT: &'static str = "Renounced"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] #[doc = "runner-up."] #[doc = ""] @@ -14963,7 +15386,7 @@ pub mod api { const PALLET: &'static str = "PhragmenElection"; const EVENT: &'static str = "CandidateSlashed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] pub struct SeatHolderSlashed { pub seat_holder: ::subxt::sp_core::crypto::AccountId32, @@ -15062,7 +15485,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 193u8, 166u8, 79u8, 96u8, 31u8, 4u8, 133u8, 133u8, 115u8, 236u8, 253u8, 177u8, 176u8, 10u8, 50u8, 97u8, 254u8, 234u8, @@ -15095,7 +15520,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 59u8, 65u8, 218u8, 225u8, 49u8, 140u8, 168u8, 143u8, 195u8, 106u8, 207u8, 181u8, 157u8, 129u8, 140u8, 122u8, 145u8, @@ -15128,7 +15555,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 172u8, 196u8, 249u8, 114u8, 195u8, 161u8, 43u8, 219u8, 208u8, 127u8, 144u8, 87u8, 13u8, 253u8, 114u8, 209u8, 199u8, 65u8, @@ -15151,7 +15580,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 144u8, 146u8, 10u8, 32u8, 149u8, 147u8, 59u8, 205u8, 61u8, 246u8, 28u8, 169u8, 130u8, 136u8, 143u8, 104u8, 253u8, 86u8, @@ -15182,7 +15613,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 107u8, 14u8, 228u8, 167u8, 43u8, 105u8, 221u8, 70u8, 234u8, 157u8, 36u8, 16u8, 63u8, 225u8, 89u8, 111u8, 201u8, 172u8, @@ -15209,7 +15642,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Voting<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 107u8, 14u8, 228u8, 167u8, 43u8, 105u8, 221u8, 70u8, 234u8, 157u8, 36u8, 16u8, 63u8, 225u8, 89u8, 111u8, 201u8, 172u8, @@ -15240,18 +15675,17 @@ pub mod api { [::core::primitive::u8; 8usize], ::subxt::BasicError, > { - if self - .client - .metadata() - .constant_hash("PhragmenElection", "PalletId")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("PhragmenElection", "PalletId")? == [ - 224u8, 197u8, 247u8, 125u8, 62u8, 180u8, 69u8, 91u8, 226u8, - 36u8, 82u8, 148u8, 70u8, 147u8, 209u8, 40u8, 210u8, 229u8, - 181u8, 191u8, 170u8, 205u8, 138u8, 97u8, 127u8, 59u8, 124u8, - 244u8, 252u8, 30u8, 213u8, 179u8, + 95u8, 63u8, 229u8, 200u8, 231u8, 11u8, 95u8, 106u8, 62u8, + 240u8, 37u8, 146u8, 230u8, 74u8, 169u8, 185u8, 160u8, 90u8, + 136u8, 209u8, 127u8, 221u8, 173u8, 200u8, 243u8, 198u8, 18u8, + 226u8, 144u8, 188u8, 105u8, 230u8, ] { - let pallet = self.client.metadata().pallet("PhragmenElection")?; + let pallet = metadata.pallet("PhragmenElection")?; let constant = pallet.constant("PalletId")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -15265,18 +15699,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("PhragmenElection", "CandidacyBond")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("PhragmenElection", "CandidacyBond")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 14u8, 234u8, 73u8, 125u8, 101u8, 97u8, 55u8, 15u8, 230u8, + 193u8, 135u8, 62u8, 132u8, 7u8, 151u8, 65u8, 210u8, 170u8, + 155u8, 50u8, 143u8, 209u8, 184u8, 111u8, 170u8, 206u8, 167u8, + 195u8, 213u8, 27u8, 123u8, 241u8, ] { - let pallet = self.client.metadata().pallet("PhragmenElection")?; + let pallet = metadata.pallet("PhragmenElection")?; let constant = pallet.constant("CandidacyBond")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -15293,18 +15726,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("PhragmenElection", "VotingBondBase")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("PhragmenElection", "VotingBondBase")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 180u8, 167u8, 175u8, 40u8, 243u8, 172u8, 143u8, 55u8, 194u8, + 84u8, 98u8, 81u8, 247u8, 171u8, 109u8, 53u8, 136u8, 143u8, + 225u8, 114u8, 75u8, 55u8, 241u8, 160u8, 116u8, 229u8, 255u8, + 7u8, 104u8, 187u8, 103u8, 64u8, ] { - let pallet = self.client.metadata().pallet("PhragmenElection")?; + let pallet = metadata.pallet("PhragmenElection")?; let constant = pallet.constant("VotingBondBase")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -15318,18 +15750,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("PhragmenElection", "VotingBondFactor")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("PhragmenElection", "VotingBondFactor")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 221u8, 163u8, 2u8, 102u8, 69u8, 249u8, 39u8, 153u8, 236u8, + 75u8, 249u8, 122u8, 29u8, 193u8, 16u8, 199u8, 113u8, 87u8, + 171u8, 97u8, 72u8, 40u8, 76u8, 2u8, 35u8, 125u8, 30u8, 126u8, + 137u8, 118u8, 98u8, 147u8, ] { - let pallet = self.client.metadata().pallet("PhragmenElection")?; + let pallet = metadata.pallet("PhragmenElection")?; let constant = pallet.constant("VotingBondFactor")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -15343,18 +15774,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("PhragmenElection", "DesiredMembers")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("PhragmenElection", "DesiredMembers")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 202u8, 93u8, 82u8, 184u8, 101u8, 152u8, 110u8, 247u8, 155u8, + 43u8, 205u8, 219u8, 41u8, 184u8, 141u8, 32u8, 33u8, 30u8, + 129u8, 33u8, 132u8, 18u8, 172u8, 114u8, 226u8, 81u8, 21u8, + 55u8, 197u8, 42u8, 65u8, 162u8, ] { - let pallet = self.client.metadata().pallet("PhragmenElection")?; + let pallet = metadata.pallet("PhragmenElection")?; let constant = pallet.constant("DesiredMembers")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -15368,18 +15798,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("PhragmenElection", "DesiredRunnersUp")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("PhragmenElection", "DesiredRunnersUp")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 126u8, 79u8, 206u8, 94u8, 16u8, 223u8, 112u8, 34u8, 160u8, + 227u8, 74u8, 26u8, 14u8, 191u8, 98u8, 119u8, 230u8, 187u8, + 18u8, 37u8, 13u8, 143u8, 128u8, 62u8, 131u8, 158u8, 138u8, + 110u8, 16u8, 216u8, 42u8, 113u8, ] { - let pallet = self.client.metadata().pallet("PhragmenElection")?; + let pallet = metadata.pallet("PhragmenElection")?; let constant = pallet.constant("DesiredRunnersUp")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -15395,18 +15824,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("PhragmenElection", "TermDuration")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("PhragmenElection", "TermDuration")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 193u8, 236u8, 82u8, 251u8, 38u8, 164u8, 72u8, 149u8, 65u8, + 240u8, 45u8, 82u8, 210u8, 168u8, 68u8, 219u8, 11u8, 241u8, + 118u8, 117u8, 248u8, 9u8, 1u8, 187u8, 98u8, 189u8, 18u8, + 119u8, 255u8, 89u8, 192u8, 231u8, ] { - let pallet = self.client.metadata().pallet("PhragmenElection")?; + let pallet = metadata.pallet("PhragmenElection")?; let constant = pallet.constant("TermDuration")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -15429,7 +15857,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct AddMember { pub who: ::subxt::sp_core::crypto::AccountId32, } @@ -15437,7 +15865,7 @@ pub mod api { const PALLET: &'static str = "TechnicalMembership"; const FUNCTION: &'static str = "add_member"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RemoveMember { pub who: ::subxt::sp_core::crypto::AccountId32, } @@ -15445,7 +15873,7 @@ pub mod api { const PALLET: &'static str = "TechnicalMembership"; const FUNCTION: &'static str = "remove_member"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SwapMember { pub remove: ::subxt::sp_core::crypto::AccountId32, pub add: ::subxt::sp_core::crypto::AccountId32, @@ -15454,7 +15882,7 @@ pub mod api { const PALLET: &'static str = "TechnicalMembership"; const FUNCTION: &'static str = "swap_member"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ResetMembers { pub members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, } @@ -15462,7 +15890,7 @@ pub mod api { const PALLET: &'static str = "TechnicalMembership"; const FUNCTION: &'static str = "reset_members"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ChangeKey { pub new: ::subxt::sp_core::crypto::AccountId32, } @@ -15470,7 +15898,7 @@ pub mod api { const PALLET: &'static str = "TechnicalMembership"; const FUNCTION: &'static str = "change_key"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetPrime { pub who: ::subxt::sp_core::crypto::AccountId32, } @@ -15478,7 +15906,7 @@ pub mod api { const PALLET: &'static str = "TechnicalMembership"; const FUNCTION: &'static str = "set_prime"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ClearPrime; impl ::subxt::Call for ClearPrime { const PALLET: &'static str = "TechnicalMembership"; @@ -15516,7 +15944,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 1u8, 149u8, 115u8, 222u8, 93u8, 9u8, 208u8, 58u8, 22u8, 148u8, 215u8, 141u8, 204u8, 48u8, 107u8, 210u8, 202u8, 165u8, @@ -15547,7 +15977,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 137u8, 249u8, 148u8, 139u8, 147u8, 47u8, 226u8, 228u8, 139u8, 219u8, 109u8, 128u8, 254u8, 51u8, 227u8, 154u8, 105u8, 91u8, @@ -15581,7 +16013,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 159u8, 62u8, 254u8, 117u8, 56u8, 185u8, 99u8, 29u8, 146u8, 210u8, 40u8, 77u8, 169u8, 224u8, 215u8, 34u8, 106u8, 95u8, @@ -15613,7 +16047,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 246u8, 84u8, 91u8, 191u8, 61u8, 245u8, 171u8, 80u8, 18u8, 120u8, 61u8, 86u8, 23u8, 115u8, 161u8, 203u8, 128u8, 34u8, @@ -15646,7 +16082,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 198u8, 93u8, 41u8, 52u8, 241u8, 11u8, 225u8, 82u8, 30u8, 114u8, 111u8, 204u8, 13u8, 31u8, 34u8, 82u8, 171u8, 58u8, @@ -15677,7 +16115,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 185u8, 53u8, 61u8, 154u8, 234u8, 77u8, 195u8, 126u8, 19u8, 39u8, 78u8, 205u8, 109u8, 210u8, 137u8, 245u8, 128u8, 110u8, @@ -15707,7 +16147,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 186u8, 182u8, 225u8, 90u8, 71u8, 124u8, 69u8, 100u8, 234u8, 25u8, 53u8, 23u8, 182u8, 32u8, 176u8, 81u8, 54u8, 140u8, @@ -15726,42 +16168,42 @@ pub mod api { pub type Event = runtime_types::pallet_membership::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The given member was added; see the transaction for who."] pub struct MemberAdded; impl ::subxt::Event for MemberAdded { const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "MemberAdded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The given member was removed; see the transaction for who."] pub struct MemberRemoved; impl ::subxt::Event for MemberRemoved { const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "MemberRemoved"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Two members were swapped; see the transaction for who."] pub struct MembersSwapped; impl ::subxt::Event for MembersSwapped { const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "MembersSwapped"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The membership was reset; see the transaction for who the new set is."] pub struct MembersReset; impl ::subxt::Event for MembersReset { const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "MembersReset"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "One of the members' keys changed."] pub struct KeyChanged; impl ::subxt::Event for KeyChanged { const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "KeyChanged"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Phantom member, never used."] pub struct Dummy; impl ::subxt::Event for Dummy { @@ -15804,7 +16246,9 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 136u8, 91u8, 140u8, 173u8, 238u8, 221u8, 4u8, 132u8, 238u8, 99u8, 195u8, 142u8, 10u8, 35u8, 210u8, 227u8, 22u8, 72u8, @@ -15829,7 +16273,9 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 70u8, 101u8, 20u8, 160u8, 173u8, 87u8, 190u8, 85u8, 60u8, 249u8, 144u8, 77u8, 175u8, 195u8, 51u8, 196u8, 234u8, 62u8, @@ -15857,7 +16303,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ProposeSpend { #[codec(compact)] pub value: ::core::primitive::u128, @@ -15870,7 +16316,7 @@ pub mod api { const PALLET: &'static str = "Treasury"; const FUNCTION: &'static str = "propose_spend"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RejectProposal { #[codec(compact)] pub proposal_id: ::core::primitive::u32, @@ -15879,7 +16325,7 @@ pub mod api { const PALLET: &'static str = "Treasury"; const FUNCTION: &'static str = "reject_proposal"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ApproveProposal { #[codec(compact)] pub proposal_id: ::core::primitive::u32, @@ -15930,7 +16376,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 117u8, 11u8, 194u8, 76u8, 160u8, 114u8, 119u8, 94u8, 47u8, 239u8, 193u8, 54u8, 42u8, 208u8, 225u8, 47u8, 22u8, 90u8, @@ -15967,7 +16415,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 153u8, 238u8, 223u8, 212u8, 86u8, 178u8, 184u8, 150u8, 117u8, 91u8, 69u8, 30u8, 196u8, 134u8, 56u8, 54u8, 236u8, 145u8, @@ -16005,7 +16455,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 191u8, 81u8, 78u8, 230u8, 230u8, 192u8, 144u8, 232u8, 81u8, 70u8, 227u8, 212u8, 194u8, 228u8, 231u8, 147u8, 57u8, 222u8, @@ -16025,10 +16477,10 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "New proposal."] pub struct Proposed { @@ -16039,10 +16491,10 @@ pub mod api { const EVENT: &'static str = "Proposed"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "We have ended a spend period and will now allocate funds."] pub struct Spending { @@ -16052,7 +16504,7 @@ pub mod api { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Spending"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Some funds have been allocated."] pub struct Awarded { pub proposal_index: ::core::primitive::u32, @@ -16063,7 +16515,7 @@ pub mod api { const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Awarded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A proposal was rejected; funds were slashed."] pub struct Rejected { pub proposal_index: ::core::primitive::u32, @@ -16074,10 +16526,10 @@ pub mod api { const EVENT: &'static str = "Rejected"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "Some of our funds have been burnt."] pub struct Burnt { @@ -16088,10 +16540,10 @@ pub mod api { const EVENT: &'static str = "Burnt"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "Spending has finished; this is the amount that rolls over until next spend."] pub struct Rollover { @@ -16102,10 +16554,10 @@ pub mod api { const EVENT: &'static str = "Rollover"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "Some funds have been deposited."] pub struct Deposit { @@ -16167,7 +16619,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 132u8, 145u8, 78u8, 218u8, 51u8, 189u8, 55u8, 172u8, 143u8, 33u8, 140u8, 99u8, 124u8, 208u8, 57u8, 232u8, 154u8, 110u8, @@ -16198,7 +16652,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 46u8, 242u8, 203u8, 56u8, 166u8, 200u8, 95u8, 110u8, 47u8, 71u8, 71u8, 45u8, 12u8, 93u8, 222u8, 120u8, 40u8, 130u8, @@ -16220,7 +16676,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Proposals<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 46u8, 242u8, 203u8, 56u8, 166u8, 200u8, 95u8, 110u8, 47u8, 71u8, 71u8, 45u8, 12u8, 93u8, 222u8, 120u8, 40u8, 130u8, @@ -16243,7 +16701,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 152u8, 185u8, 127u8, 54u8, 169u8, 155u8, 124u8, 22u8, 142u8, 132u8, 254u8, 197u8, 162u8, 152u8, 15u8, 18u8, 192u8, 138u8, @@ -16279,18 +16739,17 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Permill, ::subxt::BasicError, > { - if self - .client - .metadata() - .constant_hash("Treasury", "ProposalBond")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Treasury", "ProposalBond")? == [ - 26u8, 148u8, 47u8, 190u8, 51u8, 71u8, 203u8, 119u8, 167u8, - 91u8, 70u8, 11u8, 149u8, 155u8, 138u8, 91u8, 119u8, 0u8, - 74u8, 83u8, 16u8, 47u8, 129u8, 11u8, 81u8, 169u8, 79u8, 31u8, - 161u8, 119u8, 2u8, 38u8, + 254u8, 112u8, 56u8, 108u8, 71u8, 90u8, 128u8, 114u8, 54u8, + 239u8, 87u8, 235u8, 71u8, 56u8, 11u8, 132u8, 179u8, 134u8, + 115u8, 139u8, 109u8, 136u8, 59u8, 69u8, 108u8, 160u8, 18u8, + 120u8, 34u8, 213u8, 166u8, 13u8, ] { - let pallet = self.client.metadata().pallet("Treasury")?; + let pallet = metadata.pallet("Treasury")?; let constant = pallet.constant("ProposalBond")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -16304,18 +16763,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Treasury", "ProposalBondMinimum")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Treasury", "ProposalBondMinimum")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 233u8, 16u8, 162u8, 158u8, 32u8, 30u8, 243u8, 215u8, 145u8, + 211u8, 68u8, 173u8, 77u8, 212u8, 78u8, 195u8, 144u8, 4u8, + 72u8, 249u8, 90u8, 11u8, 26u8, 64u8, 65u8, 90u8, 193u8, 69u8, + 145u8, 33u8, 163u8, 122u8, ] { - let pallet = self.client.metadata().pallet("Treasury")?; + let pallet = metadata.pallet("Treasury")?; let constant = pallet.constant("ProposalBondMinimum")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -16331,18 +16789,17 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - if self - .client - .metadata() - .constant_hash("Treasury", "ProposalBondMaximum")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Treasury", "ProposalBondMaximum")? == [ - 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, 120u8, - 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, 193u8, 120u8, 198u8, - 154u8, 237u8, 134u8, 204u8, 102u8, 247u8, 52u8, 103u8, 231u8, - 43u8, 243u8, 122u8, 60u8, 216u8, + 12u8, 199u8, 104u8, 127u8, 224u8, 233u8, 186u8, 181u8, 74u8, + 51u8, 175u8, 78u8, 57u8, 170u8, 220u8, 114u8, 122u8, 205u8, + 53u8, 5u8, 92u8, 121u8, 71u8, 10u8, 35u8, 190u8, 184u8, + 233u8, 193u8, 92u8, 27u8, 189u8, ] { - let pallet = self.client.metadata().pallet("Treasury")?; + let pallet = metadata.pallet("Treasury")?; let constant = pallet.constant("ProposalBondMaximum")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -16356,18 +16813,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Treasury", "SpendPeriod")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Treasury", "SpendPeriod")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 71u8, 58u8, 201u8, 70u8, 240u8, 191u8, 67u8, 71u8, 12u8, + 146u8, 142u8, 91u8, 114u8, 44u8, 213u8, 89u8, 113u8, 124u8, + 210u8, 82u8, 61u8, 48u8, 9u8, 121u8, 236u8, 143u8, 99u8, + 246u8, 5u8, 195u8, 15u8, 247u8, ] { - let pallet = self.client.metadata().pallet("Treasury")?; + let pallet = metadata.pallet("Treasury")?; let constant = pallet.constant("SpendPeriod")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -16383,15 +16839,17 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Permill, ::subxt::BasicError, > { - if self.client.metadata().constant_hash("Treasury", "Burn")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Treasury", "Burn")? == [ - 26u8, 148u8, 47u8, 190u8, 51u8, 71u8, 203u8, 119u8, 167u8, - 91u8, 70u8, 11u8, 149u8, 155u8, 138u8, 91u8, 119u8, 0u8, - 74u8, 83u8, 16u8, 47u8, 129u8, 11u8, 81u8, 169u8, 79u8, 31u8, - 161u8, 119u8, 2u8, 38u8, + 179u8, 112u8, 148u8, 197u8, 209u8, 103u8, 231u8, 44u8, 227u8, + 103u8, 105u8, 229u8, 107u8, 183u8, 25u8, 151u8, 112u8, 20u8, + 24u8, 1u8, 72u8, 183u8, 179u8, 243u8, 0u8, 136u8, 204u8, + 139u8, 164u8, 52u8, 22u8, 168u8, ] { - let pallet = self.client.metadata().pallet("Treasury")?; + let pallet = metadata.pallet("Treasury")?; let constant = pallet.constant("Burn")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -16407,18 +16865,17 @@ pub mod api { runtime_types::frame_support::PalletId, ::subxt::BasicError, > { - if self - .client - .metadata() - .constant_hash("Treasury", "PalletId")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Treasury", "PalletId")? == [ - 11u8, 72u8, 189u8, 18u8, 254u8, 229u8, 67u8, 29u8, 4u8, - 241u8, 192u8, 5u8, 210u8, 194u8, 124u8, 31u8, 19u8, 174u8, - 240u8, 245u8, 169u8, 141u8, 67u8, 251u8, 106u8, 103u8, 15u8, - 167u8, 107u8, 31u8, 121u8, 239u8, + 65u8, 140u8, 92u8, 164u8, 174u8, 209u8, 169u8, 31u8, 29u8, + 55u8, 10u8, 151u8, 10u8, 165u8, 68u8, 7u8, 110u8, 108u8, + 233u8, 42u8, 19u8, 211u8, 98u8, 108u8, 73u8, 14u8, 235u8, + 97u8, 23u8, 118u8, 211u8, 21u8, ] { - let pallet = self.client.metadata().pallet("Treasury")?; + let pallet = metadata.pallet("Treasury")?; let constant = pallet.constant("PalletId")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -16434,18 +16891,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Treasury", "MaxApprovals")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Treasury", "MaxApprovals")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 90u8, 101u8, 189u8, 20u8, 137u8, 178u8, 7u8, 81u8, 148u8, + 6u8, 59u8, 229u8, 228u8, 66u8, 13u8, 179u8, 199u8, 159u8, + 168u8, 227u8, 3u8, 76u8, 124u8, 35u8, 199u8, 142u8, 79u8, + 78u8, 254u8, 63u8, 2u8, 175u8, ] { - let pallet = self.client.metadata().pallet("Treasury")?; + let pallet = metadata.pallet("Treasury")?; let constant = pallet.constant("MaxApprovals")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -16468,7 +16924,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Claim { pub dest: ::subxt::sp_core::crypto::AccountId32, pub ethereum_signature: @@ -16478,7 +16934,7 @@ pub mod api { const PALLET: &'static str = "Claims"; const FUNCTION: &'static str = "claim"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct MintClaim { pub who: runtime_types::polkadot_runtime_common::claims::EthereumAddress, pub value: ::core::primitive::u128, @@ -16495,7 +16951,7 @@ pub mod api { const PALLET: &'static str = "Claims"; const FUNCTION: &'static str = "mint_claim"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ClaimAttest { pub dest: ::subxt::sp_core::crypto::AccountId32, pub ethereum_signature: @@ -16506,7 +16962,7 @@ pub mod api { const PALLET: &'static str = "Claims"; const FUNCTION: &'static str = "claim_attest"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Attest { pub statement: ::std::vec::Vec<::core::primitive::u8>, } @@ -16514,7 +16970,7 @@ pub mod api { const PALLET: &'static str = "Claims"; const FUNCTION: &'static str = "attest"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct MoveClaim { pub old: runtime_types::polkadot_runtime_common::claims::EthereumAddress, pub new: runtime_types::polkadot_runtime_common::claims::EthereumAddress, @@ -16579,7 +17035,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 8u8, 205u8, 188u8, 57u8, 197u8, 203u8, 156u8, 65u8, 246u8, 236u8, 199u8, 6u8, 152u8, 34u8, 251u8, 178u8, 206u8, 127u8, @@ -16634,7 +17092,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 10u8, 141u8, 200u8, 102u8, 21u8, 205u8, 178u8, 247u8, 154u8, 245u8, 172u8, 178u8, 26u8, 249u8, 179u8, 236u8, 198u8, 4u8, @@ -16695,7 +17155,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 116u8, 181u8, 28u8, 215u8, 245u8, 86u8, 215u8, 114u8, 201u8, 250u8, 168u8, 43u8, 91u8, 74u8, 0u8, 61u8, 40u8, 135u8, 6u8, @@ -16744,7 +17206,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 7u8, 206u8, 87u8, 155u8, 225u8, 220u8, 145u8, 206u8, 87u8, 132u8, 171u8, 67u8, 104u8, 91u8, 247u8, 39u8, 114u8, 156u8, @@ -16776,7 +17240,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 7u8, 59u8, 57u8, 165u8, 149u8, 105u8, 40u8, 11u8, 62u8, 212u8, 35u8, 185u8, 38u8, 244u8, 14u8, 170u8, 73u8, 160u8, @@ -16799,7 +17265,7 @@ pub mod api { pub type Event = runtime_types::polkadot_runtime_common::claims::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Someone claimed some DOTs. `[who, ethereum_address, amount]`"] pub struct Claimed( pub ::subxt::sp_core::crypto::AccountId32, @@ -16897,7 +17363,9 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 66u8, 232u8, 109u8, 190u8, 15u8, 207u8, 114u8, 12u8, 91u8, 228u8, 103u8, 37u8, 152u8, 245u8, 51u8, 121u8, 179u8, 228u8, @@ -16918,7 +17386,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Claims<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 66u8, 232u8, 109u8, 190u8, 15u8, 207u8, 114u8, 12u8, 91u8, 228u8, 103u8, 37u8, 152u8, 245u8, 51u8, 121u8, 179u8, 228u8, @@ -16936,7 +17406,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 162u8, 59u8, 237u8, 63u8, 23u8, 44u8, 74u8, 169u8, 131u8, 166u8, 174u8, 61u8, 127u8, 165u8, 32u8, 115u8, 73u8, 171u8, @@ -16969,7 +17441,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 22u8, 177u8, 83u8, 172u8, 137u8, 213u8, 11u8, 74u8, 192u8, 92u8, 96u8, 63u8, 139u8, 156u8, 62u8, 207u8, 47u8, 156u8, @@ -16994,7 +17468,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Vesting<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 22u8, 177u8, 83u8, 172u8, 137u8, 213u8, 11u8, 74u8, 192u8, 92u8, 96u8, 63u8, 139u8, 156u8, 62u8, 207u8, 47u8, 156u8, @@ -17018,7 +17494,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 85u8, 167u8, 23u8, 218u8, 101u8, 189u8, 129u8, 64u8, 189u8, 159u8, 108u8, 22u8, 234u8, 189u8, 122u8, 145u8, 225u8, 202u8, @@ -17040,7 +17518,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Signing<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 85u8, 167u8, 23u8, 218u8, 101u8, 189u8, 129u8, 64u8, 189u8, 159u8, 108u8, 22u8, 234u8, 189u8, 122u8, 145u8, 225u8, 202u8, @@ -17064,7 +17544,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 174u8, 208u8, 119u8, 9u8, 98u8, 68u8, 27u8, 159u8, 132u8, 22u8, 72u8, 80u8, 83u8, 147u8, 224u8, 241u8, 98u8, 143u8, @@ -17086,7 +17568,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Preclaims<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 174u8, 208u8, 119u8, 9u8, 98u8, 68u8, 27u8, 159u8, 132u8, 22u8, 72u8, 80u8, 83u8, 147u8, 224u8, 241u8, 98u8, 143u8, @@ -17116,15 +17600,17 @@ pub mod api { ::std::vec::Vec<::core::primitive::u8>, ::subxt::BasicError, > { - if self.client.metadata().constant_hash("Claims", "Prefix")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Claims", "Prefix")? == [ - 106u8, 50u8, 57u8, 116u8, 43u8, 202u8, 37u8, 248u8, 102u8, - 22u8, 62u8, 22u8, 242u8, 54u8, 152u8, 168u8, 107u8, 64u8, - 72u8, 172u8, 124u8, 40u8, 42u8, 110u8, 104u8, 145u8, 31u8, - 144u8, 242u8, 189u8, 145u8, 208u8, + 151u8, 15u8, 166u8, 7u8, 98u8, 182u8, 188u8, 119u8, 175u8, + 44u8, 205u8, 188u8, 45u8, 196u8, 52u8, 235u8, 147u8, 241u8, + 62u8, 53u8, 48u8, 127u8, 177u8, 227u8, 224u8, 81u8, 58u8, + 244u8, 157u8, 148u8, 127u8, 80u8, ] { - let pallet = self.client.metadata().pallet("Claims")?; + let pallet = metadata.pallet("Claims")?; let constant = pallet.constant("Prefix")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -17147,13 +17633,13 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Vest; impl ::subxt::Call for Vest { const PALLET: &'static str = "Vesting"; const FUNCTION: &'static str = "vest"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct VestOther { pub target: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -17164,7 +17650,7 @@ pub mod api { const PALLET: &'static str = "Vesting"; const FUNCTION: &'static str = "vest_other"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct VestedTransfer { pub target: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -17179,7 +17665,7 @@ pub mod api { const PALLET: &'static str = "Vesting"; const FUNCTION: &'static str = "vested_transfer"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceVestedTransfer { pub source: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -17198,7 +17684,7 @@ pub mod api { const PALLET: &'static str = "Vesting"; const FUNCTION: &'static str = "force_vested_transfer"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct MergeSchedules { pub schedule1_index: ::core::primitive::u32, pub schedule2_index: ::core::primitive::u32, @@ -17248,7 +17734,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 123u8, 54u8, 10u8, 208u8, 154u8, 24u8, 39u8, 166u8, 64u8, 27u8, 74u8, 29u8, 243u8, 97u8, 155u8, 5u8, 130u8, 155u8, @@ -17294,7 +17782,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 220u8, 214u8, 201u8, 84u8, 89u8, 137u8, 126u8, 80u8, 57u8, 1u8, 178u8, 144u8, 1u8, 79u8, 232u8, 136u8, 62u8, 227u8, @@ -17346,7 +17836,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 117u8, 107u8, 28u8, 234u8, 240u8, 253u8, 122u8, 25u8, 134u8, 41u8, 162u8, 36u8, 157u8, 82u8, 214u8, 174u8, 132u8, 24u8, @@ -17403,7 +17895,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 32u8, 195u8, 99u8, 57u8, 6u8, 182u8, 106u8, 47u8, 9u8, 19u8, 255u8, 80u8, 244u8, 205u8, 129u8, 78u8, 6u8, 215u8, 224u8, @@ -17457,7 +17951,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 185u8, 253u8, 214u8, 24u8, 208u8, 226u8, 0u8, 212u8, 92u8, 174u8, 252u8, 44u8, 250u8, 96u8, 66u8, 55u8, 88u8, 252u8, @@ -17479,7 +17975,7 @@ pub mod api { pub type Event = runtime_types::pallet_vesting::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The amount vested has been updated. This could indicate a change in funds available."] #[doc = "The balance given is the amount which is left unvested (and thus locked)."] pub struct VestingUpdated { @@ -17490,7 +17986,7 @@ pub mod api { const PALLET: &'static str = "Vesting"; const EVENT: &'static str = "VestingUpdated"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An \\[account\\] has become fully vested."] pub struct VestingCompleted { pub account: ::subxt::sp_core::crypto::AccountId32, @@ -17552,7 +18048,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 237u8, 216u8, 145u8, 89u8, 52u8, 38u8, 126u8, 212u8, 173u8, 3u8, 57u8, 156u8, 208u8, 160u8, 249u8, 177u8, 83u8, 140u8, @@ -17574,7 +18072,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Vesting<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 237u8, 216u8, 145u8, 89u8, 52u8, 38u8, 126u8, 212u8, 173u8, 3u8, 57u8, 156u8, 208u8, 160u8, 249u8, 177u8, 83u8, 140u8, @@ -17597,7 +18097,9 @@ pub mod api { runtime_types::pallet_vesting::Releases, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 50u8, 143u8, 26u8, 88u8, 129u8, 31u8, 61u8, 118u8, 19u8, 202u8, 119u8, 160u8, 34u8, 219u8, 60u8, 57u8, 189u8, 66u8, @@ -17630,18 +18132,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Vesting", "MinVestedTransfer")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Vesting", "MinVestedTransfer")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 92u8, 250u8, 99u8, 224u8, 124u8, 3u8, 41u8, 238u8, 116u8, + 235u8, 81u8, 85u8, 152u8, 180u8, 129u8, 205u8, 190u8, 88u8, + 54u8, 86u8, 184u8, 185u8, 221u8, 85u8, 203u8, 161u8, 201u8, + 77u8, 143u8, 170u8, 128u8, 176u8, ] { - let pallet = self.client.metadata().pallet("Vesting")?; + let pallet = metadata.pallet("Vesting")?; let constant = pallet.constant("MinVestedTransfer")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -17654,18 +18155,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Vesting", "MaxVestingSchedules")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Vesting", "MaxVestingSchedules")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 156u8, 82u8, 251u8, 182u8, 112u8, 167u8, 99u8, 73u8, 181u8, + 140u8, 52u8, 5u8, 46u8, 113u8, 139u8, 65u8, 61u8, 139u8, + 212u8, 238u8, 240u8, 112u8, 245u8, 187u8, 124u8, 21u8, 211u8, + 130u8, 61u8, 48u8, 245u8, 137u8, ] { - let pallet = self.client.metadata().pallet("Vesting")?; + let pallet = metadata.pallet("Vesting")?; let constant = pallet.constant("MaxVestingSchedules")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -17688,7 +18188,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Batch { pub calls: ::std::vec::Vec, } @@ -17696,7 +18196,7 @@ pub mod api { const PALLET: &'static str = "Utility"; const FUNCTION: &'static str = "batch"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct AsDerivative { pub index: ::core::primitive::u16, pub call: ::std::boxed::Box, @@ -17705,7 +18205,7 @@ pub mod api { const PALLET: &'static str = "Utility"; const FUNCTION: &'static str = "as_derivative"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct BatchAll { pub calls: ::std::vec::Vec, } @@ -17713,7 +18213,7 @@ pub mod api { const PALLET: &'static str = "Utility"; const FUNCTION: &'static str = "batch_all"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct DispatchAs { pub as_origin: ::std::boxed::Box, @@ -17771,7 +18271,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 102u8, 106u8, 179u8, 188u8, 99u8, 111u8, 210u8, 69u8, 179u8, 206u8, 207u8, 163u8, 116u8, 184u8, 55u8, 228u8, 157u8, 241u8, @@ -17813,7 +18315,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 195u8, 145u8, 176u8, 37u8, 226u8, 104u8, 213u8, 93u8, 246u8, 7u8, 117u8, 101u8, 123u8, 125u8, 244u8, 74u8, 67u8, 118u8, @@ -17858,7 +18362,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 199u8, 220u8, 25u8, 148u8, 69u8, 105u8, 234u8, 113u8, 221u8, 220u8, 186u8, 34u8, 184u8, 101u8, 41u8, 87u8, 134u8, 92u8, @@ -17897,7 +18403,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 188u8, 19u8, 178u8, 56u8, 121u8, 41u8, 46u8, 232u8, 118u8, 56u8, 66u8, 6u8, 174u8, 184u8, 92u8, 66u8, 178u8, 213u8, @@ -17919,7 +18427,7 @@ pub mod api { pub type Event = runtime_types::pallet_utility::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] #[doc = "well as the error."] pub struct BatchInterrupted { @@ -17930,21 +18438,21 @@ pub mod api { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "BatchInterrupted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Batch of dispatches completed fully with no error."] pub struct BatchCompleted; impl ::subxt::Event for BatchCompleted { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "BatchCompleted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A single item within a Batch of dispatches has completed with no error."] pub struct ItemCompleted; impl ::subxt::Event for ItemCompleted { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "ItemCompleted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A call was dispatched."] pub struct DispatchedAs { pub result: @@ -17969,18 +18477,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Utility", "batched_calls_limit")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Utility", "batched_calls_limit")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 230u8, 161u8, 6u8, 191u8, 162u8, 108u8, 149u8, 245u8, 68u8, + 101u8, 120u8, 129u8, 140u8, 51u8, 77u8, 97u8, 30u8, 155u8, + 115u8, 70u8, 72u8, 235u8, 251u8, 192u8, 5u8, 8u8, 188u8, + 72u8, 132u8, 227u8, 44u8, 2u8, ] { - let pallet = self.client.metadata().pallet("Utility")?; + let pallet = metadata.pallet("Utility")?; let constant = pallet.constant("batched_calls_limit")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -18003,7 +18510,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct AddRegistrar { pub account: ::subxt::sp_core::crypto::AccountId32, } @@ -18011,7 +18518,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const FUNCTION: &'static str = "add_registrar"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetIdentity { pub info: ::std::boxed::Box< runtime_types::pallet_identity::types::IdentityInfo, @@ -18021,7 +18528,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const FUNCTION: &'static str = "set_identity"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetSubs { pub subs: ::std::vec::Vec<( ::subxt::sp_core::crypto::AccountId32, @@ -18032,13 +18539,13 @@ pub mod api { const PALLET: &'static str = "Identity"; const FUNCTION: &'static str = "set_subs"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ClearIdentity; impl ::subxt::Call for ClearIdentity { const PALLET: &'static str = "Identity"; const FUNCTION: &'static str = "clear_identity"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RequestJudgement { #[codec(compact)] pub reg_index: ::core::primitive::u32, @@ -18050,10 +18557,10 @@ pub mod api { const FUNCTION: &'static str = "request_judgement"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct CancelRequest { pub reg_index: ::core::primitive::u32, @@ -18062,7 +18569,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const FUNCTION: &'static str = "cancel_request"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetFee { #[codec(compact)] pub index: ::core::primitive::u32, @@ -18073,7 +18580,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const FUNCTION: &'static str = "set_fee"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetAccountId { #[codec(compact)] pub index: ::core::primitive::u32, @@ -18083,7 +18590,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const FUNCTION: &'static str = "set_account_id"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetFields { #[codec(compact)] pub index: ::core::primitive::u32, @@ -18095,7 +18602,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const FUNCTION: &'static str = "set_fields"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ProvideJudgement { #[codec(compact)] pub reg_index: ::core::primitive::u32, @@ -18111,7 +18618,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const FUNCTION: &'static str = "provide_judgement"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct KillIdentity { pub target: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -18122,7 +18629,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const FUNCTION: &'static str = "kill_identity"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct AddSub { pub sub: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -18134,7 +18641,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const FUNCTION: &'static str = "add_sub"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RenameSub { pub sub: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -18146,7 +18653,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const FUNCTION: &'static str = "rename_sub"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RemoveSub { pub sub: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -18157,7 +18664,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const FUNCTION: &'static str = "remove_sub"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct QuitSub; impl ::subxt::Call for QuitSub { const PALLET: &'static str = "Identity"; @@ -18205,7 +18712,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 252u8, 233u8, 148u8, 186u8, 42u8, 127u8, 183u8, 107u8, 205u8, 34u8, 63u8, 170u8, 82u8, 218u8, 141u8, 136u8, 174u8, 45u8, @@ -18252,7 +18761,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 174u8, 5u8, 84u8, 201u8, 219u8, 147u8, 45u8, 241u8, 46u8, 192u8, 221u8, 20u8, 233u8, 128u8, 206u8, 1u8, 71u8, 244u8, @@ -18306,7 +18817,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 157u8, 141u8, 52u8, 45u8, 109u8, 252u8, 84u8, 0u8, 38u8, 209u8, 193u8, 212u8, 177u8, 47u8, 219u8, 132u8, 254u8, 234u8, @@ -18351,7 +18864,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 75u8, 44u8, 74u8, 122u8, 149u8, 202u8, 114u8, 230u8, 0u8, 255u8, 140u8, 122u8, 14u8, 196u8, 205u8, 249u8, 220u8, 94u8, @@ -18403,7 +18918,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 90u8, 137u8, 162u8, 2u8, 124u8, 245u8, 7u8, 200u8, 235u8, 138u8, 217u8, 247u8, 77u8, 87u8, 152u8, 2u8, 13u8, 175u8, @@ -18448,7 +18965,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 153u8, 44u8, 7u8, 70u8, 91u8, 44u8, 138u8, 219u8, 118u8, 67u8, 166u8, 133u8, 90u8, 234u8, 248u8, 42u8, 108u8, 51u8, @@ -18490,7 +19009,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 222u8, 115u8, 155u8, 44u8, 68u8, 179u8, 201u8, 247u8, 141u8, 226u8, 124u8, 20u8, 188u8, 47u8, 190u8, 21u8, 212u8, 192u8, @@ -18532,7 +19053,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 191u8, 243u8, 30u8, 116u8, 109u8, 235u8, 23u8, 106u8, 24u8, 23u8, 80u8, 203u8, 68u8, 40u8, 116u8, 38u8, 68u8, 161u8, @@ -18576,7 +19099,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 253u8, 43u8, 154u8, 17u8, 161u8, 187u8, 72u8, 96u8, 20u8, 240u8, 97u8, 43u8, 242u8, 79u8, 115u8, 38u8, 130u8, 243u8, @@ -18630,7 +19155,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 238u8, 210u8, 71u8, 239u8, 251u8, 52u8, 145u8, 71u8, 68u8, 185u8, 103u8, 82u8, 21u8, 164u8, 128u8, 189u8, 123u8, 141u8, @@ -18684,7 +19211,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 91u8, 164u8, 242u8, 44u8, 253u8, 203u8, 102u8, 89u8, 218u8, 150u8, 227u8, 56u8, 179u8, 135u8, 93u8, 107u8, 166u8, 157u8, @@ -18723,7 +19252,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 105u8, 38u8, 167u8, 99u8, 224u8, 183u8, 88u8, 133u8, 180u8, 78u8, 211u8, 239u8, 49u8, 128u8, 224u8, 61u8, 23u8, 249u8, @@ -18759,7 +19290,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 17u8, 110u8, 213u8, 124u8, 4u8, 76u8, 182u8, 53u8, 102u8, 224u8, 240u8, 250u8, 94u8, 96u8, 181u8, 107u8, 114u8, 127u8, @@ -18797,7 +19330,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 161u8, 114u8, 68u8, 57u8, 166u8, 240u8, 150u8, 95u8, 176u8, 93u8, 62u8, 67u8, 185u8, 226u8, 117u8, 97u8, 119u8, 139u8, @@ -18834,7 +19369,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 62u8, 57u8, 73u8, 72u8, 119u8, 216u8, 250u8, 155u8, 57u8, 169u8, 157u8, 44u8, 87u8, 51u8, 63u8, 231u8, 77u8, 7u8, 0u8, @@ -18853,7 +19390,7 @@ pub mod api { pub type Event = runtime_types::pallet_identity::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A name was set or reset (which will remove all judgements)."] pub struct IdentitySet { pub who: ::subxt::sp_core::crypto::AccountId32, @@ -18862,7 +19399,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "IdentitySet"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A name was cleared, and the given balance returned."] pub struct IdentityCleared { pub who: ::subxt::sp_core::crypto::AccountId32, @@ -18872,7 +19409,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "IdentityCleared"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A name was removed and the given balance slashed."] pub struct IdentityKilled { pub who: ::subxt::sp_core::crypto::AccountId32, @@ -18882,7 +19419,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "IdentityKilled"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A judgement was asked from a registrar."] pub struct JudgementRequested { pub who: ::subxt::sp_core::crypto::AccountId32, @@ -18892,7 +19429,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "JudgementRequested"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A judgement request was retracted."] pub struct JudgementUnrequested { pub who: ::subxt::sp_core::crypto::AccountId32, @@ -18902,7 +19439,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "JudgementUnrequested"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A judgement was given by a registrar."] pub struct JudgementGiven { pub target: ::subxt::sp_core::crypto::AccountId32, @@ -18913,10 +19450,10 @@ pub mod api { const EVENT: &'static str = "JudgementGiven"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "A registrar was added."] pub struct RegistrarAdded { @@ -18926,7 +19463,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "RegistrarAdded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A sub-identity was added to an identity and the deposit paid."] pub struct SubIdentityAdded { pub sub: ::subxt::sp_core::crypto::AccountId32, @@ -18937,7 +19474,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "SubIdentityAdded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A sub-identity was removed from an identity and the deposit freed."] pub struct SubIdentityRemoved { pub sub: ::subxt::sp_core::crypto::AccountId32, @@ -18948,7 +19485,7 @@ pub mod api { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "SubIdentityRemoved"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] #[doc = "main identity account to the sub-identity account."] pub struct SubIdentityRevoked { @@ -19048,7 +19585,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 225u8, 101u8, 83u8, 137u8, 207u8, 77u8, 139u8, 227u8, 36u8, 100u8, 14u8, 30u8, 197u8, 65u8, 248u8, 227u8, 175u8, 19u8, @@ -19072,7 +19611,9 @@ pub mod api { ::subxt::KeyIter<'a, T, IdentityOf<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 225u8, 101u8, 83u8, 137u8, 207u8, 77u8, 139u8, 227u8, 36u8, 100u8, 14u8, 30u8, 197u8, 65u8, 248u8, 227u8, 175u8, 19u8, @@ -19098,7 +19639,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 128u8, 234u8, 82u8, 152u8, 41u8, 4u8, 220u8, 41u8, 179u8, 131u8, 72u8, 121u8, 131u8, 17u8, 40u8, 87u8, 186u8, 159u8, @@ -19121,7 +19664,9 @@ pub mod api { ::subxt::KeyIter<'a, T, SuperOf<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 128u8, 234u8, 82u8, 152u8, 41u8, 4u8, 220u8, 41u8, 179u8, 131u8, 72u8, 121u8, 131u8, 17u8, 40u8, 87u8, 186u8, 159u8, @@ -19152,7 +19697,9 @@ pub mod api { ), ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 136u8, 240u8, 238u8, 121u8, 194u8, 242u8, 139u8, 155u8, 32u8, 201u8, 123u8, 76u8, 116u8, 219u8, 193u8, 45u8, 251u8, 212u8, @@ -19181,7 +19728,9 @@ pub mod api { ::subxt::KeyIter<'a, T, SubsOf<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 136u8, 240u8, 238u8, 121u8, 194u8, 242u8, 139u8, 155u8, 32u8, 201u8, 123u8, 76u8, 116u8, 219u8, 193u8, 45u8, 251u8, 212u8, @@ -19212,7 +19761,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 92u8, 161u8, 80u8, 77u8, 121u8, 65u8, 69u8, 26u8, 171u8, 158u8, 66u8, 36u8, 81u8, 1u8, 79u8, 144u8, 188u8, 236u8, @@ -19245,18 +19796,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Identity", "BasicDeposit")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Identity", "BasicDeposit")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 240u8, 163u8, 226u8, 52u8, 199u8, 248u8, 206u8, 2u8, 38u8, + 147u8, 0u8, 126u8, 225u8, 252u8, 36u8, 203u8, 148u8, 244u8, + 120u8, 212u8, 65u8, 221u8, 145u8, 126u8, 119u8, 190u8, 233u8, + 27u8, 185u8, 174u8, 6u8, 150u8, ] { - let pallet = self.client.metadata().pallet("Identity")?; + let pallet = metadata.pallet("Identity")?; let constant = pallet.constant("BasicDeposit")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -19270,18 +19820,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Identity", "FieldDeposit")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Identity", "FieldDeposit")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 165u8, 151u8, 74u8, 173u8, 28u8, 8u8, 195u8, 171u8, 159u8, + 247u8, 246u8, 108u8, 239u8, 176u8, 142u8, 132u8, 101u8, 6u8, + 70u8, 168u8, 25u8, 58u8, 231u8, 151u8, 29u8, 122u8, 83u8, + 8u8, 52u8, 215u8, 151u8, 132u8, ] { - let pallet = self.client.metadata().pallet("Identity")?; + let pallet = metadata.pallet("Identity")?; let constant = pallet.constant("FieldDeposit")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -19297,18 +19846,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Identity", "SubAccountDeposit")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Identity", "SubAccountDeposit")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 132u8, 115u8, 135u8, 88u8, 142u8, 44u8, 215u8, 122u8, 22u8, + 223u8, 174u8, 100u8, 180u8, 215u8, 108u8, 55u8, 67u8, 4u8, + 220u8, 23u8, 74u8, 148u8, 28u8, 100u8, 91u8, 73u8, 95u8, + 175u8, 213u8, 177u8, 56u8, 25u8, ] { - let pallet = self.client.metadata().pallet("Identity")?; + let pallet = metadata.pallet("Identity")?; let constant = pallet.constant("SubAccountDeposit")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -19322,18 +19870,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Identity", "MaxSubAccounts")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Identity", "MaxSubAccounts")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 75u8, 1u8, 223u8, 132u8, 121u8, 0u8, 145u8, 246u8, 118u8, + 222u8, 108u8, 45u8, 1u8, 1u8, 238u8, 13u8, 162u8, 100u8, 2u8, + 24u8, 108u8, 168u8, 44u8, 133u8, 240u8, 3u8, 244u8, 76u8, + 150u8, 248u8, 153u8, 144u8, ] { - let pallet = self.client.metadata().pallet("Identity")?; + let pallet = metadata.pallet("Identity")?; let constant = pallet.constant("MaxSubAccounts")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -19348,18 +19895,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Identity", "MaxAdditionalFields")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Identity", "MaxAdditionalFields")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 52u8, 246u8, 245u8, 172u8, 242u8, 40u8, 79u8, 11u8, 106u8, + 28u8, 59u8, 171u8, 135u8, 210u8, 67u8, 174u8, 63u8, 72u8, + 28u8, 214u8, 124u8, 140u8, 172u8, 255u8, 36u8, 40u8, 51u8, + 46u8, 207u8, 202u8, 248u8, 125u8, ] { - let pallet = self.client.metadata().pallet("Identity")?; + let pallet = metadata.pallet("Identity")?; let constant = pallet.constant("MaxAdditionalFields")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -19374,18 +19920,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Identity", "MaxRegistrars")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Identity", "MaxRegistrars")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 172u8, 101u8, 183u8, 243u8, 249u8, 249u8, 95u8, 104u8, 100u8, + 120u8, 13u8, 188u8, 132u8, 255u8, 115u8, 90u8, 19u8, 111u8, + 100u8, 17u8, 147u8, 179u8, 209u8, 41u8, 37u8, 25u8, 180u8, + 206u8, 120u8, 211u8, 188u8, 184u8, ] { - let pallet = self.client.metadata().pallet("Identity")?; + let pallet = metadata.pallet("Identity")?; let constant = pallet.constant("MaxRegistrars")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -19408,7 +19953,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Proxy { pub real: ::subxt::sp_core::crypto::AccountId32, pub force_proxy_type: @@ -19419,7 +19964,7 @@ pub mod api { const PALLET: &'static str = "Proxy"; const FUNCTION: &'static str = "proxy"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct AddProxy { pub delegate: ::subxt::sp_core::crypto::AccountId32, pub proxy_type: runtime_types::polkadot_runtime::ProxyType, @@ -19429,7 +19974,7 @@ pub mod api { const PALLET: &'static str = "Proxy"; const FUNCTION: &'static str = "add_proxy"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RemoveProxy { pub delegate: ::subxt::sp_core::crypto::AccountId32, pub proxy_type: runtime_types::polkadot_runtime::ProxyType, @@ -19439,13 +19984,13 @@ pub mod api { const PALLET: &'static str = "Proxy"; const FUNCTION: &'static str = "remove_proxy"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RemoveProxies; impl ::subxt::Call for RemoveProxies { const PALLET: &'static str = "Proxy"; const FUNCTION: &'static str = "remove_proxies"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Anonymous { pub proxy_type: runtime_types::polkadot_runtime::ProxyType, pub delay: ::core::primitive::u32, @@ -19455,7 +20000,7 @@ pub mod api { const PALLET: &'static str = "Proxy"; const FUNCTION: &'static str = "anonymous"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct KillAnonymous { pub spawner: ::subxt::sp_core::crypto::AccountId32, pub proxy_type: runtime_types::polkadot_runtime::ProxyType, @@ -19469,7 +20014,7 @@ pub mod api { const PALLET: &'static str = "Proxy"; const FUNCTION: &'static str = "kill_anonymous"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Announce { pub real: ::subxt::sp_core::crypto::AccountId32, pub call_hash: ::subxt::sp_core::H256, @@ -19478,7 +20023,7 @@ pub mod api { const PALLET: &'static str = "Proxy"; const FUNCTION: &'static str = "announce"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RemoveAnnouncement { pub real: ::subxt::sp_core::crypto::AccountId32, pub call_hash: ::subxt::sp_core::H256, @@ -19487,7 +20032,7 @@ pub mod api { const PALLET: &'static str = "Proxy"; const FUNCTION: &'static str = "remove_announcement"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RejectAnnouncement { pub delegate: ::subxt::sp_core::crypto::AccountId32, pub call_hash: ::subxt::sp_core::H256, @@ -19496,7 +20041,7 @@ pub mod api { const PALLET: &'static str = "Proxy"; const FUNCTION: &'static str = "reject_announcement"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ProxyAnnounced { pub delegate: ::subxt::sp_core::crypto::AccountId32, pub real: ::subxt::sp_core::crypto::AccountId32, @@ -19556,7 +20101,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 182u8, 110u8, 37u8, 47u8, 200u8, 93u8, 71u8, 195u8, 61u8, 58u8, 197u8, 39u8, 17u8, 203u8, 192u8, 222u8, 55u8, 103u8, @@ -19603,7 +20150,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 97u8, 149u8, 34u8, 218u8, 51u8, 242u8, 47u8, 167u8, 203u8, 128u8, 248u8, 193u8, 156u8, 141u8, 184u8, 221u8, 209u8, 79u8, @@ -19648,7 +20197,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 246u8, 251u8, 192u8, 17u8, 128u8, 248u8, 24u8, 118u8, 127u8, 101u8, 140u8, 72u8, 248u8, 161u8, 187u8, 89u8, 193u8, 44u8, @@ -19689,7 +20240,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 15u8, 237u8, 27u8, 166u8, 254u8, 218u8, 92u8, 5u8, 213u8, 239u8, 99u8, 59u8, 1u8, 26u8, 73u8, 252u8, 81u8, 94u8, 214u8, @@ -19742,7 +20295,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 159u8, 186u8, 126u8, 58u8, 255u8, 163u8, 207u8, 66u8, 165u8, 182u8, 248u8, 28u8, 134u8, 186u8, 1u8, 122u8, 40u8, 64u8, @@ -19798,7 +20353,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 59u8, 188u8, 45u8, 180u8, 9u8, 242u8, 36u8, 245u8, 25u8, 57u8, 66u8, 216u8, 82u8, 220u8, 144u8, 233u8, 83u8, 1u8, @@ -19854,7 +20411,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 102u8, 8u8, 136u8, 179u8, 13u8, 47u8, 158u8, 24u8, 93u8, 196u8, 52u8, 22u8, 118u8, 98u8, 17u8, 8u8, 12u8, 51u8, 181u8, @@ -19899,7 +20458,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 209u8, 156u8, 215u8, 188u8, 225u8, 230u8, 171u8, 228u8, 241u8, 105u8, 43u8, 183u8, 234u8, 18u8, 170u8, 239u8, 232u8, @@ -19944,7 +20505,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 26u8, 67u8, 197u8, 169u8, 243u8, 11u8, 94u8, 153u8, 50u8, 22u8, 176u8, 103u8, 88u8, 2u8, 13u8, 10u8, 96u8, 7u8, 121u8, @@ -19997,7 +20560,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 4u8, 205u8, 80u8, 128u8, 70u8, 110u8, 11u8, 69u8, 145u8, 61u8, 218u8, 229u8, 208u8, 105u8, 190u8, 234u8, 189u8, 169u8, @@ -20021,7 +20586,7 @@ pub mod api { pub type Event = runtime_types::pallet_proxy::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A proxy was executed correctly, with the given."] pub struct ProxyExecuted { pub result: @@ -20031,7 +20596,7 @@ pub mod api { const PALLET: &'static str = "Proxy"; const EVENT: &'static str = "ProxyExecuted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Anonymous account has been created by new proxy with given"] #[doc = "disambiguation index and proxy type."] pub struct AnonymousCreated { @@ -20044,7 +20609,7 @@ pub mod api { const PALLET: &'static str = "Proxy"; const EVENT: &'static str = "AnonymousCreated"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An announcement was placed to make a call in the future."] pub struct Announced { pub real: ::subxt::sp_core::crypto::AccountId32, @@ -20055,7 +20620,7 @@ pub mod api { const PALLET: &'static str = "Proxy"; const EVENT: &'static str = "Announced"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A proxy was added."] pub struct ProxyAdded { pub delegator: ::subxt::sp_core::crypto::AccountId32, @@ -20067,7 +20632,7 @@ pub mod api { const PALLET: &'static str = "Proxy"; const EVENT: &'static str = "ProxyAdded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A proxy was removed."] pub struct ProxyRemoved { pub delegator: ::subxt::sp_core::crypto::AccountId32, @@ -20150,7 +20715,9 @@ pub mod api { ), ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 252u8, 154u8, 187u8, 5u8, 19u8, 254u8, 127u8, 64u8, 214u8, 133u8, 33u8, 95u8, 47u8, 5u8, 39u8, 107u8, 27u8, 117u8, @@ -20176,7 +20743,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Proxies<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 252u8, 154u8, 187u8, 5u8, 19u8, 254u8, 127u8, 64u8, 214u8, 133u8, 33u8, 95u8, 47u8, 5u8, 39u8, 107u8, 27u8, 117u8, @@ -20207,7 +20776,9 @@ pub mod api { ), ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 247u8, 243u8, 109u8, 142u8, 99u8, 156u8, 61u8, 101u8, 200u8, 211u8, 158u8, 60u8, 159u8, 232u8, 147u8, 125u8, 139u8, 150u8, @@ -20232,7 +20803,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Announcements<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 247u8, 243u8, 109u8, 142u8, 99u8, 156u8, 61u8, 101u8, 200u8, 211u8, 158u8, 60u8, 159u8, 232u8, 147u8, 125u8, 139u8, 150u8, @@ -20264,18 +20837,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Proxy", "ProxyDepositBase")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Proxy", "ProxyDepositBase")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 103u8, 165u8, 87u8, 140u8, 136u8, 233u8, 165u8, 158u8, 117u8, + 69u8, 202u8, 102u8, 135u8, 123u8, 209u8, 117u8, 114u8, 254u8, + 28u8, 195u8, 55u8, 55u8, 54u8, 214u8, 19u8, 26u8, 209u8, + 184u8, 93u8, 110u8, 33u8, 139u8, ] { - let pallet = self.client.metadata().pallet("Proxy")?; + let pallet = metadata.pallet("Proxy")?; let constant = pallet.constant("ProxyDepositBase")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -20293,18 +20865,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Proxy", "ProxyDepositFactor")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Proxy", "ProxyDepositFactor")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 163u8, 148u8, 34u8, 63u8, 153u8, 113u8, 173u8, 220u8, 242u8, + 64u8, 66u8, 151u8, 198u8, 202u8, 46u8, 157u8, 175u8, 26u8, + 188u8, 96u8, 97u8, 66u8, 86u8, 2u8, 149u8, 133u8, 72u8, 33u8, + 249u8, 42u8, 79u8, 61u8, ] { - let pallet = self.client.metadata().pallet("Proxy")?; + let pallet = metadata.pallet("Proxy")?; let constant = pallet.constant("ProxyDepositFactor")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -20318,18 +20889,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Proxy", "MaxProxies")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Proxy", "MaxProxies")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 249u8, 153u8, 224u8, 128u8, 161u8, 3u8, 39u8, 192u8, 120u8, + 150u8, 184u8, 92u8, 225u8, 222u8, 76u8, 172u8, 131u8, 87u8, + 231u8, 128u8, 5u8, 62u8, 116u8, 112u8, 103u8, 4u8, 39u8, + 163u8, 71u8, 97u8, 221u8, 19u8, ] { - let pallet = self.client.metadata().pallet("Proxy")?; + let pallet = metadata.pallet("Proxy")?; let constant = pallet.constant("MaxProxies")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -20343,18 +20913,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Proxy", "MaxPending")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Proxy", "MaxPending")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 88u8, 148u8, 146u8, 152u8, 151u8, 208u8, 255u8, 193u8, 239u8, + 105u8, 197u8, 153u8, 151u8, 18u8, 86u8, 13u8, 242u8, 242u8, + 59u8, 92u8, 107u8, 203u8, 102u8, 69u8, 147u8, 147u8, 37u8, + 83u8, 237u8, 9u8, 114u8, 196u8, ] { - let pallet = self.client.metadata().pallet("Proxy")?; + let pallet = metadata.pallet("Proxy")?; let constant = pallet.constant("MaxPending")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -20371,18 +20940,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Proxy", "AnnouncementDepositBase")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Proxy", "AnnouncementDepositBase")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 167u8, 193u8, 39u8, 36u8, 61u8, 75u8, 122u8, 88u8, 86u8, + 61u8, 154u8, 153u8, 99u8, 130u8, 56u8, 114u8, 66u8, 196u8, + 148u8, 163u8, 29u8, 167u8, 17u8, 95u8, 228u8, 168u8, 43u8, + 130u8, 53u8, 7u8, 180u8, 181u8, ] { - let pallet = self.client.metadata().pallet("Proxy")?; + let pallet = metadata.pallet("Proxy")?; let constant = pallet.constant("AnnouncementDepositBase")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -20399,18 +20967,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Proxy", "AnnouncementDepositFactor")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Proxy", "AnnouncementDepositFactor")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 234u8, 50u8, 92u8, 12u8, 170u8, 230u8, 151u8, 220u8, 202u8, + 254u8, 123u8, 123u8, 40u8, 59u8, 188u8, 0u8, 55u8, 153u8, + 188u8, 146u8, 115u8, 250u8, 114u8, 233u8, 64u8, 35u8, 25u8, + 130u8, 189u8, 236u8, 169u8, 233u8, ] { - let pallet = self.client.metadata().pallet("Proxy")?; + let pallet = metadata.pallet("Proxy")?; let constant = pallet.constant("AnnouncementDepositFactor")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -20433,7 +21000,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct AsMultiThreshold1 { pub other_signatories: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, @@ -20443,7 +21010,7 @@ pub mod api { const PALLET: &'static str = "Multisig"; const FUNCTION: &'static str = "as_multi_threshold_1"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct AsMulti { pub threshold: ::core::primitive::u16, pub other_signatories: @@ -20460,7 +21027,7 @@ pub mod api { const PALLET: &'static str = "Multisig"; const FUNCTION: &'static str = "as_multi"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ApproveAsMulti { pub threshold: ::core::primitive::u16, pub other_signatories: @@ -20475,7 +21042,7 @@ pub mod api { const PALLET: &'static str = "Multisig"; const FUNCTION: &'static str = "approve_as_multi"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct CancelAsMulti { pub threshold: ::core::primitive::u16, pub other_signatories: @@ -20536,7 +21103,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 95u8, 132u8, 202u8, 110u8, 113u8, 89u8, 78u8, 7u8, 190u8, 143u8, 107u8, 158u8, 56u8, 3u8, 41u8, 167u8, 115u8, 34u8, @@ -20623,7 +21192,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 248u8, 250u8, 144u8, 85u8, 79u8, 224u8, 92u8, 55u8, 76u8, 55u8, 171u8, 48u8, 122u8, 6u8, 62u8, 155u8, 69u8, 41u8, @@ -20701,7 +21272,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 114u8, 29u8, 118u8, 154u8, 91u8, 4u8, 127u8, 126u8, 190u8, 180u8, 57u8, 112u8, 72u8, 8u8, 248u8, 126u8, 25u8, 190u8, @@ -20768,7 +21341,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 195u8, 216u8, 37u8, 179u8, 9u8, 19u8, 238u8, 94u8, 156u8, 5u8, 120u8, 78u8, 129u8, 99u8, 239u8, 142u8, 68u8, 12u8, @@ -20792,7 +21367,7 @@ pub mod api { pub type Event = runtime_types::pallet_multisig::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A new multisig operation has begun."] pub struct NewMultisig { pub approving: ::subxt::sp_core::crypto::AccountId32, @@ -20803,7 +21378,7 @@ pub mod api { const PALLET: &'static str = "Multisig"; const EVENT: &'static str = "NewMultisig"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A multisig operation has been approved by someone."] pub struct MultisigApproval { pub approving: ::subxt::sp_core::crypto::AccountId32, @@ -20816,7 +21391,7 @@ pub mod api { const PALLET: &'static str = "Multisig"; const EVENT: &'static str = "MultisigApproval"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A multisig operation has been executed."] pub struct MultisigExecuted { pub approving: ::subxt::sp_core::crypto::AccountId32, @@ -20831,7 +21406,7 @@ pub mod api { const PALLET: &'static str = "Multisig"; const EVENT: &'static str = "MultisigExecuted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A multisig operation has been cancelled."] pub struct MultisigCancelled { pub cancelling: ::subxt::sp_core::crypto::AccountId32, @@ -20911,7 +21486,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 137u8, 130u8, 173u8, 65u8, 126u8, 244u8, 194u8, 167u8, 93u8, 174u8, 104u8, 131u8, 115u8, 155u8, 93u8, 185u8, 54u8, 204u8, @@ -20933,7 +21510,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Multisigs<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 137u8, 130u8, 173u8, 65u8, 126u8, 244u8, 194u8, 167u8, 93u8, 174u8, 104u8, 131u8, 115u8, 155u8, 93u8, 185u8, 54u8, 204u8, @@ -20958,7 +21537,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 51u8, 122u8, 79u8, 127u8, 1u8, 182u8, 39u8, 88u8, 57u8, 227u8, 141u8, 253u8, 217u8, 23u8, 89u8, 94u8, 37u8, 244u8, @@ -20979,7 +21560,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Calls<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 51u8, 122u8, 79u8, 127u8, 1u8, 182u8, 39u8, 88u8, 57u8, 227u8, 141u8, 253u8, 217u8, 23u8, 89u8, 94u8, 37u8, 244u8, @@ -21013,18 +21596,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Multisig", "DepositBase")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Multisig", "DepositBase")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 184u8, 205u8, 30u8, 80u8, 201u8, 56u8, 94u8, 154u8, 82u8, + 189u8, 62u8, 221u8, 158u8, 69u8, 166u8, 229u8, 114u8, 175u8, + 18u8, 68u8, 189u8, 36u8, 51u8, 115u8, 82u8, 203u8, 106u8, + 161u8, 186u8, 8u8, 56u8, 4u8, ] { - let pallet = self.client.metadata().pallet("Multisig")?; + let pallet = metadata.pallet("Multisig")?; let constant = pallet.constant("DepositBase")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -21040,18 +21622,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Multisig", "DepositFactor")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Multisig", "DepositFactor")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 226u8, 132u8, 1u8, 18u8, 51u8, 22u8, 235u8, 140u8, 210u8, + 182u8, 190u8, 176u8, 59u8, 98u8, 137u8, 93u8, 118u8, 55u8, + 125u8, 33u8, 174u8, 152u8, 70u8, 62u8, 84u8, 46u8, 159u8, + 246u8, 17u8, 40u8, 120u8, 193u8, ] { - let pallet = self.client.metadata().pallet("Multisig")?; + let pallet = metadata.pallet("Multisig")?; let constant = pallet.constant("DepositFactor")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -21065,18 +21646,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Multisig", "MaxSignatories")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Multisig", "MaxSignatories")? == [ - 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, - 227u8, 41u8, 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, - 184u8, 72u8, 169u8, 90u8, 208u8, 135u8, 15u8, 117u8, 10u8, - 123u8, 128u8, 193u8, 29u8, 70u8, + 139u8, 36u8, 140u8, 198u8, 176u8, 106u8, 89u8, 194u8, 33u8, + 23u8, 60u8, 134u8, 143u8, 24u8, 176u8, 64u8, 47u8, 109u8, + 159u8, 134u8, 240u8, 231u8, 181u8, 146u8, 136u8, 249u8, + 175u8, 67u8, 41u8, 152u8, 90u8, 15u8, ] { - let pallet = self.client.metadata().pallet("Multisig")?; + let pallet = metadata.pallet("Multisig")?; let constant = pallet.constant("MaxSignatories")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -21099,7 +21679,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ProposeBounty { #[codec(compact)] pub value: ::core::primitive::u128, @@ -21109,7 +21689,7 @@ pub mod api { const PALLET: &'static str = "Bounties"; const FUNCTION: &'static str = "propose_bounty"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ApproveBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -21118,7 +21698,7 @@ pub mod api { const PALLET: &'static str = "Bounties"; const FUNCTION: &'static str = "approve_bounty"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ProposeCurator { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -21133,7 +21713,7 @@ pub mod api { const PALLET: &'static str = "Bounties"; const FUNCTION: &'static str = "propose_curator"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct UnassignCurator { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -21142,7 +21722,7 @@ pub mod api { const PALLET: &'static str = "Bounties"; const FUNCTION: &'static str = "unassign_curator"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct AcceptCurator { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -21151,7 +21731,7 @@ pub mod api { const PALLET: &'static str = "Bounties"; const FUNCTION: &'static str = "accept_curator"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct AwardBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -21164,7 +21744,7 @@ pub mod api { const PALLET: &'static str = "Bounties"; const FUNCTION: &'static str = "award_bounty"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ClaimBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -21173,7 +21753,7 @@ pub mod api { const PALLET: &'static str = "Bounties"; const FUNCTION: &'static str = "claim_bounty"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct CloseBounty { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -21182,7 +21762,7 @@ pub mod api { const PALLET: &'static str = "Bounties"; const FUNCTION: &'static str = "close_bounty"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ExtendBountyExpiry { #[codec(compact)] pub bounty_id: ::core::primitive::u32, @@ -21234,7 +21814,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 208u8, 22u8, 157u8, 134u8, 214u8, 95u8, 249u8, 10u8, 67u8, 223u8, 190u8, 192u8, 69u8, 32u8, 7u8, 235u8, 205u8, 145u8, @@ -21270,7 +21852,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 127u8, 220u8, 25u8, 197u8, 19u8, 183u8, 177u8, 17u8, 164u8, 29u8, 250u8, 136u8, 125u8, 90u8, 247u8, 177u8, 37u8, 180u8, @@ -21310,7 +21894,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 180u8, 13u8, 171u8, 39u8, 160u8, 233u8, 162u8, 39u8, 100u8, 144u8, 156u8, 212u8, 139u8, 128u8, 105u8, 49u8, 157u8, 16u8, @@ -21360,7 +21946,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 156u8, 163u8, 248u8, 148u8, 22u8, 231u8, 232u8, 182u8, 48u8, 87u8, 85u8, 118u8, 169u8, 249u8, 123u8, 199u8, 248u8, 206u8, @@ -21396,7 +21984,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 50u8, 149u8, 252u8, 40u8, 169u8, 113u8, 60u8, 153u8, 123u8, 146u8, 40u8, 196u8, 176u8, 195u8, 95u8, 94u8, 14u8, 81u8, @@ -21439,7 +22029,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 42u8, 49u8, 134u8, 134u8, 5u8, 98u8, 72u8, 95u8, 227u8, 156u8, 224u8, 249u8, 209u8, 42u8, 160u8, 15u8, 239u8, 195u8, @@ -21479,7 +22071,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 119u8, 9u8, 122u8, 55u8, 224u8, 139u8, 26u8, 186u8, 3u8, 178u8, 78u8, 41u8, 91u8, 183u8, 222u8, 197u8, 189u8, 172u8, @@ -21517,7 +22111,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 119u8, 47u8, 246u8, 188u8, 235u8, 22u8, 53u8, 70u8, 182u8, 15u8, 247u8, 153u8, 208u8, 191u8, 144u8, 132u8, 30u8, 200u8, @@ -21556,7 +22152,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 127u8, 142u8, 138u8, 230u8, 147u8, 187u8, 201u8, 210u8, 216u8, 61u8, 62u8, 125u8, 168u8, 188u8, 16u8, 73u8, 157u8, @@ -21576,10 +22174,10 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "New bounty proposal."] pub struct BountyProposed { @@ -21589,7 +22187,7 @@ pub mod api { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyProposed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A bounty proposal was rejected; funds were slashed."] pub struct BountyRejected { pub index: ::core::primitive::u32, @@ -21600,10 +22198,10 @@ pub mod api { const EVENT: &'static str = "BountyRejected"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "A bounty proposal is funded and became active."] pub struct BountyBecameActive { @@ -21613,7 +22211,7 @@ pub mod api { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyBecameActive"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A bounty is awarded to a beneficiary."] pub struct BountyAwarded { pub index: ::core::primitive::u32, @@ -21623,7 +22221,7 @@ pub mod api { const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyAwarded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A bounty is claimed by beneficiary."] pub struct BountyClaimed { pub index: ::core::primitive::u32, @@ -21635,10 +22233,10 @@ pub mod api { const EVENT: &'static str = "BountyClaimed"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "A bounty is cancelled."] pub struct BountyCanceled { @@ -21649,10 +22247,10 @@ pub mod api { const EVENT: &'static str = "BountyCanceled"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "A bounty expiry is extended."] pub struct BountyExtended { @@ -21730,7 +22328,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 5u8, 188u8, 134u8, 220u8, 64u8, 49u8, 188u8, 98u8, 185u8, 186u8, 230u8, 65u8, 247u8, 199u8, 28u8, 178u8, 202u8, 193u8, @@ -21762,7 +22362,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 27u8, 154u8, 97u8, 199u8, 230u8, 195u8, 155u8, 198u8, 4u8, 28u8, 5u8, 202u8, 175u8, 11u8, 243u8, 166u8, 67u8, 231u8, @@ -21784,7 +22386,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Bounties<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 27u8, 154u8, 97u8, 199u8, 230u8, 195u8, 155u8, 198u8, 4u8, 28u8, 5u8, 202u8, 175u8, 11u8, 243u8, 166u8, 67u8, 231u8, @@ -21810,10 +22414,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 41u8, 78u8, 19u8, 48u8, 241u8, 95u8, 175u8, 69u8, 236u8, 54u8, 84u8, 58u8, 69u8, 28u8, 20u8, 20u8, 214u8, 138u8, @@ -21835,10 +22438,9 @@ pub mod api { ::subxt::KeyIter<'a, T, BountyDescriptions<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 41u8, 78u8, 19u8, 48u8, 241u8, 95u8, 175u8, 69u8, 236u8, 54u8, 84u8, 58u8, 69u8, 28u8, 20u8, 20u8, 214u8, 138u8, @@ -21861,7 +22463,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 18u8, 142u8, 244u8, 64u8, 172u8, 62u8, 230u8, 114u8, 165u8, 158u8, 123u8, 163u8, 35u8, 125u8, 218u8, 23u8, 113u8, 73u8, @@ -21894,18 +22498,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Bounties", "BountyDepositBase")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Bounties", "BountyDepositBase")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 239u8, 17u8, 86u8, 242u8, 39u8, 104u8, 7u8, 123u8, 210u8, + 141u8, 18u8, 248u8, 45u8, 172u8, 17u8, 58u8, 175u8, 58u8, + 246u8, 239u8, 147u8, 98u8, 85u8, 237u8, 42u8, 202u8, 25u8, + 227u8, 31u8, 207u8, 98u8, 83u8, ] { - let pallet = self.client.metadata().pallet("Bounties")?; + let pallet = metadata.pallet("Bounties")?; let constant = pallet.constant("BountyDepositBase")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -21919,18 +22522,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Bounties", "BountyDepositPayoutDelay")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Bounties", "BountyDepositPayoutDelay")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 128u8, 86u8, 220u8, 124u8, 89u8, 11u8, 42u8, 36u8, 116u8, + 160u8, 162u8, 57u8, 129u8, 172u8, 167u8, 210u8, 34u8, 188u8, + 183u8, 109u8, 166u8, 10u8, 161u8, 134u8, 145u8, 60u8, 242u8, + 105u8, 137u8, 133u8, 102u8, 212u8, ] { - let pallet = self.client.metadata().pallet("Bounties")?; + let pallet = metadata.pallet("Bounties")?; let constant = pallet.constant("BountyDepositPayoutDelay")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -21944,18 +22546,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Bounties", "BountyUpdatePeriod")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Bounties", "BountyUpdatePeriod")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 10u8, 209u8, 160u8, 42u8, 47u8, 204u8, 58u8, 28u8, 137u8, + 252u8, 123u8, 123u8, 194u8, 151u8, 43u8, 90u8, 0u8, 154u8, + 132u8, 183u8, 50u8, 168u8, 204u8, 91u8, 235u8, 13u8, 116u8, + 219u8, 47u8, 215u8, 107u8, 136u8, ] { - let pallet = self.client.metadata().pallet("Bounties")?; + let pallet = metadata.pallet("Bounties")?; let constant = pallet.constant("BountyUpdatePeriod")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -21974,18 +22575,17 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Permill, ::subxt::BasicError, > { - if self - .client - .metadata() - .constant_hash("Bounties", "CuratorDepositMultiplier")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Bounties", "CuratorDepositMultiplier")? == [ - 26u8, 148u8, 47u8, 190u8, 51u8, 71u8, 203u8, 119u8, 167u8, - 91u8, 70u8, 11u8, 149u8, 155u8, 138u8, 91u8, 119u8, 0u8, - 74u8, 83u8, 16u8, 47u8, 129u8, 11u8, 81u8, 169u8, 79u8, 31u8, - 161u8, 119u8, 2u8, 38u8, + 119u8, 126u8, 117u8, 41u8, 6u8, 165u8, 141u8, 28u8, 50u8, + 24u8, 197u8, 238u8, 10u8, 25u8, 186u8, 143u8, 77u8, 212u8, + 156u8, 98u8, 147u8, 70u8, 188u8, 56u8, 23u8, 176u8, 175u8, + 248u8, 158u8, 34u8, 97u8, 39u8, ] { - let pallet = self.client.metadata().pallet("Bounties")?; + let pallet = metadata.pallet("Bounties")?; let constant = pallet.constant("CuratorDepositMultiplier")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -22001,18 +22601,17 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - if self - .client - .metadata() - .constant_hash("Bounties", "CuratorDepositMax")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Bounties", "CuratorDepositMax")? == [ - 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, 120u8, - 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, 193u8, 120u8, 198u8, - 154u8, 237u8, 134u8, 204u8, 102u8, 247u8, 52u8, 103u8, 231u8, - 43u8, 243u8, 122u8, 60u8, 216u8, + 197u8, 116u8, 193u8, 36u8, 38u8, 161u8, 84u8, 35u8, 214u8, + 57u8, 117u8, 1u8, 205u8, 210u8, 187u8, 254u8, 240u8, 142u8, + 234u8, 3u8, 128u8, 248u8, 17u8, 26u8, 220u8, 250u8, 135u8, + 74u8, 60u8, 75u8, 37u8, 102u8, ] { - let pallet = self.client.metadata().pallet("Bounties")?; + let pallet = metadata.pallet("Bounties")?; let constant = pallet.constant("CuratorDepositMax")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -22028,18 +22627,17 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - if self - .client - .metadata() - .constant_hash("Bounties", "CuratorDepositMin")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Bounties", "CuratorDepositMin")? == [ - 84u8, 154u8, 218u8, 83u8, 84u8, 189u8, 32u8, 20u8, 120u8, - 194u8, 88u8, 205u8, 109u8, 216u8, 114u8, 193u8, 120u8, 198u8, - 154u8, 237u8, 134u8, 204u8, 102u8, 247u8, 52u8, 103u8, 231u8, - 43u8, 243u8, 122u8, 60u8, 216u8, + 103u8, 117u8, 57u8, 115u8, 148u8, 210u8, 125u8, 147u8, 240u8, + 124u8, 116u8, 42u8, 123u8, 201u8, 167u8, 70u8, 33u8, 230u8, + 204u8, 237u8, 197u8, 52u8, 184u8, 86u8, 191u8, 153u8, 56u8, + 233u8, 154u8, 127u8, 129u8, 59u8, ] { - let pallet = self.client.metadata().pallet("Bounties")?; + let pallet = metadata.pallet("Bounties")?; let constant = pallet.constant("CuratorDepositMin")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -22053,18 +22651,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Bounties", "BountyValueMinimum")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Bounties", "BountyValueMinimum")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 151u8, 218u8, 51u8, 10u8, 253u8, 91u8, 115u8, 68u8, 30u8, + 12u8, 122u8, 150u8, 203u8, 237u8, 234u8, 220u8, 103u8, 54u8, + 222u8, 239u8, 112u8, 28u8, 3u8, 7u8, 206u8, 89u8, 106u8, + 138u8, 86u8, 88u8, 38u8, 116u8, ] { - let pallet = self.client.metadata().pallet("Bounties")?; + let pallet = metadata.pallet("Bounties")?; let constant = pallet.constant("BountyValueMinimum")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -22078,18 +22675,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Bounties", "DataDepositPerByte")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Bounties", "DataDepositPerByte")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 70u8, 208u8, 250u8, 66u8, 143u8, 90u8, 112u8, 229u8, 138u8, + 156u8, 116u8, 16u8, 65u8, 250u8, 203u8, 188u8, 255u8, 123u8, + 211u8, 66u8, 19u8, 231u8, 22u8, 224u8, 95u8, 6u8, 164u8, + 26u8, 103u8, 226u8, 234u8, 89u8, ] { - let pallet = self.client.metadata().pallet("Bounties")?; + let pallet = metadata.pallet("Bounties")?; let constant = pallet.constant("DataDepositPerByte")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -22105,18 +22701,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Bounties", "MaximumReasonLength")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Bounties", "MaximumReasonLength")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 137u8, 135u8, 60u8, 208u8, 169u8, 200u8, 219u8, 180u8, 48u8, + 114u8, 22u8, 9u8, 163u8, 54u8, 133u8, 198u8, 72u8, 186u8, + 183u8, 134u8, 130u8, 198u8, 61u8, 79u8, 86u8, 218u8, 212u8, + 166u8, 195u8, 81u8, 58u8, 191u8, ] { - let pallet = self.client.metadata().pallet("Bounties")?; + let pallet = metadata.pallet("Bounties")?; let constant = pallet.constant("MaximumReasonLength")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -22139,7 +22734,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct AddChildBounty { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -22151,7 +22746,7 @@ pub mod api { const PALLET: &'static str = "ChildBounties"; const FUNCTION: &'static str = "add_child_bounty"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ProposeCurator { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -22168,7 +22763,7 @@ pub mod api { const PALLET: &'static str = "ChildBounties"; const FUNCTION: &'static str = "propose_curator"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct AcceptCurator { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -22179,7 +22774,7 @@ pub mod api { const PALLET: &'static str = "ChildBounties"; const FUNCTION: &'static str = "accept_curator"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct UnassignCurator { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -22190,7 +22785,7 @@ pub mod api { const PALLET: &'static str = "ChildBounties"; const FUNCTION: &'static str = "unassign_curator"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct AwardChildBounty { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -22205,7 +22800,7 @@ pub mod api { const PALLET: &'static str = "ChildBounties"; const FUNCTION: &'static str = "award_child_bounty"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ClaimChildBounty { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -22216,7 +22811,7 @@ pub mod api { const PALLET: &'static str = "ChildBounties"; const FUNCTION: &'static str = "claim_child_bounty"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct CloseChildBounty { #[codec(compact)] pub parent_bounty_id: ::core::primitive::u32, @@ -22277,7 +22872,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 235u8, 216u8, 166u8, 226u8, 107u8, 159u8, 235u8, 35u8, 207u8, 154u8, 124u8, 226u8, 242u8, 241u8, 4u8, 20u8, 1u8, 215u8, @@ -22330,7 +22927,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 34u8, 219u8, 159u8, 152u8, 29u8, 12u8, 222u8, 91u8, 193u8, 218u8, 28u8, 0u8, 102u8, 15u8, 180u8, 155u8, 135u8, 175u8, @@ -22383,7 +22982,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 115u8, 24u8, 36u8, 188u8, 30u8, 11u8, 184u8, 102u8, 151u8, 96u8, 41u8, 162u8, 104u8, 54u8, 76u8, 251u8, 189u8, 50u8, @@ -22449,7 +23050,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 210u8, 24u8, 20u8, 200u8, 106u8, 200u8, 33u8, 43u8, 169u8, 133u8, 157u8, 108u8, 220u8, 36u8, 110u8, 172u8, 218u8, 1u8, @@ -22502,7 +23105,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 135u8, 134u8, 237u8, 216u8, 152u8, 75u8, 11u8, 209u8, 152u8, 99u8, 166u8, 78u8, 162u8, 34u8, 37u8, 158u8, 95u8, 74u8, @@ -22551,7 +23156,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 54u8, 194u8, 203u8, 13u8, 230u8, 207u8, 25u8, 249u8, 203u8, 199u8, 123u8, 79u8, 255u8, 85u8, 40u8, 125u8, 73u8, 5u8, @@ -22605,7 +23212,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 123u8, 201u8, 206u8, 242u8, 80u8, 37u8, 113u8, 182u8, 237u8, 187u8, 51u8, 229u8, 226u8, 250u8, 129u8, 203u8, 196u8, 22u8, @@ -22627,7 +23236,7 @@ pub mod api { pub type Event = runtime_types::pallet_child_bounties::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A child-bounty is added."] pub struct Added { pub index: ::core::primitive::u32, @@ -22637,7 +23246,7 @@ pub mod api { const PALLET: &'static str = "ChildBounties"; const EVENT: &'static str = "Added"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A child-bounty is awarded to a beneficiary."] pub struct Awarded { pub index: ::core::primitive::u32, @@ -22648,7 +23257,7 @@ pub mod api { const PALLET: &'static str = "ChildBounties"; const EVENT: &'static str = "Awarded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A child-bounty is claimed by beneficiary."] pub struct Claimed { pub index: ::core::primitive::u32, @@ -22660,7 +23269,7 @@ pub mod api { const PALLET: &'static str = "ChildBounties"; const EVENT: &'static str = "Claimed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A child-bounty is cancelled."] pub struct Canceled { pub index: ::core::primitive::u32, @@ -22759,7 +23368,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 46u8, 10u8, 183u8, 160u8, 98u8, 215u8, 39u8, 253u8, 81u8, 94u8, 114u8, 147u8, 115u8, 162u8, 33u8, 117u8, 160u8, 214u8, @@ -22784,10 +23395,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 127u8, 161u8, 181u8, 79u8, 235u8, 196u8, 252u8, 162u8, 39u8, 15u8, 251u8, 49u8, 125u8, 80u8, 101u8, 24u8, 234u8, 88u8, @@ -22813,10 +23423,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ParentChildBounties<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 127u8, 161u8, 181u8, 79u8, 235u8, 196u8, 252u8, 162u8, 39u8, 15u8, 251u8, 49u8, 125u8, 80u8, 101u8, 24u8, 234u8, 88u8, @@ -22845,7 +23454,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 66u8, 224u8, 32u8, 188u8, 0u8, 175u8, 253u8, 132u8, 17u8, 243u8, 51u8, 237u8, 230u8, 40u8, 198u8, 178u8, 222u8, 159u8, @@ -22867,7 +23478,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ChildBounties<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 66u8, 224u8, 32u8, 188u8, 0u8, 175u8, 253u8, 132u8, 17u8, 243u8, 51u8, 237u8, 230u8, 40u8, 198u8, 178u8, 222u8, 159u8, @@ -22893,10 +23506,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 20u8, 134u8, 50u8, 207u8, 242u8, 159u8, 242u8, 22u8, 76u8, 80u8, 193u8, 247u8, 73u8, 51u8, 113u8, 241u8, 186u8, 26u8, @@ -22918,10 +23530,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ChildBountyDescriptions<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 20u8, 134u8, 50u8, 207u8, 242u8, 159u8, 242u8, 22u8, 76u8, 80u8, 193u8, 247u8, 73u8, 51u8, 113u8, 241u8, 186u8, 26u8, @@ -22941,10 +23552,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 174u8, 128u8, 86u8, 179u8, 133u8, 76u8, 98u8, 169u8, 234u8, 166u8, 249u8, 214u8, 172u8, 171u8, 8u8, 161u8, 105u8, 69u8, @@ -22969,10 +23579,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ChildrenCuratorFees<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 174u8, 128u8, 86u8, 179u8, 133u8, 76u8, 98u8, 169u8, 234u8, 166u8, 249u8, 214u8, 172u8, 171u8, 8u8, 161u8, 105u8, 69u8, @@ -23001,18 +23610,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata .constant_hash("ChildBounties", "MaxActiveChildBountyCount")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 118u8, 151u8, 94u8, 73u8, 30u8, 79u8, 217u8, 50u8, 98u8, + 108u8, 97u8, 243u8, 136u8, 184u8, 120u8, 141u8, 19u8, 204u8, + 233u8, 46u8, 86u8, 5u8, 76u8, 170u8, 80u8, 113u8, 192u8, 9u8, + 108u8, 89u8, 169u8, 241u8, ] { - let pallet = self.client.metadata().pallet("ChildBounties")?; + let pallet = metadata.pallet("ChildBounties")?; let constant = pallet.constant("MaxActiveChildBountyCount")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -23026,18 +23635,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata .constant_hash("ChildBounties", "ChildBountyValueMinimum")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 42u8, 42u8, 180u8, 115u8, 221u8, 155u8, 245u8, 216u8, 68u8, + 88u8, 3u8, 177u8, 198u8, 36u8, 182u8, 210u8, 63u8, 29u8, 7u8, + 184u8, 208u8, 39u8, 118u8, 169u8, 87u8, 179u8, 105u8, 185u8, + 89u8, 167u8, 150u8, 73u8, ] { - let pallet = self.client.metadata().pallet("ChildBounties")?; + let pallet = metadata.pallet("ChildBounties")?; let constant = pallet.constant("ChildBountyValueMinimum")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -23060,7 +23669,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ReportAwesome { pub reason: ::std::vec::Vec<::core::primitive::u8>, pub who: ::subxt::sp_core::crypto::AccountId32, @@ -23069,7 +23678,7 @@ pub mod api { const PALLET: &'static str = "Tips"; const FUNCTION: &'static str = "report_awesome"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RetractTip { pub hash: ::subxt::sp_core::H256, } @@ -23077,7 +23686,7 @@ pub mod api { const PALLET: &'static str = "Tips"; const FUNCTION: &'static str = "retract_tip"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct TipNew { pub reason: ::std::vec::Vec<::core::primitive::u8>, pub who: ::subxt::sp_core::crypto::AccountId32, @@ -23088,7 +23697,7 @@ pub mod api { const PALLET: &'static str = "Tips"; const FUNCTION: &'static str = "tip_new"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Tip { pub hash: ::subxt::sp_core::H256, #[codec(compact)] @@ -23098,7 +23707,7 @@ pub mod api { const PALLET: &'static str = "Tips"; const FUNCTION: &'static str = "tip"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct CloseTip { pub hash: ::subxt::sp_core::H256, } @@ -23106,7 +23715,7 @@ pub mod api { const PALLET: &'static str = "Tips"; const FUNCTION: &'static str = "close_tip"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SlashTip { pub hash: ::subxt::sp_core::H256, } @@ -23163,7 +23772,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 90u8, 58u8, 149u8, 226u8, 88u8, 237u8, 150u8, 165u8, 172u8, 179u8, 195u8, 226u8, 200u8, 20u8, 152u8, 103u8, 157u8, 208u8, @@ -23210,7 +23821,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 213u8, 70u8, 11u8, 81u8, 39u8, 125u8, 42u8, 247u8, 80u8, 55u8, 123u8, 247u8, 45u8, 18u8, 86u8, 205u8, 26u8, 229u8, @@ -23262,7 +23875,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 137u8, 119u8, 91u8, 139u8, 238u8, 180u8, 247u8, 5u8, 194u8, 35u8, 33u8, 151u8, 50u8, 212u8, 208u8, 134u8, 98u8, 133u8, @@ -23319,7 +23934,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 2u8, 38u8, 219u8, 220u8, 183u8, 243u8, 108u8, 40u8, 179u8, 21u8, 218u8, 158u8, 126u8, 19u8, 22u8, 115u8, 95u8, 17u8, @@ -23363,7 +23980,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 85u8, 180u8, 115u8, 177u8, 2u8, 252u8, 139u8, 37u8, 233u8, 127u8, 115u8, 4u8, 169u8, 169u8, 214u8, 223u8, 181u8, 150u8, @@ -23403,7 +24022,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 135u8, 7u8, 55u8, 167u8, 26u8, 108u8, 43u8, 20u8, 162u8, 185u8, 209u8, 88u8, 148u8, 181u8, 51u8, 102u8, 17u8, 105u8, @@ -23422,7 +24043,7 @@ pub mod api { pub type Event = runtime_types::pallet_tips::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A new tip suggestion has been opened."] pub struct NewTip { pub tip_hash: ::subxt::sp_core::H256, @@ -23431,7 +24052,7 @@ pub mod api { const PALLET: &'static str = "Tips"; const EVENT: &'static str = "NewTip"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A tip suggestion has reached threshold and is closing."] pub struct TipClosing { pub tip_hash: ::subxt::sp_core::H256, @@ -23440,7 +24061,7 @@ pub mod api { const PALLET: &'static str = "Tips"; const EVENT: &'static str = "TipClosing"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A tip suggestion has been closed."] pub struct TipClosed { pub tip_hash: ::subxt::sp_core::H256, @@ -23451,7 +24072,7 @@ pub mod api { const PALLET: &'static str = "Tips"; const EVENT: &'static str = "TipClosed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A tip suggestion has been retracted."] pub struct TipRetracted { pub tip_hash: ::subxt::sp_core::H256, @@ -23460,7 +24081,7 @@ pub mod api { const PALLET: &'static str = "Tips"; const EVENT: &'static str = "TipRetracted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A tip suggestion has been slashed."] pub struct TipSlashed { pub tip_hash: ::subxt::sp_core::H256, @@ -23528,7 +24149,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 147u8, 163u8, 201u8, 236u8, 134u8, 199u8, 172u8, 47u8, 40u8, 168u8, 105u8, 145u8, 238u8, 204u8, 133u8, 116u8, 185u8, @@ -23552,7 +24175,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Tips<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 147u8, 163u8, 201u8, 236u8, 134u8, 199u8, 172u8, 47u8, 40u8, 168u8, 105u8, 145u8, 238u8, 204u8, 133u8, 116u8, 185u8, @@ -23575,7 +24200,9 @@ pub mod api { ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 224u8, 172u8, 6u8, 195u8, 254u8, 210u8, 186u8, 62u8, 224u8, 53u8, 196u8, 78u8, 84u8, 218u8, 0u8, 135u8, 247u8, 130u8, @@ -23598,7 +24225,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Reasons<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 224u8, 172u8, 6u8, 195u8, 254u8, 210u8, 186u8, 62u8, 224u8, 53u8, 196u8, 78u8, 84u8, 218u8, 0u8, 135u8, 247u8, 130u8, @@ -23629,18 +24258,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Tips", "MaximumReasonLength")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Tips", "MaximumReasonLength")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 137u8, 135u8, 60u8, 208u8, 169u8, 200u8, 219u8, 180u8, 48u8, + 114u8, 22u8, 9u8, 163u8, 54u8, 133u8, 198u8, 72u8, 186u8, + 183u8, 134u8, 130u8, 198u8, 61u8, 79u8, 86u8, 218u8, 212u8, + 166u8, 195u8, 81u8, 58u8, 191u8, ] { - let pallet = self.client.metadata().pallet("Tips")?; + let pallet = metadata.pallet("Tips")?; let constant = pallet.constant("MaximumReasonLength")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -23654,18 +24282,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Tips", "DataDepositPerByte")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Tips", "DataDepositPerByte")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 70u8, 208u8, 250u8, 66u8, 143u8, 90u8, 112u8, 229u8, 138u8, + 156u8, 116u8, 16u8, 65u8, 250u8, 203u8, 188u8, 255u8, 123u8, + 211u8, 66u8, 19u8, 231u8, 22u8, 224u8, 95u8, 6u8, 164u8, + 26u8, 103u8, 226u8, 234u8, 89u8, ] { - let pallet = self.client.metadata().pallet("Tips")?; + let pallet = metadata.pallet("Tips")?; let constant = pallet.constant("DataDepositPerByte")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -23679,18 +24306,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Tips", "TipCountdown")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Tips", "TipCountdown")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 77u8, 181u8, 253u8, 112u8, 168u8, 146u8, 251u8, 28u8, 30u8, + 194u8, 163u8, 60u8, 23u8, 147u8, 144u8, 89u8, 218u8, 9u8, + 171u8, 173u8, 214u8, 23u8, 123u8, 71u8, 94u8, 107u8, 78u8, + 3u8, 197u8, 203u8, 38u8, 220u8, ] { - let pallet = self.client.metadata().pallet("Tips")?; + let pallet = metadata.pallet("Tips")?; let constant = pallet.constant("TipCountdown")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -23706,18 +24332,17 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Percent, ::subxt::BasicError, > { - if self - .client - .metadata() - .constant_hash("Tips", "TipFindersFee")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Tips", "TipFindersFee")? == [ - 51u8, 95u8, 57u8, 159u8, 25u8, 64u8, 29u8, 36u8, 82u8, 174u8, - 29u8, 154u8, 123u8, 113u8, 231u8, 89u8, 161u8, 252u8, 237u8, - 17u8, 50u8, 5u8, 239u8, 138u8, 157u8, 114u8, 246u8, 90u8, - 225u8, 146u8, 157u8, 192u8, + 27u8, 137u8, 241u8, 28u8, 69u8, 248u8, 212u8, 12u8, 176u8, + 157u8, 130u8, 223u8, 38u8, 193u8, 191u8, 102u8, 6u8, 0u8, + 9u8, 207u8, 111u8, 16u8, 182u8, 135u8, 198u8, 209u8, 210u8, + 247u8, 21u8, 135u8, 120u8, 62u8, ] { - let pallet = self.client.metadata().pallet("Tips")?; + let pallet = metadata.pallet("Tips")?; let constant = pallet.constant("TipFindersFee")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -23731,18 +24356,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Tips", "TipReportDepositBase")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Tips", "TipReportDepositBase")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 101u8, 101u8, 22u8, 17u8, 169u8, 8u8, 182u8, 88u8, 11u8, + 146u8, 64u8, 157u8, 3u8, 242u8, 85u8, 122u8, 67u8, 198u8, + 96u8, 217u8, 154u8, 139u8, 58u8, 245u8, 172u8, 177u8, 71u8, + 217u8, 240u8, 7u8, 109u8, 92u8, ] { - let pallet = self.client.metadata().pallet("Tips")?; + let pallet = metadata.pallet("Tips")?; let constant = pallet.constant("TipReportDepositBase")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -23765,13 +24389,13 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SubmitUnsigned { pub raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , pub witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } impl ::subxt::Call for SubmitUnsigned { const PALLET: &'static str = "ElectionProviderMultiPhase"; const FUNCTION: &'static str = "submit_unsigned"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetMinimumUntrustedScore { pub maybe_next_score: ::core::option::Option< runtime_types::sp_npos_elections::ElectionScore, @@ -23781,7 +24405,7 @@ pub mod api { const PALLET: &'static str = "ElectionProviderMultiPhase"; const FUNCTION: &'static str = "set_minimum_untrusted_score"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetEmergencyElectionResult { pub supports: ::std::vec::Vec<( ::subxt::sp_core::crypto::AccountId32, @@ -23794,7 +24418,7 @@ pub mod api { const PALLET: &'static str = "ElectionProviderMultiPhase"; const FUNCTION: &'static str = "set_emergency_election_result"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Submit { pub raw_solution: ::std::boxed::Box< runtime_types::pallet_election_provider_multi_phase::RawSolution< @@ -23806,7 +24430,7 @@ pub mod api { const PALLET: &'static str = "ElectionProviderMultiPhase"; const FUNCTION: &'static str = "submit"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct GovernanceFallback { pub maybe_max_voters: ::core::option::Option<::core::primitive::u32>, pub maybe_max_targets: ::core::option::Option<::core::primitive::u32>, @@ -23859,7 +24483,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 202u8, 104u8, 247u8, 250u8, 171u8, 119u8, 119u8, 96u8, 213u8, 119u8, 41u8, 116u8, 29u8, 99u8, 71u8, 203u8, 168u8, 212u8, @@ -23897,10 +24523,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 207u8, 31u8, 247u8, 72u8, 55u8, 18u8, 99u8, 157u8, 155u8, 89u8, 59u8, 156u8, 254u8, 3u8, 181u8, 85u8, 48u8, 42u8, 73u8, @@ -23941,10 +24566,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 195u8, 164u8, 133u8, 193u8, 58u8, 154u8, 182u8, 83u8, 231u8, 217u8, 199u8, 27u8, 239u8, 143u8, 60u8, 103u8, 139u8, 253u8, @@ -23981,7 +24605,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 192u8, 193u8, 242u8, 99u8, 80u8, 253u8, 100u8, 234u8, 199u8, 15u8, 119u8, 251u8, 94u8, 248u8, 110u8, 171u8, 216u8, 218u8, @@ -24016,7 +24642,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 195u8, 190u8, 140u8, 94u8, 209u8, 100u8, 92u8, 194u8, 78u8, 226u8, 16u8, 168u8, 52u8, 117u8, 88u8, 178u8, 84u8, 248u8, @@ -24039,7 +24667,7 @@ pub mod api { runtime_types::pallet_election_provider_multi_phase::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A solution was stored with the given compute."] #[doc = ""] #[doc = "If the solution is signed, this means that it hasn't yet been processed. If the"] @@ -24055,7 +24683,7 @@ pub mod api { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "SolutionStored"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The election has been finalized, with `Some` of the given computation, or else if the"] #[doc = "election failed, `None`."] pub struct ElectionFinalized { @@ -24067,7 +24695,7 @@ pub mod api { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "ElectionFinalized"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An account has been rewarded for their signed submission being finalized."] pub struct Rewarded { pub account: ::subxt::sp_core::crypto::AccountId32, @@ -24077,7 +24705,7 @@ pub mod api { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "Rewarded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An account has been slashed for submitting an invalid signed submission."] pub struct Slashed { pub account: ::subxt::sp_core::crypto::AccountId32, @@ -24088,10 +24716,10 @@ pub mod api { const EVENT: &'static str = "Slashed"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "The signed phase of the given round has started."] pub struct SignedPhaseStarted { @@ -24102,10 +24730,10 @@ pub mod api { const EVENT: &'static str = "SignedPhaseStarted"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "The unsigned phase of the given round has started."] pub struct UnsignedPhaseStarted { @@ -24235,7 +24863,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 16u8, 49u8, 176u8, 52u8, 202u8, 111u8, 120u8, 8u8, 217u8, 96u8, 35u8, 14u8, 233u8, 130u8, 47u8, 98u8, 34u8, 44u8, @@ -24262,7 +24892,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 162u8, 177u8, 133u8, 63u8, 175u8, 78u8, 85u8, 0u8, 233u8, 84u8, 10u8, 250u8, 190u8, 39u8, 101u8, 11u8, 52u8, 31u8, @@ -24280,7 +24912,9 @@ pub mod api { } } #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] pub async fn queued_solution (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: ReadySolution < :: subxt :: sp_core :: crypto :: AccountId32 > > , :: subxt :: BasicError >{ - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 145u8, 177u8, 147u8, 52u8, 30u8, 135u8, 33u8, 145u8, 204u8, 82u8, 1u8, 165u8, 208u8, 39u8, 181u8, 2u8, 96u8, 236u8, 19u8, @@ -24297,7 +24931,9 @@ pub mod api { #[doc = " Snapshot data of the round."] #[doc = ""] #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] pub async fn snapshot (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot > , :: subxt :: BasicError >{ - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 28u8, 163u8, 105u8, 94u8, 66u8, 226u8, 134u8, 29u8, 210u8, 211u8, 182u8, 236u8, 180u8, 109u8, 203u8, 44u8, 1u8, 50u8, @@ -24321,7 +24957,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 16u8, 247u8, 4u8, 181u8, 93u8, 79u8, 12u8, 212u8, 146u8, 167u8, 80u8, 58u8, 118u8, 52u8, 68u8, 87u8, 90u8, 140u8, @@ -24338,7 +24976,9 @@ pub mod api { #[doc = " The metadata of the [`RoundSnapshot`]"] #[doc = ""] #[doc = " Only exists when [`Snapshot`] is present."] pub async fn snapshot_metadata (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize > , :: subxt :: BasicError >{ - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 240u8, 57u8, 126u8, 76u8, 84u8, 244u8, 120u8, 136u8, 164u8, 49u8, 185u8, 89u8, 126u8, 18u8, 117u8, 235u8, 33u8, 226u8, @@ -24366,10 +25006,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 242u8, 11u8, 157u8, 105u8, 96u8, 7u8, 31u8, 20u8, 51u8, 141u8, 182u8, 180u8, 13u8, 172u8, 155u8, 59u8, 42u8, 238u8, @@ -24392,10 +25031,9 @@ pub mod api { #[doc = " We never need to process more than a single signed submission at a time. Signed submissions"] #[doc = " can be quite large, so we're willing to pay the cost of multiple database accesses to access"] #[doc = " them one at a time instead of reading and decoding all of them at once."] pub async fn signed_submission_indices (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: bounded_btree_map :: BoundedBTreeMap < runtime_types :: sp_npos_elections :: ElectionScore , :: core :: primitive :: u32 > , :: subxt :: BasicError >{ - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 191u8, 143u8, 241u8, 251u8, 74u8, 9u8, 145u8, 136u8, 135u8, 76u8, 182u8, 85u8, 140u8, 252u8, 58u8, 183u8, 217u8, 121u8, @@ -24419,10 +25057,9 @@ pub mod api { #[doc = ""] #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub async fn signed_submissions_map (& self , _0 : & :: core :: primitive :: u32 , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: sp_core :: crypto :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , :: subxt :: BasicError >{ - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 94u8, 51u8, 117u8, 215u8, 100u8, 250u8, 9u8, 70u8, 131u8, 21u8, 2u8, 142u8, 177u8, 117u8, 21u8, 190u8, 10u8, 15u8, @@ -24450,10 +25087,9 @@ pub mod api { ::subxt::KeyIter<'a, T, SignedSubmissionsMap<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 94u8, 51u8, 117u8, 215u8, 100u8, 250u8, 9u8, 70u8, 131u8, 21u8, 2u8, 142u8, 177u8, 117u8, 21u8, 190u8, 10u8, 15u8, @@ -24479,10 +25115,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 18u8, 171u8, 56u8, 63u8, 7u8, 1u8, 53u8, 42u8, 72u8, 35u8, 26u8, 124u8, 223u8, 95u8, 170u8, 176u8, 134u8, 140u8, 66u8, @@ -24512,21 +25147,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata .constant_hash("ElectionProviderMultiPhase", "UnsignedPhase")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 252u8, 58u8, 254u8, 55u8, 124u8, 222u8, 252u8, 218u8, 73u8, + 211u8, 18u8, 206u8, 233u8, 17u8, 202u8, 176u8, 32u8, 189u8, + 143u8, 185u8, 56u8, 120u8, 184u8, 158u8, 10u8, 166u8, 193u8, + 36u8, 118u8, 58u8, 239u8, 95u8, ] { - let pallet = self - .client - .metadata() - .pallet("ElectionProviderMultiPhase")?; + let pallet = metadata.pallet("ElectionProviderMultiPhase")?; let constant = pallet.constant("UnsignedPhase")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -24540,21 +25172,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata .constant_hash("ElectionProviderMultiPhase", "SignedPhase")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 63u8, 15u8, 168u8, 217u8, 6u8, 184u8, 197u8, 27u8, 10u8, + 102u8, 5u8, 140u8, 61u8, 101u8, 26u8, 255u8, 226u8, 2u8, + 58u8, 242u8, 169u8, 115u8, 80u8, 199u8, 6u8, 8u8, 212u8, + 243u8, 171u8, 167u8, 102u8, 73u8, ] { - let pallet = self - .client - .metadata() - .pallet("ElectionProviderMultiPhase")?; + let pallet = metadata.pallet("ElectionProviderMultiPhase")?; let constant = pallet.constant("SignedPhase")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -24571,19 +25200,18 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::BasicError, > { - if self.client.metadata().constant_hash( + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash( "ElectionProviderMultiPhase", "SolutionImprovementThreshold", )? == [ - 26u8, 148u8, 47u8, 190u8, 51u8, 71u8, 203u8, 119u8, 167u8, 91u8, - 70u8, 11u8, 149u8, 155u8, 138u8, 91u8, 119u8, 0u8, 74u8, 83u8, - 16u8, 47u8, 129u8, 11u8, 81u8, 169u8, 79u8, 31u8, 161u8, 119u8, - 2u8, 38u8, + 134u8, 67u8, 182u8, 225u8, 210u8, 61u8, 10u8, 251u8, 7u8, 107u8, + 38u8, 91u8, 186u8, 153u8, 206u8, 250u8, 147u8, 230u8, 24u8, 4u8, + 194u8, 111u8, 79u8, 64u8, 234u8, 72u8, 58u8, 107u8, 252u8, 37u8, + 70u8, 184u8, ] { - let pallet = self - .client - .metadata() - .pallet("ElectionProviderMultiPhase")?; + let pallet = metadata.pallet("ElectionProviderMultiPhase")?; let constant = pallet.constant("SolutionImprovementThreshold")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -24600,21 +25228,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata .constant_hash("ElectionProviderMultiPhase", "OffchainRepeat")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 55u8, 45u8, 136u8, 82u8, 224u8, 82u8, 150u8, 198u8, 78u8, + 58u8, 31u8, 9u8, 161u8, 129u8, 11u8, 112u8, 146u8, 226u8, + 210u8, 94u8, 167u8, 169u8, 146u8, 149u8, 110u8, 122u8, 168u8, + 148u8, 73u8, 100u8, 166u8, 103u8, ] { - let pallet = self - .client - .metadata() - .pallet("ElectionProviderMultiPhase")?; + let pallet = metadata.pallet("ElectionProviderMultiPhase")?; let constant = pallet.constant("OffchainRepeat")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -24628,21 +25253,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self - .client - .metadata() + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata .constant_hash("ElectionProviderMultiPhase", "MinerTxPriority")? == [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, - 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, - 65u8, 18u8, 191u8, 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, - 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, + 153u8, 173u8, 61u8, 171u8, 80u8, 43u8, 214u8, 150u8, 233u8, + 153u8, 197u8, 226u8, 116u8, 21u8, 156u8, 154u8, 131u8, 241u8, + 214u8, 151u8, 136u8, 203u8, 251u8, 42u8, 170u8, 221u8, 211u8, + 97u8, 45u8, 93u8, 60u8, 5u8, ] { - let pallet = self - .client - .metadata() - .pallet("ElectionProviderMultiPhase")?; + let pallet = metadata.pallet("ElectionProviderMultiPhase")?; let constant = pallet.constant("MinerTxPriority")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -24659,21 +25281,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self - .client - .metadata() + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata .constant_hash("ElectionProviderMultiPhase", "MinerMaxWeight")? == [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, - 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, - 65u8, 18u8, 191u8, 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, - 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, + 225u8, 83u8, 120u8, 180u8, 14u8, 13u8, 33u8, 51u8, 90u8, + 218u8, 212u8, 203u8, 3u8, 184u8, 197u8, 120u8, 36u8, 87u8, + 192u8, 216u8, 241u8, 41u8, 232u8, 91u8, 27u8, 90u8, 156u8, + 216u8, 184u8, 133u8, 229u8, 92u8, ] { - let pallet = self - .client - .metadata() - .pallet("ElectionProviderMultiPhase")?; + let pallet = metadata.pallet("ElectionProviderMultiPhase")?; let constant = pallet.constant("MinerMaxWeight")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -24693,19 +25312,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().constant_hash( + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash( "ElectionProviderMultiPhase", "SignedMaxSubmissions", )? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, - 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, - 41u8, 145u8, + 51u8, 141u8, 203u8, 103u8, 212u8, 173u8, 160u8, 148u8, 108u8, + 30u8, 104u8, 248u8, 65u8, 237u8, 167u8, 11u8, 102u8, 146u8, + 117u8, 133u8, 0u8, 61u8, 129u8, 138u8, 157u8, 221u8, 248u8, 33u8, + 118u8, 182u8, 199u8, 248u8, ] { - let pallet = self - .client - .metadata() - .pallet("ElectionProviderMultiPhase")?; + let pallet = metadata.pallet("ElectionProviderMultiPhase")?; let constant = pallet.constant("SignedMaxSubmissions")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -24721,21 +25339,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self - .client - .metadata() + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata .constant_hash("ElectionProviderMultiPhase", "SignedMaxWeight")? == [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, - 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, - 65u8, 18u8, 191u8, 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, - 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, + 245u8, 227u8, 58u8, 211u8, 17u8, 86u8, 80u8, 95u8, 176u8, + 24u8, 119u8, 219u8, 116u8, 177u8, 55u8, 204u8, 65u8, 122u8, + 19u8, 7u8, 3u8, 216u8, 70u8, 159u8, 97u8, 145u8, 23u8, 49u8, + 128u8, 2u8, 180u8, 99u8, ] { - let pallet = self - .client - .metadata() - .pallet("ElectionProviderMultiPhase")?; + let pallet = metadata.pallet("ElectionProviderMultiPhase")?; let constant = pallet.constant("SignedMaxWeight")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -24749,21 +25364,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata .constant_hash("ElectionProviderMultiPhase", "SignedRewardBase")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 32u8, 167u8, 245u8, 56u8, 96u8, 125u8, 239u8, 237u8, 40u8, + 201u8, 204u8, 55u8, 92u8, 234u8, 12u8, 129u8, 215u8, 35u8, + 67u8, 199u8, 150u8, 222u8, 178u8, 242u8, 35u8, 177u8, 104u8, + 145u8, 162u8, 129u8, 28u8, 87u8, ] { - let pallet = self - .client - .metadata() - .pallet("ElectionProviderMultiPhase")?; + let pallet = metadata.pallet("ElectionProviderMultiPhase")?; let constant = pallet.constant("SignedRewardBase")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -24777,19 +25389,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self.client.metadata().constant_hash( + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash( "ElectionProviderMultiPhase", "SignedDepositBase", )? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, - 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, - 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, - 98u8, 148u8, 156u8, + 81u8, 103u8, 118u8, 215u8, 167u8, 76u8, 76u8, 213u8, 52u8, 45u8, + 186u8, 167u8, 71u8, 75u8, 193u8, 59u8, 156u8, 7u8, 199u8, 110u8, + 166u8, 131u8, 227u8, 92u8, 168u8, 138u8, 125u8, 16u8, 131u8, + 167u8, 156u8, 157u8, ] { - let pallet = self - .client - .metadata() - .pallet("ElectionProviderMultiPhase")?; + let pallet = metadata.pallet("ElectionProviderMultiPhase")?; let constant = pallet.constant("SignedDepositBase")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -24803,19 +25414,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self.client.metadata().constant_hash( + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash( "ElectionProviderMultiPhase", "SignedDepositByte", )? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, - 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, - 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, - 98u8, 148u8, 156u8, + 86u8, 255u8, 18u8, 115u8, 127u8, 231u8, 26u8, 5u8, 206u8, 90u8, + 51u8, 22u8, 240u8, 61u8, 5u8, 117u8, 191u8, 231u8, 167u8, 48u8, + 13u8, 101u8, 79u8, 17u8, 251u8, 163u8, 23u8, 109u8, 193u8, 190u8, + 92u8, 103u8, ] { - let pallet = self - .client - .metadata() - .pallet("ElectionProviderMultiPhase")?; + let pallet = metadata.pallet("ElectionProviderMultiPhase")?; let constant = pallet.constant("SignedDepositByte")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -24829,19 +25439,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self.client.metadata().constant_hash( + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash( "ElectionProviderMultiPhase", "SignedDepositWeight", )? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, - 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, - 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, - 98u8, 148u8, 156u8, + 229u8, 168u8, 140u8, 127u8, 138u8, 107u8, 171u8, 116u8, 171u8, + 63u8, 205u8, 84u8, 202u8, 17u8, 134u8, 171u8, 204u8, 31u8, 54u8, + 43u8, 138u8, 50u8, 55u8, 112u8, 27u8, 103u8, 183u8, 209u8, 167u8, + 214u8, 19u8, 95u8, ] { - let pallet = self - .client - .metadata() - .pallet("ElectionProviderMultiPhase")?; + let pallet = metadata.pallet("ElectionProviderMultiPhase")?; let constant = pallet.constant("SignedDepositWeight")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -24857,19 +25466,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().constant_hash( + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash( "ElectionProviderMultiPhase", "MaxElectingVoters", )? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, - 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, - 41u8, 145u8, + 202u8, 136u8, 180u8, 3u8, 16u8, 142u8, 77u8, 250u8, 154u8, 116u8, + 78u8, 110u8, 72u8, 135u8, 115u8, 120u8, 109u8, 12u8, 156u8, + 129u8, 250u8, 120u8, 71u8, 221u8, 93u8, 172u8, 53u8, 44u8, 192u8, + 164u8, 213u8, 68u8, ] { - let pallet = self - .client - .metadata() - .pallet("ElectionProviderMultiPhase")?; + let pallet = metadata.pallet("ElectionProviderMultiPhase")?; let constant = pallet.constant("MaxElectingVoters")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -24883,19 +25491,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> { - if self.client.metadata().constant_hash( + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash( "ElectionProviderMultiPhase", "MaxElectableTargets", )? == [ - 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, - 227u8, 41u8, 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, 184u8, - 72u8, 169u8, 90u8, 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, - 193u8, 29u8, 70u8, + 71u8, 15u8, 36u8, 77u8, 111u8, 52u8, 73u8, 94u8, 27u8, 213u8, + 122u8, 58u8, 126u8, 157u8, 17u8, 238u8, 168u8, 174u8, 0u8, 94u8, + 15u8, 86u8, 206u8, 115u8, 222u8, 234u8, 25u8, 195u8, 107u8, + 138u8, 213u8, 39u8, ] { - let pallet = self - .client - .metadata() - .pallet("ElectionProviderMultiPhase")?; + let pallet = metadata.pallet("ElectionProviderMultiPhase")?; let constant = pallet.constant("MaxElectableTargets")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -24912,21 +25519,18 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata .constant_hash("ElectionProviderMultiPhase", "MinerMaxLength")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 131u8, 141u8, 170u8, 106u8, 200u8, 39u8, 188u8, 38u8, 159u8, + 91u8, 130u8, 187u8, 164u8, 109u8, 34u8, 75u8, 198u8, 247u8, + 204u8, 249u8, 246u8, 87u8, 217u8, 117u8, 113u8, 120u8, 57u8, + 201u8, 210u8, 22u8, 108u8, 124u8, ] { - let pallet = self - .client - .metadata() - .pallet("ElectionProviderMultiPhase")?; + let pallet = metadata.pallet("ElectionProviderMultiPhase")?; let constant = pallet.constant("MinerMaxLength")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -24949,7 +25553,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Rebag { pub dislocated: ::subxt::sp_core::crypto::AccountId32, } @@ -24957,7 +25561,7 @@ pub mod api { const PALLET: &'static str = "BagsList"; const FUNCTION: &'static str = "rebag"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct PutInFrontOf { pub lighter: ::subxt::sp_core::crypto::AccountId32, } @@ -25002,7 +25606,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 46u8, 138u8, 28u8, 6u8, 58u8, 153u8, 5u8, 41u8, 44u8, 7u8, 228u8, 72u8, 135u8, 184u8, 185u8, 132u8, 146u8, 181u8, 47u8, @@ -25038,7 +25644,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 79u8, 254u8, 222u8, 19u8, 17u8, 80u8, 7u8, 68u8, 54u8, 9u8, 23u8, 133u8, 108u8, 29u8, 166u8, 177u8, 230u8, 247u8, 226u8, @@ -25057,7 +25665,7 @@ pub mod api { pub type Event = runtime_types::pallet_bags_list::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Moved an account from one bag to another."] pub struct Rebagged { pub who: ::subxt::sp_core::crypto::AccountId32, @@ -25122,7 +25730,9 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 114u8, 219u8, 206u8, 128u8, 160u8, 134u8, 95u8, 214u8, 195u8, 15u8, 140u8, 174u8, 89u8, 85u8, 191u8, 85u8, 96u8, 58u8, @@ -25146,7 +25756,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ListNodes<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 114u8, 219u8, 206u8, 128u8, 160u8, 134u8, 95u8, 214u8, 195u8, 15u8, 140u8, 174u8, 89u8, 85u8, 191u8, 85u8, 96u8, 58u8, @@ -25165,10 +25777,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 156u8, 168u8, 97u8, 33u8, 84u8, 117u8, 220u8, 89u8, 62u8, 182u8, 24u8, 88u8, 231u8, 244u8, 41u8, 19u8, 210u8, 131u8, @@ -25196,7 +25807,9 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 117u8, 35u8, 42u8, 116u8, 5u8, 68u8, 168u8, 75u8, 112u8, 29u8, 54u8, 49u8, 169u8, 103u8, 22u8, 163u8, 53u8, 122u8, @@ -25220,7 +25833,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ListBags<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 117u8, 35u8, 42u8, 116u8, 5u8, 68u8, 168u8, 75u8, 112u8, 29u8, 54u8, 49u8, 169u8, 103u8, 22u8, 163u8, 53u8, 122u8, @@ -25293,18 +25908,17 @@ pub mod api { ::std::vec::Vec<::core::primitive::u64>, ::subxt::BasicError, > { - if self - .client - .metadata() - .constant_hash("BagsList", "BagThresholds")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("BagsList", "BagThresholds")? == [ - 103u8, 102u8, 255u8, 165u8, 124u8, 54u8, 5u8, 172u8, 112u8, - 234u8, 25u8, 175u8, 178u8, 19u8, 251u8, 73u8, 91u8, 192u8, - 227u8, 81u8, 249u8, 45u8, 126u8, 116u8, 7u8, 37u8, 9u8, - 200u8, 167u8, 182u8, 12u8, 131u8, + 95u8, 68u8, 224u8, 175u8, 149u8, 202u8, 192u8, 181u8, 221u8, + 32u8, 210u8, 34u8, 242u8, 160u8, 84u8, 54u8, 221u8, 57u8, + 122u8, 238u8, 246u8, 239u8, 28u8, 125u8, 175u8, 46u8, 183u8, + 129u8, 6u8, 103u8, 171u8, 172u8, ] { - let pallet = self.client.metadata().pallet("BagsList")?; + let pallet = metadata.pallet("BagsList")?; let constant = pallet.constant("BagThresholds")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -25334,10 +25948,10 @@ pub mod api { }; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetValidationUpgradeCooldown { pub new: ::core::primitive::u32, @@ -25347,10 +25961,10 @@ pub mod api { const FUNCTION: &'static str = "set_validation_upgrade_cooldown"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetValidationUpgradeDelay { pub new: ::core::primitive::u32, @@ -25360,10 +25974,10 @@ pub mod api { const FUNCTION: &'static str = "set_validation_upgrade_delay"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetCodeRetentionPeriod { pub new: ::core::primitive::u32, @@ -25373,10 +25987,10 @@ pub mod api { const FUNCTION: &'static str = "set_code_retention_period"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetMaxCodeSize { pub new: ::core::primitive::u32, @@ -25386,10 +26000,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_code_size"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetMaxPovSize { pub new: ::core::primitive::u32, @@ -25399,10 +26013,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_pov_size"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetMaxHeadDataSize { pub new: ::core::primitive::u32, @@ -25412,10 +26026,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_head_data_size"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetParathreadCores { pub new: ::core::primitive::u32, @@ -25425,10 +26039,10 @@ pub mod api { const FUNCTION: &'static str = "set_parathread_cores"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetParathreadRetries { pub new: ::core::primitive::u32, @@ -25438,10 +26052,10 @@ pub mod api { const FUNCTION: &'static str = "set_parathread_retries"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetGroupRotationFrequency { pub new: ::core::primitive::u32, @@ -25451,10 +26065,10 @@ pub mod api { const FUNCTION: &'static str = "set_group_rotation_frequency"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetChainAvailabilityPeriod { pub new: ::core::primitive::u32, @@ -25464,10 +26078,10 @@ pub mod api { const FUNCTION: &'static str = "set_chain_availability_period"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetThreadAvailabilityPeriod { pub new: ::core::primitive::u32, @@ -25477,10 +26091,10 @@ pub mod api { const FUNCTION: &'static str = "set_thread_availability_period"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetSchedulingLookahead { pub new: ::core::primitive::u32, @@ -25489,7 +26103,7 @@ pub mod api { const PALLET: &'static str = "Configuration"; const FUNCTION: &'static str = "set_scheduling_lookahead"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetMaxValidatorsPerCore { pub new: ::core::option::Option<::core::primitive::u32>, } @@ -25497,7 +26111,7 @@ pub mod api { const PALLET: &'static str = "Configuration"; const FUNCTION: &'static str = "set_max_validators_per_core"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetMaxValidators { pub new: ::core::option::Option<::core::primitive::u32>, } @@ -25506,10 +26120,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_validators"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetDisputePeriod { pub new: ::core::primitive::u32, @@ -25519,10 +26133,10 @@ pub mod api { const FUNCTION: &'static str = "set_dispute_period"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetDisputePostConclusionAcceptancePeriod { pub new: ::core::primitive::u32, @@ -25533,10 +26147,10 @@ pub mod api { "set_dispute_post_conclusion_acceptance_period"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetDisputeMaxSpamSlots { pub new: ::core::primitive::u32, @@ -25546,10 +26160,10 @@ pub mod api { const FUNCTION: &'static str = "set_dispute_max_spam_slots"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetDisputeConclusionByTimeOutPeriod { pub new: ::core::primitive::u32, @@ -25560,10 +26174,10 @@ pub mod api { "set_dispute_conclusion_by_time_out_period"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetNoShowSlots { pub new: ::core::primitive::u32, @@ -25573,10 +26187,10 @@ pub mod api { const FUNCTION: &'static str = "set_no_show_slots"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetNDelayTranches { pub new: ::core::primitive::u32, @@ -25586,10 +26200,10 @@ pub mod api { const FUNCTION: &'static str = "set_n_delay_tranches"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetZerothDelayTrancheWidth { pub new: ::core::primitive::u32, @@ -25599,10 +26213,10 @@ pub mod api { const FUNCTION: &'static str = "set_zeroth_delay_tranche_width"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetNeededApprovals { pub new: ::core::primitive::u32, @@ -25612,10 +26226,10 @@ pub mod api { const FUNCTION: &'static str = "set_needed_approvals"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetRelayVrfModuloSamples { pub new: ::core::primitive::u32, @@ -25625,10 +26239,10 @@ pub mod api { const FUNCTION: &'static str = "set_relay_vrf_modulo_samples"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetMaxUpwardQueueCount { pub new: ::core::primitive::u32, @@ -25638,10 +26252,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_upward_queue_count"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetMaxUpwardQueueSize { pub new: ::core::primitive::u32, @@ -25651,10 +26265,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_upward_queue_size"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetMaxDownwardMessageSize { pub new: ::core::primitive::u32, @@ -25664,10 +26278,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_downward_message_size"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetUmpServiceTotalWeight { pub new: ::core::primitive::u64, @@ -25677,10 +26291,10 @@ pub mod api { const FUNCTION: &'static str = "set_ump_service_total_weight"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetMaxUpwardMessageSize { pub new: ::core::primitive::u32, @@ -25690,10 +26304,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_upward_message_size"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetMaxUpwardMessageNumPerCandidate { pub new: ::core::primitive::u32, @@ -25703,10 +26317,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_upward_message_num_per_candidate"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetHrmpOpenRequestTtl { pub new: ::core::primitive::u32, @@ -25716,10 +26330,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_open_request_ttl"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetHrmpSenderDeposit { pub new: ::core::primitive::u128, @@ -25729,10 +26343,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_sender_deposit"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetHrmpRecipientDeposit { pub new: ::core::primitive::u128, @@ -25742,10 +26356,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_recipient_deposit"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetHrmpChannelMaxCapacity { pub new: ::core::primitive::u32, @@ -25755,10 +26369,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_channel_max_capacity"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetHrmpChannelMaxTotalSize { pub new: ::core::primitive::u32, @@ -25768,10 +26382,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_channel_max_total_size"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetHrmpMaxParachainInboundChannels { pub new: ::core::primitive::u32, @@ -25781,10 +26395,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_max_parachain_inbound_channels"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetHrmpMaxParathreadInboundChannels { pub new: ::core::primitive::u32, @@ -25794,10 +26408,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_max_parathread_inbound_channels"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetHrmpChannelMaxMessageSize { pub new: ::core::primitive::u32, @@ -25807,10 +26421,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_channel_max_message_size"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetHrmpMaxParachainOutboundChannels { pub new: ::core::primitive::u32, @@ -25820,10 +26434,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_max_parachain_outbound_channels"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetHrmpMaxParathreadOutboundChannels { pub new: ::core::primitive::u32, @@ -25834,10 +26448,10 @@ pub mod api { "set_hrmp_max_parathread_outbound_channels"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetHrmpMaxMessageNumPerCandidate { pub new: ::core::primitive::u32, @@ -25847,10 +26461,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_max_message_num_per_candidate"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetUmpMaxIndividualWeight { pub new: ::core::primitive::u64, @@ -25859,7 +26473,7 @@ pub mod api { const PALLET: &'static str = "Configuration"; const FUNCTION: &'static str = "set_ump_max_individual_weight"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetPvfCheckingEnabled { pub new: ::core::primitive::bool, } @@ -25868,10 +26482,10 @@ pub mod api { const FUNCTION: &'static str = "set_pvf_checking_enabled"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetPvfVotingTtl { pub new: ::core::primitive::u32, @@ -25881,10 +26495,10 @@ pub mod api { const FUNCTION: &'static str = "set_pvf_voting_ttl"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct SetMinimumValidationUpgradeDelay { pub new: ::core::primitive::u32, @@ -25893,7 +26507,7 @@ pub mod api { const PALLET: &'static str = "Configuration"; const FUNCTION: &'static str = "set_minimum_validation_upgrade_delay"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SetBypassConsistencyCheck { pub new: ::core::primitive::bool, } @@ -25931,10 +26545,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 153u8, 60u8, 171u8, 164u8, 241u8, 214u8, 235u8, 141u8, 4u8, 32u8, 129u8, 253u8, 128u8, 148u8, 185u8, 51u8, 65u8, 34u8, @@ -25963,10 +26576,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 136u8, 220u8, 63u8, 166u8, 202u8, 19u8, 241u8, 32u8, 100u8, 14u8, 101u8, 244u8, 241u8, 141u8, 144u8, 213u8, 185u8, 88u8, @@ -25995,10 +26607,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 94u8, 104u8, 13u8, 127u8, 95u8, 137u8, 66u8, 224u8, 22u8, 53u8, 14u8, 161u8, 67u8, 85u8, 78u8, 161u8, 92u8, 81u8, @@ -26027,7 +26638,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 74u8, 39u8, 190u8, 155u8, 121u8, 60u8, 233u8, 95u8, 177u8, 57u8, 116u8, 107u8, 200u8, 44u8, 2u8, 215u8, 209u8, 50u8, @@ -26056,7 +26669,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 77u8, 199u8, 18u8, 53u8, 223u8, 107u8, 57u8, 141u8, 8u8, 138u8, 180u8, 175u8, 73u8, 88u8, 205u8, 185u8, 56u8, 106u8, @@ -26085,7 +26700,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 30u8, 132u8, 5u8, 207u8, 126u8, 145u8, 187u8, 129u8, 36u8, 235u8, 179u8, 61u8, 243u8, 87u8, 178u8, 107u8, 8u8, 21u8, @@ -26114,7 +26731,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 5u8, 198u8, 156u8, 226u8, 125u8, 16u8, 2u8, 64u8, 28u8, 189u8, 213u8, 85u8, 6u8, 112u8, 173u8, 183u8, 174u8, 207u8, @@ -26143,7 +26762,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 146u8, 134u8, 204u8, 109u8, 167u8, 35u8, 255u8, 245u8, 98u8, 24u8, 213u8, 33u8, 144u8, 194u8, 196u8, 196u8, 66u8, 220u8, @@ -26172,10 +26793,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 102u8, 192u8, 226u8, 120u8, 69u8, 117u8, 239u8, 156u8, 111u8, 239u8, 197u8, 191u8, 221u8, 18u8, 140u8, 214u8, 154u8, 212u8, @@ -26204,10 +26824,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 3u8, 83u8, 31u8, 241u8, 73u8, 137u8, 18u8, 95u8, 119u8, 143u8, 28u8, 110u8, 151u8, 229u8, 172u8, 208u8, 50u8, 25u8, @@ -26236,10 +26855,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 242u8, 204u8, 158u8, 5u8, 123u8, 163u8, 6u8, 209u8, 44u8, 73u8, 112u8, 249u8, 96u8, 160u8, 188u8, 151u8, 107u8, 21u8, @@ -26268,10 +26886,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 146u8, 149u8, 10u8, 57u8, 122u8, 116u8, 61u8, 181u8, 97u8, 240u8, 87u8, 37u8, 227u8, 233u8, 123u8, 26u8, 243u8, 58u8, @@ -26300,10 +26917,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 27u8, 160u8, 153u8, 252u8, 121u8, 42u8, 94u8, 131u8, 199u8, 216u8, 15u8, 65u8, 94u8, 69u8, 127u8, 130u8, 179u8, 236u8, @@ -26332,7 +26948,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 192u8, 156u8, 115u8, 10u8, 225u8, 94u8, 190u8, 180u8, 242u8, 131u8, 202u8, 13u8, 82u8, 27u8, 8u8, 144u8, 70u8, 92u8, @@ -26361,7 +26979,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 232u8, 96u8, 104u8, 249u8, 183u8, 148u8, 126u8, 80u8, 64u8, 39u8, 2u8, 208u8, 183u8, 189u8, 139u8, 201u8, 61u8, 63u8, @@ -26390,10 +27010,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 45u8, 140u8, 213u8, 62u8, 212u8, 31u8, 126u8, 94u8, 102u8, 176u8, 203u8, 240u8, 28u8, 25u8, 116u8, 77u8, 187u8, 147u8, @@ -26422,10 +27041,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 180u8, 195u8, 6u8, 141u8, 89u8, 252u8, 245u8, 202u8, 36u8, 123u8, 105u8, 35u8, 161u8, 60u8, 233u8, 213u8, 191u8, 65u8, @@ -26454,10 +27072,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 50u8, 221u8, 129u8, 199u8, 147u8, 98u8, 11u8, 104u8, 133u8, 161u8, 53u8, 163u8, 100u8, 155u8, 228u8, 167u8, 146u8, 87u8, @@ -26487,7 +27104,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 235u8, 5u8, 35u8, 159u8, 200u8, 58u8, 171u8, 179u8, 78u8, 70u8, 161u8, 47u8, 237u8, 245u8, 77u8, 81u8, 1u8, 138u8, @@ -26516,7 +27135,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 109u8, 208u8, 13u8, 18u8, 178u8, 117u8, 101u8, 169u8, 162u8, 255u8, 28u8, 88u8, 199u8, 89u8, 83u8, 59u8, 46u8, 105u8, @@ -26545,10 +27166,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 162u8, 20u8, 162u8, 90u8, 59u8, 194u8, 147u8, 255u8, 198u8, 203u8, 50u8, 13u8, 134u8, 142u8, 6u8, 156u8, 205u8, 128u8, @@ -26577,7 +27197,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 83u8, 164u8, 204u8, 168u8, 93u8, 165u8, 118u8, 111u8, 149u8, 129u8, 126u8, 250u8, 95u8, 148u8, 193u8, 173u8, 239u8, 1u8, @@ -26606,10 +27228,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 22u8, 11u8, 132u8, 96u8, 58u8, 253u8, 183u8, 31u8, 137u8, 231u8, 187u8, 145u8, 119u8, 164u8, 55u8, 142u8, 37u8, 151u8, @@ -26638,10 +27259,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 16u8, 31u8, 245u8, 94u8, 243u8, 122u8, 55u8, 155u8, 161u8, 239u8, 5u8, 59u8, 186u8, 207u8, 136u8, 253u8, 255u8, 176u8, @@ -26670,10 +27290,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 203u8, 170u8, 21u8, 149u8, 170u8, 246u8, 91u8, 54u8, 197u8, 91u8, 41u8, 114u8, 210u8, 239u8, 73u8, 236u8, 68u8, 194u8, @@ -26702,10 +27321,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 55u8, 181u8, 6u8, 126u8, 31u8, 154u8, 42u8, 194u8, 64u8, 23u8, 34u8, 255u8, 151u8, 186u8, 52u8, 32u8, 168u8, 233u8, @@ -26734,10 +27352,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 14u8, 179u8, 217u8, 169u8, 84u8, 45u8, 193u8, 3u8, 7u8, 196u8, 56u8, 209u8, 50u8, 148u8, 32u8, 205u8, 99u8, 202u8, @@ -26766,10 +27383,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 134u8, 232u8, 5u8, 70u8, 81u8, 177u8, 81u8, 235u8, 93u8, 145u8, 193u8, 42u8, 150u8, 61u8, 236u8, 20u8, 38u8, 176u8, @@ -26798,10 +27414,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 14u8, 79u8, 128u8, 66u8, 119u8, 24u8, 26u8, 116u8, 249u8, 254u8, 86u8, 228u8, 248u8, 75u8, 111u8, 90u8, 101u8, 96u8, @@ -26830,10 +27445,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 168u8, 254u8, 189u8, 22u8, 61u8, 90u8, 131u8, 1u8, 103u8, 208u8, 179u8, 85u8, 80u8, 215u8, 9u8, 3u8, 34u8, 73u8, 130u8, @@ -26862,7 +27476,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 250u8, 23u8, 196u8, 206u8, 34u8, 86u8, 28u8, 14u8, 110u8, 189u8, 38u8, 39u8, 2u8, 16u8, 212u8, 32u8, 65u8, 249u8, @@ -26892,10 +27508,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 104u8, 35u8, 129u8, 31u8, 111u8, 57u8, 190u8, 42u8, 159u8, 220u8, 86u8, 136u8, 200u8, 4u8, 62u8, 241u8, 141u8, 90u8, @@ -26924,10 +27539,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 211u8, 49u8, 82u8, 59u8, 16u8, 97u8, 253u8, 64u8, 185u8, 216u8, 235u8, 10u8, 84u8, 194u8, 231u8, 115u8, 153u8, 20u8, @@ -26956,10 +27570,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 254u8, 196u8, 171u8, 29u8, 208u8, 179u8, 204u8, 58u8, 64u8, 41u8, 52u8, 73u8, 153u8, 245u8, 29u8, 132u8, 129u8, 29u8, @@ -26988,10 +27601,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 219u8, 88u8, 3u8, 249u8, 16u8, 182u8, 182u8, 233u8, 152u8, 24u8, 29u8, 96u8, 227u8, 50u8, 156u8, 98u8, 71u8, 196u8, @@ -27020,10 +27632,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 153u8, 169u8, 153u8, 141u8, 45u8, 21u8, 26u8, 33u8, 207u8, 234u8, 186u8, 154u8, 12u8, 148u8, 2u8, 226u8, 55u8, 125u8, @@ -27052,10 +27663,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 237u8, 103u8, 126u8, 197u8, 164u8, 247u8, 67u8, 144u8, 30u8, 192u8, 161u8, 243u8, 254u8, 26u8, 254u8, 33u8, 59u8, 216u8, @@ -27084,10 +27694,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 173u8, 184u8, 49u8, 66u8, 158u8, 142u8, 95u8, 225u8, 90u8, 171u8, 4u8, 20u8, 210u8, 180u8, 54u8, 236u8, 60u8, 5u8, 76u8, @@ -27116,10 +27725,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 166u8, 73u8, 121u8, 53u8, 27u8, 77u8, 150u8, 115u8, 29u8, 202u8, 34u8, 4u8, 35u8, 161u8, 113u8, 15u8, 66u8, 60u8, @@ -27148,10 +27756,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 235u8, 47u8, 114u8, 29u8, 87u8, 198u8, 62u8, 200u8, 235u8, 184u8, 204u8, 35u8, 251u8, 210u8, 88u8, 150u8, 22u8, 61u8, @@ -27180,10 +27787,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 61u8, 174u8, 42u8, 53u8, 120u8, 56u8, 252u8, 117u8, 173u8, 223u8, 100u8, 141u8, 209u8, 29u8, 173u8, 240u8, 180u8, 113u8, @@ -27212,10 +27818,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 224u8, 199u8, 197u8, 208u8, 178u8, 211u8, 14u8, 102u8, 174u8, 205u8, 207u8, 181u8, 75u8, 125u8, 209u8, 69u8, 85u8, 1u8, @@ -27244,7 +27849,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 179u8, 71u8, 42u8, 140u8, 187u8, 43u8, 138u8, 16u8, 104u8, 41u8, 30u8, 220u8, 131u8, 179u8, 200u8, 184u8, 105u8, 58u8, @@ -27276,10 +27883,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 225u8, 178u8, 41u8, 194u8, 154u8, 222u8, 247u8, 129u8, 35u8, 102u8, 248u8, 144u8, 21u8, 74u8, 42u8, 239u8, 135u8, 205u8, @@ -27309,10 +27915,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 5u8, 54u8, 178u8, 218u8, 46u8, 61u8, 99u8, 23u8, 227u8, 202u8, 201u8, 164u8, 121u8, 226u8, 65u8, 253u8, 29u8, 164u8, @@ -27377,7 +27982,9 @@ pub mod api { Self { client } } #[doc = " The active configuration for the current session."] pub async fn active_config (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > , :: subxt :: BasicError >{ - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 6u8, 31u8, 218u8, 51u8, 202u8, 166u8, 183u8, 192u8, 151u8, 184u8, 103u8, 73u8, 239u8, 78u8, 183u8, 38u8, 192u8, 201u8, @@ -27397,7 +28004,9 @@ pub mod api { #[doc = " Pending configuration (if any) for the next session."] #[doc = ""] #[doc = " DEPRECATED: This is no longer used, and will be removed in the future."] pub async fn pending_config (& self , _0 : & :: core :: primitive :: u32 , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: configuration :: migration :: v1 :: HostConfiguration < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 152u8, 192u8, 135u8, 74u8, 174u8, 47u8, 192u8, 95u8, 147u8, 137u8, 41u8, 219u8, 149u8, 198u8, 186u8, 16u8, 158u8, 160u8, @@ -27421,7 +28030,9 @@ pub mod api { ::subxt::KeyIter<'a, T, PendingConfig<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 152u8, 192u8, 135u8, 74u8, 174u8, 47u8, 192u8, 95u8, 147u8, 137u8, 41u8, 219u8, 149u8, 198u8, 186u8, 16u8, 158u8, 160u8, @@ -27441,7 +28052,9 @@ pub mod api { #[doc = ""] #[doc = " The list is sorted ascending by session index. Also, this list can only contain at most"] #[doc = " 2 items: for the next session and for the `scheduled_session`."] pub async fn pending_configs (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < (:: core :: primitive :: u32 , runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ,) > , :: subxt :: BasicError >{ - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 198u8, 168u8, 227u8, 228u8, 110u8, 98u8, 34u8, 21u8, 159u8, 114u8, 202u8, 135u8, 39u8, 190u8, 40u8, 214u8, 170u8, 126u8, @@ -27465,10 +28078,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 42u8, 191u8, 122u8, 163u8, 112u8, 2u8, 148u8, 59u8, 79u8, 219u8, 184u8, 172u8, 246u8, 136u8, 185u8, 251u8, 189u8, @@ -27562,10 +28174,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 83u8, 15u8, 20u8, 55u8, 103u8, 65u8, 76u8, 202u8, 69u8, 14u8, 221u8, 93u8, 38u8, 163u8, 167u8, 83u8, 18u8, 245u8, 33u8, @@ -27593,10 +28204,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 128u8, 98u8, 186u8, 22u8, 178u8, 51u8, 151u8, 235u8, 201u8, 2u8, 245u8, 177u8, 4u8, 125u8, 1u8, 245u8, 56u8, 102u8, @@ -27624,10 +28234,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 130u8, 19u8, 46u8, 117u8, 211u8, 113u8, 90u8, 42u8, 173u8, 87u8, 209u8, 185u8, 102u8, 142u8, 161u8, 60u8, 118u8, 246u8, @@ -27679,7 +28288,7 @@ pub mod api { runtime_types::polkadot_runtime_parachains::inclusion::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A candidate was backed. `[candidate, head_data]`"] pub struct CandidateBacked( pub runtime_types::polkadot_primitives::v2::CandidateReceipt< @@ -27693,7 +28302,7 @@ pub mod api { const PALLET: &'static str = "ParaInclusion"; const EVENT: &'static str = "CandidateBacked"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A candidate was included. `[candidate, head_data]`"] pub struct CandidateIncluded( pub runtime_types::polkadot_primitives::v2::CandidateReceipt< @@ -27707,7 +28316,7 @@ pub mod api { const PALLET: &'static str = "ParaInclusion"; const EVENT: &'static str = "CandidateIncluded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A candidate timed out. `[candidate, head_data]`"] pub struct CandidateTimedOut( pub runtime_types::polkadot_primitives::v2::CandidateReceipt< @@ -27775,10 +28384,9 @@ pub mod api { Self { client } } #[doc = " The latest bitfield for each validator, referred to by their index in the validator set."] pub async fn availability_bitfields (& self , _0 : & runtime_types :: polkadot_primitives :: v2 :: ValidatorIndex , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 223u8, 74u8, 17u8, 152u8, 136u8, 20u8, 241u8, 47u8, 169u8, 34u8, 128u8, 78u8, 121u8, 47u8, 165u8, 35u8, 222u8, 15u8, @@ -27800,10 +28408,9 @@ pub mod api { ::subxt::KeyIter<'a, T, AvailabilityBitfields<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 223u8, 74u8, 17u8, 152u8, 136u8, 20u8, 241u8, 47u8, 169u8, 34u8, 128u8, 78u8, 121u8, 47u8, 165u8, 35u8, 222u8, 15u8, @@ -27817,10 +28424,9 @@ pub mod api { } } #[doc = " Candidates pending availability by `ParaId`."] pub async fn pending_availability (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: Id , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: sp_core :: H256 , :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 201u8, 235u8, 244u8, 21u8, 107u8, 106u8, 50u8, 211u8, 165u8, 102u8, 113u8, 3u8, 54u8, 155u8, 159u8, 255u8, 117u8, 107u8, @@ -27842,10 +28448,9 @@ pub mod api { ::subxt::KeyIter<'a, T, PendingAvailability<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 201u8, 235u8, 244u8, 21u8, 107u8, 106u8, 50u8, 211u8, 165u8, 102u8, 113u8, 3u8, 54u8, 155u8, 159u8, 255u8, 117u8, 107u8, @@ -27871,10 +28476,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 164u8, 245u8, 130u8, 208u8, 141u8, 88u8, 99u8, 247u8, 90u8, 215u8, 40u8, 99u8, 239u8, 7u8, 231u8, 13u8, 233u8, 204u8, @@ -27896,10 +28500,9 @@ pub mod api { ::subxt::KeyIter<'a, T, PendingAvailabilityCommitments<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 164u8, 245u8, 130u8, 208u8, 141u8, 88u8, 99u8, 247u8, 90u8, 215u8, 40u8, 99u8, 239u8, 7u8, 231u8, 13u8, 233u8, 204u8, @@ -27926,7 +28529,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Enter { pub data: runtime_types::polkadot_primitives::v2::InherentData< runtime_types::sp_runtime::generic::header::Header< @@ -27974,7 +28577,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 208u8, 134u8, 126u8, 30u8, 50u8, 219u8, 225u8, 133u8, 3u8, 2u8, 121u8, 154u8, 133u8, 141u8, 159u8, 193u8, 66u8, 252u8, @@ -28030,7 +28635,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 208u8, 213u8, 76u8, 64u8, 90u8, 141u8, 144u8, 52u8, 220u8, 35u8, 143u8, 171u8, 45u8, 59u8, 9u8, 218u8, 29u8, 186u8, @@ -28056,7 +28663,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 163u8, 22u8, 172u8, 81u8, 10u8, 19u8, 149u8, 111u8, 22u8, 92u8, 203u8, 33u8, 225u8, 124u8, 69u8, 70u8, 66u8, 188u8, @@ -28169,7 +28778,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 84u8, 195u8, 53u8, 111u8, 186u8, 61u8, 3u8, 36u8, 10u8, 9u8, 66u8, 119u8, 116u8, 213u8, 86u8, 153u8, 18u8, 149u8, 83u8, @@ -28190,7 +28801,9 @@ pub mod api { #[doc = ""] #[doc = " The number of queued claims is bounded at the `scheduling_lookahead`"] #[doc = " multiplied by the number of parathread multiplexer cores. Reasonably, 10 * 50 = 500."] pub async fn parathread_queue (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: polkadot_runtime_parachains :: scheduler :: ParathreadClaimQueue , :: subxt :: BasicError >{ - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 55u8, 142u8, 211u8, 227u8, 167u8, 35u8, 168u8, 23u8, 227u8, 185u8, 5u8, 154u8, 147u8, 237u8, 137u8, 133u8, 81u8, 121u8, @@ -28226,7 +28839,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 170u8, 116u8, 249u8, 112u8, 156u8, 147u8, 94u8, 44u8, 114u8, 10u8, 32u8, 91u8, 229u8, 56u8, 60u8, 222u8, 212u8, 176u8, @@ -28254,10 +28869,9 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 187u8, 105u8, 221u8, 0u8, 103u8, 9u8, 52u8, 127u8, 47u8, 155u8, 147u8, 84u8, 249u8, 213u8, 140u8, 75u8, 99u8, 238u8, @@ -28285,7 +28899,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 122u8, 37u8, 150u8, 1u8, 185u8, 201u8, 168u8, 67u8, 55u8, 17u8, 101u8, 18u8, 133u8, 212u8, 6u8, 73u8, 191u8, 204u8, @@ -28308,7 +28924,9 @@ pub mod api { #[doc = ""] #[doc = " The value contained here will not be valid after the end of a block. Runtime APIs should be used to determine scheduled cores/"] #[doc = " for the upcoming block."] pub async fn scheduled (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: scheduler :: CoreAssignment > , :: subxt :: BasicError >{ - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 29u8, 43u8, 158u8, 142u8, 50u8, 67u8, 4u8, 30u8, 158u8, 99u8, 47u8, 13u8, 151u8, 141u8, 163u8, 63u8, 140u8, 179u8, 247u8, @@ -28339,7 +28957,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceSetCurrentCode { pub para: runtime_types::polkadot_parachain::primitives::Id, pub new_code: @@ -28349,7 +28967,7 @@ pub mod api { const PALLET: &'static str = "Paras"; const FUNCTION: &'static str = "force_set_current_code"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceSetCurrentHead { pub para: runtime_types::polkadot_parachain::primitives::Id, pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, @@ -28358,7 +28976,7 @@ pub mod api { const PALLET: &'static str = "Paras"; const FUNCTION: &'static str = "force_set_current_head"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceScheduleCodeUpgrade { pub para: runtime_types::polkadot_parachain::primitives::Id, pub new_code: @@ -28369,7 +28987,7 @@ pub mod api { const PALLET: &'static str = "Paras"; const FUNCTION: &'static str = "force_schedule_code_upgrade"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceNoteNewHead { pub para: runtime_types::polkadot_parachain::primitives::Id, pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, @@ -28378,7 +28996,7 @@ pub mod api { const PALLET: &'static str = "Paras"; const FUNCTION: &'static str = "force_note_new_head"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceQueueAction { pub para: runtime_types::polkadot_parachain::primitives::Id, } @@ -28386,7 +29004,7 @@ pub mod api { const PALLET: &'static str = "Paras"; const FUNCTION: &'static str = "force_queue_action"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct AddTrustedValidationCode { pub validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, @@ -28395,7 +29013,7 @@ pub mod api { const PALLET: &'static str = "Paras"; const FUNCTION: &'static str = "add_trusted_validation_code"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct PokeUnusedValidationCode { pub validation_code_hash: runtime_types::polkadot_parachain::primitives::ValidationCodeHash, @@ -28404,7 +29022,7 @@ pub mod api { const PALLET: &'static str = "Paras"; const FUNCTION: &'static str = "poke_unused_validation_code"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct IncludePvfCheckStatement { pub stmt: runtime_types::polkadot_primitives::v2::PvfCheckStatement, pub signature: @@ -28445,7 +29063,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 100u8, 36u8, 105u8, 246u8, 77u8, 252u8, 162u8, 139u8, 60u8, 37u8, 12u8, 148u8, 206u8, 160u8, 134u8, 105u8, 50u8, 52u8, @@ -28475,7 +29095,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 119u8, 46u8, 120u8, 202u8, 138u8, 190u8, 179u8, 78u8, 155u8, 167u8, 220u8, 233u8, 170u8, 248u8, 202u8, 92u8, 73u8, 246u8, @@ -28506,10 +29128,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 254u8, 60u8, 105u8, 37u8, 116u8, 190u8, 30u8, 255u8, 210u8, 24u8, 120u8, 99u8, 174u8, 215u8, 233u8, 83u8, 57u8, 200u8, @@ -28543,7 +29164,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 203u8, 31u8, 68u8, 125u8, 105u8, 218u8, 177u8, 205u8, 248u8, 131u8, 25u8, 170u8, 140u8, 56u8, 183u8, 106u8, 2u8, 118u8, @@ -28574,7 +29197,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 141u8, 235u8, 245u8, 93u8, 24u8, 155u8, 106u8, 136u8, 190u8, 236u8, 216u8, 131u8, 245u8, 5u8, 186u8, 131u8, 159u8, 240u8, @@ -28615,10 +29240,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 110u8, 255u8, 249u8, 176u8, 109u8, 54u8, 87u8, 19u8, 7u8, 62u8, 220u8, 143u8, 196u8, 99u8, 66u8, 49u8, 18u8, 225u8, @@ -28651,10 +29275,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 159u8, 142u8, 14u8, 7u8, 29u8, 74u8, 213u8, 165u8, 206u8, 45u8, 135u8, 121u8, 0u8, 146u8, 217u8, 59u8, 189u8, 120u8, @@ -28687,10 +29310,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 187u8, 231u8, 113u8, 29u8, 177u8, 92u8, 2u8, 116u8, 88u8, 114u8, 19u8, 170u8, 167u8, 254u8, 149u8, 142u8, 24u8, 57u8, @@ -28709,7 +29331,7 @@ pub mod api { pub type Event = runtime_types::polkadot_runtime_parachains::paras::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Current code has been updated for a Para. `para_id`"] pub struct CurrentCodeUpdated( pub runtime_types::polkadot_parachain::primitives::Id, @@ -28718,7 +29340,7 @@ pub mod api { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "CurrentCodeUpdated"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Current head has been updated for a Para. `para_id`"] pub struct CurrentHeadUpdated( pub runtime_types::polkadot_parachain::primitives::Id, @@ -28727,7 +29349,7 @@ pub mod api { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "CurrentHeadUpdated"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A code upgrade has been scheduled for a Para. `para_id`"] pub struct CodeUpgradeScheduled( pub runtime_types::polkadot_parachain::primitives::Id, @@ -28736,7 +29358,7 @@ pub mod api { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "CodeUpgradeScheduled"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A new head has been noted for a Para. `para_id`"] pub struct NewHeadNoted( pub runtime_types::polkadot_parachain::primitives::Id, @@ -28745,7 +29367,7 @@ pub mod api { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "NewHeadNoted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A para has been queued to execute pending actions. `para_id`"] pub struct ActionQueued( pub runtime_types::polkadot_parachain::primitives::Id, @@ -28755,7 +29377,7 @@ pub mod api { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "ActionQueued"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The given para either initiated or subscribed to a PVF check for the given validation"] #[doc = "code. `code_hash` `para_id`"] pub struct PvfCheckStarted( @@ -28766,7 +29388,7 @@ pub mod api { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "PvfCheckStarted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The given validation code was accepted by the PVF pre-checking vote."] #[doc = "`code_hash` `para_id`"] pub struct PvfCheckAccepted( @@ -28777,7 +29399,7 @@ pub mod api { const PALLET: &'static str = "Paras"; const EVENT: &'static str = "PvfCheckAccepted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The given validation code was rejected by the PVF pre-checking vote."] #[doc = "`code_hash` `para_id`"] pub struct PvfCheckRejected( @@ -29064,7 +29686,9 @@ pub mod api { #[doc = ""] #[doc = " Invariant:"] #[doc = " - There are no PVF pre-checking votes that exists in list but not in the set and vice versa."] pub async fn pvf_active_vote_map (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: paras :: PvfCheckActiveVoteState < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 113u8, 142u8, 66u8, 141u8, 249u8, 227u8, 84u8, 128u8, 137u8, 111u8, 215u8, 93u8, 246u8, 49u8, 126u8, 213u8, 77u8, 139u8, @@ -29089,7 +29713,9 @@ pub mod api { ::subxt::KeyIter<'a, T, PvfActiveVoteMap<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 113u8, 142u8, 66u8, 141u8, 249u8, 227u8, 84u8, 128u8, 137u8, 111u8, 215u8, 93u8, 246u8, 49u8, 126u8, 213u8, 77u8, 139u8, @@ -29112,7 +29738,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 30u8, 117u8, 174u8, 227u8, 251u8, 95u8, 176u8, 153u8, 151u8, 188u8, 89u8, 252u8, 168u8, 203u8, 174u8, 241u8, 209u8, 45u8, @@ -29139,7 +29767,9 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 174u8, 146u8, 170u8, 102u8, 125u8, 176u8, 74u8, 177u8, 28u8, 54u8, 13u8, 73u8, 188u8, 248u8, 78u8, 144u8, 88u8, 183u8, @@ -29167,7 +29797,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 38u8, 31u8, 0u8, 253u8, 63u8, 27u8, 13u8, 12u8, 247u8, 34u8, 21u8, 166u8, 166u8, 236u8, 178u8, 217u8, 230u8, 117u8, 215u8, @@ -29189,7 +29821,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ParaLifecycles<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 38u8, 31u8, 0u8, 253u8, 63u8, 27u8, 13u8, 12u8, 247u8, 34u8, 21u8, 166u8, 166u8, 236u8, 178u8, 217u8, 230u8, 117u8, 215u8, @@ -29213,7 +29847,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 242u8, 145u8, 237u8, 33u8, 204u8, 183u8, 18u8, 135u8, 182u8, 47u8, 220u8, 187u8, 118u8, 79u8, 163u8, 122u8, 227u8, 215u8, @@ -29235,7 +29871,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Heads<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 242u8, 145u8, 237u8, 33u8, 204u8, 183u8, 18u8, 135u8, 182u8, 47u8, 220u8, 187u8, 118u8, 79u8, 163u8, 122u8, 227u8, 215u8, @@ -29261,7 +29899,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 146u8, 139u8, 159u8, 78u8, 13u8, 151u8, 18u8, 117u8, 15u8, 107u8, 251u8, 200u8, 100u8, 200u8, 170u8, 50u8, 250u8, 189u8, @@ -29285,7 +29925,9 @@ pub mod api { ::subxt::KeyIter<'a, T, CurrentCodeHash<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 146u8, 139u8, 159u8, 78u8, 13u8, 151u8, 18u8, 117u8, 15u8, 107u8, 251u8, 200u8, 100u8, 200u8, 170u8, 50u8, 250u8, 189u8, @@ -29313,7 +29955,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 158u8, 40u8, 107u8, 17u8, 201u8, 114u8, 104u8, 4u8, 50u8, 4u8, 245u8, 186u8, 104u8, 25u8, 142u8, 118u8, 196u8, 165u8, @@ -29338,7 +29982,9 @@ pub mod api { ::subxt::KeyIter<'a, T, PastCodeHash<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 158u8, 40u8, 107u8, 17u8, 201u8, 114u8, 104u8, 4u8, 50u8, 4u8, 245u8, 186u8, 104u8, 25u8, 142u8, 118u8, 196u8, 165u8, @@ -29364,7 +30010,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 121u8, 14u8, 91u8, 135u8, 231u8, 67u8, 189u8, 66u8, 108u8, 27u8, 241u8, 117u8, 101u8, 34u8, 24u8, 16u8, 52u8, 198u8, @@ -29391,7 +30039,9 @@ pub mod api { ::subxt::KeyIter<'a, T, PastCodeMeta<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 121u8, 14u8, 91u8, 135u8, 231u8, 67u8, 189u8, 66u8, 108u8, 27u8, 241u8, 117u8, 101u8, 34u8, 24u8, 16u8, 52u8, 198u8, @@ -29420,7 +30070,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 142u8, 32u8, 134u8, 51u8, 34u8, 214u8, 75u8, 69u8, 77u8, 178u8, 103u8, 117u8, 180u8, 105u8, 249u8, 178u8, 143u8, 25u8, @@ -29448,10 +30100,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 211u8, 254u8, 201u8, 63u8, 89u8, 112u8, 57u8, 82u8, 255u8, 163u8, 49u8, 246u8, 197u8, 154u8, 55u8, 10u8, 65u8, 188u8, @@ -29475,10 +30126,9 @@ pub mod api { ::subxt::KeyIter<'a, T, FutureCodeUpgrades<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 211u8, 254u8, 201u8, 63u8, 89u8, 112u8, 57u8, 82u8, 255u8, 163u8, 49u8, 246u8, 197u8, 154u8, 55u8, 10u8, 65u8, 188u8, @@ -29504,7 +30154,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 221u8, 2u8, 237u8, 170u8, 64u8, 60u8, 98u8, 146u8, 135u8, 69u8, 6u8, 38u8, 2u8, 239u8, 22u8, 94u8, 180u8, 163u8, 76u8, @@ -29528,7 +30180,9 @@ pub mod api { ::subxt::KeyIter<'a, T, FutureCodeHash<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 221u8, 2u8, 237u8, 170u8, 64u8, 60u8, 98u8, 146u8, 135u8, 69u8, 6u8, 38u8, 2u8, 239u8, 22u8, 94u8, 180u8, 163u8, 76u8, @@ -29560,10 +30214,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 100u8, 87u8, 135u8, 185u8, 95u8, 13u8, 74u8, 134u8, 19u8, 97u8, 80u8, 104u8, 177u8, 30u8, 82u8, 145u8, 171u8, 250u8, @@ -29593,10 +30246,9 @@ pub mod api { ::subxt::KeyIter<'a, T, UpgradeGoAheadSignal<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 100u8, 87u8, 135u8, 185u8, 95u8, 13u8, 74u8, 134u8, 19u8, 97u8, 80u8, 104u8, 177u8, 30u8, 82u8, 145u8, 171u8, 250u8, @@ -29628,10 +30280,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 173u8, 198u8, 89u8, 108u8, 43u8, 93u8, 143u8, 224u8, 141u8, 248u8, 238u8, 221u8, 237u8, 220u8, 140u8, 24u8, 7u8, 14u8, @@ -29661,10 +30312,9 @@ pub mod api { ::subxt::KeyIter<'a, T, UpgradeRestrictionSignal<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 173u8, 198u8, 89u8, 108u8, 43u8, 93u8, 143u8, 224u8, 141u8, 248u8, 238u8, 221u8, 237u8, 220u8, 140u8, 24u8, 7u8, 14u8, @@ -29690,7 +30340,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 120u8, 214u8, 165u8, 35u8, 125u8, 56u8, 152u8, 76u8, 124u8, 159u8, 160u8, 93u8, 16u8, 30u8, 208u8, 199u8, 162u8, 74u8, @@ -29721,7 +30373,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 16u8, 74u8, 254u8, 39u8, 241u8, 98u8, 106u8, 203u8, 189u8, 157u8, 66u8, 99u8, 164u8, 176u8, 20u8, 206u8, 15u8, 212u8, @@ -29747,7 +30401,9 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 103u8, 197u8, 76u8, 84u8, 133u8, 3u8, 67u8, 57u8, 107u8, 31u8, 87u8, 33u8, 196u8, 130u8, 119u8, 93u8, 171u8, 173u8, @@ -29772,7 +30428,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ActionsQueue<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 103u8, 197u8, 76u8, 84u8, 133u8, 3u8, 67u8, 57u8, 107u8, 31u8, 87u8, 33u8, 196u8, 130u8, 119u8, 93u8, 171u8, 173u8, @@ -29789,10 +30447,9 @@ pub mod api { #[doc = ""] #[doc = " NOTE that after PVF pre-checking is enabled the para genesis arg will have it's code set"] #[doc = " to empty. Instead, the code will be saved into the storage right away via `CodeByHash`."] pub async fn upcoming_paras_genesis (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: Id , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: paras :: ParaGenesisArgs > , :: subxt :: BasicError >{ - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 98u8, 249u8, 92u8, 177u8, 21u8, 84u8, 199u8, 194u8, 150u8, 213u8, 143u8, 107u8, 99u8, 194u8, 141u8, 225u8, 55u8, 94u8, @@ -29817,10 +30474,9 @@ pub mod api { ::subxt::KeyIter<'a, T, UpcomingParasGenesis<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 98u8, 249u8, 92u8, 177u8, 21u8, 84u8, 199u8, 194u8, 150u8, 213u8, 143u8, 107u8, 99u8, 194u8, 141u8, 225u8, 55u8, 94u8, @@ -29840,7 +30496,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 194u8, 100u8, 213u8, 115u8, 143u8, 181u8, 255u8, 227u8, 232u8, 163u8, 209u8, 99u8, 2u8, 138u8, 118u8, 169u8, 210u8, @@ -29865,7 +30523,9 @@ pub mod api { ::subxt::KeyIter<'a, T, CodeByHashRefs<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 194u8, 100u8, 213u8, 115u8, 143u8, 181u8, 255u8, 227u8, 232u8, 163u8, 209u8, 99u8, 2u8, 138u8, 118u8, 169u8, 210u8, @@ -29892,7 +30552,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 41u8, 242u8, 100u8, 156u8, 32u8, 20u8, 72u8, 228u8, 143u8, 3u8, 169u8, 169u8, 27u8, 111u8, 119u8, 135u8, 155u8, 17u8, @@ -29917,7 +30579,9 @@ pub mod api { ::subxt::KeyIter<'a, T, CodeByHash<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 41u8, 242u8, 100u8, 156u8, 32u8, 20u8, 72u8, 228u8, 143u8, 3u8, 169u8, 169u8, 27u8, 111u8, 119u8, 135u8, 155u8, 17u8, @@ -29945,18 +30609,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Paras", "UnsignedPriority")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Paras", "UnsignedPriority")? == [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, - 190u8, 146u8, 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, - 65u8, 18u8, 191u8, 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, - 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, + 78u8, 226u8, 84u8, 70u8, 162u8, 23u8, 167u8, 100u8, 156u8, + 228u8, 119u8, 16u8, 28u8, 202u8, 21u8, 71u8, 72u8, 244u8, + 3u8, 255u8, 243u8, 55u8, 109u8, 238u8, 26u8, 180u8, 207u8, + 175u8, 221u8, 27u8, 213u8, 217u8, ] { - let pallet = self.client.metadata().pallet("Paras")?; + let pallet = metadata.pallet("Paras")?; let constant = pallet.constant("UnsignedPriority")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -29980,10 +30643,10 @@ pub mod api { }; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct ForceApprove { pub up_to: ::core::primitive::u32, @@ -30024,7 +30687,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 61u8, 29u8, 75u8, 222u8, 82u8, 250u8, 124u8, 164u8, 70u8, 114u8, 150u8, 28u8, 103u8, 53u8, 185u8, 147u8, 168u8, 239u8, @@ -30080,7 +30745,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 251u8, 135u8, 247u8, 61u8, 139u8, 102u8, 12u8, 122u8, 227u8, 123u8, 11u8, 232u8, 120u8, 80u8, 81u8, 48u8, 216u8, 115u8, @@ -30101,10 +30768,9 @@ pub mod api { #[doc = ""] #[doc = " However this is a `Vec` regardless to handle various edge cases that may occur at runtime"] #[doc = " upgrade boundaries or if governance intervenes."] pub async fn buffered_session_changes (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: initializer :: BufferedSessionChange > , :: subxt :: BasicError >{ - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 79u8, 184u8, 104u8, 7u8, 11u8, 216u8, 205u8, 95u8, 155u8, 51u8, 17u8, 160u8, 239u8, 14u8, 38u8, 99u8, 206u8, 87u8, @@ -30206,10 +30872,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 104u8, 117u8, 177u8, 125u8, 208u8, 212u8, 216u8, 171u8, 212u8, 235u8, 43u8, 255u8, 146u8, 230u8, 243u8, 27u8, 133u8, @@ -30234,10 +30899,9 @@ pub mod api { ::subxt::KeyIter<'a, T, DownwardMessageQueues<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 104u8, 117u8, 177u8, 125u8, 208u8, 212u8, 216u8, 171u8, 212u8, 235u8, 43u8, 255u8, 146u8, 230u8, 243u8, 27u8, 133u8, @@ -30263,10 +30927,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 88u8, 45u8, 62u8, 250u8, 186u8, 97u8, 121u8, 56u8, 136u8, 216u8, 73u8, 65u8, 253u8, 81u8, 94u8, 162u8, 132u8, 217u8, @@ -30297,10 +30960,9 @@ pub mod api { ::subxt::KeyIter<'a, T, DownwardMessageQueueHeads<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 88u8, 45u8, 62u8, 250u8, 186u8, 97u8, 121u8, 56u8, 136u8, 216u8, 73u8, 65u8, 253u8, 81u8, 94u8, 162u8, 132u8, 217u8, @@ -30327,7 +30989,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ServiceOverweight { pub index: ::core::primitive::u64, pub weight_limit: ::core::primitive::u64, @@ -30378,7 +31040,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 229u8, 167u8, 106u8, 63u8, 141u8, 80u8, 8u8, 201u8, 156u8, 34u8, 47u8, 104u8, 116u8, 57u8, 35u8, 216u8, 132u8, 3u8, @@ -30400,7 +31064,7 @@ pub mod api { pub type Event = runtime_types::polkadot_runtime_parachains::ump::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Upward message is invalid XCM."] #[doc = "\\[ id \\]"] pub struct InvalidFormat(pub [::core::primitive::u8; 32usize]); @@ -30408,7 +31072,7 @@ pub mod api { const PALLET: &'static str = "Ump"; const EVENT: &'static str = "InvalidFormat"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Upward message is unsupported version of XCM."] #[doc = "\\[ id \\]"] pub struct UnsupportedVersion(pub [::core::primitive::u8; 32usize]); @@ -30416,7 +31080,7 @@ pub mod api { const PALLET: &'static str = "Ump"; const EVENT: &'static str = "UnsupportedVersion"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Upward message executed with the given outcome."] #[doc = "\\[ id, outcome \\]"] pub struct ExecutedUpward( @@ -30427,7 +31091,7 @@ pub mod api { const PALLET: &'static str = "Ump"; const EVENT: &'static str = "ExecutedUpward"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The weight limit for handling upward messages was reached."] #[doc = "\\[ id, remaining, required \\]"] pub struct WeightExhausted( @@ -30439,7 +31103,7 @@ pub mod api { const PALLET: &'static str = "Ump"; const EVENT: &'static str = "WeightExhausted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Some upward messages have been received and will be processed."] #[doc = "\\[ para, count, size \\]"] pub struct UpwardMessagesReceived( @@ -30451,7 +31115,7 @@ pub mod api { const PALLET: &'static str = "Ump"; const EVENT: &'static str = "UpwardMessagesReceived"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The weight budget was exceeded for an individual upward message."] #[doc = ""] #[doc = "This message can be later dispatched manually using `service_overweight` dispatchable"] @@ -30468,7 +31132,7 @@ pub mod api { const PALLET: &'static str = "Ump"; const EVENT: &'static str = "OverweightEnqueued"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Upward message from the overweight queue was executed with the given actual weight"] #[doc = "used."] #[doc = ""] @@ -30576,10 +31240,9 @@ pub mod api { ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 22u8, 48u8, 215u8, 37u8, 42u8, 115u8, 27u8, 8u8, 249u8, 65u8, 47u8, 61u8, 96u8, 1u8, 196u8, 143u8, 53u8, 7u8, 241u8, 126u8, @@ -30609,10 +31272,9 @@ pub mod api { ::subxt::KeyIter<'a, T, RelayDispatchQueues<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 22u8, 48u8, 215u8, 37u8, 42u8, 115u8, 27u8, 8u8, 249u8, 65u8, 47u8, 61u8, 96u8, 1u8, 196u8, 143u8, 53u8, 7u8, 241u8, 126u8, @@ -30644,10 +31306,9 @@ pub mod api { (::core::primitive::u32, ::core::primitive::u32), ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 8u8, 0u8, 54u8, 33u8, 185u8, 112u8, 21u8, 174u8, 15u8, 147u8, 134u8, 184u8, 108u8, 144u8, 55u8, 138u8, 24u8, 66u8, 255u8, @@ -30682,10 +31343,9 @@ pub mod api { ::subxt::KeyIter<'a, T, RelayDispatchQueueSize<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 8u8, 0u8, 54u8, 33u8, 185u8, 112u8, 21u8, 174u8, 15u8, 147u8, 134u8, 184u8, 108u8, 144u8, 55u8, 138u8, 24u8, 66u8, 255u8, @@ -30710,7 +31370,9 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 75u8, 38u8, 232u8, 83u8, 71u8, 101u8, 248u8, 170u8, 5u8, 32u8, 209u8, 97u8, 190u8, 31u8, 241u8, 1u8, 98u8, 87u8, 64u8, @@ -30741,10 +31403,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 102u8, 165u8, 118u8, 140u8, 84u8, 122u8, 91u8, 169u8, 232u8, 125u8, 52u8, 228u8, 15u8, 228u8, 91u8, 79u8, 218u8, 62u8, @@ -30772,7 +31433,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 223u8, 155u8, 1u8, 100u8, 77u8, 13u8, 92u8, 235u8, 64u8, 30u8, 199u8, 178u8, 149u8, 66u8, 155u8, 201u8, 84u8, 26u8, @@ -30796,7 +31459,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Overweight<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 223u8, 155u8, 1u8, 100u8, 77u8, 13u8, 92u8, 235u8, 64u8, 30u8, 199u8, 178u8, 149u8, 66u8, 155u8, 201u8, 84u8, 26u8, @@ -30816,7 +31481,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 102u8, 180u8, 196u8, 148u8, 115u8, 62u8, 46u8, 238u8, 97u8, 116u8, 117u8, 42u8, 14u8, 5u8, 72u8, 237u8, 230u8, 46u8, @@ -30847,7 +31514,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct HrmpInitOpenChannel { pub recipient: runtime_types::polkadot_parachain::primitives::Id, pub proposed_max_capacity: ::core::primitive::u32, @@ -30857,7 +31524,7 @@ pub mod api { const PALLET: &'static str = "Hrmp"; const FUNCTION: &'static str = "hrmp_init_open_channel"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct HrmpAcceptOpenChannel { pub sender: runtime_types::polkadot_parachain::primitives::Id, } @@ -30865,7 +31532,7 @@ pub mod api { const PALLET: &'static str = "Hrmp"; const FUNCTION: &'static str = "hrmp_accept_open_channel"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct HrmpCloseChannel { pub channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, @@ -30874,7 +31541,7 @@ pub mod api { const PALLET: &'static str = "Hrmp"; const FUNCTION: &'static str = "hrmp_close_channel"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceCleanHrmp { pub para: runtime_types::polkadot_parachain::primitives::Id, pub inbound: ::core::primitive::u32, @@ -30885,10 +31552,10 @@ pub mod api { const FUNCTION: &'static str = "force_clean_hrmp"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct ForceProcessHrmpOpen { pub channels: ::core::primitive::u32, @@ -30898,10 +31565,10 @@ pub mod api { const FUNCTION: &'static str = "force_process_hrmp_open"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct ForceProcessHrmpClose { pub channels: ::core::primitive::u32, @@ -30910,7 +31577,7 @@ pub mod api { const PALLET: &'static str = "Hrmp"; const FUNCTION: &'static str = "force_process_hrmp_close"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct HrmpCancelOpenRequest { pub channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, @@ -30961,7 +31628,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 244u8, 142u8, 161u8, 144u8, 109u8, 104u8, 164u8, 198u8, 201u8, 79u8, 178u8, 136u8, 107u8, 104u8, 83u8, 11u8, 167u8, @@ -30996,10 +31665,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 95u8, 196u8, 155u8, 220u8, 235u8, 120u8, 67u8, 247u8, 245u8, 20u8, 162u8, 41u8, 4u8, 204u8, 125u8, 16u8, 224u8, 72u8, @@ -31031,7 +31699,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 199u8, 9u8, 55u8, 184u8, 196u8, 45u8, 46u8, 251u8, 48u8, 23u8, 132u8, 74u8, 188u8, 121u8, 41u8, 18u8, 71u8, 65u8, @@ -31068,7 +31738,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 182u8, 231u8, 99u8, 129u8, 130u8, 109u8, 97u8, 108u8, 37u8, 107u8, 203u8, 70u8, 133u8, 106u8, 226u8, 77u8, 110u8, 189u8, @@ -31106,7 +31778,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 162u8, 53u8, 194u8, 175u8, 117u8, 32u8, 217u8, 177u8, 9u8, 255u8, 88u8, 40u8, 8u8, 174u8, 8u8, 11u8, 26u8, 82u8, 213u8, @@ -31140,10 +31814,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 128u8, 141u8, 191u8, 255u8, 204u8, 137u8, 27u8, 170u8, 180u8, 166u8, 93u8, 144u8, 70u8, 56u8, 132u8, 100u8, 5u8, 114u8, @@ -31180,10 +31853,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 8u8, 83u8, 32u8, 187u8, 220u8, 1u8, 212u8, 226u8, 72u8, 61u8, 110u8, 211u8, 238u8, 119u8, 95u8, 48u8, 150u8, 51u8, 177u8, @@ -31205,7 +31877,7 @@ pub mod api { pub type Event = runtime_types::polkadot_runtime_parachains::hrmp::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Open HRMP channel requested."] #[doc = "`[sender, recipient, proposed_max_capacity, proposed_max_message_size]`"] pub struct OpenChannelRequested( @@ -31218,7 +31890,7 @@ pub mod api { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "OpenChannelRequested"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An HRMP channel request sent by the receiver was canceled by either party."] #[doc = "`[by_parachain, channel_id]`"] pub struct OpenChannelCanceled( @@ -31229,7 +31901,7 @@ pub mod api { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "OpenChannelCanceled"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Open HRMP channel accepted. `[sender, recipient]`"] pub struct OpenChannelAccepted( pub runtime_types::polkadot_parachain::primitives::Id, @@ -31239,7 +31911,7 @@ pub mod api { const PALLET: &'static str = "Hrmp"; const EVENT: &'static str = "OpenChannelAccepted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "HRMP channel closed. `[by_parachain, channel_id]`"] pub struct ChannelClosed( pub runtime_types::polkadot_parachain::primitives::Id, @@ -31437,10 +32109,9 @@ pub mod api { #[doc = ""] #[doc = " Invariant:"] #[doc = " - There are no channels that exists in list but not in the set and vice versa."] pub async fn hrmp_open_channel_requests (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: hrmp :: HrmpOpenChannelRequest > , :: subxt :: BasicError >{ - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 58u8, 216u8, 106u8, 4u8, 117u8, 77u8, 168u8, 230u8, 50u8, 6u8, 175u8, 26u8, 110u8, 45u8, 143u8, 207u8, 174u8, 77u8, @@ -31467,10 +32138,9 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpOpenChannelRequests<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 58u8, 216u8, 106u8, 4u8, 117u8, 77u8, 168u8, 230u8, 50u8, 6u8, 175u8, 26u8, 110u8, 45u8, 143u8, 207u8, 174u8, 77u8, @@ -31492,10 +32162,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 176u8, 22u8, 136u8, 206u8, 243u8, 208u8, 67u8, 150u8, 187u8, 163u8, 141u8, 37u8, 235u8, 84u8, 176u8, 63u8, 55u8, 38u8, @@ -31521,10 +32190,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 103u8, 47u8, 152u8, 1u8, 119u8, 244u8, 62u8, 249u8, 141u8, 194u8, 157u8, 149u8, 58u8, 208u8, 113u8, 77u8, 4u8, 248u8, @@ -31551,10 +32219,9 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpOpenChannelRequestCount<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 103u8, 47u8, 152u8, 1u8, 119u8, 244u8, 62u8, 249u8, 141u8, 194u8, 157u8, 149u8, 58u8, 208u8, 113u8, 77u8, 4u8, 248u8, @@ -31576,10 +32243,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 166u8, 207u8, 97u8, 222u8, 30u8, 204u8, 203u8, 122u8, 72u8, 66u8, 247u8, 169u8, 128u8, 122u8, 145u8, 124u8, 214u8, 183u8, @@ -31606,10 +32272,9 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpAcceptedChannelRequestCount<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 166u8, 207u8, 97u8, 222u8, 30u8, 204u8, 203u8, 122u8, 72u8, 66u8, 247u8, 169u8, 128u8, 122u8, 145u8, 124u8, 214u8, 183u8, @@ -31635,10 +32300,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 118u8, 8u8, 142u8, 158u8, 184u8, 200u8, 38u8, 112u8, 217u8, 69u8, 161u8, 255u8, 116u8, 143u8, 94u8, 185u8, 95u8, 247u8, @@ -31666,10 +32330,9 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpCloseChannelRequests<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 118u8, 8u8, 142u8, 158u8, 184u8, 200u8, 38u8, 112u8, 217u8, 69u8, 161u8, 255u8, 116u8, 143u8, 94u8, 185u8, 95u8, 247u8, @@ -31691,10 +32354,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 203u8, 46u8, 200u8, 63u8, 120u8, 238u8, 88u8, 170u8, 239u8, 27u8, 99u8, 104u8, 254u8, 194u8, 152u8, 221u8, 126u8, 188u8, @@ -31722,7 +32384,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 28u8, 187u8, 5u8, 0u8, 130u8, 11u8, 241u8, 171u8, 141u8, 109u8, 236u8, 151u8, 194u8, 124u8, 172u8, 180u8, 36u8, 144u8, @@ -31746,7 +32410,9 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpWatermarks<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 28u8, 187u8, 5u8, 0u8, 130u8, 11u8, 241u8, 171u8, 141u8, 109u8, 236u8, 151u8, 194u8, 124u8, 172u8, 180u8, 36u8, 144u8, @@ -31772,7 +32438,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 241u8, 160u8, 242u8, 167u8, 251u8, 8u8, 131u8, 194u8, 179u8, 216u8, 231u8, 125u8, 58u8, 118u8, 61u8, 113u8, 46u8, 47u8, @@ -31796,7 +32464,9 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpChannels<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 241u8, 160u8, 242u8, 167u8, 251u8, 8u8, 131u8, 194u8, 179u8, 216u8, 231u8, 125u8, 58u8, 118u8, 61u8, 113u8, 46u8, 47u8, @@ -31830,10 +32500,9 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 193u8, 185u8, 164u8, 194u8, 89u8, 218u8, 214u8, 184u8, 100u8, 238u8, 232u8, 90u8, 243u8, 230u8, 93u8, 191u8, 197u8, 182u8, @@ -31870,10 +32539,9 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpIngressChannelsIndex<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 193u8, 185u8, 164u8, 194u8, 89u8, 218u8, 214u8, 184u8, 100u8, 238u8, 232u8, 90u8, 243u8, 230u8, 93u8, 191u8, 197u8, 182u8, @@ -31894,10 +32562,9 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 242u8, 138u8, 89u8, 201u8, 60u8, 216u8, 73u8, 66u8, 167u8, 82u8, 225u8, 42u8, 61u8, 50u8, 54u8, 187u8, 212u8, 8u8, @@ -31921,10 +32588,9 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpEgressChannelsIndex<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 242u8, 138u8, 89u8, 201u8, 60u8, 216u8, 73u8, 66u8, 167u8, 82u8, 225u8, 42u8, 61u8, 50u8, 54u8, 187u8, 212u8, 8u8, @@ -31951,10 +32617,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 71u8, 246u8, 41u8, 12u8, 125u8, 10u8, 60u8, 209u8, 14u8, 254u8, 125u8, 217u8, 251u8, 172u8, 243u8, 73u8, 33u8, 230u8, @@ -31980,10 +32645,9 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpChannelContents<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 71u8, 246u8, 41u8, 12u8, 125u8, 10u8, 60u8, 209u8, 14u8, 254u8, 125u8, 217u8, 251u8, 172u8, 243u8, 73u8, 33u8, 230u8, @@ -32015,10 +32679,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 54u8, 106u8, 76u8, 21u8, 18u8, 49u8, 1u8, 34u8, 247u8, 101u8, 150u8, 142u8, 214u8, 137u8, 193u8, 100u8, 208u8, 162u8, 55u8, @@ -32048,10 +32711,9 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpChannelDigests<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 54u8, 106u8, 76u8, 21u8, 18u8, 49u8, 1u8, 34u8, 247u8, 101u8, 150u8, 142u8, 214u8, 137u8, 193u8, 100u8, 208u8, 162u8, 55u8, @@ -32125,10 +32787,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 243u8, 5u8, 37u8, 167u8, 29u8, 59u8, 87u8, 66u8, 53u8, 91u8, 181u8, 9u8, 144u8, 248u8, 225u8, 121u8, 130u8, 111u8, 140u8, @@ -32151,10 +32812,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 25u8, 143u8, 246u8, 184u8, 35u8, 166u8, 140u8, 147u8, 171u8, 5u8, 164u8, 159u8, 228u8, 21u8, 248u8, 236u8, 48u8, 210u8, @@ -32184,7 +32844,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 95u8, 222u8, 240u8, 96u8, 203u8, 233u8, 100u8, 160u8, 180u8, 161u8, 180u8, 123u8, 168u8, 102u8, 93u8, 172u8, 93u8, 174u8, @@ -32208,7 +32870,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Sessions<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 95u8, 222u8, 240u8, 96u8, 203u8, 233u8, 100u8, 160u8, 180u8, 161u8, 180u8, 123u8, 168u8, 102u8, 93u8, 172u8, 93u8, 174u8, @@ -32235,7 +32899,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceUnfreeze; impl ::subxt::Call for ForceUnfreeze { const PALLET: &'static str = "ParasDisputes"; @@ -32269,7 +32933,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 212u8, 211u8, 58u8, 159u8, 23u8, 220u8, 64u8, 175u8, 65u8, 50u8, 192u8, 122u8, 113u8, 189u8, 74u8, 191u8, 48u8, 93u8, @@ -32289,7 +32955,7 @@ pub mod api { runtime_types::polkadot_runtime_parachains::disputes::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A dispute has been initiated. \\[candidate hash, dispute location\\]"] pub struct DisputeInitiated( pub runtime_types::polkadot_core_primitives::CandidateHash, @@ -32299,7 +32965,7 @@ pub mod api { const PALLET: &'static str = "ParasDisputes"; const EVENT: &'static str = "DisputeInitiated"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A dispute has concluded for or against a candidate."] #[doc = "`\\[para id, candidate hash, dispute result\\]`"] pub struct DisputeConcluded( @@ -32310,7 +32976,7 @@ pub mod api { const PALLET: &'static str = "ParasDisputes"; const EVENT: &'static str = "DisputeConcluded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A dispute has timed out due to insufficient participation."] #[doc = "`\\[para id, candidate hash\\]`"] pub struct DisputeTimedOut( @@ -32321,10 +32987,10 @@ pub mod api { const EVENT: &'static str = "DisputeTimedOut"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "A dispute has concluded with supermajority against a candidate."] #[doc = "Block authors should no longer build on top of this head and should"] @@ -32428,7 +33094,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 125u8, 138u8, 99u8, 242u8, 9u8, 246u8, 215u8, 246u8, 141u8, 6u8, 129u8, 87u8, 27u8, 58u8, 53u8, 121u8, 61u8, 119u8, 35u8, @@ -32456,7 +33124,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 37u8, 50u8, 243u8, 127u8, 8u8, 137u8, 232u8, 140u8, 200u8, 76u8, 211u8, 245u8, 26u8, 63u8, 113u8, 31u8, 169u8, 92u8, @@ -32478,7 +33148,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Disputes<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 37u8, 50u8, 243u8, 127u8, 8u8, 137u8, 232u8, 140u8, 200u8, 76u8, 211u8, 245u8, 26u8, 63u8, 113u8, 31u8, 169u8, 92u8, @@ -32502,7 +33174,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 32u8, 107u8, 8u8, 112u8, 201u8, 81u8, 66u8, 223u8, 120u8, 51u8, 166u8, 240u8, 229u8, 141u8, 231u8, 132u8, 114u8, 36u8, @@ -32525,7 +33199,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Included<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 32u8, 107u8, 8u8, 112u8, 201u8, 81u8, 66u8, 223u8, 120u8, 51u8, 166u8, 240u8, 229u8, 141u8, 231u8, 132u8, 114u8, 36u8, @@ -32551,7 +33227,9 @@ pub mod api { ::core::option::Option<::std::vec::Vec<::core::primitive::u32>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 172u8, 23u8, 120u8, 188u8, 71u8, 248u8, 252u8, 41u8, 132u8, 221u8, 98u8, 215u8, 33u8, 242u8, 168u8, 196u8, 90u8, 123u8, @@ -32577,7 +33255,9 @@ pub mod api { ::subxt::KeyIter<'a, T, SpamSlots<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 172u8, 23u8, 120u8, 188u8, 71u8, 248u8, 252u8, 41u8, 132u8, 221u8, 98u8, 215u8, 33u8, 242u8, 168u8, 196u8, 90u8, 123u8, @@ -32601,7 +33281,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 133u8, 100u8, 86u8, 220u8, 180u8, 189u8, 65u8, 131u8, 64u8, 56u8, 219u8, 47u8, 130u8, 167u8, 210u8, 125u8, 49u8, 7u8, @@ -32632,7 +33314,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Register { pub id: runtime_types::polkadot_parachain::primitives::Id, pub genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, @@ -32643,7 +33325,7 @@ pub mod api { const PALLET: &'static str = "Registrar"; const FUNCTION: &'static str = "register"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceRegister { pub who: ::subxt::sp_core::crypto::AccountId32, pub deposit: ::core::primitive::u128, @@ -32656,7 +33338,7 @@ pub mod api { const PALLET: &'static str = "Registrar"; const FUNCTION: &'static str = "force_register"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Deregister { pub id: runtime_types::polkadot_parachain::primitives::Id, } @@ -32664,7 +33346,7 @@ pub mod api { const PALLET: &'static str = "Registrar"; const FUNCTION: &'static str = "deregister"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Swap { pub id: runtime_types::polkadot_parachain::primitives::Id, pub other: runtime_types::polkadot_parachain::primitives::Id, @@ -32673,7 +33355,7 @@ pub mod api { const PALLET: &'static str = "Registrar"; const FUNCTION: &'static str = "swap"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceRemoveLock { pub para: runtime_types::polkadot_parachain::primitives::Id, } @@ -32681,7 +33363,7 @@ pub mod api { const PALLET: &'static str = "Registrar"; const FUNCTION: &'static str = "force_remove_lock"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Reserve; impl ::subxt::Call for Reserve { const PALLET: &'static str = "Registrar"; @@ -32732,7 +33414,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 180u8, 21u8, 142u8, 73u8, 21u8, 31u8, 64u8, 210u8, 196u8, 4u8, 142u8, 153u8, 172u8, 207u8, 95u8, 209u8, 177u8, 75u8, @@ -32774,7 +33458,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 191u8, 198u8, 172u8, 68u8, 118u8, 126u8, 110u8, 47u8, 193u8, 147u8, 61u8, 27u8, 122u8, 107u8, 49u8, 222u8, 87u8, 199u8, @@ -32811,7 +33497,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 147u8, 4u8, 172u8, 215u8, 67u8, 142u8, 93u8, 245u8, 108u8, 83u8, 5u8, 250u8, 87u8, 138u8, 231u8, 10u8, 159u8, 216u8, @@ -32851,7 +33539,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 145u8, 163u8, 246u8, 239u8, 241u8, 209u8, 58u8, 241u8, 63u8, 134u8, 102u8, 55u8, 217u8, 125u8, 176u8, 91u8, 27u8, 32u8, @@ -32883,7 +33573,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 205u8, 174u8, 132u8, 188u8, 1u8, 59u8, 82u8, 135u8, 123u8, 55u8, 144u8, 39u8, 205u8, 171u8, 13u8, 252u8, 65u8, 56u8, @@ -32924,7 +33616,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 22u8, 210u8, 13u8, 54u8, 253u8, 13u8, 89u8, 174u8, 232u8, 119u8, 148u8, 206u8, 130u8, 133u8, 199u8, 127u8, 201u8, @@ -32944,7 +33638,7 @@ pub mod api { runtime_types::polkadot_runtime_common::paras_registrar::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Registered( pub runtime_types::polkadot_parachain::primitives::Id, pub ::subxt::sp_core::crypto::AccountId32, @@ -32953,7 +33647,7 @@ pub mod api { const PALLET: &'static str = "Registrar"; const EVENT: &'static str = "Registered"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Deregistered( pub runtime_types::polkadot_parachain::primitives::Id, ); @@ -32961,7 +33655,7 @@ pub mod api { const PALLET: &'static str = "Registrar"; const EVENT: &'static str = "Deregistered"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Reserved( pub runtime_types::polkadot_parachain::primitives::Id, pub ::subxt::sp_core::crypto::AccountId32, @@ -33032,7 +33726,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 130u8, 4u8, 116u8, 91u8, 196u8, 41u8, 66u8, 48u8, 17u8, 2u8, 255u8, 189u8, 132u8, 10u8, 129u8, 102u8, 117u8, 56u8, 114u8, @@ -33054,7 +33750,9 @@ pub mod api { ::subxt::KeyIter<'a, T, PendingSwap<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 130u8, 4u8, 116u8, 91u8, 196u8, 41u8, 66u8, 48u8, 17u8, 2u8, 255u8, 189u8, 132u8, 10u8, 129u8, 102u8, 117u8, 56u8, 114u8, @@ -33084,7 +33782,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 180u8, 146u8, 122u8, 242u8, 222u8, 203u8, 19u8, 110u8, 22u8, 53u8, 147u8, 127u8, 165u8, 158u8, 113u8, 196u8, 105u8, 209u8, @@ -33109,7 +33809,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Paras<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 180u8, 146u8, 122u8, 242u8, 222u8, 203u8, 19u8, 110u8, 22u8, 53u8, 147u8, 127u8, 165u8, 158u8, 113u8, 196u8, 105u8, 209u8, @@ -33130,7 +33832,9 @@ pub mod api { runtime_types::polkadot_parachain::primitives::Id, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 112u8, 52u8, 84u8, 181u8, 132u8, 61u8, 46u8, 69u8, 165u8, 85u8, 253u8, 243u8, 228u8, 151u8, 15u8, 239u8, 172u8, 28u8, @@ -33164,18 +33868,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Registrar", "ParaDeposit")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Registrar", "ParaDeposit")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 18u8, 109u8, 161u8, 161u8, 151u8, 174u8, 243u8, 90u8, 220u8, + 82u8, 192u8, 60u8, 26u8, 123u8, 90u8, 99u8, 36u8, 86u8, + 106u8, 101u8, 215u8, 154u8, 136u8, 220u8, 246u8, 185u8, + 126u8, 229u8, 205u8, 246u8, 61u8, 50u8, ] { - let pallet = self.client.metadata().pallet("Registrar")?; + let pallet = metadata.pallet("Registrar")?; let constant = pallet.constant("ParaDeposit")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -33189,18 +33892,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Registrar", "DataDepositPerByte")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Registrar", "DataDepositPerByte")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 112u8, 186u8, 158u8, 252u8, 99u8, 4u8, 201u8, 234u8, 99u8, + 14u8, 248u8, 198u8, 79u8, 107u8, 41u8, 32u8, 63u8, 205u8, + 85u8, 30u8, 30u8, 105u8, 250u8, 248u8, 106u8, 75u8, 74u8, + 175u8, 224u8, 115u8, 236u8, 99u8, ] { - let pallet = self.client.metadata().pallet("Registrar")?; + let pallet = metadata.pallet("Registrar")?; let constant = pallet.constant("DataDepositPerByte")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -33223,7 +33925,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceLease { pub para: runtime_types::polkadot_parachain::primitives::Id, pub leaser: ::subxt::sp_core::crypto::AccountId32, @@ -33235,7 +33937,7 @@ pub mod api { const PALLET: &'static str = "Slots"; const FUNCTION: &'static str = "force_lease"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ClearAllLeases { pub para: runtime_types::polkadot_parachain::primitives::Id, } @@ -33243,7 +33945,7 @@ pub mod api { const PALLET: &'static str = "Slots"; const FUNCTION: &'static str = "clear_all_leases"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct TriggerOnboard { pub para: runtime_types::polkadot_parachain::primitives::Id, } @@ -33288,7 +33990,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 110u8, 205u8, 106u8, 226u8, 3u8, 177u8, 198u8, 116u8, 52u8, 161u8, 90u8, 240u8, 43u8, 160u8, 144u8, 63u8, 97u8, 231u8, @@ -33325,7 +34029,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 101u8, 225u8, 10u8, 139u8, 34u8, 12u8, 48u8, 76u8, 97u8, 178u8, 5u8, 110u8, 19u8, 3u8, 237u8, 183u8, 54u8, 113u8, 7u8, @@ -33360,7 +34066,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 85u8, 246u8, 247u8, 252u8, 46u8, 143u8, 200u8, 102u8, 105u8, 51u8, 148u8, 164u8, 27u8, 25u8, 139u8, 167u8, 150u8, 129u8, @@ -33380,10 +34088,10 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "A new `[lease_period]` is beginning."] pub struct NewLeasePeriod(pub ::core::primitive::u32); @@ -33391,7 +34099,7 @@ pub mod api { const PALLET: &'static str = "Slots"; const EVENT: &'static str = "NewLeasePeriod"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A para has won the right to a continuous set of lease periods as a parachain."] #[doc = "First balance is any extra amount reserved on top of the para's existing deposit."] #[doc = "Second balance is the total amount reserved."] @@ -33466,7 +34174,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 83u8, 145u8, 119u8, 74u8, 166u8, 90u8, 141u8, 47u8, 125u8, 250u8, 173u8, 63u8, 193u8, 78u8, 96u8, 119u8, 111u8, 126u8, @@ -33506,7 +34216,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Leases<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 83u8, 145u8, 119u8, 74u8, 166u8, 90u8, 141u8, 47u8, 125u8, 250u8, 173u8, 63u8, 193u8, 78u8, 96u8, 119u8, 111u8, 126u8, @@ -33535,18 +34247,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Slots", "LeasePeriod")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Slots", "LeasePeriod")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 203u8, 21u8, 3u8, 22u8, 25u8, 46u8, 2u8, 223u8, 51u8, 234u8, + 160u8, 236u8, 54u8, 225u8, 52u8, 36u8, 60u8, 150u8, 37u8, + 13u8, 215u8, 134u8, 181u8, 100u8, 254u8, 3u8, 173u8, 154u8, + 74u8, 103u8, 124u8, 100u8, ] { - let pallet = self.client.metadata().pallet("Slots")?; + let pallet = metadata.pallet("Slots")?; let constant = pallet.constant("LeasePeriod")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -33560,18 +34271,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Slots", "LeaseOffset")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Slots", "LeaseOffset")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 7u8, 48u8, 194u8, 175u8, 129u8, 96u8, 39u8, 178u8, 104u8, + 157u8, 176u8, 78u8, 10u8, 5u8, 196u8, 122u8, 210u8, 168u8, + 167u8, 128u8, 21u8, 134u8, 90u8, 3u8, 108u8, 207u8, 62u8, + 81u8, 246u8, 70u8, 49u8, 68u8, ] { - let pallet = self.client.metadata().pallet("Slots")?; + let pallet = metadata.pallet("Slots")?; let constant = pallet.constant("LeaseOffset")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -33594,7 +34304,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct NewAuction { #[codec(compact)] pub duration: ::core::primitive::u32, @@ -33605,7 +34315,7 @@ pub mod api { const PALLET: &'static str = "Auctions"; const FUNCTION: &'static str = "new_auction"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Bid { #[codec(compact)] pub para: runtime_types::polkadot_parachain::primitives::Id, @@ -33622,7 +34332,7 @@ pub mod api { const PALLET: &'static str = "Auctions"; const FUNCTION: &'static str = "bid"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct CancelAuction; impl ::subxt::Call for CancelAuction { const PALLET: &'static str = "Auctions"; @@ -33663,7 +34373,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 12u8, 43u8, 152u8, 0u8, 229u8, 15u8, 32u8, 205u8, 208u8, 71u8, 57u8, 169u8, 201u8, 177u8, 52u8, 10u8, 93u8, 183u8, @@ -33714,7 +34426,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 206u8, 22u8, 15u8, 251u8, 222u8, 193u8, 192u8, 125u8, 160u8, 131u8, 209u8, 129u8, 105u8, 46u8, 77u8, 204u8, 107u8, 112u8, @@ -33750,7 +34464,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 182u8, 223u8, 178u8, 136u8, 1u8, 115u8, 229u8, 78u8, 166u8, 128u8, 28u8, 106u8, 6u8, 248u8, 46u8, 55u8, 110u8, 120u8, @@ -33769,7 +34485,7 @@ pub mod api { pub type Event = runtime_types::polkadot_runtime_common::auctions::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An auction started. Provides its index and the block number where it will begin to"] #[doc = "close and the first lease period of the quadruplet that is auctioned."] #[doc = "`[auction_index, lease_period, ending]`"] @@ -33783,10 +34499,10 @@ pub mod api { const EVENT: &'static str = "AuctionStarted"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "An auction ended. All funds become unreserved. `[auction_index]`"] pub struct AuctionClosed(pub ::core::primitive::u32); @@ -33794,7 +34510,7 @@ pub mod api { const PALLET: &'static str = "Auctions"; const EVENT: &'static str = "AuctionClosed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Funds were reserved for a winning bid. First balance is the extra amount reserved."] #[doc = "Second is the total. `[bidder, extra_reserved, total_amount]`"] pub struct Reserved( @@ -33806,7 +34522,7 @@ pub mod api { const PALLET: &'static str = "Auctions"; const EVENT: &'static str = "Reserved"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Funds were unreserved since bidder is no longer active. `[bidder, amount]`"] pub struct Unreserved( pub ::subxt::sp_core::crypto::AccountId32, @@ -33816,7 +34532,7 @@ pub mod api { const PALLET: &'static str = "Auctions"; const EVENT: &'static str = "Unreserved"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Someone attempted to lease the same slot twice for a parachain. The amount is held in reserve"] #[doc = "but no parachain slot has been leased."] #[doc = "`[parachain_id, leaser, amount]`"] @@ -33829,7 +34545,7 @@ pub mod api { const PALLET: &'static str = "Auctions"; const EVENT: &'static str = "ReserveConfiscated"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A new bid has been accepted as the current winner."] #[doc = "`[who, para_id, amount, first_slot, last_slot]`"] pub struct BidAccepted( @@ -33843,7 +34559,7 @@ pub mod api { const PALLET: &'static str = "Auctions"; const EVENT: &'static str = "BidAccepted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The winning offset was chosen for an auction. This will map into the `Winning` storage map."] #[doc = "`[auction_index, block_number]`"] pub struct WinningOffset( @@ -33919,7 +34635,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 67u8, 247u8, 96u8, 152u8, 0u8, 224u8, 230u8, 98u8, 194u8, 107u8, 3u8, 203u8, 51u8, 201u8, 149u8, 22u8, 184u8, 80u8, @@ -33951,7 +34669,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 73u8, 216u8, 173u8, 230u8, 132u8, 78u8, 83u8, 62u8, 200u8, 69u8, 17u8, 73u8, 57u8, 107u8, 160u8, 90u8, 147u8, 84u8, @@ -33976,7 +34696,9 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 195u8, 56u8, 142u8, 154u8, 193u8, 115u8, 13u8, 64u8, 101u8, 179u8, 69u8, 175u8, 185u8, 12u8, 31u8, 65u8, 147u8, 211u8, @@ -33999,7 +34721,9 @@ pub mod api { ::subxt::KeyIter<'a, T, ReservedAmounts<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 195u8, 56u8, 142u8, 154u8, 193u8, 115u8, 13u8, 64u8, 101u8, 179u8, 69u8, 175u8, 185u8, 12u8, 31u8, 65u8, 147u8, 211u8, @@ -34029,7 +34753,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 152u8, 246u8, 158u8, 193u8, 21u8, 56u8, 204u8, 29u8, 146u8, 90u8, 133u8, 246u8, 75u8, 111u8, 157u8, 150u8, 175u8, 33u8, @@ -34053,7 +34779,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Winning<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 152u8, 246u8, 158u8, 193u8, 21u8, 56u8, 204u8, 29u8, 146u8, 90u8, 133u8, 246u8, 75u8, 111u8, 157u8, 150u8, 175u8, 33u8, @@ -34082,18 +34810,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Auctions", "EndingPeriod")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Auctions", "EndingPeriod")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 36u8, 136u8, 230u8, 163u8, 145u8, 185u8, 224u8, 85u8, 228u8, + 249u8, 226u8, 140u8, 117u8, 32u8, 173u8, 235u8, 99u8, 200u8, + 48u8, 233u8, 15u8, 68u8, 24u8, 246u8, 90u8, 108u8, 91u8, + 242u8, 48u8, 102u8, 65u8, 252u8, ] { - let pallet = self.client.metadata().pallet("Auctions")?; + let pallet = metadata.pallet("Auctions")?; let constant = pallet.constant("EndingPeriod")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -34109,18 +34836,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Auctions", "SampleLength")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Auctions", "SampleLength")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 54u8, 145u8, 242u8, 8u8, 50u8, 152u8, 192u8, 64u8, 134u8, + 155u8, 104u8, 48u8, 117u8, 6u8, 58u8, 223u8, 15u8, 161u8, + 54u8, 22u8, 193u8, 71u8, 47u8, 70u8, 119u8, 122u8, 98u8, + 138u8, 117u8, 164u8, 144u8, 16u8, ] { - let pallet = self.client.metadata().pallet("Auctions")?; + let pallet = metadata.pallet("Auctions")?; let constant = pallet.constant("SampleLength")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -34133,18 +34859,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Auctions", "SlotRangeCount")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Auctions", "SlotRangeCount")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 32u8, 147u8, 38u8, 54u8, 172u8, 189u8, 240u8, 136u8, 216u8, + 182u8, 191u8, 129u8, 122u8, 1u8, 129u8, 244u8, 180u8, 210u8, + 219u8, 142u8, 224u8, 151u8, 237u8, 192u8, 103u8, 206u8, + 101u8, 131u8, 78u8, 181u8, 163u8, 44u8, ] { - let pallet = self.client.metadata().pallet("Auctions")?; + let pallet = metadata.pallet("Auctions")?; let constant = pallet.constant("SlotRangeCount")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -34157,18 +34882,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Auctions", "LeasePeriodsPerSlot")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Auctions", "LeasePeriodsPerSlot")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 174u8, 18u8, 150u8, 44u8, 219u8, 36u8, 218u8, 28u8, 34u8, + 132u8, 235u8, 161u8, 23u8, 173u8, 80u8, 175u8, 93u8, 163u8, + 6u8, 226u8, 11u8, 212u8, 186u8, 119u8, 185u8, 85u8, 111u8, + 216u8, 214u8, 111u8, 148u8, 28u8, ] { - let pallet = self.client.metadata().pallet("Auctions")?; + let pallet = metadata.pallet("Auctions")?; let constant = pallet.constant("LeasePeriodsPerSlot")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -34191,7 +34915,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Create { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, @@ -34210,7 +34934,7 @@ pub mod api { const PALLET: &'static str = "Crowdloan"; const FUNCTION: &'static str = "create"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Contribute { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, @@ -34223,7 +34947,7 @@ pub mod api { const PALLET: &'static str = "Crowdloan"; const FUNCTION: &'static str = "contribute"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Withdraw { pub who: ::subxt::sp_core::crypto::AccountId32, #[codec(compact)] @@ -34233,7 +34957,7 @@ pub mod api { const PALLET: &'static str = "Crowdloan"; const FUNCTION: &'static str = "withdraw"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Refund { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, @@ -34242,7 +34966,7 @@ pub mod api { const PALLET: &'static str = "Crowdloan"; const FUNCTION: &'static str = "refund"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Dissolve { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, @@ -34251,7 +34975,7 @@ pub mod api { const PALLET: &'static str = "Crowdloan"; const FUNCTION: &'static str = "dissolve"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Edit { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, @@ -34270,7 +34994,7 @@ pub mod api { const PALLET: &'static str = "Crowdloan"; const FUNCTION: &'static str = "edit"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct AddMemo { pub index: runtime_types::polkadot_parachain::primitives::Id, pub memo: ::std::vec::Vec<::core::primitive::u8>, @@ -34279,7 +35003,7 @@ pub mod api { const PALLET: &'static str = "Crowdloan"; const FUNCTION: &'static str = "add_memo"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Poke { pub index: runtime_types::polkadot_parachain::primitives::Id, } @@ -34287,7 +35011,7 @@ pub mod api { const PALLET: &'static str = "Crowdloan"; const FUNCTION: &'static str = "poke"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ContributeAll { #[codec(compact)] pub index: runtime_types::polkadot_parachain::primitives::Id, @@ -34338,7 +35062,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 94u8, 115u8, 154u8, 239u8, 215u8, 180u8, 175u8, 240u8, 137u8, 240u8, 74u8, 159u8, 67u8, 54u8, 69u8, 199u8, 161u8, 155u8, @@ -34379,7 +35105,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 95u8, 255u8, 35u8, 30u8, 44u8, 150u8, 10u8, 166u8, 0u8, 204u8, 106u8, 59u8, 150u8, 254u8, 216u8, 128u8, 232u8, 129u8, @@ -34429,7 +35157,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 67u8, 65u8, 89u8, 108u8, 193u8, 99u8, 74u8, 32u8, 163u8, 13u8, 81u8, 131u8, 64u8, 107u8, 72u8, 23u8, 35u8, 177u8, @@ -34462,7 +35192,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 202u8, 206u8, 79u8, 226u8, 114u8, 228u8, 110u8, 18u8, 178u8, 173u8, 23u8, 83u8, 64u8, 11u8, 201u8, 19u8, 57u8, 75u8, @@ -34491,7 +35223,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 210u8, 3u8, 221u8, 185u8, 64u8, 178u8, 56u8, 132u8, 72u8, 127u8, 105u8, 31u8, 167u8, 107u8, 127u8, 224u8, 174u8, 221u8, @@ -34529,7 +35263,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 34u8, 43u8, 47u8, 39u8, 106u8, 245u8, 49u8, 40u8, 191u8, 195u8, 202u8, 113u8, 137u8, 98u8, 143u8, 172u8, 191u8, 55u8, @@ -34568,7 +35304,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 97u8, 218u8, 115u8, 187u8, 167u8, 70u8, 229u8, 231u8, 148u8, 77u8, 169u8, 139u8, 16u8, 15u8, 116u8, 128u8, 32u8, 59u8, @@ -34599,7 +35337,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 99u8, 158u8, 48u8, 3u8, 228u8, 210u8, 249u8, 42u8, 44u8, 49u8, 24u8, 212u8, 69u8, 69u8, 189u8, 194u8, 124u8, 251u8, @@ -34632,7 +35372,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 64u8, 224u8, 233u8, 196u8, 182u8, 109u8, 69u8, 220u8, 46u8, 60u8, 189u8, 125u8, 17u8, 28u8, 207u8, 63u8, 129u8, 56u8, @@ -34651,14 +35393,14 @@ pub mod api { pub type Event = runtime_types::polkadot_runtime_common::crowdloan::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Create a new crowdloaning campaign. `[fund_index]`"] pub struct Created(pub runtime_types::polkadot_parachain::primitives::Id); impl ::subxt::Event for Created { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "Created"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Contributed to a crowd sale. `[who, fund_index, amount]`"] pub struct Contributed( pub ::subxt::sp_core::crypto::AccountId32, @@ -34669,7 +35411,7 @@ pub mod api { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "Contributed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Withdrew full balance of a contributor. `[who, fund_index, amount]`"] pub struct Withdrew( pub ::subxt::sp_core::crypto::AccountId32, @@ -34680,7 +35422,7 @@ pub mod api { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "Withdrew"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The loans in a fund have been partially dissolved, i.e. there are some left"] #[doc = "over child keys that still need to be killed. `[fund_index]`"] pub struct PartiallyRefunded( @@ -34690,21 +35432,21 @@ pub mod api { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "PartiallyRefunded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "All loans in a fund have been refunded. `[fund_index]`"] pub struct AllRefunded(pub runtime_types::polkadot_parachain::primitives::Id); impl ::subxt::Event for AllRefunded { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "AllRefunded"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Fund is dissolved. `[fund_index]`"] pub struct Dissolved(pub runtime_types::polkadot_parachain::primitives::Id); impl ::subxt::Event for Dissolved { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "Dissolved"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The result of trying to submit a new bid to the Slots pallet."] pub struct HandleBidResult( pub runtime_types::polkadot_parachain::primitives::Id, @@ -34714,14 +35456,14 @@ pub mod api { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "HandleBidResult"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The configuration to a crowdloan has been edited. `[fund_index]`"] pub struct Edited(pub runtime_types::polkadot_parachain::primitives::Id); impl ::subxt::Event for Edited { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "Edited"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A memo has been updated. `[who, fund_index, memo]`"] pub struct MemoUpdated( pub ::subxt::sp_core::crypto::AccountId32, @@ -34732,7 +35474,7 @@ pub mod api { const PALLET: &'static str = "Crowdloan"; const EVENT: &'static str = "MemoUpdated"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A parachain has been moved to `NewRaise`"] pub struct AddedToNewRaise( pub runtime_types::polkadot_parachain::primitives::Id, @@ -34814,7 +35556,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 13u8, 211u8, 240u8, 138u8, 231u8, 78u8, 123u8, 252u8, 210u8, 27u8, 202u8, 82u8, 157u8, 118u8, 209u8, 218u8, 160u8, 183u8, @@ -34836,7 +35580,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Funds<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 13u8, 211u8, 240u8, 138u8, 231u8, 78u8, 123u8, 252u8, 210u8, 27u8, 202u8, 82u8, 157u8, 118u8, 209u8, 218u8, 160u8, 183u8, @@ -34858,7 +35604,9 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 243u8, 204u8, 121u8, 230u8, 151u8, 223u8, 248u8, 199u8, 68u8, 209u8, 226u8, 159u8, 217u8, 105u8, 39u8, 127u8, 162u8, 133u8, @@ -34881,7 +35629,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 12u8, 159u8, 166u8, 75u8, 192u8, 33u8, 21u8, 244u8, 149u8, 200u8, 49u8, 54u8, 191u8, 174u8, 202u8, 86u8, 76u8, 115u8, @@ -34904,7 +35654,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 1u8, 215u8, 164u8, 194u8, 231u8, 34u8, 207u8, 19u8, 149u8, 187u8, 3u8, 176u8, 194u8, 240u8, 180u8, 169u8, 214u8, 194u8, @@ -34939,18 +35691,17 @@ pub mod api { runtime_types::frame_support::PalletId, ::subxt::BasicError, > { - if self - .client - .metadata() - .constant_hash("Crowdloan", "PalletId")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Crowdloan", "PalletId")? == [ - 11u8, 72u8, 189u8, 18u8, 254u8, 229u8, 67u8, 29u8, 4u8, - 241u8, 192u8, 5u8, 210u8, 194u8, 124u8, 31u8, 19u8, 174u8, - 240u8, 245u8, 169u8, 141u8, 67u8, 251u8, 106u8, 103u8, 15u8, - 167u8, 107u8, 31u8, 121u8, 239u8, + 190u8, 62u8, 112u8, 88u8, 48u8, 222u8, 234u8, 76u8, 230u8, + 81u8, 205u8, 113u8, 202u8, 11u8, 184u8, 229u8, 189u8, 124u8, + 132u8, 255u8, 46u8, 202u8, 80u8, 86u8, 182u8, 212u8, 149u8, + 200u8, 57u8, 215u8, 195u8, 132u8, ] { - let pallet = self.client.metadata().pallet("Crowdloan")?; + let pallet = metadata.pallet("Crowdloan")?; let constant = pallet.constant("PalletId")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -34965,18 +35716,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Crowdloan", "MinContribution")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Crowdloan", "MinContribution")? == [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, - 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, - 101u8, 54u8, 210u8, 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, - 15u8, 178u8, 98u8, 148u8, 156u8, + 7u8, 98u8, 163u8, 178u8, 130u8, 130u8, 228u8, 145u8, 98u8, + 96u8, 213u8, 70u8, 87u8, 202u8, 203u8, 65u8, 162u8, 93u8, + 70u8, 3u8, 109u8, 155u8, 86u8, 11u8, 164u8, 164u8, 232u8, + 201u8, 25u8, 0u8, 129u8, 24u8, ] { - let pallet = self.client.metadata().pallet("Crowdloan")?; + let pallet = metadata.pallet("Crowdloan")?; let constant = pallet.constant("MinContribution")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -34990,18 +35740,17 @@ pub mod api { &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .constant_hash("Crowdloan", "RemoveKeysLimit")? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.constant_hash("Crowdloan", "RemoveKeysLimit")? == [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, - 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, - 98u8, 68u8, 9u8, 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, - 90u8, 203u8, 100u8, 41u8, 145u8, + 112u8, 103u8, 77u8, 231u8, 192u8, 202u8, 113u8, 241u8, 178u8, + 158u8, 219u8, 21u8, 177u8, 140u8, 48u8, 133u8, 143u8, 170u8, + 91u8, 126u8, 180u8, 6u8, 222u8, 68u8, 236u8, 92u8, 215u8, + 100u8, 85u8, 155u8, 212u8, 224u8, ] { - let pallet = self.client.metadata().pallet("Crowdloan")?; + let pallet = metadata.pallet("Crowdloan")?; let constant = pallet.constant("RemoveKeysLimit")?; let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; @@ -35024,7 +35773,7 @@ pub mod api { runtime_types, }; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Send { pub dest: ::std::boxed::Box, pub message: ::std::boxed::Box, @@ -35033,7 +35782,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const FUNCTION: &'static str = "send"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct TeleportAssets { pub dest: ::std::boxed::Box, pub beneficiary: @@ -35045,7 +35794,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const FUNCTION: &'static str = "teleport_assets"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ReserveTransferAssets { pub dest: ::std::boxed::Box, pub beneficiary: @@ -35057,7 +35806,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const FUNCTION: &'static str = "reserve_transfer_assets"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Execute { pub message: ::std::boxed::Box, pub max_weight: ::core::primitive::u64, @@ -35066,7 +35815,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const FUNCTION: &'static str = "execute"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceXcmVersion { pub location: ::std::boxed::Box< runtime_types::xcm::v1::multilocation::MultiLocation, @@ -35077,7 +35826,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const FUNCTION: &'static str = "force_xcm_version"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceDefaultXcmVersion { pub maybe_xcm_version: ::core::option::Option<::core::primitive::u32>, } @@ -35085,7 +35834,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const FUNCTION: &'static str = "force_default_xcm_version"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceSubscribeVersionNotify { pub location: ::std::boxed::Box, @@ -35094,7 +35843,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const FUNCTION: &'static str = "force_subscribe_version_notify"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ForceUnsubscribeVersionNotify { pub location: ::std::boxed::Box, @@ -35103,7 +35852,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const FUNCTION: &'static str = "force_unsubscribe_version_notify"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct LimitedReserveTransferAssets { pub dest: ::std::boxed::Box, pub beneficiary: @@ -35116,7 +35865,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const FUNCTION: &'static str = "limited_reserve_transfer_assets"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct LimitedTeleportAssets { pub dest: ::std::boxed::Box, pub beneficiary: @@ -35159,7 +35908,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 232u8, 188u8, 205u8, 27u8, 92u8, 141u8, 251u8, 24u8, 90u8, 155u8, 20u8, 139u8, 7u8, 160u8, 39u8, 85u8, 205u8, 11u8, @@ -35208,7 +35959,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 55u8, 192u8, 217u8, 186u8, 230u8, 234u8, 26u8, 194u8, 243u8, 199u8, 16u8, 227u8, 225u8, 88u8, 130u8, 219u8, 228u8, 110u8, @@ -35260,10 +36013,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 134u8, 229u8, 104u8, 209u8, 160u8, 7u8, 99u8, 175u8, 128u8, 110u8, 189u8, 225u8, 141u8, 1u8, 10u8, 17u8, 247u8, 233u8, @@ -35308,7 +36060,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 95u8, 48u8, 201u8, 232u8, 83u8, 23u8, 20u8, 126u8, 116u8, 116u8, 176u8, 206u8, 145u8, 9u8, 155u8, 109u8, 141u8, 226u8, @@ -35346,7 +36100,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 32u8, 219u8, 213u8, 152u8, 203u8, 73u8, 121u8, 64u8, 78u8, 53u8, 110u8, 23u8, 87u8, 93u8, 34u8, 166u8, 205u8, 189u8, @@ -35382,10 +36138,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 44u8, 161u8, 28u8, 189u8, 162u8, 221u8, 14u8, 31u8, 8u8, 211u8, 181u8, 51u8, 197u8, 14u8, 87u8, 198u8, 3u8, 240u8, @@ -35417,10 +36172,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 41u8, 248u8, 187u8, 195u8, 146u8, 143u8, 0u8, 246u8, 248u8, 38u8, 128u8, 200u8, 143u8, 149u8, 127u8, 73u8, 3u8, 247u8, @@ -35456,10 +36210,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 150u8, 202u8, 148u8, 13u8, 187u8, 169u8, 5u8, 60u8, 25u8, 144u8, 43u8, 196u8, 35u8, 215u8, 184u8, 72u8, 143u8, 220u8, @@ -35511,10 +36264,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 242u8, 206u8, 126u8, 164u8, 44u8, 116u8, 181u8, 90u8, 121u8, 124u8, 120u8, 240u8, 129u8, 217u8, 131u8, 100u8, 248u8, @@ -35569,10 +36321,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .call_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.call_hash::()? == [ 189u8, 233u8, 43u8, 16u8, 158u8, 114u8, 154u8, 233u8, 179u8, 144u8, 81u8, 179u8, 169u8, 38u8, 4u8, 130u8, 95u8, 237u8, @@ -35597,7 +36348,7 @@ pub mod api { pub type Event = runtime_types::pallet_xcm::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Execution of an XCM message was attempted."] #[doc = ""] #[doc = "\\[ outcome \\]"] @@ -35606,7 +36357,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "Attempted"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A XCM message was sent."] #[doc = ""] #[doc = "\\[ origin, destination, message \\]"] @@ -35619,7 +36370,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "Sent"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Query response received which does not match a registered query. This may be because a"] #[doc = "matching query was never registered, it may be because it is a duplicate response, or"] #[doc = "because the query timed out."] @@ -35633,7 +36384,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "UnexpectedResponse"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Query response has been received and is ready for taking with `take_response`. There is"] #[doc = "no registered notification call."] #[doc = ""] @@ -35646,7 +36397,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "ResponseReady"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Query response has been received and query is removed. The registered notification has"] #[doc = "been dispatched and executed successfully."] #[doc = ""] @@ -35660,7 +36411,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "Notified"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Query response has been received and query is removed. The registered notification could"] #[doc = "not be dispatched because the dispatch weight is greater than the maximum weight"] #[doc = "originally budgeted by this runtime for the query result."] @@ -35677,7 +36428,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "NotifyOverweight"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Query response has been received and query is removed. There was a general error with"] #[doc = "dispatching the notification call."] #[doc = ""] @@ -35691,7 +36442,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "NotifyDispatchError"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Query response has been received and query is removed. The dispatch was unable to be"] #[doc = "decoded into a `Call`; this might be due to dispatch function having a signature which"] #[doc = "is not `(origin, QueryId, Response)`."] @@ -35706,7 +36457,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "NotifyDecodeFailed"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Expected query response has been received but the origin location of the response does"] #[doc = "not match that expected. The query remains registered for a later, valid, response to"] #[doc = "be received and acted upon."] @@ -35723,7 +36474,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "InvalidResponder"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Expected query response has been received but the expected origin location placed in"] #[doc = "storage by this runtime previously cannot be decoded. The query remains registered."] #[doc = ""] @@ -35742,10 +36493,10 @@ pub mod api { const EVENT: &'static str = "InvalidResponderVersion"; } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] #[doc = "Received query response has been read and removed."] #[doc = ""] @@ -35755,7 +36506,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "ResponseTaken"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "Some assets have been placed in an asset trap."] #[doc = ""] #[doc = "\\[ hash, origin, assets \\]"] @@ -35768,7 +36519,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "AssetsTrapped"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "An XCM version change notification message has been attempted to be sent."] #[doc = ""] #[doc = "\\[ destination, result \\]"] @@ -35780,7 +36531,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "VersionChangeNotified"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "The supported version of a location has been changed. This might be through an"] #[doc = "automatic notification or a manual intervention."] #[doc = ""] @@ -35793,7 +36544,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "SupportedVersionChanged"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A given location which had a version change subscription was dropped owing to an error"] #[doc = "sending the notification to it."] #[doc = ""] @@ -35807,7 +36558,7 @@ pub mod api { const PALLET: &'static str = "XcmPallet"; const EVENT: &'static str = "NotifyTargetSendFail"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] #[doc = "A given location which had a version change subscription was dropped owing to an error"] #[doc = "migrating the location to our new XCM format."] #[doc = ""] @@ -35969,7 +36720,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 137u8, 58u8, 184u8, 88u8, 247u8, 22u8, 151u8, 64u8, 50u8, 77u8, 49u8, 10u8, 234u8, 84u8, 213u8, 156u8, 26u8, 200u8, @@ -35999,7 +36752,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 47u8, 241u8, 126u8, 71u8, 203u8, 121u8, 171u8, 226u8, 89u8, 17u8, 61u8, 198u8, 123u8, 73u8, 20u8, 197u8, 6u8, 23u8, 34u8, @@ -36021,7 +36776,9 @@ pub mod api { ::subxt::KeyIter<'a, T, Queries<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 47u8, 241u8, 126u8, 71u8, 203u8, 121u8, 171u8, 226u8, 89u8, 17u8, 61u8, 198u8, 123u8, 73u8, 20u8, 197u8, 6u8, 23u8, 34u8, @@ -36044,7 +36801,9 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 46u8, 170u8, 126u8, 101u8, 101u8, 243u8, 31u8, 53u8, 166u8, 45u8, 90u8, 63u8, 2u8, 87u8, 36u8, 221u8, 101u8, 190u8, 51u8, @@ -36072,7 +36831,9 @@ pub mod api { ::subxt::KeyIter<'a, T, AssetTraps<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 46u8, 170u8, 126u8, 101u8, 101u8, 243u8, 31u8, 53u8, 166u8, 45u8, 90u8, 63u8, 2u8, 87u8, 36u8, 221u8, 101u8, 190u8, 51u8, @@ -36094,7 +36855,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 1u8, 223u8, 218u8, 204u8, 222u8, 129u8, 137u8, 237u8, 197u8, 142u8, 233u8, 66u8, 229u8, 153u8, 138u8, 222u8, 113u8, 164u8, @@ -36118,7 +36881,9 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 231u8, 202u8, 129u8, 82u8, 121u8, 63u8, 67u8, 57u8, 191u8, 190u8, 25u8, 27u8, 219u8, 42u8, 180u8, 142u8, 71u8, 119u8, @@ -36140,7 +36905,9 @@ pub mod api { ::subxt::KeyIter<'a, T, SupportedVersion<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 231u8, 202u8, 129u8, 82u8, 121u8, 63u8, 67u8, 57u8, 191u8, 190u8, 25u8, 27u8, 219u8, 42u8, 180u8, 142u8, 71u8, 119u8, @@ -36163,7 +36930,9 @@ pub mod api { ::core::option::Option<::core::primitive::u64>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 126u8, 49u8, 13u8, 135u8, 137u8, 68u8, 248u8, 211u8, 160u8, 160u8, 93u8, 128u8, 157u8, 230u8, 62u8, 119u8, 191u8, 51u8, @@ -36185,7 +36954,9 @@ pub mod api { ::subxt::KeyIter<'a, T, VersionNotifiers<'a>>, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 126u8, 49u8, 13u8, 135u8, 137u8, 68u8, 248u8, 211u8, 160u8, 160u8, 93u8, 128u8, 157u8, 230u8, 62u8, 119u8, 191u8, 51u8, @@ -36213,10 +36984,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 251u8, 128u8, 243u8, 94u8, 162u8, 11u8, 206u8, 101u8, 33u8, 24u8, 163u8, 157u8, 112u8, 50u8, 91u8, 155u8, 241u8, 73u8, @@ -36239,10 +37009,9 @@ pub mod api { ::subxt::KeyIter<'a, T, VersionNotifyTargets<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 251u8, 128u8, 243u8, 94u8, 162u8, 11u8, 206u8, 101u8, 33u8, 24u8, 163u8, 157u8, 112u8, 50u8, 91u8, 155u8, 241u8, 73u8, @@ -36268,10 +37037,9 @@ pub mod api { )>, ::subxt::BasicError, > { - if self - .client - .metadata() - .storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 45u8, 28u8, 29u8, 233u8, 239u8, 65u8, 24u8, 214u8, 153u8, 189u8, 132u8, 235u8, 62u8, 197u8, 252u8, 56u8, 38u8, 97u8, @@ -36298,7 +37066,9 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().storage_hash::()? + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.storage_hash::()? == [ 228u8, 254u8, 240u8, 20u8, 92u8, 79u8, 40u8, 65u8, 176u8, 111u8, 243u8, 168u8, 238u8, 147u8, 247u8, 170u8, 185u8, @@ -36322,26 +37092,26 @@ pub mod api { pub mod order { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Lsb0; } } pub mod finality_grandpa { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Equivocation<_0, _1, _2> { pub round_number: ::core::primitive::u64, pub identity: _0, pub first: (_1, _2), pub second: (_1, _2), } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Precommit<_0, _1> { pub target_hash: _0, pub target_number: _1, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Prevote<_0, _1> { pub target_hash: _0, pub target_number: _1, @@ -36352,7 +37122,7 @@ pub mod api { pub mod dispatch { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum RawOrigin<_0> { #[codec(index = 0)] @@ -36368,21 +37138,21 @@ pub mod api { pub mod bounded_btree_map { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::KeyedVec<_0, _1>); } pub mod bounded_vec { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); } pub mod weak_bounded_vec { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); } @@ -36392,14 +37162,14 @@ pub mod api { pub mod misc { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct WrapperKeepOpaque<_0>( #[codec(compact)] pub ::core::primitive::u32, pub _0, ); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct WrapperOpaque<_0>( #[codec(compact)] pub ::core::primitive::u32, @@ -36409,7 +37179,7 @@ pub mod api { pub mod schedule { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum LookupError { #[codec(index = 0)] @@ -36418,7 +37188,7 @@ pub mod api { BadFormat, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum MaybeHashed<_0, _1> { #[codec(index = 0)] @@ -36432,8 +37202,8 @@ pub mod api { pub mod misc { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, )] pub enum BalanceStatus { @@ -36448,7 +37218,7 @@ pub mod api { pub mod weights { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum DispatchClass { #[codec(index = 0)] @@ -36459,7 +37229,7 @@ pub mod api { Mandatory, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct DispatchInfo { pub weight: ::core::primitive::u64, @@ -36467,7 +37237,7 @@ pub mod api { pub pays_fee: runtime_types::frame_support::weights::Pays, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Pays { #[codec(index = 0)] @@ -36476,7 +37246,7 @@ pub mod api { No, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct PerDispatchClass<_0> { pub normal: _0, @@ -36484,14 +37254,14 @@ pub mod api { pub mandatory: _0, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct RuntimeDbWeight { pub read: ::core::primitive::u64, pub write: ::core::primitive::u64, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct WeightToFeeCoefficient<_0> { pub coeff_integer: _0, @@ -36500,7 +37270,7 @@ pub mod api { pub degree: ::core::primitive::u8, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct PalletId(pub [::core::primitive::u8; 8usize]); } pub mod frame_system { @@ -36510,14 +37280,14 @@ pub mod api { pub mod check_genesis { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct CheckGenesis; } pub mod check_mortality { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct CheckMortality( pub runtime_types::sp_runtime::generic::era::Era, @@ -36526,35 +37296,35 @@ pub mod api { pub mod check_non_zero_sender { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct CheckNonZeroSender; } pub mod check_nonce { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32); } pub mod check_spec_version { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct CheckSpecVersion; } pub mod check_tx_version { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct CheckTxVersion; } pub mod check_weight { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct CheckWeight; } @@ -36562,7 +37332,7 @@ pub mod api { pub mod limits { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct BlockLength { pub max: runtime_types::frame_support::weights::PerDispatchClass< @@ -36570,7 +37340,7 @@ pub mod api { >, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct BlockWeights { pub base_block: ::core::primitive::u64, @@ -36581,7 +37351,7 @@ pub mod api { >, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct WeightsPerClass { pub base_extrinsic: ::core::primitive::u64, @@ -36593,7 +37363,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -36671,7 +37441,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -36698,7 +37468,7 @@ pub mod api { CallFiltered, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -36735,7 +37505,7 @@ pub mod api { }, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct AccountInfo<_0, _1> { pub nonce: _0, pub consumers: _0, @@ -36743,19 +37513,19 @@ pub mod api { pub sufficients: _0, pub data: _1, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct EventRecord<_0, _1> { pub phase: runtime_types::frame_system::Phase, pub event: _0, pub topics: ::std::vec::Vec<_1>, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct LastRuntimeUpgradeInfo { #[codec(compact)] pub spec_version: ::core::primitive::u32, pub spec_name: ::std::string::String, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum Phase { #[codec(index = 0)] ApplyExtrinsic(::core::primitive::u32), @@ -36770,7 +37540,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -36785,7 +37555,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -36811,7 +37581,7 @@ pub mod api { OldUncle, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum UncleEntryItem<_0, _1, _2> { #[codec(index = 0)] InclusionHeight(_0), @@ -36824,12 +37594,12 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { # [codec (index = 0)] # [doc = "Report authority equivocation/misbehavior. This method will verify"] # [doc = "the equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence will"] # [doc = "be reported."] report_equivocation { equivocation_proof : :: std :: boxed :: Box < runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public > > , key_owner_proof : runtime_types :: sp_session :: MembershipProof , } , # [codec (index = 1)] # [doc = "Report authority equivocation/misbehavior. This method will verify"] # [doc = "the equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence will"] # [doc = "be reported."] # [doc = "This extrinsic must be called unsigned and it is expected that only"] # [doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] # [doc = "if the block author is defined it will be defined as the equivocation"] # [doc = "reporter."] report_equivocation_unsigned { equivocation_proof : :: std :: boxed :: Box < runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public > > , key_owner_proof : runtime_types :: sp_session :: MembershipProof , } , # [codec (index = 2)] # [doc = "Plan an epoch config change. The epoch config change is recorded and will be enacted on"] # [doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] # [doc = "Multiple calls to this method will replace any existing planned config change that had"] # [doc = "not been enacted yet."] plan_config_change { config : runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor , } , } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -36849,7 +37619,7 @@ pub mod api { pub mod list { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Bag { pub head: @@ -36858,7 +37628,7 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Node { pub id: ::subxt::sp_core::crypto::AccountId32, @@ -36872,7 +37642,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -36901,7 +37671,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -36915,7 +37685,7 @@ pub mod api { NotHeavier, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -36933,7 +37703,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -37061,7 +37831,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -37090,25 +37860,25 @@ pub mod api { TooManyReserves, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { # [codec (index = 0)] # [doc = "An account was created with some free balance."] Endowed { account : :: subxt :: sp_core :: crypto :: AccountId32 , free_balance : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] # [doc = "resulting in an outright loss."] DustLost { account : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Transfer succeeded."] Transfer { from : :: subxt :: sp_core :: crypto :: AccountId32 , to : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A balance was set by root."] BalanceSet { who : :: subxt :: sp_core :: crypto :: AccountId32 , free : :: core :: primitive :: u128 , reserved : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Some balance was reserved (moved from free to reserved)."] Reserved { who : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { who : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 6)] # [doc = "Some balance was moved from the reserve of the first account to the second account."] # [doc = "Final argument indicates the destination balance type."] ReserveRepatriated { from : :: subxt :: sp_core :: crypto :: AccountId32 , to : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } , # [codec (index = 7)] # [doc = "Some amount was deposited (e.g. for transaction fees)."] Deposit { who : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] # [doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] Withdraw { who : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "Some amount was removed from the account (e.g. for misbehavior)."] Slashed { who : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct AccountData<_0> { pub free: _0, pub reserved: _0, pub misc_frozen: _0, pub fee_frozen: _0, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct BalanceLock<_0> { pub id: [::core::primitive::u8; 8usize], pub amount: _0, pub reasons: runtime_types::pallet_balances::Reasons, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum Reasons { #[codec(index = 0)] Fee, @@ -37117,14 +37887,14 @@ pub mod api { #[codec(index = 2)] All, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum Releases { #[codec(index = 0)] V1_0_0, #[codec(index = 1)] V2_0_0, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ReserveData<_0, _1> { pub id: _0, pub amount: _1, @@ -37135,7 +37905,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -37290,7 +38060,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -37329,7 +38099,7 @@ pub mod api { TooManyQueued, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -37365,7 +38135,7 @@ pub mod api { BountyExtended { index: ::core::primitive::u32 }, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Bounty<_0, _1, _2> { pub proposer: _0, pub value: _1, @@ -37374,7 +38144,7 @@ pub mod api { pub bond: _1, pub status: runtime_types::pallet_bounties::BountyStatus<_0, _2>, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum BountyStatus<_0, _1> { #[codec(index = 0)] Proposed, @@ -37399,7 +38169,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -37606,7 +38376,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -37620,7 +38390,7 @@ pub mod api { TooManyChildBounties, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -37652,7 +38422,7 @@ pub mod api { }, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ChildBounty<_0, _1, _2> { pub parent_bounty: _2, pub value: _1, @@ -37661,7 +38431,7 @@ pub mod api { pub status: runtime_types::pallet_child_bounties::ChildBountyStatus<_0, _2>, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum ChildBountyStatus<_0, _1> { #[codec(index = 0)] Added, @@ -37682,7 +38452,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -37863,7 +38633,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -37898,7 +38668,7 @@ pub mod api { WrongProposalLength, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -37957,7 +38727,7 @@ pub mod api { }, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum RawOrigin<_0> { #[codec(index = 0)] Members(::core::primitive::u32, ::core::primitive::u32), @@ -37966,7 +38736,7 @@ pub mod api { #[codec(index = 2)] _Phantom, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Votes<_0, _1> { pub index: _1, pub threshold: _1, @@ -37980,7 +38750,7 @@ pub mod api { pub mod conviction { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Conviction { #[codec(index = 0)] @@ -38002,7 +38772,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -38373,7 +39143,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -38463,7 +39233,7 @@ pub mod api { TooManyProposals, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { # [codec (index = 0)] # [doc = "A motion has been proposed by a public account."] Proposed { proposal_index : :: core :: primitive :: u32 , deposit : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "A public proposal has been tabled for referendum vote."] Tabled { proposal_index : :: core :: primitive :: u32 , deposit : :: core :: primitive :: u128 , depositors : :: std :: vec :: Vec < :: subxt :: sp_core :: crypto :: AccountId32 > , } , # [codec (index = 2)] # [doc = "An external proposal has been tabled."] ExternalTabled , # [codec (index = 3)] # [doc = "A referendum has begun."] Started { ref_index : :: core :: primitive :: u32 , threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , } , # [codec (index = 4)] # [doc = "A proposal has been approved by referendum."] Passed { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A proposal has been rejected by referendum."] NotPassed { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "A referendum has been cancelled."] Cancelled { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "A proposal has been enacted."] Executed { ref_index : :: core :: primitive :: u32 , result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , # [codec (index = 8)] # [doc = "An account has delegated their vote to another account."] Delegated { who : :: subxt :: sp_core :: crypto :: AccountId32 , target : :: subxt :: sp_core :: crypto :: AccountId32 , } , # [codec (index = 9)] # [doc = "An account has cancelled a previous delegation operation."] Undelegated { account : :: subxt :: sp_core :: crypto :: AccountId32 , } , # [codec (index = 10)] # [doc = "An external proposal has been vetoed."] Vetoed { who : :: subxt :: sp_core :: crypto :: AccountId32 , proposal_hash : :: subxt :: sp_core :: H256 , until : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "A proposal's preimage was noted, and the deposit taken."] PreimageNoted { proposal_hash : :: subxt :: sp_core :: H256 , who : :: subxt :: sp_core :: crypto :: AccountId32 , deposit : :: core :: primitive :: u128 , } , # [codec (index = 12)] # [doc = "A proposal preimage was removed and used (the deposit was returned)."] PreimageUsed { proposal_hash : :: subxt :: sp_core :: H256 , provider : :: subxt :: sp_core :: crypto :: AccountId32 , deposit : :: core :: primitive :: u128 , } , # [codec (index = 13)] # [doc = "A proposal could not be executed because its preimage was invalid."] PreimageInvalid { proposal_hash : :: subxt :: sp_core :: H256 , ref_index : :: core :: primitive :: u32 , } , # [codec (index = 14)] # [doc = "A proposal could not be executed because its preimage was missing."] PreimageMissing { proposal_hash : :: subxt :: sp_core :: H256 , ref_index : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "A registered preimage was removed and the deposit collected by the reaper."] PreimageReaped { proposal_hash : :: subxt :: sp_core :: H256 , provider : :: subxt :: sp_core :: crypto :: AccountId32 , deposit : :: core :: primitive :: u128 , reaper : :: subxt :: sp_core :: crypto :: AccountId32 , } , # [codec (index = 16)] # [doc = "A proposal_hash has been blacklisted permanently."] Blacklisted { proposal_hash : :: subxt :: sp_core :: H256 , } , # [codec (index = 17)] # [doc = "An account has voted in a referendum"] Voted { voter : :: subxt :: sp_core :: crypto :: AccountId32 , ref_index : :: core :: primitive :: u32 , vote : runtime_types :: pallet_democracy :: vote :: AccountVote < :: core :: primitive :: u128 > , } , # [codec (index = 18)] # [doc = "An account has secconded a proposal"] Seconded { seconder : :: subxt :: sp_core :: crypto :: AccountId32 , prop_index : :: core :: primitive :: u32 , } , } @@ -38471,14 +39241,14 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Delegations<_0> { pub votes: _0, pub capital: _0, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum ReferendumInfo<_0, _1, _2> { #[codec(index = 0)] @@ -38496,7 +39266,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct ReferendumStatus<_0, _1, _2> { pub end: _0, @@ -38507,7 +39277,7 @@ pub mod api { pub tally: runtime_types::pallet_democracy::types::Tally<_2>, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Tally<_0> { pub ayes: _0, @@ -38518,7 +39288,7 @@ pub mod api { pub mod vote { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum AccountVote<_0> { #[codec(index = 0)] @@ -38530,18 +39300,18 @@ pub mod api { Split { aye: _0, nay: _0 }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct PriorLock<_0, _1>(pub _0, pub _1); #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct Vote(pub ::core::primitive::u8); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Voting<_0, _1, _2> { #[codec(index = 0)] @@ -38569,7 +39339,7 @@ pub mod api { pub mod vote_threshold { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum VoteThreshold { #[codec(index = 0)] @@ -38580,7 +39350,7 @@ pub mod api { SimpleMajority, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum PreimageStatus<_0, _1, _2> { #[codec(index = 0)] Missing(_2), @@ -38593,7 +39363,7 @@ pub mod api { expiry: ::core::option::Option<_2>, }, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum Releases { #[codec(index = 0)] V1, @@ -38604,12 +39374,12 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { # [codec (index = 0)] # [doc = "Submit a solution for the unsigned phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __none__."] # [doc = ""] # [doc = "This submission is checked on the fly. Moreover, this unsigned solution is only"] # [doc = "validated when submitted to the pool from the **local** node. Effectively, this means"] # [doc = "that only active validators can submit this transaction when authoring a block (similar"] # [doc = "to an inherent)."] # [doc = ""] # [doc = "To prevent any incorrect solution (and thus wasted time/weight), this transaction will"] # [doc = "panic if the solution submitted by the validator is invalid in any way, effectively"] # [doc = "putting their authoring reward at risk."] # [doc = ""] # [doc = "No deposit or reward is associated with this submission."] submit_unsigned { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "Set a new value for `MinimumUntrustedScore`."] # [doc = ""] # [doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] # [doc = ""] # [doc = "This check can be turned off by setting the value to `None`."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "Set a solution in the queue, to be handed out to the client of this pallet in the next"] # [doc = "call to `ElectionProvider::elect`."] # [doc = ""] # [doc = "This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`."] # [doc = ""] # [doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] # [doc = "feasibility check itself can in principle cause the election process to fail (due to"] # [doc = "memory/weight constrains)."] set_emergency_election_result { supports : :: std :: vec :: Vec < (:: subxt :: sp_core :: crypto :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: sp_core :: crypto :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "Submit a solution for the signed phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __signed__."] # [doc = ""] # [doc = "The solution is potentially queued, based on the claimed score and processed at the end"] # [doc = "of the signed phase."] # [doc = ""] # [doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] # [doc = "might be rewarded, slashed, or get all or a part of the deposit back."] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , } , # [codec (index = 4)] # [doc = "Trigger the governance fallback."] # [doc = ""] # [doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] # [doc = "calling [`Call::set_emergency_election_result`]."] governance_fallback { maybe_max_voters : :: core :: option :: Option < :: core :: primitive :: u32 > , maybe_max_targets : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -38650,7 +39420,7 @@ pub mod api { FallbackFailed, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { # [codec (index = 0)] # [doc = "A solution was stored with the given compute."] # [doc = ""] # [doc = "If the solution is signed, this means that it hasn't yet been processed. If the"] # [doc = "solution is unsigned, this means that it has also been processed."] # [doc = ""] # [doc = "The `bool` is `true` when a previous solution was ejected to make room for this one."] SolutionStored { election_compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , prev_ejected : :: core :: primitive :: bool , } , # [codec (index = 1)] # [doc = "The election has been finalized, with `Some` of the given computation, or else if the"] # [doc = "election failed, `None`."] ElectionFinalized { election_compute : :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute > , } , # [codec (index = 2)] # [doc = "An account has been rewarded for their signed submission being finalized."] Rewarded { account : :: subxt :: sp_core :: crypto :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "An account has been slashed for submitting an invalid signed submission."] Slashed { account : :: subxt :: sp_core :: crypto :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "The signed phase of the given round has started."] SignedPhaseStarted { round : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "The unsigned phase of the given round has started."] UnsignedPhaseStarted { round : :: core :: primitive :: u32 , } , } @@ -38658,7 +39428,7 @@ pub mod api { pub mod signed { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct SignedSubmission<_0, _1, _2> { pub who: _0, @@ -38670,7 +39440,7 @@ pub mod api { pub reward: _1, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum ElectionCompute { #[codec(index = 0)] OnChain, @@ -38683,7 +39453,7 @@ pub mod api { #[codec(index = 4)] Emergency, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum Phase<_0> { #[codec(index = 0)] Off, @@ -38694,13 +39464,13 @@ pub mod api { #[codec(index = 3)] Emergency, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RawSolution<_0> { pub solution: _0, pub score: runtime_types::sp_npos_elections::ElectionScore, pub round: ::core::primitive::u32, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ReadySolution<_0> { pub supports: ::std::vec::Vec<(_0, runtime_types::sp_npos_elections::Support<_0>)>, @@ -38708,7 +39478,7 @@ pub mod api { pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RoundSnapshot { pub voters: ::std::vec::Vec<( ::subxt::sp_core::crypto::AccountId32, @@ -38719,7 +39489,7 @@ pub mod api { )>, pub targets: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SolutionOrSnapshotSize { #[codec(compact)] pub voters: ::core::primitive::u32, @@ -38732,7 +39502,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -38852,7 +39622,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -38908,7 +39678,7 @@ pub mod api { InvalidReplacement, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -38958,7 +39728,7 @@ pub mod api { }, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum Renouncing { #[codec(index = 0)] Member, @@ -38967,13 +39737,13 @@ pub mod api { #[codec(index = 2)] Candidate(#[codec(compact)] ::core::primitive::u32), } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SeatHolder<_0, _1> { pub who: _0, pub stake: _1, pub deposit: _1, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Voter<_0, _1> { pub votes: ::std::vec::Vec<_0>, pub stake: _1, @@ -38985,7 +39755,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -39035,7 +39805,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -39063,7 +39833,7 @@ pub mod api { DuplicateOffenceReport, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -39082,9 +39852,9 @@ pub mod api { Resumed, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct StoredPendingChange < _0 > { pub scheduled_at : _0 , pub delay : _0 , pub next_authorities : runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_finality_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > , pub forced : :: core :: option :: Option < _0 > , } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum StoredState<_0> { #[codec(index = 0)] Live, @@ -39101,7 +39871,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -39415,7 +40185,7 @@ pub mod api { quit_sub, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -39468,7 +40238,7 @@ pub mod api { NotOwned, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -39538,17 +40308,17 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct BitFlags<_0>( pub ::core::primitive::u64, #[codec(skip)] pub ::core::marker::PhantomData<_0>, ); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Data { #[codec(index = 0)] @@ -39629,7 +40399,7 @@ pub mod api { ShaThree256([::core::primitive::u8; 32usize]), } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum IdentityField { #[codec(index = 1)] @@ -39650,7 +40420,7 @@ pub mod api { Twitter, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct IdentityInfo { pub additional: @@ -39669,7 +40439,7 @@ pub mod api { pub twitter: runtime_types::pallet_identity::types::Data, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Judgement<_0> { #[codec(index = 0)] @@ -39688,7 +40458,7 @@ pub mod api { Erroneous, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct RegistrarInfo<_0, _1> { pub account: _1, @@ -39698,7 +40468,7 @@ pub mod api { >, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Registration<_0> { pub judgements: @@ -39716,12 +40486,12 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { # [codec (index = 0)] # [doc = "# "] # [doc = "- Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is"] # [doc = " length of `heartbeat.network_state.external_address`"] # [doc = " - `O(K)`: decoding of length `K`"] # [doc = " - `O(E)`: decoding/encoding of length `E`"] # [doc = "- DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,"] # [doc = " `ReceivedHeartbeats`"] # [doc = "- DbWrites: `ReceivedHeartbeats`"] # [doc = "# "] heartbeat { heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u32 > , signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } , } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -39732,7 +40502,7 @@ pub mod api { DuplicatedHeartbeat, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -39762,18 +40532,18 @@ pub mod api { pub mod app_sr25519 { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Public(pub runtime_types::sp_core::sr25519::Public); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct BoundedOpaqueNetworkState { pub peer_id : runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > , pub external_addresses : runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < :: core :: primitive :: u8 > > , } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Heartbeat<_0> { pub block_number: _0, pub network_state: runtime_types::sp_core::offchain::OpaqueNetworkState, @@ -39787,7 +40557,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -39904,7 +40674,7 @@ pub mod api { freeze { index: ::core::primitive::u32 }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -39924,7 +40694,7 @@ pub mod api { Permanent, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -39950,7 +40720,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -40008,7 +40778,7 @@ pub mod api { clear_prime, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -40019,7 +40789,7 @@ pub mod api { NotMember, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -40048,7 +40818,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -40220,7 +40990,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -40267,7 +41037,7 @@ pub mod api { AlreadyStored, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -40313,14 +41083,14 @@ pub mod api { }, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Multisig<_0, _1, _2> { pub when: runtime_types::pallet_multisig::Timepoint<_0>, pub deposit: _1, pub depositor: _2, pub approvals: ::std::vec::Vec<_2>, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Timepoint<_0> { pub height: _0, pub index: _0, @@ -40331,7 +41101,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -40350,7 +41120,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -40377,7 +41147,7 @@ pub mod api { unrequest_preimage { hash: ::subxt::sp_core::H256 }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -40400,7 +41170,7 @@ pub mod api { NotRequested, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -40414,7 +41184,7 @@ pub mod api { Cleared { hash: ::subxt::sp_core::H256 }, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum RequestStatus<_0, _1> { #[codec(index = 0)] Unrequested(::core::option::Option<(_0, _1)>), @@ -40427,7 +41197,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -40656,7 +41426,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -40685,7 +41455,7 @@ pub mod api { NoSelfProxy, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -40730,13 +41500,13 @@ pub mod api { }, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Announcement<_0, _1, _2> { pub real: _0, pub call_hash: _1, pub height: _2, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ProxyDefinition<_0, _1, _2> { pub delegate: _0, pub proxy_type: _1, @@ -40748,7 +41518,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -40838,7 +41608,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -40855,7 +41625,7 @@ pub mod api { RescheduleNoChange, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -40894,7 +41664,7 @@ pub mod api { }, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ScheduledV3<_0, _1, _2, _3> { pub maybe_id: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, @@ -40911,7 +41681,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -40953,7 +41723,7 @@ pub mod api { purge_keys, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -40973,7 +41743,7 @@ pub mod api { NoAccount, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -40992,7 +41762,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -41471,7 +42241,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum ConfigOp<_0> { #[codec(index = 0)] @@ -41482,7 +42252,7 @@ pub mod api { Remove, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -41563,7 +42333,7 @@ pub mod api { CommissionTooLow, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -41642,7 +42412,7 @@ pub mod api { pub mod slashing { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct SlashingSpans { pub span_index: ::core::primitive::u32, @@ -41651,24 +42421,24 @@ pub mod api { pub prior: ::std::vec::Vec<::core::primitive::u32>, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct SpanRecord<_0> { pub slashed: _0, pub paid_out: _0, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ActiveEraInfo { pub index: ::core::primitive::u32, pub start: ::core::option::Option<::core::primitive::u64>, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct EraRewardPoints<_0> { pub total: ::core::primitive::u32, pub individual: ::subxt::KeyedVec<_0, ::core::primitive::u32>, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Exposure<_0, _1> { #[codec(compact)] pub total: _1, @@ -41678,7 +42448,7 @@ pub mod api { runtime_types::pallet_staking::IndividualExposure<_0, _1>, >, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum Forcing { #[codec(index = 0)] NotForcing, @@ -41689,13 +42459,13 @@ pub mod api { #[codec(index = 3)] ForceAlways, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct IndividualExposure<_0, _1> { pub who: _0, #[codec(compact)] pub value: _1, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Nominations { pub targets: runtime_types::frame_support::storage::bounded_vec::BoundedVec< @@ -41704,7 +42474,7 @@ pub mod api { pub submitted_in: ::core::primitive::u32, pub suppressed: ::core::primitive::bool, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum Releases { #[codec(index = 0)] V1_0_0Ancient, @@ -41725,7 +42495,7 @@ pub mod api { #[codec(index = 8)] V9_0_0, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum RewardDestination<_0> { #[codec(index = 0)] Staked, @@ -41738,7 +42508,7 @@ pub mod api { #[codec(index = 4)] None, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct StakingLedger<_0, _1> { pub stash: _0, #[codec(compact)] @@ -41751,7 +42521,7 @@ pub mod api { >, pub claimed_rewards: ::std::vec::Vec<::core::primitive::u32>, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct UnappliedSlash<_0, _1> { pub validator: _0, pub own: _1, @@ -41759,14 +42529,14 @@ pub mod api { pub reporters: ::std::vec::Vec<_0>, pub payout: _1, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct UnlockChunk<_0> { #[codec(compact)] pub value: _0, #[codec(compact)] pub era: ::core::primitive::u32, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ValidatorPrefs { #[codec(compact)] pub commission: runtime_types::sp_arithmetic::per_things::Perbill, @@ -41778,7 +42548,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -41810,7 +42580,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -41951,7 +42721,7 @@ pub mod api { slash_tip { hash: ::subxt::sp_core::H256 }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -41974,7 +42744,7 @@ pub mod api { Premature, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -42002,7 +42772,7 @@ pub mod api { }, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct OpenTip<_0, _1, _2, _3> { pub reason: _3, pub who: _0, @@ -42015,11 +42785,11 @@ pub mod api { } pub mod pallet_transaction_payment { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ChargeTransactionPayment( #[codec(compact)] pub ::core::primitive::u128, ); - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum Releases { #[codec(index = 0)] V1Ancient, @@ -42032,7 +42802,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -42084,7 +42854,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -42098,7 +42868,7 @@ pub mod api { TooManyApprovals, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -42139,7 +42909,7 @@ pub mod api { Deposit { value: ::core::primitive::u128 }, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Proposal<_0, _1> { pub proposer: _0, pub value: _1, @@ -42152,7 +42922,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -42233,7 +43003,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -42241,7 +43011,7 @@ pub mod api { TooManyCalls, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -42273,7 +43043,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -42404,7 +43174,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -42425,7 +43195,7 @@ pub mod api { InvalidScheduleParams, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -42445,7 +43215,7 @@ pub mod api { pub mod vesting_info { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct VestingInfo<_0, _1> { pub locked: _0, @@ -42453,7 +43223,7 @@ pub mod api { pub starting_block: _1, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum Releases { #[codec(index = 0)] V0, @@ -42466,7 +43236,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -42643,7 +43413,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -42690,7 +43460,7 @@ pub mod api { AlreadySubscribed, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -42849,7 +43619,7 @@ pub mod api { ), } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Origin { #[codec(index = 0)] @@ -42858,7 +43628,7 @@ pub mod api { Response(runtime_types::xcm::v1::multilocation::MultiLocation), } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum QueryStatus<_0> { #[codec(index = 0)] @@ -42882,7 +43652,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum VersionMigrationStage { #[codec(index = 0)] @@ -42900,19 +43670,19 @@ pub mod api { } pub mod polkadot_core_primitives { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct CandidateHash(pub ::subxt::sp_core::H256); - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct InboundDownwardMessage<_0> { pub sent_at: _0, pub msg: ::std::vec::Vec<::core::primitive::u8>, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct InboundHrmpMessage<_0> { pub sent_at: _0, pub data: ::std::vec::Vec<::core::primitive::u8>, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct OutboundHrmpMessage<_0> { pub recipient: _0, pub data: ::std::vec::Vec<::core::primitive::u8>, @@ -42923,29 +43693,29 @@ pub mod api { pub mod primitives { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct HeadData(pub ::std::vec::Vec<::core::primitive::u8>); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct HrmpChannelId { pub sender: runtime_types::polkadot_parachain::primitives::Id, pub recipient: runtime_types::polkadot_parachain::primitives::Id, } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct Id(pub ::core::primitive::u32); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct ValidationCode(pub ::std::vec::Vec<::core::primitive::u8>); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct ValidationCodeHash(pub ::subxt::sp_core::H256); } @@ -42957,41 +43727,41 @@ pub mod api { pub mod assignment_app { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Public(pub runtime_types::sp_core::sr25519::Public); } pub mod collator_app { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Public(pub runtime_types::sp_core::sr25519::Public); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); } pub mod signed { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct UncheckedSigned < _0 , _1 > { pub payload : _0 , pub validator_index : runtime_types :: polkadot_primitives :: v2 :: ValidatorIndex , pub signature : runtime_types :: polkadot_primitives :: v2 :: validator_app :: Signature , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _1 > } } pub mod validator_app { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Public(pub runtime_types::sp_core::sr25519::Public); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct AvailabilityBitfield( pub ::subxt::bitvec::vec::BitVec< @@ -43000,7 +43770,7 @@ pub mod api { >, ); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct BackedCandidate<_0> { pub candidate: @@ -43016,7 +43786,7 @@ pub mod api { >, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct CandidateCommitments<_0> { pub upward_messages: @@ -43035,7 +43805,7 @@ pub mod api { pub hrmp_watermark: _0, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct CandidateDescriptor<_0> { pub para_id: runtime_types::polkadot_parachain::primitives::Id, @@ -43052,7 +43822,7 @@ pub mod api { runtime_types::polkadot_parachain::primitives::ValidationCodeHash, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct CandidateReceipt<_0> { pub descriptor: @@ -43060,7 +43830,7 @@ pub mod api { pub commitments_hash: _0, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct CommittedCandidateReceipt<_0> { pub descriptor: @@ -43071,14 +43841,14 @@ pub mod api { >, } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct CoreIndex(pub ::core::primitive::u32); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum CoreOccupied { #[codec(index = 0)] @@ -43087,7 +43857,7 @@ pub mod api { Parachain, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct DisputeState<_0> { pub validators_for: ::subxt::bitvec::vec::BitVec< @@ -43102,12 +43872,12 @@ pub mod api { pub concluded_at: ::core::option::Option<_0>, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum DisputeStatement { # [codec (index = 0)] Valid (runtime_types :: polkadot_primitives :: v2 :: ValidDisputeStatementKind ,) , # [codec (index = 1)] Invalid (runtime_types :: polkadot_primitives :: v2 :: InvalidDisputeStatementKind ,) , } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct DisputeStatementSet { pub candidate_hash: @@ -43120,14 +43890,14 @@ pub mod api { )>, } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct GroupIndex(pub ::core::primitive::u32); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct InherentData<_0> { pub bitfields: ::std::vec::Vec< @@ -43147,28 +43917,28 @@ pub mod api { pub parent_header: _0, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum InvalidDisputeStatementKind { #[codec(index = 0)] Explicit, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct ParathreadClaim( pub runtime_types::polkadot_parachain::primitives::Id, pub runtime_types::polkadot_primitives::v2::collator_app::Public, ); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct ParathreadEntry { pub claim: runtime_types::polkadot_primitives::v2::ParathreadClaim, pub retries: ::core::primitive::u32, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct PvfCheckStatement { pub accept: ::core::primitive::bool, @@ -43179,7 +43949,7 @@ pub mod api { runtime_types::polkadot_primitives::v2::ValidatorIndex, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct ScrapedOnChainVotes<_0> { pub session: ::core::primitive::u32, @@ -43195,7 +43965,7 @@ pub mod api { >, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct SessionInfo { pub active_validator_indices: ::std::vec::Vec< @@ -43225,7 +43995,7 @@ pub mod api { pub needed_approvals: ::core::primitive::u32, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum UpgradeGoAhead { #[codec(index = 0)] @@ -43234,14 +44004,14 @@ pub mod api { GoAhead, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum UpgradeRestriction { #[codec(index = 0)] Present, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum ValidDisputeStatementKind { #[codec(index = 0)] @@ -43254,14 +44024,14 @@ pub mod api { ApprovalChecking, } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct ValidatorIndex(pub ::core::primitive::u32); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum ValidityAttestation { #[codec(index = 1)] @@ -43277,13 +44047,13 @@ pub mod api { } pub mod polkadot_runtime { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum Call { # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Call ,) , # [codec (index = 1)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Call ,) , # [codec (index = 10)] Preimage (runtime_types :: pallet_preimage :: pallet :: Call ,) , # [codec (index = 2)] Babe (runtime_types :: pallet_babe :: pallet :: Call ,) , # [codec (index = 3)] Timestamp (runtime_types :: pallet_timestamp :: pallet :: Call ,) , # [codec (index = 4)] Indices (runtime_types :: pallet_indices :: pallet :: Call ,) , # [codec (index = 5)] Balances (runtime_types :: pallet_balances :: pallet :: Call ,) , # [codec (index = 6)] Authorship (runtime_types :: pallet_authorship :: pallet :: Call ,) , # [codec (index = 7)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Call ,) , # [codec (index = 9)] Session (runtime_types :: pallet_session :: pallet :: Call ,) , # [codec (index = 11)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Call ,) , # [codec (index = 12)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Call ,) , # [codec (index = 14)] Democracy (runtime_types :: pallet_democracy :: pallet :: Call ,) , # [codec (index = 15)] Council (runtime_types :: pallet_collective :: pallet :: Call ,) , # [codec (index = 16)] TechnicalCommittee (runtime_types :: pallet_collective :: pallet :: Call ,) , # [codec (index = 17)] PhragmenElection (runtime_types :: pallet_elections_phragmen :: pallet :: Call ,) , # [codec (index = 18)] TechnicalMembership (runtime_types :: pallet_membership :: pallet :: Call ,) , # [codec (index = 19)] Treasury (runtime_types :: pallet_treasury :: pallet :: Call ,) , # [codec (index = 24)] Claims (runtime_types :: polkadot_runtime_common :: claims :: pallet :: Call ,) , # [codec (index = 25)] Vesting (runtime_types :: pallet_vesting :: pallet :: Call ,) , # [codec (index = 26)] Utility (runtime_types :: pallet_utility :: pallet :: Call ,) , # [codec (index = 28)] Identity (runtime_types :: pallet_identity :: pallet :: Call ,) , # [codec (index = 29)] Proxy (runtime_types :: pallet_proxy :: pallet :: Call ,) , # [codec (index = 30)] Multisig (runtime_types :: pallet_multisig :: pallet :: Call ,) , # [codec (index = 34)] Bounties (runtime_types :: pallet_bounties :: pallet :: Call ,) , # [codec (index = 38)] ChildBounties (runtime_types :: pallet_child_bounties :: pallet :: Call ,) , # [codec (index = 35)] Tips (runtime_types :: pallet_tips :: pallet :: Call ,) , # [codec (index = 36)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Call ,) , # [codec (index = 37)] BagsList (runtime_types :: pallet_bags_list :: pallet :: Call ,) , # [codec (index = 51)] Configuration (runtime_types :: polkadot_runtime_parachains :: configuration :: pallet :: Call ,) , # [codec (index = 52)] ParasShared (runtime_types :: polkadot_runtime_parachains :: shared :: pallet :: Call ,) , # [codec (index = 53)] ParaInclusion (runtime_types :: polkadot_runtime_parachains :: inclusion :: pallet :: Call ,) , # [codec (index = 54)] ParaInherent (runtime_types :: polkadot_runtime_parachains :: paras_inherent :: pallet :: Call ,) , # [codec (index = 56)] Paras (runtime_types :: polkadot_runtime_parachains :: paras :: pallet :: Call ,) , # [codec (index = 57)] Initializer (runtime_types :: polkadot_runtime_parachains :: initializer :: pallet :: Call ,) , # [codec (index = 58)] Dmp (runtime_types :: polkadot_runtime_parachains :: dmp :: pallet :: Call ,) , # [codec (index = 59)] Ump (runtime_types :: polkadot_runtime_parachains :: ump :: pallet :: Call ,) , # [codec (index = 60)] Hrmp (runtime_types :: polkadot_runtime_parachains :: hrmp :: pallet :: Call ,) , # [codec (index = 62)] ParasDisputes (runtime_types :: polkadot_runtime_parachains :: disputes :: pallet :: Call ,) , # [codec (index = 70)] Registrar (runtime_types :: polkadot_runtime_common :: paras_registrar :: pallet :: Call ,) , # [codec (index = 71)] Slots (runtime_types :: polkadot_runtime_common :: slots :: pallet :: Call ,) , # [codec (index = 72)] Auctions (runtime_types :: polkadot_runtime_common :: auctions :: pallet :: Call ,) , # [codec (index = 73)] Crowdloan (runtime_types :: polkadot_runtime_common :: crowdloan :: pallet :: Call ,) , # [codec (index = 99)] XcmPallet (runtime_types :: pallet_xcm :: pallet :: Call ,) , } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum Event { # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Event ,) , # [codec (index = 1)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Event ,) , # [codec (index = 10)] Preimage (runtime_types :: pallet_preimage :: pallet :: Event ,) , # [codec (index = 4)] Indices (runtime_types :: pallet_indices :: pallet :: Event ,) , # [codec (index = 5)] Balances (runtime_types :: pallet_balances :: pallet :: Event ,) , # [codec (index = 7)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Event ,) , # [codec (index = 8)] Offences (runtime_types :: pallet_offences :: pallet :: Event ,) , # [codec (index = 9)] Session (runtime_types :: pallet_session :: pallet :: Event ,) , # [codec (index = 11)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Event ,) , # [codec (index = 12)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Event ,) , # [codec (index = 14)] Democracy (runtime_types :: pallet_democracy :: pallet :: Event ,) , # [codec (index = 15)] Council (runtime_types :: pallet_collective :: pallet :: Event ,) , # [codec (index = 16)] TechnicalCommittee (runtime_types :: pallet_collective :: pallet :: Event ,) , # [codec (index = 17)] PhragmenElection (runtime_types :: pallet_elections_phragmen :: pallet :: Event ,) , # [codec (index = 18)] TechnicalMembership (runtime_types :: pallet_membership :: pallet :: Event ,) , # [codec (index = 19)] Treasury (runtime_types :: pallet_treasury :: pallet :: Event ,) , # [codec (index = 24)] Claims (runtime_types :: polkadot_runtime_common :: claims :: pallet :: Event ,) , # [codec (index = 25)] Vesting (runtime_types :: pallet_vesting :: pallet :: Event ,) , # [codec (index = 26)] Utility (runtime_types :: pallet_utility :: pallet :: Event ,) , # [codec (index = 28)] Identity (runtime_types :: pallet_identity :: pallet :: Event ,) , # [codec (index = 29)] Proxy (runtime_types :: pallet_proxy :: pallet :: Event ,) , # [codec (index = 30)] Multisig (runtime_types :: pallet_multisig :: pallet :: Event ,) , # [codec (index = 34)] Bounties (runtime_types :: pallet_bounties :: pallet :: Event ,) , # [codec (index = 38)] ChildBounties (runtime_types :: pallet_child_bounties :: pallet :: Event ,) , # [codec (index = 35)] Tips (runtime_types :: pallet_tips :: pallet :: Event ,) , # [codec (index = 36)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Event ,) , # [codec (index = 37)] BagsList (runtime_types :: pallet_bags_list :: pallet :: Event ,) , # [codec (index = 53)] ParaInclusion (runtime_types :: polkadot_runtime_parachains :: inclusion :: pallet :: Event ,) , # [codec (index = 56)] Paras (runtime_types :: polkadot_runtime_parachains :: paras :: pallet :: Event ,) , # [codec (index = 59)] Ump (runtime_types :: polkadot_runtime_parachains :: ump :: pallet :: Event ,) , # [codec (index = 60)] Hrmp (runtime_types :: polkadot_runtime_parachains :: hrmp :: pallet :: Event ,) , # [codec (index = 62)] ParasDisputes (runtime_types :: polkadot_runtime_parachains :: disputes :: pallet :: Event ,) , # [codec (index = 70)] Registrar (runtime_types :: polkadot_runtime_common :: paras_registrar :: pallet :: Event ,) , # [codec (index = 71)] Slots (runtime_types :: polkadot_runtime_common :: slots :: pallet :: Event ,) , # [codec (index = 72)] Auctions (runtime_types :: polkadot_runtime_common :: auctions :: pallet :: Event ,) , # [codec (index = 73)] Crowdloan (runtime_types :: polkadot_runtime_common :: crowdloan :: pallet :: Event ,) , # [codec (index = 99)] XcmPallet (runtime_types :: pallet_xcm :: pallet :: Event ,) , } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct NposCompactSolution16 { pub votes1: ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u16)>, @@ -43408,7 +44178,7 @@ pub mod api { ::core::primitive::u16, )>, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum OriginCaller { #[codec(index = 0)] system( @@ -43437,7 +44207,7 @@ pub mod api { #[codec(index = 5)] Void(runtime_types::sp_core::Void), } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum ProxyType { #[codec(index = 0)] Any, @@ -43454,9 +44224,9 @@ pub mod api { #[codec(index = 7)] Auction, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Runtime; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct SessionKeys { pub grandpa: runtime_types::sp_finality_grandpa::app::Public, pub babe: runtime_types::sp_consensus_babe::app::Public, @@ -43477,7 +44247,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -43528,7 +44298,7 @@ pub mod api { cancel_auction, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -43554,7 +44324,7 @@ pub mod api { AlreadyLeasedOut, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -43614,12 +44384,12 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { # [codec (index = 0)] # [doc = "Make a claim to collect your DOTs."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "Unsigned Validation:"] # [doc = "A call to claim is deemed valid if the signature provided matches"] # [doc = "the expected signed message of:"] # [doc = ""] # [doc = "> Ethereum Signed Message:"] # [doc = "> (configured prefix string)(address)"] # [doc = ""] # [doc = "and `address` matches the `dest` account."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `dest`: The destination account to payout the claim."] # [doc = "- `ethereum_signature`: The signature of an ethereum signed message"] # [doc = " matching the format described above."] # [doc = ""] # [doc = ""] # [doc = "The weight of this call is invariant over the input parameters."] # [doc = "Weight includes logic to validate unsigned `claim` call."] # [doc = ""] # [doc = "Total Complexity: O(1)"] # [doc = ""] claim { dest : :: subxt :: sp_core :: crypto :: AccountId32 , ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature , } , # [codec (index = 1)] # [doc = "Mint a new claim to collect DOTs."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `who`: The Ethereum address allowed to collect this claim."] # [doc = "- `value`: The number of DOTs that will be claimed."] # [doc = "- `vesting_schedule`: An optional vesting schedule for these DOTs."] # [doc = ""] # [doc = ""] # [doc = "The weight of this call is invariant over the input parameters."] # [doc = "We assume worst case that both vesting and statement is being inserted."] # [doc = ""] # [doc = "Total Complexity: O(1)"] # [doc = ""] mint_claim { who : runtime_types :: polkadot_runtime_common :: claims :: EthereumAddress , value : :: core :: primitive :: u128 , vesting_schedule : :: core :: option :: Option < (:: core :: primitive :: u128 , :: core :: primitive :: u128 , :: core :: primitive :: u32 ,) > , statement : :: core :: option :: Option < runtime_types :: polkadot_runtime_common :: claims :: StatementKind > , } , # [codec (index = 2)] # [doc = "Make a claim to collect your DOTs by signing a statement."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "Unsigned Validation:"] # [doc = "A call to `claim_attest` is deemed valid if the signature provided matches"] # [doc = "the expected signed message of:"] # [doc = ""] # [doc = "> Ethereum Signed Message:"] # [doc = "> (configured prefix string)(address)(statement)"] # [doc = ""] # [doc = "and `address` matches the `dest` account; the `statement` must match that which is"] # [doc = "expected according to your purchase arrangement."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `dest`: The destination account to payout the claim."] # [doc = "- `ethereum_signature`: The signature of an ethereum signed message"] # [doc = " matching the format described above."] # [doc = "- `statement`: The identity of the statement which is being attested to in the signature."] # [doc = ""] # [doc = ""] # [doc = "The weight of this call is invariant over the input parameters."] # [doc = "Weight includes logic to validate unsigned `claim_attest` call."] # [doc = ""] # [doc = "Total Complexity: O(1)"] # [doc = ""] claim_attest { dest : :: subxt :: sp_core :: crypto :: AccountId32 , ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature , statement : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 3)] # [doc = "Attest to a statement, needed to finalize the claims process."] # [doc = ""] # [doc = "WARNING: Insecure unless your chain includes `PrevalidateAttests` as a `SignedExtension`."] # [doc = ""] # [doc = "Unsigned Validation:"] # [doc = "A call to attest is deemed valid if the sender has a `Preclaim` registered"] # [doc = "and provides a `statement` which is expected for the account."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `statement`: The identity of the statement which is being attested to in the signature."] # [doc = ""] # [doc = ""] # [doc = "The weight of this call is invariant over the input parameters."] # [doc = "Weight includes logic to do pre-validation on `attest` call."] # [doc = ""] # [doc = "Total Complexity: O(1)"] # [doc = ""] attest { statement : :: std :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 4)] move_claim { old : runtime_types :: polkadot_runtime_common :: claims :: EthereumAddress , new : runtime_types :: polkadot_runtime_common :: claims :: EthereumAddress , maybe_preclaim : :: core :: option :: Option < :: subxt :: sp_core :: crypto :: AccountId32 > , } , } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -43643,25 +44413,25 @@ pub mod api { VestedBalanceExists, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { # [codec (index = 0)] # [doc = "Someone claimed some DOTs. `[who, ethereum_address, amount]`"] Claimed (:: subxt :: sp_core :: crypto :: AccountId32 , runtime_types :: polkadot_runtime_common :: claims :: EthereumAddress , :: core :: primitive :: u128 ,) , } } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct EcdsaSignature(pub [::core::primitive::u8; 65usize]); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct EthereumAddress(pub [::core::primitive::u8; 20usize]); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct PrevalidateAttests; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum StatementKind { #[codec(index = 0)] @@ -43675,7 +44445,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -43795,7 +44565,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -43869,7 +44639,7 @@ pub mod api { NoLeasePeriod, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -43928,11 +44698,11 @@ pub mod api { } } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct FundInfo < _0 , _1 , _2 , _3 > { pub depositor : _0 , pub verifier : :: core :: option :: Option < runtime_types :: sp_runtime :: MultiSigner > , pub deposit : _1 , pub raised : _1 , pub end : _2 , pub cap : _1 , pub last_contribution : runtime_types :: polkadot_runtime_common :: crowdloan :: LastContribution < _2 > , pub first_period : _2 , pub last_period : _2 , pub fund_index : _2 , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _3 > } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum LastContribution<_0> { #[codec(index = 0)] @@ -43948,12 +44718,12 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { # [codec (index = 0)] # [doc = "Register head data and validation code for a reserved Para Id."] # [doc = ""] # [doc = "## Arguments"] # [doc = "- `origin`: Must be called by a `Signed` origin."] # [doc = "- `id`: The para ID. Must be owned/managed by the `origin` signing account."] # [doc = "- `genesis_head`: The genesis head data of the parachain/thread."] # [doc = "- `validation_code`: The initial validation code of the parachain/thread."] # [doc = ""] # [doc = "## Deposits/Fees"] # [doc = "The origin signed account must reserve a corresponding deposit for the registration. Anything already"] # [doc = "reserved previously for this para ID is accounted for."] # [doc = ""] # [doc = "## Events"] # [doc = "The `Registered` event is emitted in case of success."] register { id : runtime_types :: polkadot_parachain :: primitives :: Id , genesis_head : runtime_types :: polkadot_parachain :: primitives :: HeadData , validation_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode , } , # [codec (index = 1)] # [doc = "Force the registration of a Para Id on the relay chain."] # [doc = ""] # [doc = "This function must be called by a Root origin."] # [doc = ""] # [doc = "The deposit taken can be specified for this registration. Any `ParaId`"] # [doc = "can be registered, including sub-1000 IDs which are System Parachains."] force_register { who : :: subxt :: sp_core :: crypto :: AccountId32 , deposit : :: core :: primitive :: u128 , id : runtime_types :: polkadot_parachain :: primitives :: Id , genesis_head : runtime_types :: polkadot_parachain :: primitives :: HeadData , validation_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode , } , # [codec (index = 2)] # [doc = "Deregister a Para Id, freeing all data and returning any deposit."] # [doc = ""] # [doc = "The caller must be Root, the `para` owner, or the `para` itself. The para must be a parathread."] deregister { id : runtime_types :: polkadot_parachain :: primitives :: Id , } , # [codec (index = 3)] # [doc = "Swap a parachain with another parachain or parathread."] # [doc = ""] # [doc = "The origin must be Root, the `para` owner, or the `para` itself."] # [doc = ""] # [doc = "The swap will happen only if there is already an opposite swap pending. If there is not,"] # [doc = "the swap will be stored in the pending swaps map, ready for a later confirmatory swap."] # [doc = ""] # [doc = "The `ParaId`s remain mapped to the same head data and code so external code can rely on"] # [doc = "`ParaId` to be a long-term identifier of a notional \"parachain\". However, their"] # [doc = "scheduling info (i.e. whether they're a parathread or parachain), auction information"] # [doc = "and the auction deposit are switched."] swap { id : runtime_types :: polkadot_parachain :: primitives :: Id , other : runtime_types :: polkadot_parachain :: primitives :: Id , } , # [codec (index = 4)] # [doc = "Remove a manager lock from a para. This will allow the manager of a"] # [doc = "previously locked para to deregister or swap a para without using governance."] # [doc = ""] # [doc = "Can only be called by the Root origin."] force_remove_lock { para : runtime_types :: polkadot_parachain :: primitives :: Id , } , # [codec (index = 5)] # [doc = "Reserve a Para Id on the relay chain."] # [doc = ""] # [doc = "This function will reserve a new Para Id to be owned/managed by the origin account."] # [doc = "The origin account is able to register head data and validation code using `register` to create"] # [doc = "a parathread. Using the Slots pallet, a parathread can then be upgraded to get a parachain slot."] # [doc = ""] # [doc = "## Arguments"] # [doc = "- `origin`: Must be called by a `Signed` origin. Becomes the manager/owner of the new para ID."] # [doc = ""] # [doc = "## Deposits/Fees"] # [doc = "The origin must reserve a deposit of `ParaDeposit` for the registration."] # [doc = ""] # [doc = "## Events"] # [doc = "The `Reserved` event is emitted in case of success, which provides the ID reserved for use."] reserve , } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -44001,7 +44771,7 @@ pub mod api { CannotSwap, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -44019,7 +44789,7 @@ pub mod api { } } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct ParaInfo<_0, _1> { pub manager: _0, @@ -44032,7 +44802,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -44067,7 +44837,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -44078,7 +44848,7 @@ pub mod api { LeaseError, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -44110,8 +44880,8 @@ pub mod api { pub mod v1 { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, )] pub struct HostConfiguration<_0> { @@ -44161,7 +44931,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -44329,7 +45099,7 @@ pub mod api { set_bypass_consistency_check { new: ::core::primitive::bool }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -44338,7 +45108,7 @@ pub mod api { } } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct HostConfiguration<_0> { pub max_code_size: _0, @@ -44391,14 +45161,14 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] force_unfreeze, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -44424,13 +45194,13 @@ pub mod api { SingleSidedDispute, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { # [codec (index = 0)] # [doc = "A dispute has been initiated. \\[candidate hash, dispute location\\]"] DisputeInitiated (runtime_types :: polkadot_core_primitives :: CandidateHash , runtime_types :: polkadot_runtime_parachains :: disputes :: DisputeLocation ,) , # [codec (index = 1)] # [doc = "A dispute has concluded for or against a candidate."] # [doc = "`\\[para id, candidate hash, dispute result\\]`"] DisputeConcluded (runtime_types :: polkadot_core_primitives :: CandidateHash , runtime_types :: polkadot_runtime_parachains :: disputes :: DisputeResult ,) , # [codec (index = 2)] # [doc = "A dispute has timed out due to insufficient participation."] # [doc = "`\\[para id, candidate hash\\]`"] DisputeTimedOut (runtime_types :: polkadot_core_primitives :: CandidateHash ,) , # [codec (index = 3)] # [doc = "A dispute has concluded with supermajority against a candidate."] # [doc = "Block authors should no longer build on top of this head and should"] # [doc = "instead revert the block at the given height. This should be the"] # [doc = "number of the child of the last known valid block in the chain."] Revert (:: core :: primitive :: u32 ,) , } } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum DisputeLocation { #[codec(index = 0)] @@ -44439,7 +45209,7 @@ pub mod api { Remote, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum DisputeResult { #[codec(index = 0)] @@ -44453,7 +45223,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call {} } @@ -44463,12 +45233,12 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { # [codec (index = 0)] # [doc = "Initiate opening a channel from a parachain to a given recipient with given channel"] # [doc = "parameters."] # [doc = ""] # [doc = "- `proposed_max_capacity` - specifies how many messages can be in the channel at once."] # [doc = "- `proposed_max_message_size` - specifies the maximum size of the messages."] # [doc = ""] # [doc = "These numbers are a subject to the relay-chain configuration limits."] # [doc = ""] # [doc = "The channel can be opened only after the recipient confirms it and only on a session"] # [doc = "change."] hrmp_init_open_channel { recipient : runtime_types :: polkadot_parachain :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Accept a pending open channel request from the given sender."] # [doc = ""] # [doc = "The channel will be opened only on the next session boundary."] hrmp_accept_open_channel { sender : runtime_types :: polkadot_parachain :: primitives :: Id , } , # [codec (index = 2)] # [doc = "Initiate unilateral closing of a channel. The origin must be either the sender or the"] # [doc = "recipient in the channel being closed."] # [doc = ""] # [doc = "The closure can only happen on a session change."] hrmp_close_channel { channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId , } , # [codec (index = 3)] # [doc = "This extrinsic triggers the cleanup of all the HRMP storage items that"] # [doc = "a para may have. Normally this happens once per session, but this allows"] # [doc = "you to trigger the cleanup immediately for a specific parachain."] # [doc = ""] # [doc = "Origin must be Root."] # [doc = ""] # [doc = "Number of inbound and outbound channels for `para` must be provided as witness data of weighing."] force_clean_hrmp { para : runtime_types :: polkadot_parachain :: primitives :: Id , inbound : :: core :: primitive :: u32 , outbound : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Force process HRMP open channel requests."] # [doc = ""] # [doc = "If there are pending HRMP open channel requests, you can use this"] # [doc = "function process all of those requests immediately."] # [doc = ""] # [doc = "Total number of opening channels must be provided as witness data of weighing."] force_process_hrmp_open { channels : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Force process HRMP close channel requests."] # [doc = ""] # [doc = "If there are pending HRMP close channel requests, you can use this"] # [doc = "function process all of those requests immediately."] # [doc = ""] # [doc = "Total number of closing channels must be provided as witness data of weighing."] force_process_hrmp_close { channels : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "This cancels a pending open channel request. It can be canceled by either of the sender"] # [doc = "or the recipient for that request. The origin must be either of those."] # [doc = ""] # [doc = "The cancellation happens immediately. It is not possible to cancel the request if it is"] # [doc = "already accepted."] # [doc = ""] # [doc = "Total number of open requests (i.e. `HrmpOpenChannelRequestsList`) must be provided as"] # [doc = "witness data."] hrmp_cancel_open_request { channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId , open_requests : :: core :: primitive :: u32 , } , } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -44530,7 +45300,7 @@ pub mod api { WrongWitness, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -44564,7 +45334,7 @@ pub mod api { } } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct HrmpChannel { pub max_capacity: ::core::primitive::u32, @@ -44577,7 +45347,7 @@ pub mod api { pub recipient_deposit: ::core::primitive::u128, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct HrmpOpenChannelRequest { pub confirmed: ::core::primitive::bool, @@ -44593,11 +45363,11 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call {} #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -44692,7 +45462,7 @@ pub mod api { BitfieldReferencesFreedCore, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -44727,7 +45497,7 @@ pub mod api { } } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct AvailabilityBitfieldRecord<_0> { pub bitfield: @@ -44735,7 +45505,7 @@ pub mod api { pub submitted_at: _0, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct CandidatePendingAvailability<_0, _1> { pub core: runtime_types::polkadot_primitives::v2::CoreIndex, @@ -44760,7 +45530,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -44771,7 +45541,7 @@ pub mod api { } } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct BufferedSessionChange { pub validators: ::std::vec::Vec< @@ -44788,7 +45558,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Origin { #[codec(index = 0)] @@ -44801,12 +45571,12 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { # [codec (index = 0)] # [doc = "Set the storage for the parachain validation code immediately."] force_set_current_code { para : runtime_types :: polkadot_parachain :: primitives :: Id , new_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode , } , # [codec (index = 1)] # [doc = "Set the storage for the current parachain head data immediately."] force_set_current_head { para : runtime_types :: polkadot_parachain :: primitives :: Id , new_head : runtime_types :: polkadot_parachain :: primitives :: HeadData , } , # [codec (index = 2)] # [doc = "Schedule an upgrade as if it was scheduled in the given relay parent block."] force_schedule_code_upgrade { para : runtime_types :: polkadot_parachain :: primitives :: Id , new_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode , relay_parent_number : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Note a new block head for para within the context of the current block."] force_note_new_head { para : runtime_types :: polkadot_parachain :: primitives :: Id , new_head : runtime_types :: polkadot_parachain :: primitives :: HeadData , } , # [codec (index = 4)] # [doc = "Put a parachain directly into the next session's action queue."] # [doc = "We can't queue it any sooner than this without going into the"] # [doc = "initializer..."] force_queue_action { para : runtime_types :: polkadot_parachain :: primitives :: Id , } , # [codec (index = 5)] # [doc = "Adds the validation code to the storage."] # [doc = ""] # [doc = "The code will not be added if it is already present. Additionally, if PVF pre-checking"] # [doc = "is running for that code, it will be instantly accepted."] # [doc = ""] # [doc = "Otherwise, the code will be added into the storage. Note that the code will be added"] # [doc = "into storage with reference count 0. This is to account the fact that there are no users"] # [doc = "for this code yet. The caller will have to make sure that this code eventually gets"] # [doc = "used by some parachain or removed from the storage to avoid storage leaks. For the latter"] # [doc = "prefer to use the `poke_unused_validation_code` dispatchable to raw storage manipulation."] # [doc = ""] # [doc = "This function is mainly meant to be used for upgrading parachains that do not follow"] # [doc = "the go-ahead signal while the PVF pre-checking feature is enabled."] add_trusted_validation_code { validation_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode , } , # [codec (index = 6)] # [doc = "Remove the validation code from the storage iff the reference count is 0."] # [doc = ""] # [doc = "This is better than removing the storage directly, because it will not remove the code"] # [doc = "that was suddenly got used by some parachain while this dispatchable was pending"] # [doc = "dispatching."] poke_unused_validation_code { validation_code_hash : runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash , } , # [codec (index = 7)] # [doc = "Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and"] # [doc = "enacts the results if that was the last vote before achieving the supermajority."] include_pvf_check_statement { stmt : runtime_types :: polkadot_primitives :: v2 :: PvfCheckStatement , signature : runtime_types :: polkadot_primitives :: v2 :: validator_app :: Signature , } , } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -44848,13 +45618,13 @@ pub mod api { PvfCheckDisabled, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { # [codec (index = 0)] # [doc = "Current code has been updated for a Para. `para_id`"] CurrentCodeUpdated (runtime_types :: polkadot_parachain :: primitives :: Id ,) , # [codec (index = 1)] # [doc = "Current head has been updated for a Para. `para_id`"] CurrentHeadUpdated (runtime_types :: polkadot_parachain :: primitives :: Id ,) , # [codec (index = 2)] # [doc = "A code upgrade has been scheduled for a Para. `para_id`"] CodeUpgradeScheduled (runtime_types :: polkadot_parachain :: primitives :: Id ,) , # [codec (index = 3)] # [doc = "A new head has been noted for a Para. `para_id`"] NewHeadNoted (runtime_types :: polkadot_parachain :: primitives :: Id ,) , # [codec (index = 4)] # [doc = "A para has been queued to execute pending actions. `para_id`"] ActionQueued (runtime_types :: polkadot_parachain :: primitives :: Id , :: core :: primitive :: u32 ,) , # [codec (index = 5)] # [doc = "The given para either initiated or subscribed to a PVF check for the given validation"] # [doc = "code. `code_hash` `para_id`"] PvfCheckStarted (runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash , runtime_types :: polkadot_parachain :: primitives :: Id ,) , # [codec (index = 6)] # [doc = "The given validation code was accepted by the PVF pre-checking vote."] # [doc = "`code_hash` `para_id`"] PvfCheckAccepted (runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash , runtime_types :: polkadot_parachain :: primitives :: Id ,) , # [codec (index = 7)] # [doc = "The given validation code was rejected by the PVF pre-checking vote."] # [doc = "`code_hash` `para_id`"] PvfCheckRejected (runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash , runtime_types :: polkadot_parachain :: primitives :: Id ,) , } } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct ParaGenesisArgs { pub genesis_head: @@ -44864,7 +45634,7 @@ pub mod api { pub parachain: ::core::primitive::bool, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum ParaLifecycle { #[codec(index = 0)] @@ -44883,11 +45653,11 @@ pub mod api { OffboardingParachain, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct ParaPastCodeMeta < _0 > { pub upgrade_times : :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: paras :: ReplacementTimes < _0 > > , pub last_pruned : :: core :: option :: Option < _0 > , } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct PvfCheckActiveVoteState<_0> { pub votes_accept: ::subxt::bitvec::vec::BitVec< @@ -44907,7 +45677,7 @@ pub mod api { >, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum PvfCheckCause<_0> { #[codec(index = 0)] @@ -44919,7 +45689,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct ReplacementTimes<_0> { pub expected_at: _0, @@ -44931,7 +45701,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -44946,7 +45716,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -44974,7 +45744,7 @@ pub mod api { pub mod scheduler { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum AssignmentKind { #[codec(index = 0)] @@ -44986,15 +45756,15 @@ pub mod api { ), } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct CoreAssignment { pub core : runtime_types :: polkadot_primitives :: v2 :: CoreIndex , pub para_id : runtime_types :: polkadot_parachain :: primitives :: Id , pub kind : runtime_types :: polkadot_runtime_parachains :: scheduler :: AssignmentKind , pub group_idx : runtime_types :: polkadot_primitives :: v2 :: GroupIndex , } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct ParathreadClaimQueue { pub queue : :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: scheduler :: QueuedParathread > , pub next_core_offset : :: core :: primitive :: u32 , } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct QueuedParathread { pub claim: runtime_types::polkadot_primitives::v2::ParathreadEntry, @@ -45006,7 +45776,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call {} } @@ -45016,7 +45786,7 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Call { #[codec(index = 0)] @@ -45038,7 +45808,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -45049,7 +45819,7 @@ pub mod api { WeightOverLimit, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Event { #[codec(index = 0)] @@ -45111,7 +45881,7 @@ pub mod api { } pub mod primitive_types { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct H256(pub [::core::primitive::u8; 32usize]); } pub mod sp_arithmetic { @@ -45119,41 +45889,41 @@ pub mod api { pub mod fixed_point { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct FixedU128(pub ::core::primitive::u128); } pub mod per_things { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct PerU16(pub ::core::primitive::u16); #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct Perbill(pub ::core::primitive::u32); #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct Percent(pub ::core::primitive::u8); #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct Permill(pub ::core::primitive::u32); } @@ -45163,7 +45933,7 @@ pub mod api { pub mod app { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Public(pub runtime_types::sp_core::sr25519::Public); } @@ -45173,14 +45943,14 @@ pub mod api { pub mod app { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Public(pub runtime_types::sp_core::sr25519::Public); } pub mod digests { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum NextConfigDescriptor { #[codec(index = 1)] @@ -45190,7 +45960,7 @@ pub mod api { }, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum AllowedSlots { #[codec(index = 0)] PrimarySlots, @@ -45199,7 +45969,7 @@ pub mod api { #[codec(index = 2)] PrimaryAndSecondaryVRFSlots, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct BabeEpochConfiguration { pub c: (::core::primitive::u64, ::core::primitive::u64), pub allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, @@ -45207,7 +45977,7 @@ pub mod api { } pub mod sp_consensus_slots { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct EquivocationProof<_0, _1> { pub offender: _1, pub slot: runtime_types::sp_consensus_slots::Slot, @@ -45215,10 +45985,10 @@ pub mod api { pub second_header: _0, } #[derive( - :: subxt :: codec :: Encode, + :: subxt :: codec :: CompactAs, :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, Debug, - :: subxt :: codec :: CompactAs, )] pub struct Slot(pub ::core::primitive::u64); } @@ -45227,44 +45997,44 @@ pub mod api { pub mod crypto { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct AccountId32(pub [::core::primitive::u8; 32usize]); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); } pub mod ecdsa { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Public(pub [::core::primitive::u8; 33usize]); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Signature(pub [::core::primitive::u8; 65usize]); } pub mod ed25519 { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Public(pub [::core::primitive::u8; 32usize]); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Signature(pub [::core::primitive::u8; 64usize]); } pub mod offchain { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct OpaqueMultiaddr(pub ::std::vec::Vec<::core::primitive::u8>); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct OpaqueNetworkState { pub peer_id: runtime_types::sp_core::OpaquePeerId, @@ -45276,17 +46046,17 @@ pub mod api { pub mod sr25519 { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Public(pub [::core::primitive::u8; 32usize]); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Signature(pub [::core::primitive::u8; 64usize]); } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct OpaquePeerId(pub ::std::vec::Vec<::core::primitive::u8>); - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum Void {} } pub mod sp_finality_grandpa { @@ -45294,15 +46064,15 @@ pub mod api { pub mod app { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Public(pub runtime_types::sp_core::ed25519::Public); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Signature(pub runtime_types::sp_core::ed25519::Signature); } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum Equivocation<_0, _1> { #[codec(index = 0)] Prevote( @@ -45321,7 +46091,7 @@ pub mod api { >, ), } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct EquivocationProof<_0, _1> { pub set_id: ::core::primitive::u64, pub equivocation: @@ -45330,13 +46100,13 @@ pub mod api { } pub mod sp_npos_elections { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ElectionScore { pub minimal_stake: ::core::primitive::u128, pub sum_stake: ::core::primitive::u128, pub sum_stake_squared: ::core::primitive::u128, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct Support<_0> { pub total: ::core::primitive::u128, pub voters: ::std::vec::Vec<(_0, ::core::primitive::u128)>, @@ -45349,7 +46119,7 @@ pub mod api { pub mod digest { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Digest { pub logs: ::std::vec::Vec< @@ -45357,7 +46127,7 @@ pub mod api { >, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum DigestItem { #[codec(index = 6)] @@ -45384,7 +46154,7 @@ pub mod api { pub mod era { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Era { #[codec(index = 0)] @@ -45904,7 +46674,7 @@ pub mod api { pub mod header { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Header<_0, _1> { pub parent_hash: ::subxt::sp_core::H256, @@ -45920,7 +46690,7 @@ pub mod api { pub mod unchecked_extrinsic { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct UncheckedExtrinsic<_0, _1, _2, _3>( pub ::std::vec::Vec<::core::primitive::u8>, @@ -45931,7 +46701,7 @@ pub mod api { pub mod multiaddress { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum MultiAddress<_0, _1> { #[codec(index = 0)] @@ -45949,11 +46719,11 @@ pub mod api { pub mod traits { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct BlakeTwo256; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum ArithmeticError { #[codec(index = 0)] Underflow, @@ -45962,7 +46732,7 @@ pub mod api { #[codec(index = 2)] DivisionByZero, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum DispatchError { #[codec(index = 0)] Other, @@ -45985,12 +46755,12 @@ pub mod api { #[codec(index = 9)] Transactional(runtime_types::sp_runtime::TransactionalError), } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct ModuleError { pub index: ::core::primitive::u8, pub error: [::core::primitive::u8; 4usize], } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum MultiSignature { #[codec(index = 0)] Ed25519(runtime_types::sp_core::ed25519::Signature), @@ -45999,7 +46769,7 @@ pub mod api { #[codec(index = 2)] Ecdsa(runtime_types::sp_core::ecdsa::Signature), } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum MultiSigner { #[codec(index = 0)] Ed25519(runtime_types::sp_core::ed25519::Public), @@ -46008,7 +46778,7 @@ pub mod api { #[codec(index = 2)] Ecdsa(runtime_types::sp_core::ecdsa::Public), } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum TokenError { #[codec(index = 0)] NoFunds, @@ -46025,7 +46795,7 @@ pub mod api { #[codec(index = 6)] Unsupported, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum TransactionalError { #[codec(index = 0)] LimitReached, @@ -46035,7 +46805,7 @@ pub mod api { } pub mod sp_session { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct MembershipProof { pub session: ::core::primitive::u32, pub trie_nodes: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, @@ -46047,7 +46817,7 @@ pub mod api { pub mod offence { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct OffenceDetails<_0, _1> { pub offender: _1, @@ -46057,7 +46827,7 @@ pub mod api { } pub mod sp_version { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub struct RuntimeVersion { pub spec_name: ::std::string::String, pub impl_name: ::std::string::String, @@ -46077,7 +46847,7 @@ pub mod api { pub mod double_encoded { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct DoubleEncoded { pub encoded: ::std::vec::Vec<::core::primitive::u8>, @@ -46088,7 +46858,7 @@ pub mod api { pub mod junction { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum BodyId { #[codec(index = 0)] @@ -46107,7 +46877,7 @@ pub mod api { Judicial, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum BodyPart { #[codec(index = 0)] @@ -46140,7 +46910,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Junction { #[codec(index = 0)] @@ -46178,7 +46948,7 @@ pub mod api { }, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum NetworkId { #[codec(index = 0)] @@ -46194,7 +46964,7 @@ pub mod api { pub mod multi_asset { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum MultiAsset { #[codec(index = 0)] @@ -46248,7 +47018,7 @@ pub mod api { pub mod multi_location { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum MultiLocation { #[codec(index = 0)] @@ -46316,7 +47086,7 @@ pub mod api { pub mod order { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Order { #[codec(index = 0)] @@ -46385,7 +47155,7 @@ pub mod api { } } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum OriginKind { #[codec(index = 0)] @@ -46398,7 +47168,7 @@ pub mod api { Xcm, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Response { #[codec(index = 0)] @@ -46407,7 +47177,7 @@ pub mod api { ), } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Xcm { #[codec(index = 0)] @@ -46493,7 +47263,7 @@ pub mod api { pub mod junction { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Junction { #[codec(index = 0)] @@ -46532,7 +47302,7 @@ pub mod api { pub mod multiasset { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum AssetId { #[codec(index = 0)] @@ -46541,7 +47311,7 @@ pub mod api { Abstract(::std::vec::Vec<::core::primitive::u8>), } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum AssetInstance { #[codec(index = 0)] @@ -46560,7 +47330,7 @@ pub mod api { Blob(::std::vec::Vec<::core::primitive::u8>), } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Fungibility { #[codec(index = 0)] @@ -46569,14 +47339,14 @@ pub mod api { NonFungible(runtime_types::xcm::v1::multiasset::AssetInstance), } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct MultiAsset { pub id: runtime_types::xcm::v1::multiasset::AssetId, pub fun: runtime_types::xcm::v1::multiasset::Fungibility, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum MultiAssetFilter { #[codec(index = 0)] @@ -46585,7 +47355,7 @@ pub mod api { Wild(runtime_types::xcm::v1::multiasset::WildMultiAsset), } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct MultiAssets( pub ::std::vec::Vec< @@ -46593,7 +47363,7 @@ pub mod api { >, ); #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum WildFungibility { #[codec(index = 0)] @@ -46602,7 +47372,7 @@ pub mod api { NonFungible, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum WildMultiAsset { #[codec(index = 0)] @@ -46617,7 +47387,7 @@ pub mod api { pub mod multilocation { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Junctions { #[codec(index = 0)] @@ -46682,7 +47452,7 @@ pub mod api { ), } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct MultiLocation { pub parents: ::core::primitive::u8, @@ -46692,7 +47462,7 @@ pub mod api { pub mod order { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Order { #[codec(index = 0)] @@ -46749,7 +47519,7 @@ pub mod api { } } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Response { #[codec(index = 0)] @@ -46758,7 +47528,7 @@ pub mod api { Version(::core::primitive::u32), } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Xcm { #[codec(index = 0)] @@ -46843,7 +47613,7 @@ pub mod api { pub mod traits { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Error { #[codec(index = 0)] @@ -46900,7 +47670,7 @@ pub mod api { WeightNotComputable, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Outcome { #[codec(index = 0)] @@ -46915,7 +47685,7 @@ pub mod api { } } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Instruction { #[codec(index = 0)] @@ -47061,7 +47831,7 @@ pub mod api { UnsubscribeVersion, } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum Response { #[codec(index = 0)] @@ -47079,7 +47849,7 @@ pub mod api { Version(::core::primitive::u32), } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub enum WeightLimit { #[codec(index = 0)] @@ -47088,25 +47858,25 @@ pub mod api { Limited(#[codec(compact)] ::core::primitive::u64), } #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug, )] pub struct Xcm(pub ::std::vec::Vec); } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum VersionedMultiAssets { #[codec(index = 0)] V0(::std::vec::Vec), #[codec(index = 1)] V1(runtime_types::xcm::v1::multiasset::MultiAssets), } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum VersionedMultiLocation { #[codec(index = 0)] V0(runtime_types::xcm::v0::multi_location::MultiLocation), #[codec(index = 1)] V1(runtime_types::xcm::v1::multilocation::MultiLocation), } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum VersionedResponse { #[codec(index = 0)] V0(runtime_types::xcm::v0::Response), @@ -47115,7 +47885,7 @@ pub mod api { #[codec(index = 2)] V2(runtime_types::xcm::v2::Response), } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + #[derive(:: subxt :: codec :: Decode, :: subxt :: codec :: Encode, Debug)] pub enum VersionedXcm { #[codec(index = 0)] V0(runtime_types::xcm::v0::Xcm), @@ -47162,7 +47932,9 @@ pub mod api { X: ::subxt::extrinsic::ExtrinsicParams, { pub fn validate_metadata(&'a self) -> Result<(), ::subxt::MetadataError> { - if self.client.metadata().metadata_hash(&PALLETS) + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + if metadata.metadata_hash(&PALLETS) != [ 222u8, 70u8, 96u8, 67u8, 220u8, 49u8, 147u8, 114u8, 199u8, 254u8, 88u8, 102u8, 188u8, 14u8, 180u8, 163u8, 55u8, 109u8, 43u8, 71u8, @@ -47204,7 +47976,7 @@ pub mod api { pub async fn at( &self, block_hash: T::Hash, - ) -> Result<::subxt::events::Events<'a, T, Event>, ::subxt::BasicError> { + ) -> Result<::subxt::events::Events, ::subxt::BasicError> { ::subxt::events::at::(self.client, block_hash).await } pub async fn subscribe( diff --git a/integration-tests/src/frame/balances.rs b/integration-tests/src/frame/balances.rs index b977eee427..a881d0b8a0 100644 --- a/integration-tests/src/frame/balances.rs +++ b/integration-tests/src/frame/balances.rs @@ -265,7 +265,9 @@ async fn transfer_implicit_subscription() { #[tokio::test] async fn constant_existential_deposit() { let cxt = test_context().await; - let balances_metadata = cxt.client().metadata().pallet("Balances").unwrap(); + let locked_metadata = cxt.client().metadata(); + let metadata = locked_metadata.read(); + let balances_metadata = metadata.pallet("Balances").unwrap(); let constant_metadata = balances_metadata.constant("ExistentialDeposit").unwrap(); let existential_deposit = u128::decode(&mut &constant_metadata.value[..]).unwrap(); assert_eq!(existential_deposit, 100_000_000_000_000); diff --git a/integration-tests/src/metadata/validation.rs b/integration-tests/src/metadata/validation.rs index fa8db37738..968ee13218 100644 --- a/integration-tests/src/metadata/validation.rs +++ b/integration-tests/src/metadata/validation.rs @@ -76,8 +76,9 @@ async fn full_metadata_check() { assert!(api.validate_metadata().is_ok()); // Modify the metadata. - let mut metadata: RuntimeMetadataV14 = - api.client.metadata().runtime_metadata().clone(); + let locked_client_metadata = api.client.metadata(); + let client_metadata = locked_client_metadata.read(); + let mut metadata: RuntimeMetadataV14 = client_metadata.runtime_metadata().clone(); metadata.pallets[0].name = "NewPallet".to_string(); let new_api = metadata_to_api(metadata, &cxt).await; @@ -99,8 +100,9 @@ async fn constants_check() { assert!(cxt.api.constants().balances().existential_deposit().is_ok()); // Modify the metadata. - let mut metadata: RuntimeMetadataV14 = - api.client.metadata().runtime_metadata().clone(); + let locked_client_metadata = api.client.metadata(); + let client_metadata = locked_client_metadata.read(); + let mut metadata: RuntimeMetadataV14 = client_metadata.runtime_metadata().clone(); let mut existential = metadata .pallets diff --git a/subxt/src/events/event_subscription.rs b/subxt/src/events/event_subscription.rs index a19d3f6867..733291d84a 100644 --- a/subxt/src/events/event_subscription.rs +++ b/subxt/src/events/event_subscription.rs @@ -165,7 +165,7 @@ pub struct EventSubscription<'a, Sub, T: Config, Evs: 'static> { #[derivative(Debug = "ignore")] at: Option< std::pin::Pin< - Box, BasicError>> + Send + 'a>, + Box, BasicError>> + Send + 'a>, >, >, _event_type: std::marker::PhantomData, @@ -222,7 +222,7 @@ where Sub: Stream> + Unpin + 'a, E: Into, { - type Item = Result, BasicError>; + type Item = Result, BasicError>; fn poll_next( mut self: std::pin::Pin<&mut Self>, diff --git a/subxt/src/events/events_type.rs b/subxt/src/events/events_type.rs index 493856c3bb..57954e1a2d 100644 --- a/subxt/src/events/events_type.rs +++ b/subxt/src/events/events_type.rs @@ -32,11 +32,13 @@ use codec::{ Input, }; use derivative::Derivative; +use parking_lot::RwLock; use sp_core::{ storage::StorageKey, twox_128, Bytes, }; +use std::sync::Arc; /// Obtain events at some block hash. The generic parameter is what we /// will attempt to decode each event into if using [`Events::iter()`], @@ -50,7 +52,7 @@ use sp_core::{ pub async fn at( client: &'_ Client, block_hash: T::Hash, -) -> Result, BasicError> { +) -> Result, BasicError> { let mut event_bytes = client .rpc() .storage(&system_events_key(), Some(block_hash)) @@ -90,8 +92,8 @@ fn system_events_key() -> StorageKey { /// information needed to decode and iterate over them. #[derive(Derivative)] #[derivative(Debug(bound = ""))] -pub struct Events<'a, T: Config, Evs> { - metadata: &'a Metadata, +pub struct Events { + metadata: Arc>, block_hash: T::Hash, // Note; raw event bytes are prefixed with a Compact containing // the number of events to be decoded. We should have stripped that off @@ -101,7 +103,7 @@ pub struct Events<'a, T: Config, Evs> { _event_type: std::marker::PhantomData, } -impl<'a, T: Config, Evs: Decode> Events<'a, T, Evs> { +impl<'a, T: Config, Evs: Decode> Events { /// The number of events. pub fn len(&self) -> u32 { self.num_events @@ -192,7 +194,8 @@ impl<'a, T: Config, Evs: Decode> Events<'a, T, Evs> { if start_len == 0 || self.num_events == index { None } else { - match decode_raw_event_details::(self.metadata, index, cursor) { + match decode_raw_event_details::(self.metadata.clone(), index, cursor) + { Ok(raw_event) => { // Skip over decoded bytes in next iteration: pos += start_len - cursor.len(); @@ -235,7 +238,8 @@ impl<'a, T: Config, Evs: Decode> Events<'a, T, Evs> { if start_len == 0 || self.num_events == index { None } else { - match decode_raw_event_details::(self.metadata, index, cursor) { + match decode_raw_event_details::(self.metadata.clone(), index, cursor) + { Ok(raw_event) => { // Skip over decoded bytes in next iteration: pos += start_len - cursor.len(); @@ -331,7 +335,7 @@ impl RawEventDetails { // Attempt to dynamically decode a single event from our events input. fn decode_raw_event_details( - metadata: &Metadata, + metadata: Arc>, index: u32, input: &mut &[u8], ) -> Result { @@ -348,6 +352,7 @@ fn decode_raw_event_details( log::debug!("remaining input: {}", hex::encode(&input)); // Get metadata for the event: + let metadata = metadata.read(); let event_metadata = metadata.event(pallet_index, variant_index)?; log::debug!( "Decoding Event '{}::{}'", @@ -468,9 +473,9 @@ pub(crate) mod test_utils { /// Build an `Events` object for test purposes, based on the details provided, /// and with a default block hash. pub fn events( - metadata: &'_ Metadata, + metadata: Arc>, event_records: Vec>, - ) -> Events<'_, DefaultConfig, AllEvents> { + ) -> Events> { let num_events = event_records.len() as u32; let mut event_bytes = Vec::new(); for ev in event_records { @@ -482,10 +487,10 @@ pub(crate) mod test_utils { /// Much like [`events`], but takes pre-encoded events and event count, so that we can /// mess with the bytes in tests if we need to. pub fn events_raw( - metadata: &'_ Metadata, + metadata: Arc>, event_bytes: Vec, num_events: u32, - ) -> Events<'_, DefaultConfig, AllEvents> { + ) -> Events> { Events { block_hash: ::Hash::default(), event_bytes, @@ -520,12 +525,12 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = metadata::(); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode our events in the format we expect back from a node, and - // construst an Events object to iterate them: + // construct an Events object to iterate them: let events = events::( - &metadata, + metadata, vec![event_record(Phase::Finalization, Event::A(1))], ); @@ -550,12 +555,12 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = metadata::(); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: let events = events::( - &metadata, + metadata, vec![ event_record(Phase::Initialization, Event::A(1)), event_record(Phase::ApplyExtrinsic(123), Event::B(true)), @@ -596,7 +601,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = metadata::(); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode 2 events: let mut event_bytes = vec![]; @@ -610,7 +615,7 @@ mod tests { // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: let events = events_raw::( - &metadata, + metadata, event_bytes, 3, // 2 "good" events, and then it'll hit the naff bytes. ); @@ -648,13 +653,13 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = metadata::(); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: let event = Event::A(1); let events = events::( - &metadata, + metadata, vec![event_record(Phase::ApplyExtrinsic(123), event)], ); @@ -690,7 +695,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = metadata::(); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: @@ -699,7 +704,7 @@ mod tests { let event3 = Event::A(234); let events = events::( - &metadata, + metadata, vec![ event_record(Phase::Initialization, event1), event_record(Phase::ApplyExtrinsic(123), event2), @@ -759,7 +764,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = metadata::(); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode 2 events: let mut event_bytes = vec![]; @@ -773,7 +778,7 @@ mod tests { // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: let events = events_raw::( - &metadata, + metadata, event_bytes, 3, // 2 "good" events, and then it'll hit the naff bytes. ); @@ -826,12 +831,12 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = metadata::(); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: let events = events::( - &metadata, + metadata, vec![event_record(Phase::Finalization, Event::A(1))], ); @@ -881,12 +886,12 @@ mod tests { struct CompactWrapper(u64); // Create fake metadata that knows about our single event, above: - let metadata = metadata::(); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode our events in the format we expect back from a node, and // construct an Events object to iterate them: let events = events::( - &metadata, + metadata, vec![event_record( Phase::Finalization, Event::A(CompactWrapper(1)), @@ -943,12 +948,12 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = metadata::(); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode our events in the format we expect back from a node, and // construct an Events object to iterate them: let events = events::( - &metadata, + metadata, vec![event_record(Phase::Finalization, Event::A(MyType::B))], ); diff --git a/subxt/src/events/filter_events.rs b/subxt/src/events/filter_events.rs index 53119e178d..a4f9df636e 100644 --- a/subxt/src/events/filter_events.rs +++ b/subxt/src/events/filter_events.rs @@ -70,7 +70,7 @@ impl<'a, Sub: 'a, T: Config, Filter: EventFilter> FilterEvents<'a, Sub, T, Filte impl<'a, Sub, T, Evs, Filter> Stream for FilterEvents<'a, Sub, T, Filter> where - Sub: Stream, BasicError>> + Unpin + 'a, + Sub: Stream, BasicError>> + Unpin + 'a, T: Config, Evs: Decode + 'static, Filter: EventFilter, @@ -125,7 +125,7 @@ pub trait EventFilter: private::Sealed { type ReturnType; /// Filter the events based on the type implementing this trait. fn filter<'a, T: Config, Evs: Decode + 'static>( - events: Events<'a, T, Evs>, + events: Events, ) -> Box< dyn Iterator< Item = Result< @@ -150,7 +150,7 @@ impl private::Sealed for (Ev,) {} impl EventFilter for (Ev,) { type ReturnType = Ev; fn filter<'a, T: Config, Evs: Decode + 'static>( - events: Events<'a, T, Evs>, + events: Events, ) -> Box< dyn Iterator, BasicError>> + Send @@ -192,7 +192,7 @@ macro_rules! impl_event_filter { impl <$($ty: Event),+> EventFilter for ( $($ty,)+ ) { type ReturnType = ( $(Option<$ty>,)+ ); fn filter<'a, T: Config, Evs: Decode + 'static>( - events: Events<'a, T, Evs> + events: Events ) -> Box, BasicError>> + Send + 'a> { let block_hash = events.block_hash(); let mut iter = events.into_iter_raw(); @@ -259,7 +259,9 @@ mod test { Stream, StreamExt, }; + use parking_lot::RwLock; use scale_info::TypeInfo; + use std::sync::Arc; // Some pretend events in a pallet #[derive(Clone, Debug, PartialEq, Decode, Encode, TypeInfo)] @@ -295,13 +297,12 @@ mod test { // A stream of fake events for us to try filtering on. fn events_stream( - metadata: &'_ Metadata, - ) -> impl Stream< - Item = Result>, BasicError>, - > { + metadata: Arc>, + ) -> impl Stream>, BasicError>> + { stream::iter(vec![ events::( - metadata, + metadata.clone(), vec![ event_record(Phase::Initialization, PalletEvents::A(EventA(1))), event_record(Phase::ApplyExtrinsic(0), PalletEvents::B(EventB(true))), @@ -309,14 +310,14 @@ mod test { ], ), events::( - metadata, + metadata.clone(), vec![event_record( Phase::ApplyExtrinsic(1), PalletEvents::B(EventB(false)), )], ), events::( - metadata, + metadata.clone(), vec![ event_record(Phase::ApplyExtrinsic(2), PalletEvents::B(EventB(true))), event_record(Phase::ApplyExtrinsic(3), PalletEvents::A(EventA(3))), @@ -328,11 +329,11 @@ mod test { #[tokio::test] async fn filter_one_event_from_stream() { - let metadata = metadata::(); + let metadata = Arc::new(RwLock::new(metadata::())); // Filter out fake event stream to select events matching `EventA` only. let actual: Vec<_> = - FilterEvents::<_, DefaultConfig, (EventA,)>::new(events_stream(&metadata)) + FilterEvents::<_, DefaultConfig, (EventA,)>::new(events_stream(metadata)) .map(|e| e.unwrap()) .collect() .await; @@ -360,11 +361,11 @@ mod test { #[tokio::test] async fn filter_some_events_from_stream() { - let metadata = metadata::(); + let metadata = Arc::new(RwLock::new(metadata::())); // Filter out fake event stream to select events matching `EventA` or `EventB`. let actual: Vec<_> = FilterEvents::<_, DefaultConfig, (EventA, EventB)>::new( - events_stream(&metadata), + events_stream(metadata), ) .map(|e| e.unwrap()) .collect() @@ -408,11 +409,11 @@ mod test { #[tokio::test] async fn filter_no_events_from_stream() { - let metadata = metadata::(); + let metadata = Arc::new(RwLock::new(metadata::())); // Filter out fake event stream to select events matching `EventC` (none exist). let actual: Vec<_> = - FilterEvents::<_, DefaultConfig, (EventC,)>::new(events_stream(&metadata)) + FilterEvents::<_, DefaultConfig, (EventC,)>::new(events_stream(metadata)) .map(|e| e.unwrap()) .collect() .await; diff --git a/subxt/src/transaction.rs b/subxt/src/transaction.rs index db59ccb32e..cda1b3ba3e 100644 --- a/subxt/src/transaction.rs +++ b/subxt/src/transaction.rs @@ -165,7 +165,7 @@ impl<'client, T: Config, E: Decode + HasModuleError, Evs: Decode> /// level [`TransactionProgress::next_item()`] API if you'd like to handle these statuses yourself. pub async fn wait_for_finalized_success( self, - ) -> Result, Error> { + ) -> Result, Error> { let evs = self.wait_for_finalized().await?.wait_for_success().await?; Ok(evs) } @@ -379,9 +379,7 @@ impl<'client, T: Config, E: Decode + HasModuleError, Evs: Decode> /// /// **Note:** This has to download block details from the node and decode events /// from them. - pub async fn wait_for_success( - &self, - ) -> Result, Error> { + pub async fn wait_for_success(&self) -> Result, Error> { let events = self.fetch_events().await?; // Try to find any errors; return the first one we encounter. @@ -416,9 +414,7 @@ impl<'client, T: Config, E: Decode + HasModuleError, Evs: Decode> /// /// **Note:** This has to download block details from the node and decode events /// from them. - pub async fn fetch_events( - &self, - ) -> Result, BasicError> { + pub async fn fetch_events(&self) -> Result, BasicError> { let block = self .client .rpc() @@ -450,13 +446,13 @@ impl<'client, T: Config, E: Decode + HasModuleError, Evs: Decode> /// We can iterate over the events, or look for a specific one. #[derive(Derivative)] #[derivative(Debug(bound = ""))] -pub struct TransactionEvents<'client, T: Config, Evs: Decode> { +pub struct TransactionEvents { ext_hash: T::Hash, ext_idx: u32, - events: Events<'client, T, Evs>, + events: Events, } -impl<'client, T: Config, Evs: Decode> TransactionEvents<'client, T, Evs> { +impl TransactionEvents { /// Return the hash of the block that the transaction has made it into. pub fn block_hash(&self) -> T::Hash { self.events.block_hash() @@ -468,7 +464,7 @@ impl<'client, T: Config, Evs: Decode> TransactionEvents<'client, T, Evs> { } /// Return all of the events in the block that the transaction made it into. - pub fn all_events_in_block(&self) -> &events::Events<'client, T, Evs> { + pub fn all_events_in_block(&self) -> &events::Events { &self.events } From 997a358d1e4b575da5b22d01cf9bcb221fc039c1 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Mon, 2 May 2022 18:26:10 +0300 Subject: [PATCH 11/35] subxt: Add runtime update client wrapper Signed-off-by: Alexandru Vasile --- subxt/src/client.rs | 10 +++++ subxt/src/lib.rs | 1 + subxt/src/updates.rs | 102 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 113 insertions(+) create mode 100644 subxt/src/updates.rs diff --git a/subxt/src/client.rs b/subxt/src/client.rs index 62d18f570c..eaa18ae64b 100644 --- a/subxt/src/client.rs +++ b/subxt/src/client.rs @@ -35,6 +35,7 @@ use crate::{ }, storage::StorageClient, transaction::TransactionProgress, + updates::UpdateClient, Call, Config, Encoded, @@ -188,6 +189,15 @@ impl Client { StorageClient::new(&self.rpc, self.metadata(), self.iter_page_size) } + /// Create a wrapper for performing runtime updates on this client. + pub fn updates(&self) -> UpdateClient { + UpdateClient::new( + self.rpc.clone(), + self.metadata(), + self.runtime_version.clone(), + ) + } + /// Convert the client to a runtime api wrapper for custom runtime access. /// /// The `subxt` proc macro will provide methods to submit extrinsics and read storage specific diff --git a/subxt/src/lib.rs b/subxt/src/lib.rs index 22982f4900..37b5fa3e3c 100644 --- a/subxt/src/lib.rs +++ b/subxt/src/lib.rs @@ -65,6 +65,7 @@ mod metadata; pub mod rpc; pub mod storage; mod transaction; +pub mod updates; pub use crate::{ client::{ diff --git a/subxt/src/updates.rs b/subxt/src/updates.rs new file mode 100644 index 0000000000..fb97b485ba --- /dev/null +++ b/subxt/src/updates.rs @@ -0,0 +1,102 @@ +// Copyright 2019-2022 Parity Technologies (UK) Ltd. +// This file is part of subxt. +// +// subxt is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// subxt is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with subxt. If not, see . + +//! For performing runtime updates. + +use crate::{ + rpc::{ + Rpc, + RuntimeVersion, + }, + BasicError, + Config, + Metadata, +}; +use parking_lot::RwLock; +use std::sync::Arc; + +/// Client wrapper for performing runtime updates. +pub struct UpdateClient { + rpc: Rpc, + metadata: Arc>, + runtime_version: Arc>, +} + +impl UpdateClient { + /// Create a new [`UpdateClient`]. + pub fn new( + rpc: Rpc, + metadata: Arc>, + runtime_version: Arc>, + ) -> Self { + Self { + rpc, + metadata, + runtime_version, + } + } + + /// Performs runtime updates indefinitely unless encountering an error. + /// + /// *Note:* This should be called from a dedicated background task. + pub async fn perform_runtime_updates(&self) -> Result<(), BasicError> { + // Obtain an update subscription to further detect changes in the runtime version of the node. + let mut update_subscription = self.rpc.subscribe_runtime_version().await?; + + while let Some(update_runtime_version) = update_subscription.next().await { + // The Runtime Version obtained via subscription. + let update_runtime_version = update_runtime_version?; + + // Ensure that the provided Runtime Version can be applied to the current + // version of the client. There are cases when the subscription to the + // Runtime Version of the node would produce spurious update events. + // In those cases, set the Runtime Version on the client if and only if + // the provided runtime version is bigger than what the client currently + // has stored. + { + // The Runtime Version of the client, as set during building the client + // or during updates. + let runtime_version = self.runtime_version.read(); + if runtime_version.spec_version >= update_runtime_version.spec_version { + log::debug!( + "Runtime update not performed for spec_version={}, client has spec_version={}", + update_runtime_version.spec_version, runtime_version.spec_version + ); + continue + } + } + + // Fetch the new metadata of the runtime node. + let update_metadata = self.rpc.metadata().await?; + + let mut runtime_version = self.runtime_version.write(); + // Update both the `RuntimeVersion` and `Metadata` of the client. + log::info!( + "Performing runtime update from {} to {}", + runtime_version.spec_version, + update_runtime_version.spec_version, + ); + *runtime_version = update_runtime_version; + log::debug!("Performing metadata update"); + let mut metadata = self.metadata.write(); + *metadata = update_metadata; + + log::debug!("Runtime update completed"); + } + + Ok(()) + } +} From c4a3da1e18433ff1e8ddd1ebd43980701ede7ab6 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Mon, 2 May 2022 18:42:53 +0300 Subject: [PATCH 12/35] examples: Modify runtime update example Signed-off-by: Alexandru Vasile --- .../examples/subscribe_runtime_updates.rs | 97 +++++-------------- 1 file changed, 24 insertions(+), 73 deletions(-) diff --git a/examples/examples/subscribe_runtime_updates.rs b/examples/examples/subscribe_runtime_updates.rs index ad29cfaf54..dbcef545f4 100644 --- a/examples/examples/subscribe_runtime_updates.rs +++ b/examples/examples/subscribe_runtime_updates.rs @@ -34,13 +34,32 @@ use subxt::{ #[subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata.scale")] pub mod polkadot {} -type RuntimeApi = - polkadot::RuntimeApi>; +#[tokio::main] +async fn main() -> Result<(), Box> { + env_logger::init(); -/// This function is representative of the main customer use case. -async fn user_use_case(api: &RuntimeApi) { - let signer = PairSigner::new(AccountKeyring::Alice.pair()); + let api = ClientBuilder::new() + .build() + .await? + .to_runtime_api::>>(); + // Start a new tokio task to perform the runtime updates while + // utilizing the API for other use cases. + let update_client = api.client.updates(); + tokio::spawn(async move { + let result = update_client.perform_runtime_updates().await; + println!("Runtime update failed with result={:?}", result); + }); + + // Make multiple transfers to simulate a long running `subxt::Client` use-case. + // + // Meanwhile, the tokio task will perform any necessary updates to ensure + // that submitted extrinsics are still valid. + // + // Ideally, the polkadot node should perform a few runtime updates + // For more details on how to perform updates on a node, please follow: + // https://docs.substrate.io/tutorials/v3/forkless-upgrades/ + let signer = PairSigner::new(AccountKeyring::Alice.pair()); // Make small balance transfers from Alice to Bob: for _ in 0..10 { let hash = api @@ -58,74 +77,6 @@ async fn user_use_case(api: &RuntimeApi) { println!("Balance transfer extrinsic submitted: {}", hash); tokio::time::sleep(Duration::from_secs(30)).await; } -} - -/// This function handles runtime updates via subscribing to the -/// node's RuntimeVersion. -async fn runtime_update(api: &RuntimeApi) { - // Obtain an update subscription to further detect changes in the runtime version of the node. - let mut update_subscription = - api.client.rpc().subscribe_runtime_version().await.unwrap(); - println!(" [RuntimeUpdate] Application subscribed to RuntimeVersion updates"); - - while let Some(runtime_version) = update_subscription.next().await { - // The Runtime Version obtained via subscription. - let runtime_version = runtime_version.unwrap(); - // The Runtime Version of the client, as set during building the client. - let current_runtime = api.client.runtime_version(); - - // Ensure that the provided Runtime Version can be applied to the current - // version of the client. There are cases when the subscription to the - // Runtime Version of the node would produce spurious update events. - // In those cases, set the Runtime Version on the client if and only if - // the provided runtime version is bigger than what the client currently - // has stored. - if current_runtime.spec_version >= runtime_version.spec_version { - println!( - " [RuntimeUpdate] Update not performed for received spec_version={}, client has spec_version={}", - runtime_version.spec_version, current_runtime.spec_version - ); - continue - } - - // Perform the actual client update to ensure that further extrinsics - // include the appropriate `spec_version` and `transaction_version`. - println!( - " [RuntimeUpdate] Updating RuntimeVersion from {} to {}", - current_runtime.spec_version, runtime_version.spec_version - ); - api.client.set_runtime_version(runtime_version); - println!(" [RuntimeUpdate] Update completed"); - } -} - -#[tokio::main] -async fn main() -> Result<(), Box> { - env_logger::init(); - - let api = ClientBuilder::new() - .build() - .await? - .to_runtime_api::(); - - // Start two concurrent branches: - // - One branch performs runtime update - // - Another branch performs the main customer use case. - // - // Ideally this examples should be targeting a node that would perform - // runtime updates to demonstrate the functionality. - // - // For more details on how to perform updates on a node, please follow: - // https://docs.substrate.io/tutorials/v3/forkless-upgrades/ - tokio::select! { - _ = runtime_update(&api) => { - println!("Runtime update branch finished"); - } - _ = user_use_case(&api) => - { - println!("User main use case finished"); - } - } Ok(()) } From 66907a8d81903ab26cecb8a1e84c0fd92c4c865f Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Mon, 2 May 2022 20:00:12 +0300 Subject: [PATCH 13/35] Fix clippy Signed-off-by: Alexandru Vasile --- subxt/src/events/filter_events.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subxt/src/events/filter_events.rs b/subxt/src/events/filter_events.rs index a4f9df636e..c5372ddbca 100644 --- a/subxt/src/events/filter_events.rs +++ b/subxt/src/events/filter_events.rs @@ -317,7 +317,7 @@ mod test { )], ), events::( - metadata.clone(), + metadata, vec![ event_record(Phase::ApplyExtrinsic(2), PalletEvents::B(EventB(true))), event_record(Phase::ApplyExtrinsic(3), PalletEvents::A(EventA(3))), From ef0610db2c8cc66c17a61a7c3c735b3b58bfc8b8 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Tue, 3 May 2022 17:32:48 +0300 Subject: [PATCH 14/35] Fix cargo check Signed-off-by: Alexandru Vasile --- codegen/src/api/calls.rs | 9 ++++++--- codegen/src/api/storage.rs | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index ca441f0198..47f39fa57a 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -100,9 +100,12 @@ pub fn generate_calls( &self, #( #call_fn_args, )* ) -> Result<::subxt::SubmittableExtrinsic<'a, T, X, #struct_name, DispatchError, root_mod::Event>, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::<#struct_name>()? == [#(#call_hash,)*] { + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::<#struct_name>()? + }; + if runtime_call_hash == [#(#call_hash,)*] { let call = #struct_name { #( #call_args, )* }; Ok(::subxt::SubmittableExtrinsic::new(self.client, call)) } else { diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index d1ef95dd58..029e889e2d 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -271,9 +271,12 @@ fn generate_storage_entry_fns( &self, block_hash: ::core::option::Option, ) -> ::core::result::Result<::subxt::KeyIter<'a, T, #entry_struct_ident #lifetime_param>, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::<#entry_struct_ident>()? == [#(#storage_hash,)*] { + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::<#entry_struct_ident>()? + }; + if runtime_storage_hash == [#(#storage_hash,)*] { self.client.storage().iter(block_hash).await } else { Err(::subxt::MetadataError::IncompatibleMetadata.into()) From 8834279cbcb94f77baa7f032445f71b61a92a0e8 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Tue, 3 May 2022 18:38:02 +0300 Subject: [PATCH 15/35] codegen: Keep consistency with cargo check fix Signed-off-by: Alexandru Vasile --- codegen/src/api/storage.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index 029e889e2d..4a2c91c09f 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -305,9 +305,12 @@ fn generate_storage_entry_fns( #( #key_args, )* block_hash: ::core::option::Option, ) -> ::core::result::Result<#return_ty, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::<#entry_struct_ident>()? == [#(#storage_hash,)*] { + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::<#entry_struct_ident>()? + }; + if runtime_storage_hash == [#(#storage_hash,)*] { let entry = #constructor; self.client.storage().#fetch(&entry, block_hash).await } else { From f92bed756bec87d14d605d0b6f0372b23a334fa8 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Tue, 3 May 2022 18:53:56 +0300 Subject: [PATCH 16/35] subxt: Remove unnecessary Arc Signed-off-by: Alexandru Vasile --- subxt/src/metadata/metadata_type.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/subxt/src/metadata/metadata_type.rs b/subxt/src/metadata/metadata_type.rs index 7069423a6c..1fa9d9a452 100644 --- a/subxt/src/metadata/metadata_type.rs +++ b/subxt/src/metadata/metadata_type.rs @@ -25,6 +25,7 @@ use frame_metadata::{ StorageEntryMetadata, META_RESERVED, }; +use parking_lot::RwLock; use scale_info::{ form::PortableForm, Type, @@ -33,10 +34,6 @@ use scale_info::{ use std::{ collections::HashMap, convert::TryFrom, - sync::{ - Arc, - RwLock, - }, }; /// Metadata error. @@ -84,9 +81,9 @@ pub enum MetadataError { } /// Runtime metadata. -#[derive(Clone, Debug)] +#[derive(Debug)] pub struct Metadata { - inner: Arc, + inner: MetadataInner, } // We hide the innards behind an Arc so that it's easy to clone and share. @@ -460,7 +457,7 @@ impl TryFrom for Metadata { .collect(); Ok(Metadata { - inner: Arc::new(MetadataInner { + inner: MetadataInner { metadata, pallets, events, @@ -469,7 +466,7 @@ impl TryFrom for Metadata { cached_call_hashes: Default::default(), cached_constant_hashes: Default::default(), cached_storage_hashes: Default::default(), - }), + }, }) } } From 9af2a6c6d4509ffb11ac5d18d341f67be4cb53c9 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Tue, 3 May 2022 19:10:30 +0300 Subject: [PATCH 17/35] subxt: Remove MetadataInner and use parking_lot::RwLock Signed-off-by: Alexandru Vasile --- subxt/src/metadata/metadata_type.rs | 105 +++++++++++----------------- 1 file changed, 42 insertions(+), 63 deletions(-) diff --git a/subxt/src/metadata/metadata_type.rs b/subxt/src/metadata/metadata_type.rs index 1fa9d9a452..72f9661854 100644 --- a/subxt/src/metadata/metadata_type.rs +++ b/subxt/src/metadata/metadata_type.rs @@ -83,12 +83,6 @@ pub enum MetadataError { /// Runtime metadata. #[derive(Debug)] pub struct Metadata { - inner: MetadataInner, -} - -// We hide the innards behind an Arc so that it's easy to clone and share. -#[derive(Debug)] -struct MetadataInner { metadata: RuntimeMetadataV14, pallets: HashMap, events: HashMap<(u8, u8), EventMetadata>, @@ -105,10 +99,7 @@ struct MetadataInner { impl Metadata { /// Returns a reference to [`PalletMetadata`]. pub fn pallet(&self, name: &'static str) -> Result<&PalletMetadata, MetadataError> { - self.inner - .pallets - .get(name) - .ok_or(MetadataError::PalletNotFound) + self.pallets.get(name).ok_or(MetadataError::PalletNotFound) } /// Returns the metadata for the event at the given pallet and event indices. @@ -118,7 +109,6 @@ impl Metadata { event_index: u8, ) -> Result<&EventMetadata, MetadataError> { let event = self - .inner .events .get(&(pallet_index, event_index)) .ok_or(MetadataError::EventNotFound(pallet_index, event_index))?; @@ -132,7 +122,6 @@ impl Metadata { error_index: u8, ) -> Result<&ErrorMetadata, MetadataError> { let error = self - .inner .errors .get(&(pallet_index, error_index)) .ok_or(MetadataError::ErrorNotFound(pallet_index, error_index))?; @@ -141,32 +130,31 @@ impl Metadata { /// Resolve a type definition. pub fn resolve_type(&self, id: u32) -> Option<&Type> { - self.inner.metadata.types.resolve(id) + self.metadata.types.resolve(id) } /// Return the runtime metadata. pub fn runtime_metadata(&self) -> &RuntimeMetadataV14 { - &self.inner.metadata + &self.metadata } /// Obtain the unique hash for a specific storage entry. pub fn storage_hash( &self, ) -> Result<[u8; 32], MetadataError> { - self.inner - .cached_storage_hashes + self.cached_storage_hashes .get_or_insert(S::PALLET, S::STORAGE, || { - subxt_metadata::get_storage_hash( - &self.inner.metadata, - S::PALLET, - S::STORAGE, - ) - .map_err(|e| { - match e { - subxt_metadata::NotFound::Pallet => MetadataError::PalletNotFound, - subxt_metadata::NotFound::Item => MetadataError::StorageNotFound, - } - }) + subxt_metadata::get_storage_hash(&self.metadata, S::PALLET, S::STORAGE) + .map_err(|e| { + match e { + subxt_metadata::NotFound::Pallet => { + MetadataError::PalletNotFound + } + subxt_metadata::NotFound::Item => { + MetadataError::StorageNotFound + } + } + }) }) } @@ -176,10 +164,9 @@ impl Metadata { pallet: &str, constant: &str, ) -> Result<[u8; 32], MetadataError> { - self.inner - .cached_constant_hashes + self.cached_constant_hashes .get_or_insert(pallet, constant, || { - subxt_metadata::get_constant_hash(&self.inner.metadata, pallet, constant) + subxt_metadata::get_constant_hash(&self.metadata, pallet, constant) .map_err(|e| { match e { subxt_metadata::NotFound::Pallet => { @@ -195,26 +182,23 @@ impl Metadata { /// Obtain the unique hash for a call. pub fn call_hash(&self) -> Result<[u8; 32], MetadataError> { - self.inner - .cached_call_hashes + self.cached_call_hashes .get_or_insert(C::PALLET, C::FUNCTION, || { - subxt_metadata::get_call_hash( - &self.inner.metadata, - C::PALLET, - C::FUNCTION, - ) - .map_err(|e| { - match e { - subxt_metadata::NotFound::Pallet => MetadataError::PalletNotFound, - subxt_metadata::NotFound::Item => MetadataError::CallNotFound, - } - }) + subxt_metadata::get_call_hash(&self.metadata, C::PALLET, C::FUNCTION) + .map_err(|e| { + match e { + subxt_metadata::NotFound::Pallet => { + MetadataError::PalletNotFound + } + subxt_metadata::NotFound::Item => MetadataError::CallNotFound, + } + }) }) } /// Obtain the unique hash for this metadata. pub fn metadata_hash>(&self, pallets: &[T]) -> [u8; 32] { - if let Some(hash) = *self.inner.cached_metadata_hash.read().unwrap() { + if let Some(hash) = *self.cached_metadata_hash.read() { return hash } @@ -222,7 +206,7 @@ impl Metadata { self.runtime_metadata(), pallets, ); - *self.inner.cached_metadata_hash.write().unwrap() = Some(hash); + *self.cached_metadata_hash.write() = Some(hash); hash } @@ -457,16 +441,14 @@ impl TryFrom for Metadata { .collect(); Ok(Metadata { - inner: MetadataInner { - metadata, - pallets, - events, - errors, - cached_metadata_hash: Default::default(), - cached_call_hashes: Default::default(), - cached_constant_hashes: Default::default(), - cached_storage_hashes: Default::default(), - }, + metadata, + pallets, + events, + errors, + cached_metadata_hash: Default::default(), + cached_call_hashes: Default::default(), + cached_constant_hashes: Default::default(), + cached_storage_hashes: Default::default(), }) } } @@ -544,12 +526,9 @@ mod tests { let hash = metadata.metadata_hash(&["System"]); // Check inner caching. - assert_eq!( - metadata.inner.cached_metadata_hash.read().unwrap().unwrap(), - hash - ); + assert_eq!(metadata.cached_metadata_hash.read().unwrap(), hash); - // The cache `metadata.inner.cached_metadata_hash` is already populated from + // The cache `metadata.cached_metadata_hash` is already populated from // the previous call. Therefore, changing the pallets argument must not // change the methods behavior. let hash_old = metadata.metadata_hash(&["no-pallet"]); @@ -570,7 +549,7 @@ mod tests { let hash = metadata.call_hash::(); let mut call_number = 0; - let hash_cached = metadata.inner.cached_call_hashes.get_or_insert( + let hash_cached = metadata.cached_call_hashes.get_or_insert( "System", "fill_block", || -> Result<[u8; 32], MetadataError> { @@ -591,7 +570,7 @@ mod tests { let hash = metadata.constant_hash("System", "BlockWeights"); let mut call_number = 0; - let hash_cached = metadata.inner.cached_constant_hashes.get_or_insert( + let hash_cached = metadata.cached_constant_hashes.get_or_insert( "System", "BlockWeights", || -> Result<[u8; 32], MetadataError> { @@ -624,7 +603,7 @@ mod tests { let hash = metadata.storage_hash::(); let mut call_number = 0; - let hash_cached = metadata.inner.cached_storage_hashes.get_or_insert( + let hash_cached = metadata.cached_storage_hashes.get_or_insert( "System", "Account", || -> Result<[u8; 32], MetadataError> { From 33879a0cd525b2c7ecac98c2bdd4c6b316290900 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Tue, 3 May 2022 19:27:44 +0300 Subject: [PATCH 18/35] Update polkadot.rs Signed-off-by: Alexandru Vasile --- integration-tests/src/codegen/polkadot.rs | 6103 ++++++++++++++------- 1 file changed, 4069 insertions(+), 2034 deletions(-) diff --git a/integration-tests/src/codegen/polkadot.rs b/integration-tests/src/codegen/polkadot.rs index 79e4a93f5d..b0fc05cdcd 100644 --- a/integration-tests/src/codegen/polkadot.rs +++ b/integration-tests/src/codegen/polkadot.rs @@ -253,9 +253,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 228u8, 117u8, 251u8, 95u8, 47u8, 56u8, 32u8, 177u8, 191u8, 72u8, 75u8, 23u8, 193u8, 175u8, 227u8, 218u8, 127u8, 94u8, @@ -288,9 +291,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 186u8, 79u8, 33u8, 199u8, 216u8, 115u8, 19u8, 146u8, 220u8, 174u8, 98u8, 61u8, 179u8, 230u8, 40u8, 70u8, 22u8, 251u8, @@ -319,9 +325,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 77u8, 138u8, 122u8, 55u8, 179u8, 101u8, 60u8, 137u8, 173u8, 39u8, 28u8, 36u8, 237u8, 243u8, 232u8, 162u8, 76u8, 176u8, @@ -361,9 +370,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 35u8, 75u8, 103u8, 203u8, 91u8, 141u8, 77u8, 95u8, 37u8, 157u8, 107u8, 240u8, 54u8, 242u8, 245u8, 205u8, 104u8, 165u8, @@ -400,9 +412,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 150u8, 148u8, 119u8, 129u8, 77u8, 216u8, 135u8, 187u8, 127u8, 24u8, 238u8, 15u8, 227u8, 229u8, 191u8, 217u8, 106u8, 129u8, @@ -434,9 +449,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 197u8, 12u8, 119u8, 205u8, 152u8, 103u8, 211u8, 170u8, 146u8, 253u8, 25u8, 56u8, 180u8, 146u8, 74u8, 75u8, 38u8, 108u8, @@ -465,9 +483,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 154u8, 115u8, 185u8, 20u8, 126u8, 90u8, 222u8, 131u8, 199u8, 57u8, 184u8, 226u8, 43u8, 245u8, 161u8, 176u8, 194u8, 123u8, @@ -500,9 +521,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 214u8, 101u8, 191u8, 241u8, 1u8, 241u8, 144u8, 116u8, 246u8, 199u8, 159u8, 249u8, 155u8, 164u8, 220u8, 221u8, 75u8, 33u8, @@ -531,9 +555,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 171u8, 82u8, 75u8, 237u8, 69u8, 197u8, 223u8, 125u8, 123u8, 51u8, 241u8, 35u8, 202u8, 210u8, 227u8, 109u8, 1u8, 241u8, @@ -797,9 +824,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 224u8, 184u8, 2u8, 14u8, 38u8, 177u8, 223u8, 98u8, 223u8, 15u8, 130u8, 23u8, 212u8, 69u8, 61u8, 165u8, 171u8, 61u8, @@ -824,9 +854,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Account<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 224u8, 184u8, 2u8, 14u8, 38u8, 177u8, 223u8, 98u8, 223u8, 15u8, 130u8, 23u8, 212u8, 69u8, 61u8, 165u8, 171u8, 61u8, @@ -847,9 +880,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 223u8, 60u8, 201u8, 120u8, 36u8, 44u8, 180u8, 210u8, 242u8, 53u8, 222u8, 154u8, 123u8, 176u8, 249u8, 8u8, 225u8, 28u8, @@ -873,9 +909,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 2u8, 236u8, 190u8, 174u8, 244u8, 98u8, 194u8, 168u8, 89u8, 208u8, 7u8, 45u8, 175u8, 171u8, 177u8, 121u8, 215u8, 190u8, @@ -900,9 +939,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 202u8, 145u8, 209u8, 225u8, 40u8, 220u8, 174u8, 74u8, 93u8, 164u8, 254u8, 248u8, 254u8, 192u8, 32u8, 117u8, 96u8, 149u8, @@ -923,9 +965,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 24u8, 99u8, 146u8, 142u8, 205u8, 166u8, 4u8, 32u8, 218u8, 213u8, 24u8, 236u8, 45u8, 116u8, 145u8, 204u8, 27u8, 141u8, @@ -950,9 +995,12 @@ pub mod api { ::subxt::KeyIter<'a, T, BlockHash<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 24u8, 99u8, 146u8, 142u8, 205u8, 166u8, 4u8, 32u8, 218u8, 213u8, 24u8, 236u8, 45u8, 116u8, 145u8, 204u8, 27u8, 141u8, @@ -974,9 +1022,12 @@ pub mod api { ::std::vec::Vec<::core::primitive::u8>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 210u8, 224u8, 211u8, 186u8, 118u8, 210u8, 185u8, 194u8, 238u8, 211u8, 254u8, 73u8, 67u8, 184u8, 31u8, 229u8, 168u8, @@ -1001,9 +1052,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ExtrinsicData<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 210u8, 224u8, 211u8, 186u8, 118u8, 210u8, 185u8, 194u8, 238u8, 211u8, 254u8, 73u8, 67u8, 184u8, 31u8, 229u8, 168u8, @@ -1022,9 +1076,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 228u8, 96u8, 102u8, 190u8, 252u8, 130u8, 239u8, 172u8, 126u8, 235u8, 246u8, 139u8, 208u8, 15u8, 88u8, 245u8, 141u8, 232u8, @@ -1047,9 +1104,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 194u8, 221u8, 147u8, 22u8, 68u8, 141u8, 32u8, 6u8, 202u8, 39u8, 164u8, 184u8, 69u8, 126u8, 190u8, 101u8, 215u8, 27u8, @@ -1074,9 +1134,12 @@ pub mod api { runtime_types::sp_runtime::generic::digest::Digest, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 10u8, 176u8, 13u8, 228u8, 226u8, 42u8, 210u8, 151u8, 107u8, 212u8, 136u8, 15u8, 38u8, 182u8, 225u8, 12u8, 250u8, 56u8, @@ -1109,9 +1172,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 51u8, 117u8, 189u8, 125u8, 155u8, 137u8, 63u8, 1u8, 80u8, 211u8, 18u8, 228u8, 58u8, 237u8, 241u8, 176u8, 127u8, 189u8, @@ -1134,9 +1200,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 236u8, 93u8, 90u8, 177u8, 250u8, 211u8, 138u8, 187u8, 26u8, 208u8, 203u8, 113u8, 221u8, 233u8, 227u8, 9u8, 249u8, 25u8, @@ -1171,9 +1240,12 @@ pub mod api { ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 231u8, 73u8, 172u8, 223u8, 210u8, 145u8, 151u8, 102u8, 73u8, 23u8, 140u8, 55u8, 97u8, 40u8, 219u8, 239u8, 229u8, 177u8, @@ -1207,9 +1279,12 @@ pub mod api { ::subxt::KeyIter<'a, T, EventTopics<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 231u8, 73u8, 172u8, 223u8, 210u8, 145u8, 151u8, 102u8, 73u8, 23u8, 140u8, 55u8, 97u8, 40u8, 219u8, 239u8, 229u8, 177u8, @@ -1232,9 +1307,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 219u8, 153u8, 158u8, 38u8, 45u8, 65u8, 151u8, 137u8, 53u8, 76u8, 11u8, 181u8, 218u8, 248u8, 125u8, 190u8, 100u8, 240u8, @@ -1254,9 +1332,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 171u8, 88u8, 244u8, 92u8, 122u8, 67u8, 27u8, 18u8, 59u8, 175u8, 175u8, 178u8, 20u8, 150u8, 213u8, 59u8, 222u8, 141u8, @@ -1280,9 +1361,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 90u8, 33u8, 56u8, 86u8, 90u8, 101u8, 89u8, 133u8, 203u8, 56u8, 201u8, 210u8, 244u8, 232u8, 150u8, 18u8, 51u8, 105u8, @@ -1307,9 +1391,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 174u8, 13u8, 230u8, 220u8, 239u8, 161u8, 172u8, 122u8, 188u8, 95u8, 141u8, 118u8, 91u8, 158u8, 111u8, 145u8, 243u8, 173u8, @@ -1638,9 +1725,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 171u8, 203u8, 174u8, 141u8, 138u8, 30u8, 100u8, 95u8, 14u8, 2u8, 34u8, 14u8, 199u8, 60u8, 129u8, 160u8, 8u8, 166u8, 4u8, @@ -1675,9 +1765,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 118u8, 0u8, 188u8, 218u8, 148u8, 86u8, 139u8, 15u8, 3u8, 161u8, 6u8, 150u8, 46u8, 32u8, 85u8, 179u8, 106u8, 113u8, @@ -1716,9 +1809,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 47u8, 156u8, 239u8, 248u8, 198u8, 13u8, 10u8, 156u8, 176u8, 254u8, 247u8, 152u8, 108u8, 255u8, 224u8, 185u8, 109u8, 56u8, @@ -1753,9 +1849,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 118u8, 221u8, 232u8, 126u8, 67u8, 134u8, 33u8, 7u8, 224u8, 110u8, 181u8, 18u8, 57u8, 39u8, 15u8, 64u8, 90u8, 132u8, 2u8, @@ -1797,9 +1896,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 150u8, 70u8, 131u8, 52u8, 50u8, 73u8, 176u8, 193u8, 17u8, 31u8, 218u8, 113u8, 220u8, 23u8, 160u8, 196u8, 100u8, 27u8, @@ -1847,9 +1949,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 127u8, 121u8, 141u8, 162u8, 95u8, 211u8, 214u8, 15u8, 22u8, 28u8, 23u8, 71u8, 92u8, 58u8, 249u8, 163u8, 216u8, 85u8, @@ -1964,9 +2069,12 @@ pub mod api { Self { client } } #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub async fn agenda (& self , _0 : & :: core :: primitive :: u32 , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_scheduler :: ScheduledV3 < runtime_types :: frame_support :: traits :: schedule :: MaybeHashed < runtime_types :: polkadot_runtime :: Call , :: subxt :: sp_core :: H256 > , :: core :: primitive :: u32 , runtime_types :: polkadot_runtime :: OriginCaller , :: subxt :: sp_core :: crypto :: AccountId32 > > > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 235u8, 95u8, 118u8, 134u8, 98u8, 235u8, 250u8, 110u8, 250u8, 7u8, 75u8, 190u8, 53u8, 194u8, 153u8, 51u8, 125u8, 69u8, @@ -1991,9 +2099,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Agenda<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 235u8, 95u8, 118u8, 134u8, 98u8, 235u8, 250u8, 110u8, 250u8, 7u8, 75u8, 190u8, 53u8, 194u8, 153u8, 51u8, 125u8, 69u8, @@ -2018,9 +2129,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 56u8, 105u8, 156u8, 110u8, 251u8, 141u8, 219u8, 56u8, 131u8, 57u8, 180u8, 33u8, 48u8, 30u8, 193u8, 194u8, 169u8, 182u8, @@ -2042,9 +2156,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Lookup<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 56u8, 105u8, 156u8, 110u8, 251u8, 141u8, 219u8, 56u8, 131u8, 57u8, 180u8, 33u8, 48u8, 30u8, 193u8, 194u8, 169u8, 182u8, @@ -2197,9 +2314,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 116u8, 66u8, 88u8, 251u8, 187u8, 86u8, 82u8, 136u8, 215u8, 82u8, 240u8, 255u8, 70u8, 190u8, 116u8, 187u8, 232u8, 168u8, @@ -2228,9 +2348,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 162u8, 195u8, 220u8, 134u8, 147u8, 150u8, 145u8, 130u8, 231u8, 104u8, 83u8, 70u8, 42u8, 90u8, 248u8, 61u8, 223u8, @@ -2262,9 +2385,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 186u8, 108u8, 235u8, 145u8, 104u8, 29u8, 22u8, 33u8, 21u8, 121u8, 32u8, 75u8, 141u8, 125u8, 205u8, 186u8, 210u8, 184u8, @@ -2295,9 +2421,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 160u8, 6u8, 6u8, 198u8, 77u8, 37u8, 28u8, 86u8, 240u8, 160u8, 128u8, 123u8, 144u8, 150u8, 150u8, 60u8, 107u8, 148u8, 189u8, @@ -2397,9 +2526,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 239u8, 53u8, 52u8, 248u8, 196u8, 74u8, 99u8, 113u8, 135u8, 186u8, 100u8, 46u8, 246u8, 245u8, 160u8, 102u8, 81u8, 96u8, @@ -2421,9 +2553,12 @@ pub mod api { ::subxt::KeyIter<'a, T, StatusFor<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 239u8, 53u8, 52u8, 248u8, 196u8, 74u8, 99u8, 113u8, 135u8, 186u8, 100u8, 46u8, 246u8, 245u8, 160u8, 102u8, 81u8, 96u8, @@ -2449,9 +2584,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 153u8, 48u8, 185u8, 144u8, 57u8, 68u8, 133u8, 92u8, 225u8, 172u8, 36u8, 62u8, 152u8, 162u8, 15u8, 139u8, 140u8, 82u8, @@ -2473,9 +2611,12 @@ pub mod api { ::subxt::KeyIter<'a, T, PreimageFor<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 153u8, 48u8, 185u8, 144u8, 57u8, 68u8, 133u8, 92u8, 225u8, 172u8, 36u8, 62u8, 152u8, 162u8, 15u8, 139u8, 140u8, 82u8, @@ -2579,9 +2720,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 123u8, 212u8, 216u8, 77u8, 79u8, 132u8, 201u8, 155u8, 166u8, 230u8, 50u8, 89u8, 98u8, 68u8, 56u8, 213u8, 206u8, 245u8, @@ -2623,9 +2767,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 32u8, 163u8, 168u8, 251u8, 251u8, 9u8, 1u8, 195u8, 173u8, 32u8, 235u8, 125u8, 141u8, 201u8, 130u8, 207u8, 239u8, 76u8, @@ -2662,9 +2809,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 215u8, 121u8, 90u8, 87u8, 178u8, 247u8, 114u8, 53u8, 174u8, 28u8, 20u8, 33u8, 139u8, 216u8, 13u8, 187u8, 74u8, 198u8, @@ -2846,9 +2996,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 51u8, 27u8, 91u8, 156u8, 118u8, 99u8, 46u8, 219u8, 190u8, 147u8, 205u8, 23u8, 106u8, 169u8, 121u8, 218u8, 208u8, 235u8, @@ -2866,9 +3019,12 @@ pub mod api { } } #[doc = " Current epoch authorities."] pub async fn authorities (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 39u8, 102u8, 251u8, 125u8, 230u8, 247u8, 174u8, 255u8, 2u8, 81u8, 86u8, 69u8, 182u8, 92u8, 191u8, 163u8, 66u8, 181u8, @@ -2894,9 +3050,12 @@ pub mod api { runtime_types::sp_consensus_slots::Slot, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 136u8, 244u8, 7u8, 142u8, 224u8, 33u8, 144u8, 186u8, 155u8, 144u8, 68u8, 81u8, 241u8, 57u8, 40u8, 207u8, 35u8, 39u8, @@ -2921,9 +3080,12 @@ pub mod api { runtime_types::sp_consensus_slots::Slot, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 233u8, 102u8, 77u8, 99u8, 103u8, 50u8, 151u8, 229u8, 46u8, 226u8, 181u8, 37u8, 117u8, 204u8, 234u8, 120u8, 116u8, 166u8, @@ -2957,9 +3119,12 @@ pub mod api { [::core::primitive::u8; 32usize], ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 191u8, 197u8, 25u8, 164u8, 104u8, 248u8, 247u8, 193u8, 244u8, 60u8, 181u8, 195u8, 248u8, 90u8, 41u8, 199u8, 82u8, 123u8, @@ -2986,9 +3151,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 98u8, 52u8, 22u8, 32u8, 76u8, 196u8, 89u8, 78u8, 119u8, 181u8, 17u8, 49u8, 220u8, 159u8, 195u8, 74u8, 33u8, 59u8, @@ -3010,9 +3178,12 @@ pub mod api { [::core::primitive::u8; 32usize], ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 185u8, 98u8, 45u8, 109u8, 253u8, 38u8, 238u8, 221u8, 240u8, 29u8, 38u8, 107u8, 118u8, 117u8, 131u8, 115u8, 21u8, 255u8, @@ -3030,9 +3201,12 @@ pub mod api { } } #[doc = " Next epoch authorities."] pub async fn next_authorities (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 211u8, 175u8, 218u8, 0u8, 212u8, 114u8, 210u8, 137u8, 146u8, 135u8, 78u8, 133u8, 85u8, 253u8, 140u8, 242u8, 101u8, 155u8, @@ -3063,9 +3237,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 128u8, 45u8, 87u8, 58u8, 174u8, 152u8, 241u8, 156u8, 56u8, 192u8, 19u8, 45u8, 75u8, 160u8, 35u8, 253u8, 145u8, 11u8, @@ -3093,9 +3270,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 12u8, 167u8, 30u8, 96u8, 161u8, 63u8, 210u8, 63u8, 91u8, 199u8, 188u8, 78u8, 254u8, 255u8, 253u8, 202u8, 203u8, 26u8, @@ -3120,9 +3300,12 @@ pub mod api { ::subxt::KeyIter<'a, T, UnderConstruction<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 12u8, 167u8, 30u8, 96u8, 161u8, 63u8, 210u8, 63u8, 91u8, 199u8, 188u8, 78u8, 254u8, 255u8, 253u8, 202u8, 203u8, 26u8, @@ -3146,9 +3329,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 48u8, 206u8, 111u8, 118u8, 149u8, 175u8, 148u8, 53u8, 233u8, 82u8, 220u8, 57u8, 22u8, 164u8, 116u8, 228u8, 134u8, 237u8, @@ -3173,9 +3359,12 @@ pub mod api { ::core::option::Option<[::core::primitive::u8; 32usize]>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 66u8, 235u8, 74u8, 252u8, 222u8, 135u8, 19u8, 28u8, 74u8, 191u8, 170u8, 197u8, 207u8, 127u8, 77u8, 121u8, 138u8, 138u8, @@ -3204,9 +3393,12 @@ pub mod api { (::core::primitive::u32, ::core::primitive::u32), ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 196u8, 39u8, 241u8, 20u8, 150u8, 180u8, 136u8, 4u8, 195u8, 205u8, 218u8, 10u8, 130u8, 131u8, 168u8, 243u8, 207u8, 249u8, @@ -3233,9 +3425,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 229u8, 230u8, 224u8, 89u8, 49u8, 213u8, 198u8, 236u8, 144u8, 56u8, 193u8, 234u8, 62u8, 242u8, 191u8, 199u8, 105u8, 131u8, @@ -3263,9 +3458,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 169u8, 189u8, 214u8, 159u8, 181u8, 232u8, 243u8, 4u8, 113u8, 24u8, 221u8, 229u8, 27u8, 35u8, 3u8, 121u8, 136u8, 88u8, @@ -3290,9 +3488,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 239u8, 125u8, 203u8, 223u8, 161u8, 107u8, 232u8, 54u8, 158u8, 100u8, 244u8, 140u8, 119u8, 58u8, 253u8, 245u8, 73u8, 236u8, @@ -3463,9 +3664,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 191u8, 73u8, 102u8, 150u8, 65u8, 157u8, 172u8, 194u8, 7u8, 72u8, 1u8, 35u8, 54u8, 99u8, 245u8, 139u8, 40u8, 136u8, @@ -3514,9 +3718,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 148u8, 53u8, 50u8, 54u8, 13u8, 161u8, 57u8, 150u8, 16u8, 83u8, 144u8, 221u8, 59u8, 75u8, 158u8, 130u8, 39u8, 123u8, @@ -3539,9 +3746,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 70u8, 13u8, 92u8, 186u8, 80u8, 151u8, 167u8, 90u8, 158u8, 232u8, 175u8, 13u8, 103u8, 135u8, 2u8, 78u8, 16u8, 6u8, 39u8, @@ -3715,9 +3925,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 27u8, 4u8, 108u8, 55u8, 23u8, 109u8, 175u8, 25u8, 201u8, 230u8, 228u8, 51u8, 164u8, 15u8, 79u8, 10u8, 219u8, 182u8, @@ -3766,9 +3979,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 124u8, 83u8, 33u8, 230u8, 23u8, 70u8, 83u8, 59u8, 76u8, 100u8, 219u8, 100u8, 165u8, 163u8, 102u8, 193u8, 11u8, 22u8, @@ -3814,9 +4030,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 153u8, 143u8, 162u8, 33u8, 229u8, 3u8, 159u8, 153u8, 111u8, 100u8, 160u8, 250u8, 227u8, 24u8, 157u8, 226u8, 173u8, 39u8, @@ -3867,9 +4086,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 181u8, 143u8, 90u8, 135u8, 132u8, 11u8, 145u8, 85u8, 4u8, 211u8, 56u8, 110u8, 213u8, 153u8, 224u8, 106u8, 198u8, 250u8, @@ -3915,9 +4137,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 204u8, 127u8, 214u8, 137u8, 138u8, 28u8, 171u8, 169u8, 184u8, 164u8, 235u8, 114u8, 132u8, 176u8, 14u8, 207u8, 72u8, 39u8, @@ -4009,9 +4234,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 105u8, 208u8, 81u8, 30u8, 157u8, 108u8, 22u8, 122u8, 152u8, 220u8, 40u8, 97u8, 255u8, 166u8, 222u8, 11u8, 81u8, 245u8, @@ -4033,9 +4261,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Accounts<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 105u8, 208u8, 81u8, 30u8, 157u8, 108u8, 22u8, 122u8, 152u8, 220u8, 40u8, 97u8, 255u8, 166u8, 222u8, 11u8, 81u8, 245u8, @@ -4237,9 +4468,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 250u8, 8u8, 164u8, 186u8, 80u8, 220u8, 134u8, 247u8, 142u8, 121u8, 34u8, 22u8, 169u8, 39u8, 6u8, 93u8, 72u8, 47u8, 44u8, @@ -4280,9 +4514,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 232u8, 6u8, 27u8, 131u8, 163u8, 72u8, 148u8, 197u8, 14u8, 239u8, 94u8, 1u8, 32u8, 94u8, 17u8, 14u8, 123u8, 82u8, 39u8, @@ -4328,9 +4565,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 120u8, 66u8, 111u8, 84u8, 176u8, 241u8, 214u8, 118u8, 219u8, 75u8, 127u8, 222u8, 45u8, 33u8, 204u8, 147u8, 126u8, 214u8, @@ -4372,9 +4612,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 111u8, 233u8, 125u8, 71u8, 223u8, 141u8, 112u8, 94u8, 157u8, 11u8, 88u8, 7u8, 239u8, 145u8, 247u8, 183u8, 245u8, 87u8, @@ -4423,9 +4666,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 240u8, 165u8, 185u8, 144u8, 24u8, 149u8, 15u8, 46u8, 60u8, 147u8, 19u8, 187u8, 96u8, 24u8, 150u8, 53u8, 151u8, 232u8, @@ -4460,9 +4706,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 106u8, 42u8, 48u8, 136u8, 41u8, 155u8, 214u8, 112u8, 99u8, 122u8, 202u8, 250u8, 95u8, 60u8, 182u8, 13u8, 25u8, 149u8, @@ -4665,9 +4914,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 1u8, 206u8, 252u8, 237u8, 6u8, 30u8, 20u8, 232u8, 164u8, 115u8, 51u8, 156u8, 156u8, 206u8, 241u8, 187u8, 44u8, 84u8, @@ -4716,9 +4968,12 @@ pub mod api { runtime_types::pallet_balances::AccountData<::core::primitive::u128>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 129u8, 169u8, 171u8, 206u8, 229u8, 178u8, 69u8, 118u8, 199u8, 64u8, 254u8, 67u8, 16u8, 154u8, 160u8, 197u8, 177u8, 161u8, @@ -4766,9 +5021,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Account<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 129u8, 169u8, 171u8, 206u8, 229u8, 178u8, 69u8, 118u8, 199u8, 64u8, 254u8, 67u8, 16u8, 154u8, 160u8, 197u8, 177u8, 161u8, @@ -4783,9 +5041,12 @@ pub mod api { } #[doc = " Any liquidity locks on some account balances."] #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub async fn locks (& self , _0 : & :: subxt :: sp_core :: crypto :: AccountId32 , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 31u8, 76u8, 213u8, 60u8, 86u8, 11u8, 155u8, 151u8, 33u8, 212u8, 74u8, 89u8, 174u8, 74u8, 195u8, 107u8, 29u8, 163u8, @@ -4811,9 +5072,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Locks<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 31u8, 76u8, 213u8, 60u8, 86u8, 11u8, 155u8, 151u8, 33u8, 212u8, 74u8, 89u8, 174u8, 74u8, 195u8, 107u8, 29u8, 163u8, @@ -4840,9 +5104,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 103u8, 6u8, 69u8, 151u8, 81u8, 40u8, 146u8, 113u8, 56u8, 239u8, 104u8, 31u8, 168u8, 242u8, 141u8, 121u8, 213u8, 213u8, @@ -4867,9 +5134,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Reserves<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 103u8, 6u8, 69u8, 151u8, 81u8, 40u8, 146u8, 113u8, 56u8, 239u8, 104u8, 31u8, 168u8, 242u8, 141u8, 121u8, 213u8, 213u8, @@ -4892,9 +5162,12 @@ pub mod api { runtime_types::pallet_balances::Releases, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 135u8, 96u8, 28u8, 234u8, 124u8, 212u8, 56u8, 140u8, 40u8, 101u8, 235u8, 128u8, 136u8, 221u8, 182u8, 81u8, 17u8, 9u8, @@ -5037,9 +5310,12 @@ pub mod api { runtime_types::sp_arithmetic::fixed_point::FixedU128, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 232u8, 48u8, 68u8, 202u8, 209u8, 29u8, 249u8, 71u8, 0u8, 84u8, 229u8, 250u8, 176u8, 203u8, 27u8, 26u8, 34u8, 55u8, @@ -5063,9 +5339,12 @@ pub mod api { runtime_types::pallet_transaction_payment::Releases, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 219u8, 243u8, 82u8, 176u8, 65u8, 5u8, 132u8, 114u8, 8u8, 82u8, 176u8, 200u8, 97u8, 150u8, 177u8, 164u8, 166u8, 11u8, @@ -5255,9 +5534,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 5u8, 56u8, 71u8, 152u8, 103u8, 232u8, 101u8, 171u8, 200u8, 2u8, 177u8, 102u8, 0u8, 93u8, 210u8, 90u8, 56u8, 151u8, 5u8, @@ -5329,9 +5611,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 71u8, 135u8, 85u8, 172u8, 221u8, 165u8, 212u8, 2u8, 208u8, 50u8, 9u8, 92u8, 251u8, 25u8, 194u8, 123u8, 210u8, 4u8, @@ -5356,9 +5641,12 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 191u8, 57u8, 3u8, 242u8, 220u8, 123u8, 103u8, 215u8, 149u8, 120u8, 20u8, 139u8, 146u8, 234u8, 180u8, 105u8, 129u8, 128u8, @@ -5378,9 +5666,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 64u8, 3u8, 208u8, 187u8, 50u8, 45u8, 37u8, 88u8, 163u8, 226u8, 37u8, 126u8, 232u8, 107u8, 156u8, 187u8, 29u8, 15u8, @@ -5764,9 +6055,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 41u8, 8u8, 237u8, 132u8, 236u8, 61u8, 222u8, 146u8, 255u8, 136u8, 174u8, 104u8, 120u8, 64u8, 198u8, 147u8, 80u8, 237u8, @@ -5813,9 +6107,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 170u8, 38u8, 37u8, 71u8, 243u8, 41u8, 24u8, 59u8, 17u8, 229u8, 61u8, 20u8, 130u8, 167u8, 1u8, 1u8, 158u8, 180u8, @@ -5862,9 +6159,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 85u8, 188u8, 141u8, 62u8, 242u8, 15u8, 6u8, 20u8, 96u8, 220u8, 201u8, 163u8, 29u8, 136u8, 24u8, 4u8, 143u8, 13u8, @@ -5907,9 +6207,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 252u8, 47u8, 185u8, 86u8, 179u8, 203u8, 20u8, 5u8, 88u8, 252u8, 212u8, 173u8, 20u8, 202u8, 206u8, 56u8, 10u8, 186u8, @@ -5942,9 +6245,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 138u8, 13u8, 146u8, 216u8, 4u8, 27u8, 20u8, 159u8, 148u8, 25u8, 169u8, 229u8, 145u8, 2u8, 251u8, 58u8, 13u8, 128u8, @@ -5988,9 +6294,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 199u8, 181u8, 123u8, 171u8, 186u8, 9u8, 23u8, 220u8, 147u8, 7u8, 252u8, 26u8, 25u8, 195u8, 126u8, 175u8, 181u8, 118u8, @@ -6028,9 +6337,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 94u8, 20u8, 196u8, 31u8, 220u8, 125u8, 115u8, 167u8, 140u8, 3u8, 20u8, 132u8, 81u8, 120u8, 215u8, 166u8, 230u8, 56u8, @@ -6076,9 +6388,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 185u8, 62u8, 154u8, 65u8, 135u8, 104u8, 38u8, 171u8, 237u8, 16u8, 169u8, 38u8, 53u8, 161u8, 170u8, 232u8, 249u8, 185u8, @@ -6125,9 +6440,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 239u8, 105u8, 43u8, 234u8, 201u8, 103u8, 93u8, 252u8, 26u8, 52u8, 27u8, 23u8, 219u8, 153u8, 195u8, 150u8, 244u8, 13u8, @@ -6163,9 +6481,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 181u8, 82u8, 21u8, 239u8, 81u8, 194u8, 166u8, 66u8, 55u8, 156u8, 68u8, 22u8, 76u8, 251u8, 241u8, 113u8, 168u8, 8u8, @@ -6200,9 +6521,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 219u8, 143u8, 69u8, 205u8, 182u8, 155u8, 101u8, 39u8, 59u8, 214u8, 81u8, 47u8, 247u8, 54u8, 106u8, 92u8, 183u8, 42u8, @@ -6237,9 +6561,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 170u8, 156u8, 101u8, 109u8, 117u8, 199u8, 38u8, 157u8, 132u8, 210u8, 54u8, 66u8, 251u8, 10u8, 123u8, 120u8, 237u8, 31u8, @@ -6281,9 +6608,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 16u8, 81u8, 207u8, 168u8, 23u8, 236u8, 11u8, 75u8, 141u8, 107u8, 92u8, 2u8, 53u8, 111u8, 252u8, 116u8, 91u8, 120u8, @@ -6326,9 +6656,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 230u8, 242u8, 169u8, 196u8, 78u8, 145u8, 24u8, 191u8, 113u8, 68u8, 5u8, 138u8, 48u8, 51u8, 109u8, 126u8, 73u8, 136u8, @@ -6359,9 +6692,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 0u8, 119u8, 27u8, 243u8, 238u8, 65u8, 133u8, 89u8, 210u8, 202u8, 154u8, 243u8, 168u8, 158u8, 9u8, 147u8, 146u8, 215u8, @@ -6393,9 +6729,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 254u8, 115u8, 250u8, 15u8, 235u8, 119u8, 2u8, 131u8, 237u8, 144u8, 247u8, 66u8, 150u8, 92u8, 12u8, 112u8, 137u8, 195u8, @@ -6434,9 +6773,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 179u8, 118u8, 189u8, 54u8, 248u8, 141u8, 207u8, 142u8, 80u8, 37u8, 241u8, 185u8, 138u8, 254u8, 117u8, 147u8, 225u8, 118u8, @@ -6470,9 +6812,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 217u8, 175u8, 246u8, 108u8, 78u8, 134u8, 98u8, 49u8, 178u8, 209u8, 98u8, 178u8, 52u8, 242u8, 173u8, 135u8, 171u8, 70u8, @@ -6522,9 +6867,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 235u8, 65u8, 65u8, 249u8, 162u8, 235u8, 127u8, 48u8, 216u8, 51u8, 252u8, 111u8, 186u8, 191u8, 174u8, 245u8, 144u8, 77u8, @@ -6564,9 +6912,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 138u8, 156u8, 164u8, 170u8, 178u8, 236u8, 221u8, 242u8, 157u8, 176u8, 173u8, 145u8, 254u8, 94u8, 158u8, 27u8, 138u8, @@ -6617,9 +6968,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 128u8, 149u8, 139u8, 192u8, 213u8, 239u8, 248u8, 215u8, 57u8, 145u8, 177u8, 225u8, 43u8, 214u8, 228u8, 14u8, 213u8, 181u8, @@ -6663,9 +7017,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 84u8, 192u8, 207u8, 193u8, 133u8, 53u8, 93u8, 148u8, 153u8, 112u8, 54u8, 145u8, 68u8, 195u8, 42u8, 158u8, 17u8, 230u8, @@ -6712,9 +7069,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 145u8, 201u8, 168u8, 147u8, 25u8, 39u8, 62u8, 48u8, 236u8, 44u8, 45u8, 233u8, 178u8, 196u8, 117u8, 117u8, 74u8, 193u8, @@ -6764,9 +7124,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 249u8, 192u8, 107u8, 126u8, 200u8, 50u8, 63u8, 120u8, 116u8, 53u8, 183u8, 80u8, 134u8, 135u8, 49u8, 112u8, 232u8, 140u8, @@ -6827,9 +7190,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 219u8, 114u8, 146u8, 43u8, 175u8, 216u8, 70u8, 148u8, 137u8, 192u8, 77u8, 247u8, 134u8, 80u8, 188u8, 100u8, 79u8, 141u8, @@ -6860,9 +7226,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 8u8, 57u8, 61u8, 141u8, 175u8, 100u8, 174u8, 161u8, 236u8, 2u8, 133u8, 169u8, 249u8, 168u8, 236u8, 188u8, 168u8, 221u8, @@ -7501,9 +7870,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 41u8, 54u8, 118u8, 245u8, 75u8, 136u8, 220u8, 25u8, 55u8, 255u8, 149u8, 177u8, 49u8, 155u8, 167u8, 188u8, 170u8, 29u8, @@ -7526,9 +7898,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 245u8, 75u8, 214u8, 110u8, 66u8, 164u8, 86u8, 206u8, 69u8, 89u8, 12u8, 111u8, 117u8, 16u8, 228u8, 184u8, 207u8, 6u8, @@ -7551,9 +7926,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 82u8, 95u8, 128u8, 55u8, 136u8, 134u8, 71u8, 117u8, 135u8, 76u8, 44u8, 46u8, 174u8, 34u8, 170u8, 228u8, 175u8, 1u8, @@ -7580,9 +7958,12 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 103u8, 93u8, 29u8, 166u8, 244u8, 19u8, 78u8, 182u8, 235u8, 37u8, 199u8, 127u8, 211u8, 124u8, 168u8, 145u8, 111u8, 251u8, @@ -7608,9 +7989,12 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 9u8, 214u8, 190u8, 93u8, 116u8, 143u8, 174u8, 103u8, 102u8, 25u8, 123u8, 201u8, 12u8, 44u8, 188u8, 241u8, 74u8, 33u8, @@ -7632,9 +8016,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Bonded<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 9u8, 214u8, 190u8, 93u8, 116u8, 143u8, 174u8, 103u8, 102u8, 25u8, 123u8, 201u8, 12u8, 44u8, 188u8, 241u8, 74u8, 33u8, @@ -7653,9 +8040,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 187u8, 66u8, 149u8, 226u8, 72u8, 219u8, 57u8, 246u8, 102u8, 47u8, 71u8, 12u8, 219u8, 204u8, 127u8, 223u8, 58u8, 134u8, @@ -7678,9 +8068,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 48u8, 105u8, 85u8, 178u8, 142u8, 208u8, 208u8, 19u8, 236u8, 130u8, 129u8, 169u8, 35u8, 245u8, 66u8, 182u8, 92u8, 20u8, @@ -7707,9 +8100,12 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 198u8, 29u8, 53u8, 56u8, 181u8, 170u8, 164u8, 240u8, 27u8, 171u8, 69u8, 57u8, 151u8, 40u8, 23u8, 166u8, 157u8, 68u8, @@ -7740,9 +8136,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 91u8, 46u8, 130u8, 228u8, 126u8, 95u8, 46u8, 57u8, 222u8, 98u8, 250u8, 145u8, 83u8, 135u8, 240u8, 153u8, 57u8, 21u8, @@ -7764,9 +8163,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Ledger<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 91u8, 46u8, 130u8, 228u8, 126u8, 95u8, 46u8, 57u8, 222u8, 98u8, 250u8, 145u8, 83u8, 135u8, 240u8, 153u8, 57u8, 21u8, @@ -7790,9 +8192,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 108u8, 35u8, 28u8, 189u8, 146u8, 103u8, 200u8, 73u8, 220u8, 230u8, 193u8, 7u8, 66u8, 147u8, 55u8, 34u8, 1u8, 21u8, 255u8, @@ -7817,9 +8222,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Payee<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 108u8, 35u8, 28u8, 189u8, 146u8, 103u8, 200u8, 73u8, 220u8, 230u8, 193u8, 7u8, 66u8, 147u8, 55u8, 34u8, 1u8, 21u8, 255u8, @@ -7841,9 +8249,12 @@ pub mod api { runtime_types::pallet_staking::ValidatorPrefs, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 45u8, 57u8, 106u8, 30u8, 123u8, 251u8, 148u8, 37u8, 52u8, 129u8, 103u8, 88u8, 54u8, 216u8, 174u8, 181u8, 51u8, 181u8, @@ -7868,9 +8279,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Validators<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 45u8, 57u8, 106u8, 30u8, 123u8, 251u8, 148u8, 37u8, 52u8, 129u8, 103u8, 88u8, 54u8, 216u8, 174u8, 181u8, 51u8, 181u8, @@ -7889,9 +8303,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 139u8, 25u8, 223u8, 6u8, 160u8, 239u8, 212u8, 85u8, 36u8, 185u8, 69u8, 63u8, 21u8, 156u8, 144u8, 241u8, 112u8, 85u8, @@ -7918,9 +8335,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 250u8, 62u8, 16u8, 68u8, 192u8, 216u8, 236u8, 211u8, 217u8, 9u8, 213u8, 49u8, 41u8, 37u8, 58u8, 62u8, 131u8, 112u8, 64u8, @@ -7958,9 +8378,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 176u8, 26u8, 169u8, 68u8, 99u8, 216u8, 95u8, 198u8, 5u8, 123u8, 21u8, 83u8, 220u8, 140u8, 122u8, 111u8, 22u8, 133u8, @@ -7997,9 +8420,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Nominators<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 176u8, 26u8, 169u8, 68u8, 99u8, 216u8, 95u8, 198u8, 5u8, 123u8, 21u8, 83u8, 220u8, 140u8, 122u8, 111u8, 22u8, 133u8, @@ -8018,9 +8444,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 31u8, 94u8, 130u8, 138u8, 75u8, 8u8, 38u8, 162u8, 181u8, 5u8, 125u8, 116u8, 9u8, 51u8, 22u8, 234u8, 40u8, 117u8, 215u8, @@ -8047,9 +8476,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 180u8, 190u8, 180u8, 66u8, 235u8, 173u8, 76u8, 160u8, 197u8, 92u8, 96u8, 165u8, 220u8, 188u8, 32u8, 119u8, 3u8, 73u8, @@ -8074,9 +8506,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 105u8, 150u8, 49u8, 122u8, 4u8, 78u8, 8u8, 121u8, 34u8, 136u8, 157u8, 227u8, 59u8, 139u8, 7u8, 253u8, 7u8, 10u8, @@ -8101,9 +8536,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 230u8, 144u8, 49u8, 201u8, 36u8, 253u8, 97u8, 135u8, 57u8, 169u8, 157u8, 138u8, 21u8, 35u8, 14u8, 2u8, 151u8, 214u8, @@ -8129,9 +8567,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 92u8, 157u8, 168u8, 144u8, 132u8, 3u8, 212u8, 80u8, 230u8, 229u8, 251u8, 218u8, 97u8, 55u8, 79u8, 100u8, 163u8, 91u8, @@ -8156,9 +8597,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasStartSessionIndex<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 92u8, 157u8, 168u8, 144u8, 132u8, 3u8, 212u8, 80u8, 230u8, 229u8, 251u8, 218u8, 97u8, 55u8, 79u8, 100u8, 163u8, 91u8, @@ -8189,9 +8633,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 176u8, 250u8, 76u8, 183u8, 219u8, 180u8, 156u8, 138u8, 111u8, 153u8, 154u8, 90u8, 14u8, 194u8, 56u8, 133u8, 197u8, 199u8, @@ -8221,9 +8668,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasStakers<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 176u8, 250u8, 76u8, 183u8, 219u8, 180u8, 156u8, 138u8, 111u8, 153u8, 154u8, 90u8, 14u8, 194u8, 56u8, 133u8, 197u8, 199u8, @@ -8259,9 +8709,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 91u8, 87u8, 165u8, 255u8, 253u8, 169u8, 48u8, 28u8, 254u8, 124u8, 93u8, 108u8, 252u8, 15u8, 141u8, 139u8, 152u8, 118u8, @@ -8296,9 +8749,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasStakersClipped<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 91u8, 87u8, 165u8, 255u8, 253u8, 169u8, 48u8, 28u8, 254u8, 124u8, 93u8, 108u8, 252u8, 15u8, 141u8, 139u8, 152u8, 118u8, @@ -8325,9 +8781,12 @@ pub mod api { runtime_types::pallet_staking::ValidatorPrefs, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 8u8, 55u8, 222u8, 216u8, 126u8, 126u8, 131u8, 18u8, 145u8, 58u8, 91u8, 123u8, 92u8, 19u8, 178u8, 200u8, 133u8, 140u8, @@ -8356,9 +8815,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasValidatorPrefs<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 8u8, 55u8, 222u8, 216u8, 126u8, 126u8, 131u8, 18u8, 145u8, 58u8, 91u8, 123u8, 92u8, 19u8, 178u8, 200u8, 133u8, 140u8, @@ -8382,9 +8844,12 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 87u8, 80u8, 156u8, 123u8, 107u8, 77u8, 203u8, 37u8, 231u8, 84u8, 124u8, 155u8, 227u8, 212u8, 212u8, 179u8, 84u8, 161u8, @@ -8408,9 +8873,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasValidatorReward<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 87u8, 80u8, 156u8, 123u8, 107u8, 77u8, 203u8, 37u8, 231u8, 84u8, 124u8, 155u8, 227u8, 212u8, 212u8, 179u8, 84u8, 161u8, @@ -8435,9 +8903,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 76u8, 221u8, 158u8, 62u8, 3u8, 254u8, 139u8, 170u8, 103u8, 218u8, 191u8, 103u8, 57u8, 212u8, 208u8, 7u8, 105u8, 52u8, @@ -8463,9 +8934,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasRewardPoints<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 76u8, 221u8, 158u8, 62u8, 3u8, 254u8, 139u8, 170u8, 103u8, 218u8, 191u8, 103u8, 57u8, 212u8, 208u8, 7u8, 105u8, 52u8, @@ -8486,9 +8960,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 224u8, 240u8, 168u8, 69u8, 148u8, 140u8, 249u8, 240u8, 4u8, 46u8, 77u8, 11u8, 224u8, 65u8, 26u8, 239u8, 1u8, 110u8, 53u8, @@ -8514,9 +8991,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasTotalStake<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 224u8, 240u8, 168u8, 69u8, 148u8, 140u8, 249u8, 240u8, 4u8, 46u8, 77u8, 11u8, 224u8, 65u8, 26u8, 239u8, 1u8, 110u8, 53u8, @@ -8537,9 +9017,12 @@ pub mod api { runtime_types::pallet_staking::Forcing, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 221u8, 41u8, 71u8, 21u8, 28u8, 193u8, 65u8, 97u8, 103u8, 37u8, 145u8, 146u8, 183u8, 194u8, 57u8, 131u8, 214u8, 136u8, @@ -8566,9 +9049,12 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 92u8, 55u8, 255u8, 233u8, 174u8, 125u8, 32u8, 21u8, 78u8, 237u8, 123u8, 241u8, 113u8, 243u8, 48u8, 101u8, 190u8, 165u8, @@ -8592,9 +9078,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 126u8, 218u8, 66u8, 92u8, 82u8, 124u8, 145u8, 161u8, 40u8, 176u8, 14u8, 211u8, 178u8, 216u8, 8u8, 156u8, 83u8, 14u8, @@ -8625,9 +9114,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 213u8, 28u8, 144u8, 139u8, 187u8, 184u8, 7u8, 192u8, 114u8, 57u8, 238u8, 66u8, 7u8, 254u8, 41u8, 230u8, 189u8, 188u8, @@ -8652,9 +9144,12 @@ pub mod api { ::subxt::KeyIter<'a, T, UnappliedSlashes<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 213u8, 28u8, 144u8, 139u8, 187u8, 184u8, 7u8, 192u8, 114u8, 57u8, 238u8, 66u8, 7u8, 254u8, 41u8, 230u8, 189u8, 188u8, @@ -8678,9 +9173,12 @@ pub mod api { ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 243u8, 162u8, 236u8, 198u8, 122u8, 182u8, 37u8, 55u8, 171u8, 156u8, 235u8, 223u8, 226u8, 129u8, 89u8, 206u8, 2u8, 155u8, @@ -8711,9 +9209,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 241u8, 177u8, 227u8, 239u8, 150u8, 186u8, 50u8, 97u8, 144u8, 224u8, 24u8, 149u8, 189u8, 166u8, 71u8, 232u8, 221u8, 129u8, @@ -8736,9 +9237,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ValidatorSlashInEra<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 241u8, 177u8, 227u8, 239u8, 150u8, 186u8, 50u8, 97u8, 144u8, 224u8, 24u8, 149u8, 189u8, 166u8, 71u8, 232u8, 221u8, 129u8, @@ -8761,9 +9265,12 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 149u8, 144u8, 51u8, 167u8, 71u8, 119u8, 218u8, 110u8, 25u8, 45u8, 168u8, 149u8, 62u8, 195u8, 248u8, 50u8, 215u8, 216u8, @@ -8785,9 +9292,12 @@ pub mod api { ::subxt::KeyIter<'a, T, NominatorSlashInEra<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 149u8, 144u8, 51u8, 167u8, 71u8, 119u8, 218u8, 110u8, 25u8, 45u8, 168u8, 149u8, 62u8, 195u8, 248u8, 50u8, 215u8, 216u8, @@ -8811,9 +9321,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 22u8, 73u8, 200u8, 194u8, 106u8, 157u8, 84u8, 5u8, 119u8, 5u8, 73u8, 247u8, 125u8, 213u8, 80u8, 37u8, 154u8, 192u8, @@ -8835,9 +9348,12 @@ pub mod api { ::subxt::KeyIter<'a, T, SlashingSpans<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 22u8, 73u8, 200u8, 194u8, 106u8, 157u8, 84u8, 5u8, 119u8, 5u8, 73u8, 247u8, 125u8, 213u8, 80u8, 37u8, 154u8, 192u8, @@ -8863,9 +9379,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 95u8, 42u8, 40u8, 167u8, 201u8, 140u8, 142u8, 55u8, 69u8, 238u8, 248u8, 118u8, 209u8, 11u8, 117u8, 132u8, 179u8, 33u8, @@ -8891,9 +9410,12 @@ pub mod api { ::subxt::KeyIter<'a, T, SpanSlash<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 95u8, 42u8, 40u8, 167u8, 201u8, 140u8, 142u8, 55u8, 69u8, 238u8, 248u8, 118u8, 209u8, 11u8, 117u8, 132u8, 179u8, 33u8, @@ -8914,9 +9436,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 2u8, 167u8, 88u8, 76u8, 113u8, 225u8, 232u8, 80u8, 183u8, 162u8, 104u8, 28u8, 162u8, 13u8, 120u8, 45u8, 200u8, 130u8, @@ -8938,9 +9463,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 38u8, 22u8, 56u8, 250u8, 17u8, 154u8, 99u8, 37u8, 155u8, 253u8, 100u8, 117u8, 5u8, 239u8, 31u8, 190u8, 53u8, 241u8, @@ -8973,9 +9501,12 @@ pub mod api { ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::bool)>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 94u8, 254u8, 0u8, 50u8, 76u8, 232u8, 51u8, 153u8, 118u8, 14u8, 70u8, 101u8, 112u8, 215u8, 173u8, 82u8, 182u8, 104u8, @@ -9003,9 +9534,12 @@ pub mod api { runtime_types::pallet_staking::Releases, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 156u8, 107u8, 113u8, 89u8, 107u8, 89u8, 171u8, 229u8, 13u8, 96u8, 203u8, 67u8, 119u8, 153u8, 199u8, 158u8, 63u8, 114u8, @@ -9034,9 +9568,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 254u8, 131u8, 112u8, 90u8, 234u8, 72u8, 26u8, 240u8, 38u8, 14u8, 128u8, 234u8, 133u8, 169u8, 66u8, 48u8, 234u8, 170u8, @@ -9321,9 +9858,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 82u8, 209u8, 30u8, 189u8, 152u8, 16u8, 7u8, 24u8, 178u8, 140u8, 17u8, 226u8, 97u8, 37u8, 80u8, 211u8, 252u8, 36u8, @@ -9345,9 +9885,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Reports<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 82u8, 209u8, 30u8, 189u8, 152u8, 16u8, 7u8, 24u8, 178u8, 140u8, 17u8, 226u8, 97u8, 37u8, 80u8, 211u8, 252u8, 36u8, @@ -9370,9 +9913,12 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::H256>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 110u8, 42u8, 178u8, 19u8, 180u8, 109u8, 26u8, 134u8, 74u8, 223u8, 19u8, 172u8, 149u8, 194u8, 228u8, 11u8, 205u8, 189u8, @@ -9397,9 +9943,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ConcurrentReportsIndex<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 110u8, 42u8, 178u8, 19u8, 180u8, 109u8, 26u8, 134u8, 74u8, 223u8, 19u8, 172u8, 149u8, 194u8, 228u8, 11u8, 205u8, 189u8, @@ -9426,9 +9975,12 @@ pub mod api { ::std::vec::Vec<::core::primitive::u8>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 162u8, 66u8, 131u8, 48u8, 250u8, 237u8, 179u8, 214u8, 36u8, 137u8, 226u8, 136u8, 120u8, 61u8, 215u8, 43u8, 164u8, 50u8, @@ -9458,9 +10010,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ReportsByKindIndex<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 162u8, 66u8, 131u8, 48u8, 250u8, 237u8, 179u8, 214u8, 36u8, 137u8, 226u8, 136u8, 120u8, 61u8, 215u8, 43u8, 164u8, 50u8, @@ -9552,9 +10107,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 194u8, 88u8, 145u8, 74u8, 215u8, 181u8, 126u8, 21u8, 193u8, 174u8, 42u8, 142u8, 229u8, 213u8, 104u8, 36u8, 134u8, 83u8, @@ -9597,9 +10155,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 200u8, 255u8, 4u8, 213u8, 188u8, 92u8, 99u8, 116u8, 163u8, 152u8, 29u8, 35u8, 133u8, 119u8, 246u8, 44u8, 91u8, 31u8, @@ -9726,9 +10287,12 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 186u8, 248u8, 234u8, 74u8, 245u8, 141u8, 90u8, 152u8, 226u8, 220u8, 255u8, 104u8, 174u8, 1u8, 37u8, 152u8, 23u8, 208u8, @@ -9751,9 +10315,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 148u8, 179u8, 159u8, 15u8, 197u8, 95u8, 214u8, 30u8, 209u8, 251u8, 183u8, 231u8, 91u8, 25u8, 181u8, 191u8, 143u8, 252u8, @@ -9777,9 +10344,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 105u8, 140u8, 235u8, 218u8, 96u8, 100u8, 252u8, 10u8, 58u8, 221u8, 244u8, 251u8, 67u8, 91u8, 80u8, 202u8, 152u8, 42u8, @@ -9808,9 +10378,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 94u8, 85u8, 104u8, 215u8, 108u8, 102u8, 70u8, 179u8, 201u8, 132u8, 63u8, 148u8, 29u8, 97u8, 185u8, 117u8, 153u8, 236u8, @@ -9839,9 +10412,12 @@ pub mod api { ::std::vec::Vec<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 135u8, 22u8, 22u8, 97u8, 82u8, 217u8, 144u8, 141u8, 121u8, 240u8, 189u8, 16u8, 176u8, 88u8, 177u8, 31u8, 20u8, 242u8, @@ -9867,9 +10443,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 18u8, 229u8, 236u8, 115u8, 189u8, 239u8, 3u8, 100u8, 6u8, 254u8, 237u8, 61u8, 223u8, 21u8, 226u8, 203u8, 214u8, 213u8, @@ -9891,9 +10470,12 @@ pub mod api { ::subxt::KeyIter<'a, T, NextKeys<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 18u8, 229u8, 236u8, 115u8, 189u8, 239u8, 3u8, 100u8, 6u8, 254u8, 237u8, 61u8, 223u8, 21u8, 226u8, 203u8, 214u8, 213u8, @@ -9916,9 +10498,12 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 49u8, 245u8, 212u8, 141u8, 211u8, 208u8, 109u8, 102u8, 249u8, 161u8, 41u8, 93u8, 220u8, 230u8, 14u8, 59u8, 251u8, 176u8, @@ -9940,9 +10525,12 @@ pub mod api { ::subxt::KeyIter<'a, T, KeyOwner<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 49u8, 245u8, 212u8, 141u8, 211u8, 208u8, 109u8, 102u8, 249u8, 161u8, 41u8, 93u8, 220u8, 230u8, 14u8, 59u8, 251u8, 176u8, @@ -10040,9 +10628,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 230u8, 252u8, 24u8, 207u8, 164u8, 127u8, 177u8, 30u8, 113u8, 175u8, 207u8, 252u8, 230u8, 225u8, 181u8, 190u8, 236u8, @@ -10085,9 +10676,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 141u8, 235u8, 27u8, 135u8, 124u8, 124u8, 234u8, 51u8, 100u8, 105u8, 188u8, 248u8, 133u8, 10u8, 84u8, 14u8, 40u8, 235u8, @@ -10128,9 +10722,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 227u8, 98u8, 249u8, 158u8, 96u8, 124u8, 72u8, 188u8, 27u8, 215u8, 73u8, 62u8, 103u8, 79u8, 38u8, 48u8, 212u8, 88u8, @@ -10256,9 +10853,12 @@ pub mod api { runtime_types::pallet_grandpa::StoredState<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 159u8, 75u8, 78u8, 23u8, 98u8, 89u8, 239u8, 230u8, 192u8, 67u8, 139u8, 222u8, 151u8, 237u8, 216u8, 20u8, 235u8, 247u8, @@ -10287,9 +10887,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 128u8, 176u8, 209u8, 41u8, 231u8, 111u8, 205u8, 198u8, 154u8, 44u8, 228u8, 231u8, 44u8, 110u8, 74u8, 9u8, 31u8, 86u8, @@ -10311,9 +10914,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 99u8, 43u8, 245u8, 201u8, 60u8, 9u8, 122u8, 99u8, 188u8, 29u8, 67u8, 6u8, 193u8, 133u8, 179u8, 67u8, 202u8, 208u8, @@ -10338,9 +10944,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 219u8, 8u8, 37u8, 78u8, 150u8, 55u8, 0u8, 57u8, 201u8, 170u8, 186u8, 189u8, 56u8, 161u8, 44u8, 15u8, 53u8, 178u8, 224u8, @@ -10361,9 +10970,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 129u8, 7u8, 62u8, 101u8, 199u8, 60u8, 56u8, 33u8, 54u8, 158u8, 20u8, 178u8, 244u8, 145u8, 189u8, 197u8, 157u8, 163u8, @@ -10392,9 +11004,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 91u8, 175u8, 145u8, 127u8, 242u8, 81u8, 13u8, 231u8, 110u8, 11u8, 166u8, 169u8, 103u8, 146u8, 123u8, 133u8, 157u8, 15u8, @@ -10419,9 +11034,12 @@ pub mod api { ::subxt::KeyIter<'a, T, SetIdSession<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 91u8, 175u8, 145u8, 127u8, 242u8, 81u8, 13u8, 231u8, 110u8, 11u8, 166u8, 169u8, 103u8, 146u8, 123u8, 133u8, 157u8, 15u8, @@ -10535,9 +11153,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 246u8, 83u8, 28u8, 233u8, 69u8, 55u8, 28u8, 178u8, 82u8, 159u8, 56u8, 241u8, 111u8, 78u8, 194u8, 15u8, 14u8, 250u8, @@ -10679,9 +11300,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 108u8, 100u8, 85u8, 198u8, 226u8, 122u8, 94u8, 225u8, 97u8, 154u8, 135u8, 95u8, 106u8, 28u8, 185u8, 78u8, 192u8, 196u8, @@ -10699,9 +11323,12 @@ pub mod api { } } #[doc = " The current set of keys that may issue a heartbeat."] pub async fn keys (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 105u8, 250u8, 99u8, 106u8, 9u8, 29u8, 73u8, 176u8, 158u8, 247u8, 28u8, 171u8, 95u8, 1u8, 109u8, 11u8, 231u8, 52u8, @@ -10733,9 +11360,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 29u8, 40u8, 67u8, 222u8, 59u8, 104u8, 24u8, 193u8, 249u8, 200u8, 152u8, 225u8, 72u8, 243u8, 140u8, 114u8, 121u8, 216u8, @@ -10758,9 +11388,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ReceivedHeartbeats<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 29u8, 40u8, 67u8, 222u8, 59u8, 104u8, 24u8, 193u8, 249u8, 200u8, 152u8, 225u8, 72u8, 243u8, 140u8, 114u8, 121u8, 216u8, @@ -10782,9 +11415,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 94u8, 193u8, 107u8, 126u8, 3u8, 13u8, 28u8, 151u8, 197u8, 226u8, 224u8, 48u8, 138u8, 113u8, 31u8, 57u8, 111u8, 184u8, @@ -10810,9 +11446,12 @@ pub mod api { ::subxt::KeyIter<'a, T, AuthoredBlocks<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 94u8, 193u8, 107u8, 126u8, 3u8, 13u8, 28u8, 151u8, 197u8, 226u8, 224u8, 48u8, 138u8, 113u8, 31u8, 57u8, 111u8, 184u8, @@ -11155,9 +11794,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 149u8, 60u8, 16u8, 143u8, 114u8, 16u8, 124u8, 96u8, 97u8, 5u8, 176u8, 137u8, 188u8, 164u8, 65u8, 145u8, 142u8, 104u8, @@ -11199,9 +11841,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 37u8, 226u8, 138u8, 26u8, 138u8, 46u8, 39u8, 147u8, 22u8, 32u8, 245u8, 40u8, 49u8, 228u8, 218u8, 225u8, 72u8, 89u8, @@ -11244,9 +11889,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 1u8, 235u8, 77u8, 58u8, 54u8, 224u8, 30u8, 168u8, 150u8, 169u8, 20u8, 172u8, 137u8, 191u8, 189u8, 184u8, 28u8, 118u8, @@ -11282,9 +11930,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 4u8, 129u8, 205u8, 102u8, 202u8, 197u8, 75u8, 155u8, 24u8, 125u8, 157u8, 73u8, 50u8, 243u8, 173u8, 103u8, 49u8, 60u8, @@ -11321,9 +11972,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 50u8, 82u8, 155u8, 206u8, 57u8, 61u8, 64u8, 43u8, 30u8, 71u8, 89u8, 91u8, 221u8, 46u8, 15u8, 222u8, 15u8, 211u8, 56u8, @@ -11362,9 +12016,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 18u8, 92u8, 204u8, 120u8, 189u8, 60u8, 223u8, 166u8, 213u8, 49u8, 20u8, 131u8, 202u8, 1u8, 87u8, 226u8, 168u8, 156u8, @@ -11403,9 +12060,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 51u8, 75u8, 236u8, 51u8, 53u8, 39u8, 26u8, 231u8, 212u8, 191u8, 175u8, 233u8, 181u8, 156u8, 210u8, 221u8, 181u8, @@ -11450,9 +12110,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 232u8, 255u8, 150u8, 13u8, 151u8, 28u8, 253u8, 37u8, 183u8, 127u8, 53u8, 228u8, 160u8, 11u8, 223u8, 48u8, 74u8, 5u8, @@ -11493,9 +12156,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 230u8, 207u8, 43u8, 137u8, 173u8, 97u8, 143u8, 183u8, 193u8, 78u8, 252u8, 104u8, 237u8, 32u8, 151u8, 164u8, 91u8, 247u8, @@ -11530,9 +12196,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 107u8, 144u8, 114u8, 224u8, 39u8, 217u8, 156u8, 202u8, 62u8, 4u8, 196u8, 63u8, 145u8, 196u8, 107u8, 241u8, 3u8, 61u8, @@ -11567,9 +12236,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 130u8, 218u8, 212u8, 143u8, 89u8, 134u8, 207u8, 161u8, 165u8, 202u8, 237u8, 237u8, 81u8, 125u8, 165u8, 147u8, 222u8, 198u8, @@ -11619,9 +12291,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 33u8, 155u8, 180u8, 53u8, 39u8, 251u8, 59u8, 100u8, 16u8, 124u8, 209u8, 40u8, 42u8, 152u8, 3u8, 109u8, 97u8, 211u8, @@ -11664,9 +12339,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 165u8, 40u8, 183u8, 209u8, 57u8, 153u8, 111u8, 29u8, 114u8, 109u8, 107u8, 235u8, 97u8, 61u8, 53u8, 155u8, 44u8, 245u8, @@ -11698,9 +12376,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 59u8, 126u8, 254u8, 223u8, 252u8, 225u8, 75u8, 185u8, 188u8, 181u8, 42u8, 179u8, 211u8, 73u8, 12u8, 141u8, 243u8, 197u8, @@ -11738,9 +12419,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 121u8, 179u8, 204u8, 32u8, 104u8, 133u8, 99u8, 153u8, 226u8, 190u8, 89u8, 121u8, 232u8, 154u8, 89u8, 133u8, 124u8, 222u8, @@ -11769,9 +12453,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 102u8, 20u8, 213u8, 32u8, 64u8, 28u8, 150u8, 241u8, 173u8, 182u8, 201u8, 70u8, 52u8, 211u8, 95u8, 211u8, 127u8, 12u8, @@ -11811,9 +12498,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 240u8, 77u8, 42u8, 178u8, 110u8, 117u8, 152u8, 158u8, 64u8, 26u8, 49u8, 37u8, 177u8, 178u8, 203u8, 227u8, 23u8, 251u8, @@ -11842,9 +12532,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 119u8, 17u8, 140u8, 81u8, 7u8, 103u8, 162u8, 112u8, 160u8, 179u8, 116u8, 34u8, 126u8, 150u8, 64u8, 117u8, 93u8, 225u8, @@ -11888,9 +12581,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 45u8, 191u8, 46u8, 19u8, 87u8, 216u8, 48u8, 29u8, 124u8, 205u8, 39u8, 178u8, 158u8, 95u8, 163u8, 116u8, 232u8, 58u8, @@ -11928,9 +12624,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 106u8, 17u8, 189u8, 71u8, 208u8, 26u8, 49u8, 71u8, 162u8, 196u8, 126u8, 192u8, 242u8, 239u8, 77u8, 196u8, 62u8, 171u8, @@ -11985,9 +12684,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 33u8, 72u8, 14u8, 166u8, 152u8, 18u8, 232u8, 153u8, 163u8, 96u8, 146u8, 180u8, 98u8, 155u8, 119u8, 75u8, 247u8, 175u8, @@ -12031,9 +12733,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 43u8, 194u8, 32u8, 219u8, 87u8, 143u8, 240u8, 34u8, 236u8, 232u8, 128u8, 7u8, 99u8, 113u8, 106u8, 124u8, 92u8, 115u8, @@ -12063,9 +12768,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 246u8, 188u8, 9u8, 244u8, 56u8, 81u8, 201u8, 59u8, 212u8, 11u8, 204u8, 7u8, 173u8, 7u8, 212u8, 34u8, 173u8, 248u8, @@ -12112,9 +12820,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 105u8, 99u8, 153u8, 150u8, 122u8, 234u8, 105u8, 238u8, 152u8, 152u8, 121u8, 181u8, 133u8, 246u8, 159u8, 35u8, 8u8, 65u8, @@ -12152,9 +12863,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 26u8, 117u8, 180u8, 24u8, 12u8, 177u8, 77u8, 254u8, 113u8, 53u8, 146u8, 48u8, 164u8, 255u8, 45u8, 205u8, 207u8, 46u8, @@ -12557,9 +13271,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 91u8, 14u8, 171u8, 94u8, 37u8, 157u8, 46u8, 157u8, 254u8, 13u8, 68u8, 144u8, 23u8, 146u8, 128u8, 159u8, 9u8, 174u8, @@ -12588,9 +13305,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 78u8, 208u8, 211u8, 20u8, 85u8, 237u8, 161u8, 149u8, 99u8, 158u8, 6u8, 54u8, 204u8, 228u8, 132u8, 10u8, 75u8, 247u8, @@ -12621,9 +13341,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 116u8, 57u8, 200u8, 96u8, 150u8, 62u8, 162u8, 169u8, 28u8, 18u8, 134u8, 161u8, 210u8, 217u8, 80u8, 225u8, 22u8, 185u8, @@ -12647,9 +13370,12 @@ pub mod api { ::subxt::KeyIter<'a, T, DepositOf<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 116u8, 57u8, 200u8, 96u8, 150u8, 62u8, 162u8, 169u8, 28u8, 18u8, 134u8, 161u8, 210u8, 217u8, 80u8, 225u8, 22u8, 185u8, @@ -12678,9 +13404,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 20u8, 82u8, 223u8, 51u8, 178u8, 115u8, 71u8, 83u8, 23u8, 15u8, 85u8, 66u8, 0u8, 69u8, 68u8, 20u8, 28u8, 159u8, 74u8, @@ -12703,9 +13432,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Preimages<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 20u8, 82u8, 223u8, 51u8, 178u8, 115u8, 71u8, 83u8, 23u8, 15u8, 85u8, 66u8, 0u8, 69u8, 68u8, 20u8, 28u8, 159u8, 74u8, @@ -12724,9 +13456,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 153u8, 210u8, 106u8, 244u8, 156u8, 70u8, 124u8, 251u8, 123u8, 75u8, 7u8, 189u8, 199u8, 145u8, 95u8, 119u8, 137u8, 11u8, @@ -12750,9 +13485,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 4u8, 51u8, 108u8, 11u8, 48u8, 165u8, 19u8, 251u8, 182u8, 76u8, 163u8, 73u8, 227u8, 2u8, 212u8, 74u8, 128u8, 27u8, @@ -12786,9 +13524,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 112u8, 206u8, 173u8, 93u8, 255u8, 76u8, 85u8, 122u8, 24u8, 97u8, 177u8, 67u8, 44u8, 143u8, 53u8, 159u8, 206u8, 135u8, @@ -12812,9 +13553,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ReferendumInfoOf<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 112u8, 206u8, 173u8, 93u8, 255u8, 76u8, 85u8, 122u8, 24u8, 97u8, 177u8, 67u8, 44u8, 143u8, 53u8, 159u8, 206u8, 135u8, @@ -12843,9 +13587,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 194u8, 13u8, 151u8, 207u8, 194u8, 79u8, 233u8, 214u8, 193u8, 52u8, 78u8, 62u8, 71u8, 35u8, 139u8, 11u8, 41u8, 163u8, @@ -12873,9 +13620,12 @@ pub mod api { ::subxt::KeyIter<'a, T, VotingOf<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 194u8, 13u8, 151u8, 207u8, 194u8, 79u8, 233u8, 214u8, 193u8, 52u8, 78u8, 62u8, 71u8, 35u8, 139u8, 11u8, 41u8, 163u8, @@ -12895,9 +13645,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 3u8, 67u8, 106u8, 1u8, 89u8, 204u8, 4u8, 145u8, 121u8, 44u8, 34u8, 76u8, 18u8, 206u8, 65u8, 214u8, 222u8, 82u8, 31u8, @@ -12928,9 +13681,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 167u8, 226u8, 113u8, 10u8, 12u8, 157u8, 190u8, 117u8, 233u8, 177u8, 254u8, 126u8, 2u8, 55u8, 100u8, 249u8, 78u8, 127u8, @@ -12957,9 +13713,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 9u8, 76u8, 174u8, 143u8, 210u8, 103u8, 197u8, 219u8, 152u8, 134u8, 67u8, 78u8, 109u8, 39u8, 246u8, 214u8, 3u8, 51u8, @@ -12982,9 +13741,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Blacklist<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 9u8, 76u8, 174u8, 143u8, 210u8, 103u8, 197u8, 219u8, 152u8, 134u8, 67u8, 78u8, 109u8, 39u8, 246u8, 214u8, 3u8, 51u8, @@ -13004,9 +13766,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 176u8, 55u8, 142u8, 79u8, 35u8, 110u8, 215u8, 163u8, 134u8, 172u8, 171u8, 71u8, 180u8, 175u8, 7u8, 29u8, 126u8, 141u8, @@ -13031,9 +13796,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Cancellations<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 176u8, 55u8, 142u8, 79u8, 35u8, 110u8, 215u8, 163u8, 134u8, 172u8, 171u8, 71u8, 180u8, 175u8, 7u8, 29u8, 126u8, 141u8, @@ -13056,9 +13824,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 39u8, 219u8, 134u8, 64u8, 250u8, 96u8, 95u8, 156u8, 100u8, 236u8, 18u8, 78u8, 59u8, 146u8, 5u8, 245u8, 113u8, 125u8, @@ -13501,9 +14272,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 228u8, 186u8, 17u8, 12u8, 231u8, 231u8, 139u8, 15u8, 96u8, 200u8, 68u8, 27u8, 61u8, 106u8, 245u8, 199u8, 120u8, 141u8, @@ -13547,9 +14321,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 170u8, 77u8, 65u8, 3u8, 95u8, 88u8, 81u8, 103u8, 220u8, 72u8, 237u8, 80u8, 181u8, 46u8, 196u8, 106u8, 142u8, 55u8, 244u8, @@ -13609,9 +14386,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 180u8, 170u8, 72u8, 21u8, 96u8, 25u8, 177u8, 147u8, 98u8, 143u8, 186u8, 112u8, 99u8, 197u8, 146u8, 170u8, 35u8, 195u8, @@ -13660,9 +14440,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 184u8, 236u8, 80u8, 133u8, 26u8, 207u8, 3u8, 2u8, 120u8, 27u8, 38u8, 135u8, 195u8, 86u8, 169u8, 229u8, 125u8, 253u8, @@ -13729,9 +14512,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 242u8, 208u8, 108u8, 202u8, 24u8, 139u8, 8u8, 150u8, 108u8, 217u8, 30u8, 209u8, 178u8, 1u8, 80u8, 25u8, 154u8, 146u8, @@ -13778,9 +14564,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 199u8, 113u8, 221u8, 167u8, 60u8, 241u8, 77u8, 166u8, 205u8, 191u8, 183u8, 121u8, 191u8, 206u8, 230u8, 212u8, 215u8, @@ -13963,9 +14752,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 174u8, 75u8, 108u8, 245u8, 86u8, 50u8, 107u8, 212u8, 244u8, 113u8, 232u8, 168u8, 194u8, 33u8, 247u8, 97u8, 54u8, 115u8, @@ -13991,9 +14783,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 75u8, 36u8, 235u8, 242u8, 206u8, 251u8, 227u8, 94u8, 96u8, 26u8, 160u8, 127u8, 226u8, 27u8, 55u8, 177u8, 75u8, 102u8, @@ -14015,9 +14810,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ProposalOf<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 75u8, 36u8, 235u8, 242u8, 206u8, 251u8, 227u8, 94u8, 96u8, 26u8, 160u8, 127u8, 226u8, 27u8, 55u8, 177u8, 75u8, 102u8, @@ -14044,9 +14842,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 145u8, 223u8, 203u8, 2u8, 137u8, 33u8, 22u8, 239u8, 175u8, 149u8, 254u8, 185u8, 0u8, 139u8, 71u8, 134u8, 109u8, 95u8, @@ -14068,9 +14869,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Voting<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 145u8, 223u8, 203u8, 2u8, 137u8, 33u8, 22u8, 239u8, 175u8, 149u8, 254u8, 185u8, 0u8, 139u8, 71u8, 134u8, 109u8, 95u8, @@ -14089,9 +14893,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 132u8, 145u8, 78u8, 218u8, 51u8, 189u8, 55u8, 172u8, 143u8, 33u8, 140u8, 99u8, 124u8, 208u8, 57u8, 232u8, 154u8, 110u8, @@ -14116,9 +14923,12 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 136u8, 91u8, 140u8, 173u8, 238u8, 221u8, 4u8, 132u8, 238u8, 99u8, 195u8, 142u8, 10u8, 35u8, 210u8, 227u8, 22u8, 72u8, @@ -14143,9 +14953,12 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 70u8, 101u8, 20u8, 160u8, 173u8, 87u8, 190u8, 85u8, 60u8, 249u8, 144u8, 77u8, 175u8, 195u8, 51u8, 196u8, 234u8, 62u8, @@ -14301,9 +15114,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 228u8, 186u8, 17u8, 12u8, 231u8, 231u8, 139u8, 15u8, 96u8, 200u8, 68u8, 27u8, 61u8, 106u8, 245u8, 199u8, 120u8, 141u8, @@ -14347,9 +15163,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 170u8, 77u8, 65u8, 3u8, 95u8, 88u8, 81u8, 103u8, 220u8, 72u8, 237u8, 80u8, 181u8, 46u8, 196u8, 106u8, 142u8, 55u8, 244u8, @@ -14409,9 +15228,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 180u8, 170u8, 72u8, 21u8, 96u8, 25u8, 177u8, 147u8, 98u8, 143u8, 186u8, 112u8, 99u8, 197u8, 146u8, 170u8, 35u8, 195u8, @@ -14460,9 +15282,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 184u8, 236u8, 80u8, 133u8, 26u8, 207u8, 3u8, 2u8, 120u8, 27u8, 38u8, 135u8, 195u8, 86u8, 169u8, 229u8, 125u8, 253u8, @@ -14529,9 +15354,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 242u8, 208u8, 108u8, 202u8, 24u8, 139u8, 8u8, 150u8, 108u8, 217u8, 30u8, 209u8, 178u8, 1u8, 80u8, 25u8, 154u8, 146u8, @@ -14578,9 +15406,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 199u8, 113u8, 221u8, 167u8, 60u8, 241u8, 77u8, 166u8, 205u8, 191u8, 183u8, 121u8, 191u8, 206u8, 230u8, 212u8, 215u8, @@ -14763,9 +15594,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 174u8, 75u8, 108u8, 245u8, 86u8, 50u8, 107u8, 212u8, 244u8, 113u8, 232u8, 168u8, 194u8, 33u8, 247u8, 97u8, 54u8, 115u8, @@ -14791,9 +15625,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 75u8, 36u8, 235u8, 242u8, 206u8, 251u8, 227u8, 94u8, 96u8, 26u8, 160u8, 127u8, 226u8, 27u8, 55u8, 177u8, 75u8, 102u8, @@ -14815,9 +15652,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ProposalOf<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 75u8, 36u8, 235u8, 242u8, 206u8, 251u8, 227u8, 94u8, 96u8, 26u8, 160u8, 127u8, 226u8, 27u8, 55u8, 177u8, 75u8, 102u8, @@ -14844,9 +15684,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 145u8, 223u8, 203u8, 2u8, 137u8, 33u8, 22u8, 239u8, 175u8, 149u8, 254u8, 185u8, 0u8, 139u8, 71u8, 134u8, 109u8, 95u8, @@ -14868,9 +15711,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Voting<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 145u8, 223u8, 203u8, 2u8, 137u8, 33u8, 22u8, 239u8, 175u8, 149u8, 254u8, 185u8, 0u8, 139u8, 71u8, 134u8, 109u8, 95u8, @@ -14889,9 +15735,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 132u8, 145u8, 78u8, 218u8, 51u8, 189u8, 55u8, 172u8, 143u8, 33u8, 140u8, 99u8, 124u8, 208u8, 57u8, 232u8, 154u8, 110u8, @@ -14916,9 +15765,12 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 136u8, 91u8, 140u8, 173u8, 238u8, 221u8, 4u8, 132u8, 238u8, 99u8, 195u8, 142u8, 10u8, 35u8, 210u8, 227u8, 22u8, 72u8, @@ -14943,9 +15795,12 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 70u8, 101u8, 20u8, 160u8, 173u8, 87u8, 190u8, 85u8, 60u8, 249u8, 144u8, 77u8, 175u8, 195u8, 51u8, 196u8, 234u8, 62u8, @@ -15080,9 +15935,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 245u8, 122u8, 160u8, 64u8, 234u8, 121u8, 191u8, 224u8, 12u8, 16u8, 153u8, 70u8, 41u8, 236u8, 211u8, 145u8, 238u8, 112u8, @@ -15114,9 +15972,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 254u8, 46u8, 140u8, 4u8, 218u8, 45u8, 150u8, 72u8, 67u8, 131u8, 108u8, 201u8, 46u8, 157u8, 104u8, 161u8, 53u8, 155u8, @@ -15159,9 +16020,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 100u8, 38u8, 146u8, 5u8, 234u8, 101u8, 193u8, 9u8, 245u8, 237u8, 220u8, 21u8, 36u8, 64u8, 205u8, 103u8, 11u8, 194u8, @@ -15207,9 +16071,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 184u8, 45u8, 220u8, 198u8, 21u8, 54u8, 15u8, 235u8, 192u8, 78u8, 96u8, 172u8, 12u8, 152u8, 147u8, 183u8, 172u8, 85u8, @@ -15255,9 +16122,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 0u8, 99u8, 154u8, 250u8, 4u8, 102u8, 172u8, 220u8, 86u8, 147u8, 113u8, 248u8, 152u8, 189u8, 179u8, 149u8, 73u8, 97u8, @@ -15299,9 +16169,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 80u8, 248u8, 122u8, 6u8, 88u8, 255u8, 17u8, 206u8, 104u8, 208u8, 66u8, 191u8, 118u8, 163u8, 154u8, 9u8, 37u8, 106u8, @@ -15485,9 +16358,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 193u8, 166u8, 79u8, 96u8, 31u8, 4u8, 133u8, 133u8, 115u8, 236u8, 253u8, 177u8, 176u8, 10u8, 50u8, 97u8, 254u8, 234u8, @@ -15520,9 +16396,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 59u8, 65u8, 218u8, 225u8, 49u8, 140u8, 168u8, 143u8, 195u8, 106u8, 207u8, 181u8, 157u8, 129u8, 140u8, 122u8, 145u8, @@ -15555,9 +16434,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 172u8, 196u8, 249u8, 114u8, 195u8, 161u8, 43u8, 219u8, 208u8, 127u8, 144u8, 87u8, 13u8, 253u8, 114u8, 209u8, 199u8, 65u8, @@ -15580,9 +16462,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 144u8, 146u8, 10u8, 32u8, 149u8, 147u8, 59u8, 205u8, 61u8, 246u8, 28u8, 169u8, 130u8, 136u8, 143u8, 104u8, 253u8, 86u8, @@ -15613,9 +16498,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 107u8, 14u8, 228u8, 167u8, 43u8, 105u8, 221u8, 70u8, 234u8, 157u8, 36u8, 16u8, 63u8, 225u8, 89u8, 111u8, 201u8, 172u8, @@ -15642,9 +16530,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Voting<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 107u8, 14u8, 228u8, 167u8, 43u8, 105u8, 221u8, 70u8, 234u8, 157u8, 36u8, 16u8, 63u8, 225u8, 89u8, 111u8, 201u8, 172u8, @@ -15944,9 +16835,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 1u8, 149u8, 115u8, 222u8, 93u8, 9u8, 208u8, 58u8, 22u8, 148u8, 215u8, 141u8, 204u8, 48u8, 107u8, 210u8, 202u8, 165u8, @@ -15977,9 +16871,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 137u8, 249u8, 148u8, 139u8, 147u8, 47u8, 226u8, 228u8, 139u8, 219u8, 109u8, 128u8, 254u8, 51u8, 227u8, 154u8, 105u8, 91u8, @@ -16013,9 +16910,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 159u8, 62u8, 254u8, 117u8, 56u8, 185u8, 99u8, 29u8, 146u8, 210u8, 40u8, 77u8, 169u8, 224u8, 215u8, 34u8, 106u8, 95u8, @@ -16047,9 +16947,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 246u8, 84u8, 91u8, 191u8, 61u8, 245u8, 171u8, 80u8, 18u8, 120u8, 61u8, 86u8, 23u8, 115u8, 161u8, 203u8, 128u8, 34u8, @@ -16082,9 +16985,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 198u8, 93u8, 41u8, 52u8, 241u8, 11u8, 225u8, 82u8, 30u8, 114u8, 111u8, 204u8, 13u8, 31u8, 34u8, 82u8, 171u8, 58u8, @@ -16115,9 +17021,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 185u8, 53u8, 61u8, 154u8, 234u8, 77u8, 195u8, 126u8, 19u8, 39u8, 78u8, 205u8, 109u8, 210u8, 137u8, 245u8, 128u8, 110u8, @@ -16147,9 +17056,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 186u8, 182u8, 225u8, 90u8, 71u8, 124u8, 69u8, 100u8, 234u8, 25u8, 53u8, 23u8, 182u8, 32u8, 176u8, 81u8, 54u8, 140u8, @@ -16246,9 +17158,12 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 136u8, 91u8, 140u8, 173u8, 238u8, 221u8, 4u8, 132u8, 238u8, 99u8, 195u8, 142u8, 10u8, 35u8, 210u8, 227u8, 22u8, 72u8, @@ -16273,9 +17188,12 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 70u8, 101u8, 20u8, 160u8, 173u8, 87u8, 190u8, 85u8, 60u8, 249u8, 144u8, 77u8, 175u8, 195u8, 51u8, 196u8, 234u8, 62u8, @@ -16376,9 +17294,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 117u8, 11u8, 194u8, 76u8, 160u8, 114u8, 119u8, 94u8, 47u8, 239u8, 193u8, 54u8, 42u8, 208u8, 225u8, 47u8, 22u8, 90u8, @@ -16415,9 +17336,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 153u8, 238u8, 223u8, 212u8, 86u8, 178u8, 184u8, 150u8, 117u8, 91u8, 69u8, 30u8, 196u8, 134u8, 56u8, 54u8, 236u8, 145u8, @@ -16455,9 +17379,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 191u8, 81u8, 78u8, 230u8, 230u8, 192u8, 144u8, 232u8, 81u8, 70u8, 227u8, 212u8, 194u8, 228u8, 231u8, 147u8, 57u8, 222u8, @@ -16619,9 +17546,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 132u8, 145u8, 78u8, 218u8, 51u8, 189u8, 55u8, 172u8, 143u8, 33u8, 140u8, 99u8, 124u8, 208u8, 57u8, 232u8, 154u8, 110u8, @@ -16652,9 +17582,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 46u8, 242u8, 203u8, 56u8, 166u8, 200u8, 95u8, 110u8, 47u8, 71u8, 71u8, 45u8, 12u8, 93u8, 222u8, 120u8, 40u8, 130u8, @@ -16676,9 +17609,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Proposals<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 46u8, 242u8, 203u8, 56u8, 166u8, 200u8, 95u8, 110u8, 47u8, 71u8, 71u8, 45u8, 12u8, 93u8, 222u8, 120u8, 40u8, 130u8, @@ -16701,9 +17637,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 152u8, 185u8, 127u8, 54u8, 169u8, 155u8, 124u8, 22u8, 142u8, 132u8, 254u8, 197u8, 162u8, 152u8, 15u8, 18u8, 192u8, 138u8, @@ -17035,9 +17974,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 8u8, 205u8, 188u8, 57u8, 197u8, 203u8, 156u8, 65u8, 246u8, 236u8, 199u8, 6u8, 152u8, 34u8, 251u8, 178u8, 206u8, 127u8, @@ -17092,9 +18034,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 10u8, 141u8, 200u8, 102u8, 21u8, 205u8, 178u8, 247u8, 154u8, 245u8, 172u8, 178u8, 26u8, 249u8, 179u8, 236u8, 198u8, 4u8, @@ -17155,9 +18100,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 116u8, 181u8, 28u8, 215u8, 245u8, 86u8, 215u8, 114u8, 201u8, 250u8, 168u8, 43u8, 91u8, 74u8, 0u8, 61u8, 40u8, 135u8, 6u8, @@ -17206,9 +18154,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 7u8, 206u8, 87u8, 155u8, 225u8, 220u8, 145u8, 206u8, 87u8, 132u8, 171u8, 67u8, 104u8, 91u8, 247u8, 39u8, 114u8, 156u8, @@ -17240,9 +18191,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 7u8, 59u8, 57u8, 165u8, 149u8, 105u8, 40u8, 11u8, 62u8, 212u8, 35u8, 185u8, 38u8, 244u8, 14u8, 170u8, 73u8, 160u8, @@ -17363,9 +18317,12 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 66u8, 232u8, 109u8, 190u8, 15u8, 207u8, 114u8, 12u8, 91u8, 228u8, 103u8, 37u8, 152u8, 245u8, 51u8, 121u8, 179u8, 228u8, @@ -17386,9 +18343,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Claims<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 66u8, 232u8, 109u8, 190u8, 15u8, 207u8, 114u8, 12u8, 91u8, 228u8, 103u8, 37u8, 152u8, 245u8, 51u8, 121u8, 179u8, 228u8, @@ -17406,9 +18366,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 162u8, 59u8, 237u8, 63u8, 23u8, 44u8, 74u8, 169u8, 131u8, 166u8, 174u8, 61u8, 127u8, 165u8, 32u8, 115u8, 73u8, 171u8, @@ -17441,9 +18404,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 22u8, 177u8, 83u8, 172u8, 137u8, 213u8, 11u8, 74u8, 192u8, 92u8, 96u8, 63u8, 139u8, 156u8, 62u8, 207u8, 47u8, 156u8, @@ -17468,9 +18434,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Vesting<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 22u8, 177u8, 83u8, 172u8, 137u8, 213u8, 11u8, 74u8, 192u8, 92u8, 96u8, 63u8, 139u8, 156u8, 62u8, 207u8, 47u8, 156u8, @@ -17494,9 +18463,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 85u8, 167u8, 23u8, 218u8, 101u8, 189u8, 129u8, 64u8, 189u8, 159u8, 108u8, 22u8, 234u8, 189u8, 122u8, 145u8, 225u8, 202u8, @@ -17518,9 +18490,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Signing<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 85u8, 167u8, 23u8, 218u8, 101u8, 189u8, 129u8, 64u8, 189u8, 159u8, 108u8, 22u8, 234u8, 189u8, 122u8, 145u8, 225u8, 202u8, @@ -17544,9 +18519,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 174u8, 208u8, 119u8, 9u8, 98u8, 68u8, 27u8, 159u8, 132u8, 22u8, 72u8, 80u8, 83u8, 147u8, 224u8, 241u8, 98u8, 143u8, @@ -17568,9 +18546,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Preclaims<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 174u8, 208u8, 119u8, 9u8, 98u8, 68u8, 27u8, 159u8, 132u8, 22u8, 72u8, 80u8, 83u8, 147u8, 224u8, 241u8, 98u8, 143u8, @@ -17734,9 +18715,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 123u8, 54u8, 10u8, 208u8, 154u8, 24u8, 39u8, 166u8, 64u8, 27u8, 74u8, 29u8, 243u8, 97u8, 155u8, 5u8, 130u8, 155u8, @@ -17782,9 +18766,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 220u8, 214u8, 201u8, 84u8, 89u8, 137u8, 126u8, 80u8, 57u8, 1u8, 178u8, 144u8, 1u8, 79u8, 232u8, 136u8, 62u8, 227u8, @@ -17836,9 +18823,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 117u8, 107u8, 28u8, 234u8, 240u8, 253u8, 122u8, 25u8, 134u8, 41u8, 162u8, 36u8, 157u8, 82u8, 214u8, 174u8, 132u8, 24u8, @@ -17895,9 +18885,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 32u8, 195u8, 99u8, 57u8, 6u8, 182u8, 106u8, 47u8, 9u8, 19u8, 255u8, 80u8, 244u8, 205u8, 129u8, 78u8, 6u8, 215u8, 224u8, @@ -17951,9 +18944,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 185u8, 253u8, 214u8, 24u8, 208u8, 226u8, 0u8, 212u8, 92u8, 174u8, 252u8, 44u8, 250u8, 96u8, 66u8, 55u8, 88u8, 252u8, @@ -18048,9 +19044,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 237u8, 216u8, 145u8, 89u8, 52u8, 38u8, 126u8, 212u8, 173u8, 3u8, 57u8, 156u8, 208u8, 160u8, 249u8, 177u8, 83u8, 140u8, @@ -18072,9 +19071,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Vesting<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 237u8, 216u8, 145u8, 89u8, 52u8, 38u8, 126u8, 212u8, 173u8, 3u8, 57u8, 156u8, 208u8, 160u8, 249u8, 177u8, 83u8, 140u8, @@ -18097,9 +19099,12 @@ pub mod api { runtime_types::pallet_vesting::Releases, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 50u8, 143u8, 26u8, 88u8, 129u8, 31u8, 61u8, 118u8, 19u8, 202u8, 119u8, 160u8, 34u8, 219u8, 60u8, 57u8, 189u8, 66u8, @@ -18271,9 +19276,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 102u8, 106u8, 179u8, 188u8, 99u8, 111u8, 210u8, 69u8, 179u8, 206u8, 207u8, 163u8, 116u8, 184u8, 55u8, 228u8, 157u8, 241u8, @@ -18315,9 +19323,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 195u8, 145u8, 176u8, 37u8, 226u8, 104u8, 213u8, 93u8, 246u8, 7u8, 117u8, 101u8, 123u8, 125u8, 244u8, 74u8, 67u8, 118u8, @@ -18362,9 +19373,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 199u8, 220u8, 25u8, 148u8, 69u8, 105u8, 234u8, 113u8, 221u8, 220u8, 186u8, 34u8, 184u8, 101u8, 41u8, 87u8, 134u8, 92u8, @@ -18403,9 +19417,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 188u8, 19u8, 178u8, 56u8, 121u8, 41u8, 46u8, 232u8, 118u8, 56u8, 66u8, 6u8, 174u8, 184u8, 92u8, 66u8, 178u8, 213u8, @@ -18712,9 +19729,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 252u8, 233u8, 148u8, 186u8, 42u8, 127u8, 183u8, 107u8, 205u8, 34u8, 63u8, 170u8, 82u8, 218u8, 141u8, 136u8, 174u8, 45u8, @@ -18761,9 +19781,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 174u8, 5u8, 84u8, 201u8, 219u8, 147u8, 45u8, 241u8, 46u8, 192u8, 221u8, 20u8, 233u8, 128u8, 206u8, 1u8, 71u8, 244u8, @@ -18817,9 +19840,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 157u8, 141u8, 52u8, 45u8, 109u8, 252u8, 84u8, 0u8, 38u8, 209u8, 193u8, 212u8, 177u8, 47u8, 219u8, 132u8, 254u8, 234u8, @@ -18864,9 +19890,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 75u8, 44u8, 74u8, 122u8, 149u8, 202u8, 114u8, 230u8, 0u8, 255u8, 140u8, 122u8, 14u8, 196u8, 205u8, 249u8, 220u8, 94u8, @@ -18918,9 +19947,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 90u8, 137u8, 162u8, 2u8, 124u8, 245u8, 7u8, 200u8, 235u8, 138u8, 217u8, 247u8, 77u8, 87u8, 152u8, 2u8, 13u8, 175u8, @@ -18965,9 +19997,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 153u8, 44u8, 7u8, 70u8, 91u8, 44u8, 138u8, 219u8, 118u8, 67u8, 166u8, 133u8, 90u8, 234u8, 248u8, 42u8, 108u8, 51u8, @@ -19009,9 +20044,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 222u8, 115u8, 155u8, 44u8, 68u8, 179u8, 201u8, 247u8, 141u8, 226u8, 124u8, 20u8, 188u8, 47u8, 190u8, 21u8, 212u8, 192u8, @@ -19053,9 +20091,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 191u8, 243u8, 30u8, 116u8, 109u8, 235u8, 23u8, 106u8, 24u8, 23u8, 80u8, 203u8, 68u8, 40u8, 116u8, 38u8, 68u8, 161u8, @@ -19099,9 +20140,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 253u8, 43u8, 154u8, 17u8, 161u8, 187u8, 72u8, 96u8, 20u8, 240u8, 97u8, 43u8, 242u8, 79u8, 115u8, 38u8, 130u8, 243u8, @@ -19155,9 +20199,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 238u8, 210u8, 71u8, 239u8, 251u8, 52u8, 145u8, 71u8, 68u8, 185u8, 103u8, 82u8, 21u8, 164u8, 128u8, 189u8, 123u8, 141u8, @@ -19211,9 +20258,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 91u8, 164u8, 242u8, 44u8, 253u8, 203u8, 102u8, 89u8, 218u8, 150u8, 227u8, 56u8, 179u8, 135u8, 93u8, 107u8, 166u8, 157u8, @@ -19252,9 +20302,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 105u8, 38u8, 167u8, 99u8, 224u8, 183u8, 88u8, 133u8, 180u8, 78u8, 211u8, 239u8, 49u8, 128u8, 224u8, 61u8, 23u8, 249u8, @@ -19290,9 +20343,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 17u8, 110u8, 213u8, 124u8, 4u8, 76u8, 182u8, 53u8, 102u8, 224u8, 240u8, 250u8, 94u8, 96u8, 181u8, 107u8, 114u8, 127u8, @@ -19330,9 +20386,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 161u8, 114u8, 68u8, 57u8, 166u8, 240u8, 150u8, 95u8, 176u8, 93u8, 62u8, 67u8, 185u8, 226u8, 117u8, 97u8, 119u8, 139u8, @@ -19369,9 +20428,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 62u8, 57u8, 73u8, 72u8, 119u8, 216u8, 250u8, 155u8, 57u8, 169u8, 157u8, 44u8, 87u8, 51u8, 63u8, 231u8, 77u8, 7u8, 0u8, @@ -19585,9 +20647,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 225u8, 101u8, 83u8, 137u8, 207u8, 77u8, 139u8, 227u8, 36u8, 100u8, 14u8, 30u8, 197u8, 65u8, 248u8, 227u8, 175u8, 19u8, @@ -19611,9 +20676,12 @@ pub mod api { ::subxt::KeyIter<'a, T, IdentityOf<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 225u8, 101u8, 83u8, 137u8, 207u8, 77u8, 139u8, 227u8, 36u8, 100u8, 14u8, 30u8, 197u8, 65u8, 248u8, 227u8, 175u8, 19u8, @@ -19639,9 +20707,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 128u8, 234u8, 82u8, 152u8, 41u8, 4u8, 220u8, 41u8, 179u8, 131u8, 72u8, 121u8, 131u8, 17u8, 40u8, 87u8, 186u8, 159u8, @@ -19664,9 +20735,12 @@ pub mod api { ::subxt::KeyIter<'a, T, SuperOf<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 128u8, 234u8, 82u8, 152u8, 41u8, 4u8, 220u8, 41u8, 179u8, 131u8, 72u8, 121u8, 131u8, 17u8, 40u8, 87u8, 186u8, 159u8, @@ -19697,9 +20771,12 @@ pub mod api { ), ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 136u8, 240u8, 238u8, 121u8, 194u8, 242u8, 139u8, 155u8, 32u8, 201u8, 123u8, 76u8, 116u8, 219u8, 193u8, 45u8, 251u8, 212u8, @@ -19728,9 +20805,12 @@ pub mod api { ::subxt::KeyIter<'a, T, SubsOf<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 136u8, 240u8, 238u8, 121u8, 194u8, 242u8, 139u8, 155u8, 32u8, 201u8, 123u8, 76u8, 116u8, 219u8, 193u8, 45u8, 251u8, 212u8, @@ -19761,9 +20841,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 92u8, 161u8, 80u8, 77u8, 121u8, 65u8, 69u8, 26u8, 171u8, 158u8, 66u8, 36u8, 81u8, 1u8, 79u8, 144u8, 188u8, 236u8, @@ -20101,9 +21184,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 182u8, 110u8, 37u8, 47u8, 200u8, 93u8, 71u8, 195u8, 61u8, 58u8, 197u8, 39u8, 17u8, 203u8, 192u8, 222u8, 55u8, 103u8, @@ -20150,9 +21236,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 97u8, 149u8, 34u8, 218u8, 51u8, 242u8, 47u8, 167u8, 203u8, 128u8, 248u8, 193u8, 156u8, 141u8, 184u8, 221u8, 209u8, 79u8, @@ -20197,9 +21286,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 246u8, 251u8, 192u8, 17u8, 128u8, 248u8, 24u8, 118u8, 127u8, 101u8, 140u8, 72u8, 248u8, 161u8, 187u8, 89u8, 193u8, 44u8, @@ -20240,9 +21332,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 15u8, 237u8, 27u8, 166u8, 254u8, 218u8, 92u8, 5u8, 213u8, 239u8, 99u8, 59u8, 1u8, 26u8, 73u8, 252u8, 81u8, 94u8, 214u8, @@ -20295,9 +21390,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 159u8, 186u8, 126u8, 58u8, 255u8, 163u8, 207u8, 66u8, 165u8, 182u8, 248u8, 28u8, 134u8, 186u8, 1u8, 122u8, 40u8, 64u8, @@ -20353,9 +21451,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 59u8, 188u8, 45u8, 180u8, 9u8, 242u8, 36u8, 245u8, 25u8, 57u8, 66u8, 216u8, 82u8, 220u8, 144u8, 233u8, 83u8, 1u8, @@ -20411,9 +21512,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 102u8, 8u8, 136u8, 179u8, 13u8, 47u8, 158u8, 24u8, 93u8, 196u8, 52u8, 22u8, 118u8, 98u8, 17u8, 8u8, 12u8, 51u8, 181u8, @@ -20458,9 +21562,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 209u8, 156u8, 215u8, 188u8, 225u8, 230u8, 171u8, 228u8, 241u8, 105u8, 43u8, 183u8, 234u8, 18u8, 170u8, 239u8, 232u8, @@ -20505,9 +21612,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 26u8, 67u8, 197u8, 169u8, 243u8, 11u8, 94u8, 153u8, 50u8, 22u8, 176u8, 103u8, 88u8, 2u8, 13u8, 10u8, 96u8, 7u8, 121u8, @@ -20560,9 +21670,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 4u8, 205u8, 80u8, 128u8, 70u8, 110u8, 11u8, 69u8, 145u8, 61u8, 218u8, 229u8, 208u8, 105u8, 190u8, 234u8, 189u8, 169u8, @@ -20715,9 +21828,12 @@ pub mod api { ), ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 252u8, 154u8, 187u8, 5u8, 19u8, 254u8, 127u8, 64u8, 214u8, 133u8, 33u8, 95u8, 47u8, 5u8, 39u8, 107u8, 27u8, 117u8, @@ -20743,9 +21859,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Proxies<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 252u8, 154u8, 187u8, 5u8, 19u8, 254u8, 127u8, 64u8, 214u8, 133u8, 33u8, 95u8, 47u8, 5u8, 39u8, 107u8, 27u8, 117u8, @@ -20776,9 +21895,12 @@ pub mod api { ), ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 247u8, 243u8, 109u8, 142u8, 99u8, 156u8, 61u8, 101u8, 200u8, 211u8, 158u8, 60u8, 159u8, 232u8, 147u8, 125u8, 139u8, 150u8, @@ -20803,9 +21925,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Announcements<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 247u8, 243u8, 109u8, 142u8, 99u8, 156u8, 61u8, 101u8, 200u8, 211u8, 158u8, 60u8, 159u8, 232u8, 147u8, 125u8, 139u8, 150u8, @@ -21103,9 +22228,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 95u8, 132u8, 202u8, 110u8, 113u8, 89u8, 78u8, 7u8, 190u8, 143u8, 107u8, 158u8, 56u8, 3u8, 41u8, 167u8, 115u8, 34u8, @@ -21192,9 +22320,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 248u8, 250u8, 144u8, 85u8, 79u8, 224u8, 92u8, 55u8, 76u8, 55u8, 171u8, 48u8, 122u8, 6u8, 62u8, 155u8, 69u8, 41u8, @@ -21272,9 +22403,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 114u8, 29u8, 118u8, 154u8, 91u8, 4u8, 127u8, 126u8, 190u8, 180u8, 57u8, 112u8, 72u8, 8u8, 248u8, 126u8, 25u8, 190u8, @@ -21341,9 +22475,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 195u8, 216u8, 37u8, 179u8, 9u8, 19u8, 238u8, 94u8, 156u8, 5u8, 120u8, 78u8, 129u8, 99u8, 239u8, 142u8, 68u8, 12u8, @@ -21486,9 +22623,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 137u8, 130u8, 173u8, 65u8, 126u8, 244u8, 194u8, 167u8, 93u8, 174u8, 104u8, 131u8, 115u8, 155u8, 93u8, 185u8, 54u8, 204u8, @@ -21510,9 +22650,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Multisigs<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 137u8, 130u8, 173u8, 65u8, 126u8, 244u8, 194u8, 167u8, 93u8, 174u8, 104u8, 131u8, 115u8, 155u8, 93u8, 185u8, 54u8, 204u8, @@ -21537,9 +22680,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 51u8, 122u8, 79u8, 127u8, 1u8, 182u8, 39u8, 88u8, 57u8, 227u8, 141u8, 253u8, 217u8, 23u8, 89u8, 94u8, 37u8, 244u8, @@ -21560,9 +22706,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Calls<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 51u8, 122u8, 79u8, 127u8, 1u8, 182u8, 39u8, 88u8, 57u8, 227u8, 141u8, 253u8, 217u8, 23u8, 89u8, 94u8, 37u8, 244u8, @@ -21814,9 +22963,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 208u8, 22u8, 157u8, 134u8, 214u8, 95u8, 249u8, 10u8, 67u8, 223u8, 190u8, 192u8, 69u8, 32u8, 7u8, 235u8, 205u8, 145u8, @@ -21852,9 +23004,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 127u8, 220u8, 25u8, 197u8, 19u8, 183u8, 177u8, 17u8, 164u8, 29u8, 250u8, 136u8, 125u8, 90u8, 247u8, 177u8, 37u8, 180u8, @@ -21894,9 +23049,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 180u8, 13u8, 171u8, 39u8, 160u8, 233u8, 162u8, 39u8, 100u8, 144u8, 156u8, 212u8, 139u8, 128u8, 105u8, 49u8, 157u8, 16u8, @@ -21946,9 +23104,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 156u8, 163u8, 248u8, 148u8, 22u8, 231u8, 232u8, 182u8, 48u8, 87u8, 85u8, 118u8, 169u8, 249u8, 123u8, 199u8, 248u8, 206u8, @@ -21984,9 +23145,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 50u8, 149u8, 252u8, 40u8, 169u8, 113u8, 60u8, 153u8, 123u8, 146u8, 40u8, 196u8, 176u8, 195u8, 95u8, 94u8, 14u8, 81u8, @@ -22029,9 +23193,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 42u8, 49u8, 134u8, 134u8, 5u8, 98u8, 72u8, 95u8, 227u8, 156u8, 224u8, 249u8, 209u8, 42u8, 160u8, 15u8, 239u8, 195u8, @@ -22071,9 +23238,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 119u8, 9u8, 122u8, 55u8, 224u8, 139u8, 26u8, 186u8, 3u8, 178u8, 78u8, 41u8, 91u8, 183u8, 222u8, 197u8, 189u8, 172u8, @@ -22111,9 +23281,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 119u8, 47u8, 246u8, 188u8, 235u8, 22u8, 53u8, 70u8, 182u8, 15u8, 247u8, 153u8, 208u8, 191u8, 144u8, 132u8, 30u8, 200u8, @@ -22152,9 +23325,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 127u8, 142u8, 138u8, 230u8, 147u8, 187u8, 201u8, 210u8, 216u8, 61u8, 62u8, 125u8, 168u8, 188u8, 16u8, 73u8, 157u8, @@ -22328,9 +23504,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 5u8, 188u8, 134u8, 220u8, 64u8, 49u8, 188u8, 98u8, 185u8, 186u8, 230u8, 65u8, 247u8, 199u8, 28u8, 178u8, 202u8, 193u8, @@ -22362,9 +23541,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 27u8, 154u8, 97u8, 199u8, 230u8, 195u8, 155u8, 198u8, 4u8, 28u8, 5u8, 202u8, 175u8, 11u8, 243u8, 166u8, 67u8, 231u8, @@ -22386,9 +23568,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Bounties<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 27u8, 154u8, 97u8, 199u8, 230u8, 195u8, 155u8, 198u8, 4u8, 28u8, 5u8, 202u8, 175u8, 11u8, 243u8, 166u8, 67u8, 231u8, @@ -22414,9 +23599,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 41u8, 78u8, 19u8, 48u8, 241u8, 95u8, 175u8, 69u8, 236u8, 54u8, 84u8, 58u8, 69u8, 28u8, 20u8, 20u8, 214u8, 138u8, @@ -22438,9 +23626,12 @@ pub mod api { ::subxt::KeyIter<'a, T, BountyDescriptions<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 41u8, 78u8, 19u8, 48u8, 241u8, 95u8, 175u8, 69u8, 236u8, 54u8, 84u8, 58u8, 69u8, 28u8, 20u8, 20u8, 214u8, 138u8, @@ -22463,9 +23654,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 18u8, 142u8, 244u8, 64u8, 172u8, 62u8, 230u8, 114u8, 165u8, 158u8, 123u8, 163u8, 35u8, 125u8, 218u8, 23u8, 113u8, 73u8, @@ -22872,9 +24066,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 235u8, 216u8, 166u8, 226u8, 107u8, 159u8, 235u8, 35u8, 207u8, 154u8, 124u8, 226u8, 242u8, 241u8, 4u8, 20u8, 1u8, 215u8, @@ -22927,9 +24124,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 34u8, 219u8, 159u8, 152u8, 29u8, 12u8, 222u8, 91u8, 193u8, 218u8, 28u8, 0u8, 102u8, 15u8, 180u8, 155u8, 135u8, 175u8, @@ -22982,9 +24182,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 115u8, 24u8, 36u8, 188u8, 30u8, 11u8, 184u8, 102u8, 151u8, 96u8, 41u8, 162u8, 104u8, 54u8, 76u8, 251u8, 189u8, 50u8, @@ -23050,9 +24253,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 210u8, 24u8, 20u8, 200u8, 106u8, 200u8, 33u8, 43u8, 169u8, 133u8, 157u8, 108u8, 220u8, 36u8, 110u8, 172u8, 218u8, 1u8, @@ -23105,9 +24311,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 135u8, 134u8, 237u8, 216u8, 152u8, 75u8, 11u8, 209u8, 152u8, 99u8, 166u8, 78u8, 162u8, 34u8, 37u8, 158u8, 95u8, 74u8, @@ -23156,9 +24365,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 54u8, 194u8, 203u8, 13u8, 230u8, 207u8, 25u8, 249u8, 203u8, 199u8, 123u8, 79u8, 255u8, 85u8, 40u8, 125u8, 73u8, 5u8, @@ -23212,9 +24424,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 123u8, 201u8, 206u8, 242u8, 80u8, 37u8, 113u8, 182u8, 237u8, 187u8, 51u8, 229u8, 226u8, 250u8, 129u8, 203u8, 196u8, 22u8, @@ -23368,9 +24583,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 46u8, 10u8, 183u8, 160u8, 98u8, 215u8, 39u8, 253u8, 81u8, 94u8, 114u8, 147u8, 115u8, 162u8, 33u8, 117u8, 160u8, 214u8, @@ -23395,9 +24613,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 127u8, 161u8, 181u8, 79u8, 235u8, 196u8, 252u8, 162u8, 39u8, 15u8, 251u8, 49u8, 125u8, 80u8, 101u8, 24u8, 234u8, 88u8, @@ -23423,9 +24644,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ParentChildBounties<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 127u8, 161u8, 181u8, 79u8, 235u8, 196u8, 252u8, 162u8, 39u8, 15u8, 251u8, 49u8, 125u8, 80u8, 101u8, 24u8, 234u8, 88u8, @@ -23454,9 +24678,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 66u8, 224u8, 32u8, 188u8, 0u8, 175u8, 253u8, 132u8, 17u8, 243u8, 51u8, 237u8, 230u8, 40u8, 198u8, 178u8, 222u8, 159u8, @@ -23478,9 +24705,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ChildBounties<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 66u8, 224u8, 32u8, 188u8, 0u8, 175u8, 253u8, 132u8, 17u8, 243u8, 51u8, 237u8, 230u8, 40u8, 198u8, 178u8, 222u8, 159u8, @@ -23506,9 +24736,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 20u8, 134u8, 50u8, 207u8, 242u8, 159u8, 242u8, 22u8, 76u8, 80u8, 193u8, 247u8, 73u8, 51u8, 113u8, 241u8, 186u8, 26u8, @@ -23530,9 +24763,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ChildBountyDescriptions<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 20u8, 134u8, 50u8, 207u8, 242u8, 159u8, 242u8, 22u8, 76u8, 80u8, 193u8, 247u8, 73u8, 51u8, 113u8, 241u8, 186u8, 26u8, @@ -23552,9 +24788,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 174u8, 128u8, 86u8, 179u8, 133u8, 76u8, 98u8, 169u8, 234u8, 166u8, 249u8, 214u8, 172u8, 171u8, 8u8, 161u8, 105u8, 69u8, @@ -23579,9 +24818,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ChildrenCuratorFees<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 174u8, 128u8, 86u8, 179u8, 133u8, 76u8, 98u8, 169u8, 234u8, 166u8, 249u8, 214u8, 172u8, 171u8, 8u8, 161u8, 105u8, 69u8, @@ -23772,9 +25014,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 90u8, 58u8, 149u8, 226u8, 88u8, 237u8, 150u8, 165u8, 172u8, 179u8, 195u8, 226u8, 200u8, 20u8, 152u8, 103u8, 157u8, 208u8, @@ -23821,9 +25066,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 213u8, 70u8, 11u8, 81u8, 39u8, 125u8, 42u8, 247u8, 80u8, 55u8, 123u8, 247u8, 45u8, 18u8, 86u8, 205u8, 26u8, 229u8, @@ -23875,9 +25123,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 137u8, 119u8, 91u8, 139u8, 238u8, 180u8, 247u8, 5u8, 194u8, 35u8, 33u8, 151u8, 50u8, 212u8, 208u8, 134u8, 98u8, 133u8, @@ -23934,9 +25185,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 2u8, 38u8, 219u8, 220u8, 183u8, 243u8, 108u8, 40u8, 179u8, 21u8, 218u8, 158u8, 126u8, 19u8, 22u8, 115u8, 95u8, 17u8, @@ -23980,9 +25234,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 85u8, 180u8, 115u8, 177u8, 2u8, 252u8, 139u8, 37u8, 233u8, 127u8, 115u8, 4u8, 169u8, 169u8, 214u8, 223u8, 181u8, 150u8, @@ -24022,9 +25279,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 135u8, 7u8, 55u8, 167u8, 26u8, 108u8, 43u8, 20u8, 162u8, 185u8, 209u8, 88u8, 148u8, 181u8, 51u8, 102u8, 17u8, 105u8, @@ -24149,9 +25409,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 147u8, 163u8, 201u8, 236u8, 134u8, 199u8, 172u8, 47u8, 40u8, 168u8, 105u8, 145u8, 238u8, 204u8, 133u8, 116u8, 185u8, @@ -24175,9 +25438,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Tips<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 147u8, 163u8, 201u8, 236u8, 134u8, 199u8, 172u8, 47u8, 40u8, 168u8, 105u8, 145u8, 238u8, 204u8, 133u8, 116u8, 185u8, @@ -24200,9 +25466,12 @@ pub mod api { ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 224u8, 172u8, 6u8, 195u8, 254u8, 210u8, 186u8, 62u8, 224u8, 53u8, 196u8, 78u8, 84u8, 218u8, 0u8, 135u8, 247u8, 130u8, @@ -24225,9 +25494,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Reasons<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 224u8, 172u8, 6u8, 195u8, 254u8, 210u8, 186u8, 62u8, 224u8, 53u8, 196u8, 78u8, 84u8, 218u8, 0u8, 135u8, 247u8, 130u8, @@ -24483,9 +25755,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 202u8, 104u8, 247u8, 250u8, 171u8, 119u8, 119u8, 96u8, 213u8, 119u8, 41u8, 116u8, 29u8, 99u8, 71u8, 203u8, 168u8, 212u8, @@ -24523,9 +25798,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 207u8, 31u8, 247u8, 72u8, 55u8, 18u8, 99u8, 157u8, 155u8, 89u8, 59u8, 156u8, 254u8, 3u8, 181u8, 85u8, 48u8, 42u8, 73u8, @@ -24566,9 +25844,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 195u8, 164u8, 133u8, 193u8, 58u8, 154u8, 182u8, 83u8, 231u8, 217u8, 199u8, 27u8, 239u8, 143u8, 60u8, 103u8, 139u8, 253u8, @@ -24605,9 +25886,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 192u8, 193u8, 242u8, 99u8, 80u8, 253u8, 100u8, 234u8, 199u8, 15u8, 119u8, 251u8, 94u8, 248u8, 110u8, 171u8, 216u8, 218u8, @@ -24642,9 +25926,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 195u8, 190u8, 140u8, 94u8, 209u8, 100u8, 92u8, 194u8, 78u8, 226u8, 16u8, 168u8, 52u8, 117u8, 88u8, 178u8, 84u8, 248u8, @@ -24863,9 +26150,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 16u8, 49u8, 176u8, 52u8, 202u8, 111u8, 120u8, 8u8, 217u8, 96u8, 35u8, 14u8, 233u8, 130u8, 47u8, 98u8, 34u8, 44u8, @@ -24892,9 +26182,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 162u8, 177u8, 133u8, 63u8, 175u8, 78u8, 85u8, 0u8, 233u8, 84u8, 10u8, 250u8, 190u8, 39u8, 101u8, 11u8, 52u8, 31u8, @@ -24912,9 +26205,12 @@ pub mod api { } } #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] pub async fn queued_solution (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: ReadySolution < :: subxt :: sp_core :: crypto :: AccountId32 > > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 145u8, 177u8, 147u8, 52u8, 30u8, 135u8, 33u8, 145u8, 204u8, 82u8, 1u8, 165u8, 208u8, 39u8, 181u8, 2u8, 96u8, 236u8, 19u8, @@ -24931,9 +26227,12 @@ pub mod api { #[doc = " Snapshot data of the round."] #[doc = ""] #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] pub async fn snapshot (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 28u8, 163u8, 105u8, 94u8, 66u8, 226u8, 134u8, 29u8, 210u8, 211u8, 182u8, 236u8, 180u8, 109u8, 203u8, 44u8, 1u8, 50u8, @@ -24957,9 +26256,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 16u8, 247u8, 4u8, 181u8, 93u8, 79u8, 12u8, 212u8, 146u8, 167u8, 80u8, 58u8, 118u8, 52u8, 68u8, 87u8, 90u8, 140u8, @@ -24976,9 +26278,12 @@ pub mod api { #[doc = " The metadata of the [`RoundSnapshot`]"] #[doc = ""] #[doc = " Only exists when [`Snapshot`] is present."] pub async fn snapshot_metadata (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 240u8, 57u8, 126u8, 76u8, 84u8, 244u8, 120u8, 136u8, 164u8, 49u8, 185u8, 89u8, 126u8, 18u8, 117u8, 235u8, 33u8, 226u8, @@ -25006,9 +26311,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 242u8, 11u8, 157u8, 105u8, 96u8, 7u8, 31u8, 20u8, 51u8, 141u8, 182u8, 180u8, 13u8, 172u8, 155u8, 59u8, 42u8, 238u8, @@ -25031,9 +26339,12 @@ pub mod api { #[doc = " We never need to process more than a single signed submission at a time. Signed submissions"] #[doc = " can be quite large, so we're willing to pay the cost of multiple database accesses to access"] #[doc = " them one at a time instead of reading and decoding all of them at once."] pub async fn signed_submission_indices (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: bounded_btree_map :: BoundedBTreeMap < runtime_types :: sp_npos_elections :: ElectionScore , :: core :: primitive :: u32 > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 191u8, 143u8, 241u8, 251u8, 74u8, 9u8, 145u8, 136u8, 135u8, 76u8, 182u8, 85u8, 140u8, 252u8, 58u8, 183u8, 217u8, 121u8, @@ -25057,9 +26368,12 @@ pub mod api { #[doc = ""] #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub async fn signed_submissions_map (& self , _0 : & :: core :: primitive :: u32 , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: sp_core :: crypto :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 94u8, 51u8, 117u8, 215u8, 100u8, 250u8, 9u8, 70u8, 131u8, 21u8, 2u8, 142u8, 177u8, 117u8, 21u8, 190u8, 10u8, 15u8, @@ -25087,9 +26401,12 @@ pub mod api { ::subxt::KeyIter<'a, T, SignedSubmissionsMap<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 94u8, 51u8, 117u8, 215u8, 100u8, 250u8, 9u8, 70u8, 131u8, 21u8, 2u8, 142u8, 177u8, 117u8, 21u8, 190u8, 10u8, 15u8, @@ -25115,9 +26432,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 18u8, 171u8, 56u8, 63u8, 7u8, 1u8, 53u8, 42u8, 72u8, 35u8, 26u8, 124u8, 223u8, 95u8, 170u8, 176u8, 134u8, 140u8, 66u8, @@ -25606,9 +26926,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 46u8, 138u8, 28u8, 6u8, 58u8, 153u8, 5u8, 41u8, 44u8, 7u8, 228u8, 72u8, 135u8, 184u8, 185u8, 132u8, 146u8, 181u8, 47u8, @@ -25644,9 +26967,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 79u8, 254u8, 222u8, 19u8, 17u8, 80u8, 7u8, 68u8, 54u8, 9u8, 23u8, 133u8, 108u8, 29u8, 166u8, 177u8, 230u8, 247u8, 226u8, @@ -25730,9 +27056,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 114u8, 219u8, 206u8, 128u8, 160u8, 134u8, 95u8, 214u8, 195u8, 15u8, 140u8, 174u8, 89u8, 85u8, 191u8, 85u8, 96u8, 58u8, @@ -25756,9 +27085,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ListNodes<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 114u8, 219u8, 206u8, 128u8, 160u8, 134u8, 95u8, 214u8, 195u8, 15u8, 140u8, 174u8, 89u8, 85u8, 191u8, 85u8, 96u8, 58u8, @@ -25777,9 +27109,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 156u8, 168u8, 97u8, 33u8, 84u8, 117u8, 220u8, 89u8, 62u8, 182u8, 24u8, 88u8, 231u8, 244u8, 41u8, 19u8, 210u8, 131u8, @@ -25807,9 +27142,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 117u8, 35u8, 42u8, 116u8, 5u8, 68u8, 168u8, 75u8, 112u8, 29u8, 54u8, 49u8, 169u8, 103u8, 22u8, 163u8, 53u8, 122u8, @@ -25833,9 +27171,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ListBags<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 117u8, 35u8, 42u8, 116u8, 5u8, 68u8, 168u8, 75u8, 112u8, 29u8, 54u8, 49u8, 169u8, 103u8, 22u8, 163u8, 53u8, 122u8, @@ -26545,9 +27886,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 153u8, 60u8, 171u8, 164u8, 241u8, 214u8, 235u8, 141u8, 4u8, 32u8, 129u8, 253u8, 128u8, 148u8, 185u8, 51u8, 65u8, 34u8, @@ -26576,9 +27920,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 136u8, 220u8, 63u8, 166u8, 202u8, 19u8, 241u8, 32u8, 100u8, 14u8, 101u8, 244u8, 241u8, 141u8, 144u8, 213u8, 185u8, 88u8, @@ -26607,9 +27954,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 94u8, 104u8, 13u8, 127u8, 95u8, 137u8, 66u8, 224u8, 22u8, 53u8, 14u8, 161u8, 67u8, 85u8, 78u8, 161u8, 92u8, 81u8, @@ -26638,9 +27988,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 74u8, 39u8, 190u8, 155u8, 121u8, 60u8, 233u8, 95u8, 177u8, 57u8, 116u8, 107u8, 200u8, 44u8, 2u8, 215u8, 209u8, 50u8, @@ -26669,9 +28022,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 77u8, 199u8, 18u8, 53u8, 223u8, 107u8, 57u8, 141u8, 8u8, 138u8, 180u8, 175u8, 73u8, 88u8, 205u8, 185u8, 56u8, 106u8, @@ -26700,9 +28056,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 30u8, 132u8, 5u8, 207u8, 126u8, 145u8, 187u8, 129u8, 36u8, 235u8, 179u8, 61u8, 243u8, 87u8, 178u8, 107u8, 8u8, 21u8, @@ -26731,9 +28090,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 5u8, 198u8, 156u8, 226u8, 125u8, 16u8, 2u8, 64u8, 28u8, 189u8, 213u8, 85u8, 6u8, 112u8, 173u8, 183u8, 174u8, 207u8, @@ -26762,9 +28124,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 146u8, 134u8, 204u8, 109u8, 167u8, 35u8, 255u8, 245u8, 98u8, 24u8, 213u8, 33u8, 144u8, 194u8, 196u8, 196u8, 66u8, 220u8, @@ -26793,9 +28158,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 102u8, 192u8, 226u8, 120u8, 69u8, 117u8, 239u8, 156u8, 111u8, 239u8, 197u8, 191u8, 221u8, 18u8, 140u8, 214u8, 154u8, 212u8, @@ -26824,9 +28192,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 3u8, 83u8, 31u8, 241u8, 73u8, 137u8, 18u8, 95u8, 119u8, 143u8, 28u8, 110u8, 151u8, 229u8, 172u8, 208u8, 50u8, 25u8, @@ -26855,9 +28226,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 242u8, 204u8, 158u8, 5u8, 123u8, 163u8, 6u8, 209u8, 44u8, 73u8, 112u8, 249u8, 96u8, 160u8, 188u8, 151u8, 107u8, 21u8, @@ -26886,9 +28260,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 146u8, 149u8, 10u8, 57u8, 122u8, 116u8, 61u8, 181u8, 97u8, 240u8, 87u8, 37u8, 227u8, 233u8, 123u8, 26u8, 243u8, 58u8, @@ -26917,9 +28294,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 27u8, 160u8, 153u8, 252u8, 121u8, 42u8, 94u8, 131u8, 199u8, 216u8, 15u8, 65u8, 94u8, 69u8, 127u8, 130u8, 179u8, 236u8, @@ -26948,9 +28328,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 192u8, 156u8, 115u8, 10u8, 225u8, 94u8, 190u8, 180u8, 242u8, 131u8, 202u8, 13u8, 82u8, 27u8, 8u8, 144u8, 70u8, 92u8, @@ -26979,9 +28362,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 232u8, 96u8, 104u8, 249u8, 183u8, 148u8, 126u8, 80u8, 64u8, 39u8, 2u8, 208u8, 183u8, 189u8, 139u8, 201u8, 61u8, 63u8, @@ -27010,9 +28396,13 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata + .call_hash::()? + }; + if runtime_call_hash == [ 45u8, 140u8, 213u8, 62u8, 212u8, 31u8, 126u8, 94u8, 102u8, 176u8, 203u8, 240u8, 28u8, 25u8, 116u8, 77u8, 187u8, 147u8, @@ -27041,9 +28431,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 180u8, 195u8, 6u8, 141u8, 89u8, 252u8, 245u8, 202u8, 36u8, 123u8, 105u8, 35u8, 161u8, 60u8, 233u8, 213u8, 191u8, 65u8, @@ -27072,9 +28465,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 50u8, 221u8, 129u8, 199u8, 147u8, 98u8, 11u8, 104u8, 133u8, 161u8, 53u8, 163u8, 100u8, 155u8, 228u8, 167u8, 146u8, 87u8, @@ -27104,9 +28500,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 235u8, 5u8, 35u8, 159u8, 200u8, 58u8, 171u8, 179u8, 78u8, 70u8, 161u8, 47u8, 237u8, 245u8, 77u8, 81u8, 1u8, 138u8, @@ -27135,9 +28534,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 109u8, 208u8, 13u8, 18u8, 178u8, 117u8, 101u8, 169u8, 162u8, 255u8, 28u8, 88u8, 199u8, 89u8, 83u8, 59u8, 46u8, 105u8, @@ -27166,9 +28568,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 162u8, 20u8, 162u8, 90u8, 59u8, 194u8, 147u8, 255u8, 198u8, 203u8, 50u8, 13u8, 134u8, 142u8, 6u8, 156u8, 205u8, 128u8, @@ -27197,9 +28602,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 83u8, 164u8, 204u8, 168u8, 93u8, 165u8, 118u8, 111u8, 149u8, 129u8, 126u8, 250u8, 95u8, 148u8, 193u8, 173u8, 239u8, 1u8, @@ -27228,9 +28636,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 22u8, 11u8, 132u8, 96u8, 58u8, 253u8, 183u8, 31u8, 137u8, 231u8, 187u8, 145u8, 119u8, 164u8, 55u8, 142u8, 37u8, 151u8, @@ -27259,9 +28670,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 16u8, 31u8, 245u8, 94u8, 243u8, 122u8, 55u8, 155u8, 161u8, 239u8, 5u8, 59u8, 186u8, 207u8, 136u8, 253u8, 255u8, 176u8, @@ -27290,9 +28704,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 203u8, 170u8, 21u8, 149u8, 170u8, 246u8, 91u8, 54u8, 197u8, 91u8, 41u8, 114u8, 210u8, 239u8, 73u8, 236u8, 68u8, 194u8, @@ -27321,9 +28738,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 55u8, 181u8, 6u8, 126u8, 31u8, 154u8, 42u8, 194u8, 64u8, 23u8, 34u8, 255u8, 151u8, 186u8, 52u8, 32u8, 168u8, 233u8, @@ -27352,9 +28772,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 14u8, 179u8, 217u8, 169u8, 84u8, 45u8, 193u8, 3u8, 7u8, 196u8, 56u8, 209u8, 50u8, 148u8, 32u8, 205u8, 99u8, 202u8, @@ -27383,9 +28806,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 134u8, 232u8, 5u8, 70u8, 81u8, 177u8, 81u8, 235u8, 93u8, 145u8, 193u8, 42u8, 150u8, 61u8, 236u8, 20u8, 38u8, 176u8, @@ -27414,9 +28840,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 14u8, 79u8, 128u8, 66u8, 119u8, 24u8, 26u8, 116u8, 249u8, 254u8, 86u8, 228u8, 248u8, 75u8, 111u8, 90u8, 101u8, 96u8, @@ -27445,9 +28874,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 168u8, 254u8, 189u8, 22u8, 61u8, 90u8, 131u8, 1u8, 103u8, 208u8, 179u8, 85u8, 80u8, 215u8, 9u8, 3u8, 34u8, 73u8, 130u8, @@ -27476,9 +28908,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 250u8, 23u8, 196u8, 206u8, 34u8, 86u8, 28u8, 14u8, 110u8, 189u8, 38u8, 39u8, 2u8, 16u8, 212u8, 32u8, 65u8, 249u8, @@ -27508,9 +28943,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 104u8, 35u8, 129u8, 31u8, 111u8, 57u8, 190u8, 42u8, 159u8, 220u8, 86u8, 136u8, 200u8, 4u8, 62u8, 241u8, 141u8, 90u8, @@ -27539,9 +28977,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 211u8, 49u8, 82u8, 59u8, 16u8, 97u8, 253u8, 64u8, 185u8, 216u8, 235u8, 10u8, 84u8, 194u8, 231u8, 115u8, 153u8, 20u8, @@ -27570,9 +29011,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 254u8, 196u8, 171u8, 29u8, 208u8, 179u8, 204u8, 58u8, 64u8, 41u8, 52u8, 73u8, 153u8, 245u8, 29u8, 132u8, 129u8, 29u8, @@ -27601,9 +29045,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 219u8, 88u8, 3u8, 249u8, 16u8, 182u8, 182u8, 233u8, 152u8, 24u8, 29u8, 96u8, 227u8, 50u8, 156u8, 98u8, 71u8, 196u8, @@ -27632,9 +29079,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 153u8, 169u8, 153u8, 141u8, 45u8, 21u8, 26u8, 33u8, 207u8, 234u8, 186u8, 154u8, 12u8, 148u8, 2u8, 226u8, 55u8, 125u8, @@ -27663,9 +29113,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 237u8, 103u8, 126u8, 197u8, 164u8, 247u8, 67u8, 144u8, 30u8, 192u8, 161u8, 243u8, 254u8, 26u8, 254u8, 33u8, 59u8, 216u8, @@ -27694,9 +29147,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 173u8, 184u8, 49u8, 66u8, 158u8, 142u8, 95u8, 225u8, 90u8, 171u8, 4u8, 20u8, 210u8, 180u8, 54u8, 236u8, 60u8, 5u8, 76u8, @@ -27725,9 +29181,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 166u8, 73u8, 121u8, 53u8, 27u8, 77u8, 150u8, 115u8, 29u8, 202u8, 34u8, 4u8, 35u8, 161u8, 113u8, 15u8, 66u8, 60u8, @@ -27756,9 +29215,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 235u8, 47u8, 114u8, 29u8, 87u8, 198u8, 62u8, 200u8, 235u8, 184u8, 204u8, 35u8, 251u8, 210u8, 88u8, 150u8, 22u8, 61u8, @@ -27787,9 +29249,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 61u8, 174u8, 42u8, 53u8, 120u8, 56u8, 252u8, 117u8, 173u8, 223u8, 100u8, 141u8, 209u8, 29u8, 173u8, 240u8, 180u8, 113u8, @@ -27818,9 +29283,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 224u8, 199u8, 197u8, 208u8, 178u8, 211u8, 14u8, 102u8, 174u8, 205u8, 207u8, 181u8, 75u8, 125u8, 209u8, 69u8, 85u8, 1u8, @@ -27849,9 +29317,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 179u8, 71u8, 42u8, 140u8, 187u8, 43u8, 138u8, 16u8, 104u8, 41u8, 30u8, 220u8, 131u8, 179u8, 200u8, 184u8, 105u8, 58u8, @@ -27883,9 +29354,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 225u8, 178u8, 41u8, 194u8, 154u8, 222u8, 247u8, 129u8, 35u8, 102u8, 248u8, 144u8, 21u8, 74u8, 42u8, 239u8, 135u8, 205u8, @@ -27915,9 +29389,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 5u8, 54u8, 178u8, 218u8, 46u8, 61u8, 99u8, 23u8, 227u8, 202u8, 201u8, 164u8, 121u8, 226u8, 65u8, 253u8, 29u8, 164u8, @@ -27982,9 +29459,12 @@ pub mod api { Self { client } } #[doc = " The active configuration for the current session."] pub async fn active_config (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 6u8, 31u8, 218u8, 51u8, 202u8, 166u8, 183u8, 192u8, 151u8, 184u8, 103u8, 73u8, 239u8, 78u8, 183u8, 38u8, 192u8, 201u8, @@ -28004,9 +29484,12 @@ pub mod api { #[doc = " Pending configuration (if any) for the next session."] #[doc = ""] #[doc = " DEPRECATED: This is no longer used, and will be removed in the future."] pub async fn pending_config (& self , _0 : & :: core :: primitive :: u32 , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: configuration :: migration :: v1 :: HostConfiguration < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 152u8, 192u8, 135u8, 74u8, 174u8, 47u8, 192u8, 95u8, 147u8, 137u8, 41u8, 219u8, 149u8, 198u8, 186u8, 16u8, 158u8, 160u8, @@ -28030,9 +29513,12 @@ pub mod api { ::subxt::KeyIter<'a, T, PendingConfig<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 152u8, 192u8, 135u8, 74u8, 174u8, 47u8, 192u8, 95u8, 147u8, 137u8, 41u8, 219u8, 149u8, 198u8, 186u8, 16u8, 158u8, 160u8, @@ -28052,9 +29538,12 @@ pub mod api { #[doc = ""] #[doc = " The list is sorted ascending by session index. Also, this list can only contain at most"] #[doc = " 2 items: for the next session and for the `scheduled_session`."] pub async fn pending_configs (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < (:: core :: primitive :: u32 , runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ,) > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 198u8, 168u8, 227u8, 228u8, 110u8, 98u8, 34u8, 21u8, 159u8, 114u8, 202u8, 135u8, 39u8, 190u8, 40u8, 214u8, 170u8, 126u8, @@ -28078,9 +29567,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 42u8, 191u8, 122u8, 163u8, 112u8, 2u8, 148u8, 59u8, 79u8, 219u8, 184u8, 172u8, 246u8, 136u8, 185u8, 251u8, 189u8, @@ -28174,9 +29666,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 83u8, 15u8, 20u8, 55u8, 103u8, 65u8, 76u8, 202u8, 69u8, 14u8, 221u8, 93u8, 38u8, 163u8, 167u8, 83u8, 18u8, 245u8, 33u8, @@ -28204,9 +29699,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 128u8, 98u8, 186u8, 22u8, 178u8, 51u8, 151u8, 235u8, 201u8, 2u8, 245u8, 177u8, 4u8, 125u8, 1u8, 245u8, 56u8, 102u8, @@ -28234,9 +29732,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 130u8, 19u8, 46u8, 117u8, 211u8, 113u8, 90u8, 42u8, 173u8, 87u8, 209u8, 185u8, 102u8, 142u8, 161u8, 60u8, 118u8, 246u8, @@ -28384,9 +29885,12 @@ pub mod api { Self { client } } #[doc = " The latest bitfield for each validator, referred to by their index in the validator set."] pub async fn availability_bitfields (& self , _0 : & runtime_types :: polkadot_primitives :: v2 :: ValidatorIndex , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 223u8, 74u8, 17u8, 152u8, 136u8, 20u8, 241u8, 47u8, 169u8, 34u8, 128u8, 78u8, 121u8, 47u8, 165u8, 35u8, 222u8, 15u8, @@ -28408,9 +29912,12 @@ pub mod api { ::subxt::KeyIter<'a, T, AvailabilityBitfields<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 223u8, 74u8, 17u8, 152u8, 136u8, 20u8, 241u8, 47u8, 169u8, 34u8, 128u8, 78u8, 121u8, 47u8, 165u8, 35u8, 222u8, 15u8, @@ -28424,9 +29931,12 @@ pub mod api { } } #[doc = " Candidates pending availability by `ParaId`."] pub async fn pending_availability (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: Id , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: sp_core :: H256 , :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 201u8, 235u8, 244u8, 21u8, 107u8, 106u8, 50u8, 211u8, 165u8, 102u8, 113u8, 3u8, 54u8, 155u8, 159u8, 255u8, 117u8, 107u8, @@ -28448,9 +29958,12 @@ pub mod api { ::subxt::KeyIter<'a, T, PendingAvailability<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 201u8, 235u8, 244u8, 21u8, 107u8, 106u8, 50u8, 211u8, 165u8, 102u8, 113u8, 3u8, 54u8, 155u8, 159u8, 255u8, 117u8, 107u8, @@ -28476,9 +29989,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 164u8, 245u8, 130u8, 208u8, 141u8, 88u8, 99u8, 247u8, 90u8, 215u8, 40u8, 99u8, 239u8, 7u8, 231u8, 13u8, 233u8, 204u8, @@ -28500,9 +30016,12 @@ pub mod api { ::subxt::KeyIter<'a, T, PendingAvailabilityCommitments<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 164u8, 245u8, 130u8, 208u8, 141u8, 88u8, 99u8, 247u8, 90u8, 215u8, 40u8, 99u8, 239u8, 7u8, 231u8, 13u8, 233u8, 204u8, @@ -28577,9 +30096,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 208u8, 134u8, 126u8, 30u8, 50u8, 219u8, 225u8, 133u8, 3u8, 2u8, 121u8, 154u8, 133u8, 141u8, 159u8, 193u8, 66u8, 252u8, @@ -28635,9 +30157,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 208u8, 213u8, 76u8, 64u8, 90u8, 141u8, 144u8, 52u8, 220u8, 35u8, 143u8, 171u8, 45u8, 59u8, 9u8, 218u8, 29u8, 186u8, @@ -28663,9 +30188,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 163u8, 22u8, 172u8, 81u8, 10u8, 19u8, 149u8, 111u8, 22u8, 92u8, 203u8, 33u8, 225u8, 124u8, 69u8, 70u8, 66u8, 188u8, @@ -28778,9 +30306,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 84u8, 195u8, 53u8, 111u8, 186u8, 61u8, 3u8, 36u8, 10u8, 9u8, 66u8, 119u8, 116u8, 213u8, 86u8, 153u8, 18u8, 149u8, 83u8, @@ -28801,9 +30332,12 @@ pub mod api { #[doc = ""] #[doc = " The number of queued claims is bounded at the `scheduling_lookahead`"] #[doc = " multiplied by the number of parathread multiplexer cores. Reasonably, 10 * 50 = 500."] pub async fn parathread_queue (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: polkadot_runtime_parachains :: scheduler :: ParathreadClaimQueue , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 55u8, 142u8, 211u8, 227u8, 167u8, 35u8, 168u8, 23u8, 227u8, 185u8, 5u8, 154u8, 147u8, 237u8, 137u8, 133u8, 81u8, 121u8, @@ -28839,9 +30373,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 170u8, 116u8, 249u8, 112u8, 156u8, 147u8, 94u8, 44u8, 114u8, 10u8, 32u8, 91u8, 229u8, 56u8, 60u8, 222u8, 212u8, 176u8, @@ -28869,9 +30406,12 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 187u8, 105u8, 221u8, 0u8, 103u8, 9u8, 52u8, 127u8, 47u8, 155u8, 147u8, 84u8, 249u8, 213u8, 140u8, 75u8, 99u8, 238u8, @@ -28899,9 +30439,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 122u8, 37u8, 150u8, 1u8, 185u8, 201u8, 168u8, 67u8, 55u8, 17u8, 101u8, 18u8, 133u8, 212u8, 6u8, 73u8, 191u8, 204u8, @@ -28924,9 +30467,12 @@ pub mod api { #[doc = ""] #[doc = " The value contained here will not be valid after the end of a block. Runtime APIs should be used to determine scheduled cores/"] #[doc = " for the upcoming block."] pub async fn scheduled (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: scheduler :: CoreAssignment > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 29u8, 43u8, 158u8, 142u8, 50u8, 67u8, 4u8, 30u8, 158u8, 99u8, 47u8, 13u8, 151u8, 141u8, 163u8, 63u8, 140u8, 179u8, 247u8, @@ -29063,9 +30609,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 100u8, 36u8, 105u8, 246u8, 77u8, 252u8, 162u8, 139u8, 60u8, 37u8, 12u8, 148u8, 206u8, 160u8, 134u8, 105u8, 50u8, 52u8, @@ -29095,9 +30644,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 119u8, 46u8, 120u8, 202u8, 138u8, 190u8, 179u8, 78u8, 155u8, 167u8, 220u8, 233u8, 170u8, 248u8, 202u8, 92u8, 73u8, 246u8, @@ -29128,9 +30680,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 254u8, 60u8, 105u8, 37u8, 116u8, 190u8, 30u8, 255u8, 210u8, 24u8, 120u8, 99u8, 174u8, 215u8, 233u8, 83u8, 57u8, 200u8, @@ -29164,9 +30719,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 203u8, 31u8, 68u8, 125u8, 105u8, 218u8, 177u8, 205u8, 248u8, 131u8, 25u8, 170u8, 140u8, 56u8, 183u8, 106u8, 2u8, 118u8, @@ -29197,9 +30755,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 141u8, 235u8, 245u8, 93u8, 24u8, 155u8, 106u8, 136u8, 190u8, 236u8, 216u8, 131u8, 245u8, 5u8, 186u8, 131u8, 159u8, 240u8, @@ -29240,9 +30801,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 110u8, 255u8, 249u8, 176u8, 109u8, 54u8, 87u8, 19u8, 7u8, 62u8, 220u8, 143u8, 196u8, 99u8, 66u8, 49u8, 18u8, 225u8, @@ -29275,9 +30839,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 159u8, 142u8, 14u8, 7u8, 29u8, 74u8, 213u8, 165u8, 206u8, 45u8, 135u8, 121u8, 0u8, 146u8, 217u8, 59u8, 189u8, 120u8, @@ -29310,9 +30877,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 187u8, 231u8, 113u8, 29u8, 177u8, 92u8, 2u8, 116u8, 88u8, 114u8, 19u8, 170u8, 167u8, 254u8, 149u8, 142u8, 24u8, 57u8, @@ -29686,9 +31256,12 @@ pub mod api { #[doc = ""] #[doc = " Invariant:"] #[doc = " - There are no PVF pre-checking votes that exists in list but not in the set and vice versa."] pub async fn pvf_active_vote_map (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: paras :: PvfCheckActiveVoteState < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 113u8, 142u8, 66u8, 141u8, 249u8, 227u8, 84u8, 128u8, 137u8, 111u8, 215u8, 93u8, 246u8, 49u8, 126u8, 213u8, 77u8, 139u8, @@ -29713,9 +31286,12 @@ pub mod api { ::subxt::KeyIter<'a, T, PvfActiveVoteMap<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 113u8, 142u8, 66u8, 141u8, 249u8, 227u8, 84u8, 128u8, 137u8, 111u8, 215u8, 93u8, 246u8, 49u8, 126u8, 213u8, 77u8, 139u8, @@ -29738,9 +31314,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 30u8, 117u8, 174u8, 227u8, 251u8, 95u8, 176u8, 153u8, 151u8, 188u8, 89u8, 252u8, 168u8, 203u8, 174u8, 241u8, 209u8, 45u8, @@ -29767,9 +31346,12 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 174u8, 146u8, 170u8, 102u8, 125u8, 176u8, 74u8, 177u8, 28u8, 54u8, 13u8, 73u8, 188u8, 248u8, 78u8, 144u8, 88u8, 183u8, @@ -29797,9 +31379,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 38u8, 31u8, 0u8, 253u8, 63u8, 27u8, 13u8, 12u8, 247u8, 34u8, 21u8, 166u8, 166u8, 236u8, 178u8, 217u8, 230u8, 117u8, 215u8, @@ -29821,9 +31406,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ParaLifecycles<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 38u8, 31u8, 0u8, 253u8, 63u8, 27u8, 13u8, 12u8, 247u8, 34u8, 21u8, 166u8, 166u8, 236u8, 178u8, 217u8, 230u8, 117u8, 215u8, @@ -29847,9 +31435,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 242u8, 145u8, 237u8, 33u8, 204u8, 183u8, 18u8, 135u8, 182u8, 47u8, 220u8, 187u8, 118u8, 79u8, 163u8, 122u8, 227u8, 215u8, @@ -29871,9 +31462,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Heads<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 242u8, 145u8, 237u8, 33u8, 204u8, 183u8, 18u8, 135u8, 182u8, 47u8, 220u8, 187u8, 118u8, 79u8, 163u8, 122u8, 227u8, 215u8, @@ -29899,9 +31493,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 146u8, 139u8, 159u8, 78u8, 13u8, 151u8, 18u8, 117u8, 15u8, 107u8, 251u8, 200u8, 100u8, 200u8, 170u8, 50u8, 250u8, 189u8, @@ -29925,9 +31522,12 @@ pub mod api { ::subxt::KeyIter<'a, T, CurrentCodeHash<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 146u8, 139u8, 159u8, 78u8, 13u8, 151u8, 18u8, 117u8, 15u8, 107u8, 251u8, 200u8, 100u8, 200u8, 170u8, 50u8, 250u8, 189u8, @@ -29955,9 +31555,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 158u8, 40u8, 107u8, 17u8, 201u8, 114u8, 104u8, 4u8, 50u8, 4u8, 245u8, 186u8, 104u8, 25u8, 142u8, 118u8, 196u8, 165u8, @@ -29982,9 +31585,12 @@ pub mod api { ::subxt::KeyIter<'a, T, PastCodeHash<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 158u8, 40u8, 107u8, 17u8, 201u8, 114u8, 104u8, 4u8, 50u8, 4u8, 245u8, 186u8, 104u8, 25u8, 142u8, 118u8, 196u8, 165u8, @@ -30010,9 +31616,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 121u8, 14u8, 91u8, 135u8, 231u8, 67u8, 189u8, 66u8, 108u8, 27u8, 241u8, 117u8, 101u8, 34u8, 24u8, 16u8, 52u8, 198u8, @@ -30039,9 +31648,12 @@ pub mod api { ::subxt::KeyIter<'a, T, PastCodeMeta<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 121u8, 14u8, 91u8, 135u8, 231u8, 67u8, 189u8, 66u8, 108u8, 27u8, 241u8, 117u8, 101u8, 34u8, 24u8, 16u8, 52u8, 198u8, @@ -30070,9 +31682,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 142u8, 32u8, 134u8, 51u8, 34u8, 214u8, 75u8, 69u8, 77u8, 178u8, 103u8, 117u8, 180u8, 105u8, 249u8, 178u8, 143u8, 25u8, @@ -30100,9 +31715,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 211u8, 254u8, 201u8, 63u8, 89u8, 112u8, 57u8, 82u8, 255u8, 163u8, 49u8, 246u8, 197u8, 154u8, 55u8, 10u8, 65u8, 188u8, @@ -30126,9 +31744,12 @@ pub mod api { ::subxt::KeyIter<'a, T, FutureCodeUpgrades<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 211u8, 254u8, 201u8, 63u8, 89u8, 112u8, 57u8, 82u8, 255u8, 163u8, 49u8, 246u8, 197u8, 154u8, 55u8, 10u8, 65u8, 188u8, @@ -30154,9 +31775,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 221u8, 2u8, 237u8, 170u8, 64u8, 60u8, 98u8, 146u8, 135u8, 69u8, 6u8, 38u8, 2u8, 239u8, 22u8, 94u8, 180u8, 163u8, 76u8, @@ -30180,9 +31804,12 @@ pub mod api { ::subxt::KeyIter<'a, T, FutureCodeHash<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 221u8, 2u8, 237u8, 170u8, 64u8, 60u8, 98u8, 146u8, 135u8, 69u8, 6u8, 38u8, 2u8, 239u8, 22u8, 94u8, 180u8, 163u8, 76u8, @@ -30214,9 +31841,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 100u8, 87u8, 135u8, 185u8, 95u8, 13u8, 74u8, 134u8, 19u8, 97u8, 80u8, 104u8, 177u8, 30u8, 82u8, 145u8, 171u8, 250u8, @@ -30246,9 +31876,12 @@ pub mod api { ::subxt::KeyIter<'a, T, UpgradeGoAheadSignal<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 100u8, 87u8, 135u8, 185u8, 95u8, 13u8, 74u8, 134u8, 19u8, 97u8, 80u8, 104u8, 177u8, 30u8, 82u8, 145u8, 171u8, 250u8, @@ -30280,9 +31913,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 173u8, 198u8, 89u8, 108u8, 43u8, 93u8, 143u8, 224u8, 141u8, 248u8, 238u8, 221u8, 237u8, 220u8, 140u8, 24u8, 7u8, 14u8, @@ -30312,9 +31948,12 @@ pub mod api { ::subxt::KeyIter<'a, T, UpgradeRestrictionSignal<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 173u8, 198u8, 89u8, 108u8, 43u8, 93u8, 143u8, 224u8, 141u8, 248u8, 238u8, 221u8, 237u8, 220u8, 140u8, 24u8, 7u8, 14u8, @@ -30340,9 +31979,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 120u8, 214u8, 165u8, 35u8, 125u8, 56u8, 152u8, 76u8, 124u8, 159u8, 160u8, 93u8, 16u8, 30u8, 208u8, 199u8, 162u8, 74u8, @@ -30373,9 +32015,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 16u8, 74u8, 254u8, 39u8, 241u8, 98u8, 106u8, 203u8, 189u8, 157u8, 66u8, 99u8, 164u8, 176u8, 20u8, 206u8, 15u8, 212u8, @@ -30401,9 +32046,12 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 103u8, 197u8, 76u8, 84u8, 133u8, 3u8, 67u8, 57u8, 107u8, 31u8, 87u8, 33u8, 196u8, 130u8, 119u8, 93u8, 171u8, 173u8, @@ -30428,9 +32076,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ActionsQueue<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 103u8, 197u8, 76u8, 84u8, 133u8, 3u8, 67u8, 57u8, 107u8, 31u8, 87u8, 33u8, 196u8, 130u8, 119u8, 93u8, 171u8, 173u8, @@ -30447,9 +32098,12 @@ pub mod api { #[doc = ""] #[doc = " NOTE that after PVF pre-checking is enabled the para genesis arg will have it's code set"] #[doc = " to empty. Instead, the code will be saved into the storage right away via `CodeByHash`."] pub async fn upcoming_paras_genesis (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: Id , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: paras :: ParaGenesisArgs > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 98u8, 249u8, 92u8, 177u8, 21u8, 84u8, 199u8, 194u8, 150u8, 213u8, 143u8, 107u8, 99u8, 194u8, 141u8, 225u8, 55u8, 94u8, @@ -30474,9 +32128,12 @@ pub mod api { ::subxt::KeyIter<'a, T, UpcomingParasGenesis<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 98u8, 249u8, 92u8, 177u8, 21u8, 84u8, 199u8, 194u8, 150u8, 213u8, 143u8, 107u8, 99u8, 194u8, 141u8, 225u8, 55u8, 94u8, @@ -30496,9 +32153,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 194u8, 100u8, 213u8, 115u8, 143u8, 181u8, 255u8, 227u8, 232u8, 163u8, 209u8, 99u8, 2u8, 138u8, 118u8, 169u8, 210u8, @@ -30523,9 +32183,12 @@ pub mod api { ::subxt::KeyIter<'a, T, CodeByHashRefs<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 194u8, 100u8, 213u8, 115u8, 143u8, 181u8, 255u8, 227u8, 232u8, 163u8, 209u8, 99u8, 2u8, 138u8, 118u8, 169u8, 210u8, @@ -30552,9 +32215,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 41u8, 242u8, 100u8, 156u8, 32u8, 20u8, 72u8, 228u8, 143u8, 3u8, 169u8, 169u8, 27u8, 111u8, 119u8, 135u8, 155u8, 17u8, @@ -30579,9 +32245,12 @@ pub mod api { ::subxt::KeyIter<'a, T, CodeByHash<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 41u8, 242u8, 100u8, 156u8, 32u8, 20u8, 72u8, 228u8, 143u8, 3u8, 169u8, 169u8, 27u8, 111u8, 119u8, 135u8, 155u8, 17u8, @@ -30687,9 +32356,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 61u8, 29u8, 75u8, 222u8, 82u8, 250u8, 124u8, 164u8, 70u8, 114u8, 150u8, 28u8, 103u8, 53u8, 185u8, 147u8, 168u8, 239u8, @@ -30745,9 +32417,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 251u8, 135u8, 247u8, 61u8, 139u8, 102u8, 12u8, 122u8, 227u8, 123u8, 11u8, 232u8, 120u8, 80u8, 81u8, 48u8, 216u8, 115u8, @@ -30768,9 +32443,12 @@ pub mod api { #[doc = ""] #[doc = " However this is a `Vec` regardless to handle various edge cases that may occur at runtime"] #[doc = " upgrade boundaries or if governance intervenes."] pub async fn buffered_session_changes (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: initializer :: BufferedSessionChange > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 79u8, 184u8, 104u8, 7u8, 11u8, 216u8, 205u8, 95u8, 155u8, 51u8, 17u8, 160u8, 239u8, 14u8, 38u8, 99u8, 206u8, 87u8, @@ -30872,9 +32550,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 104u8, 117u8, 177u8, 125u8, 208u8, 212u8, 216u8, 171u8, 212u8, 235u8, 43u8, 255u8, 146u8, 230u8, 243u8, 27u8, 133u8, @@ -30899,9 +32580,12 @@ pub mod api { ::subxt::KeyIter<'a, T, DownwardMessageQueues<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 104u8, 117u8, 177u8, 125u8, 208u8, 212u8, 216u8, 171u8, 212u8, 235u8, 43u8, 255u8, 146u8, 230u8, 243u8, 27u8, 133u8, @@ -30927,9 +32611,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 88u8, 45u8, 62u8, 250u8, 186u8, 97u8, 121u8, 56u8, 136u8, 216u8, 73u8, 65u8, 253u8, 81u8, 94u8, 162u8, 132u8, 217u8, @@ -30960,9 +32647,12 @@ pub mod api { ::subxt::KeyIter<'a, T, DownwardMessageQueueHeads<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 88u8, 45u8, 62u8, 250u8, 186u8, 97u8, 121u8, 56u8, 136u8, 216u8, 73u8, 65u8, 253u8, 81u8, 94u8, 162u8, 132u8, 217u8, @@ -31040,9 +32730,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 229u8, 167u8, 106u8, 63u8, 141u8, 80u8, 8u8, 201u8, 156u8, 34u8, 47u8, 104u8, 116u8, 57u8, 35u8, 216u8, 132u8, 3u8, @@ -31240,9 +32933,12 @@ pub mod api { ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 22u8, 48u8, 215u8, 37u8, 42u8, 115u8, 27u8, 8u8, 249u8, 65u8, 47u8, 61u8, 96u8, 1u8, 196u8, 143u8, 53u8, 7u8, 241u8, 126u8, @@ -31272,9 +32968,12 @@ pub mod api { ::subxt::KeyIter<'a, T, RelayDispatchQueues<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 22u8, 48u8, 215u8, 37u8, 42u8, 115u8, 27u8, 8u8, 249u8, 65u8, 47u8, 61u8, 96u8, 1u8, 196u8, 143u8, 53u8, 7u8, 241u8, 126u8, @@ -31306,9 +33005,12 @@ pub mod api { (::core::primitive::u32, ::core::primitive::u32), ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 8u8, 0u8, 54u8, 33u8, 185u8, 112u8, 21u8, 174u8, 15u8, 147u8, 134u8, 184u8, 108u8, 144u8, 55u8, 138u8, 24u8, 66u8, 255u8, @@ -31343,9 +33045,12 @@ pub mod api { ::subxt::KeyIter<'a, T, RelayDispatchQueueSize<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 8u8, 0u8, 54u8, 33u8, 185u8, 112u8, 21u8, 174u8, 15u8, 147u8, 134u8, 184u8, 108u8, 144u8, 55u8, 138u8, 24u8, 66u8, 255u8, @@ -31370,9 +33075,12 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 75u8, 38u8, 232u8, 83u8, 71u8, 101u8, 248u8, 170u8, 5u8, 32u8, 209u8, 97u8, 190u8, 31u8, 241u8, 1u8, 98u8, 87u8, 64u8, @@ -31403,9 +33111,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 102u8, 165u8, 118u8, 140u8, 84u8, 122u8, 91u8, 169u8, 232u8, 125u8, 52u8, 228u8, 15u8, 228u8, 91u8, 79u8, 218u8, 62u8, @@ -31433,9 +33144,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 223u8, 155u8, 1u8, 100u8, 77u8, 13u8, 92u8, 235u8, 64u8, 30u8, 199u8, 178u8, 149u8, 66u8, 155u8, 201u8, 84u8, 26u8, @@ -31459,9 +33173,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Overweight<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 223u8, 155u8, 1u8, 100u8, 77u8, 13u8, 92u8, 235u8, 64u8, 30u8, 199u8, 178u8, 149u8, 66u8, 155u8, 201u8, 84u8, 26u8, @@ -31481,9 +33198,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 102u8, 180u8, 196u8, 148u8, 115u8, 62u8, 46u8, 238u8, 97u8, 116u8, 117u8, 42u8, 14u8, 5u8, 72u8, 237u8, 230u8, 46u8, @@ -31628,9 +33348,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 244u8, 142u8, 161u8, 144u8, 109u8, 104u8, 164u8, 198u8, 201u8, 79u8, 178u8, 136u8, 107u8, 104u8, 83u8, 11u8, 167u8, @@ -31665,9 +33388,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 95u8, 196u8, 155u8, 220u8, 235u8, 120u8, 67u8, 247u8, 245u8, 20u8, 162u8, 41u8, 4u8, 204u8, 125u8, 16u8, 224u8, 72u8, @@ -31699,9 +33425,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 199u8, 9u8, 55u8, 184u8, 196u8, 45u8, 46u8, 251u8, 48u8, 23u8, 132u8, 74u8, 188u8, 121u8, 41u8, 18u8, 71u8, 65u8, @@ -31738,9 +33467,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 182u8, 231u8, 99u8, 129u8, 130u8, 109u8, 97u8, 108u8, 37u8, 107u8, 203u8, 70u8, 133u8, 106u8, 226u8, 77u8, 110u8, 189u8, @@ -31778,9 +33510,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 162u8, 53u8, 194u8, 175u8, 117u8, 32u8, 217u8, 177u8, 9u8, 255u8, 88u8, 40u8, 8u8, 174u8, 8u8, 11u8, 26u8, 82u8, 213u8, @@ -31814,9 +33549,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 128u8, 141u8, 191u8, 255u8, 204u8, 137u8, 27u8, 170u8, 180u8, 166u8, 93u8, 144u8, 70u8, 56u8, 132u8, 100u8, 5u8, 114u8, @@ -31853,9 +33591,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 8u8, 83u8, 32u8, 187u8, 220u8, 1u8, 212u8, 226u8, 72u8, 61u8, 110u8, 211u8, 238u8, 119u8, 95u8, 48u8, 150u8, 51u8, 177u8, @@ -32109,9 +33850,12 @@ pub mod api { #[doc = ""] #[doc = " Invariant:"] #[doc = " - There are no channels that exists in list but not in the set and vice versa."] pub async fn hrmp_open_channel_requests (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: hrmp :: HrmpOpenChannelRequest > , :: subxt :: BasicError >{ - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 58u8, 216u8, 106u8, 4u8, 117u8, 77u8, 168u8, 230u8, 50u8, 6u8, 175u8, 26u8, 110u8, 45u8, 143u8, 207u8, 174u8, 77u8, @@ -32138,9 +33882,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpOpenChannelRequests<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 58u8, 216u8, 106u8, 4u8, 117u8, 77u8, 168u8, 230u8, 50u8, 6u8, 175u8, 26u8, 110u8, 45u8, 143u8, 207u8, 174u8, 77u8, @@ -32162,9 +33909,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 176u8, 22u8, 136u8, 206u8, 243u8, 208u8, 67u8, 150u8, 187u8, 163u8, 141u8, 37u8, 235u8, 84u8, 176u8, 63u8, 55u8, 38u8, @@ -32190,9 +33940,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 103u8, 47u8, 152u8, 1u8, 119u8, 244u8, 62u8, 249u8, 141u8, 194u8, 157u8, 149u8, 58u8, 208u8, 113u8, 77u8, 4u8, 248u8, @@ -32219,9 +33972,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpOpenChannelRequestCount<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 103u8, 47u8, 152u8, 1u8, 119u8, 244u8, 62u8, 249u8, 141u8, 194u8, 157u8, 149u8, 58u8, 208u8, 113u8, 77u8, 4u8, 248u8, @@ -32243,9 +33999,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 166u8, 207u8, 97u8, 222u8, 30u8, 204u8, 203u8, 122u8, 72u8, 66u8, 247u8, 169u8, 128u8, 122u8, 145u8, 124u8, 214u8, 183u8, @@ -32272,9 +34031,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpAcceptedChannelRequestCount<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 166u8, 207u8, 97u8, 222u8, 30u8, 204u8, 203u8, 122u8, 72u8, 66u8, 247u8, 169u8, 128u8, 122u8, 145u8, 124u8, 214u8, 183u8, @@ -32300,9 +34062,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 118u8, 8u8, 142u8, 158u8, 184u8, 200u8, 38u8, 112u8, 217u8, 69u8, 161u8, 255u8, 116u8, 143u8, 94u8, 185u8, 95u8, 247u8, @@ -32330,9 +34095,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpCloseChannelRequests<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 118u8, 8u8, 142u8, 158u8, 184u8, 200u8, 38u8, 112u8, 217u8, 69u8, 161u8, 255u8, 116u8, 143u8, 94u8, 185u8, 95u8, 247u8, @@ -32354,9 +34122,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 203u8, 46u8, 200u8, 63u8, 120u8, 238u8, 88u8, 170u8, 239u8, 27u8, 99u8, 104u8, 254u8, 194u8, 152u8, 221u8, 126u8, 188u8, @@ -32384,9 +34155,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 28u8, 187u8, 5u8, 0u8, 130u8, 11u8, 241u8, 171u8, 141u8, 109u8, 236u8, 151u8, 194u8, 124u8, 172u8, 180u8, 36u8, 144u8, @@ -32410,9 +34184,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpWatermarks<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 28u8, 187u8, 5u8, 0u8, 130u8, 11u8, 241u8, 171u8, 141u8, 109u8, 236u8, 151u8, 194u8, 124u8, 172u8, 180u8, 36u8, 144u8, @@ -32438,9 +34215,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 241u8, 160u8, 242u8, 167u8, 251u8, 8u8, 131u8, 194u8, 179u8, 216u8, 231u8, 125u8, 58u8, 118u8, 61u8, 113u8, 46u8, 47u8, @@ -32464,9 +34244,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpChannels<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 241u8, 160u8, 242u8, 167u8, 251u8, 8u8, 131u8, 194u8, 179u8, 216u8, 231u8, 125u8, 58u8, 118u8, 61u8, 113u8, 46u8, 47u8, @@ -32500,9 +34283,12 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 193u8, 185u8, 164u8, 194u8, 89u8, 218u8, 214u8, 184u8, 100u8, 238u8, 232u8, 90u8, 243u8, 230u8, 93u8, 191u8, 197u8, 182u8, @@ -32539,9 +34325,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpIngressChannelsIndex<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 193u8, 185u8, 164u8, 194u8, 89u8, 218u8, 214u8, 184u8, 100u8, 238u8, 232u8, 90u8, 243u8, 230u8, 93u8, 191u8, 197u8, 182u8, @@ -32562,9 +34351,12 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 242u8, 138u8, 89u8, 201u8, 60u8, 216u8, 73u8, 66u8, 167u8, 82u8, 225u8, 42u8, 61u8, 50u8, 54u8, 187u8, 212u8, 8u8, @@ -32588,9 +34380,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpEgressChannelsIndex<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 242u8, 138u8, 89u8, 201u8, 60u8, 216u8, 73u8, 66u8, 167u8, 82u8, 225u8, 42u8, 61u8, 50u8, 54u8, 187u8, 212u8, 8u8, @@ -32617,9 +34412,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 71u8, 246u8, 41u8, 12u8, 125u8, 10u8, 60u8, 209u8, 14u8, 254u8, 125u8, 217u8, 251u8, 172u8, 243u8, 73u8, 33u8, 230u8, @@ -32645,9 +34443,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpChannelContents<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 71u8, 246u8, 41u8, 12u8, 125u8, 10u8, 60u8, 209u8, 14u8, 254u8, 125u8, 217u8, 251u8, 172u8, 243u8, 73u8, 33u8, 230u8, @@ -32679,9 +34480,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 54u8, 106u8, 76u8, 21u8, 18u8, 49u8, 1u8, 34u8, 247u8, 101u8, 150u8, 142u8, 214u8, 137u8, 193u8, 100u8, 208u8, 162u8, 55u8, @@ -32711,9 +34515,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpChannelDigests<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 54u8, 106u8, 76u8, 21u8, 18u8, 49u8, 1u8, 34u8, 247u8, 101u8, 150u8, 142u8, 214u8, 137u8, 193u8, 100u8, 208u8, 162u8, 55u8, @@ -32787,9 +34594,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 243u8, 5u8, 37u8, 167u8, 29u8, 59u8, 87u8, 66u8, 53u8, 91u8, 181u8, 9u8, 144u8, 248u8, 225u8, 121u8, 130u8, 111u8, 140u8, @@ -32812,9 +34622,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 25u8, 143u8, 246u8, 184u8, 35u8, 166u8, 140u8, 147u8, 171u8, 5u8, 164u8, 159u8, 228u8, 21u8, 248u8, 236u8, 48u8, 210u8, @@ -32844,9 +34657,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 95u8, 222u8, 240u8, 96u8, 203u8, 233u8, 100u8, 160u8, 180u8, 161u8, 180u8, 123u8, 168u8, 102u8, 93u8, 172u8, 93u8, 174u8, @@ -32870,9 +34686,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Sessions<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 95u8, 222u8, 240u8, 96u8, 203u8, 233u8, 100u8, 160u8, 180u8, 161u8, 180u8, 123u8, 168u8, 102u8, 93u8, 172u8, 93u8, 174u8, @@ -32933,9 +34752,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 212u8, 211u8, 58u8, 159u8, 23u8, 220u8, 64u8, 175u8, 65u8, 50u8, 192u8, 122u8, 113u8, 189u8, 74u8, 191u8, 48u8, 93u8, @@ -33094,9 +34916,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 125u8, 138u8, 99u8, 242u8, 9u8, 246u8, 215u8, 246u8, 141u8, 6u8, 129u8, 87u8, 27u8, 58u8, 53u8, 121u8, 61u8, 119u8, 35u8, @@ -33124,9 +34949,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 37u8, 50u8, 243u8, 127u8, 8u8, 137u8, 232u8, 140u8, 200u8, 76u8, 211u8, 245u8, 26u8, 63u8, 113u8, 31u8, 169u8, 92u8, @@ -33148,9 +34976,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Disputes<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 37u8, 50u8, 243u8, 127u8, 8u8, 137u8, 232u8, 140u8, 200u8, 76u8, 211u8, 245u8, 26u8, 63u8, 113u8, 31u8, 169u8, 92u8, @@ -33174,9 +35005,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 32u8, 107u8, 8u8, 112u8, 201u8, 81u8, 66u8, 223u8, 120u8, 51u8, 166u8, 240u8, 229u8, 141u8, 231u8, 132u8, 114u8, 36u8, @@ -33199,9 +35033,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Included<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 32u8, 107u8, 8u8, 112u8, 201u8, 81u8, 66u8, 223u8, 120u8, 51u8, 166u8, 240u8, 229u8, 141u8, 231u8, 132u8, 114u8, 36u8, @@ -33227,9 +35064,12 @@ pub mod api { ::core::option::Option<::std::vec::Vec<::core::primitive::u32>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 172u8, 23u8, 120u8, 188u8, 71u8, 248u8, 252u8, 41u8, 132u8, 221u8, 98u8, 215u8, 33u8, 242u8, 168u8, 196u8, 90u8, 123u8, @@ -33255,9 +35095,12 @@ pub mod api { ::subxt::KeyIter<'a, T, SpamSlots<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 172u8, 23u8, 120u8, 188u8, 71u8, 248u8, 252u8, 41u8, 132u8, 221u8, 98u8, 215u8, 33u8, 242u8, 168u8, 196u8, 90u8, 123u8, @@ -33281,9 +35124,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 133u8, 100u8, 86u8, 220u8, 180u8, 189u8, 65u8, 131u8, 64u8, 56u8, 219u8, 47u8, 130u8, 167u8, 210u8, 125u8, 49u8, 7u8, @@ -33414,9 +35260,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 180u8, 21u8, 142u8, 73u8, 21u8, 31u8, 64u8, 210u8, 196u8, 4u8, 142u8, 153u8, 172u8, 207u8, 95u8, 209u8, 177u8, 75u8, @@ -33458,9 +35307,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 191u8, 198u8, 172u8, 68u8, 118u8, 126u8, 110u8, 47u8, 193u8, 147u8, 61u8, 27u8, 122u8, 107u8, 49u8, 222u8, 87u8, 199u8, @@ -33497,9 +35349,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 147u8, 4u8, 172u8, 215u8, 67u8, 142u8, 93u8, 245u8, 108u8, 83u8, 5u8, 250u8, 87u8, 138u8, 231u8, 10u8, 159u8, 216u8, @@ -33539,9 +35394,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 145u8, 163u8, 246u8, 239u8, 241u8, 209u8, 58u8, 241u8, 63u8, 134u8, 102u8, 55u8, 217u8, 125u8, 176u8, 91u8, 27u8, 32u8, @@ -33573,9 +35431,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 205u8, 174u8, 132u8, 188u8, 1u8, 59u8, 82u8, 135u8, 123u8, 55u8, 144u8, 39u8, 205u8, 171u8, 13u8, 252u8, 65u8, 56u8, @@ -33616,9 +35477,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 22u8, 210u8, 13u8, 54u8, 253u8, 13u8, 89u8, 174u8, 232u8, 119u8, 148u8, 206u8, 130u8, 133u8, 199u8, 127u8, 201u8, @@ -33726,9 +35590,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 130u8, 4u8, 116u8, 91u8, 196u8, 41u8, 66u8, 48u8, 17u8, 2u8, 255u8, 189u8, 132u8, 10u8, 129u8, 102u8, 117u8, 56u8, 114u8, @@ -33750,9 +35617,12 @@ pub mod api { ::subxt::KeyIter<'a, T, PendingSwap<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 130u8, 4u8, 116u8, 91u8, 196u8, 41u8, 66u8, 48u8, 17u8, 2u8, 255u8, 189u8, 132u8, 10u8, 129u8, 102u8, 117u8, 56u8, 114u8, @@ -33782,9 +35652,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 180u8, 146u8, 122u8, 242u8, 222u8, 203u8, 19u8, 110u8, 22u8, 53u8, 147u8, 127u8, 165u8, 158u8, 113u8, 196u8, 105u8, 209u8, @@ -33809,9 +35682,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Paras<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 180u8, 146u8, 122u8, 242u8, 222u8, 203u8, 19u8, 110u8, 22u8, 53u8, 147u8, 127u8, 165u8, 158u8, 113u8, 196u8, 105u8, 209u8, @@ -33832,9 +35708,12 @@ pub mod api { runtime_types::polkadot_parachain::primitives::Id, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 112u8, 52u8, 84u8, 181u8, 132u8, 61u8, 46u8, 69u8, 165u8, 85u8, 253u8, 243u8, 228u8, 151u8, 15u8, 239u8, 172u8, 28u8, @@ -33990,9 +35869,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 110u8, 205u8, 106u8, 226u8, 3u8, 177u8, 198u8, 116u8, 52u8, 161u8, 90u8, 240u8, 43u8, 160u8, 144u8, 63u8, 97u8, 231u8, @@ -34029,9 +35911,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 101u8, 225u8, 10u8, 139u8, 34u8, 12u8, 48u8, 76u8, 97u8, 178u8, 5u8, 110u8, 19u8, 3u8, 237u8, 183u8, 54u8, 113u8, 7u8, @@ -34066,9 +35951,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 85u8, 246u8, 247u8, 252u8, 46u8, 143u8, 200u8, 102u8, 105u8, 51u8, 148u8, 164u8, 27u8, 25u8, 139u8, 167u8, 150u8, 129u8, @@ -34174,9 +36062,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 83u8, 145u8, 119u8, 74u8, 166u8, 90u8, 141u8, 47u8, 125u8, 250u8, 173u8, 63u8, 193u8, 78u8, 96u8, 119u8, 111u8, 126u8, @@ -34216,9 +36107,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Leases<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 83u8, 145u8, 119u8, 74u8, 166u8, 90u8, 141u8, 47u8, 125u8, 250u8, 173u8, 63u8, 193u8, 78u8, 96u8, 119u8, 111u8, 126u8, @@ -34373,9 +36267,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 12u8, 43u8, 152u8, 0u8, 229u8, 15u8, 32u8, 205u8, 208u8, 71u8, 57u8, 169u8, 201u8, 177u8, 52u8, 10u8, 93u8, 183u8, @@ -34426,9 +36323,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 206u8, 22u8, 15u8, 251u8, 222u8, 193u8, 192u8, 125u8, 160u8, 131u8, 209u8, 129u8, 105u8, 46u8, 77u8, 204u8, 107u8, 112u8, @@ -34464,9 +36364,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 182u8, 223u8, 178u8, 136u8, 1u8, 115u8, 229u8, 78u8, 166u8, 128u8, 28u8, 106u8, 6u8, 248u8, 46u8, 55u8, 110u8, 120u8, @@ -34635,9 +36538,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 67u8, 247u8, 96u8, 152u8, 0u8, 224u8, 230u8, 98u8, 194u8, 107u8, 3u8, 203u8, 51u8, 201u8, 149u8, 22u8, 184u8, 80u8, @@ -34669,9 +36575,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 73u8, 216u8, 173u8, 230u8, 132u8, 78u8, 83u8, 62u8, 200u8, 69u8, 17u8, 73u8, 57u8, 107u8, 160u8, 90u8, 147u8, 84u8, @@ -34696,9 +36605,12 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 195u8, 56u8, 142u8, 154u8, 193u8, 115u8, 13u8, 64u8, 101u8, 179u8, 69u8, 175u8, 185u8, 12u8, 31u8, 65u8, 147u8, 211u8, @@ -34721,9 +36633,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ReservedAmounts<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 195u8, 56u8, 142u8, 154u8, 193u8, 115u8, 13u8, 64u8, 101u8, 179u8, 69u8, 175u8, 185u8, 12u8, 31u8, 65u8, 147u8, 211u8, @@ -34753,9 +36668,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 152u8, 246u8, 158u8, 193u8, 21u8, 56u8, 204u8, 29u8, 146u8, 90u8, 133u8, 246u8, 75u8, 111u8, 157u8, 150u8, 175u8, 33u8, @@ -34779,9 +36697,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Winning<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 152u8, 246u8, 158u8, 193u8, 21u8, 56u8, 204u8, 29u8, 146u8, 90u8, 133u8, 246u8, 75u8, 111u8, 157u8, 150u8, 175u8, 33u8, @@ -35062,9 +36983,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 94u8, 115u8, 154u8, 239u8, 215u8, 180u8, 175u8, 240u8, 137u8, 240u8, 74u8, 159u8, 67u8, 54u8, 69u8, 199u8, 161u8, 155u8, @@ -35105,9 +37029,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 95u8, 255u8, 35u8, 30u8, 44u8, 150u8, 10u8, 166u8, 0u8, 204u8, 106u8, 59u8, 150u8, 254u8, 216u8, 128u8, 232u8, 129u8, @@ -35157,9 +37084,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 67u8, 65u8, 89u8, 108u8, 193u8, 99u8, 74u8, 32u8, 163u8, 13u8, 81u8, 131u8, 64u8, 107u8, 72u8, 23u8, 35u8, 177u8, @@ -35192,9 +37122,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 202u8, 206u8, 79u8, 226u8, 114u8, 228u8, 110u8, 18u8, 178u8, 173u8, 23u8, 83u8, 64u8, 11u8, 201u8, 19u8, 57u8, 75u8, @@ -35223,9 +37156,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 210u8, 3u8, 221u8, 185u8, 64u8, 178u8, 56u8, 132u8, 72u8, 127u8, 105u8, 31u8, 167u8, 107u8, 127u8, 224u8, 174u8, 221u8, @@ -35263,9 +37199,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 34u8, 43u8, 47u8, 39u8, 106u8, 245u8, 49u8, 40u8, 191u8, 195u8, 202u8, 113u8, 137u8, 98u8, 143u8, 172u8, 191u8, 55u8, @@ -35304,9 +37243,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 97u8, 218u8, 115u8, 187u8, 167u8, 70u8, 229u8, 231u8, 148u8, 77u8, 169u8, 139u8, 16u8, 15u8, 116u8, 128u8, 32u8, 59u8, @@ -35337,9 +37279,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 99u8, 158u8, 48u8, 3u8, 228u8, 210u8, 249u8, 42u8, 44u8, 49u8, 24u8, 212u8, 69u8, 69u8, 189u8, 194u8, 124u8, 251u8, @@ -35372,9 +37317,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 64u8, 224u8, 233u8, 196u8, 182u8, 109u8, 69u8, 220u8, 46u8, 60u8, 189u8, 125u8, 17u8, 28u8, 207u8, 63u8, 129u8, 56u8, @@ -35556,9 +37504,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 13u8, 211u8, 240u8, 138u8, 231u8, 78u8, 123u8, 252u8, 210u8, 27u8, 202u8, 82u8, 157u8, 118u8, 209u8, 218u8, 160u8, 183u8, @@ -35580,9 +37531,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Funds<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 13u8, 211u8, 240u8, 138u8, 231u8, 78u8, 123u8, 252u8, 210u8, 27u8, 202u8, 82u8, 157u8, 118u8, 209u8, 218u8, 160u8, 183u8, @@ -35604,9 +37558,12 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 243u8, 204u8, 121u8, 230u8, 151u8, 223u8, 248u8, 199u8, 68u8, 209u8, 226u8, 159u8, 217u8, 105u8, 39u8, 127u8, 162u8, 133u8, @@ -35629,9 +37586,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 12u8, 159u8, 166u8, 75u8, 192u8, 33u8, 21u8, 244u8, 149u8, 200u8, 49u8, 54u8, 191u8, 174u8, 202u8, 86u8, 76u8, 115u8, @@ -35654,9 +37614,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 1u8, 215u8, 164u8, 194u8, 231u8, 34u8, 207u8, 19u8, 149u8, 187u8, 3u8, 176u8, 194u8, 240u8, 180u8, 169u8, 214u8, 194u8, @@ -35908,9 +37871,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 232u8, 188u8, 205u8, 27u8, 92u8, 141u8, 251u8, 24u8, 90u8, 155u8, 20u8, 139u8, 7u8, 160u8, 39u8, 85u8, 205u8, 11u8, @@ -35959,9 +37925,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 55u8, 192u8, 217u8, 186u8, 230u8, 234u8, 26u8, 194u8, 243u8, 199u8, 16u8, 227u8, 225u8, 88u8, 130u8, 219u8, 228u8, 110u8, @@ -36013,9 +37982,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 134u8, 229u8, 104u8, 209u8, 160u8, 7u8, 99u8, 175u8, 128u8, 110u8, 189u8, 225u8, 141u8, 1u8, 10u8, 17u8, 247u8, 233u8, @@ -36060,9 +38032,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 95u8, 48u8, 201u8, 232u8, 83u8, 23u8, 20u8, 126u8, 116u8, 116u8, 176u8, 206u8, 145u8, 9u8, 155u8, 109u8, 141u8, 226u8, @@ -36100,9 +38075,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 32u8, 219u8, 213u8, 152u8, 203u8, 73u8, 121u8, 64u8, 78u8, 53u8, 110u8, 23u8, 87u8, 93u8, 34u8, 166u8, 205u8, 189u8, @@ -36138,9 +38116,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 44u8, 161u8, 28u8, 189u8, 162u8, 221u8, 14u8, 31u8, 8u8, 211u8, 181u8, 51u8, 197u8, 14u8, 87u8, 198u8, 3u8, 240u8, @@ -36172,9 +38153,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 41u8, 248u8, 187u8, 195u8, 146u8, 143u8, 0u8, 246u8, 248u8, 38u8, 128u8, 200u8, 143u8, 149u8, 127u8, 73u8, 3u8, 247u8, @@ -36210,9 +38194,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 150u8, 202u8, 148u8, 13u8, 187u8, 169u8, 5u8, 60u8, 25u8, 144u8, 43u8, 196u8, 35u8, 215u8, 184u8, 72u8, 143u8, 220u8, @@ -36264,9 +38251,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 242u8, 206u8, 126u8, 164u8, 44u8, 116u8, 181u8, 90u8, 121u8, 124u8, 120u8, 240u8, 129u8, 217u8, 131u8, 100u8, 248u8, @@ -36321,9 +38311,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.call_hash::()? + let runtime_call_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.call_hash::()? + }; + if runtime_call_hash == [ 189u8, 233u8, 43u8, 16u8, 158u8, 114u8, 154u8, 233u8, 179u8, 144u8, 81u8, 179u8, 169u8, 38u8, 4u8, 130u8, 95u8, 237u8, @@ -36720,9 +38713,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 137u8, 58u8, 184u8, 88u8, 247u8, 22u8, 151u8, 64u8, 50u8, 77u8, 49u8, 10u8, 234u8, 84u8, 213u8, 156u8, 26u8, 200u8, @@ -36752,9 +38748,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 47u8, 241u8, 126u8, 71u8, 203u8, 121u8, 171u8, 226u8, 89u8, 17u8, 61u8, 198u8, 123u8, 73u8, 20u8, 197u8, 6u8, 23u8, 34u8, @@ -36776,9 +38775,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Queries<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 47u8, 241u8, 126u8, 71u8, 203u8, 121u8, 171u8, 226u8, 89u8, 17u8, 61u8, 198u8, 123u8, 73u8, 20u8, 197u8, 6u8, 23u8, 34u8, @@ -36801,9 +38803,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 46u8, 170u8, 126u8, 101u8, 101u8, 243u8, 31u8, 53u8, 166u8, 45u8, 90u8, 63u8, 2u8, 87u8, 36u8, 221u8, 101u8, 190u8, 51u8, @@ -36831,9 +38836,12 @@ pub mod api { ::subxt::KeyIter<'a, T, AssetTraps<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 46u8, 170u8, 126u8, 101u8, 101u8, 243u8, 31u8, 53u8, 166u8, 45u8, 90u8, 63u8, 2u8, 87u8, 36u8, 221u8, 101u8, 190u8, 51u8, @@ -36855,9 +38863,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 1u8, 223u8, 218u8, 204u8, 222u8, 129u8, 137u8, 237u8, 197u8, 142u8, 233u8, 66u8, 229u8, 153u8, 138u8, 222u8, 113u8, 164u8, @@ -36881,9 +38892,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 231u8, 202u8, 129u8, 82u8, 121u8, 63u8, 67u8, 57u8, 191u8, 190u8, 25u8, 27u8, 219u8, 42u8, 180u8, 142u8, 71u8, 119u8, @@ -36905,9 +38919,12 @@ pub mod api { ::subxt::KeyIter<'a, T, SupportedVersion<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 231u8, 202u8, 129u8, 82u8, 121u8, 63u8, 67u8, 57u8, 191u8, 190u8, 25u8, 27u8, 219u8, 42u8, 180u8, 142u8, 71u8, 119u8, @@ -36930,9 +38947,12 @@ pub mod api { ::core::option::Option<::core::primitive::u64>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 126u8, 49u8, 13u8, 135u8, 137u8, 68u8, 248u8, 211u8, 160u8, 160u8, 93u8, 128u8, 157u8, 230u8, 62u8, 119u8, 191u8, 51u8, @@ -36954,9 +38974,12 @@ pub mod api { ::subxt::KeyIter<'a, T, VersionNotifiers<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 126u8, 49u8, 13u8, 135u8, 137u8, 68u8, 248u8, 211u8, 160u8, 160u8, 93u8, 128u8, 157u8, 230u8, 62u8, 119u8, 191u8, 51u8, @@ -36984,9 +39007,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 251u8, 128u8, 243u8, 94u8, 162u8, 11u8, 206u8, 101u8, 33u8, 24u8, 163u8, 157u8, 112u8, 50u8, 91u8, 155u8, 241u8, 73u8, @@ -37009,9 +39035,12 @@ pub mod api { ::subxt::KeyIter<'a, T, VersionNotifyTargets<'a>>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 251u8, 128u8, 243u8, 94u8, 162u8, 11u8, 206u8, 101u8, 33u8, 24u8, 163u8, 157u8, 112u8, 50u8, 91u8, 155u8, 241u8, 73u8, @@ -37037,9 +39066,12 @@ pub mod api { )>, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 45u8, 28u8, 29u8, 233u8, 239u8, 65u8, 24u8, 214u8, 153u8, 189u8, 132u8, 235u8, 62u8, 197u8, 252u8, 56u8, 38u8, 97u8, @@ -37066,9 +39098,12 @@ pub mod api { >, ::subxt::BasicError, > { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.storage_hash::()? + let runtime_storage_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.storage_hash::()? + }; + if runtime_storage_hash == [ 228u8, 254u8, 240u8, 20u8, 92u8, 79u8, 40u8, 65u8, 176u8, 111u8, 243u8, 168u8, 238u8, 147u8, 247u8, 170u8, 185u8, From 988f758274ce498db1340179d959e904d81d0215 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Tue, 3 May 2022 19:30:15 +0300 Subject: [PATCH 19/35] Update polkadot.rs generation comment Signed-off-by: Alexandru Vasile --- integration-tests/src/codegen/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-tests/src/codegen/mod.rs b/integration-tests/src/codegen/mod.rs index 4f35f5d3e9..2a2fe8fa88 100644 --- a/integration-tests/src/codegen/mod.rs +++ b/integration-tests/src/codegen/mod.rs @@ -20,7 +20,7 @@ /// Generate by: /// /// - run `polkadot --dev --tmp` node locally -/// - `cargo run --release -p subxt-cli -- codegen | rustfmt > subxt/tests/integration/codegen/polkadot.rs` +/// - `cargo run --release -p subxt-cli -- codegen | rustfmt > integration-tests/src/codegen/polkadot.rs` #[rustfmt::skip] #[allow(clippy::all)] mod polkadot; From f5bde9b79394a6bf61b6b9daefc36ceaa84b82be Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 4 May 2022 17:42:24 +0300 Subject: [PATCH 20/35] subxt: Switch to async::Mutex Signed-off-by: Alexandru Vasile --- subxt/src/client.rs | 17 ++++++++-------- subxt/src/events/events_type.rs | 35 ++++++++++++++++++--------------- subxt/src/storage.rs | 7 ++++--- subxt/src/transaction.rs | 2 +- subxt/src/updates.rs | 15 +++++++------- 5 files changed, 41 insertions(+), 35 deletions(-) diff --git a/subxt/src/client.rs b/subxt/src/client.rs index eaa18ae64b..d567c59f03 100644 --- a/subxt/src/client.rs +++ b/subxt/src/client.rs @@ -47,6 +47,7 @@ use codec::{ Encode, }; use derivative::Derivative; +use futures::lock::Mutex; use parking_lot::RwLock; use std::sync::Arc; @@ -122,9 +123,9 @@ impl ClientBuilder { Ok(Client { rpc, genesis_hash: genesis_hash?, - metadata: Arc::new(RwLock::new(metadata)), + metadata: Arc::new(Mutex::new(metadata)), properties: properties.unwrap_or_else(|_| Default::default()), - runtime_version: Arc::new(RwLock::new(runtime_version?)), + runtime_version: Arc::new(Mutex::new(runtime_version?)), iter_page_size: self.page_size.unwrap_or(10), }) } @@ -136,9 +137,9 @@ impl ClientBuilder { pub struct Client { rpc: Rpc, genesis_hash: T::Hash, - metadata: Arc>, + metadata: Arc>, properties: SystemProperties, - runtime_version: Arc>, + runtime_version: Arc>, iter_page_size: u32, } @@ -163,7 +164,7 @@ impl Client { } /// Returns the chain metadata. - pub fn metadata(&self) -> Arc> { + pub fn metadata(&self) -> Arc> { Arc::clone(&self.metadata) } @@ -207,7 +208,7 @@ impl Client { } /// Returns the client's Runtime Version. - pub fn runtime_version(&self) -> Arc> { + pub fn runtime_version(&self) -> Arc> { Arc::clone(&self.runtime_version) } } @@ -330,7 +331,7 @@ where let call_data = { let mut bytes = Vec::new(); let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; let pallet = metadata.pallet(C::PALLET)?; bytes.push(pallet.index()); bytes.push(pallet.call_index::()?); @@ -342,7 +343,7 @@ where let additional_and_extra_params = { // Obtain spec version and transaction version from the runtime version of the client. let locked_runtime = self.client.runtime_version(); - let runtime = locked_runtime.read(); + let runtime = locked_runtime.lock().await; X::new( runtime.spec_version, runtime.transaction_version, diff --git a/subxt/src/events/events_type.rs b/subxt/src/events/events_type.rs index 57954e1a2d..792899714a 100644 --- a/subxt/src/events/events_type.rs +++ b/subxt/src/events/events_type.rs @@ -32,6 +32,7 @@ use codec::{ Input, }; use derivative::Derivative; +use futures::lock::Mutex; use parking_lot::RwLock; use sp_core::{ storage::StorageKey, @@ -93,7 +94,7 @@ fn system_events_key() -> StorageKey { #[derive(Derivative)] #[derivative(Debug(bound = ""))] pub struct Events { - metadata: Arc>, + metadata: Arc>, block_hash: T::Hash, // Note; raw event bytes are prefixed with a Compact containing // the number of events to be decoded. We should have stripped that off @@ -180,7 +181,7 @@ impl<'a, T: Config, Evs: Decode> Events { /// This method is safe to use even if you do not statically know about /// all of the possible events; it splits events up using the metadata /// obtained at runtime, which does. - pub fn iter_raw( + pub async fn iter_raw( &self, ) -> impl Iterator> + '_ { let event_bytes = &self.event_bytes; @@ -195,6 +196,7 @@ impl<'a, T: Config, Evs: Decode> Events { None } else { match decode_raw_event_details::(self.metadata.clone(), index, cursor) + .await { Ok(raw_event) => { // Skip over decoded bytes in next iteration: @@ -239,6 +241,7 @@ impl<'a, T: Config, Evs: Decode> Events { None } else { match decode_raw_event_details::(self.metadata.clone(), index, cursor) + .await { Ok(raw_event) => { // Skip over decoded bytes in next iteration: @@ -334,8 +337,8 @@ impl RawEventDetails { } // Attempt to dynamically decode a single event from our events input. -fn decode_raw_event_details( - metadata: Arc>, +async fn decode_raw_event_details( + metadata: Arc>, index: u32, input: &mut &[u8], ) -> Result { @@ -352,7 +355,7 @@ fn decode_raw_event_details( log::debug!("remaining input: {}", hex::encode(&input)); // Get metadata for the event: - let metadata = metadata.read(); + let metadata = metadata.lock().await; let event_metadata = metadata.event(pallet_index, variant_index)?; log::debug!( "Decoding Event '{}::{}'", @@ -473,7 +476,7 @@ pub(crate) mod test_utils { /// Build an `Events` object for test purposes, based on the details provided, /// and with a default block hash. pub fn events( - metadata: Arc>, + metadata: Arc>, event_records: Vec>, ) -> Events> { let num_events = event_records.len() as u32; @@ -487,7 +490,7 @@ pub(crate) mod test_utils { /// Much like [`events`], but takes pre-encoded events and event count, so that we can /// mess with the bytes in tests if we need to. pub fn events_raw( - metadata: Arc>, + metadata: Arc>, event_bytes: Vec, num_events: u32, ) -> Events> { @@ -525,7 +528,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = Arc::new(Mutex::new(metadata::())); // Encode our events in the format we expect back from a node, and // construct an Events object to iterate them: @@ -555,7 +558,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = Arc::new(Mutex::new(metadata::())); // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: @@ -601,7 +604,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = Arc::new(Mutex::new(metadata::())); // Encode 2 events: let mut event_bytes = vec![]; @@ -653,7 +656,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = Arc::new(Mutex::new(metadata::())); // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: @@ -695,7 +698,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = Arc::new(Mutex::new(metadata::())); // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: @@ -764,7 +767,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = Arc::new(Mutex::new(metadata::())); // Encode 2 events: let mut event_bytes = vec![]; @@ -831,7 +834,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = Arc::new(Mutex::new(metadata::())); // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: @@ -886,7 +889,7 @@ mod tests { struct CompactWrapper(u64); // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = Arc::new(Mutex::new(metadata::())); // Encode our events in the format we expect back from a node, and // construct an Events object to iterate them: @@ -948,7 +951,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = Arc::new(Mutex::new(metadata::())); // Encode our events in the format we expect back from a node, and // construct an Events object to iterate them: diff --git a/subxt/src/storage.rs b/subxt/src/storage.rs index 7d41278dbb..a867696668 100644 --- a/subxt/src/storage.rs +++ b/subxt/src/storage.rs @@ -20,6 +20,7 @@ use codec::{ Decode, Encode, }; +use futures::lock::Mutex; use parking_lot::RwLock; use sp_core::storage::{ StorageChangeSet, @@ -137,7 +138,7 @@ impl StorageMapKey { /// Client for querying runtime storage. pub struct StorageClient<'a, T: Config> { rpc: &'a Rpc, - metadata: Arc>, + metadata: Arc>, iter_page_size: u32, } @@ -155,7 +156,7 @@ impl<'a, T: Config> StorageClient<'a, T> { /// Create a new [`StorageClient`] pub fn new( rpc: &'a Rpc, - metadata: Arc>, + metadata: Arc>, iter_page_size: u32, ) -> Self { Self { @@ -207,7 +208,7 @@ impl<'a, T: Config> StorageClient<'a, T> { if let Some(data) = self.fetch(store, hash).await? { Ok(data) } else { - let metadata = self.metadata.read(); + let metadata = self.metadata.lock().await; let pallet_metadata = metadata.pallet(F::PALLET)?; let storage_metadata = pallet_metadata.storage(F::STORAGE)?; let default = Decode::decode(&mut &storage_metadata.default[..]) diff --git a/subxt/src/transaction.rs b/subxt/src/transaction.rs index cda1b3ba3e..84d2179b3b 100644 --- a/subxt/src/transaction.rs +++ b/subxt/src/transaction.rs @@ -390,7 +390,7 @@ impl<'client, T: Config, E: Decode + HasModuleError, Evs: Decode> if let Some(error_data) = dispatch_error.module_error_data() { // Error index is utilized as the first byte from the error array. let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; let details = metadata .error(error_data.pallet_index, error_data.error_index())?; return Err(Error::Module(ModuleError { diff --git a/subxt/src/updates.rs b/subxt/src/updates.rs index fb97b485ba..37c649abdf 100644 --- a/subxt/src/updates.rs +++ b/subxt/src/updates.rs @@ -25,22 +25,23 @@ use crate::{ Config, Metadata, }; +use futures::lock::Mutex; use parking_lot::RwLock; use std::sync::Arc; /// Client wrapper for performing runtime updates. pub struct UpdateClient { rpc: Rpc, - metadata: Arc>, - runtime_version: Arc>, + metadata: Arc>, + runtime_version: Arc>, } impl UpdateClient { /// Create a new [`UpdateClient`]. pub fn new( rpc: Rpc, - metadata: Arc>, - runtime_version: Arc>, + metadata: Arc>, + runtime_version: Arc>, ) -> Self { Self { rpc, @@ -69,7 +70,7 @@ impl UpdateClient { { // The Runtime Version of the client, as set during building the client // or during updates. - let runtime_version = self.runtime_version.read(); + let runtime_version = self.runtime_version.lock().await; if runtime_version.spec_version >= update_runtime_version.spec_version { log::debug!( "Runtime update not performed for spec_version={}, client has spec_version={}", @@ -82,7 +83,7 @@ impl UpdateClient { // Fetch the new metadata of the runtime node. let update_metadata = self.rpc.metadata().await?; - let mut runtime_version = self.runtime_version.write(); + let mut runtime_version = self.runtime_version.lock().await; // Update both the `RuntimeVersion` and `Metadata` of the client. log::info!( "Performing runtime update from {} to {}", @@ -91,7 +92,7 @@ impl UpdateClient { ); *runtime_version = update_runtime_version; log::debug!("Performing metadata update"); - let mut metadata = self.metadata.write(); + let mut metadata = self.metadata.lock().await; *metadata = update_metadata; log::debug!("Runtime update completed"); From 8b3ba4a5eabb29f77ac1ca671450956fc479a33d Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 4 May 2022 19:23:50 +0300 Subject: [PATCH 21/35] subxt: Block executor while decoding dynamic events Signed-off-by: Alexandru Vasile --- subxt/src/events/events_type.rs | 68 ++++++++++++++++++--------------- 1 file changed, 38 insertions(+), 30 deletions(-) diff --git a/subxt/src/events/events_type.rs b/subxt/src/events/events_type.rs index 792899714a..de73ccb811 100644 --- a/subxt/src/events/events_type.rs +++ b/subxt/src/events/events_type.rs @@ -181,7 +181,7 @@ impl<'a, T: Config, Evs: Decode> Events { /// This method is safe to use even if you do not statically know about /// all of the possible events; it splits events up using the metadata /// obtained at runtime, which does. - pub async fn iter_raw( + pub fn iter_raw( &self, ) -> impl Iterator> + '_ { let event_bytes = &self.event_bytes; @@ -196,7 +196,6 @@ impl<'a, T: Config, Evs: Decode> Events { None } else { match decode_raw_event_details::(self.metadata.clone(), index, cursor) - .await { Ok(raw_event) => { // Skip over decoded bytes in next iteration: @@ -241,7 +240,6 @@ impl<'a, T: Config, Evs: Decode> Events { None } else { match decode_raw_event_details::(self.metadata.clone(), index, cursor) - .await { Ok(raw_event) => { // Skip over decoded bytes in next iteration: @@ -337,7 +335,7 @@ impl RawEventDetails { } // Attempt to dynamically decode a single event from our events input. -async fn decode_raw_event_details( +fn decode_raw_event_details( metadata: Arc>, index: u32, input: &mut &[u8], @@ -354,31 +352,41 @@ async fn decode_raw_event_details( ); log::debug!("remaining input: {}", hex::encode(&input)); - // Get metadata for the event: - let metadata = metadata.lock().await; - let event_metadata = metadata.event(pallet_index, variant_index)?; - log::debug!( - "Decoding Event '{}::{}'", - event_metadata.pallet(), - event_metadata.event() - ); + let async_res: Result<_, BasicError> = futures::executor::block_on(async { + // Get metadata for the event: + let metadata = metadata.lock().await; + let event_metadata = metadata.event(pallet_index, variant_index)?; - // Use metadata to figure out which bytes belong to this event: - let mut event_bytes = Vec::new(); - for arg in event_metadata.variant().fields() { - let type_id = arg.ty().id(); - let all_bytes = *input; - // consume some bytes, moving the cursor forward: - decoding::decode_and_consume_type( - type_id, - &metadata.runtime_metadata().types, - input, - )?; - // count how many bytes were consumed based on remaining length: - let consumed_len = all_bytes.len() - input.len(); - // move those consumed bytes to the output vec unaltered: - event_bytes.extend(&all_bytes[0..consumed_len]); - } + log::debug!( + "Decoding Event '{}::{}'", + event_metadata.pallet(), + event_metadata.event() + ); + + let mut event_bytes = Vec::new(); + // Use metadata to figure out which bytes belong to this event: + for arg in event_metadata.variant().fields() { + let type_id = arg.ty().id(); + let all_bytes = *input; + // consume some bytes, moving the cursor forward: + decoding::decode_and_consume_type( + type_id, + &metadata.runtime_metadata().types, + input, + )?; + // count how many bytes were consumed based on remaining length: + let consumed_len = all_bytes.len() - input.len(); + // move those consumed bytes to the output vec unaltered: + event_bytes.extend(&all_bytes[0..consumed_len]); + } + + Ok(( + event_bytes, + event_metadata.pallet().to_string(), + event_metadata.event().to_string(), + )) + }); + let (event_bytes, pallet, variant) = async_res?; // topics come after the event data in EventRecord. They aren't used for // anything at the moment, so just decode and throw them away. @@ -389,9 +397,9 @@ async fn decode_raw_event_details( phase, index, pallet_index, - pallet: event_metadata.pallet().to_string(), + pallet, variant_index, - variant: event_metadata.event().to_string(), + variant, data: event_bytes.into(), }) } From ced4646541c431adcb973369b1061b7b3cbfaae1 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 4 May 2022 19:28:05 +0300 Subject: [PATCH 22/35] codegen: Use async API to handle async locking Signed-off-by: Alexandru Vasile --- codegen/src/api/calls.rs | 4 ++-- codegen/src/api/constants.rs | 4 ++-- codegen/src/api/mod.rs | 4 ++-- codegen/src/api/storage.rs | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index 47f39fa57a..2431cd776f 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -96,13 +96,13 @@ pub fn generate_calls( }; let client_fn = quote! { #docs - pub fn #fn_name( + pub async fn #fn_name( &self, #( #call_fn_args, )* ) -> Result<::subxt::SubmittableExtrinsic<'a, T, X, #struct_name, DispatchError, root_mod::Event>, ::subxt::BasicError> { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::<#struct_name>()? }; if runtime_call_hash == [#(#call_hash,)*] { diff --git a/codegen/src/api/constants.rs b/codegen/src/api/constants.rs index 4750ed59ba..124b94fc3a 100644 --- a/codegen/src/api/constants.rs +++ b/codegen/src/api/constants.rs @@ -48,9 +48,9 @@ pub fn generate_constants( quote! { #( #[doc = #docs ] )* - pub fn #fn_name(&self) -> ::core::result::Result<#return_ty, ::subxt::BasicError> { + pub async fn #fn_name(&self) -> ::core::result::Result<#return_ty, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash(#pallet_name, #constant_name)? == [#(#constant_hash,)*] { let pallet = metadata.pallet(#pallet_name)?; let constant = pallet.constant(#constant_name)?; diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 6ecd296f48..ecb0aeac31 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -311,9 +311,9 @@ impl RuntimeGenerator { T: ::subxt::Config, X: ::subxt::extrinsic::ExtrinsicParams, { - pub fn validate_metadata(&'a self) -> Result<(), ::subxt::MetadataError> { + pub async fn validate_metadata(&'a self) -> Result<(), ::subxt::MetadataError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.metadata_hash(&PALLETS) != [ #(#metadata_hash,)* ] { Err(::subxt::MetadataError::IncompatibleMetadata) } else { diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index 4a2c91c09f..0898bda55b 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -273,7 +273,7 @@ fn generate_storage_entry_fns( ) -> ::core::result::Result<::subxt::KeyIter<'a, T, #entry_struct_ident #lifetime_param>, ::subxt::BasicError> { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::<#entry_struct_ident>()? }; if runtime_storage_hash == [#(#storage_hash,)*] { @@ -307,7 +307,7 @@ fn generate_storage_entry_fns( ) -> ::core::result::Result<#return_ty, ::subxt::BasicError> { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::<#entry_struct_ident>()? }; if runtime_storage_hash == [#(#storage_hash,)*] { From e8ecbabb5b01a7ba4ae83b8bde36295a3f64daf7 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 4 May 2022 19:30:21 +0300 Subject: [PATCH 23/35] Remove unused dependencies Signed-off-by: Alexandru Vasile --- subxt/src/client.rs | 1 - subxt/src/events/events_type.rs | 1 - subxt/src/storage.rs | 1 - subxt/src/updates.rs | 1 - 4 files changed, 4 deletions(-) diff --git a/subxt/src/client.rs b/subxt/src/client.rs index d567c59f03..2e2bb0015f 100644 --- a/subxt/src/client.rs +++ b/subxt/src/client.rs @@ -48,7 +48,6 @@ use codec::{ }; use derivative::Derivative; use futures::lock::Mutex; -use parking_lot::RwLock; use std::sync::Arc; /// ClientBuilder for constructing a Client. diff --git a/subxt/src/events/events_type.rs b/subxt/src/events/events_type.rs index de73ccb811..6544ebef60 100644 --- a/subxt/src/events/events_type.rs +++ b/subxt/src/events/events_type.rs @@ -33,7 +33,6 @@ use codec::{ }; use derivative::Derivative; use futures::lock::Mutex; -use parking_lot::RwLock; use sp_core::{ storage::StorageKey, twox_128, diff --git a/subxt/src/storage.rs b/subxt/src/storage.rs index a867696668..2274d8e069 100644 --- a/subxt/src/storage.rs +++ b/subxt/src/storage.rs @@ -21,7 +21,6 @@ use codec::{ Encode, }; use futures::lock::Mutex; -use parking_lot::RwLock; use sp_core::storage::{ StorageChangeSet, StorageData, diff --git a/subxt/src/updates.rs b/subxt/src/updates.rs index 37c649abdf..865f9c1813 100644 --- a/subxt/src/updates.rs +++ b/subxt/src/updates.rs @@ -26,7 +26,6 @@ use crate::{ Metadata, }; use futures::lock::Mutex; -use parking_lot::RwLock; use std::sync::Arc; /// Client wrapper for performing runtime updates. From 5423f6eb4131582909d5a4ca70adff75e27cdd0e Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 4 May 2022 19:58:56 +0300 Subject: [PATCH 24/35] Update examples and integration-tests Signed-off-by: Alexandru Vasile --- examples/examples/balance_transfer.rs | 3 +- .../examples/balance_transfer_with_params.rs | 3 +- examples/examples/custom_config.rs | 3 +- examples/examples/metadata_compatibility.rs | 2 +- examples/examples/submit_and_watch.rs | 9 +- examples/examples/subscribe_all_events.rs | 1 + examples/examples/subscribe_one_event.rs | 1 + .../examples/subscribe_runtime_updates.rs | 1 + examples/examples/subscribe_some_events.rs | 1 + integration-tests/src/codegen/polkadot.rs | 2398 ++++++++--------- integration-tests/src/events/mod.rs | 3 +- integration-tests/src/frame/balances.rs | 15 +- integration-tests/src/frame/contracts.rs | 9 +- integration-tests/src/frame/staking.rs | 19 +- integration-tests/src/frame/sudo.rs | 6 +- integration-tests/src/frame/system.rs | 3 +- integration-tests/src/metadata/validation.rs | 48 +- integration-tests/src/storage/mod.rs | 9 +- subxt/src/events/filter_events.rs | 10 +- 19 files changed, 1302 insertions(+), 1242 deletions(-) diff --git a/examples/examples/balance_transfer.rs b/examples/examples/balance_transfer.rs index 21f64435ed..3a481fc8e7 100644 --- a/examples/examples/balance_transfer.rs +++ b/examples/examples/balance_transfer.rs @@ -47,7 +47,8 @@ async fn main() -> Result<(), Box> { let hash = api .tx() .balances() - .transfer(dest, 123_456_789_012_345)? + .transfer(dest, 123_456_789_012_345) + .await? .sign_and_submit_default(&signer) .await?; diff --git a/examples/examples/balance_transfer_with_params.rs b/examples/examples/balance_transfer_with_params.rs index 9d00eacaa8..3472425b29 100644 --- a/examples/examples/balance_transfer_with_params.rs +++ b/examples/examples/balance_transfer_with_params.rs @@ -59,7 +59,8 @@ async fn main() -> Result<(), Box> { let hash = api .tx() .balances() - .transfer(dest, 123_456_789_012_345)? + .transfer(dest, 123_456_789_012_345) + .await? .sign_and_submit(&signer, tx_params) .await?; diff --git a/examples/examples/custom_config.rs b/examples/examples/custom_config.rs index 27adb892a1..904afca6bf 100644 --- a/examples/examples/custom_config.rs +++ b/examples/examples/custom_config.rs @@ -68,7 +68,8 @@ async fn main() -> Result<(), Box> { let hash = api .tx() .balances() - .transfer(dest, 10_000)? + .transfer(dest, 10_000) + .await? .sign_and_submit_default(&signer) .await?; diff --git a/examples/examples/metadata_compatibility.rs b/examples/examples/metadata_compatibility.rs index a660bb9d14..c2e3aeac65 100644 --- a/examples/examples/metadata_compatibility.rs +++ b/examples/examples/metadata_compatibility.rs @@ -46,7 +46,7 @@ async fn main() -> Result<(), Box> { // // To make sure that all of our statically generated pallets are compatible with the // runtime node, we can run this check: - api.validate_metadata()?; + api.validate_metadata().await?; Ok(()) } diff --git a/examples/examples/submit_and_watch.rs b/examples/examples/submit_and_watch.rs index c41d7541ef..5bfab386f8 100644 --- a/examples/examples/submit_and_watch.rs +++ b/examples/examples/submit_and_watch.rs @@ -60,7 +60,8 @@ async fn simple_transfer() -> Result<(), Box> { let balance_transfer = api .tx() .balances() - .transfer(dest, 10_000)? + .transfer(dest, 10_000) + .await? .sign_and_submit_then_watch_default(&signer) .await? .wait_for_finalized_success() @@ -92,7 +93,8 @@ async fn simple_transfer_separate_events() -> Result<(), Box Result<(), Box> { let mut balance_transfer_progress = api .tx() .balances() - .transfer(dest, 10_000)? + .transfer(dest, 10_000) + .await? .sign_and_submit_then_watch_default(&signer) .await?; diff --git a/examples/examples/subscribe_all_events.rs b/examples/examples/subscribe_all_events.rs index 304cf4bd59..443e24d6d8 100644 --- a/examples/examples/subscribe_all_events.rs +++ b/examples/examples/subscribe_all_events.rs @@ -69,6 +69,7 @@ async fn main() -> Result<(), Box> { api.tx() .balances() .transfer(AccountKeyring::Bob.to_account_id().into(), transfer_amount) + .await .expect("compatible transfer call on runtime node") .sign_and_submit_default(&signer) .await diff --git a/examples/examples/subscribe_one_event.rs b/examples/examples/subscribe_one_event.rs index 1d09071a25..d705125499 100644 --- a/examples/examples/subscribe_one_event.rs +++ b/examples/examples/subscribe_one_event.rs @@ -73,6 +73,7 @@ async fn main() -> Result<(), Box> { api.tx() .balances() .transfer(AccountKeyring::Bob.to_account_id().into(), 1_000_000_000) + .await .expect("compatible transfer call on runtime node") .sign_and_submit_default(&signer) .await diff --git a/examples/examples/subscribe_runtime_updates.rs b/examples/examples/subscribe_runtime_updates.rs index dbcef545f4..5a5681322f 100644 --- a/examples/examples/subscribe_runtime_updates.rs +++ b/examples/examples/subscribe_runtime_updates.rs @@ -69,6 +69,7 @@ async fn main() -> Result<(), Box> { AccountKeyring::Bob.to_account_id().into(), 123_456_789_012_345, ) + .await .unwrap() .sign_and_submit_default(&signer) .await diff --git a/examples/examples/subscribe_some_events.rs b/examples/examples/subscribe_some_events.rs index 2e253ad16c..13c15e13f0 100644 --- a/examples/examples/subscribe_some_events.rs +++ b/examples/examples/subscribe_some_events.rs @@ -74,6 +74,7 @@ async fn main() -> Result<(), Box> { api.tx() .balances() .transfer(AccountKeyring::Bob.to_account_id().into(), 1_000_000_000) + .await .expect("compatible transfer call on runtime node") .sign_and_submit_default(&signer) .await diff --git a/integration-tests/src/codegen/polkadot.rs b/integration-tests/src/codegen/polkadot.rs index b0fc05cdcd..71ee8a5459 100644 --- a/integration-tests/src/codegen/polkadot.rs +++ b/integration-tests/src/codegen/polkadot.rs @@ -239,7 +239,7 @@ pub mod api { } } #[doc = "A dispatch that will fill the block weight up to the given ratio."] - pub fn fill_block( + pub async fn fill_block( &self, ratio: runtime_types::sp_arithmetic::per_things::Perbill, ) -> Result< @@ -255,7 +255,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -277,7 +277,7 @@ pub mod api { #[doc = "# "] #[doc = "- `O(1)`"] #[doc = "# "] - pub fn remark( + pub async fn remark( &self, remark: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -293,7 +293,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -311,7 +311,7 @@ pub mod api { } } #[doc = "Set the number of pages in the WebAssembly environment's heap."] - pub fn set_heap_pages( + pub async fn set_heap_pages( &self, pages: ::core::primitive::u64, ) -> Result< @@ -327,7 +327,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -356,7 +356,7 @@ pub mod api { #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] #[doc = "expensive. We will treat this as a full block."] #[doc = "# "] - pub fn set_code( + pub async fn set_code( &self, code: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -372,7 +372,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -398,7 +398,7 @@ pub mod api { #[doc = "- 1 event."] #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] #[doc = "block. # "] - pub fn set_code_without_checks( + pub async fn set_code_without_checks( &self, code: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -414,7 +414,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -432,7 +432,7 @@ pub mod api { } } #[doc = "Set some items of storage."] - pub fn set_storage( + pub async fn set_storage( &self, items: ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, @@ -451,7 +451,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -469,7 +469,7 @@ pub mod api { } } #[doc = "Kill some items from storage."] - pub fn kill_storage( + pub async fn kill_storage( &self, keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, ) -> Result< @@ -485,7 +485,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -506,7 +506,7 @@ pub mod api { #[doc = ""] #[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] #[doc = "the prefix we are removing to accurately calculate the weight of this function."] - pub fn kill_prefix( + pub async fn kill_prefix( &self, prefix: ::std::vec::Vec<::core::primitive::u8>, subkeys: ::core::primitive::u32, @@ -523,7 +523,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -541,7 +541,7 @@ pub mod api { } } #[doc = "Make some on-chain remark and emit event."] - pub fn remark_with_event( + pub async fn remark_with_event( &self, remark: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -557,7 +557,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -826,7 +826,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -856,7 +856,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -882,7 +882,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -911,7 +911,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -941,7 +941,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -967,7 +967,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -997,7 +997,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -1024,7 +1024,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -1054,7 +1054,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -1078,7 +1078,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -1106,7 +1106,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -1136,7 +1136,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -1174,7 +1174,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -1202,7 +1202,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -1242,7 +1242,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -1281,7 +1281,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -1309,7 +1309,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -1334,7 +1334,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -1363,7 +1363,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -1393,7 +1393,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -1422,14 +1422,14 @@ pub mod api { Self { client } } #[doc = " Block & extrinsics weights: base values and limits."] - pub fn block_weights( + pub async fn block_weights( &self, ) -> ::core::result::Result< runtime_types::frame_system::limits::BlockWeights, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("System", "BlockWeights")? == [ 12u8, 113u8, 191u8, 55u8, 3u8, 129u8, 43u8, 135u8, 41u8, @@ -1448,14 +1448,14 @@ pub mod api { } } #[doc = " The maximum length of a block (in bytes)."] - pub fn block_length( + pub async fn block_length( &self, ) -> ::core::result::Result< runtime_types::frame_system::limits::BlockLength, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("System", "BlockLength")? == [ 120u8, 249u8, 182u8, 103u8, 246u8, 214u8, 149u8, 44u8, 42u8, @@ -1474,12 +1474,12 @@ pub mod api { } } #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] - pub fn block_hash_count( + pub async fn block_hash_count( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("System", "BlockHashCount")? == [ 123u8, 126u8, 182u8, 103u8, 71u8, 187u8, 233u8, 8u8, 47u8, @@ -1498,14 +1498,14 @@ pub mod api { } } #[doc = " The weight of runtime database operations the runtime can invoke."] - pub fn db_weight( + pub async fn db_weight( &self, ) -> ::core::result::Result< runtime_types::frame_support::weights::RuntimeDbWeight, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("System", "DbWeight")? == [ 159u8, 93u8, 33u8, 204u8, 10u8, 85u8, 53u8, 104u8, 180u8, @@ -1524,14 +1524,14 @@ pub mod api { } } #[doc = " Get the chain's current version."] - pub fn version( + pub async fn version( &self, ) -> ::core::result::Result< runtime_types::sp_version::RuntimeVersion, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("System", "Version")? == [ 237u8, 208u8, 32u8, 121u8, 44u8, 122u8, 19u8, 109u8, 43u8, @@ -1554,12 +1554,12 @@ pub mod api { #[doc = " This replaces the \"ss58Format\" property declared in the chain spec. Reason is"] #[doc = " that the runtime should know about the prefix in order to make use of it as"] #[doc = " an identifier of the chain."] - pub fn ss58_prefix( + pub async fn ss58_prefix( &self, ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("System", "SS58Prefix")? == [ 80u8, 239u8, 133u8, 243u8, 151u8, 113u8, 37u8, 41u8, 100u8, @@ -1702,7 +1702,7 @@ pub mod api { } } #[doc = "Anonymously schedule a task."] - pub fn schedule( + pub async fn schedule( &self, when: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( @@ -1727,7 +1727,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -1750,7 +1750,7 @@ pub mod api { } } #[doc = "Cancel an anonymously scheduled task."] - pub fn cancel( + pub async fn cancel( &self, when: ::core::primitive::u32, index: ::core::primitive::u32, @@ -1767,7 +1767,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -1785,7 +1785,7 @@ pub mod api { } } #[doc = "Schedule a named task."] - pub fn schedule_named( + pub async fn schedule_named( &self, id: ::std::vec::Vec<::core::primitive::u8>, when: ::core::primitive::u32, @@ -1811,7 +1811,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -1835,7 +1835,7 @@ pub mod api { } } #[doc = "Cancel a named scheduled task."] - pub fn cancel_named( + pub async fn cancel_named( &self, id: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -1851,7 +1851,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -1873,7 +1873,7 @@ pub mod api { #[doc = "# "] #[doc = "Same as [`schedule`]."] #[doc = "# "] - pub fn schedule_after( + pub async fn schedule_after( &self, after: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( @@ -1898,7 +1898,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -1925,7 +1925,7 @@ pub mod api { #[doc = "# "] #[doc = "Same as [`schedule_named`](Self::schedule_named)."] #[doc = "# "] - pub fn schedule_named_after( + pub async fn schedule_named_after( &self, id: ::std::vec::Vec<::core::primitive::u8>, after: ::core::primitive::u32, @@ -1951,7 +1951,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -2071,7 +2071,7 @@ pub mod api { #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub async fn agenda (& self , _0 : & :: core :: primitive :: u32 , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_scheduler :: ScheduledV3 < runtime_types :: frame_support :: traits :: schedule :: MaybeHashed < runtime_types :: polkadot_runtime :: Call , :: subxt :: sp_core :: H256 > , :: core :: primitive :: u32 , runtime_types :: polkadot_runtime :: OriginCaller , :: subxt :: sp_core :: crypto :: AccountId32 > > > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -2101,7 +2101,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -2131,7 +2131,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -2158,7 +2158,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -2187,12 +2187,12 @@ pub mod api { } #[doc = " The maximum weight that may be scheduled per block for any dispatchables of less"] #[doc = " priority than `schedule::HARD_DEADLINE`."] - pub fn maximum_weight( + pub async fn maximum_weight( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Scheduler", "MaximumWeight")? == [ 235u8, 167u8, 74u8, 91u8, 5u8, 188u8, 76u8, 138u8, 208u8, @@ -2212,12 +2212,12 @@ pub mod api { } #[doc = " The maximum number of scheduled calls in the queue for a single block."] #[doc = " Not strictly enforced, but used for weight estimation."] - pub fn max_scheduled_per_block( + pub async fn max_scheduled_per_block( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Scheduler", "MaxScheduledPerBlock")? == [ 64u8, 25u8, 128u8, 202u8, 165u8, 97u8, 30u8, 196u8, 174u8, @@ -2300,7 +2300,7 @@ pub mod api { #[doc = ""] #[doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] #[doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] - pub fn note_preimage( + pub async fn note_preimage( &self, bytes: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -2316,7 +2316,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -2334,7 +2334,7 @@ pub mod api { } } #[doc = "Clear an unrequested preimage from the runtime storage."] - pub fn unnote_preimage( + pub async fn unnote_preimage( &self, hash: ::subxt::sp_core::H256, ) -> Result< @@ -2350,7 +2350,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -2371,7 +2371,7 @@ pub mod api { #[doc = ""] #[doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] #[doc = "a user may have paid, and take the control of the preimage out of their hands."] - pub fn request_preimage( + pub async fn request_preimage( &self, hash: ::subxt::sp_core::H256, ) -> Result< @@ -2387,7 +2387,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -2407,7 +2407,7 @@ pub mod api { #[doc = "Clear a previously made request for a preimage."] #[doc = ""] #[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] - pub fn unrequest_preimage( + pub async fn unrequest_preimage( &self, hash: ::subxt::sp_core::H256, ) -> Result< @@ -2423,7 +2423,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -2528,7 +2528,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -2555,7 +2555,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -2586,7 +2586,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -2613,7 +2613,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -2705,7 +2705,7 @@ pub mod api { #[doc = "the equivocation proof and validate the given key ownership proof"] #[doc = "against the extracted offender. If both are valid, the offence will"] #[doc = "be reported."] - pub fn report_equivocation( + pub async fn report_equivocation( &self, equivocation_proof : runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public >, key_owner_proof: runtime_types::sp_session::MembershipProof, @@ -2722,7 +2722,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -2752,7 +2752,7 @@ pub mod api { #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] #[doc = "if the block author is defined it will be defined as the equivocation"] #[doc = "reporter."] - pub fn report_equivocation_unsigned( + pub async fn report_equivocation_unsigned( &self, equivocation_proof : runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public >, key_owner_proof: runtime_types::sp_session::MembershipProof, @@ -2769,7 +2769,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -2795,7 +2795,7 @@ pub mod api { #[doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] #[doc = "Multiple calls to this method will replace any existing planned config change that had"] #[doc = "not been enacted yet."] - pub fn plan_config_change( + pub async fn plan_config_change( &self, config : runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor, ) -> Result< @@ -2811,7 +2811,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -2998,7 +2998,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3021,7 +3021,7 @@ pub mod api { #[doc = " Current epoch authorities."] pub async fn authorities (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3052,7 +3052,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3082,7 +3082,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3121,7 +3121,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3153,7 +3153,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3180,7 +3180,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3203,7 +3203,7 @@ pub mod api { #[doc = " Next epoch authorities."] pub async fn next_authorities (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3239,7 +3239,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3272,7 +3272,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3302,7 +3302,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3331,7 +3331,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3361,7 +3361,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3395,7 +3395,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3427,7 +3427,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3460,7 +3460,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3490,7 +3490,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3521,12 +3521,12 @@ pub mod api { #[doc = " The amount of time, in slots, that each epoch should last."] #[doc = " NOTE: Currently it is not possible to change the epoch duration after"] #[doc = " the chain has started. Attempting to do so will brick block production."] - pub fn epoch_duration( + pub async fn epoch_duration( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Babe", "EpochDuration")? == [ 40u8, 54u8, 255u8, 20u8, 89u8, 2u8, 38u8, 235u8, 70u8, 145u8, @@ -3549,12 +3549,12 @@ pub mod api { #[doc = " what the expected average block time should be based on the slot"] #[doc = " duration and the security parameter `c` (where `1 - c` represents"] #[doc = " the probability of a slot being empty)."] - pub fn expected_block_time( + pub async fn expected_block_time( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Babe", "ExpectedBlockTime")? == [ 249u8, 170u8, 37u8, 7u8, 132u8, 115u8, 106u8, 71u8, 116u8, @@ -3573,12 +3573,12 @@ pub mod api { } } #[doc = " Max number of authorities allowed"] - pub fn max_authorities( + pub async fn max_authorities( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Babe", "MaxAuthorities")? == [ 248u8, 195u8, 131u8, 166u8, 10u8, 50u8, 71u8, 223u8, 41u8, @@ -3650,7 +3650,7 @@ pub mod api { #[doc = " `on_finalize`)"] #[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] #[doc = "# "] - pub fn set( + pub async fn set( &self, now: ::core::primitive::u64, ) -> Result< @@ -3666,7 +3666,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -3720,7 +3720,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3748,7 +3748,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -3783,12 +3783,12 @@ pub mod api { #[doc = " period that the block production apparatus provides. Your chosen consensus system will"] #[doc = " generally work with this to determine a sensible block time. e.g. For Aura, it will be"] #[doc = " double this period on default settings."] - pub fn minimum_period( + pub async fn minimum_period( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Timestamp", "MinimumPeriod")? == [ 141u8, 242u8, 40u8, 24u8, 83u8, 43u8, 33u8, 194u8, 156u8, @@ -3911,7 +3911,7 @@ pub mod api { #[doc = "-------------------"] #[doc = "- DB Weight: 1 Read/Write (Accounts)"] #[doc = "# "] - pub fn claim( + pub async fn claim( &self, index: ::core::primitive::u32, ) -> Result< @@ -3927,7 +3927,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -3964,7 +3964,7 @@ pub mod api { #[doc = " - Reads: Indices Accounts, System Account (recipient)"] #[doc = " - Writes: Indices Accounts, System Account (recipient)"] #[doc = "# "] - pub fn transfer( + pub async fn transfer( &self, new: ::subxt::sp_core::crypto::AccountId32, index: ::core::primitive::u32, @@ -3981,7 +3981,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -4016,7 +4016,7 @@ pub mod api { #[doc = "-------------------"] #[doc = "- DB Weight: 1 Read/Write (Accounts)"] #[doc = "# "] - pub fn free( + pub async fn free( &self, index: ::core::primitive::u32, ) -> Result< @@ -4032,7 +4032,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -4070,7 +4070,7 @@ pub mod api { #[doc = " - Reads: Indices Accounts, System Account (original owner)"] #[doc = " - Writes: Indices Accounts, System Account (original owner)"] #[doc = "# "] - pub fn force_transfer( + pub async fn force_transfer( &self, new: ::subxt::sp_core::crypto::AccountId32, index: ::core::primitive::u32, @@ -4088,7 +4088,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -4123,7 +4123,7 @@ pub mod api { #[doc = "-------------------"] #[doc = "- DB Weight: 1 Read/Write (Accounts)"] #[doc = "# "] - pub fn freeze( + pub async fn freeze( &self, index: ::core::primitive::u32, ) -> Result< @@ -4139,7 +4139,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -4236,7 +4236,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -4263,7 +4263,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -4291,12 +4291,12 @@ pub mod api { Self { client } } #[doc = " The deposit needed for reserving an index."] - pub fn deposit( + pub async fn deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Indices", "Deposit")? == [ 249u8, 18u8, 129u8, 140u8, 50u8, 11u8, 128u8, 63u8, 198u8, @@ -4450,7 +4450,7 @@ pub mod api { #[doc = "---------------------------------"] #[doc = "- Origin account is already in memory, so no DB operations for them."] #[doc = "# "] - pub fn transfer( + pub async fn transfer( &self, dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -4470,7 +4470,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -4495,7 +4495,7 @@ pub mod api { #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] #[doc = ""] #[doc = "The dispatch origin for this call is `root`."] - pub fn set_balance( + pub async fn set_balance( &self, who: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -4516,7 +4516,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -4543,7 +4543,7 @@ pub mod api { #[doc = "- Same as transfer, but additional read and write because the source account is not"] #[doc = " assumed to be in the overlay."] #[doc = "# "] - pub fn force_transfer( + pub async fn force_transfer( &self, source: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -4567,7 +4567,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -4594,7 +4594,7 @@ pub mod api { #[doc = "99% of the time you want [`transfer`] instead."] #[doc = ""] #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] - pub fn transfer_keep_alive( + pub async fn transfer_keep_alive( &self, dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -4614,7 +4614,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -4648,7 +4648,7 @@ pub mod api { #[doc = " keep the sender account alive (true). # "] #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] #[doc = " #"] - pub fn transfer_all( + pub async fn transfer_all( &self, dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -4668,7 +4668,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -4688,7 +4688,7 @@ pub mod api { #[doc = "Unreserve some balance from a user by force."] #[doc = ""] #[doc = "Can only be called by ROOT."] - pub fn force_unreserve( + pub async fn force_unreserve( &self, who: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -4708,7 +4708,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -4916,7 +4916,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -4970,7 +4970,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -5023,7 +5023,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -5043,7 +5043,7 @@ pub mod api { #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub async fn locks (& self , _0 : & :: subxt :: sp_core :: crypto :: AccountId32 , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -5074,7 +5074,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -5106,7 +5106,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -5136,7 +5136,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -5164,7 +5164,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -5196,12 +5196,12 @@ pub mod api { Self { client } } #[doc = " The minimum amount required to keep an account open."] - pub fn existential_deposit( + pub async fn existential_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Balances", "ExistentialDeposit")? == [ 100u8, 197u8, 144u8, 241u8, 166u8, 142u8, 204u8, 246u8, @@ -5221,12 +5221,12 @@ pub mod api { } #[doc = " The maximum number of locks that should exist on an account."] #[doc = " Not strictly enforced, but used for weight estimation."] - pub fn max_locks( + pub async fn max_locks( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Balances", "MaxLocks")? == [ 250u8, 58u8, 19u8, 15u8, 35u8, 113u8, 227u8, 89u8, 39u8, @@ -5245,12 +5245,12 @@ pub mod api { } } #[doc = " The maximum number of named reserves that can exist on an account."] - pub fn max_reserves( + pub async fn max_reserves( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Balances", "MaxReserves")? == [ 24u8, 30u8, 77u8, 89u8, 216u8, 114u8, 140u8, 11u8, 127u8, @@ -5312,7 +5312,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -5341,7 +5341,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -5373,12 +5373,12 @@ pub mod api { Self { client } } #[doc = " The fee to be paid for making a transaction; the per-byte portion."] - pub fn transaction_byte_fee( + pub async fn transaction_byte_fee( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata .constant_hash("TransactionPayment", "TransactionByteFee")? == [ @@ -5418,12 +5418,12 @@ pub mod api { #[doc = " sent with the transaction. So, not only does the transaction get a priority bump based"] #[doc = " on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`"] #[doc = " transactions."] - pub fn operational_fee_multiplier( + pub async fn operational_fee_multiplier( &self, ) -> ::core::result::Result<::core::primitive::u8, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata .constant_hash("TransactionPayment", "OperationalFeeMultiplier")? == [ @@ -5443,7 +5443,7 @@ pub mod api { } } #[doc = " The polynomial that is applied in order to derive fee from weight."] - pub fn weight_to_fee( + pub async fn weight_to_fee( &self, ) -> ::core::result::Result< ::std::vec::Vec< @@ -5454,7 +5454,7 @@ pub mod api { ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("TransactionPayment", "WeightToFee")? == [ 194u8, 136u8, 54u8, 114u8, 5u8, 242u8, 3u8, 197u8, 151u8, @@ -5515,7 +5515,7 @@ pub mod api { } } #[doc = "Provide a set of uncles."] - pub fn set_uncles( + pub async fn set_uncles( &self, new_uncles: ::std::vec::Vec< runtime_types::sp_runtime::generic::header::Header< @@ -5536,7 +5536,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -5613,7 +5613,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -5643,7 +5643,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -5668,7 +5668,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -5702,12 +5702,12 @@ pub mod api { #[doc = " The number of blocks back we should accept uncles."] #[doc = " This means that we will deal with uncle-parents that are"] #[doc = " `UncleGenerations + 1` before `now`."] - pub fn uncle_generations( + pub async fn uncle_generations( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Authorship", "UncleGenerations")? == [ 0u8, 72u8, 57u8, 175u8, 222u8, 143u8, 191u8, 33u8, 163u8, @@ -6034,7 +6034,7 @@ pub mod api { #[doc = "unless the `origin` falls below _existential deposit_ and gets removed as dust."] #[doc = "------------------"] #[doc = "# "] - pub fn bond( + pub async fn bond( &self, controller: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -6057,7 +6057,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6093,7 +6093,7 @@ pub mod api { #[doc = "- Independent of the arguments. Insignificant complexity."] #[doc = "- O(1)."] #[doc = "# "] - pub fn bond_extra( + pub async fn bond_extra( &self, max_additional: ::core::primitive::u128, ) -> Result< @@ -6109,7 +6109,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6145,7 +6145,7 @@ pub mod api { #[doc = "Emits `Unbonded`."] #[doc = ""] #[doc = "See also [`Call::withdraw_unbonded`]."] - pub fn unbond( + pub async fn unbond( &self, value: ::core::primitive::u128, ) -> Result< @@ -6161,7 +6161,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6193,7 +6193,7 @@ pub mod api { #[doc = "Complexity O(S) where S is the number of slashing spans to remove"] #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] #[doc = "# "] - pub fn withdraw_unbonded( + pub async fn withdraw_unbonded( &self, num_slashing_spans: ::core::primitive::u32, ) -> Result< @@ -6209,7 +6209,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6231,7 +6231,7 @@ pub mod api { #[doc = "Effects will be felt at the beginning of the next era."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - pub fn validate( + pub async fn validate( &self, prefs: runtime_types::pallet_staking::ValidatorPrefs, ) -> Result< @@ -6247,7 +6247,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6275,7 +6275,7 @@ pub mod api { #[doc = "which is capped at CompactAssignments::LIMIT (T::MaxNominations)."] #[doc = "- Both the reads and writes follow a similar pattern."] #[doc = "# "] - pub fn nominate( + pub async fn nominate( &self, targets: ::std::vec::Vec< ::subxt::sp_runtime::MultiAddress< @@ -6296,7 +6296,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6324,7 +6324,7 @@ pub mod api { #[doc = "- Contains one read."] #[doc = "- Writes are limited to the `origin` account key."] #[doc = "# "] - pub fn chill( + pub async fn chill( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -6339,7 +6339,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6372,7 +6372,7 @@ pub mod api { #[doc = " - Read: Ledger"] #[doc = " - Write: Payee"] #[doc = "# "] - pub fn set_payee( + pub async fn set_payee( &self, payee: runtime_types::pallet_staking::RewardDestination< ::subxt::sp_core::crypto::AccountId32, @@ -6390,7 +6390,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6423,7 +6423,7 @@ pub mod api { #[doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] #[doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] #[doc = "# "] - pub fn set_controller( + pub async fn set_controller( &self, controller: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -6442,7 +6442,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6467,7 +6467,7 @@ pub mod api { #[doc = "Weight: O(1)"] #[doc = "Write: Validator Count"] #[doc = "# "] - pub fn set_validator_count( + pub async fn set_validator_count( &self, new: ::core::primitive::u32, ) -> Result< @@ -6483,7 +6483,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6507,7 +6507,7 @@ pub mod api { #[doc = "# "] #[doc = "Same as [`Self::set_validator_count`]."] #[doc = "# "] - pub fn increase_validator_count( + pub async fn increase_validator_count( &self, additional: ::core::primitive::u32, ) -> Result< @@ -6523,7 +6523,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6547,7 +6547,7 @@ pub mod api { #[doc = "# "] #[doc = "Same as [`Self::set_validator_count`]."] #[doc = "# "] - pub fn scale_validator_count( + pub async fn scale_validator_count( &self, factor: runtime_types::sp_arithmetic::per_things::Percent, ) -> Result< @@ -6563,7 +6563,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6595,7 +6595,7 @@ pub mod api { #[doc = "- Weight: O(1)"] #[doc = "- Write: ForceEra"] #[doc = "# "] - pub fn force_no_eras( + pub async fn force_no_eras( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -6610,7 +6610,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6643,7 +6643,7 @@ pub mod api { #[doc = "- Weight: O(1)"] #[doc = "- Write ForceEra"] #[doc = "# "] - pub fn force_new_era( + pub async fn force_new_era( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -6658,7 +6658,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6678,7 +6678,7 @@ pub mod api { #[doc = "Set the validators who cannot be slashed (if any)."] #[doc = ""] #[doc = "The dispatch origin must be Root."] - pub fn set_invulnerables( + pub async fn set_invulnerables( &self, invulnerables: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ) -> Result< @@ -6694,7 +6694,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6714,7 +6714,7 @@ pub mod api { #[doc = "Force a current staker to become completely unstaked, immediately."] #[doc = ""] #[doc = "The dispatch origin must be Root."] - pub fn force_unstake( + pub async fn force_unstake( &self, stash: ::subxt::sp_core::crypto::AccountId32, num_slashing_spans: ::core::primitive::u32, @@ -6731,7 +6731,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6760,7 +6760,7 @@ pub mod api { #[doc = "The election process starts multiple blocks before the end of the era."] #[doc = "If this is called just before a new era is triggered, the election process may not"] #[doc = "have enough blocks to get a result."] - pub fn force_new_era_always( + pub async fn force_new_era_always( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -6775,7 +6775,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6797,7 +6797,7 @@ pub mod api { #[doc = "Can be called by the `T::SlashCancelOrigin`."] #[doc = ""] #[doc = "Parameters: era and indices of the slashes for that era to kill."] - pub fn cancel_deferred_slash( + pub async fn cancel_deferred_slash( &self, era: ::core::primitive::u32, slash_indices: ::std::vec::Vec<::core::primitive::u32>, @@ -6814,7 +6814,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6852,7 +6852,7 @@ pub mod api { #[doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] #[doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] #[doc = "# "] - pub fn payout_stakers( + pub async fn payout_stakers( &self, validator_stash: ::subxt::sp_core::crypto::AccountId32, era: ::core::primitive::u32, @@ -6869,7 +6869,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6898,7 +6898,7 @@ pub mod api { #[doc = "- Bounded by `MaxUnlockingChunks`."] #[doc = "- Storage changes: Can't increase storage, only decrease it."] #[doc = "# "] - pub fn rebond( + pub async fn rebond( &self, value: ::core::primitive::u128, ) -> Result< @@ -6914,7 +6914,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -6953,7 +6953,7 @@ pub mod api { #[doc = " - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake,"] #[doc = " ErasStartSessionIndex"] #[doc = "# "] - pub fn set_history_depth( + pub async fn set_history_depth( &self, new_history_depth: ::core::primitive::u32, era_items_deleted: ::core::primitive::u32, @@ -6970,7 +6970,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -7002,7 +7002,7 @@ pub mod api { #[doc = "It can be called by anyone, as long as `stash` meets the above requirements."] #[doc = ""] #[doc = "Refunds the transaction fees upon successful execution."] - pub fn reap_stash( + pub async fn reap_stash( &self, stash: ::subxt::sp_core::crypto::AccountId32, num_slashing_spans: ::core::primitive::u32, @@ -7019,7 +7019,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -7050,7 +7050,7 @@ pub mod api { #[doc = ""] #[doc = "Note: Making this call only makes sense if you first set the validator preferences to"] #[doc = "block any further nominations."] - pub fn kick( + pub async fn kick( &self, who: ::std::vec::Vec< ::subxt::sp_runtime::MultiAddress< @@ -7071,7 +7071,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -7105,7 +7105,7 @@ pub mod api { #[doc = ""] #[doc = "NOTE: Existing nominators and validators will not be affected by this update."] #[doc = "to kick people under the new limits, `chill_other` should be called."] - pub fn set_staking_configs( + pub async fn set_staking_configs( &self, min_nominator_bond : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < :: core :: primitive :: u128 >, min_validator_bond : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < :: core :: primitive :: u128 >, @@ -7126,7 +7126,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -7176,7 +7176,7 @@ pub mod api { #[doc = ""] #[doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] #[doc = "who do not satisfy these requirements."] - pub fn chill_other( + pub async fn chill_other( &self, controller: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -7192,7 +7192,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -7212,7 +7212,7 @@ pub mod api { #[doc = "Force a validator to have at least the minimum commission. This will not affect a"] #[doc = "validator who already has a commission greater than or equal to the minimum. Any account"] #[doc = "can call this."] - pub fn force_apply_min_commission( + pub async fn force_apply_min_commission( &self, validator_stash: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -7228,7 +7228,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -7872,7 +7872,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -7900,7 +7900,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -7928,7 +7928,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -7960,7 +7960,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -7991,7 +7991,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8018,7 +8018,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8042,7 +8042,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8070,7 +8070,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8102,7 +8102,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8138,7 +8138,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8165,7 +8165,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8194,7 +8194,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8224,7 +8224,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8251,7 +8251,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8281,7 +8281,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8305,7 +8305,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8337,7 +8337,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8380,7 +8380,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8422,7 +8422,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8446,7 +8446,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8478,7 +8478,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8508,7 +8508,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8538,7 +8538,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8569,7 +8569,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8599,7 +8599,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8635,7 +8635,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8670,7 +8670,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8711,7 +8711,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8751,7 +8751,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8783,7 +8783,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8817,7 +8817,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8846,7 +8846,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8875,7 +8875,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8905,7 +8905,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8936,7 +8936,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8962,7 +8962,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -8993,7 +8993,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9019,7 +9019,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9051,7 +9051,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9080,7 +9080,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9116,7 +9116,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9146,7 +9146,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9175,7 +9175,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9211,7 +9211,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9239,7 +9239,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9267,7 +9267,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9294,7 +9294,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9323,7 +9323,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9350,7 +9350,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9381,7 +9381,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9412,7 +9412,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9438,7 +9438,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9465,7 +9465,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9503,7 +9503,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9536,7 +9536,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9570,7 +9570,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9599,12 +9599,12 @@ pub mod api { Self { client } } #[doc = " Maximum number of nominations per nominator."] - pub fn max_nominations( + pub async fn max_nominations( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Staking", "MaxNominations")? == [ 155u8, 58u8, 120u8, 225u8, 19u8, 30u8, 64u8, 6u8, 16u8, 72u8, @@ -9623,12 +9623,12 @@ pub mod api { } } #[doc = " Number of sessions per era."] - pub fn sessions_per_era( + pub async fn sessions_per_era( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Staking", "SessionsPerEra")? == [ 73u8, 207u8, 178u8, 212u8, 159u8, 9u8, 41u8, 31u8, 205u8, @@ -9647,12 +9647,12 @@ pub mod api { } } #[doc = " Number of eras that staked funds must remain bonded for."] - pub fn bonding_duration( + pub async fn bonding_duration( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Staking", "BondingDuration")? == [ 205u8, 83u8, 35u8, 244u8, 140u8, 127u8, 183u8, 152u8, 242u8, @@ -9674,12 +9674,12 @@ pub mod api { #[doc = ""] #[doc = " This should be less than the bonding duration. Set to 0 if slashes"] #[doc = " should be applied immediately, without opportunity for intervention."] - pub fn slash_defer_duration( + pub async fn slash_defer_duration( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Staking", "SlashDeferDuration")? == [ 119u8, 238u8, 165u8, 29u8, 118u8, 219u8, 225u8, 241u8, 249u8, @@ -9701,12 +9701,12 @@ pub mod api { #[doc = ""] #[doc = " For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can"] #[doc = " claim their reward. This used to limit the i/o cost for the nominator payout."] - pub fn max_nominator_rewarded_per_validator( + pub async fn max_nominator_rewarded_per_validator( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata .constant_hash("Staking", "MaxNominatorRewardedPerValidator")? == [ @@ -9728,12 +9728,12 @@ pub mod api { } #[doc = " The maximum number of `unlocking` chunks a [`StakingLedger`] can have. Effectively"] #[doc = " determines how many unique eras a staker may be unbonding in."] - pub fn max_unlocking_chunks( + pub async fn max_unlocking_chunks( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Staking", "MaxUnlockingChunks")? == [ 60u8, 255u8, 33u8, 12u8, 50u8, 253u8, 93u8, 203u8, 3u8, @@ -9860,7 +9860,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9887,7 +9887,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9915,7 +9915,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9945,7 +9945,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -9977,7 +9977,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -10012,7 +10012,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -10092,7 +10092,7 @@ pub mod api { #[doc = "- DbReads per key id: `KeyOwner`"] #[doc = "- DbWrites per key id: `KeyOwner`"] #[doc = "# "] - pub fn set_keys( + pub async fn set_keys( &self, keys: runtime_types::polkadot_runtime::SessionKeys, proof: ::std::vec::Vec<::core::primitive::u8>, @@ -10109,7 +10109,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -10142,7 +10142,7 @@ pub mod api { #[doc = "- DbWrites: `NextKeys`, `origin account`"] #[doc = "- DbWrites per key id: `KeyOwner`"] #[doc = "# "] - pub fn purge_keys( + pub async fn purge_keys( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -10157,7 +10157,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -10289,7 +10289,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -10317,7 +10317,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -10346,7 +10346,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -10380,7 +10380,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -10414,7 +10414,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -10445,7 +10445,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -10472,7 +10472,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -10500,7 +10500,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -10527,7 +10527,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -10613,7 +10613,7 @@ pub mod api { #[doc = "equivocation proof and validate the given key ownership proof"] #[doc = "against the extracted offender. If both are valid, the offence"] #[doc = "will be reported."] - pub fn report_equivocation( + pub async fn report_equivocation( &self, equivocation_proof : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: sp_core :: H256 , :: core :: primitive :: u32 >, key_owner_proof: runtime_types::sp_session::MembershipProof, @@ -10630,7 +10630,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -10661,7 +10661,7 @@ pub mod api { #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] #[doc = "if the block author is defined it will be defined as the equivocation"] #[doc = "reporter."] - pub fn report_equivocation_unsigned( + pub async fn report_equivocation_unsigned( &self, equivocation_proof : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: sp_core :: H256 , :: core :: primitive :: u32 >, key_owner_proof: runtime_types::sp_session::MembershipProof, @@ -10678,7 +10678,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -10707,7 +10707,7 @@ pub mod api { #[doc = "forced change will not be re-orged (e.g. 1000 blocks). The GRANDPA voters"] #[doc = "will start the new authority set using the given finalized block as base."] #[doc = "Only callable by root."] - pub fn note_stalled( + pub async fn note_stalled( &self, delay: ::core::primitive::u32, best_finalized_block_number: ::core::primitive::u32, @@ -10724,7 +10724,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -10855,7 +10855,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -10889,7 +10889,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -10916,7 +10916,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -10946,7 +10946,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -10972,7 +10972,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -11006,7 +11006,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -11036,7 +11036,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -11064,12 +11064,12 @@ pub mod api { Self { client } } #[doc = " Max Authorities in use"] - pub fn max_authorities( + pub async fn max_authorities( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Grandpa", "MaxAuthorities")? == [ 248u8, 195u8, 131u8, 166u8, 10u8, 50u8, 71u8, 223u8, 41u8, @@ -11136,7 +11136,7 @@ pub mod api { #[doc = " `ReceivedHeartbeats`"] #[doc = "- DbWrites: `ReceivedHeartbeats`"] #[doc = "# "] - pub fn heartbeat( + pub async fn heartbeat( &self, heartbeat: runtime_types::pallet_im_online::Heartbeat< ::core::primitive::u32, @@ -11155,7 +11155,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -11302,7 +11302,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -11325,7 +11325,7 @@ pub mod api { #[doc = " The current set of keys that may issue a heartbeat."] pub async fn keys (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -11362,7 +11362,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -11390,7 +11390,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -11417,7 +11417,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -11448,7 +11448,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -11479,12 +11479,12 @@ pub mod api { #[doc = ""] #[doc = " This is exposed so that it can be tuned for particular runtime, when"] #[doc = " multiple pallets send unsigned transactions."] - pub fn unsigned_priority( + pub async fn unsigned_priority( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("ImOnline", "UnsignedPriority")? == [ 78u8, 226u8, 84u8, 70u8, 162u8, 23u8, 167u8, 100u8, 156u8, @@ -11779,7 +11779,7 @@ pub mod api { #[doc = "Emits `Proposed`."] #[doc = ""] #[doc = "Weight: `O(p)`"] - pub fn propose( + pub async fn propose( &self, proposal_hash: ::subxt::sp_core::H256, value: ::core::primitive::u128, @@ -11796,7 +11796,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -11826,7 +11826,7 @@ pub mod api { #[doc = " proposal. Extrinsic is weighted according to this value with no refund."] #[doc = ""] #[doc = "Weight: `O(S)` where S is the number of seconds a proposal already has."] - pub fn second( + pub async fn second( &self, proposal: ::core::primitive::u32, seconds_upper_bound: ::core::primitive::u32, @@ -11843,7 +11843,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -11872,7 +11872,7 @@ pub mod api { #[doc = "- `vote`: The vote configuration."] #[doc = ""] #[doc = "Weight: `O(R)` where R is the number of referendums the voter has voted on."] - pub fn vote( + pub async fn vote( &self, ref_index: ::core::primitive::u32, vote: runtime_types::pallet_democracy::vote::AccountVote< @@ -11891,7 +11891,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -11916,7 +11916,7 @@ pub mod api { #[doc = "-`ref_index`: The index of the referendum to cancel."] #[doc = ""] #[doc = "Weight: `O(1)`."] - pub fn emergency_cancel( + pub async fn emergency_cancel( &self, ref_index: ::core::primitive::u32, ) -> Result< @@ -11932,7 +11932,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -11958,7 +11958,7 @@ pub mod api { #[doc = ""] #[doc = "Weight: `O(V)` with V number of vetoers in the blacklist of proposal."] #[doc = " Decoding vec of length V. Charged as maximum"] - pub fn external_propose( + pub async fn external_propose( &self, proposal_hash: ::subxt::sp_core::H256, ) -> Result< @@ -11974,7 +11974,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12002,7 +12002,7 @@ pub mod api { #[doc = "pre-scheduled `external_propose` call."] #[doc = ""] #[doc = "Weight: `O(1)`"] - pub fn external_propose_majority( + pub async fn external_propose_majority( &self, proposal_hash: ::subxt::sp_core::H256, ) -> Result< @@ -12018,7 +12018,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12046,7 +12046,7 @@ pub mod api { #[doc = "pre-scheduled `external_propose` call."] #[doc = ""] #[doc = "Weight: `O(1)`"] - pub fn external_propose_default( + pub async fn external_propose_default( &self, proposal_hash: ::subxt::sp_core::H256, ) -> Result< @@ -12062,7 +12062,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12094,7 +12094,7 @@ pub mod api { #[doc = "Emits `Started`."] #[doc = ""] #[doc = "Weight: `O(1)`"] - pub fn fast_track( + pub async fn fast_track( &self, proposal_hash: ::subxt::sp_core::H256, voting_period: ::core::primitive::u32, @@ -12112,7 +12112,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12142,7 +12142,7 @@ pub mod api { #[doc = "Emits `Vetoed`."] #[doc = ""] #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] - pub fn veto_external( + pub async fn veto_external( &self, proposal_hash: ::subxt::sp_core::H256, ) -> Result< @@ -12158,7 +12158,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12182,7 +12182,7 @@ pub mod api { #[doc = "- `ref_index`: The index of the referendum to cancel."] #[doc = ""] #[doc = "# Weight: `O(1)`."] - pub fn cancel_referendum( + pub async fn cancel_referendum( &self, ref_index: ::core::primitive::u32, ) -> Result< @@ -12198,7 +12198,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12222,7 +12222,7 @@ pub mod api { #[doc = "- `which`: The index of the referendum to cancel."] #[doc = ""] #[doc = "Weight: `O(D)` where `D` is the items in the dispatch queue. Weighted as `D = 10`."] - pub fn cancel_queued( + pub async fn cancel_queued( &self, which: ::core::primitive::u32, ) -> Result< @@ -12238,7 +12238,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12275,7 +12275,7 @@ pub mod api { #[doc = ""] #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] #[doc = " voted on. Weight is charged as if maximum votes."] - pub fn delegate( + pub async fn delegate( &self, to: ::subxt::sp_core::crypto::AccountId32, conviction: runtime_types::pallet_democracy::conviction::Conviction, @@ -12293,7 +12293,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12326,7 +12326,7 @@ pub mod api { #[doc = ""] #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] #[doc = " voted on. Weight is charged as if maximum votes."] - pub fn undelegate( + pub async fn undelegate( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -12341,7 +12341,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12363,7 +12363,7 @@ pub mod api { #[doc = "The dispatch origin of this call must be _Root_."] #[doc = ""] #[doc = "Weight: `O(1)`."] - pub fn clear_public_proposals( + pub async fn clear_public_proposals( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -12378,7 +12378,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12405,7 +12405,7 @@ pub mod api { #[doc = "Emits `PreimageNoted`."] #[doc = ""] #[doc = "Weight: `O(E)` with E size of `encoded_proposal` (protected by a required deposit)."] - pub fn note_preimage( + pub async fn note_preimage( &self, encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -12421,7 +12421,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12439,7 +12439,7 @@ pub mod api { } } #[doc = "Same as `note_preimage` but origin is `OperationalPreimageOrigin`."] - pub fn note_preimage_operational( + pub async fn note_preimage_operational( &self, encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -12455,7 +12455,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12484,7 +12484,7 @@ pub mod api { #[doc = "Emits `PreimageNoted`."] #[doc = ""] #[doc = "Weight: `O(E)` with E size of `encoded_proposal` (protected by a required deposit)."] - pub fn note_imminent_preimage( + pub async fn note_imminent_preimage( &self, encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -12500,7 +12500,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12518,7 +12518,7 @@ pub mod api { } } #[doc = "Same as `note_imminent_preimage` but origin is `OperationalPreimageOrigin`."] - pub fn note_imminent_preimage_operational( + pub async fn note_imminent_preimage_operational( &self, encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -12534,7 +12534,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12566,7 +12566,7 @@ pub mod api { #[doc = "Emits `PreimageReaped`."] #[doc = ""] #[doc = "Weight: `O(D)` where D is length of proposal."] - pub fn reap_preimage( + pub async fn reap_preimage( &self, proposal_hash: ::subxt::sp_core::H256, proposal_len_upper_bound: ::core::primitive::u32, @@ -12583,7 +12583,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12610,7 +12610,7 @@ pub mod api { #[doc = "- `target`: The account to remove the lock on."] #[doc = ""] #[doc = "Weight: `O(R)` with R number of vote of target."] - pub fn unlock( + pub async fn unlock( &self, target: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -12626,7 +12626,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12670,7 +12670,7 @@ pub mod api { #[doc = ""] #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] #[doc = " Weight is calculated for the maximum number of vote."] - pub fn remove_vote( + pub async fn remove_vote( &self, index: ::core::primitive::u32, ) -> Result< @@ -12686,7 +12686,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12718,7 +12718,7 @@ pub mod api { #[doc = ""] #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] #[doc = " Weight is calculated for the maximum number of vote."] - pub fn remove_other_vote( + pub async fn remove_other_vote( &self, target: ::subxt::sp_core::crypto::AccountId32, index: ::core::primitive::u32, @@ -12735,7 +12735,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12753,7 +12753,7 @@ pub mod api { } } #[doc = "Enact a proposal from a referendum. For now we just make the weight be the maximum."] - pub fn enact_proposal( + pub async fn enact_proposal( &self, proposal_hash: ::subxt::sp_core::H256, index: ::core::primitive::u32, @@ -12770,7 +12770,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12805,7 +12805,7 @@ pub mod api { #[doc = ""] #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] #[doc = " reasonable value)."] - pub fn blacklist( + pub async fn blacklist( &self, proposal_hash: ::subxt::sp_core::H256, maybe_ref_index: ::core::option::Option<::core::primitive::u32>, @@ -12822,7 +12822,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -12849,7 +12849,7 @@ pub mod api { #[doc = "- `prop_index`: The index of the proposal to cancel."] #[doc = ""] #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] - pub fn cancel_proposal( + pub async fn cancel_proposal( &self, prop_index: ::core::primitive::u32, ) -> Result< @@ -12865,7 +12865,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -13273,7 +13273,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13307,7 +13307,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13343,7 +13343,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13372,7 +13372,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13406,7 +13406,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13434,7 +13434,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13458,7 +13458,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13487,7 +13487,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13526,7 +13526,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13555,7 +13555,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13589,7 +13589,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13622,7 +13622,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13647,7 +13647,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13683,7 +13683,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13715,7 +13715,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13743,7 +13743,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13768,7 +13768,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13798,7 +13798,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13826,7 +13826,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -13859,12 +13859,12 @@ pub mod api { #[doc = " It should generally be a little more than the unstake period to ensure that"] #[doc = " voting stakers have an opportunity to remove themselves from the system in the case"] #[doc = " where they are on the losing side of a vote."] - pub fn enactment_period( + pub async fn enactment_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Democracy", "EnactmentPeriod")? == [ 227u8, 73u8, 197u8, 72u8, 142u8, 160u8, 229u8, 180u8, 110u8, @@ -13883,12 +13883,12 @@ pub mod api { } } #[doc = " How often (in blocks) new public referenda are launched."] - pub fn launch_period( + pub async fn launch_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Democracy", "LaunchPeriod")? == [ 107u8, 166u8, 54u8, 10u8, 127u8, 204u8, 15u8, 249u8, 71u8, @@ -13907,12 +13907,12 @@ pub mod api { } } #[doc = " How often (in blocks) to check for new votes."] - pub fn voting_period( + pub async fn voting_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Democracy", "VotingPeriod")? == [ 53u8, 228u8, 6u8, 131u8, 171u8, 179u8, 33u8, 29u8, 46u8, @@ -13934,12 +13934,12 @@ pub mod api { #[doc = ""] #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] #[doc = " those successful voters are locked into the consequences that their votes entail."] - pub fn vote_locking_period( + pub async fn vote_locking_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Democracy", "VoteLockingPeriod")? == [ 30u8, 71u8, 100u8, 117u8, 139u8, 71u8, 77u8, 189u8, 33u8, @@ -13958,12 +13958,12 @@ pub mod api { } } #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] - pub fn minimum_deposit( + pub async fn minimum_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Democracy", "MinimumDeposit")? == [ 13u8, 97u8, 190u8, 80u8, 197u8, 219u8, 115u8, 167u8, 134u8, @@ -13984,12 +13984,12 @@ pub mod api { #[doc = " Indicator for whether an emergency origin is even allowed to happen. Some chains may"] #[doc = " want to set this permanently to `false`, others may want to condition it on things such"] #[doc = " as an upgrade having happened recently."] - pub fn instant_allowed( + pub async fn instant_allowed( &self, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Democracy", "InstantAllowed")? == [ 66u8, 19u8, 43u8, 75u8, 149u8, 2u8, 157u8, 136u8, 33u8, @@ -14008,12 +14008,12 @@ pub mod api { } } #[doc = " Minimum voting period allowed for a fast-track referendum."] - pub fn fast_track_voting_period( + pub async fn fast_track_voting_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Democracy", "FastTrackVotingPeriod")? == [ 72u8, 110u8, 169u8, 125u8, 65u8, 142u8, 75u8, 117u8, 252u8, @@ -14032,12 +14032,12 @@ pub mod api { } } #[doc = " Period in blocks where an external proposal may not be re-submitted after being vetoed."] - pub fn cooloff_period( + pub async fn cooloff_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Democracy", "CooloffPeriod")? == [ 216u8, 225u8, 208u8, 207u8, 23u8, 216u8, 8u8, 144u8, 183u8, @@ -14056,12 +14056,12 @@ pub mod api { } } #[doc = " The amount of balance that must be deposited per byte of preimage stored."] - pub fn preimage_byte_deposit( + pub async fn preimage_byte_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Democracy", "PreimageByteDeposit")? == [ 123u8, 228u8, 214u8, 37u8, 90u8, 98u8, 166u8, 29u8, 231u8, @@ -14083,12 +14083,12 @@ pub mod api { #[doc = ""] #[doc = " Also used to compute weight, an overly big value can"] #[doc = " lead to extrinsic with very big weight: see `delegate` for instance."] - pub fn max_votes( + pub async fn max_votes( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Democracy", "MaxVotes")? == [ 218u8, 111u8, 73u8, 160u8, 254u8, 247u8, 22u8, 113u8, 78u8, @@ -14107,12 +14107,12 @@ pub mod api { } } #[doc = " The maximum number of public proposals that can exist at any time."] - pub fn max_proposals( + pub async fn max_proposals( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Democracy", "MaxProposals")? == [ 125u8, 103u8, 31u8, 211u8, 29u8, 50u8, 100u8, 13u8, 229u8, @@ -14256,7 +14256,7 @@ pub mod api { #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] #[doc = "# "] - pub fn set_members( + pub async fn set_members( &self, new_members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, prime: ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, @@ -14274,7 +14274,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -14306,7 +14306,7 @@ pub mod api { #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] #[doc = "- 1 event"] #[doc = "# "] - pub fn execute( + pub async fn execute( &self, proposal: runtime_types::polkadot_runtime::Call, length_bound: ::core::primitive::u32, @@ -14323,7 +14323,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -14370,7 +14370,7 @@ pub mod api { #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] #[doc = " - 1 event"] #[doc = "# "] - pub fn propose( + pub async fn propose( &self, threshold: ::core::primitive::u32, proposal: runtime_types::polkadot_runtime::Call, @@ -14388,7 +14388,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -14424,7 +14424,7 @@ pub mod api { #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] #[doc = "- 1 event"] #[doc = "# "] - pub fn vote( + pub async fn vote( &self, proposal: ::subxt::sp_core::H256, index: ::core::primitive::u32, @@ -14442,7 +14442,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -14495,7 +14495,7 @@ pub mod api { #[doc = " - any mutations done while executing `proposal` (`P1`)"] #[doc = "- up to 3 events"] #[doc = "# "] - pub fn close( + pub async fn close( &self, proposal_hash: ::subxt::sp_core::H256, index: ::core::primitive::u32, @@ -14514,7 +14514,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -14550,7 +14550,7 @@ pub mod api { #[doc = "* Reads: Proposals"] #[doc = "* Writes: Voting, Proposals, ProposalOf"] #[doc = "# "] - pub fn disapprove_proposal( + pub async fn disapprove_proposal( &self, proposal_hash: ::subxt::sp_core::H256, ) -> Result< @@ -14566,7 +14566,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -14754,7 +14754,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -14785,7 +14785,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -14812,7 +14812,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -14844,7 +14844,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -14871,7 +14871,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -14895,7 +14895,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -14925,7 +14925,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -14955,7 +14955,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -15098,7 +15098,7 @@ pub mod api { #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] #[doc = "# "] - pub fn set_members( + pub async fn set_members( &self, new_members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, prime: ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, @@ -15116,7 +15116,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -15148,7 +15148,7 @@ pub mod api { #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] #[doc = "- 1 event"] #[doc = "# "] - pub fn execute( + pub async fn execute( &self, proposal: runtime_types::polkadot_runtime::Call, length_bound: ::core::primitive::u32, @@ -15165,7 +15165,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -15212,7 +15212,7 @@ pub mod api { #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] #[doc = " - 1 event"] #[doc = "# "] - pub fn propose( + pub async fn propose( &self, threshold: ::core::primitive::u32, proposal: runtime_types::polkadot_runtime::Call, @@ -15230,7 +15230,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -15266,7 +15266,7 @@ pub mod api { #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] #[doc = "- 1 event"] #[doc = "# "] - pub fn vote( + pub async fn vote( &self, proposal: ::subxt::sp_core::H256, index: ::core::primitive::u32, @@ -15284,7 +15284,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -15337,7 +15337,7 @@ pub mod api { #[doc = " - any mutations done while executing `proposal` (`P1`)"] #[doc = "- up to 3 events"] #[doc = "# "] - pub fn close( + pub async fn close( &self, proposal_hash: ::subxt::sp_core::H256, index: ::core::primitive::u32, @@ -15356,7 +15356,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -15392,7 +15392,7 @@ pub mod api { #[doc = "* Reads: Proposals"] #[doc = "* Writes: Voting, Proposals, ProposalOf"] #[doc = "# "] - pub fn disapprove_proposal( + pub async fn disapprove_proposal( &self, proposal_hash: ::subxt::sp_core::H256, ) -> Result< @@ -15408,7 +15408,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -15596,7 +15596,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -15627,7 +15627,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -15654,7 +15654,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -15686,7 +15686,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -15713,7 +15713,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -15737,7 +15737,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -15767,7 +15767,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -15797,7 +15797,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -15920,7 +15920,7 @@ pub mod api { #[doc = "# "] #[doc = "We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less."] #[doc = "# "] - pub fn vote( + pub async fn vote( &self, votes: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, value: ::core::primitive::u128, @@ -15937,7 +15937,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -15959,7 +15959,7 @@ pub mod api { #[doc = "This removes the lock and returns the deposit."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed and be a voter."] - pub fn remove_voter( + pub async fn remove_voter( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -15974,7 +15974,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -16006,7 +16006,7 @@ pub mod api { #[doc = "# "] #[doc = "The number of current candidates must be provided as witness data."] #[doc = "# "] - pub fn submit_candidacy( + pub async fn submit_candidacy( &self, candidate_count: ::core::primitive::u32, ) -> Result< @@ -16022,7 +16022,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -16057,7 +16057,7 @@ pub mod api { #[doc = "# "] #[doc = "The type of renouncing must be provided as witness data."] #[doc = "# "] - pub fn renounce_candidacy( + pub async fn renounce_candidacy( &self, renouncing: runtime_types::pallet_elections_phragmen::Renouncing, ) -> Result< @@ -16073,7 +16073,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -16104,7 +16104,7 @@ pub mod api { #[doc = "If we have a replacement, we use a small weight. Else, since this is a root call and"] #[doc = "will go into phragmen, we assume full block for now."] #[doc = "# "] - pub fn remove_member( + pub async fn remove_member( &self, who: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -16124,7 +16124,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -16154,7 +16154,7 @@ pub mod api { #[doc = "# "] #[doc = "The total number of voters and those that are defunct must be provided as witness data."] #[doc = "# "] - pub fn clean_defunct_voters( + pub async fn clean_defunct_voters( &self, num_voters: ::core::primitive::u32, num_defunct: ::core::primitive::u32, @@ -16171,7 +16171,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -16360,7 +16360,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -16398,7 +16398,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -16436,7 +16436,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -16464,7 +16464,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -16500,7 +16500,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -16532,7 +16532,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -16560,14 +16560,14 @@ pub mod api { Self { client } } #[doc = " Identifier for the elections-phragmen pallet's lock"] - pub fn pallet_id( + pub async fn pallet_id( &self, ) -> ::core::result::Result< [::core::primitive::u8; 8usize], ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("PhragmenElection", "PalletId")? == [ 95u8, 63u8, 229u8, 200u8, 231u8, 11u8, 95u8, 106u8, 62u8, @@ -16586,12 +16586,12 @@ pub mod api { } } #[doc = " How much should be locked up in order to submit one's candidacy."] - pub fn candidacy_bond( + pub async fn candidacy_bond( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("PhragmenElection", "CandidacyBond")? == [ 14u8, 234u8, 73u8, 125u8, 101u8, 97u8, 55u8, 15u8, 230u8, @@ -16613,12 +16613,12 @@ pub mod api { #[doc = ""] #[doc = " This should be sensibly high to economically ensure the pallet cannot be attacked by"] #[doc = " creating a gigantic number of votes."] - pub fn voting_bond_base( + pub async fn voting_bond_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("PhragmenElection", "VotingBondBase")? == [ 180u8, 167u8, 175u8, 40u8, 243u8, 172u8, 143u8, 55u8, 194u8, @@ -16637,12 +16637,12 @@ pub mod api { } } #[doc = " The amount of bond that need to be locked for each vote (32 bytes)."] - pub fn voting_bond_factor( + pub async fn voting_bond_factor( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("PhragmenElection", "VotingBondFactor")? == [ 221u8, 163u8, 2u8, 102u8, 69u8, 249u8, 39u8, 153u8, 236u8, @@ -16661,12 +16661,12 @@ pub mod api { } } #[doc = " Number of members to elect."] - pub fn desired_members( + pub async fn desired_members( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("PhragmenElection", "DesiredMembers")? == [ 202u8, 93u8, 82u8, 184u8, 101u8, 152u8, 110u8, 247u8, 155u8, @@ -16685,12 +16685,12 @@ pub mod api { } } #[doc = " Number of runners_up to keep."] - pub fn desired_runners_up( + pub async fn desired_runners_up( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("PhragmenElection", "DesiredRunnersUp")? == [ 126u8, 79u8, 206u8, 94u8, 16u8, 223u8, 112u8, 34u8, 160u8, @@ -16711,12 +16711,12 @@ pub mod api { #[doc = " How long each seat is kept. This defines the next block number at which an election"] #[doc = " round will happen. If set to zero, no elections are ever triggered and the module will"] #[doc = " be in passive mode."] - pub fn term_duration( + pub async fn term_duration( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("PhragmenElection", "TermDuration")? == [ 193u8, 236u8, 82u8, 251u8, 38u8, 164u8, 72u8, 149u8, 65u8, @@ -16821,7 +16821,7 @@ pub mod api { #[doc = "Add a member `who` to the set."] #[doc = ""] #[doc = "May only be called from `T::AddOrigin`."] - pub fn add_member( + pub async fn add_member( &self, who: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -16837,7 +16837,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -16857,7 +16857,7 @@ pub mod api { #[doc = "Remove a member `who` from the set."] #[doc = ""] #[doc = "May only be called from `T::RemoveOrigin`."] - pub fn remove_member( + pub async fn remove_member( &self, who: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -16873,7 +16873,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -16895,7 +16895,7 @@ pub mod api { #[doc = "May only be called from `T::SwapOrigin`."] #[doc = ""] #[doc = "Prime membership is *not* passed from `remove` to `add`, if extant."] - pub fn swap_member( + pub async fn swap_member( &self, remove: ::subxt::sp_core::crypto::AccountId32, add: ::subxt::sp_core::crypto::AccountId32, @@ -16912,7 +16912,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -16933,7 +16933,7 @@ pub mod api { #[doc = "pass `members` pre-sorted."] #[doc = ""] #[doc = "May only be called from `T::ResetOrigin`."] - pub fn reset_members( + pub async fn reset_members( &self, members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ) -> Result< @@ -16949,7 +16949,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -16971,7 +16971,7 @@ pub mod api { #[doc = "May only be called from `Signed` origin of a current member."] #[doc = ""] #[doc = "Prime membership is passed from the origin account to `new`, if extant."] - pub fn change_key( + pub async fn change_key( &self, new: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -16987,7 +16987,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -17007,7 +17007,7 @@ pub mod api { #[doc = "Set the prime member. Must be a current member."] #[doc = ""] #[doc = "May only be called from `T::PrimeOrigin`."] - pub fn set_prime( + pub async fn set_prime( &self, who: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -17023,7 +17023,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -17043,7 +17043,7 @@ pub mod api { #[doc = "Remove the prime member if it exists."] #[doc = ""] #[doc = "May only be called from `T::PrimeOrigin`."] - pub fn clear_prime( + pub async fn clear_prime( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -17058,7 +17058,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -17160,7 +17160,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -17190,7 +17190,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -17276,7 +17276,7 @@ pub mod api { #[doc = "- DbReads: `ProposalCount`, `origin account`"] #[doc = "- DbWrites: `ProposalCount`, `Proposals`, `origin account`"] #[doc = "# "] - pub fn propose_spend( + pub async fn propose_spend( &self, value: ::core::primitive::u128, beneficiary: ::subxt::sp_runtime::MultiAddress< @@ -17296,7 +17296,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -17322,7 +17322,7 @@ pub mod api { #[doc = "- DbReads: `Proposals`, `rejected proposer account`"] #[doc = "- DbWrites: `Proposals`, `rejected proposer account`"] #[doc = "# "] - pub fn reject_proposal( + pub async fn reject_proposal( &self, proposal_id: ::core::primitive::u32, ) -> Result< @@ -17338,7 +17338,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -17365,7 +17365,7 @@ pub mod api { #[doc = "- DbReads: `Proposals`, `Approvals`"] #[doc = "- DbWrite: `Approvals`"] #[doc = "# "] - pub fn approve_proposal( + pub async fn approve_proposal( &self, proposal_id: ::core::primitive::u32, ) -> Result< @@ -17381,7 +17381,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -17548,7 +17548,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -17584,7 +17584,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -17611,7 +17611,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -17639,7 +17639,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -17672,14 +17672,14 @@ pub mod api { } #[doc = " Fraction of a proposal's value that should be bonded in order to place the proposal."] #[doc = " An accepted proposal gets these back. A rejected proposal does not."] - pub fn proposal_bond( + pub async fn proposal_bond( &self, ) -> ::core::result::Result< runtime_types::sp_arithmetic::per_things::Permill, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Treasury", "ProposalBond")? == [ 254u8, 112u8, 56u8, 108u8, 71u8, 90u8, 128u8, 114u8, 54u8, @@ -17698,12 +17698,12 @@ pub mod api { } } #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] - pub fn proposal_bond_minimum( + pub async fn proposal_bond_minimum( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Treasury", "ProposalBondMinimum")? == [ 233u8, 16u8, 162u8, 158u8, 32u8, 30u8, 243u8, 215u8, 145u8, @@ -17722,14 +17722,14 @@ pub mod api { } } #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] - pub fn proposal_bond_maximum( + pub async fn proposal_bond_maximum( &self, ) -> ::core::result::Result< ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Treasury", "ProposalBondMaximum")? == [ 12u8, 199u8, 104u8, 127u8, 224u8, 233u8, 186u8, 181u8, 74u8, @@ -17748,12 +17748,12 @@ pub mod api { } } #[doc = " Period between successive spends."] - pub fn spend_period( + pub async fn spend_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Treasury", "SpendPeriod")? == [ 71u8, 58u8, 201u8, 70u8, 240u8, 191u8, 67u8, 71u8, 12u8, @@ -17772,14 +17772,14 @@ pub mod api { } } #[doc = " Percentage of spare funds (if any) that are burnt per spend period."] - pub fn burn( + pub async fn burn( &self, ) -> ::core::result::Result< runtime_types::sp_arithmetic::per_things::Permill, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Treasury", "Burn")? == [ 179u8, 112u8, 148u8, 197u8, 209u8, 103u8, 231u8, 44u8, 227u8, @@ -17798,14 +17798,14 @@ pub mod api { } } #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] - pub fn pallet_id( + pub async fn pallet_id( &self, ) -> ::core::result::Result< runtime_types::frame_support::PalletId, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Treasury", "PalletId")? == [ 65u8, 140u8, 92u8, 164u8, 174u8, 209u8, 169u8, 31u8, 29u8, @@ -17826,12 +17826,12 @@ pub mod api { #[doc = " The maximum number of approvals that can wait in the spending queue."] #[doc = ""] #[doc = " NOTE: This parameter is also used within the Bounties Pallet extension if enabled."] - pub fn max_approvals( + pub async fn max_approvals( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Treasury", "MaxApprovals")? == [ 90u8, 101u8, 189u8, 20u8, 137u8, 178u8, 7u8, 81u8, 148u8, @@ -17959,7 +17959,7 @@ pub mod api { #[doc = ""] #[doc = "Total Complexity: O(1)"] #[doc = ""] - pub fn claim( + pub async fn claim( &self, dest: ::subxt::sp_core::crypto::AccountId32, ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature, @@ -17976,7 +17976,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -18011,7 +18011,7 @@ pub mod api { #[doc = ""] #[doc = "Total Complexity: O(1)"] #[doc = ""] - pub fn mint_claim( + pub async fn mint_claim( &self, who: runtime_types::polkadot_runtime_common::claims::EthereumAddress, value: ::core::primitive::u128, @@ -18036,7 +18036,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -18084,7 +18084,7 @@ pub mod api { #[doc = ""] #[doc = "Total Complexity: O(1)"] #[doc = ""] - pub fn claim_attest( + pub async fn claim_attest( &self, dest: ::subxt::sp_core::crypto::AccountId32, ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature, @@ -18102,7 +18102,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -18140,7 +18140,7 @@ pub mod api { #[doc = ""] #[doc = "Total Complexity: O(1)"] #[doc = ""] - pub fn attest( + pub async fn attest( &self, statement: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -18156,7 +18156,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -18173,7 +18173,7 @@ pub mod api { Err(::subxt::MetadataError::IncompatibleMetadata.into()) } } - pub fn move_claim( + pub async fn move_claim( &self, old: runtime_types::polkadot_runtime_common::claims::EthereumAddress, new: runtime_types::polkadot_runtime_common::claims::EthereumAddress, @@ -18193,7 +18193,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -18319,7 +18319,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -18345,7 +18345,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -18368,7 +18368,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -18406,7 +18406,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -18436,7 +18436,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -18465,7 +18465,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -18492,7 +18492,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -18521,7 +18521,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -18548,7 +18548,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -18575,14 +18575,14 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn prefix( + pub async fn prefix( &self, ) -> ::core::result::Result< ::std::vec::Vec<::core::primitive::u8>, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Claims", "Prefix")? == [ 151u8, 15u8, 166u8, 7u8, 98u8, 182u8, 188u8, 119u8, 175u8, @@ -18702,7 +18702,7 @@ pub mod api { #[doc = " - Reads: Vesting Storage, Balances Locks, [Sender Account]"] #[doc = " - Writes: Vesting Storage, Balances Locks, [Sender Account]"] #[doc = "# "] - pub fn vest( + pub async fn vest( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -18717,7 +18717,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -18749,7 +18749,7 @@ pub mod api { #[doc = " - Reads: Vesting Storage, Balances Locks, Target Account"] #[doc = " - Writes: Vesting Storage, Balances Locks, Target Account"] #[doc = "# "] - pub fn vest_other( + pub async fn vest_other( &self, target: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -18768,7 +18768,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -18802,7 +18802,7 @@ pub mod api { #[doc = " - Reads: Vesting Storage, Balances Locks, Target Account, [Sender Account]"] #[doc = " - Writes: Vesting Storage, Balances Locks, Target Account, [Sender Account]"] #[doc = "# "] - pub fn vested_transfer( + pub async fn vested_transfer( &self, target: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -18825,7 +18825,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -18860,7 +18860,7 @@ pub mod api { #[doc = " - Reads: Vesting Storage, Balances Locks, Target Account, Source Account"] #[doc = " - Writes: Vesting Storage, Balances Locks, Target Account, Source Account"] #[doc = "# "] - pub fn force_vested_transfer( + pub async fn force_vested_transfer( &self, source: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -18887,7 +18887,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -18929,7 +18929,7 @@ pub mod api { #[doc = ""] #[doc = "- `schedule1_index`: index of the first schedule to merge."] #[doc = "- `schedule2_index`: index of the second schedule to merge."] - pub fn merge_schedules( + pub async fn merge_schedules( &self, schedule1_index: ::core::primitive::u32, schedule2_index: ::core::primitive::u32, @@ -18946,7 +18946,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -19046,7 +19046,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -19073,7 +19073,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -19101,7 +19101,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -19133,12 +19133,12 @@ pub mod api { Self { client } } #[doc = " The minimum amount transferred to call `vested_transfer`."] - pub fn min_vested_transfer( + pub async fn min_vested_transfer( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Vesting", "MinVestedTransfer")? == [ 92u8, 250u8, 99u8, 224u8, 124u8, 3u8, 41u8, 238u8, 116u8, @@ -19156,12 +19156,12 @@ pub mod api { Err(::subxt::MetadataError::IncompatibleMetadata.into()) } } - pub fn max_vesting_schedules( + pub async fn max_vesting_schedules( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Vesting", "MaxVestingSchedules")? == [ 156u8, 82u8, 251u8, 182u8, 112u8, 167u8, 99u8, 73u8, 181u8, @@ -19262,7 +19262,7 @@ pub mod api { #[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] #[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] #[doc = "event is deposited."] - pub fn batch( + pub async fn batch( &self, calls: ::std::vec::Vec, ) -> Result< @@ -19278,7 +19278,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -19308,7 +19308,7 @@ pub mod api { #[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] - pub fn as_derivative( + pub async fn as_derivative( &self, index: ::core::primitive::u16, call: runtime_types::polkadot_runtime::Call, @@ -19325,7 +19325,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -19359,7 +19359,7 @@ pub mod api { #[doc = "# "] #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] #[doc = "# "] - pub fn batch_all( + pub async fn batch_all( &self, calls: ::std::vec::Vec, ) -> Result< @@ -19375,7 +19375,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -19402,7 +19402,7 @@ pub mod api { #[doc = "- One DB write (event)."] #[doc = "- Weight of derivative `call` execution + T::WeightInfo::dispatch_as()."] #[doc = "# "] - pub fn dispatch_as( + pub async fn dispatch_as( &self, as_origin: runtime_types::polkadot_runtime::OriginCaller, call: runtime_types::polkadot_runtime::Call, @@ -19419,7 +19419,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -19490,12 +19490,12 @@ pub mod api { Self { client } } #[doc = " The limit on the number of batched calls."] - pub fn batched_calls_limit( + pub async fn batched_calls_limit( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Utility", "batched_calls_limit")? == [ 230u8, 161u8, 6u8, 191u8, 162u8, 108u8, 149u8, 245u8, 68u8, @@ -19715,7 +19715,7 @@ pub mod api { #[doc = "- One storage mutation (codec `O(R)`)."] #[doc = "- One event."] #[doc = "# "] - pub fn add_registrar( + pub async fn add_registrar( &self, account: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -19731,7 +19731,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -19767,7 +19767,7 @@ pub mod api { #[doc = "- One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`)."] #[doc = "- One event."] #[doc = "# "] - pub fn set_identity( + pub async fn set_identity( &self, info: runtime_types::pallet_identity::types::IdentityInfo, ) -> Result< @@ -19783,7 +19783,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -19823,7 +19823,7 @@ pub mod api { #[doc = " - One storage write (codec complexity `O(S)`)."] #[doc = " - One storage-exists (`IdentityOf::contains_key`)."] #[doc = "# "] - pub fn set_subs( + pub async fn set_subs( &self, subs: ::std::vec::Vec<( ::subxt::sp_core::crypto::AccountId32, @@ -19842,7 +19842,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -19877,7 +19877,7 @@ pub mod api { #[doc = "- `2` storage reads and `S + 2` storage deletions."] #[doc = "- One event."] #[doc = "# "] - pub fn clear_identity( + pub async fn clear_identity( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -19892,7 +19892,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -19932,7 +19932,7 @@ pub mod api { #[doc = "- Storage: 1 read `O(R)`, 1 mutate `O(X + R)`."] #[doc = "- One event."] #[doc = "# "] - pub fn request_judgement( + pub async fn request_judgement( &self, reg_index: ::core::primitive::u32, max_fee: ::core::primitive::u128, @@ -19949,7 +19949,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -19983,7 +19983,7 @@ pub mod api { #[doc = "- One storage mutation `O(R + X)`."] #[doc = "- One event"] #[doc = "# "] - pub fn cancel_request( + pub async fn cancel_request( &self, reg_index: ::core::primitive::u32, ) -> Result< @@ -19999,7 +19999,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -20029,7 +20029,7 @@ pub mod api { #[doc = "- One storage mutation `O(R)`."] #[doc = "- Benchmark: 7.315 + R * 0.329 µs (min squares analysis)"] #[doc = "# "] - pub fn set_fee( + pub async fn set_fee( &self, index: ::core::primitive::u32, fee: ::core::primitive::u128, @@ -20046,7 +20046,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -20076,7 +20076,7 @@ pub mod api { #[doc = "- One storage mutation `O(R)`."] #[doc = "- Benchmark: 8.823 + R * 0.32 µs (min squares analysis)"] #[doc = "# "] - pub fn set_account_id( + pub async fn set_account_id( &self, index: ::core::primitive::u32, new: ::subxt::sp_core::crypto::AccountId32, @@ -20093,7 +20093,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -20123,7 +20123,7 @@ pub mod api { #[doc = "- One storage mutation `O(R)`."] #[doc = "- Benchmark: 7.464 + R * 0.325 µs (min squares analysis)"] #[doc = "# "] - pub fn set_fields( + pub async fn set_fields( &self, index: ::core::primitive::u32, fields: runtime_types::pallet_identity::types::BitFlags< @@ -20142,7 +20142,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -20178,7 +20178,7 @@ pub mod api { #[doc = "- Storage: 1 read `O(R)`, 1 mutate `O(R + X)`."] #[doc = "- One event."] #[doc = "# "] - pub fn provide_judgement( + pub async fn provide_judgement( &self, reg_index: ::core::primitive::u32, target: ::subxt::sp_runtime::MultiAddress< @@ -20201,7 +20201,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -20241,7 +20241,7 @@ pub mod api { #[doc = "- `S + 2` storage mutations."] #[doc = "- One event."] #[doc = "# "] - pub fn kill_identity( + pub async fn kill_identity( &self, target: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -20260,7 +20260,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -20284,7 +20284,7 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] - pub fn add_sub( + pub async fn add_sub( &self, sub: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -20304,7 +20304,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -20325,7 +20325,7 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] - pub fn rename_sub( + pub async fn rename_sub( &self, sub: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -20345,7 +20345,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -20369,7 +20369,7 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] - pub fn remove_sub( + pub async fn remove_sub( &self, sub: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -20388,7 +20388,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -20415,7 +20415,7 @@ pub mod api { #[doc = ""] #[doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] #[doc = "controller of an account is maliciously registered as a sub-account."] - pub fn quit_sub( + pub async fn quit_sub( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -20430,7 +20430,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -20649,7 +20649,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -20678,7 +20678,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -20709,7 +20709,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -20737,7 +20737,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -20773,7 +20773,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -20807,7 +20807,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -20843,7 +20843,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -20875,12 +20875,12 @@ pub mod api { Self { client } } #[doc = " The amount held on deposit for a registered identity"] - pub fn basic_deposit( + pub async fn basic_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Identity", "BasicDeposit")? == [ 240u8, 163u8, 226u8, 52u8, 199u8, 248u8, 206u8, 2u8, 38u8, @@ -20899,12 +20899,12 @@ pub mod api { } } #[doc = " The amount held on deposit per additional field for a registered identity."] - pub fn field_deposit( + pub async fn field_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Identity", "FieldDeposit")? == [ 165u8, 151u8, 74u8, 173u8, 28u8, 8u8, 195u8, 171u8, 159u8, @@ -20925,12 +20925,12 @@ pub mod api { #[doc = " The amount held on deposit for a registered subaccount. This should account for the fact"] #[doc = " that one storage item's value will increase by the size of an account ID, and there will"] #[doc = " be another trie item whose value is the size of an account ID plus 32 bytes."] - pub fn sub_account_deposit( + pub async fn sub_account_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Identity", "SubAccountDeposit")? == [ 132u8, 115u8, 135u8, 88u8, 142u8, 44u8, 215u8, 122u8, 22u8, @@ -20949,12 +20949,12 @@ pub mod api { } } #[doc = " The maximum number of sub-accounts allowed per identified account."] - pub fn max_sub_accounts( + pub async fn max_sub_accounts( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Identity", "MaxSubAccounts")? == [ 75u8, 1u8, 223u8, 132u8, 121u8, 0u8, 145u8, 246u8, 118u8, @@ -20974,12 +20974,12 @@ pub mod api { } #[doc = " Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O"] #[doc = " required to access an identity, but can be pretty high."] - pub fn max_additional_fields( + pub async fn max_additional_fields( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Identity", "MaxAdditionalFields")? == [ 52u8, 246u8, 245u8, 172u8, 242u8, 40u8, 79u8, 11u8, 106u8, @@ -20999,12 +20999,12 @@ pub mod api { } #[doc = " Maxmimum number of registrars allowed in the system. Needed to bound the complexity"] #[doc = " of, e.g., updating judgements."] - pub fn max_registrars( + pub async fn max_registrars( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Identity", "MaxRegistrars")? == [ 172u8, 101u8, 183u8, 243u8, 249u8, 249u8, 95u8, 104u8, 100u8, @@ -21166,7 +21166,7 @@ pub mod api { #[doc = "# "] #[doc = "Weight is a function of the number of proxies the user has (P)."] #[doc = "# "] - pub fn proxy( + pub async fn proxy( &self, real: ::subxt::sp_core::crypto::AccountId32, force_proxy_type: ::core::option::Option< @@ -21186,7 +21186,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -21220,7 +21220,7 @@ pub mod api { #[doc = "# "] #[doc = "Weight is a function of the number of proxies the user has (P)."] #[doc = "# "] - pub fn add_proxy( + pub async fn add_proxy( &self, delegate: ::subxt::sp_core::crypto::AccountId32, proxy_type: runtime_types::polkadot_runtime::ProxyType, @@ -21238,7 +21238,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -21270,7 +21270,7 @@ pub mod api { #[doc = "# "] #[doc = "Weight is a function of the number of proxies the user has (P)."] #[doc = "# "] - pub fn remove_proxy( + pub async fn remove_proxy( &self, delegate: ::subxt::sp_core::crypto::AccountId32, proxy_type: runtime_types::polkadot_runtime::ProxyType, @@ -21288,7 +21288,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -21319,7 +21319,7 @@ pub mod api { #[doc = "# "] #[doc = "Weight is a function of the number of proxies the user has (P)."] #[doc = "# "] - pub fn remove_proxies( + pub async fn remove_proxies( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -21334,7 +21334,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -21374,7 +21374,7 @@ pub mod api { #[doc = "Weight is a function of the number of proxies the user has (P)."] #[doc = "# "] #[doc = "TODO: Might be over counting 1 read"] - pub fn anonymous( + pub async fn anonymous( &self, proxy_type: runtime_types::polkadot_runtime::ProxyType, delay: ::core::primitive::u32, @@ -21392,7 +21392,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -21433,7 +21433,7 @@ pub mod api { #[doc = "# "] #[doc = "Weight is a function of the number of proxies the user has (P)."] #[doc = "# "] - pub fn kill_anonymous( + pub async fn kill_anonymous( &self, spawner: ::subxt::sp_core::crypto::AccountId32, proxy_type: runtime_types::polkadot_runtime::ProxyType, @@ -21453,7 +21453,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -21497,7 +21497,7 @@ pub mod api { #[doc = "- A: the number of announcements made."] #[doc = "- P: the number of proxies the user has."] #[doc = "# "] - pub fn announce( + pub async fn announce( &self, real: ::subxt::sp_core::crypto::AccountId32, call_hash: ::subxt::sp_core::H256, @@ -21514,7 +21514,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -21547,7 +21547,7 @@ pub mod api { #[doc = "- A: the number of announcements made."] #[doc = "- P: the number of proxies the user has."] #[doc = "# "] - pub fn remove_announcement( + pub async fn remove_announcement( &self, real: ::subxt::sp_core::crypto::AccountId32, call_hash: ::subxt::sp_core::H256, @@ -21564,7 +21564,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -21597,7 +21597,7 @@ pub mod api { #[doc = "- A: the number of announcements made."] #[doc = "- P: the number of proxies the user has."] #[doc = "# "] - pub fn reject_announcement( + pub async fn reject_announcement( &self, delegate: ::subxt::sp_core::crypto::AccountId32, call_hash: ::subxt::sp_core::H256, @@ -21614,7 +21614,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -21651,7 +21651,7 @@ pub mod api { #[doc = "- A: the number of announcements made."] #[doc = "- P: the number of proxies the user has."] #[doc = "# "] - pub fn proxy_announced( + pub async fn proxy_announced( &self, delegate: ::subxt::sp_core::crypto::AccountId32, real: ::subxt::sp_core::crypto::AccountId32, @@ -21672,7 +21672,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -21830,7 +21830,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -21861,7 +21861,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -21897,7 +21897,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -21927,7 +21927,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -21958,12 +21958,12 @@ pub mod api { #[doc = ""] #[doc = " This is held for an additional storage item whose value size is"] #[doc = " `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes."] - pub fn proxy_deposit_base( + pub async fn proxy_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Proxy", "ProxyDepositBase")? == [ 103u8, 165u8, 87u8, 140u8, 136u8, 233u8, 165u8, 158u8, 117u8, @@ -21986,12 +21986,12 @@ pub mod api { #[doc = " This is held for adding 32 bytes plus an instance of `ProxyType` more into a"] #[doc = " pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take"] #[doc = " into account `32 + proxy_type.encode().len()` bytes of data."] - pub fn proxy_deposit_factor( + pub async fn proxy_deposit_factor( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Proxy", "ProxyDepositFactor")? == [ 163u8, 148u8, 34u8, 63u8, 153u8, 113u8, 173u8, 220u8, 242u8, @@ -22010,12 +22010,12 @@ pub mod api { } } #[doc = " The maximum amount of proxies allowed for a single account."] - pub fn max_proxies( + pub async fn max_proxies( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Proxy", "MaxProxies")? == [ 249u8, 153u8, 224u8, 128u8, 161u8, 3u8, 39u8, 192u8, 120u8, @@ -22034,12 +22034,12 @@ pub mod api { } } #[doc = " The maximum amount of time-delayed announcements that are allowed to be pending."] - pub fn max_pending( + pub async fn max_pending( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Proxy", "MaxPending")? == [ 88u8, 148u8, 146u8, 152u8, 151u8, 208u8, 255u8, 193u8, 239u8, @@ -22061,12 +22061,12 @@ pub mod api { #[doc = ""] #[doc = " This is held when a new storage item holding a `Balance` is created (typically 16"] #[doc = " bytes)."] - pub fn announcement_deposit_base( + pub async fn announcement_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Proxy", "AnnouncementDepositBase")? == [ 167u8, 193u8, 39u8, 36u8, 61u8, 75u8, 122u8, 88u8, 86u8, @@ -22088,12 +22088,12 @@ pub mod api { #[doc = ""] #[doc = " This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)"] #[doc = " into a pre-existing storage value."] - pub fn announcement_deposit_factor( + pub async fn announcement_deposit_factor( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Proxy", "AnnouncementDepositFactor")? == [ 234u8, 50u8, 92u8, 12u8, 170u8, 230u8, 151u8, 220u8, 202u8, @@ -22211,7 +22211,7 @@ pub mod api { #[doc = "- DB Weight: None"] #[doc = "- Plus Call Weight"] #[doc = "# "] - pub fn as_multi_threshold_1( + pub async fn as_multi_threshold_1( &self, other_signatories: ::std::vec::Vec< ::subxt::sp_core::crypto::AccountId32, @@ -22230,7 +22230,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -22295,7 +22295,7 @@ pub mod api { #[doc = " - Writes: Multisig Storage, [Caller Account], Calls (if `store_call`)"] #[doc = "- Plus Call Weight"] #[doc = "# "] - pub fn as_multi( + pub async fn as_multi( &self, threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec< @@ -22322,7 +22322,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -22381,7 +22381,7 @@ pub mod api { #[doc = " - Read: Multisig Storage, [Caller Account]"] #[doc = " - Write: Multisig Storage, [Caller Account]"] #[doc = "# "] - pub fn approve_as_multi( + pub async fn approve_as_multi( &self, threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec< @@ -22405,7 +22405,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -22454,7 +22454,7 @@ pub mod api { #[doc = " - Read: Multisig Storage, [Caller Account], Refund Account, Calls"] #[doc = " - Write: Multisig Storage, [Caller Account], Refund Account, Calls"] #[doc = "# "] - pub fn cancel_as_multi( + pub async fn cancel_as_multi( &self, threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec< @@ -22477,7 +22477,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -22625,7 +22625,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -22652,7 +22652,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -22682,7 +22682,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -22708,7 +22708,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -22741,12 +22741,12 @@ pub mod api { #[doc = " This is held for an additional storage item whose value size is"] #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] #[doc = " `32 + sizeof(AccountId)` bytes."] - pub fn deposit_base( + pub async fn deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Multisig", "DepositBase")? == [ 184u8, 205u8, 30u8, 80u8, 201u8, 56u8, 94u8, 154u8, 82u8, @@ -22767,12 +22767,12 @@ pub mod api { #[doc = " The amount of currency needed per unit threshold when creating a multisig execution."] #[doc = ""] #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."] - pub fn deposit_factor( + pub async fn deposit_factor( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Multisig", "DepositFactor")? == [ 226u8, 132u8, 1u8, 18u8, 51u8, 22u8, 235u8, 140u8, 210u8, @@ -22791,12 +22791,12 @@ pub mod api { } } #[doc = " The maximum amount of signatories allowed in the multisig."] - pub fn max_signatories( + pub async fn max_signatories( &self, ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Multisig", "MaxSignatories")? == [ 139u8, 36u8, 140u8, 198u8, 176u8, 106u8, 89u8, 194u8, 33u8, @@ -22948,7 +22948,7 @@ pub mod api { #[doc = "- `fee`: The curator fee."] #[doc = "- `value`: The total payment amount of this bounty, curator fee included."] #[doc = "- `description`: The description of this bounty."] - pub fn propose_bounty( + pub async fn propose_bounty( &self, value: ::core::primitive::u128, description: ::std::vec::Vec<::core::primitive::u8>, @@ -22965,7 +22965,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -22990,7 +22990,7 @@ pub mod api { #[doc = "# "] #[doc = "- O(1)."] #[doc = "# "] - pub fn approve_bounty( + pub async fn approve_bounty( &self, bounty_id: ::core::primitive::u32, ) -> Result< @@ -23006,7 +23006,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -23030,7 +23030,7 @@ pub mod api { #[doc = "# "] #[doc = "- O(1)."] #[doc = "# "] - pub fn propose_curator( + pub async fn propose_curator( &self, bounty_id: ::core::primitive::u32, curator: ::subxt::sp_runtime::MultiAddress< @@ -23051,7 +23051,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -23090,7 +23090,7 @@ pub mod api { #[doc = "# "] #[doc = "- O(1)."] #[doc = "# "] - pub fn unassign_curator( + pub async fn unassign_curator( &self, bounty_id: ::core::primitive::u32, ) -> Result< @@ -23106,7 +23106,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -23131,7 +23131,7 @@ pub mod api { #[doc = "# "] #[doc = "- O(1)."] #[doc = "# "] - pub fn accept_curator( + pub async fn accept_curator( &self, bounty_id: ::core::primitive::u32, ) -> Result< @@ -23147,7 +23147,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -23175,7 +23175,7 @@ pub mod api { #[doc = "# "] #[doc = "- O(1)."] #[doc = "# "] - pub fn award_bounty( + pub async fn award_bounty( &self, bounty_id: ::core::primitive::u32, beneficiary: ::subxt::sp_runtime::MultiAddress< @@ -23195,7 +23195,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -23224,7 +23224,7 @@ pub mod api { #[doc = "# "] #[doc = "- O(1)."] #[doc = "# "] - pub fn claim_bounty( + pub async fn claim_bounty( &self, bounty_id: ::core::primitive::u32, ) -> Result< @@ -23240,7 +23240,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -23267,7 +23267,7 @@ pub mod api { #[doc = "# "] #[doc = "- O(1)."] #[doc = "# "] - pub fn close_bounty( + pub async fn close_bounty( &self, bounty_id: ::core::primitive::u32, ) -> Result< @@ -23283,7 +23283,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -23310,7 +23310,7 @@ pub mod api { #[doc = "# "] #[doc = "- O(1)."] #[doc = "# "] - pub fn extend_bounty_expiry( + pub async fn extend_bounty_expiry( &self, bounty_id: ::core::primitive::u32, remark: ::std::vec::Vec<::core::primitive::u8>, @@ -23327,7 +23327,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -23506,7 +23506,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -23543,7 +23543,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -23570,7 +23570,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -23601,7 +23601,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -23628,7 +23628,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -23656,7 +23656,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -23688,12 +23688,12 @@ pub mod api { Self { client } } #[doc = " The amount held on deposit for placing a bounty proposal."] - pub fn bounty_deposit_base( + pub async fn bounty_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Bounties", "BountyDepositBase")? == [ 239u8, 17u8, 86u8, 242u8, 39u8, 104u8, 7u8, 123u8, 210u8, @@ -23712,12 +23712,12 @@ pub mod api { } } #[doc = " The delay period for which a bounty beneficiary need to wait before claim the payout."] - pub fn bounty_deposit_payout_delay( + pub async fn bounty_deposit_payout_delay( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Bounties", "BountyDepositPayoutDelay")? == [ 128u8, 86u8, 220u8, 124u8, 89u8, 11u8, 42u8, 36u8, 116u8, @@ -23736,12 +23736,12 @@ pub mod api { } } #[doc = " Bounty duration in blocks."] - pub fn bounty_update_period( + pub async fn bounty_update_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Bounties", "BountyUpdatePeriod")? == [ 10u8, 209u8, 160u8, 42u8, 47u8, 204u8, 58u8, 28u8, 137u8, @@ -23763,14 +23763,14 @@ pub mod api { #[doc = ""] #[doc = " This deposit has optional upper and lower bounds with `CuratorDepositMax` and"] #[doc = " `CuratorDepositMin`."] - pub fn curator_deposit_multiplier( + pub async fn curator_deposit_multiplier( &self, ) -> ::core::result::Result< runtime_types::sp_arithmetic::per_things::Permill, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Bounties", "CuratorDepositMultiplier")? == [ 119u8, 126u8, 117u8, 41u8, 6u8, 165u8, 141u8, 28u8, 50u8, @@ -23789,14 +23789,14 @@ pub mod api { } } #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] - pub fn curator_deposit_max( + pub async fn curator_deposit_max( &self, ) -> ::core::result::Result< ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Bounties", "CuratorDepositMax")? == [ 197u8, 116u8, 193u8, 36u8, 38u8, 161u8, 84u8, 35u8, 214u8, @@ -23815,14 +23815,14 @@ pub mod api { } } #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] - pub fn curator_deposit_min( + pub async fn curator_deposit_min( &self, ) -> ::core::result::Result< ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Bounties", "CuratorDepositMin")? == [ 103u8, 117u8, 57u8, 115u8, 148u8, 210u8, 125u8, 147u8, 240u8, @@ -23841,12 +23841,12 @@ pub mod api { } } #[doc = " Minimum value for a bounty."] - pub fn bounty_value_minimum( + pub async fn bounty_value_minimum( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Bounties", "BountyValueMinimum")? == [ 151u8, 218u8, 51u8, 10u8, 253u8, 91u8, 115u8, 68u8, 30u8, @@ -23865,12 +23865,12 @@ pub mod api { } } #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] - pub fn data_deposit_per_byte( + pub async fn data_deposit_per_byte( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Bounties", "DataDepositPerByte")? == [ 70u8, 208u8, 250u8, 66u8, 143u8, 90u8, 112u8, 229u8, 138u8, @@ -23891,12 +23891,12 @@ pub mod api { #[doc = " Maximum acceptable reason length."] #[doc = ""] #[doc = " Benchmarks depend on this value, be sure to update weights file when changing this value"] - pub fn maximum_reason_length( + pub async fn maximum_reason_length( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Bounties", "MaximumReasonLength")? == [ 137u8, 135u8, 60u8, 208u8, 169u8, 200u8, 219u8, 180u8, 48u8, @@ -24050,7 +24050,7 @@ pub mod api { #[doc = "- `parent_bounty_id`: Index of parent bounty for which child-bounty is being added."] #[doc = "- `value`: Value for executing the proposal."] #[doc = "- `description`: Text description for the child-bounty."] - pub fn add_child_bounty( + pub async fn add_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, value: ::core::primitive::u128, @@ -24068,7 +24068,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -24104,7 +24104,7 @@ pub mod api { #[doc = "- `child_bounty_id`: Index of child bounty."] #[doc = "- `curator`: Address of child-bounty curator."] #[doc = "- `fee`: payment fee to child-bounty curator for execution."] - pub fn propose_curator( + pub async fn propose_curator( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, @@ -24126,7 +24126,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -24167,7 +24167,7 @@ pub mod api { #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] - pub fn accept_curator( + pub async fn accept_curator( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, @@ -24184,7 +24184,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -24238,7 +24238,7 @@ pub mod api { #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] - pub fn unassign_curator( + pub async fn unassign_curator( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, @@ -24255,7 +24255,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -24292,7 +24292,7 @@ pub mod api { #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] #[doc = "- `beneficiary`: Beneficiary account."] - pub fn award_child_bounty( + pub async fn award_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, @@ -24313,7 +24313,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -24350,7 +24350,7 @@ pub mod api { #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] - pub fn claim_child_bounty( + pub async fn claim_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, @@ -24367,7 +24367,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -24409,7 +24409,7 @@ pub mod api { #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] - pub fn close_child_bounty( + pub async fn close_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, @@ -24426,7 +24426,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -24585,7 +24585,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -24615,7 +24615,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -24646,7 +24646,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -24680,7 +24680,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -24707,7 +24707,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -24738,7 +24738,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -24765,7 +24765,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -24790,7 +24790,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -24820,7 +24820,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -24848,12 +24848,12 @@ pub mod api { Self { client } } #[doc = " Maximum number of child-bounties that can be added to a parent bounty."] - pub fn max_active_child_bounty_count( + pub async fn max_active_child_bounty_count( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata .constant_hash("ChildBounties", "MaxActiveChildBountyCount")? == [ @@ -24873,12 +24873,12 @@ pub mod api { } } #[doc = " Minimum value for a child-bounty."] - pub fn child_bounty_value_minimum( + pub async fn child_bounty_value_minimum( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata .constant_hash("ChildBounties", "ChildBountyValueMinimum")? == [ @@ -24999,7 +24999,7 @@ pub mod api { #[doc = "- DbReads: `Reasons`, `Tips`"] #[doc = "- DbWrites: `Reasons`, `Tips`"] #[doc = "# "] - pub fn report_awesome( + pub async fn report_awesome( &self, reason: ::std::vec::Vec<::core::primitive::u8>, who: ::subxt::sp_core::crypto::AccountId32, @@ -25016,7 +25016,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -25052,7 +25052,7 @@ pub mod api { #[doc = "- DbReads: `Tips`, `origin account`"] #[doc = "- DbWrites: `Reasons`, `Tips`, `origin account`"] #[doc = "# "] - pub fn retract_tip( + pub async fn retract_tip( &self, hash: ::subxt::sp_core::H256, ) -> Result< @@ -25068,7 +25068,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -25107,7 +25107,7 @@ pub mod api { #[doc = "- DbReads: `Tippers`, `Reasons`"] #[doc = "- DbWrites: `Reasons`, `Tips`"] #[doc = "# "] - pub fn tip_new( + pub async fn tip_new( &self, reason: ::std::vec::Vec<::core::primitive::u8>, who: ::subxt::sp_core::crypto::AccountId32, @@ -25125,7 +25125,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -25170,7 +25170,7 @@ pub mod api { #[doc = "- DbReads: `Tippers`, `Tips`"] #[doc = "- DbWrites: `Tips`"] #[doc = "# "] - pub fn tip( + pub async fn tip( &self, hash: ::subxt::sp_core::H256, tip_value: ::core::primitive::u128, @@ -25187,7 +25187,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -25220,7 +25220,7 @@ pub mod api { #[doc = "- DbReads: `Tips`, `Tippers`, `tip finder`"] #[doc = "- DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`"] #[doc = "# "] - pub fn close_tip( + pub async fn close_tip( &self, hash: ::subxt::sp_core::H256, ) -> Result< @@ -25236,7 +25236,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -25265,7 +25265,7 @@ pub mod api { #[doc = " `T` is charged as upper bound given by `ContainsLengthBound`."] #[doc = " The actual cost depends on the implementation of `T::Tippers`."] #[doc = "# "] - pub fn slash_tip( + pub async fn slash_tip( &self, hash: ::subxt::sp_core::H256, ) -> Result< @@ -25281,7 +25281,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -25411,7 +25411,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -25440,7 +25440,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -25468,7 +25468,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -25496,7 +25496,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -25526,12 +25526,12 @@ pub mod api { #[doc = " Maximum acceptable reason length."] #[doc = ""] #[doc = " Benchmarks depend on this value, be sure to update weights file when changing this value"] - pub fn maximum_reason_length( + pub async fn maximum_reason_length( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Tips", "MaximumReasonLength")? == [ 137u8, 135u8, 60u8, 208u8, 169u8, 200u8, 219u8, 180u8, 48u8, @@ -25550,12 +25550,12 @@ pub mod api { } } #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] - pub fn data_deposit_per_byte( + pub async fn data_deposit_per_byte( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Tips", "DataDepositPerByte")? == [ 70u8, 208u8, 250u8, 66u8, 143u8, 90u8, 112u8, 229u8, 138u8, @@ -25574,12 +25574,12 @@ pub mod api { } } #[doc = " The period for which a tip remains open after is has achieved threshold tippers."] - pub fn tip_countdown( + pub async fn tip_countdown( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Tips", "TipCountdown")? == [ 77u8, 181u8, 253u8, 112u8, 168u8, 146u8, 251u8, 28u8, 30u8, @@ -25598,14 +25598,14 @@ pub mod api { } } #[doc = " The percent of the final tip which goes to the original reporter of the tip."] - pub fn tip_finders_fee( + pub async fn tip_finders_fee( &self, ) -> ::core::result::Result< runtime_types::sp_arithmetic::per_things::Percent, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Tips", "TipFindersFee")? == [ 27u8, 137u8, 241u8, 28u8, 69u8, 248u8, 212u8, 12u8, 176u8, @@ -25624,12 +25624,12 @@ pub mod api { } } #[doc = " The amount held on deposit for placing a tip report."] - pub fn tip_report_deposit_base( + pub async fn tip_report_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Tips", "TipReportDepositBase")? == [ 101u8, 101u8, 22u8, 17u8, 169u8, 8u8, 182u8, 88u8, 11u8, @@ -25740,7 +25740,7 @@ pub mod api { #[doc = "putting their authoring reward at risk."] #[doc = ""] #[doc = "No deposit or reward is associated with this submission."] - pub fn submit_unsigned( + pub async fn submit_unsigned( &self, raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 >, witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, @@ -25757,7 +25757,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -25782,7 +25782,7 @@ pub mod api { #[doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] #[doc = ""] #[doc = "This check can be turned off by setting the value to `None`."] - pub fn set_minimum_untrusted_score( + pub async fn set_minimum_untrusted_score( &self, maybe_next_score: ::core::option::Option< runtime_types::sp_npos_elections::ElectionScore, @@ -25800,7 +25800,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -25825,7 +25825,7 @@ pub mod api { #[doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] #[doc = "feasibility check itself can in principle cause the election process to fail (due to"] #[doc = "memory/weight constrains)."] - pub fn set_emergency_election_result( + pub async fn set_emergency_election_result( &self, supports: ::std::vec::Vec<( ::subxt::sp_core::crypto::AccountId32, @@ -25846,7 +25846,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -25872,7 +25872,7 @@ pub mod api { #[doc = ""] #[doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] #[doc = "might be rewarded, slashed, or get all or a part of the deposit back."] - pub fn submit( + pub async fn submit( &self, raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 >, ) -> Result< @@ -25888,7 +25888,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -25911,7 +25911,7 @@ pub mod api { #[doc = ""] #[doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] #[doc = "calling [`Call::set_emergency_election_result`]."] - pub fn governance_fallback( + pub async fn governance_fallback( &self, maybe_max_voters: ::core::option::Option<::core::primitive::u32>, maybe_max_targets: ::core::option::Option<::core::primitive::u32>, @@ -25928,7 +25928,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -26152,7 +26152,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -26184,7 +26184,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -26207,7 +26207,7 @@ pub mod api { #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] pub async fn queued_solution (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: ReadySolution < :: subxt :: sp_core :: crypto :: AccountId32 > > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -26229,7 +26229,7 @@ pub mod api { #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] pub async fn snapshot (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -26258,7 +26258,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -26280,7 +26280,7 @@ pub mod api { #[doc = " Only exists when [`Snapshot`] is present."] pub async fn snapshot_metadata (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -26313,7 +26313,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -26341,7 +26341,7 @@ pub mod api { #[doc = " them one at a time instead of reading and decoding all of them at once."] pub async fn signed_submission_indices (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: bounded_btree_map :: BoundedBTreeMap < runtime_types :: sp_npos_elections :: ElectionScore , :: core :: primitive :: u32 > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -26370,7 +26370,7 @@ pub mod api { #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub async fn signed_submissions_map (& self , _0 : & :: core :: primitive :: u32 , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: sp_core :: crypto :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -26403,7 +26403,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -26434,7 +26434,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -26463,12 +26463,12 @@ pub mod api { Self { client } } #[doc = " Duration of the unsigned phase."] - pub fn unsigned_phase( + pub async fn unsigned_phase( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata .constant_hash("ElectionProviderMultiPhase", "UnsignedPhase")? == [ @@ -26488,12 +26488,12 @@ pub mod api { } } #[doc = " Duration of the signed phase."] - pub fn signed_phase( + pub async fn signed_phase( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata .constant_hash("ElectionProviderMultiPhase", "SignedPhase")? == [ @@ -26514,14 +26514,14 @@ pub mod api { } #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] #[doc = " \"better\" (in any phase)."] - pub fn solution_improvement_threshold( + pub async fn solution_improvement_threshold( &self, ) -> ::core::result::Result< runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash( "ElectionProviderMultiPhase", "SolutionImprovementThreshold", @@ -26544,12 +26544,12 @@ pub mod api { #[doc = ""] #[doc = " For example, if it is 5, that means that at least 5 blocks will elapse between attempts"] #[doc = " to submit the worker's solution."] - pub fn offchain_repeat( + pub async fn offchain_repeat( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata .constant_hash("ElectionProviderMultiPhase", "OffchainRepeat")? == [ @@ -26569,12 +26569,12 @@ pub mod api { } } #[doc = " The priority of the unsigned transaction submitted in the unsigned-phase"] - pub fn miner_tx_priority( + pub async fn miner_tx_priority( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata .constant_hash("ElectionProviderMultiPhase", "MinerTxPriority")? == [ @@ -26597,12 +26597,12 @@ pub mod api { #[doc = ""] #[doc = " The miner will ensure that the total weight of the unsigned solution will not exceed"] #[doc = " this value, based on [`WeightInfo::submit_unsigned`]."] - pub fn miner_max_weight( + pub async fn miner_max_weight( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata .constant_hash("ElectionProviderMultiPhase", "MinerMaxWeight")? == [ @@ -26628,12 +26628,12 @@ pub mod api { #[doc = " update this value during an election, you _must_ ensure that"] #[doc = " `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,"] #[doc = " attempts to submit new solutions may cause a runtime panic."] - pub fn signed_max_submissions( + pub async fn signed_max_submissions( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash( "ElectionProviderMultiPhase", "SignedMaxSubmissions", @@ -26655,12 +26655,12 @@ pub mod api { #[doc = " Maximum weight of a signed solution."] #[doc = ""] #[doc = " This should probably be similar to [`Config::MinerMaxWeight`]."] - pub fn signed_max_weight( + pub async fn signed_max_weight( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata .constant_hash("ElectionProviderMultiPhase", "SignedMaxWeight")? == [ @@ -26680,12 +26680,12 @@ pub mod api { } } #[doc = " Base reward for a signed solution"] - pub fn signed_reward_base( + pub async fn signed_reward_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata .constant_hash("ElectionProviderMultiPhase", "SignedRewardBase")? == [ @@ -26705,12 +26705,12 @@ pub mod api { } } #[doc = " Base deposit for a signed solution."] - pub fn signed_deposit_base( + pub async fn signed_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash( "ElectionProviderMultiPhase", "SignedDepositBase", @@ -26730,12 +26730,12 @@ pub mod api { } } #[doc = " Per-byte deposit for a signed solution."] - pub fn signed_deposit_byte( + pub async fn signed_deposit_byte( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash( "ElectionProviderMultiPhase", "SignedDepositByte", @@ -26755,12 +26755,12 @@ pub mod api { } } #[doc = " Per-weight deposit for a signed solution."] - pub fn signed_deposit_weight( + pub async fn signed_deposit_weight( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash( "ElectionProviderMultiPhase", "SignedDepositWeight", @@ -26782,12 +26782,12 @@ pub mod api { #[doc = " The maximum number of electing voters to put in the snapshot. At the moment, snapshots"] #[doc = " are only over a single block, but once multi-block elections are introduced they will"] #[doc = " take place over multiple blocks."] - pub fn max_electing_voters( + pub async fn max_electing_voters( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash( "ElectionProviderMultiPhase", "MaxElectingVoters", @@ -26807,12 +26807,12 @@ pub mod api { } } #[doc = " The maximum number of electable targets to put in the snapshot."] - pub fn max_electable_targets( + pub async fn max_electable_targets( &self, ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash( "ElectionProviderMultiPhase", "MaxElectableTargets", @@ -26835,12 +26835,12 @@ pub mod api { #[doc = ""] #[doc = " The miner will ensure that the total length of the unsigned solution will not exceed"] #[doc = " this value."] - pub fn miner_max_length( + pub async fn miner_max_length( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata .constant_hash("ElectionProviderMultiPhase", "MinerMaxLength")? == [ @@ -26912,7 +26912,7 @@ pub mod api { #[doc = ""] #[doc = "Will never return an error; if `dislocated` does not exist or doesn't need a rebag, then"] #[doc = "it is a noop and fees are still collected from `origin`."] - pub fn rebag( + pub async fn rebag( &self, dislocated: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -26928,7 +26928,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -26953,7 +26953,7 @@ pub mod api { #[doc = "Only works if"] #[doc = "- both nodes are within the same bag,"] #[doc = "- and `origin` has a greater `Score` than `lighter`."] - pub fn put_in_front_of( + pub async fn put_in_front_of( &self, lighter: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -26969,7 +26969,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -27058,7 +27058,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -27087,7 +27087,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -27111,7 +27111,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -27144,7 +27144,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -27173,7 +27173,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -27243,14 +27243,14 @@ pub mod api { #[doc = ""] #[doc = " In the event that this list ever changes, a copy of the old bags list must be retained."] #[doc = " With that `List::migrate` can be called, which will perform the appropriate migration."] - pub fn bag_thresholds( + pub async fn bag_thresholds( &self, ) -> ::core::result::Result< ::std::vec::Vec<::core::primitive::u64>, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("BagsList", "BagThresholds")? == [ 95u8, 68u8, 224u8, 175u8, 149u8, 202u8, 192u8, 181u8, 221u8, @@ -27872,7 +27872,7 @@ pub mod api { } } #[doc = "Set the validation upgrade cooldown."] - pub fn set_validation_upgrade_cooldown( + pub async fn set_validation_upgrade_cooldown( &self, new: ::core::primitive::u32, ) -> Result< @@ -27888,7 +27888,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -27906,7 +27906,7 @@ pub mod api { } } #[doc = "Set the validation upgrade delay."] - pub fn set_validation_upgrade_delay( + pub async fn set_validation_upgrade_delay( &self, new: ::core::primitive::u32, ) -> Result< @@ -27922,7 +27922,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -27940,7 +27940,7 @@ pub mod api { } } #[doc = "Set the acceptance period for an included candidate."] - pub fn set_code_retention_period( + pub async fn set_code_retention_period( &self, new: ::core::primitive::u32, ) -> Result< @@ -27956,7 +27956,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -27974,7 +27974,7 @@ pub mod api { } } #[doc = "Set the max validation code size for incoming upgrades."] - pub fn set_max_code_size( + pub async fn set_max_code_size( &self, new: ::core::primitive::u32, ) -> Result< @@ -27990,7 +27990,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28008,7 +28008,7 @@ pub mod api { } } #[doc = "Set the max POV block size for incoming upgrades."] - pub fn set_max_pov_size( + pub async fn set_max_pov_size( &self, new: ::core::primitive::u32, ) -> Result< @@ -28024,7 +28024,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28042,7 +28042,7 @@ pub mod api { } } #[doc = "Set the max head data size for paras."] - pub fn set_max_head_data_size( + pub async fn set_max_head_data_size( &self, new: ::core::primitive::u32, ) -> Result< @@ -28058,7 +28058,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28076,7 +28076,7 @@ pub mod api { } } #[doc = "Set the number of parathread execution cores."] - pub fn set_parathread_cores( + pub async fn set_parathread_cores( &self, new: ::core::primitive::u32, ) -> Result< @@ -28092,7 +28092,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28110,7 +28110,7 @@ pub mod api { } } #[doc = "Set the number of retries for a particular parathread."] - pub fn set_parathread_retries( + pub async fn set_parathread_retries( &self, new: ::core::primitive::u32, ) -> Result< @@ -28126,7 +28126,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28144,7 +28144,7 @@ pub mod api { } } #[doc = "Set the parachain validator-group rotation frequency"] - pub fn set_group_rotation_frequency( + pub async fn set_group_rotation_frequency( &self, new: ::core::primitive::u32, ) -> Result< @@ -28160,7 +28160,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28178,7 +28178,7 @@ pub mod api { } } #[doc = "Set the availability period for parachains."] - pub fn set_chain_availability_period( + pub async fn set_chain_availability_period( &self, new: ::core::primitive::u32, ) -> Result< @@ -28194,7 +28194,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28212,7 +28212,7 @@ pub mod api { } } #[doc = "Set the availability period for parathreads."] - pub fn set_thread_availability_period( + pub async fn set_thread_availability_period( &self, new: ::core::primitive::u32, ) -> Result< @@ -28228,7 +28228,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28246,7 +28246,7 @@ pub mod api { } } #[doc = "Set the scheduling lookahead, in expected number of blocks at peak throughput."] - pub fn set_scheduling_lookahead( + pub async fn set_scheduling_lookahead( &self, new: ::core::primitive::u32, ) -> Result< @@ -28262,7 +28262,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28280,7 +28280,7 @@ pub mod api { } } #[doc = "Set the maximum number of validators to assign to any core."] - pub fn set_max_validators_per_core( + pub async fn set_max_validators_per_core( &self, new: ::core::option::Option<::core::primitive::u32>, ) -> Result< @@ -28296,7 +28296,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28314,7 +28314,7 @@ pub mod api { } } #[doc = "Set the maximum number of validators to use in parachain consensus."] - pub fn set_max_validators( + pub async fn set_max_validators( &self, new: ::core::option::Option<::core::primitive::u32>, ) -> Result< @@ -28330,7 +28330,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28348,7 +28348,7 @@ pub mod api { } } #[doc = "Set the dispute period, in number of sessions to keep for disputes."] - pub fn set_dispute_period( + pub async fn set_dispute_period( &self, new: ::core::primitive::u32, ) -> Result< @@ -28364,7 +28364,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28382,7 +28382,7 @@ pub mod api { } } #[doc = "Set the dispute post conclusion acceptance period."] - pub fn set_dispute_post_conclusion_acceptance_period( + pub async fn set_dispute_post_conclusion_acceptance_period( &self, new: ::core::primitive::u32, ) -> Result< @@ -28398,7 +28398,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata .call_hash::()? }; @@ -28417,7 +28417,7 @@ pub mod api { } } #[doc = "Set the maximum number of dispute spam slots."] - pub fn set_dispute_max_spam_slots( + pub async fn set_dispute_max_spam_slots( &self, new: ::core::primitive::u32, ) -> Result< @@ -28433,7 +28433,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28451,7 +28451,7 @@ pub mod api { } } #[doc = "Set the dispute conclusion by time out period."] - pub fn set_dispute_conclusion_by_time_out_period( + pub async fn set_dispute_conclusion_by_time_out_period( &self, new: ::core::primitive::u32, ) -> Result< @@ -28467,7 +28467,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28486,7 +28486,7 @@ pub mod api { } #[doc = "Set the no show slots, in number of number of consensus slots."] #[doc = "Must be at least 1."] - pub fn set_no_show_slots( + pub async fn set_no_show_slots( &self, new: ::core::primitive::u32, ) -> Result< @@ -28502,7 +28502,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28520,7 +28520,7 @@ pub mod api { } } #[doc = "Set the total number of delay tranches."] - pub fn set_n_delay_tranches( + pub async fn set_n_delay_tranches( &self, new: ::core::primitive::u32, ) -> Result< @@ -28536,7 +28536,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28554,7 +28554,7 @@ pub mod api { } } #[doc = "Set the zeroth delay tranche width."] - pub fn set_zeroth_delay_tranche_width( + pub async fn set_zeroth_delay_tranche_width( &self, new: ::core::primitive::u32, ) -> Result< @@ -28570,7 +28570,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28588,7 +28588,7 @@ pub mod api { } } #[doc = "Set the number of validators needed to approve a block."] - pub fn set_needed_approvals( + pub async fn set_needed_approvals( &self, new: ::core::primitive::u32, ) -> Result< @@ -28604,7 +28604,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28622,7 +28622,7 @@ pub mod api { } } #[doc = "Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion."] - pub fn set_relay_vrf_modulo_samples( + pub async fn set_relay_vrf_modulo_samples( &self, new: ::core::primitive::u32, ) -> Result< @@ -28638,7 +28638,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28656,7 +28656,7 @@ pub mod api { } } #[doc = "Sets the maximum items that can present in a upward dispatch queue at once."] - pub fn set_max_upward_queue_count( + pub async fn set_max_upward_queue_count( &self, new: ::core::primitive::u32, ) -> Result< @@ -28672,7 +28672,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28690,7 +28690,7 @@ pub mod api { } } #[doc = "Sets the maximum total size of items that can present in a upward dispatch queue at once."] - pub fn set_max_upward_queue_size( + pub async fn set_max_upward_queue_size( &self, new: ::core::primitive::u32, ) -> Result< @@ -28706,7 +28706,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28724,7 +28724,7 @@ pub mod api { } } #[doc = "Set the critical downward message size."] - pub fn set_max_downward_message_size( + pub async fn set_max_downward_message_size( &self, new: ::core::primitive::u32, ) -> Result< @@ -28740,7 +28740,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28758,7 +28758,7 @@ pub mod api { } } #[doc = "Sets the soft limit for the phase of dispatching dispatchable upward messages."] - pub fn set_ump_service_total_weight( + pub async fn set_ump_service_total_weight( &self, new: ::core::primitive::u64, ) -> Result< @@ -28774,7 +28774,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28792,7 +28792,7 @@ pub mod api { } } #[doc = "Sets the maximum size of an upward message that can be sent by a candidate."] - pub fn set_max_upward_message_size( + pub async fn set_max_upward_message_size( &self, new: ::core::primitive::u32, ) -> Result< @@ -28808,7 +28808,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28826,7 +28826,7 @@ pub mod api { } } #[doc = "Sets the maximum number of messages that a candidate can contain."] - pub fn set_max_upward_message_num_per_candidate( + pub async fn set_max_upward_message_num_per_candidate( &self, new: ::core::primitive::u32, ) -> Result< @@ -28842,7 +28842,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28860,7 +28860,7 @@ pub mod api { } } #[doc = "Sets the number of sessions after which an HRMP open channel request expires."] - pub fn set_hrmp_open_request_ttl( + pub async fn set_hrmp_open_request_ttl( &self, new: ::core::primitive::u32, ) -> Result< @@ -28876,7 +28876,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28894,7 +28894,7 @@ pub mod api { } } #[doc = "Sets the amount of funds that the sender should provide for opening an HRMP channel."] - pub fn set_hrmp_sender_deposit( + pub async fn set_hrmp_sender_deposit( &self, new: ::core::primitive::u128, ) -> Result< @@ -28910,7 +28910,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28929,7 +28929,7 @@ pub mod api { } #[doc = "Sets the amount of funds that the recipient should provide for accepting opening an HRMP"] #[doc = "channel."] - pub fn set_hrmp_recipient_deposit( + pub async fn set_hrmp_recipient_deposit( &self, new: ::core::primitive::u128, ) -> Result< @@ -28945,7 +28945,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28963,7 +28963,7 @@ pub mod api { } } #[doc = "Sets the maximum number of messages allowed in an HRMP channel at once."] - pub fn set_hrmp_channel_max_capacity( + pub async fn set_hrmp_channel_max_capacity( &self, new: ::core::primitive::u32, ) -> Result< @@ -28979,7 +28979,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -28997,7 +28997,7 @@ pub mod api { } } #[doc = "Sets the maximum total size of messages in bytes allowed in an HRMP channel at once."] - pub fn set_hrmp_channel_max_total_size( + pub async fn set_hrmp_channel_max_total_size( &self, new: ::core::primitive::u32, ) -> Result< @@ -29013,7 +29013,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -29031,7 +29031,7 @@ pub mod api { } } #[doc = "Sets the maximum number of inbound HRMP channels a parachain is allowed to accept."] - pub fn set_hrmp_max_parachain_inbound_channels( + pub async fn set_hrmp_max_parachain_inbound_channels( &self, new: ::core::primitive::u32, ) -> Result< @@ -29047,7 +29047,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -29065,7 +29065,7 @@ pub mod api { } } #[doc = "Sets the maximum number of inbound HRMP channels a parathread is allowed to accept."] - pub fn set_hrmp_max_parathread_inbound_channels( + pub async fn set_hrmp_max_parathread_inbound_channels( &self, new: ::core::primitive::u32, ) -> Result< @@ -29081,7 +29081,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -29099,7 +29099,7 @@ pub mod api { } } #[doc = "Sets the maximum size of a message that could ever be put into an HRMP channel."] - pub fn set_hrmp_channel_max_message_size( + pub async fn set_hrmp_channel_max_message_size( &self, new: ::core::primitive::u32, ) -> Result< @@ -29115,7 +29115,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -29133,7 +29133,7 @@ pub mod api { } } #[doc = "Sets the maximum number of outbound HRMP channels a parachain is allowed to open."] - pub fn set_hrmp_max_parachain_outbound_channels( + pub async fn set_hrmp_max_parachain_outbound_channels( &self, new: ::core::primitive::u32, ) -> Result< @@ -29149,7 +29149,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -29167,7 +29167,7 @@ pub mod api { } } #[doc = "Sets the maximum number of outbound HRMP channels a parathread is allowed to open."] - pub fn set_hrmp_max_parathread_outbound_channels( + pub async fn set_hrmp_max_parathread_outbound_channels( &self, new: ::core::primitive::u32, ) -> Result< @@ -29183,7 +29183,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -29201,7 +29201,7 @@ pub mod api { } } #[doc = "Sets the maximum number of outbound HRMP messages can be sent by a candidate."] - pub fn set_hrmp_max_message_num_per_candidate( + pub async fn set_hrmp_max_message_num_per_candidate( &self, new: ::core::primitive::u32, ) -> Result< @@ -29217,7 +29217,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -29235,7 +29235,7 @@ pub mod api { } } #[doc = "Sets the maximum amount of weight any individual upward message may consume."] - pub fn set_ump_max_individual_weight( + pub async fn set_ump_max_individual_weight( &self, new: ::core::primitive::u64, ) -> Result< @@ -29251,7 +29251,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -29269,7 +29269,7 @@ pub mod api { } } #[doc = "Enable or disable PVF pre-checking. Consult the field documentation prior executing."] - pub fn set_pvf_checking_enabled( + pub async fn set_pvf_checking_enabled( &self, new: ::core::primitive::bool, ) -> Result< @@ -29285,7 +29285,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -29303,7 +29303,7 @@ pub mod api { } } #[doc = "Set the number of session changes after which a PVF pre-checking voting is rejected."] - pub fn set_pvf_voting_ttl( + pub async fn set_pvf_voting_ttl( &self, new: ::core::primitive::u32, ) -> Result< @@ -29319,7 +29319,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -29340,7 +29340,7 @@ pub mod api { #[doc = "upgrade taking place."] #[doc = ""] #[doc = "See the field documentation for information and constraints for the new value."] - pub fn set_minimum_validation_upgrade_delay( + pub async fn set_minimum_validation_upgrade_delay( &self, new: ::core::primitive::u32, ) -> Result< @@ -29356,7 +29356,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -29375,7 +29375,7 @@ pub mod api { } #[doc = "Setting this to true will disable consistency checks for the configuration setters."] #[doc = "Use with caution."] - pub fn set_bypass_consistency_check( + pub async fn set_bypass_consistency_check( &self, new: ::core::primitive::bool, ) -> Result< @@ -29391,7 +29391,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -29461,7 +29461,7 @@ pub mod api { #[doc = " The active configuration for the current session."] pub async fn active_config (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -29486,7 +29486,7 @@ pub mod api { #[doc = " DEPRECATED: This is no longer used, and will be removed in the future."] pub async fn pending_config (& self , _0 : & :: core :: primitive :: u32 , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: configuration :: migration :: v1 :: HostConfiguration < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -29515,7 +29515,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -29540,7 +29540,7 @@ pub mod api { #[doc = " 2 items: for the next session and for the `scheduled_session`."] pub async fn pending_configs (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < (:: core :: primitive :: u32 , runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ,) > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -29569,7 +29569,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -29668,7 +29668,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -29701,7 +29701,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -29734,7 +29734,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -29887,7 +29887,7 @@ pub mod api { #[doc = " The latest bitfield for each validator, referred to by their index in the validator set."] pub async fn availability_bitfields (& self , _0 : & runtime_types :: polkadot_primitives :: v2 :: ValidatorIndex , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -29914,7 +29914,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -29933,7 +29933,7 @@ pub mod api { #[doc = " Candidates pending availability by `ParaId`."] pub async fn pending_availability (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: Id , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: sp_core :: H256 , :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -29960,7 +29960,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -29991,7 +29991,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -30018,7 +30018,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -30077,7 +30077,7 @@ pub mod api { } } #[doc = "Enter the paras inherent. This will process bitfields and backed candidates."] - pub fn enter( + pub async fn enter( &self, data: runtime_types::polkadot_primitives::v2::InherentData< runtime_types::sp_runtime::generic::header::Header< @@ -30098,7 +30098,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -30159,7 +30159,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -30190,7 +30190,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -30308,7 +30308,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -30334,7 +30334,7 @@ pub mod api { #[doc = " multiplied by the number of parathread multiplexer cores. Reasonably, 10 * 50 = 500."] pub async fn parathread_queue (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: polkadot_runtime_parachains :: scheduler :: ParathreadClaimQueue , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -30375,7 +30375,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -30408,7 +30408,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -30441,7 +30441,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -30469,7 +30469,7 @@ pub mod api { #[doc = " for the upcoming block."] pub async fn scheduled (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: scheduler :: CoreAssignment > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -30594,7 +30594,7 @@ pub mod api { } } #[doc = "Set the storage for the parachain validation code immediately."] - pub fn force_set_current_code( + pub async fn force_set_current_code( &self, para: runtime_types::polkadot_parachain::primitives::Id, new_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, @@ -30611,7 +30611,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -30629,7 +30629,7 @@ pub mod api { } } #[doc = "Set the storage for the current parachain head data immediately."] - pub fn force_set_current_head( + pub async fn force_set_current_head( &self, para: runtime_types::polkadot_parachain::primitives::Id, new_head: runtime_types::polkadot_parachain::primitives::HeadData, @@ -30646,7 +30646,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -30664,7 +30664,7 @@ pub mod api { } } #[doc = "Schedule an upgrade as if it was scheduled in the given relay parent block."] - pub fn force_schedule_code_upgrade( + pub async fn force_schedule_code_upgrade( &self, para: runtime_types::polkadot_parachain::primitives::Id, new_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, @@ -30682,7 +30682,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -30704,7 +30704,7 @@ pub mod api { } } #[doc = "Note a new block head for para within the context of the current block."] - pub fn force_note_new_head( + pub async fn force_note_new_head( &self, para: runtime_types::polkadot_parachain::primitives::Id, new_head: runtime_types::polkadot_parachain::primitives::HeadData, @@ -30721,7 +30721,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -30741,7 +30741,7 @@ pub mod api { #[doc = "Put a parachain directly into the next session's action queue."] #[doc = "We can't queue it any sooner than this without going into the"] #[doc = "initializer..."] - pub fn force_queue_action( + pub async fn force_queue_action( &self, para: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -30757,7 +30757,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -30787,7 +30787,7 @@ pub mod api { #[doc = ""] #[doc = "This function is mainly meant to be used for upgrading parachains that do not follow"] #[doc = "the go-ahead signal while the PVF pre-checking feature is enabled."] - pub fn add_trusted_validation_code( + pub async fn add_trusted_validation_code( &self, validation_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, ) -> Result< @@ -30803,7 +30803,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -30825,7 +30825,7 @@ pub mod api { #[doc = "This is better than removing the storage directly, because it will not remove the code"] #[doc = "that was suddenly got used by some parachain while this dispatchable was pending"] #[doc = "dispatching."] - pub fn poke_unused_validation_code( + pub async fn poke_unused_validation_code( &self, validation_code_hash : runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash, ) -> Result< @@ -30841,7 +30841,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -30862,7 +30862,7 @@ pub mod api { } #[doc = "Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and"] #[doc = "enacts the results if that was the last vote before achieving the supermajority."] - pub fn include_pvf_check_statement( + pub async fn include_pvf_check_statement( &self, stmt: runtime_types::polkadot_primitives::v2::PvfCheckStatement, signature : runtime_types :: polkadot_primitives :: v2 :: validator_app :: Signature, @@ -30879,7 +30879,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -31258,7 +31258,7 @@ pub mod api { #[doc = " - There are no PVF pre-checking votes that exists in list but not in the set and vice versa."] pub async fn pvf_active_vote_map (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: paras :: PvfCheckActiveVoteState < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31288,7 +31288,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31316,7 +31316,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31348,7 +31348,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31381,7 +31381,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31408,7 +31408,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31437,7 +31437,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31464,7 +31464,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31495,7 +31495,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31524,7 +31524,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31557,7 +31557,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31587,7 +31587,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31618,7 +31618,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31650,7 +31650,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31684,7 +31684,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31717,7 +31717,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31746,7 +31746,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31777,7 +31777,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31806,7 +31806,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31843,7 +31843,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31878,7 +31878,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31915,7 +31915,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31950,7 +31950,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -31981,7 +31981,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32017,7 +32017,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32048,7 +32048,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32078,7 +32078,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32100,7 +32100,7 @@ pub mod api { #[doc = " to empty. Instead, the code will be saved into the storage right away via `CodeByHash`."] pub async fn upcoming_paras_genesis (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: Id , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: paras :: ParaGenesisArgs > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32130,7 +32130,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32155,7 +32155,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32185,7 +32185,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32217,7 +32217,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32247,7 +32247,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32274,12 +32274,12 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub fn unsigned_priority( + pub async fn unsigned_priority( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Paras", "UnsignedPriority")? == [ 78u8, 226u8, 84u8, 70u8, 162u8, 23u8, 167u8, 100u8, 156u8, @@ -32342,7 +32342,7 @@ pub mod api { #[doc = "Issue a signal to the consensus engine to forcibly act as though all parachain"] #[doc = "blocks in all relay chain blocks up to and including the given number in the current"] #[doc = "chain are valid and should be finalized."] - pub fn force_approve( + pub async fn force_approve( &self, up_to: ::core::primitive::u32, ) -> Result< @@ -32358,7 +32358,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -32419,7 +32419,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32445,7 +32445,7 @@ pub mod api { #[doc = " upgrade boundaries or if governance intervenes."] pub async fn buffered_session_changes (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: initializer :: BufferedSessionChange > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32552,7 +32552,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32582,7 +32582,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32613,7 +32613,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32649,7 +32649,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32715,7 +32715,7 @@ pub mod api { #[doc = ""] #[doc = "Events:"] #[doc = "- `OverweightServiced`: On success."] - pub fn service_overweight( + pub async fn service_overweight( &self, index: ::core::primitive::u64, weight_limit: ::core::primitive::u64, @@ -32732,7 +32732,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -32935,7 +32935,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -32970,7 +32970,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -33007,7 +33007,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -33047,7 +33047,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -33077,7 +33077,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -33113,7 +33113,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -33146,7 +33146,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -33175,7 +33175,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -33200,7 +33200,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -33332,7 +33332,7 @@ pub mod api { #[doc = ""] #[doc = "The channel can be opened only after the recipient confirms it and only on a session"] #[doc = "change."] - pub fn hrmp_init_open_channel( + pub async fn hrmp_init_open_channel( &self, recipient: runtime_types::polkadot_parachain::primitives::Id, proposed_max_capacity: ::core::primitive::u32, @@ -33350,7 +33350,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -33374,7 +33374,7 @@ pub mod api { #[doc = "Accept a pending open channel request from the given sender."] #[doc = ""] #[doc = "The channel will be opened only on the next session boundary."] - pub fn hrmp_accept_open_channel( + pub async fn hrmp_accept_open_channel( &self, sender: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -33390,7 +33390,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -33411,7 +33411,7 @@ pub mod api { #[doc = "recipient in the channel being closed."] #[doc = ""] #[doc = "The closure can only happen on a session change."] - pub fn hrmp_close_channel( + pub async fn hrmp_close_channel( &self, channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId, ) -> Result< @@ -33427,7 +33427,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -33451,7 +33451,7 @@ pub mod api { #[doc = "Origin must be Root."] #[doc = ""] #[doc = "Number of inbound and outbound channels for `para` must be provided as witness data of weighing."] - pub fn force_clean_hrmp( + pub async fn force_clean_hrmp( &self, para: runtime_types::polkadot_parachain::primitives::Id, inbound: ::core::primitive::u32, @@ -33469,7 +33469,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -33496,7 +33496,7 @@ pub mod api { #[doc = "function process all of those requests immediately."] #[doc = ""] #[doc = "Total number of opening channels must be provided as witness data of weighing."] - pub fn force_process_hrmp_open( + pub async fn force_process_hrmp_open( &self, channels: ::core::primitive::u32, ) -> Result< @@ -33512,7 +33512,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -33535,7 +33535,7 @@ pub mod api { #[doc = "function process all of those requests immediately."] #[doc = ""] #[doc = "Total number of closing channels must be provided as witness data of weighing."] - pub fn force_process_hrmp_close( + pub async fn force_process_hrmp_close( &self, channels: ::core::primitive::u32, ) -> Result< @@ -33551,7 +33551,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -33576,7 +33576,7 @@ pub mod api { #[doc = ""] #[doc = "Total number of open requests (i.e. `HrmpOpenChannelRequestsList`) must be provided as"] #[doc = "witness data."] - pub fn hrmp_cancel_open_request( + pub async fn hrmp_cancel_open_request( &self, channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId, open_requests: ::core::primitive::u32, @@ -33593,7 +33593,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -33852,7 +33852,7 @@ pub mod api { #[doc = " - There are no channels that exists in list but not in the set and vice versa."] pub async fn hrmp_open_channel_requests (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: hrmp :: HrmpOpenChannelRequest > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -33884,7 +33884,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -33911,7 +33911,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -33942,7 +33942,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -33974,7 +33974,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34001,7 +34001,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34033,7 +34033,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34064,7 +34064,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34097,7 +34097,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34124,7 +34124,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34157,7 +34157,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34186,7 +34186,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34217,7 +34217,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34246,7 +34246,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34285,7 +34285,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34327,7 +34327,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34353,7 +34353,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34382,7 +34382,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34414,7 +34414,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34445,7 +34445,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34482,7 +34482,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34517,7 +34517,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34596,7 +34596,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34624,7 +34624,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34659,7 +34659,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34688,7 +34688,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34739,7 +34739,7 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn force_unfreeze( + pub async fn force_unfreeze( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -34754,7 +34754,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -34918,7 +34918,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34951,7 +34951,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -34978,7 +34978,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -35007,7 +35007,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -35035,7 +35035,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -35066,7 +35066,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -35097,7 +35097,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -35126,7 +35126,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -35244,7 +35244,7 @@ pub mod api { #[doc = ""] #[doc = "## Events"] #[doc = "The `Registered` event is emitted in case of success."] - pub fn register( + pub async fn register( &self, id: runtime_types::polkadot_parachain::primitives::Id, genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, @@ -35262,7 +35262,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -35289,7 +35289,7 @@ pub mod api { #[doc = ""] #[doc = "The deposit taken can be specified for this registration. Any `ParaId`"] #[doc = "can be registered, including sub-1000 IDs which are System Parachains."] - pub fn force_register( + pub async fn force_register( &self, who: ::subxt::sp_core::crypto::AccountId32, deposit: ::core::primitive::u128, @@ -35309,7 +35309,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -35335,7 +35335,7 @@ pub mod api { #[doc = "Deregister a Para Id, freeing all data and returning any deposit."] #[doc = ""] #[doc = "The caller must be Root, the `para` owner, or the `para` itself. The para must be a parathread."] - pub fn deregister( + pub async fn deregister( &self, id: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -35351,7 +35351,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -35379,7 +35379,7 @@ pub mod api { #[doc = "`ParaId` to be a long-term identifier of a notional \"parachain\". However, their"] #[doc = "scheduling info (i.e. whether they're a parathread or parachain), auction information"] #[doc = "and the auction deposit are switched."] - pub fn swap( + pub async fn swap( &self, id: runtime_types::polkadot_parachain::primitives::Id, other: runtime_types::polkadot_parachain::primitives::Id, @@ -35396,7 +35396,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -35417,7 +35417,7 @@ pub mod api { #[doc = "previously locked para to deregister or swap a para without using governance."] #[doc = ""] #[doc = "Can only be called by the Root origin."] - pub fn force_remove_lock( + pub async fn force_remove_lock( &self, para: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -35433,7 +35433,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -35464,7 +35464,7 @@ pub mod api { #[doc = ""] #[doc = "## Events"] #[doc = "The `Reserved` event is emitted in case of success, which provides the ID reserved for use."] - pub fn reserve( + pub async fn reserve( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -35479,7 +35479,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -35592,7 +35592,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -35619,7 +35619,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -35654,7 +35654,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -35684,7 +35684,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -35710,7 +35710,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -35743,12 +35743,12 @@ pub mod api { } #[doc = " The deposit to be paid to run a parathread."] #[doc = " This should include the cost for storing the genesis head and validation code."] - pub fn para_deposit( + pub async fn para_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Registrar", "ParaDeposit")? == [ 18u8, 109u8, 161u8, 161u8, 151u8, 174u8, 243u8, 90u8, 220u8, @@ -35767,12 +35767,12 @@ pub mod api { } } #[doc = " The deposit to be paid per byte stored on chain."] - pub fn data_deposit_per_byte( + pub async fn data_deposit_per_byte( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Registrar", "DataDepositPerByte")? == [ 112u8, 186u8, 158u8, 252u8, 99u8, 4u8, 201u8, 234u8, 99u8, @@ -35851,7 +35851,7 @@ pub mod api { #[doc = "independently of any other on-chain mechanism to use it."] #[doc = ""] #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] - pub fn force_lease( + pub async fn force_lease( &self, para: runtime_types::polkadot_parachain::primitives::Id, leaser: ::subxt::sp_core::crypto::AccountId32, @@ -35871,7 +35871,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -35897,7 +35897,7 @@ pub mod api { #[doc = "Clear all leases for a Para Id, refunding any deposits back to the original owners."] #[doc = ""] #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] - pub fn clear_all_leases( + pub async fn clear_all_leases( &self, para: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -35913,7 +35913,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -35937,7 +35937,7 @@ pub mod api { #[doc = "let them onboard from here."] #[doc = ""] #[doc = "Origin must be signed, but can be called by anyone."] - pub fn trigger_onboard( + pub async fn trigger_onboard( &self, para: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -35953,7 +35953,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -36064,7 +36064,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -36109,7 +36109,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -36137,12 +36137,12 @@ pub mod api { Self { client } } #[doc = " The number of blocks over which a single period lasts."] - pub fn lease_period( + pub async fn lease_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Slots", "LeasePeriod")? == [ 203u8, 21u8, 3u8, 22u8, 25u8, 46u8, 2u8, 223u8, 51u8, 234u8, @@ -36161,12 +36161,12 @@ pub mod api { } } #[doc = " The number of blocks to offset each lease period by."] - pub fn lease_offset( + pub async fn lease_offset( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Slots", "LeaseOffset")? == [ 7u8, 48u8, 194u8, 175u8, 129u8, 96u8, 39u8, 178u8, 104u8, @@ -36252,7 +36252,7 @@ pub mod api { #[doc = "This can only happen when there isn't already an auction in progress and may only be"] #[doc = "called by the root origin. Accepts the `duration` of this auction and the"] #[doc = "`lease_period_index` of the initial lease period of the four that are to be auctioned."] - pub fn new_auction( + pub async fn new_auction( &self, duration: ::core::primitive::u32, lease_period_index: ::core::primitive::u32, @@ -36269,7 +36269,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -36305,7 +36305,7 @@ pub mod api { #[doc = "absolute lease period index value, not an auction-specific offset."] #[doc = "- `amount` is the amount to bid to be held as deposit for the parachain should the"] #[doc = "bid win. This amount is held throughout the range."] - pub fn bid( + pub async fn bid( &self, para: runtime_types::polkadot_parachain::primitives::Id, auction_index: ::core::primitive::u32, @@ -36325,7 +36325,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -36351,7 +36351,7 @@ pub mod api { #[doc = "Cancel an in-progress auction."] #[doc = ""] #[doc = "Can only be called by Root origin."] - pub fn cancel_auction( + pub async fn cancel_auction( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -36366,7 +36366,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -36540,7 +36540,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -36577,7 +36577,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -36607,7 +36607,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -36635,7 +36635,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -36670,7 +36670,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -36699,7 +36699,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -36727,12 +36727,12 @@ pub mod api { Self { client } } #[doc = " The number of blocks over which an auction may be retroactively ended."] - pub fn ending_period( + pub async fn ending_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Auctions", "EndingPeriod")? == [ 36u8, 136u8, 230u8, 163u8, 145u8, 185u8, 224u8, 85u8, 228u8, @@ -36753,12 +36753,12 @@ pub mod api { #[doc = " The length of each sample to take during the ending period."] #[doc = ""] #[doc = " `EndingPeriod` / `SampleLength` = Total # of Samples"] - pub fn sample_length( + pub async fn sample_length( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Auctions", "SampleLength")? == [ 54u8, 145u8, 242u8, 8u8, 50u8, 152u8, 192u8, 64u8, 134u8, @@ -36776,12 +36776,12 @@ pub mod api { Err(::subxt::MetadataError::IncompatibleMetadata.into()) } } - pub fn slot_range_count( + pub async fn slot_range_count( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Auctions", "SlotRangeCount")? == [ 32u8, 147u8, 38u8, 54u8, 172u8, 189u8, 240u8, 136u8, 216u8, @@ -36799,12 +36799,12 @@ pub mod api { Err(::subxt::MetadataError::IncompatibleMetadata.into()) } } - pub fn lease_periods_per_slot( + pub async fn lease_periods_per_slot( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Auctions", "LeasePeriodsPerSlot")? == [ 174u8, 18u8, 150u8, 44u8, 219u8, 36u8, 218u8, 28u8, 34u8, @@ -36962,7 +36962,7 @@ pub mod api { #[doc = ""] #[doc = "This applies a lock to your parachain configuration, ensuring that it cannot be changed"] #[doc = "by the parachain manager."] - pub fn create( + pub async fn create( &self, index: runtime_types::polkadot_parachain::primitives::Id, cap: ::core::primitive::u128, @@ -36985,7 +36985,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -37011,7 +37011,7 @@ pub mod api { } #[doc = "Contribute to a crowd sale. This will transfer some balance over to fund a parachain"] #[doc = "slot. It will be withdrawable when the crowdloan has ended and the funds are unused."] - pub fn contribute( + pub async fn contribute( &self, index: runtime_types::polkadot_parachain::primitives::Id, value: ::core::primitive::u128, @@ -37031,7 +37031,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -37069,7 +37069,7 @@ pub mod api { #[doc = ""] #[doc = "- `who`: The account whose contribution should be withdrawn."] #[doc = "- `index`: The parachain to whose crowdloan the contribution was made."] - pub fn withdraw( + pub async fn withdraw( &self, who: ::subxt::sp_core::crypto::AccountId32, index: runtime_types::polkadot_parachain::primitives::Id, @@ -37086,7 +37086,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -37108,7 +37108,7 @@ pub mod api { #[doc = "times to fully refund all users. We will refund `RemoveKeysLimit` users at a time."] #[doc = ""] #[doc = "Origin must be signed, but can come from anyone."] - pub fn refund( + pub async fn refund( &self, index: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -37124,7 +37124,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -37142,7 +37142,7 @@ pub mod api { } } #[doc = "Remove a fund after the retirement period has ended and all funds have been returned."] - pub fn dissolve( + pub async fn dissolve( &self, index: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -37158,7 +37158,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -37178,7 +37178,7 @@ pub mod api { #[doc = "Edit the configuration for an in-progress crowdloan."] #[doc = ""] #[doc = "Can only be called by Root origin."] - pub fn edit( + pub async fn edit( &self, index: runtime_types::polkadot_parachain::primitives::Id, cap: ::core::primitive::u128, @@ -37201,7 +37201,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -37228,7 +37228,7 @@ pub mod api { #[doc = "Add an optional memo to an existing crowdloan contribution."] #[doc = ""] #[doc = "Origin must be Signed, and the user must have contributed to the crowdloan."] - pub fn add_memo( + pub async fn add_memo( &self, index: runtime_types::polkadot_parachain::primitives::Id, memo: ::std::vec::Vec<::core::primitive::u8>, @@ -37245,7 +37245,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -37265,7 +37265,7 @@ pub mod api { #[doc = "Poke the fund into `NewRaise`"] #[doc = ""] #[doc = "Origin must be Signed, and the fund has non-zero raise."] - pub fn poke( + pub async fn poke( &self, index: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -37281,7 +37281,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -37300,7 +37300,7 @@ pub mod api { } #[doc = "Contribute your entire balance to a crowd sale. This will transfer the entire balance of a user over to fund a parachain"] #[doc = "slot. It will be withdrawable when the crowdloan has ended and the funds are unused."] - pub fn contribute_all( + pub async fn contribute_all( &self, index: runtime_types::polkadot_parachain::primitives::Id, signature: ::core::option::Option< @@ -37319,7 +37319,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -37506,7 +37506,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -37533,7 +37533,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -37560,7 +37560,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -37588,7 +37588,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -37616,7 +37616,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -37648,14 +37648,14 @@ pub mod api { Self { client } } #[doc = " `PalletId` for the crowdloan pallet. An appropriate value could be `PalletId(*b\"py/cfund\")`"] - pub fn pallet_id( + pub async fn pallet_id( &self, ) -> ::core::result::Result< runtime_types::frame_support::PalletId, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Crowdloan", "PalletId")? == [ 190u8, 62u8, 112u8, 88u8, 48u8, 222u8, 234u8, 76u8, 230u8, @@ -37675,12 +37675,12 @@ pub mod api { } #[doc = " The minimum amount that may be contributed into a crowdloan. Should almost certainly be at"] #[doc = " least `ExistentialDeposit`."] - pub fn min_contribution( + pub async fn min_contribution( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Crowdloan", "MinContribution")? == [ 7u8, 98u8, 163u8, 178u8, 130u8, 130u8, 228u8, 145u8, 98u8, @@ -37699,12 +37699,12 @@ pub mod api { } } #[doc = " Max number of storage keys to remove per extrinsic call."] - pub fn remove_keys_limit( + pub async fn remove_keys_limit( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.constant_hash("Crowdloan", "RemoveKeysLimit")? == [ 112u8, 103u8, 77u8, 231u8, 192u8, 202u8, 113u8, 241u8, 178u8, @@ -37856,7 +37856,7 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn send( + pub async fn send( &self, dest: runtime_types::xcm::VersionedMultiLocation, message: runtime_types::xcm::VersionedXcm, @@ -37873,7 +37873,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -37908,7 +37908,7 @@ pub mod api { #[doc = " `dest` side. May not be empty."] #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] #[doc = " fees."] - pub fn teleport_assets( + pub async fn teleport_assets( &self, dest: runtime_types::xcm::VersionedMultiLocation, beneficiary: runtime_types::xcm::VersionedMultiLocation, @@ -37927,7 +37927,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -37965,7 +37965,7 @@ pub mod api { #[doc = " `dest` side."] #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] #[doc = " fees."] - pub fn reserve_transfer_assets( + pub async fn reserve_transfer_assets( &self, dest: runtime_types::xcm::VersionedMultiLocation, beneficiary: runtime_types::xcm::VersionedMultiLocation, @@ -37984,7 +37984,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -38017,7 +38017,7 @@ pub mod api { #[doc = ""] #[doc = "NOTE: A successful return to this does *not* imply that the `msg` was executed successfully"] #[doc = "to completion; only that *some* of it was executed."] - pub fn execute( + pub async fn execute( &self, message: runtime_types::xcm::VersionedXcm, max_weight: ::core::primitive::u64, @@ -38034,7 +38034,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -38060,7 +38060,7 @@ pub mod api { #[doc = "- `origin`: Must be Root."] #[doc = "- `location`: The destination that is being described."] #[doc = "- `xcm_version`: The latest version of XCM that `location` supports."] - pub fn force_xcm_version( + pub async fn force_xcm_version( &self, location: runtime_types::xcm::v1::multilocation::MultiLocation, xcm_version: ::core::primitive::u32, @@ -38077,7 +38077,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -38102,7 +38102,7 @@ pub mod api { #[doc = ""] #[doc = "- `origin`: Must be Root."] #[doc = "- `maybe_xcm_version`: The default XCM encoding version, or `None` to disable."] - pub fn force_default_xcm_version( + pub async fn force_default_xcm_version( &self, maybe_xcm_version: ::core::option::Option<::core::primitive::u32>, ) -> Result< @@ -38118,7 +38118,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -38139,7 +38139,7 @@ pub mod api { #[doc = ""] #[doc = "- `origin`: Must be Root."] #[doc = "- `location`: The location to which we should subscribe for XCM version notifications."] - pub fn force_subscribe_version_notify( + pub async fn force_subscribe_version_notify( &self, location: runtime_types::xcm::VersionedMultiLocation, ) -> Result< @@ -38155,7 +38155,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -38180,7 +38180,7 @@ pub mod api { #[doc = "- `origin`: Must be Root."] #[doc = "- `location`: The location to which we are currently subscribed for XCM version"] #[doc = " notifications which we no longer desire."] - pub fn force_unsubscribe_version_notify( + pub async fn force_unsubscribe_version_notify( &self, location: runtime_types::xcm::VersionedMultiLocation, ) -> Result< @@ -38196,7 +38196,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -38233,7 +38233,7 @@ pub mod api { #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] #[doc = " fees."] #[doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] - pub fn limited_reserve_transfer_assets( + pub async fn limited_reserve_transfer_assets( &self, dest: runtime_types::xcm::VersionedMultiLocation, beneficiary: runtime_types::xcm::VersionedMultiLocation, @@ -38253,7 +38253,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -38293,7 +38293,7 @@ pub mod api { #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] #[doc = " fees."] #[doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] - pub fn limited_teleport_assets( + pub async fn limited_teleport_assets( &self, dest: runtime_types::xcm::VersionedMultiLocation, beneficiary: runtime_types::xcm::VersionedMultiLocation, @@ -38313,7 +38313,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.call_hash::()? }; if runtime_call_hash @@ -38715,7 +38715,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -38750,7 +38750,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -38777,7 +38777,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -38805,7 +38805,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -38838,7 +38838,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -38865,7 +38865,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -38894,7 +38894,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -38921,7 +38921,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -38949,7 +38949,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -38976,7 +38976,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -39009,7 +39009,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -39037,7 +39037,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -39068,7 +39068,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -39100,7 +39100,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; metadata.storage_hash::()? }; if runtime_storage_hash @@ -49966,9 +49966,9 @@ pub mod api { T: ::subxt::Config, X: ::subxt::extrinsic::ExtrinsicParams, { - pub fn validate_metadata(&'a self) -> Result<(), ::subxt::MetadataError> { + pub async fn validate_metadata(&'a self) -> Result<(), ::subxt::MetadataError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; if metadata.metadata_hash(&PALLETS) != [ 222u8, 70u8, 96u8, 67u8, 220u8, 49u8, 147u8, 114u8, 199u8, 254u8, diff --git a/integration-tests/src/events/mod.rs b/integration-tests/src/events/mod.rs index 937a4faf91..bd72e1ee84 100644 --- a/integration-tests/src/events/mod.rs +++ b/integration-tests/src/events/mod.rs @@ -116,7 +116,8 @@ async fn balance_transfer_subscription() -> Result<(), subxt::BasicError> { ctx.api .tx() .balances() - .transfer(bob.clone().into(), 10_000)? + .transfer(bob.clone().into(), 10_000) + .await? .sign_and_submit_then_watch_default(&alice) .await?; diff --git a/integration-tests/src/frame/balances.rs b/integration-tests/src/frame/balances.rs index a881d0b8a0..a8d618b004 100644 --- a/integration-tests/src/frame/balances.rs +++ b/integration-tests/src/frame/balances.rs @@ -58,7 +58,8 @@ async fn tx_basic_transfer() -> Result<(), subxt::Error> { let events = api .tx() .balances() - .transfer(bob_address, 10_000)? + .transfer(bob_address, 10_000) + .await? .sign_and_submit_then_watch_default(&alice) .await? .wait_for_finalized_success() @@ -114,7 +115,8 @@ async fn multiple_transfers_work_nonce_incremented( api .tx() .balances() - .transfer(bob_address.clone(), 10_000)? + .transfer(bob_address.clone(), 10_000) + .await? .sign_and_submit_then_watch_default(&alice) .await? .wait_for_in_block() // Don't need to wait for finalization; this is quicker. @@ -159,7 +161,8 @@ async fn storage_balance_lock() -> Result<(), subxt::Error> { charlie.into(), 100_000_000_000_000, runtime_types::pallet_staking::RewardDestination::Stash, - )? + ) + .await? .sign_and_submit_then_watch_default(&bob) .await? .wait_for_finalized_success() @@ -200,6 +203,7 @@ async fn transfer_error() { .tx() .balances() .transfer(hans_address, 100_000_000_000_000_000) + .await .unwrap() .sign_and_submit_then_watch_default(&alice) .await @@ -213,6 +217,7 @@ async fn transfer_error() { .tx() .balances() .transfer(alice_addr, 100_000_000_000_000_000) + .await .unwrap() .sign_and_submit_then_watch_default(&hans) .await @@ -241,6 +246,7 @@ async fn transfer_implicit_subscription() { .tx() .balances() .transfer(bob_addr, 10_000) + .await .unwrap() .sign_and_submit_then_watch_default(&alice) .await @@ -266,7 +272,7 @@ async fn transfer_implicit_subscription() { async fn constant_existential_deposit() { let cxt = test_context().await; let locked_metadata = cxt.client().metadata(); - let metadata = locked_metadata.read(); + let metadata = locked_metadata.lock().await; let balances_metadata = metadata.pallet("Balances").unwrap(); let constant_metadata = balances_metadata.constant("ExistentialDeposit").unwrap(); let existential_deposit = u128::decode(&mut &constant_metadata.value[..]).unwrap(); @@ -277,6 +283,7 @@ async fn constant_existential_deposit() { .constants() .balances() .existential_deposit() + .await .unwrap() ); } diff --git a/integration-tests/src/frame/contracts.rs b/integration-tests/src/frame/contracts.rs index 944d33779b..a620937a92 100644 --- a/integration-tests/src/frame/contracts.rs +++ b/integration-tests/src/frame/contracts.rs @@ -90,7 +90,8 @@ impl ContractsTestContext { code, vec![], // data vec![], // salt - )? + ) + .await? .sign_and_submit_then_watch_default(&self.signer) .await? .wait_for_finalized_success() @@ -130,7 +131,8 @@ impl ContractsTestContext { code_hash, data, salt, - )? + ) + .await? .sign_and_submit_then_watch_default(&self.signer) .await? .wait_for_finalized_success() @@ -161,7 +163,8 @@ impl ContractsTestContext { 500_000_000, // gas_limit None, // storage_deposit_limit input_data, - )? + ) + .await? .sign_and_submit_then_watch_default(&self.signer) .await?; diff --git a/integration-tests/src/frame/staking.rs b/integration-tests/src/frame/staking.rs index e5a9ddd1aa..188d6d9183 100644 --- a/integration-tests/src/frame/staking.rs +++ b/integration-tests/src/frame/staking.rs @@ -55,6 +55,7 @@ async fn validate_with_controller_account() { .tx() .staking() .validate(default_validator_prefs()) + .await .unwrap() .sign_and_submit_then_watch_default(&alice) .await @@ -72,7 +73,8 @@ async fn validate_not_possible_for_stash_account() -> Result<(), Error Result<(), Error Result<(), Error> { ctx.api .tx() .staking() - .nominate(vec![bob_stash.account_id().clone().into()])? + .nominate(vec![bob_stash.account_id().clone().into()]) + .await? .sign_and_submit_then_watch_default(&alice) .await? .wait_for_finalized_success() @@ -156,7 +161,8 @@ async fn chill_works_for_controller_only() -> Result<(), Error> { .api .tx() .staking() - .chill()? + .chill() + .await? .sign_and_submit_then_watch_default(&alice_stash) .await? .wait_for_finalized_success() @@ -171,7 +177,8 @@ async fn chill_works_for_controller_only() -> Result<(), Error> { .api .tx() .staking() - .chill()? + .chill() + .await? .sign_and_submit_then_watch_default(&alice) .await? .wait_for_finalized_success() @@ -196,6 +203,7 @@ async fn tx_bond() -> Result<(), Error> { 100_000_000_000_000, RewardDestination::Stash, ) + .await .unwrap() .sign_and_submit_then_watch_default(&alice) .await? @@ -213,6 +221,7 @@ async fn tx_bond() -> Result<(), Error> { 100_000_000_000_000, RewardDestination::Stash, ) + .await .unwrap() .sign_and_submit_then_watch_default(&alice) .await? diff --git a/integration-tests/src/frame/sudo.rs b/integration-tests/src/frame/sudo.rs index 501320d44b..e401cb375d 100644 --- a/integration-tests/src/frame/sudo.rs +++ b/integration-tests/src/frame/sudo.rs @@ -43,7 +43,8 @@ async fn test_sudo() -> Result<(), subxt::Error> { .api .tx() .sudo() - .sudo(call)? + .sudo(call) + .await? .sign_and_submit_then_watch_default(&alice) .await? .wait_for_finalized_success() @@ -69,7 +70,8 @@ async fn test_sudo_unchecked_weight() -> Result<(), subxt::Error> .api .tx() .sudo() - .sudo_unchecked_weight(call, 0)? + .sudo_unchecked_weight(call, 0) + .await? .sign_and_submit_then_watch_default(&alice) .await? .wait_for_finalized_success() diff --git a/integration-tests/src/frame/system.rs b/integration-tests/src/frame/system.rs index ff7e9a9c01..094262f5df 100644 --- a/integration-tests/src/frame/system.rs +++ b/integration-tests/src/frame/system.rs @@ -50,7 +50,8 @@ async fn tx_remark_with_event() -> Result<(), subxt::Error> { .api .tx() .system() - .remark_with_event(b"remarkable".to_vec())? + .remark_with_event(b"remarkable".to_vec()) + .await? .sign_and_submit_then_watch_default(&alice) .await? .wait_for_finalized_success() diff --git a/integration-tests/src/metadata/validation.rs b/integration-tests/src/metadata/validation.rs index 968ee13218..99080b56cf 100644 --- a/integration-tests/src/metadata/validation.rs +++ b/integration-tests/src/metadata/validation.rs @@ -73,11 +73,11 @@ async fn full_metadata_check() { let api = &cxt.api; // Runtime metadata is identical to the metadata used during API generation. - assert!(api.validate_metadata().is_ok()); + assert!(api.validate_metadata().await.is_ok()); // Modify the metadata. let locked_client_metadata = api.client.metadata(); - let client_metadata = locked_client_metadata.read(); + let client_metadata = locked_client_metadata.lock().await; let mut metadata: RuntimeMetadataV14 = client_metadata.runtime_metadata().clone(); metadata.pallets[0].name = "NewPallet".to_string(); @@ -85,6 +85,7 @@ async fn full_metadata_check() { assert_eq!( new_api .validate_metadata() + .await .err() .expect("Validation should fail for incompatible metadata"), ::subxt::MetadataError::IncompatibleMetadata @@ -97,11 +98,17 @@ async fn constants_check() { let api = &cxt.api; // Ensure that `ExistentialDeposit` is compatible before altering the metadata. - assert!(cxt.api.constants().balances().existential_deposit().is_ok()); + assert!(cxt + .api + .constants() + .balances() + .existential_deposit() + .await + .is_ok()); // Modify the metadata. let locked_client_metadata = api.client.metadata(); - let client_metadata = locked_client_metadata.read(); + let client_metadata = locked_client_metadata.lock().await; let mut metadata: RuntimeMetadataV14 = client_metadata.runtime_metadata().clone(); let mut existential = metadata @@ -117,15 +124,16 @@ async fn constants_check() { let new_api = metadata_to_api(metadata, &cxt).await; - assert!(new_api.validate_metadata().is_err()); + assert!(new_api.validate_metadata().await.is_err()); assert!(new_api .constants() .balances() .existential_deposit() + .await .is_err()); // Other constant validation should not be impacted. - assert!(new_api.constants().balances().max_locks().is_ok()); + assert!(new_api.constants().balances().max_locks().await.is_ok()); } fn default_pallet() -> PalletMetadata { @@ -157,8 +165,14 @@ async fn calls_check() { let cxt = test_context().await; // Ensure that `Unbond` and `WinthdrawUnbonded` calls are compatible before altering the metadata. - assert!(cxt.api.tx().staking().unbond(123_456_789_012_345).is_ok()); - assert!(cxt.api.tx().staking().withdraw_unbonded(10).is_ok()); + assert!(cxt + .api + .tx() + .staking() + .unbond(123_456_789_012_345) + .await + .is_ok()); + assert!(cxt.api.tx().staking().withdraw_unbonded(10).await.is_ok()); // Reconstruct the `Staking` call as is. struct CallRec; @@ -193,8 +207,13 @@ async fn calls_check() { }; let metadata = pallets_to_metadata(vec![pallet]); let new_api = metadata_to_api(metadata, &cxt).await; - assert!(new_api.tx().staking().unbond(123_456_789_012_345).is_ok()); - assert!(new_api.tx().staking().withdraw_unbonded(10).is_ok()); + assert!(new_api + .tx() + .staking() + .unbond(123_456_789_012_345) + .await + .is_ok()); + assert!(new_api.tx().staking().withdraw_unbonded(10).await.is_ok()); // Change `Unbond` call but leave the rest as is. struct CallRecSecond; @@ -229,8 +248,13 @@ async fn calls_check() { let metadata = pallets_to_metadata(vec![pallet]); let new_api = metadata_to_api(metadata, &cxt).await; // Unbond call should fail, while withdraw_unbonded remains compatible. - assert!(new_api.tx().staking().unbond(123_456_789_012_345).is_err()); - assert!(new_api.tx().staking().withdraw_unbonded(10).is_ok()); + assert!(new_api + .tx() + .staking() + .unbond(123_456_789_012_345) + .await + .is_err()); + assert!(new_api.tx().staking().withdraw_unbonded(10).await.is_ok()); } #[tokio::test] diff --git a/integration-tests/src/storage/mod.rs b/integration-tests/src/storage/mod.rs index 552a06278f..efea138a18 100644 --- a/integration-tests/src/storage/mod.rs +++ b/integration-tests/src/storage/mod.rs @@ -48,7 +48,8 @@ async fn storage_map_lookup() -> Result<(), subxt::Error> { ctx.api .tx() .system() - .remark(vec![1, 2, 3, 4, 5])? + .remark(vec![1, 2, 3, 4, 5]) + .await? .sign_and_submit_then_watch_default(&signer) .await? .wait_for_finalized_success() @@ -113,7 +114,8 @@ async fn storage_n_map_storage_lookup() -> Result<(), subxt::Error Result<(), subxt::Error>, + metadata: Arc>, ) -> impl Stream>, BasicError>> { stream::iter(vec![ @@ -329,7 +329,7 @@ mod test { #[tokio::test] async fn filter_one_event_from_stream() { - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = Arc::new(Mutex::new(metadata::())); // Filter out fake event stream to select events matching `EventA` only. let actual: Vec<_> = @@ -361,7 +361,7 @@ mod test { #[tokio::test] async fn filter_some_events_from_stream() { - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = Arc::new(Mutex::new(metadata::())); // Filter out fake event stream to select events matching `EventA` or `EventB`. let actual: Vec<_> = FilterEvents::<_, DefaultConfig, (EventA, EventB)>::new( @@ -409,7 +409,7 @@ mod test { #[tokio::test] async fn filter_no_events_from_stream() { - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = Arc::new(Mutex::new(metadata::())); // Filter out fake event stream to select events matching `EventC` (none exist). let actual: Vec<_> = From 4a79933df23e81573611cb14be6c5b5b2b56d4df Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 5 May 2022 11:47:32 +0300 Subject: [PATCH 25/35] Fix test deadlock Signed-off-by: Alexandru Vasile --- integration-tests/src/frame/balances.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/integration-tests/src/frame/balances.rs b/integration-tests/src/frame/balances.rs index a8d618b004..e48897f5c2 100644 --- a/integration-tests/src/frame/balances.rs +++ b/integration-tests/src/frame/balances.rs @@ -271,9 +271,11 @@ async fn transfer_implicit_subscription() { #[tokio::test] async fn constant_existential_deposit() { let cxt = test_context().await; - let locked_metadata = cxt.client().metadata(); - let metadata = locked_metadata.lock().await; - let balances_metadata = metadata.pallet("Balances").unwrap(); + let balances_metadata = { + let locked_metadata = cxt.client().metadata(); + let metadata = locked_metadata.lock().await; + metadata.pallet("Balances").unwrap().clone() + }; let constant_metadata = balances_metadata.constant("ExistentialDeposit").unwrap(); let existential_deposit = u128::decode(&mut &constant_metadata.value[..]).unwrap(); assert_eq!(existential_deposit, 100_000_000_000_000); From d328f55e26bcdc24821111bfbd1ceee32bd9f45a Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 5 May 2022 16:19:14 +0300 Subject: [PATCH 26/35] Revert back to sync lock Revert "Fix test deadlock" This reverts commit 4a79933df23e81573611cb14be6c5b5b2b56d4df. Revert "Update examples and integration-tests" This reverts commit 5423f6eb4131582909d5a4ca70adff75e27cdd0e. Revert "Remove unused dependencies" This reverts commit e8ecbabb5b01a7ba4ae83b8bde36295a3f64daf7. Revert "codegen: Use async API to handle async locking" This reverts commit ced4646541c431adcb973369b1061b7b3cbfaae1. Revert "subxt: Block executor while decoding dynamic events" This reverts commit 8b3ba4a5eabb29f77ac1ca671450956fc479a33d. Revert "subxt: Switch to async::Mutex" This reverts commit f5bde9b79394a6bf61b6b9daefc36ceaa84b82be. --- codegen/src/api/calls.rs | 4 +- codegen/src/api/constants.rs | 4 +- codegen/src/api/mod.rs | 4 +- codegen/src/api/storage.rs | 4 +- examples/examples/balance_transfer.rs | 3 +- .../examples/balance_transfer_with_params.rs | 3 +- examples/examples/custom_config.rs | 3 +- examples/examples/metadata_compatibility.rs | 2 +- examples/examples/submit_and_watch.rs | 9 +- examples/examples/subscribe_all_events.rs | 1 - examples/examples/subscribe_one_event.rs | 1 - .../examples/subscribe_runtime_updates.rs | 1 - examples/examples/subscribe_some_events.rs | 1 - integration-tests/src/codegen/polkadot.rs | 2398 ++++++++--------- integration-tests/src/events/mod.rs | 3 +- integration-tests/src/frame/balances.rs | 21 +- integration-tests/src/frame/contracts.rs | 9 +- integration-tests/src/frame/staking.rs | 19 +- integration-tests/src/frame/sudo.rs | 6 +- integration-tests/src/frame/system.rs | 3 +- integration-tests/src/metadata/validation.rs | 48 +- integration-tests/src/storage/mod.rs | 9 +- subxt/src/client.rs | 18 +- subxt/src/events/events_type.rs | 90 +- subxt/src/events/filter_events.rs | 10 +- subxt/src/storage.rs | 8 +- subxt/src/transaction.rs | 2 +- subxt/src/updates.rs | 16 +- 28 files changed, 1314 insertions(+), 1386 deletions(-) diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index 2431cd776f..47f39fa57a 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -96,13 +96,13 @@ pub fn generate_calls( }; let client_fn = quote! { #docs - pub async fn #fn_name( + pub fn #fn_name( &self, #( #call_fn_args, )* ) -> Result<::subxt::SubmittableExtrinsic<'a, T, X, #struct_name, DispatchError, root_mod::Event>, ::subxt::BasicError> { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::<#struct_name>()? }; if runtime_call_hash == [#(#call_hash,)*] { diff --git a/codegen/src/api/constants.rs b/codegen/src/api/constants.rs index 124b94fc3a..4750ed59ba 100644 --- a/codegen/src/api/constants.rs +++ b/codegen/src/api/constants.rs @@ -48,9 +48,9 @@ pub fn generate_constants( quote! { #( #[doc = #docs ] )* - pub async fn #fn_name(&self) -> ::core::result::Result<#return_ty, ::subxt::BasicError> { + pub fn #fn_name(&self) -> ::core::result::Result<#return_ty, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash(#pallet_name, #constant_name)? == [#(#constant_hash,)*] { let pallet = metadata.pallet(#pallet_name)?; let constant = pallet.constant(#constant_name)?; diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index ecb0aeac31..6ecd296f48 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -311,9 +311,9 @@ impl RuntimeGenerator { T: ::subxt::Config, X: ::subxt::extrinsic::ExtrinsicParams, { - pub async fn validate_metadata(&'a self) -> Result<(), ::subxt::MetadataError> { + pub fn validate_metadata(&'a self) -> Result<(), ::subxt::MetadataError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.metadata_hash(&PALLETS) != [ #(#metadata_hash,)* ] { Err(::subxt::MetadataError::IncompatibleMetadata) } else { diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index 0898bda55b..4a2c91c09f 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -273,7 +273,7 @@ fn generate_storage_entry_fns( ) -> ::core::result::Result<::subxt::KeyIter<'a, T, #entry_struct_ident #lifetime_param>, ::subxt::BasicError> { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::<#entry_struct_ident>()? }; if runtime_storage_hash == [#(#storage_hash,)*] { @@ -307,7 +307,7 @@ fn generate_storage_entry_fns( ) -> ::core::result::Result<#return_ty, ::subxt::BasicError> { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::<#entry_struct_ident>()? }; if runtime_storage_hash == [#(#storage_hash,)*] { diff --git a/examples/examples/balance_transfer.rs b/examples/examples/balance_transfer.rs index 3a481fc8e7..21f64435ed 100644 --- a/examples/examples/balance_transfer.rs +++ b/examples/examples/balance_transfer.rs @@ -47,8 +47,7 @@ async fn main() -> Result<(), Box> { let hash = api .tx() .balances() - .transfer(dest, 123_456_789_012_345) - .await? + .transfer(dest, 123_456_789_012_345)? .sign_and_submit_default(&signer) .await?; diff --git a/examples/examples/balance_transfer_with_params.rs b/examples/examples/balance_transfer_with_params.rs index 3472425b29..9d00eacaa8 100644 --- a/examples/examples/balance_transfer_with_params.rs +++ b/examples/examples/balance_transfer_with_params.rs @@ -59,8 +59,7 @@ async fn main() -> Result<(), Box> { let hash = api .tx() .balances() - .transfer(dest, 123_456_789_012_345) - .await? + .transfer(dest, 123_456_789_012_345)? .sign_and_submit(&signer, tx_params) .await?; diff --git a/examples/examples/custom_config.rs b/examples/examples/custom_config.rs index 904afca6bf..27adb892a1 100644 --- a/examples/examples/custom_config.rs +++ b/examples/examples/custom_config.rs @@ -68,8 +68,7 @@ async fn main() -> Result<(), Box> { let hash = api .tx() .balances() - .transfer(dest, 10_000) - .await? + .transfer(dest, 10_000)? .sign_and_submit_default(&signer) .await?; diff --git a/examples/examples/metadata_compatibility.rs b/examples/examples/metadata_compatibility.rs index c2e3aeac65..a660bb9d14 100644 --- a/examples/examples/metadata_compatibility.rs +++ b/examples/examples/metadata_compatibility.rs @@ -46,7 +46,7 @@ async fn main() -> Result<(), Box> { // // To make sure that all of our statically generated pallets are compatible with the // runtime node, we can run this check: - api.validate_metadata().await?; + api.validate_metadata()?; Ok(()) } diff --git a/examples/examples/submit_and_watch.rs b/examples/examples/submit_and_watch.rs index 5bfab386f8..c41d7541ef 100644 --- a/examples/examples/submit_and_watch.rs +++ b/examples/examples/submit_and_watch.rs @@ -60,8 +60,7 @@ async fn simple_transfer() -> Result<(), Box> { let balance_transfer = api .tx() .balances() - .transfer(dest, 10_000) - .await? + .transfer(dest, 10_000)? .sign_and_submit_then_watch_default(&signer) .await? .wait_for_finalized_success() @@ -93,8 +92,7 @@ async fn simple_transfer_separate_events() -> Result<(), Box Result<(), Box> { let mut balance_transfer_progress = api .tx() .balances() - .transfer(dest, 10_000) - .await? + .transfer(dest, 10_000)? .sign_and_submit_then_watch_default(&signer) .await?; diff --git a/examples/examples/subscribe_all_events.rs b/examples/examples/subscribe_all_events.rs index 443e24d6d8..304cf4bd59 100644 --- a/examples/examples/subscribe_all_events.rs +++ b/examples/examples/subscribe_all_events.rs @@ -69,7 +69,6 @@ async fn main() -> Result<(), Box> { api.tx() .balances() .transfer(AccountKeyring::Bob.to_account_id().into(), transfer_amount) - .await .expect("compatible transfer call on runtime node") .sign_and_submit_default(&signer) .await diff --git a/examples/examples/subscribe_one_event.rs b/examples/examples/subscribe_one_event.rs index d705125499..1d09071a25 100644 --- a/examples/examples/subscribe_one_event.rs +++ b/examples/examples/subscribe_one_event.rs @@ -73,7 +73,6 @@ async fn main() -> Result<(), Box> { api.tx() .balances() .transfer(AccountKeyring::Bob.to_account_id().into(), 1_000_000_000) - .await .expect("compatible transfer call on runtime node") .sign_and_submit_default(&signer) .await diff --git a/examples/examples/subscribe_runtime_updates.rs b/examples/examples/subscribe_runtime_updates.rs index 5a5681322f..dbcef545f4 100644 --- a/examples/examples/subscribe_runtime_updates.rs +++ b/examples/examples/subscribe_runtime_updates.rs @@ -69,7 +69,6 @@ async fn main() -> Result<(), Box> { AccountKeyring::Bob.to_account_id().into(), 123_456_789_012_345, ) - .await .unwrap() .sign_and_submit_default(&signer) .await diff --git a/examples/examples/subscribe_some_events.rs b/examples/examples/subscribe_some_events.rs index 13c15e13f0..2e253ad16c 100644 --- a/examples/examples/subscribe_some_events.rs +++ b/examples/examples/subscribe_some_events.rs @@ -74,7 +74,6 @@ async fn main() -> Result<(), Box> { api.tx() .balances() .transfer(AccountKeyring::Bob.to_account_id().into(), 1_000_000_000) - .await .expect("compatible transfer call on runtime node") .sign_and_submit_default(&signer) .await diff --git a/integration-tests/src/codegen/polkadot.rs b/integration-tests/src/codegen/polkadot.rs index 71ee8a5459..b0fc05cdcd 100644 --- a/integration-tests/src/codegen/polkadot.rs +++ b/integration-tests/src/codegen/polkadot.rs @@ -239,7 +239,7 @@ pub mod api { } } #[doc = "A dispatch that will fill the block weight up to the given ratio."] - pub async fn fill_block( + pub fn fill_block( &self, ratio: runtime_types::sp_arithmetic::per_things::Perbill, ) -> Result< @@ -255,7 +255,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -277,7 +277,7 @@ pub mod api { #[doc = "# "] #[doc = "- `O(1)`"] #[doc = "# "] - pub async fn remark( + pub fn remark( &self, remark: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -293,7 +293,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -311,7 +311,7 @@ pub mod api { } } #[doc = "Set the number of pages in the WebAssembly environment's heap."] - pub async fn set_heap_pages( + pub fn set_heap_pages( &self, pages: ::core::primitive::u64, ) -> Result< @@ -327,7 +327,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -356,7 +356,7 @@ pub mod api { #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] #[doc = "expensive. We will treat this as a full block."] #[doc = "# "] - pub async fn set_code( + pub fn set_code( &self, code: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -372,7 +372,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -398,7 +398,7 @@ pub mod api { #[doc = "- 1 event."] #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] #[doc = "block. # "] - pub async fn set_code_without_checks( + pub fn set_code_without_checks( &self, code: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -414,7 +414,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -432,7 +432,7 @@ pub mod api { } } #[doc = "Set some items of storage."] - pub async fn set_storage( + pub fn set_storage( &self, items: ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, @@ -451,7 +451,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -469,7 +469,7 @@ pub mod api { } } #[doc = "Kill some items from storage."] - pub async fn kill_storage( + pub fn kill_storage( &self, keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, ) -> Result< @@ -485,7 +485,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -506,7 +506,7 @@ pub mod api { #[doc = ""] #[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] #[doc = "the prefix we are removing to accurately calculate the weight of this function."] - pub async fn kill_prefix( + pub fn kill_prefix( &self, prefix: ::std::vec::Vec<::core::primitive::u8>, subkeys: ::core::primitive::u32, @@ -523,7 +523,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -541,7 +541,7 @@ pub mod api { } } #[doc = "Make some on-chain remark and emit event."] - pub async fn remark_with_event( + pub fn remark_with_event( &self, remark: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -557,7 +557,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -826,7 +826,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -856,7 +856,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -882,7 +882,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -911,7 +911,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -941,7 +941,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -967,7 +967,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -997,7 +997,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -1024,7 +1024,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -1054,7 +1054,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -1078,7 +1078,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -1106,7 +1106,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -1136,7 +1136,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -1174,7 +1174,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -1202,7 +1202,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -1242,7 +1242,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -1281,7 +1281,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -1309,7 +1309,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -1334,7 +1334,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -1363,7 +1363,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -1393,7 +1393,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -1422,14 +1422,14 @@ pub mod api { Self { client } } #[doc = " Block & extrinsics weights: base values and limits."] - pub async fn block_weights( + pub fn block_weights( &self, ) -> ::core::result::Result< runtime_types::frame_system::limits::BlockWeights, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("System", "BlockWeights")? == [ 12u8, 113u8, 191u8, 55u8, 3u8, 129u8, 43u8, 135u8, 41u8, @@ -1448,14 +1448,14 @@ pub mod api { } } #[doc = " The maximum length of a block (in bytes)."] - pub async fn block_length( + pub fn block_length( &self, ) -> ::core::result::Result< runtime_types::frame_system::limits::BlockLength, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("System", "BlockLength")? == [ 120u8, 249u8, 182u8, 103u8, 246u8, 214u8, 149u8, 44u8, 42u8, @@ -1474,12 +1474,12 @@ pub mod api { } } #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] - pub async fn block_hash_count( + pub fn block_hash_count( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("System", "BlockHashCount")? == [ 123u8, 126u8, 182u8, 103u8, 71u8, 187u8, 233u8, 8u8, 47u8, @@ -1498,14 +1498,14 @@ pub mod api { } } #[doc = " The weight of runtime database operations the runtime can invoke."] - pub async fn db_weight( + pub fn db_weight( &self, ) -> ::core::result::Result< runtime_types::frame_support::weights::RuntimeDbWeight, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("System", "DbWeight")? == [ 159u8, 93u8, 33u8, 204u8, 10u8, 85u8, 53u8, 104u8, 180u8, @@ -1524,14 +1524,14 @@ pub mod api { } } #[doc = " Get the chain's current version."] - pub async fn version( + pub fn version( &self, ) -> ::core::result::Result< runtime_types::sp_version::RuntimeVersion, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("System", "Version")? == [ 237u8, 208u8, 32u8, 121u8, 44u8, 122u8, 19u8, 109u8, 43u8, @@ -1554,12 +1554,12 @@ pub mod api { #[doc = " This replaces the \"ss58Format\" property declared in the chain spec. Reason is"] #[doc = " that the runtime should know about the prefix in order to make use of it as"] #[doc = " an identifier of the chain."] - pub async fn ss58_prefix( + pub fn ss58_prefix( &self, ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("System", "SS58Prefix")? == [ 80u8, 239u8, 133u8, 243u8, 151u8, 113u8, 37u8, 41u8, 100u8, @@ -1702,7 +1702,7 @@ pub mod api { } } #[doc = "Anonymously schedule a task."] - pub async fn schedule( + pub fn schedule( &self, when: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( @@ -1727,7 +1727,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -1750,7 +1750,7 @@ pub mod api { } } #[doc = "Cancel an anonymously scheduled task."] - pub async fn cancel( + pub fn cancel( &self, when: ::core::primitive::u32, index: ::core::primitive::u32, @@ -1767,7 +1767,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -1785,7 +1785,7 @@ pub mod api { } } #[doc = "Schedule a named task."] - pub async fn schedule_named( + pub fn schedule_named( &self, id: ::std::vec::Vec<::core::primitive::u8>, when: ::core::primitive::u32, @@ -1811,7 +1811,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -1835,7 +1835,7 @@ pub mod api { } } #[doc = "Cancel a named scheduled task."] - pub async fn cancel_named( + pub fn cancel_named( &self, id: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -1851,7 +1851,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -1873,7 +1873,7 @@ pub mod api { #[doc = "# "] #[doc = "Same as [`schedule`]."] #[doc = "# "] - pub async fn schedule_after( + pub fn schedule_after( &self, after: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( @@ -1898,7 +1898,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -1925,7 +1925,7 @@ pub mod api { #[doc = "# "] #[doc = "Same as [`schedule_named`](Self::schedule_named)."] #[doc = "# "] - pub async fn schedule_named_after( + pub fn schedule_named_after( &self, id: ::std::vec::Vec<::core::primitive::u8>, after: ::core::primitive::u32, @@ -1951,7 +1951,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -2071,7 +2071,7 @@ pub mod api { #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub async fn agenda (& self , _0 : & :: core :: primitive :: u32 , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_scheduler :: ScheduledV3 < runtime_types :: frame_support :: traits :: schedule :: MaybeHashed < runtime_types :: polkadot_runtime :: Call , :: subxt :: sp_core :: H256 > , :: core :: primitive :: u32 , runtime_types :: polkadot_runtime :: OriginCaller , :: subxt :: sp_core :: crypto :: AccountId32 > > > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -2101,7 +2101,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -2131,7 +2131,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -2158,7 +2158,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -2187,12 +2187,12 @@ pub mod api { } #[doc = " The maximum weight that may be scheduled per block for any dispatchables of less"] #[doc = " priority than `schedule::HARD_DEADLINE`."] - pub async fn maximum_weight( + pub fn maximum_weight( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Scheduler", "MaximumWeight")? == [ 235u8, 167u8, 74u8, 91u8, 5u8, 188u8, 76u8, 138u8, 208u8, @@ -2212,12 +2212,12 @@ pub mod api { } #[doc = " The maximum number of scheduled calls in the queue for a single block."] #[doc = " Not strictly enforced, but used for weight estimation."] - pub async fn max_scheduled_per_block( + pub fn max_scheduled_per_block( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Scheduler", "MaxScheduledPerBlock")? == [ 64u8, 25u8, 128u8, 202u8, 165u8, 97u8, 30u8, 196u8, 174u8, @@ -2300,7 +2300,7 @@ pub mod api { #[doc = ""] #[doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] #[doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] - pub async fn note_preimage( + pub fn note_preimage( &self, bytes: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -2316,7 +2316,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -2334,7 +2334,7 @@ pub mod api { } } #[doc = "Clear an unrequested preimage from the runtime storage."] - pub async fn unnote_preimage( + pub fn unnote_preimage( &self, hash: ::subxt::sp_core::H256, ) -> Result< @@ -2350,7 +2350,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -2371,7 +2371,7 @@ pub mod api { #[doc = ""] #[doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] #[doc = "a user may have paid, and take the control of the preimage out of their hands."] - pub async fn request_preimage( + pub fn request_preimage( &self, hash: ::subxt::sp_core::H256, ) -> Result< @@ -2387,7 +2387,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -2407,7 +2407,7 @@ pub mod api { #[doc = "Clear a previously made request for a preimage."] #[doc = ""] #[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] - pub async fn unrequest_preimage( + pub fn unrequest_preimage( &self, hash: ::subxt::sp_core::H256, ) -> Result< @@ -2423,7 +2423,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -2528,7 +2528,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -2555,7 +2555,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -2586,7 +2586,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -2613,7 +2613,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -2705,7 +2705,7 @@ pub mod api { #[doc = "the equivocation proof and validate the given key ownership proof"] #[doc = "against the extracted offender. If both are valid, the offence will"] #[doc = "be reported."] - pub async fn report_equivocation( + pub fn report_equivocation( &self, equivocation_proof : runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public >, key_owner_proof: runtime_types::sp_session::MembershipProof, @@ -2722,7 +2722,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -2752,7 +2752,7 @@ pub mod api { #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] #[doc = "if the block author is defined it will be defined as the equivocation"] #[doc = "reporter."] - pub async fn report_equivocation_unsigned( + pub fn report_equivocation_unsigned( &self, equivocation_proof : runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public >, key_owner_proof: runtime_types::sp_session::MembershipProof, @@ -2769,7 +2769,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -2795,7 +2795,7 @@ pub mod api { #[doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] #[doc = "Multiple calls to this method will replace any existing planned config change that had"] #[doc = "not been enacted yet."] - pub async fn plan_config_change( + pub fn plan_config_change( &self, config : runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor, ) -> Result< @@ -2811,7 +2811,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -2998,7 +2998,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3021,7 +3021,7 @@ pub mod api { #[doc = " Current epoch authorities."] pub async fn authorities (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3052,7 +3052,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3082,7 +3082,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3121,7 +3121,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3153,7 +3153,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3180,7 +3180,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3203,7 +3203,7 @@ pub mod api { #[doc = " Next epoch authorities."] pub async fn next_authorities (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3239,7 +3239,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3272,7 +3272,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3302,7 +3302,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3331,7 +3331,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3361,7 +3361,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3395,7 +3395,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3427,7 +3427,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3460,7 +3460,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3490,7 +3490,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3521,12 +3521,12 @@ pub mod api { #[doc = " The amount of time, in slots, that each epoch should last."] #[doc = " NOTE: Currently it is not possible to change the epoch duration after"] #[doc = " the chain has started. Attempting to do so will brick block production."] - pub async fn epoch_duration( + pub fn epoch_duration( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Babe", "EpochDuration")? == [ 40u8, 54u8, 255u8, 20u8, 89u8, 2u8, 38u8, 235u8, 70u8, 145u8, @@ -3549,12 +3549,12 @@ pub mod api { #[doc = " what the expected average block time should be based on the slot"] #[doc = " duration and the security parameter `c` (where `1 - c` represents"] #[doc = " the probability of a slot being empty)."] - pub async fn expected_block_time( + pub fn expected_block_time( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Babe", "ExpectedBlockTime")? == [ 249u8, 170u8, 37u8, 7u8, 132u8, 115u8, 106u8, 71u8, 116u8, @@ -3573,12 +3573,12 @@ pub mod api { } } #[doc = " Max number of authorities allowed"] - pub async fn max_authorities( + pub fn max_authorities( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Babe", "MaxAuthorities")? == [ 248u8, 195u8, 131u8, 166u8, 10u8, 50u8, 71u8, 223u8, 41u8, @@ -3650,7 +3650,7 @@ pub mod api { #[doc = " `on_finalize`)"] #[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] #[doc = "# "] - pub async fn set( + pub fn set( &self, now: ::core::primitive::u64, ) -> Result< @@ -3666,7 +3666,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -3720,7 +3720,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3748,7 +3748,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -3783,12 +3783,12 @@ pub mod api { #[doc = " period that the block production apparatus provides. Your chosen consensus system will"] #[doc = " generally work with this to determine a sensible block time. e.g. For Aura, it will be"] #[doc = " double this period on default settings."] - pub async fn minimum_period( + pub fn minimum_period( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Timestamp", "MinimumPeriod")? == [ 141u8, 242u8, 40u8, 24u8, 83u8, 43u8, 33u8, 194u8, 156u8, @@ -3911,7 +3911,7 @@ pub mod api { #[doc = "-------------------"] #[doc = "- DB Weight: 1 Read/Write (Accounts)"] #[doc = "# "] - pub async fn claim( + pub fn claim( &self, index: ::core::primitive::u32, ) -> Result< @@ -3927,7 +3927,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -3964,7 +3964,7 @@ pub mod api { #[doc = " - Reads: Indices Accounts, System Account (recipient)"] #[doc = " - Writes: Indices Accounts, System Account (recipient)"] #[doc = "# "] - pub async fn transfer( + pub fn transfer( &self, new: ::subxt::sp_core::crypto::AccountId32, index: ::core::primitive::u32, @@ -3981,7 +3981,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -4016,7 +4016,7 @@ pub mod api { #[doc = "-------------------"] #[doc = "- DB Weight: 1 Read/Write (Accounts)"] #[doc = "# "] - pub async fn free( + pub fn free( &self, index: ::core::primitive::u32, ) -> Result< @@ -4032,7 +4032,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -4070,7 +4070,7 @@ pub mod api { #[doc = " - Reads: Indices Accounts, System Account (original owner)"] #[doc = " - Writes: Indices Accounts, System Account (original owner)"] #[doc = "# "] - pub async fn force_transfer( + pub fn force_transfer( &self, new: ::subxt::sp_core::crypto::AccountId32, index: ::core::primitive::u32, @@ -4088,7 +4088,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -4123,7 +4123,7 @@ pub mod api { #[doc = "-------------------"] #[doc = "- DB Weight: 1 Read/Write (Accounts)"] #[doc = "# "] - pub async fn freeze( + pub fn freeze( &self, index: ::core::primitive::u32, ) -> Result< @@ -4139,7 +4139,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -4236,7 +4236,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -4263,7 +4263,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -4291,12 +4291,12 @@ pub mod api { Self { client } } #[doc = " The deposit needed for reserving an index."] - pub async fn deposit( + pub fn deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Indices", "Deposit")? == [ 249u8, 18u8, 129u8, 140u8, 50u8, 11u8, 128u8, 63u8, 198u8, @@ -4450,7 +4450,7 @@ pub mod api { #[doc = "---------------------------------"] #[doc = "- Origin account is already in memory, so no DB operations for them."] #[doc = "# "] - pub async fn transfer( + pub fn transfer( &self, dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -4470,7 +4470,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -4495,7 +4495,7 @@ pub mod api { #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] #[doc = ""] #[doc = "The dispatch origin for this call is `root`."] - pub async fn set_balance( + pub fn set_balance( &self, who: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -4516,7 +4516,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -4543,7 +4543,7 @@ pub mod api { #[doc = "- Same as transfer, but additional read and write because the source account is not"] #[doc = " assumed to be in the overlay."] #[doc = "# "] - pub async fn force_transfer( + pub fn force_transfer( &self, source: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -4567,7 +4567,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -4594,7 +4594,7 @@ pub mod api { #[doc = "99% of the time you want [`transfer`] instead."] #[doc = ""] #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] - pub async fn transfer_keep_alive( + pub fn transfer_keep_alive( &self, dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -4614,7 +4614,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -4648,7 +4648,7 @@ pub mod api { #[doc = " keep the sender account alive (true). # "] #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] #[doc = " #"] - pub async fn transfer_all( + pub fn transfer_all( &self, dest: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -4668,7 +4668,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -4688,7 +4688,7 @@ pub mod api { #[doc = "Unreserve some balance from a user by force."] #[doc = ""] #[doc = "Can only be called by ROOT."] - pub async fn force_unreserve( + pub fn force_unreserve( &self, who: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -4708,7 +4708,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -4916,7 +4916,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -4970,7 +4970,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -5023,7 +5023,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -5043,7 +5043,7 @@ pub mod api { #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub async fn locks (& self , _0 : & :: subxt :: sp_core :: crypto :: AccountId32 , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -5074,7 +5074,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -5106,7 +5106,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -5136,7 +5136,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -5164,7 +5164,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -5196,12 +5196,12 @@ pub mod api { Self { client } } #[doc = " The minimum amount required to keep an account open."] - pub async fn existential_deposit( + pub fn existential_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Balances", "ExistentialDeposit")? == [ 100u8, 197u8, 144u8, 241u8, 166u8, 142u8, 204u8, 246u8, @@ -5221,12 +5221,12 @@ pub mod api { } #[doc = " The maximum number of locks that should exist on an account."] #[doc = " Not strictly enforced, but used for weight estimation."] - pub async fn max_locks( + pub fn max_locks( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Balances", "MaxLocks")? == [ 250u8, 58u8, 19u8, 15u8, 35u8, 113u8, 227u8, 89u8, 39u8, @@ -5245,12 +5245,12 @@ pub mod api { } } #[doc = " The maximum number of named reserves that can exist on an account."] - pub async fn max_reserves( + pub fn max_reserves( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Balances", "MaxReserves")? == [ 24u8, 30u8, 77u8, 89u8, 216u8, 114u8, 140u8, 11u8, 127u8, @@ -5312,7 +5312,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -5341,7 +5341,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -5373,12 +5373,12 @@ pub mod api { Self { client } } #[doc = " The fee to be paid for making a transaction; the per-byte portion."] - pub async fn transaction_byte_fee( + pub fn transaction_byte_fee( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata .constant_hash("TransactionPayment", "TransactionByteFee")? == [ @@ -5418,12 +5418,12 @@ pub mod api { #[doc = " sent with the transaction. So, not only does the transaction get a priority bump based"] #[doc = " on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`"] #[doc = " transactions."] - pub async fn operational_fee_multiplier( + pub fn operational_fee_multiplier( &self, ) -> ::core::result::Result<::core::primitive::u8, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata .constant_hash("TransactionPayment", "OperationalFeeMultiplier")? == [ @@ -5443,7 +5443,7 @@ pub mod api { } } #[doc = " The polynomial that is applied in order to derive fee from weight."] - pub async fn weight_to_fee( + pub fn weight_to_fee( &self, ) -> ::core::result::Result< ::std::vec::Vec< @@ -5454,7 +5454,7 @@ pub mod api { ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("TransactionPayment", "WeightToFee")? == [ 194u8, 136u8, 54u8, 114u8, 5u8, 242u8, 3u8, 197u8, 151u8, @@ -5515,7 +5515,7 @@ pub mod api { } } #[doc = "Provide a set of uncles."] - pub async fn set_uncles( + pub fn set_uncles( &self, new_uncles: ::std::vec::Vec< runtime_types::sp_runtime::generic::header::Header< @@ -5536,7 +5536,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -5613,7 +5613,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -5643,7 +5643,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -5668,7 +5668,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -5702,12 +5702,12 @@ pub mod api { #[doc = " The number of blocks back we should accept uncles."] #[doc = " This means that we will deal with uncle-parents that are"] #[doc = " `UncleGenerations + 1` before `now`."] - pub async fn uncle_generations( + pub fn uncle_generations( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Authorship", "UncleGenerations")? == [ 0u8, 72u8, 57u8, 175u8, 222u8, 143u8, 191u8, 33u8, 163u8, @@ -6034,7 +6034,7 @@ pub mod api { #[doc = "unless the `origin` falls below _existential deposit_ and gets removed as dust."] #[doc = "------------------"] #[doc = "# "] - pub async fn bond( + pub fn bond( &self, controller: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -6057,7 +6057,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6093,7 +6093,7 @@ pub mod api { #[doc = "- Independent of the arguments. Insignificant complexity."] #[doc = "- O(1)."] #[doc = "# "] - pub async fn bond_extra( + pub fn bond_extra( &self, max_additional: ::core::primitive::u128, ) -> Result< @@ -6109,7 +6109,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6145,7 +6145,7 @@ pub mod api { #[doc = "Emits `Unbonded`."] #[doc = ""] #[doc = "See also [`Call::withdraw_unbonded`]."] - pub async fn unbond( + pub fn unbond( &self, value: ::core::primitive::u128, ) -> Result< @@ -6161,7 +6161,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6193,7 +6193,7 @@ pub mod api { #[doc = "Complexity O(S) where S is the number of slashing spans to remove"] #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] #[doc = "# "] - pub async fn withdraw_unbonded( + pub fn withdraw_unbonded( &self, num_slashing_spans: ::core::primitive::u32, ) -> Result< @@ -6209,7 +6209,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6231,7 +6231,7 @@ pub mod api { #[doc = "Effects will be felt at the beginning of the next era."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - pub async fn validate( + pub fn validate( &self, prefs: runtime_types::pallet_staking::ValidatorPrefs, ) -> Result< @@ -6247,7 +6247,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6275,7 +6275,7 @@ pub mod api { #[doc = "which is capped at CompactAssignments::LIMIT (T::MaxNominations)."] #[doc = "- Both the reads and writes follow a similar pattern."] #[doc = "# "] - pub async fn nominate( + pub fn nominate( &self, targets: ::std::vec::Vec< ::subxt::sp_runtime::MultiAddress< @@ -6296,7 +6296,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6324,7 +6324,7 @@ pub mod api { #[doc = "- Contains one read."] #[doc = "- Writes are limited to the `origin` account key."] #[doc = "# "] - pub async fn chill( + pub fn chill( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -6339,7 +6339,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6372,7 +6372,7 @@ pub mod api { #[doc = " - Read: Ledger"] #[doc = " - Write: Payee"] #[doc = "# "] - pub async fn set_payee( + pub fn set_payee( &self, payee: runtime_types::pallet_staking::RewardDestination< ::subxt::sp_core::crypto::AccountId32, @@ -6390,7 +6390,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6423,7 +6423,7 @@ pub mod api { #[doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] #[doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] #[doc = "# "] - pub async fn set_controller( + pub fn set_controller( &self, controller: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -6442,7 +6442,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6467,7 +6467,7 @@ pub mod api { #[doc = "Weight: O(1)"] #[doc = "Write: Validator Count"] #[doc = "# "] - pub async fn set_validator_count( + pub fn set_validator_count( &self, new: ::core::primitive::u32, ) -> Result< @@ -6483,7 +6483,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6507,7 +6507,7 @@ pub mod api { #[doc = "# "] #[doc = "Same as [`Self::set_validator_count`]."] #[doc = "# "] - pub async fn increase_validator_count( + pub fn increase_validator_count( &self, additional: ::core::primitive::u32, ) -> Result< @@ -6523,7 +6523,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6547,7 +6547,7 @@ pub mod api { #[doc = "# "] #[doc = "Same as [`Self::set_validator_count`]."] #[doc = "# "] - pub async fn scale_validator_count( + pub fn scale_validator_count( &self, factor: runtime_types::sp_arithmetic::per_things::Percent, ) -> Result< @@ -6563,7 +6563,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6595,7 +6595,7 @@ pub mod api { #[doc = "- Weight: O(1)"] #[doc = "- Write: ForceEra"] #[doc = "# "] - pub async fn force_no_eras( + pub fn force_no_eras( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -6610,7 +6610,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6643,7 +6643,7 @@ pub mod api { #[doc = "- Weight: O(1)"] #[doc = "- Write ForceEra"] #[doc = "# "] - pub async fn force_new_era( + pub fn force_new_era( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -6658,7 +6658,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6678,7 +6678,7 @@ pub mod api { #[doc = "Set the validators who cannot be slashed (if any)."] #[doc = ""] #[doc = "The dispatch origin must be Root."] - pub async fn set_invulnerables( + pub fn set_invulnerables( &self, invulnerables: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ) -> Result< @@ -6694,7 +6694,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6714,7 +6714,7 @@ pub mod api { #[doc = "Force a current staker to become completely unstaked, immediately."] #[doc = ""] #[doc = "The dispatch origin must be Root."] - pub async fn force_unstake( + pub fn force_unstake( &self, stash: ::subxt::sp_core::crypto::AccountId32, num_slashing_spans: ::core::primitive::u32, @@ -6731,7 +6731,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6760,7 +6760,7 @@ pub mod api { #[doc = "The election process starts multiple blocks before the end of the era."] #[doc = "If this is called just before a new era is triggered, the election process may not"] #[doc = "have enough blocks to get a result."] - pub async fn force_new_era_always( + pub fn force_new_era_always( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -6775,7 +6775,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6797,7 +6797,7 @@ pub mod api { #[doc = "Can be called by the `T::SlashCancelOrigin`."] #[doc = ""] #[doc = "Parameters: era and indices of the slashes for that era to kill."] - pub async fn cancel_deferred_slash( + pub fn cancel_deferred_slash( &self, era: ::core::primitive::u32, slash_indices: ::std::vec::Vec<::core::primitive::u32>, @@ -6814,7 +6814,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6852,7 +6852,7 @@ pub mod api { #[doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] #[doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] #[doc = "# "] - pub async fn payout_stakers( + pub fn payout_stakers( &self, validator_stash: ::subxt::sp_core::crypto::AccountId32, era: ::core::primitive::u32, @@ -6869,7 +6869,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6898,7 +6898,7 @@ pub mod api { #[doc = "- Bounded by `MaxUnlockingChunks`."] #[doc = "- Storage changes: Can't increase storage, only decrease it."] #[doc = "# "] - pub async fn rebond( + pub fn rebond( &self, value: ::core::primitive::u128, ) -> Result< @@ -6914,7 +6914,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -6953,7 +6953,7 @@ pub mod api { #[doc = " - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake,"] #[doc = " ErasStartSessionIndex"] #[doc = "# "] - pub async fn set_history_depth( + pub fn set_history_depth( &self, new_history_depth: ::core::primitive::u32, era_items_deleted: ::core::primitive::u32, @@ -6970,7 +6970,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -7002,7 +7002,7 @@ pub mod api { #[doc = "It can be called by anyone, as long as `stash` meets the above requirements."] #[doc = ""] #[doc = "Refunds the transaction fees upon successful execution."] - pub async fn reap_stash( + pub fn reap_stash( &self, stash: ::subxt::sp_core::crypto::AccountId32, num_slashing_spans: ::core::primitive::u32, @@ -7019,7 +7019,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -7050,7 +7050,7 @@ pub mod api { #[doc = ""] #[doc = "Note: Making this call only makes sense if you first set the validator preferences to"] #[doc = "block any further nominations."] - pub async fn kick( + pub fn kick( &self, who: ::std::vec::Vec< ::subxt::sp_runtime::MultiAddress< @@ -7071,7 +7071,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -7105,7 +7105,7 @@ pub mod api { #[doc = ""] #[doc = "NOTE: Existing nominators and validators will not be affected by this update."] #[doc = "to kick people under the new limits, `chill_other` should be called."] - pub async fn set_staking_configs( + pub fn set_staking_configs( &self, min_nominator_bond : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < :: core :: primitive :: u128 >, min_validator_bond : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < :: core :: primitive :: u128 >, @@ -7126,7 +7126,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -7176,7 +7176,7 @@ pub mod api { #[doc = ""] #[doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] #[doc = "who do not satisfy these requirements."] - pub async fn chill_other( + pub fn chill_other( &self, controller: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -7192,7 +7192,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -7212,7 +7212,7 @@ pub mod api { #[doc = "Force a validator to have at least the minimum commission. This will not affect a"] #[doc = "validator who already has a commission greater than or equal to the minimum. Any account"] #[doc = "can call this."] - pub async fn force_apply_min_commission( + pub fn force_apply_min_commission( &self, validator_stash: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -7228,7 +7228,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -7872,7 +7872,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -7900,7 +7900,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -7928,7 +7928,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -7960,7 +7960,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -7991,7 +7991,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8018,7 +8018,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8042,7 +8042,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8070,7 +8070,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8102,7 +8102,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8138,7 +8138,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8165,7 +8165,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8194,7 +8194,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8224,7 +8224,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8251,7 +8251,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8281,7 +8281,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8305,7 +8305,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8337,7 +8337,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8380,7 +8380,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8422,7 +8422,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8446,7 +8446,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8478,7 +8478,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8508,7 +8508,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8538,7 +8538,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8569,7 +8569,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8599,7 +8599,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8635,7 +8635,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8670,7 +8670,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8711,7 +8711,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8751,7 +8751,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8783,7 +8783,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8817,7 +8817,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8846,7 +8846,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8875,7 +8875,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8905,7 +8905,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8936,7 +8936,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8962,7 +8962,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -8993,7 +8993,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9019,7 +9019,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9051,7 +9051,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9080,7 +9080,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9116,7 +9116,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9146,7 +9146,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9175,7 +9175,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9211,7 +9211,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9239,7 +9239,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9267,7 +9267,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9294,7 +9294,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9323,7 +9323,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9350,7 +9350,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9381,7 +9381,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9412,7 +9412,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9438,7 +9438,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9465,7 +9465,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9503,7 +9503,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9536,7 +9536,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9570,7 +9570,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9599,12 +9599,12 @@ pub mod api { Self { client } } #[doc = " Maximum number of nominations per nominator."] - pub async fn max_nominations( + pub fn max_nominations( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Staking", "MaxNominations")? == [ 155u8, 58u8, 120u8, 225u8, 19u8, 30u8, 64u8, 6u8, 16u8, 72u8, @@ -9623,12 +9623,12 @@ pub mod api { } } #[doc = " Number of sessions per era."] - pub async fn sessions_per_era( + pub fn sessions_per_era( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Staking", "SessionsPerEra")? == [ 73u8, 207u8, 178u8, 212u8, 159u8, 9u8, 41u8, 31u8, 205u8, @@ -9647,12 +9647,12 @@ pub mod api { } } #[doc = " Number of eras that staked funds must remain bonded for."] - pub async fn bonding_duration( + pub fn bonding_duration( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Staking", "BondingDuration")? == [ 205u8, 83u8, 35u8, 244u8, 140u8, 127u8, 183u8, 152u8, 242u8, @@ -9674,12 +9674,12 @@ pub mod api { #[doc = ""] #[doc = " This should be less than the bonding duration. Set to 0 if slashes"] #[doc = " should be applied immediately, without opportunity for intervention."] - pub async fn slash_defer_duration( + pub fn slash_defer_duration( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Staking", "SlashDeferDuration")? == [ 119u8, 238u8, 165u8, 29u8, 118u8, 219u8, 225u8, 241u8, 249u8, @@ -9701,12 +9701,12 @@ pub mod api { #[doc = ""] #[doc = " For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can"] #[doc = " claim their reward. This used to limit the i/o cost for the nominator payout."] - pub async fn max_nominator_rewarded_per_validator( + pub fn max_nominator_rewarded_per_validator( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata .constant_hash("Staking", "MaxNominatorRewardedPerValidator")? == [ @@ -9728,12 +9728,12 @@ pub mod api { } #[doc = " The maximum number of `unlocking` chunks a [`StakingLedger`] can have. Effectively"] #[doc = " determines how many unique eras a staker may be unbonding in."] - pub async fn max_unlocking_chunks( + pub fn max_unlocking_chunks( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Staking", "MaxUnlockingChunks")? == [ 60u8, 255u8, 33u8, 12u8, 50u8, 253u8, 93u8, 203u8, 3u8, @@ -9860,7 +9860,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9887,7 +9887,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9915,7 +9915,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9945,7 +9945,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -9977,7 +9977,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -10012,7 +10012,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -10092,7 +10092,7 @@ pub mod api { #[doc = "- DbReads per key id: `KeyOwner`"] #[doc = "- DbWrites per key id: `KeyOwner`"] #[doc = "# "] - pub async fn set_keys( + pub fn set_keys( &self, keys: runtime_types::polkadot_runtime::SessionKeys, proof: ::std::vec::Vec<::core::primitive::u8>, @@ -10109,7 +10109,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -10142,7 +10142,7 @@ pub mod api { #[doc = "- DbWrites: `NextKeys`, `origin account`"] #[doc = "- DbWrites per key id: `KeyOwner`"] #[doc = "# "] - pub async fn purge_keys( + pub fn purge_keys( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -10157,7 +10157,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -10289,7 +10289,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -10317,7 +10317,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -10346,7 +10346,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -10380,7 +10380,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -10414,7 +10414,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -10445,7 +10445,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -10472,7 +10472,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -10500,7 +10500,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -10527,7 +10527,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -10613,7 +10613,7 @@ pub mod api { #[doc = "equivocation proof and validate the given key ownership proof"] #[doc = "against the extracted offender. If both are valid, the offence"] #[doc = "will be reported."] - pub async fn report_equivocation( + pub fn report_equivocation( &self, equivocation_proof : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: sp_core :: H256 , :: core :: primitive :: u32 >, key_owner_proof: runtime_types::sp_session::MembershipProof, @@ -10630,7 +10630,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -10661,7 +10661,7 @@ pub mod api { #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] #[doc = "if the block author is defined it will be defined as the equivocation"] #[doc = "reporter."] - pub async fn report_equivocation_unsigned( + pub fn report_equivocation_unsigned( &self, equivocation_proof : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: sp_core :: H256 , :: core :: primitive :: u32 >, key_owner_proof: runtime_types::sp_session::MembershipProof, @@ -10678,7 +10678,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -10707,7 +10707,7 @@ pub mod api { #[doc = "forced change will not be re-orged (e.g. 1000 blocks). The GRANDPA voters"] #[doc = "will start the new authority set using the given finalized block as base."] #[doc = "Only callable by root."] - pub async fn note_stalled( + pub fn note_stalled( &self, delay: ::core::primitive::u32, best_finalized_block_number: ::core::primitive::u32, @@ -10724,7 +10724,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -10855,7 +10855,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -10889,7 +10889,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -10916,7 +10916,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -10946,7 +10946,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -10972,7 +10972,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -11006,7 +11006,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -11036,7 +11036,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -11064,12 +11064,12 @@ pub mod api { Self { client } } #[doc = " Max Authorities in use"] - pub async fn max_authorities( + pub fn max_authorities( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Grandpa", "MaxAuthorities")? == [ 248u8, 195u8, 131u8, 166u8, 10u8, 50u8, 71u8, 223u8, 41u8, @@ -11136,7 +11136,7 @@ pub mod api { #[doc = " `ReceivedHeartbeats`"] #[doc = "- DbWrites: `ReceivedHeartbeats`"] #[doc = "# "] - pub async fn heartbeat( + pub fn heartbeat( &self, heartbeat: runtime_types::pallet_im_online::Heartbeat< ::core::primitive::u32, @@ -11155,7 +11155,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -11302,7 +11302,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -11325,7 +11325,7 @@ pub mod api { #[doc = " The current set of keys that may issue a heartbeat."] pub async fn keys (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -11362,7 +11362,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -11390,7 +11390,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -11417,7 +11417,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -11448,7 +11448,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -11479,12 +11479,12 @@ pub mod api { #[doc = ""] #[doc = " This is exposed so that it can be tuned for particular runtime, when"] #[doc = " multiple pallets send unsigned transactions."] - pub async fn unsigned_priority( + pub fn unsigned_priority( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("ImOnline", "UnsignedPriority")? == [ 78u8, 226u8, 84u8, 70u8, 162u8, 23u8, 167u8, 100u8, 156u8, @@ -11779,7 +11779,7 @@ pub mod api { #[doc = "Emits `Proposed`."] #[doc = ""] #[doc = "Weight: `O(p)`"] - pub async fn propose( + pub fn propose( &self, proposal_hash: ::subxt::sp_core::H256, value: ::core::primitive::u128, @@ -11796,7 +11796,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -11826,7 +11826,7 @@ pub mod api { #[doc = " proposal. Extrinsic is weighted according to this value with no refund."] #[doc = ""] #[doc = "Weight: `O(S)` where S is the number of seconds a proposal already has."] - pub async fn second( + pub fn second( &self, proposal: ::core::primitive::u32, seconds_upper_bound: ::core::primitive::u32, @@ -11843,7 +11843,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -11872,7 +11872,7 @@ pub mod api { #[doc = "- `vote`: The vote configuration."] #[doc = ""] #[doc = "Weight: `O(R)` where R is the number of referendums the voter has voted on."] - pub async fn vote( + pub fn vote( &self, ref_index: ::core::primitive::u32, vote: runtime_types::pallet_democracy::vote::AccountVote< @@ -11891,7 +11891,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -11916,7 +11916,7 @@ pub mod api { #[doc = "-`ref_index`: The index of the referendum to cancel."] #[doc = ""] #[doc = "Weight: `O(1)`."] - pub async fn emergency_cancel( + pub fn emergency_cancel( &self, ref_index: ::core::primitive::u32, ) -> Result< @@ -11932,7 +11932,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -11958,7 +11958,7 @@ pub mod api { #[doc = ""] #[doc = "Weight: `O(V)` with V number of vetoers in the blacklist of proposal."] #[doc = " Decoding vec of length V. Charged as maximum"] - pub async fn external_propose( + pub fn external_propose( &self, proposal_hash: ::subxt::sp_core::H256, ) -> Result< @@ -11974,7 +11974,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12002,7 +12002,7 @@ pub mod api { #[doc = "pre-scheduled `external_propose` call."] #[doc = ""] #[doc = "Weight: `O(1)`"] - pub async fn external_propose_majority( + pub fn external_propose_majority( &self, proposal_hash: ::subxt::sp_core::H256, ) -> Result< @@ -12018,7 +12018,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12046,7 +12046,7 @@ pub mod api { #[doc = "pre-scheduled `external_propose` call."] #[doc = ""] #[doc = "Weight: `O(1)`"] - pub async fn external_propose_default( + pub fn external_propose_default( &self, proposal_hash: ::subxt::sp_core::H256, ) -> Result< @@ -12062,7 +12062,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12094,7 +12094,7 @@ pub mod api { #[doc = "Emits `Started`."] #[doc = ""] #[doc = "Weight: `O(1)`"] - pub async fn fast_track( + pub fn fast_track( &self, proposal_hash: ::subxt::sp_core::H256, voting_period: ::core::primitive::u32, @@ -12112,7 +12112,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12142,7 +12142,7 @@ pub mod api { #[doc = "Emits `Vetoed`."] #[doc = ""] #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] - pub async fn veto_external( + pub fn veto_external( &self, proposal_hash: ::subxt::sp_core::H256, ) -> Result< @@ -12158,7 +12158,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12182,7 +12182,7 @@ pub mod api { #[doc = "- `ref_index`: The index of the referendum to cancel."] #[doc = ""] #[doc = "# Weight: `O(1)`."] - pub async fn cancel_referendum( + pub fn cancel_referendum( &self, ref_index: ::core::primitive::u32, ) -> Result< @@ -12198,7 +12198,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12222,7 +12222,7 @@ pub mod api { #[doc = "- `which`: The index of the referendum to cancel."] #[doc = ""] #[doc = "Weight: `O(D)` where `D` is the items in the dispatch queue. Weighted as `D = 10`."] - pub async fn cancel_queued( + pub fn cancel_queued( &self, which: ::core::primitive::u32, ) -> Result< @@ -12238,7 +12238,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12275,7 +12275,7 @@ pub mod api { #[doc = ""] #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] #[doc = " voted on. Weight is charged as if maximum votes."] - pub async fn delegate( + pub fn delegate( &self, to: ::subxt::sp_core::crypto::AccountId32, conviction: runtime_types::pallet_democracy::conviction::Conviction, @@ -12293,7 +12293,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12326,7 +12326,7 @@ pub mod api { #[doc = ""] #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] #[doc = " voted on. Weight is charged as if maximum votes."] - pub async fn undelegate( + pub fn undelegate( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -12341,7 +12341,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12363,7 +12363,7 @@ pub mod api { #[doc = "The dispatch origin of this call must be _Root_."] #[doc = ""] #[doc = "Weight: `O(1)`."] - pub async fn clear_public_proposals( + pub fn clear_public_proposals( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -12378,7 +12378,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12405,7 +12405,7 @@ pub mod api { #[doc = "Emits `PreimageNoted`."] #[doc = ""] #[doc = "Weight: `O(E)` with E size of `encoded_proposal` (protected by a required deposit)."] - pub async fn note_preimage( + pub fn note_preimage( &self, encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -12421,7 +12421,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12439,7 +12439,7 @@ pub mod api { } } #[doc = "Same as `note_preimage` but origin is `OperationalPreimageOrigin`."] - pub async fn note_preimage_operational( + pub fn note_preimage_operational( &self, encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -12455,7 +12455,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12484,7 +12484,7 @@ pub mod api { #[doc = "Emits `PreimageNoted`."] #[doc = ""] #[doc = "Weight: `O(E)` with E size of `encoded_proposal` (protected by a required deposit)."] - pub async fn note_imminent_preimage( + pub fn note_imminent_preimage( &self, encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -12500,7 +12500,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12518,7 +12518,7 @@ pub mod api { } } #[doc = "Same as `note_imminent_preimage` but origin is `OperationalPreimageOrigin`."] - pub async fn note_imminent_preimage_operational( + pub fn note_imminent_preimage_operational( &self, encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -12534,7 +12534,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12566,7 +12566,7 @@ pub mod api { #[doc = "Emits `PreimageReaped`."] #[doc = ""] #[doc = "Weight: `O(D)` where D is length of proposal."] - pub async fn reap_preimage( + pub fn reap_preimage( &self, proposal_hash: ::subxt::sp_core::H256, proposal_len_upper_bound: ::core::primitive::u32, @@ -12583,7 +12583,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12610,7 +12610,7 @@ pub mod api { #[doc = "- `target`: The account to remove the lock on."] #[doc = ""] #[doc = "Weight: `O(R)` with R number of vote of target."] - pub async fn unlock( + pub fn unlock( &self, target: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -12626,7 +12626,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12670,7 +12670,7 @@ pub mod api { #[doc = ""] #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] #[doc = " Weight is calculated for the maximum number of vote."] - pub async fn remove_vote( + pub fn remove_vote( &self, index: ::core::primitive::u32, ) -> Result< @@ -12686,7 +12686,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12718,7 +12718,7 @@ pub mod api { #[doc = ""] #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] #[doc = " Weight is calculated for the maximum number of vote."] - pub async fn remove_other_vote( + pub fn remove_other_vote( &self, target: ::subxt::sp_core::crypto::AccountId32, index: ::core::primitive::u32, @@ -12735,7 +12735,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12753,7 +12753,7 @@ pub mod api { } } #[doc = "Enact a proposal from a referendum. For now we just make the weight be the maximum."] - pub async fn enact_proposal( + pub fn enact_proposal( &self, proposal_hash: ::subxt::sp_core::H256, index: ::core::primitive::u32, @@ -12770,7 +12770,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12805,7 +12805,7 @@ pub mod api { #[doc = ""] #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] #[doc = " reasonable value)."] - pub async fn blacklist( + pub fn blacklist( &self, proposal_hash: ::subxt::sp_core::H256, maybe_ref_index: ::core::option::Option<::core::primitive::u32>, @@ -12822,7 +12822,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -12849,7 +12849,7 @@ pub mod api { #[doc = "- `prop_index`: The index of the proposal to cancel."] #[doc = ""] #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] - pub async fn cancel_proposal( + pub fn cancel_proposal( &self, prop_index: ::core::primitive::u32, ) -> Result< @@ -12865,7 +12865,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -13273,7 +13273,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13307,7 +13307,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13343,7 +13343,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13372,7 +13372,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13406,7 +13406,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13434,7 +13434,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13458,7 +13458,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13487,7 +13487,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13526,7 +13526,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13555,7 +13555,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13589,7 +13589,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13622,7 +13622,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13647,7 +13647,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13683,7 +13683,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13715,7 +13715,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13743,7 +13743,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13768,7 +13768,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13798,7 +13798,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13826,7 +13826,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -13859,12 +13859,12 @@ pub mod api { #[doc = " It should generally be a little more than the unstake period to ensure that"] #[doc = " voting stakers have an opportunity to remove themselves from the system in the case"] #[doc = " where they are on the losing side of a vote."] - pub async fn enactment_period( + pub fn enactment_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Democracy", "EnactmentPeriod")? == [ 227u8, 73u8, 197u8, 72u8, 142u8, 160u8, 229u8, 180u8, 110u8, @@ -13883,12 +13883,12 @@ pub mod api { } } #[doc = " How often (in blocks) new public referenda are launched."] - pub async fn launch_period( + pub fn launch_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Democracy", "LaunchPeriod")? == [ 107u8, 166u8, 54u8, 10u8, 127u8, 204u8, 15u8, 249u8, 71u8, @@ -13907,12 +13907,12 @@ pub mod api { } } #[doc = " How often (in blocks) to check for new votes."] - pub async fn voting_period( + pub fn voting_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Democracy", "VotingPeriod")? == [ 53u8, 228u8, 6u8, 131u8, 171u8, 179u8, 33u8, 29u8, 46u8, @@ -13934,12 +13934,12 @@ pub mod api { #[doc = ""] #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] #[doc = " those successful voters are locked into the consequences that their votes entail."] - pub async fn vote_locking_period( + pub fn vote_locking_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Democracy", "VoteLockingPeriod")? == [ 30u8, 71u8, 100u8, 117u8, 139u8, 71u8, 77u8, 189u8, 33u8, @@ -13958,12 +13958,12 @@ pub mod api { } } #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] - pub async fn minimum_deposit( + pub fn minimum_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Democracy", "MinimumDeposit")? == [ 13u8, 97u8, 190u8, 80u8, 197u8, 219u8, 115u8, 167u8, 134u8, @@ -13984,12 +13984,12 @@ pub mod api { #[doc = " Indicator for whether an emergency origin is even allowed to happen. Some chains may"] #[doc = " want to set this permanently to `false`, others may want to condition it on things such"] #[doc = " as an upgrade having happened recently."] - pub async fn instant_allowed( + pub fn instant_allowed( &self, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Democracy", "InstantAllowed")? == [ 66u8, 19u8, 43u8, 75u8, 149u8, 2u8, 157u8, 136u8, 33u8, @@ -14008,12 +14008,12 @@ pub mod api { } } #[doc = " Minimum voting period allowed for a fast-track referendum."] - pub async fn fast_track_voting_period( + pub fn fast_track_voting_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Democracy", "FastTrackVotingPeriod")? == [ 72u8, 110u8, 169u8, 125u8, 65u8, 142u8, 75u8, 117u8, 252u8, @@ -14032,12 +14032,12 @@ pub mod api { } } #[doc = " Period in blocks where an external proposal may not be re-submitted after being vetoed."] - pub async fn cooloff_period( + pub fn cooloff_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Democracy", "CooloffPeriod")? == [ 216u8, 225u8, 208u8, 207u8, 23u8, 216u8, 8u8, 144u8, 183u8, @@ -14056,12 +14056,12 @@ pub mod api { } } #[doc = " The amount of balance that must be deposited per byte of preimage stored."] - pub async fn preimage_byte_deposit( + pub fn preimage_byte_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Democracy", "PreimageByteDeposit")? == [ 123u8, 228u8, 214u8, 37u8, 90u8, 98u8, 166u8, 29u8, 231u8, @@ -14083,12 +14083,12 @@ pub mod api { #[doc = ""] #[doc = " Also used to compute weight, an overly big value can"] #[doc = " lead to extrinsic with very big weight: see `delegate` for instance."] - pub async fn max_votes( + pub fn max_votes( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Democracy", "MaxVotes")? == [ 218u8, 111u8, 73u8, 160u8, 254u8, 247u8, 22u8, 113u8, 78u8, @@ -14107,12 +14107,12 @@ pub mod api { } } #[doc = " The maximum number of public proposals that can exist at any time."] - pub async fn max_proposals( + pub fn max_proposals( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Democracy", "MaxProposals")? == [ 125u8, 103u8, 31u8, 211u8, 29u8, 50u8, 100u8, 13u8, 229u8, @@ -14256,7 +14256,7 @@ pub mod api { #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] #[doc = "# "] - pub async fn set_members( + pub fn set_members( &self, new_members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, prime: ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, @@ -14274,7 +14274,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -14306,7 +14306,7 @@ pub mod api { #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] #[doc = "- 1 event"] #[doc = "# "] - pub async fn execute( + pub fn execute( &self, proposal: runtime_types::polkadot_runtime::Call, length_bound: ::core::primitive::u32, @@ -14323,7 +14323,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -14370,7 +14370,7 @@ pub mod api { #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] #[doc = " - 1 event"] #[doc = "# "] - pub async fn propose( + pub fn propose( &self, threshold: ::core::primitive::u32, proposal: runtime_types::polkadot_runtime::Call, @@ -14388,7 +14388,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -14424,7 +14424,7 @@ pub mod api { #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] #[doc = "- 1 event"] #[doc = "# "] - pub async fn vote( + pub fn vote( &self, proposal: ::subxt::sp_core::H256, index: ::core::primitive::u32, @@ -14442,7 +14442,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -14495,7 +14495,7 @@ pub mod api { #[doc = " - any mutations done while executing `proposal` (`P1`)"] #[doc = "- up to 3 events"] #[doc = "# "] - pub async fn close( + pub fn close( &self, proposal_hash: ::subxt::sp_core::H256, index: ::core::primitive::u32, @@ -14514,7 +14514,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -14550,7 +14550,7 @@ pub mod api { #[doc = "* Reads: Proposals"] #[doc = "* Writes: Voting, Proposals, ProposalOf"] #[doc = "# "] - pub async fn disapprove_proposal( + pub fn disapprove_proposal( &self, proposal_hash: ::subxt::sp_core::H256, ) -> Result< @@ -14566,7 +14566,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -14754,7 +14754,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -14785,7 +14785,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -14812,7 +14812,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -14844,7 +14844,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -14871,7 +14871,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -14895,7 +14895,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -14925,7 +14925,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -14955,7 +14955,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -15098,7 +15098,7 @@ pub mod api { #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] #[doc = "# "] - pub async fn set_members( + pub fn set_members( &self, new_members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, prime: ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, @@ -15116,7 +15116,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -15148,7 +15148,7 @@ pub mod api { #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] #[doc = "- 1 event"] #[doc = "# "] - pub async fn execute( + pub fn execute( &self, proposal: runtime_types::polkadot_runtime::Call, length_bound: ::core::primitive::u32, @@ -15165,7 +15165,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -15212,7 +15212,7 @@ pub mod api { #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] #[doc = " - 1 event"] #[doc = "# "] - pub async fn propose( + pub fn propose( &self, threshold: ::core::primitive::u32, proposal: runtime_types::polkadot_runtime::Call, @@ -15230,7 +15230,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -15266,7 +15266,7 @@ pub mod api { #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] #[doc = "- 1 event"] #[doc = "# "] - pub async fn vote( + pub fn vote( &self, proposal: ::subxt::sp_core::H256, index: ::core::primitive::u32, @@ -15284,7 +15284,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -15337,7 +15337,7 @@ pub mod api { #[doc = " - any mutations done while executing `proposal` (`P1`)"] #[doc = "- up to 3 events"] #[doc = "# "] - pub async fn close( + pub fn close( &self, proposal_hash: ::subxt::sp_core::H256, index: ::core::primitive::u32, @@ -15356,7 +15356,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -15392,7 +15392,7 @@ pub mod api { #[doc = "* Reads: Proposals"] #[doc = "* Writes: Voting, Proposals, ProposalOf"] #[doc = "# "] - pub async fn disapprove_proposal( + pub fn disapprove_proposal( &self, proposal_hash: ::subxt::sp_core::H256, ) -> Result< @@ -15408,7 +15408,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -15596,7 +15596,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -15627,7 +15627,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -15654,7 +15654,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -15686,7 +15686,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -15713,7 +15713,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -15737,7 +15737,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -15767,7 +15767,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -15797,7 +15797,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -15920,7 +15920,7 @@ pub mod api { #[doc = "# "] #[doc = "We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less."] #[doc = "# "] - pub async fn vote( + pub fn vote( &self, votes: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, value: ::core::primitive::u128, @@ -15937,7 +15937,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -15959,7 +15959,7 @@ pub mod api { #[doc = "This removes the lock and returns the deposit."] #[doc = ""] #[doc = "The dispatch origin of this call must be signed and be a voter."] - pub async fn remove_voter( + pub fn remove_voter( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -15974,7 +15974,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -16006,7 +16006,7 @@ pub mod api { #[doc = "# "] #[doc = "The number of current candidates must be provided as witness data."] #[doc = "# "] - pub async fn submit_candidacy( + pub fn submit_candidacy( &self, candidate_count: ::core::primitive::u32, ) -> Result< @@ -16022,7 +16022,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -16057,7 +16057,7 @@ pub mod api { #[doc = "# "] #[doc = "The type of renouncing must be provided as witness data."] #[doc = "# "] - pub async fn renounce_candidacy( + pub fn renounce_candidacy( &self, renouncing: runtime_types::pallet_elections_phragmen::Renouncing, ) -> Result< @@ -16073,7 +16073,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -16104,7 +16104,7 @@ pub mod api { #[doc = "If we have a replacement, we use a small weight. Else, since this is a root call and"] #[doc = "will go into phragmen, we assume full block for now."] #[doc = "# "] - pub async fn remove_member( + pub fn remove_member( &self, who: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -16124,7 +16124,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -16154,7 +16154,7 @@ pub mod api { #[doc = "# "] #[doc = "The total number of voters and those that are defunct must be provided as witness data."] #[doc = "# "] - pub async fn clean_defunct_voters( + pub fn clean_defunct_voters( &self, num_voters: ::core::primitive::u32, num_defunct: ::core::primitive::u32, @@ -16171,7 +16171,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -16360,7 +16360,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -16398,7 +16398,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -16436,7 +16436,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -16464,7 +16464,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -16500,7 +16500,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -16532,7 +16532,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -16560,14 +16560,14 @@ pub mod api { Self { client } } #[doc = " Identifier for the elections-phragmen pallet's lock"] - pub async fn pallet_id( + pub fn pallet_id( &self, ) -> ::core::result::Result< [::core::primitive::u8; 8usize], ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("PhragmenElection", "PalletId")? == [ 95u8, 63u8, 229u8, 200u8, 231u8, 11u8, 95u8, 106u8, 62u8, @@ -16586,12 +16586,12 @@ pub mod api { } } #[doc = " How much should be locked up in order to submit one's candidacy."] - pub async fn candidacy_bond( + pub fn candidacy_bond( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("PhragmenElection", "CandidacyBond")? == [ 14u8, 234u8, 73u8, 125u8, 101u8, 97u8, 55u8, 15u8, 230u8, @@ -16613,12 +16613,12 @@ pub mod api { #[doc = ""] #[doc = " This should be sensibly high to economically ensure the pallet cannot be attacked by"] #[doc = " creating a gigantic number of votes."] - pub async fn voting_bond_base( + pub fn voting_bond_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("PhragmenElection", "VotingBondBase")? == [ 180u8, 167u8, 175u8, 40u8, 243u8, 172u8, 143u8, 55u8, 194u8, @@ -16637,12 +16637,12 @@ pub mod api { } } #[doc = " The amount of bond that need to be locked for each vote (32 bytes)."] - pub async fn voting_bond_factor( + pub fn voting_bond_factor( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("PhragmenElection", "VotingBondFactor")? == [ 221u8, 163u8, 2u8, 102u8, 69u8, 249u8, 39u8, 153u8, 236u8, @@ -16661,12 +16661,12 @@ pub mod api { } } #[doc = " Number of members to elect."] - pub async fn desired_members( + pub fn desired_members( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("PhragmenElection", "DesiredMembers")? == [ 202u8, 93u8, 82u8, 184u8, 101u8, 152u8, 110u8, 247u8, 155u8, @@ -16685,12 +16685,12 @@ pub mod api { } } #[doc = " Number of runners_up to keep."] - pub async fn desired_runners_up( + pub fn desired_runners_up( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("PhragmenElection", "DesiredRunnersUp")? == [ 126u8, 79u8, 206u8, 94u8, 16u8, 223u8, 112u8, 34u8, 160u8, @@ -16711,12 +16711,12 @@ pub mod api { #[doc = " How long each seat is kept. This defines the next block number at which an election"] #[doc = " round will happen. If set to zero, no elections are ever triggered and the module will"] #[doc = " be in passive mode."] - pub async fn term_duration( + pub fn term_duration( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("PhragmenElection", "TermDuration")? == [ 193u8, 236u8, 82u8, 251u8, 38u8, 164u8, 72u8, 149u8, 65u8, @@ -16821,7 +16821,7 @@ pub mod api { #[doc = "Add a member `who` to the set."] #[doc = ""] #[doc = "May only be called from `T::AddOrigin`."] - pub async fn add_member( + pub fn add_member( &self, who: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -16837,7 +16837,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -16857,7 +16857,7 @@ pub mod api { #[doc = "Remove a member `who` from the set."] #[doc = ""] #[doc = "May only be called from `T::RemoveOrigin`."] - pub async fn remove_member( + pub fn remove_member( &self, who: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -16873,7 +16873,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -16895,7 +16895,7 @@ pub mod api { #[doc = "May only be called from `T::SwapOrigin`."] #[doc = ""] #[doc = "Prime membership is *not* passed from `remove` to `add`, if extant."] - pub async fn swap_member( + pub fn swap_member( &self, remove: ::subxt::sp_core::crypto::AccountId32, add: ::subxt::sp_core::crypto::AccountId32, @@ -16912,7 +16912,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -16933,7 +16933,7 @@ pub mod api { #[doc = "pass `members` pre-sorted."] #[doc = ""] #[doc = "May only be called from `T::ResetOrigin`."] - pub async fn reset_members( + pub fn reset_members( &self, members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ) -> Result< @@ -16949,7 +16949,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -16971,7 +16971,7 @@ pub mod api { #[doc = "May only be called from `Signed` origin of a current member."] #[doc = ""] #[doc = "Prime membership is passed from the origin account to `new`, if extant."] - pub async fn change_key( + pub fn change_key( &self, new: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -16987,7 +16987,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -17007,7 +17007,7 @@ pub mod api { #[doc = "Set the prime member. Must be a current member."] #[doc = ""] #[doc = "May only be called from `T::PrimeOrigin`."] - pub async fn set_prime( + pub fn set_prime( &self, who: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -17023,7 +17023,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -17043,7 +17043,7 @@ pub mod api { #[doc = "Remove the prime member if it exists."] #[doc = ""] #[doc = "May only be called from `T::PrimeOrigin`."] - pub async fn clear_prime( + pub fn clear_prime( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -17058,7 +17058,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -17160,7 +17160,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -17190,7 +17190,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -17276,7 +17276,7 @@ pub mod api { #[doc = "- DbReads: `ProposalCount`, `origin account`"] #[doc = "- DbWrites: `ProposalCount`, `Proposals`, `origin account`"] #[doc = "# "] - pub async fn propose_spend( + pub fn propose_spend( &self, value: ::core::primitive::u128, beneficiary: ::subxt::sp_runtime::MultiAddress< @@ -17296,7 +17296,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -17322,7 +17322,7 @@ pub mod api { #[doc = "- DbReads: `Proposals`, `rejected proposer account`"] #[doc = "- DbWrites: `Proposals`, `rejected proposer account`"] #[doc = "# "] - pub async fn reject_proposal( + pub fn reject_proposal( &self, proposal_id: ::core::primitive::u32, ) -> Result< @@ -17338,7 +17338,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -17365,7 +17365,7 @@ pub mod api { #[doc = "- DbReads: `Proposals`, `Approvals`"] #[doc = "- DbWrite: `Approvals`"] #[doc = "# "] - pub async fn approve_proposal( + pub fn approve_proposal( &self, proposal_id: ::core::primitive::u32, ) -> Result< @@ -17381,7 +17381,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -17548,7 +17548,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -17584,7 +17584,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -17611,7 +17611,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -17639,7 +17639,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -17672,14 +17672,14 @@ pub mod api { } #[doc = " Fraction of a proposal's value that should be bonded in order to place the proposal."] #[doc = " An accepted proposal gets these back. A rejected proposal does not."] - pub async fn proposal_bond( + pub fn proposal_bond( &self, ) -> ::core::result::Result< runtime_types::sp_arithmetic::per_things::Permill, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Treasury", "ProposalBond")? == [ 254u8, 112u8, 56u8, 108u8, 71u8, 90u8, 128u8, 114u8, 54u8, @@ -17698,12 +17698,12 @@ pub mod api { } } #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] - pub async fn proposal_bond_minimum( + pub fn proposal_bond_minimum( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Treasury", "ProposalBondMinimum")? == [ 233u8, 16u8, 162u8, 158u8, 32u8, 30u8, 243u8, 215u8, 145u8, @@ -17722,14 +17722,14 @@ pub mod api { } } #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] - pub async fn proposal_bond_maximum( + pub fn proposal_bond_maximum( &self, ) -> ::core::result::Result< ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Treasury", "ProposalBondMaximum")? == [ 12u8, 199u8, 104u8, 127u8, 224u8, 233u8, 186u8, 181u8, 74u8, @@ -17748,12 +17748,12 @@ pub mod api { } } #[doc = " Period between successive spends."] - pub async fn spend_period( + pub fn spend_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Treasury", "SpendPeriod")? == [ 71u8, 58u8, 201u8, 70u8, 240u8, 191u8, 67u8, 71u8, 12u8, @@ -17772,14 +17772,14 @@ pub mod api { } } #[doc = " Percentage of spare funds (if any) that are burnt per spend period."] - pub async fn burn( + pub fn burn( &self, ) -> ::core::result::Result< runtime_types::sp_arithmetic::per_things::Permill, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Treasury", "Burn")? == [ 179u8, 112u8, 148u8, 197u8, 209u8, 103u8, 231u8, 44u8, 227u8, @@ -17798,14 +17798,14 @@ pub mod api { } } #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] - pub async fn pallet_id( + pub fn pallet_id( &self, ) -> ::core::result::Result< runtime_types::frame_support::PalletId, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Treasury", "PalletId")? == [ 65u8, 140u8, 92u8, 164u8, 174u8, 209u8, 169u8, 31u8, 29u8, @@ -17826,12 +17826,12 @@ pub mod api { #[doc = " The maximum number of approvals that can wait in the spending queue."] #[doc = ""] #[doc = " NOTE: This parameter is also used within the Bounties Pallet extension if enabled."] - pub async fn max_approvals( + pub fn max_approvals( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Treasury", "MaxApprovals")? == [ 90u8, 101u8, 189u8, 20u8, 137u8, 178u8, 7u8, 81u8, 148u8, @@ -17959,7 +17959,7 @@ pub mod api { #[doc = ""] #[doc = "Total Complexity: O(1)"] #[doc = ""] - pub async fn claim( + pub fn claim( &self, dest: ::subxt::sp_core::crypto::AccountId32, ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature, @@ -17976,7 +17976,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -18011,7 +18011,7 @@ pub mod api { #[doc = ""] #[doc = "Total Complexity: O(1)"] #[doc = ""] - pub async fn mint_claim( + pub fn mint_claim( &self, who: runtime_types::polkadot_runtime_common::claims::EthereumAddress, value: ::core::primitive::u128, @@ -18036,7 +18036,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -18084,7 +18084,7 @@ pub mod api { #[doc = ""] #[doc = "Total Complexity: O(1)"] #[doc = ""] - pub async fn claim_attest( + pub fn claim_attest( &self, dest: ::subxt::sp_core::crypto::AccountId32, ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature, @@ -18102,7 +18102,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -18140,7 +18140,7 @@ pub mod api { #[doc = ""] #[doc = "Total Complexity: O(1)"] #[doc = ""] - pub async fn attest( + pub fn attest( &self, statement: ::std::vec::Vec<::core::primitive::u8>, ) -> Result< @@ -18156,7 +18156,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -18173,7 +18173,7 @@ pub mod api { Err(::subxt::MetadataError::IncompatibleMetadata.into()) } } - pub async fn move_claim( + pub fn move_claim( &self, old: runtime_types::polkadot_runtime_common::claims::EthereumAddress, new: runtime_types::polkadot_runtime_common::claims::EthereumAddress, @@ -18193,7 +18193,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -18319,7 +18319,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -18345,7 +18345,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -18368,7 +18368,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -18406,7 +18406,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -18436,7 +18436,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -18465,7 +18465,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -18492,7 +18492,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -18521,7 +18521,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -18548,7 +18548,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -18575,14 +18575,14 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn prefix( + pub fn prefix( &self, ) -> ::core::result::Result< ::std::vec::Vec<::core::primitive::u8>, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Claims", "Prefix")? == [ 151u8, 15u8, 166u8, 7u8, 98u8, 182u8, 188u8, 119u8, 175u8, @@ -18702,7 +18702,7 @@ pub mod api { #[doc = " - Reads: Vesting Storage, Balances Locks, [Sender Account]"] #[doc = " - Writes: Vesting Storage, Balances Locks, [Sender Account]"] #[doc = "# "] - pub async fn vest( + pub fn vest( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -18717,7 +18717,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -18749,7 +18749,7 @@ pub mod api { #[doc = " - Reads: Vesting Storage, Balances Locks, Target Account"] #[doc = " - Writes: Vesting Storage, Balances Locks, Target Account"] #[doc = "# "] - pub async fn vest_other( + pub fn vest_other( &self, target: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -18768,7 +18768,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -18802,7 +18802,7 @@ pub mod api { #[doc = " - Reads: Vesting Storage, Balances Locks, Target Account, [Sender Account]"] #[doc = " - Writes: Vesting Storage, Balances Locks, Target Account, [Sender Account]"] #[doc = "# "] - pub async fn vested_transfer( + pub fn vested_transfer( &self, target: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -18825,7 +18825,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -18860,7 +18860,7 @@ pub mod api { #[doc = " - Reads: Vesting Storage, Balances Locks, Target Account, Source Account"] #[doc = " - Writes: Vesting Storage, Balances Locks, Target Account, Source Account"] #[doc = "# "] - pub async fn force_vested_transfer( + pub fn force_vested_transfer( &self, source: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -18887,7 +18887,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -18929,7 +18929,7 @@ pub mod api { #[doc = ""] #[doc = "- `schedule1_index`: index of the first schedule to merge."] #[doc = "- `schedule2_index`: index of the second schedule to merge."] - pub async fn merge_schedules( + pub fn merge_schedules( &self, schedule1_index: ::core::primitive::u32, schedule2_index: ::core::primitive::u32, @@ -18946,7 +18946,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -19046,7 +19046,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -19073,7 +19073,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -19101,7 +19101,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -19133,12 +19133,12 @@ pub mod api { Self { client } } #[doc = " The minimum amount transferred to call `vested_transfer`."] - pub async fn min_vested_transfer( + pub fn min_vested_transfer( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Vesting", "MinVestedTransfer")? == [ 92u8, 250u8, 99u8, 224u8, 124u8, 3u8, 41u8, 238u8, 116u8, @@ -19156,12 +19156,12 @@ pub mod api { Err(::subxt::MetadataError::IncompatibleMetadata.into()) } } - pub async fn max_vesting_schedules( + pub fn max_vesting_schedules( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Vesting", "MaxVestingSchedules")? == [ 156u8, 82u8, 251u8, 182u8, 112u8, 167u8, 99u8, 73u8, 181u8, @@ -19262,7 +19262,7 @@ pub mod api { #[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] #[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] #[doc = "event is deposited."] - pub async fn batch( + pub fn batch( &self, calls: ::std::vec::Vec, ) -> Result< @@ -19278,7 +19278,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -19308,7 +19308,7 @@ pub mod api { #[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_."] - pub async fn as_derivative( + pub fn as_derivative( &self, index: ::core::primitive::u16, call: runtime_types::polkadot_runtime::Call, @@ -19325,7 +19325,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -19359,7 +19359,7 @@ pub mod api { #[doc = "# "] #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] #[doc = "# "] - pub async fn batch_all( + pub fn batch_all( &self, calls: ::std::vec::Vec, ) -> Result< @@ -19375,7 +19375,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -19402,7 +19402,7 @@ pub mod api { #[doc = "- One DB write (event)."] #[doc = "- Weight of derivative `call` execution + T::WeightInfo::dispatch_as()."] #[doc = "# "] - pub async fn dispatch_as( + pub fn dispatch_as( &self, as_origin: runtime_types::polkadot_runtime::OriginCaller, call: runtime_types::polkadot_runtime::Call, @@ -19419,7 +19419,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -19490,12 +19490,12 @@ pub mod api { Self { client } } #[doc = " The limit on the number of batched calls."] - pub async fn batched_calls_limit( + pub fn batched_calls_limit( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Utility", "batched_calls_limit")? == [ 230u8, 161u8, 6u8, 191u8, 162u8, 108u8, 149u8, 245u8, 68u8, @@ -19715,7 +19715,7 @@ pub mod api { #[doc = "- One storage mutation (codec `O(R)`)."] #[doc = "- One event."] #[doc = "# "] - pub async fn add_registrar( + pub fn add_registrar( &self, account: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -19731,7 +19731,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -19767,7 +19767,7 @@ pub mod api { #[doc = "- One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`)."] #[doc = "- One event."] #[doc = "# "] - pub async fn set_identity( + pub fn set_identity( &self, info: runtime_types::pallet_identity::types::IdentityInfo, ) -> Result< @@ -19783,7 +19783,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -19823,7 +19823,7 @@ pub mod api { #[doc = " - One storage write (codec complexity `O(S)`)."] #[doc = " - One storage-exists (`IdentityOf::contains_key`)."] #[doc = "# "] - pub async fn set_subs( + pub fn set_subs( &self, subs: ::std::vec::Vec<( ::subxt::sp_core::crypto::AccountId32, @@ -19842,7 +19842,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -19877,7 +19877,7 @@ pub mod api { #[doc = "- `2` storage reads and `S + 2` storage deletions."] #[doc = "- One event."] #[doc = "# "] - pub async fn clear_identity( + pub fn clear_identity( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -19892,7 +19892,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -19932,7 +19932,7 @@ pub mod api { #[doc = "- Storage: 1 read `O(R)`, 1 mutate `O(X + R)`."] #[doc = "- One event."] #[doc = "# "] - pub async fn request_judgement( + pub fn request_judgement( &self, reg_index: ::core::primitive::u32, max_fee: ::core::primitive::u128, @@ -19949,7 +19949,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -19983,7 +19983,7 @@ pub mod api { #[doc = "- One storage mutation `O(R + X)`."] #[doc = "- One event"] #[doc = "# "] - pub async fn cancel_request( + pub fn cancel_request( &self, reg_index: ::core::primitive::u32, ) -> Result< @@ -19999,7 +19999,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -20029,7 +20029,7 @@ pub mod api { #[doc = "- One storage mutation `O(R)`."] #[doc = "- Benchmark: 7.315 + R * 0.329 µs (min squares analysis)"] #[doc = "# "] - pub async fn set_fee( + pub fn set_fee( &self, index: ::core::primitive::u32, fee: ::core::primitive::u128, @@ -20046,7 +20046,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -20076,7 +20076,7 @@ pub mod api { #[doc = "- One storage mutation `O(R)`."] #[doc = "- Benchmark: 8.823 + R * 0.32 µs (min squares analysis)"] #[doc = "# "] - pub async fn set_account_id( + pub fn set_account_id( &self, index: ::core::primitive::u32, new: ::subxt::sp_core::crypto::AccountId32, @@ -20093,7 +20093,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -20123,7 +20123,7 @@ pub mod api { #[doc = "- One storage mutation `O(R)`."] #[doc = "- Benchmark: 7.464 + R * 0.325 µs (min squares analysis)"] #[doc = "# "] - pub async fn set_fields( + pub fn set_fields( &self, index: ::core::primitive::u32, fields: runtime_types::pallet_identity::types::BitFlags< @@ -20142,7 +20142,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -20178,7 +20178,7 @@ pub mod api { #[doc = "- Storage: 1 read `O(R)`, 1 mutate `O(R + X)`."] #[doc = "- One event."] #[doc = "# "] - pub async fn provide_judgement( + pub fn provide_judgement( &self, reg_index: ::core::primitive::u32, target: ::subxt::sp_runtime::MultiAddress< @@ -20201,7 +20201,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -20241,7 +20241,7 @@ pub mod api { #[doc = "- `S + 2` storage mutations."] #[doc = "- One event."] #[doc = "# "] - pub async fn kill_identity( + pub fn kill_identity( &self, target: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -20260,7 +20260,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -20284,7 +20284,7 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] - pub async fn add_sub( + pub fn add_sub( &self, sub: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -20304,7 +20304,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -20325,7 +20325,7 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] - pub async fn rename_sub( + pub fn rename_sub( &self, sub: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -20345,7 +20345,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -20369,7 +20369,7 @@ pub mod api { #[doc = ""] #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] #[doc = "sub identity of `sub`."] - pub async fn remove_sub( + pub fn remove_sub( &self, sub: ::subxt::sp_runtime::MultiAddress< ::subxt::sp_core::crypto::AccountId32, @@ -20388,7 +20388,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -20415,7 +20415,7 @@ pub mod api { #[doc = ""] #[doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] #[doc = "controller of an account is maliciously registered as a sub-account."] - pub async fn quit_sub( + pub fn quit_sub( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -20430,7 +20430,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -20649,7 +20649,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -20678,7 +20678,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -20709,7 +20709,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -20737,7 +20737,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -20773,7 +20773,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -20807,7 +20807,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -20843,7 +20843,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -20875,12 +20875,12 @@ pub mod api { Self { client } } #[doc = " The amount held on deposit for a registered identity"] - pub async fn basic_deposit( + pub fn basic_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Identity", "BasicDeposit")? == [ 240u8, 163u8, 226u8, 52u8, 199u8, 248u8, 206u8, 2u8, 38u8, @@ -20899,12 +20899,12 @@ pub mod api { } } #[doc = " The amount held on deposit per additional field for a registered identity."] - pub async fn field_deposit( + pub fn field_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Identity", "FieldDeposit")? == [ 165u8, 151u8, 74u8, 173u8, 28u8, 8u8, 195u8, 171u8, 159u8, @@ -20925,12 +20925,12 @@ pub mod api { #[doc = " The amount held on deposit for a registered subaccount. This should account for the fact"] #[doc = " that one storage item's value will increase by the size of an account ID, and there will"] #[doc = " be another trie item whose value is the size of an account ID plus 32 bytes."] - pub async fn sub_account_deposit( + pub fn sub_account_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Identity", "SubAccountDeposit")? == [ 132u8, 115u8, 135u8, 88u8, 142u8, 44u8, 215u8, 122u8, 22u8, @@ -20949,12 +20949,12 @@ pub mod api { } } #[doc = " The maximum number of sub-accounts allowed per identified account."] - pub async fn max_sub_accounts( + pub fn max_sub_accounts( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Identity", "MaxSubAccounts")? == [ 75u8, 1u8, 223u8, 132u8, 121u8, 0u8, 145u8, 246u8, 118u8, @@ -20974,12 +20974,12 @@ pub mod api { } #[doc = " Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O"] #[doc = " required to access an identity, but can be pretty high."] - pub async fn max_additional_fields( + pub fn max_additional_fields( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Identity", "MaxAdditionalFields")? == [ 52u8, 246u8, 245u8, 172u8, 242u8, 40u8, 79u8, 11u8, 106u8, @@ -20999,12 +20999,12 @@ pub mod api { } #[doc = " Maxmimum number of registrars allowed in the system. Needed to bound the complexity"] #[doc = " of, e.g., updating judgements."] - pub async fn max_registrars( + pub fn max_registrars( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Identity", "MaxRegistrars")? == [ 172u8, 101u8, 183u8, 243u8, 249u8, 249u8, 95u8, 104u8, 100u8, @@ -21166,7 +21166,7 @@ pub mod api { #[doc = "# "] #[doc = "Weight is a function of the number of proxies the user has (P)."] #[doc = "# "] - pub async fn proxy( + pub fn proxy( &self, real: ::subxt::sp_core::crypto::AccountId32, force_proxy_type: ::core::option::Option< @@ -21186,7 +21186,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -21220,7 +21220,7 @@ pub mod api { #[doc = "# "] #[doc = "Weight is a function of the number of proxies the user has (P)."] #[doc = "# "] - pub async fn add_proxy( + pub fn add_proxy( &self, delegate: ::subxt::sp_core::crypto::AccountId32, proxy_type: runtime_types::polkadot_runtime::ProxyType, @@ -21238,7 +21238,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -21270,7 +21270,7 @@ pub mod api { #[doc = "# "] #[doc = "Weight is a function of the number of proxies the user has (P)."] #[doc = "# "] - pub async fn remove_proxy( + pub fn remove_proxy( &self, delegate: ::subxt::sp_core::crypto::AccountId32, proxy_type: runtime_types::polkadot_runtime::ProxyType, @@ -21288,7 +21288,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -21319,7 +21319,7 @@ pub mod api { #[doc = "# "] #[doc = "Weight is a function of the number of proxies the user has (P)."] #[doc = "# "] - pub async fn remove_proxies( + pub fn remove_proxies( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -21334,7 +21334,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -21374,7 +21374,7 @@ pub mod api { #[doc = "Weight is a function of the number of proxies the user has (P)."] #[doc = "# "] #[doc = "TODO: Might be over counting 1 read"] - pub async fn anonymous( + pub fn anonymous( &self, proxy_type: runtime_types::polkadot_runtime::ProxyType, delay: ::core::primitive::u32, @@ -21392,7 +21392,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -21433,7 +21433,7 @@ pub mod api { #[doc = "# "] #[doc = "Weight is a function of the number of proxies the user has (P)."] #[doc = "# "] - pub async fn kill_anonymous( + pub fn kill_anonymous( &self, spawner: ::subxt::sp_core::crypto::AccountId32, proxy_type: runtime_types::polkadot_runtime::ProxyType, @@ -21453,7 +21453,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -21497,7 +21497,7 @@ pub mod api { #[doc = "- A: the number of announcements made."] #[doc = "- P: the number of proxies the user has."] #[doc = "# "] - pub async fn announce( + pub fn announce( &self, real: ::subxt::sp_core::crypto::AccountId32, call_hash: ::subxt::sp_core::H256, @@ -21514,7 +21514,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -21547,7 +21547,7 @@ pub mod api { #[doc = "- A: the number of announcements made."] #[doc = "- P: the number of proxies the user has."] #[doc = "# "] - pub async fn remove_announcement( + pub fn remove_announcement( &self, real: ::subxt::sp_core::crypto::AccountId32, call_hash: ::subxt::sp_core::H256, @@ -21564,7 +21564,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -21597,7 +21597,7 @@ pub mod api { #[doc = "- A: the number of announcements made."] #[doc = "- P: the number of proxies the user has."] #[doc = "# "] - pub async fn reject_announcement( + pub fn reject_announcement( &self, delegate: ::subxt::sp_core::crypto::AccountId32, call_hash: ::subxt::sp_core::H256, @@ -21614,7 +21614,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -21651,7 +21651,7 @@ pub mod api { #[doc = "- A: the number of announcements made."] #[doc = "- P: the number of proxies the user has."] #[doc = "# "] - pub async fn proxy_announced( + pub fn proxy_announced( &self, delegate: ::subxt::sp_core::crypto::AccountId32, real: ::subxt::sp_core::crypto::AccountId32, @@ -21672,7 +21672,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -21830,7 +21830,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -21861,7 +21861,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -21897,7 +21897,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -21927,7 +21927,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -21958,12 +21958,12 @@ pub mod api { #[doc = ""] #[doc = " This is held for an additional storage item whose value size is"] #[doc = " `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes."] - pub async fn proxy_deposit_base( + pub fn proxy_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Proxy", "ProxyDepositBase")? == [ 103u8, 165u8, 87u8, 140u8, 136u8, 233u8, 165u8, 158u8, 117u8, @@ -21986,12 +21986,12 @@ pub mod api { #[doc = " This is held for adding 32 bytes plus an instance of `ProxyType` more into a"] #[doc = " pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take"] #[doc = " into account `32 + proxy_type.encode().len()` bytes of data."] - pub async fn proxy_deposit_factor( + pub fn proxy_deposit_factor( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Proxy", "ProxyDepositFactor")? == [ 163u8, 148u8, 34u8, 63u8, 153u8, 113u8, 173u8, 220u8, 242u8, @@ -22010,12 +22010,12 @@ pub mod api { } } #[doc = " The maximum amount of proxies allowed for a single account."] - pub async fn max_proxies( + pub fn max_proxies( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Proxy", "MaxProxies")? == [ 249u8, 153u8, 224u8, 128u8, 161u8, 3u8, 39u8, 192u8, 120u8, @@ -22034,12 +22034,12 @@ pub mod api { } } #[doc = " The maximum amount of time-delayed announcements that are allowed to be pending."] - pub async fn max_pending( + pub fn max_pending( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Proxy", "MaxPending")? == [ 88u8, 148u8, 146u8, 152u8, 151u8, 208u8, 255u8, 193u8, 239u8, @@ -22061,12 +22061,12 @@ pub mod api { #[doc = ""] #[doc = " This is held when a new storage item holding a `Balance` is created (typically 16"] #[doc = " bytes)."] - pub async fn announcement_deposit_base( + pub fn announcement_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Proxy", "AnnouncementDepositBase")? == [ 167u8, 193u8, 39u8, 36u8, 61u8, 75u8, 122u8, 88u8, 86u8, @@ -22088,12 +22088,12 @@ pub mod api { #[doc = ""] #[doc = " This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)"] #[doc = " into a pre-existing storage value."] - pub async fn announcement_deposit_factor( + pub fn announcement_deposit_factor( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Proxy", "AnnouncementDepositFactor")? == [ 234u8, 50u8, 92u8, 12u8, 170u8, 230u8, 151u8, 220u8, 202u8, @@ -22211,7 +22211,7 @@ pub mod api { #[doc = "- DB Weight: None"] #[doc = "- Plus Call Weight"] #[doc = "# "] - pub async fn as_multi_threshold_1( + pub fn as_multi_threshold_1( &self, other_signatories: ::std::vec::Vec< ::subxt::sp_core::crypto::AccountId32, @@ -22230,7 +22230,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -22295,7 +22295,7 @@ pub mod api { #[doc = " - Writes: Multisig Storage, [Caller Account], Calls (if `store_call`)"] #[doc = "- Plus Call Weight"] #[doc = "# "] - pub async fn as_multi( + pub fn as_multi( &self, threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec< @@ -22322,7 +22322,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -22381,7 +22381,7 @@ pub mod api { #[doc = " - Read: Multisig Storage, [Caller Account]"] #[doc = " - Write: Multisig Storage, [Caller Account]"] #[doc = "# "] - pub async fn approve_as_multi( + pub fn approve_as_multi( &self, threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec< @@ -22405,7 +22405,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -22454,7 +22454,7 @@ pub mod api { #[doc = " - Read: Multisig Storage, [Caller Account], Refund Account, Calls"] #[doc = " - Write: Multisig Storage, [Caller Account], Refund Account, Calls"] #[doc = "# "] - pub async fn cancel_as_multi( + pub fn cancel_as_multi( &self, threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec< @@ -22477,7 +22477,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -22625,7 +22625,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -22652,7 +22652,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -22682,7 +22682,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -22708,7 +22708,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -22741,12 +22741,12 @@ pub mod api { #[doc = " This is held for an additional storage item whose value size is"] #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] #[doc = " `32 + sizeof(AccountId)` bytes."] - pub async fn deposit_base( + pub fn deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Multisig", "DepositBase")? == [ 184u8, 205u8, 30u8, 80u8, 201u8, 56u8, 94u8, 154u8, 82u8, @@ -22767,12 +22767,12 @@ pub mod api { #[doc = " The amount of currency needed per unit threshold when creating a multisig execution."] #[doc = ""] #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."] - pub async fn deposit_factor( + pub fn deposit_factor( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Multisig", "DepositFactor")? == [ 226u8, 132u8, 1u8, 18u8, 51u8, 22u8, 235u8, 140u8, 210u8, @@ -22791,12 +22791,12 @@ pub mod api { } } #[doc = " The maximum amount of signatories allowed in the multisig."] - pub async fn max_signatories( + pub fn max_signatories( &self, ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Multisig", "MaxSignatories")? == [ 139u8, 36u8, 140u8, 198u8, 176u8, 106u8, 89u8, 194u8, 33u8, @@ -22948,7 +22948,7 @@ pub mod api { #[doc = "- `fee`: The curator fee."] #[doc = "- `value`: The total payment amount of this bounty, curator fee included."] #[doc = "- `description`: The description of this bounty."] - pub async fn propose_bounty( + pub fn propose_bounty( &self, value: ::core::primitive::u128, description: ::std::vec::Vec<::core::primitive::u8>, @@ -22965,7 +22965,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -22990,7 +22990,7 @@ pub mod api { #[doc = "# "] #[doc = "- O(1)."] #[doc = "# "] - pub async fn approve_bounty( + pub fn approve_bounty( &self, bounty_id: ::core::primitive::u32, ) -> Result< @@ -23006,7 +23006,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -23030,7 +23030,7 @@ pub mod api { #[doc = "# "] #[doc = "- O(1)."] #[doc = "# "] - pub async fn propose_curator( + pub fn propose_curator( &self, bounty_id: ::core::primitive::u32, curator: ::subxt::sp_runtime::MultiAddress< @@ -23051,7 +23051,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -23090,7 +23090,7 @@ pub mod api { #[doc = "# "] #[doc = "- O(1)."] #[doc = "# "] - pub async fn unassign_curator( + pub fn unassign_curator( &self, bounty_id: ::core::primitive::u32, ) -> Result< @@ -23106,7 +23106,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -23131,7 +23131,7 @@ pub mod api { #[doc = "# "] #[doc = "- O(1)."] #[doc = "# "] - pub async fn accept_curator( + pub fn accept_curator( &self, bounty_id: ::core::primitive::u32, ) -> Result< @@ -23147,7 +23147,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -23175,7 +23175,7 @@ pub mod api { #[doc = "# "] #[doc = "- O(1)."] #[doc = "# "] - pub async fn award_bounty( + pub fn award_bounty( &self, bounty_id: ::core::primitive::u32, beneficiary: ::subxt::sp_runtime::MultiAddress< @@ -23195,7 +23195,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -23224,7 +23224,7 @@ pub mod api { #[doc = "# "] #[doc = "- O(1)."] #[doc = "# "] - pub async fn claim_bounty( + pub fn claim_bounty( &self, bounty_id: ::core::primitive::u32, ) -> Result< @@ -23240,7 +23240,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -23267,7 +23267,7 @@ pub mod api { #[doc = "# "] #[doc = "- O(1)."] #[doc = "# "] - pub async fn close_bounty( + pub fn close_bounty( &self, bounty_id: ::core::primitive::u32, ) -> Result< @@ -23283,7 +23283,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -23310,7 +23310,7 @@ pub mod api { #[doc = "# "] #[doc = "- O(1)."] #[doc = "# "] - pub async fn extend_bounty_expiry( + pub fn extend_bounty_expiry( &self, bounty_id: ::core::primitive::u32, remark: ::std::vec::Vec<::core::primitive::u8>, @@ -23327,7 +23327,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -23506,7 +23506,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -23543,7 +23543,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -23570,7 +23570,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -23601,7 +23601,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -23628,7 +23628,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -23656,7 +23656,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -23688,12 +23688,12 @@ pub mod api { Self { client } } #[doc = " The amount held on deposit for placing a bounty proposal."] - pub async fn bounty_deposit_base( + pub fn bounty_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Bounties", "BountyDepositBase")? == [ 239u8, 17u8, 86u8, 242u8, 39u8, 104u8, 7u8, 123u8, 210u8, @@ -23712,12 +23712,12 @@ pub mod api { } } #[doc = " The delay period for which a bounty beneficiary need to wait before claim the payout."] - pub async fn bounty_deposit_payout_delay( + pub fn bounty_deposit_payout_delay( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Bounties", "BountyDepositPayoutDelay")? == [ 128u8, 86u8, 220u8, 124u8, 89u8, 11u8, 42u8, 36u8, 116u8, @@ -23736,12 +23736,12 @@ pub mod api { } } #[doc = " Bounty duration in blocks."] - pub async fn bounty_update_period( + pub fn bounty_update_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Bounties", "BountyUpdatePeriod")? == [ 10u8, 209u8, 160u8, 42u8, 47u8, 204u8, 58u8, 28u8, 137u8, @@ -23763,14 +23763,14 @@ pub mod api { #[doc = ""] #[doc = " This deposit has optional upper and lower bounds with `CuratorDepositMax` and"] #[doc = " `CuratorDepositMin`."] - pub async fn curator_deposit_multiplier( + pub fn curator_deposit_multiplier( &self, ) -> ::core::result::Result< runtime_types::sp_arithmetic::per_things::Permill, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Bounties", "CuratorDepositMultiplier")? == [ 119u8, 126u8, 117u8, 41u8, 6u8, 165u8, 141u8, 28u8, 50u8, @@ -23789,14 +23789,14 @@ pub mod api { } } #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] - pub async fn curator_deposit_max( + pub fn curator_deposit_max( &self, ) -> ::core::result::Result< ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Bounties", "CuratorDepositMax")? == [ 197u8, 116u8, 193u8, 36u8, 38u8, 161u8, 84u8, 35u8, 214u8, @@ -23815,14 +23815,14 @@ pub mod api { } } #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] - pub async fn curator_deposit_min( + pub fn curator_deposit_min( &self, ) -> ::core::result::Result< ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Bounties", "CuratorDepositMin")? == [ 103u8, 117u8, 57u8, 115u8, 148u8, 210u8, 125u8, 147u8, 240u8, @@ -23841,12 +23841,12 @@ pub mod api { } } #[doc = " Minimum value for a bounty."] - pub async fn bounty_value_minimum( + pub fn bounty_value_minimum( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Bounties", "BountyValueMinimum")? == [ 151u8, 218u8, 51u8, 10u8, 253u8, 91u8, 115u8, 68u8, 30u8, @@ -23865,12 +23865,12 @@ pub mod api { } } #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] - pub async fn data_deposit_per_byte( + pub fn data_deposit_per_byte( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Bounties", "DataDepositPerByte")? == [ 70u8, 208u8, 250u8, 66u8, 143u8, 90u8, 112u8, 229u8, 138u8, @@ -23891,12 +23891,12 @@ pub mod api { #[doc = " Maximum acceptable reason length."] #[doc = ""] #[doc = " Benchmarks depend on this value, be sure to update weights file when changing this value"] - pub async fn maximum_reason_length( + pub fn maximum_reason_length( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Bounties", "MaximumReasonLength")? == [ 137u8, 135u8, 60u8, 208u8, 169u8, 200u8, 219u8, 180u8, 48u8, @@ -24050,7 +24050,7 @@ pub mod api { #[doc = "- `parent_bounty_id`: Index of parent bounty for which child-bounty is being added."] #[doc = "- `value`: Value for executing the proposal."] #[doc = "- `description`: Text description for the child-bounty."] - pub async fn add_child_bounty( + pub fn add_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, value: ::core::primitive::u128, @@ -24068,7 +24068,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -24104,7 +24104,7 @@ pub mod api { #[doc = "- `child_bounty_id`: Index of child bounty."] #[doc = "- `curator`: Address of child-bounty curator."] #[doc = "- `fee`: payment fee to child-bounty curator for execution."] - pub async fn propose_curator( + pub fn propose_curator( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, @@ -24126,7 +24126,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -24167,7 +24167,7 @@ pub mod api { #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] - pub async fn accept_curator( + pub fn accept_curator( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, @@ -24184,7 +24184,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -24238,7 +24238,7 @@ pub mod api { #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] - pub async fn unassign_curator( + pub fn unassign_curator( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, @@ -24255,7 +24255,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -24292,7 +24292,7 @@ pub mod api { #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] #[doc = "- `beneficiary`: Beneficiary account."] - pub async fn award_child_bounty( + pub fn award_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, @@ -24313,7 +24313,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -24350,7 +24350,7 @@ pub mod api { #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] - pub async fn claim_child_bounty( + pub fn claim_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, @@ -24367,7 +24367,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -24409,7 +24409,7 @@ pub mod api { #[doc = ""] #[doc = "- `parent_bounty_id`: Index of parent bounty."] #[doc = "- `child_bounty_id`: Index of child bounty."] - pub async fn close_child_bounty( + pub fn close_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, child_bounty_id: ::core::primitive::u32, @@ -24426,7 +24426,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -24585,7 +24585,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -24615,7 +24615,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -24646,7 +24646,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -24680,7 +24680,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -24707,7 +24707,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -24738,7 +24738,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -24765,7 +24765,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -24790,7 +24790,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -24820,7 +24820,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -24848,12 +24848,12 @@ pub mod api { Self { client } } #[doc = " Maximum number of child-bounties that can be added to a parent bounty."] - pub async fn max_active_child_bounty_count( + pub fn max_active_child_bounty_count( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata .constant_hash("ChildBounties", "MaxActiveChildBountyCount")? == [ @@ -24873,12 +24873,12 @@ pub mod api { } } #[doc = " Minimum value for a child-bounty."] - pub async fn child_bounty_value_minimum( + pub fn child_bounty_value_minimum( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata .constant_hash("ChildBounties", "ChildBountyValueMinimum")? == [ @@ -24999,7 +24999,7 @@ pub mod api { #[doc = "- DbReads: `Reasons`, `Tips`"] #[doc = "- DbWrites: `Reasons`, `Tips`"] #[doc = "# "] - pub async fn report_awesome( + pub fn report_awesome( &self, reason: ::std::vec::Vec<::core::primitive::u8>, who: ::subxt::sp_core::crypto::AccountId32, @@ -25016,7 +25016,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -25052,7 +25052,7 @@ pub mod api { #[doc = "- DbReads: `Tips`, `origin account`"] #[doc = "- DbWrites: `Reasons`, `Tips`, `origin account`"] #[doc = "# "] - pub async fn retract_tip( + pub fn retract_tip( &self, hash: ::subxt::sp_core::H256, ) -> Result< @@ -25068,7 +25068,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -25107,7 +25107,7 @@ pub mod api { #[doc = "- DbReads: `Tippers`, `Reasons`"] #[doc = "- DbWrites: `Reasons`, `Tips`"] #[doc = "# "] - pub async fn tip_new( + pub fn tip_new( &self, reason: ::std::vec::Vec<::core::primitive::u8>, who: ::subxt::sp_core::crypto::AccountId32, @@ -25125,7 +25125,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -25170,7 +25170,7 @@ pub mod api { #[doc = "- DbReads: `Tippers`, `Tips`"] #[doc = "- DbWrites: `Tips`"] #[doc = "# "] - pub async fn tip( + pub fn tip( &self, hash: ::subxt::sp_core::H256, tip_value: ::core::primitive::u128, @@ -25187,7 +25187,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -25220,7 +25220,7 @@ pub mod api { #[doc = "- DbReads: `Tips`, `Tippers`, `tip finder`"] #[doc = "- DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`"] #[doc = "# "] - pub async fn close_tip( + pub fn close_tip( &self, hash: ::subxt::sp_core::H256, ) -> Result< @@ -25236,7 +25236,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -25265,7 +25265,7 @@ pub mod api { #[doc = " `T` is charged as upper bound given by `ContainsLengthBound`."] #[doc = " The actual cost depends on the implementation of `T::Tippers`."] #[doc = "# "] - pub async fn slash_tip( + pub fn slash_tip( &self, hash: ::subxt::sp_core::H256, ) -> Result< @@ -25281,7 +25281,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -25411,7 +25411,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -25440,7 +25440,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -25468,7 +25468,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -25496,7 +25496,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -25526,12 +25526,12 @@ pub mod api { #[doc = " Maximum acceptable reason length."] #[doc = ""] #[doc = " Benchmarks depend on this value, be sure to update weights file when changing this value"] - pub async fn maximum_reason_length( + pub fn maximum_reason_length( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Tips", "MaximumReasonLength")? == [ 137u8, 135u8, 60u8, 208u8, 169u8, 200u8, 219u8, 180u8, 48u8, @@ -25550,12 +25550,12 @@ pub mod api { } } #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] - pub async fn data_deposit_per_byte( + pub fn data_deposit_per_byte( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Tips", "DataDepositPerByte")? == [ 70u8, 208u8, 250u8, 66u8, 143u8, 90u8, 112u8, 229u8, 138u8, @@ -25574,12 +25574,12 @@ pub mod api { } } #[doc = " The period for which a tip remains open after is has achieved threshold tippers."] - pub async fn tip_countdown( + pub fn tip_countdown( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Tips", "TipCountdown")? == [ 77u8, 181u8, 253u8, 112u8, 168u8, 146u8, 251u8, 28u8, 30u8, @@ -25598,14 +25598,14 @@ pub mod api { } } #[doc = " The percent of the final tip which goes to the original reporter of the tip."] - pub async fn tip_finders_fee( + pub fn tip_finders_fee( &self, ) -> ::core::result::Result< runtime_types::sp_arithmetic::per_things::Percent, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Tips", "TipFindersFee")? == [ 27u8, 137u8, 241u8, 28u8, 69u8, 248u8, 212u8, 12u8, 176u8, @@ -25624,12 +25624,12 @@ pub mod api { } } #[doc = " The amount held on deposit for placing a tip report."] - pub async fn tip_report_deposit_base( + pub fn tip_report_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Tips", "TipReportDepositBase")? == [ 101u8, 101u8, 22u8, 17u8, 169u8, 8u8, 182u8, 88u8, 11u8, @@ -25740,7 +25740,7 @@ pub mod api { #[doc = "putting their authoring reward at risk."] #[doc = ""] #[doc = "No deposit or reward is associated with this submission."] - pub async fn submit_unsigned( + pub fn submit_unsigned( &self, raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 >, witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, @@ -25757,7 +25757,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -25782,7 +25782,7 @@ pub mod api { #[doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] #[doc = ""] #[doc = "This check can be turned off by setting the value to `None`."] - pub async fn set_minimum_untrusted_score( + pub fn set_minimum_untrusted_score( &self, maybe_next_score: ::core::option::Option< runtime_types::sp_npos_elections::ElectionScore, @@ -25800,7 +25800,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -25825,7 +25825,7 @@ pub mod api { #[doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] #[doc = "feasibility check itself can in principle cause the election process to fail (due to"] #[doc = "memory/weight constrains)."] - pub async fn set_emergency_election_result( + pub fn set_emergency_election_result( &self, supports: ::std::vec::Vec<( ::subxt::sp_core::crypto::AccountId32, @@ -25846,7 +25846,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -25872,7 +25872,7 @@ pub mod api { #[doc = ""] #[doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] #[doc = "might be rewarded, slashed, or get all or a part of the deposit back."] - pub async fn submit( + pub fn submit( &self, raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 >, ) -> Result< @@ -25888,7 +25888,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -25911,7 +25911,7 @@ pub mod api { #[doc = ""] #[doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] #[doc = "calling [`Call::set_emergency_election_result`]."] - pub async fn governance_fallback( + pub fn governance_fallback( &self, maybe_max_voters: ::core::option::Option<::core::primitive::u32>, maybe_max_targets: ::core::option::Option<::core::primitive::u32>, @@ -25928,7 +25928,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -26152,7 +26152,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -26184,7 +26184,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -26207,7 +26207,7 @@ pub mod api { #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] pub async fn queued_solution (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: ReadySolution < :: subxt :: sp_core :: crypto :: AccountId32 > > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -26229,7 +26229,7 @@ pub mod api { #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] pub async fn snapshot (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -26258,7 +26258,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -26280,7 +26280,7 @@ pub mod api { #[doc = " Only exists when [`Snapshot`] is present."] pub async fn snapshot_metadata (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -26313,7 +26313,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -26341,7 +26341,7 @@ pub mod api { #[doc = " them one at a time instead of reading and decoding all of them at once."] pub async fn signed_submission_indices (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: bounded_btree_map :: BoundedBTreeMap < runtime_types :: sp_npos_elections :: ElectionScore , :: core :: primitive :: u32 > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -26370,7 +26370,7 @@ pub mod api { #[doc = " affect; we shouldn't need a cryptographically secure hasher."] pub async fn signed_submissions_map (& self , _0 : & :: core :: primitive :: u32 , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: sp_core :: crypto :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -26403,7 +26403,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -26434,7 +26434,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -26463,12 +26463,12 @@ pub mod api { Self { client } } #[doc = " Duration of the unsigned phase."] - pub async fn unsigned_phase( + pub fn unsigned_phase( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata .constant_hash("ElectionProviderMultiPhase", "UnsignedPhase")? == [ @@ -26488,12 +26488,12 @@ pub mod api { } } #[doc = " Duration of the signed phase."] - pub async fn signed_phase( + pub fn signed_phase( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata .constant_hash("ElectionProviderMultiPhase", "SignedPhase")? == [ @@ -26514,14 +26514,14 @@ pub mod api { } #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] #[doc = " \"better\" (in any phase)."] - pub async fn solution_improvement_threshold( + pub fn solution_improvement_threshold( &self, ) -> ::core::result::Result< runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash( "ElectionProviderMultiPhase", "SolutionImprovementThreshold", @@ -26544,12 +26544,12 @@ pub mod api { #[doc = ""] #[doc = " For example, if it is 5, that means that at least 5 blocks will elapse between attempts"] #[doc = " to submit the worker's solution."] - pub async fn offchain_repeat( + pub fn offchain_repeat( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata .constant_hash("ElectionProviderMultiPhase", "OffchainRepeat")? == [ @@ -26569,12 +26569,12 @@ pub mod api { } } #[doc = " The priority of the unsigned transaction submitted in the unsigned-phase"] - pub async fn miner_tx_priority( + pub fn miner_tx_priority( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata .constant_hash("ElectionProviderMultiPhase", "MinerTxPriority")? == [ @@ -26597,12 +26597,12 @@ pub mod api { #[doc = ""] #[doc = " The miner will ensure that the total weight of the unsigned solution will not exceed"] #[doc = " this value, based on [`WeightInfo::submit_unsigned`]."] - pub async fn miner_max_weight( + pub fn miner_max_weight( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata .constant_hash("ElectionProviderMultiPhase", "MinerMaxWeight")? == [ @@ -26628,12 +26628,12 @@ pub mod api { #[doc = " update this value during an election, you _must_ ensure that"] #[doc = " `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,"] #[doc = " attempts to submit new solutions may cause a runtime panic."] - pub async fn signed_max_submissions( + pub fn signed_max_submissions( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash( "ElectionProviderMultiPhase", "SignedMaxSubmissions", @@ -26655,12 +26655,12 @@ pub mod api { #[doc = " Maximum weight of a signed solution."] #[doc = ""] #[doc = " This should probably be similar to [`Config::MinerMaxWeight`]."] - pub async fn signed_max_weight( + pub fn signed_max_weight( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata .constant_hash("ElectionProviderMultiPhase", "SignedMaxWeight")? == [ @@ -26680,12 +26680,12 @@ pub mod api { } } #[doc = " Base reward for a signed solution"] - pub async fn signed_reward_base( + pub fn signed_reward_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata .constant_hash("ElectionProviderMultiPhase", "SignedRewardBase")? == [ @@ -26705,12 +26705,12 @@ pub mod api { } } #[doc = " Base deposit for a signed solution."] - pub async fn signed_deposit_base( + pub fn signed_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash( "ElectionProviderMultiPhase", "SignedDepositBase", @@ -26730,12 +26730,12 @@ pub mod api { } } #[doc = " Per-byte deposit for a signed solution."] - pub async fn signed_deposit_byte( + pub fn signed_deposit_byte( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash( "ElectionProviderMultiPhase", "SignedDepositByte", @@ -26755,12 +26755,12 @@ pub mod api { } } #[doc = " Per-weight deposit for a signed solution."] - pub async fn signed_deposit_weight( + pub fn signed_deposit_weight( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash( "ElectionProviderMultiPhase", "SignedDepositWeight", @@ -26782,12 +26782,12 @@ pub mod api { #[doc = " The maximum number of electing voters to put in the snapshot. At the moment, snapshots"] #[doc = " are only over a single block, but once multi-block elections are introduced they will"] #[doc = " take place over multiple blocks."] - pub async fn max_electing_voters( + pub fn max_electing_voters( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash( "ElectionProviderMultiPhase", "MaxElectingVoters", @@ -26807,12 +26807,12 @@ pub mod api { } } #[doc = " The maximum number of electable targets to put in the snapshot."] - pub async fn max_electable_targets( + pub fn max_electable_targets( &self, ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash( "ElectionProviderMultiPhase", "MaxElectableTargets", @@ -26835,12 +26835,12 @@ pub mod api { #[doc = ""] #[doc = " The miner will ensure that the total length of the unsigned solution will not exceed"] #[doc = " this value."] - pub async fn miner_max_length( + pub fn miner_max_length( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata .constant_hash("ElectionProviderMultiPhase", "MinerMaxLength")? == [ @@ -26912,7 +26912,7 @@ pub mod api { #[doc = ""] #[doc = "Will never return an error; if `dislocated` does not exist or doesn't need a rebag, then"] #[doc = "it is a noop and fees are still collected from `origin`."] - pub async fn rebag( + pub fn rebag( &self, dislocated: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -26928,7 +26928,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -26953,7 +26953,7 @@ pub mod api { #[doc = "Only works if"] #[doc = "- both nodes are within the same bag,"] #[doc = "- and `origin` has a greater `Score` than `lighter`."] - pub async fn put_in_front_of( + pub fn put_in_front_of( &self, lighter: ::subxt::sp_core::crypto::AccountId32, ) -> Result< @@ -26969,7 +26969,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -27058,7 +27058,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -27087,7 +27087,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -27111,7 +27111,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -27144,7 +27144,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -27173,7 +27173,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -27243,14 +27243,14 @@ pub mod api { #[doc = ""] #[doc = " In the event that this list ever changes, a copy of the old bags list must be retained."] #[doc = " With that `List::migrate` can be called, which will perform the appropriate migration."] - pub async fn bag_thresholds( + pub fn bag_thresholds( &self, ) -> ::core::result::Result< ::std::vec::Vec<::core::primitive::u64>, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("BagsList", "BagThresholds")? == [ 95u8, 68u8, 224u8, 175u8, 149u8, 202u8, 192u8, 181u8, 221u8, @@ -27872,7 +27872,7 @@ pub mod api { } } #[doc = "Set the validation upgrade cooldown."] - pub async fn set_validation_upgrade_cooldown( + pub fn set_validation_upgrade_cooldown( &self, new: ::core::primitive::u32, ) -> Result< @@ -27888,7 +27888,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -27906,7 +27906,7 @@ pub mod api { } } #[doc = "Set the validation upgrade delay."] - pub async fn set_validation_upgrade_delay( + pub fn set_validation_upgrade_delay( &self, new: ::core::primitive::u32, ) -> Result< @@ -27922,7 +27922,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -27940,7 +27940,7 @@ pub mod api { } } #[doc = "Set the acceptance period for an included candidate."] - pub async fn set_code_retention_period( + pub fn set_code_retention_period( &self, new: ::core::primitive::u32, ) -> Result< @@ -27956,7 +27956,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -27974,7 +27974,7 @@ pub mod api { } } #[doc = "Set the max validation code size for incoming upgrades."] - pub async fn set_max_code_size( + pub fn set_max_code_size( &self, new: ::core::primitive::u32, ) -> Result< @@ -27990,7 +27990,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28008,7 +28008,7 @@ pub mod api { } } #[doc = "Set the max POV block size for incoming upgrades."] - pub async fn set_max_pov_size( + pub fn set_max_pov_size( &self, new: ::core::primitive::u32, ) -> Result< @@ -28024,7 +28024,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28042,7 +28042,7 @@ pub mod api { } } #[doc = "Set the max head data size for paras."] - pub async fn set_max_head_data_size( + pub fn set_max_head_data_size( &self, new: ::core::primitive::u32, ) -> Result< @@ -28058,7 +28058,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28076,7 +28076,7 @@ pub mod api { } } #[doc = "Set the number of parathread execution cores."] - pub async fn set_parathread_cores( + pub fn set_parathread_cores( &self, new: ::core::primitive::u32, ) -> Result< @@ -28092,7 +28092,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28110,7 +28110,7 @@ pub mod api { } } #[doc = "Set the number of retries for a particular parathread."] - pub async fn set_parathread_retries( + pub fn set_parathread_retries( &self, new: ::core::primitive::u32, ) -> Result< @@ -28126,7 +28126,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28144,7 +28144,7 @@ pub mod api { } } #[doc = "Set the parachain validator-group rotation frequency"] - pub async fn set_group_rotation_frequency( + pub fn set_group_rotation_frequency( &self, new: ::core::primitive::u32, ) -> Result< @@ -28160,7 +28160,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28178,7 +28178,7 @@ pub mod api { } } #[doc = "Set the availability period for parachains."] - pub async fn set_chain_availability_period( + pub fn set_chain_availability_period( &self, new: ::core::primitive::u32, ) -> Result< @@ -28194,7 +28194,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28212,7 +28212,7 @@ pub mod api { } } #[doc = "Set the availability period for parathreads."] - pub async fn set_thread_availability_period( + pub fn set_thread_availability_period( &self, new: ::core::primitive::u32, ) -> Result< @@ -28228,7 +28228,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28246,7 +28246,7 @@ pub mod api { } } #[doc = "Set the scheduling lookahead, in expected number of blocks at peak throughput."] - pub async fn set_scheduling_lookahead( + pub fn set_scheduling_lookahead( &self, new: ::core::primitive::u32, ) -> Result< @@ -28262,7 +28262,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28280,7 +28280,7 @@ pub mod api { } } #[doc = "Set the maximum number of validators to assign to any core."] - pub async fn set_max_validators_per_core( + pub fn set_max_validators_per_core( &self, new: ::core::option::Option<::core::primitive::u32>, ) -> Result< @@ -28296,7 +28296,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28314,7 +28314,7 @@ pub mod api { } } #[doc = "Set the maximum number of validators to use in parachain consensus."] - pub async fn set_max_validators( + pub fn set_max_validators( &self, new: ::core::option::Option<::core::primitive::u32>, ) -> Result< @@ -28330,7 +28330,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28348,7 +28348,7 @@ pub mod api { } } #[doc = "Set the dispute period, in number of sessions to keep for disputes."] - pub async fn set_dispute_period( + pub fn set_dispute_period( &self, new: ::core::primitive::u32, ) -> Result< @@ -28364,7 +28364,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28382,7 +28382,7 @@ pub mod api { } } #[doc = "Set the dispute post conclusion acceptance period."] - pub async fn set_dispute_post_conclusion_acceptance_period( + pub fn set_dispute_post_conclusion_acceptance_period( &self, new: ::core::primitive::u32, ) -> Result< @@ -28398,7 +28398,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata .call_hash::()? }; @@ -28417,7 +28417,7 @@ pub mod api { } } #[doc = "Set the maximum number of dispute spam slots."] - pub async fn set_dispute_max_spam_slots( + pub fn set_dispute_max_spam_slots( &self, new: ::core::primitive::u32, ) -> Result< @@ -28433,7 +28433,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28451,7 +28451,7 @@ pub mod api { } } #[doc = "Set the dispute conclusion by time out period."] - pub async fn set_dispute_conclusion_by_time_out_period( + pub fn set_dispute_conclusion_by_time_out_period( &self, new: ::core::primitive::u32, ) -> Result< @@ -28467,7 +28467,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28486,7 +28486,7 @@ pub mod api { } #[doc = "Set the no show slots, in number of number of consensus slots."] #[doc = "Must be at least 1."] - pub async fn set_no_show_slots( + pub fn set_no_show_slots( &self, new: ::core::primitive::u32, ) -> Result< @@ -28502,7 +28502,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28520,7 +28520,7 @@ pub mod api { } } #[doc = "Set the total number of delay tranches."] - pub async fn set_n_delay_tranches( + pub fn set_n_delay_tranches( &self, new: ::core::primitive::u32, ) -> Result< @@ -28536,7 +28536,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28554,7 +28554,7 @@ pub mod api { } } #[doc = "Set the zeroth delay tranche width."] - pub async fn set_zeroth_delay_tranche_width( + pub fn set_zeroth_delay_tranche_width( &self, new: ::core::primitive::u32, ) -> Result< @@ -28570,7 +28570,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28588,7 +28588,7 @@ pub mod api { } } #[doc = "Set the number of validators needed to approve a block."] - pub async fn set_needed_approvals( + pub fn set_needed_approvals( &self, new: ::core::primitive::u32, ) -> Result< @@ -28604,7 +28604,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28622,7 +28622,7 @@ pub mod api { } } #[doc = "Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion."] - pub async fn set_relay_vrf_modulo_samples( + pub fn set_relay_vrf_modulo_samples( &self, new: ::core::primitive::u32, ) -> Result< @@ -28638,7 +28638,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28656,7 +28656,7 @@ pub mod api { } } #[doc = "Sets the maximum items that can present in a upward dispatch queue at once."] - pub async fn set_max_upward_queue_count( + pub fn set_max_upward_queue_count( &self, new: ::core::primitive::u32, ) -> Result< @@ -28672,7 +28672,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28690,7 +28690,7 @@ pub mod api { } } #[doc = "Sets the maximum total size of items that can present in a upward dispatch queue at once."] - pub async fn set_max_upward_queue_size( + pub fn set_max_upward_queue_size( &self, new: ::core::primitive::u32, ) -> Result< @@ -28706,7 +28706,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28724,7 +28724,7 @@ pub mod api { } } #[doc = "Set the critical downward message size."] - pub async fn set_max_downward_message_size( + pub fn set_max_downward_message_size( &self, new: ::core::primitive::u32, ) -> Result< @@ -28740,7 +28740,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28758,7 +28758,7 @@ pub mod api { } } #[doc = "Sets the soft limit for the phase of dispatching dispatchable upward messages."] - pub async fn set_ump_service_total_weight( + pub fn set_ump_service_total_weight( &self, new: ::core::primitive::u64, ) -> Result< @@ -28774,7 +28774,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28792,7 +28792,7 @@ pub mod api { } } #[doc = "Sets the maximum size of an upward message that can be sent by a candidate."] - pub async fn set_max_upward_message_size( + pub fn set_max_upward_message_size( &self, new: ::core::primitive::u32, ) -> Result< @@ -28808,7 +28808,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28826,7 +28826,7 @@ pub mod api { } } #[doc = "Sets the maximum number of messages that a candidate can contain."] - pub async fn set_max_upward_message_num_per_candidate( + pub fn set_max_upward_message_num_per_candidate( &self, new: ::core::primitive::u32, ) -> Result< @@ -28842,7 +28842,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28860,7 +28860,7 @@ pub mod api { } } #[doc = "Sets the number of sessions after which an HRMP open channel request expires."] - pub async fn set_hrmp_open_request_ttl( + pub fn set_hrmp_open_request_ttl( &self, new: ::core::primitive::u32, ) -> Result< @@ -28876,7 +28876,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28894,7 +28894,7 @@ pub mod api { } } #[doc = "Sets the amount of funds that the sender should provide for opening an HRMP channel."] - pub async fn set_hrmp_sender_deposit( + pub fn set_hrmp_sender_deposit( &self, new: ::core::primitive::u128, ) -> Result< @@ -28910,7 +28910,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28929,7 +28929,7 @@ pub mod api { } #[doc = "Sets the amount of funds that the recipient should provide for accepting opening an HRMP"] #[doc = "channel."] - pub async fn set_hrmp_recipient_deposit( + pub fn set_hrmp_recipient_deposit( &self, new: ::core::primitive::u128, ) -> Result< @@ -28945,7 +28945,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28963,7 +28963,7 @@ pub mod api { } } #[doc = "Sets the maximum number of messages allowed in an HRMP channel at once."] - pub async fn set_hrmp_channel_max_capacity( + pub fn set_hrmp_channel_max_capacity( &self, new: ::core::primitive::u32, ) -> Result< @@ -28979,7 +28979,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -28997,7 +28997,7 @@ pub mod api { } } #[doc = "Sets the maximum total size of messages in bytes allowed in an HRMP channel at once."] - pub async fn set_hrmp_channel_max_total_size( + pub fn set_hrmp_channel_max_total_size( &self, new: ::core::primitive::u32, ) -> Result< @@ -29013,7 +29013,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -29031,7 +29031,7 @@ pub mod api { } } #[doc = "Sets the maximum number of inbound HRMP channels a parachain is allowed to accept."] - pub async fn set_hrmp_max_parachain_inbound_channels( + pub fn set_hrmp_max_parachain_inbound_channels( &self, new: ::core::primitive::u32, ) -> Result< @@ -29047,7 +29047,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -29065,7 +29065,7 @@ pub mod api { } } #[doc = "Sets the maximum number of inbound HRMP channels a parathread is allowed to accept."] - pub async fn set_hrmp_max_parathread_inbound_channels( + pub fn set_hrmp_max_parathread_inbound_channels( &self, new: ::core::primitive::u32, ) -> Result< @@ -29081,7 +29081,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -29099,7 +29099,7 @@ pub mod api { } } #[doc = "Sets the maximum size of a message that could ever be put into an HRMP channel."] - pub async fn set_hrmp_channel_max_message_size( + pub fn set_hrmp_channel_max_message_size( &self, new: ::core::primitive::u32, ) -> Result< @@ -29115,7 +29115,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -29133,7 +29133,7 @@ pub mod api { } } #[doc = "Sets the maximum number of outbound HRMP channels a parachain is allowed to open."] - pub async fn set_hrmp_max_parachain_outbound_channels( + pub fn set_hrmp_max_parachain_outbound_channels( &self, new: ::core::primitive::u32, ) -> Result< @@ -29149,7 +29149,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -29167,7 +29167,7 @@ pub mod api { } } #[doc = "Sets the maximum number of outbound HRMP channels a parathread is allowed to open."] - pub async fn set_hrmp_max_parathread_outbound_channels( + pub fn set_hrmp_max_parathread_outbound_channels( &self, new: ::core::primitive::u32, ) -> Result< @@ -29183,7 +29183,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -29201,7 +29201,7 @@ pub mod api { } } #[doc = "Sets the maximum number of outbound HRMP messages can be sent by a candidate."] - pub async fn set_hrmp_max_message_num_per_candidate( + pub fn set_hrmp_max_message_num_per_candidate( &self, new: ::core::primitive::u32, ) -> Result< @@ -29217,7 +29217,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -29235,7 +29235,7 @@ pub mod api { } } #[doc = "Sets the maximum amount of weight any individual upward message may consume."] - pub async fn set_ump_max_individual_weight( + pub fn set_ump_max_individual_weight( &self, new: ::core::primitive::u64, ) -> Result< @@ -29251,7 +29251,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -29269,7 +29269,7 @@ pub mod api { } } #[doc = "Enable or disable PVF pre-checking. Consult the field documentation prior executing."] - pub async fn set_pvf_checking_enabled( + pub fn set_pvf_checking_enabled( &self, new: ::core::primitive::bool, ) -> Result< @@ -29285,7 +29285,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -29303,7 +29303,7 @@ pub mod api { } } #[doc = "Set the number of session changes after which a PVF pre-checking voting is rejected."] - pub async fn set_pvf_voting_ttl( + pub fn set_pvf_voting_ttl( &self, new: ::core::primitive::u32, ) -> Result< @@ -29319,7 +29319,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -29340,7 +29340,7 @@ pub mod api { #[doc = "upgrade taking place."] #[doc = ""] #[doc = "See the field documentation for information and constraints for the new value."] - pub async fn set_minimum_validation_upgrade_delay( + pub fn set_minimum_validation_upgrade_delay( &self, new: ::core::primitive::u32, ) -> Result< @@ -29356,7 +29356,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -29375,7 +29375,7 @@ pub mod api { } #[doc = "Setting this to true will disable consistency checks for the configuration setters."] #[doc = "Use with caution."] - pub async fn set_bypass_consistency_check( + pub fn set_bypass_consistency_check( &self, new: ::core::primitive::bool, ) -> Result< @@ -29391,7 +29391,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -29461,7 +29461,7 @@ pub mod api { #[doc = " The active configuration for the current session."] pub async fn active_config (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -29486,7 +29486,7 @@ pub mod api { #[doc = " DEPRECATED: This is no longer used, and will be removed in the future."] pub async fn pending_config (& self , _0 : & :: core :: primitive :: u32 , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: configuration :: migration :: v1 :: HostConfiguration < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -29515,7 +29515,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -29540,7 +29540,7 @@ pub mod api { #[doc = " 2 items: for the next session and for the `scheduled_session`."] pub async fn pending_configs (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < (:: core :: primitive :: u32 , runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ,) > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -29569,7 +29569,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -29668,7 +29668,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -29701,7 +29701,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -29734,7 +29734,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -29887,7 +29887,7 @@ pub mod api { #[doc = " The latest bitfield for each validator, referred to by their index in the validator set."] pub async fn availability_bitfields (& self , _0 : & runtime_types :: polkadot_primitives :: v2 :: ValidatorIndex , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -29914,7 +29914,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -29933,7 +29933,7 @@ pub mod api { #[doc = " Candidates pending availability by `ParaId`."] pub async fn pending_availability (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: Id , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: sp_core :: H256 , :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -29960,7 +29960,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -29991,7 +29991,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -30018,7 +30018,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -30077,7 +30077,7 @@ pub mod api { } } #[doc = "Enter the paras inherent. This will process bitfields and backed candidates."] - pub async fn enter( + pub fn enter( &self, data: runtime_types::polkadot_primitives::v2::InherentData< runtime_types::sp_runtime::generic::header::Header< @@ -30098,7 +30098,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -30159,7 +30159,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -30190,7 +30190,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -30308,7 +30308,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -30334,7 +30334,7 @@ pub mod api { #[doc = " multiplied by the number of parathread multiplexer cores. Reasonably, 10 * 50 = 500."] pub async fn parathread_queue (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: polkadot_runtime_parachains :: scheduler :: ParathreadClaimQueue , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -30375,7 +30375,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -30408,7 +30408,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -30441,7 +30441,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -30469,7 +30469,7 @@ pub mod api { #[doc = " for the upcoming block."] pub async fn scheduled (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: scheduler :: CoreAssignment > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -30594,7 +30594,7 @@ pub mod api { } } #[doc = "Set the storage for the parachain validation code immediately."] - pub async fn force_set_current_code( + pub fn force_set_current_code( &self, para: runtime_types::polkadot_parachain::primitives::Id, new_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, @@ -30611,7 +30611,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -30629,7 +30629,7 @@ pub mod api { } } #[doc = "Set the storage for the current parachain head data immediately."] - pub async fn force_set_current_head( + pub fn force_set_current_head( &self, para: runtime_types::polkadot_parachain::primitives::Id, new_head: runtime_types::polkadot_parachain::primitives::HeadData, @@ -30646,7 +30646,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -30664,7 +30664,7 @@ pub mod api { } } #[doc = "Schedule an upgrade as if it was scheduled in the given relay parent block."] - pub async fn force_schedule_code_upgrade( + pub fn force_schedule_code_upgrade( &self, para: runtime_types::polkadot_parachain::primitives::Id, new_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, @@ -30682,7 +30682,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -30704,7 +30704,7 @@ pub mod api { } } #[doc = "Note a new block head for para within the context of the current block."] - pub async fn force_note_new_head( + pub fn force_note_new_head( &self, para: runtime_types::polkadot_parachain::primitives::Id, new_head: runtime_types::polkadot_parachain::primitives::HeadData, @@ -30721,7 +30721,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -30741,7 +30741,7 @@ pub mod api { #[doc = "Put a parachain directly into the next session's action queue."] #[doc = "We can't queue it any sooner than this without going into the"] #[doc = "initializer..."] - pub async fn force_queue_action( + pub fn force_queue_action( &self, para: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -30757,7 +30757,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -30787,7 +30787,7 @@ pub mod api { #[doc = ""] #[doc = "This function is mainly meant to be used for upgrading parachains that do not follow"] #[doc = "the go-ahead signal while the PVF pre-checking feature is enabled."] - pub async fn add_trusted_validation_code( + pub fn add_trusted_validation_code( &self, validation_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, ) -> Result< @@ -30803,7 +30803,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -30825,7 +30825,7 @@ pub mod api { #[doc = "This is better than removing the storage directly, because it will not remove the code"] #[doc = "that was suddenly got used by some parachain while this dispatchable was pending"] #[doc = "dispatching."] - pub async fn poke_unused_validation_code( + pub fn poke_unused_validation_code( &self, validation_code_hash : runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash, ) -> Result< @@ -30841,7 +30841,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -30862,7 +30862,7 @@ pub mod api { } #[doc = "Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and"] #[doc = "enacts the results if that was the last vote before achieving the supermajority."] - pub async fn include_pvf_check_statement( + pub fn include_pvf_check_statement( &self, stmt: runtime_types::polkadot_primitives::v2::PvfCheckStatement, signature : runtime_types :: polkadot_primitives :: v2 :: validator_app :: Signature, @@ -30879,7 +30879,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -31258,7 +31258,7 @@ pub mod api { #[doc = " - There are no PVF pre-checking votes that exists in list but not in the set and vice versa."] pub async fn pvf_active_vote_map (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: paras :: PvfCheckActiveVoteState < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31288,7 +31288,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31316,7 +31316,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31348,7 +31348,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31381,7 +31381,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31408,7 +31408,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31437,7 +31437,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31464,7 +31464,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31495,7 +31495,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31524,7 +31524,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31557,7 +31557,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31587,7 +31587,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31618,7 +31618,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31650,7 +31650,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31684,7 +31684,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31717,7 +31717,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31746,7 +31746,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31777,7 +31777,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31806,7 +31806,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31843,7 +31843,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31878,7 +31878,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31915,7 +31915,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31950,7 +31950,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -31981,7 +31981,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32017,7 +32017,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32048,7 +32048,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32078,7 +32078,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32100,7 +32100,7 @@ pub mod api { #[doc = " to empty. Instead, the code will be saved into the storage right away via `CodeByHash`."] pub async fn upcoming_paras_genesis (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: Id , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: paras :: ParaGenesisArgs > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32130,7 +32130,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32155,7 +32155,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32185,7 +32185,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32217,7 +32217,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32247,7 +32247,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32274,12 +32274,12 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn unsigned_priority( + pub fn unsigned_priority( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Paras", "UnsignedPriority")? == [ 78u8, 226u8, 84u8, 70u8, 162u8, 23u8, 167u8, 100u8, 156u8, @@ -32342,7 +32342,7 @@ pub mod api { #[doc = "Issue a signal to the consensus engine to forcibly act as though all parachain"] #[doc = "blocks in all relay chain blocks up to and including the given number in the current"] #[doc = "chain are valid and should be finalized."] - pub async fn force_approve( + pub fn force_approve( &self, up_to: ::core::primitive::u32, ) -> Result< @@ -32358,7 +32358,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -32419,7 +32419,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32445,7 +32445,7 @@ pub mod api { #[doc = " upgrade boundaries or if governance intervenes."] pub async fn buffered_session_changes (& self , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: initializer :: BufferedSessionChange > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32552,7 +32552,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32582,7 +32582,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32613,7 +32613,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32649,7 +32649,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32715,7 +32715,7 @@ pub mod api { #[doc = ""] #[doc = "Events:"] #[doc = "- `OverweightServiced`: On success."] - pub async fn service_overweight( + pub fn service_overweight( &self, index: ::core::primitive::u64, weight_limit: ::core::primitive::u64, @@ -32732,7 +32732,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -32935,7 +32935,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -32970,7 +32970,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -33007,7 +33007,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -33047,7 +33047,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -33077,7 +33077,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -33113,7 +33113,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -33146,7 +33146,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -33175,7 +33175,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -33200,7 +33200,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -33332,7 +33332,7 @@ pub mod api { #[doc = ""] #[doc = "The channel can be opened only after the recipient confirms it and only on a session"] #[doc = "change."] - pub async fn hrmp_init_open_channel( + pub fn hrmp_init_open_channel( &self, recipient: runtime_types::polkadot_parachain::primitives::Id, proposed_max_capacity: ::core::primitive::u32, @@ -33350,7 +33350,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -33374,7 +33374,7 @@ pub mod api { #[doc = "Accept a pending open channel request from the given sender."] #[doc = ""] #[doc = "The channel will be opened only on the next session boundary."] - pub async fn hrmp_accept_open_channel( + pub fn hrmp_accept_open_channel( &self, sender: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -33390,7 +33390,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -33411,7 +33411,7 @@ pub mod api { #[doc = "recipient in the channel being closed."] #[doc = ""] #[doc = "The closure can only happen on a session change."] - pub async fn hrmp_close_channel( + pub fn hrmp_close_channel( &self, channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId, ) -> Result< @@ -33427,7 +33427,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -33451,7 +33451,7 @@ pub mod api { #[doc = "Origin must be Root."] #[doc = ""] #[doc = "Number of inbound and outbound channels for `para` must be provided as witness data of weighing."] - pub async fn force_clean_hrmp( + pub fn force_clean_hrmp( &self, para: runtime_types::polkadot_parachain::primitives::Id, inbound: ::core::primitive::u32, @@ -33469,7 +33469,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -33496,7 +33496,7 @@ pub mod api { #[doc = "function process all of those requests immediately."] #[doc = ""] #[doc = "Total number of opening channels must be provided as witness data of weighing."] - pub async fn force_process_hrmp_open( + pub fn force_process_hrmp_open( &self, channels: ::core::primitive::u32, ) -> Result< @@ -33512,7 +33512,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -33535,7 +33535,7 @@ pub mod api { #[doc = "function process all of those requests immediately."] #[doc = ""] #[doc = "Total number of closing channels must be provided as witness data of weighing."] - pub async fn force_process_hrmp_close( + pub fn force_process_hrmp_close( &self, channels: ::core::primitive::u32, ) -> Result< @@ -33551,7 +33551,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -33576,7 +33576,7 @@ pub mod api { #[doc = ""] #[doc = "Total number of open requests (i.e. `HrmpOpenChannelRequestsList`) must be provided as"] #[doc = "witness data."] - pub async fn hrmp_cancel_open_request( + pub fn hrmp_cancel_open_request( &self, channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId, open_requests: ::core::primitive::u32, @@ -33593,7 +33593,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -33852,7 +33852,7 @@ pub mod api { #[doc = " - There are no channels that exists in list but not in the set and vice versa."] pub async fn hrmp_open_channel_requests (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId , block_hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: hrmp :: HrmpOpenChannelRequest > , :: subxt :: BasicError >{ let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -33884,7 +33884,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -33911,7 +33911,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -33942,7 +33942,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -33974,7 +33974,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34001,7 +34001,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34033,7 +34033,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34064,7 +34064,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34097,7 +34097,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34124,7 +34124,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34157,7 +34157,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34186,7 +34186,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34217,7 +34217,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34246,7 +34246,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34285,7 +34285,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34327,7 +34327,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34353,7 +34353,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34382,7 +34382,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34414,7 +34414,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34445,7 +34445,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34482,7 +34482,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34517,7 +34517,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34596,7 +34596,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34624,7 +34624,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34659,7 +34659,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34688,7 +34688,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34739,7 +34739,7 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub async fn force_unfreeze( + pub fn force_unfreeze( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -34754,7 +34754,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -34918,7 +34918,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34951,7 +34951,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -34978,7 +34978,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -35007,7 +35007,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -35035,7 +35035,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -35066,7 +35066,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -35097,7 +35097,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -35126,7 +35126,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -35244,7 +35244,7 @@ pub mod api { #[doc = ""] #[doc = "## Events"] #[doc = "The `Registered` event is emitted in case of success."] - pub async fn register( + pub fn register( &self, id: runtime_types::polkadot_parachain::primitives::Id, genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, @@ -35262,7 +35262,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -35289,7 +35289,7 @@ pub mod api { #[doc = ""] #[doc = "The deposit taken can be specified for this registration. Any `ParaId`"] #[doc = "can be registered, including sub-1000 IDs which are System Parachains."] - pub async fn force_register( + pub fn force_register( &self, who: ::subxt::sp_core::crypto::AccountId32, deposit: ::core::primitive::u128, @@ -35309,7 +35309,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -35335,7 +35335,7 @@ pub mod api { #[doc = "Deregister a Para Id, freeing all data and returning any deposit."] #[doc = ""] #[doc = "The caller must be Root, the `para` owner, or the `para` itself. The para must be a parathread."] - pub async fn deregister( + pub fn deregister( &self, id: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -35351,7 +35351,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -35379,7 +35379,7 @@ pub mod api { #[doc = "`ParaId` to be a long-term identifier of a notional \"parachain\". However, their"] #[doc = "scheduling info (i.e. whether they're a parathread or parachain), auction information"] #[doc = "and the auction deposit are switched."] - pub async fn swap( + pub fn swap( &self, id: runtime_types::polkadot_parachain::primitives::Id, other: runtime_types::polkadot_parachain::primitives::Id, @@ -35396,7 +35396,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -35417,7 +35417,7 @@ pub mod api { #[doc = "previously locked para to deregister or swap a para without using governance."] #[doc = ""] #[doc = "Can only be called by the Root origin."] - pub async fn force_remove_lock( + pub fn force_remove_lock( &self, para: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -35433,7 +35433,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -35464,7 +35464,7 @@ pub mod api { #[doc = ""] #[doc = "## Events"] #[doc = "The `Reserved` event is emitted in case of success, which provides the ID reserved for use."] - pub async fn reserve( + pub fn reserve( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -35479,7 +35479,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -35592,7 +35592,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -35619,7 +35619,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -35654,7 +35654,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -35684,7 +35684,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -35710,7 +35710,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -35743,12 +35743,12 @@ pub mod api { } #[doc = " The deposit to be paid to run a parathread."] #[doc = " This should include the cost for storing the genesis head and validation code."] - pub async fn para_deposit( + pub fn para_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Registrar", "ParaDeposit")? == [ 18u8, 109u8, 161u8, 161u8, 151u8, 174u8, 243u8, 90u8, 220u8, @@ -35767,12 +35767,12 @@ pub mod api { } } #[doc = " The deposit to be paid per byte stored on chain."] - pub async fn data_deposit_per_byte( + pub fn data_deposit_per_byte( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Registrar", "DataDepositPerByte")? == [ 112u8, 186u8, 158u8, 252u8, 99u8, 4u8, 201u8, 234u8, 99u8, @@ -35851,7 +35851,7 @@ pub mod api { #[doc = "independently of any other on-chain mechanism to use it."] #[doc = ""] #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] - pub async fn force_lease( + pub fn force_lease( &self, para: runtime_types::polkadot_parachain::primitives::Id, leaser: ::subxt::sp_core::crypto::AccountId32, @@ -35871,7 +35871,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -35897,7 +35897,7 @@ pub mod api { #[doc = "Clear all leases for a Para Id, refunding any deposits back to the original owners."] #[doc = ""] #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] - pub async fn clear_all_leases( + pub fn clear_all_leases( &self, para: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -35913,7 +35913,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -35937,7 +35937,7 @@ pub mod api { #[doc = "let them onboard from here."] #[doc = ""] #[doc = "Origin must be signed, but can be called by anyone."] - pub async fn trigger_onboard( + pub fn trigger_onboard( &self, para: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -35953,7 +35953,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -36064,7 +36064,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -36109,7 +36109,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -36137,12 +36137,12 @@ pub mod api { Self { client } } #[doc = " The number of blocks over which a single period lasts."] - pub async fn lease_period( + pub fn lease_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Slots", "LeasePeriod")? == [ 203u8, 21u8, 3u8, 22u8, 25u8, 46u8, 2u8, 223u8, 51u8, 234u8, @@ -36161,12 +36161,12 @@ pub mod api { } } #[doc = " The number of blocks to offset each lease period by."] - pub async fn lease_offset( + pub fn lease_offset( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Slots", "LeaseOffset")? == [ 7u8, 48u8, 194u8, 175u8, 129u8, 96u8, 39u8, 178u8, 104u8, @@ -36252,7 +36252,7 @@ pub mod api { #[doc = "This can only happen when there isn't already an auction in progress and may only be"] #[doc = "called by the root origin. Accepts the `duration` of this auction and the"] #[doc = "`lease_period_index` of the initial lease period of the four that are to be auctioned."] - pub async fn new_auction( + pub fn new_auction( &self, duration: ::core::primitive::u32, lease_period_index: ::core::primitive::u32, @@ -36269,7 +36269,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -36305,7 +36305,7 @@ pub mod api { #[doc = "absolute lease period index value, not an auction-specific offset."] #[doc = "- `amount` is the amount to bid to be held as deposit for the parachain should the"] #[doc = "bid win. This amount is held throughout the range."] - pub async fn bid( + pub fn bid( &self, para: runtime_types::polkadot_parachain::primitives::Id, auction_index: ::core::primitive::u32, @@ -36325,7 +36325,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -36351,7 +36351,7 @@ pub mod api { #[doc = "Cancel an in-progress auction."] #[doc = ""] #[doc = "Can only be called by Root origin."] - pub async fn cancel_auction( + pub fn cancel_auction( &self, ) -> Result< ::subxt::SubmittableExtrinsic< @@ -36366,7 +36366,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -36540,7 +36540,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -36577,7 +36577,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -36607,7 +36607,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -36635,7 +36635,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -36670,7 +36670,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -36699,7 +36699,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -36727,12 +36727,12 @@ pub mod api { Self { client } } #[doc = " The number of blocks over which an auction may be retroactively ended."] - pub async fn ending_period( + pub fn ending_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Auctions", "EndingPeriod")? == [ 36u8, 136u8, 230u8, 163u8, 145u8, 185u8, 224u8, 85u8, 228u8, @@ -36753,12 +36753,12 @@ pub mod api { #[doc = " The length of each sample to take during the ending period."] #[doc = ""] #[doc = " `EndingPeriod` / `SampleLength` = Total # of Samples"] - pub async fn sample_length( + pub fn sample_length( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Auctions", "SampleLength")? == [ 54u8, 145u8, 242u8, 8u8, 50u8, 152u8, 192u8, 64u8, 134u8, @@ -36776,12 +36776,12 @@ pub mod api { Err(::subxt::MetadataError::IncompatibleMetadata.into()) } } - pub async fn slot_range_count( + pub fn slot_range_count( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Auctions", "SlotRangeCount")? == [ 32u8, 147u8, 38u8, 54u8, 172u8, 189u8, 240u8, 136u8, 216u8, @@ -36799,12 +36799,12 @@ pub mod api { Err(::subxt::MetadataError::IncompatibleMetadata.into()) } } - pub async fn lease_periods_per_slot( + pub fn lease_periods_per_slot( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Auctions", "LeasePeriodsPerSlot")? == [ 174u8, 18u8, 150u8, 44u8, 219u8, 36u8, 218u8, 28u8, 34u8, @@ -36962,7 +36962,7 @@ pub mod api { #[doc = ""] #[doc = "This applies a lock to your parachain configuration, ensuring that it cannot be changed"] #[doc = "by the parachain manager."] - pub async fn create( + pub fn create( &self, index: runtime_types::polkadot_parachain::primitives::Id, cap: ::core::primitive::u128, @@ -36985,7 +36985,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -37011,7 +37011,7 @@ pub mod api { } #[doc = "Contribute to a crowd sale. This will transfer some balance over to fund a parachain"] #[doc = "slot. It will be withdrawable when the crowdloan has ended and the funds are unused."] - pub async fn contribute( + pub fn contribute( &self, index: runtime_types::polkadot_parachain::primitives::Id, value: ::core::primitive::u128, @@ -37031,7 +37031,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -37069,7 +37069,7 @@ pub mod api { #[doc = ""] #[doc = "- `who`: The account whose contribution should be withdrawn."] #[doc = "- `index`: The parachain to whose crowdloan the contribution was made."] - pub async fn withdraw( + pub fn withdraw( &self, who: ::subxt::sp_core::crypto::AccountId32, index: runtime_types::polkadot_parachain::primitives::Id, @@ -37086,7 +37086,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -37108,7 +37108,7 @@ pub mod api { #[doc = "times to fully refund all users. We will refund `RemoveKeysLimit` users at a time."] #[doc = ""] #[doc = "Origin must be signed, but can come from anyone."] - pub async fn refund( + pub fn refund( &self, index: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -37124,7 +37124,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -37142,7 +37142,7 @@ pub mod api { } } #[doc = "Remove a fund after the retirement period has ended and all funds have been returned."] - pub async fn dissolve( + pub fn dissolve( &self, index: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -37158,7 +37158,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -37178,7 +37178,7 @@ pub mod api { #[doc = "Edit the configuration for an in-progress crowdloan."] #[doc = ""] #[doc = "Can only be called by Root origin."] - pub async fn edit( + pub fn edit( &self, index: runtime_types::polkadot_parachain::primitives::Id, cap: ::core::primitive::u128, @@ -37201,7 +37201,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -37228,7 +37228,7 @@ pub mod api { #[doc = "Add an optional memo to an existing crowdloan contribution."] #[doc = ""] #[doc = "Origin must be Signed, and the user must have contributed to the crowdloan."] - pub async fn add_memo( + pub fn add_memo( &self, index: runtime_types::polkadot_parachain::primitives::Id, memo: ::std::vec::Vec<::core::primitive::u8>, @@ -37245,7 +37245,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -37265,7 +37265,7 @@ pub mod api { #[doc = "Poke the fund into `NewRaise`"] #[doc = ""] #[doc = "Origin must be Signed, and the fund has non-zero raise."] - pub async fn poke( + pub fn poke( &self, index: runtime_types::polkadot_parachain::primitives::Id, ) -> Result< @@ -37281,7 +37281,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -37300,7 +37300,7 @@ pub mod api { } #[doc = "Contribute your entire balance to a crowd sale. This will transfer the entire balance of a user over to fund a parachain"] #[doc = "slot. It will be withdrawable when the crowdloan has ended and the funds are unused."] - pub async fn contribute_all( + pub fn contribute_all( &self, index: runtime_types::polkadot_parachain::primitives::Id, signature: ::core::option::Option< @@ -37319,7 +37319,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -37506,7 +37506,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -37533,7 +37533,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -37560,7 +37560,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -37588,7 +37588,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -37616,7 +37616,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -37648,14 +37648,14 @@ pub mod api { Self { client } } #[doc = " `PalletId` for the crowdloan pallet. An appropriate value could be `PalletId(*b\"py/cfund\")`"] - pub async fn pallet_id( + pub fn pallet_id( &self, ) -> ::core::result::Result< runtime_types::frame_support::PalletId, ::subxt::BasicError, > { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Crowdloan", "PalletId")? == [ 190u8, 62u8, 112u8, 88u8, 48u8, 222u8, 234u8, 76u8, 230u8, @@ -37675,12 +37675,12 @@ pub mod api { } #[doc = " The minimum amount that may be contributed into a crowdloan. Should almost certainly be at"] #[doc = " least `ExistentialDeposit`."] - pub async fn min_contribution( + pub fn min_contribution( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Crowdloan", "MinContribution")? == [ 7u8, 98u8, 163u8, 178u8, 130u8, 130u8, 228u8, 145u8, 98u8, @@ -37699,12 +37699,12 @@ pub mod api { } } #[doc = " Max number of storage keys to remove per extrinsic call."] - pub async fn remove_keys_limit( + pub fn remove_keys_limit( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.constant_hash("Crowdloan", "RemoveKeysLimit")? == [ 112u8, 103u8, 77u8, 231u8, 192u8, 202u8, 113u8, 241u8, 178u8, @@ -37856,7 +37856,7 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub async fn send( + pub fn send( &self, dest: runtime_types::xcm::VersionedMultiLocation, message: runtime_types::xcm::VersionedXcm, @@ -37873,7 +37873,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -37908,7 +37908,7 @@ pub mod api { #[doc = " `dest` side. May not be empty."] #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] #[doc = " fees."] - pub async fn teleport_assets( + pub fn teleport_assets( &self, dest: runtime_types::xcm::VersionedMultiLocation, beneficiary: runtime_types::xcm::VersionedMultiLocation, @@ -37927,7 +37927,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -37965,7 +37965,7 @@ pub mod api { #[doc = " `dest` side."] #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] #[doc = " fees."] - pub async fn reserve_transfer_assets( + pub fn reserve_transfer_assets( &self, dest: runtime_types::xcm::VersionedMultiLocation, beneficiary: runtime_types::xcm::VersionedMultiLocation, @@ -37984,7 +37984,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -38017,7 +38017,7 @@ pub mod api { #[doc = ""] #[doc = "NOTE: A successful return to this does *not* imply that the `msg` was executed successfully"] #[doc = "to completion; only that *some* of it was executed."] - pub async fn execute( + pub fn execute( &self, message: runtime_types::xcm::VersionedXcm, max_weight: ::core::primitive::u64, @@ -38034,7 +38034,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -38060,7 +38060,7 @@ pub mod api { #[doc = "- `origin`: Must be Root."] #[doc = "- `location`: The destination that is being described."] #[doc = "- `xcm_version`: The latest version of XCM that `location` supports."] - pub async fn force_xcm_version( + pub fn force_xcm_version( &self, location: runtime_types::xcm::v1::multilocation::MultiLocation, xcm_version: ::core::primitive::u32, @@ -38077,7 +38077,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -38102,7 +38102,7 @@ pub mod api { #[doc = ""] #[doc = "- `origin`: Must be Root."] #[doc = "- `maybe_xcm_version`: The default XCM encoding version, or `None` to disable."] - pub async fn force_default_xcm_version( + pub fn force_default_xcm_version( &self, maybe_xcm_version: ::core::option::Option<::core::primitive::u32>, ) -> Result< @@ -38118,7 +38118,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -38139,7 +38139,7 @@ pub mod api { #[doc = ""] #[doc = "- `origin`: Must be Root."] #[doc = "- `location`: The location to which we should subscribe for XCM version notifications."] - pub async fn force_subscribe_version_notify( + pub fn force_subscribe_version_notify( &self, location: runtime_types::xcm::VersionedMultiLocation, ) -> Result< @@ -38155,7 +38155,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -38180,7 +38180,7 @@ pub mod api { #[doc = "- `origin`: Must be Root."] #[doc = "- `location`: The location to which we are currently subscribed for XCM version"] #[doc = " notifications which we no longer desire."] - pub async fn force_unsubscribe_version_notify( + pub fn force_unsubscribe_version_notify( &self, location: runtime_types::xcm::VersionedMultiLocation, ) -> Result< @@ -38196,7 +38196,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -38233,7 +38233,7 @@ pub mod api { #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] #[doc = " fees."] #[doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] - pub async fn limited_reserve_transfer_assets( + pub fn limited_reserve_transfer_assets( &self, dest: runtime_types::xcm::VersionedMultiLocation, beneficiary: runtime_types::xcm::VersionedMultiLocation, @@ -38253,7 +38253,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -38293,7 +38293,7 @@ pub mod api { #[doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] #[doc = " fees."] #[doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] - pub async fn limited_teleport_assets( + pub fn limited_teleport_assets( &self, dest: runtime_types::xcm::VersionedMultiLocation, beneficiary: runtime_types::xcm::VersionedMultiLocation, @@ -38313,7 +38313,7 @@ pub mod api { > { let runtime_call_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.call_hash::()? }; if runtime_call_hash @@ -38715,7 +38715,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -38750,7 +38750,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -38777,7 +38777,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -38805,7 +38805,7 @@ pub mod api { { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -38838,7 +38838,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -38865,7 +38865,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -38894,7 +38894,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -38921,7 +38921,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -38949,7 +38949,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -38976,7 +38976,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -39009,7 +39009,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -39037,7 +39037,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -39068,7 +39068,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -39100,7 +39100,7 @@ pub mod api { > { let runtime_storage_hash = { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); metadata.storage_hash::()? }; if runtime_storage_hash @@ -49966,9 +49966,9 @@ pub mod api { T: ::subxt::Config, X: ::subxt::extrinsic::ExtrinsicParams, { - pub async fn validate_metadata(&'a self) -> Result<(), ::subxt::MetadataError> { + pub fn validate_metadata(&'a self) -> Result<(), ::subxt::MetadataError> { let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); if metadata.metadata_hash(&PALLETS) != [ 222u8, 70u8, 96u8, 67u8, 220u8, 49u8, 147u8, 114u8, 199u8, 254u8, diff --git a/integration-tests/src/events/mod.rs b/integration-tests/src/events/mod.rs index bd72e1ee84..937a4faf91 100644 --- a/integration-tests/src/events/mod.rs +++ b/integration-tests/src/events/mod.rs @@ -116,8 +116,7 @@ async fn balance_transfer_subscription() -> Result<(), subxt::BasicError> { ctx.api .tx() .balances() - .transfer(bob.clone().into(), 10_000) - .await? + .transfer(bob.clone().into(), 10_000)? .sign_and_submit_then_watch_default(&alice) .await?; diff --git a/integration-tests/src/frame/balances.rs b/integration-tests/src/frame/balances.rs index e48897f5c2..a881d0b8a0 100644 --- a/integration-tests/src/frame/balances.rs +++ b/integration-tests/src/frame/balances.rs @@ -58,8 +58,7 @@ async fn tx_basic_transfer() -> Result<(), subxt::Error> { let events = api .tx() .balances() - .transfer(bob_address, 10_000) - .await? + .transfer(bob_address, 10_000)? .sign_and_submit_then_watch_default(&alice) .await? .wait_for_finalized_success() @@ -115,8 +114,7 @@ async fn multiple_transfers_work_nonce_incremented( api .tx() .balances() - .transfer(bob_address.clone(), 10_000) - .await? + .transfer(bob_address.clone(), 10_000)? .sign_and_submit_then_watch_default(&alice) .await? .wait_for_in_block() // Don't need to wait for finalization; this is quicker. @@ -161,8 +159,7 @@ async fn storage_balance_lock() -> Result<(), subxt::Error> { charlie.into(), 100_000_000_000_000, runtime_types::pallet_staking::RewardDestination::Stash, - ) - .await? + )? .sign_and_submit_then_watch_default(&bob) .await? .wait_for_finalized_success() @@ -203,7 +200,6 @@ async fn transfer_error() { .tx() .balances() .transfer(hans_address, 100_000_000_000_000_000) - .await .unwrap() .sign_and_submit_then_watch_default(&alice) .await @@ -217,7 +213,6 @@ async fn transfer_error() { .tx() .balances() .transfer(alice_addr, 100_000_000_000_000_000) - .await .unwrap() .sign_and_submit_then_watch_default(&hans) .await @@ -246,7 +241,6 @@ async fn transfer_implicit_subscription() { .tx() .balances() .transfer(bob_addr, 10_000) - .await .unwrap() .sign_and_submit_then_watch_default(&alice) .await @@ -271,11 +265,9 @@ async fn transfer_implicit_subscription() { #[tokio::test] async fn constant_existential_deposit() { let cxt = test_context().await; - let balances_metadata = { - let locked_metadata = cxt.client().metadata(); - let metadata = locked_metadata.lock().await; - metadata.pallet("Balances").unwrap().clone() - }; + let locked_metadata = cxt.client().metadata(); + let metadata = locked_metadata.read(); + let balances_metadata = metadata.pallet("Balances").unwrap(); let constant_metadata = balances_metadata.constant("ExistentialDeposit").unwrap(); let existential_deposit = u128::decode(&mut &constant_metadata.value[..]).unwrap(); assert_eq!(existential_deposit, 100_000_000_000_000); @@ -285,7 +277,6 @@ async fn constant_existential_deposit() { .constants() .balances() .existential_deposit() - .await .unwrap() ); } diff --git a/integration-tests/src/frame/contracts.rs b/integration-tests/src/frame/contracts.rs index a620937a92..944d33779b 100644 --- a/integration-tests/src/frame/contracts.rs +++ b/integration-tests/src/frame/contracts.rs @@ -90,8 +90,7 @@ impl ContractsTestContext { code, vec![], // data vec![], // salt - ) - .await? + )? .sign_and_submit_then_watch_default(&self.signer) .await? .wait_for_finalized_success() @@ -131,8 +130,7 @@ impl ContractsTestContext { code_hash, data, salt, - ) - .await? + )? .sign_and_submit_then_watch_default(&self.signer) .await? .wait_for_finalized_success() @@ -163,8 +161,7 @@ impl ContractsTestContext { 500_000_000, // gas_limit None, // storage_deposit_limit input_data, - ) - .await? + )? .sign_and_submit_then_watch_default(&self.signer) .await?; diff --git a/integration-tests/src/frame/staking.rs b/integration-tests/src/frame/staking.rs index 188d6d9183..e5a9ddd1aa 100644 --- a/integration-tests/src/frame/staking.rs +++ b/integration-tests/src/frame/staking.rs @@ -55,7 +55,6 @@ async fn validate_with_controller_account() { .tx() .staking() .validate(default_validator_prefs()) - .await .unwrap() .sign_and_submit_then_watch_default(&alice) .await @@ -73,8 +72,7 @@ async fn validate_not_possible_for_stash_account() -> Result<(), Error Result<(), Error Result<(), Error> { ctx.api .tx() .staking() - .nominate(vec![bob_stash.account_id().clone().into()]) - .await? + .nominate(vec![bob_stash.account_id().clone().into()])? .sign_and_submit_then_watch_default(&alice) .await? .wait_for_finalized_success() @@ -161,8 +156,7 @@ async fn chill_works_for_controller_only() -> Result<(), Error> { .api .tx() .staking() - .chill() - .await? + .chill()? .sign_and_submit_then_watch_default(&alice_stash) .await? .wait_for_finalized_success() @@ -177,8 +171,7 @@ async fn chill_works_for_controller_only() -> Result<(), Error> { .api .tx() .staking() - .chill() - .await? + .chill()? .sign_and_submit_then_watch_default(&alice) .await? .wait_for_finalized_success() @@ -203,7 +196,6 @@ async fn tx_bond() -> Result<(), Error> { 100_000_000_000_000, RewardDestination::Stash, ) - .await .unwrap() .sign_and_submit_then_watch_default(&alice) .await? @@ -221,7 +213,6 @@ async fn tx_bond() -> Result<(), Error> { 100_000_000_000_000, RewardDestination::Stash, ) - .await .unwrap() .sign_and_submit_then_watch_default(&alice) .await? diff --git a/integration-tests/src/frame/sudo.rs b/integration-tests/src/frame/sudo.rs index e401cb375d..501320d44b 100644 --- a/integration-tests/src/frame/sudo.rs +++ b/integration-tests/src/frame/sudo.rs @@ -43,8 +43,7 @@ async fn test_sudo() -> Result<(), subxt::Error> { .api .tx() .sudo() - .sudo(call) - .await? + .sudo(call)? .sign_and_submit_then_watch_default(&alice) .await? .wait_for_finalized_success() @@ -70,8 +69,7 @@ async fn test_sudo_unchecked_weight() -> Result<(), subxt::Error> .api .tx() .sudo() - .sudo_unchecked_weight(call, 0) - .await? + .sudo_unchecked_weight(call, 0)? .sign_and_submit_then_watch_default(&alice) .await? .wait_for_finalized_success() diff --git a/integration-tests/src/frame/system.rs b/integration-tests/src/frame/system.rs index 094262f5df..ff7e9a9c01 100644 --- a/integration-tests/src/frame/system.rs +++ b/integration-tests/src/frame/system.rs @@ -50,8 +50,7 @@ async fn tx_remark_with_event() -> Result<(), subxt::Error> { .api .tx() .system() - .remark_with_event(b"remarkable".to_vec()) - .await? + .remark_with_event(b"remarkable".to_vec())? .sign_and_submit_then_watch_default(&alice) .await? .wait_for_finalized_success() diff --git a/integration-tests/src/metadata/validation.rs b/integration-tests/src/metadata/validation.rs index 99080b56cf..968ee13218 100644 --- a/integration-tests/src/metadata/validation.rs +++ b/integration-tests/src/metadata/validation.rs @@ -73,11 +73,11 @@ async fn full_metadata_check() { let api = &cxt.api; // Runtime metadata is identical to the metadata used during API generation. - assert!(api.validate_metadata().await.is_ok()); + assert!(api.validate_metadata().is_ok()); // Modify the metadata. let locked_client_metadata = api.client.metadata(); - let client_metadata = locked_client_metadata.lock().await; + let client_metadata = locked_client_metadata.read(); let mut metadata: RuntimeMetadataV14 = client_metadata.runtime_metadata().clone(); metadata.pallets[0].name = "NewPallet".to_string(); @@ -85,7 +85,6 @@ async fn full_metadata_check() { assert_eq!( new_api .validate_metadata() - .await .err() .expect("Validation should fail for incompatible metadata"), ::subxt::MetadataError::IncompatibleMetadata @@ -98,17 +97,11 @@ async fn constants_check() { let api = &cxt.api; // Ensure that `ExistentialDeposit` is compatible before altering the metadata. - assert!(cxt - .api - .constants() - .balances() - .existential_deposit() - .await - .is_ok()); + assert!(cxt.api.constants().balances().existential_deposit().is_ok()); // Modify the metadata. let locked_client_metadata = api.client.metadata(); - let client_metadata = locked_client_metadata.lock().await; + let client_metadata = locked_client_metadata.read(); let mut metadata: RuntimeMetadataV14 = client_metadata.runtime_metadata().clone(); let mut existential = metadata @@ -124,16 +117,15 @@ async fn constants_check() { let new_api = metadata_to_api(metadata, &cxt).await; - assert!(new_api.validate_metadata().await.is_err()); + assert!(new_api.validate_metadata().is_err()); assert!(new_api .constants() .balances() .existential_deposit() - .await .is_err()); // Other constant validation should not be impacted. - assert!(new_api.constants().balances().max_locks().await.is_ok()); + assert!(new_api.constants().balances().max_locks().is_ok()); } fn default_pallet() -> PalletMetadata { @@ -165,14 +157,8 @@ async fn calls_check() { let cxt = test_context().await; // Ensure that `Unbond` and `WinthdrawUnbonded` calls are compatible before altering the metadata. - assert!(cxt - .api - .tx() - .staking() - .unbond(123_456_789_012_345) - .await - .is_ok()); - assert!(cxt.api.tx().staking().withdraw_unbonded(10).await.is_ok()); + assert!(cxt.api.tx().staking().unbond(123_456_789_012_345).is_ok()); + assert!(cxt.api.tx().staking().withdraw_unbonded(10).is_ok()); // Reconstruct the `Staking` call as is. struct CallRec; @@ -207,13 +193,8 @@ async fn calls_check() { }; let metadata = pallets_to_metadata(vec![pallet]); let new_api = metadata_to_api(metadata, &cxt).await; - assert!(new_api - .tx() - .staking() - .unbond(123_456_789_012_345) - .await - .is_ok()); - assert!(new_api.tx().staking().withdraw_unbonded(10).await.is_ok()); + assert!(new_api.tx().staking().unbond(123_456_789_012_345).is_ok()); + assert!(new_api.tx().staking().withdraw_unbonded(10).is_ok()); // Change `Unbond` call but leave the rest as is. struct CallRecSecond; @@ -248,13 +229,8 @@ async fn calls_check() { let metadata = pallets_to_metadata(vec![pallet]); let new_api = metadata_to_api(metadata, &cxt).await; // Unbond call should fail, while withdraw_unbonded remains compatible. - assert!(new_api - .tx() - .staking() - .unbond(123_456_789_012_345) - .await - .is_err()); - assert!(new_api.tx().staking().withdraw_unbonded(10).await.is_ok()); + assert!(new_api.tx().staking().unbond(123_456_789_012_345).is_err()); + assert!(new_api.tx().staking().withdraw_unbonded(10).is_ok()); } #[tokio::test] diff --git a/integration-tests/src/storage/mod.rs b/integration-tests/src/storage/mod.rs index efea138a18..552a06278f 100644 --- a/integration-tests/src/storage/mod.rs +++ b/integration-tests/src/storage/mod.rs @@ -48,8 +48,7 @@ async fn storage_map_lookup() -> Result<(), subxt::Error> { ctx.api .tx() .system() - .remark(vec![1, 2, 3, 4, 5]) - .await? + .remark(vec![1, 2, 3, 4, 5])? .sign_and_submit_then_watch_default(&signer) .await? .wait_for_finalized_success() @@ -114,8 +113,7 @@ async fn storage_n_map_storage_lookup() -> Result<(), subxt::Error Result<(), subxt::Error { rpc: Rpc, genesis_hash: T::Hash, - metadata: Arc>, + metadata: Arc>, properties: SystemProperties, - runtime_version: Arc>, + runtime_version: Arc>, iter_page_size: u32, } @@ -163,7 +163,7 @@ impl Client { } /// Returns the chain metadata. - pub fn metadata(&self) -> Arc> { + pub fn metadata(&self) -> Arc> { Arc::clone(&self.metadata) } @@ -207,7 +207,7 @@ impl Client { } /// Returns the client's Runtime Version. - pub fn runtime_version(&self) -> Arc> { + pub fn runtime_version(&self) -> Arc> { Arc::clone(&self.runtime_version) } } @@ -330,7 +330,7 @@ where let call_data = { let mut bytes = Vec::new(); let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); let pallet = metadata.pallet(C::PALLET)?; bytes.push(pallet.index()); bytes.push(pallet.call_index::()?); @@ -342,7 +342,7 @@ where let additional_and_extra_params = { // Obtain spec version and transaction version from the runtime version of the client. let locked_runtime = self.client.runtime_version(); - let runtime = locked_runtime.lock().await; + let runtime = locked_runtime.read(); X::new( runtime.spec_version, runtime.transaction_version, diff --git a/subxt/src/events/events_type.rs b/subxt/src/events/events_type.rs index 6544ebef60..57954e1a2d 100644 --- a/subxt/src/events/events_type.rs +++ b/subxt/src/events/events_type.rs @@ -32,7 +32,7 @@ use codec::{ Input, }; use derivative::Derivative; -use futures::lock::Mutex; +use parking_lot::RwLock; use sp_core::{ storage::StorageKey, twox_128, @@ -93,7 +93,7 @@ fn system_events_key() -> StorageKey { #[derive(Derivative)] #[derivative(Debug(bound = ""))] pub struct Events { - metadata: Arc>, + metadata: Arc>, block_hash: T::Hash, // Note; raw event bytes are prefixed with a Compact containing // the number of events to be decoded. We should have stripped that off @@ -335,7 +335,7 @@ impl RawEventDetails { // Attempt to dynamically decode a single event from our events input. fn decode_raw_event_details( - metadata: Arc>, + metadata: Arc>, index: u32, input: &mut &[u8], ) -> Result { @@ -351,41 +351,31 @@ fn decode_raw_event_details( ); log::debug!("remaining input: {}", hex::encode(&input)); - let async_res: Result<_, BasicError> = futures::executor::block_on(async { - // Get metadata for the event: - let metadata = metadata.lock().await; - let event_metadata = metadata.event(pallet_index, variant_index)?; - - log::debug!( - "Decoding Event '{}::{}'", - event_metadata.pallet(), - event_metadata.event() - ); - - let mut event_bytes = Vec::new(); - // Use metadata to figure out which bytes belong to this event: - for arg in event_metadata.variant().fields() { - let type_id = arg.ty().id(); - let all_bytes = *input; - // consume some bytes, moving the cursor forward: - decoding::decode_and_consume_type( - type_id, - &metadata.runtime_metadata().types, - input, - )?; - // count how many bytes were consumed based on remaining length: - let consumed_len = all_bytes.len() - input.len(); - // move those consumed bytes to the output vec unaltered: - event_bytes.extend(&all_bytes[0..consumed_len]); - } + // Get metadata for the event: + let metadata = metadata.read(); + let event_metadata = metadata.event(pallet_index, variant_index)?; + log::debug!( + "Decoding Event '{}::{}'", + event_metadata.pallet(), + event_metadata.event() + ); - Ok(( - event_bytes, - event_metadata.pallet().to_string(), - event_metadata.event().to_string(), - )) - }); - let (event_bytes, pallet, variant) = async_res?; + // Use metadata to figure out which bytes belong to this event: + let mut event_bytes = Vec::new(); + for arg in event_metadata.variant().fields() { + let type_id = arg.ty().id(); + let all_bytes = *input; + // consume some bytes, moving the cursor forward: + decoding::decode_and_consume_type( + type_id, + &metadata.runtime_metadata().types, + input, + )?; + // count how many bytes were consumed based on remaining length: + let consumed_len = all_bytes.len() - input.len(); + // move those consumed bytes to the output vec unaltered: + event_bytes.extend(&all_bytes[0..consumed_len]); + } // topics come after the event data in EventRecord. They aren't used for // anything at the moment, so just decode and throw them away. @@ -396,9 +386,9 @@ fn decode_raw_event_details( phase, index, pallet_index, - pallet, + pallet: event_metadata.pallet().to_string(), variant_index, - variant, + variant: event_metadata.event().to_string(), data: event_bytes.into(), }) } @@ -483,7 +473,7 @@ pub(crate) mod test_utils { /// Build an `Events` object for test purposes, based on the details provided, /// and with a default block hash. pub fn events( - metadata: Arc>, + metadata: Arc>, event_records: Vec>, ) -> Events> { let num_events = event_records.len() as u32; @@ -497,7 +487,7 @@ pub(crate) mod test_utils { /// Much like [`events`], but takes pre-encoded events and event count, so that we can /// mess with the bytes in tests if we need to. pub fn events_raw( - metadata: Arc>, + metadata: Arc>, event_bytes: Vec, num_events: u32, ) -> Events> { @@ -535,7 +525,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(Mutex::new(metadata::())); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode our events in the format we expect back from a node, and // construct an Events object to iterate them: @@ -565,7 +555,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(Mutex::new(metadata::())); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: @@ -611,7 +601,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(Mutex::new(metadata::())); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode 2 events: let mut event_bytes = vec![]; @@ -663,7 +653,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(Mutex::new(metadata::())); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: @@ -705,7 +695,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(Mutex::new(metadata::())); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: @@ -774,7 +764,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(Mutex::new(metadata::())); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode 2 events: let mut event_bytes = vec![]; @@ -841,7 +831,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(Mutex::new(metadata::())); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: @@ -896,7 +886,7 @@ mod tests { struct CompactWrapper(u64); // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(Mutex::new(metadata::())); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode our events in the format we expect back from a node, and // construct an Events object to iterate them: @@ -958,7 +948,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(Mutex::new(metadata::())); + let metadata = Arc::new(RwLock::new(metadata::())); // Encode our events in the format we expect back from a node, and // construct an Events object to iterate them: diff --git a/subxt/src/events/filter_events.rs b/subxt/src/events/filter_events.rs index cd0b296ee1..c5372ddbca 100644 --- a/subxt/src/events/filter_events.rs +++ b/subxt/src/events/filter_events.rs @@ -255,11 +255,11 @@ mod test { }; use codec::Encode; use futures::{ - lock::Mutex, stream, Stream, StreamExt, }; + use parking_lot::RwLock; use scale_info::TypeInfo; use std::sync::Arc; @@ -297,7 +297,7 @@ mod test { // A stream of fake events for us to try filtering on. fn events_stream( - metadata: Arc>, + metadata: Arc>, ) -> impl Stream>, BasicError>> { stream::iter(vec![ @@ -329,7 +329,7 @@ mod test { #[tokio::test] async fn filter_one_event_from_stream() { - let metadata = Arc::new(Mutex::new(metadata::())); + let metadata = Arc::new(RwLock::new(metadata::())); // Filter out fake event stream to select events matching `EventA` only. let actual: Vec<_> = @@ -361,7 +361,7 @@ mod test { #[tokio::test] async fn filter_some_events_from_stream() { - let metadata = Arc::new(Mutex::new(metadata::())); + let metadata = Arc::new(RwLock::new(metadata::())); // Filter out fake event stream to select events matching `EventA` or `EventB`. let actual: Vec<_> = FilterEvents::<_, DefaultConfig, (EventA, EventB)>::new( @@ -409,7 +409,7 @@ mod test { #[tokio::test] async fn filter_no_events_from_stream() { - let metadata = Arc::new(Mutex::new(metadata::())); + let metadata = Arc::new(RwLock::new(metadata::())); // Filter out fake event stream to select events matching `EventC` (none exist). let actual: Vec<_> = diff --git a/subxt/src/storage.rs b/subxt/src/storage.rs index 2274d8e069..7d41278dbb 100644 --- a/subxt/src/storage.rs +++ b/subxt/src/storage.rs @@ -20,7 +20,7 @@ use codec::{ Decode, Encode, }; -use futures::lock::Mutex; +use parking_lot::RwLock; use sp_core::storage::{ StorageChangeSet, StorageData, @@ -137,7 +137,7 @@ impl StorageMapKey { /// Client for querying runtime storage. pub struct StorageClient<'a, T: Config> { rpc: &'a Rpc, - metadata: Arc>, + metadata: Arc>, iter_page_size: u32, } @@ -155,7 +155,7 @@ impl<'a, T: Config> StorageClient<'a, T> { /// Create a new [`StorageClient`] pub fn new( rpc: &'a Rpc, - metadata: Arc>, + metadata: Arc>, iter_page_size: u32, ) -> Self { Self { @@ -207,7 +207,7 @@ impl<'a, T: Config> StorageClient<'a, T> { if let Some(data) = self.fetch(store, hash).await? { Ok(data) } else { - let metadata = self.metadata.lock().await; + let metadata = self.metadata.read(); let pallet_metadata = metadata.pallet(F::PALLET)?; let storage_metadata = pallet_metadata.storage(F::STORAGE)?; let default = Decode::decode(&mut &storage_metadata.default[..]) diff --git a/subxt/src/transaction.rs b/subxt/src/transaction.rs index 84d2179b3b..cda1b3ba3e 100644 --- a/subxt/src/transaction.rs +++ b/subxt/src/transaction.rs @@ -390,7 +390,7 @@ impl<'client, T: Config, E: Decode + HasModuleError, Evs: Decode> if let Some(error_data) = dispatch_error.module_error_data() { // Error index is utilized as the first byte from the error array. let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.lock().await; + let metadata = locked_metadata.read(); let details = metadata .error(error_data.pallet_index, error_data.error_index())?; return Err(Error::Module(ModuleError { diff --git a/subxt/src/updates.rs b/subxt/src/updates.rs index 865f9c1813..fb97b485ba 100644 --- a/subxt/src/updates.rs +++ b/subxt/src/updates.rs @@ -25,22 +25,22 @@ use crate::{ Config, Metadata, }; -use futures::lock::Mutex; +use parking_lot::RwLock; use std::sync::Arc; /// Client wrapper for performing runtime updates. pub struct UpdateClient { rpc: Rpc, - metadata: Arc>, - runtime_version: Arc>, + metadata: Arc>, + runtime_version: Arc>, } impl UpdateClient { /// Create a new [`UpdateClient`]. pub fn new( rpc: Rpc, - metadata: Arc>, - runtime_version: Arc>, + metadata: Arc>, + runtime_version: Arc>, ) -> Self { Self { rpc, @@ -69,7 +69,7 @@ impl UpdateClient { { // The Runtime Version of the client, as set during building the client // or during updates. - let runtime_version = self.runtime_version.lock().await; + let runtime_version = self.runtime_version.read(); if runtime_version.spec_version >= update_runtime_version.spec_version { log::debug!( "Runtime update not performed for spec_version={}, client has spec_version={}", @@ -82,7 +82,7 @@ impl UpdateClient { // Fetch the new metadata of the runtime node. let update_metadata = self.rpc.metadata().await?; - let mut runtime_version = self.runtime_version.lock().await; + let mut runtime_version = self.runtime_version.write(); // Update both the `RuntimeVersion` and `Metadata` of the client. log::info!( "Performing runtime update from {} to {}", @@ -91,7 +91,7 @@ impl UpdateClient { ); *runtime_version = update_runtime_version; log::debug!("Performing metadata update"); - let mut metadata = self.metadata.lock().await; + let mut metadata = self.metadata.write(); *metadata = update_metadata; log::debug!("Runtime update completed"); From d2ab196f4ef754ac95d62d0a6f4535bc533dbd49 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 5 May 2022 16:24:35 +0300 Subject: [PATCH 27/35] subxt: Perform RuntimeVersion update before fetching metadata Signed-off-by: Alexandru Vasile --- subxt/src/updates.rs | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/subxt/src/updates.rs b/subxt/src/updates.rs index fb97b485ba..cef4bde9ee 100644 --- a/subxt/src/updates.rs +++ b/subxt/src/updates.rs @@ -79,21 +79,23 @@ impl UpdateClient { } } + // Update the RuntimeVersion first. + { + let mut runtime_version = self.runtime_version.write(); + // Update both the `RuntimeVersion` and `Metadata` of the client. + log::info!( + "Performing runtime update from {} to {}", + runtime_version.spec_version, + update_runtime_version.spec_version, + ); + *runtime_version = update_runtime_version; + } + // Fetch the new metadata of the runtime node. let update_metadata = self.rpc.metadata().await?; - - let mut runtime_version = self.runtime_version.write(); - // Update both the `RuntimeVersion` and `Metadata` of the client. - log::info!( - "Performing runtime update from {} to {}", - runtime_version.spec_version, - update_runtime_version.spec_version, - ); - *runtime_version = update_runtime_version; log::debug!("Performing metadata update"); let mut metadata = self.metadata.write(); *metadata = update_metadata; - log::debug!("Runtime update completed"); } From c7a6382c6498f131bbc131e94b6af04027bed3c3 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 5 May 2022 17:02:43 +0300 Subject: [PATCH 28/35] Reintroduce MetadataInner --- subxt/src/metadata/metadata_type.rs | 114 +++++++++++++++++----------- 1 file changed, 69 insertions(+), 45 deletions(-) diff --git a/subxt/src/metadata/metadata_type.rs b/subxt/src/metadata/metadata_type.rs index 72f9661854..a11329b294 100644 --- a/subxt/src/metadata/metadata_type.rs +++ b/subxt/src/metadata/metadata_type.rs @@ -25,7 +25,6 @@ use frame_metadata::{ StorageEntryMetadata, META_RESERVED, }; -use parking_lot::RwLock; use scale_info::{ form::PortableForm, Type, @@ -34,6 +33,10 @@ use scale_info::{ use std::{ collections::HashMap, convert::TryFrom, + sync::{ + Arc, + RwLock, + }, }; /// Metadata error. @@ -80,9 +83,9 @@ pub enum MetadataError { IncompatibleMetadata, } -/// Runtime metadata. +// We hide the innards behind an Arc so that it's easy to clone and share. #[derive(Debug)] -pub struct Metadata { +struct MetadataInner { metadata: RuntimeMetadataV14, pallets: HashMap, events: HashMap<(u8, u8), EventMetadata>, @@ -96,10 +99,19 @@ pub struct Metadata { cached_storage_hashes: HashCache, } +/// Runtime metadata. +#[derive(Clone, Debug)] +pub struct Metadata { + inner: Arc, +} + impl Metadata { /// Returns a reference to [`PalletMetadata`]. pub fn pallet(&self, name: &'static str) -> Result<&PalletMetadata, MetadataError> { - self.pallets.get(name).ok_or(MetadataError::PalletNotFound) + self.inner + .pallets + .get(name) + .ok_or(MetadataError::PalletNotFound) } /// Returns the metadata for the event at the given pallet and event indices. @@ -109,6 +121,7 @@ impl Metadata { event_index: u8, ) -> Result<&EventMetadata, MetadataError> { let event = self + .inner .events .get(&(pallet_index, event_index)) .ok_or(MetadataError::EventNotFound(pallet_index, event_index))?; @@ -122,6 +135,7 @@ impl Metadata { error_index: u8, ) -> Result<&ErrorMetadata, MetadataError> { let error = self + .inner .errors .get(&(pallet_index, error_index)) .ok_or(MetadataError::ErrorNotFound(pallet_index, error_index))?; @@ -130,31 +144,32 @@ impl Metadata { /// Resolve a type definition. pub fn resolve_type(&self, id: u32) -> Option<&Type> { - self.metadata.types.resolve(id) + self.inner.metadata.types.resolve(id) } /// Return the runtime metadata. pub fn runtime_metadata(&self) -> &RuntimeMetadataV14 { - &self.metadata + &self.inner.metadata } /// Obtain the unique hash for a specific storage entry. pub fn storage_hash( &self, ) -> Result<[u8; 32], MetadataError> { - self.cached_storage_hashes + self.inner + .cached_storage_hashes .get_or_insert(S::PALLET, S::STORAGE, || { - subxt_metadata::get_storage_hash(&self.metadata, S::PALLET, S::STORAGE) - .map_err(|e| { - match e { - subxt_metadata::NotFound::Pallet => { - MetadataError::PalletNotFound - } - subxt_metadata::NotFound::Item => { - MetadataError::StorageNotFound - } - } - }) + subxt_metadata::get_storage_hash( + &self.inner.metadata, + S::PALLET, + S::STORAGE, + ) + .map_err(|e| { + match e { + subxt_metadata::NotFound::Pallet => MetadataError::PalletNotFound, + subxt_metadata::NotFound::Item => MetadataError::StorageNotFound, + } + }) }) } @@ -164,9 +179,10 @@ impl Metadata { pallet: &str, constant: &str, ) -> Result<[u8; 32], MetadataError> { - self.cached_constant_hashes + self.inner + .cached_constant_hashes .get_or_insert(pallet, constant, || { - subxt_metadata::get_constant_hash(&self.metadata, pallet, constant) + subxt_metadata::get_constant_hash(&self.inner.metadata, pallet, constant) .map_err(|e| { match e { subxt_metadata::NotFound::Pallet => { @@ -182,23 +198,26 @@ impl Metadata { /// Obtain the unique hash for a call. pub fn call_hash(&self) -> Result<[u8; 32], MetadataError> { - self.cached_call_hashes + self.inner + .cached_call_hashes .get_or_insert(C::PALLET, C::FUNCTION, || { - subxt_metadata::get_call_hash(&self.metadata, C::PALLET, C::FUNCTION) - .map_err(|e| { - match e { - subxt_metadata::NotFound::Pallet => { - MetadataError::PalletNotFound - } - subxt_metadata::NotFound::Item => MetadataError::CallNotFound, - } - }) + subxt_metadata::get_call_hash( + &self.inner.metadata, + C::PALLET, + C::FUNCTION, + ) + .map_err(|e| { + match e { + subxt_metadata::NotFound::Pallet => MetadataError::PalletNotFound, + subxt_metadata::NotFound::Item => MetadataError::CallNotFound, + } + }) }) } /// Obtain the unique hash for this metadata. pub fn metadata_hash>(&self, pallets: &[T]) -> [u8; 32] { - if let Some(hash) = *self.cached_metadata_hash.read() { + if let Some(hash) = *self.inner.cached_metadata_hash.read().unwrap() { return hash } @@ -206,7 +225,7 @@ impl Metadata { self.runtime_metadata(), pallets, ); - *self.cached_metadata_hash.write() = Some(hash); + *self.inner.cached_metadata_hash.write().unwrap() = Some(hash); hash } @@ -441,14 +460,16 @@ impl TryFrom for Metadata { .collect(); Ok(Metadata { - metadata, - pallets, - events, - errors, - cached_metadata_hash: Default::default(), - cached_call_hashes: Default::default(), - cached_constant_hashes: Default::default(), - cached_storage_hashes: Default::default(), + inner: Arc::new(MetadataInner { + metadata, + pallets, + events, + errors, + cached_metadata_hash: Default::default(), + cached_call_hashes: Default::default(), + cached_constant_hashes: Default::default(), + cached_storage_hashes: Default::default(), + }), }) } } @@ -526,9 +547,12 @@ mod tests { let hash = metadata.metadata_hash(&["System"]); // Check inner caching. - assert_eq!(metadata.cached_metadata_hash.read().unwrap(), hash); + assert_eq!( + metadata.inner.cached_metadata_hash.read().unwrap().unwrap(), + hash + ); - // The cache `metadata.cached_metadata_hash` is already populated from + // The cache `metadata.inner.cached_metadata_hash` is already populated from // the previous call. Therefore, changing the pallets argument must not // change the methods behavior. let hash_old = metadata.metadata_hash(&["no-pallet"]); @@ -549,7 +573,7 @@ mod tests { let hash = metadata.call_hash::(); let mut call_number = 0; - let hash_cached = metadata.cached_call_hashes.get_or_insert( + let hash_cached = metadata.inner.cached_call_hashes.get_or_insert( "System", "fill_block", || -> Result<[u8; 32], MetadataError> { @@ -570,7 +594,7 @@ mod tests { let hash = metadata.constant_hash("System", "BlockWeights"); let mut call_number = 0; - let hash_cached = metadata.cached_constant_hashes.get_or_insert( + let hash_cached = metadata.inner.cached_constant_hashes.get_or_insert( "System", "BlockWeights", || -> Result<[u8; 32], MetadataError> { @@ -603,7 +627,7 @@ mod tests { let hash = metadata.storage_hash::(); let mut call_number = 0; - let hash_cached = metadata.cached_storage_hashes.get_or_insert( + let hash_cached = metadata.inner.cached_storage_hashes.get_or_insert( "System", "Account", || -> Result<[u8; 32], MetadataError> { From aef753cc3c23d38cbac32bde5b4f313a981af504 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 5 May 2022 17:05:13 +0300 Subject: [PATCH 29/35] Use parking lot instead of std::RwLock Signed-off-by: Alexandru Vasile --- subxt/src/metadata/metadata_type.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/subxt/src/metadata/metadata_type.rs b/subxt/src/metadata/metadata_type.rs index a11329b294..149ad7de0a 100644 --- a/subxt/src/metadata/metadata_type.rs +++ b/subxt/src/metadata/metadata_type.rs @@ -25,6 +25,7 @@ use frame_metadata::{ StorageEntryMetadata, META_RESERVED, }; +use parking_lot::RwLock; use scale_info::{ form::PortableForm, Type, @@ -33,10 +34,7 @@ use scale_info::{ use std::{ collections::HashMap, convert::TryFrom, - sync::{ - Arc, - RwLock, - }, + sync::Arc, }; /// Metadata error. @@ -217,7 +215,7 @@ impl Metadata { /// Obtain the unique hash for this metadata. pub fn metadata_hash>(&self, pallets: &[T]) -> [u8; 32] { - if let Some(hash) = *self.inner.cached_metadata_hash.read().unwrap() { + if let Some(hash) = *self.inner.cached_metadata_hash.read() { return hash } @@ -225,7 +223,7 @@ impl Metadata { self.runtime_metadata(), pallets, ); - *self.inner.cached_metadata_hash.write().unwrap() = Some(hash); + *self.inner.cached_metadata_hash.write() = Some(hash); hash } @@ -548,7 +546,7 @@ mod tests { let hash = metadata.metadata_hash(&["System"]); // Check inner caching. assert_eq!( - metadata.inner.cached_metadata_hash.read().unwrap().unwrap(), + metadata.inner.cached_metadata_hash.read().unwrap(), hash ); From 68bf00df49dd4cde73307f3d1b6c18ab4c590c85 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 5 May 2022 17:23:26 +0300 Subject: [PATCH 30/35] subxt: Reduce lock metadata time when decoding events Signed-off-by: Alexandru Vasile --- subxt/src/events/events_type.rs | 19 +++++++++++++------ subxt/src/metadata/metadata_type.rs | 5 +---- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/subxt/src/events/events_type.rs b/subxt/src/events/events_type.rs index 57954e1a2d..951dcfe391 100644 --- a/subxt/src/events/events_type.rs +++ b/subxt/src/events/events_type.rs @@ -185,6 +185,11 @@ impl<'a, T: Config, Evs: Decode> Events { ) -> impl Iterator> + '_ { let event_bytes = &self.event_bytes; + let metadata = { + let metadata = self.metadata.read(); + metadata.clone() + }; + let mut pos = 0; let mut index = 0; std::iter::from_fn(move || { @@ -194,8 +199,7 @@ impl<'a, T: Config, Evs: Decode> Events { if start_len == 0 || self.num_events == index { None } else { - match decode_raw_event_details::(self.metadata.clone(), index, cursor) - { + match decode_raw_event_details::(&metadata, index, cursor) { Ok(raw_event) => { // Skip over decoded bytes in next iteration: pos += start_len - cursor.len(); @@ -231,6 +235,11 @@ impl<'a, T: Config, Evs: Decode> Events { ) -> impl Iterator> + 'a { let mut pos = 0; let mut index = 0; + let metadata = { + let metadata = self.metadata.read(); + metadata.clone() + }; + std::iter::from_fn(move || { let cursor = &mut &self.event_bytes[pos..]; let start_len = cursor.len(); @@ -238,8 +247,7 @@ impl<'a, T: Config, Evs: Decode> Events { if start_len == 0 || self.num_events == index { None } else { - match decode_raw_event_details::(self.metadata.clone(), index, cursor) - { + match decode_raw_event_details::(&metadata, index, cursor) { Ok(raw_event) => { // Skip over decoded bytes in next iteration: pos += start_len - cursor.len(); @@ -335,7 +343,7 @@ impl RawEventDetails { // Attempt to dynamically decode a single event from our events input. fn decode_raw_event_details( - metadata: Arc>, + metadata: &Metadata, index: u32, input: &mut &[u8], ) -> Result { @@ -352,7 +360,6 @@ fn decode_raw_event_details( log::debug!("remaining input: {}", hex::encode(&input)); // Get metadata for the event: - let metadata = metadata.read(); let event_metadata = metadata.event(pallet_index, variant_index)?; log::debug!( "Decoding Event '{}::{}'", diff --git a/subxt/src/metadata/metadata_type.rs b/subxt/src/metadata/metadata_type.rs index 149ad7de0a..2d121801e7 100644 --- a/subxt/src/metadata/metadata_type.rs +++ b/subxt/src/metadata/metadata_type.rs @@ -545,10 +545,7 @@ mod tests { let hash = metadata.metadata_hash(&["System"]); // Check inner caching. - assert_eq!( - metadata.inner.cached_metadata_hash.read().unwrap(), - hash - ); + assert_eq!(metadata.inner.cached_metadata_hash.read().unwrap(), hash); // The cache `metadata.inner.cached_metadata_hash` is already populated from // the previous call. Therefore, changing the pallets argument must not From 43f00c92a31729da5d5b67c107e4a68bbfd0a8e4 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Mon, 9 May 2022 19:08:19 +0300 Subject: [PATCH 31/35] codegen: Update `validate_metdata` locking pattern Signed-off-by: Alexandru Vasile --- codegen/src/api/mod.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 6ecd296f48..f770f4a233 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -312,9 +312,12 @@ impl RuntimeGenerator { X: ::subxt::extrinsic::ExtrinsicParams, { pub fn validate_metadata(&'a self) -> Result<(), ::subxt::MetadataError> { - let locked_metadata = self.client.metadata(); - let metadata = locked_metadata.read(); - if metadata.metadata_hash(&PALLETS) != [ #(#metadata_hash,)* ] { + let runtime_metadata_hash = { + let locked_metadata = self.client.metadata(); + let metadata = locked_metadata.read(); + metadata.metadata_hash(&PALLETS) + }; + if runtime_metadata_hash != [ #(#metadata_hash,)* ] { Err(::subxt::MetadataError::IncompatibleMetadata) } else { Ok(()) From 3a390aeb6f31001b0a8030c58baac908c62f65f1 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Mon, 9 May 2022 19:11:49 +0300 Subject: [PATCH 32/35] subxt/examples: Update polkadot download link Signed-off-by: Alexandru Vasile --- examples/examples/balance_transfer.rs | 2 +- examples/examples/balance_transfer_with_params.rs | 2 +- examples/examples/custom_config.rs | 2 +- examples/examples/fetch_all_accounts.rs | 2 +- examples/examples/fetch_staking_details.rs | 2 +- examples/examples/metadata_compatibility.rs | 2 +- examples/examples/rpc_call.rs | 2 +- examples/examples/submit_and_watch.rs | 2 +- examples/examples/subscribe_all_events.rs | 2 +- examples/examples/subscribe_one_event.rs | 2 +- examples/examples/subscribe_runtime_updates.rs | 2 +- examples/examples/subscribe_some_events.rs | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/examples/balance_transfer.rs b/examples/examples/balance_transfer.rs index 21f64435ed..b4e4fea682 100644 --- a/examples/examples/balance_transfer.rs +++ b/examples/examples/balance_transfer.rs @@ -18,7 +18,7 @@ //! //! E.g. //! ```bash -//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.13/polkadot" --output /usr/local/bin/polkadot --location +//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.18/polkadot" --output /usr/local/bin/polkadot --location //! polkadot --dev --tmp //! ``` diff --git a/examples/examples/balance_transfer_with_params.rs b/examples/examples/balance_transfer_with_params.rs index 9d00eacaa8..754bba54a1 100644 --- a/examples/examples/balance_transfer_with_params.rs +++ b/examples/examples/balance_transfer_with_params.rs @@ -18,7 +18,7 @@ //! //! E.g. //! ```bash -//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.13/polkadot" --output /usr/local/bin/polkadot --location +//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.18/polkadot" --output /usr/local/bin/polkadot --location //! polkadot --dev --tmp //! ``` diff --git a/examples/examples/custom_config.rs b/examples/examples/custom_config.rs index 27adb892a1..d7ecb877e8 100644 --- a/examples/examples/custom_config.rs +++ b/examples/examples/custom_config.rs @@ -18,7 +18,7 @@ //! //! E.g. //! ```bash -//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.13/polkadot" --output /usr/local/bin/polkadot --location +//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.18/polkadot" --output /usr/local/bin/polkadot --location //! polkadot --dev --tmp //! ``` diff --git a/examples/examples/fetch_all_accounts.rs b/examples/examples/fetch_all_accounts.rs index 32c0818f34..9dfc487823 100644 --- a/examples/examples/fetch_all_accounts.rs +++ b/examples/examples/fetch_all_accounts.rs @@ -18,7 +18,7 @@ //! //! E.g. //! ```bash -//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.13/polkadot" --output /usr/local/bin/polkadot --location +//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.18/polkadot" --output /usr/local/bin/polkadot --location //! polkadot --dev --tmp //! ``` diff --git a/examples/examples/fetch_staking_details.rs b/examples/examples/fetch_staking_details.rs index 180f210397..b4c1db1ee7 100644 --- a/examples/examples/fetch_staking_details.rs +++ b/examples/examples/fetch_staking_details.rs @@ -18,7 +18,7 @@ //! //! E.g. //! ```bash -//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.13/polkadot" --output /usr/local/bin/polkadot --location +//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.18/polkadot" --output /usr/local/bin/polkadot --location //! polkadot --dev --tmp //! ``` diff --git a/examples/examples/metadata_compatibility.rs b/examples/examples/metadata_compatibility.rs index a660bb9d14..707ae3a5f3 100644 --- a/examples/examples/metadata_compatibility.rs +++ b/examples/examples/metadata_compatibility.rs @@ -18,7 +18,7 @@ //! //! E.g. //! ```bash -//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.13/polkadot" --output /usr/local/bin/polkadot --location +//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.18/polkadot" --output /usr/local/bin/polkadot --location //! polkadot --dev --tmp //! ``` diff --git a/examples/examples/rpc_call.rs b/examples/examples/rpc_call.rs index 414a1d2f25..06f49798d2 100644 --- a/examples/examples/rpc_call.rs +++ b/examples/examples/rpc_call.rs @@ -18,7 +18,7 @@ //! //! E.g. //! ```bash -//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.13/polkadot" --output /usr/local/bin/polkadot --location +//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.18/polkadot" --output /usr/local/bin/polkadot --location //! polkadot --dev --tmp //! ``` diff --git a/examples/examples/submit_and_watch.rs b/examples/examples/submit_and_watch.rs index c41d7541ef..a64690ede6 100644 --- a/examples/examples/submit_and_watch.rs +++ b/examples/examples/submit_and_watch.rs @@ -18,7 +18,7 @@ //! //! E.g. //! ```bash -//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.13/polkadot" --output /usr/local/bin/polkadot --location +//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.18/polkadot" --output /usr/local/bin/polkadot --location //! polkadot --dev --tmp //! ``` diff --git a/examples/examples/subscribe_all_events.rs b/examples/examples/subscribe_all_events.rs index 304cf4bd59..6a3dfdb479 100644 --- a/examples/examples/subscribe_all_events.rs +++ b/examples/examples/subscribe_all_events.rs @@ -18,7 +18,7 @@ //! //! E.g. //! ```bash -//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.13/polkadot" --output /usr/local/bin/polkadot --location +//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.18/polkadot" --output /usr/local/bin/polkadot --location //! polkadot --dev --tmp //! ``` diff --git a/examples/examples/subscribe_one_event.rs b/examples/examples/subscribe_one_event.rs index 1d09071a25..d0c9633e6c 100644 --- a/examples/examples/subscribe_one_event.rs +++ b/examples/examples/subscribe_one_event.rs @@ -18,7 +18,7 @@ //! //! E.g. //! ```bash -//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.13/polkadot" --output /usr/local/bin/polkadot --location +//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.18/polkadot" --output /usr/local/bin/polkadot --location //! polkadot --dev --tmp //! ``` diff --git a/examples/examples/subscribe_runtime_updates.rs b/examples/examples/subscribe_runtime_updates.rs index dbcef545f4..af33081beb 100644 --- a/examples/examples/subscribe_runtime_updates.rs +++ b/examples/examples/subscribe_runtime_updates.rs @@ -18,7 +18,7 @@ //! //! E.g. //! ```bash -//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.13/polkadot" --output /usr/local/bin/polkadot --location +//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.18/polkadot" --output /usr/local/bin/polkadot --location //! polkadot --dev --tmp //! ``` diff --git a/examples/examples/subscribe_some_events.rs b/examples/examples/subscribe_some_events.rs index 2e253ad16c..3c999e8e3d 100644 --- a/examples/examples/subscribe_some_events.rs +++ b/examples/examples/subscribe_some_events.rs @@ -18,7 +18,7 @@ //! //! E.g. //! ```bash -//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.13/polkadot" --output /usr/local/bin/polkadot --location +//! curl "https://github.com/paritytech/polkadot/releases/download/v0.9.18/polkadot" --output /usr/local/bin/polkadot --location //! polkadot --dev --tmp //! ``` From b9f9d0c4f351594088da5428f56f80ff76e24168 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Mon, 9 May 2022 19:20:42 +0300 Subject: [PATCH 33/35] tests: Wrap metadata in a helper function Signed-off-by: Alexandru Vasile --- subxt/src/events/events_type.rs | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/subxt/src/events/events_type.rs b/subxt/src/events/events_type.rs index 951dcfe391..008257a89d 100644 --- a/subxt/src/events/events_type.rs +++ b/subxt/src/events/events_type.rs @@ -515,7 +515,6 @@ mod tests { event_record, events, events_raw, - metadata, AllEvents, }, *, @@ -524,6 +523,11 @@ mod tests { use codec::Encode; use scale_info::TypeInfo; + /// Build a fake wrapped metadata. + fn metadata() -> Arc> { + Arc::new(RwLock::new(test_utils::metadata::())) + } + #[test] fn statically_decode_single_event() { #[derive(Clone, Debug, PartialEq, Decode, Encode, TypeInfo)] @@ -532,8 +536,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); - + let metadata = metadata::(); // Encode our events in the format we expect back from a node, and // construct an Events object to iterate them: let events = events::( @@ -562,7 +565,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = metadata::(); // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: @@ -608,7 +611,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = metadata::(); // Encode 2 events: let mut event_bytes = vec![]; @@ -660,7 +663,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = metadata::(); // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: @@ -702,7 +705,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = metadata::(); // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: @@ -771,7 +774,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = metadata::(); // Encode 2 events: let mut event_bytes = vec![]; @@ -838,7 +841,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = metadata::(); // Encode our events in the format we expect back from a node, and // construst an Events object to iterate them: @@ -893,7 +896,7 @@ mod tests { struct CompactWrapper(u64); // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = metadata::(); // Encode our events in the format we expect back from a node, and // construct an Events object to iterate them: @@ -955,7 +958,7 @@ mod tests { } // Create fake metadata that knows about our single event, above: - let metadata = Arc::new(RwLock::new(metadata::())); + let metadata = metadata::(); // Encode our events in the format we expect back from a node, and // construct an Events object to iterate them: From b1692cdfbe25292969d6e5f0ed532f12921d784c Mon Sep 17 00:00:00 2001 From: Alexandru Vasile <60601340+lexnv@users.noreply.github.com> Date: Tue, 10 May 2022 10:24:00 +0300 Subject: [PATCH 34/35] Update examples/examples/subscribe_runtime_updates.rs Co-authored-by: James Wilson --- examples/examples/subscribe_runtime_updates.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/examples/subscribe_runtime_updates.rs b/examples/examples/subscribe_runtime_updates.rs index af33081beb..2b97397037 100644 --- a/examples/examples/subscribe_runtime_updates.rs +++ b/examples/examples/subscribe_runtime_updates.rs @@ -53,12 +53,10 @@ async fn main() -> Result<(), Box> { // Make multiple transfers to simulate a long running `subxt::Client` use-case. // - // Meanwhile, the tokio task will perform any necessary updates to ensure - // that submitted extrinsics are still valid. - // - // Ideally, the polkadot node should perform a few runtime updates - // For more details on how to perform updates on a node, please follow: - // https://docs.substrate.io/tutorials/v3/forkless-upgrades/ + // Meanwhile, the tokio task above will perform any necessary updates to keep in sync + // with the node we've connected to. Transactions submitted in the vicinity of a runtime + // update may still fail, however, owing to a race between the update happening and + // subxt synchronising its internal state with it. let signer = PairSigner::new(AccountKeyring::Alice.pair()); // Make small balance transfers from Alice to Bob: for _ in 0..10 { From 00827ac3be31baec85d93c73a7076e2ff2941584 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Tue, 10 May 2022 10:41:03 +0300 Subject: [PATCH 35/35] subxt/updates: Update runtime if version is different Signed-off-by: Alexandru Vasile --- subxt/src/updates.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/subxt/src/updates.rs b/subxt/src/updates.rs index cef4bde9ee..dd7638d5ea 100644 --- a/subxt/src/updates.rs +++ b/subxt/src/updates.rs @@ -60,17 +60,19 @@ impl UpdateClient { // The Runtime Version obtained via subscription. let update_runtime_version = update_runtime_version?; - // Ensure that the provided Runtime Version can be applied to the current - // version of the client. There are cases when the subscription to the - // Runtime Version of the node would produce spurious update events. + // To ensure there are no races between: + // - starting the subxt::Client (fetching runtime version / metadata) + // - subscribing to the runtime updates + // the node provides its runtime version immediately after subscribing. + // // In those cases, set the Runtime Version on the client if and only if - // the provided runtime version is bigger than what the client currently + // the provided runtime version is different than what the client currently // has stored. { // The Runtime Version of the client, as set during building the client // or during updates. let runtime_version = self.runtime_version.read(); - if runtime_version.spec_version >= update_runtime_version.spec_version { + if runtime_version.spec_version == update_runtime_version.spec_version { log::debug!( "Runtime update not performed for spec_version={}, client has spec_version={}", update_runtime_version.spec_version, runtime_version.spec_version