diff --git a/codegen/src/api/calls.rs b/codegen/src/api/calls.rs index aa58dbcf6e..47f39fa57a 100644 --- a/codegen/src/api/calls.rs +++ b/codegen/src/api/calls.rs @@ -100,7 +100,12 @@ 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 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/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..f770f4a233 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -312,7 +312,12 @@ 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 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(()) @@ -341,7 +346,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..4a2c91c09f 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -271,7 +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> { - if self.client.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()) @@ -300,7 +305,12 @@ 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 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 { 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 new file mode 100644 index 0000000000..2b97397037 --- /dev/null +++ b/examples/examples/subscribe_runtime_updates.rs @@ -0,0 +1,80 @@ +// 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.18/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 = "../artifacts/polkadot_metadata.scale")] +pub mod polkadot {} + +#[tokio::main] +async fn main() -> Result<(), Box> { + env_logger::init(); + + 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 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 { + let hash = api + .tx() + .balances() + .transfer( + AccountKeyring::Bob.to_account_id().into(), + 123_456_789_012_345, + ) + .unwrap() + .sign_and_submit_default(&signer) + .await + .unwrap(); + + println!("Balance transfer extrinsic submitted: {}", hash); + tokio::time::sleep(Duration::from_secs(30)).await; + } + + Ok(()) +} 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 //! ``` 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; diff --git a/integration-tests/src/codegen/polkadot.rs b/integration-tests/src/codegen/polkadot.rs index d9dc9e17a8..b0fc05cdcd 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 :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] 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,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -286,7 +291,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -315,7 +325,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -355,7 +370,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -392,7 +412,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -424,7 +449,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -453,7 +483,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -486,7 +521,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -515,7 +555,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -534,7 +579,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 +588,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 +598,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 +614,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 +623,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 +824,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -804,7 +854,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Account<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -825,7 +880,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -849,7 +909,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -874,7 +939,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -895,7 +965,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::BasicError> { - if self.client.metadata().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, @@ -920,7 +995,12 @@ pub mod api { ::subxt::KeyIter<'a, T, BlockHash<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -942,7 +1022,12 @@ pub mod api { ::std::vec::Vec<::core::primitive::u8>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -967,7 +1052,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ExtrinsicData<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -986,7 +1076,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -1009,7 +1104,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::BasicError> { - if self.client.metadata().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, @@ -1034,7 +1134,12 @@ pub mod api { runtime_types::sp_runtime::generic::digest::Digest, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -1067,7 +1172,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -1090,7 +1200,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -1125,7 +1240,12 @@ pub mod api { ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -1159,7 +1279,12 @@ pub mod api { ::subxt::KeyIter<'a, T, EventTopics<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -1182,10 +1307,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -1205,10 +1332,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -1232,10 +1361,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -1260,7 +1391,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -1292,18 +1428,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 +1454,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 +1478,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 +1504,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 +1530,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 +1558,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 +1591,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 +1610,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 +1619,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 +1639,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 +1647,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 +1666,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 +1725,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -1624,7 +1765,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -1663,7 +1809,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -1698,7 +1849,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -1740,7 +1896,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -1788,7 +1949,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -1813,7 +1979,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 +1989,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 +1999,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 +2011,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 +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 >{ - if self.client.metadata().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, @@ -1928,7 +2099,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Agenda<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -1953,7 +2129,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -1975,7 +2156,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Lookup<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -2005,18 +2191,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 +2216,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 +2249,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 +2257,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 +2265,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 +2273,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 +2314,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -2159,7 +2348,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -2191,7 +2385,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -2222,7 +2421,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -2241,7 +2445,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 +2454,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 +2463,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 +2526,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -2344,7 +2553,12 @@ pub mod api { ::subxt::KeyIter<'a, T, StatusFor<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -2370,7 +2584,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -2392,7 +2611,12 @@ pub mod api { ::subxt::KeyIter<'a, T, PreimageFor<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -2419,7 +2643,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 +2660,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 +2677,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 +2720,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -2538,10 +2767,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -2578,7 +2809,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -2760,7 +2996,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self.client.metadata().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, @@ -2778,7 +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 >{ - if self.client.metadata().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, @@ -2804,7 +3050,12 @@ pub mod api { runtime_types::sp_consensus_slots::Slot, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -2829,7 +3080,12 @@ pub mod api { runtime_types::sp_consensus_slots::Slot, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -2863,7 +3119,12 @@ pub mod api { [::core::primitive::u8; 32usize], ::subxt::BasicError, > { - if self.client.metadata().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, @@ -2890,10 +3151,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -2915,7 +3178,12 @@ pub mod api { [::core::primitive::u8; 32usize], ::subxt::BasicError, > { - if self.client.metadata().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, @@ -2933,7 +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 >{ - if self.client.metadata().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, @@ -2964,7 +3237,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -2992,7 +3270,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -3017,7 +3300,12 @@ pub mod api { ::subxt::KeyIter<'a, T, UnderConstruction<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -3041,7 +3329,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -3066,10 +3359,12 @@ pub mod api { ::core::option::Option<[::core::primitive::u8; 32usize]>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -3098,7 +3393,12 @@ pub mod api { (::core::primitive::u32, ::core::primitive::u32), ::subxt::BasicError, > { - if self.client.metadata().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, @@ -3125,7 +3425,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -3153,7 +3458,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -3178,7 +3488,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -3210,18 +3525,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 +3553,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 +3577,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 +3610,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 +3664,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -3401,7 +3718,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self.client.metadata().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, @@ -3424,7 +3746,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self.client.metadata().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, @@ -3460,18 +3787,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 +3821,10 @@ pub mod api { }; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct Claim { pub index: ::core::primitive::u32, @@ -3507,7 +3833,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 +3843,10 @@ pub mod api { const FUNCTION: &'static str = "transfer"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct Free { pub index: ::core::primitive::u32, @@ -3529,7 +3855,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 +3866,10 @@ pub mod api { const FUNCTION: &'static str = "force_transfer"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct Freeze { pub index: ::core::primitive::u32, @@ -3599,7 +3925,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -3648,7 +3979,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -3694,7 +4030,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -3745,7 +4086,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -3791,7 +4137,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -3810,7 +4161,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 +4172,10 @@ pub mod api { const EVENT: &'static str = "IndexAssigned"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "A account index has been freed up (unassigned)."] pub struct IndexFreed { @@ -3834,7 +4185,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 +4234,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -3905,7 +4261,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Accounts<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -3934,15 +4295,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 +4328,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 +4341,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 +4356,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 +4373,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 +4386,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 +4398,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 +4468,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -4146,7 +4514,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -4192,7 +4565,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -4234,7 +4612,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -4283,7 +4666,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -4318,7 +4706,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -4337,7 +4730,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 +4740,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 +4751,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 +4762,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 +4773,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 +4783,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 +4793,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 +4807,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 +4817,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 +4827,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 +4914,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self.client.metadata().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, @@ -4570,7 +4968,12 @@ pub mod api { runtime_types::pallet_balances::AccountData<::core::primitive::u128>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -4618,7 +5021,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Account<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -4633,7 +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 >{ - if self.client.metadata().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, @@ -4659,7 +5072,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Locks<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -4686,7 +5104,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -4711,7 +5134,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Reserves<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -4734,7 +5162,12 @@ pub mod api { runtime_types::pallet_balances::Releases, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -4767,18 +5200,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 +5225,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 +5249,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 +5310,12 @@ pub mod api { runtime_types::sp_arithmetic::fixed_point::FixedU128, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -4904,7 +5339,12 @@ pub mod api { runtime_types::pallet_transaction_payment::Releases, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -4937,19 +5377,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 +5422,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 +5453,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 +5486,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 +5534,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -5170,7 +5611,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -5195,7 +5641,12 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -5215,7 +5666,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self.client.metadata().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, @@ -5250,18 +5706,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 +5739,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 +5755,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 +5764,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 +5774,10 @@ pub mod api { const FUNCTION: &'static str = "unbond"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct WithdrawUnbonded { pub num_slashing_spans: ::core::primitive::u32, @@ -5331,7 +5786,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 +5794,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 +5807,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 +5823,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 +5834,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 +5843,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 +5852,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 +5860,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 +5880,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 +5889,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 +5904,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 +5913,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 +5922,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 +5933,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 +5942,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 +5955,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 +5986,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 +5994,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 +6055,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -5647,7 +6107,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -5694,7 +6159,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -5737,7 +6207,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -5770,7 +6245,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -5814,7 +6294,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -5852,7 +6337,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -5898,7 +6388,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -5945,7 +6440,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -5981,7 +6481,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -6016,10 +6521,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -6054,7 +6561,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -6096,7 +6608,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -6139,7 +6656,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -6170,7 +6692,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -6202,7 +6729,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -6241,7 +6773,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -6275,7 +6812,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -6325,7 +6867,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -6365,7 +6912,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -6416,7 +6968,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -6460,7 +7017,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -6507,7 +7069,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -6557,7 +7124,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -6618,7 +7190,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -6649,10 +7226,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -6671,7 +7250,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 +7263,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 +7273,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 +7285,10 @@ pub mod api { const EVENT: &'static str = "Slashed"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "An old slashing report from a prior era was discarded because it could"] #[doc = "not be processed. \\[session_index\\]"] @@ -6718,14 +7297,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 +7317,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 +7327,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 +7338,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 +7348,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 +7363,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 +7870,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -7314,7 +7898,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -7337,10 +7926,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -7367,7 +7958,12 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -7393,7 +7989,12 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -7415,7 +8016,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Bonded<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -7434,7 +8040,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self.client.metadata().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, @@ -7457,7 +8068,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self.client.metadata().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, @@ -7484,7 +8100,12 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -7515,7 +8136,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -7537,7 +8163,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Ledger<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -7561,7 +8192,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -7586,7 +8222,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Payee<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -7608,7 +8249,12 @@ pub mod api { runtime_types::pallet_staking::ValidatorPrefs, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -7633,7 +8279,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Validators<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -7652,10 +8303,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -7682,10 +8335,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -7723,7 +8378,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -7760,7 +8420,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Nominators<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -7779,10 +8444,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -7809,10 +8476,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -7837,7 +8506,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -7862,7 +8536,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -7888,10 +8567,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -7916,10 +8597,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasStartSessionIndex<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -7950,7 +8633,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -7980,7 +8668,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasStakers<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -8016,10 +8709,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -8054,10 +8749,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasStakersClipped<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -8084,10 +8781,12 @@ pub mod api { runtime_types::pallet_staking::ValidatorPrefs, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -8116,10 +8815,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasValidatorPrefs<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -8143,10 +8844,12 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -8170,10 +8873,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasValidatorReward<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -8198,7 +8903,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -8224,7 +8934,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasRewardPoints<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -8245,7 +8960,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self.client.metadata().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, @@ -8271,7 +8991,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ErasTotalStake<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -8292,7 +9017,12 @@ pub mod api { runtime_types::pallet_staking::Forcing, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -8319,10 +9049,12 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -8346,10 +9078,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -8380,7 +9114,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -8405,7 +9144,12 @@ pub mod api { ::subxt::KeyIter<'a, T, UnappliedSlashes<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -8429,7 +9173,12 @@ pub mod api { ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -8460,10 +9209,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -8486,10 +9237,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ValidatorSlashInEra<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -8512,10 +9265,12 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -8537,10 +9292,12 @@ pub mod api { ::subxt::KeyIter<'a, T, NominatorSlashInEra<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -8564,7 +9321,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -8586,7 +9348,12 @@ pub mod api { ::subxt::KeyIter<'a, T, SlashingSpans<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -8612,7 +9379,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -8638,7 +9410,12 @@ pub mod api { ::subxt::KeyIter<'a, T, SpanSlash<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -8659,10 +9436,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -8684,10 +9463,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -8720,10 +9501,12 @@ pub mod api { ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::bool)>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -8751,7 +9534,12 @@ pub mod api { runtime_types::pallet_staking::Releases, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -8780,7 +9568,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -8810,18 +9603,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 +9627,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 +9651,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 +9678,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 +9705,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 +9732,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 +9762,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 +9858,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -9092,7 +9885,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Reports<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -9115,10 +9913,12 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::H256>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -9143,10 +9943,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ConcurrentReportsIndex<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -9173,10 +9975,12 @@ pub mod api { ::std::vec::Vec<::core::primitive::u8>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -9206,10 +10010,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ReportsByKindIndex<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -9242,7 +10048,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 +10057,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 +10107,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -9344,7 +10155,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -9364,10 +10180,10 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[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 +10287,12 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -9494,7 +10315,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -9518,7 +10344,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self.client.metadata().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, @@ -9547,7 +10378,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -9576,10 +10412,12 @@ pub mod api { ::std::vec::Vec<::core::primitive::u32>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -9605,7 +10443,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -9627,7 +10470,12 @@ pub mod api { ::subxt::KeyIter<'a, T, NextKeys<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -9650,7 +10498,12 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -9672,7 +10525,12 @@ pub mod api { ::subxt::KeyIter<'a, T, KeyOwner<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -9699,7 +10557,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 +10571,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 +10585,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 +10628,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -9813,10 +10676,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -9857,7 +10722,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -9879,7 +10749,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 +10761,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 +10853,12 @@ pub mod api { runtime_types::pallet_grandpa::StoredState<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -10012,7 +10887,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -10034,7 +10914,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -10059,7 +10944,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -10080,7 +10970,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self.client.metadata().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, @@ -10109,7 +11004,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -10134,7 +11034,12 @@ pub mod api { ::subxt::KeyIter<'a, T, SetIdSession<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -10163,18 +11068,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 +11101,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 +11153,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -10271,7 +11180,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 +11190,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 +11300,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -10409,7 +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 >{ - if self.client.metadata().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, @@ -10441,10 +11360,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -10467,10 +11388,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ReceivedHeartbeats<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -10492,7 +11415,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -10518,7 +11446,12 @@ pub mod api { ::subxt::KeyIter<'a, T, AuthoredBlocks<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -10550,18 +11483,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 +11522,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 +11532,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 +11543,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 +11556,10 @@ pub mod api { const FUNCTION: &'static str = "vote"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct EmergencyCancel { pub ref_index: ::core::primitive::u32, @@ -10636,7 +11568,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 +11576,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 +11584,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 +11592,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 +11602,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 +11610,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 +11620,10 @@ pub mod api { const FUNCTION: &'static str = "cancel_referendum"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct CancelQueued { pub which: ::core::primitive::u32, @@ -10700,7 +11632,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 +11642,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 +11662,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 +11670,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 +11678,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 +11686,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 +11696,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 +11705,10 @@ pub mod api { const FUNCTION: &'static str = "unlock"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct RemoveVote { pub index: ::core::primitive::u32, @@ -10785,7 +11717,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 +11726,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 +11735,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 +11744,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 +11794,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -10904,7 +11841,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -10947,7 +11889,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -10983,7 +11930,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11020,7 +11972,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11059,10 +12016,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -11101,10 +12060,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -11149,7 +12110,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11190,7 +12156,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11225,7 +12196,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11260,7 +12236,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11310,7 +12291,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11353,7 +12339,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11385,7 +12376,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11423,7 +12419,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11452,10 +12453,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -11495,7 +12498,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11524,10 +12532,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -11571,7 +12581,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11609,7 +12624,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11664,7 +12684,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11708,7 +12733,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11738,7 +12768,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11785,7 +12820,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11823,7 +12863,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -11842,7 +12887,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 +12897,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 +12908,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 +12927,10 @@ pub mod api { const EVENT: &'static str = "Started"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "A proposal has been approved by referendum."] pub struct Passed { @@ -11896,10 +12941,10 @@ pub mod api { const EVENT: &'static str = "Passed"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "A proposal has been rejected by referendum."] pub struct NotPassed { @@ -11910,10 +12955,10 @@ pub mod api { const EVENT: &'static str = "NotPassed"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "A referendum has been cancelled."] pub struct Cancelled { @@ -11923,7 +12968,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 +12979,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 +12989,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 +12998,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 +13009,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 +13020,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 +13031,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 +13041,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 +13051,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 +13063,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 +13072,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 +13085,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 +13271,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -12255,7 +13305,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -12286,7 +13341,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -12310,7 +13370,12 @@ pub mod api { ::subxt::KeyIter<'a, T, DepositOf<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -12339,7 +13404,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -12362,7 +13432,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Preimages<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -12381,7 +13456,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -12405,7 +13485,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -12439,7 +13524,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -12463,7 +13553,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ReferendumInfoOf<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -12492,7 +13587,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -12520,7 +13620,12 @@ pub mod api { ::subxt::KeyIter<'a, T, VotingOf<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -12540,10 +13645,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -12574,7 +13681,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -12601,7 +13713,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -12624,7 +13741,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Blacklist<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -12644,7 +13766,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self.client.metadata().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, @@ -12669,7 +13796,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Cancellations<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -12692,7 +13824,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -12726,18 +13863,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 +13887,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 +13911,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 +13938,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 +13962,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 +13988,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 +14012,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 +14036,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 +14060,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 +14087,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 +14111,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 +14144,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 +14154,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 +14164,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 +14176,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 +14187,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 +14201,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 +14272,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -13190,7 +14321,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -13250,7 +14386,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -13299,7 +14440,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -13366,7 +14512,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -13413,7 +14564,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -13432,7 +14588,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 +14601,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 +14615,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 +14624,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 +14633,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 +14644,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 +14655,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 +14752,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -13622,7 +14783,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -13644,7 +14810,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ProposalOf<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -13671,7 +14842,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -13693,7 +14869,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Voting<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -13712,7 +14893,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -13737,7 +14923,12 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -13762,7 +14953,12 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -13790,7 +14986,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 +14996,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 +15006,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 +15018,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 +15029,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 +15043,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 +15114,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -13962,7 +15163,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14022,7 +15228,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14071,7 +15282,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14138,7 +15354,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14185,7 +15406,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14204,7 +15430,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 +15443,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 +15457,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 +15466,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 +15475,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 +15486,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 +15497,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 +15594,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14394,7 +15625,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14416,7 +15652,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ProposalOf<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14443,7 +15684,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14465,7 +15711,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Voting<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14484,7 +15735,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -14509,7 +15765,12 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14534,7 +15795,12 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14562,7 +15828,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 +15838,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 +15853,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 +15861,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 +15873,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 +15935,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14701,7 +15972,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14744,7 +16020,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14790,7 +16071,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14836,7 +16122,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14878,7 +16169,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -14900,7 +16196,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 +16212,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 +16220,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 +16237,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 +16246,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 +16259,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 +16358,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -15095,7 +16396,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -15128,7 +16434,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -15151,7 +16462,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -15182,7 +16498,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -15209,7 +16530,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Voting<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -15240,18 +16566,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 +16590,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 +16617,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 +16641,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 +16665,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 +16689,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 +16715,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 +16748,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 +16756,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 +16764,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 +16773,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 +16781,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 +16789,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 +16797,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 +16835,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -15547,7 +16871,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -15581,7 +16910,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -15613,7 +16947,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -15646,7 +16985,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -15677,7 +17021,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -15707,7 +17056,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -15726,42 +17080,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 +17158,12 @@ pub mod api { ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -15829,7 +17188,12 @@ pub mod api { ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -15857,7 +17221,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 +17234,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 +17243,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 +17294,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -15967,7 +17336,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -16005,7 +17379,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -16025,10 +17404,10 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "New proposal."] pub struct Proposed { @@ -16039,10 +17418,10 @@ pub mod api { const EVENT: &'static str = "Proposed"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "We have ended a spend period and will now allocate funds."] pub struct Spending { @@ -16052,7 +17431,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 +17442,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 +17453,10 @@ pub mod api { const EVENT: &'static str = "Rejected"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "Some of our funds have been burnt."] pub struct Burnt { @@ -16088,10 +17467,10 @@ pub mod api { const EVENT: &'static str = "Burnt"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "Spending has finished; this is the amount that rolls over until next spend."] pub struct Rollover { @@ -16102,10 +17481,10 @@ pub mod api { const EVENT: &'static str = "Rollover"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "Some funds have been deposited."] pub struct Deposit { @@ -16167,7 +17546,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -16198,7 +17582,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -16220,7 +17609,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Proposals<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -16243,7 +17637,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -16279,18 +17678,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 +17702,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 +17728,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 +17752,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 +17778,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 +17804,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 +17830,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 +17863,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 +17873,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 +17890,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 +17901,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 +17909,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 +17974,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -16634,7 +18034,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -16695,7 +18100,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -16744,7 +18154,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -16776,7 +18191,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -16799,7 +18219,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 +18317,12 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -16918,7 +18343,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Claims<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -16936,7 +18366,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self.client.metadata().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, @@ -16969,7 +18404,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -16994,7 +18434,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Vesting<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17018,7 +18463,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17040,7 +18490,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Signing<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17064,7 +18519,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17086,7 +18546,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Preclaims<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17116,15 +18581,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 +18614,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 +18631,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 +18646,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 +18665,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 +18715,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17294,7 +18766,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17346,7 +18823,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17403,7 +18885,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17457,7 +18944,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17479,7 +18971,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 +18982,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 +19044,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17574,7 +19071,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Vesting<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17597,7 +19099,12 @@ pub mod api { runtime_types::pallet_vesting::Releases, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17630,18 +19137,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 +19160,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 +19193,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 +19201,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 +19210,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 +19218,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 +19276,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17813,7 +19323,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17858,7 +19373,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17897,7 +19417,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -17919,7 +19444,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 +19455,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 +19494,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 +19527,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 +19535,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 +19545,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 +19556,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 +19574,10 @@ pub mod api { const FUNCTION: &'static str = "request_judgement"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct CancelRequest { pub reg_index: ::core::primitive::u32, @@ -18062,7 +19586,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 +19597,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 +19607,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 +19619,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 +19635,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 +19646,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 +19658,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 +19670,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 +19681,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 +19729,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -18252,7 +19781,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -18306,7 +19840,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -18351,7 +19890,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -18403,7 +19947,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -18448,7 +19997,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -18490,7 +20044,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -18532,7 +20091,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -18576,7 +20140,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -18630,7 +20199,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -18684,7 +20258,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -18723,7 +20302,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -18759,7 +20343,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -18797,7 +20386,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -18834,7 +20428,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -18853,7 +20452,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 +20461,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 +20471,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 +20481,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 +20491,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 +20501,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 +20512,10 @@ pub mod api { const EVENT: &'static str = "JudgementGiven"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "A registrar was added."] pub struct RegistrarAdded { @@ -18926,7 +20525,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 +20536,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 +20547,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 +20647,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -19072,7 +20676,12 @@ pub mod api { ::subxt::KeyIter<'a, T, IdentityOf<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -19098,7 +20707,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -19121,7 +20735,12 @@ pub mod api { ::subxt::KeyIter<'a, T, SuperOf<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -19152,7 +20771,12 @@ pub mod api { ), ::subxt::BasicError, > { - if self.client.metadata().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, @@ -19181,7 +20805,12 @@ pub mod api { ::subxt::KeyIter<'a, T, SubsOf<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -19212,7 +20841,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -19245,18 +20879,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 +20903,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 +20929,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 +20953,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 +20978,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 +21003,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 +21036,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 +21047,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 +21057,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 +21067,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 +21083,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 +21097,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 +21106,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 +21115,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 +21124,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 +21184,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -19603,7 +21236,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -19648,7 +21286,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -19689,7 +21332,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -19742,7 +21390,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -19798,7 +21451,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -19854,7 +21512,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -19899,7 +21562,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -19944,7 +21612,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -19997,7 +21670,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -20021,7 +21699,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 +21709,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 +21722,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 +21733,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 +21745,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 +21828,12 @@ pub mod api { ), ::subxt::BasicError, > { - if self.client.metadata().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, @@ -20176,7 +21859,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Proxies<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -20207,7 +21895,12 @@ pub mod api { ), ::subxt::BasicError, > { - if self.client.metadata().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, @@ -20232,7 +21925,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Announcements<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -20264,18 +21962,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 +21990,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 +22014,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 +22038,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 +22065,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 +22092,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 +22125,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 +22135,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 +22152,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 +22167,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 +22228,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -20623,7 +22320,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -20701,7 +22403,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -20768,7 +22475,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -20792,7 +22504,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 +22515,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 +22528,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 +22543,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 +22623,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -20933,7 +22650,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Multisigs<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -20958,7 +22680,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -20979,7 +22706,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Calls<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -21013,18 +22745,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 +22771,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 +22795,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 +22828,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 +22838,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 +22847,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 +22862,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 +22871,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 +22880,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 +22893,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 +22902,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 +22911,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 +22963,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -21270,7 +23004,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -21310,7 +23049,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -21360,7 +23104,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -21396,7 +23145,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -21439,7 +23193,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -21479,7 +23238,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -21517,7 +23281,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -21556,7 +23325,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -21576,10 +23350,10 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "New bounty proposal."] pub struct BountyProposed { @@ -21589,7 +23363,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 +23374,10 @@ pub mod api { const EVENT: &'static str = "BountyRejected"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "A bounty proposal is funded and became active."] pub struct BountyBecameActive { @@ -21613,7 +23387,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 +23397,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 +23409,10 @@ pub mod api { const EVENT: &'static str = "BountyClaimed"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "A bounty is cancelled."] pub struct BountyCanceled { @@ -21649,10 +23423,10 @@ pub mod api { const EVENT: &'static str = "BountyCanceled"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "A bounty expiry is extended."] pub struct BountyExtended { @@ -21730,7 +23504,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -21762,7 +23541,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -21784,7 +23568,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Bounties<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -21810,10 +23599,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -21835,10 +23626,12 @@ pub mod api { ::subxt::KeyIter<'a, T, BountyDescriptions<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -21861,7 +23654,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -21894,18 +23692,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 +23716,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 +23740,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 +23769,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 +23795,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 +23821,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 +23845,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 +23869,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 +23895,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 +23928,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 +23940,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 +23957,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 +23968,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 +23979,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 +23994,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 +24005,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 +24066,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -22330,7 +24124,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -22383,7 +24182,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -22449,7 +24253,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -22502,7 +24311,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -22551,7 +24365,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -22605,7 +24424,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -22627,7 +24451,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 +24461,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 +24472,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 +24484,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 +24583,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -22784,10 +24613,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -22813,10 +24644,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ParentChildBounties<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -22845,7 +24678,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -22867,7 +24705,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ChildBounties<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -22893,10 +24736,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -22918,10 +24763,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ChildBountyDescriptions<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -22941,10 +24788,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -22969,10 +24818,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ChildrenCuratorFees<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -23001,18 +24852,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 +24877,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 +24911,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 +24920,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 +24928,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 +24939,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 +24949,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 +24957,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 +25014,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -23210,7 +25066,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -23262,7 +25123,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -23319,7 +25185,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -23363,7 +25234,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -23403,7 +25279,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -23422,7 +25303,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 +25312,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 +25321,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 +25332,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 +25341,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 +25409,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -23552,7 +25438,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Tips<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -23575,7 +25466,12 @@ pub mod api { ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -23598,7 +25494,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Reasons<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -23629,18 +25530,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 +25554,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 +25578,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 +25604,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 +25628,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 +25661,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 +25677,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 +25690,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 +25702,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 +25755,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -23897,10 +25798,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -23941,10 +25844,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -23981,7 +25886,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -24016,7 +25926,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -24039,7 +25954,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 +25970,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 +25982,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 +25992,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 +26003,10 @@ pub mod api { const EVENT: &'static str = "Slashed"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "The signed phase of the given round has started."] pub struct SignedPhaseStarted { @@ -24102,10 +26017,10 @@ pub mod api { const EVENT: &'static str = "SignedPhaseStarted"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "The unsigned phase of the given round has started."] pub struct UnsignedPhaseStarted { @@ -24235,7 +26150,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -24262,7 +26182,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -24280,7 +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 >{ - if self.client.metadata().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, @@ -24297,7 +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 >{ - if self.client.metadata().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, @@ -24321,7 +26256,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -24338,7 +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 >{ - if self.client.metadata().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, @@ -24366,10 +26311,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -24392,10 +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 >{ - if self - .client - .metadata() - .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, @@ -24419,10 +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 >{ - if self - .client - .metadata() - .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, @@ -24450,10 +26401,12 @@ pub mod api { ::subxt::KeyIter<'a, T, SignedSubmissionsMap<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -24479,10 +26432,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -24512,21 +26467,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 +26492,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 +26520,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 +26548,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 +26573,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 +26601,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 +26632,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 +26659,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 +26684,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 +26709,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 +26734,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 +26759,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 +26786,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 +26811,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 +26839,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 +26873,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 +26881,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 +26926,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -25038,7 +26967,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -25057,7 +26991,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 +27056,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -25146,7 +27085,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ListNodes<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -25165,10 +27109,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -25196,7 +27142,12 @@ pub mod api { ::core::option::Option, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -25220,7 +27171,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ListBags<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -25293,18 +27249,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 +27289,10 @@ pub mod api { }; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetValidationUpgradeCooldown { pub new: ::core::primitive::u32, @@ -25347,10 +27302,10 @@ pub mod api { const FUNCTION: &'static str = "set_validation_upgrade_cooldown"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetValidationUpgradeDelay { pub new: ::core::primitive::u32, @@ -25360,10 +27315,10 @@ pub mod api { const FUNCTION: &'static str = "set_validation_upgrade_delay"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetCodeRetentionPeriod { pub new: ::core::primitive::u32, @@ -25373,10 +27328,10 @@ pub mod api { const FUNCTION: &'static str = "set_code_retention_period"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetMaxCodeSize { pub new: ::core::primitive::u32, @@ -25386,10 +27341,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_code_size"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetMaxPovSize { pub new: ::core::primitive::u32, @@ -25399,10 +27354,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_pov_size"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetMaxHeadDataSize { pub new: ::core::primitive::u32, @@ -25412,10 +27367,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_head_data_size"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetParathreadCores { pub new: ::core::primitive::u32, @@ -25425,10 +27380,10 @@ pub mod api { const FUNCTION: &'static str = "set_parathread_cores"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetParathreadRetries { pub new: ::core::primitive::u32, @@ -25438,10 +27393,10 @@ pub mod api { const FUNCTION: &'static str = "set_parathread_retries"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetGroupRotationFrequency { pub new: ::core::primitive::u32, @@ -25451,10 +27406,10 @@ pub mod api { const FUNCTION: &'static str = "set_group_rotation_frequency"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetChainAvailabilityPeriod { pub new: ::core::primitive::u32, @@ -25464,10 +27419,10 @@ pub mod api { const FUNCTION: &'static str = "set_chain_availability_period"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetThreadAvailabilityPeriod { pub new: ::core::primitive::u32, @@ -25477,10 +27432,10 @@ pub mod api { const FUNCTION: &'static str = "set_thread_availability_period"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetSchedulingLookahead { pub new: ::core::primitive::u32, @@ -25489,7 +27444,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 +27452,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 +27461,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_validators"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetDisputePeriod { pub new: ::core::primitive::u32, @@ -25519,10 +27474,10 @@ pub mod api { const FUNCTION: &'static str = "set_dispute_period"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetDisputePostConclusionAcceptancePeriod { pub new: ::core::primitive::u32, @@ -25533,10 +27488,10 @@ pub mod api { "set_dispute_post_conclusion_acceptance_period"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetDisputeMaxSpamSlots { pub new: ::core::primitive::u32, @@ -25546,10 +27501,10 @@ pub mod api { const FUNCTION: &'static str = "set_dispute_max_spam_slots"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetDisputeConclusionByTimeOutPeriod { pub new: ::core::primitive::u32, @@ -25560,10 +27515,10 @@ pub mod api { "set_dispute_conclusion_by_time_out_period"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetNoShowSlots { pub new: ::core::primitive::u32, @@ -25573,10 +27528,10 @@ pub mod api { const FUNCTION: &'static str = "set_no_show_slots"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetNDelayTranches { pub new: ::core::primitive::u32, @@ -25586,10 +27541,10 @@ pub mod api { const FUNCTION: &'static str = "set_n_delay_tranches"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetZerothDelayTrancheWidth { pub new: ::core::primitive::u32, @@ -25599,10 +27554,10 @@ pub mod api { const FUNCTION: &'static str = "set_zeroth_delay_tranche_width"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetNeededApprovals { pub new: ::core::primitive::u32, @@ -25612,10 +27567,10 @@ pub mod api { const FUNCTION: &'static str = "set_needed_approvals"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetRelayVrfModuloSamples { pub new: ::core::primitive::u32, @@ -25625,10 +27580,10 @@ pub mod api { const FUNCTION: &'static str = "set_relay_vrf_modulo_samples"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetMaxUpwardQueueCount { pub new: ::core::primitive::u32, @@ -25638,10 +27593,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_upward_queue_count"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetMaxUpwardQueueSize { pub new: ::core::primitive::u32, @@ -25651,10 +27606,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_upward_queue_size"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetMaxDownwardMessageSize { pub new: ::core::primitive::u32, @@ -25664,10 +27619,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_downward_message_size"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetUmpServiceTotalWeight { pub new: ::core::primitive::u64, @@ -25677,10 +27632,10 @@ pub mod api { const FUNCTION: &'static str = "set_ump_service_total_weight"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetMaxUpwardMessageSize { pub new: ::core::primitive::u32, @@ -25690,10 +27645,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_upward_message_size"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetMaxUpwardMessageNumPerCandidate { pub new: ::core::primitive::u32, @@ -25703,10 +27658,10 @@ pub mod api { const FUNCTION: &'static str = "set_max_upward_message_num_per_candidate"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetHrmpOpenRequestTtl { pub new: ::core::primitive::u32, @@ -25716,10 +27671,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_open_request_ttl"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetHrmpSenderDeposit { pub new: ::core::primitive::u128, @@ -25729,10 +27684,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_sender_deposit"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetHrmpRecipientDeposit { pub new: ::core::primitive::u128, @@ -25742,10 +27697,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_recipient_deposit"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetHrmpChannelMaxCapacity { pub new: ::core::primitive::u32, @@ -25755,10 +27710,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_channel_max_capacity"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetHrmpChannelMaxTotalSize { pub new: ::core::primitive::u32, @@ -25768,10 +27723,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_channel_max_total_size"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetHrmpMaxParachainInboundChannels { pub new: ::core::primitive::u32, @@ -25781,10 +27736,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_max_parachain_inbound_channels"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetHrmpMaxParathreadInboundChannels { pub new: ::core::primitive::u32, @@ -25794,10 +27749,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_max_parathread_inbound_channels"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetHrmpChannelMaxMessageSize { pub new: ::core::primitive::u32, @@ -25807,10 +27762,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_channel_max_message_size"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetHrmpMaxParachainOutboundChannels { pub new: ::core::primitive::u32, @@ -25820,10 +27775,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_max_parachain_outbound_channels"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetHrmpMaxParathreadOutboundChannels { pub new: ::core::primitive::u32, @@ -25834,10 +27789,10 @@ pub mod api { "set_hrmp_max_parathread_outbound_channels"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetHrmpMaxMessageNumPerCandidate { pub new: ::core::primitive::u32, @@ -25847,10 +27802,10 @@ pub mod api { const FUNCTION: &'static str = "set_hrmp_max_message_num_per_candidate"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetUmpMaxIndividualWeight { pub new: ::core::primitive::u64, @@ -25859,7 +27814,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 +27823,10 @@ pub mod api { const FUNCTION: &'static str = "set_pvf_checking_enabled"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetPvfVotingTtl { pub new: ::core::primitive::u32, @@ -25881,10 +27836,10 @@ pub mod api { const FUNCTION: &'static str = "set_pvf_voting_ttl"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct SetMinimumValidationUpgradeDelay { pub new: ::core::primitive::u32, @@ -25893,7 +27848,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 +27886,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -25963,10 +27920,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -25995,10 +27954,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26027,7 +27988,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -26056,7 +28022,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -26085,7 +28056,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -26114,7 +28090,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -26143,7 +28124,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -26172,10 +28158,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26204,10 +28192,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26236,10 +28226,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26268,10 +28260,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26300,10 +28294,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26332,7 +28328,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -26361,7 +28362,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -26390,10 +28396,13 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26422,10 +28431,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26454,10 +28465,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26487,7 +28500,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -26516,7 +28534,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -26545,10 +28568,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26577,7 +28602,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -26606,10 +28636,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26638,10 +28670,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26670,10 +28704,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26702,10 +28738,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26734,10 +28772,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26766,10 +28806,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26798,10 +28840,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26830,10 +28874,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26862,7 +28908,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -26892,10 +28943,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26924,10 +28977,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26956,10 +29011,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -26988,10 +29045,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -27020,10 +29079,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -27052,10 +29113,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -27084,10 +29147,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -27116,10 +29181,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -27148,10 +29215,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -27180,10 +29249,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -27212,10 +29283,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -27244,7 +29317,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -27276,10 +29354,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -27309,10 +29389,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -27377,7 +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 >{ - if self.client.metadata().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, @@ -27397,7 +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 >{ - if self.client.metadata().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, @@ -27421,7 +29513,12 @@ pub mod api { ::subxt::KeyIter<'a, T, PendingConfig<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -27441,7 +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 >{ - if self.client.metadata().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, @@ -27465,10 +29567,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -27562,10 +29666,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -27593,10 +29699,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -27624,10 +29732,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -27679,7 +29789,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 +29803,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 +29817,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 +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 >{ - if self - .client - .metadata() - .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, @@ -27800,10 +29912,12 @@ pub mod api { ::subxt::KeyIter<'a, T, AvailabilityBitfields<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -27817,10 +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 >{ - if self - .client - .metadata() - .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, @@ -27842,10 +29958,12 @@ pub mod api { ::subxt::KeyIter<'a, T, PendingAvailability<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -27871,10 +29989,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -27896,10 +30016,12 @@ pub mod api { ::subxt::KeyIter<'a, T, PendingAvailabilityCommitments<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -27926,7 +30048,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 +30096,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -28030,7 +30157,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::BasicError> { - if self.client.metadata().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, @@ -28056,7 +30188,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -28169,7 +30306,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -28190,7 +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 >{ - if self.client.metadata().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, @@ -28226,7 +30373,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -28254,10 +30406,12 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -28285,7 +30439,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -28308,7 +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 >{ - if self.client.metadata().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, @@ -28339,7 +30503,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 +30513,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 +30522,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 +30533,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 +30542,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 +30550,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 +30559,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 +30568,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 +30609,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -28475,7 +30644,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -28506,10 +30680,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -28543,7 +30719,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -28574,7 +30755,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -28615,10 +30801,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -28651,10 +30839,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -28687,10 +30877,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -28709,7 +30901,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 +30910,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 +30919,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 +30928,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 +30937,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 +30947,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 +30958,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 +30969,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 +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 >{ - if self.client.metadata().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, @@ -29089,7 +31286,12 @@ pub mod api { ::subxt::KeyIter<'a, T, PvfActiveVoteMap<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29112,7 +31314,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29139,7 +31346,12 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29167,7 +31379,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29189,7 +31406,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ParaLifecycles<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29213,7 +31435,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29235,7 +31462,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Heads<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29261,7 +31493,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29285,7 +31522,12 @@ pub mod api { ::subxt::KeyIter<'a, T, CurrentCodeHash<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29313,7 +31555,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29338,7 +31585,12 @@ pub mod api { ::subxt::KeyIter<'a, T, PastCodeHash<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29364,7 +31616,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29391,7 +31648,12 @@ pub mod api { ::subxt::KeyIter<'a, T, PastCodeMeta<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29420,7 +31682,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29448,10 +31715,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -29475,10 +31744,12 @@ pub mod api { ::subxt::KeyIter<'a, T, FutureCodeUpgrades<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -29504,7 +31775,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29528,7 +31804,12 @@ pub mod api { ::subxt::KeyIter<'a, T, FutureCodeHash<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29560,10 +31841,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -29593,10 +31876,12 @@ pub mod api { ::subxt::KeyIter<'a, T, UpgradeGoAheadSignal<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -29628,10 +31913,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -29661,10 +31948,12 @@ pub mod api { ::subxt::KeyIter<'a, T, UpgradeRestrictionSignal<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -29690,7 +31979,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29721,7 +32015,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29747,7 +32046,12 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29772,7 +32076,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ActionsQueue<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29789,10 +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 >{ - if self - .client - .metadata() - .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, @@ -29817,10 +32128,12 @@ pub mod api { ::subxt::KeyIter<'a, T, UpcomingParasGenesis<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -29840,7 +32153,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -29865,7 +32183,12 @@ pub mod api { ::subxt::KeyIter<'a, T, CodeByHashRefs<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29892,7 +32215,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29917,7 +32245,12 @@ pub mod api { ::subxt::KeyIter<'a, T, CodeByHash<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -29945,18 +32278,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 +32312,10 @@ pub mod api { }; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct ForceApprove { pub up_to: ::core::primitive::u32, @@ -30024,7 +32356,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -30080,7 +32417,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::BasicError> { - if self.client.metadata().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, @@ -30101,10 +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 >{ - if self - .client - .metadata() - .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, @@ -30206,10 +32550,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -30234,10 +32580,12 @@ pub mod api { ::subxt::KeyIter<'a, T, DownwardMessageQueues<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -30263,10 +32611,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -30297,10 +32647,12 @@ pub mod api { ::subxt::KeyIter<'a, T, DownwardMessageQueueHeads<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -30327,7 +32679,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 +32730,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -30400,7 +32757,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 +32765,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 +32773,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 +32784,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 +32796,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 +32808,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 +32825,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 +32933,12 @@ pub mod api { ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -30609,10 +32968,12 @@ pub mod api { ::subxt::KeyIter<'a, T, RelayDispatchQueues<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -30644,10 +33005,12 @@ pub mod api { (::core::primitive::u32, ::core::primitive::u32), ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -30682,10 +33045,12 @@ pub mod api { ::subxt::KeyIter<'a, T, RelayDispatchQueueSize<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -30710,7 +33075,12 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -30741,10 +33111,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -30772,7 +33144,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -30796,7 +33173,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Overweight<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -30816,7 +33198,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self.client.metadata().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, @@ -30847,7 +33234,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 +33244,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 +33252,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 +33261,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 +33272,10 @@ pub mod api { const FUNCTION: &'static str = "force_clean_hrmp"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct ForceProcessHrmpOpen { pub channels: ::core::primitive::u32, @@ -30898,10 +33285,10 @@ pub mod api { const FUNCTION: &'static str = "force_process_hrmp_open"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct ForceProcessHrmpClose { pub channels: ::core::primitive::u32, @@ -30910,7 +33297,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 +33348,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -30996,10 +33388,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -31031,7 +33425,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -31068,7 +33467,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -31106,7 +33510,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -31140,10 +33549,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -31180,10 +33591,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -31205,7 +33618,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 +33631,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 +33642,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 +33652,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 +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 >{ - if self - .client - .metadata() - .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, @@ -31467,10 +33882,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpOpenChannelRequests<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -31492,10 +33909,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -31521,10 +33940,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -31551,10 +33972,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpOpenChannelRequestCount<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -31576,10 +33999,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -31606,10 +34031,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpAcceptedChannelRequestCount<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -31635,10 +34062,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -31666,10 +34095,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpCloseChannelRequests<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -31691,10 +34122,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -31722,7 +34155,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -31746,7 +34184,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpWatermarks<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -31772,7 +34215,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -31796,7 +34244,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpChannels<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -31830,10 +34283,12 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -31870,10 +34325,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpIngressChannelsIndex<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -31894,10 +34351,12 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -31921,10 +34380,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpEgressChannelsIndex<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -31951,10 +34412,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -31980,10 +34443,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpChannelContents<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -32015,10 +34480,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -32048,10 +34515,12 @@ pub mod api { ::subxt::KeyIter<'a, T, HrmpChannelDigests<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -32125,10 +34594,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -32151,10 +34622,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self - .client - .metadata() - .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, @@ -32184,7 +34657,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32208,7 +34686,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Sessions<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32235,7 +34718,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 +34752,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32289,7 +34777,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 +34787,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 +34798,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 +34809,10 @@ pub mod api { const EVENT: &'static str = "DisputeTimedOut"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[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 +34916,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32456,7 +34949,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32478,7 +34976,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Disputes<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32502,7 +35005,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32525,7 +35033,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Included<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32551,7 +35064,12 @@ pub mod api { ::core::option::Option<::std::vec::Vec<::core::primitive::u32>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32577,7 +35095,12 @@ pub mod api { ::subxt::KeyIter<'a, T, SpamSlots<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32601,7 +35124,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32632,7 +35160,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 +35171,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 +35184,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 +35192,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 +35201,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 +35209,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 +35260,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32774,7 +35307,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32811,7 +35349,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32851,7 +35394,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32883,7 +35431,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32924,7 +35477,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -32944,7 +35502,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 +35511,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 +35519,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 +35590,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -33054,7 +35617,12 @@ pub mod api { ::subxt::KeyIter<'a, T, PendingSwap<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -33084,7 +35652,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -33109,7 +35682,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Paras<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -33130,7 +35708,12 @@ pub mod api { runtime_types::polkadot_parachain::primitives::Id, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -33164,18 +35747,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 +35771,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 +35804,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 +35816,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 +35824,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 +35869,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -33325,7 +35911,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -33360,7 +35951,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -33380,10 +35976,10 @@ pub mod api { pub mod events { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "A new `[lease_period]` is beginning."] pub struct NewLeasePeriod(pub ::core::primitive::u32); @@ -33391,7 +35987,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 +36062,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -33506,7 +36107,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Leases<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -33535,18 +36141,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 +36165,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 +36198,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 +36209,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 +36226,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 +36267,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -33714,7 +36323,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -33750,7 +36364,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -33769,7 +36388,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 +36402,10 @@ pub mod api { const EVENT: &'static str = "AuctionStarted"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "An auction ended. All funds become unreserved. `[auction_index]`"] pub struct AuctionClosed(pub ::core::primitive::u32); @@ -33794,7 +36413,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 +36425,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 +36435,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 +36448,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 +36462,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 +36538,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -33951,7 +36575,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -33976,7 +36605,12 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -33999,7 +36633,12 @@ pub mod api { ::subxt::KeyIter<'a, T, ReservedAmounts<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -34029,7 +36668,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -34053,7 +36697,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Winning<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -34082,18 +36731,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 +36757,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 +36780,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 +36803,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 +36836,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 +36855,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 +36868,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 +36878,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 +36887,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 +36896,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 +36915,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 +36924,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 +36932,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 +36983,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -34379,7 +37029,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -34429,7 +37084,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -34462,7 +37122,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -34491,7 +37156,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -34529,7 +37199,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -34568,7 +37243,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -34599,7 +37279,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -34632,7 +37317,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -34651,14 +37341,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 +37359,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 +37370,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 +37380,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 +37404,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 +37422,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 +37504,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -34836,7 +37531,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Funds<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -34858,7 +37558,12 @@ pub mod api { ::std::vec::Vec, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -34881,7 +37586,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -34904,7 +37614,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -34939,18 +37654,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 +37679,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 +37703,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 +37736,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 +37745,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 +37757,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 +37769,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 +37778,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 +37789,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 +37797,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 +37806,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 +37815,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 +37828,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 +37871,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -35208,7 +37925,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -35260,10 +37982,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -35308,7 +38032,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -35346,7 +38075,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -35382,10 +38116,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -35417,10 +38153,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -35456,10 +38194,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -35511,10 +38251,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -35569,10 +38311,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -35597,7 +38341,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 +38350,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 +38363,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 +38377,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 +38390,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 +38404,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 +38421,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 +38435,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 +38450,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 +38467,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 +38486,10 @@ pub mod api { const EVENT: &'static str = "InvalidResponderVersion"; } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] #[doc = "Received query response has been read and removed."] #[doc = ""] @@ -35755,7 +38499,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 +38512,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 +38524,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 +38537,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 +38551,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 +38713,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - if self.client.metadata().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, @@ -35999,7 +38748,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -36021,7 +38775,12 @@ pub mod api { ::subxt::KeyIter<'a, T, Queries<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -36044,7 +38803,12 @@ pub mod api { block_hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - if self.client.metadata().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, @@ -36072,7 +38836,12 @@ pub mod api { ::subxt::KeyIter<'a, T, AssetTraps<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -36094,7 +38863,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -36118,7 +38892,12 @@ pub mod api { ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -36140,7 +38919,12 @@ pub mod api { ::subxt::KeyIter<'a, T, SupportedVersion<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -36163,7 +38947,12 @@ pub mod api { ::core::option::Option<::core::primitive::u64>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -36185,7 +38974,12 @@ pub mod api { ::subxt::KeyIter<'a, T, VersionNotifiers<'a>>, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -36213,10 +39007,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -36239,10 +39035,12 @@ pub mod api { ::subxt::KeyIter<'a, T, VersionNotifyTargets<'a>>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -36268,10 +39066,12 @@ pub mod api { )>, ::subxt::BasicError, > { - if self - .client - .metadata() - .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, @@ -36298,7 +39098,12 @@ pub mod api { >, ::subxt::BasicError, > { - if self.client.metadata().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, @@ -36322,26 +39127,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 +39157,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 +39173,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 +39197,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 +39214,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 +39223,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 +39237,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 +39253,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 +39264,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 +39272,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 +39281,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 +39289,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 +39305,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 +39315,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 +39331,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 +39367,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 +39375,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 +39386,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 +39398,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 +39476,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 +39503,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 +39540,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 +39548,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 +39575,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 +39590,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 +39616,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 +39629,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 +39654,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 +39663,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 +39677,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 +39706,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 +39720,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 +39738,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 +39866,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 +39895,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 +39922,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 +39940,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 +40095,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 +40134,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 +40170,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 +40179,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 +40204,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 +40411,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 +40425,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 +40457,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 +40466,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 +40487,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 +40668,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 +40703,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 +40762,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 +40771,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 +40785,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 +40807,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 +41178,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 +41268,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 +41276,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 +41301,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 +41312,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 +41323,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 +41335,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 :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] 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 +41374,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 +41385,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 +41398,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 +41409,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 +41455,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 +41463,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 +41475,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 +41488,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 +41499,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 +41513,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 +41524,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 +41537,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 +41657,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 +41713,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 +41763,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 +41772,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 +41790,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 +41840,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 +41868,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 +41887,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 +41906,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 +42220,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 +42273,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 +42343,17 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] 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 +42434,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 +42455,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 +42474,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 +42493,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 +42503,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 +42521,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 +42537,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 +42567,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 +42592,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 +42709,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 +42729,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 +42755,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 +42813,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 +42824,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 +42853,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 +43025,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 +43072,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 +43118,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 +43136,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 +43155,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 +43182,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 +43205,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 +43219,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 +43232,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 +43461,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 +43490,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 +43535,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 +43553,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 +43643,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 +43660,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 +43699,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 +43716,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 +43758,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 +43778,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 +43797,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 +44276,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 +44287,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 +44368,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 +44447,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 +44456,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 +44483,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 +44494,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 +44509,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 +44530,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 +44543,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 +44556,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 +44564,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 +44583,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 +44615,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 +44756,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 +44779,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 +44807,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 +44820,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 +44837,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 +44889,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 +44903,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 +44944,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 +44957,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 +45038,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 +45046,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 +45078,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 +45209,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 +45230,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 +45250,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 +45258,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 +45271,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 +45448,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 +45495,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 +45654,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 +45663,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 +45687,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 +45705,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 +45728,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 :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] 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 +45762,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 +45805,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 +45821,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 +45840,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 +45857,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 +45865,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 +45876,14 @@ pub mod api { >, } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] 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 +45892,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 +45907,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 +45925,14 @@ pub mod api { )>, } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] 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 +45952,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 +45984,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 +46000,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 +46030,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 +46039,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 +46059,14 @@ pub mod api { ApprovalChecking, } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] 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 +46082,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 +46213,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 +46242,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 +46259,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 +46282,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 +46333,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 +46359,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 +46419,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 +46448,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 +46480,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 +46600,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 +46674,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 +46733,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 +46753,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 +46806,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 +46824,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 +46837,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 +46872,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 +46883,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 +46915,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 +46966,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 +47134,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 +47143,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 +47196,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 +47229,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 +47244,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 +47258,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 +47268,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 +47335,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 +47369,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 +47382,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 +47398,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 +47497,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 +47532,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 +47540,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 +47565,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 +47576,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 +47593,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 +47606,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 +47653,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 +47669,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 +47688,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 +47712,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 +47724,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 +47736,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 +47751,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 +47779,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 +47791,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 +47811,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 +47821,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 +47843,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 +47854,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 +47916,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 +47924,41 @@ pub mod api { pub mod fixed_point { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct FixedU128(pub ::core::primitive::u128); } pub mod per_things { use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct PerU16(pub ::core::primitive::u16); #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct Perbill(pub ::core::primitive::u32); #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct Percent(pub ::core::primitive::u8); #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct Permill(pub ::core::primitive::u32); } @@ -45163,7 +47968,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 +47978,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 +47995,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 +48004,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 +48012,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 +48020,10 @@ pub mod api { pub second_header: _0, } #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Decode, + :: subxt :: codec :: Encode, + Debug, )] pub struct Slot(pub ::core::primitive::u64); } @@ -45227,44 +48032,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 +48081,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 +48099,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 +48126,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 +48135,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 +48154,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 +48162,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 +48189,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 +48709,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 +48725,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 +48736,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 +48754,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 +48767,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 +48790,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 +48804,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 +48813,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 +48830,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 +48840,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 +48852,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 +48862,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 +48882,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 +48893,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 +48912,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 +48945,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 +48983,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 +48999,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 +49053,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 +49121,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 +49190,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 +49203,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 +49212,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 +49298,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 +49337,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 +49346,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 +49365,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 +49374,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 +49390,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 +49398,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 +49407,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 +49422,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 +49487,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 +49497,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 +49554,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 +49563,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 +49648,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 +49705,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 +49720,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 +49866,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 +49884,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 +49893,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 +49920,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 +49967,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 +50011,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/client.rs b/subxt/src/client.rs index 3072f674b4..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, @@ -46,6 +47,8 @@ use codec::{ Encode, }; use derivative::Derivative; +use parking_lot::RwLock; +use std::sync::Arc; /// ClientBuilder for constructing a Client. #[derive(Default)] @@ -119,9 +122,9 @@ 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: runtime_version?, + runtime_version: Arc::new(RwLock::new(runtime_version?)), iter_page_size: self.page_size.unwrap_or(10), }) } @@ -133,9 +136,9 @@ impl ClientBuilder { pub struct Client { rpc: Rpc, genesis_hash: T::Hash, - metadata: Metadata, + metadata: Arc>, properties: SystemProperties, - runtime_version: RuntimeVersion, + runtime_version: Arc>, iter_page_size: u32, } @@ -160,8 +163,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. @@ -183,7 +186,16 @@ 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) + } + + /// 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. @@ -193,6 +205,11 @@ impl Client { pub fn to_runtime_api>(self) -> R { self.into() } + + /// Returns the client's Runtime Version. + pub fn runtime_version(&self) -> Arc> { + Arc::clone(&self.runtime_version) + } } /// A constructed call ready to be signed and submitted. @@ -312,7 +329,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); @@ -320,13 +339,18 @@ where }; // 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, - 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(); + 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) 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..008257a89d 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 @@ -183,6 +185,11 @@ impl<'a, T: Config, Evs: Decode> Events<'a, T, Evs> { ) -> 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 || { @@ -192,7 +199,7 @@ 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::(&metadata, index, cursor) { Ok(raw_event) => { // Skip over decoded bytes in next iteration: pos += start_len - cursor.len(); @@ -228,6 +235,11 @@ impl<'a, T: Config, Evs: Decode> Events<'a, T, Evs> { ) -> 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(); @@ -235,7 +247,7 @@ 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::(&metadata, index, cursor) { Ok(raw_event) => { // Skip over decoded bytes in next iteration: pos += start_len - cursor.len(); @@ -468,9 +480,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 +494,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, @@ -503,7 +515,6 @@ mod tests { event_record, events, events_raw, - metadata, AllEvents, }, *, @@ -512,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)] @@ -521,11 +537,10 @@ mod tests { // Create fake metadata that knows about our single event, above: let metadata = 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))], ); @@ -555,7 +570,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::( - &metadata, + metadata, vec![ event_record(Phase::Initialization, Event::A(1)), event_record(Phase::ApplyExtrinsic(123), Event::B(true)), @@ -610,7 +625,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. ); @@ -654,7 +669,7 @@ mod tests { // construst an Events object to iterate them: let event = Event::A(1); let events = events::( - &metadata, + metadata, vec![event_record(Phase::ApplyExtrinsic(123), event)], ); @@ -699,7 +714,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), @@ -773,7 +788,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. ); @@ -831,7 +846,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::( - &metadata, + metadata, vec![event_record(Phase::Finalization, Event::A(1))], ); @@ -886,7 +901,7 @@ mod tests { // 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)), @@ -948,7 +963,7 @@ mod tests { // 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..c5372ddbca 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,7 +310,7 @@ mod test { ], ), events::( - metadata, + metadata.clone(), vec![event_record( Phase::ApplyExtrinsic(1), PalletEvents::B(EventB(false)), @@ -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/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/metadata/metadata_type.rs b/subxt/src/metadata/metadata_type.rs index 7069423a6c..2d121801e7 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. @@ -83,12 +81,6 @@ pub enum MetadataError { IncompatibleMetadata, } -/// Runtime metadata. -#[derive(Clone, Debug)] -pub struct Metadata { - inner: Arc, -} - // We hide the innards behind an Arc so that it's easy to clone and share. #[derive(Debug)] struct MetadataInner { @@ -105,6 +97,12 @@ struct MetadataInner { 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> { @@ -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 } @@ -547,10 +545,7 @@ 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.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 diff --git a/subxt/src/rpc.rs b/subxt/src/rpc.rs index ce0234e44c..9882367e6e 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, 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)?; diff --git a/subxt/src/transaction.rs b/subxt/src/transaction.rs index 1b1bedd15a..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. @@ -391,9 +389,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(), @@ -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 } diff --git a/subxt/src/updates.rs b/subxt/src/updates.rs new file mode 100644 index 0000000000..dd7638d5ea --- /dev/null +++ b/subxt/src/updates.rs @@ -0,0 +1,106 @@ +// 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?; + + // 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 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 { + log::debug!( + "Runtime update not performed for spec_version={}, client has spec_version={}", + update_runtime_version.spec_version, runtime_version.spec_version + ); + continue + } + } + + // 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?; + log::debug!("Performing metadata update"); + let mut metadata = self.metadata.write(); + *metadata = update_metadata; + log::debug!("Runtime update completed"); + } + + Ok(()) + } +}