From a08a10026db48a01893200de3bca0324dc8afbb3 Mon Sep 17 00:00:00 2001 From: ascjones Date: Tue, 29 Mar 2022 17:22:08 +0100 Subject: [PATCH 1/4] Read constants from metadata at runtime --- codegen/src/api/constants.rs | 25 +++++++++++++++++++------ codegen/src/api/mod.rs | 15 +++++++++------ 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/codegen/src/api/constants.rs b/codegen/src/api/constants.rs index d7786a6b391..f0f5ad75d21 100644 --- a/codegen/src/api/constants.rs +++ b/codegen/src/api/constants.rs @@ -15,7 +15,10 @@ // along with subxt. If not, see . use crate::types::TypeGenerator; -use frame_metadata::PalletConstantMetadata; +use frame_metadata::{ + PalletConstantMetadata, + PalletMetadata, +}; use heck::ToSnakeCase as _; use proc_macro2::TokenStream as TokenStream2; use quote::{ @@ -26,18 +29,22 @@ use scale_info::form::PortableForm; pub fn generate_constants( type_gen: &TypeGenerator, + pallet: &PalletMetadata, constants: &[PalletConstantMetadata], types_mod_ident: &syn::Ident, ) -> TokenStream2 { let constant_fns = constants.iter().map(|constant| { let fn_name = format_ident!("{}", constant.name.to_snake_case()); + let pallet_name = &pallet.name; + let constant_name = &constant.name; let return_ty = type_gen.resolve_type_path(constant.ty.id(), &[]); - let ref_slice = constant.value.as_slice(); - quote! { pub fn #fn_name(&self) -> ::core::result::Result<#return_ty, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode(&mut &[#(#ref_slice,)*][..])?) + let pallet = self.client.metadata().pallet(#pallet_name)?; + let constant = pallet.constant(#constant_name)?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } }); @@ -46,9 +53,15 @@ pub fn generate_constants( pub mod constants { use super::#types_mod_ident; - pub struct ConstantsApi; + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } - impl ConstantsApi { #(#constant_fns)* } } diff --git a/codegen/src/api/mod.rs b/codegen/src/api/mod.rs index 277983b6cd6..73ff3ee2898 100644 --- a/codegen/src/api/mod.rs +++ b/codegen/src/api/mod.rs @@ -203,6 +203,7 @@ impl RuntimeGenerator { let constants_mod = if !pallet.constants.is_empty() { constants::generate_constants( &type_gen, + pallet, &pallet.constants, types_mod_ident, ) @@ -300,8 +301,8 @@ impl RuntimeGenerator { T: ::subxt::Config, X: ::subxt::SignedExtra, { - pub fn constants(&'a self) -> ConstantsApi { - ConstantsApi + pub fn constants(&'a self) -> ConstantsApi<'a, T> { + ConstantsApi { client: &self.client } } pub fn storage(&'a self) -> StorageApi<'a, T> { @@ -335,12 +336,14 @@ impl RuntimeGenerator { } } - pub struct ConstantsApi; + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } - impl ConstantsApi { + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { #( - pub fn #pallets_with_constants(&self) -> #pallets_with_constants::constants::ConstantsApi { - #pallets_with_constants::constants::ConstantsApi + pub fn #pallets_with_constants(&self) -> #pallets_with_constants::constants::ConstantsApi<'a, T> { + #pallets_with_constants::constants::ConstantsApi::new(self.client) } )* } From 3cc2c420093da85dcfa56e4bea0098b0deb2816a Mon Sep 17 00:00:00 2001 From: ascjones Date: Tue, 29 Mar 2022 17:34:27 +0100 Subject: [PATCH 2/4] Update polkadot codegen --- subxt/tests/integration/codegen/polkadot.rs | 4502 ++++++++++++------- 1 file changed, 2819 insertions(+), 1683 deletions(-) diff --git a/subxt/tests/integration/codegen/polkadot.rs b/subxt/tests/integration/codegen/polkadot.rs index eca60c0583c..06facfbd527 100644 --- a/subxt/tests/integration/codegen/polkadot.rs +++ b/subxt/tests/integration/codegen/polkadot.rs @@ -1,4 +1,3 @@ -// Note [jsdw]: generated from polkadot 0.9.13-82616422d0-aarch64-macos #[allow(dead_code, unused_imports, non_camel_case_types)] pub mod api { use super::api as root_mod; @@ -50,6 +49,8 @@ pub mod api { Multisig(multisig::Event), #[codec(index = 34)] Bounties(bounties::Event), + #[codec(index = 38)] + ChildBounties(child_bounties::Event), #[codec(index = 35)] Tips(tips::Event), #[codec(index = 36)] @@ -64,6 +65,8 @@ pub mod api { Ump(ump::Event), #[codec(index = 60)] Hrmp(hrmp::Event), + #[codec(index = 62)] + ParasDisputes(paras_disputes::Event), #[codec(index = 70)] Registrar(registrar::Event), #[codec(index = 71)] @@ -744,28 +747,23 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn block_weights( &self, ) -> ::core::result::Result< runtime_types::frame_system::limits::BlockWeights, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 242u8, 5u8, 42u8, 1u8, 0u8, 0u8, 0u8, 0u8, 32u8, 74u8, - 169u8, 209u8, 1u8, 0u8, 0u8, 64u8, 89u8, 115u8, 7u8, 0u8, - 0u8, 0u8, 0u8, 1u8, 192u8, 118u8, 108u8, 143u8, 88u8, 1u8, - 0u8, 0u8, 1u8, 0u8, 152u8, 247u8, 62u8, 93u8, 1u8, 0u8, 0u8, - 1u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 64u8, 89u8, - 115u8, 7u8, 0u8, 0u8, 0u8, 0u8, 1u8, 192u8, 254u8, 190u8, - 249u8, 204u8, 1u8, 0u8, 0u8, 1u8, 0u8, 32u8, 74u8, 169u8, - 209u8, 1u8, 0u8, 0u8, 1u8, 0u8, 136u8, 82u8, 106u8, 116u8, - 0u8, 0u8, 0u8, 64u8, 89u8, 115u8, 7u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("BlockWeights")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn block_length( &self, @@ -773,19 +771,19 @@ pub mod api { runtime_types::frame_system::limits::BlockLength, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 0u8, 60u8, 0u8, 0u8, 0u8, 80u8, 0u8, 0u8, 0u8, 80u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("BlockLength")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn block_hash_count( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[96u8, 9u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("BlockHashCount")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn db_weight( &self, @@ -793,12 +791,10 @@ pub mod api { runtime_types::frame_support::weights::RuntimeDbWeight, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 64u8, 120u8, 125u8, 1u8, 0u8, 0u8, 0u8, 0u8, 0u8, 225u8, - 245u8, 5u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("DbWeight")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn version( &self, @@ -806,38 +802,19 @@ pub mod api { runtime_types::sp_version::RuntimeVersion, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 32u8, 112u8, 111u8, 108u8, 107u8, 97u8, 100u8, 111u8, 116u8, - 60u8, 112u8, 97u8, 114u8, 105u8, 116u8, 121u8, 45u8, 112u8, - 111u8, 108u8, 107u8, 97u8, 100u8, 111u8, 116u8, 0u8, 0u8, - 0u8, 0u8, 180u8, 35u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 56u8, - 223u8, 106u8, 203u8, 104u8, 153u8, 7u8, 96u8, 155u8, 4u8, - 0u8, 0u8, 0u8, 55u8, 227u8, 151u8, 252u8, 124u8, 145u8, - 245u8, 228u8, 1u8, 0u8, 0u8, 0u8, 64u8, 254u8, 58u8, 212u8, - 1u8, 248u8, 149u8, 154u8, 5u8, 0u8, 0u8, 0u8, 210u8, 188u8, - 152u8, 151u8, 238u8, 208u8, 143u8, 21u8, 3u8, 0u8, 0u8, 0u8, - 247u8, 139u8, 39u8, 139u8, 229u8, 63u8, 69u8, 76u8, 2u8, 0u8, - 0u8, 0u8, 175u8, 44u8, 2u8, 151u8, 162u8, 62u8, 109u8, 61u8, - 2u8, 0u8, 0u8, 0u8, 73u8, 234u8, 175u8, 27u8, 84u8, 138u8, - 12u8, 176u8, 1u8, 0u8, 0u8, 0u8, 145u8, 213u8, 223u8, 24u8, - 176u8, 210u8, 207u8, 88u8, 1u8, 0u8, 0u8, 0u8, 237u8, 153u8, - 197u8, 172u8, 178u8, 94u8, 237u8, 245u8, 3u8, 0u8, 0u8, 0u8, - 203u8, 202u8, 37u8, 227u8, 159u8, 20u8, 35u8, 135u8, 2u8, - 0u8, 0u8, 0u8, 104u8, 122u8, 212u8, 74u8, 211u8, 127u8, 3u8, - 194u8, 1u8, 0u8, 0u8, 0u8, 171u8, 60u8, 5u8, 114u8, 41u8, - 31u8, 235u8, 139u8, 1u8, 0u8, 0u8, 0u8, 188u8, 157u8, 137u8, - 144u8, 79u8, 91u8, 146u8, 63u8, 1u8, 0u8, 0u8, 0u8, 55u8, - 200u8, 187u8, 19u8, 80u8, 169u8, 162u8, 168u8, 1u8, 0u8, 0u8, - 0u8, 9u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("Version")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn ss58_prefix( &self, ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode(&mut &[0u8, 0u8][..])?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("SS58Prefix")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -1187,15 +1164,6 @@ pub mod api { )]) } } - pub struct StorageVersion; - impl ::subxt::StorageEntry for StorageVersion { - const PALLET: &'static str = "Scheduler"; - const STORAGE: &'static str = "StorageVersion"; - type Value = runtime_types::pallet_scheduler::Releases; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } pub struct StorageApi<'a, T: ::subxt::Config> { client: &'a ::subxt::Client, } @@ -1238,37 +1206,34 @@ pub mod api { > { self.client.storage().iter(hash).await } - pub async fn storage_version( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::pallet_scheduler::Releases, - ::subxt::BasicError, - > { - let entry = StorageVersion; - self.client.storage().fetch_or_default(&entry, hash).await - } } } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn maximum_weight( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 128u8, 110u8, 135u8, 116u8, 1u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Scheduler")?; + let constant = pallet.constant("MaximumWeight")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_scheduled_per_block( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[50u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Scheduler")?; + let constant = pallet.constant("MaxScheduledPerBlock")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -1945,31 +1910,39 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn epoch_duration( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[96u8, 9u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Babe")?; + let constant = pallet.constant("EpochDuration")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn expected_block_time( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[112u8, 23u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Babe")?; + let constant = pallet.constant("ExpectedBlockTime")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_authorities( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[160u8, 134u8, 1u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Babe")?; + let constant = pallet.constant("MaxAuthorities")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -2068,15 +2041,21 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn minimum_period( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[184u8, 11u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Timestamp")?; + let constant = pallet.constant("MinimumPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -2324,18 +2303,21 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 232u8, 118u8, 72u8, 23u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Indices")?; + let constant = pallet.constant("Deposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -2815,34 +2797,39 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn existential_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Balances")?; + let constant = pallet.constant("ExistentialDeposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_locks( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[50u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Balances")?; + let constant = pallet.constant("MaxLocks")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_reserves( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[50u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Balances")?; + let constant = pallet.constant("MaxReserves")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -2901,24 +2888,30 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn transaction_byte_fee( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 64u8, 66u8, 15u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("TransactionPayment")?; + let constant = pallet.constant("TransactionByteFee")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn operational_fee_multiplier( &self, ) -> ::core::result::Result<::core::primitive::u8, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode(&mut &[5u8][..])?) + let pallet = self.client.metadata().pallet("TransactionPayment")?; + let constant = pallet.constant("OperationalFeeMultiplier")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn weight_to_fee( &self, @@ -2930,12 +2923,10 @@ pub mod api { >, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 4u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 180u8, 196u8, 4u8, 0u8, 1u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("TransactionPayment")?; + let constant = pallet.constant("WeightToFee")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -3076,15 +3067,21 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn uncle_generations( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Authorship")?; + let constant = pallet.constant("UncleGenerations")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -3314,14 +3311,30 @@ pub mod api { } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct SetStakingConfigs { - pub min_nominator_bond: ::core::primitive::u128, - pub min_validator_bond: ::core::primitive::u128, - pub max_nominator_count: ::core::option::Option<::core::primitive::u32>, - pub max_validator_count: ::core::option::Option<::core::primitive::u32>, - pub chill_threshold: ::core::option::Option< - runtime_types::sp_arithmetic::per_things::Percent, - >, - pub min_commission: runtime_types::sp_arithmetic::per_things::Perbill, + pub min_nominator_bond: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + pub min_validator_bond: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + pub max_nominator_count: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + pub max_validator_count: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + pub chill_threshold: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Percent, + >, + pub min_commission: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, } impl ::subxt::Call for SetStakingConfigs { const PALLET: &'static str = "Staking"; @@ -3335,6 +3348,14 @@ pub mod api { const PALLET: &'static str = "Staking"; const FUNCTION: &'static str = "chill_other"; } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ForceApplyMinCommission { + pub validator_stash: ::subxt::sp_core::crypto::AccountId32, + } + impl ::subxt::Call for ForceApplyMinCommission { + const PALLET: &'static str = "Staking"; + const FUNCTION: &'static str = "force_apply_min_commission"; + } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, marker: ::core::marker::PhantomData, @@ -3713,14 +3734,12 @@ pub mod api { } pub fn set_staking_configs( &self, - min_nominator_bond: ::core::primitive::u128, - min_validator_bond: ::core::primitive::u128, - max_nominator_count: ::core::option::Option<::core::primitive::u32>, - max_validator_count: ::core::option::Option<::core::primitive::u32>, - chill_threshold: ::core::option::Option< - runtime_types::sp_arithmetic::per_things::Percent, - >, - min_commission: runtime_types::sp_arithmetic::per_things::Perbill, + min_nominator_bond : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < :: core :: primitive :: u128 >, + min_validator_bond : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < :: core :: primitive :: u128 >, + max_nominator_count : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < :: core :: primitive :: u32 >, + max_validator_count : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < :: core :: primitive :: u32 >, + chill_threshold : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < runtime_types :: sp_arithmetic :: per_things :: Percent >, + min_commission : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < runtime_types :: sp_arithmetic :: per_things :: Perbill >, ) -> ::subxt::SubmittableExtrinsic< 'a, T, @@ -3753,6 +3772,20 @@ pub mod api { let call = ChillOther { controller }; ::subxt::SubmittableExtrinsic::new(self.client, call) } + pub fn force_apply_min_commission( + &self, + validator_stash: ::subxt::sp_core::crypto::AccountId32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ForceApplyMinCommission, + DispatchError, + root_mod::Event, + > { + let call = ForceApplyMinCommission { validator_stash }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } } } pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; @@ -4001,9 +4034,7 @@ pub mod api { impl ::subxt::StorageEntry for Nominators<'_> { const PALLET: &'static str = "Staking"; const STORAGE: &'static str = "Nominators"; - type Value = runtime_types::pallet_staking::Nominations< - ::subxt::sp_core::crypto::AccountId32, - >; + type Value = runtime_types::pallet_staking::Nominations; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -4517,11 +4548,7 @@ pub mod api { _0: &::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_staking::Nominations< - ::subxt::sp_core::crypto::AccountId32, - >, - >, + ::core::option::Option, ::subxt::BasicError, > { let entry = Nominators(_0); @@ -4930,47 +4957,66 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn max_nominations( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Staking")?; + let constant = pallet.constant("MaxNominations")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } pub fn sessions_per_era( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[6u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Staking")?; + let constant = pallet.constant("SessionsPerEra")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn bonding_duration( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[28u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Staking")?; + let constant = pallet.constant("BondingDuration")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn slash_defer_duration( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[27u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Staking")?; + let constant = pallet.constant("SlashDeferDuration")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_nominator_rewarded_per_validator( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 1u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Staking")?; + let constant = pallet.constant("MaxNominatorRewardedPerValidator")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub fn max_nominations( + pub fn max_unlocking_chunks( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[16u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Staking")?; + let constant = pallet.constant("MaxUnlockingChunks")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -5684,15 +5730,21 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn max_authorities( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[160u8, 134u8, 1u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Grandpa")?; + let constant = pallet.constant("MaxAuthorities")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -5915,15 +5967,21 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn unsigned_priority( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[255u8, 255u8, 255u8, 255u8, 255u8, 255u8, 255u8, 255u8][..], - )?) + let pallet = self.client.metadata().pallet("ImOnline")?; + let constant = pallet.constant("UnsignedPriority")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -6869,18 +6927,6 @@ pub mod api { )]) } } - pub struct Locks<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Locks<'_> { - const PALLET: &'static str = "Democracy"; - const STORAGE: &'static str = "Locks"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } pub struct LastTabledWasExternal; impl ::subxt::StorageEntry for LastTabledWasExternal { const PALLET: &'static str = "Democracy"; @@ -7082,26 +7128,6 @@ pub mod api { > { self.client.storage().iter(hash).await } - pub async fn locks( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = Locks(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn locks_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Locks<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } pub async fn last_tabled_was_external( &self, hash: ::core::option::Option, @@ -7178,99 +7204,111 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn enactment_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 39u8, 6u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("EnactmentPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn launch_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 39u8, 6u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("LaunchPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn voting_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 39u8, 6u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("VotingPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn vote_locking_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 39u8, 6u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("VoteLockingPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn minimum_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 16u8, 165u8, 212u8, 232u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("MinimumDeposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn instant_allowed( &self, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode(&mut &[1u8][..])?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("InstantAllowed")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn fast_track_voting_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[8u8, 7u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("FastTrackVotingPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn cooloff_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[192u8, 137u8, 1u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("CooloffPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn preimage_byte_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 128u8, 150u8, 152u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("PreimageByteDeposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_votes( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("MaxVotes")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_proposals( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("MaxProposals")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -8538,74 +8576,77 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn pallet_id( &self, ) -> ::core::result::Result< [::core::primitive::u8; 8usize], ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[112u8, 104u8, 114u8, 101u8, 108u8, 101u8, 99u8, 116u8][..], - )?) + let pallet = self.client.metadata().pallet("PhragmenElection")?; + let constant = pallet.constant("PalletId")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn candidacy_bond( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 16u8, 165u8, 212u8, 232u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("PhragmenElection")?; + let constant = pallet.constant("CandidacyBond")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn voting_bond_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 112u8, 19u8, 183u8, 46u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("PhragmenElection")?; + let constant = pallet.constant("VotingBondBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn voting_bond_factor( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 208u8, 18u8, 19u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("PhragmenElection")?; + let constant = pallet.constant("VotingBondFactor")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn desired_members( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[13u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("PhragmenElection")?; + let constant = pallet.constant("DesiredMembers")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn desired_runners_up( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[20u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("PhragmenElection")?; + let constant = pallet.constant("DesiredRunnersUp")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn term_duration( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[192u8, 137u8, 1u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("PhragmenElection")?; + let constant = pallet.constant("TermDuration")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -9160,28 +9201,32 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn proposal_bond( &self, ) -> ::core::result::Result< runtime_types::sp_arithmetic::per_things::Permill, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[80u8, 195u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Treasury")?; + let constant = pallet.constant("ProposalBond")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn proposal_bond_minimum( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 16u8, 165u8, 212u8, 232u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Treasury")?; + let constant = pallet.constant("ProposalBondMinimum")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn proposal_bond_maximum( &self, @@ -9189,20 +9234,19 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 1u8, 0u8, 80u8, 57u8, 39u8, 140u8, 4u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Treasury")?; + let constant = pallet.constant("ProposalBondMaximum")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn spend_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 70u8, 5u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Treasury")?; + let constant = pallet.constant("SpendPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn burn( &self, @@ -9210,9 +9254,10 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Permill, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[16u8, 39u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Treasury")?; + let constant = pallet.constant("Burn")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn pallet_id( &self, @@ -9220,17 +9265,19 @@ pub mod api { runtime_types::frame_support::PalletId, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[112u8, 121u8, 47u8, 116u8, 114u8, 115u8, 114u8, 121u8][..], - )?) + let pallet = self.client.metadata().pallet("Treasury")?; + let constant = pallet.constant("PalletId")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_approvals( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Treasury")?; + let constant = pallet.constant("MaxApprovals")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -9610,22 +9657,23 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn prefix( &self, ) -> ::core::result::Result< ::std::vec::Vec<::core::primitive::u8>, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 132u8, 80u8, 97u8, 121u8, 32u8, 68u8, 79u8, 84u8, 115u8, - 32u8, 116u8, 111u8, 32u8, 116u8, 104u8, 101u8, 32u8, 80u8, - 111u8, 108u8, 107u8, 97u8, 100u8, 111u8, 116u8, 32u8, 97u8, - 99u8, 99u8, 111u8, 117u8, 110u8, 116u8, 58u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Claims")?; + let constant = pallet.constant("Prefix")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -9910,26 +9958,30 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn min_vested_transfer( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Vesting")?; + let constant = pallet.constant("MinVestedTransfer")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_vesting_schedules( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[28u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Vesting")?; + let constant = pallet.constant("MaxVestingSchedules")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -10093,15 +10145,21 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn batched_calls_limit( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[170u8, 42u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Utility")?; + let constant = pallet.constant("batched_calls_limit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -10799,64 +10857,66 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn basic_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 125u8, 181u8, 42u8, 47u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Identity")?; + let constant = pallet.constant("BasicDeposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn field_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 205u8, 86u8, 39u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Identity")?; + let constant = pallet.constant("FieldDeposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn sub_account_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 128u8, 248u8, 132u8, 176u8, 46u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Identity")?; + let constant = pallet.constant("SubAccountDeposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_sub_accounts( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Identity")?; + let constant = pallet.constant("MaxSubAccounts")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_additional_fields( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Identity")?; + let constant = pallet.constant("MaxAdditionalFields")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_registrars( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[20u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Identity")?; + let constant = pallet.constant("MaxRegistrars")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -11220,6 +11280,17 @@ pub mod api { const PALLET: &'static str = "Proxy"; const EVENT: &'static str = "ProxyAdded"; } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ProxyRemoved { + pub delegator: ::subxt::sp_core::crypto::AccountId32, + pub delegatee: ::subxt::sp_core::crypto::AccountId32, + pub proxy_type: runtime_types::polkadot_runtime::ProxyType, + pub delay: ::core::primitive::u32, + } + impl ::subxt::Event for ProxyRemoved { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "ProxyRemoved"; + } } pub mod storage { use super::runtime_types; @@ -11334,67 +11405,66 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn proxy_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 132u8, 178u8, 149u8, 46u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("ProxyDepositBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn proxy_deposit_factor( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 128u8, 102u8, 171u8, 19u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("ProxyDepositFactor")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_proxies( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[32u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("MaxProxies")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_pending( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[32u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("MaxPending")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn announcement_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 132u8, 178u8, 149u8, 46u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("AnnouncementDepositBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn announcement_deposit_factor( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 205u8, 86u8, 39u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("AnnouncementDepositFactor")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -11741,35 +11811,39 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 140u8, 97u8, 197u8, 46u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Multisig")?; + let constant = pallet.constant("DepositBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn deposit_factor( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 208u8, 18u8, 19u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Multisig")?; + let constant = pallet.constant("DepositFactor")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_signatories( &self, ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode(&mut &[100u8, 0u8][..])?) + let pallet = self.client.metadata().pallet("Multisig")?; + let constant = pallet.constant("MaxSignatories")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -12150,7 +12224,10 @@ pub mod api { impl ::subxt::StorageEntry for BountyDescriptions<'_> { const PALLET: &'static str = "Bounties"; const STORAGE: &'static str = "BountyDescriptions"; - type Value = ::std::vec::Vec<::core::primitive::u8>; + type Value = + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -12162,7 +12239,10 @@ pub mod api { impl ::subxt::StorageEntry for BountyApprovals { const PALLET: &'static str = "Bounties"; const STORAGE: &'static str = "BountyApprovals"; - type Value = ::std::vec::Vec<::core::primitive::u32>; + type Value = + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + ::core::primitive::u32, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } @@ -12213,7 +12293,11 @@ pub mod api { _0: &::core::primitive::u32, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, + ::core::option::Option< + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, ::subxt::BasicError, > { let entry = BountyDescriptions(_0); @@ -12232,7 +12316,9 @@ pub mod api { &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec<::core::primitive::u32>, + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + ::core::primitive::u32, + >, ::subxt::BasicError, > { let entry = BountyApprovals; @@ -12242,79 +12328,104 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn bounty_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("BountyDepositBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn bounty_deposit_payout_delay( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 194u8, 1u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("BountyDepositPayoutDelay")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn bounty_update_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[128u8, 198u8, 19u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("BountyUpdatePeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub fn bounty_curator_deposit( + pub fn curator_deposit_multiplier( &self, ) -> ::core::result::Result< runtime_types::sp_arithmetic::per_things::Permill, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[32u8, 161u8, 7u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("CuratorDepositMultiplier")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn curator_deposit_max( + &self, + ) -> ::core::result::Result< + ::core::option::Option<::core::primitive::u128>, + ::subxt::BasicError, + > { + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("CuratorDepositMax")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn curator_deposit_min( + &self, + ) -> ::core::result::Result< + ::core::option::Option<::core::primitive::u128>, + ::subxt::BasicError, + > { + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("CuratorDepositMin")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn bounty_value_minimum( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 232u8, 118u8, 72u8, 23u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("BountyValueMinimum")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn data_deposit_per_byte( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 225u8, 245u8, 5u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("DataDepositPerByte")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn maximum_reason_length( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 64u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("MaximumReasonLength")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } - pub mod tips { + pub mod child_bounties { use super::root_mod; use super::runtime_types; pub mod calls { @@ -12322,58 +12433,92 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ReportAwesome { - pub reason: ::std::vec::Vec<::core::primitive::u8>, - pub who: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Call for ReportAwesome { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "report_awesome"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct RetractTip { - pub hash: ::subxt::sp_core::H256, + pub struct AddChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub value: ::core::primitive::u128, + pub description: ::std::vec::Vec<::core::primitive::u8>, } - impl ::subxt::Call for RetractTip { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "retract_tip"; + impl ::subxt::Call for AddChildBounty { + const PALLET: &'static str = "ChildBounties"; + const FUNCTION: &'static str = "add_child_bounty"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct TipNew { - pub reason: ::std::vec::Vec<::core::primitive::u8>, - pub who: ::subxt::sp_core::crypto::AccountId32, + pub struct ProposeCurator { #[codec(compact)] - pub tip_value: ::core::primitive::u128, + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + pub curator: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + #[codec(compact)] + pub fee: ::core::primitive::u128, } - impl ::subxt::Call for TipNew { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "tip_new"; + impl ::subxt::Call for ProposeCurator { + const PALLET: &'static str = "ChildBounties"; + const FUNCTION: &'static str = "propose_curator"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Tip { - pub hash: ::subxt::sp_core::H256, + pub struct AcceptCurator { #[codec(compact)] - pub tip_value: ::core::primitive::u128, + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, } - impl ::subxt::Call for Tip { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "tip"; + impl ::subxt::Call for AcceptCurator { + const PALLET: &'static str = "ChildBounties"; + const FUNCTION: &'static str = "accept_curator"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CloseTip { - pub hash: ::subxt::sp_core::H256, + pub struct UnassignCurator { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, } - impl ::subxt::Call for CloseTip { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "close_tip"; + impl ::subxt::Call for UnassignCurator { + const PALLET: &'static str = "ChildBounties"; + const FUNCTION: &'static str = "unassign_curator"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SlashTip { - pub hash: ::subxt::sp_core::H256, + pub struct AwardChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + pub beneficiary: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, } - impl ::subxt::Call for SlashTip { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "slash_tip"; + impl ::subxt::Call for AwardChildBounty { + const PALLET: &'static str = "ChildBounties"; + const FUNCTION: &'static str = "award_child_bounty"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ClaimChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + } + impl ::subxt::Call for ClaimChildBounty { + const PALLET: &'static str = "ChildBounties"; + const FUNCTION: &'static str = "claim_child_bounty"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct CloseChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + } + impl ::subxt::Call for CloseChildBounty { + const PALLET: &'static str = "ChildBounties"; + const FUNCTION: &'static str = "close_child_bounty"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -12390,160 +12535,247 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn report_awesome( + pub fn add_child_bounty( &self, - reason: ::std::vec::Vec<::core::primitive::u8>, - who: ::subxt::sp_core::crypto::AccountId32, + parent_bounty_id: ::core::primitive::u32, + value: ::core::primitive::u128, + description: ::std::vec::Vec<::core::primitive::u8>, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ReportAwesome, + AddChildBounty, DispatchError, root_mod::Event, > { - let call = ReportAwesome { reason, who }; + let call = AddChildBounty { + parent_bounty_id, + value, + description, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn retract_tip( + pub fn propose_curator( &self, - hash: ::subxt::sp_core::H256, + parent_bounty_id: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + curator: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + fee: ::core::primitive::u128, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - RetractTip, + ProposeCurator, DispatchError, root_mod::Event, > { - let call = RetractTip { hash }; + let call = ProposeCurator { + parent_bounty_id, + child_bounty_id, + curator, + fee, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn tip_new( + pub fn accept_curator( &self, - reason: ::std::vec::Vec<::core::primitive::u8>, - who: ::subxt::sp_core::crypto::AccountId32, - tip_value: ::core::primitive::u128, + parent_bounty_id: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - TipNew, + AcceptCurator, DispatchError, root_mod::Event, > { - let call = TipNew { - reason, - who, - tip_value, + let call = AcceptCurator { + parent_bounty_id, + child_bounty_id, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn tip( + pub fn unassign_curator( &self, - hash: ::subxt::sp_core::H256, - tip_value: ::core::primitive::u128, + parent_bounty_id: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Tip, + UnassignCurator, DispatchError, root_mod::Event, > { - let call = Tip { hash, tip_value }; + let call = UnassignCurator { + parent_bounty_id, + child_bounty_id, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn close_tip( + pub fn award_child_bounty( &self, - hash: ::subxt::sp_core::H256, + parent_bounty_id: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + beneficiary: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - CloseTip, + AwardChildBounty, DispatchError, root_mod::Event, > { - let call = CloseTip { hash }; + let call = AwardChildBounty { + parent_bounty_id, + child_bounty_id, + beneficiary, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn slash_tip( + pub fn claim_child_bounty( &self, - hash: ::subxt::sp_core::H256, + parent_bounty_id: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SlashTip, + ClaimChildBounty, DispatchError, root_mod::Event, > { - let call = SlashTip { hash }; + let call = ClaimChildBounty { + parent_bounty_id, + child_bounty_id, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn close_child_bounty( + &self, + parent_bounty_id: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + CloseChildBounty, + DispatchError, + root_mod::Event, + > { + let call = CloseChildBounty { + parent_bounty_id, + child_bounty_id, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::pallet_tips::pallet::Event; + 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)] - pub struct NewTip { - pub tip_hash: ::subxt::sp_core::H256, + pub struct Added { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, } - impl ::subxt::Event for NewTip { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "NewTip"; + impl ::subxt::Event for Added { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Added"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct TipClosing { - pub tip_hash: ::subxt::sp_core::H256, + pub struct Awarded { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, + pub beneficiary: ::subxt::sp_core::crypto::AccountId32, } - impl ::subxt::Event for TipClosing { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipClosing"; + impl ::subxt::Event for Awarded { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Awarded"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct TipClosed { - pub tip_hash: ::subxt::sp_core::H256, - pub who: ::subxt::sp_core::crypto::AccountId32, + pub struct Claimed { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, pub payout: ::core::primitive::u128, + pub beneficiary: ::subxt::sp_core::crypto::AccountId32, } - impl ::subxt::Event for TipClosed { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipClosed"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct TipRetracted { - pub tip_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Event for TipRetracted { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipRetracted"; + impl ::subxt::Event for Claimed { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Claimed"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct TipSlashed { - pub tip_hash: ::subxt::sp_core::H256, - pub finder: ::subxt::sp_core::crypto::AccountId32, - pub deposit: ::core::primitive::u128, + pub struct Canceled { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, } - impl ::subxt::Event for TipSlashed { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipSlashed"; + impl ::subxt::Event for Canceled { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Canceled"; } } pub mod storage { use super::runtime_types; - pub struct Tips<'a>(pub &'a ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for Tips<'_> { - const PALLET: &'static str = "Tips"; - const STORAGE: &'static str = "Tips"; - type Value = runtime_types::pallet_tips::OpenTip< + pub struct ChildBountyCount; + impl ::subxt::StorageEntry for ChildBountyCount { + const PALLET: &'static str = "ChildBounties"; + const STORAGE: &'static str = "ChildBountyCount"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct ParentChildBounties<'a>(pub &'a ::core::primitive::u32); + impl ::subxt::StorageEntry for ParentChildBounties<'_> { + const PALLET: &'static str = "ChildBounties"; + const STORAGE: &'static str = "ParentChildBounties"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct ChildBounties<'a>( + pub &'a ::core::primitive::u32, + pub &'a ::core::primitive::u32, + ); + impl ::subxt::StorageEntry for ChildBounties<'_> { + const PALLET: &'static str = "ChildBounties"; + const STORAGE: &'static str = "ChildBounties"; + type Value = runtime_types::pallet_child_bounties::ChildBounty< ::subxt::sp_core::crypto::AccountId32, ::core::primitive::u128, ::core::primitive::u32, - ::subxt::sp_core::H256, >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Twox64Concat, + ), + ]) + } + } + pub struct ChildBountyDescriptions<'a>(pub &'a ::core::primitive::u32); + impl ::subxt::StorageEntry for ChildBountyDescriptions<'_> { + const PALLET: &'static str = "ChildBounties"; + const STORAGE: &'static str = "ChildBountyDescriptions"; + type Value = + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -12551,15 +12783,15 @@ pub mod api { )]) } } - pub struct Reasons<'a>(pub &'a ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for Reasons<'_> { - const PALLET: &'static str = "Tips"; - const STORAGE: &'static str = "Reasons"; - type Value = ::std::vec::Vec<::core::primitive::u8>; + pub struct ChildrenCuratorFees<'a>(pub &'a ::core::primitive::u32); + impl ::subxt::StorageEntry for ChildrenCuratorFees<'_> { + const PALLET: &'static str = "ChildBounties"; + const STORAGE: &'static str = "ChildrenCuratorFees"; + type Value = ::core::primitive::u128; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Identity, + ::subxt::StorageHasher::Twox64Concat, )]) } } @@ -12570,109 +12802,134 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn tips( + pub async fn child_bounty_count( &self, - _0: &::subxt::sp_core::H256, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = ChildBountyCount; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn parent_child_bounties( + &self, + _0: &::core::primitive::u32, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = ParentChildBounties(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn parent_child_bounties_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ParentChildBounties<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn child_bounties( + &self, + _0: &::core::primitive::u32, + _1: &::core::primitive::u32, hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - runtime_types::pallet_tips::OpenTip< + runtime_types::pallet_child_bounties::ChildBounty< ::subxt::sp_core::crypto::AccountId32, ::core::primitive::u128, ::core::primitive::u32, - ::subxt::sp_core::H256, >, >, ::subxt::BasicError, > { - let entry = Tips(_0); + let entry = ChildBounties(_0, _1); self.client.storage().fetch(&entry, hash).await } - pub async fn tips_iter( + pub async fn child_bounties_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Tips<'a>>, + ::subxt::KeyIter<'a, T, ChildBounties<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn reasons( + pub async fn child_bounty_descriptions( &self, - _0: &::subxt::sp_core::H256, + _0: &::core::primitive::u32, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, - ::subxt::BasicError, - > { - let entry = Reasons(_0); + ::core::option::Option< + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, + ::subxt::BasicError, + > { + let entry = ChildBountyDescriptions(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn reasons_iter( + pub async fn child_bounty_descriptions_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Reasons<'a>>, + ::subxt::KeyIter<'a, T, ChildBountyDescriptions<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn maximum_reason_length( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 64u8, 0u8, 0u8][..], - )?) - } - pub fn data_deposit_per_byte( + pub async fn children_curator_fees( &self, + _0: &::core::primitive::u32, + hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 225u8, 245u8, 5u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn tip_countdown( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[64u8, 56u8, 0u8, 0u8][..], - )?) + let entry = ChildrenCuratorFees(_0); + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn tip_finders_fee( + pub async fn children_curator_fees_iter( &self, + hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::sp_arithmetic::per_things::Percent, + ::subxt::KeyIter<'a, T, ChildrenCuratorFees<'a>>, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode(&mut &[20u8][..])?) + self.client.storage().iter(hash).await } - pub fn tip_report_deposit_base( + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn max_active_child_bounty_count( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("ChildBounties")?; + let constant = pallet.constant("MaxActiveChildBountyCount")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn child_bounty_value_minimum( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("ChildBounties")?; + let constant = pallet.constant("ChildBountyValueMinimum")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } - pub mod election_provider_multi_phase { + pub mod tips { use super::root_mod; use super::runtime_types; pub mod calls { @@ -12680,45 +12937,58 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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"; + pub struct ReportAwesome { + pub reason: ::std::vec::Vec<::core::primitive::u8>, + pub who: ::subxt::sp_core::crypto::AccountId32, + } + impl ::subxt::Call for ReportAwesome { + const PALLET: &'static str = "Tips"; + const FUNCTION: &'static str = "report_awesome"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetMinimumUntrustedScore { - pub maybe_next_score: - ::core::option::Option<[::core::primitive::u128; 3usize]>, + pub struct RetractTip { + pub hash: ::subxt::sp_core::H256, } - impl ::subxt::Call for SetMinimumUntrustedScore { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const FUNCTION: &'static str = "set_minimum_untrusted_score"; + impl ::subxt::Call for RetractTip { + const PALLET: &'static str = "Tips"; + const FUNCTION: &'static str = "retract_tip"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetEmergencyElectionResult { - pub supports: ::std::vec::Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::sp_core::crypto::AccountId32, - >, - )>, + pub struct TipNew { + pub reason: ::std::vec::Vec<::core::primitive::u8>, + pub who: ::subxt::sp_core::crypto::AccountId32, + #[codec(compact)] + pub tip_value: ::core::primitive::u128, } - impl ::subxt::Call for SetEmergencyElectionResult { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const FUNCTION: &'static str = "set_emergency_election_result"; + impl ::subxt::Call for TipNew { + const PALLET: &'static str = "Tips"; + const FUNCTION: &'static str = "tip_new"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Submit { - pub raw_solution: ::std::boxed::Box< - runtime_types::pallet_election_provider_multi_phase::RawSolution< - runtime_types::polkadot_runtime::NposCompactSolution16, - >, - >, - pub num_signed_submissions: ::core::primitive::u32, + pub struct Tip { + pub hash: ::subxt::sp_core::H256, + #[codec(compact)] + pub tip_value: ::core::primitive::u128, } - impl ::subxt::Call for Submit { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const FUNCTION: &'static str = "submit"; + impl ::subxt::Call for Tip { + const PALLET: &'static str = "Tips"; + const FUNCTION: &'static str = "tip"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct CloseTip { + pub hash: ::subxt::sp_core::H256, + } + impl ::subxt::Call for CloseTip { + const PALLET: &'static str = "Tips"; + const FUNCTION: &'static str = "close_tip"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SlashTip { + pub hash: ::subxt::sp_core::H256, + } + impl ::subxt::Call for SlashTip { + const PALLET: &'static str = "Tips"; + const FUNCTION: &'static str = "slash_tip"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -12735,235 +13005,160 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn submit_unsigned( + pub fn report_awesome( &self, - raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 >, - witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, + reason: ::std::vec::Vec<::core::primitive::u8>, + who: ::subxt::sp_core::crypto::AccountId32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SubmitUnsigned, + ReportAwesome, DispatchError, root_mod::Event, > { - let call = SubmitUnsigned { - raw_solution: ::std::boxed::Box::new(raw_solution), - witness, + let call = ReportAwesome { reason, who }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn retract_tip( + &self, + hash: ::subxt::sp_core::H256, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + RetractTip, + DispatchError, + root_mod::Event, + > { + let call = RetractTip { hash }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn tip_new( + &self, + reason: ::std::vec::Vec<::core::primitive::u8>, + who: ::subxt::sp_core::crypto::AccountId32, + tip_value: ::core::primitive::u128, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + TipNew, + DispatchError, + root_mod::Event, + > { + let call = TipNew { + reason, + who, + tip_value, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_minimum_untrusted_score( + pub fn tip( &self, - maybe_next_score: ::core::option::Option< - [::core::primitive::u128; 3usize], - >, + hash: ::subxt::sp_core::H256, + tip_value: ::core::primitive::u128, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SetMinimumUntrustedScore, + Tip, DispatchError, root_mod::Event, > { - let call = SetMinimumUntrustedScore { maybe_next_score }; + let call = Tip { hash, tip_value }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_emergency_election_result( + pub fn close_tip( &self, - supports: ::std::vec::Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::sp_core::crypto::AccountId32, - >, - )>, + hash: ::subxt::sp_core::H256, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SetEmergencyElectionResult, + CloseTip, DispatchError, root_mod::Event, > { - let call = SetEmergencyElectionResult { supports }; + let call = CloseTip { hash }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn submit( + pub fn slash_tip( &self, - raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 >, - num_signed_submissions: ::core::primitive::u32, + hash: ::subxt::sp_core::H256, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Submit, + SlashTip, DispatchError, root_mod::Event, > { - let call = Submit { - raw_solution: ::std::boxed::Box::new(raw_solution), - num_signed_submissions, - }; + let call = SlashTip { hash }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = - runtime_types::pallet_election_provider_multi_phase::pallet::Event; + pub type Event = runtime_types::pallet_tips::pallet::Event; pub mod events { use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SolutionStored { - pub election_compute: - runtime_types::pallet_election_provider_multi_phase::ElectionCompute, - pub prev_ejected: ::core::primitive::bool, + pub struct NewTip { + pub tip_hash: ::subxt::sp_core::H256, } - impl ::subxt::Event for SolutionStored { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "SolutionStored"; + impl ::subxt::Event for NewTip { + const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "NewTip"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ElectionFinalized { - pub election_compute: ::core::option::Option< - runtime_types::pallet_election_provider_multi_phase::ElectionCompute, - >, + pub struct TipClosing { + pub tip_hash: ::subxt::sp_core::H256, } - impl ::subxt::Event for ElectionFinalized { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "ElectionFinalized"; + impl ::subxt::Event for TipClosing { + const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "TipClosing"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Rewarded { - pub account: ::subxt::sp_core::crypto::AccountId32, - pub value: ::core::primitive::u128, + pub struct TipClosed { + pub tip_hash: ::subxt::sp_core::H256, + pub who: ::subxt::sp_core::crypto::AccountId32, + pub payout: ::core::primitive::u128, } - impl ::subxt::Event for Rewarded { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Rewarded"; + impl ::subxt::Event for TipClosed { + const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "TipClosed"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Slashed { - pub account: ::subxt::sp_core::crypto::AccountId32, - pub value: ::core::primitive::u128, - } - impl ::subxt::Event for Slashed { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Slashed"; + pub struct TipRetracted { + pub tip_hash: ::subxt::sp_core::H256, } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SignedPhaseStarted { - pub round: ::core::primitive::u32, + impl ::subxt::Event for TipRetracted { + const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "TipRetracted"; } - impl ::subxt::Event for SignedPhaseStarted { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "SignedPhaseStarted"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct UnsignedPhaseStarted { - pub round: ::core::primitive::u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct TipSlashed { + pub tip_hash: ::subxt::sp_core::H256, + pub finder: ::subxt::sp_core::crypto::AccountId32, + pub deposit: ::core::primitive::u128, } - impl ::subxt::Event for UnsignedPhaseStarted { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "UnsignedPhaseStarted"; + impl ::subxt::Event for TipSlashed { + const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "TipSlashed"; } } pub mod storage { use super::runtime_types; - pub struct Round; - impl ::subxt::StorageEntry for Round { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "Round"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct CurrentPhase; - impl ::subxt::StorageEntry for CurrentPhase { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "CurrentPhase"; - type Value = runtime_types::pallet_election_provider_multi_phase::Phase< + pub struct Tips<'a>(pub &'a ::subxt::sp_core::H256); + impl ::subxt::StorageEntry for Tips<'_> { + const PALLET: &'static str = "Tips"; + const STORAGE: &'static str = "Tips"; + type Value = runtime_types::pallet_tips::OpenTip< + ::subxt::sp_core::crypto::AccountId32, + ::core::primitive::u128, ::core::primitive::u32, + ::subxt::sp_core::H256, >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct QueuedSolution; - impl ::subxt::StorageEntry for QueuedSolution { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "QueuedSolution"; - type Value = - runtime_types::pallet_election_provider_multi_phase::ReadySolution< - ::subxt::sp_core::crypto::AccountId32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Snapshot; - impl ::subxt::StorageEntry for Snapshot { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "Snapshot"; - type Value = - runtime_types::pallet_election_provider_multi_phase::RoundSnapshot< - ::subxt::sp_core::crypto::AccountId32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct DesiredTargets; - impl ::subxt::StorageEntry for DesiredTargets { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "DesiredTargets"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct SnapshotMetadata; - impl ::subxt::StorageEntry for SnapshotMetadata { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "SnapshotMetadata"; - type Value = runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct SignedSubmissionNextIndex; - impl ::subxt::StorageEntry for SignedSubmissionNextIndex { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "SignedSubmissionNextIndex"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct SignedSubmissionIndices; - impl ::subxt::StorageEntry for SignedSubmissionIndices { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "SignedSubmissionIndices"; - type Value = runtime_types :: frame_support :: storage :: bounded_btree_map :: BoundedBTreeMap < [:: core :: primitive :: u128 ; 3usize] , :: core :: primitive :: u32 > ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct SignedSubmissionsMap<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for SignedSubmissionsMap<'_> { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "SignedSubmissionsMap"; - type Value = runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: sp_core :: crypto :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: polkadot_runtime :: NposCompactSolution16 > ; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -12971,13 +13166,16 @@ pub mod api { )]) } } - pub struct MinimumUntrustedScore; - impl ::subxt::StorageEntry for MinimumUntrustedScore { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "MinimumUntrustedScore"; - type Value = [::core::primitive::u128; 3usize]; + pub struct Reasons<'a>(pub &'a ::subxt::sp_core::H256); + impl ::subxt::StorageEntry for Reasons<'_> { + const PALLET: &'static str = "Tips"; + const STORAGE: &'static str = "Reasons"; + type Value = ::std::vec::Vec<::core::primitive::u8>; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Identity, + )]) } } pub struct StorageApi<'a, T: ::subxt::Config> { @@ -12987,214 +13185,115 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn round( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = Round; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn current_phase( + pub async fn tips( &self, + _0: &::subxt::sp_core::H256, hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u32, + ::core::option::Option< + runtime_types::pallet_tips::OpenTip< + ::subxt::sp_core::crypto::AccountId32, + ::core::primitive::u128, + ::core::primitive::u32, + ::subxt::sp_core::H256, + >, >, ::subxt::BasicError, > { - let entry = CurrentPhase; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn queued_solution (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: ReadySolution < :: subxt :: sp_core :: crypto :: AccountId32 > > , :: subxt :: BasicError >{ - let entry = QueuedSolution; - self.client.storage().fetch(&entry, hash).await - } pub async fn snapshot (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot < :: subxt :: sp_core :: crypto :: AccountId32 > > , :: subxt :: BasicError >{ - let entry = Snapshot; + let entry = Tips(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn desired_targets( + pub async fn tips_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, + ::subxt::KeyIter<'a, T, Tips<'a>>, ::subxt::BasicError, > { - let entry = DesiredTargets; - self.client.storage().fetch(&entry, hash).await - } pub async fn snapshot_metadata (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize > , :: subxt :: BasicError >{ - let entry = SnapshotMetadata; - self.client.storage().fetch(&entry, hash).await - } - pub async fn signed_submission_next_index( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = SignedSubmissionNextIndex; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn signed_submission_indices (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: bounded_btree_map :: BoundedBTreeMap < [:: core :: primitive :: u128 ; 3usize] , :: core :: primitive :: u32 > , :: subxt :: BasicError >{ - let entry = SignedSubmissionIndices; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn signed_submissions_map (& self , _0 : & :: core :: primitive :: u32 , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: sp_core :: crypto :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , :: subxt :: BasicError >{ - let entry = SignedSubmissionsMap(_0); - self.client.storage().fetch(&entry, hash).await + self.client.storage().iter(hash).await } - pub async fn signed_submissions_map_iter( + pub async fn reasons( &self, + _0: &::subxt::sp_core::H256, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, SignedSubmissionsMap<'a>>, + ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, ::subxt::BasicError, > { - self.client.storage().iter(hash).await + let entry = Reasons(_0); + self.client.storage().fetch(&entry, hash).await } - pub async fn minimum_untrusted_score( + pub async fn reasons_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option<[::core::primitive::u128; 3usize]>, + ::subxt::KeyIter<'a, T, Reasons<'a>>, ::subxt::BasicError, > { - let entry = MinimumUntrustedScore; - self.client.storage().fetch(&entry, hash).await + self.client.storage().iter(hash).await } } } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn unsigned_phase( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[88u8, 2u8, 0u8, 0u8][..], - )?) - } - pub fn signed_phase( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[88u8, 2u8, 0u8, 0u8][..], - )?) - } - pub fn solution_improvement_threshold( - &self, - ) -> ::core::result::Result< - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::BasicError, - > { - Ok(::subxt::codec::Decode::decode( - &mut &[32u8, 161u8, 7u8, 0u8][..], - )?) - } - pub fn offchain_repeat( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[18u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn miner_tx_priority( - &self, - ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[101u8, 102u8, 102u8, 102u8, 102u8, 102u8, 102u8, 230u8][..], - )?) - } - pub fn miner_max_weight( - &self, - ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[192u8, 132u8, 102u8, 101u8, 87u8, 1u8, 0u8, 0u8][..], - )?) + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } } - pub fn signed_max_submissions( + pub fn maximum_reason_length( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[16u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn signed_max_weight( - &self, - ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[192u8, 132u8, 102u8, 101u8, 87u8, 1u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Tips")?; + let constant = pallet.constant("MaximumReasonLength")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub fn signed_reward_base( + pub fn data_deposit_per_byte( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Tips")?; + let constant = pallet.constant("DataDepositPerByte")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub fn signed_deposit_base( + pub fn tip_countdown( &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 160u8, 219u8, 33u8, 93u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Tips")?; + let constant = pallet.constant("TipCountdown")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub fn signed_deposit_byte( + pub fn tip_finders_fee( &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 120u8, 125u8, 1u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + ) -> ::core::result::Result< + runtime_types::sp_arithmetic::per_things::Percent, + ::subxt::BasicError, + > { + let pallet = self.client.metadata().pallet("Tips")?; + let constant = pallet.constant("TipFindersFee")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub fn signed_deposit_weight( + pub fn tip_report_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn voter_snapshot_per_block( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[228u8, 87u8, 0u8, 0u8][..], - )?) - } - pub fn miner_max_length( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 0u8, 54u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Tips")?; + let constant = pallet.constant("TipReportDepositBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } - pub mod bags_list { + pub mod election_provider_multi_phase { use super::root_mod; use super::runtime_types; pub mod calls { @@ -13202,20 +13301,54 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Rebag { - pub dislocated: ::subxt::sp_core::crypto::AccountId32, + 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"; } - impl ::subxt::Call for Rebag { - const PALLET: &'static str = "BagsList"; - const FUNCTION: &'static str = "rebag"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SetMinimumUntrustedScore { + pub maybe_next_score: ::core::option::Option< + runtime_types::sp_npos_elections::ElectionScore, + >, + } + impl ::subxt::Call for SetMinimumUntrustedScore { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const FUNCTION: &'static str = "set_minimum_untrusted_score"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PutInFrontOf { - pub lighter: ::subxt::sp_core::crypto::AccountId32, + pub struct SetEmergencyElectionResult { + pub supports: ::std::vec::Vec<( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::sp_npos_elections::Support< + ::subxt::sp_core::crypto::AccountId32, + >, + )>, } - impl ::subxt::Call for PutInFrontOf { - const PALLET: &'static str = "BagsList"; - const FUNCTION: &'static str = "put_in_front_of"; + impl ::subxt::Call for SetEmergencyElectionResult { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const FUNCTION: &'static str = "set_emergency_election_result"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Submit { + pub raw_solution: ::std::boxed::Box< + runtime_types::pallet_election_provider_multi_phase::RawSolution< + runtime_types::polkadot_runtime::NposCompactSolution16, + >, + >, + } + impl ::subxt::Call for Submit { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const FUNCTION: &'static str = "submit"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct GovernanceFallback { + pub maybe_max_voters: ::core::option::Option<::core::primitive::u32>, + pub maybe_max_targets: ::core::option::Option<::core::primitive::u32>, + } + impl ::subxt::Call for GovernanceFallback { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const FUNCTION: &'static str = "governance_fallback"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -13232,96 +13365,670 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn rebag( + pub fn submit_unsigned( &self, - dislocated: ::subxt::sp_core::crypto::AccountId32, + raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 >, + witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Rebag, + SubmitUnsigned, DispatchError, root_mod::Event, > { - let call = Rebag { dislocated }; + let call = SubmitUnsigned { + raw_solution: ::std::boxed::Box::new(raw_solution), + witness, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn put_in_front_of( + pub fn set_minimum_untrusted_score( &self, - lighter: ::subxt::sp_core::crypto::AccountId32, + maybe_next_score: ::core::option::Option< + runtime_types::sp_npos_elections::ElectionScore, + >, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - PutInFrontOf, + SetMinimumUntrustedScore, DispatchError, root_mod::Event, > { - let call = PutInFrontOf { lighter }; + let call = SetMinimumUntrustedScore { maybe_next_score }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_emergency_election_result( + &self, + supports: ::std::vec::Vec<( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::sp_npos_elections::Support< + ::subxt::sp_core::crypto::AccountId32, + >, + )>, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetEmergencyElectionResult, + DispatchError, + root_mod::Event, + > { + let call = SetEmergencyElectionResult { supports }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn submit( + &self, + raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 >, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Submit, + DispatchError, + root_mod::Event, + > { + let call = Submit { + raw_solution: ::std::boxed::Box::new(raw_solution), + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn governance_fallback( + &self, + maybe_max_voters: ::core::option::Option<::core::primitive::u32>, + maybe_max_targets: ::core::option::Option<::core::primitive::u32>, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + GovernanceFallback, + DispatchError, + root_mod::Event, + > { + let call = GovernanceFallback { + maybe_max_voters, + maybe_max_targets, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::pallet_bags_list::pallet::Event; + pub type Event = + runtime_types::pallet_election_provider_multi_phase::pallet::Event; pub mod events { use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Rebagged { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub from: ::core::primitive::u64, - pub to: ::core::primitive::u64, + pub struct SolutionStored { + pub election_compute: + runtime_types::pallet_election_provider_multi_phase::ElectionCompute, + pub prev_ejected: ::core::primitive::bool, } - impl ::subxt::Event for Rebagged { - const PALLET: &'static str = "BagsList"; - const EVENT: &'static str = "Rebagged"; + impl ::subxt::Event for SolutionStored { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "SolutionStored"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ElectionFinalized { + pub election_compute: ::core::option::Option< + runtime_types::pallet_election_provider_multi_phase::ElectionCompute, + >, + } + impl ::subxt::Event for ElectionFinalized { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "ElectionFinalized"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Rewarded { + pub account: ::subxt::sp_core::crypto::AccountId32, + pub value: ::core::primitive::u128, + } + impl ::subxt::Event for Rewarded { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "Rewarded"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Slashed { + pub account: ::subxt::sp_core::crypto::AccountId32, + pub value: ::core::primitive::u128, + } + impl ::subxt::Event for Slashed { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "Slashed"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SignedPhaseStarted { + pub round: ::core::primitive::u32, + } + impl ::subxt::Event for SignedPhaseStarted { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "SignedPhaseStarted"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct UnsignedPhaseStarted { + pub round: ::core::primitive::u32, + } + impl ::subxt::Event for UnsignedPhaseStarted { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "UnsignedPhaseStarted"; } } pub mod storage { use super::runtime_types; - pub struct ListNodes<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for ListNodes<'_> { - const PALLET: &'static str = "BagsList"; - const STORAGE: &'static str = "ListNodes"; - type Value = runtime_types::pallet_bags_list::list::Node; + pub struct Round; + impl ::subxt::StorageEntry for Round { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "Round"; + type Value = ::core::primitive::u32; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + ::subxt::StorageEntryKey::Plain } } - pub struct CounterForListNodes; - impl ::subxt::StorageEntry for CounterForListNodes { - const PALLET: &'static str = "BagsList"; - const STORAGE: &'static str = "CounterForListNodes"; - type Value = ::core::primitive::u32; + pub struct CurrentPhase; + impl ::subxt::StorageEntry for CurrentPhase { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "CurrentPhase"; + type Value = runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u32, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct ListBags<'a>(pub &'a ::core::primitive::u64); - impl ::subxt::StorageEntry for ListBags<'_> { - const PALLET: &'static str = "BagsList"; - const STORAGE: &'static str = "ListBags"; - type Value = runtime_types::pallet_bags_list::list::Bag; + pub struct QueuedSolution; + impl ::subxt::StorageEntry for QueuedSolution { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "QueuedSolution"; + type Value = + runtime_types::pallet_election_provider_multi_phase::ReadySolution< + ::subxt::sp_core::crypto::AccountId32, + >; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + ::subxt::StorageEntryKey::Plain } } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, + pub struct Snapshot; + impl ::subxt::StorageEntry for Snapshot { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "Snapshot"; + type Value = + runtime_types::pallet_election_provider_multi_phase::RoundSnapshot; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } + pub struct DesiredTargets; + impl ::subxt::StorageEntry for DesiredTargets { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "DesiredTargets"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - pub async fn list_nodes( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, + } + pub struct SnapshotMetadata; + impl ::subxt::StorageEntry for SnapshotMetadata { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "SnapshotMetadata"; + type Value = runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize ; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct SignedSubmissionNextIndex; + impl ::subxt::StorageEntry for SignedSubmissionNextIndex { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "SignedSubmissionNextIndex"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct SignedSubmissionIndices; + impl ::subxt::StorageEntry for SignedSubmissionIndices { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "SignedSubmissionIndices"; + type Value = runtime_types :: frame_support :: storage :: bounded_btree_map :: BoundedBTreeMap < runtime_types :: sp_npos_elections :: ElectionScore , :: core :: primitive :: u32 > ; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct SignedSubmissionsMap<'a>(pub &'a ::core::primitive::u32); + impl ::subxt::StorageEntry for SignedSubmissionsMap<'_> { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "SignedSubmissionsMap"; + type Value = runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: sp_core :: crypto :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: polkadot_runtime :: NposCompactSolution16 > ; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct MinimumUntrustedScore; + impl ::subxt::StorageEntry for MinimumUntrustedScore { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const STORAGE: &'static str = "MinimumUntrustedScore"; + type Value = runtime_types::sp_npos_elections::ElectionScore; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn round( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = Round; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn current_phase( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u32, + >, + ::subxt::BasicError, + > { + let entry = CurrentPhase; + self.client.storage().fetch_or_default(&entry, hash).await + } pub async fn queued_solution (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: ReadySolution < :: subxt :: sp_core :: crypto :: AccountId32 > > , :: subxt :: BasicError >{ + let entry = QueuedSolution; + self.client.storage().fetch(&entry, hash).await + } pub async fn snapshot (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot > , :: subxt :: BasicError >{ + let entry = Snapshot; + self.client.storage().fetch(&entry, hash).await + } + pub async fn desired_targets( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::core::primitive::u32>, + ::subxt::BasicError, + > { + let entry = DesiredTargets; + self.client.storage().fetch(&entry, hash).await + } pub async fn snapshot_metadata (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize > , :: subxt :: BasicError >{ + let entry = SnapshotMetadata; + self.client.storage().fetch(&entry, hash).await + } + pub async fn signed_submission_next_index( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = SignedSubmissionNextIndex; + self.client.storage().fetch_or_default(&entry, hash).await + } pub async fn signed_submission_indices (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: bounded_btree_map :: BoundedBTreeMap < runtime_types :: sp_npos_elections :: ElectionScore , :: core :: primitive :: u32 > , :: subxt :: BasicError >{ + let entry = SignedSubmissionIndices; + self.client.storage().fetch_or_default(&entry, hash).await + } pub async fn signed_submissions_map (& self , _0 : & :: core :: primitive :: u32 , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: sp_core :: crypto :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , :: subxt :: BasicError >{ + let entry = SignedSubmissionsMap(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn signed_submissions_map_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, SignedSubmissionsMap<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn minimum_untrusted_score( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::sp_npos_elections::ElectionScore, + >, + ::subxt::BasicError, + > { + let entry = MinimumUntrustedScore; + self.client.storage().fetch(&entry, hash).await + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn unsigned_phase( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("UnsignedPhase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn signed_phase( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("SignedPhase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn solution_improvement_threshold( + &self, + ) -> ::core::result::Result< + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::BasicError, + > { + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("SolutionImprovementThreshold")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn offchain_repeat( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("OffchainRepeat")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn miner_tx_priority( + &self, + ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + { + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("MinerTxPriority")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn miner_max_weight( + &self, + ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + { + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("MinerMaxWeight")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn signed_max_submissions( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("SignedMaxSubmissions")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn signed_max_weight( + &self, + ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + { + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("SignedMaxWeight")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn signed_reward_base( + &self, + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> + { + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("SignedRewardBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn signed_deposit_base( + &self, + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> + { + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("SignedDepositBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn signed_deposit_byte( + &self, + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> + { + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("SignedDepositByte")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn signed_deposit_weight( + &self, + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> + { + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("SignedDepositWeight")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn max_electing_voters( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("MaxElectingVoters")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn max_electable_targets( + &self, + ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> + { + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("MaxElectableTargets")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn miner_max_length( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("MinerMaxLength")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + } + } + } + pub mod bags_list { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Rebag { + pub dislocated: ::subxt::sp_core::crypto::AccountId32, + } + impl ::subxt::Call for Rebag { + const PALLET: &'static str = "BagsList"; + const FUNCTION: &'static str = "rebag"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct PutInFrontOf { + pub lighter: ::subxt::sp_core::crypto::AccountId32, + } + impl ::subxt::Call for PutInFrontOf { + const PALLET: &'static str = "BagsList"; + const FUNCTION: &'static str = "put_in_front_of"; + } + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::SignedExtra, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } + } + pub fn rebag( + &self, + dislocated: ::subxt::sp_core::crypto::AccountId32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Rebag, + DispatchError, + root_mod::Event, + > { + let call = Rebag { dislocated }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn put_in_front_of( + &self, + lighter: ::subxt::sp_core::crypto::AccountId32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + PutInFrontOf, + DispatchError, + root_mod::Event, + > { + let call = PutInFrontOf { lighter }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + } + } + 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)] + pub struct Rebagged { + pub who: ::subxt::sp_core::crypto::AccountId32, + pub from: ::core::primitive::u64, + pub to: ::core::primitive::u64, + } + impl ::subxt::Event for Rebagged { + const PALLET: &'static str = "BagsList"; + const EVENT: &'static str = "Rebagged"; + } + } + pub mod storage { + use super::runtime_types; + pub struct ListNodes<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for ListNodes<'_> { + const PALLET: &'static str = "BagsList"; + const STORAGE: &'static str = "ListNodes"; + type Value = runtime_types::pallet_bags_list::list::Node; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct CounterForListNodes; + impl ::subxt::StorageEntry for CounterForListNodes { + const PALLET: &'static str = "BagsList"; + const STORAGE: &'static str = "CounterForListNodes"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct ListBags<'a>(pub &'a ::core::primitive::u64); + impl ::subxt::StorageEntry for ListBags<'_> { + const PALLET: &'static str = "BagsList"; + const STORAGE: &'static str = "ListBags"; + type Value = runtime_types::pallet_bags_list::list::Bag; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn list_nodes( + &self, + _0: &::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option, ::subxt::BasicError, @@ -13370,186 +14077,23 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn bag_thresholds( &self, ) -> ::core::result::Result< ::std::vec::Vec<::core::primitive::u64>, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 33u8, 3u8, 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 243u8, - 158u8, 128u8, 151u8, 2u8, 0u8, 0u8, 0u8, 168u8, 177u8, 151u8, - 226u8, 2u8, 0u8, 0u8, 0u8, 148u8, 73u8, 46u8, 54u8, 3u8, 0u8, - 0u8, 0u8, 39u8, 156u8, 58u8, 147u8, 3u8, 0u8, 0u8, 0u8, 3u8, - 188u8, 206u8, 250u8, 3u8, 0u8, 0u8, 0u8, 66u8, 192u8, 27u8, - 110u8, 4u8, 0u8, 0u8, 0u8, 27u8, 71u8, 117u8, 238u8, 4u8, - 0u8, 0u8, 0u8, 56u8, 94u8, 85u8, 125u8, 5u8, 0u8, 0u8, 0u8, - 70u8, 220u8, 96u8, 28u8, 6u8, 0u8, 0u8, 0u8, 137u8, 56u8, - 108u8, 205u8, 6u8, 0u8, 0u8, 0u8, 182u8, 238u8, 128u8, 146u8, - 7u8, 0u8, 0u8, 0u8, 254u8, 126u8, 227u8, 109u8, 8u8, 0u8, - 0u8, 0u8, 232u8, 27u8, 26u8, 98u8, 9u8, 0u8, 0u8, 0u8, 176u8, - 25u8, 244u8, 113u8, 10u8, 0u8, 0u8, 0u8, 16u8, 53u8, 146u8, - 160u8, 11u8, 0u8, 0u8, 0u8, 207u8, 201u8, 111u8, 241u8, 12u8, - 0u8, 0u8, 0u8, 65u8, 20u8, 109u8, 104u8, 14u8, 0u8, 0u8, 0u8, - 231u8, 155u8, 218u8, 9u8, 16u8, 0u8, 0u8, 0u8, 206u8, 232u8, - 133u8, 218u8, 17u8, 0u8, 0u8, 0u8, 40u8, 169u8, 199u8, 223u8, - 19u8, 0u8, 0u8, 0u8, 187u8, 112u8, 147u8, 31u8, 22u8, 0u8, - 0u8, 0u8, 142u8, 64u8, 137u8, 160u8, 24u8, 0u8, 0u8, 0u8, - 129u8, 10u8, 9u8, 106u8, 27u8, 0u8, 0u8, 0u8, 54u8, 106u8, - 72u8, 132u8, 30u8, 0u8, 0u8, 0u8, 91u8, 211u8, 106u8, 248u8, - 33u8, 0u8, 0u8, 0u8, 128u8, 124u8, 156u8, 208u8, 37u8, 0u8, - 0u8, 0u8, 201u8, 85u8, 48u8, 24u8, 42u8, 0u8, 0u8, 0u8, - 189u8, 99u8, 193u8, 219u8, 46u8, 0u8, 0u8, 0u8, 113u8, 224u8, - 87u8, 41u8, 52u8, 0u8, 0u8, 0u8, 104u8, 144u8, 146u8, 16u8, - 58u8, 0u8, 0u8, 0u8, 237u8, 196u8, 212u8, 162u8, 64u8, 0u8, - 0u8, 0u8, 105u8, 147u8, 121u8, 243u8, 71u8, 0u8, 0u8, 0u8, - 143u8, 216u8, 12u8, 24u8, 80u8, 0u8, 0u8, 0u8, 75u8, 175u8, - 138u8, 40u8, 89u8, 0u8, 0u8, 0u8, 106u8, 22u8, 166u8, 63u8, - 99u8, 0u8, 0u8, 0u8, 9u8, 149u8, 23u8, 123u8, 110u8, 0u8, - 0u8, 0u8, 120u8, 197u8, 244u8, 251u8, 122u8, 0u8, 0u8, 0u8, - 98u8, 200u8, 17u8, 231u8, 136u8, 0u8, 0u8, 0u8, 81u8, 191u8, - 109u8, 101u8, 152u8, 0u8, 0u8, 0u8, 4u8, 142u8, 171u8, 164u8, - 169u8, 0u8, 0u8, 0u8, 84u8, 70u8, 152u8, 215u8, 188u8, 0u8, - 0u8, 0u8, 145u8, 202u8, 192u8, 54u8, 210u8, 0u8, 0u8, 0u8, - 23u8, 95u8, 24u8, 1u8, 234u8, 0u8, 0u8, 0u8, 189u8, 21u8, - 178u8, 124u8, 4u8, 1u8, 0u8, 0u8, 67u8, 53u8, 143u8, 247u8, - 33u8, 1u8, 0u8, 0u8, 184u8, 252u8, 132u8, 200u8, 66u8, 1u8, - 0u8, 0u8, 153u8, 103u8, 60u8, 80u8, 103u8, 1u8, 0u8, 0u8, - 7u8, 228u8, 78u8, 250u8, 143u8, 1u8, 0u8, 0u8, 179u8, 65u8, - 131u8, 62u8, 189u8, 1u8, 0u8, 0u8, 2u8, 127u8, 46u8, 162u8, - 239u8, 1u8, 0u8, 0u8, 152u8, 131u8, 188u8, 185u8, 39u8, 2u8, - 0u8, 0u8, 22u8, 77u8, 101u8, 42u8, 102u8, 2u8, 0u8, 0u8, - 180u8, 149u8, 19u8, 172u8, 171u8, 2u8, 0u8, 0u8, 45u8, 142u8, - 130u8, 11u8, 249u8, 2u8, 0u8, 0u8, 161u8, 230u8, 152u8, 44u8, - 79u8, 3u8, 0u8, 0u8, 166u8, 22u8, 8u8, 13u8, 175u8, 3u8, 0u8, - 0u8, 204u8, 157u8, 55u8, 199u8, 25u8, 4u8, 0u8, 0u8, 160u8, - 213u8, 132u8, 149u8, 144u8, 4u8, 0u8, 0u8, 66u8, 231u8, - 224u8, 213u8, 20u8, 5u8, 0u8, 0u8, 2u8, 140u8, 215u8, 13u8, - 168u8, 5u8, 0u8, 0u8, 15u8, 117u8, 10u8, 239u8, 75u8, 6u8, - 0u8, 0u8, 234u8, 141u8, 46u8, 92u8, 2u8, 7u8, 0u8, 0u8, - 195u8, 203u8, 153u8, 110u8, 205u8, 7u8, 0u8, 0u8, 177u8, - 229u8, 113u8, 124u8, 175u8, 8u8, 0u8, 0u8, 170u8, 43u8, - 142u8, 31u8, 171u8, 9u8, 0u8, 0u8, 181u8, 193u8, 32u8, 61u8, - 195u8, 10u8, 0u8, 0u8, 38u8, 208u8, 61u8, 14u8, 251u8, 11u8, - 0u8, 0u8, 112u8, 199u8, 89u8, 41u8, 86u8, 13u8, 0u8, 0u8, - 235u8, 173u8, 218u8, 140u8, 216u8, 14u8, 0u8, 0u8, 247u8, - 151u8, 219u8, 170u8, 134u8, 16u8, 0u8, 0u8, 207u8, 240u8, - 68u8, 118u8, 101u8, 18u8, 0u8, 0u8, 31u8, 38u8, 96u8, 113u8, - 122u8, 20u8, 0u8, 0u8, 9u8, 166u8, 17u8, 190u8, 203u8, 22u8, - 0u8, 0u8, 29u8, 251u8, 232u8, 47u8, 96u8, 25u8, 0u8, 0u8, - 148u8, 58u8, 60u8, 96u8, 63u8, 28u8, 0u8, 0u8, 138u8, 254u8, - 137u8, 196u8, 113u8, 31u8, 0u8, 0u8, 206u8, 217u8, 99u8, - 199u8, 0u8, 35u8, 0u8, 0u8, 3u8, 169u8, 42u8, 228u8, 246u8, - 38u8, 0u8, 0u8, 254u8, 114u8, 238u8, 197u8, 95u8, 43u8, 0u8, - 0u8, 54u8, 201u8, 204u8, 105u8, 72u8, 48u8, 0u8, 0u8, 218u8, - 227u8, 50u8, 69u8, 191u8, 53u8, 0u8, 0u8, 6u8, 42u8, 116u8, - 112u8, 212u8, 59u8, 0u8, 0u8, 124u8, 151u8, 50u8, 214u8, - 153u8, 66u8, 0u8, 0u8, 132u8, 163u8, 36u8, 104u8, 35u8, 74u8, - 0u8, 0u8, 87u8, 26u8, 212u8, 89u8, 135u8, 82u8, 0u8, 0u8, - 231u8, 241u8, 2u8, 98u8, 222u8, 91u8, 0u8, 0u8, 13u8, 184u8, - 118u8, 3u8, 68u8, 102u8, 0u8, 0u8, 174u8, 4u8, 1u8, 222u8, - 214u8, 113u8, 0u8, 0u8, 125u8, 158u8, 179u8, 8u8, 185u8, - 126u8, 0u8, 0u8, 30u8, 4u8, 74u8, 118u8, 16u8, 141u8, 0u8, - 0u8, 58u8, 29u8, 240u8, 100u8, 7u8, 157u8, 0u8, 0u8, 224u8, - 79u8, 175u8, 218u8, 204u8, 174u8, 0u8, 0u8, 86u8, 121u8, - 240u8, 47u8, 149u8, 194u8, 0u8, 0u8, 149u8, 195u8, 170u8, - 169u8, 154u8, 216u8, 0u8, 0u8, 150u8, 124u8, 5u8, 37u8, 30u8, - 241u8, 0u8, 0u8, 23u8, 122u8, 102u8, 214u8, 103u8, 12u8, 1u8, - 0u8, 40u8, 203u8, 31u8, 30u8, 200u8, 42u8, 1u8, 0u8, 250u8, - 40u8, 47u8, 117u8, 152u8, 76u8, 1u8, 0u8, 213u8, 125u8, - 200u8, 116u8, 60u8, 114u8, 1u8, 0u8, 125u8, 196u8, 179u8, - 251u8, 34u8, 156u8, 1u8, 0u8, 54u8, 92u8, 222u8, 116u8, - 199u8, 202u8, 1u8, 0u8, 158u8, 184u8, 225u8, 66u8, 179u8, - 254u8, 1u8, 0u8, 12u8, 49u8, 174u8, 84u8, 127u8, 56u8, 2u8, - 0u8, 95u8, 225u8, 1u8, 232u8, 213u8, 120u8, 2u8, 0u8, 99u8, - 115u8, 218u8, 126u8, 116u8, 192u8, 2u8, 0u8, 81u8, 209u8, - 166u8, 13u8, 46u8, 16u8, 3u8, 0u8, 199u8, 233u8, 164u8, - 104u8, 237u8, 104u8, 3u8, 0u8, 97u8, 192u8, 145u8, 247u8, - 183u8, 203u8, 3u8, 0u8, 191u8, 39u8, 161u8, 183u8, 176u8, - 57u8, 4u8, 0u8, 123u8, 20u8, 153u8, 148u8, 27u8, 180u8, 4u8, - 0u8, 133u8, 35u8, 237u8, 34u8, 97u8, 60u8, 5u8, 0u8, 105u8, - 165u8, 212u8, 197u8, 18u8, 212u8, 5u8, 0u8, 236u8, 140u8, - 147u8, 77u8, 239u8, 124u8, 6u8, 0u8, 245u8, 170u8, 144u8, - 27u8, 232u8, 56u8, 7u8, 0u8, 140u8, 190u8, 93u8, 219u8, 38u8, - 10u8, 8u8, 0u8, 2u8, 151u8, 140u8, 225u8, 19u8, 243u8, 8u8, - 0u8, 250u8, 227u8, 20u8, 67u8, 93u8, 246u8, 9u8, 0u8, 221u8, - 241u8, 45u8, 186u8, 254u8, 22u8, 11u8, 0u8, 46u8, 186u8, - 220u8, 111u8, 74u8, 88u8, 12u8, 0u8, 12u8, 85u8, 24u8, 196u8, - 242u8, 189u8, 13u8, 0u8, 240u8, 187u8, 84u8, 49u8, 21u8, - 76u8, 15u8, 0u8, 73u8, 142u8, 134u8, 107u8, 70u8, 7u8, 17u8, - 0u8, 178u8, 193u8, 83u8, 222u8, 159u8, 244u8, 18u8, 0u8, - 39u8, 138u8, 47u8, 178u8, 206u8, 25u8, 21u8, 0u8, 178u8, - 57u8, 159u8, 132u8, 36u8, 125u8, 23u8, 0u8, 225u8, 153u8, - 231u8, 4u8, 170u8, 37u8, 26u8, 0u8, 186u8, 19u8, 245u8, - 171u8, 51u8, 27u8, 29u8, 0u8, 38u8, 71u8, 133u8, 204u8, - 120u8, 102u8, 32u8, 0u8, 136u8, 191u8, 128u8, 63u8, 45u8, - 17u8, 36u8, 0u8, 28u8, 152u8, 35u8, 248u8, 29u8, 38u8, 40u8, - 0u8, 204u8, 196u8, 34u8, 212u8, 80u8, 177u8, 44u8, 0u8, - 240u8, 136u8, 130u8, 5u8, 40u8, 192u8, 49u8, 0u8, 54u8, - 124u8, 109u8, 126u8, 137u8, 97u8, 55u8, 0u8, 110u8, 147u8, - 41u8, 211u8, 10u8, 166u8, 61u8, 0u8, 140u8, 188u8, 108u8, - 19u8, 34u8, 160u8, 68u8, 0u8, 0u8, 112u8, 243u8, 42u8, 92u8, - 100u8, 76u8, 0u8, 180u8, 59u8, 132u8, 105u8, 153u8, 9u8, - 85u8, 0u8, 128u8, 180u8, 171u8, 228u8, 80u8, 169u8, 94u8, - 0u8, 160u8, 205u8, 169u8, 121u8, 219u8, 95u8, 105u8, 0u8, - 76u8, 194u8, 127u8, 76u8, 199u8, 76u8, 117u8, 0u8, 208u8, - 172u8, 14u8, 186u8, 52u8, 147u8, 130u8, 0u8, 72u8, 62u8, - 12u8, 207u8, 61u8, 90u8, 145u8, 0u8, 104u8, 198u8, 142u8, - 116u8, 105u8, 205u8, 161u8, 0u8, 40u8, 30u8, 111u8, 165u8, - 43u8, 29u8, 180u8, 0u8, 152u8, 169u8, 35u8, 38u8, 116u8, - 127u8, 200u8, 0u8, 240u8, 154u8, 116u8, 99u8, 77u8, 48u8, - 223u8, 0u8, 128u8, 205u8, 252u8, 75u8, 141u8, 114u8, 248u8, - 0u8, 144u8, 20u8, 96u8, 45u8, 154u8, 144u8, 20u8, 1u8, 240u8, - 180u8, 19u8, 217u8, 69u8, 221u8, 51u8, 1u8, 32u8, 151u8, - 53u8, 150u8, 193u8, 180u8, 86u8, 1u8, 80u8, 220u8, 251u8, - 174u8, 173u8, 125u8, 125u8, 1u8, 224u8, 17u8, 152u8, 185u8, - 71u8, 170u8, 168u8, 1u8, 48u8, 199u8, 238u8, 22u8, 187u8, - 185u8, 216u8, 1u8, 32u8, 110u8, 72u8, 134u8, 151u8, 57u8, - 14u8, 2u8, 160u8, 250u8, 75u8, 29u8, 114u8, 199u8, 73u8, 2u8, - 192u8, 17u8, 113u8, 112u8, 181u8, 18u8, 140u8, 2u8, 128u8, - 138u8, 22u8, 67u8, 166u8, 222u8, 213u8, 2u8, 192u8, 248u8, - 35u8, 177u8, 162u8, 4u8, 40u8, 3u8, 128u8, 175u8, 89u8, - 112u8, 162u8, 118u8, 131u8, 3u8, 192u8, 111u8, 45u8, 135u8, - 255u8, 65u8, 233u8, 3u8, 64u8, 147u8, 127u8, 172u8, 143u8, - 146u8, 90u8, 4u8, 0u8, 145u8, 9u8, 113u8, 23u8, 182u8, 216u8, - 4u8, 64u8, 15u8, 223u8, 91u8, 33u8, 32u8, 101u8, 5u8, 0u8, - 73u8, 193u8, 73u8, 68u8, 110u8, 1u8, 6u8, 0u8, 142u8, 188u8, - 166u8, 229u8, 108u8, 175u8, 6u8, 0u8, 89u8, 86u8, 134u8, - 133u8, 28u8, 113u8, 7u8, 128u8, 104u8, 170u8, 52u8, 164u8, - 183u8, 72u8, 8u8, 128u8, 161u8, 226u8, 158u8, 82u8, 185u8, - 56u8, 9u8, 0u8, 189u8, 171u8, 232u8, 128u8, 228u8, 67u8, - 10u8, 0u8, 42u8, 114u8, 180u8, 32u8, 76u8, 109u8, 11u8, - 128u8, 241u8, 192u8, 19u8, 51u8, 92u8, 184u8, 12u8, 0u8, - 160u8, 60u8, 203u8, 220u8, 227u8, 40u8, 14u8, 128u8, 184u8, - 98u8, 154u8, 158u8, 32u8, 195u8, 15u8, 0u8, 222u8, 86u8, - 147u8, 210u8, 202u8, 139u8, 17u8, 0u8, 93u8, 127u8, 76u8, - 147u8, 35u8, 136u8, 19u8, 0u8, 26u8, 135u8, 223u8, 53u8, 4u8, - 190u8, 21u8, 0u8, 167u8, 206u8, 75u8, 132u8, 239u8, 51u8, - 24u8, 0u8, 1u8, 16u8, 251u8, 234u8, 36u8, 241u8, 26u8, 0u8, - 128u8, 42u8, 229u8, 209u8, 181u8, 253u8, 29u8, 0u8, 34u8, - 161u8, 52u8, 96u8, 157u8, 98u8, 33u8, 0u8, 68u8, 33u8, 107u8, - 240u8, 218u8, 41u8, 37u8, 0u8, 2u8, 97u8, 241u8, 130u8, - 143u8, 94u8, 41u8, 0u8, 102u8, 32u8, 207u8, 133u8, 30u8, - 13u8, 46u8, 0u8, 132u8, 16u8, 25u8, 82u8, 82u8, 67u8, 51u8, - 0u8, 160u8, 193u8, 143u8, 202u8, 132u8, 16u8, 57u8, 0u8, - 38u8, 173u8, 20u8, 147u8, 204u8, 133u8, 63u8, 0u8, 208u8, - 205u8, 36u8, 102u8, 47u8, 182u8, 70u8, 0u8, 156u8, 225u8, - 154u8, 28u8, 218u8, 182u8, 78u8, 0u8, 88u8, 204u8, 194u8, - 12u8, 95u8, 159u8, 87u8, 0u8, 32u8, 10u8, 117u8, 120u8, - 251u8, 137u8, 97u8, 0u8, 48u8, 187u8, 187u8, 214u8, 228u8, - 147u8, 108u8, 0u8, 96u8, 203u8, 167u8, 220u8, 158u8, 221u8, - 120u8, 0u8, 184u8, 59u8, 192u8, 66u8, 91u8, 139u8, 134u8, - 0u8, 184u8, 134u8, 35u8, 97u8, 100u8, 197u8, 149u8, 0u8, - 248u8, 241u8, 95u8, 220u8, 147u8, 184u8, 166u8, 0u8, 32u8, - 106u8, 145u8, 192u8, 214u8, 150u8, 185u8, 0u8, 216u8, 239u8, - 226u8, 143u8, 192u8, 151u8, 206u8, 0u8, 104u8, 41u8, 155u8, - 245u8, 46u8, 249u8, 229u8, 255u8, 255u8, 255u8, 255u8, 255u8, - 255u8, 255u8, 255u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("BagsList")?; + let constant = pallet.constant("BagThresholds")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -14897,7 +15441,7 @@ pub mod api { const PALLET: &'static str = "ParasShared"; const STORAGE: &'static str = "ActiveValidatorIndices"; type Value = ::std::vec::Vec< - runtime_types::polkadot_primitives::v0::ValidatorIndex, + runtime_types::polkadot_primitives::v2::ValidatorIndex, >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain @@ -14908,7 +15452,7 @@ pub mod api { const PALLET: &'static str = "ParasShared"; const STORAGE: &'static str = "ActiveValidatorKeys"; type Value = ::std::vec::Vec< - runtime_types::polkadot_primitives::v0::validator_app::Public, + runtime_types::polkadot_primitives::v2::validator_app::Public, >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain @@ -14934,7 +15478,7 @@ pub mod api { hash: ::core::option::Option, ) -> ::core::result::Result< ::std::vec::Vec< - runtime_types::polkadot_primitives::v0::ValidatorIndex, + runtime_types::polkadot_primitives::v2::ValidatorIndex, >, ::subxt::BasicError, > { @@ -14946,7 +15490,7 @@ pub mod api { hash: ::core::option::Option, ) -> ::core::result::Result< ::std::vec::Vec< - runtime_types::polkadot_primitives::v0::validator_app::Public, + runtime_types::polkadot_primitives::v2::validator_app::Public, >, ::subxt::BasicError, > { @@ -14986,12 +15530,12 @@ pub mod api { use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct CandidateBacked( - pub runtime_types::polkadot_primitives::v1::CandidateReceipt< + pub runtime_types::polkadot_primitives::v2::CandidateReceipt< ::subxt::sp_core::H256, >, pub runtime_types::polkadot_parachain::primitives::HeadData, - pub runtime_types::polkadot_primitives::v1::CoreIndex, - pub runtime_types::polkadot_primitives::v1::GroupIndex, + pub runtime_types::polkadot_primitives::v2::CoreIndex, + pub runtime_types::polkadot_primitives::v2::GroupIndex, ); impl ::subxt::Event for CandidateBacked { const PALLET: &'static str = "ParaInclusion"; @@ -14999,12 +15543,12 @@ pub mod api { } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct CandidateIncluded( - pub runtime_types::polkadot_primitives::v1::CandidateReceipt< + pub runtime_types::polkadot_primitives::v2::CandidateReceipt< ::subxt::sp_core::H256, >, pub runtime_types::polkadot_parachain::primitives::HeadData, - pub runtime_types::polkadot_primitives::v1::CoreIndex, - pub runtime_types::polkadot_primitives::v1::GroupIndex, + pub runtime_types::polkadot_primitives::v2::CoreIndex, + pub runtime_types::polkadot_primitives::v2::GroupIndex, ); impl ::subxt::Event for CandidateIncluded { const PALLET: &'static str = "ParaInclusion"; @@ -15012,11 +15556,11 @@ pub mod api { } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct CandidateTimedOut( - pub runtime_types::polkadot_primitives::v1::CandidateReceipt< + pub runtime_types::polkadot_primitives::v2::CandidateReceipt< ::subxt::sp_core::H256, >, pub runtime_types::polkadot_parachain::primitives::HeadData, - pub runtime_types::polkadot_primitives::v1::CoreIndex, + pub runtime_types::polkadot_primitives::v2::CoreIndex, ); impl ::subxt::Event for CandidateTimedOut { const PALLET: &'static str = "ParaInclusion"; @@ -15026,7 +15570,7 @@ pub mod api { pub mod storage { use super::runtime_types; pub struct AvailabilityBitfields<'a>( - pub &'a runtime_types::polkadot_primitives::v0::ValidatorIndex, + pub &'a runtime_types::polkadot_primitives::v2::ValidatorIndex, ); impl ::subxt::StorageEntry for AvailabilityBitfields<'_> { const PALLET: &'static str = "ParaInclusion"; @@ -15059,7 +15603,7 @@ pub mod api { impl ::subxt::StorageEntry for PendingAvailabilityCommitments<'_> { const PALLET: &'static str = "ParaInclusion"; const STORAGE: &'static str = "PendingAvailabilityCommitments"; - type Value = runtime_types::polkadot_primitives::v1::CandidateCommitments< + type Value = runtime_types::polkadot_primitives::v2::CandidateCommitments< ::core::primitive::u32, >; fn key(&self) -> ::subxt::StorageEntryKey { @@ -15075,7 +15619,7 @@ pub mod api { impl<'a, T: ::subxt::Config> StorageApi<'a, T> { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } - } pub async fn availability_bitfields (& self , _0 : & runtime_types :: polkadot_primitives :: v0 :: ValidatorIndex , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ + } pub async fn availability_bitfields (& self , _0 : & runtime_types :: polkadot_primitives :: v2 :: ValidatorIndex , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ let entry = AvailabilityBitfields(_0); self.client.storage().fetch(&entry, hash).await } @@ -15106,7 +15650,7 @@ pub mod api { hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - runtime_types::polkadot_primitives::v1::CandidateCommitments< + runtime_types::polkadot_primitives::v2::CandidateCommitments< ::core::primitive::u32, >, >, @@ -15136,7 +15680,7 @@ pub mod api { type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Enter { - pub data: runtime_types::polkadot_primitives::v1::InherentData< + pub data: runtime_types::polkadot_primitives::v2::InherentData< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, @@ -15164,7 +15708,7 @@ pub mod api { } pub fn enter( &self, - data: runtime_types::polkadot_primitives::v1::InherentData< + data: runtime_types::polkadot_primitives::v2::InherentData< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, @@ -15198,7 +15742,7 @@ pub mod api { impl ::subxt::StorageEntry for OnChainVotes { const PALLET: &'static str = "ParaInherent"; const STORAGE: &'static str = "OnChainVotes"; - type Value = runtime_types::polkadot_primitives::v1::ScrapedOnChainVotes< + type Value = runtime_types::polkadot_primitives::v2::ScrapedOnChainVotes< ::subxt::sp_core::H256, >; fn key(&self) -> ::subxt::StorageEntryKey { @@ -15225,7 +15769,7 @@ pub mod api { hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - runtime_types::polkadot_primitives::v1::ScrapedOnChainVotes< + runtime_types::polkadot_primitives::v2::ScrapedOnChainVotes< ::subxt::sp_core::H256, >, >, @@ -15248,7 +15792,7 @@ pub mod api { const STORAGE: &'static str = "ValidatorGroups"; type Value = ::std::vec::Vec< ::std::vec::Vec< - runtime_types::polkadot_primitives::v0::ValidatorIndex, + runtime_types::polkadot_primitives::v2::ValidatorIndex, >, >; fn key(&self) -> ::subxt::StorageEntryKey { @@ -15270,7 +15814,7 @@ pub mod api { const STORAGE: &'static str = "AvailabilityCores"; type Value = ::std::vec::Vec< ::core::option::Option< - runtime_types::polkadot_primitives::v1::CoreOccupied, + runtime_types::polkadot_primitives::v2::CoreOccupied, >, >; fn key(&self) -> ::subxt::StorageEntryKey { @@ -15320,7 +15864,7 @@ pub mod api { ) -> ::core::result::Result< ::std::vec::Vec< ::std::vec::Vec< - runtime_types::polkadot_primitives::v0::ValidatorIndex, + runtime_types::polkadot_primitives::v2::ValidatorIndex, >, >, ::subxt::BasicError, @@ -15337,7 +15881,7 @@ pub mod api { ) -> ::core::result::Result< ::std::vec::Vec< ::core::option::Option< - runtime_types::polkadot_primitives::v1::CoreOccupied, + runtime_types::polkadot_primitives::v2::CoreOccupied, >, >, ::subxt::BasicError, @@ -15445,7 +15989,7 @@ pub mod api { pub struct IncludePvfCheckStatement { pub stmt: runtime_types::polkadot_primitives::v2::PvfCheckStatement, pub signature: - runtime_types::polkadot_primitives::v0::validator_app::Signature, + runtime_types::polkadot_primitives::v2::validator_app::Signature, } impl ::subxt::Call for IncludePvfCheckStatement { const PALLET: &'static str = "Paras"; @@ -15578,7 +16122,7 @@ pub mod api { pub fn include_pvf_check_statement( &self, stmt: runtime_types::polkadot_primitives::v2::PvfCheckStatement, - signature : runtime_types :: polkadot_primitives :: v0 :: validator_app :: Signature, + signature : runtime_types :: polkadot_primitives :: v2 :: validator_app :: Signature, ) -> ::subxt::SubmittableExtrinsic< 'a, T, @@ -15825,7 +16369,7 @@ pub mod api { impl ::subxt::StorageEntry for UpgradeGoAheadSignal<'_> { const PALLET: &'static str = "Paras"; const STORAGE: &'static str = "UpgradeGoAheadSignal"; - type Value = runtime_types::polkadot_primitives::v1::UpgradeGoAhead; + type Value = runtime_types::polkadot_primitives::v2::UpgradeGoAhead; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -15839,7 +16383,7 @@ pub mod api { impl ::subxt::StorageEntry for UpgradeRestrictionSignal<'_> { const PALLET: &'static str = "Paras"; const STORAGE: &'static str = "UpgradeRestrictionSignal"; - type Value = runtime_types::polkadot_primitives::v1::UpgradeRestriction; + type Value = runtime_types::polkadot_primitives::v2::UpgradeRestriction; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -16141,7 +16685,7 @@ pub mod api { hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - runtime_types::polkadot_primitives::v1::UpgradeGoAhead, + runtime_types::polkadot_primitives::v2::UpgradeGoAhead, >, ::subxt::BasicError, > { @@ -16163,7 +16707,7 @@ pub mod api { hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - runtime_types::polkadot_primitives::v1::UpgradeRestriction, + runtime_types::polkadot_primitives::v2::UpgradeRestriction, >, ::subxt::BasicError, > { @@ -16281,15 +16825,21 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn unsigned_priority( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[255u8, 255u8, 255u8, 255u8, 255u8, 255u8, 255u8, 255u8][..], - )?) + let pallet = self.client.metadata().pallet("Paras")?; + let constant = pallet.constant("UnsignedPriority")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -16825,19 +17375,35 @@ pub mod api { #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct ForceCleanHrmp { pub para: runtime_types::polkadot_parachain::primitives::Id, + pub inbound: ::core::primitive::u32, + pub outbound: ::core::primitive::u32, } impl ::subxt::Call for ForceCleanHrmp { const PALLET: &'static str = "Hrmp"; const FUNCTION: &'static str = "force_clean_hrmp"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceProcessHrmpOpen; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct ForceProcessHrmpOpen { + pub channels: ::core::primitive::u32, + } impl ::subxt::Call for ForceProcessHrmpOpen { const PALLET: &'static str = "Hrmp"; const FUNCTION: &'static str = "force_process_hrmp_open"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceProcessHrmpClose; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct ForceProcessHrmpClose { + pub channels: ::core::primitive::u32, + } impl ::subxt::Call for ForceProcessHrmpClose { const PALLET: &'static str = "Hrmp"; const FUNCTION: &'static str = "force_process_hrmp_close"; @@ -16846,6 +17412,7 @@ pub mod api { pub struct HrmpCancelOpenRequest { pub channel_id: runtime_types::polkadot_parachain::primitives::HrmpChannelId, + pub open_requests: ::core::primitive::u32, } impl ::subxt::Call for HrmpCancelOpenRequest { const PALLET: &'static str = "Hrmp"; @@ -16917,6 +17484,8 @@ pub mod api { pub fn force_clean_hrmp( &self, para: runtime_types::polkadot_parachain::primitives::Id, + inbound: ::core::primitive::u32, + outbound: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, @@ -16925,11 +17494,16 @@ pub mod api { DispatchError, root_mod::Event, > { - let call = ForceCleanHrmp { para }; + let call = ForceCleanHrmp { + para, + inbound, + outbound, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } pub fn force_process_hrmp_open( &self, + channels: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, @@ -16938,11 +17512,12 @@ pub mod api { DispatchError, root_mod::Event, > { - let call = ForceProcessHrmpOpen {}; + let call = ForceProcessHrmpOpen { channels }; ::subxt::SubmittableExtrinsic::new(self.client, call) } pub fn force_process_hrmp_close( &self, + channels: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, @@ -16951,12 +17526,13 @@ pub mod api { DispatchError, root_mod::Event, > { - let call = ForceProcessHrmpClose {}; + let call = ForceProcessHrmpClose { channels }; ::subxt::SubmittableExtrinsic::new(self.client, call) } pub fn hrmp_cancel_open_request( &self, channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId, + open_requests: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, @@ -16965,7 +17541,10 @@ pub mod api { DispatchError, root_mod::Event, > { - let call = HrmpCancelOpenRequest { channel_id }; + let call = HrmpCancelOpenRequest { + channel_id, + open_requests, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } @@ -17266,242 +17845,499 @@ pub mod api { &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpCloseChannelRequests<'a>>, + ::subxt::KeyIter<'a, T, HrmpCloseChannelRequests<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn hrmp_close_channel_requests_list( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec< + runtime_types::polkadot_parachain::primitives::HrmpChannelId, + >, + ::subxt::BasicError, + > { + let entry = HrmpCloseChannelRequestsList; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn hrmp_watermarks( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::core::primitive::u32>, + ::subxt::BasicError, + > { + let entry = HrmpWatermarks(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn hrmp_watermarks_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, HrmpWatermarks<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn hrmp_channels( + &self, + _0: &runtime_types::polkadot_parachain::primitives::HrmpChannelId, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::polkadot_runtime_parachains::hrmp::HrmpChannel, + >, + ::subxt::BasicError, + > { + let entry = HrmpChannels(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn hrmp_channels_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, HrmpChannels<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn hrmp_ingress_channels_index( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec, ::subxt::BasicError, > { - self.client.storage().iter(hash).await + let entry = HrmpIngressChannelsIndex(_0); + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn hrmp_close_channel_requests_list( + pub async fn hrmp_ingress_channels_index_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec< - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - >, + ::subxt::KeyIter<'a, T, HrmpIngressChannelsIndex<'a>>, ::subxt::BasicError, > { - let entry = HrmpCloseChannelRequestsList; - self.client.storage().fetch_or_default(&entry, hash).await + self.client.storage().iter(hash).await } - pub async fn hrmp_watermarks( + pub async fn hrmp_egress_channels_index( &self, _0: &runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, + ::std::vec::Vec, ::subxt::BasicError, > { - let entry = HrmpWatermarks(_0); - self.client.storage().fetch(&entry, hash).await + let entry = HrmpEgressChannelsIndex(_0); + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn hrmp_watermarks_iter( + pub async fn hrmp_egress_channels_index_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpWatermarks<'a>>, + ::subxt::KeyIter<'a, T, HrmpEgressChannelsIndex<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn hrmp_channels( + pub async fn hrmp_channel_contents( &self, _0: &runtime_types::polkadot_parachain::primitives::HrmpChannelId, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_runtime_parachains::hrmp::HrmpChannel, + ::std::vec::Vec< + runtime_types::polkadot_core_primitives::InboundHrmpMessage< + ::core::primitive::u32, + >, >, ::subxt::BasicError, > { - let entry = HrmpChannels(_0); - self.client.storage().fetch(&entry, hash).await + let entry = HrmpChannelContents(_0); + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn hrmp_channels_iter( + pub async fn hrmp_channel_contents_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpChannels<'a>>, + ::subxt::KeyIter<'a, T, HrmpChannelContents<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn hrmp_ingress_channels_index( + pub async fn hrmp_channel_digests( &self, _0: &runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec, + ::std::vec::Vec<( + ::core::primitive::u32, + ::std::vec::Vec< + runtime_types::polkadot_parachain::primitives::Id, + >, + )>, ::subxt::BasicError, > { - let entry = HrmpIngressChannelsIndex(_0); + let entry = HrmpChannelDigests(_0); self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn hrmp_ingress_channels_index_iter( + pub async fn hrmp_channel_digests_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpIngressChannelsIndex<'a>>, + ::subxt::KeyIter<'a, T, HrmpChannelDigests<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn hrmp_egress_channels_index( + } + } + } + pub mod para_session_info { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub struct AssignmentKeysUnsafe; + impl ::subxt::StorageEntry for AssignmentKeysUnsafe { + const PALLET: &'static str = "ParaSessionInfo"; + const STORAGE: &'static str = "AssignmentKeysUnsafe"; + type Value = ::std::vec::Vec< + runtime_types::polkadot_primitives::v2::assignment_app::Public, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct EarliestStoredSession; + impl ::subxt::StorageEntry for EarliestStoredSession { + const PALLET: &'static str = "ParaSessionInfo"; + const STORAGE: &'static str = "EarliestStoredSession"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Sessions<'a>(pub &'a ::core::primitive::u32); + impl ::subxt::StorageEntry for Sessions<'_> { + const PALLET: &'static str = "ParaSessionInfo"; + const STORAGE: &'static str = "Sessions"; + type Value = runtime_types::polkadot_primitives::v2::SessionInfo; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Identity, + )]) + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn assignment_keys_unsafe( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec, + ::std::vec::Vec< + runtime_types::polkadot_primitives::v2::assignment_app::Public, + >, ::subxt::BasicError, > { - let entry = HrmpEgressChannelsIndex(_0); + let entry = AssignmentKeysUnsafe; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn hrmp_egress_channels_index_iter( + pub async fn earliest_stored_session( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = EarliestStoredSession; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn sessions( + &self, + _0: &::core::primitive::u32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::polkadot_primitives::v2::SessionInfo, + >, + ::subxt::BasicError, + > { + let entry = Sessions(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn sessions_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Sessions<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + } + } + } + pub mod paras_disputes { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ForceUnfreeze; + impl ::subxt::Call for ForceUnfreeze { + const PALLET: &'static str = "ParasDisputes"; + const FUNCTION: &'static str = "force_unfreeze"; + } + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::SignedExtra, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } + } + pub fn force_unfreeze( + &self, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ForceUnfreeze, + DispatchError, + root_mod::Event, + > { + let call = ForceUnfreeze {}; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + } + } + pub type Event = + runtime_types::polkadot_runtime_parachains::disputes::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct DisputeInitiated( + pub runtime_types::polkadot_core_primitives::CandidateHash, + pub runtime_types::polkadot_runtime_parachains::disputes::DisputeLocation, + ); + impl ::subxt::Event for DisputeInitiated { + const PALLET: &'static str = "ParasDisputes"; + const EVENT: &'static str = "DisputeInitiated"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct DisputeConcluded( + pub runtime_types::polkadot_core_primitives::CandidateHash, + pub runtime_types::polkadot_runtime_parachains::disputes::DisputeResult, + ); + impl ::subxt::Event for DisputeConcluded { + const PALLET: &'static str = "ParasDisputes"; + const EVENT: &'static str = "DisputeConcluded"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct DisputeTimedOut( + pub runtime_types::polkadot_core_primitives::CandidateHash, + ); + impl ::subxt::Event for DisputeTimedOut { + const PALLET: &'static str = "ParasDisputes"; + const EVENT: &'static str = "DisputeTimedOut"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct Revert(pub ::core::primitive::u32); + impl ::subxt::Event for Revert { + const PALLET: &'static str = "ParasDisputes"; + const EVENT: &'static str = "Revert"; + } + } + pub mod storage { + use super::runtime_types; + pub struct LastPrunedSession; + impl ::subxt::StorageEntry for LastPrunedSession { + const PALLET: &'static str = "ParasDisputes"; + const STORAGE: &'static str = "LastPrunedSession"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Disputes<'a>( + pub &'a ::core::primitive::u32, + pub &'a runtime_types::polkadot_core_primitives::CandidateHash, + ); + impl ::subxt::StorageEntry for Disputes<'_> { + const PALLET: &'static str = "ParasDisputes"; + const STORAGE: &'static str = "Disputes"; + type Value = runtime_types::polkadot_primitives::v2::DisputeState< + ::core::primitive::u32, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ]) + } + } + pub struct Included<'a>( + pub &'a ::core::primitive::u32, + pub &'a runtime_types::polkadot_core_primitives::CandidateHash, + ); + impl ::subxt::StorageEntry for Included<'_> { + const PALLET: &'static str = "ParasDisputes"; + const STORAGE: &'static str = "Included"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ]) + } + } + pub struct SpamSlots<'a>(pub &'a ::core::primitive::u32); + impl ::subxt::StorageEntry for SpamSlots<'_> { + const PALLET: &'static str = "ParasDisputes"; + const STORAGE: &'static str = "SpamSlots"; + type Value = ::std::vec::Vec<::core::primitive::u32>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct Frozen; + impl ::subxt::StorageEntry for Frozen { + const PALLET: &'static str = "ParasDisputes"; + const STORAGE: &'static str = "Frozen"; + type Value = ::core::option::Option<::core::primitive::u32>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn last_pruned_session( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpEgressChannelsIndex<'a>>, + ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - self.client.storage().iter(hash).await + let entry = LastPrunedSession; + self.client.storage().fetch(&entry, hash).await } - pub async fn hrmp_channel_contents( + pub async fn disputes( &self, - _0: &runtime_types::polkadot_parachain::primitives::HrmpChannelId, + _0: &::core::primitive::u32, + _1: &runtime_types::polkadot_core_primitives::CandidateHash, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundHrmpMessage< + ::core::option::Option< + runtime_types::polkadot_primitives::v2::DisputeState< ::core::primitive::u32, >, >, ::subxt::BasicError, > { - let entry = HrmpChannelContents(_0); - self.client.storage().fetch_or_default(&entry, hash).await + let entry = Disputes(_0, _1); + self.client.storage().fetch(&entry, hash).await } - pub async fn hrmp_channel_contents_iter( + pub async fn disputes_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpChannelContents<'a>>, + ::subxt::KeyIter<'a, T, Disputes<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn hrmp_channel_digests( + pub async fn included( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, + _0: &::core::primitive::u32, + _1: &runtime_types::polkadot_core_primitives::CandidateHash, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec<( - ::core::primitive::u32, - ::std::vec::Vec< - runtime_types::polkadot_parachain::primitives::Id, - >, - )>, + ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let entry = HrmpChannelDigests(_0); - self.client.storage().fetch_or_default(&entry, hash).await + let entry = Included(_0, _1); + self.client.storage().fetch(&entry, hash).await } - pub async fn hrmp_channel_digests_iter( + pub async fn included_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpChannelDigests<'a>>, + ::subxt::KeyIter<'a, T, Included<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - } - } - } - pub mod para_session_info { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub struct AssignmentKeysUnsafe; - impl ::subxt::StorageEntry for AssignmentKeysUnsafe { - const PALLET: &'static str = "ParaSessionInfo"; - const STORAGE: &'static str = "AssignmentKeysUnsafe"; - type Value = ::std::vec::Vec< - runtime_types::polkadot_primitives::v1::assignment_app::Public, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct EarliestStoredSession; - impl ::subxt::StorageEntry for EarliestStoredSession { - const PALLET: &'static str = "ParaSessionInfo"; - const STORAGE: &'static str = "EarliestStoredSession"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Sessions<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for Sessions<'_> { - const PALLET: &'static str = "ParaSessionInfo"; - const STORAGE: &'static str = "Sessions"; - type Value = runtime_types::polkadot_primitives::v2::SessionInfo; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn assignment_keys_unsafe( + pub async fn spam_slots( &self, + _0: &::core::primitive::u32, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec< - runtime_types::polkadot_primitives::v1::assignment_app::Public, - >, + ::core::option::Option<::std::vec::Vec<::core::primitive::u32>>, ::subxt::BasicError, > { - let entry = AssignmentKeysUnsafe; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn earliest_stored_session( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = EarliestStoredSession; - self.client.storage().fetch_or_default(&entry, hash).await + let entry = SpamSlots(_0); + self.client.storage().fetch(&entry, hash).await } - pub async fn sessions( + pub async fn spam_slots_iter( &self, - _0: &::core::primitive::u32, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_primitives::v2::SessionInfo, - >, + ::subxt::KeyIter<'a, T, SpamSlots<'a>>, ::subxt::BasicError, > { - let entry = Sessions(_0); - self.client.storage().fetch(&entry, hash).await + self.client.storage().iter(hash).await } - pub async fn sessions_iter( + pub async fn frozen( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Sessions<'a>>, + ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - self.client.storage().iter(hash).await + let entry = Frozen; + self.client.storage().fetch_or_default(&entry, hash).await } } } @@ -17827,29 +18663,30 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn para_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 16u8, 165u8, 212u8, 232u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Registrar")?; + let constant = pallet.constant("ParaDeposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn data_deposit_per_byte( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 128u8, 150u8, 152u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Registrar")?; + let constant = pallet.constant("DataDepositPerByte")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -18043,23 +18880,30 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn lease_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 117u8, 18u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Slots")?; + let constant = pallet.constant("LeasePeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn lease_offset( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 16u8, 14u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Slots")?; + let constant = pallet.constant("LeaseOffset")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -18382,39 +19226,48 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn ending_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[64u8, 25u8, 1u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Auctions")?; + let constant = pallet.constant("EndingPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn sample_length( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[20u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Auctions")?; + let constant = pallet.constant("SampleLength")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn slot_range_count( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[36u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Auctions")?; + let constant = pallet.constant("SlotRangeCount")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn lease_periods_per_slot( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[8u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Auctions")?; + let constant = pallet.constant("LeasePeriodsPerSlot")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -18840,10 +19693,10 @@ pub mod api { ::subxt::StorageEntryKey::Plain } } - pub struct NextTrieIndex; - impl ::subxt::StorageEntry for NextTrieIndex { + pub struct NextFundIndex; + impl ::subxt::StorageEntry for NextFundIndex { const PALLET: &'static str = "Crowdloan"; - const STORAGE: &'static str = "NextTrieIndex"; + const STORAGE: &'static str = "NextFundIndex"; type Value = ::core::primitive::u32; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain @@ -18901,48 +19754,53 @@ pub mod api { let entry = EndingsCount; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn next_trie_index( + pub async fn next_fund_index( &self, hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let entry = NextTrieIndex; + let entry = NextFundIndex; self.client.storage().fetch_or_default(&entry, hash).await } } } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn pallet_id( &self, ) -> ::core::result::Result< runtime_types::frame_support::PalletId, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[112u8, 121u8, 47u8, 99u8, 102u8, 117u8, 110u8, 100u8][..], - )?) + let pallet = self.client.metadata().pallet("Crowdloan")?; + let constant = pallet.constant("PalletId")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn min_contribution( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 116u8, 59u8, 164u8, 11u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Crowdloan")?; + let constant = pallet.constant("MinContribution")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn remove_keys_limit( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[232u8, 3u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Crowdloan")?; + let constant = pallet.constant("RemoveKeysLimit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } @@ -19758,6 +20616,20 @@ pub mod api { } pub mod frame_support { use super::runtime_types; + pub mod dispatch { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum RawOrigin<_0> { + #[codec(index = 0)] + Root, + #[codec(index = 1)] + Signed(_0), + #[codec(index = 2)] + None, + } + } pub mod storage { use super::runtime_types; pub mod bounded_btree_map { @@ -20108,15 +20980,6 @@ pub mod api { #[codec(index = 2)] Initialization, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum RawOrigin<_0> { - #[codec(index = 0)] - Root, - #[codec(index = 1)] - Signed(_0), - #[codec(index = 2)] - None, - } } pub mod pallet_authorship { use super::runtime_types; @@ -20469,6 +21332,8 @@ pub mod api { Premature, #[codec(index = 9)] HasActiveChildBounty, + #[codec(index = 10)] + TooManyQueued, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, @@ -20501,27 +21366,161 @@ pub mod api { } } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Bounty<_0, _1, _2> { - pub proposer: _0, + pub struct Bounty<_0, _1, _2> { + pub proposer: _0, + pub value: _1, + pub fee: _1, + pub curator_deposit: _1, + pub bond: _1, + pub status: runtime_types::pallet_bounties::BountyStatus<_0, _2>, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub enum BountyStatus<_0, _1> { + #[codec(index = 0)] + Proposed, + #[codec(index = 1)] + Approved, + #[codec(index = 2)] + Funded, + #[codec(index = 3)] + CuratorProposed { curator: _0 }, + #[codec(index = 4)] + Active { curator: _0, update_due: _1 }, + #[codec(index = 5)] + PendingPayout { + curator: _0, + beneficiary: _0, + unlock_at: _1, + }, + } + } + pub mod pallet_child_bounties { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Call { + #[codec(index = 0)] + add_child_bounty { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + value: ::core::primitive::u128, + description: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 1)] + propose_curator { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + curator: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + #[codec(compact)] + fee: ::core::primitive::u128, + }, + #[codec(index = 2)] + accept_curator { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + }, + #[codec(index = 3)] + unassign_curator { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + }, + #[codec(index = 4)] + award_child_bounty { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + beneficiary: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + }, + #[codec(index = 5)] + claim_child_bounty { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + }, + #[codec(index = 6)] + close_child_bounty { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Error { + #[codec(index = 0)] + ParentBountyNotActive, + #[codec(index = 1)] + InsufficientBountyBalance, + #[codec(index = 2)] + TooManyChildBounties, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Event { + #[codec(index = 0)] + Added { + index: ::core::primitive::u32, + child_index: ::core::primitive::u32, + }, + #[codec(index = 1)] + Awarded { + index: ::core::primitive::u32, + child_index: ::core::primitive::u32, + beneficiary: ::subxt::sp_core::crypto::AccountId32, + }, + #[codec(index = 2)] + Claimed { + index: ::core::primitive::u32, + child_index: ::core::primitive::u32, + payout: ::core::primitive::u128, + beneficiary: ::subxt::sp_core::crypto::AccountId32, + }, + #[codec(index = 3)] + Canceled { + index: ::core::primitive::u32, + child_index: ::core::primitive::u32, + }, + } + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ChildBounty<_0, _1, _2> { + pub parent_bounty: _2, pub value: _1, pub fee: _1, pub curator_deposit: _1, - pub bond: _1, - pub status: runtime_types::pallet_bounties::BountyStatus<_0, _2>, + pub status: + runtime_types::pallet_child_bounties::ChildBountyStatus<_0, _2>, } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum BountyStatus<_0, _1> { + pub enum ChildBountyStatus<_0, _1> { #[codec(index = 0)] - Proposed, + Added, #[codec(index = 1)] - Approved, + CuratorProposed { curator: _0 }, #[codec(index = 2)] - Funded, + Active { curator: _0 }, #[codec(index = 3)] - CuratorProposed { curator: _0 }, - #[codec(index = 4)] - Active { curator: _0, update_due: _1 }, - #[codec(index = 5)] PendingPayout { curator: _0, beneficiary: _0, @@ -21025,7 +22024,7 @@ pub mod api { :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Call { - # [codec (index = 0)] 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)] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < [:: core :: primitive :: u128 ; 3usize] > , } , # [codec (index = 2)] 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)] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , num_signed_submissions : :: core :: primitive :: u32 , } , } + # [codec (index = 0)] 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)] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] 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)] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , } , # [codec (index = 4)] 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, )] @@ -21052,6 +22051,8 @@ pub mod api { InvalidSubmissionIndex, #[codec(index = 10)] CallNotAllowed, + #[codec(index = 11)] + FallbackFailed, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, @@ -21101,22 +22102,27 @@ pub mod api { #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct RawSolution<_0> { pub solution: _0, - pub score: [::core::primitive::u128; 3usize], + pub score: runtime_types::sp_npos_elections::ElectionScore, pub round: ::core::primitive::u32, } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct ReadySolution<_0> { pub supports: ::std::vec::Vec<(_0, runtime_types::sp_npos_elections::Support<_0>)>, - pub score: [::core::primitive::u128; 3usize], + pub score: runtime_types::sp_npos_elections::ElectionScore, pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct RoundSnapshot<_0> { - pub voters: - ::std::vec::Vec<(_0, ::core::primitive::u64, ::std::vec::Vec<_0>)>, - pub targets: ::std::vec::Vec<_0>, + pub struct RoundSnapshot { + pub voters: ::std::vec::Vec<( + ::subxt::sp_core::crypto::AccountId32, + ::core::primitive::u64, + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + ::subxt::sp_core::crypto::AccountId32, + >, + )>, + pub targets: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct SolutionOrSnapshotSize { @@ -22245,6 +23251,13 @@ pub mod api { proxy_type: runtime_types::polkadot_runtime::ProxyType, delay: ::core::primitive::u32, }, + #[codec(index = 4)] + ProxyRemoved { + delegator: ::subxt::sp_core::crypto::AccountId32, + delegatee: ::subxt::sp_core::crypto::AccountId32, + proxy_type: runtime_types::polkadot_runtime::ProxyType, + delay: ::core::primitive::u32, + }, } } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] @@ -22390,15 +23403,6 @@ pub mod api { } } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum Releases { - #[codec(index = 0)] - V1, - #[codec(index = 1)] - V2, - #[codec(index = 2)] - V3, - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct ScheduledV3<_0, _1, _2, _3> { pub maybe_id: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, @@ -22584,22 +23588,50 @@ pub mod api { }, #[codec(index = 23)] set_staking_configs { - min_nominator_bond: ::core::primitive::u128, - min_validator_bond: ::core::primitive::u128, + min_nominator_bond: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + min_validator_bond: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, max_nominator_count: - ::core::option::Option<::core::primitive::u32>, + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, max_validator_count: - ::core::option::Option<::core::primitive::u32>, - chill_threshold: ::core::option::Option< - runtime_types::sp_arithmetic::per_things::Percent, - >, + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + chill_threshold: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Percent, + >, min_commission: - runtime_types::sp_arithmetic::per_things::Perbill, + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, }, #[codec(index = 24)] chill_other { controller: ::subxt::sp_core::crypto::AccountId32, }, + #[codec(index = 25)] + force_apply_min_commission { + validator_stash: ::subxt::sp_core::crypto::AccountId32, + }, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum ConfigOp<_0> { + #[codec(index = 0)] + Noop, + #[codec(index = 1)] + Set(_0), + #[codec(index = 2)] + Remove, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, @@ -22767,8 +23799,11 @@ pub mod api { pub value: _1, } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Nominations<_0> { - pub targets: ::std::vec::Vec<_0>, + pub struct Nominations { + pub targets: + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + ::subxt::sp_core::crypto::AccountId32, + >, pub submitted_in: ::core::primitive::u32, pub suppressed: ::core::primitive::bool, } @@ -22790,6 +23825,8 @@ pub mod api { V7_0_0, #[codec(index = 7)] V8_0_0, + #[codec(index = 8)] + V9_0_0, } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub enum RewardDestination<_0> { @@ -22812,7 +23849,9 @@ pub mod api { #[codec(compact)] pub active: _1, pub unlocking: - ::std::vec::Vec>, + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + runtime_types::pallet_staking::UnlockChunk<_1>, + >, pub claimed_rewards: ::std::vec::Vec<::core::primitive::u32>, } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] @@ -23502,20 +24541,16 @@ pub mod api { } pub mod polkadot_primitives { use super::runtime_types; - pub mod v0 { + pub mod v2 { use super::runtime_types; - pub mod collator_app { + pub mod assignment_app { use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub struct Public(pub runtime_types::sp_core::sr25519::Public); - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); } - pub mod validator_app { + pub mod collator_app { use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, @@ -23526,42 +24561,23 @@ pub mod api { )] pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct ValidatorIndex(pub ::core::primitive::u32); - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum ValidityAttestation { - #[codec(index = 1)] - Implicit( - runtime_types::polkadot_primitives::v0::validator_app::Signature, - ), - #[codec(index = 2)] - Explicit( - runtime_types::polkadot_primitives::v0::validator_app::Signature, - ), - } - } - pub mod v1 { - use super::runtime_types; - pub mod assignment_app { + pub mod signed { use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); + 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 signed { + pub mod validator_app { use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub struct UncheckedSigned < _0 , _1 > { pub payload : _0 , pub validator_index : runtime_types :: polkadot_primitives :: v0 :: ValidatorIndex , pub signature : runtime_types :: polkadot_primitives :: v0 :: validator_app :: Signature , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _1 > } + pub struct Public(pub runtime_types::sp_core::sr25519::Public); + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, @@ -23577,11 +24593,11 @@ pub mod api { )] pub struct BackedCandidate<_0> { pub candidate: - runtime_types::polkadot_primitives::v1::CommittedCandidateReceipt< + runtime_types::polkadot_primitives::v2::CommittedCandidateReceipt< _0, >, pub validity_votes: ::std::vec::Vec< - runtime_types::polkadot_primitives::v0::ValidityAttestation, + runtime_types::polkadot_primitives::v2::ValidityAttestation, >, pub validator_indices: ::subxt::bitvec::vec::BitVec< ::core::primitive::u8, @@ -23614,12 +24630,12 @@ pub mod api { pub para_id: runtime_types::polkadot_parachain::primitives::Id, pub relay_parent: _0, pub collator: - runtime_types::polkadot_primitives::v0::collator_app::Public, + runtime_types::polkadot_primitives::v2::collator_app::Public, pub persisted_validation_data_hash: _0, pub pov_hash: _0, pub erasure_root: _0, pub signature: - runtime_types::polkadot_primitives::v0::collator_app::Signature, + runtime_types::polkadot_primitives::v2::collator_app::Signature, pub para_head: _0, pub validation_code_hash: runtime_types::polkadot_parachain::primitives::ValidationCodeHash, @@ -23629,7 +24645,7 @@ pub mod api { )] pub struct CandidateReceipt<_0> { pub descriptor: - runtime_types::polkadot_primitives::v1::CandidateDescriptor<_0>, + runtime_types::polkadot_primitives::v2::CandidateDescriptor<_0>, pub commitments_hash: _0, } #[derive( @@ -23637,9 +24653,9 @@ pub mod api { )] pub struct CommittedCandidateReceipt<_0> { pub descriptor: - runtime_types::polkadot_primitives::v1::CandidateDescriptor<_0>, + runtime_types::polkadot_primitives::v2::CandidateDescriptor<_0>, pub commitments: - runtime_types::polkadot_primitives::v1::CandidateCommitments< + runtime_types::polkadot_primitives::v2::CandidateCommitments< ::core::primitive::u32, >, } @@ -23655,15 +24671,30 @@ pub mod api { )] pub enum CoreOccupied { #[codec(index = 0)] - Parathread(runtime_types::polkadot_primitives::v1::ParathreadEntry), + Parathread(runtime_types::polkadot_primitives::v2::ParathreadEntry), #[codec(index = 1)] Parachain, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] + pub struct DisputeState<_0> { + pub validators_for: ::subxt::bitvec::vec::BitVec< + ::core::primitive::u8, + ::subxt::bitvec::order::Lsb0, + >, + pub validators_against: ::subxt::bitvec::vec::BitVec< + ::core::primitive::u8, + ::subxt::bitvec::order::Lsb0, + >, + pub start: _0, + pub concluded_at: ::core::option::Option<_0>, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] pub enum DisputeStatement { - # [codec (index = 0)] Valid (runtime_types :: polkadot_primitives :: v1 :: ValidDisputeStatementKind ,) , # [codec (index = 1)] Invalid (runtime_types :: polkadot_primitives :: v1 :: InvalidDisputeStatementKind ,) , } + # [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, )] @@ -23672,9 +24703,9 @@ pub mod api { runtime_types::polkadot_core_primitives::CandidateHash, pub session: ::core::primitive::u32, pub statements: ::std::vec::Vec<( - runtime_types::polkadot_primitives::v1::DisputeStatement, - runtime_types::polkadot_primitives::v0::ValidatorIndex, - runtime_types::polkadot_primitives::v0::validator_app::Signature, + runtime_types::polkadot_primitives::v2::DisputeStatement, + runtime_types::polkadot_primitives::v2::ValidatorIndex, + runtime_types::polkadot_primitives::v2::validator_app::Signature, )>, } #[derive( @@ -23689,18 +24720,18 @@ pub mod api { )] pub struct InherentData<_0> { pub bitfields: ::std::vec::Vec< - runtime_types::polkadot_primitives::v1::signed::UncheckedSigned< - runtime_types::polkadot_primitives::v1::AvailabilityBitfield, - runtime_types::polkadot_primitives::v1::AvailabilityBitfield, + runtime_types::polkadot_primitives::v2::signed::UncheckedSigned< + runtime_types::polkadot_primitives::v2::AvailabilityBitfield, + runtime_types::polkadot_primitives::v2::AvailabilityBitfield, >, >, pub backed_candidates: ::std::vec::Vec< - runtime_types::polkadot_primitives::v1::BackedCandidate< + runtime_types::polkadot_primitives::v2::BackedCandidate< ::subxt::sp_core::H256, >, >, pub disputes: ::std::vec::Vec< - runtime_types::polkadot_primitives::v1::DisputeStatementSet, + runtime_types::polkadot_primitives::v2::DisputeStatementSet, >, pub parent_header: _0, } @@ -23716,30 +24747,71 @@ pub mod api { )] pub struct ParathreadClaim( pub runtime_types::polkadot_parachain::primitives::Id, - pub runtime_types::polkadot_primitives::v0::collator_app::Public, + pub runtime_types::polkadot_primitives::v2::collator_app::Public, ); #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub struct ParathreadEntry { - pub claim: runtime_types::polkadot_primitives::v1::ParathreadClaim, + pub claim: runtime_types::polkadot_primitives::v2::ParathreadClaim, pub retries: ::core::primitive::u32, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] + pub struct PvfCheckStatement { + pub accept: ::core::primitive::bool, + pub subject: + runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + pub session_index: ::core::primitive::u32, + pub validator_index: + runtime_types::polkadot_primitives::v2::ValidatorIndex, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] pub struct ScrapedOnChainVotes<_0> { pub session: ::core::primitive::u32, pub backing_validators_per_candidate: ::std::vec::Vec<( - runtime_types::polkadot_primitives::v1::CandidateReceipt<_0>, + runtime_types::polkadot_primitives::v2::CandidateReceipt<_0>, ::std::vec::Vec<( - runtime_types::polkadot_primitives::v0::ValidatorIndex, - runtime_types::polkadot_primitives::v0::ValidityAttestation, + runtime_types::polkadot_primitives::v2::ValidatorIndex, + runtime_types::polkadot_primitives::v2::ValidityAttestation, )>, )>, pub disputes: ::std::vec::Vec< - runtime_types::polkadot_primitives::v1::DisputeStatementSet, + runtime_types::polkadot_primitives::v2::DisputeStatementSet, + >, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub struct SessionInfo { + pub active_validator_indices: ::std::vec::Vec< + runtime_types::polkadot_primitives::v2::ValidatorIndex, + >, + pub random_seed: [::core::primitive::u8; 32usize], + pub dispute_period: ::core::primitive::u32, + pub validators: ::std::vec::Vec< + runtime_types::polkadot_primitives::v2::validator_app::Public, + >, + pub discovery_keys: ::std::vec::Vec< + runtime_types::sp_authority_discovery::app::Public, + >, + pub assignment_keys: ::std::vec::Vec< + runtime_types::polkadot_primitives::v2::assignment_app::Public, + >, + pub validator_groups: ::std::vec::Vec< + ::std::vec::Vec< + runtime_types::polkadot_primitives::v2::ValidatorIndex, + >, >, + pub n_cores: ::core::primitive::u32, + pub zeroth_delay_tranche_width: ::core::primitive::u32, + pub relay_vrf_modulo_samples: ::core::primitive::u32, + pub n_delay_tranches: ::core::primitive::u32, + pub no_show_slots: ::core::primitive::u32, + pub needed_approvals: ::core::primitive::u32, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, @@ -23770,49 +24842,25 @@ pub mod api { #[codec(index = 3)] ApprovalChecking, } - } - pub mod v2 { - use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, )] - pub struct PvfCheckStatement { - pub accept: ::core::primitive::bool, - pub subject: - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - pub session_index: ::core::primitive::u32, - pub validator_index: - runtime_types::polkadot_primitives::v0::ValidatorIndex, - } + pub struct ValidatorIndex(pub ::core::primitive::u32); #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub struct SessionInfo { - pub active_validator_indices: ::std::vec::Vec< - runtime_types::polkadot_primitives::v0::ValidatorIndex, - >, - pub random_seed: [::core::primitive::u8; 32usize], - pub dispute_period: ::core::primitive::u32, - pub validators: ::std::vec::Vec< - runtime_types::polkadot_primitives::v0::validator_app::Public, - >, - pub discovery_keys: ::std::vec::Vec< - runtime_types::sp_authority_discovery::app::Public, - >, - pub assignment_keys: ::std::vec::Vec< - runtime_types::polkadot_primitives::v1::assignment_app::Public, - >, - pub validator_groups: ::std::vec::Vec< - ::std::vec::Vec< - runtime_types::polkadot_primitives::v0::ValidatorIndex, - >, - >, - pub n_cores: ::core::primitive::u32, - pub zeroth_delay_tranche_width: ::core::primitive::u32, - pub relay_vrf_modulo_samples: ::core::primitive::u32, - pub n_delay_tranches: ::core::primitive::u32, - pub no_show_slots: ::core::primitive::u32, - pub needed_approvals: ::core::primitive::u32, + pub enum ValidityAttestation { + #[codec(index = 1)] + Implicit( + runtime_types::polkadot_primitives::v2::validator_app::Signature, + ), + #[codec(index = 2)] + Explicit( + runtime_types::polkadot_primitives::v2::validator_app::Signature, + ), } } } @@ -23820,10 +24868,10 @@ pub mod api { use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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 = 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 = 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 ,) , } + # [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)] 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 = 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 = 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 ,) , } + # [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)] pub struct NposCompactSolution16 { pub votes1: @@ -23953,7 +25001,7 @@ pub mod api { pub enum OriginCaller { #[codec(index = 0)] system( - runtime_types::frame_system::RawOrigin< + runtime_types::frame_support::dispatch::RawOrigin< ::subxt::sp_core::crypto::AccountId32, >, ), @@ -24004,9 +25052,9 @@ pub mod api { pub im_online: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, pub para_validator: - runtime_types::polkadot_primitives::v0::validator_app::Public, + runtime_types::polkadot_primitives::v2::validator_app::Public, pub para_assignment: - runtime_types::polkadot_primitives::v1::assignment_app::Public, + runtime_types::polkadot_primitives::v2::assignment_app::Public, pub authority_discovery: runtime_types::sp_authority_discovery::app::Public, } @@ -24345,7 +25393,7 @@ pub mod api { #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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 trie_index : _2 , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _3 > } + 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, )] @@ -24397,6 +25445,8 @@ pub mod api { NotReserved, #[codec(index = 12)] EmptyCode, + #[codec(index = 13)] + CannotSwap, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, @@ -24711,6 +25761,61 @@ pub mod api { pub minimum_validation_upgrade_delay: _0, } } + pub mod disputes { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Call { + #[codec(index = 0)] + force_unfreeze, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Error { + #[codec(index = 0)] + DuplicateDisputeStatementSets, + #[codec(index = 1)] + AncientDisputeStatement, + #[codec(index = 2)] + ValidatorIndexOutOfBounds, + #[codec(index = 3)] + InvalidSignature, + #[codec(index = 4)] + DuplicateStatement, + #[codec(index = 5)] + PotentialSpam, + #[codec(index = 6)] + SingleSidedDispute, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Event { + # [codec (index = 0)] DisputeInitiated (runtime_types :: polkadot_core_primitives :: CandidateHash , runtime_types :: polkadot_runtime_parachains :: disputes :: DisputeLocation ,) , # [codec (index = 1)] DisputeConcluded (runtime_types :: polkadot_core_primitives :: CandidateHash , runtime_types :: polkadot_runtime_parachains :: disputes :: DisputeResult ,) , # [codec (index = 2)] DisputeTimedOut (runtime_types :: polkadot_core_primitives :: CandidateHash ,) , # [codec (index = 3)] Revert (:: core :: primitive :: u32 ,) , } + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum DisputeLocation { + #[codec(index = 0)] + Local, + #[codec(index = 1)] + Remote, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum DisputeResult { + #[codec(index = 0)] + Valid, + #[codec(index = 1)] + Invalid, + } + } pub mod dmp { use super::runtime_types; pub mod pallet { @@ -24729,7 +25834,7 @@ pub mod api { :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Call { - # [codec (index = 0)] 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)] hrmp_accept_open_channel { sender : runtime_types :: polkadot_parachain :: primitives :: Id , } , # [codec (index = 2)] hrmp_close_channel { channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId , } , # [codec (index = 3)] force_clean_hrmp { para : runtime_types :: polkadot_parachain :: primitives :: Id , } , # [codec (index = 4)] force_process_hrmp_open , # [codec (index = 5)] force_process_hrmp_close , # [codec (index = 6)] hrmp_cancel_open_request { channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId , } , } + # [codec (index = 0)] 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)] hrmp_accept_open_channel { sender : runtime_types :: polkadot_parachain :: primitives :: Id , } , # [codec (index = 2)] hrmp_close_channel { channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId , } , # [codec (index = 3)] force_clean_hrmp { para : runtime_types :: polkadot_parachain :: primitives :: Id , inbound : :: core :: primitive :: u32 , outbound : :: core :: primitive :: u32 , } , # [codec (index = 4)] force_process_hrmp_open { channels : :: core :: primitive :: u32 , } , # [codec (index = 5)] force_process_hrmp_close { channels : :: core :: primitive :: u32 , } , # [codec (index = 6)] 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, )] @@ -24770,6 +25875,8 @@ pub mod api { OpenHrmpChannelDoesntExist, #[codec(index = 17)] OpenHrmpChannelAlreadyConfirmed, + #[codec(index = 18)] + WrongWitness, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, @@ -24901,29 +26008,29 @@ pub mod api { pub enum Event { #[codec(index = 0)] CandidateBacked( - runtime_types::polkadot_primitives::v1::CandidateReceipt< + runtime_types::polkadot_primitives::v2::CandidateReceipt< ::subxt::sp_core::H256, >, runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v1::CoreIndex, - runtime_types::polkadot_primitives::v1::GroupIndex, + runtime_types::polkadot_primitives::v2::CoreIndex, + runtime_types::polkadot_primitives::v2::GroupIndex, ), #[codec(index = 1)] CandidateIncluded( - runtime_types::polkadot_primitives::v1::CandidateReceipt< + runtime_types::polkadot_primitives::v2::CandidateReceipt< ::subxt::sp_core::H256, >, runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v1::CoreIndex, - runtime_types::polkadot_primitives::v1::GroupIndex, + runtime_types::polkadot_primitives::v2::CoreIndex, + runtime_types::polkadot_primitives::v2::GroupIndex, ), #[codec(index = 2)] CandidateTimedOut( - runtime_types::polkadot_primitives::v1::CandidateReceipt< + runtime_types::polkadot_primitives::v2::CandidateReceipt< ::subxt::sp_core::H256, >, runtime_types::polkadot_parachain::primitives::HeadData, - runtime_types::polkadot_primitives::v1::CoreIndex, + runtime_types::polkadot_primitives::v2::CoreIndex, ), } } @@ -24932,17 +26039,17 @@ pub mod api { )] pub struct AvailabilityBitfieldRecord<_0> { pub bitfield: - runtime_types::polkadot_primitives::v1::AvailabilityBitfield, + runtime_types::polkadot_primitives::v2::AvailabilityBitfield, pub submitted_at: _0, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub struct CandidatePendingAvailability<_0, _1> { - pub core: runtime_types::polkadot_primitives::v1::CoreIndex, + pub core: runtime_types::polkadot_primitives::v2::CoreIndex, pub hash: runtime_types::polkadot_core_primitives::CandidateHash, pub descriptor: - runtime_types::polkadot_primitives::v1::CandidateDescriptor<_0>, + runtime_types::polkadot_primitives::v2::CandidateDescriptor<_0>, pub availability_votes: ::subxt::bitvec::vec::BitVec< ::core::primitive::u8, ::subxt::bitvec::order::Lsb0, @@ -24953,7 +26060,7 @@ pub mod api { >, pub relay_parent_number: _1, pub backed_in_number: _1, - pub backing_group: runtime_types::polkadot_primitives::v1::GroupIndex, + pub backing_group: runtime_types::polkadot_primitives::v2::GroupIndex, } } pub mod initializer { @@ -24973,10 +26080,10 @@ pub mod api { )] pub struct BufferedSessionChange { pub validators: ::std::vec::Vec< - runtime_types::polkadot_primitives::v0::validator_app::Public, + runtime_types::polkadot_primitives::v2::validator_app::Public, >, pub queued: ::std::vec::Vec< - runtime_types::polkadot_primitives::v0::validator_app::Public, + runtime_types::polkadot_primitives::v2::validator_app::Public, >, pub session_index: ::core::primitive::u32, } @@ -25002,7 +26109,7 @@ pub mod api { :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Call { - # [codec (index = 0)] force_set_current_code { para : runtime_types :: polkadot_parachain :: primitives :: Id , new_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode , } , # [codec (index = 1)] force_set_current_head { para : runtime_types :: polkadot_parachain :: primitives :: Id , new_head : runtime_types :: polkadot_parachain :: primitives :: HeadData , } , # [codec (index = 2)] 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)] force_note_new_head { para : runtime_types :: polkadot_parachain :: primitives :: Id , new_head : runtime_types :: polkadot_parachain :: primitives :: HeadData , } , # [codec (index = 4)] force_queue_action { para : runtime_types :: polkadot_parachain :: primitives :: Id , } , # [codec (index = 5)] add_trusted_validation_code { validation_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode , } , # [codec (index = 6)] poke_unused_validation_code { validation_code_hash : runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash , } , # [codec (index = 7)] include_pvf_check_statement { stmt : runtime_types :: polkadot_primitives :: v2 :: PvfCheckStatement , signature : runtime_types :: polkadot_primitives :: v0 :: validator_app :: Signature , } , } + # [codec (index = 0)] force_set_current_code { para : runtime_types :: polkadot_parachain :: primitives :: Id , new_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode , } , # [codec (index = 1)] force_set_current_head { para : runtime_types :: polkadot_parachain :: primitives :: Id , new_head : runtime_types :: polkadot_parachain :: primitives :: HeadData , } , # [codec (index = 2)] 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)] force_note_new_head { para : runtime_types :: polkadot_parachain :: primitives :: Id , new_head : runtime_types :: polkadot_parachain :: primitives :: HeadData , } , # [codec (index = 4)] force_queue_action { para : runtime_types :: polkadot_parachain :: primitives :: Id , } , # [codec (index = 5)] add_trusted_validation_code { validation_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode , } , # [codec (index = 6)] poke_unused_validation_code { validation_code_hash : runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash , } , # [codec (index = 7)] 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, )] @@ -25121,7 +26228,7 @@ pub mod api { pub enum Call { #[codec(index = 0)] enter { - data: runtime_types::polkadot_primitives::v1::InherentData< + data: runtime_types::polkadot_primitives::v2::InherentData< runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, runtime_types::sp_runtime::traits::BlakeTwo256, @@ -25158,14 +26265,14 @@ pub mod api { Parachain, #[codec(index = 1)] Parathread( - runtime_types::polkadot_primitives::v0::collator_app::Public, + runtime_types::polkadot_primitives::v2::collator_app::Public, ::core::primitive::u32, ), } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub struct CoreAssignment { pub core : runtime_types :: polkadot_primitives :: v1 :: 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 :: v1 :: GroupIndex , } + 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, )] @@ -25174,7 +26281,7 @@ pub mod api { :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub struct QueuedParathread { - pub claim: runtime_types::polkadot_primitives::v1::ParathreadEntry, + pub claim: runtime_types::polkadot_primitives::v2::ParathreadEntry, pub core_offset: ::core::primitive::u32, } } @@ -25474,6 +26581,12 @@ pub mod api { pub mod sp_npos_elections { use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] pub struct Support<_0> { pub total: ::core::primitive::u128, pub voters: ::std::vec::Vec<(_0, ::core::primitive::u128)>, @@ -26108,10 +27221,7 @@ pub mod api { #[codec(index = 2)] BadOrigin, #[codec(index = 3)] - Module { - index: ::core::primitive::u8, - error: ::core::primitive::u8, - }, + Module(runtime_types::sp_runtime::ModuleError), #[codec(index = 4)] ConsumerRemaining, #[codec(index = 5)] @@ -26124,6 +27234,11 @@ pub mod api { Arithmetic(runtime_types::sp_runtime::ArithmeticError), } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ModuleError { + pub index: ::core::primitive::u8, + pub error: [::core::primitive::u8; 4usize], + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub enum MultiSignature { #[codec(index = 0)] Ed25519(runtime_types::sp_core::ed25519::Signature), @@ -27256,8 +28371,8 @@ pub mod api { pub type DispatchError = runtime_types::sp_runtime::DispatchError; impl ::subxt::HasModuleError for runtime_types::sp_runtime::DispatchError { fn module_error_indices(&self) -> Option<(u8, u8)> { - if let &Self::Module { index, error } = self { - Some((index, error)) + if let Self::Module(module_error) = self { + Some((module_error.index, module_error.error)) } else { None } @@ -27284,8 +28399,10 @@ pub mod api { T: ::subxt::Config, X: ::subxt::SignedExtra, { - pub fn constants(&'a self) -> ConstantsApi { - ConstantsApi + pub fn constants(&'a self) -> ConstantsApi<'a, T> { + ConstantsApi { + client: &self.client, + } } pub fn storage(&'a self) -> StorageApi<'a, T> { StorageApi { @@ -27341,98 +28458,105 @@ pub mod api { ::subxt::events::subscribe_finalized::(self.client).await } } - pub struct ConstantsApi; - impl ConstantsApi { - pub fn system(&self) -> system::constants::ConstantsApi { - system::constants::ConstantsApi + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn system(&self) -> system::constants::ConstantsApi<'a, T> { + system::constants::ConstantsApi::new(self.client) } - pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { - scheduler::constants::ConstantsApi + pub fn scheduler(&self) -> scheduler::constants::ConstantsApi<'a, T> { + scheduler::constants::ConstantsApi::new(self.client) } - pub fn babe(&self) -> babe::constants::ConstantsApi { - babe::constants::ConstantsApi + pub fn babe(&self) -> babe::constants::ConstantsApi<'a, T> { + babe::constants::ConstantsApi::new(self.client) } - pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { - timestamp::constants::ConstantsApi + pub fn timestamp(&self) -> timestamp::constants::ConstantsApi<'a, T> { + timestamp::constants::ConstantsApi::new(self.client) } - pub fn indices(&self) -> indices::constants::ConstantsApi { - indices::constants::ConstantsApi + pub fn indices(&self) -> indices::constants::ConstantsApi<'a, T> { + indices::constants::ConstantsApi::new(self.client) } - pub fn balances(&self) -> balances::constants::ConstantsApi { - balances::constants::ConstantsApi + pub fn balances(&self) -> balances::constants::ConstantsApi<'a, T> { + balances::constants::ConstantsApi::new(self.client) } pub fn transaction_payment( &self, - ) -> transaction_payment::constants::ConstantsApi { - transaction_payment::constants::ConstantsApi + ) -> transaction_payment::constants::ConstantsApi<'a, T> { + transaction_payment::constants::ConstantsApi::new(self.client) + } + pub fn authorship(&self) -> authorship::constants::ConstantsApi<'a, T> { + authorship::constants::ConstantsApi::new(self.client) } - pub fn authorship(&self) -> authorship::constants::ConstantsApi { - authorship::constants::ConstantsApi + pub fn staking(&self) -> staking::constants::ConstantsApi<'a, T> { + staking::constants::ConstantsApi::new(self.client) } - pub fn staking(&self) -> staking::constants::ConstantsApi { - staking::constants::ConstantsApi + pub fn grandpa(&self) -> grandpa::constants::ConstantsApi<'a, T> { + grandpa::constants::ConstantsApi::new(self.client) } - pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { - grandpa::constants::ConstantsApi + pub fn im_online(&self) -> im_online::constants::ConstantsApi<'a, T> { + im_online::constants::ConstantsApi::new(self.client) } - pub fn im_online(&self) -> im_online::constants::ConstantsApi { - im_online::constants::ConstantsApi + pub fn democracy(&self) -> democracy::constants::ConstantsApi<'a, T> { + democracy::constants::ConstantsApi::new(self.client) } - pub fn democracy(&self) -> democracy::constants::ConstantsApi { - democracy::constants::ConstantsApi + pub fn phragmen_election( + &self, + ) -> phragmen_election::constants::ConstantsApi<'a, T> { + phragmen_election::constants::ConstantsApi::new(self.client) } - pub fn phragmen_election(&self) -> phragmen_election::constants::ConstantsApi { - phragmen_election::constants::ConstantsApi + pub fn treasury(&self) -> treasury::constants::ConstantsApi<'a, T> { + treasury::constants::ConstantsApi::new(self.client) } - pub fn treasury(&self) -> treasury::constants::ConstantsApi { - treasury::constants::ConstantsApi + pub fn claims(&self) -> claims::constants::ConstantsApi<'a, T> { + claims::constants::ConstantsApi::new(self.client) } - pub fn claims(&self) -> claims::constants::ConstantsApi { - claims::constants::ConstantsApi + pub fn vesting(&self) -> vesting::constants::ConstantsApi<'a, T> { + vesting::constants::ConstantsApi::new(self.client) } - pub fn vesting(&self) -> vesting::constants::ConstantsApi { - vesting::constants::ConstantsApi + pub fn utility(&self) -> utility::constants::ConstantsApi<'a, T> { + utility::constants::ConstantsApi::new(self.client) } - pub fn utility(&self) -> utility::constants::ConstantsApi { - utility::constants::ConstantsApi + pub fn identity(&self) -> identity::constants::ConstantsApi<'a, T> { + identity::constants::ConstantsApi::new(self.client) } - pub fn identity(&self) -> identity::constants::ConstantsApi { - identity::constants::ConstantsApi + pub fn proxy(&self) -> proxy::constants::ConstantsApi<'a, T> { + proxy::constants::ConstantsApi::new(self.client) } - pub fn proxy(&self) -> proxy::constants::ConstantsApi { - proxy::constants::ConstantsApi + pub fn multisig(&self) -> multisig::constants::ConstantsApi<'a, T> { + multisig::constants::ConstantsApi::new(self.client) } - pub fn multisig(&self) -> multisig::constants::ConstantsApi { - multisig::constants::ConstantsApi + pub fn bounties(&self) -> bounties::constants::ConstantsApi<'a, T> { + bounties::constants::ConstantsApi::new(self.client) } - pub fn bounties(&self) -> bounties::constants::ConstantsApi { - bounties::constants::ConstantsApi + pub fn child_bounties(&self) -> child_bounties::constants::ConstantsApi<'a, T> { + child_bounties::constants::ConstantsApi::new(self.client) } - pub fn tips(&self) -> tips::constants::ConstantsApi { - tips::constants::ConstantsApi + pub fn tips(&self) -> tips::constants::ConstantsApi<'a, T> { + tips::constants::ConstantsApi::new(self.client) } pub fn election_provider_multi_phase( &self, - ) -> election_provider_multi_phase::constants::ConstantsApi { - election_provider_multi_phase::constants::ConstantsApi + ) -> election_provider_multi_phase::constants::ConstantsApi<'a, T> { + election_provider_multi_phase::constants::ConstantsApi::new(self.client) } - pub fn bags_list(&self) -> bags_list::constants::ConstantsApi { - bags_list::constants::ConstantsApi + pub fn bags_list(&self) -> bags_list::constants::ConstantsApi<'a, T> { + bags_list::constants::ConstantsApi::new(self.client) } - pub fn paras(&self) -> paras::constants::ConstantsApi { - paras::constants::ConstantsApi + pub fn paras(&self) -> paras::constants::ConstantsApi<'a, T> { + paras::constants::ConstantsApi::new(self.client) } - pub fn registrar(&self) -> registrar::constants::ConstantsApi { - registrar::constants::ConstantsApi + pub fn registrar(&self) -> registrar::constants::ConstantsApi<'a, T> { + registrar::constants::ConstantsApi::new(self.client) } - pub fn slots(&self) -> slots::constants::ConstantsApi { - slots::constants::ConstantsApi + pub fn slots(&self) -> slots::constants::ConstantsApi<'a, T> { + slots::constants::ConstantsApi::new(self.client) } - pub fn auctions(&self) -> auctions::constants::ConstantsApi { - auctions::constants::ConstantsApi + pub fn auctions(&self) -> auctions::constants::ConstantsApi<'a, T> { + auctions::constants::ConstantsApi::new(self.client) } - pub fn crowdloan(&self) -> crowdloan::constants::ConstantsApi { - crowdloan::constants::ConstantsApi + pub fn crowdloan(&self) -> crowdloan::constants::ConstantsApi<'a, T> { + crowdloan::constants::ConstantsApi::new(self.client) } } pub struct StorageApi<'a, T: ::subxt::Config> { @@ -27526,6 +28650,9 @@ pub mod api { pub fn bounties(&self) -> bounties::storage::StorageApi<'a, T> { bounties::storage::StorageApi::new(self.client) } + pub fn child_bounties(&self) -> child_bounties::storage::StorageApi<'a, T> { + child_bounties::storage::StorageApi::new(self.client) + } pub fn tips(&self) -> tips::storage::StorageApi<'a, T> { tips::storage::StorageApi::new(self.client) } @@ -27570,6 +28697,9 @@ pub mod api { pub fn para_session_info(&self) -> para_session_info::storage::StorageApi<'a, T> { para_session_info::storage::StorageApi::new(self.client) } + pub fn paras_disputes(&self) -> paras_disputes::storage::StorageApi<'a, T> { + paras_disputes::storage::StorageApi::new(self.client) + } pub fn registrar(&self) -> registrar::storage::StorageApi<'a, T> { registrar::storage::StorageApi::new(self.client) } @@ -27676,6 +28806,9 @@ pub mod api { pub fn bounties(&self) -> bounties::calls::TransactionApi<'a, T, X> { bounties::calls::TransactionApi::new(self.client) } + pub fn child_bounties(&self) -> child_bounties::calls::TransactionApi<'a, T, X> { + child_bounties::calls::TransactionApi::new(self.client) + } pub fn tips(&self) -> tips::calls::TransactionApi<'a, T, X> { tips::calls::TransactionApi::new(self.client) } @@ -27714,6 +28847,9 @@ pub mod api { pub fn hrmp(&self) -> hrmp::calls::TransactionApi<'a, T, X> { hrmp::calls::TransactionApi::new(self.client) } + pub fn paras_disputes(&self) -> paras_disputes::calls::TransactionApi<'a, T, X> { + paras_disputes::calls::TransactionApi::new(self.client) + } pub fn registrar(&self) -> registrar::calls::TransactionApi<'a, T, X> { registrar::calls::TransactionApi::new(self.client) } From 7608788ecb8233d8a8c4895c09655130a35723d7 Mon Sep 17 00:00:00 2001 From: ascjones Date: Thu, 31 Mar 2022 10:01:49 +0100 Subject: [PATCH 3/4] Update polkadot.rs --- subxt/tests/integration/codegen/polkadot.rs | 31850 +++++++----------- 1 file changed, 11955 insertions(+), 19895 deletions(-) diff --git a/subxt/tests/integration/codegen/polkadot.rs b/subxt/tests/integration/codegen/polkadot.rs index 2cf0c7c8ea0..0a52807fb1c 100644 --- a/subxt/tests/integration/codegen/polkadot.rs +++ b/subxt/tests/integration/codegen/polkadot.rs @@ -1,4 +1,3 @@ -// NOTE [jsdw]: generated from polkadot 0.9.18-f6d6ab005d-aarch64-macos #[allow(dead_code, unused_imports, non_camel_case_types)] pub mod api { use super::api as root_mod; @@ -6,76 +5,60 @@ pub mod api { pub enum Event { #[codec(index = 0)] System(system::Event), - #[codec(index = 1)] - Scheduler(scheduler::Event), - #[codec(index = 10)] - Preimage(preimage::Event), - #[codec(index = 4)] + #[codec(index = 3)] Indices(indices::Event), - #[codec(index = 5)] + #[codec(index = 4)] Balances(balances::Event), #[codec(index = 7)] - Staking(staking::Event), - #[codec(index = 8)] Offences(offences::Event), #[codec(index = 9)] Session(session::Event), - #[codec(index = 11)] + #[codec(index = 10)] Grandpa(grandpa::Event), - #[codec(index = 12)] + #[codec(index = 11)] ImOnline(im_online::Event), - #[codec(index = 14)] - Democracy(democracy::Event), - #[codec(index = 15)] - Council(council::Event), #[codec(index = 16)] - TechnicalCommittee(technical_committee::Event), - #[codec(index = 17)] - PhragmenElection(phragmen_election::Event), - #[codec(index = 18)] - TechnicalMembership(technical_membership::Event), - #[codec(index = 19)] - Treasury(treasury::Event), - #[codec(index = 24)] - Claims(claims::Event), - #[codec(index = 25)] - Vesting(vesting::Event), - #[codec(index = 26)] - Utility(utility::Event), - #[codec(index = 28)] - Identity(identity::Event), - #[codec(index = 29)] - Proxy(proxy::Event), - #[codec(index = 30)] - Multisig(multisig::Event), - #[codec(index = 34)] - Bounties(bounties::Event), - #[codec(index = 38)] - ChildBounties(child_bounties::Event), - #[codec(index = 35)] - Tips(tips::Event), - #[codec(index = 36)] - ElectionProviderMultiPhase(election_provider_multi_phase::Event), - #[codec(index = 37)] - BagsList(bags_list::Event), - #[codec(index = 53)] ParaInclusion(para_inclusion::Event), - #[codec(index = 56)] + #[codec(index = 19)] Paras(paras::Event), - #[codec(index = 59)] + #[codec(index = 22)] Ump(ump::Event), - #[codec(index = 60)] + #[codec(index = 23)] Hrmp(hrmp::Event), - #[codec(index = 62)] + #[codec(index = 25)] ParasDisputes(paras_disputes::Event), - #[codec(index = 70)] + #[codec(index = 26)] Registrar(registrar::Event), - #[codec(index = 71)] - Slots(slots::Event), - #[codec(index = 72)] + #[codec(index = 27)] Auctions(auctions::Event), - #[codec(index = 73)] + #[codec(index = 28)] Crowdloan(crowdloan::Event), + #[codec(index = 29)] + Slots(slots::Event), + #[codec(index = 31)] + AssignedSlots(assigned_slots::Event), + #[codec(index = 32)] + Sudo(sudo::Event), + #[codec(index = 36)] + ValidatorManager(validator_manager::Event), + #[codec(index = 43)] + BridgeRococoMessages(bridge_rococo_messages::Event), + #[codec(index = 44)] + BridgeWococoMessages(bridge_wococo_messages::Event), + #[codec(index = 45)] + BridgeRococoMessagesDispatch(bridge_rococo_messages_dispatch::Event), + #[codec(index = 46)] + BridgeWococoMessagesDispatch(bridge_wococo_messages_dispatch::Event), + #[codec(index = 80)] + Collective(collective::Event), + #[codec(index = 81)] + Membership(membership::Event), + #[codec(index = 90)] + Utility(utility::Event), + #[codec(index = 91)] + Proxy(proxy::Event), + #[codec(index = 92)] + Multisig(multisig::Event), #[codec(index = 99)] XcmPallet(xcm_pallet::Event), } @@ -469,7 +452,7 @@ pub mod api { const STORAGE: &'static str = "Events"; type Value = ::std::vec::Vec< runtime_types::frame_system::EventRecord< - runtime_types::polkadot_runtime::Event, + runtime_types::rococo_runtime::Event, ::subxt::sp_core::H256, >, >; @@ -669,7 +652,7 @@ pub mod api { ) -> ::core::result::Result< ::std::vec::Vec< runtime_types::frame_system::EventRecord< - runtime_types::polkadot_runtime::Event, + runtime_types::rococo_runtime::Event, ::subxt::sp_core::H256, >, >, @@ -748,28 +731,23 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn block_weights( &self, ) -> ::core::result::Result< runtime_types::frame_system::limits::BlockWeights, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 242u8, 5u8, 42u8, 1u8, 0u8, 0u8, 0u8, 0u8, 32u8, 74u8, - 169u8, 209u8, 1u8, 0u8, 0u8, 64u8, 89u8, 115u8, 7u8, 0u8, - 0u8, 0u8, 0u8, 1u8, 192u8, 118u8, 108u8, 143u8, 88u8, 1u8, - 0u8, 0u8, 1u8, 0u8, 152u8, 247u8, 62u8, 93u8, 1u8, 0u8, 0u8, - 1u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 64u8, 89u8, - 115u8, 7u8, 0u8, 0u8, 0u8, 0u8, 1u8, 192u8, 254u8, 190u8, - 249u8, 204u8, 1u8, 0u8, 0u8, 1u8, 0u8, 32u8, 74u8, 169u8, - 209u8, 1u8, 0u8, 0u8, 1u8, 0u8, 136u8, 82u8, 106u8, 116u8, - 0u8, 0u8, 0u8, 64u8, 89u8, 115u8, 7u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("BlockWeights")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn block_length( &self, @@ -777,19 +755,19 @@ pub mod api { runtime_types::frame_system::limits::BlockLength, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 0u8, 60u8, 0u8, 0u8, 0u8, 80u8, 0u8, 0u8, 0u8, 80u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("BlockLength")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn block_hash_count( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[96u8, 9u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("BlockHashCount")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn db_weight( &self, @@ -797,12 +775,10 @@ pub mod api { runtime_types::frame_support::weights::RuntimeDbWeight, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 64u8, 120u8, 125u8, 1u8, 0u8, 0u8, 0u8, 0u8, 0u8, 225u8, - 245u8, 5u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("DbWeight")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn version( &self, @@ -810,43 +786,24 @@ pub mod api { runtime_types::sp_version::RuntimeVersion, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 32u8, 112u8, 111u8, 108u8, 107u8, 97u8, 100u8, 111u8, 116u8, - 60u8, 112u8, 97u8, 114u8, 105u8, 116u8, 121u8, 45u8, 112u8, - 111u8, 108u8, 107u8, 97u8, 100u8, 111u8, 116u8, 0u8, 0u8, - 0u8, 0u8, 220u8, 35u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 56u8, - 223u8, 106u8, 203u8, 104u8, 153u8, 7u8, 96u8, 155u8, 4u8, - 0u8, 0u8, 0u8, 55u8, 227u8, 151u8, 252u8, 124u8, 145u8, - 245u8, 228u8, 1u8, 0u8, 0u8, 0u8, 64u8, 254u8, 58u8, 212u8, - 1u8, 248u8, 149u8, 154u8, 5u8, 0u8, 0u8, 0u8, 210u8, 188u8, - 152u8, 151u8, 238u8, 208u8, 143u8, 21u8, 3u8, 0u8, 0u8, 0u8, - 247u8, 139u8, 39u8, 139u8, 229u8, 63u8, 69u8, 76u8, 2u8, 0u8, - 0u8, 0u8, 175u8, 44u8, 2u8, 151u8, 162u8, 62u8, 109u8, 61u8, - 2u8, 0u8, 0u8, 0u8, 73u8, 234u8, 175u8, 27u8, 84u8, 138u8, - 12u8, 176u8, 1u8, 0u8, 0u8, 0u8, 145u8, 213u8, 223u8, 24u8, - 176u8, 210u8, 207u8, 88u8, 1u8, 0u8, 0u8, 0u8, 237u8, 153u8, - 197u8, 172u8, 178u8, 94u8, 237u8, 245u8, 3u8, 0u8, 0u8, 0u8, - 203u8, 202u8, 37u8, 227u8, 159u8, 20u8, 35u8, 135u8, 2u8, - 0u8, 0u8, 0u8, 104u8, 122u8, 212u8, 74u8, 211u8, 127u8, 3u8, - 194u8, 1u8, 0u8, 0u8, 0u8, 171u8, 60u8, 5u8, 114u8, 41u8, - 31u8, 235u8, 139u8, 1u8, 0u8, 0u8, 0u8, 188u8, 157u8, 137u8, - 144u8, 79u8, 91u8, 146u8, 63u8, 1u8, 0u8, 0u8, 0u8, 55u8, - 200u8, 187u8, 19u8, 80u8, 169u8, 162u8, 168u8, 1u8, 0u8, 0u8, - 0u8, 12u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("Version")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn ss58_prefix( &self, ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode(&mut &[0u8, 0u8][..])?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("SS58Prefix")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } - pub mod scheduler { + pub mod babe { use super::root_mod; use super::runtime_types; pub mod calls { @@ -854,99 +811,47 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Schedule { - pub when: ::core::primitive::u32, - pub maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - pub priority: ::core::primitive::u8, - pub call: ::std::boxed::Box< - runtime_types::frame_support::traits::schedule::MaybeHashed< - runtime_types::polkadot_runtime::Call, - ::subxt::sp_core::H256, - >, - >, - } - impl ::subxt::Call for Schedule { - const PALLET: &'static str = "Scheduler"; - const FUNCTION: &'static str = "schedule"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Cancel { - pub when: ::core::primitive::u32, - pub index: ::core::primitive::u32, - } - impl ::subxt::Call for Cancel { - const PALLET: &'static str = "Scheduler"; - const FUNCTION: &'static str = "cancel"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ScheduleNamed { - pub id: ::std::vec::Vec<::core::primitive::u8>, - pub when: ::core::primitive::u32, - pub maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - pub priority: ::core::primitive::u8, - pub call: ::std::boxed::Box< - runtime_types::frame_support::traits::schedule::MaybeHashed< - runtime_types::polkadot_runtime::Call, - ::subxt::sp_core::H256, + pub struct ReportEquivocation { + pub 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, >, >, + pub key_owner_proof: runtime_types::sp_session::MembershipProof, } - impl ::subxt::Call for ScheduleNamed { - const PALLET: &'static str = "Scheduler"; - const FUNCTION: &'static str = "schedule_named"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CancelNamed { - pub id: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::Call for CancelNamed { - const PALLET: &'static str = "Scheduler"; - const FUNCTION: &'static str = "cancel_named"; + impl ::subxt::Call for ReportEquivocation { + const PALLET: &'static str = "Babe"; + const FUNCTION: &'static str = "report_equivocation"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ScheduleAfter { - pub after: ::core::primitive::u32, - pub maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - pub priority: ::core::primitive::u8, - pub call: ::std::boxed::Box< - runtime_types::frame_support::traits::schedule::MaybeHashed< - runtime_types::polkadot_runtime::Call, - ::subxt::sp_core::H256, + pub struct ReportEquivocationUnsigned { + pub 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, >, >, + pub key_owner_proof: runtime_types::sp_session::MembershipProof, } - impl ::subxt::Call for ScheduleAfter { - const PALLET: &'static str = "Scheduler"; - const FUNCTION: &'static str = "schedule_after"; + impl ::subxt::Call for ReportEquivocationUnsigned { + const PALLET: &'static str = "Babe"; + const FUNCTION: &'static str = "report_equivocation_unsigned"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ScheduleNamedAfter { - pub id: ::std::vec::Vec<::core::primitive::u8>, - pub after: ::core::primitive::u32, - pub maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - pub priority: ::core::primitive::u8, - pub call: ::std::boxed::Box< - runtime_types::frame_support::traits::schedule::MaybeHashed< - runtime_types::polkadot_runtime::Call, - ::subxt::sp_core::H256, - >, - >, + pub struct PlanConfigChange { + pub config: + runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, } - impl ::subxt::Call for ScheduleNamedAfter { - const PALLET: &'static str = "Scheduler"; - const FUNCTION: &'static str = "schedule_named_after"; + impl ::subxt::Call for PlanConfigChange { + const PALLET: &'static str = "Babe"; + const FUNCTION: &'static str = "plan_config_change"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -963,232 +868,209 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn schedule( - &self, - when: ::core::primitive::u32, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::frame_support::traits::schedule::MaybeHashed< - runtime_types::polkadot_runtime::Call, - ::subxt::sp_core::H256, - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Schedule, - DispatchError, - root_mod::Event, - > { - let call = Schedule { - when, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn cancel( - &self, - when: ::core::primitive::u32, - index: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Cancel, - DispatchError, - root_mod::Event, - > { - let call = Cancel { when, index }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn schedule_named( + pub fn report_equivocation( &self, - id: ::std::vec::Vec<::core::primitive::u8>, - when: ::core::primitive::u32, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::frame_support::traits::schedule::MaybeHashed< - runtime_types::polkadot_runtime::Call, - ::subxt::sp_core::H256, - >, + equivocation_proof : runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public >, + key_owner_proof: runtime_types::sp_session::MembershipProof, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ScheduleNamed, + ReportEquivocation, DispatchError, root_mod::Event, > { - let call = ScheduleNamed { - id, - when, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), + let call = ReportEquivocation { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn cancel_named( - &self, - id: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - CancelNamed, - DispatchError, - root_mod::Event, - > { - let call = CancelNamed { id }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn schedule_after( + pub fn report_equivocation_unsigned( &self, - after: ::core::primitive::u32, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::frame_support::traits::schedule::MaybeHashed< - runtime_types::polkadot_runtime::Call, - ::subxt::sp_core::H256, - >, + equivocation_proof : runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public >, + key_owner_proof: runtime_types::sp_session::MembershipProof, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ScheduleAfter, + ReportEquivocationUnsigned, DispatchError, root_mod::Event, > { - let call = ScheduleAfter { - after, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), + let call = ReportEquivocationUnsigned { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn schedule_named_after( + pub fn plan_config_change( &self, - id: ::std::vec::Vec<::core::primitive::u8>, - after: ::core::primitive::u32, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: runtime_types::frame_support::traits::schedule::MaybeHashed< - runtime_types::polkadot_runtime::Call, - ::subxt::sp_core::H256, - >, + config : runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ScheduleNamedAfter, + PlanConfigChange, DispatchError, root_mod::Event, > { - let call = ScheduleNamedAfter { - id, - after, - maybe_periodic, - priority, - call: ::std::boxed::Box::new(call), - }; + let call = PlanConfigChange { config }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::pallet_scheduler::pallet::Event; - pub mod events { + pub mod storage { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Scheduled { - pub when: ::core::primitive::u32, - pub index: ::core::primitive::u32, - } - impl ::subxt::Event for Scheduled { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Scheduled"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Canceled { - pub when: ::core::primitive::u32, - pub index: ::core::primitive::u32, - } - impl ::subxt::Event for Canceled { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Canceled"; + pub struct EpochIndex; + impl ::subxt::StorageEntry for EpochIndex { + const PALLET: &'static str = "Babe"; + const STORAGE: &'static str = "EpochIndex"; + type Value = ::core::primitive::u64; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Dispatched { - pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, - pub result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + pub struct Authorities; + impl ::subxt::StorageEntry for Authorities { + const PALLET: &'static str = "Babe"; + const STORAGE: &'static str = "Authorities"; + type Value = runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > ; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - impl ::subxt::Event for Dispatched { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "Dispatched"; + pub struct GenesisSlot; + impl ::subxt::StorageEntry for GenesisSlot { + const PALLET: &'static str = "Babe"; + const STORAGE: &'static str = "GenesisSlot"; + type Value = runtime_types::sp_consensus_slots::Slot; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CallLookupFailed { - pub task: (::core::primitive::u32, ::core::primitive::u32), - pub id: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, - pub error: runtime_types::frame_support::traits::schedule::LookupError, + pub struct CurrentSlot; + impl ::subxt::StorageEntry for CurrentSlot { + const PALLET: &'static str = "Babe"; + const STORAGE: &'static str = "CurrentSlot"; + type Value = runtime_types::sp_consensus_slots::Slot; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - impl ::subxt::Event for CallLookupFailed { - const PALLET: &'static str = "Scheduler"; - const EVENT: &'static str = "CallLookupFailed"; + pub struct Randomness; + impl ::subxt::StorageEntry for Randomness { + const PALLET: &'static str = "Babe"; + const STORAGE: &'static str = "Randomness"; + type Value = [::core::primitive::u8; 32usize]; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - } - pub mod storage { - use super::runtime_types; - pub struct Agenda<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for Agenda<'_> { - const PALLET: &'static str = "Scheduler"; - const STORAGE: &'static str = "Agenda"; - type Value = ::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, - >, - >, - >; + pub struct PendingEpochConfigChange; + impl ::subxt::StorageEntry for PendingEpochConfigChange { + const PALLET: &'static str = "Babe"; + const STORAGE: &'static str = "PendingEpochConfigChange"; + type Value = + runtime_types::sp_consensus_babe::digests::NextConfigDescriptor; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + ::subxt::StorageEntryKey::Plain } } - pub struct Lookup<'a>(pub &'a [::core::primitive::u8]); - impl ::subxt::StorageEntry for Lookup<'_> { - const PALLET: &'static str = "Scheduler"; - const STORAGE: &'static str = "Lookup"; - type Value = (::core::primitive::u32, ::core::primitive::u32); + pub struct NextRandomness; + impl ::subxt::StorageEntry for NextRandomness { + const PALLET: &'static str = "Babe"; + const STORAGE: &'static str = "NextRandomness"; + type Value = [::core::primitive::u8; 32usize]; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + ::subxt::StorageEntryKey::Plain + } + } + pub struct NextAuthorities; + impl ::subxt::StorageEntry for NextAuthorities { + const PALLET: &'static str = "Babe"; + const STORAGE: &'static str = "NextAuthorities"; + type Value = runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > ; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct SegmentIndex; + impl ::subxt::StorageEntry for SegmentIndex { + const PALLET: &'static str = "Babe"; + const STORAGE: &'static str = "SegmentIndex"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct UnderConstruction<'a>(pub &'a ::core::primitive::u32); + impl ::subxt::StorageEntry for UnderConstruction<'_> { + const PALLET: &'static str = "Babe"; + const STORAGE: &'static str = "UnderConstruction"; + type Value = + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + [::core::primitive::u8; 32usize], + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct Initialized; + impl ::subxt::StorageEntry for Initialized { + const PALLET: &'static str = "Babe"; + const STORAGE: &'static str = "Initialized"; + type Value = ::core::option::Option<[::core::primitive::u8; 32usize]>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct AuthorVrfRandomness; + impl ::subxt::StorageEntry for AuthorVrfRandomness { + const PALLET: &'static str = "Babe"; + const STORAGE: &'static str = "AuthorVrfRandomness"; + type Value = ::core::option::Option<[::core::primitive::u8; 32usize]>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct EpochStart; + impl ::subxt::StorageEntry for EpochStart { + const PALLET: &'static str = "Babe"; + const STORAGE: &'static str = "EpochStart"; + type Value = (::core::primitive::u32, ::core::primitive::u32); + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Lateness; + impl ::subxt::StorageEntry for Lateness { + const PALLET: &'static str = "Babe"; + const STORAGE: &'static str = "Lateness"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct EpochConfig; + impl ::subxt::StorageEntry for EpochConfig { + const PALLET: &'static str = "Babe"; + const STORAGE: &'static str = "EpochConfig"; + type Value = runtime_types::sp_consensus_babe::BabeEpochConfiguration; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct NextEpochConfig; + impl ::subxt::StorageEntry for NextEpochConfig { + const PALLET: &'static str = "Babe"; + const STORAGE: &'static str = "NextEpochConfig"; + type Value = runtime_types::sp_consensus_babe::BabeEpochConfiguration; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } } pub struct StorageApi<'a, T: ::subxt::Config> { @@ -1197,68 +1079,209 @@ pub mod api { impl<'a, T: ::subxt::Config> StorageApi<'a, T> { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } - } pub async fn agenda (& self , _0 : & :: core :: primitive :: u32 , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_scheduler :: ScheduledV3 < runtime_types :: frame_support :: traits :: schedule :: MaybeHashed < runtime_types :: polkadot_runtime :: Call , :: subxt :: sp_core :: H256 > , :: core :: primitive :: u32 , runtime_types :: polkadot_runtime :: OriginCaller , :: subxt :: sp_core :: crypto :: AccountId32 > > > , :: subxt :: BasicError >{ - let entry = Agenda(_0); + } + pub async fn epoch_index( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + { + let entry = EpochIndex; + self.client.storage().fetch_or_default(&entry, hash).await + } pub async fn authorities (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , :: subxt :: BasicError >{ + let entry = Authorities; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn agenda_iter( + pub async fn genesis_slot( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Agenda<'a>>, + runtime_types::sp_consensus_slots::Slot, ::subxt::BasicError, > { - self.client.storage().iter(hash).await + let entry = GenesisSlot; + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn lookup( + pub async fn current_slot( &self, - _0: &[::core::primitive::u8], hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, + runtime_types::sp_consensus_slots::Slot, + ::subxt::BasicError, + > { + let entry = CurrentSlot; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn randomness( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + [::core::primitive::u8; 32usize], + ::subxt::BasicError, + > { + let entry = Randomness; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn pending_epoch_config_change( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, + >, ::subxt::BasicError, > { - let entry = Lookup(_0); + let entry = PendingEpochConfigChange; self.client.storage().fetch(&entry, hash).await } - pub async fn lookup_iter( + pub async fn next_randomness( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + [::core::primitive::u8; 32usize], + ::subxt::BasicError, + > { + let entry = NextRandomness; + self.client.storage().fetch_or_default(&entry, hash).await + } pub async fn next_authorities (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , :: subxt :: BasicError >{ + let entry = NextAuthorities; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn segment_index( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = SegmentIndex; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn under_construction( + &self, + _0: &::core::primitive::u32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + [::core::primitive::u8; 32usize], + >, + ::subxt::BasicError, + > { + let entry = UnderConstruction(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn under_construction_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Lookup<'a>>, + ::subxt::KeyIter<'a, T, UnderConstruction<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } + pub async fn initialized( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + ::core::option::Option<[::core::primitive::u8; 32usize]>, + >, + ::subxt::BasicError, + > { + let entry = Initialized; + self.client.storage().fetch(&entry, hash).await + } + pub async fn author_vrf_randomness( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<[::core::primitive::u8; 32usize]>, + ::subxt::BasicError, + > { + let entry = AuthorVrfRandomness; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn epoch_start( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + (::core::primitive::u32, ::core::primitive::u32), + ::subxt::BasicError, + > { + let entry = EpochStart; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn lateness( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = Lateness; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn epoch_config( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::sp_consensus_babe::BabeEpochConfiguration, + >, + ::subxt::BasicError, + > { + let entry = EpochConfig; + self.client.storage().fetch(&entry, hash).await + } + pub async fn next_epoch_config( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::sp_consensus_babe::BabeEpochConfiguration, + >, + ::subxt::BasicError, + > { + let entry = NextEpochConfig; + self.client.storage().fetch(&entry, hash).await + } } } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn maximum_weight( + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn epoch_duration( + &self, + ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Babe")?; + let constant = pallet.constant("EpochDuration")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn expected_block_time( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 128u8, 110u8, 135u8, 116u8, 1u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Babe")?; + let constant = pallet.constant("ExpectedBlockTime")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub fn max_scheduled_per_block( + pub fn max_authorities( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[50u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Babe")?; + let constant = pallet.constant("MaxAuthorities")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } - pub mod preimage { + pub mod timestamp { use super::root_mod; use super::runtime_types; pub mod calls { @@ -1266,36 +1289,175 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct NotePreimage { - pub bytes: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::Call for NotePreimage { - const PALLET: &'static str = "Preimage"; - const FUNCTION: &'static str = "note_preimage"; + pub struct Set { + #[codec(compact)] + pub now: ::core::primitive::u64, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct UnnotePreimage { - pub hash: ::subxt::sp_core::H256, + impl ::subxt::Call for Set { + const PALLET: &'static str = "Timestamp"; + const FUNCTION: &'static str = "set"; } - impl ::subxt::Call for UnnotePreimage { - const PALLET: &'static str = "Preimage"; - const FUNCTION: &'static str = "unnote_preimage"; + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } + } + pub fn set( + &self, + now: ::core::primitive::u64, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Set, + DispatchError, + root_mod::Event, + > { + let call = Set { now }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + } + } + pub mod storage { + use super::runtime_types; + pub struct Now; + impl ::subxt::StorageEntry for Now { + const PALLET: &'static str = "Timestamp"; + const STORAGE: &'static str = "Now"; + type Value = ::core::primitive::u64; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct DidUpdate; + impl ::subxt::StorageEntry for DidUpdate { + const PALLET: &'static str = "Timestamp"; + const STORAGE: &'static str = "DidUpdate"; + type Value = ::core::primitive::bool; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn now( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + { + let entry = Now; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn did_update( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> + { + let entry = DidUpdate; + self.client.storage().fetch_or_default(&entry, hash).await + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn minimum_period( + &self, + ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Timestamp")?; + let constant = pallet.constant("MinimumPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + } + } + } + pub mod indices { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct Claim { + pub index: ::core::primitive::u32, + } + impl ::subxt::Call for Claim { + const PALLET: &'static str = "Indices"; + const FUNCTION: &'static str = "claim"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct RequestPreimage { - pub hash: ::subxt::sp_core::H256, + pub struct Transfer { + pub new: ::subxt::sp_core::crypto::AccountId32, + pub index: ::core::primitive::u32, + } + impl ::subxt::Call for Transfer { + const PALLET: &'static str = "Indices"; + const FUNCTION: &'static str = "transfer"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct Free { + pub index: ::core::primitive::u32, } - impl ::subxt::Call for RequestPreimage { - const PALLET: &'static str = "Preimage"; - const FUNCTION: &'static str = "request_preimage"; + impl ::subxt::Call for Free { + const PALLET: &'static str = "Indices"; + const FUNCTION: &'static str = "free"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct UnrequestPreimage { - pub hash: ::subxt::sp_core::H256, + pub struct ForceTransfer { + pub new: ::subxt::sp_core::crypto::AccountId32, + pub index: ::core::primitive::u32, + pub freeze: ::core::primitive::bool, + } + impl ::subxt::Call for ForceTransfer { + const PALLET: &'static str = "Indices"; + const FUNCTION: &'static str = "force_transfer"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct Freeze { + pub index: ::core::primitive::u32, } - impl ::subxt::Call for UnrequestPreimage { - const PALLET: &'static str = "Preimage"; - const FUNCTION: &'static str = "unrequest_preimage"; + impl ::subxt::Call for Freeze { + const PALLET: &'static str = "Indices"; + const FUNCTION: &'static str = "freeze"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -1312,121 +1474,131 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn note_preimage( + pub fn claim( + &self, + index: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Claim, + DispatchError, + root_mod::Event, + > { + let call = Claim { index }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn transfer( &self, - bytes: ::std::vec::Vec<::core::primitive::u8>, + new: ::subxt::sp_core::crypto::AccountId32, + index: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - NotePreimage, + Transfer, DispatchError, root_mod::Event, > { - let call = NotePreimage { bytes }; + let call = Transfer { new, index }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn unnote_preimage( + pub fn free( &self, - hash: ::subxt::sp_core::H256, + index: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - UnnotePreimage, + Free, DispatchError, root_mod::Event, > { - let call = UnnotePreimage { hash }; + let call = Free { index }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn request_preimage( + pub fn force_transfer( &self, - hash: ::subxt::sp_core::H256, + new: ::subxt::sp_core::crypto::AccountId32, + index: ::core::primitive::u32, + freeze: ::core::primitive::bool, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - RequestPreimage, + ForceTransfer, DispatchError, root_mod::Event, > { - let call = RequestPreimage { hash }; + let call = ForceTransfer { new, index, freeze }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn unrequest_preimage( + pub fn freeze( &self, - hash: ::subxt::sp_core::H256, + index: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - UnrequestPreimage, + Freeze, DispatchError, root_mod::Event, > { - let call = UnrequestPreimage { hash }; + let call = Freeze { index }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::pallet_preimage::pallet::Event; + pub type Event = runtime_types::pallet_indices::pallet::Event; pub mod events { use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Noted { - pub hash: ::subxt::sp_core::H256, + pub struct IndexAssigned { + pub who: ::subxt::sp_core::crypto::AccountId32, + pub index: ::core::primitive::u32, } - impl ::subxt::Event for Noted { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Noted"; + impl ::subxt::Event for IndexAssigned { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexAssigned"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Requested { - pub hash: ::subxt::sp_core::H256, + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct IndexFreed { + pub index: ::core::primitive::u32, } - impl ::subxt::Event for Requested { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Requested"; + impl ::subxt::Event for IndexFreed { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexFreed"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Cleared { - pub hash: ::subxt::sp_core::H256, + pub struct IndexFrozen { + pub index: ::core::primitive::u32, + pub who: ::subxt::sp_core::crypto::AccountId32, } - impl ::subxt::Event for Cleared { - const PALLET: &'static str = "Preimage"; - const EVENT: &'static str = "Cleared"; + impl ::subxt::Event for IndexFrozen { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexFrozen"; } } pub mod storage { use super::runtime_types; - pub struct StatusFor<'a>(pub &'a ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for StatusFor<'_> { - const PALLET: &'static str = "Preimage"; - const STORAGE: &'static str = "StatusFor"; - type Value = runtime_types::pallet_preimage::RequestStatus< + pub struct Accounts<'a>(pub &'a ::core::primitive::u32); + impl ::subxt::StorageEntry for Accounts<'_> { + const PALLET: &'static str = "Indices"; + const STORAGE: &'static str = "Accounts"; + type Value = ( ::subxt::sp_core::crypto::AccountId32, ::core::primitive::u128, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct PreimageFor<'a>(pub &'a ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for PreimageFor<'_> { - const PALLET: &'static str = "Preimage"; - const STORAGE: &'static str = "PreimageFor"; - type Value = - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::core::primitive::u8, - >; + ::core::primitive::bool, + ); fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Identity, + ::subxt::StorageHasher::Blake2_128Concat, )]) } } @@ -1437,59 +1609,54 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn status_for( + pub async fn accounts( &self, - _0: &::subxt::sp_core::H256, + _0: &::core::primitive::u32, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_preimage::RequestStatus< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, - >, + ::core::option::Option<( + ::subxt::sp_core::crypto::AccountId32, + ::core::primitive::u128, + ::core::primitive::bool, + )>, ::subxt::BasicError, > { - let entry = StatusFor(_0); + let entry = Accounts(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn status_for_iter( + pub async fn accounts_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, StatusFor<'a>>, + ::subxt::KeyIter<'a, T, Accounts<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn preimage_for( + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn deposit( &self, - _0: &::subxt::sp_core::H256, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - >, - ::subxt::BasicError, - > { - let entry = PreimageFor(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn preimage_for_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, PreimageFor<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Indices")?; + let constant = pallet.constant("Deposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } - pub mod babe { + pub mod balances { use super::root_mod; use super::runtime_types; pub mod calls { @@ -1497,47 +1664,86 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ReportEquivocation { - pub 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, - >, + pub struct Transfer { + pub dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, + #[codec(compact)] + pub value: ::core::primitive::u128, } - impl ::subxt::Call for ReportEquivocation { - const PALLET: &'static str = "Babe"; - const FUNCTION: &'static str = "report_equivocation"; + impl ::subxt::Call for Transfer { + const PALLET: &'static str = "Balances"; + const FUNCTION: &'static str = "transfer"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ReportEquivocationUnsigned { - pub 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, - >, + pub struct SetBalance { + pub who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, + #[codec(compact)] + pub new_free: ::core::primitive::u128, + #[codec(compact)] + pub new_reserved: ::core::primitive::u128, } - impl ::subxt::Call for ReportEquivocationUnsigned { - const PALLET: &'static str = "Babe"; - const FUNCTION: &'static str = "report_equivocation_unsigned"; + impl ::subxt::Call for SetBalance { + const PALLET: &'static str = "Balances"; + const FUNCTION: &'static str = "set_balance"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PlanConfigChange { - pub config: - runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, + pub struct ForceTransfer { + pub source: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + pub dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + #[codec(compact)] + pub value: ::core::primitive::u128, } - impl ::subxt::Call for PlanConfigChange { - const PALLET: &'static str = "Babe"; - const FUNCTION: &'static str = "plan_config_change"; + impl ::subxt::Call for ForceTransfer { + const PALLET: &'static str = "Balances"; + const FUNCTION: &'static str = "force_transfer"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct TransferKeepAlive { + pub dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::Call for TransferKeepAlive { + const PALLET: &'static str = "Balances"; + const FUNCTION: &'static str = "transfer_keep_alive"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct TransferAll { + pub dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + pub keep_alive: ::core::primitive::bool, + } + impl ::subxt::Call for TransferAll { + const PALLET: &'static str = "Balances"; + const FUNCTION: &'static str = "transfer_all"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ForceUnreserve { + pub who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + pub amount: ::core::primitive::u128, + } + impl ::subxt::Call for ForceUnreserve { + const PALLET: &'static str = "Balances"; + const FUNCTION: &'static str = "force_unreserve"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -1554,207 +1760,287 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn report_equivocation( + pub fn transfer( &self, - equivocation_proof : runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public >, - key_owner_proof: runtime_types::sp_session::MembershipProof, + dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + value: ::core::primitive::u128, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ReportEquivocation, + Transfer, DispatchError, root_mod::Event, > { - let call = ReportEquivocation { - equivocation_proof: ::std::boxed::Box::new(equivocation_proof), - key_owner_proof, + let call = Transfer { dest, value }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_balance( + &self, + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + new_free: ::core::primitive::u128, + new_reserved: ::core::primitive::u128, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetBalance, + DispatchError, + root_mod::Event, + > { + let call = SetBalance { + who, + new_free, + new_reserved, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn report_equivocation_unsigned( + pub fn force_transfer( &self, - equivocation_proof : runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , runtime_types :: sp_consensus_babe :: app :: Public >, - key_owner_proof: runtime_types::sp_session::MembershipProof, + source: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + value: ::core::primitive::u128, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ReportEquivocationUnsigned, + ForceTransfer, DispatchError, root_mod::Event, > { - let call = ReportEquivocationUnsigned { - equivocation_proof: ::std::boxed::Box::new(equivocation_proof), - key_owner_proof, + let call = ForceTransfer { + source, + dest, + value, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn plan_config_change( + pub fn transfer_keep_alive( &self, - config : runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor, + dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + value: ::core::primitive::u128, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - PlanConfigChange, + TransferKeepAlive, DispatchError, root_mod::Event, > { - let call = PlanConfigChange { config }; + let call = TransferKeepAlive { dest, value }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn transfer_all( + &self, + dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + keep_alive: ::core::primitive::bool, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + TransferAll, + DispatchError, + root_mod::Event, + > { + let call = TransferAll { dest, keep_alive }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn force_unreserve( + &self, + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + amount: ::core::primitive::u128, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ForceUnreserve, + DispatchError, + root_mod::Event, + > { + let call = ForceUnreserve { who, amount }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub mod storage { + pub type Event = runtime_types::pallet_balances::pallet::Event; + pub mod events { use super::runtime_types; - pub struct EpochIndex; - impl ::subxt::StorageEntry for EpochIndex { - const PALLET: &'static str = "Babe"; - const STORAGE: &'static str = "EpochIndex"; - type Value = ::core::primitive::u64; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Authorities; - impl ::subxt::StorageEntry for Authorities { - const PALLET: &'static str = "Babe"; - const STORAGE: &'static str = "Authorities"; - type Value = runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Endowed { + pub account: ::subxt::sp_core::crypto::AccountId32, + pub free_balance: ::core::primitive::u128, } - pub struct GenesisSlot; - impl ::subxt::StorageEntry for GenesisSlot { - const PALLET: &'static str = "Babe"; - const STORAGE: &'static str = "GenesisSlot"; - type Value = runtime_types::sp_consensus_slots::Slot; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + impl ::subxt::Event for Endowed { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Endowed"; } - pub struct CurrentSlot; - impl ::subxt::StorageEntry for CurrentSlot { - const PALLET: &'static str = "Babe"; - const STORAGE: &'static str = "CurrentSlot"; - type Value = runtime_types::sp_consensus_slots::Slot; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct DustLost { + pub account: ::subxt::sp_core::crypto::AccountId32, + pub amount: ::core::primitive::u128, } - pub struct Randomness; - impl ::subxt::StorageEntry for Randomness { - const PALLET: &'static str = "Babe"; - const STORAGE: &'static str = "Randomness"; - type Value = [::core::primitive::u8; 32usize]; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + impl ::subxt::Event for DustLost { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "DustLost"; } - pub struct PendingEpochConfigChange; - impl ::subxt::StorageEntry for PendingEpochConfigChange { - const PALLET: &'static str = "Babe"; - const STORAGE: &'static str = "PendingEpochConfigChange"; - type Value = - runtime_types::sp_consensus_babe::digests::NextConfigDescriptor; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Transfer { + pub from: ::subxt::sp_core::crypto::AccountId32, + pub to: ::subxt::sp_core::crypto::AccountId32, + pub amount: ::core::primitive::u128, } - pub struct NextRandomness; - impl ::subxt::StorageEntry for NextRandomness { - const PALLET: &'static str = "Babe"; - const STORAGE: &'static str = "NextRandomness"; - type Value = [::core::primitive::u8; 32usize]; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + impl ::subxt::Event for Transfer { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Transfer"; } - pub struct NextAuthorities; - impl ::subxt::StorageEntry for NextAuthorities { - const PALLET: &'static str = "Babe"; - const STORAGE: &'static str = "NextAuthorities"; - type Value = runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct BalanceSet { + pub who: ::subxt::sp_core::crypto::AccountId32, + pub free: ::core::primitive::u128, + pub reserved: ::core::primitive::u128, } - pub struct SegmentIndex; - impl ::subxt::StorageEntry for SegmentIndex { - const PALLET: &'static str = "Babe"; - const STORAGE: &'static str = "SegmentIndex"; - type Value = ::core::primitive::u32; + impl ::subxt::Event for BalanceSet { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "BalanceSet"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Reserved { + pub who: ::subxt::sp_core::crypto::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::Event for Reserved { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Reserved"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Unreserved { + pub who: ::subxt::sp_core::crypto::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::Event for Unreserved { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Unreserved"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ReserveRepatriated { + pub from: ::subxt::sp_core::crypto::AccountId32, + pub to: ::subxt::sp_core::crypto::AccountId32, + pub amount: ::core::primitive::u128, + pub destination_status: + runtime_types::frame_support::traits::tokens::misc::BalanceStatus, + } + impl ::subxt::Event for ReserveRepatriated { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "ReserveRepatriated"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Deposit { + pub who: ::subxt::sp_core::crypto::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::Event for Deposit { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Deposit"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Withdraw { + pub who: ::subxt::sp_core::crypto::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::Event for Withdraw { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Withdraw"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Slashed { + pub who: ::subxt::sp_core::crypto::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::Event for Slashed { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Slashed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct TotalIssuance; + impl ::subxt::StorageEntry for TotalIssuance { + const PALLET: &'static str = "Balances"; + const STORAGE: &'static str = "TotalIssuance"; + type Value = ::core::primitive::u128; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct UnderConstruction<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for UnderConstruction<'_> { - const PALLET: &'static str = "Babe"; - const STORAGE: &'static str = "UnderConstruction"; + pub struct Account<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for Account<'_> { + const PALLET: &'static str = "Balances"; + const STORAGE: &'static str = "Account"; type Value = - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - [::core::primitive::u8; 32usize], - >; + runtime_types::pallet_balances::AccountData<::core::primitive::u128>; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Twox64Concat, + ::subxt::StorageHasher::Blake2_128Concat, )]) } } - pub struct Initialized; - impl ::subxt::StorageEntry for Initialized { - const PALLET: &'static str = "Babe"; - const STORAGE: &'static str = "Initialized"; - type Value = ::core::option::Option<[::core::primitive::u8; 32usize]>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct AuthorVrfRandomness; - impl ::subxt::StorageEntry for AuthorVrfRandomness { - const PALLET: &'static str = "Babe"; - const STORAGE: &'static str = "AuthorVrfRandomness"; - type Value = ::core::option::Option<[::core::primitive::u8; 32usize]>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct EpochStart; - impl ::subxt::StorageEntry for EpochStart { - const PALLET: &'static str = "Babe"; - const STORAGE: &'static str = "EpochStart"; - type Value = (::core::primitive::u32, ::core::primitive::u32); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Lateness; - impl ::subxt::StorageEntry for Lateness { - const PALLET: &'static str = "Babe"; - const STORAGE: &'static str = "Lateness"; - type Value = ::core::primitive::u32; + pub struct Locks<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for Locks<'_> { + const PALLET: &'static str = "Balances"; + const STORAGE: &'static str = "Locks"; + type Value = runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > ; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, + )]) } } - pub struct EpochConfig; - impl ::subxt::StorageEntry for EpochConfig { - const PALLET: &'static str = "Babe"; - const STORAGE: &'static str = "EpochConfig"; - type Value = runtime_types::sp_consensus_babe::BabeEpochConfiguration; + pub struct Reserves<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for Reserves<'_> { + const PALLET: &'static str = "Balances"; + const STORAGE: &'static str = "Reserves"; + type Value = + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + runtime_types::pallet_balances::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, + >, + >; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, + )]) } } - pub struct NextEpochConfig; - impl ::subxt::StorageEntry for NextEpochConfig { - const PALLET: &'static str = "Babe"; - const STORAGE: &'static str = "NextEpochConfig"; - type Value = runtime_types::sp_consensus_babe::BabeEpochConfiguration; + pub struct StorageVersion; + impl ::subxt::StorageEntry for StorageVersion { + const PALLET: &'static str = "Balances"; + const STORAGE: &'static str = "StorageVersion"; + type Value = runtime_types::pallet_balances::Releases; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } @@ -1766,200 +2052,220 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn epoch_index( + pub async fn total_issuance( &self, hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - let entry = EpochIndex; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn authorities (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , :: subxt :: BasicError >{ - let entry = Authorities; + let entry = TotalIssuance; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn genesis_slot( + pub async fn account( &self, + _0: &::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::sp_consensus_slots::Slot, + runtime_types::pallet_balances::AccountData<::core::primitive::u128>, ::subxt::BasicError, > { - let entry = GenesisSlot; + let entry = Account(_0); self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn current_slot( + pub async fn account_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::sp_consensus_slots::Slot, + ::subxt::KeyIter<'a, T, Account<'a>>, ::subxt::BasicError, > { - let entry = CurrentSlot; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn randomness( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - [::core::primitive::u8; 32usize], - ::subxt::BasicError, - > { - let entry = Randomness; + self.client.storage().iter(hash).await + } pub async fn locks (& self , _0 : & :: subxt :: sp_core :: crypto :: AccountId32 , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , :: subxt :: BasicError >{ + let entry = Locks(_0); self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn pending_epoch_config_change( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, - >, - ::subxt::BasicError, - > { - let entry = PendingEpochConfigChange; - self.client.storage().fetch(&entry, hash).await - } - pub async fn next_randomness( + pub async fn locks_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - [::core::primitive::u8; 32usize], + ::subxt::KeyIter<'a, T, Locks<'a>>, ::subxt::BasicError, > { - let entry = NextRandomness; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn next_authorities (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , :: subxt :: BasicError >{ - let entry = NextAuthorities; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn segment_index( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = SegmentIndex; - self.client.storage().fetch_or_default(&entry, hash).await + self.client.storage().iter(hash).await } - pub async fn under_construction( + pub async fn reserves( &self, - _0: &::core::primitive::u32, + _0: &::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< runtime_types::frame_support::storage::bounded_vec::BoundedVec< - [::core::primitive::u8; 32usize], + runtime_types::pallet_balances::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, + >, >, ::subxt::BasicError, > { - let entry = UnderConstruction(_0); + let entry = Reserves(_0); self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn under_construction_iter( + pub async fn reserves_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, UnderConstruction<'a>>, + ::subxt::KeyIter<'a, T, Reserves<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn initialized( + pub async fn storage_version( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - ::core::option::Option<[::core::primitive::u8; 32usize]>, - >, + runtime_types::pallet_balances::Releases, ::subxt::BasicError, > { - let entry = Initialized; - self.client.storage().fetch(&entry, hash).await + let entry = StorageVersion; + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn author_vrf_randomness( + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn existential_deposit( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<[::core::primitive::u8; 32usize]>, - ::subxt::BasicError, - > { - let entry = AuthorVrfRandomness; - self.client.storage().fetch_or_default(&entry, hash).await + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Balances")?; + let constant = pallet.constant("ExistentialDeposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub async fn epoch_start( + pub fn max_locks( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - (::core::primitive::u32, ::core::primitive::u32), - ::subxt::BasicError, - > { - let entry = EpochStart; - self.client.storage().fetch_or_default(&entry, hash).await + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Balances")?; + let constant = pallet.constant("MaxLocks")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub async fn lateness( + pub fn max_reserves( &self, - hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let entry = Lateness; - self.client.storage().fetch_or_default(&entry, hash).await + let pallet = self.client.metadata().pallet("Balances")?; + let constant = pallet.constant("MaxReserves")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub async fn epoch_config( + } + } + } + pub mod transaction_payment { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub struct NextFeeMultiplier; + impl ::subxt::StorageEntry for NextFeeMultiplier { + const PALLET: &'static str = "TransactionPayment"; + const STORAGE: &'static str = "NextFeeMultiplier"; + type Value = runtime_types::sp_arithmetic::fixed_point::FixedU128; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct StorageVersion; + impl ::subxt::StorageEntry for StorageVersion { + const PALLET: &'static str = "TransactionPayment"; + const STORAGE: &'static str = "StorageVersion"; + type Value = runtime_types::pallet_transaction_payment::Releases; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn next_fee_multiplier( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::sp_consensus_babe::BabeEpochConfiguration, - >, + runtime_types::sp_arithmetic::fixed_point::FixedU128, ::subxt::BasicError, > { - let entry = EpochConfig; - self.client.storage().fetch(&entry, hash).await + let entry = NextFeeMultiplier; + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn next_epoch_config( + pub async fn storage_version( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::sp_consensus_babe::BabeEpochConfiguration, - >, + runtime_types::pallet_transaction_payment::Releases, ::subxt::BasicError, > { - let entry = NextEpochConfig; - self.client.storage().fetch(&entry, hash).await + let entry = StorageVersion; + self.client.storage().fetch_or_default(&entry, hash).await } } } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn epoch_duration( + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn transaction_byte_fee( &self, - ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[96u8, 9u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("TransactionPayment")?; + let constant = pallet.constant("TransactionByteFee")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub fn expected_block_time( + pub fn operational_fee_multiplier( &self, - ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + ) -> ::core::result::Result<::core::primitive::u8, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[112u8, 23u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("TransactionPayment")?; + let constant = pallet.constant("OperationalFeeMultiplier")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub fn max_authorities( + pub fn weight_to_fee( &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[160u8, 134u8, 1u8, 0u8][..], - )?) + ) -> ::core::result::Result< + ::std::vec::Vec< + runtime_types::frame_support::weights::WeightToFeeCoefficient< + ::core::primitive::u128, + >, + >, + ::subxt::BasicError, + > { + let pallet = self.client.metadata().pallet("TransactionPayment")?; + let constant = pallet.constant("WeightToFee")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } - pub mod timestamp { + pub mod authorship { use super::root_mod; use super::runtime_types; pub mod calls { @@ -1967,13 +2273,17 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Set { - #[codec(compact)] - pub now: ::core::primitive::u64, + pub struct SetUncles { + pub new_uncles: ::std::vec::Vec< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, } - impl ::subxt::Call for Set { - const PALLET: &'static str = "Timestamp"; - const FUNCTION: &'static str = "set"; + impl ::subxt::Call for SetUncles { + const PALLET: &'static str = "Authorship"; + const FUNCTION: &'static str = "set_uncles"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -1990,37 +2300,57 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn set( + pub fn set_uncles( &self, - now: ::core::primitive::u64, + new_uncles: ::std::vec::Vec< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Set, + SetUncles, DispatchError, root_mod::Event, > { - let call = Set { now }; + let call = SetUncles { new_uncles }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } pub mod storage { use super::runtime_types; - pub struct Now; - impl ::subxt::StorageEntry for Now { - const PALLET: &'static str = "Timestamp"; - const STORAGE: &'static str = "Now"; - type Value = ::core::primitive::u64; + pub struct Uncles; + impl ::subxt::StorageEntry for Uncles { + const PALLET: &'static str = "Authorship"; + const STORAGE: &'static str = "Uncles"; + type Value = ::std::vec::Vec< + runtime_types::pallet_authorship::UncleEntryItem< + ::core::primitive::u32, + ::subxt::sp_core::H256, + ::subxt::sp_core::crypto::AccountId32, + >, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct DidUpdate; - impl ::subxt::StorageEntry for DidUpdate { - const PALLET: &'static str = "Timestamp"; - const STORAGE: &'static str = "DidUpdate"; + pub struct Author; + impl ::subxt::StorageEntry for Author { + const PALLET: &'static str = "Authorship"; + const STORAGE: &'static str = "Author"; + type Value = ::subxt::sp_core::crypto::AccountId32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct DidSetUncles; + impl ::subxt::StorageEntry for DidSetUncles { + const PALLET: &'static str = "Authorship"; + const STORAGE: &'static str = "DidSetUncles"; type Value = ::core::primitive::bool; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain @@ -2033,247 +2363,231 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn now( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> - { - let entry = Now; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn did_update( + pub async fn uncles( &self, hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> - { - let entry = DidUpdate; + ) -> ::core::result::Result< + ::std::vec::Vec< + runtime_types::pallet_authorship::UncleEntryItem< + ::core::primitive::u32, + ::subxt::sp_core::H256, + ::subxt::sp_core::crypto::AccountId32, + >, + >, + ::subxt::BasicError, + > { + let entry = Uncles; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn author( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + ::subxt::BasicError, + > { + let entry = Author; + self.client.storage().fetch(&entry, hash).await + } + pub async fn did_set_uncles( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> + { + let entry = DidSetUncles; self.client.storage().fetch_or_default(&entry, hash).await } } } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn minimum_period( + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn uncle_generations( &self, - ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[184u8, 11u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Authorship")?; + let constant = pallet.constant("UncleGenerations")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } - pub mod indices { + pub mod offences { use super::root_mod; use super::runtime_types; - pub mod calls { - use super::root_mod; + pub type Event = runtime_types::pallet_offences::pallet::Event; + pub mod events { use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct Claim { - pub index: ::core::primitive::u32, - } - impl ::subxt::Call for Claim { - const PALLET: &'static str = "Indices"; - const FUNCTION: &'static str = "claim"; - } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Transfer { - pub new: ::subxt::sp_core::crypto::AccountId32, - pub index: ::core::primitive::u32, - } - impl ::subxt::Call for Transfer { - const PALLET: &'static str = "Indices"; - const FUNCTION: &'static str = "transfer"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct Free { - pub index: ::core::primitive::u32, - } - impl ::subxt::Call for Free { - const PALLET: &'static str = "Indices"; - const FUNCTION: &'static str = "free"; + pub struct Offence { + pub kind: [::core::primitive::u8; 16usize], + pub timeslot: ::std::vec::Vec<::core::primitive::u8>, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceTransfer { - pub new: ::subxt::sp_core::crypto::AccountId32, - pub index: ::core::primitive::u32, - pub freeze: ::core::primitive::bool, + impl ::subxt::Event for Offence { + const PALLET: &'static str = "Offences"; + const EVENT: &'static str = "Offence"; } - impl ::subxt::Call for ForceTransfer { - const PALLET: &'static str = "Indices"; - const FUNCTION: &'static str = "force_transfer"; + } + pub mod storage { + use super::runtime_types; + pub struct Reports<'a>(pub &'a ::subxt::sp_core::H256); + impl ::subxt::StorageEntry for Reports<'_> { + const PALLET: &'static str = "Offences"; + const STORAGE: &'static str = "Reports"; + type Value = runtime_types::sp_staking::offence::OffenceDetails< + ::subxt::sp_core::crypto::AccountId32, + (::subxt::sp_core::crypto::AccountId32, ()), + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct Freeze { - pub index: ::core::primitive::u32, + pub struct ConcurrentReportsIndex<'a>( + pub &'a [::core::primitive::u8; 16usize], + pub &'a [::core::primitive::u8], + ); + impl ::subxt::StorageEntry for ConcurrentReportsIndex<'_> { + const PALLET: &'static str = "Offences"; + const STORAGE: &'static str = "ConcurrentReportsIndex"; + type Value = ::std::vec::Vec<::subxt::sp_core::H256>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Twox64Concat, + ), + ]) + } } - impl ::subxt::Call for Freeze { - const PALLET: &'static str = "Indices"; - const FUNCTION: &'static str = "freeze"; + pub struct ReportsByKindIndex<'a>(pub &'a [::core::primitive::u8; 16usize]); + impl ::subxt::StorageEntry for ReportsByKindIndex<'_> { + const PALLET: &'static str = "Offences"; + const STORAGE: &'static str = "ReportsByKindIndex"; + type Value = ::std::vec::Vec<::core::primitive::u8>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { + pub struct StorageApi<'a, T: ::subxt::Config> { client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } + Self { client } } - pub fn claim( + pub async fn reports( &self, - index: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Claim, - DispatchError, - root_mod::Event, + _0: &::subxt::sp_core::H256, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::sp_staking::offence::OffenceDetails< + ::subxt::sp_core::crypto::AccountId32, + (::subxt::sp_core::crypto::AccountId32, ()), + >, + >, + ::subxt::BasicError, > { - let call = Claim { index }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = Reports(_0); + self.client.storage().fetch(&entry, hash).await } - pub fn transfer( + pub async fn reports_iter( &self, - new: ::subxt::sp_core::crypto::AccountId32, - index: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Transfer, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Reports<'a>>, + ::subxt::BasicError, > { - let call = Transfer { new, index }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + self.client.storage().iter(hash).await } - pub fn free( + pub async fn concurrent_reports_index( &self, - index: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Free, - DispatchError, - root_mod::Event, + _0: &[::core::primitive::u8; 16usize], + _1: &[::core::primitive::u8], + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec<::subxt::sp_core::H256>, + ::subxt::BasicError, > { - let call = Free { index }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = ConcurrentReportsIndex(_0, _1); + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn force_transfer( + pub async fn concurrent_reports_index_iter( &self, - new: ::subxt::sp_core::crypto::AccountId32, - index: ::core::primitive::u32, - freeze: ::core::primitive::bool, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ForceTransfer, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ConcurrentReportsIndex<'a>>, + ::subxt::BasicError, > { - let call = ForceTransfer { new, index, freeze }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + self.client.storage().iter(hash).await } - pub fn freeze( + pub async fn reports_by_kind_index( &self, - index: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Freeze, - DispatchError, - root_mod::Event, - > { - let call = Freeze { index }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + _0: &[::core::primitive::u8; 16usize], + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec<::core::primitive::u8>, + ::subxt::BasicError, + > { + let entry = ReportsByKindIndex(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn reports_by_kind_index_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ReportsByKindIndex<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await } } } - pub type Event = runtime_types::pallet_indices::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct IndexAssigned { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub index: ::core::primitive::u32, - } - impl ::subxt::Event for IndexAssigned { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexAssigned"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct IndexFreed { - pub index: ::core::primitive::u32, - } - impl ::subxt::Event for IndexFreed { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexFreed"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct IndexFrozen { - pub index: ::core::primitive::u32, - pub who: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Event for IndexFrozen { - const PALLET: &'static str = "Indices"; - const EVENT: &'static str = "IndexFrozen"; - } - } + } + pub mod historical { + use super::root_mod; + use super::runtime_types; pub mod storage { use super::runtime_types; - pub struct Accounts<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for Accounts<'_> { - const PALLET: &'static str = "Indices"; - const STORAGE: &'static str = "Accounts"; - type Value = ( - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ::core::primitive::bool, - ); + pub struct HistoricalSessions<'a>(pub &'a ::core::primitive::u32); + impl ::subxt::StorageEntry for HistoricalSessions<'_> { + const PALLET: &'static str = "Historical"; + const STORAGE: &'static str = "HistoricalSessions"; + type Value = (::subxt::sp_core::H256, ::core::primitive::u32); fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Blake2_128Concat, + ::subxt::StorageHasher::Twox64Concat, )]) } } + pub struct StoredRange; + impl ::subxt::StorageEntry for StoredRange { + const PALLET: &'static str = "Historical"; + const STORAGE: &'static str = "StoredRange"; + type Value = (::core::primitive::u32, ::core::primitive::u32); + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } pub struct StorageApi<'a, T: ::subxt::Config> { client: &'a ::subxt::Client, } @@ -2281,51 +2595,46 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn accounts( + pub async fn historical_sessions( &self, _0: &::core::primitive::u32, hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option<( - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ::core::primitive::bool, + ::subxt::sp_core::H256, + ::core::primitive::u32, )>, ::subxt::BasicError, > { - let entry = Accounts(_0); + let entry = HistoricalSessions(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn accounts_iter( + pub async fn historical_sessions_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Accounts<'a>>, + ::subxt::KeyIter<'a, T, HistoricalSessions<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn deposit( + pub async fn stored_range( &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 232u8, 118u8, 72u8, 23u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, + ::subxt::BasicError, + > { + let entry = StoredRange; + self.client.storage().fetch(&entry, hash).await } } } } - pub mod balances { + pub mod session { use super::root_mod; use super::runtime_types; pub mod calls { @@ -2333,86 +2642,19 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Transfer { - pub dest: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::Call for Transfer { - const PALLET: &'static str = "Balances"; - const FUNCTION: &'static str = "transfer"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetBalance { - pub who: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - pub new_free: ::core::primitive::u128, - #[codec(compact)] - pub new_reserved: ::core::primitive::u128, - } - impl ::subxt::Call for SetBalance { - const PALLET: &'static str = "Balances"; - const FUNCTION: &'static str = "set_balance"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceTransfer { - pub source: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - pub dest: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::Call for ForceTransfer { - const PALLET: &'static str = "Balances"; - const FUNCTION: &'static str = "force_transfer"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct TransferKeepAlive { - pub dest: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::Call for TransferKeepAlive { - const PALLET: &'static str = "Balances"; - const FUNCTION: &'static str = "transfer_keep_alive"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct TransferAll { - pub dest: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - pub keep_alive: ::core::primitive::bool, + pub struct SetKeys { + pub keys: runtime_types::rococo_runtime::SessionKeys, + pub proof: ::std::vec::Vec<::core::primitive::u8>, } - impl ::subxt::Call for TransferAll { - const PALLET: &'static str = "Balances"; - const FUNCTION: &'static str = "transfer_all"; + impl ::subxt::Call for SetKeys { + const PALLET: &'static str = "Session"; + const FUNCTION: &'static str = "set_keys"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceUnreserve { - pub who: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - pub amount: ::core::primitive::u128, - } - impl ::subxt::Call for ForceUnreserve { - const PALLET: &'static str = "Balances"; - const FUNCTION: &'static str = "force_unreserve"; + pub struct PurgeKeys; + impl ::subxt::Call for PurgeKeys { + const PALLET: &'static str = "Session"; + const FUNCTION: &'static str = "purge_keys"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -2429,289 +2671,128 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn transfer( - &self, - dest: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - value: ::core::primitive::u128, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Transfer, - DispatchError, - root_mod::Event, - > { - let call = Transfer { dest, value }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_balance( + pub fn set_keys( &self, - who: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - new_free: ::core::primitive::u128, - new_reserved: ::core::primitive::u128, + keys: runtime_types::rococo_runtime::SessionKeys, + proof: ::std::vec::Vec<::core::primitive::u8>, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SetBalance, + SetKeys, DispatchError, root_mod::Event, > { - let call = SetBalance { - who, - new_free, - new_reserved, - }; + let call = SetKeys { keys, proof }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_transfer( + pub fn purge_keys( &self, - source: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - dest: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - value: ::core::primitive::u128, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ForceTransfer, + PurgeKeys, DispatchError, root_mod::Event, > { - let call = ForceTransfer { - source, - dest, - value, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn transfer_keep_alive( - &self, - dest: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - value: ::core::primitive::u128, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - TransferKeepAlive, - DispatchError, - root_mod::Event, - > { - let call = TransferKeepAlive { dest, value }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn transfer_all( - &self, - dest: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - keep_alive: ::core::primitive::bool, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - TransferAll, - DispatchError, - root_mod::Event, - > { - let call = TransferAll { dest, keep_alive }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn force_unreserve( - &self, - who: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - amount: ::core::primitive::u128, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ForceUnreserve, - DispatchError, - root_mod::Event, - > { - let call = ForceUnreserve { who, amount }; + let call = PurgeKeys {}; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::pallet_balances::pallet::Event; + pub type Event = runtime_types::pallet_session::pallet::Event; pub mod events { use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Endowed { - pub account: ::subxt::sp_core::crypto::AccountId32, - pub free_balance: ::core::primitive::u128, - } - impl ::subxt::Event for Endowed { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Endowed"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct DustLost { - pub account: ::subxt::sp_core::crypto::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::Event for DustLost { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "DustLost"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Transfer { - pub from: ::subxt::sp_core::crypto::AccountId32, - pub to: ::subxt::sp_core::crypto::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::Event for Transfer { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Transfer"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct BalanceSet { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub free: ::core::primitive::u128, - pub reserved: ::core::primitive::u128, - } - impl ::subxt::Event for BalanceSet { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "BalanceSet"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Reserved { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::Event for Reserved { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Reserved"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Unreserved { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::Event for Unreserved { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Unreserved"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ReserveRepatriated { - pub from: ::subxt::sp_core::crypto::AccountId32, - pub to: ::subxt::sp_core::crypto::AccountId32, - pub amount: ::core::primitive::u128, - pub destination_status: - runtime_types::frame_support::traits::tokens::misc::BalanceStatus, - } - impl ::subxt::Event for ReserveRepatriated { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "ReserveRepatriated"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Deposit { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::Event for Deposit { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Deposit"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Withdraw { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::Event for Withdraw { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Withdraw"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Slashed { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub amount: ::core::primitive::u128, + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct NewSession { + pub session_index: ::core::primitive::u32, } - impl ::subxt::Event for Slashed { - const PALLET: &'static str = "Balances"; - const EVENT: &'static str = "Slashed"; + impl ::subxt::Event for NewSession { + const PALLET: &'static str = "Session"; + const EVENT: &'static str = "NewSession"; } } pub mod storage { use super::runtime_types; - pub struct TotalIssuance; - impl ::subxt::StorageEntry for TotalIssuance { - const PALLET: &'static str = "Balances"; - const STORAGE: &'static str = "TotalIssuance"; - type Value = ::core::primitive::u128; + pub struct Validators; + impl ::subxt::StorageEntry for Validators { + const PALLET: &'static str = "Session"; + const STORAGE: &'static str = "Validators"; + type Value = ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct Account<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Account<'_> { - const PALLET: &'static str = "Balances"; - const STORAGE: &'static str = "Account"; - type Value = - runtime_types::pallet_balances::AccountData<::core::primitive::u128>; + pub struct CurrentIndex; + impl ::subxt::StorageEntry for CurrentIndex { + const PALLET: &'static str = "Session"; + const STORAGE: &'static str = "CurrentIndex"; + type Value = ::core::primitive::u32; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Blake2_128Concat, - )]) + ::subxt::StorageEntryKey::Plain } } - pub struct Locks<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Locks<'_> { - const PALLET: &'static str = "Balances"; - const STORAGE: &'static str = "Locks"; - type Value = runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > ; + pub struct QueuedChanged; + impl ::subxt::StorageEntry for QueuedChanged { + const PALLET: &'static str = "Session"; + const STORAGE: &'static str = "QueuedChanged"; + type Value = ::core::primitive::bool; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Blake2_128Concat, - )]) + ::subxt::StorageEntryKey::Plain } } - pub struct Reserves<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Reserves<'_> { - const PALLET: &'static str = "Balances"; - const STORAGE: &'static str = "Reserves"; - type Value = - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - runtime_types::pallet_balances::ReserveData< - [::core::primitive::u8; 8usize], - ::core::primitive::u128, - >, - >; + pub struct QueuedKeys; + impl ::subxt::StorageEntry for QueuedKeys { + const PALLET: &'static str = "Session"; + const STORAGE: &'static str = "QueuedKeys"; + type Value = ::std::vec::Vec<( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::rococo_runtime::SessionKeys, + )>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct DisabledValidators; + impl ::subxt::StorageEntry for DisabledValidators { + const PALLET: &'static str = "Session"; + const STORAGE: &'static str = "DisabledValidators"; + type Value = ::std::vec::Vec<::core::primitive::u32>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct NextKeys<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for NextKeys<'_> { + const PALLET: &'static str = "Session"; + const STORAGE: &'static str = "NextKeys"; + type Value = runtime_types::rococo_runtime::SessionKeys; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Blake2_128Concat, + ::subxt::StorageHasher::Twox64Concat, )]) } } - pub struct StorageVersion; - impl ::subxt::StorageEntry for StorageVersion { - const PALLET: &'static str = "Balances"; - const STORAGE: &'static str = "StorageVersion"; - type Value = runtime_types::pallet_balances::Releases; + pub struct KeyOwner<'a>( + pub &'a runtime_types::sp_core::crypto::KeyTypeId, + pub &'a [::core::primitive::u8], + ); + impl ::subxt::StorageEntry for KeyOwner<'_> { + const PALLET: &'static str = "Session"; + const STORAGE: &'static str = "KeyOwner"; + type Value = ::subxt::sp_core::crypto::AccountId32; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &(&self.0, &self.1), + ::subxt::StorageHasher::Twox64Concat, + )]) } } pub struct StorageApi<'a, T: ::subxt::Config> { @@ -2721,211 +2802,100 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn total_issuance( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - let entry = TotalIssuance; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn account( + pub async fn validators( &self, - _0: &::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::pallet_balances::AccountData<::core::primitive::u128>, + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - let entry = Account(_0); + let entry = Validators; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn account_iter( + pub async fn current_index( &self, hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Account<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } pub async fn locks (& self , _0 : & :: subxt :: sp_core :: crypto :: AccountId32 , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: BalanceLock < :: core :: primitive :: u128 > > , :: subxt :: BasicError >{ - let entry = Locks(_0); + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = CurrentIndex; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn locks_iter( + pub async fn queued_changed( &self, hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Locks<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await + ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> + { + let entry = QueuedChanged; + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn reserves( + pub async fn queued_keys( &self, - _0: &::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - runtime_types::pallet_balances::ReserveData< - [::core::primitive::u8; 8usize], - ::core::primitive::u128, - >, - >, + ::std::vec::Vec<( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::rococo_runtime::SessionKeys, + )>, ::subxt::BasicError, > { - let entry = Reserves(_0); + let entry = QueuedKeys; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn reserves_iter( + pub async fn disabled_validators( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Reserves<'a>>, + ::std::vec::Vec<::core::primitive::u32>, ::subxt::BasicError, > { - self.client.storage().iter(hash).await + let entry = DisabledValidators; + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn storage_version( + pub async fn next_keys( &self, + _0: &::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::pallet_balances::Releases, + ::core::option::Option, ::subxt::BasicError, > { - let entry = StorageVersion; - self.client.storage().fetch_or_default(&entry, hash).await - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn existential_deposit( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn max_locks( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[50u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn max_reserves( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[50u8, 0u8, 0u8, 0u8][..], - )?) - } - } - } - } - pub mod transaction_payment { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub struct NextFeeMultiplier; - impl ::subxt::StorageEntry for NextFeeMultiplier { - const PALLET: &'static str = "TransactionPayment"; - const STORAGE: &'static str = "NextFeeMultiplier"; - type Value = runtime_types::sp_arithmetic::fixed_point::FixedU128; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct StorageVersion; - impl ::subxt::StorageEntry for StorageVersion { - const PALLET: &'static str = "TransactionPayment"; - const STORAGE: &'static str = "StorageVersion"; - type Value = runtime_types::pallet_transaction_payment::Releases; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } + let entry = NextKeys(_0); + self.client.storage().fetch(&entry, hash).await } - pub async fn next_fee_multiplier( + pub async fn next_keys_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::sp_arithmetic::fixed_point::FixedU128, + ::subxt::KeyIter<'a, T, NextKeys<'a>>, ::subxt::BasicError, > { - let entry = NextFeeMultiplier; - self.client.storage().fetch_or_default(&entry, hash).await + self.client.storage().iter(hash).await } - pub async fn storage_version( + pub async fn key_owner( &self, + _0: &runtime_types::sp_core::crypto::KeyTypeId, + _1: &[::core::primitive::u8], hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::pallet_transaction_payment::Releases, + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - let entry = StorageVersion; - self.client.storage().fetch_or_default(&entry, hash).await - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn transaction_byte_fee( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 64u8, 66u8, 15u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn operational_fee_multiplier( - &self, - ) -> ::core::result::Result<::core::primitive::u8, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode(&mut &[5u8][..])?) + let entry = KeyOwner(_0, _1); + self.client.storage().fetch(&entry, hash).await } - pub fn weight_to_fee( + pub async fn key_owner_iter( &self, + hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec< - runtime_types::frame_support::weights::WeightToFeeCoefficient< - ::core::primitive::u128, - >, - >, + ::subxt::KeyIter<'a, T, KeyOwner<'a>>, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 4u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 180u8, 196u8, 4u8, 0u8, 1u8, - ][..], - )?) + self.client.storage().iter(hash).await } } } } - pub mod authorship { + pub mod grandpa { use super::root_mod; use super::runtime_types; pub mod calls { @@ -2933,17 +2903,41 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetUncles { - pub new_uncles: ::std::vec::Vec< - runtime_types::sp_runtime::generic::header::Header< + pub struct ReportEquivocation { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_finality_grandpa::EquivocationProof< + ::subxt::sp_core::H256, ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, >, >, + pub key_owner_proof: runtime_types::sp_session::MembershipProof, } - impl ::subxt::Call for SetUncles { - const PALLET: &'static str = "Authorship"; - const FUNCTION: &'static str = "set_uncles"; + impl ::subxt::Call for ReportEquivocation { + const PALLET: &'static str = "Grandpa"; + const FUNCTION: &'static str = "report_equivocation"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ReportEquivocationUnsigned { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_finality_grandpa::EquivocationProof< + ::subxt::sp_core::H256, + ::core::primitive::u32, + >, + >, + pub key_owner_proof: runtime_types::sp_session::MembershipProof, + } + impl ::subxt::Call for ReportEquivocationUnsigned { + const PALLET: &'static str = "Grandpa"; + const FUNCTION: &'static str = "report_equivocation_unsigned"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct NoteStalled { + pub delay: ::core::primitive::u32, + pub best_finalized_block_number: ::core::primitive::u32, + } + impl ::subxt::Call for NoteStalled { + const PALLET: &'static str = "Grandpa"; + const FUNCTION: &'static str = "note_stalled"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -2960,62 +2954,151 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn set_uncles( + pub fn report_equivocation( &self, - new_uncles: ::std::vec::Vec< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, + equivocation_proof : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: sp_core :: H256 , :: core :: primitive :: u32 >, + key_owner_proof: runtime_types::sp_session::MembershipProof, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SetUncles, + ReportEquivocation, DispatchError, root_mod::Event, > { - let call = SetUncles { new_uncles }; + let call = ReportEquivocation { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn report_equivocation_unsigned( + &self, + equivocation_proof : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: sp_core :: H256 , :: core :: primitive :: u32 >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ReportEquivocationUnsigned, + DispatchError, + root_mod::Event, + > { + let call = ReportEquivocationUnsigned { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn note_stalled( + &self, + delay: ::core::primitive::u32, + best_finalized_block_number: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + NoteStalled, + DispatchError, + root_mod::Event, + > { + let call = NoteStalled { + delay, + best_finalized_block_number, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub mod storage { + pub type Event = runtime_types::pallet_grandpa::pallet::Event; + pub mod events { use super::runtime_types; - pub struct Uncles; - impl ::subxt::StorageEntry for Uncles { - const PALLET: &'static str = "Authorship"; - const STORAGE: &'static str = "Uncles"; - type Value = ::std::vec::Vec< - runtime_types::pallet_authorship::UncleEntryItem< - ::core::primitive::u32, - ::subxt::sp_core::H256, - ::subxt::sp_core::crypto::AccountId32, - >, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Author; - impl ::subxt::StorageEntry for Author { - const PALLET: &'static str = "Authorship"; - const STORAGE: &'static str = "Author"; - type Value = ::subxt::sp_core::crypto::AccountId32; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct NewAuthorities { + pub authority_set: ::std::vec::Vec<( + runtime_types::sp_finality_grandpa::app::Public, + ::core::primitive::u64, + )>, + } + impl ::subxt::Event for NewAuthorities { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "NewAuthorities"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + 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)] + pub struct Resumed; + impl ::subxt::Event for Resumed { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "Resumed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct State; + impl ::subxt::StorageEntry for State { + const PALLET: &'static str = "Grandpa"; + const STORAGE: &'static str = "State"; + type Value = + runtime_types::pallet_grandpa::StoredState<::core::primitive::u32>; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct DidSetUncles; - impl ::subxt::StorageEntry for DidSetUncles { - const PALLET: &'static str = "Authorship"; - const STORAGE: &'static str = "DidSetUncles"; - type Value = ::core::primitive::bool; + pub struct PendingChange; + impl ::subxt::StorageEntry for PendingChange { + const PALLET: &'static str = "Grandpa"; + const STORAGE: &'static str = "PendingChange"; + type Value = runtime_types::pallet_grandpa::StoredPendingChange< + ::core::primitive::u32, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct NextForced; + impl ::subxt::StorageEntry for NextForced { + const PALLET: &'static str = "Grandpa"; + const STORAGE: &'static str = "NextForced"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Stalled; + impl ::subxt::StorageEntry for Stalled { + const PALLET: &'static str = "Grandpa"; + const STORAGE: &'static str = "Stalled"; + type Value = (::core::primitive::u32, ::core::primitive::u32); + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct CurrentSetId; + impl ::subxt::StorageEntry for CurrentSetId { + const PALLET: &'static str = "Grandpa"; + const STORAGE: &'static str = "CurrentSetId"; + type Value = ::core::primitive::u64; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } + pub struct SetIdSession<'a>(pub &'a ::core::primitive::u64); + impl ::subxt::StorageEntry for SetIdSession<'_> { + const PALLET: &'static str = "Grandpa"; + const STORAGE: &'static str = "SetIdSession"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } pub struct StorageApi<'a, T: ::subxt::Config> { client: &'a ::subxt::Client, } @@ -3023,58 +3106,105 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn uncles( + pub async fn state( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec< - runtime_types::pallet_authorship::UncleEntryItem< + runtime_types::pallet_grandpa::StoredState<::core::primitive::u32>, + ::subxt::BasicError, + > { + let entry = State; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn pending_change( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::pallet_grandpa::StoredPendingChange< ::core::primitive::u32, - ::subxt::sp_core::H256, - ::subxt::sp_core::crypto::AccountId32, >, >, ::subxt::BasicError, > { - let entry = Uncles; - self.client.storage().fetch_or_default(&entry, hash).await + let entry = PendingChange; + self.client.storage().fetch(&entry, hash).await } - pub async fn author( + pub async fn next_forced( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let entry = Author; + let entry = NextForced; self.client.storage().fetch(&entry, hash).await } - pub async fn did_set_uncles( + pub async fn stalled( &self, hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> + ) -> ::core::result::Result< + ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, + ::subxt::BasicError, + > { + let entry = Stalled; + self.client.storage().fetch(&entry, hash).await + } + pub async fn current_set_id( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - let entry = DidSetUncles; + let entry = CurrentSetId; self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn set_id_session( + &self, + _0: &::core::primitive::u64, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::core::primitive::u32>, + ::subxt::BasicError, + > { + let entry = SetIdSession(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn set_id_session_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, SetIdSession<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } } } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn uncle_generations( + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn max_authorities( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Grandpa")?; + let constant = pallet.constant("MaxAuthorities")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } - pub mod staking { + pub mod im_online { use super::root_mod; use super::runtime_types; pub mod calls { @@ -3082,8603 +3212,250 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Bond { - pub controller: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - pub value: ::core::primitive::u128, - pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::sp_core::crypto::AccountId32, - >, - } - impl ::subxt::Call for Bond { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "bond"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct BondExtra { - #[codec(compact)] - pub max_additional: ::core::primitive::u128, - } - impl ::subxt::Call for BondExtra { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "bond_extra"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Unbond { - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::Call for Unbond { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "unbond"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct WithdrawUnbonded { - pub num_slashing_spans: ::core::primitive::u32, + pub struct Heartbeat { + pub heartbeat: + runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>, + pub signature: + runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, } - impl ::subxt::Call for WithdrawUnbonded { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "withdraw_unbonded"; + impl ::subxt::Call for Heartbeat { + const PALLET: &'static str = "ImOnline"; + const FUNCTION: &'static str = "heartbeat"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Validate { - pub prefs: runtime_types::pallet_staking::ValidatorPrefs, + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, } - impl ::subxt::Call for Validate { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "validate"; + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } + } + pub fn heartbeat( + &self, + heartbeat: runtime_types::pallet_im_online::Heartbeat< + ::core::primitive::u32, + >, + signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Heartbeat, + DispatchError, + root_mod::Event, + > { + let call = Heartbeat { + heartbeat, + signature, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } } + } + 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)] - pub struct Nominate { - pub targets: ::std::vec::Vec< - ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - >, + pub struct HeartbeatReceived { + pub authority_id: + runtime_types::pallet_im_online::sr25519::app_sr25519::Public, } - impl ::subxt::Call for Nominate { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "nominate"; + impl ::subxt::Event for HeartbeatReceived { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "HeartbeatReceived"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Chill; - impl ::subxt::Call for Chill { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "chill"; + 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)] - pub struct SetPayee { - pub payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::sp_core::crypto::AccountId32, - >, + pub struct SomeOffline { + pub offline: ::std::vec::Vec<(::subxt::sp_core::crypto::AccountId32, ())>, } - impl ::subxt::Call for SetPayee { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "set_payee"; + impl ::subxt::Event for SomeOffline { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "SomeOffline"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetController { - pub controller: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - } - impl ::subxt::Call for SetController { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "set_controller"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetValidatorCount { - #[codec(compact)] - pub new: ::core::primitive::u32, - } - impl ::subxt::Call for SetValidatorCount { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "set_validator_count"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct IncreaseValidatorCount { - #[codec(compact)] - pub additional: ::core::primitive::u32, - } - impl ::subxt::Call for IncreaseValidatorCount { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "increase_validator_count"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ScaleValidatorCount { - pub factor: runtime_types::sp_arithmetic::per_things::Percent, - } - impl ::subxt::Call for ScaleValidatorCount { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "scale_validator_count"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] - 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)] - pub struct SetInvulnerables { - pub invulnerables: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - } - impl ::subxt::Call for SetInvulnerables { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "set_invulnerables"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceUnstake { - pub stash: ::subxt::sp_core::crypto::AccountId32, - pub num_slashing_spans: ::core::primitive::u32, - } - impl ::subxt::Call for ForceUnstake { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "force_unstake"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] - pub struct CancelDeferredSlash { - pub era: ::core::primitive::u32, - pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, - } - impl ::subxt::Call for CancelDeferredSlash { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "cancel_deferred_slash"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PayoutStakers { - pub validator_stash: ::subxt::sp_core::crypto::AccountId32, - pub era: ::core::primitive::u32, - } - impl ::subxt::Call for PayoutStakers { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "payout_stakers"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Rebond { - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::Call for Rebond { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "rebond"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetHistoryDepth { - #[codec(compact)] - pub new_history_depth: ::core::primitive::u32, - #[codec(compact)] - pub era_items_deleted: ::core::primitive::u32, - } - impl ::subxt::Call for SetHistoryDepth { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "set_history_depth"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ReapStash { - pub stash: ::subxt::sp_core::crypto::AccountId32, - pub num_slashing_spans: ::core::primitive::u32, - } - impl ::subxt::Call for ReapStash { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "reap_stash"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Kick { - pub who: ::std::vec::Vec< - ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - >, - } - impl ::subxt::Call for Kick { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "kick"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetStakingConfigs { - pub min_nominator_bond: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >, - pub min_validator_bond: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >, - pub max_nominator_count: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, - >, - pub max_validator_count: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, - >, - pub chill_threshold: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Percent, - >, - pub min_commission: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Perbill, - >, - } - impl ::subxt::Call for SetStakingConfigs { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "set_staking_configs"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ChillOther { - pub controller: ::subxt::sp_core::crypto::AccountId32, + } + pub mod storage { + use super::runtime_types; + pub struct HeartbeatAfter; + impl ::subxt::StorageEntry for HeartbeatAfter { + const PALLET: &'static str = "ImOnline"; + const STORAGE: &'static str = "HeartbeatAfter"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - impl ::subxt::Call for ChillOther { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "chill_other"; + pub struct Keys; + impl ::subxt::StorageEntry for Keys { + const PALLET: &'static str = "ImOnline"; + const STORAGE: &'static str = "Keys"; + type Value = runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > ; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceApplyMinCommission { - pub validator_stash: ::subxt::sp_core::crypto::AccountId32, + pub struct ReceivedHeartbeats<'a>( + pub &'a ::core::primitive::u32, + pub &'a ::core::primitive::u32, + ); + impl ::subxt::StorageEntry for ReceivedHeartbeats<'_> { + const PALLET: &'static str = "ImOnline"; + const STORAGE: &'static str = "ReceivedHeartbeats"; + type Value = runtime_types::frame_support::traits::misc::WrapperOpaque< + runtime_types::pallet_im_online::BoundedOpaqueNetworkState, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Twox64Concat, + ), + ]) + } } - impl ::subxt::Call for ForceApplyMinCommission { - const PALLET: &'static str = "Staking"; - const FUNCTION: &'static str = "force_apply_min_commission"; + pub struct AuthoredBlocks<'a>( + pub &'a ::core::primitive::u32, + pub &'a ::subxt::sp_core::crypto::AccountId32, + ); + impl ::subxt::StorageEntry for AuthoredBlocks<'_> { + const PALLET: &'static str = "ImOnline"; + const STORAGE: &'static str = "AuthoredBlocks"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Twox64Concat, + ), + ]) + } } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { + pub struct StorageApi<'a, T: ::subxt::Config> { client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } + Self { client } } - pub fn bond( + pub async fn heartbeat_after( &self, - controller: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - value: ::core::primitive::u128, - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::sp_core::crypto::AccountId32, - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Bond, - DispatchError, - root_mod::Event, - > { - let call = Bond { - controller, - value, - payee, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = HeartbeatAfter; + self.client.storage().fetch_or_default(&entry, hash).await + } pub async fn keys (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > , :: subxt :: BasicError >{ + let entry = Keys; + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn bond_extra( + pub async fn received_heartbeats( &self, - max_additional: ::core::primitive::u128, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - BondExtra, - DispatchError, - root_mod::Event, + _0: &::core::primitive::u32, + _1: &::core::primitive::u32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::frame_support::traits::misc::WrapperOpaque< + runtime_types::pallet_im_online::BoundedOpaqueNetworkState, + >, + >, + ::subxt::BasicError, > { - let call = BondExtra { max_additional }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = ReceivedHeartbeats(_0, _1); + self.client.storage().fetch(&entry, hash).await } - pub fn unbond( + pub async fn received_heartbeats_iter( &self, - value: ::core::primitive::u128, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Unbond, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ReceivedHeartbeats<'a>>, + ::subxt::BasicError, > { - let call = Unbond { value }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + self.client.storage().iter(hash).await } - pub fn withdraw_unbonded( + pub async fn authored_blocks( &self, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - WithdrawUnbonded, - DispatchError, - root_mod::Event, - > { - let call = WithdrawUnbonded { num_slashing_spans }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + _0: &::core::primitive::u32, + _1: &::subxt::sp_core::crypto::AccountId32, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = AuthoredBlocks(_0, _1); + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn validate( + pub async fn authored_blocks_iter( &self, - prefs: runtime_types::pallet_staking::ValidatorPrefs, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Validate, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, AuthoredBlocks<'a>>, + ::subxt::BasicError, > { - let call = Validate { prefs }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + self.client.storage().iter(hash).await } - pub fn nominate( - &self, - targets: ::std::vec::Vec< - ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Nominate, - DispatchError, - root_mod::Event, - > { - let call = Nominate { targets }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } } - pub fn chill( + pub fn unsigned_priority( &self, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Chill, - DispatchError, - root_mod::Event, - > { - let call = Chill {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_payee( - &self, - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::sp_core::crypto::AccountId32, - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetPayee, - DispatchError, - root_mod::Event, - > { - let call = SetPayee { payee }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_controller( - &self, - controller: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetController, - DispatchError, - root_mod::Event, - > { - let call = SetController { controller }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_validator_count( - &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetValidatorCount, - DispatchError, - root_mod::Event, - > { - let call = SetValidatorCount { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn increase_validator_count( - &self, - additional: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - IncreaseValidatorCount, - DispatchError, - root_mod::Event, - > { - let call = IncreaseValidatorCount { additional }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn scale_validator_count( - &self, - factor: runtime_types::sp_arithmetic::per_things::Percent, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ScaleValidatorCount, - DispatchError, - root_mod::Event, - > { - let call = ScaleValidatorCount { factor }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn force_no_eras( - &self, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ForceNoEras, - DispatchError, - root_mod::Event, - > { - let call = ForceNoEras {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn force_new_era( - &self, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ForceNewEra, - DispatchError, - root_mod::Event, - > { - let call = ForceNewEra {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_invulnerables( - &self, - invulnerables: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetInvulnerables, - DispatchError, - root_mod::Event, - > { - let call = SetInvulnerables { invulnerables }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn force_unstake( - &self, - stash: ::subxt::sp_core::crypto::AccountId32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ForceUnstake, - DispatchError, - root_mod::Event, - > { - let call = ForceUnstake { - stash, - num_slashing_spans, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn force_new_era_always( - &self, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ForceNewEraAlways, - DispatchError, - root_mod::Event, - > { - let call = ForceNewEraAlways {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn cancel_deferred_slash( - &self, - era: ::core::primitive::u32, - slash_indices: ::std::vec::Vec<::core::primitive::u32>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - CancelDeferredSlash, - DispatchError, - root_mod::Event, - > { - let call = CancelDeferredSlash { era, slash_indices }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn payout_stakers( - &self, - validator_stash: ::subxt::sp_core::crypto::AccountId32, - era: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - PayoutStakers, - DispatchError, - root_mod::Event, - > { - let call = PayoutStakers { - validator_stash, - era, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn rebond( - &self, - value: ::core::primitive::u128, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Rebond, - DispatchError, - root_mod::Event, - > { - let call = Rebond { value }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_history_depth( - &self, - new_history_depth: ::core::primitive::u32, - era_items_deleted: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetHistoryDepth, - DispatchError, - root_mod::Event, - > { - let call = SetHistoryDepth { - new_history_depth, - era_items_deleted, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn reap_stash( - &self, - stash: ::subxt::sp_core::crypto::AccountId32, - num_slashing_spans: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ReapStash, - DispatchError, - root_mod::Event, - > { - let call = ReapStash { - stash, - num_slashing_spans, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn kick( - &self, - who: ::std::vec::Vec< - ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Kick, - DispatchError, - root_mod::Event, - > { - let call = Kick { who }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_staking_configs( - &self, - min_nominator_bond : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < :: core :: primitive :: u128 >, - min_validator_bond : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < :: core :: primitive :: u128 >, - max_nominator_count : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < :: core :: primitive :: u32 >, - max_validator_count : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < :: core :: primitive :: u32 >, - chill_threshold : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < runtime_types :: sp_arithmetic :: per_things :: Percent >, - min_commission : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < runtime_types :: sp_arithmetic :: per_things :: Perbill >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetStakingConfigs, - DispatchError, - root_mod::Event, - > { - let call = SetStakingConfigs { - min_nominator_bond, - min_validator_bond, - max_nominator_count, - max_validator_count, - chill_threshold, - min_commission, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn chill_other( - &self, - controller: ::subxt::sp_core::crypto::AccountId32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ChillOther, - DispatchError, - root_mod::Event, - > { - let call = ChillOther { controller }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn force_apply_min_commission( - &self, - validator_stash: ::subxt::sp_core::crypto::AccountId32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ForceApplyMinCommission, - DispatchError, - root_mod::Event, - > { - let call = ForceApplyMinCommission { validator_stash }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - 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)] - pub struct EraPaid( - pub ::core::primitive::u32, - pub ::core::primitive::u128, - pub ::core::primitive::u128, - ); - impl ::subxt::Event for EraPaid { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "EraPaid"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Rewarded( - pub ::subxt::sp_core::crypto::AccountId32, - pub ::core::primitive::u128, - ); - impl ::subxt::Event for Rewarded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Rewarded"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Slashed( - pub ::subxt::sp_core::crypto::AccountId32, - pub ::core::primitive::u128, - ); - impl ::subxt::Event for Slashed { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Slashed"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct OldSlashingReportDiscarded(pub ::core::primitive::u32); - impl ::subxt::Event for OldSlashingReportDiscarded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "OldSlashingReportDiscarded"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - 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)] - pub struct Bonded( - pub ::subxt::sp_core::crypto::AccountId32, - pub ::core::primitive::u128, - ); - impl ::subxt::Event for Bonded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Bonded"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Unbonded( - pub ::subxt::sp_core::crypto::AccountId32, - pub ::core::primitive::u128, - ); - impl ::subxt::Event for Unbonded { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Unbonded"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Withdrawn( - pub ::subxt::sp_core::crypto::AccountId32, - pub ::core::primitive::u128, - ); - impl ::subxt::Event for Withdrawn { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Withdrawn"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Kicked( - pub ::subxt::sp_core::crypto::AccountId32, - pub ::subxt::sp_core::crypto::AccountId32, - ); - impl ::subxt::Event for Kicked { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Kicked"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - 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)] - pub struct Chilled(pub ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::Event for Chilled { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "Chilled"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PayoutStarted( - pub ::core::primitive::u32, - pub ::subxt::sp_core::crypto::AccountId32, - ); - impl ::subxt::Event for PayoutStarted { - const PALLET: &'static str = "Staking"; - const EVENT: &'static str = "PayoutStarted"; - } - } - pub mod storage { - use super::runtime_types; - pub struct HistoryDepth; - impl ::subxt::StorageEntry for HistoryDepth { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "HistoryDepth"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct ValidatorCount; - impl ::subxt::StorageEntry for ValidatorCount { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "ValidatorCount"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct MinimumValidatorCount; - impl ::subxt::StorageEntry for MinimumValidatorCount { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "MinimumValidatorCount"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Invulnerables; - impl ::subxt::StorageEntry for Invulnerables { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "Invulnerables"; - type Value = ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Bonded<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Bonded<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "Bonded"; - type Value = ::subxt::sp_core::crypto::AccountId32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct MinNominatorBond; - impl ::subxt::StorageEntry for MinNominatorBond { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "MinNominatorBond"; - type Value = ::core::primitive::u128; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct MinValidatorBond; - impl ::subxt::StorageEntry for MinValidatorBond { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "MinValidatorBond"; - type Value = ::core::primitive::u128; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct MinCommission; - impl ::subxt::StorageEntry for MinCommission { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "MinCommission"; - type Value = runtime_types::sp_arithmetic::per_things::Perbill; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Ledger<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Ledger<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "Ledger"; - type Value = runtime_types::pallet_staking::StakingLedger< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Blake2_128Concat, - )]) - } - } - pub struct Payee<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Payee<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "Payee"; - type Value = runtime_types::pallet_staking::RewardDestination< - ::subxt::sp_core::crypto::AccountId32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct Validators<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Validators<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "Validators"; - type Value = runtime_types::pallet_staking::ValidatorPrefs; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct CounterForValidators; - impl ::subxt::StorageEntry for CounterForValidators { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "CounterForValidators"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct MaxValidatorsCount; - impl ::subxt::StorageEntry for MaxValidatorsCount { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "MaxValidatorsCount"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Nominators<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Nominators<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "Nominators"; - type Value = runtime_types::pallet_staking::Nominations; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct CounterForNominators; - impl ::subxt::StorageEntry for CounterForNominators { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "CounterForNominators"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct MaxNominatorsCount; - impl ::subxt::StorageEntry for MaxNominatorsCount { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "MaxNominatorsCount"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct CurrentEra; - impl ::subxt::StorageEntry for CurrentEra { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "CurrentEra"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct ActiveEra; - impl ::subxt::StorageEntry for ActiveEra { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "ActiveEra"; - type Value = runtime_types::pallet_staking::ActiveEraInfo; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct ErasStartSessionIndex<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for ErasStartSessionIndex<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "ErasStartSessionIndex"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct ErasStakers<'a>( - pub &'a ::core::primitive::u32, - pub &'a ::subxt::sp_core::crypto::AccountId32, - ); - impl ::subxt::StorageEntry for ErasStakers<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "ErasStakers"; - type Value = runtime_types::pallet_staking::Exposure< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Twox64Concat, - ), - ]) - } - } - pub struct ErasStakersClipped<'a>( - pub &'a ::core::primitive::u32, - pub &'a ::subxt::sp_core::crypto::AccountId32, - ); - impl ::subxt::StorageEntry for ErasStakersClipped<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "ErasStakersClipped"; - type Value = runtime_types::pallet_staking::Exposure< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Twox64Concat, - ), - ]) - } - } - pub struct ErasValidatorPrefs<'a>( - pub &'a ::core::primitive::u32, - pub &'a ::subxt::sp_core::crypto::AccountId32, - ); - impl ::subxt::StorageEntry for ErasValidatorPrefs<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "ErasValidatorPrefs"; - type Value = runtime_types::pallet_staking::ValidatorPrefs; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Twox64Concat, - ), - ]) - } - } - pub struct ErasValidatorReward<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for ErasValidatorReward<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "ErasValidatorReward"; - type Value = ::core::primitive::u128; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct ErasRewardPoints<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for ErasRewardPoints<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "ErasRewardPoints"; - type Value = runtime_types::pallet_staking::EraRewardPoints< - ::subxt::sp_core::crypto::AccountId32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct ErasTotalStake<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for ErasTotalStake<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "ErasTotalStake"; - type Value = ::core::primitive::u128; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct ForceEra; - impl ::subxt::StorageEntry for ForceEra { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "ForceEra"; - type Value = runtime_types::pallet_staking::Forcing; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct SlashRewardFraction; - impl ::subxt::StorageEntry for SlashRewardFraction { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "SlashRewardFraction"; - type Value = runtime_types::sp_arithmetic::per_things::Perbill; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct CanceledSlashPayout; - impl ::subxt::StorageEntry for CanceledSlashPayout { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "CanceledSlashPayout"; - type Value = ::core::primitive::u128; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct UnappliedSlashes<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for UnappliedSlashes<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "UnappliedSlashes"; - type Value = ::std::vec::Vec< - runtime_types::pallet_staking::UnappliedSlash< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct BondedEras; - impl ::subxt::StorageEntry for BondedEras { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "BondedEras"; - type Value = - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct ValidatorSlashInEra<'a>( - pub &'a ::core::primitive::u32, - pub &'a ::subxt::sp_core::crypto::AccountId32, - ); - impl ::subxt::StorageEntry for ValidatorSlashInEra<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "ValidatorSlashInEra"; - type Value = ( - runtime_types::sp_arithmetic::per_things::Perbill, - ::core::primitive::u128, - ); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Twox64Concat, - ), - ]) - } - } - pub struct NominatorSlashInEra<'a>( - pub &'a ::core::primitive::u32, - pub &'a ::subxt::sp_core::crypto::AccountId32, - ); - impl ::subxt::StorageEntry for NominatorSlashInEra<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "NominatorSlashInEra"; - type Value = ::core::primitive::u128; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Twox64Concat, - ), - ]) - } - } - pub struct SlashingSpans<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for SlashingSpans<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "SlashingSpans"; - type Value = runtime_types::pallet_staking::slashing::SlashingSpans; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct SpanSlash<'a>( - pub &'a ::subxt::sp_core::crypto::AccountId32, - pub &'a ::core::primitive::u32, - ); - impl ::subxt::StorageEntry for SpanSlash<'_> { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "SpanSlash"; - type Value = runtime_types::pallet_staking::slashing::SpanRecord< - ::core::primitive::u128, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &(&self.0, &self.1), - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct EarliestUnappliedSlash; - impl ::subxt::StorageEntry for EarliestUnappliedSlash { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "EarliestUnappliedSlash"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct CurrentPlannedSession; - impl ::subxt::StorageEntry for CurrentPlannedSession { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "CurrentPlannedSession"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct OffendingValidators; - impl ::subxt::StorageEntry for OffendingValidators { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "OffendingValidators"; - type Value = - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::bool)>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct StorageVersion; - impl ::subxt::StorageEntry for StorageVersion { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "StorageVersion"; - type Value = runtime_types::pallet_staking::Releases; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct ChillThreshold; - impl ::subxt::StorageEntry for ChillThreshold { - const PALLET: &'static str = "Staking"; - const STORAGE: &'static str = "ChillThreshold"; - type Value = runtime_types::sp_arithmetic::per_things::Percent; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn history_depth( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = HistoryDepth; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn validator_count( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = ValidatorCount; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn minimum_validator_count( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = MinimumValidatorCount; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn invulnerables( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - ::subxt::BasicError, - > { - let entry = Invulnerables; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn bonded( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, - ::subxt::BasicError, - > { - let entry = Bonded(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn bonded_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Bonded<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn min_nominator_bond( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - let entry = MinNominatorBond; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn min_validator_bond( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - let entry = MinValidatorBond; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn min_commission( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::BasicError, - > { - let entry = MinCommission; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn ledger( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_staking::StakingLedger< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, - >, - ::subxt::BasicError, - > { - let entry = Ledger(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn ledger_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Ledger<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn payee( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::pallet_staking::RewardDestination< - ::subxt::sp_core::crypto::AccountId32, - >, - ::subxt::BasicError, - > { - let entry = Payee(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn payee_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Payee<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn validators( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::pallet_staking::ValidatorPrefs, - ::subxt::BasicError, - > { - let entry = Validators(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn validators_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Validators<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn counter_for_validators( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = CounterForValidators; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn max_validators_count( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = MaxValidatorsCount; - self.client.storage().fetch(&entry, hash).await - } - pub async fn nominators( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option, - ::subxt::BasicError, - > { - let entry = Nominators(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn nominators_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Nominators<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn counter_for_nominators( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = CounterForNominators; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn max_nominators_count( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = MaxNominatorsCount; - self.client.storage().fetch(&entry, hash).await - } - pub async fn current_era( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = CurrentEra; - self.client.storage().fetch(&entry, hash).await - } - pub async fn active_era( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option, - ::subxt::BasicError, - > { - let entry = ActiveEra; - self.client.storage().fetch(&entry, hash).await - } - pub async fn eras_start_session_index( - &self, - _0: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = ErasStartSessionIndex(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn eras_start_session_index_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ErasStartSessionIndex<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn eras_stakers( - &self, - _0: &::core::primitive::u32, - _1: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::pallet_staking::Exposure< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, - ::subxt::BasicError, - > { - let entry = ErasStakers(_0, _1); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn eras_stakers_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ErasStakers<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn eras_stakers_clipped( - &self, - _0: &::core::primitive::u32, - _1: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::pallet_staking::Exposure< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, - ::subxt::BasicError, - > { - let entry = ErasStakersClipped(_0, _1); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn eras_stakers_clipped_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ErasStakersClipped<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn eras_validator_prefs( - &self, - _0: &::core::primitive::u32, - _1: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::pallet_staking::ValidatorPrefs, - ::subxt::BasicError, - > { - let entry = ErasValidatorPrefs(_0, _1); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn eras_validator_prefs_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ErasValidatorPrefs<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn eras_validator_reward( - &self, - _0: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u128>, - ::subxt::BasicError, - > { - let entry = ErasValidatorReward(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn eras_validator_reward_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ErasValidatorReward<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn eras_reward_points( - &self, - _0: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::pallet_staking::EraRewardPoints< - ::subxt::sp_core::crypto::AccountId32, - >, - ::subxt::BasicError, - > { - let entry = ErasRewardPoints(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn eras_reward_points_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ErasRewardPoints<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn eras_total_stake( - &self, - _0: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - let entry = ErasTotalStake(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn eras_total_stake_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ErasTotalStake<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn force_era( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::pallet_staking::Forcing, - ::subxt::BasicError, - > { - let entry = ForceEra; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn slash_reward_fraction( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::BasicError, - > { - let entry = SlashRewardFraction; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn canceled_slash_payout( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - let entry = CanceledSlashPayout; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn unapplied_slashes( - &self, - _0: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec< - runtime_types::pallet_staking::UnappliedSlash< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, - >, - ::subxt::BasicError, - > { - let entry = UnappliedSlashes(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn unapplied_slashes_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, UnappliedSlashes<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn bonded_eras( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, - ::subxt::BasicError, - > { - let entry = BondedEras; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn validator_slash_in_era( - &self, - _0: &::core::primitive::u32, - _1: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<( - runtime_types::sp_arithmetic::per_things::Perbill, - ::core::primitive::u128, - )>, - ::subxt::BasicError, - > { - let entry = ValidatorSlashInEra(_0, _1); - self.client.storage().fetch(&entry, hash).await - } - pub async fn validator_slash_in_era_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ValidatorSlashInEra<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn nominator_slash_in_era( - &self, - _0: &::core::primitive::u32, - _1: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u128>, - ::subxt::BasicError, - > { - let entry = NominatorSlashInEra(_0, _1); - self.client.storage().fetch(&entry, hash).await - } - pub async fn nominator_slash_in_era_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, NominatorSlashInEra<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn slashing_spans( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_staking::slashing::SlashingSpans, - >, - ::subxt::BasicError, - > { - let entry = SlashingSpans(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn slashing_spans_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, SlashingSpans<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn span_slash( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - _1: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::pallet_staking::slashing::SpanRecord< - ::core::primitive::u128, - >, - ::subxt::BasicError, - > { - let entry = SpanSlash(_0, _1); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn span_slash_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, SpanSlash<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn earliest_unapplied_slash( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = EarliestUnappliedSlash; - self.client.storage().fetch(&entry, hash).await - } - pub async fn current_planned_session( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = CurrentPlannedSession; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn offending_validators( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::bool)>, - ::subxt::BasicError, - > { - let entry = OffendingValidators; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn storage_version( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::pallet_staking::Releases, - ::subxt::BasicError, - > { - let entry = StorageVersion; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn chill_threshold( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::sp_arithmetic::per_things::Percent, - >, - ::subxt::BasicError, - > { - let entry = ChillThreshold; - self.client.storage().fetch(&entry, hash).await - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn max_nominations( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[16u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn sessions_per_era( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[6u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn bonding_duration( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[28u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn slash_defer_duration( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[27u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn max_nominator_rewarded_per_validator( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 1u8, 0u8, 0u8][..], - )?) - } - pub fn max_unlocking_chunks( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[32u8, 0u8, 0u8, 0u8][..], - )?) - } - } - } - } - pub mod offences { - use super::root_mod; - use super::runtime_types; - pub type Event = runtime_types::pallet_offences::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Offence { - pub kind: [::core::primitive::u8; 16usize], - pub timeslot: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::Event for Offence { - const PALLET: &'static str = "Offences"; - const EVENT: &'static str = "Offence"; - } - } - pub mod storage { - use super::runtime_types; - pub struct Reports<'a>(pub &'a ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for Reports<'_> { - const PALLET: &'static str = "Offences"; - const STORAGE: &'static str = "Reports"; - type Value = runtime_types::sp_staking::offence::OffenceDetails< - ::subxt::sp_core::crypto::AccountId32, - ( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, - ), - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct ConcurrentReportsIndex<'a>( - pub &'a [::core::primitive::u8; 16usize], - pub &'a [::core::primitive::u8], - ); - impl ::subxt::StorageEntry for ConcurrentReportsIndex<'_> { - const PALLET: &'static str = "Offences"; - const STORAGE: &'static str = "ConcurrentReportsIndex"; - type Value = ::std::vec::Vec<::subxt::sp_core::H256>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Twox64Concat, - ), - ]) - } - } - pub struct ReportsByKindIndex<'a>(pub &'a [::core::primitive::u8; 16usize]); - impl ::subxt::StorageEntry for ReportsByKindIndex<'_> { - const PALLET: &'static str = "Offences"; - const STORAGE: &'static str = "ReportsByKindIndex"; - type Value = ::std::vec::Vec<::core::primitive::u8>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn reports( - &self, - _0: &::subxt::sp_core::H256, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::sp_staking::offence::OffenceDetails< - ::subxt::sp_core::crypto::AccountId32, - ( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, - ), - >, - >, - ::subxt::BasicError, - > { - let entry = Reports(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn reports_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Reports<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn concurrent_reports_index( - &self, - _0: &[::core::primitive::u8; 16usize], - _1: &[::core::primitive::u8], - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<::subxt::sp_core::H256>, - ::subxt::BasicError, - > { - let entry = ConcurrentReportsIndex(_0, _1); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn concurrent_reports_index_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ConcurrentReportsIndex<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn reports_by_kind_index( - &self, - _0: &[::core::primitive::u8; 16usize], - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<::core::primitive::u8>, - ::subxt::BasicError, - > { - let entry = ReportsByKindIndex(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn reports_by_kind_index_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ReportsByKindIndex<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - } - } - } - pub mod historical { - use super::root_mod; - use super::runtime_types; - } - pub mod session { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetKeys { - pub keys: runtime_types::polkadot_runtime::SessionKeys, - pub proof: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::Call for SetKeys { - const PALLET: &'static str = "Session"; - const FUNCTION: &'static str = "set_keys"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PurgeKeys; - impl ::subxt::Call for PurgeKeys { - const PALLET: &'static str = "Session"; - const FUNCTION: &'static str = "purge_keys"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn set_keys( - &self, - keys: runtime_types::polkadot_runtime::SessionKeys, - proof: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetKeys, - DispatchError, - root_mod::Event, - > { - let call = SetKeys { keys, proof }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn purge_keys( - &self, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - PurgeKeys, - DispatchError, - root_mod::Event, - > { - let call = PurgeKeys {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - pub type Event = runtime_types::pallet_session::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct NewSession { - pub session_index: ::core::primitive::u32, - } - impl ::subxt::Event for NewSession { - const PALLET: &'static str = "Session"; - const EVENT: &'static str = "NewSession"; - } - } - pub mod storage { - use super::runtime_types; - pub struct Validators; - impl ::subxt::StorageEntry for Validators { - const PALLET: &'static str = "Session"; - const STORAGE: &'static str = "Validators"; - type Value = ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct CurrentIndex; - impl ::subxt::StorageEntry for CurrentIndex { - const PALLET: &'static str = "Session"; - const STORAGE: &'static str = "CurrentIndex"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct QueuedChanged; - impl ::subxt::StorageEntry for QueuedChanged { - const PALLET: &'static str = "Session"; - const STORAGE: &'static str = "QueuedChanged"; - type Value = ::core::primitive::bool; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct QueuedKeys; - impl ::subxt::StorageEntry for QueuedKeys { - const PALLET: &'static str = "Session"; - const STORAGE: &'static str = "QueuedKeys"; - type Value = ::std::vec::Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_runtime::SessionKeys, - )>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct DisabledValidators; - impl ::subxt::StorageEntry for DisabledValidators { - const PALLET: &'static str = "Session"; - const STORAGE: &'static str = "DisabledValidators"; - type Value = ::std::vec::Vec<::core::primitive::u32>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct NextKeys<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for NextKeys<'_> { - const PALLET: &'static str = "Session"; - const STORAGE: &'static str = "NextKeys"; - type Value = runtime_types::polkadot_runtime::SessionKeys; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct KeyOwner<'a>( - pub &'a runtime_types::sp_core::crypto::KeyTypeId, - pub &'a [::core::primitive::u8], - ); - impl ::subxt::StorageEntry for KeyOwner<'_> { - const PALLET: &'static str = "Session"; - const STORAGE: &'static str = "KeyOwner"; - type Value = ::subxt::sp_core::crypto::AccountId32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &(&self.0, &self.1), - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn validators( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - ::subxt::BasicError, - > { - let entry = Validators; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn current_index( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = CurrentIndex; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn queued_changed( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> - { - let entry = QueuedChanged; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn queued_keys( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_runtime::SessionKeys, - )>, - ::subxt::BasicError, - > { - let entry = QueuedKeys; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn disabled_validators( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = DisabledValidators; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn next_keys( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option, - ::subxt::BasicError, - > { - let entry = NextKeys(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn next_keys_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, NextKeys<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn key_owner( - &self, - _0: &runtime_types::sp_core::crypto::KeyTypeId, - _1: &[::core::primitive::u8], - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, - ::subxt::BasicError, - > { - let entry = KeyOwner(_0, _1); - self.client.storage().fetch(&entry, hash).await - } - pub async fn key_owner_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, KeyOwner<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - } - } - } - pub mod grandpa { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ReportEquivocation { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::sp_core::H256, - ::core::primitive::u32, - >, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, - } - impl ::subxt::Call for ReportEquivocation { - const PALLET: &'static str = "Grandpa"; - const FUNCTION: &'static str = "report_equivocation"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ReportEquivocationUnsigned { - pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::sp_core::H256, - ::core::primitive::u32, - >, - >, - pub key_owner_proof: runtime_types::sp_session::MembershipProof, - } - impl ::subxt::Call for ReportEquivocationUnsigned { - const PALLET: &'static str = "Grandpa"; - const FUNCTION: &'static str = "report_equivocation_unsigned"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct NoteStalled { - pub delay: ::core::primitive::u32, - pub best_finalized_block_number: ::core::primitive::u32, - } - impl ::subxt::Call for NoteStalled { - const PALLET: &'static str = "Grandpa"; - const FUNCTION: &'static str = "note_stalled"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn report_equivocation( - &self, - equivocation_proof : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: sp_core :: H256 , :: core :: primitive :: u32 >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ReportEquivocation, - DispatchError, - root_mod::Event, - > { - let call = ReportEquivocation { - equivocation_proof: ::std::boxed::Box::new(equivocation_proof), - key_owner_proof, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn report_equivocation_unsigned( - &self, - equivocation_proof : runtime_types :: sp_finality_grandpa :: EquivocationProof < :: subxt :: sp_core :: H256 , :: core :: primitive :: u32 >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ReportEquivocationUnsigned, - DispatchError, - root_mod::Event, - > { - let call = ReportEquivocationUnsigned { - equivocation_proof: ::std::boxed::Box::new(equivocation_proof), - key_owner_proof, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn note_stalled( - &self, - delay: ::core::primitive::u32, - best_finalized_block_number: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - NoteStalled, - DispatchError, - root_mod::Event, - > { - let call = NoteStalled { - delay, - best_finalized_block_number, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - pub type Event = runtime_types::pallet_grandpa::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct NewAuthorities { - pub authority_set: ::std::vec::Vec<( - runtime_types::sp_finality_grandpa::app::Public, - ::core::primitive::u64, - )>, - } - impl ::subxt::Event for NewAuthorities { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "NewAuthorities"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - 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)] - pub struct Resumed; - impl ::subxt::Event for Resumed { - const PALLET: &'static str = "Grandpa"; - const EVENT: &'static str = "Resumed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct State; - impl ::subxt::StorageEntry for State { - const PALLET: &'static str = "Grandpa"; - const STORAGE: &'static str = "State"; - type Value = - runtime_types::pallet_grandpa::StoredState<::core::primitive::u32>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct PendingChange; - impl ::subxt::StorageEntry for PendingChange { - const PALLET: &'static str = "Grandpa"; - const STORAGE: &'static str = "PendingChange"; - type Value = runtime_types::pallet_grandpa::StoredPendingChange< - ::core::primitive::u32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct NextForced; - impl ::subxt::StorageEntry for NextForced { - const PALLET: &'static str = "Grandpa"; - const STORAGE: &'static str = "NextForced"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Stalled; - impl ::subxt::StorageEntry for Stalled { - const PALLET: &'static str = "Grandpa"; - const STORAGE: &'static str = "Stalled"; - type Value = (::core::primitive::u32, ::core::primitive::u32); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct CurrentSetId; - impl ::subxt::StorageEntry for CurrentSetId { - const PALLET: &'static str = "Grandpa"; - const STORAGE: &'static str = "CurrentSetId"; - type Value = ::core::primitive::u64; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct SetIdSession<'a>(pub &'a ::core::primitive::u64); - impl ::subxt::StorageEntry for SetIdSession<'_> { - const PALLET: &'static str = "Grandpa"; - const STORAGE: &'static str = "SetIdSession"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn state( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::pallet_grandpa::StoredState<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = State; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn pending_change( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_grandpa::StoredPendingChange< - ::core::primitive::u32, - >, - >, - ::subxt::BasicError, - > { - let entry = PendingChange; - self.client.storage().fetch(&entry, hash).await - } - pub async fn next_forced( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = NextForced; - self.client.storage().fetch(&entry, hash).await - } - pub async fn stalled( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - ::subxt::BasicError, - > { - let entry = Stalled; - self.client.storage().fetch(&entry, hash).await - } - pub async fn current_set_id( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> - { - let entry = CurrentSetId; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn set_id_session( - &self, - _0: &::core::primitive::u64, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = SetIdSession(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn set_id_session_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, SetIdSession<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn max_authorities( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[160u8, 134u8, 1u8, 0u8][..], - )?) - } - } - } - } - pub mod im_online { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Heartbeat { - pub heartbeat: - runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>, - pub signature: - runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, - } - impl ::subxt::Call for Heartbeat { - const PALLET: &'static str = "ImOnline"; - const FUNCTION: &'static str = "heartbeat"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn heartbeat( - &self, - heartbeat: runtime_types::pallet_im_online::Heartbeat< - ::core::primitive::u32, - >, - signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Heartbeat, - DispatchError, - root_mod::Event, - > { - let call = Heartbeat { - heartbeat, - signature, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - 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)] - pub struct HeartbeatReceived { - pub authority_id: - runtime_types::pallet_im_online::sr25519::app_sr25519::Public, - } - impl ::subxt::Event for HeartbeatReceived { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "HeartbeatReceived"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - 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)] - pub struct SomeOffline { - pub offline: ::std::vec::Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, - )>, - } - impl ::subxt::Event for SomeOffline { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "SomeOffline"; - } - } - pub mod storage { - use super::runtime_types; - pub struct HeartbeatAfter; - impl ::subxt::StorageEntry for HeartbeatAfter { - const PALLET: &'static str = "ImOnline"; - const STORAGE: &'static str = "HeartbeatAfter"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Keys; - impl ::subxt::StorageEntry for Keys { - const PALLET: &'static str = "ImOnline"; - const STORAGE: &'static str = "Keys"; - type Value = runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct ReceivedHeartbeats<'a>( - pub &'a ::core::primitive::u32, - pub &'a ::core::primitive::u32, - ); - impl ::subxt::StorageEntry for ReceivedHeartbeats<'_> { - const PALLET: &'static str = "ImOnline"; - const STORAGE: &'static str = "ReceivedHeartbeats"; - type Value = runtime_types::frame_support::traits::misc::WrapperOpaque< - runtime_types::pallet_im_online::BoundedOpaqueNetworkState, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Twox64Concat, - ), - ]) - } - } - pub struct AuthoredBlocks<'a>( - pub &'a ::core::primitive::u32, - pub &'a ::subxt::sp_core::crypto::AccountId32, - ); - impl ::subxt::StorageEntry for AuthoredBlocks<'_> { - const PALLET: &'static str = "ImOnline"; - const STORAGE: &'static str = "AuthoredBlocks"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Twox64Concat, - ), - ]) - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn heartbeat_after( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = HeartbeatAfter; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn keys (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Public > , :: subxt :: BasicError >{ - let entry = Keys; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn received_heartbeats( - &self, - _0: &::core::primitive::u32, - _1: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::frame_support::traits::misc::WrapperOpaque< - runtime_types::pallet_im_online::BoundedOpaqueNetworkState, - >, - >, - ::subxt::BasicError, - > { - let entry = ReceivedHeartbeats(_0, _1); - self.client.storage().fetch(&entry, hash).await - } - pub async fn received_heartbeats_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ReceivedHeartbeats<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn authored_blocks( - &self, - _0: &::core::primitive::u32, - _1: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = AuthoredBlocks(_0, _1); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn authored_blocks_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, AuthoredBlocks<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn unsigned_priority( - &self, - ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[255u8, 255u8, 255u8, 255u8, 255u8, 255u8, 255u8, 255u8][..], - )?) - } - } - } - } - pub mod authority_discovery { - use super::root_mod; - use super::runtime_types; - } - pub mod democracy { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Propose { - pub proposal_hash: ::subxt::sp_core::H256, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::Call for Propose { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "propose"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Second { - #[codec(compact)] - pub proposal: ::core::primitive::u32, - #[codec(compact)] - pub seconds_upper_bound: ::core::primitive::u32, - } - impl ::subxt::Call for Second { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "second"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Vote { - #[codec(compact)] - pub ref_index: ::core::primitive::u32, - pub vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, - } - impl ::subxt::Call for Vote { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "vote"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct EmergencyCancel { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::Call for EmergencyCancel { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "emergency_cancel"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ExternalPropose { - pub proposal_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for ExternalPropose { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "external_propose"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ExternalProposeMajority { - pub proposal_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for ExternalProposeMajority { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "external_propose_majority"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ExternalProposeDefault { - pub proposal_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for ExternalProposeDefault { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "external_propose_default"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct FastTrack { - pub proposal_hash: ::subxt::sp_core::H256, - pub voting_period: ::core::primitive::u32, - pub delay: ::core::primitive::u32, - } - impl ::subxt::Call for FastTrack { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "fast_track"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct VetoExternal { - pub proposal_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for VetoExternal { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "veto_external"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CancelReferendum { - #[codec(compact)] - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::Call for CancelReferendum { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "cancel_referendum"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct CancelQueued { - pub which: ::core::primitive::u32, - } - impl ::subxt::Call for CancelQueued { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "cancel_queued"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Delegate { - pub to: ::subxt::sp_core::crypto::AccountId32, - pub conviction: runtime_types::pallet_democracy::conviction::Conviction, - pub balance: ::core::primitive::u128, - } - impl ::subxt::Call for Delegate { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "delegate"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] - 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)] - pub struct NotePreimage { - pub encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::Call for NotePreimage { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "note_preimage"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct NotePreimageOperational { - pub encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::Call for NotePreimageOperational { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "note_preimage_operational"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct NoteImminentPreimage { - pub encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::Call for NoteImminentPreimage { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "note_imminent_preimage"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct NoteImminentPreimageOperational { - pub encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::Call for NoteImminentPreimageOperational { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "note_imminent_preimage_operational"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ReapPreimage { - pub proposal_hash: ::subxt::sp_core::H256, - #[codec(compact)] - pub proposal_len_upper_bound: ::core::primitive::u32, - } - impl ::subxt::Call for ReapPreimage { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "reap_preimage"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Unlock { - pub target: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Call for Unlock { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "unlock"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct RemoveVote { - pub index: ::core::primitive::u32, - } - impl ::subxt::Call for RemoveVote { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "remove_vote"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct RemoveOtherVote { - pub target: ::subxt::sp_core::crypto::AccountId32, - pub index: ::core::primitive::u32, - } - impl ::subxt::Call for RemoveOtherVote { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "remove_other_vote"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct EnactProposal { - pub proposal_hash: ::subxt::sp_core::H256, - pub index: ::core::primitive::u32, - } - impl ::subxt::Call for EnactProposal { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "enact_proposal"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Blacklist { - pub proposal_hash: ::subxt::sp_core::H256, - pub maybe_ref_index: ::core::option::Option<::core::primitive::u32>, - } - impl ::subxt::Call for Blacklist { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "blacklist"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CancelProposal { - #[codec(compact)] - pub prop_index: ::core::primitive::u32, - } - impl ::subxt::Call for CancelProposal { - const PALLET: &'static str = "Democracy"; - const FUNCTION: &'static str = "cancel_proposal"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn propose( - &self, - proposal_hash: ::subxt::sp_core::H256, - value: ::core::primitive::u128, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Propose, - DispatchError, - root_mod::Event, - > { - let call = Propose { - proposal_hash, - value, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn second( - &self, - proposal: ::core::primitive::u32, - seconds_upper_bound: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Second, - DispatchError, - root_mod::Event, - > { - let call = Second { - proposal, - seconds_upper_bound, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn vote( - &self, - ref_index: ::core::primitive::u32, - vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Vote, - DispatchError, - root_mod::Event, - > { - let call = Vote { ref_index, vote }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn emergency_cancel( - &self, - ref_index: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - EmergencyCancel, - DispatchError, - root_mod::Event, - > { - let call = EmergencyCancel { ref_index }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn external_propose( - &self, - proposal_hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ExternalPropose, - DispatchError, - root_mod::Event, - > { - let call = ExternalPropose { proposal_hash }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn external_propose_majority( - &self, - proposal_hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ExternalProposeMajority, - DispatchError, - root_mod::Event, - > { - let call = ExternalProposeMajority { proposal_hash }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn external_propose_default( - &self, - proposal_hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ExternalProposeDefault, - DispatchError, - root_mod::Event, - > { - let call = ExternalProposeDefault { proposal_hash }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn fast_track( - &self, - proposal_hash: ::subxt::sp_core::H256, - voting_period: ::core::primitive::u32, - delay: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - FastTrack, - DispatchError, - root_mod::Event, - > { - let call = FastTrack { - proposal_hash, - voting_period, - delay, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn veto_external( - &self, - proposal_hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - VetoExternal, - DispatchError, - root_mod::Event, - > { - let call = VetoExternal { proposal_hash }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn cancel_referendum( - &self, - ref_index: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - CancelReferendum, - DispatchError, - root_mod::Event, - > { - let call = CancelReferendum { ref_index }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn cancel_queued( - &self, - which: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - CancelQueued, - DispatchError, - root_mod::Event, - > { - let call = CancelQueued { which }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn delegate( - &self, - to: ::subxt::sp_core::crypto::AccountId32, - conviction: runtime_types::pallet_democracy::conviction::Conviction, - balance: ::core::primitive::u128, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Delegate, - DispatchError, - root_mod::Event, - > { - let call = Delegate { - to, - conviction, - balance, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn undelegate( - &self, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Undelegate, - DispatchError, - root_mod::Event, - > { - let call = Undelegate {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn clear_public_proposals( - &self, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ClearPublicProposals, - DispatchError, - root_mod::Event, - > { - let call = ClearPublicProposals {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn note_preimage( - &self, - encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - NotePreimage, - DispatchError, - root_mod::Event, - > { - let call = NotePreimage { encoded_proposal }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn note_preimage_operational( - &self, - encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - NotePreimageOperational, - DispatchError, - root_mod::Event, - > { - let call = NotePreimageOperational { encoded_proposal }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn note_imminent_preimage( - &self, - encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - NoteImminentPreimage, - DispatchError, - root_mod::Event, - > { - let call = NoteImminentPreimage { encoded_proposal }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn note_imminent_preimage_operational( - &self, - encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - NoteImminentPreimageOperational, - DispatchError, - root_mod::Event, - > { - let call = NoteImminentPreimageOperational { encoded_proposal }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn reap_preimage( - &self, - proposal_hash: ::subxt::sp_core::H256, - proposal_len_upper_bound: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ReapPreimage, - DispatchError, - root_mod::Event, - > { - let call = ReapPreimage { - proposal_hash, - proposal_len_upper_bound, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn unlock( - &self, - target: ::subxt::sp_core::crypto::AccountId32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Unlock, - DispatchError, - root_mod::Event, - > { - let call = Unlock { target }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn remove_vote( - &self, - index: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - RemoveVote, - DispatchError, - root_mod::Event, - > { - let call = RemoveVote { index }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn remove_other_vote( - &self, - target: ::subxt::sp_core::crypto::AccountId32, - index: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - RemoveOtherVote, - DispatchError, - root_mod::Event, - > { - let call = RemoveOtherVote { target, index }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn enact_proposal( - &self, - proposal_hash: ::subxt::sp_core::H256, - index: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - EnactProposal, - DispatchError, - root_mod::Event, - > { - let call = EnactProposal { - proposal_hash, - index, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn blacklist( - &self, - proposal_hash: ::subxt::sp_core::H256, - maybe_ref_index: ::core::option::Option<::core::primitive::u32>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Blacklist, - DispatchError, - root_mod::Event, - > { - let call = Blacklist { - proposal_hash, - maybe_ref_index, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn cancel_proposal( - &self, - prop_index: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - CancelProposal, - DispatchError, - root_mod::Event, - > { - let call = CancelProposal { prop_index }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - pub type Event = runtime_types::pallet_democracy::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Proposed { - pub proposal_index: ::core::primitive::u32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::Event for Proposed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Proposed"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Tabled { - pub proposal_index: ::core::primitive::u32, - pub deposit: ::core::primitive::u128, - pub depositors: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - } - impl ::subxt::Event for Tabled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Tabled"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - 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)] - pub struct Started { - pub ref_index: ::core::primitive::u32, - pub threshold: - runtime_types::pallet_democracy::vote_threshold::VoteThreshold, - } - impl ::subxt::Event for Started { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Started"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct Passed { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::Event for Passed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Passed"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct NotPassed { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::Event for NotPassed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "NotPassed"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct Cancelled { - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::Event for Cancelled { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Cancelled"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Executed { - pub ref_index: ::core::primitive::u32, - pub result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, - } - impl ::subxt::Event for Executed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Executed"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Delegated { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub target: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Event for Delegated { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Delegated"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Undelegated { - pub account: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Event for Undelegated { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Undelegated"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Vetoed { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub proposal_hash: ::subxt::sp_core::H256, - pub until: ::core::primitive::u32, - } - impl ::subxt::Event for Vetoed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Vetoed"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PreimageNoted { - pub proposal_hash: ::subxt::sp_core::H256, - pub who: ::subxt::sp_core::crypto::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::Event for PreimageNoted { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "PreimageNoted"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PreimageUsed { - pub proposal_hash: ::subxt::sp_core::H256, - pub provider: ::subxt::sp_core::crypto::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::Event for PreimageUsed { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "PreimageUsed"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PreimageInvalid { - pub proposal_hash: ::subxt::sp_core::H256, - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::Event for PreimageInvalid { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "PreimageInvalid"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PreimageMissing { - pub proposal_hash: ::subxt::sp_core::H256, - pub ref_index: ::core::primitive::u32, - } - impl ::subxt::Event for PreimageMissing { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "PreimageMissing"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PreimageReaped { - pub proposal_hash: ::subxt::sp_core::H256, - pub provider: ::subxt::sp_core::crypto::AccountId32, - pub deposit: ::core::primitive::u128, - pub reaper: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Event for PreimageReaped { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "PreimageReaped"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Blacklisted { - pub proposal_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Event for Blacklisted { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Blacklisted"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Voted { - pub voter: ::subxt::sp_core::crypto::AccountId32, - pub ref_index: ::core::primitive::u32, - pub vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, - } - impl ::subxt::Event for Voted { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Voted"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Seconded { - pub seconder: ::subxt::sp_core::crypto::AccountId32, - pub prop_index: ::core::primitive::u32, - } - impl ::subxt::Event for Seconded { - const PALLET: &'static str = "Democracy"; - const EVENT: &'static str = "Seconded"; - } - } - pub mod storage { - use super::runtime_types; - pub struct PublicPropCount; - impl ::subxt::StorageEntry for PublicPropCount { - const PALLET: &'static str = "Democracy"; - const STORAGE: &'static str = "PublicPropCount"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct PublicProps; - impl ::subxt::StorageEntry for PublicProps { - const PALLET: &'static str = "Democracy"; - const STORAGE: &'static str = "PublicProps"; - type Value = ::std::vec::Vec<( - ::core::primitive::u32, - ::subxt::sp_core::H256, - ::subxt::sp_core::crypto::AccountId32, - )>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct DepositOf<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for DepositOf<'_> { - const PALLET: &'static str = "Democracy"; - const STORAGE: &'static str = "DepositOf"; - type Value = ( - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - ::core::primitive::u128, - ); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct Preimages<'a>(pub &'a ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for Preimages<'_> { - const PALLET: &'static str = "Democracy"; - const STORAGE: &'static str = "Preimages"; - type Value = runtime_types::pallet_democracy::PreimageStatus< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct ReferendumCount; - impl ::subxt::StorageEntry for ReferendumCount { - const PALLET: &'static str = "Democracy"; - const STORAGE: &'static str = "ReferendumCount"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct LowestUnbaked; - impl ::subxt::StorageEntry for LowestUnbaked { - const PALLET: &'static str = "Democracy"; - const STORAGE: &'static str = "LowestUnbaked"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct ReferendumInfoOf<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for ReferendumInfoOf<'_> { - const PALLET: &'static str = "Democracy"; - const STORAGE: &'static str = "ReferendumInfoOf"; - type Value = runtime_types::pallet_democracy::types::ReferendumInfo< - ::core::primitive::u32, - ::subxt::sp_core::H256, - ::core::primitive::u128, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct VotingOf<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for VotingOf<'_> { - const PALLET: &'static str = "Democracy"; - const STORAGE: &'static str = "VotingOf"; - type Value = runtime_types::pallet_democracy::vote::Voting< - ::core::primitive::u128, - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct LastTabledWasExternal; - impl ::subxt::StorageEntry for LastTabledWasExternal { - const PALLET: &'static str = "Democracy"; - const STORAGE: &'static str = "LastTabledWasExternal"; - type Value = ::core::primitive::bool; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct NextExternal; - impl ::subxt::StorageEntry for NextExternal { - const PALLET: &'static str = "Democracy"; - const STORAGE: &'static str = "NextExternal"; - type Value = ( - ::subxt::sp_core::H256, - runtime_types::pallet_democracy::vote_threshold::VoteThreshold, - ); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Blacklist<'a>(pub &'a ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for Blacklist<'_> { - const PALLET: &'static str = "Democracy"; - const STORAGE: &'static str = "Blacklist"; - type Value = ( - ::core::primitive::u32, - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - ); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct Cancellations<'a>(pub &'a ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for Cancellations<'_> { - const PALLET: &'static str = "Democracy"; - const STORAGE: &'static str = "Cancellations"; - type Value = ::core::primitive::bool; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct StorageVersion; - impl ::subxt::StorageEntry for StorageVersion { - const PALLET: &'static str = "Democracy"; - const STORAGE: &'static str = "StorageVersion"; - type Value = runtime_types::pallet_democracy::Releases; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn public_prop_count( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = PublicPropCount; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn public_props( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<( - ::core::primitive::u32, - ::subxt::sp_core::H256, - ::subxt::sp_core::crypto::AccountId32, - )>, - ::subxt::BasicError, - > { - let entry = PublicProps; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn deposit_of( - &self, - _0: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<( - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - ::core::primitive::u128, - )>, - ::subxt::BasicError, - > { - let entry = DepositOf(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn deposit_of_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, DepositOf<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn preimages( - &self, - _0: &::subxt::sp_core::H256, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_democracy::PreimageStatus< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - >, - >, - ::subxt::BasicError, - > { - let entry = Preimages(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn preimages_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Preimages<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn referendum_count( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = ReferendumCount; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn lowest_unbaked( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = LowestUnbaked; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn referendum_info_of( - &self, - _0: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_democracy::types::ReferendumInfo< - ::core::primitive::u32, - ::subxt::sp_core::H256, - ::core::primitive::u128, - >, - >, - ::subxt::BasicError, - > { - let entry = ReferendumInfoOf(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn referendum_info_of_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ReferendumInfoOf<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn voting_of( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::pallet_democracy::vote::Voting< - ::core::primitive::u128, - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u32, - >, - ::subxt::BasicError, - > { - let entry = VotingOf(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn voting_of_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, VotingOf<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn last_tabled_was_external( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> - { - let entry = LastTabledWasExternal; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn next_external( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<( - ::subxt::sp_core::H256, - runtime_types::pallet_democracy::vote_threshold::VoteThreshold, - )>, - ::subxt::BasicError, - > { - let entry = NextExternal; - self.client.storage().fetch(&entry, hash).await - } - pub async fn blacklist( - &self, - _0: &::subxt::sp_core::H256, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<( - ::core::primitive::u32, - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - )>, - ::subxt::BasicError, - > { - let entry = Blacklist(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn blacklist_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Blacklist<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn cancellations( - &self, - _0: &::subxt::sp_core::H256, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> - { - let entry = Cancellations(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn cancellations_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Cancellations<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn storage_version( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option, - ::subxt::BasicError, - > { - let entry = StorageVersion; - self.client.storage().fetch(&entry, hash).await - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn enactment_period( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 39u8, 6u8, 0u8][..], - )?) - } - pub fn launch_period( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 39u8, 6u8, 0u8][..], - )?) - } - pub fn voting_period( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 39u8, 6u8, 0u8][..], - )?) - } - pub fn vote_locking_period( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 39u8, 6u8, 0u8][..], - )?) - } - pub fn minimum_deposit( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 16u8, 165u8, 212u8, 232u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn instant_allowed( - &self, - ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode(&mut &[1u8][..])?) - } - pub fn fast_track_voting_period( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[8u8, 7u8, 0u8, 0u8][..], - )?) - } - pub fn cooloff_period( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[192u8, 137u8, 1u8, 0u8][..], - )?) - } - pub fn preimage_byte_deposit( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 128u8, 150u8, 152u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn max_votes( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn max_proposals( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) - } - } - } - } - pub mod council { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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>, - pub old_count: ::core::primitive::u32, - } - impl ::subxt::Call for SetMembers { - const PALLET: &'static str = "Council"; - const FUNCTION: &'static str = "set_members"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Execute { - pub proposal: ::std::boxed::Box, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - impl ::subxt::Call for Execute { - const PALLET: &'static str = "Council"; - const FUNCTION: &'static str = "execute"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Propose { - #[codec(compact)] - pub threshold: ::core::primitive::u32, - pub proposal: ::std::boxed::Box, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - impl ::subxt::Call for Propose { - const PALLET: &'static str = "Council"; - const FUNCTION: &'static str = "propose"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Vote { - pub proposal: ::subxt::sp_core::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - pub approve: ::core::primitive::bool, - } - impl ::subxt::Call for Vote { - const PALLET: &'static str = "Council"; - const FUNCTION: &'static str = "vote"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Close { - pub proposal_hash: ::subxt::sp_core::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - #[codec(compact)] - pub proposal_weight_bound: ::core::primitive::u64, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - impl ::subxt::Call for Close { - const PALLET: &'static str = "Council"; - const FUNCTION: &'static str = "close"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct DisapproveProposal { - pub proposal_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for DisapproveProposal { - const PALLET: &'static str = "Council"; - const FUNCTION: &'static str = "disapprove_proposal"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn set_members( - &self, - new_members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - prime: ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, - old_count: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetMembers, - DispatchError, - root_mod::Event, - > { - let call = SetMembers { - new_members, - prime, - old_count, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn execute( - &self, - proposal: runtime_types::polkadot_runtime::Call, - length_bound: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Execute, - DispatchError, - root_mod::Event, - > { - let call = Execute { - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn propose( - &self, - threshold: ::core::primitive::u32, - proposal: runtime_types::polkadot_runtime::Call, - length_bound: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Propose, - DispatchError, - root_mod::Event, - > { - let call = Propose { - threshold, - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn vote( - &self, - proposal: ::subxt::sp_core::H256, - index: ::core::primitive::u32, - approve: ::core::primitive::bool, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Vote, - DispatchError, - root_mod::Event, - > { - let call = Vote { - proposal, - index, - approve, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn close( - &self, - proposal_hash: ::subxt::sp_core::H256, - index: ::core::primitive::u32, - proposal_weight_bound: ::core::primitive::u64, - length_bound: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Close, - DispatchError, - root_mod::Event, - > { - let call = Close { - proposal_hash, - index, - proposal_weight_bound, - length_bound, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn disapprove_proposal( - &self, - proposal_hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - DisapproveProposal, - DispatchError, - root_mod::Event, - > { - let call = DisapproveProposal { proposal_hash }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - pub type Event = runtime_types::pallet_collective::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Proposed { - pub account: ::subxt::sp_core::crypto::AccountId32, - pub proposal_index: ::core::primitive::u32, - pub proposal_hash: ::subxt::sp_core::H256, - pub threshold: ::core::primitive::u32, - } - impl ::subxt::Event for Proposed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Proposed"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Voted { - pub account: ::subxt::sp_core::crypto::AccountId32, - pub proposal_hash: ::subxt::sp_core::H256, - pub voted: ::core::primitive::bool, - pub yes: ::core::primitive::u32, - pub no: ::core::primitive::u32, - } - impl ::subxt::Event for Voted { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Voted"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Approved { - pub proposal_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Event for Approved { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Approved"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Disapproved { - pub proposal_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Event for Disapproved { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Disapproved"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Executed { - pub proposal_hash: ::subxt::sp_core::H256, - pub result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, - } - impl ::subxt::Event for Executed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Executed"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct MemberExecuted { - pub proposal_hash: ::subxt::sp_core::H256, - pub result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, - } - impl ::subxt::Event for MemberExecuted { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "MemberExecuted"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Closed { - pub proposal_hash: ::subxt::sp_core::H256, - pub yes: ::core::primitive::u32, - pub no: ::core::primitive::u32, - } - impl ::subxt::Event for Closed { - const PALLET: &'static str = "Council"; - const EVENT: &'static str = "Closed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct Proposals; - impl ::subxt::StorageEntry for Proposals { - const PALLET: &'static str = "Council"; - const STORAGE: &'static str = "Proposals"; - type Value = - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::subxt::sp_core::H256, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct ProposalOf<'a>(pub &'a ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for ProposalOf<'_> { - const PALLET: &'static str = "Council"; - const STORAGE: &'static str = "ProposalOf"; - type Value = runtime_types::polkadot_runtime::Call; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct Voting<'a>(pub &'a ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for Voting<'_> { - const PALLET: &'static str = "Council"; - const STORAGE: &'static str = "Voting"; - type Value = runtime_types::pallet_collective::Votes< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct ProposalCount; - impl ::subxt::StorageEntry for ProposalCount { - const PALLET: &'static str = "Council"; - const STORAGE: &'static str = "ProposalCount"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Members; - impl ::subxt::StorageEntry for Members { - const PALLET: &'static str = "Council"; - const STORAGE: &'static str = "Members"; - type Value = ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Prime; - impl ::subxt::StorageEntry for Prime { - const PALLET: &'static str = "Council"; - const STORAGE: &'static str = "Prime"; - type Value = ::subxt::sp_core::crypto::AccountId32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn proposals( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::subxt::sp_core::H256, - >, - ::subxt::BasicError, - > { - let entry = Proposals; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn proposal_of( - &self, - _0: &::subxt::sp_core::H256, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option, - ::subxt::BasicError, - > { - let entry = ProposalOf(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn proposal_of_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ProposalOf<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn voting( - &self, - _0: &::subxt::sp_core::H256, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_collective::Votes< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u32, - >, - >, - ::subxt::BasicError, - > { - let entry = Voting(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn voting_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Voting<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn proposal_count( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = ProposalCount; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn members( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - ::subxt::BasicError, - > { - let entry = Members; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn prime( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, - ::subxt::BasicError, - > { - let entry = Prime; - self.client.storage().fetch(&entry, hash).await - } - } - } - } - pub mod technical_committee { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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>, - pub old_count: ::core::primitive::u32, - } - impl ::subxt::Call for SetMembers { - const PALLET: &'static str = "TechnicalCommittee"; - const FUNCTION: &'static str = "set_members"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Execute { - pub proposal: ::std::boxed::Box, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - impl ::subxt::Call for Execute { - const PALLET: &'static str = "TechnicalCommittee"; - const FUNCTION: &'static str = "execute"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Propose { - #[codec(compact)] - pub threshold: ::core::primitive::u32, - pub proposal: ::std::boxed::Box, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - impl ::subxt::Call for Propose { - const PALLET: &'static str = "TechnicalCommittee"; - const FUNCTION: &'static str = "propose"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Vote { - pub proposal: ::subxt::sp_core::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - pub approve: ::core::primitive::bool, - } - impl ::subxt::Call for Vote { - const PALLET: &'static str = "TechnicalCommittee"; - const FUNCTION: &'static str = "vote"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Close { - pub proposal_hash: ::subxt::sp_core::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - #[codec(compact)] - pub proposal_weight_bound: ::core::primitive::u64, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - impl ::subxt::Call for Close { - const PALLET: &'static str = "TechnicalCommittee"; - const FUNCTION: &'static str = "close"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct DisapproveProposal { - pub proposal_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for DisapproveProposal { - const PALLET: &'static str = "TechnicalCommittee"; - const FUNCTION: &'static str = "disapprove_proposal"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn set_members( - &self, - new_members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - prime: ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, - old_count: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetMembers, - DispatchError, - root_mod::Event, - > { - let call = SetMembers { - new_members, - prime, - old_count, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn execute( - &self, - proposal: runtime_types::polkadot_runtime::Call, - length_bound: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Execute, - DispatchError, - root_mod::Event, - > { - let call = Execute { - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn propose( - &self, - threshold: ::core::primitive::u32, - proposal: runtime_types::polkadot_runtime::Call, - length_bound: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Propose, - DispatchError, - root_mod::Event, - > { - let call = Propose { - threshold, - proposal: ::std::boxed::Box::new(proposal), - length_bound, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn vote( - &self, - proposal: ::subxt::sp_core::H256, - index: ::core::primitive::u32, - approve: ::core::primitive::bool, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Vote, - DispatchError, - root_mod::Event, - > { - let call = Vote { - proposal, - index, - approve, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn close( - &self, - proposal_hash: ::subxt::sp_core::H256, - index: ::core::primitive::u32, - proposal_weight_bound: ::core::primitive::u64, - length_bound: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Close, - DispatchError, - root_mod::Event, - > { - let call = Close { - proposal_hash, - index, - proposal_weight_bound, - length_bound, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn disapprove_proposal( - &self, - proposal_hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - DisapproveProposal, - DispatchError, - root_mod::Event, - > { - let call = DisapproveProposal { proposal_hash }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - pub type Event = runtime_types::pallet_collective::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Proposed { - pub account: ::subxt::sp_core::crypto::AccountId32, - pub proposal_index: ::core::primitive::u32, - pub proposal_hash: ::subxt::sp_core::H256, - pub threshold: ::core::primitive::u32, - } - impl ::subxt::Event for Proposed { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "Proposed"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Voted { - pub account: ::subxt::sp_core::crypto::AccountId32, - pub proposal_hash: ::subxt::sp_core::H256, - pub voted: ::core::primitive::bool, - pub yes: ::core::primitive::u32, - pub no: ::core::primitive::u32, - } - impl ::subxt::Event for Voted { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "Voted"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Approved { - pub proposal_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Event for Approved { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "Approved"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Disapproved { - pub proposal_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Event for Disapproved { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "Disapproved"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Executed { - pub proposal_hash: ::subxt::sp_core::H256, - pub result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, - } - impl ::subxt::Event for Executed { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "Executed"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct MemberExecuted { - pub proposal_hash: ::subxt::sp_core::H256, - pub result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, - } - impl ::subxt::Event for MemberExecuted { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "MemberExecuted"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Closed { - pub proposal_hash: ::subxt::sp_core::H256, - pub yes: ::core::primitive::u32, - pub no: ::core::primitive::u32, - } - impl ::subxt::Event for Closed { - const PALLET: &'static str = "TechnicalCommittee"; - const EVENT: &'static str = "Closed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct Proposals; - impl ::subxt::StorageEntry for Proposals { - const PALLET: &'static str = "TechnicalCommittee"; - const STORAGE: &'static str = "Proposals"; - type Value = - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::subxt::sp_core::H256, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct ProposalOf<'a>(pub &'a ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for ProposalOf<'_> { - const PALLET: &'static str = "TechnicalCommittee"; - const STORAGE: &'static str = "ProposalOf"; - type Value = runtime_types::polkadot_runtime::Call; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct Voting<'a>(pub &'a ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for Voting<'_> { - const PALLET: &'static str = "TechnicalCommittee"; - const STORAGE: &'static str = "Voting"; - type Value = runtime_types::pallet_collective::Votes< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct ProposalCount; - impl ::subxt::StorageEntry for ProposalCount { - const PALLET: &'static str = "TechnicalCommittee"; - const STORAGE: &'static str = "ProposalCount"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Members; - impl ::subxt::StorageEntry for Members { - const PALLET: &'static str = "TechnicalCommittee"; - const STORAGE: &'static str = "Members"; - type Value = ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Prime; - impl ::subxt::StorageEntry for Prime { - const PALLET: &'static str = "TechnicalCommittee"; - const STORAGE: &'static str = "Prime"; - type Value = ::subxt::sp_core::crypto::AccountId32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn proposals( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::subxt::sp_core::H256, - >, - ::subxt::BasicError, - > { - let entry = Proposals; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn proposal_of( - &self, - _0: &::subxt::sp_core::H256, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option, - ::subxt::BasicError, - > { - let entry = ProposalOf(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn proposal_of_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ProposalOf<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn voting( - &self, - _0: &::subxt::sp_core::H256, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_collective::Votes< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u32, - >, - >, - ::subxt::BasicError, - > { - let entry = Voting(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn voting_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Voting<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn proposal_count( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = ProposalCount; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn members( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - ::subxt::BasicError, - > { - let entry = Members; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn prime( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, - ::subxt::BasicError, - > { - let entry = Prime; - self.client.storage().fetch(&entry, hash).await - } - } - } - } - pub mod phragmen_election { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Vote { - pub votes: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - #[codec(compact)] - pub value: ::core::primitive::u128, - } - impl ::subxt::Call for Vote { - const PALLET: &'static str = "PhragmenElection"; - const FUNCTION: &'static str = "vote"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] - pub struct SubmitCandidacy { - #[codec(compact)] - pub candidate_count: ::core::primitive::u32, - } - impl ::subxt::Call for SubmitCandidacy { - const PALLET: &'static str = "PhragmenElection"; - const FUNCTION: &'static str = "submit_candidacy"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct RenounceCandidacy { - pub renouncing: runtime_types::pallet_elections_phragmen::Renouncing, - } - impl ::subxt::Call for RenounceCandidacy { - const PALLET: &'static str = "PhragmenElection"; - const FUNCTION: &'static str = "renounce_candidacy"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct RemoveMember { - pub who: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - pub has_replacement: ::core::primitive::bool, - } - impl ::subxt::Call for RemoveMember { - const PALLET: &'static str = "PhragmenElection"; - const FUNCTION: &'static str = "remove_member"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CleanDefunctVoters { - pub num_voters: ::core::primitive::u32, - pub num_defunct: ::core::primitive::u32, - } - impl ::subxt::Call for CleanDefunctVoters { - const PALLET: &'static str = "PhragmenElection"; - const FUNCTION: &'static str = "clean_defunct_voters"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn vote( - &self, - votes: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - value: ::core::primitive::u128, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Vote, - DispatchError, - root_mod::Event, - > { - let call = Vote { votes, value }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn remove_voter( - &self, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - RemoveVoter, - DispatchError, - root_mod::Event, - > { - let call = RemoveVoter {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn submit_candidacy( - &self, - candidate_count: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SubmitCandidacy, - DispatchError, - root_mod::Event, - > { - let call = SubmitCandidacy { candidate_count }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn renounce_candidacy( - &self, - renouncing: runtime_types::pallet_elections_phragmen::Renouncing, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - RenounceCandidacy, - DispatchError, - root_mod::Event, - > { - let call = RenounceCandidacy { renouncing }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn remove_member( - &self, - who: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - has_replacement: ::core::primitive::bool, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - RemoveMember, - DispatchError, - root_mod::Event, - > { - let call = RemoveMember { - who, - has_replacement, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn clean_defunct_voters( - &self, - num_voters: ::core::primitive::u32, - num_defunct: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - CleanDefunctVoters, - DispatchError, - root_mod::Event, - > { - let call = CleanDefunctVoters { - num_voters, - num_defunct, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - 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)] - pub struct NewTerm { - pub new_members: ::std::vec::Vec<( - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - )>, - } - impl ::subxt::Event for NewTerm { - const PALLET: &'static str = "PhragmenElection"; - const EVENT: &'static str = "NewTerm"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct EmptyTerm; - impl ::subxt::Event for EmptyTerm { - const PALLET: &'static str = "PhragmenElection"; - const EVENT: &'static str = "EmptyTerm"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - 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)] - pub struct MemberKicked { - pub member: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Event for MemberKicked { - const PALLET: &'static str = "PhragmenElection"; - const EVENT: &'static str = "MemberKicked"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Renounced { - pub candidate: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Event for Renounced { - const PALLET: &'static str = "PhragmenElection"; - const EVENT: &'static str = "Renounced"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CandidateSlashed { - pub candidate: ::subxt::sp_core::crypto::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::Event for CandidateSlashed { - const PALLET: &'static str = "PhragmenElection"; - const EVENT: &'static str = "CandidateSlashed"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SeatHolderSlashed { - pub seat_holder: ::subxt::sp_core::crypto::AccountId32, - pub amount: ::core::primitive::u128, - } - impl ::subxt::Event for SeatHolderSlashed { - const PALLET: &'static str = "PhragmenElection"; - const EVENT: &'static str = "SeatHolderSlashed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct Members; - impl ::subxt::StorageEntry for Members { - const PALLET: &'static str = "PhragmenElection"; - const STORAGE: &'static str = "Members"; - type Value = ::std::vec::Vec< - runtime_types::pallet_elections_phragmen::SeatHolder< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct RunnersUp; - impl ::subxt::StorageEntry for RunnersUp { - const PALLET: &'static str = "PhragmenElection"; - const STORAGE: &'static str = "RunnersUp"; - type Value = ::std::vec::Vec< - runtime_types::pallet_elections_phragmen::SeatHolder< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Candidates; - impl ::subxt::StorageEntry for Candidates { - const PALLET: &'static str = "PhragmenElection"; - const STORAGE: &'static str = "Candidates"; - type Value = ::std::vec::Vec<( - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - )>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct ElectionRounds; - impl ::subxt::StorageEntry for ElectionRounds { - const PALLET: &'static str = "PhragmenElection"; - const STORAGE: &'static str = "ElectionRounds"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Voting<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Voting<'_> { - const PALLET: &'static str = "PhragmenElection"; - const STORAGE: &'static str = "Voting"; - type Value = runtime_types::pallet_elections_phragmen::Voter< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn members( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec< - runtime_types::pallet_elections_phragmen::SeatHolder< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, - >, - ::subxt::BasicError, - > { - let entry = Members; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn runners_up( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec< - runtime_types::pallet_elections_phragmen::SeatHolder< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, - >, - ::subxt::BasicError, - > { - let entry = RunnersUp; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn candidates( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<( - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - )>, - ::subxt::BasicError, - > { - let entry = Candidates; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn election_rounds( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = ElectionRounds; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn voting( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::pallet_elections_phragmen::Voter< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, - ::subxt::BasicError, - > { - let entry = Voting(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn voting_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Voting<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn pallet_id( - &self, - ) -> ::core::result::Result< - [::core::primitive::u8; 8usize], - ::subxt::BasicError, - > { - Ok(::subxt::codec::Decode::decode( - &mut &[112u8, 104u8, 114u8, 101u8, 108u8, 101u8, 99u8, 116u8][..], - )?) - } - pub fn candidacy_bond( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 16u8, 165u8, 212u8, 232u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn voting_bond_base( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 112u8, 19u8, 183u8, 46u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn voting_bond_factor( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 208u8, 18u8, 19u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn desired_members( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[13u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn desired_runners_up( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[20u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn term_duration( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[192u8, 137u8, 1u8, 0u8][..], - )?) - } - } - } - } - pub mod technical_membership { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AddMember { - pub who: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Call for AddMember { - const PALLET: &'static str = "TechnicalMembership"; - const FUNCTION: &'static str = "add_member"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct RemoveMember { - pub who: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Call for RemoveMember { - const PALLET: &'static str = "TechnicalMembership"; - const FUNCTION: &'static str = "remove_member"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SwapMember { - pub remove: ::subxt::sp_core::crypto::AccountId32, - pub add: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Call for SwapMember { - const PALLET: &'static str = "TechnicalMembership"; - const FUNCTION: &'static str = "swap_member"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ResetMembers { - pub members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - } - impl ::subxt::Call for ResetMembers { - const PALLET: &'static str = "TechnicalMembership"; - const FUNCTION: &'static str = "reset_members"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ChangeKey { - pub new: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Call for ChangeKey { - const PALLET: &'static str = "TechnicalMembership"; - const FUNCTION: &'static str = "change_key"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetPrime { - pub who: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Call for SetPrime { - const PALLET: &'static str = "TechnicalMembership"; - const FUNCTION: &'static str = "set_prime"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ClearPrime; - impl ::subxt::Call for ClearPrime { - const PALLET: &'static str = "TechnicalMembership"; - const FUNCTION: &'static str = "clear_prime"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn add_member( - &self, - who: ::subxt::sp_core::crypto::AccountId32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - AddMember, - DispatchError, - root_mod::Event, - > { - let call = AddMember { who }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn remove_member( - &self, - who: ::subxt::sp_core::crypto::AccountId32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - RemoveMember, - DispatchError, - root_mod::Event, - > { - let call = RemoveMember { who }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn swap_member( - &self, - remove: ::subxt::sp_core::crypto::AccountId32, - add: ::subxt::sp_core::crypto::AccountId32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SwapMember, - DispatchError, - root_mod::Event, - > { - let call = SwapMember { remove, add }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn reset_members( - &self, - members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ResetMembers, - DispatchError, - root_mod::Event, - > { - let call = ResetMembers { members }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn change_key( - &self, - new: ::subxt::sp_core::crypto::AccountId32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ChangeKey, - DispatchError, - root_mod::Event, - > { - let call = ChangeKey { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_prime( - &self, - who: ::subxt::sp_core::crypto::AccountId32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetPrime, - DispatchError, - root_mod::Event, - > { - let call = SetPrime { who }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn clear_prime( - &self, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ClearPrime, - DispatchError, - root_mod::Event, - > { - let call = ClearPrime {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - pub type Event = runtime_types::pallet_membership::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - 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)] - 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)] - 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)] - 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)] - 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)] - pub struct Dummy; - impl ::subxt::Event for Dummy { - const PALLET: &'static str = "TechnicalMembership"; - const EVENT: &'static str = "Dummy"; - } - } - pub mod storage { - use super::runtime_types; - pub struct Members; - impl ::subxt::StorageEntry for Members { - const PALLET: &'static str = "TechnicalMembership"; - const STORAGE: &'static str = "Members"; - type Value = ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Prime; - impl ::subxt::StorageEntry for Prime { - const PALLET: &'static str = "TechnicalMembership"; - const STORAGE: &'static str = "Prime"; - type Value = ::subxt::sp_core::crypto::AccountId32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn members( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - ::subxt::BasicError, - > { - let entry = Members; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn prime( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, - ::subxt::BasicError, - > { - let entry = Prime; - self.client.storage().fetch(&entry, hash).await - } - } - } - } - pub mod treasury { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ProposeSpend { - #[codec(compact)] - pub value: ::core::primitive::u128, - pub beneficiary: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - } - impl ::subxt::Call for ProposeSpend { - const PALLET: &'static str = "Treasury"; - const FUNCTION: &'static str = "propose_spend"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct RejectProposal { - #[codec(compact)] - pub proposal_id: ::core::primitive::u32, - } - impl ::subxt::Call for RejectProposal { - const PALLET: &'static str = "Treasury"; - const FUNCTION: &'static str = "reject_proposal"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ApproveProposal { - #[codec(compact)] - pub proposal_id: ::core::primitive::u32, - } - impl ::subxt::Call for ApproveProposal { - const PALLET: &'static str = "Treasury"; - const FUNCTION: &'static str = "approve_proposal"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn propose_spend( - &self, - value: ::core::primitive::u128, - beneficiary: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ProposeSpend, - DispatchError, - root_mod::Event, - > { - let call = ProposeSpend { value, beneficiary }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn reject_proposal( - &self, - proposal_id: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - RejectProposal, - DispatchError, - root_mod::Event, - > { - let call = RejectProposal { proposal_id }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn approve_proposal( - &self, - proposal_id: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ApproveProposal, - DispatchError, - root_mod::Event, - > { - let call = ApproveProposal { proposal_id }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - pub type Event = runtime_types::pallet_treasury::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct Proposed { - pub proposal_index: ::core::primitive::u32, - } - impl ::subxt::Event for Proposed { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Proposed"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct Spending { - pub budget_remaining: ::core::primitive::u128, - } - impl ::subxt::Event for Spending { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Spending"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Awarded { - pub proposal_index: ::core::primitive::u32, - pub award: ::core::primitive::u128, - pub account: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Event for Awarded { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Awarded"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Rejected { - pub proposal_index: ::core::primitive::u32, - pub slashed: ::core::primitive::u128, - } - impl ::subxt::Event for Rejected { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Rejected"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct Burnt { - pub burnt_funds: ::core::primitive::u128, - } - impl ::subxt::Event for Burnt { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Burnt"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct Rollover { - pub rollover_balance: ::core::primitive::u128, - } - impl ::subxt::Event for Rollover { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Rollover"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct Deposit { - pub value: ::core::primitive::u128, - } - impl ::subxt::Event for Deposit { - const PALLET: &'static str = "Treasury"; - const EVENT: &'static str = "Deposit"; - } - } - pub mod storage { - use super::runtime_types; - pub struct ProposalCount; - impl ::subxt::StorageEntry for ProposalCount { - const PALLET: &'static str = "Treasury"; - const STORAGE: &'static str = "ProposalCount"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Proposals<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for Proposals<'_> { - const PALLET: &'static str = "Treasury"; - const STORAGE: &'static str = "Proposals"; - type Value = runtime_types::pallet_treasury::Proposal< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct Approvals; - impl ::subxt::StorageEntry for Approvals { - const PALLET: &'static str = "Treasury"; - const STORAGE: &'static str = "Approvals"; - type Value = - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::core::primitive::u32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn proposal_count( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = ProposalCount; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn proposals( - &self, - _0: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_treasury::Proposal< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, - >, - ::subxt::BasicError, - > { - let entry = Proposals(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn proposals_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Proposals<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn approvals( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::core::primitive::u32, - >, - ::subxt::BasicError, - > { - let entry = Approvals; - self.client.storage().fetch_or_default(&entry, hash).await - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn proposal_bond( - &self, - ) -> ::core::result::Result< - runtime_types::sp_arithmetic::per_things::Permill, - ::subxt::BasicError, - > { - Ok(::subxt::codec::Decode::decode( - &mut &[80u8, 195u8, 0u8, 0u8][..], - )?) - } - pub fn proposal_bond_minimum( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 16u8, 165u8, 212u8, 232u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn proposal_bond_maximum( - &self, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u128>, - ::subxt::BasicError, - > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 1u8, 0u8, 80u8, 57u8, 39u8, 140u8, 4u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn spend_period( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 70u8, 5u8, 0u8][..], - )?) - } - pub fn burn( - &self, - ) -> ::core::result::Result< - runtime_types::sp_arithmetic::per_things::Permill, - ::subxt::BasicError, - > { - Ok(::subxt::codec::Decode::decode( - &mut &[16u8, 39u8, 0u8, 0u8][..], - )?) - } - pub fn pallet_id( - &self, - ) -> ::core::result::Result< - runtime_types::frame_support::PalletId, - ::subxt::BasicError, - > { - Ok(::subxt::codec::Decode::decode( - &mut &[112u8, 121u8, 47u8, 116u8, 114u8, 115u8, 114u8, 121u8][..], - )?) - } - pub fn max_approvals( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) - } - } - } - } - pub mod claims { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Claim { - pub dest: ::subxt::sp_core::crypto::AccountId32, - pub ethereum_signature: - runtime_types::polkadot_runtime_common::claims::EcdsaSignature, - } - impl ::subxt::Call for Claim { - const PALLET: &'static str = "Claims"; - const FUNCTION: &'static str = "claim"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct MintClaim { - pub who: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - pub value: ::core::primitive::u128, - pub vesting_schedule: ::core::option::Option<( - ::core::primitive::u128, - ::core::primitive::u128, - ::core::primitive::u32, - )>, - pub statement: ::core::option::Option< - runtime_types::polkadot_runtime_common::claims::StatementKind, - >, - } - impl ::subxt::Call for MintClaim { - const PALLET: &'static str = "Claims"; - const FUNCTION: &'static str = "mint_claim"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ClaimAttest { - pub dest: ::subxt::sp_core::crypto::AccountId32, - pub ethereum_signature: - runtime_types::polkadot_runtime_common::claims::EcdsaSignature, - pub statement: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::Call for ClaimAttest { - const PALLET: &'static str = "Claims"; - const FUNCTION: &'static str = "claim_attest"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Attest { - pub statement: ::std::vec::Vec<::core::primitive::u8>, - } - impl ::subxt::Call for Attest { - const PALLET: &'static str = "Claims"; - const FUNCTION: &'static str = "attest"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct MoveClaim { - pub old: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - pub new: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - pub maybe_preclaim: - ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, - } - impl ::subxt::Call for MoveClaim { - const PALLET: &'static str = "Claims"; - const FUNCTION: &'static str = "move_claim"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn claim( - &self, - dest: ::subxt::sp_core::crypto::AccountId32, - ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Claim, - DispatchError, - root_mod::Event, - > { - let call = Claim { - dest, - ethereum_signature, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn mint_claim( - &self, - 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, - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - MintClaim, - DispatchError, - root_mod::Event, - > { - let call = MintClaim { - who, - value, - vesting_schedule, - statement, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn claim_attest( - &self, - dest: ::subxt::sp_core::crypto::AccountId32, - ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature, - statement: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ClaimAttest, - DispatchError, - root_mod::Event, - > { - let call = ClaimAttest { - dest, - ethereum_signature, - statement, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn attest( - &self, - statement: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Attest, - DispatchError, - root_mod::Event, - > { - let call = Attest { statement }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn move_claim( - &self, - 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, - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - MoveClaim, - DispatchError, - root_mod::Event, - > { - let call = MoveClaim { - old, - new, - maybe_preclaim, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - 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)] - pub struct Claimed( - pub ::subxt::sp_core::crypto::AccountId32, - pub runtime_types::polkadot_runtime_common::claims::EthereumAddress, - pub ::core::primitive::u128, - ); - impl ::subxt::Event for Claimed { - const PALLET: &'static str = "Claims"; - const EVENT: &'static str = "Claimed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct Claims<'a>( - pub &'a runtime_types::polkadot_runtime_common::claims::EthereumAddress, - ); - impl ::subxt::StorageEntry for Claims<'_> { - const PALLET: &'static str = "Claims"; - const STORAGE: &'static str = "Claims"; - type Value = ::core::primitive::u128; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct Total; - impl ::subxt::StorageEntry for Total { - const PALLET: &'static str = "Claims"; - const STORAGE: &'static str = "Total"; - type Value = ::core::primitive::u128; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Vesting<'a>( - pub &'a runtime_types::polkadot_runtime_common::claims::EthereumAddress, - ); - impl ::subxt::StorageEntry for Vesting<'_> { - const PALLET: &'static str = "Claims"; - const STORAGE: &'static str = "Vesting"; - type Value = ( - ::core::primitive::u128, - ::core::primitive::u128, - ::core::primitive::u32, - ); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct Signing<'a>( - pub &'a runtime_types::polkadot_runtime_common::claims::EthereumAddress, - ); - impl ::subxt::StorageEntry for Signing<'_> { - const PALLET: &'static str = "Claims"; - const STORAGE: &'static str = "Signing"; - type Value = - runtime_types::polkadot_runtime_common::claims::StatementKind; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct Preclaims<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Preclaims<'_> { - const PALLET: &'static str = "Claims"; - const STORAGE: &'static str = "Preclaims"; - type Value = - runtime_types::polkadot_runtime_common::claims::EthereumAddress; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn claims( - &self, - _0: &runtime_types::polkadot_runtime_common::claims::EthereumAddress, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u128>, - ::subxt::BasicError, - > { - let entry = Claims(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn claims_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Claims<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn total( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - let entry = Total; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn vesting( - &self, - _0: &runtime_types::polkadot_runtime_common::claims::EthereumAddress, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<( - ::core::primitive::u128, - ::core::primitive::u128, - ::core::primitive::u32, - )>, - ::subxt::BasicError, - > { - let entry = Vesting(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn vesting_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Vesting<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn signing( - &self, - _0: &runtime_types::polkadot_runtime_common::claims::EthereumAddress, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_runtime_common::claims::StatementKind, - >, - ::subxt::BasicError, - > { - let entry = Signing(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn signing_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Signing<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn preclaims( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_runtime_common::claims::EthereumAddress, - >, - ::subxt::BasicError, - > { - let entry = Preclaims(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn preclaims_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Preclaims<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn prefix( - &self, - ) -> ::core::result::Result< - ::std::vec::Vec<::core::primitive::u8>, - ::subxt::BasicError, - > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 132u8, 80u8, 97u8, 121u8, 32u8, 68u8, 79u8, 84u8, 115u8, - 32u8, 116u8, 111u8, 32u8, 116u8, 104u8, 101u8, 32u8, 80u8, - 111u8, 108u8, 107u8, 97u8, 100u8, 111u8, 116u8, 32u8, 97u8, - 99u8, 99u8, 111u8, 117u8, 110u8, 116u8, 58u8, - ][..], - )?) - } - } - } - } - pub mod vesting { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] - pub struct VestOther { - pub target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - } - impl ::subxt::Call for VestOther { - const PALLET: &'static str = "Vesting"; - const FUNCTION: &'static str = "vest_other"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct VestedTransfer { - pub target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - } - impl ::subxt::Call for VestedTransfer { - const PALLET: &'static str = "Vesting"; - const FUNCTION: &'static str = "vested_transfer"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceVestedTransfer { - pub source: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - pub target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - } - impl ::subxt::Call for ForceVestedTransfer { - const PALLET: &'static str = "Vesting"; - const FUNCTION: &'static str = "force_vested_transfer"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct MergeSchedules { - pub schedule1_index: ::core::primitive::u32, - pub schedule2_index: ::core::primitive::u32, - } - impl ::subxt::Call for MergeSchedules { - const PALLET: &'static str = "Vesting"; - const FUNCTION: &'static str = "merge_schedules"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn vest( - &self, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Vest, - DispatchError, - root_mod::Event, - > { - let call = Vest {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn vest_other( - &self, - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - VestOther, - DispatchError, - root_mod::Event, - > { - let call = VestOther { target }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn vested_transfer( - &self, - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - VestedTransfer, - DispatchError, - root_mod::Event, - > { - let call = VestedTransfer { target, schedule }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn force_vested_transfer( - &self, - source: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ForceVestedTransfer, - DispatchError, - root_mod::Event, - > { - let call = ForceVestedTransfer { - source, - target, - schedule, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn merge_schedules( - &self, - schedule1_index: ::core::primitive::u32, - schedule2_index: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - MergeSchedules, - DispatchError, - root_mod::Event, - > { - let call = MergeSchedules { - schedule1_index, - schedule2_index, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - pub type Event = runtime_types::pallet_vesting::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct VestingUpdated { - pub account: ::subxt::sp_core::crypto::AccountId32, - pub unvested: ::core::primitive::u128, - } - impl ::subxt::Event for VestingUpdated { - const PALLET: &'static str = "Vesting"; - const EVENT: &'static str = "VestingUpdated"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct VestingCompleted { - pub account: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Event for VestingCompleted { - const PALLET: &'static str = "Vesting"; - const EVENT: &'static str = "VestingCompleted"; - } - } - pub mod storage { - use super::runtime_types; - pub struct Vesting<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Vesting<'_> { - const PALLET: &'static str = "Vesting"; - const STORAGE: &'static str = "Vesting"; - type Value = - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Blake2_128Concat, - )]) - } - } - pub struct StorageVersion; - impl ::subxt::StorageEntry for StorageVersion { - const PALLET: &'static str = "Vesting"; - const STORAGE: &'static str = "StorageVersion"; - type Value = runtime_types::pallet_vesting::Releases; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn vesting( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - >, - >, - ::subxt::BasicError, - > { - let entry = Vesting(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn vesting_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Vesting<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn storage_version( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::pallet_vesting::Releases, - ::subxt::BasicError, - > { - let entry = StorageVersion; - self.client.storage().fetch_or_default(&entry, hash).await - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn min_vested_transfer( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn max_vesting_schedules( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[28u8, 0u8, 0u8, 0u8][..], - )?) - } - } - } - } - pub mod utility { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Batch { - pub calls: ::std::vec::Vec, - } - impl ::subxt::Call for Batch { - const PALLET: &'static str = "Utility"; - const FUNCTION: &'static str = "batch"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AsDerivative { - pub index: ::core::primitive::u16, - pub call: ::std::boxed::Box, - } - impl ::subxt::Call for AsDerivative { - const PALLET: &'static str = "Utility"; - const FUNCTION: &'static str = "as_derivative"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct BatchAll { - pub calls: ::std::vec::Vec, - } - impl ::subxt::Call for BatchAll { - const PALLET: &'static str = "Utility"; - const FUNCTION: &'static str = "batch_all"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct DispatchAs { - pub as_origin: - ::std::boxed::Box, - pub call: ::std::boxed::Box, - } - impl ::subxt::Call for DispatchAs { - const PALLET: &'static str = "Utility"; - const FUNCTION: &'static str = "dispatch_as"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn batch( - &self, - calls: ::std::vec::Vec, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Batch, - DispatchError, - root_mod::Event, - > { - let call = Batch { calls }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn as_derivative( - &self, - index: ::core::primitive::u16, - call: runtime_types::polkadot_runtime::Call, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - AsDerivative, - DispatchError, - root_mod::Event, - > { - let call = AsDerivative { - index, - call: ::std::boxed::Box::new(call), - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn batch_all( - &self, - calls: ::std::vec::Vec, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - BatchAll, - DispatchError, - root_mod::Event, - > { - let call = BatchAll { calls }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn dispatch_as( - &self, - as_origin: runtime_types::polkadot_runtime::OriginCaller, - call: runtime_types::polkadot_runtime::Call, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - DispatchAs, - DispatchError, - root_mod::Event, - > { - let call = DispatchAs { - as_origin: ::std::boxed::Box::new(as_origin), - call: ::std::boxed::Box::new(call), - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - pub type Event = runtime_types::pallet_utility::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct BatchInterrupted { - pub index: ::core::primitive::u32, - pub error: runtime_types::sp_runtime::DispatchError, - } - impl ::subxt::Event for BatchInterrupted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchInterrupted"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - 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)] - 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)] - pub struct DispatchedAs { - pub result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, - } - impl ::subxt::Event for DispatchedAs { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "DispatchedAs"; - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn batched_calls_limit( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[170u8, 42u8, 0u8, 0u8][..], - )?) - } - } - } - } - pub mod identity { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AddRegistrar { - pub account: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Call for AddRegistrar { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "add_registrar"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetIdentity { - pub info: ::std::boxed::Box< - runtime_types::pallet_identity::types::IdentityInfo, - >, - } - impl ::subxt::Call for SetIdentity { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "set_identity"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetSubs { - pub subs: ::std::vec::Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_identity::types::Data, - )>, - } - impl ::subxt::Call for SetSubs { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "set_subs"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] - pub struct RequestJudgement { - #[codec(compact)] - pub reg_index: ::core::primitive::u32, - #[codec(compact)] - pub max_fee: ::core::primitive::u128, - } - impl ::subxt::Call for RequestJudgement { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "request_judgement"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct CancelRequest { - pub reg_index: ::core::primitive::u32, - } - impl ::subxt::Call for CancelRequest { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "cancel_request"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetFee { - #[codec(compact)] - pub index: ::core::primitive::u32, - #[codec(compact)] - pub fee: ::core::primitive::u128, - } - impl ::subxt::Call for SetFee { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "set_fee"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetAccountId { - #[codec(compact)] - pub index: ::core::primitive::u32, - pub new: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Call for SetAccountId { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "set_account_id"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetFields { - #[codec(compact)] - pub index: ::core::primitive::u32, - pub fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, - } - impl ::subxt::Call for SetFields { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "set_fields"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ProvideJudgement { - #[codec(compact)] - pub reg_index: ::core::primitive::u32, - pub target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - pub judgement: runtime_types::pallet_identity::types::Judgement< - ::core::primitive::u128, - >, - } - impl ::subxt::Call for ProvideJudgement { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "provide_judgement"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct KillIdentity { - pub target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - } - impl ::subxt::Call for KillIdentity { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "kill_identity"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AddSub { - pub sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - pub data: runtime_types::pallet_identity::types::Data, - } - impl ::subxt::Call for AddSub { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "add_sub"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct RenameSub { - pub sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - pub data: runtime_types::pallet_identity::types::Data, - } - impl ::subxt::Call for RenameSub { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "rename_sub"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct RemoveSub { - pub sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - } - impl ::subxt::Call for RemoveSub { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "remove_sub"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct QuitSub; - impl ::subxt::Call for QuitSub { - const PALLET: &'static str = "Identity"; - const FUNCTION: &'static str = "quit_sub"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn add_registrar( - &self, - account: ::subxt::sp_core::crypto::AccountId32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - AddRegistrar, - DispatchError, - root_mod::Event, - > { - let call = AddRegistrar { account }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_identity( - &self, - info: runtime_types::pallet_identity::types::IdentityInfo, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetIdentity, - DispatchError, - root_mod::Event, - > { - let call = SetIdentity { - info: ::std::boxed::Box::new(info), - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_subs( - &self, - subs: ::std::vec::Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_identity::types::Data, - )>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetSubs, - DispatchError, - root_mod::Event, - > { - let call = SetSubs { subs }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn clear_identity( - &self, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ClearIdentity, - DispatchError, - root_mod::Event, - > { - let call = ClearIdentity {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn request_judgement( - &self, - reg_index: ::core::primitive::u32, - max_fee: ::core::primitive::u128, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - RequestJudgement, - DispatchError, - root_mod::Event, - > { - let call = RequestJudgement { reg_index, max_fee }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn cancel_request( - &self, - reg_index: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - CancelRequest, - DispatchError, - root_mod::Event, - > { - let call = CancelRequest { reg_index }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_fee( - &self, - index: ::core::primitive::u32, - fee: ::core::primitive::u128, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetFee, - DispatchError, - root_mod::Event, - > { - let call = SetFee { index, fee }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_account_id( - &self, - index: ::core::primitive::u32, - new: ::subxt::sp_core::crypto::AccountId32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetAccountId, - DispatchError, - root_mod::Event, - > { - let call = SetAccountId { index, new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn set_fields( - &self, - index: ::core::primitive::u32, - fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetFields, - DispatchError, - root_mod::Event, - > { - let call = SetFields { index, fields }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn provide_judgement( - &self, - reg_index: ::core::primitive::u32, - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - judgement: runtime_types::pallet_identity::types::Judgement< - ::core::primitive::u128, - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ProvideJudgement, - DispatchError, - root_mod::Event, - > { - let call = ProvideJudgement { - reg_index, - target, - judgement, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn kill_identity( - &self, - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - KillIdentity, - DispatchError, - root_mod::Event, - > { - let call = KillIdentity { target }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn add_sub( - &self, - sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - data: runtime_types::pallet_identity::types::Data, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - AddSub, - DispatchError, - root_mod::Event, - > { - let call = AddSub { sub, data }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn rename_sub( - &self, - sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - data: runtime_types::pallet_identity::types::Data, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - RenameSub, - DispatchError, - root_mod::Event, - > { - let call = RenameSub { sub, data }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn remove_sub( - &self, - sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - RemoveSub, - DispatchError, - root_mod::Event, - > { - let call = RemoveSub { sub }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn quit_sub( - &self, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - QuitSub, - DispatchError, - root_mod::Event, - > { - let call = QuitSub {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - pub type Event = runtime_types::pallet_identity::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct IdentitySet { - pub who: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Event for IdentitySet { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "IdentitySet"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct IdentityCleared { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::Event for IdentityCleared { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "IdentityCleared"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct IdentityKilled { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::Event for IdentityKilled { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "IdentityKilled"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct JudgementRequested { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub registrar_index: ::core::primitive::u32, - } - impl ::subxt::Event for JudgementRequested { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "JudgementRequested"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct JudgementUnrequested { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub registrar_index: ::core::primitive::u32, - } - impl ::subxt::Event for JudgementUnrequested { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "JudgementUnrequested"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct JudgementGiven { - pub target: ::subxt::sp_core::crypto::AccountId32, - pub registrar_index: ::core::primitive::u32, - } - impl ::subxt::Event for JudgementGiven { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "JudgementGiven"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct RegistrarAdded { - pub registrar_index: ::core::primitive::u32, - } - impl ::subxt::Event for RegistrarAdded { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "RegistrarAdded"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SubIdentityAdded { - pub sub: ::subxt::sp_core::crypto::AccountId32, - pub main: ::subxt::sp_core::crypto::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::Event for SubIdentityAdded { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "SubIdentityAdded"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SubIdentityRemoved { - pub sub: ::subxt::sp_core::crypto::AccountId32, - pub main: ::subxt::sp_core::crypto::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::Event for SubIdentityRemoved { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "SubIdentityRemoved"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SubIdentityRevoked { - pub sub: ::subxt::sp_core::crypto::AccountId32, - pub main: ::subxt::sp_core::crypto::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::Event for SubIdentityRevoked { - const PALLET: &'static str = "Identity"; - const EVENT: &'static str = "SubIdentityRevoked"; - } - } - pub mod storage { - use super::runtime_types; - pub struct IdentityOf<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for IdentityOf<'_> { - const PALLET: &'static str = "Identity"; - const STORAGE: &'static str = "IdentityOf"; - type Value = runtime_types::pallet_identity::types::Registration< - ::core::primitive::u128, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct SuperOf<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for SuperOf<'_> { - const PALLET: &'static str = "Identity"; - const STORAGE: &'static str = "SuperOf"; - type Value = ( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_identity::types::Data, - ); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Blake2_128Concat, - )]) - } - } - pub struct SubsOf<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for SubsOf<'_> { - const PALLET: &'static str = "Identity"; - const STORAGE: &'static str = "SubsOf"; - type Value = ( - ::core::primitive::u128, - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::subxt::sp_core::crypto::AccountId32, - >, - ); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct Registrars; - impl ::subxt::StorageEntry for Registrars { - const PALLET: &'static str = "Identity"; - const STORAGE: &'static str = "Registrars"; - type Value = - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::core::option::Option< - runtime_types::pallet_identity::types::RegistrarInfo< - ::core::primitive::u128, - ::subxt::sp_core::crypto::AccountId32, - >, - >, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn identity_of( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_identity::types::Registration< - ::core::primitive::u128, - >, - >, - ::subxt::BasicError, - > { - let entry = IdentityOf(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn identity_of_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, IdentityOf<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn super_of( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_identity::types::Data, - )>, - ::subxt::BasicError, - > { - let entry = SuperOf(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn super_of_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, SuperOf<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn subs_of( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ( - ::core::primitive::u128, - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::subxt::sp_core::crypto::AccountId32, - >, - ), - ::subxt::BasicError, - > { - let entry = SubsOf(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn subs_of_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, SubsOf<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn registrars( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::core::option::Option< - runtime_types::pallet_identity::types::RegistrarInfo< - ::core::primitive::u128, - ::subxt::sp_core::crypto::AccountId32, - >, - >, - >, - ::subxt::BasicError, - > { - let entry = Registrars; - self.client.storage().fetch_or_default(&entry, hash).await - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn basic_deposit( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 125u8, 181u8, 42u8, 47u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn field_deposit( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 205u8, 86u8, 39u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn sub_account_deposit( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 128u8, 248u8, 132u8, 176u8, 46u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn max_sub_accounts( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn max_additional_fields( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn max_registrars( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[20u8, 0u8, 0u8, 0u8][..], - )?) - } - } - } - } - pub mod proxy { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Proxy { - pub real: ::subxt::sp_core::crypto::AccountId32, - pub force_proxy_type: - ::core::option::Option, - pub call: ::std::boxed::Box, - } - impl ::subxt::Call for Proxy { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "proxy"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AddProxy { - pub delegate: ::subxt::sp_core::crypto::AccountId32, - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub delay: ::core::primitive::u32, - } - impl ::subxt::Call for AddProxy { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "add_proxy"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct RemoveProxy { - pub delegate: ::subxt::sp_core::crypto::AccountId32, - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub delay: ::core::primitive::u32, - } - impl ::subxt::Call for RemoveProxy { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "remove_proxy"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] - pub struct Anonymous { - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub delay: ::core::primitive::u32, - pub index: ::core::primitive::u16, - } - impl ::subxt::Call for Anonymous { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "anonymous"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct KillAnonymous { - pub spawner: ::subxt::sp_core::crypto::AccountId32, - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub index: ::core::primitive::u16, - #[codec(compact)] - pub height: ::core::primitive::u32, - #[codec(compact)] - pub ext_index: ::core::primitive::u32, - } - impl ::subxt::Call for KillAnonymous { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "kill_anonymous"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Announce { - pub real: ::subxt::sp_core::crypto::AccountId32, - pub call_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for Announce { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "announce"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct RemoveAnnouncement { - pub real: ::subxt::sp_core::crypto::AccountId32, - pub call_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for RemoveAnnouncement { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "remove_announcement"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct RejectAnnouncement { - pub delegate: ::subxt::sp_core::crypto::AccountId32, - pub call_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for RejectAnnouncement { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "reject_announcement"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ProxyAnnounced { - pub delegate: ::subxt::sp_core::crypto::AccountId32, - pub real: ::subxt::sp_core::crypto::AccountId32, - pub force_proxy_type: - ::core::option::Option, - pub call: ::std::boxed::Box, - } - impl ::subxt::Call for ProxyAnnounced { - const PALLET: &'static str = "Proxy"; - const FUNCTION: &'static str = "proxy_announced"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn proxy( - &self, - real: ::subxt::sp_core::crypto::AccountId32, - force_proxy_type: ::core::option::Option< - runtime_types::polkadot_runtime::ProxyType, - >, - call: runtime_types::polkadot_runtime::Call, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Proxy, - DispatchError, - root_mod::Event, - > { - let call = Proxy { - real, - force_proxy_type, - call: ::std::boxed::Box::new(call), - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn add_proxy( - &self, - delegate: ::subxt::sp_core::crypto::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - AddProxy, - DispatchError, - root_mod::Event, - > { - let call = AddProxy { - delegate, - proxy_type, - delay, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn remove_proxy( - &self, - delegate: ::subxt::sp_core::crypto::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - RemoveProxy, - DispatchError, - root_mod::Event, - > { - let call = RemoveProxy { - delegate, - proxy_type, - delay, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn remove_proxies( - &self, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - RemoveProxies, - DispatchError, - root_mod::Event, - > { - let call = RemoveProxies {}; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn anonymous( - &self, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: ::core::primitive::u32, - index: ::core::primitive::u16, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Anonymous, - DispatchError, - root_mod::Event, - > { - let call = Anonymous { - proxy_type, - delay, - index, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn kill_anonymous( - &self, - spawner: ::subxt::sp_core::crypto::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - index: ::core::primitive::u16, - height: ::core::primitive::u32, - ext_index: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - KillAnonymous, - DispatchError, - root_mod::Event, - > { - let call = KillAnonymous { - spawner, - proxy_type, - index, - height, - ext_index, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn announce( - &self, - real: ::subxt::sp_core::crypto::AccountId32, - call_hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Announce, - DispatchError, - root_mod::Event, - > { - let call = Announce { real, call_hash }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn remove_announcement( - &self, - real: ::subxt::sp_core::crypto::AccountId32, - call_hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - RemoveAnnouncement, - DispatchError, - root_mod::Event, - > { - let call = RemoveAnnouncement { real, call_hash }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn reject_announcement( - &self, - delegate: ::subxt::sp_core::crypto::AccountId32, - call_hash: ::subxt::sp_core::H256, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - RejectAnnouncement, - DispatchError, - root_mod::Event, - > { - let call = RejectAnnouncement { - delegate, - call_hash, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn proxy_announced( - &self, - delegate: ::subxt::sp_core::crypto::AccountId32, - real: ::subxt::sp_core::crypto::AccountId32, - force_proxy_type: ::core::option::Option< - runtime_types::polkadot_runtime::ProxyType, - >, - call: runtime_types::polkadot_runtime::Call, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ProxyAnnounced, - DispatchError, - root_mod::Event, - > { - let call = ProxyAnnounced { - delegate, - real, - force_proxy_type, - call: ::std::boxed::Box::new(call), - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - pub type Event = runtime_types::pallet_proxy::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ProxyExecuted { - pub result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, - } - impl ::subxt::Event for ProxyExecuted { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyExecuted"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AnonymousCreated { - pub anonymous: ::subxt::sp_core::crypto::AccountId32, - pub who: ::subxt::sp_core::crypto::AccountId32, - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub disambiguation_index: ::core::primitive::u16, - } - impl ::subxt::Event for AnonymousCreated { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "AnonymousCreated"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Announced { - pub real: ::subxt::sp_core::crypto::AccountId32, - pub proxy: ::subxt::sp_core::crypto::AccountId32, - pub call_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Event for Announced { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "Announced"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ProxyAdded { - pub delegator: ::subxt::sp_core::crypto::AccountId32, - pub delegatee: ::subxt::sp_core::crypto::AccountId32, - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub delay: ::core::primitive::u32, - } - impl ::subxt::Event for ProxyAdded { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyAdded"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ProxyRemoved { - pub delegator: ::subxt::sp_core::crypto::AccountId32, - pub delegatee: ::subxt::sp_core::crypto::AccountId32, - pub proxy_type: runtime_types::polkadot_runtime::ProxyType, - pub delay: ::core::primitive::u32, - } - impl ::subxt::Event for ProxyRemoved { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyRemoved"; - } - } - pub mod storage { - use super::runtime_types; - pub struct Proxies<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Proxies<'_> { - const PALLET: &'static str = "Proxy"; - const STORAGE: &'static str = "Proxies"; - type Value = ( - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - runtime_types::pallet_proxy::ProxyDefinition< - ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_runtime::ProxyType, - ::core::primitive::u32, - >, - >, - ::core::primitive::u128, - ); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct Announcements<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for Announcements<'_> { - const PALLET: &'static str = "Proxy"; - const STORAGE: &'static str = "Announcements"; - type Value = ( - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - runtime_types::pallet_proxy::Announcement< - ::subxt::sp_core::crypto::AccountId32, - ::subxt::sp_core::H256, - ::core::primitive::u32, - >, - >, - ::core::primitive::u128, - ); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn proxies( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ( - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - runtime_types::pallet_proxy::ProxyDefinition< - ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_runtime::ProxyType, - ::core::primitive::u32, - >, - >, - ::core::primitive::u128, - ), - ::subxt::BasicError, - > { - let entry = Proxies(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn proxies_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Proxies<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn announcements( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ( - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - runtime_types::pallet_proxy::Announcement< - ::subxt::sp_core::crypto::AccountId32, - ::subxt::sp_core::H256, - ::core::primitive::u32, - >, - >, - ::core::primitive::u128, - ), - ::subxt::BasicError, - > { - let entry = Announcements(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn announcements_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Announcements<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn proxy_deposit_base( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 132u8, 178u8, 149u8, 46u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn proxy_deposit_factor( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 128u8, 102u8, 171u8, 19u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn max_proxies( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[32u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn max_pending( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[32u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn announcement_deposit_base( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 132u8, 178u8, 149u8, 46u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn announcement_deposit_factor( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 205u8, 86u8, 39u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - } - } - } - pub mod multisig { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AsMultiThreshold1 { - pub other_signatories: - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - pub call: ::std::boxed::Box, - } - impl ::subxt::Call for AsMultiThreshold1 { - const PALLET: &'static str = "Multisig"; - const FUNCTION: &'static str = "as_multi_threshold1"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AsMulti { - pub threshold: ::core::primitive::u16, - pub other_signatories: - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - pub maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - >, - pub call: - ::subxt::WrapperKeepOpaque, - pub store_call: ::core::primitive::bool, - pub max_weight: ::core::primitive::u64, - } - impl ::subxt::Call for AsMulti { - const PALLET: &'static str = "Multisig"; - const FUNCTION: &'static str = "as_multi"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ApproveAsMulti { - pub threshold: ::core::primitive::u16, - pub other_signatories: - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - pub maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - >, - pub call_hash: [::core::primitive::u8; 32usize], - pub max_weight: ::core::primitive::u64, - } - impl ::subxt::Call for ApproveAsMulti { - const PALLET: &'static str = "Multisig"; - const FUNCTION: &'static str = "approve_as_multi"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CancelAsMulti { - pub threshold: ::core::primitive::u16, - pub other_signatories: - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - pub timepoint: - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub call_hash: [::core::primitive::u8; 32usize], - } - impl ::subxt::Call for CancelAsMulti { - const PALLET: &'static str = "Multisig"; - const FUNCTION: &'static str = "cancel_as_multi"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn as_multi_threshold1( - &self, - other_signatories: ::std::vec::Vec< - ::subxt::sp_core::crypto::AccountId32, - >, - call: runtime_types::polkadot_runtime::Call, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - AsMultiThreshold1, - DispatchError, - root_mod::Event, - > { - let call = AsMultiThreshold1 { - other_signatories, - call: ::std::boxed::Box::new(call), - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn as_multi( - &self, - threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec< - ::subxt::sp_core::crypto::AccountId32, - >, - maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - >, - call: ::subxt::WrapperKeepOpaque< - runtime_types::polkadot_runtime::Call, - >, - store_call: ::core::primitive::bool, - max_weight: ::core::primitive::u64, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - AsMulti, - DispatchError, - root_mod::Event, - > { - let call = AsMulti { - threshold, - other_signatories, - maybe_timepoint, - call, - store_call, - max_weight, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn approve_as_multi( - &self, - threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec< - ::subxt::sp_core::crypto::AccountId32, - >, - maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - >, - call_hash: [::core::primitive::u8; 32usize], - max_weight: ::core::primitive::u64, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ApproveAsMulti, - DispatchError, - root_mod::Event, - > { - let call = ApproveAsMulti { - threshold, - other_signatories, - maybe_timepoint, - call_hash, - max_weight, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn cancel_as_multi( - &self, - threshold: ::core::primitive::u16, - other_signatories: ::std::vec::Vec< - ::subxt::sp_core::crypto::AccountId32, - >, - timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u32, - >, - call_hash: [::core::primitive::u8; 32usize], - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - CancelAsMulti, - DispatchError, - root_mod::Event, - > { - let call = CancelAsMulti { - threshold, - other_signatories, - timepoint, - call_hash, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("ImOnline")?; + let constant = pallet.constant("UnsignedPriority")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } - pub type Event = runtime_types::pallet_multisig::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct NewMultisig { - pub approving: ::subxt::sp_core::crypto::AccountId32, - pub multisig: ::subxt::sp_core::crypto::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], - } - impl ::subxt::Event for NewMultisig { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "NewMultisig"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct MultisigApproval { - pub approving: ::subxt::sp_core::crypto::AccountId32, - pub timepoint: - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::sp_core::crypto::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], - } - impl ::subxt::Event for MultisigApproval { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigApproval"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct MultisigExecuted { - pub approving: ::subxt::sp_core::crypto::AccountId32, - pub timepoint: - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::sp_core::crypto::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], - pub result: - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, - } - impl ::subxt::Event for MultisigExecuted { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigExecuted"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct MultisigCancelled { - pub cancelling: ::subxt::sp_core::crypto::AccountId32, - pub timepoint: - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - pub multisig: ::subxt::sp_core::crypto::AccountId32, - pub call_hash: [::core::primitive::u8; 32usize], - } - impl ::subxt::Event for MultisigCancelled { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigCancelled"; - } - } + } + pub mod authority_discovery { + use super::root_mod; + use super::runtime_types; pub mod storage { use super::runtime_types; - pub struct Multisigs<'a>( - pub &'a ::subxt::sp_core::crypto::AccountId32, - pub &'a [::core::primitive::u8; 32usize], - ); - impl ::subxt::StorageEntry for Multisigs<'_> { - const PALLET: &'static str = "Multisig"; - const STORAGE: &'static str = "Multisigs"; - type Value = runtime_types::pallet_multisig::Multisig< - ::core::primitive::u32, - ::core::primitive::u128, - ::subxt::sp_core::crypto::AccountId32, - >; + pub struct Keys; + impl ::subxt::StorageEntry for Keys { + const PALLET: &'static str = "AuthorityDiscovery"; + const STORAGE: &'static str = "Keys"; + type Value = runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: sp_authority_discovery :: app :: Public > ; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Blake2_128Concat, - ), - ]) + ::subxt::StorageEntryKey::Plain } - } - pub struct Calls<'a>(pub &'a [::core::primitive::u8; 32usize]); - impl ::subxt::StorageEntry for Calls<'_> { - const PALLET: &'static str = "Multisig"; - const STORAGE: &'static str = "Calls"; - type Value = ( - ::subxt::WrapperKeepOpaque, - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ); + } + pub struct NextKeys; + impl ::subxt::StorageEntry for NextKeys { + const PALLET: &'static str = "AuthorityDiscovery"; + const STORAGE: &'static str = "NextKeys"; + type Value = runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: sp_authority_discovery :: app :: Public > ; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) + ::subxt::StorageEntryKey::Plain } } pub struct StorageApi<'a, T: ::subxt::Config> { @@ -11687,380 +3464,369 @@ pub mod api { impl<'a, T: ::subxt::Config> StorageApi<'a, T> { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } - } - pub async fn multisigs( - &self, - _0: &::subxt::sp_core::crypto::AccountId32, - _1: &[::core::primitive::u8; 32usize], - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_multisig::Multisig< - ::core::primitive::u32, - ::core::primitive::u128, - ::subxt::sp_core::crypto::AccountId32, - >, - >, - ::subxt::BasicError, - > { - let entry = Multisigs(_0, _1); - self.client.storage().fetch(&entry, hash).await - } - pub async fn multisigs_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Multisigs<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn calls( - &self, - _0: &[::core::primitive::u8; 32usize], - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<( - ::subxt::WrapperKeepOpaque, - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - )>, - ::subxt::BasicError, - > { - let entry = Calls(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn calls_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Calls<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn deposit_base( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 140u8, 97u8, 197u8, 46u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn deposit_factor( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 208u8, 18u8, 19u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn max_signatories( - &self, - ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode(&mut &[100u8, 0u8][..])?) + } pub async fn keys (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: sp_authority_discovery :: app :: Public > , :: subxt :: BasicError >{ + let entry = Keys; + self.client.storage().fetch_or_default(&entry, hash).await + } pub async fn next_keys (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: sp_authority_discovery :: app :: Public > , :: subxt :: BasicError >{ + let entry = NextKeys; + self.client.storage().fetch_or_default(&entry, hash).await } } } } - pub mod bounties { + pub mod parachains_origin { + use super::root_mod; + use super::runtime_types; + } + pub mod configuration { use super::root_mod; use super::runtime_types; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetValidationUpgradeCooldown { + pub new: ::core::primitive::u32, + } + impl ::subxt::Call for SetValidationUpgradeCooldown { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_validation_upgrade_cooldown"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetValidationUpgradeDelay { + pub new: ::core::primitive::u32, + } + impl ::subxt::Call for SetValidationUpgradeDelay { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_validation_upgrade_delay"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetCodeRetentionPeriod { + pub new: ::core::primitive::u32, + } + impl ::subxt::Call for SetCodeRetentionPeriod { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_code_retention_period"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetMaxCodeSize { + pub new: ::core::primitive::u32, + } + impl ::subxt::Call for SetMaxCodeSize { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_max_code_size"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetMaxPovSize { + pub new: ::core::primitive::u32, + } + impl ::subxt::Call for SetMaxPovSize { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_max_pov_size"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetMaxHeadDataSize { + pub new: ::core::primitive::u32, + } + impl ::subxt::Call for SetMaxHeadDataSize { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_max_head_data_size"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetParathreadCores { + pub new: ::core::primitive::u32, + } + impl ::subxt::Call for SetParathreadCores { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_parathread_cores"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetParathreadRetries { + pub new: ::core::primitive::u32, + } + impl ::subxt::Call for SetParathreadRetries { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_parathread_retries"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetGroupRotationFrequency { + pub new: ::core::primitive::u32, + } + impl ::subxt::Call for SetGroupRotationFrequency { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_group_rotation_frequency"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetChainAvailabilityPeriod { + pub new: ::core::primitive::u32, + } + impl ::subxt::Call for SetChainAvailabilityPeriod { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_chain_availability_period"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetThreadAvailabilityPeriod { + pub new: ::core::primitive::u32, + } + impl ::subxt::Call for SetThreadAvailabilityPeriod { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_thread_availability_period"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetSchedulingLookahead { + pub new: ::core::primitive::u32, + } + impl ::subxt::Call for SetSchedulingLookahead { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_scheduling_lookahead"; + } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ProposeBounty { - #[codec(compact)] - pub value: ::core::primitive::u128, - pub description: ::std::vec::Vec<::core::primitive::u8>, + pub struct SetMaxValidatorsPerCore { + pub new: ::core::option::Option<::core::primitive::u32>, + } + impl ::subxt::Call for SetMaxValidatorsPerCore { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_max_validators_per_core"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SetMaxValidators { + pub new: ::core::option::Option<::core::primitive::u32>, + } + impl ::subxt::Call for SetMaxValidators { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_max_validators"; } - impl ::subxt::Call for ProposeBounty { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "propose_bounty"; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetDisputePeriod { + pub new: ::core::primitive::u32, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ApproveBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, + impl ::subxt::Call for SetDisputePeriod { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_dispute_period"; } - impl ::subxt::Call for ApproveBounty { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "approve_bounty"; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetDisputePostConclusionAcceptancePeriod { + pub new: ::core::primitive::u32, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ProposeCurator { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub curator: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - pub fee: ::core::primitive::u128, + impl ::subxt::Call for SetDisputePostConclusionAcceptancePeriod { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = + "set_dispute_post_conclusion_acceptance_period"; } - impl ::subxt::Call for ProposeCurator { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "propose_curator"; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetDisputeMaxSpamSlots { + pub new: ::core::primitive::u32, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct UnassignCurator { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, + impl ::subxt::Call for SetDisputeMaxSpamSlots { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_dispute_max_spam_slots"; } - impl ::subxt::Call for UnassignCurator { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "unassign_curator"; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetDisputeConclusionByTimeOutPeriod { + pub new: ::core::primitive::u32, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AcceptCurator { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, + impl ::subxt::Call for SetDisputeConclusionByTimeOutPeriod { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = + "set_dispute_conclusion_by_time_out_period"; } - impl ::subxt::Call for AcceptCurator { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "accept_curator"; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetNoShowSlots { + pub new: ::core::primitive::u32, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AwardBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub beneficiary: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, + impl ::subxt::Call for SetNoShowSlots { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_no_show_slots"; } - impl ::subxt::Call for AwardBounty { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "award_bounty"; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetNDelayTranches { + pub new: ::core::primitive::u32, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ClaimBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, + impl ::subxt::Call for SetNDelayTranches { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_n_delay_tranches"; } - impl ::subxt::Call for ClaimBounty { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "claim_bounty"; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetZerothDelayTrancheWidth { + pub new: ::core::primitive::u32, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CloseBounty { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, + impl ::subxt::Call for SetZerothDelayTrancheWidth { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_zeroth_delay_tranche_width"; } - impl ::subxt::Call for CloseBounty { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "close_bounty"; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetNeededApprovals { + pub new: ::core::primitive::u32, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ExtendBountyExpiry { - #[codec(compact)] - pub bounty_id: ::core::primitive::u32, - pub remark: ::std::vec::Vec<::core::primitive::u8>, + impl ::subxt::Call for SetNeededApprovals { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_needed_approvals"; } - impl ::subxt::Call for ExtendBountyExpiry { - const PALLET: &'static str = "Bounties"; - const FUNCTION: &'static str = "extend_bounty_expiry"; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetRelayVrfModuloSamples { + pub new: ::core::primitive::u32, } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, + impl ::subxt::Call for SetRelayVrfModuloSamples { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_relay_vrf_modulo_samples"; } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn propose_bounty( - &self, - value: ::core::primitive::u128, - description: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ProposeBounty, - DispatchError, - root_mod::Event, - > { - let call = ProposeBounty { value, description }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn approve_bounty( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ApproveBounty, - DispatchError, - root_mod::Event, - > { - let call = ApproveBounty { bounty_id }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn propose_curator( - &self, - bounty_id: ::core::primitive::u32, - curator: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - fee: ::core::primitive::u128, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ProposeCurator, - DispatchError, - root_mod::Event, - > { - let call = ProposeCurator { - bounty_id, - curator, - fee, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn unassign_curator( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - UnassignCurator, - DispatchError, - root_mod::Event, - > { - let call = UnassignCurator { bounty_id }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn accept_curator( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - AcceptCurator, - DispatchError, - root_mod::Event, - > { - let call = AcceptCurator { bounty_id }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn award_bounty( - &self, - bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - AwardBounty, - DispatchError, - root_mod::Event, - > { - let call = AwardBounty { - bounty_id, - beneficiary, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn claim_bounty( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ClaimBounty, - DispatchError, - root_mod::Event, - > { - let call = ClaimBounty { bounty_id }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn close_bounty( - &self, - bounty_id: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - CloseBounty, - DispatchError, - root_mod::Event, - > { - let call = CloseBounty { bounty_id }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn extend_bounty_expiry( - &self, - bounty_id: ::core::primitive::u32, - remark: ::std::vec::Vec<::core::primitive::u8>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ExtendBountyExpiry, - DispatchError, - root_mod::Event, - > { - let call = ExtendBountyExpiry { bounty_id, remark }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetMaxUpwardQueueCount { + pub new: ::core::primitive::u32, + } + impl ::subxt::Call for SetMaxUpwardQueueCount { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_max_upward_queue_count"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetMaxUpwardQueueSize { + pub new: ::core::primitive::u32, + } + impl ::subxt::Call for SetMaxUpwardQueueSize { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_max_upward_queue_size"; } - } - pub type Event = runtime_types::pallet_bounties::pallet::Event; - pub mod events { - use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, :: subxt :: codec :: CompactAs, )] - pub struct BountyProposed { - pub index: ::core::primitive::u32, + pub struct SetMaxDownwardMessageSize { + pub new: ::core::primitive::u32, } - impl ::subxt::Event for BountyProposed { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyProposed"; + impl ::subxt::Call for SetMaxDownwardMessageSize { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_max_downward_message_size"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct BountyRejected { - pub index: ::core::primitive::u32, - pub bond: ::core::primitive::u128, + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetUmpServiceTotalWeight { + pub new: ::core::primitive::u64, } - impl ::subxt::Event for BountyRejected { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyRejected"; + impl ::subxt::Call for SetUmpServiceTotalWeight { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_ump_service_total_weight"; } #[derive( :: subxt :: codec :: Encode, @@ -12068,31 +3834,38 @@ pub mod api { Debug, :: subxt :: codec :: CompactAs, )] - pub struct BountyBecameActive { - pub index: ::core::primitive::u32, + pub struct SetMaxUpwardMessageSize { + pub new: ::core::primitive::u32, } - impl ::subxt::Event for BountyBecameActive { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyBecameActive"; + impl ::subxt::Call for SetMaxUpwardMessageSize { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_max_upward_message_size"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct BountyAwarded { - pub index: ::core::primitive::u32, - pub beneficiary: ::subxt::sp_core::crypto::AccountId32, + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetMaxUpwardMessageNumPerCandidate { + pub new: ::core::primitive::u32, } - impl ::subxt::Event for BountyAwarded { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyAwarded"; + impl ::subxt::Call for SetMaxUpwardMessageNumPerCandidate { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_max_upward_message_num_per_candidate"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct BountyClaimed { - pub index: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - pub beneficiary: ::subxt::sp_core::crypto::AccountId32, + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetHrmpOpenRequestTtl { + pub new: ::core::primitive::u32, } - impl ::subxt::Event for BountyClaimed { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyClaimed"; + impl ::subxt::Call for SetHrmpOpenRequestTtl { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_hrmp_open_request_ttl"; } #[derive( :: subxt :: codec :: Encode, @@ -12100,12 +3873,12 @@ pub mod api { Debug, :: subxt :: codec :: CompactAs, )] - pub struct BountyCanceled { - pub index: ::core::primitive::u32, + pub struct SetHrmpSenderDeposit { + pub new: ::core::primitive::u128, } - impl ::subxt::Event for BountyCanceled { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyCanceled"; + impl ::subxt::Call for SetHrmpSenderDeposit { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_hrmp_sender_deposit"; } #[derive( :: subxt :: codec :: Encode, @@ -12113,315 +3886,172 @@ pub mod api { Debug, :: subxt :: codec :: CompactAs, )] - pub struct BountyExtended { - pub index: ::core::primitive::u32, + pub struct SetHrmpRecipientDeposit { + pub new: ::core::primitive::u128, } - impl ::subxt::Event for BountyExtended { - const PALLET: &'static str = "Bounties"; - const EVENT: &'static str = "BountyExtended"; + impl ::subxt::Call for SetHrmpRecipientDeposit { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_hrmp_recipient_deposit"; } - } - pub mod storage { - use super::runtime_types; - pub struct BountyCount; - impl ::subxt::StorageEntry for BountyCount { - const PALLET: &'static str = "Bounties"; - const STORAGE: &'static str = "BountyCount"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetHrmpChannelMaxCapacity { + pub new: ::core::primitive::u32, } - pub struct Bounties<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for Bounties<'_> { - const PALLET: &'static str = "Bounties"; - const STORAGE: &'static str = "Bounties"; - type Value = runtime_types::pallet_bounties::Bounty< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + impl ::subxt::Call for SetHrmpChannelMaxCapacity { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_hrmp_channel_max_capacity"; } - pub struct BountyDescriptions<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for BountyDescriptions<'_> { - const PALLET: &'static str = "Bounties"; - const STORAGE: &'static str = "BountyDescriptions"; - type Value = - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::core::primitive::u8, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetHrmpChannelMaxTotalSize { + pub new: ::core::primitive::u32, } - pub struct BountyApprovals; - impl ::subxt::StorageEntry for BountyApprovals { - const PALLET: &'static str = "Bounties"; - const STORAGE: &'static str = "BountyApprovals"; - type Value = - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::core::primitive::u32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + impl ::subxt::Call for SetHrmpChannelMaxTotalSize { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_hrmp_channel_max_total_size"; } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetHrmpMaxParachainInboundChannels { + pub new: ::core::primitive::u32, } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn bounty_count( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = BountyCount; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn bounties( - &self, - _0: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_bounties::Bounty< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - >, - >, - ::subxt::BasicError, - > { - let entry = Bounties(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn bounties_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Bounties<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn bounty_descriptions( - &self, - _0: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - >, - ::subxt::BasicError, - > { - let entry = BountyDescriptions(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn bounty_descriptions_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, BountyDescriptions<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn bounty_approvals( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::core::primitive::u32, - >, - ::subxt::BasicError, - > { - let entry = BountyApprovals; - self.client.storage().fetch_or_default(&entry, hash).await - } + impl ::subxt::Call for SetHrmpMaxParachainInboundChannels { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_hrmp_max_parachain_inbound_channels"; } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn bounty_deposit_base( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn bounty_deposit_payout_delay( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 194u8, 1u8, 0u8][..], - )?) - } - pub fn bounty_update_period( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[128u8, 198u8, 19u8, 0u8][..], - )?) - } - pub fn bounty_curator_deposit( - &self, - ) -> ::core::result::Result< - runtime_types::sp_arithmetic::per_things::Permill, - ::subxt::BasicError, - > { - Ok(::subxt::codec::Decode::decode( - &mut &[32u8, 161u8, 7u8, 0u8][..], - )?) - } - pub fn bounty_value_minimum( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 232u8, 118u8, 72u8, 23u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn data_deposit_per_byte( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 225u8, 245u8, 5u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn maximum_reason_length( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 64u8, 0u8, 0u8][..], - )?) - } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetHrmpMaxParathreadInboundChannels { + pub new: ::core::primitive::u32, + } + impl ::subxt::Call for SetHrmpMaxParathreadInboundChannels { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_hrmp_max_parathread_inbound_channels"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetHrmpChannelMaxMessageSize { + pub new: ::core::primitive::u32, } - } - } - pub mod child_bounties { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AddChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub value: ::core::primitive::u128, - pub description: ::std::vec::Vec<::core::primitive::u8>, + impl ::subxt::Call for SetHrmpChannelMaxMessageSize { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_hrmp_channel_max_message_size"; } - impl ::subxt::Call for AddChildBounty { - const PALLET: &'static str = "ChildBounties"; - const FUNCTION: &'static str = "add_child_bounty"; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetHrmpMaxParachainOutboundChannels { + pub new: ::core::primitive::u32, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ProposeCurator { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - pub curator: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - pub fee: ::core::primitive::u128, + impl ::subxt::Call for SetHrmpMaxParachainOutboundChannels { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_hrmp_max_parachain_outbound_channels"; } - impl ::subxt::Call for ProposeCurator { - const PALLET: &'static str = "ChildBounties"; - const FUNCTION: &'static str = "propose_curator"; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetHrmpMaxParathreadOutboundChannels { + pub new: ::core::primitive::u32, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AcceptCurator { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, + impl ::subxt::Call for SetHrmpMaxParathreadOutboundChannels { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = + "set_hrmp_max_parathread_outbound_channels"; } - impl ::subxt::Call for AcceptCurator { - const PALLET: &'static str = "ChildBounties"; - const FUNCTION: &'static str = "accept_curator"; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetHrmpMaxMessageNumPerCandidate { + pub new: ::core::primitive::u32, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct UnassignCurator { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, + impl ::subxt::Call for SetHrmpMaxMessageNumPerCandidate { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_hrmp_max_message_num_per_candidate"; } - impl ::subxt::Call for UnassignCurator { - const PALLET: &'static str = "ChildBounties"; - const FUNCTION: &'static str = "unassign_curator"; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetUmpMaxIndividualWeight { + pub new: ::core::primitive::u64, + } + impl ::subxt::Call for SetUmpMaxIndividualWeight { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_ump_max_individual_weight"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AwardChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, - pub beneficiary: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, + pub struct SetPvfCheckingEnabled { + pub new: ::core::primitive::bool, } - impl ::subxt::Call for AwardChildBounty { - const PALLET: &'static str = "ChildBounties"; - const FUNCTION: &'static str = "award_child_bounty"; + impl ::subxt::Call for SetPvfCheckingEnabled { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_pvf_checking_enabled"; } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ClaimChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetPvfVotingTtl { + pub new: ::core::primitive::u32, + } + impl ::subxt::Call for SetPvfVotingTtl { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_pvf_voting_ttl"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct SetMinimumValidationUpgradeDelay { + pub new: ::core::primitive::u32, } - impl ::subxt::Call for ClaimChildBounty { - const PALLET: &'static str = "ChildBounties"; - const FUNCTION: &'static str = "claim_child_bounty"; + impl ::subxt::Call for SetMinimumValidationUpgradeDelay { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_minimum_validation_upgrade_delay"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CloseChildBounty { - #[codec(compact)] - pub parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - pub child_bounty_id: ::core::primitive::u32, + pub struct SetBypassConsistencyCheck { + pub new: ::core::primitive::bool, } - impl ::subxt::Call for CloseChildBounty { - const PALLET: &'static str = "ChildBounties"; - const FUNCTION: &'static str = "close_child_bounty"; + impl ::subxt::Call for SetBypassConsistencyCheck { + const PALLET: &'static str = "Configuration"; + const FUNCTION: &'static str = "set_bypass_consistency_check"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -12438,1091 +4068,768 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn add_child_bounty( + pub fn set_validation_upgrade_cooldown( + &self, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetValidationUpgradeCooldown, + DispatchError, + root_mod::Event, + > { + let call = SetValidationUpgradeCooldown { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_validation_upgrade_delay( + &self, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetValidationUpgradeDelay, + DispatchError, + root_mod::Event, + > { + let call = SetValidationUpgradeDelay { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_code_retention_period( + &self, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetCodeRetentionPeriod, + DispatchError, + root_mod::Event, + > { + let call = SetCodeRetentionPeriod { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_max_code_size( + &self, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetMaxCodeSize, + DispatchError, + root_mod::Event, + > { + let call = SetMaxCodeSize { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_max_pov_size( + &self, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetMaxPovSize, + DispatchError, + root_mod::Event, + > { + let call = SetMaxPovSize { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_max_head_data_size( + &self, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetMaxHeadDataSize, + DispatchError, + root_mod::Event, + > { + let call = SetMaxHeadDataSize { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_parathread_cores( + &self, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetParathreadCores, + DispatchError, + root_mod::Event, + > { + let call = SetParathreadCores { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_parathread_retries( + &self, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetParathreadRetries, + DispatchError, + root_mod::Event, + > { + let call = SetParathreadRetries { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_group_rotation_frequency( + &self, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetGroupRotationFrequency, + DispatchError, + root_mod::Event, + > { + let call = SetGroupRotationFrequency { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_chain_availability_period( + &self, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetChainAvailabilityPeriod, + DispatchError, + root_mod::Event, + > { + let call = SetChainAvailabilityPeriod { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_thread_availability_period( &self, - parent_bounty_id: ::core::primitive::u32, - value: ::core::primitive::u128, - description: ::std::vec::Vec<::core::primitive::u8>, + new: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - AddChildBounty, + SetThreadAvailabilityPeriod, DispatchError, root_mod::Event, > { - let call = AddChildBounty { - parent_bounty_id, - value, - description, - }; + let call = SetThreadAvailabilityPeriod { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn propose_curator( + pub fn set_scheduling_lookahead( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - curator: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - fee: ::core::primitive::u128, + new: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ProposeCurator, + SetSchedulingLookahead, DispatchError, root_mod::Event, > { - let call = ProposeCurator { - parent_bounty_id, - child_bounty_id, - curator, - fee, - }; + let call = SetSchedulingLookahead { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn accept_curator( + pub fn set_max_validators_per_core( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, + new: ::core::option::Option<::core::primitive::u32>, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - AcceptCurator, + SetMaxValidatorsPerCore, DispatchError, root_mod::Event, > { - let call = AcceptCurator { - parent_bounty_id, - child_bounty_id, - }; + let call = SetMaxValidatorsPerCore { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn unassign_curator( + pub fn set_max_validators( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, + new: ::core::option::Option<::core::primitive::u32>, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - UnassignCurator, + SetMaxValidators, DispatchError, root_mod::Event, > { - let call = UnassignCurator { - parent_bounty_id, - child_bounty_id, - }; + let call = SetMaxValidators { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn award_child_bounty( + pub fn set_dispute_period( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, + new: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - AwardChildBounty, + SetDisputePeriod, DispatchError, root_mod::Event, > { - let call = AwardChildBounty { - parent_bounty_id, - child_bounty_id, - beneficiary, - }; + let call = SetDisputePeriod { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn claim_child_bounty( + pub fn set_dispute_post_conclusion_acceptance_period( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, + new: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ClaimChildBounty, + SetDisputePostConclusionAcceptancePeriod, DispatchError, root_mod::Event, > { - let call = ClaimChildBounty { - parent_bounty_id, - child_bounty_id, - }; + let call = SetDisputePostConclusionAcceptancePeriod { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn close_child_bounty( + pub fn set_dispute_max_spam_slots( &self, - parent_bounty_id: ::core::primitive::u32, - child_bounty_id: ::core::primitive::u32, + new: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - CloseChildBounty, + SetDisputeMaxSpamSlots, DispatchError, root_mod::Event, > { - let call = CloseChildBounty { - parent_bounty_id, - child_bounty_id, - }; + let call = SetDisputeMaxSpamSlots { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - } - 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)] - pub struct Added { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - } - impl ::subxt::Event for Added { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Added"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Awarded { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - pub beneficiary: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Event for Awarded { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Awarded"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Claimed { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - pub payout: ::core::primitive::u128, - pub beneficiary: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Event for Claimed { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Claimed"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Canceled { - pub index: ::core::primitive::u32, - pub child_index: ::core::primitive::u32, - } - impl ::subxt::Event for Canceled { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Canceled"; - } - } - pub mod storage { - use super::runtime_types; - pub struct ChildBountyCount; - impl ::subxt::StorageEntry for ChildBountyCount { - const PALLET: &'static str = "ChildBounties"; - const STORAGE: &'static str = "ChildBountyCount"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct ParentChildBounties<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for ParentChildBounties<'_> { - const PALLET: &'static str = "ChildBounties"; - const STORAGE: &'static str = "ParentChildBounties"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct ChildBounties<'a>( - pub &'a ::core::primitive::u32, - pub &'a ::core::primitive::u32, - ); - impl ::subxt::StorageEntry for ChildBounties<'_> { - const PALLET: &'static str = "ChildBounties"; - const STORAGE: &'static str = "ChildBounties"; - type Value = runtime_types::pallet_child_bounties::ChildBounty< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Twox64Concat, - ), - ]) - } - } - pub struct ChildBountyDescriptions<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for ChildBountyDescriptions<'_> { - const PALLET: &'static str = "ChildBounties"; - const STORAGE: &'static str = "ChildBountyDescriptions"; - type Value = - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::core::primitive::u8, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct ChildrenCuratorFees<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for ChildrenCuratorFees<'_> { - const PALLET: &'static str = "ChildBounties"; - const STORAGE: &'static str = "ChildrenCuratorFees"; - type Value = ::core::primitive::u128; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn child_bounty_count( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = ChildBountyCount; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn parent_child_bounties( - &self, - _0: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = ParentChildBounties(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn parent_child_bounties_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ParentChildBounties<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn child_bounties( + pub fn set_dispute_conclusion_by_time_out_period( &self, - _0: &::core::primitive::u32, - _1: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_child_bounties::ChildBounty< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - >, - >, - ::subxt::BasicError, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetDisputeConclusionByTimeOutPeriod, + DispatchError, + root_mod::Event, > { - let entry = ChildBounties(_0, _1); - self.client.storage().fetch(&entry, hash).await + let call = SetDisputeConclusionByTimeOutPeriod { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn child_bounties_iter( + pub fn set_no_show_slots( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ChildBounties<'a>>, - ::subxt::BasicError, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetNoShowSlots, + DispatchError, + root_mod::Event, > { - self.client.storage().iter(hash).await + let call = SetNoShowSlots { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn child_bounty_descriptions( + pub fn set_n_delay_tranches( &self, - _0: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - >, - ::subxt::BasicError, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetNDelayTranches, + DispatchError, + root_mod::Event, > { - let entry = ChildBountyDescriptions(_0); - self.client.storage().fetch(&entry, hash).await + let call = SetNDelayTranches { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn child_bounty_descriptions_iter( + pub fn set_zeroth_delay_tranche_width( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ChildBountyDescriptions<'a>>, - ::subxt::BasicError, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetZerothDelayTrancheWidth, + DispatchError, + root_mod::Event, > { - self.client.storage().iter(hash).await - } - pub async fn children_curator_fees( - &self, - _0: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - let entry = ChildrenCuratorFees(_0); - self.client.storage().fetch_or_default(&entry, hash).await + let call = SetZerothDelayTrancheWidth { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn children_curator_fees_iter( + pub fn set_needed_approvals( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ChildrenCuratorFees<'a>>, - ::subxt::BasicError, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetNeededApprovals, + DispatchError, + root_mod::Event, > { - self.client.storage().iter(hash).await - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn max_active_child_bounty_count( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn child_bounty_value_minimum( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let call = SetNeededApprovals { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn child_bounty_curator_deposit_base( + pub fn set_relay_vrf_modulo_samples( &self, - ) -> ::core::result::Result< - runtime_types::sp_arithmetic::per_things::Permill, - ::subxt::BasicError, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetRelayVrfModuloSamples, + DispatchError, + root_mod::Event, > { - Ok(::subxt::codec::Decode::decode( - &mut &[16u8, 39u8, 0u8, 0u8][..], - )?) - } - } - } - } - pub mod tips { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ReportAwesome { - pub reason: ::std::vec::Vec<::core::primitive::u8>, - pub who: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Call for ReportAwesome { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "report_awesome"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct RetractTip { - pub hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for RetractTip { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "retract_tip"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct TipNew { - pub reason: ::std::vec::Vec<::core::primitive::u8>, - pub who: ::subxt::sp_core::crypto::AccountId32, - #[codec(compact)] - pub tip_value: ::core::primitive::u128, - } - impl ::subxt::Call for TipNew { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "tip_new"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Tip { - pub hash: ::subxt::sp_core::H256, - #[codec(compact)] - pub tip_value: ::core::primitive::u128, - } - impl ::subxt::Call for Tip { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "tip"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CloseTip { - pub hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for CloseTip { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "close_tip"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SlashTip { - pub hash: ::subxt::sp_core::H256, - } - impl ::subxt::Call for SlashTip { - const PALLET: &'static str = "Tips"; - const FUNCTION: &'static str = "slash_tip"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } + let call = SetRelayVrfModuloSamples { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn report_awesome( + pub fn set_max_upward_queue_count( &self, - reason: ::std::vec::Vec<::core::primitive::u8>, - who: ::subxt::sp_core::crypto::AccountId32, + new: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ReportAwesome, + SetMaxUpwardQueueCount, DispatchError, root_mod::Event, > { - let call = ReportAwesome { reason, who }; + let call = SetMaxUpwardQueueCount { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn retract_tip( + pub fn set_max_upward_queue_size( &self, - hash: ::subxt::sp_core::H256, + new: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - RetractTip, + SetMaxUpwardQueueSize, DispatchError, root_mod::Event, > { - let call = RetractTip { hash }; + let call = SetMaxUpwardQueueSize { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn tip_new( + pub fn set_max_downward_message_size( &self, - reason: ::std::vec::Vec<::core::primitive::u8>, - who: ::subxt::sp_core::crypto::AccountId32, - tip_value: ::core::primitive::u128, + new: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - TipNew, + SetMaxDownwardMessageSize, DispatchError, root_mod::Event, > { - let call = TipNew { - reason, - who, - tip_value, - }; + let call = SetMaxDownwardMessageSize { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn tip( + pub fn set_ump_service_total_weight( &self, - hash: ::subxt::sp_core::H256, - tip_value: ::core::primitive::u128, + new: ::core::primitive::u64, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Tip, + SetUmpServiceTotalWeight, DispatchError, root_mod::Event, > { - let call = Tip { hash, tip_value }; + let call = SetUmpServiceTotalWeight { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn close_tip( + pub fn set_max_upward_message_size( &self, - hash: ::subxt::sp_core::H256, + new: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - CloseTip, + SetMaxUpwardMessageSize, DispatchError, root_mod::Event, > { - let call = CloseTip { hash }; + let call = SetMaxUpwardMessageSize { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn slash_tip( + pub fn set_max_upward_message_num_per_candidate( &self, - hash: ::subxt::sp_core::H256, + new: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SlashTip, + SetMaxUpwardMessageNumPerCandidate, DispatchError, root_mod::Event, > { - let call = SlashTip { hash }; + let call = SetMaxUpwardMessageNumPerCandidate { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - } - pub type Event = runtime_types::pallet_tips::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct NewTip { - pub tip_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Event for NewTip { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "NewTip"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct TipClosing { - pub tip_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Event for TipClosing { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipClosing"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct TipClosed { - pub tip_hash: ::subxt::sp_core::H256, - pub who: ::subxt::sp_core::crypto::AccountId32, - pub payout: ::core::primitive::u128, - } - impl ::subxt::Event for TipClosed { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipClosed"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct TipRetracted { - pub tip_hash: ::subxt::sp_core::H256, - } - impl ::subxt::Event for TipRetracted { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipRetracted"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct TipSlashed { - pub tip_hash: ::subxt::sp_core::H256, - pub finder: ::subxt::sp_core::crypto::AccountId32, - pub deposit: ::core::primitive::u128, - } - impl ::subxt::Event for TipSlashed { - const PALLET: &'static str = "Tips"; - const EVENT: &'static str = "TipSlashed"; - } - } - pub mod storage { - use super::runtime_types; - pub struct Tips<'a>(pub &'a ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for Tips<'_> { - const PALLET: &'static str = "Tips"; - const STORAGE: &'static str = "Tips"; - type Value = runtime_types::pallet_tips::OpenTip< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - ::subxt::sp_core::H256, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct Reasons<'a>(pub &'a ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for Reasons<'_> { - const PALLET: &'static str = "Tips"; - const STORAGE: &'static str = "Reasons"; - type Value = ::std::vec::Vec<::core::primitive::u8>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, - )]) - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } + pub fn set_hrmp_open_request_ttl( + &self, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetHrmpOpenRequestTtl, + DispatchError, + root_mod::Event, + > { + let call = SetHrmpOpenRequestTtl { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn tips( + pub fn set_hrmp_sender_deposit( &self, - _0: &::subxt::sp_core::H256, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_tips::OpenTip< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - ::subxt::sp_core::H256, - >, - >, - ::subxt::BasicError, + new: ::core::primitive::u128, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetHrmpSenderDeposit, + DispatchError, + root_mod::Event, > { - let entry = Tips(_0); - self.client.storage().fetch(&entry, hash).await + let call = SetHrmpSenderDeposit { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn tips_iter( + pub fn set_hrmp_recipient_deposit( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Tips<'a>>, - ::subxt::BasicError, + new: ::core::primitive::u128, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetHrmpRecipientDeposit, + DispatchError, + root_mod::Event, > { - self.client.storage().iter(hash).await + let call = SetHrmpRecipientDeposit { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn reasons( + pub fn set_hrmp_channel_max_capacity( &self, - _0: &::subxt::sp_core::H256, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, - ::subxt::BasicError, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetHrmpChannelMaxCapacity, + DispatchError, + root_mod::Event, > { - let entry = Reasons(_0); - self.client.storage().fetch(&entry, hash).await + let call = SetHrmpChannelMaxCapacity { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn reasons_iter( + pub fn set_hrmp_channel_max_total_size( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Reasons<'a>>, - ::subxt::BasicError, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetHrmpChannelMaxTotalSize, + DispatchError, + root_mod::Event, > { - self.client.storage().iter(hash).await + let call = SetHrmpChannelMaxTotalSize { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn maximum_reason_length( + pub fn set_hrmp_max_parachain_inbound_channels( &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 64u8, 0u8, 0u8][..], - )?) + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetHrmpMaxParachainInboundChannels, + DispatchError, + root_mod::Event, + > { + let call = SetHrmpMaxParachainInboundChannels { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn data_deposit_per_byte( + pub fn set_hrmp_max_parathread_inbound_channels( &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 225u8, 245u8, 5u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetHrmpMaxParathreadInboundChannels, + DispatchError, + root_mod::Event, + > { + let call = SetHrmpMaxParathreadInboundChannels { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn tip_countdown( + pub fn set_hrmp_channel_max_message_size( &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[64u8, 56u8, 0u8, 0u8][..], - )?) + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetHrmpChannelMaxMessageSize, + DispatchError, + root_mod::Event, + > { + let call = SetHrmpChannelMaxMessageSize { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn tip_finders_fee( + pub fn set_hrmp_max_parachain_outbound_channels( &self, - ) -> ::core::result::Result< - runtime_types::sp_arithmetic::per_things::Percent, - ::subxt::BasicError, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetHrmpMaxParachainOutboundChannels, + DispatchError, + root_mod::Event, > { - Ok(::subxt::codec::Decode::decode(&mut &[20u8][..])?) + let call = SetHrmpMaxParachainOutboundChannels { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn tip_report_deposit_base( + pub fn set_hrmp_max_parathread_outbound_channels( &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetHrmpMaxParathreadOutboundChannels, + DispatchError, + root_mod::Event, + > { + let call = SetHrmpMaxParathreadOutboundChannels { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - } - } - pub mod election_provider_multi_phase { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] - pub struct SetMinimumUntrustedScore { - pub maybe_next_score: ::core::option::Option< - runtime_types::sp_npos_elections::ElectionScore, - >, - } - impl ::subxt::Call for SetMinimumUntrustedScore { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const FUNCTION: &'static str = "set_minimum_untrusted_score"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetEmergencyElectionResult { - pub supports: ::std::vec::Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::sp_core::crypto::AccountId32, - >, - )>, - } - impl ::subxt::Call for SetEmergencyElectionResult { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const FUNCTION: &'static str = "set_emergency_election_result"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Submit { - pub raw_solution: ::std::boxed::Box< - runtime_types::pallet_election_provider_multi_phase::RawSolution< - runtime_types::polkadot_runtime::NposCompactSolution16, - >, - >, - } - impl ::subxt::Call for Submit { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const FUNCTION: &'static str = "submit"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct GovernanceFallback { - pub maybe_max_voters: ::core::option::Option<::core::primitive::u32>, - pub maybe_max_targets: ::core::option::Option<::core::primitive::u32>, - } - impl ::subxt::Call for GovernanceFallback { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const FUNCTION: &'static str = "governance_fallback"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } + pub fn set_hrmp_max_message_num_per_candidate( + &self, + new: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetHrmpMaxMessageNumPerCandidate, + DispatchError, + root_mod::Event, + > { + let call = SetHrmpMaxMessageNumPerCandidate { new }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn submit_unsigned( + pub fn set_ump_max_individual_weight( &self, - raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 >, - witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, + new: ::core::primitive::u64, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SubmitUnsigned, + SetUmpMaxIndividualWeight, DispatchError, root_mod::Event, > { - let call = SubmitUnsigned { - raw_solution: ::std::boxed::Box::new(raw_solution), - witness, - }; + let call = SetUmpMaxIndividualWeight { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_minimum_untrusted_score( + pub fn set_pvf_checking_enabled( &self, - maybe_next_score: ::core::option::Option< - runtime_types::sp_npos_elections::ElectionScore, - >, + new: ::core::primitive::bool, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SetMinimumUntrustedScore, + SetPvfCheckingEnabled, DispatchError, root_mod::Event, > { - let call = SetMinimumUntrustedScore { maybe_next_score }; + let call = SetPvfCheckingEnabled { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_emergency_election_result( + pub fn set_pvf_voting_ttl( &self, - supports: ::std::vec::Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::sp_core::crypto::AccountId32, - >, - )>, + new: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SetEmergencyElectionResult, + SetPvfVotingTtl, DispatchError, root_mod::Event, > { - let call = SetEmergencyElectionResult { supports }; + let call = SetPvfVotingTtl { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn submit( + pub fn set_minimum_validation_upgrade_delay( &self, - raw_solution : runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 >, + new: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Submit, + SetMinimumValidationUpgradeDelay, DispatchError, root_mod::Event, > { - let call = Submit { - raw_solution: ::std::boxed::Box::new(raw_solution), - }; + let call = SetMinimumValidationUpgradeDelay { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn governance_fallback( + pub fn set_bypass_consistency_check( &self, - maybe_max_voters: ::core::option::Option<::core::primitive::u32>, - maybe_max_targets: ::core::option::Option<::core::primitive::u32>, + new: ::core::primitive::bool, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - GovernanceFallback, + SetBypassConsistencyCheck, DispatchError, root_mod::Event, > { - let call = GovernanceFallback { - maybe_max_voters, - maybe_max_targets, - }; + let call = SetBypassConsistencyCheck { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = - runtime_types::pallet_election_provider_multi_phase::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SolutionStored { - pub election_compute: - runtime_types::pallet_election_provider_multi_phase::ElectionCompute, - pub prev_ejected: ::core::primitive::bool, - } - impl ::subxt::Event for SolutionStored { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "SolutionStored"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ElectionFinalized { - pub election_compute: ::core::option::Option< - runtime_types::pallet_election_provider_multi_phase::ElectionCompute, - >, - } - impl ::subxt::Event for ElectionFinalized { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "ElectionFinalized"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Rewarded { - pub account: ::subxt::sp_core::crypto::AccountId32, - pub value: ::core::primitive::u128, - } - impl ::subxt::Event for Rewarded { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Rewarded"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Slashed { - pub account: ::subxt::sp_core::crypto::AccountId32, - pub value: ::core::primitive::u128, - } - impl ::subxt::Event for Slashed { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "Slashed"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SignedPhaseStarted { - pub round: ::core::primitive::u32, - } - impl ::subxt::Event for SignedPhaseStarted { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "SignedPhaseStarted"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct UnsignedPhaseStarted { - pub round: ::core::primitive::u32, - } - impl ::subxt::Event for UnsignedPhaseStarted { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const EVENT: &'static str = "UnsignedPhaseStarted"; - } - } pub mod storage { use super::runtime_types; - pub struct Round; - impl ::subxt::StorageEntry for Round { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "Round"; - type Value = ::core::primitive::u32; + pub struct ActiveConfig; + impl ::subxt::StorageEntry for ActiveConfig { + const PALLET: &'static str = "Configuration"; + const STORAGE: &'static str = "ActiveConfig"; + type Value = runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct CurrentPhase; - impl ::subxt::StorageEntry for CurrentPhase { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "CurrentPhase"; - type Value = runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u32, - >; + pub struct PendingConfig<'a>(pub &'a ::core::primitive::u32); + impl ::subxt::StorageEntry for PendingConfig<'_> { + const PALLET: &'static str = "Configuration"; + const STORAGE: &'static str = "PendingConfig"; + type Value = runtime_types :: polkadot_runtime_parachains :: configuration :: migration :: v1 :: HostConfiguration < :: core :: primitive :: u32 > ; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) } } - pub struct QueuedSolution; - impl ::subxt::StorageEntry for QueuedSolution { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "QueuedSolution"; - type Value = - runtime_types::pallet_election_provider_multi_phase::ReadySolution< - ::subxt::sp_core::crypto::AccountId32, - >; + pub struct PendingConfigs; + impl ::subxt::StorageEntry for PendingConfigs { + const PALLET: &'static str = "Configuration"; + const STORAGE: &'static str = "PendingConfigs"; + type Value = :: std :: vec :: Vec < (:: core :: primitive :: u32 , runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ,) > ; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct Snapshot; - impl ::subxt::StorageEntry for Snapshot { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "Snapshot"; - type Value = - runtime_types::pallet_election_provider_multi_phase::RoundSnapshot; + pub struct BypassConsistencyCheck; + impl ::subxt::StorageEntry for BypassConsistencyCheck { + const PALLET: &'static str = "Configuration"; + const STORAGE: &'static str = "BypassConsistencyCheck"; + type Value = ::core::primitive::bool; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct DesiredTargets; - impl ::subxt::StorageEntry for DesiredTargets { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "DesiredTargets"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub async fn active_config (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > , :: subxt :: BasicError >{ + let entry = ActiveConfig; + self.client.storage().fetch_or_default(&entry, hash).await + } pub async fn pending_config (& self , _0 : & :: core :: primitive :: u32 , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: configuration :: migration :: v1 :: HostConfiguration < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ + let entry = PendingConfig(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn pending_config_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, PendingConfig<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } pub async fn pending_configs (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < (:: core :: primitive :: u32 , runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ,) > , :: subxt :: BasicError >{ + let entry = PendingConfigs; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn bypass_consistency_check( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> + { + let entry = BypassConsistencyCheck; + self.client.storage().fetch_or_default(&entry, hash).await } } - pub struct SnapshotMetadata; - impl ::subxt::StorageEntry for SnapshotMetadata { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "SnapshotMetadata"; - type Value = runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + } + } + pub mod paras_shared { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } } } - pub struct SignedSubmissionNextIndex; - impl ::subxt::StorageEntry for SignedSubmissionNextIndex { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "SignedSubmissionNextIndex"; + } + pub mod storage { + use super::runtime_types; + pub struct CurrentSessionIndex; + impl ::subxt::StorageEntry for CurrentSessionIndex { + const PALLET: &'static str = "ParasShared"; + const STORAGE: &'static str = "CurrentSessionIndex"; type Value = ::core::primitive::u32; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct SignedSubmissionIndices; - impl ::subxt::StorageEntry for SignedSubmissionIndices { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "SignedSubmissionIndices"; - type Value = runtime_types :: frame_support :: storage :: bounded_btree_map :: BoundedBTreeMap < runtime_types :: sp_npos_elections :: ElectionScore , :: core :: primitive :: u32 > ; + pub struct ActiveValidatorIndices; + impl ::subxt::StorageEntry for ActiveValidatorIndices { + const PALLET: &'static str = "ParasShared"; + const STORAGE: &'static str = "ActiveValidatorIndices"; + type Value = ::std::vec::Vec< + runtime_types::polkadot_primitives::v2::ValidatorIndex, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct SignedSubmissionsMap<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for SignedSubmissionsMap<'_> { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "SignedSubmissionsMap"; - type Value = runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: sp_core :: crypto :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: polkadot_runtime :: NposCompactSolution16 > ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct MinimumUntrustedScore; - impl ::subxt::StorageEntry for MinimumUntrustedScore { - const PALLET: &'static str = "ElectionProviderMultiPhase"; - const STORAGE: &'static str = "MinimumUntrustedScore"; - type Value = runtime_types::sp_npos_elections::ElectionScore; + pub struct ActiveValidatorKeys; + impl ::subxt::StorageEntry for ActiveValidatorKeys { + const PALLET: &'static str = "ParasShared"; + const STORAGE: &'static str = "ActiveValidatorKeys"; + type Value = ::std::vec::Vec< + runtime_types::polkadot_primitives::v2::validator_app::Public, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } @@ -13534,244 +4841,48 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn round( + pub async fn current_session_index( &self, hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let entry = Round; + let entry = CurrentSessionIndex; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn current_phase( + pub async fn active_validator_indices( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::pallet_election_provider_multi_phase::Phase< - ::core::primitive::u32, + ::std::vec::Vec< + runtime_types::polkadot_primitives::v2::ValidatorIndex, >, ::subxt::BasicError, > { - let entry = CurrentPhase; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn queued_solution (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: ReadySolution < :: subxt :: sp_core :: crypto :: AccountId32 > > , :: subxt :: BasicError >{ - let entry = QueuedSolution; - self.client.storage().fetch(&entry, hash).await - } pub async fn snapshot (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: RoundSnapshot > , :: subxt :: BasicError >{ - let entry = Snapshot; - self.client.storage().fetch(&entry, hash).await - } - pub async fn desired_targets( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = DesiredTargets; - self.client.storage().fetch(&entry, hash).await - } pub async fn snapshot_metadata (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize > , :: subxt :: BasicError >{ - let entry = SnapshotMetadata; - self.client.storage().fetch(&entry, hash).await - } - pub async fn signed_submission_next_index( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = SignedSubmissionNextIndex; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn signed_submission_indices (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: frame_support :: storage :: bounded_btree_map :: BoundedBTreeMap < runtime_types :: sp_npos_elections :: ElectionScore , :: core :: primitive :: u32 > , :: subxt :: BasicError >{ - let entry = SignedSubmissionIndices; + let entry = ActiveValidatorIndices; self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn signed_submissions_map (& self , _0 : & :: core :: primitive :: u32 , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: sp_core :: crypto :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , :: subxt :: BasicError >{ - let entry = SignedSubmissionsMap(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn signed_submissions_map_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, SignedSubmissionsMap<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await } - pub async fn minimum_untrusted_score( + pub async fn active_validator_keys( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::sp_npos_elections::ElectionScore, + ::std::vec::Vec< + runtime_types::polkadot_primitives::v2::validator_app::Public, >, ::subxt::BasicError, > { - let entry = MinimumUntrustedScore; - self.client.storage().fetch(&entry, hash).await - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn unsigned_phase( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[88u8, 2u8, 0u8, 0u8][..], - )?) - } - pub fn signed_phase( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[88u8, 2u8, 0u8, 0u8][..], - )?) - } - pub fn solution_improvement_threshold( - &self, - ) -> ::core::result::Result< - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::BasicError, - > { - Ok(::subxt::codec::Decode::decode( - &mut &[32u8, 161u8, 7u8, 0u8][..], - )?) - } - pub fn offchain_repeat( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[18u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn miner_tx_priority( - &self, - ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[101u8, 102u8, 102u8, 102u8, 102u8, 102u8, 102u8, 230u8][..], - )?) - } - pub fn miner_max_weight( - &self, - ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[192u8, 132u8, 102u8, 101u8, 87u8, 1u8, 0u8, 0u8][..], - )?) - } - pub fn signed_max_submissions( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[16u8, 0u8, 0u8, 0u8][..], - )?) - } - pub fn signed_max_weight( - &self, - ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[192u8, 132u8, 102u8, 101u8, 87u8, 1u8, 0u8, 0u8][..], - )?) - } - pub fn signed_reward_base( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn signed_deposit_base( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 160u8, 219u8, 33u8, 93u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn signed_deposit_byte( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 120u8, 125u8, 1u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn signed_deposit_weight( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn max_electing_voters( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[228u8, 87u8, 0u8, 0u8][..], - )?) - } - pub fn max_electable_targets( - &self, - ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode(&mut &[255u8, 255u8][..])?) - } - pub fn miner_max_length( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 0u8, 54u8, 0u8][..], - )?) + let entry = ActiveValidatorKeys; + self.client.storage().fetch_or_default(&entry, hash).await } } } } - pub mod bags_list { + pub mod para_inclusion { use super::root_mod; use super::runtime_types; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Rebag { - pub dislocated: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Call for Rebag { - const PALLET: &'static str = "BagsList"; - const FUNCTION: &'static str = "rebag"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PutInFrontOf { - pub lighter: ::subxt::sp_core::crypto::AccountId32, - } - impl ::subxt::Call for PutInFrontOf { - const PALLET: &'static str = "BagsList"; - const FUNCTION: &'static str = "put_in_front_of"; - } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, marker: ::core::marker::PhantomData, @@ -13787,57 +4898,60 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn rebag( - &self, - dislocated: ::subxt::sp_core::crypto::AccountId32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Rebag, - DispatchError, - root_mod::Event, - > { - let call = Rebag { dislocated }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn put_in_front_of( - &self, - lighter: ::subxt::sp_core::crypto::AccountId32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - PutInFrontOf, - DispatchError, - root_mod::Event, - > { - let call = PutInFrontOf { lighter }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } } } - pub type Event = runtime_types::pallet_bags_list::pallet::Event; + pub type Event = + runtime_types::polkadot_runtime_parachains::inclusion::pallet::Event; pub mod events { use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Rebagged { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub from: ::core::primitive::u64, - pub to: ::core::primitive::u64, + pub struct CandidateBacked( + pub runtime_types::polkadot_primitives::v2::CandidateReceipt< + ::subxt::sp_core::H256, + >, + pub runtime_types::polkadot_parachain::primitives::HeadData, + pub runtime_types::polkadot_primitives::v2::CoreIndex, + pub runtime_types::polkadot_primitives::v2::GroupIndex, + ); + impl ::subxt::Event for CandidateBacked { + const PALLET: &'static str = "ParaInclusion"; + const EVENT: &'static str = "CandidateBacked"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct CandidateIncluded( + pub runtime_types::polkadot_primitives::v2::CandidateReceipt< + ::subxt::sp_core::H256, + >, + pub runtime_types::polkadot_parachain::primitives::HeadData, + pub runtime_types::polkadot_primitives::v2::CoreIndex, + pub runtime_types::polkadot_primitives::v2::GroupIndex, + ); + impl ::subxt::Event for CandidateIncluded { + const PALLET: &'static str = "ParaInclusion"; + const EVENT: &'static str = "CandidateIncluded"; } - impl ::subxt::Event for Rebagged { - const PALLET: &'static str = "BagsList"; - const EVENT: &'static str = "Rebagged"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct CandidateTimedOut( + pub runtime_types::polkadot_primitives::v2::CandidateReceipt< + ::subxt::sp_core::H256, + >, + pub runtime_types::polkadot_parachain::primitives::HeadData, + pub runtime_types::polkadot_primitives::v2::CoreIndex, + ); + impl ::subxt::Event for CandidateTimedOut { + const PALLET: &'static str = "ParaInclusion"; + const EVENT: &'static str = "CandidateTimedOut"; } } pub mod storage { use super::runtime_types; - pub struct ListNodes<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); - impl ::subxt::StorageEntry for ListNodes<'_> { - const PALLET: &'static str = "BagsList"; - const STORAGE: &'static str = "ListNodes"; - type Value = runtime_types::pallet_bags_list::list::Node; + pub struct AvailabilityBitfields<'a>( + pub &'a runtime_types::polkadot_primitives::v2::ValidatorIndex, + ); + impl ::subxt::StorageEntry for AvailabilityBitfields<'_> { + const PALLET: &'static str = "ParaInclusion"; + const STORAGE: &'static str = "AvailabilityBitfields"; + type Value = runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > ; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -13845,20 +4959,29 @@ pub mod api { )]) } } - pub struct CounterForListNodes; - impl ::subxt::StorageEntry for CounterForListNodes { - const PALLET: &'static str = "BagsList"; - const STORAGE: &'static str = "CounterForListNodes"; - type Value = ::core::primitive::u32; + pub struct PendingAvailability<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for PendingAvailability<'_> { + const PALLET: &'static str = "ParaInclusion"; + const STORAGE: &'static str = "PendingAvailability"; + type Value = runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: sp_core :: H256 , :: core :: primitive :: u32 > ; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) } } - pub struct ListBags<'a>(pub &'a ::core::primitive::u64); - impl ::subxt::StorageEntry for ListBags<'_> { - const PALLET: &'static str = "BagsList"; - const STORAGE: &'static str = "ListBags"; - type Value = runtime_types::pallet_bags_list::list::Bag; + pub struct PendingAvailabilityCommitments<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for PendingAvailabilityCommitments<'_> { + const PALLET: &'static str = "ParaInclusion"; + const STORAGE: &'static str = "PendingAvailabilityCommitments"; + type Value = runtime_types::polkadot_primitives::v2::CandidateCommitments< + ::core::primitive::u32, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -13872,1485 +4995,2012 @@ pub mod api { impl<'a, T: ::subxt::Config> StorageApi<'a, T> { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } + } pub async fn availability_bitfields (& self , _0 : & runtime_types :: polkadot_primitives :: v2 :: ValidatorIndex , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ + let entry = AvailabilityBitfields(_0); + self.client.storage().fetch(&entry, hash).await } - pub async fn list_nodes( + pub async fn availability_bitfields_iter( &self, - _0: &::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option, + ::subxt::KeyIter<'a, T, AvailabilityBitfields<'a>>, ::subxt::BasicError, > { - let entry = ListNodes(_0); + self.client.storage().iter(hash).await + } pub async fn pending_availability (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: Id , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: sp_core :: H256 , :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ + let entry = PendingAvailability(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn list_nodes_iter( + pub async fn pending_availability_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ListNodes<'a>>, + ::subxt::KeyIter<'a, T, PendingAvailability<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn counter_for_list_nodes( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = CounterForListNodes; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn list_bags( + pub async fn pending_availability_commitments( &self, - _0: &::core::primitive::u64, + _0: &runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option, + ::core::option::Option< + runtime_types::polkadot_primitives::v2::CandidateCommitments< + ::core::primitive::u32, + >, + >, ::subxt::BasicError, > { - let entry = ListBags(_0); + let entry = PendingAvailabilityCommitments(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn list_bags_iter( + pub async fn pending_availability_commitments_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ListBags<'a>>, + ::subxt::KeyIter<'a, T, PendingAvailabilityCommitments<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } } } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn bag_thresholds( - &self, - ) -> ::core::result::Result< - ::std::vec::Vec<::core::primitive::u64>, - ::subxt::BasicError, - > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 33u8, 3u8, 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 243u8, - 158u8, 128u8, 151u8, 2u8, 0u8, 0u8, 0u8, 168u8, 177u8, 151u8, - 226u8, 2u8, 0u8, 0u8, 0u8, 148u8, 73u8, 46u8, 54u8, 3u8, 0u8, - 0u8, 0u8, 39u8, 156u8, 58u8, 147u8, 3u8, 0u8, 0u8, 0u8, 3u8, - 188u8, 206u8, 250u8, 3u8, 0u8, 0u8, 0u8, 66u8, 192u8, 27u8, - 110u8, 4u8, 0u8, 0u8, 0u8, 27u8, 71u8, 117u8, 238u8, 4u8, - 0u8, 0u8, 0u8, 56u8, 94u8, 85u8, 125u8, 5u8, 0u8, 0u8, 0u8, - 70u8, 220u8, 96u8, 28u8, 6u8, 0u8, 0u8, 0u8, 137u8, 56u8, - 108u8, 205u8, 6u8, 0u8, 0u8, 0u8, 182u8, 238u8, 128u8, 146u8, - 7u8, 0u8, 0u8, 0u8, 254u8, 126u8, 227u8, 109u8, 8u8, 0u8, - 0u8, 0u8, 232u8, 27u8, 26u8, 98u8, 9u8, 0u8, 0u8, 0u8, 176u8, - 25u8, 244u8, 113u8, 10u8, 0u8, 0u8, 0u8, 16u8, 53u8, 146u8, - 160u8, 11u8, 0u8, 0u8, 0u8, 207u8, 201u8, 111u8, 241u8, 12u8, - 0u8, 0u8, 0u8, 65u8, 20u8, 109u8, 104u8, 14u8, 0u8, 0u8, 0u8, - 231u8, 155u8, 218u8, 9u8, 16u8, 0u8, 0u8, 0u8, 206u8, 232u8, - 133u8, 218u8, 17u8, 0u8, 0u8, 0u8, 40u8, 169u8, 199u8, 223u8, - 19u8, 0u8, 0u8, 0u8, 187u8, 112u8, 147u8, 31u8, 22u8, 0u8, - 0u8, 0u8, 142u8, 64u8, 137u8, 160u8, 24u8, 0u8, 0u8, 0u8, - 129u8, 10u8, 9u8, 106u8, 27u8, 0u8, 0u8, 0u8, 54u8, 106u8, - 72u8, 132u8, 30u8, 0u8, 0u8, 0u8, 91u8, 211u8, 106u8, 248u8, - 33u8, 0u8, 0u8, 0u8, 128u8, 124u8, 156u8, 208u8, 37u8, 0u8, - 0u8, 0u8, 201u8, 85u8, 48u8, 24u8, 42u8, 0u8, 0u8, 0u8, - 189u8, 99u8, 193u8, 219u8, 46u8, 0u8, 0u8, 0u8, 113u8, 224u8, - 87u8, 41u8, 52u8, 0u8, 0u8, 0u8, 104u8, 144u8, 146u8, 16u8, - 58u8, 0u8, 0u8, 0u8, 237u8, 196u8, 212u8, 162u8, 64u8, 0u8, - 0u8, 0u8, 105u8, 147u8, 121u8, 243u8, 71u8, 0u8, 0u8, 0u8, - 143u8, 216u8, 12u8, 24u8, 80u8, 0u8, 0u8, 0u8, 75u8, 175u8, - 138u8, 40u8, 89u8, 0u8, 0u8, 0u8, 106u8, 22u8, 166u8, 63u8, - 99u8, 0u8, 0u8, 0u8, 9u8, 149u8, 23u8, 123u8, 110u8, 0u8, - 0u8, 0u8, 120u8, 197u8, 244u8, 251u8, 122u8, 0u8, 0u8, 0u8, - 98u8, 200u8, 17u8, 231u8, 136u8, 0u8, 0u8, 0u8, 81u8, 191u8, - 109u8, 101u8, 152u8, 0u8, 0u8, 0u8, 4u8, 142u8, 171u8, 164u8, - 169u8, 0u8, 0u8, 0u8, 84u8, 70u8, 152u8, 215u8, 188u8, 0u8, - 0u8, 0u8, 145u8, 202u8, 192u8, 54u8, 210u8, 0u8, 0u8, 0u8, - 23u8, 95u8, 24u8, 1u8, 234u8, 0u8, 0u8, 0u8, 189u8, 21u8, - 178u8, 124u8, 4u8, 1u8, 0u8, 0u8, 67u8, 53u8, 143u8, 247u8, - 33u8, 1u8, 0u8, 0u8, 184u8, 252u8, 132u8, 200u8, 66u8, 1u8, - 0u8, 0u8, 153u8, 103u8, 60u8, 80u8, 103u8, 1u8, 0u8, 0u8, - 7u8, 228u8, 78u8, 250u8, 143u8, 1u8, 0u8, 0u8, 179u8, 65u8, - 131u8, 62u8, 189u8, 1u8, 0u8, 0u8, 2u8, 127u8, 46u8, 162u8, - 239u8, 1u8, 0u8, 0u8, 152u8, 131u8, 188u8, 185u8, 39u8, 2u8, - 0u8, 0u8, 22u8, 77u8, 101u8, 42u8, 102u8, 2u8, 0u8, 0u8, - 180u8, 149u8, 19u8, 172u8, 171u8, 2u8, 0u8, 0u8, 45u8, 142u8, - 130u8, 11u8, 249u8, 2u8, 0u8, 0u8, 161u8, 230u8, 152u8, 44u8, - 79u8, 3u8, 0u8, 0u8, 166u8, 22u8, 8u8, 13u8, 175u8, 3u8, 0u8, - 0u8, 204u8, 157u8, 55u8, 199u8, 25u8, 4u8, 0u8, 0u8, 160u8, - 213u8, 132u8, 149u8, 144u8, 4u8, 0u8, 0u8, 66u8, 231u8, - 224u8, 213u8, 20u8, 5u8, 0u8, 0u8, 2u8, 140u8, 215u8, 13u8, - 168u8, 5u8, 0u8, 0u8, 15u8, 117u8, 10u8, 239u8, 75u8, 6u8, - 0u8, 0u8, 234u8, 141u8, 46u8, 92u8, 2u8, 7u8, 0u8, 0u8, - 195u8, 203u8, 153u8, 110u8, 205u8, 7u8, 0u8, 0u8, 177u8, - 229u8, 113u8, 124u8, 175u8, 8u8, 0u8, 0u8, 170u8, 43u8, - 142u8, 31u8, 171u8, 9u8, 0u8, 0u8, 181u8, 193u8, 32u8, 61u8, - 195u8, 10u8, 0u8, 0u8, 38u8, 208u8, 61u8, 14u8, 251u8, 11u8, - 0u8, 0u8, 112u8, 199u8, 89u8, 41u8, 86u8, 13u8, 0u8, 0u8, - 235u8, 173u8, 218u8, 140u8, 216u8, 14u8, 0u8, 0u8, 247u8, - 151u8, 219u8, 170u8, 134u8, 16u8, 0u8, 0u8, 207u8, 240u8, - 68u8, 118u8, 101u8, 18u8, 0u8, 0u8, 31u8, 38u8, 96u8, 113u8, - 122u8, 20u8, 0u8, 0u8, 9u8, 166u8, 17u8, 190u8, 203u8, 22u8, - 0u8, 0u8, 29u8, 251u8, 232u8, 47u8, 96u8, 25u8, 0u8, 0u8, - 148u8, 58u8, 60u8, 96u8, 63u8, 28u8, 0u8, 0u8, 138u8, 254u8, - 137u8, 196u8, 113u8, 31u8, 0u8, 0u8, 206u8, 217u8, 99u8, - 199u8, 0u8, 35u8, 0u8, 0u8, 3u8, 169u8, 42u8, 228u8, 246u8, - 38u8, 0u8, 0u8, 254u8, 114u8, 238u8, 197u8, 95u8, 43u8, 0u8, - 0u8, 54u8, 201u8, 204u8, 105u8, 72u8, 48u8, 0u8, 0u8, 218u8, - 227u8, 50u8, 69u8, 191u8, 53u8, 0u8, 0u8, 6u8, 42u8, 116u8, - 112u8, 212u8, 59u8, 0u8, 0u8, 124u8, 151u8, 50u8, 214u8, - 153u8, 66u8, 0u8, 0u8, 132u8, 163u8, 36u8, 104u8, 35u8, 74u8, - 0u8, 0u8, 87u8, 26u8, 212u8, 89u8, 135u8, 82u8, 0u8, 0u8, - 231u8, 241u8, 2u8, 98u8, 222u8, 91u8, 0u8, 0u8, 13u8, 184u8, - 118u8, 3u8, 68u8, 102u8, 0u8, 0u8, 174u8, 4u8, 1u8, 222u8, - 214u8, 113u8, 0u8, 0u8, 125u8, 158u8, 179u8, 8u8, 185u8, - 126u8, 0u8, 0u8, 30u8, 4u8, 74u8, 118u8, 16u8, 141u8, 0u8, - 0u8, 58u8, 29u8, 240u8, 100u8, 7u8, 157u8, 0u8, 0u8, 224u8, - 79u8, 175u8, 218u8, 204u8, 174u8, 0u8, 0u8, 86u8, 121u8, - 240u8, 47u8, 149u8, 194u8, 0u8, 0u8, 149u8, 195u8, 170u8, - 169u8, 154u8, 216u8, 0u8, 0u8, 150u8, 124u8, 5u8, 37u8, 30u8, - 241u8, 0u8, 0u8, 23u8, 122u8, 102u8, 214u8, 103u8, 12u8, 1u8, - 0u8, 40u8, 203u8, 31u8, 30u8, 200u8, 42u8, 1u8, 0u8, 250u8, - 40u8, 47u8, 117u8, 152u8, 76u8, 1u8, 0u8, 213u8, 125u8, - 200u8, 116u8, 60u8, 114u8, 1u8, 0u8, 125u8, 196u8, 179u8, - 251u8, 34u8, 156u8, 1u8, 0u8, 54u8, 92u8, 222u8, 116u8, - 199u8, 202u8, 1u8, 0u8, 158u8, 184u8, 225u8, 66u8, 179u8, - 254u8, 1u8, 0u8, 12u8, 49u8, 174u8, 84u8, 127u8, 56u8, 2u8, - 0u8, 95u8, 225u8, 1u8, 232u8, 213u8, 120u8, 2u8, 0u8, 99u8, - 115u8, 218u8, 126u8, 116u8, 192u8, 2u8, 0u8, 81u8, 209u8, - 166u8, 13u8, 46u8, 16u8, 3u8, 0u8, 199u8, 233u8, 164u8, - 104u8, 237u8, 104u8, 3u8, 0u8, 97u8, 192u8, 145u8, 247u8, - 183u8, 203u8, 3u8, 0u8, 191u8, 39u8, 161u8, 183u8, 176u8, - 57u8, 4u8, 0u8, 123u8, 20u8, 153u8, 148u8, 27u8, 180u8, 4u8, - 0u8, 133u8, 35u8, 237u8, 34u8, 97u8, 60u8, 5u8, 0u8, 105u8, - 165u8, 212u8, 197u8, 18u8, 212u8, 5u8, 0u8, 236u8, 140u8, - 147u8, 77u8, 239u8, 124u8, 6u8, 0u8, 245u8, 170u8, 144u8, - 27u8, 232u8, 56u8, 7u8, 0u8, 140u8, 190u8, 93u8, 219u8, 38u8, - 10u8, 8u8, 0u8, 2u8, 151u8, 140u8, 225u8, 19u8, 243u8, 8u8, - 0u8, 250u8, 227u8, 20u8, 67u8, 93u8, 246u8, 9u8, 0u8, 221u8, - 241u8, 45u8, 186u8, 254u8, 22u8, 11u8, 0u8, 46u8, 186u8, - 220u8, 111u8, 74u8, 88u8, 12u8, 0u8, 12u8, 85u8, 24u8, 196u8, - 242u8, 189u8, 13u8, 0u8, 240u8, 187u8, 84u8, 49u8, 21u8, - 76u8, 15u8, 0u8, 73u8, 142u8, 134u8, 107u8, 70u8, 7u8, 17u8, - 0u8, 178u8, 193u8, 83u8, 222u8, 159u8, 244u8, 18u8, 0u8, - 39u8, 138u8, 47u8, 178u8, 206u8, 25u8, 21u8, 0u8, 178u8, - 57u8, 159u8, 132u8, 36u8, 125u8, 23u8, 0u8, 225u8, 153u8, - 231u8, 4u8, 170u8, 37u8, 26u8, 0u8, 186u8, 19u8, 245u8, - 171u8, 51u8, 27u8, 29u8, 0u8, 38u8, 71u8, 133u8, 204u8, - 120u8, 102u8, 32u8, 0u8, 136u8, 191u8, 128u8, 63u8, 45u8, - 17u8, 36u8, 0u8, 28u8, 152u8, 35u8, 248u8, 29u8, 38u8, 40u8, - 0u8, 204u8, 196u8, 34u8, 212u8, 80u8, 177u8, 44u8, 0u8, - 240u8, 136u8, 130u8, 5u8, 40u8, 192u8, 49u8, 0u8, 54u8, - 124u8, 109u8, 126u8, 137u8, 97u8, 55u8, 0u8, 110u8, 147u8, - 41u8, 211u8, 10u8, 166u8, 61u8, 0u8, 140u8, 188u8, 108u8, - 19u8, 34u8, 160u8, 68u8, 0u8, 0u8, 112u8, 243u8, 42u8, 92u8, - 100u8, 76u8, 0u8, 180u8, 59u8, 132u8, 105u8, 153u8, 9u8, - 85u8, 0u8, 128u8, 180u8, 171u8, 228u8, 80u8, 169u8, 94u8, - 0u8, 160u8, 205u8, 169u8, 121u8, 219u8, 95u8, 105u8, 0u8, - 76u8, 194u8, 127u8, 76u8, 199u8, 76u8, 117u8, 0u8, 208u8, - 172u8, 14u8, 186u8, 52u8, 147u8, 130u8, 0u8, 72u8, 62u8, - 12u8, 207u8, 61u8, 90u8, 145u8, 0u8, 104u8, 198u8, 142u8, - 116u8, 105u8, 205u8, 161u8, 0u8, 40u8, 30u8, 111u8, 165u8, - 43u8, 29u8, 180u8, 0u8, 152u8, 169u8, 35u8, 38u8, 116u8, - 127u8, 200u8, 0u8, 240u8, 154u8, 116u8, 99u8, 77u8, 48u8, - 223u8, 0u8, 128u8, 205u8, 252u8, 75u8, 141u8, 114u8, 248u8, - 0u8, 144u8, 20u8, 96u8, 45u8, 154u8, 144u8, 20u8, 1u8, 240u8, - 180u8, 19u8, 217u8, 69u8, 221u8, 51u8, 1u8, 32u8, 151u8, - 53u8, 150u8, 193u8, 180u8, 86u8, 1u8, 80u8, 220u8, 251u8, - 174u8, 173u8, 125u8, 125u8, 1u8, 224u8, 17u8, 152u8, 185u8, - 71u8, 170u8, 168u8, 1u8, 48u8, 199u8, 238u8, 22u8, 187u8, - 185u8, 216u8, 1u8, 32u8, 110u8, 72u8, 134u8, 151u8, 57u8, - 14u8, 2u8, 160u8, 250u8, 75u8, 29u8, 114u8, 199u8, 73u8, 2u8, - 192u8, 17u8, 113u8, 112u8, 181u8, 18u8, 140u8, 2u8, 128u8, - 138u8, 22u8, 67u8, 166u8, 222u8, 213u8, 2u8, 192u8, 248u8, - 35u8, 177u8, 162u8, 4u8, 40u8, 3u8, 128u8, 175u8, 89u8, - 112u8, 162u8, 118u8, 131u8, 3u8, 192u8, 111u8, 45u8, 135u8, - 255u8, 65u8, 233u8, 3u8, 64u8, 147u8, 127u8, 172u8, 143u8, - 146u8, 90u8, 4u8, 0u8, 145u8, 9u8, 113u8, 23u8, 182u8, 216u8, - 4u8, 64u8, 15u8, 223u8, 91u8, 33u8, 32u8, 101u8, 5u8, 0u8, - 73u8, 193u8, 73u8, 68u8, 110u8, 1u8, 6u8, 0u8, 142u8, 188u8, - 166u8, 229u8, 108u8, 175u8, 6u8, 0u8, 89u8, 86u8, 134u8, - 133u8, 28u8, 113u8, 7u8, 128u8, 104u8, 170u8, 52u8, 164u8, - 183u8, 72u8, 8u8, 128u8, 161u8, 226u8, 158u8, 82u8, 185u8, - 56u8, 9u8, 0u8, 189u8, 171u8, 232u8, 128u8, 228u8, 67u8, - 10u8, 0u8, 42u8, 114u8, 180u8, 32u8, 76u8, 109u8, 11u8, - 128u8, 241u8, 192u8, 19u8, 51u8, 92u8, 184u8, 12u8, 0u8, - 160u8, 60u8, 203u8, 220u8, 227u8, 40u8, 14u8, 128u8, 184u8, - 98u8, 154u8, 158u8, 32u8, 195u8, 15u8, 0u8, 222u8, 86u8, - 147u8, 210u8, 202u8, 139u8, 17u8, 0u8, 93u8, 127u8, 76u8, - 147u8, 35u8, 136u8, 19u8, 0u8, 26u8, 135u8, 223u8, 53u8, 4u8, - 190u8, 21u8, 0u8, 167u8, 206u8, 75u8, 132u8, 239u8, 51u8, - 24u8, 0u8, 1u8, 16u8, 251u8, 234u8, 36u8, 241u8, 26u8, 0u8, - 128u8, 42u8, 229u8, 209u8, 181u8, 253u8, 29u8, 0u8, 34u8, - 161u8, 52u8, 96u8, 157u8, 98u8, 33u8, 0u8, 68u8, 33u8, 107u8, - 240u8, 218u8, 41u8, 37u8, 0u8, 2u8, 97u8, 241u8, 130u8, - 143u8, 94u8, 41u8, 0u8, 102u8, 32u8, 207u8, 133u8, 30u8, - 13u8, 46u8, 0u8, 132u8, 16u8, 25u8, 82u8, 82u8, 67u8, 51u8, - 0u8, 160u8, 193u8, 143u8, 202u8, 132u8, 16u8, 57u8, 0u8, - 38u8, 173u8, 20u8, 147u8, 204u8, 133u8, 63u8, 0u8, 208u8, - 205u8, 36u8, 102u8, 47u8, 182u8, 70u8, 0u8, 156u8, 225u8, - 154u8, 28u8, 218u8, 182u8, 78u8, 0u8, 88u8, 204u8, 194u8, - 12u8, 95u8, 159u8, 87u8, 0u8, 32u8, 10u8, 117u8, 120u8, - 251u8, 137u8, 97u8, 0u8, 48u8, 187u8, 187u8, 214u8, 228u8, - 147u8, 108u8, 0u8, 96u8, 203u8, 167u8, 220u8, 158u8, 221u8, - 120u8, 0u8, 184u8, 59u8, 192u8, 66u8, 91u8, 139u8, 134u8, - 0u8, 184u8, 134u8, 35u8, 97u8, 100u8, 197u8, 149u8, 0u8, - 248u8, 241u8, 95u8, 220u8, 147u8, 184u8, 166u8, 0u8, 32u8, - 106u8, 145u8, 192u8, 214u8, 150u8, 185u8, 0u8, 216u8, 239u8, - 226u8, 143u8, 192u8, 151u8, 206u8, 0u8, 104u8, 41u8, 155u8, - 245u8, 46u8, 249u8, 229u8, 255u8, 255u8, 255u8, 255u8, 255u8, - 255u8, 255u8, 255u8, - ][..], - )?) - } - } - } - } - pub mod parachains_origin { - use super::root_mod; - use super::runtime_types; } - pub mod configuration { + pub mod para_inherent { use super::root_mod; use super::runtime_types; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetValidationUpgradeCooldown { - pub new: ::core::primitive::u32, - } - impl ::subxt::Call for SetValidationUpgradeCooldown { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_validation_upgrade_cooldown"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetValidationUpgradeDelay { - pub new: ::core::primitive::u32, - } - impl ::subxt::Call for SetValidationUpgradeDelay { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_validation_upgrade_delay"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetCodeRetentionPeriod { - pub new: ::core::primitive::u32, - } - impl ::subxt::Call for SetCodeRetentionPeriod { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_code_retention_period"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetMaxCodeSize { - pub new: ::core::primitive::u32, - } - impl ::subxt::Call for SetMaxCodeSize { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_code_size"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetMaxPovSize { - pub new: ::core::primitive::u32, - } - impl ::subxt::Call for SetMaxPovSize { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_pov_size"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetMaxHeadDataSize { - pub new: ::core::primitive::u32, - } - impl ::subxt::Call for SetMaxHeadDataSize { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_head_data_size"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetParathreadCores { - pub new: ::core::primitive::u32, - } - impl ::subxt::Call for SetParathreadCores { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_parathread_cores"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetParathreadRetries { - pub new: ::core::primitive::u32, - } - impl ::subxt::Call for SetParathreadRetries { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_parathread_retries"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetGroupRotationFrequency { - pub new: ::core::primitive::u32, - } - impl ::subxt::Call for SetGroupRotationFrequency { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_group_rotation_frequency"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetChainAvailabilityPeriod { - pub new: ::core::primitive::u32, - } - impl ::subxt::Call for SetChainAvailabilityPeriod { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_chain_availability_period"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetThreadAvailabilityPeriod { - pub new: ::core::primitive::u32, - } - impl ::subxt::Call for SetThreadAvailabilityPeriod { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_thread_availability_period"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetSchedulingLookahead { - pub new: ::core::primitive::u32, - } - impl ::subxt::Call for SetSchedulingLookahead { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_scheduling_lookahead"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetMaxValidatorsPerCore { - pub new: ::core::option::Option<::core::primitive::u32>, - } - impl ::subxt::Call for SetMaxValidatorsPerCore { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_validators_per_core"; - } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetMaxValidators { - pub new: ::core::option::Option<::core::primitive::u32>, - } - impl ::subxt::Call for SetMaxValidators { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_validators"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetDisputePeriod { - pub new: ::core::primitive::u32, - } - impl ::subxt::Call for SetDisputePeriod { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_dispute_period"; + pub struct Enter { + pub data: runtime_types::polkadot_primitives::v2::InherentData< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetDisputePostConclusionAcceptancePeriod { - pub new: ::core::primitive::u32, + impl ::subxt::Call for Enter { + const PALLET: &'static str = "ParaInherent"; + const FUNCTION: &'static str = "enter"; } - impl ::subxt::Call for SetDisputePostConclusionAcceptancePeriod { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = - "set_dispute_post_conclusion_acceptance_period"; + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetDisputeMaxSpamSlots { - pub new: ::core::primitive::u32, + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } + } + pub fn enter( + &self, + data: runtime_types::polkadot_primitives::v2::InherentData< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Enter, + DispatchError, + root_mod::Event, + > { + let call = Enter { data }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } } - impl ::subxt::Call for SetDisputeMaxSpamSlots { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_dispute_max_spam_slots"; + } + pub mod storage { + use super::runtime_types; + pub struct Included; + impl ::subxt::StorageEntry for Included { + const PALLET: &'static str = "ParaInherent"; + const STORAGE: &'static str = "Included"; + type Value = (); + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetDisputeConclusionByTimeOutPeriod { - pub new: ::core::primitive::u32, + pub struct OnChainVotes; + impl ::subxt::StorageEntry for OnChainVotes { + const PALLET: &'static str = "ParaInherent"; + const STORAGE: &'static str = "OnChainVotes"; + type Value = runtime_types::polkadot_primitives::v2::ScrapedOnChainVotes< + ::subxt::sp_core::H256, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - impl ::subxt::Call for SetDisputeConclusionByTimeOutPeriod { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = - "set_dispute_conclusion_by_time_out_period"; + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetNoShowSlots { - pub new: ::core::primitive::u32, + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn included( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::BasicError> + { + let entry = Included; + self.client.storage().fetch(&entry, hash).await + } + pub async fn on_chain_votes( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::polkadot_primitives::v2::ScrapedOnChainVotes< + ::subxt::sp_core::H256, + >, + >, + ::subxt::BasicError, + > { + let entry = OnChainVotes; + self.client.storage().fetch(&entry, hash).await + } } - impl ::subxt::Call for SetNoShowSlots { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_no_show_slots"; + } + } + pub mod para_scheduler { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub struct ValidatorGroups; + impl ::subxt::StorageEntry for ValidatorGroups { + const PALLET: &'static str = "ParaScheduler"; + const STORAGE: &'static str = "ValidatorGroups"; + type Value = ::std::vec::Vec< + ::std::vec::Vec< + runtime_types::polkadot_primitives::v2::ValidatorIndex, + >, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetNDelayTranches { - pub new: ::core::primitive::u32, + pub struct ParathreadQueue; + impl ::subxt::StorageEntry for ParathreadQueue { + const PALLET: &'static str = "ParaScheduler"; + const STORAGE: &'static str = "ParathreadQueue"; + type Value = runtime_types :: polkadot_runtime_parachains :: scheduler :: ParathreadClaimQueue ; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - impl ::subxt::Call for SetNDelayTranches { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_n_delay_tranches"; + pub struct AvailabilityCores; + impl ::subxt::StorageEntry for AvailabilityCores { + const PALLET: &'static str = "ParaScheduler"; + const STORAGE: &'static str = "AvailabilityCores"; + type Value = ::std::vec::Vec< + ::core::option::Option< + runtime_types::polkadot_primitives::v2::CoreOccupied, + >, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetZerothDelayTrancheWidth { - pub new: ::core::primitive::u32, + pub struct ParathreadClaimIndex; + impl ::subxt::StorageEntry for ParathreadClaimIndex { + const PALLET: &'static str = "ParaScheduler"; + const STORAGE: &'static str = "ParathreadClaimIndex"; + type Value = + ::std::vec::Vec; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - impl ::subxt::Call for SetZerothDelayTrancheWidth { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_zeroth_delay_tranche_width"; + pub struct SessionStartBlock; + impl ::subxt::StorageEntry for SessionStartBlock { + const PALLET: &'static str = "ParaScheduler"; + const STORAGE: &'static str = "SessionStartBlock"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetNeededApprovals { - pub new: ::core::primitive::u32, + pub struct Scheduled; + impl ::subxt::StorageEntry for Scheduled { + const PALLET: &'static str = "ParaScheduler"; + const STORAGE: &'static str = "Scheduled"; + type Value = ::std::vec::Vec< + runtime_types::polkadot_runtime_parachains::scheduler::CoreAssignment, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - impl ::subxt::Call for SetNeededApprovals { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_needed_approvals"; + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetRelayVrfModuloSamples { - pub new: ::core::primitive::u32, + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn validator_groups( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec< + ::std::vec::Vec< + runtime_types::polkadot_primitives::v2::ValidatorIndex, + >, + >, + ::subxt::BasicError, + > { + let entry = ValidatorGroups; + self.client.storage().fetch_or_default(&entry, hash).await + } pub async fn parathread_queue (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: polkadot_runtime_parachains :: scheduler :: ParathreadClaimQueue , :: subxt :: BasicError >{ + let entry = ParathreadQueue; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn availability_cores( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec< + ::core::option::Option< + runtime_types::polkadot_primitives::v2::CoreOccupied, + >, + >, + ::subxt::BasicError, + > { + let entry = AvailabilityCores; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn parathread_claim_index( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec, + ::subxt::BasicError, + > { + let entry = ParathreadClaimIndex; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn session_start_block( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = SessionStartBlock; + self.client.storage().fetch_or_default(&entry, hash).await + } pub async fn scheduled (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: scheduler :: CoreAssignment > , :: subxt :: BasicError >{ + let entry = Scheduled; + self.client.storage().fetch_or_default(&entry, hash).await + } } - impl ::subxt::Call for SetRelayVrfModuloSamples { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_relay_vrf_modulo_samples"; + } + } + pub mod paras { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ForceSetCurrentCode { + pub para: runtime_types::polkadot_parachain::primitives::Id, + pub new_code: + runtime_types::polkadot_parachain::primitives::ValidationCode, } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetMaxUpwardQueueCount { - pub new: ::core::primitive::u32, + impl ::subxt::Call for ForceSetCurrentCode { + const PALLET: &'static str = "Paras"; + const FUNCTION: &'static str = "force_set_current_code"; } - impl ::subxt::Call for SetMaxUpwardQueueCount { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_upward_queue_count"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ForceSetCurrentHead { + pub para: runtime_types::polkadot_parachain::primitives::Id, + pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetMaxUpwardQueueSize { - pub new: ::core::primitive::u32, + impl ::subxt::Call for ForceSetCurrentHead { + const PALLET: &'static str = "Paras"; + const FUNCTION: &'static str = "force_set_current_head"; } - impl ::subxt::Call for SetMaxUpwardQueueSize { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_upward_queue_size"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ForceScheduleCodeUpgrade { + pub para: runtime_types::polkadot_parachain::primitives::Id, + pub new_code: + runtime_types::polkadot_parachain::primitives::ValidationCode, + pub relay_parent_number: ::core::primitive::u32, } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetMaxDownwardMessageSize { - pub new: ::core::primitive::u32, + impl ::subxt::Call for ForceScheduleCodeUpgrade { + const PALLET: &'static str = "Paras"; + const FUNCTION: &'static str = "force_schedule_code_upgrade"; } - impl ::subxt::Call for SetMaxDownwardMessageSize { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_downward_message_size"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ForceNoteNewHead { + pub para: runtime_types::polkadot_parachain::primitives::Id, + pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetUmpServiceTotalWeight { - pub new: ::core::primitive::u64, + impl ::subxt::Call for ForceNoteNewHead { + const PALLET: &'static str = "Paras"; + const FUNCTION: &'static str = "force_note_new_head"; } - impl ::subxt::Call for SetUmpServiceTotalWeight { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_ump_service_total_weight"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ForceQueueAction { + pub para: runtime_types::polkadot_parachain::primitives::Id, } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetMaxUpwardMessageSize { - pub new: ::core::primitive::u32, + impl ::subxt::Call for ForceQueueAction { + const PALLET: &'static str = "Paras"; + const FUNCTION: &'static str = "force_queue_action"; } - impl ::subxt::Call for SetMaxUpwardMessageSize { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_upward_message_size"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct AddTrustedValidationCode { + pub validation_code: + runtime_types::polkadot_parachain::primitives::ValidationCode, } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetMaxUpwardMessageNumPerCandidate { - pub new: ::core::primitive::u32, + impl ::subxt::Call for AddTrustedValidationCode { + const PALLET: &'static str = "Paras"; + const FUNCTION: &'static str = "add_trusted_validation_code"; } - impl ::subxt::Call for SetMaxUpwardMessageNumPerCandidate { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_max_upward_message_num_per_candidate"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct PokeUnusedValidationCode { + pub validation_code_hash: + runtime_types::polkadot_parachain::primitives::ValidationCodeHash, } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetHrmpOpenRequestTtl { - pub new: ::core::primitive::u32, + impl ::subxt::Call for PokeUnusedValidationCode { + const PALLET: &'static str = "Paras"; + const FUNCTION: &'static str = "poke_unused_validation_code"; } - impl ::subxt::Call for SetHrmpOpenRequestTtl { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_open_request_ttl"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct IncludePvfCheckStatement { + pub stmt: runtime_types::polkadot_primitives::v2::PvfCheckStatement, + pub signature: + runtime_types::polkadot_primitives::v2::validator_app::Signature, } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetHrmpSenderDeposit { - pub new: ::core::primitive::u128, + impl ::subxt::Call for IncludePvfCheckStatement { + const PALLET: &'static str = "Paras"; + const FUNCTION: &'static str = "include_pvf_check_statement"; } - impl ::subxt::Call for SetHrmpSenderDeposit { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_sender_deposit"; + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetHrmpRecipientDeposit { - pub new: ::core::primitive::u128, + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } + } + pub fn force_set_current_code( + &self, + para: runtime_types::polkadot_parachain::primitives::Id, + new_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ForceSetCurrentCode, + DispatchError, + root_mod::Event, + > { + let call = ForceSetCurrentCode { para, new_code }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn force_set_current_head( + &self, + para: runtime_types::polkadot_parachain::primitives::Id, + new_head: runtime_types::polkadot_parachain::primitives::HeadData, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ForceSetCurrentHead, + DispatchError, + root_mod::Event, + > { + let call = ForceSetCurrentHead { para, new_head }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn force_schedule_code_upgrade( + &self, + para: runtime_types::polkadot_parachain::primitives::Id, + new_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, + relay_parent_number: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ForceScheduleCodeUpgrade, + DispatchError, + root_mod::Event, + > { + let call = ForceScheduleCodeUpgrade { + para, + new_code, + relay_parent_number, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn force_note_new_head( + &self, + para: runtime_types::polkadot_parachain::primitives::Id, + new_head: runtime_types::polkadot_parachain::primitives::HeadData, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ForceNoteNewHead, + DispatchError, + root_mod::Event, + > { + let call = ForceNoteNewHead { para, new_head }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn force_queue_action( + &self, + para: runtime_types::polkadot_parachain::primitives::Id, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ForceQueueAction, + DispatchError, + root_mod::Event, + > { + let call = ForceQueueAction { para }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn add_trusted_validation_code( + &self, + validation_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + AddTrustedValidationCode, + DispatchError, + root_mod::Event, + > { + let call = AddTrustedValidationCode { validation_code }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn poke_unused_validation_code( + &self, + validation_code_hash : runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + PokeUnusedValidationCode, + DispatchError, + root_mod::Event, + > { + let call = PokeUnusedValidationCode { + validation_code_hash, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn include_pvf_check_statement( + &self, + stmt: runtime_types::polkadot_primitives::v2::PvfCheckStatement, + signature : runtime_types :: polkadot_primitives :: v2 :: validator_app :: Signature, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + IncludePvfCheckStatement, + DispatchError, + root_mod::Event, + > { + let call = IncludePvfCheckStatement { stmt, signature }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } } - impl ::subxt::Call for SetHrmpRecipientDeposit { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_recipient_deposit"; + } + 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)] + pub struct CurrentCodeUpdated( + pub runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::Event for CurrentCodeUpdated { + const PALLET: &'static str = "Paras"; + const EVENT: &'static str = "CurrentCodeUpdated"; } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetHrmpChannelMaxCapacity { - pub new: ::core::primitive::u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct CurrentHeadUpdated( + pub runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::Event for CurrentHeadUpdated { + const PALLET: &'static str = "Paras"; + const EVENT: &'static str = "CurrentHeadUpdated"; } - impl ::subxt::Call for SetHrmpChannelMaxCapacity { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_channel_max_capacity"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct CodeUpgradeScheduled( + pub runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::Event for CodeUpgradeScheduled { + const PALLET: &'static str = "Paras"; + const EVENT: &'static str = "CodeUpgradeScheduled"; } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetHrmpChannelMaxTotalSize { - pub new: ::core::primitive::u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct NewHeadNoted( + pub runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::Event for NewHeadNoted { + const PALLET: &'static str = "Paras"; + const EVENT: &'static str = "NewHeadNoted"; } - impl ::subxt::Call for SetHrmpChannelMaxTotalSize { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_channel_max_total_size"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ActionQueued( + pub runtime_types::polkadot_parachain::primitives::Id, + pub ::core::primitive::u32, + ); + impl ::subxt::Event for ActionQueued { + const PALLET: &'static str = "Paras"; + const EVENT: &'static str = "ActionQueued"; } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetHrmpMaxParachainInboundChannels { - pub new: ::core::primitive::u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct PvfCheckStarted( + pub runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + pub runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::Event for PvfCheckStarted { + const PALLET: &'static str = "Paras"; + const EVENT: &'static str = "PvfCheckStarted"; } - impl ::subxt::Call for SetHrmpMaxParachainInboundChannels { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_max_parachain_inbound_channels"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct PvfCheckAccepted( + pub runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + pub runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::Event for PvfCheckAccepted { + const PALLET: &'static str = "Paras"; + const EVENT: &'static str = "PvfCheckAccepted"; } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetHrmpMaxParathreadInboundChannels { - pub new: ::core::primitive::u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct PvfCheckRejected( + pub runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + pub runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::Event for PvfCheckRejected { + const PALLET: &'static str = "Paras"; + const EVENT: &'static str = "PvfCheckRejected"; } - impl ::subxt::Call for SetHrmpMaxParathreadInboundChannels { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_max_parathread_inbound_channels"; + } + pub mod storage { + use super::runtime_types; + pub struct PvfActiveVoteMap<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + ); + impl ::subxt::StorageEntry for PvfActiveVoteMap<'_> { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "PvfActiveVoteMap"; + type Value = runtime_types :: polkadot_runtime_parachains :: paras :: PvfCheckActiveVoteState < :: core :: primitive :: u32 > ; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetHrmpChannelMaxMessageSize { - pub new: ::core::primitive::u32, + pub struct PvfActiveVoteList; + impl ::subxt::StorageEntry for PvfActiveVoteList { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "PvfActiveVoteList"; + type Value = ::std::vec::Vec< + runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - impl ::subxt::Call for SetHrmpChannelMaxMessageSize { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_channel_max_message_size"; + pub struct Parachains; + impl ::subxt::StorageEntry for Parachains { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "Parachains"; + type Value = + ::std::vec::Vec; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetHrmpMaxParachainOutboundChannels { - pub new: ::core::primitive::u32, + pub struct ParaLifecycles<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for ParaLifecycles<'_> { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "ParaLifecycles"; + type Value = + runtime_types::polkadot_runtime_parachains::paras::ParaLifecycle; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } } - impl ::subxt::Call for SetHrmpMaxParachainOutboundChannels { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_max_parachain_outbound_channels"; + pub struct Heads<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for Heads<'_> { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "Heads"; + type Value = runtime_types::polkadot_parachain::primitives::HeadData; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetHrmpMaxParathreadOutboundChannels { - pub new: ::core::primitive::u32, + pub struct CurrentCodeHash<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for CurrentCodeHash<'_> { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "CurrentCodeHash"; + type Value = + runtime_types::polkadot_parachain::primitives::ValidationCodeHash; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } } - impl ::subxt::Call for SetHrmpMaxParathreadOutboundChannels { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = - "set_hrmp_max_parathread_outbound_channels"; + pub struct PastCodeHash<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + pub &'a ::core::primitive::u32, + ); + impl ::subxt::StorageEntry for PastCodeHash<'_> { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "PastCodeHash"; + type Value = + runtime_types::polkadot_parachain::primitives::ValidationCodeHash; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &(&self.0, &self.1), + ::subxt::StorageHasher::Twox64Concat, + )]) + } } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetHrmpMaxMessageNumPerCandidate { - pub new: ::core::primitive::u32, + pub struct PastCodeMeta<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for PastCodeMeta<'_> { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "PastCodeMeta"; + type Value = + runtime_types::polkadot_runtime_parachains::paras::ParaPastCodeMeta< + ::core::primitive::u32, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } } - impl ::subxt::Call for SetHrmpMaxMessageNumPerCandidate { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_hrmp_max_message_num_per_candidate"; + pub struct PastCodePruning; + impl ::subxt::StorageEntry for PastCodePruning { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "PastCodePruning"; + type Value = ::std::vec::Vec<( + runtime_types::polkadot_parachain::primitives::Id, + ::core::primitive::u32, + )>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetUmpMaxIndividualWeight { - pub new: ::core::primitive::u64, + pub struct FutureCodeUpgrades<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for FutureCodeUpgrades<'_> { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "FutureCodeUpgrades"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } } - impl ::subxt::Call for SetUmpMaxIndividualWeight { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_ump_max_individual_weight"; + pub struct FutureCodeHash<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for FutureCodeHash<'_> { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "FutureCodeHash"; + type Value = + runtime_types::polkadot_parachain::primitives::ValidationCodeHash; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetPvfCheckingEnabled { - pub new: ::core::primitive::bool, + pub struct UpgradeGoAheadSignal<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for UpgradeGoAheadSignal<'_> { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "UpgradeGoAheadSignal"; + type Value = runtime_types::polkadot_primitives::v2::UpgradeGoAhead; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } } - impl ::subxt::Call for SetPvfCheckingEnabled { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_pvf_checking_enabled"; + pub struct UpgradeRestrictionSignal<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for UpgradeRestrictionSignal<'_> { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "UpgradeRestrictionSignal"; + type Value = runtime_types::polkadot_primitives::v2::UpgradeRestriction; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetPvfVotingTtl { - pub new: ::core::primitive::u32, + pub struct UpgradeCooldowns; + impl ::subxt::StorageEntry for UpgradeCooldowns { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "UpgradeCooldowns"; + type Value = ::std::vec::Vec<( + runtime_types::polkadot_parachain::primitives::Id, + ::core::primitive::u32, + )>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - impl ::subxt::Call for SetPvfVotingTtl { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_pvf_voting_ttl"; + pub struct UpcomingUpgrades; + impl ::subxt::StorageEntry for UpcomingUpgrades { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "UpcomingUpgrades"; + type Value = ::std::vec::Vec<( + runtime_types::polkadot_parachain::primitives::Id, + ::core::primitive::u32, + )>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct SetMinimumValidationUpgradeDelay { - pub new: ::core::primitive::u32, + pub struct ActionsQueue<'a>(pub &'a ::core::primitive::u32); + impl ::subxt::StorageEntry for ActionsQueue<'_> { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "ActionsQueue"; + type Value = + ::std::vec::Vec; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } } - impl ::subxt::Call for SetMinimumValidationUpgradeDelay { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_minimum_validation_upgrade_delay"; + pub struct UpcomingParasGenesis<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for UpcomingParasGenesis<'_> { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "UpcomingParasGenesis"; + type Value = + runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SetBypassConsistencyCheck { - pub new: ::core::primitive::bool, + pub struct CodeByHashRefs<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + ); + impl ::subxt::StorageEntry for CodeByHashRefs<'_> { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "CodeByHashRefs"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Identity, + )]) + } } - impl ::subxt::Call for SetBypassConsistencyCheck { - const PALLET: &'static str = "Configuration"; - const FUNCTION: &'static str = "set_bypass_consistency_check"; + pub struct CodeByHash<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + ); + impl ::subxt::StorageEntry for CodeByHash<'_> { + const PALLET: &'static str = "Paras"; + const STORAGE: &'static str = "CodeByHash"; + type Value = + runtime_types::polkadot_parachain::primitives::ValidationCode; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Identity, + )]) + } } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { + pub struct StorageApi<'a, T: ::subxt::Config> { client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } + Self { client } + } pub async fn pvf_active_vote_map (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: paras :: PvfCheckActiveVoteState < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ + let entry = PvfActiveVoteMap(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn pvf_active_vote_map_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, PvfActiveVoteMap<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await } - pub fn set_validation_upgrade_cooldown( + pub async fn pvf_active_vote_list( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetValidationUpgradeCooldown, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec< + runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + >, + ::subxt::BasicError, > { - let call = SetValidationUpgradeCooldown { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = PvfActiveVoteList; + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn set_validation_upgrade_delay( + pub async fn parachains( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetValidationUpgradeDelay, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec, + ::subxt::BasicError, > { - let call = SetValidationUpgradeDelay { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = Parachains; + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn set_code_retention_period( + pub async fn para_lifecycles( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetCodeRetentionPeriod, - DispatchError, - root_mod::Event, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::polkadot_runtime_parachains::paras::ParaLifecycle, + >, + ::subxt::BasicError, > { - let call = SetCodeRetentionPeriod { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = ParaLifecycles(_0); + self.client.storage().fetch(&entry, hash).await } - pub fn set_max_code_size( + pub async fn para_lifecycles_iter( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetMaxCodeSize, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ParaLifecycles<'a>>, + ::subxt::BasicError, > { - let call = SetMaxCodeSize { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + self.client.storage().iter(hash).await } - pub fn set_max_pov_size( + pub async fn heads( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetMaxPovSize, - DispatchError, - root_mod::Event, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::polkadot_parachain::primitives::HeadData, + >, + ::subxt::BasicError, + > { + let entry = Heads(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn heads_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Heads<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn current_code_hash( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + >, + ::subxt::BasicError, + > { + let entry = CurrentCodeHash(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn current_code_hash_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, CurrentCodeHash<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn past_code_hash( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + _1: &::core::primitive::u32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + >, + ::subxt::BasicError, + > { + let entry = PastCodeHash(_0, _1); + self.client.storage().fetch(&entry, hash).await + } + pub async fn past_code_hash_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, PastCodeHash<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn past_code_meta( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + runtime_types::polkadot_runtime_parachains::paras::ParaPastCodeMeta< + ::core::primitive::u32, + >, + ::subxt::BasicError, + > { + let entry = PastCodeMeta(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn past_code_meta_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, PastCodeMeta<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn past_code_pruning( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec<( + runtime_types::polkadot_parachain::primitives::Id, + ::core::primitive::u32, + )>, + ::subxt::BasicError, + > { + let entry = PastCodePruning; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn future_code_upgrades( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::core::primitive::u32>, + ::subxt::BasicError, + > { + let entry = FutureCodeUpgrades(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn future_code_upgrades_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, FutureCodeUpgrades<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn future_code_hash( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + >, + ::subxt::BasicError, + > { + let entry = FutureCodeHash(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn future_code_hash_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, FutureCodeHash<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn upgrade_go_ahead_signal( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::polkadot_primitives::v2::UpgradeGoAhead, + >, + ::subxt::BasicError, + > { + let entry = UpgradeGoAheadSignal(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn upgrade_go_ahead_signal_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, UpgradeGoAheadSignal<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn upgrade_restriction_signal( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::polkadot_primitives::v2::UpgradeRestriction, + >, + ::subxt::BasicError, > { - let call = SetMaxPovSize { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = UpgradeRestrictionSignal(_0); + self.client.storage().fetch(&entry, hash).await } - pub fn set_max_head_data_size( + pub async fn upgrade_restriction_signal_iter( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetMaxHeadDataSize, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, UpgradeRestrictionSignal<'a>>, + ::subxt::BasicError, > { - let call = SetMaxHeadDataSize { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + self.client.storage().iter(hash).await } - pub fn set_parathread_cores( + pub async fn upgrade_cooldowns( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetParathreadCores, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec<( + runtime_types::polkadot_parachain::primitives::Id, + ::core::primitive::u32, + )>, + ::subxt::BasicError, > { - let call = SetParathreadCores { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = UpgradeCooldowns; + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn set_parathread_retries( + pub async fn upcoming_upgrades( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetParathreadRetries, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec<( + runtime_types::polkadot_parachain::primitives::Id, + ::core::primitive::u32, + )>, + ::subxt::BasicError, > { - let call = SetParathreadRetries { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = UpcomingUpgrades; + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn set_group_rotation_frequency( + pub async fn actions_queue( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetGroupRotationFrequency, - DispatchError, - root_mod::Event, + _0: &::core::primitive::u32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec, + ::subxt::BasicError, > { - let call = SetGroupRotationFrequency { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = ActionsQueue(_0); + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn set_chain_availability_period( + pub async fn actions_queue_iter( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetChainAvailabilityPeriod, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, ActionsQueue<'a>>, + ::subxt::BasicError, > { - let call = SetChainAvailabilityPeriod { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + self.client.storage().iter(hash).await + } pub async fn upcoming_paras_genesis (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: Id , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: paras :: ParaGenesisArgs > , :: subxt :: BasicError >{ + let entry = UpcomingParasGenesis(_0); + self.client.storage().fetch(&entry, hash).await } - pub fn set_thread_availability_period( + pub async fn upcoming_paras_genesis_iter( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetThreadAvailabilityPeriod, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, UpcomingParasGenesis<'a>>, + ::subxt::BasicError, > { - let call = SetThreadAvailabilityPeriod { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + self.client.storage().iter(hash).await } - pub fn set_scheduling_lookahead( + pub async fn code_by_hash_refs( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetSchedulingLookahead, - DispatchError, - root_mod::Event, - > { - let call = SetSchedulingLookahead { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + _0 : & runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = CodeByHashRefs(_0); + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn set_max_validators_per_core( + pub async fn code_by_hash_refs_iter( &self, - new: ::core::option::Option<::core::primitive::u32>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetMaxValidatorsPerCore, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, CodeByHashRefs<'a>>, + ::subxt::BasicError, > { - let call = SetMaxValidatorsPerCore { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + self.client.storage().iter(hash).await } - pub fn set_max_validators( + pub async fn code_by_hash( &self, - new: ::core::option::Option<::core::primitive::u32>, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetMaxValidators, - DispatchError, - root_mod::Event, + _0 : & runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::polkadot_parachain::primitives::ValidationCode, + >, + ::subxt::BasicError, > { - let call = SetMaxValidators { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = CodeByHash(_0); + self.client.storage().fetch(&entry, hash).await } - pub fn set_dispute_period( + pub async fn code_by_hash_iter( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetDisputePeriod, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, CodeByHash<'a>>, + ::subxt::BasicError, > { - let call = SetDisputePeriod { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + self.client.storage().iter(hash).await } - pub fn set_dispute_post_conclusion_acceptance_period( + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn unsigned_priority( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetDisputePostConclusionAcceptancePeriod, - DispatchError, - root_mod::Event, - > { - let call = SetDisputePostConclusionAcceptancePeriod { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Paras")?; + let constant = pallet.constant("UnsignedPriority")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + } + } + } + pub mod initializer { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct ForceApprove { + pub up_to: ::core::primitive::u32, + } + impl ::subxt::Call for ForceApprove { + const PALLET: &'static str = "Initializer"; + const FUNCTION: &'static str = "force_approve"; + } + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } } - pub fn set_dispute_max_spam_slots( + pub fn force_approve( &self, - new: ::core::primitive::u32, + up_to: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SetDisputeMaxSpamSlots, + ForceApprove, DispatchError, root_mod::Event, > { - let call = SetDisputeMaxSpamSlots { new }; + let call = ForceApprove { up_to }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_dispute_conclusion_by_time_out_period( - &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetDisputeConclusionByTimeOutPeriod, - DispatchError, - root_mod::Event, - > { - let call = SetDisputeConclusionByTimeOutPeriod { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + } + } + pub mod storage { + use super::runtime_types; + pub struct HasInitialized; + impl ::subxt::StorageEntry for HasInitialized { + const PALLET: &'static str = "Initializer"; + const STORAGE: &'static str = "HasInitialized"; + type Value = (); + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - pub fn set_no_show_slots( - &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetNoShowSlots, - DispatchError, - root_mod::Event, - > { - let call = SetNoShowSlots { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub struct BufferedSessionChanges; + impl ::subxt::StorageEntry for BufferedSessionChanges { + const PALLET: &'static str = "Initializer"; + const STORAGE: &'static str = "BufferedSessionChanges"; + type Value = :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: initializer :: BufferedSessionChange > ; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - pub fn set_n_delay_tranches( + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn has_initialized( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetNDelayTranches, - DispatchError, - root_mod::Event, - > { - let call = SetNDelayTranches { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::BasicError> + { + let entry = HasInitialized; + self.client.storage().fetch(&entry, hash).await + } pub async fn buffered_session_changes (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: initializer :: BufferedSessionChange > , :: subxt :: BasicError >{ + let entry = BufferedSessionChanges; + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn set_zeroth_delay_tranche_width( + } + } + } + pub mod dmp { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } + } + } + } + pub mod storage { + use super::runtime_types; + pub struct DownwardMessageQueues<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for DownwardMessageQueues<'_> { + const PALLET: &'static str = "Dmp"; + const STORAGE: &'static str = "DownwardMessageQueues"; + type Value = ::std::vec::Vec< + runtime_types::polkadot_core_primitives::InboundDownwardMessage< + ::core::primitive::u32, + >, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct DownwardMessageQueueHeads<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for DownwardMessageQueueHeads<'_> { + const PALLET: &'static str = "Dmp"; + const STORAGE: &'static str = "DownwardMessageQueueHeads"; + type Value = ::subxt::sp_core::H256; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn downward_message_queues( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetZerothDelayTrancheWidth, - DispatchError, - root_mod::Event, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec< + runtime_types::polkadot_core_primitives::InboundDownwardMessage< + ::core::primitive::u32, + >, + >, + ::subxt::BasicError, > { - let call = SetZerothDelayTrancheWidth { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = DownwardMessageQueues(_0); + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn set_needed_approvals( + pub async fn downward_message_queues_iter( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetNeededApprovals, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, DownwardMessageQueues<'a>>, + ::subxt::BasicError, > { - let call = SetNeededApprovals { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + self.client.storage().iter(hash).await } - pub fn set_relay_vrf_modulo_samples( + pub async fn downward_message_queue_heads( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetRelayVrfModuloSamples, - DispatchError, - root_mod::Event, - > { - let call = SetRelayVrfModuloSamples { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::BasicError> + { + let entry = DownwardMessageQueueHeads(_0); + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn set_max_upward_queue_count( + pub async fn downward_message_queue_heads_iter( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetMaxUpwardQueueCount, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, DownwardMessageQueueHeads<'a>>, + ::subxt::BasicError, > { - let call = SetMaxUpwardQueueCount { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + self.client.storage().iter(hash).await + } + } + } + } + pub mod ump { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ServiceOverweight { + pub index: ::core::primitive::u64, + pub weight_limit: ::core::primitive::u64, + } + impl ::subxt::Call for ServiceOverweight { + const PALLET: &'static str = "Ump"; + const FUNCTION: &'static str = "service_overweight"; + } + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } } - pub fn set_max_upward_queue_size( + pub fn service_overweight( &self, - new: ::core::primitive::u32, + index: ::core::primitive::u64, + weight_limit: ::core::primitive::u64, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SetMaxUpwardQueueSize, + ServiceOverweight, DispatchError, root_mod::Event, > { - let call = SetMaxUpwardQueueSize { new }; + let call = ServiceOverweight { + index, + weight_limit, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_max_downward_message_size( - &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetMaxDownwardMessageSize, - DispatchError, - root_mod::Event, - > { - let call = SetMaxDownwardMessageSize { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + } + } + 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)] + pub struct InvalidFormat(pub [::core::primitive::u8; 32usize]); + impl ::subxt::Event for InvalidFormat { + const PALLET: &'static str = "Ump"; + const EVENT: &'static str = "InvalidFormat"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct UnsupportedVersion(pub [::core::primitive::u8; 32usize]); + impl ::subxt::Event for UnsupportedVersion { + const PALLET: &'static str = "Ump"; + const EVENT: &'static str = "UnsupportedVersion"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ExecutedUpward( + pub [::core::primitive::u8; 32usize], + pub runtime_types::xcm::v2::traits::Outcome, + ); + impl ::subxt::Event for ExecutedUpward { + const PALLET: &'static str = "Ump"; + const EVENT: &'static str = "ExecutedUpward"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct WeightExhausted( + pub [::core::primitive::u8; 32usize], + pub ::core::primitive::u64, + pub ::core::primitive::u64, + ); + impl ::subxt::Event for WeightExhausted { + const PALLET: &'static str = "Ump"; + const EVENT: &'static str = "WeightExhausted"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct UpwardMessagesReceived( + pub runtime_types::polkadot_parachain::primitives::Id, + pub ::core::primitive::u32, + pub ::core::primitive::u32, + ); + impl ::subxt::Event for UpwardMessagesReceived { + const PALLET: &'static str = "Ump"; + const EVENT: &'static str = "UpwardMessagesReceived"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct OverweightEnqueued( + pub runtime_types::polkadot_parachain::primitives::Id, + pub [::core::primitive::u8; 32usize], + pub ::core::primitive::u64, + pub ::core::primitive::u64, + ); + impl ::subxt::Event for OverweightEnqueued { + const PALLET: &'static str = "Ump"; + const EVENT: &'static str = "OverweightEnqueued"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct OverweightServiced( + pub ::core::primitive::u64, + pub ::core::primitive::u64, + ); + impl ::subxt::Event for OverweightServiced { + const PALLET: &'static str = "Ump"; + const EVENT: &'static str = "OverweightServiced"; + } + } + pub mod storage { + use super::runtime_types; + pub struct RelayDispatchQueues<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for RelayDispatchQueues<'_> { + const PALLET: &'static str = "Ump"; + const STORAGE: &'static str = "RelayDispatchQueues"; + type Value = ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) } - pub fn set_ump_service_total_weight( - &self, - new: ::core::primitive::u64, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetUmpServiceTotalWeight, - DispatchError, - root_mod::Event, - > { - let call = SetUmpServiceTotalWeight { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub struct RelayDispatchQueueSize<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for RelayDispatchQueueSize<'_> { + const PALLET: &'static str = "Ump"; + const STORAGE: &'static str = "RelayDispatchQueueSize"; + type Value = (::core::primitive::u32, ::core::primitive::u32); + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) } - pub fn set_max_upward_message_size( - &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetMaxUpwardMessageSize, - DispatchError, - root_mod::Event, - > { - let call = SetMaxUpwardMessageSize { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub struct NeedsDispatch; + impl ::subxt::StorageEntry for NeedsDispatch { + const PALLET: &'static str = "Ump"; + const STORAGE: &'static str = "NeedsDispatch"; + type Value = + ::std::vec::Vec; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - pub fn set_max_upward_message_num_per_candidate( - &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetMaxUpwardMessageNumPerCandidate, - DispatchError, - root_mod::Event, - > { - let call = SetMaxUpwardMessageNumPerCandidate { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub struct NextDispatchRoundStartWith; + impl ::subxt::StorageEntry for NextDispatchRoundStartWith { + const PALLET: &'static str = "Ump"; + const STORAGE: &'static str = "NextDispatchRoundStartWith"; + type Value = runtime_types::polkadot_parachain::primitives::Id; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - pub fn set_hrmp_open_request_ttl( - &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetHrmpOpenRequestTtl, - DispatchError, - root_mod::Event, - > { - let call = SetHrmpOpenRequestTtl { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub struct Overweight<'a>(pub &'a ::core::primitive::u64); + impl ::subxt::StorageEntry for Overweight<'_> { + const PALLET: &'static str = "Ump"; + const STORAGE: &'static str = "Overweight"; + type Value = ( + runtime_types::polkadot_parachain::primitives::Id, + ::std::vec::Vec<::core::primitive::u8>, + ); + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) } - pub fn set_hrmp_sender_deposit( + } + pub struct OverweightCount; + impl ::subxt::StorageEntry for OverweightCount { + const PALLET: &'static str = "Ump"; + const STORAGE: &'static str = "OverweightCount"; + type Value = ::core::primitive::u64; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn relay_dispatch_queues( &self, - new: ::core::primitive::u128, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetHrmpSenderDeposit, - DispatchError, - root_mod::Event, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + ::subxt::BasicError, > { - let call = SetHrmpSenderDeposit { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = RelayDispatchQueues(_0); + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn set_hrmp_recipient_deposit( - &self, - new: ::core::primitive::u128, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetHrmpRecipientDeposit, - DispatchError, - root_mod::Event, + pub async fn relay_dispatch_queues_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, RelayDispatchQueues<'a>>, + ::subxt::BasicError, > { - let call = SetHrmpRecipientDeposit { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + self.client.storage().iter(hash).await } - pub fn set_hrmp_channel_max_capacity( + pub async fn relay_dispatch_queue_size( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetHrmpChannelMaxCapacity, - DispatchError, - root_mod::Event, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + (::core::primitive::u32, ::core::primitive::u32), + ::subxt::BasicError, > { - let call = SetHrmpChannelMaxCapacity { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = RelayDispatchQueueSize(_0); + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn set_hrmp_channel_max_total_size( + pub async fn relay_dispatch_queue_size_iter( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetHrmpChannelMaxTotalSize, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, RelayDispatchQueueSize<'a>>, + ::subxt::BasicError, > { - let call = SetHrmpChannelMaxTotalSize { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + self.client.storage().iter(hash).await } - pub fn set_hrmp_max_parachain_inbound_channels( + pub async fn needs_dispatch( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetHrmpMaxParachainInboundChannels, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec, + ::subxt::BasicError, > { - let call = SetHrmpMaxParachainInboundChannels { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = NeedsDispatch; + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn set_hrmp_max_parathread_inbound_channels( + pub async fn next_dispatch_round_start_with( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetHrmpMaxParathreadInboundChannels, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::polkadot_parachain::primitives::Id, + >, + ::subxt::BasicError, > { - let call = SetHrmpMaxParathreadInboundChannels { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = NextDispatchRoundStartWith; + self.client.storage().fetch(&entry, hash).await } - pub fn set_hrmp_channel_max_message_size( + pub async fn overweight( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetHrmpChannelMaxMessageSize, - DispatchError, - root_mod::Event, + _0: &::core::primitive::u64, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<( + runtime_types::polkadot_parachain::primitives::Id, + ::std::vec::Vec<::core::primitive::u8>, + )>, + ::subxt::BasicError, > { - let call = SetHrmpChannelMaxMessageSize { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + let entry = Overweight(_0); + self.client.storage().fetch(&entry, hash).await } - pub fn set_hrmp_max_parachain_outbound_channels( + pub async fn overweight_iter( &self, - new: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - SetHrmpMaxParachainOutboundChannels, - DispatchError, - root_mod::Event, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Overweight<'a>>, + ::subxt::BasicError, > { - let call = SetHrmpMaxParachainOutboundChannels { new }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + self.client.storage().iter(hash).await } - pub fn set_hrmp_max_parathread_outbound_channels( + pub async fn overweight_count( &self, - new: ::core::primitive::u32, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + { + let entry = OverweightCount; + self.client.storage().fetch_or_default(&entry, hash).await + } + } + } + } + pub mod hrmp { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct HrmpInitOpenChannel { + pub recipient: runtime_types::polkadot_parachain::primitives::Id, + pub proposed_max_capacity: ::core::primitive::u32, + pub proposed_max_message_size: ::core::primitive::u32, + } + impl ::subxt::Call for HrmpInitOpenChannel { + const PALLET: &'static str = "Hrmp"; + const FUNCTION: &'static str = "hrmp_init_open_channel"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct HrmpAcceptOpenChannel { + pub sender: runtime_types::polkadot_parachain::primitives::Id, + } + impl ::subxt::Call for HrmpAcceptOpenChannel { + const PALLET: &'static str = "Hrmp"; + const FUNCTION: &'static str = "hrmp_accept_open_channel"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct HrmpCloseChannel { + pub channel_id: + runtime_types::polkadot_parachain::primitives::HrmpChannelId, + } + impl ::subxt::Call for HrmpCloseChannel { + const PALLET: &'static str = "Hrmp"; + const FUNCTION: &'static str = "hrmp_close_channel"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ForceCleanHrmp { + pub para: runtime_types::polkadot_parachain::primitives::Id, + pub inbound: ::core::primitive::u32, + pub outbound: ::core::primitive::u32, + } + impl ::subxt::Call for ForceCleanHrmp { + const PALLET: &'static str = "Hrmp"; + const FUNCTION: &'static str = "force_clean_hrmp"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct ForceProcessHrmpOpen { + pub channels: ::core::primitive::u32, + } + impl ::subxt::Call for ForceProcessHrmpOpen { + const PALLET: &'static str = "Hrmp"; + const FUNCTION: &'static str = "force_process_hrmp_open"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct ForceProcessHrmpClose { + pub channels: ::core::primitive::u32, + } + impl ::subxt::Call for ForceProcessHrmpClose { + const PALLET: &'static str = "Hrmp"; + const FUNCTION: &'static str = "force_process_hrmp_close"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct HrmpCancelOpenRequest { + pub channel_id: + runtime_types::polkadot_parachain::primitives::HrmpChannelId, + pub open_requests: ::core::primitive::u32, + } + impl ::subxt::Call for HrmpCancelOpenRequest { + const PALLET: &'static str = "Hrmp"; + const FUNCTION: &'static str = "hrmp_cancel_open_request"; + } + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } + } + pub fn hrmp_init_open_channel( + &self, + recipient: runtime_types::polkadot_parachain::primitives::Id, + proposed_max_capacity: ::core::primitive::u32, + proposed_max_message_size: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SetHrmpMaxParathreadOutboundChannels, + HrmpInitOpenChannel, DispatchError, root_mod::Event, > { - let call = SetHrmpMaxParathreadOutboundChannels { new }; + let call = HrmpInitOpenChannel { + recipient, + proposed_max_capacity, + proposed_max_message_size, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_hrmp_max_message_num_per_candidate( + pub fn hrmp_accept_open_channel( &self, - new: ::core::primitive::u32, + sender: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SetHrmpMaxMessageNumPerCandidate, + HrmpAcceptOpenChannel, DispatchError, root_mod::Event, > { - let call = SetHrmpMaxMessageNumPerCandidate { new }; + let call = HrmpAcceptOpenChannel { sender }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_ump_max_individual_weight( + pub fn hrmp_close_channel( &self, - new: ::core::primitive::u64, + channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SetUmpMaxIndividualWeight, + HrmpCloseChannel, DispatchError, root_mod::Event, > { - let call = SetUmpMaxIndividualWeight { new }; + let call = HrmpCloseChannel { channel_id }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_pvf_checking_enabled( + pub fn force_clean_hrmp( &self, - new: ::core::primitive::bool, + para: runtime_types::polkadot_parachain::primitives::Id, + inbound: ::core::primitive::u32, + outbound: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SetPvfCheckingEnabled, + ForceCleanHrmp, DispatchError, root_mod::Event, > { - let call = SetPvfCheckingEnabled { new }; + let call = ForceCleanHrmp { + para, + inbound, + outbound, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_pvf_voting_ttl( + pub fn force_process_hrmp_open( &self, - new: ::core::primitive::u32, + channels: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SetPvfVotingTtl, + ForceProcessHrmpOpen, DispatchError, root_mod::Event, > { - let call = SetPvfVotingTtl { new }; + let call = ForceProcessHrmpOpen { channels }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_minimum_validation_upgrade_delay( + pub fn force_process_hrmp_close( &self, - new: ::core::primitive::u32, + channels: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SetMinimumValidationUpgradeDelay, + ForceProcessHrmpClose, DispatchError, root_mod::Event, > { - let call = SetMinimumValidationUpgradeDelay { new }; + let call = ForceProcessHrmpClose { channels }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn set_bypass_consistency_check( + pub fn hrmp_cancel_open_request( &self, - new: ::core::primitive::bool, + channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId, + open_requests: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - SetBypassConsistencyCheck, + HrmpCancelOpenRequest, DispatchError, root_mod::Event, > { - let call = SetBypassConsistencyCheck { new }; + let call = HrmpCancelOpenRequest { + channel_id, + open_requests, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } + 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)] + pub struct OpenChannelRequested( + pub runtime_types::polkadot_parachain::primitives::Id, + pub runtime_types::polkadot_parachain::primitives::Id, + pub ::core::primitive::u32, + pub ::core::primitive::u32, + ); + impl ::subxt::Event for OpenChannelRequested { + const PALLET: &'static str = "Hrmp"; + const EVENT: &'static str = "OpenChannelRequested"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct OpenChannelCanceled( + pub runtime_types::polkadot_parachain::primitives::Id, + pub runtime_types::polkadot_parachain::primitives::HrmpChannelId, + ); + impl ::subxt::Event for OpenChannelCanceled { + const PALLET: &'static str = "Hrmp"; + const EVENT: &'static str = "OpenChannelCanceled"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct OpenChannelAccepted( + pub runtime_types::polkadot_parachain::primitives::Id, + pub runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::Event for OpenChannelAccepted { + const PALLET: &'static str = "Hrmp"; + const EVENT: &'static str = "OpenChannelAccepted"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ChannelClosed( + pub runtime_types::polkadot_parachain::primitives::Id, + pub runtime_types::polkadot_parachain::primitives::HrmpChannelId, + ); + impl ::subxt::Event for ChannelClosed { + const PALLET: &'static str = "Hrmp"; + const EVENT: &'static str = "ChannelClosed"; + } + } pub mod storage { use super::runtime_types; - pub struct ActiveConfig; - impl ::subxt::StorageEntry for ActiveConfig { - const PALLET: &'static str = "Configuration"; - const STORAGE: &'static str = "ActiveConfig"; - type Value = runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ; + pub struct HrmpOpenChannelRequests<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::HrmpChannelId, + ); + impl ::subxt::StorageEntry for HrmpOpenChannelRequests<'_> { + const PALLET: &'static str = "Hrmp"; + const STORAGE: &'static str = "HrmpOpenChannelRequests"; + type Value = runtime_types :: polkadot_runtime_parachains :: hrmp :: HrmpOpenChannelRequest ; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct HrmpOpenChannelRequestsList; + impl ::subxt::StorageEntry for HrmpOpenChannelRequestsList { + const PALLET: &'static str = "Hrmp"; + const STORAGE: &'static str = "HrmpOpenChannelRequestsList"; + type Value = ::std::vec::Vec< + runtime_types::polkadot_parachain::primitives::HrmpChannelId, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct PendingConfig<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for PendingConfig<'_> { - const PALLET: &'static str = "Configuration"; - const STORAGE: &'static str = "PendingConfig"; - type Value = runtime_types :: polkadot_runtime_parachains :: configuration :: migration :: v1 :: HostConfiguration < :: core :: primitive :: u32 > ; + pub struct HrmpOpenChannelRequestCount<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for HrmpOpenChannelRequestCount<'_> { + const PALLET: &'static str = "Hrmp"; + const STORAGE: &'static str = "HrmpOpenChannelRequestCount"; + type Value = ::core::primitive::u32; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -15358,269 +7008,404 @@ pub mod api { )]) } } - pub struct PendingConfigs; - impl ::subxt::StorageEntry for PendingConfigs { - const PALLET: &'static str = "Configuration"; - const STORAGE: &'static str = "PendingConfigs"; - type Value = :: std :: vec :: Vec < (:: core :: primitive :: u32 , runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ,) > ; + pub struct HrmpAcceptedChannelRequestCount<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for HrmpAcceptedChannelRequestCount<'_> { + const PALLET: &'static str = "Hrmp"; + const STORAGE: &'static str = "HrmpAcceptedChannelRequestCount"; + type Value = ::core::primitive::u32; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) } } - pub struct BypassConsistencyCheck; - impl ::subxt::StorageEntry for BypassConsistencyCheck { - const PALLET: &'static str = "Configuration"; - const STORAGE: &'static str = "BypassConsistencyCheck"; - type Value = ::core::primitive::bool; + pub struct HrmpCloseChannelRequests<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::HrmpChannelId, + ); + impl ::subxt::StorageEntry for HrmpCloseChannelRequests<'_> { + const PALLET: &'static str = "Hrmp"; + const STORAGE: &'static str = "HrmpCloseChannelRequests"; + type Value = (); + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct HrmpCloseChannelRequestsList; + impl ::subxt::StorageEntry for HrmpCloseChannelRequestsList { + const PALLET: &'static str = "Hrmp"; + const STORAGE: &'static str = "HrmpCloseChannelRequestsList"; + type Value = ::std::vec::Vec< + runtime_types::polkadot_parachain::primitives::HrmpChannelId, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } + pub struct HrmpWatermarks<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for HrmpWatermarks<'_> { + const PALLET: &'static str = "Hrmp"; + const STORAGE: &'static str = "HrmpWatermarks"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct HrmpChannels<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::HrmpChannelId, + ); + impl ::subxt::StorageEntry for HrmpChannels<'_> { + const PALLET: &'static str = "Hrmp"; + const STORAGE: &'static str = "HrmpChannels"; + type Value = + runtime_types::polkadot_runtime_parachains::hrmp::HrmpChannel; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct HrmpIngressChannelsIndex<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for HrmpIngressChannelsIndex<'_> { + const PALLET: &'static str = "Hrmp"; + const STORAGE: &'static str = "HrmpIngressChannelsIndex"; + type Value = + ::std::vec::Vec; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct HrmpEgressChannelsIndex<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for HrmpEgressChannelsIndex<'_> { + const PALLET: &'static str = "Hrmp"; + const STORAGE: &'static str = "HrmpEgressChannelsIndex"; + type Value = + ::std::vec::Vec; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct HrmpChannelContents<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::HrmpChannelId, + ); + impl ::subxt::StorageEntry for HrmpChannelContents<'_> { + const PALLET: &'static str = "Hrmp"; + const STORAGE: &'static str = "HrmpChannelContents"; + type Value = ::std::vec::Vec< + runtime_types::polkadot_core_primitives::InboundHrmpMessage< + ::core::primitive::u32, + >, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } + pub struct HrmpChannelDigests<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for HrmpChannelDigests<'_> { + const PALLET: &'static str = "Hrmp"; + const STORAGE: &'static str = "HrmpChannelDigests"; + type Value = ::std::vec::Vec<( + ::core::primitive::u32, + ::std::vec::Vec, + )>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) + } + } pub struct StorageApi<'a, T: ::subxt::Config> { client: &'a ::subxt::Client, } impl<'a, T: ::subxt::Config> StorageApi<'a, T> { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } - } pub async fn active_config (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > , :: subxt :: BasicError >{ - let entry = ActiveConfig; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn pending_config (& self , _0 : & :: core :: primitive :: u32 , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: configuration :: migration :: v1 :: HostConfiguration < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ - let entry = PendingConfig(_0); + } pub async fn hrmp_open_channel_requests (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: hrmp :: HrmpOpenChannelRequest > , :: subxt :: BasicError >{ + let entry = HrmpOpenChannelRequests(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn pending_config_iter( + pub async fn hrmp_open_channel_requests_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, PendingConfig<'a>>, + ::subxt::KeyIter<'a, T, HrmpOpenChannelRequests<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await - } pub async fn pending_configs (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < (:: core :: primitive :: u32 , runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ,) > , :: subxt :: BasicError >{ - let entry = PendingConfigs; + } + pub async fn hrmp_open_channel_requests_list( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec< + runtime_types::polkadot_parachain::primitives::HrmpChannelId, + >, + ::subxt::BasicError, + > { + let entry = HrmpOpenChannelRequestsList; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn bypass_consistency_check( + pub async fn hrmp_open_channel_request_count( &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let entry = BypassConsistencyCheck; + let entry = HrmpOpenChannelRequestCount(_0); self.client.storage().fetch_or_default(&entry, hash).await } - } - } - } - pub mod paras_shared { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } + pub async fn hrmp_open_channel_request_count_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, HrmpOpenChannelRequestCount<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await } - } - } - pub mod storage { - use super::runtime_types; - pub struct CurrentSessionIndex; - impl ::subxt::StorageEntry for CurrentSessionIndex { - const PALLET: &'static str = "ParasShared"; - const STORAGE: &'static str = "CurrentSessionIndex"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + pub async fn hrmp_accepted_channel_request_count( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = HrmpAcceptedChannelRequestCount(_0); + self.client.storage().fetch_or_default(&entry, hash).await } - } - pub struct ActiveValidatorIndices; - impl ::subxt::StorageEntry for ActiveValidatorIndices { - const PALLET: &'static str = "ParasShared"; - const STORAGE: &'static str = "ActiveValidatorIndices"; - type Value = ::std::vec::Vec< - runtime_types::polkadot_primitives::v2::ValidatorIndex, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + pub async fn hrmp_accepted_channel_request_count_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, HrmpAcceptedChannelRequestCount<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await } - } - pub struct ActiveValidatorKeys; - impl ::subxt::StorageEntry for ActiveValidatorKeys { - const PALLET: &'static str = "ParasShared"; - const STORAGE: &'static str = "ActiveValidatorKeys"; - type Value = ::std::vec::Vec< - runtime_types::polkadot_primitives::v2::validator_app::Public, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + pub async fn hrmp_close_channel_requests( + &self, + _0: &runtime_types::polkadot_parachain::primitives::HrmpChannelId, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::BasicError> + { + let entry = HrmpCloseChannelRequests(_0); + self.client.storage().fetch(&entry, hash).await } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } + pub async fn hrmp_close_channel_requests_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, HrmpCloseChannelRequests<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await } - pub async fn current_session_index( + pub async fn hrmp_close_channel_requests_list( &self, hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = CurrentSessionIndex; + ) -> ::core::result::Result< + ::std::vec::Vec< + runtime_types::polkadot_parachain::primitives::HrmpChannelId, + >, + ::subxt::BasicError, + > { + let entry = HrmpCloseChannelRequestsList; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn active_validator_indices( + pub async fn hrmp_watermarks( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::core::primitive::u32>, + ::subxt::BasicError, + > { + let entry = HrmpWatermarks(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn hrmp_watermarks_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, HrmpWatermarks<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn hrmp_channels( + &self, + _0: &runtime_types::polkadot_parachain::primitives::HrmpChannelId, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::polkadot_runtime_parachains::hrmp::HrmpChannel, + >, + ::subxt::BasicError, + > { + let entry = HrmpChannels(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn hrmp_channels_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, HrmpChannels<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn hrmp_ingress_channels_index( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec, + ::subxt::BasicError, + > { + let entry = HrmpIngressChannelsIndex(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn hrmp_ingress_channels_index_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, HrmpIngressChannelsIndex<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn hrmp_egress_channels_index( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec, + ::subxt::BasicError, + > { + let entry = HrmpEgressChannelsIndex(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn hrmp_egress_channels_index_iter( &self, hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, HrmpEgressChannelsIndex<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn hrmp_channel_contents( + &self, + _0: &runtime_types::polkadot_parachain::primitives::HrmpChannelId, + hash: ::core::option::Option, ) -> ::core::result::Result< ::std::vec::Vec< - runtime_types::polkadot_primitives::v2::ValidatorIndex, + runtime_types::polkadot_core_primitives::InboundHrmpMessage< + ::core::primitive::u32, + >, >, ::subxt::BasicError, > { - let entry = ActiveValidatorIndices; + let entry = HrmpChannelContents(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn hrmp_channel_contents_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, HrmpChannelContents<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn hrmp_channel_digests( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec<( + ::core::primitive::u32, + ::std::vec::Vec< + runtime_types::polkadot_parachain::primitives::Id, + >, + )>, + ::subxt::BasicError, + > { + let entry = HrmpChannelDigests(_0); self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn active_validator_keys( + pub async fn hrmp_channel_digests_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec< - runtime_types::polkadot_primitives::v2::validator_app::Public, - >, + ::subxt::KeyIter<'a, T, HrmpChannelDigests<'a>>, ::subxt::BasicError, > { - let entry = ActiveValidatorKeys; - self.client.storage().fetch_or_default(&entry, hash).await + self.client.storage().iter(hash).await } } } } - pub mod para_inclusion { + pub mod para_session_info { use super::root_mod; use super::runtime_types; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub struct TransactionApi<'a, T: ::subxt::Config, X> { - client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, - } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - } - } - pub type Event = - runtime_types::polkadot_runtime_parachains::inclusion::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CandidateBacked( - pub runtime_types::polkadot_primitives::v2::CandidateReceipt< - ::subxt::sp_core::H256, - >, - pub runtime_types::polkadot_parachain::primitives::HeadData, - pub runtime_types::polkadot_primitives::v2::CoreIndex, - pub runtime_types::polkadot_primitives::v2::GroupIndex, - ); - impl ::subxt::Event for CandidateBacked { - const PALLET: &'static str = "ParaInclusion"; - const EVENT: &'static str = "CandidateBacked"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CandidateIncluded( - pub runtime_types::polkadot_primitives::v2::CandidateReceipt< - ::subxt::sp_core::H256, - >, - pub runtime_types::polkadot_parachain::primitives::HeadData, - pub runtime_types::polkadot_primitives::v2::CoreIndex, - pub runtime_types::polkadot_primitives::v2::GroupIndex, - ); - impl ::subxt::Event for CandidateIncluded { - const PALLET: &'static str = "ParaInclusion"; - const EVENT: &'static str = "CandidateIncluded"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CandidateTimedOut( - pub runtime_types::polkadot_primitives::v2::CandidateReceipt< - ::subxt::sp_core::H256, - >, - pub runtime_types::polkadot_parachain::primitives::HeadData, - pub runtime_types::polkadot_primitives::v2::CoreIndex, - ); - impl ::subxt::Event for CandidateTimedOut { - const PALLET: &'static str = "ParaInclusion"; - const EVENT: &'static str = "CandidateTimedOut"; - } - } pub mod storage { use super::runtime_types; - pub struct AvailabilityBitfields<'a>( - pub &'a runtime_types::polkadot_primitives::v2::ValidatorIndex, - ); - impl ::subxt::StorageEntry for AvailabilityBitfields<'_> { - const PALLET: &'static str = "ParaInclusion"; - const STORAGE: &'static str = "AvailabilityBitfields"; - type Value = runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > ; + pub struct AssignmentKeysUnsafe; + impl ::subxt::StorageEntry for AssignmentKeysUnsafe { + const PALLET: &'static str = "ParaSessionInfo"; + const STORAGE: &'static str = "AssignmentKeysUnsafe"; + type Value = ::std::vec::Vec< + runtime_types::polkadot_primitives::v2::assignment_app::Public, + >; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + ::subxt::StorageEntryKey::Plain } } - pub struct PendingAvailability<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for PendingAvailability<'_> { - const PALLET: &'static str = "ParaInclusion"; - const STORAGE: &'static str = "PendingAvailability"; - type Value = runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: sp_core :: H256 , :: core :: primitive :: u32 > ; + pub struct EarliestStoredSession; + impl ::subxt::StorageEntry for EarliestStoredSession { + const PALLET: &'static str = "ParaSessionInfo"; + const STORAGE: &'static str = "EarliestStoredSession"; + type Value = ::core::primitive::u32; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + ::subxt::StorageEntryKey::Plain } } - pub struct PendingAvailabilityCommitments<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for PendingAvailabilityCommitments<'_> { - const PALLET: &'static str = "ParaInclusion"; - const STORAGE: &'static str = "PendingAvailabilityCommitments"; - type Value = runtime_types::polkadot_primitives::v2::CandidateCommitments< - ::core::primitive::u32, - >; + pub struct Sessions<'a>(pub &'a ::core::primitive::u32); + impl ::subxt::StorageEntry for Sessions<'_> { + const PALLET: &'static str = "ParaSessionInfo"; + const STORAGE: &'static str = "Sessions"; + type Value = runtime_types::polkadot_primitives::v2::SessionInfo; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Twox64Concat, + ::subxt::StorageHasher::Identity, )]) } } @@ -15630,51 +7415,45 @@ pub mod api { impl<'a, T: ::subxt::Config> StorageApi<'a, T> { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } - } pub async fn availability_bitfields (& self , _0 : & runtime_types :: polkadot_primitives :: v2 :: ValidatorIndex , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ - let entry = AvailabilityBitfields(_0); - self.client.storage().fetch(&entry, hash).await } - pub async fn availability_bitfields_iter( + pub async fn assignment_keys_unsafe( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, AvailabilityBitfields<'a>>, + ::std::vec::Vec< + runtime_types::polkadot_primitives::v2::assignment_app::Public, + >, ::subxt::BasicError, > { - self.client.storage().iter(hash).await - } pub async fn pending_availability (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: Id , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: sp_core :: H256 , :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ - let entry = PendingAvailability(_0); - self.client.storage().fetch(&entry, hash).await + let entry = AssignmentKeysUnsafe; + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn pending_availability_iter( + pub async fn earliest_stored_session( &self, hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, PendingAvailability<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = EarliestStoredSession; + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn pending_availability_commitments( + pub async fn sessions( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, + _0: &::core::primitive::u32, hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - runtime_types::polkadot_primitives::v2::CandidateCommitments< - ::core::primitive::u32, - >, + runtime_types::polkadot_primitives::v2::SessionInfo, >, ::subxt::BasicError, > { - let entry = PendingAvailabilityCommitments(_0); + let entry = Sessions(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn pending_availability_commitments_iter( + pub async fn sessions_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, PendingAvailabilityCommitments<'a>>, + ::subxt::KeyIter<'a, T, Sessions<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await @@ -15682,7 +7461,7 @@ pub mod api { } } } - pub mod para_inherent { + pub mod paras_disputes { use super::root_mod; use super::runtime_types; pub mod calls { @@ -15690,17 +7469,10 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Enter { - pub data: runtime_types::polkadot_primitives::v2::InherentData< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - } - impl ::subxt::Call for Enter { - const PALLET: &'static str = "ParaInherent"; - const FUNCTION: &'static str = "enter"; + pub struct ForceUnfreeze; + impl ::subxt::Call for ForceUnfreeze { + const PALLET: &'static str = "ParasDisputes"; + const FUNCTION: &'static str = "force_unfreeze"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -15711,153 +7483,141 @@ pub mod api { T: ::subxt::Config, X: ::subxt::extrinsic::ExtrinsicParams, { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } - } - pub fn enter( - &self, - data: runtime_types::polkadot_primitives::v2::InherentData< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Enter, - DispatchError, - root_mod::Event, - > { - let call = Enter { data }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - pub mod storage { - use super::runtime_types; - pub struct Included; - impl ::subxt::StorageEntry for Included { - const PALLET: &'static str = "ParaInherent"; - const STORAGE: &'static str = "Included"; - type Value = (); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct OnChainVotes; - impl ::subxt::StorageEntry for OnChainVotes { - const PALLET: &'static str = "ParaInherent"; - const STORAGE: &'static str = "OnChainVotes"; - type Value = runtime_types::polkadot_primitives::v2::ScrapedOnChainVotes< - ::subxt::sp_core::H256, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } - } - pub async fn included( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::BasicError> - { - let entry = Included; - self.client.storage().fetch(&entry, hash).await + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } } - pub async fn on_chain_votes( + pub fn force_unfreeze( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_primitives::v2::ScrapedOnChainVotes< - ::subxt::sp_core::H256, - >, - >, - ::subxt::BasicError, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ForceUnfreeze, + DispatchError, + root_mod::Event, > { - let entry = OnChainVotes; - self.client.storage().fetch(&entry, hash).await + let call = ForceUnfreeze {}; + ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - } - pub mod para_scheduler { - use super::root_mod; - use super::runtime_types; - pub mod storage { + pub type Event = + runtime_types::polkadot_runtime_parachains::disputes::pallet::Event; + pub mod events { use super::runtime_types; - pub struct ValidatorGroups; - impl ::subxt::StorageEntry for ValidatorGroups { - const PALLET: &'static str = "ParaScheduler"; - const STORAGE: &'static str = "ValidatorGroups"; - type Value = ::std::vec::Vec< - ::std::vec::Vec< - runtime_types::polkadot_primitives::v2::ValidatorIndex, - >, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct DisputeInitiated( + pub runtime_types::polkadot_core_primitives::CandidateHash, + pub runtime_types::polkadot_runtime_parachains::disputes::DisputeLocation, + ); + impl ::subxt::Event for DisputeInitiated { + const PALLET: &'static str = "ParasDisputes"; + const EVENT: &'static str = "DisputeInitiated"; } - pub struct ParathreadQueue; - impl ::subxt::StorageEntry for ParathreadQueue { - const PALLET: &'static str = "ParaScheduler"; - const STORAGE: &'static str = "ParathreadQueue"; - type Value = runtime_types :: polkadot_runtime_parachains :: scheduler :: ParathreadClaimQueue ; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct DisputeConcluded( + pub runtime_types::polkadot_core_primitives::CandidateHash, + pub runtime_types::polkadot_runtime_parachains::disputes::DisputeResult, + ); + impl ::subxt::Event for DisputeConcluded { + const PALLET: &'static str = "ParasDisputes"; + const EVENT: &'static str = "DisputeConcluded"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct DisputeTimedOut( + pub runtime_types::polkadot_core_primitives::CandidateHash, + ); + impl ::subxt::Event for DisputeTimedOut { + const PALLET: &'static str = "ParasDisputes"; + const EVENT: &'static str = "DisputeTimedOut"; + } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct Revert(pub ::core::primitive::u32); + impl ::subxt::Event for Revert { + const PALLET: &'static str = "ParasDisputes"; + const EVENT: &'static str = "Revert"; + } + } + pub mod storage { + use super::runtime_types; + pub struct LastPrunedSession; + impl ::subxt::StorageEntry for LastPrunedSession { + const PALLET: &'static str = "ParasDisputes"; + const STORAGE: &'static str = "LastPrunedSession"; + type Value = ::core::primitive::u32; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct AvailabilityCores; - impl ::subxt::StorageEntry for AvailabilityCores { - const PALLET: &'static str = "ParaScheduler"; - const STORAGE: &'static str = "AvailabilityCores"; - type Value = ::std::vec::Vec< - ::core::option::Option< - runtime_types::polkadot_primitives::v2::CoreOccupied, - >, + pub struct Disputes<'a>( + pub &'a ::core::primitive::u32, + pub &'a runtime_types::polkadot_core_primitives::CandidateHash, + ); + impl ::subxt::StorageEntry for Disputes<'_> { + const PALLET: &'static str = "ParasDisputes"; + const STORAGE: &'static str = "Disputes"; + type Value = runtime_types::polkadot_primitives::v2::DisputeState< + ::core::primitive::u32, >; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ]) } } - pub struct ParathreadClaimIndex; - impl ::subxt::StorageEntry for ParathreadClaimIndex { - const PALLET: &'static str = "ParaScheduler"; - const STORAGE: &'static str = "ParathreadClaimIndex"; - type Value = - ::std::vec::Vec; + pub struct Included<'a>( + pub &'a ::core::primitive::u32, + pub &'a runtime_types::polkadot_core_primitives::CandidateHash, + ); + impl ::subxt::StorageEntry for Included<'_> { + const PALLET: &'static str = "ParasDisputes"; + const STORAGE: &'static str = "Included"; + type Value = ::core::primitive::u32; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ]) } } - pub struct SessionStartBlock; - impl ::subxt::StorageEntry for SessionStartBlock { - const PALLET: &'static str = "ParaScheduler"; - const STORAGE: &'static str = "SessionStartBlock"; - type Value = ::core::primitive::u32; + pub struct SpamSlots<'a>(pub &'a ::core::primitive::u32); + impl ::subxt::StorageEntry for SpamSlots<'_> { + const PALLET: &'static str = "ParasDisputes"; + const STORAGE: &'static str = "SpamSlots"; + type Value = ::std::vec::Vec<::core::primitive::u32>; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) } } - pub struct Scheduled; - impl ::subxt::StorageEntry for Scheduled { - const PALLET: &'static str = "ParaScheduler"; - const STORAGE: &'static str = "Scheduled"; - type Value = ::std::vec::Vec< - runtime_types::polkadot_runtime_parachains::scheduler::CoreAssignment, - >; + pub struct Frozen; + impl ::subxt::StorageEntry for Frozen { + const PALLET: &'static str = "ParasDisputes"; + const STORAGE: &'static str = "Frozen"; + type Value = ::core::option::Option<::core::primitive::u32>; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } @@ -15869,62 +7629,96 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn validator_groups( + pub async fn last_pruned_session( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec< - ::std::vec::Vec< - runtime_types::polkadot_primitives::v2::ValidatorIndex, - >, - >, + ::core::option::Option<::core::primitive::u32>, ::subxt::BasicError, > { - let entry = ValidatorGroups; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn parathread_queue (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < runtime_types :: polkadot_runtime_parachains :: scheduler :: ParathreadClaimQueue , :: subxt :: BasicError >{ - let entry = ParathreadQueue; - self.client.storage().fetch_or_default(&entry, hash).await + let entry = LastPrunedSession; + self.client.storage().fetch(&entry, hash).await } - pub async fn availability_cores( + pub async fn disputes( &self, + _0: &::core::primitive::u32, + _1: &runtime_types::polkadot_core_primitives::CandidateHash, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec< - ::core::option::Option< - runtime_types::polkadot_primitives::v2::CoreOccupied, + ::core::option::Option< + runtime_types::polkadot_primitives::v2::DisputeState< + ::core::primitive::u32, >, >, ::subxt::BasicError, > { - let entry = AvailabilityCores; - self.client.storage().fetch_or_default(&entry, hash).await + let entry = Disputes(_0, _1); + self.client.storage().fetch(&entry, hash).await } - pub async fn parathread_claim_index( + pub async fn disputes_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec, + ::subxt::KeyIter<'a, T, Disputes<'a>>, ::subxt::BasicError, > { - let entry = ParathreadClaimIndex; - self.client.storage().fetch_or_default(&entry, hash).await + self.client.storage().iter(hash).await } - pub async fn session_start_block( + pub async fn included( &self, + _0: &::core::primitive::u32, + _1: &runtime_types::polkadot_core_primitives::CandidateHash, hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = SessionStartBlock; - self.client.storage().fetch_or_default(&entry, hash).await - } pub async fn scheduled (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: scheduler :: CoreAssignment > , :: subxt :: BasicError >{ - let entry = Scheduled; + ) -> ::core::result::Result< + ::core::option::Option<::core::primitive::u32>, + ::subxt::BasicError, + > { + let entry = Included(_0, _1); + self.client.storage().fetch(&entry, hash).await + } + pub async fn included_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Included<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn spam_slots( + &self, + _0: &::core::primitive::u32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::std::vec::Vec<::core::primitive::u32>>, + ::subxt::BasicError, + > { + let entry = SpamSlots(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn spam_slots_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, SpamSlots<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn frozen( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::core::primitive::u32>, + ::subxt::BasicError, + > { + let entry = Frozen; self.client.storage().fetch_or_default(&entry, hash).await } } } } - pub mod paras { + pub mod registrar { use super::root_mod; use super::runtime_types; pub mod calls { @@ -15932,79 +7726,59 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceSetCurrentCode { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_code: + pub struct Register { + pub id: runtime_types::polkadot_parachain::primitives::Id, + pub genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, + pub validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, } - impl ::subxt::Call for ForceSetCurrentCode { - const PALLET: &'static str = "Paras"; - const FUNCTION: &'static str = "force_set_current_code"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceSetCurrentHead { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, - } - impl ::subxt::Call for ForceSetCurrentHead { - const PALLET: &'static str = "Paras"; - const FUNCTION: &'static str = "force_set_current_head"; + impl ::subxt::Call for Register { + const PALLET: &'static str = "Registrar"; + const FUNCTION: &'static str = "register"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceScheduleCodeUpgrade { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_code: + pub struct ForceRegister { + pub who: ::subxt::sp_core::crypto::AccountId32, + pub deposit: ::core::primitive::u128, + pub id: runtime_types::polkadot_parachain::primitives::Id, + pub genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, + pub validation_code: runtime_types::polkadot_parachain::primitives::ValidationCode, - pub relay_parent_number: ::core::primitive::u32, - } - impl ::subxt::Call for ForceScheduleCodeUpgrade { - const PALLET: &'static str = "Paras"; - const FUNCTION: &'static str = "force_schedule_code_upgrade"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceNoteNewHead { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub new_head: runtime_types::polkadot_parachain::primitives::HeadData, } - impl ::subxt::Call for ForceNoteNewHead { - const PALLET: &'static str = "Paras"; - const FUNCTION: &'static str = "force_note_new_head"; + impl ::subxt::Call for ForceRegister { + const PALLET: &'static str = "Registrar"; + const FUNCTION: &'static str = "force_register"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceQueueAction { - pub para: runtime_types::polkadot_parachain::primitives::Id, + pub struct Deregister { + pub id: runtime_types::polkadot_parachain::primitives::Id, } - impl ::subxt::Call for ForceQueueAction { - const PALLET: &'static str = "Paras"; - const FUNCTION: &'static str = "force_queue_action"; + impl ::subxt::Call for Deregister { + const PALLET: &'static str = "Registrar"; + const FUNCTION: &'static str = "deregister"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AddTrustedValidationCode { - pub validation_code: - runtime_types::polkadot_parachain::primitives::ValidationCode, + pub struct Swap { + pub id: runtime_types::polkadot_parachain::primitives::Id, + pub other: runtime_types::polkadot_parachain::primitives::Id, } - impl ::subxt::Call for AddTrustedValidationCode { - const PALLET: &'static str = "Paras"; - const FUNCTION: &'static str = "add_trusted_validation_code"; + impl ::subxt::Call for Swap { + const PALLET: &'static str = "Registrar"; + const FUNCTION: &'static str = "swap"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PokeUnusedValidationCode { - pub validation_code_hash: - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + pub struct ForceRemoveLock { + pub para: runtime_types::polkadot_parachain::primitives::Id, } - impl ::subxt::Call for PokeUnusedValidationCode { - const PALLET: &'static str = "Paras"; - const FUNCTION: &'static str = "poke_unused_validation_code"; + impl ::subxt::Call for ForceRemoveLock { + const PALLET: &'static str = "Registrar"; + const FUNCTION: &'static str = "force_remove_lock"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct IncludePvfCheckStatement { - pub stmt: runtime_types::polkadot_primitives::v2::PvfCheckStatement, - pub signature: - runtime_types::polkadot_primitives::v2::validator_app::Signature, - } - impl ::subxt::Call for IncludePvfCheckStatement { - const PALLET: &'static str = "Paras"; - const FUNCTION: &'static str = "include_pvf_check_statement"; + pub struct Reserve; + impl ::subxt::Call for Reserve { + const PALLET: &'static str = "Registrar"; + const FUNCTION: &'static str = "reserve"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -16021,213 +7795,148 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn force_set_current_code( - &self, - para: runtime_types::polkadot_parachain::primitives::Id, - new_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ForceSetCurrentCode, - DispatchError, - root_mod::Event, - > { - let call = ForceSetCurrentCode { para, new_code }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn force_set_current_head( - &self, - para: runtime_types::polkadot_parachain::primitives::Id, - new_head: runtime_types::polkadot_parachain::primitives::HeadData, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - ForceSetCurrentHead, - DispatchError, - root_mod::Event, - > { - let call = ForceSetCurrentHead { para, new_head }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn force_schedule_code_upgrade( + pub fn register( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - new_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, - relay_parent_number: ::core::primitive::u32, + id: runtime_types::polkadot_parachain::primitives::Id, + genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, + validation_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ForceScheduleCodeUpgrade, + Register, DispatchError, root_mod::Event, > { - let call = ForceScheduleCodeUpgrade { - para, - new_code, - relay_parent_number, + let call = Register { + id, + genesis_head, + validation_code, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_note_new_head( + pub fn force_register( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - new_head: runtime_types::polkadot_parachain::primitives::HeadData, + 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, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ForceNoteNewHead, + ForceRegister, DispatchError, root_mod::Event, > { - let call = ForceNoteNewHead { para, new_head }; + let call = ForceRegister { + who, + deposit, + id, + genesis_head, + validation_code, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_queue_action( + pub fn deregister( &self, - para: runtime_types::polkadot_parachain::primitives::Id, + id: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ForceQueueAction, + Deregister, DispatchError, root_mod::Event, > { - let call = ForceQueueAction { para }; + let call = Deregister { id }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn add_trusted_validation_code( + pub fn swap( &self, - validation_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, + id: runtime_types::polkadot_parachain::primitives::Id, + other: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - AddTrustedValidationCode, + Swap, DispatchError, root_mod::Event, > { - let call = AddTrustedValidationCode { validation_code }; + let call = Swap { id, other }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn poke_unused_validation_code( + pub fn force_remove_lock( &self, - validation_code_hash : runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash, + para: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - PokeUnusedValidationCode, + ForceRemoveLock, DispatchError, root_mod::Event, > { - let call = PokeUnusedValidationCode { - validation_code_hash, - }; + let call = ForceRemoveLock { para }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn include_pvf_check_statement( + pub fn reserve( &self, - stmt: runtime_types::polkadot_primitives::v2::PvfCheckStatement, - signature : runtime_types :: polkadot_primitives :: v2 :: validator_app :: Signature, ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - IncludePvfCheckStatement, - DispatchError, - root_mod::Event, - > { - let call = IncludePvfCheckStatement { stmt, signature }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - 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)] - pub struct CurrentCodeUpdated( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::Event for CurrentCodeUpdated { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "CurrentCodeUpdated"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CurrentHeadUpdated( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::Event for CurrentHeadUpdated { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "CurrentHeadUpdated"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CodeUpgradeScheduled( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::Event for CodeUpgradeScheduled { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "CodeUpgradeScheduled"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct NewHeadNoted( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::Event for NewHeadNoted { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "NewHeadNoted"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ActionQueued( - pub runtime_types::polkadot_parachain::primitives::Id, - pub ::core::primitive::u32, - ); - impl ::subxt::Event for ActionQueued { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "ActionQueued"; + 'a, + T, + X, + Reserve, + DispatchError, + root_mod::Event, + > { + let call = Reserve {}; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } } + } + pub type Event = + runtime_types::polkadot_runtime_common::paras_registrar::pallet::Event; + pub mod events { + use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PvfCheckStarted( - pub runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + pub struct Registered( pub runtime_types::polkadot_parachain::primitives::Id, + pub ::subxt::sp_core::crypto::AccountId32, ); - impl ::subxt::Event for PvfCheckStarted { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "PvfCheckStarted"; + impl ::subxt::Event for Registered { + const PALLET: &'static str = "Registrar"; + const EVENT: &'static str = "Registered"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PvfCheckAccepted( - pub runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + pub struct Deregistered( pub runtime_types::polkadot_parachain::primitives::Id, ); - impl ::subxt::Event for PvfCheckAccepted { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "PvfCheckAccepted"; + impl ::subxt::Event for Deregistered { + const PALLET: &'static str = "Registrar"; + const EVENT: &'static str = "Deregistered"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PvfCheckRejected( - pub runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + pub struct Reserved( pub runtime_types::polkadot_parachain::primitives::Id, + pub ::subxt::sp_core::crypto::AccountId32, ); - impl ::subxt::Event for PvfCheckRejected { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "PvfCheckRejected"; + impl ::subxt::Event for Reserved { + const PALLET: &'static str = "Registrar"; + const EVENT: &'static str = "Reserved"; } } pub mod storage { use super::runtime_types; - pub struct PvfActiveVoteMap<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + pub struct PendingSwap<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, ); - impl ::subxt::StorageEntry for PvfActiveVoteMap<'_> { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "PvfActiveVoteMap"; - type Value = runtime_types :: polkadot_runtime_parachains :: paras :: PvfCheckActiveVoteState < :: core :: primitive :: u32 > ; + impl ::subxt::StorageEntry for PendingSwap<'_> { + const PALLET: &'static str = "Registrar"; + const STORAGE: &'static str = "PendingSwap"; + type Value = runtime_types::polkadot_parachain::primitives::Id; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -16235,35 +7944,17 @@ pub mod api { )]) } } - pub struct PvfActiveVoteList; - impl ::subxt::StorageEntry for PvfActiveVoteList { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "PvfActiveVoteList"; - type Value = ::std::vec::Vec< - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Parachains; - impl ::subxt::StorageEntry for Parachains { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "Parachains"; - type Value = - ::std::vec::Vec; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct ParaLifecycles<'a>( + pub struct Paras<'a>( pub &'a runtime_types::polkadot_parachain::primitives::Id, ); - impl ::subxt::StorageEntry for ParaLifecycles<'_> { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "ParaLifecycles"; + impl ::subxt::StorageEntry for Paras<'_> { + const PALLET: &'static str = "Registrar"; + const STORAGE: &'static str = "Paras"; type Value = - runtime_types::polkadot_runtime_parachains::paras::ParaLifecycle; + runtime_types::polkadot_runtime_common::paras_registrar::ParaInfo< + ::subxt::sp_core::crypto::AccountId32, + ::core::primitive::u128, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -16271,215 +7962,347 @@ pub mod api { )]) } } - pub struct Heads<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for Heads<'_> { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "Heads"; - type Value = runtime_types::polkadot_parachain::primitives::HeadData; + pub struct NextFreeParaId; + impl ::subxt::StorageEntry for NextFreeParaId { + const PALLET: &'static str = "Registrar"; + const STORAGE: &'static str = "NextFreeParaId"; + type Value = runtime_types::polkadot_parachain::primitives::Id; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + ::subxt::StorageEntryKey::Plain + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn pending_swap( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::polkadot_parachain::primitives::Id, + >, + ::subxt::BasicError, + > { + let entry = PendingSwap(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn pending_swap_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, PendingSwap<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn paras( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::polkadot_runtime_common::paras_registrar::ParaInfo< + ::subxt::sp_core::crypto::AccountId32, + ::core::primitive::u128, + >, + >, + ::subxt::BasicError, + > { + let entry = Paras(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn paras_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Paras<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn next_free_para_id( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + runtime_types::polkadot_parachain::primitives::Id, + ::subxt::BasicError, + > { + let entry = NextFreeParaId; + self.client.storage().fetch_or_default(&entry, hash).await + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn para_deposit( + &self, + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Registrar")?; + let constant = pallet.constant("ParaDeposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn data_deposit_per_byte( + &self, + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Registrar")?; + let constant = pallet.constant("DataDepositPerByte")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + } + } + } + pub mod auctions { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct NewAuction { + #[codec(compact)] + pub duration: ::core::primitive::u32, + #[codec(compact)] + pub lease_period_index: ::core::primitive::u32, + } + impl ::subxt::Call for NewAuction { + const PALLET: &'static str = "Auctions"; + const FUNCTION: &'static str = "new_auction"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Bid { + #[codec(compact)] + pub para: runtime_types::polkadot_parachain::primitives::Id, + #[codec(compact)] + pub auction_index: ::core::primitive::u32, + #[codec(compact)] + pub first_slot: ::core::primitive::u32, + #[codec(compact)] + pub last_slot: ::core::primitive::u32, + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::Call for Bid { + const PALLET: &'static str = "Auctions"; + const FUNCTION: &'static str = "bid"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct CancelAuction; + impl ::subxt::Call for CancelAuction { + const PALLET: &'static str = "Auctions"; + const FUNCTION: &'static str = "cancel_auction"; + } + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } + } + pub fn new_auction( + &self, + duration: ::core::primitive::u32, + lease_period_index: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + NewAuction, + DispatchError, + root_mod::Event, + > { + let call = NewAuction { + duration, + lease_period_index, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - pub struct CurrentCodeHash<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for CurrentCodeHash<'_> { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "CurrentCodeHash"; - type Value = - runtime_types::polkadot_parachain::primitives::ValidationCodeHash; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + pub fn bid( + &self, + para: runtime_types::polkadot_parachain::primitives::Id, + auction_index: ::core::primitive::u32, + first_slot: ::core::primitive::u32, + last_slot: ::core::primitive::u32, + amount: ::core::primitive::u128, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Bid, + DispatchError, + root_mod::Event, + > { + let call = Bid { + para, + auction_index, + first_slot, + last_slot, + amount, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - pub struct PastCodeHash<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - pub &'a ::core::primitive::u32, - ); - impl ::subxt::StorageEntry for PastCodeHash<'_> { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "PastCodeHash"; - type Value = - runtime_types::polkadot_parachain::primitives::ValidationCodeHash; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &(&self.0, &self.1), - ::subxt::StorageHasher::Twox64Concat, - )]) + pub fn cancel_auction( + &self, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + CancelAuction, + DispatchError, + root_mod::Event, + > { + let call = CancelAuction {}; + ::subxt::SubmittableExtrinsic::new(self.client, call) } } - pub struct PastCodeMeta<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, + } + 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)] + pub struct AuctionStarted( + pub ::core::primitive::u32, + pub ::core::primitive::u32, + pub ::core::primitive::u32, ); - impl ::subxt::StorageEntry for PastCodeMeta<'_> { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "PastCodeMeta"; - type Value = - runtime_types::polkadot_runtime_parachains::paras::ParaPastCodeMeta< - ::core::primitive::u32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + impl ::subxt::Event for AuctionStarted { + const PALLET: &'static str = "Auctions"; + const EVENT: &'static str = "AuctionStarted"; } - pub struct PastCodePruning; - impl ::subxt::StorageEntry for PastCodePruning { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "PastCodePruning"; - type Value = ::std::vec::Vec<( - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u32, - )>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct AuctionClosed(pub ::core::primitive::u32); + impl ::subxt::Event for AuctionClosed { + const PALLET: &'static str = "Auctions"; + const EVENT: &'static str = "AuctionClosed"; } - pub struct FutureCodeUpgrades<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Reserved( + pub ::subxt::sp_core::crypto::AccountId32, + pub ::core::primitive::u128, + pub ::core::primitive::u128, ); - impl ::subxt::StorageEntry for FutureCodeUpgrades<'_> { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "FutureCodeUpgrades"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + impl ::subxt::Event for Reserved { + const PALLET: &'static str = "Auctions"; + const EVENT: &'static str = "Reserved"; } - pub struct FutureCodeHash<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Unreserved( + pub ::subxt::sp_core::crypto::AccountId32, + pub ::core::primitive::u128, ); - impl ::subxt::StorageEntry for FutureCodeHash<'_> { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "FutureCodeHash"; - type Value = - runtime_types::polkadot_parachain::primitives::ValidationCodeHash; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + impl ::subxt::Event for Unreserved { + const PALLET: &'static str = "Auctions"; + const EVENT: &'static str = "Unreserved"; } - pub struct UpgradeGoAheadSignal<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ReserveConfiscated( + pub runtime_types::polkadot_parachain::primitives::Id, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::core::primitive::u128, ); - impl ::subxt::StorageEntry for UpgradeGoAheadSignal<'_> { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "UpgradeGoAheadSignal"; - type Value = runtime_types::polkadot_primitives::v2::UpgradeGoAhead; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + impl ::subxt::Event for ReserveConfiscated { + const PALLET: &'static str = "Auctions"; + const EVENT: &'static str = "ReserveConfiscated"; } - pub struct UpgradeRestrictionSignal<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct BidAccepted( + pub ::subxt::sp_core::crypto::AccountId32, + pub runtime_types::polkadot_parachain::primitives::Id, + pub ::core::primitive::u128, + pub ::core::primitive::u32, + pub ::core::primitive::u32, ); - impl ::subxt::StorageEntry for UpgradeRestrictionSignal<'_> { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "UpgradeRestrictionSignal"; - type Value = runtime_types::polkadot_primitives::v2::UpgradeRestriction; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct UpgradeCooldowns; - impl ::subxt::StorageEntry for UpgradeCooldowns { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "UpgradeCooldowns"; - type Value = ::std::vec::Vec<( - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u32, - )>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + impl ::subxt::Event for BidAccepted { + const PALLET: &'static str = "Auctions"; + const EVENT: &'static str = "BidAccepted"; } - pub struct UpcomingUpgrades; - impl ::subxt::StorageEntry for UpcomingUpgrades { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "UpcomingUpgrades"; - type Value = ::std::vec::Vec<( - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u32, - )>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct WinningOffset( + pub ::core::primitive::u32, + pub ::core::primitive::u32, + ); + impl ::subxt::Event for WinningOffset { + const PALLET: &'static str = "Auctions"; + const EVENT: &'static str = "WinningOffset"; } - pub struct ActionsQueue<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for ActionsQueue<'_> { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "ActionsQueue"; - type Value = - ::std::vec::Vec; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + } + pub mod storage { + use super::runtime_types; + pub struct AuctionCounter; + impl ::subxt::StorageEntry for AuctionCounter { + const PALLET: &'static str = "Auctions"; + const STORAGE: &'static str = "AuctionCounter"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } } - pub struct UpcomingParasGenesis<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for UpcomingParasGenesis<'_> { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "UpcomingParasGenesis"; - type Value = - runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs; + pub struct AuctionInfo; + impl ::subxt::StorageEntry for AuctionInfo { + const PALLET: &'static str = "Auctions"; + const STORAGE: &'static str = "AuctionInfo"; + type Value = (::core::primitive::u32, ::core::primitive::u32); fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + ::subxt::StorageEntryKey::Plain } } - pub struct CodeByHashRefs<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + pub struct ReservedAmounts<'a>( + pub &'a ::subxt::sp_core::crypto::AccountId32, + pub &'a runtime_types::polkadot_parachain::primitives::Id, ); - impl ::subxt::StorageEntry for CodeByHashRefs<'_> { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "CodeByHashRefs"; - type Value = ::core::primitive::u32; + impl ::subxt::StorageEntry for ReservedAmounts<'_> { + const PALLET: &'static str = "Auctions"; + const STORAGE: &'static str = "ReservedAmounts"; + type Value = ::core::primitive::u128; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Identity, + &(&self.0, &self.1), + ::subxt::StorageHasher::Twox64Concat, )]) } } - pub struct CodeByHash<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - ); - impl ::subxt::StorageEntry for CodeByHash<'_> { - const PALLET: &'static str = "Paras"; - const STORAGE: &'static str = "CodeByHash"; - type Value = - runtime_types::polkadot_parachain::primitives::ValidationCode; + pub struct Winning<'a>(pub &'a ::core::primitive::u32); + impl ::subxt::StorageEntry for Winning<'_> { + const PALLET: &'static str = "Auctions"; + const STORAGE: &'static str = "Winning"; + type Value = [::core::option::Option<( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::polkadot_parachain::primitives::Id, + ::core::primitive::u128, + )>; 36usize]; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Identity, + ::subxt::StorageHasher::Twox64Concat, )]) } } @@ -16489,385 +8312,692 @@ pub mod api { impl<'a, T: ::subxt::Config> StorageApi<'a, T> { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } - } pub async fn pvf_active_vote_map (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: paras :: PvfCheckActiveVoteState < :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ - let entry = PvfActiveVoteMap(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn pvf_active_vote_map_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, PvfActiveVoteMap<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await } - pub async fn pvf_active_vote_list( + pub async fn auction_counter( &self, hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec< - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - >, - ::subxt::BasicError, - > { - let entry = PvfActiveVoteList; + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = AuctionCounter; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn parachains( + pub async fn auction_info( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec, + ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, ::subxt::BasicError, > { - let entry = Parachains; - self.client.storage().fetch_or_default(&entry, hash).await + let entry = AuctionInfo; + self.client.storage().fetch(&entry, hash).await } - pub async fn para_lifecycles( + pub async fn reserved_amounts( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, + _0: &::subxt::sp_core::crypto::AccountId32, + _1: &runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_runtime_parachains::paras::ParaLifecycle, - >, + ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - let entry = ParaLifecycles(_0); + let entry = ReservedAmounts(_0, _1); self.client.storage().fetch(&entry, hash).await } - pub async fn para_lifecycles_iter( + pub async fn reserved_amounts_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ParaLifecycles<'a>>, + ::subxt::KeyIter<'a, T, ReservedAmounts<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn heads( + pub async fn winning( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, + _0: &::core::primitive::u32, hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - runtime_types::polkadot_parachain::primitives::HeadData, + [::core::option::Option<( + ::subxt::sp_core::crypto::AccountId32, + runtime_types::polkadot_parachain::primitives::Id, + ::core::primitive::u128, + )>; 36usize], >, ::subxt::BasicError, > { - let entry = Heads(_0); + let entry = Winning(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn heads_iter( + pub async fn winning_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Heads<'a>>, + ::subxt::KeyIter<'a, T, Winning<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn current_code_hash( + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn ending_period( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - >, - ::subxt::BasicError, - > { - let entry = CurrentCodeHash(_0); - self.client.storage().fetch(&entry, hash).await + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Auctions")?; + let constant = pallet.constant("EndingPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub async fn current_code_hash_iter( + pub fn sample_length( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, CurrentCodeHash<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Auctions")?; + let constant = pallet.constant("SampleLength")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub async fn past_code_hash( + pub fn slot_range_count( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, - _1: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, - >, - ::subxt::BasicError, - > { - let entry = PastCodeHash(_0, _1); - self.client.storage().fetch(&entry, hash).await + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Auctions")?; + let constant = pallet.constant("SlotRangeCount")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub async fn past_code_hash_iter( + pub fn lease_periods_per_slot( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, PastCodeHash<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Auctions")?; + let constant = pallet.constant("LeasePeriodsPerSlot")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + } + } + } + pub mod crowdloan { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Create { + #[codec(compact)] + pub index: runtime_types::polkadot_parachain::primitives::Id, + #[codec(compact)] + pub cap: ::core::primitive::u128, + #[codec(compact)] + pub first_period: ::core::primitive::u32, + #[codec(compact)] + pub last_period: ::core::primitive::u32, + #[codec(compact)] + pub end: ::core::primitive::u32, + pub verifier: + ::core::option::Option, + } + impl ::subxt::Call for Create { + const PALLET: &'static str = "Crowdloan"; + const FUNCTION: &'static str = "create"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Contribute { + #[codec(compact)] + pub index: runtime_types::polkadot_parachain::primitives::Id, + #[codec(compact)] + pub value: ::core::primitive::u128, + pub signature: + ::core::option::Option, + } + impl ::subxt::Call for Contribute { + const PALLET: &'static str = "Crowdloan"; + const FUNCTION: &'static str = "contribute"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Withdraw { + pub who: ::subxt::sp_core::crypto::AccountId32, + #[codec(compact)] + pub index: runtime_types::polkadot_parachain::primitives::Id, + } + impl ::subxt::Call for Withdraw { + const PALLET: &'static str = "Crowdloan"; + const FUNCTION: &'static str = "withdraw"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Refund { + #[codec(compact)] + pub index: runtime_types::polkadot_parachain::primitives::Id, + } + impl ::subxt::Call for Refund { + const PALLET: &'static str = "Crowdloan"; + const FUNCTION: &'static str = "refund"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Dissolve { + #[codec(compact)] + pub index: runtime_types::polkadot_parachain::primitives::Id, + } + impl ::subxt::Call for Dissolve { + const PALLET: &'static str = "Crowdloan"; + const FUNCTION: &'static str = "dissolve"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Edit { + #[codec(compact)] + pub index: runtime_types::polkadot_parachain::primitives::Id, + #[codec(compact)] + pub cap: ::core::primitive::u128, + #[codec(compact)] + pub first_period: ::core::primitive::u32, + #[codec(compact)] + pub last_period: ::core::primitive::u32, + #[codec(compact)] + pub end: ::core::primitive::u32, + pub verifier: + ::core::option::Option, + } + impl ::subxt::Call for Edit { + const PALLET: &'static str = "Crowdloan"; + const FUNCTION: &'static str = "edit"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct AddMemo { + pub index: runtime_types::polkadot_parachain::primitives::Id, + pub memo: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::Call for AddMemo { + const PALLET: &'static str = "Crowdloan"; + const FUNCTION: &'static str = "add_memo"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Poke { + pub index: runtime_types::polkadot_parachain::primitives::Id, + } + impl ::subxt::Call for Poke { + const PALLET: &'static str = "Crowdloan"; + const FUNCTION: &'static str = "poke"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ContributeAll { + #[codec(compact)] + pub index: runtime_types::polkadot_parachain::primitives::Id, + pub signature: + ::core::option::Option, + } + impl ::subxt::Call for ContributeAll { + const PALLET: &'static str = "Crowdloan"; + const FUNCTION: &'static str = "contribute_all"; + } + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } } - pub async fn past_code_meta( + pub fn create( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::polkadot_runtime_parachains::paras::ParaPastCodeMeta< - ::core::primitive::u32, + index: runtime_types::polkadot_parachain::primitives::Id, + cap: ::core::primitive::u128, + first_period: ::core::primitive::u32, + last_period: ::core::primitive::u32, + end: ::core::primitive::u32, + verifier: ::core::option::Option< + runtime_types::sp_runtime::MultiSigner, >, - ::subxt::BasicError, - > { - let entry = PastCodeMeta(_0); - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn past_code_meta_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, PastCodeMeta<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn past_code_pruning( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<( - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u32, - )>, - ::subxt::BasicError, - > { - let entry = PastCodePruning; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn future_code_upgrades( - &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = FutureCodeUpgrades(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn future_code_upgrades_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, FutureCodeUpgrades<'a>>, - ::subxt::BasicError, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Create, + DispatchError, + root_mod::Event, > { - self.client.storage().iter(hash).await + let call = Create { + index, + cap, + first_period, + last_period, + end, + verifier, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn future_code_hash( + pub fn contribute( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_parachain::primitives::ValidationCodeHash, + index: runtime_types::polkadot_parachain::primitives::Id, + value: ::core::primitive::u128, + signature: ::core::option::Option< + runtime_types::sp_runtime::MultiSignature, >, - ::subxt::BasicError, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Contribute, + DispatchError, + root_mod::Event, > { - let entry = FutureCodeHash(_0); - self.client.storage().fetch(&entry, hash).await + let call = Contribute { + index, + value, + signature, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn future_code_hash_iter( + pub fn withdraw( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, FutureCodeHash<'a>>, - ::subxt::BasicError, + who: ::subxt::sp_core::crypto::AccountId32, + index: runtime_types::polkadot_parachain::primitives::Id, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Withdraw, + DispatchError, + root_mod::Event, > { - self.client.storage().iter(hash).await + let call = Withdraw { who, index }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn upgrade_go_ahead_signal( + pub fn refund( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_primitives::v2::UpgradeGoAhead, - >, - ::subxt::BasicError, + index: runtime_types::polkadot_parachain::primitives::Id, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Refund, + DispatchError, + root_mod::Event, > { - let entry = UpgradeGoAheadSignal(_0); - self.client.storage().fetch(&entry, hash).await + let call = Refund { index }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn upgrade_go_ahead_signal_iter( + pub fn dissolve( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, UpgradeGoAheadSignal<'a>>, - ::subxt::BasicError, + index: runtime_types::polkadot_parachain::primitives::Id, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Dissolve, + DispatchError, + root_mod::Event, > { - self.client.storage().iter(hash).await + let call = Dissolve { index }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn upgrade_restriction_signal( + pub fn edit( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_primitives::v2::UpgradeRestriction, + index: runtime_types::polkadot_parachain::primitives::Id, + cap: ::core::primitive::u128, + first_period: ::core::primitive::u32, + last_period: ::core::primitive::u32, + end: ::core::primitive::u32, + verifier: ::core::option::Option< + runtime_types::sp_runtime::MultiSigner, >, - ::subxt::BasicError, - > { - let entry = UpgradeRestrictionSignal(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn upgrade_restriction_signal_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, UpgradeRestrictionSignal<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn upgrade_cooldowns( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<( - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u32, - )>, - ::subxt::BasicError, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Edit, + DispatchError, + root_mod::Event, > { - let entry = UpgradeCooldowns; - self.client.storage().fetch_or_default(&entry, hash).await + let call = Edit { + index, + cap, + first_period, + last_period, + end, + verifier, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn upcoming_upgrades( + pub fn add_memo( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<( - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u32, - )>, - ::subxt::BasicError, + index: runtime_types::polkadot_parachain::primitives::Id, + memo: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + AddMemo, + DispatchError, + root_mod::Event, > { - let entry = UpcomingUpgrades; - self.client.storage().fetch_or_default(&entry, hash).await + let call = AddMemo { index, memo }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn actions_queue( + pub fn poke( &self, - _0: &::core::primitive::u32, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec, - ::subxt::BasicError, + index: runtime_types::polkadot_parachain::primitives::Id, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Poke, + DispatchError, + root_mod::Event, > { - let entry = ActionsQueue(_0); - self.client.storage().fetch_or_default(&entry, hash).await + let call = Poke { index }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn actions_queue_iter( + pub fn contribute_all( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ActionsQueue<'a>>, - ::subxt::BasicError, + index: runtime_types::polkadot_parachain::primitives::Id, + signature: ::core::option::Option< + runtime_types::sp_runtime::MultiSignature, + >, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ContributeAll, + DispatchError, + root_mod::Event, > { - self.client.storage().iter(hash).await - } pub async fn upcoming_paras_genesis (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: Id , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: paras :: ParaGenesisArgs > , :: subxt :: BasicError >{ - let entry = UpcomingParasGenesis(_0); - self.client.storage().fetch(&entry, hash).await + let call = ContributeAll { index, signature }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn upcoming_paras_genesis_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, UpcomingParasGenesis<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await + } + } + 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)] + 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)] + pub struct Contributed( + pub ::subxt::sp_core::crypto::AccountId32, + pub runtime_types::polkadot_parachain::primitives::Id, + pub ::core::primitive::u128, + ); + impl ::subxt::Event for Contributed { + const PALLET: &'static str = "Crowdloan"; + const EVENT: &'static str = "Contributed"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Withdrew( + pub ::subxt::sp_core::crypto::AccountId32, + pub runtime_types::polkadot_parachain::primitives::Id, + pub ::core::primitive::u128, + ); + impl ::subxt::Event for Withdrew { + const PALLET: &'static str = "Crowdloan"; + const EVENT: &'static str = "Withdrew"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct PartiallyRefunded( + pub runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::Event for PartiallyRefunded { + const PALLET: &'static str = "Crowdloan"; + const EVENT: &'static str = "PartiallyRefunded"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + 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)] + 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)] + pub struct HandleBidResult( + pub runtime_types::polkadot_parachain::primitives::Id, + pub ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + ); + impl ::subxt::Event for HandleBidResult { + const PALLET: &'static str = "Crowdloan"; + const EVENT: &'static str = "HandleBidResult"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + 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)] + pub struct MemoUpdated( + pub ::subxt::sp_core::crypto::AccountId32, + pub runtime_types::polkadot_parachain::primitives::Id, + pub ::std::vec::Vec<::core::primitive::u8>, + ); + impl ::subxt::Event for MemoUpdated { + const PALLET: &'static str = "Crowdloan"; + const EVENT: &'static str = "MemoUpdated"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct AddedToNewRaise( + pub runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::Event for AddedToNewRaise { + const PALLET: &'static str = "Crowdloan"; + const EVENT: &'static str = "AddedToNewRaise"; + } + } + pub mod storage { + use super::runtime_types; + pub struct Funds<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for Funds<'_> { + const PALLET: &'static str = "Crowdloan"; + const STORAGE: &'static str = "Funds"; + type Value = runtime_types::polkadot_runtime_common::crowdloan::FundInfo< + ::subxt::sp_core::crypto::AccountId32, + ::core::primitive::u128, + ::core::primitive::u32, + ::core::primitive::u32, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) } - pub async fn code_by_hash_refs( - &self, - _0 : & runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = CodeByHashRefs(_0); - self.client.storage().fetch_or_default(&entry, hash).await + } + pub struct NewRaise; + impl ::subxt::StorageEntry for NewRaise { + const PALLET: &'static str = "Crowdloan"; + const STORAGE: &'static str = "NewRaise"; + type Value = + ::std::vec::Vec; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - pub async fn code_by_hash_refs_iter( + } + pub struct EndingsCount; + impl ::subxt::StorageEntry for EndingsCount { + const PALLET: &'static str = "Crowdloan"; + const STORAGE: &'static str = "EndingsCount"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct NextFundIndex; + impl ::subxt::StorageEntry for NextFundIndex { + const PALLET: &'static str = "Crowdloan"; + const STORAGE: &'static str = "NextFundIndex"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn funds( &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, CodeByHashRefs<'a>>, + ::core::option::Option< + runtime_types::polkadot_runtime_common::crowdloan::FundInfo< + ::subxt::sp_core::crypto::AccountId32, + ::core::primitive::u128, + ::core::primitive::u32, + ::core::primitive::u32, + >, + >, ::subxt::BasicError, > { - self.client.storage().iter(hash).await + let entry = Funds(_0); + self.client.storage().fetch(&entry, hash).await } - pub async fn code_by_hash( + pub async fn funds_iter( &self, - _0 : & runtime_types :: polkadot_parachain :: primitives :: ValidationCodeHash, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_parachain::primitives::ValidationCode, - >, + ::subxt::KeyIter<'a, T, Funds<'a>>, ::subxt::BasicError, > { - let entry = CodeByHash(_0); - self.client.storage().fetch(&entry, hash).await + self.client.storage().iter(hash).await } - pub async fn code_by_hash_iter( + pub async fn new_raise( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, CodeByHash<'a>>, + ::std::vec::Vec, ::subxt::BasicError, > { - self.client.storage().iter(hash).await + let entry = NewRaise; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn endings_count( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = EndingsCount; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn next_fund_index( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = NextFundIndex; + self.client.storage().fetch_or_default(&entry, hash).await } } } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn unsigned_priority( + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn pallet_id( &self, - ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + ) -> ::core::result::Result< + runtime_types::frame_support::PalletId, + ::subxt::BasicError, + > { + let pallet = self.client.metadata().pallet("Crowdloan")?; + let constant = pallet.constant("PalletId")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn min_contribution( + &self, + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[255u8, 255u8, 255u8, 255u8, 255u8, 255u8, 255u8, 255u8][..], - )?) + let pallet = self.client.metadata().pallet("Crowdloan")?; + let constant = pallet.constant("MinContribution")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn remove_keys_limit( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Crowdloan")?; + let constant = pallet.constant("RemoveKeysLimit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } - pub mod initializer { + pub mod slots { use super::root_mod; use super::runtime_types; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct ForceApprove { - pub up_to: ::core::primitive::u32, + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ForceLease { + pub para: runtime_types::polkadot_parachain::primitives::Id, + pub leaser: ::subxt::sp_core::crypto::AccountId32, + pub amount: ::core::primitive::u128, + pub period_begin: ::core::primitive::u32, + pub period_count: ::core::primitive::u32, } - impl ::subxt::Call for ForceApprove { - const PALLET: &'static str = "Initializer"; - const FUNCTION: &'static str = "force_approve"; + impl ::subxt::Call for ForceLease { + const PALLET: &'static str = "Slots"; + const FUNCTION: &'static str = "force_lease"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ClearAllLeases { + pub para: runtime_types::polkadot_parachain::primitives::Id, + } + impl ::subxt::Call for ClearAllLeases { + const PALLET: &'static str = "Slots"; + const FUNCTION: &'static str = "clear_all_leases"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct TriggerOnboard { + pub para: runtime_types::polkadot_parachain::primitives::Id, + } + impl ::subxt::Call for TriggerOnboard { + const PALLET: &'static str = "Slots"; + const FUNCTION: &'static str = "trigger_onboard"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -16884,40 +9014,107 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn force_approve( + pub fn force_lease( &self, - up_to: ::core::primitive::u32, + para: runtime_types::polkadot_parachain::primitives::Id, + leaser: ::subxt::sp_core::crypto::AccountId32, + amount: ::core::primitive::u128, + period_begin: ::core::primitive::u32, + period_count: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ForceApprove, + ForceLease, DispatchError, root_mod::Event, > { - let call = ForceApprove { up_to }; + let call = ForceLease { + para, + leaser, + amount, + period_begin, + period_count, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn clear_all_leases( + &self, + para: runtime_types::polkadot_parachain::primitives::Id, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ClearAllLeases, + DispatchError, + root_mod::Event, + > { + let call = ClearAllLeases { para }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn trigger_onboard( + &self, + para: runtime_types::polkadot_parachain::primitives::Id, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + TriggerOnboard, + DispatchError, + root_mod::Event, + > { + let call = TriggerOnboard { para }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub mod storage { + pub type Event = runtime_types::polkadot_runtime_common::slots::pallet::Event; + pub mod events { use super::runtime_types; - pub struct HasInitialized; - impl ::subxt::StorageEntry for HasInitialized { - const PALLET: &'static str = "Initializer"; - const STORAGE: &'static str = "HasInitialized"; - type Value = (); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct NewLeasePeriod(pub ::core::primitive::u32); + impl ::subxt::Event for NewLeasePeriod { + const PALLET: &'static str = "Slots"; + const EVENT: &'static str = "NewLeasePeriod"; } - pub struct BufferedSessionChanges; - impl ::subxt::StorageEntry for BufferedSessionChanges { - const PALLET: &'static str = "Initializer"; - const STORAGE: &'static str = "BufferedSessionChanges"; - type Value = :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: initializer :: BufferedSessionChange > ; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Leased( + pub runtime_types::polkadot_parachain::primitives::Id, + pub ::subxt::sp_core::crypto::AccountId32, + pub ::core::primitive::u32, + pub ::core::primitive::u32, + pub ::core::primitive::u128, + pub ::core::primitive::u128, + ); + impl ::subxt::Event for Leased { + const PALLET: &'static str = "Slots"; + const EVENT: &'static str = "Leased"; + } + } + pub mod storage { + use super::runtime_types; + pub struct Leases<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for Leases<'_> { + const PALLET: &'static str = "Slots"; + const STORAGE: &'static str = "Leases"; + type Value = ::std::vec::Vec< + ::core::option::Option<( + ::subxt::sp_core::crypto::AccountId32, + ::core::primitive::u128, + )>, + >; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) } } pub struct StorageApi<'a, T: ::subxt::Config> { @@ -16927,27 +9124,124 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn has_initialized( + pub async fn leases( + &self, + _0: &runtime_types::polkadot_parachain::primitives::Id, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec< + ::core::option::Option<( + ::subxt::sp_core::crypto::AccountId32, + ::core::primitive::u128, + )>, + >, + ::subxt::BasicError, + > { + let entry = Leases(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn leases_iter( &self, hash: ::core::option::Option, - ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::BasicError> + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Leases<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn lease_period( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let entry = HasInitialized; - self.client.storage().fetch(&entry, hash).await - } pub async fn buffered_session_changes (& self , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: initializer :: BufferedSessionChange > , :: subxt :: BasicError >{ - let entry = BufferedSessionChanges; - self.client.storage().fetch_or_default(&entry, hash).await + let pallet = self.client.metadata().pallet("Slots")?; + let constant = pallet.constant("LeasePeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn lease_offset( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Slots")?; + let constant = pallet.constant("LeaseOffset")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } - pub mod dmp { + pub mod paras_sudo_wrapper { use super::root_mod; use super::runtime_types; pub mod calls { use super::root_mod; use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SudoScheduleParaInitialize { + pub id: runtime_types::polkadot_parachain::primitives::Id, + pub genesis: + runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs, + } + impl ::subxt::Call for SudoScheduleParaInitialize { + const PALLET: &'static str = "ParasSudoWrapper"; + const FUNCTION: &'static str = "sudo_schedule_para_initialize"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SudoScheduleParaCleanup { + pub id: runtime_types::polkadot_parachain::primitives::Id, + } + impl ::subxt::Call for SudoScheduleParaCleanup { + const PALLET: &'static str = "ParasSudoWrapper"; + const FUNCTION: &'static str = "sudo_schedule_para_cleanup"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SudoScheduleParathreadUpgrade { + pub id: runtime_types::polkadot_parachain::primitives::Id, + } + impl ::subxt::Call for SudoScheduleParathreadUpgrade { + const PALLET: &'static str = "ParasSudoWrapper"; + const FUNCTION: &'static str = "sudo_schedule_parathread_upgrade"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SudoScheduleParachainDowngrade { + pub id: runtime_types::polkadot_parachain::primitives::Id, + } + impl ::subxt::Call for SudoScheduleParachainDowngrade { + const PALLET: &'static str = "ParasSudoWrapper"; + const FUNCTION: &'static str = "sudo_schedule_parachain_downgrade"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SudoQueueDownwardXcm { + pub id: runtime_types::polkadot_parachain::primitives::Id, + pub xcm: ::std::boxed::Box, + } + impl ::subxt::Call for SudoQueueDownwardXcm { + const PALLET: &'static str = "ParasSudoWrapper"; + const FUNCTION: &'static str = "sudo_queue_downward_xcm"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SudoEstablishHrmpChannel { + pub sender: runtime_types::polkadot_parachain::primitives::Id, + pub recipient: runtime_types::polkadot_parachain::primitives::Id, + pub max_capacity: ::core::primitive::u32, + pub max_message_size: ::core::primitive::u32, + } + impl ::subxt::Call for SudoEstablishHrmpChannel { + const PALLET: &'static str = "ParasSudoWrapper"; + const FUNCTION: &'static str = "sudo_establish_hrmp_channel"; + } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, marker: ::core::marker::PhantomData, @@ -16963,95 +9257,107 @@ pub mod api { marker: ::core::marker::PhantomData, } } - } - } - pub mod storage { - use super::runtime_types; - pub struct DownwardMessageQueues<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for DownwardMessageQueues<'_> { - const PALLET: &'static str = "Dmp"; - const STORAGE: &'static str = "DownwardMessageQueues"; - type Value = ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundDownwardMessage< - ::core::primitive::u32, - >, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct DownwardMessageQueueHeads<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for DownwardMessageQueueHeads<'_> { - const PALLET: &'static str = "Dmp"; - const STORAGE: &'static str = "DownwardMessageQueueHeads"; - type Value = ::subxt::sp_core::H256; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + pub fn sudo_schedule_para_initialize( + &self, + id: runtime_types::polkadot_parachain::primitives::Id, + genesis : runtime_types :: polkadot_runtime_parachains :: paras :: ParaGenesisArgs, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SudoScheduleParaInitialize, + DispatchError, + root_mod::Event, + > { + let call = SudoScheduleParaInitialize { id, genesis }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } + pub fn sudo_schedule_para_cleanup( + &self, + id: runtime_types::polkadot_parachain::primitives::Id, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SudoScheduleParaCleanup, + DispatchError, + root_mod::Event, + > { + let call = SudoScheduleParaCleanup { id }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn downward_message_queues( + pub fn sudo_schedule_parathread_upgrade( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundDownwardMessage< - ::core::primitive::u32, - >, - >, - ::subxt::BasicError, + id: runtime_types::polkadot_parachain::primitives::Id, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SudoScheduleParathreadUpgrade, + DispatchError, + root_mod::Event, > { - let entry = DownwardMessageQueues(_0); - self.client.storage().fetch_or_default(&entry, hash).await + let call = SudoScheduleParathreadUpgrade { id }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn downward_message_queues_iter( + pub fn sudo_schedule_parachain_downgrade( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, DownwardMessageQueues<'a>>, - ::subxt::BasicError, + id: runtime_types::polkadot_parachain::primitives::Id, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SudoScheduleParachainDowngrade, + DispatchError, + root_mod::Event, > { - self.client.storage().iter(hash).await + let call = SudoScheduleParachainDowngrade { id }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn downward_message_queue_heads( + pub fn sudo_queue_downward_xcm( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::BasicError> - { - let entry = DownwardMessageQueueHeads(_0); - self.client.storage().fetch_or_default(&entry, hash).await + id: runtime_types::polkadot_parachain::primitives::Id, + xcm: runtime_types::xcm::VersionedXcm, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SudoQueueDownwardXcm, + DispatchError, + root_mod::Event, + > { + let call = SudoQueueDownwardXcm { + id, + xcm: ::std::boxed::Box::new(xcm), + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn downward_message_queue_heads_iter( + pub fn sudo_establish_hrmp_channel( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, DownwardMessageQueueHeads<'a>>, - ::subxt::BasicError, + sender: runtime_types::polkadot_parachain::primitives::Id, + recipient: runtime_types::polkadot_parachain::primitives::Id, + max_capacity: ::core::primitive::u32, + max_message_size: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SudoEstablishHrmpChannel, + DispatchError, + root_mod::Event, > { - self.client.storage().iter(hash).await + let call = SudoEstablishHrmpChannel { + sender, + recipient, + max_capacity, + max_message_size, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } } } } - pub mod ump { + pub mod assigned_slots { use super::root_mod; use super::runtime_types; pub mod calls { @@ -17059,13 +9365,26 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ServiceOverweight { - pub index: ::core::primitive::u64, - pub weight_limit: ::core::primitive::u64, + pub struct AssignPermParachainSlot { + pub id: runtime_types::polkadot_parachain::primitives::Id, } - impl ::subxt::Call for ServiceOverweight { - const PALLET: &'static str = "Ump"; - const FUNCTION: &'static str = "service_overweight"; + impl ::subxt::Call for AssignPermParachainSlot { + const PALLET: &'static str = "AssignedSlots"; + const FUNCTION: &'static str = "assign_perm_parachain_slot"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct AssignTempParachainSlot { pub id : runtime_types :: polkadot_parachain :: primitives :: Id , pub lease_period_start : runtime_types :: polkadot_runtime_common :: assigned_slots :: SlotLeasePeriodStart , } + impl ::subxt::Call for AssignTempParachainSlot { + const PALLET: &'static str = "AssignedSlots"; + const FUNCTION: &'static str = "assign_temp_parachain_slot"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct UnassignParachainSlot { + pub id: runtime_types::polkadot_parachain::primitives::Id, + } + impl ::subxt::Call for UnassignParachainSlot { + const PALLET: &'static str = "AssignedSlots"; + const FUNCTION: &'static str = "unassign_parachain_slot"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -17082,113 +9401,83 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn service_overweight( + pub fn assign_perm_parachain_slot( &self, - index: ::core::primitive::u64, - weight_limit: ::core::primitive::u64, + id: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ServiceOverweight, + AssignPermParachainSlot, DispatchError, root_mod::Event, > { - let call = ServiceOverweight { - index, - weight_limit, + let call = AssignPermParachainSlot { id }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn assign_temp_parachain_slot( + &self, + id: runtime_types::polkadot_parachain::primitives::Id, + lease_period_start : runtime_types :: polkadot_runtime_common :: assigned_slots :: SlotLeasePeriodStart, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + AssignTempParachainSlot, + DispatchError, + root_mod::Event, + > { + let call = AssignTempParachainSlot { + id, + lease_period_start, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } + pub fn unassign_parachain_slot( + &self, + id: runtime_types::polkadot_parachain::primitives::Id, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + UnassignParachainSlot, + DispatchError, + root_mod::Event, + > { + let call = UnassignParachainSlot { id }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } } } - pub type Event = runtime_types::polkadot_runtime_parachains::ump::pallet::Event; + pub type Event = + runtime_types::polkadot_runtime_common::assigned_slots::pallet::Event; pub mod events { use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct InvalidFormat(pub [::core::primitive::u8; 32usize]); - impl ::subxt::Event for InvalidFormat { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "InvalidFormat"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct UnsupportedVersion(pub [::core::primitive::u8; 32usize]); - impl ::subxt::Event for UnsupportedVersion { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "UnsupportedVersion"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ExecutedUpward( - pub [::core::primitive::u8; 32usize], - pub runtime_types::xcm::v2::traits::Outcome, - ); - impl ::subxt::Event for ExecutedUpward { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "ExecutedUpward"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct WeightExhausted( - pub [::core::primitive::u8; 32usize], - pub ::core::primitive::u64, - pub ::core::primitive::u64, - ); - impl ::subxt::Event for WeightExhausted { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "WeightExhausted"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct UpwardMessagesReceived( + pub struct PermanentSlotAssigned( pub runtime_types::polkadot_parachain::primitives::Id, - pub ::core::primitive::u32, - pub ::core::primitive::u32, ); - impl ::subxt::Event for UpwardMessagesReceived { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "UpwardMessagesReceived"; + impl ::subxt::Event for PermanentSlotAssigned { + const PALLET: &'static str = "AssignedSlots"; + const EVENT: &'static str = "PermanentSlotAssigned"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct OverweightEnqueued( + pub struct TemporarySlotAssigned( pub runtime_types::polkadot_parachain::primitives::Id, - pub [::core::primitive::u8; 32usize], - pub ::core::primitive::u64, - pub ::core::primitive::u64, ); - impl ::subxt::Event for OverweightEnqueued { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "OverweightEnqueued"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct OverweightServiced( - pub ::core::primitive::u64, - pub ::core::primitive::u64, - ); - impl ::subxt::Event for OverweightServiced { - const PALLET: &'static str = "Ump"; - const EVENT: &'static str = "OverweightServiced"; + impl ::subxt::Event for TemporarySlotAssigned { + const PALLET: &'static str = "AssignedSlots"; + const EVENT: &'static str = "TemporarySlotAssigned"; } } pub mod storage { use super::runtime_types; - pub struct RelayDispatchQueues<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for RelayDispatchQueues<'_> { - const PALLET: &'static str = "Ump"; - const STORAGE: &'static str = "RelayDispatchQueues"; - type Value = ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct RelayDispatchQueueSize<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for RelayDispatchQueueSize<'_> { - const PALLET: &'static str = "Ump"; - const STORAGE: &'static str = "RelayDispatchQueueSize"; + pub struct PermanentSlots<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for PermanentSlots<'_> { + const PALLET: &'static str = "AssignedSlots"; + const STORAGE: &'static str = "PermanentSlots"; type Value = (::core::primitive::u32, ::core::primitive::u32); fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( @@ -17197,33 +9486,22 @@ pub mod api { )]) } } - pub struct NeedsDispatch; - impl ::subxt::StorageEntry for NeedsDispatch { - const PALLET: &'static str = "Ump"; - const STORAGE: &'static str = "NeedsDispatch"; - type Value = - ::std::vec::Vec; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct NextDispatchRoundStartWith; - impl ::subxt::StorageEntry for NextDispatchRoundStartWith { - const PALLET: &'static str = "Ump"; - const STORAGE: &'static str = "NextDispatchRoundStartWith"; - type Value = runtime_types::polkadot_parachain::primitives::Id; + pub struct PermanentSlotCount; + impl ::subxt::StorageEntry for PermanentSlotCount { + const PALLET: &'static str = "AssignedSlots"; + const STORAGE: &'static str = "PermanentSlotCount"; + type Value = ::core::primitive::u32; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct Overweight<'a>(pub &'a ::core::primitive::u64); - impl ::subxt::StorageEntry for Overweight<'_> { - const PALLET: &'static str = "Ump"; - const STORAGE: &'static str = "Overweight"; - type Value = ( - runtime_types::polkadot_parachain::primitives::Id, - ::std::vec::Vec<::core::primitive::u8>, - ); + pub struct TemporarySlots<'a>( + pub &'a runtime_types::polkadot_parachain::primitives::Id, + ); + impl ::subxt::StorageEntry for TemporarySlots<'_> { + const PALLET: &'static str = "AssignedSlots"; + const STORAGE: &'static str = "TemporarySlots"; + type Value = runtime_types :: polkadot_runtime_common :: assigned_slots :: ParachainTemporarySlot < :: subxt :: sp_core :: crypto :: AccountId32 , :: core :: primitive :: u32 > ; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -17231,11 +9509,20 @@ pub mod api { )]) } } - pub struct OverweightCount; - impl ::subxt::StorageEntry for OverweightCount { - const PALLET: &'static str = "Ump"; - const STORAGE: &'static str = "OverweightCount"; - type Value = ::core::primitive::u64; + pub struct TemporarySlotCount; + impl ::subxt::StorageEntry for TemporarySlotCount { + const PALLET: &'static str = "AssignedSlots"; + const STORAGE: &'static str = "TemporarySlotCount"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct ActiveTemporarySlotCount; + impl ::subxt::StorageEntry for ActiveTemporarySlotCount { + const PALLET: &'static str = "AssignedSlots"; + const STORAGE: &'static str = "ActiveTemporarySlotCount"; + type Value = ::core::primitive::u32; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } @@ -17247,526 +9534,354 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn relay_dispatch_queues( + pub async fn permanent_slots( &self, _0: &runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + ::core::option::Option<( + ::core::primitive::u32, + ::core::primitive::u32, + )>, ::subxt::BasicError, > { - let entry = RelayDispatchQueues(_0); - self.client.storage().fetch_or_default(&entry, hash).await + let entry = PermanentSlots(_0); + self.client.storage().fetch(&entry, hash).await } - pub async fn relay_dispatch_queues_iter( + pub async fn permanent_slots_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, RelayDispatchQueues<'a>>, + ::subxt::KeyIter<'a, T, PermanentSlots<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn relay_dispatch_queue_size( + pub async fn permanent_slot_count( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, - ) -> ::core::result::Result< - (::core::primitive::u32, ::core::primitive::u32), - ::subxt::BasicError, - > { - let entry = RelayDispatchQueueSize(_0); + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = PermanentSlotCount; self.client.storage().fetch_or_default(&entry, hash).await + } pub async fn temporary_slots (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: Id , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_common :: assigned_slots :: ParachainTemporarySlot < :: subxt :: sp_core :: crypto :: AccountId32 , :: core :: primitive :: u32 > > , :: subxt :: BasicError >{ + let entry = TemporarySlots(_0); + self.client.storage().fetch(&entry, hash).await } - pub async fn relay_dispatch_queue_size_iter( + pub async fn temporary_slots_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, RelayDispatchQueueSize<'a>>, + ::subxt::KeyIter<'a, T, TemporarySlots<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn needs_dispatch( + pub async fn temporary_slot_count( &self, hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec, - ::subxt::BasicError, - > { - let entry = NeedsDispatch; + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = TemporarySlotCount; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn next_dispatch_round_start_with( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_parachain::primitives::Id, - >, - ::subxt::BasicError, - > { - let entry = NextDispatchRoundStartWith; - self.client.storage().fetch(&entry, hash).await - } - pub async fn overweight( - &self, - _0: &::core::primitive::u64, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<( - runtime_types::polkadot_parachain::primitives::Id, - ::std::vec::Vec<::core::primitive::u8>, - )>, - ::subxt::BasicError, - > { - let entry = Overweight(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn overweight_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Overweight<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn overweight_count( + pub async fn active_temporary_slot_count( &self, hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let entry = OverweightCount; + let entry = ActiveTemporarySlotCount; self.client.storage().fetch_or_default(&entry, hash).await } } } - } - pub mod hrmp { - use super::root_mod; - use super::runtime_types; - pub mod calls { - use super::root_mod; + pub mod constants { use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct HrmpInitOpenChannel { - pub recipient: runtime_types::polkadot_parachain::primitives::Id, - pub proposed_max_capacity: ::core::primitive::u32, - pub proposed_max_message_size: ::core::primitive::u32, - } - impl ::subxt::Call for HrmpInitOpenChannel { - const PALLET: &'static str = "Hrmp"; - const FUNCTION: &'static str = "hrmp_init_open_channel"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct HrmpAcceptOpenChannel { - pub sender: runtime_types::polkadot_parachain::primitives::Id, - } - impl ::subxt::Call for HrmpAcceptOpenChannel { - const PALLET: &'static str = "Hrmp"; - const FUNCTION: &'static str = "hrmp_accept_open_channel"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct HrmpCloseChannel { - pub channel_id: - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - } - impl ::subxt::Call for HrmpCloseChannel { - const PALLET: &'static str = "Hrmp"; - const FUNCTION: &'static str = "hrmp_close_channel"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceCleanHrmp { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub inbound: ::core::primitive::u32, - pub outbound: ::core::primitive::u32, - } - impl ::subxt::Call for ForceCleanHrmp { - const PALLET: &'static str = "Hrmp"; - const FUNCTION: &'static str = "force_clean_hrmp"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct ForceProcessHrmpOpen { - pub channels: ::core::primitive::u32, - } - impl ::subxt::Call for ForceProcessHrmpOpen { - const PALLET: &'static str = "Hrmp"; - const FUNCTION: &'static str = "force_process_hrmp_open"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct ForceProcessHrmpClose { - pub channels: ::core::primitive::u32, - } - impl ::subxt::Call for ForceProcessHrmpClose { - const PALLET: &'static str = "Hrmp"; - const FUNCTION: &'static str = "force_process_hrmp_close"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct HrmpCancelOpenRequest { - pub channel_id: - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - pub open_requests: ::core::primitive::u32, - } - impl ::subxt::Call for HrmpCancelOpenRequest { - const PALLET: &'static str = "Hrmp"; - const FUNCTION: &'static str = "hrmp_cancel_open_request"; - } - pub struct TransactionApi<'a, T: ::subxt::Config, X> { + pub struct ConstantsApi<'a, T: ::subxt::Config> { client: &'a ::subxt::Client, - marker: ::core::marker::PhantomData, } - impl<'a, T, X> TransactionApi<'a, T, X> - where - T: ::subxt::Config, - X: ::subxt::extrinsic::ExtrinsicParams, - { + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { pub fn new(client: &'a ::subxt::Client) -> Self { - Self { - client, - marker: ::core::marker::PhantomData, - } + Self { client } } - pub fn hrmp_init_open_channel( + pub fn permanent_slot_lease_period_length( &self, - recipient: runtime_types::polkadot_parachain::primitives::Id, - proposed_max_capacity: ::core::primitive::u32, - proposed_max_message_size: ::core::primitive::u32, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - HrmpInitOpenChannel, - DispatchError, - root_mod::Event, - > { - let call = HrmpInitOpenChannel { - recipient, - proposed_max_capacity, - proposed_max_message_size, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("AssignedSlots")?; + let constant = pallet.constant("PermanentSlotLeasePeriodLength")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub fn hrmp_accept_open_channel( + pub fn temporary_slot_lease_period_length( &self, - sender: runtime_types::polkadot_parachain::primitives::Id, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - HrmpAcceptOpenChannel, - DispatchError, - root_mod::Event, - > { - let call = HrmpAcceptOpenChannel { sender }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("AssignedSlots")?; + let constant = pallet.constant("TemporarySlotLeasePeriodLength")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub fn hrmp_close_channel( + pub fn max_permanent_slots( &self, - channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - HrmpCloseChannel, - DispatchError, - root_mod::Event, - > { - let call = HrmpCloseChannel { channel_id }; - ::subxt::SubmittableExtrinsic::new(self.client, call) + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("AssignedSlots")?; + let constant = pallet.constant("MaxPermanentSlots")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn max_temporary_slots( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("AssignedSlots")?; + let constant = pallet.constant("MaxTemporarySlots")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn max_temporary_slot_per_lease_period( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("AssignedSlots")?; + let constant = pallet.constant("MaxTemporarySlotPerLeasePeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub fn force_clean_hrmp( + } + } + } + pub mod sudo { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Sudo { + pub call: ::std::boxed::Box, + } + impl ::subxt::Call for Sudo { + const PALLET: &'static str = "Sudo"; + const FUNCTION: &'static str = "sudo"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SudoUncheckedWeight { + pub call: ::std::boxed::Box, + pub weight: ::core::primitive::u64, + } + impl ::subxt::Call for SudoUncheckedWeight { + const PALLET: &'static str = "Sudo"; + const FUNCTION: &'static str = "sudo_unchecked_weight"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SetKey { + pub new: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + } + impl ::subxt::Call for SetKey { + const PALLET: &'static str = "Sudo"; + const FUNCTION: &'static str = "set_key"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SudoAs { + pub who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + pub call: ::std::boxed::Box, + } + impl ::subxt::Call for SudoAs { + const PALLET: &'static str = "Sudo"; + const FUNCTION: &'static str = "sudo_as"; + } + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } + } + pub fn sudo( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - inbound: ::core::primitive::u32, - outbound: ::core::primitive::u32, + call: runtime_types::rococo_runtime::Call, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ForceCleanHrmp, + Sudo, DispatchError, root_mod::Event, > { - let call = ForceCleanHrmp { - para, - inbound, - outbound, + let call = Sudo { + call: ::std::boxed::Box::new(call), }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_process_hrmp_open( + pub fn sudo_unchecked_weight( &self, - channels: ::core::primitive::u32, + call: runtime_types::rococo_runtime::Call, + weight: ::core::primitive::u64, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ForceProcessHrmpOpen, + SudoUncheckedWeight, DispatchError, root_mod::Event, > { - let call = ForceProcessHrmpOpen { channels }; + let call = SudoUncheckedWeight { + call: ::std::boxed::Box::new(call), + weight, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_process_hrmp_close( + pub fn set_key( &self, - channels: ::core::primitive::u32, + new: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ForceProcessHrmpClose, + SetKey, DispatchError, root_mod::Event, > { - let call = ForceProcessHrmpClose { channels }; + let call = SetKey { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn hrmp_cancel_open_request( + pub fn sudo_as( &self, - channel_id : runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId, - open_requests: ::core::primitive::u32, + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + call: runtime_types::rococo_runtime::Call, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - HrmpCancelOpenRequest, + SudoAs, DispatchError, root_mod::Event, > { - let call = HrmpCancelOpenRequest { - channel_id, - open_requests, + let call = SudoAs { + who, + call: ::std::boxed::Box::new(call), }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::polkadot_runtime_parachains::hrmp::pallet::Event; + pub type Event = runtime_types::pallet_sudo::pallet::Event; pub mod events { use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct OpenChannelRequested( - pub runtime_types::polkadot_parachain::primitives::Id, - pub runtime_types::polkadot_parachain::primitives::Id, - pub ::core::primitive::u32, - pub ::core::primitive::u32, - ); - impl ::subxt::Event for OpenChannelRequested { - const PALLET: &'static str = "Hrmp"; - const EVENT: &'static str = "OpenChannelRequested"; + pub struct Sudid { + pub sudo_result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct OpenChannelCanceled( - pub runtime_types::polkadot_parachain::primitives::Id, - pub runtime_types::polkadot_parachain::primitives::HrmpChannelId, - ); - impl ::subxt::Event for OpenChannelCanceled { - const PALLET: &'static str = "Hrmp"; - const EVENT: &'static str = "OpenChannelCanceled"; + impl ::subxt::Event for Sudid { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "Sudid"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct OpenChannelAccepted( - pub runtime_types::polkadot_parachain::primitives::Id, - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::Event for OpenChannelAccepted { - const PALLET: &'static str = "Hrmp"; - const EVENT: &'static str = "OpenChannelAccepted"; + pub struct KeyChanged { + pub old_sudoer: + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + } + impl ::subxt::Event for KeyChanged { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "KeyChanged"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ChannelClosed( - pub runtime_types::polkadot_parachain::primitives::Id, - pub runtime_types::polkadot_parachain::primitives::HrmpChannelId, - ); - impl ::subxt::Event for ChannelClosed { - const PALLET: &'static str = "Hrmp"; - const EVENT: &'static str = "ChannelClosed"; + pub struct SudoAsDone { + pub sudo_result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::Event for SudoAsDone { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "SudoAsDone"; } } pub mod storage { use super::runtime_types; - pub struct HrmpOpenChannelRequests<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::HrmpChannelId, - ); - impl ::subxt::StorageEntry for HrmpOpenChannelRequests<'_> { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpOpenChannelRequests"; - type Value = runtime_types :: polkadot_runtime_parachains :: hrmp :: HrmpOpenChannelRequest ; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct HrmpOpenChannelRequestsList; - impl ::subxt::StorageEntry for HrmpOpenChannelRequestsList { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpOpenChannelRequestsList"; - type Value = ::std::vec::Vec< - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct HrmpOpenChannelRequestCount<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for HrmpOpenChannelRequestCount<'_> { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpOpenChannelRequestCount"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct HrmpAcceptedChannelRequestCount<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for HrmpAcceptedChannelRequestCount<'_> { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpAcceptedChannelRequestCount"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct HrmpCloseChannelRequests<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::HrmpChannelId, - ); - impl ::subxt::StorageEntry for HrmpCloseChannelRequests<'_> { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpCloseChannelRequests"; - type Value = (); - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct HrmpCloseChannelRequestsList; - impl ::subxt::StorageEntry for HrmpCloseChannelRequestsList { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpCloseChannelRequestsList"; - type Value = ::std::vec::Vec< - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - >; + pub struct Key; + impl ::subxt::StorageEntry for Key { + const PALLET: &'static str = "Sudo"; + const STORAGE: &'static str = "Key"; + type Value = ::subxt::sp_core::crypto::AccountId32; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct HrmpWatermarks<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for HrmpWatermarks<'_> { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpWatermarks"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, } - pub struct HrmpChannels<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::HrmpChannelId, - ); - impl ::subxt::StorageEntry for HrmpChannels<'_> { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpChannels"; - type Value = - runtime_types::polkadot_runtime_parachains::hrmp::HrmpChannel; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } } - } - pub struct HrmpIngressChannelsIndex<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for HrmpIngressChannelsIndex<'_> { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpIngressChannelsIndex"; - type Value = - ::std::vec::Vec; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + pub async fn key( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + ::subxt::BasicError, + > { + let entry = Key; + self.client.storage().fetch(&entry, hash).await } } - pub struct HrmpEgressChannelsIndex<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for HrmpEgressChannelsIndex<'_> { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpEgressChannelsIndex"; - type Value = - ::std::vec::Vec; + } + } + pub mod mmr { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub struct RootHash; + impl ::subxt::StorageEntry for RootHash { + const PALLET: &'static str = "Mmr"; + const STORAGE: &'static str = "RootHash"; + type Value = ::subxt::sp_core::H256; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + ::subxt::StorageEntryKey::Plain } } - pub struct HrmpChannelContents<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::HrmpChannelId, - ); - impl ::subxt::StorageEntry for HrmpChannelContents<'_> { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpChannelContents"; - type Value = ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundHrmpMessage< - ::core::primitive::u32, - >, - >; + pub struct NumberOfLeaves; + impl ::subxt::StorageEntry for NumberOfLeaves { + const PALLET: &'static str = "Mmr"; + const STORAGE: &'static str = "NumberOfLeaves"; + type Value = ::core::primitive::u64; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) + ::subxt::StorageEntryKey::Plain } } - pub struct HrmpChannelDigests<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for HrmpChannelDigests<'_> { - const PALLET: &'static str = "Hrmp"; - const STORAGE: &'static str = "HrmpChannelDigests"; - type Value = ::std::vec::Vec<( - ::core::primitive::u32, - ::std::vec::Vec, - )>; + pub struct Nodes<'a>(pub &'a ::core::primitive::u64); + impl ::subxt::StorageEntry for Nodes<'_> { + const PALLET: &'static str = "Mmr"; + const STORAGE: &'static str = "Nodes"; + type Value = ::subxt::sp_core::H256; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Twox64Concat, + ::subxt::StorageHasher::Identity, )]) } } @@ -17776,261 +9891,517 @@ pub mod api { impl<'a, T: ::subxt::Config> StorageApi<'a, T> { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } - } pub async fn hrmp_open_channel_requests (& self , _0 : & runtime_types :: polkadot_parachain :: primitives :: HrmpChannelId , hash : :: core :: option :: Option < T :: Hash > ,) -> :: core :: result :: Result < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: hrmp :: HrmpOpenChannelRequest > , :: subxt :: BasicError >{ - let entry = HrmpOpenChannelRequests(_0); - self.client.storage().fetch(&entry, hash).await - } - pub async fn hrmp_open_channel_requests_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpOpenChannelRequests<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn hrmp_open_channel_requests_list( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec< - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - >, - ::subxt::BasicError, - > { - let entry = HrmpOpenChannelRequestsList; - self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn hrmp_open_channel_request_count( + pub async fn root_hash( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::BasicError> { - let entry = HrmpOpenChannelRequestCount(_0); + let entry = RootHash; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn hrmp_open_channel_request_count_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpOpenChannelRequestCount<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await - } - pub async fn hrmp_accepted_channel_request_count( + pub async fn number_of_leaves( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - let entry = HrmpAcceptedChannelRequestCount(_0); + let entry = NumberOfLeaves; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn hrmp_accepted_channel_request_count_iter( + pub async fn nodes( &self, + _0: &::core::primitive::u64, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpAcceptedChannelRequestCount<'a>>, + ::core::option::Option<::subxt::sp_core::H256>, ::subxt::BasicError, > { - self.client.storage().iter(hash).await - } - pub async fn hrmp_close_channel_requests( - &self, - _0: &runtime_types::polkadot_parachain::primitives::HrmpChannelId, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::option::Option<()>, ::subxt::BasicError> - { - let entry = HrmpCloseChannelRequests(_0); + let entry = Nodes(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn hrmp_close_channel_requests_iter( + pub async fn nodes_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpCloseChannelRequests<'a>>, + ::subxt::KeyIter<'a, T, Nodes<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn hrmp_close_channel_requests_list( + } + } + } + pub mod beefy { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } + } + } + } + pub mod storage { + use super::runtime_types; + pub struct Authorities; + impl ::subxt::StorageEntry for Authorities { + const PALLET: &'static str = "Beefy"; + const STORAGE: &'static str = "Authorities"; + type Value = + ::std::vec::Vec; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct ValidatorSetId; + impl ::subxt::StorageEntry for ValidatorSetId { + const PALLET: &'static str = "Beefy"; + const STORAGE: &'static str = "ValidatorSetId"; + type Value = ::core::primitive::u64; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct NextAuthorities; + impl ::subxt::StorageEntry for NextAuthorities { + const PALLET: &'static str = "Beefy"; + const STORAGE: &'static str = "NextAuthorities"; + type Value = + ::std::vec::Vec; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn authorities( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec< - runtime_types::polkadot_parachain::primitives::HrmpChannelId, - >, + ::std::vec::Vec, ::subxt::BasicError, > { - let entry = HrmpCloseChannelRequestsList; + let entry = Authorities; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn hrmp_watermarks( + pub async fn validator_set_id( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = HrmpWatermarks(_0); - self.client.storage().fetch(&entry, hash).await + ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + { + let entry = ValidatorSetId; + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn hrmp_watermarks_iter( + pub async fn next_authorities( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpWatermarks<'a>>, + ::std::vec::Vec, ::subxt::BasicError, > { - self.client.storage().iter(hash).await + let entry = NextAuthorities; + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn hrmp_channels( + } + } + } + pub mod mmr_leaf { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub struct BeefyNextAuthorities; + impl ::subxt::StorageEntry for BeefyNextAuthorities { + const PALLET: &'static str = "MmrLeaf"; + const STORAGE: &'static str = "BeefyNextAuthorities"; + type Value = runtime_types::beefy_primitives::mmr::BeefyNextAuthoritySet< + ::subxt::sp_core::H256, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn beefy_next_authorities( &self, - _0: &runtime_types::polkadot_parachain::primitives::HrmpChannelId, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_runtime_parachains::hrmp::HrmpChannel, + runtime_types::beefy_primitives::mmr::BeefyNextAuthoritySet< + ::subxt::sp_core::H256, >, ::subxt::BasicError, > { - let entry = HrmpChannels(_0); - self.client.storage().fetch(&entry, hash).await + let entry = BeefyNextAuthorities; + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn hrmp_channels_iter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpChannels<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await + } + } + } + pub mod validator_manager { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct RegisterValidators { + pub validators: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + } + impl ::subxt::Call for RegisterValidators { + const PALLET: &'static str = "ValidatorManager"; + const FUNCTION: &'static str = "register_validators"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct DeregisterValidators { + pub validators: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + } + impl ::subxt::Call for DeregisterValidators { + const PALLET: &'static str = "ValidatorManager"; + const FUNCTION: &'static str = "deregister_validators"; + } + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } } - pub async fn hrmp_ingress_channels_index( + pub fn register_validators( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec, - ::subxt::BasicError, + validators: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + RegisterValidators, + DispatchError, + root_mod::Event, > { - let entry = HrmpIngressChannelsIndex(_0); - self.client.storage().fetch_or_default(&entry, hash).await + let call = RegisterValidators { validators }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn hrmp_ingress_channels_index_iter( + pub fn deregister_validators( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpIngressChannelsIndex<'a>>, - ::subxt::BasicError, + validators: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + DeregisterValidators, + DispatchError, + root_mod::Event, > { - self.client.storage().iter(hash).await + let call = DeregisterValidators { validators }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn hrmp_egress_channels_index( + } + } + pub type Event = runtime_types::rococo_runtime::validator_manager::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ValidatorsRegistered( + pub ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + ); + impl ::subxt::Event for ValidatorsRegistered { + const PALLET: &'static str = "ValidatorManager"; + const EVENT: &'static str = "ValidatorsRegistered"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ValidatorsDeregistered( + pub ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + ); + impl ::subxt::Event for ValidatorsDeregistered { + const PALLET: &'static str = "ValidatorManager"; + const EVENT: &'static str = "ValidatorsDeregistered"; + } + } + pub mod storage { + use super::runtime_types; + pub struct ValidatorsToRetire; + impl ::subxt::StorageEntry for ValidatorsToRetire { + const PALLET: &'static str = "ValidatorManager"; + const STORAGE: &'static str = "ValidatorsToRetire"; + type Value = ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct ValidatorsToAdd; + impl ::subxt::StorageEntry for ValidatorsToAdd { + const PALLET: &'static str = "ValidatorManager"; + const STORAGE: &'static str = "ValidatorsToAdd"; + type Value = ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn validators_to_retire( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec, + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - let entry = HrmpEgressChannelsIndex(_0); + let entry = ValidatorsToRetire; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn hrmp_egress_channels_index_iter( + pub async fn validators_to_add( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpEgressChannelsIndex<'a>>, + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - self.client.storage().iter(hash).await + let entry = ValidatorsToAdd; + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn hrmp_channel_contents( - &self, - _0: &runtime_types::polkadot_parachain::primitives::HrmpChannelId, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundHrmpMessage< + } + } + } + pub mod bridge_rococo_grandpa { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SubmitFinalityProof { + pub finality_target: ::std::boxed::Box< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, + pub justification: + runtime_types::bp_header_chain::justification::GrandpaJustification< + runtime_types::sp_runtime::generic::header::Header< ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, >, >, - ::subxt::BasicError, - > { - let entry = HrmpChannelContents(_0); - self.client.storage().fetch_or_default(&entry, hash).await + } + impl ::subxt::Call for SubmitFinalityProof { + const PALLET: &'static str = "BridgeRococoGrandpa"; + const FUNCTION: &'static str = "submit_finality_proof"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Initialize { + pub init_data: runtime_types::bp_header_chain::InitializationData< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, + } + impl ::subxt::Call for Initialize { + const PALLET: &'static str = "BridgeRococoGrandpa"; + const FUNCTION: &'static str = "initialize"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SetOwner { + pub new_owner: + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + } + impl ::subxt::Call for SetOwner { + const PALLET: &'static str = "BridgeRococoGrandpa"; + const FUNCTION: &'static str = "set_owner"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SetOperational { + pub operational: ::core::primitive::bool, + } + impl ::subxt::Call for SetOperational { + const PALLET: &'static str = "BridgeRococoGrandpa"; + const FUNCTION: &'static str = "set_operational"; + } + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } } - pub async fn hrmp_channel_contents_iter( + pub fn submit_finality_proof( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpChannelContents<'a>>, - ::subxt::BasicError, + finality_target: runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + justification : runtime_types :: bp_header_chain :: justification :: GrandpaJustification < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > >, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SubmitFinalityProof, + DispatchError, + root_mod::Event, > { - self.client.storage().iter(hash).await + let call = SubmitFinalityProof { + finality_target: ::std::boxed::Box::new(finality_target), + justification, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn hrmp_channel_digests( + pub fn initialize( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec<( - ::core::primitive::u32, - ::std::vec::Vec< - runtime_types::polkadot_parachain::primitives::Id, + init_data: runtime_types::bp_header_chain::InitializationData< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, >, - )>, - ::subxt::BasicError, + >, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Initialize, + DispatchError, + root_mod::Event, > { - let entry = HrmpChannelDigests(_0); - self.client.storage().fetch_or_default(&entry, hash).await + let call = Initialize { init_data }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn hrmp_channel_digests_iter( + pub fn set_owner( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, HrmpChannelDigests<'a>>, - ::subxt::BasicError, + new_owner: ::core::option::Option< + ::subxt::sp_core::crypto::AccountId32, + >, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetOwner, + DispatchError, + root_mod::Event, > { - self.client.storage().iter(hash).await + let call = SetOwner { new_owner }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_operational( + &self, + operational: ::core::primitive::bool, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetOperational, + DispatchError, + root_mod::Event, + > { + let call = SetOperational { operational }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - } - pub mod para_session_info { - use super::root_mod; - use super::runtime_types; pub mod storage { use super::runtime_types; - pub struct AssignmentKeysUnsafe; - impl ::subxt::StorageEntry for AssignmentKeysUnsafe { - const PALLET: &'static str = "ParaSessionInfo"; - const STORAGE: &'static str = "AssignmentKeysUnsafe"; - type Value = ::std::vec::Vec< - runtime_types::polkadot_primitives::v2::assignment_app::Public, - >; + pub struct RequestCount; + impl ::subxt::StorageEntry for RequestCount { + const PALLET: &'static str = "BridgeRococoGrandpa"; + const STORAGE: &'static str = "RequestCount"; + type Value = ::core::primitive::u32; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct EarliestStoredSession; - impl ::subxt::StorageEntry for EarliestStoredSession { - const PALLET: &'static str = "ParaSessionInfo"; - const STORAGE: &'static str = "EarliestStoredSession"; + pub struct InitialHash; + impl ::subxt::StorageEntry for InitialHash { + const PALLET: &'static str = "BridgeRococoGrandpa"; + const STORAGE: &'static str = "InitialHash"; + type Value = ::subxt::sp_core::H256; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct BestFinalized; + impl ::subxt::StorageEntry for BestFinalized { + const PALLET: &'static str = "BridgeRococoGrandpa"; + const STORAGE: &'static str = "BestFinalized"; + type Value = ::subxt::sp_core::H256; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct ImportedHashes<'a>(pub &'a ::core::primitive::u32); + impl ::subxt::StorageEntry for ImportedHashes<'_> { + const PALLET: &'static str = "BridgeRococoGrandpa"; + const STORAGE: &'static str = "ImportedHashes"; + type Value = ::subxt::sp_core::H256; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Identity, + )]) + } + } + pub struct ImportedHashesPointer; + impl ::subxt::StorageEntry for ImportedHashesPointer { + const PALLET: &'static str = "BridgeRococoGrandpa"; + const STORAGE: &'static str = "ImportedHashesPointer"; type Value = ::core::primitive::u32; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct Sessions<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for Sessions<'_> { - const PALLET: &'static str = "ParaSessionInfo"; - const STORAGE: &'static str = "Sessions"; - type Value = runtime_types::polkadot_primitives::v2::SessionInfo; + pub struct ImportedHeaders<'a>(pub &'a ::subxt::sp_core::H256); + impl ::subxt::StorageEntry for ImportedHeaders<'_> { + const PALLET: &'static str = "BridgeRococoGrandpa"; + const STORAGE: &'static str = "ImportedHeaders"; + type Value = runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, @@ -18038,6 +10409,33 @@ pub mod api { )]) } } + pub struct CurrentAuthoritySet; + impl ::subxt::StorageEntry for CurrentAuthoritySet { + const PALLET: &'static str = "BridgeRococoGrandpa"; + const STORAGE: &'static str = "CurrentAuthoritySet"; + type Value = runtime_types::bp_header_chain::AuthoritySet; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct PalletOwner; + impl ::subxt::StorageEntry for PalletOwner { + const PALLET: &'static str = "BridgeRococoGrandpa"; + const STORAGE: &'static str = "PalletOwner"; + type Value = ::subxt::sp_core::crypto::AccountId32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct IsHalted; + impl ::subxt::StorageEntry for IsHalted { + const PALLET: &'static str = "BridgeRococoGrandpa"; + const STORAGE: &'static str = "IsHalted"; + type Value = ::core::primitive::bool; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } pub struct StorageApi<'a, T: ::subxt::Config> { client: &'a ::subxt::Client, } @@ -18045,52 +10443,144 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn assignment_keys_unsafe( + pub async fn request_count( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = RequestCount; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn initial_hash( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::BasicError> + { + let entry = InitialHash; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn best_finalized( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::BasicError> + { + let entry = BestFinalized; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn imported_hashes( + &self, + _0: &::core::primitive::u32, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::subxt::sp_core::H256>, + ::subxt::BasicError, + > { + let entry = ImportedHashes(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn imported_hashes_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec< - runtime_types::polkadot_primitives::v2::assignment_app::Public, - >, + ::subxt::KeyIter<'a, T, ImportedHashes<'a>>, ::subxt::BasicError, > { - let entry = AssignmentKeysUnsafe; - self.client.storage().fetch_or_default(&entry, hash).await + self.client.storage().iter(hash).await } - pub async fn earliest_stored_session( + pub async fn imported_hashes_pointer( &self, hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - let entry = EarliestStoredSession; + let entry = ImportedHashesPointer; self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn sessions( + pub async fn imported_headers( &self, - _0: &::core::primitive::u32, + _0: &::subxt::sp_core::H256, hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - runtime_types::polkadot_primitives::v2::SessionInfo, + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, >, ::subxt::BasicError, > { - let entry = Sessions(_0); + let entry = ImportedHeaders(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn sessions_iter( + pub async fn imported_headers_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Sessions<'a>>, + ::subxt::KeyIter<'a, T, ImportedHeaders<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } + pub async fn current_authority_set( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + runtime_types::bp_header_chain::AuthoritySet, + ::subxt::BasicError, + > { + let entry = CurrentAuthoritySet; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn pallet_owner( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + ::subxt::BasicError, + > { + let entry = PalletOwner; + self.client.storage().fetch(&entry, hash).await + } + pub async fn is_halted( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> + { + let entry = IsHalted; + self.client.storage().fetch_or_default(&entry, hash).await + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn max_requests( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("BridgeRococoGrandpa")?; + let constant = pallet.constant("MaxRequests")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn headers_to_keep( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("BridgeRococoGrandpa")?; + let constant = pallet.constant("HeadersToKeep")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } } } } - pub mod paras_disputes { + pub mod bridge_wococo_grandpa { use super::root_mod; use super::runtime_types; pub mod calls { @@ -18098,10 +10588,54 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceUnfreeze; - impl ::subxt::Call for ForceUnfreeze { - const PALLET: &'static str = "ParasDisputes"; - const FUNCTION: &'static str = "force_unfreeze"; + pub struct SubmitFinalityProof { + pub finality_target: ::std::boxed::Box< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, + pub justification: + runtime_types::bp_header_chain::justification::GrandpaJustification< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, + } + impl ::subxt::Call for SubmitFinalityProof { + const PALLET: &'static str = "BridgeWococoGrandpa"; + const FUNCTION: &'static str = "submit_finality_proof"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Initialize { + pub init_data: runtime_types::bp_header_chain::InitializationData< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, + } + impl ::subxt::Call for Initialize { + const PALLET: &'static str = "BridgeWococoGrandpa"; + const FUNCTION: &'static str = "initialize"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SetOwner { + pub new_owner: + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + } + impl ::subxt::Call for SetOwner { + const PALLET: &'static str = "BridgeWococoGrandpa"; + const FUNCTION: &'static str = "set_owner"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SetOperational { + pub operational: ::core::primitive::bool, + } + impl ::subxt::Call for SetOperational { + const PALLET: &'static str = "BridgeWococoGrandpa"; + const FUNCTION: &'static str = "set_operational"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -18118,135 +10652,166 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn force_unfreeze( + pub fn submit_finality_proof( &self, + finality_target: runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + justification : runtime_types :: bp_header_chain :: justification :: GrandpaJustification < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > >, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ForceUnfreeze, + SubmitFinalityProof, DispatchError, root_mod::Event, > { - let call = ForceUnfreeze {}; + let call = SubmitFinalityProof { + finality_target: ::std::boxed::Box::new(finality_target), + justification, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn initialize( + &self, + init_data: runtime_types::bp_header_chain::InitializationData< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Initialize, + DispatchError, + root_mod::Event, + > { + let call = Initialize { init_data }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_owner( + &self, + new_owner: ::core::option::Option< + ::subxt::sp_core::crypto::AccountId32, + >, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetOwner, + DispatchError, + root_mod::Event, + > { + let call = SetOwner { new_owner }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_operational( + &self, + operational: ::core::primitive::bool, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetOperational, + DispatchError, + root_mod::Event, + > { + let call = SetOperational { operational }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - } - pub type Event = - runtime_types::polkadot_runtime_parachains::disputes::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct DisputeInitiated( - pub runtime_types::polkadot_core_primitives::CandidateHash, - pub runtime_types::polkadot_runtime_parachains::disputes::DisputeLocation, - ); - impl ::subxt::Event for DisputeInitiated { - const PALLET: &'static str = "ParasDisputes"; - const EVENT: &'static str = "DisputeInitiated"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct DisputeConcluded( - pub runtime_types::polkadot_core_primitives::CandidateHash, - pub runtime_types::polkadot_runtime_parachains::disputes::DisputeResult, - ); - impl ::subxt::Event for DisputeConcluded { - const PALLET: &'static str = "ParasDisputes"; - const EVENT: &'static str = "DisputeConcluded"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct DisputeTimedOut( - pub runtime_types::polkadot_core_primitives::CandidateHash, - ); - impl ::subxt::Event for DisputeTimedOut { - const PALLET: &'static str = "ParasDisputes"; - const EVENT: &'static str = "DisputeTimedOut"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct Revert(pub ::core::primitive::u32); - impl ::subxt::Event for Revert { - const PALLET: &'static str = "ParasDisputes"; - const EVENT: &'static str = "Revert"; } } pub mod storage { use super::runtime_types; - pub struct LastPrunedSession; - impl ::subxt::StorageEntry for LastPrunedSession { - const PALLET: &'static str = "ParasDisputes"; - const STORAGE: &'static str = "LastPrunedSession"; + pub struct RequestCount; + impl ::subxt::StorageEntry for RequestCount { + const PALLET: &'static str = "BridgeWococoGrandpa"; + const STORAGE: &'static str = "RequestCount"; type Value = ::core::primitive::u32; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct Disputes<'a>( - pub &'a ::core::primitive::u32, - pub &'a runtime_types::polkadot_core_primitives::CandidateHash, - ); - impl ::subxt::StorageEntry for Disputes<'_> { - const PALLET: &'static str = "ParasDisputes"; - const STORAGE: &'static str = "Disputes"; - type Value = runtime_types::polkadot_primitives::v2::DisputeState< - ::core::primitive::u32, - >; + pub struct InitialHash; + impl ::subxt::StorageEntry for InitialHash { + const PALLET: &'static str = "BridgeWococoGrandpa"; + const STORAGE: &'static str = "InitialHash"; + type Value = ::subxt::sp_core::H256; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Blake2_128Concat, - ), - ]) + ::subxt::StorageEntryKey::Plain } } - pub struct Included<'a>( - pub &'a ::core::primitive::u32, - pub &'a runtime_types::polkadot_core_primitives::CandidateHash, - ); - impl ::subxt::StorageEntry for Included<'_> { - const PALLET: &'static str = "ParasDisputes"; - const STORAGE: &'static str = "Included"; + pub struct BestFinalized; + impl ::subxt::StorageEntry for BestFinalized { + const PALLET: &'static str = "BridgeWococoGrandpa"; + const STORAGE: &'static str = "BestFinalized"; + type Value = ::subxt::sp_core::H256; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct ImportedHashes<'a>(pub &'a ::core::primitive::u32); + impl ::subxt::StorageEntry for ImportedHashes<'_> { + const PALLET: &'static str = "BridgeWococoGrandpa"; + const STORAGE: &'static str = "ImportedHashes"; + type Value = ::subxt::sp_core::H256; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Identity, + )]) + } + } + pub struct ImportedHashesPointer; + impl ::subxt::StorageEntry for ImportedHashesPointer { + const PALLET: &'static str = "BridgeWococoGrandpa"; + const STORAGE: &'static str = "ImportedHashesPointer"; type Value = ::core::primitive::u32; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Blake2_128Concat, - ), - ]) + ::subxt::StorageEntryKey::Plain } } - pub struct SpamSlots<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for SpamSlots<'_> { - const PALLET: &'static str = "ParasDisputes"; - const STORAGE: &'static str = "SpamSlots"; - type Value = ::std::vec::Vec<::core::primitive::u32>; + pub struct ImportedHeaders<'a>(pub &'a ::subxt::sp_core::H256); + impl ::subxt::StorageEntry for ImportedHeaders<'_> { + const PALLET: &'static str = "BridgeWococoGrandpa"; + const STORAGE: &'static str = "ImportedHeaders"; + type Value = runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Twox64Concat, + ::subxt::StorageHasher::Identity, )]) } } - pub struct Frozen; - impl ::subxt::StorageEntry for Frozen { - const PALLET: &'static str = "ParasDisputes"; - const STORAGE: &'static str = "Frozen"; - type Value = ::core::option::Option<::core::primitive::u32>; + pub struct CurrentAuthoritySet; + impl ::subxt::StorageEntry for CurrentAuthoritySet { + const PALLET: &'static str = "BridgeWococoGrandpa"; + const STORAGE: &'static str = "CurrentAuthoritySet"; + type Value = runtime_types::bp_header_chain::AuthoritySet; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct PalletOwner; + impl ::subxt::StorageEntry for PalletOwner { + const PALLET: &'static str = "BridgeWococoGrandpa"; + const STORAGE: &'static str = "PalletOwner"; + type Value = ::subxt::sp_core::crypto::AccountId32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct IsHalted; + impl ::subxt::StorageEntry for IsHalted { + const PALLET: &'static str = "BridgeWococoGrandpa"; + const STORAGE: &'static str = "IsHalted"; + type Value = ::core::primitive::bool; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } @@ -18258,96 +10823,144 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn last_pruned_session( + pub async fn request_count( &self, hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = LastPrunedSession; - self.client.storage().fetch(&entry, hash).await + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = RequestCount; + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn disputes( + pub async fn initial_hash( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::BasicError> + { + let entry = InitialHash; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn best_finalized( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::subxt::sp_core::H256, ::subxt::BasicError> + { + let entry = BestFinalized; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn imported_hashes( &self, _0: &::core::primitive::u32, - _1: &runtime_types::polkadot_core_primitives::CandidateHash, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_primitives::v2::DisputeState< - ::core::primitive::u32, - >, - >, + ::core::option::Option<::subxt::sp_core::H256>, ::subxt::BasicError, > { - let entry = Disputes(_0, _1); + let entry = ImportedHashes(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn disputes_iter( + pub async fn imported_hashes_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Disputes<'a>>, + ::subxt::KeyIter<'a, T, ImportedHashes<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn included( + pub async fn imported_hashes_pointer( &self, - _0: &::core::primitive::u32, - _1: &runtime_types::polkadot_core_primitives::CandidateHash, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = ImportedHashesPointer; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn imported_headers( + &self, + _0: &::subxt::sp_core::H256, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, + ::core::option::Option< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, ::subxt::BasicError, > { - let entry = Included(_0, _1); + let entry = ImportedHeaders(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn included_iter( + pub async fn imported_headers_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Included<'a>>, + ::subxt::KeyIter<'a, T, ImportedHeaders<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn spam_slots( + pub async fn current_authority_set( &self, - _0: &::core::primitive::u32, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option<::std::vec::Vec<::core::primitive::u32>>, + runtime_types::bp_header_chain::AuthoritySet, ::subxt::BasicError, > { - let entry = SpamSlots(_0); - self.client.storage().fetch(&entry, hash).await + let entry = CurrentAuthoritySet; + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn spam_slots_iter( + pub async fn pallet_owner( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, SpamSlots<'a>>, + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - self.client.storage().iter(hash).await + let entry = PalletOwner; + self.client.storage().fetch(&entry, hash).await } - pub async fn frozen( + pub async fn is_halted( &self, hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = Frozen; + ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> + { + let entry = IsHalted; self.client.storage().fetch_or_default(&entry, hash).await } } } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn max_requests( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("BridgeWococoGrandpa")?; + let constant = pallet.constant("MaxRequests")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn headers_to_keep( + &self, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("BridgeWococoGrandpa")?; + let constant = pallet.constant("HeadersToKeep")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + } + } } - pub mod registrar { + pub mod bridge_rococo_messages { use super::root_mod; use super::runtime_types; pub mod calls { @@ -18355,59 +10968,66 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Register { - pub id: runtime_types::polkadot_parachain::primitives::Id, - pub genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, - pub validation_code: - runtime_types::polkadot_parachain::primitives::ValidationCode, + pub struct SetOwner { + pub new_owner: + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, } - impl ::subxt::Call for Register { - const PALLET: &'static str = "Registrar"; - const FUNCTION: &'static str = "register"; + impl ::subxt::Call for SetOwner { + const PALLET: &'static str = "BridgeRococoMessages"; + const FUNCTION: &'static str = "set_owner"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceRegister { - pub who: ::subxt::sp_core::crypto::AccountId32, - pub deposit: ::core::primitive::u128, - pub id: runtime_types::polkadot_parachain::primitives::Id, - pub genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, - pub validation_code: - runtime_types::polkadot_parachain::primitives::ValidationCode, + pub struct SetOperatingMode { + pub operating_mode: runtime_types::bp_messages::OperatingMode, } - impl ::subxt::Call for ForceRegister { - const PALLET: &'static str = "Registrar"; - const FUNCTION: &'static str = "force_register"; + impl ::subxt::Call for SetOperatingMode { + const PALLET: &'static str = "BridgeRococoMessages"; + const FUNCTION: &'static str = "set_operating_mode"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Deregister { - pub id: runtime_types::polkadot_parachain::primitives::Id, + pub struct UpdatePalletParameter { + pub parameter: (), } - impl ::subxt::Call for Deregister { - const PALLET: &'static str = "Registrar"; - const FUNCTION: &'static str = "deregister"; + impl ::subxt::Call for UpdatePalletParameter { + const PALLET: &'static str = "BridgeRococoMessages"; + const FUNCTION: &'static str = "update_pallet_parameter"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Swap { - pub id: runtime_types::polkadot_parachain::primitives::Id, - pub other: runtime_types::polkadot_parachain::primitives::Id, + pub struct SendMessage { + pub lane_id: [::core::primitive::u8; 4usize], + pub payload: runtime_types::bp_message_dispatch::MessagePayload< + ::subxt::sp_core::crypto::AccountId32, + runtime_types::sp_runtime::MultiSigner, + runtime_types::sp_runtime::MultiSignature, + ::std::vec::Vec<::core::primitive::u8>, + >, + pub delivery_and_dispatch_fee: ::core::primitive::u128, } - impl ::subxt::Call for Swap { - const PALLET: &'static str = "Registrar"; - const FUNCTION: &'static str = "swap"; + impl ::subxt::Call for SendMessage { + const PALLET: &'static str = "BridgeRococoMessages"; + const FUNCTION: &'static str = "send_message"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceRemoveLock { - pub para: runtime_types::polkadot_parachain::primitives::Id, + pub struct IncreaseMessageFee { + pub lane_id: [::core::primitive::u8; 4usize], + pub nonce: ::core::primitive::u64, + pub additional_fee: ::core::primitive::u128, } - impl ::subxt::Call for ForceRemoveLock { - const PALLET: &'static str = "Registrar"; - const FUNCTION: &'static str = "force_remove_lock"; + impl ::subxt::Call for IncreaseMessageFee { + const PALLET: &'static str = "BridgeRococoMessages"; + const FUNCTION: &'static str = "increase_message_fee"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Reserve; - impl ::subxt::Call for Reserve { - const PALLET: &'static str = "Registrar"; - const FUNCTION: &'static str = "reserve"; + pub struct ReceiveMessagesProof { pub relayer_id_at_bridged_chain : :: subxt :: sp_core :: crypto :: AccountId32 , pub proof : runtime_types :: bridge_runtime_common :: messages :: target :: FromBridgedChainMessagesProof < :: subxt :: sp_core :: H256 > , pub messages_count : :: core :: primitive :: u32 , pub dispatch_weight : :: core :: primitive :: u64 , } + impl ::subxt::Call for ReceiveMessagesProof { + const PALLET: &'static str = "BridgeRococoMessages"; + const FUNCTION: &'static str = "receive_messages_proof"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ReceiveMessagesDeliveryProof { pub proof : runtime_types :: bridge_runtime_common :: messages :: source :: FromBridgedChainMessagesDeliveryProof < :: subxt :: sp_core :: H256 > , pub relayers_state : runtime_types :: bp_messages :: UnrewardedRelayersState , } + impl ::subxt::Call for ReceiveMessagesDeliveryProof { + const PALLET: &'static str = "BridgeRococoMessages"; + const FUNCTION: &'static str = "receive_messages_delivery_proof"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -18424,180 +11044,224 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn register( + pub fn set_owner( &self, - id: runtime_types::polkadot_parachain::primitives::Id, - genesis_head: runtime_types::polkadot_parachain::primitives::HeadData, - validation_code : runtime_types :: polkadot_parachain :: primitives :: ValidationCode, + new_owner: ::core::option::Option< + ::subxt::sp_core::crypto::AccountId32, + >, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Register, + SetOwner, DispatchError, root_mod::Event, > { - let call = Register { - id, - genesis_head, - validation_code, - }; + let call = SetOwner { new_owner }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_register( + pub fn set_operating_mode( &self, - 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, + operating_mode: runtime_types::bp_messages::OperatingMode, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ForceRegister, + SetOperatingMode, DispatchError, root_mod::Event, > { - let call = ForceRegister { - who, - deposit, - id, - genesis_head, - validation_code, - }; + let call = SetOperatingMode { operating_mode }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn deregister( + pub fn update_pallet_parameter( &self, - id: runtime_types::polkadot_parachain::primitives::Id, + parameter: (), ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Deregister, + UpdatePalletParameter, DispatchError, root_mod::Event, > { - let call = Deregister { id }; + let call = UpdatePalletParameter { parameter }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn swap( + pub fn send_message( &self, - id: runtime_types::polkadot_parachain::primitives::Id, - other: runtime_types::polkadot_parachain::primitives::Id, + lane_id: [::core::primitive::u8; 4usize], + payload: runtime_types::bp_message_dispatch::MessagePayload< + ::subxt::sp_core::crypto::AccountId32, + runtime_types::sp_runtime::MultiSigner, + runtime_types::sp_runtime::MultiSignature, + ::std::vec::Vec<::core::primitive::u8>, + >, + delivery_and_dispatch_fee: ::core::primitive::u128, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Swap, + SendMessage, DispatchError, root_mod::Event, > { - let call = Swap { id, other }; + let call = SendMessage { + lane_id, + payload, + delivery_and_dispatch_fee, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_remove_lock( + pub fn increase_message_fee( &self, - para: runtime_types::polkadot_parachain::primitives::Id, + lane_id: [::core::primitive::u8; 4usize], + nonce: ::core::primitive::u64, + additional_fee: ::core::primitive::u128, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ForceRemoveLock, + IncreaseMessageFee, DispatchError, root_mod::Event, > { - let call = ForceRemoveLock { para }; + let call = IncreaseMessageFee { + lane_id, + nonce, + additional_fee, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn reserve( + pub fn receive_messages_proof( &self, + relayer_id_at_bridged_chain: ::subxt::sp_core::crypto::AccountId32, + proof : runtime_types :: bridge_runtime_common :: messages :: target :: FromBridgedChainMessagesProof < :: subxt :: sp_core :: H256 >, + messages_count: ::core::primitive::u32, + dispatch_weight: ::core::primitive::u64, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Reserve, + ReceiveMessagesProof, DispatchError, root_mod::Event, > { - let call = Reserve {}; + let call = ReceiveMessagesProof { + relayer_id_at_bridged_chain, + proof, + messages_count, + dispatch_weight, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn receive_messages_delivery_proof( + &self, + proof : runtime_types :: bridge_runtime_common :: messages :: source :: FromBridgedChainMessagesDeliveryProof < :: subxt :: sp_core :: H256 >, + relayers_state: runtime_types::bp_messages::UnrewardedRelayersState, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ReceiveMessagesDeliveryProof, + DispatchError, + root_mod::Event, + > { + let call = ReceiveMessagesDeliveryProof { + proof, + relayers_state, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = - runtime_types::polkadot_runtime_common::paras_registrar::pallet::Event; + pub type Event = runtime_types::pallet_bridge_messages::pallet::Event; pub mod events { use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Registered( - pub runtime_types::polkadot_parachain::primitives::Id, - pub ::subxt::sp_core::crypto::AccountId32, - ); - impl ::subxt::Event for Registered { - const PALLET: &'static str = "Registrar"; - const EVENT: &'static str = "Registered"; + pub struct ParameterUpdated(pub ()); + impl ::subxt::Event for ParameterUpdated { + const PALLET: &'static str = "BridgeRococoMessages"; + const EVENT: &'static str = "ParameterUpdated"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Deregistered( - pub runtime_types::polkadot_parachain::primitives::Id, + pub struct MessageAccepted( + pub [::core::primitive::u8; 4usize], + pub ::core::primitive::u64, ); - impl ::subxt::Event for Deregistered { - const PALLET: &'static str = "Registrar"; - const EVENT: &'static str = "Deregistered"; + impl ::subxt::Event for MessageAccepted { + const PALLET: &'static str = "BridgeRococoMessages"; + const EVENT: &'static str = "MessageAccepted"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Reserved( - pub runtime_types::polkadot_parachain::primitives::Id, - pub ::subxt::sp_core::crypto::AccountId32, + pub struct MessagesDelivered( + pub [::core::primitive::u8; 4usize], + pub runtime_types::bp_messages::DeliveredMessages, ); - impl ::subxt::Event for Reserved { - const PALLET: &'static str = "Registrar"; - const EVENT: &'static str = "Reserved"; + impl ::subxt::Event for MessagesDelivered { + const PALLET: &'static str = "BridgeRococoMessages"; + const EVENT: &'static str = "MessagesDelivered"; } } pub mod storage { use super::runtime_types; - pub struct PendingSwap<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for PendingSwap<'_> { - const PALLET: &'static str = "Registrar"; - const STORAGE: &'static str = "PendingSwap"; - type Value = runtime_types::polkadot_parachain::primitives::Id; + pub struct PalletOwner; + impl ::subxt::StorageEntry for PalletOwner { + const PALLET: &'static str = "BridgeRococoMessages"; + const STORAGE: &'static str = "PalletOwner"; + type Value = ::subxt::sp_core::crypto::AccountId32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct PalletOperatingMode; + impl ::subxt::StorageEntry for PalletOperatingMode { + const PALLET: &'static str = "BridgeRococoMessages"; + const STORAGE: &'static str = "PalletOperatingMode"; + type Value = runtime_types::bp_messages::OperatingMode; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct InboundLanes<'a>(pub &'a [::core::primitive::u8; 4usize]); + impl ::subxt::StorageEntry for InboundLanes<'_> { + const PALLET: &'static str = "BridgeRococoMessages"; + const STORAGE: &'static str = "InboundLanes"; + type Value = runtime_types::bp_messages::InboundLaneData< + ::subxt::sp_core::crypto::AccountId32, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Twox64Concat, + ::subxt::StorageHasher::Blake2_128Concat, )]) } } - pub struct Paras<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for Paras<'_> { - const PALLET: &'static str = "Registrar"; - const STORAGE: &'static str = "Paras"; - type Value = - runtime_types::polkadot_runtime_common::paras_registrar::ParaInfo< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >; + pub struct OutboundLanes<'a>(pub &'a [::core::primitive::u8; 4usize]); + impl ::subxt::StorageEntry for OutboundLanes<'_> { + const PALLET: &'static str = "BridgeRococoMessages"; + const STORAGE: &'static str = "OutboundLanes"; + type Value = runtime_types::bp_messages::OutboundLaneData; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Twox64Concat, + ::subxt::StorageHasher::Blake2_128Concat, )]) } } - pub struct NextFreeParaId; - impl ::subxt::StorageEntry for NextFreeParaId { - const PALLET: &'static str = "Registrar"; - const STORAGE: &'static str = "NextFreeParaId"; - type Value = runtime_types::polkadot_parachain::primitives::Id; + pub struct OutboundMessages<'a>( + pub &'a runtime_types::bp_messages::MessageKey, + ); + impl ::subxt::StorageEntry for OutboundMessages<'_> { + const PALLET: &'static str = "BridgeRococoMessages"; + const STORAGE: &'static str = "OutboundMessages"; + type Value = + runtime_types::bp_messages::MessageData<::core::primitive::u128>; fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, + )]) } } pub struct StorageApi<'a, T: ::subxt::Config> { @@ -18607,95 +11271,116 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn pending_swap( + pub async fn pallet_owner( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_parachain::primitives::Id, - >, + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - let entry = PendingSwap(_0); + let entry = PalletOwner; self.client.storage().fetch(&entry, hash).await } - pub async fn pending_swap_iter( + pub async fn pallet_operating_mode( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, PendingSwap<'a>>, + runtime_types::bp_messages::OperatingMode, ::subxt::BasicError, > { - self.client.storage().iter(hash).await + let entry = PalletOperatingMode; + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn paras( + pub async fn inbound_lanes( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, + _0: &[::core::primitive::u8; 4usize], hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_runtime_common::paras_registrar::ParaInfo< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, + runtime_types::bp_messages::InboundLaneData< + ::subxt::sp_core::crypto::AccountId32, >, ::subxt::BasicError, > { - let entry = Paras(_0); - self.client.storage().fetch(&entry, hash).await + let entry = InboundLanes(_0); + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn paras_iter( + pub async fn inbound_lanes_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Paras<'a>>, + ::subxt::KeyIter<'a, T, InboundLanes<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn next_free_para_id( + pub async fn outbound_lanes( &self, + _0: &[::core::primitive::u8; 4usize], hash: ::core::option::Option, ) -> ::core::result::Result< - runtime_types::polkadot_parachain::primitives::Id, + runtime_types::bp_messages::OutboundLaneData, ::subxt::BasicError, > { - let entry = NextFreeParaId; + let entry = OutboundLanes(_0); self.client.storage().fetch_or_default(&entry, hash).await } + pub async fn outbound_lanes_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, OutboundLanes<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn outbound_messages( + &self, + _0: &runtime_types::bp_messages::MessageKey, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::bp_messages::MessageData<::core::primitive::u128>, + >, + ::subxt::BasicError, + > { + let entry = OutboundMessages(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn outbound_messages_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, OutboundMessages<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } } } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn para_deposit( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 16u8, 165u8, 212u8, 232u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } } - pub fn data_deposit_per_byte( + pub fn bridged_chain_id( &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 128u8, 150u8, 152u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + ) -> ::core::result::Result< + [::core::primitive::u8; 4usize], + ::subxt::BasicError, + > { + let pallet = self.client.metadata().pallet("BridgeRococoMessages")?; + let constant = pallet.constant("BridgedChainId")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } - pub mod slots { + pub mod bridge_wococo_messages { use super::root_mod; use super::runtime_types; pub mod calls { @@ -18703,32 +11388,66 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceLease { - pub para: runtime_types::polkadot_parachain::primitives::Id, - pub leaser: ::subxt::sp_core::crypto::AccountId32, - pub amount: ::core::primitive::u128, - pub period_begin: ::core::primitive::u32, - pub period_count: ::core::primitive::u32, + pub struct SetOwner { + pub new_owner: + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, } - impl ::subxt::Call for ForceLease { - const PALLET: &'static str = "Slots"; - const FUNCTION: &'static str = "force_lease"; + impl ::subxt::Call for SetOwner { + const PALLET: &'static str = "BridgeWococoMessages"; + const FUNCTION: &'static str = "set_owner"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ClearAllLeases { - pub para: runtime_types::polkadot_parachain::primitives::Id, + pub struct SetOperatingMode { + pub operating_mode: runtime_types::bp_messages::OperatingMode, } - impl ::subxt::Call for ClearAllLeases { - const PALLET: &'static str = "Slots"; - const FUNCTION: &'static str = "clear_all_leases"; + impl ::subxt::Call for SetOperatingMode { + const PALLET: &'static str = "BridgeWococoMessages"; + const FUNCTION: &'static str = "set_operating_mode"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct TriggerOnboard { - pub para: runtime_types::polkadot_parachain::primitives::Id, + pub struct UpdatePalletParameter { + pub parameter: (), } - impl ::subxt::Call for TriggerOnboard { - const PALLET: &'static str = "Slots"; - const FUNCTION: &'static str = "trigger_onboard"; + impl ::subxt::Call for UpdatePalletParameter { + const PALLET: &'static str = "BridgeWococoMessages"; + const FUNCTION: &'static str = "update_pallet_parameter"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SendMessage { + pub lane_id: [::core::primitive::u8; 4usize], + pub payload: runtime_types::bp_message_dispatch::MessagePayload< + ::subxt::sp_core::crypto::AccountId32, + runtime_types::sp_runtime::MultiSigner, + runtime_types::sp_runtime::MultiSignature, + ::std::vec::Vec<::core::primitive::u8>, + >, + pub delivery_and_dispatch_fee: ::core::primitive::u128, + } + impl ::subxt::Call for SendMessage { + const PALLET: &'static str = "BridgeWococoMessages"; + const FUNCTION: &'static str = "send_message"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct IncreaseMessageFee { + pub lane_id: [::core::primitive::u8; 4usize], + pub nonce: ::core::primitive::u64, + pub additional_fee: ::core::primitive::u128, + } + impl ::subxt::Call for IncreaseMessageFee { + const PALLET: &'static str = "BridgeWococoMessages"; + const FUNCTION: &'static str = "increase_message_fee"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ReceiveMessagesProof { pub relayer_id_at_bridged_chain : :: subxt :: sp_core :: crypto :: AccountId32 , pub proof : runtime_types :: bridge_runtime_common :: messages :: target :: FromBridgedChainMessagesProof < :: subxt :: sp_core :: H256 > , pub messages_count : :: core :: primitive :: u32 , pub dispatch_weight : :: core :: primitive :: u64 , } + impl ::subxt::Call for ReceiveMessagesProof { + const PALLET: &'static str = "BridgeWococoMessages"; + const FUNCTION: &'static str = "receive_messages_proof"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ReceiveMessagesDeliveryProof { pub proof : runtime_types :: bridge_runtime_common :: messages :: source :: FromBridgedChainMessagesDeliveryProof < :: subxt :: sp_core :: H256 > , pub relayers_state : runtime_types :: bp_messages :: UnrewardedRelayersState , } + impl ::subxt::Call for ReceiveMessagesDeliveryProof { + const PALLET: &'static str = "BridgeWococoMessages"; + const FUNCTION: &'static str = "receive_messages_delivery_proof"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -18745,137 +11464,313 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn force_lease( + pub fn set_owner( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - leaser: ::subxt::sp_core::crypto::AccountId32, - amount: ::core::primitive::u128, - period_begin: ::core::primitive::u32, - period_count: ::core::primitive::u32, + new_owner: ::core::option::Option< + ::subxt::sp_core::crypto::AccountId32, + >, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ForceLease, + SetOwner, DispatchError, root_mod::Event, > { - let call = ForceLease { - para, - leaser, - amount, - period_begin, - period_count, + let call = SetOwner { new_owner }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn set_operating_mode( + &self, + operating_mode: runtime_types::bp_messages::OperatingMode, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetOperatingMode, + DispatchError, + root_mod::Event, + > { + let call = SetOperatingMode { operating_mode }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn update_pallet_parameter( + &self, + parameter: (), + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + UpdatePalletParameter, + DispatchError, + root_mod::Event, + > { + let call = UpdatePalletParameter { parameter }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn send_message( + &self, + lane_id: [::core::primitive::u8; 4usize], + payload: runtime_types::bp_message_dispatch::MessagePayload< + ::subxt::sp_core::crypto::AccountId32, + runtime_types::sp_runtime::MultiSigner, + runtime_types::sp_runtime::MultiSignature, + ::std::vec::Vec<::core::primitive::u8>, + >, + delivery_and_dispatch_fee: ::core::primitive::u128, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SendMessage, + DispatchError, + root_mod::Event, + > { + let call = SendMessage { + lane_id, + payload, + delivery_and_dispatch_fee, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn clear_all_leases( + pub fn increase_message_fee( &self, - para: runtime_types::polkadot_parachain::primitives::Id, + lane_id: [::core::primitive::u8; 4usize], + nonce: ::core::primitive::u64, + additional_fee: ::core::primitive::u128, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ClearAllLeases, + IncreaseMessageFee, DispatchError, root_mod::Event, > { - let call = ClearAllLeases { para }; + let call = IncreaseMessageFee { + lane_id, + nonce, + additional_fee, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn trigger_onboard( + pub fn receive_messages_proof( &self, - para: runtime_types::polkadot_parachain::primitives::Id, + relayer_id_at_bridged_chain: ::subxt::sp_core::crypto::AccountId32, + proof : runtime_types :: bridge_runtime_common :: messages :: target :: FromBridgedChainMessagesProof < :: subxt :: sp_core :: H256 >, + messages_count: ::core::primitive::u32, + dispatch_weight: ::core::primitive::u64, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - TriggerOnboard, + ReceiveMessagesProof, DispatchError, root_mod::Event, > { - let call = TriggerOnboard { para }; + let call = ReceiveMessagesProof { + relayer_id_at_bridged_chain, + proof, + messages_count, + dispatch_weight, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn receive_messages_delivery_proof( + &self, + proof : runtime_types :: bridge_runtime_common :: messages :: source :: FromBridgedChainMessagesDeliveryProof < :: subxt :: sp_core :: H256 >, + relayers_state: runtime_types::bp_messages::UnrewardedRelayersState, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ReceiveMessagesDeliveryProof, + DispatchError, + root_mod::Event, + > { + let call = ReceiveMessagesDeliveryProof { + proof, + relayers_state, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::polkadot_runtime_common::slots::pallet::Event; + pub type Event = runtime_types::pallet_bridge_messages::pallet::Event; pub mod events { use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct NewLeasePeriod(pub ::core::primitive::u32); - impl ::subxt::Event for NewLeasePeriod { - const PALLET: &'static str = "Slots"; - const EVENT: &'static str = "NewLeasePeriod"; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ParameterUpdated(pub ()); + impl ::subxt::Event for ParameterUpdated { + const PALLET: &'static str = "BridgeWococoMessages"; + const EVENT: &'static str = "ParameterUpdated"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Leased( - pub runtime_types::polkadot_parachain::primitives::Id, - pub ::subxt::sp_core::crypto::AccountId32, - pub ::core::primitive::u32, - pub ::core::primitive::u32, - pub ::core::primitive::u128, - pub ::core::primitive::u128, + pub struct MessageAccepted( + pub [::core::primitive::u8; 4usize], + pub ::core::primitive::u64, ); - impl ::subxt::Event for Leased { - const PALLET: &'static str = "Slots"; - const EVENT: &'static str = "Leased"; + impl ::subxt::Event for MessageAccepted { + const PALLET: &'static str = "BridgeWococoMessages"; + const EVENT: &'static str = "MessageAccepted"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessagesDelivered( + pub [::core::primitive::u8; 4usize], + pub runtime_types::bp_messages::DeliveredMessages, + ); + impl ::subxt::Event for MessagesDelivered { + const PALLET: &'static str = "BridgeWococoMessages"; + const EVENT: &'static str = "MessagesDelivered"; } } pub mod storage { use super::runtime_types; - pub struct Leases<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for Leases<'_> { - const PALLET: &'static str = "Slots"; - const STORAGE: &'static str = "Leases"; - type Value = ::std::vec::Vec< - ::core::option::Option<( - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - )>, + pub struct PalletOwner; + impl ::subxt::StorageEntry for PalletOwner { + const PALLET: &'static str = "BridgeWococoMessages"; + const STORAGE: &'static str = "PalletOwner"; + type Value = ::subxt::sp_core::crypto::AccountId32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct PalletOperatingMode; + impl ::subxt::StorageEntry for PalletOperatingMode { + const PALLET: &'static str = "BridgeWococoMessages"; + const STORAGE: &'static str = "PalletOperatingMode"; + type Value = runtime_types::bp_messages::OperatingMode; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct InboundLanes<'a>(pub &'a [::core::primitive::u8; 4usize]); + impl ::subxt::StorageEntry for InboundLanes<'_> { + const PALLET: &'static str = "BridgeWococoMessages"; + const STORAGE: &'static str = "InboundLanes"; + type Value = runtime_types::bp_messages::InboundLaneData< + ::subxt::sp_core::crypto::AccountId32, >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Twox64Concat, + ::subxt::StorageHasher::Blake2_128Concat, )]) } - } - pub struct StorageApi<'a, T: ::subxt::Config> { - client: &'a ::subxt::Client, - } - impl<'a, T: ::subxt::Config> StorageApi<'a, T> { - pub fn new(client: &'a ::subxt::Client) -> Self { - Self { client } + } + pub struct OutboundLanes<'a>(pub &'a [::core::primitive::u8; 4usize]); + impl ::subxt::StorageEntry for OutboundLanes<'_> { + const PALLET: &'static str = "BridgeWococoMessages"; + const STORAGE: &'static str = "OutboundLanes"; + type Value = runtime_types::bp_messages::OutboundLaneData; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, + )]) + } + } + pub struct OutboundMessages<'a>( + pub &'a runtime_types::bp_messages::MessageKey, + ); + impl ::subxt::StorageEntry for OutboundMessages<'_> { + const PALLET: &'static str = "BridgeWococoMessages"; + const STORAGE: &'static str = "OutboundMessages"; + type Value = + runtime_types::bp_messages::MessageData<::core::primitive::u128>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, + )]) + } + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn pallet_owner( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + ::subxt::BasicError, + > { + let entry = PalletOwner; + self.client.storage().fetch(&entry, hash).await + } + pub async fn pallet_operating_mode( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + runtime_types::bp_messages::OperatingMode, + ::subxt::BasicError, + > { + let entry = PalletOperatingMode; + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn leases( + pub async fn inbound_lanes( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, + _0: &[::core::primitive::u8; 4usize], hash: ::core::option::Option, ) -> ::core::result::Result< - ::std::vec::Vec< - ::core::option::Option<( - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - )>, + runtime_types::bp_messages::InboundLaneData< + ::subxt::sp_core::crypto::AccountId32, >, ::subxt::BasicError, > { - let entry = Leases(_0); + let entry = InboundLanes(_0); self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn leases_iter( + pub async fn inbound_lanes_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Leases<'a>>, + ::subxt::KeyIter<'a, T, InboundLanes<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn outbound_lanes( + &self, + _0: &[::core::primitive::u8; 4usize], + hash: ::core::option::Option, + ) -> ::core::result::Result< + runtime_types::bp_messages::OutboundLaneData, + ::subxt::BasicError, + > { + let entry = OutboundLanes(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn outbound_lanes_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, OutboundLanes<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn outbound_messages( + &self, + _0: &runtime_types::bp_messages::MessageKey, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::bp_messages::MessageData<::core::primitive::u128>, + >, + ::subxt::BasicError, + > { + let entry = OutboundMessages(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn outbound_messages_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, OutboundMessages<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await @@ -18884,28 +11779,214 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn lease_period( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 117u8, 18u8, 0u8][..], - )?) + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } } - pub fn lease_offset( + pub fn bridged_chain_id( &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 16u8, 14u8, 0u8][..], - )?) + ) -> ::core::result::Result< + [::core::primitive::u8; 4usize], + ::subxt::BasicError, + > { + let pallet = self.client.metadata().pallet("BridgeWococoMessages")?; + let constant = pallet.constant("BridgedChainId")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } - pub mod auctions { + pub mod bridge_rococo_messages_dispatch { + use super::root_mod; + use super::runtime_types; + pub type Event = runtime_types::pallet_bridge_dispatch::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageRejected( + pub [::core::primitive::u8; 4usize], + pub ([::core::primitive::u8; 4usize], ::core::primitive::u64), + ); + impl ::subxt::Event for MessageRejected { + const PALLET: &'static str = "BridgeRococoMessagesDispatch"; + const EVENT: &'static str = "MessageRejected"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageVersionSpecMismatch( + pub [::core::primitive::u8; 4usize], + pub ([::core::primitive::u8; 4usize], ::core::primitive::u64), + pub ::core::primitive::u32, + pub ::core::primitive::u32, + ); + impl ::subxt::Event for MessageVersionSpecMismatch { + const PALLET: &'static str = "BridgeRococoMessagesDispatch"; + const EVENT: &'static str = "MessageVersionSpecMismatch"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageWeightMismatch( + pub [::core::primitive::u8; 4usize], + pub ([::core::primitive::u8; 4usize], ::core::primitive::u64), + pub ::core::primitive::u64, + pub ::core::primitive::u64, + ); + impl ::subxt::Event for MessageWeightMismatch { + const PALLET: &'static str = "BridgeRococoMessagesDispatch"; + const EVENT: &'static str = "MessageWeightMismatch"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageSignatureMismatch( + pub [::core::primitive::u8; 4usize], + pub ([::core::primitive::u8; 4usize], ::core::primitive::u64), + ); + impl ::subxt::Event for MessageSignatureMismatch { + const PALLET: &'static str = "BridgeRococoMessagesDispatch"; + const EVENT: &'static str = "MessageSignatureMismatch"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageCallDecodeFailed( + pub [::core::primitive::u8; 4usize], + pub ([::core::primitive::u8; 4usize], ::core::primitive::u64), + ); + impl ::subxt::Event for MessageCallDecodeFailed { + const PALLET: &'static str = "BridgeRococoMessagesDispatch"; + const EVENT: &'static str = "MessageCallDecodeFailed"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageCallRejected( + pub [::core::primitive::u8; 4usize], + pub ([::core::primitive::u8; 4usize], ::core::primitive::u64), + ); + impl ::subxt::Event for MessageCallRejected { + const PALLET: &'static str = "BridgeRococoMessagesDispatch"; + const EVENT: &'static str = "MessageCallRejected"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageDispatchPaymentFailed( + pub [::core::primitive::u8; 4usize], + pub ([::core::primitive::u8; 4usize], ::core::primitive::u64), + pub ::subxt::sp_core::crypto::AccountId32, + pub ::core::primitive::u64, + ); + impl ::subxt::Event for MessageDispatchPaymentFailed { + const PALLET: &'static str = "BridgeRococoMessagesDispatch"; + const EVENT: &'static str = "MessageDispatchPaymentFailed"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageDispatched( + pub [::core::primitive::u8; 4usize], + pub ([::core::primitive::u8; 4usize], ::core::primitive::u64), + pub ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + ); + impl ::subxt::Event for MessageDispatched { + const PALLET: &'static str = "BridgeRococoMessagesDispatch"; + const EVENT: &'static str = "MessageDispatched"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct _Dummy; + impl ::subxt::Event for _Dummy { + const PALLET: &'static str = "BridgeRococoMessagesDispatch"; + const EVENT: &'static str = "_Dummy"; + } + } + } + pub mod bridge_wococo_messages_dispatch { + use super::root_mod; + use super::runtime_types; + pub type Event = runtime_types::pallet_bridge_dispatch::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageRejected( + pub [::core::primitive::u8; 4usize], + pub ([::core::primitive::u8; 4usize], ::core::primitive::u64), + ); + impl ::subxt::Event for MessageRejected { + const PALLET: &'static str = "BridgeWococoMessagesDispatch"; + const EVENT: &'static str = "MessageRejected"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageVersionSpecMismatch( + pub [::core::primitive::u8; 4usize], + pub ([::core::primitive::u8; 4usize], ::core::primitive::u64), + pub ::core::primitive::u32, + pub ::core::primitive::u32, + ); + impl ::subxt::Event for MessageVersionSpecMismatch { + const PALLET: &'static str = "BridgeWococoMessagesDispatch"; + const EVENT: &'static str = "MessageVersionSpecMismatch"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageWeightMismatch( + pub [::core::primitive::u8; 4usize], + pub ([::core::primitive::u8; 4usize], ::core::primitive::u64), + pub ::core::primitive::u64, + pub ::core::primitive::u64, + ); + impl ::subxt::Event for MessageWeightMismatch { + const PALLET: &'static str = "BridgeWococoMessagesDispatch"; + const EVENT: &'static str = "MessageWeightMismatch"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageSignatureMismatch( + pub [::core::primitive::u8; 4usize], + pub ([::core::primitive::u8; 4usize], ::core::primitive::u64), + ); + impl ::subxt::Event for MessageSignatureMismatch { + const PALLET: &'static str = "BridgeWococoMessagesDispatch"; + const EVENT: &'static str = "MessageSignatureMismatch"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageCallDecodeFailed( + pub [::core::primitive::u8; 4usize], + pub ([::core::primitive::u8; 4usize], ::core::primitive::u64), + ); + impl ::subxt::Event for MessageCallDecodeFailed { + const PALLET: &'static str = "BridgeWococoMessagesDispatch"; + const EVENT: &'static str = "MessageCallDecodeFailed"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageCallRejected( + pub [::core::primitive::u8; 4usize], + pub ([::core::primitive::u8; 4usize], ::core::primitive::u64), + ); + impl ::subxt::Event for MessageCallRejected { + const PALLET: &'static str = "BridgeWococoMessagesDispatch"; + const EVENT: &'static str = "MessageCallRejected"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageDispatchPaymentFailed( + pub [::core::primitive::u8; 4usize], + pub ([::core::primitive::u8; 4usize], ::core::primitive::u64), + pub ::subxt::sp_core::crypto::AccountId32, + pub ::core::primitive::u64, + ); + impl ::subxt::Event for MessageDispatchPaymentFailed { + const PALLET: &'static str = "BridgeWococoMessagesDispatch"; + const EVENT: &'static str = "MessageDispatchPaymentFailed"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageDispatched( + pub [::core::primitive::u8; 4usize], + pub ([::core::primitive::u8; 4usize], ::core::primitive::u64), + pub ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + ); + impl ::subxt::Event for MessageDispatched { + const PALLET: &'static str = "BridgeWococoMessagesDispatch"; + const EVENT: &'static str = "MessageDispatched"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct _Dummy; + impl ::subxt::Event for _Dummy { + const PALLET: &'static str = "BridgeWococoMessagesDispatch"; + const EVENT: &'static str = "_Dummy"; + } + } + } + pub mod collective { use super::root_mod; use super::runtime_types; pub mod calls { @@ -18913,38 +11994,69 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct NewAuction { - #[codec(compact)] - pub duration: ::core::primitive::u32, + pub struct SetMembers { + pub new_members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + pub prime: ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + pub old_count: ::core::primitive::u32, + } + impl ::subxt::Call for SetMembers { + const PALLET: &'static str = "Collective"; + const FUNCTION: &'static str = "set_members"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Execute { + pub proposal: ::std::boxed::Box, #[codec(compact)] - pub lease_period_index: ::core::primitive::u32, + pub length_bound: ::core::primitive::u32, } - impl ::subxt::Call for NewAuction { - const PALLET: &'static str = "Auctions"; - const FUNCTION: &'static str = "new_auction"; + impl ::subxt::Call for Execute { + const PALLET: &'static str = "Collective"; + const FUNCTION: &'static str = "execute"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Bid { + pub struct Propose { #[codec(compact)] - pub para: runtime_types::polkadot_parachain::primitives::Id, + pub threshold: ::core::primitive::u32, + pub proposal: ::std::boxed::Box, #[codec(compact)] - pub auction_index: ::core::primitive::u32, + pub length_bound: ::core::primitive::u32, + } + impl ::subxt::Call for Propose { + const PALLET: &'static str = "Collective"; + const FUNCTION: &'static str = "propose"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Vote { + pub proposal: ::subxt::sp_core::H256, #[codec(compact)] - pub first_slot: ::core::primitive::u32, + pub index: ::core::primitive::u32, + pub approve: ::core::primitive::bool, + } + impl ::subxt::Call for Vote { + const PALLET: &'static str = "Collective"; + const FUNCTION: &'static str = "vote"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Close { + pub proposal_hash: ::subxt::sp_core::H256, #[codec(compact)] - pub last_slot: ::core::primitive::u32, + pub index: ::core::primitive::u32, #[codec(compact)] - pub amount: ::core::primitive::u128, + pub proposal_weight_bound: ::core::primitive::u64, + #[codec(compact)] + pub length_bound: ::core::primitive::u32, } - impl ::subxt::Call for Bid { - const PALLET: &'static str = "Auctions"; - const FUNCTION: &'static str = "bid"; + impl ::subxt::Call for Close { + const PALLET: &'static str = "Collective"; + const FUNCTION: &'static str = "close"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct CancelAuction; - impl ::subxt::Call for CancelAuction { - const PALLET: &'static str = "Auctions"; - const FUNCTION: &'static str = "cancel_auction"; + pub struct DisapproveProposal { + pub proposal_hash: ::subxt::sp_core::H256, + } + impl ::subxt::Call for DisapproveProposal { + const PALLET: &'static str = "Collective"; + const FUNCTION: &'static str = "disapprove_proposal"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -18961,189 +12073,263 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn new_auction( + pub fn set_members( + &self, + new_members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + prime: ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + old_count: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + SetMembers, + DispatchError, + root_mod::Event, + > { + let call = SetMembers { + new_members, + prime, + old_count, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn execute( + &self, + proposal: runtime_types::rococo_runtime::Call, + length_bound: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Execute, + DispatchError, + root_mod::Event, + > { + let call = Execute { + proposal: ::std::boxed::Box::new(proposal), + length_bound, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn propose( + &self, + threshold: ::core::primitive::u32, + proposal: runtime_types::rococo_runtime::Call, + length_bound: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Propose, + DispatchError, + root_mod::Event, + > { + let call = Propose { + threshold, + proposal: ::std::boxed::Box::new(proposal), + length_bound, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn vote( &self, - duration: ::core::primitive::u32, - lease_period_index: ::core::primitive::u32, + proposal: ::subxt::sp_core::H256, + index: ::core::primitive::u32, + approve: ::core::primitive::bool, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - NewAuction, + Vote, DispatchError, root_mod::Event, > { - let call = NewAuction { - duration, - lease_period_index, + let call = Vote { + proposal, + index, + approve, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn bid( + pub fn close( &self, - para: runtime_types::polkadot_parachain::primitives::Id, - auction_index: ::core::primitive::u32, - first_slot: ::core::primitive::u32, - last_slot: ::core::primitive::u32, - amount: ::core::primitive::u128, + proposal_hash: ::subxt::sp_core::H256, + index: ::core::primitive::u32, + proposal_weight_bound: ::core::primitive::u64, + length_bound: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Bid, + Close, DispatchError, root_mod::Event, > { - let call = Bid { - para, - auction_index, - first_slot, - last_slot, - amount, + let call = Close { + proposal_hash, + index, + proposal_weight_bound, + length_bound, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn cancel_auction( + pub fn disapprove_proposal( &self, + proposal_hash: ::subxt::sp_core::H256, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - CancelAuction, + DisapproveProposal, DispatchError, root_mod::Event, > { - let call = CancelAuction {}; + let call = DisapproveProposal { proposal_hash }; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::polkadot_runtime_common::auctions::pallet::Event; + pub type Event = runtime_types::pallet_collective::pallet::Event; pub mod events { use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AuctionStarted( - pub ::core::primitive::u32, - pub ::core::primitive::u32, - pub ::core::primitive::u32, - ); - impl ::subxt::Event for AuctionStarted { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "AuctionStarted"; + pub struct Proposed { + pub account: ::subxt::sp_core::crypto::AccountId32, + pub proposal_index: ::core::primitive::u32, + pub proposal_hash: ::subxt::sp_core::H256, + pub threshold: ::core::primitive::u32, } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct AuctionClosed(pub ::core::primitive::u32); - impl ::subxt::Event for AuctionClosed { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "AuctionClosed"; + impl ::subxt::Event for Proposed { + const PALLET: &'static str = "Collective"; + const EVENT: &'static str = "Proposed"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Reserved( - pub ::subxt::sp_core::crypto::AccountId32, - pub ::core::primitive::u128, - pub ::core::primitive::u128, - ); - impl ::subxt::Event for Reserved { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "Reserved"; + pub struct Voted { + pub account: ::subxt::sp_core::crypto::AccountId32, + pub proposal_hash: ::subxt::sp_core::H256, + pub voted: ::core::primitive::bool, + pub yes: ::core::primitive::u32, + pub no: ::core::primitive::u32, + } + impl ::subxt::Event for Voted { + const PALLET: &'static str = "Collective"; + const EVENT: &'static str = "Voted"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Unreserved( - pub ::subxt::sp_core::crypto::AccountId32, - pub ::core::primitive::u128, - ); - impl ::subxt::Event for Unreserved { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "Unreserved"; + pub struct Approved { + pub proposal_hash: ::subxt::sp_core::H256, + } + impl ::subxt::Event for Approved { + const PALLET: &'static str = "Collective"; + const EVENT: &'static str = "Approved"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ReserveConfiscated( - pub runtime_types::polkadot_parachain::primitives::Id, - pub ::subxt::sp_core::crypto::AccountId32, - pub ::core::primitive::u128, - ); - impl ::subxt::Event for ReserveConfiscated { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "ReserveConfiscated"; + pub struct Disapproved { + pub proposal_hash: ::subxt::sp_core::H256, + } + impl ::subxt::Event for Disapproved { + const PALLET: &'static str = "Collective"; + const EVENT: &'static str = "Disapproved"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct BidAccepted( - pub ::subxt::sp_core::crypto::AccountId32, - pub runtime_types::polkadot_parachain::primitives::Id, - pub ::core::primitive::u128, - pub ::core::primitive::u32, - pub ::core::primitive::u32, - ); - impl ::subxt::Event for BidAccepted { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "BidAccepted"; + pub struct Executed { + pub proposal_hash: ::subxt::sp_core::H256, + pub result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::Event for Executed { + const PALLET: &'static str = "Collective"; + const EVENT: &'static str = "Executed"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct WinningOffset( - pub ::core::primitive::u32, - pub ::core::primitive::u32, - ); - impl ::subxt::Event for WinningOffset { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "WinningOffset"; + pub struct MemberExecuted { + pub proposal_hash: ::subxt::sp_core::H256, + pub result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::Event for MemberExecuted { + const PALLET: &'static str = "Collective"; + const EVENT: &'static str = "MemberExecuted"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Closed { + pub proposal_hash: ::subxt::sp_core::H256, + pub yes: ::core::primitive::u32, + pub no: ::core::primitive::u32, + } + impl ::subxt::Event for Closed { + const PALLET: &'static str = "Collective"; + const EVENT: &'static str = "Closed"; } } pub mod storage { use super::runtime_types; - pub struct AuctionCounter; - impl ::subxt::StorageEntry for AuctionCounter { - const PALLET: &'static str = "Auctions"; - const STORAGE: &'static str = "AuctionCounter"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct AuctionInfo; - impl ::subxt::StorageEntry for AuctionInfo { - const PALLET: &'static str = "Auctions"; - const STORAGE: &'static str = "AuctionInfo"; - type Value = (::core::primitive::u32, ::core::primitive::u32); + pub struct Proposals; + impl ::subxt::StorageEntry for Proposals { + const PALLET: &'static str = "Collective"; + const STORAGE: &'static str = "Proposals"; + type Value = + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + ::subxt::sp_core::H256, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct ReservedAmounts<'a>( - pub &'a ::subxt::sp_core::crypto::AccountId32, - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for ReservedAmounts<'_> { - const PALLET: &'static str = "Auctions"; - const STORAGE: &'static str = "ReservedAmounts"; - type Value = ::core::primitive::u128; + pub struct ProposalOf<'a>(pub &'a ::subxt::sp_core::H256); + impl ::subxt::StorageEntry for ProposalOf<'_> { + const PALLET: &'static str = "Collective"; + const STORAGE: &'static str = "ProposalOf"; + type Value = runtime_types::rococo_runtime::Call; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &(&self.0, &self.1), - ::subxt::StorageHasher::Twox64Concat, + &self.0, + ::subxt::StorageHasher::Identity, )]) } } - pub struct Winning<'a>(pub &'a ::core::primitive::u32); - impl ::subxt::StorageEntry for Winning<'_> { - const PALLET: &'static str = "Auctions"; - const STORAGE: &'static str = "Winning"; - type Value = [::core::option::Option<( + pub struct Voting<'a>(pub &'a ::subxt::sp_core::H256); + impl ::subxt::StorageEntry for Voting<'_> { + const PALLET: &'static str = "Collective"; + const STORAGE: &'static str = "Voting"; + type Value = runtime_types::pallet_collective::Votes< ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u128, - )>; 36usize]; + ::core::primitive::u32, + >; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Twox64Concat, + ::subxt::StorageHasher::Identity, )]) } } + pub struct ProposalCount; + impl ::subxt::StorageEntry for ProposalCount { + const PALLET: &'static str = "Collective"; + const STORAGE: &'static str = "ProposalCount"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Members; + impl ::subxt::StorageEntry for Members { + const PALLET: &'static str = "Collective"; + const STORAGE: &'static str = "Members"; + type Value = ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct Prime; + impl ::subxt::StorageEntry for Prime { + const PALLET: &'static str = "Collective"; + const STORAGE: &'static str = "Prime"; + type Value = ::subxt::sp_core::crypto::AccountId32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } pub struct StorageApi<'a, T: ::subxt::Config> { client: &'a ::subxt::Client, } @@ -19151,116 +12337,95 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn auction_counter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = AuctionCounter; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn auction_info( + pub async fn proposals( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + ::subxt::sp_core::H256, + >, ::subxt::BasicError, > { - let entry = AuctionInfo; - self.client.storage().fetch(&entry, hash).await + let entry = Proposals; + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn reserved_amounts( + pub async fn proposal_of( &self, - _0: &::subxt::sp_core::crypto::AccountId32, - _1: &runtime_types::polkadot_parachain::primitives::Id, + _0: &::subxt::sp_core::H256, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u128>, + ::core::option::Option, ::subxt::BasicError, > { - let entry = ReservedAmounts(_0, _1); + let entry = ProposalOf(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn reserved_amounts_iter( + pub async fn proposal_of_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, ReservedAmounts<'a>>, + ::subxt::KeyIter<'a, T, ProposalOf<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn winning( + pub async fn voting( &self, - _0: &::core::primitive::u32, + _0: &::subxt::sp_core::H256, hash: ::core::option::Option, ) -> ::core::result::Result< ::core::option::Option< - [::core::option::Option<( + runtime_types::pallet_collective::Votes< ::subxt::sp_core::crypto::AccountId32, - runtime_types::polkadot_parachain::primitives::Id, - ::core::primitive::u128, - )>; 36usize], + ::core::primitive::u32, + >, >, ::subxt::BasicError, > { - let entry = Winning(_0); + let entry = Voting(_0); self.client.storage().fetch(&entry, hash).await } - pub async fn winning_iter( + pub async fn voting_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Winning<'a>>, + ::subxt::KeyIter<'a, T, Voting<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn ending_period( - &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[64u8, 25u8, 1u8, 0u8][..], - )?) - } - pub fn sample_length( + pub async fn proposal_count( &self, + hash: ::core::option::Option, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[20u8, 0u8, 0u8, 0u8][..], - )?) + let entry = ProposalCount; + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn slot_range_count( + pub async fn members( &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[36u8, 0u8, 0u8, 0u8][..], - )?) + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + ::subxt::BasicError, + > { + let entry = Members; + self.client.storage().fetch_or_default(&entry, hash).await } - pub fn lease_periods_per_slot( + pub async fn prime( &self, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[8u8, 0u8, 0u8, 0u8][..], - )?) + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + ::subxt::BasicError, + > { + let entry = Prime; + self.client.storage().fetch(&entry, hash).await } } } } - pub mod crowdloan { + pub mod membership { use super::root_mod; use super::runtime_types; pub mod calls { @@ -19268,111 +12433,59 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Create { - #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, - #[codec(compact)] - pub cap: ::core::primitive::u128, - #[codec(compact)] - pub first_period: ::core::primitive::u32, - #[codec(compact)] - pub last_period: ::core::primitive::u32, - #[codec(compact)] - pub end: ::core::primitive::u32, - pub verifier: - ::core::option::Option, - } - impl ::subxt::Call for Create { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "create"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Contribute { - #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, - #[codec(compact)] - pub value: ::core::primitive::u128, - pub signature: - ::core::option::Option, - } - impl ::subxt::Call for Contribute { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "contribute"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Withdraw { + pub struct AddMember { pub who: ::subxt::sp_core::crypto::AccountId32, - #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, } - impl ::subxt::Call for Withdraw { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "withdraw"; + impl ::subxt::Call for AddMember { + const PALLET: &'static str = "Membership"; + const FUNCTION: &'static str = "add_member"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Refund { - #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub struct RemoveMember { + pub who: ::subxt::sp_core::crypto::AccountId32, } - impl ::subxt::Call for Refund { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "refund"; + impl ::subxt::Call for RemoveMember { + const PALLET: &'static str = "Membership"; + const FUNCTION: &'static str = "remove_member"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Dissolve { - #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub struct SwapMember { + pub remove: ::subxt::sp_core::crypto::AccountId32, + pub add: ::subxt::sp_core::crypto::AccountId32, } - impl ::subxt::Call for Dissolve { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "dissolve"; + impl ::subxt::Call for SwapMember { + const PALLET: &'static str = "Membership"; + const FUNCTION: &'static str = "swap_member"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Edit { - #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, - #[codec(compact)] - pub cap: ::core::primitive::u128, - #[codec(compact)] - pub first_period: ::core::primitive::u32, - #[codec(compact)] - pub last_period: ::core::primitive::u32, - #[codec(compact)] - pub end: ::core::primitive::u32, - pub verifier: - ::core::option::Option, + pub struct ResetMembers { + pub members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, } - impl ::subxt::Call for Edit { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "edit"; + impl ::subxt::Call for ResetMembers { + const PALLET: &'static str = "Membership"; + const FUNCTION: &'static str = "reset_members"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AddMemo { - pub index: runtime_types::polkadot_parachain::primitives::Id, - pub memo: ::std::vec::Vec<::core::primitive::u8>, + pub struct ChangeKey { + pub new: ::subxt::sp_core::crypto::AccountId32, } - impl ::subxt::Call for AddMemo { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "add_memo"; + impl ::subxt::Call for ChangeKey { + const PALLET: &'static str = "Membership"; + const FUNCTION: &'static str = "change_key"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Poke { - pub index: runtime_types::polkadot_parachain::primitives::Id, + pub struct SetPrime { + pub who: ::subxt::sp_core::crypto::AccountId32, } - impl ::subxt::Call for Poke { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "poke"; + impl ::subxt::Call for SetPrime { + const PALLET: &'static str = "Membership"; + const FUNCTION: &'static str = "set_prime"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ContributeAll { - #[codec(compact)] - pub index: runtime_types::polkadot_parachain::primitives::Id, - pub signature: - ::core::option::Option, - } - impl ::subxt::Call for ContributeAll { - const PALLET: &'static str = "Crowdloan"; - const FUNCTION: &'static str = "contribute_all"; + pub struct ClearPrime; + impl ::subxt::Call for ClearPrime { + const PALLET: &'static str = "Membership"; + const FUNCTION: &'static str = "clear_prime"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -19389,303 +12502,162 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn create( - &self, - index: runtime_types::polkadot_parachain::primitives::Id, - cap: ::core::primitive::u128, - first_period: ::core::primitive::u32, - last_period: ::core::primitive::u32, - end: ::core::primitive::u32, - verifier: ::core::option::Option< - runtime_types::sp_runtime::MultiSigner, - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Create, - DispatchError, - root_mod::Event, - > { - let call = Create { - index, - cap, - first_period, - last_period, - end, - verifier, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn contribute( - &self, - index: runtime_types::polkadot_parachain::primitives::Id, - value: ::core::primitive::u128, - signature: ::core::option::Option< - runtime_types::sp_runtime::MultiSignature, - >, - ) -> ::subxt::SubmittableExtrinsic< - 'a, - T, - X, - Contribute, - DispatchError, - root_mod::Event, - > { - let call = Contribute { - index, - value, - signature, - }; - ::subxt::SubmittableExtrinsic::new(self.client, call) - } - pub fn withdraw( + pub fn add_member( &self, who: ::subxt::sp_core::crypto::AccountId32, - index: runtime_types::polkadot_parachain::primitives::Id, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Withdraw, + AddMember, DispatchError, root_mod::Event, > { - let call = Withdraw { who, index }; + let call = AddMember { who }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn refund( + pub fn remove_member( &self, - index: runtime_types::polkadot_parachain::primitives::Id, + who: ::subxt::sp_core::crypto::AccountId32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Refund, + RemoveMember, DispatchError, root_mod::Event, > { - let call = Refund { index }; + let call = RemoveMember { who }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn dissolve( + pub fn swap_member( &self, - index: runtime_types::polkadot_parachain::primitives::Id, + remove: ::subxt::sp_core::crypto::AccountId32, + add: ::subxt::sp_core::crypto::AccountId32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Dissolve, + SwapMember, DispatchError, root_mod::Event, > { - let call = Dissolve { index }; + let call = SwapMember { remove, add }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn edit( + pub fn reset_members( &self, - index: runtime_types::polkadot_parachain::primitives::Id, - cap: ::core::primitive::u128, - first_period: ::core::primitive::u32, - last_period: ::core::primitive::u32, - end: ::core::primitive::u32, - verifier: ::core::option::Option< - runtime_types::sp_runtime::MultiSigner, - >, + members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Edit, + ResetMembers, DispatchError, root_mod::Event, > { - let call = Edit { - index, - cap, - first_period, - last_period, - end, - verifier, - }; + let call = ResetMembers { members }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn add_memo( + pub fn change_key( &self, - index: runtime_types::polkadot_parachain::primitives::Id, - memo: ::std::vec::Vec<::core::primitive::u8>, + new: ::subxt::sp_core::crypto::AccountId32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - AddMemo, + ChangeKey, DispatchError, root_mod::Event, > { - let call = AddMemo { index, memo }; + let call = ChangeKey { new }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn poke( + pub fn set_prime( &self, - index: runtime_types::polkadot_parachain::primitives::Id, + who: ::subxt::sp_core::crypto::AccountId32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Poke, + SetPrime, DispatchError, root_mod::Event, > { - let call = Poke { index }; + let call = SetPrime { who }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn contribute_all( + pub fn clear_prime( &self, - index: runtime_types::polkadot_parachain::primitives::Id, - signature: ::core::option::Option< - runtime_types::sp_runtime::MultiSignature, - >, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ContributeAll, + ClearPrime, DispatchError, root_mod::Event, > { - let call = ContributeAll { index, signature }; + let call = ClearPrime {}; ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - pub type Event = runtime_types::polkadot_runtime_common::crowdloan::pallet::Event; + pub type Event = runtime_types::pallet_membership::pallet::Event; pub mod events { use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - 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)] - pub struct Contributed( - pub ::subxt::sp_core::crypto::AccountId32, - pub runtime_types::polkadot_parachain::primitives::Id, - pub ::core::primitive::u128, - ); - impl ::subxt::Event for Contributed { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "Contributed"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Withdrew( - pub ::subxt::sp_core::crypto::AccountId32, - pub runtime_types::polkadot_parachain::primitives::Id, - pub ::core::primitive::u128, - ); - impl ::subxt::Event for Withdrew { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "Withdrew"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PartiallyRefunded( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::Event for PartiallyRefunded { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "PartiallyRefunded"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - 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"; + pub struct MemberAdded; + impl ::subxt::Event for MemberAdded { + const PALLET: &'static str = "Membership"; + const EVENT: &'static str = "MemberAdded"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - 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"; + pub struct MemberRemoved; + impl ::subxt::Event for MemberRemoved { + const PALLET: &'static str = "Membership"; + const EVENT: &'static str = "MemberRemoved"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct HandleBidResult( - pub runtime_types::polkadot_parachain::primitives::Id, - pub ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, - ); - impl ::subxt::Event for HandleBidResult { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "HandleBidResult"; + pub struct MembersSwapped; + impl ::subxt::Event for MembersSwapped { + const PALLET: &'static str = "Membership"; + const EVENT: &'static str = "MembersSwapped"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - 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"; + pub struct MembersReset; + impl ::subxt::Event for MembersReset { + const PALLET: &'static str = "Membership"; + const EVENT: &'static str = "MembersReset"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct MemoUpdated( - pub ::subxt::sp_core::crypto::AccountId32, - pub runtime_types::polkadot_parachain::primitives::Id, - pub ::std::vec::Vec<::core::primitive::u8>, - ); - impl ::subxt::Event for MemoUpdated { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "MemoUpdated"; + pub struct KeyChanged; + impl ::subxt::Event for KeyChanged { + const PALLET: &'static str = "Membership"; + const EVENT: &'static str = "KeyChanged"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AddedToNewRaise( - pub runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::Event for AddedToNewRaise { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "AddedToNewRaise"; + pub struct Dummy; + impl ::subxt::Event for Dummy { + const PALLET: &'static str = "Membership"; + const EVENT: &'static str = "Dummy"; } } pub mod storage { use super::runtime_types; - pub struct Funds<'a>( - pub &'a runtime_types::polkadot_parachain::primitives::Id, - ); - impl ::subxt::StorageEntry for Funds<'_> { - const PALLET: &'static str = "Crowdloan"; - const STORAGE: &'static str = "Funds"; - type Value = runtime_types::polkadot_runtime_common::crowdloan::FundInfo< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - ::core::primitive::u32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - )]) - } - } - pub struct NewRaise; - impl ::subxt::StorageEntry for NewRaise { - const PALLET: &'static str = "Crowdloan"; - const STORAGE: &'static str = "NewRaise"; - type Value = - ::std::vec::Vec; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct EndingsCount; - impl ::subxt::StorageEntry for EndingsCount { - const PALLET: &'static str = "Crowdloan"; - const STORAGE: &'static str = "EndingsCount"; - type Value = ::core::primitive::u32; + pub struct Members; + impl ::subxt::StorageEntry for Members { + const PALLET: &'static str = "Membership"; + const STORAGE: &'static str = "Members"; + type Value = ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } } - pub struct NextFundIndex; - impl ::subxt::StorageEntry for NextFundIndex { - const PALLET: &'static str = "Crowdloan"; - const STORAGE: &'static str = "NextFundIndex"; - type Value = ::core::primitive::u32; + pub struct Prime; + impl ::subxt::StorageEntry for Prime { + const PALLET: &'static str = "Membership"; + const STORAGE: &'static str = "Prime"; + type Value = ::subxt::sp_core::crypto::AccountId32; fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Plain } @@ -19697,98 +12669,208 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn funds( + pub async fn members( &self, - _0: &runtime_types::polkadot_parachain::primitives::Id, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::polkadot_runtime_common::crowdloan::FundInfo< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ::core::primitive::u32, - ::core::primitive::u32, - >, - >, + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, ::subxt::BasicError, > { - let entry = Funds(_0); + let entry = Members; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn prime( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + ::subxt::BasicError, + > { + let entry = Prime; self.client.storage().fetch(&entry, hash).await } - pub async fn funds_iter( + } + } + } + pub mod utility { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Batch { + pub calls: ::std::vec::Vec, + } + impl ::subxt::Call for Batch { + const PALLET: &'static str = "Utility"; + const FUNCTION: &'static str = "batch"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct AsDerivative { + pub index: ::core::primitive::u16, + pub call: ::std::boxed::Box, + } + impl ::subxt::Call for AsDerivative { + const PALLET: &'static str = "Utility"; + const FUNCTION: &'static str = "as_derivative"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct BatchAll { + pub calls: ::std::vec::Vec, + } + impl ::subxt::Call for BatchAll { + const PALLET: &'static str = "Utility"; + const FUNCTION: &'static str = "batch_all"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct DispatchAs { + pub as_origin: + ::std::boxed::Box, + pub call: ::std::boxed::Box, + } + impl ::subxt::Call for DispatchAs { + const PALLET: &'static str = "Utility"; + const FUNCTION: &'static str = "dispatch_as"; + } + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } + } + pub fn batch( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Funds<'a>>, - ::subxt::BasicError, + calls: ::std::vec::Vec, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Batch, + DispatchError, + root_mod::Event, > { - self.client.storage().iter(hash).await + let call = Batch { calls }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn new_raise( + pub fn as_derivative( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::std::vec::Vec, - ::subxt::BasicError, + index: ::core::primitive::u16, + call: runtime_types::rococo_runtime::Call, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + AsDerivative, + DispatchError, + root_mod::Event, > { - let entry = NewRaise; - self.client.storage().fetch_or_default(&entry, hash).await + let call = AsDerivative { + index, + call: ::std::boxed::Box::new(call), + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn endings_count( + pub fn batch_all( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = EndingsCount; - self.client.storage().fetch_or_default(&entry, hash).await + calls: ::std::vec::Vec, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + BatchAll, + DispatchError, + root_mod::Event, + > { + let call = BatchAll { calls }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn next_fund_index( + pub fn dispatch_as( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = NextFundIndex; - self.client.storage().fetch_or_default(&entry, hash).await + as_origin: runtime_types::rococo_runtime::OriginCaller, + call: runtime_types::rococo_runtime::Call, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + DispatchAs, + DispatchError, + root_mod::Event, + > { + let call = DispatchAs { + as_origin: ::std::boxed::Box::new(as_origin), + call: ::std::boxed::Box::new(call), + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } } } + pub type Event = runtime_types::pallet_utility::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct BatchInterrupted { + pub index: ::core::primitive::u32, + pub error: runtime_types::sp_runtime::DispatchError, + } + impl ::subxt::Event for BatchInterrupted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchInterrupted"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + 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)] + 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)] + pub struct DispatchedAs { + pub result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::Event for DispatchedAs { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "DispatchedAs"; + } + } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn pallet_id( - &self, - ) -> ::core::result::Result< - runtime_types::frame_support::PalletId, - ::subxt::BasicError, - > { - Ok(::subxt::codec::Decode::decode( - &mut &[112u8, 121u8, 47u8, 99u8, 102u8, 117u8, 110u8, 100u8][..], - )?) - } - pub fn min_contribution( - &self, - ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> - { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 116u8, 59u8, 164u8, 11u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } } - pub fn remove_keys_limit( + pub fn batched_calls_limit( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[232u8, 3u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Utility")?; + let constant = pallet.constant("batched_calls_limit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } - pub mod xcm_pallet { + pub mod proxy { use super::root_mod; use super::runtime_types; pub mod calls { @@ -19796,109 +12878,104 @@ pub mod api { use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Send { - pub dest: ::std::boxed::Box, - pub message: ::std::boxed::Box, + pub struct Proxy { + pub real: ::subxt::sp_core::crypto::AccountId32, + pub force_proxy_type: + ::core::option::Option, + pub call: ::std::boxed::Box, } - impl ::subxt::Call for Send { - const PALLET: &'static str = "XcmPallet"; - const FUNCTION: &'static str = "send"; + impl ::subxt::Call for Proxy { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "proxy"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct TeleportAssets { - pub dest: ::std::boxed::Box, - pub beneficiary: - ::std::boxed::Box, - pub assets: ::std::boxed::Box, - pub fee_asset_item: ::core::primitive::u32, + pub struct AddProxy { + pub delegate: ::subxt::sp_core::crypto::AccountId32, + pub proxy_type: runtime_types::rococo_runtime::ProxyType, + pub delay: ::core::primitive::u32, } - impl ::subxt::Call for TeleportAssets { - const PALLET: &'static str = "XcmPallet"; - const FUNCTION: &'static str = "teleport_assets"; + impl ::subxt::Call for AddProxy { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "add_proxy"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ReserveTransferAssets { - pub dest: ::std::boxed::Box, - pub beneficiary: - ::std::boxed::Box, - pub assets: ::std::boxed::Box, - pub fee_asset_item: ::core::primitive::u32, + pub struct RemoveProxy { + pub delegate: ::subxt::sp_core::crypto::AccountId32, + pub proxy_type: runtime_types::rococo_runtime::ProxyType, + pub delay: ::core::primitive::u32, } - impl ::subxt::Call for ReserveTransferAssets { - const PALLET: &'static str = "XcmPallet"; - const FUNCTION: &'static str = "reserve_transfer_assets"; + impl ::subxt::Call for RemoveProxy { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "remove_proxy"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Execute { - pub message: ::std::boxed::Box, - pub max_weight: ::core::primitive::u64, - } - impl ::subxt::Call for Execute { - const PALLET: &'static str = "XcmPallet"; - const FUNCTION: &'static str = "execute"; + 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)] - pub struct ForceXcmVersion { - pub location: ::std::boxed::Box< - runtime_types::xcm::v1::multilocation::MultiLocation, - >, - pub xcm_version: ::core::primitive::u32, + pub struct Anonymous { + pub proxy_type: runtime_types::rococo_runtime::ProxyType, + pub delay: ::core::primitive::u32, + pub index: ::core::primitive::u16, } - impl ::subxt::Call for ForceXcmVersion { - const PALLET: &'static str = "XcmPallet"; - const FUNCTION: &'static str = "force_xcm_version"; + impl ::subxt::Call for Anonymous { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "anonymous"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceDefaultXcmVersion { - pub maybe_xcm_version: ::core::option::Option<::core::primitive::u32>, + pub struct KillAnonymous { + pub spawner: ::subxt::sp_core::crypto::AccountId32, + pub proxy_type: runtime_types::rococo_runtime::ProxyType, + pub index: ::core::primitive::u16, + #[codec(compact)] + pub height: ::core::primitive::u32, + #[codec(compact)] + pub ext_index: ::core::primitive::u32, } - impl ::subxt::Call for ForceDefaultXcmVersion { - const PALLET: &'static str = "XcmPallet"; - const FUNCTION: &'static str = "force_default_xcm_version"; + impl ::subxt::Call for KillAnonymous { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "kill_anonymous"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceSubscribeVersionNotify { - pub location: - ::std::boxed::Box, + pub struct Announce { + pub real: ::subxt::sp_core::crypto::AccountId32, + pub call_hash: ::subxt::sp_core::H256, } - impl ::subxt::Call for ForceSubscribeVersionNotify { - const PALLET: &'static str = "XcmPallet"; - const FUNCTION: &'static str = "force_subscribe_version_notify"; + impl ::subxt::Call for Announce { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "announce"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ForceUnsubscribeVersionNotify { - pub location: - ::std::boxed::Box, + pub struct RemoveAnnouncement { + pub real: ::subxt::sp_core::crypto::AccountId32, + pub call_hash: ::subxt::sp_core::H256, } - impl ::subxt::Call for ForceUnsubscribeVersionNotify { - const PALLET: &'static str = "XcmPallet"; - const FUNCTION: &'static str = "force_unsubscribe_version_notify"; + impl ::subxt::Call for RemoveAnnouncement { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "remove_announcement"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct LimitedReserveTransferAssets { - pub dest: ::std::boxed::Box, - pub beneficiary: - ::std::boxed::Box, - pub assets: ::std::boxed::Box, - pub fee_asset_item: ::core::primitive::u32, - pub weight_limit: runtime_types::xcm::v2::WeightLimit, - } - impl ::subxt::Call for LimitedReserveTransferAssets { - const PALLET: &'static str = "XcmPallet"; - const FUNCTION: &'static str = "limited_reserve_transfer_assets"; + pub struct RejectAnnouncement { + pub delegate: ::subxt::sp_core::crypto::AccountId32, + pub call_hash: ::subxt::sp_core::H256, + } + impl ::subxt::Call for RejectAnnouncement { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "reject_announcement"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct LimitedTeleportAssets { - pub dest: ::std::boxed::Box, - pub beneficiary: - ::std::boxed::Box, - pub assets: ::std::boxed::Box, - pub fee_asset_item: ::core::primitive::u32, - pub weight_limit: runtime_types::xcm::v2::WeightLimit, + pub struct ProxyAnnounced { + pub delegate: ::subxt::sp_core::crypto::AccountId32, + pub real: ::subxt::sp_core::crypto::AccountId32, + pub force_proxy_type: + ::core::option::Option, + pub call: ::std::boxed::Box, } - impl ::subxt::Call for LimitedTeleportAssets { - const PALLET: &'static str = "XcmPallet"; - const FUNCTION: &'static str = "limited_teleport_assets"; + impl ::subxt::Call for ProxyAnnounced { + const PALLET: &'static str = "Proxy"; + const FUNCTION: &'static str = "proxy_announced"; } pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -19915,492 +12992,286 @@ pub mod api { marker: ::core::marker::PhantomData, } } - pub fn send( + pub fn proxy( &self, - dest: runtime_types::xcm::VersionedMultiLocation, - message: runtime_types::xcm::VersionedXcm, + real: ::subxt::sp_core::crypto::AccountId32, + force_proxy_type: ::core::option::Option< + runtime_types::rococo_runtime::ProxyType, + >, + call: runtime_types::rococo_runtime::Call, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Send, + Proxy, DispatchError, root_mod::Event, > { - let call = Send { - dest: ::std::boxed::Box::new(dest), - message: ::std::boxed::Box::new(message), + let call = Proxy { + real, + force_proxy_type, + call: ::std::boxed::Box::new(call), }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn teleport_assets( + pub fn add_proxy( &self, - dest: runtime_types::xcm::VersionedMultiLocation, - beneficiary: runtime_types::xcm::VersionedMultiLocation, - assets: runtime_types::xcm::VersionedMultiAssets, - fee_asset_item: ::core::primitive::u32, + delegate: ::subxt::sp_core::crypto::AccountId32, + proxy_type: runtime_types::rococo_runtime::ProxyType, + delay: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - TeleportAssets, + AddProxy, DispatchError, root_mod::Event, > { - let call = TeleportAssets { - dest: ::std::boxed::Box::new(dest), - beneficiary: ::std::boxed::Box::new(beneficiary), - assets: ::std::boxed::Box::new(assets), - fee_asset_item, + let call = AddProxy { + delegate, + proxy_type, + delay, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn reserve_transfer_assets( + pub fn remove_proxy( &self, - dest: runtime_types::xcm::VersionedMultiLocation, - beneficiary: runtime_types::xcm::VersionedMultiLocation, - assets: runtime_types::xcm::VersionedMultiAssets, - fee_asset_item: ::core::primitive::u32, + delegate: ::subxt::sp_core::crypto::AccountId32, + proxy_type: runtime_types::rococo_runtime::ProxyType, + delay: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ReserveTransferAssets, + RemoveProxy, DispatchError, root_mod::Event, > { - let call = ReserveTransferAssets { - dest: ::std::boxed::Box::new(dest), - beneficiary: ::std::boxed::Box::new(beneficiary), - assets: ::std::boxed::Box::new(assets), - fee_asset_item, + let call = RemoveProxy { + delegate, + proxy_type, + delay, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn execute( + pub fn remove_proxies( &self, - message: runtime_types::xcm::VersionedXcm, - max_weight: ::core::primitive::u64, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - Execute, + RemoveProxies, DispatchError, root_mod::Event, > { - let call = Execute { - message: ::std::boxed::Box::new(message), - max_weight, - }; + let call = RemoveProxies {}; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_xcm_version( + pub fn anonymous( &self, - location: runtime_types::xcm::v1::multilocation::MultiLocation, - xcm_version: ::core::primitive::u32, + proxy_type: runtime_types::rococo_runtime::ProxyType, + delay: ::core::primitive::u32, + index: ::core::primitive::u16, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ForceXcmVersion, + Anonymous, DispatchError, root_mod::Event, > { - let call = ForceXcmVersion { - location: ::std::boxed::Box::new(location), - xcm_version, + let call = Anonymous { + proxy_type, + delay, + index, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_default_xcm_version( + pub fn kill_anonymous( &self, - maybe_xcm_version: ::core::option::Option<::core::primitive::u32>, + spawner: ::subxt::sp_core::crypto::AccountId32, + proxy_type: runtime_types::rococo_runtime::ProxyType, + index: ::core::primitive::u16, + height: ::core::primitive::u32, + ext_index: ::core::primitive::u32, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ForceDefaultXcmVersion, + KillAnonymous, DispatchError, root_mod::Event, > { - let call = ForceDefaultXcmVersion { maybe_xcm_version }; + let call = KillAnonymous { + spawner, + proxy_type, + index, + height, + ext_index, + }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_subscribe_version_notify( + pub fn announce( &self, - location: runtime_types::xcm::VersionedMultiLocation, + real: ::subxt::sp_core::crypto::AccountId32, + call_hash: ::subxt::sp_core::H256, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ForceSubscribeVersionNotify, + Announce, DispatchError, root_mod::Event, > { - let call = ForceSubscribeVersionNotify { - location: ::std::boxed::Box::new(location), - }; + let call = Announce { real, call_hash }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn force_unsubscribe_version_notify( + pub fn remove_announcement( &self, - location: runtime_types::xcm::VersionedMultiLocation, + real: ::subxt::sp_core::crypto::AccountId32, + call_hash: ::subxt::sp_core::H256, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - ForceUnsubscribeVersionNotify, + RemoveAnnouncement, DispatchError, root_mod::Event, > { - let call = ForceUnsubscribeVersionNotify { - location: ::std::boxed::Box::new(location), - }; + let call = RemoveAnnouncement { real, call_hash }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn limited_reserve_transfer_assets( + pub fn reject_announcement( &self, - dest: runtime_types::xcm::VersionedMultiLocation, - beneficiary: runtime_types::xcm::VersionedMultiLocation, - assets: runtime_types::xcm::VersionedMultiAssets, - fee_asset_item: ::core::primitive::u32, - weight_limit: runtime_types::xcm::v2::WeightLimit, + delegate: ::subxt::sp_core::crypto::AccountId32, + call_hash: ::subxt::sp_core::H256, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - LimitedReserveTransferAssets, + RejectAnnouncement, DispatchError, root_mod::Event, > { - let call = LimitedReserveTransferAssets { - dest: ::std::boxed::Box::new(dest), - beneficiary: ::std::boxed::Box::new(beneficiary), - assets: ::std::boxed::Box::new(assets), - fee_asset_item, - weight_limit, + let call = RejectAnnouncement { + delegate, + call_hash, }; ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub fn limited_teleport_assets( + pub fn proxy_announced( &self, - dest: runtime_types::xcm::VersionedMultiLocation, - beneficiary: runtime_types::xcm::VersionedMultiLocation, - assets: runtime_types::xcm::VersionedMultiAssets, - fee_asset_item: ::core::primitive::u32, - weight_limit: runtime_types::xcm::v2::WeightLimit, + delegate: ::subxt::sp_core::crypto::AccountId32, + real: ::subxt::sp_core::crypto::AccountId32, + force_proxy_type: ::core::option::Option< + runtime_types::rococo_runtime::ProxyType, + >, + call: runtime_types::rococo_runtime::Call, ) -> ::subxt::SubmittableExtrinsic< 'a, T, X, - LimitedTeleportAssets, + ProxyAnnounced, DispatchError, root_mod::Event, > { - let call = LimitedTeleportAssets { - dest: ::std::boxed::Box::new(dest), - beneficiary: ::std::boxed::Box::new(beneficiary), - assets: ::std::boxed::Box::new(assets), - fee_asset_item, - weight_limit, + let call = ProxyAnnounced { + delegate, + real, + force_proxy_type, + call: ::std::boxed::Box::new(call), }; ::subxt::SubmittableExtrinsic::new(self.client, call) - } - } - } - pub type Event = runtime_types::pallet_xcm::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Attempted(pub runtime_types::xcm::v2::traits::Outcome); - impl ::subxt::Event for Attempted { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "Attempted"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Sent( - pub runtime_types::xcm::v1::multilocation::MultiLocation, - pub runtime_types::xcm::v1::multilocation::MultiLocation, - pub runtime_types::xcm::v2::Xcm, - ); - impl ::subxt::Event for Sent { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "Sent"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct UnexpectedResponse( - pub runtime_types::xcm::v1::multilocation::MultiLocation, - pub ::core::primitive::u64, - ); - impl ::subxt::Event for UnexpectedResponse { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "UnexpectedResponse"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ResponseReady( - pub ::core::primitive::u64, - pub runtime_types::xcm::v2::Response, - ); - impl ::subxt::Event for ResponseReady { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "ResponseReady"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Notified( - pub ::core::primitive::u64, - pub ::core::primitive::u8, - pub ::core::primitive::u8, - ); - impl ::subxt::Event for Notified { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "Notified"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct NotifyOverweight( - pub ::core::primitive::u64, - pub ::core::primitive::u8, - pub ::core::primitive::u8, - pub ::core::primitive::u64, - pub ::core::primitive::u64, - ); - impl ::subxt::Event for NotifyOverweight { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "NotifyOverweight"; - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct NotifyDispatchError( - pub ::core::primitive::u64, - pub ::core::primitive::u8, - pub ::core::primitive::u8, - ); - impl ::subxt::Event for NotifyDispatchError { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "NotifyDispatchError"; + } } + } + pub type Event = runtime_types::pallet_proxy::pallet::Event; + pub mod events { + use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct NotifyDecodeFailed( - pub ::core::primitive::u64, - pub ::core::primitive::u8, - pub ::core::primitive::u8, - ); - impl ::subxt::Event for NotifyDecodeFailed { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "NotifyDecodeFailed"; + pub struct ProxyExecuted { + pub result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct InvalidResponder( - pub runtime_types::xcm::v1::multilocation::MultiLocation, - pub ::core::primitive::u64, - pub ::core::option::Option< - runtime_types::xcm::v1::multilocation::MultiLocation, - >, - ); - impl ::subxt::Event for InvalidResponder { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "InvalidResponder"; + impl ::subxt::Event for ProxyExecuted { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "ProxyExecuted"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct InvalidResponderVersion( - pub runtime_types::xcm::v1::multilocation::MultiLocation, - pub ::core::primitive::u64, - ); - impl ::subxt::Event for InvalidResponderVersion { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "InvalidResponderVersion"; - } - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct ResponseTaken(pub ::core::primitive::u64); - impl ::subxt::Event for ResponseTaken { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "ResponseTaken"; + pub struct AnonymousCreated { + pub anonymous: ::subxt::sp_core::crypto::AccountId32, + pub who: ::subxt::sp_core::crypto::AccountId32, + pub proxy_type: runtime_types::rococo_runtime::ProxyType, + pub disambiguation_index: ::core::primitive::u16, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AssetsTrapped( - pub ::subxt::sp_core::H256, - pub runtime_types::xcm::v1::multilocation::MultiLocation, - pub runtime_types::xcm::VersionedMultiAssets, - ); - impl ::subxt::Event for AssetsTrapped { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "AssetsTrapped"; + impl ::subxt::Event for AnonymousCreated { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "AnonymousCreated"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct VersionChangeNotified( - pub runtime_types::xcm::v1::multilocation::MultiLocation, - pub ::core::primitive::u32, - ); - impl ::subxt::Event for VersionChangeNotified { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "VersionChangeNotified"; + pub struct Announced { + pub real: ::subxt::sp_core::crypto::AccountId32, + pub proxy: ::subxt::sp_core::crypto::AccountId32, + pub call_hash: ::subxt::sp_core::H256, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SupportedVersionChanged( - pub runtime_types::xcm::v1::multilocation::MultiLocation, - pub ::core::primitive::u32, - ); - impl ::subxt::Event for SupportedVersionChanged { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "SupportedVersionChanged"; + impl ::subxt::Event for Announced { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "Announced"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct NotifyTargetSendFail( - pub runtime_types::xcm::v1::multilocation::MultiLocation, - pub ::core::primitive::u64, - pub runtime_types::xcm::v2::traits::Error, - ); - impl ::subxt::Event for NotifyTargetSendFail { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "NotifyTargetSendFail"; + pub struct ProxyAdded { + pub delegator: ::subxt::sp_core::crypto::AccountId32, + pub delegatee: ::subxt::sp_core::crypto::AccountId32, + pub proxy_type: runtime_types::rococo_runtime::ProxyType, + pub delay: ::core::primitive::u32, } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct NotifyTargetMigrationFail( - pub runtime_types::xcm::VersionedMultiLocation, - pub ::core::primitive::u64, - ); - impl ::subxt::Event for NotifyTargetMigrationFail { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "NotifyTargetMigrationFail"; + impl ::subxt::Event for ProxyAdded { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "ProxyAdded"; } } pub mod storage { use super::runtime_types; - pub struct QueryCounter; - impl ::subxt::StorageEntry for QueryCounter { - const PALLET: &'static str = "XcmPallet"; - const STORAGE: &'static str = "QueryCounter"; - type Value = ::core::primitive::u64; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct Queries<'a>(pub &'a ::core::primitive::u64); - impl ::subxt::StorageEntry for Queries<'_> { - const PALLET: &'static str = "XcmPallet"; - const STORAGE: &'static str = "Queries"; - type Value = runtime_types::pallet_xcm::pallet::QueryStatus< - ::core::primitive::u32, - >; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Blake2_128Concat, - )]) - } - } - pub struct AssetTraps<'a>(pub &'a ::subxt::sp_core::H256); - impl ::subxt::StorageEntry for AssetTraps<'_> { - const PALLET: &'static str = "XcmPallet"; - const STORAGE: &'static str = "AssetTraps"; - type Value = ::core::primitive::u32; + pub struct Proxies<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for Proxies<'_> { + const PALLET: &'static str = "Proxy"; + const STORAGE: &'static str = "Proxies"; + type Value = ( + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + runtime_types::pallet_proxy::ProxyDefinition< + ::subxt::sp_core::crypto::AccountId32, + runtime_types::rococo_runtime::ProxyType, + ::core::primitive::u32, + >, + >, + ::core::primitive::u128, + ); fn key(&self) -> ::subxt::StorageEntryKey { ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( &self.0, - ::subxt::StorageHasher::Identity, + ::subxt::StorageHasher::Twox64Concat, )]) } } - pub struct SafeXcmVersion; - impl ::subxt::StorageEntry for SafeXcmVersion { - const PALLET: &'static str = "XcmPallet"; - const STORAGE: &'static str = "SafeXcmVersion"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct SupportedVersion<'a>( - pub &'a ::core::primitive::u32, - pub &'a runtime_types::xcm::VersionedMultiLocation, - ); - impl ::subxt::StorageEntry for SupportedVersion<'_> { - const PALLET: &'static str = "XcmPallet"; - const STORAGE: &'static str = "SupportedVersion"; - type Value = ::core::primitive::u32; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Blake2_128Concat, - ), - ]) - } - } - pub struct VersionNotifiers<'a>( - pub &'a ::core::primitive::u32, - pub &'a runtime_types::xcm::VersionedMultiLocation, - ); - impl ::subxt::StorageEntry for VersionNotifiers<'_> { - const PALLET: &'static str = "XcmPallet"; - const STORAGE: &'static str = "VersionNotifiers"; - type Value = ::core::primitive::u64; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Blake2_128Concat, - ), - ]) - } - } - pub struct VersionNotifyTargets<'a>( - pub &'a ::core::primitive::u32, - pub &'a runtime_types::xcm::VersionedMultiLocation, - ); - impl ::subxt::StorageEntry for VersionNotifyTargets<'_> { - const PALLET: &'static str = "XcmPallet"; - const STORAGE: &'static str = "VersionNotifyTargets"; + pub struct Announcements<'a>(pub &'a ::subxt::sp_core::crypto::AccountId32); + impl ::subxt::StorageEntry for Announcements<'_> { + const PALLET: &'static str = "Proxy"; + const STORAGE: &'static str = "Announcements"; type Value = ( - ::core::primitive::u64, - ::core::primitive::u64, - ::core::primitive::u32, + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + runtime_types::pallet_proxy::Announcement< + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::H256, + ::core::primitive::u32, + >, + >, + ::core::primitive::u128, ); fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Map(vec![ - ::subxt::StorageMapKey::new( - &self.0, - ::subxt::StorageHasher::Twox64Concat, - ), - ::subxt::StorageMapKey::new( - &self.1, - ::subxt::StorageHasher::Blake2_128Concat, - ), - ]) - } - } - pub struct VersionDiscoveryQueue; - impl ::subxt::StorageEntry for VersionDiscoveryQueue { - const PALLET: &'static str = "XcmPallet"; - const STORAGE: &'static str = "VersionDiscoveryQueue"; - type Value = - runtime_types::frame_support::storage::bounded_vec::BoundedVec<( - runtime_types::xcm::VersionedMultiLocation, - ::core::primitive::u32, - )>; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain - } - } - pub struct CurrentMigration; - impl ::subxt::StorageEntry for CurrentMigration { - const PALLET: &'static str = "XcmPallet"; - const STORAGE: &'static str = "CurrentMigration"; - type Value = runtime_types::pallet_xcm::pallet::VersionMigrationStage; - fn key(&self) -> ::subxt::StorageEntryKey { - ::subxt::StorageEntryKey::Plain + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + )]) } } pub struct StorageApi<'a, T: ::subxt::Config> { @@ -20410,2370 +13281,1730 @@ pub mod api { pub fn new(client: &'a ::subxt::Client) -> Self { Self { client } } - pub async fn query_counter( - &self, - hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> - { - let entry = QueryCounter; - self.client.storage().fetch_or_default(&entry, hash).await - } - pub async fn queries( + pub async fn proxies( &self, - _0: &::core::primitive::u64, + _0: &::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_xcm::pallet::QueryStatus< - ::core::primitive::u32, + ( + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + runtime_types::pallet_proxy::ProxyDefinition< + ::subxt::sp_core::crypto::AccountId32, + runtime_types::rococo_runtime::ProxyType, + ::core::primitive::u32, + >, >, - >, + ::core::primitive::u128, + ), ::subxt::BasicError, > { - let entry = Queries(_0); - self.client.storage().fetch(&entry, hash).await + let entry = Proxies(_0); + self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn queries_iter( + pub async fn proxies_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, Queries<'a>>, + ::subxt::KeyIter<'a, T, Proxies<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn asset_traps( + pub async fn announcements( &self, - _0: &::subxt::sp_core::H256, + _0: &::subxt::sp_core::crypto::AccountId32, hash: ::core::option::Option, - ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> - { - let entry = AssetTraps(_0); + ) -> ::core::result::Result< + ( + runtime_types::frame_support::storage::bounded_vec::BoundedVec< + runtime_types::pallet_proxy::Announcement< + ::subxt::sp_core::crypto::AccountId32, + ::subxt::sp_core::H256, + ::core::primitive::u32, + >, + >, + ::core::primitive::u128, + ), + ::subxt::BasicError, + > { + let entry = Announcements(_0); self.client.storage().fetch_or_default(&entry, hash).await } - pub async fn asset_traps_iter( + pub async fn announcements_iter( &self, hash: ::core::option::Option, ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, AssetTraps<'a>>, + ::subxt::KeyIter<'a, T, Announcements<'a>>, ::subxt::BasicError, > { self.client.storage().iter(hash).await } - pub async fn safe_xcm_version( + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub fn proxy_deposit_base( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = SafeXcmVersion; - self.client.storage().fetch(&entry, hash).await + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("ProxyDepositBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub async fn supported_version( + pub fn proxy_deposit_factor( &self, - _0: &::core::primitive::u32, - _1: &runtime_types::xcm::VersionedMultiLocation, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u32>, - ::subxt::BasicError, - > { - let entry = SupportedVersion(_0, _1); - self.client.storage().fetch(&entry, hash).await + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("ProxyDepositFactor")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub async fn supported_version_iter( + pub fn max_proxies( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, SupportedVersion<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("MaxProxies")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub async fn version_notifiers( + pub fn max_pending( &self, - _0: &::core::primitive::u32, - _1: &runtime_types::xcm::VersionedMultiLocation, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<::core::primitive::u64>, - ::subxt::BasicError, - > { - let entry = VersionNotifiers(_0, _1); - self.client.storage().fetch(&entry, hash).await + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("MaxPending")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub async fn version_notifiers_iter( + pub fn announcement_deposit_base( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, VersionNotifiers<'a>>, - ::subxt::BasicError, - > { - self.client.storage().iter(hash).await + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("AnnouncementDepositBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub async fn version_notify_targets( + pub fn announcement_deposit_factor( &self, - _0: &::core::primitive::u32, - _1: &runtime_types::xcm::VersionedMultiLocation, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option<( - ::core::primitive::u64, - ::core::primitive::u64, - ::core::primitive::u32, - )>, - ::subxt::BasicError, + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("AnnouncementDepositFactor")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + } + } + } + pub mod multisig { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct AsMultiThreshold1 { + pub other_signatories: + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + pub call: ::std::boxed::Box, + } + impl ::subxt::Call for AsMultiThreshold1 { + const PALLET: &'static str = "Multisig"; + const FUNCTION: &'static str = "as_multi_threshold1"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct AsMulti { + pub threshold: ::core::primitive::u16, + pub other_signatories: + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + pub maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + >, + pub call: ::subxt::WrapperKeepOpaque, + pub store_call: ::core::primitive::bool, + pub max_weight: ::core::primitive::u64, + } + impl ::subxt::Call for AsMulti { + const PALLET: &'static str = "Multisig"; + const FUNCTION: &'static str = "as_multi"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ApproveAsMulti { + pub threshold: ::core::primitive::u16, + pub other_signatories: + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + pub maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + >, + pub call_hash: [::core::primitive::u8; 32usize], + pub max_weight: ::core::primitive::u64, + } + impl ::subxt::Call for ApproveAsMulti { + const PALLET: &'static str = "Multisig"; + const FUNCTION: &'static str = "approve_as_multi"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct CancelAsMulti { + pub threshold: ::core::primitive::u16, + pub other_signatories: + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + pub timepoint: + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + pub call_hash: [::core::primitive::u8; 32usize], + } + impl ::subxt::Call for CancelAsMulti { + const PALLET: &'static str = "Multisig"; + const FUNCTION: &'static str = "cancel_as_multi"; + } + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } + } + pub fn as_multi_threshold1( + &self, + other_signatories: ::std::vec::Vec< + ::subxt::sp_core::crypto::AccountId32, + >, + call: runtime_types::rococo_runtime::Call, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + AsMultiThreshold1, + DispatchError, + root_mod::Event, > { - let entry = VersionNotifyTargets(_0, _1); - self.client.storage().fetch(&entry, hash).await + let call = AsMultiThreshold1 { + other_signatories, + call: ::std::boxed::Box::new(call), + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn version_notify_targets_iter( + pub fn as_multi( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::subxt::KeyIter<'a, T, VersionNotifyTargets<'a>>, - ::subxt::BasicError, + threshold: ::core::primitive::u16, + other_signatories: ::std::vec::Vec< + ::subxt::sp_core::crypto::AccountId32, + >, + maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + >, + call: ::subxt::WrapperKeepOpaque, + store_call: ::core::primitive::bool, + max_weight: ::core::primitive::u64, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + AsMulti, + DispatchError, + root_mod::Event, > { - self.client.storage().iter(hash).await + let call = AsMulti { + threshold, + other_signatories, + maybe_timepoint, + call, + store_call, + max_weight, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn version_discovery_queue( + pub fn approve_as_multi( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - runtime_types::frame_support::storage::bounded_vec::BoundedVec<( - runtime_types::xcm::VersionedMultiLocation, - ::core::primitive::u32, - )>, - ::subxt::BasicError, + threshold: ::core::primitive::u16, + other_signatories: ::std::vec::Vec< + ::subxt::sp_core::crypto::AccountId32, + >, + maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + >, + call_hash: [::core::primitive::u8; 32usize], + max_weight: ::core::primitive::u64, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ApproveAsMulti, + DispatchError, + root_mod::Event, > { - let entry = VersionDiscoveryQueue; - self.client.storage().fetch_or_default(&entry, hash).await + let call = ApproveAsMulti { + threshold, + other_signatories, + maybe_timepoint, + call_hash, + max_weight, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - pub async fn current_migration( + pub fn cancel_as_multi( &self, - hash: ::core::option::Option, - ) -> ::core::result::Result< - ::core::option::Option< - runtime_types::pallet_xcm::pallet::VersionMigrationStage, + threshold: ::core::primitive::u16, + other_signatories: ::std::vec::Vec< + ::subxt::sp_core::crypto::AccountId32, >, - ::subxt::BasicError, + timepoint: runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u32, + >, + call_hash: [::core::primitive::u8; 32usize], + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + CancelAsMulti, + DispatchError, + root_mod::Event, > { - let entry = CurrentMigration; - self.client.storage().fetch(&entry, hash).await + let call = CancelAsMulti { + threshold, + other_signatories, + timepoint, + call_hash, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } } } - } - pub mod runtime_types { - use super::runtime_types; - pub mod bitvec { - use super::runtime_types; - pub mod order { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct Lsb0; - } - } - pub mod finality_grandpa { + pub type Event = runtime_types::pallet_multisig::pallet::Event; + pub mod events { use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] - pub struct Precommit<_0, _1> { - pub target_hash: _0, - pub target_number: _1, - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Prevote<_0, _1> { - pub target_hash: _0, - pub target_number: _1, - } - } - pub mod frame_support { - use super::runtime_types; - pub mod dispatch { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum RawOrigin<_0> { - #[codec(index = 0)] - Root, - #[codec(index = 1)] - Signed(_0), - #[codec(index = 2)] - None, - } - } - pub mod storage { - use super::runtime_types; - pub mod bounded_btree_map { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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, - )] - 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, - )] - pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - } - pub mod traits { - use super::runtime_types; - pub mod misc { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct WrapperKeepOpaque<_0>( - #[codec(compact)] pub ::core::primitive::u32, - pub _0, - ); - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct WrapperOpaque<_0>( - #[codec(compact)] pub ::core::primitive::u32, - pub _0, - ); - } - pub mod schedule { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum LookupError { - #[codec(index = 0)] - Unknown, - #[codec(index = 1)] - BadFormat, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum MaybeHashed<_0, _1> { - #[codec(index = 0)] - Value(_0), - #[codec(index = 1)] - Hash(_1), - } - } - pub mod tokens { - use super::runtime_types; - pub mod misc { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - )] - pub enum BalanceStatus { - #[codec(index = 0)] - Free, - #[codec(index = 1)] - Reserved, - } - } - } - } - pub mod weights { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum DispatchClass { - #[codec(index = 0)] - Normal, - #[codec(index = 1)] - Operational, - #[codec(index = 2)] - Mandatory, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct DispatchInfo { - pub weight: ::core::primitive::u64, - pub class: runtime_types::frame_support::weights::DispatchClass, - pub pays_fee: runtime_types::frame_support::weights::Pays, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Pays { - #[codec(index = 0)] - Yes, - #[codec(index = 1)] - No, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct PerDispatchClass<_0> { - pub normal: _0, - pub operational: _0, - pub mandatory: _0, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct RuntimeDbWeight { - pub read: ::core::primitive::u64, - pub write: ::core::primitive::u64, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct WeightToFeeCoefficient<_0> { - pub coeff_integer: _0, - pub coeff_frac: runtime_types::sp_arithmetic::per_things::Perbill, - pub negative: ::core::primitive::bool, - pub degree: ::core::primitive::u8, - } + pub struct NewMultisig { + pub approving: ::subxt::sp_core::crypto::AccountId32, + pub multisig: ::subxt::sp_core::crypto::AccountId32, + pub call_hash: [::core::primitive::u8; 32usize], + } + impl ::subxt::Event for NewMultisig { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "NewMultisig"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct PalletId(pub [::core::primitive::u8; 8usize]); + pub struct MultisigApproval { + pub approving: ::subxt::sp_core::crypto::AccountId32, + pub timepoint: + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + pub multisig: ::subxt::sp_core::crypto::AccountId32, + pub call_hash: [::core::primitive::u8; 32usize], + } + impl ::subxt::Event for MultisigApproval { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigApproval"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MultisigExecuted { + pub approving: ::subxt::sp_core::crypto::AccountId32, + pub timepoint: + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + pub multisig: ::subxt::sp_core::crypto::AccountId32, + pub call_hash: [::core::primitive::u8; 32usize], + pub result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::Event for MultisigExecuted { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigExecuted"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MultisigCancelled { + pub cancelling: ::subxt::sp_core::crypto::AccountId32, + pub timepoint: + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + pub multisig: ::subxt::sp_core::crypto::AccountId32, + pub call_hash: [::core::primitive::u8; 32usize], + } + impl ::subxt::Event for MultisigCancelled { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigCancelled"; + } } - pub mod frame_system { + pub mod storage { use super::runtime_types; - pub mod extensions { - use super::runtime_types; - pub mod check_genesis { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct CheckGenesis; - } - pub mod check_mortality { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct CheckMortality( - pub runtime_types::sp_runtime::generic::era::Era, - ); - } - pub mod check_non_zero_sender { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct CheckNonZeroSender; - } - pub mod check_nonce { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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, - )] - pub struct CheckSpecVersion; - } - pub mod check_tx_version { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct CheckTxVersion; + pub struct Multisigs<'a>( + pub &'a ::subxt::sp_core::crypto::AccountId32, + pub &'a [::core::primitive::u8; 32usize], + ); + impl ::subxt::StorageEntry for Multisigs<'_> { + const PALLET: &'static str = "Multisig"; + const STORAGE: &'static str = "Multisigs"; + type Value = runtime_types::pallet_multisig::Multisig< + ::core::primitive::u32, + ::core::primitive::u128, + ::subxt::sp_core::crypto::AccountId32, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ]) } - pub mod check_weight { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct CheckWeight; + } + pub struct Calls<'a>(pub &'a [::core::primitive::u8; 32usize]); + impl ::subxt::StorageEntry for Calls<'_> { + const PALLET: &'static str = "Multisig"; + const STORAGE: &'static str = "Calls"; + type Value = ( + ::subxt::WrapperKeepOpaque, + ::subxt::sp_core::crypto::AccountId32, + ::core::primitive::u128, + ); + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Identity, + )]) } } - pub mod limits { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct BlockLength { - pub max: runtime_types::frame_support::weights::PerDispatchClass< - ::core::primitive::u32, - >, + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct BlockWeights { - pub base_block: ::core::primitive::u64, - pub max_block: ::core::primitive::u64, - pub per_class: - runtime_types::frame_support::weights::PerDispatchClass< - runtime_types::frame_system::limits::WeightsPerClass, + pub async fn multisigs( + &self, + _0: &::subxt::sp_core::crypto::AccountId32, + _1: &[::core::primitive::u8; 32usize], + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::pallet_multisig::Multisig< + ::core::primitive::u32, + ::core::primitive::u128, + ::subxt::sp_core::crypto::AccountId32, >, + >, + ::subxt::BasicError, + > { + let entry = Multisigs(_0, _1); + self.client.storage().fetch(&entry, hash).await } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct WeightsPerClass { - pub base_extrinsic: ::core::primitive::u64, - pub max_extrinsic: ::core::option::Option<::core::primitive::u64>, - pub max_total: ::core::option::Option<::core::primitive::u64>, - pub reserved: ::core::option::Option<::core::primitive::u64>, + pub async fn multisigs_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Multisigs<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await } - } - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Call { - #[codec(index = 0)] - fill_block { - ratio: runtime_types::sp_arithmetic::per_things::Perbill, - }, - #[codec(index = 1)] - remark { - remark: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 2)] - set_heap_pages { pages: ::core::primitive::u64 }, - #[codec(index = 3)] - set_code { - code: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 4)] - set_code_without_checks { - code: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 5)] - set_storage { - items: ::std::vec::Vec<( - ::std::vec::Vec<::core::primitive::u8>, - ::std::vec::Vec<::core::primitive::u8>, - )>, - }, - #[codec(index = 6)] - kill_storage { - keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, - }, - #[codec(index = 7)] - kill_prefix { - prefix: ::std::vec::Vec<::core::primitive::u8>, - subkeys: ::core::primitive::u32, - }, - #[codec(index = 8)] - remark_with_event { - remark: ::std::vec::Vec<::core::primitive::u8>, - }, + pub async fn calls( + &self, + _0: &[::core::primitive::u8; 32usize], + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<( + ::subxt::WrapperKeepOpaque, + ::subxt::sp_core::crypto::AccountId32, + ::core::primitive::u128, + )>, + ::subxt::BasicError, + > { + let entry = Calls(_0); + self.client.storage().fetch(&entry, hash).await + } + pub async fn calls_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Calls<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Error { - #[codec(index = 0)] - InvalidSpecName, - #[codec(index = 1)] - SpecVersionNeedsToIncrease, - #[codec(index = 2)] - FailedToExtractRuntimeVersion, - #[codec(index = 3)] - NonDefaultComposite, - #[codec(index = 4)] - NonZeroRefCount, - #[codec(index = 5)] - CallFiltered, + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Event { - #[codec(index = 0)] - ExtrinsicSuccess { - dispatch_info: - runtime_types::frame_support::weights::DispatchInfo, - }, - #[codec(index = 1)] - ExtrinsicFailed { - dispatch_error: runtime_types::sp_runtime::DispatchError, - dispatch_info: - runtime_types::frame_support::weights::DispatchInfo, - }, - #[codec(index = 2)] - CodeUpdated, - #[codec(index = 3)] - NewAccount { - account: ::subxt::sp_core::crypto::AccountId32, - }, - #[codec(index = 4)] - KilledAccount { - account: ::subxt::sp_core::crypto::AccountId32, - }, - #[codec(index = 5)] - Remarked { - sender: ::subxt::sp_core::crypto::AccountId32, - hash: ::subxt::sp_core::H256, - }, + pub fn deposit_base( + &self, + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Multisig")?; + let constant = pallet.constant("DepositBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn deposit_factor( + &self, + ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Multisig")?; + let constant = pallet.constant("DepositFactor")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn max_signatories( + &self, + ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> + { + let pallet = self.client.metadata().pallet("Multisig")?; + let constant = pallet.constant("MaxSignatories")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } + } + } + pub mod xcm_pallet { + use super::root_mod; + use super::runtime_types; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AccountInfo<_0, _1> { - pub nonce: _0, - pub consumers: _0, - pub providers: _0, - pub sufficients: _0, - pub data: _1, + pub struct Send { + pub dest: ::std::boxed::Box, + pub message: ::std::boxed::Box, + } + impl ::subxt::Call for Send { + const PALLET: &'static str = "XcmPallet"; + const FUNCTION: &'static str = "send"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct EventRecord<_0, _1> { - pub phase: runtime_types::frame_system::Phase, - pub event: _0, - pub topics: ::std::vec::Vec<_1>, + pub struct TeleportAssets { + pub dest: ::std::boxed::Box, + pub beneficiary: + ::std::boxed::Box, + pub assets: ::std::boxed::Box, + pub fee_asset_item: ::core::primitive::u32, + } + impl ::subxt::Call for TeleportAssets { + const PALLET: &'static str = "XcmPallet"; + const FUNCTION: &'static str = "teleport_assets"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct LastRuntimeUpgradeInfo { - #[codec(compact)] - pub spec_version: ::core::primitive::u32, - pub spec_name: ::std::string::String, + pub struct ReserveTransferAssets { + pub dest: ::std::boxed::Box, + pub beneficiary: + ::std::boxed::Box, + pub assets: ::std::boxed::Box, + pub fee_asset_item: ::core::primitive::u32, + } + impl ::subxt::Call for ReserveTransferAssets { + const PALLET: &'static str = "XcmPallet"; + const FUNCTION: &'static str = "reserve_transfer_assets"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum Phase { - #[codec(index = 0)] - ApplyExtrinsic(::core::primitive::u32), - #[codec(index = 1)] - Finalization, - #[codec(index = 2)] - Initialization, + pub struct Execute { + pub message: ::std::boxed::Box, + pub max_weight: ::core::primitive::u64, } - } - pub mod pallet_authorship { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Call { - #[codec(index = 0)] - set_uncles { - new_uncles: ::std::vec::Vec< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - }, + impl ::subxt::Call for Execute { + const PALLET: &'static str = "XcmPallet"; + const FUNCTION: &'static str = "execute"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ForceXcmVersion { + pub location: ::std::boxed::Box< + runtime_types::xcm::v1::multilocation::MultiLocation, + >, + pub xcm_version: ::core::primitive::u32, + } + impl ::subxt::Call for ForceXcmVersion { + const PALLET: &'static str = "XcmPallet"; + const FUNCTION: &'static str = "force_xcm_version"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ForceDefaultXcmVersion { + pub maybe_xcm_version: ::core::option::Option<::core::primitive::u32>, + } + impl ::subxt::Call for ForceDefaultXcmVersion { + const PALLET: &'static str = "XcmPallet"; + const FUNCTION: &'static str = "force_default_xcm_version"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ForceSubscribeVersionNotify { + pub location: + ::std::boxed::Box, + } + impl ::subxt::Call for ForceSubscribeVersionNotify { + const PALLET: &'static str = "XcmPallet"; + const FUNCTION: &'static str = "force_subscribe_version_notify"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ForceUnsubscribeVersionNotify { + pub location: + ::std::boxed::Box, + } + impl ::subxt::Call for ForceUnsubscribeVersionNotify { + const PALLET: &'static str = "XcmPallet"; + const FUNCTION: &'static str = "force_unsubscribe_version_notify"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct LimitedReserveTransferAssets { + pub dest: ::std::boxed::Box, + pub beneficiary: + ::std::boxed::Box, + pub assets: ::std::boxed::Box, + pub fee_asset_item: ::core::primitive::u32, + pub weight_limit: runtime_types::xcm::v2::WeightLimit, + } + impl ::subxt::Call for LimitedReserveTransferAssets { + const PALLET: &'static str = "XcmPallet"; + const FUNCTION: &'static str = "limited_reserve_transfer_assets"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct LimitedTeleportAssets { + pub dest: ::std::boxed::Box, + pub beneficiary: + ::std::boxed::Box, + pub assets: ::std::boxed::Box, + pub fee_asset_item: ::core::primitive::u32, + pub weight_limit: runtime_types::xcm::v2::WeightLimit, + } + impl ::subxt::Call for LimitedTeleportAssets { + const PALLET: &'static str = "XcmPallet"; + const FUNCTION: &'static str = "limited_teleport_assets"; + } + pub struct TransactionApi<'a, T: ::subxt::Config, X> { + client: &'a ::subxt::Client, + marker: ::core::marker::PhantomData, + } + impl<'a, T, X> TransactionApi<'a, T, X> + where + T: ::subxt::Config, + X: ::subxt::extrinsic::ExtrinsicParams, + { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { + client, + marker: ::core::marker::PhantomData, + } } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Error { - #[codec(index = 0)] - InvalidUncleParent, - #[codec(index = 1)] - UnclesAlreadySet, - #[codec(index = 2)] - TooManyUncles, - #[codec(index = 3)] - GenesisUncle, - #[codec(index = 4)] - TooHighUncle, - #[codec(index = 5)] - UncleAlreadyIncluded, - #[codec(index = 6)] - OldUncle, + pub fn send( + &self, + dest: runtime_types::xcm::VersionedMultiLocation, + message: runtime_types::xcm::VersionedXcm, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Send, + DispatchError, + root_mod::Event, + > { + let call = Send { + dest: ::std::boxed::Box::new(dest), + message: ::std::boxed::Box::new(message), + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum UncleEntryItem<_0, _1, _2> { - #[codec(index = 0)] - InclusionHeight(_0), - #[codec(index = 1)] - Uncle(_1, ::core::option::Option<_2>), - } - } - pub mod pallet_babe { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Call { - # [codec (index = 0)] 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)] 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)] plan_config_change { config : runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor , } , } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Error { - #[codec(index = 0)] - InvalidEquivocationProof, - #[codec(index = 1)] - InvalidKeyOwnershipProof, - #[codec(index = 2)] - DuplicateOffenceReport, + pub fn teleport_assets( + &self, + dest: runtime_types::xcm::VersionedMultiLocation, + beneficiary: runtime_types::xcm::VersionedMultiLocation, + assets: runtime_types::xcm::VersionedMultiAssets, + fee_asset_item: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + TeleportAssets, + DispatchError, + root_mod::Event, + > { + let call = TeleportAssets { + dest: ::std::boxed::Box::new(dest), + beneficiary: ::std::boxed::Box::new(beneficiary), + assets: ::std::boxed::Box::new(assets), + fee_asset_item, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - } - pub mod pallet_bags_list { - use super::runtime_types; - pub mod list { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct Bag { - pub head: - ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, - pub tail: - ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + pub fn reserve_transfer_assets( + &self, + dest: runtime_types::xcm::VersionedMultiLocation, + beneficiary: runtime_types::xcm::VersionedMultiLocation, + assets: runtime_types::xcm::VersionedMultiAssets, + fee_asset_item: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ReserveTransferAssets, + DispatchError, + root_mod::Event, + > { + let call = ReserveTransferAssets { + dest: ::std::boxed::Box::new(dest), + beneficiary: ::std::boxed::Box::new(beneficiary), + assets: ::std::boxed::Box::new(assets), + fee_asset_item, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct Node { - pub id: ::subxt::sp_core::crypto::AccountId32, - pub prev: - ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, - pub next: - ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, - pub bag_upper: ::core::primitive::u64, + pub fn execute( + &self, + message: runtime_types::xcm::VersionedXcm, + max_weight: ::core::primitive::u64, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + Execute, + DispatchError, + root_mod::Event, + > { + let call = Execute { + message: ::std::boxed::Box::new(message), + max_weight, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Call { - #[codec(index = 0)] - rebag { - dislocated: ::subxt::sp_core::crypto::AccountId32, - }, - #[codec(index = 1)] - put_in_front_of { - lighter: ::subxt::sp_core::crypto::AccountId32, - }, + pub fn force_xcm_version( + &self, + location: runtime_types::xcm::v1::multilocation::MultiLocation, + xcm_version: ::core::primitive::u32, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ForceXcmVersion, + DispatchError, + root_mod::Event, + > { + let call = ForceXcmVersion { + location: ::std::boxed::Box::new(location), + xcm_version, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Error { - #[codec(index = 0)] - NotInSameBag, - #[codec(index = 1)] - IdNotFound, - #[codec(index = 2)] - NotHeavier, + pub fn force_default_xcm_version( + &self, + maybe_xcm_version: ::core::option::Option<::core::primitive::u32>, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ForceDefaultXcmVersion, + DispatchError, + root_mod::Event, + > { + let call = ForceDefaultXcmVersion { maybe_xcm_version }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Event { - #[codec(index = 0)] - Rebagged { - who: ::subxt::sp_core::crypto::AccountId32, - from: ::core::primitive::u64, - to: ::core::primitive::u64, - }, + pub fn force_subscribe_version_notify( + &self, + location: runtime_types::xcm::VersionedMultiLocation, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ForceSubscribeVersionNotify, + DispatchError, + root_mod::Event, + > { + let call = ForceSubscribeVersionNotify { + location: ::std::boxed::Box::new(location), + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - } - } - pub mod pallet_balances { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Call { - #[codec(index = 0)] - transfer { - dest: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 1)] - set_balance { - who: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - new_free: ::core::primitive::u128, - #[codec(compact)] - new_reserved: ::core::primitive::u128, - }, - #[codec(index = 2)] - force_transfer { - source: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - dest: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 3)] - transfer_keep_alive { - dest: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 4)] - transfer_all { - dest: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - keep_alive: ::core::primitive::bool, - }, - #[codec(index = 5)] - force_unreserve { - who: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - amount: ::core::primitive::u128, - }, + pub fn force_unsubscribe_version_notify( + &self, + location: runtime_types::xcm::VersionedMultiLocation, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + ForceUnsubscribeVersionNotify, + DispatchError, + root_mod::Event, + > { + let call = ForceUnsubscribeVersionNotify { + location: ::std::boxed::Box::new(location), + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Error { - #[codec(index = 0)] - VestingBalance, - #[codec(index = 1)] - LiquidityRestrictions, - #[codec(index = 2)] - InsufficientBalance, - #[codec(index = 3)] - ExistentialDeposit, - #[codec(index = 4)] - KeepAlive, - #[codec(index = 5)] - ExistingVestingSchedule, - #[codec(index = 6)] - DeadAccount, - #[codec(index = 7)] - TooManyReserves, + pub fn limited_reserve_transfer_assets( + &self, + dest: runtime_types::xcm::VersionedMultiLocation, + beneficiary: runtime_types::xcm::VersionedMultiLocation, + assets: runtime_types::xcm::VersionedMultiAssets, + fee_asset_item: ::core::primitive::u32, + weight_limit: runtime_types::xcm::v2::WeightLimit, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + LimitedReserveTransferAssets, + DispatchError, + root_mod::Event, + > { + let call = LimitedReserveTransferAssets { + dest: ::std::boxed::Box::new(dest), + beneficiary: ::std::boxed::Box::new(beneficiary), + assets: ::std::boxed::Box::new(assets), + fee_asset_item, + weight_limit, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) + } + pub fn limited_teleport_assets( + &self, + dest: runtime_types::xcm::VersionedMultiLocation, + beneficiary: runtime_types::xcm::VersionedMultiLocation, + assets: runtime_types::xcm::VersionedMultiAssets, + fee_asset_item: ::core::primitive::u32, + weight_limit: runtime_types::xcm::v2::WeightLimit, + ) -> ::subxt::SubmittableExtrinsic< + 'a, + T, + X, + LimitedTeleportAssets, + DispatchError, + root_mod::Event, + > { + let call = LimitedTeleportAssets { + dest: ::std::boxed::Box::new(dest), + beneficiary: ::std::boxed::Box::new(beneficiary), + assets: ::std::boxed::Box::new(assets), + fee_asset_item, + weight_limit, + }; + ::subxt::SubmittableExtrinsic::new(self.client, call) } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Event { - # [codec (index = 0)] Endowed { account : :: subxt :: sp_core :: crypto :: AccountId32 , free_balance : :: core :: primitive :: u128 , } , # [codec (index = 1)] DustLost { account : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] Transfer { from : :: subxt :: sp_core :: crypto :: AccountId32 , to : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] BalanceSet { who : :: subxt :: sp_core :: crypto :: AccountId32 , free : :: core :: primitive :: u128 , reserved : :: core :: primitive :: u128 , } , # [codec (index = 4)] Reserved { who : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] Unreserved { who : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 6)] 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)] Deposit { who : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] Withdraw { who : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] Slashed { who : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , } } + } + pub type Event = runtime_types::pallet_xcm::pallet::Event; + pub mod events { + use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct AccountData<_0> { - pub free: _0, - pub reserved: _0, - pub misc_frozen: _0, - pub fee_frozen: _0, + pub struct Attempted(pub runtime_types::xcm::v2::traits::Outcome); + impl ::subxt::Event for Attempted { + const PALLET: &'static str = "XcmPallet"; + const EVENT: &'static str = "Attempted"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct BalanceLock<_0> { - pub id: [::core::primitive::u8; 8usize], - pub amount: _0, - pub reasons: runtime_types::pallet_balances::Reasons, + pub struct Sent( + pub runtime_types::xcm::v1::multilocation::MultiLocation, + pub runtime_types::xcm::v1::multilocation::MultiLocation, + pub runtime_types::xcm::v2::Xcm, + ); + impl ::subxt::Event for Sent { + const PALLET: &'static str = "XcmPallet"; + const EVENT: &'static str = "Sent"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum Reasons { - #[codec(index = 0)] - Fee, - #[codec(index = 1)] - Misc, - #[codec(index = 2)] - All, + pub struct UnexpectedResponse( + pub runtime_types::xcm::v1::multilocation::MultiLocation, + pub ::core::primitive::u64, + ); + impl ::subxt::Event for UnexpectedResponse { + const PALLET: &'static str = "XcmPallet"; + const EVENT: &'static str = "UnexpectedResponse"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum Releases { - #[codec(index = 0)] - V1_0_0, - #[codec(index = 1)] - V2_0_0, + pub struct ResponseReady( + pub ::core::primitive::u64, + pub runtime_types::xcm::v2::Response, + ); + impl ::subxt::Event for ResponseReady { + const PALLET: &'static str = "XcmPallet"; + const EVENT: &'static str = "ResponseReady"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ReserveData<_0, _1> { - pub id: _0, - pub amount: _1, + pub struct Notified( + pub ::core::primitive::u64, + pub ::core::primitive::u8, + pub ::core::primitive::u8, + ); + impl ::subxt::Event for Notified { + const PALLET: &'static str = "XcmPallet"; + const EVENT: &'static str = "Notified"; } - } - pub mod pallet_bounties { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Call { - #[codec(index = 0)] - propose_bounty { - #[codec(compact)] - value: ::core::primitive::u128, - description: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 1)] - approve_bounty { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - }, - #[codec(index = 2)] - propose_curator { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - curator: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - fee: ::core::primitive::u128, - }, - #[codec(index = 3)] - unassign_curator { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - }, - #[codec(index = 4)] - accept_curator { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - }, - #[codec(index = 5)] - award_bounty { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - }, - #[codec(index = 6)] - claim_bounty { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - }, - #[codec(index = 7)] - close_bounty { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - }, - #[codec(index = 8)] - extend_bounty_expiry { - #[codec(compact)] - bounty_id: ::core::primitive::u32, - remark: ::std::vec::Vec<::core::primitive::u8>, - }, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Error { - #[codec(index = 0)] - InsufficientProposersBalance, - #[codec(index = 1)] - InvalidIndex, - #[codec(index = 2)] - ReasonTooBig, - #[codec(index = 3)] - UnexpectedStatus, - #[codec(index = 4)] - RequireCurator, - #[codec(index = 5)] - InvalidValue, - #[codec(index = 6)] - InvalidFee, - #[codec(index = 7)] - PendingPayout, - #[codec(index = 8)] - Premature, - #[codec(index = 9)] - HasActiveChildBounty, - #[codec(index = 10)] - TooManyQueued, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Event { - #[codec(index = 0)] - BountyProposed { index: ::core::primitive::u32 }, - #[codec(index = 1)] - BountyRejected { - index: ::core::primitive::u32, - bond: ::core::primitive::u128, - }, - #[codec(index = 2)] - BountyBecameActive { index: ::core::primitive::u32 }, - #[codec(index = 3)] - BountyAwarded { - index: ::core::primitive::u32, - beneficiary: ::subxt::sp_core::crypto::AccountId32, - }, - #[codec(index = 4)] - BountyClaimed { - index: ::core::primitive::u32, - payout: ::core::primitive::u128, - beneficiary: ::subxt::sp_core::crypto::AccountId32, - }, - #[codec(index = 5)] - BountyCanceled { index: ::core::primitive::u32 }, - #[codec(index = 6)] - BountyExtended { index: ::core::primitive::u32 }, - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct NotifyOverweight( + pub ::core::primitive::u64, + pub ::core::primitive::u8, + pub ::core::primitive::u8, + pub ::core::primitive::u64, + pub ::core::primitive::u64, + ); + impl ::subxt::Event for NotifyOverweight { + const PALLET: &'static str = "XcmPallet"; + const EVENT: &'static str = "NotifyOverweight"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct NotifyDispatchError( + pub ::core::primitive::u64, + pub ::core::primitive::u8, + pub ::core::primitive::u8, + ); + impl ::subxt::Event for NotifyDispatchError { + const PALLET: &'static str = "XcmPallet"; + const EVENT: &'static str = "NotifyDispatchError"; + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct NotifyDecodeFailed( + pub ::core::primitive::u64, + pub ::core::primitive::u8, + pub ::core::primitive::u8, + ); + impl ::subxt::Event for NotifyDecodeFailed { + const PALLET: &'static str = "XcmPallet"; + const EVENT: &'static str = "NotifyDecodeFailed"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Bounty<_0, _1, _2> { - pub proposer: _0, - pub value: _1, - pub fee: _1, - pub curator_deposit: _1, - pub bond: _1, - pub status: runtime_types::pallet_bounties::BountyStatus<_0, _2>, + pub struct InvalidResponder( + pub runtime_types::xcm::v1::multilocation::MultiLocation, + pub ::core::primitive::u64, + pub ::core::option::Option< + runtime_types::xcm::v1::multilocation::MultiLocation, + >, + ); + impl ::subxt::Event for InvalidResponder { + const PALLET: &'static str = "XcmPallet"; + const EVENT: &'static str = "InvalidResponder"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum BountyStatus<_0, _1> { - #[codec(index = 0)] - Proposed, - #[codec(index = 1)] - Approved, - #[codec(index = 2)] - Funded, - #[codec(index = 3)] - CuratorProposed { curator: _0 }, - #[codec(index = 4)] - Active { curator: _0, update_due: _1 }, - #[codec(index = 5)] - PendingPayout { - curator: _0, - beneficiary: _0, - unlock_at: _1, - }, + pub struct InvalidResponderVersion( + pub runtime_types::xcm::v1::multilocation::MultiLocation, + pub ::core::primitive::u64, + ); + impl ::subxt::Event for InvalidResponderVersion { + const PALLET: &'static str = "XcmPallet"; + const EVENT: &'static str = "InvalidResponderVersion"; } - } - pub mod pallet_child_bounties { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Call { - #[codec(index = 0)] - add_child_bounty { - #[codec(compact)] - parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - value: ::core::primitive::u128, - description: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 1)] - propose_curator { - #[codec(compact)] - parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - child_bounty_id: ::core::primitive::u32, - curator: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - fee: ::core::primitive::u128, - }, - #[codec(index = 2)] - accept_curator { - #[codec(compact)] - parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - child_bounty_id: ::core::primitive::u32, - }, - #[codec(index = 3)] - unassign_curator { - #[codec(compact)] - parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - child_bounty_id: ::core::primitive::u32, - }, - #[codec(index = 4)] - award_child_bounty { - #[codec(compact)] - parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - child_bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - }, - #[codec(index = 5)] - claim_child_bounty { - #[codec(compact)] - parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - child_bounty_id: ::core::primitive::u32, - }, - #[codec(index = 6)] - close_child_bounty { - #[codec(compact)] - parent_bounty_id: ::core::primitive::u32, - #[codec(compact)] - child_bounty_id: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Error { - #[codec(index = 0)] - ParentBountyNotActive, - #[codec(index = 1)] - InsufficientBountyBalance, - #[codec(index = 2)] - TooManyChildBounties, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Event { - #[codec(index = 0)] - Added { - index: ::core::primitive::u32, - child_index: ::core::primitive::u32, - }, - #[codec(index = 1)] - Awarded { - index: ::core::primitive::u32, - child_index: ::core::primitive::u32, - beneficiary: ::subxt::sp_core::crypto::AccountId32, - }, - #[codec(index = 2)] - Claimed { - index: ::core::primitive::u32, - child_index: ::core::primitive::u32, - payout: ::core::primitive::u128, - beneficiary: ::subxt::sp_core::crypto::AccountId32, - }, - #[codec(index = 3)] - Canceled { - index: ::core::primitive::u32, - child_index: ::core::primitive::u32, - }, - } + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + :: subxt :: codec :: CompactAs, + )] + pub struct ResponseTaken(pub ::core::primitive::u64); + impl ::subxt::Event for ResponseTaken { + const PALLET: &'static str = "XcmPallet"; + const EVENT: &'static str = "ResponseTaken"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ChildBounty<_0, _1, _2> { - pub parent_bounty: _2, - pub value: _1, - pub fee: _1, - pub curator_deposit: _1, - pub status: - runtime_types::pallet_child_bounties::ChildBountyStatus<_0, _2>, + pub struct AssetsTrapped( + pub ::subxt::sp_core::H256, + pub runtime_types::xcm::v1::multilocation::MultiLocation, + pub runtime_types::xcm::VersionedMultiAssets, + ); + impl ::subxt::Event for AssetsTrapped { + const PALLET: &'static str = "XcmPallet"; + const EVENT: &'static str = "AssetsTrapped"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum ChildBountyStatus<_0, _1> { - #[codec(index = 0)] - Added, - #[codec(index = 1)] - CuratorProposed { curator: _0 }, - #[codec(index = 2)] - Active { curator: _0 }, - #[codec(index = 3)] - PendingPayout { - curator: _0, - beneficiary: _0, - unlock_at: _1, - }, + pub struct VersionChangeNotified( + pub runtime_types::xcm::v1::multilocation::MultiLocation, + pub ::core::primitive::u32, + ); + impl ::subxt::Event for VersionChangeNotified { + const PALLET: &'static str = "XcmPallet"; + const EVENT: &'static str = "VersionChangeNotified"; } - } - pub mod pallet_collective { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Call { - #[codec(index = 0)] - set_members { - new_members: - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - prime: - ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, - old_count: ::core::primitive::u32, - }, - #[codec(index = 1)] - execute { - proposal: - ::std::boxed::Box, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, - #[codec(index = 2)] - propose { - #[codec(compact)] - threshold: ::core::primitive::u32, - proposal: - ::std::boxed::Box, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, - #[codec(index = 3)] - vote { - proposal: ::subxt::sp_core::H256, - #[codec(compact)] - index: ::core::primitive::u32, - approve: ::core::primitive::bool, - }, - #[codec(index = 4)] - close { - proposal_hash: ::subxt::sp_core::H256, - #[codec(compact)] - index: ::core::primitive::u32, - #[codec(compact)] - proposal_weight_bound: ::core::primitive::u64, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, - #[codec(index = 5)] - disapprove_proposal { - proposal_hash: ::subxt::sp_core::H256, - }, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Error { - #[codec(index = 0)] - NotMember, - #[codec(index = 1)] - DuplicateProposal, - #[codec(index = 2)] - ProposalMissing, - #[codec(index = 3)] - WrongIndex, - #[codec(index = 4)] - DuplicateVote, - #[codec(index = 5)] - AlreadyInitialized, - #[codec(index = 6)] - TooEarly, - #[codec(index = 7)] - TooManyProposals, - #[codec(index = 8)] - WrongProposalWeight, - #[codec(index = 9)] - WrongProposalLength, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Event { - #[codec(index = 0)] - Proposed { - account: ::subxt::sp_core::crypto::AccountId32, - proposal_index: ::core::primitive::u32, - proposal_hash: ::subxt::sp_core::H256, - threshold: ::core::primitive::u32, - }, - #[codec(index = 1)] - Voted { - account: ::subxt::sp_core::crypto::AccountId32, - proposal_hash: ::subxt::sp_core::H256, - voted: ::core::primitive::bool, - yes: ::core::primitive::u32, - no: ::core::primitive::u32, - }, - #[codec(index = 2)] - Approved { - proposal_hash: ::subxt::sp_core::H256, - }, - #[codec(index = 3)] - Disapproved { - proposal_hash: ::subxt::sp_core::H256, - }, - #[codec(index = 4)] - Executed { - proposal_hash: ::subxt::sp_core::H256, - result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - }, - #[codec(index = 5)] - MemberExecuted { - proposal_hash: ::subxt::sp_core::H256, - result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - }, - #[codec(index = 6)] - Closed { - proposal_hash: ::subxt::sp_core::H256, - yes: ::core::primitive::u32, - no: ::core::primitive::u32, - }, - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SupportedVersionChanged( + pub runtime_types::xcm::v1::multilocation::MultiLocation, + pub ::core::primitive::u32, + ); + impl ::subxt::Event for SupportedVersionChanged { + const PALLET: &'static str = "XcmPallet"; + const EVENT: &'static str = "SupportedVersionChanged"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum RawOrigin<_0> { - #[codec(index = 0)] - Members(::core::primitive::u32, ::core::primitive::u32), - #[codec(index = 1)] - Member(_0), - #[codec(index = 2)] - _Phantom, + pub struct NotifyTargetSendFail( + pub runtime_types::xcm::v1::multilocation::MultiLocation, + pub ::core::primitive::u64, + pub runtime_types::xcm::v2::traits::Error, + ); + impl ::subxt::Event for NotifyTargetSendFail { + const PALLET: &'static str = "XcmPallet"; + const EVENT: &'static str = "NotifyTargetSendFail"; } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Votes<_0, _1> { - pub index: _1, - pub threshold: _1, - pub ayes: ::std::vec::Vec<_0>, - pub nays: ::std::vec::Vec<_0>, - pub end: _1, + pub struct NotifyTargetMigrationFail( + pub runtime_types::xcm::VersionedMultiLocation, + pub ::core::primitive::u64, + ); + impl ::subxt::Event for NotifyTargetMigrationFail { + const PALLET: &'static str = "XcmPallet"; + const EVENT: &'static str = "NotifyTargetMigrationFail"; } } - pub mod pallet_democracy { + pub mod storage { use super::runtime_types; - pub mod conviction { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Conviction { - #[codec(index = 0)] - None, - #[codec(index = 1)] - Locked1x, - #[codec(index = 2)] - Locked2x, - #[codec(index = 3)] - Locked3x, - #[codec(index = 4)] - Locked4x, - #[codec(index = 5)] - Locked5x, - #[codec(index = 6)] - Locked6x, + pub struct QueryCounter; + impl ::subxt::StorageEntry for QueryCounter { + const PALLET: &'static str = "XcmPallet"; + const STORAGE: &'static str = "QueryCounter"; + type Value = ::core::primitive::u64; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } } - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Call { - #[codec(index = 0)] - propose { - proposal_hash: ::subxt::sp_core::H256, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 1)] - second { - #[codec(compact)] - proposal: ::core::primitive::u32, - #[codec(compact)] - seconds_upper_bound: ::core::primitive::u32, - }, - #[codec(index = 2)] - vote { - #[codec(compact)] - ref_index: ::core::primitive::u32, - vote: runtime_types::pallet_democracy::vote::AccountVote< - ::core::primitive::u128, - >, - }, - #[codec(index = 3)] - emergency_cancel { ref_index: ::core::primitive::u32 }, - #[codec(index = 4)] - external_propose { - proposal_hash: ::subxt::sp_core::H256, - }, - #[codec(index = 5)] - external_propose_majority { - proposal_hash: ::subxt::sp_core::H256, - }, - #[codec(index = 6)] - external_propose_default { - proposal_hash: ::subxt::sp_core::H256, - }, - #[codec(index = 7)] - fast_track { - proposal_hash: ::subxt::sp_core::H256, - voting_period: ::core::primitive::u32, - delay: ::core::primitive::u32, - }, - #[codec(index = 8)] - veto_external { - proposal_hash: ::subxt::sp_core::H256, - }, - #[codec(index = 9)] - cancel_referendum { - #[codec(compact)] - ref_index: ::core::primitive::u32, - }, - #[codec(index = 10)] - cancel_queued { which: ::core::primitive::u32 }, - #[codec(index = 11)] - delegate { - to: ::subxt::sp_core::crypto::AccountId32, - conviction: - runtime_types::pallet_democracy::conviction::Conviction, - balance: ::core::primitive::u128, - }, - #[codec(index = 12)] - undelegate, - #[codec(index = 13)] - clear_public_proposals, - #[codec(index = 14)] - note_preimage { - encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 15)] - note_preimage_operational { - encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 16)] - note_imminent_preimage { - encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 17)] - note_imminent_preimage_operational { - encoded_proposal: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 18)] - reap_preimage { - proposal_hash: ::subxt::sp_core::H256, - #[codec(compact)] - proposal_len_upper_bound: ::core::primitive::u32, - }, - #[codec(index = 19)] - unlock { - target: ::subxt::sp_core::crypto::AccountId32, - }, - #[codec(index = 20)] - remove_vote { index: ::core::primitive::u32 }, - #[codec(index = 21)] - remove_other_vote { - target: ::subxt::sp_core::crypto::AccountId32, - index: ::core::primitive::u32, - }, - #[codec(index = 22)] - enact_proposal { - proposal_hash: ::subxt::sp_core::H256, - index: ::core::primitive::u32, - }, - #[codec(index = 23)] - blacklist { - proposal_hash: ::subxt::sp_core::H256, - maybe_ref_index: ::core::option::Option<::core::primitive::u32>, - }, - #[codec(index = 24)] - cancel_proposal { - #[codec(compact)] - prop_index: ::core::primitive::u32, - }, + pub struct Queries<'a>(pub &'a ::core::primitive::u64); + impl ::subxt::StorageEntry for Queries<'_> { + const PALLET: &'static str = "XcmPallet"; + const STORAGE: &'static str = "Queries"; + type Value = runtime_types::pallet_xcm::pallet::QueryStatus< + ::core::primitive::u32, + >; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Blake2_128Concat, + )]) } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Error { - #[codec(index = 0)] - ValueLow, - #[codec(index = 1)] - ProposalMissing, - #[codec(index = 2)] - AlreadyCanceled, - #[codec(index = 3)] - DuplicateProposal, - #[codec(index = 4)] - ProposalBlacklisted, - #[codec(index = 5)] - NotSimpleMajority, - #[codec(index = 6)] - InvalidHash, - #[codec(index = 7)] - NoProposal, - #[codec(index = 8)] - AlreadyVetoed, - #[codec(index = 9)] - DuplicatePreimage, - #[codec(index = 10)] - NotImminent, - #[codec(index = 11)] - TooEarly, - #[codec(index = 12)] - Imminent, - #[codec(index = 13)] - PreimageMissing, - #[codec(index = 14)] - ReferendumInvalid, - #[codec(index = 15)] - PreimageInvalid, - #[codec(index = 16)] - NoneWaiting, - #[codec(index = 17)] - NotVoter, - #[codec(index = 18)] - NoPermission, - #[codec(index = 19)] - AlreadyDelegating, - #[codec(index = 20)] - InsufficientFunds, - #[codec(index = 21)] - NotDelegating, - #[codec(index = 22)] - VotesExist, - #[codec(index = 23)] - InstantNotAllowed, - #[codec(index = 24)] - Nonsense, - #[codec(index = 25)] - WrongUpperBound, - #[codec(index = 26)] - MaxVotesReached, - #[codec(index = 27)] - TooManyProposals, + } + pub struct AssetTraps<'a>(pub &'a ::subxt::sp_core::H256); + impl ::subxt::StorageEntry for AssetTraps<'_> { + const PALLET: &'static str = "XcmPallet"; + const STORAGE: &'static str = "AssetTraps"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Identity, + )]) + } + } + pub struct SafeXcmVersion; + impl ::subxt::StorageEntry for SafeXcmVersion { + const PALLET: &'static str = "XcmPallet"; + const STORAGE: &'static str = "SafeXcmVersion"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain + } + } + pub struct SupportedVersion<'a>( + pub &'a ::core::primitive::u32, + pub &'a runtime_types::xcm::VersionedMultiLocation, + ); + impl ::subxt::StorageEntry for SupportedVersion<'_> { + const PALLET: &'static str = "XcmPallet"; + const STORAGE: &'static str = "SupportedVersion"; + type Value = ::core::primitive::u32; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ]) + } + } + pub struct VersionNotifiers<'a>( + pub &'a ::core::primitive::u32, + pub &'a runtime_types::xcm::VersionedMultiLocation, + ); + impl ::subxt::StorageEntry for VersionNotifiers<'_> { + const PALLET: &'static str = "XcmPallet"; + const STORAGE: &'static str = "VersionNotifiers"; + type Value = ::core::primitive::u64; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ]) + } + } + pub struct VersionNotifyTargets<'a>( + pub &'a ::core::primitive::u32, + pub &'a runtime_types::xcm::VersionedMultiLocation, + ); + impl ::subxt::StorageEntry for VersionNotifyTargets<'_> { + const PALLET: &'static str = "XcmPallet"; + const STORAGE: &'static str = "VersionNotifyTargets"; + type Value = ( + ::core::primitive::u64, + ::core::primitive::u64, + ::core::primitive::u32, + ); + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Map(vec![ + ::subxt::StorageMapKey::new( + &self.0, + ::subxt::StorageHasher::Twox64Concat, + ), + ::subxt::StorageMapKey::new( + &self.1, + ::subxt::StorageHasher::Blake2_128Concat, + ), + ]) + } + } + pub struct VersionDiscoveryQueue; + impl ::subxt::StorageEntry for VersionDiscoveryQueue { + const PALLET: &'static str = "XcmPallet"; + const STORAGE: &'static str = "VersionDiscoveryQueue"; + type Value = + runtime_types::frame_support::storage::bounded_vec::BoundedVec<( + runtime_types::xcm::VersionedMultiLocation, + ::core::primitive::u32, + )>; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Event { - # [codec (index = 0)] Proposed { proposal_index : :: core :: primitive :: u32 , deposit : :: core :: primitive :: u128 , } , # [codec (index = 1)] Tabled { proposal_index : :: core :: primitive :: u32 , deposit : :: core :: primitive :: u128 , depositors : :: std :: vec :: Vec < :: subxt :: sp_core :: crypto :: AccountId32 > , } , # [codec (index = 2)] ExternalTabled , # [codec (index = 3)] Started { ref_index : :: core :: primitive :: u32 , threshold : runtime_types :: pallet_democracy :: vote_threshold :: VoteThreshold , } , # [codec (index = 4)] Passed { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] NotPassed { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 6)] Cancelled { ref_index : :: core :: primitive :: u32 , } , # [codec (index = 7)] Executed { ref_index : :: core :: primitive :: u32 , result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , # [codec (index = 8)] Delegated { who : :: subxt :: sp_core :: crypto :: AccountId32 , target : :: subxt :: sp_core :: crypto :: AccountId32 , } , # [codec (index = 9)] Undelegated { account : :: subxt :: sp_core :: crypto :: AccountId32 , } , # [codec (index = 10)] Vetoed { who : :: subxt :: sp_core :: crypto :: AccountId32 , proposal_hash : :: subxt :: sp_core :: H256 , until : :: core :: primitive :: u32 , } , # [codec (index = 11)] PreimageNoted { proposal_hash : :: subxt :: sp_core :: H256 , who : :: subxt :: sp_core :: crypto :: AccountId32 , deposit : :: core :: primitive :: u128 , } , # [codec (index = 12)] PreimageUsed { proposal_hash : :: subxt :: sp_core :: H256 , provider : :: subxt :: sp_core :: crypto :: AccountId32 , deposit : :: core :: primitive :: u128 , } , # [codec (index = 13)] PreimageInvalid { proposal_hash : :: subxt :: sp_core :: H256 , ref_index : :: core :: primitive :: u32 , } , # [codec (index = 14)] PreimageMissing { proposal_hash : :: subxt :: sp_core :: H256 , ref_index : :: core :: primitive :: u32 , } , # [codec (index = 15)] 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)] Blacklisted { proposal_hash : :: subxt :: sp_core :: H256 , } , # [codec (index = 17)] 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)] Seconded { seconder : :: subxt :: sp_core :: crypto :: AccountId32 , prop_index : :: core :: primitive :: u32 , } , } } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct Delegations<_0> { - pub votes: _0, - pub capital: _0, + pub struct CurrentMigration; + impl ::subxt::StorageEntry for CurrentMigration { + const PALLET: &'static str = "XcmPallet"; + const STORAGE: &'static str = "CurrentMigration"; + type Value = runtime_types::pallet_xcm::pallet::VersionMigrationStage; + fn key(&self) -> ::subxt::StorageEntryKey { + ::subxt::StorageEntryKey::Plain } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum ReferendumInfo<_0, _1, _2> { - #[codec(index = 0)] - Ongoing( - runtime_types::pallet_democracy::types::ReferendumStatus< - _0, - _1, - _2, + } + pub struct StorageApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> StorageApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } + pub async fn query_counter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> + { + let entry = QueryCounter; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn queries( + &self, + _0: &::core::primitive::u64, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::pallet_xcm::pallet::QueryStatus< + ::core::primitive::u32, >, - ), - #[codec(index = 1)] - Finished { - approved: ::core::primitive::bool, - end: _0, - }, + >, + ::subxt::BasicError, + > { + let entry = Queries(_0); + self.client.storage().fetch(&entry, hash).await } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct ReferendumStatus<_0, _1, _2> { - pub end: _0, - pub proposal_hash: _1, - pub threshold: - runtime_types::pallet_democracy::vote_threshold::VoteThreshold, - pub delay: _0, - pub tally: runtime_types::pallet_democracy::types::Tally<_2>, + pub async fn queries_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, Queries<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct Tally<_0> { - pub ayes: _0, - pub nays: _0, - pub turnout: _0, + pub async fn asset_traps( + &self, + _0: &::subxt::sp_core::H256, + hash: ::core::option::Option, + ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> + { + let entry = AssetTraps(_0); + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn asset_traps_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, AssetTraps<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn safe_xcm_version( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::core::primitive::u32>, + ::subxt::BasicError, + > { + let entry = SafeXcmVersion; + self.client.storage().fetch(&entry, hash).await + } + pub async fn supported_version( + &self, + _0: &::core::primitive::u32, + _1: &runtime_types::xcm::VersionedMultiLocation, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::core::primitive::u32>, + ::subxt::BasicError, + > { + let entry = SupportedVersion(_0, _1); + self.client.storage().fetch(&entry, hash).await + } + pub async fn supported_version_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, SupportedVersion<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn version_notifiers( + &self, + _0: &::core::primitive::u32, + _1: &runtime_types::xcm::VersionedMultiLocation, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<::core::primitive::u64>, + ::subxt::BasicError, + > { + let entry = VersionNotifiers(_0, _1); + self.client.storage().fetch(&entry, hash).await + } + pub async fn version_notifiers_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, VersionNotifiers<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn version_notify_targets( + &self, + _0: &::core::primitive::u32, + _1: &runtime_types::xcm::VersionedMultiLocation, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u64, + ::core::primitive::u32, + )>, + ::subxt::BasicError, + > { + let entry = VersionNotifyTargets(_0, _1); + self.client.storage().fetch(&entry, hash).await + } + pub async fn version_notify_targets_iter( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::subxt::KeyIter<'a, T, VersionNotifyTargets<'a>>, + ::subxt::BasicError, + > { + self.client.storage().iter(hash).await + } + pub async fn version_discovery_queue( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + runtime_types::frame_support::storage::bounded_vec::BoundedVec<( + runtime_types::xcm::VersionedMultiLocation, + ::core::primitive::u32, + )>, + ::subxt::BasicError, + > { + let entry = VersionDiscoveryQueue; + self.client.storage().fetch_or_default(&entry, hash).await + } + pub async fn current_migration( + &self, + hash: ::core::option::Option, + ) -> ::core::result::Result< + ::core::option::Option< + runtime_types::pallet_xcm::pallet::VersionMigrationStage, + >, + ::subxt::BasicError, + > { + let entry = CurrentMigration; + self.client.storage().fetch(&entry, hash).await } } - pub mod vote { + } + } + pub mod runtime_types { + use super::runtime_types; + pub mod beefy_primitives { + use super::runtime_types; + pub mod crypto { use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum AccountVote<_0> { - #[codec(index = 0)] - Standard { - vote: runtime_types::pallet_democracy::vote::Vote, - balance: _0, - }, - #[codec(index = 1)] - Split { aye: _0, nay: _0 }, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct PriorLock<_0, _1>(pub _0, pub _1); - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct Vote(pub ::core::primitive::u8); - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Voting<_0, _1, _2> { - #[codec(index = 0)] - Direct { - votes: ::std::vec::Vec<( - _2, - runtime_types::pallet_democracy::vote::AccountVote<_0>, - )>, - delegations: - runtime_types::pallet_democracy::types::Delegations<_0>, - prior: runtime_types::pallet_democracy::vote::PriorLock<_2, _0>, - }, - #[codec(index = 1)] - Delegating { - balance: _0, - target: _1, - conviction: - runtime_types::pallet_democracy::conviction::Conviction, - delegations: - runtime_types::pallet_democracy::types::Delegations<_0>, - prior: runtime_types::pallet_democracy::vote::PriorLock<_2, _0>, - }, - } + pub struct Public(pub runtime_types::sp_core::ecdsa::Public); } - pub mod vote_threshold { + pub mod mmr { use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum VoteThreshold { - #[codec(index = 0)] - SuperMajorityApprove, - #[codec(index = 1)] - SuperMajorityAgainst, - #[codec(index = 2)] - SimpleMajority, + pub struct BeefyNextAuthoritySet<_0> { + pub id: ::core::primitive::u64, + pub len: ::core::primitive::u32, + pub root: _0, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum PreimageStatus<_0, _1, _2> { - #[codec(index = 0)] - Missing(_2), - #[codec(index = 1)] - Available { - data: ::std::vec::Vec<::core::primitive::u8>, - provider: _0, - deposit: _1, - since: _2, - expiry: ::core::option::Option<_2>, - }, - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum Releases { - #[codec(index = 0)] - V1, - } } - pub mod pallet_election_provider_multi_phase { + pub mod bitvec { use super::runtime_types; - pub mod pallet { + pub mod order { use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum Call { - # [codec (index = 0)] 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)] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] 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)] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: polkadot_runtime :: NposCompactSolution16 > > , } , # [codec (index = 4)] 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, - )] - pub enum Error { - #[codec(index = 0)] - PreDispatchEarlySubmission, - #[codec(index = 1)] - PreDispatchWrongWinnerCount, - #[codec(index = 2)] - PreDispatchWeakSubmission, - #[codec(index = 3)] - SignedQueueFull, - #[codec(index = 4)] - SignedCannotPayDeposit, - #[codec(index = 5)] - SignedInvalidWitness, - #[codec(index = 6)] - SignedTooMuchWeight, - #[codec(index = 7)] - OcwCallWrongEra, - #[codec(index = 8)] - MissingSnapshotMetadata, - #[codec(index = 9)] - InvalidSubmissionIndex, - #[codec(index = 10)] - CallNotAllowed, - #[codec(index = 11)] - FallbackFailed, - } + pub struct Lsb0; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum Event { - # [codec (index = 0)] SolutionStored { election_compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , prev_ejected : :: core :: primitive :: bool , } , # [codec (index = 1)] ElectionFinalized { election_compute : :: core :: option :: Option < runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute > , } , # [codec (index = 2)] Rewarded { account : :: subxt :: sp_core :: crypto :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 3)] Slashed { account : :: subxt :: sp_core :: crypto :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 4)] SignedPhaseStarted { round : :: core :: primitive :: u32 , } , # [codec (index = 5)] UnsignedPhaseStarted { round : :: core :: primitive :: u32 , } , } + pub struct Msb0; } - pub mod signed { + } + pub mod bp_header_chain { + use super::runtime_types; + pub mod justification { use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub struct SignedSubmission<_0, _1, _2> { - pub who: _0, - pub deposit: _1, - pub raw_solution: - runtime_types::pallet_election_provider_multi_phase::RawSolution< - _2, - >, - pub reward: _1, + pub struct GrandpaJustification<_0> { + pub round: ::core::primitive::u64, + pub commit: runtime_types::finality_grandpa::Commit< + ::subxt::sp_core::H256, + ::core::primitive::u32, + runtime_types::sp_finality_grandpa::app::Signature, + runtime_types::sp_finality_grandpa::app::Public, + >, + pub votes_ancestries: ::std::vec::Vec<_0>, } } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum ElectionCompute { - #[codec(index = 0)] - OnChain, - #[codec(index = 1)] - Signed, - #[codec(index = 2)] - Unsigned, - #[codec(index = 3)] - Fallback, - #[codec(index = 4)] - Emergency, + pub struct AuthoritySet { + pub authorities: ::std::vec::Vec<( + runtime_types::sp_finality_grandpa::app::Public, + ::core::primitive::u64, + )>, + pub set_id: ::core::primitive::u64, } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum Phase<_0> { + pub struct InitializationData<_0> { + pub header: ::std::boxed::Box<_0>, + pub authority_list: ::std::vec::Vec<( + runtime_types::sp_finality_grandpa::app::Public, + ::core::primitive::u64, + )>, + pub set_id: ::core::primitive::u64, + pub is_halted: ::core::primitive::bool, + } + } + pub mod bp_message_dispatch { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub enum CallOrigin<_0, _1, _2> { #[codec(index = 0)] - Off, + SourceRoot, #[codec(index = 1)] - Signed, + TargetAccount(_0, _1, _2), #[codec(index = 2)] - Unsigned((::core::primitive::bool, _0)), - #[codec(index = 3)] - Emergency, + SourceAccount(_0), } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct RawSolution<_0> { - pub solution: _0, - pub score: runtime_types::sp_npos_elections::ElectionScore, - pub round: ::core::primitive::u32, + pub struct MessagePayload<_0, _1, _2, _3> { + pub spec_version: ::core::primitive::u32, + pub weight: ::core::primitive::u64, + pub origin: runtime_types::bp_message_dispatch::CallOrigin<_0, _1, _2>, + pub dispatch_fee_payment: + runtime_types::bp_runtime::messages::DispatchFeePayment, + pub call: _3, } + } + pub mod bp_messages { + use super::runtime_types; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ReadySolution<_0> { - pub supports: - ::std::vec::Vec<(_0, runtime_types::sp_npos_elections::Support<_0>)>, - pub score: runtime_types::sp_npos_elections::ElectionScore, - pub compute: - runtime_types::pallet_election_provider_multi_phase::ElectionCompute, + pub struct DeliveredMessages { + pub begin: ::core::primitive::u64, + pub end: ::core::primitive::u64, + pub dispatch_results: ::subxt::bitvec::vec::BitVec< + ::core::primitive::u8, + ::subxt::bitvec::order::Msb0, + >, } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct RoundSnapshot { - pub voters: ::std::vec::Vec<( - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u64, - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::subxt::sp_core::crypto::AccountId32, - >, - )>, - pub targets: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + pub struct InboundLaneData<_0> { + pub relayers: + ::std::vec::Vec>, + pub last_confirmed_nonce: ::core::primitive::u64, } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SolutionOrSnapshotSize { - #[codec(compact)] - pub voters: ::core::primitive::u32, - #[codec(compact)] - pub targets: ::core::primitive::u32, + pub struct MessageData<_0> { + pub payload: ::std::vec::Vec<::core::primitive::u8>, + pub fee: _0, } - } - pub mod pallet_elections_phragmen { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Call { - #[codec(index = 0)] - vote { - votes: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 1)] - remove_voter, - #[codec(index = 2)] - submit_candidacy { - #[codec(compact)] - candidate_count: ::core::primitive::u32, - }, - #[codec(index = 3)] - renounce_candidacy { - renouncing: runtime_types::pallet_elections_phragmen::Renouncing, - }, - #[codec(index = 4)] - remove_member { - who: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - has_replacement: ::core::primitive::bool, - }, - #[codec(index = 5)] - clean_defunct_voters { - num_voters: ::core::primitive::u32, - num_defunct: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Error { - #[codec(index = 0)] - UnableToVote, - #[codec(index = 1)] - NoVotes, - #[codec(index = 2)] - TooManyVotes, - #[codec(index = 3)] - MaximumVotesExceeded, - #[codec(index = 4)] - LowBalance, - #[codec(index = 5)] - UnableToPayBond, - #[codec(index = 6)] - MustBeVoter, - #[codec(index = 7)] - ReportSelf, - #[codec(index = 8)] - DuplicatedCandidate, - #[codec(index = 9)] - MemberSubmit, - #[codec(index = 10)] - RunnerUpSubmit, - #[codec(index = 11)] - InsufficientCandidateFunds, - #[codec(index = 12)] - NotMember, - #[codec(index = 13)] - InvalidWitnessData, - #[codec(index = 14)] - InvalidVoteCount, - #[codec(index = 15)] - InvalidRenouncing, - #[codec(index = 16)] - InvalidReplacement, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Event { - #[codec(index = 0)] - NewTerm { - new_members: ::std::vec::Vec<( - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - )>, - }, - #[codec(index = 1)] - EmptyTerm, - #[codec(index = 2)] - ElectionError, - #[codec(index = 3)] - MemberKicked { - member: ::subxt::sp_core::crypto::AccountId32, - }, - #[codec(index = 4)] - Renounced { - candidate: ::subxt::sp_core::crypto::AccountId32, - }, - #[codec(index = 5)] - CandidateSlashed { - candidate: ::subxt::sp_core::crypto::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 6)] - SeatHolderSlashed { - seat_holder: ::subxt::sp_core::crypto::AccountId32, - amount: ::core::primitive::u128, - }, - } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct MessageKey { + pub lane_id: [::core::primitive::u8; 4usize], + pub nonce: ::core::primitive::u64, } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum Renouncing { + pub enum OperatingMode { #[codec(index = 0)] - Member, + Normal, #[codec(index = 1)] - RunnerUp, + RejectingOutboundMessages, #[codec(index = 2)] - Candidate(#[codec(compact)] ::core::primitive::u32), + Halted, } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SeatHolder<_0, _1> { - pub who: _0, - pub stake: _1, - pub deposit: _1, + pub struct OutboundLaneData { + pub oldest_unpruned_nonce: ::core::primitive::u64, + pub latest_received_nonce: ::core::primitive::u64, + pub latest_generated_nonce: ::core::primitive::u64, } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Voter<_0, _1> { - pub votes: ::std::vec::Vec<_0>, - pub stake: _1, - pub deposit: _1, - } - } - pub mod pallet_grandpa { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Call { - #[codec(index = 0)] - report_equivocation { - equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::sp_core::H256, - ::core::primitive::u32, - >, - >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - }, - #[codec(index = 1)] - report_equivocation_unsigned { - equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< - ::subxt::sp_core::H256, - ::core::primitive::u32, - >, - >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - }, - #[codec(index = 2)] - note_stalled { - delay: ::core::primitive::u32, - best_finalized_block_number: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Error { - #[codec(index = 0)] - PauseFailed, - #[codec(index = 1)] - ResumeFailed, - #[codec(index = 2)] - ChangePending, - #[codec(index = 3)] - TooSoon, - #[codec(index = 4)] - InvalidKeyOwnershipProof, - #[codec(index = 5)] - InvalidEquivocationProof, - #[codec(index = 6)] - DuplicateOffenceReport, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Event { - #[codec(index = 0)] - NewAuthorities { - authority_set: ::std::vec::Vec<( - runtime_types::sp_finality_grandpa::app::Public, - ::core::primitive::u64, - )>, - }, - #[codec(index = 1)] - Paused, - #[codec(index = 2)] - Resumed, - } + pub struct UnrewardedRelayer<_0> { + pub relayer: _0, + pub messages: runtime_types::bp_messages::DeliveredMessages, } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] - pub enum StoredState<_0> { - #[codec(index = 0)] - Live, - #[codec(index = 1)] - PendingPause { scheduled_at: _0, delay: _0 }, - #[codec(index = 2)] - Paused, - #[codec(index = 3)] - PendingResume { scheduled_at: _0, delay: _0 }, + pub struct UnrewardedRelayersState { + pub unrewarded_relayer_entries: ::core::primitive::u64, + pub messages_in_oldest_entry: ::core::primitive::u64, + pub total_messages: ::core::primitive::u64, } } - pub mod pallet_identity { + pub mod bp_runtime { use super::runtime_types; - pub mod pallet { + pub mod messages { use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum Call { + pub enum DispatchFeePayment { #[codec(index = 0)] - add_registrar { - account: ::subxt::sp_core::crypto::AccountId32, - }, + AtSourceChain, #[codec(index = 1)] - set_identity { - info: ::std::boxed::Box< - runtime_types::pallet_identity::types::IdentityInfo, - >, - }, - #[codec(index = 2)] - set_subs { - subs: ::std::vec::Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_identity::types::Data, - )>, - }, - #[codec(index = 3)] - clear_identity, - #[codec(index = 4)] - request_judgement { - #[codec(compact)] - reg_index: ::core::primitive::u32, - #[codec(compact)] - max_fee: ::core::primitive::u128, - }, - #[codec(index = 5)] - cancel_request { reg_index: ::core::primitive::u32 }, - #[codec(index = 6)] - set_fee { - #[codec(compact)] - index: ::core::primitive::u32, - #[codec(compact)] - fee: ::core::primitive::u128, - }, - #[codec(index = 7)] - set_account_id { - #[codec(compact)] - index: ::core::primitive::u32, - new: ::subxt::sp_core::crypto::AccountId32, - }, - #[codec(index = 8)] - set_fields { - #[codec(compact)] - index: ::core::primitive::u32, - fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, - }, - #[codec(index = 9)] - provide_judgement { - #[codec(compact)] - reg_index: ::core::primitive::u32, - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - judgement: runtime_types::pallet_identity::types::Judgement< - ::core::primitive::u128, - >, - }, - #[codec(index = 10)] - kill_identity { - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - }, - #[codec(index = 11)] - add_sub { - sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - data: runtime_types::pallet_identity::types::Data, - }, - #[codec(index = 12)] - rename_sub { - sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - data: runtime_types::pallet_identity::types::Data, - }, - #[codec(index = 13)] - remove_sub { - sub: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - }, - #[codec(index = 14)] - quit_sub, + AtTargetChain, } + } + } + pub mod bridge_runtime_common { + use super::runtime_types; + pub mod messages { + use super::runtime_types; + pub mod source { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub struct FromBridgedChainMessagesDeliveryProof<_0> { + pub bridged_header_hash: _0, + pub storage_proof: + ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + pub lane: [::core::primitive::u8; 4usize], + } + } + pub mod target { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub struct FromBridgedChainMessagesProof<_0> { + pub bridged_header_hash: _0, + pub storage_proof: + ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + pub lane: [::core::primitive::u8; 4usize], + pub nonces_start: ::core::primitive::u64, + pub nonces_end: ::core::primitive::u64, + } + } + } + } + pub mod finality_grandpa { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Commit<_0, _1, _2, _3> { + pub target_hash: _0, + pub target_number: _1, + pub precommits: ::std::vec::Vec< + runtime_types::finality_grandpa::SignedPrecommit<_0, _1, _2, _3>, + >, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] + pub struct Precommit<_0, _1> { + pub target_hash: _0, + pub target_number: _1, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Prevote<_0, _1> { + pub target_hash: _0, + pub target_number: _1, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SignedPrecommit<_0, _1, _2, _3> { + pub precommit: runtime_types::finality_grandpa::Precommit<_0, _1>, + pub signature: _2, + pub id: _3, + } + } + pub mod frame_support { + use super::runtime_types; + pub mod dispatch { + use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum Error { + pub enum RawOrigin<_0> { #[codec(index = 0)] - TooManySubAccounts, + Root, #[codec(index = 1)] - NotFound, + Signed(_0), #[codec(index = 2)] - NotNamed, - #[codec(index = 3)] - EmptyIndex, - #[codec(index = 4)] - FeeChanged, - #[codec(index = 5)] - NoIdentity, - #[codec(index = 6)] - StickyJudgement, - #[codec(index = 7)] - JudgementGiven, - #[codec(index = 8)] - InvalidJudgement, - #[codec(index = 9)] - InvalidIndex, - #[codec(index = 10)] - InvalidTarget, - #[codec(index = 11)] - TooManyFields, - #[codec(index = 12)] - TooManyRegistrars, - #[codec(index = 13)] - AlreadyClaimed, - #[codec(index = 14)] - NotSub, - #[codec(index = 15)] - NotOwned, + None, + } + } + pub mod storage { + use super::runtime_types; + pub mod bounded_vec { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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, + )] + pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); + } + } + pub mod traits { + use super::runtime_types; + pub mod misc { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub struct WrapperKeepOpaque<_0>( + #[codec(compact)] pub ::core::primitive::u32, + pub _0, + ); + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub struct WrapperOpaque<_0>( + #[codec(compact)] pub ::core::primitive::u32, + pub _0, + ); + } + pub mod tokens { + use super::runtime_types; + pub mod misc { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, + :: subxt :: codec :: Decode, + Debug, + )] + pub enum BalanceStatus { + #[codec(index = 0)] + Free, + #[codec(index = 1)] + Reserved, + } + } } + } + pub mod weights { + use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum Event { + pub enum DispatchClass { #[codec(index = 0)] - IdentitySet { - who: ::subxt::sp_core::crypto::AccountId32, - }, + Normal, #[codec(index = 1)] - IdentityCleared { - who: ::subxt::sp_core::crypto::AccountId32, - deposit: ::core::primitive::u128, - }, + Operational, #[codec(index = 2)] - IdentityKilled { - who: ::subxt::sp_core::crypto::AccountId32, - deposit: ::core::primitive::u128, - }, - #[codec(index = 3)] - JudgementRequested { - who: ::subxt::sp_core::crypto::AccountId32, - registrar_index: ::core::primitive::u32, - }, - #[codec(index = 4)] - JudgementUnrequested { - who: ::subxt::sp_core::crypto::AccountId32, - registrar_index: ::core::primitive::u32, - }, - #[codec(index = 5)] - JudgementGiven { - target: ::subxt::sp_core::crypto::AccountId32, - registrar_index: ::core::primitive::u32, - }, - #[codec(index = 6)] - RegistrarAdded { - registrar_index: ::core::primitive::u32, - }, - #[codec(index = 7)] - SubIdentityAdded { - sub: ::subxt::sp_core::crypto::AccountId32, - main: ::subxt::sp_core::crypto::AccountId32, - deposit: ::core::primitive::u128, - }, - #[codec(index = 8)] - SubIdentityRemoved { - sub: ::subxt::sp_core::crypto::AccountId32, - main: ::subxt::sp_core::crypto::AccountId32, - deposit: ::core::primitive::u128, - }, - #[codec(index = 9)] - SubIdentityRevoked { - sub: ::subxt::sp_core::crypto::AccountId32, - main: ::subxt::sp_core::crypto::AccountId32, - deposit: ::core::primitive::u128, - }, + Mandatory, } - } - pub mod types { - use super::runtime_types; #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub struct BitFlags<_0>( - pub ::core::primitive::u64, - #[codec(skip)] pub ::core::marker::PhantomData<_0>, - ); + pub struct DispatchInfo { + pub weight: ::core::primitive::u64, + pub class: runtime_types::frame_support::weights::DispatchClass, + pub pays_fee: runtime_types::frame_support::weights::Pays, + } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum Data { + pub enum Pays { #[codec(index = 0)] - None, + Yes, #[codec(index = 1)] - Raw0([::core::primitive::u8; 0usize]), - #[codec(index = 2)] - Raw1([::core::primitive::u8; 1usize]), - #[codec(index = 3)] - Raw2([::core::primitive::u8; 2usize]), - #[codec(index = 4)] - Raw3([::core::primitive::u8; 3usize]), - #[codec(index = 5)] - Raw4([::core::primitive::u8; 4usize]), - #[codec(index = 6)] - Raw5([::core::primitive::u8; 5usize]), - #[codec(index = 7)] - Raw6([::core::primitive::u8; 6usize]), - #[codec(index = 8)] - Raw7([::core::primitive::u8; 7usize]), - #[codec(index = 9)] - Raw8([::core::primitive::u8; 8usize]), - #[codec(index = 10)] - Raw9([::core::primitive::u8; 9usize]), - #[codec(index = 11)] - Raw10([::core::primitive::u8; 10usize]), - #[codec(index = 12)] - Raw11([::core::primitive::u8; 11usize]), - #[codec(index = 13)] - Raw12([::core::primitive::u8; 12usize]), - #[codec(index = 14)] - Raw13([::core::primitive::u8; 13usize]), - #[codec(index = 15)] - Raw14([::core::primitive::u8; 14usize]), - #[codec(index = 16)] - Raw15([::core::primitive::u8; 15usize]), - #[codec(index = 17)] - Raw16([::core::primitive::u8; 16usize]), - #[codec(index = 18)] - Raw17([::core::primitive::u8; 17usize]), - #[codec(index = 19)] - Raw18([::core::primitive::u8; 18usize]), - #[codec(index = 20)] - Raw19([::core::primitive::u8; 19usize]), - #[codec(index = 21)] - Raw20([::core::primitive::u8; 20usize]), - #[codec(index = 22)] - Raw21([::core::primitive::u8; 21usize]), - #[codec(index = 23)] - Raw22([::core::primitive::u8; 22usize]), - #[codec(index = 24)] - Raw23([::core::primitive::u8; 23usize]), - #[codec(index = 25)] - Raw24([::core::primitive::u8; 24usize]), - #[codec(index = 26)] - Raw25([::core::primitive::u8; 25usize]), - #[codec(index = 27)] - Raw26([::core::primitive::u8; 26usize]), - #[codec(index = 28)] - Raw27([::core::primitive::u8; 27usize]), - #[codec(index = 29)] - Raw28([::core::primitive::u8; 28usize]), - #[codec(index = 30)] - Raw29([::core::primitive::u8; 29usize]), - #[codec(index = 31)] - Raw30([::core::primitive::u8; 30usize]), - #[codec(index = 32)] - Raw31([::core::primitive::u8; 31usize]), - #[codec(index = 33)] - Raw32([::core::primitive::u8; 32usize]), - #[codec(index = 34)] - BlakeTwo256([::core::primitive::u8; 32usize]), - #[codec(index = 35)] - Sha256([::core::primitive::u8; 32usize]), - #[codec(index = 36)] - Keccak256([::core::primitive::u8; 32usize]), - #[codec(index = 37)] - ShaThree256([::core::primitive::u8; 32usize]), + No, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum IdentityField { - #[codec(index = 1)] - Display, - #[codec(index = 2)] - Legal, - #[codec(index = 4)] - Web, - #[codec(index = 8)] - Riot, - #[codec(index = 16)] - Email, - #[codec(index = 32)] - PgpFingerprint, - #[codec(index = 64)] - Image, - #[codec(index = 128)] - Twitter, + pub struct PerDispatchClass<_0> { + pub normal: _0, + pub operational: _0, + pub mandatory: _0, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub struct IdentityInfo { - pub additional: - runtime_types::frame_support::storage::bounded_vec::BoundedVec<( - runtime_types::pallet_identity::types::Data, - runtime_types::pallet_identity::types::Data, - )>, - pub display: runtime_types::pallet_identity::types::Data, - pub legal: runtime_types::pallet_identity::types::Data, - pub web: runtime_types::pallet_identity::types::Data, - pub riot: runtime_types::pallet_identity::types::Data, - pub email: runtime_types::pallet_identity::types::Data, - pub pgp_fingerprint: - ::core::option::Option<[::core::primitive::u8; 20usize]>, - pub image: runtime_types::pallet_identity::types::Data, - pub twitter: runtime_types::pallet_identity::types::Data, + pub struct RuntimeDbWeight { + pub read: ::core::primitive::u64, + pub write: ::core::primitive::u64, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum Judgement<_0> { - #[codec(index = 0)] - Unknown, - #[codec(index = 1)] - FeePaid(_0), - #[codec(index = 2)] - Reasonable, - #[codec(index = 3)] - KnownGood, - #[codec(index = 4)] - OutOfDate, - #[codec(index = 5)] - LowQuality, - #[codec(index = 6)] - Erroneous, + pub struct WeightToFeeCoefficient<_0> { + pub coeff_integer: _0, + pub coeff_frac: runtime_types::sp_arithmetic::per_things::Perbill, + pub negative: ::core::primitive::bool, + pub degree: ::core::primitive::u8, + } + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct PalletId(pub [::core::primitive::u8; 8usize]); + } + pub mod frame_system { + use super::runtime_types; + pub mod extensions { + use super::runtime_types; + pub mod check_genesis { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub struct CheckGenesis; + } + pub mod check_mortality { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub struct CheckMortality( + pub runtime_types::sp_runtime::generic::era::Era, + ); + } + pub mod check_non_zero_sender { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub struct CheckNonZeroSender; + } + pub mod check_nonce { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32); } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct RegistrarInfo<_0, _1> { - pub account: _1, - pub fee: _0, - pub fields: runtime_types::pallet_identity::types::BitFlags< - runtime_types::pallet_identity::types::IdentityField, - >, + pub mod check_spec_version { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub struct CheckSpecVersion; } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct Registration<_0> { - pub judgements: - runtime_types::frame_support::storage::bounded_vec::BoundedVec<( - ::core::primitive::u32, - runtime_types::pallet_identity::types::Judgement<_0>, - )>, - pub deposit: _0, - pub info: runtime_types::pallet_identity::types::IdentityInfo, + pub mod check_tx_version { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub struct CheckTxVersion; + } + pub mod check_weight { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub struct CheckWeight; } } - } - pub mod pallet_im_online { - use super::runtime_types; - pub mod pallet { + pub mod limits { use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum Call { - # [codec (index = 0)] heartbeat { heartbeat : runtime_types :: pallet_im_online :: Heartbeat < :: core :: primitive :: u32 > , signature : runtime_types :: pallet_im_online :: sr25519 :: app_sr25519 :: Signature , } , } + pub struct BlockLength { + pub max: runtime_types::frame_support::weights::PerDispatchClass< + ::core::primitive::u32, + >, + } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum Error { - #[codec(index = 0)] - InvalidKey, - #[codec(index = 1)] - DuplicatedHeartbeat, + pub struct BlockWeights { + pub base_block: ::core::primitive::u64, + pub max_block: ::core::primitive::u64, + pub per_class: + runtime_types::frame_support::weights::PerDispatchClass< + runtime_types::frame_system::limits::WeightsPerClass, + >, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum Event { - #[codec(index = 0)] - HeartbeatReceived { - authority_id: - runtime_types::pallet_im_online::sr25519::app_sr25519::Public, - }, - #[codec(index = 1)] - AllGood, - #[codec(index = 2)] - SomeOffline { - offline: ::std::vec::Vec<( - ::subxt::sp_core::crypto::AccountId32, - runtime_types::pallet_staking::Exposure< - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - >, - )>, - }, - } - } - pub mod sr25519 { - use super::runtime_types; - pub mod app_sr25519 { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); + pub struct WeightsPerClass { + pub base_extrinsic: ::core::primitive::u64, + pub max_extrinsic: ::core::option::Option<::core::primitive::u64>, + pub max_total: ::core::option::Option<::core::primitive::u64>, + pub reserved: ::core::option::Option<::core::primitive::u64>, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] - pub struct Heartbeat<_0> { - pub block_number: _0, - pub network_state: runtime_types::sp_core::offchain::OpaqueNetworkState, - pub session_index: _0, - pub authority_index: _0, - pub validators_len: _0, - } - } - pub mod pallet_indices { - use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( @@ -22781,58 +15012,124 @@ pub mod api { )] pub enum Call { #[codec(index = 0)] - claim { index: ::core::primitive::u32 }, + fill_block { + ratio: runtime_types::sp_arithmetic::per_things::Perbill, + }, #[codec(index = 1)] - transfer { - new: ::subxt::sp_core::crypto::AccountId32, - index: ::core::primitive::u32, + remark { + remark: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 2)] - free { index: ::core::primitive::u32 }, + set_heap_pages { pages: ::core::primitive::u64 }, #[codec(index = 3)] - force_transfer { - new: ::subxt::sp_core::crypto::AccountId32, - index: ::core::primitive::u32, - freeze: ::core::primitive::bool, + set_code { + code: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 4)] - freeze { index: ::core::primitive::u32 }, + set_code_without_checks { + code: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 5)] + set_storage { + items: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, + }, + #[codec(index = 6)] + kill_storage { + keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + }, + #[codec(index = 7)] + kill_prefix { + prefix: ::std::vec::Vec<::core::primitive::u8>, + subkeys: ::core::primitive::u32, + }, + #[codec(index = 8)] + remark_with_event { + remark: ::std::vec::Vec<::core::primitive::u8>, + }, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Error { #[codec(index = 0)] - NotAssigned, + InvalidSpecName, #[codec(index = 1)] - NotOwner, + SpecVersionNeedsToIncrease, #[codec(index = 2)] - InUse, + FailedToExtractRuntimeVersion, #[codec(index = 3)] - NotTransfer, + NonDefaultComposite, #[codec(index = 4)] - Permanent, + NonZeroRefCount, + #[codec(index = 5)] + CallFiltered, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Event { #[codec(index = 0)] - IndexAssigned { - who: ::subxt::sp_core::crypto::AccountId32, - index: ::core::primitive::u32, + ExtrinsicSuccess { + dispatch_info: + runtime_types::frame_support::weights::DispatchInfo, }, #[codec(index = 1)] - IndexFreed { index: ::core::primitive::u32 }, + ExtrinsicFailed { + dispatch_error: runtime_types::sp_runtime::DispatchError, + dispatch_info: + runtime_types::frame_support::weights::DispatchInfo, + }, #[codec(index = 2)] - IndexFrozen { - index: ::core::primitive::u32, - who: ::subxt::sp_core::crypto::AccountId32, + CodeUpdated, + #[codec(index = 3)] + NewAccount { + account: ::subxt::sp_core::crypto::AccountId32, + }, + #[codec(index = 4)] + KilledAccount { + account: ::subxt::sp_core::crypto::AccountId32, + }, + #[codec(index = 5)] + Remarked { + sender: ::subxt::sp_core::crypto::AccountId32, + hash: ::subxt::sp_core::H256, }, } } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct AccountInfo<_0, _1> { + pub nonce: _0, + pub consumers: _0, + pub providers: _0, + pub sufficients: _0, + pub data: _1, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] + 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)] + pub enum Phase { + #[codec(index = 0)] + ApplyExtrinsic(::core::primitive::u32), + #[codec(index = 1)] + Finalization, + #[codec(index = 2)] + Initialization, + } } - pub mod pallet_membership { + pub mod pallet_authorship { use super::runtime_types; pub mod pallet { use super::runtime_types; @@ -22841,62 +15138,66 @@ pub mod api { )] pub enum Call { #[codec(index = 0)] - add_member { - who: ::subxt::sp_core::crypto::AccountId32, + set_uncles { + new_uncles: ::std::vec::Vec< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, }, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Error { + #[codec(index = 0)] + InvalidUncleParent, #[codec(index = 1)] - remove_member { - who: ::subxt::sp_core::crypto::AccountId32, - }, + UnclesAlreadySet, #[codec(index = 2)] - swap_member { - remove: ::subxt::sp_core::crypto::AccountId32, - add: ::subxt::sp_core::crypto::AccountId32, - }, + TooManyUncles, #[codec(index = 3)] - reset_members { - members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - }, + GenesisUncle, #[codec(index = 4)] - change_key { - new: ::subxt::sp_core::crypto::AccountId32, - }, + TooHighUncle, #[codec(index = 5)] - set_prime { - who: ::subxt::sp_core::crypto::AccountId32, - }, + UncleAlreadyIncluded, #[codec(index = 6)] - clear_prime, + OldUncle, } + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub enum UncleEntryItem<_0, _1, _2> { + #[codec(index = 0)] + InclusionHeight(_0), + #[codec(index = 1)] + Uncle(_1, ::core::option::Option<_2>), + } + } + pub mod pallet_babe { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum Error { - #[codec(index = 0)] - AlreadyMember, - #[codec(index = 1)] - NotMember, - } + pub enum Call { + # [codec (index = 0)] 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)] 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)] plan_config_change { config : runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor , } , } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum Event { + pub enum Error { #[codec(index = 0)] - MemberAdded, + InvalidEquivocationProof, #[codec(index = 1)] - MemberRemoved, + InvalidKeyOwnershipProof, #[codec(index = 2)] - MembersSwapped, - #[codec(index = 3)] - MembersReset, - #[codec(index = 4)] - KeyChanged, - #[codec(index = 5)] - Dummy, + DuplicateOffenceReport, } } } - pub mod pallet_multisig { + pub mod pallet_balances { use super::runtime_types; pub mod pallet { use super::runtime_types; @@ -22905,49 +15206,62 @@ pub mod api { )] pub enum Call { #[codec(index = 0)] - as_multi_threshold_1 { - other_signatories: - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - call: ::std::boxed::Box, + transfer { + dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + #[codec(compact)] + value: ::core::primitive::u128, }, #[codec(index = 1)] - as_multi { - threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u32, - >, - >, - call: ::subxt::WrapperKeepOpaque< - runtime_types::polkadot_runtime::Call, + set_balance { + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), >, - store_call: ::core::primitive::bool, - max_weight: ::core::primitive::u64, + #[codec(compact)] + new_free: ::core::primitive::u128, + #[codec(compact)] + new_reserved: ::core::primitive::u128, }, #[codec(index = 2)] - approve_as_multi { - threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - maybe_timepoint: ::core::option::Option< - runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u32, - >, + force_transfer { + source: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), >, - call_hash: [::core::primitive::u8; 32usize], - max_weight: ::core::primitive::u64, + dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + #[codec(compact)] + value: ::core::primitive::u128, }, #[codec(index = 3)] - cancel_as_multi { - threshold: ::core::primitive::u16, - other_signatories: - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u32, + transfer_keep_alive { + dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), >, - call_hash: [::core::primitive::u8; 32usize], + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 4)] + transfer_all { + dest: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + keep_alive: ::core::primitive::bool, + }, + #[codec(index = 5)] + force_unreserve { + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, + amount: ::core::primitive::u128, }, } #[derive( @@ -22955,107 +15269,173 @@ pub mod api { )] pub enum Error { #[codec(index = 0)] - MinimumThreshold, + VestingBalance, #[codec(index = 1)] - AlreadyApproved, + LiquidityRestrictions, #[codec(index = 2)] - NoApprovalsNeeded, + InsufficientBalance, #[codec(index = 3)] - TooFewSignatories, + ExistentialDeposit, #[codec(index = 4)] - TooManySignatories, + KeepAlive, #[codec(index = 5)] - SignatoriesOutOfOrder, + ExistingVestingSchedule, #[codec(index = 6)] - SenderInSignatories, + DeadAccount, #[codec(index = 7)] - NotFound, - #[codec(index = 8)] - NotOwner, - #[codec(index = 9)] - NoTimepoint, - #[codec(index = 10)] - WrongTimepoint, - #[codec(index = 11)] - UnexpectedTimepoint, - #[codec(index = 12)] - MaxWeightTooLow, - #[codec(index = 13)] - AlreadyStored, + TooManyReserves, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] + pub enum Event { + # [codec (index = 0)] Endowed { account : :: subxt :: sp_core :: crypto :: AccountId32 , free_balance : :: core :: primitive :: u128 , } , # [codec (index = 1)] DustLost { account : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] Transfer { from : :: subxt :: sp_core :: crypto :: AccountId32 , to : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] BalanceSet { who : :: subxt :: sp_core :: crypto :: AccountId32 , free : :: core :: primitive :: u128 , reserved : :: core :: primitive :: u128 , } , # [codec (index = 4)] Reserved { who : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] Unreserved { who : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 6)] 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)] Deposit { who : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 8)] Withdraw { who : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] Slashed { who : :: subxt :: sp_core :: crypto :: AccountId32 , amount : :: core :: primitive :: u128 , } , } + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] + 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)] + pub enum Reasons { + #[codec(index = 0)] + Fee, + #[codec(index = 1)] + Misc, + #[codec(index = 2)] + All, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub enum Releases { + #[codec(index = 0)] + V1_0_0, + #[codec(index = 1)] + V2_0_0, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ReserveData<_0, _1> { + pub id: _0, + pub amount: _1, + } + } + pub mod pallet_beefy { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Call {} + } + } + pub mod pallet_bridge_dispatch { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] pub enum Event { #[codec(index = 0)] - NewMultisig { - approving: ::subxt::sp_core::crypto::AccountId32, - multisig: ::subxt::sp_core::crypto::AccountId32, - call_hash: [::core::primitive::u8; 32usize], - }, + MessageRejected( + [::core::primitive::u8; 4usize], + ([::core::primitive::u8; 4usize], ::core::primitive::u64), + ), #[codec(index = 1)] - MultisigApproval { - approving: ::subxt::sp_core::crypto::AccountId32, - timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u32, - >, - multisig: ::subxt::sp_core::crypto::AccountId32, - call_hash: [::core::primitive::u8; 32usize], - }, + MessageVersionSpecMismatch( + [::core::primitive::u8; 4usize], + ([::core::primitive::u8; 4usize], ::core::primitive::u64), + ::core::primitive::u32, + ::core::primitive::u32, + ), #[codec(index = 2)] - MultisigExecuted { - approving: ::subxt::sp_core::crypto::AccountId32, - timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u32, - >, - multisig: ::subxt::sp_core::crypto::AccountId32, - call_hash: [::core::primitive::u8; 32usize], - result: ::core::result::Result< + MessageWeightMismatch( + [::core::primitive::u8; 4usize], + ([::core::primitive::u8; 4usize], ::core::primitive::u64), + ::core::primitive::u64, + ::core::primitive::u64, + ), + #[codec(index = 3)] + MessageSignatureMismatch( + [::core::primitive::u8; 4usize], + ([::core::primitive::u8; 4usize], ::core::primitive::u64), + ), + #[codec(index = 4)] + MessageCallDecodeFailed( + [::core::primitive::u8; 4usize], + ([::core::primitive::u8; 4usize], ::core::primitive::u64), + ), + #[codec(index = 5)] + MessageCallRejected( + [::core::primitive::u8; 4usize], + ([::core::primitive::u8; 4usize], ::core::primitive::u64), + ), + #[codec(index = 6)] + MessageDispatchPaymentFailed( + [::core::primitive::u8; 4usize], + ([::core::primitive::u8; 4usize], ::core::primitive::u64), + ::subxt::sp_core::crypto::AccountId32, + ::core::primitive::u64, + ), + #[codec(index = 7)] + MessageDispatched( + [::core::primitive::u8; 4usize], + ([::core::primitive::u8; 4usize], ::core::primitive::u64), + ::core::result::Result< (), runtime_types::sp_runtime::DispatchError, >, - }, - #[codec(index = 3)] - MultisigCancelled { - cancelling: ::subxt::sp_core::crypto::AccountId32, - timepoint: runtime_types::pallet_multisig::Timepoint< - ::core::primitive::u32, - >, - multisig: ::subxt::sp_core::crypto::AccountId32, - call_hash: [::core::primitive::u8; 32usize], - }, + ), + #[codec(index = 8)] + _Dummy, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] - pub struct Timepoint<_0> { - pub height: _0, - pub index: _0, - } } - pub mod pallet_offences { + pub mod pallet_bridge_grandpa { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum Event { + pub enum Call { + # [codec (index = 0)] submit_finality_proof { finality_target : :: std :: boxed :: Box < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > > , justification : runtime_types :: bp_header_chain :: justification :: GrandpaJustification < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > > , } , # [codec (index = 1)] initialize { init_data : runtime_types :: bp_header_chain :: InitializationData < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > > , } , # [codec (index = 2)] set_owner { new_owner : :: core :: option :: Option < :: subxt :: sp_core :: crypto :: AccountId32 > , } , # [codec (index = 3)] set_operational { operational : :: core :: primitive :: bool , } , } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Error { #[codec(index = 0)] - Offence { - kind: [::core::primitive::u8; 16usize], - timeslot: ::std::vec::Vec<::core::primitive::u8>, - }, + InvalidJustification, + #[codec(index = 1)] + InvalidAuthoritySet, + #[codec(index = 2)] + TooManyRequests, + #[codec(index = 3)] + OldHeader, + #[codec(index = 4)] + UnknownHeader, + #[codec(index = 5)] + UnsupportedScheduledChange, + #[codec(index = 6)] + NotInitialized, + #[codec(index = 7)] + AlreadyInitialized, + #[codec(index = 8)] + Halted, + #[codec(index = 9)] + StorageRootMismatch, } } } - pub mod pallet_preimage { + pub mod pallet_bridge_messages { use super::runtime_types; pub mod pallet { use super::runtime_types; @@ -23063,55 +15443,56 @@ pub mod api { :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Call { - #[codec(index = 0)] - note_preimage { - bytes: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 1)] - unnote_preimage { hash: ::subxt::sp_core::H256 }, - #[codec(index = 2)] - request_preimage { hash: ::subxt::sp_core::H256 }, - #[codec(index = 3)] - unrequest_preimage { hash: ::subxt::sp_core::H256 }, - } + # [codec (index = 0)] set_owner { new_owner : :: core :: option :: Option < :: subxt :: sp_core :: crypto :: AccountId32 > , } , # [codec (index = 1)] set_operating_mode { operating_mode : runtime_types :: bp_messages :: OperatingMode , } , # [codec (index = 2)] update_pallet_parameter { parameter : () , } , # [codec (index = 3)] send_message { lane_id : [:: core :: primitive :: u8 ; 4usize] , payload : runtime_types :: bp_message_dispatch :: MessagePayload < :: subxt :: sp_core :: crypto :: AccountId32 , runtime_types :: sp_runtime :: MultiSigner , runtime_types :: sp_runtime :: MultiSignature , :: std :: vec :: Vec < :: core :: primitive :: u8 > > , delivery_and_dispatch_fee : :: core :: primitive :: u128 , } , # [codec (index = 4)] increase_message_fee { lane_id : [:: core :: primitive :: u8 ; 4usize] , nonce : :: core :: primitive :: u64 , additional_fee : :: core :: primitive :: u128 , } , # [codec (index = 5)] receive_messages_proof { relayer_id_at_bridged_chain : :: subxt :: sp_core :: crypto :: AccountId32 , proof : runtime_types :: bridge_runtime_common :: messages :: target :: FromBridgedChainMessagesProof < :: subxt :: sp_core :: H256 > , messages_count : :: core :: primitive :: u32 , dispatch_weight : :: core :: primitive :: u64 , } , # [codec (index = 6)] receive_messages_delivery_proof { proof : runtime_types :: bridge_runtime_common :: messages :: source :: FromBridgedChainMessagesDeliveryProof < :: subxt :: sp_core :: H256 > , relayers_state : runtime_types :: bp_messages :: UnrewardedRelayersState , } , } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Error { #[codec(index = 0)] - TooLarge, + Halted, #[codec(index = 1)] - AlreadyNoted, + MessageRejectedByChainVerifier, #[codec(index = 2)] - NotAuthorized, + MessageRejectedByLaneVerifier, #[codec(index = 3)] - NotNoted, + FailedToWithdrawMessageFee, #[codec(index = 4)] - Requested, + TooManyMessagesInTheProof, #[codec(index = 5)] - NotRequested, + InvalidMessagesProof, + #[codec(index = 6)] + InvalidMessagesDeliveryProof, + #[codec(index = 7)] + InvalidUnrewardedRelayers, + #[codec(index = 8)] + InvalidUnrewardedRelayersState, + #[codec(index = 9)] + MessageIsAlreadyDelivered, + #[codec(index = 10)] + MessageIsNotYetSent, + #[codec(index = 11)] + TryingToConfirmMoreMessagesThanExpected, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Event { #[codec(index = 0)] - Noted { hash: ::subxt::sp_core::H256 }, + ParameterUpdated(()), #[codec(index = 1)] - Requested { hash: ::subxt::sp_core::H256 }, + MessageAccepted( + [::core::primitive::u8; 4usize], + ::core::primitive::u64, + ), #[codec(index = 2)] - Cleared { hash: ::subxt::sp_core::H256 }, + MessagesDelivered( + [::core::primitive::u8; 4usize], + runtime_types::bp_messages::DeliveredMessages, + ), } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum RequestStatus<_0, _1> { - #[codec(index = 0)] - Unrequested(::core::option::Option<(_0, _1)>), - #[codec(index = 1)] - Requested(::core::primitive::u32), - } } - pub mod pallet_proxy { + pub mod pallet_collective { use super::runtime_types; pub mod pallet { use super::runtime_types; @@ -23120,66 +15501,47 @@ pub mod api { )] pub enum Call { #[codec(index = 0)] - proxy { - real: ::subxt::sp_core::crypto::AccountId32, - force_proxy_type: ::core::option::Option< - runtime_types::polkadot_runtime::ProxyType, - >, - call: ::std::boxed::Box, + set_members { + new_members: + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + prime: + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + old_count: ::core::primitive::u32, }, #[codec(index = 1)] - add_proxy { - delegate: ::subxt::sp_core::crypto::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: ::core::primitive::u32, + execute { + proposal: ::std::boxed::Box, + #[codec(compact)] + length_bound: ::core::primitive::u32, }, #[codec(index = 2)] - remove_proxy { - delegate: ::subxt::sp_core::crypto::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: ::core::primitive::u32, + propose { + #[codec(compact)] + threshold: ::core::primitive::u32, + proposal: ::std::boxed::Box, + #[codec(compact)] + length_bound: ::core::primitive::u32, }, #[codec(index = 3)] - remove_proxies, - #[codec(index = 4)] - anonymous { - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: ::core::primitive::u32, - index: ::core::primitive::u16, + vote { + proposal: ::subxt::sp_core::H256, + #[codec(compact)] + index: ::core::primitive::u32, + approve: ::core::primitive::bool, }, - #[codec(index = 5)] - kill_anonymous { - spawner: ::subxt::sp_core::crypto::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - index: ::core::primitive::u16, + #[codec(index = 4)] + close { + proposal_hash: ::subxt::sp_core::H256, #[codec(compact)] - height: ::core::primitive::u32, + index: ::core::primitive::u32, #[codec(compact)] - ext_index: ::core::primitive::u32, - }, - #[codec(index = 6)] - announce { - real: ::subxt::sp_core::crypto::AccountId32, - call_hash: ::subxt::sp_core::H256, - }, - #[codec(index = 7)] - remove_announcement { - real: ::subxt::sp_core::crypto::AccountId32, - call_hash: ::subxt::sp_core::H256, - }, - #[codec(index = 8)] - reject_announcement { - delegate: ::subxt::sp_core::crypto::AccountId32, - call_hash: ::subxt::sp_core::H256, + proposal_weight_bound: ::core::primitive::u64, + #[codec(compact)] + length_bound: ::core::primitive::u32, }, - #[codec(index = 9)] - proxy_announced { - delegate: ::subxt::sp_core::crypto::AccountId32, - real: ::subxt::sp_core::crypto::AccountId32, - force_proxy_type: ::core::option::Option< - runtime_types::polkadot_runtime::ProxyType, - >, - call: ::std::boxed::Box, + #[codec(index = 5)] + disapprove_proposal { + proposal_hash: ::subxt::sp_core::H256, }, } #[derive( @@ -23187,76 +15549,96 @@ pub mod api { )] pub enum Error { #[codec(index = 0)] - TooMany, + NotMember, #[codec(index = 1)] - NotFound, + DuplicateProposal, #[codec(index = 2)] - NotProxy, + ProposalMissing, #[codec(index = 3)] - Unproxyable, + WrongIndex, #[codec(index = 4)] - Duplicate, + DuplicateVote, #[codec(index = 5)] - NoPermission, + AlreadyInitialized, #[codec(index = 6)] - Unannounced, + TooEarly, #[codec(index = 7)] - NoSelfProxy, + TooManyProposals, + #[codec(index = 8)] + WrongProposalWeight, + #[codec(index = 9)] + WrongProposalLength, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Event { #[codec(index = 0)] - ProxyExecuted { - result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, + Proposed { + account: ::subxt::sp_core::crypto::AccountId32, + proposal_index: ::core::primitive::u32, + proposal_hash: ::subxt::sp_core::H256, + threshold: ::core::primitive::u32, }, #[codec(index = 1)] - AnonymousCreated { - anonymous: ::subxt::sp_core::crypto::AccountId32, - who: ::subxt::sp_core::crypto::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - disambiguation_index: ::core::primitive::u16, + Voted { + account: ::subxt::sp_core::crypto::AccountId32, + proposal_hash: ::subxt::sp_core::H256, + voted: ::core::primitive::bool, + yes: ::core::primitive::u32, + no: ::core::primitive::u32, }, #[codec(index = 2)] - Announced { - real: ::subxt::sp_core::crypto::AccountId32, - proxy: ::subxt::sp_core::crypto::AccountId32, - call_hash: ::subxt::sp_core::H256, + Approved { + proposal_hash: ::subxt::sp_core::H256, }, #[codec(index = 3)] - ProxyAdded { - delegator: ::subxt::sp_core::crypto::AccountId32, - delegatee: ::subxt::sp_core::crypto::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: ::core::primitive::u32, + Disapproved { + proposal_hash: ::subxt::sp_core::H256, }, #[codec(index = 4)] - ProxyRemoved { - delegator: ::subxt::sp_core::crypto::AccountId32, - delegatee: ::subxt::sp_core::crypto::AccountId32, - proxy_type: runtime_types::polkadot_runtime::ProxyType, - delay: ::core::primitive::u32, + Executed { + proposal_hash: ::subxt::sp_core::H256, + result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + }, + #[codec(index = 5)] + MemberExecuted { + proposal_hash: ::subxt::sp_core::H256, + result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + }, + #[codec(index = 6)] + Closed { + proposal_hash: ::subxt::sp_core::H256, + yes: ::core::primitive::u32, + no: ::core::primitive::u32, }, } } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Announcement<_0, _1, _2> { - pub real: _0, - pub call_hash: _1, - pub height: _2, + pub enum RawOrigin<_0> { + #[codec(index = 0)] + Members(::core::primitive::u32, ::core::primitive::u32), + #[codec(index = 1)] + Member(_0), + #[codec(index = 2)] + _Phantom, } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ProxyDefinition<_0, _1, _2> { - pub delegate: _0, - pub proxy_type: _1, - pub delay: _2, + pub struct Votes<_0, _1> { + pub index: _1, + pub threshold: _1, + pub ayes: ::std::vec::Vec<_0>, + pub nays: ::std::vec::Vec<_0>, + pub end: _1, } } - pub mod pallet_scheduler { + pub mod pallet_grandpa { use super::runtime_types; pub mod pallet { use super::runtime_types; @@ -23265,75 +15647,29 @@ pub mod api { )] pub enum Call { #[codec(index = 0)] - schedule { - when: ::core::primitive::u32, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: ::std::boxed::Box< - runtime_types::frame_support::traits::schedule::MaybeHashed< - runtime_types::polkadot_runtime::Call, + report_equivocation { + equivocation_proof: ::std::boxed::Box< + runtime_types::sp_finality_grandpa::EquivocationProof< ::subxt::sp_core::H256, + ::core::primitive::u32, >, >, + key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 1)] - cancel { - when: ::core::primitive::u32, - index: ::core::primitive::u32, - }, - #[codec(index = 2)] - schedule_named { - id: ::std::vec::Vec<::core::primitive::u8>, - when: ::core::primitive::u32, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: ::std::boxed::Box< - runtime_types::frame_support::traits::schedule::MaybeHashed< - runtime_types::polkadot_runtime::Call, - ::subxt::sp_core::H256, - >, - >, - }, - #[codec(index = 3)] - cancel_named { - id: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 4)] - schedule_after { - after: ::core::primitive::u32, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: ::std::boxed::Box< - runtime_types::frame_support::traits::schedule::MaybeHashed< - runtime_types::polkadot_runtime::Call, + report_equivocation_unsigned { + equivocation_proof: ::std::boxed::Box< + runtime_types::sp_finality_grandpa::EquivocationProof< ::subxt::sp_core::H256, + ::core::primitive::u32, >, >, + key_owner_proof: runtime_types::sp_session::MembershipProof, }, - #[codec(index = 5)] - schedule_named_after { - id: ::std::vec::Vec<::core::primitive::u8>, - after: ::core::primitive::u32, - maybe_periodic: ::core::option::Option<( - ::core::primitive::u32, - ::core::primitive::u32, - )>, - priority: ::core::primitive::u8, - call: ::std::boxed::Box< - runtime_types::frame_support::traits::schedule::MaybeHashed< - runtime_types::polkadot_runtime::Call, - ::subxt::sp_core::H256, - >, - >, + #[codec(index = 2)] + note_stalled { + delay: ::core::primitive::u32, + best_finalized_block_number: ::core::primitive::u32, }, } #[derive( @@ -23341,63 +15677,52 @@ pub mod api { )] pub enum Error { #[codec(index = 0)] - FailedToSchedule, + PauseFailed, #[codec(index = 1)] - NotFound, + ResumeFailed, #[codec(index = 2)] - TargetBlockNumberInPast, + ChangePending, #[codec(index = 3)] - RescheduleNoChange, + TooSoon, + #[codec(index = 4)] + InvalidKeyOwnershipProof, + #[codec(index = 5)] + InvalidEquivocationProof, + #[codec(index = 6)] + DuplicateOffenceReport, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Event { #[codec(index = 0)] - Scheduled { - when: ::core::primitive::u32, - index: ::core::primitive::u32, + NewAuthorities { + authority_set: ::std::vec::Vec<( + runtime_types::sp_finality_grandpa::app::Public, + ::core::primitive::u64, + )>, }, #[codec(index = 1)] - Canceled { - when: ::core::primitive::u32, - index: ::core::primitive::u32, - }, + Paused, #[codec(index = 2)] - Dispatched { - task: (::core::primitive::u32, ::core::primitive::u32), - id: ::core::option::Option< - ::std::vec::Vec<::core::primitive::u8>, - >, - result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - }, - #[codec(index = 3)] - CallLookupFailed { - task: (::core::primitive::u32, ::core::primitive::u32), - id: ::core::option::Option< - ::std::vec::Vec<::core::primitive::u8>, - >, - error: - runtime_types::frame_support::traits::schedule::LookupError, - }, + Resumed, } } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ScheduledV3<_0, _1, _2, _3> { - pub maybe_id: - ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, - pub priority: ::core::primitive::u8, - pub call: _0, - pub maybe_periodic: ::core::option::Option<(_1, _1)>, - pub origin: _2, - #[codec(skip)] - pub __subxt_unused_type_params: ::core::marker::PhantomData<_3>, + 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)] + pub enum StoredState<_0> { + #[codec(index = 0)] + Live, + #[codec(index = 1)] + PendingPause { scheduled_at: _0, delay: _0 }, + #[codec(index = 2)] + Paused, + #[codec(index = 3)] + PendingResume { scheduled_at: _0, delay: _0 }, } } - pub mod pallet_session { + pub mod pallet_im_online { use super::runtime_types; pub mod pallet { use super::runtime_types; @@ -23405,475 +15730,343 @@ pub mod api { :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Call { - #[codec(index = 0)] - set_keys { - keys: runtime_types::polkadot_runtime::SessionKeys, - proof: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 1)] - purge_keys, - } + # [codec (index = 0)] 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, )] pub enum Error { #[codec(index = 0)] - InvalidProof, + InvalidKey, #[codec(index = 1)] - NoAssociatedValidatorId, - #[codec(index = 2)] - DuplicatedKey, - #[codec(index = 3)] - NoKeys, - #[codec(index = 4)] - NoAccount, + DuplicatedHeartbeat, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Event { #[codec(index = 0)] - NewSession { - session_index: ::core::primitive::u32, + HeartbeatReceived { + authority_id: + runtime_types::pallet_im_online::sr25519::app_sr25519::Public, + }, + #[codec(index = 1)] + AllGood, + #[codec(index = 2)] + SomeOffline { + offline: + ::std::vec::Vec<(::subxt::sp_core::crypto::AccountId32, ())>, }, } } - } - pub mod pallet_staking { - use super::runtime_types; - pub mod pallet { + pub mod sr25519 { use super::runtime_types; - pub mod pallet { + pub mod app_sr25519 { use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum Call { - #[codec(index = 0)] - bond { - controller: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - #[codec(compact)] - value: ::core::primitive::u128, - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::sp_core::crypto::AccountId32, - >, - }, - #[codec(index = 1)] - bond_extra { - #[codec(compact)] - max_additional: ::core::primitive::u128, - }, - #[codec(index = 2)] - unbond { - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 3)] - withdraw_unbonded { - num_slashing_spans: ::core::primitive::u32, - }, - #[codec(index = 4)] - validate { - prefs: runtime_types::pallet_staking::ValidatorPrefs, - }, - #[codec(index = 5)] - nominate { - targets: ::std::vec::Vec< - ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - >, - }, - #[codec(index = 6)] - chill, - #[codec(index = 7)] - set_payee { - payee: runtime_types::pallet_staking::RewardDestination< - ::subxt::sp_core::crypto::AccountId32, - >, - }, - #[codec(index = 8)] - set_controller { - controller: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - }, - #[codec(index = 9)] - set_validator_count { - #[codec(compact)] - new: ::core::primitive::u32, - }, - #[codec(index = 10)] - increase_validator_count { - #[codec(compact)] - additional: ::core::primitive::u32, - }, - #[codec(index = 11)] - scale_validator_count { - factor: runtime_types::sp_arithmetic::per_things::Percent, - }, - #[codec(index = 12)] - force_no_eras, - #[codec(index = 13)] - force_new_era, - #[codec(index = 14)] - set_invulnerables { - invulnerables: - ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, - }, - #[codec(index = 15)] - force_unstake { - stash: ::subxt::sp_core::crypto::AccountId32, - num_slashing_spans: ::core::primitive::u32, - }, - #[codec(index = 16)] - force_new_era_always, - #[codec(index = 17)] - cancel_deferred_slash { - era: ::core::primitive::u32, - slash_indices: ::std::vec::Vec<::core::primitive::u32>, - }, - #[codec(index = 18)] - payout_stakers { - validator_stash: ::subxt::sp_core::crypto::AccountId32, - era: ::core::primitive::u32, - }, - #[codec(index = 19)] - rebond { - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 20)] - set_history_depth { - #[codec(compact)] - new_history_depth: ::core::primitive::u32, - #[codec(compact)] - era_items_deleted: ::core::primitive::u32, - }, - #[codec(index = 21)] - reap_stash { - stash: ::subxt::sp_core::crypto::AccountId32, - num_slashing_spans: ::core::primitive::u32, - }, - #[codec(index = 22)] - kick { - who: ::std::vec::Vec< - ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - >, - }, - #[codec(index = 23)] - set_staking_configs { - min_nominator_bond: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >, - min_validator_bond: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u128, - >, - max_nominator_count: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, - >, - max_validator_count: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - ::core::primitive::u32, - >, - chill_threshold: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Percent, - >, - min_commission: - runtime_types::pallet_staking::pallet::pallet::ConfigOp< - runtime_types::sp_arithmetic::per_things::Perbill, - >, - }, - #[codec(index = 24)] - chill_other { - controller: ::subxt::sp_core::crypto::AccountId32, - }, - #[codec(index = 25)] - force_apply_min_commission { - validator_stash: ::subxt::sp_core::crypto::AccountId32, - }, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum ConfigOp<_0> { - #[codec(index = 0)] - Noop, - #[codec(index = 1)] - Set(_0), - #[codec(index = 2)] - Remove, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Error { - #[codec(index = 0)] - NotController, - #[codec(index = 1)] - NotStash, - #[codec(index = 2)] - AlreadyBonded, - #[codec(index = 3)] - AlreadyPaired, - #[codec(index = 4)] - EmptyTargets, - #[codec(index = 5)] - DuplicateIndex, - #[codec(index = 6)] - InvalidSlashIndex, - #[codec(index = 7)] - InsufficientBond, - #[codec(index = 8)] - NoMoreChunks, - #[codec(index = 9)] - NoUnlockChunk, - #[codec(index = 10)] - FundedTarget, - #[codec(index = 11)] - InvalidEraToReward, - #[codec(index = 12)] - InvalidNumberOfNominations, - #[codec(index = 13)] - NotSortedAndUnique, - #[codec(index = 14)] - AlreadyClaimed, - #[codec(index = 15)] - IncorrectHistoryDepth, - #[codec(index = 16)] - IncorrectSlashingSpans, - #[codec(index = 17)] - BadState, - #[codec(index = 18)] - TooManyTargets, - #[codec(index = 19)] - BadTarget, - #[codec(index = 20)] - CannotChillOther, - #[codec(index = 21)] - TooManyNominators, - #[codec(index = 22)] - TooManyValidators, - #[codec(index = 23)] - CommissionTooLow, - } + pub struct Public(pub runtime_types::sp_core::sr25519::Public); #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum Event { - #[codec(index = 0)] - EraPaid( - ::core::primitive::u32, - ::core::primitive::u128, - ::core::primitive::u128, - ), - #[codec(index = 1)] - Rewarded( - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ), - #[codec(index = 2)] - Slashed( - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ), - #[codec(index = 3)] - OldSlashingReportDiscarded(::core::primitive::u32), - #[codec(index = 4)] - StakersElected, - #[codec(index = 5)] - Bonded( - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ), - #[codec(index = 6)] - Unbonded( - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ), - #[codec(index = 7)] - Withdrawn( - ::subxt::sp_core::crypto::AccountId32, - ::core::primitive::u128, - ), - #[codec(index = 8)] - Kicked( - ::subxt::sp_core::crypto::AccountId32, - ::subxt::sp_core::crypto::AccountId32, - ), - #[codec(index = 9)] - StakingElectionFailed, - #[codec(index = 10)] - Chilled(::subxt::sp_core::crypto::AccountId32), - #[codec(index = 11)] - PayoutStarted( - ::core::primitive::u32, - ::subxt::sp_core::crypto::AccountId32, - ), - } + pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); + } + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] + pub struct Heartbeat<_0> { + pub block_number: _0, + pub network_state: runtime_types::sp_core::offchain::OpaqueNetworkState, + pub session_index: _0, + pub authority_index: _0, + pub validators_len: _0, + } + } + pub mod pallet_indices { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Call { + #[codec(index = 0)] + claim { index: ::core::primitive::u32 }, + #[codec(index = 1)] + transfer { + new: ::subxt::sp_core::crypto::AccountId32, + index: ::core::primitive::u32, + }, + #[codec(index = 2)] + free { index: ::core::primitive::u32 }, + #[codec(index = 3)] + force_transfer { + new: ::subxt::sp_core::crypto::AccountId32, + index: ::core::primitive::u32, + freeze: ::core::primitive::bool, + }, + #[codec(index = 4)] + freeze { index: ::core::primitive::u32 }, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Error { + #[codec(index = 0)] + NotAssigned, + #[codec(index = 1)] + NotOwner, + #[codec(index = 2)] + InUse, + #[codec(index = 3)] + NotTransfer, + #[codec(index = 4)] + Permanent, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Event { + #[codec(index = 0)] + IndexAssigned { + who: ::subxt::sp_core::crypto::AccountId32, + index: ::core::primitive::u32, + }, + #[codec(index = 1)] + IndexFreed { index: ::core::primitive::u32 }, + #[codec(index = 2)] + IndexFrozen { + index: ::core::primitive::u32, + who: ::subxt::sp_core::crypto::AccountId32, + }, } } - pub mod slashing { + } + pub mod pallet_membership { + use super::runtime_types; + pub mod pallet { use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub struct SlashingSpans { - pub span_index: ::core::primitive::u32, - pub last_start: ::core::primitive::u32, - pub last_nonzero_slash: ::core::primitive::u32, - pub prior: ::std::vec::Vec<::core::primitive::u32>, + pub enum Call { + #[codec(index = 0)] + add_member { + who: ::subxt::sp_core::crypto::AccountId32, + }, + #[codec(index = 1)] + remove_member { + who: ::subxt::sp_core::crypto::AccountId32, + }, + #[codec(index = 2)] + swap_member { + remove: ::subxt::sp_core::crypto::AccountId32, + add: ::subxt::sp_core::crypto::AccountId32, + }, + #[codec(index = 3)] + reset_members { + members: ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + }, + #[codec(index = 4)] + change_key { + new: ::subxt::sp_core::crypto::AccountId32, + }, + #[codec(index = 5)] + set_prime { + who: ::subxt::sp_core::crypto::AccountId32, + }, + #[codec(index = 6)] + clear_prime, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub struct SpanRecord<_0> { - pub slashed: _0, - pub paid_out: _0, + pub enum Error { + #[codec(index = 0)] + AlreadyMember, + #[codec(index = 1)] + NotMember, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Event { + #[codec(index = 0)] + MemberAdded, + #[codec(index = 1)] + MemberRemoved, + #[codec(index = 2)] + MembersSwapped, + #[codec(index = 3)] + MembersReset, + #[codec(index = 4)] + KeyChanged, + #[codec(index = 5)] + Dummy, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] - 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)] - pub struct Exposure<_0, _1> { - #[codec(compact)] - pub total: _1, - #[codec(compact)] - pub own: _1, - pub others: ::std::vec::Vec< - runtime_types::pallet_staking::IndividualExposure<_0, _1>, - >, - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum Forcing { - #[codec(index = 0)] - NotForcing, - #[codec(index = 1)] - ForceNew, - #[codec(index = 2)] - ForceNone, - #[codec(index = 3)] - ForceAlways, - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct IndividualExposure<_0, _1> { - pub who: _0, - #[codec(compact)] - pub value: _1, - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Nominations { - pub targets: - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - ::subxt::sp_core::crypto::AccountId32, - >, - pub submitted_in: ::core::primitive::u32, - pub suppressed: ::core::primitive::bool, - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum Releases { - #[codec(index = 0)] - V1_0_0Ancient, - #[codec(index = 1)] - V2_0_0, - #[codec(index = 2)] - V3_0_0, - #[codec(index = 3)] - V4_0_0, - #[codec(index = 4)] - V5_0_0, - #[codec(index = 5)] - V6_0_0, - #[codec(index = 6)] - V7_0_0, - #[codec(index = 7)] - V8_0_0, - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum RewardDestination<_0> { - #[codec(index = 0)] - Staked, - #[codec(index = 1)] - Stash, - #[codec(index = 2)] - Controller, - #[codec(index = 3)] - Account(_0), - #[codec(index = 4)] - None, - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct StakingLedger<_0, _1> { - pub stash: _0, - #[codec(compact)] - pub total: _1, - #[codec(compact)] - pub active: _1, - pub unlocking: - runtime_types::frame_support::storage::bounded_vec::BoundedVec< - runtime_types::pallet_staking::UnlockChunk<_1>, - >, - pub claimed_rewards: ::std::vec::Vec<::core::primitive::u32>, - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct UnappliedSlash<_0, _1> { - pub validator: _0, - pub own: _1, - pub others: ::std::vec::Vec<(_0, _1)>, - pub reporters: ::std::vec::Vec<_0>, - pub payout: _1, + } + pub mod pallet_multisig { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Call { + #[codec(index = 0)] + as_multi_threshold_1 { + other_signatories: + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + call: ::std::boxed::Box, + }, + #[codec(index = 1)] + as_multi { + threshold: ::core::primitive::u16, + other_signatories: + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u32, + >, + >, + call: ::subxt::WrapperKeepOpaque< + runtime_types::rococo_runtime::Call, + >, + store_call: ::core::primitive::bool, + max_weight: ::core::primitive::u64, + }, + #[codec(index = 2)] + approve_as_multi { + threshold: ::core::primitive::u16, + other_signatories: + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u32, + >, + >, + call_hash: [::core::primitive::u8; 32usize], + max_weight: ::core::primitive::u64, + }, + #[codec(index = 3)] + cancel_as_multi { + threshold: ::core::primitive::u16, + other_signatories: + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + timepoint: runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u32, + >, + call_hash: [::core::primitive::u8; 32usize], + }, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Error { + #[codec(index = 0)] + MinimumThreshold, + #[codec(index = 1)] + AlreadyApproved, + #[codec(index = 2)] + NoApprovalsNeeded, + #[codec(index = 3)] + TooFewSignatories, + #[codec(index = 4)] + TooManySignatories, + #[codec(index = 5)] + SignatoriesOutOfOrder, + #[codec(index = 6)] + SenderInSignatories, + #[codec(index = 7)] + NotFound, + #[codec(index = 8)] + NotOwner, + #[codec(index = 9)] + NoTimepoint, + #[codec(index = 10)] + WrongTimepoint, + #[codec(index = 11)] + UnexpectedTimepoint, + #[codec(index = 12)] + MaxWeightTooLow, + #[codec(index = 13)] + AlreadyStored, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Event { + #[codec(index = 0)] + NewMultisig { + approving: ::subxt::sp_core::crypto::AccountId32, + multisig: ::subxt::sp_core::crypto::AccountId32, + call_hash: [::core::primitive::u8; 32usize], + }, + #[codec(index = 1)] + MultisigApproval { + approving: ::subxt::sp_core::crypto::AccountId32, + timepoint: runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u32, + >, + multisig: ::subxt::sp_core::crypto::AccountId32, + call_hash: [::core::primitive::u8; 32usize], + }, + #[codec(index = 2)] + MultisigExecuted { + approving: ::subxt::sp_core::crypto::AccountId32, + timepoint: runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u32, + >, + multisig: ::subxt::sp_core::crypto::AccountId32, + call_hash: [::core::primitive::u8; 32usize], + result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + }, + #[codec(index = 3)] + MultisigCancelled { + cancelling: ::subxt::sp_core::crypto::AccountId32, + timepoint: runtime_types::pallet_multisig::Timepoint< + ::core::primitive::u32, + >, + multisig: ::subxt::sp_core::crypto::AccountId32, + call_hash: [::core::primitive::u8; 32usize], + }, + } } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct UnlockChunk<_0> { - #[codec(compact)] - pub value: _0, - #[codec(compact)] - pub era: ::core::primitive::u32, + 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)] - pub struct ValidatorPrefs { - #[codec(compact)] - pub commission: runtime_types::sp_arithmetic::per_things::Perbill, - pub blocked: ::core::primitive::bool, + pub struct Timepoint<_0> { + pub height: _0, + pub index: _0, } } - pub mod pallet_timestamp { + pub mod pallet_offences { use super::runtime_types; pub mod pallet { use super::runtime_types; #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] - pub enum Call { + pub enum Event { #[codec(index = 0)] - set { - #[codec(compact)] - now: ::core::primitive::u64, + Offence { + kind: [::core::primitive::u8; 16usize], + timeslot: ::std::vec::Vec<::core::primitive::u8>, }, } } } - pub mod pallet_tips { + pub mod pallet_proxy { use super::runtime_types; pub mod pallet { use super::runtime_types; @@ -23882,97 +16075,136 @@ pub mod api { )] pub enum Call { #[codec(index = 0)] - report_awesome { - reason: ::std::vec::Vec<::core::primitive::u8>, - who: ::subxt::sp_core::crypto::AccountId32, + proxy { + real: ::subxt::sp_core::crypto::AccountId32, + force_proxy_type: ::core::option::Option< + runtime_types::rococo_runtime::ProxyType, + >, + call: ::std::boxed::Box, }, #[codec(index = 1)] - retract_tip { hash: ::subxt::sp_core::H256 }, + add_proxy { + delegate: ::subxt::sp_core::crypto::AccountId32, + proxy_type: runtime_types::rococo_runtime::ProxyType, + delay: ::core::primitive::u32, + }, #[codec(index = 2)] - tip_new { - reason: ::std::vec::Vec<::core::primitive::u8>, - who: ::subxt::sp_core::crypto::AccountId32, - #[codec(compact)] - tip_value: ::core::primitive::u128, + remove_proxy { + delegate: ::subxt::sp_core::crypto::AccountId32, + proxy_type: runtime_types::rococo_runtime::ProxyType, + delay: ::core::primitive::u32, }, #[codec(index = 3)] - tip { - hash: ::subxt::sp_core::H256, - #[codec(compact)] - tip_value: ::core::primitive::u128, - }, + remove_proxies, #[codec(index = 4)] - close_tip { hash: ::subxt::sp_core::H256 }, + anonymous { + proxy_type: runtime_types::rococo_runtime::ProxyType, + delay: ::core::primitive::u32, + index: ::core::primitive::u16, + }, #[codec(index = 5)] - slash_tip { hash: ::subxt::sp_core::H256 }, + kill_anonymous { + spawner: ::subxt::sp_core::crypto::AccountId32, + proxy_type: runtime_types::rococo_runtime::ProxyType, + index: ::core::primitive::u16, + #[codec(compact)] + height: ::core::primitive::u32, + #[codec(compact)] + ext_index: ::core::primitive::u32, + }, + #[codec(index = 6)] + announce { + real: ::subxt::sp_core::crypto::AccountId32, + call_hash: ::subxt::sp_core::H256, + }, + #[codec(index = 7)] + remove_announcement { + real: ::subxt::sp_core::crypto::AccountId32, + call_hash: ::subxt::sp_core::H256, + }, + #[codec(index = 8)] + reject_announcement { + delegate: ::subxt::sp_core::crypto::AccountId32, + call_hash: ::subxt::sp_core::H256, + }, + #[codec(index = 9)] + proxy_announced { + delegate: ::subxt::sp_core::crypto::AccountId32, + real: ::subxt::sp_core::crypto::AccountId32, + force_proxy_type: ::core::option::Option< + runtime_types::rococo_runtime::ProxyType, + >, + call: ::std::boxed::Box, + }, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Error { #[codec(index = 0)] - ReasonTooBig, + TooMany, #[codec(index = 1)] - AlreadyKnown, + NotFound, #[codec(index = 2)] - UnknownTip, + NotProxy, #[codec(index = 3)] - NotFinder, + Unproxyable, #[codec(index = 4)] - StillOpen, + Duplicate, #[codec(index = 5)] - Premature, + NoPermission, + #[codec(index = 6)] + Unannounced, + #[codec(index = 7)] + NoSelfProxy, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Event { #[codec(index = 0)] - NewTip { tip_hash: ::subxt::sp_core::H256 }, + ProxyExecuted { + result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, + }, #[codec(index = 1)] - TipClosing { tip_hash: ::subxt::sp_core::H256 }, - #[codec(index = 2)] - TipClosed { - tip_hash: ::subxt::sp_core::H256, + AnonymousCreated { + anonymous: ::subxt::sp_core::crypto::AccountId32, who: ::subxt::sp_core::crypto::AccountId32, - payout: ::core::primitive::u128, + proxy_type: runtime_types::rococo_runtime::ProxyType, + disambiguation_index: ::core::primitive::u16, + }, + #[codec(index = 2)] + Announced { + real: ::subxt::sp_core::crypto::AccountId32, + proxy: ::subxt::sp_core::crypto::AccountId32, + call_hash: ::subxt::sp_core::H256, }, #[codec(index = 3)] - TipRetracted { tip_hash: ::subxt::sp_core::H256 }, - #[codec(index = 4)] - TipSlashed { - tip_hash: ::subxt::sp_core::H256, - finder: ::subxt::sp_core::crypto::AccountId32, - deposit: ::core::primitive::u128, + ProxyAdded { + delegator: ::subxt::sp_core::crypto::AccountId32, + delegatee: ::subxt::sp_core::crypto::AccountId32, + proxy_type: runtime_types::rococo_runtime::ProxyType, + delay: ::core::primitive::u32, }, } } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct OpenTip<_0, _1, _2, _3> { - pub reason: _3, - pub who: _0, - pub finder: _0, - pub deposit: _1, - pub closes: ::core::option::Option<_2>, - pub tips: ::std::vec::Vec<(_0, _1)>, - pub finders_fee: ::core::primitive::bool, + pub struct Announcement<_0, _1, _2> { + pub real: _0, + pub call_hash: _1, + pub height: _2, } - } - pub mod pallet_transaction_payment { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct ChargeTransactionPayment( - #[codec(compact)] pub ::core::primitive::u128, - ); #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum Releases { - #[codec(index = 0)] - V1Ancient, - #[codec(index = 1)] - V2, + pub struct ProxyDefinition<_0, _1, _2> { + pub delegate: _0, + pub proxy_type: _1, + pub delay: _2, } } - pub mod pallet_treasury { + pub mod pallet_session { use super::runtime_types; pub mod pallet { use super::runtime_types; @@ -23981,80 +16213,40 @@ pub mod api { )] pub enum Call { #[codec(index = 0)] - propose_spend { - #[codec(compact)] - value: ::core::primitive::u128, - beneficiary: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, + set_keys { + keys: runtime_types::rococo_runtime::SessionKeys, + proof: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - reject_proposal { - #[codec(compact)] - proposal_id: ::core::primitive::u32, - }, - #[codec(index = 2)] - approve_proposal { - #[codec(compact)] - proposal_id: ::core::primitive::u32, - }, + purge_keys, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Error { #[codec(index = 0)] - InsufficientProposersBalance, + InvalidProof, #[codec(index = 1)] - InvalidIndex, + NoAssociatedValidatorId, #[codec(index = 2)] - TooManyApprovals, + DuplicatedKey, + #[codec(index = 3)] + NoKeys, + #[codec(index = 4)] + NoAccount, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Event { #[codec(index = 0)] - Proposed { - proposal_index: ::core::primitive::u32, - }, - #[codec(index = 1)] - Spending { - budget_remaining: ::core::primitive::u128, - }, - #[codec(index = 2)] - Awarded { - proposal_index: ::core::primitive::u32, - award: ::core::primitive::u128, - account: ::subxt::sp_core::crypto::AccountId32, - }, - #[codec(index = 3)] - Rejected { - proposal_index: ::core::primitive::u32, - slashed: ::core::primitive::u128, - }, - #[codec(index = 4)] - Burnt { - burnt_funds: ::core::primitive::u128, - }, - #[codec(index = 5)] - Rollover { - rollover_balance: ::core::primitive::u128, + NewSession { + session_index: ::core::primitive::u32, }, - #[codec(index = 6)] - Deposit { value: ::core::primitive::u128 }, } } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Proposal<_0, _1> { - pub proposer: _0, - pub value: _1, - pub beneficiary: _0, - pub bond: _1, - } } - pub mod pallet_utility { + pub mod pallet_sudo { use super::runtime_types; pub mod pallet { use super::runtime_types; @@ -24063,24 +16255,28 @@ pub mod api { )] pub enum Call { #[codec(index = 0)] - batch { - calls: ::std::vec::Vec, + sudo { + call: ::std::boxed::Box, }, #[codec(index = 1)] - as_derivative { - index: ::core::primitive::u16, - call: ::std::boxed::Box, + sudo_unchecked_weight { + call: ::std::boxed::Box, + weight: ::core::primitive::u64, }, #[codec(index = 2)] - batch_all { - calls: ::std::vec::Vec, + set_key { + new: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), + >, }, #[codec(index = 3)] - dispatch_as { - as_origin: ::std::boxed::Box< - runtime_types::polkadot_runtime::OriginCaller, + sudo_as { + who: ::subxt::sp_runtime::MultiAddress< + ::subxt::sp_core::crypto::AccountId32, + (), >, - call: ::std::boxed::Box, + call: ::std::boxed::Box, }, } #[derive( @@ -24088,24 +16284,27 @@ pub mod api { )] pub enum Error { #[codec(index = 0)] - TooManyCalls, + RequireSudo, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Event { #[codec(index = 0)] - BatchInterrupted { - index: ::core::primitive::u32, - error: runtime_types::sp_runtime::DispatchError, + Sudid { + sudo_result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, }, #[codec(index = 1)] - BatchCompleted, + KeyChanged { + old_sudoer: + ::core::option::Option<::subxt::sp_core::crypto::AccountId32>, + }, #[codec(index = 2)] - ItemCompleted, - #[codec(index = 3)] - DispatchedAs { - result: ::core::result::Result< + SudoAsDone { + sudo_result: ::core::result::Result< (), runtime_types::sp_runtime::DispatchError, >, @@ -24113,7 +16312,37 @@ pub mod api { } } } - pub mod pallet_vesting { + pub mod pallet_timestamp { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Call { + #[codec(index = 0)] + set { + #[codec(compact)] + now: ::core::primitive::u64, + }, + } + } + } + pub mod pallet_transaction_payment { + use super::runtime_types; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ChargeTransactionPayment( + #[codec(compact)] pub ::core::primitive::u128, + ); + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub enum Releases { + #[codec(index = 0)] + V1Ancient, + #[codec(index = 1)] + V2, + } + } + pub mod pallet_utility { use super::runtime_types; pub mod pallet { use super::runtime_types; @@ -24122,46 +16351,24 @@ pub mod api { )] pub enum Call { #[codec(index = 0)] - vest, + batch { + calls: ::std::vec::Vec, + }, #[codec(index = 1)] - vest_other { - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, + as_derivative { + index: ::core::primitive::u16, + call: ::std::boxed::Box, }, #[codec(index = 2)] - vested_transfer { - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - schedule: - runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, + batch_all { + calls: ::std::vec::Vec, }, #[codec(index = 3)] - force_vested_transfer { - source: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), - >, - target: ::subxt::sp_runtime::MultiAddress< - ::subxt::sp_core::crypto::AccountId32, - (), + dispatch_as { + as_origin: ::std::boxed::Box< + runtime_types::rococo_runtime::OriginCaller, >, - schedule: - runtime_types::pallet_vesting::vesting_info::VestingInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - }, - #[codec(index = 4)] - merge_schedules { - schedule1_index: ::core::primitive::u32, - schedule2_index: ::core::primitive::u32, + call: ::std::boxed::Box, }, } #[derive( @@ -24169,49 +16376,30 @@ pub mod api { )] pub enum Error { #[codec(index = 0)] - NotVesting, - #[codec(index = 1)] - AtMaxVestingSchedules, - #[codec(index = 2)] - AmountLow, - #[codec(index = 3)] - ScheduleIndexOutOfBounds, - #[codec(index = 4)] - InvalidScheduleParams, + TooManyCalls, } #[derive( :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, )] pub enum Event { #[codec(index = 0)] - VestingUpdated { - account: ::subxt::sp_core::crypto::AccountId32, - unvested: ::core::primitive::u128, + BatchInterrupted { + index: ::core::primitive::u32, + error: runtime_types::sp_runtime::DispatchError, }, #[codec(index = 1)] - VestingCompleted { - account: ::subxt::sp_core::crypto::AccountId32, + BatchCompleted, + #[codec(index = 2)] + ItemCompleted, + #[codec(index = 3)] + DispatchedAs { + result: ::core::result::Result< + (), + runtime_types::sp_runtime::DispatchError, + >, }, } } - pub mod vesting_info { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct VestingInfo<_0, _1> { - pub locked: _0, - pub per_block: _0, - pub starting_block: _1, - } - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum Releases { - #[codec(index = 0)] - V0, - #[codec(index = 1)] - V1, - } } pub mod pallet_xcm { use super::runtime_types; @@ -24845,203 +17033,74 @@ pub mod api { } } } - pub mod polkadot_runtime { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] - 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)] - pub struct NposCompactSolution16 { - pub votes1: - ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u16)>, - pub votes2: ::std::vec::Vec<( - ::core::primitive::u32, - ( - ::core::primitive::u16, - runtime_types::sp_arithmetic::per_things::PerU16, - ), - ::core::primitive::u16, - )>, - pub votes3: ::std::vec::Vec<( - ::core::primitive::u32, - [( - ::core::primitive::u16, - runtime_types::sp_arithmetic::per_things::PerU16, - ); 2usize], - ::core::primitive::u16, - )>, - pub votes4: ::std::vec::Vec<( - ::core::primitive::u32, - [( - ::core::primitive::u16, - runtime_types::sp_arithmetic::per_things::PerU16, - ); 3usize], - ::core::primitive::u16, - )>, - pub votes5: ::std::vec::Vec<( - ::core::primitive::u32, - [( - ::core::primitive::u16, - runtime_types::sp_arithmetic::per_things::PerU16, - ); 4usize], - ::core::primitive::u16, - )>, - pub votes6: ::std::vec::Vec<( - ::core::primitive::u32, - [( - ::core::primitive::u16, - runtime_types::sp_arithmetic::per_things::PerU16, - ); 5usize], - ::core::primitive::u16, - )>, - pub votes7: ::std::vec::Vec<( - ::core::primitive::u32, - [( - ::core::primitive::u16, - runtime_types::sp_arithmetic::per_things::PerU16, - ); 6usize], - ::core::primitive::u16, - )>, - pub votes8: ::std::vec::Vec<( - ::core::primitive::u32, - [( - ::core::primitive::u16, - runtime_types::sp_arithmetic::per_things::PerU16, - ); 7usize], - ::core::primitive::u16, - )>, - pub votes9: ::std::vec::Vec<( - ::core::primitive::u32, - [( - ::core::primitive::u16, - runtime_types::sp_arithmetic::per_things::PerU16, - ); 8usize], - ::core::primitive::u16, - )>, - pub votes10: ::std::vec::Vec<( - ::core::primitive::u32, - [( - ::core::primitive::u16, - runtime_types::sp_arithmetic::per_things::PerU16, - ); 9usize], - ::core::primitive::u16, - )>, - pub votes11: ::std::vec::Vec<( - ::core::primitive::u32, - [( - ::core::primitive::u16, - runtime_types::sp_arithmetic::per_things::PerU16, - ); 10usize], - ::core::primitive::u16, - )>, - pub votes12: ::std::vec::Vec<( - ::core::primitive::u32, - [( - ::core::primitive::u16, - runtime_types::sp_arithmetic::per_things::PerU16, - ); 11usize], - ::core::primitive::u16, - )>, - pub votes13: ::std::vec::Vec<( - ::core::primitive::u32, - [( - ::core::primitive::u16, - runtime_types::sp_arithmetic::per_things::PerU16, - ); 12usize], - ::core::primitive::u16, - )>, - pub votes14: ::std::vec::Vec<( - ::core::primitive::u32, - [( - ::core::primitive::u16, - runtime_types::sp_arithmetic::per_things::PerU16, - ); 13usize], - ::core::primitive::u16, - )>, - pub votes15: ::std::vec::Vec<( - ::core::primitive::u32, - [( - ::core::primitive::u16, - runtime_types::sp_arithmetic::per_things::PerU16, - ); 14usize], - ::core::primitive::u16, - )>, - pub votes16: ::std::vec::Vec<( - ::core::primitive::u32, - [( - ::core::primitive::u16, - runtime_types::sp_arithmetic::per_things::PerU16, - ); 15usize], - ::core::primitive::u16, - )>, - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum OriginCaller { - #[codec(index = 0)] - system( - runtime_types::frame_support::dispatch::RawOrigin< - ::subxt::sp_core::crypto::AccountId32, - >, - ), - #[codec(index = 15)] - Council( - runtime_types::pallet_collective::RawOrigin< - ::subxt::sp_core::crypto::AccountId32, - >, - ), - #[codec(index = 16)] - TechnicalCommittee( - runtime_types::pallet_collective::RawOrigin< - ::subxt::sp_core::crypto::AccountId32, - >, - ), - #[codec(index = 50)] - ParachainsOrigin( - runtime_types::polkadot_runtime_parachains::origin::pallet::Origin, - ), - #[codec(index = 99)] - XcmPallet(runtime_types::pallet_xcm::pallet::Origin), - #[codec(index = 5)] - Void(runtime_types::sp_core::Void), - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub enum ProxyType { - #[codec(index = 0)] - Any, - #[codec(index = 1)] - NonTransfer, - #[codec(index = 2)] - Governance, - #[codec(index = 3)] - Staking, - #[codec(index = 5)] - IdentityJudgement, - #[codec(index = 6)] - CancelProxy, - #[codec(index = 7)] - Auction, - } - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct Runtime; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] - pub struct SessionKeys { - pub grandpa: runtime_types::sp_finality_grandpa::app::Public, - pub babe: runtime_types::sp_consensus_babe::app::Public, - pub im_online: - runtime_types::pallet_im_online::sr25519::app_sr25519::Public, - pub para_validator: - runtime_types::polkadot_primitives::v2::validator_app::Public, - pub para_assignment: - runtime_types::polkadot_primitives::v2::assignment_app::Public, - pub authority_discovery: - runtime_types::sp_authority_discovery::app::Public, - } - } pub mod polkadot_runtime_common { use super::runtime_types; + pub mod assigned_slots { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Call { + # [codec (index = 0)] assign_perm_parachain_slot { id : runtime_types :: polkadot_parachain :: primitives :: Id , } , # [codec (index = 1)] assign_temp_parachain_slot { id : runtime_types :: polkadot_parachain :: primitives :: Id , lease_period_start : runtime_types :: polkadot_runtime_common :: assigned_slots :: SlotLeasePeriodStart , } , # [codec (index = 2)] unassign_parachain_slot { id : runtime_types :: polkadot_parachain :: primitives :: Id , } , } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Error { + #[codec(index = 0)] + ParaDoesntExist, + #[codec(index = 1)] + NotParathread, + #[codec(index = 2)] + CannotUpgrade, + #[codec(index = 3)] + CannotDowngrade, + #[codec(index = 4)] + SlotAlreadyAssigned, + #[codec(index = 5)] + SlotNotAssigned, + #[codec(index = 6)] + OngoingLeaseExists, + #[codec(index = 7)] + MaxPermanentSlotsExceeded, + #[codec(index = 8)] + MaxTemporarySlotsExceeded, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Event { + #[codec(index = 0)] + PermanentSlotAssigned( + runtime_types::polkadot_parachain::primitives::Id, + ), + #[codec(index = 1)] + TemporarySlotAssigned( + runtime_types::polkadot_parachain::primitives::Id, + ), + } + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub struct ParachainTemporarySlot<_0, _1> { + pub manager: _0, + pub period_begin: _1, + pub period_count: _1, + pub last_lease: ::core::option::Option<_1>, + pub lease_count: _1, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum SlotLeasePeriodStart { + #[codec(index = 0)] + Current, + #[codec(index = 1)] + Next, + } + } pub mod auctions { use super::runtime_types; pub mod pallet { @@ -25134,60 +17193,6 @@ pub mod api { } } } - pub mod claims { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Call { - # [codec (index = 0)] claim { dest : :: subxt :: sp_core :: crypto :: AccountId32 , ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature , } , # [codec (index = 1)] 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)] 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)] 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, - )] - pub enum Error { - #[codec(index = 0)] - InvalidEthereumSignature, - #[codec(index = 1)] - SignerHasNoClaim, - #[codec(index = 2)] - SenderHasNoClaim, - #[codec(index = 3)] - PotUnderflow, - #[codec(index = 4)] - InvalidStatement, - #[codec(index = 5)] - VestedBalanceExists, - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum Event { - # [codec (index = 0)] Claimed (:: subxt :: sp_core :: crypto :: AccountId32 , runtime_types :: polkadot_runtime_common :: claims :: EthereumAddress , :: core :: primitive :: u128 ,) , } - } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct EcdsaSignature(pub [::core::primitive::u8; 65usize]); - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct EthereumAddress(pub [::core::primitive::u8; 20usize]); - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct PrevalidateAttests; - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub enum StatementKind { - #[codec(index = 0)] - Regular, - #[codec(index = 1)] - Saft, - } - } pub mod crowdloan { use super::runtime_types; pub mod pallet { @@ -25439,22 +17444,54 @@ pub mod api { ::subxt::sp_core::crypto::AccountId32, ), #[codec(index = 1)] - Deregistered(runtime_types::polkadot_parachain::primitives::Id), + Deregistered(runtime_types::polkadot_parachain::primitives::Id), + #[codec(index = 2)] + Reserved( + runtime_types::polkadot_parachain::primitives::Id, + ::subxt::sp_core::crypto::AccountId32, + ), + } + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub struct ParaInfo<_0, _1> { + pub manager: _0, + pub deposit: _1, + pub locked: ::core::primitive::bool, + } + } + pub mod paras_sudo_wrapper { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Call { + # [codec (index = 0)] sudo_schedule_para_initialize { id : runtime_types :: polkadot_parachain :: primitives :: Id , genesis : runtime_types :: polkadot_runtime_parachains :: paras :: ParaGenesisArgs , } , # [codec (index = 1)] sudo_schedule_para_cleanup { id : runtime_types :: polkadot_parachain :: primitives :: Id , } , # [codec (index = 2)] sudo_schedule_parathread_upgrade { id : runtime_types :: polkadot_parachain :: primitives :: Id , } , # [codec (index = 3)] sudo_schedule_parachain_downgrade { id : runtime_types :: polkadot_parachain :: primitives :: Id , } , # [codec (index = 4)] sudo_queue_downward_xcm { id : runtime_types :: polkadot_parachain :: primitives :: Id , xcm : :: std :: boxed :: Box < runtime_types :: xcm :: VersionedXcm > , } , # [codec (index = 5)] sudo_establish_hrmp_channel { sender : runtime_types :: polkadot_parachain :: primitives :: Id , recipient : runtime_types :: polkadot_parachain :: primitives :: Id , max_capacity : :: core :: primitive :: u32 , max_message_size : :: core :: primitive :: u32 , } , } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Error { + #[codec(index = 0)] + ParaDoesntExist, + #[codec(index = 1)] + ParaAlreadyExists, #[codec(index = 2)] - Reserved( - runtime_types::polkadot_parachain::primitives::Id, - ::subxt::sp_core::crypto::AccountId32, - ), + ExceedsMaxMessageSize, + #[codec(index = 3)] + CouldntCleanup, + #[codec(index = 4)] + NotParathread, + #[codec(index = 5)] + NotParachain, + #[codec(index = 6)] + CannotUpgrade, + #[codec(index = 7)] + CannotDowngrade, } } - #[derive( - :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, - )] - pub struct ParaInfo<_0, _1> { - pub manager: _0, - pub deposit: _1, - pub locked: ::core::primitive::bool, - } } pub mod slots { use super::runtime_types; @@ -26345,6 +18382,97 @@ pub mod api { #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct H256(pub [::core::primitive::u8; 32usize]); } + pub mod rococo_runtime { + use super::runtime_types; + pub mod validator_manager { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Call { + #[codec(index = 0)] + register_validators { + validators: + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + }, + #[codec(index = 1)] + deregister_validators { + validators: + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + }, + } + #[derive( + :: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug, + )] + pub enum Event { + #[codec(index = 0)] + ValidatorsRegistered( + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + ), + #[codec(index = 1)] + ValidatorsDeregistered( + ::std::vec::Vec<::subxt::sp_core::crypto::AccountId32>, + ), + } + } + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub enum Call { + # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Call ,) , # [codec (index = 1)] Babe (runtime_types :: pallet_babe :: pallet :: Call ,) , # [codec (index = 2)] Timestamp (runtime_types :: pallet_timestamp :: pallet :: Call ,) , # [codec (index = 3)] Indices (runtime_types :: pallet_indices :: pallet :: Call ,) , # [codec (index = 4)] Balances (runtime_types :: pallet_balances :: pallet :: Call ,) , # [codec (index = 6)] Authorship (runtime_types :: pallet_authorship :: pallet :: Call ,) , # [codec (index = 9)] Session (runtime_types :: pallet_session :: pallet :: Call ,) , # [codec (index = 10)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Call ,) , # [codec (index = 11)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Call ,) , # [codec (index = 14)] Configuration (runtime_types :: polkadot_runtime_parachains :: configuration :: pallet :: Call ,) , # [codec (index = 15)] ParasShared (runtime_types :: polkadot_runtime_parachains :: shared :: pallet :: Call ,) , # [codec (index = 16)] ParaInclusion (runtime_types :: polkadot_runtime_parachains :: inclusion :: pallet :: Call ,) , # [codec (index = 17)] ParaInherent (runtime_types :: polkadot_runtime_parachains :: paras_inherent :: pallet :: Call ,) , # [codec (index = 19)] Paras (runtime_types :: polkadot_runtime_parachains :: paras :: pallet :: Call ,) , # [codec (index = 20)] Initializer (runtime_types :: polkadot_runtime_parachains :: initializer :: pallet :: Call ,) , # [codec (index = 21)] Dmp (runtime_types :: polkadot_runtime_parachains :: dmp :: pallet :: Call ,) , # [codec (index = 22)] Ump (runtime_types :: polkadot_runtime_parachains :: ump :: pallet :: Call ,) , # [codec (index = 23)] Hrmp (runtime_types :: polkadot_runtime_parachains :: hrmp :: pallet :: Call ,) , # [codec (index = 25)] ParasDisputes (runtime_types :: polkadot_runtime_parachains :: disputes :: pallet :: Call ,) , # [codec (index = 26)] Registrar (runtime_types :: polkadot_runtime_common :: paras_registrar :: pallet :: Call ,) , # [codec (index = 27)] Auctions (runtime_types :: polkadot_runtime_common :: auctions :: pallet :: Call ,) , # [codec (index = 28)] Crowdloan (runtime_types :: polkadot_runtime_common :: crowdloan :: pallet :: Call ,) , # [codec (index = 29)] Slots (runtime_types :: polkadot_runtime_common :: slots :: pallet :: Call ,) , # [codec (index = 30)] ParasSudoWrapper (runtime_types :: polkadot_runtime_common :: paras_sudo_wrapper :: pallet :: Call ,) , # [codec (index = 31)] AssignedSlots (runtime_types :: polkadot_runtime_common :: assigned_slots :: pallet :: Call ,) , # [codec (index = 32)] Sudo (runtime_types :: pallet_sudo :: pallet :: Call ,) , # [codec (index = 34)] Beefy (runtime_types :: pallet_beefy :: pallet :: Call ,) , # [codec (index = 36)] ValidatorManager (runtime_types :: rococo_runtime :: validator_manager :: pallet :: Call ,) , # [codec (index = 40)] BridgeRococoGrandpa (runtime_types :: pallet_bridge_grandpa :: pallet :: Call ,) , # [codec (index = 41)] BridgeWococoGrandpa (runtime_types :: pallet_bridge_grandpa :: pallet :: Call ,) , # [codec (index = 43)] BridgeRococoMessages (runtime_types :: pallet_bridge_messages :: pallet :: Call ,) , # [codec (index = 44)] BridgeWococoMessages (runtime_types :: pallet_bridge_messages :: pallet :: Call ,) , # [codec (index = 80)] Collective (runtime_types :: pallet_collective :: pallet :: Call ,) , # [codec (index = 81)] Membership (runtime_types :: pallet_membership :: pallet :: Call ,) , # [codec (index = 90)] Utility (runtime_types :: pallet_utility :: pallet :: Call ,) , # [codec (index = 91)] Proxy (runtime_types :: pallet_proxy :: pallet :: Call ,) , # [codec (index = 92)] Multisig (runtime_types :: pallet_multisig :: pallet :: Call ,) , # [codec (index = 99)] XcmPallet (runtime_types :: pallet_xcm :: pallet :: Call ,) , } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub enum Event { + # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Event ,) , # [codec (index = 3)] Indices (runtime_types :: pallet_indices :: pallet :: Event ,) , # [codec (index = 4)] Balances (runtime_types :: pallet_balances :: pallet :: Event ,) , # [codec (index = 7)] Offences (runtime_types :: pallet_offences :: pallet :: Event ,) , # [codec (index = 9)] Session (runtime_types :: pallet_session :: pallet :: Event ,) , # [codec (index = 10)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Event ,) , # [codec (index = 11)] ImOnline (runtime_types :: pallet_im_online :: pallet :: Event ,) , # [codec (index = 16)] ParaInclusion (runtime_types :: polkadot_runtime_parachains :: inclusion :: pallet :: Event ,) , # [codec (index = 19)] Paras (runtime_types :: polkadot_runtime_parachains :: paras :: pallet :: Event ,) , # [codec (index = 22)] Ump (runtime_types :: polkadot_runtime_parachains :: ump :: pallet :: Event ,) , # [codec (index = 23)] Hrmp (runtime_types :: polkadot_runtime_parachains :: hrmp :: pallet :: Event ,) , # [codec (index = 25)] ParasDisputes (runtime_types :: polkadot_runtime_parachains :: disputes :: pallet :: Event ,) , # [codec (index = 26)] Registrar (runtime_types :: polkadot_runtime_common :: paras_registrar :: pallet :: Event ,) , # [codec (index = 27)] Auctions (runtime_types :: polkadot_runtime_common :: auctions :: pallet :: Event ,) , # [codec (index = 28)] Crowdloan (runtime_types :: polkadot_runtime_common :: crowdloan :: pallet :: Event ,) , # [codec (index = 29)] Slots (runtime_types :: polkadot_runtime_common :: slots :: pallet :: Event ,) , # [codec (index = 31)] AssignedSlots (runtime_types :: polkadot_runtime_common :: assigned_slots :: pallet :: Event ,) , # [codec (index = 32)] Sudo (runtime_types :: pallet_sudo :: pallet :: Event ,) , # [codec (index = 36)] ValidatorManager (runtime_types :: rococo_runtime :: validator_manager :: pallet :: Event ,) , # [codec (index = 43)] BridgeRococoMessages (runtime_types :: pallet_bridge_messages :: pallet :: Event ,) , # [codec (index = 44)] BridgeWococoMessages (runtime_types :: pallet_bridge_messages :: pallet :: Event ,) , # [codec (index = 45)] BridgeRococoMessagesDispatch (runtime_types :: pallet_bridge_dispatch :: pallet :: Event ,) , # [codec (index = 46)] BridgeWococoMessagesDispatch (runtime_types :: pallet_bridge_dispatch :: pallet :: Event ,) , # [codec (index = 80)] Collective (runtime_types :: pallet_collective :: pallet :: Event ,) , # [codec (index = 81)] Membership (runtime_types :: pallet_membership :: pallet :: Event ,) , # [codec (index = 90)] Utility (runtime_types :: pallet_utility :: pallet :: Event ,) , # [codec (index = 91)] Proxy (runtime_types :: pallet_proxy :: pallet :: Event ,) , # [codec (index = 92)] Multisig (runtime_types :: pallet_multisig :: pallet :: Event ,) , # [codec (index = 99)] XcmPallet (runtime_types :: pallet_xcm :: pallet :: Event ,) , } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub enum OriginCaller { + #[codec(index = 0)] + system( + runtime_types::frame_support::dispatch::RawOrigin< + ::subxt::sp_core::crypto::AccountId32, + >, + ), + #[codec(index = 13)] + ParachainsOrigin( + runtime_types::polkadot_runtime_parachains::origin::pallet::Origin, + ), + #[codec(index = 80)] + Collective( + runtime_types::pallet_collective::RawOrigin< + ::subxt::sp_core::crypto::AccountId32, + >, + ), + #[codec(index = 99)] + XcmPallet(runtime_types::pallet_xcm::pallet::Origin), + #[codec(index = 4)] + Void(runtime_types::sp_core::Void), + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub enum ProxyType { + #[codec(index = 0)] + Any, + #[codec(index = 1)] + CancelProxy, + #[codec(index = 2)] + Auction, + } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct Runtime; + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct SessionKeys { + pub grandpa: runtime_types::sp_finality_grandpa::app::Public, + pub babe: runtime_types::sp_consensus_babe::app::Public, + pub im_online: + runtime_types::pallet_im_online::sr25519::app_sr25519::Public, + pub para_validator: + runtime_types::polkadot_primitives::v2::validator_app::Public, + pub para_assignment: + runtime_types::polkadot_primitives::v2::assignment_app::Public, + pub authority_discovery: + runtime_types::sp_authority_discovery::app::Public, + pub beefy: runtime_types::beefy_primitives::crypto::Public, + } + } pub mod sp_arithmetic { use super::runtime_types; pub mod fixed_point { @@ -26365,28 +18493,7 @@ pub mod api { Debug, :: subxt :: codec :: CompactAs, )] - pub struct PerU16(pub ::core::primitive::u16); - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] pub struct Perbill(pub ::core::primitive::u32); - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct Percent(pub ::core::primitive::u8); - #[derive( - :: subxt :: codec :: Encode, - :: subxt :: codec :: Decode, - Debug, - :: subxt :: codec :: CompactAs, - )] - pub struct Permill(pub ::core::primitive::u32); } } pub mod sp_authority_discovery { @@ -26559,20 +18666,6 @@ pub mod api { runtime_types::sp_finality_grandpa::Equivocation<_0, _1>, } } - pub mod sp_npos_elections { - use super::runtime_types; - #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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)] - pub struct Support<_0> { - pub total: ::core::primitive::u128, - pub voters: ::std::vec::Vec<(_0, ::core::primitive::u128)>, - } - } pub mod sp_runtime { use super::runtime_types; pub mod generic { @@ -27155,7 +19248,7 @@ pub mod api { )] pub struct UncheckedExtrinsic<_0, _1, _2, _3>( pub ::std::vec::Vec<::core::primitive::u8>, - #[codec(skip)] pub ::core::marker::PhantomData<(_1, _0, _2, _3)>, + #[codec(skip)] pub ::core::marker::PhantomData<(_0, _2, _1, _3)>, ); } } @@ -28380,8 +20473,10 @@ pub mod api { T: ::subxt::Config, X: ::subxt::extrinsic::ExtrinsicParams, { - pub fn constants(&'a self) -> ConstantsApi { - ConstantsApi + pub fn constants(&'a self) -> ConstantsApi<'a, T> { + ConstantsApi { + client: &self.client, + } } pub fn storage(&'a self) -> StorageApi<'a, T> { StorageApi { @@ -28437,101 +20532,85 @@ pub mod api { ::subxt::events::subscribe_finalized::(self.client).await } } - pub struct ConstantsApi; - impl ConstantsApi { - pub fn system(&self) -> system::constants::ConstantsApi { - system::constants::ConstantsApi - } - pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { - scheduler::constants::ConstantsApi + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn system(&self) -> system::constants::ConstantsApi<'a, T> { + system::constants::ConstantsApi::new(self.client) } - pub fn babe(&self) -> babe::constants::ConstantsApi { - babe::constants::ConstantsApi + pub fn babe(&self) -> babe::constants::ConstantsApi<'a, T> { + babe::constants::ConstantsApi::new(self.client) } - pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { - timestamp::constants::ConstantsApi + pub fn timestamp(&self) -> timestamp::constants::ConstantsApi<'a, T> { + timestamp::constants::ConstantsApi::new(self.client) } - pub fn indices(&self) -> indices::constants::ConstantsApi { - indices::constants::ConstantsApi + pub fn indices(&self) -> indices::constants::ConstantsApi<'a, T> { + indices::constants::ConstantsApi::new(self.client) } - pub fn balances(&self) -> balances::constants::ConstantsApi { - balances::constants::ConstantsApi + pub fn balances(&self) -> balances::constants::ConstantsApi<'a, T> { + balances::constants::ConstantsApi::new(self.client) } pub fn transaction_payment( &self, - ) -> transaction_payment::constants::ConstantsApi { - transaction_payment::constants::ConstantsApi - } - pub fn authorship(&self) -> authorship::constants::ConstantsApi { - authorship::constants::ConstantsApi - } - pub fn staking(&self) -> staking::constants::ConstantsApi { - staking::constants::ConstantsApi - } - pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { - grandpa::constants::ConstantsApi - } - pub fn im_online(&self) -> im_online::constants::ConstantsApi { - im_online::constants::ConstantsApi - } - pub fn democracy(&self) -> democracy::constants::ConstantsApi { - democracy::constants::ConstantsApi + ) -> transaction_payment::constants::ConstantsApi<'a, T> { + transaction_payment::constants::ConstantsApi::new(self.client) } - pub fn phragmen_election(&self) -> phragmen_election::constants::ConstantsApi { - phragmen_election::constants::ConstantsApi + pub fn authorship(&self) -> authorship::constants::ConstantsApi<'a, T> { + authorship::constants::ConstantsApi::new(self.client) } - pub fn treasury(&self) -> treasury::constants::ConstantsApi { - treasury::constants::ConstantsApi + pub fn grandpa(&self) -> grandpa::constants::ConstantsApi<'a, T> { + grandpa::constants::ConstantsApi::new(self.client) } - pub fn claims(&self) -> claims::constants::ConstantsApi { - claims::constants::ConstantsApi + pub fn im_online(&self) -> im_online::constants::ConstantsApi<'a, T> { + im_online::constants::ConstantsApi::new(self.client) } - pub fn vesting(&self) -> vesting::constants::ConstantsApi { - vesting::constants::ConstantsApi + pub fn paras(&self) -> paras::constants::ConstantsApi<'a, T> { + paras::constants::ConstantsApi::new(self.client) } - pub fn utility(&self) -> utility::constants::ConstantsApi { - utility::constants::ConstantsApi + pub fn registrar(&self) -> registrar::constants::ConstantsApi<'a, T> { + registrar::constants::ConstantsApi::new(self.client) } - pub fn identity(&self) -> identity::constants::ConstantsApi { - identity::constants::ConstantsApi + pub fn auctions(&self) -> auctions::constants::ConstantsApi<'a, T> { + auctions::constants::ConstantsApi::new(self.client) } - pub fn proxy(&self) -> proxy::constants::ConstantsApi { - proxy::constants::ConstantsApi + pub fn crowdloan(&self) -> crowdloan::constants::ConstantsApi<'a, T> { + crowdloan::constants::ConstantsApi::new(self.client) } - pub fn multisig(&self) -> multisig::constants::ConstantsApi { - multisig::constants::ConstantsApi + pub fn slots(&self) -> slots::constants::ConstantsApi<'a, T> { + slots::constants::ConstantsApi::new(self.client) } - pub fn bounties(&self) -> bounties::constants::ConstantsApi { - bounties::constants::ConstantsApi + pub fn assigned_slots(&self) -> assigned_slots::constants::ConstantsApi<'a, T> { + assigned_slots::constants::ConstantsApi::new(self.client) } - pub fn child_bounties(&self) -> child_bounties::constants::ConstantsApi { - child_bounties::constants::ConstantsApi - } - pub fn tips(&self) -> tips::constants::ConstantsApi { - tips::constants::ConstantsApi - } - pub fn election_provider_multi_phase( + pub fn bridge_rococo_grandpa( &self, - ) -> election_provider_multi_phase::constants::ConstantsApi { - election_provider_multi_phase::constants::ConstantsApi + ) -> bridge_rococo_grandpa::constants::ConstantsApi<'a, T> { + bridge_rococo_grandpa::constants::ConstantsApi::new(self.client) } - pub fn bags_list(&self) -> bags_list::constants::ConstantsApi { - bags_list::constants::ConstantsApi + pub fn bridge_wococo_grandpa( + &self, + ) -> bridge_wococo_grandpa::constants::ConstantsApi<'a, T> { + bridge_wococo_grandpa::constants::ConstantsApi::new(self.client) } - pub fn paras(&self) -> paras::constants::ConstantsApi { - paras::constants::ConstantsApi + pub fn bridge_rococo_messages( + &self, + ) -> bridge_rococo_messages::constants::ConstantsApi<'a, T> { + bridge_rococo_messages::constants::ConstantsApi::new(self.client) } - pub fn registrar(&self) -> registrar::constants::ConstantsApi { - registrar::constants::ConstantsApi + pub fn bridge_wococo_messages( + &self, + ) -> bridge_wococo_messages::constants::ConstantsApi<'a, T> { + bridge_wococo_messages::constants::ConstantsApi::new(self.client) } - pub fn slots(&self) -> slots::constants::ConstantsApi { - slots::constants::ConstantsApi + pub fn utility(&self) -> utility::constants::ConstantsApi<'a, T> { + utility::constants::ConstantsApi::new(self.client) } - pub fn auctions(&self) -> auctions::constants::ConstantsApi { - auctions::constants::ConstantsApi + pub fn proxy(&self) -> proxy::constants::ConstantsApi<'a, T> { + proxy::constants::ConstantsApi::new(self.client) } - pub fn crowdloan(&self) -> crowdloan::constants::ConstantsApi { - crowdloan::constants::ConstantsApi + pub fn multisig(&self) -> multisig::constants::ConstantsApi<'a, T> { + multisig::constants::ConstantsApi::new(self.client) } } pub struct StorageApi<'a, T: ::subxt::Config> { @@ -28544,12 +20623,6 @@ pub mod api { pub fn system(&self) -> system::storage::StorageApi<'a, T> { system::storage::StorageApi::new(self.client) } - pub fn scheduler(&self) -> scheduler::storage::StorageApi<'a, T> { - scheduler::storage::StorageApi::new(self.client) - } - pub fn preimage(&self) -> preimage::storage::StorageApi<'a, T> { - preimage::storage::StorageApi::new(self.client) - } pub fn babe(&self) -> babe::storage::StorageApi<'a, T> { babe::storage::StorageApi::new(self.client) } @@ -28570,12 +20643,12 @@ pub mod api { pub fn authorship(&self) -> authorship::storage::StorageApi<'a, T> { authorship::storage::StorageApi::new(self.client) } - pub fn staking(&self) -> staking::storage::StorageApi<'a, T> { - staking::storage::StorageApi::new(self.client) - } pub fn offences(&self) -> offences::storage::StorageApi<'a, T> { offences::storage::StorageApi::new(self.client) } + pub fn historical(&self) -> historical::storage::StorageApi<'a, T> { + historical::storage::StorageApi::new(self.client) + } pub fn session(&self) -> session::storage::StorageApi<'a, T> { session::storage::StorageApi::new(self.client) } @@ -28585,59 +20658,10 @@ pub mod api { pub fn im_online(&self) -> im_online::storage::StorageApi<'a, T> { im_online::storage::StorageApi::new(self.client) } - pub fn democracy(&self) -> democracy::storage::StorageApi<'a, T> { - democracy::storage::StorageApi::new(self.client) - } - pub fn council(&self) -> council::storage::StorageApi<'a, T> { - council::storage::StorageApi::new(self.client) - } - pub fn technical_committee( - &self, - ) -> technical_committee::storage::StorageApi<'a, T> { - technical_committee::storage::StorageApi::new(self.client) - } - pub fn phragmen_election(&self) -> phragmen_election::storage::StorageApi<'a, T> { - phragmen_election::storage::StorageApi::new(self.client) - } - pub fn technical_membership( - &self, - ) -> technical_membership::storage::StorageApi<'a, T> { - technical_membership::storage::StorageApi::new(self.client) - } - pub fn treasury(&self) -> treasury::storage::StorageApi<'a, T> { - treasury::storage::StorageApi::new(self.client) - } - pub fn claims(&self) -> claims::storage::StorageApi<'a, T> { - claims::storage::StorageApi::new(self.client) - } - pub fn vesting(&self) -> vesting::storage::StorageApi<'a, T> { - vesting::storage::StorageApi::new(self.client) - } - pub fn identity(&self) -> identity::storage::StorageApi<'a, T> { - identity::storage::StorageApi::new(self.client) - } - pub fn proxy(&self) -> proxy::storage::StorageApi<'a, T> { - proxy::storage::StorageApi::new(self.client) - } - pub fn multisig(&self) -> multisig::storage::StorageApi<'a, T> { - multisig::storage::StorageApi::new(self.client) - } - pub fn bounties(&self) -> bounties::storage::StorageApi<'a, T> { - bounties::storage::StorageApi::new(self.client) - } - pub fn child_bounties(&self) -> child_bounties::storage::StorageApi<'a, T> { - child_bounties::storage::StorageApi::new(self.client) - } - pub fn tips(&self) -> tips::storage::StorageApi<'a, T> { - tips::storage::StorageApi::new(self.client) - } - pub fn election_provider_multi_phase( + pub fn authority_discovery( &self, - ) -> election_provider_multi_phase::storage::StorageApi<'a, T> { - election_provider_multi_phase::storage::StorageApi::new(self.client) - } - pub fn bags_list(&self) -> bags_list::storage::StorageApi<'a, T> { - bags_list::storage::StorageApi::new(self.client) + ) -> authority_discovery::storage::StorageApi<'a, T> { + authority_discovery::storage::StorageApi::new(self.client) } pub fn configuration(&self) -> configuration::storage::StorageApi<'a, T> { configuration::storage::StorageApi::new(self.client) @@ -28678,15 +20702,65 @@ pub mod api { pub fn registrar(&self) -> registrar::storage::StorageApi<'a, T> { registrar::storage::StorageApi::new(self.client) } - pub fn slots(&self) -> slots::storage::StorageApi<'a, T> { - slots::storage::StorageApi::new(self.client) - } pub fn auctions(&self) -> auctions::storage::StorageApi<'a, T> { auctions::storage::StorageApi::new(self.client) } pub fn crowdloan(&self) -> crowdloan::storage::StorageApi<'a, T> { crowdloan::storage::StorageApi::new(self.client) } + pub fn slots(&self) -> slots::storage::StorageApi<'a, T> { + slots::storage::StorageApi::new(self.client) + } + pub fn assigned_slots(&self) -> assigned_slots::storage::StorageApi<'a, T> { + assigned_slots::storage::StorageApi::new(self.client) + } + pub fn sudo(&self) -> sudo::storage::StorageApi<'a, T> { + sudo::storage::StorageApi::new(self.client) + } + pub fn mmr(&self) -> mmr::storage::StorageApi<'a, T> { + mmr::storage::StorageApi::new(self.client) + } + pub fn beefy(&self) -> beefy::storage::StorageApi<'a, T> { + beefy::storage::StorageApi::new(self.client) + } + pub fn mmr_leaf(&self) -> mmr_leaf::storage::StorageApi<'a, T> { + mmr_leaf::storage::StorageApi::new(self.client) + } + pub fn validator_manager(&self) -> validator_manager::storage::StorageApi<'a, T> { + validator_manager::storage::StorageApi::new(self.client) + } + pub fn bridge_rococo_grandpa( + &self, + ) -> bridge_rococo_grandpa::storage::StorageApi<'a, T> { + bridge_rococo_grandpa::storage::StorageApi::new(self.client) + } + pub fn bridge_wococo_grandpa( + &self, + ) -> bridge_wococo_grandpa::storage::StorageApi<'a, T> { + bridge_wococo_grandpa::storage::StorageApi::new(self.client) + } + pub fn bridge_rococo_messages( + &self, + ) -> bridge_rococo_messages::storage::StorageApi<'a, T> { + bridge_rococo_messages::storage::StorageApi::new(self.client) + } + pub fn bridge_wococo_messages( + &self, + ) -> bridge_wococo_messages::storage::StorageApi<'a, T> { + bridge_wococo_messages::storage::StorageApi::new(self.client) + } + pub fn collective(&self) -> collective::storage::StorageApi<'a, T> { + collective::storage::StorageApi::new(self.client) + } + pub fn membership(&self) -> membership::storage::StorageApi<'a, T> { + membership::storage::StorageApi::new(self.client) + } + pub fn proxy(&self) -> proxy::storage::StorageApi<'a, T> { + proxy::storage::StorageApi::new(self.client) + } + pub fn multisig(&self) -> multisig::storage::StorageApi<'a, T> { + multisig::storage::StorageApi::new(self.client) + } pub fn xcm_pallet(&self) -> xcm_pallet::storage::StorageApi<'a, T> { xcm_pallet::storage::StorageApi::new(self.client) } @@ -28703,12 +20777,6 @@ pub mod api { pub fn system(&self) -> system::calls::TransactionApi<'a, T, X> { system::calls::TransactionApi::new(self.client) } - pub fn scheduler(&self) -> scheduler::calls::TransactionApi<'a, T, X> { - scheduler::calls::TransactionApi::new(self.client) - } - pub fn preimage(&self) -> preimage::calls::TransactionApi<'a, T, X> { - preimage::calls::TransactionApi::new(self.client) - } pub fn babe(&self) -> babe::calls::TransactionApi<'a, T, X> { babe::calls::TransactionApi::new(self.client) } @@ -28724,9 +20792,6 @@ pub mod api { pub fn authorship(&self) -> authorship::calls::TransactionApi<'a, T, X> { authorship::calls::TransactionApi::new(self.client) } - pub fn staking(&self) -> staking::calls::TransactionApi<'a, T, X> { - staking::calls::TransactionApi::new(self.client) - } pub fn session(&self) -> session::calls::TransactionApi<'a, T, X> { session::calls::TransactionApi::new(self.client) } @@ -28736,65 +20801,6 @@ pub mod api { pub fn im_online(&self) -> im_online::calls::TransactionApi<'a, T, X> { im_online::calls::TransactionApi::new(self.client) } - pub fn democracy(&self) -> democracy::calls::TransactionApi<'a, T, X> { - democracy::calls::TransactionApi::new(self.client) - } - pub fn council(&self) -> council::calls::TransactionApi<'a, T, X> { - council::calls::TransactionApi::new(self.client) - } - pub fn technical_committee( - &self, - ) -> technical_committee::calls::TransactionApi<'a, T, X> { - technical_committee::calls::TransactionApi::new(self.client) - } - pub fn phragmen_election( - &self, - ) -> phragmen_election::calls::TransactionApi<'a, T, X> { - phragmen_election::calls::TransactionApi::new(self.client) - } - pub fn technical_membership( - &self, - ) -> technical_membership::calls::TransactionApi<'a, T, X> { - technical_membership::calls::TransactionApi::new(self.client) - } - pub fn treasury(&self) -> treasury::calls::TransactionApi<'a, T, X> { - treasury::calls::TransactionApi::new(self.client) - } - pub fn claims(&self) -> claims::calls::TransactionApi<'a, T, X> { - claims::calls::TransactionApi::new(self.client) - } - pub fn vesting(&self) -> vesting::calls::TransactionApi<'a, T, X> { - vesting::calls::TransactionApi::new(self.client) - } - pub fn utility(&self) -> utility::calls::TransactionApi<'a, T, X> { - utility::calls::TransactionApi::new(self.client) - } - pub fn identity(&self) -> identity::calls::TransactionApi<'a, T, X> { - identity::calls::TransactionApi::new(self.client) - } - pub fn proxy(&self) -> proxy::calls::TransactionApi<'a, T, X> { - proxy::calls::TransactionApi::new(self.client) - } - pub fn multisig(&self) -> multisig::calls::TransactionApi<'a, T, X> { - multisig::calls::TransactionApi::new(self.client) - } - pub fn bounties(&self) -> bounties::calls::TransactionApi<'a, T, X> { - bounties::calls::TransactionApi::new(self.client) - } - pub fn child_bounties(&self) -> child_bounties::calls::TransactionApi<'a, T, X> { - child_bounties::calls::TransactionApi::new(self.client) - } - pub fn tips(&self) -> tips::calls::TransactionApi<'a, T, X> { - tips::calls::TransactionApi::new(self.client) - } - pub fn election_provider_multi_phase( - &self, - ) -> election_provider_multi_phase::calls::TransactionApi<'a, T, X> { - election_provider_multi_phase::calls::TransactionApi::new(self.client) - } - pub fn bags_list(&self) -> bags_list::calls::TransactionApi<'a, T, X> { - bags_list::calls::TransactionApi::new(self.client) - } pub fn configuration(&self) -> configuration::calls::TransactionApi<'a, T, X> { configuration::calls::TransactionApi::new(self.client) } @@ -28828,15 +20834,69 @@ pub mod api { pub fn registrar(&self) -> registrar::calls::TransactionApi<'a, T, X> { registrar::calls::TransactionApi::new(self.client) } - pub fn slots(&self) -> slots::calls::TransactionApi<'a, T, X> { - slots::calls::TransactionApi::new(self.client) - } pub fn auctions(&self) -> auctions::calls::TransactionApi<'a, T, X> { auctions::calls::TransactionApi::new(self.client) } pub fn crowdloan(&self) -> crowdloan::calls::TransactionApi<'a, T, X> { crowdloan::calls::TransactionApi::new(self.client) } + pub fn slots(&self) -> slots::calls::TransactionApi<'a, T, X> { + slots::calls::TransactionApi::new(self.client) + } + pub fn paras_sudo_wrapper( + &self, + ) -> paras_sudo_wrapper::calls::TransactionApi<'a, T, X> { + paras_sudo_wrapper::calls::TransactionApi::new(self.client) + } + pub fn assigned_slots(&self) -> assigned_slots::calls::TransactionApi<'a, T, X> { + assigned_slots::calls::TransactionApi::new(self.client) + } + pub fn sudo(&self) -> sudo::calls::TransactionApi<'a, T, X> { + sudo::calls::TransactionApi::new(self.client) + } + pub fn beefy(&self) -> beefy::calls::TransactionApi<'a, T, X> { + beefy::calls::TransactionApi::new(self.client) + } + pub fn validator_manager( + &self, + ) -> validator_manager::calls::TransactionApi<'a, T, X> { + validator_manager::calls::TransactionApi::new(self.client) + } + pub fn bridge_rococo_grandpa( + &self, + ) -> bridge_rococo_grandpa::calls::TransactionApi<'a, T, X> { + bridge_rococo_grandpa::calls::TransactionApi::new(self.client) + } + pub fn bridge_wococo_grandpa( + &self, + ) -> bridge_wococo_grandpa::calls::TransactionApi<'a, T, X> { + bridge_wococo_grandpa::calls::TransactionApi::new(self.client) + } + pub fn bridge_rococo_messages( + &self, + ) -> bridge_rococo_messages::calls::TransactionApi<'a, T, X> { + bridge_rococo_messages::calls::TransactionApi::new(self.client) + } + pub fn bridge_wococo_messages( + &self, + ) -> bridge_wococo_messages::calls::TransactionApi<'a, T, X> { + bridge_wococo_messages::calls::TransactionApi::new(self.client) + } + pub fn collective(&self) -> collective::calls::TransactionApi<'a, T, X> { + collective::calls::TransactionApi::new(self.client) + } + pub fn membership(&self) -> membership::calls::TransactionApi<'a, T, X> { + membership::calls::TransactionApi::new(self.client) + } + pub fn utility(&self) -> utility::calls::TransactionApi<'a, T, X> { + utility::calls::TransactionApi::new(self.client) + } + pub fn proxy(&self) -> proxy::calls::TransactionApi<'a, T, X> { + proxy::calls::TransactionApi::new(self.client) + } + pub fn multisig(&self) -> multisig::calls::TransactionApi<'a, T, X> { + multisig::calls::TransactionApi::new(self.client) + } pub fn xcm_pallet(&self) -> xcm_pallet::calls::TransactionApi<'a, T, X> { xcm_pallet::calls::TransactionApi::new(self.client) } From 03424f1b193694238526af40857804919c805d2a Mon Sep 17 00:00:00 2001 From: ascjones Date: Thu, 31 Mar 2022 11:20:55 +0100 Subject: [PATCH 4/4] Update polkadot.rs --- subxt/tests/integration/codegen/polkadot.rs | 2178 +++++++++---------- 1 file changed, 1016 insertions(+), 1162 deletions(-) diff --git a/subxt/tests/integration/codegen/polkadot.rs b/subxt/tests/integration/codegen/polkadot.rs index d98c6352802..2f63c633cb5 100644 --- a/subxt/tests/integration/codegen/polkadot.rs +++ b/subxt/tests/integration/codegen/polkadot.rs @@ -79,15 +79,11 @@ pub mod api { XcmPallet(xcm_pallet::Event), } pub mod system { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct FillBlock { @@ -751,28 +747,23 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn block_weights( &self, ) -> ::core::result::Result< runtime_types::frame_system::limits::BlockWeights, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 242u8, 5u8, 42u8, 1u8, 0u8, 0u8, 0u8, 0u8, 32u8, 74u8, - 169u8, 209u8, 1u8, 0u8, 0u8, 64u8, 89u8, 115u8, 7u8, 0u8, - 0u8, 0u8, 0u8, 1u8, 192u8, 118u8, 108u8, 143u8, 88u8, 1u8, - 0u8, 0u8, 1u8, 0u8, 152u8, 247u8, 62u8, 93u8, 1u8, 0u8, 0u8, - 1u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 64u8, 89u8, - 115u8, 7u8, 0u8, 0u8, 0u8, 0u8, 1u8, 192u8, 254u8, 190u8, - 249u8, 204u8, 1u8, 0u8, 0u8, 1u8, 0u8, 32u8, 74u8, 169u8, - 209u8, 1u8, 0u8, 0u8, 1u8, 0u8, 136u8, 82u8, 106u8, 116u8, - 0u8, 0u8, 0u8, 64u8, 89u8, 115u8, 7u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("BlockWeights")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn block_length( &self, @@ -780,19 +771,19 @@ pub mod api { runtime_types::frame_system::limits::BlockLength, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 0u8, 60u8, 0u8, 0u8, 0u8, 80u8, 0u8, 0u8, 0u8, 80u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("BlockLength")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn block_hash_count( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[96u8, 9u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("BlockHashCount")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn db_weight( &self, @@ -800,12 +791,10 @@ pub mod api { runtime_types::frame_support::weights::RuntimeDbWeight, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 64u8, 120u8, 125u8, 1u8, 0u8, 0u8, 0u8, 0u8, 0u8, 225u8, - 245u8, 5u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("DbWeight")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn version( &self, @@ -813,52 +802,29 @@ pub mod api { runtime_types::sp_version::RuntimeVersion, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 32u8, 112u8, 111u8, 108u8, 107u8, 97u8, 100u8, 111u8, 116u8, - 60u8, 112u8, 97u8, 114u8, 105u8, 116u8, 121u8, 45u8, 112u8, - 111u8, 108u8, 107u8, 97u8, 100u8, 111u8, 116u8, 0u8, 0u8, - 0u8, 0u8, 220u8, 35u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 56u8, - 223u8, 106u8, 203u8, 104u8, 153u8, 7u8, 96u8, 155u8, 4u8, - 0u8, 0u8, 0u8, 55u8, 227u8, 151u8, 252u8, 124u8, 145u8, - 245u8, 228u8, 1u8, 0u8, 0u8, 0u8, 64u8, 254u8, 58u8, 212u8, - 1u8, 248u8, 149u8, 154u8, 5u8, 0u8, 0u8, 0u8, 210u8, 188u8, - 152u8, 151u8, 238u8, 208u8, 143u8, 21u8, 3u8, 0u8, 0u8, 0u8, - 247u8, 139u8, 39u8, 139u8, 229u8, 63u8, 69u8, 76u8, 2u8, 0u8, - 0u8, 0u8, 175u8, 44u8, 2u8, 151u8, 162u8, 62u8, 109u8, 61u8, - 2u8, 0u8, 0u8, 0u8, 73u8, 234u8, 175u8, 27u8, 84u8, 138u8, - 12u8, 176u8, 1u8, 0u8, 0u8, 0u8, 145u8, 213u8, 223u8, 24u8, - 176u8, 210u8, 207u8, 88u8, 1u8, 0u8, 0u8, 0u8, 237u8, 153u8, - 197u8, 172u8, 178u8, 94u8, 237u8, 245u8, 3u8, 0u8, 0u8, 0u8, - 203u8, 202u8, 37u8, 227u8, 159u8, 20u8, 35u8, 135u8, 2u8, - 0u8, 0u8, 0u8, 104u8, 122u8, 212u8, 74u8, 211u8, 127u8, 3u8, - 194u8, 1u8, 0u8, 0u8, 0u8, 171u8, 60u8, 5u8, 114u8, 41u8, - 31u8, 235u8, 139u8, 1u8, 0u8, 0u8, 0u8, 188u8, 157u8, 137u8, - 144u8, 79u8, 91u8, 146u8, 63u8, 1u8, 0u8, 0u8, 0u8, 55u8, - 200u8, 187u8, 19u8, 80u8, 169u8, 162u8, 168u8, 1u8, 0u8, 0u8, - 0u8, 12u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("Version")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn ss58_prefix( &self, ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode(&mut &[0u8, 0u8][..])?) + let pallet = self.client.metadata().pallet("System")?; + let constant = pallet.constant("SS58Prefix")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod scheduler { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Schedule { @@ -1244,37 +1210,40 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn maximum_weight( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 128u8, 110u8, 135u8, 116u8, 1u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Scheduler")?; + let constant = pallet.constant("MaximumWeight")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_scheduled_per_block( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[50u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Scheduler")?; + let constant = pallet.constant("MaxScheduledPerBlock")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod preimage { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct NotePreimage { @@ -1501,15 +1470,11 @@ pub mod api { } } pub mod babe { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct ReportEquivocation { @@ -1945,45 +1910,49 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn epoch_duration( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[96u8, 9u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Babe")?; + let constant = pallet.constant("EpochDuration")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn expected_block_time( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[112u8, 23u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Babe")?; + let constant = pallet.constant("ExpectedBlockTime")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_authorities( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[160u8, 134u8, 1u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Babe")?; + let constant = pallet.constant("MaxAuthorities")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod timestamp { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Set { @@ -2072,29 +2041,31 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn minimum_period( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[184u8, 11u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Timestamp")?; + let constant = pallet.constant("MinimumPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod indices { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive( :: subxt :: codec :: Encode, @@ -2332,32 +2303,31 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 232u8, 118u8, 72u8, 23u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Indices")?; + let constant = pallet.constant("Deposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod balances { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Transfer { @@ -2827,43 +2797,46 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn existential_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Balances")?; + let constant = pallet.constant("ExistentialDeposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_locks( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[50u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Balances")?; + let constant = pallet.constant("MaxLocks")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_reserves( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[50u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Balances")?; + let constant = pallet.constant("MaxReserves")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod transaction_payment { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod storage { use super::runtime_types; pub struct NextFeeMultiplier; @@ -2915,24 +2888,30 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn transaction_byte_fee( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 64u8, 66u8, 15u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("TransactionPayment")?; + let constant = pallet.constant("TransactionByteFee")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn operational_fee_multiplier( &self, ) -> ::core::result::Result<::core::primitive::u8, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode(&mut &[5u8][..])?) + let pallet = self.client.metadata().pallet("TransactionPayment")?; + let constant = pallet.constant("OperationalFeeMultiplier")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn weight_to_fee( &self, @@ -2944,26 +2923,20 @@ pub mod api { >, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 4u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 180u8, 196u8, 4u8, 0u8, 1u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("TransactionPayment")?; + let constant = pallet.constant("WeightToFee")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod authorship { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct SetUncles { @@ -3094,29 +3067,31 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn uncle_generations( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Authorship")?; + let constant = pallet.constant("UncleGenerations")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod staking { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Bond { @@ -4982,64 +4957,73 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn max_nominations( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[16u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Staking")?; + let constant = pallet.constant("MaxNominations")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn sessions_per_era( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[6u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Staking")?; + let constant = pallet.constant("SessionsPerEra")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn bonding_duration( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[28u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Staking")?; + let constant = pallet.constant("BondingDuration")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn slash_defer_duration( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[27u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Staking")?; + let constant = pallet.constant("SlashDeferDuration")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_nominator_rewarded_per_validator( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 1u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Staking")?; + let constant = pallet.constant("MaxNominatorRewardedPerValidator")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_unlocking_chunks( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[32u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Staking")?; + let constant = pallet.constant("MaxUnlockingChunks")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod offences { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub type Event = runtime_types::pallet_offences::pallet::Event; pub mod events { use super::runtime_types; @@ -5192,21 +5176,15 @@ pub mod api { } } pub mod historical { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; } pub mod session { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct SetKeys { @@ -5463,15 +5441,11 @@ pub mod api { } } pub mod grandpa { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct ReportEquivocation { @@ -5756,29 +5730,31 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn max_authorities( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[160u8, 134u8, 1u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Grandpa")?; + let constant = pallet.constant("MaxAuthorities")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod im_online { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Heartbeat { @@ -5991,35 +5967,35 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn unsigned_priority( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[255u8, 255u8, 255u8, 255u8, 255u8, 255u8, 255u8, 255u8][..], - )?) + let pallet = self.client.metadata().pallet("ImOnline")?; + let constant = pallet.constant("UnsignedPriority")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod authority_discovery { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; } pub mod democracy { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Propose { @@ -7228,113 +7204,121 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn enactment_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 39u8, 6u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("EnactmentPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn launch_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 39u8, 6u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("LaunchPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn voting_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 39u8, 6u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("VotingPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn vote_locking_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 39u8, 6u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("VoteLockingPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn minimum_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 16u8, 165u8, 212u8, 232u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("MinimumDeposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn instant_allowed( &self, ) -> ::core::result::Result<::core::primitive::bool, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode(&mut &[1u8][..])?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("InstantAllowed")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn fast_track_voting_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[8u8, 7u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("FastTrackVotingPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn cooloff_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[192u8, 137u8, 1u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("CooloffPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn preimage_byte_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 128u8, 150u8, 152u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("PreimageByteDeposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_votes( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("MaxVotes")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_proposals( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Democracy")?; + let constant = pallet.constant("MaxProposals")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod council { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct SetMembers { @@ -7769,15 +7753,11 @@ pub mod api { } } pub mod technical_committee { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct SetMembers { @@ -8212,15 +8192,11 @@ pub mod api { } } pub mod phragmen_election { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Vote { @@ -8600,88 +8576,87 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn pallet_id( &self, ) -> ::core::result::Result< [::core::primitive::u8; 8usize], ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[112u8, 104u8, 114u8, 101u8, 108u8, 101u8, 99u8, 116u8][..], - )?) + let pallet = self.client.metadata().pallet("PhragmenElection")?; + let constant = pallet.constant("PalletId")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn candidacy_bond( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 16u8, 165u8, 212u8, 232u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("PhragmenElection")?; + let constant = pallet.constant("CandidacyBond")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn voting_bond_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 112u8, 19u8, 183u8, 46u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("PhragmenElection")?; + let constant = pallet.constant("VotingBondBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn voting_bond_factor( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 208u8, 18u8, 19u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("PhragmenElection")?; + let constant = pallet.constant("VotingBondFactor")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn desired_members( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[13u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("PhragmenElection")?; + let constant = pallet.constant("DesiredMembers")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn desired_runners_up( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[20u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("PhragmenElection")?; + let constant = pallet.constant("DesiredRunnersUp")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn term_duration( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[192u8, 137u8, 1u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("PhragmenElection")?; + let constant = pallet.constant("TermDuration")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod technical_membership { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct AddMember { @@ -8944,15 +8919,11 @@ pub mod api { } } pub mod treasury { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct ProposeSpend { @@ -9230,28 +9201,32 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn proposal_bond( &self, ) -> ::core::result::Result< runtime_types::sp_arithmetic::per_things::Permill, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[80u8, 195u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Treasury")?; + let constant = pallet.constant("ProposalBond")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn proposal_bond_minimum( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 16u8, 165u8, 212u8, 232u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Treasury")?; + let constant = pallet.constant("ProposalBondMinimum")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn proposal_bond_maximum( &self, @@ -9259,20 +9234,19 @@ pub mod api { ::core::option::Option<::core::primitive::u128>, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 1u8, 0u8, 80u8, 57u8, 39u8, 140u8, 4u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Treasury")?; + let constant = pallet.constant("ProposalBondMaximum")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn spend_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 70u8, 5u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Treasury")?; + let constant = pallet.constant("SpendPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn burn( &self, @@ -9280,9 +9254,10 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Permill, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[16u8, 39u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Treasury")?; + let constant = pallet.constant("Burn")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn pallet_id( &self, @@ -9290,31 +9265,29 @@ pub mod api { runtime_types::frame_support::PalletId, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[112u8, 121u8, 47u8, 116u8, 114u8, 115u8, 114u8, 121u8][..], - )?) + let pallet = self.client.metadata().pallet("Treasury")?; + let constant = pallet.constant("PalletId")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_approvals( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Treasury")?; + let constant = pallet.constant("MaxApprovals")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod claims { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Claim { @@ -9684,36 +9657,33 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn prefix( &self, ) -> ::core::result::Result< ::std::vec::Vec<::core::primitive::u8>, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 132u8, 80u8, 97u8, 121u8, 32u8, 68u8, 79u8, 84u8, 115u8, - 32u8, 116u8, 111u8, 32u8, 116u8, 104u8, 101u8, 32u8, 80u8, - 111u8, 108u8, 107u8, 97u8, 100u8, 111u8, 116u8, 32u8, 97u8, - 99u8, 99u8, 111u8, 117u8, 110u8, 116u8, 58u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Claims")?; + let constant = pallet.constant("Prefix")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod vesting { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Vest; @@ -9988,40 +9958,40 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn min_vested_transfer( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Vesting")?; + let constant = pallet.constant("MinVestedTransfer")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_vesting_schedules( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[28u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Vesting")?; + let constant = pallet.constant("MaxVestingSchedules")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod utility { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Batch { @@ -10175,29 +10145,31 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn batched_calls_limit( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[170u8, 42u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Utility")?; + let constant = pallet.constant("batched_calls_limit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod identity { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct AddRegistrar { @@ -10885,78 +10857,76 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn basic_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 125u8, 181u8, 42u8, 47u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Identity")?; + let constant = pallet.constant("BasicDeposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn field_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 205u8, 86u8, 39u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Identity")?; + let constant = pallet.constant("FieldDeposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn sub_account_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 128u8, 248u8, 132u8, 176u8, 46u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Identity")?; + let constant = pallet.constant("SubAccountDeposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_sub_accounts( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Identity")?; + let constant = pallet.constant("MaxSubAccounts")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_additional_fields( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Identity")?; + let constant = pallet.constant("MaxAdditionalFields")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_registrars( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[20u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Identity")?; + let constant = pallet.constant("MaxRegistrars")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod proxy { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Proxy { @@ -11310,6 +11280,17 @@ pub mod api { const PALLET: &'static str = "Proxy"; const EVENT: &'static str = "ProxyAdded"; } + #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] + pub struct ProxyRemoved { + pub delegator: ::subxt::sp_core::crypto::AccountId32, + pub delegatee: ::subxt::sp_core::crypto::AccountId32, + pub proxy_type: runtime_types::polkadot_runtime::ProxyType, + pub delay: ::core::primitive::u32, + } + impl ::subxt::Event for ProxyRemoved { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "ProxyRemoved"; + } } pub mod storage { use super::runtime_types; @@ -11424,81 +11405,76 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn proxy_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 132u8, 178u8, 149u8, 46u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("ProxyDepositBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn proxy_deposit_factor( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 128u8, 102u8, 171u8, 19u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("ProxyDepositFactor")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_proxies( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[32u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("MaxProxies")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_pending( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[32u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("MaxPending")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn announcement_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 132u8, 178u8, 149u8, 46u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("AnnouncementDepositBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn announcement_deposit_factor( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 205u8, 86u8, 39u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Proxy")?; + let constant = pallet.constant("AnnouncementDepositFactor")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod multisig { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct AsMultiThreshold1 { @@ -11835,49 +11811,49 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 140u8, 97u8, 197u8, 46u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Multisig")?; + let constant = pallet.constant("DepositBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn deposit_factor( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 208u8, 18u8, 19u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Multisig")?; + let constant = pallet.constant("DepositFactor")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_signatories( &self, ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode(&mut &[100u8, 0u8][..])?) + let pallet = self.client.metadata().pallet("Multisig")?; + let constant = pallet.constant("MaxSignatories")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod bounties { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct ProposeBounty { @@ -12352,88 +12328,109 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn bounty_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("BountyDepositBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn bounty_deposit_payout_delay( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 194u8, 1u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("BountyDepositPayoutDelay")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn bounty_update_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[128u8, 198u8, 19u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("BountyUpdatePeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } - pub fn bounty_curator_deposit( + pub fn curator_deposit_multiplier( &self, ) -> ::core::result::Result< runtime_types::sp_arithmetic::per_things::Permill, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[32u8, 161u8, 7u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("CuratorDepositMultiplier")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn curator_deposit_max( + &self, + ) -> ::core::result::Result< + ::core::option::Option<::core::primitive::u128>, + ::subxt::BasicError, + > { + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("CuratorDepositMax")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) + } + pub fn curator_deposit_min( + &self, + ) -> ::core::result::Result< + ::core::option::Option<::core::primitive::u128>, + ::subxt::BasicError, + > { + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("CuratorDepositMin")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn bounty_value_minimum( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 232u8, 118u8, 72u8, 23u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("BountyValueMinimum")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn data_deposit_per_byte( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 225u8, 245u8, 5u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("DataDepositPerByte")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn maximum_reason_length( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 64u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Bounties")?; + let constant = pallet.constant("MaximumReasonLength")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod child_bounties { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct AddChildBounty { @@ -12904,50 +12901,40 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn max_active_child_bounty_count( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[100u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("ChildBounties")?; + let constant = pallet.constant("MaxActiveChildBountyCount")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn child_bounty_value_minimum( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) - } - pub fn child_bounty_curator_deposit_base( - &self, - ) -> ::core::result::Result< - runtime_types::sp_arithmetic::per_things::Permill, - ::subxt::BasicError, - > { - Ok(::subxt::codec::Decode::decode( - &mut &[16u8, 39u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("ChildBounties")?; + let constant = pallet.constant("ChildBountyValueMinimum")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod tips { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct ReportAwesome { @@ -13249,34 +13236,39 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn maximum_reason_length( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 64u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Tips")?; + let constant = pallet.constant("MaximumReasonLength")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn data_deposit_per_byte( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 225u8, 245u8, 5u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Tips")?; + let constant = pallet.constant("DataDepositPerByte")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn tip_countdown( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[64u8, 56u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Tips")?; + let constant = pallet.constant("TipCountdown")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn tip_finders_fee( &self, @@ -13284,32 +13276,29 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Percent, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode(&mut &[20u8][..])?) + let pallet = self.client.metadata().pallet("Tips")?; + let constant = pallet.constant("TipFindersFee")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn tip_report_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Tips")?; + let constant = pallet.constant("TipReportDepositBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod election_provider_multi_phase { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, 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 , } @@ -13720,23 +13709,36 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn unsigned_phase( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[88u8, 2u8, 0u8, 0u8][..], - )?) + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("UnsignedPhase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn signed_phase( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[88u8, 2u8, 0u8, 0u8][..], - )?) + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("SignedPhase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn solution_improvement_threshold( &self, @@ -13744,129 +13746,167 @@ pub mod api { runtime_types::sp_arithmetic::per_things::Perbill, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[32u8, 161u8, 7u8, 0u8][..], - )?) + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("SolutionImprovementThreshold")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn offchain_repeat( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[18u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("OffchainRepeat")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn miner_tx_priority( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[101u8, 102u8, 102u8, 102u8, 102u8, 102u8, 102u8, 230u8][..], - )?) + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("MinerTxPriority")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn miner_max_weight( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[192u8, 132u8, 102u8, 101u8, 87u8, 1u8, 0u8, 0u8][..], - )?) + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("MinerMaxWeight")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn signed_max_submissions( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[16u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("SignedMaxSubmissions")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn signed_max_weight( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[192u8, 132u8, 102u8, 101u8, 87u8, 1u8, 0u8, 0u8][..], - )?) + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("SignedMaxWeight")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn signed_reward_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("SignedRewardBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn signed_deposit_base( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 160u8, 219u8, 33u8, 93u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("SignedDepositBase")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn signed_deposit_byte( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 120u8, 125u8, 1u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("SignedDepositByte")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn signed_deposit_weight( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("SignedDepositWeight")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_electing_voters( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[228u8, 87u8, 0u8, 0u8][..], - )?) + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("MaxElectingVoters")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn max_electable_targets( &self, ) -> ::core::result::Result<::core::primitive::u16, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode(&mut &[255u8, 255u8][..])?) + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("MaxElectableTargets")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn miner_max_length( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 0u8, 54u8, 0u8][..], - )?) + let pallet = self + .client + .metadata() + .pallet("ElectionProviderMultiPhase")?; + let constant = pallet.constant("MinerMaxLength")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod bags_list { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Rebag { @@ -14037,206 +14077,37 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn bag_thresholds( &self, ) -> ::core::result::Result< ::std::vec::Vec<::core::primitive::u64>, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 33u8, 3u8, 0u8, 228u8, 11u8, 84u8, 2u8, 0u8, 0u8, 0u8, 243u8, - 158u8, 128u8, 151u8, 2u8, 0u8, 0u8, 0u8, 168u8, 177u8, 151u8, - 226u8, 2u8, 0u8, 0u8, 0u8, 148u8, 73u8, 46u8, 54u8, 3u8, 0u8, - 0u8, 0u8, 39u8, 156u8, 58u8, 147u8, 3u8, 0u8, 0u8, 0u8, 3u8, - 188u8, 206u8, 250u8, 3u8, 0u8, 0u8, 0u8, 66u8, 192u8, 27u8, - 110u8, 4u8, 0u8, 0u8, 0u8, 27u8, 71u8, 117u8, 238u8, 4u8, - 0u8, 0u8, 0u8, 56u8, 94u8, 85u8, 125u8, 5u8, 0u8, 0u8, 0u8, - 70u8, 220u8, 96u8, 28u8, 6u8, 0u8, 0u8, 0u8, 137u8, 56u8, - 108u8, 205u8, 6u8, 0u8, 0u8, 0u8, 182u8, 238u8, 128u8, 146u8, - 7u8, 0u8, 0u8, 0u8, 254u8, 126u8, 227u8, 109u8, 8u8, 0u8, - 0u8, 0u8, 232u8, 27u8, 26u8, 98u8, 9u8, 0u8, 0u8, 0u8, 176u8, - 25u8, 244u8, 113u8, 10u8, 0u8, 0u8, 0u8, 16u8, 53u8, 146u8, - 160u8, 11u8, 0u8, 0u8, 0u8, 207u8, 201u8, 111u8, 241u8, 12u8, - 0u8, 0u8, 0u8, 65u8, 20u8, 109u8, 104u8, 14u8, 0u8, 0u8, 0u8, - 231u8, 155u8, 218u8, 9u8, 16u8, 0u8, 0u8, 0u8, 206u8, 232u8, - 133u8, 218u8, 17u8, 0u8, 0u8, 0u8, 40u8, 169u8, 199u8, 223u8, - 19u8, 0u8, 0u8, 0u8, 187u8, 112u8, 147u8, 31u8, 22u8, 0u8, - 0u8, 0u8, 142u8, 64u8, 137u8, 160u8, 24u8, 0u8, 0u8, 0u8, - 129u8, 10u8, 9u8, 106u8, 27u8, 0u8, 0u8, 0u8, 54u8, 106u8, - 72u8, 132u8, 30u8, 0u8, 0u8, 0u8, 91u8, 211u8, 106u8, 248u8, - 33u8, 0u8, 0u8, 0u8, 128u8, 124u8, 156u8, 208u8, 37u8, 0u8, - 0u8, 0u8, 201u8, 85u8, 48u8, 24u8, 42u8, 0u8, 0u8, 0u8, - 189u8, 99u8, 193u8, 219u8, 46u8, 0u8, 0u8, 0u8, 113u8, 224u8, - 87u8, 41u8, 52u8, 0u8, 0u8, 0u8, 104u8, 144u8, 146u8, 16u8, - 58u8, 0u8, 0u8, 0u8, 237u8, 196u8, 212u8, 162u8, 64u8, 0u8, - 0u8, 0u8, 105u8, 147u8, 121u8, 243u8, 71u8, 0u8, 0u8, 0u8, - 143u8, 216u8, 12u8, 24u8, 80u8, 0u8, 0u8, 0u8, 75u8, 175u8, - 138u8, 40u8, 89u8, 0u8, 0u8, 0u8, 106u8, 22u8, 166u8, 63u8, - 99u8, 0u8, 0u8, 0u8, 9u8, 149u8, 23u8, 123u8, 110u8, 0u8, - 0u8, 0u8, 120u8, 197u8, 244u8, 251u8, 122u8, 0u8, 0u8, 0u8, - 98u8, 200u8, 17u8, 231u8, 136u8, 0u8, 0u8, 0u8, 81u8, 191u8, - 109u8, 101u8, 152u8, 0u8, 0u8, 0u8, 4u8, 142u8, 171u8, 164u8, - 169u8, 0u8, 0u8, 0u8, 84u8, 70u8, 152u8, 215u8, 188u8, 0u8, - 0u8, 0u8, 145u8, 202u8, 192u8, 54u8, 210u8, 0u8, 0u8, 0u8, - 23u8, 95u8, 24u8, 1u8, 234u8, 0u8, 0u8, 0u8, 189u8, 21u8, - 178u8, 124u8, 4u8, 1u8, 0u8, 0u8, 67u8, 53u8, 143u8, 247u8, - 33u8, 1u8, 0u8, 0u8, 184u8, 252u8, 132u8, 200u8, 66u8, 1u8, - 0u8, 0u8, 153u8, 103u8, 60u8, 80u8, 103u8, 1u8, 0u8, 0u8, - 7u8, 228u8, 78u8, 250u8, 143u8, 1u8, 0u8, 0u8, 179u8, 65u8, - 131u8, 62u8, 189u8, 1u8, 0u8, 0u8, 2u8, 127u8, 46u8, 162u8, - 239u8, 1u8, 0u8, 0u8, 152u8, 131u8, 188u8, 185u8, 39u8, 2u8, - 0u8, 0u8, 22u8, 77u8, 101u8, 42u8, 102u8, 2u8, 0u8, 0u8, - 180u8, 149u8, 19u8, 172u8, 171u8, 2u8, 0u8, 0u8, 45u8, 142u8, - 130u8, 11u8, 249u8, 2u8, 0u8, 0u8, 161u8, 230u8, 152u8, 44u8, - 79u8, 3u8, 0u8, 0u8, 166u8, 22u8, 8u8, 13u8, 175u8, 3u8, 0u8, - 0u8, 204u8, 157u8, 55u8, 199u8, 25u8, 4u8, 0u8, 0u8, 160u8, - 213u8, 132u8, 149u8, 144u8, 4u8, 0u8, 0u8, 66u8, 231u8, - 224u8, 213u8, 20u8, 5u8, 0u8, 0u8, 2u8, 140u8, 215u8, 13u8, - 168u8, 5u8, 0u8, 0u8, 15u8, 117u8, 10u8, 239u8, 75u8, 6u8, - 0u8, 0u8, 234u8, 141u8, 46u8, 92u8, 2u8, 7u8, 0u8, 0u8, - 195u8, 203u8, 153u8, 110u8, 205u8, 7u8, 0u8, 0u8, 177u8, - 229u8, 113u8, 124u8, 175u8, 8u8, 0u8, 0u8, 170u8, 43u8, - 142u8, 31u8, 171u8, 9u8, 0u8, 0u8, 181u8, 193u8, 32u8, 61u8, - 195u8, 10u8, 0u8, 0u8, 38u8, 208u8, 61u8, 14u8, 251u8, 11u8, - 0u8, 0u8, 112u8, 199u8, 89u8, 41u8, 86u8, 13u8, 0u8, 0u8, - 235u8, 173u8, 218u8, 140u8, 216u8, 14u8, 0u8, 0u8, 247u8, - 151u8, 219u8, 170u8, 134u8, 16u8, 0u8, 0u8, 207u8, 240u8, - 68u8, 118u8, 101u8, 18u8, 0u8, 0u8, 31u8, 38u8, 96u8, 113u8, - 122u8, 20u8, 0u8, 0u8, 9u8, 166u8, 17u8, 190u8, 203u8, 22u8, - 0u8, 0u8, 29u8, 251u8, 232u8, 47u8, 96u8, 25u8, 0u8, 0u8, - 148u8, 58u8, 60u8, 96u8, 63u8, 28u8, 0u8, 0u8, 138u8, 254u8, - 137u8, 196u8, 113u8, 31u8, 0u8, 0u8, 206u8, 217u8, 99u8, - 199u8, 0u8, 35u8, 0u8, 0u8, 3u8, 169u8, 42u8, 228u8, 246u8, - 38u8, 0u8, 0u8, 254u8, 114u8, 238u8, 197u8, 95u8, 43u8, 0u8, - 0u8, 54u8, 201u8, 204u8, 105u8, 72u8, 48u8, 0u8, 0u8, 218u8, - 227u8, 50u8, 69u8, 191u8, 53u8, 0u8, 0u8, 6u8, 42u8, 116u8, - 112u8, 212u8, 59u8, 0u8, 0u8, 124u8, 151u8, 50u8, 214u8, - 153u8, 66u8, 0u8, 0u8, 132u8, 163u8, 36u8, 104u8, 35u8, 74u8, - 0u8, 0u8, 87u8, 26u8, 212u8, 89u8, 135u8, 82u8, 0u8, 0u8, - 231u8, 241u8, 2u8, 98u8, 222u8, 91u8, 0u8, 0u8, 13u8, 184u8, - 118u8, 3u8, 68u8, 102u8, 0u8, 0u8, 174u8, 4u8, 1u8, 222u8, - 214u8, 113u8, 0u8, 0u8, 125u8, 158u8, 179u8, 8u8, 185u8, - 126u8, 0u8, 0u8, 30u8, 4u8, 74u8, 118u8, 16u8, 141u8, 0u8, - 0u8, 58u8, 29u8, 240u8, 100u8, 7u8, 157u8, 0u8, 0u8, 224u8, - 79u8, 175u8, 218u8, 204u8, 174u8, 0u8, 0u8, 86u8, 121u8, - 240u8, 47u8, 149u8, 194u8, 0u8, 0u8, 149u8, 195u8, 170u8, - 169u8, 154u8, 216u8, 0u8, 0u8, 150u8, 124u8, 5u8, 37u8, 30u8, - 241u8, 0u8, 0u8, 23u8, 122u8, 102u8, 214u8, 103u8, 12u8, 1u8, - 0u8, 40u8, 203u8, 31u8, 30u8, 200u8, 42u8, 1u8, 0u8, 250u8, - 40u8, 47u8, 117u8, 152u8, 76u8, 1u8, 0u8, 213u8, 125u8, - 200u8, 116u8, 60u8, 114u8, 1u8, 0u8, 125u8, 196u8, 179u8, - 251u8, 34u8, 156u8, 1u8, 0u8, 54u8, 92u8, 222u8, 116u8, - 199u8, 202u8, 1u8, 0u8, 158u8, 184u8, 225u8, 66u8, 179u8, - 254u8, 1u8, 0u8, 12u8, 49u8, 174u8, 84u8, 127u8, 56u8, 2u8, - 0u8, 95u8, 225u8, 1u8, 232u8, 213u8, 120u8, 2u8, 0u8, 99u8, - 115u8, 218u8, 126u8, 116u8, 192u8, 2u8, 0u8, 81u8, 209u8, - 166u8, 13u8, 46u8, 16u8, 3u8, 0u8, 199u8, 233u8, 164u8, - 104u8, 237u8, 104u8, 3u8, 0u8, 97u8, 192u8, 145u8, 247u8, - 183u8, 203u8, 3u8, 0u8, 191u8, 39u8, 161u8, 183u8, 176u8, - 57u8, 4u8, 0u8, 123u8, 20u8, 153u8, 148u8, 27u8, 180u8, 4u8, - 0u8, 133u8, 35u8, 237u8, 34u8, 97u8, 60u8, 5u8, 0u8, 105u8, - 165u8, 212u8, 197u8, 18u8, 212u8, 5u8, 0u8, 236u8, 140u8, - 147u8, 77u8, 239u8, 124u8, 6u8, 0u8, 245u8, 170u8, 144u8, - 27u8, 232u8, 56u8, 7u8, 0u8, 140u8, 190u8, 93u8, 219u8, 38u8, - 10u8, 8u8, 0u8, 2u8, 151u8, 140u8, 225u8, 19u8, 243u8, 8u8, - 0u8, 250u8, 227u8, 20u8, 67u8, 93u8, 246u8, 9u8, 0u8, 221u8, - 241u8, 45u8, 186u8, 254u8, 22u8, 11u8, 0u8, 46u8, 186u8, - 220u8, 111u8, 74u8, 88u8, 12u8, 0u8, 12u8, 85u8, 24u8, 196u8, - 242u8, 189u8, 13u8, 0u8, 240u8, 187u8, 84u8, 49u8, 21u8, - 76u8, 15u8, 0u8, 73u8, 142u8, 134u8, 107u8, 70u8, 7u8, 17u8, - 0u8, 178u8, 193u8, 83u8, 222u8, 159u8, 244u8, 18u8, 0u8, - 39u8, 138u8, 47u8, 178u8, 206u8, 25u8, 21u8, 0u8, 178u8, - 57u8, 159u8, 132u8, 36u8, 125u8, 23u8, 0u8, 225u8, 153u8, - 231u8, 4u8, 170u8, 37u8, 26u8, 0u8, 186u8, 19u8, 245u8, - 171u8, 51u8, 27u8, 29u8, 0u8, 38u8, 71u8, 133u8, 204u8, - 120u8, 102u8, 32u8, 0u8, 136u8, 191u8, 128u8, 63u8, 45u8, - 17u8, 36u8, 0u8, 28u8, 152u8, 35u8, 248u8, 29u8, 38u8, 40u8, - 0u8, 204u8, 196u8, 34u8, 212u8, 80u8, 177u8, 44u8, 0u8, - 240u8, 136u8, 130u8, 5u8, 40u8, 192u8, 49u8, 0u8, 54u8, - 124u8, 109u8, 126u8, 137u8, 97u8, 55u8, 0u8, 110u8, 147u8, - 41u8, 211u8, 10u8, 166u8, 61u8, 0u8, 140u8, 188u8, 108u8, - 19u8, 34u8, 160u8, 68u8, 0u8, 0u8, 112u8, 243u8, 42u8, 92u8, - 100u8, 76u8, 0u8, 180u8, 59u8, 132u8, 105u8, 153u8, 9u8, - 85u8, 0u8, 128u8, 180u8, 171u8, 228u8, 80u8, 169u8, 94u8, - 0u8, 160u8, 205u8, 169u8, 121u8, 219u8, 95u8, 105u8, 0u8, - 76u8, 194u8, 127u8, 76u8, 199u8, 76u8, 117u8, 0u8, 208u8, - 172u8, 14u8, 186u8, 52u8, 147u8, 130u8, 0u8, 72u8, 62u8, - 12u8, 207u8, 61u8, 90u8, 145u8, 0u8, 104u8, 198u8, 142u8, - 116u8, 105u8, 205u8, 161u8, 0u8, 40u8, 30u8, 111u8, 165u8, - 43u8, 29u8, 180u8, 0u8, 152u8, 169u8, 35u8, 38u8, 116u8, - 127u8, 200u8, 0u8, 240u8, 154u8, 116u8, 99u8, 77u8, 48u8, - 223u8, 0u8, 128u8, 205u8, 252u8, 75u8, 141u8, 114u8, 248u8, - 0u8, 144u8, 20u8, 96u8, 45u8, 154u8, 144u8, 20u8, 1u8, 240u8, - 180u8, 19u8, 217u8, 69u8, 221u8, 51u8, 1u8, 32u8, 151u8, - 53u8, 150u8, 193u8, 180u8, 86u8, 1u8, 80u8, 220u8, 251u8, - 174u8, 173u8, 125u8, 125u8, 1u8, 224u8, 17u8, 152u8, 185u8, - 71u8, 170u8, 168u8, 1u8, 48u8, 199u8, 238u8, 22u8, 187u8, - 185u8, 216u8, 1u8, 32u8, 110u8, 72u8, 134u8, 151u8, 57u8, - 14u8, 2u8, 160u8, 250u8, 75u8, 29u8, 114u8, 199u8, 73u8, 2u8, - 192u8, 17u8, 113u8, 112u8, 181u8, 18u8, 140u8, 2u8, 128u8, - 138u8, 22u8, 67u8, 166u8, 222u8, 213u8, 2u8, 192u8, 248u8, - 35u8, 177u8, 162u8, 4u8, 40u8, 3u8, 128u8, 175u8, 89u8, - 112u8, 162u8, 118u8, 131u8, 3u8, 192u8, 111u8, 45u8, 135u8, - 255u8, 65u8, 233u8, 3u8, 64u8, 147u8, 127u8, 172u8, 143u8, - 146u8, 90u8, 4u8, 0u8, 145u8, 9u8, 113u8, 23u8, 182u8, 216u8, - 4u8, 64u8, 15u8, 223u8, 91u8, 33u8, 32u8, 101u8, 5u8, 0u8, - 73u8, 193u8, 73u8, 68u8, 110u8, 1u8, 6u8, 0u8, 142u8, 188u8, - 166u8, 229u8, 108u8, 175u8, 6u8, 0u8, 89u8, 86u8, 134u8, - 133u8, 28u8, 113u8, 7u8, 128u8, 104u8, 170u8, 52u8, 164u8, - 183u8, 72u8, 8u8, 128u8, 161u8, 226u8, 158u8, 82u8, 185u8, - 56u8, 9u8, 0u8, 189u8, 171u8, 232u8, 128u8, 228u8, 67u8, - 10u8, 0u8, 42u8, 114u8, 180u8, 32u8, 76u8, 109u8, 11u8, - 128u8, 241u8, 192u8, 19u8, 51u8, 92u8, 184u8, 12u8, 0u8, - 160u8, 60u8, 203u8, 220u8, 227u8, 40u8, 14u8, 128u8, 184u8, - 98u8, 154u8, 158u8, 32u8, 195u8, 15u8, 0u8, 222u8, 86u8, - 147u8, 210u8, 202u8, 139u8, 17u8, 0u8, 93u8, 127u8, 76u8, - 147u8, 35u8, 136u8, 19u8, 0u8, 26u8, 135u8, 223u8, 53u8, 4u8, - 190u8, 21u8, 0u8, 167u8, 206u8, 75u8, 132u8, 239u8, 51u8, - 24u8, 0u8, 1u8, 16u8, 251u8, 234u8, 36u8, 241u8, 26u8, 0u8, - 128u8, 42u8, 229u8, 209u8, 181u8, 253u8, 29u8, 0u8, 34u8, - 161u8, 52u8, 96u8, 157u8, 98u8, 33u8, 0u8, 68u8, 33u8, 107u8, - 240u8, 218u8, 41u8, 37u8, 0u8, 2u8, 97u8, 241u8, 130u8, - 143u8, 94u8, 41u8, 0u8, 102u8, 32u8, 207u8, 133u8, 30u8, - 13u8, 46u8, 0u8, 132u8, 16u8, 25u8, 82u8, 82u8, 67u8, 51u8, - 0u8, 160u8, 193u8, 143u8, 202u8, 132u8, 16u8, 57u8, 0u8, - 38u8, 173u8, 20u8, 147u8, 204u8, 133u8, 63u8, 0u8, 208u8, - 205u8, 36u8, 102u8, 47u8, 182u8, 70u8, 0u8, 156u8, 225u8, - 154u8, 28u8, 218u8, 182u8, 78u8, 0u8, 88u8, 204u8, 194u8, - 12u8, 95u8, 159u8, 87u8, 0u8, 32u8, 10u8, 117u8, 120u8, - 251u8, 137u8, 97u8, 0u8, 48u8, 187u8, 187u8, 214u8, 228u8, - 147u8, 108u8, 0u8, 96u8, 203u8, 167u8, 220u8, 158u8, 221u8, - 120u8, 0u8, 184u8, 59u8, 192u8, 66u8, 91u8, 139u8, 134u8, - 0u8, 184u8, 134u8, 35u8, 97u8, 100u8, 197u8, 149u8, 0u8, - 248u8, 241u8, 95u8, 220u8, 147u8, 184u8, 166u8, 0u8, 32u8, - 106u8, 145u8, 192u8, 214u8, 150u8, 185u8, 0u8, 216u8, 239u8, - 226u8, 143u8, 192u8, 151u8, 206u8, 0u8, 104u8, 41u8, 155u8, - 245u8, 46u8, 249u8, 229u8, 255u8, 255u8, 255u8, 255u8, 255u8, - 255u8, 255u8, 255u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("BagsList")?; + let constant = pallet.constant("BagThresholds")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod parachains_origin { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; } pub mod configuration { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive( :: subxt :: codec :: Encode, @@ -15531,15 +15402,11 @@ pub mod api { } } pub mod paras_shared { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -15634,15 +15501,11 @@ pub mod api { } } pub mod para_inclusion { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -15809,15 +15672,11 @@ pub mod api { } } pub mod para_inherent { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Enter { @@ -15923,10 +15782,8 @@ pub mod api { } } pub mod para_scheduler { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod storage { use super::runtime_types; pub struct ValidatorGroups; @@ -16057,15 +15914,11 @@ pub mod api { } } pub mod paras { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct ForceSetCurrentCode { @@ -16972,29 +16825,31 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn unsigned_priority( &self, ) -> ::core::result::Result<::core::primitive::u64, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[255u8, 255u8, 255u8, 255u8, 255u8, 255u8, 255u8, 255u8][..], - )?) + let pallet = self.client.metadata().pallet("Paras")?; + let constant = pallet.constant("UnsignedPriority")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod initializer { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive( :: subxt :: codec :: Encode, @@ -17082,15 +16937,11 @@ pub mod api { } } pub mod dmp { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub struct TransactionApi<'a, T: ::subxt::Config, X> { client: &'a ::subxt::Client, @@ -17196,15 +17047,11 @@ pub mod api { } } pub mod ump { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct ServiceOverweight { @@ -17492,15 +17339,11 @@ pub mod api { } } pub mod hrmp { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct HrmpInitOpenChannel { @@ -18154,10 +17997,8 @@ pub mod api { } } pub mod para_session_info { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod storage { use super::runtime_types; pub struct AssignmentKeysUnsafe; @@ -18245,15 +18086,11 @@ pub mod api { } } pub mod paras_disputes { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct ForceUnfreeze; @@ -18506,15 +18343,11 @@ pub mod api { } } pub mod registrar { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Register { @@ -18830,43 +18663,40 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn para_deposit( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 16u8, 165u8, 212u8, 232u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Registrar")?; + let constant = pallet.constant("ParaDeposit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn data_deposit_per_byte( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 128u8, 150u8, 152u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Registrar")?; + let constant = pallet.constant("DataDepositPerByte")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod slots { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct ForceLease { @@ -19050,37 +18880,40 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn lease_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 117u8, 18u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Slots")?; + let constant = pallet.constant("LeasePeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn lease_offset( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[0u8, 16u8, 14u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Slots")?; + let constant = pallet.constant("LeaseOffset")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod auctions { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct NewAuction { @@ -19393,53 +19226,58 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn ending_period( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[64u8, 25u8, 1u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Auctions")?; + let constant = pallet.constant("EndingPeriod")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn sample_length( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[20u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Auctions")?; + let constant = pallet.constant("SampleLength")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn slot_range_count( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[36u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Auctions")?; + let constant = pallet.constant("SlotRangeCount")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn lease_periods_per_slot( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[8u8, 0u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Auctions")?; + let constant = pallet.constant("LeasePeriodsPerSlot")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod crowdloan { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Create { @@ -19928,50 +19766,51 @@ pub mod api { } pub mod constants { use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn new(client: &'a ::subxt::Client) -> Self { + Self { client } + } pub fn pallet_id( &self, ) -> ::core::result::Result< runtime_types::frame_support::PalletId, ::subxt::BasicError, > { - Ok(::subxt::codec::Decode::decode( - &mut &[112u8, 121u8, 47u8, 99u8, 102u8, 117u8, 110u8, 100u8][..], - )?) + let pallet = self.client.metadata().pallet("Crowdloan")?; + let constant = pallet.constant("PalletId")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn min_contribution( &self, ) -> ::core::result::Result<::core::primitive::u128, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[ - 0u8, 116u8, 59u8, 164u8, 11u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, - 0u8, 0u8, 0u8, 0u8, 0u8, - ][..], - )?) + let pallet = self.client.metadata().pallet("Crowdloan")?; + let constant = pallet.constant("MinContribution")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } pub fn remove_keys_limit( &self, ) -> ::core::result::Result<::core::primitive::u32, ::subxt::BasicError> { - Ok(::subxt::codec::Decode::decode( - &mut &[232u8, 3u8, 0u8, 0u8][..], - )?) + let pallet = self.client.metadata().pallet("Crowdloan")?; + let constant = pallet.constant("RemoveKeysLimit")?; + let value = ::subxt::codec::Decode::decode(&mut &constant.value[..])?; + Ok(value) } } } } pub mod xcm_pallet { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; pub mod calls { - use super::{ - root_mod, - runtime_types, - }; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct Send { @@ -23412,6 +23251,13 @@ pub mod api { proxy_type: runtime_types::polkadot_runtime::ProxyType, delay: ::core::primitive::u32, }, + #[codec(index = 4)] + ProxyRemoved { + delegator: ::subxt::sp_core::crypto::AccountId32, + delegatee: ::subxt::sp_core::crypto::AccountId32, + proxy_type: runtime_types::polkadot_runtime::ProxyType, + delay: ::core::primitive::u32, + }, } } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] @@ -23979,6 +23825,8 @@ pub mod api { V7_0_0, #[codec(index = 7)] V8_0_0, + #[codec(index = 8)] + V9_0_0, } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub enum RewardDestination<_0> { @@ -27388,7 +27236,7 @@ pub mod api { #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub struct ModuleError { pub index: ::core::primitive::u8, - pub error: ::core::primitive::u8, + pub error: [::core::primitive::u8; 4usize], } #[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)] pub enum MultiSignature { @@ -28526,7 +28374,7 @@ pub mod api { if let Self::Module(module_error) = self { Some(::subxt::ModuleErrorData { pallet_index: module_error.index, - error: [module_error.error, 0, 0, 0], + error: module_error.error, }) } else { None @@ -28554,8 +28402,10 @@ pub mod api { T: ::subxt::Config, X: ::subxt::extrinsic::ExtrinsicParams, { - pub fn constants(&'a self) -> ConstantsApi { - ConstantsApi + pub fn constants(&'a self) -> ConstantsApi<'a, T> { + ConstantsApi { + client: &self.client, + } } pub fn storage(&'a self) -> StorageApi<'a, T> { StorageApi { @@ -28611,101 +28461,105 @@ pub mod api { ::subxt::events::subscribe_finalized::(self.client).await } } - pub struct ConstantsApi; - impl ConstantsApi { - pub fn system(&self) -> system::constants::ConstantsApi { - system::constants::ConstantsApi + pub struct ConstantsApi<'a, T: ::subxt::Config> { + client: &'a ::subxt::Client, + } + impl<'a, T: ::subxt::Config> ConstantsApi<'a, T> { + pub fn system(&self) -> system::constants::ConstantsApi<'a, T> { + system::constants::ConstantsApi::new(self.client) } - pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { - scheduler::constants::ConstantsApi + pub fn scheduler(&self) -> scheduler::constants::ConstantsApi<'a, T> { + scheduler::constants::ConstantsApi::new(self.client) } - pub fn babe(&self) -> babe::constants::ConstantsApi { - babe::constants::ConstantsApi + pub fn babe(&self) -> babe::constants::ConstantsApi<'a, T> { + babe::constants::ConstantsApi::new(self.client) } - pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { - timestamp::constants::ConstantsApi + pub fn timestamp(&self) -> timestamp::constants::ConstantsApi<'a, T> { + timestamp::constants::ConstantsApi::new(self.client) } - pub fn indices(&self) -> indices::constants::ConstantsApi { - indices::constants::ConstantsApi + pub fn indices(&self) -> indices::constants::ConstantsApi<'a, T> { + indices::constants::ConstantsApi::new(self.client) } - pub fn balances(&self) -> balances::constants::ConstantsApi { - balances::constants::ConstantsApi + pub fn balances(&self) -> balances::constants::ConstantsApi<'a, T> { + balances::constants::ConstantsApi::new(self.client) } pub fn transaction_payment( &self, - ) -> transaction_payment::constants::ConstantsApi { - transaction_payment::constants::ConstantsApi + ) -> transaction_payment::constants::ConstantsApi<'a, T> { + transaction_payment::constants::ConstantsApi::new(self.client) } - pub fn authorship(&self) -> authorship::constants::ConstantsApi { - authorship::constants::ConstantsApi + pub fn authorship(&self) -> authorship::constants::ConstantsApi<'a, T> { + authorship::constants::ConstantsApi::new(self.client) } - pub fn staking(&self) -> staking::constants::ConstantsApi { - staking::constants::ConstantsApi + pub fn staking(&self) -> staking::constants::ConstantsApi<'a, T> { + staking::constants::ConstantsApi::new(self.client) } - pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { - grandpa::constants::ConstantsApi + pub fn grandpa(&self) -> grandpa::constants::ConstantsApi<'a, T> { + grandpa::constants::ConstantsApi::new(self.client) } - pub fn im_online(&self) -> im_online::constants::ConstantsApi { - im_online::constants::ConstantsApi + pub fn im_online(&self) -> im_online::constants::ConstantsApi<'a, T> { + im_online::constants::ConstantsApi::new(self.client) } - pub fn democracy(&self) -> democracy::constants::ConstantsApi { - democracy::constants::ConstantsApi + pub fn democracy(&self) -> democracy::constants::ConstantsApi<'a, T> { + democracy::constants::ConstantsApi::new(self.client) } - pub fn phragmen_election(&self) -> phragmen_election::constants::ConstantsApi { - phragmen_election::constants::ConstantsApi + pub fn phragmen_election( + &self, + ) -> phragmen_election::constants::ConstantsApi<'a, T> { + phragmen_election::constants::ConstantsApi::new(self.client) } - pub fn treasury(&self) -> treasury::constants::ConstantsApi { - treasury::constants::ConstantsApi + pub fn treasury(&self) -> treasury::constants::ConstantsApi<'a, T> { + treasury::constants::ConstantsApi::new(self.client) } - pub fn claims(&self) -> claims::constants::ConstantsApi { - claims::constants::ConstantsApi + pub fn claims(&self) -> claims::constants::ConstantsApi<'a, T> { + claims::constants::ConstantsApi::new(self.client) } - pub fn vesting(&self) -> vesting::constants::ConstantsApi { - vesting::constants::ConstantsApi + pub fn vesting(&self) -> vesting::constants::ConstantsApi<'a, T> { + vesting::constants::ConstantsApi::new(self.client) } - pub fn utility(&self) -> utility::constants::ConstantsApi { - utility::constants::ConstantsApi + pub fn utility(&self) -> utility::constants::ConstantsApi<'a, T> { + utility::constants::ConstantsApi::new(self.client) } - pub fn identity(&self) -> identity::constants::ConstantsApi { - identity::constants::ConstantsApi + pub fn identity(&self) -> identity::constants::ConstantsApi<'a, T> { + identity::constants::ConstantsApi::new(self.client) } - pub fn proxy(&self) -> proxy::constants::ConstantsApi { - proxy::constants::ConstantsApi + pub fn proxy(&self) -> proxy::constants::ConstantsApi<'a, T> { + proxy::constants::ConstantsApi::new(self.client) } - pub fn multisig(&self) -> multisig::constants::ConstantsApi { - multisig::constants::ConstantsApi + pub fn multisig(&self) -> multisig::constants::ConstantsApi<'a, T> { + multisig::constants::ConstantsApi::new(self.client) } - pub fn bounties(&self) -> bounties::constants::ConstantsApi { - bounties::constants::ConstantsApi + pub fn bounties(&self) -> bounties::constants::ConstantsApi<'a, T> { + bounties::constants::ConstantsApi::new(self.client) } - pub fn child_bounties(&self) -> child_bounties::constants::ConstantsApi { - child_bounties::constants::ConstantsApi + pub fn child_bounties(&self) -> child_bounties::constants::ConstantsApi<'a, T> { + child_bounties::constants::ConstantsApi::new(self.client) } - pub fn tips(&self) -> tips::constants::ConstantsApi { - tips::constants::ConstantsApi + pub fn tips(&self) -> tips::constants::ConstantsApi<'a, T> { + tips::constants::ConstantsApi::new(self.client) } pub fn election_provider_multi_phase( &self, - ) -> election_provider_multi_phase::constants::ConstantsApi { - election_provider_multi_phase::constants::ConstantsApi + ) -> election_provider_multi_phase::constants::ConstantsApi<'a, T> { + election_provider_multi_phase::constants::ConstantsApi::new(self.client) } - pub fn bags_list(&self) -> bags_list::constants::ConstantsApi { - bags_list::constants::ConstantsApi + pub fn bags_list(&self) -> bags_list::constants::ConstantsApi<'a, T> { + bags_list::constants::ConstantsApi::new(self.client) } - pub fn paras(&self) -> paras::constants::ConstantsApi { - paras::constants::ConstantsApi + pub fn paras(&self) -> paras::constants::ConstantsApi<'a, T> { + paras::constants::ConstantsApi::new(self.client) } - pub fn registrar(&self) -> registrar::constants::ConstantsApi { - registrar::constants::ConstantsApi + pub fn registrar(&self) -> registrar::constants::ConstantsApi<'a, T> { + registrar::constants::ConstantsApi::new(self.client) } - pub fn slots(&self) -> slots::constants::ConstantsApi { - slots::constants::ConstantsApi + pub fn slots(&self) -> slots::constants::ConstantsApi<'a, T> { + slots::constants::ConstantsApi::new(self.client) } - pub fn auctions(&self) -> auctions::constants::ConstantsApi { - auctions::constants::ConstantsApi + pub fn auctions(&self) -> auctions::constants::ConstantsApi<'a, T> { + auctions::constants::ConstantsApi::new(self.client) } - pub fn crowdloan(&self) -> crowdloan::constants::ConstantsApi { - crowdloan::constants::ConstantsApi + pub fn crowdloan(&self) -> crowdloan::constants::ConstantsApi<'a, T> { + crowdloan::constants::ConstantsApi::new(self.client) } } pub struct StorageApi<'a, T: ::subxt::Config> {